@m4l/components 0.1.11 → 0.1.13
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/assets/Logo/index.228dcb5a.js +86 -0
- package/commonjs.565e6834.js +12 -0
- package/components/CommonActions/components/ActionCancel/index.cba1b460.js +17 -0
- package/components/CommonActions/components/ActionFormCancel/index.be2fe891.js +49 -0
- package/components/CommonActions/components/ActionFormIntro/index.ca4d2674.js +31 -0
- package/components/CommonActions/components/ActionIntro/index.cc4b1e0e.js +18 -0
- package/components/CommonActions/components/Actions/index.e8148d98.js +743 -0
- package/components/CompanyLogo/{index.js → index.f81c179c.js} +42 -48
- package/components/DataGrid/index.b688877d.js +894 -0
- package/components/DataGrid/types.d.ts +1 -1
- package/components/DynamicFilter/index.82ce857e.js +1158 -0
- package/components/ErrorLabel/index.c8615f16.js +19 -0
- package/components/Icon/index.cbca79b0.js +70 -0
- package/components/Image/index.e790b50b.js +122 -0
- package/components/LanguagePopover/index.3d9611cb.js +87 -0
- package/components/Loadable/index.f5518558.js +15 -0
- package/components/ModalDialog/index.3850c053.js +168 -0
- package/components/NoItemSelected/{index.js → index.12f0ca67.js} +43 -50
- package/components/ObjectLogs/index.27ef875d.js +266 -0
- package/components/Page/index.6d69977e.js +35 -0
- package/components/Page/index.d.ts +1 -1
- package/components/PaperForm/index.d7c74064.js +105 -0
- package/components/Period/index.5e68286a.js +160 -0
- package/components/PropertyValue/index.ab3dd7e9.js +116 -0
- package/components/Resizeable/{index.js → index.45995d2b.js} +21 -19
- package/components/ScrollBar/index.39eeb2de.js +49 -0
- package/components/ScrollToTop/index.e06f98f6.js +11 -0
- package/components/SplitLayout/{index.js → index.4032673d.js} +35 -35
- package/components/animate/IconButtonAnimate/index.d.ts +1 -1
- package/components/animate/LoadingScreen/{index.js → index.f1cec7db.js} +29 -27
- package/components/animate/MotionContainer/index.8d9f9d80.js +30 -0
- package/components/animate/MotionLazyContainer/index.572dd012.js +15 -0
- package/components/animate/features.0fbf41e1.js +5 -0
- package/components/animate/variants/{bounce.js → bounce.784aaaaa.js} +15 -16
- package/components/animate/variants/container.11f82b76.js +20 -0
- package/components/animate/variants/fade.b561c0fc.js +59 -0
- package/components/animate/variants/{index.js → index.7a912140.js} +0 -0
- package/components/animate/variants/transition.bd46b9ce.js +15 -0
- package/components/formatters/BooleanFormatter/index.cca53b7f.js +42 -0
- package/components/formatters/DateFormatter/index.ad8d9b8e.js +57 -0
- package/components/formatters/index.55856d65.js +106 -0
- package/components/hook-form/FormProvider/index.257acd9f.js +55 -0
- package/components/hook-form/RHFAutocomplete/index.6ed76d4c.js +122 -0
- package/components/hook-form/RHFAutocompleteAsync/index.8f2c97ea.js +153 -0
- package/components/hook-form/RHFCheckbox/index.f9ce6c39.js +59 -0
- package/components/hook-form/RHFDateTime/index.fc5cbafe.js +68 -0
- package/components/hook-form/RHFMultiCheckbox/index.2680b3b6.js +34 -0
- package/components/hook-form/RHFPeriod/index.23c254e9.js +45 -0
- package/components/hook-form/RHFRadioGroup/index.b3335e13.js +43 -0
- package/components/hook-form/RHFSelect/index.b6ca8bb2.js +36 -0
- package/components/hook-form/RHFTextField/index.4c455f75.js +77 -0
- package/components/hook-form/RHFTextField/index.d.ts +1 -1
- package/components/hook-form/RHFUpload/index.ed3d739f.js +244 -0
- package/components/mui_extended/Accordion/index.2116e423.js +103 -0
- package/components/mui_extended/Avatar/index.0a2a4523.js +32 -0
- package/components/mui_extended/Avatar/index.d.ts +1 -1
- package/components/mui_extended/BoxIcon/index.e638ecc8.js +22 -0
- package/components/mui_extended/Breadcrumbs/index.5e37d903.js +89 -0
- package/components/mui_extended/Button/index.84d8898c.js +110 -0
- package/components/mui_extended/IconButton/index.88f3aadb.js +98 -0
- package/components/mui_extended/LinkWithRoute/index.d4b263de.js +28 -0
- package/components/mui_extended/MenuPopover/index.488fc536.js +131 -0
- package/components/mui_extended/Pager/index.0576814f.js +126 -0
- package/components/mui_extended/Tab/index.e0653a0a.js +28 -0
- package/components/mui_extended/Typography/index.0c4604b3.js +22 -0
- package/contexts/ModalContext/index.2188b69e.js +150 -0
- package/hooks/useFormAddEdit/index.d4845f1a.js +26 -0
- package/hooks/useModal/index.6571d2d9.js +6 -0
- package/index.js +162 -70
- package/lodash.e09401f0.js +32 -0
- package/node_modules.168cb897.js +55 -0
- package/package.json +1 -1
- package/react-data-grid.d46d625e.js +2115 -0
- package/react-draggable.20e95c61.js +714 -0
- package/react-json-view.f56a7f8e.js +2762 -0
- package/react-lazy-load-image-component.45b56650.js +784 -0
- package/react-resizable.5277deaf.js +371 -0
- package/react-splitter-layout.7810ac1b.js +165 -0
- package/utils/index.214d9542.js +435 -0
- package/assets/Logo/index.js +0 -91
- package/commonjs.js +0 -9
- package/components/CommonActions/components/ActionCancel/index.js +0 -15
- package/components/CommonActions/components/ActionFormCancel/index.js +0 -62
- package/components/CommonActions/components/ActionFormIntro/index.js +0 -35
- package/components/CommonActions/components/ActionIntro/index.js +0 -16
- package/components/CommonActions/components/Actions/index.js +0 -859
- package/components/DataGrid/index.js +0 -1067
- package/components/DynamicFilter/index.js +0 -1573
- package/components/ErrorLabel/index.js +0 -18
- package/components/Icon/index.js +0 -80
- package/components/Image/index.js +0 -128
- package/components/LanguagePopover/index.js +0 -93
- package/components/Loadable/index.js +0 -13
- package/components/ModalDialog/index.js +0 -180
- package/components/ObjectLogs/index.js +0 -284
- package/components/Page/index.js +0 -36
- package/components/PaperForm/index.js +0 -110
- package/components/Period/index.js +0 -230
- package/components/PropertyValue/index.js +0 -142
- package/components/ScrollBar/index.js +0 -52
- package/components/ScrollToTop/index.js +0 -10
- package/components/animate/MotionContainer/index.js +0 -31
- package/components/animate/MotionLazyContainer/index.js +0 -13
- package/components/animate/features.js +0 -2
- package/components/animate/variants/container.js +0 -20
- package/components/animate/variants/fade.js +0 -61
- package/components/animate/variants/transition.js +0 -16
- package/components/formatters/BooleanFormatter/index.js +0 -52
- package/components/formatters/DateFormatter/index.js +0 -66
- package/components/formatters/index.js +0 -112
- package/components/hook-form/FormProvider/index.js +0 -61
- package/components/hook-form/RHFAutocomplete/index.js +0 -144
- package/components/hook-form/RHFAutocompleteAsync/index.js +0 -191
- package/components/hook-form/RHFCheckbox/index.js +0 -65
- package/components/hook-form/RHFDateTime/index.js +0 -79
- package/components/hook-form/RHFMultiCheckbox/index.js +0 -32
- package/components/hook-form/RHFPeriod/index.js +0 -47
- package/components/hook-form/RHFRadioGroup/index.js +0 -41
- package/components/hook-form/RHFSelect/index.js +0 -34
- package/components/hook-form/RHFTextField/index.js +0 -87
- package/components/hook-form/RHFUpload/index.js +0 -255
- package/components/mui_extended/Accordion/index.js +0 -105
- package/components/mui_extended/Avatar/index.js +0 -33
- package/components/mui_extended/BoxIcon/index.js +0 -20
- package/components/mui_extended/Breadcrumbs/index.js +0 -92
- package/components/mui_extended/Button/index.js +0 -131
- package/components/mui_extended/IconButton/index.js +0 -108
- package/components/mui_extended/LinkWithRoute/index.js +0 -30
- package/components/mui_extended/MenuPopover/index.js +0 -135
- package/components/mui_extended/Pager/index.js +0 -137
- package/components/mui_extended/Tab/index.js +0 -30
- package/components/mui_extended/Typography/index.js +0 -21
- package/contexts/ModalContext/index.js +0 -165
- package/hooks/useFormAddEdit/index.js +0 -42
- package/hooks/useModal/index.js +0 -4
- package/lodash.js +0 -62
- package/node_modules.js +0 -54
- package/react-data-grid.js +0 -2652
- package/react-draggable.js +0 -960
- package/react-json-view.js +0 -2764
- package/react-lazy-load-image-component.js +0 -792
- package/react-resizable.js +0 -541
- package/react-splitter-layout.js +0 -165
- package/utils/index.js +0 -572
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { styled as p } from "@mui/material";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
const a = p("p")(({
|
|
4
|
+
theme: r
|
|
5
|
+
}) => ({
|
|
6
|
+
...r.typography.caption,
|
|
7
|
+
color: r.palette.error.main,
|
|
8
|
+
margin: "8px 14px 0 14px"
|
|
9
|
+
})), s = (r) => {
|
|
10
|
+
const {
|
|
11
|
+
message: o
|
|
12
|
+
} = r;
|
|
13
|
+
return /* @__PURE__ */ t(a, {
|
|
14
|
+
children: o
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
s as E
|
|
19
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { styled as c } from "@mui/material";
|
|
2
|
+
import { useState as j, useMemo as C, useEffect as l } from "react";
|
|
3
|
+
import { useTheme as g } from "@mui/material/styles";
|
|
4
|
+
import { g as m } from "../../utils/index.214d9542.js";
|
|
5
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
6
|
+
const I = c("div", {
|
|
7
|
+
shouldForwardProp: (M) => M !== "src" && M !== "sizeIcon" && M !== "bgColor"
|
|
8
|
+
})(({
|
|
9
|
+
size: M,
|
|
10
|
+
src: L,
|
|
11
|
+
bgColor: e
|
|
12
|
+
}) => ({
|
|
13
|
+
maskPosition: "center!important",
|
|
14
|
+
maskRepeat: "no-repeat!important",
|
|
15
|
+
WebkitMaskRepeat: "no-repeat!important",
|
|
16
|
+
width: M,
|
|
17
|
+
height: M,
|
|
18
|
+
backgroundColor: e,
|
|
19
|
+
mask: `url('data:image/svg+xml;base64,${L}')`,
|
|
20
|
+
WebkitMask: `url('data:image/svg+xml;base64,${L}')`
|
|
21
|
+
})), D = c("div")(() => ({
|
|
22
|
+
display: "flex",
|
|
23
|
+
justifyContent: "center",
|
|
24
|
+
alignItems: "center"
|
|
25
|
+
}));
|
|
26
|
+
function A(M) {
|
|
27
|
+
const {
|
|
28
|
+
src: L,
|
|
29
|
+
size: e = "small",
|
|
30
|
+
bgColor: o = "action.active"
|
|
31
|
+
} = M, [u, w] = j(void 0), a = g(), r = C(() => {
|
|
32
|
+
switch (e) {
|
|
33
|
+
case "extra-small":
|
|
34
|
+
return "12px";
|
|
35
|
+
case "small":
|
|
36
|
+
return "16px";
|
|
37
|
+
case "medium":
|
|
38
|
+
return "18px";
|
|
39
|
+
case "large":
|
|
40
|
+
return "22px";
|
|
41
|
+
}
|
|
42
|
+
return e;
|
|
43
|
+
}, [e]);
|
|
44
|
+
return l(() => {
|
|
45
|
+
let i = !0;
|
|
46
|
+
return async function() {
|
|
47
|
+
await fetch(L).then((t) => t.text() || "").then((t) => {
|
|
48
|
+
t = t.match(
|
|
49
|
+
/(<svg\b[^>]*\s*(viewBox="(\b[^"]*)").*?>([\s\S]*?)<\/svg>|<svg>([\s\S]*?)<\/svg>)/g
|
|
50
|
+
)?.toString() || "", i && w(window.btoa(t));
|
|
51
|
+
}).catch((t) => {
|
|
52
|
+
});
|
|
53
|
+
}(), function() {
|
|
54
|
+
i = !1;
|
|
55
|
+
};
|
|
56
|
+
}, [L]), /* @__PURE__ */ s(D, {
|
|
57
|
+
className: "m4l_icon",
|
|
58
|
+
children: u ? /* @__PURE__ */ s(I, {
|
|
59
|
+
src: u,
|
|
60
|
+
size: r,
|
|
61
|
+
bgColor: m(a.palette, o)
|
|
62
|
+
}) : /* @__PURE__ */ s("img", {
|
|
63
|
+
src: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkNhcGFfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiCgkgdmlld0JveD0iMCAwIDcwIDcwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA3MCA3MDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9j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
70
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { b as s } from "../../react-lazy-load-image-component.45b56650.js";
|
|
2
|
+
import { Skeleton as N, Box as l } from "@mui/material";
|
|
3
|
+
import { styled as I, useTheme as g } from "@mui/material/styles";
|
|
4
|
+
import { jsx as L } from "react/jsx-runtime";
|
|
5
|
+
const z = I("div")(({
|
|
6
|
+
theme: M,
|
|
7
|
+
width: w
|
|
8
|
+
}) => ({
|
|
9
|
+
width: w,
|
|
10
|
+
height: "100%",
|
|
11
|
+
padding: M.spacing(3),
|
|
12
|
+
mask: `zurl("data:image/svg+xml,%3Csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 70 70' style='enable-background:new 0 0 70 70%3B' xml:space='preserve'%3E%3Cg%3E%3Cpath d='M45 8.7c1.4-1.5 3.4-2.3 5.4-2.3s3.9 0.8 5.4 2.3s2.4 3.5 2.5 5.7c0 2.2-0.9 4.2-2.4 5.7s-3.5 2.3-5.5 2.2c-2.1 0.1-4-0.7-5.5-2.2c-1.4-1.5-2.3-3.5-2.4-5.7C42.6 12.2 43.5 10.2 45 8.7z'/%3E%3Cpath d='M68.4 62.1c-0.3 0.5-0.7 0.8-1.2 1.1s-1 0.4-1.6 0.4H4.3c-0.6 0-1.1-0.1-1.6-0.4s-0.9-0.6-1.2-1.1c-0.2-0.5-0.4-1-0.4-1.5s0.1-1.1 0.4-1.5l23-36.4c0.3-0.5 0.7-0.8 1.2-1.1c0.5-0.3 1-0.4 1.6-0.4c0.6 0 1.1 0.1 1.6 0.4c0.5 0.3 0.9 0.6 1.2 1.1l11.5 18.2c0.2 0.3 0.5 0.5 0.8 0.7c0.3 0.2 0.6 0.3 1 0.3c0.3 0 0.7-0.1 1-0.3c0.3-0.2 0.6-0.4 0.8-0.7l3.1-4.9c0.3-0.5 0.7-0.8 1.2-1.1c0.5-0.3 1-0.4 1.6-0.4c0.6 0 1.1 0.1 1.6 0.4c0.5 0.3 0.9 0.6 1.2 1.1l14.6 23.1c0.3 0.5 0.3 1 0.3 1.5S68.7 61.7 68.4 62.1z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain`,
|
|
13
|
+
WebkitMask: `url("data:image/svg+xml,%3Csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 70 70' style='enable-background:new 0 0 70 70%3B' xml:space='preserve'%3E%3Cg%3E%3Cpath d='M45 8.7c1.4-1.5 3.4-2.3 5.4-2.3s3.9 0.8 5.4 2.3s2.4 3.5 2.5 5.7c0 2.2-0.9 4.2-2.4 5.7s-3.5 2.3-5.5 2.2c-2.1 0.1-4-0.7-5.5-2.2c-1.4-1.5-2.3-3.5-2.4-5.7C42.6 12.2 43.5 10.2 45 8.7z'/%3E%3Cpath d='M68.4 62.1c-0.3 0.5-0.7 0.8-1.2 1.1s-1 0.4-1.6 0.4H4.3c-0.6 0-1.1-0.1-1.6-0.4s-0.9-0.6-1.2-1.1c-0.2-0.5-0.4-1-0.4-1.5s0.1-1.1 0.4-1.5l23-36.4c0.3-0.5 0.7-0.8 1.2-1.1c0.5-0.3 1-0.4 1.6-0.4c0.6 0 1.1 0.1 1.6 0.4c0.5 0.3 0.9 0.6 1.2 1.1l11.5 18.2c0.2 0.3 0.5 0.5 0.8 0.7c0.3 0.2 0.6 0.3 1 0.3c0.3 0 0.7-0.1 1-0.3c0.3-0.2 0.6-0.4 0.8-0.7l3.1-4.9c0.3-0.5 0.7-0.8 1.2-1.1c0.5-0.3 1-0.4 1.6-0.4c0.6 0 1.1 0.1 1.6 0.4c0.5 0.3 0.9 0.6 1.2 1.1l14.6 23.1c0.3 0.5 0.3 1 0.3 1.5S68.7 61.7 68.4 62.1z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain`
|
|
14
|
+
})), t = I("div")(({
|
|
15
|
+
width: M,
|
|
16
|
+
height: w
|
|
17
|
+
}) => ({
|
|
18
|
+
".lazy-load-image-background.blur": {
|
|
19
|
+
filter: "blur(15px)"
|
|
20
|
+
},
|
|
21
|
+
".lazy-load-image-background.blur.lazy-load-image-loaded": {
|
|
22
|
+
filter: "blur(0)",
|
|
23
|
+
transition: "filter .3s;"
|
|
24
|
+
},
|
|
25
|
+
".lazy-load-image-background.blur > img": {
|
|
26
|
+
opacity: "0"
|
|
27
|
+
},
|
|
28
|
+
".lazy-load-image-background.blur.lazy-load-image-loaded > img": {
|
|
29
|
+
opacity: 1,
|
|
30
|
+
transition: "opacity .3s"
|
|
31
|
+
},
|
|
32
|
+
width: M,
|
|
33
|
+
height: w,
|
|
34
|
+
lineHeight: 0,
|
|
35
|
+
display: "block",
|
|
36
|
+
overflow: "hidden",
|
|
37
|
+
"& > span": {
|
|
38
|
+
width: "100%",
|
|
39
|
+
height: "100%"
|
|
40
|
+
},
|
|
41
|
+
"& .LazyLoadImage": {
|
|
42
|
+
width: "100%",
|
|
43
|
+
height: "100%",
|
|
44
|
+
objectFit: "contain"
|
|
45
|
+
}
|
|
46
|
+
}));
|
|
47
|
+
function A({
|
|
48
|
+
ratio: M,
|
|
49
|
+
sx: w,
|
|
50
|
+
isSkeleton: D = !1,
|
|
51
|
+
width: u = "100%",
|
|
52
|
+
height: j = "100%",
|
|
53
|
+
src: C,
|
|
54
|
+
...i
|
|
55
|
+
}) {
|
|
56
|
+
const c = g().palette.mode;
|
|
57
|
+
return D ? /* @__PURE__ */ L(z, {
|
|
58
|
+
width: u,
|
|
59
|
+
children: /* @__PURE__ */ L(N, {
|
|
60
|
+
variant: "rectangular",
|
|
61
|
+
width: "100%",
|
|
62
|
+
height: "100%"
|
|
63
|
+
})
|
|
64
|
+
}) : M ? /* @__PURE__ */ L(l, {
|
|
65
|
+
component: "span",
|
|
66
|
+
sx: {
|
|
67
|
+
width: 1,
|
|
68
|
+
lineHeight: 0,
|
|
69
|
+
display: "block",
|
|
70
|
+
overflow: "hidden",
|
|
71
|
+
position: "relative",
|
|
72
|
+
pt: a(M),
|
|
73
|
+
"& .wrapper": {
|
|
74
|
+
top: 0,
|
|
75
|
+
left: 0,
|
|
76
|
+
right: 0,
|
|
77
|
+
bottom: 0,
|
|
78
|
+
lineHeight: 0,
|
|
79
|
+
position: "absolute",
|
|
80
|
+
backgroundSize: "cover !important"
|
|
81
|
+
},
|
|
82
|
+
...w
|
|
83
|
+
},
|
|
84
|
+
children: /* @__PURE__ */ L(t, {
|
|
85
|
+
width: u,
|
|
86
|
+
height: j,
|
|
87
|
+
id: "WrapperLazyLoadImage",
|
|
88
|
+
children: /* @__PURE__ */ L(s.exports.LazyLoadImage, {
|
|
89
|
+
className: "LazyLoadImage",
|
|
90
|
+
src: C,
|
|
91
|
+
placeholderSrc: c === "light" ? "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkNhcGFfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiCgkgdmlld0JveD0iMCAwIDcwIDcwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA3MCA3MDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiM2MzczODE7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00NSw4LjdjMS40LTEuNSwzLjQtMi4zLDUuNC0yLjNzMy45LDA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MS4yLTEuMQoJCXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNGMwLjUsMC4zLDAuOSwwLjYsMS4yLDEuMWwxNC42LDIzLjFjMC4zLDAuNSwwLjMsMSwwLjMsMS41UzY4LjcsNjEuNyw2OC40LDYyLjF6Ii8+CjwvZz4KPC9zdmc+Cg==",
|
|
92
|
+
...i
|
|
93
|
+
})
|
|
94
|
+
})
|
|
95
|
+
}) : /* @__PURE__ */ L(t, {
|
|
96
|
+
width: u,
|
|
97
|
+
height: j,
|
|
98
|
+
id: "WrapperLazyLoadImage",
|
|
99
|
+
children: /* @__PURE__ */ L(s.exports.LazyLoadImage, {
|
|
100
|
+
className: "LazyLoadImage",
|
|
101
|
+
src: C,
|
|
102
|
+
placeholderSrc: c === "light" ? "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkNhcGFfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiCgkgdmlld0JveD0iMCAwIDcwIDcwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA3MCA3MDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiM2MzczODE7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00NSw4LjdjMS40LTEuNSwzLjQtMi4zLDUuNC0yLjNzMy45LDAuOCw1LjQsMi4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CXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNGMwLjUsMC4zLDAuOSwwLjYsMS4yLDEuMWwxNC42LDIzLjFjMC4zLDAuNSwwLjMsMSwwLjMsMS41UzY4LjcsNjEuNyw2OC40LDYyLjF6Ii8+CjwvZz4KPC9zdmc+Cg==",
|
|
103
|
+
...i
|
|
104
|
+
})
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
function a(M = "1/1") {
|
|
108
|
+
return {
|
|
109
|
+
"4/3": "calc(100% / 4 * 3)",
|
|
110
|
+
"3/4": "calc(100% / 3 * 4)",
|
|
111
|
+
"6/4": "calc(100% / 6 * 4)",
|
|
112
|
+
"4/6": "calc(100% / 4 * 6)",
|
|
113
|
+
"16/9": "calc(100% / 16 * 9)",
|
|
114
|
+
"9/16": "calc(100% / 9 * 16)",
|
|
115
|
+
"21/9": "calc(100% / 21 * 9)",
|
|
116
|
+
"9/21": "calc(100% / 9 * 21)",
|
|
117
|
+
"1/1": "100%"
|
|
118
|
+
}[M];
|
|
119
|
+
}
|
|
120
|
+
export {
|
|
121
|
+
A as I
|
|
122
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { useState as u } from "react";
|
|
2
|
+
import { styled as d, Skeleton as h, IconButton as g, Stack as f, MenuItem as v } from "@mui/material";
|
|
3
|
+
import { I as a } from "../Image/index.e790b50b.js";
|
|
4
|
+
import { useLocales as L } from "@m4l/graphics";
|
|
5
|
+
import { useModuleSkeleton as b } from "@m4l/core";
|
|
6
|
+
import "../Icon/index.cbca79b0.js";
|
|
7
|
+
import "@mui/material/styles";
|
|
8
|
+
import { jsx as r, jsxs as m, Fragment as x } from "react/jsx-runtime";
|
|
9
|
+
import "../mui_extended/Accordion/index.2116e423.js";
|
|
10
|
+
import "../mui_extended/Avatar/index.0a2a4523.js";
|
|
11
|
+
import "react-router-dom";
|
|
12
|
+
import "@mui/material/Button";
|
|
13
|
+
import "../mui_extended/Button/index.84d8898c.js";
|
|
14
|
+
import "@mui/lab";
|
|
15
|
+
import { M as k } from "../mui_extended/MenuPopover/index.488fc536.js";
|
|
16
|
+
import "../CommonActions/components/Actions/index.e8148d98.js";
|
|
17
|
+
import "../mui_extended/Pager/index.0576814f.js";
|
|
18
|
+
import "../mui_extended/Tab/index.e0653a0a.js";
|
|
19
|
+
const I = d("div")(({
|
|
20
|
+
theme: t
|
|
21
|
+
}) => ({
|
|
22
|
+
marginLeft: t.spacing(1)
|
|
23
|
+
}));
|
|
24
|
+
function H() {
|
|
25
|
+
const t = b(), {
|
|
26
|
+
allLang: c,
|
|
27
|
+
currentLang: o,
|
|
28
|
+
onChangeLang: s
|
|
29
|
+
} = L(), [n, l] = u(null), p = (e) => {
|
|
30
|
+
l(e.currentTarget);
|
|
31
|
+
}, i = () => {
|
|
32
|
+
l(null);
|
|
33
|
+
};
|
|
34
|
+
return t ? /* @__PURE__ */ r(h, {
|
|
35
|
+
variant: "circular",
|
|
36
|
+
width: 20,
|
|
37
|
+
height: 20
|
|
38
|
+
}) : /* @__PURE__ */ m(x, {
|
|
39
|
+
children: [/* @__PURE__ */ r(g, {
|
|
40
|
+
onClick: p,
|
|
41
|
+
sx: {
|
|
42
|
+
width: 40,
|
|
43
|
+
height: 40,
|
|
44
|
+
...n && {
|
|
45
|
+
bgcolor: "action.selected"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
children: /* @__PURE__ */ r(a, {
|
|
49
|
+
src: o.icon,
|
|
50
|
+
alt: o.label
|
|
51
|
+
})
|
|
52
|
+
}), /* @__PURE__ */ r(k, {
|
|
53
|
+
open: Boolean(n),
|
|
54
|
+
anchorEl: n,
|
|
55
|
+
onClose: i,
|
|
56
|
+
sx: {
|
|
57
|
+
mt: 1.5,
|
|
58
|
+
ml: 0.75,
|
|
59
|
+
width: 180,
|
|
60
|
+
"& .MuiMenuItem-root": {
|
|
61
|
+
px: 1,
|
|
62
|
+
typography: "body2",
|
|
63
|
+
borderRadius: 0.75
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
children: /* @__PURE__ */ r(f, {
|
|
67
|
+
spacing: 0.75,
|
|
68
|
+
children: c.map((e) => /* @__PURE__ */ m(v, {
|
|
69
|
+
selected: e.value === o.value,
|
|
70
|
+
onClick: () => {
|
|
71
|
+
s(e.value), i();
|
|
72
|
+
},
|
|
73
|
+
children: [/* @__PURE__ */ r(a, {
|
|
74
|
+
alt: e.label,
|
|
75
|
+
src: e.icon,
|
|
76
|
+
width: "24px"
|
|
77
|
+
}), /* @__PURE__ */ r(I, {
|
|
78
|
+
children: e.label
|
|
79
|
+
})]
|
|
80
|
+
}, e.value))
|
|
81
|
+
})
|
|
82
|
+
})]
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
export {
|
|
86
|
+
H as L
|
|
87
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Suspense as a } from "react";
|
|
2
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
+
const l = (o) => function(r) {
|
|
4
|
+
return /* @__PURE__ */ e(a, {
|
|
5
|
+
fallback: /* @__PURE__ */ e("div", {
|
|
6
|
+
children: "Cargando"
|
|
7
|
+
}),
|
|
8
|
+
children: /* @__PURE__ */ e(o, {
|
|
9
|
+
...r
|
|
10
|
+
})
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
l as L
|
|
15
|
+
};
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { Dialog as b, IconButton as w, Paper as v } from "@mui/material";
|
|
2
|
+
import { c as D } from "../../react-draggable.20e95c61.js";
|
|
3
|
+
import { u as $ } from "../../hooks/useModal/index.6571d2d9.js";
|
|
4
|
+
import { styled as s } from "@mui/material/styles";
|
|
5
|
+
import { a as x } from "../../utils/index.214d9542.js";
|
|
6
|
+
import { R as M } from "../Resizeable/index.45995d2b.js";
|
|
7
|
+
import { useResponsiveDesktop as H } from "@m4l/graphics";
|
|
8
|
+
import { useEnvironment as I } from "@m4l/core";
|
|
9
|
+
import { I as C } from "../Icon/index.cbca79b0.js";
|
|
10
|
+
import { jsxs as h, jsx as n } from "react/jsx-runtime";
|
|
11
|
+
import { b as W, g as _ } from "../CommonActions/components/Actions/index.e8148d98.js";
|
|
12
|
+
const j = s(b)(() => ({})), k = s("div")(({ theme: o }) => ({
|
|
13
|
+
display: "flex",
|
|
14
|
+
flexDirection: "column",
|
|
15
|
+
height: "100%",
|
|
16
|
+
overflow: "hidden",
|
|
17
|
+
padding: o.spacing(3)
|
|
18
|
+
})), P = s("div")(({ theme: o }) => ({
|
|
19
|
+
display: "flex",
|
|
20
|
+
alignItems: "center",
|
|
21
|
+
justifyContent: "space-between",
|
|
22
|
+
minHeight: o.spacing(5),
|
|
23
|
+
borderBottom: `1px solid ${o.palette.divider}`,
|
|
24
|
+
overflow: "hidden"
|
|
25
|
+
}));
|
|
26
|
+
s("div")(({ theme: o }) => ({
|
|
27
|
+
display: "flex",
|
|
28
|
+
flexDirection: "row",
|
|
29
|
+
flexGrow: 1,
|
|
30
|
+
alignItems: "center",
|
|
31
|
+
cursor: "move",
|
|
32
|
+
...o.typography.subtitle1,
|
|
33
|
+
color: o.palette.text.primary
|
|
34
|
+
}));
|
|
35
|
+
const R = s("div")(({ theme: o, variant: t }) => ({
|
|
36
|
+
display: "flex",
|
|
37
|
+
alignItems: "center",
|
|
38
|
+
justifyContent: "center",
|
|
39
|
+
marginRight: o.spacing(1.5),
|
|
40
|
+
"& > span": {
|
|
41
|
+
background: x(o, t)
|
|
42
|
+
}
|
|
43
|
+
})), S = s("div")(() => ({
|
|
44
|
+
flexGrow: 1,
|
|
45
|
+
position: "relative",
|
|
46
|
+
overflow: "auto"
|
|
47
|
+
})), A = s("div")(({ theme: o, variant: t }) => ({
|
|
48
|
+
...o.typography.subtitle1,
|
|
49
|
+
color: x(o, t),
|
|
50
|
+
width: "100%",
|
|
51
|
+
whiteSpace: "nowrap",
|
|
52
|
+
textOverflow: "ellipsis",
|
|
53
|
+
overflow: "hidden"
|
|
54
|
+
})), B = (o) => {
|
|
55
|
+
const {
|
|
56
|
+
host_static_assets: t,
|
|
57
|
+
environment_assets: e
|
|
58
|
+
} = I(), {
|
|
59
|
+
variant: i,
|
|
60
|
+
title: d,
|
|
61
|
+
iconComponent: r,
|
|
62
|
+
withClose: p,
|
|
63
|
+
onCloseModal: a
|
|
64
|
+
} = o, m = `${t}/${e}/frontend/components/dialog/assets/icons/warning.svg`, g = `${t}/${e}/frontend/components/dialog/assets/icons/error.svg`, f = `${t}/${e}/frontend/components/dialog/assets/icons/info.svg`, l = `${t}/${e}/frontend/components/dialog/assets/icons/icon_bar_title.svg`;
|
|
65
|
+
return /* @__PURE__ */ h(P, {
|
|
66
|
+
id: "Header",
|
|
67
|
+
className: "draggable-dialog-title",
|
|
68
|
+
children: [/* @__PURE__ */ n(R, {
|
|
69
|
+
variant: i,
|
|
70
|
+
children: r || /* @__PURE__ */ n(C, {
|
|
71
|
+
src: i === "warning" ? m : i === "delete" ? g : i === "info" ? f : l
|
|
72
|
+
})
|
|
73
|
+
}), /* @__PURE__ */ n(A, {
|
|
74
|
+
variant: i,
|
|
75
|
+
children: d
|
|
76
|
+
}), p && /* @__PURE__ */ n(w, {
|
|
77
|
+
onClick: a,
|
|
78
|
+
"aria-label": "click",
|
|
79
|
+
children: /* @__PURE__ */ n(C, {
|
|
80
|
+
src: `${t}/${e}/frontend/components/dialog/assets/icons/close.svg`
|
|
81
|
+
})
|
|
82
|
+
})]
|
|
83
|
+
});
|
|
84
|
+
}, E = (o) => /* @__PURE__ */ n(D.exports, {
|
|
85
|
+
handle: ".draggable-dialog-title",
|
|
86
|
+
cancel: '[class*="MuiDialogContent-root"]',
|
|
87
|
+
children: /* @__PURE__ */ n(v, {
|
|
88
|
+
sx: {
|
|
89
|
+
maxHeight: "unset",
|
|
90
|
+
maxWidth: "unset"
|
|
91
|
+
},
|
|
92
|
+
...o
|
|
93
|
+
})
|
|
94
|
+
});
|
|
95
|
+
function G(o) {
|
|
96
|
+
return /* @__PURE__ */ n(v, {
|
|
97
|
+
sx: {
|
|
98
|
+
maxHeight: "unset",
|
|
99
|
+
maxWidth: "unset",
|
|
100
|
+
height: "100%"
|
|
101
|
+
},
|
|
102
|
+
...o
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
const X = () => {
|
|
106
|
+
const {
|
|
107
|
+
open: o,
|
|
108
|
+
initialWidth: t = 600,
|
|
109
|
+
initialHeigth: e = 400,
|
|
110
|
+
maxWidth: i,
|
|
111
|
+
maxHeigth: d,
|
|
112
|
+
withClose: r = !0,
|
|
113
|
+
onQueryClose: p,
|
|
114
|
+
contentComponent: a,
|
|
115
|
+
title: m,
|
|
116
|
+
closeModal: g,
|
|
117
|
+
iconComponent: f,
|
|
118
|
+
actions: l,
|
|
119
|
+
variant: y
|
|
120
|
+
} = $(), c = H(), u = /* @__PURE__ */ h(k, {
|
|
121
|
+
id: "Container",
|
|
122
|
+
children: [
|
|
123
|
+
/* @__PURE__ */ n(B, {
|
|
124
|
+
variant: y,
|
|
125
|
+
title: m,
|
|
126
|
+
iconComponent: f,
|
|
127
|
+
withClose: r,
|
|
128
|
+
onCloseModal: () => {
|
|
129
|
+
g();
|
|
130
|
+
}
|
|
131
|
+
}),
|
|
132
|
+
/* @__PURE__ */ n(S, {
|
|
133
|
+
id: "Content",
|
|
134
|
+
children: typeof a == "function" ? a() : a
|
|
135
|
+
}),
|
|
136
|
+
l && /* @__PURE__ */ n(W, {
|
|
137
|
+
children: l
|
|
138
|
+
})
|
|
139
|
+
]
|
|
140
|
+
});
|
|
141
|
+
return /* @__PURE__ */ h(j, {
|
|
142
|
+
open: o,
|
|
143
|
+
onClose: p,
|
|
144
|
+
"aria-labelledby": "child-modal-title",
|
|
145
|
+
"aria-describedby": "child-modal-description",
|
|
146
|
+
PaperComponent: c ? E : G,
|
|
147
|
+
maxWidth: !1,
|
|
148
|
+
fullWidth: !c,
|
|
149
|
+
children: [c && /* @__PURE__ */ n(M, {
|
|
150
|
+
width: t,
|
|
151
|
+
height: e,
|
|
152
|
+
maxWidth: i,
|
|
153
|
+
maxHeigth: d,
|
|
154
|
+
children: u
|
|
155
|
+
}), !c && u]
|
|
156
|
+
});
|
|
157
|
+
};
|
|
158
|
+
function Y() {
|
|
159
|
+
return ["modal_dialog"].concat(_());
|
|
160
|
+
}
|
|
161
|
+
const Z = {
|
|
162
|
+
modal_dialog: {}
|
|
163
|
+
};
|
|
164
|
+
export {
|
|
165
|
+
X as M,
|
|
166
|
+
Z as d,
|
|
167
|
+
Y as g
|
|
168
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { useEnvironment, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
2
|
-
import { styled } from "@mui/material/styles";
|
|
3
|
-
import { I as
|
|
4
|
-
import { Skeleton } from "@mui/material";
|
|
5
|
-
import { useMemo } from "react";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
const
|
|
8
|
-
theme
|
|
1
|
+
import { useEnvironment as r, useModuleDictionary as l, useModuleSkeleton as p } from "@m4l/core";
|
|
2
|
+
import { styled as c } from "@mui/material/styles";
|
|
3
|
+
import { I as d } from "../Image/index.e790b50b.js";
|
|
4
|
+
import { Skeleton as m } from "@mui/material";
|
|
5
|
+
import { useMemo as g } from "react";
|
|
6
|
+
import { jsx as t, jsxs as x } from "react/jsx-runtime";
|
|
7
|
+
const s = c("div")(({
|
|
8
|
+
theme: e
|
|
9
9
|
}) => ({
|
|
10
10
|
width: "100%",
|
|
11
11
|
maxWidth: "400px",
|
|
@@ -14,19 +14,16 @@ const WrapperNoItemSelected = styled("div")(({
|
|
|
14
14
|
flexDirection: "column",
|
|
15
15
|
alignItems: "center",
|
|
16
16
|
justifyContent: "center",
|
|
17
|
-
padding:
|
|
18
|
-
}))
|
|
19
|
-
const Img = styled(Image)(() => ({
|
|
17
|
+
padding: e.spacing(3)
|
|
18
|
+
})), w = c(d)(() => ({
|
|
20
19
|
display: "flex"
|
|
21
|
-
}))
|
|
22
|
-
|
|
23
|
-
theme
|
|
20
|
+
})), h = c("span")(({
|
|
21
|
+
theme: e
|
|
24
22
|
}) => ({
|
|
25
|
-
...
|
|
26
|
-
padding: `${
|
|
27
|
-
color:
|
|
28
|
-
}))
|
|
29
|
-
const WrapperSKTNoItemSelected = styled("div")(() => ({
|
|
23
|
+
...e.typography.body2,
|
|
24
|
+
padding: `${e.spacing(1.5)} ${e.spacing(1)} ${e.spacing(1)} ${e.spacing(1)}`,
|
|
25
|
+
color: e.palette.text.primary
|
|
26
|
+
})), u = c("div")(() => ({
|
|
30
27
|
display: "flex",
|
|
31
28
|
width: "100%",
|
|
32
29
|
minWidth: "100%",
|
|
@@ -34,48 +31,44 @@ const WrapperSKTNoItemSelected = styled("div")(() => ({
|
|
|
34
31
|
mask: `url("data:image/svg+xml,%3Csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 70 70' style='enable-background:new 0 0 70 70%3B' xml:space='preserve'%3E%3Cg%3E%3Cpath d='M45 8.7c1.4-1.5 3.4-2.3 5.4-2.3s3.9 0.8 5.4 2.3s2.4 3.5 2.5 5.7c0 2.2-0.9 4.2-2.4 5.7s-3.5 2.3-5.5 2.2c-2.1 0.1-4-0.7-5.5-2.2c-1.4-1.5-2.3-3.5-2.4-5.7C42.6 12.2 43.5 10.2 45 8.7z'/%3E%3Cpath d='M68.4 62.1c-0.3 0.5-0.7 0.8-1.2 1.1s-1 0.4-1.6 0.4H4.3c-0.6 0-1.1-0.1-1.6-0.4s-0.9-0.6-1.2-1.1c-0.2-0.5-0.4-1-0.4-1.5s0.1-1.1 0.4-1.5l23-36.4c0.3-0.5 0.7-0.8 1.2-1.1c0.5-0.3 1-0.4 1.6-0.4c0.6 0 1.1 0.1 1.6 0.4c0.5 0.3 0.9 0.6 1.2 1.1l11.5 18.2c0.2 0.3 0.5 0.5 0.8 0.7c0.3 0.2 0.6 0.3 1 0.3c0.3 0 0.7-0.1 1-0.3c0.3-0.2 0.6-0.4 0.8-0.7l3.1-4.9c0.3-0.5 0.7-0.8 1.2-1.1c0.5-0.3 1-0.4 1.6-0.4c0.6 0 1.1 0.1 1.6 0.4c0.5 0.3 0.9 0.6 1.2 1.1l14.6 23.1c0.3 0.5 0.3 1 0.3 1.5S68.7 61.7 68.4 62.1z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain`,
|
|
35
32
|
WebkitMask: `url("data:image/svg+xml,%3Csvg version='1.1' id='Capa_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 70 70' style='enable-background:new 0 0 70 70%3B' xml:space='preserve'%3E%3Cg%3E%3Cpath d='M45 8.7c1.4-1.5 3.4-2.3 5.4-2.3s3.9 0.8 5.4 2.3s2.4 3.5 2.5 5.7c0 2.2-0.9 4.2-2.4 5.7s-3.5 2.3-5.5 2.2c-2.1 0.1-4-0.7-5.5-2.2c-1.4-1.5-2.3-3.5-2.4-5.7C42.6 12.2 43.5 10.2 45 8.7z'/%3E%3Cpath d='M68.4 62.1c-0.3 0.5-0.7 0.8-1.2 1.1s-1 0.4-1.6 0.4H4.3c-0.6 0-1.1-0.1-1.6-0.4s-0.9-0.6-1.2-1.1c-0.2-0.5-0.4-1-0.4-1.5s0.1-1.1 0.4-1.5l23-36.4c0.3-0.5 0.7-0.8 1.2-1.1c0.5-0.3 1-0.4 1.6-0.4c0.6 0 1.1 0.1 1.6 0.4c0.5 0.3 0.9 0.6 1.2 1.1l11.5 18.2c0.2 0.3 0.5 0.5 0.8 0.7c0.3 0.2 0.6 0.3 1 0.3c0.3 0 0.7-0.1 1-0.3c0.3-0.2 0.6-0.4 0.8-0.7l3.1-4.9c0.3-0.5 0.7-0.8 1.2-1.1c0.5-0.3 1-0.4 1.6-0.4c0.6 0 1.1 0.1 1.6 0.4c0.5 0.3 0.9 0.6 1.2 1.1l14.6 23.1c0.3 0.5 0.3 1 0.3 1.5S68.7 61.7 68.4 62.1z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain`
|
|
36
33
|
}));
|
|
37
|
-
function
|
|
38
|
-
const {
|
|
39
|
-
host_static_assets,
|
|
40
|
-
environment_assets
|
|
41
|
-
} = useEnvironment();
|
|
34
|
+
function E() {
|
|
42
35
|
const {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
id: "
|
|
52
|
-
children: /* @__PURE__ */
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
width: "100%",
|
|
57
|
-
height: "100%"
|
|
58
|
-
})
|
|
36
|
+
host_static_assets: e,
|
|
37
|
+
environment_assets: n
|
|
38
|
+
} = r(), {
|
|
39
|
+
getLabel: i
|
|
40
|
+
} = l(), o = p(), a = g(() => `${e}/${n}/frontend/components/no_item_selected/assets/icons/no_selected.svg`, []);
|
|
41
|
+
return o ? /* @__PURE__ */ t(s, {
|
|
42
|
+
id: "WrapperNoItemSelected",
|
|
43
|
+
children: /* @__PURE__ */ t(u, {
|
|
44
|
+
id: "WrapperSKTNoItemSelected",
|
|
45
|
+
children: /* @__PURE__ */ t(m, {
|
|
46
|
+
variant: "rectangular",
|
|
47
|
+
width: "100%",
|
|
48
|
+
height: "100%"
|
|
59
49
|
})
|
|
60
|
-
})
|
|
61
|
-
}
|
|
62
|
-
return /* @__PURE__ */ jsxs(WrapperNoItemSelected, {
|
|
50
|
+
})
|
|
51
|
+
}) : /* @__PURE__ */ x(s, {
|
|
63
52
|
id: "WrapperNoItemSelected",
|
|
64
|
-
children: [/* @__PURE__ */
|
|
65
|
-
src,
|
|
53
|
+
children: [/* @__PURE__ */ t(w, {
|
|
54
|
+
src: a,
|
|
66
55
|
width: "100%",
|
|
67
56
|
height: "100%"
|
|
68
|
-
}), /* @__PURE__ */
|
|
69
|
-
children:
|
|
57
|
+
}), /* @__PURE__ */ t(h, {
|
|
58
|
+
children: i("no_item_selected.message")
|
|
70
59
|
})]
|
|
71
60
|
});
|
|
72
61
|
}
|
|
73
|
-
function
|
|
62
|
+
function k() {
|
|
74
63
|
return ["no_item_selected"];
|
|
75
64
|
}
|
|
76
|
-
const
|
|
65
|
+
const I = {
|
|
77
66
|
no_item_selected: {
|
|
78
67
|
message: "Please select a item to show detail"
|
|
79
68
|
}
|
|
80
69
|
};
|
|
81
|
-
export {
|
|
70
|
+
export {
|
|
71
|
+
E as N,
|
|
72
|
+
I as d,
|
|
73
|
+
k as g
|
|
74
|
+
};
|