wcz-test 6.27.2 → 6.27.3
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/DialogsContext-CGAKEKKW.js +546 -0
- package/dist/DialogsContext-CGAKEKKW.js.map +1 -0
- package/dist/DialogsHooks-BZUdpDVJ.js +231 -0
- package/dist/{DialogsHooks-DzqOb2Zx.js.map → DialogsHooks-BZUdpDVJ.js.map} +1 -1
- package/dist/{FileHooks-C8Akmy_o.js → FileHooks-DCznEPaA.js} +65 -61
- package/dist/{FileHooks-C8Akmy_o.js.map → FileHooks-DCznEPaA.js.map} +1 -1
- package/dist/RouterListItemButton-C_jUvB6C.js +18 -0
- package/dist/RouterListItemButton-C_jUvB6C.js.map +1 -0
- package/dist/compiler-runtime-BNHg76kC.js +37 -0
- package/dist/compiler-runtime-BNHg76kC.js.map +1 -0
- package/dist/components.js +1562 -944
- package/dist/components.js.map +1 -1
- package/dist/hooks.js +278 -278
- package/dist/hooks.js.map +1 -1
- package/dist/i18next-Bx3TmZAT.js +1337 -0
- package/dist/i18next-Bx3TmZAT.js.map +1 -0
- package/dist/index.js +842 -973
- package/dist/index.js.map +1 -1
- package/dist/queries.js +85 -85
- package/dist/queries.js.map +1 -1
- package/dist/utils-DV30kRxW.js +1921 -0
- package/dist/utils-DV30kRxW.js.map +1 -0
- package/dist/utils.js +4 -5
- package/dist/utils.js.map +1 -1
- package/package.json +1 -2
- package/dist/DialogsContext-2Yy6yhzQ.js +0 -6
- package/dist/DialogsContext-2Yy6yhzQ.js.map +0 -1
- package/dist/DialogsHooks-DzqOb2Zx.js +0 -233
- package/dist/RouterListItemButton-i4Ne2G-Z.js +0 -508
- package/dist/RouterListItemButton-i4Ne2G-Z.js.map +0 -1
- package/dist/_commonjsHelpers-DaMA6jEr.js +0 -9
- package/dist/_commonjsHelpers-DaMA6jEr.js.map +0 -1
- package/dist/utils-IWcYo8tM.js +0 -106
- package/dist/utils-IWcYo8tM.js.map +0 -1
package/dist/components.js
CHANGED
|
@@ -1,37 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as
|
|
3
|
-
import { Typography as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
let t, a, n, o, p;
|
|
26
|
-
i[0] !== e ? ({
|
|
27
|
-
startIcon: o,
|
|
1
|
+
import { j as v, u as pt } from "./DialogsContext-CGAKEKKW.js";
|
|
2
|
+
import { c as Y } from "./compiler-runtime-BNHg76kC.js";
|
|
3
|
+
import { Typography as xe, Stack as ke, Box as ce, useTheme as ci, Paper as si, ListItemButton as Qe, ListItemIcon as et, ListItemText as tt, List as $t, Menu as di, ImageListItemBar as mi, IconButton as lt, Tooltip as ui, ImageListItem as fi, Dialog as vi, Fab as xi, Chip as xt, Button as gi, Link as hi, Tab as yi, Divider as Mt } from "@mui/material";
|
|
4
|
+
import he, { useRef as we, useState as je, useEffectEvent as bi, useEffect as ve, useMemo as fe, useReducer as wi, useCallback as ae, forwardRef as ki, useImperativeHandle as ji, Fragment as ct, createContext as Ei, useContext as Ti } from "react";
|
|
5
|
+
import _i from "@mui/icons-material/CloudUpload";
|
|
6
|
+
import { i as Yt, c as st, f as Oi, a as Di, d as Wt, b as Ai, u as Ci } from "./FileHooks-DCznEPaA.js";
|
|
7
|
+
import Bt from "@mui/icons-material/MoreVert";
|
|
8
|
+
import { grey as Si } from "@mui/material/colors";
|
|
9
|
+
import { u as Ri, a as Pi } from "./DialogsHooks-BZUdpDVJ.js";
|
|
10
|
+
import Ii from "@mui/icons-material/Delete";
|
|
11
|
+
import zi from "@mui/icons-material/FileDownload";
|
|
12
|
+
import Fi from "@mui/icons-material/AttachFile";
|
|
13
|
+
import qi from "@mui/icons-material/Image";
|
|
14
|
+
import Li from "@mui/icons-material/SmartDisplay";
|
|
15
|
+
import $i from "@mui/icons-material/Close";
|
|
16
|
+
import Mi from "@mui/icons-material/Edit";
|
|
17
|
+
import { createLink as Te } from "@tanstack/react-router";
|
|
18
|
+
import { GridActionsCellItem as Yi } from "@mui/x-data-grid-premium";
|
|
19
|
+
import { R as Bn } from "./RouterListItemButton-C_jUvB6C.js";
|
|
20
|
+
const Wi = (t) => {
|
|
21
|
+
const e = Y.c(22);
|
|
22
|
+
let i, a, n, r, p;
|
|
23
|
+
e[0] !== t ? ({
|
|
24
|
+
startIcon: r,
|
|
28
25
|
endIcon: a,
|
|
29
|
-
children:
|
|
26
|
+
children: i,
|
|
30
27
|
sx: p,
|
|
31
28
|
...n
|
|
32
|
-
} =
|
|
29
|
+
} = t, e[0] = t, e[1] = i, e[2] = a, e[3] = n, e[4] = r, e[5] = p) : (i = e[1], a = e[2], n = e[3], r = e[4], p = e[5]);
|
|
33
30
|
let l;
|
|
34
|
-
|
|
31
|
+
e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = {
|
|
35
32
|
display: "inline-flex",
|
|
36
33
|
alignItems: "center",
|
|
37
34
|
justifyContent: "center",
|
|
@@ -40,81 +37,702 @@ const yt = (e) => {
|
|
|
40
37
|
"& > svg": {
|
|
41
38
|
display: "block"
|
|
42
39
|
}
|
|
43
|
-
},
|
|
40
|
+
}, e[6] = l) : l = e[6];
|
|
44
41
|
const d = l;
|
|
45
42
|
let c;
|
|
46
|
-
|
|
43
|
+
e[7] !== p ? (c = {
|
|
47
44
|
display: "inline-flex",
|
|
48
45
|
alignItems: "center",
|
|
49
46
|
verticalAlign: "middle",
|
|
50
47
|
...p
|
|
51
|
-
},
|
|
48
|
+
}, e[7] = p, e[8] = c) : c = e[8];
|
|
52
49
|
let s;
|
|
53
|
-
|
|
50
|
+
e[9] !== r ? (s = r && /* @__PURE__ */ v.jsx(ke, { component: "span", sx: d, children: r }), e[9] = r, e[10] = s) : s = e[10];
|
|
54
51
|
let m;
|
|
55
|
-
|
|
52
|
+
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = {
|
|
56
53
|
display: "inline",
|
|
57
54
|
lineHeight: "inherit"
|
|
58
|
-
},
|
|
55
|
+
}, e[11] = m) : m = e[11];
|
|
59
56
|
let f;
|
|
60
|
-
|
|
61
|
-
let
|
|
62
|
-
|
|
63
|
-
let
|
|
64
|
-
return
|
|
57
|
+
e[12] !== i ? (f = /* @__PURE__ */ v.jsx(ke, { component: "span", sx: m, children: i }), e[12] = i, e[13] = f) : f = e[13];
|
|
58
|
+
let y;
|
|
59
|
+
e[14] !== a ? (y = a && /* @__PURE__ */ v.jsx(ke, { component: "span", sx: d, children: a }), e[14] = a, e[15] = y) : y = e[15];
|
|
60
|
+
let h;
|
|
61
|
+
return e[16] !== n || e[17] !== c || e[18] !== s || e[19] !== f || e[20] !== y ? (h = /* @__PURE__ */ v.jsxs(xe, { component: "span", sx: c, gap: 1, ...n, children: [
|
|
65
62
|
s,
|
|
66
63
|
f,
|
|
67
|
-
|
|
68
|
-
] }),
|
|
69
|
-
},
|
|
70
|
-
const
|
|
71
|
-
let
|
|
72
|
-
|
|
73
|
-
children:
|
|
64
|
+
y
|
|
65
|
+
] }), e[16] = n, e[17] = c, e[18] = s, e[19] = f, e[20] = y, e[21] = h) : h = e[21], h;
|
|
66
|
+
}, An = (t) => {
|
|
67
|
+
const e = Y.c(15);
|
|
68
|
+
let i, a, n;
|
|
69
|
+
e[0] !== t ? ({
|
|
70
|
+
children: i,
|
|
74
71
|
sx: n,
|
|
75
72
|
...a
|
|
76
|
-
} =
|
|
77
|
-
const
|
|
73
|
+
} = t, e[0] = t, e[1] = i, e[2] = a, e[3] = n) : (i = e[1], a = e[2], n = e[3]);
|
|
74
|
+
const r = we(null), [p, l] = je();
|
|
78
75
|
let d;
|
|
79
|
-
|
|
80
|
-
if (!
|
|
76
|
+
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = () => {
|
|
77
|
+
if (!r.current)
|
|
81
78
|
return;
|
|
82
|
-
const
|
|
83
|
-
l(
|
|
84
|
-
},
|
|
85
|
-
const c =
|
|
79
|
+
const h = Math.ceil(r.current.getBoundingClientRect().top), o = Math.max(0, window.innerHeight - h);
|
|
80
|
+
l(o);
|
|
81
|
+
}, e[4] = d) : d = e[4];
|
|
82
|
+
const c = bi(d);
|
|
86
83
|
let s;
|
|
87
|
-
|
|
88
|
-
const
|
|
89
|
-
if (!
|
|
84
|
+
e[5] !== c ? (s = () => {
|
|
85
|
+
const h = r.current;
|
|
86
|
+
if (!h)
|
|
90
87
|
return;
|
|
91
88
|
c(), window.addEventListener("resize", c);
|
|
92
|
-
const
|
|
93
|
-
return
|
|
94
|
-
window.removeEventListener("resize", c),
|
|
89
|
+
const o = new ResizeObserver(c);
|
|
90
|
+
return o.observe(document.documentElement), o.observe(document.body), o.observe(h), () => {
|
|
91
|
+
window.removeEventListener("resize", c), o.disconnect();
|
|
95
92
|
};
|
|
96
|
-
},
|
|
93
|
+
}, e[5] = c, e[6] = s) : s = e[6];
|
|
97
94
|
let m;
|
|
98
|
-
|
|
95
|
+
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = [], e[7] = m) : m = e[7], ve(s, m);
|
|
99
96
|
let f;
|
|
100
|
-
|
|
97
|
+
e[8] !== n ? (f = {
|
|
101
98
|
display: "flex",
|
|
102
99
|
flexDirection: "column",
|
|
103
100
|
minHeight: 0,
|
|
104
101
|
width: "100%",
|
|
105
102
|
overflow: "auto",
|
|
106
103
|
...n
|
|
107
|
-
},
|
|
108
|
-
let
|
|
109
|
-
return
|
|
104
|
+
}, e[8] = n, e[9] = f) : f = e[9];
|
|
105
|
+
let y;
|
|
106
|
+
return e[10] !== i || e[11] !== p || e[12] !== a || e[13] !== f ? (y = /* @__PURE__ */ v.jsx(ce, { ref: r, sx: f, height: p, ...a, children: i }), e[10] = i, e[11] = p, e[12] = a, e[13] = f, e[14] = y) : y = e[14], y;
|
|
110
107
|
};
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
108
|
+
var Ae = { exports: {} }, Ce = { exports: {} }, I = {};
|
|
109
|
+
var gt;
|
|
110
|
+
function Bi() {
|
|
111
|
+
if (gt) return I;
|
|
112
|
+
gt = 1;
|
|
113
|
+
var t = /* @__PURE__ */ Symbol.for("react.transitional.element"), e = /* @__PURE__ */ Symbol.for("react.portal"), i = /* @__PURE__ */ Symbol.for("react.fragment"), a = /* @__PURE__ */ Symbol.for("react.strict_mode"), n = /* @__PURE__ */ Symbol.for("react.profiler"), r = /* @__PURE__ */ Symbol.for("react.consumer"), p = /* @__PURE__ */ Symbol.for("react.context"), l = /* @__PURE__ */ Symbol.for("react.forward_ref"), d = /* @__PURE__ */ Symbol.for("react.suspense"), c = /* @__PURE__ */ Symbol.for("react.suspense_list"), s = /* @__PURE__ */ Symbol.for("react.memo"), m = /* @__PURE__ */ Symbol.for("react.lazy"), f = /* @__PURE__ */ Symbol.for("react.view_transition"), y = /* @__PURE__ */ Symbol.for("react.client.reference");
|
|
114
|
+
function h(o) {
|
|
115
|
+
if (typeof o == "object" && o !== null) {
|
|
116
|
+
var b = o.$$typeof;
|
|
117
|
+
switch (b) {
|
|
118
|
+
case t:
|
|
119
|
+
switch (o = o.type, o) {
|
|
120
|
+
case i:
|
|
121
|
+
case n:
|
|
122
|
+
case a:
|
|
123
|
+
case d:
|
|
124
|
+
case c:
|
|
125
|
+
case f:
|
|
126
|
+
return o;
|
|
127
|
+
default:
|
|
128
|
+
switch (o = o && o.$$typeof, o) {
|
|
129
|
+
case p:
|
|
130
|
+
case l:
|
|
131
|
+
case m:
|
|
132
|
+
case s:
|
|
133
|
+
return o;
|
|
134
|
+
case r:
|
|
135
|
+
return o;
|
|
136
|
+
default:
|
|
137
|
+
return b;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
case e:
|
|
141
|
+
return b;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
return I.ContextConsumer = r, I.ContextProvider = p, I.Element = t, I.ForwardRef = l, I.Fragment = i, I.Lazy = m, I.Memo = s, I.Portal = e, I.Profiler = n, I.StrictMode = a, I.Suspense = d, I.SuspenseList = c, I.isContextConsumer = function(o) {
|
|
146
|
+
return h(o) === r;
|
|
147
|
+
}, I.isContextProvider = function(o) {
|
|
148
|
+
return h(o) === p;
|
|
149
|
+
}, I.isElement = function(o) {
|
|
150
|
+
return typeof o == "object" && o !== null && o.$$typeof === t;
|
|
151
|
+
}, I.isForwardRef = function(o) {
|
|
152
|
+
return h(o) === l;
|
|
153
|
+
}, I.isFragment = function(o) {
|
|
154
|
+
return h(o) === i;
|
|
155
|
+
}, I.isLazy = function(o) {
|
|
156
|
+
return h(o) === m;
|
|
157
|
+
}, I.isMemo = function(o) {
|
|
158
|
+
return h(o) === s;
|
|
159
|
+
}, I.isPortal = function(o) {
|
|
160
|
+
return h(o) === e;
|
|
161
|
+
}, I.isProfiler = function(o) {
|
|
162
|
+
return h(o) === n;
|
|
163
|
+
}, I.isStrictMode = function(o) {
|
|
164
|
+
return h(o) === a;
|
|
165
|
+
}, I.isSuspense = function(o) {
|
|
166
|
+
return h(o) === d;
|
|
167
|
+
}, I.isSuspenseList = function(o) {
|
|
168
|
+
return h(o) === c;
|
|
169
|
+
}, I.isValidElementType = function(o) {
|
|
170
|
+
return typeof o == "string" || typeof o == "function" || o === i || o === n || o === a || o === d || o === c || typeof o == "object" && o !== null && (o.$$typeof === m || o.$$typeof === s || o.$$typeof === p || o.$$typeof === r || o.$$typeof === l || o.$$typeof === y || o.getModuleId !== void 0);
|
|
171
|
+
}, I.typeOf = h, I;
|
|
172
|
+
}
|
|
173
|
+
var z = {};
|
|
174
|
+
var ht;
|
|
175
|
+
function Ni() {
|
|
176
|
+
return ht || (ht = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
177
|
+
function t(o) {
|
|
178
|
+
if (typeof o == "object" && o !== null) {
|
|
179
|
+
var b = o.$$typeof;
|
|
180
|
+
switch (b) {
|
|
181
|
+
case e:
|
|
182
|
+
switch (o = o.type, o) {
|
|
183
|
+
case a:
|
|
184
|
+
case r:
|
|
185
|
+
case n:
|
|
186
|
+
case c:
|
|
187
|
+
case s:
|
|
188
|
+
case y:
|
|
189
|
+
return o;
|
|
190
|
+
default:
|
|
191
|
+
switch (o = o && o.$$typeof, o) {
|
|
192
|
+
case l:
|
|
193
|
+
case d:
|
|
194
|
+
case f:
|
|
195
|
+
case m:
|
|
196
|
+
return o;
|
|
197
|
+
case p:
|
|
198
|
+
return o;
|
|
199
|
+
default:
|
|
200
|
+
return b;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
case i:
|
|
204
|
+
return b;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), i = /* @__PURE__ */ Symbol.for("react.portal"), a = /* @__PURE__ */ Symbol.for("react.fragment"), n = /* @__PURE__ */ Symbol.for("react.strict_mode"), r = /* @__PURE__ */ Symbol.for("react.profiler"), p = /* @__PURE__ */ Symbol.for("react.consumer"), l = /* @__PURE__ */ Symbol.for("react.context"), d = /* @__PURE__ */ Symbol.for("react.forward_ref"), c = /* @__PURE__ */ Symbol.for("react.suspense"), s = /* @__PURE__ */ Symbol.for("react.suspense_list"), m = /* @__PURE__ */ Symbol.for("react.memo"), f = /* @__PURE__ */ Symbol.for("react.lazy"), y = /* @__PURE__ */ Symbol.for("react.view_transition"), h = /* @__PURE__ */ Symbol.for("react.client.reference");
|
|
209
|
+
z.ContextConsumer = p, z.ContextProvider = l, z.Element = e, z.ForwardRef = d, z.Fragment = a, z.Lazy = f, z.Memo = m, z.Portal = i, z.Profiler = r, z.StrictMode = n, z.Suspense = c, z.SuspenseList = s, z.isContextConsumer = function(o) {
|
|
210
|
+
return t(o) === p;
|
|
211
|
+
}, z.isContextProvider = function(o) {
|
|
212
|
+
return t(o) === l;
|
|
213
|
+
}, z.isElement = function(o) {
|
|
214
|
+
return typeof o == "object" && o !== null && o.$$typeof === e;
|
|
215
|
+
}, z.isForwardRef = function(o) {
|
|
216
|
+
return t(o) === d;
|
|
217
|
+
}, z.isFragment = function(o) {
|
|
218
|
+
return t(o) === a;
|
|
219
|
+
}, z.isLazy = function(o) {
|
|
220
|
+
return t(o) === f;
|
|
221
|
+
}, z.isMemo = function(o) {
|
|
222
|
+
return t(o) === m;
|
|
223
|
+
}, z.isPortal = function(o) {
|
|
224
|
+
return t(o) === i;
|
|
225
|
+
}, z.isProfiler = function(o) {
|
|
226
|
+
return t(o) === r;
|
|
227
|
+
}, z.isStrictMode = function(o) {
|
|
228
|
+
return t(o) === n;
|
|
229
|
+
}, z.isSuspense = function(o) {
|
|
230
|
+
return t(o) === c;
|
|
231
|
+
}, z.isSuspenseList = function(o) {
|
|
232
|
+
return t(o) === s;
|
|
233
|
+
}, z.isValidElementType = function(o) {
|
|
234
|
+
return typeof o == "string" || typeof o == "function" || o === a || o === r || o === n || o === c || o === s || typeof o == "object" && o !== null && (o.$$typeof === f || o.$$typeof === m || o.$$typeof === l || o.$$typeof === p || o.$$typeof === d || o.$$typeof === h || o.getModuleId !== void 0);
|
|
235
|
+
}, z.typeOf = t;
|
|
236
|
+
})()), z;
|
|
237
|
+
}
|
|
238
|
+
var yt;
|
|
239
|
+
function Nt() {
|
|
240
|
+
return yt || (yt = 1, process.env.NODE_ENV === "production" ? Ce.exports = /* @__PURE__ */ Bi() : Ce.exports = /* @__PURE__ */ Ni()), Ce.exports;
|
|
241
|
+
}
|
|
242
|
+
var He, bt;
|
|
243
|
+
function Hi() {
|
|
244
|
+
if (bt) return He;
|
|
245
|
+
bt = 1;
|
|
246
|
+
var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
|
|
247
|
+
function a(r) {
|
|
248
|
+
if (r == null)
|
|
249
|
+
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
250
|
+
return Object(r);
|
|
251
|
+
}
|
|
252
|
+
function n() {
|
|
253
|
+
try {
|
|
254
|
+
if (!Object.assign)
|
|
255
|
+
return !1;
|
|
256
|
+
var r = new String("abc");
|
|
257
|
+
if (r[5] = "de", Object.getOwnPropertyNames(r)[0] === "5")
|
|
258
|
+
return !1;
|
|
259
|
+
for (var p = {}, l = 0; l < 10; l++)
|
|
260
|
+
p["_" + String.fromCharCode(l)] = l;
|
|
261
|
+
var d = Object.getOwnPropertyNames(p).map(function(s) {
|
|
262
|
+
return p[s];
|
|
263
|
+
});
|
|
264
|
+
if (d.join("") !== "0123456789")
|
|
265
|
+
return !1;
|
|
266
|
+
var c = {};
|
|
267
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(s) {
|
|
268
|
+
c[s] = s;
|
|
269
|
+
}), Object.keys(Object.assign({}, c)).join("") === "abcdefghijklmnopqrst";
|
|
270
|
+
} catch {
|
|
271
|
+
return !1;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
return He = n() ? Object.assign : function(r, p) {
|
|
275
|
+
for (var l, d = a(r), c, s = 1; s < arguments.length; s++) {
|
|
276
|
+
l = Object(arguments[s]);
|
|
277
|
+
for (var m in l)
|
|
278
|
+
e.call(l, m) && (d[m] = l[m]);
|
|
279
|
+
if (t) {
|
|
280
|
+
c = t(l);
|
|
281
|
+
for (var f = 0; f < c.length; f++)
|
|
282
|
+
i.call(l, c[f]) && (d[c[f]] = l[c[f]]);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
return d;
|
|
286
|
+
}, He;
|
|
287
|
+
}
|
|
288
|
+
var Ke, wt;
|
|
289
|
+
function dt() {
|
|
290
|
+
if (wt) return Ke;
|
|
291
|
+
wt = 1;
|
|
292
|
+
var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
293
|
+
return Ke = t, Ke;
|
|
294
|
+
}
|
|
295
|
+
var Ue, kt;
|
|
296
|
+
function Ht() {
|
|
297
|
+
return kt || (kt = 1, Ue = Function.call.bind(Object.prototype.hasOwnProperty)), Ue;
|
|
298
|
+
}
|
|
299
|
+
var Ve, jt;
|
|
300
|
+
function Ki() {
|
|
301
|
+
if (jt) return Ve;
|
|
302
|
+
jt = 1;
|
|
303
|
+
var t = function() {
|
|
304
|
+
};
|
|
305
|
+
if (process.env.NODE_ENV !== "production") {
|
|
306
|
+
var e = /* @__PURE__ */ dt(), i = {}, a = /* @__PURE__ */ Ht();
|
|
307
|
+
t = function(r) {
|
|
308
|
+
var p = "Warning: " + r;
|
|
309
|
+
typeof console < "u" && console.error(p);
|
|
310
|
+
try {
|
|
311
|
+
throw new Error(p);
|
|
312
|
+
} catch {
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
function n(r, p, l, d, c) {
|
|
317
|
+
if (process.env.NODE_ENV !== "production") {
|
|
318
|
+
for (var s in r)
|
|
319
|
+
if (a(r, s)) {
|
|
320
|
+
var m;
|
|
321
|
+
try {
|
|
322
|
+
if (typeof r[s] != "function") {
|
|
323
|
+
var f = Error(
|
|
324
|
+
(d || "React class") + ": " + l + " type `" + s + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[s] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
325
|
+
);
|
|
326
|
+
throw f.name = "Invariant Violation", f;
|
|
327
|
+
}
|
|
328
|
+
m = r[s](p, s, d, l, null, e);
|
|
329
|
+
} catch (h) {
|
|
330
|
+
m = h;
|
|
331
|
+
}
|
|
332
|
+
if (m && !(m instanceof Error) && t(
|
|
333
|
+
(d || "React class") + ": type specification of " + l + " `" + s + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof m + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
334
|
+
), m instanceof Error && !(m.message in i)) {
|
|
335
|
+
i[m.message] = !0;
|
|
336
|
+
var y = c ? c() : "";
|
|
337
|
+
t(
|
|
338
|
+
"Failed " + l + " type: " + m.message + (y ?? "")
|
|
339
|
+
);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
return n.resetWarningCache = function() {
|
|
345
|
+
process.env.NODE_ENV !== "production" && (i = {});
|
|
346
|
+
}, Ve = n, Ve;
|
|
347
|
+
}
|
|
348
|
+
var Ge, Et;
|
|
349
|
+
function Ui() {
|
|
350
|
+
if (Et) return Ge;
|
|
351
|
+
Et = 1;
|
|
352
|
+
var t = /* @__PURE__ */ Nt(), e = Hi(), i = /* @__PURE__ */ dt(), a = /* @__PURE__ */ Ht(), n = /* @__PURE__ */ Ki(), r = function() {
|
|
353
|
+
};
|
|
354
|
+
process.env.NODE_ENV !== "production" && (r = function(l) {
|
|
355
|
+
var d = "Warning: " + l;
|
|
356
|
+
typeof console < "u" && console.error(d);
|
|
357
|
+
try {
|
|
358
|
+
throw new Error(d);
|
|
359
|
+
} catch {
|
|
360
|
+
}
|
|
361
|
+
});
|
|
362
|
+
function p() {
|
|
363
|
+
return null;
|
|
364
|
+
}
|
|
365
|
+
return Ge = function(l, d) {
|
|
366
|
+
var c = typeof Symbol == "function" && Symbol.iterator, s = "@@iterator";
|
|
367
|
+
function m(u) {
|
|
368
|
+
var x = u && (c && u[c] || u[s]);
|
|
369
|
+
if (typeof x == "function")
|
|
370
|
+
return x;
|
|
371
|
+
}
|
|
372
|
+
var f = "<<anonymous>>", y = {
|
|
373
|
+
array: _("array"),
|
|
374
|
+
bigint: _("bigint"),
|
|
375
|
+
bool: _("boolean"),
|
|
376
|
+
func: _("function"),
|
|
377
|
+
number: _("number"),
|
|
378
|
+
object: _("object"),
|
|
379
|
+
string: _("string"),
|
|
380
|
+
symbol: _("symbol"),
|
|
381
|
+
any: D(),
|
|
382
|
+
arrayOf: R,
|
|
383
|
+
element: F(),
|
|
384
|
+
elementType: $(),
|
|
385
|
+
instanceOf: N,
|
|
386
|
+
node: Z(),
|
|
387
|
+
objectOf: G,
|
|
388
|
+
oneOf: H,
|
|
389
|
+
oneOfType: J,
|
|
390
|
+
shape: pe,
|
|
391
|
+
exact: oe
|
|
392
|
+
};
|
|
393
|
+
function h(u, x) {
|
|
394
|
+
return u === x ? u !== 0 || 1 / u === 1 / x : u !== u && x !== x;
|
|
395
|
+
}
|
|
396
|
+
function o(u, x) {
|
|
397
|
+
this.message = u, this.data = x && typeof x == "object" ? x : {}, this.stack = "";
|
|
398
|
+
}
|
|
399
|
+
o.prototype = Error.prototype;
|
|
400
|
+
function b(u) {
|
|
401
|
+
if (process.env.NODE_ENV !== "production")
|
|
402
|
+
var x = {}, j = 0;
|
|
403
|
+
function T(C, E, O, S, P, A, X) {
|
|
404
|
+
if (S = S || f, A = A || O, X !== i) {
|
|
405
|
+
if (d) {
|
|
406
|
+
var B = new Error(
|
|
407
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
408
|
+
);
|
|
409
|
+
throw B.name = "Invariant Violation", B;
|
|
410
|
+
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
411
|
+
var le = S + ":" + O;
|
|
412
|
+
!x[le] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
413
|
+
j < 3 && (r(
|
|
414
|
+
"You are manually calling a React.PropTypes validation function for the `" + A + "` prop on `" + S + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
415
|
+
), x[le] = !0, j++);
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
return E[O] == null ? C ? E[O] === null ? new o("The " + P + " `" + A + "` is marked as required " + ("in `" + S + "`, but its value is `null`.")) : new o("The " + P + " `" + A + "` is marked as required in " + ("`" + S + "`, but its value is `undefined`.")) : null : u(E, O, S, P, A);
|
|
419
|
+
}
|
|
420
|
+
var w = T.bind(null, !1);
|
|
421
|
+
return w.isRequired = T.bind(null, !0), w;
|
|
422
|
+
}
|
|
423
|
+
function _(u) {
|
|
424
|
+
function x(j, T, w, C, E, O) {
|
|
425
|
+
var S = j[T], P = Q(S);
|
|
426
|
+
if (P !== u) {
|
|
427
|
+
var A = te(S);
|
|
428
|
+
return new o(
|
|
429
|
+
"Invalid " + C + " `" + E + "` of type " + ("`" + A + "` supplied to `" + w + "`, expected ") + ("`" + u + "`."),
|
|
430
|
+
{ expectedType: u }
|
|
431
|
+
);
|
|
432
|
+
}
|
|
433
|
+
return null;
|
|
434
|
+
}
|
|
435
|
+
return b(x);
|
|
436
|
+
}
|
|
437
|
+
function D() {
|
|
438
|
+
return b(p);
|
|
439
|
+
}
|
|
440
|
+
function R(u) {
|
|
441
|
+
function x(j, T, w, C, E) {
|
|
442
|
+
if (typeof u != "function")
|
|
443
|
+
return new o("Property `" + E + "` of component `" + w + "` has invalid PropType notation inside arrayOf.");
|
|
444
|
+
var O = j[T];
|
|
445
|
+
if (!Array.isArray(O)) {
|
|
446
|
+
var S = Q(O);
|
|
447
|
+
return new o("Invalid " + C + " `" + E + "` of type " + ("`" + S + "` supplied to `" + w + "`, expected an array."));
|
|
448
|
+
}
|
|
449
|
+
for (var P = 0; P < O.length; P++) {
|
|
450
|
+
var A = u(O, P, w, C, E + "[" + P + "]", i);
|
|
451
|
+
if (A instanceof Error)
|
|
452
|
+
return A;
|
|
453
|
+
}
|
|
454
|
+
return null;
|
|
455
|
+
}
|
|
456
|
+
return b(x);
|
|
457
|
+
}
|
|
458
|
+
function F() {
|
|
459
|
+
function u(x, j, T, w, C) {
|
|
460
|
+
var E = x[j];
|
|
461
|
+
if (!l(E)) {
|
|
462
|
+
var O = Q(E);
|
|
463
|
+
return new o("Invalid " + w + " `" + C + "` of type " + ("`" + O + "` supplied to `" + T + "`, expected a single ReactElement."));
|
|
464
|
+
}
|
|
465
|
+
return null;
|
|
466
|
+
}
|
|
467
|
+
return b(u);
|
|
468
|
+
}
|
|
469
|
+
function $() {
|
|
470
|
+
function u(x, j, T, w, C) {
|
|
471
|
+
var E = x[j];
|
|
472
|
+
if (!t.isValidElementType(E)) {
|
|
473
|
+
var O = Q(E);
|
|
474
|
+
return new o("Invalid " + w + " `" + C + "` of type " + ("`" + O + "` supplied to `" + T + "`, expected a single ReactElement type."));
|
|
475
|
+
}
|
|
476
|
+
return null;
|
|
477
|
+
}
|
|
478
|
+
return b(u);
|
|
479
|
+
}
|
|
480
|
+
function N(u) {
|
|
481
|
+
function x(j, T, w, C, E) {
|
|
482
|
+
if (!(j[T] instanceof u)) {
|
|
483
|
+
var O = u.name || f, S = W(j[T]);
|
|
484
|
+
return new o("Invalid " + C + " `" + E + "` of type " + ("`" + S + "` supplied to `" + w + "`, expected ") + ("instance of `" + O + "`."));
|
|
485
|
+
}
|
|
486
|
+
return null;
|
|
487
|
+
}
|
|
488
|
+
return b(x);
|
|
489
|
+
}
|
|
490
|
+
function H(u) {
|
|
491
|
+
if (!Array.isArray(u))
|
|
492
|
+
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? r(
|
|
493
|
+
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
494
|
+
) : r("Invalid argument supplied to oneOf, expected an array.")), p;
|
|
495
|
+
function x(j, T, w, C, E) {
|
|
496
|
+
for (var O = j[T], S = 0; S < u.length; S++)
|
|
497
|
+
if (h(O, u[S]))
|
|
498
|
+
return null;
|
|
499
|
+
var P = JSON.stringify(u, function(X, B) {
|
|
500
|
+
var le = te(B);
|
|
501
|
+
return le === "symbol" ? String(B) : B;
|
|
502
|
+
});
|
|
503
|
+
return new o("Invalid " + C + " `" + E + "` of value `" + String(O) + "` " + ("supplied to `" + w + "`, expected one of " + P + "."));
|
|
504
|
+
}
|
|
505
|
+
return b(x);
|
|
506
|
+
}
|
|
507
|
+
function G(u) {
|
|
508
|
+
function x(j, T, w, C, E) {
|
|
509
|
+
if (typeof u != "function")
|
|
510
|
+
return new o("Property `" + E + "` of component `" + w + "` has invalid PropType notation inside objectOf.");
|
|
511
|
+
var O = j[T], S = Q(O);
|
|
512
|
+
if (S !== "object")
|
|
513
|
+
return new o("Invalid " + C + " `" + E + "` of type " + ("`" + S + "` supplied to `" + w + "`, expected an object."));
|
|
514
|
+
for (var P in O)
|
|
515
|
+
if (a(O, P)) {
|
|
516
|
+
var A = u(O, P, w, C, E + "." + P, i);
|
|
517
|
+
if (A instanceof Error)
|
|
518
|
+
return A;
|
|
519
|
+
}
|
|
520
|
+
return null;
|
|
521
|
+
}
|
|
522
|
+
return b(x);
|
|
523
|
+
}
|
|
524
|
+
function J(u) {
|
|
525
|
+
if (!Array.isArray(u))
|
|
526
|
+
return process.env.NODE_ENV !== "production" && r("Invalid argument supplied to oneOfType, expected an instance of array."), p;
|
|
527
|
+
for (var x = 0; x < u.length; x++) {
|
|
528
|
+
var j = u[x];
|
|
529
|
+
if (typeof j != "function")
|
|
530
|
+
return r(
|
|
531
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ie(j) + " at index " + x + "."
|
|
532
|
+
), p;
|
|
533
|
+
}
|
|
534
|
+
function T(w, C, E, O, S) {
|
|
535
|
+
for (var P = [], A = 0; A < u.length; A++) {
|
|
536
|
+
var X = u[A], B = X(w, C, E, O, S, i);
|
|
537
|
+
if (B == null)
|
|
538
|
+
return null;
|
|
539
|
+
B.data && a(B.data, "expectedType") && P.push(B.data.expectedType);
|
|
540
|
+
}
|
|
541
|
+
var le = P.length > 0 ? ", expected one of type [" + P.join(", ") + "]" : "";
|
|
542
|
+
return new o("Invalid " + O + " `" + S + "` supplied to " + ("`" + E + "`" + le + "."));
|
|
543
|
+
}
|
|
544
|
+
return b(T);
|
|
545
|
+
}
|
|
546
|
+
function Z() {
|
|
547
|
+
function u(x, j, T, w, C) {
|
|
548
|
+
return q(x[j]) ? null : new o("Invalid " + w + " `" + C + "` supplied to " + ("`" + T + "`, expected a ReactNode."));
|
|
549
|
+
}
|
|
550
|
+
return b(u);
|
|
551
|
+
}
|
|
552
|
+
function ne(u, x, j, T, w) {
|
|
553
|
+
return new o(
|
|
554
|
+
(u || "React class") + ": " + x + " type `" + j + "." + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + w + "`."
|
|
555
|
+
);
|
|
556
|
+
}
|
|
557
|
+
function pe(u) {
|
|
558
|
+
function x(j, T, w, C, E) {
|
|
559
|
+
var O = j[T], S = Q(O);
|
|
560
|
+
if (S !== "object")
|
|
561
|
+
return new o("Invalid " + C + " `" + E + "` of type `" + S + "` " + ("supplied to `" + w + "`, expected `object`."));
|
|
562
|
+
for (var P in u) {
|
|
563
|
+
var A = u[P];
|
|
564
|
+
if (typeof A != "function")
|
|
565
|
+
return ne(w, C, E, P, te(A));
|
|
566
|
+
var X = A(O, P, w, C, E + "." + P, i);
|
|
567
|
+
if (X)
|
|
568
|
+
return X;
|
|
569
|
+
}
|
|
570
|
+
return null;
|
|
571
|
+
}
|
|
572
|
+
return b(x);
|
|
573
|
+
}
|
|
574
|
+
function oe(u) {
|
|
575
|
+
function x(j, T, w, C, E) {
|
|
576
|
+
var O = j[T], S = Q(O);
|
|
577
|
+
if (S !== "object")
|
|
578
|
+
return new o("Invalid " + C + " `" + E + "` of type `" + S + "` " + ("supplied to `" + w + "`, expected `object`."));
|
|
579
|
+
var P = e({}, j[T], u);
|
|
580
|
+
for (var A in P) {
|
|
581
|
+
var X = u[A];
|
|
582
|
+
if (a(u, A) && typeof X != "function")
|
|
583
|
+
return ne(w, C, E, A, te(X));
|
|
584
|
+
if (!X)
|
|
585
|
+
return new o(
|
|
586
|
+
"Invalid " + C + " `" + E + "` key `" + A + "` supplied to `" + w + "`.\nBad object: " + JSON.stringify(j[T], null, " ") + `
|
|
587
|
+
Valid keys: ` + JSON.stringify(Object.keys(u), null, " ")
|
|
588
|
+
);
|
|
589
|
+
var B = X(O, A, w, C, E + "." + A, i);
|
|
590
|
+
if (B)
|
|
591
|
+
return B;
|
|
592
|
+
}
|
|
593
|
+
return null;
|
|
594
|
+
}
|
|
595
|
+
return b(x);
|
|
596
|
+
}
|
|
597
|
+
function q(u) {
|
|
598
|
+
switch (typeof u) {
|
|
599
|
+
case "number":
|
|
600
|
+
case "string":
|
|
601
|
+
case "undefined":
|
|
602
|
+
return !0;
|
|
603
|
+
case "boolean":
|
|
604
|
+
return !u;
|
|
605
|
+
case "object":
|
|
606
|
+
if (Array.isArray(u))
|
|
607
|
+
return u.every(q);
|
|
608
|
+
if (u === null || l(u))
|
|
609
|
+
return !0;
|
|
610
|
+
var x = m(u);
|
|
611
|
+
if (x) {
|
|
612
|
+
var j = x.call(u), T;
|
|
613
|
+
if (x !== u.entries) {
|
|
614
|
+
for (; !(T = j.next()).done; )
|
|
615
|
+
if (!q(T.value))
|
|
616
|
+
return !1;
|
|
617
|
+
} else
|
|
618
|
+
for (; !(T = j.next()).done; ) {
|
|
619
|
+
var w = T.value;
|
|
620
|
+
if (w && !q(w[1]))
|
|
621
|
+
return !1;
|
|
622
|
+
}
|
|
623
|
+
} else
|
|
624
|
+
return !1;
|
|
625
|
+
return !0;
|
|
626
|
+
default:
|
|
627
|
+
return !1;
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
function U(u, x) {
|
|
631
|
+
return u === "symbol" ? !0 : x ? x["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && x instanceof Symbol : !1;
|
|
632
|
+
}
|
|
633
|
+
function Q(u) {
|
|
634
|
+
var x = typeof u;
|
|
635
|
+
return Array.isArray(u) ? "array" : u instanceof RegExp ? "object" : U(x, u) ? "symbol" : x;
|
|
636
|
+
}
|
|
637
|
+
function te(u) {
|
|
638
|
+
if (typeof u > "u" || u === null)
|
|
639
|
+
return "" + u;
|
|
640
|
+
var x = Q(u);
|
|
641
|
+
if (x === "object") {
|
|
642
|
+
if (u instanceof Date)
|
|
643
|
+
return "date";
|
|
644
|
+
if (u instanceof RegExp)
|
|
645
|
+
return "regexp";
|
|
646
|
+
}
|
|
647
|
+
return x;
|
|
648
|
+
}
|
|
649
|
+
function ie(u) {
|
|
650
|
+
var x = te(u);
|
|
651
|
+
switch (x) {
|
|
652
|
+
case "array":
|
|
653
|
+
case "object":
|
|
654
|
+
return "an " + x;
|
|
655
|
+
case "boolean":
|
|
656
|
+
case "date":
|
|
657
|
+
case "regexp":
|
|
658
|
+
return "a " + x;
|
|
659
|
+
default:
|
|
660
|
+
return x;
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
function W(u) {
|
|
664
|
+
return !u.constructor || !u.constructor.name ? f : u.constructor.name;
|
|
665
|
+
}
|
|
666
|
+
return y.checkPropTypes = n, y.resetWarningCache = n.resetWarningCache, y.PropTypes = y, y;
|
|
667
|
+
}, Ge;
|
|
668
|
+
}
|
|
669
|
+
var Xe, Tt;
|
|
670
|
+
function Vi() {
|
|
671
|
+
if (Tt) return Xe;
|
|
672
|
+
Tt = 1;
|
|
673
|
+
var t = /* @__PURE__ */ dt();
|
|
674
|
+
function e() {
|
|
675
|
+
}
|
|
676
|
+
function i() {
|
|
677
|
+
}
|
|
678
|
+
return i.resetWarningCache = e, Xe = function() {
|
|
679
|
+
function a(p, l, d, c, s, m) {
|
|
680
|
+
if (m !== t) {
|
|
681
|
+
var f = new Error(
|
|
682
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
683
|
+
);
|
|
684
|
+
throw f.name = "Invariant Violation", f;
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
a.isRequired = a;
|
|
688
|
+
function n() {
|
|
689
|
+
return a;
|
|
690
|
+
}
|
|
691
|
+
var r = {
|
|
692
|
+
array: a,
|
|
693
|
+
bigint: a,
|
|
694
|
+
bool: a,
|
|
695
|
+
func: a,
|
|
696
|
+
number: a,
|
|
697
|
+
object: a,
|
|
698
|
+
string: a,
|
|
699
|
+
symbol: a,
|
|
700
|
+
any: a,
|
|
701
|
+
arrayOf: n,
|
|
702
|
+
element: a,
|
|
703
|
+
elementType: a,
|
|
704
|
+
instanceOf: n,
|
|
705
|
+
node: a,
|
|
706
|
+
objectOf: n,
|
|
707
|
+
oneOf: n,
|
|
708
|
+
oneOfType: n,
|
|
709
|
+
shape: n,
|
|
710
|
+
exact: n,
|
|
711
|
+
checkPropTypes: i,
|
|
712
|
+
resetWarningCache: e
|
|
713
|
+
};
|
|
714
|
+
return r.PropTypes = r, r;
|
|
715
|
+
}, Xe;
|
|
716
|
+
}
|
|
717
|
+
var _t;
|
|
718
|
+
function Gi() {
|
|
719
|
+
if (_t) return Ae.exports;
|
|
720
|
+
if (_t = 1, process.env.NODE_ENV !== "production") {
|
|
721
|
+
var t = /* @__PURE__ */ Nt(), e = !0;
|
|
722
|
+
Ae.exports = /* @__PURE__ */ Ui()(t.isElement, e);
|
|
723
|
+
} else
|
|
724
|
+
Ae.exports = /* @__PURE__ */ Vi()();
|
|
725
|
+
return Ae.exports;
|
|
726
|
+
}
|
|
727
|
+
var Xi = /* @__PURE__ */ Gi();
|
|
728
|
+
const L = /* @__PURE__ */ Yt(Xi);
|
|
729
|
+
function de(t, e, i, a) {
|
|
730
|
+
function n(r) {
|
|
731
|
+
return r instanceof i ? r : new i(function(p) {
|
|
732
|
+
p(r);
|
|
115
733
|
});
|
|
116
734
|
}
|
|
117
|
-
return new (
|
|
735
|
+
return new (i || (i = Promise))(function(r, p) {
|
|
118
736
|
function l(s) {
|
|
119
737
|
try {
|
|
120
738
|
c(a.next(s));
|
|
@@ -130,12 +748,12 @@ function ii(e, i, t, a) {
|
|
|
130
748
|
}
|
|
131
749
|
}
|
|
132
750
|
function c(s) {
|
|
133
|
-
s.done ?
|
|
751
|
+
s.done ? r(s.value) : n(s.value).then(l, d);
|
|
134
752
|
}
|
|
135
|
-
c((a = a.apply(
|
|
753
|
+
c((a = a.apply(t, e || [])).next());
|
|
136
754
|
});
|
|
137
755
|
}
|
|
138
|
-
const
|
|
756
|
+
const Ji = /* @__PURE__ */ new Map([
|
|
139
757
|
// https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
|
|
140
758
|
["1km", "application/vnd.1000minds.decision-model+xml"],
|
|
141
759
|
["3dml", "text/vnd.in3d.3dml"],
|
|
@@ -1338,133 +1956,133 @@ const wt = /* @__PURE__ */ new Map([
|
|
|
1338
1956
|
["zmm", "application/vnd.handheld-entertainment+xml"],
|
|
1339
1957
|
["zsh", "text/x-scriptzsh"]
|
|
1340
1958
|
]);
|
|
1341
|
-
function
|
|
1342
|
-
const a =
|
|
1343
|
-
return typeof a.path != "string" &&
|
|
1344
|
-
}
|
|
1345
|
-
function
|
|
1346
|
-
const { name:
|
|
1347
|
-
if (
|
|
1348
|
-
const a =
|
|
1349
|
-
n && Object.defineProperty(
|
|
1959
|
+
function ge(t, e, i) {
|
|
1960
|
+
const a = Zi(t), { webkitRelativePath: n } = t, r = typeof e == "string" ? e : typeof n == "string" && n.length > 0 ? n : `./${t.name}`;
|
|
1961
|
+
return typeof a.path != "string" && Ot(a, "path", r), Ot(a, "relativePath", r), a;
|
|
1962
|
+
}
|
|
1963
|
+
function Zi(t) {
|
|
1964
|
+
const { name: e } = t;
|
|
1965
|
+
if (e && e.lastIndexOf(".") !== -1 && !t.type) {
|
|
1966
|
+
const a = e.split(".").pop().toLowerCase(), n = Ji.get(a);
|
|
1967
|
+
n && Object.defineProperty(t, "type", {
|
|
1350
1968
|
value: n,
|
|
1351
1969
|
writable: !1,
|
|
1352
1970
|
configurable: !1,
|
|
1353
1971
|
enumerable: !0
|
|
1354
1972
|
});
|
|
1355
1973
|
}
|
|
1356
|
-
return
|
|
1974
|
+
return t;
|
|
1357
1975
|
}
|
|
1358
|
-
function
|
|
1359
|
-
Object.defineProperty(
|
|
1360
|
-
value:
|
|
1976
|
+
function Ot(t, e, i) {
|
|
1977
|
+
Object.defineProperty(t, e, {
|
|
1978
|
+
value: i,
|
|
1361
1979
|
writable: !1,
|
|
1362
1980
|
configurable: !1,
|
|
1363
1981
|
enumerable: !0
|
|
1364
1982
|
});
|
|
1365
1983
|
}
|
|
1366
|
-
const
|
|
1984
|
+
const Qi = [
|
|
1367
1985
|
// Thumbnail cache files for macOS and Windows
|
|
1368
1986
|
".DS_Store",
|
|
1369
1987
|
// macOs
|
|
1370
1988
|
"Thumbs.db"
|
|
1371
1989
|
// Windows
|
|
1372
1990
|
];
|
|
1373
|
-
function
|
|
1374
|
-
return
|
|
1375
|
-
return
|
|
1991
|
+
function ea(t) {
|
|
1992
|
+
return de(this, void 0, void 0, function* () {
|
|
1993
|
+
return Ie(t) && ta(t.dataTransfer) ? oa(t.dataTransfer, t.type) : ia(t) ? aa(t) : Array.isArray(t) && t.every((e) => "getFile" in e && typeof e.getFile == "function") ? na(t) : [];
|
|
1376
1994
|
});
|
|
1377
1995
|
}
|
|
1378
|
-
function
|
|
1379
|
-
return
|
|
1996
|
+
function ta(t) {
|
|
1997
|
+
return Ie(t);
|
|
1380
1998
|
}
|
|
1381
|
-
function
|
|
1382
|
-
return
|
|
1999
|
+
function ia(t) {
|
|
2000
|
+
return Ie(t) && Ie(t.target);
|
|
1383
2001
|
}
|
|
1384
|
-
function
|
|
1385
|
-
return typeof
|
|
2002
|
+
function Ie(t) {
|
|
2003
|
+
return typeof t == "object" && t !== null;
|
|
1386
2004
|
}
|
|
1387
|
-
function
|
|
1388
|
-
return
|
|
2005
|
+
function aa(t) {
|
|
2006
|
+
return it(t.target.files).map((e) => ge(e));
|
|
1389
2007
|
}
|
|
1390
|
-
function
|
|
1391
|
-
return
|
|
1392
|
-
return (yield Promise.all(
|
|
2008
|
+
function na(t) {
|
|
2009
|
+
return de(this, void 0, void 0, function* () {
|
|
2010
|
+
return (yield Promise.all(t.map((i) => i.getFile()))).map((i) => ge(i));
|
|
1393
2011
|
});
|
|
1394
2012
|
}
|
|
1395
|
-
function
|
|
1396
|
-
return
|
|
1397
|
-
if (
|
|
1398
|
-
const
|
|
1399
|
-
if (
|
|
1400
|
-
return
|
|
1401
|
-
const a = yield Promise.all(
|
|
1402
|
-
return
|
|
2013
|
+
function oa(t, e) {
|
|
2014
|
+
return de(this, void 0, void 0, function* () {
|
|
2015
|
+
if (t.items) {
|
|
2016
|
+
const i = it(t.items).filter((n) => n.kind === "file");
|
|
2017
|
+
if (e !== "drop")
|
|
2018
|
+
return i;
|
|
2019
|
+
const a = yield Promise.all(i.map(ra));
|
|
2020
|
+
return Dt(Kt(a));
|
|
1403
2021
|
}
|
|
1404
|
-
return
|
|
2022
|
+
return Dt(it(t.files).map((i) => ge(i)));
|
|
1405
2023
|
});
|
|
1406
2024
|
}
|
|
1407
|
-
function
|
|
1408
|
-
return
|
|
2025
|
+
function Dt(t) {
|
|
2026
|
+
return t.filter((e) => Qi.indexOf(e.name) === -1);
|
|
1409
2027
|
}
|
|
1410
|
-
function
|
|
1411
|
-
if (
|
|
2028
|
+
function it(t) {
|
|
2029
|
+
if (t === null)
|
|
1412
2030
|
return [];
|
|
1413
|
-
const
|
|
1414
|
-
for (let
|
|
1415
|
-
const a =
|
|
1416
|
-
|
|
2031
|
+
const e = [];
|
|
2032
|
+
for (let i = 0; i < t.length; i++) {
|
|
2033
|
+
const a = t[i];
|
|
2034
|
+
e.push(a);
|
|
1417
2035
|
}
|
|
1418
|
-
return
|
|
2036
|
+
return e;
|
|
1419
2037
|
}
|
|
1420
|
-
function
|
|
1421
|
-
if (typeof
|
|
1422
|
-
return
|
|
1423
|
-
const
|
|
1424
|
-
return
|
|
2038
|
+
function ra(t) {
|
|
2039
|
+
if (typeof t.webkitGetAsEntry != "function")
|
|
2040
|
+
return At(t);
|
|
2041
|
+
const e = t.webkitGetAsEntry();
|
|
2042
|
+
return e && e.isDirectory ? Ut(e) : At(t, e);
|
|
1425
2043
|
}
|
|
1426
|
-
function
|
|
1427
|
-
return
|
|
1428
|
-
...
|
|
1429
|
-
...Array.isArray(
|
|
2044
|
+
function Kt(t) {
|
|
2045
|
+
return t.reduce((e, i) => [
|
|
2046
|
+
...e,
|
|
2047
|
+
...Array.isArray(i) ? Kt(i) : [i]
|
|
1430
2048
|
], []);
|
|
1431
2049
|
}
|
|
1432
|
-
function
|
|
1433
|
-
return
|
|
1434
|
-
var
|
|
1435
|
-
if (globalThis.isSecureContext && typeof
|
|
1436
|
-
const
|
|
1437
|
-
if (
|
|
1438
|
-
throw new Error(`${
|
|
1439
|
-
if (
|
|
1440
|
-
const p = yield
|
|
1441
|
-
return p.handle =
|
|
2050
|
+
function At(t, e) {
|
|
2051
|
+
return de(this, void 0, void 0, function* () {
|
|
2052
|
+
var i;
|
|
2053
|
+
if (globalThis.isSecureContext && typeof t.getAsFileSystemHandle == "function") {
|
|
2054
|
+
const r = yield t.getAsFileSystemHandle();
|
|
2055
|
+
if (r === null)
|
|
2056
|
+
throw new Error(`${t} is not a File`);
|
|
2057
|
+
if (r !== void 0) {
|
|
2058
|
+
const p = yield r.getFile();
|
|
2059
|
+
return p.handle = r, ge(p);
|
|
1442
2060
|
}
|
|
1443
2061
|
}
|
|
1444
|
-
const a =
|
|
2062
|
+
const a = t.getAsFile();
|
|
1445
2063
|
if (!a)
|
|
1446
|
-
throw new Error(`${
|
|
1447
|
-
return
|
|
2064
|
+
throw new Error(`${t} is not a File`);
|
|
2065
|
+
return ge(a, (i = e?.fullPath) !== null && i !== void 0 ? i : void 0);
|
|
1448
2066
|
});
|
|
1449
2067
|
}
|
|
1450
|
-
function
|
|
1451
|
-
return
|
|
1452
|
-
return
|
|
2068
|
+
function pa(t) {
|
|
2069
|
+
return de(this, void 0, void 0, function* () {
|
|
2070
|
+
return t.isDirectory ? Ut(t) : la(t);
|
|
1453
2071
|
});
|
|
1454
2072
|
}
|
|
1455
|
-
function
|
|
1456
|
-
const
|
|
1457
|
-
return new Promise((
|
|
2073
|
+
function Ut(t) {
|
|
2074
|
+
const e = t.createReader();
|
|
2075
|
+
return new Promise((i, a) => {
|
|
1458
2076
|
const n = [];
|
|
1459
|
-
function
|
|
1460
|
-
|
|
2077
|
+
function r() {
|
|
2078
|
+
e.readEntries((p) => de(this, void 0, void 0, function* () {
|
|
1461
2079
|
if (p.length) {
|
|
1462
|
-
const l = Promise.all(p.map(
|
|
1463
|
-
n.push(l),
|
|
2080
|
+
const l = Promise.all(p.map(pa));
|
|
2081
|
+
n.push(l), r();
|
|
1464
2082
|
} else
|
|
1465
2083
|
try {
|
|
1466
2084
|
const l = yield Promise.all(n);
|
|
1467
|
-
|
|
2085
|
+
i(l);
|
|
1468
2086
|
} catch (l) {
|
|
1469
2087
|
a(l);
|
|
1470
2088
|
}
|
|
@@ -1472,349 +2090,349 @@ function De(e) {
|
|
|
1472
2090
|
a(p);
|
|
1473
2091
|
});
|
|
1474
2092
|
}
|
|
1475
|
-
|
|
2093
|
+
r();
|
|
1476
2094
|
});
|
|
1477
2095
|
}
|
|
1478
|
-
function
|
|
1479
|
-
return
|
|
1480
|
-
return new Promise((
|
|
1481
|
-
|
|
1482
|
-
const n =
|
|
1483
|
-
|
|
2096
|
+
function la(t) {
|
|
2097
|
+
return de(this, void 0, void 0, function* () {
|
|
2098
|
+
return new Promise((e, i) => {
|
|
2099
|
+
t.file((a) => {
|
|
2100
|
+
const n = ge(a, t.fullPath);
|
|
2101
|
+
e(n);
|
|
1484
2102
|
}, (a) => {
|
|
1485
|
-
|
|
2103
|
+
i(a);
|
|
1486
2104
|
});
|
|
1487
2105
|
});
|
|
1488
2106
|
});
|
|
1489
2107
|
}
|
|
1490
|
-
var
|
|
1491
|
-
function
|
|
1492
|
-
return
|
|
1493
|
-
if (
|
|
1494
|
-
var
|
|
1495
|
-
if (
|
|
2108
|
+
var Se = {}, Ct;
|
|
2109
|
+
function ca() {
|
|
2110
|
+
return Ct || (Ct = 1, Se.__esModule = !0, Se.default = function(t, e) {
|
|
2111
|
+
if (t && e) {
|
|
2112
|
+
var i = Array.isArray(e) ? e : e.split(",");
|
|
2113
|
+
if (i.length === 0)
|
|
1496
2114
|
return !0;
|
|
1497
|
-
var a =
|
|
1498
|
-
return
|
|
2115
|
+
var a = t.name || "", n = (t.type || "").toLowerCase(), r = n.replace(/\/.*$/, "");
|
|
2116
|
+
return i.some(function(p) {
|
|
1499
2117
|
var l = p.trim().toLowerCase();
|
|
1500
|
-
return l.charAt(0) === "." ? a.toLowerCase().endsWith(l) : l.endsWith("/*") ?
|
|
2118
|
+
return l.charAt(0) === "." ? a.toLowerCase().endsWith(l) : l.endsWith("/*") ? r === l.replace(/\/.*$/, "") : n === l;
|
|
1501
2119
|
});
|
|
1502
2120
|
}
|
|
1503
2121
|
return !0;
|
|
1504
|
-
}),
|
|
2122
|
+
}), Se;
|
|
1505
2123
|
}
|
|
1506
|
-
var
|
|
1507
|
-
const
|
|
1508
|
-
function
|
|
1509
|
-
return
|
|
2124
|
+
var sa = ca();
|
|
2125
|
+
const Je = /* @__PURE__ */ Yt(sa);
|
|
2126
|
+
function St(t) {
|
|
2127
|
+
return ua(t) || ma(t) || Gt(t) || da();
|
|
1510
2128
|
}
|
|
1511
|
-
function
|
|
2129
|
+
function da() {
|
|
1512
2130
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1513
2131
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1514
2132
|
}
|
|
1515
|
-
function
|
|
1516
|
-
if (typeof Symbol < "u" &&
|
|
2133
|
+
function ma(t) {
|
|
2134
|
+
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
1517
2135
|
}
|
|
1518
|
-
function
|
|
1519
|
-
if (Array.isArray(
|
|
2136
|
+
function ua(t) {
|
|
2137
|
+
if (Array.isArray(t)) return at(t);
|
|
1520
2138
|
}
|
|
1521
|
-
function
|
|
1522
|
-
var
|
|
2139
|
+
function Rt(t, e) {
|
|
2140
|
+
var i = Object.keys(t);
|
|
1523
2141
|
if (Object.getOwnPropertySymbols) {
|
|
1524
|
-
var a = Object.getOwnPropertySymbols(
|
|
1525
|
-
|
|
1526
|
-
return Object.getOwnPropertyDescriptor(
|
|
1527
|
-
})),
|
|
2142
|
+
var a = Object.getOwnPropertySymbols(t);
|
|
2143
|
+
e && (a = a.filter(function(n) {
|
|
2144
|
+
return Object.getOwnPropertyDescriptor(t, n).enumerable;
|
|
2145
|
+
})), i.push.apply(i, a);
|
|
1528
2146
|
}
|
|
1529
|
-
return
|
|
2147
|
+
return i;
|
|
1530
2148
|
}
|
|
1531
|
-
function
|
|
1532
|
-
for (var
|
|
1533
|
-
var
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
1537
|
-
Object.defineProperty(
|
|
2149
|
+
function Pt(t) {
|
|
2150
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
2151
|
+
var i = arguments[e] != null ? arguments[e] : {};
|
|
2152
|
+
e % 2 ? Rt(Object(i), !0).forEach(function(a) {
|
|
2153
|
+
Vt(t, a, i[a]);
|
|
2154
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : Rt(Object(i)).forEach(function(a) {
|
|
2155
|
+
Object.defineProperty(t, a, Object.getOwnPropertyDescriptor(i, a));
|
|
1538
2156
|
});
|
|
1539
2157
|
}
|
|
1540
|
-
return
|
|
2158
|
+
return t;
|
|
1541
2159
|
}
|
|
1542
|
-
function
|
|
1543
|
-
return
|
|
2160
|
+
function Vt(t, e, i) {
|
|
2161
|
+
return e in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
1544
2162
|
}
|
|
1545
|
-
function
|
|
1546
|
-
return
|
|
2163
|
+
function Ee(t, e) {
|
|
2164
|
+
return xa(t) || va(t, e) || Gt(t, e) || fa();
|
|
1547
2165
|
}
|
|
1548
|
-
function
|
|
2166
|
+
function fa() {
|
|
1549
2167
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1550
2168
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1551
2169
|
}
|
|
1552
|
-
function
|
|
1553
|
-
if (
|
|
1554
|
-
if (typeof
|
|
1555
|
-
var
|
|
1556
|
-
if (
|
|
1557
|
-
if (
|
|
2170
|
+
function Gt(t, e) {
|
|
2171
|
+
if (t) {
|
|
2172
|
+
if (typeof t == "string") return at(t, e);
|
|
2173
|
+
var i = Object.prototype.toString.call(t).slice(8, -1);
|
|
2174
|
+
if (i === "Object" && t.constructor && (i = t.constructor.name), i === "Map" || i === "Set") return Array.from(t);
|
|
2175
|
+
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return at(t, e);
|
|
1558
2176
|
}
|
|
1559
2177
|
}
|
|
1560
|
-
function
|
|
1561
|
-
(
|
|
1562
|
-
for (var
|
|
1563
|
-
a[
|
|
2178
|
+
function at(t, e) {
|
|
2179
|
+
(e == null || e > t.length) && (e = t.length);
|
|
2180
|
+
for (var i = 0, a = new Array(e); i < e; i++)
|
|
2181
|
+
a[i] = t[i];
|
|
1564
2182
|
return a;
|
|
1565
2183
|
}
|
|
1566
|
-
function
|
|
1567
|
-
var
|
|
1568
|
-
if (
|
|
1569
|
-
var a = [], n = !0,
|
|
2184
|
+
function va(t, e) {
|
|
2185
|
+
var i = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
2186
|
+
if (i != null) {
|
|
2187
|
+
var a = [], n = !0, r = !1, p, l;
|
|
1570
2188
|
try {
|
|
1571
|
-
for (
|
|
2189
|
+
for (i = i.call(t); !(n = (p = i.next()).done) && (a.push(p.value), !(e && a.length === e)); n = !0)
|
|
1572
2190
|
;
|
|
1573
2191
|
} catch (d) {
|
|
1574
|
-
|
|
2192
|
+
r = !0, l = d;
|
|
1575
2193
|
} finally {
|
|
1576
2194
|
try {
|
|
1577
|
-
!n &&
|
|
2195
|
+
!n && i.return != null && i.return();
|
|
1578
2196
|
} finally {
|
|
1579
|
-
if (
|
|
2197
|
+
if (r) throw l;
|
|
1580
2198
|
}
|
|
1581
2199
|
}
|
|
1582
2200
|
return a;
|
|
1583
2201
|
}
|
|
1584
2202
|
}
|
|
1585
|
-
function
|
|
1586
|
-
if (Array.isArray(
|
|
2203
|
+
function xa(t) {
|
|
2204
|
+
if (Array.isArray(t)) return t;
|
|
1587
2205
|
}
|
|
1588
|
-
var
|
|
1589
|
-
var
|
|
2206
|
+
var ga = typeof Je == "function" ? Je : Je.default, ha = "file-invalid-type", ya = "file-too-large", ba = "file-too-small", wa = "too-many-files", ka = function() {
|
|
2207
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", i = e.split(","), a = i.length > 1 ? "one of ".concat(i.join(", ")) : i[0];
|
|
1590
2208
|
return {
|
|
1591
|
-
code:
|
|
2209
|
+
code: ha,
|
|
1592
2210
|
message: "File type must be ".concat(a)
|
|
1593
2211
|
};
|
|
1594
|
-
},
|
|
2212
|
+
}, It = function(e) {
|
|
1595
2213
|
return {
|
|
1596
|
-
code:
|
|
1597
|
-
message: "File is larger than ".concat(
|
|
2214
|
+
code: ya,
|
|
2215
|
+
message: "File is larger than ".concat(e, " ").concat(e === 1 ? "byte" : "bytes")
|
|
1598
2216
|
};
|
|
1599
|
-
},
|
|
2217
|
+
}, zt = function(e) {
|
|
1600
2218
|
return {
|
|
1601
|
-
code:
|
|
1602
|
-
message: "File is smaller than ".concat(
|
|
2219
|
+
code: ba,
|
|
2220
|
+
message: "File is smaller than ".concat(e, " ").concat(e === 1 ? "byte" : "bytes")
|
|
1603
2221
|
};
|
|
1604
|
-
},
|
|
1605
|
-
code:
|
|
2222
|
+
}, ja = {
|
|
2223
|
+
code: wa,
|
|
1606
2224
|
message: "Too many files"
|
|
1607
2225
|
};
|
|
1608
|
-
function
|
|
1609
|
-
var
|
|
1610
|
-
return [
|
|
1611
|
-
}
|
|
1612
|
-
function
|
|
1613
|
-
if (
|
|
1614
|
-
if (
|
|
1615
|
-
if (
|
|
1616
|
-
if (
|
|
2226
|
+
function Xt(t, e) {
|
|
2227
|
+
var i = t.type === "application/x-moz-file" || ga(t, e);
|
|
2228
|
+
return [i, i ? null : ka(e)];
|
|
2229
|
+
}
|
|
2230
|
+
function Jt(t, e, i) {
|
|
2231
|
+
if (se(t.size))
|
|
2232
|
+
if (se(e) && se(i)) {
|
|
2233
|
+
if (t.size > i) return [!1, It(i)];
|
|
2234
|
+
if (t.size < e) return [!1, zt(e)];
|
|
1617
2235
|
} else {
|
|
1618
|
-
if (
|
|
1619
|
-
if (
|
|
2236
|
+
if (se(e) && t.size < e) return [!1, zt(e)];
|
|
2237
|
+
if (se(i) && t.size > i) return [!1, It(i)];
|
|
1620
2238
|
}
|
|
1621
2239
|
return [!0, null];
|
|
1622
2240
|
}
|
|
1623
|
-
function
|
|
1624
|
-
return
|
|
2241
|
+
function se(t) {
|
|
2242
|
+
return t != null;
|
|
1625
2243
|
}
|
|
1626
|
-
function
|
|
1627
|
-
var
|
|
1628
|
-
return !
|
|
1629
|
-
var c =
|
|
1630
|
-
return m &&
|
|
2244
|
+
function Ea(t) {
|
|
2245
|
+
var e = t.files, i = t.accept, a = t.minSize, n = t.maxSize, r = t.multiple, p = t.maxFiles, l = t.validator;
|
|
2246
|
+
return !r && e.length > 1 || r && p >= 1 && e.length > p ? !1 : e.every(function(d) {
|
|
2247
|
+
var c = Xt(d, i), s = Ee(c, 1), m = s[0], f = Jt(d, a, n), y = Ee(f, 1), h = y[0], o = l ? l(d) : null;
|
|
2248
|
+
return m && h && !o;
|
|
1631
2249
|
});
|
|
1632
2250
|
}
|
|
1633
|
-
function
|
|
1634
|
-
return typeof
|
|
2251
|
+
function ze(t) {
|
|
2252
|
+
return typeof t.isPropagationStopped == "function" ? t.isPropagationStopped() : typeof t.cancelBubble < "u" ? t.cancelBubble : !1;
|
|
1635
2253
|
}
|
|
1636
|
-
function
|
|
1637
|
-
return
|
|
1638
|
-
return
|
|
1639
|
-
}) : !!
|
|
2254
|
+
function Re(t) {
|
|
2255
|
+
return t.dataTransfer ? Array.prototype.some.call(t.dataTransfer.types, function(e) {
|
|
2256
|
+
return e === "Files" || e === "application/x-moz-file";
|
|
2257
|
+
}) : !!t.target && !!t.target.files;
|
|
1640
2258
|
}
|
|
1641
|
-
function
|
|
1642
|
-
|
|
2259
|
+
function Ft(t) {
|
|
2260
|
+
t.preventDefault();
|
|
1643
2261
|
}
|
|
1644
|
-
function
|
|
1645
|
-
return
|
|
2262
|
+
function Ta(t) {
|
|
2263
|
+
return t.indexOf("MSIE") !== -1 || t.indexOf("Trident/") !== -1;
|
|
1646
2264
|
}
|
|
1647
|
-
function
|
|
1648
|
-
return
|
|
2265
|
+
function _a(t) {
|
|
2266
|
+
return t.indexOf("Edge/") !== -1;
|
|
1649
2267
|
}
|
|
1650
|
-
function
|
|
1651
|
-
var
|
|
1652
|
-
return
|
|
2268
|
+
function Oa() {
|
|
2269
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
2270
|
+
return Ta(t) || _a(t);
|
|
1653
2271
|
}
|
|
1654
|
-
function
|
|
1655
|
-
for (var
|
|
1656
|
-
i
|
|
2272
|
+
function re() {
|
|
2273
|
+
for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++)
|
|
2274
|
+
e[i] = arguments[i];
|
|
1657
2275
|
return function(a) {
|
|
1658
|
-
for (var n = arguments.length,
|
|
1659
|
-
|
|
1660
|
-
return
|
|
1661
|
-
return !
|
|
2276
|
+
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), p = 1; p < n; p++)
|
|
2277
|
+
r[p - 1] = arguments[p];
|
|
2278
|
+
return e.some(function(l) {
|
|
2279
|
+
return !ze(a) && l && l.apply(void 0, [a].concat(r)), ze(a);
|
|
1662
2280
|
});
|
|
1663
2281
|
};
|
|
1664
2282
|
}
|
|
1665
|
-
function
|
|
2283
|
+
function Da() {
|
|
1666
2284
|
return "showOpenFilePicker" in window;
|
|
1667
2285
|
}
|
|
1668
|
-
function
|
|
1669
|
-
if (
|
|
1670
|
-
var
|
|
1671
|
-
var a =
|
|
1672
|
-
return
|
|
1673
|
-
}).reduce(function(
|
|
1674
|
-
var n =
|
|
1675
|
-
return
|
|
2286
|
+
function Aa(t) {
|
|
2287
|
+
if (se(t)) {
|
|
2288
|
+
var e = Object.entries(t).filter(function(i) {
|
|
2289
|
+
var a = Ee(i, 2), n = a[0], r = a[1], p = !0;
|
|
2290
|
+
return Zt(n) || (console.warn('Skipped "'.concat(n, '" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')), p = !1), (!Array.isArray(r) || !r.every(Qt)) && (console.warn('Skipped "'.concat(n, '" because an invalid file extension was provided.')), p = !1), p;
|
|
2291
|
+
}).reduce(function(i, a) {
|
|
2292
|
+
var n = Ee(a, 2), r = n[0], p = n[1];
|
|
2293
|
+
return Pt(Pt({}, i), {}, Vt({}, r, p));
|
|
1676
2294
|
}, {});
|
|
1677
2295
|
return [{
|
|
1678
2296
|
// description is required due to https://crbug.com/1264708
|
|
1679
2297
|
description: "Files",
|
|
1680
|
-
accept:
|
|
2298
|
+
accept: e
|
|
1681
2299
|
}];
|
|
1682
2300
|
}
|
|
1683
|
-
return
|
|
2301
|
+
return t;
|
|
1684
2302
|
}
|
|
1685
|
-
function
|
|
1686
|
-
if (
|
|
1687
|
-
return Object.entries(
|
|
1688
|
-
var a =
|
|
1689
|
-
return [].concat(
|
|
1690
|
-
}, []).filter(function(
|
|
1691
|
-
return
|
|
2303
|
+
function Ca(t) {
|
|
2304
|
+
if (se(t))
|
|
2305
|
+
return Object.entries(t).reduce(function(e, i) {
|
|
2306
|
+
var a = Ee(i, 2), n = a[0], r = a[1];
|
|
2307
|
+
return [].concat(St(e), [n], St(r));
|
|
2308
|
+
}, []).filter(function(e) {
|
|
2309
|
+
return Zt(e) || Qt(e);
|
|
1692
2310
|
}).join(",");
|
|
1693
2311
|
}
|
|
1694
|
-
function
|
|
1695
|
-
return
|
|
2312
|
+
function Sa(t) {
|
|
2313
|
+
return t instanceof DOMException && (t.name === "AbortError" || t.code === t.ABORT_ERR);
|
|
1696
2314
|
}
|
|
1697
|
-
function
|
|
1698
|
-
return
|
|
2315
|
+
function Ra(t) {
|
|
2316
|
+
return t instanceof DOMException && (t.name === "SecurityError" || t.code === t.SECURITY_ERR);
|
|
1699
2317
|
}
|
|
1700
|
-
function
|
|
1701
|
-
return
|
|
2318
|
+
function Zt(t) {
|
|
2319
|
+
return t === "audio/*" || t === "video/*" || t === "image/*" || t === "text/*" || t === "application/*" || /\w+\/[-+.\w]+/g.test(t);
|
|
1702
2320
|
}
|
|
1703
|
-
function
|
|
1704
|
-
return /^.*\.[\w]+$/.test(
|
|
2321
|
+
function Qt(t) {
|
|
2322
|
+
return /^.*\.[\w]+$/.test(t);
|
|
1705
2323
|
}
|
|
1706
|
-
var
|
|
1707
|
-
function
|
|
1708
|
-
return
|
|
2324
|
+
var Pa = ["children"], Ia = ["open"], za = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], Fa = ["refKey", "onChange", "onClick"];
|
|
2325
|
+
function qa(t) {
|
|
2326
|
+
return Ma(t) || $a(t) || ei(t) || La();
|
|
1709
2327
|
}
|
|
1710
|
-
function
|
|
2328
|
+
function La() {
|
|
1711
2329
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1712
2330
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1713
2331
|
}
|
|
1714
|
-
function
|
|
1715
|
-
if (typeof Symbol < "u" &&
|
|
2332
|
+
function $a(t) {
|
|
2333
|
+
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
1716
2334
|
}
|
|
1717
|
-
function
|
|
1718
|
-
if (Array.isArray(
|
|
2335
|
+
function Ma(t) {
|
|
2336
|
+
if (Array.isArray(t)) return nt(t);
|
|
1719
2337
|
}
|
|
1720
|
-
function
|
|
1721
|
-
return
|
|
2338
|
+
function Ze(t, e) {
|
|
2339
|
+
return Ba(t) || Wa(t, e) || ei(t, e) || Ya();
|
|
1722
2340
|
}
|
|
1723
|
-
function
|
|
2341
|
+
function Ya() {
|
|
1724
2342
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1725
2343
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1726
2344
|
}
|
|
1727
|
-
function
|
|
1728
|
-
if (
|
|
1729
|
-
if (typeof
|
|
1730
|
-
var
|
|
1731
|
-
if (
|
|
1732
|
-
if (
|
|
2345
|
+
function ei(t, e) {
|
|
2346
|
+
if (t) {
|
|
2347
|
+
if (typeof t == "string") return nt(t, e);
|
|
2348
|
+
var i = Object.prototype.toString.call(t).slice(8, -1);
|
|
2349
|
+
if (i === "Object" && t.constructor && (i = t.constructor.name), i === "Map" || i === "Set") return Array.from(t);
|
|
2350
|
+
if (i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return nt(t, e);
|
|
1733
2351
|
}
|
|
1734
2352
|
}
|
|
1735
|
-
function
|
|
1736
|
-
(
|
|
1737
|
-
for (var
|
|
1738
|
-
a[
|
|
2353
|
+
function nt(t, e) {
|
|
2354
|
+
(e == null || e > t.length) && (e = t.length);
|
|
2355
|
+
for (var i = 0, a = new Array(e); i < e; i++)
|
|
2356
|
+
a[i] = t[i];
|
|
1739
2357
|
return a;
|
|
1740
2358
|
}
|
|
1741
|
-
function
|
|
1742
|
-
var
|
|
1743
|
-
if (
|
|
1744
|
-
var a = [], n = !0,
|
|
2359
|
+
function Wa(t, e) {
|
|
2360
|
+
var i = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
2361
|
+
if (i != null) {
|
|
2362
|
+
var a = [], n = !0, r = !1, p, l;
|
|
1745
2363
|
try {
|
|
1746
|
-
for (
|
|
2364
|
+
for (i = i.call(t); !(n = (p = i.next()).done) && (a.push(p.value), !(e && a.length === e)); n = !0)
|
|
1747
2365
|
;
|
|
1748
2366
|
} catch (d) {
|
|
1749
|
-
|
|
2367
|
+
r = !0, l = d;
|
|
1750
2368
|
} finally {
|
|
1751
2369
|
try {
|
|
1752
|
-
!n &&
|
|
2370
|
+
!n && i.return != null && i.return();
|
|
1753
2371
|
} finally {
|
|
1754
|
-
if (
|
|
2372
|
+
if (r) throw l;
|
|
1755
2373
|
}
|
|
1756
2374
|
}
|
|
1757
2375
|
return a;
|
|
1758
2376
|
}
|
|
1759
2377
|
}
|
|
1760
|
-
function
|
|
1761
|
-
if (Array.isArray(
|
|
2378
|
+
function Ba(t) {
|
|
2379
|
+
if (Array.isArray(t)) return t;
|
|
1762
2380
|
}
|
|
1763
|
-
function
|
|
1764
|
-
var
|
|
2381
|
+
function qt(t, e) {
|
|
2382
|
+
var i = Object.keys(t);
|
|
1765
2383
|
if (Object.getOwnPropertySymbols) {
|
|
1766
|
-
var a = Object.getOwnPropertySymbols(
|
|
1767
|
-
|
|
1768
|
-
return Object.getOwnPropertyDescriptor(
|
|
1769
|
-
})),
|
|
2384
|
+
var a = Object.getOwnPropertySymbols(t);
|
|
2385
|
+
e && (a = a.filter(function(n) {
|
|
2386
|
+
return Object.getOwnPropertyDescriptor(t, n).enumerable;
|
|
2387
|
+
})), i.push.apply(i, a);
|
|
1770
2388
|
}
|
|
1771
|
-
return
|
|
2389
|
+
return i;
|
|
1772
2390
|
}
|
|
1773
|
-
function
|
|
1774
|
-
for (var
|
|
1775
|
-
var
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
1779
|
-
Object.defineProperty(
|
|
2391
|
+
function M(t) {
|
|
2392
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
2393
|
+
var i = arguments[e] != null ? arguments[e] : {};
|
|
2394
|
+
e % 2 ? qt(Object(i), !0).forEach(function(a) {
|
|
2395
|
+
ot(t, a, i[a]);
|
|
2396
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : qt(Object(i)).forEach(function(a) {
|
|
2397
|
+
Object.defineProperty(t, a, Object.getOwnPropertyDescriptor(i, a));
|
|
1780
2398
|
});
|
|
1781
2399
|
}
|
|
1782
|
-
return
|
|
2400
|
+
return t;
|
|
1783
2401
|
}
|
|
1784
|
-
function
|
|
1785
|
-
return
|
|
2402
|
+
function ot(t, e, i) {
|
|
2403
|
+
return e in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
1786
2404
|
}
|
|
1787
|
-
function
|
|
1788
|
-
if (
|
|
1789
|
-
var
|
|
2405
|
+
function Fe(t, e) {
|
|
2406
|
+
if (t == null) return {};
|
|
2407
|
+
var i = Na(t, e), a, n;
|
|
1790
2408
|
if (Object.getOwnPropertySymbols) {
|
|
1791
|
-
var
|
|
1792
|
-
for (n = 0; n <
|
|
1793
|
-
a =
|
|
2409
|
+
var r = Object.getOwnPropertySymbols(t);
|
|
2410
|
+
for (n = 0; n < r.length; n++)
|
|
2411
|
+
a = r[n], !(e.indexOf(a) >= 0) && Object.prototype.propertyIsEnumerable.call(t, a) && (i[a] = t[a]);
|
|
1794
2412
|
}
|
|
1795
|
-
return
|
|
2413
|
+
return i;
|
|
1796
2414
|
}
|
|
1797
|
-
function
|
|
1798
|
-
if (
|
|
1799
|
-
var
|
|
1800
|
-
for (
|
|
1801
|
-
n = a[
|
|
1802
|
-
return
|
|
2415
|
+
function Na(t, e) {
|
|
2416
|
+
if (t == null) return {};
|
|
2417
|
+
var i = {}, a = Object.keys(t), n, r;
|
|
2418
|
+
for (r = 0; r < a.length; r++)
|
|
2419
|
+
n = a[r], !(e.indexOf(n) >= 0) && (i[n] = t[n]);
|
|
2420
|
+
return i;
|
|
1803
2421
|
}
|
|
1804
|
-
var
|
|
1805
|
-
var
|
|
1806
|
-
return
|
|
2422
|
+
var mt = /* @__PURE__ */ ki(function(t, e) {
|
|
2423
|
+
var i = t.children, a = Fe(t, Pa), n = ii(a), r = n.open, p = Fe(n, Ia);
|
|
2424
|
+
return ji(e, function() {
|
|
1807
2425
|
return {
|
|
1808
|
-
open:
|
|
2426
|
+
open: r
|
|
1809
2427
|
};
|
|
1810
|
-
}, [
|
|
1811
|
-
open:
|
|
2428
|
+
}, [r]), /* @__PURE__ */ he.createElement(ct, null, i(M(M({}, p), {}, {
|
|
2429
|
+
open: r
|
|
1812
2430
|
})));
|
|
1813
2431
|
});
|
|
1814
|
-
|
|
1815
|
-
var
|
|
2432
|
+
mt.displayName = "Dropzone";
|
|
2433
|
+
var ti = {
|
|
1816
2434
|
disabled: !1,
|
|
1817
|
-
getFilesFromEvent:
|
|
2435
|
+
getFilesFromEvent: ea,
|
|
1818
2436
|
maxSize: 1 / 0,
|
|
1819
2437
|
minSize: 0,
|
|
1820
2438
|
multiple: !0,
|
|
@@ -1828,8 +2446,8 @@ var Ie = {
|
|
|
1828
2446
|
useFsAccessApi: !1,
|
|
1829
2447
|
autoFocus: !1
|
|
1830
2448
|
};
|
|
1831
|
-
|
|
1832
|
-
|
|
2449
|
+
mt.defaultProps = ti;
|
|
2450
|
+
mt.propTypes = {
|
|
1833
2451
|
/**
|
|
1834
2452
|
* Render function that exposes the dropzone state and prop getter fns
|
|
1835
2453
|
*
|
|
@@ -1845,7 +2463,7 @@ Ji.propTypes = {
|
|
|
1845
2463
|
* @param {File[]} params.acceptedFiles Accepted files
|
|
1846
2464
|
* @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
|
|
1847
2465
|
*/
|
|
1848
|
-
children:
|
|
2466
|
+
children: L.func,
|
|
1849
2467
|
/**
|
|
1850
2468
|
* Set accepted file types.
|
|
1851
2469
|
* Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
|
|
@@ -1853,90 +2471,90 @@ Ji.propTypes = {
|
|
|
1853
2471
|
* for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
|
|
1854
2472
|
* Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
|
|
1855
2473
|
*/
|
|
1856
|
-
accept:
|
|
2474
|
+
accept: L.objectOf(L.arrayOf(L.string)),
|
|
1857
2475
|
/**
|
|
1858
2476
|
* Allow drag 'n' drop (or selection from the file dialog) of multiple files
|
|
1859
2477
|
*/
|
|
1860
|
-
multiple:
|
|
2478
|
+
multiple: L.bool,
|
|
1861
2479
|
/**
|
|
1862
2480
|
* If false, allow dropped items to take over the current browser window
|
|
1863
2481
|
*/
|
|
1864
|
-
preventDropOnDocument:
|
|
2482
|
+
preventDropOnDocument: L.bool,
|
|
1865
2483
|
/**
|
|
1866
2484
|
* If true, disables click to open the native file selection dialog
|
|
1867
2485
|
*/
|
|
1868
|
-
noClick:
|
|
2486
|
+
noClick: L.bool,
|
|
1869
2487
|
/**
|
|
1870
2488
|
* If true, disables SPACE/ENTER to open the native file selection dialog.
|
|
1871
2489
|
* Note that it also stops tracking the focus state.
|
|
1872
2490
|
*/
|
|
1873
|
-
noKeyboard:
|
|
2491
|
+
noKeyboard: L.bool,
|
|
1874
2492
|
/**
|
|
1875
2493
|
* If true, disables drag 'n' drop
|
|
1876
2494
|
*/
|
|
1877
|
-
noDrag:
|
|
2495
|
+
noDrag: L.bool,
|
|
1878
2496
|
/**
|
|
1879
2497
|
* If true, stops drag event propagation to parents
|
|
1880
2498
|
*/
|
|
1881
|
-
noDragEventsBubbling:
|
|
2499
|
+
noDragEventsBubbling: L.bool,
|
|
1882
2500
|
/**
|
|
1883
2501
|
* Minimum file size (in bytes)
|
|
1884
2502
|
*/
|
|
1885
|
-
minSize:
|
|
2503
|
+
minSize: L.number,
|
|
1886
2504
|
/**
|
|
1887
2505
|
* Maximum file size (in bytes)
|
|
1888
2506
|
*/
|
|
1889
|
-
maxSize:
|
|
2507
|
+
maxSize: L.number,
|
|
1890
2508
|
/**
|
|
1891
2509
|
* Maximum accepted number of files
|
|
1892
2510
|
* The default value is 0 which means there is no limitation to how many files are accepted.
|
|
1893
2511
|
*/
|
|
1894
|
-
maxFiles:
|
|
2512
|
+
maxFiles: L.number,
|
|
1895
2513
|
/**
|
|
1896
2514
|
* Enable/disable the dropzone
|
|
1897
2515
|
*/
|
|
1898
|
-
disabled:
|
|
2516
|
+
disabled: L.bool,
|
|
1899
2517
|
/**
|
|
1900
2518
|
* Use this to provide a custom file aggregator
|
|
1901
2519
|
*
|
|
1902
2520
|
* @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
|
|
1903
2521
|
*/
|
|
1904
|
-
getFilesFromEvent:
|
|
2522
|
+
getFilesFromEvent: L.func,
|
|
1905
2523
|
/**
|
|
1906
2524
|
* Cb for when closing the file dialog with no selection
|
|
1907
2525
|
*/
|
|
1908
|
-
onFileDialogCancel:
|
|
2526
|
+
onFileDialogCancel: L.func,
|
|
1909
2527
|
/**
|
|
1910
2528
|
* Cb for when opening the file dialog
|
|
1911
2529
|
*/
|
|
1912
|
-
onFileDialogOpen:
|
|
2530
|
+
onFileDialogOpen: L.func,
|
|
1913
2531
|
/**
|
|
1914
2532
|
* Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
|
|
1915
2533
|
* to open the file picker instead of using an `<input type="file">` click event.
|
|
1916
2534
|
*/
|
|
1917
|
-
useFsAccessApi:
|
|
2535
|
+
useFsAccessApi: L.bool,
|
|
1918
2536
|
/**
|
|
1919
2537
|
* Set to true to focus the root element on render
|
|
1920
2538
|
*/
|
|
1921
|
-
autoFocus:
|
|
2539
|
+
autoFocus: L.bool,
|
|
1922
2540
|
/**
|
|
1923
2541
|
* Cb for when the `dragenter` event occurs.
|
|
1924
2542
|
*
|
|
1925
2543
|
* @param {DragEvent} event
|
|
1926
2544
|
*/
|
|
1927
|
-
onDragEnter:
|
|
2545
|
+
onDragEnter: L.func,
|
|
1928
2546
|
/**
|
|
1929
2547
|
* Cb for when the `dragleave` event occurs
|
|
1930
2548
|
*
|
|
1931
2549
|
* @param {DragEvent} event
|
|
1932
2550
|
*/
|
|
1933
|
-
onDragLeave:
|
|
2551
|
+
onDragLeave: L.func,
|
|
1934
2552
|
/**
|
|
1935
2553
|
* Cb for when the `dragover` event occurs
|
|
1936
2554
|
*
|
|
1937
2555
|
* @param {DragEvent} event
|
|
1938
2556
|
*/
|
|
1939
|
-
onDragOver:
|
|
2557
|
+
onDragOver: L.func,
|
|
1940
2558
|
/**
|
|
1941
2559
|
* Cb for when the `drop` event occurs.
|
|
1942
2560
|
* Note that this callback is invoked after the `getFilesFromEvent` callback is done.
|
|
@@ -1967,7 +2585,7 @@ Ji.propTypes = {
|
|
|
1967
2585
|
* @param {FileRejection[]} fileRejections
|
|
1968
2586
|
* @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
|
|
1969
2587
|
*/
|
|
1970
|
-
onDrop:
|
|
2588
|
+
onDrop: L.func,
|
|
1971
2589
|
/**
|
|
1972
2590
|
* Cb for when the `drop` event occurs.
|
|
1973
2591
|
* Note that if no files are accepted, this callback is not invoked.
|
|
@@ -1975,7 +2593,7 @@ Ji.propTypes = {
|
|
|
1975
2593
|
* @param {File[]} files
|
|
1976
2594
|
* @param {(DragEvent|Event)} event
|
|
1977
2595
|
*/
|
|
1978
|
-
onDropAccepted:
|
|
2596
|
+
onDropAccepted: L.func,
|
|
1979
2597
|
/**
|
|
1980
2598
|
* Cb for when the `drop` event occurs.
|
|
1981
2599
|
* Note that if no files are rejected, this callback is not invoked.
|
|
@@ -1983,21 +2601,21 @@ Ji.propTypes = {
|
|
|
1983
2601
|
* @param {FileRejection[]} fileRejections
|
|
1984
2602
|
* @param {(DragEvent|Event)} event
|
|
1985
2603
|
*/
|
|
1986
|
-
onDropRejected:
|
|
2604
|
+
onDropRejected: L.func,
|
|
1987
2605
|
/**
|
|
1988
2606
|
* Cb for when there's some error from any of the promises.
|
|
1989
2607
|
*
|
|
1990
2608
|
* @param {Error} error
|
|
1991
2609
|
*/
|
|
1992
|
-
onError:
|
|
2610
|
+
onError: L.func,
|
|
1993
2611
|
/**
|
|
1994
2612
|
* Custom validation function. It must return null if there's no errors.
|
|
1995
2613
|
* @param {File} file
|
|
1996
2614
|
* @returns {FileError|FileError[]|null}
|
|
1997
2615
|
*/
|
|
1998
|
-
validator:
|
|
2616
|
+
validator: L.func
|
|
1999
2617
|
};
|
|
2000
|
-
var
|
|
2618
|
+
var rt = {
|
|
2001
2619
|
isFocused: !1,
|
|
2002
2620
|
isFileDialogActive: !1,
|
|
2003
2621
|
isDragActive: !1,
|
|
@@ -2006,187 +2624,187 @@ var Gi = {
|
|
|
2006
2624
|
acceptedFiles: [],
|
|
2007
2625
|
fileRejections: []
|
|
2008
2626
|
};
|
|
2009
|
-
function
|
|
2010
|
-
var
|
|
2011
|
-
return
|
|
2012
|
-
}, [
|
|
2013
|
-
return
|
|
2014
|
-
}, [
|
|
2015
|
-
return typeof
|
|
2016
|
-
}, [
|
|
2017
|
-
return typeof
|
|
2018
|
-
}, [
|
|
2019
|
-
!
|
|
2020
|
-
if (
|
|
2021
|
-
var
|
|
2022
|
-
|
|
2627
|
+
function ii() {
|
|
2628
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = M(M({}, ti), t), i = e.accept, a = e.disabled, n = e.getFilesFromEvent, r = e.maxSize, p = e.minSize, l = e.multiple, d = e.maxFiles, c = e.onDragEnter, s = e.onDragLeave, m = e.onDragOver, f = e.onDrop, y = e.onDropAccepted, h = e.onDropRejected, o = e.onFileDialogCancel, b = e.onFileDialogOpen, _ = e.useFsAccessApi, D = e.autoFocus, R = e.preventDropOnDocument, F = e.noClick, $ = e.noKeyboard, N = e.noDrag, H = e.noDragEventsBubbling, G = e.onError, J = e.validator, Z = fe(function() {
|
|
2629
|
+
return Ca(i);
|
|
2630
|
+
}, [i]), ne = fe(function() {
|
|
2631
|
+
return Aa(i);
|
|
2632
|
+
}, [i]), pe = fe(function() {
|
|
2633
|
+
return typeof b == "function" ? b : Lt;
|
|
2634
|
+
}, [b]), oe = fe(function() {
|
|
2635
|
+
return typeof o == "function" ? o : Lt;
|
|
2636
|
+
}, [o]), q = we(null), U = we(null), Q = wi(Ha, rt), te = Ze(Q, 2), ie = te[0], W = te[1], u = ie.isFocused, x = ie.isFileDialogActive, j = we(typeof window < "u" && window.isSecureContext && _ && Da()), T = function() {
|
|
2637
|
+
!j.current && x && setTimeout(function() {
|
|
2638
|
+
if (U.current) {
|
|
2639
|
+
var k = U.current.files;
|
|
2640
|
+
k.length || (W({
|
|
2023
2641
|
type: "closeDialog"
|
|
2024
|
-
}),
|
|
2642
|
+
}), oe());
|
|
2025
2643
|
}
|
|
2026
2644
|
}, 300);
|
|
2027
2645
|
};
|
|
2028
|
-
|
|
2029
|
-
return window.addEventListener("focus",
|
|
2030
|
-
window.removeEventListener("focus",
|
|
2646
|
+
ve(function() {
|
|
2647
|
+
return window.addEventListener("focus", T, !1), function() {
|
|
2648
|
+
window.removeEventListener("focus", T, !1);
|
|
2031
2649
|
};
|
|
2032
|
-
}, [
|
|
2033
|
-
var
|
|
2034
|
-
|
|
2650
|
+
}, [U, x, oe, j]);
|
|
2651
|
+
var w = we([]), C = function(k) {
|
|
2652
|
+
q.current && q.current.contains(k.target) || (k.preventDefault(), w.current = []);
|
|
2035
2653
|
};
|
|
2036
|
-
|
|
2037
|
-
return
|
|
2038
|
-
|
|
2654
|
+
ve(function() {
|
|
2655
|
+
return R && (document.addEventListener("dragover", Ft, !1), document.addEventListener("drop", C, !1)), function() {
|
|
2656
|
+
R && (document.removeEventListener("dragover", Ft), document.removeEventListener("drop", C));
|
|
2039
2657
|
};
|
|
2040
|
-
}, [
|
|
2041
|
-
return !a &&
|
|
2658
|
+
}, [q, R]), ve(function() {
|
|
2659
|
+
return !a && D && q.current && q.current.focus(), function() {
|
|
2042
2660
|
};
|
|
2043
|
-
}, [
|
|
2044
|
-
var
|
|
2045
|
-
|
|
2046
|
-
}, [
|
|
2047
|
-
|
|
2048
|
-
if (!(
|
|
2049
|
-
var
|
|
2050
|
-
files:
|
|
2051
|
-
accept:
|
|
2661
|
+
}, [q, D, a]);
|
|
2662
|
+
var E = ae(function(g) {
|
|
2663
|
+
G ? G(g) : console.error(g);
|
|
2664
|
+
}, [G]), O = ae(function(g) {
|
|
2665
|
+
g.preventDefault(), g.persist(), Oe(g), w.current = [].concat(qa(w.current), [g.target]), Re(g) && Promise.resolve(n(g)).then(function(k) {
|
|
2666
|
+
if (!(ze(g) && !H)) {
|
|
2667
|
+
var K = k.length, V = K > 0 && Ea({
|
|
2668
|
+
files: k,
|
|
2669
|
+
accept: Z,
|
|
2052
2670
|
minSize: p,
|
|
2053
|
-
maxSize:
|
|
2671
|
+
maxSize: r,
|
|
2054
2672
|
multiple: l,
|
|
2055
2673
|
maxFiles: d,
|
|
2056
|
-
validator:
|
|
2057
|
-
}),
|
|
2058
|
-
|
|
2059
|
-
isDragAccept:
|
|
2060
|
-
isDragReject:
|
|
2674
|
+
validator: J
|
|
2675
|
+
}), ee = K > 0 && !V;
|
|
2676
|
+
W({
|
|
2677
|
+
isDragAccept: V,
|
|
2678
|
+
isDragReject: ee,
|
|
2061
2679
|
isDragActive: !0,
|
|
2062
2680
|
type: "setDraggedFiles"
|
|
2063
|
-
}), c && c(
|
|
2681
|
+
}), c && c(g);
|
|
2064
2682
|
}
|
|
2065
|
-
}).catch(function(
|
|
2066
|
-
return
|
|
2683
|
+
}).catch(function(k) {
|
|
2684
|
+
return E(k);
|
|
2067
2685
|
});
|
|
2068
|
-
}, [n, c,
|
|
2069
|
-
|
|
2070
|
-
var
|
|
2071
|
-
if (
|
|
2686
|
+
}, [n, c, E, H, Z, p, r, l, d, J]), S = ae(function(g) {
|
|
2687
|
+
g.preventDefault(), g.persist(), Oe(g);
|
|
2688
|
+
var k = Re(g);
|
|
2689
|
+
if (k && g.dataTransfer)
|
|
2072
2690
|
try {
|
|
2073
|
-
|
|
2691
|
+
g.dataTransfer.dropEffect = "copy";
|
|
2074
2692
|
} catch {
|
|
2075
2693
|
}
|
|
2076
|
-
return
|
|
2077
|
-
}, [m,
|
|
2078
|
-
|
|
2079
|
-
var
|
|
2080
|
-
return
|
|
2081
|
-
}),
|
|
2082
|
-
|
|
2694
|
+
return k && m && m(g), !1;
|
|
2695
|
+
}, [m, H]), P = ae(function(g) {
|
|
2696
|
+
g.preventDefault(), g.persist(), Oe(g);
|
|
2697
|
+
var k = w.current.filter(function(V) {
|
|
2698
|
+
return q.current && q.current.contains(V);
|
|
2699
|
+
}), K = k.indexOf(g.target);
|
|
2700
|
+
K !== -1 && k.splice(K, 1), w.current = k, !(k.length > 0) && (W({
|
|
2083
2701
|
type: "setDraggedFiles",
|
|
2084
2702
|
isDragActive: !1,
|
|
2085
2703
|
isDragAccept: !1,
|
|
2086
2704
|
isDragReject: !1
|
|
2087
|
-
}),
|
|
2088
|
-
}, [
|
|
2089
|
-
var
|
|
2090
|
-
|
|
2091
|
-
var
|
|
2092
|
-
if (
|
|
2093
|
-
|
|
2705
|
+
}), Re(g) && s && s(g));
|
|
2706
|
+
}, [q, s, H]), A = ae(function(g, k) {
|
|
2707
|
+
var K = [], V = [];
|
|
2708
|
+
g.forEach(function(ee) {
|
|
2709
|
+
var be = Xt(ee, Z), ue = Ze(be, 2), Le = ue[0], $e = ue[1], Me = Jt(ee, p, r), De = Ze(Me, 2), Ye = De[0], We = De[1], Be = J ? J(ee) : null;
|
|
2710
|
+
if (Le && Ye && !Be)
|
|
2711
|
+
K.push(ee);
|
|
2094
2712
|
else {
|
|
2095
|
-
var
|
|
2096
|
-
|
|
2097
|
-
file:
|
|
2098
|
-
errors:
|
|
2099
|
-
return
|
|
2713
|
+
var Ne = [$e, We];
|
|
2714
|
+
Be && (Ne = Ne.concat(Be)), V.push({
|
|
2715
|
+
file: ee,
|
|
2716
|
+
errors: Ne.filter(function(li) {
|
|
2717
|
+
return li;
|
|
2100
2718
|
})
|
|
2101
2719
|
});
|
|
2102
2720
|
}
|
|
2103
|
-
}), (!l &&
|
|
2104
|
-
|
|
2105
|
-
file:
|
|
2106
|
-
errors: [
|
|
2721
|
+
}), (!l && K.length > 1 || l && d >= 1 && K.length > d) && (K.forEach(function(ee) {
|
|
2722
|
+
V.push({
|
|
2723
|
+
file: ee,
|
|
2724
|
+
errors: [ja]
|
|
2107
2725
|
});
|
|
2108
|
-
}),
|
|
2109
|
-
acceptedFiles:
|
|
2110
|
-
fileRejections:
|
|
2111
|
-
isDragReject:
|
|
2726
|
+
}), K.splice(0)), W({
|
|
2727
|
+
acceptedFiles: K,
|
|
2728
|
+
fileRejections: V,
|
|
2729
|
+
isDragReject: V.length > 0,
|
|
2112
2730
|
type: "setFiles"
|
|
2113
|
-
}), f && f(
|
|
2114
|
-
}, [
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
}).catch(function(
|
|
2118
|
-
return
|
|
2119
|
-
}),
|
|
2731
|
+
}), f && f(K, V, k), V.length > 0 && h && h(V, k), K.length > 0 && y && y(K, k);
|
|
2732
|
+
}, [W, l, Z, p, r, d, f, y, h, J]), X = ae(function(g) {
|
|
2733
|
+
g.preventDefault(), g.persist(), Oe(g), w.current = [], Re(g) && Promise.resolve(n(g)).then(function(k) {
|
|
2734
|
+
ze(g) && !H || A(k, g);
|
|
2735
|
+
}).catch(function(k) {
|
|
2736
|
+
return E(k);
|
|
2737
|
+
}), W({
|
|
2120
2738
|
type: "reset"
|
|
2121
2739
|
});
|
|
2122
|
-
}, [n,
|
|
2123
|
-
if (
|
|
2124
|
-
|
|
2740
|
+
}, [n, A, E, H]), B = ae(function() {
|
|
2741
|
+
if (j.current) {
|
|
2742
|
+
W({
|
|
2125
2743
|
type: "openDialog"
|
|
2126
|
-
}),
|
|
2127
|
-
var
|
|
2744
|
+
}), pe();
|
|
2745
|
+
var g = {
|
|
2128
2746
|
multiple: l,
|
|
2129
|
-
types:
|
|
2747
|
+
types: ne
|
|
2130
2748
|
};
|
|
2131
|
-
window.showOpenFilePicker(
|
|
2132
|
-
return n(
|
|
2133
|
-
}).then(function(
|
|
2134
|
-
|
|
2749
|
+
window.showOpenFilePicker(g).then(function(k) {
|
|
2750
|
+
return n(k);
|
|
2751
|
+
}).then(function(k) {
|
|
2752
|
+
A(k, null), W({
|
|
2135
2753
|
type: "closeDialog"
|
|
2136
2754
|
});
|
|
2137
|
-
}).catch(function(
|
|
2138
|
-
|
|
2755
|
+
}).catch(function(k) {
|
|
2756
|
+
Sa(k) ? (oe(k), W({
|
|
2139
2757
|
type: "closeDialog"
|
|
2140
|
-
})) :
|
|
2758
|
+
})) : Ra(k) ? (j.current = !1, U.current ? (U.current.value = null, U.current.click()) : E(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : E(k);
|
|
2141
2759
|
});
|
|
2142
2760
|
return;
|
|
2143
2761
|
}
|
|
2144
|
-
|
|
2762
|
+
U.current && (W({
|
|
2145
2763
|
type: "openDialog"
|
|
2146
|
-
}),
|
|
2147
|
-
}, [
|
|
2148
|
-
!
|
|
2149
|
-
}, [
|
|
2150
|
-
|
|
2764
|
+
}), pe(), U.current.value = null, U.current.click());
|
|
2765
|
+
}, [W, pe, oe, _, A, E, ne, l]), le = ae(function(g) {
|
|
2766
|
+
!q.current || !q.current.isEqualNode(g.target) || (g.key === " " || g.key === "Enter" || g.keyCode === 32 || g.keyCode === 13) && (g.preventDefault(), B());
|
|
2767
|
+
}, [q, B]), ut = ae(function() {
|
|
2768
|
+
W({
|
|
2151
2769
|
type: "focus"
|
|
2152
2770
|
});
|
|
2153
|
-
}, []),
|
|
2154
|
-
|
|
2771
|
+
}, []), ft = ae(function() {
|
|
2772
|
+
W({
|
|
2155
2773
|
type: "blur"
|
|
2156
2774
|
});
|
|
2157
|
-
}, []),
|
|
2158
|
-
|
|
2159
|
-
}, [
|
|
2160
|
-
return a ? null :
|
|
2161
|
-
},
|
|
2162
|
-
return
|
|
2163
|
-
},
|
|
2164
|
-
return
|
|
2165
|
-
},
|
|
2166
|
-
|
|
2167
|
-
},
|
|
2775
|
+
}, []), vt = ae(function() {
|
|
2776
|
+
F || (Oa() ? setTimeout(B, 0) : B());
|
|
2777
|
+
}, [F, B]), me = function(k) {
|
|
2778
|
+
return a ? null : k;
|
|
2779
|
+
}, qe = function(k) {
|
|
2780
|
+
return $ ? null : me(k);
|
|
2781
|
+
}, _e = function(k) {
|
|
2782
|
+
return N ? null : me(k);
|
|
2783
|
+
}, Oe = function(k) {
|
|
2784
|
+
H && k.stopPropagation();
|
|
2785
|
+
}, oi = fe(function() {
|
|
2168
2786
|
return function() {
|
|
2169
|
-
var
|
|
2170
|
-
return
|
|
2171
|
-
onKeyDown:
|
|
2172
|
-
onFocus:
|
|
2173
|
-
onBlur:
|
|
2174
|
-
onClick:
|
|
2175
|
-
onDragEnter:
|
|
2176
|
-
onDragOver:
|
|
2177
|
-
onDragLeave:
|
|
2178
|
-
onDrop:
|
|
2179
|
-
role: typeof
|
|
2180
|
-
},
|
|
2787
|
+
var g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, k = g.refKey, K = k === void 0 ? "ref" : k, V = g.role, ee = g.onKeyDown, be = g.onFocus, ue = g.onBlur, Le = g.onClick, $e = g.onDragEnter, Me = g.onDragOver, De = g.onDragLeave, Ye = g.onDrop, We = Fe(g, za);
|
|
2788
|
+
return M(M(ot({
|
|
2789
|
+
onKeyDown: qe(re(ee, le)),
|
|
2790
|
+
onFocus: qe(re(be, ut)),
|
|
2791
|
+
onBlur: qe(re(ue, ft)),
|
|
2792
|
+
onClick: me(re(Le, vt)),
|
|
2793
|
+
onDragEnter: _e(re($e, O)),
|
|
2794
|
+
onDragOver: _e(re(Me, S)),
|
|
2795
|
+
onDragLeave: _e(re(De, P)),
|
|
2796
|
+
onDrop: _e(re(Ye, X)),
|
|
2797
|
+
role: typeof V == "string" && V !== "" ? V : "presentation"
|
|
2798
|
+
}, K, q), !a && !$ ? {
|
|
2181
2799
|
tabIndex: 0
|
|
2182
|
-
} : {}),
|
|
2800
|
+
} : {}), We);
|
|
2183
2801
|
};
|
|
2184
|
-
}, [
|
|
2185
|
-
|
|
2186
|
-
}, []),
|
|
2802
|
+
}, [q, le, ut, ft, vt, O, S, P, X, $, N, a]), ri = ae(function(g) {
|
|
2803
|
+
g.stopPropagation();
|
|
2804
|
+
}, []), pi = fe(function() {
|
|
2187
2805
|
return function() {
|
|
2188
|
-
var
|
|
2189
|
-
accept:
|
|
2806
|
+
var g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, k = g.refKey, K = k === void 0 ? "ref" : k, V = g.onChange, ee = g.onClick, be = Fe(g, Fa), ue = ot({
|
|
2807
|
+
accept: Z,
|
|
2190
2808
|
multiple: l,
|
|
2191
2809
|
type: "file",
|
|
2192
2810
|
style: {
|
|
@@ -2201,61 +2819,61 @@ function Se() {
|
|
|
2201
2819
|
width: "1px",
|
|
2202
2820
|
whiteSpace: "nowrap"
|
|
2203
2821
|
},
|
|
2204
|
-
onChange:
|
|
2205
|
-
onClick:
|
|
2822
|
+
onChange: me(re(V, X)),
|
|
2823
|
+
onClick: me(re(ee, ri)),
|
|
2206
2824
|
tabIndex: -1
|
|
2207
|
-
},
|
|
2208
|
-
return
|
|
2825
|
+
}, K, U);
|
|
2826
|
+
return M(M({}, ue), be);
|
|
2209
2827
|
};
|
|
2210
|
-
}, [
|
|
2211
|
-
return
|
|
2212
|
-
isFocused:
|
|
2213
|
-
getRootProps:
|
|
2214
|
-
getInputProps:
|
|
2215
|
-
rootRef:
|
|
2216
|
-
inputRef:
|
|
2217
|
-
open:
|
|
2828
|
+
}, [U, i, l, X, a]);
|
|
2829
|
+
return M(M({}, ie), {}, {
|
|
2830
|
+
isFocused: u && !a,
|
|
2831
|
+
getRootProps: oi,
|
|
2832
|
+
getInputProps: pi,
|
|
2833
|
+
rootRef: q,
|
|
2834
|
+
inputRef: U,
|
|
2835
|
+
open: me(B)
|
|
2218
2836
|
});
|
|
2219
2837
|
}
|
|
2220
|
-
function
|
|
2221
|
-
switch (
|
|
2838
|
+
function Ha(t, e) {
|
|
2839
|
+
switch (e.type) {
|
|
2222
2840
|
case "focus":
|
|
2223
|
-
return
|
|
2841
|
+
return M(M({}, t), {}, {
|
|
2224
2842
|
isFocused: !0
|
|
2225
2843
|
});
|
|
2226
2844
|
case "blur":
|
|
2227
|
-
return
|
|
2845
|
+
return M(M({}, t), {}, {
|
|
2228
2846
|
isFocused: !1
|
|
2229
2847
|
});
|
|
2230
2848
|
case "openDialog":
|
|
2231
|
-
return
|
|
2849
|
+
return M(M({}, rt), {}, {
|
|
2232
2850
|
isFileDialogActive: !0
|
|
2233
2851
|
});
|
|
2234
2852
|
case "closeDialog":
|
|
2235
|
-
return
|
|
2853
|
+
return M(M({}, t), {}, {
|
|
2236
2854
|
isFileDialogActive: !1
|
|
2237
2855
|
});
|
|
2238
2856
|
case "setDraggedFiles":
|
|
2239
|
-
return
|
|
2240
|
-
isDragActive:
|
|
2241
|
-
isDragAccept:
|
|
2242
|
-
isDragReject:
|
|
2857
|
+
return M(M({}, t), {}, {
|
|
2858
|
+
isDragActive: e.isDragActive,
|
|
2859
|
+
isDragAccept: e.isDragAccept,
|
|
2860
|
+
isDragReject: e.isDragReject
|
|
2243
2861
|
});
|
|
2244
2862
|
case "setFiles":
|
|
2245
|
-
return
|
|
2246
|
-
acceptedFiles:
|
|
2247
|
-
fileRejections:
|
|
2248
|
-
isDragReject:
|
|
2863
|
+
return M(M({}, t), {}, {
|
|
2864
|
+
acceptedFiles: e.acceptedFiles,
|
|
2865
|
+
fileRejections: e.fileRejections,
|
|
2866
|
+
isDragReject: e.isDragReject
|
|
2249
2867
|
});
|
|
2250
2868
|
case "reset":
|
|
2251
|
-
return
|
|
2869
|
+
return M({}, rt);
|
|
2252
2870
|
default:
|
|
2253
|
-
return
|
|
2871
|
+
return t;
|
|
2254
2872
|
}
|
|
2255
2873
|
}
|
|
2256
|
-
function
|
|
2874
|
+
function Lt() {
|
|
2257
2875
|
}
|
|
2258
|
-
const
|
|
2876
|
+
const Ka = {
|
|
2259
2877
|
flex: 1,
|
|
2260
2878
|
display: "flex",
|
|
2261
2879
|
flexDirection: "column",
|
|
@@ -2267,26 +2885,26 @@ const xa = {
|
|
|
2267
2885
|
outline: "none",
|
|
2268
2886
|
transition: "border .24s ease-in-out",
|
|
2269
2887
|
cursor: "pointer"
|
|
2270
|
-
},
|
|
2271
|
-
const
|
|
2272
|
-
let
|
|
2273
|
-
|
|
2888
|
+
}, Cn = (t) => {
|
|
2889
|
+
const e = Y.c(28);
|
|
2890
|
+
let i, a;
|
|
2891
|
+
e[0] !== t ? ({
|
|
2274
2892
|
sx: a,
|
|
2275
|
-
...
|
|
2276
|
-
} =
|
|
2893
|
+
...i
|
|
2894
|
+
} = t, e[0] = t, e[1] = i, e[2] = a) : (i = e[1], a = e[2]);
|
|
2277
2895
|
const {
|
|
2278
2896
|
getRootProps: n,
|
|
2279
|
-
getInputProps:
|
|
2897
|
+
getInputProps: r,
|
|
2280
2898
|
isFocused: p,
|
|
2281
2899
|
isDragAccept: l,
|
|
2282
2900
|
isDragReject: d
|
|
2283
|
-
} =
|
|
2901
|
+
} = ii(i), {
|
|
2284
2902
|
t: c
|
|
2285
|
-
} =
|
|
2286
|
-
let m, f,
|
|
2287
|
-
if (
|
|
2288
|
-
const
|
|
2289
|
-
...
|
|
2903
|
+
} = pt(), s = ci();
|
|
2904
|
+
let m, f, y;
|
|
2905
|
+
if (e[3] !== n || e[4] !== l || e[5] !== d || e[6] !== p || e[7] !== s) {
|
|
2906
|
+
const $ = {
|
|
2907
|
+
...Ka,
|
|
2290
2908
|
...p ? {
|
|
2291
2909
|
borderColor: s.palette.primary.main
|
|
2292
2910
|
} : {},
|
|
@@ -2297,307 +2915,307 @@ const xa = {
|
|
|
2297
2915
|
borderColor: s.palette.error.main
|
|
2298
2916
|
} : {}
|
|
2299
2917
|
};
|
|
2300
|
-
m =
|
|
2301
|
-
style:
|
|
2302
|
-
}),
|
|
2918
|
+
m = si, f = "outlined", y = n({
|
|
2919
|
+
style: $
|
|
2920
|
+
}), e[3] = n, e[4] = l, e[5] = d, e[6] = p, e[7] = s, e[8] = m, e[9] = f, e[10] = y;
|
|
2303
2921
|
} else
|
|
2304
|
-
m =
|
|
2305
|
-
let x;
|
|
2306
|
-
i[11] !== o ? (x = o(), i[11] = o, i[12] = x) : x = i[12];
|
|
2922
|
+
m = e[8], f = e[9], y = e[10];
|
|
2307
2923
|
let h;
|
|
2308
|
-
|
|
2924
|
+
e[11] !== r ? (h = r(), e[11] = r, e[12] = h) : h = e[12];
|
|
2925
|
+
let o;
|
|
2926
|
+
e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
|
|
2309
2927
|
display: "none"
|
|
2310
|
-
},
|
|
2311
|
-
let y;
|
|
2312
|
-
i[14] !== x ? (y = /* @__PURE__ */ u("input", { ...x, style: h }), i[14] = x, i[15] = y) : y = i[15];
|
|
2313
|
-
let w;
|
|
2314
|
-
i[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = /* @__PURE__ */ u(at, {}), i[16] = w) : w = i[16];
|
|
2928
|
+
}, e[13] = o) : o = e[13];
|
|
2315
2929
|
let b;
|
|
2316
|
-
|
|
2317
|
-
let
|
|
2318
|
-
|
|
2930
|
+
e[14] !== h ? (b = /* @__PURE__ */ v.jsx("input", { ...h, style: o }), e[14] = h, e[15] = b) : b = e[15];
|
|
2931
|
+
let _;
|
|
2932
|
+
e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ v.jsx(_i, {}), e[16] = _) : _ = e[16];
|
|
2319
2933
|
let D;
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2934
|
+
e[17] !== c ? (D = c("Layout.File.DragSomeFilesHereOrClickToSelectThem"), e[17] = c, e[18] = D) : D = e[18];
|
|
2935
|
+
let R;
|
|
2936
|
+
e[19] !== D ? (R = /* @__PURE__ */ v.jsx(xe, { children: D }), e[19] = D, e[20] = R) : R = e[20];
|
|
2937
|
+
let F;
|
|
2938
|
+
return e[21] !== m || e[22] !== a || e[23] !== f || e[24] !== y || e[25] !== b || e[26] !== R ? (F = /* @__PURE__ */ v.jsxs(m, { variant: f, ...y, sx: a, children: [
|
|
2939
|
+
b,
|
|
2940
|
+
_,
|
|
2941
|
+
R
|
|
2942
|
+
] }), e[21] = m, e[22] = a, e[23] = f, e[24] = y, e[25] = b, e[26] = R, e[27] = F) : F = e[27], F;
|
|
2943
|
+
}, ai = Ei(null), ye = () => {
|
|
2944
|
+
const t = Ti(ai);
|
|
2945
|
+
if (!t)
|
|
2328
2946
|
throw new Error("FileViewer components must be used within FileViewer");
|
|
2329
|
-
return
|
|
2330
|
-
},
|
|
2331
|
-
const
|
|
2332
|
-
meta:
|
|
2947
|
+
return t;
|
|
2948
|
+
}, ni = (t) => {
|
|
2949
|
+
const e = Y.c(34), {
|
|
2950
|
+
meta: i,
|
|
2333
2951
|
menu: a,
|
|
2334
2952
|
setMenu: n
|
|
2335
|
-
} =
|
|
2336
|
-
t:
|
|
2337
|
-
} =
|
|
2953
|
+
} = t, {
|
|
2954
|
+
t: r
|
|
2955
|
+
} = pt(), {
|
|
2338
2956
|
fileMetas: p,
|
|
2339
2957
|
onDelete: l,
|
|
2340
2958
|
actions: d
|
|
2341
|
-
} =
|
|
2959
|
+
} = ye(), {
|
|
2342
2960
|
confirm: c
|
|
2343
|
-
} =
|
|
2961
|
+
} = Ri();
|
|
2344
2962
|
let s;
|
|
2345
|
-
|
|
2963
|
+
e[0] !== n ? (s = () => {
|
|
2346
2964
|
n(null);
|
|
2347
|
-
},
|
|
2965
|
+
}, e[0] = n, e[1] = s) : s = e[1];
|
|
2348
2966
|
const m = s, {
|
|
2349
2967
|
mutate: f,
|
|
2350
|
-
isPending:
|
|
2351
|
-
} =
|
|
2352
|
-
mutate:
|
|
2353
|
-
isPending:
|
|
2354
|
-
} =
|
|
2355
|
-
let y;
|
|
2356
|
-
i[2] !== f || i[3] !== m || i[4] !== t ? (y = () => {
|
|
2357
|
-
m(), f(t);
|
|
2358
|
-
}, i[2] = f, i[3] = m, i[4] = t, i[5] = y) : y = i[5];
|
|
2359
|
-
const w = y;
|
|
2968
|
+
isPending: y
|
|
2969
|
+
} = st(), {
|
|
2970
|
+
mutate: h,
|
|
2971
|
+
isPending: o
|
|
2972
|
+
} = Oi();
|
|
2360
2973
|
let b;
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2974
|
+
e[2] !== f || e[3] !== m || e[4] !== i ? (b = () => {
|
|
2975
|
+
m(), f(i);
|
|
2976
|
+
}, e[2] = f, e[3] = m, e[4] = i, e[5] = b) : b = e[5];
|
|
2977
|
+
const _ = b;
|
|
2978
|
+
let D;
|
|
2979
|
+
e[6] !== c || e[7] !== h || e[8] !== p || e[9] !== m || e[10] !== i || e[11] !== l || e[12] !== r ? (D = async () => {
|
|
2980
|
+
if (await c(r("Layout.File.AreYouSureYouWantToDelete", {
|
|
2981
|
+
fileName: i.fileName
|
|
2982
|
+
})) && (h(i), m(), l)) {
|
|
2983
|
+
const Z = p.filter((ne) => ne.id !== i.id);
|
|
2366
2984
|
l({
|
|
2367
|
-
remainingFileMetas:
|
|
2368
|
-
deletedFileMeta:
|
|
2985
|
+
remainingFileMetas: Z,
|
|
2986
|
+
deletedFileMeta: i
|
|
2369
2987
|
});
|
|
2370
2988
|
}
|
|
2371
|
-
},
|
|
2372
|
-
const
|
|
2373
|
-
let
|
|
2374
|
-
|
|
2989
|
+
}, e[6] = c, e[7] = h, e[8] = p, e[9] = m, e[10] = i, e[11] = l, e[12] = r, e[13] = D) : D = e[13];
|
|
2990
|
+
const R = D, F = a !== null;
|
|
2991
|
+
let $;
|
|
2992
|
+
e[14] !== a ? ($ = a === null ? void 0 : {
|
|
2375
2993
|
top: a.mouseY,
|
|
2376
2994
|
left: a.mouseX
|
|
2377
|
-
},
|
|
2378
|
-
let
|
|
2379
|
-
|
|
2380
|
-
/* @__PURE__ */
|
|
2381
|
-
/* @__PURE__ */
|
|
2382
|
-
] }),
|
|
2383
|
-
let
|
|
2384
|
-
|
|
2385
|
-
/* @__PURE__ */
|
|
2386
|
-
/* @__PURE__ */
|
|
2387
|
-
] }),
|
|
2388
|
-
let
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
] }),
|
|
2393
|
-
let
|
|
2394
|
-
return
|
|
2395
|
-
},
|
|
2396
|
-
const
|
|
2397
|
-
sx:
|
|
2995
|
+
}, e[14] = a, e[15] = $) : $ = e[15];
|
|
2996
|
+
let N;
|
|
2997
|
+
e[16] !== d?.download || e[17] !== _ || e[18] !== y || e[19] !== r ? (N = d?.download !== !1 && /* @__PURE__ */ v.jsxs(Qe, { onClick: _, disabled: y, children: [
|
|
2998
|
+
/* @__PURE__ */ v.jsx(et, { children: /* @__PURE__ */ v.jsx(zi, {}) }),
|
|
2999
|
+
/* @__PURE__ */ v.jsx(tt, { children: r("Layout.File.Download") })
|
|
3000
|
+
] }), e[16] = d?.download, e[17] = _, e[18] = y, e[19] = r, e[20] = N) : N = e[20];
|
|
3001
|
+
let H;
|
|
3002
|
+
e[21] !== d?.delete || e[22] !== R || e[23] !== o || e[24] !== r ? (H = d?.delete !== !1 && /* @__PURE__ */ v.jsxs(Qe, { onClick: R, disabled: o, children: [
|
|
3003
|
+
/* @__PURE__ */ v.jsx(et, { children: /* @__PURE__ */ v.jsx(Ii, {}) }),
|
|
3004
|
+
/* @__PURE__ */ v.jsx(tt, { children: r("Layout.File.Delete") })
|
|
3005
|
+
] }), e[21] = d?.delete, e[22] = R, e[23] = o, e[24] = r, e[25] = H) : H = e[25];
|
|
3006
|
+
let G;
|
|
3007
|
+
e[26] !== N || e[27] !== H ? (G = /* @__PURE__ */ v.jsxs($t, { disablePadding: !0, children: [
|
|
3008
|
+
N,
|
|
3009
|
+
H
|
|
3010
|
+
] }), e[26] = N, e[27] = H, e[28] = G) : G = e[28];
|
|
3011
|
+
let J;
|
|
3012
|
+
return e[29] !== m || e[30] !== F || e[31] !== $ || e[32] !== G ? (J = /* @__PURE__ */ v.jsx(di, { open: F, onClose: m, anchorReference: "anchorPosition", variant: "menu", anchorPosition: $, children: G }), e[29] = m, e[30] = F, e[31] = $, e[32] = G, e[33] = J) : J = e[33], J;
|
|
3013
|
+
}, Pe = 150, Ua = (t) => {
|
|
3014
|
+
const e = Y.c(12), {
|
|
3015
|
+
sx: i,
|
|
2398
3016
|
size: a,
|
|
2399
3017
|
itemBar: n
|
|
2400
|
-
} =
|
|
2401
|
-
fileMetas:
|
|
2402
|
-
} =
|
|
3018
|
+
} = t, {
|
|
3019
|
+
fileMetas: r
|
|
3020
|
+
} = ye();
|
|
2403
3021
|
let p;
|
|
2404
|
-
|
|
3022
|
+
e[0] !== i ? (p = {
|
|
2405
3023
|
overflow: "auto",
|
|
2406
|
-
...
|
|
2407
|
-
},
|
|
3024
|
+
...i
|
|
3025
|
+
}, e[0] = i, e[1] = p) : p = e[1];
|
|
2408
3026
|
let l;
|
|
2409
|
-
if (
|
|
3027
|
+
if (e[2] !== r || e[3] !== n || e[4] !== a) {
|
|
2410
3028
|
let c;
|
|
2411
|
-
|
|
3029
|
+
e[6] !== n || e[7] !== a ? (c = (s) => /* @__PURE__ */ v.jsx(Va, { meta: s, size: a, itemBar: n }, s.id), e[6] = n, e[7] = a, e[8] = c) : c = e[8], l = r.map(c), e[2] = r, e[3] = n, e[4] = a, e[5] = l;
|
|
2412
3030
|
} else
|
|
2413
|
-
l =
|
|
3031
|
+
l = e[5];
|
|
2414
3032
|
let d;
|
|
2415
|
-
return
|
|
2416
|
-
},
|
|
2417
|
-
const
|
|
2418
|
-
meta:
|
|
3033
|
+
return e[9] !== p || e[10] !== l ? (d = /* @__PURE__ */ v.jsx(ke, { direction: "row", spacing: 1, sx: p, children: l }), e[9] = p, e[10] = l, e[11] = d) : d = e[11], d;
|
|
3034
|
+
}, Va = (t) => {
|
|
3035
|
+
const e = Y.c(47), {
|
|
3036
|
+
meta: i,
|
|
2419
3037
|
size: a,
|
|
2420
3038
|
itemBar: n
|
|
2421
|
-
} =
|
|
2422
|
-
setImageId:
|
|
3039
|
+
} = t, {
|
|
3040
|
+
setImageId: r,
|
|
2423
3041
|
actions: p
|
|
2424
|
-
} =
|
|
3042
|
+
} = ye(), [l, d] = je(n === "always"), [c, s] = je(null), {
|
|
2425
3043
|
ref: m,
|
|
2426
3044
|
inView: f
|
|
2427
|
-
} =
|
|
2428
|
-
let
|
|
2429
|
-
|
|
3045
|
+
} = Pi();
|
|
3046
|
+
let y, h;
|
|
3047
|
+
e[0] !== n ? (y = () => {
|
|
2430
3048
|
d(n === "always");
|
|
2431
|
-
},
|
|
2432
|
-
let
|
|
2433
|
-
|
|
2434
|
-
meta:
|
|
2435
|
-
},
|
|
2436
|
-
let
|
|
2437
|
-
|
|
3049
|
+
}, h = [n], e[0] = n, e[1] = y, e[2] = h) : (y = e[1], h = e[2]), ve(y, h);
|
|
3050
|
+
let o;
|
|
3051
|
+
e[3] !== i ? (o = {
|
|
3052
|
+
meta: i
|
|
3053
|
+
}, e[3] = i, e[4] = o) : o = e[4];
|
|
3054
|
+
let b;
|
|
3055
|
+
e[5] !== f ? (b = {
|
|
2438
3056
|
enabled: f
|
|
2439
|
-
},
|
|
3057
|
+
}, e[5] = f, e[6] = b) : b = e[6];
|
|
2440
3058
|
const {
|
|
2441
|
-
data:
|
|
2442
|
-
} =
|
|
2443
|
-
let b;
|
|
2444
|
-
i[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = () => d(!0), i[7] = b) : b = i[7];
|
|
2445
|
-
const k = b;
|
|
3059
|
+
data: _
|
|
3060
|
+
} = Di(o, b);
|
|
2446
3061
|
let D;
|
|
2447
|
-
|
|
2448
|
-
const
|
|
2449
|
-
let
|
|
2450
|
-
|
|
3062
|
+
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = () => d(!0), e[7] = D) : D = e[7];
|
|
3063
|
+
const R = D;
|
|
3064
|
+
let F;
|
|
3065
|
+
e[8] !== n ? (F = () => n !== "always" && d(!1), e[8] = n, e[9] = F) : F = e[9];
|
|
3066
|
+
const $ = F;
|
|
3067
|
+
let N;
|
|
3068
|
+
e[10] !== c ? (N = (w) => {
|
|
2451
3069
|
s(c === null ? {
|
|
2452
|
-
mouseX:
|
|
2453
|
-
mouseY:
|
|
3070
|
+
mouseX: w.clientX,
|
|
3071
|
+
mouseY: w.clientY
|
|
2454
3072
|
} : null), setTimeout(() => d(!0));
|
|
2455
|
-
},
|
|
2456
|
-
const
|
|
2457
|
-
mutate:
|
|
2458
|
-
} =
|
|
2459
|
-
mutate:
|
|
2460
|
-
} =
|
|
2461
|
-
let
|
|
2462
|
-
|
|
2463
|
-
switch (
|
|
3073
|
+
}, e[10] = c, e[11] = N) : N = e[11];
|
|
3074
|
+
const H = N, {
|
|
3075
|
+
mutate: G
|
|
3076
|
+
} = Wt(), {
|
|
3077
|
+
mutate: J
|
|
3078
|
+
} = st();
|
|
3079
|
+
let Z;
|
|
3080
|
+
e[12] !== J || e[13] !== i || e[14] !== G || e[15] !== r ? (Z = () => {
|
|
3081
|
+
switch (i.mediaType) {
|
|
2464
3082
|
case "image":
|
|
2465
|
-
return
|
|
3083
|
+
return r(i.id);
|
|
2466
3084
|
case "application":
|
|
2467
|
-
return
|
|
3085
|
+
return G(i);
|
|
2468
3086
|
case "video":
|
|
2469
|
-
return
|
|
3087
|
+
return G(i);
|
|
2470
3088
|
default:
|
|
2471
|
-
return
|
|
3089
|
+
return J(i);
|
|
2472
3090
|
}
|
|
2473
|
-
},
|
|
2474
|
-
const
|
|
2475
|
-
let
|
|
2476
|
-
|
|
2477
|
-
width:
|
|
2478
|
-
height:
|
|
2479
|
-
},
|
|
2480
|
-
const
|
|
2481
|
-
let
|
|
2482
|
-
|
|
3091
|
+
}, e[12] = J, e[13] = i, e[14] = G, e[15] = r, e[16] = Z) : Z = e[16];
|
|
3092
|
+
const ne = Z, pe = a ?? Pe, oe = a ?? Pe;
|
|
3093
|
+
let q;
|
|
3094
|
+
e[17] !== oe || e[18] !== pe ? (q = {
|
|
3095
|
+
width: pe,
|
|
3096
|
+
height: oe
|
|
3097
|
+
}, e[17] = oe, e[18] = pe, e[19] = q) : q = e[19];
|
|
3098
|
+
const U = "thumbnail-" + i.id, Q = a ?? Pe, te = a ?? Pe;
|
|
3099
|
+
let ie;
|
|
3100
|
+
e[20] !== Q || e[21] !== te ? (ie = {
|
|
2483
3101
|
cursor: "pointer",
|
|
2484
3102
|
objectFit: "contain",
|
|
2485
|
-
width:
|
|
2486
|
-
height:
|
|
2487
|
-
},
|
|
2488
|
-
let
|
|
2489
|
-
|
|
2490
|
-
let
|
|
2491
|
-
|
|
2492
|
-
color:
|
|
2493
|
-
}, onClick:
|
|
2494
|
-
let
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
] }),
|
|
2499
|
-
let
|
|
2500
|
-
|
|
2501
|
-
let
|
|
2502
|
-
return
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
] }),
|
|
2506
|
-
},
|
|
2507
|
-
const
|
|
2508
|
-
sx:
|
|
2509
|
-
} =
|
|
3103
|
+
width: Q,
|
|
3104
|
+
height: te
|
|
3105
|
+
}, e[20] = Q, e[21] = te, e[22] = ie) : ie = e[22];
|
|
3106
|
+
let W;
|
|
3107
|
+
e[23] !== ne || e[24] !== _ || e[25] !== U || e[26] !== ie ? (W = /* @__PURE__ */ v.jsx(ce, { component: "img", src: _, loading: "lazy", alt: U, onClick: ne, sx: ie }), e[23] = ne, e[24] = _, e[25] = U, e[26] = ie, e[27] = W) : W = e[27];
|
|
3108
|
+
let u;
|
|
3109
|
+
e[28] !== p || e[29] !== n || e[30] !== i.fileName || e[31] !== H || e[32] !== l ? (u = n !== "hidden" && l && /* @__PURE__ */ v.jsx(mi, { title: /* @__PURE__ */ v.jsx(ui, { title: i.fileName, children: /* @__PURE__ */ v.jsx(ce, { children: i.fileName }) }), actionIcon: (p?.download !== !1 || p.delete !== !1) && /* @__PURE__ */ v.jsx(lt, { sx: {
|
|
3110
|
+
color: Si[100]
|
|
3111
|
+
}, onClick: H, children: /* @__PURE__ */ v.jsx(Bt, {}) }) }), e[28] = p, e[29] = n, e[30] = i.fileName, e[31] = H, e[32] = l, e[33] = u) : u = e[33];
|
|
3112
|
+
let x;
|
|
3113
|
+
e[34] !== $ || e[35] !== m || e[36] !== q || e[37] !== W || e[38] !== u ? (x = /* @__PURE__ */ v.jsxs(fi, { sx: q, onMouseEnter: R, onMouseLeave: $, ref: m, children: [
|
|
3114
|
+
W,
|
|
3115
|
+
u
|
|
3116
|
+
] }), e[34] = $, e[35] = m, e[36] = q, e[37] = W, e[38] = u, e[39] = x) : x = e[39];
|
|
3117
|
+
let j;
|
|
3118
|
+
e[40] !== p || e[41] !== c || e[42] !== i ? (j = (p?.download !== !1 || p.delete !== !1) && /* @__PURE__ */ v.jsx(ni, { meta: i, menu: c, setMenu: s }), e[40] = p, e[41] = c, e[42] = i, e[43] = j) : j = e[43];
|
|
3119
|
+
let T;
|
|
3120
|
+
return e[44] !== x || e[45] !== j ? (T = /* @__PURE__ */ v.jsxs(ct, { children: [
|
|
3121
|
+
x,
|
|
3122
|
+
j
|
|
3123
|
+
] }), e[44] = x, e[45] = j, e[46] = T) : T = e[46], T;
|
|
3124
|
+
}, Ga = (t) => {
|
|
3125
|
+
const e = Y.c(5), {
|
|
3126
|
+
sx: i
|
|
3127
|
+
} = t, {
|
|
2510
3128
|
fileMetas: a
|
|
2511
|
-
} =
|
|
3129
|
+
} = ye();
|
|
2512
3130
|
let n;
|
|
2513
|
-
|
|
2514
|
-
let
|
|
2515
|
-
return
|
|
2516
|
-
},
|
|
2517
|
-
const
|
|
2518
|
-
meta:
|
|
2519
|
-
} =
|
|
3131
|
+
e[0] !== a ? (n = a.map(Ja), e[0] = a, e[1] = n) : n = e[1];
|
|
3132
|
+
let r;
|
|
3133
|
+
return e[2] !== i || e[3] !== n ? (r = /* @__PURE__ */ v.jsx($t, { dense: !0, sx: i, children: n }), e[2] = i, e[3] = n, e[4] = r) : r = e[4], r;
|
|
3134
|
+
}, Xa = (t) => {
|
|
3135
|
+
const e = Y.c(29), {
|
|
3136
|
+
meta: i
|
|
3137
|
+
} = t, {
|
|
2520
3138
|
setImageId: a,
|
|
2521
3139
|
actions: n
|
|
2522
|
-
} =
|
|
3140
|
+
} = ye(), [r, p] = je(null);
|
|
2523
3141
|
let l;
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
mouseX:
|
|
2527
|
-
mouseY:
|
|
3142
|
+
e[0] !== r ? (l = (N) => {
|
|
3143
|
+
N.stopPropagation(), p(r === null ? {
|
|
3144
|
+
mouseX: N.clientX,
|
|
3145
|
+
mouseY: N.clientY
|
|
2528
3146
|
} : null);
|
|
2529
|
-
},
|
|
3147
|
+
}, e[0] = r, e[1] = l) : l = e[1];
|
|
2530
3148
|
const d = l, {
|
|
2531
3149
|
mutate: c
|
|
2532
|
-
} =
|
|
3150
|
+
} = Wt(), {
|
|
2533
3151
|
mutate: s
|
|
2534
|
-
} =
|
|
3152
|
+
} = st();
|
|
2535
3153
|
let m;
|
|
2536
|
-
|
|
2537
|
-
switch (
|
|
3154
|
+
e[2] !== s || e[3] !== i || e[4] !== c || e[5] !== a ? (m = () => {
|
|
3155
|
+
switch (i.mediaType) {
|
|
2538
3156
|
case "image":
|
|
2539
|
-
return a(
|
|
3157
|
+
return a(i.id);
|
|
2540
3158
|
case "application":
|
|
2541
|
-
return c(
|
|
3159
|
+
return c(i);
|
|
2542
3160
|
case "video":
|
|
2543
|
-
return c(
|
|
3161
|
+
return c(i);
|
|
2544
3162
|
default:
|
|
2545
|
-
return s(
|
|
3163
|
+
return s(i);
|
|
2546
3164
|
}
|
|
2547
|
-
},
|
|
3165
|
+
}, e[2] = s, e[3] = i, e[4] = c, e[5] = a, e[6] = m) : m = e[6];
|
|
2548
3166
|
const f = m;
|
|
2549
|
-
let
|
|
2550
|
-
|
|
2551
|
-
switch (
|
|
3167
|
+
let y;
|
|
3168
|
+
e[7] !== i.mediaType ? (y = () => {
|
|
3169
|
+
switch (i.mediaType) {
|
|
2552
3170
|
case "image":
|
|
2553
|
-
return /* @__PURE__ */
|
|
3171
|
+
return /* @__PURE__ */ v.jsx(qi, {});
|
|
2554
3172
|
case "video":
|
|
2555
|
-
return /* @__PURE__ */
|
|
3173
|
+
return /* @__PURE__ */ v.jsx(Li, {});
|
|
2556
3174
|
default:
|
|
2557
|
-
return /* @__PURE__ */
|
|
3175
|
+
return /* @__PURE__ */ v.jsx(Fi, {});
|
|
2558
3176
|
}
|
|
2559
|
-
},
|
|
2560
|
-
const
|
|
2561
|
-
let
|
|
2562
|
-
|
|
2563
|
-
const
|
|
2564
|
-
let
|
|
2565
|
-
|
|
2566
|
-
let b;
|
|
2567
|
-
i[13] !== n || i[14] !== d ? (b = (n?.download !== !1 || n.delete !== !1) && /* @__PURE__ */ u(Vi, { edge: "end", onClick: d, children: /* @__PURE__ */ u(we, {}) }), i[13] = n, i[14] = d, i[15] = b) : b = i[15];
|
|
2568
|
-
let k;
|
|
2569
|
-
i[16] !== t.id || i[17] !== f || i[18] !== h || i[19] !== w || i[20] !== b ? (k = /* @__PURE__ */ q($i, { onClick: f, children: [
|
|
2570
|
-
h,
|
|
2571
|
-
w,
|
|
2572
|
-
b
|
|
2573
|
-
] }, t.id), i[16] = t.id, i[17] = f, i[18] = h, i[19] = w, i[20] = b, i[21] = k) : k = i[21];
|
|
3177
|
+
}, e[7] = i.mediaType, e[8] = y) : y = e[8];
|
|
3178
|
+
const h = y;
|
|
3179
|
+
let o;
|
|
3180
|
+
e[9] !== h ? (o = /* @__PURE__ */ v.jsx(et, { children: h() }), e[9] = h, e[10] = o) : o = e[10];
|
|
3181
|
+
const b = `${i.fileName}.${i.fileExtension}`;
|
|
3182
|
+
let _;
|
|
3183
|
+
e[11] !== b ? (_ = /* @__PURE__ */ v.jsx(tt, { primary: b }), e[11] = b, e[12] = _) : _ = e[12];
|
|
2574
3184
|
let D;
|
|
2575
|
-
|
|
2576
|
-
let
|
|
2577
|
-
|
|
2578
|
-
|
|
3185
|
+
e[13] !== n || e[14] !== d ? (D = (n?.download !== !1 || n.delete !== !1) && /* @__PURE__ */ v.jsx(lt, { edge: "end", onClick: d, children: /* @__PURE__ */ v.jsx(Bt, {}) }), e[13] = n, e[14] = d, e[15] = D) : D = e[15];
|
|
3186
|
+
let R;
|
|
3187
|
+
e[16] !== i.id || e[17] !== f || e[18] !== o || e[19] !== _ || e[20] !== D ? (R = /* @__PURE__ */ v.jsxs(Qe, { onClick: f, children: [
|
|
3188
|
+
o,
|
|
3189
|
+
_,
|
|
2579
3190
|
D
|
|
2580
|
-
] }), i[
|
|
3191
|
+
] }, i.id), e[16] = i.id, e[17] = f, e[18] = o, e[19] = _, e[20] = D, e[21] = R) : R = e[21];
|
|
3192
|
+
let F;
|
|
3193
|
+
e[22] !== n || e[23] !== r || e[24] !== i ? (F = (n?.download !== !1 || n.delete !== !1) && /* @__PURE__ */ v.jsx(ni, { meta: i, menu: r, setMenu: p }), e[22] = n, e[23] = r, e[24] = i, e[25] = F) : F = e[25];
|
|
3194
|
+
let $;
|
|
3195
|
+
return e[26] !== R || e[27] !== F ? ($ = /* @__PURE__ */ v.jsxs(ct, { children: [
|
|
3196
|
+
R,
|
|
3197
|
+
F
|
|
3198
|
+
] }), e[26] = R, e[27] = F, e[28] = $) : $ = e[28], $;
|
|
2581
3199
|
};
|
|
2582
|
-
function
|
|
2583
|
-
return /* @__PURE__ */
|
|
3200
|
+
function Ja(t) {
|
|
3201
|
+
return /* @__PURE__ */ v.jsx(Xa, { meta: t }, t.id);
|
|
2584
3202
|
}
|
|
2585
|
-
const
|
|
2586
|
-
metaId:
|
|
3203
|
+
const Za = ({
|
|
3204
|
+
metaId: t
|
|
2587
3205
|
}) => {
|
|
2588
3206
|
const {
|
|
2589
|
-
fileMetas:
|
|
2590
|
-
setImageId:
|
|
2591
|
-
} =
|
|
3207
|
+
fileMetas: e,
|
|
3208
|
+
setImageId: i
|
|
3209
|
+
} = ye(), a = e.find((c) => c.id === t), {
|
|
2592
3210
|
data: n
|
|
2593
|
-
} =
|
|
3211
|
+
} = Ai({
|
|
2594
3212
|
meta: a
|
|
2595
3213
|
});
|
|
2596
|
-
|
|
2597
|
-
globalThis.removeEventListener("keydown",
|
|
2598
|
-
}), [
|
|
2599
|
-
const
|
|
2600
|
-
const s =
|
|
3214
|
+
ve(() => (t && globalThis.addEventListener("keydown", r), () => {
|
|
3215
|
+
globalThis.removeEventListener("keydown", r);
|
|
3216
|
+
}), [t]);
|
|
3217
|
+
const r = (c) => {
|
|
3218
|
+
const s = e.filter((f) => f.mediaType === "image"), m = s.findIndex((f) => f.id === t);
|
|
2601
3219
|
switch (c.key) {
|
|
2602
3220
|
case "ArrowLeft":
|
|
2603
3221
|
return p(s, m);
|
|
@@ -2610,220 +3228,220 @@ const ka = ({
|
|
|
2610
3228
|
}, p = (c, s) => {
|
|
2611
3229
|
if (s > 0) {
|
|
2612
3230
|
const m = c[s - 1];
|
|
2613
|
-
|
|
3231
|
+
i(m.id);
|
|
2614
3232
|
}
|
|
2615
3233
|
}, l = (c, s) => {
|
|
2616
3234
|
if (s < c.length - 1) {
|
|
2617
3235
|
const m = c[s + 1];
|
|
2618
|
-
|
|
3236
|
+
i(m.id);
|
|
2619
3237
|
}
|
|
2620
|
-
}, d = () =>
|
|
2621
|
-
return
|
|
2622
|
-
/* @__PURE__ */
|
|
3238
|
+
}, d = () => i("");
|
|
3239
|
+
return t ? /* @__PURE__ */ v.jsxs(vi, { open: !0, onClose: d, maxWidth: "xl", children: [
|
|
3240
|
+
/* @__PURE__ */ v.jsx(ce, { component: "img", src: n, alt: t, sx: {
|
|
2623
3241
|
maxWidth: "100vw",
|
|
2624
3242
|
maxHeight: {
|
|
2625
3243
|
xs: "calc(100vh - 56px)",
|
|
2626
3244
|
sm: "calc(100vh - 64px)"
|
|
2627
3245
|
}
|
|
2628
3246
|
} }),
|
|
2629
|
-
/* @__PURE__ */
|
|
3247
|
+
/* @__PURE__ */ v.jsx(xi, { size: "medium", onClick: d, sx: {
|
|
2630
3248
|
position: "fixed",
|
|
2631
3249
|
top: 8,
|
|
2632
3250
|
right: 8
|
|
2633
|
-
}, children: /* @__PURE__ */
|
|
3251
|
+
}, children: /* @__PURE__ */ v.jsx($i, {}) })
|
|
2634
3252
|
] }) : null;
|
|
2635
|
-
},
|
|
2636
|
-
const
|
|
2637
|
-
subId:
|
|
3253
|
+
}, Sn = (t) => {
|
|
3254
|
+
const e = Y.c(25), {
|
|
3255
|
+
subId: i,
|
|
2638
3256
|
onDelete: a,
|
|
2639
3257
|
actions: n,
|
|
2640
|
-
children:
|
|
2641
|
-
} =
|
|
3258
|
+
children: r
|
|
3259
|
+
} = t;
|
|
2642
3260
|
let p;
|
|
2643
|
-
|
|
2644
|
-
subId:
|
|
2645
|
-
},
|
|
2646
|
-
const l = !!
|
|
3261
|
+
e[0] !== i ? (p = {
|
|
3262
|
+
subId: i
|
|
3263
|
+
}, e[0] = i, e[1] = p) : p = e[1];
|
|
3264
|
+
const l = !!i;
|
|
2647
3265
|
let d;
|
|
2648
|
-
|
|
3266
|
+
e[2] !== l ? (d = {
|
|
2649
3267
|
enabled: l
|
|
2650
|
-
},
|
|
3268
|
+
}, e[2] = l, e[3] = d) : d = e[3];
|
|
2651
3269
|
const {
|
|
2652
3270
|
data: c
|
|
2653
|
-
} =
|
|
3271
|
+
} = Ci(p, d);
|
|
2654
3272
|
let s;
|
|
2655
|
-
|
|
2656
|
-
const m = s, [f,
|
|
2657
|
-
let
|
|
2658
|
-
if (
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
const
|
|
2662
|
-
Grid:
|
|
2663
|
-
List:
|
|
3273
|
+
e[4] !== c ? (s = c === void 0 ? [] : c, e[4] = c, e[5] = s) : s = e[5];
|
|
3274
|
+
const m = s, [f, y] = je("");
|
|
3275
|
+
let h, o, b, _;
|
|
3276
|
+
if (e[6] !== n || e[7] !== r || e[8] !== m || e[9] !== a) {
|
|
3277
|
+
_ = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
3278
|
+
e: {
|
|
3279
|
+
const F = {
|
|
3280
|
+
Grid: Ua,
|
|
3281
|
+
List: Ga
|
|
2664
3282
|
};
|
|
2665
3283
|
if (m.length === 0) {
|
|
2666
|
-
|
|
2667
|
-
break
|
|
3284
|
+
_ = null;
|
|
3285
|
+
break e;
|
|
2668
3286
|
}
|
|
2669
|
-
|
|
3287
|
+
h = ai.Provider, e[14] !== n || e[15] !== m || e[16] !== a ? (o = {
|
|
2670
3288
|
fileMetas: m,
|
|
2671
3289
|
onDelete: a,
|
|
2672
3290
|
actions: n,
|
|
2673
|
-
setImageId:
|
|
2674
|
-
},
|
|
3291
|
+
setImageId: y
|
|
3292
|
+
}, e[14] = n, e[15] = m, e[16] = a, e[17] = o) : o = e[17], b = r(F);
|
|
2675
3293
|
}
|
|
2676
|
-
|
|
3294
|
+
e[6] = n, e[7] = r, e[8] = m, e[9] = a, e[10] = h, e[11] = o, e[12] = b, e[13] = _;
|
|
2677
3295
|
} else
|
|
2678
|
-
|
|
2679
|
-
if (
|
|
2680
|
-
return
|
|
2681
|
-
let
|
|
2682
|
-
|
|
2683
|
-
let
|
|
2684
|
-
return
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
] }),
|
|
2688
|
-
},
|
|
2689
|
-
const
|
|
2690
|
-
params:
|
|
3296
|
+
h = e[10], o = e[11], b = e[12], _ = e[13];
|
|
3297
|
+
if (_ !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
|
|
3298
|
+
return _;
|
|
3299
|
+
let D;
|
|
3300
|
+
e[18] !== f ? (D = /* @__PURE__ */ v.jsx(Za, { metaId: f }), e[18] = f, e[19] = D) : D = e[19];
|
|
3301
|
+
let R;
|
|
3302
|
+
return e[20] !== h || e[21] !== o || e[22] !== b || e[23] !== D ? (R = /* @__PURE__ */ v.jsxs(h, { value: o, children: [
|
|
3303
|
+
b,
|
|
3304
|
+
D
|
|
3305
|
+
] }), e[20] = h, e[21] = o, e[22] = b, e[23] = D, e[24] = R) : R = e[24], R;
|
|
3306
|
+
}, Qa = (t) => Array.isArray(t), Rn = (t) => {
|
|
3307
|
+
const e = Y.c(20), {
|
|
3308
|
+
params: i,
|
|
2691
3309
|
slotProps: a,
|
|
2692
3310
|
getLabel: n
|
|
2693
|
-
} =
|
|
2694
|
-
if (!
|
|
3311
|
+
} = t;
|
|
3312
|
+
if (!i.value)
|
|
2695
3313
|
return null;
|
|
2696
|
-
let
|
|
2697
|
-
|
|
2698
|
-
const p =
|
|
2699
|
-
if (
|
|
3314
|
+
let r;
|
|
3315
|
+
e[0] !== n ? (r = (c) => n ? n(c) : c, e[0] = n, e[1] = r) : r = e[1];
|
|
3316
|
+
const p = r;
|
|
3317
|
+
if (Qa(i.value)) {
|
|
2700
3318
|
let c;
|
|
2701
|
-
|
|
3319
|
+
e[2] !== i.colDef.computedWidth ? (c = {
|
|
2702
3320
|
overflowX: "auto",
|
|
2703
3321
|
height: "100%",
|
|
2704
|
-
width:
|
|
2705
|
-
},
|
|
3322
|
+
width: i.colDef.computedWidth
|
|
3323
|
+
}, e[2] = i.colDef.computedWidth, e[3] = c) : c = e[3];
|
|
2706
3324
|
let s;
|
|
2707
|
-
if (
|
|
3325
|
+
if (e[4] !== p || e[5] !== i.value || e[6] !== a) {
|
|
2708
3326
|
let f;
|
|
2709
|
-
|
|
3327
|
+
e[8] !== p || e[9] !== a ? (f = (y, h) => /* @__PURE__ */ v.jsx(xt, { label: p(y), ...a }, `${h + 1}-chip-input-cell`), e[8] = p, e[9] = a, e[10] = f) : f = e[10], s = i.value.map(f), e[4] = p, e[5] = i.value, e[6] = a, e[7] = s;
|
|
2710
3328
|
} else
|
|
2711
|
-
s =
|
|
3329
|
+
s = e[7];
|
|
2712
3330
|
let m;
|
|
2713
|
-
return
|
|
3331
|
+
return e[11] !== c || e[12] !== s ? (m = /* @__PURE__ */ v.jsx(ke, { direction: "row", alignItems: "center", gap: 1, sx: c, children: s }), e[11] = c, e[12] = s, e[13] = m) : m = e[13], m;
|
|
2714
3332
|
}
|
|
2715
3333
|
let l;
|
|
2716
|
-
|
|
3334
|
+
e[14] !== p || e[15] !== i.value ? (l = p(i.value), e[14] = p, e[15] = i.value, e[16] = l) : l = e[16];
|
|
2717
3335
|
let d;
|
|
2718
|
-
return
|
|
2719
|
-
},
|
|
2720
|
-
const
|
|
2721
|
-
colDef:
|
|
2722
|
-
} =
|
|
3336
|
+
return e[17] !== a || e[18] !== l ? (d = /* @__PURE__ */ v.jsx(xt, { label: l, ...a }), e[17] = a, e[18] = l, e[19] = d) : d = e[19], d;
|
|
3337
|
+
}, Pn = (t) => {
|
|
3338
|
+
const e = Y.c(3), {
|
|
3339
|
+
colDef: i
|
|
3340
|
+
} = t;
|
|
2723
3341
|
let a;
|
|
2724
|
-
|
|
3342
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ v.jsx(Mi, { color: "disabled", fontSize: "small" }), e[0] = a) : a = e[0];
|
|
2725
3343
|
let n;
|
|
2726
|
-
return
|
|
2727
|
-
},
|
|
2728
|
-
const a =
|
|
3344
|
+
return e[1] !== i.headerName ? (n = /* @__PURE__ */ v.jsx(Wi, { endIcon: a, variant: "body2", className: "MuiDataGrid-columnHeaderTitle", children: i.headerName }), e[1] = i.headerName, e[2] = n) : n = e[2], n;
|
|
3345
|
+
}, en = he.forwardRef(function(e, i) {
|
|
3346
|
+
const a = Y.c(3);
|
|
2729
3347
|
let n;
|
|
2730
|
-
return a[0] !==
|
|
2731
|
-
}),
|
|
2732
|
-
const
|
|
2733
|
-
let
|
|
2734
|
-
return
|
|
2735
|
-
},
|
|
2736
|
-
const a =
|
|
3348
|
+
return a[0] !== e || a[1] !== i ? (n = /* @__PURE__ */ v.jsx(gi, { ref: i, component: "a", ...e }), a[0] = e, a[1] = i, a[2] = n) : n = a[2], n;
|
|
3349
|
+
}), tn = Te(en), In = (t) => {
|
|
3350
|
+
const e = Y.c(2);
|
|
3351
|
+
let i;
|
|
3352
|
+
return e[0] !== t ? (i = /* @__PURE__ */ v.jsx(tn, { ...t }), e[0] = t, e[1] = i) : i = e[1], i;
|
|
3353
|
+
}, an = he.forwardRef(function(e, i) {
|
|
3354
|
+
const a = Y.c(3);
|
|
2737
3355
|
let n;
|
|
2738
|
-
return a[0] !==
|
|
2739
|
-
}),
|
|
2740
|
-
const
|
|
2741
|
-
let
|
|
2742
|
-
return
|
|
2743
|
-
},
|
|
2744
|
-
const a =
|
|
3356
|
+
return a[0] !== e || a[1] !== i ? (n = /* @__PURE__ */ v.jsx(Yi, { ref: i, component: "a", ...e }), a[0] = e, a[1] = i, a[2] = n) : n = a[2], n;
|
|
3357
|
+
}), nn = Te(an), zn = (t) => {
|
|
3358
|
+
const e = Y.c(2);
|
|
3359
|
+
let i;
|
|
3360
|
+
return e[0] !== t ? (i = /* @__PURE__ */ v.jsx(nn, { ...t }), e[0] = t, e[1] = i) : i = e[1], i;
|
|
3361
|
+
}, on = he.forwardRef(function(e, i) {
|
|
3362
|
+
const a = Y.c(3);
|
|
2745
3363
|
let n;
|
|
2746
|
-
return a[0] !==
|
|
2747
|
-
}),
|
|
2748
|
-
const
|
|
2749
|
-
let
|
|
2750
|
-
return
|
|
2751
|
-
},
|
|
2752
|
-
const a =
|
|
3364
|
+
return a[0] !== e || a[1] !== i ? (n = /* @__PURE__ */ v.jsx(lt, { ref: i, component: "a", ...e }), a[0] = e, a[1] = i, a[2] = n) : n = a[2], n;
|
|
3365
|
+
}), rn = Te(on), Fn = (t) => {
|
|
3366
|
+
const e = Y.c(2);
|
|
3367
|
+
let i;
|
|
3368
|
+
return e[0] !== t ? (i = /* @__PURE__ */ v.jsx(rn, { ...t }), e[0] = t, e[1] = i) : i = e[1], i;
|
|
3369
|
+
}, pn = he.forwardRef(function(e, i) {
|
|
3370
|
+
const a = Y.c(3);
|
|
2753
3371
|
let n;
|
|
2754
|
-
return a[0] !==
|
|
2755
|
-
}),
|
|
2756
|
-
const
|
|
2757
|
-
let
|
|
2758
|
-
return
|
|
2759
|
-
},
|
|
2760
|
-
const a =
|
|
3372
|
+
return a[0] !== e || a[1] !== i ? (n = /* @__PURE__ */ v.jsx(hi, { ref: i, ...e }), a[0] = e, a[1] = i, a[2] = n) : n = a[2], n;
|
|
3373
|
+
}), ln = Te(pn), qn = (t) => {
|
|
3374
|
+
const e = Y.c(2);
|
|
3375
|
+
let i;
|
|
3376
|
+
return e[0] !== t ? (i = /* @__PURE__ */ v.jsx(ln, { ...t }), e[0] = t, e[1] = i) : i = e[1], i;
|
|
3377
|
+
}, cn = he.forwardRef(function(e, i) {
|
|
3378
|
+
const a = Y.c(3);
|
|
2761
3379
|
let n;
|
|
2762
|
-
return a[0] !==
|
|
2763
|
-
}),
|
|
2764
|
-
const
|
|
2765
|
-
let
|
|
2766
|
-
return
|
|
3380
|
+
return a[0] !== e || a[1] !== i ? (n = /* @__PURE__ */ v.jsx(yi, { ref: i, component: "a", ...e }), a[0] = e, a[1] = i, a[2] = n) : n = a[2], n;
|
|
3381
|
+
}), sn = Te(cn), Ln = (t) => {
|
|
3382
|
+
const e = Y.c(2);
|
|
3383
|
+
let i;
|
|
3384
|
+
return e[0] !== t ? (i = /* @__PURE__ */ v.jsx(sn, { ...t }), e[0] = t, e[1] = i) : i = e[1], i;
|
|
2767
3385
|
};
|
|
2768
|
-
function
|
|
2769
|
-
const
|
|
2770
|
-
t:
|
|
2771
|
-
} =
|
|
2772
|
-
let
|
|
2773
|
-
|
|
3386
|
+
function $n() {
|
|
3387
|
+
const t = Y.c(6), {
|
|
3388
|
+
t: e
|
|
3389
|
+
} = pt();
|
|
3390
|
+
let i;
|
|
3391
|
+
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ v.jsx(xe, { variant: "h3", component: "span", fontWeight: 500, sx: {
|
|
2774
3392
|
lineHeight: 1
|
|
2775
|
-
}, children: "404" }),
|
|
3393
|
+
}, children: "404" }), t[0] = i) : i = t[0];
|
|
2776
3394
|
let a;
|
|
2777
|
-
|
|
3395
|
+
t[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ v.jsx(Mt, { orientation: "vertical", flexItem: !0, sx: {
|
|
2778
3396
|
mx: 3
|
|
2779
|
-
} }),
|
|
3397
|
+
} }), t[1] = a) : a = t[1];
|
|
2780
3398
|
let n;
|
|
2781
|
-
|
|
2782
|
-
let
|
|
2783
|
-
return
|
|
2784
|
-
|
|
3399
|
+
t[2] !== e ? (n = e("Layout.ThisPageCouldNotBeFound"), t[2] = e, t[3] = n) : n = t[3];
|
|
3400
|
+
let r;
|
|
3401
|
+
return t[4] !== n ? (r = /* @__PURE__ */ v.jsx(ce, { height: "100vh", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", textAlign: "center", px: 2, children: /* @__PURE__ */ v.jsxs(ce, { display: "flex", alignItems: "center", mb: 4, children: [
|
|
3402
|
+
i,
|
|
2785
3403
|
a,
|
|
2786
|
-
/* @__PURE__ */
|
|
2787
|
-
] }) }),
|
|
3404
|
+
/* @__PURE__ */ v.jsx(xe, { variant: "h5", component: "span", children: n })
|
|
3405
|
+
] }) }), t[4] = n, t[5] = r) : r = t[5], r;
|
|
2788
3406
|
}
|
|
2789
|
-
const
|
|
2790
|
-
const
|
|
2791
|
-
error:
|
|
2792
|
-
} =
|
|
3407
|
+
const Mn = (t) => {
|
|
3408
|
+
const e = Y.c(9), {
|
|
3409
|
+
error: i
|
|
3410
|
+
} = t;
|
|
2793
3411
|
let a;
|
|
2794
|
-
|
|
3412
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
|
|
2795
3413
|
lineHeight: 1
|
|
2796
|
-
},
|
|
2797
|
-
const n =
|
|
2798
|
-
let
|
|
2799
|
-
|
|
3414
|
+
}, e[0] = a) : a = e[0];
|
|
3415
|
+
const n = i.name || "500";
|
|
3416
|
+
let r;
|
|
3417
|
+
e[1] !== n ? (r = /* @__PURE__ */ v.jsx(xe, { variant: "h3", component: "span", fontWeight: 500, sx: a, children: n }), e[1] = n, e[2] = r) : r = e[2];
|
|
2800
3418
|
let p;
|
|
2801
|
-
|
|
3419
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ v.jsx(Mt, { orientation: "vertical", flexItem: !0, sx: {
|
|
2802
3420
|
mx: 3
|
|
2803
|
-
} }),
|
|
3421
|
+
} }), e[3] = p) : p = e[3];
|
|
2804
3422
|
let l;
|
|
2805
|
-
|
|
3423
|
+
e[4] !== i.message ? (l = /* @__PURE__ */ v.jsx(xe, { variant: "h5", component: "span", children: i.message }), e[4] = i.message, e[5] = l) : l = e[5];
|
|
2806
3424
|
let d;
|
|
2807
|
-
return
|
|
2808
|
-
|
|
3425
|
+
return e[6] !== r || e[7] !== l ? (d = /* @__PURE__ */ v.jsx(ce, { height: "100vh", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", textAlign: "center", px: 2, children: /* @__PURE__ */ v.jsxs(ce, { display: "flex", alignItems: "center", mb: 4, children: [
|
|
3426
|
+
r,
|
|
2809
3427
|
p,
|
|
2810
3428
|
l
|
|
2811
|
-
] }) }),
|
|
3429
|
+
] }) }), e[6] = r, e[7] = l, e[8] = d) : d = e[8], d;
|
|
2812
3430
|
};
|
|
2813
3431
|
export {
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
3432
|
+
Rn as ChipInputCell,
|
|
3433
|
+
Cn as Dropzone,
|
|
3434
|
+
Pn as EditableColumnHeader,
|
|
3435
|
+
Sn as FileViewer,
|
|
3436
|
+
An as Fullscreen,
|
|
3437
|
+
In as RouterButton,
|
|
3438
|
+
Mn as RouterError,
|
|
3439
|
+
zn as RouterGridActionsCellItem,
|
|
3440
|
+
Fn as RouterIconButton,
|
|
3441
|
+
qn as RouterLink,
|
|
3442
|
+
Bn as RouterListItemButton,
|
|
3443
|
+
$n as RouterNotFound,
|
|
3444
|
+
Ln as RouterTab,
|
|
3445
|
+
Wi as TypographyWithIcon
|
|
2828
3446
|
};
|
|
2829
3447
|
//# sourceMappingURL=components.js.map
|