@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.
- package/dist/index.css +9 -0
- package/dist/index.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/lib/monite-sdk.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +14 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +28 -97
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +81 -176
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +50 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +250 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +106 -107
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +209 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +3 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +114 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +21 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +36 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +10 -283
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +199 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +3 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +14 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +314 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +4 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +85 -105
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +16 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +113 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +5 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +5 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +9 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +81 -145
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index81.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +8 -87
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index84.js +170 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +89 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index422.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index479.js +16 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index480.js +13 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index481.js +19 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index482.js +98 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index483.js +43 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index484.js +30 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index485.js +1 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index486.js +11 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index487.js +14 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index488.js +4 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index489.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index490.js +18 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index491.js +8 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index492.js +102 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index493.js +36 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index494.js +44 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index495.js +72 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index496.js +99 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index497.js +35 -178
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index498.js +171 -125
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index499.js +134 -123
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index500.js +125 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index501.js +63 -232
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index502.js +248 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index504.js +5 -456
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index505.js +455 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index506.js +17 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index507.js +13 -49
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index508.js +51 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index509.js +46 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index510.js +13 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index511.js +39 -144
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index512.js +143 -112
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index513.js +114 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index514.js +33 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index515.js +32 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index516.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index517.js +19 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index518.js +20 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index519.js +73 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index520.js +18 -172
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index521.js +149 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index522.js +136 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index523.js +31 -115
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index524.js +116 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index525.js +10 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index526.js +46 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index527.js +13 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index528.js +21 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index529.js +26 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index530.js +36 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index531.js +77 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index532.js +50 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index533.js +34 -89
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index534.js +86 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index535.js +54 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index536.js +1 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index537.js +40 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index538.js +0 -135
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index539.js +129 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index540.js +105 -50
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index541.js +48 -779
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index542.js +780 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index543.js +84 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index544.js +105 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index545.js +6 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index546.js +23 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index547.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index548.js +2 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index549.js +25 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index550.js +14 -171
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index551.js +163 -200
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index552.js +204 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index553.js +82 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index554.js +17 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index555.js +146 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index556.js +95 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index557.js +46 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index558.js +4 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index559.js +13 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index560.js +27 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index561.js +0 -186
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index562.js +186 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index563.js +0 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index564.js +41 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index565.js +5 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index566.js +20 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index567.js +74 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index568.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index569.js +19 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index570.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index571.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index572.js +11 -131
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index573.js +129 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index574.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index575.js +8 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index576.js +4 -221
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index577.js +219 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index578.js +12 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index579.js +32 -181
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index580.js +168 -189
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index581.js +192 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index582.js +97 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index583.js +63 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index584.js +46 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index585.js +91 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index586.js +39 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index587.js +63 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index588.js +85 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index589.js +12 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index590.js +25 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index591.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index592.js +4 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index593.js +23 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index594.js +1 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index595.js +24 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index596.js +4 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index597.js +9 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index598.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index599.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index600.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index601.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index602.js +6 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index603.js +17 -68
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index604.js +66 -113
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index605.js +104 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index606.js +72 -138
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index607.js +144 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index608.js +28 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index609.js +14 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index610.js +91 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index611.js +3 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index612.js +22 -67
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index613.js +71 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index614.js +0 -65
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index615.js +66 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index616.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index617.js +2 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index618.js +33 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index619.js +14 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index620.js +29 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index621.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index622.js +2 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index623.js +97 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/monite-wrapper/feature/dist/lib/MoniteWrapper.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index7.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +16 -11
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +0 -2
|
@@ -1,222 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "./
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { FinanceFaqWrapper as r } from "./index567.js";
|
|
6
|
-
import { FinanceProgressBar as i } from "./index568.js";
|
|
7
|
-
import { useKanmonContext as a } from "./index571.js";
|
|
8
|
-
import { FinancialApplicationState as o, useFinancing as s } from "./index572.js";
|
|
1
|
+
import "./index570.js";
|
|
2
|
+
import "./index571.js";
|
|
3
|
+
import "./index573.js";
|
|
4
|
+
import "./index574.js";
|
|
9
5
|
import "./index575.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/index576.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,14 +1,222 @@
|
|
|
1
|
+
import { useCurrencies as e } from "./index63.js";
|
|
2
|
+
import "./index217.js";
|
|
3
|
+
import { MoniteScopedProviders as t } from "./index237.js";
|
|
4
|
+
import { FinanceBannerWrapper as n } from "./index566.js";
|
|
5
|
+
import { FinanceFaqWrapper as r } from "./index568.js";
|
|
6
|
+
import { FinanceProgressBar as i } from "./index569.js";
|
|
7
|
+
import { useKanmonContext as a } from "./index572.js";
|
|
8
|
+
import { FinancialApplicationState as o, useFinancing as s } from "./index573.js";
|
|
9
|
+
import "./index576.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
14
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index577.js
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
+
});
|
|
12
220
|
};
|
|
13
221
|
//#endregion
|
|
14
|
-
export {
|
|
222
|
+
export { S as FinanceBanner };
|
|
@@ -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 "./index19.js";
|
|
2
|
-
import { getCommonStatusLabel as r } from "./index577.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/index578.js
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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 {
|
|
14
|
+
export { e as getCommonStatusLabel };
|