@tesouro/embedded-components-react 0.7.49 → 0.7.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/monite-sdk.d.ts +42 -42
- package/dist/lib/monite-sdk.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartsTable.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/mocks/counterparts.js +233 -88
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/mocks/labels.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/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,102 +1,206 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { ScopedCssBaselineContainerClassName as e } from "./index29.js";
|
|
2
|
+
import { useMoniteContext as t } from "./index45.js";
|
|
3
|
+
import { useGetReceivableById as n } from "./index60.js";
|
|
4
|
+
import { useCurrencies as r } from "./index76.js";
|
|
5
|
+
import { useAutosizeGridColumns as i } from "./index82.js";
|
|
6
|
+
import { Dialog as a } from "./index129.js";
|
|
7
|
+
import "./index130.js";
|
|
8
|
+
import { MoniteScopedProviders as o } from "./index155.js";
|
|
9
|
+
import { GetNoRowsOverlay as s } from "./index161.js";
|
|
10
|
+
import { TablePagination as c } from "./index183.js";
|
|
11
|
+
import { classNames as l } from "./index185.js";
|
|
12
|
+
import { useKanmonContext as u } from "./index334.js";
|
|
13
|
+
import { useGetFinancedInvoices as d } from "./index337.js";
|
|
14
|
+
import "./index338.js";
|
|
15
|
+
import { FinancedInvoiceStatusChip as f } from "./index342.js";
|
|
16
|
+
import { FinanceDetails as p } from "./index345.js";
|
|
17
|
+
import { ReceivableCursorFields as m } from "./index346.js";
|
|
18
|
+
import { useMemo as h, useState as g } from "react";
|
|
19
|
+
import { jsx as _, jsxs as v } from "@emotion/react/jsx-runtime";
|
|
20
|
+
import { Box as y, Button as b, Typography as x } from "@mui/material";
|
|
21
|
+
import { useLingui as S } from "@lingui/react";
|
|
22
|
+
import { DataGrid as C } from "@mui/x-data-grid";
|
|
5
23
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js
|
|
6
|
-
var
|
|
7
|
-
let { i18n:
|
|
24
|
+
var w = (e) => /* @__PURE__ */ _(o, { children: /* @__PURE__ */ _(T, { ...e }) }), T = ({ onRowClick: o, query: w, offers: T }) => {
|
|
25
|
+
let { i18n: E } = S(), { locale: D, componentSettings: O } = t(), { startFinanceSession: k } = u(), [A, j] = g(!1), [M, N] = g(null), { data: P } = n(M?.invoice_id ?? "", !!M?.invoice_id), [F, I] = g(void 0), [L, R] = g(O.receivables.pageSizeOptions?.[0] ?? 10), [z, B] = g({
|
|
26
|
+
field: w?.sort ?? "created_at",
|
|
27
|
+
sort: w?.order ?? "desc"
|
|
28
|
+
}), { formatCurrencyToDisplay: V } = r(), { data: H, isLoading: U, isError: W, refetch: G } = d({
|
|
29
|
+
order: z?.sort,
|
|
30
|
+
limit: L,
|
|
31
|
+
pagination_token: F
|
|
32
|
+
}), K = H?.data, q = (e) => {
|
|
33
|
+
B(e[0]), I(void 0);
|
|
34
|
+
}, J = D.dateFormat, Y = h(() => [
|
|
8
35
|
{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
36
|
+
field: "document_id",
|
|
37
|
+
headerName: E._("Number"),
|
|
38
|
+
sortable: !1,
|
|
39
|
+
width: 140,
|
|
40
|
+
renderCell: ({ value: e }) => e ? /* @__PURE__ */ _("span", {
|
|
41
|
+
className: "Monite-TextOverflowContainer",
|
|
42
|
+
children: e
|
|
43
|
+
}) : /* @__PURE__ */ _("span", {
|
|
44
|
+
className: "Monite-TextOverflowContainer",
|
|
45
|
+
children: /* @__PURE__ */ _(x, {
|
|
46
|
+
color: "text.secondary",
|
|
47
|
+
component: "span",
|
|
48
|
+
fontSize: "inherit",
|
|
49
|
+
children: E._("Pending")
|
|
50
|
+
})
|
|
51
|
+
})
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
field: "payer_type",
|
|
55
|
+
headerName: E._("Customer"),
|
|
56
|
+
display: "flex",
|
|
57
|
+
width: 250,
|
|
58
|
+
renderCell: (e) => /* @__PURE__ */ _(x, { children: e.row.payer_type == "BUSINESS" ? e.row.payer_business_name : `${e.row.payer_first_name} ${e.row.payer_last_name}` })
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
field: "status",
|
|
62
|
+
headerName: E._("Status"),
|
|
63
|
+
sortable: m.includes("status"),
|
|
64
|
+
width: 160,
|
|
65
|
+
renderCell: ({ value: e }) => /* @__PURE__ */ _(f, {
|
|
66
|
+
icon: !0,
|
|
67
|
+
status: e
|
|
68
|
+
})
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
field: "total_amount",
|
|
72
|
+
headerName: E._("Amount due"),
|
|
73
|
+
headerAlign: "right",
|
|
74
|
+
align: "right",
|
|
75
|
+
width: 120,
|
|
76
|
+
valueGetter: (e, t) => {
|
|
77
|
+
let n = t.repayment_schedule?.repayment_amount;
|
|
78
|
+
return n ? V(n, t.currency) : "-";
|
|
29
79
|
}
|
|
30
80
|
},
|
|
31
81
|
{
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
82
|
+
field: "repayment_schedule",
|
|
83
|
+
headerName: E._("Loan sum"),
|
|
84
|
+
headerAlign: "right",
|
|
85
|
+
align: "right",
|
|
86
|
+
width: 120,
|
|
87
|
+
valueGetter: (e, t) => {
|
|
88
|
+
let n = t.repayment_schedule?.repayment_principal_amount;
|
|
89
|
+
return n ? V(n, t.currency) : "-";
|
|
90
|
+
}
|
|
35
91
|
},
|
|
36
92
|
{
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
93
|
+
field: "issue_date",
|
|
94
|
+
headerName: E._("Financing date"),
|
|
95
|
+
sortable: !1,
|
|
96
|
+
width: 140,
|
|
97
|
+
valueFormatter: (e) => e ? E.date(e, J) : "—"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
field: "repayment_date",
|
|
101
|
+
headerName: E._("Repayment date"),
|
|
102
|
+
sortable: !1,
|
|
103
|
+
width: 120,
|
|
104
|
+
valueGetter: (e, t) => {
|
|
105
|
+
let n = t.repayment_schedule?.repayment_date;
|
|
106
|
+
return n ? E.date(n, J) : "-";
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
field: "",
|
|
111
|
+
headerName: E._("Payment"),
|
|
112
|
+
sortable: !1,
|
|
113
|
+
width: 120,
|
|
114
|
+
renderCell: (e) => e.row.status === "FUNDED" || e.row.status === "LATE" ? /* @__PURE__ */ _(b, {
|
|
115
|
+
variant: "contained",
|
|
116
|
+
color: "primary",
|
|
117
|
+
onClick: (e) => {
|
|
118
|
+
e.stopPropagation(), k({ component: "PAY_NOW" });
|
|
119
|
+
},
|
|
60
120
|
sx: {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
mx: "auto"
|
|
121
|
+
py: 1.25,
|
|
122
|
+
px: 1.5,
|
|
123
|
+
height: 32,
|
|
124
|
+
fontSize: 14
|
|
66
125
|
},
|
|
67
|
-
children:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
126
|
+
children: E._("Repay now")
|
|
127
|
+
}) : null
|
|
128
|
+
}
|
|
129
|
+
], [
|
|
130
|
+
V,
|
|
131
|
+
E,
|
|
132
|
+
J,
|
|
133
|
+
k
|
|
134
|
+
]), X = i(K, Y, !1, "FinancedInvoicesTable");
|
|
135
|
+
return /* @__PURE__ */ v(y, {
|
|
136
|
+
className: l(e, "Monite-FinancedInvoicesTable"),
|
|
137
|
+
sx: {
|
|
138
|
+
display: "flex",
|
|
139
|
+
flexDirection: "column",
|
|
140
|
+
overflow: "hidden",
|
|
141
|
+
height: "inherit",
|
|
142
|
+
minHeight: "500px"
|
|
143
|
+
},
|
|
144
|
+
children: [
|
|
145
|
+
/* @__PURE__ */ _(x, {
|
|
146
|
+
mb: 2,
|
|
147
|
+
variant: "subtitle1",
|
|
148
|
+
children: E._("Financed invoices")
|
|
149
|
+
}),
|
|
150
|
+
/* @__PURE__ */ _(C, {
|
|
151
|
+
apiRef: X,
|
|
152
|
+
rowSelection: !1,
|
|
153
|
+
disableColumnFilter: !0,
|
|
154
|
+
loading: U,
|
|
155
|
+
onSortModelChange: q,
|
|
156
|
+
onRowClick: (e) => {
|
|
157
|
+
j(!0), N?.(e.row);
|
|
158
|
+
},
|
|
159
|
+
slots: {
|
|
160
|
+
pagination: () => /* @__PURE__ */ _(c, {
|
|
161
|
+
pageSizeOptions: O.receivables.pageSizeOptions,
|
|
162
|
+
nextPage: H?.next_pagination_token,
|
|
163
|
+
prevPage: H?.prev_pagination_token,
|
|
164
|
+
paginationModel: {
|
|
165
|
+
pageSize: L,
|
|
166
|
+
page: F
|
|
167
|
+
},
|
|
168
|
+
onPaginationModelChange: ({ page: e, pageSize: t }) => {
|
|
169
|
+
R(t), I(e ?? void 0);
|
|
170
|
+
}
|
|
84
171
|
}),
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
172
|
+
noRowsOverlay: () => /* @__PURE__ */ _(s, {
|
|
173
|
+
isLoading: U,
|
|
174
|
+
dataLength: K?.length || 0,
|
|
175
|
+
isFiltering: !1,
|
|
176
|
+
isSearching: !1,
|
|
177
|
+
isError: W,
|
|
178
|
+
refetch: G,
|
|
179
|
+
entityName: E._("Financed Invoices"),
|
|
180
|
+
actionOptions: [E._("Invoice")],
|
|
181
|
+
type: "no-data"
|
|
95
182
|
})
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
183
|
+
},
|
|
184
|
+
columns: Y,
|
|
185
|
+
getRowId: (e) => e.document_id,
|
|
186
|
+
rows: K ?? []
|
|
187
|
+
}),
|
|
188
|
+
P && M && /* @__PURE__ */ _(a, {
|
|
189
|
+
open: A,
|
|
190
|
+
onClose: () => {
|
|
191
|
+
j(!1), N(null);
|
|
192
|
+
},
|
|
193
|
+
alignDialog: "right",
|
|
194
|
+
children: /* @__PURE__ */ _(p, {
|
|
195
|
+
invoice: P,
|
|
196
|
+
offers: T ?? [],
|
|
197
|
+
financedInvoice: M,
|
|
198
|
+
enableNavigate: !0,
|
|
199
|
+
handleNavigate: o
|
|
200
|
+
})
|
|
201
|
+
})
|
|
202
|
+
]
|
|
99
203
|
});
|
|
100
204
|
};
|
|
101
205
|
//#endregion
|
|
102
|
-
export {
|
|
206
|
+
export { w as FinancedInvoicesTable };
|
|
@@ -1,66 +1,102 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
import { jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
|
|
6
|
-
import { Box as a, Button as o, Stack as s, Typography as c, lighten as l, useTheme as u } from "@mui/material";
|
|
7
|
-
import { useLingui as d } from "@lingui/react";
|
|
8
|
-
import f from "@mui/icons-material/Money";
|
|
1
|
+
import { useMoniteContext as e } from "./index45.js";
|
|
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 } from "@mui/material";
|
|
4
|
+
import { useLingui as s } from "@lingui/react";
|
|
9
5
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js
|
|
10
|
-
var
|
|
11
|
-
let { i18n:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
6
|
+
var c = () => {
|
|
7
|
+
let { i18n: c } = s(), { componentSettings: l } = e(), u = [
|
|
8
|
+
{
|
|
9
|
+
id: 1,
|
|
10
|
+
title: c._("Create an invoice:"),
|
|
11
|
+
description: c._("If you applied for accounts receivable financing, issue an invoice and deliver it to your customer via email or any other channel."),
|
|
12
|
+
description2: c._("Or if you applied for accounts payable financing, upload/select the uploaded invoice you've received from your vendor."),
|
|
13
|
+
list: {
|
|
14
|
+
listTitle: c._("Invoices cannot be financed if:"),
|
|
15
|
+
listItems: [
|
|
16
|
+
{
|
|
17
|
+
id: "listItem-1",
|
|
18
|
+
text: c._("- they are due within 7 days.")
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: "listItem-2",
|
|
22
|
+
text: c._("- they are already overdue.")
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
id: "listItem-3",
|
|
26
|
+
text: c._("- the loan sum exceeds your remaining limit.")
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
id: 2,
|
|
33
|
+
title: c._("Select 'Get Paid Now':"),
|
|
34
|
+
description: c._("Access funding through the invoice list, within the invoice details, or the 'My Financing' tab. If approved, you will receive the invoice amount instantly, minus the fee associated with the payment offer chosen.")
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
id: 3,
|
|
38
|
+
title: c._("Pay out the financed sum:"),
|
|
39
|
+
description: c._("The full sum will be withdrawn from your bank account automatically on the date specified in the selected offer. You can also pay out the sum earlier via the 'Pay out' button.")
|
|
40
|
+
}
|
|
41
|
+
], d = l?.financing?.financeSteps ?? u;
|
|
42
|
+
return /* @__PURE__ */ n(r, {
|
|
43
|
+
px: 4,
|
|
44
|
+
py: 5,
|
|
45
|
+
children: [/* @__PURE__ */ t(r, { children: /* @__PURE__ */ t(o, {
|
|
46
|
+
variant: "h3",
|
|
47
|
+
children: c._("How does invoice financing work?")
|
|
48
|
+
}) }), /* @__PURE__ */ t(i, {
|
|
49
|
+
sx: {
|
|
50
|
+
mt: 4,
|
|
51
|
+
display: "flex",
|
|
52
|
+
flexDirection: "column",
|
|
53
|
+
gap: 3,
|
|
54
|
+
p: 0,
|
|
55
|
+
pl: 2
|
|
56
|
+
},
|
|
57
|
+
component: "ul",
|
|
58
|
+
children: d.map((e) => /* @__PURE__ */ n(a, {
|
|
59
|
+
component: "li",
|
|
19
60
|
sx: {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
justifyContent: "center",
|
|
26
|
-
alignItems: "center",
|
|
27
|
-
p: 2
|
|
61
|
+
p: 0,
|
|
62
|
+
display: "list-item",
|
|
63
|
+
listStyleType: "disc",
|
|
64
|
+
maxWidth: 472,
|
|
65
|
+
mx: "auto"
|
|
28
66
|
},
|
|
29
|
-
children:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
]
|
|
63
|
-
}) : null;
|
|
67
|
+
children: [
|
|
68
|
+
/* @__PURE__ */ n(o, {
|
|
69
|
+
variant: "body1",
|
|
70
|
+
fontWeight: 400,
|
|
71
|
+
mb: e.list || e.description2 ? 3 : 0,
|
|
72
|
+
children: [/* @__PURE__ */ n(o, {
|
|
73
|
+
component: "span",
|
|
74
|
+
variant: "body1",
|
|
75
|
+
fontWeight: 600,
|
|
76
|
+
children: [e.title, " "]
|
|
77
|
+
}), e.description]
|
|
78
|
+
}),
|
|
79
|
+
e.description2 && /* @__PURE__ */ t(o, {
|
|
80
|
+
variant: "body1",
|
|
81
|
+
fontWeight: 400,
|
|
82
|
+
mb: e.list ? 3 : 0,
|
|
83
|
+
children: e.description2
|
|
84
|
+
}),
|
|
85
|
+
e.list && /* @__PURE__ */ n(o, {
|
|
86
|
+
variant: "body1",
|
|
87
|
+
fontWeight: 600,
|
|
88
|
+
children: [e.list.listTitle, e.list.listItems.map((e) => /* @__PURE__ */ t(o, {
|
|
89
|
+
variant: "body1",
|
|
90
|
+
component: "span",
|
|
91
|
+
display: "block",
|
|
92
|
+
fontWeight: 400,
|
|
93
|
+
children: e.text
|
|
94
|
+
}, e.id))]
|
|
95
|
+
})
|
|
96
|
+
]
|
|
97
|
+
}, e.id))
|
|
98
|
+
})]
|
|
99
|
+
});
|
|
64
100
|
};
|
|
65
101
|
//#endregion
|
|
66
|
-
export {
|
|
102
|
+
export { c as FinanceHowItWorks };
|
|
@@ -1,57 +1,66 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
5
|
-
import "
|
|
6
|
-
import {
|
|
7
|
-
import "
|
|
8
|
-
import
|
|
9
|
-
import { FinanceDetails as a } from "./index344.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";
|
|
13
|
-
import { useLingui as m } from "@lingui/react";
|
|
1
|
+
import { FinanceFaqWrapper as e } from "./index330.js";
|
|
2
|
+
import { useKanmonContext as t } from "./index334.js";
|
|
3
|
+
import { useFinancing as n } from "./index335.js";
|
|
4
|
+
import "./index338.js";
|
|
5
|
+
import { jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { Box as a, Button as o, Stack as s, Typography as c, lighten as l, useTheme as u } from "@mui/material";
|
|
7
|
+
import { useLingui as d } from "@lingui/react";
|
|
8
|
+
import f from "@mui/icons-material/Money";
|
|
14
9
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js
|
|
15
|
-
var
|
|
16
|
-
let { i18n:
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
10
|
+
var p = () => {
|
|
11
|
+
let { i18n: p } = d(), { startFinanceSession: m } = t(), h = u(), { isLoading: g, isEnabled: _ } = n();
|
|
12
|
+
return _ ? /* @__PURE__ */ i(s, {
|
|
13
|
+
gap: 4,
|
|
14
|
+
sx: { border: `1px solid ${h.palette.divider}` },
|
|
15
|
+
borderRadius: "16px",
|
|
16
|
+
p: 3,
|
|
17
|
+
children: [
|
|
18
|
+
/* @__PURE__ */ r(a, { children: /* @__PURE__ */ r(a, {
|
|
19
|
+
sx: {
|
|
20
|
+
backgroundColor: l(h.palette.primary.main, .9),
|
|
21
|
+
borderRadius: "100%",
|
|
22
|
+
width: "40px",
|
|
23
|
+
height: "40px",
|
|
24
|
+
display: "flex",
|
|
25
|
+
justifyContent: "center",
|
|
26
|
+
alignItems: "center",
|
|
27
|
+
p: 2
|
|
28
|
+
},
|
|
29
|
+
children: /* @__PURE__ */ r(f, { sx: {
|
|
30
|
+
color: h.palette.primary.main,
|
|
31
|
+
width: 20,
|
|
32
|
+
height: 20
|
|
33
|
+
} })
|
|
34
|
+
}) }),
|
|
35
|
+
/* @__PURE__ */ i(s, {
|
|
36
|
+
gap: 1,
|
|
37
|
+
children: [/* @__PURE__ */ r(c, {
|
|
38
|
+
variant: "subtitle1",
|
|
39
|
+
children: p._("Invoice financing")
|
|
40
|
+
}), /* @__PURE__ */ r(c, {
|
|
41
|
+
variant: "body1",
|
|
42
|
+
fontWeight: 400,
|
|
43
|
+
children: p._("Apply for a monthly plan loans to manage your business more efficiently")
|
|
44
|
+
})]
|
|
45
|
+
}),
|
|
46
|
+
/* @__PURE__ */ i(s, {
|
|
47
|
+
direction: "row",
|
|
48
|
+
gap: 1,
|
|
49
|
+
alignItems: "center",
|
|
50
|
+
children: [/* @__PURE__ */ r(o, {
|
|
51
|
+
disabled: g,
|
|
52
|
+
onClick: () => m(),
|
|
53
|
+
variant: "outlined",
|
|
54
|
+
sx: { px: 2 },
|
|
55
|
+
children: p._("Apply for loans")
|
|
56
|
+
}), /* @__PURE__ */ r(e, { children: ({ openModal: e }) => /* @__PURE__ */ r(o, {
|
|
57
|
+
onClick: e,
|
|
58
|
+
variant: "text",
|
|
59
|
+
children: p._("Read more")
|
|
60
|
+
}) })]
|
|
61
|
+
})
|
|
62
|
+
]
|
|
63
|
+
}) : null;
|
|
55
64
|
};
|
|
56
65
|
//#endregion
|
|
57
|
-
export {
|
|
66
|
+
export { p as FinanceIntegrationCard };
|