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