@tesouro/embedded-components-react 0.2.160 → 0.2.161

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 (403) hide show
  1. package/dist/index.d.ts +9 -0
  2. package/dist/lib/ReceivablesWidget.js +19 -19
  3. package/dist/lib/WidgetProvider.d.ts +9 -0
  4. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index5.js +6 -6
  5. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index6.js +4 -4
  6. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +6 -6
  7. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +2 -2
  8. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +2 -2
  9. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js +2 -2
  10. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index3.js +5 -5
  11. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index4.js +2 -2
  12. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +7 -7
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +19 -19
  14. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +2 -2
  15. package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/data-access/dist/index2.js +2 -2
  16. package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/data-access/dist/index2.js +3 -3
  17. package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/data-access/dist/index6.js +11 -11
  18. package/dist/libs/tesouro-embedded-components-react/expense-requirements-widget/data-access/dist/index2.js +2 -2
  19. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index10.js +6 -17
  20. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index6.js +1 -1
  21. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index7.js +2 -2
  22. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index9.js +17 -6
  23. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +8 -8
  24. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +20 -20
  25. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +8 -8
  26. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index2.js +18 -18
  27. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index6.js +7 -7
  28. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +2 -2
  29. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +2 -2
  30. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +2 -2
  31. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -1
  32. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -1
  33. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +1 -1
  34. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +1 -1
  35. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +13 -2
  36. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +10 -2
  37. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +6 -7
  38. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index12.js +6 -6
  39. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +2 -9
  40. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +2 -13
  41. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +1 -1
  42. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +34 -32
  43. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +4 -35
  44. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +2 -4
  45. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +25 -2
  46. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +1269 -23
  47. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +32 -1270
  48. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index13.js +11 -11
  49. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +2 -2
  50. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index14.js +5 -5
  51. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +2 -2
  52. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +1 -1
  53. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +2 -2
  54. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +2 -2
  55. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +1 -1
  56. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index15.js +3 -3
  57. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index152.js +2 -2
  58. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +1 -1
  59. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index155.js +2 -2
  60. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index158.js +1 -1
  61. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +2 -2
  62. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index161.js +9 -99
  63. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +46 -57
  64. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index163.js +76 -9
  65. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +54 -42
  66. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index165.js +14 -76
  67. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index166.js +22 -54
  68. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index167.js +80 -14
  69. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +28 -25
  70. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index169.js +38 -76
  71. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index170.js +7 -29
  72. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index171.js +221 -41
  73. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +469 -7
  74. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +109 -221
  75. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index174.js +512 -444
  76. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +23 -107
  77. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index176.js +86 -524
  78. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index177.js +57 -26
  79. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +24 -25
  80. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +94 -11
  81. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index180.js +97 -16
  82. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index181.js +16 -19
  83. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index182.js +14 -2
  84. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index183.js +10 -8
  85. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index184.js +24 -19
  86. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index185.js +10 -19
  87. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index186.js +20 -27
  88. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index187.js +18 -114
  89. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index188.js +2 -70
  90. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index189.js +5 -7
  91. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index190.js +22 -12
  92. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index191.js +21 -25
  93. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index192.js +27 -96
  94. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index193.js +110 -94
  95. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index194.js +66 -14
  96. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index195.js +8 -8
  97. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index196.js +12 -14
  98. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index202.js +101 -7
  99. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index203.js +26 -35
  100. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +5 -100
  101. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +11 -25
  102. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +5 -4
  103. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +10 -12
  104. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +214 -7
  105. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +10 -10
  106. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +12 -214
  107. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +11 -9
  108. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +7 -12
  109. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +35 -12
  110. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +3 -3
  111. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +1 -1
  112. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +1 -1
  113. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +2 -2
  114. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +1 -1
  115. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +1 -1
  116. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index24.js +1 -1
  117. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +5 -5
  118. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +1 -1
  119. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +1 -1
  120. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +2 -2
  121. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index25.js +1 -1
  122. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +1 -1
  123. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +3 -3
  124. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +1 -1
  125. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +37 -10
  126. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +52 -72
  127. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +29 -44
  128. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +5 -20
  129. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +74 -34
  130. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +32 -30
  131. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +18 -40
  132. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index26.js +1 -1
  133. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +18 -61
  134. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +28 -94
  135. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +37 -107
  136. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +58 -83
  137. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +96 -22
  138. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +107 -52
  139. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +85 -26
  140. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +2 -60
  141. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +92 -16
  142. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +97 -63
  143. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index27.js +1 -1
  144. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +213 -28
  145. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +62 -126
  146. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +149 -160
  147. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +9 -27
  148. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +19 -29
  149. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +8 -78
  150. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +24 -25
  151. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +34 -5
  152. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +22 -128
  153. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +52 -44
  154. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index28.js +1 -1
  155. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +27 -116
  156. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +55 -106
  157. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +17 -47
  158. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +72 -204
  159. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +44 -70
  160. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +25 -488
  161. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +122 -163
  162. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +42 -2
  163. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +58 -92
  164. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +30 -96
  165. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index29.js +1 -1
  166. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +110 -209
  167. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +21 -41
  168. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +40 -58
  169. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +55 -29
  170. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +25 -114
  171. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +5 -22
  172. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +124 -40
  173. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +44 -52
  174. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +113 -36
  175. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +93 -329
  176. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index30.js +1 -1
  177. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +47 -300
  178. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +193 -91
  179. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +68 -160
  180. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +59 -259
  181. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +31 -25
  182. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +4 -20
  183. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +20 -149
  184. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +36 -29
  185. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +31 -4
  186. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +29 -15
  187. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index31.js +1 -1
  188. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +25 -31
  189. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +48 -29
  190. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +12 -33
  191. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +157 -29
  192. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +28 -50
  193. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +28 -12
  194. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +78 -8
  195. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +484 -17
  196. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +158 -24
  197. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +22 -19
  198. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index32.js +1 -1
  199. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +15 -64
  200. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +17 -51
  201. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +168 -26
  202. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +134 -5
  203. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +158 -73
  204. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +12 -32
  205. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +18 -19
  206. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +61 -19
  207. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +64 -39
  208. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +60 -14
  209. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index33.js +1 -1
  210. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +6 -78
  211. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +11 -77
  212. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +57 -39
  213. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +23 -21
  214. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +60 -15
  215. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +14 -19
  216. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +17 -167
  217. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +40 -131
  218. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +14 -162
  219. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +77 -9
  220. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index34.js +1 -1
  221. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +77 -19
  222. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +42 -61
  223. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +36 -63
  224. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +339 -52
  225. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +302 -7
  226. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +99 -7
  227. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +155 -55
  228. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +264 -21
  229. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +23 -61
  230. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +20 -14
  231. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +1 -1
  232. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +1 -1
  233. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +5 -5
  234. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +1 -1
  235. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index36.js +6 -6
  236. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +15 -6
  237. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +18 -28
  238. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +49 -53
  239. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +11 -36
  240. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +32 -26
  241. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +7 -7
  242. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +53 -53
  243. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +33 -15
  244. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index37.js +6 -6
  245. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +26 -32
  246. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +32 -5
  247. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +4 -9
  248. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +125 -83
  249. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +34 -17
  250. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +19 -83
  251. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +25 -266
  252. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +36 -37
  253. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +18 -61
  254. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +12 -43
  255. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index38.js +5 -5
  256. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +48 -23
  257. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +35 -126
  258. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +16 -111
  259. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +65 -80
  260. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +17 -94
  261. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +20 -16
  262. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +12 -7
  263. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +17 -7
  264. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +13 -11
  265. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +67 -2
  266. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index39.js +3 -3
  267. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +20 -284
  268. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +105 -42
  269. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +81 -14
  270. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +2 -32
  271. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +10 -4
  272. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +11 -127
  273. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +7 -96
  274. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +49 -33
  275. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +16 -33
  276. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +1 -1
  277. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index4.js +1 -1
  278. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index40.js +2 -2
  279. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +1 -1
  280. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index41.js +1 -1
  281. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +82 -19
  282. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +17 -12
  283. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +83 -47
  284. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +265 -46
  285. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +37 -65
  286. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +63 -17
  287. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +43 -21
  288. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +23 -14
  289. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +137 -17
  290. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index419.js +93 -11
  291. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index420.js +10 -65
  292. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index421.js +2 -21
  293. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +285 -2
  294. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index423.js +46 -19
  295. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index424.js +15 -28
  296. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index425.js +66 -35
  297. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index426.js +45 -14
  298. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index427.js +26 -22
  299. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index428.js +5 -50
  300. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index429.js +10 -11
  301. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index43.js +7 -7
  302. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index430.js +93 -66
  303. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index431.js +36 -45
  304. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index432.js +33 -26
  305. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index433.js +8 -29
  306. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index434.js +18 -67
  307. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index435.js +29 -57
  308. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index436.js +56 -28
  309. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index437.js +57 -8
  310. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index438.js +39 -31
  311. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index439.js +75 -85
  312. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index44.js +3 -3
  313. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index440.js +67 -23
  314. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index441.js +33 -99
  315. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index442.js +32 -111
  316. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index443.js +85 -75
  317. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index444.js +23 -67
  318. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index445.js +99 -33
  319. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index446.js +112 -12
  320. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index447.js +12 -29
  321. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index448.js +20 -15
  322. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index449.js +20 -35
  323. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index45.js +4 -4
  324. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index450.js +38 -95
  325. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index451.js +82 -15
  326. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index452.js +52 -74
  327. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index453.js +38 -20
  328. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index454.js +47 -9
  329. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index455.js +69 -52
  330. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index456.js +83 -69
  331. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index457.js +55 -21
  332. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index458.js +50 -30
  333. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index459.js +52 -16
  334. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index46.js +4 -4
  335. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index460.js +29 -50
  336. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index461.js +54 -56
  337. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index462.js +67 -28
  338. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index463.js +21 -43
  339. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index464.js +15 -36
  340. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index465.js +93 -13
  341. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index466.js +16 -54
  342. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index467.js +75 -74
  343. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index468.js +20 -84
  344. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index469.js +9 -55
  345. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index47.js +6 -6
  346. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index470.js +39 -53
  347. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index471.js +30 -51
  348. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index472.js +42 -29
  349. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index473.js +33 -36
  350. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index474.js +14 -45
  351. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index475.js +49 -48
  352. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index476.js +18 -82
  353. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index477.js +49 -18
  354. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index478.js +57 -14
  355. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +32 -39
  356. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +1 -1
  357. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +2 -2
  358. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +47 -39
  359. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +38 -18
  360. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +20 -48
  361. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index50.js +1 -1
  362. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index52.js +6 -6
  363. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index53.js +4 -4
  364. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index54.js +2 -2
  365. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index55.js +1 -1
  366. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index58.js +1 -1
  367. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index78.js +1 -1
  368. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index79.js +1 -1
  369. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index8.js +3 -3
  370. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index86.js +1 -1
  371. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index87.js +2 -2
  372. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index88.js +6 -6
  373. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index89.js +4 -4
  374. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index9.js +7 -7
  375. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index2.js +18 -18
  376. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +11 -11
  377. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +12 -12
  378. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +7 -7
  379. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +6 -6
  380. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +2 -2
  381. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +119 -119
  382. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +52 -52
  383. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +1671 -1613
  384. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +2 -2
  385. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +6 -6
  386. package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +19 -19
  387. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +4 -4
  388. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index7.js +2 -2
  389. package/dist/libs/tesouro-embedded-components-react/tags-widget/data-access/dist/index6.js +2 -2
  390. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index10.js +6 -6
  391. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index11.js +15 -15
  392. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index12.js +8 -8
  393. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index15.js +2 -2
  394. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index16.js +2 -2
  395. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index17.js +8 -8
  396. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index20.js +7 -7
  397. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index21.js +4 -4
  398. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index22.js +6 -6
  399. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index3.js +14 -14
  400. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index8.js +17 -17
  401. package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index9.js +2 -2
  402. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +2 -2
  403. package/package.json +1 -1
@@ -1,539 +1,101 @@
1
- import { jsx as e, jsxs as r, Fragment as Te } from "@emotion/react/jsx-runtime";
2
- import { MoniteScopedProviders as ct } from "./index83.js";
3
- import { useMoniteContext as dt } from "./index57.js";
4
- import { useCurrencies as mt } from "./index58.js";
5
- import { useMemo as $e, useState as w, useCallback as h } from "react";
1
+ import { jsx as t, jsxs as r } from "@emotion/react/jsx-runtime";
2
+ import { useState as f } from "react";
3
+ import { toast as n } from "react-hot-toast";
4
+ import "./index57.js";
5
+ import { useLingui as _ } from "@lingui/react";
6
6
  import "./index92.js";
7
- import { useLingui as ut } from "@lingui/react";
7
+ import { useFileInput as z } from "./index61.js";
8
8
  import "react-dom";
9
9
  import "@mui/x-data-grid";
10
- import { useComponentSettings as pt } from "./index67.js";
11
- import { useGetReceivableById as wt } from "./index82.js";
12
- import { useCounterpartById as ft } from "./index70.js";
13
- import "@tanstack/react-query";
14
- import { useCounterpartAddresses as ht } from "./index72.js";
15
- import { getCounterpartEmail as Pe } from "./index7.js";
16
- import { useMyEntity as vt } from "./index78.js";
17
- import { toast as u } from "react-hot-toast";
18
- import { useUserPermissions as bt } from "./index141.js";
19
- import "../../shared/data-access/dist/lib/rest/client/utils.gen.js";
20
- import "../../shared/data-access/dist/lib/EmbedApiContext.js";
21
- import "../../shared/data-access/dist/lib/rest/client.gen.js";
22
- import "../../shared/data-access/dist/lib/rest/zod.gen.js";
23
- import { Scope as D } from "../../shared/data-access/dist/lib/scopes.js";
24
- import { AccessRestriction as yt } from "./index152.js";
25
- import { Accordion as gt, AccordionItem as B, AccordionTrigger as z, AccordionContent as V } from "./index220.js";
26
- import { Badge as T } from "./index221.js";
27
- import { Button as j } from "./index84.js";
28
- import { DialogTitle as $ } from "./index222.js";
29
- import { Sheet as _t, SheetContent as xt, SheetDescription as Nt, SheetHeader as It, SheetTitle as Ct } from "./index130.js";
30
- import { TooltipProvider as Lt, Tooltip as Se, TooltipTrigger as ke, TooltipContent as Fe } from "./index223.js";
31
- import { Typography as s } from "./index85.js";
32
- import { cn as G } from "./index100.js";
33
- import { LoadingSpinner as Ee } from "./index131.js";
34
- import { NotFound as Me } from "./index149.js";
35
- import { ChevronLeft as Rt, Eye as At, Repeat as Oe, CircleAlert as Dt } from "lucide-react";
36
- import { headerIconButtonClass as P, STATUS_ICON as Tt, ACTION_ICON as $t, HEADER_TOOLTIP_DELAY as Pt, amountValueToneClass as St } from "./index224.js";
37
- import { buildInvoiceDetailsView as kt } from "./index225.js";
38
- import { preventTooltipFocusOpen as Be } from "./index226.js";
39
- import { buildEditInvoiceFormValues as Ft } from "./index227.js";
40
- import { getInvoiceValidationSchema as Et } from "./index173.js";
41
- import { useDuplicateInvoice as Mt } from "./index228.js";
42
- import { useGetOverdueReminderById as Ot } from "./index229.js";
43
- import { useGetPaymentRecords as Bt } from "./index230.js";
44
- import { useGetPaymentReminderById as zt } from "./index231.js";
45
- import { useGetRecurrenceById as Vt } from "./index232.js";
46
- import { useGetReceivablePDFById as jt } from "./index233.js";
47
- import { useGetInvoiceRequiredFields as Gt } from "./index234.js";
48
- import { useIssueReceivableById as Ht } from "./index235.js";
49
- import { usePauseRecurrence as Ut } from "./index236.js";
50
- import { useResumeRecurrence as qt } from "./index237.js";
51
- import { InvoiceDetailsAmountCell as Wt } from "./index238.js";
52
- import { InvoiceDetailsAttachments as Yt } from "./index239.js";
53
- import { InvoiceDetailsCloseButton as ze } from "./index240.js";
54
- import { ActionsModal as Jt } from "./index177.js";
55
- import { EditInvoiceDetails as Kt } from "./index241.js";
56
- import { InvoiceDetailsInfoRow as Ve } from "./index242.js";
57
- import { InvoiceDetailsCustomerRow as Qt } from "./index243.js";
58
- import { CounterpartDetails as Xt } from "./index2.js";
59
- import { InvoiceCancelModal as Zt } from "./index244.js";
60
- import { InvoiceDeleteModal as ei } from "./index245.js";
61
- import { InvoiceDetailsTabScheduledInvoices as ti } from "./index246.js";
62
- import { InvoiceRecurrenceStatusChip as ii } from "./index164.js";
63
- import { InvoiceStatusChip as ri } from "./index55.js";
64
- import { MarkAsUncollectibleModal as ni } from "./index247.js";
65
- import { InvoiceDetailsOverflowMenu as ai } from "./index248.js";
66
- import { RecordManualPaymentModal as si } from "./index249.js";
67
- import { RecurrenceCancelModal as oi } from "./index250.js";
68
- const xr = (d) => /* @__PURE__ */ e(ct, { children: /* @__PURE__ */ e(li, { ...d }) }), li = ({
69
- invoiceId: d,
70
- open: je,
71
- onCloseInvoiceDetails: _,
72
- onDuplicate: Ge,
73
- openInvoiceDetails: S
10
+ import { Button as s } from "./index84.js";
11
+ import { Popover as D, PopoverTrigger as P, PopoverContent as k } from "./index366.js";
12
+ import { cn as F } from "./index100.js";
13
+ import { ChevronUpIcon as I, ChevronDownIcon as U, CloudUpload as j, Copy as A, Plus as E } from "lucide-react";
14
+ const K = ({
15
+ isCreateAllowed: u,
16
+ onCreateInvoice: h,
17
+ handleFileUpload: w
74
18
  }) => {
75
19
  const {
76
- i18n: t
77
- } = ut(), {
78
- locale: H,
79
- componentSettings: He
80
- } = dt(), U = !!He?.receivables?.enableEntityBankAccount, {
81
- formatCurrencyToDisplay: q
82
- } = mt(), {
83
- receivablesCallbacks: Ue
84
- } = pt(), {
85
- data: i,
86
- isLoading: W
87
- } = wt(d, !0), y = i?.type === "invoice" ? i.counterpart_id : void 0, k = i?.type === "invoice" ? i.counterpart_billing_address?.id : void 0, {
88
- data: v,
89
- isLoading: f
90
- } = ft(y), x = !!Pe(v), {
91
- data: Y
92
- } = ht(y), qe = $e(() => Y?.data?.find((o) => o.id === k) ?? (i?.type === "invoice" ? i.counterpart_billing_address : void 0), [Y?.data, i, k]), {
93
- data: J,
94
- isFetching: We,
95
- isLoading: Ye
96
- } = vt(), {
97
- data: Je,
98
- isFetching: Ke,
99
- isLoading: Qe
100
- } = Gt({
101
- counterpart_billing_address_id: k,
102
- counterpart_country: qe?.country,
103
- counterpart_id: y,
104
- counterpart_type: v?.id === y && v?.type || void 0
105
- }), K = Je?.entity?.tax_id?.required, Q = !!(i?.type === "invoice" && (i.payment_reminder_id || i.overdue_reminder_id)), F = !!y && f || Ye || We || Qe || Ke, {
106
- data: Xe
107
- } = jt(d, i?.type === "invoice"), X = Xe?.file_url, {
108
- data: p,
109
- isLoading: Z
110
- } = Vt(i?.type === "invoice" ? i?.recurrence_id : void 0), {
111
- data: ee,
112
- isLoading: te
113
- } = Bt(i?.id), {
114
- data: ie
115
- } = zt(i?.type === "invoice" ? i?.payment_reminder_id : void 0), {
116
- data: re
117
- } = Ot(i?.type === "invoice" ? i?.overdue_reminder_id : void 0), [E, N] = w(!1), [ne, I] = w("edit"), [g, b] = w(null), [ae, se] = w(!1), [oe, le] = w(!1), [ce, de] = w(!1), [me, ue] = w(!1), [pe, we] = w(!1), C = bt(), fe = C.has(D.InvoiceReadOrg), he = C.has(D.InvoiceWriteOrg), ve = C.has(D.CounterpartReadOrg), be = C.has(D.CounterpartWriteOrg), {
118
- mutateAsync: L,
119
- isPending: Ze
120
- } = Ht(), {
121
- mutate: ye,
122
- isPending: et
123
- } = Mt(Ge), {
124
- mutate: ge,
125
- isPending: tt
126
- } = Ut(p?.id ?? "", d), {
127
- mutate: _e,
128
- isPending: it
129
- } = qt(p?.id ?? "", d), rt = je && !E, nt = fe && !W && !Z && !!i && i.type === "invoice", n = $e(() => {
130
- if (!(!i || i.type !== "invoice"))
131
- return kt(i, p, ee?.data ?? [], {
132
- i18n: t,
133
- formatCurrencyToDisplay: q,
134
- locale: H
135
- }, te, {
136
- paymentReminder: ie,
137
- overdueReminder: re
138
- });
139
- }, [i, p, ee, te, ie, re, t, q, H]), M = (o) => {
140
- switch (o) {
141
- case "edit":
142
- return t._("Edit");
143
- case "issue":
144
- return t._("Issue");
145
- case "issueAndSend":
146
- return t._("Issue and send");
147
- case "recordPayment":
148
- return t._("Record payment");
149
- case "send":
150
- return t._("Resend to customer");
151
- case "clone":
152
- return t._("Duplicate");
153
- case "cancel":
154
- return t._("Cancel invoice");
155
- case "delete":
156
- return t._("Delete");
157
- case "markUncollectible":
158
- return t._("Mark as uncollectible");
159
- case "pauseRecurrence":
160
- return t._("Pause series");
161
- case "resumeRecurrence":
162
- return t._("Resume series");
163
- case "cancelRecurrence":
164
- return t._("Cancel series");
20
+ i18n: e
21
+ } = _(), [c, a] = f(!1), {
22
+ FileInput: x,
23
+ openFileInput: b,
24
+ checkFileError: y
25
+ } = z(), [g, i] = f(!1), v = (l) => {
26
+ l.preventDefault(), i(!0);
27
+ }, N = (l) => {
28
+ l.preventDefault(), i(!1);
29
+ }, d = 10, C = (l) => {
30
+ l.preventDefault(), i(!1);
31
+ const o = Array.from(l.dataTransfer.files);
32
+ if (o.length > d) {
33
+ n.error(e._("You can only upload up to {fileCount} files at a time", {
34
+ fileCount: d
35
+ })), a(!1);
36
+ return;
165
37
  }
166
- }, m = h((o) => {
167
- he ? o() : u.error(t._("You don't have permission to update this document. Please, contact your system administrator for details."));
168
- }, [he, t]), xe = h((o) => {
169
- I(o), N(!0);
170
- }, []), Ne = h(() => {
171
- if (!i || i.type !== "invoice") return !1;
172
- const o = Ft(i, p);
173
- return Et(t, U, be).safeParse(o).success;
174
- }, [i, p, t, U, be]), R = h((o) => {
175
- if (!Ne())
176
- return xe(o), !1;
177
- if (F) return !1;
178
- if (K && !J?.tax_id)
179
- return u.error(t._("Set your organization's Tax ID to issue invoice")), !1;
180
- if (!Q) return !0;
181
- const l = Pe(v), c = v?.reminders_enabled;
182
- return !c && l ? (u.error(t._("Payment reminders are disabled for this customer. Please enable them in the customer details or turn them off.")), !1) : !l && c ? (u.error(t._("No email address is added for the selected customer. Please add it to the customer details or turn off the reminders.")), !1) : !c && !l ? (u.error(t._("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;
183
- }, [v, J?.tax_id, Q, t, K, F, Ne, xe]), Ie = h(async () => {
184
- if (R("issue"))
185
- try {
186
- await L({
187
- path: {
188
- receivable_id: d
189
- }
190
- });
191
- } catch {
192
- u.error(t._("Failed to issue invoice. Add any missing information to your draft invoice and try again."));
193
- }
194
- }, [R, L, d, t]), Ce = h(async () => {
195
- if (i?.counterpart_id && !f) {
196
- if (!x) {
197
- u.error(t._("This customer has no email address. Add one in the customer details to send the invoice."));
38
+ o.forEach((m) => {
39
+ const p = y(m);
40
+ if (p) {
41
+ n.error(p);
198
42
  return;
199
43
  }
200
- if (R("issueAndSend")) {
201
- try {
202
- await L({
203
- path: {
204
- receivable_id: d
205
- }
206
- });
207
- } catch {
208
- u.error(t._("Failed to issue invoice. Add any missing information to your draft invoice and try again."));
209
- return;
210
- }
211
- b({
212
- action: "issue",
213
- inlineLineItems: [],
214
- // Just issued now present it like the create flow ("Invoice issued").
215
- isEditFlow: !1,
216
- issue: {
217
- receivableId: d,
218
- counterpartId: i.counterpart_id
219
- }
220
- });
221
- }
222
- }
223
- }, [i?.counterpart_id, x, f, R, L, d, t]), Le = h((o) => {
224
- switch (o) {
225
- case "edit":
226
- return m(() => {
227
- I("edit"), N(!0);
228
- });
229
- case "issue":
230
- return m(Ie);
231
- case "issueAndSend":
232
- return m(Ce);
233
- case "send":
234
- return m(() => {
235
- if (!f) {
236
- if (!x) {
237
- u.error(t._("This customer has no email address. Add one in the customer details to send the invoice."));
238
- return;
239
- }
240
- i?.counterpart_id && b({
241
- action: "issue",
242
- inlineLineItems: [],
243
- // Already issued — a plain resend, not a fresh issue.
244
- isEditFlow: !0,
245
- issue: {
246
- receivableId: d,
247
- counterpartId: i.counterpart_id
248
- }
249
- });
250
- }
251
- });
252
- case "clone":
253
- return m(() => ye({
254
- path: {
255
- receivable_id: d
256
- }
257
- }));
258
- case "cancel":
259
- return m(() => se(!0));
260
- case "delete":
261
- return m(() => le(!0));
262
- case "markUncollectible":
263
- return m(() => de(!0));
264
- case "pauseRecurrence":
265
- return m(() => ge(void 0));
266
- case "resumeRecurrence":
267
- return m(() => _e(void 0));
268
- case "cancelRecurrence":
269
- return m(() => ue(!0));
270
- case "recordPayment":
271
- return;
272
- }
273
- }, [m, Ie, Ce, x, f, i?.counterpart_id, ye, d, ge, _e, t]), at = () => {
274
- if (W || Z)
275
- return /* @__PURE__ */ r("div", { className: "ttw:flex ttw:w-full ttw:items-center ttw:justify-center ttw:h-full", children: [
276
- /* @__PURE__ */ e($, { hidden: !0, children: t._("Loading invoice details") }),
277
- /* @__PURE__ */ e(Ee, {})
278
- ] });
279
- if (!fe)
280
- return /* @__PURE__ */ r("div", { className: "ttw:w-3/4 ttw:m-auto", children: [
281
- /* @__PURE__ */ e($, { hidden: !0, children: t._("Access restricted") }),
282
- /* @__PURE__ */ e(yt, {})
283
- ] });
284
- if (i && i.type !== "invoice")
285
- return /* @__PURE__ */ r("div", { className: "ttw:w-3/4 ttw:m-auto", children: [
286
- /* @__PURE__ */ e($, { hidden: !0, children: t._("Receivable type not supported") }),
287
- /* @__PURE__ */ e(Me, { title: t._("Receivable type not supported"), description: t._("Receivable type {type} is not supported. Only invoice is supported.", {
288
- type: i.type
289
- }) })
290
- ] });
291
- if (!i || !n)
292
- return /* @__PURE__ */ r("div", { className: "ttw:w-3/4 ttw:m-auto", children: [
293
- /* @__PURE__ */ e($, { hidden: !0, children: t._("Invoice not found") }),
294
- /* @__PURE__ */ e(Me, { title: t._("Invoice not found"), description: t._("There is no invoice for the provided id: {invoiceId}", {
295
- invoiceId: d
296
- }) })
297
- ] });
298
- const o = Tt[n.status], l = n.amountTone === "danger", c = n.recurringSeries, A = !!c, O = i.counterpart_name, st = i.counterpart_id && ve ? () => we(!0) : void 0, Re = n.primaryActions.length > 0 ? /* @__PURE__ */ e("div", { className: "ttw:flex ttw:items-center ttw:gap-2 ttw:border-t ttw:border-border ttw:pt-3", children: n.primaryActions.map((a, ot) => {
299
- const Ae = $t[a], De = ot === n.primaryActions.length - 1 ? "default" : "outline";
300
- return a === "recordPayment" && i.type === "invoice" ? /* @__PURE__ */ e(si, { invoice: i, children: ({
301
- openModal: lt
302
- }) => /* @__PURE__ */ r(j, { type: "button", size: "sm", variant: De, onClick: () => m(lt), children: [
303
- /* @__PURE__ */ e(Ae, { className: "ttw:size-4" }),
304
- M(a)
305
- ] }) }, a) : /* @__PURE__ */ r(
306
- j,
307
- {
308
- type: "button",
309
- size: "sm",
310
- variant: De,
311
- disabled: (a === "issue" || a === "issueAndSend") && (Ze || F) || a === "issueAndSend" && f,
312
- onClick: () => Le(a),
313
- children: [
314
- /* @__PURE__ */ e(Ae, { className: "ttw:size-4" }),
315
- M(a)
316
- ]
317
- },
318
- a
319
- );
320
- }) }) : null;
321
- return /* @__PURE__ */ r(Te, { children: [
322
- n.seriesLink ? /* @__PURE__ */ e("div", { className: "ttw:border-b ttw:border-border ttw:px-6 ttw:py-3", children: /* @__PURE__ */ r("button", { type: "button", onClick: () => n.seriesLink && S?.(n.seriesLink.invoiceId), className: "ttw:flex ttw:items-center ttw:gap-1 ttw:text-sm ttw:text-primary ttw:hover:underline", children: [
323
- /* @__PURE__ */ e(Rt, { className: "ttw:size-4", "aria-hidden": "true" }),
324
- t._("Back to {title} recurring series", {
325
- title: n.seriesLink.title
326
- })
327
- ] }) }) : null,
328
- /* @__PURE__ */ r(It, { 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", children: [
329
- /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5", children: [
330
- /* @__PURE__ */ e(Ct, { className: "ttw:text-xl ttw:font-semibold ttw:text-foreground", children: n.title }),
331
- n.subtitle ? /* @__PURE__ */ e(s, { variant: "body2", color: "muted", children: n.subtitle }) : null
44
+ w(m);
45
+ }), a(!1);
46
+ };
47
+ return /* @__PURE__ */ t("div", { className: "Monite-Payables", children: /* @__PURE__ */ r(D, { open: c, onOpenChange: a, children: [
48
+ /* @__PURE__ */ t(P, { asChild: !0, children: /* @__PURE__ */ r(s, { size: "lg", disabled: !u, children: [
49
+ e._("Add new bill"),
50
+ c ? /* @__PURE__ */ t(I, {}) : /* @__PURE__ */ t(U, {})
51
+ ] }) }),
52
+ /* @__PURE__ */ r(k, { align: "end", className: "ttw:w-auto ttw:min-w-110 ttw:border-none ttw:p-6", children: [
53
+ /* @__PURE__ */ r("div", { className: "ttw:w-110 ttw:flex ttw:flex-col ttw:gap-4", onClick: (l) => {
54
+ l.preventDefault(), l.stopPropagation();
55
+ }, children: [
56
+ /* @__PURE__ */ r("div", { children: [
57
+ /* @__PURE__ */ t("h3", { className: "ttw:text-xl ttw:font-semibold ttw:text-zinc-950", children: e._("Upload bills") }),
58
+ /* @__PURE__ */ t("p", { className: "ttw:text-sm ttw:font-normal ttw:text-zinc-500", children: e._("Upload your bills and we'll automatically pull the details so you can review and approve.") })
332
59
  ] }),
333
- /* @__PURE__ */ e(Lt, { delayDuration: Pt, children: /* @__PURE__ */ r("div", { className: "ttw:flex ttw:items-center ttw:gap-1.5", children: [
334
- X ? /* @__PURE__ */ r(Se, { children: [
335
- /* @__PURE__ */ e(ke, { asChild: !0, onFocus: Be, children: /* @__PURE__ */ e(j, { asChild: !0, variant: "ghost", size: "icon", className: P, children: /* @__PURE__ */ e("a", { href: X, target: "_blank", rel: "noreferrer", "aria-label": t._("View PDF"), children: /* @__PURE__ */ e(At, { className: "ttw:size-4" }) }) }) }),
336
- /* @__PURE__ */ e(Fe, { children: t._("View PDF") })
337
- ] }) : null,
338
- n.overflowActions.length > 0 ? /* @__PURE__ */ e(ai, { actions: n.overflowActions, triggerLabel: t._("More actions"), getActionLabel: M, onSelect: Le, isActionDisabled: (a) => a === "clone" && et || a === "pauseRecurrence" && tt || a === "resumeRecurrence" && it || // "Resend" needs the customer email, so wait for it to load.
339
- a === "send" && f, className: P }) : null,
340
- /* @__PURE__ */ r(Se, { children: [
341
- /* @__PURE__ */ e(ke, { asChild: !0, onFocus: Be, children: /* @__PURE__ */ e(ze, { label: t._("Close"), onClose: _, className: P }) }),
342
- /* @__PURE__ */ e(Fe, { children: t._("Close") })
343
- ] })
344
- ] }) })
345
- ] }),
346
- /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col", children: [
347
- /* @__PURE__ */ e("div", { className: "ttw:px-6", children: A && c ? (
348
- // Recurring series master: recurring amount + series status +
349
- // start/end, in place of the per-invoice amount rows. The card
350
- // takes a violet tint (vs the neutral invoice card) to signal a
351
- // recurrence, matching the Recurring badge.
352
- /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-violet-50 ttw:p-4", children: [
353
- /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5", children: [
354
- /* @__PURE__ */ e(s, { variant: "caption", color: "muted", children: t._("Recurring amount") }),
355
- /* @__PURE__ */ r("div", { className: "ttw:flex ttw:items-baseline ttw:gap-1.5", children: [
356
- /* @__PURE__ */ e(s, { component: "span", variant: "h3", className: St[n.amountTone], children: c.amountLabel }),
357
- /* @__PURE__ */ e(s, { component: "span", variant: "body2", color: "muted", children: c.amountPeriodLabel })
358
- ] })
359
- ] }),
360
- /* @__PURE__ */ r("div", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
361
- /* @__PURE__ */ r(T, { variant: "outline", className: "ttw:gap-1 ttw:border-violet-200 ttw:bg-violet-50 ttw:text-violet-700", children: [
362
- /* @__PURE__ */ e(Oe, { className: "ttw:size-3" }),
363
- t._("Recurring")
364
- ] }),
365
- /* @__PURE__ */ e(ii, { status: c.status, showIcon: !0 })
366
- ] }),
367
- /* @__PURE__ */ r("div", { className: "ttw:flex ttw:gap-12", children: [
368
- /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5", children: [
369
- /* @__PURE__ */ e(s, { variant: "caption", color: "muted", children: t._("Starts on") }),
370
- /* @__PURE__ */ e(s, { component: "span", variant: "body2", children: c.startsOnLabel })
371
- ] }),
372
- /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5", children: [
373
- /* @__PURE__ */ e(s, { variant: "caption", color: "muted", children: t._("Ends on") }),
374
- /* @__PURE__ */ e(s, { component: "span", variant: "body2", children: c.endsOnLabel })
375
- ] })
376
- ] }),
377
- Re
378
- ] })
379
- ) : /* @__PURE__ */ r("div", { className: G("ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted ttw:p-4", l && "ttw:border ttw:border-red-200"), children: [
380
- /* @__PURE__ */ e("div", { className: "ttw:flex ttw:flex-row ttw:flex-wrap ttw:gap-x-12 ttw:gap-y-2", children: n.amountRows.map((a) => /* @__PURE__ */ e(Wt, { row: a, defaultTone: n.amountTone }, a.label)) }),
381
- /* @__PURE__ */ r("div", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
382
- n.overdueLabel ? /* @__PURE__ */ r("span", { 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", children: [
383
- /* @__PURE__ */ e(Dt, { className: "ttw:size-3" }),
384
- n.overdueLabel
385
- ] }) : /* @__PURE__ */ e(ri, { status: n.status, variant: "outline", label: n.statusLabel, icon: o ? /* @__PURE__ */ e(o, { className: "ttw:size-3" }) : void 0 }),
386
- n.recurring ? /* @__PURE__ */ r(T, { variant: "outline", className: "ttw:gap-1 ttw:border-violet-200 ttw:bg-violet-50 ttw:text-violet-700", children: [
387
- /* @__PURE__ */ e(Oe, { className: "ttw:size-3" }),
388
- t._("Recurring")
389
- ] }) : null
60
+ /* @__PURE__ */ t("div", { className: F("ttw:box-border ttw:cursor-pointer ttw:w-full ttw:h-36.5 ttw:flex ttw:flex-col ttw:items-center ttw:justify-center ttw:text-center ttw:border ttw:rounded-lg ttw:border-dashed ttw:border-zinc-200 ttw:bg-zinc-50", g && "ttw:bg-transparent"), onDragOver: v, onDragLeave: N, onDrop: C, onClick: b, children: /* @__PURE__ */ r("div", { className: "ttw:mx-auto ttw:flex ttw:flex-col ttw:items-center ttw:gap-2", children: [
61
+ /* @__PURE__ */ t("div", { className: "ttw:w-11 ttw:h-11 ttw:rounded-full ttw:bg-primary ttw:flex ttw:items-center ttw:justify-center", children: /* @__PURE__ */ t(j, { className: "ttw:text-white ttw:size-5" }) }),
62
+ /* @__PURE__ */ r("p", { className: "ttw:text-sm ttw:font-medium ttw:text-zinc-950", children: [
63
+ e._("Drop your files here, or"),
64
+ " ",
65
+ /* @__PURE__ */ t("span", { className: "ttw:text-primary ttw:underline", children: e._("click to browse") })
390
66
  ] }),
391
- /* @__PURE__ */ r("div", { className: "ttw:flex ttw:gap-12", children: [
392
- /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5", children: [
393
- /* @__PURE__ */ e(s, { variant: "caption", color: "muted", children: t._("Invoice date") }),
394
- /* @__PURE__ */ e(s, { component: "span", variant: "body2", children: n.invoiceDateLabel })
395
- ] }),
396
- /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-0.5", children: [
397
- /* @__PURE__ */ e(s, { variant: "caption", color: "muted", children: n.dueDateCaption }),
398
- /* @__PURE__ */ e(s, { component: "span", variant: "body2", children: n.dueDateLabel })
399
- ] })
400
- ] }),
401
- Re
67
+ /* @__PURE__ */ t("p", { className: "ttw:text-xs ttw:font-normal ttw:text-zinc-500", children: e._("PDF, PNG or JPG (max. 20MB)") })
402
68
  ] }) }),
403
- /* @__PURE__ */ r("div", { className: "ttw:px-6", children: [
404
- n.paymentHistory ? /* @__PURE__ */ r("section", { "aria-label": t._("Payment history"), className: "ttw:border-b ttw:border-border ttw:py-4", children: [
405
- /* @__PURE__ */ e(s, { component: "h3", variant: "body2", className: "ttw:mb-3 ttw:font-medium", children: t._("Payment history") }),
406
- n.paymentHistory.loading ? /* @__PURE__ */ e("div", { className: "ttw:flex ttw:py-2", children: /* @__PURE__ */ e(Ee, { className: "ttw:h-5 ttw:w-5 ttw:border-2" }) }) : n.paymentHistory.rows.length === 0 ? /* @__PURE__ */ e(s, { variant: "body2", className: n.paymentHistory.emptyTone === "danger" ? "ttw:text-red-600" : "ttw:text-muted-foreground", children: t._("You've received no payments yet.") }) : /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col", children: [
407
- n.paymentHistory.rows.map((a) => /* @__PURE__ */ r("div", { className: "ttw:flex ttw:justify-between ttw:border-b ttw:border-border ttw:py-2", children: [
408
- /* @__PURE__ */ e(s, { component: "span", variant: "body2", children: a.dateLabel }),
409
- /* @__PURE__ */ e(s, { component: "span", variant: "body2", children: a.amountLabel })
410
- ] }, a.id)),
411
- /* @__PURE__ */ r("div", { className: "ttw:flex ttw:justify-between ttw:py-2 ttw:font-medium", children: [
412
- /* @__PURE__ */ e(s, { component: "span", variant: "body2", children: t._("Total received") }),
413
- /* @__PURE__ */ e(s, { component: "span", variant: "body2", children: n.paymentHistory.totalLabel })
414
- ] })
415
- ] })
416
- ] }) : null,
417
- O || n.customerContact.length > 0 ? /* @__PURE__ */ r("section", { "aria-label": t._("Customer details"), className: "ttw:border-b ttw:border-border ttw:py-4", children: [
418
- /* @__PURE__ */ e(s, { component: "h3", variant: "body2", className: "ttw:mb-3 ttw:font-medium", children: t._("Customer details") }),
419
- /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col", children: [
420
- O ? /* @__PURE__ */ e(Qt, { label: t._("Name"), name: O, onOpenCounterpart: st }) : null,
421
- n.customerContact.map((a) => /* @__PURE__ */ e(Ve, { ...a }, a.label))
422
- ] })
423
- ] }) : null,
424
- /* @__PURE__ */ r(gt, { type: "multiple", defaultValue: ["attachments"], className: "ttw:w-full", children: [
425
- /* @__PURE__ */ r(B, { value: "billing", children: [
426
- /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e("span", { className: "ttw:group-hover:underline", children: t._("Billing details") }) }),
427
- /* @__PURE__ */ e(V, { children: /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col", children: [
428
- n.billingItems.map((a) => /* @__PURE__ */ e(Ve, { ...a }, a.label)),
429
- n.seriesLink ? /* @__PURE__ */ r("div", { className: "ttw:flex ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0", children: [
430
- /* @__PURE__ */ e(s, { component: "span", variant: "body2", color: "muted", className: "ttw:w-40 ttw:shrink-0", children: t._("Recurring series") }),
431
- /* @__PURE__ */ e("button", { type: "button", onClick: () => n.seriesLink && S?.(n.seriesLink.invoiceId), className: "ttw:text-left ttw:text-primary ttw:hover:underline", children: n.seriesLink.title })
432
- ] }) : null
433
- ] }) })
434
- ] }),
435
- A ? null : /* @__PURE__ */ r(B, { value: "line-items", children: [
436
- /* @__PURE__ */ e(z, { children: /* @__PURE__ */ r("span", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
437
- /* @__PURE__ */ e("span", { className: "ttw:group-hover:underline", children: t._("Line items") }),
438
- /* @__PURE__ */ e(T, { variant: "secondary", className: "ttw:rounded-full", children: n.lineItems.length })
439
- ] }) }),
440
- /* @__PURE__ */ e(V, { children: /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col", children: [
441
- n.lineItems.length === 0 ? /* @__PURE__ */ e(s, { variant: "body2", color: "muted", className: "ttw:py-3", children: t._("No line items.") }) : n.lineItems.map((a) => /* @__PURE__ */ r("div", { className: "ttw:flex ttw:items-start ttw:justify-between ttw:border-b ttw:border-border ttw:py-3", children: [
442
- /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col", children: [
443
- /* @__PURE__ */ e(s, { component: "span", variant: "body2", className: "ttw:font-medium", children: a.name }),
444
- /* @__PURE__ */ e(s, { component: "span", variant: "body2", color: "muted", children: t._("{quantity} x {price} ea", {
445
- quantity: a.quantityLabel,
446
- price: a.unitPriceLabel
447
- }) })
448
- ] }),
449
- /* @__PURE__ */ e(s, { component: "span", variant: "body2", children: a.totalLabel })
450
- ] }, a.id)),
451
- n.lineItemTotals.length > 0 ? /* @__PURE__ */ e("div", { className: "ttw:flex ttw:flex-col ttw:gap-1 ttw:py-3", children: n.lineItemTotals.map((a) => /* @__PURE__ */ r("div", { className: G("ttw:flex ttw:justify-between", a.emphasis && "ttw:font-medium"), children: [
452
- /* @__PURE__ */ e(s, { component: "span", variant: "body2", children: a.label }),
453
- /* @__PURE__ */ e(s, { component: "span", variant: "body2", children: a.value })
454
- ] }, a.label)) }) : null
455
- ] }) })
456
- ] }),
457
- !A && n.notes ? /* @__PURE__ */ r(B, { value: "notes", children: [
458
- /* @__PURE__ */ e(z, { children: /* @__PURE__ */ r("span", { className: "ttw:flex ttw:items-center ttw:gap-2", children: [
459
- /* @__PURE__ */ e("span", { className: "ttw:group-hover:underline", children: t._("Notes") }),
460
- /* @__PURE__ */ e(T, { variant: "secondary", className: "ttw:rounded-full", children: [n.notes.opening, n.notes.closing].filter(Boolean).length })
461
- ] }) }),
462
- /* @__PURE__ */ e(V, { children: /* @__PURE__ */ e("div", { className: "ttw:flex ttw:flex-col ttw:gap-3", children: [{
463
- label: t._("Opening note to customer"),
464
- text: n.notes.opening
465
- }, {
466
- label: t._("Closing note to customer"),
467
- text: n.notes.closing
468
- }].filter((a) => a.text).map((a) => /* @__PURE__ */ r("div", { children: [
469
- /* @__PURE__ */ e(s, { variant: "body2", className: "ttw:mb-1 ttw:font-medium", children: a.label }),
470
- /* @__PURE__ */ e(s, { variant: "body2", color: "muted", children: a.text })
471
- ] }, a.label)) }) })
472
- ] }) : null,
473
- /* @__PURE__ */ e(Yt, { attachments: i.attachments ?? [] })
474
- ] }),
475
- A && c && p ? /* @__PURE__ */ r("section", { "aria-label": c.scheduleTitle, className: "ttw:border-t ttw:border-border ttw:py-4", children: [
476
- /* @__PURE__ */ e(s, { component: "h3", variant: "body2", className: "ttw:mb-3 ttw:font-medium", children: c.scheduleTitle }),
477
- /* @__PURE__ */ e(ti, { invoice: i, recurrence: p, openInvoiceDetails: S })
478
- ] }) : null
69
+ /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col", children: [
70
+ /* @__PURE__ */ t("h3", { className: "ttw:text-primary ttw:text-sm ttw:font-semibold", children: e._("Send via email") }),
71
+ /* @__PURE__ */ t("p", { className: "ttw:text-zinc-500 ttw:font-normal ttw:text-sm", children: e._("Email your bills here and they'll appear in your bill pay inbox, ready to review and pay.") })
72
+ ] }),
73
+ /* @__PURE__ */ r("div", { className: "ttw:px-3 ttw:h-14 ttw:border ttw:border-zinc-200 ttw:rounded-lg ttw:flex ttw:items-center ttw:justify-between ttw:gap-6", children: [
74
+ /* @__PURE__ */ t("span", { children: e._("bills@business-banking.com") }),
75
+ /* @__PURE__ */ r(s, { type: "button", variant: "ghost", size: "sm", className: "ttw:text-primary ttw:hover:bg-primary-foreground ttw:hover:text-primary", onClick: () => {
76
+ navigator.clipboard.writeText("bills@business-banking.com"), n.success(e._("Email address copied to clipboard"));
77
+ }, children: [
78
+ /* @__PURE__ */ t(A, {}),
79
+ e._("Copy")
80
+ ] })
81
+ ] }),
82
+ /* @__PURE__ */ r("div", { className: "ttw:flex ttw:flex-col ttw:gap-4", children: [
83
+ /* @__PURE__ */ t("h3", { className: "ttw:text-sm ttw:font-semibold ttw:text-primary", children: e._("Or add bill manually") }),
84
+ /* @__PURE__ */ r(s, { onClick: () => {
85
+ a(!1), h();
86
+ }, className: "ttw:w-fit ttw:bg-primary-foreground ttw:hover:bg-primary-foreground ttw:text-primary", children: [
87
+ /* @__PURE__ */ t(E, {}),
88
+ e._("Add new bill")
89
+ ] })
479
90
  ] })
480
- ] })
481
- ] });
482
- };
483
- return /* @__PURE__ */ r(Te, { children: [
484
- E && i && /* @__PURE__ */ e(Kt, { isOpen: E, invoice: i, issueIntent: ne !== "edit", onUpdated: (o, l) => {
485
- N(!1);
486
- const c = ne !== "issue";
487
- I("edit"), Ue?.onUpdate?.(o.id, o), l.issued && c && l.hasCustomerEmail ? b({
488
- action: "issue",
489
- isEditFlow: !1,
490
- inlineLineItems: l.inlineLineItems,
491
- issue: {
492
- receivableId: o.id,
493
- counterpartId: l.counterpartId
494
- }
495
- }) : l.issued && l.inlineLineItems.length > 0 ? b({
496
- action: "issue",
497
- isEditFlow: !1,
498
- inlineLineItems: l.inlineLineItems
499
- }) : l.inlineLineItems.length > 0 && b({
500
- action: l.activatedRecurrence ? "recurrence" : "update",
501
- isEditFlow: !0,
502
- inlineLineItems: l.inlineLineItems
503
- });
504
- }, onCancel: () => {
505
- N(!1), I("edit");
506
- } }),
507
- /* @__PURE__ */ e(_t, { open: rt, modal: !1, onOpenChange: _, children: /* @__PURE__ */ r(
508
- xt,
509
- {
510
- showCloseButton: !1,
511
- layer: "under-dialogs",
512
- className: "ttw:overflow-y-auto ttw:p-0",
513
- children: [
514
- /* @__PURE__ */ e(Nt, { hidden: !0, children: t._("Invoice details") }),
515
- nt ? null : /* @__PURE__ */ e(ze, { label: t._("Close"), onClose: _, className: G(P, "ttw:absolute ttw:right-4 ttw:top-4 ttw:z-10") }),
516
- at(),
517
- ae && /* @__PURE__ */ e(Zt, { invoiceId: i?.id ?? "", open: ae, onClose: () => se(!1) }),
518
- oe && /* @__PURE__ */ e(ei, { open: oe, onClose: () => le(!1), invoiceId: i?.id ?? "", documentId: i?.type === "invoice" ? i?.document_id : void 0, onDelete: _ }),
519
- ce && /* @__PURE__ */ e(ni, { invoiceId: i?.id ?? "", open: ce, onClose: () => de(!1) }),
520
- me && i?.type === "invoice" && /* @__PURE__ */ e(oi, { invoice: i, open: me, onClose: () => ue(!1) }),
521
- pe && i?.counterpart_id && ve && /* @__PURE__ */ e(
522
- Xt,
523
- {
524
- counterpartId: i.counterpart_id,
525
- open: pe,
526
- onClose: () => we(!1),
527
- showActionsMenu: !1,
528
- customerType: "customer"
529
- }
530
- ),
531
- g && /* @__PURE__ */ e(Jt, { open: !0, isEditFlow: g.isEditFlow, action: g.action, issue: g.issue, inlineLineItems: g.inlineLineItems, onClose: () => b(null) })
532
- ]
533
- }
534
- ) })
535
- ] });
91
+ ] }),
92
+ /* @__PURE__ */ t(x, { "aria-label": e._("Upload payable files"), multiple: !0, onChange: (l) => {
93
+ const o = l.target.files;
94
+ o && w(o), a(!1);
95
+ } })
96
+ ] })
97
+ ] }) });
536
98
  };
537
99
  export {
538
- xr as InvoiceDetailsPanel
100
+ K as CreatePayableMenu
539
101
  };