@tesouro/embedded-components-react 0.7.30 → 0.7.32
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.
- package/dist/lib/monite-sdk.d.ts +0 -1
- package/dist/lib/monite-sdk.js +40 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +41 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +55 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +2 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +53 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +36 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +71 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +6 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +79 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +1 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +58 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +42 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +1 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +568 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +0 -577
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +160 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +0 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +27 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +93 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +10 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +73 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +1 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +127 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +0 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +54 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +5 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +1 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +64 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +120 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +21 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +6 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +35 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +6 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +56 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +69 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +25 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +1 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +61 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +17 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +181 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +1 -185
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +31 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +2 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +64 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +31 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +6 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +29 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +42 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +11 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +15 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +4 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +12 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +32 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +8 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +20 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +7 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +111 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +62 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +1 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +199 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +0 -199
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +11 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +38 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +6 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +9 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +13 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +7 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +5 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +359 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +1 -412
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +91 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +18 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +7 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +182 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +96 -178
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +1 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +44 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +1 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +161 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +0 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +61 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +44 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +48 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +82 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +7 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +305 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +1 -307
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +1 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +160 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +0 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +37 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +33 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +3 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +102 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +172 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +116 -171
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +191 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +11 -209
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +28 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +1 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +241 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +0 -241
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +36 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +138 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +1 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +166 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +25 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +19 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +17 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +5 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +14 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +18 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +5 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +14 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +9 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +26 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +11 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +8 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +24 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +14 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +100 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +42 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +27 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +1 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +105 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +35 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +166 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +202 -163
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +87 -207
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +17 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +158 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +87 -143
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +42 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +4 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +24 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +73 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +16 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +5 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +11 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +131 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +4 -129
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +5 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +221 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +31 -219
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +11 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +34 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +180 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +14 -182
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +204 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +88 -192
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +61 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +54 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +83 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +40 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +75 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +71 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +12 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +24 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +16 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +23 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +0 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +52 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +32 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +2 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +15 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +29 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +27 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +2 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +97 -2
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +0 -97
|
@@ -1,5 +1,222 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import "./
|
|
1
|
+
import { useCurrencies as e } from "./index63.js";
|
|
2
|
+
import { MoniteScopedProviders as t } from "./index129.js";
|
|
3
|
+
import "./index173.js";
|
|
4
|
+
import { FinanceBannerWrapper as n } from "./index378.js";
|
|
5
|
+
import { FinanceFaqWrapper as r } from "./index380.js";
|
|
6
|
+
import { FinanceProgressBar as i } from "./index381.js";
|
|
7
|
+
import { useKanmonContext as a } from "./index384.js";
|
|
8
|
+
import { FinancialApplicationState as o, useFinancing as s } from "./index385.js";
|
|
5
9
|
import "./index388.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";
|
|
14
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js
|
|
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
|
+
});
|
|
220
|
+
};
|
|
221
|
+
//#endregion
|
|
222
|
+
export { S as FinanceBanner };
|
|
@@ -1,222 +1,34 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import "
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { useKanmonContext as a } from "./index385.js";
|
|
8
|
-
import { FinancialApplicationState as o, useFinancing as s } from "./index386.js";
|
|
9
|
-
import "./index389.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";
|
|
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";
|
|
14
7
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
});
|
|
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
|
|
220
32
|
};
|
|
221
33
|
//#endregion
|
|
222
|
-
export {
|
|
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,34 +1,14 @@
|
|
|
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";
|
|
7
1
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
|
|
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
|
+
}
|
|
32
12
|
};
|
|
33
13
|
//#endregion
|
|
34
|
-
export {
|
|
14
|
+
export { e as getCommonStatusLabel };
|
|
@@ -1,14 +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 "./index390.js";
|
|
2
|
+
import { getCommonStatusLabel as r } from "./index391.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/index392.js
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
+
})({});
|
|
13
35
|
//#endregion
|
|
14
|
-
export {
|
|
36
|
+
export { u as FinancedInvoiceStatusChip };
|