@tesouro/embedded-components-react 0.7.50 → 0.7.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/monite-sdk.d.ts +42 -42
- package/dist/lib/monite-sdk.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +19 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index100.js +56 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index101.js +10 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index102.js +39 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index103.js +0 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index104.js +105 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index105.js +1 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index106.js +56 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index107.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index108.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index109.js +1 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index110.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index111.js +1 -153
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index112.js +150 -52
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index113.js +55 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index114.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index115.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index116.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index117.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index118.js +7 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index119.js +51 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index120.js +38 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index121.js +72 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index122.js +36 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index123.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index124.js +6 -64
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index125.js +57 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index126.js +172 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index127.js +6 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index128.js +2 -76
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index129.js +76 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index130.js +0 -78
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index131.js +78 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index132.js +1 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index133.js +35 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index134.js +0 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index135.js +56 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index136.js +44 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index137.js +0 -568
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index138.js +568 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index139.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index140.js +1 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index141.js +159 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index142.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index143.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index144.js +1 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index145.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index146.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index147.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index148.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index149.js +19 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index150.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index151.js +1 -93
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index154.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index159.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index162.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index164.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index168.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index172.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index173.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index175.js +12 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index178.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index179.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +87 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +44 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +48 -82
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +83 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +7 -305
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +307 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +1 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +1 -22
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +0 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +159 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +1 -37
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +34 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +33 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +3 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +88 -172
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +171 -116
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +114 -191
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +209 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +11 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +14 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +31 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +0 -241
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +241 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +1 -36
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +31 -137
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +142 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +0 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +166 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +26 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +16 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +17 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +4 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +12 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +21 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +4 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +11 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +20 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +8 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +23 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +12 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +8 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +25 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +14 -81
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +81 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +14 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +98 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +43 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +30 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +0 -105
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +102 -35
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +32 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +171 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +13 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +4 -70
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +62 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +24 -209
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +207 -87
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +90 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +17 -158
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +144 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +100 -42
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +46 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +4 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +20 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +74 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +19 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +11 -131
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +129 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +8 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +4 -221
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +219 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +31 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +12 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +34 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +18 -72
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +73 -181
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +182 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +14 -204
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +192 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +97 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +63 -54
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +46 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +91 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +39 -75
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +63 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +85 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +12 -24
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +25 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +4 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +23 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +0 -45
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +46 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +2 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +33 -15
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +14 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +29 -27
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +31 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +2 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +97 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index96.js +2 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index97.js +17 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index98.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index99.js +1 -57
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
|
@@ -1,242 +1 @@
|
|
|
1
|
-
import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
|
|
2
|
-
import "../../shared/data-access/dist/index.js";
|
|
3
|
-
import { dateStringToLocalDate as t } from "./index16.js";
|
|
4
|
-
import { useMoniteContext as n } from "./index45.js";
|
|
5
|
-
import { usePayablePaymentIntentsAndRecords as ee } from "./index57.js";
|
|
6
|
-
import { useCurrencies as r } from "./index76.js";
|
|
7
|
-
import { MoniteScopedProviders as i } from "./index155.js";
|
|
8
|
-
import { useUserPermissions as a } from "./index156.js";
|
|
9
|
-
import { GetNoRowsOverlay as o } from "./index161.js";
|
|
10
|
-
import { AccessRestriction as te } from "./index162.js";
|
|
11
|
-
import "./index165.js";
|
|
12
|
-
import { DataTable as s, SortableHeader as c } from "./index168.js";
|
|
13
|
-
import { hasSelectedText as l } from "./index169.js";
|
|
14
|
-
import { CounterpartNameCellById as u } from "./index180.js";
|
|
15
|
-
import "./index181.js";
|
|
16
|
-
import { isPayableInOCRProcessing as d } from "./index241.js";
|
|
17
|
-
import { PayableStatusChip as f } from "./index246.js";
|
|
18
|
-
import "./index247.js";
|
|
19
|
-
import { SummaryCardsFilters as p } from "./index277.js";
|
|
20
|
-
import { PayablesFilterBar as m } from "./index278.js";
|
|
21
|
-
import { usePayablesFilter as h } from "./index280.js";
|
|
22
|
-
import { DEFAULT_SORTING as g, SORT_FIELD_BY_COLUMN_ID as _ } from "./index281.js";
|
|
23
|
-
import { DueDateCell as v } from "./index283.js";
|
|
24
1
|
import "./index284.js";
|
|
25
|
-
import { useEffect as y, useMemo as b, useState as x } from "react";
|
|
26
|
-
import { Loader2 as S } from "lucide-react";
|
|
27
|
-
import { Fragment as C, jsx as w, jsxs as T } from "@emotion/react/jsx-runtime";
|
|
28
|
-
import { useLingui as ne } from "@lingui/react";
|
|
29
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js
|
|
30
|
-
var E = (e) => /* @__PURE__ */ w(i, { children: /* @__PURE__ */ w(D, { ...e }) }), D = ({ initialCounterpartId: i, onRowClick: E, onPay: D, openFileInput: O, setIsCreateInvoiceDialogOpen: k, openEditDialog: A, onSubmitted: j, onApproved: M, onCanceled: N }) => {
|
|
31
|
-
let { i18n: P } = ne(), { api: F, locale: I, queryClient: L, componentSettings: R } = n(), [z, B] = x(null), [V, H] = x(R.payables.pageSizeOptions?.[0] ?? 10), [U, W] = x(g), G = h({ initialCounterpartId: i }), [K, q] = x("");
|
|
32
|
-
y(() => {
|
|
33
|
-
let e = setTimeout(() => q(G.state.search), 300);
|
|
34
|
-
return () => clearTimeout(e);
|
|
35
|
-
}, [G.state.search]);
|
|
36
|
-
let { formatCurrencyToDisplay: J } = r(), Y = a().has(e.PayableReadOrg), X = U[0], Z = F.finops.getPayables.getQueryKey({ query: {
|
|
37
|
-
sort: X ? _[X.id] : void 0,
|
|
38
|
-
order: X?.desc ? "desc" : "asc",
|
|
39
|
-
limit: V,
|
|
40
|
-
pagination_token: z || void 0,
|
|
41
|
-
...G.queryParams,
|
|
42
|
-
search_text: K || G.queryParams.search_text || void 0
|
|
43
|
-
} }), { data: Q, isLoading: re, isError: ie, refetch: $ } = F.finops.getPayables.useQuery(Z, {
|
|
44
|
-
enabled: !!Y,
|
|
45
|
-
refetchInterval: F.finops.getPayables.getQueryData(Z, L)?.data.filter(d).length ? 2e3 : 3e4
|
|
46
|
-
}), ae = b(() => Q?.data?.filter((e) => e.status === "waiting_to_be_paid" || e.status === "partially_paid").map((e) => e.id), [Q?.data]), { payablesPaymentIntentsRecord: oe, refetch: se } = ee(ae || []), ce = (e) => {
|
|
47
|
-
let t = typeof e == "function" ? e(U) : e;
|
|
48
|
-
W(t[0] && _[t[0].id] ? t : g), B(null);
|
|
49
|
-
}, le = b(() => [
|
|
50
|
-
{
|
|
51
|
-
accessorKey: "due_date",
|
|
52
|
-
header: ({ column: e }) => /* @__PURE__ */ w(c, {
|
|
53
|
-
column: e,
|
|
54
|
-
title: P._("Due date"),
|
|
55
|
-
ariaLabel: P._("Sort by due date")
|
|
56
|
-
}),
|
|
57
|
-
cell: ({ row: e }) => /* @__PURE__ */ w(v, { data: e.original })
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
accessorKey: "status",
|
|
61
|
-
header: ({ column: e }) => /* @__PURE__ */ w(c, {
|
|
62
|
-
column: e,
|
|
63
|
-
title: P._("Status"),
|
|
64
|
-
ariaLabel: P._("Sort by status")
|
|
65
|
-
}),
|
|
66
|
-
cell: ({ row: e }) => /* @__PURE__ */ w(f, {
|
|
67
|
-
status: e.original.status,
|
|
68
|
-
dueDate: e.original.due_date
|
|
69
|
-
})
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
accessorKey: "document_id",
|
|
73
|
-
header: ({ column: e }) => /* @__PURE__ */ w(c, {
|
|
74
|
-
column: e,
|
|
75
|
-
title: P._("Number"),
|
|
76
|
-
ariaLabel: P._("Sort by number")
|
|
77
|
-
}),
|
|
78
|
-
cell: ({ row: e }) => {
|
|
79
|
-
let t = e.original;
|
|
80
|
-
return d(t) ? /* @__PURE__ */ T("div", {
|
|
81
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
82
|
-
children: [/* @__PURE__ */ w(S, { className: "ttw:animate-spin ttw:size-5 ttw:shrink-0" }), /* @__PURE__ */ w("span", { children: t.document_id ? t.document_id : /* @__PURE__ */ T(C, { children: [
|
|
83
|
-
P._("Processing file"),
|
|
84
|
-
" '",
|
|
85
|
-
t.file?.name,
|
|
86
|
-
"'"
|
|
87
|
-
] }) })]
|
|
88
|
-
}) : /* @__PURE__ */ w("span", { children: t.document_id });
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
accessorKey: "counterpart_id",
|
|
93
|
-
header: P._("Vendor"),
|
|
94
|
-
cell: ({ row: e }) => {
|
|
95
|
-
let t = e.original;
|
|
96
|
-
return t.counterpart?.name ? /* @__PURE__ */ w("span", { children: t.counterpart.name }) : t.counterpart_id ? /* @__PURE__ */ w(u, { counterpartId: t.counterpart_id }) : t.counterpart_raw_data?.name ? /* @__PURE__ */ w("span", { children: t.counterpart_raw_data.name }) : /* @__PURE__ */ w("span", {
|
|
97
|
-
style: { opacity: .4 },
|
|
98
|
-
children: "-"
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
accessorKey: "issued_at",
|
|
104
|
-
header: ({ column: e }) => /* @__PURE__ */ w(c, {
|
|
105
|
-
column: e,
|
|
106
|
-
title: P._("Issued on"),
|
|
107
|
-
ariaLabel: P._("Sort by issue date")
|
|
108
|
-
}),
|
|
109
|
-
cell: ({ row: e }) => {
|
|
110
|
-
let n = e.original.issued_at;
|
|
111
|
-
return n ? P.date(t(n), I.dateFormat) : "—";
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
accessorKey: "amount",
|
|
116
|
-
header: ({ column: e }) => /* @__PURE__ */ w("div", {
|
|
117
|
-
className: "ttw:flex ttw:justify-end",
|
|
118
|
-
children: /* @__PURE__ */ w(c, {
|
|
119
|
-
column: e,
|
|
120
|
-
title: P._("Total"),
|
|
121
|
-
ariaLabel: P._("Sort by total")
|
|
122
|
-
})
|
|
123
|
-
}),
|
|
124
|
-
cell: ({ row: e }) => {
|
|
125
|
-
let t = e.original.total_amount;
|
|
126
|
-
return /* @__PURE__ */ w("div", {
|
|
127
|
-
className: "ttw:text-right",
|
|
128
|
-
children: t ? J(t, e.original.currency ?? "USD") : ""
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
], [
|
|
133
|
-
P,
|
|
134
|
-
I.dateFormat,
|
|
135
|
-
J,
|
|
136
|
-
oe,
|
|
137
|
-
se,
|
|
138
|
-
D,
|
|
139
|
-
j,
|
|
140
|
-
M,
|
|
141
|
-
N,
|
|
142
|
-
$,
|
|
143
|
-
A
|
|
144
|
-
]);
|
|
145
|
-
if (y(() => {
|
|
146
|
-
B(null);
|
|
147
|
-
}, [G.queryParams]), !Y) return /* @__PURE__ */ w(te, {});
|
|
148
|
-
let ue = G.activeFilterCount > 0, de = !!K;
|
|
149
|
-
return /* @__PURE__ */ T("div", {
|
|
150
|
-
className: "ttw:flex ttw:flex-col ttw:overflow-hidden ttw:min-h-125",
|
|
151
|
-
children: [/* @__PURE__ */ w(p, {
|
|
152
|
-
selectedStatus: G.state.status.length === 0 ? "all" : G.state.status[0],
|
|
153
|
-
onChangeFilter: (e, t) => G.setState((e) => ({
|
|
154
|
-
...e,
|
|
155
|
-
status: t ? [t] : []
|
|
156
|
-
}))
|
|
157
|
-
}), /* @__PURE__ */ w(s, {
|
|
158
|
-
columns: le,
|
|
159
|
-
data: Q?.data ?? [],
|
|
160
|
-
sorting: U,
|
|
161
|
-
onSortingChange: ce,
|
|
162
|
-
pageSize: V,
|
|
163
|
-
onPageSizeChange: (e) => {
|
|
164
|
-
H(e), B(null);
|
|
165
|
-
},
|
|
166
|
-
nextPaginationToken: Q?.next_pagination_token ?? void 0,
|
|
167
|
-
prevPaginationToken: Q?.prev_pagination_token ?? void 0,
|
|
168
|
-
onPaginationTokenChange: (e) => B(e ?? null),
|
|
169
|
-
onRowClick: (e) => {
|
|
170
|
-
!l() && e.ocr_status !== "processing" && E?.(e.id);
|
|
171
|
-
},
|
|
172
|
-
filterComponent: /* @__PURE__ */ w(m, {
|
|
173
|
-
searchValue: G.state.search,
|
|
174
|
-
onSearchChange: (e) => G.setState((t) => ({
|
|
175
|
-
...t,
|
|
176
|
-
search: e
|
|
177
|
-
})),
|
|
178
|
-
activeFilterCount: G.activeFilterCount,
|
|
179
|
-
activeChips: G.activeChips,
|
|
180
|
-
onDismissChip: G.clearFilter,
|
|
181
|
-
onClearAll: G.clearAll,
|
|
182
|
-
activeDateField: G.state.activeDateField,
|
|
183
|
-
onActiveDateFieldChange: G.setActiveDateField,
|
|
184
|
-
allPresets: G.datePresets,
|
|
185
|
-
selectedDatePreset: G.state.datePreset,
|
|
186
|
-
dateFrom: G.state.dateFrom,
|
|
187
|
-
dateTo: G.state.dateTo,
|
|
188
|
-
onDateRangeChange: ({ from: e, to: t }) => G.setDateRange(e, t),
|
|
189
|
-
onDatePresetChange: G.setDatePreset,
|
|
190
|
-
statusOptions: G.statusOptions,
|
|
191
|
-
selectedStatus: G.state.status,
|
|
192
|
-
onStatusChange: (e) => G.setState((t) => ({
|
|
193
|
-
...t,
|
|
194
|
-
status: e
|
|
195
|
-
})),
|
|
196
|
-
amountMode: G.state.amountMode,
|
|
197
|
-
onAmountModeChange: (e) => G.setState((t) => ({
|
|
198
|
-
...t,
|
|
199
|
-
amountMode: e
|
|
200
|
-
})),
|
|
201
|
-
amountMin: G.state.amountMin,
|
|
202
|
-
amountMax: G.state.amountMax,
|
|
203
|
-
onAmountMinChange: (e) => G.setState((t) => ({
|
|
204
|
-
...t,
|
|
205
|
-
amountMin: e
|
|
206
|
-
})),
|
|
207
|
-
onAmountMaxChange: (e) => G.setState((t) => ({
|
|
208
|
-
...t,
|
|
209
|
-
amountMax: e
|
|
210
|
-
})),
|
|
211
|
-
vendorName: G.state.vendorName,
|
|
212
|
-
onVendorNameChange: (e) => G.setState((t) => ({
|
|
213
|
-
...t,
|
|
214
|
-
vendorName: e
|
|
215
|
-
})),
|
|
216
|
-
hasFile: G.state.hasFile,
|
|
217
|
-
onHasFileChange: (e) => G.setState((t) => ({
|
|
218
|
-
...t,
|
|
219
|
-
hasFile: e
|
|
220
|
-
}))
|
|
221
|
-
}),
|
|
222
|
-
children: /* @__PURE__ */ w(o, {
|
|
223
|
-
noDataTitle: P._("No bills yet"),
|
|
224
|
-
noDataDescription1: P._("You don't have any bills yet"),
|
|
225
|
-
filterTitle: P._("No bills found"),
|
|
226
|
-
isLoading: re,
|
|
227
|
-
isFiltering: ue,
|
|
228
|
-
isSearching: de,
|
|
229
|
-
isError: ie,
|
|
230
|
-
dataLength: Q?.data.length || 0,
|
|
231
|
-
onCreate: (e) => {
|
|
232
|
-
e === "New Invoice" ? k?.(!0) : e === "Upload File" && O?.();
|
|
233
|
-
},
|
|
234
|
-
refetch: $,
|
|
235
|
-
entityName: P._("Payable"),
|
|
236
|
-
type: "no-data=payables"
|
|
237
|
-
})
|
|
238
|
-
})]
|
|
239
|
-
});
|
|
240
|
-
};
|
|
241
|
-
//#endregion
|
|
242
|
-
export { E as PayablesTable };
|
|
@@ -1 +1,242 @@
|
|
|
1
|
+
import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
|
|
2
|
+
import "../../shared/data-access/dist/index.js";
|
|
3
|
+
import { dateStringToLocalDate as t } from "./index16.js";
|
|
4
|
+
import { useMoniteContext as n } from "./index45.js";
|
|
5
|
+
import { usePayablePaymentIntentsAndRecords as ee } from "./index57.js";
|
|
6
|
+
import { useCurrencies as r } from "./index76.js";
|
|
7
|
+
import { MoniteScopedProviders as i } from "./index155.js";
|
|
8
|
+
import { useUserPermissions as a } from "./index156.js";
|
|
9
|
+
import { GetNoRowsOverlay as o } from "./index161.js";
|
|
10
|
+
import { AccessRestriction as te } from "./index162.js";
|
|
11
|
+
import "./index165.js";
|
|
12
|
+
import { DataTable as s, SortableHeader as c } from "./index168.js";
|
|
13
|
+
import { hasSelectedText as l } from "./index169.js";
|
|
14
|
+
import { CounterpartNameCellById as u } from "./index180.js";
|
|
15
|
+
import "./index181.js";
|
|
16
|
+
import { isPayableInOCRProcessing as d } from "./index241.js";
|
|
17
|
+
import { PayableStatusChip as f } from "./index246.js";
|
|
18
|
+
import "./index247.js";
|
|
19
|
+
import { SummaryCardsFilters as p } from "./index278.js";
|
|
20
|
+
import { PayablesFilterBar as m } from "./index279.js";
|
|
21
|
+
import { usePayablesFilter as h } from "./index281.js";
|
|
22
|
+
import { DEFAULT_SORTING as g, SORT_FIELD_BY_COLUMN_ID as _ } from "./index282.js";
|
|
23
|
+
import { DueDateCell as v } from "./index284.js";
|
|
1
24
|
import "./index285.js";
|
|
25
|
+
import { useEffect as y, useMemo as b, useState as x } from "react";
|
|
26
|
+
import { Loader2 as S } from "lucide-react";
|
|
27
|
+
import { Fragment as C, jsx as w, jsxs as T } from "@emotion/react/jsx-runtime";
|
|
28
|
+
import { useLingui as ne } from "@lingui/react";
|
|
29
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js
|
|
30
|
+
var E = (e) => /* @__PURE__ */ w(i, { children: /* @__PURE__ */ w(D, { ...e }) }), D = ({ initialCounterpartId: i, onRowClick: E, onPay: D, openFileInput: O, setIsCreateInvoiceDialogOpen: k, openEditDialog: A, onSubmitted: j, onApproved: M, onCanceled: N }) => {
|
|
31
|
+
let { i18n: P } = ne(), { api: F, locale: I, queryClient: L, componentSettings: R } = n(), [z, B] = x(null), [V, H] = x(R.payables.pageSizeOptions?.[0] ?? 10), [U, W] = x(g), G = h({ initialCounterpartId: i }), [K, q] = x("");
|
|
32
|
+
y(() => {
|
|
33
|
+
let e = setTimeout(() => q(G.state.search), 300);
|
|
34
|
+
return () => clearTimeout(e);
|
|
35
|
+
}, [G.state.search]);
|
|
36
|
+
let { formatCurrencyToDisplay: J } = r(), Y = a().has(e.PayableReadOrg), X = U[0], Z = F.finops.getPayables.getQueryKey({ query: {
|
|
37
|
+
sort: X ? _[X.id] : void 0,
|
|
38
|
+
order: X?.desc ? "desc" : "asc",
|
|
39
|
+
limit: V,
|
|
40
|
+
pagination_token: z || void 0,
|
|
41
|
+
...G.queryParams,
|
|
42
|
+
search_text: K || G.queryParams.search_text || void 0
|
|
43
|
+
} }), { data: Q, isLoading: re, isError: ie, refetch: $ } = F.finops.getPayables.useQuery(Z, {
|
|
44
|
+
enabled: !!Y,
|
|
45
|
+
refetchInterval: F.finops.getPayables.getQueryData(Z, L)?.data.filter(d).length ? 2e3 : 3e4
|
|
46
|
+
}), ae = b(() => Q?.data?.filter((e) => e.status === "waiting_to_be_paid" || e.status === "partially_paid").map((e) => e.id), [Q?.data]), { payablesPaymentIntentsRecord: oe, refetch: se } = ee(ae || []), ce = (e) => {
|
|
47
|
+
let t = typeof e == "function" ? e(U) : e;
|
|
48
|
+
W(t[0] && _[t[0].id] ? t : g), B(null);
|
|
49
|
+
}, le = b(() => [
|
|
50
|
+
{
|
|
51
|
+
accessorKey: "due_date",
|
|
52
|
+
header: ({ column: e }) => /* @__PURE__ */ w(c, {
|
|
53
|
+
column: e,
|
|
54
|
+
title: P._("Due date"),
|
|
55
|
+
ariaLabel: P._("Sort by due date")
|
|
56
|
+
}),
|
|
57
|
+
cell: ({ row: e }) => /* @__PURE__ */ w(v, { data: e.original })
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
accessorKey: "status",
|
|
61
|
+
header: ({ column: e }) => /* @__PURE__ */ w(c, {
|
|
62
|
+
column: e,
|
|
63
|
+
title: P._("Status"),
|
|
64
|
+
ariaLabel: P._("Sort by status")
|
|
65
|
+
}),
|
|
66
|
+
cell: ({ row: e }) => /* @__PURE__ */ w(f, {
|
|
67
|
+
status: e.original.status,
|
|
68
|
+
dueDate: e.original.due_date
|
|
69
|
+
})
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
accessorKey: "document_id",
|
|
73
|
+
header: ({ column: e }) => /* @__PURE__ */ w(c, {
|
|
74
|
+
column: e,
|
|
75
|
+
title: P._("Number"),
|
|
76
|
+
ariaLabel: P._("Sort by number")
|
|
77
|
+
}),
|
|
78
|
+
cell: ({ row: e }) => {
|
|
79
|
+
let t = e.original;
|
|
80
|
+
return d(t) ? /* @__PURE__ */ T("div", {
|
|
81
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
82
|
+
children: [/* @__PURE__ */ w(S, { className: "ttw:animate-spin ttw:size-5 ttw:shrink-0" }), /* @__PURE__ */ w("span", { children: t.document_id ? t.document_id : /* @__PURE__ */ T(C, { children: [
|
|
83
|
+
P._("Processing file"),
|
|
84
|
+
" '",
|
|
85
|
+
t.file?.name,
|
|
86
|
+
"'"
|
|
87
|
+
] }) })]
|
|
88
|
+
}) : /* @__PURE__ */ w("span", { children: t.document_id });
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
accessorKey: "counterpart_id",
|
|
93
|
+
header: P._("Vendor"),
|
|
94
|
+
cell: ({ row: e }) => {
|
|
95
|
+
let t = e.original;
|
|
96
|
+
return t.counterpart?.name ? /* @__PURE__ */ w("span", { children: t.counterpart.name }) : t.counterpart_id ? /* @__PURE__ */ w(u, { counterpartId: t.counterpart_id }) : t.counterpart_raw_data?.name ? /* @__PURE__ */ w("span", { children: t.counterpart_raw_data.name }) : /* @__PURE__ */ w("span", {
|
|
97
|
+
style: { opacity: .4 },
|
|
98
|
+
children: "-"
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
accessorKey: "issued_at",
|
|
104
|
+
header: ({ column: e }) => /* @__PURE__ */ w(c, {
|
|
105
|
+
column: e,
|
|
106
|
+
title: P._("Issued on"),
|
|
107
|
+
ariaLabel: P._("Sort by issue date")
|
|
108
|
+
}),
|
|
109
|
+
cell: ({ row: e }) => {
|
|
110
|
+
let n = e.original.issued_at;
|
|
111
|
+
return n ? P.date(t(n), I.dateFormat) : "—";
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
accessorKey: "amount",
|
|
116
|
+
header: ({ column: e }) => /* @__PURE__ */ w("div", {
|
|
117
|
+
className: "ttw:flex ttw:justify-end",
|
|
118
|
+
children: /* @__PURE__ */ w(c, {
|
|
119
|
+
column: e,
|
|
120
|
+
title: P._("Total"),
|
|
121
|
+
ariaLabel: P._("Sort by total")
|
|
122
|
+
})
|
|
123
|
+
}),
|
|
124
|
+
cell: ({ row: e }) => {
|
|
125
|
+
let t = e.original.total_amount;
|
|
126
|
+
return /* @__PURE__ */ w("div", {
|
|
127
|
+
className: "ttw:text-right",
|
|
128
|
+
children: t ? J(t, e.original.currency ?? "USD") : ""
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
], [
|
|
133
|
+
P,
|
|
134
|
+
I.dateFormat,
|
|
135
|
+
J,
|
|
136
|
+
oe,
|
|
137
|
+
se,
|
|
138
|
+
D,
|
|
139
|
+
j,
|
|
140
|
+
M,
|
|
141
|
+
N,
|
|
142
|
+
$,
|
|
143
|
+
A
|
|
144
|
+
]);
|
|
145
|
+
if (y(() => {
|
|
146
|
+
B(null);
|
|
147
|
+
}, [G.queryParams]), !Y) return /* @__PURE__ */ w(te, {});
|
|
148
|
+
let ue = G.activeFilterCount > 0, de = !!K;
|
|
149
|
+
return /* @__PURE__ */ T("div", {
|
|
150
|
+
className: "ttw:flex ttw:flex-col ttw:overflow-hidden ttw:min-h-125",
|
|
151
|
+
children: [/* @__PURE__ */ w(p, {
|
|
152
|
+
selectedStatus: G.state.status.length === 0 ? "all" : G.state.status[0],
|
|
153
|
+
onChangeFilter: (e, t) => G.setState((e) => ({
|
|
154
|
+
...e,
|
|
155
|
+
status: t ? [t] : []
|
|
156
|
+
}))
|
|
157
|
+
}), /* @__PURE__ */ w(s, {
|
|
158
|
+
columns: le,
|
|
159
|
+
data: Q?.data ?? [],
|
|
160
|
+
sorting: U,
|
|
161
|
+
onSortingChange: ce,
|
|
162
|
+
pageSize: V,
|
|
163
|
+
onPageSizeChange: (e) => {
|
|
164
|
+
H(e), B(null);
|
|
165
|
+
},
|
|
166
|
+
nextPaginationToken: Q?.next_pagination_token ?? void 0,
|
|
167
|
+
prevPaginationToken: Q?.prev_pagination_token ?? void 0,
|
|
168
|
+
onPaginationTokenChange: (e) => B(e ?? null),
|
|
169
|
+
onRowClick: (e) => {
|
|
170
|
+
!l() && e.ocr_status !== "processing" && E?.(e.id);
|
|
171
|
+
},
|
|
172
|
+
filterComponent: /* @__PURE__ */ w(m, {
|
|
173
|
+
searchValue: G.state.search,
|
|
174
|
+
onSearchChange: (e) => G.setState((t) => ({
|
|
175
|
+
...t,
|
|
176
|
+
search: e
|
|
177
|
+
})),
|
|
178
|
+
activeFilterCount: G.activeFilterCount,
|
|
179
|
+
activeChips: G.activeChips,
|
|
180
|
+
onDismissChip: G.clearFilter,
|
|
181
|
+
onClearAll: G.clearAll,
|
|
182
|
+
activeDateField: G.state.activeDateField,
|
|
183
|
+
onActiveDateFieldChange: G.setActiveDateField,
|
|
184
|
+
allPresets: G.datePresets,
|
|
185
|
+
selectedDatePreset: G.state.datePreset,
|
|
186
|
+
dateFrom: G.state.dateFrom,
|
|
187
|
+
dateTo: G.state.dateTo,
|
|
188
|
+
onDateRangeChange: ({ from: e, to: t }) => G.setDateRange(e, t),
|
|
189
|
+
onDatePresetChange: G.setDatePreset,
|
|
190
|
+
statusOptions: G.statusOptions,
|
|
191
|
+
selectedStatus: G.state.status,
|
|
192
|
+
onStatusChange: (e) => G.setState((t) => ({
|
|
193
|
+
...t,
|
|
194
|
+
status: e
|
|
195
|
+
})),
|
|
196
|
+
amountMode: G.state.amountMode,
|
|
197
|
+
onAmountModeChange: (e) => G.setState((t) => ({
|
|
198
|
+
...t,
|
|
199
|
+
amountMode: e
|
|
200
|
+
})),
|
|
201
|
+
amountMin: G.state.amountMin,
|
|
202
|
+
amountMax: G.state.amountMax,
|
|
203
|
+
onAmountMinChange: (e) => G.setState((t) => ({
|
|
204
|
+
...t,
|
|
205
|
+
amountMin: e
|
|
206
|
+
})),
|
|
207
|
+
onAmountMaxChange: (e) => G.setState((t) => ({
|
|
208
|
+
...t,
|
|
209
|
+
amountMax: e
|
|
210
|
+
})),
|
|
211
|
+
vendorName: G.state.vendorName,
|
|
212
|
+
onVendorNameChange: (e) => G.setState((t) => ({
|
|
213
|
+
...t,
|
|
214
|
+
vendorName: e
|
|
215
|
+
})),
|
|
216
|
+
hasFile: G.state.hasFile,
|
|
217
|
+
onHasFileChange: (e) => G.setState((t) => ({
|
|
218
|
+
...t,
|
|
219
|
+
hasFile: e
|
|
220
|
+
}))
|
|
221
|
+
}),
|
|
222
|
+
children: /* @__PURE__ */ w(o, {
|
|
223
|
+
noDataTitle: P._("No bills yet"),
|
|
224
|
+
noDataDescription1: P._("You don't have any bills yet"),
|
|
225
|
+
filterTitle: P._("No bills found"),
|
|
226
|
+
isLoading: re,
|
|
227
|
+
isFiltering: ue,
|
|
228
|
+
isSearching: de,
|
|
229
|
+
isError: ie,
|
|
230
|
+
dataLength: Q?.data.length || 0,
|
|
231
|
+
onCreate: (e) => {
|
|
232
|
+
e === "New Invoice" ? k?.(!0) : e === "Upload File" && O?.();
|
|
233
|
+
},
|
|
234
|
+
refetch: $,
|
|
235
|
+
entityName: P._("Payable"),
|
|
236
|
+
type: "no-data=payables"
|
|
237
|
+
})
|
|
238
|
+
})]
|
|
239
|
+
});
|
|
240
|
+
};
|
|
241
|
+
//#endregion
|
|
242
|
+
export { E as PayablesTable };
|
|
@@ -1,36 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "./index79.js";
|
|
3
|
-
import { cn as t } from "./index64.js";
|
|
4
|
-
import "react";
|
|
5
|
-
import { jsx as n } from "@emotion/react/jsx-runtime";
|
|
6
|
-
import * as r from "@radix-ui/react-popover";
|
|
7
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js
|
|
8
|
-
function i({ ...e }) {
|
|
9
|
-
return /* @__PURE__ */ n(r.Root, {
|
|
10
|
-
"data-slot": "popover",
|
|
11
|
-
...e
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
function a({ ref: e, ...t }) {
|
|
15
|
-
return /* @__PURE__ */ n(r.Trigger, {
|
|
16
|
-
"data-slot": "popover-trigger",
|
|
17
|
-
ref: e,
|
|
18
|
-
...t
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
a.displayName = r.Trigger.displayName;
|
|
22
|
-
function o({ className: i, align: a = "center", sideOffset: o = 4, ...s }) {
|
|
23
|
-
let { root: c } = e();
|
|
24
|
-
return /* @__PURE__ */ n(r.Portal, {
|
|
25
|
-
container: c,
|
|
26
|
-
children: /* @__PURE__ */ n(r.Content, {
|
|
27
|
-
"data-slot": "popover-content",
|
|
28
|
-
align: a,
|
|
29
|
-
sideOffset: o,
|
|
30
|
-
className: t("ttw:bg-popover ttw:text-popover-foreground ttw:data-[state=open]:animate-in ttw:data-[state=closed]:animate-out ttw:data-[state=closed]:fade-out-0 ttw:data-[state=open]:fade-in-0 ttw:data-[state=closed]:zoom-out-95 ttw:data-[state=open]:zoom-in-95 ttw:data-[side=bottom]:slide-in-from-top-2 ttw:data-[side=left]:slide-in-from-right-2 ttw:data-[side=right]:slide-in-from-left-2 ttw:data-[side=top]:slide-in-from-bottom-2 ttw:z-1300 ttw:w-72 ttw:origin-(--radix-popover-content-transform-origin) ttw:rounded-md ttw:border ttw:p-4 ttw:shadow-md ttw:outline-hidden", i),
|
|
31
|
-
...s
|
|
32
|
-
})
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
//#endregion
|
|
36
|
-
export { i as Popover, o as PopoverContent, a as PopoverTrigger };
|
|
1
|
+
import "./index286.js";
|