@tesouro/embedded-components-react 0.7.29 → 0.7.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/monite-sdk.d.ts +0 -1
- package/dist/lib/monite-sdk.js +40 -40
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index.js +41 -41
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index204.js +55 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index205.js +2 -55
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index206.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index207.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index208.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index209.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index210.js +53 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index211.js +36 -51
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index212.js +71 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index213.js +6 -73
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index214.js +2 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index215.js +79 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index216.js +1 -79
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index217.js +58 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index218.js +42 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index219.js +1 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index220.js +568 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index221.js +0 -577
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index222.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index223.js +160 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index224.js +0 -159
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index225.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index226.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index227.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index228.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index229.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index230.js +16 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index231.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index232.js +27 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index233.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index234.js +93 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index235.js +10 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index236.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index237.js +18 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index238.js +73 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index239.js +1 -77
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index240.js +127 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index241.js +0 -127
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index242.js +13 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index243.js +54 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index244.js +5 -56
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index245.js +1 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index246.js +64 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index247.js +120 -62
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index248.js +21 -120
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index249.js +6 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index250.js +35 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index251.js +6 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index252.js +56 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index253.js +69 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index254.js +25 -71
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index255.js +1 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index256.js +61 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index257.js +17 -57
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index258.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index259.js +181 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index260.js +1 -185
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index261.js +31 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index262.js +2 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index263.js +64 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index264.js +31 -61
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index265.js +6 -28
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index266.js +29 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index267.js +42 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index268.js +11 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index269.js +15 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index270.js +4 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index271.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index272.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index273.js +12 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index274.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index275.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index276.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index277.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index278.js +32 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index279.js +8 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index280.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index281.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index282.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index283.js +20 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index284.js +7 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index285.js +111 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index286.js +62 -110
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index287.js +1 -66
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index288.js +199 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index289.js +0 -199
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index290.js +11 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index291.js +38 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index292.js +6 -38
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index293.js +9 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index294.js +13 -6
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index295.js +7 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index296.js +5 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index297.js +359 -5
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index298.js +1 -412
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index299.js +22 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index300.js +91 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index301.js +18 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index302.js +7 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index303.js +2 -18
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index304.js +182 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index305.js +96 -178
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index306.js +1 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index307.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js +55 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js +44 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js +1 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js +21 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js +1 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js +161 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js +0 -161
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js +12 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js +61 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index317.js +44 -60
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index318.js +48 -44
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index319.js +82 -48
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index320.js +7 -83
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index321.js +305 -7
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index322.js +1 -307
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index323.js +32 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js +1 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js +29 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js +1 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index327.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js +160 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js +0 -160
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js +37 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js +33 -34
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js +3 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index333.js +102 -3
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index334.js +172 -88
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index335.js +116 -171
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index336.js +191 -114
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index337.js +11 -209
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index338.js +15 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index339.js +28 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index340.js +1 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index341.js +241 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index342.js +0 -241
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index343.js +36 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index344.js +138 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index345.js +1 -142
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index346.js +166 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index347.js +25 -166
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index348.js +19 -26
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index349.js +17 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index350.js +5 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index351.js +14 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index352.js +18 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index353.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index354.js +5 -21
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index355.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index356.js +14 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index357.js +9 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index358.js +26 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index359.js +11 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index360.js +8 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index361.js +24 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index362.js +14 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index363.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index364.js +100 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index365.js +42 -98
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index366.js +27 -43
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index367.js +1 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index368.js +105 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index369.js +35 -102
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index370.js +166 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index371.js +202 -163
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index372.js +87 -207
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index373.js +17 -90
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index374.js +158 -17
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index375.js +87 -143
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index376.js +42 -100
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index377.js +4 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index378.js +24 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index379.js +73 -20
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index380.js +16 -74
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index381.js +19 -16
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +5 -19
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index383.js +8 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index384.js +11 -10
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index385.js +131 -11
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index386.js +4 -129
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index387.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index388.js +5 -8
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index389.js +221 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index390.js +31 -219
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index391.js +11 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index392.js +34 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index393.js +180 -32
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +14 -182
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index395.js +204 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index396.js +88 -192
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index397.js +61 -97
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index398.js +54 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index399.js +83 -46
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index400.js +40 -91
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index401.js +75 -39
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index402.js +71 -63
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index403.js +12 -85
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index404.js +24 -12
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index405.js +16 -25
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index406.js +2 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index407.js +23 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index408.js +0 -23
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index409.js +52 -0
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index410.js +32 -53
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index411.js +2 -30
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index412.js +34 -2
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index413.js +15 -33
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index414.js +29 -14
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index415.js +27 -29
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index416.js +2 -31
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index417.js +97 -2
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index418.js +0 -97
|
@@ -1 +1,55 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import { useState as e } from "react";
|
|
2
|
+
import { Fragment as t, jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { IconButton as i, ListItemText as a, Menu as o, MenuItem as s } from "@mui/material";
|
|
4
|
+
import c from "@mui/icons-material/MoreVert";
|
|
5
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index308.js
|
|
6
|
+
var l = ({ id: l = "dropdown-menu-button", items: u, iconButtonProps: d, menuProps: f }) => {
|
|
7
|
+
let [p, m] = e(null), h = !!p, g = (e) => {
|
|
8
|
+
m(e.currentTarget);
|
|
9
|
+
}, _ = () => {
|
|
10
|
+
m(null);
|
|
11
|
+
};
|
|
12
|
+
return /* @__PURE__ */ r(t, { children: [/* @__PURE__ */ n(i, {
|
|
13
|
+
id: l,
|
|
14
|
+
onClick: g,
|
|
15
|
+
sx: {
|
|
16
|
+
border: "1px solid",
|
|
17
|
+
borderColor: "divider",
|
|
18
|
+
borderRadius: 1,
|
|
19
|
+
width: 40,
|
|
20
|
+
height: 40
|
|
21
|
+
},
|
|
22
|
+
"aria-expanded": h,
|
|
23
|
+
"aria-haspopup": "true",
|
|
24
|
+
...d,
|
|
25
|
+
children: /* @__PURE__ */ n(c, {})
|
|
26
|
+
}), /* @__PURE__ */ n(o, {
|
|
27
|
+
anchorEl: p,
|
|
28
|
+
open: h,
|
|
29
|
+
onClose: _,
|
|
30
|
+
container: () => document.body,
|
|
31
|
+
anchorOrigin: {
|
|
32
|
+
vertical: "bottom",
|
|
33
|
+
horizontal: "right"
|
|
34
|
+
},
|
|
35
|
+
transformOrigin: {
|
|
36
|
+
vertical: "top",
|
|
37
|
+
horizontal: "right"
|
|
38
|
+
},
|
|
39
|
+
MenuListProps: {
|
|
40
|
+
"aria-labelledby": l,
|
|
41
|
+
role: "menu"
|
|
42
|
+
},
|
|
43
|
+
...f,
|
|
44
|
+
children: u.map(({ key: e, label: t, onClick: r, sx: i }) => /* @__PURE__ */ n(s, {
|
|
45
|
+
id: e,
|
|
46
|
+
onClick: (e) => {
|
|
47
|
+
_(), r?.(e);
|
|
48
|
+
},
|
|
49
|
+
sx: i,
|
|
50
|
+
children: /* @__PURE__ */ n(a, { primary: t })
|
|
51
|
+
}, e))
|
|
52
|
+
})] });
|
|
53
|
+
};
|
|
54
|
+
//#endregion
|
|
55
|
+
export { l as DropdownMenu };
|
|
@@ -1,55 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { useDialog as e } from "./index122.js";
|
|
2
|
+
import "./index123.js";
|
|
3
|
+
import { IconWrapper as t } from "./index126.js";
|
|
4
|
+
import "./index127.js";
|
|
5
|
+
import { jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { DialogTitle as i, Stack as a, Toolbar as o, styled as s } from "@mui/material";
|
|
7
|
+
import { useLingui as c } from "@lingui/react";
|
|
8
|
+
import l from "@mui/icons-material/Close";
|
|
5
9
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index309.js
|
|
6
|
-
var
|
|
7
|
-
let
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
role: "menu"
|
|
42
|
-
},
|
|
43
|
-
...f,
|
|
44
|
-
children: u.map(({ key: e, label: t, onClick: r, sx: i }) => /* @__PURE__ */ n(s, {
|
|
45
|
-
id: e,
|
|
46
|
-
onClick: (e) => {
|
|
47
|
-
_(), r?.(e);
|
|
48
|
-
},
|
|
49
|
-
sx: i,
|
|
50
|
-
children: /* @__PURE__ */ n(a, { primary: t })
|
|
51
|
-
}, e))
|
|
52
|
-
})] });
|
|
53
|
-
};
|
|
10
|
+
var u = ({ title: i, statusElement: o, actions: s, className: u, closeButtonTooltip: p }) => {
|
|
11
|
+
let { i18n: m } = c(), h = e();
|
|
12
|
+
return /* @__PURE__ */ r(d, {
|
|
13
|
+
className: u,
|
|
14
|
+
disableGutters: !0,
|
|
15
|
+
children: [
|
|
16
|
+
h?.isDialogContent && /* @__PURE__ */ n(t, {
|
|
17
|
+
color: "inherit",
|
|
18
|
+
onClick: h.onClose,
|
|
19
|
+
ariaLabelOverride: p || m._("Close modal"),
|
|
20
|
+
tooltip: p || m._("Close modal"),
|
|
21
|
+
children: /* @__PURE__ */ n(l, {})
|
|
22
|
+
}),
|
|
23
|
+
/* @__PURE__ */ r(a, {
|
|
24
|
+
direction: "row",
|
|
25
|
+
spacing: 2,
|
|
26
|
+
alignItems: "center",
|
|
27
|
+
ml: 2,
|
|
28
|
+
children: [/* @__PURE__ */ n(f, { children: i }), o]
|
|
29
|
+
}),
|
|
30
|
+
s && /* @__PURE__ */ n(a, {
|
|
31
|
+
direction: "row",
|
|
32
|
+
spacing: 2,
|
|
33
|
+
ml: "auto",
|
|
34
|
+
children: s
|
|
35
|
+
})
|
|
36
|
+
]
|
|
37
|
+
});
|
|
38
|
+
}, d = s(o)(() => ({
|
|
39
|
+
padding: "24px 32px",
|
|
40
|
+
flexShrink: 0
|
|
41
|
+
})), f = s(i)(({ theme: e }) => ({ "&.MuiDialogTitle-root.MuiTypography-root": {
|
|
42
|
+
...e.typography.h3,
|
|
43
|
+
padding: "0"
|
|
44
|
+
} }));
|
|
54
45
|
//#endregion
|
|
55
|
-
export {
|
|
46
|
+
export { u as FullScreenModalHeader };
|
|
@@ -1,46 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "./index123.js";
|
|
3
|
-
import { IconWrapper as t } from "./index126.js";
|
|
4
|
-
import "./index127.js";
|
|
5
|
-
import { jsx as n, jsxs as r } from "@emotion/react/jsx-runtime";
|
|
6
|
-
import { DialogTitle as i, Stack as a, Toolbar as o, styled as s } from "@mui/material";
|
|
7
|
-
import { useLingui as c } from "@lingui/react";
|
|
8
|
-
import l from "@mui/icons-material/Close";
|
|
9
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index310.js
|
|
10
|
-
var u = ({ title: i, statusElement: o, actions: s, className: u, closeButtonTooltip: p }) => {
|
|
11
|
-
let { i18n: m } = c(), h = e();
|
|
12
|
-
return /* @__PURE__ */ r(d, {
|
|
13
|
-
className: u,
|
|
14
|
-
disableGutters: !0,
|
|
15
|
-
children: [
|
|
16
|
-
h?.isDialogContent && /* @__PURE__ */ n(t, {
|
|
17
|
-
color: "inherit",
|
|
18
|
-
onClick: h.onClose,
|
|
19
|
-
ariaLabelOverride: p || m._("Close modal"),
|
|
20
|
-
tooltip: p || m._("Close modal"),
|
|
21
|
-
children: /* @__PURE__ */ n(l, {})
|
|
22
|
-
}),
|
|
23
|
-
/* @__PURE__ */ r(a, {
|
|
24
|
-
direction: "row",
|
|
25
|
-
spacing: 2,
|
|
26
|
-
alignItems: "center",
|
|
27
|
-
ml: 2,
|
|
28
|
-
children: [/* @__PURE__ */ n(f, { children: i }), o]
|
|
29
|
-
}),
|
|
30
|
-
s && /* @__PURE__ */ n(a, {
|
|
31
|
-
direction: "row",
|
|
32
|
-
spacing: 2,
|
|
33
|
-
ml: "auto",
|
|
34
|
-
children: s
|
|
35
|
-
})
|
|
36
|
-
]
|
|
37
|
-
});
|
|
38
|
-
}, d = s(o)(() => ({
|
|
39
|
-
padding: "24px 32px",
|
|
40
|
-
flexShrink: 0
|
|
41
|
-
})), f = s(i)(({ theme: e }) => ({ "&.MuiDialogTitle-root.MuiTypography-root": {
|
|
42
|
-
...e.typography.h3,
|
|
43
|
-
padding: "0"
|
|
44
|
-
} }));
|
|
45
|
-
//#endregion
|
|
46
|
-
export { u as FullScreenModalHeader };
|
|
1
|
+
import "./index309.js";
|
|
@@ -1 +1,21 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import { ConfirmationModal as e } from "./index59.js";
|
|
2
|
+
import "./index60.js";
|
|
3
|
+
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
4
|
+
import { useLingui as n } from "@lingui/react";
|
|
5
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index311.js
|
|
6
|
+
var r = ({ isOpen: r, handleCloseModal: i, handleConfirmation: a }) => {
|
|
7
|
+
let { i18n: o } = n();
|
|
8
|
+
return /* @__PURE__ */ t(e, {
|
|
9
|
+
open: r,
|
|
10
|
+
title: o._("Cancel bill?"),
|
|
11
|
+
message: o._("The bill will receive the “Canceled” status and will require no payment. You can’t undo this action."),
|
|
12
|
+
confirmLabel: o._("Cancel bill"),
|
|
13
|
+
cancelLabel: o._("Close"),
|
|
14
|
+
onClose: i,
|
|
15
|
+
onConfirm: () => {
|
|
16
|
+
i(), a();
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { r as PayableDetailsCancelModal };
|
|
@@ -1,21 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "./index60.js";
|
|
3
|
-
import { jsx as t } from "@emotion/react/jsx-runtime";
|
|
4
|
-
import { useLingui as n } from "@lingui/react";
|
|
5
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index312.js
|
|
6
|
-
var r = ({ isOpen: r, handleCloseModal: i, handleConfirmation: a }) => {
|
|
7
|
-
let { i18n: o } = n();
|
|
8
|
-
return /* @__PURE__ */ t(e, {
|
|
9
|
-
open: r,
|
|
10
|
-
title: o._("Cancel bill?"),
|
|
11
|
-
message: o._("The bill will receive the “Canceled” status and will require no payment. You can’t undo this action."),
|
|
12
|
-
confirmLabel: o._("Cancel bill"),
|
|
13
|
-
cancelLabel: o._("Close"),
|
|
14
|
-
onClose: i,
|
|
15
|
-
onConfirm: () => {
|
|
16
|
-
i(), a();
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
//#endregion
|
|
21
|
-
export { r as PayableDetailsCancelModal };
|
|
1
|
+
import "./index311.js";
|
|
@@ -1 +1,162 @@
|
|
|
1
|
+
import { useCounterpartById as e } from "./index46.js";
|
|
2
|
+
import { getCounterpartName as t } from "./index53.js";
|
|
3
|
+
import { isBillOverdue as n } from "./index117.js";
|
|
4
|
+
import { PayableStatusChip as r } from "./index118.js";
|
|
5
|
+
import "./index148.js";
|
|
6
|
+
import { isPayableInOCRProcessing as i } from "./index303.js";
|
|
7
|
+
import "./index307.js";
|
|
8
|
+
import { DropdownMenu as a } from "./index308.js";
|
|
9
|
+
import { FullScreenModalHeader as o } from "./index309.js";
|
|
10
|
+
import "./index310.js";
|
|
11
|
+
import { PayableDetailsCancelModal as s } from "./index311.js";
|
|
1
12
|
import "./index312.js";
|
|
13
|
+
import { useState as c } from "react";
|
|
14
|
+
import { Wallet as l } from "lucide-react";
|
|
15
|
+
import { Fragment as u, jsx as d, jsxs as f } from "@emotion/react/jsx-runtime";
|
|
16
|
+
import { Box as p, Button as m } from "@mui/material";
|
|
17
|
+
import { useLingui as h } from "@lingui/react";
|
|
18
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index313.js
|
|
19
|
+
var g = ({ payable: g, permissions: _, setEdit: v, isEdit: y, submitInvoice: b, rejectInvoice: x, approveInvoice: S, forceRejectInvoice: C, forceApproveInvoice: w, cancelInvoice: T, reopenInvoice: E, deleteInvoice: D, payInvoice: O, payableDetailsFormId: k, onClose: A, modalComponent: j, showPayButton: M }) => {
|
|
20
|
+
let { i18n: N } = h(), { data: P } = e(g?.counterpart_id), [F, I] = c(!1), L = t(P), R = n(g?.status ?? "draft", g?.due_date), z = {
|
|
21
|
+
edit: {
|
|
22
|
+
variant: "outlined",
|
|
23
|
+
onClick: () => v(!0),
|
|
24
|
+
children: N._("Edit")
|
|
25
|
+
},
|
|
26
|
+
save: {
|
|
27
|
+
variant: "contained",
|
|
28
|
+
form: k,
|
|
29
|
+
type: "submit",
|
|
30
|
+
children: N._("Save")
|
|
31
|
+
},
|
|
32
|
+
cancelEdit: {
|
|
33
|
+
variant: "outlined",
|
|
34
|
+
onClick: () => {
|
|
35
|
+
v(!1), !g && A && A();
|
|
36
|
+
},
|
|
37
|
+
children: N._("Cancel")
|
|
38
|
+
},
|
|
39
|
+
submit: {
|
|
40
|
+
variant: "contained",
|
|
41
|
+
onClick: () => b(),
|
|
42
|
+
children: N._("Submit")
|
|
43
|
+
},
|
|
44
|
+
reject: {
|
|
45
|
+
variant: "text",
|
|
46
|
+
color: "error",
|
|
47
|
+
onClick: () => x(),
|
|
48
|
+
children: N._("Reject")
|
|
49
|
+
},
|
|
50
|
+
reopen: {
|
|
51
|
+
variant: "text",
|
|
52
|
+
color: "error",
|
|
53
|
+
onClick: () => E(),
|
|
54
|
+
children: N._("Reopen")
|
|
55
|
+
},
|
|
56
|
+
approve: {
|
|
57
|
+
variant: "contained",
|
|
58
|
+
onClick: () => S(),
|
|
59
|
+
children: N._("Approve")
|
|
60
|
+
},
|
|
61
|
+
cancel: {
|
|
62
|
+
variant: "text",
|
|
63
|
+
color: "error",
|
|
64
|
+
onClick: () => I(!0),
|
|
65
|
+
children: N._("Cancel bill")
|
|
66
|
+
},
|
|
67
|
+
delete: {
|
|
68
|
+
variant: "text",
|
|
69
|
+
color: "error",
|
|
70
|
+
onClick: () => {
|
|
71
|
+
D(), A?.();
|
|
72
|
+
},
|
|
73
|
+
children: N._("Delete bill")
|
|
74
|
+
},
|
|
75
|
+
pay: {
|
|
76
|
+
variant: "contained",
|
|
77
|
+
size: "small",
|
|
78
|
+
onClick: () => O(),
|
|
79
|
+
disabled: !M,
|
|
80
|
+
startIcon: /* @__PURE__ */ d(l, { size: 14 }),
|
|
81
|
+
children: N._("Pay")
|
|
82
|
+
},
|
|
83
|
+
forceApprove: {
|
|
84
|
+
variant: "outlined",
|
|
85
|
+
onClick: () => w(),
|
|
86
|
+
children: N._("Force Approve")
|
|
87
|
+
},
|
|
88
|
+
forceReject: {
|
|
89
|
+
variant: "outlined",
|
|
90
|
+
color: "error",
|
|
91
|
+
onClick: () => C(),
|
|
92
|
+
children: N._("Force Reject")
|
|
93
|
+
}
|
|
94
|
+
}, B = _.includes("cancel"), V = g?.document_id ? L ? `${N._("Bill")} #${g.document_id} ${N._("from")} ${L}` : y ? `${N._("Edit bill")} #${g.document_id}` : `${N._("Bill")} #${g.document_id}` : N._("New incoming invoice"), H = null;
|
|
95
|
+
if (!g || !i(g)) {
|
|
96
|
+
let e = _.filter((e) => e === "approve" || e === "reject"), t = _.filter((e) => e === "forceApprove" || e === "forceReject"), n = ["forceApprove", "forceReject"].filter((e) => t.includes(e)), r = n.map((e) => {
|
|
97
|
+
let { children: t, onClick: n } = z[e];
|
|
98
|
+
return {
|
|
99
|
+
key: e,
|
|
100
|
+
label: t,
|
|
101
|
+
onClick: n,
|
|
102
|
+
sx: { color: e === "forceReject" ? "error.main" : "text.primary" }
|
|
103
|
+
};
|
|
104
|
+
}), i = _.filter((e) => ![
|
|
105
|
+
"approve",
|
|
106
|
+
"reject",
|
|
107
|
+
"forceApprove",
|
|
108
|
+
"forceReject"
|
|
109
|
+
].includes(e));
|
|
110
|
+
H = /* @__PURE__ */ f(p, {
|
|
111
|
+
sx: {
|
|
112
|
+
display: "flex",
|
|
113
|
+
alignItems: "center",
|
|
114
|
+
gap: 1
|
|
115
|
+
},
|
|
116
|
+
children: [
|
|
117
|
+
i.map((e) => {
|
|
118
|
+
let { children: t, ...n } = z[e];
|
|
119
|
+
return /* @__PURE__ */ d(m, {
|
|
120
|
+
...n,
|
|
121
|
+
children: t
|
|
122
|
+
}, e);
|
|
123
|
+
}),
|
|
124
|
+
e.length > 0 && e.map((e) => {
|
|
125
|
+
let { children: t, ...n } = z[e];
|
|
126
|
+
return /* @__PURE__ */ d(m, {
|
|
127
|
+
...n,
|
|
128
|
+
children: t
|
|
129
|
+
}, e);
|
|
130
|
+
}),
|
|
131
|
+
n.length > 0 && /* @__PURE__ */ d(a, { items: r })
|
|
132
|
+
]
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
return /* @__PURE__ */ f(u, { children: [
|
|
136
|
+
/* @__PURE__ */ d(o, {
|
|
137
|
+
className: "Monite-PayableDetails-Header",
|
|
138
|
+
title: V,
|
|
139
|
+
statusElement: /* @__PURE__ */ f("div", {
|
|
140
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
141
|
+
children: [/* @__PURE__ */ d(r, {
|
|
142
|
+
status: g?.status ?? "draft",
|
|
143
|
+
dueDate: g?.due_date
|
|
144
|
+
}), R && /* @__PURE__ */ d(r, {
|
|
145
|
+
status: g?.status ?? "draft",
|
|
146
|
+
dueDate: g?.due_date,
|
|
147
|
+
showOverdueBadge: !0
|
|
148
|
+
})]
|
|
149
|
+
}),
|
|
150
|
+
actions: H,
|
|
151
|
+
closeButtonTooltip: N._("Close payable details")
|
|
152
|
+
}),
|
|
153
|
+
j,
|
|
154
|
+
B && /* @__PURE__ */ d(s, {
|
|
155
|
+
isOpen: F,
|
|
156
|
+
handleCloseModal: () => I(!1),
|
|
157
|
+
handleConfirmation: T
|
|
158
|
+
})
|
|
159
|
+
] });
|
|
160
|
+
};
|
|
161
|
+
//#endregion
|
|
162
|
+
export { g as PayableDetailsHeader };
|
|
@@ -1,162 +1 @@
|
|
|
1
|
-
import { useCounterpartById as e } from "./index46.js";
|
|
2
|
-
import { getCounterpartName as t } from "./index53.js";
|
|
3
|
-
import { isBillOverdue as n } from "./index117.js";
|
|
4
|
-
import { PayableStatusChip as r } from "./index118.js";
|
|
5
|
-
import "./index148.js";
|
|
6
|
-
import { isPayableInOCRProcessing as i } from "./index304.js";
|
|
7
|
-
import "./index308.js";
|
|
8
|
-
import { DropdownMenu as a } from "./index309.js";
|
|
9
|
-
import { FullScreenModalHeader as o } from "./index310.js";
|
|
10
|
-
import "./index311.js";
|
|
11
|
-
import { PayableDetailsCancelModal as s } from "./index312.js";
|
|
12
1
|
import "./index313.js";
|
|
13
|
-
import { useState as c } from "react";
|
|
14
|
-
import { Wallet as l } from "lucide-react";
|
|
15
|
-
import { Fragment as u, jsx as d, jsxs as f } from "@emotion/react/jsx-runtime";
|
|
16
|
-
import { Box as p, Button as m } from "@mui/material";
|
|
17
|
-
import { useLingui as h } from "@lingui/react";
|
|
18
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index314.js
|
|
19
|
-
var g = ({ payable: g, permissions: _, setEdit: v, isEdit: y, submitInvoice: b, rejectInvoice: x, approveInvoice: S, forceRejectInvoice: C, forceApproveInvoice: w, cancelInvoice: T, reopenInvoice: E, deleteInvoice: D, payInvoice: O, payableDetailsFormId: k, onClose: A, modalComponent: j, showPayButton: M }) => {
|
|
20
|
-
let { i18n: N } = h(), { data: P } = e(g?.counterpart_id), [F, I] = c(!1), L = t(P), R = n(g?.status ?? "draft", g?.due_date), z = {
|
|
21
|
-
edit: {
|
|
22
|
-
variant: "outlined",
|
|
23
|
-
onClick: () => v(!0),
|
|
24
|
-
children: N._("Edit")
|
|
25
|
-
},
|
|
26
|
-
save: {
|
|
27
|
-
variant: "contained",
|
|
28
|
-
form: k,
|
|
29
|
-
type: "submit",
|
|
30
|
-
children: N._("Save")
|
|
31
|
-
},
|
|
32
|
-
cancelEdit: {
|
|
33
|
-
variant: "outlined",
|
|
34
|
-
onClick: () => {
|
|
35
|
-
v(!1), !g && A && A();
|
|
36
|
-
},
|
|
37
|
-
children: N._("Cancel")
|
|
38
|
-
},
|
|
39
|
-
submit: {
|
|
40
|
-
variant: "contained",
|
|
41
|
-
onClick: () => b(),
|
|
42
|
-
children: N._("Submit")
|
|
43
|
-
},
|
|
44
|
-
reject: {
|
|
45
|
-
variant: "text",
|
|
46
|
-
color: "error",
|
|
47
|
-
onClick: () => x(),
|
|
48
|
-
children: N._("Reject")
|
|
49
|
-
},
|
|
50
|
-
reopen: {
|
|
51
|
-
variant: "text",
|
|
52
|
-
color: "error",
|
|
53
|
-
onClick: () => E(),
|
|
54
|
-
children: N._("Reopen")
|
|
55
|
-
},
|
|
56
|
-
approve: {
|
|
57
|
-
variant: "contained",
|
|
58
|
-
onClick: () => S(),
|
|
59
|
-
children: N._("Approve")
|
|
60
|
-
},
|
|
61
|
-
cancel: {
|
|
62
|
-
variant: "text",
|
|
63
|
-
color: "error",
|
|
64
|
-
onClick: () => I(!0),
|
|
65
|
-
children: N._("Cancel bill")
|
|
66
|
-
},
|
|
67
|
-
delete: {
|
|
68
|
-
variant: "text",
|
|
69
|
-
color: "error",
|
|
70
|
-
onClick: () => {
|
|
71
|
-
D(), A?.();
|
|
72
|
-
},
|
|
73
|
-
children: N._("Delete bill")
|
|
74
|
-
},
|
|
75
|
-
pay: {
|
|
76
|
-
variant: "contained",
|
|
77
|
-
size: "small",
|
|
78
|
-
onClick: () => O(),
|
|
79
|
-
disabled: !M,
|
|
80
|
-
startIcon: /* @__PURE__ */ d(l, { size: 14 }),
|
|
81
|
-
children: N._("Pay")
|
|
82
|
-
},
|
|
83
|
-
forceApprove: {
|
|
84
|
-
variant: "outlined",
|
|
85
|
-
onClick: () => w(),
|
|
86
|
-
children: N._("Force Approve")
|
|
87
|
-
},
|
|
88
|
-
forceReject: {
|
|
89
|
-
variant: "outlined",
|
|
90
|
-
color: "error",
|
|
91
|
-
onClick: () => C(),
|
|
92
|
-
children: N._("Force Reject")
|
|
93
|
-
}
|
|
94
|
-
}, B = _.includes("cancel"), V = g?.document_id ? L ? `${N._("Bill")} #${g.document_id} ${N._("from")} ${L}` : y ? `${N._("Edit bill")} #${g.document_id}` : `${N._("Bill")} #${g.document_id}` : N._("New incoming invoice"), H = null;
|
|
95
|
-
if (!g || !i(g)) {
|
|
96
|
-
let e = _.filter((e) => e === "approve" || e === "reject"), t = _.filter((e) => e === "forceApprove" || e === "forceReject"), n = ["forceApprove", "forceReject"].filter((e) => t.includes(e)), r = n.map((e) => {
|
|
97
|
-
let { children: t, onClick: n } = z[e];
|
|
98
|
-
return {
|
|
99
|
-
key: e,
|
|
100
|
-
label: t,
|
|
101
|
-
onClick: n,
|
|
102
|
-
sx: { color: e === "forceReject" ? "error.main" : "text.primary" }
|
|
103
|
-
};
|
|
104
|
-
}), i = _.filter((e) => ![
|
|
105
|
-
"approve",
|
|
106
|
-
"reject",
|
|
107
|
-
"forceApprove",
|
|
108
|
-
"forceReject"
|
|
109
|
-
].includes(e));
|
|
110
|
-
H = /* @__PURE__ */ f(p, {
|
|
111
|
-
sx: {
|
|
112
|
-
display: "flex",
|
|
113
|
-
alignItems: "center",
|
|
114
|
-
gap: 1
|
|
115
|
-
},
|
|
116
|
-
children: [
|
|
117
|
-
i.map((e) => {
|
|
118
|
-
let { children: t, ...n } = z[e];
|
|
119
|
-
return /* @__PURE__ */ d(m, {
|
|
120
|
-
...n,
|
|
121
|
-
children: t
|
|
122
|
-
}, e);
|
|
123
|
-
}),
|
|
124
|
-
e.length > 0 && e.map((e) => {
|
|
125
|
-
let { children: t, ...n } = z[e];
|
|
126
|
-
return /* @__PURE__ */ d(m, {
|
|
127
|
-
...n,
|
|
128
|
-
children: t
|
|
129
|
-
}, e);
|
|
130
|
-
}),
|
|
131
|
-
n.length > 0 && /* @__PURE__ */ d(a, { items: r })
|
|
132
|
-
]
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
return /* @__PURE__ */ f(u, { children: [
|
|
136
|
-
/* @__PURE__ */ d(o, {
|
|
137
|
-
className: "Monite-PayableDetails-Header",
|
|
138
|
-
title: V,
|
|
139
|
-
statusElement: /* @__PURE__ */ f("div", {
|
|
140
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
141
|
-
children: [/* @__PURE__ */ d(r, {
|
|
142
|
-
status: g?.status ?? "draft",
|
|
143
|
-
dueDate: g?.due_date
|
|
144
|
-
}), R && /* @__PURE__ */ d(r, {
|
|
145
|
-
status: g?.status ?? "draft",
|
|
146
|
-
dueDate: g?.due_date,
|
|
147
|
-
showOverdueBadge: !0
|
|
148
|
-
})]
|
|
149
|
-
}),
|
|
150
|
-
actions: H,
|
|
151
|
-
closeButtonTooltip: N._("Close payable details")
|
|
152
|
-
}),
|
|
153
|
-
j,
|
|
154
|
-
B && /* @__PURE__ */ d(s, {
|
|
155
|
-
isOpen: F,
|
|
156
|
-
handleCloseModal: () => I(!1),
|
|
157
|
-
handleConfirmation: T
|
|
158
|
-
})
|
|
159
|
-
] });
|
|
160
|
-
};
|
|
161
|
-
//#endregion
|
|
162
|
-
export { g as PayableDetailsHeader };
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import { useMoniteContext as e } from "./index45.js";
|
|
2
|
+
import { useCounterpartsBankAccountsList as t } from "./index119.js";
|
|
3
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index315.js
|
|
4
|
+
function n({ currentCounterpartId: n, payableId: r }) {
|
|
5
|
+
let { api: i } = e();
|
|
6
|
+
return {
|
|
7
|
+
counterpartBankAccountQuery: t(n),
|
|
8
|
+
lineItemsQuery: i.finops.getPayablesIdLineItems.useQuery({ path: { payable_id: r } })
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { n as usePayableDetailsInfo };
|
|
@@ -1,12 +1,63 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { getIndividualName as e, getUserDisplayName as t } from "./index15.js";
|
|
2
|
+
import "./index18.js";
|
|
3
|
+
import { UserAvatar as n } from "./index257.js";
|
|
4
|
+
import { useMemo as r } from "react";
|
|
5
|
+
import { jsx as i, jsxs as a } from "@emotion/react/jsx-runtime";
|
|
6
|
+
import { Box as o, Typography as s } from "@mui/material";
|
|
3
7
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index316.js
|
|
4
|
-
|
|
5
|
-
let
|
|
6
|
-
return {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
var c = ({ user: c, showUserEmail: l = !1, showAvatar: u = !0, avatarSize: d = 24, variant: f = "inline", typographyVariant: p = "body2", sx: m }) => {
|
|
9
|
+
let h = r(() => t(c, l), [c, l]), g = r(() => e(c.first_name || "", c.last_name || ""), [c.first_name, c.last_name]);
|
|
10
|
+
return f === "stacked" ? /* @__PURE__ */ a(o, {
|
|
11
|
+
sx: {
|
|
12
|
+
display: "flex",
|
|
13
|
+
flexDirection: "column",
|
|
14
|
+
alignItems: "center",
|
|
15
|
+
gap: 1,
|
|
16
|
+
...m
|
|
17
|
+
},
|
|
18
|
+
children: [u && /* @__PURE__ */ i(n, {
|
|
19
|
+
sx: {
|
|
20
|
+
width: d,
|
|
21
|
+
height: d
|
|
22
|
+
},
|
|
23
|
+
alt: g,
|
|
24
|
+
fileId: c.userpic_file_id
|
|
25
|
+
}), /* @__PURE__ */ i(s, {
|
|
26
|
+
variant: p,
|
|
27
|
+
title: h ?? "",
|
|
28
|
+
sx: {
|
|
29
|
+
overflow: "hidden",
|
|
30
|
+
textOverflow: "ellipsis",
|
|
31
|
+
whiteSpace: "nowrap",
|
|
32
|
+
textAlign: "center"
|
|
33
|
+
},
|
|
34
|
+
children: h ?? ""
|
|
35
|
+
})]
|
|
36
|
+
}) : /* @__PURE__ */ a(o, {
|
|
37
|
+
sx: {
|
|
38
|
+
display: "flex",
|
|
39
|
+
alignItems: "center",
|
|
40
|
+
gap: 1,
|
|
41
|
+
...m
|
|
42
|
+
},
|
|
43
|
+
children: [u && /* @__PURE__ */ i(n, {
|
|
44
|
+
sx: {
|
|
45
|
+
width: d,
|
|
46
|
+
height: d
|
|
47
|
+
},
|
|
48
|
+
alt: g,
|
|
49
|
+
fileId: c.userpic_file_id
|
|
50
|
+
}), /* @__PURE__ */ i(s, {
|
|
51
|
+
variant: p,
|
|
52
|
+
title: h ?? "",
|
|
53
|
+
sx: {
|
|
54
|
+
overflow: "hidden",
|
|
55
|
+
textOverflow: "ellipsis",
|
|
56
|
+
whiteSpace: "nowrap"
|
|
57
|
+
},
|
|
58
|
+
children: h ?? ""
|
|
59
|
+
})]
|
|
60
|
+
});
|
|
61
|
+
};
|
|
11
62
|
//#endregion
|
|
12
|
-
export {
|
|
63
|
+
export { c as UserDisplayCell };
|