@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 +1,307 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import { dateStringToLocalDate as e } from "./index16.js";
|
|
2
|
+
import { ScopedCssBaselineContainerClassName as t } from "./index29.js";
|
|
3
|
+
import { useMoniteContext as n } from "./index45.js";
|
|
4
|
+
import { getCounterpartName as r } from "./index50.js";
|
|
5
|
+
import { useCounterpartContactList as i } from "./index51.js";
|
|
6
|
+
import { useEntityUserById as a } from "./index52.js";
|
|
7
|
+
import { useApprovalPolicyById as o } from "./index53.js";
|
|
8
|
+
import "./index63.js";
|
|
9
|
+
import { useCurrencies as s } from "./index76.js";
|
|
10
|
+
import { useOptionalFields as ee } from "./index77.js";
|
|
11
|
+
import { CenteredContentBox as c } from "./index65.js";
|
|
12
|
+
import "./index66.js";
|
|
13
|
+
import { MoniteScopedProviders as l } from "./index155.js";
|
|
14
|
+
import { classNames as u } from "./index185.js";
|
|
15
|
+
import { useGetPayableCounterpart as d } from "./index200.js";
|
|
16
|
+
import { usePayableDetailsThemeProps as te } from "./index201.js";
|
|
17
|
+
import { useLedgerAccounts as f } from "./index204.js";
|
|
18
|
+
import "./index220.js";
|
|
19
|
+
import { isFieldRequired as p } from "./index222.js";
|
|
20
|
+
import { isPayableInOCRProcessing as ne } from "./index241.js";
|
|
21
|
+
import { usePayableDetailsInfo as re } from "./index258.js";
|
|
22
|
+
import { UserDisplayCell as ie } from "./index259.js";
|
|
23
|
+
import { PayableApprovalFlowSection as ae } from "./index263.js";
|
|
24
|
+
import { StyledLabelTableCell as m } from "./index264.js";
|
|
25
|
+
import { useMemo as h } from "react";
|
|
26
|
+
import { Sparkles as g } from "lucide-react";
|
|
27
|
+
import { Fragment as _, jsx as v, jsxs as y } from "@emotion/react/jsx-runtime";
|
|
28
|
+
import { Box as b, Chip as oe, CircularProgress as x, Grid as S, Paper as C, Stack as w, Table as T, TableBody as E, TableCell as D, TableHead as O, TableRow as k, Tooltip as A, Typography as j } from "@mui/material";
|
|
29
|
+
import { useLingui as M } from "@lingui/react";
|
|
30
|
+
import { styled as N } from "@mui/material/styles";
|
|
31
|
+
import se from "@mui/icons-material/CachedOutlined";
|
|
32
|
+
import P from "@mui/icons-material/WarningAmberRounded";
|
|
33
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js
|
|
34
|
+
var F = N(b)(() => ({
|
|
35
|
+
pb: 6,
|
|
36
|
+
display: "flex",
|
|
37
|
+
flex: "1 1 auto",
|
|
38
|
+
overflow: "auto",
|
|
39
|
+
width: "100%",
|
|
40
|
+
height: 0
|
|
41
|
+
})), I = (e) => /* @__PURE__ */ v(l, { children: /* @__PURE__ */ v(L, { ...e }) }), L = ({ payable: r, enableGLCodes: l, ...g }) => {
|
|
42
|
+
let { i18n: x } = M(), { locale: A } = n(), { formatCurrencyToDisplay: N } = s(), { ocrRequiredFields: P, optionalFields: I } = te(g), { showInvoiceDate: L } = ee(I, { showInvoiceDate: !0 }), { counterpart: z, counterpartRawName: B, isCounterpartLoading: V, isCounterpartAIMatched: H, isCounterpartMatchingToOCRFound: U } = d({ payable: r }), { counterpartBankAccountQuery: W, lineItemsQuery: G } = re({
|
|
43
|
+
currentCounterpartId: z?.id,
|
|
44
|
+
payableId: r.id
|
|
45
|
+
}), { data: K } = f(l), ce = (e) => {
|
|
46
|
+
if (!e || !K?.data) return;
|
|
47
|
+
let t = K.data.find((t) => t.id === e);
|
|
48
|
+
if (!t) return;
|
|
49
|
+
let n = t.nominal_code && t.type ? `${t.nominal_code} — ${t.type}` : t.nominal_code ?? t.type ?? "";
|
|
50
|
+
return n ? `${x._("GL code")}: ${n}` : void 0;
|
|
51
|
+
}, { data: le } = G, ue = le?.data, { data: q } = i(z?.id), { data: J } = a(r.was_created_by_user_id), { data: Y, isLoading: X } = o(r.approval_policy_id), de = !!Y?.id, Z = h(() => q?.find((e) => e.is_default), [q]), Q = h(() => W.data?.data.find((e) => e.id === r.counterpart_bank_account_id), [W, r]), $ = "Monite-PayableDetailsInfo";
|
|
52
|
+
return ne(r) ? /* @__PURE__ */ v(F, {
|
|
53
|
+
className: u(t, $, $ + "--ocr-processing"),
|
|
54
|
+
children: /* @__PURE__ */ v(c, { children: /* @__PURE__ */ y(b, {
|
|
55
|
+
textAlign: "center",
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ v(se, {
|
|
58
|
+
color: "primary",
|
|
59
|
+
fontSize: "large"
|
|
60
|
+
}),
|
|
61
|
+
/* @__PURE__ */ v(j, {
|
|
62
|
+
variant: "h3",
|
|
63
|
+
mb: 2,
|
|
64
|
+
children: x._("File is being processed...")
|
|
65
|
+
}),
|
|
66
|
+
/* @__PURE__ */ v(j, {
|
|
67
|
+
variant: "body1",
|
|
68
|
+
children: x._("Hold on, we’re processing the file you’ve uploaded.")
|
|
69
|
+
}),
|
|
70
|
+
/* @__PURE__ */ v(j, {
|
|
71
|
+
variant: "body1",
|
|
72
|
+
children: x._("Usually it takes no more than 1–2 minutes.")
|
|
73
|
+
})
|
|
74
|
+
]
|
|
75
|
+
}) })
|
|
76
|
+
}) : /* @__PURE__ */ v(F, {
|
|
77
|
+
className: u(t, $),
|
|
78
|
+
children: /* @__PURE__ */ y(S, {
|
|
79
|
+
container: !0,
|
|
80
|
+
spacing: 3,
|
|
81
|
+
children: [
|
|
82
|
+
/* @__PURE__ */ y(S, {
|
|
83
|
+
item: !0,
|
|
84
|
+
xs: 12,
|
|
85
|
+
className: $ + "-Details",
|
|
86
|
+
children: [/* @__PURE__ */ v(j, {
|
|
87
|
+
variant: "subtitle2",
|
|
88
|
+
mb: 2,
|
|
89
|
+
children: x._("Details")
|
|
90
|
+
}), /* @__PURE__ */ v(C, {
|
|
91
|
+
variant: "outlined",
|
|
92
|
+
children: /* @__PURE__ */ v(T, { children: /* @__PURE__ */ y(E, { children: [
|
|
93
|
+
/* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v(m, {
|
|
94
|
+
isRequired: p("invoiceNumber", P, r?.document_id) && r?.ocr_status === null,
|
|
95
|
+
children: x._("Number")
|
|
96
|
+
}), /* @__PURE__ */ v(D, { children: r.document_id ?? "—" })] }),
|
|
97
|
+
/* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v(m, {
|
|
98
|
+
isRequired: p("counterpartName", P) && r?.ocr_status === null,
|
|
99
|
+
children: x._("Vendor")
|
|
100
|
+
}), /* @__PURE__ */ v(D, { children: /* @__PURE__ */ v(R, {
|
|
101
|
+
counterpart: z,
|
|
102
|
+
counterpartRawName: B,
|
|
103
|
+
isCounterpartAIMatched: H,
|
|
104
|
+
isCounterpartMatchingToOCRFound: U,
|
|
105
|
+
isCounterpartLoading: V
|
|
106
|
+
}) })] }),
|
|
107
|
+
Z && /* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v(m, {
|
|
108
|
+
isRequired: p("contactPerson", P) && r?.ocr_status === null,
|
|
109
|
+
children: x._("Contact person")
|
|
110
|
+
}), /* @__PURE__ */ v(D, { children: `${Z.first_name} ${Z.last_name}` })] }),
|
|
111
|
+
Q && /* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v(m, {
|
|
112
|
+
isRequired: p("counterpartBankAccount", P, Q?.name) && r?.ocr_status === null,
|
|
113
|
+
children: x._("Bank account")
|
|
114
|
+
}), /* @__PURE__ */ v(D, { children: Q.name })] }),
|
|
115
|
+
L && /* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v(m, {
|
|
116
|
+
isRequired: p("issueDate", P) && r?.ocr_status === null,
|
|
117
|
+
children: x._("Issue date")
|
|
118
|
+
}), /* @__PURE__ */ v(D, { children: r.issued_at ? x.date(e(r.issued_at), A.dateFormat) : "—" })] }),
|
|
119
|
+
/* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v(m, {
|
|
120
|
+
isRequired: p("dueDate", P, r.due_date) && r?.ocr_status === null,
|
|
121
|
+
children: x._("Due date")
|
|
122
|
+
}), /* @__PURE__ */ v(D, { children: r.due_date ? x.date(e(r.due_date), A.dateFormat) : "—" })] }),
|
|
123
|
+
/* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v(m, {
|
|
124
|
+
isRequired: p("amount", P) && r?.ocr_status === null,
|
|
125
|
+
children: x._("Total")
|
|
126
|
+
}), /* @__PURE__ */ v(D, { children: /* @__PURE__ */ v(b, {
|
|
127
|
+
sx: {
|
|
128
|
+
display: "flex",
|
|
129
|
+
justifyContent: "space-between"
|
|
130
|
+
},
|
|
131
|
+
children: /* @__PURE__ */ v(b, { children: r.total_amount && r.currency ? N(r.total_amount, r.currency) : r.currency ? N(0, r.currency) : "—" })
|
|
132
|
+
}) })] }),
|
|
133
|
+
/* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v(m, {
|
|
134
|
+
isRequired: p("appliedPolicy", P) && r?.ocr_status === null,
|
|
135
|
+
children: x._("Applied policy")
|
|
136
|
+
}), /* @__PURE__ */ v(D, { children: !X && Y?.name ? /* @__PURE__ */ y(b, {
|
|
137
|
+
sx: {
|
|
138
|
+
display: "flex",
|
|
139
|
+
alignItems: "center",
|
|
140
|
+
gap: 1
|
|
141
|
+
},
|
|
142
|
+
children: [/* @__PURE__ */ v("span", { children: Y.name }), (r.status === "waiting_to_be_paid" || r.status === "paid" || r.status === "partially_paid") && /* @__PURE__ */ v(oe, {
|
|
143
|
+
label: x._("Approved"),
|
|
144
|
+
color: "success",
|
|
145
|
+
size: "small"
|
|
146
|
+
})]
|
|
147
|
+
}) : !X && x._("no policy") })] })
|
|
148
|
+
] }) })
|
|
149
|
+
})]
|
|
150
|
+
}),
|
|
151
|
+
de && Y && /* @__PURE__ */ v(S, {
|
|
152
|
+
item: !0,
|
|
153
|
+
xs: 12,
|
|
154
|
+
children: /* @__PURE__ */ v(ae, {
|
|
155
|
+
approvalPolicy: Y,
|
|
156
|
+
payableId: r.id,
|
|
157
|
+
currentStatus: r.status
|
|
158
|
+
})
|
|
159
|
+
}),
|
|
160
|
+
/* @__PURE__ */ y(S, {
|
|
161
|
+
item: !0,
|
|
162
|
+
xs: 12,
|
|
163
|
+
className: $ + "-Items",
|
|
164
|
+
children: [/* @__PURE__ */ v(j, {
|
|
165
|
+
variant: "subtitle2",
|
|
166
|
+
mb: 2,
|
|
167
|
+
children: x._("Items")
|
|
168
|
+
}), /* @__PURE__ */ v(C, {
|
|
169
|
+
variant: "outlined",
|
|
170
|
+
children: /* @__PURE__ */ y(T, { children: [/* @__PURE__ */ v(O, { children: /* @__PURE__ */ y(k, { children: [
|
|
171
|
+
/* @__PURE__ */ v(D, { children: x._("Name") }),
|
|
172
|
+
/* @__PURE__ */ v(D, { children: x._("Quantity") }),
|
|
173
|
+
/* @__PURE__ */ v(D, { children: x._("Price") }),
|
|
174
|
+
/* @__PURE__ */ v(D, {
|
|
175
|
+
align: "right",
|
|
176
|
+
children: x._("Total, tax")
|
|
177
|
+
})
|
|
178
|
+
] }) }), /* @__PURE__ */ v(E, { children: ue?.map((e) => /* @__PURE__ */ y(k, { children: [
|
|
179
|
+
/* @__PURE__ */ v(D, { children: /* @__PURE__ */ y(w, { children: [/* @__PURE__ */ v(b, { children: e.name }), l && e.ledger_account_id && /* @__PURE__ */ v(j, {
|
|
180
|
+
variant: "body2",
|
|
181
|
+
color: "secondary.main",
|
|
182
|
+
children: ce(e.ledger_account_id)
|
|
183
|
+
})] }) }),
|
|
184
|
+
/* @__PURE__ */ v(D, { children: e.quantity }),
|
|
185
|
+
/* @__PURE__ */ v(D, { children: e.unit_price ? N(e.unit_price, r.currency ?? "USD") : "—" }),
|
|
186
|
+
/* @__PURE__ */ v(D, {
|
|
187
|
+
align: "right",
|
|
188
|
+
children: e.subtotal && r.currency ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(b, { children: N(e.subtotal ?? 0, r.currency) }), /* @__PURE__ */ y(b, {
|
|
189
|
+
sx: { color: "secondary.main" },
|
|
190
|
+
children: [
|
|
191
|
+
x._("excl. Tax"),
|
|
192
|
+
" ",
|
|
193
|
+
`${e.tax ? (e.tax / 100).toFixed(0) : 0}%`
|
|
194
|
+
]
|
|
195
|
+
})] }) : r.currency ? N(0, r.currency) : "—"
|
|
196
|
+
})
|
|
197
|
+
] }, e.id)) })] })
|
|
198
|
+
})]
|
|
199
|
+
}),
|
|
200
|
+
/* @__PURE__ */ v(S, {
|
|
201
|
+
item: !0,
|
|
202
|
+
xs: 12,
|
|
203
|
+
className: $ + "-Totals",
|
|
204
|
+
children: /* @__PURE__ */ v(C, {
|
|
205
|
+
variant: "outlined",
|
|
206
|
+
children: /* @__PURE__ */ v(T, { children: /* @__PURE__ */ y(E, { children: [
|
|
207
|
+
/* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v(D, { children: x._("Subtotal") }), /* @__PURE__ */ v(D, {
|
|
208
|
+
align: "right",
|
|
209
|
+
children: r.subtotal && r.currency ? N(r.subtotal, r.currency) : r.currency ? N(0, r.currency) : "—"
|
|
210
|
+
})] }),
|
|
211
|
+
!!r.discount && r.currency && /* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v(D, { children: x._("Discount") }), /* @__PURE__ */ v(D, {
|
|
212
|
+
align: "right",
|
|
213
|
+
children: N(r.discount ?? 0, r.currency)
|
|
214
|
+
})] }),
|
|
215
|
+
/* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v(D, { children: x._("Tax Total") }), /* @__PURE__ */ v(D, {
|
|
216
|
+
align: "right",
|
|
217
|
+
children: r.tax_amount && r.currency ? N(r.tax_amount, r.currency) : r.currency ? N(0, r.currency) : "—"
|
|
218
|
+
})] }),
|
|
219
|
+
/* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v(D, { children: /* @__PURE__ */ v(j, {
|
|
220
|
+
variant: "subtitle1",
|
|
221
|
+
children: x._("Total")
|
|
222
|
+
}) }), /* @__PURE__ */ v(D, {
|
|
223
|
+
align: "right",
|
|
224
|
+
children: /* @__PURE__ */ v(j, {
|
|
225
|
+
variant: "subtitle1",
|
|
226
|
+
children: r.total_amount && r.currency ? N(r.total_amount, r.currency) : r.currency ? N(0, r.currency) : "—"
|
|
227
|
+
})
|
|
228
|
+
})] })
|
|
229
|
+
] }) })
|
|
230
|
+
})
|
|
231
|
+
}),
|
|
232
|
+
/* @__PURE__ */ y(S, {
|
|
233
|
+
item: !0,
|
|
234
|
+
xs: 12,
|
|
235
|
+
className: $ + "-History",
|
|
236
|
+
children: [/* @__PURE__ */ v(j, {
|
|
237
|
+
variant: "subtitle2",
|
|
238
|
+
mb: 2,
|
|
239
|
+
children: x._("History")
|
|
240
|
+
}), /* @__PURE__ */ v(C, {
|
|
241
|
+
variant: "outlined",
|
|
242
|
+
children: /* @__PURE__ */ v(T, { children: /* @__PURE__ */ y(E, { children: [
|
|
243
|
+
J && /* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v(m, {
|
|
244
|
+
isRequired: p("addedByUser", P) && r?.ocr_status === null,
|
|
245
|
+
children: x._("Added by")
|
|
246
|
+
}), /* @__PURE__ */ v(D, { children: /* @__PURE__ */ v(ie, {
|
|
247
|
+
user: {
|
|
248
|
+
id: J.id,
|
|
249
|
+
first_name: J.first_name,
|
|
250
|
+
last_name: J.last_name,
|
|
251
|
+
userpic_file_id: J.userpic_file_id
|
|
252
|
+
},
|
|
253
|
+
showAvatar: !0,
|
|
254
|
+
avatarSize: 24,
|
|
255
|
+
typographyVariant: "body2"
|
|
256
|
+
}) })] }),
|
|
257
|
+
/* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v(m, {
|
|
258
|
+
isRequired: p("addedOn", P) && r?.ocr_status === null,
|
|
259
|
+
children: x._("Added on")
|
|
260
|
+
}), /* @__PURE__ */ v(D, { children: r.created_at ? x.date(r.created_at, {
|
|
261
|
+
dateStyle: "short",
|
|
262
|
+
timeStyle: "short"
|
|
263
|
+
}) : "—" })] }),
|
|
264
|
+
/* @__PURE__ */ y(k, { children: [/* @__PURE__ */ v(m, {
|
|
265
|
+
isRequired: p("updatedOn", P) && r?.ocr_status === null,
|
|
266
|
+
children: x._("Last updated on")
|
|
267
|
+
}), /* @__PURE__ */ v(D, { children: r.updated_at ? x.date(r.updated_at, {
|
|
268
|
+
dateStyle: "short",
|
|
269
|
+
timeStyle: "short"
|
|
270
|
+
}) : "—" })] })
|
|
271
|
+
] }) })
|
|
272
|
+
})]
|
|
273
|
+
})
|
|
274
|
+
]
|
|
275
|
+
})
|
|
276
|
+
});
|
|
277
|
+
}, R = ({ counterpart: e, counterpartRawName: t, isCounterpartAIMatched: n, isCounterpartMatchingToOCRFound: i, isCounterpartLoading: a }) => {
|
|
278
|
+
let { i18n: o } = M();
|
|
279
|
+
if (a) return /* @__PURE__ */ v(x, {
|
|
280
|
+
size: 14,
|
|
281
|
+
color: "secondary"
|
|
282
|
+
});
|
|
283
|
+
let s = r(e);
|
|
284
|
+
return s && !i ? /* @__PURE__ */ y(w, {
|
|
285
|
+
component: "span",
|
|
286
|
+
gap: 1,
|
|
287
|
+
direction: "row",
|
|
288
|
+
children: [s, n && /* @__PURE__ */ v(A, {
|
|
289
|
+
title: o._("Vendor auto-matched by AI. The vendor name on the bill doesn’t exactly match the saved vendor, so AI selected the closest option."),
|
|
290
|
+
children: /* @__PURE__ */ v(g, { className: "ttw:text-blue-600" })
|
|
291
|
+
})]
|
|
292
|
+
}) : t ? /* @__PURE__ */ y(w, {
|
|
293
|
+
component: "span",
|
|
294
|
+
gap: 1,
|
|
295
|
+
direction: "row",
|
|
296
|
+
children: [t, /* @__PURE__ */ v(A, {
|
|
297
|
+
title: i ? o._("The vendor details in the bill don’t fully match the saved vendor.") : o._("The specified vendor has not been saved yet."),
|
|
298
|
+
children: /* @__PURE__ */ v(P, {
|
|
299
|
+
color: "warning",
|
|
300
|
+
fontSize: "small",
|
|
301
|
+
sx: { alignSelf: "center" }
|
|
302
|
+
})
|
|
303
|
+
})]
|
|
304
|
+
}) : /* @__PURE__ */ v(_, { children: "—" });
|
|
305
|
+
};
|
|
306
|
+
//#endregion
|
|
307
|
+
export { I as PayableDetailsInfo };
|
|
@@ -1,32 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Box as n, Typography as r } from "@mui/material";
|
|
3
|
-
import { useLingui as i } from "@lingui/react";
|
|
4
|
-
import a from "@mui/icons-material/AttachFile";
|
|
5
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js
|
|
6
|
-
var o = () => {
|
|
7
|
-
let { i18n: o } = i();
|
|
8
|
-
return /* @__PURE__ */ e(n, {
|
|
9
|
-
className: "Monite-PayableDetailsNoAttachedFile",
|
|
10
|
-
sx: {
|
|
11
|
-
width: "100%",
|
|
12
|
-
height: "100%",
|
|
13
|
-
display: "flex",
|
|
14
|
-
flexDirection: "column",
|
|
15
|
-
justifyContent: "center",
|
|
16
|
-
textAlign: "center"
|
|
17
|
-
},
|
|
18
|
-
children: /* @__PURE__ */ t(n, {
|
|
19
|
-
sx: { margin: "auto" },
|
|
20
|
-
children: [/* @__PURE__ */ e(a, {
|
|
21
|
-
color: "primary",
|
|
22
|
-
fontSize: "large",
|
|
23
|
-
sx: { marginBottom: 2 }
|
|
24
|
-
}), /* @__PURE__ */ e(r, {
|
|
25
|
-
color: "secondary",
|
|
26
|
-
children: o._("This invoice doesn’t have a file attached.")
|
|
27
|
-
})]
|
|
28
|
-
})
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
//#endregion
|
|
32
|
-
export { o as PayableDetailsNoAttachedFile };
|
|
1
|
+
import "./index265.js";
|
|
@@ -1 +1,32 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import { jsx as e, jsxs as t } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Box as n, Typography as r } from "@mui/material";
|
|
3
|
+
import { useLingui as i } from "@lingui/react";
|
|
4
|
+
import a from "@mui/icons-material/AttachFile";
|
|
5
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js
|
|
6
|
+
var o = () => {
|
|
7
|
+
let { i18n: o } = i();
|
|
8
|
+
return /* @__PURE__ */ e(n, {
|
|
9
|
+
className: "Monite-PayableDetailsNoAttachedFile",
|
|
10
|
+
sx: {
|
|
11
|
+
width: "100%",
|
|
12
|
+
height: "100%",
|
|
13
|
+
display: "flex",
|
|
14
|
+
flexDirection: "column",
|
|
15
|
+
justifyContent: "center",
|
|
16
|
+
textAlign: "center"
|
|
17
|
+
},
|
|
18
|
+
children: /* @__PURE__ */ t(n, {
|
|
19
|
+
sx: { margin: "auto" },
|
|
20
|
+
children: [/* @__PURE__ */ e(a, {
|
|
21
|
+
color: "primary",
|
|
22
|
+
fontSize: "large",
|
|
23
|
+
sx: { marginBottom: 2 }
|
|
24
|
+
}), /* @__PURE__ */ e(r, {
|
|
25
|
+
color: "secondary",
|
|
26
|
+
children: o._("This invoice doesn’t have a file attached.")
|
|
27
|
+
})]
|
|
28
|
+
})
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
32
|
+
export { o as PayableDetailsNoAttachedFile };
|
|
@@ -1,29 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
3
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js
|
|
4
|
-
var a = t(() => import("./index368.js")), o = ({ url: e, mimetype: t, name: n, showCloseButton: r, onClose: a }) => t === "application/pdf" ? /* @__PURE__ */ i(s, {
|
|
5
|
-
url: e,
|
|
6
|
-
showCloseButton: r,
|
|
7
|
-
onClose: a
|
|
8
|
-
}) : /* @__PURE__ */ i("img", {
|
|
9
|
-
className: "Monite-ImageFileViewer",
|
|
10
|
-
src: e,
|
|
11
|
-
alt: n,
|
|
12
|
-
loading: "lazy",
|
|
13
|
-
style: {
|
|
14
|
-
width: "100%",
|
|
15
|
-
objectFit: "contain"
|
|
16
|
-
}
|
|
17
|
-
}), s = ({ url: t, showCloseButton: o, onClose: s }) => {
|
|
18
|
-
let [c, l] = r(!1);
|
|
19
|
-
return n(() => l(!0), []), c ? /* @__PURE__ */ i(e, {
|
|
20
|
-
fallback: null,
|
|
21
|
-
children: /* @__PURE__ */ i(a, {
|
|
22
|
-
url: t,
|
|
23
|
-
showCloseButton: o,
|
|
24
|
-
onClose: s
|
|
25
|
-
})
|
|
26
|
-
}) : null;
|
|
27
|
-
};
|
|
28
|
-
//#endregion
|
|
29
|
-
export { o as FileViewer };
|
|
1
|
+
import "./index267.js";
|
|
@@ -1 +1,29 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import { Suspense as e, lazy as t, useEffect as n, useState as r } from "react";
|
|
2
|
+
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
3
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js
|
|
4
|
+
var a = t(() => import("./index369.js")), o = ({ url: e, mimetype: t, name: n, showCloseButton: r, onClose: a }) => t === "application/pdf" ? /* @__PURE__ */ i(s, {
|
|
5
|
+
url: e,
|
|
6
|
+
showCloseButton: r,
|
|
7
|
+
onClose: a
|
|
8
|
+
}) : /* @__PURE__ */ i("img", {
|
|
9
|
+
className: "Monite-ImageFileViewer",
|
|
10
|
+
src: e,
|
|
11
|
+
alt: n,
|
|
12
|
+
loading: "lazy",
|
|
13
|
+
style: {
|
|
14
|
+
width: "100%",
|
|
15
|
+
objectFit: "contain"
|
|
16
|
+
}
|
|
17
|
+
}), s = ({ url: t, showCloseButton: o, onClose: s }) => {
|
|
18
|
+
let [c, l] = r(!1);
|
|
19
|
+
return n(() => l(!0), []), c ? /* @__PURE__ */ i(e, {
|
|
20
|
+
fallback: null,
|
|
21
|
+
children: /* @__PURE__ */ i(a, {
|
|
22
|
+
url: t,
|
|
23
|
+
showCloseButton: o,
|
|
24
|
+
onClose: s
|
|
25
|
+
})
|
|
26
|
+
}) : null;
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { o as FileViewer };
|
|
@@ -1,22 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "./index66.js";
|
|
3
|
-
import { Typography as t } from "./index158.js";
|
|
4
|
-
import { SearchX as n } from "lucide-react";
|
|
5
|
-
import { jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
|
|
6
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js
|
|
7
|
-
var a = ({ title: a, description: o }) => /* @__PURE__ */ r(e, { children: /* @__PURE__ */ i("div", {
|
|
8
|
-
className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-4",
|
|
9
|
-
children: [/* @__PURE__ */ r(n, { className: "ttw:text-destructive ttw:size-8" }), /* @__PURE__ */ i("div", {
|
|
10
|
-
className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-2",
|
|
11
|
-
children: [/* @__PURE__ */ r(t, {
|
|
12
|
-
variant: "h4",
|
|
13
|
-
children: a
|
|
14
|
-
}), /* @__PURE__ */ r(t, {
|
|
15
|
-
variant: "body1",
|
|
16
|
-
className: "ttw:text-center",
|
|
17
|
-
children: o
|
|
18
|
-
})]
|
|
19
|
-
})]
|
|
20
|
-
}) });
|
|
21
|
-
//#endregion
|
|
22
|
-
export { a as NotFound };
|
|
1
|
+
import "./index269.js";
|
|
@@ -1 +1,22 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import { CenteredContentBox as e } from "./index65.js";
|
|
2
|
+
import "./index66.js";
|
|
3
|
+
import { Typography as t } from "./index158.js";
|
|
4
|
+
import { SearchX as n } from "lucide-react";
|
|
5
|
+
import { jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
|
|
6
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js
|
|
7
|
+
var a = ({ title: a, description: o }) => /* @__PURE__ */ r(e, { children: /* @__PURE__ */ i("div", {
|
|
8
|
+
className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-4",
|
|
9
|
+
children: [/* @__PURE__ */ r(n, { className: "ttw:text-destructive ttw:size-8" }), /* @__PURE__ */ i("div", {
|
|
10
|
+
className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-2",
|
|
11
|
+
children: [/* @__PURE__ */ r(t, {
|
|
12
|
+
variant: "h4",
|
|
13
|
+
children: a
|
|
14
|
+
}), /* @__PURE__ */ r(t, {
|
|
15
|
+
variant: "body1",
|
|
16
|
+
className: "ttw:text-center",
|
|
17
|
+
children: o
|
|
18
|
+
})]
|
|
19
|
+
})]
|
|
20
|
+
}) });
|
|
21
|
+
//#endregion
|
|
22
|
+
export { a as NotFound };
|
|
@@ -1,160 +1 @@
|
|
|
1
|
-
import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
|
|
2
|
-
import "../../shared/data-access/dist/index.js";
|
|
3
|
-
import { ScopedCssBaselineContainerClassName as t } from "./index29.js";
|
|
4
|
-
import { generatePayablesButtonCssVars as n } from "./index42.js";
|
|
5
|
-
import { useMoniteContext as r } from "./index45.js";
|
|
6
|
-
import { LoadingPage as i } from "./index68.js";
|
|
7
|
-
import "./index69.js";
|
|
8
|
-
import { MoniteScopedProviders as a } from "./index155.js";
|
|
9
|
-
import { useUserPermissions as o } from "./index156.js";
|
|
10
|
-
import { AccessRestriction as s } from "./index162.js";
|
|
11
|
-
import "./index165.js";
|
|
12
|
-
import { classNames as c } from "./index185.js";
|
|
13
|
-
import { PayableDetailsForceActionDialog as l } from "./index199.js";
|
|
14
|
-
import { PayableDetailsForm as u } from "./index235.js";
|
|
15
|
-
import "./index236.js";
|
|
16
|
-
import { usePayableDetails as d } from "./index242.js";
|
|
17
|
-
import { PayableDetailsAttachFile as ee } from "./index243.js";
|
|
18
|
-
import "./index244.js";
|
|
19
|
-
import { PayableDetailsHeader as te } from "./index256.js";
|
|
20
|
-
import "./index257.js";
|
|
21
|
-
import { PayableDetailsInfo as ne } from "./index264.js";
|
|
22
|
-
import "./index265.js";
|
|
23
|
-
import { PayableDetailsNoAttachedFile as re } from "./index266.js";
|
|
24
|
-
import "./index267.js";
|
|
25
|
-
import { FileViewer as ie } from "./index268.js";
|
|
26
|
-
import "./index269.js";
|
|
27
|
-
import { NotFound as ae } from "./index270.js";
|
|
28
1
|
import "./index271.js";
|
|
29
|
-
import { useId as oe, useMemo as se, useState as ce } from "react";
|
|
30
|
-
import { Fragment as f, jsx as p, jsxs as m } from "@emotion/react/jsx-runtime";
|
|
31
|
-
import { Alert as h, Backdrop as g, Box as _, DialogContent as v, Grid as y } from "@mui/material";
|
|
32
|
-
import { useLingui as b } from "@lingui/react";
|
|
33
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js
|
|
34
|
-
var x = (e) => /* @__PURE__ */ p(a, { children: /* @__PURE__ */ p(S, { ...e }) }), S = ({ id: a, optionalFields: x, enableGLCodes: S, hideAddDiscountButton: C, shouldOpenInEditMode: w, initialCounterpartId: T, onClose: E, onSaved: D, onCanceled: O, onSubmitted: k, onRejected: A, onApproved: j, onReopened: M, onDeleted: N, onPay: P }) => {
|
|
35
|
-
let { payable: F, payableQueryError: I, permissions: L, lineItems: R, isEdit: z, isLoading: B, showPayButton: V, actions: { setEdit: H, createInvoice: U, saveInvoice: W, submitInvoice: G, payInvoice: le, rejectInvoice: ue, approveInvoice: de, forceRejectInvoice: fe, forceApproveInvoice: pe, cancelInvoice: me, reopenInvoice: he, deleteInvoice: ge, modalComponent: _e } } = d({
|
|
36
|
-
id: a,
|
|
37
|
-
enableGLCodes: S,
|
|
38
|
-
shouldOpenInEditMode: w,
|
|
39
|
-
onSaved: D,
|
|
40
|
-
onCanceled: O,
|
|
41
|
-
onSubmitted: k,
|
|
42
|
-
onRejected: A,
|
|
43
|
-
onApproved: j,
|
|
44
|
-
onReopened: M,
|
|
45
|
-
onDeleted: N,
|
|
46
|
-
onPay: P
|
|
47
|
-
}), [K, q] = ce(null), J = () => q(null), ve = async () => {
|
|
48
|
-
J(), await pe();
|
|
49
|
-
}, ye = async () => {
|
|
50
|
-
J(), await fe();
|
|
51
|
-
}, { i18n: Y } = b(), { componentSettings: be, theme: X } = r(), xe = se(() => n(X.components?.styles?.payables?.button), [X.components?.styles?.payables?.button]), Z = o(), Q = Z.has(e.PayableWriteOrg), Se = Z.has(e.PayableReadOrg), $ = `Monite-PayableDetailsForm-${oe()}`;
|
|
52
|
-
return Se ? I ? /* @__PURE__ */ p(ae, {
|
|
53
|
-
title: Y._("Payable not found"),
|
|
54
|
-
description: Y._("There is no payable by provided id: {id}", { id: a })
|
|
55
|
-
}) : /* @__PURE__ */ p(f, { children: /* @__PURE__ */ m(_, {
|
|
56
|
-
className: c(t, "Monite-PayableDetails", "Monite-Payables"),
|
|
57
|
-
style: xe,
|
|
58
|
-
sx: {
|
|
59
|
-
width: "100%",
|
|
60
|
-
height: "100%",
|
|
61
|
-
display: "flex",
|
|
62
|
-
flexDirection: "column",
|
|
63
|
-
position: "absolute"
|
|
64
|
-
},
|
|
65
|
-
children: [
|
|
66
|
-
/* @__PURE__ */ p(g, {
|
|
67
|
-
open: B,
|
|
68
|
-
sx: { zIndex: (e) => e.zIndex.drawer + 1 },
|
|
69
|
-
children: /* @__PURE__ */ p(i, {})
|
|
70
|
-
}),
|
|
71
|
-
/* @__PURE__ */ p(te, {
|
|
72
|
-
payable: F,
|
|
73
|
-
permissions: L,
|
|
74
|
-
setEdit: H,
|
|
75
|
-
isEdit: z,
|
|
76
|
-
submitInvoice: G,
|
|
77
|
-
rejectInvoice: ue,
|
|
78
|
-
approveInvoice: de,
|
|
79
|
-
forceRejectInvoice: () => q("reject"),
|
|
80
|
-
forceApproveInvoice: () => q("approve"),
|
|
81
|
-
reopenInvoice: he,
|
|
82
|
-
cancelInvoice: me,
|
|
83
|
-
deleteInvoice: ge,
|
|
84
|
-
payInvoice: le,
|
|
85
|
-
payableDetailsFormId: $,
|
|
86
|
-
onClose: E,
|
|
87
|
-
modalComponent: _e,
|
|
88
|
-
showPayButton: V
|
|
89
|
-
}, String(z)),
|
|
90
|
-
/* @__PURE__ */ p(l, {
|
|
91
|
-
open: K === "approve",
|
|
92
|
-
type: "approve",
|
|
93
|
-
onClose: J,
|
|
94
|
-
onConfirm: ve
|
|
95
|
-
}),
|
|
96
|
-
/* @__PURE__ */ p(l, {
|
|
97
|
-
open: K === "reject",
|
|
98
|
-
type: "reject",
|
|
99
|
-
onClose: J,
|
|
100
|
-
onConfirm: ye
|
|
101
|
-
}),
|
|
102
|
-
/* @__PURE__ */ p(v, {
|
|
103
|
-
sx: {
|
|
104
|
-
display: "flex",
|
|
105
|
-
flexDirection: "column"
|
|
106
|
-
},
|
|
107
|
-
children: /* @__PURE__ */ m(y, {
|
|
108
|
-
container: !0,
|
|
109
|
-
columnSpacing: 4,
|
|
110
|
-
height: "100%",
|
|
111
|
-
children: [/* @__PURE__ */ m(y, {
|
|
112
|
-
item: !0,
|
|
113
|
-
container: !0,
|
|
114
|
-
xs: 6,
|
|
115
|
-
height: "100%",
|
|
116
|
-
children: [
|
|
117
|
-
F?.file && /* @__PURE__ */ p(ie, {
|
|
118
|
-
name: F.file.name,
|
|
119
|
-
mimetype: F.file.mimetype,
|
|
120
|
-
url: F.file.url
|
|
121
|
-
}),
|
|
122
|
-
Q && F?.id && !F?.file && /* @__PURE__ */ p(ee, { payableId: F.id }),
|
|
123
|
-
!Q && F?.id && !F?.file && /* @__PURE__ */ p(re, {})
|
|
124
|
-
]
|
|
125
|
-
}), /* @__PURE__ */ m(y, {
|
|
126
|
-
item: !0,
|
|
127
|
-
container: !0,
|
|
128
|
-
xs: 6,
|
|
129
|
-
flexDirection: "column",
|
|
130
|
-
height: "100%",
|
|
131
|
-
overflow: "auto",
|
|
132
|
-
children: [F && (F.status === "new" || F.status === "draft") && (F.ocr_status === "error" || F.ocr_status === "canceled") && /* @__PURE__ */ p(_, {
|
|
133
|
-
mb: 2,
|
|
134
|
-
children: /* @__PURE__ */ p(h, {
|
|
135
|
-
severity: "error",
|
|
136
|
-
children: Y._("Due to an error, the OCR failed to read the data from the document. Please input the data manually.")
|
|
137
|
-
})
|
|
138
|
-
}), z ? /* @__PURE__ */ p(u, {
|
|
139
|
-
savePayable: W,
|
|
140
|
-
createPayable: U,
|
|
141
|
-
payable: F,
|
|
142
|
-
initialCounterpartId: T,
|
|
143
|
-
optionalFields: x,
|
|
144
|
-
lineItems: R,
|
|
145
|
-
payableDetailsFormId: $,
|
|
146
|
-
enableGLCodes: S,
|
|
147
|
-
hideAddDiscountButton: C ?? be?.payables?.hideAddDiscountButton
|
|
148
|
-
}) : F && /* @__PURE__ */ p(ne, {
|
|
149
|
-
payable: F,
|
|
150
|
-
optionalFields: x,
|
|
151
|
-
enableGLCodes: S
|
|
152
|
-
})]
|
|
153
|
-
})]
|
|
154
|
-
})
|
|
155
|
-
})
|
|
156
|
-
]
|
|
157
|
-
}) }) : /* @__PURE__ */ p(s, {});
|
|
158
|
-
};
|
|
159
|
-
//#endregion
|
|
160
|
-
export { x as PayableDetails };
|