@tesouro/embedded-components-react 0.7.30 → 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,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 { useCurrencies as ee } from "./index63.js";
|
|
6
|
-
import { MoniteScopedProviders as r } from "./index129.js";
|
|
7
|
-
import { useUserPermissions as i } from "./index111.js";
|
|
8
|
-
import { PayableStatusChip as a } from "./index118.js";
|
|
9
|
-
import { usePayablePaymentIntentsAndRecords as o } from "./index144.js";
|
|
10
|
-
import { CounterpartNameCellById as s } from "./index149.js";
|
|
11
|
-
import { GetNoRowsOverlay as c } from "./index152.js";
|
|
12
|
-
import { AccessRestriction as l } from "./index153.js";
|
|
13
|
-
import "./index155.js";
|
|
14
|
-
import { DataTable as u, SortableHeader as d } from "./index157.js";
|
|
15
|
-
import { hasSelectedText as te } from "./index158.js";
|
|
16
|
-
import "./index246.js";
|
|
17
|
-
import { isPayableInOCRProcessing as f } from "./index304.js";
|
|
18
|
-
import "./index308.js";
|
|
19
|
-
import { SummaryCardsFilters as p } from "./index334.js";
|
|
20
|
-
import { PayablesFilterBar as m } from "./index335.js";
|
|
21
|
-
import { usePayablesFilter as h } from "./index337.js";
|
|
22
|
-
import { DEFAULT_SORTING as g, SORT_FIELD_BY_COLUMN_ID as _ } from "./index338.js";
|
|
23
|
-
import { DueDateCell as ne } from "./index340.js";
|
|
24
1
|
import "./index341.js";
|
|
25
|
-
import { useEffect as v, useMemo as y, useState as b } from "react";
|
|
26
|
-
import { Loader2 as x } from "lucide-react";
|
|
27
|
-
import { Fragment as S, jsx as C, jsxs as w } from "@emotion/react/jsx-runtime";
|
|
28
|
-
import { useLingui as re } from "@lingui/react";
|
|
29
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js
|
|
30
|
-
var T = (e) => /* @__PURE__ */ C(r, { children: /* @__PURE__ */ C(E, { ...e }) }), E = ({ initialCounterpartId: r, onRowClick: T, onPay: E, openFileInput: D, setIsCreateInvoiceDialogOpen: O, openEditDialog: k, onSubmitted: A, onApproved: j, onCanceled: M }) => {
|
|
31
|
-
let { i18n: N } = re(), { api: P, locale: F, queryClient: I, componentSettings: L } = n(), [R, z] = b(null), [B, V] = b(L.payables.pageSizeOptions?.[0] ?? 10), [H, U] = b(g), W = h({ initialCounterpartId: r }), [G, K] = b("");
|
|
32
|
-
v(() => {
|
|
33
|
-
let e = setTimeout(() => K(W.state.search), 300);
|
|
34
|
-
return () => clearTimeout(e);
|
|
35
|
-
}, [W.state.search]);
|
|
36
|
-
let { formatCurrencyToDisplay: q } = ee(), J = i().has(e.PayableReadOrg), Y = H[0], X = P.finops.getPayables.getQueryKey({ query: {
|
|
37
|
-
sort: Y ? _[Y.id] : void 0,
|
|
38
|
-
order: Y?.desc ? "desc" : "asc",
|
|
39
|
-
limit: B,
|
|
40
|
-
pagination_token: R || void 0,
|
|
41
|
-
...W.queryParams,
|
|
42
|
-
search_text: G || W.queryParams.search_text || void 0
|
|
43
|
-
} }), { data: Z, isLoading: ie, isError: ae, refetch: Q } = P.finops.getPayables.useQuery(X, {
|
|
44
|
-
enabled: !!J,
|
|
45
|
-
refetchInterval: P.finops.getPayables.getQueryData(X, I)?.data.filter(f).length ? 2e3 : 3e4
|
|
46
|
-
}), oe = y(() => Z?.data?.filter((e) => e.status === "waiting_to_be_paid" || e.status === "partially_paid").map((e) => e.id), [Z?.data]), { payablesPaymentIntentsRecord: $, refetch: se } = o(oe || []), ce = (e) => {
|
|
47
|
-
let t = typeof e == "function" ? e(H) : e;
|
|
48
|
-
U(t[0] && _[t[0].id] ? t : g), z(null);
|
|
49
|
-
}, le = y(() => [
|
|
50
|
-
{
|
|
51
|
-
accessorKey: "due_date",
|
|
52
|
-
header: ({ column: e }) => /* @__PURE__ */ C(d, {
|
|
53
|
-
column: e,
|
|
54
|
-
title: N._("Due date"),
|
|
55
|
-
ariaLabel: N._("Sort by due date")
|
|
56
|
-
}),
|
|
57
|
-
cell: ({ row: e }) => /* @__PURE__ */ C(ne, { data: e.original })
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
accessorKey: "status",
|
|
61
|
-
header: ({ column: e }) => /* @__PURE__ */ C(d, {
|
|
62
|
-
column: e,
|
|
63
|
-
title: N._("Status"),
|
|
64
|
-
ariaLabel: N._("Sort by status")
|
|
65
|
-
}),
|
|
66
|
-
cell: ({ row: e }) => /* @__PURE__ */ C(a, {
|
|
67
|
-
status: e.original.status,
|
|
68
|
-
dueDate: e.original.due_date
|
|
69
|
-
})
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
accessorKey: "document_id",
|
|
73
|
-
header: ({ column: e }) => /* @__PURE__ */ C(d, {
|
|
74
|
-
column: e,
|
|
75
|
-
title: N._("Number"),
|
|
76
|
-
ariaLabel: N._("Sort by number")
|
|
77
|
-
}),
|
|
78
|
-
cell: ({ row: e }) => {
|
|
79
|
-
let t = e.original;
|
|
80
|
-
return f(t) ? /* @__PURE__ */ w("div", {
|
|
81
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
82
|
-
children: [/* @__PURE__ */ C(x, { className: "ttw:animate-spin ttw:size-5 ttw:shrink-0" }), /* @__PURE__ */ C("span", { children: t.document_id ? t.document_id : /* @__PURE__ */ w(S, { children: [
|
|
83
|
-
N._("Processing file"),
|
|
84
|
-
" '",
|
|
85
|
-
t.file?.name,
|
|
86
|
-
"'"
|
|
87
|
-
] }) })]
|
|
88
|
-
}) : /* @__PURE__ */ C("span", { children: t.document_id });
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
accessorKey: "counterpart_id",
|
|
93
|
-
header: N._("Vendor"),
|
|
94
|
-
cell: ({ row: e }) => {
|
|
95
|
-
let t = e.original;
|
|
96
|
-
return t.counterpart?.name ? /* @__PURE__ */ C("span", { children: t.counterpart.name }) : t.counterpart_id ? /* @__PURE__ */ C(s, { counterpartId: t.counterpart_id }) : t.counterpart_raw_data?.name ? /* @__PURE__ */ C("span", { children: t.counterpart_raw_data.name }) : /* @__PURE__ */ C("span", {
|
|
97
|
-
style: { opacity: .4 },
|
|
98
|
-
children: "-"
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
accessorKey: "issued_at",
|
|
104
|
-
header: ({ column: e }) => /* @__PURE__ */ C(d, {
|
|
105
|
-
column: e,
|
|
106
|
-
title: N._("Issued on"),
|
|
107
|
-
ariaLabel: N._("Sort by issue date")
|
|
108
|
-
}),
|
|
109
|
-
cell: ({ row: e }) => {
|
|
110
|
-
let n = e.original.issued_at;
|
|
111
|
-
return n ? N.date(t(n), F.dateFormat) : "—";
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
accessorKey: "amount",
|
|
116
|
-
header: ({ column: e }) => /* @__PURE__ */ C("div", {
|
|
117
|
-
className: "ttw:flex ttw:justify-end",
|
|
118
|
-
children: /* @__PURE__ */ C(d, {
|
|
119
|
-
column: e,
|
|
120
|
-
title: N._("Total"),
|
|
121
|
-
ariaLabel: N._("Sort by total")
|
|
122
|
-
})
|
|
123
|
-
}),
|
|
124
|
-
cell: ({ row: e }) => {
|
|
125
|
-
let t = e.original.total_amount;
|
|
126
|
-
return /* @__PURE__ */ C("div", {
|
|
127
|
-
className: "ttw:text-right",
|
|
128
|
-
children: t ? q(t, e.original.currency ?? "USD") : ""
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
], [
|
|
133
|
-
N,
|
|
134
|
-
F.dateFormat,
|
|
135
|
-
q,
|
|
136
|
-
$,
|
|
137
|
-
se,
|
|
138
|
-
E,
|
|
139
|
-
A,
|
|
140
|
-
j,
|
|
141
|
-
M,
|
|
142
|
-
Q,
|
|
143
|
-
k
|
|
144
|
-
]);
|
|
145
|
-
if (v(() => {
|
|
146
|
-
z(null);
|
|
147
|
-
}, [W.queryParams]), !J) return /* @__PURE__ */ C(l, {});
|
|
148
|
-
let ue = W.activeFilterCount > 0, de = !!G;
|
|
149
|
-
return /* @__PURE__ */ w("div", {
|
|
150
|
-
className: "ttw:flex ttw:flex-col ttw:overflow-hidden ttw:min-h-125",
|
|
151
|
-
children: [/* @__PURE__ */ C(p, {
|
|
152
|
-
selectedStatus: W.state.status.length === 0 ? "all" : W.state.status[0],
|
|
153
|
-
onChangeFilter: (e, t) => W.setState((e) => ({
|
|
154
|
-
...e,
|
|
155
|
-
status: t ? [t] : []
|
|
156
|
-
}))
|
|
157
|
-
}), /* @__PURE__ */ C(u, {
|
|
158
|
-
columns: le,
|
|
159
|
-
data: Z?.data ?? [],
|
|
160
|
-
sorting: H,
|
|
161
|
-
onSortingChange: ce,
|
|
162
|
-
pageSize: B,
|
|
163
|
-
onPageSizeChange: (e) => {
|
|
164
|
-
V(e), z(null);
|
|
165
|
-
},
|
|
166
|
-
nextPaginationToken: Z?.next_pagination_token ?? void 0,
|
|
167
|
-
prevPaginationToken: Z?.prev_pagination_token ?? void 0,
|
|
168
|
-
onPaginationTokenChange: (e) => z(e ?? null),
|
|
169
|
-
onRowClick: (e) => {
|
|
170
|
-
!te() && e.ocr_status !== "processing" && T?.(e.id);
|
|
171
|
-
},
|
|
172
|
-
filterComponent: /* @__PURE__ */ C(m, {
|
|
173
|
-
searchValue: W.state.search,
|
|
174
|
-
onSearchChange: (e) => W.setState((t) => ({
|
|
175
|
-
...t,
|
|
176
|
-
search: e
|
|
177
|
-
})),
|
|
178
|
-
activeFilterCount: W.activeFilterCount,
|
|
179
|
-
activeChips: W.activeChips,
|
|
180
|
-
onDismissChip: W.clearFilter,
|
|
181
|
-
onClearAll: W.clearAll,
|
|
182
|
-
activeDateField: W.state.activeDateField,
|
|
183
|
-
onActiveDateFieldChange: W.setActiveDateField,
|
|
184
|
-
allPresets: W.datePresets,
|
|
185
|
-
selectedDatePreset: W.state.datePreset,
|
|
186
|
-
dateFrom: W.state.dateFrom,
|
|
187
|
-
dateTo: W.state.dateTo,
|
|
188
|
-
onDateRangeChange: ({ from: e, to: t }) => W.setDateRange(e, t),
|
|
189
|
-
onDatePresetChange: W.setDatePreset,
|
|
190
|
-
statusOptions: W.statusOptions,
|
|
191
|
-
selectedStatus: W.state.status,
|
|
192
|
-
onStatusChange: (e) => W.setState((t) => ({
|
|
193
|
-
...t,
|
|
194
|
-
status: e
|
|
195
|
-
})),
|
|
196
|
-
amountMode: W.state.amountMode,
|
|
197
|
-
onAmountModeChange: (e) => W.setState((t) => ({
|
|
198
|
-
...t,
|
|
199
|
-
amountMode: e
|
|
200
|
-
})),
|
|
201
|
-
amountMin: W.state.amountMin,
|
|
202
|
-
amountMax: W.state.amountMax,
|
|
203
|
-
onAmountMinChange: (e) => W.setState((t) => ({
|
|
204
|
-
...t,
|
|
205
|
-
amountMin: e
|
|
206
|
-
})),
|
|
207
|
-
onAmountMaxChange: (e) => W.setState((t) => ({
|
|
208
|
-
...t,
|
|
209
|
-
amountMax: e
|
|
210
|
-
})),
|
|
211
|
-
vendorName: W.state.vendorName,
|
|
212
|
-
onVendorNameChange: (e) => W.setState((t) => ({
|
|
213
|
-
...t,
|
|
214
|
-
vendorName: e
|
|
215
|
-
})),
|
|
216
|
-
hasFile: W.state.hasFile,
|
|
217
|
-
onHasFileChange: (e) => W.setState((t) => ({
|
|
218
|
-
...t,
|
|
219
|
-
hasFile: e
|
|
220
|
-
}))
|
|
221
|
-
}),
|
|
222
|
-
children: /* @__PURE__ */ C(c, {
|
|
223
|
-
noDataTitle: N._("No bills yet"),
|
|
224
|
-
noDataDescription1: N._("You don't have any bills yet"),
|
|
225
|
-
filterTitle: N._("No bills found"),
|
|
226
|
-
isLoading: ie,
|
|
227
|
-
isFiltering: ue,
|
|
228
|
-
isSearching: de,
|
|
229
|
-
isError: ae,
|
|
230
|
-
dataLength: Z?.data.length || 0,
|
|
231
|
-
onCreate: (e) => {
|
|
232
|
-
e === "New Invoice" ? O?.(!0) : e === "Upload File" && D?.();
|
|
233
|
-
},
|
|
234
|
-
refetch: Q,
|
|
235
|
-
entityName: N._("Payable"),
|
|
236
|
-
type: "no-data=payables"
|
|
237
|
-
})
|
|
238
|
-
})]
|
|
239
|
-
});
|
|
240
|
-
};
|
|
241
|
-
//#endregion
|
|
242
|
-
export { T as PayablesTable };
|
|
@@ -1 +1,36 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import { useRootElements as e } from "./index47.js";
|
|
2
|
+
import "./index48.js";
|
|
3
|
+
import { cn as t } from "./index49.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/index343.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,36 +1,142 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
1
|
+
import { cn as e } from "./index49.js";
|
|
2
|
+
import { Button as t } from "./index56.js";
|
|
3
|
+
import { useFileInput as n } from "./index165.js";
|
|
4
|
+
import "./index173.js";
|
|
5
|
+
import { Popover as r, PopoverContent as i, PopoverTrigger as a } from "./index343.js";
|
|
6
|
+
import { useState as o } from "react";
|
|
7
|
+
import { ChevronDownIcon as s, ChevronUpIcon as c, CloudUpload as l, Copy as u, Plus as d } from "lucide-react";
|
|
8
|
+
import { jsx as f, jsxs as p } from "@emotion/react/jsx-runtime";
|
|
9
|
+
import { toast as m } from "react-hot-toast";
|
|
10
|
+
import { useLingui as h } from "@lingui/react";
|
|
7
11
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
12
|
+
var g = ({ isCreateAllowed: g, onCreateInvoice: _, handleFileUpload: v }) => {
|
|
13
|
+
let { i18n: y } = h(), [b, x] = o(!1), { FileInput: S, openFileInput: C, checkFileError: w } = n(), [T, E] = o(!1);
|
|
14
|
+
return /* @__PURE__ */ f("div", {
|
|
15
|
+
className: "Monite-Payables",
|
|
16
|
+
children: /* @__PURE__ */ p(r, {
|
|
17
|
+
open: b,
|
|
18
|
+
onOpenChange: x,
|
|
19
|
+
children: [/* @__PURE__ */ f(a, {
|
|
20
|
+
asChild: !0,
|
|
21
|
+
children: /* @__PURE__ */ p(t, {
|
|
22
|
+
size: "lg",
|
|
23
|
+
disabled: !g,
|
|
24
|
+
children: [y._("Add new bill"), f(b ? c : s, {})]
|
|
25
|
+
})
|
|
26
|
+
}), /* @__PURE__ */ p(i, {
|
|
27
|
+
align: "end",
|
|
28
|
+
className: "ttw:w-auto ttw:min-w-110 ttw:border-none ttw:p-6",
|
|
29
|
+
children: [/* @__PURE__ */ p("div", {
|
|
30
|
+
className: "ttw:w-110 ttw:flex ttw:flex-col ttw:gap-4",
|
|
31
|
+
onClick: (e) => {
|
|
32
|
+
e.preventDefault(), e.stopPropagation();
|
|
33
|
+
},
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("h3", {
|
|
36
|
+
className: "ttw:text-xl ttw:font-semibold ttw:text-zinc-950",
|
|
37
|
+
children: y._("Upload bills")
|
|
38
|
+
}), /* @__PURE__ */ f("p", {
|
|
39
|
+
className: "ttw:text-sm ttw:font-normal ttw:text-zinc-500",
|
|
40
|
+
children: y._("Upload your bills and we'll automatically pull the details so you can review and approve.")
|
|
41
|
+
})] }),
|
|
42
|
+
/* @__PURE__ */ f("div", {
|
|
43
|
+
className: e("ttw:box-border ttw:cursor-pointer ttw:w-full ttw:h-36.5 ttw:flex ttw:flex-col ttw:items-center ttw:justify-center ttw:text-center ttw:border ttw:rounded-lg ttw:border-dashed ttw:border-zinc-200 ttw:bg-zinc-50", T && "ttw:bg-transparent"),
|
|
44
|
+
onDragOver: (e) => {
|
|
45
|
+
e.preventDefault(), E(!0);
|
|
46
|
+
},
|
|
47
|
+
onDragLeave: (e) => {
|
|
48
|
+
e.preventDefault(), E(!1);
|
|
49
|
+
},
|
|
50
|
+
onDrop: (e) => {
|
|
51
|
+
e.preventDefault(), E(!1);
|
|
52
|
+
let t = Array.from(e.dataTransfer.files);
|
|
53
|
+
if (t.length > 10) {
|
|
54
|
+
m.error(y._("You can only upload up to {fileCount} files at a time", { fileCount: 10 })), x(!1);
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
t.forEach((e) => {
|
|
58
|
+
let t = w(e);
|
|
59
|
+
if (t) {
|
|
60
|
+
m.error(t);
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
v(e);
|
|
64
|
+
}), x(!1);
|
|
65
|
+
},
|
|
66
|
+
onClick: C,
|
|
67
|
+
children: /* @__PURE__ */ p("div", {
|
|
68
|
+
className: "ttw:mx-auto ttw:flex ttw:flex-col ttw:items-center ttw:gap-2",
|
|
69
|
+
children: [
|
|
70
|
+
/* @__PURE__ */ f("div", {
|
|
71
|
+
className: "ttw:w-11 ttw:h-11 ttw:rounded-full ttw:bg-primary ttw:flex ttw:items-center ttw:justify-center",
|
|
72
|
+
children: /* @__PURE__ */ f(l, { className: "ttw:text-white ttw:size-5" })
|
|
73
|
+
}),
|
|
74
|
+
/* @__PURE__ */ p("p", {
|
|
75
|
+
className: "ttw:text-sm ttw:font-medium ttw:text-zinc-950",
|
|
76
|
+
children: [
|
|
77
|
+
y._("Drop your files here, or"),
|
|
78
|
+
" ",
|
|
79
|
+
/* @__PURE__ */ f("span", {
|
|
80
|
+
className: "ttw:text-primary ttw:underline",
|
|
81
|
+
children: y._("click to browse")
|
|
82
|
+
})
|
|
83
|
+
]
|
|
84
|
+
}),
|
|
85
|
+
/* @__PURE__ */ f("p", {
|
|
86
|
+
className: "ttw:text-xs ttw:font-normal ttw:text-zinc-500",
|
|
87
|
+
children: y._("PDF, PNG or JPG (max. 20MB)")
|
|
88
|
+
})
|
|
89
|
+
]
|
|
90
|
+
})
|
|
91
|
+
}),
|
|
92
|
+
/* @__PURE__ */ p("div", {
|
|
93
|
+
className: "ttw:flex ttw:flex-col",
|
|
94
|
+
children: [/* @__PURE__ */ f("h3", {
|
|
95
|
+
className: "ttw:text-primary ttw:text-sm ttw:font-semibold",
|
|
96
|
+
children: y._("Send via email")
|
|
97
|
+
}), /* @__PURE__ */ f("p", {
|
|
98
|
+
className: "ttw:text-zinc-500 ttw:font-normal ttw:text-sm",
|
|
99
|
+
children: y._("Email your bills here and they'll appear in your bill pay inbox, ready to review and pay.")
|
|
100
|
+
})]
|
|
101
|
+
}),
|
|
102
|
+
/* @__PURE__ */ p("div", {
|
|
103
|
+
className: "ttw:px-3 ttw:h-14 ttw:border ttw:border-zinc-200 ttw:rounded-lg ttw:flex ttw:items-center ttw:justify-between ttw:gap-6",
|
|
104
|
+
children: [/* @__PURE__ */ f("span", { children: y._("bills@business-banking.com") }), /* @__PURE__ */ p(t, {
|
|
105
|
+
type: "button",
|
|
106
|
+
variant: "ghost",
|
|
107
|
+
size: "sm",
|
|
108
|
+
className: "ttw:text-primary ttw:hover:bg-primary-foreground ttw:hover:text-primary",
|
|
109
|
+
onClick: () => {
|
|
110
|
+
navigator.clipboard.writeText("bills@business-banking.com"), m.success(y._("Email address copied to clipboard"));
|
|
111
|
+
},
|
|
112
|
+
children: [/* @__PURE__ */ f(u, {}), y._("Copy")]
|
|
113
|
+
})]
|
|
114
|
+
}),
|
|
115
|
+
/* @__PURE__ */ p("div", {
|
|
116
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
117
|
+
children: [/* @__PURE__ */ f("h3", {
|
|
118
|
+
className: "ttw:text-sm ttw:font-semibold ttw:text-primary",
|
|
119
|
+
children: y._("Or add bill manually")
|
|
120
|
+
}), /* @__PURE__ */ p(t, {
|
|
121
|
+
onClick: () => {
|
|
122
|
+
x(!1), _();
|
|
123
|
+
},
|
|
124
|
+
className: "ttw:w-fit ttw:bg-primary-foreground ttw:hover:bg-primary-foreground ttw:text-primary",
|
|
125
|
+
children: [/* @__PURE__ */ f(d, {}), y._("Add new bill")]
|
|
126
|
+
})]
|
|
127
|
+
})
|
|
128
|
+
]
|
|
129
|
+
}), /* @__PURE__ */ f(S, {
|
|
130
|
+
"aria-label": y._("Upload payable files"),
|
|
131
|
+
multiple: !0,
|
|
132
|
+
onChange: (e) => {
|
|
133
|
+
let t = e.target.files;
|
|
134
|
+
t && v(t), x(!1);
|
|
135
|
+
}
|
|
136
|
+
})]
|
|
137
|
+
})]
|
|
32
138
|
})
|
|
33
139
|
});
|
|
34
|
-
}
|
|
140
|
+
};
|
|
35
141
|
//#endregion
|
|
36
|
-
export {
|
|
142
|
+
export { g as CreatePayableMenu };
|
|
@@ -1,142 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Button as t } from "./index56.js";
|
|
3
|
-
import { useFileInput as n } from "./index165.js";
|
|
4
|
-
import "./index173.js";
|
|
5
|
-
import { Popover as r, PopoverContent as i, PopoverTrigger as a } from "./index344.js";
|
|
6
|
-
import { useState as o } from "react";
|
|
7
|
-
import { ChevronDownIcon as s, ChevronUpIcon as c, CloudUpload as l, Copy as u, Plus as d } from "lucide-react";
|
|
8
|
-
import { jsx as f, jsxs as p } from "@emotion/react/jsx-runtime";
|
|
9
|
-
import { toast as m } from "react-hot-toast";
|
|
10
|
-
import { useLingui as h } from "@lingui/react";
|
|
11
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js
|
|
12
|
-
var g = ({ isCreateAllowed: g, onCreateInvoice: _, handleFileUpload: v }) => {
|
|
13
|
-
let { i18n: y } = h(), [b, x] = o(!1), { FileInput: S, openFileInput: C, checkFileError: w } = n(), [T, E] = o(!1);
|
|
14
|
-
return /* @__PURE__ */ f("div", {
|
|
15
|
-
className: "Monite-Payables",
|
|
16
|
-
children: /* @__PURE__ */ p(r, {
|
|
17
|
-
open: b,
|
|
18
|
-
onOpenChange: x,
|
|
19
|
-
children: [/* @__PURE__ */ f(a, {
|
|
20
|
-
asChild: !0,
|
|
21
|
-
children: /* @__PURE__ */ p(t, {
|
|
22
|
-
size: "lg",
|
|
23
|
-
disabled: !g,
|
|
24
|
-
children: [y._("Add new bill"), f(b ? c : s, {})]
|
|
25
|
-
})
|
|
26
|
-
}), /* @__PURE__ */ p(i, {
|
|
27
|
-
align: "end",
|
|
28
|
-
className: "ttw:w-auto ttw:min-w-110 ttw:border-none ttw:p-6",
|
|
29
|
-
children: [/* @__PURE__ */ p("div", {
|
|
30
|
-
className: "ttw:w-110 ttw:flex ttw:flex-col ttw:gap-4",
|
|
31
|
-
onClick: (e) => {
|
|
32
|
-
e.preventDefault(), e.stopPropagation();
|
|
33
|
-
},
|
|
34
|
-
children: [
|
|
35
|
-
/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("h3", {
|
|
36
|
-
className: "ttw:text-xl ttw:font-semibold ttw:text-zinc-950",
|
|
37
|
-
children: y._("Upload bills")
|
|
38
|
-
}), /* @__PURE__ */ f("p", {
|
|
39
|
-
className: "ttw:text-sm ttw:font-normal ttw:text-zinc-500",
|
|
40
|
-
children: y._("Upload your bills and we'll automatically pull the details so you can review and approve.")
|
|
41
|
-
})] }),
|
|
42
|
-
/* @__PURE__ */ f("div", {
|
|
43
|
-
className: e("ttw:box-border ttw:cursor-pointer ttw:w-full ttw:h-36.5 ttw:flex ttw:flex-col ttw:items-center ttw:justify-center ttw:text-center ttw:border ttw:rounded-lg ttw:border-dashed ttw:border-zinc-200 ttw:bg-zinc-50", T && "ttw:bg-transparent"),
|
|
44
|
-
onDragOver: (e) => {
|
|
45
|
-
e.preventDefault(), E(!0);
|
|
46
|
-
},
|
|
47
|
-
onDragLeave: (e) => {
|
|
48
|
-
e.preventDefault(), E(!1);
|
|
49
|
-
},
|
|
50
|
-
onDrop: (e) => {
|
|
51
|
-
e.preventDefault(), E(!1);
|
|
52
|
-
let t = Array.from(e.dataTransfer.files);
|
|
53
|
-
if (t.length > 10) {
|
|
54
|
-
m.error(y._("You can only upload up to {fileCount} files at a time", { fileCount: 10 })), x(!1);
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
t.forEach((e) => {
|
|
58
|
-
let t = w(e);
|
|
59
|
-
if (t) {
|
|
60
|
-
m.error(t);
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
v(e);
|
|
64
|
-
}), x(!1);
|
|
65
|
-
},
|
|
66
|
-
onClick: C,
|
|
67
|
-
children: /* @__PURE__ */ p("div", {
|
|
68
|
-
className: "ttw:mx-auto ttw:flex ttw:flex-col ttw:items-center ttw:gap-2",
|
|
69
|
-
children: [
|
|
70
|
-
/* @__PURE__ */ f("div", {
|
|
71
|
-
className: "ttw:w-11 ttw:h-11 ttw:rounded-full ttw:bg-primary ttw:flex ttw:items-center ttw:justify-center",
|
|
72
|
-
children: /* @__PURE__ */ f(l, { className: "ttw:text-white ttw:size-5" })
|
|
73
|
-
}),
|
|
74
|
-
/* @__PURE__ */ p("p", {
|
|
75
|
-
className: "ttw:text-sm ttw:font-medium ttw:text-zinc-950",
|
|
76
|
-
children: [
|
|
77
|
-
y._("Drop your files here, or"),
|
|
78
|
-
" ",
|
|
79
|
-
/* @__PURE__ */ f("span", {
|
|
80
|
-
className: "ttw:text-primary ttw:underline",
|
|
81
|
-
children: y._("click to browse")
|
|
82
|
-
})
|
|
83
|
-
]
|
|
84
|
-
}),
|
|
85
|
-
/* @__PURE__ */ f("p", {
|
|
86
|
-
className: "ttw:text-xs ttw:font-normal ttw:text-zinc-500",
|
|
87
|
-
children: y._("PDF, PNG or JPG (max. 20MB)")
|
|
88
|
-
})
|
|
89
|
-
]
|
|
90
|
-
})
|
|
91
|
-
}),
|
|
92
|
-
/* @__PURE__ */ p("div", {
|
|
93
|
-
className: "ttw:flex ttw:flex-col",
|
|
94
|
-
children: [/* @__PURE__ */ f("h3", {
|
|
95
|
-
className: "ttw:text-primary ttw:text-sm ttw:font-semibold",
|
|
96
|
-
children: y._("Send via email")
|
|
97
|
-
}), /* @__PURE__ */ f("p", {
|
|
98
|
-
className: "ttw:text-zinc-500 ttw:font-normal ttw:text-sm",
|
|
99
|
-
children: y._("Email your bills here and they'll appear in your bill pay inbox, ready to review and pay.")
|
|
100
|
-
})]
|
|
101
|
-
}),
|
|
102
|
-
/* @__PURE__ */ p("div", {
|
|
103
|
-
className: "ttw:px-3 ttw:h-14 ttw:border ttw:border-zinc-200 ttw:rounded-lg ttw:flex ttw:items-center ttw:justify-between ttw:gap-6",
|
|
104
|
-
children: [/* @__PURE__ */ f("span", { children: y._("bills@business-banking.com") }), /* @__PURE__ */ p(t, {
|
|
105
|
-
type: "button",
|
|
106
|
-
variant: "ghost",
|
|
107
|
-
size: "sm",
|
|
108
|
-
className: "ttw:text-primary ttw:hover:bg-primary-foreground ttw:hover:text-primary",
|
|
109
|
-
onClick: () => {
|
|
110
|
-
navigator.clipboard.writeText("bills@business-banking.com"), m.success(y._("Email address copied to clipboard"));
|
|
111
|
-
},
|
|
112
|
-
children: [/* @__PURE__ */ f(u, {}), y._("Copy")]
|
|
113
|
-
})]
|
|
114
|
-
}),
|
|
115
|
-
/* @__PURE__ */ p("div", {
|
|
116
|
-
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
117
|
-
children: [/* @__PURE__ */ f("h3", {
|
|
118
|
-
className: "ttw:text-sm ttw:font-semibold ttw:text-primary",
|
|
119
|
-
children: y._("Or add bill manually")
|
|
120
|
-
}), /* @__PURE__ */ p(t, {
|
|
121
|
-
onClick: () => {
|
|
122
|
-
x(!1), _();
|
|
123
|
-
},
|
|
124
|
-
className: "ttw:w-fit ttw:bg-primary-foreground ttw:hover:bg-primary-foreground ttw:text-primary",
|
|
125
|
-
children: [/* @__PURE__ */ f(d, {}), y._("Add new bill")]
|
|
126
|
-
})]
|
|
127
|
-
})
|
|
128
|
-
]
|
|
129
|
-
}), /* @__PURE__ */ f(S, {
|
|
130
|
-
"aria-label": y._("Upload payable files"),
|
|
131
|
-
multiple: !0,
|
|
132
|
-
onChange: (e) => {
|
|
133
|
-
let t = e.target.files;
|
|
134
|
-
t && v(t), x(!1);
|
|
135
|
-
}
|
|
136
|
-
})]
|
|
137
|
-
})]
|
|
138
|
-
})
|
|
139
|
-
});
|
|
140
|
-
};
|
|
141
|
-
//#endregion
|
|
142
|
-
export { g as CreatePayableMenu };
|
|
1
|
+
import "./index344.js";
|