@m4l/components 0.0.57 → 0.0.60
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/components/DynamicFilter/index.js +27 -21
- package/dist/components/Icon/index.js +3 -2
- package/dist/components/Page/index.js +2 -2
- package/dist/index.js +1 -0
- package/dist/node_modules.js +99 -594
- package/dist/react-draggable.js +3 -3
- package/dist/react-resizable.js +3 -3
- package/dist/react-splitter-layout.js +21 -21
- package/dist/simplebar.js +4 -4
- package/package.json +2 -2
|
@@ -33,7 +33,9 @@ const WrapperApplyedFilters = styled("div")(({
|
|
|
33
33
|
theme
|
|
34
34
|
}) => ({
|
|
35
35
|
width: "100%",
|
|
36
|
-
|
|
36
|
+
margin: theme.spacing(0, 1.5),
|
|
37
|
+
paddingLeft: theme.spacing(1.5),
|
|
38
|
+
borderLeft: `1px solid ${theme.palette.divider}`
|
|
37
39
|
}));
|
|
38
40
|
const ContainerApplyedFilters = styled("div")(({
|
|
39
41
|
theme
|
|
@@ -42,7 +44,7 @@ const ContainerApplyedFilters = styled("div")(({
|
|
|
42
44
|
display: "flex",
|
|
43
45
|
justifyContent: "flex-start",
|
|
44
46
|
alignItems: "center",
|
|
45
|
-
height:
|
|
47
|
+
height: "auto",
|
|
46
48
|
gap: theme.spacing(1.5)
|
|
47
49
|
}));
|
|
48
50
|
const STRING_OPERATORS = ["c", "nc"];
|
|
@@ -1043,8 +1045,9 @@ const WrapperApplyedFilter = styled("div")(({
|
|
|
1043
1045
|
display: "flex",
|
|
1044
1046
|
justifyContent: "center",
|
|
1045
1047
|
alignItems: "center",
|
|
1046
|
-
height:
|
|
1047
|
-
|
|
1048
|
+
height: "100%",
|
|
1049
|
+
minHeight: theme.spacing(3),
|
|
1050
|
+
padding: theme.spacing(0, 1),
|
|
1048
1051
|
backgroundColor: theme.palette.action.disabledBackground,
|
|
1049
1052
|
borderRadius: theme.spacing(1),
|
|
1050
1053
|
"&.waf_no_setted": {
|
|
@@ -1059,7 +1062,7 @@ const AplyedFilterStyled = styled("div")(({
|
|
|
1059
1062
|
justifyContent: "center",
|
|
1060
1063
|
alignItems: "center",
|
|
1061
1064
|
width: "auto",
|
|
1062
|
-
height:
|
|
1065
|
+
height: "100%",
|
|
1063
1066
|
marginRight: theme.spacing(1),
|
|
1064
1067
|
marginLeft: theme.spacing(1),
|
|
1065
1068
|
whiteSpace: "nowrap"
|
|
@@ -1156,6 +1159,7 @@ function ApplyedFilters() {
|
|
|
1156
1159
|
});
|
|
1157
1160
|
}
|
|
1158
1161
|
return /* @__PURE__ */ jsx(WrapperApplyedFilters, {
|
|
1162
|
+
className: "WrapperApplyedFilters",
|
|
1159
1163
|
children: /* @__PURE__ */ jsx(ScrollBar, {
|
|
1160
1164
|
children: /* @__PURE__ */ jsx(ContainerApplyedFilters, {
|
|
1161
1165
|
id: "WrapperApplyedFilters",
|
|
@@ -1178,11 +1182,8 @@ const SKTClearFilters = styled$1("div")(({
|
|
|
1178
1182
|
const WrapperClearFilters = styled$1("div")(({
|
|
1179
1183
|
theme
|
|
1180
1184
|
}) => ({
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
marginLeft: theme.spacing(1.5),
|
|
1184
|
-
borderLeft: `1px solid ${theme.palette.divider}`
|
|
1185
|
-
}
|
|
1185
|
+
paddingLeft: theme.spacing(0.5),
|
|
1186
|
+
borderLeft: `1px solid ${theme.palette.divider}`
|
|
1186
1187
|
}));
|
|
1187
1188
|
const ClearFilters = () => {
|
|
1188
1189
|
const {
|
|
@@ -1223,7 +1224,12 @@ const SKTWrapperFilterButton = styled("div")(({
|
|
|
1223
1224
|
height: theme.spacing(3.75),
|
|
1224
1225
|
background: alpha(theme.palette.primary.main, 0.3)
|
|
1225
1226
|
}));
|
|
1226
|
-
const WrapperFilterButton = styled("div")((
|
|
1227
|
+
const WrapperFilterButton = styled("div")(({
|
|
1228
|
+
theme
|
|
1229
|
+
}) => ({
|
|
1230
|
+
paddingRight: theme.spacing(0.75),
|
|
1231
|
+
marginRight: theme.spacing(0.75),
|
|
1232
|
+
borderRight: `1px solid ${theme.palette.divider}`,
|
|
1227
1233
|
"&.isDirty": {
|
|
1228
1234
|
animationName: "dirtyEffect",
|
|
1229
1235
|
animationDuration: "1s",
|
|
@@ -1293,11 +1299,7 @@ const WrapperInputFilter = styled("div")(({
|
|
|
1293
1299
|
justifyContent: "center",
|
|
1294
1300
|
alignItems: "center",
|
|
1295
1301
|
width: "100%",
|
|
1296
|
-
height: theme.spacing(3
|
|
1297
|
-
marginLeft: theme.spacing(1.5),
|
|
1298
|
-
padding: theme.spacing(0, 1.5),
|
|
1299
|
-
borderRight: `1px solid ${theme.palette.divider}`,
|
|
1300
|
-
borderLeft: `1px solid ${theme.palette.divider}`,
|
|
1302
|
+
height: theme.spacing(3),
|
|
1301
1303
|
[theme.breakpoints.up("sm")]: {
|
|
1302
1304
|
width: theme.spacing(25)
|
|
1303
1305
|
}
|
|
@@ -1309,7 +1311,6 @@ const StyledInputFilter = styled("input")(({
|
|
|
1309
1311
|
justifyContent: "center",
|
|
1310
1312
|
alignItems: "center",
|
|
1311
1313
|
minWidth: theme.spacing(3.75),
|
|
1312
|
-
height: theme.spacing(3.75),
|
|
1313
1314
|
width: "100%",
|
|
1314
1315
|
"&": {
|
|
1315
1316
|
outline: "none",
|
|
@@ -1552,7 +1553,7 @@ const WrapperFilter = styled("div", {
|
|
|
1552
1553
|
justifyContent: "flex-start",
|
|
1553
1554
|
height: "auto",
|
|
1554
1555
|
width: "100%",
|
|
1555
|
-
padding: theme.spacing(
|
|
1556
|
+
padding: theme.spacing(0.5),
|
|
1556
1557
|
borderRadius: theme.spacing(1),
|
|
1557
1558
|
border: inEdition ? `1px solid ${theme.palette.primary.main}` : `1px solid ${theme.palette.divider}`
|
|
1558
1559
|
}));
|
|
@@ -1569,10 +1570,15 @@ const WrapperFilterMobile = styled("div", {
|
|
|
1569
1570
|
minWidth: theme.spacing(25),
|
|
1570
1571
|
height: "auto",
|
|
1571
1572
|
width: "100%",
|
|
1572
|
-
padding: theme.spacing(
|
|
1573
|
+
padding: theme.spacing(0.5),
|
|
1573
1574
|
borderRadius: theme.spacing(1),
|
|
1574
1575
|
border: inEdition ? `1px solid ${theme.palette.primary.main}` : `1px solid ${theme.palette.divider}`,
|
|
1575
|
-
gap: theme.spacing(
|
|
1576
|
+
gap: theme.spacing(0.75),
|
|
1577
|
+
"& .WrapperApplyedFilters": {
|
|
1578
|
+
margin: "0px",
|
|
1579
|
+
padding: "0px",
|
|
1580
|
+
border: "0px"
|
|
1581
|
+
}
|
|
1576
1582
|
}));
|
|
1577
1583
|
const ContainerFistRow = styled("div")(() => ({
|
|
1578
1584
|
width: "100%",
|
|
@@ -1591,7 +1597,7 @@ const DynamicFilter = (props) => {
|
|
|
1591
1597
|
children: ({
|
|
1592
1598
|
inEdition
|
|
1593
1599
|
}) => isDesktop ? /* @__PURE__ */ jsxs(WrapperFilter, {
|
|
1594
|
-
id: "
|
|
1600
|
+
id: "WrapperFilter",
|
|
1595
1601
|
inEdition,
|
|
1596
1602
|
children: [/* @__PURE__ */ jsx(FilterButton, {}), /* @__PURE__ */ jsx(InputFilter, {}), /* @__PURE__ */ jsx(ApplyedFilters, {}), /* @__PURE__ */ jsx(PopupEditFilter, {}), /* @__PURE__ */ jsx(ClearFilters, {})]
|
|
1597
1603
|
}) : /* @__PURE__ */ jsxs(WrapperFilterMobile, {
|
|
@@ -9,7 +9,8 @@ const MaskIcon = styled("div", {
|
|
|
9
9
|
width: props.width === void 0 ? "20px" : props.width,
|
|
10
10
|
height: props.height === void 0 ? "20px" : props.height,
|
|
11
11
|
backgroundColor: props.bgColor,
|
|
12
|
-
mask: `url('data:image/svg+xml;base64,${props.src}')
|
|
12
|
+
mask: `url('data:image/svg+xml;base64,${props.src}')`,
|
|
13
|
+
WebkitMask: `url('data:image/svg+xml;base64,${props.src}')`
|
|
13
14
|
}));
|
|
14
15
|
const WrapperPlaceHolder = styled("div", {
|
|
15
16
|
shouldForwardProp: (props) => props !== "widht" && props !== "height"
|
|
@@ -49,7 +50,7 @@ function Icon(props) {
|
|
|
49
50
|
return theme.palette.action.disabled;
|
|
50
51
|
}
|
|
51
52
|
return bgColor;
|
|
52
|
-
}, [bgColor]);
|
|
53
|
+
}, [bgColor, theme]);
|
|
53
54
|
useEffect(() => {
|
|
54
55
|
let mounted = true;
|
|
55
56
|
(async function networkOperation() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { forwardRef } from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { Helmet } from "react-helmet-async";
|
|
3
3
|
import { Box } from "@mui/material";
|
|
4
4
|
import { useLocales } from "@m4l/graphics";
|
|
5
5
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
@@ -14,7 +14,7 @@ const Page = forwardRef((props, ref) => {
|
|
|
14
14
|
currentLang
|
|
15
15
|
} = useLocales();
|
|
16
16
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
17
|
-
children: [/* @__PURE__ */ jsxs(
|
|
17
|
+
children: [/* @__PURE__ */ jsxs(Helmet, {
|
|
18
18
|
children: [/* @__PURE__ */ jsx("title", {
|
|
19
19
|
children: `${title} | Made4Labs`
|
|
20
20
|
}), /* @__PURE__ */ jsx("html", {
|
package/dist/index.js
CHANGED
package/dist/node_modules.js
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import { get, set, appendErrors } from "react-hook-form";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import { useMemo, useRef, useReducer, useEffect, useCallback, forwardRef, useImperativeHandle } from "react";
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
4
|
import { jsx, Fragment } from "react/jsx-runtime";
|
|
5
5
|
var e = function(i, e2, t2) {
|
|
6
6
|
if (i && "reportValidity" in i) {
|
|
7
7
|
var f2 = get(t2, e2);
|
|
8
8
|
i.setCustomValidity(f2 && f2.message || ""), i.reportValidity();
|
|
9
9
|
}
|
|
10
|
-
}, t = function(
|
|
10
|
+
}, t = function(r, i) {
|
|
11
11
|
var t2 = function(t3) {
|
|
12
12
|
var f3 = i.fields[t3];
|
|
13
|
-
f3 && f3.ref && "reportValidity" in f3.ref ? e(f3.ref, t3,
|
|
14
|
-
return e(i2, t3,
|
|
13
|
+
f3 && f3.ref && "reportValidity" in f3.ref ? e(f3.ref, t3, r) : f3.refs && f3.refs.forEach(function(i2) {
|
|
14
|
+
return e(i2, t3, r);
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
17
|
for (var f2 in i.fields)
|
|
18
18
|
t2(f2);
|
|
19
|
-
}, f
|
|
19
|
+
}, f = function(e2, f2) {
|
|
20
20
|
f2.shouldUseNativeValidation && t(e2, f2);
|
|
21
21
|
var o2 = {};
|
|
22
|
-
for (var
|
|
23
|
-
var n = get(f2.fields,
|
|
24
|
-
set(o2,
|
|
22
|
+
for (var a in e2) {
|
|
23
|
+
var n = get(f2.fields, a);
|
|
24
|
+
set(o2, a, Object.assign(e2[a], { ref: n && n.ref }));
|
|
25
25
|
}
|
|
26
26
|
return o2;
|
|
27
27
|
};
|
|
28
|
-
var o = function(o2, n,
|
|
29
|
-
return n === void 0 && (n = {}),
|
|
28
|
+
var o = function(o2, n, a) {
|
|
29
|
+
return n === void 0 && (n = {}), a === void 0 && (a = {}), function(s, i, c) {
|
|
30
30
|
try {
|
|
31
|
-
return Promise.resolve(function(t$1,
|
|
31
|
+
return Promise.resolve(function(t$1, r) {
|
|
32
32
|
try {
|
|
33
|
-
var
|
|
34
|
-
return
|
|
33
|
+
var u = (n.context && false, Promise.resolve(o2[a.mode === "sync" ? "validateSync" : "validate"](s, Object.assign({ abortEarly: false }, n, { context: i }))).then(function(t$12) {
|
|
34
|
+
return c.shouldUseNativeValidation && t({}, c), { values: a.rawValues ? s : t$12, errors: {} };
|
|
35
35
|
}));
|
|
36
36
|
} catch (e2) {
|
|
37
|
-
return
|
|
37
|
+
return r(e2);
|
|
38
38
|
}
|
|
39
|
-
return
|
|
39
|
+
return u && u.then ? u.then(void 0, r) : u;
|
|
40
40
|
}(0, function(e2) {
|
|
41
41
|
if (!e2.inner)
|
|
42
42
|
throw e2;
|
|
43
|
-
return { values: {}, errors: f
|
|
43
|
+
return { values: {}, errors: f((o3 = e2, n2 = !c.shouldUseNativeValidation && c.criteriaMode === "all", (o3.inner || []).reduce(function(e3, t2) {
|
|
44
44
|
if (e3[t2.path] || (e3[t2.path] = { message: t2.message, type: t2.type }), n2) {
|
|
45
|
-
var o4 = e3[t2.path].types,
|
|
46
|
-
e3[t2.path] = appendErrors(t2.path, n2, e3, t2.type,
|
|
45
|
+
var o4 = e3[t2.path].types, a2 = o4 && o4[t2.type];
|
|
46
|
+
e3[t2.path] = appendErrors(t2.path, n2, e3, t2.type, a2 ? [].concat(a2, t2.message) : t2.message);
|
|
47
47
|
}
|
|
48
48
|
return e3;
|
|
49
|
-
}, {})),
|
|
49
|
+
}, {})), c) };
|
|
50
50
|
var o3, n2;
|
|
51
51
|
}));
|
|
52
52
|
} catch (e2) {
|
|
@@ -54,13 +54,13 @@ var o = function(o2, n, a2) {
|
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
|
-
function __awaiter(thisArg, _arguments,
|
|
57
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
58
58
|
function adopt(value) {
|
|
59
|
-
return value instanceof
|
|
59
|
+
return value instanceof P ? value : new P(function(resolve) {
|
|
60
60
|
resolve(value);
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
return new (
|
|
63
|
+
return new (P || (P = Promise))(function(resolve, reject) {
|
|
64
64
|
function fulfilled(value) {
|
|
65
65
|
try {
|
|
66
66
|
step(generator.next(value));
|
|
@@ -82,27 +82,27 @@ function __awaiter(thisArg, _arguments, P2, generator) {
|
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
function __generator(thisArg, body) {
|
|
85
|
-
var
|
|
85
|
+
var _ = { label: 0, sent: function() {
|
|
86
86
|
if (t2[0] & 1)
|
|
87
87
|
throw t2[1];
|
|
88
88
|
return t2[1];
|
|
89
|
-
}, trys: [], ops: [] }, f2,
|
|
90
|
-
return
|
|
89
|
+
}, trys: [], ops: [] }, f2, y, t2, g;
|
|
90
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() {
|
|
91
91
|
return this;
|
|
92
|
-
}),
|
|
92
|
+
}), g;
|
|
93
93
|
function verb(n) {
|
|
94
|
-
return function(
|
|
95
|
-
return step([n,
|
|
94
|
+
return function(v) {
|
|
95
|
+
return step([n, v]);
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
98
|
function step(op) {
|
|
99
99
|
if (f2)
|
|
100
100
|
throw new TypeError("Generator is already executing.");
|
|
101
|
-
while (
|
|
101
|
+
while (_)
|
|
102
102
|
try {
|
|
103
|
-
if (f2 = 1,
|
|
103
|
+
if (f2 = 1, y && (t2 = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t2 = y["return"]) && t2.call(y), 0) : y.next) && !(t2 = t2.call(y, op[1])).done)
|
|
104
104
|
return t2;
|
|
105
|
-
if (
|
|
105
|
+
if (y = 0, t2)
|
|
106
106
|
op = [op[0] & 2, t2.value];
|
|
107
107
|
switch (op[0]) {
|
|
108
108
|
case 0:
|
|
@@ -110,45 +110,45 @@ function __generator(thisArg, body) {
|
|
|
110
110
|
t2 = op;
|
|
111
111
|
break;
|
|
112
112
|
case 4:
|
|
113
|
-
|
|
113
|
+
_.label++;
|
|
114
114
|
return { value: op[1], done: false };
|
|
115
115
|
case 5:
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
_.label++;
|
|
117
|
+
y = op[1];
|
|
118
118
|
op = [0];
|
|
119
119
|
continue;
|
|
120
120
|
case 7:
|
|
121
|
-
op =
|
|
122
|
-
|
|
121
|
+
op = _.ops.pop();
|
|
122
|
+
_.trys.pop();
|
|
123
123
|
continue;
|
|
124
124
|
default:
|
|
125
|
-
if (!(t2 =
|
|
126
|
-
|
|
125
|
+
if (!(t2 = _.trys, t2 = t2.length > 0 && t2[t2.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
126
|
+
_ = 0;
|
|
127
127
|
continue;
|
|
128
128
|
}
|
|
129
129
|
if (op[0] === 3 && (!t2 || op[1] > t2[0] && op[1] < t2[3])) {
|
|
130
|
-
|
|
130
|
+
_.label = op[1];
|
|
131
131
|
break;
|
|
132
132
|
}
|
|
133
|
-
if (op[0] === 6 &&
|
|
134
|
-
|
|
133
|
+
if (op[0] === 6 && _.label < t2[1]) {
|
|
134
|
+
_.label = t2[1];
|
|
135
135
|
t2 = op;
|
|
136
136
|
break;
|
|
137
137
|
}
|
|
138
|
-
if (t2 &&
|
|
139
|
-
|
|
140
|
-
|
|
138
|
+
if (t2 && _.label < t2[2]) {
|
|
139
|
+
_.label = t2[2];
|
|
140
|
+
_.ops.push(op);
|
|
141
141
|
break;
|
|
142
142
|
}
|
|
143
143
|
if (t2[2])
|
|
144
|
-
|
|
145
|
-
|
|
144
|
+
_.ops.pop();
|
|
145
|
+
_.trys.pop();
|
|
146
146
|
continue;
|
|
147
147
|
}
|
|
148
|
-
op = body.call(thisArg,
|
|
148
|
+
op = body.call(thisArg, _);
|
|
149
149
|
} catch (e2) {
|
|
150
150
|
op = [6, e2];
|
|
151
|
-
|
|
151
|
+
y = 0;
|
|
152
152
|
} finally {
|
|
153
153
|
f2 = t2 = 0;
|
|
154
154
|
}
|
|
@@ -158,19 +158,19 @@ function __generator(thisArg, body) {
|
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
function __read(o2, n) {
|
|
161
|
-
var
|
|
162
|
-
if (!
|
|
161
|
+
var m = typeof Symbol === "function" && o2[Symbol.iterator];
|
|
162
|
+
if (!m)
|
|
163
163
|
return o2;
|
|
164
|
-
var i =
|
|
164
|
+
var i = m.call(o2), r, ar = [], e2;
|
|
165
165
|
try {
|
|
166
|
-
while ((n === void 0 || n-- > 0) && !(
|
|
167
|
-
ar.push(
|
|
166
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
167
|
+
ar.push(r.value);
|
|
168
168
|
} catch (error) {
|
|
169
169
|
e2 = { error };
|
|
170
170
|
} finally {
|
|
171
171
|
try {
|
|
172
|
-
if (
|
|
173
|
-
|
|
172
|
+
if (r && !r.done && (m = i["return"]))
|
|
173
|
+
m.call(i);
|
|
174
174
|
} finally {
|
|
175
175
|
if (e2)
|
|
176
176
|
throw e2.error;
|
|
@@ -180,7 +180,7 @@ function __read(o2, n) {
|
|
|
180
180
|
}
|
|
181
181
|
function __spreadArray(to, from, pack) {
|
|
182
182
|
if (pack || arguments.length === 2)
|
|
183
|
-
for (var i = 0,
|
|
183
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
184
184
|
if (ar || !(i in from)) {
|
|
185
185
|
if (!ar)
|
|
186
186
|
ar = Array.prototype.slice.call(from, 0, i);
|
|
@@ -327,8 +327,8 @@ function isDataTransfer(value) {
|
|
|
327
327
|
function isChangeEvt(value) {
|
|
328
328
|
return isObject(value) && isObject(value.target);
|
|
329
329
|
}
|
|
330
|
-
function isObject(
|
|
331
|
-
return typeof
|
|
330
|
+
function isObject(v) {
|
|
331
|
+
return typeof v === "object" && v !== null;
|
|
332
332
|
}
|
|
333
333
|
function getInputFiles(evt) {
|
|
334
334
|
return fromList(evt.target.files).map(function(file) {
|
|
@@ -341,8 +341,8 @@ function getFsHandleFiles(handles) {
|
|
|
341
341
|
return __generator(this, function(_a) {
|
|
342
342
|
switch (_a.label) {
|
|
343
343
|
case 0:
|
|
344
|
-
return [4, Promise.all(handles.map(function(
|
|
345
|
-
return
|
|
344
|
+
return [4, Promise.all(handles.map(function(h) {
|
|
345
|
+
return h.getFile();
|
|
346
346
|
}))];
|
|
347
347
|
case 1:
|
|
348
348
|
files = _a.sent();
|
|
@@ -739,26 +739,26 @@ function pickerOptionsFromAccept(accept) {
|
|
|
739
739
|
}
|
|
740
740
|
function acceptPropAsAcceptAttr(accept) {
|
|
741
741
|
if (isDefined(accept)) {
|
|
742
|
-
return Object.entries(accept).reduce(function(
|
|
742
|
+
return Object.entries(accept).reduce(function(a, _ref6) {
|
|
743
743
|
var _ref7 = _slicedToArray$1(_ref6, 2), mimeType = _ref7[0], ext = _ref7[1];
|
|
744
|
-
return [].concat(_toConsumableArray$1(
|
|
745
|
-
}, []).filter(function(
|
|
746
|
-
return isMIMEType(
|
|
744
|
+
return [].concat(_toConsumableArray$1(a), [mimeType], _toConsumableArray$1(ext));
|
|
745
|
+
}, []).filter(function(v) {
|
|
746
|
+
return isMIMEType(v) || isExt(v);
|
|
747
747
|
}).join(",");
|
|
748
748
|
}
|
|
749
749
|
return void 0;
|
|
750
750
|
}
|
|
751
|
-
function isAbort(
|
|
752
|
-
return
|
|
751
|
+
function isAbort(v) {
|
|
752
|
+
return v instanceof DOMException && (v.name === "AbortError" || v.code === v.ABORT_ERR);
|
|
753
753
|
}
|
|
754
|
-
function isSecurityError(
|
|
755
|
-
return
|
|
754
|
+
function isSecurityError(v) {
|
|
755
|
+
return v instanceof DOMException && (v.name === "SecurityError" || v.code === v.SECURITY_ERR);
|
|
756
756
|
}
|
|
757
|
-
function isMIMEType(
|
|
758
|
-
return
|
|
757
|
+
function isMIMEType(v) {
|
|
758
|
+
return v === "audio/*" || v === "video/*" || v === "image/*" || v === "text/*" || /\w+\/[-+.\w]+/g.test(v);
|
|
759
759
|
}
|
|
760
|
-
function isExt(
|
|
761
|
-
return /^.*\.[\w]+$/.test(
|
|
760
|
+
function isExt(v) {
|
|
761
|
+
return /^.*\.[\w]+$/.test(v);
|
|
762
762
|
}
|
|
763
763
|
var _excluded = ["children"], _excluded2 = ["open"], _excluded3 = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], _excluded4 = ["refKey", "onChange", "onClick"];
|
|
764
764
|
function _toConsumableArray(arr) {
|
|
@@ -933,31 +933,31 @@ var defaultProps = {
|
|
|
933
933
|
};
|
|
934
934
|
Dropzone.defaultProps = defaultProps;
|
|
935
935
|
Dropzone.propTypes = {
|
|
936
|
-
children:
|
|
937
|
-
accept:
|
|
938
|
-
multiple:
|
|
939
|
-
preventDropOnDocument:
|
|
940
|
-
noClick:
|
|
941
|
-
noKeyboard:
|
|
942
|
-
noDrag:
|
|
943
|
-
noDragEventsBubbling:
|
|
944
|
-
minSize:
|
|
945
|
-
maxSize:
|
|
946
|
-
maxFiles:
|
|
947
|
-
disabled:
|
|
948
|
-
getFilesFromEvent:
|
|
949
|
-
onFileDialogCancel:
|
|
950
|
-
onFileDialogOpen:
|
|
951
|
-
useFsAccessApi:
|
|
952
|
-
autoFocus:
|
|
953
|
-
onDragEnter:
|
|
954
|
-
onDragLeave:
|
|
955
|
-
onDragOver:
|
|
956
|
-
onDrop:
|
|
957
|
-
onDropAccepted:
|
|
958
|
-
onDropRejected:
|
|
959
|
-
onError:
|
|
960
|
-
validator:
|
|
936
|
+
children: PropTypes.func,
|
|
937
|
+
accept: PropTypes.objectOf(PropTypes.arrayOf(PropTypes.string)),
|
|
938
|
+
multiple: PropTypes.bool,
|
|
939
|
+
preventDropOnDocument: PropTypes.bool,
|
|
940
|
+
noClick: PropTypes.bool,
|
|
941
|
+
noKeyboard: PropTypes.bool,
|
|
942
|
+
noDrag: PropTypes.bool,
|
|
943
|
+
noDragEventsBubbling: PropTypes.bool,
|
|
944
|
+
minSize: PropTypes.number,
|
|
945
|
+
maxSize: PropTypes.number,
|
|
946
|
+
maxFiles: PropTypes.number,
|
|
947
|
+
disabled: PropTypes.bool,
|
|
948
|
+
getFilesFromEvent: PropTypes.func,
|
|
949
|
+
onFileDialogCancel: PropTypes.func,
|
|
950
|
+
onFileDialogOpen: PropTypes.func,
|
|
951
|
+
useFsAccessApi: PropTypes.bool,
|
|
952
|
+
autoFocus: PropTypes.bool,
|
|
953
|
+
onDragEnter: PropTypes.func,
|
|
954
|
+
onDragLeave: PropTypes.func,
|
|
955
|
+
onDragOver: PropTypes.func,
|
|
956
|
+
onDrop: PropTypes.func,
|
|
957
|
+
onDropAccepted: PropTypes.func,
|
|
958
|
+
onDropRejected: PropTypes.func,
|
|
959
|
+
onError: PropTypes.func,
|
|
960
|
+
validator: PropTypes.func
|
|
961
961
|
};
|
|
962
962
|
var initialState = {
|
|
963
963
|
isFocused: false,
|
|
@@ -1357,499 +1357,4 @@ function reducer(state, action) {
|
|
|
1357
1357
|
}
|
|
1358
1358
|
function noop() {
|
|
1359
1359
|
}
|
|
1360
|
-
|
|
1361
|
-
var hasMap = typeof Map === "function";
|
|
1362
|
-
var hasSet = typeof Set === "function";
|
|
1363
|
-
var hasArrayBuffer = typeof ArrayBuffer === "function" && !!ArrayBuffer.isView;
|
|
1364
|
-
function equal(a2, b2) {
|
|
1365
|
-
if (a2 === b2)
|
|
1366
|
-
return true;
|
|
1367
|
-
if (a2 && b2 && typeof a2 == "object" && typeof b2 == "object") {
|
|
1368
|
-
if (a2.constructor !== b2.constructor)
|
|
1369
|
-
return false;
|
|
1370
|
-
var length, i, keys;
|
|
1371
|
-
if (Array.isArray(a2)) {
|
|
1372
|
-
length = a2.length;
|
|
1373
|
-
if (length != b2.length)
|
|
1374
|
-
return false;
|
|
1375
|
-
for (i = length; i-- !== 0; )
|
|
1376
|
-
if (!equal(a2[i], b2[i]))
|
|
1377
|
-
return false;
|
|
1378
|
-
return true;
|
|
1379
|
-
}
|
|
1380
|
-
var it;
|
|
1381
|
-
if (hasMap && a2 instanceof Map && b2 instanceof Map) {
|
|
1382
|
-
if (a2.size !== b2.size)
|
|
1383
|
-
return false;
|
|
1384
|
-
it = a2.entries();
|
|
1385
|
-
while (!(i = it.next()).done)
|
|
1386
|
-
if (!b2.has(i.value[0]))
|
|
1387
|
-
return false;
|
|
1388
|
-
it = a2.entries();
|
|
1389
|
-
while (!(i = it.next()).done)
|
|
1390
|
-
if (!equal(i.value[1], b2.get(i.value[0])))
|
|
1391
|
-
return false;
|
|
1392
|
-
return true;
|
|
1393
|
-
}
|
|
1394
|
-
if (hasSet && a2 instanceof Set && b2 instanceof Set) {
|
|
1395
|
-
if (a2.size !== b2.size)
|
|
1396
|
-
return false;
|
|
1397
|
-
it = a2.entries();
|
|
1398
|
-
while (!(i = it.next()).done)
|
|
1399
|
-
if (!b2.has(i.value[0]))
|
|
1400
|
-
return false;
|
|
1401
|
-
return true;
|
|
1402
|
-
}
|
|
1403
|
-
if (hasArrayBuffer && ArrayBuffer.isView(a2) && ArrayBuffer.isView(b2)) {
|
|
1404
|
-
length = a2.length;
|
|
1405
|
-
if (length != b2.length)
|
|
1406
|
-
return false;
|
|
1407
|
-
for (i = length; i-- !== 0; )
|
|
1408
|
-
if (a2[i] !== b2[i])
|
|
1409
|
-
return false;
|
|
1410
|
-
return true;
|
|
1411
|
-
}
|
|
1412
|
-
if (a2.constructor === RegExp)
|
|
1413
|
-
return a2.source === b2.source && a2.flags === b2.flags;
|
|
1414
|
-
if (a2.valueOf !== Object.prototype.valueOf)
|
|
1415
|
-
return a2.valueOf() === b2.valueOf();
|
|
1416
|
-
if (a2.toString !== Object.prototype.toString)
|
|
1417
|
-
return a2.toString() === b2.toString();
|
|
1418
|
-
keys = Object.keys(a2);
|
|
1419
|
-
length = keys.length;
|
|
1420
|
-
if (length !== Object.keys(b2).length)
|
|
1421
|
-
return false;
|
|
1422
|
-
for (i = length; i-- !== 0; )
|
|
1423
|
-
if (!Object.prototype.hasOwnProperty.call(b2, keys[i]))
|
|
1424
|
-
return false;
|
|
1425
|
-
if (hasElementType && a2 instanceof Element)
|
|
1426
|
-
return false;
|
|
1427
|
-
for (i = length; i-- !== 0; ) {
|
|
1428
|
-
if ((keys[i] === "_owner" || keys[i] === "__v" || keys[i] === "__o") && a2.$$typeof) {
|
|
1429
|
-
continue;
|
|
1430
|
-
}
|
|
1431
|
-
if (!equal(a2[keys[i]], b2[keys[i]]))
|
|
1432
|
-
return false;
|
|
1433
|
-
}
|
|
1434
|
-
return true;
|
|
1435
|
-
}
|
|
1436
|
-
return a2 !== a2 && b2 !== b2;
|
|
1437
|
-
}
|
|
1438
|
-
var reactFastCompare = function isEqual(a2, b2) {
|
|
1439
|
-
try {
|
|
1440
|
-
return equal(a2, b2);
|
|
1441
|
-
} catch (error) {
|
|
1442
|
-
if ((error.message || "").match(/stack|recursion/i)) {
|
|
1443
|
-
console.warn("react-fast-compare cannot handle circular refs");
|
|
1444
|
-
return false;
|
|
1445
|
-
}
|
|
1446
|
-
throw error;
|
|
1447
|
-
}
|
|
1448
|
-
};
|
|
1449
|
-
var invariant = function(condition, format, a2, b2, c2, d2, e2, f2) {
|
|
1450
|
-
if (!condition) {
|
|
1451
|
-
var error;
|
|
1452
|
-
if (format === void 0) {
|
|
1453
|
-
error = new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
|
|
1454
|
-
} else {
|
|
1455
|
-
var args = [a2, b2, c2, d2, e2, f2];
|
|
1456
|
-
var argIndex = 0;
|
|
1457
|
-
error = new Error(format.replace(/%s/g, function() {
|
|
1458
|
-
return args[argIndex++];
|
|
1459
|
-
}));
|
|
1460
|
-
error.name = "Invariant Violation";
|
|
1461
|
-
}
|
|
1462
|
-
error.framesToPop = 1;
|
|
1463
|
-
throw error;
|
|
1464
|
-
}
|
|
1465
|
-
};
|
|
1466
|
-
var browser = invariant;
|
|
1467
|
-
var shallowequal = function shallowEqual(objA, objB, compare, compareContext) {
|
|
1468
|
-
var ret = compare ? compare.call(compareContext, objA, objB) : void 0;
|
|
1469
|
-
if (ret !== void 0) {
|
|
1470
|
-
return !!ret;
|
|
1471
|
-
}
|
|
1472
|
-
if (objA === objB) {
|
|
1473
|
-
return true;
|
|
1474
|
-
}
|
|
1475
|
-
if (typeof objA !== "object" || !objA || typeof objB !== "object" || !objB) {
|
|
1476
|
-
return false;
|
|
1477
|
-
}
|
|
1478
|
-
var keysA = Object.keys(objA);
|
|
1479
|
-
var keysB = Object.keys(objB);
|
|
1480
|
-
if (keysA.length !== keysB.length) {
|
|
1481
|
-
return false;
|
|
1482
|
-
}
|
|
1483
|
-
var bHasOwnProperty = Object.prototype.hasOwnProperty.bind(objB);
|
|
1484
|
-
for (var idx = 0; idx < keysA.length; idx++) {
|
|
1485
|
-
var key = keysA[idx];
|
|
1486
|
-
if (!bHasOwnProperty(key)) {
|
|
1487
|
-
return false;
|
|
1488
|
-
}
|
|
1489
|
-
var valueA = objA[key];
|
|
1490
|
-
var valueB = objB[key];
|
|
1491
|
-
ret = compare ? compare.call(compareContext, valueA, valueB, key) : void 0;
|
|
1492
|
-
if (ret === false || ret === void 0 && valueA !== valueB) {
|
|
1493
|
-
return false;
|
|
1494
|
-
}
|
|
1495
|
-
}
|
|
1496
|
-
return true;
|
|
1497
|
-
};
|
|
1498
|
-
function a() {
|
|
1499
|
-
return a = Object.assign || function(t2) {
|
|
1500
|
-
for (var e2 = 1; e2 < arguments.length; e2++) {
|
|
1501
|
-
var r2 = arguments[e2];
|
|
1502
|
-
for (var n in r2)
|
|
1503
|
-
Object.prototype.hasOwnProperty.call(r2, n) && (t2[n] = r2[n]);
|
|
1504
|
-
}
|
|
1505
|
-
return t2;
|
|
1506
|
-
}, a.apply(this, arguments);
|
|
1507
|
-
}
|
|
1508
|
-
function s(t2, e2) {
|
|
1509
|
-
t2.prototype = Object.create(e2.prototype), t2.prototype.constructor = t2, c(t2, e2);
|
|
1510
|
-
}
|
|
1511
|
-
function c(t2, e2) {
|
|
1512
|
-
return c = Object.setPrototypeOf || function(t3, e3) {
|
|
1513
|
-
return t3.__proto__ = e3, t3;
|
|
1514
|
-
}, c(t2, e2);
|
|
1515
|
-
}
|
|
1516
|
-
function u(t2, e2) {
|
|
1517
|
-
if (t2 == null)
|
|
1518
|
-
return {};
|
|
1519
|
-
var r2, n, i = {}, o2 = Object.keys(t2);
|
|
1520
|
-
for (n = 0; n < o2.length; n++)
|
|
1521
|
-
e2.indexOf(r2 = o2[n]) >= 0 || (i[r2] = t2[r2]);
|
|
1522
|
-
return i;
|
|
1523
|
-
}
|
|
1524
|
-
var l = { BASE: "base", BODY: "body", HEAD: "head", HTML: "html", LINK: "link", META: "meta", NOSCRIPT: "noscript", SCRIPT: "script", STYLE: "style", TITLE: "title", FRAGMENT: "Symbol(react.fragment)" }, p = { rel: ["amphtml", "canonical", "alternate"] }, f = { type: ["application/ld+json"] }, d = { charset: "", name: ["robots", "description"], property: ["og:type", "og:title", "og:url", "og:image", "og:image:alt", "og:description", "twitter:url", "twitter:title", "twitter:description", "twitter:image", "twitter:image:alt", "twitter:card", "twitter:site"] }, h = Object.keys(l).map(function(t2) {
|
|
1525
|
-
return l[t2];
|
|
1526
|
-
}), m = { accesskey: "accessKey", charset: "charSet", class: "className", contenteditable: "contentEditable", contextmenu: "contextMenu", "http-equiv": "httpEquiv", itemprop: "itemProp", tabindex: "tabIndex" }, y = Object.keys(m).reduce(function(t2, e2) {
|
|
1527
|
-
return t2[m[e2]] = e2, t2;
|
|
1528
|
-
}, {}), T = function(t2, e2) {
|
|
1529
|
-
for (var r2 = t2.length - 1; r2 >= 0; r2 -= 1) {
|
|
1530
|
-
var n = t2[r2];
|
|
1531
|
-
if (Object.prototype.hasOwnProperty.call(n, e2))
|
|
1532
|
-
return n[e2];
|
|
1533
|
-
}
|
|
1534
|
-
return null;
|
|
1535
|
-
}, g = function(t2) {
|
|
1536
|
-
var e2 = T(t2, l.TITLE), r2 = T(t2, "titleTemplate");
|
|
1537
|
-
if (Array.isArray(e2) && (e2 = e2.join("")), r2 && e2)
|
|
1538
|
-
return r2.replace(/%s/g, function() {
|
|
1539
|
-
return e2;
|
|
1540
|
-
});
|
|
1541
|
-
var n = T(t2, "defaultTitle");
|
|
1542
|
-
return e2 || n || void 0;
|
|
1543
|
-
}, b = function(t2) {
|
|
1544
|
-
return T(t2, "onChangeClientState") || function() {
|
|
1545
|
-
};
|
|
1546
|
-
}, v = function(t2, e2) {
|
|
1547
|
-
return e2.filter(function(e3) {
|
|
1548
|
-
return e3[t2] !== void 0;
|
|
1549
|
-
}).map(function(e3) {
|
|
1550
|
-
return e3[t2];
|
|
1551
|
-
}).reduce(function(t3, e3) {
|
|
1552
|
-
return a({}, t3, e3);
|
|
1553
|
-
}, {});
|
|
1554
|
-
}, A = function(t2, e2) {
|
|
1555
|
-
return e2.filter(function(t3) {
|
|
1556
|
-
return t3[l.BASE] !== void 0;
|
|
1557
|
-
}).map(function(t3) {
|
|
1558
|
-
return t3[l.BASE];
|
|
1559
|
-
}).reverse().reduce(function(e3, r2) {
|
|
1560
|
-
if (!e3.length)
|
|
1561
|
-
for (var n = Object.keys(r2), i = 0; i < n.length; i += 1) {
|
|
1562
|
-
var o2 = n[i].toLowerCase();
|
|
1563
|
-
if (t2.indexOf(o2) !== -1 && r2[o2])
|
|
1564
|
-
return e3.concat(r2);
|
|
1565
|
-
}
|
|
1566
|
-
return e3;
|
|
1567
|
-
}, []);
|
|
1568
|
-
}, C = function(t2, e2, r2) {
|
|
1569
|
-
var n = {};
|
|
1570
|
-
return r2.filter(function(e3) {
|
|
1571
|
-
return !!Array.isArray(e3[t2]) || (e3[t2] !== void 0 && console && typeof console.warn == "function" && console.warn("Helmet: " + t2 + ' should be of type "Array". Instead found type "' + typeof e3[t2] + '"'), false);
|
|
1572
|
-
}).map(function(e3) {
|
|
1573
|
-
return e3[t2];
|
|
1574
|
-
}).reverse().reduce(function(t3, r3) {
|
|
1575
|
-
var i = {};
|
|
1576
|
-
r3.filter(function(t4) {
|
|
1577
|
-
for (var r4, o3 = Object.keys(t4), a2 = 0; a2 < o3.length; a2 += 1) {
|
|
1578
|
-
var s3 = o3[a2], c3 = s3.toLowerCase();
|
|
1579
|
-
e2.indexOf(c3) === -1 || r4 === "rel" && t4[r4].toLowerCase() === "canonical" || c3 === "rel" && t4[c3].toLowerCase() === "stylesheet" || (r4 = c3), e2.indexOf(s3) === -1 || s3 !== "innerHTML" && s3 !== "cssText" && s3 !== "itemprop" || (r4 = s3);
|
|
1580
|
-
}
|
|
1581
|
-
if (!r4 || !t4[r4])
|
|
1582
|
-
return false;
|
|
1583
|
-
var u3 = t4[r4].toLowerCase();
|
|
1584
|
-
return n[r4] || (n[r4] = {}), i[r4] || (i[r4] = {}), !n[r4][u3] && (i[r4][u3] = true, true);
|
|
1585
|
-
}).reverse().forEach(function(e3) {
|
|
1586
|
-
return t3.push(e3);
|
|
1587
|
-
});
|
|
1588
|
-
for (var o2 = Object.keys(i), s2 = 0; s2 < o2.length; s2 += 1) {
|
|
1589
|
-
var c2 = o2[s2], u2 = a({}, n[c2], i[c2]);
|
|
1590
|
-
n[c2] = u2;
|
|
1591
|
-
}
|
|
1592
|
-
return t3;
|
|
1593
|
-
}, []).reverse();
|
|
1594
|
-
}, O = function(t2, e2) {
|
|
1595
|
-
if (Array.isArray(t2) && t2.length) {
|
|
1596
|
-
for (var r2 = 0; r2 < t2.length; r2 += 1)
|
|
1597
|
-
if (t2[r2][e2])
|
|
1598
|
-
return true;
|
|
1599
|
-
}
|
|
1600
|
-
return false;
|
|
1601
|
-
}, S = function(t2) {
|
|
1602
|
-
return Array.isArray(t2) ? t2.join("") : t2;
|
|
1603
|
-
}, E = function(t2, e2) {
|
|
1604
|
-
return Array.isArray(t2) ? t2.reduce(function(t3, r2) {
|
|
1605
|
-
return function(t4, e3) {
|
|
1606
|
-
for (var r3 = Object.keys(t4), n = 0; n < r3.length; n += 1)
|
|
1607
|
-
if (e3[r3[n]] && e3[r3[n]].includes(t4[r3[n]]))
|
|
1608
|
-
return true;
|
|
1609
|
-
return false;
|
|
1610
|
-
}(r2, e2) ? t3.priority.push(r2) : t3.default.push(r2), t3;
|
|
1611
|
-
}, { priority: [], default: [] }) : { default: t2 };
|
|
1612
|
-
}, I = function(t2, e2) {
|
|
1613
|
-
var r2;
|
|
1614
|
-
return a({}, t2, ((r2 = {})[e2] = void 0, r2));
|
|
1615
|
-
}, P = [l.NOSCRIPT, l.SCRIPT, l.STYLE], w = function(t2, e2) {
|
|
1616
|
-
return e2 === void 0 && (e2 = true), e2 === false ? String(t2) : String(t2).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
|
1617
|
-
}, x = function(t2) {
|
|
1618
|
-
return Object.keys(t2).reduce(function(e2, r2) {
|
|
1619
|
-
var n = t2[r2] !== void 0 ? r2 + '="' + t2[r2] + '"' : "" + r2;
|
|
1620
|
-
return e2 ? e2 + " " + n : n;
|
|
1621
|
-
}, "");
|
|
1622
|
-
}, L = function(t2, e2) {
|
|
1623
|
-
return e2 === void 0 && (e2 = {}), Object.keys(t2).reduce(function(e3, r2) {
|
|
1624
|
-
return e3[m[r2] || r2] = t2[r2], e3;
|
|
1625
|
-
}, e2);
|
|
1626
|
-
}, j = function(e2, r2) {
|
|
1627
|
-
return r2.map(function(r3, n) {
|
|
1628
|
-
var i, o2 = ((i = { key: n })["data-rh"] = true, i);
|
|
1629
|
-
return Object.keys(r3).forEach(function(t2) {
|
|
1630
|
-
var e3 = m[t2] || t2;
|
|
1631
|
-
e3 === "innerHTML" || e3 === "cssText" ? o2.dangerouslySetInnerHTML = { __html: r3.innerHTML || r3.cssText } : o2[e3] = r3[t2];
|
|
1632
|
-
}), require$$0.createElement(e2, o2);
|
|
1633
|
-
});
|
|
1634
|
-
}, M = function(e2, r2, n) {
|
|
1635
|
-
switch (e2) {
|
|
1636
|
-
case l.TITLE:
|
|
1637
|
-
return { toComponent: function() {
|
|
1638
|
-
return n2 = r2.titleAttributes, (i = { key: e3 = r2.title })["data-rh"] = true, o2 = L(n2, i), [require$$0.createElement(l.TITLE, o2, e3)];
|
|
1639
|
-
var e3, n2, i, o2;
|
|
1640
|
-
}, toString: function() {
|
|
1641
|
-
return function(t2, e3, r3, n2) {
|
|
1642
|
-
var i = x(r3), o2 = S(e3);
|
|
1643
|
-
return i ? "<" + t2 + ' data-rh="true" ' + i + ">" + w(o2, n2) + "</" + t2 + ">" : "<" + t2 + ' data-rh="true">' + w(o2, n2) + "</" + t2 + ">";
|
|
1644
|
-
}(e2, r2.title, r2.titleAttributes, n);
|
|
1645
|
-
} };
|
|
1646
|
-
case "bodyAttributes":
|
|
1647
|
-
case "htmlAttributes":
|
|
1648
|
-
return { toComponent: function() {
|
|
1649
|
-
return L(r2);
|
|
1650
|
-
}, toString: function() {
|
|
1651
|
-
return x(r2);
|
|
1652
|
-
} };
|
|
1653
|
-
default:
|
|
1654
|
-
return { toComponent: function() {
|
|
1655
|
-
return j(e2, r2);
|
|
1656
|
-
}, toString: function() {
|
|
1657
|
-
return function(t2, e3, r3) {
|
|
1658
|
-
return e3.reduce(function(e4, n2) {
|
|
1659
|
-
var i = Object.keys(n2).filter(function(t3) {
|
|
1660
|
-
return !(t3 === "innerHTML" || t3 === "cssText");
|
|
1661
|
-
}).reduce(function(t3, e5) {
|
|
1662
|
-
var i2 = n2[e5] === void 0 ? e5 : e5 + '="' + w(n2[e5], r3) + '"';
|
|
1663
|
-
return t3 ? t3 + " " + i2 : i2;
|
|
1664
|
-
}, ""), o2 = n2.innerHTML || n2.cssText || "", a2 = P.indexOf(t2) === -1;
|
|
1665
|
-
return e4 + "<" + t2 + ' data-rh="true" ' + i + (a2 ? "/>" : ">" + o2 + "</" + t2 + ">");
|
|
1666
|
-
}, "");
|
|
1667
|
-
}(e2, r2, n);
|
|
1668
|
-
} };
|
|
1669
|
-
}
|
|
1670
|
-
}, k = function(t2) {
|
|
1671
|
-
var e2 = t2.baseTag, r2 = t2.bodyAttributes, n = t2.encode, i = t2.htmlAttributes, o2 = t2.noscriptTags, a2 = t2.styleTags, s2 = t2.title, c2 = s2 === void 0 ? "" : s2, u2 = t2.titleAttributes, h2 = t2.linkTags, m2 = t2.metaTags, y2 = t2.scriptTags, T2 = { toComponent: function() {
|
|
1672
|
-
}, toString: function() {
|
|
1673
|
-
return "";
|
|
1674
|
-
} };
|
|
1675
|
-
if (t2.prioritizeSeoTags) {
|
|
1676
|
-
var g2 = function(t3) {
|
|
1677
|
-
var e3 = t3.linkTags, r3 = t3.scriptTags, n2 = t3.encode, i2 = E(t3.metaTags, d), o3 = E(e3, p), a3 = E(r3, f);
|
|
1678
|
-
return { priorityMethods: { toComponent: function() {
|
|
1679
|
-
return [].concat(j(l.META, i2.priority), j(l.LINK, o3.priority), j(l.SCRIPT, a3.priority));
|
|
1680
|
-
}, toString: function() {
|
|
1681
|
-
return M(l.META, i2.priority, n2) + " " + M(l.LINK, o3.priority, n2) + " " + M(l.SCRIPT, a3.priority, n2);
|
|
1682
|
-
} }, metaTags: i2.default, linkTags: o3.default, scriptTags: a3.default };
|
|
1683
|
-
}(t2);
|
|
1684
|
-
T2 = g2.priorityMethods, h2 = g2.linkTags, m2 = g2.metaTags, y2 = g2.scriptTags;
|
|
1685
|
-
}
|
|
1686
|
-
return { priority: T2, base: M(l.BASE, e2, n), bodyAttributes: M("bodyAttributes", r2, n), htmlAttributes: M("htmlAttributes", i, n), link: M(l.LINK, h2, n), meta: M(l.META, m2, n), noscript: M(l.NOSCRIPT, o2, n), script: M(l.SCRIPT, y2, n), style: M(l.STYLE, a2, n), title: M(l.TITLE, { title: c2, titleAttributes: u2 }, n) };
|
|
1687
|
-
}, H = [], N = function(t2, e2) {
|
|
1688
|
-
var r2 = this;
|
|
1689
|
-
e2 === void 0 && (e2 = typeof document != "undefined"), this.instances = [], this.value = { setHelmet: function(t3) {
|
|
1690
|
-
r2.context.helmet = t3;
|
|
1691
|
-
}, helmetInstances: { get: function() {
|
|
1692
|
-
return r2.canUseDOM ? H : r2.instances;
|
|
1693
|
-
}, add: function(t3) {
|
|
1694
|
-
(r2.canUseDOM ? H : r2.instances).push(t3);
|
|
1695
|
-
}, remove: function(t3) {
|
|
1696
|
-
var e3 = (r2.canUseDOM ? H : r2.instances).indexOf(t3);
|
|
1697
|
-
(r2.canUseDOM ? H : r2.instances).splice(e3, 1);
|
|
1698
|
-
} } }, this.context = t2, this.canUseDOM = e2, e2 || (t2.helmet = k({ baseTag: [], bodyAttributes: {}, encodeSpecialCharacters: true, htmlAttributes: {}, linkTags: [], metaTags: [], noscriptTags: [], scriptTags: [], styleTags: [], title: "", titleAttributes: {} }));
|
|
1699
|
-
}, R = require$$0.createContext({}), D = r.shape({ setHelmet: r.func, helmetInstances: r.shape({ get: r.func, add: r.func, remove: r.func }) }), U = typeof document != "undefined", q = /* @__PURE__ */ function(e2) {
|
|
1700
|
-
function r2(t2) {
|
|
1701
|
-
var n;
|
|
1702
|
-
return (n = e2.call(this, t2) || this).helmetData = new N(n.props.context, r2.canUseDOM), n;
|
|
1703
|
-
}
|
|
1704
|
-
return s(r2, e2), r2.prototype.render = function() {
|
|
1705
|
-
return require$$0.createElement(R.Provider, { value: this.helmetData.value }, this.props.children);
|
|
1706
|
-
}, r2;
|
|
1707
|
-
}(Component);
|
|
1708
|
-
q.canUseDOM = U, q.propTypes = { context: r.shape({ helmet: r.shape() }), children: r.node.isRequired }, q.defaultProps = { context: {} }, q.displayName = "HelmetProvider";
|
|
1709
|
-
var Y = function(t2, e2) {
|
|
1710
|
-
var r2, n = document.head || document.querySelector(l.HEAD), i = n.querySelectorAll(t2 + "[data-rh]"), o2 = [].slice.call(i), a2 = [];
|
|
1711
|
-
return e2 && e2.length && e2.forEach(function(e3) {
|
|
1712
|
-
var n2 = document.createElement(t2);
|
|
1713
|
-
for (var i2 in e3)
|
|
1714
|
-
Object.prototype.hasOwnProperty.call(e3, i2) && (i2 === "innerHTML" ? n2.innerHTML = e3.innerHTML : i2 === "cssText" ? n2.styleSheet ? n2.styleSheet.cssText = e3.cssText : n2.appendChild(document.createTextNode(e3.cssText)) : n2.setAttribute(i2, e3[i2] === void 0 ? "" : e3[i2]));
|
|
1715
|
-
n2.setAttribute("data-rh", "true"), o2.some(function(t3, e4) {
|
|
1716
|
-
return r2 = e4, n2.isEqualNode(t3);
|
|
1717
|
-
}) ? o2.splice(r2, 1) : a2.push(n2);
|
|
1718
|
-
}), o2.forEach(function(t3) {
|
|
1719
|
-
return t3.parentNode.removeChild(t3);
|
|
1720
|
-
}), a2.forEach(function(t3) {
|
|
1721
|
-
return n.appendChild(t3);
|
|
1722
|
-
}), { oldTags: o2, newTags: a2 };
|
|
1723
|
-
}, B = function(t2, e2) {
|
|
1724
|
-
var r2 = document.getElementsByTagName(t2)[0];
|
|
1725
|
-
if (r2) {
|
|
1726
|
-
for (var n = r2.getAttribute("data-rh"), i = n ? n.split(",") : [], o2 = [].concat(i), a2 = Object.keys(e2), s2 = 0; s2 < a2.length; s2 += 1) {
|
|
1727
|
-
var c2 = a2[s2], u2 = e2[c2] || "";
|
|
1728
|
-
r2.getAttribute(c2) !== u2 && r2.setAttribute(c2, u2), i.indexOf(c2) === -1 && i.push(c2);
|
|
1729
|
-
var l2 = o2.indexOf(c2);
|
|
1730
|
-
l2 !== -1 && o2.splice(l2, 1);
|
|
1731
|
-
}
|
|
1732
|
-
for (var p2 = o2.length - 1; p2 >= 0; p2 -= 1)
|
|
1733
|
-
r2.removeAttribute(o2[p2]);
|
|
1734
|
-
i.length === o2.length ? r2.removeAttribute("data-rh") : r2.getAttribute("data-rh") !== a2.join(",") && r2.setAttribute("data-rh", a2.join(","));
|
|
1735
|
-
}
|
|
1736
|
-
}, K = function(t2, e2) {
|
|
1737
|
-
var r2 = t2.baseTag, n = t2.htmlAttributes, i = t2.linkTags, o2 = t2.metaTags, a2 = t2.noscriptTags, s2 = t2.onChangeClientState, c2 = t2.scriptTags, u2 = t2.styleTags, p2 = t2.title, f2 = t2.titleAttributes;
|
|
1738
|
-
B(l.BODY, t2.bodyAttributes), B(l.HTML, n), function(t3, e3) {
|
|
1739
|
-
t3 !== void 0 && document.title !== t3 && (document.title = S(t3)), B(l.TITLE, e3);
|
|
1740
|
-
}(p2, f2);
|
|
1741
|
-
var d2 = { baseTag: Y(l.BASE, r2), linkTags: Y(l.LINK, i), metaTags: Y(l.META, o2), noscriptTags: Y(l.NOSCRIPT, a2), scriptTags: Y(l.SCRIPT, c2), styleTags: Y(l.STYLE, u2) }, h2 = {}, m2 = {};
|
|
1742
|
-
Object.keys(d2).forEach(function(t3) {
|
|
1743
|
-
var e3 = d2[t3], r3 = e3.newTags, n2 = e3.oldTags;
|
|
1744
|
-
r3.length && (h2[t3] = r3), n2.length && (m2[t3] = d2[t3].oldTags);
|
|
1745
|
-
}), e2 && e2(), s2(t2, h2, m2);
|
|
1746
|
-
}, _ = null, z = /* @__PURE__ */ function(t2) {
|
|
1747
|
-
function e2() {
|
|
1748
|
-
for (var e3, r3 = arguments.length, n = new Array(r3), i = 0; i < r3; i++)
|
|
1749
|
-
n[i] = arguments[i];
|
|
1750
|
-
return (e3 = t2.call.apply(t2, [this].concat(n)) || this).rendered = false, e3;
|
|
1751
|
-
}
|
|
1752
|
-
s(e2, t2);
|
|
1753
|
-
var r2 = e2.prototype;
|
|
1754
|
-
return r2.shouldComponentUpdate = function(t3) {
|
|
1755
|
-
return !shallowequal(t3, this.props);
|
|
1756
|
-
}, r2.componentDidUpdate = function() {
|
|
1757
|
-
this.emitChange();
|
|
1758
|
-
}, r2.componentWillUnmount = function() {
|
|
1759
|
-
this.props.context.helmetInstances.remove(this), this.emitChange();
|
|
1760
|
-
}, r2.emitChange = function() {
|
|
1761
|
-
var t3, e3, r3 = this.props.context, n = r3.setHelmet, i = null, o2 = (t3 = r3.helmetInstances.get().map(function(t4) {
|
|
1762
|
-
var e4 = a({}, t4.props);
|
|
1763
|
-
return delete e4.context, e4;
|
|
1764
|
-
}), { baseTag: A(["href"], t3), bodyAttributes: v("bodyAttributes", t3), defer: T(t3, "defer"), encode: T(t3, "encodeSpecialCharacters"), htmlAttributes: v("htmlAttributes", t3), linkTags: C(l.LINK, ["rel", "href"], t3), metaTags: C(l.META, ["name", "charset", "http-equiv", "property", "itemprop"], t3), noscriptTags: C(l.NOSCRIPT, ["innerHTML"], t3), onChangeClientState: b(t3), scriptTags: C(l.SCRIPT, ["src", "innerHTML"], t3), styleTags: C(l.STYLE, ["cssText"], t3), title: g(t3), titleAttributes: v("titleAttributes", t3), prioritizeSeoTags: O(t3, "prioritizeSeoTags") });
|
|
1765
|
-
q.canUseDOM ? (e3 = o2, _ && cancelAnimationFrame(_), e3.defer ? _ = requestAnimationFrame(function() {
|
|
1766
|
-
K(e3, function() {
|
|
1767
|
-
_ = null;
|
|
1768
|
-
});
|
|
1769
|
-
}) : (K(e3), _ = null)) : k && (i = k(o2)), n(i);
|
|
1770
|
-
}, r2.init = function() {
|
|
1771
|
-
this.rendered || (this.rendered = true, this.props.context.helmetInstances.add(this), this.emitChange());
|
|
1772
|
-
}, r2.render = function() {
|
|
1773
|
-
return this.init(), null;
|
|
1774
|
-
}, e2;
|
|
1775
|
-
}(Component);
|
|
1776
|
-
z.propTypes = { context: D.isRequired }, z.displayName = "HelmetDispatcher";
|
|
1777
|
-
var F = ["children"], G = ["children"], W = /* @__PURE__ */ function(e2) {
|
|
1778
|
-
function r2() {
|
|
1779
|
-
return e2.apply(this, arguments) || this;
|
|
1780
|
-
}
|
|
1781
|
-
s(r2, e2);
|
|
1782
|
-
var o2 = r2.prototype;
|
|
1783
|
-
return o2.shouldComponentUpdate = function(t2) {
|
|
1784
|
-
return !reactFastCompare(I(this.props, "helmetData"), I(t2, "helmetData"));
|
|
1785
|
-
}, o2.mapNestedChildrenToProps = function(t2, e3) {
|
|
1786
|
-
if (!e3)
|
|
1787
|
-
return null;
|
|
1788
|
-
switch (t2.type) {
|
|
1789
|
-
case l.SCRIPT:
|
|
1790
|
-
case l.NOSCRIPT:
|
|
1791
|
-
return { innerHTML: e3 };
|
|
1792
|
-
case l.STYLE:
|
|
1793
|
-
return { cssText: e3 };
|
|
1794
|
-
default:
|
|
1795
|
-
throw new Error("<" + t2.type + " /> elements are self-closing and can not contain children. Refer to our API for more information.");
|
|
1796
|
-
}
|
|
1797
|
-
}, o2.flattenArrayTypeChildren = function(t2) {
|
|
1798
|
-
var e3, r3 = t2.child, n = t2.arrayTypeChildren;
|
|
1799
|
-
return a({}, n, ((e3 = {})[r3.type] = [].concat(n[r3.type] || [], [a({}, t2.newChildProps, this.mapNestedChildrenToProps(r3, t2.nestedChildren))]), e3));
|
|
1800
|
-
}, o2.mapObjectTypeChildren = function(t2) {
|
|
1801
|
-
var e3, r3, n = t2.child, i = t2.newProps, o3 = t2.newChildProps, s2 = t2.nestedChildren;
|
|
1802
|
-
switch (n.type) {
|
|
1803
|
-
case l.TITLE:
|
|
1804
|
-
return a({}, i, ((e3 = {})[n.type] = s2, e3.titleAttributes = a({}, o3), e3));
|
|
1805
|
-
case l.BODY:
|
|
1806
|
-
return a({}, i, { bodyAttributes: a({}, o3) });
|
|
1807
|
-
case l.HTML:
|
|
1808
|
-
return a({}, i, { htmlAttributes: a({}, o3) });
|
|
1809
|
-
default:
|
|
1810
|
-
return a({}, i, ((r3 = {})[n.type] = a({}, o3), r3));
|
|
1811
|
-
}
|
|
1812
|
-
}, o2.mapArrayTypeChildrenToProps = function(t2, e3) {
|
|
1813
|
-
var r3 = a({}, e3);
|
|
1814
|
-
return Object.keys(t2).forEach(function(e4) {
|
|
1815
|
-
var n;
|
|
1816
|
-
r3 = a({}, r3, ((n = {})[e4] = t2[e4], n));
|
|
1817
|
-
}), r3;
|
|
1818
|
-
}, o2.warnOnInvalidChildren = function(t2, e3) {
|
|
1819
|
-
return browser(h.some(function(e4) {
|
|
1820
|
-
return t2.type === e4;
|
|
1821
|
-
}), typeof t2.type == "function" ? "You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information." : "Only elements types " + h.join(", ") + " are allowed. Helmet does not support rendering <" + t2.type + "> elements. Refer to our API for more information."), browser(!e3 || typeof e3 == "string" || Array.isArray(e3) && !e3.some(function(t3) {
|
|
1822
|
-
return typeof t3 != "string";
|
|
1823
|
-
}), "Helmet expects a string as a child of <" + t2.type + ">. Did you forget to wrap your children in braces? ( <" + t2.type + ">{``}</" + t2.type + "> ) Refer to our API for more information."), true;
|
|
1824
|
-
}, o2.mapChildrenToProps = function(e3, r3) {
|
|
1825
|
-
var n = this, i = {};
|
|
1826
|
-
return require$$0.Children.forEach(e3, function(t2) {
|
|
1827
|
-
if (t2 && t2.props) {
|
|
1828
|
-
var e4 = t2.props, o3 = e4.children, a2 = u(e4, F), s2 = Object.keys(a2).reduce(function(t3, e5) {
|
|
1829
|
-
return t3[y[e5] || e5] = a2[e5], t3;
|
|
1830
|
-
}, {}), c2 = t2.type;
|
|
1831
|
-
switch (typeof c2 == "symbol" ? c2 = c2.toString() : n.warnOnInvalidChildren(t2, o3), c2) {
|
|
1832
|
-
case l.FRAGMENT:
|
|
1833
|
-
r3 = n.mapChildrenToProps(o3, r3);
|
|
1834
|
-
break;
|
|
1835
|
-
case l.LINK:
|
|
1836
|
-
case l.META:
|
|
1837
|
-
case l.NOSCRIPT:
|
|
1838
|
-
case l.SCRIPT:
|
|
1839
|
-
case l.STYLE:
|
|
1840
|
-
i = n.flattenArrayTypeChildren({ child: t2, arrayTypeChildren: i, newChildProps: s2, nestedChildren: o3 });
|
|
1841
|
-
break;
|
|
1842
|
-
default:
|
|
1843
|
-
r3 = n.mapObjectTypeChildren({ child: t2, newProps: r3, newChildProps: s2, nestedChildren: o3 });
|
|
1844
|
-
}
|
|
1845
|
-
}
|
|
1846
|
-
}), this.mapArrayTypeChildrenToProps(i, r3);
|
|
1847
|
-
}, o2.render = function() {
|
|
1848
|
-
var e3 = this.props, r3 = e3.children, n = u(e3, G), i = a({}, n), o3 = n.helmetData;
|
|
1849
|
-
return r3 && (i = this.mapChildrenToProps(r3, i)), !o3 || o3 instanceof N || (o3 = new N(o3.context, o3.instances)), o3 ? /* @__PURE__ */ require$$0.createElement(z, a({}, i, { context: o3.value, helmetData: void 0 })) : /* @__PURE__ */ require$$0.createElement(R.Consumer, null, function(e4) {
|
|
1850
|
-
return require$$0.createElement(z, a({}, i, { context: e4 }));
|
|
1851
|
-
});
|
|
1852
|
-
}, r2;
|
|
1853
|
-
}(Component);
|
|
1854
|
-
W.propTypes = { base: r.object, bodyAttributes: r.object, children: r.oneOfType([r.arrayOf(r.node), r.node]), defaultTitle: r.string, defer: r.bool, encodeSpecialCharacters: r.bool, htmlAttributes: r.object, link: r.arrayOf(r.object), meta: r.arrayOf(r.object), noscript: r.arrayOf(r.object), onChangeClientState: r.func, script: r.arrayOf(r.object), style: r.arrayOf(r.object), title: r.string, titleAttributes: r.object, titleTemplate: r.string, prioritizeSeoTags: r.bool, helmetData: r.object }, W.defaultProps = { defer: true, encodeSpecialCharacters: true, prioritizeSeoTags: false }, W.displayName = "Helmet";
|
|
1855
|
-
export { W, o, useDropzone as u };
|
|
1360
|
+
export { o, useDropzone as u };
|
package/dist/react-draggable.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import require$$0 from "react";
|
|
2
|
-
import
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
3
|
import require$$2 from "react-dom";
|
|
4
4
|
import clsx from "clsx";
|
|
5
5
|
var cjs = { exports: {} };
|
|
@@ -494,7 +494,7 @@ Object.defineProperty(DraggableCore$2, "__esModule", {
|
|
|
494
494
|
});
|
|
495
495
|
DraggableCore$2.default = void 0;
|
|
496
496
|
var React = _interopRequireWildcard(require$$0);
|
|
497
|
-
var _propTypes = _interopRequireDefault(
|
|
497
|
+
var _propTypes = _interopRequireDefault(PropTypes);
|
|
498
498
|
var _reactDom = _interopRequireDefault(require$$2);
|
|
499
499
|
var _domFns = domFns;
|
|
500
500
|
var _positionFns = positionFns;
|
|
@@ -956,7 +956,7 @@ _defineProperty(DraggableCore$1, "defaultProps", {
|
|
|
956
956
|
});
|
|
957
957
|
exports.default = void 0;
|
|
958
958
|
var React2 = _interopRequireWildcard2(require$$0);
|
|
959
|
-
var _propTypes2 = _interopRequireDefault2(
|
|
959
|
+
var _propTypes2 = _interopRequireDefault2(PropTypes);
|
|
960
960
|
var _reactDom2 = _interopRequireDefault2(require$$2);
|
|
961
961
|
var _clsx2 = _interopRequireDefault2(clsx);
|
|
962
962
|
var _domFns2 = domFns;
|
package/dist/react-resizable.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import require$$0 from "react";
|
|
2
2
|
import { c as cjs } from "./react-draggable.js";
|
|
3
|
-
import
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
4
|
var reactResizable = { exports: {} };
|
|
5
5
|
var Resizable$1 = {};
|
|
6
6
|
var utils = {};
|
|
@@ -60,7 +60,7 @@ function cloneElement(element, props) {
|
|
|
60
60
|
var propTypes = {};
|
|
61
61
|
propTypes.__esModule = true;
|
|
62
62
|
propTypes.resizableProps = void 0;
|
|
63
|
-
var _propTypes$2 = _interopRequireDefault$1(
|
|
63
|
+
var _propTypes$2 = _interopRequireDefault$1(PropTypes);
|
|
64
64
|
function _interopRequireDefault$1(obj) {
|
|
65
65
|
return obj && obj.__esModule ? obj : { default: obj };
|
|
66
66
|
}
|
|
@@ -389,7 +389,7 @@ var ResizableBox$2 = {};
|
|
|
389
389
|
ResizableBox$2.__esModule = true;
|
|
390
390
|
ResizableBox$2.default = void 0;
|
|
391
391
|
var React = _interopRequireWildcard(require$$0);
|
|
392
|
-
var _propTypes = _interopRequireDefault(
|
|
392
|
+
var _propTypes = _interopRequireDefault(PropTypes);
|
|
393
393
|
var _Resizable = _interopRequireDefault(Resizable$1);
|
|
394
394
|
var _propTypes2 = propTypes;
|
|
395
395
|
var _excluded = ["handle", "handleSize", "onResize", "onResizeStart", "onResizeStop", "draggableOpts", "minConstraints", "maxConstraints", "lockAspectRatio", "axis", "width", "height", "resizeHandles", "style", "transformScale"];
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { g as getDefaultExportFromCjs } from "./commonjs.js";
|
|
2
|
-
import
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
3
|
import require$$0 from "react";
|
|
4
4
|
var lib = { exports: {} };
|
|
5
5
|
(function(module, exports) {
|
|
6
6
|
!function(e, t) {
|
|
7
|
-
module.exports = t(
|
|
7
|
+
module.exports = t(PropTypes, require$$0);
|
|
8
8
|
}(window, function(e, t) {
|
|
9
9
|
return function(e2) {
|
|
10
10
|
var t2 = {};
|
|
11
11
|
function n(o) {
|
|
12
12
|
if (t2[o])
|
|
13
13
|
return t2[o].exports;
|
|
14
|
-
var
|
|
15
|
-
return e2[o].call(
|
|
14
|
+
var r = t2[o] = { i: o, l: false, exports: {} };
|
|
15
|
+
return e2[o].call(r.exports, r, r.exports, n), r.l = true, r.exports;
|
|
16
16
|
}
|
|
17
17
|
return n.m = e2, n.c = t2, n.d = function(e3, t3, o) {
|
|
18
18
|
n.o(e3, t3) || Object.defineProperty(e3, t3, { enumerable: true, get: o });
|
|
@@ -25,10 +25,10 @@ var lib = { exports: {} };
|
|
|
25
25
|
return e3;
|
|
26
26
|
var o = /* @__PURE__ */ Object.create(null);
|
|
27
27
|
if (n.r(o), Object.defineProperty(o, "default", { enumerable: true, value: e3 }), 2 & t3 && typeof e3 != "string")
|
|
28
|
-
for (var
|
|
29
|
-
n.d(o,
|
|
28
|
+
for (var r in e3)
|
|
29
|
+
n.d(o, r, function(t4) {
|
|
30
30
|
return e3[t4];
|
|
31
|
-
}.bind(null,
|
|
31
|
+
}.bind(null, r));
|
|
32
32
|
return o;
|
|
33
33
|
}, n.n = function(e3) {
|
|
34
34
|
var t3 = e3 && e3.__esModule ? function() {
|
|
@@ -48,10 +48,10 @@ var lib = { exports: {} };
|
|
|
48
48
|
e2.exports = n(3);
|
|
49
49
|
}, function(e2, t2, n) {
|
|
50
50
|
n.r(t2);
|
|
51
|
-
var o = n(1),
|
|
51
|
+
var o = n(1), r = n.n(o), i = n(0), a = n.n(i);
|
|
52
52
|
function s(e3) {
|
|
53
53
|
var t3 = e3.size || 0, n2 = e3.percentage ? "%" : "px", o2 = "layout-pane", i2 = {};
|
|
54
|
-
return e3.primary ? o2 += " layout-pane-primary" : e3.vertical ? i2.height = "".concat(t3).concat(n2) : i2.width = "".concat(t3).concat(n2),
|
|
54
|
+
return e3.primary ? o2 += " layout-pane-primary" : e3.vertical ? i2.height = "".concat(t3).concat(n2) : i2.width = "".concat(t3).concat(n2), r.a.createElement("div", { className: o2, style: i2 }, e3.children);
|
|
55
55
|
}
|
|
56
56
|
s.propTypes = { vertical: a.a.bool, primary: a.a.bool, size: a.a.number, percentage: a.a.bool, children: a.a.oneOfType([a.a.arrayOf(a.a.node), a.a.node]) }, s.defaultProps = { vertical: false, primary: false, size: 0, percentage: false, children: [] };
|
|
57
57
|
var c = s;
|
|
@@ -92,18 +92,18 @@ var lib = { exports: {} };
|
|
|
92
92
|
}
|
|
93
93
|
var y = function(e3) {
|
|
94
94
|
function t3(e4) {
|
|
95
|
-
var n3, o3,
|
|
95
|
+
var n3, o3, r2;
|
|
96
96
|
return function(e5, t4) {
|
|
97
97
|
if (!(e5 instanceof t4))
|
|
98
98
|
throw new TypeError("Cannot call a class as a function");
|
|
99
|
-
}(this, t3), o3 = this, (n3 = !(
|
|
99
|
+
}(this, t3), o3 = this, (n3 = !(r2 = p(t3).call(this, e4)) || l(r2) !== "object" && typeof r2 != "function" ? h(o3) : r2).handleResize = n3.handleResize.bind(h(h(n3))), n3.handleMouseMove = n3.handleMouseMove.bind(h(h(n3))), n3.handleMouseUp = n3.handleMouseUp.bind(h(h(n3))), n3.handleTouchMove = n3.handleTouchMove.bind(h(h(n3))), n3.handleSplitterMouseDown = n3.handleSplitterMouseDown.bind(h(h(n3))), n3.state = { secondaryPaneSize: 0, resizing: false }, n3;
|
|
100
100
|
}
|
|
101
101
|
var n2, o2;
|
|
102
102
|
return function(e4, t4) {
|
|
103
103
|
if (typeof t4 != "function" && t4 !== null)
|
|
104
104
|
throw new TypeError("Super expression must either be null or a function");
|
|
105
105
|
e4.prototype = Object.create(t4 && t4.prototype, { constructor: { value: e4, writable: true, configurable: true } }), t4 && d(e4, t4);
|
|
106
|
-
}(t3,
|
|
106
|
+
}(t3, r.a.Component), n2 = t3, (o2 = [{ key: "componentDidMount", value: function() {
|
|
107
107
|
var e4;
|
|
108
108
|
if (window.addEventListener("resize", this.handleResize), document.addEventListener("mouseup", this.handleMouseUp), document.addEventListener("mousemove", this.handleMouseMove), document.addEventListener("touchend", this.handleMouseUp), document.addEventListener("touchmove", this.handleTouchMove), this.props.secondaryInitialSize !== void 0)
|
|
109
109
|
e4 = this.props.secondaryInitialSize;
|
|
@@ -117,10 +117,10 @@ var lib = { exports: {} };
|
|
|
117
117
|
} }, { key: "componentWillUnmount", value: function() {
|
|
118
118
|
window.removeEventListener("resize", this.handleResize), document.removeEventListener("mouseup", this.handleMouseUp), document.removeEventListener("mousemove", this.handleMouseMove), document.removeEventListener("touchend", this.handleMouseUp), document.removeEventListener("touchmove", this.handleTouchMove);
|
|
119
119
|
} }, { key: "getSecondaryPaneSize", value: function(e4, t4, n3, o3) {
|
|
120
|
-
var
|
|
121
|
-
this.props.vertical ? (
|
|
122
|
-
var c2 =
|
|
123
|
-
return this.props.percentage && (s2 = 100 * s2 /
|
|
120
|
+
var r2, i2, a2, s2;
|
|
121
|
+
this.props.vertical ? (r2 = e4.height, i2 = t4.height, a2 = n3.top - e4.top) : (r2 = e4.width, i2 = t4.width, a2 = n3.left - e4.left), o3 && (a2 -= i2 / 2), a2 < 0 ? a2 = 0 : a2 > r2 - i2 && (a2 = r2 - i2);
|
|
122
|
+
var c2 = r2 - i2 - (s2 = this.props.primaryIndex === 1 ? a2 : r2 - i2 - a2);
|
|
123
|
+
return this.props.percentage && (s2 = 100 * s2 / r2, c2 = 100 * c2 / r2, i2 = 100 * i2 / r2, r2 = 100), c2 < this.props.primaryMinSize ? s2 = Math.max(s2 - (this.props.primaryMinSize - c2), 0) : s2 < this.props.secondaryMinSize && (s2 = Math.min(r2 - i2 - this.props.primaryMinSize, this.props.secondaryMinSize)), s2;
|
|
124
124
|
} }, { key: "handleResize", value: function() {
|
|
125
125
|
if (this.splitter && !this.props.percentage) {
|
|
126
126
|
var e4 = this.container.getBoundingClientRect(), t4 = this.splitter.getBoundingClientRect(), n3 = this.getSecondaryPaneSize(e4, t4, { left: t4.left, top: t4.top }, false);
|
|
@@ -142,15 +142,15 @@ var lib = { exports: {} };
|
|
|
142
142
|
} }, { key: "render", value: function() {
|
|
143
143
|
var e4 = this, t4 = "splitter-layout";
|
|
144
144
|
this.props.customClassName && (t4 += " ".concat(this.props.customClassName)), this.props.vertical && (t4 += " splitter-layout-vertical"), this.state.resizing && (t4 += " layout-changing");
|
|
145
|
-
var n3 =
|
|
146
|
-
n3.length === 0 && n3.push(
|
|
145
|
+
var n3 = r.a.Children.toArray(this.props.children).slice(0, 2);
|
|
146
|
+
n3.length === 0 && n3.push(r.a.createElement("div", null));
|
|
147
147
|
for (var o3 = [], i2 = this.props.primaryIndex !== 0 && this.props.primaryIndex !== 1 ? 0 : this.props.primaryIndex, a2 = 0; a2 < n3.length; ++a2) {
|
|
148
148
|
var s2 = true, l2 = null;
|
|
149
|
-
n3.length > 1 && a2 !== i2 && (s2 = false, l2 = this.state.secondaryPaneSize), o3.push(
|
|
149
|
+
n3.length > 1 && a2 !== i2 && (s2 = false, l2 = this.state.secondaryPaneSize), o3.push(r.a.createElement(c, { vertical: this.props.vertical, percentage: this.props.percentage, primary: s2, size: l2 }, n3[a2]));
|
|
150
150
|
}
|
|
151
|
-
return
|
|
151
|
+
return r.a.createElement("div", { className: t4, ref: function(t5) {
|
|
152
152
|
e4.container = t5;
|
|
153
|
-
} }, o3[0], o3.length > 1 &&
|
|
153
|
+
} }, o3[0], o3.length > 1 && r.a.createElement("div", { role: "separator", className: "layout-splitter", ref: function(t5) {
|
|
154
154
|
e4.splitter = t5;
|
|
155
155
|
}, onMouseDown: this.handleSplitterMouseDown, onTouchStart: this.handleSplitterMouseDown }), o3.length > 1 && o3[1]);
|
|
156
156
|
} }]) && u(n2.prototype, o2), t3;
|
package/dist/simplebar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import require$$0, { useRef, useEffect } from "react";
|
|
2
|
-
import
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
3
|
import "./core-js.js";
|
|
4
4
|
import { l as lodash_throttle, a as lodash_debounce, b as lodash_memoize } from "./lodash.js";
|
|
5
5
|
import { R as ResizeObserver } from "./juggle.js";
|
|
@@ -842,9 +842,9 @@ var SimpleBar = /* @__PURE__ */ require$$0.forwardRef(function(_ref, ref) {
|
|
|
842
842
|
});
|
|
843
843
|
SimpleBar.displayName = "SimpleBar";
|
|
844
844
|
SimpleBar.propTypes = {
|
|
845
|
-
children:
|
|
846
|
-
scrollableNodeProps:
|
|
847
|
-
tag:
|
|
845
|
+
children: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),
|
|
846
|
+
scrollableNodeProps: PropTypes.object,
|
|
847
|
+
tag: PropTypes.string
|
|
848
848
|
};
|
|
849
849
|
const simplebar_min = /* @__PURE__ */ (() => '[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;inset:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;inset:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;user-select:none;-webkit-user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition:opacity 0s linear}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-track.simplebar-vertical .simplebar-scrollbar:before{top:2px;bottom:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar:before{height:100%;left:2px;right:2px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:2px;height:7px;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.hs-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}\n')();
|
|
850
850
|
export { SimpleBar as S };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.60",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"format": "npm run prettier:fix && npm run lint:fix"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@m4l/graphics": "^0.0.
|
|
17
|
+
"@m4l/graphics": "^0.0.38",
|
|
18
18
|
"react": "^17.0.0 || 18.x",
|
|
19
19
|
"react-dom": "^18.0.0",
|
|
20
20
|
"react-draggable": "^4.4.5",
|