@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,32 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Box as n, Typography as r } from "@mui/material";
|
|
3
|
-
import { useLingui as i } from "@lingui/react";
|
|
4
|
-
import a from "@mui/icons-material/AttachFile";
|
|
5
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index324.js
|
|
6
|
-
var o = () => {
|
|
7
|
-
let { i18n: o } = i();
|
|
8
|
-
return /* @__PURE__ */ e(n, {
|
|
9
|
-
className: "Monite-PayableDetailsNoAttachedFile",
|
|
10
|
-
sx: {
|
|
11
|
-
width: "100%",
|
|
12
|
-
height: "100%",
|
|
13
|
-
display: "flex",
|
|
14
|
-
flexDirection: "column",
|
|
15
|
-
justifyContent: "center",
|
|
16
|
-
textAlign: "center"
|
|
17
|
-
},
|
|
18
|
-
children: /* @__PURE__ */ t(n, {
|
|
19
|
-
sx: { margin: "auto" },
|
|
20
|
-
children: [/* @__PURE__ */ e(a, {
|
|
21
|
-
color: "primary",
|
|
22
|
-
fontSize: "large",
|
|
23
|
-
sx: { marginBottom: 2 }
|
|
24
|
-
}), /* @__PURE__ */ e(r, {
|
|
25
|
-
color: "secondary",
|
|
26
|
-
children: o._("This invoice doesn’t have a file attached.")
|
|
27
|
-
})]
|
|
28
|
-
})
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
//#endregion
|
|
32
|
-
export { o as PayableDetailsNoAttachedFile };
|
|
1
|
+
import "./index323.js";
|
|
@@ -1 +1,29 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import { Suspense as e, lazy as t, useEffect as n, useState as r } from "react";
|
|
2
|
+
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
3
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index325.js
|
|
4
|
+
var a = t(() => import("./index417.js")), o = ({ url: e, mimetype: t, name: n, showCloseButton: r, onClose: a }) => t === "application/pdf" ? /* @__PURE__ */ i(s, {
|
|
5
|
+
url: e,
|
|
6
|
+
showCloseButton: r,
|
|
7
|
+
onClose: a
|
|
8
|
+
}) : /* @__PURE__ */ i("img", {
|
|
9
|
+
className: "Monite-ImageFileViewer",
|
|
10
|
+
src: e,
|
|
11
|
+
alt: n,
|
|
12
|
+
loading: "lazy",
|
|
13
|
+
style: {
|
|
14
|
+
width: "100%",
|
|
15
|
+
objectFit: "contain"
|
|
16
|
+
}
|
|
17
|
+
}), s = ({ url: t, showCloseButton: o, onClose: s }) => {
|
|
18
|
+
let [c, l] = r(!1);
|
|
19
|
+
return n(() => l(!0), []), c ? /* @__PURE__ */ i(e, {
|
|
20
|
+
fallback: null,
|
|
21
|
+
children: /* @__PURE__ */ i(a, {
|
|
22
|
+
url: t,
|
|
23
|
+
showCloseButton: o,
|
|
24
|
+
onClose: s
|
|
25
|
+
})
|
|
26
|
+
}) : null;
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { o as FileViewer };
|
|
@@ -1,29 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { jsx as i } from "@emotion/react/jsx-runtime";
|
|
3
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index326.js
|
|
4
|
-
var a = t(() => import("./index418.js")), o = ({ url: e, mimetype: t, name: n, showCloseButton: r, onClose: a }) => t === "application/pdf" ? /* @__PURE__ */ i(s, {
|
|
5
|
-
url: e,
|
|
6
|
-
showCloseButton: r,
|
|
7
|
-
onClose: a
|
|
8
|
-
}) : /* @__PURE__ */ i("img", {
|
|
9
|
-
className: "Monite-ImageFileViewer",
|
|
10
|
-
src: e,
|
|
11
|
-
alt: n,
|
|
12
|
-
loading: "lazy",
|
|
13
|
-
style: {
|
|
14
|
-
width: "100%",
|
|
15
|
-
objectFit: "contain"
|
|
16
|
-
}
|
|
17
|
-
}), s = ({ url: t, showCloseButton: o, onClose: s }) => {
|
|
18
|
-
let [c, l] = r(!1);
|
|
19
|
-
return n(() => l(!0), []), c ? /* @__PURE__ */ i(e, {
|
|
20
|
-
fallback: null,
|
|
21
|
-
children: /* @__PURE__ */ i(a, {
|
|
22
|
-
url: t,
|
|
23
|
-
showCloseButton: o,
|
|
24
|
-
onClose: s
|
|
25
|
-
})
|
|
26
|
-
}) : null;
|
|
27
|
-
};
|
|
28
|
-
//#endregion
|
|
29
|
-
export { o as FileViewer };
|
|
1
|
+
import "./index325.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import "./index132.js";
|
|
@@ -1 +1,160 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
|
|
2
|
+
import "../../shared/data-access/dist/index.js";
|
|
3
|
+
import { ScopedCssBaselineContainerClassName as t } from "./index29.js";
|
|
4
|
+
import { generatePayablesButtonCssVars as n } from "./index42.js";
|
|
5
|
+
import { useMoniteContext as r } from "./index45.js";
|
|
6
|
+
import { MoniteScopedProviders as i } from "./index129.js";
|
|
7
|
+
import { useUserPermissions as a } from "./index111.js";
|
|
8
|
+
import { NotFound as o } from "./index132.js";
|
|
9
|
+
import { AccessRestriction as s } from "./index153.js";
|
|
10
|
+
import "./index155.js";
|
|
11
|
+
import { LoadingPage as c } from "./index177.js";
|
|
12
|
+
import "./index178.js";
|
|
13
|
+
import { classNames as l } from "./index249.js";
|
|
14
|
+
import { PayableDetailsForceActionDialog as u } from "./index263.js";
|
|
15
|
+
import { PayableDetailsForm as ee } from "./index297.js";
|
|
16
|
+
import "./index298.js";
|
|
17
|
+
import { usePayableDetails as te } from "./index304.js";
|
|
18
|
+
import { PayableDetailsAttachFile as ne } from "./index305.js";
|
|
19
|
+
import "./index306.js";
|
|
20
|
+
import { PayableDetailsHeader as re } from "./index313.js";
|
|
21
|
+
import "./index314.js";
|
|
22
|
+
import { PayableDetailsInfo as ie } from "./index321.js";
|
|
23
|
+
import "./index322.js";
|
|
24
|
+
import { PayableDetailsNoAttachedFile as ae } from "./index323.js";
|
|
25
|
+
import "./index324.js";
|
|
26
|
+
import { FileViewer as oe } from "./index325.js";
|
|
27
|
+
import "./index326.js";
|
|
28
|
+
import "./index327.js";
|
|
29
|
+
import { useId as se, useMemo as ce, useState as le } from "react";
|
|
30
|
+
import { Fragment as d, jsx as f, jsxs as p } from "@emotion/react/jsx-runtime";
|
|
31
|
+
import { Alert as m, Backdrop as h, Box as g, DialogContent as _, Grid as v } from "@mui/material";
|
|
32
|
+
import { useLingui as y } from "@lingui/react";
|
|
33
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index328.js
|
|
34
|
+
var b = (e) => /* @__PURE__ */ f(i, { children: /* @__PURE__ */ f(x, { ...e }) }), x = ({ id: i, optionalFields: b, enableGLCodes: x, hideAddDiscountButton: S, shouldOpenInEditMode: C, initialCounterpartId: w, onClose: T, onSaved: E, onCanceled: D, onSubmitted: O, onRejected: k, onApproved: A, onReopened: j, onDeleted: M, onPay: N }) => {
|
|
35
|
+
let { payable: P, payableQueryError: F, permissions: I, lineItems: L, isEdit: R, isLoading: z, showPayButton: B, actions: { setEdit: V, createInvoice: H, saveInvoice: U, submitInvoice: W, payInvoice: ue, rejectInvoice: de, approveInvoice: fe, forceRejectInvoice: pe, forceApproveInvoice: me, cancelInvoice: he, reopenInvoice: ge, deleteInvoice: _e, modalComponent: ve } } = te({
|
|
36
|
+
id: i,
|
|
37
|
+
enableGLCodes: x,
|
|
38
|
+
shouldOpenInEditMode: C,
|
|
39
|
+
onSaved: E,
|
|
40
|
+
onCanceled: D,
|
|
41
|
+
onSubmitted: O,
|
|
42
|
+
onRejected: k,
|
|
43
|
+
onApproved: A,
|
|
44
|
+
onReopened: j,
|
|
45
|
+
onDeleted: M,
|
|
46
|
+
onPay: N
|
|
47
|
+
}), [G, K] = le(null), q = () => K(null), J = async () => {
|
|
48
|
+
q(), await me();
|
|
49
|
+
}, ye = async () => {
|
|
50
|
+
q(), await pe();
|
|
51
|
+
}, { i18n: Y } = y(), { componentSettings: be, theme: X } = r(), xe = ce(() => n(X.components?.styles?.payables?.button), [X.components?.styles?.payables?.button]), Z = a(), Q = Z.has(e.PayableWriteOrg), Se = Z.has(e.PayableReadOrg), $ = `Monite-PayableDetailsForm-${se()}`;
|
|
52
|
+
return Se ? F ? /* @__PURE__ */ f(o, {
|
|
53
|
+
title: Y._("Payable not found"),
|
|
54
|
+
description: Y._("There is no payable by provided id: {id}", { id: i })
|
|
55
|
+
}) : /* @__PURE__ */ f(d, { children: /* @__PURE__ */ p(g, {
|
|
56
|
+
className: l(t, "Monite-PayableDetails", "Monite-Payables"),
|
|
57
|
+
style: xe,
|
|
58
|
+
sx: {
|
|
59
|
+
width: "100%",
|
|
60
|
+
height: "100%",
|
|
61
|
+
display: "flex",
|
|
62
|
+
flexDirection: "column",
|
|
63
|
+
position: "absolute"
|
|
64
|
+
},
|
|
65
|
+
children: [
|
|
66
|
+
/* @__PURE__ */ f(h, {
|
|
67
|
+
open: z,
|
|
68
|
+
sx: { zIndex: (e) => e.zIndex.drawer + 1 },
|
|
69
|
+
children: /* @__PURE__ */ f(c, {})
|
|
70
|
+
}),
|
|
71
|
+
/* @__PURE__ */ f(re, {
|
|
72
|
+
payable: P,
|
|
73
|
+
permissions: I,
|
|
74
|
+
setEdit: V,
|
|
75
|
+
isEdit: R,
|
|
76
|
+
submitInvoice: W,
|
|
77
|
+
rejectInvoice: de,
|
|
78
|
+
approveInvoice: fe,
|
|
79
|
+
forceRejectInvoice: () => K("reject"),
|
|
80
|
+
forceApproveInvoice: () => K("approve"),
|
|
81
|
+
reopenInvoice: ge,
|
|
82
|
+
cancelInvoice: he,
|
|
83
|
+
deleteInvoice: _e,
|
|
84
|
+
payInvoice: ue,
|
|
85
|
+
payableDetailsFormId: $,
|
|
86
|
+
onClose: T,
|
|
87
|
+
modalComponent: ve,
|
|
88
|
+
showPayButton: B
|
|
89
|
+
}, String(R)),
|
|
90
|
+
/* @__PURE__ */ f(u, {
|
|
91
|
+
open: G === "approve",
|
|
92
|
+
type: "approve",
|
|
93
|
+
onClose: q,
|
|
94
|
+
onConfirm: J
|
|
95
|
+
}),
|
|
96
|
+
/* @__PURE__ */ f(u, {
|
|
97
|
+
open: G === "reject",
|
|
98
|
+
type: "reject",
|
|
99
|
+
onClose: q,
|
|
100
|
+
onConfirm: ye
|
|
101
|
+
}),
|
|
102
|
+
/* @__PURE__ */ f(_, {
|
|
103
|
+
sx: {
|
|
104
|
+
display: "flex",
|
|
105
|
+
flexDirection: "column"
|
|
106
|
+
},
|
|
107
|
+
children: /* @__PURE__ */ p(v, {
|
|
108
|
+
container: !0,
|
|
109
|
+
columnSpacing: 4,
|
|
110
|
+
height: "100%",
|
|
111
|
+
children: [/* @__PURE__ */ p(v, {
|
|
112
|
+
item: !0,
|
|
113
|
+
container: !0,
|
|
114
|
+
xs: 6,
|
|
115
|
+
height: "100%",
|
|
116
|
+
children: [
|
|
117
|
+
P?.file && /* @__PURE__ */ f(oe, {
|
|
118
|
+
name: P.file.name,
|
|
119
|
+
mimetype: P.file.mimetype,
|
|
120
|
+
url: P.file.url
|
|
121
|
+
}),
|
|
122
|
+
Q && P?.id && !P?.file && /* @__PURE__ */ f(ne, { payableId: P.id }),
|
|
123
|
+
!Q && P?.id && !P?.file && /* @__PURE__ */ f(ae, {})
|
|
124
|
+
]
|
|
125
|
+
}), /* @__PURE__ */ p(v, {
|
|
126
|
+
item: !0,
|
|
127
|
+
container: !0,
|
|
128
|
+
xs: 6,
|
|
129
|
+
flexDirection: "column",
|
|
130
|
+
height: "100%",
|
|
131
|
+
overflow: "auto",
|
|
132
|
+
children: [P && (P.status === "new" || P.status === "draft") && (P.ocr_status === "error" || P.ocr_status === "canceled") && /* @__PURE__ */ f(g, {
|
|
133
|
+
mb: 2,
|
|
134
|
+
children: /* @__PURE__ */ f(m, {
|
|
135
|
+
severity: "error",
|
|
136
|
+
children: Y._("Due to an error, the OCR failed to read the data from the document. Please input the data manually.")
|
|
137
|
+
})
|
|
138
|
+
}), R ? /* @__PURE__ */ f(ee, {
|
|
139
|
+
savePayable: U,
|
|
140
|
+
createPayable: H,
|
|
141
|
+
payable: P,
|
|
142
|
+
initialCounterpartId: w,
|
|
143
|
+
optionalFields: b,
|
|
144
|
+
lineItems: L,
|
|
145
|
+
payableDetailsFormId: $,
|
|
146
|
+
enableGLCodes: x,
|
|
147
|
+
hideAddDiscountButton: S ?? be?.payables?.hideAddDiscountButton
|
|
148
|
+
}) : P && /* @__PURE__ */ f(ie, {
|
|
149
|
+
payable: P,
|
|
150
|
+
optionalFields: b,
|
|
151
|
+
enableGLCodes: x
|
|
152
|
+
})]
|
|
153
|
+
})]
|
|
154
|
+
})
|
|
155
|
+
})
|
|
156
|
+
]
|
|
157
|
+
}) }) : /* @__PURE__ */ f(s, {});
|
|
158
|
+
};
|
|
159
|
+
//#endregion
|
|
160
|
+
export { b as PayableDetails };
|
|
@@ -1,161 +1 @@
|
|
|
1
|
-
import { Scope as e } from "../../shared/data-access/dist/lib/scopes.js";
|
|
2
|
-
import "../../shared/data-access/dist/index.js";
|
|
3
|
-
import { ScopedCssBaselineContainerClassName as t } from "./index29.js";
|
|
4
|
-
import { generatePayablesButtonCssVars as n } from "./index42.js";
|
|
5
|
-
import { useMoniteContext as r } from "./index45.js";
|
|
6
|
-
import { MoniteScopedProviders as i } from "./index129.js";
|
|
7
|
-
import { useUserPermissions as a } from "./index111.js";
|
|
8
|
-
import { NotFound as o } from "./index132.js";
|
|
9
|
-
import { AccessRestriction as ee } from "./index153.js";
|
|
10
|
-
import "./index155.js";
|
|
11
|
-
import { LoadingPage as s } from "./index177.js";
|
|
12
|
-
import "./index178.js";
|
|
13
|
-
import { classNames as c } from "./index250.js";
|
|
14
|
-
import { PayableDetailsForceActionDialog as l } from "./index264.js";
|
|
15
|
-
import { PayableDetailsForm as u } from "./index298.js";
|
|
16
|
-
import "./index299.js";
|
|
17
|
-
import { usePayableDetails as d } from "./index305.js";
|
|
18
|
-
import { PayableDetailsAttachFile as te } from "./index306.js";
|
|
19
|
-
import "./index307.js";
|
|
20
|
-
import { PayableDetailsHeader as ne } from "./index314.js";
|
|
21
|
-
import "./index315.js";
|
|
22
|
-
import { PayableDetailsInfo as re } from "./index322.js";
|
|
23
|
-
import "./index323.js";
|
|
24
|
-
import { PayableDetailsNoAttachedFile as ie } from "./index324.js";
|
|
25
|
-
import "./index325.js";
|
|
26
|
-
import { FileViewer as ae } from "./index326.js";
|
|
27
|
-
import "./index327.js";
|
|
28
1
|
import "./index328.js";
|
|
29
|
-
import { useId as oe, useMemo as se, useState as ce } from "react";
|
|
30
|
-
import { Fragment as le, jsx as f, jsxs as p } from "@emotion/react/jsx-runtime";
|
|
31
|
-
import { Alert as m, Backdrop as h, Box as g, DialogContent as _, Grid as v } from "@mui/material";
|
|
32
|
-
import { useLingui as y } from "@lingui/react";
|
|
33
|
-
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index329.js
|
|
34
|
-
var b = (e) => /* @__PURE__ */ f(i, { children: /* @__PURE__ */ f(x, { ...e }) }), x = ({ id: i, optionalFields: b, enableGLCodes: x, hideAddDiscountButton: S, hideAddBankAccountButton: C, shouldOpenInEditMode: w, initialCounterpartId: T, onClose: E, onSaved: D, onCanceled: O, onSubmitted: k, onRejected: A, onApproved: j, onReopened: M, onDeleted: N, onPay: P }) => {
|
|
35
|
-
let { payable: F, payableQueryError: I, permissions: L, lineItems: R, isEdit: z, isLoading: B, showPayButton: V, actions: { setEdit: H, createInvoice: U, saveInvoice: W, submitInvoice: ue, payInvoice: de, rejectInvoice: fe, approveInvoice: pe, forceRejectInvoice: me, forceApproveInvoice: he, cancelInvoice: ge, reopenInvoice: _e, deleteInvoice: ve, modalComponent: ye } } = d({
|
|
36
|
-
id: i,
|
|
37
|
-
enableGLCodes: x,
|
|
38
|
-
shouldOpenInEditMode: w,
|
|
39
|
-
onSaved: D,
|
|
40
|
-
onCanceled: O,
|
|
41
|
-
onSubmitted: k,
|
|
42
|
-
onRejected: A,
|
|
43
|
-
onApproved: j,
|
|
44
|
-
onReopened: M,
|
|
45
|
-
onDeleted: N,
|
|
46
|
-
onPay: P
|
|
47
|
-
}), [G, K] = ce(null), q = () => K(null), be = async () => {
|
|
48
|
-
q(), await he();
|
|
49
|
-
}, xe = async () => {
|
|
50
|
-
q(), await me();
|
|
51
|
-
}, { i18n: J } = y(), { componentSettings: Y, theme: X } = r(), Se = se(() => n(X.components?.styles?.payables?.button), [X.components?.styles?.payables?.button]), Z = a(), Q = Z.has(e.PayableWriteOrg), Ce = Z.has(e.PayableReadOrg), $ = `Monite-PayableDetailsForm-${oe()}`;
|
|
52
|
-
return Ce ? I ? /* @__PURE__ */ f(o, {
|
|
53
|
-
title: J._("Payable not found"),
|
|
54
|
-
description: J._("There is no payable by provided id: {id}", { id: i })
|
|
55
|
-
}) : /* @__PURE__ */ f(le, { children: /* @__PURE__ */ p(g, {
|
|
56
|
-
className: c(t, "Monite-PayableDetails", "Monite-Payables"),
|
|
57
|
-
style: Se,
|
|
58
|
-
sx: {
|
|
59
|
-
width: "100%",
|
|
60
|
-
height: "100%",
|
|
61
|
-
display: "flex",
|
|
62
|
-
flexDirection: "column",
|
|
63
|
-
position: "absolute"
|
|
64
|
-
},
|
|
65
|
-
children: [
|
|
66
|
-
/* @__PURE__ */ f(h, {
|
|
67
|
-
open: B,
|
|
68
|
-
sx: { zIndex: (e) => e.zIndex.drawer + 1 },
|
|
69
|
-
children: /* @__PURE__ */ f(s, {})
|
|
70
|
-
}),
|
|
71
|
-
/* @__PURE__ */ f(ne, {
|
|
72
|
-
payable: F,
|
|
73
|
-
permissions: L,
|
|
74
|
-
setEdit: H,
|
|
75
|
-
isEdit: z,
|
|
76
|
-
submitInvoice: ue,
|
|
77
|
-
rejectInvoice: fe,
|
|
78
|
-
approveInvoice: pe,
|
|
79
|
-
forceRejectInvoice: () => K("reject"),
|
|
80
|
-
forceApproveInvoice: () => K("approve"),
|
|
81
|
-
reopenInvoice: _e,
|
|
82
|
-
cancelInvoice: ge,
|
|
83
|
-
deleteInvoice: ve,
|
|
84
|
-
payInvoice: de,
|
|
85
|
-
payableDetailsFormId: $,
|
|
86
|
-
onClose: E,
|
|
87
|
-
modalComponent: ye,
|
|
88
|
-
showPayButton: V
|
|
89
|
-
}, String(z)),
|
|
90
|
-
/* @__PURE__ */ f(l, {
|
|
91
|
-
open: G === "approve",
|
|
92
|
-
type: "approve",
|
|
93
|
-
onClose: q,
|
|
94
|
-
onConfirm: be
|
|
95
|
-
}),
|
|
96
|
-
/* @__PURE__ */ f(l, {
|
|
97
|
-
open: G === "reject",
|
|
98
|
-
type: "reject",
|
|
99
|
-
onClose: q,
|
|
100
|
-
onConfirm: xe
|
|
101
|
-
}),
|
|
102
|
-
/* @__PURE__ */ f(_, {
|
|
103
|
-
sx: {
|
|
104
|
-
display: "flex",
|
|
105
|
-
flexDirection: "column"
|
|
106
|
-
},
|
|
107
|
-
children: /* @__PURE__ */ p(v, {
|
|
108
|
-
container: !0,
|
|
109
|
-
columnSpacing: 4,
|
|
110
|
-
height: "100%",
|
|
111
|
-
children: [/* @__PURE__ */ p(v, {
|
|
112
|
-
item: !0,
|
|
113
|
-
container: !0,
|
|
114
|
-
xs: 6,
|
|
115
|
-
height: "100%",
|
|
116
|
-
children: [
|
|
117
|
-
F?.file && /* @__PURE__ */ f(ae, {
|
|
118
|
-
name: F.file.name,
|
|
119
|
-
mimetype: F.file.mimetype,
|
|
120
|
-
url: F.file.url
|
|
121
|
-
}),
|
|
122
|
-
Q && F?.id && !F?.file && /* @__PURE__ */ f(te, { payableId: F.id }),
|
|
123
|
-
!Q && F?.id && !F?.file && /* @__PURE__ */ f(ie, {})
|
|
124
|
-
]
|
|
125
|
-
}), /* @__PURE__ */ p(v, {
|
|
126
|
-
item: !0,
|
|
127
|
-
container: !0,
|
|
128
|
-
xs: 6,
|
|
129
|
-
flexDirection: "column",
|
|
130
|
-
height: "100%",
|
|
131
|
-
overflow: "auto",
|
|
132
|
-
children: [F && (F.status === "new" || F.status === "draft") && (F.ocr_status === "error" || F.ocr_status === "canceled") && /* @__PURE__ */ f(g, {
|
|
133
|
-
mb: 2,
|
|
134
|
-
children: /* @__PURE__ */ f(m, {
|
|
135
|
-
severity: "error",
|
|
136
|
-
children: J._("Due to an error, the OCR failed to read the data from the document. Please input the data manually.")
|
|
137
|
-
})
|
|
138
|
-
}), z ? /* @__PURE__ */ f(u, {
|
|
139
|
-
savePayable: W,
|
|
140
|
-
createPayable: U,
|
|
141
|
-
payable: F,
|
|
142
|
-
initialCounterpartId: T,
|
|
143
|
-
optionalFields: b,
|
|
144
|
-
lineItems: R,
|
|
145
|
-
payableDetailsFormId: $,
|
|
146
|
-
enableGLCodes: x,
|
|
147
|
-
hideAddDiscountButton: S ?? Y?.payables?.hideAddDiscountButton,
|
|
148
|
-
hideAddBankAccountButton: C ?? Y?.payables?.hideAddBankAccountButton
|
|
149
|
-
}) : F && /* @__PURE__ */ f(re, {
|
|
150
|
-
payable: F,
|
|
151
|
-
optionalFields: b,
|
|
152
|
-
enableGLCodes: x
|
|
153
|
-
})]
|
|
154
|
-
})]
|
|
155
|
-
})
|
|
156
|
-
})
|
|
157
|
-
]
|
|
158
|
-
}) }) : /* @__PURE__ */ f(ee, {});
|
|
159
|
-
};
|
|
160
|
-
//#endregion
|
|
161
|
-
export { b as PayableDetails };
|
|
@@ -1 +1,37 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import { useCallback as e, useEffect as t, useRef as n, useState as r } from "react";
|
|
2
|
+
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index330.js
|
|
3
|
+
var i = () => {
|
|
4
|
+
let i = n(null), [a, o] = r(!1), [s, c] = r(0), [l, u] = r(0), d = e((e) => {
|
|
5
|
+
o(!0), c(e.pageX - (i.current?.offsetLeft || 0)), u(i.current?.scrollLeft || 0);
|
|
6
|
+
}, []), f = e(() => {
|
|
7
|
+
o(!1);
|
|
8
|
+
}, []), p = e(() => {
|
|
9
|
+
o(!1);
|
|
10
|
+
}, []), m = e((e) => {
|
|
11
|
+
if (!a) return;
|
|
12
|
+
e.preventDefault();
|
|
13
|
+
let t = e.pageX - (i.current?.offsetLeft || 0) - s;
|
|
14
|
+
i.current && (i.current.scrollLeft = l - t);
|
|
15
|
+
}, [
|
|
16
|
+
a,
|
|
17
|
+
s,
|
|
18
|
+
l
|
|
19
|
+
]), h = e((e) => {
|
|
20
|
+
i.current && (e.deltaMode === 0 && Math.abs(e.deltaX) > Math.abs(e.deltaY) ? (e.preventDefault(), i.current.scrollLeft += e.deltaX * 2) : e.preventDefault());
|
|
21
|
+
}, []);
|
|
22
|
+
return t(() => {
|
|
23
|
+
let e = i.current;
|
|
24
|
+
if (e) return e.addEventListener("wheel", h), () => {
|
|
25
|
+
e.removeEventListener("wheel", h);
|
|
26
|
+
};
|
|
27
|
+
}, [h]), {
|
|
28
|
+
containerRef: i,
|
|
29
|
+
handleMouseDown: d,
|
|
30
|
+
handleMouseLeave: f,
|
|
31
|
+
handleMouseUp: p,
|
|
32
|
+
handleMouseMove: m,
|
|
33
|
+
isDragging: a
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
//#endregion
|
|
37
|
+
export { i as useDragScroll };
|
|
@@ -1,37 +1,36 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { twMerge as e } from "tailwind-merge";
|
|
2
|
+
import { jsx as t, jsxs as n } from "@emotion/react/jsx-runtime";
|
|
3
|
+
import { useLingui as r } from "@lingui/react";
|
|
2
4
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index331.js
|
|
3
|
-
var i = () => {
|
|
4
|
-
let
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
handleMouseMove: m,
|
|
33
|
-
isDragging: a
|
|
34
|
-
};
|
|
5
|
+
var i = ({ isAllStatus: i, data: a, amountOfItems: o, selected: s, onClick: c, formatAmount: l, statusChip: u, allItemsText: d }) => {
|
|
6
|
+
let { i18n: f } = r();
|
|
7
|
+
return /* @__PURE__ */ t("button", {
|
|
8
|
+
onClick: c,
|
|
9
|
+
type: "button",
|
|
10
|
+
className: e("ttw:flex ttw:flex-col ttw:gap-2 ttw:px-4 ttw:py-2 ttw:rounded-xl ttw:border ttw:w-42 ttw:shrink-0 ttw:text-left ttw:cursor-pointer ttw:transition-colors ttw:bg-white", s ? "ttw:border-indigo-700" : "ttw:border-white ttw:hover:border-indigo-700"),
|
|
11
|
+
children: i ? /* @__PURE__ */ n("div", {
|
|
12
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
13
|
+
children: [/* @__PURE__ */ t("span", {
|
|
14
|
+
className: "ttw:text-xs ttw:font-medium ttw:text-zinc-950",
|
|
15
|
+
children: d ?? f._("All items")
|
|
16
|
+
}), /* @__PURE__ */ t("span", {
|
|
17
|
+
className: "ttw:text-2xl ttw:font-medium ttw:text-zinc-950 ttw:leading-8 ttw:tabular-nums",
|
|
18
|
+
children: a
|
|
19
|
+
})]
|
|
20
|
+
}) : /* @__PURE__ */ n("div", {
|
|
21
|
+
className: "ttw:flex ttw:flex-col",
|
|
22
|
+
children: [/* @__PURE__ */ n("div", {
|
|
23
|
+
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-2",
|
|
24
|
+
children: [u, /* @__PURE__ */ t("span", {
|
|
25
|
+
className: "ttw:text-xs ttw:font-medium ttw:leading-4.5 ttw:text-zinc-950 ttw:tabular-nums",
|
|
26
|
+
children: o ?? 0
|
|
27
|
+
})]
|
|
28
|
+
}), /* @__PURE__ */ t("span", {
|
|
29
|
+
className: "ttw:text-2xl ttw:font-medium ttw:text-zinc-950 ttw:leading-8 ttw:tabular-nums ttw:overflow-hidden ttw:whitespace-nowrap ttw:text-ellipsis",
|
|
30
|
+
children: l(a)
|
|
31
|
+
})]
|
|
32
|
+
})
|
|
33
|
+
});
|
|
35
34
|
};
|
|
36
35
|
//#endregion
|
|
37
|
-
export { i as
|
|
36
|
+
export { i as StatusCard };
|
|
@@ -1,36 +1,6 @@
|
|
|
1
|
-
import { twMerge as e } from "tailwind-merge";
|
|
2
|
-
import { jsx as t, jsxs as n } from "@emotion/react/jsx-runtime";
|
|
3
|
-
import { useLingui as r } from "@lingui/react";
|
|
4
1
|
//#region ../../libs/tesouro-embedded-components-react/monite-sdk/dist/index332.js
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
return /* @__PURE__ */ t("button", {
|
|
8
|
-
onClick: c,
|
|
9
|
-
type: "button",
|
|
10
|
-
className: e("ttw:flex ttw:flex-col ttw:gap-2 ttw:px-4 ttw:py-2 ttw:rounded-xl ttw:border ttw:w-42 ttw:shrink-0 ttw:text-left ttw:cursor-pointer ttw:transition-colors ttw:bg-white", s ? "ttw:border-indigo-700" : "ttw:border-white ttw:hover:border-indigo-700"),
|
|
11
|
-
children: i ? /* @__PURE__ */ n("div", {
|
|
12
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
13
|
-
children: [/* @__PURE__ */ t("span", {
|
|
14
|
-
className: "ttw:text-xs ttw:font-medium ttw:text-zinc-950",
|
|
15
|
-
children: d ?? f._("All items")
|
|
16
|
-
}), /* @__PURE__ */ t("span", {
|
|
17
|
-
className: "ttw:text-2xl ttw:font-medium ttw:text-zinc-950 ttw:leading-8 ttw:tabular-nums",
|
|
18
|
-
children: a
|
|
19
|
-
})]
|
|
20
|
-
}) : /* @__PURE__ */ n("div", {
|
|
21
|
-
className: "ttw:flex ttw:flex-col",
|
|
22
|
-
children: [/* @__PURE__ */ n("div", {
|
|
23
|
-
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-2",
|
|
24
|
-
children: [u, /* @__PURE__ */ t("span", {
|
|
25
|
-
className: "ttw:text-xs ttw:font-medium ttw:leading-4.5 ttw:text-zinc-950 ttw:tabular-nums",
|
|
26
|
-
children: o ?? 0
|
|
27
|
-
})]
|
|
28
|
-
}), /* @__PURE__ */ t("span", {
|
|
29
|
-
className: "ttw:text-2xl ttw:font-medium ttw:text-zinc-950 ttw:leading-8 ttw:tabular-nums ttw:overflow-hidden ttw:whitespace-nowrap ttw:text-ellipsis",
|
|
30
|
-
children: l(a)
|
|
31
|
-
})]
|
|
32
|
-
})
|
|
33
|
-
});
|
|
2
|
+
var e = (e) => JSON.stringify(Object.entries(e).sort(([e], [t]) => e.localeCompare(t))), t = (t) => {
|
|
3
|
+
if (t) return JSON.stringify(t.map(e).sort((e, t) => e.localeCompare(t)));
|
|
34
4
|
};
|
|
35
5
|
//#endregion
|
|
36
|
-
export {
|
|
6
|
+
export { t as getPayablesAnalyticsSnapshot };
|