@tesouro/embedded-components-react 0.7.29 → 0.7.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/monite-sdk.d.ts +0 -1
- package/dist/lib/monite-sdk.js +40 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +41 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +55 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +2 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +53 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +36 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +71 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +6 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +79 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +1 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +58 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +42 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +1 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +568 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +0 -577
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +160 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +0 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +27 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +93 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +10 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +73 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +1 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +127 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +0 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +54 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +5 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +1 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +64 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +120 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +21 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +6 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +35 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +6 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +56 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +69 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +25 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +1 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +61 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +17 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +181 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +1 -185
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +31 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +2 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +64 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +31 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +6 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +29 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +42 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +11 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +15 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +4 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +12 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +32 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +8 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +20 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +7 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +111 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +62 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +1 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +199 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +0 -199
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +11 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +38 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +6 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +9 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +13 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +7 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +5 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +359 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +1 -412
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +91 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +18 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +7 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +182 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +96 -178
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +1 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +44 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +1 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +161 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +0 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +61 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +44 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +48 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +82 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +7 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +305 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +1 -307
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +1 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +160 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +0 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +37 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +33 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +3 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +102 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +172 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +116 -171
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +191 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +11 -209
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +28 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +1 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +241 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +0 -241
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +36 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +138 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +1 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +166 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +25 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +19 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +17 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +5 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +14 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +18 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +5 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +14 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +9 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +26 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +11 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +8 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +24 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +14 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +100 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +42 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +27 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +1 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +105 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +35 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +166 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +202 -163
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +87 -207
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +17 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +158 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +87 -143
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +42 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +4 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +24 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +73 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +16 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +5 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +11 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +131 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +4 -129
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +5 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +221 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +31 -219
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +11 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +34 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +180 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +14 -182
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +204 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +88 -192
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +61 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +54 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +83 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +40 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +75 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +71 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +12 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +24 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +16 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +23 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +0 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +52 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +32 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +2 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +15 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +29 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +27 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +2 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +97 -2
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +0 -97
|
@@ -1,36 +1,184 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
1
|
+
import { useMoniteContext as e } from "./index45.js";
|
|
2
|
+
import { useCurrencies as t } from "./index63.js";
|
|
3
|
+
import { InvoiceStatusChip as n } from "./index131.js";
|
|
4
|
+
import "./index173.js";
|
|
5
|
+
import { useKanmonContext as r } from "./index384.js";
|
|
6
|
+
import { FinancedInvoiceStatusChip as i } from "./index392.js";
|
|
7
|
+
import { Fragment as a, jsx as o, jsxs as s } from "@emotion/react/jsx-runtime";
|
|
8
|
+
import { Box as c, Button as l, Divider as u, Typography as d, darken as f, useTheme as p } from "@mui/material";
|
|
9
|
+
import { useLingui as m } from "@lingui/react";
|
|
8
10
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js
|
|
9
|
-
var
|
|
10
|
-
let {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}),
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
-
ref: a,
|
|
11
|
+
var h = ({ invoice: h, offers: g, financedInvoice: _, enableNavigate: v = !1, handleNavigate: y }) => {
|
|
12
|
+
let { i18n: b } = m(), { locale: x } = e(), { startFinanceSession: S } = r(), { formatCurrencyToDisplay: C } = t(), w = p(), T = x.dateFormat, E = _ ? b.date(_.issue_date, T) : "—", D = _ ? C(_.total_amount, _.currency) : "-", O = g?.[0]?.pricing_plans?.reduce((e, t, n) => (t?.fee_percentage === _?.fee_percentage && t?.advance_rate_percentage === _?.advance_rate_percentage && (e = {
|
|
13
|
+
pricingPlanIndex: n,
|
|
14
|
+
data: t
|
|
15
|
+
}), e), null), k = _?.repayment_schedule?.repayment_date ? b.date(_.repayment_schedule.repayment_date, T) : "—", A = _?.advance_amount ? C(_.advance_amount, _.currency) : "-", j = _?.fee_amount ? C(_.fee_amount, _.currency) : "-", M = _?.repayment_amount ? C(_.repayment_amount, _.currency) : "-", N = _?.status === "REJECTED" || _?.status === "NEW", P = _?.status === "FUNDED" || _?.status === "LATE";
|
|
16
|
+
return /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ s(c, {
|
|
16
17
|
sx: {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
p: 4,
|
|
19
|
+
display: "flex",
|
|
20
|
+
flexDirection: "column",
|
|
21
|
+
gap: 4
|
|
20
22
|
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
23
|
+
children: [
|
|
24
|
+
/* @__PURE__ */ o(d, {
|
|
25
|
+
variant: "h3",
|
|
26
|
+
children: b._("Funding details")
|
|
27
|
+
}),
|
|
28
|
+
/* @__PURE__ */ s(c, { children: [/* @__PURE__ */ o(d, {
|
|
29
|
+
variant: "h2",
|
|
30
|
+
fontWeight: 600,
|
|
31
|
+
fontSize: 32,
|
|
32
|
+
children: D
|
|
33
|
+
}), /* @__PURE__ */ o(d, {
|
|
34
|
+
fontWeight: 500,
|
|
35
|
+
variant: "body1",
|
|
36
|
+
children: b._("{issueDate}", { issueDate: E })
|
|
37
|
+
})] }),
|
|
38
|
+
/* @__PURE__ */ s(c, {
|
|
39
|
+
sx: {
|
|
40
|
+
display: "flex",
|
|
41
|
+
gap: 3
|
|
42
|
+
},
|
|
43
|
+
children: [
|
|
44
|
+
/* @__PURE__ */ s(c, {
|
|
45
|
+
width: "100%",
|
|
46
|
+
children: [/* @__PURE__ */ o(d, {
|
|
47
|
+
variant: "body1",
|
|
48
|
+
color: f(w.palette.grey[50], .4),
|
|
49
|
+
mb: .5,
|
|
50
|
+
fontWeight: 400,
|
|
51
|
+
children: b._("Financing plan {value}", { value: (O?.pricingPlanIndex ?? 0) + 1 })
|
|
52
|
+
}), /* @__PURE__ */ o(d, {
|
|
53
|
+
variant: "body1",
|
|
54
|
+
fontWeight: 400,
|
|
55
|
+
children: b._("{value}% advance rate, Pay in {pricingPlan} days, {value1}% fee", {
|
|
56
|
+
value: (O?.data?.advance_rate_percentage ?? 0) / 100,
|
|
57
|
+
pricingPlan: O?.data?.repayment_duration_days,
|
|
58
|
+
value1: (O?.data?.fee_percentage ?? 0) / 100
|
|
59
|
+
})
|
|
60
|
+
})]
|
|
61
|
+
}),
|
|
62
|
+
/* @__PURE__ */ s(c, {
|
|
63
|
+
width: "100%",
|
|
64
|
+
children: [/* @__PURE__ */ o(d, {
|
|
65
|
+
variant: "body1",
|
|
66
|
+
color: f(w.palette.grey[50], .4),
|
|
67
|
+
mb: .5,
|
|
68
|
+
fontWeight: 400,
|
|
69
|
+
children: b._("Repayment on")
|
|
70
|
+
}), /* @__PURE__ */ o(d, {
|
|
71
|
+
variant: "body1",
|
|
72
|
+
fontWeight: 400,
|
|
73
|
+
children: b._("{repaymentDate}", { repaymentDate: k })
|
|
74
|
+
})]
|
|
75
|
+
}),
|
|
76
|
+
/* @__PURE__ */ s(c, {
|
|
77
|
+
width: "100%",
|
|
78
|
+
children: [/* @__PURE__ */ o(d, {
|
|
79
|
+
variant: "body1",
|
|
80
|
+
color: f(w.palette.grey[50], .4),
|
|
81
|
+
mb: .5,
|
|
82
|
+
fontWeight: 400,
|
|
83
|
+
children: b._("Status")
|
|
84
|
+
}), /* @__PURE__ */ o(i, {
|
|
85
|
+
icon: !0,
|
|
86
|
+
status: _?.status ?? "DEFAULTED"
|
|
87
|
+
})]
|
|
88
|
+
})
|
|
89
|
+
]
|
|
90
|
+
}),
|
|
91
|
+
/* @__PURE__ */ o(u, {}),
|
|
92
|
+
/* @__PURE__ */ s(c, {
|
|
93
|
+
sx: {
|
|
94
|
+
display: "grid",
|
|
95
|
+
gridTemplateColumns: "minmax(140px, auto) 1fr",
|
|
96
|
+
flexDirection: "column",
|
|
97
|
+
rowGap: 1,
|
|
98
|
+
columnGap: 2
|
|
99
|
+
},
|
|
100
|
+
children: [
|
|
101
|
+
/* @__PURE__ */ o(d, {
|
|
102
|
+
variant: "body1",
|
|
103
|
+
color: f(w.palette.grey[50], .4),
|
|
104
|
+
children: b._("{isRequestedSum}", { isRequestedSum: N ? "Requested sum" : "Received sum" })
|
|
105
|
+
}),
|
|
106
|
+
/* @__PURE__ */ o(d, {
|
|
107
|
+
variant: "body1",
|
|
108
|
+
children: A
|
|
109
|
+
}),
|
|
110
|
+
/* @__PURE__ */ o(d, {
|
|
111
|
+
variant: "body1",
|
|
112
|
+
color: f(w.palette.grey[50], .4),
|
|
113
|
+
children: b._("Service Fee")
|
|
114
|
+
}),
|
|
115
|
+
/* @__PURE__ */ o(d, {
|
|
116
|
+
variant: "body1",
|
|
117
|
+
children: j
|
|
118
|
+
}),
|
|
119
|
+
/* @__PURE__ */ o(d, {
|
|
120
|
+
variant: "body1",
|
|
121
|
+
color: f(w.palette.grey[50], .4),
|
|
122
|
+
children: b._("Repayment sum")
|
|
123
|
+
}),
|
|
124
|
+
/* @__PURE__ */ o(d, {
|
|
125
|
+
variant: "body1",
|
|
126
|
+
children: M
|
|
127
|
+
})
|
|
128
|
+
]
|
|
129
|
+
}),
|
|
130
|
+
/* @__PURE__ */ o(u, {}),
|
|
131
|
+
/* @__PURE__ */ s(c, {
|
|
132
|
+
sx: {
|
|
133
|
+
borderRadius: "16px",
|
|
134
|
+
px: 3,
|
|
135
|
+
py: 2.5,
|
|
136
|
+
border: `1px solid ${w.palette.divider}`,
|
|
137
|
+
display: "flex",
|
|
138
|
+
gap: 2,
|
|
139
|
+
justifyContent: "space-between",
|
|
140
|
+
alignItems: "center",
|
|
141
|
+
cursor: v ? "pointer" : "default"
|
|
142
|
+
},
|
|
143
|
+
...v && y && { onClick: () => y(h.id) },
|
|
144
|
+
children: [/* @__PURE__ */ s(c, { children: [/* @__PURE__ */ o(d, {
|
|
145
|
+
variant: "body1",
|
|
146
|
+
fontWeight: 500,
|
|
147
|
+
children: b._("Invoice {invoiceDocument_id}", { invoiceDocument_id: h.document_id || b._("Pending") })
|
|
148
|
+
}), /* @__PURE__ */ o(d, {
|
|
149
|
+
color: w.palette.text.secondary,
|
|
150
|
+
variant: "body2",
|
|
151
|
+
children: b._("For {invoiceAmount} | Issued {issueDate}", {
|
|
152
|
+
invoiceAmount: D,
|
|
153
|
+
issueDate: E
|
|
154
|
+
})
|
|
155
|
+
})] }), /* @__PURE__ */ o(c, { children: /* @__PURE__ */ o(n, { status: h.status }) })]
|
|
156
|
+
})
|
|
157
|
+
]
|
|
158
|
+
}), P && /* @__PURE__ */ o(c, {
|
|
159
|
+
sx: {
|
|
160
|
+
mt: "auto",
|
|
161
|
+
borderTop: `1px solid ${w.palette.divider}`,
|
|
162
|
+
px: 4,
|
|
163
|
+
py: 2,
|
|
164
|
+
display: "flex",
|
|
165
|
+
alignItems: "center",
|
|
166
|
+
justifyContent: "flex-end"
|
|
167
|
+
},
|
|
168
|
+
children: /* @__PURE__ */ o(l, {
|
|
169
|
+
variant: "contained",
|
|
170
|
+
color: "primary",
|
|
171
|
+
onClick: () => S({ component: "PAY_NOW" }),
|
|
172
|
+
sx: {
|
|
173
|
+
py: 1.25,
|
|
174
|
+
px: 1.5,
|
|
175
|
+
height: 32,
|
|
176
|
+
fontSize: 14,
|
|
177
|
+
ml: "auto"
|
|
178
|
+
},
|
|
179
|
+
children: b._("Repay now")
|
|
180
|
+
})
|
|
181
|
+
})] });
|
|
182
|
+
};
|
|
35
183
|
//#endregion
|
|
36
|
-
export {
|
|
184
|
+
export { h as FinanceDetails };
|
|
@@ -1,184 +1,16 @@
|
|
|
1
|
-
import { useMoniteContext as e } from "./index45.js";
|
|
2
|
-
import { useCurrencies as t } from "./index63.js";
|
|
3
|
-
import { InvoiceStatusChip as n } from "./index131.js";
|
|
4
|
-
import "./index173.js";
|
|
5
|
-
import { useKanmonContext as r } from "./index385.js";
|
|
6
|
-
import { FinancedInvoiceStatusChip as i } from "./index393.js";
|
|
7
|
-
import { Fragment as a, jsx as o, jsxs as s } from "@emotion/react/jsx-runtime";
|
|
8
|
-
import { Box as c, Button as l, Divider as u, Typography as d, darken as f, useTheme as p } from "@mui/material";
|
|
9
|
-
import { useLingui as m } from "@lingui/react";
|
|
10
1
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
/* @__PURE__ */ o(d, {
|
|
25
|
-
variant: "h3",
|
|
26
|
-
children: b._("Funding details")
|
|
27
|
-
}),
|
|
28
|
-
/* @__PURE__ */ s(c, { children: [/* @__PURE__ */ o(d, {
|
|
29
|
-
variant: "h2",
|
|
30
|
-
fontWeight: 600,
|
|
31
|
-
fontSize: 32,
|
|
32
|
-
children: D
|
|
33
|
-
}), /* @__PURE__ */ o(d, {
|
|
34
|
-
fontWeight: 500,
|
|
35
|
-
variant: "body1",
|
|
36
|
-
children: b._("{issueDate}", { issueDate: E })
|
|
37
|
-
})] }),
|
|
38
|
-
/* @__PURE__ */ s(c, {
|
|
39
|
-
sx: {
|
|
40
|
-
display: "flex",
|
|
41
|
-
gap: 3
|
|
42
|
-
},
|
|
43
|
-
children: [
|
|
44
|
-
/* @__PURE__ */ s(c, {
|
|
45
|
-
width: "100%",
|
|
46
|
-
children: [/* @__PURE__ */ o(d, {
|
|
47
|
-
variant: "body1",
|
|
48
|
-
color: f(w.palette.grey[50], .4),
|
|
49
|
-
mb: .5,
|
|
50
|
-
fontWeight: 400,
|
|
51
|
-
children: b._("Financing plan {value}", { value: (O?.pricingPlanIndex ?? 0) + 1 })
|
|
52
|
-
}), /* @__PURE__ */ o(d, {
|
|
53
|
-
variant: "body1",
|
|
54
|
-
fontWeight: 400,
|
|
55
|
-
children: b._("{value}% advance rate, Pay in {pricingPlan} days, {value1}% fee", {
|
|
56
|
-
value: (O?.data?.advance_rate_percentage ?? 0) / 100,
|
|
57
|
-
pricingPlan: O?.data?.repayment_duration_days,
|
|
58
|
-
value1: (O?.data?.fee_percentage ?? 0) / 100
|
|
59
|
-
})
|
|
60
|
-
})]
|
|
61
|
-
}),
|
|
62
|
-
/* @__PURE__ */ s(c, {
|
|
63
|
-
width: "100%",
|
|
64
|
-
children: [/* @__PURE__ */ o(d, {
|
|
65
|
-
variant: "body1",
|
|
66
|
-
color: f(w.palette.grey[50], .4),
|
|
67
|
-
mb: .5,
|
|
68
|
-
fontWeight: 400,
|
|
69
|
-
children: b._("Repayment on")
|
|
70
|
-
}), /* @__PURE__ */ o(d, {
|
|
71
|
-
variant: "body1",
|
|
72
|
-
fontWeight: 400,
|
|
73
|
-
children: b._("{repaymentDate}", { repaymentDate: k })
|
|
74
|
-
})]
|
|
75
|
-
}),
|
|
76
|
-
/* @__PURE__ */ s(c, {
|
|
77
|
-
width: "100%",
|
|
78
|
-
children: [/* @__PURE__ */ o(d, {
|
|
79
|
-
variant: "body1",
|
|
80
|
-
color: f(w.palette.grey[50], .4),
|
|
81
|
-
mb: .5,
|
|
82
|
-
fontWeight: 400,
|
|
83
|
-
children: b._("Status")
|
|
84
|
-
}), /* @__PURE__ */ o(i, {
|
|
85
|
-
icon: !0,
|
|
86
|
-
status: _?.status ?? "DEFAULTED"
|
|
87
|
-
})]
|
|
88
|
-
})
|
|
89
|
-
]
|
|
90
|
-
}),
|
|
91
|
-
/* @__PURE__ */ o(u, {}),
|
|
92
|
-
/* @__PURE__ */ s(c, {
|
|
93
|
-
sx: {
|
|
94
|
-
display: "grid",
|
|
95
|
-
gridTemplateColumns: "minmax(140px, auto) 1fr",
|
|
96
|
-
flexDirection: "column",
|
|
97
|
-
rowGap: 1,
|
|
98
|
-
columnGap: 2
|
|
99
|
-
},
|
|
100
|
-
children: [
|
|
101
|
-
/* @__PURE__ */ o(d, {
|
|
102
|
-
variant: "body1",
|
|
103
|
-
color: f(w.palette.grey[50], .4),
|
|
104
|
-
children: b._("{isRequestedSum}", { isRequestedSum: N ? "Requested sum" : "Received sum" })
|
|
105
|
-
}),
|
|
106
|
-
/* @__PURE__ */ o(d, {
|
|
107
|
-
variant: "body1",
|
|
108
|
-
children: A
|
|
109
|
-
}),
|
|
110
|
-
/* @__PURE__ */ o(d, {
|
|
111
|
-
variant: "body1",
|
|
112
|
-
color: f(w.palette.grey[50], .4),
|
|
113
|
-
children: b._("Service Fee")
|
|
114
|
-
}),
|
|
115
|
-
/* @__PURE__ */ o(d, {
|
|
116
|
-
variant: "body1",
|
|
117
|
-
children: j
|
|
118
|
-
}),
|
|
119
|
-
/* @__PURE__ */ o(d, {
|
|
120
|
-
variant: "body1",
|
|
121
|
-
color: f(w.palette.grey[50], .4),
|
|
122
|
-
children: b._("Repayment sum")
|
|
123
|
-
}),
|
|
124
|
-
/* @__PURE__ */ o(d, {
|
|
125
|
-
variant: "body1",
|
|
126
|
-
children: M
|
|
127
|
-
})
|
|
128
|
-
]
|
|
129
|
-
}),
|
|
130
|
-
/* @__PURE__ */ o(u, {}),
|
|
131
|
-
/* @__PURE__ */ s(c, {
|
|
132
|
-
sx: {
|
|
133
|
-
borderRadius: "16px",
|
|
134
|
-
px: 3,
|
|
135
|
-
py: 2.5,
|
|
136
|
-
border: `1px solid ${w.palette.divider}`,
|
|
137
|
-
display: "flex",
|
|
138
|
-
gap: 2,
|
|
139
|
-
justifyContent: "space-between",
|
|
140
|
-
alignItems: "center",
|
|
141
|
-
cursor: v ? "pointer" : "default"
|
|
142
|
-
},
|
|
143
|
-
...v && y && { onClick: () => y(h.id) },
|
|
144
|
-
children: [/* @__PURE__ */ s(c, { children: [/* @__PURE__ */ o(d, {
|
|
145
|
-
variant: "body1",
|
|
146
|
-
fontWeight: 500,
|
|
147
|
-
children: b._("Invoice {invoiceDocument_id}", { invoiceDocument_id: h.document_id || b._("Pending") })
|
|
148
|
-
}), /* @__PURE__ */ o(d, {
|
|
149
|
-
color: w.palette.text.secondary,
|
|
150
|
-
variant: "body2",
|
|
151
|
-
children: b._("For {invoiceAmount} | Issued {issueDate}", {
|
|
152
|
-
invoiceAmount: D,
|
|
153
|
-
issueDate: E
|
|
154
|
-
})
|
|
155
|
-
})] }), /* @__PURE__ */ o(c, { children: /* @__PURE__ */ o(n, { status: h.status }) })]
|
|
156
|
-
})
|
|
157
|
-
]
|
|
158
|
-
}), P && /* @__PURE__ */ o(c, {
|
|
159
|
-
sx: {
|
|
160
|
-
mt: "auto",
|
|
161
|
-
borderTop: `1px solid ${w.palette.divider}`,
|
|
162
|
-
px: 4,
|
|
163
|
-
py: 2,
|
|
164
|
-
display: "flex",
|
|
165
|
-
alignItems: "center",
|
|
166
|
-
justifyContent: "flex-end"
|
|
167
|
-
},
|
|
168
|
-
children: /* @__PURE__ */ o(l, {
|
|
169
|
-
variant: "contained",
|
|
170
|
-
color: "primary",
|
|
171
|
-
onClick: () => S({ component: "PAY_NOW" }),
|
|
172
|
-
sx: {
|
|
173
|
-
py: 1.25,
|
|
174
|
-
px: 1.5,
|
|
175
|
-
height: 32,
|
|
176
|
-
fontSize: 14,
|
|
177
|
-
ml: "auto"
|
|
178
|
-
},
|
|
179
|
-
children: b._("Repay now")
|
|
180
|
-
})
|
|
181
|
-
})] });
|
|
182
|
-
};
|
|
2
|
+
var e = Object.values({
|
|
3
|
+
counterpart_name: "counterpart_name",
|
|
4
|
+
counterpart_id: "counterpart_id",
|
|
5
|
+
amount: "amount",
|
|
6
|
+
status: "status",
|
|
7
|
+
due_date: "due_date",
|
|
8
|
+
issue_date: "issue_date",
|
|
9
|
+
document_id: "document_id",
|
|
10
|
+
created_at: "created_at",
|
|
11
|
+
project_id: "project_id",
|
|
12
|
+
total_amount: "total_amount",
|
|
13
|
+
discounted_subtotal: "discounted_subtotal"
|
|
14
|
+
});
|
|
183
15
|
//#endregion
|
|
184
|
-
export {
|
|
16
|
+
export { e as ReceivableCursorFields };
|
|
@@ -1,16 +1,206 @@
|
|
|
1
|
+
import { ScopedCssBaselineContainerClassName as e } from "./index29.js";
|
|
2
|
+
import { useMoniteContext as t } from "./index45.js";
|
|
3
|
+
import { useCurrencies as n } from "./index63.js";
|
|
4
|
+
import { Dialog as r } from "./index122.js";
|
|
5
|
+
import "./index123.js";
|
|
6
|
+
import { MoniteScopedProviders as i } from "./index129.js";
|
|
7
|
+
import { useGetReceivableById as a } from "./index147.js";
|
|
8
|
+
import { GetNoRowsOverlay as o } from "./index152.js";
|
|
9
|
+
import { useAutosizeGridColumns as s } from "./index166.js";
|
|
10
|
+
import { TablePagination as c } from "./index247.js";
|
|
11
|
+
import { classNames as l } from "./index249.js";
|
|
12
|
+
import { useKanmonContext as u } from "./index384.js";
|
|
13
|
+
import { useGetFinancedInvoices as d } from "./index387.js";
|
|
14
|
+
import "./index388.js";
|
|
15
|
+
import { FinancedInvoiceStatusChip as f } from "./index392.js";
|
|
16
|
+
import { FinanceDetails as p } from "./index393.js";
|
|
17
|
+
import { ReceivableCursorFields as m } from "./index394.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";
|
|
1
23
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js
|
|
2
|
-
var e =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
24
|
+
var w = (e) => /* @__PURE__ */ _(i, { children: /* @__PURE__ */ _(T, { ...e }) }), T = ({ onRowClick: i, 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 } = a(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 } = n(), { 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(() => [
|
|
35
|
+
{
|
|
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) : "-";
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
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
|
+
}
|
|
91
|
+
},
|
|
92
|
+
{
|
|
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
|
+
},
|
|
120
|
+
sx: {
|
|
121
|
+
py: 1.25,
|
|
122
|
+
px: 1.5,
|
|
123
|
+
height: 32,
|
|
124
|
+
fontSize: 14
|
|
125
|
+
},
|
|
126
|
+
children: E._("Repay now")
|
|
127
|
+
}) : null
|
|
128
|
+
}
|
|
129
|
+
], [
|
|
130
|
+
V,
|
|
131
|
+
E,
|
|
132
|
+
J,
|
|
133
|
+
k
|
|
134
|
+
]), X = s(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
|
+
}
|
|
171
|
+
}),
|
|
172
|
+
noRowsOverlay: () => /* @__PURE__ */ _(o, {
|
|
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"
|
|
182
|
+
})
|
|
183
|
+
},
|
|
184
|
+
columns: Y,
|
|
185
|
+
getRowId: (e) => e.document_id,
|
|
186
|
+
rows: K ?? []
|
|
187
|
+
}),
|
|
188
|
+
P && M && /* @__PURE__ */ _(r, {
|
|
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: i
|
|
200
|
+
})
|
|
201
|
+
})
|
|
202
|
+
]
|
|
203
|
+
});
|
|
204
|
+
};
|
|
15
205
|
//#endregion
|
|
16
|
-
export {
|
|
206
|
+
export { w as FinancedInvoicesTable };
|