@lanaco/lnc-react-ui 4.0.211 → 4.0.212
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/DragAndDropFile.cjs +10 -10
- package/dist/DragAndDropFile.js +374 -348
- package/dist/DragDropFiles.cjs +4 -4
- package/dist/DragDropFiles.js +38 -39
- package/package.json +1 -1
package/dist/DragAndDropFile.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsxs as Ha, jsx as
|
|
2
|
-
import wi, { useMemo as
|
|
3
|
-
import { s as
|
|
1
|
+
import { jsxs as Ha, jsx as pa, Fragment as yi } from "react/jsx-runtime";
|
|
2
|
+
import wi, { useMemo as G, useRef as oa, useReducer as ki, useEffect as ga, useCallback as y, forwardRef as ei, useImperativeHandle as ji, Fragment as Di, useState as Wa, cloneElement as zi } from "react";
|
|
3
|
+
import { s as Ra } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
4
|
import Na from "./Icon.js";
|
|
5
|
-
import { P as
|
|
5
|
+
import { P as d } from "./index-CblbdqjE.js";
|
|
6
6
|
import { b as M } from "./tslib.es6-DQ-SzcmG.js";
|
|
7
7
|
import Ei from "./Button.js";
|
|
8
|
-
import { c as Ua } from "./utils-B2fsQ6PS.js";
|
|
9
|
-
import { u as
|
|
10
|
-
const
|
|
8
|
+
import { c as Ua, m as Ai } from "./utils-B2fsQ6PS.js";
|
|
9
|
+
import { u as Fi } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
10
|
+
const Oi = /* @__PURE__ */ new Map([
|
|
11
11
|
// https://github.com/guzzle/psr7/blob/2d9260799e713f1c475d3c5fdc3d6561ff7441b2/src/MimeType.php
|
|
12
12
|
["1km", "application/vnd.1000minds.decision-model+xml"],
|
|
13
13
|
["3dml", "text/vnd.in3d.3dml"],
|
|
@@ -1210,14 +1210,14 @@ const Fi = /* @__PURE__ */ new Map([
|
|
|
1210
1210
|
["zmm", "application/vnd.handheld-entertainment+xml"],
|
|
1211
1211
|
["zsh", "text/x-scriptzsh"]
|
|
1212
1212
|
]);
|
|
1213
|
-
function
|
|
1214
|
-
const n =
|
|
1213
|
+
function V(a, i, t) {
|
|
1214
|
+
const n = _i(a), { webkitRelativePath: e } = a, o = typeof i == "string" ? i : typeof e == "string" && e.length > 0 ? e : `./${a.name}`;
|
|
1215
1215
|
return typeof n.path != "string" && Ya(n, "path", o), Ya(n, "relativePath", o), n;
|
|
1216
1216
|
}
|
|
1217
|
-
function
|
|
1217
|
+
function _i(a) {
|
|
1218
1218
|
const { name: i } = a;
|
|
1219
1219
|
if (i && i.lastIndexOf(".") !== -1 && !a.type) {
|
|
1220
|
-
const n = i.split(".").pop().toLowerCase(), e =
|
|
1220
|
+
const n = i.split(".").pop().toLowerCase(), e = Oi.get(n);
|
|
1221
1221
|
e && Object.defineProperty(a, "type", {
|
|
1222
1222
|
value: e,
|
|
1223
1223
|
writable: !1,
|
|
@@ -1235,51 +1235,51 @@ function Ya(a, i, t) {
|
|
|
1235
1235
|
enumerable: !0
|
|
1236
1236
|
});
|
|
1237
1237
|
}
|
|
1238
|
-
const
|
|
1238
|
+
const Pi = [
|
|
1239
1239
|
// Thumbnail cache files for macOS and Windows
|
|
1240
1240
|
".DS_Store",
|
|
1241
1241
|
// macOs
|
|
1242
1242
|
"Thumbs.db"
|
|
1243
1243
|
// Windows
|
|
1244
1244
|
];
|
|
1245
|
-
function
|
|
1245
|
+
function Ci(a) {
|
|
1246
1246
|
return M(this, void 0, void 0, function* () {
|
|
1247
|
-
return
|
|
1247
|
+
return ba(a) && Si(a.dataTransfer) ? Ri(a.dataTransfer, a.type) : Ti(a) ? qi(a) : Array.isArray(a) && a.every((i) => "getFile" in i && typeof i.getFile == "function") ? Ii(a) : [];
|
|
1248
1248
|
});
|
|
1249
1249
|
}
|
|
1250
|
-
function Ci(a) {
|
|
1251
|
-
return ua(a);
|
|
1252
|
-
}
|
|
1253
1250
|
function Si(a) {
|
|
1254
|
-
return
|
|
1255
|
-
}
|
|
1256
|
-
function ua(a) {
|
|
1257
|
-
return typeof a == "object" && a !== null;
|
|
1251
|
+
return ba(a);
|
|
1258
1252
|
}
|
|
1259
1253
|
function Ti(a) {
|
|
1260
|
-
return
|
|
1254
|
+
return ba(a) && ba(a.target);
|
|
1255
|
+
}
|
|
1256
|
+
function ba(a) {
|
|
1257
|
+
return typeof a == "object" && a !== null;
|
|
1261
1258
|
}
|
|
1262
1259
|
function qi(a) {
|
|
1260
|
+
return Ca(a.target.files).map((i) => V(i));
|
|
1261
|
+
}
|
|
1262
|
+
function Ii(a) {
|
|
1263
1263
|
return M(this, void 0, void 0, function* () {
|
|
1264
|
-
return (yield Promise.all(a.map((t) => t.getFile()))).map((t) =>
|
|
1264
|
+
return (yield Promise.all(a.map((t) => t.getFile()))).map((t) => V(t));
|
|
1265
1265
|
});
|
|
1266
1266
|
}
|
|
1267
|
-
function
|
|
1267
|
+
function Ri(a, i) {
|
|
1268
1268
|
return M(this, void 0, void 0, function* () {
|
|
1269
1269
|
if (a.items) {
|
|
1270
|
-
const t =
|
|
1270
|
+
const t = Ca(a.items).filter((e) => e.kind === "file");
|
|
1271
1271
|
if (i !== "drop")
|
|
1272
1272
|
return t;
|
|
1273
|
-
const n = yield Promise.all(t.map(
|
|
1273
|
+
const n = yield Promise.all(t.map(Li));
|
|
1274
1274
|
return Ga(pi(n));
|
|
1275
1275
|
}
|
|
1276
|
-
return Ga(
|
|
1276
|
+
return Ga(Ca(a.files).map((t) => V(t)));
|
|
1277
1277
|
});
|
|
1278
1278
|
}
|
|
1279
1279
|
function Ga(a) {
|
|
1280
|
-
return a.filter((i) =>
|
|
1280
|
+
return a.filter((i) => Pi.indexOf(i.name) === -1);
|
|
1281
1281
|
}
|
|
1282
|
-
function
|
|
1282
|
+
function Ca(a) {
|
|
1283
1283
|
if (a === null)
|
|
1284
1284
|
return [];
|
|
1285
1285
|
const i = [];
|
|
@@ -1289,7 +1289,7 @@ function Fa(a) {
|
|
|
1289
1289
|
}
|
|
1290
1290
|
return i;
|
|
1291
1291
|
}
|
|
1292
|
-
function
|
|
1292
|
+
function Li(a) {
|
|
1293
1293
|
if (typeof a.webkitGetAsEntry != "function")
|
|
1294
1294
|
return Va(a);
|
|
1295
1295
|
const i = a.webkitGetAsEntry();
|
|
@@ -1310,16 +1310,16 @@ function Va(a, i) {
|
|
|
1310
1310
|
throw new Error(`${a} is not a File`);
|
|
1311
1311
|
if (o !== void 0) {
|
|
1312
1312
|
const l = yield o.getFile();
|
|
1313
|
-
return l.handle = o,
|
|
1313
|
+
return l.handle = o, V(l);
|
|
1314
1314
|
}
|
|
1315
1315
|
}
|
|
1316
1316
|
const n = a.getAsFile();
|
|
1317
1317
|
if (!n)
|
|
1318
1318
|
throw new Error(`${a} is not a File`);
|
|
1319
|
-
return
|
|
1319
|
+
return V(n, (t = i == null ? void 0 : i.fullPath) !== null && t !== void 0 ? t : void 0);
|
|
1320
1320
|
});
|
|
1321
1321
|
}
|
|
1322
|
-
function
|
|
1322
|
+
function $i(a) {
|
|
1323
1323
|
return M(this, void 0, void 0, function* () {
|
|
1324
1324
|
return a.isDirectory ? oi(a) : Mi(a);
|
|
1325
1325
|
});
|
|
@@ -1331,7 +1331,7 @@ function oi(a) {
|
|
|
1331
1331
|
function o() {
|
|
1332
1332
|
i.readEntries((l) => M(this, void 0, void 0, function* () {
|
|
1333
1333
|
if (l.length) {
|
|
1334
|
-
const r = Promise.all(l.map(
|
|
1334
|
+
const r = Promise.all(l.map($i));
|
|
1335
1335
|
e.push(r), o();
|
|
1336
1336
|
} else
|
|
1337
1337
|
try {
|
|
@@ -1351,7 +1351,7 @@ function Mi(a) {
|
|
|
1351
1351
|
return M(this, void 0, void 0, function* () {
|
|
1352
1352
|
return new Promise((i, t) => {
|
|
1353
1353
|
a.file((n) => {
|
|
1354
|
-
const e =
|
|
1354
|
+
const e = V(n, a.fullPath);
|
|
1355
1355
|
i(e);
|
|
1356
1356
|
}, (n) => {
|
|
1357
1357
|
t(n);
|
|
@@ -1359,7 +1359,7 @@ function Mi(a) {
|
|
|
1359
1359
|
});
|
|
1360
1360
|
});
|
|
1361
1361
|
}
|
|
1362
|
-
var
|
|
1362
|
+
var _a = function(a, i) {
|
|
1363
1363
|
if (a && i) {
|
|
1364
1364
|
var t = Array.isArray(i) ? i : i.split(",");
|
|
1365
1365
|
if (t.length === 0)
|
|
@@ -1373,17 +1373,17 @@ var Ea = function(a, i) {
|
|
|
1373
1373
|
return !0;
|
|
1374
1374
|
};
|
|
1375
1375
|
function Ja(a) {
|
|
1376
|
-
return
|
|
1376
|
+
return Hi(a) || Bi(a) || li(a) || Ki();
|
|
1377
1377
|
}
|
|
1378
|
-
function
|
|
1378
|
+
function Ki() {
|
|
1379
1379
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1380
1380
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1381
1381
|
}
|
|
1382
|
-
function
|
|
1382
|
+
function Bi(a) {
|
|
1383
1383
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
|
|
1384
1384
|
}
|
|
1385
|
-
function
|
|
1386
|
-
if (Array.isArray(a)) return
|
|
1385
|
+
function Hi(a) {
|
|
1386
|
+
if (Array.isArray(a)) return Sa(a);
|
|
1387
1387
|
}
|
|
1388
1388
|
function Qa(a, i) {
|
|
1389
1389
|
var t = Object.keys(a);
|
|
@@ -1409,36 +1409,36 @@ function Xa(a) {
|
|
|
1409
1409
|
function ci(a, i, t) {
|
|
1410
1410
|
return i in a ? Object.defineProperty(a, i, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[i] = t, a;
|
|
1411
1411
|
}
|
|
1412
|
-
function
|
|
1413
|
-
return
|
|
1412
|
+
function ca(a, i) {
|
|
1413
|
+
return Ui(a) || Ni(a, i) || li(a, i) || Wi();
|
|
1414
1414
|
}
|
|
1415
|
-
function
|
|
1415
|
+
function Wi() {
|
|
1416
1416
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1417
1417
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1418
1418
|
}
|
|
1419
1419
|
function li(a, i) {
|
|
1420
1420
|
if (a) {
|
|
1421
|
-
if (typeof a == "string") return
|
|
1421
|
+
if (typeof a == "string") return Sa(a, i);
|
|
1422
1422
|
var t = Object.prototype.toString.call(a).slice(8, -1);
|
|
1423
1423
|
if (t === "Object" && a.constructor && (t = a.constructor.name), t === "Map" || t === "Set") return Array.from(a);
|
|
1424
|
-
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return
|
|
1424
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Sa(a, i);
|
|
1425
1425
|
}
|
|
1426
1426
|
}
|
|
1427
|
-
function
|
|
1427
|
+
function Sa(a, i) {
|
|
1428
1428
|
(i == null || i > a.length) && (i = a.length);
|
|
1429
1429
|
for (var t = 0, n = new Array(i); t < i; t++)
|
|
1430
1430
|
n[t] = a[t];
|
|
1431
1431
|
return n;
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1433
|
+
function Ni(a, i) {
|
|
1434
1434
|
var t = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
|
|
1435
1435
|
if (t != null) {
|
|
1436
1436
|
var n = [], e = !0, o = !1, l, r;
|
|
1437
1437
|
try {
|
|
1438
1438
|
for (t = t.call(a); !(e = (l = t.next()).done) && (n.push(l.value), !(i && n.length === i)); e = !0)
|
|
1439
1439
|
;
|
|
1440
|
-
} catch (
|
|
1441
|
-
o = !0, r =
|
|
1440
|
+
} catch (b) {
|
|
1441
|
+
o = !0, r = b;
|
|
1442
1442
|
} finally {
|
|
1443
1443
|
try {
|
|
1444
1444
|
!e && t.return != null && t.return();
|
|
@@ -1449,58 +1449,58 @@ function Wi(a, i) {
|
|
|
1449
1449
|
return n;
|
|
1450
1450
|
}
|
|
1451
1451
|
}
|
|
1452
|
-
function
|
|
1452
|
+
function Ui(a) {
|
|
1453
1453
|
if (Array.isArray(a)) return a;
|
|
1454
1454
|
}
|
|
1455
|
-
var
|
|
1455
|
+
var Yi = typeof _a == "function" ? _a : _a.default, Gi = "file-invalid-type", Vi = "file-too-large", Ji = "file-too-small", Qi = "too-many-files", Xi = function() {
|
|
1456
1456
|
var i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = i.split(","), n = t.length > 1 ? "one of ".concat(t.join(", ")) : t[0];
|
|
1457
1457
|
return {
|
|
1458
|
-
code:
|
|
1458
|
+
code: Gi,
|
|
1459
1459
|
message: "File type must be ".concat(n)
|
|
1460
1460
|
};
|
|
1461
1461
|
}, Za = function(i) {
|
|
1462
1462
|
return {
|
|
1463
|
-
code:
|
|
1463
|
+
code: Vi,
|
|
1464
1464
|
message: "File is larger than ".concat(i, " ").concat(i === 1 ? "byte" : "bytes")
|
|
1465
1465
|
};
|
|
1466
1466
|
}, ai = function(i) {
|
|
1467
1467
|
return {
|
|
1468
|
-
code:
|
|
1468
|
+
code: Ji,
|
|
1469
1469
|
message: "File is smaller than ".concat(i, " ").concat(i === 1 ? "byte" : "bytes")
|
|
1470
1470
|
};
|
|
1471
|
-
},
|
|
1472
|
-
code:
|
|
1471
|
+
}, Zi = {
|
|
1472
|
+
code: Qi,
|
|
1473
1473
|
message: "Too many files"
|
|
1474
1474
|
};
|
|
1475
1475
|
function ri(a, i) {
|
|
1476
|
-
var t = a.type === "application/x-moz-file" ||
|
|
1477
|
-
return [t, t ? null :
|
|
1476
|
+
var t = a.type === "application/x-moz-file" || Yi(a, i);
|
|
1477
|
+
return [t, t ? null : Xi(i)];
|
|
1478
1478
|
}
|
|
1479
1479
|
function si(a, i, t) {
|
|
1480
|
-
if (
|
|
1481
|
-
if (
|
|
1480
|
+
if ($(a.size))
|
|
1481
|
+
if ($(i) && $(t)) {
|
|
1482
1482
|
if (a.size > t) return [!1, Za(t)];
|
|
1483
1483
|
if (a.size < i) return [!1, ai(i)];
|
|
1484
1484
|
} else {
|
|
1485
|
-
if (
|
|
1486
|
-
if (
|
|
1485
|
+
if ($(i) && a.size < i) return [!1, ai(i)];
|
|
1486
|
+
if ($(t) && a.size > t) return [!1, Za(t)];
|
|
1487
1487
|
}
|
|
1488
1488
|
return [!0, null];
|
|
1489
1489
|
}
|
|
1490
|
-
function
|
|
1490
|
+
function $(a) {
|
|
1491
1491
|
return a != null;
|
|
1492
1492
|
}
|
|
1493
|
-
function
|
|
1493
|
+
function at(a) {
|
|
1494
1494
|
var i = a.files, t = a.accept, n = a.minSize, e = a.maxSize, o = a.multiple, l = a.maxFiles, r = a.validator;
|
|
1495
|
-
return !o && i.length > 1 || o && l >= 1 && i.length > l ? !1 : i.every(function(
|
|
1496
|
-
var
|
|
1497
|
-
return
|
|
1495
|
+
return !o && i.length > 1 || o && l >= 1 && i.length > l ? !1 : i.every(function(b) {
|
|
1496
|
+
var D = ri(b, t), _ = ca(D, 1), A = _[0], P = si(b, n, e), C = ca(P, 1), z = C[0], F = r ? r(b) : null;
|
|
1497
|
+
return A && z && !F;
|
|
1498
1498
|
});
|
|
1499
1499
|
}
|
|
1500
|
-
function
|
|
1500
|
+
function ha(a) {
|
|
1501
1501
|
return typeof a.isPropagationStopped == "function" ? a.isPropagationStopped() : typeof a.cancelBubble < "u" ? a.cancelBubble : !1;
|
|
1502
1502
|
}
|
|
1503
|
-
function
|
|
1503
|
+
function xa(a) {
|
|
1504
1504
|
return a.dataTransfer ? Array.prototype.some.call(a.dataTransfer.types, function(i) {
|
|
1505
1505
|
return i === "Files" || i === "application/x-moz-file";
|
|
1506
1506
|
}) : !!a.target && !!a.target.files;
|
|
@@ -1508,37 +1508,37 @@ function da(a) {
|
|
|
1508
1508
|
function ii(a) {
|
|
1509
1509
|
a.preventDefault();
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1511
|
+
function it(a) {
|
|
1512
1512
|
return a.indexOf("MSIE") !== -1 || a.indexOf("Trident/") !== -1;
|
|
1513
1513
|
}
|
|
1514
|
-
function
|
|
1514
|
+
function tt(a) {
|
|
1515
1515
|
return a.indexOf("Edge/") !== -1;
|
|
1516
1516
|
}
|
|
1517
|
-
function
|
|
1517
|
+
function nt() {
|
|
1518
1518
|
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : window.navigator.userAgent;
|
|
1519
|
-
return
|
|
1519
|
+
return it(a) || tt(a);
|
|
1520
1520
|
}
|
|
1521
|
-
function
|
|
1521
|
+
function E() {
|
|
1522
1522
|
for (var a = arguments.length, i = new Array(a), t = 0; t < a; t++)
|
|
1523
1523
|
i[t] = arguments[t];
|
|
1524
1524
|
return function(n) {
|
|
1525
1525
|
for (var e = arguments.length, o = new Array(e > 1 ? e - 1 : 0), l = 1; l < e; l++)
|
|
1526
1526
|
o[l - 1] = arguments[l];
|
|
1527
1527
|
return i.some(function(r) {
|
|
1528
|
-
return !
|
|
1528
|
+
return !ha(n) && r && r.apply(void 0, [n].concat(o)), ha(n);
|
|
1529
1529
|
});
|
|
1530
1530
|
};
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1532
|
+
function et() {
|
|
1533
1533
|
return "showOpenFilePicker" in window;
|
|
1534
1534
|
}
|
|
1535
|
-
function
|
|
1536
|
-
if (
|
|
1535
|
+
function pt(a) {
|
|
1536
|
+
if ($(a)) {
|
|
1537
1537
|
var i = Object.entries(a).filter(function(t) {
|
|
1538
|
-
var n =
|
|
1538
|
+
var n = ca(t, 2), e = n[0], o = n[1], l = !0;
|
|
1539
1539
|
return di(e) || (console.warn('Skipped "'.concat(e, '" 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.')), l = !1), (!Array.isArray(o) || !o.every(mi)) && (console.warn('Skipped "'.concat(e, '" because an invalid file extension was provided.')), l = !1), l;
|
|
1540
1540
|
}).reduce(function(t, n) {
|
|
1541
|
-
var e =
|
|
1541
|
+
var e = ca(n, 2), o = e[0], l = e[1];
|
|
1542
1542
|
return Xa(Xa({}, t), {}, ci({}, o, l));
|
|
1543
1543
|
}, {});
|
|
1544
1544
|
return [{
|
|
@@ -1549,19 +1549,19 @@ function et(a) {
|
|
|
1549
1549
|
}
|
|
1550
1550
|
return a;
|
|
1551
1551
|
}
|
|
1552
|
-
function
|
|
1553
|
-
if (
|
|
1552
|
+
function ot(a) {
|
|
1553
|
+
if ($(a))
|
|
1554
1554
|
return Object.entries(a).reduce(function(i, t) {
|
|
1555
|
-
var n =
|
|
1555
|
+
var n = ca(t, 2), e = n[0], o = n[1];
|
|
1556
1556
|
return [].concat(Ja(i), [e], Ja(o));
|
|
1557
1557
|
}, []).filter(function(i) {
|
|
1558
1558
|
return di(i) || mi(i);
|
|
1559
1559
|
}).join(",");
|
|
1560
1560
|
}
|
|
1561
|
-
function
|
|
1561
|
+
function ct(a) {
|
|
1562
1562
|
return a instanceof DOMException && (a.name === "AbortError" || a.code === a.ABORT_ERR);
|
|
1563
1563
|
}
|
|
1564
|
-
function
|
|
1564
|
+
function lt(a) {
|
|
1565
1565
|
return a instanceof DOMException && (a.name === "SecurityError" || a.code === a.SECURITY_ERR);
|
|
1566
1566
|
}
|
|
1567
1567
|
function di(a) {
|
|
@@ -1570,50 +1570,50 @@ function di(a) {
|
|
|
1570
1570
|
function mi(a) {
|
|
1571
1571
|
return /^.*\.[\w]+$/.test(a);
|
|
1572
1572
|
}
|
|
1573
|
-
var
|
|
1574
|
-
function
|
|
1575
|
-
return
|
|
1573
|
+
var rt = ["children"], st = ["open"], dt = ["refKey", "role", "onKeyDown", "onFocus", "onBlur", "onClick", "onDragEnter", "onDragOver", "onDragLeave", "onDrop"], mt = ["refKey", "onChange", "onClick"];
|
|
1574
|
+
function ut(a) {
|
|
1575
|
+
return xt(a) || ft(a) || ui(a) || vt();
|
|
1576
1576
|
}
|
|
1577
|
-
function
|
|
1577
|
+
function vt() {
|
|
1578
1578
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1579
1579
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1580
1580
|
}
|
|
1581
|
-
function
|
|
1581
|
+
function ft(a) {
|
|
1582
1582
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null) return Array.from(a);
|
|
1583
1583
|
}
|
|
1584
|
-
function
|
|
1585
|
-
if (Array.isArray(a)) return
|
|
1584
|
+
function xt(a) {
|
|
1585
|
+
if (Array.isArray(a)) return Ta(a);
|
|
1586
1586
|
}
|
|
1587
|
-
function
|
|
1588
|
-
return
|
|
1587
|
+
function Pa(a, i) {
|
|
1588
|
+
return ht(a) || bt(a, i) || ui(a, i) || gt();
|
|
1589
1589
|
}
|
|
1590
|
-
function
|
|
1590
|
+
function gt() {
|
|
1591
1591
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1592
1592
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
1593
1593
|
}
|
|
1594
1594
|
function ui(a, i) {
|
|
1595
1595
|
if (a) {
|
|
1596
|
-
if (typeof a == "string") return
|
|
1596
|
+
if (typeof a == "string") return Ta(a, i);
|
|
1597
1597
|
var t = Object.prototype.toString.call(a).slice(8, -1);
|
|
1598
1598
|
if (t === "Object" && a.constructor && (t = a.constructor.name), t === "Map" || t === "Set") return Array.from(a);
|
|
1599
|
-
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return
|
|
1599
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Ta(a, i);
|
|
1600
1600
|
}
|
|
1601
1601
|
}
|
|
1602
|
-
function
|
|
1602
|
+
function Ta(a, i) {
|
|
1603
1603
|
(i == null || i > a.length) && (i = a.length);
|
|
1604
1604
|
for (var t = 0, n = new Array(i); t < i; t++)
|
|
1605
1605
|
n[t] = a[t];
|
|
1606
1606
|
return n;
|
|
1607
1607
|
}
|
|
1608
|
-
function
|
|
1608
|
+
function bt(a, i) {
|
|
1609
1609
|
var t = a == null ? null : typeof Symbol < "u" && a[Symbol.iterator] || a["@@iterator"];
|
|
1610
1610
|
if (t != null) {
|
|
1611
1611
|
var n = [], e = !0, o = !1, l, r;
|
|
1612
1612
|
try {
|
|
1613
1613
|
for (t = t.call(a); !(e = (l = t.next()).done) && (n.push(l.value), !(i && n.length === i)); e = !0)
|
|
1614
1614
|
;
|
|
1615
|
-
} catch (
|
|
1616
|
-
o = !0, r =
|
|
1615
|
+
} catch (b) {
|
|
1616
|
+
o = !0, r = b;
|
|
1617
1617
|
} finally {
|
|
1618
1618
|
try {
|
|
1619
1619
|
!e && t.return != null && t.return();
|
|
@@ -1624,7 +1624,7 @@ function gt(a, i) {
|
|
|
1624
1624
|
return n;
|
|
1625
1625
|
}
|
|
1626
1626
|
}
|
|
1627
|
-
function
|
|
1627
|
+
function ht(a) {
|
|
1628
1628
|
if (Array.isArray(a)) return a;
|
|
1629
1629
|
}
|
|
1630
1630
|
function ti(a, i) {
|
|
@@ -1637,23 +1637,23 @@ function ti(a, i) {
|
|
|
1637
1637
|
}
|
|
1638
1638
|
return t;
|
|
1639
1639
|
}
|
|
1640
|
-
function
|
|
1640
|
+
function m(a) {
|
|
1641
1641
|
for (var i = 1; i < arguments.length; i++) {
|
|
1642
1642
|
var t = arguments[i] != null ? arguments[i] : {};
|
|
1643
1643
|
i % 2 ? ti(Object(t), !0).forEach(function(n) {
|
|
1644
|
-
|
|
1644
|
+
qa(a, n, t[n]);
|
|
1645
1645
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(t)) : ti(Object(t)).forEach(function(n) {
|
|
1646
1646
|
Object.defineProperty(a, n, Object.getOwnPropertyDescriptor(t, n));
|
|
1647
1647
|
});
|
|
1648
1648
|
}
|
|
1649
1649
|
return a;
|
|
1650
1650
|
}
|
|
1651
|
-
function
|
|
1651
|
+
function qa(a, i, t) {
|
|
1652
1652
|
return i in a ? Object.defineProperty(a, i, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : a[i] = t, a;
|
|
1653
1653
|
}
|
|
1654
|
-
function
|
|
1654
|
+
function ya(a, i) {
|
|
1655
1655
|
if (a == null) return {};
|
|
1656
|
-
var t =
|
|
1656
|
+
var t = yt(a, i), n, e;
|
|
1657
1657
|
if (Object.getOwnPropertySymbols) {
|
|
1658
1658
|
var o = Object.getOwnPropertySymbols(a);
|
|
1659
1659
|
for (e = 0; e < o.length; e++)
|
|
@@ -1661,27 +1661,27 @@ function fa(a, i) {
|
|
|
1661
1661
|
}
|
|
1662
1662
|
return t;
|
|
1663
1663
|
}
|
|
1664
|
-
function
|
|
1664
|
+
function yt(a, i) {
|
|
1665
1665
|
if (a == null) return {};
|
|
1666
1666
|
var t = {}, n = Object.keys(a), e, o;
|
|
1667
1667
|
for (o = 0; o < n.length; o++)
|
|
1668
1668
|
e = n[o], !(i.indexOf(e) >= 0) && (t[e] = a[e]);
|
|
1669
1669
|
return t;
|
|
1670
1670
|
}
|
|
1671
|
-
var
|
|
1672
|
-
var t = a.children, n =
|
|
1671
|
+
var La = /* @__PURE__ */ ei(function(a, i) {
|
|
1672
|
+
var t = a.children, n = ya(a, rt), e = fi(n), o = e.open, l = ya(e, st);
|
|
1673
1673
|
return ji(i, function() {
|
|
1674
1674
|
return {
|
|
1675
1675
|
open: o
|
|
1676
1676
|
};
|
|
1677
|
-
}, [o]), /* @__PURE__ */ wi.createElement(Di, null, t(
|
|
1677
|
+
}, [o]), /* @__PURE__ */ wi.createElement(Di, null, t(m(m({}, l), {}, {
|
|
1678
1678
|
open: o
|
|
1679
1679
|
})));
|
|
1680
1680
|
});
|
|
1681
|
-
|
|
1681
|
+
La.displayName = "Dropzone";
|
|
1682
1682
|
var vi = {
|
|
1683
1683
|
disabled: !1,
|
|
1684
|
-
getFilesFromEvent:
|
|
1684
|
+
getFilesFromEvent: Ci,
|
|
1685
1685
|
maxSize: 1 / 0,
|
|
1686
1686
|
minSize: 0,
|
|
1687
1687
|
multiple: !0,
|
|
@@ -1695,8 +1695,8 @@ var vi = {
|
|
|
1695
1695
|
useFsAccessApi: !1,
|
|
1696
1696
|
autoFocus: !1
|
|
1697
1697
|
};
|
|
1698
|
-
|
|
1699
|
-
|
|
1698
|
+
La.defaultProps = vi;
|
|
1699
|
+
La.propTypes = {
|
|
1700
1700
|
/**
|
|
1701
1701
|
* Render function that exposes the dropzone state and prop getter fns
|
|
1702
1702
|
*
|
|
@@ -1712,7 +1712,7 @@ Ta.propTypes = {
|
|
|
1712
1712
|
* @param {File[]} params.acceptedFiles Accepted files
|
|
1713
1713
|
* @param {FileRejection[]} params.fileRejections Rejected files and why they were rejected
|
|
1714
1714
|
*/
|
|
1715
|
-
children:
|
|
1715
|
+
children: d.func,
|
|
1716
1716
|
/**
|
|
1717
1717
|
* Set accepted file types.
|
|
1718
1718
|
* Checkout https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker types option for more information.
|
|
@@ -1720,90 +1720,90 @@ Ta.propTypes = {
|
|
|
1720
1720
|
* for example, are reported as text/plain under macOS but as application/vnd.ms-excel under
|
|
1721
1721
|
* Windows. In some cases there might not be a mime type set at all (https://github.com/react-dropzone/react-dropzone/issues/276).
|
|
1722
1722
|
*/
|
|
1723
|
-
accept:
|
|
1723
|
+
accept: d.objectOf(d.arrayOf(d.string)),
|
|
1724
1724
|
/**
|
|
1725
1725
|
* Allow drag 'n' drop (or selection from the file dialog) of multiple files
|
|
1726
1726
|
*/
|
|
1727
|
-
multiple:
|
|
1727
|
+
multiple: d.bool,
|
|
1728
1728
|
/**
|
|
1729
1729
|
* If false, allow dropped items to take over the current browser window
|
|
1730
1730
|
*/
|
|
1731
|
-
preventDropOnDocument:
|
|
1731
|
+
preventDropOnDocument: d.bool,
|
|
1732
1732
|
/**
|
|
1733
1733
|
* If true, disables click to open the native file selection dialog
|
|
1734
1734
|
*/
|
|
1735
|
-
noClick:
|
|
1735
|
+
noClick: d.bool,
|
|
1736
1736
|
/**
|
|
1737
1737
|
* If true, disables SPACE/ENTER to open the native file selection dialog.
|
|
1738
1738
|
* Note that it also stops tracking the focus state.
|
|
1739
1739
|
*/
|
|
1740
|
-
noKeyboard:
|
|
1740
|
+
noKeyboard: d.bool,
|
|
1741
1741
|
/**
|
|
1742
1742
|
* If true, disables drag 'n' drop
|
|
1743
1743
|
*/
|
|
1744
|
-
noDrag:
|
|
1744
|
+
noDrag: d.bool,
|
|
1745
1745
|
/**
|
|
1746
1746
|
* If true, stops drag event propagation to parents
|
|
1747
1747
|
*/
|
|
1748
|
-
noDragEventsBubbling:
|
|
1748
|
+
noDragEventsBubbling: d.bool,
|
|
1749
1749
|
/**
|
|
1750
1750
|
* Minimum file size (in bytes)
|
|
1751
1751
|
*/
|
|
1752
|
-
minSize:
|
|
1752
|
+
minSize: d.number,
|
|
1753
1753
|
/**
|
|
1754
1754
|
* Maximum file size (in bytes)
|
|
1755
1755
|
*/
|
|
1756
|
-
maxSize:
|
|
1756
|
+
maxSize: d.number,
|
|
1757
1757
|
/**
|
|
1758
1758
|
* Maximum accepted number of files
|
|
1759
1759
|
* The default value is 0 which means there is no limitation to how many files are accepted.
|
|
1760
1760
|
*/
|
|
1761
|
-
maxFiles:
|
|
1761
|
+
maxFiles: d.number,
|
|
1762
1762
|
/**
|
|
1763
1763
|
* Enable/disable the dropzone
|
|
1764
1764
|
*/
|
|
1765
|
-
disabled:
|
|
1765
|
+
disabled: d.bool,
|
|
1766
1766
|
/**
|
|
1767
1767
|
* Use this to provide a custom file aggregator
|
|
1768
1768
|
*
|
|
1769
1769
|
* @param {(DragEvent|Event|Array<FileSystemFileHandle>)} event A drag event or input change event (if files were selected via the file dialog)
|
|
1770
1770
|
*/
|
|
1771
|
-
getFilesFromEvent:
|
|
1771
|
+
getFilesFromEvent: d.func,
|
|
1772
1772
|
/**
|
|
1773
1773
|
* Cb for when closing the file dialog with no selection
|
|
1774
1774
|
*/
|
|
1775
|
-
onFileDialogCancel:
|
|
1775
|
+
onFileDialogCancel: d.func,
|
|
1776
1776
|
/**
|
|
1777
1777
|
* Cb for when opening the file dialog
|
|
1778
1778
|
*/
|
|
1779
|
-
onFileDialogOpen:
|
|
1779
|
+
onFileDialogOpen: d.func,
|
|
1780
1780
|
/**
|
|
1781
1781
|
* Set to true to use the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API
|
|
1782
1782
|
* to open the file picker instead of using an `<input type="file">` click event.
|
|
1783
1783
|
*/
|
|
1784
|
-
useFsAccessApi:
|
|
1784
|
+
useFsAccessApi: d.bool,
|
|
1785
1785
|
/**
|
|
1786
1786
|
* Set to true to focus the root element on render
|
|
1787
1787
|
*/
|
|
1788
|
-
autoFocus:
|
|
1788
|
+
autoFocus: d.bool,
|
|
1789
1789
|
/**
|
|
1790
1790
|
* Cb for when the `dragenter` event occurs.
|
|
1791
1791
|
*
|
|
1792
1792
|
* @param {DragEvent} event
|
|
1793
1793
|
*/
|
|
1794
|
-
onDragEnter:
|
|
1794
|
+
onDragEnter: d.func,
|
|
1795
1795
|
/**
|
|
1796
1796
|
* Cb for when the `dragleave` event occurs
|
|
1797
1797
|
*
|
|
1798
1798
|
* @param {DragEvent} event
|
|
1799
1799
|
*/
|
|
1800
|
-
onDragLeave:
|
|
1800
|
+
onDragLeave: d.func,
|
|
1801
1801
|
/**
|
|
1802
1802
|
* Cb for when the `dragover` event occurs
|
|
1803
1803
|
*
|
|
1804
1804
|
* @param {DragEvent} event
|
|
1805
1805
|
*/
|
|
1806
|
-
onDragOver:
|
|
1806
|
+
onDragOver: d.func,
|
|
1807
1807
|
/**
|
|
1808
1808
|
* Cb for when the `drop` event occurs.
|
|
1809
1809
|
* Note that this callback is invoked after the `getFilesFromEvent` callback is done.
|
|
@@ -1834,7 +1834,7 @@ Ta.propTypes = {
|
|
|
1834
1834
|
* @param {FileRejection[]} fileRejections
|
|
1835
1835
|
* @param {(DragEvent|Event)} event A drag event or input change event (if files were selected via the file dialog)
|
|
1836
1836
|
*/
|
|
1837
|
-
onDrop:
|
|
1837
|
+
onDrop: d.func,
|
|
1838
1838
|
/**
|
|
1839
1839
|
* Cb for when the `drop` event occurs.
|
|
1840
1840
|
* Note that if no files are accepted, this callback is not invoked.
|
|
@@ -1842,7 +1842,7 @@ Ta.propTypes = {
|
|
|
1842
1842
|
* @param {File[]} files
|
|
1843
1843
|
* @param {(DragEvent|Event)} event
|
|
1844
1844
|
*/
|
|
1845
|
-
onDropAccepted:
|
|
1845
|
+
onDropAccepted: d.func,
|
|
1846
1846
|
/**
|
|
1847
1847
|
* Cb for when the `drop` event occurs.
|
|
1848
1848
|
* Note that if no files are rejected, this callback is not invoked.
|
|
@@ -1850,21 +1850,21 @@ Ta.propTypes = {
|
|
|
1850
1850
|
* @param {FileRejection[]} fileRejections
|
|
1851
1851
|
* @param {(DragEvent|Event)} event
|
|
1852
1852
|
*/
|
|
1853
|
-
onDropRejected:
|
|
1853
|
+
onDropRejected: d.func,
|
|
1854
1854
|
/**
|
|
1855
1855
|
* Cb for when there's some error from any of the promises.
|
|
1856
1856
|
*
|
|
1857
1857
|
* @param {Error} error
|
|
1858
1858
|
*/
|
|
1859
|
-
onError:
|
|
1859
|
+
onError: d.func,
|
|
1860
1860
|
/**
|
|
1861
1861
|
* Custom validation function. It must return null if there's no errors.
|
|
1862
1862
|
* @param {File} file
|
|
1863
1863
|
* @returns {FileError|FileError[]|null}
|
|
1864
1864
|
*/
|
|
1865
|
-
validator:
|
|
1865
|
+
validator: d.func
|
|
1866
1866
|
};
|
|
1867
|
-
var
|
|
1867
|
+
var Ia = {
|
|
1868
1868
|
isFocused: !1,
|
|
1869
1869
|
isFileDialogActive: !1,
|
|
1870
1870
|
isDragActive: !1,
|
|
@@ -1874,186 +1874,186 @@ var Ca = {
|
|
|
1874
1874
|
fileRejections: []
|
|
1875
1875
|
};
|
|
1876
1876
|
function fi() {
|
|
1877
|
-
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i =
|
|
1877
|
+
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = m(m({}, vi), a), t = i.accept, n = i.disabled, e = i.getFilesFromEvent, o = i.maxSize, l = i.minSize, r = i.multiple, b = i.maxFiles, D = i.onDragEnter, _ = i.onDragLeave, A = i.onDragOver, P = i.onDrop, C = i.onDropAccepted, z = i.onDropRejected, F = i.onFileDialogCancel, K = i.onFileDialogOpen, J = i.useFsAccessApi, Q = i.autoFocus, B = i.preventDropOnDocument, S = i.noClick, X = i.noKeyboard, Z = i.noDrag, k = i.noDragEventsBubbling, T = i.onError, q = i.validator, I = G(function() {
|
|
1878
|
+
return ot(t);
|
|
1879
|
+
}, [t]), la = G(function() {
|
|
1878
1880
|
return pt(t);
|
|
1879
|
-
}, [t]),
|
|
1880
|
-
return
|
|
1881
|
-
}, [
|
|
1882
|
-
return typeof $ == "function" ? $ : ni;
|
|
1883
|
-
}, [$]), A = U(function() {
|
|
1881
|
+
}, [t]), H = G(function() {
|
|
1882
|
+
return typeof K == "function" ? K : ni;
|
|
1883
|
+
}, [K]), R = G(function() {
|
|
1884
1884
|
return typeof F == "function" ? F : ni;
|
|
1885
|
-
}, [F]),
|
|
1886
|
-
!
|
|
1887
|
-
if (
|
|
1888
|
-
var c =
|
|
1889
|
-
c.length || (
|
|
1885
|
+
}, [F]), u = oa(null), g = oa(null), ra = ki(wt, Ia), aa = Pa(ra, 2), ia = aa[0], h = aa[1], wa = ia.isFocused, ta = ia.isFileDialogActive, W = oa(typeof window < "u" && window.isSecureContext && J && et()), sa = function() {
|
|
1886
|
+
!W.current && ta && setTimeout(function() {
|
|
1887
|
+
if (g.current) {
|
|
1888
|
+
var c = g.current.files;
|
|
1889
|
+
c.length || (h({
|
|
1890
1890
|
type: "closeDialog"
|
|
1891
|
-
}),
|
|
1891
|
+
}), R());
|
|
1892
1892
|
}
|
|
1893
1893
|
}, 300);
|
|
1894
1894
|
};
|
|
1895
|
-
|
|
1896
|
-
return window.addEventListener("focus",
|
|
1897
|
-
window.removeEventListener("focus",
|
|
1895
|
+
ga(function() {
|
|
1896
|
+
return window.addEventListener("focus", sa, !1), function() {
|
|
1897
|
+
window.removeEventListener("focus", sa, !1);
|
|
1898
1898
|
};
|
|
1899
|
-
}, [
|
|
1900
|
-
var
|
|
1901
|
-
|
|
1899
|
+
}, [g, ta, R, W]);
|
|
1900
|
+
var O = oa([]), na = function(c) {
|
|
1901
|
+
u.current && u.current.contains(c.target) || (c.preventDefault(), O.current = []);
|
|
1902
1902
|
};
|
|
1903
|
-
|
|
1904
|
-
return
|
|
1905
|
-
|
|
1903
|
+
ga(function() {
|
|
1904
|
+
return B && (document.addEventListener("dragover", ii, !1), document.addEventListener("drop", na, !1)), function() {
|
|
1905
|
+
B && (document.removeEventListener("dragover", ii), document.removeEventListener("drop", na));
|
|
1906
1906
|
};
|
|
1907
|
-
}, [
|
|
1908
|
-
return !n &&
|
|
1907
|
+
}, [u, B]), ga(function() {
|
|
1908
|
+
return !n && Q && u.current && u.current.focus(), function() {
|
|
1909
1909
|
};
|
|
1910
|
-
}, [
|
|
1911
|
-
var
|
|
1912
|
-
|
|
1913
|
-
}, [
|
|
1914
|
-
p.preventDefault(), p.persist(),
|
|
1915
|
-
if (!(
|
|
1916
|
-
var
|
|
1910
|
+
}, [u, Q, n]);
|
|
1911
|
+
var s = y(function(p) {
|
|
1912
|
+
T ? T(p) : console.error(p);
|
|
1913
|
+
}, [T]), f = y(function(p) {
|
|
1914
|
+
p.preventDefault(), p.persist(), va(p), O.current = [].concat(ut(O.current), [p.target]), xa(p) && Promise.resolve(e(p)).then(function(c) {
|
|
1915
|
+
if (!(ha(p) && !k)) {
|
|
1916
|
+
var v = c.length, x = v > 0 && at({
|
|
1917
1917
|
files: c,
|
|
1918
|
-
accept:
|
|
1918
|
+
accept: I,
|
|
1919
1919
|
minSize: l,
|
|
1920
1920
|
maxSize: o,
|
|
1921
1921
|
multiple: r,
|
|
1922
|
-
maxFiles:
|
|
1922
|
+
maxFiles: b,
|
|
1923
1923
|
validator: q
|
|
1924
|
-
}),
|
|
1925
|
-
|
|
1926
|
-
isDragAccept:
|
|
1927
|
-
isDragReject:
|
|
1924
|
+
}), w = v > 0 && !x;
|
|
1925
|
+
h({
|
|
1926
|
+
isDragAccept: x,
|
|
1927
|
+
isDragReject: w,
|
|
1928
1928
|
isDragActive: !0,
|
|
1929
1929
|
type: "setDraggedFiles"
|
|
1930
|
-
}),
|
|
1930
|
+
}), D && D(p);
|
|
1931
1931
|
}
|
|
1932
1932
|
}).catch(function(c) {
|
|
1933
|
-
return
|
|
1933
|
+
return s(c);
|
|
1934
1934
|
});
|
|
1935
|
-
}, [e,
|
|
1936
|
-
p.preventDefault(), p.persist(),
|
|
1937
|
-
var c =
|
|
1935
|
+
}, [e, D, s, k, I, l, o, r, b, q]), j = y(function(p) {
|
|
1936
|
+
p.preventDefault(), p.persist(), va(p);
|
|
1937
|
+
var c = xa(p);
|
|
1938
1938
|
if (c && p.dataTransfer)
|
|
1939
1939
|
try {
|
|
1940
1940
|
p.dataTransfer.dropEffect = "copy";
|
|
1941
1941
|
} catch {
|
|
1942
1942
|
}
|
|
1943
|
-
return c &&
|
|
1944
|
-
}, [
|
|
1945
|
-
p.preventDefault(), p.persist(),
|
|
1946
|
-
var c =
|
|
1947
|
-
return
|
|
1948
|
-
}),
|
|
1949
|
-
|
|
1943
|
+
return c && A && A(p), !1;
|
|
1944
|
+
}, [A, k]), L = y(function(p) {
|
|
1945
|
+
p.preventDefault(), p.persist(), va(p);
|
|
1946
|
+
var c = O.current.filter(function(x) {
|
|
1947
|
+
return u.current && u.current.contains(x);
|
|
1948
|
+
}), v = c.indexOf(p.target);
|
|
1949
|
+
v !== -1 && c.splice(v, 1), O.current = c, !(c.length > 0) && (h({
|
|
1950
1950
|
type: "setDraggedFiles",
|
|
1951
1951
|
isDragActive: !1,
|
|
1952
1952
|
isDragAccept: !1,
|
|
1953
1953
|
isDragReject: !1
|
|
1954
|
-
}),
|
|
1955
|
-
}, [
|
|
1956
|
-
var
|
|
1957
|
-
p.forEach(function(
|
|
1958
|
-
var
|
|
1959
|
-
if (
|
|
1960
|
-
|
|
1954
|
+
}), xa(p) && _ && _(p));
|
|
1955
|
+
}, [u, _, k]), da = y(function(p, c) {
|
|
1956
|
+
var v = [], x = [];
|
|
1957
|
+
p.forEach(function(w) {
|
|
1958
|
+
var ea = ri(w, I), Y = Pa(ea, 2), ja = Y[0], Da = Y[1], za = si(w, l, o), fa = Pa(za, 2), Ea = fa[0], Aa = fa[1], Fa = q ? q(w) : null;
|
|
1959
|
+
if (ja && Ea && !Fa)
|
|
1960
|
+
v.push(w);
|
|
1961
1961
|
else {
|
|
1962
|
-
var
|
|
1963
|
-
|
|
1964
|
-
file:
|
|
1965
|
-
errors:
|
|
1962
|
+
var Oa = [Da, Aa];
|
|
1963
|
+
Fa && (Oa = Oa.concat(Fa)), x.push({
|
|
1964
|
+
file: w,
|
|
1965
|
+
errors: Oa.filter(function(hi) {
|
|
1966
1966
|
return hi;
|
|
1967
1967
|
})
|
|
1968
1968
|
});
|
|
1969
1969
|
}
|
|
1970
|
-
}), (!r &&
|
|
1971
|
-
|
|
1972
|
-
file:
|
|
1973
|
-
errors: [
|
|
1970
|
+
}), (!r && v.length > 1 || r && b >= 1 && v.length > b) && (v.forEach(function(w) {
|
|
1971
|
+
x.push({
|
|
1972
|
+
file: w,
|
|
1973
|
+
errors: [Zi]
|
|
1974
1974
|
});
|
|
1975
|
-
}),
|
|
1976
|
-
acceptedFiles:
|
|
1977
|
-
fileRejections:
|
|
1978
|
-
isDragReject:
|
|
1975
|
+
}), v.splice(0)), h({
|
|
1976
|
+
acceptedFiles: v,
|
|
1977
|
+
fileRejections: x,
|
|
1978
|
+
isDragReject: x.length > 0,
|
|
1979
1979
|
type: "setFiles"
|
|
1980
|
-
}),
|
|
1981
|
-
}, [
|
|
1982
|
-
p.preventDefault(), p.persist(),
|
|
1983
|
-
|
|
1980
|
+
}), P && P(v, x, c), x.length > 0 && z && z(x, c), v.length > 0 && C && C(v, c);
|
|
1981
|
+
}, [h, r, I, l, o, b, P, C, z, q]), ma = y(function(p) {
|
|
1982
|
+
p.preventDefault(), p.persist(), va(p), O.current = [], xa(p) && Promise.resolve(e(p)).then(function(c) {
|
|
1983
|
+
ha(p) && !k || da(c, p);
|
|
1984
1984
|
}).catch(function(c) {
|
|
1985
|
-
return
|
|
1986
|
-
}),
|
|
1985
|
+
return s(c);
|
|
1986
|
+
}), h({
|
|
1987
1987
|
type: "reset"
|
|
1988
1988
|
});
|
|
1989
|
-
}, [e,
|
|
1990
|
-
if (
|
|
1991
|
-
|
|
1989
|
+
}, [e, da, s, k]), N = y(function() {
|
|
1990
|
+
if (W.current) {
|
|
1991
|
+
h({
|
|
1992
1992
|
type: "openDialog"
|
|
1993
|
-
}),
|
|
1993
|
+
}), H();
|
|
1994
1994
|
var p = {
|
|
1995
1995
|
multiple: r,
|
|
1996
|
-
types:
|
|
1996
|
+
types: la
|
|
1997
1997
|
};
|
|
1998
1998
|
window.showOpenFilePicker(p).then(function(c) {
|
|
1999
1999
|
return e(c);
|
|
2000
2000
|
}).then(function(c) {
|
|
2001
|
-
|
|
2001
|
+
da(c, null), h({
|
|
2002
2002
|
type: "closeDialog"
|
|
2003
2003
|
});
|
|
2004
2004
|
}).catch(function(c) {
|
|
2005
|
-
|
|
2005
|
+
ct(c) ? (R(c), h({
|
|
2006
2006
|
type: "closeDialog"
|
|
2007
|
-
})) :
|
|
2007
|
+
})) : lt(c) ? (W.current = !1, g.current ? (g.current.value = null, g.current.click()) : s(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."))) : s(c);
|
|
2008
2008
|
});
|
|
2009
2009
|
return;
|
|
2010
2010
|
}
|
|
2011
|
-
|
|
2011
|
+
g.current && (h({
|
|
2012
2012
|
type: "openDialog"
|
|
2013
|
-
}),
|
|
2014
|
-
}, [
|
|
2015
|
-
!
|
|
2016
|
-
}, [
|
|
2017
|
-
|
|
2013
|
+
}), H(), g.current.value = null, g.current.click());
|
|
2014
|
+
}, [h, H, R, J, da, s, la, r]), $a = y(function(p) {
|
|
2015
|
+
!u.current || !u.current.isEqualNode(p.target) || (p.key === " " || p.key === "Enter" || p.keyCode === 32 || p.keyCode === 13) && (p.preventDefault(), N());
|
|
2016
|
+
}, [u, N]), Ma = y(function() {
|
|
2017
|
+
h({
|
|
2018
2018
|
type: "focus"
|
|
2019
2019
|
});
|
|
2020
|
-
}, []), Ka =
|
|
2021
|
-
|
|
2020
|
+
}, []), Ka = y(function() {
|
|
2021
|
+
h({
|
|
2022
2022
|
type: "blur"
|
|
2023
2023
|
});
|
|
2024
|
-
}, []), Ba =
|
|
2025
|
-
|
|
2026
|
-
}, [
|
|
2024
|
+
}, []), Ba = y(function() {
|
|
2025
|
+
S || (nt() ? setTimeout(N, 0) : N());
|
|
2026
|
+
}, [S, N]), U = function(c) {
|
|
2027
2027
|
return n ? null : c;
|
|
2028
|
-
},
|
|
2029
|
-
return
|
|
2030
|
-
},
|
|
2031
|
-
return
|
|
2032
|
-
},
|
|
2033
|
-
|
|
2034
|
-
}, xi =
|
|
2028
|
+
}, ka = function(c) {
|
|
2029
|
+
return X ? null : U(c);
|
|
2030
|
+
}, ua = function(c) {
|
|
2031
|
+
return Z ? null : U(c);
|
|
2032
|
+
}, va = function(c) {
|
|
2033
|
+
k && c.stopPropagation();
|
|
2034
|
+
}, xi = G(function() {
|
|
2035
2035
|
return function() {
|
|
2036
|
-
var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = p.refKey,
|
|
2037
|
-
return
|
|
2038
|
-
onKeyDown:
|
|
2039
|
-
onFocus:
|
|
2040
|
-
onBlur:
|
|
2041
|
-
onClick:
|
|
2042
|
-
onDragEnter:
|
|
2043
|
-
onDragOver:
|
|
2044
|
-
onDragLeave:
|
|
2045
|
-
onDrop:
|
|
2046
|
-
role: typeof
|
|
2047
|
-
},
|
|
2036
|
+
var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = p.refKey, v = c === void 0 ? "ref" : c, x = p.role, w = p.onKeyDown, ea = p.onFocus, Y = p.onBlur, ja = p.onClick, Da = p.onDragEnter, za = p.onDragOver, fa = p.onDragLeave, Ea = p.onDrop, Aa = ya(p, dt);
|
|
2037
|
+
return m(m(qa({
|
|
2038
|
+
onKeyDown: ka(E(w, $a)),
|
|
2039
|
+
onFocus: ka(E(ea, Ma)),
|
|
2040
|
+
onBlur: ka(E(Y, Ka)),
|
|
2041
|
+
onClick: U(E(ja, Ba)),
|
|
2042
|
+
onDragEnter: ua(E(Da, f)),
|
|
2043
|
+
onDragOver: ua(E(za, j)),
|
|
2044
|
+
onDragLeave: ua(E(fa, L)),
|
|
2045
|
+
onDrop: ua(E(Ea, ma)),
|
|
2046
|
+
role: typeof x == "string" && x !== "" ? x : "presentation"
|
|
2047
|
+
}, v, u), !n && !X ? {
|
|
2048
2048
|
tabIndex: 0
|
|
2049
|
-
} : {}),
|
|
2049
|
+
} : {}), Aa);
|
|
2050
2050
|
};
|
|
2051
|
-
}, [
|
|
2051
|
+
}, [u, $a, Ma, Ka, Ba, f, j, L, ma, X, Z, n]), gi = y(function(p) {
|
|
2052
2052
|
p.stopPropagation();
|
|
2053
|
-
}, []), bi =
|
|
2053
|
+
}, []), bi = G(function() {
|
|
2054
2054
|
return function() {
|
|
2055
|
-
var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = p.refKey,
|
|
2056
|
-
accept:
|
|
2055
|
+
var p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, c = p.refKey, v = c === void 0 ? "ref" : c, x = p.onChange, w = p.onClick, ea = ya(p, mt), Y = qa({
|
|
2056
|
+
accept: I,
|
|
2057
2057
|
multiple: r,
|
|
2058
2058
|
type: "file",
|
|
2059
2059
|
style: {
|
|
@@ -2068,69 +2068,69 @@ function fi() {
|
|
|
2068
2068
|
width: "1px",
|
|
2069
2069
|
whiteSpace: "nowrap"
|
|
2070
2070
|
},
|
|
2071
|
-
onChange:
|
|
2072
|
-
onClick:
|
|
2071
|
+
onChange: U(E(x, ma)),
|
|
2072
|
+
onClick: U(E(w, gi)),
|
|
2073
2073
|
tabIndex: -1
|
|
2074
|
-
},
|
|
2075
|
-
return
|
|
2074
|
+
}, v, g);
|
|
2075
|
+
return m(m({}, Y), ea);
|
|
2076
2076
|
};
|
|
2077
|
-
}, [
|
|
2078
|
-
return
|
|
2079
|
-
isFocused:
|
|
2077
|
+
}, [g, t, r, ma, n]);
|
|
2078
|
+
return m(m({}, ia), {}, {
|
|
2079
|
+
isFocused: wa && !n,
|
|
2080
2080
|
getRootProps: xi,
|
|
2081
2081
|
getInputProps: bi,
|
|
2082
|
-
rootRef:
|
|
2083
|
-
inputRef:
|
|
2084
|
-
open:
|
|
2082
|
+
rootRef: u,
|
|
2083
|
+
inputRef: g,
|
|
2084
|
+
open: U(N)
|
|
2085
2085
|
});
|
|
2086
2086
|
}
|
|
2087
|
-
function
|
|
2087
|
+
function wt(a, i) {
|
|
2088
2088
|
switch (i.type) {
|
|
2089
2089
|
case "focus":
|
|
2090
|
-
return
|
|
2090
|
+
return m(m({}, a), {}, {
|
|
2091
2091
|
isFocused: !0
|
|
2092
2092
|
});
|
|
2093
2093
|
case "blur":
|
|
2094
|
-
return
|
|
2094
|
+
return m(m({}, a), {}, {
|
|
2095
2095
|
isFocused: !1
|
|
2096
2096
|
});
|
|
2097
2097
|
case "openDialog":
|
|
2098
|
-
return
|
|
2098
|
+
return m(m({}, Ia), {}, {
|
|
2099
2099
|
isFileDialogActive: !0
|
|
2100
2100
|
});
|
|
2101
2101
|
case "closeDialog":
|
|
2102
|
-
return
|
|
2102
|
+
return m(m({}, a), {}, {
|
|
2103
2103
|
isFileDialogActive: !1
|
|
2104
2104
|
});
|
|
2105
2105
|
case "setDraggedFiles":
|
|
2106
|
-
return
|
|
2106
|
+
return m(m({}, a), {}, {
|
|
2107
2107
|
isDragActive: i.isDragActive,
|
|
2108
2108
|
isDragAccept: i.isDragAccept,
|
|
2109
2109
|
isDragReject: i.isDragReject
|
|
2110
2110
|
});
|
|
2111
2111
|
case "setFiles":
|
|
2112
|
-
return
|
|
2112
|
+
return m(m({}, a), {}, {
|
|
2113
2113
|
acceptedFiles: i.acceptedFiles,
|
|
2114
2114
|
fileRejections: i.fileRejections,
|
|
2115
2115
|
isDragReject: i.isDragReject
|
|
2116
2116
|
});
|
|
2117
2117
|
case "reset":
|
|
2118
|
-
return
|
|
2118
|
+
return m({}, Ia);
|
|
2119
2119
|
default:
|
|
2120
2120
|
return a;
|
|
2121
2121
|
}
|
|
2122
2122
|
}
|
|
2123
2123
|
function ni() {
|
|
2124
2124
|
}
|
|
2125
|
-
const
|
|
2125
|
+
const kt = {
|
|
2126
2126
|
small: "0.5rem 0.813rem",
|
|
2127
2127
|
medium: "0.75rem 1.063rem",
|
|
2128
2128
|
large: "1rem 1.313rem"
|
|
2129
|
-
},
|
|
2129
|
+
}, jt = {
|
|
2130
2130
|
small: "1.25rem",
|
|
2131
2131
|
medium: "1.5rem",
|
|
2132
2132
|
large: "1.75rem"
|
|
2133
|
-
},
|
|
2133
|
+
}, Dt = Ra.label`
|
|
2134
2134
|
display: flex;
|
|
2135
2135
|
flex-direction: column;
|
|
2136
2136
|
justify-content: center;
|
|
@@ -2138,7 +2138,7 @@ const wt = {
|
|
|
2138
2138
|
gap: 0.5rem;
|
|
2139
2139
|
cursor: pointer;
|
|
2140
2140
|
font-size: ${(a) => a.theme.typography.component[a.size].subTxtFontSize};
|
|
2141
|
-
padding: ${(a) =>
|
|
2141
|
+
padding: ${(a) => kt[a.size]};
|
|
2142
2142
|
|
|
2143
2143
|
color: ${(a) => Ua(
|
|
2144
2144
|
a.theme,
|
|
@@ -2149,7 +2149,7 @@ const wt = {
|
|
|
2149
2149
|
)};
|
|
2150
2150
|
|
|
2151
2151
|
& .dnd-icon-lnc {
|
|
2152
|
-
font-size: ${(a) =>
|
|
2152
|
+
font-size: ${(a) => jt[a.size]};
|
|
2153
2153
|
color: ${(a) => Ua(
|
|
2154
2154
|
a.theme,
|
|
2155
2155
|
"DragDropFiles",
|
|
@@ -2158,17 +2158,22 @@ const wt = {
|
|
|
2158
2158
|
"text"
|
|
2159
2159
|
)};
|
|
2160
2160
|
}
|
|
2161
|
-
`,
|
|
2161
|
+
`, zt = Ra.input`
|
|
2162
2162
|
width: 0.1px;
|
|
2163
2163
|
height: 0.1px;
|
|
2164
2164
|
opacity: 0;
|
|
2165
2165
|
overflow: hidden;
|
|
2166
2166
|
position: absolute;
|
|
2167
2167
|
z-index: -1;
|
|
2168
|
-
`,
|
|
2168
|
+
`, Et = Ra.span`
|
|
2169
2169
|
align-self: self-end;
|
|
2170
2170
|
cursor: pointer;
|
|
2171
|
-
`,
|
|
2171
|
+
`, At = (a) => new Promise((i) => {
|
|
2172
|
+
const t = document.createElement("video");
|
|
2173
|
+
t.preload = "metadata", t.onloadedmetadata = () => {
|
|
2174
|
+
window.URL.revokeObjectURL(t == null ? void 0 : t.src), i(t == null ? void 0 : t.duration);
|
|
2175
|
+
}, t.src = URL.createObjectURL(a);
|
|
2176
|
+
}), Rt = ei((a, i) => {
|
|
2172
2177
|
const {
|
|
2173
2178
|
inputRef: t,
|
|
2174
2179
|
id: n = "",
|
|
@@ -2176,106 +2181,127 @@ const wt = {
|
|
|
2176
2181
|
acceptDropzone: o = {},
|
|
2177
2182
|
acceptInput: l,
|
|
2178
2183
|
multiple: r = !1,
|
|
2179
|
-
selectFileText:
|
|
2180
|
-
control:
|
|
2181
|
-
dndFileText:
|
|
2182
|
-
showDnD:
|
|
2183
|
-
className:
|
|
2184
|
-
style:
|
|
2185
|
-
onChange:
|
|
2184
|
+
selectFileText: b = "Select file",
|
|
2185
|
+
control: D,
|
|
2186
|
+
dndFileText: _ = "Drag and drop file here or",
|
|
2187
|
+
showDnD: A = !0,
|
|
2188
|
+
className: P = "",
|
|
2189
|
+
style: C = {},
|
|
2190
|
+
onChange: z = () => {
|
|
2186
2191
|
},
|
|
2187
2192
|
onFocus: F = () => {
|
|
2188
2193
|
},
|
|
2189
|
-
onBlur:
|
|
2194
|
+
onBlur: K = () => {
|
|
2190
2195
|
},
|
|
2191
|
-
onDropAccepted:
|
|
2196
|
+
onDropAccepted: J = () => {
|
|
2192
2197
|
},
|
|
2193
|
-
onDrop:
|
|
2198
|
+
onDrop: Q = () => {
|
|
2194
2199
|
},
|
|
2195
|
-
color:
|
|
2196
|
-
size:
|
|
2197
|
-
inputProps:
|
|
2198
|
-
alwaysShowDropzone:
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
}, [])
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2200
|
+
color: B = "primary",
|
|
2201
|
+
size: S = "small",
|
|
2202
|
+
inputProps: X,
|
|
2203
|
+
alwaysShowDropzone: Z = !1,
|
|
2204
|
+
maxVideoDuration: k = null,
|
|
2205
|
+
// in seconds
|
|
2206
|
+
onMaxDurationExceed: T = () => {
|
|
2207
|
+
},
|
|
2208
|
+
...q
|
|
2209
|
+
} = a, I = Fi(), [la, H] = Wa(!1), [R, u] = Wa(A), g = oa();
|
|
2210
|
+
ga(() => {
|
|
2211
|
+
u(A);
|
|
2212
|
+
}, [A]);
|
|
2213
|
+
var ra = { theme: I, size: S, color: B, disabled: e, focused: la };
|
|
2214
|
+
const aa = async (s) => {
|
|
2215
|
+
if (!Ai(k)) return s;
|
|
2216
|
+
const f = [];
|
|
2217
|
+
for (const j of s) {
|
|
2218
|
+
const L = await At(j);
|
|
2219
|
+
if (k && L > k) {
|
|
2220
|
+
console.error(
|
|
2221
|
+
`${j.name} is too long. Max allowed: ${k}`
|
|
2222
|
+
), T == null || T();
|
|
2223
|
+
continue;
|
|
2224
|
+
} else
|
|
2225
|
+
f.push(j);
|
|
2226
|
+
}
|
|
2227
|
+
return f;
|
|
2228
|
+
}, ia = y((s, f) => {
|
|
2229
|
+
Q && Q(s, f), u(!1);
|
|
2230
|
+
}, []), h = y(async (s) => {
|
|
2231
|
+
const f = await aa(s);
|
|
2232
|
+
(f == null ? void 0 : f.length) > 0 && (z && !e && z(f), J && J(f), u(!1));
|
|
2233
|
+
}, []), wa = async (s) => {
|
|
2234
|
+
var L;
|
|
2235
|
+
const f = Array.from((L = s == null ? void 0 : s.target) == null ? void 0 : L.files), j = await aa(f);
|
|
2236
|
+
(j == null ? void 0 : j.length) > 0 ? (z && !e && z(j), u(!1)) : s.target.value = "";
|
|
2237
|
+
}, ta = () => {
|
|
2238
|
+
var s, f;
|
|
2239
|
+
i != null && i.current ? (s = i.current) == null || s.click() : (f = g == null ? void 0 : g.current) == null || f.click();
|
|
2240
|
+
}, W = () => D ? zi(D, {
|
|
2241
|
+
onClick: (s) => {
|
|
2242
|
+
ta(), D.onClick && D.onClick(s);
|
|
2217
2243
|
},
|
|
2218
2244
|
disabled: e
|
|
2219
|
-
}) : /* @__PURE__ */
|
|
2245
|
+
}) : /* @__PURE__ */ pa(
|
|
2220
2246
|
Ei,
|
|
2221
2247
|
{
|
|
2222
|
-
color:
|
|
2223
|
-
size:
|
|
2224
|
-
text:
|
|
2248
|
+
color: B,
|
|
2249
|
+
size: S,
|
|
2250
|
+
text: b,
|
|
2225
2251
|
disabled: e,
|
|
2226
|
-
onClick: (
|
|
2227
|
-
|
|
2252
|
+
onClick: (s) => {
|
|
2253
|
+
s.preventDefault(), ta();
|
|
2228
2254
|
}
|
|
2229
2255
|
}
|
|
2230
|
-
), { getRootProps:
|
|
2231
|
-
onDrop:
|
|
2256
|
+
), { getRootProps: sa, getInputProps: O, isDragActive: na } = fi({
|
|
2257
|
+
onDrop: ia,
|
|
2232
2258
|
accept: o,
|
|
2233
|
-
onDropAccepted:
|
|
2259
|
+
onDropAccepted: h,
|
|
2234
2260
|
multiple: r,
|
|
2235
2261
|
disabled: e,
|
|
2236
2262
|
noClick: !0
|
|
2237
2263
|
});
|
|
2238
2264
|
return /* @__PURE__ */ Ha(
|
|
2239
|
-
|
|
2265
|
+
Dt,
|
|
2240
2266
|
{
|
|
2241
|
-
...
|
|
2242
|
-
className:
|
|
2243
|
-
style:
|
|
2244
|
-
...
|
|
2245
|
-
...
|
|
2246
|
-
ref: i ||
|
|
2267
|
+
...ra,
|
|
2268
|
+
className: P,
|
|
2269
|
+
style: C,
|
|
2270
|
+
...sa(),
|
|
2271
|
+
...q,
|
|
2272
|
+
ref: i || g,
|
|
2247
2273
|
children: [
|
|
2248
|
-
/* @__PURE__ */
|
|
2249
|
-
|
|
2274
|
+
/* @__PURE__ */ pa(
|
|
2275
|
+
zt,
|
|
2250
2276
|
{
|
|
2251
|
-
...
|
|
2252
|
-
...
|
|
2277
|
+
...O(),
|
|
2278
|
+
...ra,
|
|
2253
2279
|
multiple: r,
|
|
2254
2280
|
ref: t,
|
|
2255
2281
|
type: "file",
|
|
2256
2282
|
action: "bla.html",
|
|
2257
2283
|
accept: l,
|
|
2258
2284
|
id: n,
|
|
2259
|
-
onFocus: (
|
|
2260
|
-
e ||
|
|
2285
|
+
onFocus: (s) => {
|
|
2286
|
+
e || H(!0), F && !e && F(s);
|
|
2261
2287
|
},
|
|
2262
|
-
onBlur: (
|
|
2263
|
-
e ||
|
|
2288
|
+
onBlur: (s) => {
|
|
2289
|
+
e || H(!1), K && !e && K(s);
|
|
2264
2290
|
},
|
|
2265
|
-
onChange:
|
|
2266
|
-
...
|
|
2291
|
+
onChange: wa,
|
|
2292
|
+
...X
|
|
2267
2293
|
}
|
|
2268
2294
|
),
|
|
2269
|
-
!
|
|
2270
|
-
(
|
|
2271
|
-
/* @__PURE__ */
|
|
2272
|
-
|
|
2273
|
-
|
|
2295
|
+
!na && !R && !Z && /* @__PURE__ */ pa(Et, { children: /* @__PURE__ */ pa(Na, { icon: "plus", size: S }) }),
|
|
2296
|
+
(na || R || Z) && /* @__PURE__ */ Ha(yi, { children: [
|
|
2297
|
+
/* @__PURE__ */ pa(Na, { icon: "upload", size: S, className: "dnd-icon-lnc" }),
|
|
2298
|
+
_,
|
|
2299
|
+
W()
|
|
2274
2300
|
] })
|
|
2275
2301
|
]
|
|
2276
2302
|
}
|
|
2277
2303
|
);
|
|
2278
2304
|
});
|
|
2279
2305
|
export {
|
|
2280
|
-
|
|
2306
|
+
Rt as default
|
|
2281
2307
|
};
|