@tesouro/embedded-components-react 0.7.50 → 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.
- package/dist/lib/monite-sdk.d.ts +42 -42
- package/dist/lib/monite-sdk.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index100.js +56 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +10 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +39 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +0 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +105 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +1 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index106.js +56 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -153
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +150 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +55 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +7 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +51 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +38 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +72 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +36 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +6 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +57 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +172 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +6 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +2 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +76 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +0 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +78 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +1 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +35 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +0 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +56 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +44 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +0 -568
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +568 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +1 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +159 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +19 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +1 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +12 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +87 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +44 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +48 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +83 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +7 -305
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +307 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +1 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +0 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +159 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +1 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +34 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +33 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +3 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +88 -172
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +171 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +114 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +209 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +11 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +14 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +31 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +0 -241
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +241 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +1 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +31 -137
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +142 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +0 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +166 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +26 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +17 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +4 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +12 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +21 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +4 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +11 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +20 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +8 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +23 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +12 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +8 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +25 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +14 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +81 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +14 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +98 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +43 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +30 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +0 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +102 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +32 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +171 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +13 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +4 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +62 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +24 -209
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +207 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +90 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +17 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +144 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +100 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +46 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +4 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +20 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +74 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +19 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +11 -131
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +129 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +8 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +4 -221
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +219 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +31 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +12 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +34 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +18 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +73 -181
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +182 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +14 -204
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +192 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +97 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +63 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +46 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +91 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +39 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +63 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +85 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +12 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +25 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +4 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +23 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +0 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +46 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +2 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +33 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +14 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +29 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +31 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +2 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +97 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +2 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +17 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +1 -57
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
|
@@ -1,94 +1,57 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import { useGetFinancedInvoices as
|
|
7
|
-
import "./
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
1
|
+
import { useMoniteContext as e } from "./index45.js";
|
|
2
|
+
import { useCurrencies as t } from "./index76.js";
|
|
3
|
+
import "./index89.js";
|
|
4
|
+
import { Dialog as n } from "./index129.js";
|
|
5
|
+
import "./index130.js";
|
|
6
|
+
import { useGetFinancedInvoices as r } from "./index337.js";
|
|
7
|
+
import "./index338.js";
|
|
8
|
+
import { FinancedInvoiceStatusChip as i } from "./index342.js";
|
|
9
|
+
import { FinanceDetails as a } from "./index345.js";
|
|
10
|
+
import { useState as o } from "react";
|
|
11
|
+
import { Fragment as s, jsx as c, jsxs as l } from "@emotion/react/jsx-runtime";
|
|
12
|
+
import { Box as u, Skeleton as d, Typography as f, useTheme as p } from "@mui/material";
|
|
12
13
|
import { useLingui as m } from "@lingui/react";
|
|
13
14
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js
|
|
14
|
-
var h =
|
|
15
|
-
let { i18n: _ } = m(), {
|
|
16
|
-
invoice_id:
|
|
15
|
+
var h = ({ invoice: h, offers: g }) => {
|
|
16
|
+
let { i18n: _ } = m(), v = p(), { locale: y } = e(), [b, x] = o(!1), { formatCurrencyToDisplay: S } = t(), { isLoading: C, data: w } = r({
|
|
17
|
+
invoice_id: h.id,
|
|
17
18
|
type: "receivable"
|
|
18
|
-
}),
|
|
19
|
-
return
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
})
|
|
19
|
+
}), T = w?.data?.[0] ?? null, E = y.dateFormat, D = T ? S(T.repayment_schedule?.repayment_amount ?? 0, h.currency) : "—", O = T?.repayment_schedule?.repayment_date ? _.date(T?.repayment_schedule?.repayment_date, E) : "—", k = T?.status;
|
|
20
|
+
return C ? /* @__PURE__ */ c(d, {
|
|
21
|
+
variant: "rounded",
|
|
22
|
+
height: 80
|
|
23
|
+
}) : /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ l(u, {
|
|
24
|
+
onClick: () => x(!0),
|
|
23
25
|
sx: {
|
|
26
|
+
borderRadius: "16px",
|
|
27
|
+
px: 3,
|
|
28
|
+
py: 2.5,
|
|
24
29
|
display: "flex",
|
|
25
30
|
alignItems: "center",
|
|
26
|
-
|
|
27
|
-
|
|
31
|
+
justifyContent: "space-between",
|
|
32
|
+
border: `1px solid ${v.palette.divider}`,
|
|
33
|
+
cursor: "pointer"
|
|
28
34
|
},
|
|
29
|
-
children: [/* @__PURE__ */ l(u, {
|
|
30
|
-
sx: { flex: "1 1 0%" },
|
|
31
|
-
children: [/* @__PURE__ */ c(p, {
|
|
32
|
-
variant: "subtitle2",
|
|
33
|
-
children: _._("Don't wait for your client to pay")
|
|
34
|
-
}), /* @__PURE__ */ l(p, {
|
|
35
|
-
variant: "body1",
|
|
36
|
-
children: [
|
|
37
|
-
_._("This invoice can be financed"),
|
|
38
|
-
".",
|
|
39
|
-
" ",
|
|
40
|
-
/* @__PURE__ */ c(f, {
|
|
41
|
-
arrow: !0,
|
|
42
|
-
title: _._("Invoices that are due within 7 days cannot be financed. Overdue invoices cannot be financed. The loan sum must be within your remaining limit."),
|
|
43
|
-
children: /* @__PURE__ */ c(p, {
|
|
44
|
-
variant: "body1",
|
|
45
|
-
sx: { textDecoration: "underline" },
|
|
46
|
-
component: "span",
|
|
47
|
-
children: _._("Why?")
|
|
48
|
-
})
|
|
49
|
-
})
|
|
50
|
-
]
|
|
51
|
-
})]
|
|
52
|
-
}), /* @__PURE__ */ c(d, {
|
|
53
|
-
onClick: async () => {
|
|
54
|
-
try {
|
|
55
|
-
b(!0), x.mutate({ invoices: [{
|
|
56
|
-
id: g.id,
|
|
57
|
-
type: "receivable"
|
|
58
|
-
}] }, {
|
|
59
|
-
onError: () => {
|
|
60
|
-
b(!1);
|
|
61
|
-
},
|
|
62
|
-
onSuccess: ({ session_token: e }) => {
|
|
63
|
-
v({
|
|
64
|
-
sessionToken: e,
|
|
65
|
-
component: "SESSION_INVOICE_FLOW_WITH_INVOICE_FILE"
|
|
66
|
-
}), b(!1);
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
} catch {
|
|
70
|
-
b(!1);
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
disabled: y || A,
|
|
74
|
-
color: "primary",
|
|
75
|
-
variant: "contained",
|
|
76
|
-
sx: {
|
|
77
|
-
px: 2.5,
|
|
78
|
-
py: 1.5
|
|
79
|
-
},
|
|
80
|
-
children: y ? _._("Loading...") : _._("Get paid now")
|
|
81
|
-
})]
|
|
82
|
-
}) }) : /* @__PURE__ */ c(e, { children: /* @__PURE__ */ l(u, {
|
|
83
|
-
sx: { flex: "1 1 0%" },
|
|
84
|
-
children: [/* @__PURE__ */ c(p, {
|
|
35
|
+
children: [/* @__PURE__ */ l(u, { children: [/* @__PURE__ */ c(f, {
|
|
85
36
|
variant: "subtitle2",
|
|
86
|
-
children: _._("
|
|
87
|
-
}), /* @__PURE__ */ c(
|
|
37
|
+
children: _._("Funding for {repaymentAmount}", { repaymentAmount: D })
|
|
38
|
+
}), /* @__PURE__ */ c(f, {
|
|
88
39
|
variant: "body1",
|
|
89
|
-
children: _._("
|
|
90
|
-
})]
|
|
91
|
-
|
|
40
|
+
children: _._("Repayment on {repaymentDate}", { repaymentDate: O })
|
|
41
|
+
})] }), /* @__PURE__ */ c(u, { children: /* @__PURE__ */ c(i, {
|
|
42
|
+
icon: !0,
|
|
43
|
+
status: k ?? "DEFAULTED"
|
|
44
|
+
}) })]
|
|
45
|
+
}), /* @__PURE__ */ c(n, {
|
|
46
|
+
open: b,
|
|
47
|
+
onClose: () => x(!1),
|
|
48
|
+
alignDialog: "right",
|
|
49
|
+
children: /* @__PURE__ */ c(a, {
|
|
50
|
+
invoice: h,
|
|
51
|
+
offers: g?.offers,
|
|
52
|
+
financedInvoice: T
|
|
53
|
+
})
|
|
54
|
+
})] });
|
|
92
55
|
};
|
|
93
56
|
//#endregion
|
|
94
|
-
export {
|
|
57
|
+
export { h as FinanceOverviewCard };
|
|
@@ -1,43 +1,94 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
1
|
+
import { FinanceBannerWrapper as e } from "./index328.js";
|
|
2
|
+
import { useKanmonContext as t } from "./index334.js";
|
|
3
|
+
import { useGetFinanceOffers as n } from "./index332.js";
|
|
4
|
+
import { useFinancing as r } from "./index335.js";
|
|
5
|
+
import { useFinanceAnInvoice as i } from "./index336.js";
|
|
6
|
+
import { useGetFinancedInvoices as a } from "./index337.js";
|
|
7
|
+
import "./index338.js";
|
|
8
|
+
import { FinanceOverviewCard as o } from "./index350.js";
|
|
9
|
+
import { useState as s } from "react";
|
|
10
|
+
import { jsx as c, jsxs as l } from "@emotion/react/jsx-runtime";
|
|
11
|
+
import { Box as u, Button as d, Tooltip as f, Typography as p } from "@mui/material";
|
|
12
|
+
import { useLingui as m } from "@lingui/react";
|
|
9
13
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js
|
|
10
|
-
var
|
|
11
|
-
let { i18n:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
14
|
+
var h = 5184e5, g = ({ invoice: g }) => {
|
|
15
|
+
let { i18n: _ } = m(), { startFinanceSession: v } = t(), [y, b] = s(!1), x = i(), { isLoading: S, data: C } = a({
|
|
16
|
+
invoice_id: g.id,
|
|
17
|
+
type: "receivable"
|
|
18
|
+
}), { isLoading: w, isEnabled: T, isServicing: E } = r(), { isLoading: D, data: O } = n(), k = !!C?.data?.find((e) => e?.invoice_id === g.id), A = w || S || D, j = ["issued", "partially_paid"].includes(g.status), M = g.due_date ? new Date(g.due_date).getTime() - ((/* @__PURE__ */ new Date()).getTime() + h) > 0 : !1;
|
|
19
|
+
return !T || !E ? null : k ? /* @__PURE__ */ c(u, { children: /* @__PURE__ */ c(o, {
|
|
20
|
+
invoice: g,
|
|
21
|
+
offers: O ?? null
|
|
22
|
+
}) }) : j && M ? /* @__PURE__ */ c(e, { children: /* @__PURE__ */ l(u, {
|
|
23
|
+
sx: {
|
|
24
|
+
display: "flex",
|
|
25
|
+
alignItems: "center",
|
|
26
|
+
gap: 2,
|
|
27
|
+
justifyContent: "space-between"
|
|
28
|
+
},
|
|
29
|
+
children: [/* @__PURE__ */ l(u, {
|
|
30
|
+
sx: { flex: "1 1 0%" },
|
|
31
|
+
children: [/* @__PURE__ */ c(p, {
|
|
32
|
+
variant: "subtitle2",
|
|
33
|
+
children: _._("Don't wait for your client to pay")
|
|
34
|
+
}), /* @__PURE__ */ l(p, {
|
|
35
|
+
variant: "body1",
|
|
36
|
+
children: [
|
|
37
|
+
_._("This invoice can be financed"),
|
|
38
|
+
".",
|
|
39
|
+
" ",
|
|
40
|
+
/* @__PURE__ */ c(f, {
|
|
41
|
+
arrow: !0,
|
|
42
|
+
title: _._("Invoices that are due within 7 days cannot be financed. Overdue invoices cannot be financed. The loan sum must be within your remaining limit."),
|
|
43
|
+
children: /* @__PURE__ */ c(p, {
|
|
44
|
+
variant: "body1",
|
|
45
|
+
sx: { textDecoration: "underline" },
|
|
46
|
+
component: "span",
|
|
47
|
+
children: _._("Why?")
|
|
48
|
+
})
|
|
49
|
+
})
|
|
50
|
+
]
|
|
51
|
+
})]
|
|
52
|
+
}), /* @__PURE__ */ c(d, {
|
|
53
|
+
onClick: async () => {
|
|
54
|
+
try {
|
|
55
|
+
b(!0), x.mutate({ invoices: [{
|
|
56
|
+
id: g.id,
|
|
57
|
+
type: "receivable"
|
|
58
|
+
}] }, {
|
|
59
|
+
onError: () => {
|
|
60
|
+
b(!1);
|
|
61
|
+
},
|
|
62
|
+
onSuccess: ({ session_token: e }) => {
|
|
63
|
+
v({
|
|
64
|
+
sessionToken: e,
|
|
65
|
+
component: "SESSION_INVOICE_FLOW_WITH_INVOICE_FILE"
|
|
66
|
+
}), b(!1);
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
} catch {
|
|
70
|
+
b(!1);
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
disabled: y || A,
|
|
74
|
+
color: "primary",
|
|
75
|
+
variant: "contained",
|
|
76
|
+
sx: {
|
|
77
|
+
px: 2.5,
|
|
78
|
+
py: 1.5
|
|
79
|
+
},
|
|
80
|
+
children: y ? _._("Loading...") : _._("Get paid now")
|
|
81
|
+
})]
|
|
82
|
+
}) }) : /* @__PURE__ */ c(e, { children: /* @__PURE__ */ l(u, {
|
|
83
|
+
sx: { flex: "1 1 0%" },
|
|
84
|
+
children: [/* @__PURE__ */ c(p, {
|
|
85
|
+
variant: "subtitle2",
|
|
86
|
+
children: _._("This invoice can't be financed")
|
|
87
|
+
}), /* @__PURE__ */ c(p, {
|
|
88
|
+
variant: "body1",
|
|
89
|
+
children: _._("It must be in the “Issued” or “Partially paid” statuses and have more than 7 days till overdue.")
|
|
90
|
+
})]
|
|
91
|
+
}) });
|
|
41
92
|
};
|
|
42
93
|
//#endregion
|
|
43
|
-
export {
|
|
94
|
+
export { g as FinanceInvoice };
|
|
@@ -1,79 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import "./
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { useLingui as d } from "@lingui/react";
|
|
1
|
+
import { Dialog as e } from "./index129.js";
|
|
2
|
+
import "./index130.js";
|
|
3
|
+
import { useKanmonContext as t } from "./index334.js";
|
|
4
|
+
import { FinanceHowItWorks as n } from "./index348.js";
|
|
5
|
+
import { useState as r } from "react";
|
|
6
|
+
import { jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
|
|
7
|
+
import { Button as o, Stack as s } from "@mui/material";
|
|
8
|
+
import { useLingui as c } from "@lingui/react";
|
|
10
9
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js
|
|
11
|
-
var
|
|
12
|
-
let {
|
|
13
|
-
return
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
41
|
-
children: g(v, "USD")
|
|
42
|
-
}), /* @__PURE__ */ s(l, {
|
|
43
|
-
component: "span",
|
|
44
|
-
variant: "subtitle1",
|
|
45
|
-
fontSize: 18,
|
|
46
|
-
color: h.palette.grey[400],
|
|
47
|
-
children: ["/ ", g(_, "USD")]
|
|
48
|
-
})]
|
|
49
|
-
})] }) : /* @__PURE__ */ o(l, {
|
|
50
|
-
variant: "h2",
|
|
51
|
-
fontSize: 24,
|
|
52
|
-
children: m._("Not available")
|
|
53
|
-
}) }),
|
|
54
|
-
/* @__PURE__ */ s(c, {
|
|
55
|
-
display: "flex",
|
|
56
|
-
flexDirection: "column",
|
|
57
|
-
gap: 1.5,
|
|
58
|
-
children: [b && /* @__PURE__ */ o(r, { progress: y }), /* @__PURE__ */ o(l, {
|
|
59
|
-
variant: "body1",
|
|
60
|
-
fontSize: 14,
|
|
61
|
-
lineHeight: "22px",
|
|
62
|
-
fontWeight: 400,
|
|
63
|
-
children: (() => {
|
|
64
|
-
switch (f?.[0]?.status) {
|
|
65
|
-
case "DEFAULTED": return m._("Financing is blocked due to a violation of the agreed-upon terms. Please, contact the provider for further details.");
|
|
66
|
-
case "CLOSED": return m._("Financing is not available for your business anymore. Please, contact the provider for further details.");
|
|
67
|
-
case "LATE": return m._("Due to late payment your financing is currently on hold. Please, contact the provider for further details.");
|
|
68
|
-
default: return m._("Your amount available for financing additional invoices.");
|
|
69
|
-
}
|
|
70
|
-
})()
|
|
71
|
-
})]
|
|
72
|
-
}),
|
|
73
|
-
p?.financing?.enableFinanceWidgetButton && /* @__PURE__ */ o(i, {})
|
|
74
|
-
]
|
|
75
|
-
}) })]
|
|
10
|
+
var l = () => {
|
|
11
|
+
let { i18n: l } = c(), { startFinanceSession: u } = t(), [d, f] = r(!1);
|
|
12
|
+
return /* @__PURE__ */ a(s, {
|
|
13
|
+
direction: "row",
|
|
14
|
+
gap: 1,
|
|
15
|
+
alignItems: "center",
|
|
16
|
+
children: [
|
|
17
|
+
/* @__PURE__ */ i(o, {
|
|
18
|
+
variant: "text",
|
|
19
|
+
onClick: () => f(!0),
|
|
20
|
+
children: l._("How does invoice financing work?")
|
|
21
|
+
}),
|
|
22
|
+
/* @__PURE__ */ i(o, {
|
|
23
|
+
onClick: () => u(),
|
|
24
|
+
variant: "contained",
|
|
25
|
+
color: "primary",
|
|
26
|
+
sx: {
|
|
27
|
+
px: 2.5,
|
|
28
|
+
py: 1.5,
|
|
29
|
+
height: 40
|
|
30
|
+
},
|
|
31
|
+
children: l._("Financing menu")
|
|
32
|
+
}),
|
|
33
|
+
/* @__PURE__ */ i(e, {
|
|
34
|
+
open: d,
|
|
35
|
+
onClose: () => f(!1),
|
|
36
|
+
alignDialog: "right",
|
|
37
|
+
children: /* @__PURE__ */ i(n, {})
|
|
38
|
+
})
|
|
39
|
+
]
|
|
76
40
|
});
|
|
77
41
|
};
|
|
78
42
|
//#endregion
|
|
79
|
-
export {
|
|
43
|
+
export { l as FinanceMenuButtons };
|
|
@@ -1,87 +1,79 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
1
|
+
import { useMoniteContext as e } from "./index45.js";
|
|
2
|
+
import { useCurrencies as t } from "./index76.js";
|
|
3
|
+
import "./index89.js";
|
|
4
|
+
import { FinanceBannerWrapper as n } from "./index328.js";
|
|
5
|
+
import { FinanceProgressBar as r } from "./index331.js";
|
|
6
|
+
import { FinanceMenuButtons as i } from "./index352.js";
|
|
7
|
+
import { Fragment as a, jsx as o, jsxs as s } from "@emotion/react/jsx-runtime";
|
|
8
|
+
import { Box as c, Typography as l, useTheme as u } from "@mui/material";
|
|
9
|
+
import { useLingui as d } from "@lingui/react";
|
|
6
10
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js
|
|
7
|
-
var
|
|
8
|
-
let { i18n:
|
|
9
|
-
return !
|
|
11
|
+
var f = ({ offers: f = [] }) => {
|
|
12
|
+
let { componentSettings: p } = e(), { i18n: m } = d(), h = u(), { formatCurrencyToDisplay: g } = t(), _ = f?.[0]?.total_amount ?? 0, v = (f?.[0]?.status === "LATE" ? 0 : f?.[0]?.available_amount) ?? 0, y = v / _ * 100, b = f?.[0]?.status !== "CLOSED" && f?.[0]?.status !== "DEFAULTED";
|
|
13
|
+
return !f || f.length === 0 ? null : /* @__PURE__ */ s(c, {
|
|
14
|
+
maxWidth: "440px",
|
|
10
15
|
width: "100%",
|
|
11
|
-
children: [/* @__PURE__ */
|
|
16
|
+
children: [/* @__PURE__ */ o(l, {
|
|
12
17
|
variant: "subtitle1",
|
|
13
18
|
sx: {
|
|
14
19
|
mb: 3,
|
|
15
20
|
display: "inline-block"
|
|
16
21
|
},
|
|
17
|
-
children:
|
|
18
|
-
}), /* @__PURE__ */
|
|
22
|
+
children: m._("My financing")
|
|
23
|
+
}), /* @__PURE__ */ o(n, { children: /* @__PURE__ */ s(c, {
|
|
19
24
|
sx: {
|
|
20
25
|
display: "flex",
|
|
21
|
-
|
|
22
|
-
|
|
26
|
+
flexDirection: "column",
|
|
27
|
+
gap: 1.25
|
|
23
28
|
},
|
|
24
|
-
children:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
children: [/* @__PURE__ */ n(r, {
|
|
35
|
-
sx: {
|
|
36
|
-
display: "flex",
|
|
37
|
-
alignItems: "center",
|
|
38
|
-
gap: 1,
|
|
39
|
-
mb: 2
|
|
40
|
-
},
|
|
41
|
-
children: [/* @__PURE__ */ t(u, { sx: {
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ o(c, { children: b ? /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o(l, {
|
|
31
|
+
variant: "body1",
|
|
32
|
+
children: m._("Remaining limit")
|
|
33
|
+
}), /* @__PURE__ */ s(c, {
|
|
34
|
+
display: "flex",
|
|
35
|
+
alignItems: "center",
|
|
36
|
+
gap: 1,
|
|
37
|
+
children: [/* @__PURE__ */ o(l, {
|
|
38
|
+
variant: "h2",
|
|
42
39
|
fontSize: 24,
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
lineHeight: "32px",
|
|
41
|
+
children: g(v, "USD")
|
|
42
|
+
}), /* @__PURE__ */ s(l, {
|
|
43
|
+
component: "span",
|
|
44
|
+
variant: "subtitle1",
|
|
45
|
+
fontSize: 18,
|
|
46
|
+
color: h.palette.grey[400],
|
|
47
|
+
children: ["/ ", g(_, "USD")]
|
|
48
|
+
})]
|
|
49
|
+
})] }) : /* @__PURE__ */ o(l, {
|
|
50
|
+
variant: "h2",
|
|
51
|
+
fontSize: 24,
|
|
52
|
+
children: m._("Not available")
|
|
53
|
+
}) }),
|
|
54
|
+
/* @__PURE__ */ s(c, {
|
|
55
|
+
display: "flex",
|
|
56
|
+
flexDirection: "column",
|
|
57
|
+
gap: 1.5,
|
|
58
|
+
children: [b && /* @__PURE__ */ o(r, { progress: y }), /* @__PURE__ */ o(l, {
|
|
45
59
|
variant: "body1",
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
60
|
+
fontSize: 14,
|
|
61
|
+
lineHeight: "22px",
|
|
62
|
+
fontWeight: 400,
|
|
63
|
+
children: (() => {
|
|
64
|
+
switch (f?.[0]?.status) {
|
|
65
|
+
case "DEFAULTED": return m._("Financing is blocked due to a violation of the agreed-upon terms. Please, contact the provider for further details.");
|
|
66
|
+
case "CLOSED": return m._("Financing is not available for your business anymore. Please, contact the provider for further details.");
|
|
67
|
+
case "LATE": return m._("Due to late payment your financing is currently on hold. Please, contact the provider for further details.");
|
|
68
|
+
default: return m._("Your amount available for financing additional invoices.");
|
|
69
|
+
}
|
|
70
|
+
})()
|
|
52
71
|
})]
|
|
53
|
-
}),
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
sx: { p: 0 },
|
|
58
|
-
children: /* @__PURE__ */ t(o, {
|
|
59
|
-
variant: "body1",
|
|
60
|
-
fontWeight: 400,
|
|
61
|
-
children: f._("{itemAdvance_rate_percentage}% advance rate", { itemAdvance_rate_percentage: d.advance_rate_percentage / 100 })
|
|
62
|
-
})
|
|
63
|
-
}),
|
|
64
|
-
/* @__PURE__ */ t(a, {
|
|
65
|
-
sx: { p: 0 },
|
|
66
|
-
children: /* @__PURE__ */ t(o, {
|
|
67
|
-
variant: "body1",
|
|
68
|
-
fontWeight: 400,
|
|
69
|
-
children: f._("Pay in {itemRepayment_duration_days} days", { itemRepayment_duration_days: d.repayment_duration_days })
|
|
70
|
-
})
|
|
71
|
-
}),
|
|
72
|
-
/* @__PURE__ */ t(a, {
|
|
73
|
-
sx: { p: 0 },
|
|
74
|
-
children: /* @__PURE__ */ t(o, {
|
|
75
|
-
variant: "body1",
|
|
76
|
-
fontWeight: 400,
|
|
77
|
-
children: f._("{itemFee_percentage}% fee", { itemFee_percentage: d.fee_percentage / 100 })
|
|
78
|
-
})
|
|
79
|
-
})
|
|
80
|
-
] }, d.advance_rate_percentage)
|
|
81
|
-
})]
|
|
82
|
-
}, `${c.available_amount}-${l}-${c.total_amount}-${m}`)))
|
|
83
|
-
})]
|
|
72
|
+
}),
|
|
73
|
+
p?.financing?.enableFinanceWidgetButton && /* @__PURE__ */ o(i, {})
|
|
74
|
+
]
|
|
75
|
+
}) })]
|
|
84
76
|
});
|
|
85
77
|
};
|
|
86
78
|
//#endregion
|
|
87
|
-
export {
|
|
79
|
+
export { f as FinanceLimits };
|
|
@@ -1,14 +1,87 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Fragment as e } from "react";
|
|
2
|
+
import { jsx as t, jsxs as n } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { Box as r, List as i, ListItem as a, Typography as o, lighten as s, useTheme as c } from "@mui/material";
|
|
4
|
+
import { useLingui as l } from "@lingui/react";
|
|
5
|
+
import u from "@mui/icons-material/MonetizationOnOutlined";
|
|
5
6
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
var d = ({ offers: d }) => {
|
|
8
|
+
let { i18n: f } = l(), p = c();
|
|
9
|
+
return !d || d.length === 0 ? null : /* @__PURE__ */ n(r, {
|
|
10
|
+
width: "100%",
|
|
11
|
+
children: [/* @__PURE__ */ t(o, {
|
|
12
|
+
variant: "subtitle1",
|
|
13
|
+
sx: {
|
|
14
|
+
mb: 3,
|
|
15
|
+
display: "inline-block"
|
|
16
|
+
},
|
|
17
|
+
children: f._("Current offer")
|
|
18
|
+
}), /* @__PURE__ */ t(r, {
|
|
19
|
+
sx: {
|
|
20
|
+
display: "flex",
|
|
21
|
+
gap: 2,
|
|
22
|
+
flexWrap: "wrap"
|
|
23
|
+
},
|
|
24
|
+
children: d.map((c, l) => c?.pricing_plans?.map((d, m) => /* @__PURE__ */ n(r, {
|
|
25
|
+
width: 232,
|
|
26
|
+
height: 148,
|
|
27
|
+
px: 3,
|
|
28
|
+
py: 2.5,
|
|
29
|
+
sx: {
|
|
30
|
+
backgroundColor: p.palette.background.paper,
|
|
31
|
+
borderRadius: "16px",
|
|
32
|
+
border: `1px solid ${p.palette.divider}`
|
|
33
|
+
},
|
|
34
|
+
children: [/* @__PURE__ */ n(r, {
|
|
35
|
+
sx: {
|
|
36
|
+
display: "flex",
|
|
37
|
+
alignItems: "center",
|
|
38
|
+
gap: 1,
|
|
39
|
+
mb: 2
|
|
40
|
+
},
|
|
41
|
+
children: [/* @__PURE__ */ t(u, { sx: {
|
|
42
|
+
fontSize: 24,
|
|
43
|
+
color: s(p.palette.primary.main, .6)
|
|
44
|
+
} }), /* @__PURE__ */ t(o, {
|
|
45
|
+
variant: "body1",
|
|
46
|
+
fontWeight: 500,
|
|
47
|
+
sx: {
|
|
48
|
+
flex: "1 1 0%",
|
|
49
|
+
width: "100%"
|
|
50
|
+
},
|
|
51
|
+
children: f._("Financing plan")
|
|
52
|
+
})]
|
|
53
|
+
}), /* @__PURE__ */ t(i, {
|
|
54
|
+
sx: { p: 0 },
|
|
55
|
+
children: /* @__PURE__ */ n(e, { children: [
|
|
56
|
+
/* @__PURE__ */ t(a, {
|
|
57
|
+
sx: { p: 0 },
|
|
58
|
+
children: /* @__PURE__ */ t(o, {
|
|
59
|
+
variant: "body1",
|
|
60
|
+
fontWeight: 400,
|
|
61
|
+
children: f._("{itemAdvance_rate_percentage}% advance rate", { itemAdvance_rate_percentage: d.advance_rate_percentage / 100 })
|
|
62
|
+
})
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ t(a, {
|
|
65
|
+
sx: { p: 0 },
|
|
66
|
+
children: /* @__PURE__ */ t(o, {
|
|
67
|
+
variant: "body1",
|
|
68
|
+
fontWeight: 400,
|
|
69
|
+
children: f._("Pay in {itemRepayment_duration_days} days", { itemRepayment_duration_days: d.repayment_duration_days })
|
|
70
|
+
})
|
|
71
|
+
}),
|
|
72
|
+
/* @__PURE__ */ t(a, {
|
|
73
|
+
sx: { p: 0 },
|
|
74
|
+
children: /* @__PURE__ */ t(o, {
|
|
75
|
+
variant: "body1",
|
|
76
|
+
fontWeight: 400,
|
|
77
|
+
children: f._("{itemFee_percentage}% fee", { itemFee_percentage: d.fee_percentage / 100 })
|
|
78
|
+
})
|
|
79
|
+
})
|
|
80
|
+
] }, d.advance_rate_percentage)
|
|
81
|
+
})]
|
|
82
|
+
}, `${c.available_amount}-${l}-${c.total_amount}-${m}`)))
|
|
83
|
+
})]
|
|
84
|
+
});
|
|
85
|
+
};
|
|
13
86
|
//#endregion
|
|
14
|
-
export {
|
|
87
|
+
export { d as FinanceOffers };
|