@tesouro/embedded-components-react 0.7.49 → 0.7.51

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 (188) hide show
  1. package/dist/lib/monite-sdk.d.ts +42 -42
  2. package/dist/lib/monite-sdk.js +18 -18
  3. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartsTable.js +2 -1
  4. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/mocks/counterparts.js +233 -88
  5. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/mocks/labels.js +1 -1
  6. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +19 -19
  7. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index100.js +56 -10
  8. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +10 -37
  9. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +39 -1
  10. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +0 -105
  11. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +105 -0
  12. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +1 -56
  13. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index106.js +56 -1
  14. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +1 -55
  15. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +55 -1
  16. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -55
  17. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +55 -1
  18. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -153
  19. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +150 -52
  20. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +55 -2
  21. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +0 -1
  22. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +2 -0
  23. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +0 -1
  24. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +2 -10
  25. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +7 -53
  26. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +51 -36
  27. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +38 -71
  28. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +72 -39
  29. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +36 -9
  30. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +7 -6
  31. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +6 -64
  32. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +57 -158
  33. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +172 -7
  34. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +6 -1
  35. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +2 -76
  36. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +76 -1
  37. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +0 -78
  38. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +78 -0
  39. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +1 -35
  40. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +35 -1
  41. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +0 -57
  42. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +56 -42
  43. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +44 -1
  44. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +0 -568
  45. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +568 -0
  46. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +1 -1
  47. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +1 -160
  48. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +159 -0
  49. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +0 -26
  50. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +26 -0
  51. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +1 -12
  52. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +2 -2
  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/index147.js +10 -16
  55. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +16 -19
  56. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +19 -27
  57. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +29 -1
  58. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +1 -93
  59. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +4 -4
  60. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +1 -1
  61. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +4 -4
  62. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +1 -1
  63. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +1 -1
  64. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +2 -2
  65. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +1 -1
  66. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +12 -11
  67. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +4 -4
  68. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +2 -2
  69. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +1 -1
  70. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +2 -2
  71. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +4 -4
  72. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +1 -1
  73. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +87 -41
  74. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +44 -48
  75. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +48 -82
  76. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +83 -7
  77. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +7 -305
  78. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +307 -1
  79. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +1 -32
  80. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +32 -1
  81. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +1 -29
  82. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +29 -1
  83. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +1 -22
  84. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +22 -1
  85. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +0 -159
  86. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +159 -0
  87. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +1 -37
  88. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +34 -33
  89. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +33 -3
  90. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +3 -102
  91. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +88 -172
  92. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +171 -116
  93. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +114 -191
  94. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +209 -11
  95. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +11 -15
  96. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +14 -28
  97. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +31 -1
  98. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +0 -241
  99. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +241 -0
  100. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +1 -36
  101. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +31 -137
  102. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +142 -1
  103. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +0 -166
  104. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +166 -25
  105. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +26 -19
  106. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +16 -17
  107. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +17 -5
  108. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +4 -14
  109. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +12 -18
  110. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +9 -9
  111. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +21 -5
  112. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +4 -13
  113. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +11 -14
  114. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +20 -9
  115. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +8 -26
  116. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +23 -11
  117. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +12 -8
  118. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +8 -24
  119. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +25 -14
  120. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +14 -81
  121. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +81 -14
  122. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +14 -100
  123. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +98 -42
  124. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +43 -27
  125. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +30 -1
  126. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +0 -105
  127. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +102 -35
  128. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +32 -166
  129. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +171 -12
  130. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +13 -3
  131. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +4 -70
  132. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +62 -19
  133. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +24 -209
  134. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +207 -87
  135. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +90 -17
  136. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +17 -158
  137. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +144 -88
  138. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +100 -42
  139. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +46 -4
  140. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +4 -24
  141. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +20 -73
  142. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +74 -16
  143. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +16 -19
  144. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +19 -5
  145. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +4 -8
  146. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +10 -11
  147. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +11 -131
  148. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +129 -4
  149. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +4 -4
  150. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +8 -5
  151. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +4 -221
  152. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +219 -31
  153. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +31 -11
  154. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +12 -34
  155. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +34 -20
  156. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +18 -72
  157. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +73 -181
  158. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +182 -14
  159. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +14 -204
  160. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +192 -88
  161. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +97 -61
  162. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +63 -54
  163. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +46 -83
  164. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +91 -40
  165. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +39 -75
  166. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +63 -71
  167. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +85 -12
  168. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +12 -24
  169. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +25 -16
  170. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +14 -2
  171. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +4 -23
  172. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +23 -0
  173. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +0 -45
  174. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +46 -32
  175. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +30 -2
  176. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +2 -34
  177. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +33 -15
  178. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +14 -29
  179. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +29 -27
  180. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +31 -2
  181. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +2 -97
  182. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +97 -0
  183. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +2 -17
  184. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +17 -3
  185. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +5 -1
  186. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +1 -57
  187. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  188. package/package.json +1 -1
@@ -1,34 +1,222 @@
1
- import e from "@mui/icons-material/PaidOutlined";
2
- import t from "@mui/icons-material/AccessTime";
3
- import n from "@mui/icons-material/CheckCircleOutline";
4
- import r from "@mui/icons-material/ErrorOutline";
5
- import i from "@mui/icons-material/CancelOutlined";
6
- import a from "@mui/icons-material/BlockOutlined";
1
+ import { useCurrencies as e } from "./index76.js";
2
+ import "./index89.js";
3
+ import { MoniteScopedProviders as t } from "./index155.js";
4
+ import { FinanceBannerWrapper as n } from "./index328.js";
5
+ import { FinanceFaqWrapper as r } from "./index330.js";
6
+ import { FinanceProgressBar as i } from "./index331.js";
7
+ import { useKanmonContext as a } from "./index334.js";
8
+ import { FinancialApplicationState as o, useFinancing as s } from "./index335.js";
9
+ import "./index338.js";
10
+ import { useState as c } from "react";
11
+ import { Fragment as l, jsx as u, jsxs as d } from "@emotion/react/jsx-runtime";
12
+ import { Box as f, Button as p, CircularProgress as m, Stack as h, Typography as g, useMediaQuery as _, useTheme as v } from "@mui/material";
13
+ import { useLingui as y } from "@lingui/react";
7
14
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js
8
- var o = {
9
- NEW: "#292929",
10
- DEFAULTED: "#CC394B",
11
- PAID: "#0DAA8E",
12
- FUNDED: "#3737FF",
13
- LATE: "#E27E46",
14
- REJECTED: "#CC394B",
15
- DRAFT: ""
16
- }, s = {
17
- NEW: "#F2F2F2",
18
- DEFAULTED: "#FFE0E4",
19
- PAID: "#EEFBF9",
20
- FUNDED: "#F4F4FE",
21
- LATE: "#FFF3E9",
22
- REJECTED: "#FFE0E4",
23
- DRAFT: ""
24
- }, c = {
25
- NEW: t,
26
- DEFAULTED: a,
27
- PAID: e,
28
- FUNDED: n,
29
- LATE: r,
30
- REJECTED: i,
31
- DRAFT: t
15
+ var b = "financing_banner_hidden", x = 605800, S = (e) => /* @__PURE__ */ u(t, { children: /* @__PURE__ */ u(C, { ...e }) }), C = ({ enableServicingBanner: t = !1, handleViewDetails: S }) => {
16
+ let { i18n: C } = y(), { startFinanceSession: w } = a(), T = v(), E = _(T.breakpoints.down("lg")), { formatCurrencyToDisplay: D } = e(), { buttonText: O, isLoading: k, isEnabled: A, applicationState: j, isServicing: M, offer: N } = s(), P = N?.total_amount ?? 0, F = (N?.status === "LATE" ? 0 : N?.available_amount) ?? 0, I = F / P * 100, L = N?.status !== "CLOSED" && N?.status !== "DEFAULTED", [R, z] = c(() => {
17
+ let e = JSON.parse(JSON.parse(JSON.stringify(sessionStorage.getItem(b))));
18
+ if (e) return e.isHidden;
19
+ let t = JSON.parse(JSON.parse(JSON.stringify(localStorage.getItem(b))));
20
+ return t ? t.expires_at && (/* @__PURE__ */ new Date()).getTime() > t.expires_at ? (localStorage.removeItem(b), !1) : t.isHidden : !1;
21
+ }), B = t && M, V = j !== o.PENDING_APPROVAL && j !== o.NO_OFFERS_AVAILABLE && j !== o.OFFERS_EXPIRED;
22
+ return R || j === o.SERVICING && !t || !A ? null : /* @__PURE__ */ d(n, {
23
+ shouldApplyFinanceStyles: B,
24
+ children: [/* @__PURE__ */ d(f, {
25
+ display: "flex",
26
+ alignItems: E && !B ? "flex-end" : "center",
27
+ flexDirection: E && !B ? "column" : "row",
28
+ justifyContent: "space-between",
29
+ gap: 2,
30
+ width: "100%",
31
+ height: "100%",
32
+ children: [/* @__PURE__ */ u(f, {
33
+ sx: {
34
+ width: "100%",
35
+ display: "flex",
36
+ gap: 2,
37
+ flex: "1 1 0%",
38
+ alignItems: E && !B ? "flex-start" : "center"
39
+ },
40
+ children: /* @__PURE__ */ u(f, {
41
+ sx: { flex: "1 1 0%" },
42
+ children: (() => {
43
+ switch (j) {
44
+ case o.INIT:
45
+ case o.IN_PROGRESS:
46
+ default: return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(g, {
47
+ variant: "subtitle2",
48
+ sx: { fontSize: 20 },
49
+ children: C._("Fund your sales/purchases")
50
+ }), /* @__PURE__ */ d(g, {
51
+ variant: "body1",
52
+ children: [
53
+ C._("Get a small business loan plan to manage finances more efficiently."),
54
+ " ",
55
+ /* @__PURE__ */ u(r, { children: ({ openModal: e }) => /* @__PURE__ */ u(g, {
56
+ onClick: e,
57
+ variant: "body1",
58
+ sx: {
59
+ textDecoration: "underline",
60
+ cursor: "pointer"
61
+ },
62
+ component: "span",
63
+ children: C._("Read more >")
64
+ }) })
65
+ ]
66
+ })] });
67
+ case o.PENDING_APPROVAL: return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(g, {
68
+ variant: "subtitle2",
69
+ sx: { fontSize: 20 },
70
+ children: C._("Your application is in review")
71
+ }), /* @__PURE__ */ u(g, {
72
+ variant: "body1",
73
+ children: C._("It can take up to 48 hours. We'll notify you about the results.")
74
+ })] });
75
+ case o.APPROVED:
76
+ case o.OFFER_ACCEPTED: return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(g, {
77
+ variant: "subtitle2",
78
+ sx: { fontSize: 20 },
79
+ children: C._("Your application was approved")
80
+ }), /* @__PURE__ */ u(g, {
81
+ variant: "body1",
82
+ children: C._("Please, review the offered credit limit and approved financing plans.")
83
+ })] });
84
+ case o.NO_OFFERS_AVAILABLE: return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(g, {
85
+ variant: "subtitle2",
86
+ sx: { fontSize: 20 },
87
+ children: C._("A provider can’t offer you financing")
88
+ }), /* @__PURE__ */ u(g, {
89
+ variant: "body1",
90
+ children: C._("They will contact you if your credit score improves and you can reapply.")
91
+ })] });
92
+ case o.OFFERS_EXPIRED: return /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(g, {
93
+ variant: "subtitle2",
94
+ sx: { fontSize: 20 },
95
+ children: C._("You haven’t accepted the offer and it has expired")
96
+ }), /* @__PURE__ */ u(g, {
97
+ variant: "body1",
98
+ children: C._("Please get in touch with the provider if you still wish to receive financing.")
99
+ })] });
100
+ case o.SERVICING: return /* @__PURE__ */ u(g, {
101
+ variant: "subtitle2",
102
+ sx: { fontSize: 20 },
103
+ children: C._("My financing")
104
+ });
105
+ }
106
+ })()
107
+ })
108
+ }), /* @__PURE__ */ d(h, {
109
+ width: E && !B ? "100%" : "auto",
110
+ direction: "row",
111
+ gap: 1,
112
+ alignItems: "center",
113
+ justifyContent: E && !B ? "flex-end" : "flex-start",
114
+ children: [B && S ? /* @__PURE__ */ u(p, {
115
+ onClick: S,
116
+ variant: "text",
117
+ children: C._("View details")
118
+ }) : /* @__PURE__ */ u(p, {
119
+ onClick: () => {
120
+ switch (z(!0), j) {
121
+ case o.IN_PROGRESS:
122
+ case o.APPROVED:
123
+ case o.PENDING_APPROVAL:
124
+ case o.OFFER_ACCEPTED:
125
+ sessionStorage.setItem(b, JSON.stringify({
126
+ isHidden: !0,
127
+ expires_at: null
128
+ }));
129
+ return;
130
+ case o.INIT:
131
+ localStorage.setItem(b, JSON.stringify({
132
+ isHidden: !0,
133
+ expires_at: (/* @__PURE__ */ new Date()).getTime() + x
134
+ }));
135
+ return;
136
+ case o.NO_OFFERS_AVAILABLE:
137
+ case o.OFFERS_EXPIRED:
138
+ default:
139
+ localStorage.setItem(b, JSON.stringify({
140
+ isHidden: !0,
141
+ expires_at: null
142
+ }));
143
+ return;
144
+ }
145
+ },
146
+ variant: "text",
147
+ children: V ? C._("Hide") : C._("Close")
148
+ }), V && O && /* @__PURE__ */ u(p, {
149
+ onClick: () => {
150
+ w();
151
+ },
152
+ disabled: k,
153
+ variant: "contained",
154
+ color: "primary",
155
+ sx: {
156
+ px: 2.5,
157
+ py: 1.5,
158
+ height: 40
159
+ },
160
+ children: k ? /* @__PURE__ */ u(m, { size: 20 }) : O
161
+ })]
162
+ })]
163
+ }), B && /* @__PURE__ */ d(f, { children: [
164
+ L ? /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(g, {
165
+ variant: "body1",
166
+ children: C._("Remaining limit")
167
+ }), /* @__PURE__ */ d(f, {
168
+ display: "flex",
169
+ alignItems: "center",
170
+ justifyContent: "space-between",
171
+ gap: 1,
172
+ mb: 1,
173
+ children: [/* @__PURE__ */ d(f, {
174
+ display: "flex",
175
+ alignItems: "center",
176
+ gap: 1,
177
+ flexShrink: 0,
178
+ children: [/* @__PURE__ */ u(g, {
179
+ variant: "h2",
180
+ fontSize: 32,
181
+ children: D(F, "USD")
182
+ }), /* @__PURE__ */ d(g, {
183
+ component: "span",
184
+ variant: "subtitle1",
185
+ sx: { color: T.palette.grey[400] },
186
+ children: ["/ ", D(P, "USD")]
187
+ })]
188
+ }), /* @__PURE__ */ d(g, {
189
+ variant: "body1",
190
+ sx: {
191
+ textOverflow: "ellipsis",
192
+ overflow: "hidden",
193
+ whiteSpace: "nowrap"
194
+ },
195
+ children: [
196
+ N?.pricing_plans?.length,
197
+ " ",
198
+ C._("financial plans enabled")
199
+ ]
200
+ })]
201
+ })] }) : /* @__PURE__ */ u(g, {
202
+ variant: "h2",
203
+ fontSize: 32,
204
+ mb: 1,
205
+ children: C._("Not available")
206
+ }),
207
+ /* @__PURE__ */ u(i, { progress: I }),
208
+ (!L || N?.status === "LATE") && /* @__PURE__ */ d(g, {
209
+ variant: "body1",
210
+ fontWeight: 400,
211
+ mt: 1,
212
+ children: [
213
+ N?.status === "CLOSED" && C._("Financing is not available for your business anymore. Please, contact the provider for further details."),
214
+ N?.status === "DEFAULTED" && C._("Financing is blocked due to a violation of the agreed-upon terms. Please, contact the provider for further details."),
215
+ N?.status === "LATE" && C._("Due to late payment your financing is currently on hold. Please, contact the provider for further details.")
216
+ ]
217
+ })
218
+ ] })]
219
+ });
32
220
  };
33
221
  //#endregion
34
- export { s as BACKGROUND_FINANCE_STATUS_MUI_MAP, c as FINANCE_INVOICE_STATUS_TO_MUI_ICON_MAP, o as ROW_TO_TAG_FINANCE_STATUS_MUI_MAP };
222
+ export { S as FinanceBanner };
@@ -1,14 +1,34 @@
1
+ import e from "@mui/icons-material/PaidOutlined";
2
+ import t from "@mui/icons-material/AccessTime";
3
+ import n from "@mui/icons-material/CheckCircleOutline";
4
+ import r from "@mui/icons-material/ErrorOutline";
5
+ import i from "@mui/icons-material/CancelOutlined";
6
+ import a from "@mui/icons-material/BlockOutlined";
1
7
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js
2
- var e = (e, t) => {
3
- switch (t) {
4
- case "NEW": return e._("In review");
5
- case "DEFAULTED": return e._("Uncollectible");
6
- case "PAID": return e._("Paid in full");
7
- case "FUNDED": return e._("Funded");
8
- case "LATE": return e._("Late payment");
9
- case "REJECTED": return e._("Rejected");
10
- default: throw Error(`Unknown status ${JSON.stringify(t)}`);
11
- }
8
+ var o = {
9
+ NEW: "#292929",
10
+ DEFAULTED: "#CC394B",
11
+ PAID: "#0DAA8E",
12
+ FUNDED: "#3737FF",
13
+ LATE: "#E27E46",
14
+ REJECTED: "#CC394B",
15
+ DRAFT: ""
16
+ }, s = {
17
+ NEW: "#F2F2F2",
18
+ DEFAULTED: "#FFE0E4",
19
+ PAID: "#EEFBF9",
20
+ FUNDED: "#F4F4FE",
21
+ LATE: "#FFF3E9",
22
+ REJECTED: "#FFE0E4",
23
+ DRAFT: ""
24
+ }, c = {
25
+ NEW: t,
26
+ DEFAULTED: a,
27
+ PAID: e,
28
+ FUNDED: n,
29
+ LATE: r,
30
+ REJECTED: i,
31
+ DRAFT: t
12
32
  };
13
33
  //#endregion
14
- export { e as getCommonStatusLabel };
34
+ export { s as BACKGROUND_FINANCE_STATUS_MUI_MAP, c as FINANCE_INVOICE_STATUS_TO_MUI_ICON_MAP, o as ROW_TO_TAG_FINANCE_STATUS_MUI_MAP };
@@ -1,36 +1,14 @@
1
- import { BACKGROUND_FINANCE_STATUS_MUI_MAP as e, FINANCE_INVOICE_STATUS_TO_MUI_ICON_MAP as t, ROW_TO_TAG_FINANCE_STATUS_MUI_MAP as n } from "./index339.js";
2
- import { getCommonStatusLabel as r } from "./index340.js";
3
- import { jsx as i } from "@emotion/react/jsx-runtime";
4
- import { Chip as a } from "@mui/material";
5
- import { useLingui as o } from "@lingui/react";
6
- import s from "@mui/icons-material/Circle";
7
- import { styled as c, useThemeProps as l } from "@mui/material/styles";
8
1
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js
9
- var u = ({ ref: a, ...c }) => {
10
- let { status: u, variant: f, icon: p, size: m } = l({
11
- props: c,
12
- name: "MoniteFinancedInvoiceStatusChip"
13
- }), { i18n: h } = o(), g = t[u];
14
- return /* @__PURE__ */ i(d, {
15
- ref: a,
16
- sx: {
17
- width: "auto",
18
- color: n[u],
19
- bgcolor: e[u]
20
- },
21
- icon: p && g ? /* @__PURE__ */ i(g, { sx: {
22
- fontSize: 16,
23
- fill: n[u]
24
- } }) : /* @__PURE__ */ i(s, { sx: { fontSize: "10px !important" } }),
25
- label: r(h, u),
26
- size: m,
27
- status: u,
28
- variant: f ?? "filled"
29
- });
30
- }, d = c(a, {
31
- name: "MoniteFinancedInvoiceStatusChip",
32
- slot: "root",
33
- shouldForwardProp: () => !0
34
- })({});
2
+ var e = (e, t) => {
3
+ switch (t) {
4
+ case "NEW": return e._("In review");
5
+ case "DEFAULTED": return e._("Uncollectible");
6
+ case "PAID": return e._("Paid in full");
7
+ case "FUNDED": return e._("Funded");
8
+ case "LATE": return e._("Late payment");
9
+ case "REJECTED": return e._("Rejected");
10
+ default: throw Error(`Unknown status ${JSON.stringify(t)}`);
11
+ }
12
+ };
35
13
  //#endregion
36
- export { u as FinancedInvoiceStatusChip };
14
+ export { e as getCommonStatusLabel };
@@ -1,22 +1,36 @@
1
+ import { BACKGROUND_FINANCE_STATUS_MUI_MAP as e, FINANCE_INVOICE_STATUS_TO_MUI_ICON_MAP as t, ROW_TO_TAG_FINANCE_STATUS_MUI_MAP as n } from "./index340.js";
2
+ import { getCommonStatusLabel as r } from "./index341.js";
3
+ import { jsx as i } from "@emotion/react/jsx-runtime";
4
+ import { Chip as a } from "@mui/material";
5
+ import { useLingui as o } from "@lingui/react";
6
+ import s from "@mui/icons-material/Circle";
7
+ import { styled as c, useThemeProps as l } from "@mui/material/styles";
1
8
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js
2
- var e = (e, t) => {
3
- switch (t) {
4
- case "draft": return e._("Draft");
5
- case "issuing": return e._("Issuing");
6
- case "issued": return e._("Issued");
7
- case "failed": return e._("Failed");
8
- case "accepted": return e._("Accepted");
9
- case "expired": return e._("Expired");
10
- case "declined": return e._("Declined");
11
- case "recurring": return e._("Recurring");
12
- case "partially_paid": return e._("Partially paid");
13
- case "paid": return e._("Paid");
14
- case "overdue": return e._("Overdue");
15
- case "uncollectible": return e._("Uncollectible");
16
- case "canceled": return e._("Canceled");
17
- case "deleted": return e._("Deleted");
18
- default: throw Error(`Unknown status ${JSON.stringify(t)}`);
19
- }
20
- };
9
+ var u = ({ ref: a, ...c }) => {
10
+ let { status: u, variant: f, icon: p, size: m } = l({
11
+ props: c,
12
+ name: "MoniteFinancedInvoiceStatusChip"
13
+ }), { i18n: h } = o(), g = t[u];
14
+ return /* @__PURE__ */ i(d, {
15
+ ref: a,
16
+ sx: {
17
+ width: "auto",
18
+ color: n[u],
19
+ bgcolor: e[u]
20
+ },
21
+ icon: p && g ? /* @__PURE__ */ i(g, { sx: {
22
+ fontSize: 16,
23
+ fill: n[u]
24
+ } }) : /* @__PURE__ */ i(s, { sx: { fontSize: "10px !important" } }),
25
+ label: r(h, u),
26
+ size: m,
27
+ status: u,
28
+ variant: f ?? "filled"
29
+ });
30
+ }, d = c(a, {
31
+ name: "MoniteFinancedInvoiceStatusChip",
32
+ slot: "root",
33
+ shouldForwardProp: () => !0
34
+ })({});
21
35
  //#endregion
22
- export { e as getCommonStatusLabel };
36
+ export { u as FinancedInvoiceStatusChip };
@@ -1,76 +1,22 @@
1
- import { cn as e } from "./index64.js";
2
- import { Badge as t } from "./index71.js";
3
- import { getCommonStatusLabel as n } from "./index342.js";
4
- import { jsxs as r } from "@emotion/react/jsx-runtime";
5
- import { useLingui as i } from "@lingui/react";
6
- import { cva as a } from "class-variance-authority";
7
1
  //#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js
8
- var o = a("", { variants: {
9
- variant: {
10
- draft: "ttw:bg-zinc-100 ttw:text-zinc-700",
11
- issuing: "ttw:bg-cyan-100 ttw:text-cyan-700",
12
- issued: "ttw:bg-cyan-100 ttw:text-cyan-700",
13
- failed: "ttw:bg-red-100 ttw:text-red-700",
14
- accepted: "ttw:bg-green-100 ttw:text-green-700",
15
- partially_paid: "ttw:bg-purple-100 ttw:text-purple-700",
16
- paid: "ttw:bg-green-100 ttw:text-green-700",
17
- expired: "ttw:bg-red-100 ttw:text-red-700",
18
- uncollectible: "ttw:bg-red-100 ttw:text-red-700",
19
- canceled: "ttw:bg-red-100 ttw:text-red-700",
20
- recurring: "ttw:bg-zinc-100 ttw:text-zinc-700",
21
- declined: "ttw:bg-red-100 ttw:text-red-700",
22
- overdue: "ttw:bg-orange-100 ttw:text-orange-700",
23
- deleted: "ttw:bg-red-100 ttw:text-red-700"
24
- },
25
- dotVariant: {
26
- draft: "ttw:border-zinc-100 ttw:bg-zinc-700",
27
- issuing: "ttw:border-cyan-100 ttw:bg-cyan-700",
28
- issued: "ttw:border-cyan-100 ttw:bg-cyan-700",
29
- failed: "ttw:border-red-100 ttw:bg-red-700",
30
- accepted: "ttw:border-green-100 ttw:bg-green-700",
31
- partially_paid: "ttw:border-purple-100 ttw:bg-purple-700",
32
- paid: "ttw:border-green-100 ttw:bg-green-700",
33
- expired: "ttw:border-red-100 ttw:bg-red-700",
34
- uncollectible: "ttw:border-red-100 ttw:bg-red-700",
35
- canceled: "ttw:border-red-100 ttw:bg-red-700",
36
- recurring: "ttw:border-zinc-100 ttw:bg-zinc-700",
37
- declined: "ttw:border-red-100 ttw:bg-red-700",
38
- overdue: "ttw:border-orange-100 ttw:bg-orange-700",
39
- deleted: "ttw:border-red-100 ttw:bg-red-700"
40
- },
41
- outlineVariant: {
42
- draft: "ttw:border-zinc-200 ttw:bg-zinc-50 ttw:text-zinc-700 ttw:hover:bg-zinc-50",
43
- issuing: "ttw:border-blue-200 ttw:bg-blue-50 ttw:text-blue-700 ttw:hover:bg-blue-50",
44
- issued: "ttw:border-blue-200 ttw:bg-blue-50 ttw:text-blue-700 ttw:hover:bg-blue-50",
45
- failed: "ttw:border-red-200 ttw:bg-red-50 ttw:text-red-700 ttw:hover:bg-red-50",
46
- accepted: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700 ttw:hover:bg-emerald-50",
47
- partially_paid: "ttw:border-blue-200 ttw:bg-blue-50 ttw:text-blue-700 ttw:hover:bg-blue-50",
48
- paid: "ttw:border-emerald-200 ttw:bg-emerald-50 ttw:text-emerald-700 ttw:hover:bg-emerald-50",
49
- expired: "ttw:border-red-200 ttw:bg-red-50 ttw:text-red-700 ttw:hover:bg-red-50",
50
- uncollectible: "ttw:border-zinc-200 ttw:bg-zinc-50 ttw:text-zinc-700 ttw:hover:bg-zinc-50",
51
- canceled: "ttw:border-zinc-200 ttw:bg-zinc-50 ttw:text-zinc-700 ttw:hover:bg-zinc-50",
52
- recurring: "ttw:border-zinc-200 ttw:bg-zinc-50 ttw:text-zinc-700 ttw:hover:bg-zinc-50",
53
- declined: "ttw:border-red-200 ttw:bg-red-50 ttw:text-red-700 ttw:hover:bg-red-50",
54
- overdue: "ttw:border-red-200 ttw:bg-red-50 ttw:text-red-700 ttw:hover:bg-red-50",
55
- deleted: "ttw:border-zinc-200 ttw:bg-zinc-50 ttw:text-zinc-700 ttw:hover:bg-zinc-50"
2
+ var e = (e, t) => {
3
+ switch (t) {
4
+ case "draft": return e._("Draft");
5
+ case "issuing": return e._("Issuing");
6
+ case "issued": return e._("Issued");
7
+ case "failed": return e._("Failed");
8
+ case "accepted": return e._("Accepted");
9
+ case "expired": return e._("Expired");
10
+ case "declined": return e._("Declined");
11
+ case "recurring": return e._("Recurring");
12
+ case "partially_paid": return e._("Partially paid");
13
+ case "paid": return e._("Paid");
14
+ case "overdue": return e._("Overdue");
15
+ case "uncollectible": return e._("Uncollectible");
16
+ case "canceled": return e._("Canceled");
17
+ case "deleted": return e._("Deleted");
18
+ default: throw Error(`Unknown status ${JSON.stringify(t)}`);
56
19
  }
57
- } }), s = ({ status: a, variant: s = "filled", label: c, icon: l, className: u, showBadgeBackground: d = !0, dotSize: f, ref: p }) => {
58
- let { i18n: m } = i();
59
- return s === "outline" ? /* @__PURE__ */ r(t, {
60
- ref: p,
61
- variant: "outline",
62
- className: e(o({ outlineVariant: a }), u),
63
- children: [l, c ?? n(m, a)]
64
- }) : /* @__PURE__ */ r(t, {
65
- ref: p,
66
- className: e("ttw:inline-flex ttw:items-center ttw:gap-1", o({ variant: a }), !d && "ttw:text-zinc-950!", u),
67
- dotClassName: o({ dotVariant: a }),
68
- showBadgeBackground: d,
69
- showDotBorder: !d,
70
- dotSize: f,
71
- showDot: !1,
72
- children: [l, c ?? n(m, a)]
73
- });
74
20
  };
75
21
  //#endregion
76
- export { s as InvoiceStatusChip };
22
+ export { e as getCommonStatusLabel };