@tesouro/embedded-components-react 0.3.19 → 0.3.22

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 (210) hide show
  1. package/dist/index.css +9 -0
  2. package/dist/index.js +1 -1
  3. package/dist/lib/BillPayWidget.js +1 -1
  4. package/dist/lib/monite-sdk.js +18 -18
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +4 -4
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +2 -2
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +1 -1
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +1 -1
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +1 -1
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +14 -1
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +4 -1
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +3 -1
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +28 -97
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +81 -176
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +50 -4
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +250 -5
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +106 -107
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +209 -1
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +3 -24
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +8 -0
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +2 -2
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +114 -0
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +1 -0
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +25 -0
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +21 -17
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +2 -0
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +36 -11
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +10 -283
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +199 -8
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +3 -8
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +14 -91
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +314 -0
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +10 -2
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +4 -14
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +85 -105
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +2 -7
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +16 -28
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +113 -2
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +2 -7
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +5 -32
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +30 -2
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +2 -12
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +5 -104
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +34 -2
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +2 -18
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +9 -7
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +81 -145
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +1 -1
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +15 -11
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +8 -87
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +170 -2
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +2 -0
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +14 -0
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +89 -0
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +2 -0
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +1 -1
  57. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +19 -19
  58. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +1 -1
  59. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +16 -20
  60. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +13 -12
  61. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +19 -97
  62. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +98 -42
  63. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +43 -27
  64. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +30 -1
  65. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +1 -17
  66. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +11 -10
  67. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +14 -4
  68. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +4 -13
  69. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +7 -7
  70. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +18 -9
  71. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +8 -105
  72. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +102 -35
  73. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +36 -45
  74. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +44 -71
  75. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +72 -100
  76. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +99 -43
  77. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +35 -178
  78. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +171 -125
  79. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js +134 -123
  80. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index500.js +125 -73
  81. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index501.js +63 -232
  82. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index502.js +248 -8
  83. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +8 -6
  84. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index504.js +5 -456
  85. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index505.js +455 -21
  86. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index506.js +17 -12
  87. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index507.js +13 -49
  88. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index508.js +51 -43
  89. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index509.js +46 -14
  90. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index510.js +13 -41
  91. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index511.js +39 -144
  92. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index512.js +143 -112
  93. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index513.js +114 -39
  94. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index514.js +33 -25
  95. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index515.js +32 -19
  96. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index516.js +3 -3
  97. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index517.js +19 -21
  98. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index518.js +20 -72
  99. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index519.js +73 -17
  100. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index520.js +18 -172
  101. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index521.js +149 -116
  102. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index522.js +136 -30
  103. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index523.js +31 -115
  104. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index524.js +116 -19
  105. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index525.js +10 -36
  106. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index526.js +46 -14
  107. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index527.js +13 -23
  108. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index528.js +21 -25
  109. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index529.js +26 -36
  110. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index530.js +36 -77
  111. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index531.js +77 -50
  112. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index532.js +50 -33
  113. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index533.js +34 -89
  114. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index534.js +86 -48
  115. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index535.js +54 -1
  116. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index536.js +1 -40
  117. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index537.js +40 -1
  118. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index538.js +0 -135
  119. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index539.js +129 -102
  120. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index540.js +105 -50
  121. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index541.js +48 -779
  122. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index542.js +780 -87
  123. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index543.js +84 -97
  124. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index544.js +105 -6
  125. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index545.js +6 -27
  126. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index546.js +23 -11
  127. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index547.js +13 -2
  128. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index548.js +2 -25
  129. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index549.js +25 -14
  130. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index550.js +14 -171
  131. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index551.js +163 -200
  132. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index552.js +204 -78
  133. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index553.js +82 -17
  134. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index554.js +17 -158
  135. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index555.js +146 -85
  136. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index556.js +95 -42
  137. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index557.js +46 -4
  138. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index558.js +4 -16
  139. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index559.js +13 -24
  140. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index560.js +27 -1
  141. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index561.js +0 -186
  142. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index562.js +186 -0
  143. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index563.js +0 -42
  144. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index564.js +41 -3
  145. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index565.js +5 -24
  146. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index566.js +20 -73
  147. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index567.js +74 -16
  148. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index568.js +16 -19
  149. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index569.js +19 -5
  150. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index570.js +4 -8
  151. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index571.js +10 -11
  152. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index572.js +11 -131
  153. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index573.js +129 -4
  154. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index574.js +4 -4
  155. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index575.js +8 -5
  156. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index576.js +4 -221
  157. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index577.js +219 -11
  158. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index578.js +12 -34
  159. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index579.js +32 -181
  160. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index580.js +168 -189
  161. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index581.js +192 -88
  162. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index582.js +97 -61
  163. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index583.js +63 -54
  164. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index584.js +46 -83
  165. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index585.js +91 -40
  166. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index586.js +39 -75
  167. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index587.js +63 -71
  168. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index588.js +85 -12
  169. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index589.js +12 -24
  170. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index590.js +25 -16
  171. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index591.js +14 -2
  172. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index592.js +4 -23
  173. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index593.js +23 -0
  174. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index594.js +1 -24
  175. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index595.js +24 -4
  176. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index596.js +4 -13
  177. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index597.js +9 -13
  178. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index598.js +13 -4
  179. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index599.js +4 -8
  180. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index600.js +8 -4
  181. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index601.js +8 -6
  182. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index602.js +6 -22
  183. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index603.js +17 -68
  184. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index604.js +66 -113
  185. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index605.js +104 -64
  186. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index606.js +72 -138
  187. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index607.js +144 -28
  188. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index608.js +28 -16
  189. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index609.js +14 -87
  190. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index610.js +91 -3
  191. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index611.js +3 -26
  192. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index612.js +22 -67
  193. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index613.js +71 -1
  194. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index614.js +0 -65
  195. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index615.js +66 -29
  196. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index616.js +30 -2
  197. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index617.js +2 -34
  198. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index618.js +33 -15
  199. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index619.js +14 -29
  200. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index620.js +29 -26
  201. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index621.js +30 -2
  202. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index622.js +2 -97
  203. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index623.js +97 -0
  204. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +1 -1
  205. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  206. package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +1 -1
  207. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -1
  208. package/dist/packages/shared-ui-shadcn/dist/index.js +16 -11
  209. package/package.json +1 -1
  210. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +0 -2
@@ -1,22 +1,119 @@
1
- import { Typography as e } from "./index62.js";
2
- import { jsx as t, jsxs as n } from "@emotion/react/jsx-runtime";
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 "./index47.js";
4
+ import { Button as n } from "./index56.js";
5
+ import { getDraftInvoiceValidationSchema as r, getInvoiceValidationSchema as i } from "./index98.js";
6
+ import { useUserPermissions as a } from "./index116.js";
7
+ import { useMeasureUnitsMapping as o } from "./index165.js";
8
+ import { useGetRecurrenceById as s } from "./index168.js";
9
+ import { willRecurrenceIssue as c } from "./index190.js";
10
+ import { buildEditInvoiceFormValues as l } from "./index197.js";
11
+ import "./index202.js";
12
+ import { LoadingPage as u } from "./index260.js";
13
+ import "./index261.js";
14
+ import { useGetMeasureUnits as d } from "./index458.js";
15
+ import { useReceivableSubmit as f } from "./index459.js";
16
+ import { ReceivableFormLayout as p } from "./index512.js";
17
+ import { useCallback as m, useEffect as h, useMemo as g, useRef as _ } from "react";
18
+ import { Fragment as v, jsx as y, jsxs as b } from "@emotion/react/jsx-runtime";
19
+ import { useLingui as x } from "@lingui/react";
20
+ import { useForm as S } from "react-hook-form";
21
+ import { zodResolver as C } from "@hookform/resolvers/zod";
3
22
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index524.js
4
- function r({ label: r, value: i }) {
5
- return /* @__PURE__ */ n("div", {
6
- className: "ttw:flex ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0",
7
- children: [/* @__PURE__ */ t(e, {
8
- component: "span",
9
- variant: "body2",
10
- color: "muted",
11
- className: "ttw:w-40 ttw:shrink-0",
12
- children: r
13
- }), /* @__PURE__ */ t(e, {
14
- component: "span",
15
- variant: "body2",
16
- className: "ttw:whitespace-pre-line",
17
- children: i
18
- })]
23
+ var w = (e) => {
24
+ let { data: t, isLoading: n } = s(e.invoice.recurrence_id);
25
+ return e.invoice.recurrence_id && n ? /* @__PURE__ */ y(u, {}) : /* @__PURE__ */ y(T, {
26
+ ...e,
27
+ recurrence: t
19
28
  });
20
- }
29
+ }, T = ({ invoice: s, onCancel: u, onUpdated: w, isOpen: T, recurrence: E, issueIntent: D, embeddedBankName: O }) => {
30
+ let { i18n: k } = x(), { componentSettings: A } = t(), j = a().has(e.CounterpartWriteOrg), M = !!A?.receivables?.enableEntityBankAccount, N = _("draft"), { data: P } = d(), F = s.currency, I = g(() => l(s, E), [s, E]), L = g(() => E?.iterations?.filter((e) => e.issued_invoice_id).length ?? 0, [E?.iterations]), R = g(() => C(r(k, j, L)), [
31
+ k,
32
+ j,
33
+ L
34
+ ]), z = g(() => C(i(k, M, j, L)), [
35
+ k,
36
+ M,
37
+ j,
38
+ L
39
+ ]), B = m((e, t, n) => (N.current === "issue" || c(e) && L === 0 ? z : R)(e, t, n), [
40
+ z,
41
+ R,
42
+ L
43
+ ]), V = S({
44
+ mode: "onBlur",
45
+ resolver: B,
46
+ defaultValues: I
47
+ }), { getValues: H, reset: U } = V;
48
+ o(P, H, U);
49
+ let W = !!E?.iterations?.some((e) => e.issued_invoice_id), G = f({
50
+ mode: "edit",
51
+ methods: V,
52
+ currency: F,
53
+ invoice: s,
54
+ submitModeRef: N,
55
+ existingRecurrence: E ? {
56
+ id: E.id,
57
+ scheduleLocked: W
58
+ } : void 0,
59
+ hasStartedRecurrence: L > 0,
60
+ onComplete: (e) => w(e.receivable, {
61
+ inlineLineItems: e.inlineLineItems,
62
+ activatedRecurrence: e.mode === "recurrence",
63
+ issued: e.mode === "issue",
64
+ counterpartId: e.counterpartId,
65
+ hasCustomerEmail: e.hasCustomerEmail
66
+ }),
67
+ onClose: u
68
+ });
69
+ return h(() => {
70
+ D && G.highlightForIssue();
71
+ }, []), /* @__PURE__ */ y(p, {
72
+ open: T,
73
+ onRequestClose: G.requestClose,
74
+ methods: V,
75
+ title: k._("Edit invoice"),
76
+ currency: F,
77
+ embeddedBankName: O,
78
+ showPurchaseOrder: !1,
79
+ lockRecurrenceSchedule: W,
80
+ formName: G.formName,
81
+ onSubmit: G.onSubmit,
82
+ formScrollRef: G.formScrollRef,
83
+ registerLineItemCleanupFn: G.registerLineItemCleanupFn,
84
+ onAttachmentsUploadingChange: G.onAttachmentsUploadingChange,
85
+ disabled: G.isLoading,
86
+ closeDisabled: G.isSaving,
87
+ discardModal: G.discardModal,
88
+ footer: /* @__PURE__ */ b(v, { children: [
89
+ /* @__PURE__ */ y(n, {
90
+ variant: "outline",
91
+ className: "ttw:border-border",
92
+ onClick: G.requestClose,
93
+ disabled: G.isSaving || G.attachmentsUploading,
94
+ children: k._("Cancel")
95
+ }),
96
+ !G.isRecurrenceEnabled && /* @__PURE__ */ y(n, {
97
+ variant: "secondary",
98
+ type: "submit",
99
+ form: G.formName,
100
+ disabled: G.isLoading || G.attachmentsUploading,
101
+ onClick: () => {
102
+ G.submitModeRef.current = "draft";
103
+ },
104
+ children: k._("Update draft")
105
+ }),
106
+ /* @__PURE__ */ y(n, {
107
+ type: "submit",
108
+ form: G.formName,
109
+ disabled: G.isLoading || G.attachmentsUploading || G.isIssuePreflightLoading || !G.isRecurrenceEnabled && G.isCustomerEmailLoading,
110
+ onClick: () => {
111
+ G.submitModeRef.current = G.isRecurrenceEnabled ? "draft" : "issue";
112
+ },
113
+ children: G.isRecurrenceEnabled ? E ? k._("Update recurring billing schedule") : k._("Activate recurring billing schedule") : k._("Issue invoice")
114
+ }, "next")
115
+ ] })
116
+ });
117
+ };
21
118
  //#endregion
22
- export { r as InvoiceDetailsInfoRow };
119
+ export { w as EditInvoiceDetails };
@@ -1,48 +1,22 @@
1
1
  import { Typography as e } from "./index62.js";
2
- import { ChevronRight as t } from "lucide-react";
3
- import { jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
2
+ import { jsx as t, jsxs as n } from "@emotion/react/jsx-runtime";
4
3
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index525.js
5
- function i({ label: i, name: a, onOpenCounterpart: o }) {
6
- let s = "ttw:flex ttw:items-center ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0";
7
- return o ? /* @__PURE__ */ r("button", {
8
- type: "button",
9
- onClick: o,
10
- "aria-haspopup": "dialog",
11
- className: `ttw:group ttw:w-full ttw:cursor-pointer ttw:rounded-sm ttw:text-left ttw:outline-none ttw:focus-visible:ring-ring/50 ttw:focus-visible:ring-[3px] ${s}`,
12
- children: [
13
- /* @__PURE__ */ n(e, {
14
- component: "span",
15
- variant: "body2",
16
- color: "muted",
17
- className: "ttw:w-40 ttw:shrink-0",
18
- children: i
19
- }),
20
- /* @__PURE__ */ n(e, {
21
- component: "span",
22
- variant: "body2",
23
- color: "primary",
24
- className: "ttw:underline-offset-4 ttw:group-hover:underline",
25
- children: a
26
- }),
27
- /* @__PURE__ */ n(t, {
28
- className: "ttw:ml-auto ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground",
29
- "aria-hidden": "true"
30
- })
31
- ]
32
- }) : /* @__PURE__ */ r("div", {
33
- className: s,
34
- children: [/* @__PURE__ */ n(e, {
4
+ function r({ label: r, value: i }) {
5
+ return /* @__PURE__ */ n("div", {
6
+ className: "ttw:flex ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0",
7
+ children: [/* @__PURE__ */ t(e, {
35
8
  component: "span",
36
9
  variant: "body2",
37
10
  color: "muted",
38
11
  className: "ttw:w-40 ttw:shrink-0",
39
- children: i
40
- }), /* @__PURE__ */ n(e, {
12
+ children: r
13
+ }), /* @__PURE__ */ t(e, {
41
14
  component: "span",
42
15
  variant: "body2",
43
- children: a
16
+ className: "ttw:whitespace-pre-line",
17
+ children: i
44
18
  })]
45
19
  });
46
20
  }
47
21
  //#endregion
48
- export { i as InvoiceDetailsCustomerRow };
22
+ export { r as InvoiceDetailsInfoRow };
@@ -1,16 +1,48 @@
1
- import { useMoniteContext as e } from "./index47.js";
2
- import { toast as t } from "react-hot-toast";
3
- import { useLingui as n } from "@lingui/react";
1
+ import { Typography as e } from "./index62.js";
2
+ import { ChevronRight as t } from "lucide-react";
3
+ import { jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
4
4
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index526.js
5
- var r = (r) => {
6
- let { i18n: i } = n(), { api: a, queryClient: o } = e();
7
- return a.finops.postReceivablesIdCancel.useMutation({ path: { receivable_id: r } }, { onSuccess: async () => {
8
- let e = a.finops.getReceivablesId.getQueryData({ path: { receivable_id: r } }, o);
9
- e?.type === "invoice" && a.finops.getReceivablesId.setQueryData({ path: { receivable_id: r } }, {
10
- ...e,
11
- status: "canceled"
12
- }, o), await a.finops.getReceivables.invalidateQueries(o), t.success(i._("This {type} has been canceled", { type: e?.type === "credit_note" ? "credit memo" : e?.type }));
13
- } });
14
- };
5
+ function i({ label: i, name: a, onOpenCounterpart: o }) {
6
+ let s = "ttw:flex ttw:items-center ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0";
7
+ return o ? /* @__PURE__ */ r("button", {
8
+ type: "button",
9
+ onClick: o,
10
+ "aria-haspopup": "dialog",
11
+ className: `ttw:group ttw:w-full ttw:cursor-pointer ttw:rounded-sm ttw:text-left ttw:outline-none ttw:focus-visible:ring-ring/50 ttw:focus-visible:ring-[3px] ${s}`,
12
+ children: [
13
+ /* @__PURE__ */ n(e, {
14
+ component: "span",
15
+ variant: "body2",
16
+ color: "muted",
17
+ className: "ttw:w-40 ttw:shrink-0",
18
+ children: i
19
+ }),
20
+ /* @__PURE__ */ n(e, {
21
+ component: "span",
22
+ variant: "body2",
23
+ color: "primary",
24
+ className: "ttw:underline-offset-4 ttw:group-hover:underline",
25
+ children: a
26
+ }),
27
+ /* @__PURE__ */ n(t, {
28
+ className: "ttw:ml-auto ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground",
29
+ "aria-hidden": "true"
30
+ })
31
+ ]
32
+ }) : /* @__PURE__ */ r("div", {
33
+ className: s,
34
+ children: [/* @__PURE__ */ n(e, {
35
+ component: "span",
36
+ variant: "body2",
37
+ color: "muted",
38
+ className: "ttw:w-40 ttw:shrink-0",
39
+ children: i
40
+ }), /* @__PURE__ */ n(e, {
41
+ component: "span",
42
+ variant: "body2",
43
+ children: a
44
+ })]
45
+ });
46
+ }
15
47
  //#endregion
16
- export { r as useCancelReceivableById };
48
+ export { i as InvoiceDetailsCustomerRow };
@@ -1,26 +1,16 @@
1
- import { useGetReceivableById as e } from "./index141.js";
2
- import { ConfirmationModal as t } from "./index59.js";
3
- import "./index60.js";
4
- import { useCancelReceivableById as n } from "./index526.js";
5
- import { jsx as r } from "@emotion/react/jsx-runtime";
6
- import { useLingui as i } from "@lingui/react";
1
+ import { useMoniteContext as e } from "./index47.js";
2
+ import { toast as t } from "react-hot-toast";
3
+ import { useLingui as n } from "@lingui/react";
7
4
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index527.js
8
- var a = ({ invoiceId: a, open: o, onClose: s }) => {
9
- let { i18n: c } = i(), { data: l, isLoading: u } = e(a), d = n(a);
10
- if (!l) return null;
11
- let f = l.document_id ? c._("Cancel receivable") + ` "${l?.document_id}"?` : c._("Cancel receivable?");
12
- return /* @__PURE__ */ r(t, {
13
- open: o && !!a,
14
- title: f,
15
- message: c._("This action can't be undone."),
16
- confirmLabel: c._("Cancel"),
17
- cancelLabel: c._("Close"),
18
- onClose: s,
19
- onConfirm: () => {
20
- d.mutate(void 0, { onSuccess: s });
21
- },
22
- isLoading: d.isPending || u
23
- });
5
+ var r = (r) => {
6
+ let { i18n: i } = n(), { api: a, queryClient: o } = e();
7
+ return a.finops.postReceivablesIdCancel.useMutation({ path: { receivable_id: r } }, { onSuccess: async () => {
8
+ let e = a.finops.getReceivablesId.getQueryData({ path: { receivable_id: r } }, o);
9
+ e?.type === "invoice" && a.finops.getReceivablesId.setQueryData({ path: { receivable_id: r } }, {
10
+ ...e,
11
+ status: "canceled"
12
+ }, o), await a.finops.getReceivables.invalidateQueries(o), t.success(i._("This {type} has been canceled", { type: e?.type === "credit_note" ? "credit memo" : e?.type }));
13
+ } });
24
14
  };
25
15
  //#endregion
26
- export { a as InvoiceCancelModal };
16
+ export { r as useCancelReceivableById };
@@ -1,30 +1,26 @@
1
- import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
2
- import "../../shared/data-access/dist/index.js";
3
- import { useComponentSettings as t } from "./index215.js";
4
- import { ConfirmationModal as n } from "./index59.js";
1
+ import { useGetReceivableById as e } from "./index141.js";
2
+ import { ConfirmationModal as t } from "./index59.js";
5
3
  import "./index60.js";
6
- import { useUserPermissions as r } from "./index116.js";
7
- import { useDeleteReceivableById as i } from "./index157.js";
8
- import { jsx as a } from "@emotion/react/jsx-runtime";
9
- import { toast as o } from "react-hot-toast";
10
- import { useLingui as s } from "@lingui/react";
4
+ import { useCancelReceivableById as n } from "./index527.js";
5
+ import { jsx as r } from "@emotion/react/jsx-runtime";
6
+ import { useLingui as i } from "@lingui/react";
11
7
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index528.js
12
- var c = ({ open: c, onClose: l, invoiceId: u, onDelete: d, documentId: f }) => {
13
- let { i18n: p } = s(), { receivablesCallbacks: m } = t(), { mutate: h, isPending: g } = i(u), _ = r().has(e.InvoiceWriteOrg), v = () => {
14
- _ ? h(void 0, { onSuccess: () => {
15
- m?.onDelete?.(u), d?.(), l();
16
- } }) : o.error(p._("You don't have permission to delete this document. Please, contact your system administrator for details."));
17
- }, y = f ? p._("Delete receivable “{documentId}”?", { documentId: f }) : p._("Delete receivable?");
18
- return /* @__PURE__ */ a(n, {
19
- open: c,
20
- title: y,
21
- message: p._("This action can't be undone."),
22
- confirmLabel: p._("Delete"),
23
- cancelLabel: p._("Cancel"),
24
- onClose: l,
25
- onConfirm: v,
26
- isLoading: g
8
+ var a = ({ invoiceId: a, open: o, onClose: s }) => {
9
+ let { i18n: c } = i(), { data: l, isLoading: u } = e(a), d = n(a);
10
+ if (!l) return null;
11
+ let f = l.document_id ? c._("Cancel receivable") + ` "${l?.document_id}"?` : c._("Cancel receivable?");
12
+ return /* @__PURE__ */ r(t, {
13
+ open: o && !!a,
14
+ title: f,
15
+ message: c._("This action can't be undone."),
16
+ confirmLabel: c._("Cancel"),
17
+ cancelLabel: c._("Close"),
18
+ onClose: s,
19
+ onConfirm: () => {
20
+ d.mutate(void 0, { onSuccess: s });
21
+ },
22
+ isLoading: d.isPending || u
27
23
  });
28
24
  };
29
25
  //#endregion
30
- export { c as InvoiceDeleteModal };
26
+ export { a as InvoiceCancelModal };
@@ -1,40 +1,30 @@
1
- import { cn as e } from "./index49.js";
2
- import { getCommonRecurrenceIterationStatusLabel as t } from "./index177.js";
3
- import "./index202.js";
4
- import { Badge as n } from "./index223.js";
5
- import { jsx as r } from "@emotion/react/jsx-runtime";
6
- import { useLingui as i } from "@lingui/react";
7
- import { cva as a } from "class-variance-authority";
1
+ import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
2
+ import "../../shared/data-access/dist/index.js";
3
+ import { useComponentSettings as t } from "./index215.js";
4
+ import { ConfirmationModal as n } from "./index59.js";
5
+ import "./index60.js";
6
+ import { useUserPermissions as r } from "./index116.js";
7
+ import { useDeleteReceivableById as i } from "./index157.js";
8
+ import { jsx as a } from "@emotion/react/jsx-runtime";
9
+ import { toast as o } from "react-hot-toast";
10
+ import { useLingui as s } from "@lingui/react";
8
11
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index529.js
9
- var o = a("", { variants: {
10
- variant: {
11
- pending: "ttw:bg-zinc-100 ttw:text-zinc-700",
12
- skipped: "ttw:bg-yellow-100 ttw:text-yellow-700",
13
- canceled: "ttw:bg-red-100 ttw:text-red-700",
14
- issue_failed: "ttw:bg-red-100 ttw:text-red-700",
15
- send_failed: "ttw:bg-red-100 ttw:text-red-700",
16
- completed: "ttw:bg-green-100 ttw:text-green-700"
17
- },
18
- dotVariant: {
19
- pending: "ttw:border-zinc-100 ttw:bg-zinc-700",
20
- skipped: "ttw:border-yellow-100 ttw:bg-yellow-700",
21
- canceled: "ttw:border-red-100 ttw:bg-red-700",
22
- issue_failed: "ttw:border-red-100 ttw:bg-red-700",
23
- send_failed: "ttw:border-red-100 ttw:bg-red-700",
24
- completed: "ttw:border-green-100 ttw:bg-green-700"
25
- }
26
- } }), s = ({ status: a, className: s, showBadgeBackground: c = !0, dotSize: l, ref: u }) => {
27
- let { i18n: d } = i();
28
- return /* @__PURE__ */ r(n, {
29
- ref: u,
30
- className: e("ttw:inline-flex ttw:items-center ttw:gap-1", o({ variant: a }), s),
31
- dotClassName: o({ dotVariant: a }),
32
- showBadgeBackground: c,
33
- showDotBorder: !c,
34
- dotSize: l,
35
- showDot: !0,
36
- children: t(d, a)
12
+ var c = ({ open: c, onClose: l, invoiceId: u, onDelete: d, documentId: f }) => {
13
+ let { i18n: p } = s(), { receivablesCallbacks: m } = t(), { mutate: h, isPending: g } = i(u), _ = r().has(e.InvoiceWriteOrg), v = () => {
14
+ _ ? h(void 0, { onSuccess: () => {
15
+ m?.onDelete?.(u), d?.(), l();
16
+ } }) : o.error(p._("You don't have permission to delete this document. Please, contact your system administrator for details."));
17
+ }, y = f ? p._("Delete receivable “{documentId}”?", { documentId: f }) : p._("Delete receivable?");
18
+ return /* @__PURE__ */ a(n, {
19
+ open: c,
20
+ title: y,
21
+ message: p._("This action can't be undone."),
22
+ confirmLabel: p._("Delete"),
23
+ cancelLabel: p._("Cancel"),
24
+ onClose: l,
25
+ onConfirm: v,
26
+ isLoading: g
37
27
  });
38
28
  };
39
29
  //#endregion
40
- export { s as InvoiceRecurrenceIterationStatusChip };
30
+ export { c as InvoiceDeleteModal };
@@ -1,81 +1,40 @@
1
- import { useMoniteContext as e } from "./index47.js";
2
- import { useCurrencies as t } from "./index63.js";
3
- import { useGetReceivableById as n } from "./index141.js";
4
- import "./index217.js";
5
- import { InvoiceStatusChip as r } from "./index238.js";
6
- import { InvoiceRecurrenceIterationStatusChip as i } from "./index529.js";
7
- import { ChevronRight as a } from "lucide-react";
8
- import { parseISO as o } from "date-fns";
9
- import { jsx as s, jsxs as c } from "@emotion/react/jsx-runtime";
10
- import { useLingui as l } from "@lingui/react";
11
- import { twMerge as u } from "tailwind-merge";
1
+ import { cn as e } from "./index49.js";
2
+ import { getCommonRecurrenceIterationStatusLabel as t } from "./index177.js";
3
+ import "./index202.js";
4
+ import { Badge as n } from "./index223.js";
5
+ import { jsx as r } from "@emotion/react/jsx-runtime";
6
+ import { useLingui as i } from "@lingui/react";
7
+ import { cva as a } from "class-variance-authority";
12
8
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index530.js
13
- var d = ({ iteration: l, invoice: d, i18n: f, onRowClick: p }) => {
14
- let { locale: m } = e(), { formatCurrencyToDisplay: h } = t(), g = !!l?.issued_invoice_id, { data: _ } = n(l?.issued_invoice_id ?? "", g), v = !!(g && _?.id);
15
- return /* @__PURE__ */ c("tr", {
16
- className: u("ttw:border-t ttw:border-border", v && "ttw:hover:cursor-pointer"),
17
- ...v && p && _?.id && { onClick: () => p(_.id) },
18
- children: [
19
- /* @__PURE__ */ s("td", {
20
- className: "ttw:text-left ttw:h-9 ttw:py-2 ttw:pr-2 ttw:text-sm ttw:leading-5 ttw:font-normal",
21
- children: l?.issue_at ? f.date(o(l.issue_at), m.dateFormat) : "-"
22
- }),
23
- /* @__PURE__ */ s("td", {
24
- className: "ttw:text-left ttw:h-9 ttw:py-2 ttw:px-2 ttw:text-sm ttw:leading-5 ttw:font-normal",
25
- children: g && _ ? h(_?.total_amount, _?.currency) : h(d?.total_amount, d?.currency)
26
- }),
27
- /* @__PURE__ */ s("td", {
28
- className: "ttw:text-left ttw:h-9 ttw:py-2 ttw:px-2",
29
- children: g && _ ? /* @__PURE__ */ s(r, { status: _?.status }) : /* @__PURE__ */ s(i, { status: l?.status })
30
- }),
31
- /* @__PURE__ */ s("td", {
32
- className: "ttw:text-left ttw:h-9 ttw:py-2 ttw:px-2 ttw:text-sm ttw:leading-5 ttw:font-normal",
33
- children: g ? _?.document_id : "-"
34
- }),
35
- /* @__PURE__ */ s("td", {
36
- className: "ttw:text-right ttw:h-9 ttw:w-6 ttw:py-2 ttw:pl-2 ttw:text-muted-foreground",
37
- children: v ? /* @__PURE__ */ s(a, {
38
- className: "ttw:inline ttw:size-4",
39
- "aria-hidden": "true"
40
- }) : null
41
- })
42
- ]
43
- });
44
- }, f = ({ invoice: e, recurrence: t, openInvoiceDetails: n }) => {
45
- let { i18n: r } = l();
46
- return /* @__PURE__ */ c("table", {
47
- className: "ttw:w-full",
48
- children: [/* @__PURE__ */ s("thead", { children: /* @__PURE__ */ c("tr", { children: [
49
- /* @__PURE__ */ s("th", {
50
- className: "ttw:text-left ttw:h-10 ttw:pr-2 ttw:text-sm ttw:font-medium ttw:leading-5",
51
- children: r._("Issue date")
52
- }),
53
- /* @__PURE__ */ s("th", {
54
- className: "ttw:text-left ttw:h-10 ttw:px-2 ttw:text-sm ttw:font-medium ttw:leading-5",
55
- children: r._("Amount")
56
- }),
57
- /* @__PURE__ */ s("th", {
58
- className: "ttw:text-left ttw:h-10 ttw:px-2 ttw:text-sm ttw:font-medium ttw:leading-5",
59
- children: r._("Status")
60
- }),
61
- /* @__PURE__ */ s("th", {
62
- className: "ttw:text-left ttw:h-10 ttw:px-2 ttw:text-sm ttw:font-medium ttw:leading-5",
63
- children: r._("Number")
64
- }),
65
- /* @__PURE__ */ s("th", {
66
- className: "ttw:h-10 ttw:w-6 ttw:pl-2",
67
- "aria-hidden": "true"
68
- })
69
- ] }) }), /* @__PURE__ */ s("tbody", { children: t?.iterations?.map((t, i) => /* @__PURE__ */ s(d, {
70
- iteration: t,
71
- invoice: e,
72
- i18n: r,
73
- onRowClick: n
74
- }, r._("iteration-{iteration}-{index}", {
75
- iteration: t?.iteration,
76
- index: i
77
- }))) })]
9
+ var o = a("", { variants: {
10
+ variant: {
11
+ pending: "ttw:bg-zinc-100 ttw:text-zinc-700",
12
+ skipped: "ttw:bg-yellow-100 ttw:text-yellow-700",
13
+ canceled: "ttw:bg-red-100 ttw:text-red-700",
14
+ issue_failed: "ttw:bg-red-100 ttw:text-red-700",
15
+ send_failed: "ttw:bg-red-100 ttw:text-red-700",
16
+ completed: "ttw:bg-green-100 ttw:text-green-700"
17
+ },
18
+ dotVariant: {
19
+ pending: "ttw:border-zinc-100 ttw:bg-zinc-700",
20
+ skipped: "ttw:border-yellow-100 ttw:bg-yellow-700",
21
+ canceled: "ttw:border-red-100 ttw:bg-red-700",
22
+ issue_failed: "ttw:border-red-100 ttw:bg-red-700",
23
+ send_failed: "ttw:border-red-100 ttw:bg-red-700",
24
+ completed: "ttw:border-green-100 ttw:bg-green-700"
25
+ }
26
+ } }), s = ({ status: a, className: s, showBadgeBackground: c = !0, dotSize: l, ref: u }) => {
27
+ let { i18n: d } = i();
28
+ return /* @__PURE__ */ r(n, {
29
+ ref: u,
30
+ className: e("ttw:inline-flex ttw:items-center ttw:gap-1", o({ variant: a }), s),
31
+ dotClassName: o({ dotVariant: a }),
32
+ showBadgeBackground: c,
33
+ showDotBorder: !c,
34
+ dotSize: l,
35
+ showDot: !0,
36
+ children: t(d, a)
78
37
  });
79
38
  };
80
39
  //#endregion
81
- export { f as InvoiceDetailsTabScheduledInvoices };
40
+ export { s as InvoiceRecurrenceIterationStatusChip };