wcz-test 7.2.4 → 7.3.0
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.map +1 -1
- package/dist/DialogsHooks-BZUdpDVJ.js.map +1 -1
- package/dist/FileMeta-CDQ1BQUH.js.map +1 -1
- package/dist/RouterListItemButton-C_jUvB6C.js.map +1 -1
- package/dist/components.js +797 -761
- package/dist/components.js.map +1 -1
- package/dist/hooks.js +4 -4
- package/dist/{i18next-8reizFda.js → i18next-TvJQoHEJ.js} +33 -33
- package/dist/i18next-TvJQoHEJ.js.map +1 -0
- package/dist/{index-wOcJpekI.js → index-CjSQ0_za.js} +6 -6
- package/dist/{index-wOcJpekI.js.map → index-CjSQ0_za.js.map} +1 -1
- package/dist/{index-De6Lo0ff.js → index-D3xlpZgv.js} +427 -406
- package/dist/index-D3xlpZgv.js.map +1 -0
- package/dist/index.js +131 -130
- package/dist/index.js.map +1 -1
- package/dist/lib/auth/msalClient.d.ts +2 -2
- package/dist/manifest.webmanifest +18 -18
- package/dist/middleware/authMiddleware.d.ts +1 -1
- package/dist/middleware.js +31 -32
- package/dist/middleware.js.map +1 -1
- package/dist/models/User.d.ts +0 -1
- package/dist/models.js.map +1 -1
- package/dist/{msalClient-Cem8ZXIU.js → msalClient-BDfKsC3C.js} +3 -4
- package/dist/msalClient-BDfKsC3C.js.map +1 -0
- package/dist/query.js +1 -1
- package/dist/robots.txt +3 -3
- package/dist/{utils-BXxJ2sNo.js → utils-BTQg82mj.js} +24 -24
- package/dist/utils-BTQg82mj.js.map +1 -0
- package/dist/utils.js +4 -4
- package/package.json +16 -15
- package/dist/i18next-8reizFda.js.map +0 -1
- package/dist/index-De6Lo0ff.js.map +0 -1
- package/dist/msalClient-Cem8ZXIU.js.map +0 -1
- package/dist/utils-BXxJ2sNo.js.map +0 -1
package/dist/components.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as g, u as dt } from "./DialogsContext-CGAKEKKW.js";
|
|
2
2
|
import { c as V } from "./compiler-runtime-BNHg76kC.js";
|
|
3
|
-
import { Typography as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { g as
|
|
7
|
-
import { useMutation as
|
|
8
|
-
import
|
|
9
|
-
import { grey as
|
|
10
|
-
import { u as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import { createLink as
|
|
19
|
-
import { GridActionsCellItem as
|
|
20
|
-
import { R as
|
|
21
|
-
const
|
|
3
|
+
import { Typography as be, Stack as _e, Box as me, useTheme as ui, Paper as fi, ListItemButton as nt, ListItemIcon as at, ListItemText as ot, List as Bt, Menu as vi, ImageListItemBar as xi, IconButton as mt, Tooltip as gi, ImageListItem as hi, Dialog as yi, Fab as bi, Chip as yt, Button as wi, Link as ji, Tab as ki, Divider as Ht } from "@mui/material";
|
|
4
|
+
import ke, { useRef as ye, useState as Oe, useEffectEvent as Ei, useEffect as ve, useMemo as he, useReducer as Di, useCallback as pe, forwardRef as Ti, useImperativeHandle as _i, Fragment as ut, createContext as Oi, useContext as Si } from "react";
|
|
5
|
+
import Ci from "@mui/icons-material/CloudUpload";
|
|
6
|
+
import { g as Gt, q as ce } from "./index-CjSQ0_za.js";
|
|
7
|
+
import { useMutation as we, useQueryClient as Nt, useQuery as ft } from "@tanstack/react-query";
|
|
8
|
+
import Kt from "@mui/icons-material/MoreVert";
|
|
9
|
+
import { grey as Ai } from "@mui/material/colors";
|
|
10
|
+
import { u as Pi, a as Ri } from "./DialogsHooks-BZUdpDVJ.js";
|
|
11
|
+
import zi from "@mui/icons-material/Delete";
|
|
12
|
+
import Ii from "@mui/icons-material/FileDownload";
|
|
13
|
+
import Fi from "@mui/icons-material/AttachFile";
|
|
14
|
+
import $i from "@mui/icons-material/Image";
|
|
15
|
+
import Mi from "@mui/icons-material/SmartDisplay";
|
|
16
|
+
import qi from "@mui/icons-material/Close";
|
|
17
|
+
import Li from "@mui/icons-material/Edit";
|
|
18
|
+
import { createLink as Ce } from "@tanstack/react-router";
|
|
19
|
+
import { GridActionsCellItem as Wi } from "@mui/x-data-grid-premium";
|
|
20
|
+
import { R as Ha } from "./RouterListItemButton-C_jUvB6C.js";
|
|
21
|
+
const Yi = (t) => {
|
|
22
22
|
const e = V.c(22);
|
|
23
23
|
let i, n, a, o, r;
|
|
24
24
|
e[0] !== t ? ({
|
|
@@ -48,23 +48,23 @@ const Li = (t) => {
|
|
|
48
48
|
...r
|
|
49
49
|
}, e[7] = r, e[8] = l) : l = e[8];
|
|
50
50
|
let c;
|
|
51
|
-
e[9] !== o ? (c = o && /* @__PURE__ */
|
|
51
|
+
e[9] !== o ? (c = o && /* @__PURE__ */ g.jsx(_e, { component: "span", sx: s, children: o }), e[9] = o, e[10] = c) : c = e[10];
|
|
52
52
|
let d;
|
|
53
53
|
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
|
|
54
54
|
display: "inline",
|
|
55
55
|
lineHeight: "inherit"
|
|
56
56
|
}, e[11] = d) : d = e[11];
|
|
57
|
-
let
|
|
58
|
-
e[12] !== i ? (
|
|
57
|
+
let f;
|
|
58
|
+
e[12] !== i ? (f = /* @__PURE__ */ g.jsx(_e, { component: "span", sx: d, children: i }), e[12] = i, e[13] = f) : f = e[13];
|
|
59
59
|
let b;
|
|
60
|
-
e[14] !== n ? (b = n && /* @__PURE__ */
|
|
60
|
+
e[14] !== n ? (b = n && /* @__PURE__ */ g.jsx(_e, { component: "span", sx: s, children: n }), e[14] = n, e[15] = b) : b = e[15];
|
|
61
61
|
let w;
|
|
62
|
-
return e[16] !== a || e[17] !== l || e[18] !== c || e[19] !==
|
|
62
|
+
return e[16] !== a || e[17] !== l || e[18] !== c || e[19] !== f || e[20] !== b ? (w = /* @__PURE__ */ g.jsxs(be, { component: "span", sx: l, gap: 1, ...a, children: [
|
|
63
63
|
c,
|
|
64
|
-
|
|
64
|
+
f,
|
|
65
65
|
b
|
|
66
|
-
] }), e[16] = a, e[17] = l, e[18] = c, e[19] =
|
|
67
|
-
},
|
|
66
|
+
] }), e[16] = a, e[17] = l, e[18] = c, e[19] = f, e[20] = b, e[21] = w) : w = e[21], w;
|
|
67
|
+
}, Ca = (t) => {
|
|
68
68
|
const e = V.c(15);
|
|
69
69
|
let i, n, a;
|
|
70
70
|
e[0] !== t ? ({
|
|
@@ -72,7 +72,7 @@ const Li = (t) => {
|
|
|
72
72
|
sx: a,
|
|
73
73
|
...n
|
|
74
74
|
} = t, e[0] = t, e[1] = i, e[2] = n, e[3] = a) : (i = e[1], n = e[2], a = e[3]);
|
|
75
|
-
const o =
|
|
75
|
+
const o = ye(null), [r, p] = Oe();
|
|
76
76
|
let s;
|
|
77
77
|
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = () => {
|
|
78
78
|
if (!o.current)
|
|
@@ -80,7 +80,7 @@ const Li = (t) => {
|
|
|
80
80
|
const w = Math.ceil(o.current.getBoundingClientRect().top), y = Math.max(0, window.innerHeight - w);
|
|
81
81
|
p(y);
|
|
82
82
|
}, e[4] = s) : s = e[4];
|
|
83
|
-
const l =
|
|
83
|
+
const l = Ei(s);
|
|
84
84
|
let c;
|
|
85
85
|
e[5] !== l ? (c = () => {
|
|
86
86
|
const w = o.current;
|
|
@@ -93,29 +93,29 @@ const Li = (t) => {
|
|
|
93
93
|
};
|
|
94
94
|
}, e[5] = l, e[6] = c) : c = e[6];
|
|
95
95
|
let d;
|
|
96
|
-
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = [], e[7] = d) : d = e[7],
|
|
97
|
-
let
|
|
98
|
-
e[8] !== a ? (
|
|
96
|
+
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = [], e[7] = d) : d = e[7], ve(c, d);
|
|
97
|
+
let f;
|
|
98
|
+
e[8] !== a ? (f = {
|
|
99
99
|
display: "flex",
|
|
100
100
|
flexDirection: "column",
|
|
101
101
|
minHeight: 0,
|
|
102
102
|
width: "100%",
|
|
103
103
|
overflow: "auto",
|
|
104
104
|
...a
|
|
105
|
-
}, e[8] = a, e[9] =
|
|
105
|
+
}, e[8] = a, e[9] = f) : f = e[9];
|
|
106
106
|
let b;
|
|
107
|
-
return e[10] !== i || e[11] !== r || e[12] !== n || e[13] !==
|
|
107
|
+
return e[10] !== i || e[11] !== r || e[12] !== n || e[13] !== f ? (b = /* @__PURE__ */ g.jsx(me, { ref: o, sx: f, height: r, ...n, children: i }), e[10] = i, e[11] = r, e[12] = n, e[13] = f, e[14] = b) : b = e[14], b;
|
|
108
108
|
};
|
|
109
|
-
var
|
|
110
|
-
var
|
|
111
|
-
function
|
|
112
|
-
if (
|
|
113
|
-
|
|
114
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, i = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, r = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, p = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, s = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, l = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, c = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, d = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113,
|
|
115
|
-
function
|
|
109
|
+
var ze = { exports: {} }, Ie = { exports: {} }, M = {};
|
|
110
|
+
var bt;
|
|
111
|
+
function Bi() {
|
|
112
|
+
if (bt) return M;
|
|
113
|
+
bt = 1;
|
|
114
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, i = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, r = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, p = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, s = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, l = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, c = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, d = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, f = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, b = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, w = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, y = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, E = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, A = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, R = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
115
|
+
function D(u) {
|
|
116
116
|
if (typeof u == "object" && u !== null) {
|
|
117
|
-
var
|
|
118
|
-
switch (
|
|
117
|
+
var H = u.$$typeof;
|
|
118
|
+
switch (H) {
|
|
119
119
|
case e:
|
|
120
120
|
switch (u = u.type, u) {
|
|
121
121
|
case s:
|
|
@@ -134,137 +134,137 @@ function Wi() {
|
|
|
134
134
|
case r:
|
|
135
135
|
return u;
|
|
136
136
|
default:
|
|
137
|
-
return
|
|
137
|
+
return H;
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
case i:
|
|
141
|
-
return
|
|
141
|
+
return H;
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
function P(u) {
|
|
146
|
-
return
|
|
146
|
+
return D(u) === l;
|
|
147
147
|
}
|
|
148
148
|
return M.AsyncMode = s, M.ConcurrentMode = l, M.ContextConsumer = p, M.ContextProvider = r, M.Element = e, M.ForwardRef = c, M.Fragment = n, M.Lazy = w, M.Memo = b, M.Portal = i, M.Profiler = o, M.StrictMode = a, M.Suspense = d, M.isAsyncMode = function(u) {
|
|
149
|
-
return P(u) ||
|
|
149
|
+
return P(u) || D(u) === s;
|
|
150
150
|
}, M.isConcurrentMode = P, M.isContextConsumer = function(u) {
|
|
151
|
-
return
|
|
151
|
+
return D(u) === p;
|
|
152
152
|
}, M.isContextProvider = function(u) {
|
|
153
|
-
return
|
|
153
|
+
return D(u) === r;
|
|
154
154
|
}, M.isElement = function(u) {
|
|
155
155
|
return typeof u == "object" && u !== null && u.$$typeof === e;
|
|
156
156
|
}, M.isForwardRef = function(u) {
|
|
157
|
-
return
|
|
157
|
+
return D(u) === c;
|
|
158
158
|
}, M.isFragment = function(u) {
|
|
159
|
-
return
|
|
159
|
+
return D(u) === n;
|
|
160
160
|
}, M.isLazy = function(u) {
|
|
161
|
-
return
|
|
161
|
+
return D(u) === w;
|
|
162
162
|
}, M.isMemo = function(u) {
|
|
163
|
-
return
|
|
163
|
+
return D(u) === b;
|
|
164
164
|
}, M.isPortal = function(u) {
|
|
165
|
-
return
|
|
165
|
+
return D(u) === i;
|
|
166
166
|
}, M.isProfiler = function(u) {
|
|
167
|
-
return
|
|
167
|
+
return D(u) === o;
|
|
168
168
|
}, M.isStrictMode = function(u) {
|
|
169
|
-
return
|
|
169
|
+
return D(u) === a;
|
|
170
170
|
}, M.isSuspense = function(u) {
|
|
171
|
-
return
|
|
171
|
+
return D(u) === d;
|
|
172
172
|
}, M.isValidElementType = function(u) {
|
|
173
|
-
return typeof u == "string" || typeof u == "function" || u === n || u === l || u === o || u === a || u === d || u ===
|
|
174
|
-
}, M.typeOf =
|
|
173
|
+
return typeof u == "string" || typeof u == "function" || u === n || u === l || u === o || u === a || u === d || u === f || typeof u == "object" && u !== null && (u.$$typeof === w || u.$$typeof === b || u.$$typeof === r || u.$$typeof === p || u.$$typeof === c || u.$$typeof === E || u.$$typeof === A || u.$$typeof === R || u.$$typeof === y);
|
|
174
|
+
}, M.typeOf = D, M;
|
|
175
175
|
}
|
|
176
176
|
var q = {};
|
|
177
|
-
var
|
|
178
|
-
function
|
|
179
|
-
return
|
|
180
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, i = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, r = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, p = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, s = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, l = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, c = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, d = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113,
|
|
181
|
-
function
|
|
182
|
-
return typeof
|
|
183
|
-
|
|
184
|
-
}
|
|
185
|
-
function P(
|
|
186
|
-
if (typeof
|
|
187
|
-
var
|
|
188
|
-
switch (
|
|
177
|
+
var wt;
|
|
178
|
+
function Hi() {
|
|
179
|
+
return wt || (wt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
180
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, i = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, n = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, a = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, o = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, r = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, p = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, s = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, l = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, c = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, d = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, f = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, b = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, w = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, y = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, E = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, A = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, R = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
181
|
+
function D(v) {
|
|
182
|
+
return typeof v == "string" || typeof v == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
183
|
+
v === n || v === l || v === o || v === a || v === d || v === f || typeof v == "object" && v !== null && (v.$$typeof === w || v.$$typeof === b || v.$$typeof === r || v.$$typeof === p || v.$$typeof === c || v.$$typeof === E || v.$$typeof === A || v.$$typeof === R || v.$$typeof === y);
|
|
184
|
+
}
|
|
185
|
+
function P(v) {
|
|
186
|
+
if (typeof v == "object" && v !== null) {
|
|
187
|
+
var te = v.$$typeof;
|
|
188
|
+
switch (te) {
|
|
189
189
|
case e:
|
|
190
|
-
var
|
|
191
|
-
switch (
|
|
190
|
+
var ue = v.type;
|
|
191
|
+
switch (ue) {
|
|
192
192
|
case s:
|
|
193
193
|
case l:
|
|
194
194
|
case n:
|
|
195
195
|
case o:
|
|
196
196
|
case a:
|
|
197
197
|
case d:
|
|
198
|
-
return
|
|
198
|
+
return ue;
|
|
199
199
|
default:
|
|
200
|
-
var
|
|
201
|
-
switch (
|
|
200
|
+
var De = ue && ue.$$typeof;
|
|
201
|
+
switch (De) {
|
|
202
202
|
case p:
|
|
203
203
|
case c:
|
|
204
204
|
case w:
|
|
205
205
|
case b:
|
|
206
206
|
case r:
|
|
207
|
-
return
|
|
207
|
+
return De;
|
|
208
208
|
default:
|
|
209
|
-
return
|
|
209
|
+
return te;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
case i:
|
|
213
|
-
return
|
|
213
|
+
return te;
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
var u = s,
|
|
218
|
-
function
|
|
219
|
-
return re || (re = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), m(
|
|
217
|
+
var u = s, H = l, $ = p, G = r, B = e, N = c, Z = n, oe = w, ae = b, W = i, J = o, ne = a, ee = d, re = !1;
|
|
218
|
+
function L(v) {
|
|
219
|
+
return re || (re = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), m(v) || P(v) === s;
|
|
220
220
|
}
|
|
221
|
-
function m(
|
|
222
|
-
return P(
|
|
221
|
+
function m(v) {
|
|
222
|
+
return P(v) === l;
|
|
223
223
|
}
|
|
224
|
-
function h(
|
|
225
|
-
return P(
|
|
224
|
+
function h(v) {
|
|
225
|
+
return P(v) === p;
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
return P(
|
|
227
|
+
function _(v) {
|
|
228
|
+
return P(v) === r;
|
|
229
229
|
}
|
|
230
|
-
function
|
|
231
|
-
return typeof
|
|
230
|
+
function C(v) {
|
|
231
|
+
return typeof v == "object" && v !== null && v.$$typeof === e;
|
|
232
232
|
}
|
|
233
|
-
function j(
|
|
234
|
-
return P(
|
|
233
|
+
function j(v) {
|
|
234
|
+
return P(v) === c;
|
|
235
235
|
}
|
|
236
|
-
function
|
|
237
|
-
return P(
|
|
236
|
+
function O(v) {
|
|
237
|
+
return P(v) === n;
|
|
238
238
|
}
|
|
239
|
-
function
|
|
240
|
-
return P(
|
|
239
|
+
function S(v) {
|
|
240
|
+
return P(v) === w;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
243
|
-
return P(
|
|
242
|
+
function T(v) {
|
|
243
|
+
return P(v) === b;
|
|
244
244
|
}
|
|
245
|
-
function z(
|
|
246
|
-
return P(
|
|
245
|
+
function z(v) {
|
|
246
|
+
return P(v) === i;
|
|
247
247
|
}
|
|
248
|
-
function F(
|
|
249
|
-
return P(
|
|
248
|
+
function F(v) {
|
|
249
|
+
return P(v) === o;
|
|
250
250
|
}
|
|
251
|
-
function I(
|
|
252
|
-
return P(
|
|
251
|
+
function I(v) {
|
|
252
|
+
return P(v) === a;
|
|
253
253
|
}
|
|
254
|
-
function
|
|
255
|
-
return P(
|
|
254
|
+
function Q(v) {
|
|
255
|
+
return P(v) === d;
|
|
256
256
|
}
|
|
257
|
-
q.AsyncMode = u, q.ConcurrentMode =
|
|
257
|
+
q.AsyncMode = u, q.ConcurrentMode = H, q.ContextConsumer = $, q.ContextProvider = G, q.Element = B, q.ForwardRef = N, q.Fragment = Z, q.Lazy = oe, q.Memo = ae, q.Portal = W, q.Profiler = J, q.StrictMode = ne, q.Suspense = ee, q.isAsyncMode = L, q.isConcurrentMode = m, q.isContextConsumer = h, q.isContextProvider = _, q.isElement = C, q.isForwardRef = j, q.isFragment = O, q.isLazy = S, q.isMemo = T, q.isPortal = z, q.isProfiler = F, q.isStrictMode = I, q.isSuspense = Q, q.isValidElementType = D, q.typeOf = P;
|
|
258
258
|
})()), q;
|
|
259
259
|
}
|
|
260
|
-
var
|
|
261
|
-
function
|
|
262
|
-
return
|
|
260
|
+
var jt;
|
|
261
|
+
function Ut() {
|
|
262
|
+
return jt || (jt = 1, process.env.NODE_ENV === "production" ? Ie.exports = Bi() : Ie.exports = Hi()), Ie.exports;
|
|
263
263
|
}
|
|
264
|
-
var
|
|
265
|
-
function
|
|
266
|
-
if (
|
|
267
|
-
|
|
264
|
+
var Ve, kt;
|
|
265
|
+
function Gi() {
|
|
266
|
+
if (kt) return Ve;
|
|
267
|
+
kt = 1;
|
|
268
268
|
var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
|
|
269
269
|
function n(o) {
|
|
270
270
|
if (o == null)
|
|
@@ -293,39 +293,39 @@ function Bi() {
|
|
|
293
293
|
return !1;
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
|
-
return
|
|
296
|
+
return Ve = a() ? Object.assign : function(o, r) {
|
|
297
297
|
for (var p, s = n(o), l, c = 1; c < arguments.length; c++) {
|
|
298
298
|
p = Object(arguments[c]);
|
|
299
299
|
for (var d in p)
|
|
300
300
|
e.call(p, d) && (s[d] = p[d]);
|
|
301
301
|
if (t) {
|
|
302
302
|
l = t(p);
|
|
303
|
-
for (var
|
|
304
|
-
i.call(p, l[
|
|
303
|
+
for (var f = 0; f < l.length; f++)
|
|
304
|
+
i.call(p, l[f]) && (s[l[f]] = p[l[f]]);
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
307
|
return s;
|
|
308
|
-
},
|
|
308
|
+
}, Ve;
|
|
309
309
|
}
|
|
310
|
-
var Xe,
|
|
310
|
+
var Xe, Et;
|
|
311
311
|
function vt() {
|
|
312
|
-
if (
|
|
313
|
-
|
|
312
|
+
if (Et) return Xe;
|
|
313
|
+
Et = 1;
|
|
314
314
|
var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
315
315
|
return Xe = t, Xe;
|
|
316
316
|
}
|
|
317
|
-
var Je,
|
|
318
|
-
function
|
|
319
|
-
return
|
|
317
|
+
var Je, Dt;
|
|
318
|
+
function Vt() {
|
|
319
|
+
return Dt || (Dt = 1, Je = Function.call.bind(Object.prototype.hasOwnProperty)), Je;
|
|
320
320
|
}
|
|
321
321
|
var Qe, Tt;
|
|
322
|
-
function
|
|
322
|
+
function Ni() {
|
|
323
323
|
if (Tt) return Qe;
|
|
324
324
|
Tt = 1;
|
|
325
325
|
var t = function() {
|
|
326
326
|
};
|
|
327
327
|
if (process.env.NODE_ENV !== "production") {
|
|
328
|
-
var e = /* @__PURE__ */ vt(), i = {}, n = /* @__PURE__ */
|
|
328
|
+
var e = /* @__PURE__ */ vt(), i = {}, n = /* @__PURE__ */ Vt();
|
|
329
329
|
t = function(o) {
|
|
330
330
|
var r = "Warning: " + o;
|
|
331
331
|
typeof console < "u" && console.error(r);
|
|
@@ -342,10 +342,10 @@ function Hi() {
|
|
|
342
342
|
var d;
|
|
343
343
|
try {
|
|
344
344
|
if (typeof o[c] != "function") {
|
|
345
|
-
var
|
|
345
|
+
var f = Error(
|
|
346
346
|
(s || "React class") + ": " + p + " type `" + c + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[c] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
347
347
|
);
|
|
348
|
-
throw
|
|
348
|
+
throw f.name = "Invariant Violation", f;
|
|
349
349
|
}
|
|
350
350
|
d = o[c](r, c, s, p, null, e);
|
|
351
351
|
} catch (w) {
|
|
@@ -368,10 +368,10 @@ function Hi() {
|
|
|
368
368
|
}, Qe = a, Qe;
|
|
369
369
|
}
|
|
370
370
|
var Ze, _t;
|
|
371
|
-
function
|
|
371
|
+
function Ki() {
|
|
372
372
|
if (_t) return Ze;
|
|
373
373
|
_t = 1;
|
|
374
|
-
var t =
|
|
374
|
+
var t = Ut(), e = Gi(), i = /* @__PURE__ */ vt(), n = /* @__PURE__ */ Vt(), a = /* @__PURE__ */ Ni(), o = function() {
|
|
375
375
|
};
|
|
376
376
|
process.env.NODE_ENV !== "production" && (o = function(p) {
|
|
377
377
|
var s = "Warning: " + p;
|
|
@@ -391,7 +391,7 @@ function Ni() {
|
|
|
391
391
|
if (typeof h == "function")
|
|
392
392
|
return h;
|
|
393
393
|
}
|
|
394
|
-
var
|
|
394
|
+
var f = "<<anonymous>>", b = {
|
|
395
395
|
array: A("array"),
|
|
396
396
|
bigint: A("bigint"),
|
|
397
397
|
bool: A("boolean"),
|
|
@@ -401,16 +401,16 @@ function Ni() {
|
|
|
401
401
|
string: A("string"),
|
|
402
402
|
symbol: A("symbol"),
|
|
403
403
|
any: R(),
|
|
404
|
-
arrayOf:
|
|
404
|
+
arrayOf: D,
|
|
405
405
|
element: P(),
|
|
406
406
|
elementType: u(),
|
|
407
|
-
instanceOf:
|
|
407
|
+
instanceOf: H,
|
|
408
408
|
node: N(),
|
|
409
|
-
objectOf:
|
|
409
|
+
objectOf: G,
|
|
410
410
|
oneOf: $,
|
|
411
|
-
oneOfType:
|
|
412
|
-
shape:
|
|
413
|
-
exact:
|
|
411
|
+
oneOfType: B,
|
|
412
|
+
shape: oe,
|
|
413
|
+
exact: ae
|
|
414
414
|
};
|
|
415
415
|
function w(m, h) {
|
|
416
416
|
return m === h ? m !== 0 || 1 / m === 1 / h : m !== m && h !== h;
|
|
@@ -421,34 +421,34 @@ function Ni() {
|
|
|
421
421
|
y.prototype = Error.prototype;
|
|
422
422
|
function E(m) {
|
|
423
423
|
if (process.env.NODE_ENV !== "production")
|
|
424
|
-
var h = {},
|
|
425
|
-
function
|
|
426
|
-
if (z = z ||
|
|
424
|
+
var h = {}, _ = 0;
|
|
425
|
+
function C(O, S, T, z, F, I, Q) {
|
|
426
|
+
if (z = z || f, I = I || T, Q !== i) {
|
|
427
427
|
if (s) {
|
|
428
|
-
var
|
|
428
|
+
var v = new Error(
|
|
429
429
|
"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"
|
|
430
430
|
);
|
|
431
|
-
throw
|
|
431
|
+
throw v.name = "Invariant Violation", v;
|
|
432
432
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
433
|
-
var
|
|
434
|
-
!h[
|
|
435
|
-
|
|
433
|
+
var te = z + ":" + T;
|
|
434
|
+
!h[te] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
435
|
+
_ < 3 && (o(
|
|
436
436
|
"You are manually calling a React.PropTypes validation function for the `" + I + "` prop on `" + z + "`. 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."
|
|
437
|
-
), h[
|
|
437
|
+
), h[te] = !0, _++);
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
|
-
return
|
|
440
|
+
return S[T] == null ? O ? S[T] === null ? new y("The " + F + " `" + I + "` is marked as required " + ("in `" + z + "`, but its value is `null`.")) : new y("The " + F + " `" + I + "` is marked as required in " + ("`" + z + "`, but its value is `undefined`.")) : null : m(S, T, z, F, I);
|
|
441
441
|
}
|
|
442
|
-
var j =
|
|
443
|
-
return j.isRequired =
|
|
442
|
+
var j = C.bind(null, !1);
|
|
443
|
+
return j.isRequired = C.bind(null, !0), j;
|
|
444
444
|
}
|
|
445
445
|
function A(m) {
|
|
446
|
-
function h(
|
|
447
|
-
var z =
|
|
446
|
+
function h(_, C, j, O, S, T) {
|
|
447
|
+
var z = _[C], F = ne(z);
|
|
448
448
|
if (F !== m) {
|
|
449
449
|
var I = ee(z);
|
|
450
450
|
return new y(
|
|
451
|
-
"Invalid " +
|
|
451
|
+
"Invalid " + O + " `" + S + "` of type " + ("`" + I + "` supplied to `" + j + "`, expected ") + ("`" + m + "`."),
|
|
452
452
|
{ expectedType: m }
|
|
453
453
|
);
|
|
454
454
|
}
|
|
@@ -459,17 +459,17 @@ function Ni() {
|
|
|
459
459
|
function R() {
|
|
460
460
|
return E(r);
|
|
461
461
|
}
|
|
462
|
-
function
|
|
463
|
-
function h(
|
|
462
|
+
function D(m) {
|
|
463
|
+
function h(_, C, j, O, S) {
|
|
464
464
|
if (typeof m != "function")
|
|
465
|
-
return new y("Property `" +
|
|
466
|
-
var
|
|
467
|
-
if (!Array.isArray(
|
|
468
|
-
var z =
|
|
469
|
-
return new y("Invalid " +
|
|
465
|
+
return new y("Property `" + S + "` of component `" + j + "` has invalid PropType notation inside arrayOf.");
|
|
466
|
+
var T = _[C];
|
|
467
|
+
if (!Array.isArray(T)) {
|
|
468
|
+
var z = ne(T);
|
|
469
|
+
return new y("Invalid " + O + " `" + S + "` of type " + ("`" + z + "` supplied to `" + j + "`, expected an array."));
|
|
470
470
|
}
|
|
471
|
-
for (var F = 0; F <
|
|
472
|
-
var I = m(
|
|
471
|
+
for (var F = 0; F < T.length; F++) {
|
|
472
|
+
var I = m(T, F, j, O, S + "[" + F + "]", i);
|
|
473
473
|
if (I instanceof Error)
|
|
474
474
|
return I;
|
|
475
475
|
}
|
|
@@ -478,32 +478,32 @@ function Ni() {
|
|
|
478
478
|
return E(h);
|
|
479
479
|
}
|
|
480
480
|
function P() {
|
|
481
|
-
function m(h,
|
|
482
|
-
var
|
|
483
|
-
if (!p(
|
|
484
|
-
var
|
|
485
|
-
return new y("Invalid " + j + " `" +
|
|
481
|
+
function m(h, _, C, j, O) {
|
|
482
|
+
var S = h[_];
|
|
483
|
+
if (!p(S)) {
|
|
484
|
+
var T = ne(S);
|
|
485
|
+
return new y("Invalid " + j + " `" + O + "` of type " + ("`" + T + "` supplied to `" + C + "`, expected a single ReactElement."));
|
|
486
486
|
}
|
|
487
487
|
return null;
|
|
488
488
|
}
|
|
489
489
|
return E(m);
|
|
490
490
|
}
|
|
491
491
|
function u() {
|
|
492
|
-
function m(h,
|
|
493
|
-
var
|
|
494
|
-
if (!t.isValidElementType(
|
|
495
|
-
var
|
|
496
|
-
return new y("Invalid " + j + " `" +
|
|
492
|
+
function m(h, _, C, j, O) {
|
|
493
|
+
var S = h[_];
|
|
494
|
+
if (!t.isValidElementType(S)) {
|
|
495
|
+
var T = ne(S);
|
|
496
|
+
return new y("Invalid " + j + " `" + O + "` of type " + ("`" + T + "` supplied to `" + C + "`, expected a single ReactElement type."));
|
|
497
497
|
}
|
|
498
498
|
return null;
|
|
499
499
|
}
|
|
500
500
|
return E(m);
|
|
501
501
|
}
|
|
502
|
-
function
|
|
503
|
-
function h(
|
|
504
|
-
if (!(
|
|
505
|
-
var
|
|
506
|
-
return new y("Invalid " +
|
|
502
|
+
function H(m) {
|
|
503
|
+
function h(_, C, j, O, S) {
|
|
504
|
+
if (!(_[C] instanceof m)) {
|
|
505
|
+
var T = m.name || f, z = L(_[C]);
|
|
506
|
+
return new y("Invalid " + O + " `" + S + "` of type " + ("`" + z + "` supplied to `" + j + "`, expected ") + ("instance of `" + T + "`."));
|
|
507
507
|
}
|
|
508
508
|
return null;
|
|
509
509
|
}
|
|
@@ -514,28 +514,28 @@ function Ni() {
|
|
|
514
514
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
|
|
515
515
|
"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])."
|
|
516
516
|
) : o("Invalid argument supplied to oneOf, expected an array.")), r;
|
|
517
|
-
function h(
|
|
518
|
-
for (var
|
|
519
|
-
if (w(
|
|
517
|
+
function h(_, C, j, O, S) {
|
|
518
|
+
for (var T = _[C], z = 0; z < m.length; z++)
|
|
519
|
+
if (w(T, m[z]))
|
|
520
520
|
return null;
|
|
521
|
-
var F = JSON.stringify(m, function(
|
|
522
|
-
var
|
|
523
|
-
return
|
|
521
|
+
var F = JSON.stringify(m, function(Q, v) {
|
|
522
|
+
var te = ee(v);
|
|
523
|
+
return te === "symbol" ? String(v) : v;
|
|
524
524
|
});
|
|
525
|
-
return new y("Invalid " +
|
|
525
|
+
return new y("Invalid " + O + " `" + S + "` of value `" + String(T) + "` " + ("supplied to `" + j + "`, expected one of " + F + "."));
|
|
526
526
|
}
|
|
527
527
|
return E(h);
|
|
528
528
|
}
|
|
529
|
-
function
|
|
530
|
-
function h(
|
|
529
|
+
function G(m) {
|
|
530
|
+
function h(_, C, j, O, S) {
|
|
531
531
|
if (typeof m != "function")
|
|
532
|
-
return new y("Property `" +
|
|
533
|
-
var
|
|
532
|
+
return new y("Property `" + S + "` of component `" + j + "` has invalid PropType notation inside objectOf.");
|
|
533
|
+
var T = _[C], z = ne(T);
|
|
534
534
|
if (z !== "object")
|
|
535
|
-
return new y("Invalid " +
|
|
536
|
-
for (var F in
|
|
537
|
-
if (n(
|
|
538
|
-
var I = m(
|
|
535
|
+
return new y("Invalid " + O + " `" + S + "` of type " + ("`" + z + "` supplied to `" + j + "`, expected an object."));
|
|
536
|
+
for (var F in T)
|
|
537
|
+
if (n(T, F)) {
|
|
538
|
+
var I = m(T, F, j, O, S + "." + F, i);
|
|
539
539
|
if (I instanceof Error)
|
|
540
540
|
return I;
|
|
541
541
|
}
|
|
@@ -543,80 +543,80 @@ function Ni() {
|
|
|
543
543
|
}
|
|
544
544
|
return E(h);
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function B(m) {
|
|
547
547
|
if (!Array.isArray(m))
|
|
548
548
|
return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), r;
|
|
549
549
|
for (var h = 0; h < m.length; h++) {
|
|
550
|
-
var
|
|
551
|
-
if (typeof
|
|
550
|
+
var _ = m[h];
|
|
551
|
+
if (typeof _ != "function")
|
|
552
552
|
return o(
|
|
553
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + re(
|
|
553
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + re(_) + " at index " + h + "."
|
|
554
554
|
), r;
|
|
555
555
|
}
|
|
556
|
-
function
|
|
556
|
+
function C(j, O, S, T, z) {
|
|
557
557
|
for (var F = [], I = 0; I < m.length; I++) {
|
|
558
|
-
var
|
|
559
|
-
if (
|
|
558
|
+
var Q = m[I], v = Q(j, O, S, T, z, i);
|
|
559
|
+
if (v == null)
|
|
560
560
|
return null;
|
|
561
|
-
|
|
561
|
+
v.data && n(v.data, "expectedType") && F.push(v.data.expectedType);
|
|
562
562
|
}
|
|
563
|
-
var
|
|
564
|
-
return new y("Invalid " +
|
|
563
|
+
var te = F.length > 0 ? ", expected one of type [" + F.join(", ") + "]" : "";
|
|
564
|
+
return new y("Invalid " + T + " `" + z + "` supplied to " + ("`" + S + "`" + te + "."));
|
|
565
565
|
}
|
|
566
|
-
return E(
|
|
566
|
+
return E(C);
|
|
567
567
|
}
|
|
568
568
|
function N() {
|
|
569
|
-
function m(h,
|
|
570
|
-
return
|
|
569
|
+
function m(h, _, C, j, O) {
|
|
570
|
+
return W(h[_]) ? null : new y("Invalid " + j + " `" + O + "` supplied to " + ("`" + C + "`, expected a ReactNode."));
|
|
571
571
|
}
|
|
572
572
|
return E(m);
|
|
573
573
|
}
|
|
574
|
-
function Z(m, h,
|
|
574
|
+
function Z(m, h, _, C, j) {
|
|
575
575
|
return new y(
|
|
576
|
-
(m || "React class") + ": " + h + " type `" +
|
|
576
|
+
(m || "React class") + ": " + h + " type `" + _ + "." + C + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + j + "`."
|
|
577
577
|
);
|
|
578
578
|
}
|
|
579
|
-
function
|
|
580
|
-
function h(
|
|
581
|
-
var
|
|
579
|
+
function oe(m) {
|
|
580
|
+
function h(_, C, j, O, S) {
|
|
581
|
+
var T = _[C], z = ne(T);
|
|
582
582
|
if (z !== "object")
|
|
583
|
-
return new y("Invalid " +
|
|
583
|
+
return new y("Invalid " + O + " `" + S + "` of type `" + z + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
584
584
|
for (var F in m) {
|
|
585
585
|
var I = m[F];
|
|
586
586
|
if (typeof I != "function")
|
|
587
|
-
return Z(j,
|
|
588
|
-
var
|
|
589
|
-
if (
|
|
590
|
-
return
|
|
587
|
+
return Z(j, O, S, F, ee(I));
|
|
588
|
+
var Q = I(T, F, j, O, S + "." + F, i);
|
|
589
|
+
if (Q)
|
|
590
|
+
return Q;
|
|
591
591
|
}
|
|
592
592
|
return null;
|
|
593
593
|
}
|
|
594
594
|
return E(h);
|
|
595
595
|
}
|
|
596
|
-
function
|
|
597
|
-
function h(
|
|
598
|
-
var
|
|
596
|
+
function ae(m) {
|
|
597
|
+
function h(_, C, j, O, S) {
|
|
598
|
+
var T = _[C], z = ne(T);
|
|
599
599
|
if (z !== "object")
|
|
600
|
-
return new y("Invalid " +
|
|
601
|
-
var F = e({},
|
|
600
|
+
return new y("Invalid " + O + " `" + S + "` of type `" + z + "` " + ("supplied to `" + j + "`, expected `object`."));
|
|
601
|
+
var F = e({}, _[C], m);
|
|
602
602
|
for (var I in F) {
|
|
603
|
-
var
|
|
604
|
-
if (n(m, I) && typeof
|
|
605
|
-
return Z(j,
|
|
606
|
-
if (!
|
|
603
|
+
var Q = m[I];
|
|
604
|
+
if (n(m, I) && typeof Q != "function")
|
|
605
|
+
return Z(j, O, S, I, ee(Q));
|
|
606
|
+
if (!Q)
|
|
607
607
|
return new y(
|
|
608
|
-
"Invalid " +
|
|
608
|
+
"Invalid " + O + " `" + S + "` key `" + I + "` supplied to `" + j + "`.\nBad object: " + JSON.stringify(_[C], null, " ") + `
|
|
609
609
|
Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
610
610
|
);
|
|
611
|
-
var
|
|
612
|
-
if (
|
|
613
|
-
return
|
|
611
|
+
var v = Q(T, I, j, O, S + "." + I, i);
|
|
612
|
+
if (v)
|
|
613
|
+
return v;
|
|
614
614
|
}
|
|
615
615
|
return null;
|
|
616
616
|
}
|
|
617
617
|
return E(h);
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function W(m) {
|
|
620
620
|
switch (typeof m) {
|
|
621
621
|
case "number":
|
|
622
622
|
case "string":
|
|
@@ -626,20 +626,20 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
|
626
626
|
return !m;
|
|
627
627
|
case "object":
|
|
628
628
|
if (Array.isArray(m))
|
|
629
|
-
return m.every(
|
|
629
|
+
return m.every(W);
|
|
630
630
|
if (m === null || p(m))
|
|
631
631
|
return !0;
|
|
632
632
|
var h = d(m);
|
|
633
633
|
if (h) {
|
|
634
|
-
var
|
|
634
|
+
var _ = h.call(m), C;
|
|
635
635
|
if (h !== m.entries) {
|
|
636
|
-
for (; !(
|
|
637
|
-
if (!
|
|
636
|
+
for (; !(C = _.next()).done; )
|
|
637
|
+
if (!W(C.value))
|
|
638
638
|
return !1;
|
|
639
639
|
} else
|
|
640
|
-
for (; !(
|
|
641
|
-
var j =
|
|
642
|
-
if (j && !
|
|
640
|
+
for (; !(C = _.next()).done; ) {
|
|
641
|
+
var j = C.value;
|
|
642
|
+
if (j && !W(j[1]))
|
|
643
643
|
return !1;
|
|
644
644
|
}
|
|
645
645
|
} else
|
|
@@ -649,17 +649,17 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
|
649
649
|
return !1;
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
|
-
function
|
|
652
|
+
function J(m, h) {
|
|
653
653
|
return m === "symbol" ? !0 : h ? h["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && h instanceof Symbol : !1;
|
|
654
654
|
}
|
|
655
|
-
function
|
|
655
|
+
function ne(m) {
|
|
656
656
|
var h = typeof m;
|
|
657
|
-
return Array.isArray(m) ? "array" : m instanceof RegExp ? "object" :
|
|
657
|
+
return Array.isArray(m) ? "array" : m instanceof RegExp ? "object" : J(h, m) ? "symbol" : h;
|
|
658
658
|
}
|
|
659
659
|
function ee(m) {
|
|
660
660
|
if (typeof m > "u" || m === null)
|
|
661
661
|
return "" + m;
|
|
662
|
-
var h =
|
|
662
|
+
var h = ne(m);
|
|
663
663
|
if (h === "object") {
|
|
664
664
|
if (m instanceof Date)
|
|
665
665
|
return "date";
|
|
@@ -682,14 +682,14 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
|
682
682
|
return h;
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
|
-
function
|
|
686
|
-
return !m.constructor || !m.constructor.name ?
|
|
685
|
+
function L(m) {
|
|
686
|
+
return !m.constructor || !m.constructor.name ? f : m.constructor.name;
|
|
687
687
|
}
|
|
688
688
|
return b.checkPropTypes = a, b.resetWarningCache = a.resetWarningCache, b.PropTypes = b, b;
|
|
689
689
|
}, Ze;
|
|
690
690
|
}
|
|
691
691
|
var et, Ot;
|
|
692
|
-
function
|
|
692
|
+
function Ui() {
|
|
693
693
|
if (Ot) return et;
|
|
694
694
|
Ot = 1;
|
|
695
695
|
var t = /* @__PURE__ */ vt();
|
|
@@ -700,10 +700,10 @@ function Ki() {
|
|
|
700
700
|
return i.resetWarningCache = e, et = function() {
|
|
701
701
|
function n(r, p, s, l, c, d) {
|
|
702
702
|
if (d !== t) {
|
|
703
|
-
var
|
|
703
|
+
var f = new Error(
|
|
704
704
|
"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"
|
|
705
705
|
);
|
|
706
|
-
throw
|
|
706
|
+
throw f.name = "Invariant Violation", f;
|
|
707
707
|
}
|
|
708
708
|
}
|
|
709
709
|
n.isRequired = n;
|
|
@@ -736,19 +736,19 @@ function Ki() {
|
|
|
736
736
|
return o.PropTypes = o, o;
|
|
737
737
|
}, et;
|
|
738
738
|
}
|
|
739
|
-
var
|
|
740
|
-
function
|
|
741
|
-
if (
|
|
742
|
-
if (
|
|
743
|
-
var t =
|
|
744
|
-
|
|
739
|
+
var St;
|
|
740
|
+
function Vi() {
|
|
741
|
+
if (St) return ze.exports;
|
|
742
|
+
if (St = 1, process.env.NODE_ENV !== "production") {
|
|
743
|
+
var t = Ut(), e = !0;
|
|
744
|
+
ze.exports = /* @__PURE__ */ Ki()(t.isElement, e);
|
|
745
745
|
} else
|
|
746
|
-
|
|
747
|
-
return
|
|
746
|
+
ze.exports = /* @__PURE__ */ Ui()();
|
|
747
|
+
return ze.exports;
|
|
748
748
|
}
|
|
749
|
-
var
|
|
750
|
-
const
|
|
751
|
-
function
|
|
749
|
+
var Xi = /* @__PURE__ */ Vi();
|
|
750
|
+
const Y = /* @__PURE__ */ Gt(Xi);
|
|
751
|
+
function xe(t, e, i, n) {
|
|
752
752
|
function a(o) {
|
|
753
753
|
return o instanceof i ? o : new i(function(r) {
|
|
754
754
|
r(o);
|
|
@@ -775,7 +775,7 @@ function ue(t, e, i, n) {
|
|
|
775
775
|
l((n = n.apply(t, e || [])).next());
|
|
776
776
|
});
|
|
777
777
|
}
|
|
778
|
-
const
|
|
778
|
+
const Ji = /* @__PURE__ */ new Map([
|
|
779
779
|
// https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
|
|
780
780
|
["1km", "application/vnd.1000minds.decision-model+xml"],
|
|
781
781
|
["3dml", "text/vnd.in3d.3dml"],
|
|
@@ -1978,14 +1978,14 @@ const Gi = /* @__PURE__ */ new Map([
|
|
|
1978
1978
|
["zmm", "application/vnd.handheld-entertainment+xml"],
|
|
1979
1979
|
["zsh", "text/x-scriptzsh"]
|
|
1980
1980
|
]);
|
|
1981
|
-
function
|
|
1982
|
-
const n =
|
|
1983
|
-
return typeof n.path != "string" &&
|
|
1981
|
+
function je(t, e, i) {
|
|
1982
|
+
const n = Qi(t), { webkitRelativePath: a } = t, o = typeof e == "string" ? e : typeof a == "string" && a.length > 0 ? a : `./${t.name}`;
|
|
1983
|
+
return typeof n.path != "string" && Ct(n, "path", o), Ct(n, "relativePath", o), n;
|
|
1984
1984
|
}
|
|
1985
|
-
function
|
|
1985
|
+
function Qi(t) {
|
|
1986
1986
|
const { name: e } = t;
|
|
1987
1987
|
if (e && e.lastIndexOf(".") !== -1 && !t.type) {
|
|
1988
|
-
const n = e.split(".").pop().toLowerCase(), a =
|
|
1988
|
+
const n = e.split(".").pop().toLowerCase(), a = Ji.get(n);
|
|
1989
1989
|
a && Object.defineProperty(t, "type", {
|
|
1990
1990
|
value: a,
|
|
1991
1991
|
writable: !1,
|
|
@@ -1995,7 +1995,7 @@ function Xi(t) {
|
|
|
1995
1995
|
}
|
|
1996
1996
|
return t;
|
|
1997
1997
|
}
|
|
1998
|
-
function
|
|
1998
|
+
function Ct(t, e, i) {
|
|
1999
1999
|
Object.defineProperty(t, e, {
|
|
2000
2000
|
value: i,
|
|
2001
2001
|
writable: !1,
|
|
@@ -2003,49 +2003,49 @@ function St(t, e, i) {
|
|
|
2003
2003
|
enumerable: !0
|
|
2004
2004
|
});
|
|
2005
2005
|
}
|
|
2006
|
-
const
|
|
2006
|
+
const Zi = [
|
|
2007
2007
|
// Thumbnail cache files for macOS and Windows
|
|
2008
2008
|
".DS_Store",
|
|
2009
2009
|
// macOs
|
|
2010
2010
|
"Thumbs.db"
|
|
2011
2011
|
// Windows
|
|
2012
2012
|
];
|
|
2013
|
-
function
|
|
2014
|
-
return
|
|
2015
|
-
return Me(t) &&
|
|
2013
|
+
function en(t) {
|
|
2014
|
+
return xe(this, void 0, void 0, function* () {
|
|
2015
|
+
return Me(t) && tn(t.dataTransfer) ? rn(t.dataTransfer, t.type) : nn(t) ? an(t) : Array.isArray(t) && t.every((e) => "getFile" in e && typeof e.getFile == "function") ? on(t) : [];
|
|
2016
2016
|
});
|
|
2017
2017
|
}
|
|
2018
|
-
function
|
|
2018
|
+
function tn(t) {
|
|
2019
2019
|
return Me(t);
|
|
2020
2020
|
}
|
|
2021
|
-
function
|
|
2021
|
+
function nn(t) {
|
|
2022
2022
|
return Me(t) && Me(t.target);
|
|
2023
2023
|
}
|
|
2024
2024
|
function Me(t) {
|
|
2025
2025
|
return typeof t == "object" && t !== null;
|
|
2026
2026
|
}
|
|
2027
|
-
function
|
|
2028
|
-
return rt(t.target.files).map((e) =>
|
|
2027
|
+
function an(t) {
|
|
2028
|
+
return rt(t.target.files).map((e) => je(e));
|
|
2029
2029
|
}
|
|
2030
|
-
function
|
|
2031
|
-
return
|
|
2032
|
-
return (yield Promise.all(t.map((i) => i.getFile()))).map((i) =>
|
|
2030
|
+
function on(t) {
|
|
2031
|
+
return xe(this, void 0, void 0, function* () {
|
|
2032
|
+
return (yield Promise.all(t.map((i) => i.getFile()))).map((i) => je(i));
|
|
2033
2033
|
});
|
|
2034
2034
|
}
|
|
2035
|
-
function
|
|
2036
|
-
return
|
|
2035
|
+
function rn(t, e) {
|
|
2036
|
+
return xe(this, void 0, void 0, function* () {
|
|
2037
2037
|
if (t.items) {
|
|
2038
2038
|
const i = rt(t.items).filter((a) => a.kind === "file");
|
|
2039
2039
|
if (e !== "drop")
|
|
2040
2040
|
return i;
|
|
2041
|
-
const n = yield Promise.all(i.map(
|
|
2042
|
-
return
|
|
2041
|
+
const n = yield Promise.all(i.map(pn));
|
|
2042
|
+
return At(Xt(n));
|
|
2043
2043
|
}
|
|
2044
|
-
return
|
|
2044
|
+
return At(rt(t.files).map((i) => je(i)));
|
|
2045
2045
|
});
|
|
2046
2046
|
}
|
|
2047
|
-
function
|
|
2048
|
-
return t.filter((e) =>
|
|
2047
|
+
function At(t) {
|
|
2048
|
+
return t.filter((e) => Zi.indexOf(e.name) === -1);
|
|
2049
2049
|
}
|
|
2050
2050
|
function rt(t) {
|
|
2051
2051
|
if (t === null)
|
|
@@ -2057,20 +2057,20 @@ function rt(t) {
|
|
|
2057
2057
|
}
|
|
2058
2058
|
return e;
|
|
2059
2059
|
}
|
|
2060
|
-
function
|
|
2060
|
+
function pn(t) {
|
|
2061
2061
|
if (typeof t.webkitGetAsEntry != "function")
|
|
2062
|
-
return
|
|
2062
|
+
return Pt(t);
|
|
2063
2063
|
const e = t.webkitGetAsEntry();
|
|
2064
|
-
return e && e.isDirectory ?
|
|
2064
|
+
return e && e.isDirectory ? Jt(e) : Pt(t, e);
|
|
2065
2065
|
}
|
|
2066
|
-
function
|
|
2066
|
+
function Xt(t) {
|
|
2067
2067
|
return t.reduce((e, i) => [
|
|
2068
2068
|
...e,
|
|
2069
|
-
...Array.isArray(i) ?
|
|
2069
|
+
...Array.isArray(i) ? Xt(i) : [i]
|
|
2070
2070
|
], []);
|
|
2071
2071
|
}
|
|
2072
|
-
function
|
|
2073
|
-
return
|
|
2072
|
+
function Pt(t, e) {
|
|
2073
|
+
return xe(this, void 0, void 0, function* () {
|
|
2074
2074
|
var i;
|
|
2075
2075
|
if (globalThis.isSecureContext && typeof t.getAsFileSystemHandle == "function") {
|
|
2076
2076
|
const o = yield t.getAsFileSystemHandle();
|
|
@@ -2078,28 +2078,28 @@ function At(t, e) {
|
|
|
2078
2078
|
throw new Error(`${t} is not a File`);
|
|
2079
2079
|
if (o !== void 0) {
|
|
2080
2080
|
const r = yield o.getFile();
|
|
2081
|
-
return r.handle = o,
|
|
2081
|
+
return r.handle = o, je(r);
|
|
2082
2082
|
}
|
|
2083
2083
|
}
|
|
2084
2084
|
const n = t.getAsFile();
|
|
2085
2085
|
if (!n)
|
|
2086
2086
|
throw new Error(`${t} is not a File`);
|
|
2087
|
-
return
|
|
2087
|
+
return je(n, (i = e?.fullPath) !== null && i !== void 0 ? i : void 0);
|
|
2088
2088
|
});
|
|
2089
2089
|
}
|
|
2090
|
-
function
|
|
2091
|
-
return
|
|
2092
|
-
return t.isDirectory ?
|
|
2090
|
+
function cn(t) {
|
|
2091
|
+
return xe(this, void 0, void 0, function* () {
|
|
2092
|
+
return t.isDirectory ? Jt(t) : ln(t);
|
|
2093
2093
|
});
|
|
2094
2094
|
}
|
|
2095
|
-
function
|
|
2095
|
+
function Jt(t) {
|
|
2096
2096
|
const e = t.createReader();
|
|
2097
2097
|
return new Promise((i, n) => {
|
|
2098
2098
|
const a = [];
|
|
2099
2099
|
function o() {
|
|
2100
|
-
e.readEntries((r) =>
|
|
2100
|
+
e.readEntries((r) => xe(this, void 0, void 0, function* () {
|
|
2101
2101
|
if (r.length) {
|
|
2102
|
-
const p = Promise.all(r.map(
|
|
2102
|
+
const p = Promise.all(r.map(cn));
|
|
2103
2103
|
a.push(p), o();
|
|
2104
2104
|
} else
|
|
2105
2105
|
try {
|
|
@@ -2115,11 +2115,11 @@ function Gt(t) {
|
|
|
2115
2115
|
o();
|
|
2116
2116
|
});
|
|
2117
2117
|
}
|
|
2118
|
-
function
|
|
2119
|
-
return
|
|
2118
|
+
function ln(t) {
|
|
2119
|
+
return xe(this, void 0, void 0, function* () {
|
|
2120
2120
|
return new Promise((e, i) => {
|
|
2121
2121
|
t.file((n) => {
|
|
2122
|
-
const a =
|
|
2122
|
+
const a = je(n, t.fullPath);
|
|
2123
2123
|
e(a);
|
|
2124
2124
|
}, (n) => {
|
|
2125
2125
|
i(n);
|
|
@@ -2127,9 +2127,9 @@ function pn(t) {
|
|
|
2127
2127
|
});
|
|
2128
2128
|
});
|
|
2129
2129
|
}
|
|
2130
|
-
var
|
|
2131
|
-
function
|
|
2132
|
-
return
|
|
2130
|
+
var Fe = {}, Rt;
|
|
2131
|
+
function sn() {
|
|
2132
|
+
return Rt || (Rt = 1, Fe.__esModule = !0, Fe.default = function(t, e) {
|
|
2133
2133
|
if (t && e) {
|
|
2134
2134
|
var i = Array.isArray(e) ? e : e.split(",");
|
|
2135
2135
|
if (i.length === 0)
|
|
@@ -2141,24 +2141,24 @@ function cn() {
|
|
|
2141
2141
|
});
|
|
2142
2142
|
}
|
|
2143
2143
|
return !0;
|
|
2144
|
-
}),
|
|
2144
|
+
}), Fe;
|
|
2145
2145
|
}
|
|
2146
|
-
var
|
|
2147
|
-
const tt = /* @__PURE__ */
|
|
2148
|
-
function
|
|
2149
|
-
return
|
|
2146
|
+
var dn = sn();
|
|
2147
|
+
const tt = /* @__PURE__ */ Gt(dn);
|
|
2148
|
+
function zt(t) {
|
|
2149
|
+
return fn(t) || un(t) || Zt(t) || mn();
|
|
2150
2150
|
}
|
|
2151
|
-
function
|
|
2151
|
+
function mn() {
|
|
2152
2152
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2153
2153
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2154
2154
|
}
|
|
2155
|
-
function
|
|
2155
|
+
function un(t) {
|
|
2156
2156
|
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
2157
2157
|
}
|
|
2158
|
-
function
|
|
2158
|
+
function fn(t) {
|
|
2159
2159
|
if (Array.isArray(t)) return pt(t);
|
|
2160
2160
|
}
|
|
2161
|
-
function
|
|
2161
|
+
function It(t, e) {
|
|
2162
2162
|
var i = Object.keys(t);
|
|
2163
2163
|
if (Object.getOwnPropertySymbols) {
|
|
2164
2164
|
var n = Object.getOwnPropertySymbols(t);
|
|
@@ -2168,28 +2168,28 @@ function zt(t, e) {
|
|
|
2168
2168
|
}
|
|
2169
2169
|
return i;
|
|
2170
2170
|
}
|
|
2171
|
-
function
|
|
2171
|
+
function Ft(t) {
|
|
2172
2172
|
for (var e = 1; e < arguments.length; e++) {
|
|
2173
2173
|
var i = arguments[e] != null ? arguments[e] : {};
|
|
2174
|
-
e % 2 ?
|
|
2175
|
-
|
|
2176
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) :
|
|
2174
|
+
e % 2 ? It(Object(i), !0).forEach(function(n) {
|
|
2175
|
+
Qt(t, n, i[n]);
|
|
2176
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : It(Object(i)).forEach(function(n) {
|
|
2177
2177
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(i, n));
|
|
2178
2178
|
});
|
|
2179
2179
|
}
|
|
2180
2180
|
return t;
|
|
2181
2181
|
}
|
|
2182
|
-
function
|
|
2182
|
+
function Qt(t, e, i) {
|
|
2183
2183
|
return e in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
|
|
2184
2184
|
}
|
|
2185
|
-
function
|
|
2186
|
-
return
|
|
2185
|
+
function Se(t, e) {
|
|
2186
|
+
return gn(t) || xn(t, e) || Zt(t, e) || vn();
|
|
2187
2187
|
}
|
|
2188
|
-
function
|
|
2188
|
+
function vn() {
|
|
2189
2189
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2190
2190
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2191
2191
|
}
|
|
2192
|
-
function
|
|
2192
|
+
function Zt(t, e) {
|
|
2193
2193
|
if (t) {
|
|
2194
2194
|
if (typeof t == "string") return pt(t, e);
|
|
2195
2195
|
var i = Object.prototype.toString.call(t).slice(8, -1);
|
|
@@ -2203,7 +2203,7 @@ function pt(t, e) {
|
|
|
2203
2203
|
n[i] = t[i];
|
|
2204
2204
|
return n;
|
|
2205
2205
|
}
|
|
2206
|
-
function
|
|
2206
|
+
function xn(t, e) {
|
|
2207
2207
|
var i = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
2208
2208
|
if (i != null) {
|
|
2209
2209
|
var n = [], a = !0, o = !1, r, p;
|
|
@@ -2222,76 +2222,79 @@ function fn(t, e) {
|
|
|
2222
2222
|
return n;
|
|
2223
2223
|
}
|
|
2224
2224
|
}
|
|
2225
|
-
function
|
|
2225
|
+
function gn(t) {
|
|
2226
2226
|
if (Array.isArray(t)) return t;
|
|
2227
2227
|
}
|
|
2228
|
-
var
|
|
2228
|
+
var hn = typeof tt == "function" ? tt : tt.default, yn = "file-invalid-type", bn = "file-too-large", wn = "file-too-small", jn = "too-many-files", kn = function() {
|
|
2229
2229
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", i = e.split(","), n = i.length > 1 ? "one of ".concat(i.join(", ")) : i[0];
|
|
2230
2230
|
return {
|
|
2231
|
-
code:
|
|
2231
|
+
code: yn,
|
|
2232
2232
|
message: "File type must be ".concat(n)
|
|
2233
2233
|
};
|
|
2234
|
-
},
|
|
2234
|
+
}, $t = function(e) {
|
|
2235
2235
|
return {
|
|
2236
|
-
code:
|
|
2236
|
+
code: bn,
|
|
2237
2237
|
message: "File is larger than ".concat(e, " ").concat(e === 1 ? "byte" : "bytes")
|
|
2238
2238
|
};
|
|
2239
|
-
},
|
|
2239
|
+
}, Mt = function(e) {
|
|
2240
2240
|
return {
|
|
2241
|
-
code:
|
|
2241
|
+
code: wn,
|
|
2242
2242
|
message: "File is smaller than ".concat(e, " ").concat(e === 1 ? "byte" : "bytes")
|
|
2243
2243
|
};
|
|
2244
|
-
},
|
|
2245
|
-
code:
|
|
2244
|
+
}, En = {
|
|
2245
|
+
code: jn,
|
|
2246
2246
|
message: "Too many files"
|
|
2247
2247
|
};
|
|
2248
|
-
function
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2248
|
+
function Dn(t) {
|
|
2249
|
+
return t.type === "" && typeof t.getAsFile == "function";
|
|
2250
|
+
}
|
|
2251
|
+
function ei(t, e) {
|
|
2252
|
+
var i = t.type === "application/x-moz-file" || hn(t, e) || Dn(t);
|
|
2253
|
+
return [i, i ? null : kn(e)];
|
|
2254
|
+
}
|
|
2255
|
+
function ti(t, e, i) {
|
|
2256
|
+
if (fe(t.size))
|
|
2257
|
+
if (fe(e) && fe(i)) {
|
|
2258
|
+
if (t.size > i) return [!1, $t(i)];
|
|
2259
|
+
if (t.size < e) return [!1, Mt(e)];
|
|
2257
2260
|
} else {
|
|
2258
|
-
if (
|
|
2259
|
-
if (
|
|
2261
|
+
if (fe(e) && t.size < e) return [!1, Mt(e)];
|
|
2262
|
+
if (fe(i) && t.size > i) return [!1, $t(i)];
|
|
2260
2263
|
}
|
|
2261
2264
|
return [!0, null];
|
|
2262
2265
|
}
|
|
2263
|
-
function
|
|
2266
|
+
function fe(t) {
|
|
2264
2267
|
return t != null;
|
|
2265
2268
|
}
|
|
2266
|
-
function
|
|
2269
|
+
function Tn(t) {
|
|
2267
2270
|
var e = t.files, i = t.accept, n = t.minSize, a = t.maxSize, o = t.multiple, r = t.maxFiles, p = t.validator;
|
|
2268
2271
|
return !o && e.length > 1 || o && r >= 1 && e.length > r ? !1 : e.every(function(s) {
|
|
2269
|
-
var l =
|
|
2272
|
+
var l = ei(s, i), c = Se(l, 1), d = c[0], f = ti(s, n, a), b = Se(f, 1), w = b[0], y = p ? p(s) : null;
|
|
2270
2273
|
return d && w && !y;
|
|
2271
2274
|
});
|
|
2272
2275
|
}
|
|
2273
2276
|
function qe(t) {
|
|
2274
2277
|
return typeof t.isPropagationStopped == "function" ? t.isPropagationStopped() : typeof t.cancelBubble < "u" ? t.cancelBubble : !1;
|
|
2275
2278
|
}
|
|
2276
|
-
function
|
|
2279
|
+
function Te(t) {
|
|
2277
2280
|
return t.dataTransfer ? Array.prototype.some.call(t.dataTransfer.types, function(e) {
|
|
2278
2281
|
return e === "Files" || e === "application/x-moz-file";
|
|
2279
2282
|
}) : !!t.target && !!t.target.files;
|
|
2280
2283
|
}
|
|
2281
|
-
function
|
|
2284
|
+
function qt(t) {
|
|
2282
2285
|
t.preventDefault();
|
|
2283
2286
|
}
|
|
2284
|
-
function
|
|
2287
|
+
function _n(t) {
|
|
2285
2288
|
return t.indexOf("MSIE") !== -1 || t.indexOf("Trident/") !== -1;
|
|
2286
2289
|
}
|
|
2287
|
-
function
|
|
2290
|
+
function On(t) {
|
|
2288
2291
|
return t.indexOf("Edge/") !== -1;
|
|
2289
2292
|
}
|
|
2290
|
-
function
|
|
2293
|
+
function Sn() {
|
|
2291
2294
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
2292
|
-
return
|
|
2295
|
+
return _n(t) || On(t);
|
|
2293
2296
|
}
|
|
2294
|
-
function
|
|
2297
|
+
function se() {
|
|
2295
2298
|
for (var t = arguments.length, e = new Array(t), i = 0; i < t; i++)
|
|
2296
2299
|
e[i] = arguments[i];
|
|
2297
2300
|
return function(n) {
|
|
@@ -2302,17 +2305,17 @@ function le() {
|
|
|
2302
2305
|
});
|
|
2303
2306
|
};
|
|
2304
2307
|
}
|
|
2305
|
-
function
|
|
2308
|
+
function Cn() {
|
|
2306
2309
|
return "showOpenFilePicker" in window;
|
|
2307
2310
|
}
|
|
2308
|
-
function
|
|
2309
|
-
if (
|
|
2311
|
+
function An(t) {
|
|
2312
|
+
if (fe(t)) {
|
|
2310
2313
|
var e = Object.entries(t).filter(function(i) {
|
|
2311
|
-
var n =
|
|
2312
|
-
return
|
|
2314
|
+
var n = Se(i, 2), a = n[0], o = n[1], r = !0;
|
|
2315
|
+
return ii(a) || (console.warn('Skipped "'.concat(a, '" 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.')), r = !1), (!Array.isArray(o) || !o.every(ni)) && (console.warn('Skipped "'.concat(a, '" because an invalid file extension was provided.')), r = !1), r;
|
|
2313
2316
|
}).reduce(function(i, n) {
|
|
2314
|
-
var a =
|
|
2315
|
-
return
|
|
2317
|
+
var a = Se(n, 2), o = a[0], r = a[1];
|
|
2318
|
+
return Ft(Ft({}, i), {}, Qt({}, o, r));
|
|
2316
2319
|
}, {});
|
|
2317
2320
|
return [{
|
|
2318
2321
|
// description is required due to https://crbug.com/1264708
|
|
@@ -2322,49 +2325,49 @@ function Dn(t) {
|
|
|
2322
2325
|
}
|
|
2323
2326
|
return t;
|
|
2324
2327
|
}
|
|
2325
|
-
function
|
|
2326
|
-
if (
|
|
2328
|
+
function Pn(t) {
|
|
2329
|
+
if (fe(t))
|
|
2327
2330
|
return Object.entries(t).reduce(function(e, i) {
|
|
2328
|
-
var n =
|
|
2329
|
-
return [].concat(
|
|
2331
|
+
var n = Se(i, 2), a = n[0], o = n[1];
|
|
2332
|
+
return [].concat(zt(e), [a], zt(o));
|
|
2330
2333
|
}, []).filter(function(e) {
|
|
2331
|
-
return
|
|
2334
|
+
return ii(e) || ni(e);
|
|
2332
2335
|
}).join(",");
|
|
2333
2336
|
}
|
|
2334
|
-
function
|
|
2337
|
+
function Rn(t) {
|
|
2335
2338
|
return t instanceof DOMException && (t.name === "AbortError" || t.code === t.ABORT_ERR);
|
|
2336
2339
|
}
|
|
2337
|
-
function
|
|
2340
|
+
function zn(t) {
|
|
2338
2341
|
return t instanceof DOMException && (t.name === "SecurityError" || t.code === t.SECURITY_ERR);
|
|
2339
2342
|
}
|
|
2340
|
-
function
|
|
2343
|
+
function ii(t) {
|
|
2341
2344
|
return t === "audio/*" || t === "video/*" || t === "image/*" || t === "text/*" || t === "application/*" || /\w+\/[-+.\w]+/g.test(t);
|
|
2342
2345
|
}
|
|
2343
|
-
function
|
|
2346
|
+
function ni(t) {
|
|
2344
2347
|
return /^.*\.[\w]+$/.test(t);
|
|
2345
2348
|
}
|
|
2346
|
-
var
|
|
2347
|
-
function
|
|
2348
|
-
return
|
|
2349
|
+
var In = ["children"], Fn = ["open"], $n = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], Mn = ["refKey", "onChange", "onClick"];
|
|
2350
|
+
function Lt(t) {
|
|
2351
|
+
return Wn(t) || Ln(t) || ai(t) || qn();
|
|
2349
2352
|
}
|
|
2350
|
-
function
|
|
2353
|
+
function qn() {
|
|
2351
2354
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2352
2355
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2353
2356
|
}
|
|
2354
|
-
function
|
|
2357
|
+
function Ln(t) {
|
|
2355
2358
|
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
2356
2359
|
}
|
|
2357
|
-
function
|
|
2360
|
+
function Wn(t) {
|
|
2358
2361
|
if (Array.isArray(t)) return ct(t);
|
|
2359
2362
|
}
|
|
2360
2363
|
function it(t, e) {
|
|
2361
|
-
return
|
|
2364
|
+
return Hn(t) || Bn(t, e) || ai(t, e) || Yn();
|
|
2362
2365
|
}
|
|
2363
|
-
function
|
|
2366
|
+
function Yn() {
|
|
2364
2367
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2365
2368
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2366
2369
|
}
|
|
2367
|
-
function
|
|
2370
|
+
function ai(t, e) {
|
|
2368
2371
|
if (t) {
|
|
2369
2372
|
if (typeof t == "string") return ct(t, e);
|
|
2370
2373
|
var i = Object.prototype.toString.call(t).slice(8, -1);
|
|
@@ -2378,7 +2381,7 @@ function ct(t, e) {
|
|
|
2378
2381
|
n[i] = t[i];
|
|
2379
2382
|
return n;
|
|
2380
2383
|
}
|
|
2381
|
-
function
|
|
2384
|
+
function Bn(t, e) {
|
|
2382
2385
|
var i = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"];
|
|
2383
2386
|
if (i != null) {
|
|
2384
2387
|
var n = [], a = !0, o = !1, r, p;
|
|
@@ -2397,10 +2400,10 @@ function Wn(t, e) {
|
|
|
2397
2400
|
return n;
|
|
2398
2401
|
}
|
|
2399
2402
|
}
|
|
2400
|
-
function
|
|
2403
|
+
function Hn(t) {
|
|
2401
2404
|
if (Array.isArray(t)) return t;
|
|
2402
2405
|
}
|
|
2403
|
-
function
|
|
2406
|
+
function Wt(t, e) {
|
|
2404
2407
|
var i = Object.keys(t);
|
|
2405
2408
|
if (Object.getOwnPropertySymbols) {
|
|
2406
2409
|
var n = Object.getOwnPropertySymbols(t);
|
|
@@ -2410,12 +2413,12 @@ function qt(t, e) {
|
|
|
2410
2413
|
}
|
|
2411
2414
|
return i;
|
|
2412
2415
|
}
|
|
2413
|
-
function
|
|
2416
|
+
function K(t) {
|
|
2414
2417
|
for (var e = 1; e < arguments.length; e++) {
|
|
2415
2418
|
var i = arguments[e] != null ? arguments[e] : {};
|
|
2416
|
-
e % 2 ?
|
|
2419
|
+
e % 2 ? Wt(Object(i), !0).forEach(function(n) {
|
|
2417
2420
|
lt(t, n, i[n]);
|
|
2418
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) :
|
|
2421
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : Wt(Object(i)).forEach(function(n) {
|
|
2419
2422
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(i, n));
|
|
2420
2423
|
});
|
|
2421
2424
|
}
|
|
@@ -2426,7 +2429,7 @@ function lt(t, e, i) {
|
|
|
2426
2429
|
}
|
|
2427
2430
|
function Le(t, e) {
|
|
2428
2431
|
if (t == null) return {};
|
|
2429
|
-
var i =
|
|
2432
|
+
var i = Gn(t, e), n, a;
|
|
2430
2433
|
if (Object.getOwnPropertySymbols) {
|
|
2431
2434
|
var o = Object.getOwnPropertySymbols(t);
|
|
2432
2435
|
for (a = 0; a < o.length; a++)
|
|
@@ -2434,27 +2437,27 @@ function Le(t, e) {
|
|
|
2434
2437
|
}
|
|
2435
2438
|
return i;
|
|
2436
2439
|
}
|
|
2437
|
-
function
|
|
2440
|
+
function Gn(t, e) {
|
|
2438
2441
|
if (t == null) return {};
|
|
2439
2442
|
var i = {}, n = Object.keys(t), a, o;
|
|
2440
2443
|
for (o = 0; o < n.length; o++)
|
|
2441
2444
|
a = n[o], !(e.indexOf(a) >= 0) && (i[a] = t[a]);
|
|
2442
2445
|
return i;
|
|
2443
2446
|
}
|
|
2444
|
-
var xt = /* @__PURE__ */
|
|
2445
|
-
var i = t.children, n = Le(t,
|
|
2446
|
-
return
|
|
2447
|
+
var xt = /* @__PURE__ */ Ti(function(t, e) {
|
|
2448
|
+
var i = t.children, n = Le(t, In), a = ri(n), o = a.open, r = Le(a, Fn);
|
|
2449
|
+
return _i(e, function() {
|
|
2447
2450
|
return {
|
|
2448
2451
|
open: o
|
|
2449
2452
|
};
|
|
2450
|
-
}, [o]), /* @__PURE__ */
|
|
2453
|
+
}, [o]), /* @__PURE__ */ ke.createElement(ut, null, i(K(K({}, r), {}, {
|
|
2451
2454
|
open: o
|
|
2452
2455
|
})));
|
|
2453
2456
|
});
|
|
2454
2457
|
xt.displayName = "Dropzone";
|
|
2455
|
-
var
|
|
2458
|
+
var oi = {
|
|
2456
2459
|
disabled: !1,
|
|
2457
|
-
getFilesFromEvent:
|
|
2460
|
+
getFilesFromEvent: en,
|
|
2458
2461
|
maxSize: 1 / 0,
|
|
2459
2462
|
minSize: 0,
|
|
2460
2463
|
multiple: !0,
|
|
@@ -2468,7 +2471,7 @@ var ni = {
|
|
|
2468
2471
|
useFsAccessApi: !1,
|
|
2469
2472
|
autoFocus: !1
|
|
2470
2473
|
};
|
|
2471
|
-
xt.defaultProps =
|
|
2474
|
+
xt.defaultProps = oi;
|
|
2472
2475
|
xt.propTypes = {
|
|
2473
2476
|
/**
|
|
2474
2477
|
* Render function that exposes the dropzone state and prop getter fns
|
|
@@ -2482,10 +2485,11 @@ xt.propTypes = {
|
|
|
2482
2485
|
* @param {boolean} params.isDragActive Active drag is in progress
|
|
2483
2486
|
* @param {boolean} params.isDragAccept Dragged files are accepted
|
|
2484
2487
|
* @param {boolean} params.isDragReject Some dragged files are rejected
|
|
2488
|
+
* @param {boolean} params.isDragGlobal Files are being dragged anywhere on the document
|
|
2485
2489
|
* @param {File[]} params.acceptedFiles Accepted files
|
|
2486
2490
|
* @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
|
|
2487
2491
|
*/
|
|
2488
|
-
children:
|
|
2492
|
+
children: Y.func,
|
|
2489
2493
|
/**
|
|
2490
2494
|
* Set accepted file types.
|
|
2491
2495
|
* Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
|
|
@@ -2493,90 +2497,90 @@ xt.propTypes = {
|
|
|
2493
2497
|
* for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
|
|
2494
2498
|
* Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
|
|
2495
2499
|
*/
|
|
2496
|
-
accept:
|
|
2500
|
+
accept: Y.objectOf(Y.arrayOf(Y.string)),
|
|
2497
2501
|
/**
|
|
2498
2502
|
* Allow drag 'n' drop (or selection from the file dialog) of multiple files
|
|
2499
2503
|
*/
|
|
2500
|
-
multiple:
|
|
2504
|
+
multiple: Y.bool,
|
|
2501
2505
|
/**
|
|
2502
2506
|
* If false, allow dropped items to take over the current browser window
|
|
2503
2507
|
*/
|
|
2504
|
-
preventDropOnDocument:
|
|
2508
|
+
preventDropOnDocument: Y.bool,
|
|
2505
2509
|
/**
|
|
2506
2510
|
* If true, disables click to open the native file selection dialog
|
|
2507
2511
|
*/
|
|
2508
|
-
noClick:
|
|
2512
|
+
noClick: Y.bool,
|
|
2509
2513
|
/**
|
|
2510
2514
|
* If true, disables SPACE/ENTER to open the native file selection dialog.
|
|
2511
2515
|
* Note that it also stops tracking the focus state.
|
|
2512
2516
|
*/
|
|
2513
|
-
noKeyboard:
|
|
2517
|
+
noKeyboard: Y.bool,
|
|
2514
2518
|
/**
|
|
2515
2519
|
* If true, disables drag 'n' drop
|
|
2516
2520
|
*/
|
|
2517
|
-
noDrag:
|
|
2521
|
+
noDrag: Y.bool,
|
|
2518
2522
|
/**
|
|
2519
2523
|
* If true, stops drag event propagation to parents
|
|
2520
2524
|
*/
|
|
2521
|
-
noDragEventsBubbling:
|
|
2525
|
+
noDragEventsBubbling: Y.bool,
|
|
2522
2526
|
/**
|
|
2523
2527
|
* Minimum file size (in bytes)
|
|
2524
2528
|
*/
|
|
2525
|
-
minSize:
|
|
2529
|
+
minSize: Y.number,
|
|
2526
2530
|
/**
|
|
2527
2531
|
* Maximum file size (in bytes)
|
|
2528
2532
|
*/
|
|
2529
|
-
maxSize:
|
|
2533
|
+
maxSize: Y.number,
|
|
2530
2534
|
/**
|
|
2531
2535
|
* Maximum accepted number of files
|
|
2532
2536
|
* The default value is 0 which means there is no limitation to how many files are accepted.
|
|
2533
2537
|
*/
|
|
2534
|
-
maxFiles:
|
|
2538
|
+
maxFiles: Y.number,
|
|
2535
2539
|
/**
|
|
2536
2540
|
* Enable/disable the dropzone
|
|
2537
2541
|
*/
|
|
2538
|
-
disabled:
|
|
2542
|
+
disabled: Y.bool,
|
|
2539
2543
|
/**
|
|
2540
2544
|
* Use this to provide a custom file aggregator
|
|
2541
2545
|
*
|
|
2542
2546
|
* @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
|
|
2543
2547
|
*/
|
|
2544
|
-
getFilesFromEvent:
|
|
2548
|
+
getFilesFromEvent: Y.func,
|
|
2545
2549
|
/**
|
|
2546
2550
|
* Cb for when closing the file dialog with no selection
|
|
2547
2551
|
*/
|
|
2548
|
-
onFileDialogCancel:
|
|
2552
|
+
onFileDialogCancel: Y.func,
|
|
2549
2553
|
/**
|
|
2550
2554
|
* Cb for when opening the file dialog
|
|
2551
2555
|
*/
|
|
2552
|
-
onFileDialogOpen:
|
|
2556
|
+
onFileDialogOpen: Y.func,
|
|
2553
2557
|
/**
|
|
2554
2558
|
* Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
|
|
2555
2559
|
* to open the file picker instead of using an `<input type="file">` click event.
|
|
2556
2560
|
*/
|
|
2557
|
-
useFsAccessApi:
|
|
2561
|
+
useFsAccessApi: Y.bool,
|
|
2558
2562
|
/**
|
|
2559
2563
|
* Set to true to focus the root element on render
|
|
2560
2564
|
*/
|
|
2561
|
-
autoFocus:
|
|
2565
|
+
autoFocus: Y.bool,
|
|
2562
2566
|
/**
|
|
2563
2567
|
* Cb for when the `dragenter` event occurs.
|
|
2564
2568
|
*
|
|
2565
2569
|
* @param {DragEvent} event
|
|
2566
2570
|
*/
|
|
2567
|
-
onDragEnter:
|
|
2571
|
+
onDragEnter: Y.func,
|
|
2568
2572
|
/**
|
|
2569
2573
|
* Cb for when the `dragleave` event occurs
|
|
2570
2574
|
*
|
|
2571
2575
|
* @param {DragEvent} event
|
|
2572
2576
|
*/
|
|
2573
|
-
onDragLeave:
|
|
2577
|
+
onDragLeave: Y.func,
|
|
2574
2578
|
/**
|
|
2575
2579
|
* Cb for when the `dragover` event occurs
|
|
2576
2580
|
*
|
|
2577
2581
|
* @param {DragEvent} event
|
|
2578
2582
|
*/
|
|
2579
|
-
onDragOver:
|
|
2583
|
+
onDragOver: Y.func,
|
|
2580
2584
|
/**
|
|
2581
2585
|
* Cb for when the `drop` event occurs.
|
|
2582
2586
|
* Note that this callback is invoked after the `getFilesFromEvent` callback is done.
|
|
@@ -2607,7 +2611,7 @@ xt.propTypes = {
|
|
|
2607
2611
|
* @param {FileRejection[]} fileRejections
|
|
2608
2612
|
* @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
|
|
2609
2613
|
*/
|
|
2610
|
-
onDrop:
|
|
2614
|
+
onDrop: Y.func,
|
|
2611
2615
|
/**
|
|
2612
2616
|
* Cb for when the `drop` event occurs.
|
|
2613
2617
|
* Note that if no files are accepted, this callback is not invoked.
|
|
@@ -2615,7 +2619,7 @@ xt.propTypes = {
|
|
|
2615
2619
|
* @param {File[]} files
|
|
2616
2620
|
* @param {(DragEvent|Event)} event
|
|
2617
2621
|
*/
|
|
2618
|
-
onDropAccepted:
|
|
2622
|
+
onDropAccepted: Y.func,
|
|
2619
2623
|
/**
|
|
2620
2624
|
* Cb for when the `drop` event occurs.
|
|
2621
2625
|
* Note that if no files are rejected, this callback is not invoked.
|
|
@@ -2623,19 +2627,19 @@ xt.propTypes = {
|
|
|
2623
2627
|
* @param {FileRejection[]} fileRejections
|
|
2624
2628
|
* @param {(DragEvent|Event)} event
|
|
2625
2629
|
*/
|
|
2626
|
-
onDropRejected:
|
|
2630
|
+
onDropRejected: Y.func,
|
|
2627
2631
|
/**
|
|
2628
2632
|
* Cb for when there's some error from any of the promises.
|
|
2629
2633
|
*
|
|
2630
2634
|
* @param {Error} error
|
|
2631
2635
|
*/
|
|
2632
|
-
onError:
|
|
2636
|
+
onError: Y.func,
|
|
2633
2637
|
/**
|
|
2634
2638
|
* Custom validation function. It must return null if there's no errors.
|
|
2635
2639
|
* @param {File} file
|
|
2636
2640
|
* @returns {FileError|FileError[]|null}
|
|
2637
2641
|
*/
|
|
2638
|
-
validator:
|
|
2642
|
+
validator: Y.func
|
|
2639
2643
|
};
|
|
2640
2644
|
var st = {
|
|
2641
2645
|
isFocused: !1,
|
|
@@ -2643,189 +2647,217 @@ var st = {
|
|
|
2643
2647
|
isDragActive: !1,
|
|
2644
2648
|
isDragAccept: !1,
|
|
2645
2649
|
isDragReject: !1,
|
|
2650
|
+
isDragGlobal: !1,
|
|
2646
2651
|
acceptedFiles: [],
|
|
2647
2652
|
fileRejections: []
|
|
2648
2653
|
};
|
|
2649
|
-
function
|
|
2650
|
-
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e =
|
|
2651
|
-
return
|
|
2652
|
-
}, [i]), Z =
|
|
2653
|
-
return
|
|
2654
|
-
}, [i]),
|
|
2655
|
-
return typeof E == "function" ? E :
|
|
2656
|
-
}, [E]),
|
|
2657
|
-
return typeof y == "function" ? y :
|
|
2658
|
-
}, [y]),
|
|
2659
|
-
!
|
|
2660
|
-
if (
|
|
2661
|
-
var
|
|
2662
|
-
|
|
2654
|
+
function ri() {
|
|
2655
|
+
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = K(K({}, oi), t), i = e.accept, n = e.disabled, a = e.getFilesFromEvent, o = e.maxSize, r = e.minSize, p = e.multiple, s = e.maxFiles, l = e.onDragEnter, c = e.onDragLeave, d = e.onDragOver, f = e.onDrop, b = e.onDropAccepted, w = e.onDropRejected, y = e.onFileDialogCancel, E = e.onFileDialogOpen, A = e.useFsAccessApi, R = e.autoFocus, D = e.preventDropOnDocument, P = e.noClick, u = e.noKeyboard, H = e.noDrag, $ = e.noDragEventsBubbling, G = e.onError, B = e.validator, N = he(function() {
|
|
2656
|
+
return Pn(i);
|
|
2657
|
+
}, [i]), Z = he(function() {
|
|
2658
|
+
return An(i);
|
|
2659
|
+
}, [i]), oe = he(function() {
|
|
2660
|
+
return typeof E == "function" ? E : Yt;
|
|
2661
|
+
}, [E]), ae = he(function() {
|
|
2662
|
+
return typeof y == "function" ? y : Yt;
|
|
2663
|
+
}, [y]), W = ye(null), J = ye(null), ne = Di(Nn, st), ee = it(ne, 2), re = ee[0], L = ee[1], m = re.isFocused, h = re.isFileDialogActive, _ = ye(typeof window < "u" && window.isSecureContext && A && Cn()), C = function() {
|
|
2664
|
+
!_.current && h && setTimeout(function() {
|
|
2665
|
+
if (J.current) {
|
|
2666
|
+
var k = J.current.files;
|
|
2667
|
+
k.length || (L({
|
|
2663
2668
|
type: "closeDialog"
|
|
2664
|
-
}),
|
|
2669
|
+
}), ae());
|
|
2665
2670
|
}
|
|
2666
2671
|
}, 300);
|
|
2667
2672
|
};
|
|
2668
|
-
|
|
2669
|
-
return window.addEventListener("focus",
|
|
2670
|
-
window.removeEventListener("focus",
|
|
2673
|
+
ve(function() {
|
|
2674
|
+
return window.addEventListener("focus", C, !1), function() {
|
|
2675
|
+
window.removeEventListener("focus", C, !1);
|
|
2671
2676
|
};
|
|
2672
|
-
}, [
|
|
2673
|
-
var j =
|
|
2674
|
-
|
|
2677
|
+
}, [J, h, ae, _]);
|
|
2678
|
+
var j = ye([]), O = ye([]), S = function(k) {
|
|
2679
|
+
W.current && W.current.contains(k.target) || (k.preventDefault(), j.current = []);
|
|
2675
2680
|
};
|
|
2676
|
-
|
|
2677
|
-
return
|
|
2678
|
-
|
|
2681
|
+
ve(function() {
|
|
2682
|
+
return D && (document.addEventListener("dragover", qt, !1), document.addEventListener("drop", S, !1)), function() {
|
|
2683
|
+
D && (document.removeEventListener("dragover", qt), document.removeEventListener("drop", S));
|
|
2679
2684
|
};
|
|
2680
|
-
}, [
|
|
2681
|
-
|
|
2685
|
+
}, [W, D]), ve(function() {
|
|
2686
|
+
var x = function(le) {
|
|
2687
|
+
O.current = [].concat(Lt(O.current), [le.target]), Te(le) && L({
|
|
2688
|
+
isDragGlobal: !0,
|
|
2689
|
+
type: "setDragGlobal"
|
|
2690
|
+
});
|
|
2691
|
+
}, k = function(le) {
|
|
2692
|
+
O.current = O.current.filter(function(de) {
|
|
2693
|
+
return de !== le.target && de !== null;
|
|
2694
|
+
}), !(O.current.length > 0) && L({
|
|
2695
|
+
isDragGlobal: !1,
|
|
2696
|
+
type: "setDragGlobal"
|
|
2697
|
+
});
|
|
2698
|
+
}, U = function() {
|
|
2699
|
+
O.current = [], L({
|
|
2700
|
+
isDragGlobal: !1,
|
|
2701
|
+
type: "setDragGlobal"
|
|
2702
|
+
});
|
|
2703
|
+
}, X = function() {
|
|
2704
|
+
O.current = [], L({
|
|
2705
|
+
isDragGlobal: !1,
|
|
2706
|
+
type: "setDragGlobal"
|
|
2707
|
+
});
|
|
2682
2708
|
};
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
}, [
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2709
|
+
return document.addEventListener("dragenter", x, !1), document.addEventListener("dragleave", k, !1), document.addEventListener("dragend", U, !1), document.addEventListener("drop", X, !1), function() {
|
|
2710
|
+
document.removeEventListener("dragenter", x), document.removeEventListener("dragleave", k), document.removeEventListener("dragend", U), document.removeEventListener("drop", X);
|
|
2711
|
+
};
|
|
2712
|
+
}, [W]), ve(function() {
|
|
2713
|
+
return !n && R && W.current && W.current.focus(), function() {
|
|
2714
|
+
};
|
|
2715
|
+
}, [W, R, n]);
|
|
2716
|
+
var T = pe(function(x) {
|
|
2717
|
+
G ? G(x) : console.error(x);
|
|
2718
|
+
}, [G]), z = pe(function(x) {
|
|
2719
|
+
x.preventDefault(), x.persist(), Pe(x), j.current = [].concat(Lt(j.current), [x.target]), Te(x) && Promise.resolve(a(x)).then(function(k) {
|
|
2720
|
+
if (!(qe(x) && !$)) {
|
|
2721
|
+
var U = k.length, X = U > 0 && Tn({
|
|
2722
|
+
files: k,
|
|
2691
2723
|
accept: N,
|
|
2692
2724
|
minSize: r,
|
|
2693
2725
|
maxSize: o,
|
|
2694
2726
|
multiple: p,
|
|
2695
2727
|
maxFiles: s,
|
|
2696
|
-
validator:
|
|
2697
|
-
}),
|
|
2698
|
-
|
|
2699
|
-
isDragAccept:
|
|
2700
|
-
isDragReject:
|
|
2728
|
+
validator: B
|
|
2729
|
+
}), ie = U > 0 && !X;
|
|
2730
|
+
L({
|
|
2731
|
+
isDragAccept: X,
|
|
2732
|
+
isDragReject: ie,
|
|
2701
2733
|
isDragActive: !0,
|
|
2702
2734
|
type: "setDraggedFiles"
|
|
2703
|
-
}), l && l(
|
|
2735
|
+
}), l && l(x);
|
|
2704
2736
|
}
|
|
2705
|
-
}).catch(function(
|
|
2706
|
-
return k
|
|
2737
|
+
}).catch(function(k) {
|
|
2738
|
+
return T(k);
|
|
2707
2739
|
});
|
|
2708
|
-
}, [a, l,
|
|
2709
|
-
|
|
2710
|
-
var
|
|
2711
|
-
if (
|
|
2740
|
+
}, [a, l, T, $, N, r, o, p, s, B]), F = pe(function(x) {
|
|
2741
|
+
x.preventDefault(), x.persist(), Pe(x);
|
|
2742
|
+
var k = Te(x);
|
|
2743
|
+
if (k && x.dataTransfer)
|
|
2712
2744
|
try {
|
|
2713
|
-
|
|
2745
|
+
x.dataTransfer.dropEffect = "copy";
|
|
2714
2746
|
} catch {
|
|
2715
2747
|
}
|
|
2716
|
-
return
|
|
2717
|
-
}, [d, $]),
|
|
2718
|
-
|
|
2719
|
-
var
|
|
2720
|
-
return
|
|
2721
|
-
}),
|
|
2722
|
-
|
|
2748
|
+
return k && d && d(x), !1;
|
|
2749
|
+
}, [d, $]), I = pe(function(x) {
|
|
2750
|
+
x.preventDefault(), x.persist(), Pe(x);
|
|
2751
|
+
var k = j.current.filter(function(X) {
|
|
2752
|
+
return W.current && W.current.contains(X);
|
|
2753
|
+
}), U = k.indexOf(x.target);
|
|
2754
|
+
U !== -1 && k.splice(U, 1), j.current = k, !(k.length > 0) && (L({
|
|
2723
2755
|
type: "setDraggedFiles",
|
|
2724
2756
|
isDragActive: !1,
|
|
2725
2757
|
isDragAccept: !1,
|
|
2726
2758
|
isDragReject: !1
|
|
2727
|
-
}),
|
|
2728
|
-
}, [
|
|
2729
|
-
var
|
|
2730
|
-
|
|
2731
|
-
var
|
|
2732
|
-
if (Ye &&
|
|
2733
|
-
|
|
2759
|
+
}), Te(x) && c && c(x));
|
|
2760
|
+
}, [W, c, $]), Q = pe(function(x, k) {
|
|
2761
|
+
var U = [], X = [];
|
|
2762
|
+
x.forEach(function(ie) {
|
|
2763
|
+
var le = ei(ie, N), de = it(le, 2), Ye = de[0], Be = de[1], He = ti(ie, r, o), Re = it(He, 2), Ge = Re[0], Ne = Re[1], Ke = B ? B(ie) : null;
|
|
2764
|
+
if (Ye && Ge && !Ke)
|
|
2765
|
+
U.push(ie);
|
|
2734
2766
|
else {
|
|
2735
|
-
var
|
|
2736
|
-
|
|
2737
|
-
file:
|
|
2738
|
-
errors:
|
|
2739
|
-
return
|
|
2767
|
+
var Ue = [Be, Ne];
|
|
2768
|
+
Ke && (Ue = Ue.concat(Ke)), X.push({
|
|
2769
|
+
file: ie,
|
|
2770
|
+
errors: Ue.filter(function(mi) {
|
|
2771
|
+
return mi;
|
|
2740
2772
|
})
|
|
2741
2773
|
});
|
|
2742
2774
|
}
|
|
2743
|
-
}), (!p &&
|
|
2744
|
-
|
|
2745
|
-
file:
|
|
2746
|
-
errors: [
|
|
2775
|
+
}), (!p && U.length > 1 || p && s >= 1 && U.length > s) && (U.forEach(function(ie) {
|
|
2776
|
+
X.push({
|
|
2777
|
+
file: ie,
|
|
2778
|
+
errors: [En]
|
|
2747
2779
|
});
|
|
2748
|
-
}),
|
|
2749
|
-
acceptedFiles:
|
|
2750
|
-
fileRejections:
|
|
2751
|
-
isDragReject:
|
|
2780
|
+
}), U.splice(0)), L({
|
|
2781
|
+
acceptedFiles: U,
|
|
2782
|
+
fileRejections: X,
|
|
2783
|
+
isDragReject: X.length > 0,
|
|
2752
2784
|
type: "setFiles"
|
|
2753
|
-
}),
|
|
2754
|
-
}, [
|
|
2755
|
-
|
|
2756
|
-
qe(
|
|
2757
|
-
}).catch(function(
|
|
2758
|
-
return k
|
|
2759
|
-
}),
|
|
2785
|
+
}), f && f(U, X, k), X.length > 0 && w && w(X, k), U.length > 0 && b && b(U, k);
|
|
2786
|
+
}, [L, p, N, r, o, s, f, b, w, B]), v = pe(function(x) {
|
|
2787
|
+
x.preventDefault(), x.persist(), Pe(x), j.current = [], Te(x) && Promise.resolve(a(x)).then(function(k) {
|
|
2788
|
+
qe(x) && !$ || Q(k, x);
|
|
2789
|
+
}).catch(function(k) {
|
|
2790
|
+
return T(k);
|
|
2791
|
+
}), L({
|
|
2760
2792
|
type: "reset"
|
|
2761
2793
|
});
|
|
2762
|
-
}, [a,
|
|
2763
|
-
if (
|
|
2764
|
-
|
|
2794
|
+
}, [a, Q, T, $]), te = pe(function() {
|
|
2795
|
+
if (_.current) {
|
|
2796
|
+
L({
|
|
2765
2797
|
type: "openDialog"
|
|
2766
|
-
}),
|
|
2767
|
-
var
|
|
2798
|
+
}), oe();
|
|
2799
|
+
var x = {
|
|
2768
2800
|
multiple: p,
|
|
2769
2801
|
types: Z
|
|
2770
2802
|
};
|
|
2771
|
-
window.showOpenFilePicker(
|
|
2772
|
-
return a(
|
|
2773
|
-
}).then(function(
|
|
2774
|
-
|
|
2803
|
+
window.showOpenFilePicker(x).then(function(k) {
|
|
2804
|
+
return a(k);
|
|
2805
|
+
}).then(function(k) {
|
|
2806
|
+
Q(k, null), L({
|
|
2775
2807
|
type: "closeDialog"
|
|
2776
2808
|
});
|
|
2777
|
-
}).catch(function(
|
|
2778
|
-
|
|
2809
|
+
}).catch(function(k) {
|
|
2810
|
+
Rn(k) ? (ae(k), L({
|
|
2779
2811
|
type: "closeDialog"
|
|
2780
|
-
})) :
|
|
2812
|
+
})) : zn(k) ? (_.current = !1, J.current ? (J.current.value = null, J.current.click()) : T(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."))) : T(k);
|
|
2781
2813
|
});
|
|
2782
2814
|
return;
|
|
2783
2815
|
}
|
|
2784
|
-
|
|
2816
|
+
J.current && (L({
|
|
2785
2817
|
type: "openDialog"
|
|
2786
|
-
}),
|
|
2787
|
-
}, [
|
|
2788
|
-
!
|
|
2789
|
-
}, [
|
|
2790
|
-
|
|
2818
|
+
}), oe(), J.current.value = null, J.current.click());
|
|
2819
|
+
}, [L, oe, ae, A, Q, T, Z, p]), ue = pe(function(x) {
|
|
2820
|
+
!W.current || !W.current.isEqualNode(x.target) || (x.key === " " || x.key === "Enter" || x.keyCode === 32 || x.keyCode === 13) && (x.preventDefault(), te());
|
|
2821
|
+
}, [W, te]), De = pe(function() {
|
|
2822
|
+
L({
|
|
2791
2823
|
type: "focus"
|
|
2792
2824
|
});
|
|
2793
|
-
}, []),
|
|
2794
|
-
|
|
2825
|
+
}, []), gt = pe(function() {
|
|
2826
|
+
L({
|
|
2795
2827
|
type: "blur"
|
|
2796
2828
|
});
|
|
2797
|
-
}, []),
|
|
2798
|
-
P || (
|
|
2799
|
-
}, [P,
|
|
2800
|
-
return n ? null :
|
|
2801
|
-
}, We = function(
|
|
2802
|
-
return u ? null :
|
|
2803
|
-
},
|
|
2804
|
-
return
|
|
2805
|
-
},
|
|
2806
|
-
$ &&
|
|
2807
|
-
},
|
|
2829
|
+
}, []), ht = pe(function() {
|
|
2830
|
+
P || (Sn() ? setTimeout(te, 0) : te());
|
|
2831
|
+
}, [P, te]), ge = function(k) {
|
|
2832
|
+
return n ? null : k;
|
|
2833
|
+
}, We = function(k) {
|
|
2834
|
+
return u ? null : ge(k);
|
|
2835
|
+
}, Ae = function(k) {
|
|
2836
|
+
return H ? null : ge(k);
|
|
2837
|
+
}, Pe = function(k) {
|
|
2838
|
+
$ && k.stopPropagation();
|
|
2839
|
+
}, li = he(function() {
|
|
2808
2840
|
return function() {
|
|
2809
|
-
var
|
|
2810
|
-
return
|
|
2811
|
-
onKeyDown: We(
|
|
2812
|
-
onFocus: We(le
|
|
2813
|
-
onBlur: We(
|
|
2814
|
-
onClick:
|
|
2815
|
-
onDragEnter:
|
|
2816
|
-
onDragOver:
|
|
2817
|
-
onDragLeave:
|
|
2818
|
-
onDrop:
|
|
2819
|
-
role: typeof
|
|
2820
|
-
},
|
|
2841
|
+
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, k = x.refKey, U = k === void 0 ? "ref" : k, X = x.role, ie = x.onKeyDown, le = x.onFocus, de = x.onBlur, Ye = x.onClick, Be = x.onDragEnter, He = x.onDragOver, Re = x.onDragLeave, Ge = x.onDrop, Ne = Le(x, $n);
|
|
2842
|
+
return K(K(lt({
|
|
2843
|
+
onKeyDown: We(se(ie, ue)),
|
|
2844
|
+
onFocus: We(se(le, De)),
|
|
2845
|
+
onBlur: We(se(de, gt)),
|
|
2846
|
+
onClick: ge(se(Ye, ht)),
|
|
2847
|
+
onDragEnter: Ae(se(Be, z)),
|
|
2848
|
+
onDragOver: Ae(se(He, F)),
|
|
2849
|
+
onDragLeave: Ae(se(Re, I)),
|
|
2850
|
+
onDrop: Ae(se(Ge, v)),
|
|
2851
|
+
role: typeof X == "string" && X !== "" ? X : "presentation"
|
|
2852
|
+
}, U, W), !n && !u ? {
|
|
2821
2853
|
tabIndex: 0
|
|
2822
|
-
} : {}),
|
|
2854
|
+
} : {}), Ne);
|
|
2823
2855
|
};
|
|
2824
|
-
}, [
|
|
2825
|
-
|
|
2826
|
-
}, []),
|
|
2856
|
+
}, [W, ue, De, gt, ht, z, F, I, v, u, H, n]), si = pe(function(x) {
|
|
2857
|
+
x.stopPropagation();
|
|
2858
|
+
}, []), di = he(function() {
|
|
2827
2859
|
return function() {
|
|
2828
|
-
var
|
|
2860
|
+
var x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, k = x.refKey, U = k === void 0 ? "ref" : k, X = x.onChange, ie = x.onClick, le = Le(x, Mn), de = lt({
|
|
2829
2861
|
accept: N,
|
|
2830
2862
|
multiple: p,
|
|
2831
2863
|
type: "file",
|
|
@@ -2841,61 +2873,65 @@ function ai() {
|
|
|
2841
2873
|
width: "1px",
|
|
2842
2874
|
whiteSpace: "nowrap"
|
|
2843
2875
|
},
|
|
2844
|
-
onChange:
|
|
2845
|
-
onClick:
|
|
2876
|
+
onChange: ge(se(X, v)),
|
|
2877
|
+
onClick: ge(se(ie, si)),
|
|
2846
2878
|
tabIndex: -1
|
|
2847
|
-
},
|
|
2848
|
-
return
|
|
2879
|
+
}, U, J);
|
|
2880
|
+
return K(K({}, de), le);
|
|
2849
2881
|
};
|
|
2850
|
-
}, [
|
|
2851
|
-
return
|
|
2882
|
+
}, [J, i, p, v, n]);
|
|
2883
|
+
return K(K({}, re), {}, {
|
|
2852
2884
|
isFocused: m && !n,
|
|
2853
|
-
getRootProps:
|
|
2854
|
-
getInputProps:
|
|
2855
|
-
rootRef:
|
|
2856
|
-
inputRef:
|
|
2857
|
-
open:
|
|
2885
|
+
getRootProps: li,
|
|
2886
|
+
getInputProps: di,
|
|
2887
|
+
rootRef: W,
|
|
2888
|
+
inputRef: J,
|
|
2889
|
+
open: ge(te)
|
|
2858
2890
|
});
|
|
2859
2891
|
}
|
|
2860
|
-
function
|
|
2892
|
+
function Nn(t, e) {
|
|
2861
2893
|
switch (e.type) {
|
|
2862
2894
|
case "focus":
|
|
2863
|
-
return
|
|
2895
|
+
return K(K({}, t), {}, {
|
|
2864
2896
|
isFocused: !0
|
|
2865
2897
|
});
|
|
2866
2898
|
case "blur":
|
|
2867
|
-
return
|
|
2899
|
+
return K(K({}, t), {}, {
|
|
2868
2900
|
isFocused: !1
|
|
2869
2901
|
});
|
|
2870
2902
|
case "openDialog":
|
|
2871
|
-
return
|
|
2903
|
+
return K(K({}, st), {}, {
|
|
2872
2904
|
isFileDialogActive: !0
|
|
2873
2905
|
});
|
|
2874
2906
|
case "closeDialog":
|
|
2875
|
-
return
|
|
2907
|
+
return K(K({}, t), {}, {
|
|
2876
2908
|
isFileDialogActive: !1
|
|
2877
2909
|
});
|
|
2878
2910
|
case "setDraggedFiles":
|
|
2879
|
-
return
|
|
2911
|
+
return K(K({}, t), {}, {
|
|
2880
2912
|
isDragActive: e.isDragActive,
|
|
2881
2913
|
isDragAccept: e.isDragAccept,
|
|
2882
2914
|
isDragReject: e.isDragReject
|
|
2883
2915
|
});
|
|
2884
2916
|
case "setFiles":
|
|
2885
|
-
return
|
|
2917
|
+
return K(K({}, t), {}, {
|
|
2886
2918
|
acceptedFiles: e.acceptedFiles,
|
|
2887
2919
|
fileRejections: e.fileRejections,
|
|
2888
2920
|
isDragReject: e.isDragReject
|
|
2889
2921
|
});
|
|
2922
|
+
case "setDragGlobal":
|
|
2923
|
+
return K(K({}, t), {}, {
|
|
2924
|
+
isDragGlobal: e.isDragGlobal
|
|
2925
|
+
});
|
|
2890
2926
|
case "reset":
|
|
2891
|
-
return
|
|
2927
|
+
return K({}, st);
|
|
2892
2928
|
default:
|
|
2893
2929
|
return t;
|
|
2894
2930
|
}
|
|
2895
2931
|
}
|
|
2896
|
-
function
|
|
2932
|
+
function Yt() {
|
|
2897
2933
|
}
|
|
2898
|
-
const
|
|
2934
|
+
const Kn = {
|
|
2899
2935
|
flex: 1,
|
|
2900
2936
|
display: "flex",
|
|
2901
2937
|
flexDirection: "column",
|
|
@@ -2907,7 +2943,7 @@ const Nn = {
|
|
|
2907
2943
|
outline: "none",
|
|
2908
2944
|
transition: "border .24s ease-in-out",
|
|
2909
2945
|
cursor: "pointer"
|
|
2910
|
-
},
|
|
2946
|
+
}, Aa = (t) => {
|
|
2911
2947
|
const e = V.c(28);
|
|
2912
2948
|
let i, n;
|
|
2913
2949
|
e[0] !== t ? ({
|
|
@@ -2920,13 +2956,13 @@ const Nn = {
|
|
|
2920
2956
|
isFocused: r,
|
|
2921
2957
|
isDragAccept: p,
|
|
2922
2958
|
isDragReject: s
|
|
2923
|
-
} =
|
|
2959
|
+
} = ri(i), {
|
|
2924
2960
|
t: l
|
|
2925
|
-
} = dt(), c =
|
|
2926
|
-
let d,
|
|
2961
|
+
} = dt(), c = ui();
|
|
2962
|
+
let d, f, b;
|
|
2927
2963
|
if (e[3] !== a || e[4] !== p || e[5] !== s || e[6] !== r || e[7] !== c) {
|
|
2928
2964
|
const u = {
|
|
2929
|
-
...
|
|
2965
|
+
...Kn,
|
|
2930
2966
|
...r ? {
|
|
2931
2967
|
borderColor: c.palette.primary.main
|
|
2932
2968
|
} : {},
|
|
@@ -2937,11 +2973,11 @@ const Nn = {
|
|
|
2937
2973
|
borderColor: c.palette.error.main
|
|
2938
2974
|
} : {}
|
|
2939
2975
|
};
|
|
2940
|
-
d =
|
|
2976
|
+
d = fi, f = "outlined", b = a({
|
|
2941
2977
|
style: u
|
|
2942
|
-
}), e[3] = a, e[4] = p, e[5] = s, e[6] = r, e[7] = c, e[8] = d, e[9] =
|
|
2978
|
+
}), e[3] = a, e[4] = p, e[5] = s, e[6] = r, e[7] = c, e[8] = d, e[9] = f, e[10] = b;
|
|
2943
2979
|
} else
|
|
2944
|
-
d = e[8],
|
|
2980
|
+
d = e[8], f = e[9], b = e[10];
|
|
2945
2981
|
let w;
|
|
2946
2982
|
e[11] !== o ? (w = o(), e[11] = o, e[12] = w) : w = e[12];
|
|
2947
2983
|
let y;
|
|
@@ -2949,25 +2985,25 @@ const Nn = {
|
|
|
2949
2985
|
display: "none"
|
|
2950
2986
|
}, e[13] = y) : y = e[13];
|
|
2951
2987
|
let E;
|
|
2952
|
-
e[14] !== w ? (E = /* @__PURE__ */
|
|
2988
|
+
e[14] !== w ? (E = /* @__PURE__ */ g.jsx("input", { ...w, style: y }), e[14] = w, e[15] = E) : E = e[15];
|
|
2953
2989
|
let A;
|
|
2954
|
-
e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */
|
|
2990
|
+
e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ g.jsx(Ci, {}), e[16] = A) : A = e[16];
|
|
2955
2991
|
let R;
|
|
2956
2992
|
e[17] !== l ? (R = l("Layout.File.DragSomeFilesHereOrClickToSelectThem"), e[17] = l, e[18] = R) : R = e[18];
|
|
2957
|
-
let
|
|
2958
|
-
e[19] !== R ? (
|
|
2993
|
+
let D;
|
|
2994
|
+
e[19] !== R ? (D = /* @__PURE__ */ g.jsx(be, { children: R }), e[19] = R, e[20] = D) : D = e[20];
|
|
2959
2995
|
let P;
|
|
2960
|
-
return e[21] !== d || e[22] !== n || e[23] !==
|
|
2996
|
+
return e[21] !== d || e[22] !== n || e[23] !== f || e[24] !== b || e[25] !== E || e[26] !== D ? (P = /* @__PURE__ */ g.jsxs(d, { variant: f, ...b, sx: n, children: [
|
|
2961
2997
|
E,
|
|
2962
2998
|
A,
|
|
2963
|
-
|
|
2964
|
-
] }), e[21] = d, e[22] = n, e[23] =
|
|
2965
|
-
},
|
|
2966
|
-
const t =
|
|
2999
|
+
D
|
|
3000
|
+
] }), e[21] = d, e[22] = n, e[23] = f, e[24] = b, e[25] = E, e[26] = D, e[27] = P) : P = e[27], P;
|
|
3001
|
+
}, pi = Oi(null), Ee = () => {
|
|
3002
|
+
const t = Si(pi);
|
|
2967
3003
|
if (!t)
|
|
2968
3004
|
throw new Error("FileViewer components must be used within FileViewer");
|
|
2969
3005
|
return t;
|
|
2970
|
-
},
|
|
3006
|
+
}, ci = (t) => {
|
|
2971
3007
|
const e = V.c(36), {
|
|
2972
3008
|
meta: i,
|
|
2973
3009
|
menu: n,
|
|
@@ -2978,74 +3014,74 @@ const Nn = {
|
|
|
2978
3014
|
fileMetas: r,
|
|
2979
3015
|
onDelete: p,
|
|
2980
3016
|
actions: s
|
|
2981
|
-
} =
|
|
3017
|
+
} = Ee(), {
|
|
2982
3018
|
confirm: l
|
|
2983
|
-
} =
|
|
3019
|
+
} = Pi();
|
|
2984
3020
|
let c;
|
|
2985
3021
|
e[0] !== a ? (c = () => {
|
|
2986
3022
|
a(null);
|
|
2987
3023
|
}, e[0] = a, e[1] = c) : c = e[1];
|
|
2988
3024
|
const d = c;
|
|
2989
|
-
let
|
|
2990
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3025
|
+
let f;
|
|
3026
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = ce.file.download(), e[2] = f) : f = e[2];
|
|
2991
3027
|
const {
|
|
2992
3028
|
mutate: b,
|
|
2993
3029
|
isPending: w
|
|
2994
|
-
} =
|
|
3030
|
+
} = we(f);
|
|
2995
3031
|
let y;
|
|
2996
3032
|
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = ce.file.delete(), e[3] = y) : y = e[3];
|
|
2997
3033
|
const {
|
|
2998
3034
|
mutate: E,
|
|
2999
3035
|
isPending: A
|
|
3000
|
-
} =
|
|
3036
|
+
} = we(y);
|
|
3001
3037
|
let R;
|
|
3002
3038
|
e[4] !== b || e[5] !== d || e[6] !== i ? (R = () => {
|
|
3003
3039
|
d(), b(i);
|
|
3004
3040
|
}, e[4] = b, e[5] = d, e[6] = i, e[7] = R) : R = e[7];
|
|
3005
|
-
const
|
|
3041
|
+
const D = R;
|
|
3006
3042
|
let P;
|
|
3007
3043
|
e[8] !== l || e[9] !== E || e[10] !== r || e[11] !== d || e[12] !== i || e[13] !== p || e[14] !== o ? (P = async () => {
|
|
3008
3044
|
if (await l(o("Layout.File.AreYouSureYouWantToDelete", {
|
|
3009
3045
|
fileName: i.fileName
|
|
3010
3046
|
})) && (E(i), d(), p)) {
|
|
3011
|
-
const
|
|
3047
|
+
const oe = r.filter((ae) => ae.id !== i.id);
|
|
3012
3048
|
p({
|
|
3013
|
-
remainingFileMetas:
|
|
3049
|
+
remainingFileMetas: oe,
|
|
3014
3050
|
deletedFileMeta: i
|
|
3015
3051
|
});
|
|
3016
3052
|
}
|
|
3017
3053
|
}, e[8] = l, e[9] = E, e[10] = r, e[11] = d, e[12] = i, e[13] = p, e[14] = o, e[15] = P) : P = e[15];
|
|
3018
|
-
const u = P,
|
|
3054
|
+
const u = P, H = n !== null;
|
|
3019
3055
|
let $;
|
|
3020
3056
|
e[16] !== n ? ($ = n === null ? void 0 : {
|
|
3021
3057
|
top: n.mouseY,
|
|
3022
3058
|
left: n.mouseX
|
|
3023
3059
|
}, e[16] = n, e[17] = $) : $ = e[17];
|
|
3024
|
-
let
|
|
3025
|
-
e[18] !== s?.download || e[19] !==
|
|
3026
|
-
/* @__PURE__ */
|
|
3027
|
-
/* @__PURE__ */
|
|
3028
|
-
] }), e[18] = s?.download, e[19] =
|
|
3029
|
-
let
|
|
3030
|
-
e[23] !== s?.delete || e[24] !== u || e[25] !== A || e[26] !== o ? (
|
|
3031
|
-
/* @__PURE__ */
|
|
3032
|
-
/* @__PURE__ */
|
|
3033
|
-
] }), e[23] = s?.delete, e[24] = u, e[25] = A, e[26] = o, e[27] =
|
|
3060
|
+
let G;
|
|
3061
|
+
e[18] !== s?.download || e[19] !== D || e[20] !== w || e[21] !== o ? (G = s?.download !== !1 && /* @__PURE__ */ g.jsxs(nt, { onClick: D, disabled: w, children: [
|
|
3062
|
+
/* @__PURE__ */ g.jsx(at, { children: /* @__PURE__ */ g.jsx(Ii, {}) }),
|
|
3063
|
+
/* @__PURE__ */ g.jsx(ot, { children: o("Layout.File.Download") })
|
|
3064
|
+
] }), e[18] = s?.download, e[19] = D, e[20] = w, e[21] = o, e[22] = G) : G = e[22];
|
|
3065
|
+
let B;
|
|
3066
|
+
e[23] !== s?.delete || e[24] !== u || e[25] !== A || e[26] !== o ? (B = s?.delete !== !1 && /* @__PURE__ */ g.jsxs(nt, { onClick: u, disabled: A, children: [
|
|
3067
|
+
/* @__PURE__ */ g.jsx(at, { children: /* @__PURE__ */ g.jsx(zi, {}) }),
|
|
3068
|
+
/* @__PURE__ */ g.jsx(ot, { children: o("Layout.File.Delete") })
|
|
3069
|
+
] }), e[23] = s?.delete, e[24] = u, e[25] = A, e[26] = o, e[27] = B) : B = e[27];
|
|
3034
3070
|
let N;
|
|
3035
|
-
e[28] !==
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
] }), e[28] =
|
|
3071
|
+
e[28] !== G || e[29] !== B ? (N = /* @__PURE__ */ g.jsxs(Bt, { disablePadding: !0, children: [
|
|
3072
|
+
G,
|
|
3073
|
+
B
|
|
3074
|
+
] }), e[28] = G, e[29] = B, e[30] = N) : N = e[30];
|
|
3039
3075
|
let Z;
|
|
3040
|
-
return e[31] !== d || e[32] !== N || e[33] !==
|
|
3041
|
-
}, $e = 150,
|
|
3076
|
+
return e[31] !== d || e[32] !== N || e[33] !== H || e[34] !== $ ? (Z = /* @__PURE__ */ g.jsx(vi, { open: H, onClose: d, anchorReference: "anchorPosition", variant: "menu", anchorPosition: $, children: N }), e[31] = d, e[32] = N, e[33] = H, e[34] = $, e[35] = Z) : Z = e[35], Z;
|
|
3077
|
+
}, $e = 150, Un = (t) => {
|
|
3042
3078
|
const e = V.c(12), {
|
|
3043
3079
|
sx: i,
|
|
3044
3080
|
size: n,
|
|
3045
3081
|
itemBar: a
|
|
3046
3082
|
} = t, {
|
|
3047
3083
|
fileMetas: o
|
|
3048
|
-
} =
|
|
3084
|
+
} = Ee();
|
|
3049
3085
|
let r;
|
|
3050
3086
|
e[0] !== i ? (r = {
|
|
3051
3087
|
overflow: "auto",
|
|
@@ -3054,12 +3090,12 @@ const Nn = {
|
|
|
3054
3090
|
let p;
|
|
3055
3091
|
if (e[2] !== o || e[3] !== a || e[4] !== n) {
|
|
3056
3092
|
let l;
|
|
3057
|
-
e[6] !== a || e[7] !== n ? (l = (c) => /* @__PURE__ */
|
|
3093
|
+
e[6] !== a || e[7] !== n ? (l = (c) => /* @__PURE__ */ g.jsx(Vn, { meta: c, size: n, itemBar: a }, c.id), e[6] = a, e[7] = n, e[8] = l) : l = e[8], p = o.map(l), e[2] = o, e[3] = a, e[4] = n, e[5] = p;
|
|
3058
3094
|
} else
|
|
3059
3095
|
p = e[5];
|
|
3060
3096
|
let s;
|
|
3061
|
-
return e[9] !== r || e[10] !== p ? (s = /* @__PURE__ */
|
|
3062
|
-
},
|
|
3097
|
+
return e[9] !== r || e[10] !== p ? (s = /* @__PURE__ */ g.jsx(_e, { direction: "row", spacing: 1, sx: r, children: p }), e[9] = r, e[10] = p, e[11] = s) : s = e[11], s;
|
|
3098
|
+
}, Vn = (t) => {
|
|
3063
3099
|
const e = V.c(54), {
|
|
3064
3100
|
meta: i,
|
|
3065
3101
|
size: n,
|
|
@@ -3067,32 +3103,32 @@ const Nn = {
|
|
|
3067
3103
|
} = t, {
|
|
3068
3104
|
setImageId: o,
|
|
3069
3105
|
actions: r
|
|
3070
|
-
} =
|
|
3106
|
+
} = Ee(), [p, s] = Oe(a === "always"), [l, c] = Oe(null), {
|
|
3071
3107
|
ref: d,
|
|
3072
|
-
inView:
|
|
3073
|
-
} =
|
|
3108
|
+
inView: f
|
|
3109
|
+
} = Ri(), b = Nt();
|
|
3074
3110
|
let w, y;
|
|
3075
3111
|
e[0] !== a ? (w = () => {
|
|
3076
3112
|
s(a === "always");
|
|
3077
|
-
}, y = [a], e[0] = a, e[1] = w, e[2] = y) : (w = e[1], y = e[2]),
|
|
3113
|
+
}, y = [a], e[0] = a, e[1] = w, e[2] = y) : (w = e[1], y = e[2]), ve(w, y);
|
|
3078
3114
|
let E;
|
|
3079
3115
|
e[3] !== i ? (E = ce.file.thumbnail({
|
|
3080
3116
|
meta: i
|
|
3081
3117
|
}), e[3] = i, e[4] = E) : E = e[4];
|
|
3082
3118
|
let A;
|
|
3083
|
-
e[5] !==
|
|
3119
|
+
e[5] !== f || e[6] !== E ? (A = {
|
|
3084
3120
|
...E,
|
|
3085
|
-
enabled:
|
|
3086
|
-
}, e[5] =
|
|
3121
|
+
enabled: f
|
|
3122
|
+
}, e[5] = f, e[6] = E, e[7] = A) : A = e[7];
|
|
3087
3123
|
const {
|
|
3088
3124
|
data: R
|
|
3089
3125
|
} = ft(A);
|
|
3090
|
-
let
|
|
3091
|
-
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3092
|
-
const P =
|
|
3126
|
+
let D;
|
|
3127
|
+
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = () => s(!0), e[8] = D) : D = e[8];
|
|
3128
|
+
const P = D;
|
|
3093
3129
|
let u;
|
|
3094
3130
|
e[9] !== a ? (u = () => a !== "always" && s(!1), e[9] = a, e[10] = u) : u = e[10];
|
|
3095
|
-
const
|
|
3131
|
+
const H = u;
|
|
3096
3132
|
let $;
|
|
3097
3133
|
e[11] !== l ? ($ = (z) => {
|
|
3098
3134
|
c(l === null ? {
|
|
@@ -3100,19 +3136,19 @@ const Nn = {
|
|
|
3100
3136
|
mouseY: z.clientY
|
|
3101
3137
|
} : null), setTimeout(() => s(!0));
|
|
3102
3138
|
}, e[11] = l, e[12] = $) : $ = e[12];
|
|
3103
|
-
const
|
|
3104
|
-
let
|
|
3105
|
-
e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3139
|
+
const G = $;
|
|
3140
|
+
let B;
|
|
3141
|
+
e[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = ce.file.open(), e[13] = B) : B = e[13];
|
|
3106
3142
|
const {
|
|
3107
3143
|
mutate: N
|
|
3108
|
-
} =
|
|
3144
|
+
} = we(B);
|
|
3109
3145
|
let Z;
|
|
3110
3146
|
e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Z = ce.file.download(), e[14] = Z) : Z = e[14];
|
|
3111
3147
|
const {
|
|
3112
|
-
mutate:
|
|
3113
|
-
} =
|
|
3114
|
-
let
|
|
3115
|
-
e[15] !==
|
|
3148
|
+
mutate: oe
|
|
3149
|
+
} = we(Z);
|
|
3150
|
+
let ae;
|
|
3151
|
+
e[15] !== oe || e[16] !== i || e[17] !== N || e[18] !== o ? (ae = () => {
|
|
3116
3152
|
switch (i.mediaType) {
|
|
3117
3153
|
case "image":
|
|
3118
3154
|
return o(i.id);
|
|
@@ -3121,63 +3157,63 @@ const Nn = {
|
|
|
3121
3157
|
case "video":
|
|
3122
3158
|
return N(i);
|
|
3123
3159
|
default:
|
|
3124
|
-
return
|
|
3160
|
+
return oe(i);
|
|
3125
3161
|
}
|
|
3126
|
-
}, e[15] =
|
|
3127
|
-
const
|
|
3162
|
+
}, e[15] = oe, e[16] = i, e[17] = N, e[18] = o, e[19] = ae) : ae = e[19];
|
|
3163
|
+
const W = ae, J = n ?? $e, ne = n ?? $e;
|
|
3128
3164
|
let ee;
|
|
3129
|
-
e[20] !==
|
|
3130
|
-
width:
|
|
3131
|
-
height:
|
|
3132
|
-
}, e[20] =
|
|
3165
|
+
e[20] !== J || e[21] !== ne ? (ee = {
|
|
3166
|
+
width: J,
|
|
3167
|
+
height: ne
|
|
3168
|
+
}, e[20] = J, e[21] = ne, e[22] = ee) : ee = e[22];
|
|
3133
3169
|
const re = "thumbnail-" + i.id;
|
|
3134
|
-
let
|
|
3135
|
-
e[23] !== i || e[24] !== b ? (
|
|
3170
|
+
let L;
|
|
3171
|
+
e[23] !== i || e[24] !== b ? (L = () => b.prefetchQuery(ce.file.getOne({
|
|
3136
3172
|
meta: i
|
|
3137
|
-
})), e[23] = i, e[24] = b, e[25] =
|
|
3173
|
+
})), e[23] = i, e[24] = b, e[25] = L) : L = e[25];
|
|
3138
3174
|
const m = n ?? $e, h = n ?? $e;
|
|
3139
|
-
let
|
|
3140
|
-
e[26] !== m || e[27] !== h ? (
|
|
3175
|
+
let _;
|
|
3176
|
+
e[26] !== m || e[27] !== h ? (_ = {
|
|
3141
3177
|
cursor: "pointer",
|
|
3142
3178
|
objectFit: "contain",
|
|
3143
3179
|
width: m,
|
|
3144
3180
|
height: h
|
|
3145
|
-
}, e[26] = m, e[27] = h, e[28] =
|
|
3146
|
-
let D;
|
|
3147
|
-
e[29] !== Y || e[30] !== R || e[31] !== re || e[32] !== K || e[33] !== O ? (D = /* @__PURE__ */ x.jsx(se, { component: "img", src: R, loading: "lazy", alt: re, onClick: Y, onMouseEnter: K, sx: O }), e[29] = Y, e[30] = R, e[31] = re, e[32] = K, e[33] = O, e[34] = D) : D = e[34];
|
|
3148
|
-
let j;
|
|
3149
|
-
e[35] !== r || e[36] !== a || e[37] !== i.fileName || e[38] !== H || e[39] !== p ? (j = a !== "hidden" && p && /* @__PURE__ */ x.jsx(fi, { title: /* @__PURE__ */ x.jsx(vi, { title: i.fileName, children: /* @__PURE__ */ x.jsx(se, { children: i.fileName }) }), actionIcon: (r?.download !== !1 || r.delete !== !1) && /* @__PURE__ */ x.jsx(mt, { sx: {
|
|
3150
|
-
color: Si[100]
|
|
3151
|
-
}, onClick: H, children: /* @__PURE__ */ x.jsx(Nt, {}) }) }), e[35] = r, e[36] = a, e[37] = i.fileName, e[38] = H, e[39] = p, e[40] = j) : j = e[40];
|
|
3181
|
+
}, e[26] = m, e[27] = h, e[28] = _) : _ = e[28];
|
|
3152
3182
|
let C;
|
|
3153
|
-
e[
|
|
3154
|
-
|
|
3183
|
+
e[29] !== W || e[30] !== R || e[31] !== re || e[32] !== L || e[33] !== _ ? (C = /* @__PURE__ */ g.jsx(me, { component: "img", src: R, loading: "lazy", alt: re, onClick: W, onMouseEnter: L, sx: _ }), e[29] = W, e[30] = R, e[31] = re, e[32] = L, e[33] = _, e[34] = C) : C = e[34];
|
|
3184
|
+
let j;
|
|
3185
|
+
e[35] !== r || e[36] !== a || e[37] !== i.fileName || e[38] !== G || e[39] !== p ? (j = a !== "hidden" && p && /* @__PURE__ */ g.jsx(xi, { title: /* @__PURE__ */ g.jsx(gi, { title: i.fileName, children: /* @__PURE__ */ g.jsx(me, { children: i.fileName }) }), actionIcon: (r?.download !== !1 || r.delete !== !1) && /* @__PURE__ */ g.jsx(mt, { sx: {
|
|
3186
|
+
color: Ai[100]
|
|
3187
|
+
}, onClick: G, children: /* @__PURE__ */ g.jsx(Kt, {}) }) }), e[35] = r, e[36] = a, e[37] = i.fileName, e[38] = G, e[39] = p, e[40] = j) : j = e[40];
|
|
3188
|
+
let O;
|
|
3189
|
+
e[41] !== H || e[42] !== d || e[43] !== ee || e[44] !== C || e[45] !== j ? (O = /* @__PURE__ */ g.jsxs(hi, { sx: ee, onMouseEnter: P, onMouseLeave: H, ref: d, children: [
|
|
3190
|
+
C,
|
|
3155
3191
|
j
|
|
3156
|
-
] }), e[41] =
|
|
3157
|
-
let k;
|
|
3158
|
-
e[47] !== r || e[48] !== l || e[49] !== i ? (k = (r?.download !== !1 || r.delete !== !1) && /* @__PURE__ */ x.jsx(ri, { meta: i, menu: l, setMenu: c }), e[47] = r, e[48] = l, e[49] = i, e[50] = k) : k = e[50];
|
|
3192
|
+
] }), e[41] = H, e[42] = d, e[43] = ee, e[44] = C, e[45] = j, e[46] = O) : O = e[46];
|
|
3159
3193
|
let S;
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3194
|
+
e[47] !== r || e[48] !== l || e[49] !== i ? (S = (r?.download !== !1 || r.delete !== !1) && /* @__PURE__ */ g.jsx(ci, { meta: i, menu: l, setMenu: c }), e[47] = r, e[48] = l, e[49] = i, e[50] = S) : S = e[50];
|
|
3195
|
+
let T;
|
|
3196
|
+
return e[51] !== O || e[52] !== S ? (T = /* @__PURE__ */ g.jsxs(ut, { children: [
|
|
3197
|
+
O,
|
|
3198
|
+
S
|
|
3199
|
+
] }), e[51] = O, e[52] = S, e[53] = T) : T = e[53], T;
|
|
3200
|
+
}, Xn = (t) => {
|
|
3165
3201
|
const e = V.c(5), {
|
|
3166
3202
|
sx: i
|
|
3167
3203
|
} = t, {
|
|
3168
3204
|
fileMetas: n
|
|
3169
|
-
} =
|
|
3205
|
+
} = Ee();
|
|
3170
3206
|
let a;
|
|
3171
|
-
e[0] !== n ? (a = n.map(
|
|
3207
|
+
e[0] !== n ? (a = n.map(Qn), e[0] = n, e[1] = a) : a = e[1];
|
|
3172
3208
|
let o;
|
|
3173
|
-
return e[2] !== i || e[3] !== a ? (o = /* @__PURE__ */
|
|
3174
|
-
},
|
|
3209
|
+
return e[2] !== i || e[3] !== a ? (o = /* @__PURE__ */ g.jsx(Bt, { dense: !0, sx: i, children: a }), e[2] = i, e[3] = a, e[4] = o) : o = e[4], o;
|
|
3210
|
+
}, Jn = (t) => {
|
|
3175
3211
|
const e = V.c(35), {
|
|
3176
3212
|
meta: i
|
|
3177
3213
|
} = t, {
|
|
3178
3214
|
setImageId: n,
|
|
3179
3215
|
actions: a
|
|
3180
|
-
} =
|
|
3216
|
+
} = Ee(), [o, r] = Oe(null), p = Nt();
|
|
3181
3217
|
let s;
|
|
3182
3218
|
e[0] !== o ? (s = (N) => {
|
|
3183
3219
|
N.stopPropagation(), r(o === null ? {
|
|
@@ -3190,12 +3226,12 @@ const Nn = {
|
|
|
3190
3226
|
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = ce.file.open(), e[2] = c) : c = e[2];
|
|
3191
3227
|
const {
|
|
3192
3228
|
mutate: d
|
|
3193
|
-
} =
|
|
3194
|
-
let
|
|
3195
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
3229
|
+
} = we(c);
|
|
3230
|
+
let f;
|
|
3231
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = ce.file.download(), e[3] = f) : f = e[3];
|
|
3196
3232
|
const {
|
|
3197
3233
|
mutate: b
|
|
3198
|
-
} =
|
|
3234
|
+
} = we(f);
|
|
3199
3235
|
let w;
|
|
3200
3236
|
e[4] !== b || e[5] !== i || e[6] !== d || e[7] !== n ? (w = () => {
|
|
3201
3237
|
switch (i.mediaType) {
|
|
@@ -3214,11 +3250,11 @@ const Nn = {
|
|
|
3214
3250
|
e[9] !== i.mediaType ? (E = () => {
|
|
3215
3251
|
switch (i.mediaType) {
|
|
3216
3252
|
case "image":
|
|
3217
|
-
return /* @__PURE__ */
|
|
3253
|
+
return /* @__PURE__ */ g.jsx($i, {});
|
|
3218
3254
|
case "video":
|
|
3219
|
-
return /* @__PURE__ */
|
|
3255
|
+
return /* @__PURE__ */ g.jsx(Mi, {});
|
|
3220
3256
|
default:
|
|
3221
|
-
return /* @__PURE__ */
|
|
3257
|
+
return /* @__PURE__ */ g.jsx(Fi, {});
|
|
3222
3258
|
}
|
|
3223
3259
|
}, e[9] = i.mediaType, e[10] = E) : E = e[10];
|
|
3224
3260
|
const A = E;
|
|
@@ -3226,46 +3262,46 @@ const Nn = {
|
|
|
3226
3262
|
e[11] !== i || e[12] !== p ? (R = () => p.prefetchQuery(ce.file.getOne({
|
|
3227
3263
|
meta: i
|
|
3228
3264
|
})), e[11] = i, e[12] = p, e[13] = R) : R = e[13];
|
|
3229
|
-
let
|
|
3230
|
-
e[14] !== A ? (
|
|
3265
|
+
let D;
|
|
3266
|
+
e[14] !== A ? (D = /* @__PURE__ */ g.jsx(at, { children: A() }), e[14] = A, e[15] = D) : D = e[15];
|
|
3231
3267
|
const P = `${i.fileName}.${i.fileExtension}`;
|
|
3232
3268
|
let u;
|
|
3233
|
-
e[16] !== P ? (u = /* @__PURE__ */
|
|
3234
|
-
let
|
|
3235
|
-
e[18] !== a || e[19] !== l ? (
|
|
3269
|
+
e[16] !== P ? (u = /* @__PURE__ */ g.jsx(ot, { primary: P }), e[16] = P, e[17] = u) : u = e[17];
|
|
3270
|
+
let H;
|
|
3271
|
+
e[18] !== a || e[19] !== l ? (H = (a?.download !== !1 || a.delete !== !1) && /* @__PURE__ */ g.jsx(mt, { edge: "end", onClick: l, children: /* @__PURE__ */ g.jsx(Kt, {}) }), e[18] = a, e[19] = l, e[20] = H) : H = e[20];
|
|
3236
3272
|
let $;
|
|
3237
|
-
e[21] !== i.id || e[22] !== y || e[23] !==
|
|
3238
|
-
|
|
3273
|
+
e[21] !== i.id || e[22] !== y || e[23] !== H || e[24] !== R || e[25] !== D || e[26] !== u ? ($ = /* @__PURE__ */ g.jsxs(nt, { onClick: y, onMouseEnter: R, children: [
|
|
3274
|
+
D,
|
|
3239
3275
|
u,
|
|
3240
|
-
B
|
|
3241
|
-
] }, i.id), e[21] = i.id, e[22] = y, e[23] = B, e[24] = R, e[25] = T, e[26] = u, e[27] = $) : $ = e[27];
|
|
3242
|
-
let H;
|
|
3243
|
-
e[28] !== a || e[29] !== o || e[30] !== i ? (H = (a?.download !== !1 || a.delete !== !1) && /* @__PURE__ */ x.jsx(ri, { meta: i, menu: o, setMenu: r }), e[28] = a, e[29] = o, e[30] = i, e[31] = H) : H = e[31];
|
|
3244
|
-
let W;
|
|
3245
|
-
return e[32] !== $ || e[33] !== H ? (W = /* @__PURE__ */ x.jsxs(ut, { children: [
|
|
3246
|
-
$,
|
|
3247
3276
|
H
|
|
3248
|
-
] }), e[
|
|
3277
|
+
] }, i.id), e[21] = i.id, e[22] = y, e[23] = H, e[24] = R, e[25] = D, e[26] = u, e[27] = $) : $ = e[27];
|
|
3278
|
+
let G;
|
|
3279
|
+
e[28] !== a || e[29] !== o || e[30] !== i ? (G = (a?.download !== !1 || a.delete !== !1) && /* @__PURE__ */ g.jsx(ci, { meta: i, menu: o, setMenu: r }), e[28] = a, e[29] = o, e[30] = i, e[31] = G) : G = e[31];
|
|
3280
|
+
let B;
|
|
3281
|
+
return e[32] !== $ || e[33] !== G ? (B = /* @__PURE__ */ g.jsxs(ut, { children: [
|
|
3282
|
+
$,
|
|
3283
|
+
G
|
|
3284
|
+
] }), e[32] = $, e[33] = G, e[34] = B) : B = e[34], B;
|
|
3249
3285
|
};
|
|
3250
|
-
function
|
|
3251
|
-
return /* @__PURE__ */
|
|
3286
|
+
function Qn(t) {
|
|
3287
|
+
return /* @__PURE__ */ g.jsx(Jn, { meta: t }, t.id);
|
|
3252
3288
|
}
|
|
3253
|
-
const
|
|
3289
|
+
const Zn = ({
|
|
3254
3290
|
metaId: t
|
|
3255
3291
|
}) => {
|
|
3256
3292
|
const {
|
|
3257
3293
|
fileMetas: e,
|
|
3258
3294
|
setImageId: i
|
|
3259
|
-
} =
|
|
3295
|
+
} = Ee(), n = e.find((l) => l.id === t), {
|
|
3260
3296
|
data: a
|
|
3261
3297
|
} = ft(ce.file.getOne({
|
|
3262
3298
|
meta: n
|
|
3263
3299
|
}));
|
|
3264
|
-
|
|
3300
|
+
ve(() => (t && globalThis.addEventListener("keydown", o), () => {
|
|
3265
3301
|
globalThis.removeEventListener("keydown", o);
|
|
3266
3302
|
}), [t]);
|
|
3267
3303
|
const o = (l) => {
|
|
3268
|
-
const c = e.filter((
|
|
3304
|
+
const c = e.filter((f) => f.mediaType === "image"), d = c.findIndex((f) => f.id === t);
|
|
3269
3305
|
switch (l.key) {
|
|
3270
3306
|
case "ArrowLeft":
|
|
3271
3307
|
return r(c, d);
|
|
@@ -3286,21 +3322,21 @@ const Jn = ({
|
|
|
3286
3322
|
i(d.id);
|
|
3287
3323
|
}
|
|
3288
3324
|
}, s = () => i("");
|
|
3289
|
-
return t ? /* @__PURE__ */
|
|
3290
|
-
/* @__PURE__ */
|
|
3325
|
+
return t ? /* @__PURE__ */ g.jsxs(yi, { open: !0, onClose: s, maxWidth: "xl", children: [
|
|
3326
|
+
/* @__PURE__ */ g.jsx(me, { component: "img", src: a, alt: t, sx: {
|
|
3291
3327
|
maxWidth: "100vw",
|
|
3292
3328
|
maxHeight: {
|
|
3293
3329
|
xs: "calc(100vh - 56px)",
|
|
3294
3330
|
sm: "calc(100vh - 64px)"
|
|
3295
3331
|
}
|
|
3296
3332
|
} }),
|
|
3297
|
-
/* @__PURE__ */
|
|
3333
|
+
/* @__PURE__ */ g.jsx(bi, { size: "medium", onClick: s, sx: {
|
|
3298
3334
|
position: "fixed",
|
|
3299
3335
|
top: 8,
|
|
3300
3336
|
right: 8
|
|
3301
|
-
}, children: /* @__PURE__ */
|
|
3337
|
+
}, children: /* @__PURE__ */ g.jsx(qi, {}) })
|
|
3302
3338
|
] }) : null;
|
|
3303
|
-
},
|
|
3339
|
+
}, Pa = (t) => {
|
|
3304
3340
|
const e = V.c(26), {
|
|
3305
3341
|
subId: i,
|
|
3306
3342
|
onDelete: n,
|
|
@@ -3322,20 +3358,20 @@ const Jn = ({
|
|
|
3322
3358
|
} = ft(s);
|
|
3323
3359
|
let c;
|
|
3324
3360
|
e[5] !== l ? (c = l === void 0 ? [] : l, e[5] = l, e[6] = c) : c = e[6];
|
|
3325
|
-
const d = c, [
|
|
3361
|
+
const d = c, [f, b] = Oe("");
|
|
3326
3362
|
let w, y, E, A;
|
|
3327
3363
|
if (e[7] !== a || e[8] !== o || e[9] !== d || e[10] !== n) {
|
|
3328
3364
|
A = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
3329
3365
|
e: {
|
|
3330
3366
|
const P = {
|
|
3331
|
-
Grid:
|
|
3332
|
-
List:
|
|
3367
|
+
Grid: Un,
|
|
3368
|
+
List: Xn
|
|
3333
3369
|
};
|
|
3334
3370
|
if (d.length === 0) {
|
|
3335
3371
|
A = null;
|
|
3336
3372
|
break e;
|
|
3337
3373
|
}
|
|
3338
|
-
w =
|
|
3374
|
+
w = pi.Provider, e[15] !== a || e[16] !== d || e[17] !== n ? (y = {
|
|
3339
3375
|
fileMetas: d,
|
|
3340
3376
|
onDelete: n,
|
|
3341
3377
|
actions: a,
|
|
@@ -3348,13 +3384,13 @@ const Jn = ({
|
|
|
3348
3384
|
if (A !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
|
|
3349
3385
|
return A;
|
|
3350
3386
|
let R;
|
|
3351
|
-
e[19] !==
|
|
3352
|
-
let
|
|
3353
|
-
return e[21] !== w || e[22] !== y || e[23] !== E || e[24] !== R ? (
|
|
3387
|
+
e[19] !== f ? (R = /* @__PURE__ */ g.jsx(Zn, { metaId: f }), e[19] = f, e[20] = R) : R = e[20];
|
|
3388
|
+
let D;
|
|
3389
|
+
return e[21] !== w || e[22] !== y || e[23] !== E || e[24] !== R ? (D = /* @__PURE__ */ g.jsxs(w, { value: y, children: [
|
|
3354
3390
|
E,
|
|
3355
3391
|
R
|
|
3356
|
-
] }), e[21] = w, e[22] = y, e[23] = E, e[24] = R, e[25] =
|
|
3357
|
-
},
|
|
3392
|
+
] }), e[21] = w, e[22] = y, e[23] = E, e[24] = R, e[25] = D) : D = e[25], D;
|
|
3393
|
+
}, ea = (t) => Array.isArray(t), Ra = (t) => {
|
|
3358
3394
|
const e = V.c(20), {
|
|
3359
3395
|
params: i,
|
|
3360
3396
|
slotProps: n,
|
|
@@ -3365,7 +3401,7 @@ const Jn = ({
|
|
|
3365
3401
|
let o;
|
|
3366
3402
|
e[0] !== a ? (o = (l) => a ? a(l) : l, e[0] = a, e[1] = o) : o = e[1];
|
|
3367
3403
|
const r = o;
|
|
3368
|
-
if (
|
|
3404
|
+
if (ea(i.value)) {
|
|
3369
3405
|
let l;
|
|
3370
3406
|
e[2] !== i.colDef.computedWidth ? (l = {
|
|
3371
3407
|
overflowX: "auto",
|
|
@@ -3374,88 +3410,88 @@ const Jn = ({
|
|
|
3374
3410
|
}, e[2] = i.colDef.computedWidth, e[3] = l) : l = e[3];
|
|
3375
3411
|
let c;
|
|
3376
3412
|
if (e[4] !== r || e[5] !== i.value || e[6] !== n) {
|
|
3377
|
-
let
|
|
3378
|
-
e[8] !== r || e[9] !== n ? (
|
|
3413
|
+
let f;
|
|
3414
|
+
e[8] !== r || e[9] !== n ? (f = (b, w) => /* @__PURE__ */ g.jsx(yt, { label: r(b), ...n }, `${w + 1}-chip-input-cell`), e[8] = r, e[9] = n, e[10] = f) : f = e[10], c = i.value.map(f), e[4] = r, e[5] = i.value, e[6] = n, e[7] = c;
|
|
3379
3415
|
} else
|
|
3380
3416
|
c = e[7];
|
|
3381
3417
|
let d;
|
|
3382
|
-
return e[11] !== l || e[12] !== c ? (d = /* @__PURE__ */
|
|
3418
|
+
return e[11] !== l || e[12] !== c ? (d = /* @__PURE__ */ g.jsx(_e, { direction: "row", alignItems: "center", gap: 1, sx: l, children: c }), e[11] = l, e[12] = c, e[13] = d) : d = e[13], d;
|
|
3383
3419
|
}
|
|
3384
3420
|
let p;
|
|
3385
3421
|
e[14] !== r || e[15] !== i.value ? (p = r(i.value), e[14] = r, e[15] = i.value, e[16] = p) : p = e[16];
|
|
3386
3422
|
let s;
|
|
3387
|
-
return e[17] !== n || e[18] !== p ? (s = /* @__PURE__ */
|
|
3388
|
-
},
|
|
3423
|
+
return e[17] !== n || e[18] !== p ? (s = /* @__PURE__ */ g.jsx(yt, { label: p, ...n }), e[17] = n, e[18] = p, e[19] = s) : s = e[19], s;
|
|
3424
|
+
}, za = (t) => {
|
|
3389
3425
|
const e = V.c(3), {
|
|
3390
3426
|
colDef: i
|
|
3391
3427
|
} = t;
|
|
3392
3428
|
let n;
|
|
3393
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */
|
|
3429
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ g.jsx(Li, { color: "disabled", fontSize: "small" }), e[0] = n) : n = e[0];
|
|
3394
3430
|
let a;
|
|
3395
|
-
return e[1] !== i.headerName ? (a = /* @__PURE__ */
|
|
3396
|
-
},
|
|
3431
|
+
return e[1] !== i.headerName ? (a = /* @__PURE__ */ g.jsx(Yi, { endIcon: n, variant: "body2", className: "MuiDataGrid-columnHeaderTitle", children: i.headerName }), e[1] = i.headerName, e[2] = a) : a = e[2], a;
|
|
3432
|
+
}, ta = ke.forwardRef(function(e, i) {
|
|
3397
3433
|
const n = V.c(3);
|
|
3398
3434
|
let a;
|
|
3399
|
-
return n[0] !== e || n[1] !== i ? (a = /* @__PURE__ */
|
|
3400
|
-
}),
|
|
3435
|
+
return n[0] !== e || n[1] !== i ? (a = /* @__PURE__ */ g.jsx(wi, { ref: i, component: "a", ...e }), n[0] = e, n[1] = i, n[2] = a) : a = n[2], a;
|
|
3436
|
+
}), ia = Ce(ta), Ia = (t) => {
|
|
3401
3437
|
const e = V.c(2);
|
|
3402
3438
|
let i;
|
|
3403
|
-
return e[0] !== t ? (i = /* @__PURE__ */
|
|
3404
|
-
},
|
|
3439
|
+
return e[0] !== t ? (i = /* @__PURE__ */ g.jsx(ia, { ...t }), e[0] = t, e[1] = i) : i = e[1], i;
|
|
3440
|
+
}, na = ke.forwardRef(function(e, i) {
|
|
3405
3441
|
const n = V.c(3);
|
|
3406
3442
|
let a;
|
|
3407
|
-
return n[0] !== e || n[1] !== i ? (a = /* @__PURE__ */
|
|
3408
|
-
}),
|
|
3443
|
+
return n[0] !== e || n[1] !== i ? (a = /* @__PURE__ */ g.jsx(Wi, { ref: i, component: "a", ...e }), n[0] = e, n[1] = i, n[2] = a) : a = n[2], a;
|
|
3444
|
+
}), aa = Ce(na), Fa = (t) => {
|
|
3409
3445
|
const e = V.c(2);
|
|
3410
3446
|
let i;
|
|
3411
|
-
return e[0] !== t ? (i = /* @__PURE__ */
|
|
3412
|
-
},
|
|
3447
|
+
return e[0] !== t ? (i = /* @__PURE__ */ g.jsx(aa, { ...t }), e[0] = t, e[1] = i) : i = e[1], i;
|
|
3448
|
+
}, oa = ke.forwardRef(function(e, i) {
|
|
3413
3449
|
const n = V.c(3);
|
|
3414
3450
|
let a;
|
|
3415
|
-
return n[0] !== e || n[1] !== i ? (a = /* @__PURE__ */
|
|
3416
|
-
}),
|
|
3451
|
+
return n[0] !== e || n[1] !== i ? (a = /* @__PURE__ */ g.jsx(mt, { ref: i, component: "a", ...e }), n[0] = e, n[1] = i, n[2] = a) : a = n[2], a;
|
|
3452
|
+
}), ra = Ce(oa), $a = (t) => {
|
|
3417
3453
|
const e = V.c(2);
|
|
3418
3454
|
let i;
|
|
3419
|
-
return e[0] !== t ? (i = /* @__PURE__ */
|
|
3420
|
-
},
|
|
3455
|
+
return e[0] !== t ? (i = /* @__PURE__ */ g.jsx(ra, { ...t }), e[0] = t, e[1] = i) : i = e[1], i;
|
|
3456
|
+
}, pa = ke.forwardRef(function(e, i) {
|
|
3421
3457
|
const n = V.c(3);
|
|
3422
3458
|
let a;
|
|
3423
|
-
return n[0] !== e || n[1] !== i ? (a = /* @__PURE__ */
|
|
3424
|
-
}),
|
|
3459
|
+
return n[0] !== e || n[1] !== i ? (a = /* @__PURE__ */ g.jsx(ji, { ref: i, ...e }), n[0] = e, n[1] = i, n[2] = a) : a = n[2], a;
|
|
3460
|
+
}), ca = Ce(pa), Ma = (t) => {
|
|
3425
3461
|
const e = V.c(2);
|
|
3426
3462
|
let i;
|
|
3427
|
-
return e[0] !== t ? (i = /* @__PURE__ */
|
|
3428
|
-
},
|
|
3463
|
+
return e[0] !== t ? (i = /* @__PURE__ */ g.jsx(ca, { ...t }), e[0] = t, e[1] = i) : i = e[1], i;
|
|
3464
|
+
}, la = ke.forwardRef(function(e, i) {
|
|
3429
3465
|
const n = V.c(3);
|
|
3430
3466
|
let a;
|
|
3431
|
-
return n[0] !== e || n[1] !== i ? (a = /* @__PURE__ */
|
|
3432
|
-
}),
|
|
3467
|
+
return n[0] !== e || n[1] !== i ? (a = /* @__PURE__ */ g.jsx(ki, { ref: i, component: "a", ...e }), n[0] = e, n[1] = i, n[2] = a) : a = n[2], a;
|
|
3468
|
+
}), sa = Ce(la), qa = (t) => {
|
|
3433
3469
|
const e = V.c(2);
|
|
3434
3470
|
let i;
|
|
3435
|
-
return e[0] !== t ? (i = /* @__PURE__ */
|
|
3471
|
+
return e[0] !== t ? (i = /* @__PURE__ */ g.jsx(sa, { ...t }), e[0] = t, e[1] = i) : i = e[1], i;
|
|
3436
3472
|
};
|
|
3437
|
-
function
|
|
3473
|
+
function La() {
|
|
3438
3474
|
const t = V.c(6), {
|
|
3439
3475
|
t: e
|
|
3440
3476
|
} = dt();
|
|
3441
3477
|
let i;
|
|
3442
|
-
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */
|
|
3478
|
+
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ g.jsx(be, { variant: "h3", component: "span", fontWeight: 500, sx: {
|
|
3443
3479
|
lineHeight: 1
|
|
3444
3480
|
}, children: "404" }), t[0] = i) : i = t[0];
|
|
3445
3481
|
let n;
|
|
3446
|
-
t[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */
|
|
3482
|
+
t[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ g.jsx(Ht, { orientation: "vertical", flexItem: !0, sx: {
|
|
3447
3483
|
mx: 3
|
|
3448
3484
|
} }), t[1] = n) : n = t[1];
|
|
3449
3485
|
let a;
|
|
3450
3486
|
t[2] !== e ? (a = e("Layout.ThisPageCouldNotBeFound"), t[2] = e, t[3] = a) : a = t[3];
|
|
3451
3487
|
let o;
|
|
3452
|
-
return t[4] !== a ? (o = /* @__PURE__ */
|
|
3488
|
+
return t[4] !== a ? (o = /* @__PURE__ */ g.jsx(me, { height: "100vh", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", textAlign: "center", px: 2, children: /* @__PURE__ */ g.jsxs(me, { display: "flex", alignItems: "center", mb: 4, children: [
|
|
3453
3489
|
i,
|
|
3454
3490
|
n,
|
|
3455
|
-
/* @__PURE__ */
|
|
3491
|
+
/* @__PURE__ */ g.jsx(be, { variant: "h5", component: "span", children: a })
|
|
3456
3492
|
] }) }), t[4] = a, t[5] = o) : o = t[5], o;
|
|
3457
3493
|
}
|
|
3458
|
-
const
|
|
3494
|
+
const Wa = (t) => {
|
|
3459
3495
|
const e = V.c(9), {
|
|
3460
3496
|
error: i
|
|
3461
3497
|
} = t;
|
|
@@ -3465,34 +3501,34 @@ const qa = (t) => {
|
|
|
3465
3501
|
}, e[0] = n) : n = e[0];
|
|
3466
3502
|
const a = i.name || "500";
|
|
3467
3503
|
let o;
|
|
3468
|
-
e[1] !== a ? (o = /* @__PURE__ */
|
|
3504
|
+
e[1] !== a ? (o = /* @__PURE__ */ g.jsx(be, { variant: "h3", component: "span", fontWeight: 500, sx: n, children: a }), e[1] = a, e[2] = o) : o = e[2];
|
|
3469
3505
|
let r;
|
|
3470
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */
|
|
3506
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ g.jsx(Ht, { orientation: "vertical", flexItem: !0, sx: {
|
|
3471
3507
|
mx: 3
|
|
3472
3508
|
} }), e[3] = r) : r = e[3];
|
|
3473
3509
|
let p;
|
|
3474
|
-
e[4] !== i.message ? (p = /* @__PURE__ */
|
|
3510
|
+
e[4] !== i.message ? (p = /* @__PURE__ */ g.jsx(be, { variant: "h5", component: "span", children: i.message }), e[4] = i.message, e[5] = p) : p = e[5];
|
|
3475
3511
|
let s;
|
|
3476
|
-
return e[6] !== o || e[7] !== p ? (s = /* @__PURE__ */
|
|
3512
|
+
return e[6] !== o || e[7] !== p ? (s = /* @__PURE__ */ g.jsx(me, { height: "100vh", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", textAlign: "center", px: 2, children: /* @__PURE__ */ g.jsxs(me, { display: "flex", alignItems: "center", mb: 4, children: [
|
|
3477
3513
|
o,
|
|
3478
3514
|
r,
|
|
3479
3515
|
p
|
|
3480
3516
|
] }) }), e[6] = o, e[7] = p, e[8] = s) : s = e[8], s;
|
|
3481
3517
|
};
|
|
3482
3518
|
export {
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3519
|
+
Ra as ChipInputCell,
|
|
3520
|
+
Aa as Dropzone,
|
|
3521
|
+
za as EditableColumnHeader,
|
|
3522
|
+
Pa as FileViewer,
|
|
3523
|
+
Ca as Fullscreen,
|
|
3524
|
+
Ia as RouterButton,
|
|
3525
|
+
Wa as RouterError,
|
|
3526
|
+
Fa as RouterGridActionsCellItem,
|
|
3527
|
+
$a as RouterIconButton,
|
|
3528
|
+
Ma as RouterLink,
|
|
3529
|
+
Ha as RouterListItemButton,
|
|
3530
|
+
La as RouterNotFound,
|
|
3531
|
+
qa as RouterTab,
|
|
3532
|
+
Yi as TypographyWithIcon
|
|
3497
3533
|
};
|
|
3498
3534
|
//# sourceMappingURL=components.js.map
|