@tesouro/embedded-components-react 0.7.30 → 0.7.32
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,122 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { jsx as r, jsxs as i } from "@emotion/react/jsx-runtime";
|
|
6
|
-
import { Box as a, Grid as o, IconButton as s, MenuItem as c, Select as l, Typography as u } from "@mui/material";
|
|
7
|
-
import { useLingui as d } from "@lingui/react";
|
|
8
|
-
import { styled as f, useThemeProps as p } from "@mui/material/styles";
|
|
9
|
-
import m from "@mui/icons-material/ChevronLeft";
|
|
10
|
-
import h from "@mui/icons-material/ChevronRight";
|
|
1
|
+
import e from "@mui/icons-material/Cancel";
|
|
2
|
+
import t from "@mui/icons-material/HourglassEmpty";
|
|
3
|
+
import n from "@mui/icons-material/PaidOutlined";
|
|
4
|
+
import r from "@mui/icons-material/DangerousOutlined";
|
|
11
5
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return /* @__PURE__ */ r(y, {
|
|
29
|
-
container: !0,
|
|
30
|
-
mx: 2,
|
|
31
|
-
boxSizing: "border-box",
|
|
32
|
-
className: E,
|
|
33
|
-
children: /* @__PURE__ */ i(o, {
|
|
34
|
-
xs: 12,
|
|
35
|
-
item: !0,
|
|
36
|
-
display: "flex",
|
|
37
|
-
justifyContent: I.justifyContent,
|
|
38
|
-
flexDirection: I.flexDirection,
|
|
39
|
-
gap: I.gap,
|
|
40
|
-
pt: .5,
|
|
41
|
-
pb: 1,
|
|
42
|
-
alignItems: "center",
|
|
43
|
-
children: [/* @__PURE__ */ i(a, { children: [/* @__PURE__ */ r(s, {
|
|
44
|
-
className: "Monite-TablePagination-PreviousPageButton",
|
|
45
|
-
"aria-label": D._("Previous page"),
|
|
46
|
-
disabled: !v,
|
|
47
|
-
onClick: (e) => {
|
|
48
|
-
if (e.preventDefault(), v === void 0) throw Error("Previous page is not available");
|
|
49
|
-
n({
|
|
50
|
-
page: v,
|
|
51
|
-
pageSize: P
|
|
52
|
-
});
|
|
53
|
-
},
|
|
54
|
-
children: /* @__PURE__ */ r(m, {
|
|
55
|
-
fontSize: "small",
|
|
56
|
-
"aria-label": D._("Previous page")
|
|
57
|
-
})
|
|
58
|
-
}), /* @__PURE__ */ r(s, {
|
|
59
|
-
className: "Monite-TablePagination-NextPageButton",
|
|
60
|
-
"aria-label": D._("Next page"),
|
|
61
|
-
disabled: !f,
|
|
62
|
-
onClick: (e) => {
|
|
63
|
-
if (e.preventDefault(), f === void 0) throw Error("Next page is not available");
|
|
64
|
-
n({
|
|
65
|
-
page: f,
|
|
66
|
-
pageSize: P
|
|
67
|
-
});
|
|
68
|
-
},
|
|
69
|
-
children: /* @__PURE__ */ r(h, {
|
|
70
|
-
fontSize: "small",
|
|
71
|
-
"aria-label": D._("Next page")
|
|
72
|
-
})
|
|
73
|
-
})] }), F && /* @__PURE__ */ i(a, {
|
|
74
|
-
display: "flex",
|
|
75
|
-
alignItems: "center",
|
|
76
|
-
gap: 1,
|
|
77
|
-
children: [/* @__PURE__ */ r(u, {
|
|
78
|
-
variant: "body2",
|
|
79
|
-
color: "text.secondary",
|
|
80
|
-
children: D._("Results per page")
|
|
81
|
-
}), /* @__PURE__ */ r(a, { children: /* @__PURE__ */ r(b, {
|
|
82
|
-
className: "Monite-RowsPerPageSelector",
|
|
83
|
-
...A?.pageSizeSelect,
|
|
84
|
-
"aria-label": D._("Rows per page"),
|
|
85
|
-
MenuProps: {
|
|
86
|
-
...A?.pageSizeSelect?.MenuProps,
|
|
87
|
-
container: O
|
|
88
|
-
},
|
|
89
|
-
value: P.toString(),
|
|
90
|
-
onChange: (e) => void n({
|
|
91
|
-
page: null,
|
|
92
|
-
pageSize: parseInt(e.target.value, 10)
|
|
93
|
-
}),
|
|
94
|
-
children: k?.map((e) => /* @__PURE__ */ r(c, {
|
|
95
|
-
value: e.toString(),
|
|
96
|
-
children: e
|
|
97
|
-
}, e))
|
|
98
|
-
}) })]
|
|
99
|
-
})]
|
|
100
|
-
})
|
|
101
|
-
});
|
|
102
|
-
}, y = f(n((e, t) => /* @__PURE__ */ r(o, {
|
|
103
|
-
ref: t,
|
|
104
|
-
...e
|
|
105
|
-
})), {
|
|
106
|
-
name: g,
|
|
107
|
-
slot: "root",
|
|
108
|
-
shouldForwardProp: () => !0
|
|
109
|
-
})({}), b = f(n(({ ...t }, n) => {
|
|
110
|
-
let { root: i } = e();
|
|
111
|
-
return /* @__PURE__ */ r(l, {
|
|
112
|
-
ref: n,
|
|
113
|
-
...t,
|
|
114
|
-
MenuProps: { container: i }
|
|
115
|
-
});
|
|
116
|
-
}), {
|
|
117
|
-
name: g,
|
|
118
|
-
slot: "pageSizeSelect",
|
|
119
|
-
shouldForwardProp: () => !0
|
|
120
|
-
})({});
|
|
6
|
+
var i = [
|
|
7
|
+
"waiting",
|
|
8
|
+
"approved",
|
|
9
|
+
"rejected",
|
|
10
|
+
"canceled"
|
|
11
|
+
], a = {
|
|
12
|
+
approved: "success",
|
|
13
|
+
canceled: "secondary",
|
|
14
|
+
rejected: "error",
|
|
15
|
+
waiting: "warning"
|
|
16
|
+
}, o = {
|
|
17
|
+
approved: n,
|
|
18
|
+
canceled: e,
|
|
19
|
+
rejected: r,
|
|
20
|
+
waiting: t
|
|
21
|
+
}, s = "status", c = "created_at", l = "created_by", u = "current_user";
|
|
121
22
|
//#endregion
|
|
122
|
-
export {
|
|
23
|
+
export { i as APPROVAL_REQUEST_STATUSES, o as APPROVAL_REQUEST_STATUS_TO_MUI_ICON_MAP, l as FILTER_TYPE_ADDED_BY, c as FILTER_TYPE_CREATED_AT, u as FILTER_TYPE_CURRENT_USER, s as FILTER_TYPE_STATUS, a as ROW_TO_STATUS_MUI_MAP };
|
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
import e from "@mui/icons-material/Cancel";
|
|
2
|
-
import t from "@mui/icons-material/HourglassEmpty";
|
|
3
|
-
import n from "@mui/icons-material/PaidOutlined";
|
|
4
|
-
import r from "@mui/icons-material/DangerousOutlined";
|
|
5
1
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
], a = {
|
|
12
|
-
approved: "success",
|
|
13
|
-
canceled: "secondary",
|
|
14
|
-
rejected: "error",
|
|
15
|
-
waiting: "warning"
|
|
16
|
-
}, o = {
|
|
17
|
-
approved: n,
|
|
18
|
-
canceled: e,
|
|
19
|
-
rejected: r,
|
|
20
|
-
waiting: t
|
|
21
|
-
}, s = "status", c = "created_at", l = "created_by", u = "current_user";
|
|
2
|
+
function e(...e) {
|
|
3
|
+
let t = "";
|
|
4
|
+
for (let n of e) n && (t += n + " ");
|
|
5
|
+
return t;
|
|
6
|
+
}
|
|
22
7
|
//#endregion
|
|
23
|
-
export {
|
|
8
|
+
export { e as classNames };
|
|
@@ -1,8 +1,37 @@
|
|
|
1
|
+
import { classNames as e } from "./index249.js";
|
|
2
|
+
import { jsx as t, jsxs as n } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { Stack as r } from "@mui/material";
|
|
1
4
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
var i = ({ className: i, searchField: a, children: o, sx: s }) => /* @__PURE__ */ n(r, {
|
|
6
|
+
direction: "row",
|
|
7
|
+
justifyContent: "space-between",
|
|
8
|
+
alignItems: "center",
|
|
9
|
+
className: e("Monite-Filters", i),
|
|
10
|
+
sx: Object.assign({
|
|
11
|
+
"& > *": {
|
|
12
|
+
flexBasis: "fit-content",
|
|
13
|
+
flexGrow: 1
|
|
14
|
+
},
|
|
15
|
+
"& > .Monite-SearchField": {
|
|
16
|
+
maxWidth: "400px",
|
|
17
|
+
width: "100%"
|
|
18
|
+
}
|
|
19
|
+
}, s || {}),
|
|
20
|
+
children: [a, /* @__PURE__ */ t(r, {
|
|
21
|
+
gap: 1,
|
|
22
|
+
direction: "row",
|
|
23
|
+
justifyContent: "flex-end",
|
|
24
|
+
alignItems: "center",
|
|
25
|
+
className: "Monite-Filters-Group",
|
|
26
|
+
sx: {
|
|
27
|
+
ml: 2,
|
|
28
|
+
"& .Monite-FilterControl": {
|
|
29
|
+
maxWidth: "160px",
|
|
30
|
+
width: "100%"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
children: o
|
|
34
|
+
})]
|
|
35
|
+
});
|
|
7
36
|
//#endregion
|
|
8
|
-
export {
|
|
37
|
+
export { i as FilterContainer };
|
|
@@ -1,37 +1,9 @@
|
|
|
1
|
-
import { classNames as e } from "./index250.js";
|
|
2
|
-
import { jsx as t, jsxs as n } from "@emotion/react/jsx-runtime";
|
|
3
|
-
import { Stack as r } from "@mui/material";
|
|
4
1
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
sx: Object.assign({
|
|
11
|
-
"& > *": {
|
|
12
|
-
flexBasis: "fit-content",
|
|
13
|
-
flexGrow: 1
|
|
14
|
-
},
|
|
15
|
-
"& > .Monite-SearchField": {
|
|
16
|
-
maxWidth: "400px",
|
|
17
|
-
width: "100%"
|
|
18
|
-
}
|
|
19
|
-
}, s || {}),
|
|
20
|
-
children: [a, /* @__PURE__ */ t(r, {
|
|
21
|
-
gap: 1,
|
|
22
|
-
direction: "row",
|
|
23
|
-
justifyContent: "flex-end",
|
|
24
|
-
alignItems: "center",
|
|
25
|
-
className: "Monite-Filters-Group",
|
|
26
|
-
sx: {
|
|
27
|
-
ml: 2,
|
|
28
|
-
"& .Monite-FilterControl": {
|
|
29
|
-
maxWidth: "160px",
|
|
30
|
-
width: "100%"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
children: o
|
|
34
|
-
})]
|
|
2
|
+
var e = (e) => ({
|
|
3
|
+
approved: e._("Approved"),
|
|
4
|
+
canceled: e._("Canceled"),
|
|
5
|
+
rejected: e._("Rejected"),
|
|
6
|
+
waiting: e._("In approval")
|
|
35
7
|
});
|
|
36
8
|
//#endregion
|
|
37
|
-
export {
|
|
9
|
+
export { e as getRowToStatusTextMap };
|
|
@@ -1,9 +1,58 @@
|
|
|
1
|
+
import { useMoniteContext as e } from "./index45.js";
|
|
2
|
+
import { useRootElements as t } from "./index47.js";
|
|
3
|
+
import "./index48.js";
|
|
4
|
+
import { classNames as n } from "./index249.js";
|
|
5
|
+
import { useState as r } from "react";
|
|
6
|
+
import { Fragment as i, jsx as a, jsxs as o } from "@emotion/react/jsx-runtime";
|
|
7
|
+
import { Autocomplete as s, CircularProgress as c, TextField as l } from "@mui/material";
|
|
8
|
+
import { useLingui as u } from "@lingui/react";
|
|
1
9
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
10
|
+
var d = ({ onChange: d, className: f }) => {
|
|
11
|
+
let { i18n: p } = u(), { api: m } = e(), { root: h } = t(), [g, _] = r(!1), [v, y] = r(null), [b, x] = r(""), { data: S, isLoading: C, refetch: w } = m.finops.getEntityUsers.useQuery({ query: { name__istartswith: b || void 0 } }, { enabled: g });
|
|
12
|
+
return /* @__PURE__ */ a(s, {
|
|
13
|
+
autoComplete: !0,
|
|
14
|
+
includeInputInList: !0,
|
|
15
|
+
filterSelectedOptions: !0,
|
|
16
|
+
value: v,
|
|
17
|
+
noOptionsText: p._("No users found"),
|
|
18
|
+
slotProps: { popper: { container: h } },
|
|
19
|
+
open: g,
|
|
20
|
+
onOpen: () => {
|
|
21
|
+
_(!0);
|
|
22
|
+
},
|
|
23
|
+
onClose: () => {
|
|
24
|
+
_(!1);
|
|
25
|
+
},
|
|
26
|
+
loading: C,
|
|
27
|
+
options: S?.data || [],
|
|
28
|
+
getOptionLabel: (e) => `${e.first_name ?? ""} ${e.last_name ?? ""}`.trim(),
|
|
29
|
+
isOptionEqualToValue: (e, t) => e.id === t.id,
|
|
30
|
+
filterOptions: (e) => e,
|
|
31
|
+
onInputChange: (e, t) => {
|
|
32
|
+
x(t);
|
|
33
|
+
},
|
|
34
|
+
onChange: (e, t) => {
|
|
35
|
+
y(t), d(t?.id), w();
|
|
36
|
+
},
|
|
37
|
+
className: n("Monite-ApprovalAddedByFilter-Container", "Monite-FilterControl", f),
|
|
38
|
+
sx: { "&.MuiAutocomplete-root": {
|
|
39
|
+
display: "flex",
|
|
40
|
+
alignItems: "center"
|
|
41
|
+
} },
|
|
42
|
+
renderInput: (e) => /* @__PURE__ */ a(l, {
|
|
43
|
+
...e,
|
|
44
|
+
variant: "standard",
|
|
45
|
+
placeholder: p._("Added by"),
|
|
46
|
+
className: "Monite-ApprovalAddedByFilter Monite-FilterControl",
|
|
47
|
+
InputProps: {
|
|
48
|
+
...e.InputProps,
|
|
49
|
+
endAdornment: /* @__PURE__ */ o(i, { children: [C ? /* @__PURE__ */ a(c, {
|
|
50
|
+
color: "inherit",
|
|
51
|
+
size: 20
|
|
52
|
+
}) : null, e.InputProps.endAdornment] })
|
|
53
|
+
}
|
|
54
|
+
})
|
|
55
|
+
});
|
|
56
|
+
};
|
|
8
57
|
//#endregion
|
|
9
|
-
export {
|
|
58
|
+
export { d as AutocompleteCreatedBy };
|
|
@@ -1,58 +1,74 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useRootElements as t } from "./index47.js";
|
|
1
|
+
import { useRootElements as e } from "./index47.js";
|
|
3
2
|
import "./index48.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
3
|
+
import { APPROVAL_REQUEST_STATUSES as t, FILTER_TYPE_ADDED_BY as n, FILTER_TYPE_CURRENT_USER as r, FILTER_TYPE_STATUS as i } from "./index248.js";
|
|
4
|
+
import { FilterContainer as a } from "./index250.js";
|
|
5
|
+
import { getRowToStatusTextMap as o } from "./index251.js";
|
|
6
|
+
import { AutocompleteCreatedBy as s } from "./index252.js";
|
|
7
|
+
import { jsx as c, jsxs as l } from "@emotion/react/jsx-runtime";
|
|
8
|
+
import { FormControl as u, FormControlLabel as d, InputLabel as f, MenuItem as p, Select as m, Switch as h } from "@mui/material";
|
|
9
|
+
import { useLingui as g } from "@lingui/react";
|
|
10
|
+
import { DatePicker as _ } from "@mui/x-date-pickers";
|
|
9
11
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js
|
|
10
|
-
var
|
|
11
|
-
let { i18n:
|
|
12
|
-
return /* @__PURE__ */ a
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
12
|
+
var v = ({ onChangeFilter: v, sx: y }) => {
|
|
13
|
+
let { i18n: b } = g(), { root: x } = e();
|
|
14
|
+
return /* @__PURE__ */ l(a, {
|
|
15
|
+
className: "Monite-ApprovalRequestsFilters",
|
|
16
|
+
sx: y,
|
|
17
|
+
children: [
|
|
18
|
+
/* @__PURE__ */ l(u, {
|
|
19
|
+
variant: "standard",
|
|
20
|
+
fullWidth: !0,
|
|
21
|
+
className: "Monite-ApprovalStatusFilter Monite-FilterControl",
|
|
22
|
+
children: [/* @__PURE__ */ c(f, {
|
|
23
|
+
id: "status",
|
|
24
|
+
children: b._("Status")
|
|
25
|
+
}), /* @__PURE__ */ c(m, {
|
|
26
|
+
labelId: "status",
|
|
27
|
+
label: b._("Status"),
|
|
28
|
+
defaultValue: "all",
|
|
29
|
+
MenuProps: { container: x },
|
|
30
|
+
onChange: (e) => {
|
|
31
|
+
v(i, e && e.target.value);
|
|
32
|
+
},
|
|
33
|
+
children: [{
|
|
34
|
+
label: b._("All invoices"),
|
|
35
|
+
value: "all"
|
|
36
|
+
}, ...Object.values(t).map((e) => ({
|
|
37
|
+
label: o(b)[e],
|
|
38
|
+
value: e
|
|
39
|
+
}))].map(({ label: e, value: t }) => /* @__PURE__ */ c(p, {
|
|
40
|
+
value: t,
|
|
41
|
+
children: e
|
|
42
|
+
}, t))
|
|
43
|
+
})]
|
|
44
|
+
}),
|
|
45
|
+
/* @__PURE__ */ c(s, { onChange: (e) => v(n, e || null) }),
|
|
46
|
+
/* @__PURE__ */ c(_, {
|
|
47
|
+
label: b._("Requested on"),
|
|
48
|
+
className: "Monite-ApprovalRequestedOnFilter Monite-FilterControl Monite-DateFilterControl",
|
|
49
|
+
onChange: (e, t) => {
|
|
50
|
+
t.validationError || v("created_at", e);
|
|
51
|
+
},
|
|
52
|
+
slotProps: {
|
|
53
|
+
textField: { variant: "standard" },
|
|
54
|
+
popper: { container: x },
|
|
55
|
+
dialog: { container: x },
|
|
56
|
+
actionBar: { actions: ["clear", "today"] }
|
|
57
|
+
},
|
|
58
|
+
views: [
|
|
59
|
+
"year",
|
|
60
|
+
"month",
|
|
61
|
+
"day"
|
|
62
|
+
]
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ c(d, {
|
|
65
|
+
control: /* @__PURE__ */ c(h, {}),
|
|
66
|
+
className: "Monite-ApprovalOnlyMyFilter Monite-FilterControl",
|
|
67
|
+
label: b._("Only my approvals"),
|
|
68
|
+
onChange: (e, t) => v(r, t)
|
|
69
|
+
})
|
|
70
|
+
]
|
|
55
71
|
});
|
|
56
72
|
};
|
|
57
73
|
//#endregion
|
|
58
|
-
export {
|
|
74
|
+
export { v as ApprovalRequestsFilter };
|
|
@@ -1,74 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "./
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { jsx as c, jsxs as l } from "@emotion/react/jsx-runtime";
|
|
8
|
-
import { FormControl as u, FormControlLabel as d, InputLabel as f, MenuItem as p, Select as m, Switch as h } from "@mui/material";
|
|
9
|
-
import { useLingui as g } from "@lingui/react";
|
|
10
|
-
import { DatePicker as _ } from "@mui/x-date-pickers";
|
|
1
|
+
import { APPROVAL_REQUEST_STATUS_TO_MUI_ICON_MAP as e, ROW_TO_STATUS_MUI_MAP as t } from "./index248.js";
|
|
2
|
+
import { getRowToStatusTextMap as n } from "./index251.js";
|
|
3
|
+
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
4
|
+
import { Chip as i } from "@mui/material";
|
|
5
|
+
import { useLingui as a } from "@lingui/react";
|
|
6
|
+
import { styled as o, useThemeProps as s } from "@mui/material/styles";
|
|
11
7
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js
|
|
12
|
-
var
|
|
13
|
-
let {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}), /* @__PURE__ */ c(m, {
|
|
26
|
-
labelId: "status",
|
|
27
|
-
label: b._("Status"),
|
|
28
|
-
defaultValue: "all",
|
|
29
|
-
MenuProps: { container: x },
|
|
30
|
-
onChange: (e) => {
|
|
31
|
-
v(i, e && e.target.value);
|
|
32
|
-
},
|
|
33
|
-
children: [{
|
|
34
|
-
label: b._("All invoices"),
|
|
35
|
-
value: "all"
|
|
36
|
-
}, ...Object.values(t).map((e) => ({
|
|
37
|
-
label: o(b)[e],
|
|
38
|
-
value: e
|
|
39
|
-
}))].map(({ label: e, value: t }) => /* @__PURE__ */ c(p, {
|
|
40
|
-
value: t,
|
|
41
|
-
children: e
|
|
42
|
-
}, t))
|
|
43
|
-
})]
|
|
44
|
-
}),
|
|
45
|
-
/* @__PURE__ */ c(s, { onChange: (e) => v(n, e || null) }),
|
|
46
|
-
/* @__PURE__ */ c(_, {
|
|
47
|
-
label: b._("Requested on"),
|
|
48
|
-
className: "Monite-ApprovalRequestedOnFilter Monite-FilterControl Monite-DateFilterControl",
|
|
49
|
-
onChange: (e, t) => {
|
|
50
|
-
t.validationError || v("created_at", e);
|
|
51
|
-
},
|
|
52
|
-
slotProps: {
|
|
53
|
-
textField: { variant: "standard" },
|
|
54
|
-
popper: { container: x },
|
|
55
|
-
dialog: { container: x },
|
|
56
|
-
actionBar: { actions: ["clear", "today"] }
|
|
57
|
-
},
|
|
58
|
-
views: [
|
|
59
|
-
"year",
|
|
60
|
-
"month",
|
|
61
|
-
"day"
|
|
62
|
-
]
|
|
63
|
-
}),
|
|
64
|
-
/* @__PURE__ */ c(d, {
|
|
65
|
-
control: /* @__PURE__ */ c(h, {}),
|
|
66
|
-
className: "Monite-ApprovalOnlyMyFilter Monite-FilterControl",
|
|
67
|
-
label: b._("Only my approvals"),
|
|
68
|
-
onChange: (e, t) => v(r, t)
|
|
69
|
-
})
|
|
70
|
-
]
|
|
8
|
+
var c = ({ ref: i, ...o }) => {
|
|
9
|
+
let { status: c, icon: u, size: d, variant: f } = s({
|
|
10
|
+
props: o,
|
|
11
|
+
name: "MoniteApprovalRequestStatusChip"
|
|
12
|
+
}), { i18n: p } = a(), m = e[c];
|
|
13
|
+
return /* @__PURE__ */ r(l, {
|
|
14
|
+
ref: i,
|
|
15
|
+
color: t[c],
|
|
16
|
+
icon: u && m ? /* @__PURE__ */ r(m, { fontSize: "small" }) : void 0,
|
|
17
|
+
label: n(p)[c],
|
|
18
|
+
size: d,
|
|
19
|
+
status: c,
|
|
20
|
+
variant: f ?? "filled"
|
|
71
21
|
});
|
|
72
|
-
}
|
|
22
|
+
}, l = o(i, {
|
|
23
|
+
name: "MoniteApprovalRequestStatusChip",
|
|
24
|
+
slot: "root",
|
|
25
|
+
shouldForwardProp: () => !0
|
|
26
|
+
})({});
|
|
73
27
|
//#endregion
|
|
74
|
-
export {
|
|
28
|
+
export { c as ApprovalRequestStatusChip };
|
|
@@ -1,28 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { getRowToStatusTextMap as n } from "./index252.js";
|
|
3
|
-
import { jsx as r } from "@emotion/react/jsx-runtime";
|
|
4
|
-
import { Chip as i } from "@mui/material";
|
|
5
|
-
import { useLingui as a } from "@lingui/react";
|
|
6
|
-
import { styled as o, useThemeProps as s } from "@mui/material/styles";
|
|
7
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js
|
|
8
|
-
var c = ({ ref: i, ...o }) => {
|
|
9
|
-
let { status: c, icon: u, size: d, variant: f } = s({
|
|
10
|
-
props: o,
|
|
11
|
-
name: "MoniteApprovalRequestStatusChip"
|
|
12
|
-
}), { i18n: p } = a(), m = e[c];
|
|
13
|
-
return /* @__PURE__ */ r(l, {
|
|
14
|
-
ref: i,
|
|
15
|
-
color: t[c],
|
|
16
|
-
icon: u && m ? /* @__PURE__ */ r(m, { fontSize: "small" }) : void 0,
|
|
17
|
-
label: n(p)[c],
|
|
18
|
-
size: d,
|
|
19
|
-
status: c,
|
|
20
|
-
variant: f ?? "filled"
|
|
21
|
-
});
|
|
22
|
-
}, l = o(i, {
|
|
23
|
-
name: "MoniteApprovalRequestStatusChip",
|
|
24
|
-
slot: "root",
|
|
25
|
-
shouldForwardProp: () => !0
|
|
26
|
-
})({});
|
|
27
|
-
//#endregion
|
|
28
|
-
export { c as ApprovalRequestStatusChip };
|
|
1
|
+
import "./index254.js";
|
|
@@ -1 +1,61 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import { useEntityUserByAuthToken as e } from "./index139.js";
|
|
2
|
+
import "./index148.js";
|
|
3
|
+
import { useState as t } from "react";
|
|
4
|
+
import { jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
|
|
5
|
+
import { IconButton as i, Stack as a } from "@mui/material";
|
|
6
|
+
import { useLingui as o } from "@lingui/react";
|
|
7
|
+
import s from "@mui/icons-material/CheckCircleOutlineRounded";
|
|
8
|
+
import c from "@mui/icons-material/HighlightOffRounded";
|
|
9
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js
|
|
10
|
+
var l = ({ id: e, onClick: r }) => {
|
|
11
|
+
let { i18n: a } = o(), [c, l] = t(!1);
|
|
12
|
+
return /* @__PURE__ */ n(i, {
|
|
13
|
+
"aria-label": a._("Approve request"),
|
|
14
|
+
color: "success",
|
|
15
|
+
disabled: c,
|
|
16
|
+
onClick: (t) => {
|
|
17
|
+
t.preventDefault(), l(!0), r({
|
|
18
|
+
id: e,
|
|
19
|
+
action: "approve"
|
|
20
|
+
})?.finally(() => l(!1));
|
|
21
|
+
},
|
|
22
|
+
children: /* @__PURE__ */ n(s, {})
|
|
23
|
+
});
|
|
24
|
+
}, u = ({ id: e, onClick: r }) => {
|
|
25
|
+
let { i18n: a } = o(), [s, l] = t(!1);
|
|
26
|
+
return /* @__PURE__ */ n(i, {
|
|
27
|
+
"aria-label": a._("Reject request"),
|
|
28
|
+
color: "error",
|
|
29
|
+
disabled: s,
|
|
30
|
+
onClick: (t) => {
|
|
31
|
+
t.preventDefault(), l(!0), r({
|
|
32
|
+
id: e,
|
|
33
|
+
action: "reject"
|
|
34
|
+
})?.finally(() => l(!1));
|
|
35
|
+
},
|
|
36
|
+
children: /* @__PURE__ */ n(c, {})
|
|
37
|
+
});
|
|
38
|
+
}, d = (t) => {
|
|
39
|
+
let { i18n: i } = o(), { data: s } = e();
|
|
40
|
+
if ("onRowActionClick" in t && t.onRowActionClick) return {
|
|
41
|
+
field: "actions",
|
|
42
|
+
headerName: i._("Actions"),
|
|
43
|
+
sortable: !1,
|
|
44
|
+
display: "flex",
|
|
45
|
+
align: "right",
|
|
46
|
+
renderCell: (e) => {
|
|
47
|
+
if (e.row.status === "waiting" && s?.id && e.row.user_ids.includes(s.id) && !e.row.approved_by?.includes(s.id)) return /* @__PURE__ */ r(a, {
|
|
48
|
+
direction: "row",
|
|
49
|
+
children: [/* @__PURE__ */ n(l, {
|
|
50
|
+
id: e.row.id,
|
|
51
|
+
onClick: t.onRowActionClick
|
|
52
|
+
}), /* @__PURE__ */ n(u, {
|
|
53
|
+
id: e.row.id,
|
|
54
|
+
onClick: t.onRowActionClick
|
|
55
|
+
})]
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
//#endregion
|
|
61
|
+
export { d as useApprovalRequestActionsCell };
|