@tesouro/embedded-components-react 0.5.138 → 0.5.141

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (349) hide show
  1. package/dist/index.css +0 -6
  2. package/dist/lib/monite-sdk.js +50 -50
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +1 -1
  4. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +1 -1
  5. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +51 -51
  6. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index22.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +0 -1
  8. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +0 -5
  9. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +1 -9
  10. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +575 -8
  11. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +1 -23
  12. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +1 -54
  13. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +157 -63
  14. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +1 -60
  15. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +24 -166
  16. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +10 -84
  17. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +10 -27
  18. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +12 -2
  19. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +16 -597
  20. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +21 -1
  21. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +29 -1
  22. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +0 -167
  23. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +93 -1
  24. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +10 -25
  25. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +12 -1
  26. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +18 -10
  27. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +75 -10
  28. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +1 -12
  29. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +126 -16
  30. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +1 -21
  31. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +11 -27
  32. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +56 -1
  33. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +5 -93
  34. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +1 -12
  35. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +62 -10
  36. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +120 -10
  37. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +21 -20
  38. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +6 -75
  39. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +37 -1
  40. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +7 -126
  41. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +58 -1
  42. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +72 -11
  43. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +26 -54
  44. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +0 -4
  45. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +61 -1
  46. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +19 -62
  47. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +20 -120
  48. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +183 -21
  49. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +1 -8
  50. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +29 -34
  51. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +3 -9
  52. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +59 -53
  53. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +31 -71
  54. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +11 -26
  55. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +34 -1
  56. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +43 -57
  57. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +10 -17
  58. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +17 -19
  59. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +5 -182
  60. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +12 -1
  61. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +9 -28
  62. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +20 -3
  63. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +12 -60
  64. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +13 -31
  65. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +13 -10
  66. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +15 -31
  67. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +37 -42
  68. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +14 -10
  69. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +14 -16
  70. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +15 -5
  71. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +15 -9
  72. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +20 -13
  73. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +5 -18
  74. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +119 -12
  75. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +62 -12
  76. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +1 -16
  77. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +196 -14
  78. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +1 -42
  79. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +9 -16
  80. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +41 -15
  81. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +5 -15
  82. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +9 -15
  83. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +19 -20
  84. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +7 -5
  85. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +3 -119
  86. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +407 -61
  87. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +18 -196
  88. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +95 -1
  89. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +20 -9
  90. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +17 -41
  91. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +2 -6
  92. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +180 -8
  93. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +98 -15
  94. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +1 -9
  95. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +1 -7
  96. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +49 -419
  97. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +46 -1
  98. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +1 -22
  99. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +18 -92
  100. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +1 -22
  101. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +158 -16
  102. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +1 -4
  103. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +7 -188
  104. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +55 -94
  105. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +47 -1
  106. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +51 -1
  107. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +80 -50
  108. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +21 -44
  109. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +307 -1
  110. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +1 -21
  111. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +32 -1
  112. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +0 -161
  113. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +29 -1
  114. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +1 -12
  115. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +1 -63
  116. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +158 -44
  117. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +1 -51
  118. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +34 -82
  119. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +34 -21
  120. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +3 -42
  121. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +105 -1
  122. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +181 -340
  123. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +134 -1
  124. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +209 -30
  125. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +13 -1
  126. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +14 -26
  127. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +31 -1
  128. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +1 -1
  129. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +229 -149
  130. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +34 -35
  131. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +135 -29
  132. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +1 -6
  133. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +163 -101
  134. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +26 -189
  135. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +8 -132
  136. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +36 -207
  137. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +154 -11
  138. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +67 -13
  139. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +217 -28
  140. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +42 -1
  141. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +0 -241
  142. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +83 -0
  143. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +14 -34
  144. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +184 -135
  145. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +169 -1
  146. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +15 -162
  147. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +19 -26
  148. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +6 -8
  149. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +383 -36
  150. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +88 -151
  151. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +198 -67
  152. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +30 -217
  153. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +84 -38
  154. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +136 -1
  155. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +35 -78
  156. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +58 -14
  157. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +54 -184
  158. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +135 -163
  159. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +552 -17
  160. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +17 -17
  161. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +145 -5
  162. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +142 -382
  163. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +36 -89
  164. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +59 -195
  165. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +67 -28
  166. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +147 -84
  167. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +57 -129
  168. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +82 -35
  169. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +14 -59
  170. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +16 -138
  171. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +21 -552
  172. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +21 -16
  173. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +89 -135
  174. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +41 -142
  175. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +27 -37
  176. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +1 -66
  177. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +16 -68
  178. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +12 -145
  179. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +5 -61
  180. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +13 -84
  181. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +18 -14
  182. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +9 -19
  183. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +102 -20
  184. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +35 -20
  185. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +43 -97
  186. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +71 -42
  187. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +99 -26
  188. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +47 -1
  189. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +186 -15
  190. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +139 -13
  191. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +130 -5
  192. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +77 -13
  193. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +245 -15
  194. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +10 -9
  195. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +6 -104
  196. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +398 -34
  197. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +22 -45
  198. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js +18 -73
  199. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index500.js +44 -99
  200. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index501.js +45 -44
  201. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index502.js +14 -189
  202. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +39 -139
  203. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index504.js +140 -124
  204. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index505.js +112 -75
  205. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index506.js +39 -246
  206. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index507.js +33 -8
  207. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index508.js +24 -6
  208. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index509.js +22 -399
  209. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index510.js +22 -23
  210. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index511.js +73 -17
  211. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index512.js +71 -44
  212. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index513.js +18 -46
  213. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index514.js +179 -14
  214. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index515.js +138 -38
  215. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index516.js +28 -142
  216. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index517.js +93 -92
  217. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index518.js +17 -38
  218. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index519.js +44 -31
  219. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index520.js +15 -22
  220. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index521.js +21 -21
  221. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index522.js +27 -21
  222. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index523.js +36 -72
  223. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index524.js +76 -70
  224. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index525.js +50 -16
  225. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index526.js +33 -177
  226. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index527.js +82 -134
  227. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index528.js +50 -31
  228. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index529.js +1 -119
  229. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index530.js +37 -19
  230. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index531.js +1 -48
  231. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index532.js +133 -16
  232. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index533.js +109 -23
  233. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index534.js +49 -25
  234. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index535.js +787 -36
  235. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index536.js +88 -77
  236. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index537.js +101 -50
  237. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index538.js +6 -37
  238. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index539.js +23 -88
  239. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index540.js +11 -50
  240. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index541.js +11 -1
  241. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index542.js +23 -36
  242. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index543.js +16 -1
  243. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index544.js +165 -128
  244. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index545.js +208 -108
  245. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index546.js +87 -49
  246. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index547.js +17 -789
  247. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index548.js +154 -86
  248. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index549.js +98 -99
  249. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index550.js +46 -6
  250. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index551.js +4 -27
  251. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index552.js +12 -11
  252. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index553.js +24 -8
  253. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index554.js +1 -27
  254. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index555.js +20 -13
  255. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index556.js +47 -166
  256. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index557.js +63 -209
  257. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index558.js +164 -87
  258. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index559.js +1 -19
  259. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index560.js +175 -148
  260. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index561.js +1 -104
  261. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index562.js +34 -37
  262. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index563.js +2 -1
  263. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index564.js +21 -13
  264. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index565.js +72 -22
  265. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index566.js +19 -1
  266. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index567.js +18 -183
  267. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index568.js +8 -1
  268. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index569.js +9 -40
  269. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index570.js +13 -5
  270. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index571.js +130 -21
  271. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index572.js +5 -74
  272. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index573.js +5 -16
  273. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index574.js +5 -22
  274. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index575.js +219 -5
  275. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index576.js +11 -9
  276. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index577.js +34 -11
  277. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index578.js +179 -128
  278. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index579.js +203 -5
  279. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index580.js +98 -4
  280. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index581.js +66 -5
  281. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index582.js +51 -216
  282. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index583.js +91 -11
  283. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index584.js +40 -33
  284. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index585.js +69 -174
  285. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index586.js +80 -199
  286. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index587.js +12 -100
  287. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index588.js +21 -61
  288. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index589.js +16 -56
  289. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index590.js +4 -93
  290. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index591.js +22 -41
  291. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index592.js +1 -79
  292. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index593.js +64 -87
  293. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index594.js +30 -12
  294. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index595.js +2 -24
  295. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index596.js +36 -17
  296. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index597.js +18 -5
  297. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index598.js +31 -22
  298. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index599.js +31 -1
  299. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index600.js +2 -64
  300. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index601.js +93 -28
  301. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index.js +10 -6
  302. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index10.js +25 -0
  303. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index2.js +13 -8
  304. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index3.js +10 -19
  305. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index4.js +31 -6
  306. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index5.js +22 -13
  307. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index6.js +22 -14
  308. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index7.js +19 -0
  309. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index8.js +22 -0
  310. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/data-access/dist/index9.js +26 -0
  311. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index10.js +2 -3
  312. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index11.js +8 -9
  313. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index4.js +16 -58
  314. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index5.js +95 -3
  315. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index6.js +4 -4
  316. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index7.js +7 -8
  317. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index8.js +18 -21
  318. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/feature/dist/index9.js +8 -8
  319. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/ui/dist/index.js +2 -1
  320. package/dist/libs/tesouro-embedded-components-react/settings-widget/tags/ui/dist/index2.js +14 -1
  321. package/dist/libs/tesouro-embedded-components-react/{shared/tag-selection/ui/dist/index3.js → settings-widget/tags/ui/dist/index5.js} +2 -1
  322. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +855 -831
  323. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  324. package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +1 -1
  325. package/dist/packages/shared-ui-shadcn/dist/index.js +539 -533
  326. package/package.json +1 -1
  327. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index602.js +0 -4
  328. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index603.js +0 -36
  329. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index604.js +0 -18
  330. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index605.js +0 -33
  331. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index606.js +0 -31
  332. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index607.js +0 -2
  333. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index608.js +0 -97
  334. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index.js +0 -7
  335. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index2.js +0 -24
  336. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index3.js +0 -6
  337. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index4.js +0 -10
  338. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index5.js +0 -34
  339. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index6.js +0 -35
  340. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/data-access/dist/index7.js +0 -33
  341. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/index.js +0 -5
  342. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/TagSelectorField.js +0 -11
  343. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/helpers.js +0 -38
  344. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/labels.js +0 -19
  345. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/permissions.js +0 -4
  346. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/feature/dist/lib/useTagCreateForm.js +0 -6
  347. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/ui/dist/index.js +0 -4
  348. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/ui/dist/index2.js +0 -17
  349. package/dist/libs/tesouro-embedded-components-react/shared/tag-selection/ui/dist/index4.js +0 -4
@@ -1,791 +1,19 @@
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 "./index46.js";
4
- import { useCounterpartById as n } from "./index47.js";
5
- import { getCounterpartEmail as r } from "./index52.js";
6
- import { useCurrencies as i } from "./index62.js";
7
- import { cn as a } from "./index48.js";
8
- import { Button as o } from "./index55.js";
9
- import { useCounterpartAddresses as s } from "./index132.js";
10
- import { useMyEntity as c } from "./index139.js";
11
- import { useGetReceivableById as ee } from "./index143.js";
12
- import "./index144.js";
13
- import { useComponentSettings as te } from "./index220.js";
14
- import "./index222.js";
15
- import { MoniteScopedProviders as l } from "./index241.js";
16
- import { Sheet as ne, SheetContent as re, SheetDescription as ie, SheetHeader as ae, SheetTitle as oe } from "./index49.js";
17
- import { LoadingSpinner as u } from "./index50.js";
18
- import "./index51.js";
19
- import { DialogTitle as d } from "./index57.js";
20
- import { Typography as f } from "./index61.js";
21
- import { ACTION_ICON as se, AUDIT_HISTORY_SECTION as ce, STATUS_ICON as le, amountValueToneClass as ue, headerIconButtonClass as p } from "./index92.js";
22
- import { getInvoiceValidationSchema as de } from "./index100.js";
23
- import { useUserPermissions as fe } from "./index118.js";
24
- import { useSelectableBankAccounts as pe } from "./index127.js";
25
- import { useGetPaymentReminderById as me } from "./index148.js";
26
- import { useGetOverdueReminderById as he } from "./index151.js";
27
- import { buildInvoiceDetailsView as ge } from "./index166.js";
28
- import { preventTooltipFocusOpen as _e } from "./index170.js";
29
- import { buildEditInvoiceFormValues as ve } from "./index177.js";
30
- import { isPrimaryActionDisabled as ye } from "./index179.js";
31
- import "./index182.js";
32
- import { useDuplicateInvoice as be } from "./index183.js";
33
- import { useGetPaymentRecords as xe } from "./index187.js";
34
- import { useGetReceivablePDFById as Se } from "./index190.js";
35
- import { useGetRecurrenceById as Ce } from "./index199.js";
36
- import { useGetInvoiceRequiredFields as we } from "./index201.js";
37
- import { Badge as m } from "./index228.js";
38
- import { InvoiceStatusChip as Te } from "./index242.js";
39
- import { NotFound as Ee } from "./index243.js";
40
- import { CounterpartDetails as De } from "./index244.js";
41
- import { AccessRestriction as Oe } from "./index251.js";
42
- import "./index428.js";
43
- import { InvoiceRecurrenceStatusChip as ke } from "./index450.js";
44
- import { useIssueReceivableById as Ae } from "./index461.js";
45
- import { ActionsModal as je } from "./index528.js";
46
- import { Accordion as Me, AccordionContent as h, AccordionItem as g, AccordionTrigger as _ } from "./index518.js";
47
- import { Tooltip as Ne, TooltipContent as Pe, TooltipProvider as Fe, TooltipTrigger as v } from "./index519.js";
48
- import { usePauseRecurrence as Ie } from "./index520.js";
49
- import { useResumeRecurrence as Le } from "./index521.js";
50
- import { InvoiceDetailsAmountCell as Re } from "./index522.js";
51
- import { InvoiceDetailsAttachments as ze } from "./index523.js";
52
- import { InvoiceDetailsAuditHistory as Be } from "./index524.js";
53
- import { InvoiceDetailsCloseButton as y } from "./index525.js";
54
- import { EditInvoiceDetails as Ve } from "./index529.js";
55
- import { InvoiceDetailsInfoRow as He } from "./index530.js";
56
- import { InvoiceDetailsCustomerRow as Ue } from "./index531.js";
57
- import { InvoiceCancelModal as We } from "./index533.js";
58
- import { InvoiceDeleteModal as Ge } from "./index534.js";
59
- import { InvoiceDetailsTabScheduledInvoices as Ke } from "./index536.js";
60
- import { MarkAsUncollectibleModal as qe } from "./index537.js";
61
- import { InvoiceDetailsOverflowMenu as Je } from "./index538.js";
62
- import { RecordManualPaymentModal as Ye } from "./index545.js";
63
- import { RecurrenceCancelModal as Xe } from "./index546.js";
64
- import { useCallback as b, useMemo as x, useState as S } from "react";
65
- import { ChevronLeft as Ze, CircleAlert as Qe, Eye as $e, Repeat as et } from "lucide-react";
66
- import { Fragment as C, jsx as w, jsxs as T } from "@emotion/react/jsx-runtime";
67
- import { toast as E } from "react-hot-toast";
68
- import { useLingui as tt } from "@lingui/react";
1
+ import { Typography as e } from "./index61.js";
2
+ import { jsx as t, jsxs as n } from "@emotion/react/jsx-runtime";
3
+ import { twMerge as r } from "tailwind-merge";
69
4
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index547.js
70
- var D = (e) => /* @__PURE__ */ w(l, { children: /* @__PURE__ */ w(O, { ...e }, e.invoiceId) }), O = ({ invoiceId: l, open: D, onCloseInvoiceDetails: O, onDuplicate: nt, openInvoiceDetails: k, embeddedBankName: rt }) => {
71
- let { i18n: A } = tt(), { locale: j, componentSettings: it } = t(), M = !!it?.receivables?.enableEntityBankAccount, { formatCurrencyToDisplay: N } = i(), { receivablesCallbacks: at } = te(), { data: P, isLoading: ot } = ee(l, !0), F = P?.type === "invoice" ? P.counterpart_id : void 0, I = P?.type === "invoice" ? P.counterpart_billing_address?.id : void 0, { data: L, isLoading: R } = n(F), z = !!r(L), { data: st } = s(F), ct = x(() => st?.data?.find((e) => e.id === I) ?? (P?.type === "invoice" ? P.counterpart_billing_address : void 0), [
72
- st?.data,
73
- P,
74
- I
75
- ]), { data: lt, isFetching: ut, isLoading: dt } = c(), { data: ft, isFetching: pt, isLoading: mt } = we({
76
- counterpart_billing_address_id: I,
77
- counterpart_country: ct?.country,
78
- counterpart_id: F,
79
- counterpart_type: L?.id === F && L?.type || void 0
80
- }), ht = ft?.entity?.tax_id?.required, gt = !(P?.type !== "invoice" || !P.payment_reminder_id && !P.overdue_reminder_id), B = !!F && R || dt || ut || mt || pt, { data: _t } = Se(l, P?.type === "invoice"), vt = _t?.file_url, { data: V, isLoading: yt } = Ce(P?.type === "invoice" ? P?.recurrence_id : void 0), { data: bt, isLoading: xt } = xe(P?.id), { data: St } = me(P?.type === "invoice" ? P?.payment_reminder_id : void 0), { data: Ct } = he(P?.type === "invoice" ? P?.overdue_reminder_id : void 0), { bankAccounts: wt, isIncomplete: Tt } = pe(M), H = P?.type === "invoice" ? P.bank_account_id : void 0, Et = x(() => M ? {
81
- account: wt.find((e) => e.id === H),
82
- isListIncomplete: Tt
83
- } : void 0, [
84
- M,
85
- wt,
86
- H,
87
- Tt
88
- ]), [Dt, Ot] = S(["attachments"]), [U, W] = S(!1), [kt, G] = S("edit"), [K, q] = S(null), [At, jt] = S(!1), [Mt, Nt] = S(!1), [Pt, Ft] = S(!1), [It, Lt] = S(!1), [Rt, zt] = S(!1), J = fe(), Bt = J.has(e.InvoiceReadOrg), Vt = J.has(e.InvoiceWriteOrg), Ht = J.has(e.CounterpartReadOrg), Ut = J.has(e.CounterpartWriteOrg), { mutateAsync: Y, isPending: Wt } = Ae(), { mutate: Gt, isPending: Kt } = be(nt), { mutate: qt, isPending: Jt } = Ie(V?.id ?? "", l), { mutate: Yt, isPending: Xt } = Le(V?.id ?? "", l), Zt = D && !U, Qt = Bt && !ot && !yt && !!P && P.type === "invoice", X = x(() => {
89
- if (P && P.type === "invoice") return ge(P, V, bt?.data ?? [], {
90
- i18n: A,
91
- formatCurrencyToDisplay: N,
92
- locale: j
93
- }, xt, {
94
- paymentReminder: St,
95
- overdueReminder: Ct
96
- }, Et);
97
- }, [
98
- P,
99
- V,
100
- bt,
101
- xt,
102
- St,
103
- Ct,
104
- Et,
105
- A,
106
- N,
107
- j
108
- ]), Z = (e) => {
109
- switch (e) {
110
- case "edit": return A._("Edit");
111
- case "issue": return A._("Issue");
112
- case "issueAndSend": return A._("Issue and send");
113
- case "recordPayment": return A._("Record payment");
114
- case "send": return A._("Resend");
115
- case "clone": return A._("Duplicate");
116
- case "cancel": return A._("Cancel invoice");
117
- case "delete": return A._("Delete");
118
- case "markUncollectible": return A._("Mark as uncollectible");
119
- case "pauseRecurrence": return A._("Pause series");
120
- case "resumeRecurrence": return A._("Resume series");
121
- case "cancelRecurrence": return A._("Cancel series");
122
- }
123
- }, Q = b((e) => {
124
- Vt ? e() : E.error(A._("You don't have permission to update this document. Please, contact your system administrator for details."));
125
- }, [Vt, A]), $t = b((e) => {
126
- G(e), W(!0);
127
- }, []), en = b(() => {
128
- if (!P || P.type !== "invoice") return !1;
129
- let e = ve(P, V);
130
- return de(A, M, Ut).safeParse(e).success;
131
- }, [
132
- P,
133
- V,
134
- A,
135
- M,
136
- Ut
137
- ]), $ = b((e) => {
138
- if (!en()) return $t(e), !1;
139
- if (B) return !1;
140
- if (ht && !lt?.tax_id) return E.error(A._("Set your organization's Tax ID to issue invoice")), !1;
141
- if (!gt) return !0;
142
- let t = r(L), n = L?.reminders_enabled;
143
- return !n && t ? (E.error(A._("Payment reminders are disabled for this customer. Please enable them in the customer details or turn them off.")), !1) : !t && n ? (E.error(A._("No email address is added for the selected customer. Please add it to the customer details or turn off the reminders.")), !1) : !n && !t ? (E.error(A._("Reminders are disabled for this customer, and no email address has been added for it. Please update the details or turn off reminders.")), !1) : !0;
144
- }, [
145
- L,
146
- lt?.tax_id,
147
- gt,
148
- A,
149
- ht,
150
- B,
151
- en,
152
- $t
153
- ]), tn = b(async () => {
154
- if ($("issue")) try {
155
- await Y({ path: { receivable_id: l } });
156
- } catch {
157
- E.error(A._("Failed to issue invoice. Add any missing information to your draft invoice and try again."));
158
- }
159
- }, [
160
- $,
161
- Y,
162
- l,
163
- A
164
- ]), nn = b(async () => {
165
- if (P?.counterpart_id && !R) {
166
- if (!z) {
167
- E.error(A._("This customer has no email address. Add one in the customer details to send the invoice."));
168
- return;
169
- }
170
- if ($("issueAndSend")) {
171
- try {
172
- await Y({ path: { receivable_id: l } });
173
- } catch {
174
- E.error(A._("Failed to issue invoice. Add any missing information to your draft invoice and try again."));
175
- return;
176
- }
177
- q({
178
- action: "issue",
179
- inlineLineItems: [],
180
- isEditFlow: !1,
181
- issue: {
182
- receivableId: l,
183
- counterpartId: P.counterpart_id
184
- }
185
- });
186
- }
187
- }
188
- }, [
189
- P?.counterpart_id,
190
- z,
191
- R,
192
- $,
193
- Y,
194
- l,
195
- A
196
- ]), rn = b((e) => {
197
- switch (e) {
198
- case "edit": return Q(() => {
199
- G("edit"), W(!0);
200
- });
201
- case "issue": return Q(tn);
202
- case "issueAndSend": return Q(nn);
203
- case "send": return Q(() => {
204
- if (!R) {
205
- if (!z) {
206
- E.error(A._("This customer has no email address. Add one in the customer details to send the invoice."));
207
- return;
208
- }
209
- P?.counterpart_id && q({
210
- action: "issue",
211
- inlineLineItems: [],
212
- isEditFlow: !0,
213
- issue: {
214
- receivableId: l,
215
- counterpartId: P.counterpart_id
216
- }
217
- });
218
- }
219
- });
220
- case "clone": return Q(() => Gt({ path: { receivable_id: l } }));
221
- case "cancel": return Q(() => jt(!0));
222
- case "delete": return Q(() => Nt(!0));
223
- case "markUncollectible": return Q(() => Ft(!0));
224
- case "pauseRecurrence": return Q(() => qt(void 0));
225
- case "resumeRecurrence": return Q(() => Yt(void 0));
226
- case "cancelRecurrence": return Q(() => Lt(!0));
227
- case "recordPayment": return;
228
- }
229
- }, [
230
- Q,
231
- tn,
232
- nn,
233
- z,
234
- R,
235
- P?.counterpart_id,
236
- Gt,
237
- l,
238
- qt,
239
- Yt,
240
- A
241
- ]);
242
- return /* @__PURE__ */ T(C, { children: [U && P && /* @__PURE__ */ w(Ve, {
243
- isOpen: U,
244
- invoice: P,
245
- issueIntent: kt !== "edit",
246
- embeddedBankName: rt,
247
- onUpdated: (e, t) => {
248
- W(!1);
249
- let n = kt !== "issue";
250
- G("edit"), at?.onUpdate?.(e.id, e), t.issued && n && t.hasCustomerEmail ? q({
251
- action: "issue",
252
- isEditFlow: !1,
253
- inlineLineItems: t.inlineLineItems,
254
- issue: {
255
- receivableId: e.id,
256
- counterpartId: t.counterpartId
257
- }
258
- }) : t.issued && t.inlineLineItems.length > 0 ? q({
259
- action: "issue",
260
- isEditFlow: !1,
261
- inlineLineItems: t.inlineLineItems
262
- }) : t.inlineLineItems.length > 0 && q({
263
- action: t.activatedRecurrence ? "recurrence" : "update",
264
- isEditFlow: !0,
265
- inlineLineItems: t.inlineLineItems
266
- });
267
- },
268
- onCancel: () => {
269
- W(!1), G("edit");
270
- }
271
- }), /* @__PURE__ */ w(ne, {
272
- open: Zt,
273
- modal: !1,
274
- onOpenChange: O,
275
- children: /* @__PURE__ */ T(re, {
276
- showCloseButton: !1,
277
- layer: "under-dialogs",
278
- className: "ttw:overflow-y-auto ttw:p-0",
279
- children: [
280
- /* @__PURE__ */ w(ie, {
281
- hidden: !0,
282
- children: A._("Invoice details")
283
- }),
284
- Qt ? null : /* @__PURE__ */ w(y, {
285
- label: A._("Close"),
286
- onClose: O,
287
- className: a(p, "ttw:absolute ttw:right-4 ttw:top-4 ttw:z-10")
288
- }),
289
- (() => {
290
- if (ot || yt) return /* @__PURE__ */ T("div", {
291
- className: "ttw:flex ttw:w-full ttw:items-center ttw:justify-center ttw:h-full",
292
- children: [/* @__PURE__ */ w(d, {
293
- hidden: !0,
294
- children: A._("Loading invoice details")
295
- }), /* @__PURE__ */ w(u, {})]
296
- });
297
- if (!Bt) return /* @__PURE__ */ T("div", {
298
- className: "ttw:w-3/4 ttw:m-auto",
299
- children: [/* @__PURE__ */ w(d, {
300
- hidden: !0,
301
- children: A._("Access restricted")
302
- }), /* @__PURE__ */ w(Oe, {})]
303
- });
304
- if (P && P.type !== "invoice") return /* @__PURE__ */ T("div", {
305
- className: "ttw:w-3/4 ttw:m-auto",
306
- children: [/* @__PURE__ */ w(d, {
307
- hidden: !0,
308
- children: A._("Receivable type not supported")
309
- }), /* @__PURE__ */ w(Ee, {
310
- title: A._("Receivable type not supported"),
311
- description: A._("Receivable type {type} is not supported. Only invoice is supported.", { type: P.type })
312
- })]
313
- });
314
- if (!P || !X) return /* @__PURE__ */ T("div", {
315
- className: "ttw:w-3/4 ttw:m-auto",
316
- children: [/* @__PURE__ */ w(d, {
317
- hidden: !0,
318
- children: A._("Invoice not found")
319
- }), /* @__PURE__ */ w(Ee, {
320
- title: A._("Invoice not found"),
321
- description: A._("There is no invoice for the provided id: {invoiceId}", { invoiceId: l })
322
- })]
323
- });
324
- let e = le[X.status], t = X.amountTone === "danger", n = X.recurringSeries, r = !!n, i = P.counterpart_name, s = P.counterpart_id && Ht ? () => zt(!0) : void 0, c = X.primaryActions.length > 0 ? /* @__PURE__ */ w("div", {
325
- className: "ttw:flex ttw:items-center ttw:gap-2 ttw:border-t ttw:border-border ttw:pt-3",
326
- children: X.primaryActions.map((e, t) => {
327
- let n = se[e], r = t === X.primaryActions.length - 1 ? "default" : "outline";
328
- return e === "recordPayment" && P.type === "invoice" ? /* @__PURE__ */ w(Ye, {
329
- invoice: P,
330
- children: ({ openModal: t }) => /* @__PURE__ */ T(o, {
331
- type: "button",
332
- size: "sm",
333
- variant: r,
334
- onClick: () => Q(t),
335
- children: [/* @__PURE__ */ w(n, { className: "ttw:size-4" }), Z(e)]
336
- })
337
- }, e) : /* @__PURE__ */ T(o, {
338
- type: "button",
339
- size: "sm",
340
- variant: r,
341
- disabled: ye(e, {
342
- isIssuing: Wt,
343
- isIssuePreflightLoading: B,
344
- isCounterpartLoading: R
345
- }),
346
- onClick: () => rn(e),
347
- children: [/* @__PURE__ */ w(n, { className: "ttw:size-4" }), Z(e)]
348
- }, e);
349
- })
350
- }) : null;
351
- return /* @__PURE__ */ T(C, { children: [
352
- X.seriesLink ? /* @__PURE__ */ w("div", {
353
- className: "ttw:border-b ttw:border-border ttw:px-6 ttw:py-3",
354
- children: /* @__PURE__ */ T("button", {
355
- type: "button",
356
- onClick: () => X.seriesLink && k?.(X.seriesLink.invoiceId),
357
- className: "ttw:flex ttw:items-center ttw:gap-1 ttw:text-sm ttw:text-primary ttw:hover:underline",
358
- children: [/* @__PURE__ */ w(Ze, {
359
- className: "ttw:size-4",
360
- "aria-hidden": "true"
361
- }), A._("Back to {title} recurring series", { title: X.seriesLink.title })]
362
- })
363
- }) : null,
364
- /* @__PURE__ */ T(ae, {
365
- className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:gap-2 ttw:space-y-0 ttw:px-6 ttw:py-4",
366
- children: [/* @__PURE__ */ T("div", {
367
- className: "ttw:flex ttw:flex-col ttw:gap-0.5",
368
- children: [/* @__PURE__ */ w(oe, {
369
- className: "ttw:text-xl ttw:font-semibold ttw:text-foreground",
370
- children: X.title
371
- }), X.subtitle ? /* @__PURE__ */ w(f, {
372
- variant: "body2",
373
- color: "muted",
374
- children: X.subtitle
375
- }) : null]
376
- }), /* @__PURE__ */ w(Fe, {
377
- delayDuration: 500,
378
- children: /* @__PURE__ */ T("div", {
379
- className: "ttw:flex ttw:items-center ttw:gap-1.5",
380
- children: [
381
- vt ? /* @__PURE__ */ T(Ne, { children: [/* @__PURE__ */ w(v, {
382
- asChild: !0,
383
- onFocus: _e,
384
- children: /* @__PURE__ */ w(o, {
385
- asChild: !0,
386
- variant: "ghost",
387
- size: "icon",
388
- className: p,
389
- children: /* @__PURE__ */ w("a", {
390
- href: vt,
391
- target: "_blank",
392
- rel: "noreferrer",
393
- "aria-label": A._("View PDF"),
394
- children: /* @__PURE__ */ w($e, { className: "ttw:size-4" })
395
- })
396
- })
397
- }), /* @__PURE__ */ w(Pe, { children: A._("View PDF") })] }) : null,
398
- X.overflowActions.length > 0 ? /* @__PURE__ */ w(Je, {
399
- actions: X.overflowActions,
400
- triggerLabel: A._("More actions"),
401
- getActionLabel: Z,
402
- onSelect: rn,
403
- isActionDisabled: (e) => e === "clone" && Kt || e === "pauseRecurrence" && Jt || e === "resumeRecurrence" && Xt || e === "send" && R,
404
- className: p
405
- }) : null,
406
- /* @__PURE__ */ T(Ne, { children: [/* @__PURE__ */ w(v, {
407
- asChild: !0,
408
- onFocus: _e,
409
- children: /* @__PURE__ */ w(y, {
410
- label: A._("Close"),
411
- onClose: O,
412
- className: p
413
- })
414
- }), /* @__PURE__ */ w(Pe, { children: A._("Close") })] })
415
- ]
416
- })
417
- })]
418
- }),
419
- /* @__PURE__ */ T("div", {
420
- className: "ttw:flex ttw:flex-col",
421
- children: [/* @__PURE__ */ w("div", {
422
- className: "ttw:px-6",
423
- children: r && n ? /* @__PURE__ */ T("div", {
424
- className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-violet-50 ttw:p-4",
425
- children: [
426
- /* @__PURE__ */ T("div", {
427
- className: "ttw:flex ttw:flex-col ttw:gap-0.5",
428
- children: [/* @__PURE__ */ w(f, {
429
- variant: "caption",
430
- color: "muted",
431
- children: A._("Recurring amount")
432
- }), /* @__PURE__ */ T("div", {
433
- className: "ttw:flex ttw:items-baseline ttw:gap-1.5",
434
- children: [/* @__PURE__ */ w(f, {
435
- component: "span",
436
- variant: "h3",
437
- className: ue[X.amountTone],
438
- children: n.amountLabel
439
- }), /* @__PURE__ */ w(f, {
440
- component: "span",
441
- variant: "body2",
442
- color: "muted",
443
- children: n.amountPeriodLabel
444
- })]
445
- })]
446
- }),
447
- /* @__PURE__ */ T("div", {
448
- className: "ttw:flex ttw:items-center ttw:gap-2",
449
- children: [/* @__PURE__ */ T(m, {
450
- variant: "outline",
451
- className: "ttw:gap-1 ttw:border-violet-200 ttw:bg-violet-50 ttw:text-violet-700",
452
- children: [/* @__PURE__ */ w(et, { className: "ttw:size-3" }), A._("Recurring")]
453
- }), /* @__PURE__ */ w(ke, {
454
- status: n.status,
455
- showIcon: !0
456
- })]
457
- }),
458
- /* @__PURE__ */ T("div", {
459
- className: "ttw:flex ttw:gap-12",
460
- children: [/* @__PURE__ */ T("div", {
461
- className: "ttw:flex ttw:flex-col ttw:gap-0.5",
462
- children: [/* @__PURE__ */ w(f, {
463
- variant: "caption",
464
- color: "muted",
465
- children: A._("Starts on")
466
- }), /* @__PURE__ */ w(f, {
467
- component: "span",
468
- variant: "body2",
469
- children: n.startsOnLabel
470
- })]
471
- }), /* @__PURE__ */ T("div", {
472
- className: "ttw:flex ttw:flex-col ttw:gap-0.5",
473
- children: [/* @__PURE__ */ w(f, {
474
- variant: "caption",
475
- color: "muted",
476
- children: A._("Ends on")
477
- }), /* @__PURE__ */ w(f, {
478
- component: "span",
479
- variant: "body2",
480
- children: n.endsOnLabel
481
- })]
482
- })]
483
- }),
484
- c
485
- ]
486
- }) : /* @__PURE__ */ T("div", {
487
- className: a("ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted ttw:p-4", t && "ttw:border ttw:border-red-200"),
488
- children: [
489
- /* @__PURE__ */ w("div", {
490
- className: "ttw:flex ttw:flex-row ttw:flex-wrap ttw:gap-x-12 ttw:gap-y-2",
491
- children: X.amountRows.map((e) => /* @__PURE__ */ w(Re, {
492
- row: e,
493
- defaultTone: X.amountTone
494
- }, e.label))
495
- }),
496
- /* @__PURE__ */ T("div", {
497
- className: "ttw:flex ttw:items-center ttw:gap-2",
498
- children: [X.overdueLabel ? /* @__PURE__ */ T("span", {
499
- className: "ttw:inline-flex ttw:items-center ttw:gap-1 ttw:rounded-full ttw:bg-red-100 ttw:px-2.5 ttw:py-0.5 ttw:text-xs ttw:font-medium ttw:text-red-700",
500
- children: [/* @__PURE__ */ w(Qe, { className: "ttw:size-3" }), X.overdueLabel]
501
- }) : /* @__PURE__ */ w(Te, {
502
- status: X.status,
503
- variant: "outline",
504
- label: X.statusLabel,
505
- icon: e ? /* @__PURE__ */ w(e, { className: "ttw:size-3" }) : void 0
506
- }), X.recurring ? /* @__PURE__ */ T(m, {
507
- variant: "outline",
508
- className: "ttw:gap-1 ttw:border-violet-200 ttw:bg-violet-50 ttw:text-violet-700",
509
- children: [/* @__PURE__ */ w(et, { className: "ttw:size-3" }), A._("Recurring")]
510
- }) : null]
511
- }),
512
- /* @__PURE__ */ T("div", {
513
- className: "ttw:flex ttw:gap-12",
514
- children: [/* @__PURE__ */ T("div", {
515
- className: "ttw:flex ttw:flex-col ttw:gap-0.5",
516
- children: [/* @__PURE__ */ w(f, {
517
- variant: "caption",
518
- color: "muted",
519
- children: A._("Invoice date")
520
- }), /* @__PURE__ */ w(f, {
521
- component: "span",
522
- variant: "body2",
523
- children: X.invoiceDateLabel
524
- })]
525
- }), /* @__PURE__ */ T("div", {
526
- className: "ttw:flex ttw:flex-col ttw:gap-0.5",
527
- children: [/* @__PURE__ */ w(f, {
528
- variant: "caption",
529
- color: "muted",
530
- children: X.dueDateCaption
531
- }), /* @__PURE__ */ w(f, {
532
- component: "span",
533
- variant: "body2",
534
- children: X.dueDateLabel
535
- })]
536
- })]
537
- }),
538
- c
539
- ]
540
- })
541
- }), /* @__PURE__ */ T("div", {
542
- className: "ttw:px-6",
543
- children: [
544
- X.paymentHistory ? /* @__PURE__ */ T("section", {
545
- "aria-label": A._("Payment history"),
546
- className: "ttw:border-b ttw:border-border ttw:py-4",
547
- children: [/* @__PURE__ */ w(f, {
548
- component: "h3",
549
- variant: "body2",
550
- className: "ttw:mb-3 ttw:font-medium",
551
- children: A._("Payment history")
552
- }), X.paymentHistory.loading ? /* @__PURE__ */ w("div", {
553
- className: "ttw:flex ttw:py-2",
554
- children: /* @__PURE__ */ w(u, { className: "ttw:h-5 ttw:w-5 ttw:border-2" })
555
- }) : X.paymentHistory.rows.length === 0 ? /* @__PURE__ */ w(f, {
556
- variant: "body2",
557
- className: X.paymentHistory.emptyTone === "danger" ? "ttw:text-red-600" : "ttw:text-muted-foreground",
558
- children: A._("You've received no payments yet.")
559
- }) : /* @__PURE__ */ T("div", {
560
- className: "ttw:flex ttw:flex-col",
561
- children: [X.paymentHistory.rows.map((e) => /* @__PURE__ */ T("div", {
562
- className: "ttw:flex ttw:justify-between ttw:border-b ttw:border-border ttw:py-2",
563
- children: [/* @__PURE__ */ w(f, {
564
- component: "span",
565
- variant: "body2",
566
- children: e.dateLabel
567
- }), /* @__PURE__ */ w(f, {
568
- component: "span",
569
- variant: "body2",
570
- children: e.amountLabel
571
- })]
572
- }, e.id)), /* @__PURE__ */ T("div", {
573
- className: "ttw:flex ttw:justify-between ttw:py-2 ttw:font-medium",
574
- children: [/* @__PURE__ */ w(f, {
575
- component: "span",
576
- variant: "body2",
577
- children: A._("Total received")
578
- }), /* @__PURE__ */ w(f, {
579
- component: "span",
580
- variant: "body2",
581
- children: X.paymentHistory.totalLabel
582
- })]
583
- })]
584
- })]
585
- }) : null,
586
- i || X.customerContact.length > 0 ? /* @__PURE__ */ T("section", {
587
- "aria-label": A._("Customer details"),
588
- className: "ttw:border-b ttw:border-border ttw:py-4",
589
- children: [/* @__PURE__ */ w(f, {
590
- component: "h3",
591
- variant: "body2",
592
- className: "ttw:mb-3 ttw:font-medium",
593
- children: A._("Customer details")
594
- }), /* @__PURE__ */ T("div", {
595
- className: "ttw:flex ttw:flex-col",
596
- children: [i ? /* @__PURE__ */ w(Ue, {
597
- label: A._("Name"),
598
- name: i,
599
- onOpenCounterpart: s
600
- }) : null, X.customerContact.map((e) => /* @__PURE__ */ w(He, { ...e }, e.label))]
601
- })]
602
- }) : null,
603
- /* @__PURE__ */ T(Me, {
604
- type: "multiple",
605
- value: Dt,
606
- onValueChange: Ot,
607
- className: "ttw:w-full",
608
- children: [
609
- /* @__PURE__ */ T(g, {
610
- value: "billing",
611
- children: [/* @__PURE__ */ w(_, { children: /* @__PURE__ */ w("span", {
612
- className: "ttw:group-hover:underline",
613
- children: A._("Billing details")
614
- }) }), /* @__PURE__ */ w(h, { children: /* @__PURE__ */ T("div", {
615
- className: "ttw:flex ttw:flex-col",
616
- children: [X.billingItems.map((e) => /* @__PURE__ */ w(He, { ...e }, e.label)), X.seriesLink ? /* @__PURE__ */ T("div", {
617
- className: "ttw:flex ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0",
618
- children: [/* @__PURE__ */ w(f, {
619
- component: "span",
620
- variant: "body2",
621
- color: "muted",
622
- className: "ttw:w-40 ttw:shrink-0",
623
- children: A._("Recurring series")
624
- }), /* @__PURE__ */ w("button", {
625
- type: "button",
626
- onClick: () => X.seriesLink && k?.(X.seriesLink.invoiceId),
627
- className: "ttw:text-left ttw:text-primary ttw:hover:underline",
628
- children: X.seriesLink.title
629
- })]
630
- }) : null]
631
- }) })]
632
- }),
633
- r ? null : /* @__PURE__ */ T(g, {
634
- value: "line-items",
635
- children: [/* @__PURE__ */ w(_, { children: /* @__PURE__ */ T("span", {
636
- className: "ttw:flex ttw:items-center ttw:gap-2",
637
- children: [/* @__PURE__ */ w("span", {
638
- className: "ttw:group-hover:underline",
639
- children: A._("Line items")
640
- }), /* @__PURE__ */ w(m, {
641
- variant: "secondary",
642
- className: "ttw:rounded-full",
643
- children: X.lineItems.length
644
- })]
645
- }) }), /* @__PURE__ */ w(h, { children: /* @__PURE__ */ T("div", {
646
- className: "ttw:flex ttw:flex-col",
647
- children: [X.lineItems.length === 0 ? /* @__PURE__ */ w(f, {
648
- variant: "body2",
649
- color: "muted",
650
- className: "ttw:py-3",
651
- children: A._("No line items.")
652
- }) : X.lineItems.map((e) => /* @__PURE__ */ T("div", {
653
- className: "ttw:flex ttw:items-start ttw:justify-between ttw:border-b ttw:border-border ttw:py-3",
654
- children: [/* @__PURE__ */ T("div", {
655
- className: "ttw:flex ttw:flex-col",
656
- children: [/* @__PURE__ */ w(f, {
657
- component: "span",
658
- variant: "body2",
659
- className: "ttw:font-medium",
660
- children: e.name
661
- }), /* @__PURE__ */ w(f, {
662
- component: "span",
663
- variant: "body2",
664
- color: "muted",
665
- children: A._("{quantity} x {price} ea", {
666
- quantity: e.quantityLabel,
667
- price: e.unitPriceLabel
668
- })
669
- })]
670
- }), /* @__PURE__ */ w(f, {
671
- component: "span",
672
- variant: "body2",
673
- children: e.totalLabel
674
- })]
675
- }, e.id)), X.lineItemTotals.length > 0 ? /* @__PURE__ */ w("div", {
676
- className: "ttw:flex ttw:flex-col ttw:gap-1 ttw:py-3",
677
- children: X.lineItemTotals.map((e) => /* @__PURE__ */ T("div", {
678
- className: a("ttw:flex ttw:justify-between", e.emphasis && "ttw:font-medium"),
679
- children: [/* @__PURE__ */ w(f, {
680
- component: "span",
681
- variant: "body2",
682
- children: e.label
683
- }), /* @__PURE__ */ w(f, {
684
- component: "span",
685
- variant: "body2",
686
- children: e.value
687
- })]
688
- }, e.label))
689
- }) : null]
690
- }) })]
691
- }),
692
- !r && X.notes ? /* @__PURE__ */ T(g, {
693
- value: "notes",
694
- children: [/* @__PURE__ */ w(_, { children: /* @__PURE__ */ T("span", {
695
- className: "ttw:flex ttw:items-center ttw:gap-2",
696
- children: [/* @__PURE__ */ w("span", {
697
- className: "ttw:group-hover:underline",
698
- children: A._("Notes")
699
- }), /* @__PURE__ */ w(m, {
700
- variant: "secondary",
701
- className: "ttw:rounded-full",
702
- children: [X.notes.opening, X.notes.closing].filter(Boolean).length
703
- })]
704
- }) }), /* @__PURE__ */ w(h, { children: /* @__PURE__ */ w("div", {
705
- className: "ttw:flex ttw:flex-col ttw:gap-3",
706
- children: [{
707
- label: A._("Opening note to customer"),
708
- text: X.notes.opening
709
- }, {
710
- label: A._("Closing note to customer"),
711
- text: X.notes.closing
712
- }].filter((e) => e.text).map((e) => /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w(f, {
713
- variant: "body2",
714
- className: "ttw:mb-1 ttw:font-medium",
715
- children: e.label
716
- }), /* @__PURE__ */ w(f, {
717
- variant: "body2",
718
- color: "muted",
719
- children: e.text
720
- })] }, e.label))
721
- }) })]
722
- }) : null,
723
- /* @__PURE__ */ w(ze, { attachments: P.attachments ?? [] }),
724
- /* @__PURE__ */ w(Be, {
725
- invoice: P,
726
- isOpen: Dt.includes(ce)
727
- })
728
- ]
729
- }),
730
- r && n && V ? /* @__PURE__ */ T("section", {
731
- "aria-label": n.scheduleTitle,
732
- className: "ttw:border-t ttw:border-border ttw:py-4",
733
- children: [/* @__PURE__ */ w(f, {
734
- component: "h3",
735
- variant: "body2",
736
- className: "ttw:mb-3 ttw:font-medium",
737
- children: n.scheduleTitle
738
- }), /* @__PURE__ */ w(Ke, {
739
- invoice: P,
740
- recurrence: V,
741
- openInvoiceDetails: k
742
- })]
743
- }) : null
744
- ]
745
- })]
746
- })
747
- ] });
748
- })(),
749
- At && /* @__PURE__ */ w(We, {
750
- invoiceId: P?.id ?? "",
751
- open: At,
752
- onClose: () => jt(!1)
753
- }),
754
- Mt && /* @__PURE__ */ w(Ge, {
755
- open: Mt,
756
- onClose: () => Nt(!1),
757
- invoiceId: P?.id ?? "",
758
- documentId: P?.type === "invoice" ? P?.document_id : void 0,
759
- onDelete: O
760
- }),
761
- Pt && /* @__PURE__ */ w(qe, {
762
- invoiceId: P?.id ?? "",
763
- open: Pt,
764
- onClose: () => Ft(!1)
765
- }),
766
- It && P?.type === "invoice" && /* @__PURE__ */ w(Xe, {
767
- invoice: P,
768
- open: It,
769
- onClose: () => Lt(!1)
770
- }),
771
- Rt && P?.counterpart_id && Ht && /* @__PURE__ */ w(De, {
772
- counterpartId: P.counterpart_id,
773
- open: Rt,
774
- onClose: () => zt(!1),
775
- showActionsMenu: !1,
776
- customerType: "customer"
777
- }),
778
- K && /* @__PURE__ */ w(je, {
779
- open: !0,
780
- isEditFlow: K.isEditFlow,
781
- action: K.action,
782
- issue: K.issue,
783
- inlineLineItems: K.inlineLineItems,
784
- onClose: () => q(null)
785
- })
786
- ]
787
- })
788
- })] });
789
- };
5
+ var i = ({ label: i, value: a, isLast: o }) => /* @__PURE__ */ n("li", {
6
+ className: r("ttw:flex ttw:gap-4 ttw:py-2.5", !o && "ttw:border-b ttw:border-border"),
7
+ children: [/* @__PURE__ */ t(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__ */ t(e, {
13
+ variant: "body2",
14
+ className: "ttw:font-medium",
15
+ children: a
16
+ }) : a]
17
+ });
790
18
  //#endregion
791
- export { D as InvoiceDetailsPanel };
19
+ export { i as ProductDetailLine };