iking-web-ui-pro 1.0.14 → 1.0.16
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/IkImageUploadEditor/ik.index.es.js +452 -452
- package/dist/IkImageUploadEditor/iking-web-ui-pro.css +1 -1
- package/dist/IkTree/ik.index.es.js +73 -52
- package/dist/IkTree/iking-web-ui-pro.css +1 -1
- package/dist/iking-web-ui-pro.css +1 -1
- package/dist/index.es.js +5162 -5141
- package/dist/index.umd.js +2 -2
- package/dist/src/components/IkImageUploadEditor/index.d.ts +22 -2
- package/dist/src/components/IkImageUploadEditor/src/IkImageUploadEditor.vue.d.ts +22 -2
- package/dist/src/components/IkTree/IkTree.vue.d.ts +15 -2
- package/dist/src/components/IkTree/index.d.ts +30 -5
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { onMounted as
|
|
1
|
+
import { onMounted as Al, onBeforeUnmount as kl, watch as io, defineComponent as St, ref as X, h as At, inject as Bt, computed as Lt, mergeModels as vn, useModel as Ml, openBlock as yn, createBlock as bn, unref as Mi } from "vue";
|
|
2
2
|
const Nl = (i, e) => (i.install = (t) => {
|
|
3
3
|
for (const s of [i, ...Object.values({})])
|
|
4
4
|
t.component(s.name, s);
|
|
@@ -8,7 +8,7 @@ function Ni(i, e) {
|
|
|
8
8
|
return i;
|
|
9
9
|
}
|
|
10
10
|
var Il = 0;
|
|
11
|
-
function
|
|
11
|
+
function so(i) {
|
|
12
12
|
return "__private_" + Il++ + "_" + i;
|
|
13
13
|
}
|
|
14
14
|
function Ul(i, e, t) {
|
|
@@ -27,7 +27,7 @@ function Ul(i, e, t) {
|
|
|
27
27
|
* @param phrase that needs interpolation, with placeholders
|
|
28
28
|
* @param options with values that will be used to replace placeholders
|
|
29
29
|
*/
|
|
30
|
-
function
|
|
30
|
+
function wn(i, e) {
|
|
31
31
|
const t = /\$/g, s = "$$$$";
|
|
32
32
|
let r = [i];
|
|
33
33
|
if (e == null) return r;
|
|
@@ -41,8 +41,8 @@ function bn(i, e) {
|
|
|
41
41
|
const Bl = (i) => {
|
|
42
42
|
throw new Error(`missing string: ${i}`);
|
|
43
43
|
};
|
|
44
|
-
var zt = /* @__PURE__ */
|
|
45
|
-
class
|
|
44
|
+
var zt = /* @__PURE__ */ so("onMissingKey"), $t = /* @__PURE__ */ so("apply");
|
|
45
|
+
class ro {
|
|
46
46
|
constructor(e, t) {
|
|
47
47
|
let {
|
|
48
48
|
onMissingKey: s = Bl
|
|
@@ -79,13 +79,13 @@ class so {
|
|
|
79
79
|
if (s == null && (Ni(this, zt)[zt](e), s = e), typeof s == "object") {
|
|
80
80
|
if (t && typeof t.smart_count < "u") {
|
|
81
81
|
const n = this.locale.pluralize(t.smart_count);
|
|
82
|
-
return
|
|
82
|
+
return wn(s[n], t);
|
|
83
83
|
}
|
|
84
84
|
throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}");
|
|
85
85
|
}
|
|
86
86
|
if (typeof s != "string")
|
|
87
87
|
throw new Error("string was not a string");
|
|
88
|
-
return
|
|
88
|
+
return wn(s, t);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
function Ll(i) {
|
|
@@ -104,9 +104,9 @@ var Ii = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
104
104
|
function it(i) {
|
|
105
105
|
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
106
106
|
}
|
|
107
|
-
var cs,
|
|
107
|
+
var cs, Sn;
|
|
108
108
|
function zl() {
|
|
109
|
-
return
|
|
109
|
+
return Sn || (Sn = 1, cs = function() {
|
|
110
110
|
var e = {}, t = e._fns = {};
|
|
111
111
|
e.emit = function(a, o, l, u, c, h, p) {
|
|
112
112
|
var f = s(a);
|
|
@@ -154,43 +154,43 @@ let Hl = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", ns
|
|
|
154
154
|
e += Hl[Math.random() * 64 | 0];
|
|
155
155
|
return e;
|
|
156
156
|
};
|
|
157
|
-
var ps,
|
|
157
|
+
var ps, _n;
|
|
158
158
|
function Kr() {
|
|
159
|
-
if (
|
|
160
|
-
|
|
159
|
+
if (_n) return ps;
|
|
160
|
+
_n = 1;
|
|
161
161
|
function i(e) {
|
|
162
162
|
var t = typeof e;
|
|
163
163
|
return e != null && (t == "object" || t == "function");
|
|
164
164
|
}
|
|
165
165
|
return ps = i, ps;
|
|
166
166
|
}
|
|
167
|
-
var fs,
|
|
167
|
+
var fs, Fn;
|
|
168
168
|
function ql() {
|
|
169
|
-
if (
|
|
170
|
-
|
|
169
|
+
if (Fn) return fs;
|
|
170
|
+
Fn = 1;
|
|
171
171
|
var i = typeof Ii == "object" && Ii && Ii.Object === Object && Ii;
|
|
172
172
|
return fs = i, fs;
|
|
173
173
|
}
|
|
174
|
-
var ms,
|
|
175
|
-
function
|
|
176
|
-
if (
|
|
177
|
-
|
|
174
|
+
var ms, Tn;
|
|
175
|
+
function no() {
|
|
176
|
+
if (Tn) return ms;
|
|
177
|
+
Tn = 1;
|
|
178
178
|
var i = ql(), e = typeof self == "object" && self && self.Object === Object && self, t = i || e || Function("return this")();
|
|
179
179
|
return ms = t, ms;
|
|
180
180
|
}
|
|
181
|
-
var gs,
|
|
181
|
+
var gs, Pn;
|
|
182
182
|
function Vl() {
|
|
183
|
-
if (
|
|
184
|
-
|
|
185
|
-
var i =
|
|
183
|
+
if (Pn) return gs;
|
|
184
|
+
Pn = 1;
|
|
185
|
+
var i = no(), e = function() {
|
|
186
186
|
return i.Date.now();
|
|
187
187
|
};
|
|
188
188
|
return gs = e, gs;
|
|
189
189
|
}
|
|
190
|
-
var vs,
|
|
190
|
+
var vs, Cn;
|
|
191
191
|
function Wl() {
|
|
192
|
-
if (
|
|
193
|
-
|
|
192
|
+
if (Cn) return vs;
|
|
193
|
+
Cn = 1;
|
|
194
194
|
var i = /\s/;
|
|
195
195
|
function e(t) {
|
|
196
196
|
for (var s = t.length; s-- && i.test(t.charAt(s)); )
|
|
@@ -199,28 +199,28 @@ function Wl() {
|
|
|
199
199
|
}
|
|
200
200
|
return vs = e, vs;
|
|
201
201
|
}
|
|
202
|
-
var ys,
|
|
202
|
+
var ys, En;
|
|
203
203
|
function Gl() {
|
|
204
|
-
if (
|
|
205
|
-
|
|
204
|
+
if (En) return ys;
|
|
205
|
+
En = 1;
|
|
206
206
|
var i = Wl(), e = /^\s+/;
|
|
207
207
|
function t(s) {
|
|
208
208
|
return s && s.slice(0, i(s) + 1).replace(e, "");
|
|
209
209
|
}
|
|
210
210
|
return ys = t, ys;
|
|
211
211
|
}
|
|
212
|
-
var bs,
|
|
213
|
-
function
|
|
214
|
-
if (
|
|
215
|
-
|
|
216
|
-
var i =
|
|
212
|
+
var bs, On;
|
|
213
|
+
function ao() {
|
|
214
|
+
if (On) return bs;
|
|
215
|
+
On = 1;
|
|
216
|
+
var i = no(), e = i.Symbol;
|
|
217
217
|
return bs = e, bs;
|
|
218
218
|
}
|
|
219
|
-
var ws,
|
|
219
|
+
var ws, xn;
|
|
220
220
|
function Xl() {
|
|
221
|
-
if (
|
|
222
|
-
|
|
223
|
-
var i =
|
|
221
|
+
if (xn) return ws;
|
|
222
|
+
xn = 1;
|
|
223
|
+
var i = ao(), e = Object.prototype, t = e.hasOwnProperty, s = e.toString, r = i ? i.toStringTag : void 0;
|
|
224
224
|
function n(a) {
|
|
225
225
|
var o = t.call(a, r), l = a[r];
|
|
226
226
|
try {
|
|
@@ -233,49 +233,49 @@ function Xl() {
|
|
|
233
233
|
}
|
|
234
234
|
return ws = n, ws;
|
|
235
235
|
}
|
|
236
|
-
var Ss,
|
|
236
|
+
var Ss, Rn;
|
|
237
237
|
function Yl() {
|
|
238
|
-
if (
|
|
239
|
-
|
|
238
|
+
if (Rn) return Ss;
|
|
239
|
+
Rn = 1;
|
|
240
240
|
var i = Object.prototype, e = i.toString;
|
|
241
241
|
function t(s) {
|
|
242
242
|
return e.call(s);
|
|
243
243
|
}
|
|
244
244
|
return Ss = t, Ss;
|
|
245
245
|
}
|
|
246
|
-
var _s,
|
|
246
|
+
var _s, Dn;
|
|
247
247
|
function Kl() {
|
|
248
|
-
if (
|
|
249
|
-
|
|
250
|
-
var i =
|
|
248
|
+
if (Dn) return _s;
|
|
249
|
+
Dn = 1;
|
|
250
|
+
var i = ao(), e = Xl(), t = Yl(), s = "[object Null]", r = "[object Undefined]", n = i ? i.toStringTag : void 0;
|
|
251
251
|
function a(o) {
|
|
252
252
|
return o == null ? o === void 0 ? r : s : n && n in Object(o) ? e(o) : t(o);
|
|
253
253
|
}
|
|
254
254
|
return _s = a, _s;
|
|
255
255
|
}
|
|
256
|
-
var Fs,
|
|
256
|
+
var Fs, An;
|
|
257
257
|
function Jl() {
|
|
258
|
-
if (
|
|
259
|
-
|
|
258
|
+
if (An) return Fs;
|
|
259
|
+
An = 1;
|
|
260
260
|
function i(e) {
|
|
261
261
|
return e != null && typeof e == "object";
|
|
262
262
|
}
|
|
263
263
|
return Fs = i, Fs;
|
|
264
264
|
}
|
|
265
|
-
var Ts,
|
|
265
|
+
var Ts, kn;
|
|
266
266
|
function Ql() {
|
|
267
|
-
if (
|
|
268
|
-
|
|
267
|
+
if (kn) return Ts;
|
|
268
|
+
kn = 1;
|
|
269
269
|
var i = Kl(), e = Jl(), t = "[object Symbol]";
|
|
270
270
|
function s(r) {
|
|
271
271
|
return typeof r == "symbol" || e(r) && i(r) == t;
|
|
272
272
|
}
|
|
273
273
|
return Ts = s, Ts;
|
|
274
274
|
}
|
|
275
|
-
var Ps,
|
|
275
|
+
var Ps, Mn;
|
|
276
276
|
function Zl() {
|
|
277
|
-
if (
|
|
278
|
-
|
|
277
|
+
if (Mn) return Ps;
|
|
278
|
+
Mn = 1;
|
|
279
279
|
var i = Gl(), e = Kr(), t = Ql(), s = NaN, r = /^[-+]0x[0-9a-f]+$/i, n = /^0b[01]+$/i, a = /^0o[0-7]+$/i, o = parseInt;
|
|
280
280
|
function l(u) {
|
|
281
281
|
if (typeof u == "number")
|
|
@@ -294,10 +294,10 @@ function Zl() {
|
|
|
294
294
|
}
|
|
295
295
|
return Ps = l, Ps;
|
|
296
296
|
}
|
|
297
|
-
var Cs,
|
|
298
|
-
function
|
|
299
|
-
if (
|
|
300
|
-
|
|
297
|
+
var Cs, Nn;
|
|
298
|
+
function oo() {
|
|
299
|
+
if (Nn) return Cs;
|
|
300
|
+
Nn = 1;
|
|
301
301
|
var i = Kr(), e = Vl(), t = Zl(), s = "Expected a function", r = Math.max, n = Math.min;
|
|
302
302
|
function a(o, l, u) {
|
|
303
303
|
var c, h, p, f, m, y, v = 0, w = !1, b = !1, C = !0;
|
|
@@ -348,11 +348,11 @@ function ao() {
|
|
|
348
348
|
}
|
|
349
349
|
return Cs = a, Cs;
|
|
350
350
|
}
|
|
351
|
-
var Es,
|
|
351
|
+
var Es, In;
|
|
352
352
|
function eu() {
|
|
353
|
-
if (
|
|
354
|
-
|
|
355
|
-
var i =
|
|
353
|
+
if (In) return Es;
|
|
354
|
+
In = 1;
|
|
355
|
+
var i = oo(), e = Kr(), t = "Expected a function";
|
|
356
356
|
function s(r, n, a) {
|
|
357
357
|
var o = !0, l = !0;
|
|
358
358
|
if (typeof r != "function")
|
|
@@ -372,14 +372,14 @@ function Ji(i, e) {
|
|
|
372
372
|
return i;
|
|
373
373
|
}
|
|
374
374
|
var su = 0;
|
|
375
|
-
function
|
|
375
|
+
function lo(i) {
|
|
376
376
|
return "__private_" + su++ + "_" + i;
|
|
377
377
|
}
|
|
378
378
|
const ru = {
|
|
379
379
|
version: "4.1.2"
|
|
380
380
|
};
|
|
381
|
-
var pt = /* @__PURE__ */
|
|
382
|
-
class
|
|
381
|
+
var pt = /* @__PURE__ */ lo("callbacks"), Os = /* @__PURE__ */ lo("publish");
|
|
382
|
+
class uo {
|
|
383
383
|
constructor() {
|
|
384
384
|
Object.defineProperty(this, Os, {
|
|
385
385
|
value: nu
|
|
@@ -413,8 +413,8 @@ function nu() {
|
|
|
413
413
|
s(...e);
|
|
414
414
|
});
|
|
415
415
|
}
|
|
416
|
-
|
|
417
|
-
function
|
|
416
|
+
uo.VERSION = ru.version;
|
|
417
|
+
function ho(i) {
|
|
418
418
|
const e = i.lastIndexOf(".");
|
|
419
419
|
return e === -1 || e === i.length - 1 ? {
|
|
420
420
|
name: i,
|
|
@@ -478,29 +478,29 @@ const mr = {
|
|
|
478
478
|
gz: "application/gzip",
|
|
479
479
|
dmg: "application/x-apple-diskimage"
|
|
480
480
|
};
|
|
481
|
-
function
|
|
481
|
+
function co(i) {
|
|
482
482
|
var e;
|
|
483
483
|
if (i.type) return i.type;
|
|
484
|
-
const t = i.name ? (e =
|
|
484
|
+
const t = i.name ? (e = ho(i.name).extension) == null ? void 0 : e.toLowerCase() : null;
|
|
485
485
|
return t && t in mr ? mr[t] : "application/octet-stream";
|
|
486
486
|
}
|
|
487
487
|
function au(i) {
|
|
488
488
|
return i.charCodeAt(0).toString(32);
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function Un(i) {
|
|
491
491
|
let e = "";
|
|
492
492
|
return i.replace(/[^A-Z0-9]/gi, (t) => (e += `-${au(t)}`, "/")) + e;
|
|
493
493
|
}
|
|
494
494
|
function ou(i, e) {
|
|
495
495
|
let t = e || "uppy";
|
|
496
|
-
return typeof i.name == "string" && (t += `-${
|
|
496
|
+
return typeof i.name == "string" && (t += `-${Un(i.name.toLowerCase())}`), i.type !== void 0 && (t += `-${i.type}`), i.meta && typeof i.meta.relativePath == "string" && (t += `-${Un(i.meta.relativePath.toLowerCase())}`), i.data.size !== void 0 && (t += `-${i.data.size}`), i.data.lastModified !== void 0 && (t += `-${i.data.lastModified}`), t;
|
|
497
497
|
}
|
|
498
498
|
function lu(i) {
|
|
499
499
|
return !i.isRemote || !i.remote ? !1 : (/* @__PURE__ */ new Set(["box", "dropbox", "drive", "facebook", "unsplash"])).has(i.remote.provider);
|
|
500
500
|
}
|
|
501
501
|
function uu(i, e) {
|
|
502
502
|
if (lu(i)) return i.id;
|
|
503
|
-
const t =
|
|
503
|
+
const t = co(i);
|
|
504
504
|
return ou({
|
|
505
505
|
...i,
|
|
506
506
|
type: t
|
|
@@ -550,9 +550,9 @@ const cu = {
|
|
|
550
550
|
return console.error(`[Uppy] [${Qi()}]`, ...e);
|
|
551
551
|
}
|
|
552
552
|
};
|
|
553
|
-
var Rs,
|
|
553
|
+
var Rs, Bn;
|
|
554
554
|
function fu() {
|
|
555
|
-
return
|
|
555
|
+
return Bn || (Bn = 1, Rs = function(e) {
|
|
556
556
|
if (typeof e != "number" || Number.isNaN(e))
|
|
557
557
|
throw new TypeError(`Expected a number, got ${typeof e}`);
|
|
558
558
|
const t = e < 0;
|
|
@@ -565,10 +565,10 @@ function fu() {
|
|
|
565
565
|
}
|
|
566
566
|
var mu = fu();
|
|
567
567
|
const vt = /* @__PURE__ */ it(mu);
|
|
568
|
-
var Ds,
|
|
568
|
+
var Ds, Ln;
|
|
569
569
|
function gu() {
|
|
570
|
-
if (
|
|
571
|
-
|
|
570
|
+
if (Ln) return Ds;
|
|
571
|
+
Ln = 1;
|
|
572
572
|
function i(e, t) {
|
|
573
573
|
this.text = e = e || "", this.hasWild = ~e.indexOf("*"), this.separator = t, this.parts = e.split(t);
|
|
574
574
|
}
|
|
@@ -596,10 +596,10 @@ function gu() {
|
|
|
596
596
|
return typeof t < "u" ? r.match(t) : r;
|
|
597
597
|
}, Ds;
|
|
598
598
|
}
|
|
599
|
-
var As,
|
|
599
|
+
var As, zn;
|
|
600
600
|
function vu() {
|
|
601
|
-
if (
|
|
602
|
-
|
|
601
|
+
if (zn) return As;
|
|
602
|
+
zn = 1;
|
|
603
603
|
var i = gu(), e = /[\/\+\.]/;
|
|
604
604
|
return As = function(t, s) {
|
|
605
605
|
function r(n) {
|
|
@@ -904,7 +904,7 @@ class Xe {
|
|
|
904
904
|
meta: {},
|
|
905
905
|
onBeforeFileAdded: (r, n) => !Object.hasOwn(n, r.id),
|
|
906
906
|
onBeforeUpload: (r) => r,
|
|
907
|
-
store: new
|
|
907
|
+
store: new uo(),
|
|
908
908
|
logger: cu,
|
|
909
909
|
infoTimeout: 5e3
|
|
910
910
|
}, s = {
|
|
@@ -997,7 +997,7 @@ class Xe {
|
|
|
997
997
|
});
|
|
998
998
|
}
|
|
999
999
|
i18nInit() {
|
|
1000
|
-
const e = (s) => this.log(`Missing i18n string: ${s}`, "error"), t = new
|
|
1000
|
+
const e = (s) => this.log(`Missing i18n string: ${s}`, "error"), t = new ro([this.defaultLocale, this.opts.locale], {
|
|
1001
1001
|
onMissingKey: e
|
|
1002
1002
|
});
|
|
1003
1003
|
this.i18n = t.translate.bind(t), this.i18nArray = t.translateArray.bind(t), this.locale = t.locale;
|
|
@@ -1632,7 +1632,7 @@ function xu(i) {
|
|
|
1632
1632
|
type: i.type,
|
|
1633
1633
|
size: i.size,
|
|
1634
1634
|
data: i
|
|
1635
|
-
} : i, t =
|
|
1635
|
+
} : i, t = co(e), s = hu(t, e), r = ho(s).extension, n = uu(e, this.getID()), a = e.meta || {};
|
|
1636
1636
|
a.name = s, a.type = t;
|
|
1637
1637
|
const o = Number.isFinite(e.data.size) ? e.data.size : null;
|
|
1638
1638
|
return {
|
|
@@ -1954,7 +1954,7 @@ async function Bu(i) {
|
|
|
1954
1954
|
return t && (r = t.result, this.emit("complete", r), _(this, yt)[yt](i)), r == null && this.log(`Not setting result for an upload that has been removed: ${i}`), r;
|
|
1955
1955
|
}
|
|
1956
1956
|
Xe.VERSION = Tu.version;
|
|
1957
|
-
var Ri, B,
|
|
1957
|
+
var Ri, B, po, gt, $n, fo, br, mo, Jr, wr, Sr, _i = {}, go = [], Lu = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, as = Array.isArray;
|
|
1958
1958
|
function We(i, e) {
|
|
1959
1959
|
for (var t in e) i[t] = e[t];
|
|
1960
1960
|
return i;
|
|
@@ -1969,7 +1969,7 @@ function d(i, e, t) {
|
|
|
1969
1969
|
return vi(i, a, s, r, null);
|
|
1970
1970
|
}
|
|
1971
1971
|
function vi(i, e, t, s, r) {
|
|
1972
|
-
var n = { type: i, props: e, key: t, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: r ?? ++
|
|
1972
|
+
var n = { type: i, props: e, key: t, ref: s, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: r ?? ++po, __i: -1, __u: 0 };
|
|
1973
1973
|
return r == null && B.vnode != null && B.vnode(n), n;
|
|
1974
1974
|
}
|
|
1975
1975
|
function zu() {
|
|
@@ -1986,39 +1986,39 @@ function Dt(i, e) {
|
|
|
1986
1986
|
for (var t; e < i.__k.length; e++) if ((t = i.__k[e]) != null && t.__e != null) return t.__e;
|
|
1987
1987
|
return typeof i.type == "function" ? Dt(i) : null;
|
|
1988
1988
|
}
|
|
1989
|
-
function
|
|
1989
|
+
function vo(i) {
|
|
1990
1990
|
var e, t;
|
|
1991
1991
|
if ((i = i.__) != null && i.__c != null) {
|
|
1992
1992
|
for (i.__e = i.__c.base = null, e = 0; e < i.__k.length; e++) if ((t = i.__k[e]) != null && t.__e != null) {
|
|
1993
1993
|
i.__e = i.__c.base = t.__e;
|
|
1994
1994
|
break;
|
|
1995
1995
|
}
|
|
1996
|
-
return
|
|
1996
|
+
return vo(i);
|
|
1997
1997
|
}
|
|
1998
1998
|
}
|
|
1999
|
-
function
|
|
2000
|
-
(!i.__d && (i.__d = !0) && gt.push(i) && !ts.__r++ ||
|
|
1999
|
+
function jn(i) {
|
|
2000
|
+
(!i.__d && (i.__d = !0) && gt.push(i) && !ts.__r++ || $n !== B.debounceRendering) && (($n = B.debounceRendering) || fo)(ts);
|
|
2001
2001
|
}
|
|
2002
2002
|
function ts() {
|
|
2003
2003
|
var i, e, t, s, r, n, a, o;
|
|
2004
|
-
for (gt.sort(br); i = gt.shift(); ) i.__d && (e = gt.length, s = void 0, n = (r = (t = i).__v).__e, a = [], o = [], t.__P && ((s = We({}, r)).__v = r.__v + 1, B.vnode && B.vnode(s), Zr(t.__P, s, r, t.__n, t.__P.namespaceURI, 32 & r.__u ? [n] : null, a, n ?? Dt(r), !!(32 & r.__u), o), s.__v = r.__v, s.__.__k[s.__i] = s,
|
|
2004
|
+
for (gt.sort(br); i = gt.shift(); ) i.__d && (e = gt.length, s = void 0, n = (r = (t = i).__v).__e, a = [], o = [], t.__P && ((s = We({}, r)).__v = r.__v + 1, B.vnode && B.vnode(s), Zr(t.__P, s, r, t.__n, t.__P.namespaceURI, 32 & r.__u ? [n] : null, a, n ?? Dt(r), !!(32 & r.__u), o), s.__v = r.__v, s.__.__k[s.__i] = s, wo(a, s, o), s.__e != n && vo(s)), gt.length > e && gt.sort(br));
|
|
2005
2005
|
ts.__r = 0;
|
|
2006
2006
|
}
|
|
2007
|
-
function
|
|
2008
|
-
var h, p, f, m, y, v, w = s && s.__k ||
|
|
2009
|
-
for (l = $u(t, e, w, l, b), h = 0; h < b; h++) (f = t.__k[h]) != null && (p = f.__i === -1 ? _i : w[f.__i] || _i, f.__i = h, v = Zr(i, f, p, r, n, a, o, l, u, c), m = f.__e, f.ref && p.ref != f.ref && (p.ref && en(p.ref, null, f), c.push(f.ref, f.__c || m, f)), y == null && m != null && (y = m), 4 & f.__u || p.__k === f.__k ? l =
|
|
2007
|
+
function yo(i, e, t, s, r, n, a, o, l, u, c) {
|
|
2008
|
+
var h, p, f, m, y, v, w = s && s.__k || go, b = e.length;
|
|
2009
|
+
for (l = $u(t, e, w, l, b), h = 0; h < b; h++) (f = t.__k[h]) != null && (p = f.__i === -1 ? _i : w[f.__i] || _i, f.__i = h, v = Zr(i, f, p, r, n, a, o, l, u, c), m = f.__e, f.ref && p.ref != f.ref && (p.ref && en(p.ref, null, f), c.push(f.ref, f.__c || m, f)), y == null && m != null && (y = m), 4 & f.__u || p.__k === f.__k ? l = bo(f, l, i) : typeof f.type == "function" && v !== void 0 ? l = v : m && (l = m.nextSibling), f.__u &= -7);
|
|
2010
2010
|
return t.__e = y, l;
|
|
2011
2011
|
}
|
|
2012
2012
|
function $u(i, e, t, s, r) {
|
|
2013
2013
|
var n, a, o, l, u, c = t.length, h = c, p = 0;
|
|
2014
2014
|
for (i.__k = new Array(r), n = 0; n < r; n++) (a = e[n]) != null && typeof a != "boolean" && typeof a != "function" ? (l = n + p, (a = i.__k[n] = typeof a == "string" || typeof a == "number" || typeof a == "bigint" || a.constructor == String ? vi(null, a, null, null, null) : as(a) ? vi(Je, { children: a }, null, null, null) : a.constructor === void 0 && a.__b > 0 ? vi(a.type, a.props, a.key, a.ref ? a.ref : null, a.__v) : a).__ = i, a.__b = i.__b + 1, o = null, (u = a.__i = ju(a, t, l, h)) !== -1 && (h--, (o = t[u]) && (o.__u |= 2)), o == null || o.__v === null ? (u == -1 && p--, typeof a.type != "function" && (a.__u |= 4)) : u != l && (u == l - 1 ? p-- : u == l + 1 ? p++ : (u > l ? p-- : p++, a.__u |= 4))) : i.__k[n] = null;
|
|
2015
|
-
if (h) for (n = 0; n < c; n++) (o = t[n]) != null && !(2 & o.__u) && (o.__e == s && (s = Dt(o)),
|
|
2015
|
+
if (h) for (n = 0; n < c; n++) (o = t[n]) != null && !(2 & o.__u) && (o.__e == s && (s = Dt(o)), So(o, o));
|
|
2016
2016
|
return s;
|
|
2017
2017
|
}
|
|
2018
|
-
function
|
|
2018
|
+
function bo(i, e, t) {
|
|
2019
2019
|
var s, r;
|
|
2020
2020
|
if (typeof i.type == "function") {
|
|
2021
|
-
for (s = i.__k, r = 0; s && r < s.length; r++) s[r] && (s[r].__ = i, e =
|
|
2021
|
+
for (s = i.__k, r = 0; s && r < s.length; r++) s[r] && (s[r].__ = i, e = bo(s[r], e, t));
|
|
2022
2022
|
return e;
|
|
2023
2023
|
}
|
|
2024
2024
|
i.__e != e && (e && i.type && !t.contains(e) && (e = Dt(i)), t.insertBefore(i.__e, e || null), e = i.__e);
|
|
@@ -2047,17 +2047,17 @@ function ju(i, e, t, s) {
|
|
|
2047
2047
|
}
|
|
2048
2048
|
return -1;
|
|
2049
2049
|
}
|
|
2050
|
-
function
|
|
2050
|
+
function Hn(i, e, t) {
|
|
2051
2051
|
e[0] == "-" ? i.setProperty(e, t ?? "") : i[e] = t == null ? "" : typeof t != "number" || Lu.test(e) ? t : t + "px";
|
|
2052
2052
|
}
|
|
2053
2053
|
function Bi(i, e, t, s, r) {
|
|
2054
2054
|
var n;
|
|
2055
2055
|
e: if (e == "style") if (typeof t == "string") i.style.cssText = t;
|
|
2056
2056
|
else {
|
|
2057
|
-
if (typeof s == "string" && (i.style.cssText = s = ""), s) for (e in s) t && e in t ||
|
|
2058
|
-
if (t) for (e in t) s && t[e] === s[e] ||
|
|
2057
|
+
if (typeof s == "string" && (i.style.cssText = s = ""), s) for (e in s) t && e in t || Hn(i.style, e, "");
|
|
2058
|
+
if (t) for (e in t) s && t[e] === s[e] || Hn(i.style, e, t[e]);
|
|
2059
2059
|
}
|
|
2060
|
-
else if (e[0] == "o" && e[1] == "n") n = e != (e = e.replace(
|
|
2060
|
+
else if (e[0] == "o" && e[1] == "n") n = e != (e = e.replace(mo, "$1")), e = e.toLowerCase() in i || e == "onFocusOut" || e == "onFocusIn" ? e.toLowerCase().slice(2) : e.slice(2), i.l || (i.l = {}), i.l[e + n] = t, t ? s ? t.u = s.u : (t.u = Jr, i.addEventListener(e, n ? Sr : wr, n)) : i.removeEventListener(e, n ? Sr : wr, n);
|
|
2061
2061
|
else {
|
|
2062
2062
|
if (r == "http://www.w3.org/2000/svg") e = e.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
2063
2063
|
else if (e != "width" && e != "height" && e != "href" && e != "list" && e != "form" && e != "tabIndex" && e != "download" && e != "rowSpan" && e != "colSpan" && e != "role" && e != "popover" && e in i) try {
|
|
@@ -2068,7 +2068,7 @@ function Bi(i, e, t, s, r) {
|
|
|
2068
2068
|
typeof t == "function" || (t == null || t === !1 && e[4] != "-" ? i.removeAttribute(e) : i.setAttribute(e, e == "popover" && t == 1 ? "" : t));
|
|
2069
2069
|
}
|
|
2070
2070
|
}
|
|
2071
|
-
function
|
|
2071
|
+
function qn(i) {
|
|
2072
2072
|
return function(e) {
|
|
2073
2073
|
if (this.l) {
|
|
2074
2074
|
var t = this.l[e.type + i];
|
|
@@ -2102,7 +2102,7 @@ function Zr(i, e, t, s, r, n, a, o, l, u) {
|
|
|
2102
2102
|
} else do
|
|
2103
2103
|
h.__d = !1, g && g(e), c = h.render(h.props, h.state, h.context), h.state = h.__s;
|
|
2104
2104
|
while (h.__d && ++S < 25);
|
|
2105
|
-
h.state = h.__s, h.getChildContext != null && (s = We(We({}, s), h.getChildContext())), b && !p && h.getSnapshotBeforeUpdate != null && (y = h.getSnapshotBeforeUpdate(f, m)), o =
|
|
2105
|
+
h.state = h.__s, h.getChildContext != null && (s = We(We({}, s), h.getChildContext())), b && !p && h.getSnapshotBeforeUpdate != null && (y = h.getSnapshotBeforeUpdate(f, m)), o = yo(i, as(O = c != null && c.type === Je && c.key == null ? c.props.children : c) ? O : [O], e, t, s, r, n, a, o, l, u), h.base = e.__e, e.__u &= -161, h.__h.length && a.push(h), v && (h.__E = h.__ = null);
|
|
2106
2106
|
} catch (N) {
|
|
2107
2107
|
if (e.__v = null, l || n != null) if (N.then) {
|
|
2108
2108
|
for (e.__u |= l ? 160 : 128; o && o.nodeType == 8 && o.nextSibling; ) o = o.nextSibling;
|
|
@@ -2114,7 +2114,7 @@ function Zr(i, e, t, s, r, n, a, o, l, u) {
|
|
|
2114
2114
|
else n == null && e.__v == t.__v ? (e.__k = t.__k, e.__e = t.__e) : o = e.__e = Hu(t.__e, e, t, s, r, n, a, l, u);
|
|
2115
2115
|
return (c = B.diffed) && c(e), 128 & e.__u ? void 0 : o;
|
|
2116
2116
|
}
|
|
2117
|
-
function
|
|
2117
|
+
function wo(i, e, t) {
|
|
2118
2118
|
for (var s = 0; s < t.length; s++) en(t[s], t[++s], t[++s]);
|
|
2119
2119
|
B.__c && B.__c(e, i), i.some(function(r) {
|
|
2120
2120
|
try {
|
|
@@ -2150,7 +2150,7 @@ function Hu(i, e, t, s, r, n, a, o, l) {
|
|
|
2150
2150
|
}
|
|
2151
2151
|
for (u in w) f = w[u], u == "children" ? p = f : u == "dangerouslySetInnerHTML" ? c = f : u == "value" ? m = f : u == "checked" ? y = f : o && typeof f != "function" || v[u] === f || Bi(i, u, f, v[u], r);
|
|
2152
2152
|
if (c) o || h && (c.__html === h.__html || c.__html === i.innerHTML) || (i.innerHTML = c.__html), e.__k = [];
|
|
2153
|
-
else if (h && (i.innerHTML = ""),
|
|
2153
|
+
else if (h && (i.innerHTML = ""), yo(i, as(p) ? p : [p], e, t, s, b == "foreignObject" ? "http://www.w3.org/1999/xhtml" : r, n, a, n ? n[0] : t.__k && Dt(t, 0), o, l), n != null) for (u = n.length; u--; ) Qr(n[u]);
|
|
2154
2154
|
o || (u = "value", b == "progress" && m == null ? i.removeAttribute("value") : m !== void 0 && (m !== i[u] || b == "progress" && !m || b == "option" && m !== v[u]) && Bi(i, u, m, v[u], r), u = "checked", y !== void 0 && y !== i[u] && Bi(i, u, y, v[u], r));
|
|
2155
2155
|
}
|
|
2156
2156
|
return i;
|
|
@@ -2165,7 +2165,7 @@ function en(i, e, t) {
|
|
|
2165
2165
|
B.__e(r, t);
|
|
2166
2166
|
}
|
|
2167
2167
|
}
|
|
2168
|
-
function
|
|
2168
|
+
function So(i, e, t) {
|
|
2169
2169
|
var s, r;
|
|
2170
2170
|
if (B.unmount && B.unmount(i), (s = i.ref) && (s.current && s.current !== i.__e || en(s, null, e)), (s = i.__c) != null) {
|
|
2171
2171
|
if (s.componentWillUnmount) try {
|
|
@@ -2175,48 +2175,48 @@ function wo(i, e, t) {
|
|
|
2175
2175
|
}
|
|
2176
2176
|
s.base = s.__P = null;
|
|
2177
2177
|
}
|
|
2178
|
-
if (s = i.__k) for (r = 0; r < s.length; r++) s[r] &&
|
|
2178
|
+
if (s = i.__k) for (r = 0; r < s.length; r++) s[r] && So(s[r], e, t || typeof i.type != "function");
|
|
2179
2179
|
t || Qr(i.__e), i.__c = i.__ = i.__e = void 0;
|
|
2180
2180
|
}
|
|
2181
2181
|
function qu(i, e, t) {
|
|
2182
2182
|
return this.constructor(i, t);
|
|
2183
2183
|
}
|
|
2184
|
-
function
|
|
2184
|
+
function Vn(i, e, t) {
|
|
2185
2185
|
var s, r, n, a;
|
|
2186
|
-
e == document && (e = document.documentElement), B.__ && B.__(i, e), r = (s = typeof t == "function") ? null : e.__k, n = [], a = [], Zr(e, i = e.__k = d(Je, null, [i]), r || _i, _i, e.namespaceURI, r ? null : e.firstChild ? Ri.call(e.childNodes) : null, n, r ? r.__e : e.firstChild, s, a),
|
|
2186
|
+
e == document && (e = document.documentElement), B.__ && B.__(i, e), r = (s = typeof t == "function") ? null : e.__k, n = [], a = [], Zr(e, i = e.__k = d(Je, null, [i]), r || _i, _i, e.namespaceURI, r ? null : e.firstChild ? Ri.call(e.childNodes) : null, n, r ? r.__e : e.firstChild, s, a), wo(n, i, a);
|
|
2187
2187
|
}
|
|
2188
|
-
function
|
|
2188
|
+
function _o(i, e, t) {
|
|
2189
2189
|
var s, r, n, a, o = We({}, i.props);
|
|
2190
2190
|
for (n in i.type && i.type.defaultProps && (a = i.type.defaultProps), e) n == "key" ? s = e[n] : n == "ref" ? r = e[n] : o[n] = e[n] === void 0 && a !== void 0 ? a[n] : e[n];
|
|
2191
2191
|
return arguments.length > 2 && (o.children = arguments.length > 3 ? Ri.call(arguments, 2) : t), vi(i.type, o, s || i.key, r || i.ref, null);
|
|
2192
2192
|
}
|
|
2193
|
-
Ri =
|
|
2193
|
+
Ri = go.slice, B = { __e: function(i, e, t, s) {
|
|
2194
2194
|
for (var r, n, a; e = e.__; ) if ((r = e.__c) && !r.__) try {
|
|
2195
2195
|
if ((n = r.constructor) && n.getDerivedStateFromError != null && (r.setState(n.getDerivedStateFromError(i)), a = r.__d), r.componentDidCatch != null && (r.componentDidCatch(i, s || {}), a = r.__d), a) return r.__E = r;
|
|
2196
2196
|
} catch (o) {
|
|
2197
2197
|
i = o;
|
|
2198
2198
|
}
|
|
2199
2199
|
throw i;
|
|
2200
|
-
} },
|
|
2200
|
+
} }, po = 0, ae.prototype.setState = function(i, e) {
|
|
2201
2201
|
var t;
|
|
2202
|
-
t = this.__s != null && this.__s !== this.state ? this.__s : this.__s = We({}, this.state), typeof i == "function" && (i = i(We({}, t), this.props)), i && We(t, i), i != null && this.__v && (e && this._sb.push(e),
|
|
2202
|
+
t = this.__s != null && this.__s !== this.state ? this.__s : this.__s = We({}, this.state), typeof i == "function" && (i = i(We({}, t), this.props)), i && We(t, i), i != null && this.__v && (e && this._sb.push(e), jn(this));
|
|
2203
2203
|
}, ae.prototype.forceUpdate = function(i) {
|
|
2204
|
-
this.__v && (this.__e = !0, i && this.__h.push(i),
|
|
2205
|
-
}, ae.prototype.render = Je, gt = [],
|
|
2204
|
+
this.__v && (this.__e = !0, i && this.__h.push(i), jn(this));
|
|
2205
|
+
}, ae.prototype.render = Je, gt = [], fo = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, br = function(i, e) {
|
|
2206
2206
|
return i.__v.__b - e.__v.__b;
|
|
2207
|
-
}, ts.__r = 0,
|
|
2208
|
-
function
|
|
2207
|
+
}, ts.__r = 0, mo = /(PointerCapture)$|Capture$/i, Jr = 0, wr = qn(!1), Sr = qn(!0);
|
|
2208
|
+
function Fo(i) {
|
|
2209
2209
|
return typeof i != "object" || i === null || !("nodeType" in i) ? !1 : i.nodeType === Node.ELEMENT_NODE;
|
|
2210
2210
|
}
|
|
2211
2211
|
function Vu(i, e) {
|
|
2212
|
-
return e === void 0 && (e = document), typeof i == "string" ? e.querySelector(i) :
|
|
2212
|
+
return e === void 0 && (e = document), typeof i == "string" ? e.querySelector(i) : Fo(i) ? i : null;
|
|
2213
2213
|
}
|
|
2214
|
-
function
|
|
2214
|
+
function To(i) {
|
|
2215
2215
|
for (var e; i && !i.dir; )
|
|
2216
2216
|
i = i.parentNode;
|
|
2217
2217
|
return (e = i) == null ? void 0 : e.dir;
|
|
2218
2218
|
}
|
|
2219
|
-
class
|
|
2219
|
+
class Po {
|
|
2220
2220
|
constructor(e, t) {
|
|
2221
2221
|
this.uppy = e, this.opts = t ?? {};
|
|
2222
2222
|
}
|
|
@@ -2247,7 +2247,7 @@ class To {
|
|
|
2247
2247
|
}, this.setPluginState(void 0), this.i18nInit();
|
|
2248
2248
|
}
|
|
2249
2249
|
i18nInit() {
|
|
2250
|
-
const e = new
|
|
2250
|
+
const e = new ro([this.defaultLocale, this.uppy.locale, this.opts.locale]);
|
|
2251
2251
|
this.i18n = e.translate.bind(e), this.i18nArray = e.translateArray.bind(e), this.setPluginState(void 0);
|
|
2252
2252
|
}
|
|
2253
2253
|
/**
|
|
@@ -2271,7 +2271,7 @@ class To {
|
|
|
2271
2271
|
afterUpdate() {
|
|
2272
2272
|
}
|
|
2273
2273
|
}
|
|
2274
|
-
function
|
|
2274
|
+
function Wn(i, e) {
|
|
2275
2275
|
if (!{}.hasOwnProperty.call(i, e)) throw new TypeError("attempted to use private field on non-instance");
|
|
2276
2276
|
return i;
|
|
2277
2277
|
}
|
|
@@ -2288,7 +2288,7 @@ function Xu(i) {
|
|
|
2288
2288
|
};
|
|
2289
2289
|
}
|
|
2290
2290
|
var Xt = /* @__PURE__ */ Gu("updateUI");
|
|
2291
|
-
class oe extends
|
|
2291
|
+
class oe extends Po {
|
|
2292
2292
|
constructor() {
|
|
2293
2293
|
super(...arguments), Object.defineProperty(this, Xt, {
|
|
2294
2294
|
writable: !0,
|
|
@@ -2322,9 +2322,9 @@ class oe extends To {
|
|
|
2322
2322
|
if (r) {
|
|
2323
2323
|
this.isTargetDOMEl = !0;
|
|
2324
2324
|
const o = document.createElement("div");
|
|
2325
|
-
return o.classList.add("uppy-Root"),
|
|
2326
|
-
this.uppy.getPlugin(this.id) && (
|
|
2327
|
-
}), this.uppy.log(`Installing ${s} to a DOM element '${e}'`), this.opts.replaceTargetContent && (r.innerHTML = ""),
|
|
2325
|
+
return o.classList.add("uppy-Root"), Wn(this, Xt)[Xt] = Xu((l) => {
|
|
2326
|
+
this.uppy.getPlugin(this.id) && (Vn(this.render(l, o), o), this.afterUpdate());
|
|
2327
|
+
}), this.uppy.log(`Installing ${s} to a DOM element '${e}'`), this.opts.replaceTargetContent && (r.innerHTML = ""), Vn(this.render(this.uppy.getState(), o), o), this.el = o, r.appendChild(o), o.dir = this.opts.direction || To(o) || "ltr", this.onMount(), this.el;
|
|
2328
2328
|
}
|
|
2329
2329
|
const n = this.getTargetPlugin(e);
|
|
2330
2330
|
if (n)
|
|
@@ -2345,7 +2345,7 @@ class oe extends To {
|
|
|
2345
2345
|
update(e) {
|
|
2346
2346
|
if (this.el != null) {
|
|
2347
2347
|
var t, s;
|
|
2348
|
-
(t = (s =
|
|
2348
|
+
(t = (s = Wn(this, Xt))[Xt]) == null || t.call(s, e);
|
|
2349
2349
|
}
|
|
2350
2350
|
}
|
|
2351
2351
|
unmount() {
|
|
@@ -2360,7 +2360,7 @@ class oe extends To {
|
|
|
2360
2360
|
onUnmount() {
|
|
2361
2361
|
}
|
|
2362
2362
|
}
|
|
2363
|
-
function
|
|
2363
|
+
function Gn(i, e, t, s) {
|
|
2364
2364
|
return i === e ? i : s === 0 ? e : i + (e - i) * 2 ** (-s / t);
|
|
2365
2365
|
}
|
|
2366
2366
|
const Oe = {
|
|
@@ -2377,9 +2377,9 @@ var Is = { exports: {} };
|
|
|
2377
2377
|
Licensed under the MIT License (MIT), see
|
|
2378
2378
|
http://jedwatson.github.io/classnames
|
|
2379
2379
|
*/
|
|
2380
|
-
var
|
|
2380
|
+
var Xn;
|
|
2381
2381
|
function Yu() {
|
|
2382
|
-
return
|
|
2382
|
+
return Xn || (Xn = 1, function(i) {
|
|
2383
2383
|
(function() {
|
|
2384
2384
|
var e = {}.hasOwnProperty;
|
|
2385
2385
|
function t() {
|
|
@@ -2446,7 +2446,7 @@ function Qu(i) {
|
|
|
2446
2446
|
const e = Ju(i), t = e.hours === 0 ? "" : `${e.hours}h`, s = e.minutes === 0 ? "" : `${e.hours === 0 ? e.minutes : ` ${e.minutes.toString(10).padStart(2, "0")}`}m`, r = e.hours !== 0 ? "" : `${e.minutes === 0 ? e.seconds : ` ${e.seconds.toString(10).padStart(2, "0")}`}s`;
|
|
2447
2447
|
return `${t}${s}${r}`;
|
|
2448
2448
|
}
|
|
2449
|
-
const Zu = "·",
|
|
2449
|
+
const Zu = "·", Yn = () => ` ${Zu} `;
|
|
2450
2450
|
function ed(i) {
|
|
2451
2451
|
const {
|
|
2452
2452
|
newFiles: e,
|
|
@@ -2594,7 +2594,7 @@ function rd(i) {
|
|
|
2594
2594
|
"data-uppy-super-focusable": !0
|
|
2595
2595
|
}, e("done"));
|
|
2596
2596
|
}
|
|
2597
|
-
function
|
|
2597
|
+
function Co() {
|
|
2598
2598
|
return d("svg", {
|
|
2599
2599
|
className: "uppy-StatusBar-spinner",
|
|
2600
2600
|
"aria-hidden": "true",
|
|
@@ -2616,7 +2616,7 @@ function nd(i) {
|
|
|
2616
2616
|
} = e;
|
|
2617
2617
|
return d("div", {
|
|
2618
2618
|
className: "uppy-StatusBar-content"
|
|
2619
|
-
}, d(
|
|
2619
|
+
}, d(Co, null), s === "determinate" ? `${Math.round(t * 100)}% · ` : "", r);
|
|
2620
2620
|
}
|
|
2621
2621
|
function ad(i) {
|
|
2622
2622
|
const {
|
|
@@ -2634,16 +2634,16 @@ function ad(i) {
|
|
|
2634
2634
|
smart_count: e
|
|
2635
2635
|
}), d("span", {
|
|
2636
2636
|
className: "uppy-StatusBar-additionalInfo"
|
|
2637
|
-
}, o &&
|
|
2637
|
+
}, o && Yn(), r != null ? a("dataUploadedOfTotal", {
|
|
2638
2638
|
complete: l,
|
|
2639
2639
|
total: vt(r)
|
|
2640
2640
|
}) : a("dataUploadedOfUnknown", {
|
|
2641
2641
|
complete: l
|
|
2642
|
-
}),
|
|
2642
|
+
}), Yn(), n != null && a("xTimeLeft", {
|
|
2643
2643
|
time: Qu(n)
|
|
2644
2644
|
})));
|
|
2645
2645
|
}
|
|
2646
|
-
function
|
|
2646
|
+
function Eo(i) {
|
|
2647
2647
|
const {
|
|
2648
2648
|
i18n: e,
|
|
2649
2649
|
complete: t,
|
|
@@ -2705,7 +2705,7 @@ function ld(i) {
|
|
|
2705
2705
|
totalSize: p,
|
|
2706
2706
|
totalETA: f,
|
|
2707
2707
|
i18n: e
|
|
2708
|
-
}) : d(
|
|
2708
|
+
}) : d(Eo, {
|
|
2709
2709
|
i18n: e,
|
|
2710
2710
|
complete: c,
|
|
2711
2711
|
numUploads: u
|
|
@@ -2715,7 +2715,7 @@ function ld(i) {
|
|
|
2715
2715
|
className: "uppy-StatusBar-content",
|
|
2716
2716
|
"aria-label": v,
|
|
2717
2717
|
title: v
|
|
2718
|
-
}, o ? null : d(
|
|
2718
|
+
}, o ? null : d(Co, null), d("div", {
|
|
2719
2719
|
className: "uppy-StatusBar-status"
|
|
2720
2720
|
}, d("div", {
|
|
2721
2721
|
className: "uppy-StatusBar-statusPrimary"
|
|
@@ -2784,14 +2784,14 @@ function dd(i) {
|
|
|
2784
2784
|
"data-microtip-size": "medium",
|
|
2785
2785
|
onClick: n,
|
|
2786
2786
|
type: "button"
|
|
2787
|
-
}, "?")), d(
|
|
2787
|
+
}, "?")), d(Eo, {
|
|
2788
2788
|
i18n: t,
|
|
2789
2789
|
complete: s,
|
|
2790
2790
|
numUploads: r
|
|
2791
2791
|
})));
|
|
2792
2792
|
}
|
|
2793
2793
|
const {
|
|
2794
|
-
STATE_ERROR:
|
|
2794
|
+
STATE_ERROR: Kn,
|
|
2795
2795
|
STATE_WAITING: hd,
|
|
2796
2796
|
STATE_PREPROCESSING: Bs,
|
|
2797
2797
|
STATE_UPLOADING: Li,
|
|
@@ -2837,7 +2837,7 @@ function cd(i) {
|
|
|
2837
2837
|
const ki = Us(m);
|
|
2838
2838
|
return ki.mode === "determinate" ? ki.value * 100 : f;
|
|
2839
2839
|
}
|
|
2840
|
-
case
|
|
2840
|
+
case Kn:
|
|
2841
2841
|
return null;
|
|
2842
2842
|
case Li:
|
|
2843
2843
|
return y ? f : null;
|
|
@@ -2875,7 +2875,7 @@ function cd(i) {
|
|
|
2875
2875
|
return d(ud, {
|
|
2876
2876
|
i18n: P
|
|
2877
2877
|
});
|
|
2878
|
-
case
|
|
2878
|
+
case Kn:
|
|
2879
2879
|
return d(dd, {
|
|
2880
2880
|
error: a,
|
|
2881
2881
|
i18n: P,
|
|
@@ -3135,7 +3135,7 @@ class tn extends oe {
|
|
|
3135
3135
|
}
|
|
3136
3136
|
onMount() {
|
|
3137
3137
|
const e = this.el;
|
|
3138
|
-
|
|
3138
|
+
To(e) || (e.dir = "ltr");
|
|
3139
3139
|
}
|
|
3140
3140
|
install() {
|
|
3141
3141
|
const {
|
|
@@ -3165,22 +3165,22 @@ function wd(i) {
|
|
|
3165
3165
|
var o;
|
|
3166
3166
|
return Math.round(((o = j(this, he)[he]) != null ? o : 0) / 100) / 10;
|
|
3167
3167
|
}
|
|
3168
|
-
const l = a / r, u = j(this, $e)[$e] == null ? l :
|
|
3168
|
+
const l = a / r, u = j(this, $e)[$e] == null ? l : Gn(l, j(this, $e)[$e], gd, r);
|
|
3169
3169
|
j(this, $e)[$e] = u;
|
|
3170
|
-
const c = s / u, h = Math.max(j(this, he)[he] - r, 0), p = j(this, he)[he] == null ? c :
|
|
3170
|
+
const c = s / u, h = Math.max(j(this, he)[he] - r, 0), p = j(this, he)[he] == null ? c : Gn(c, h, vd, r);
|
|
3171
3171
|
return j(this, he)[he] = p, j(this, ve)[ve] = performance.now(), Math.round(p / 100) / 10;
|
|
3172
3172
|
}
|
|
3173
3173
|
tn.VERSION = md.version;
|
|
3174
|
-
const
|
|
3174
|
+
const Jn = 300;
|
|
3175
3175
|
class Sd extends ae {
|
|
3176
3176
|
constructor() {
|
|
3177
3177
|
super(...arguments), this.ref = zu();
|
|
3178
3178
|
}
|
|
3179
3179
|
componentWillEnter(e) {
|
|
3180
|
-
this.ref.current.style.opacity = "1", this.ref.current.style.transform = "none", setTimeout(e,
|
|
3180
|
+
this.ref.current.style.opacity = "1", this.ref.current.style.transform = "none", setTimeout(e, Jn);
|
|
3181
3181
|
}
|
|
3182
3182
|
componentWillLeave(e) {
|
|
3183
|
-
this.ref.current.style.opacity = "0", this.ref.current.style.transform = "translateY(350%)", setTimeout(e,
|
|
3183
|
+
this.ref.current.style.opacity = "0", this.ref.current.style.transform = "translateY(350%)", setTimeout(e, Jn);
|
|
3184
3184
|
}
|
|
3185
3185
|
render() {
|
|
3186
3186
|
const {
|
|
@@ -3234,7 +3234,7 @@ function Pd(i, e) {
|
|
|
3234
3234
|
return n;
|
|
3235
3235
|
}
|
|
3236
3236
|
const Cd = (i) => i;
|
|
3237
|
-
class
|
|
3237
|
+
class Oo extends ae {
|
|
3238
3238
|
constructor(e, t) {
|
|
3239
3239
|
super(e, t), this.refs = {}, this.state = {
|
|
3240
3240
|
children: Kt(Ke(Ke(this.props.children)) || [])
|
|
@@ -3342,7 +3342,7 @@ class Eo extends ae {
|
|
|
3342
3342
|
let [v, w] = y;
|
|
3343
3343
|
if (!w) return;
|
|
3344
3344
|
const b = Td(this, v);
|
|
3345
|
-
return
|
|
3345
|
+
return _o(s(w), {
|
|
3346
3346
|
ref: b,
|
|
3347
3347
|
key: v
|
|
3348
3348
|
});
|
|
@@ -3350,18 +3350,18 @@ class Eo extends ae {
|
|
|
3350
3350
|
return d(h, p, m);
|
|
3351
3351
|
}
|
|
3352
3352
|
}
|
|
3353
|
-
|
|
3353
|
+
Oo.defaultProps = {
|
|
3354
3354
|
component: "span",
|
|
3355
3355
|
childFactory: Cd
|
|
3356
3356
|
};
|
|
3357
3357
|
const Ed = {
|
|
3358
3358
|
version: "4.1.2"
|
|
3359
3359
|
};
|
|
3360
|
-
class
|
|
3360
|
+
class xo extends oe {
|
|
3361
3361
|
constructor(e, t) {
|
|
3362
3362
|
super(e, t), this.render = (s) => d("div", {
|
|
3363
3363
|
className: "uppy uppy-Informer"
|
|
3364
|
-
}, d(
|
|
3364
|
+
}, d(Oo, null, s.info.map((r) => d(Sd, {
|
|
3365
3365
|
key: r.message
|
|
3366
3366
|
}, d("p", {
|
|
3367
3367
|
role: "alert"
|
|
@@ -3385,7 +3385,7 @@ class Oo extends oe {
|
|
|
3385
3385
|
e && this.mount(e, this);
|
|
3386
3386
|
}
|
|
3387
3387
|
}
|
|
3388
|
-
|
|
3388
|
+
xo.VERSION = Ed.version;
|
|
3389
3389
|
const Od = /^data:([^/]+\/[^,;]+(?:[^,]*?))(;base64)?,([\s\S]*)$/;
|
|
3390
3390
|
function xd(i, e, t) {
|
|
3391
3391
|
var s, r;
|
|
@@ -3401,32 +3401,32 @@ function xd(i, e, t) {
|
|
|
3401
3401
|
type: a
|
|
3402
3402
|
});
|
|
3403
3403
|
}
|
|
3404
|
-
function
|
|
3404
|
+
function Qn(i) {
|
|
3405
3405
|
return i.startsWith("blob:");
|
|
3406
3406
|
}
|
|
3407
|
-
function
|
|
3407
|
+
function Zn(i) {
|
|
3408
3408
|
return i ? /^[^/]+\/(jpe?g|gif|png|svg|svg\+xml|bmp|webp|avif)$/.test(i) : !1;
|
|
3409
3409
|
}
|
|
3410
3410
|
function A(i, e, t) {
|
|
3411
3411
|
return e in i ? Object.defineProperty(i, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : i[e] = t, i;
|
|
3412
3412
|
}
|
|
3413
|
-
var
|
|
3414
|
-
const Fi = typeof navigator < "u", Rd = Fi && typeof HTMLImageElement > "u",
|
|
3415
|
-
function
|
|
3413
|
+
var Ro = typeof self < "u" ? self : global;
|
|
3414
|
+
const Fi = typeof navigator < "u", Rd = Fi && typeof HTMLImageElement > "u", ea = !(typeof global > "u" || typeof process > "u" || !process.versions || !process.versions.node), Do = Ro.Buffer, Ao = !!Do, Dd = (i) => i !== void 0;
|
|
3415
|
+
function ko(i) {
|
|
3416
3416
|
return i === void 0 || (i instanceof Map ? i.size === 0 : Object.values(i).filter(Dd).length === 0);
|
|
3417
3417
|
}
|
|
3418
3418
|
function Y(i) {
|
|
3419
3419
|
let e = new Error(i);
|
|
3420
3420
|
throw delete e.stack, e;
|
|
3421
3421
|
}
|
|
3422
|
-
function
|
|
3422
|
+
function ta(i) {
|
|
3423
3423
|
let e = function(t) {
|
|
3424
3424
|
let s = 0;
|
|
3425
3425
|
return t.ifd0.enabled && (s += 1024), t.exif.enabled && (s += 2048), t.makerNote && (s += 2048), t.userComment && (s += 1024), t.gps.enabled && (s += 512), t.interop.enabled && (s += 100), t.ifd1.enabled && (s += 1024), s + 2048;
|
|
3426
3426
|
}(i);
|
|
3427
3427
|
return i.jfif.enabled && (e += 50), i.xmp.enabled && (e += 2e4), i.iptc.enabled && (e += 14e3), i.icc.enabled && (e += 6e3), e;
|
|
3428
3428
|
}
|
|
3429
|
-
const $s = (i) => String.fromCharCode.apply(null, i),
|
|
3429
|
+
const $s = (i) => String.fromCharCode.apply(null, i), ia = typeof TextDecoder < "u" ? new TextDecoder("utf-8") : void 0;
|
|
3430
3430
|
let Ti = class Tt {
|
|
3431
3431
|
static from(e, t) {
|
|
3432
3432
|
return e instanceof this && e.le === t ? e : new Tt(e, void 0, void 0, t);
|
|
@@ -3471,7 +3471,7 @@ let Ti = class Tt {
|
|
|
3471
3471
|
return new Uint8Array(this.buffer, this.byteOffset + e, t);
|
|
3472
3472
|
}
|
|
3473
3473
|
getString(e = 0, t = this.byteLength) {
|
|
3474
|
-
return r = this.getUint8Array(e, t),
|
|
3474
|
+
return r = this.getUint8Array(e, t), ia ? ia.decode(r) : Ao ? Buffer.from(r).toString("utf8") : decodeURIComponent(escape($s(r)));
|
|
3475
3475
|
var r;
|
|
3476
3476
|
}
|
|
3477
3477
|
getLatin1String(e = 0, t = this.byteLength) {
|
|
@@ -3559,10 +3559,10 @@ class sn extends Map {
|
|
|
3559
3559
|
return Array.from(this.keys());
|
|
3560
3560
|
}
|
|
3561
3561
|
}
|
|
3562
|
-
var
|
|
3563
|
-
let Ad =
|
|
3564
|
-
function
|
|
3565
|
-
return (t = i).startsWith("data:") || t.length > 1e4 ? Tr(i, e, "base64") :
|
|
3562
|
+
var Mo = new sn("file parser"), Fe = new sn("segment parser"), rn = new sn("file reader");
|
|
3563
|
+
let Ad = Ro.fetch;
|
|
3564
|
+
function sa(i, e) {
|
|
3565
|
+
return (t = i).startsWith("data:") || t.length > 1e4 ? Tr(i, e, "base64") : ea && i.includes("://") ? Fr(i, e, "url", ra) : ea ? Tr(i, e, "fs") : Fi ? Fr(i, e, "url", ra) : void Y("Invalid input argument");
|
|
3566
3566
|
var t;
|
|
3567
3567
|
}
|
|
3568
3568
|
async function Fr(i, e, t, s) {
|
|
@@ -3575,16 +3575,16 @@ async function Tr(i, e, t) {
|
|
|
3575
3575
|
let s = new (rn.get(t))(i, e);
|
|
3576
3576
|
return await s.read(), s;
|
|
3577
3577
|
}
|
|
3578
|
-
const
|
|
3578
|
+
const ra = (i) => Ad(i).then((e) => e.arrayBuffer()), Pr = (i) => new Promise((e, t) => {
|
|
3579
3579
|
let s = new FileReader();
|
|
3580
3580
|
s.onloadend = () => e(s.result || new ArrayBuffer()), s.onerror = t, s.readAsArrayBuffer(i);
|
|
3581
|
-
}), nn = /* @__PURE__ */ new Map(), kd = /* @__PURE__ */ new Map(), Md = /* @__PURE__ */ new Map(), $i = ["chunked", "firstChunkSize", "firstChunkSizeNode", "firstChunkSizeBrowser", "chunkSize", "chunkLimit"],
|
|
3582
|
-
class
|
|
3581
|
+
}), nn = /* @__PURE__ */ new Map(), kd = /* @__PURE__ */ new Map(), Md = /* @__PURE__ */ new Map(), $i = ["chunked", "firstChunkSize", "firstChunkSizeNode", "firstChunkSizeBrowser", "chunkSize", "chunkLimit"], No = ["jfif", "xmp", "icc", "iptc", "ihdr"], Cr = ["tiff", ...No], W = ["ifd0", "ifd1", "exif", "gps", "interop"], ji = [...Cr, ...W], Hi = ["makerNote", "userComment"], Io = ["translateKeys", "translateValues", "reviveValues", "multiSegment"], qi = [...Io, "sanitize", "mergeOutput", "silentErrors"];
|
|
3582
|
+
class Uo {
|
|
3583
3583
|
get translate() {
|
|
3584
3584
|
return this.translateKeys || this.translateValues || this.reviveValues;
|
|
3585
3585
|
}
|
|
3586
3586
|
}
|
|
3587
|
-
let Jt = class extends
|
|
3587
|
+
let Jt = class extends Uo {
|
|
3588
3588
|
get needed() {
|
|
3589
3589
|
return this.enabled || this.deps.size > 0;
|
|
3590
3590
|
}
|
|
@@ -3600,7 +3600,7 @@ let Jt = class extends Io {
|
|
|
3600
3600
|
}
|
|
3601
3601
|
applyInheritables(e) {
|
|
3602
3602
|
let t, s;
|
|
3603
|
-
for (t of
|
|
3603
|
+
for (t of Io) s = e[t], s !== void 0 && (this[t] = s);
|
|
3604
3604
|
}
|
|
3605
3605
|
translateTagSet(e, t) {
|
|
3606
3606
|
if (this.dict) {
|
|
@@ -3612,11 +3612,11 @@ let Jt = class extends Io {
|
|
|
3612
3612
|
!this.enabled && this.deps.size > 0 ? (this.enabled = !0, is(this.pick, this.deps)) : this.enabled && this.pick.size > 0 && is(this.pick, this.deps);
|
|
3613
3613
|
}
|
|
3614
3614
|
};
|
|
3615
|
-
var ie = { jfif: !1, tiff: !0, xmp: !1, icc: !1, iptc: !1, ifd0: !0, ifd1: !1, exif: !0, gps: !0, interop: !1, ihdr: void 0, makerNote: !1, userComment: !1, multiSegment: !1, skip: [], pick: [], translateKeys: !0, translateValues: !0, reviveValues: !0, sanitize: !0, mergeOutput: !0, silentErrors: !0, chunked: !0, firstChunkSize: void 0, firstChunkSizeNode: 512, firstChunkSizeBrowser: 65536, chunkSize: 65536, chunkLimit: 5 },
|
|
3616
|
-
class an extends
|
|
3615
|
+
var ie = { jfif: !1, tiff: !0, xmp: !1, icc: !1, iptc: !1, ifd0: !0, ifd1: !1, exif: !0, gps: !0, interop: !1, ihdr: void 0, makerNote: !1, userComment: !1, multiSegment: !1, skip: [], pick: [], translateKeys: !0, translateValues: !0, reviveValues: !0, sanitize: !0, mergeOutput: !0, silentErrors: !0, chunked: !0, firstChunkSize: void 0, firstChunkSizeNode: 512, firstChunkSizeBrowser: 65536, chunkSize: 65536, chunkLimit: 5 }, na = /* @__PURE__ */ new Map();
|
|
3616
|
+
class an extends Uo {
|
|
3617
3617
|
static useCached(e) {
|
|
3618
|
-
let t =
|
|
3619
|
-
return t !== void 0 || (t = new this(e),
|
|
3618
|
+
let t = na.get(e);
|
|
3619
|
+
return t !== void 0 || (t = new this(e), na.set(e, t)), t;
|
|
3620
3620
|
}
|
|
3621
3621
|
constructor(e) {
|
|
3622
3622
|
super(), e === !0 ? this.setupFromTrue() : e === void 0 ? this.setupFromUndefined() : Array.isArray(e) ? this.setupFromArray(e) : typeof e == "object" ? this.setupFromObject(e) : Y(`Invalid options argument ${e}`), this.firstChunkSize === void 0 && (this.firstChunkSize = Fi ? this.firstChunkSizeBrowser : this.firstChunkSizeNode), this.mergeOutput && (this.ifd1.enabled = !1), this.filterNestedSegmentTags(), this.traverseTiffDependencyTree(), this.checkLoadedPlugins();
|
|
@@ -3664,10 +3664,10 @@ class an extends Io {
|
|
|
3664
3664
|
setupGlobalFilters(e, t, s, r = s) {
|
|
3665
3665
|
if (e && e.length) {
|
|
3666
3666
|
for (let a of r) this[a].enabled = !1;
|
|
3667
|
-
let n =
|
|
3667
|
+
let n = aa(e, s);
|
|
3668
3668
|
for (let [a, o] of n) is(this[a].pick, o), this[a].enabled = !0;
|
|
3669
3669
|
} else if (t && t.length) {
|
|
3670
|
-
let n =
|
|
3670
|
+
let n = aa(t, s);
|
|
3671
3671
|
for (let [a, o] of n) is(this[a].skip, o);
|
|
3672
3672
|
}
|
|
3673
3673
|
}
|
|
@@ -3681,13 +3681,13 @@ class an extends Io {
|
|
|
3681
3681
|
for (let n of W) this[n].finalizeFilters();
|
|
3682
3682
|
}
|
|
3683
3683
|
get onlyTiff() {
|
|
3684
|
-
return !
|
|
3684
|
+
return !No.map((e) => this[e].enabled).some((e) => e === !0) && this.tiff.enabled;
|
|
3685
3685
|
}
|
|
3686
3686
|
checkLoadedPlugins() {
|
|
3687
3687
|
for (let e of Cr) this[e].enabled && !Fe.has(e) && _r("segment parser", e);
|
|
3688
3688
|
}
|
|
3689
3689
|
}
|
|
3690
|
-
function
|
|
3690
|
+
function aa(i, e) {
|
|
3691
3691
|
let t, s, r, n, a = [];
|
|
3692
3692
|
for (r of e) {
|
|
3693
3693
|
for (n of (t = nn.get(r), s = [], t)) (i.includes(n[0]) || i.includes(n[1])) && s.push(n[0]);
|
|
@@ -3708,18 +3708,18 @@ class Nd {
|
|
|
3708
3708
|
}
|
|
3709
3709
|
async read(e) {
|
|
3710
3710
|
this.file = await function(t, s) {
|
|
3711
|
-
return typeof t == "string" ?
|
|
3711
|
+
return typeof t == "string" ? sa(t, s) : Fi && !Rd && t instanceof HTMLImageElement ? sa(t.src, s) : t instanceof Uint8Array || t instanceof ArrayBuffer || t instanceof DataView ? new Ti(t) : Fi && t instanceof Blob ? Fr(t, s, "blob", Pr) : void Y("Invalid input argument");
|
|
3712
3712
|
}(e, this.options);
|
|
3713
3713
|
}
|
|
3714
3714
|
setup() {
|
|
3715
3715
|
if (this.fileParser) return;
|
|
3716
3716
|
let { file: e } = this, t = e.getUint16(0);
|
|
3717
|
-
for (let [s, r] of
|
|
3717
|
+
for (let [s, r] of Mo) if (r.canHandle(e, t)) return this.fileParser = new r(this.options, this.file, this.parsers), e[s] = !0;
|
|
3718
3718
|
this.file.close && this.file.close(), Y("Unknown file format");
|
|
3719
3719
|
}
|
|
3720
3720
|
async parse() {
|
|
3721
3721
|
let { output: e, errors: t } = this;
|
|
3722
|
-
return this.setup(), this.options.silentErrors ? (await this.executeParsers().catch(this.pushToErrors), t.push(...this.fileParser.errors)) : await this.executeParsers(), this.file.close && this.file.close(), this.options.silentErrors && t.length > 0 && (e.errors = t),
|
|
3722
|
+
return this.setup(), this.options.silentErrors ? (await this.executeParsers().catch(this.pushToErrors), t.push(...this.fileParser.errors)) : await this.executeParsers(), this.file.close && this.file.close(), this.options.silentErrors && t.length > 0 && (e.errors = t), ko(s = e) ? void 0 : s;
|
|
3723
3723
|
var s;
|
|
3724
3724
|
}
|
|
3725
3725
|
async executeParsers() {
|
|
@@ -3789,7 +3789,7 @@ function Ud(i) {
|
|
|
3789
3789
|
function Bd(i, e, t) {
|
|
3790
3790
|
for (let [s, r] of Fe) if (r.canHandle(i, e, t)) return s;
|
|
3791
3791
|
}
|
|
3792
|
-
class
|
|
3792
|
+
class oa extends class {
|
|
3793
3793
|
constructor(e, t, s) {
|
|
3794
3794
|
A(this, "errors", []), A(this, "ensureSegmentChunk", async (r) => {
|
|
3795
3795
|
let n = r.start, a = r.size || 65536;
|
|
@@ -3884,7 +3884,7 @@ class aa extends class {
|
|
|
3884
3884
|
return t === void 0 && (await this.findAppSegments(0, [e]), t = this.getSegment(e)), t;
|
|
3885
3885
|
}
|
|
3886
3886
|
}
|
|
3887
|
-
A(
|
|
3887
|
+
A(oa, "type", "jpeg"), Mo.set("jpeg", oa);
|
|
3888
3888
|
const Ld = [void 0, 1, 1, 2, 4, 8, 1, 1, 2, 4, 8, 4, 8, 4];
|
|
3889
3889
|
class zd extends Pt {
|
|
3890
3890
|
parseHeader() {
|
|
@@ -4007,13 +4007,13 @@ class Hs extends zd {
|
|
|
4007
4007
|
if (this.ifd0) return;
|
|
4008
4008
|
let { file: e } = this;
|
|
4009
4009
|
this.findIfd0Offset(), this.ifd0Offset < 8 && Y("Malformed EXIF data"), !e.chunked && this.ifd0Offset > e.byteLength && Y(`IFD0 offset points to outside of file.
|
|
4010
|
-
this.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${e.byteLength}`), e.tiff && await e.ensureChunk(this.ifd0Offset,
|
|
4010
|
+
this.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${e.byteLength}`), e.tiff && await e.ensureChunk(this.ifd0Offset, ta(this.options));
|
|
4011
4011
|
let t = this.parseBlock(this.ifd0Offset, "ifd0");
|
|
4012
4012
|
return t.size !== 0 ? (this.exifOffset = t.get(34665), this.interopOffset = t.get(40965), this.gpsOffset = t.get(34853), this.xmp = t.get(700), this.iptc = t.get(33723), this.icc = t.get(34675), this.options.sanitize && (t.delete(34665), t.delete(40965), t.delete(34853), t.delete(700), t.delete(33723), t.delete(34675)), t) : void 0;
|
|
4013
4013
|
}
|
|
4014
4014
|
async parseExifBlock() {
|
|
4015
4015
|
if (this.exif || (this.ifd0 || await this.parseIfd0Block(), this.exifOffset === void 0)) return;
|
|
4016
|
-
this.file.tiff && await this.file.ensureChunk(this.exifOffset,
|
|
4016
|
+
this.file.tiff && await this.file.ensureChunk(this.exifOffset, ta(this.options));
|
|
4017
4017
|
let e = this.parseBlock(this.exifOffset, "exif");
|
|
4018
4018
|
return this.interopOffset || (this.interopOffset = e.get(40965)), this.makerNote = e.get(37500), this.userComment = e.get(37510), this.options.sanitize && (e.delete(40965), e.delete(37500), e.delete(37510)), this.unpack(e, 41728), this.unpack(e, 41729), e;
|
|
4019
4019
|
}
|
|
@@ -4024,7 +4024,7 @@ this.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${e.byteLength}`), e.tiff
|
|
|
4024
4024
|
async parseGpsBlock() {
|
|
4025
4025
|
if (this.gps || (this.ifd0 || await this.parseIfd0Block(), this.gpsOffset === void 0)) return;
|
|
4026
4026
|
let e = this.parseBlock(this.gpsOffset, "gps");
|
|
4027
|
-
return e && e.has(2) && e.has(4) && (e.set("latitude",
|
|
4027
|
+
return e && e.has(2) && e.has(4) && (e.set("latitude", la(...e.get(2), e.get(1))), e.set("longitude", la(...e.get(4), e.get(3)))), e;
|
|
4028
4028
|
}
|
|
4029
4029
|
async parseInteropBlock() {
|
|
4030
4030
|
if (!this.interop && (this.ifd0 || await this.parseIfd0Block(), this.interopOffset !== void 0 || this.exif || await this.parseExifBlock(), this.interopOffset !== void 0)) return this.parseBlock(this.interopOffset, "interop");
|
|
@@ -4045,7 +4045,7 @@ this.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${e.byteLength}`), e.tiff
|
|
|
4045
4045
|
}
|
|
4046
4046
|
createOutput() {
|
|
4047
4047
|
let e, t, s, r = {};
|
|
4048
|
-
for (t of W) if (e = this[t], !
|
|
4048
|
+
for (t of W) if (e = this[t], !ko(e)) if (s = this.canTranslate ? this.translateBlock(e, t) : Object.fromEntries(e), this.options.mergeOutput) {
|
|
4049
4049
|
if (t === "ifd1") continue;
|
|
4050
4050
|
Object.assign(r, s);
|
|
4051
4051
|
} else r[t] = s;
|
|
@@ -4056,7 +4056,7 @@ this.ifd0Offset: ${this.ifd0Offset}, file.byteLength: ${e.byteLength}`), e.tiff
|
|
|
4056
4056
|
else for (let [s, r] of Object.entries(t)) this.assignObjectToOutput(e, s, r);
|
|
4057
4057
|
}
|
|
4058
4058
|
}
|
|
4059
|
-
function
|
|
4059
|
+
function la(i, e, t, s) {
|
|
4060
4060
|
var r = i + e / 60 + t / 3600;
|
|
4061
4061
|
return s !== "S" && s !== "W" || (r *= -1), r;
|
|
4062
4062
|
}
|
|
@@ -4115,7 +4115,7 @@ class Vd extends Ti {
|
|
|
4115
4115
|
}
|
|
4116
4116
|
_extend(e) {
|
|
4117
4117
|
let t;
|
|
4118
|
-
t =
|
|
4118
|
+
t = Ao ? Do.allocUnsafe(e) : new Uint8Array(e);
|
|
4119
4119
|
let s = new DataView(t.buffer, t.byteOffset, t.byteLength);
|
|
4120
4120
|
return t.set(new Uint8Array(this.buffer, this.byteOffset, this.byteLength), 0), { uintView: t, dataView: s };
|
|
4121
4121
|
}
|
|
@@ -4142,7 +4142,7 @@ class Wd {
|
|
|
4142
4142
|
return this.list.length;
|
|
4143
4143
|
}
|
|
4144
4144
|
add(e, t, s = 0) {
|
|
4145
|
-
let r = e + t, n = this.list.filter((a) =>
|
|
4145
|
+
let r = e + t, n = this.list.filter((a) => ua(e, a.offset, r) || ua(e, a.end, r));
|
|
4146
4146
|
if (n.length > 0) {
|
|
4147
4147
|
e = Math.min(e, ...n.map((o) => o.offset)), r = Math.max(r, ...n.map((o) => o.end)), t = r - e;
|
|
4148
4148
|
let a = n.shift();
|
|
@@ -4154,7 +4154,7 @@ class Wd {
|
|
|
4154
4154
|
return this.list.some((r) => r.offset <= e && s <= r.end);
|
|
4155
4155
|
}
|
|
4156
4156
|
}
|
|
4157
|
-
function
|
|
4157
|
+
function ua(i, e, t) {
|
|
4158
4158
|
return i <= e && e <= t;
|
|
4159
4159
|
}
|
|
4160
4160
|
class Gd extends Vd {
|
|
@@ -4257,22 +4257,22 @@ const Zd = {
|
|
|
4257
4257
|
waitForThumbnailsBeforeUpload: !1,
|
|
4258
4258
|
lazy: !1
|
|
4259
4259
|
};
|
|
4260
|
-
class
|
|
4260
|
+
class Bo extends oe {
|
|
4261
4261
|
constructor(e, t) {
|
|
4262
4262
|
if (super(e, {
|
|
4263
4263
|
...Zd,
|
|
4264
4264
|
...t
|
|
4265
4265
|
}), this.onFileAdded = (s) => {
|
|
4266
|
-
!s.preview && s.data &&
|
|
4266
|
+
!s.preview && s.data && Zn(s.type) && !s.isRemote && this.addToQueue(s.id);
|
|
4267
4267
|
}, this.onCancelRequest = (s) => {
|
|
4268
4268
|
const r = this.queue.indexOf(s.id);
|
|
4269
4269
|
r !== -1 && this.queue.splice(r, 1);
|
|
4270
4270
|
}, this.onFileRemoved = (s) => {
|
|
4271
4271
|
const r = this.queue.indexOf(s.id);
|
|
4272
|
-
r !== -1 && this.queue.splice(r, 1), s.preview &&
|
|
4272
|
+
r !== -1 && this.queue.splice(r, 1), s.preview && Qn(s.preview) && URL.revokeObjectURL(s.preview);
|
|
4273
4273
|
}, this.onRestored = () => {
|
|
4274
4274
|
this.uppy.getFiles().filter((r) => r.isRestored).forEach((r) => {
|
|
4275
|
-
(!r.preview ||
|
|
4275
|
+
(!r.preview || Qn(r.preview)) && this.addToQueue(r.id);
|
|
4276
4276
|
});
|
|
4277
4277
|
}, this.onAllFilesRemoved = () => {
|
|
4278
4278
|
this.queue = [];
|
|
@@ -4369,7 +4369,7 @@ class Uo extends oe {
|
|
|
4369
4369
|
return this.queueProcessing = !1, this.uppy.log("[ThumbnailGenerator] Emptied thumbnail queue"), this.uppy.emit("thumbnail:all-generated"), Promise.resolve();
|
|
4370
4370
|
}
|
|
4371
4371
|
requestThumbnail(e) {
|
|
4372
|
-
return
|
|
4372
|
+
return Zn(e.type) && !e.isRemote ? this.createThumbnail(e, this.opts.thumbnailWidth, this.opts.thumbnailHeight).then((t) => {
|
|
4373
4373
|
this.setPreviewURL(e.id, t), this.uppy.log(`[ThumbnailGenerator] Generated thumbnail for ${e.id}`), this.uppy.emit("thumbnail:generated", this.uppy.getFile(e.id), t);
|
|
4374
4374
|
}).catch((t) => {
|
|
4375
4375
|
this.uppy.log(`[ThumbnailGenerator] Failed thumbnail for ${e.id}:`, "warning"), this.uppy.log(t, "warning"), this.uppy.emit("thumbnail:error", this.uppy.getFile(e.id), t);
|
|
@@ -4382,16 +4382,16 @@ class Uo extends oe {
|
|
|
4382
4382
|
this.uppy.off("file-removed", this.onFileRemoved), this.uppy.off("cancel-all", this.onAllFilesRemoved), this.opts.lazy ? (this.uppy.off("thumbnail:request", this.onFileAdded), this.uppy.off("thumbnail:cancel", this.onCancelRequest)) : (this.uppy.off("thumbnail:request", this.onFileAdded), this.uppy.off("file-added", this.onFileAdded), this.uppy.off("restored", this.onRestored)), this.opts.waitForThumbnailsBeforeUpload && this.uppy.removePreProcessor(this.waitUntilAllProcessed);
|
|
4383
4383
|
}
|
|
4384
4384
|
}
|
|
4385
|
-
|
|
4386
|
-
function
|
|
4385
|
+
Bo.VERSION = Yd.version;
|
|
4386
|
+
function da(i) {
|
|
4387
4387
|
if (typeof i == "string") {
|
|
4388
4388
|
const e = document.querySelectorAll(i);
|
|
4389
4389
|
return e.length === 0 ? null : Array.from(e);
|
|
4390
4390
|
}
|
|
4391
|
-
return typeof i == "object" &&
|
|
4391
|
+
return typeof i == "object" && Fo(i) ? [i] : null;
|
|
4392
4392
|
}
|
|
4393
4393
|
const Ge = Array.from;
|
|
4394
|
-
function
|
|
4394
|
+
function Lo(i, e, t, s) {
|
|
4395
4395
|
let {
|
|
4396
4396
|
onSuccess: r
|
|
4397
4397
|
} = s;
|
|
@@ -4399,7 +4399,7 @@ function Bo(i, e, t, s) {
|
|
|
4399
4399
|
(n) => {
|
|
4400
4400
|
const a = [...e, ...n];
|
|
4401
4401
|
n.length ? queueMicrotask(() => {
|
|
4402
|
-
|
|
4402
|
+
Lo(i, a, t, {
|
|
4403
4403
|
onSuccess: r
|
|
4404
4404
|
});
|
|
4405
4405
|
}) : r(a);
|
|
@@ -4410,7 +4410,7 @@ function Bo(i, e, t, s) {
|
|
|
4410
4410
|
}
|
|
4411
4411
|
);
|
|
4412
4412
|
}
|
|
4413
|
-
function
|
|
4413
|
+
function zo(i, e) {
|
|
4414
4414
|
return i == null ? i : {
|
|
4415
4415
|
kind: (
|
|
4416
4416
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -4423,15 +4423,15 @@ function Lo(i, e) {
|
|
|
4423
4423
|
async *values() {
|
|
4424
4424
|
const t = i.createReader();
|
|
4425
4425
|
yield* await new Promise((r) => {
|
|
4426
|
-
|
|
4427
|
-
onSuccess: (n) => r(n.map((a) =>
|
|
4426
|
+
Lo(t, [], e, {
|
|
4427
|
+
onSuccess: (n) => r(n.map((a) => zo(a, e)))
|
|
4428
4428
|
});
|
|
4429
4429
|
});
|
|
4430
4430
|
},
|
|
4431
4431
|
isSameEntry: void 0
|
|
4432
4432
|
};
|
|
4433
4433
|
}
|
|
4434
|
-
function
|
|
4434
|
+
function $o(i, e, t) {
|
|
4435
4435
|
try {
|
|
4436
4436
|
return t === void 0 && (t = void 0), async function* () {
|
|
4437
4437
|
const s = () => `${e}/${i.name}`;
|
|
@@ -4440,7 +4440,7 @@ function zo(i, e, t) {
|
|
|
4440
4440
|
r != null ? (r.relativePath = e ? s() : null, yield r) : t != null && (yield t);
|
|
4441
4441
|
} else if (i.kind === "directory")
|
|
4442
4442
|
for await (const r of i.values())
|
|
4443
|
-
yield*
|
|
4443
|
+
yield* $o(r, e ? s() : i.name);
|
|
4444
4444
|
else t != null && (yield t);
|
|
4445
4445
|
}();
|
|
4446
4446
|
} catch (s) {
|
|
@@ -4452,7 +4452,7 @@ async function* eh(i, e) {
|
|
|
4452
4452
|
var r;
|
|
4453
4453
|
let n;
|
|
4454
4454
|
const a = () => typeof s.getAsEntry == "function" ? s.getAsEntry() : s.webkitGetAsEntry();
|
|
4455
|
-
return (r = n) != null || (n =
|
|
4455
|
+
return (r = n) != null || (n = zo(a(), e)), {
|
|
4456
4456
|
fileSystemHandle: n,
|
|
4457
4457
|
lastResortFile: s.getAsFile()
|
|
4458
4458
|
// can be used as a fallback in case other methods fail
|
|
@@ -4464,7 +4464,7 @@ async function* eh(i, e) {
|
|
|
4464
4464
|
} of t)
|
|
4465
4465
|
if (r != null)
|
|
4466
4466
|
try {
|
|
4467
|
-
yield*
|
|
4467
|
+
yield* $o(r, "", s);
|
|
4468
4468
|
} catch (n) {
|
|
4469
4469
|
s != null ? yield s : e(n);
|
|
4470
4470
|
}
|
|
@@ -4474,7 +4474,7 @@ function th(i) {
|
|
|
4474
4474
|
const e = Ge(i.files);
|
|
4475
4475
|
return Promise.resolve(e);
|
|
4476
4476
|
}
|
|
4477
|
-
async function
|
|
4477
|
+
async function jo(i, e) {
|
|
4478
4478
|
var t;
|
|
4479
4479
|
const s = (t = e == null ? void 0 : e.logDropError) != null ? t : Function.prototype;
|
|
4480
4480
|
try {
|
|
@@ -4486,18 +4486,18 @@ async function $o(i, e) {
|
|
|
4486
4486
|
return th(i);
|
|
4487
4487
|
}
|
|
4488
4488
|
}
|
|
4489
|
-
var Pi, H, qs,
|
|
4489
|
+
var Pi, H, qs, ha, Ci = 0, Ho = [], q = B, ca = q.__b, pa = q.__r, fa = q.diffed, ma = q.__c, ga = q.unmount, va = q.__;
|
|
4490
4490
|
function ln(i, e) {
|
|
4491
4491
|
q.__h && q.__h(H, i, Ci || e), Ci = 0;
|
|
4492
4492
|
var t = H.__H || (H.__H = { __: [], __h: [] });
|
|
4493
4493
|
return i >= t.__.length && t.__.push({}), t.__[i];
|
|
4494
4494
|
}
|
|
4495
4495
|
function ss(i) {
|
|
4496
|
-
return Ci = 1, ih(
|
|
4496
|
+
return Ci = 1, ih(Vo, i);
|
|
4497
4497
|
}
|
|
4498
4498
|
function ih(i, e, t) {
|
|
4499
4499
|
var s = ln(Pi++, 2);
|
|
4500
|
-
if (s.t = i, !s.__c && (s.__ = [
|
|
4500
|
+
if (s.t = i, !s.__c && (s.__ = [Vo(void 0, e), function(o) {
|
|
4501
4501
|
var l = s.__N ? s.__N[0] : s.__[0], u = s.t(l, o);
|
|
4502
4502
|
l !== u && (s.__N = [u, s.__[1]], s.__c.setState({}));
|
|
4503
4503
|
}], s.__c = H, !H.u)) {
|
|
@@ -4531,7 +4531,7 @@ function ih(i, e, t) {
|
|
|
4531
4531
|
}
|
|
4532
4532
|
function Er(i, e) {
|
|
4533
4533
|
var t = ln(Pi++, 3);
|
|
4534
|
-
!q.__s &&
|
|
4534
|
+
!q.__s && qo(t.__H, e) && (t.__ = i, t.i = e, H.__H.__h.push(t));
|
|
4535
4535
|
}
|
|
4536
4536
|
function Zi(i) {
|
|
4537
4537
|
return Ci = 5, un(function() {
|
|
@@ -4540,7 +4540,7 @@ function Zi(i) {
|
|
|
4540
4540
|
}
|
|
4541
4541
|
function un(i, e) {
|
|
4542
4542
|
var t = ln(Pi++, 7);
|
|
4543
|
-
return
|
|
4543
|
+
return qo(t.__H, e) && (t.__ = i(), t.__H = e, t.__h = i), t.__;
|
|
4544
4544
|
}
|
|
4545
4545
|
function sh(i, e) {
|
|
4546
4546
|
return Ci = 8, un(function() {
|
|
@@ -4548,26 +4548,26 @@ function sh(i, e) {
|
|
|
4548
4548
|
}, e);
|
|
4549
4549
|
}
|
|
4550
4550
|
function rh() {
|
|
4551
|
-
for (var i; i =
|
|
4551
|
+
for (var i; i = Ho.shift(); ) if (i.__P && i.__H) try {
|
|
4552
4552
|
i.__H.__h.forEach(es), i.__H.__h.forEach(Or), i.__H.__h = [];
|
|
4553
4553
|
} catch (e) {
|
|
4554
4554
|
i.__H.__h = [], q.__e(e, i.__v);
|
|
4555
4555
|
}
|
|
4556
4556
|
}
|
|
4557
4557
|
q.__b = function(i) {
|
|
4558
|
-
H = null,
|
|
4558
|
+
H = null, ca && ca(i);
|
|
4559
4559
|
}, q.__ = function(i, e) {
|
|
4560
|
-
i && e.__k && e.__k.__m && (i.__m = e.__k.__m),
|
|
4560
|
+
i && e.__k && e.__k.__m && (i.__m = e.__k.__m), va && va(i, e);
|
|
4561
4561
|
}, q.__r = function(i) {
|
|
4562
|
-
|
|
4562
|
+
pa && pa(i), Pi = 0;
|
|
4563
4563
|
var e = (H = i.__c).__H;
|
|
4564
4564
|
e && (qs === H ? (e.__h = [], H.__h = [], e.__.forEach(function(t) {
|
|
4565
4565
|
t.__N && (t.__ = t.__N), t.i = t.__N = void 0;
|
|
4566
4566
|
})) : (e.__h.forEach(es), e.__h.forEach(Or), e.__h = [], Pi = 0)), qs = H;
|
|
4567
4567
|
}, q.diffed = function(i) {
|
|
4568
|
-
|
|
4568
|
+
fa && fa(i);
|
|
4569
4569
|
var e = i.__c;
|
|
4570
|
-
e && e.__H && (e.__H.__h.length && (
|
|
4570
|
+
e && e.__H && (e.__H.__h.length && (Ho.push(e) !== 1 && ha === q.requestAnimationFrame || ((ha = q.requestAnimationFrame) || nh)(rh)), e.__H.__.forEach(function(t) {
|
|
4571
4571
|
t.i && (t.__H = t.i), t.i = void 0;
|
|
4572
4572
|
})), qs = H = null;
|
|
4573
4573
|
}, q.__c = function(i, e) {
|
|
@@ -4581,9 +4581,9 @@ q.__b = function(i) {
|
|
|
4581
4581
|
r.__h && (r.__h = []);
|
|
4582
4582
|
}), e = [], q.__e(s, t.__v);
|
|
4583
4583
|
}
|
|
4584
|
-
}),
|
|
4584
|
+
}), ma && ma(i, e);
|
|
4585
4585
|
}, q.unmount = function(i) {
|
|
4586
|
-
|
|
4586
|
+
ga && ga(i);
|
|
4587
4587
|
var e, t = i.__c;
|
|
4588
4588
|
t && t.__H && (t.__H.__.forEach(function(s) {
|
|
4589
4589
|
try {
|
|
@@ -4593,12 +4593,12 @@ q.__b = function(i) {
|
|
|
4593
4593
|
}
|
|
4594
4594
|
}), t.__H = void 0, e && q.__e(e, t.__v));
|
|
4595
4595
|
};
|
|
4596
|
-
var
|
|
4596
|
+
var ya = typeof requestAnimationFrame == "function";
|
|
4597
4597
|
function nh(i) {
|
|
4598
4598
|
var e, t = function() {
|
|
4599
|
-
clearTimeout(s),
|
|
4599
|
+
clearTimeout(s), ya && cancelAnimationFrame(e), setTimeout(i);
|
|
4600
4600
|
}, s = setTimeout(t, 100);
|
|
4601
|
-
|
|
4601
|
+
ya && (e = requestAnimationFrame(t));
|
|
4602
4602
|
}
|
|
4603
4603
|
function es(i) {
|
|
4604
4604
|
var e = H, t = i.__c;
|
|
@@ -4608,12 +4608,12 @@ function Or(i) {
|
|
|
4608
4608
|
var e = H;
|
|
4609
4609
|
i.__c = i.__(), H = e;
|
|
4610
4610
|
}
|
|
4611
|
-
function
|
|
4611
|
+
function qo(i, e) {
|
|
4612
4612
|
return !i || i.length !== e.length || e.some(function(t, s) {
|
|
4613
4613
|
return t !== i[s];
|
|
4614
4614
|
});
|
|
4615
4615
|
}
|
|
4616
|
-
function
|
|
4616
|
+
function Vo(i, e) {
|
|
4617
4617
|
return typeof e == "function" ? e(i) : e;
|
|
4618
4618
|
}
|
|
4619
4619
|
function xr() {
|
|
@@ -4726,11 +4726,11 @@ function uh() {
|
|
|
4726
4726
|
d: "M15 30c8.284 0 15-6.716 15-15 0-8.284-6.716-15-15-15C6.716 0 0 6.716 0 15c0 8.284 6.716 15 15 15zm4.258-12.676v6.846h-8.426v-6.846H5.204l9.82-12.364 9.82 12.364H19.26z"
|
|
4727
4727
|
}));
|
|
4728
4728
|
}
|
|
4729
|
-
var
|
|
4729
|
+
var ba = Number.isNaN || function(e) {
|
|
4730
4730
|
return typeof e == "number" && e !== e;
|
|
4731
4731
|
};
|
|
4732
4732
|
function dh(i, e) {
|
|
4733
|
-
return !!(i === e ||
|
|
4733
|
+
return !!(i === e || ba(i) && ba(e));
|
|
4734
4734
|
}
|
|
4735
4735
|
function hh(i, e) {
|
|
4736
4736
|
if (i.length !== e.length)
|
|
@@ -4740,7 +4740,7 @@ function hh(i, e) {
|
|
|
4740
4740
|
return !1;
|
|
4741
4741
|
return !0;
|
|
4742
4742
|
}
|
|
4743
|
-
function
|
|
4743
|
+
function wa(i, e) {
|
|
4744
4744
|
e === void 0 && (e = hh);
|
|
4745
4745
|
var t = null;
|
|
4746
4746
|
function s() {
|
|
@@ -4759,15 +4759,15 @@ function ba(i, e) {
|
|
|
4759
4759
|
t = null;
|
|
4760
4760
|
}, s;
|
|
4761
4761
|
}
|
|
4762
|
-
const
|
|
4763
|
-
function
|
|
4762
|
+
const Wo = ['a[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])', 'area[href]:not([tabindex^="-"]):not([inert]):not([aria-hidden])', "input:not([disabled]):not([inert]):not([aria-hidden])", "select:not([disabled]):not([inert]):not([aria-hidden])", "textarea:not([disabled]):not([inert]):not([aria-hidden])", "button:not([disabled]):not([inert]):not([aria-hidden])", 'iframe:not([tabindex^="-"]):not([inert]):not([aria-hidden])', 'object:not([tabindex^="-"]):not([inert]):not([aria-hidden])', 'embed:not([tabindex^="-"]):not([inert]):not([aria-hidden])', '[contenteditable]:not([tabindex^="-"]):not([inert]):not([aria-hidden])', '[tabindex]:not([tabindex^="-"]):not([inert]):not([aria-hidden])'];
|
|
4763
|
+
function Go(i, e) {
|
|
4764
4764
|
if (e) {
|
|
4765
4765
|
const t = i.querySelector(`[data-uppy-paneltype="${e}"]`);
|
|
4766
4766
|
if (t) return t;
|
|
4767
4767
|
}
|
|
4768
4768
|
return i;
|
|
4769
4769
|
}
|
|
4770
|
-
function
|
|
4770
|
+
function Sa(i, e) {
|
|
4771
4771
|
const t = e[0];
|
|
4772
4772
|
t && (t.focus(), i.preventDefault());
|
|
4773
4773
|
}
|
|
@@ -4778,19 +4778,19 @@ function ch(i, e) {
|
|
|
4778
4778
|
function ph(i) {
|
|
4779
4779
|
return i.contains(document.activeElement);
|
|
4780
4780
|
}
|
|
4781
|
-
function
|
|
4782
|
-
const s =
|
|
4783
|
-
ph(s) ? i.shiftKey && n === 0 ? ch(i, r) : !i.shiftKey && n === r.length - 1 &&
|
|
4781
|
+
function Xo(i, e, t) {
|
|
4782
|
+
const s = Go(t, e), r = Ge(s.querySelectorAll(Wo)), n = r.indexOf(document.activeElement);
|
|
4783
|
+
ph(s) ? i.shiftKey && n === 0 ? ch(i, r) : !i.shiftKey && n === r.length - 1 && Sa(i, r) : Sa(i, r);
|
|
4784
4784
|
}
|
|
4785
4785
|
function fh(i, e, t) {
|
|
4786
|
-
e === null ||
|
|
4786
|
+
e === null || Xo(i, e, t);
|
|
4787
4787
|
}
|
|
4788
|
-
var mh =
|
|
4788
|
+
var mh = oo();
|
|
4789
4789
|
const gh = /* @__PURE__ */ it(mh);
|
|
4790
4790
|
function vh() {
|
|
4791
4791
|
let i = !1;
|
|
4792
4792
|
return gh((t, s) => {
|
|
4793
|
-
const r =
|
|
4793
|
+
const r = Go(t, s), n = r.contains(document.activeElement);
|
|
4794
4794
|
if (n && i) return;
|
|
4795
4795
|
const a = r.querySelector("[data-uppy-super-focusable]");
|
|
4796
4796
|
if (!(n && !a))
|
|
@@ -4799,18 +4799,18 @@ function vh() {
|
|
|
4799
4799
|
preventScroll: !0
|
|
4800
4800
|
}), i = !0;
|
|
4801
4801
|
else {
|
|
4802
|
-
const o = r.querySelector(
|
|
4802
|
+
const o = r.querySelector(Wo);
|
|
4803
4803
|
o == null || o.focus({
|
|
4804
4804
|
preventScroll: !0
|
|
4805
4805
|
}), i = !1;
|
|
4806
4806
|
}
|
|
4807
4807
|
}, 260);
|
|
4808
4808
|
}
|
|
4809
|
-
function
|
|
4809
|
+
function Yo() {
|
|
4810
4810
|
const i = document.body;
|
|
4811
4811
|
return !(!("draggable" in i) || !("ondragstart" in i && "ondrop" in i) || !("FormData" in window) || !("FileReader" in window));
|
|
4812
4812
|
}
|
|
4813
|
-
function
|
|
4813
|
+
function Ko(i, e) {
|
|
4814
4814
|
if (i === e)
|
|
4815
4815
|
return !0;
|
|
4816
4816
|
if (!i || !e)
|
|
@@ -4960,7 +4960,7 @@ function dn(i) {
|
|
|
4960
4960
|
icon: _h()
|
|
4961
4961
|
} : e;
|
|
4962
4962
|
}
|
|
4963
|
-
function
|
|
4963
|
+
function Jo(i) {
|
|
4964
4964
|
const {
|
|
4965
4965
|
file: e
|
|
4966
4966
|
} = i;
|
|
@@ -4997,7 +4997,7 @@ function Ko(i) {
|
|
|
4997
4997
|
})));
|
|
4998
4998
|
}
|
|
4999
4999
|
const Ph = (i, e) => (typeof e == "function" ? e() : e).filter((r) => r.id === i)[0].name;
|
|
5000
|
-
function
|
|
5000
|
+
function Qo(i) {
|
|
5001
5001
|
const {
|
|
5002
5002
|
file: e,
|
|
5003
5003
|
toggleFileCard: t,
|
|
@@ -5041,9 +5041,9 @@ function Ch(i) {
|
|
|
5041
5041
|
"aria-label": e.meta.name
|
|
5042
5042
|
}, d("span", {
|
|
5043
5043
|
hidden: !0
|
|
5044
|
-
}, e.meta.name)), d(
|
|
5044
|
+
}, e.meta.name)), d(Jo, {
|
|
5045
5045
|
file: e
|
|
5046
|
-
}), d(
|
|
5046
|
+
}), d(Qo, {
|
|
5047
5047
|
file: e,
|
|
5048
5048
|
i18n: t,
|
|
5049
5049
|
toggleFileCard: s,
|
|
@@ -5059,7 +5059,7 @@ function Eh(i) {
|
|
|
5059
5059
|
i.resumableUploads && !i.hidePauseResumeButton ? i.uppy.pauseResume(i.file.id) : i.individualCancellation && !i.hideCancelButton && i.uppy.removeFile(i.file.id);
|
|
5060
5060
|
}
|
|
5061
5061
|
}
|
|
5062
|
-
function
|
|
5062
|
+
function _a(i) {
|
|
5063
5063
|
return i.isUploaded ? i.i18n("uploadComplete") : i.error ? i.i18n("retryUpload") : i.resumableUploads ? i.file.isPaused ? i.i18n("resumeUpload") : i.i18n("pauseUpload") : i.individualCancellation ? i.i18n("cancelUpload") : "";
|
|
5064
5064
|
}
|
|
5065
5065
|
function Vs(i) {
|
|
@@ -5068,8 +5068,8 @@ function Vs(i) {
|
|
|
5068
5068
|
}, d("button", {
|
|
5069
5069
|
className: "uppy-u-reset uppy-c-btn uppy-Dashboard-Item-progressIndicator",
|
|
5070
5070
|
type: "button",
|
|
5071
|
-
"aria-label":
|
|
5072
|
-
title:
|
|
5071
|
+
"aria-label": _a(i),
|
|
5072
|
+
title: _a(i),
|
|
5073
5073
|
onClick: () => Eh(i)
|
|
5074
5074
|
}, i.children));
|
|
5075
5075
|
}
|
|
@@ -5184,7 +5184,7 @@ function Oh(i) {
|
|
|
5184
5184
|
}))));
|
|
5185
5185
|
}
|
|
5186
5186
|
const Gs = "...";
|
|
5187
|
-
function
|
|
5187
|
+
function Zo(i, e) {
|
|
5188
5188
|
if (e === 0) return "";
|
|
5189
5189
|
if (i.length <= e) return i;
|
|
5190
5190
|
if (e <= Gs.length + 1) return `${i.slice(0, e - 1)}…`;
|
|
@@ -5202,7 +5202,7 @@ const xh = (i) => {
|
|
|
5202
5202
|
return d("div", {
|
|
5203
5203
|
className: "uppy-Dashboard-Item-name",
|
|
5204
5204
|
title: t
|
|
5205
|
-
},
|
|
5205
|
+
}, Zo(t, s()));
|
|
5206
5206
|
}, Rh = (i) => {
|
|
5207
5207
|
var e;
|
|
5208
5208
|
const {
|
|
@@ -5214,7 +5214,7 @@ const xh = (i) => {
|
|
|
5214
5214
|
href: `${t.url}?utm_source=Companion&utm_medium=referral`,
|
|
5215
5215
|
target: "_blank",
|
|
5216
5216
|
rel: "noopener noreferrer"
|
|
5217
|
-
},
|
|
5217
|
+
}, Zo(t.name, 13)), s ? d(Fragment, null, ` ${r} `, s, ` ${r} `) : null) : null;
|
|
5218
5218
|
}, Dh = (i) => i.file.size && d("div", {
|
|
5219
5219
|
className: "uppy-Dashboard-Item-statusSize"
|
|
5220
5220
|
}, vt(i.file.size)), Ah = (i) => i.file.isGhost && d("span", null, " • ", d("button", {
|
|
@@ -5269,7 +5269,7 @@ function Mh(i) {
|
|
|
5269
5269
|
file: e,
|
|
5270
5270
|
toggleAddFilesPanel: n,
|
|
5271
5271
|
i18n: t
|
|
5272
|
-
})), d(
|
|
5272
|
+
})), d(Qo, {
|
|
5273
5273
|
file: e,
|
|
5274
5274
|
i18n: t,
|
|
5275
5275
|
toggleFileCard: s,
|
|
@@ -5445,7 +5445,7 @@ class zh extends ae {
|
|
|
5445
5445
|
e.preview || this.props.handleRequestThumbnail(e);
|
|
5446
5446
|
}
|
|
5447
5447
|
shouldComponentUpdate(e) {
|
|
5448
|
-
return !
|
|
5448
|
+
return !Ko(this.props, e);
|
|
5449
5449
|
}
|
|
5450
5450
|
// VirtualList mounts FileItems again and they emit `thumbnail:request`
|
|
5451
5451
|
// Otherwise thumbnails are broken or missing after Golden Retriever restores files
|
|
@@ -5607,7 +5607,7 @@ function jh(i) {
|
|
|
5607
5607
|
rowHeight: F
|
|
5608
5608
|
});
|
|
5609
5609
|
}
|
|
5610
|
-
class
|
|
5610
|
+
class el extends ae {
|
|
5611
5611
|
constructor() {
|
|
5612
5612
|
super(...arguments), this.fileInput = null, this.folderInput = null, this.mobilePhotoFileInput = null, this.mobileVideoFileInput = null, this.triggerFileInputClick = () => {
|
|
5613
5613
|
var e;
|
|
@@ -5899,7 +5899,7 @@ const Hh = (i) => d("div", {
|
|
|
5899
5899
|
className: "uppy-DashboardContent-back",
|
|
5900
5900
|
type: "button",
|
|
5901
5901
|
onClick: () => i.toggleAddFilesPanel(!1)
|
|
5902
|
-
}, i.i18n("back"))), d(
|
|
5902
|
+
}, i.i18n("back"))), d(el, i));
|
|
5903
5903
|
function Qe(i) {
|
|
5904
5904
|
const {
|
|
5905
5905
|
tagName: e
|
|
@@ -6180,7 +6180,7 @@ function Kh(i) {
|
|
|
6180
6180
|
style: {
|
|
6181
6181
|
backgroundColor: dn(m.type).color
|
|
6182
6182
|
}
|
|
6183
|
-
}, d(
|
|
6183
|
+
}, d(Jo, {
|
|
6184
6184
|
file: m
|
|
6185
6185
|
}), v && d("button", {
|
|
6186
6186
|
type: "button",
|
|
@@ -6209,7 +6209,7 @@ function Kh(i) {
|
|
|
6209
6209
|
form: S.id
|
|
6210
6210
|
}, u("cancel")))));
|
|
6211
6211
|
}
|
|
6212
|
-
const _t = "uppy-transition-slideDownUp",
|
|
6212
|
+
const _t = "uppy-transition-slideDownUp", Fa = 250;
|
|
6213
6213
|
function Wi(i) {
|
|
6214
6214
|
let {
|
|
6215
6215
|
children: e
|
|
@@ -6218,13 +6218,13 @@ function Wi(i) {
|
|
|
6218
6218
|
n(`${_t}-enter`), cancelAnimationFrame(l.current), clearTimeout(o.current), o.current = void 0, l.current = requestAnimationFrame(() => {
|
|
6219
6219
|
n(`${_t}-enter ${_t}-enter-active`), a.current = setTimeout(() => {
|
|
6220
6220
|
n("");
|
|
6221
|
-
},
|
|
6221
|
+
}, Fa);
|
|
6222
6222
|
});
|
|
6223
6223
|
}, c = () => {
|
|
6224
6224
|
n(`${_t}-leave`), cancelAnimationFrame(l.current), clearTimeout(a.current), a.current = void 0, l.current = requestAnimationFrame(() => {
|
|
6225
6225
|
n(`${_t}-leave ${_t}-leave-active`), o.current = setTimeout(() => {
|
|
6226
6226
|
s(null), n("");
|
|
6227
|
-
},
|
|
6227
|
+
}, Fa);
|
|
6228
6228
|
});
|
|
6229
6229
|
};
|
|
6230
6230
|
return Er(() => {
|
|
@@ -6232,7 +6232,7 @@ function Wi(i) {
|
|
|
6232
6232
|
t !== h && (h && !t ? u() : t && !h && !o.current && c(), s(h));
|
|
6233
6233
|
}, [e, t]), Er(() => () => {
|
|
6234
6234
|
clearTimeout(a.current), clearTimeout(o.current), cancelAnimationFrame(l.current);
|
|
6235
|
-
}, []), t ?
|
|
6235
|
+
}, []), t ? _o(t, {
|
|
6236
6236
|
className: Pe(r, t.props.className)
|
|
6237
6237
|
}) : null;
|
|
6238
6238
|
}
|
|
@@ -6245,9 +6245,9 @@ function Ct() {
|
|
|
6245
6245
|
return i;
|
|
6246
6246
|
}, Ct.apply(null, arguments);
|
|
6247
6247
|
}
|
|
6248
|
-
const
|
|
6248
|
+
const Ta = 900, Pa = 700, Xs = 576, Ca = 330;
|
|
6249
6249
|
function Jh(i) {
|
|
6250
|
-
const e = i.totalFileCount === 0, t = i.totalFileCount === 1, s = i.containerWidth > Xs, r = i.containerHeight >
|
|
6250
|
+
const e = i.totalFileCount === 0, t = i.totalFileCount === 1, s = i.containerWidth > Xs, r = i.containerHeight > Ca, n = Pe({
|
|
6251
6251
|
"uppy-Dashboard": !0,
|
|
6252
6252
|
"uppy-Dashboard--isDisabled": i.disabled,
|
|
6253
6253
|
"uppy-Dashboard--animateOpenClose": i.animateOpenClose,
|
|
@@ -6255,9 +6255,9 @@ function Jh(i) {
|
|
|
6255
6255
|
"uppy-Dashboard--isDraggingOver": i.isDraggingOver,
|
|
6256
6256
|
"uppy-Dashboard--modal": !i.inline,
|
|
6257
6257
|
"uppy-size--md": i.containerWidth > Xs,
|
|
6258
|
-
"uppy-size--lg": i.containerWidth >
|
|
6259
|
-
"uppy-size--xl": i.containerWidth >
|
|
6260
|
-
"uppy-size--height-md": i.containerHeight >
|
|
6258
|
+
"uppy-size--lg": i.containerWidth > Pa,
|
|
6259
|
+
"uppy-size--xl": i.containerWidth > Ta,
|
|
6260
|
+
"uppy-size--height-md": i.containerHeight > Ca,
|
|
6261
6261
|
// We might want to enable this in the future
|
|
6262
6262
|
// 'uppy-size--height-lg': props.containerHeight > HEIGHT_LG,
|
|
6263
6263
|
// 'uppy-size--height-xl': props.containerHeight > HEIGHT_XL,
|
|
@@ -6267,7 +6267,7 @@ function Jh(i) {
|
|
|
6267
6267
|
"uppy-Dashboard--singleFile": i.singleFileFullScreen && t && r
|
|
6268
6268
|
});
|
|
6269
6269
|
let a = 1;
|
|
6270
|
-
i.containerWidth >
|
|
6270
|
+
i.containerWidth > Ta ? a = 5 : i.containerWidth > Pa ? a = 4 : i.containerWidth > Xs && (a = 3);
|
|
6271
6271
|
const o = i.showSelectedFiles && !e, l = i.recoveredState ? Object.keys(i.recoveredState.files).length : null, u = i.files ? Object.keys(i.files).filter((p) => i.files[p].isGhost).length : 0, c = () => u > 0 ? i.i18n("recoveredXFiles", {
|
|
6272
6272
|
smart_count: u
|
|
6273
6273
|
}) : i.i18n("recoveredAllFiles");
|
|
@@ -6275,7 +6275,7 @@ function Jh(i) {
|
|
|
6275
6275
|
className: n,
|
|
6276
6276
|
"data-uppy-theme": i.theme,
|
|
6277
6277
|
"data-uppy-num-acquirers": i.acquirers.length,
|
|
6278
|
-
"data-uppy-drag-drop-supported": !i.disableLocalFiles &&
|
|
6278
|
+
"data-uppy-drag-drop-supported": !i.disableLocalFiles && Yo(),
|
|
6279
6279
|
"aria-hidden": i.inline ? "false" : i.isHidden,
|
|
6280
6280
|
"aria-disabled": i.disabled,
|
|
6281
6281
|
"aria-label": i.inline ? i.i18n("dashboardTitle") : i.i18n("dashboardWindowTitle"),
|
|
@@ -6360,7 +6360,7 @@ function Jh(i) {
|
|
|
6360
6360
|
itemsPerRow: a,
|
|
6361
6361
|
containerWidth: i.containerWidth,
|
|
6362
6362
|
containerHeight: i.containerHeight
|
|
6363
|
-
}) : d(
|
|
6363
|
+
}) : d(el, {
|
|
6364
6364
|
i18n: i.i18n,
|
|
6365
6365
|
i18nArray: i.i18nArray,
|
|
6366
6366
|
acquirers: i.acquirers,
|
|
@@ -6493,8 +6493,8 @@ function Z(i) {
|
|
|
6493
6493
|
}
|
|
6494
6494
|
const ec = {
|
|
6495
6495
|
version: "4.1.3"
|
|
6496
|
-
}, Ys =
|
|
6497
|
-
function
|
|
6496
|
+
}, Ys = wa.default || wa, Ea = 9, tc = 27;
|
|
6497
|
+
function Oa() {
|
|
6498
6498
|
const i = {};
|
|
6499
6499
|
return i.promise = new Promise((e, t) => {
|
|
6500
6500
|
i.resolve = e, i.reject = t;
|
|
@@ -6653,7 +6653,7 @@ let hn = class extends oe {
|
|
|
6653
6653
|
const {
|
|
6654
6654
|
promise: o,
|
|
6655
6655
|
resolve: l
|
|
6656
|
-
} =
|
|
6656
|
+
} = Oa();
|
|
6657
6657
|
if (this.savedScrollPosition = window.pageYOffset, this.savedActiveElement = document.activeElement, this.opts.disablePageScrollWhenModalOpen && document.body.classList.add("uppy-Dashboard-isFixed"), this.opts.animateOpenClose && this.getPluginState().isClosing) {
|
|
6658
6658
|
const u = () => {
|
|
6659
6659
|
this.setPluginState({
|
|
@@ -6677,7 +6677,7 @@ let hn = class extends oe {
|
|
|
6677
6677
|
const {
|
|
6678
6678
|
promise: p,
|
|
6679
6679
|
resolve: f
|
|
6680
|
-
} =
|
|
6680
|
+
} = Oa();
|
|
6681
6681
|
if (this.opts.disablePageScrollWhenModalOpen && document.body.classList.remove("uppy-Dashboard-isFixed"), this.opts.animateOpenClose) {
|
|
6682
6682
|
this.setPluginState({
|
|
6683
6683
|
isClosing: !0
|
|
@@ -6782,7 +6782,7 @@ let hn = class extends oe {
|
|
|
6782
6782
|
manualClose: !1
|
|
6783
6783
|
}), !this.isModalOpen() && (l = o.state) != null && l[this.modalName] && history.back();
|
|
6784
6784
|
}, this.handleKeyDownInModal = (o) => {
|
|
6785
|
-
o.keyCode === tc && this.requestCloseModal(), o.keyCode ===
|
|
6785
|
+
o.keyCode === tc && this.requestCloseModal(), o.keyCode === Ea && Xo(o, this.getPluginState().activeOverlayType, this.el);
|
|
6786
6786
|
}, this.handleClickOutside = () => {
|
|
6787
6787
|
this.opts.closeModalOnClickOutside && this.requestCloseModal();
|
|
6788
6788
|
}, this.handlePaste = (o) => {
|
|
@@ -6832,7 +6832,7 @@ let hn = class extends oe {
|
|
|
6832
6832
|
this.uppy.log(h, "error"), l || (this.uppy.info(h.message, "error"), l = !0);
|
|
6833
6833
|
};
|
|
6834
6834
|
this.uppy.log("[Dashboard] Processing dropped files");
|
|
6835
|
-
const c = await
|
|
6835
|
+
const c = await jo(o.dataTransfer, {
|
|
6836
6836
|
logDropError: u
|
|
6837
6837
|
});
|
|
6838
6838
|
c.length > 0 && (this.uppy.log("[Dashboard] Files dropped"), this.addFiles(c)), this.opts.onDrop(o);
|
|
@@ -6841,7 +6841,7 @@ let hn = class extends oe {
|
|
|
6841
6841
|
}, this.handleCancelThumbnail = (o) => {
|
|
6842
6842
|
this.opts.waitForThumbnailsBeforeUpload || this.uppy.emit("thumbnail:cancel", o);
|
|
6843
6843
|
}, this.handleKeyDownInInline = (o) => {
|
|
6844
|
-
o.keyCode ===
|
|
6844
|
+
o.keyCode === Ea && fh(o, this.getPluginState().activeOverlayType, this.el);
|
|
6845
6845
|
}, this.handlePasteOnBody = (o) => {
|
|
6846
6846
|
this.el.contains(document.activeElement) && this.handlePaste(o);
|
|
6847
6847
|
}, this.handleComplete = (o) => {
|
|
@@ -6883,12 +6883,12 @@ let hn = class extends oe {
|
|
|
6883
6883
|
}
|
|
6884
6884
|
}), this.initEvents = () => {
|
|
6885
6885
|
if (this.opts.trigger && !this.opts.inline) {
|
|
6886
|
-
const o =
|
|
6886
|
+
const o = da(this.opts.trigger);
|
|
6887
6887
|
o ? o.forEach((l) => l.addEventListener("click", this.openModal)) : this.uppy.log("Dashboard modal trigger not found. Make sure `trigger` is set in Dashboard options, unless you are planning to call `dashboard.openModal()` method yourself", "warning");
|
|
6888
6888
|
}
|
|
6889
6889
|
this.startListeningToResize(), document.addEventListener("paste", this.handlePasteOnBody), this.uppy.on("plugin-added", D(this, nt)[nt]), this.uppy.on("plugin-remove", this.removeTarget), this.uppy.on("file-added", this.hideAllPanels), this.uppy.on("dashboard:modal-closed", this.hideAllPanels), this.uppy.on("complete", this.handleComplete), this.uppy.on("files-added", D(this, Me)[Me]), this.uppy.on("file-removed", D(this, Me)[Me]), document.addEventListener("focus", this.recordIfFocusedOnUppyRecently, !0), document.addEventListener("click", this.recordIfFocusedOnUppyRecently, !0), this.opts.inline && this.el.addEventListener("keydown", this.handleKeyDownInInline), this.opts.autoOpen && this.uppy.on("files-added", D(this, Qt)[Qt]);
|
|
6890
6890
|
}, this.removeEvents = () => {
|
|
6891
|
-
const o =
|
|
6891
|
+
const o = da(this.opts.trigger);
|
|
6892
6892
|
!this.opts.inline && o && o.forEach((l) => l.removeEventListener("click", this.openModal)), this.stopListeningToResize(), document.removeEventListener("paste", this.handlePasteOnBody), window.removeEventListener("popstate", this.handlePopState, !1), this.uppy.off("plugin-added", D(this, nt)[nt]), this.uppy.off("plugin-remove", this.removeTarget), this.uppy.off("file-added", this.hideAllPanels), this.uppy.off("dashboard:modal-closed", this.hideAllPanels), this.uppy.off("complete", this.handleComplete), this.uppy.off("files-added", D(this, Me)[Me]), this.uppy.off("file-removed", D(this, Me)[Me]), document.removeEventListener("focus", this.recordIfFocusedOnUppyRecently), document.removeEventListener("click", this.recordIfFocusedOnUppyRecently), this.opts.inline && this.el.removeEventListener("keydown", this.handleKeyDownInInline), this.opts.autoOpen && this.uppy.off("files-added", D(this, Qt)[Qt]);
|
|
6893
6893
|
}, this.superFocusOnEachUpdate = () => {
|
|
6894
6894
|
const o = this.el.contains(document.activeElement), l = document.activeElement === document.body || document.activeElement === null, u = this.uppy.getState().info.length === 0, c = !this.opts.inline;
|
|
@@ -7098,11 +7098,11 @@ let hn = class extends oe {
|
|
|
7098
7098
|
id: D(this, ti)[ti](),
|
|
7099
7099
|
target: this,
|
|
7100
7100
|
...D(this, Zt)[Zt]()
|
|
7101
|
-
}), this.opts.disableInformer || this.uppy.use(
|
|
7101
|
+
}), this.opts.disableInformer || this.uppy.use(xo, {
|
|
7102
7102
|
id: D(this, ir)[ir](),
|
|
7103
7103
|
target: this,
|
|
7104
7104
|
...D(this, tr)[tr]()
|
|
7105
|
-
}), this.opts.disableThumbnailGenerator || this.uppy.use(
|
|
7105
|
+
}), this.opts.disableThumbnailGenerator || this.uppy.use(Bo, {
|
|
7106
7106
|
id: D(this, ii)[ii](),
|
|
7107
7107
|
...D(this, ei)[ei]()
|
|
7108
7108
|
}), this.darkModeMediaQuery = typeof window < "u" && window.matchMedia ? window.matchMedia("(prefers-color-scheme: dark)") : null;
|
|
@@ -7199,12 +7199,12 @@ function lc() {
|
|
|
7199
7199
|
}
|
|
7200
7200
|
hn.VERSION = ec.version;
|
|
7201
7201
|
function Mt(i, e, t, s) {
|
|
7202
|
-
|
|
7202
|
+
Al(() => {
|
|
7203
7203
|
i();
|
|
7204
|
-
}),
|
|
7204
|
+
}), kl(() => {
|
|
7205
7205
|
t.removePlugin(e.value);
|
|
7206
|
-
}),
|
|
7207
|
-
|
|
7206
|
+
}), io(() => s.value, (r, n) => {
|
|
7207
|
+
Ko(r, n) || e.value.setOptions({
|
|
7208
7208
|
...r
|
|
7209
7209
|
});
|
|
7210
7210
|
});
|
|
@@ -7263,7 +7263,7 @@ const uc = St({
|
|
|
7263
7263
|
target: e.value
|
|
7264
7264
|
};
|
|
7265
7265
|
n.use(hn, a), t.value = n.getPlugin(a.id);
|
|
7266
|
-
}, t, i.uppy, s),
|
|
7266
|
+
}, t, i.uppy, s), io(() => i.open, (n, a) => {
|
|
7267
7267
|
n && !a && t.value.openModal(), !n && a && t.value.closeModal();
|
|
7268
7268
|
}), () => At("div", {
|
|
7269
7269
|
ref: e
|
|
@@ -7289,7 +7289,7 @@ class os extends oe {
|
|
|
7289
7289
|
super(e, {
|
|
7290
7290
|
...pc,
|
|
7291
7291
|
...t
|
|
7292
|
-
}), this.isDragDropSupported =
|
|
7292
|
+
}), this.isDragDropSupported = Yo(), this.addFiles = (s) => {
|
|
7293
7293
|
const r = s.map((n) => ({
|
|
7294
7294
|
source: this.id,
|
|
7295
7295
|
name: n.name,
|
|
@@ -7336,7 +7336,7 @@ class os extends oe {
|
|
|
7336
7336
|
});
|
|
7337
7337
|
const a = (l) => {
|
|
7338
7338
|
this.uppy.log(l, "error");
|
|
7339
|
-
}, o = await
|
|
7339
|
+
}, o = await jo(s.dataTransfer, {
|
|
7340
7340
|
logDropError: a
|
|
7341
7341
|
});
|
|
7342
7342
|
o.length > 0 && (this.uppy.log("[DragDrop] Files dropped"), this.addFiles(o)), (r = (n = this.opts).onDrop) == null || r.call(n, s);
|
|
@@ -7454,7 +7454,7 @@ const fc = {
|
|
|
7454
7454
|
fixed: !1,
|
|
7455
7455
|
hideAfterFinish: !0
|
|
7456
7456
|
};
|
|
7457
|
-
class
|
|
7457
|
+
class tl extends oe {
|
|
7458
7458
|
constructor(e, t) {
|
|
7459
7459
|
super(e, {
|
|
7460
7460
|
...mc,
|
|
@@ -7490,7 +7490,7 @@ class el extends oe {
|
|
|
7490
7490
|
this.unmount();
|
|
7491
7491
|
}
|
|
7492
7492
|
}
|
|
7493
|
-
|
|
7493
|
+
tl.VERSION = fc.version;
|
|
7494
7494
|
St({
|
|
7495
7495
|
name: "ProgressBar",
|
|
7496
7496
|
props: {
|
|
@@ -7512,7 +7512,7 @@ St({
|
|
|
7512
7512
|
...i.props,
|
|
7513
7513
|
target: e.value
|
|
7514
7514
|
};
|
|
7515
|
-
n.use(
|
|
7515
|
+
n.use(tl, a), t.value = n.getPlugin(a.id);
|
|
7516
7516
|
}, t, i.uppy, s), () => At("div", {
|
|
7517
7517
|
ref: e
|
|
7518
7518
|
});
|
|
@@ -7555,7 +7555,7 @@ const gc = {
|
|
|
7555
7555
|
pretty: !0,
|
|
7556
7556
|
inputName: "files[]"
|
|
7557
7557
|
};
|
|
7558
|
-
class
|
|
7558
|
+
class il extends oe {
|
|
7559
7559
|
constructor(e, t) {
|
|
7560
7560
|
super(e, {
|
|
7561
7561
|
...yc,
|
|
@@ -7624,7 +7624,7 @@ class tl extends oe {
|
|
|
7624
7624
|
this.unmount();
|
|
7625
7625
|
}
|
|
7626
7626
|
}
|
|
7627
|
-
|
|
7627
|
+
il.VERSION = vc.version;
|
|
7628
7628
|
St({
|
|
7629
7629
|
name: "FileInput",
|
|
7630
7630
|
props: {
|
|
@@ -7646,7 +7646,7 @@ St({
|
|
|
7646
7646
|
...i.props,
|
|
7647
7647
|
target: e.value
|
|
7648
7648
|
};
|
|
7649
|
-
n.use(
|
|
7649
|
+
n.use(il, a), t.value = n.getPlugin(a.id);
|
|
7650
7650
|
}, t, i.uppy, s), () => At("div", {
|
|
7651
7651
|
ref: e
|
|
7652
7652
|
});
|
|
@@ -7674,10 +7674,10 @@ const bc = {
|
|
|
7674
7674
|
function yi(i) {
|
|
7675
7675
|
return [i] = i.split(";", 1), bc[i] || null;
|
|
7676
7676
|
}
|
|
7677
|
-
var si = { exports: {} },
|
|
7677
|
+
var si = { exports: {} }, xa;
|
|
7678
7678
|
function wc() {
|
|
7679
|
-
if (
|
|
7680
|
-
|
|
7679
|
+
if (xa) return si.exports;
|
|
7680
|
+
xa = 1, si.exports = s, si.exports.isMobile = s, si.exports.default = s;
|
|
7681
7681
|
const i = /(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i, e = /CrOS/, t = /android|ipad|playbook|silk/i;
|
|
7682
7682
|
function s(r) {
|
|
7683
7683
|
r || (r = {});
|
|
@@ -7698,7 +7698,7 @@ function Fc(i, e, t) {
|
|
|
7698
7698
|
function Tc() {
|
|
7699
7699
|
return typeof MediaRecorder == "function" && !!MediaRecorder.prototype && typeof MediaRecorder.prototype.start == "function";
|
|
7700
7700
|
}
|
|
7701
|
-
function
|
|
7701
|
+
function sl() {
|
|
7702
7702
|
return d("svg", {
|
|
7703
7703
|
"aria-hidden": "true",
|
|
7704
7704
|
focusable: "false",
|
|
@@ -7723,7 +7723,7 @@ function Pc(i) {
|
|
|
7723
7723
|
"aria-label": t("takePicture"),
|
|
7724
7724
|
onClick: e,
|
|
7725
7725
|
"data-uppy-super-focusable": !0
|
|
7726
|
-
},
|
|
7726
|
+
}, sl());
|
|
7727
7727
|
}
|
|
7728
7728
|
function Cc(i) {
|
|
7729
7729
|
let {
|
|
@@ -8005,7 +8005,7 @@ function Ic(i) {
|
|
|
8005
8005
|
const Uc = {
|
|
8006
8006
|
version: "4.0.3"
|
|
8007
8007
|
};
|
|
8008
|
-
function
|
|
8008
|
+
function Ra(i) {
|
|
8009
8009
|
return i[0] === "." ? mr[i.slice(1)] : i;
|
|
8010
8010
|
}
|
|
8011
8011
|
function Bc(i) {
|
|
@@ -8034,7 +8034,7 @@ const $c = {
|
|
|
8034
8034
|
})
|
|
8035
8035
|
};
|
|
8036
8036
|
var be = /* @__PURE__ */ Ic("enableMirror");
|
|
8037
|
-
class
|
|
8037
|
+
class rl extends oe {
|
|
8038
8038
|
constructor(e, t) {
|
|
8039
8039
|
super(e, {
|
|
8040
8040
|
...$c,
|
|
@@ -8123,7 +8123,7 @@ class sl extends oe {
|
|
|
8123
8123
|
restrictions: t
|
|
8124
8124
|
} = this.uppy.opts;
|
|
8125
8125
|
let s = [];
|
|
8126
|
-
this.opts.preferredVideoMimeType ? s = [this.opts.preferredVideoMimeType] : t.allowedFileTypes && (s = t.allowedFileTypes.map(
|
|
8126
|
+
this.opts.preferredVideoMimeType ? s = [this.opts.preferredVideoMimeType] : t.allowedFileTypes && (s = t.allowedFileTypes.map(Ra).filter(Bc));
|
|
8127
8127
|
const r = (a) => MediaRecorder.isTypeSupported(a) && yi(a), n = s.filter(r);
|
|
8128
8128
|
n.length > 0 && (e.mimeType = n[0]);
|
|
8129
8129
|
}
|
|
@@ -8239,7 +8239,7 @@ class sl extends oe {
|
|
|
8239
8239
|
restrictions: a
|
|
8240
8240
|
} = this.uppy.opts;
|
|
8241
8241
|
let o = [];
|
|
8242
|
-
this.opts.preferredImageMimeType ? o = [this.opts.preferredImageMimeType] : a.allowedFileTypes && (o = a.allowedFileTypes.map(
|
|
8242
|
+
this.opts.preferredImageMimeType ? o = [this.opts.preferredImageMimeType] : a.allowedFileTypes && (o = a.allowedFileTypes.map(Ra).filter(Lc));
|
|
8243
8243
|
const l = o[0] || "image/jpeg", u = yi(l) || "jpg", c = `cam-${Date.now()}.${u}`;
|
|
8244
8244
|
return Fc(r, l).then((h) => ({
|
|
8245
8245
|
source: this.id,
|
|
@@ -8290,7 +8290,7 @@ class sl extends oe {
|
|
|
8290
8290
|
this.webcamActive || this.start();
|
|
8291
8291
|
const e = this.getPluginState();
|
|
8292
8292
|
return !e.cameraReady || !e.hasCamera ? d(kc, {
|
|
8293
|
-
icon:
|
|
8293
|
+
icon: sl,
|
|
8294
8294
|
i18n: this.i18n,
|
|
8295
8295
|
hasCamera: e.hasCamera
|
|
8296
8296
|
}) : d(
|
|
@@ -8355,7 +8355,7 @@ class sl extends oe {
|
|
|
8355
8355
|
this.stop();
|
|
8356
8356
|
}
|
|
8357
8357
|
}
|
|
8358
|
-
|
|
8358
|
+
rl.VERSION = Uc.version;
|
|
8359
8359
|
const Ar = {
|
|
8360
8360
|
strings: {},
|
|
8361
8361
|
pluralize() {
|
|
@@ -8477,10 +8477,10 @@ class jc extends Error {
|
|
|
8477
8477
|
super(...arguments), this.name = "UserFacingApiError";
|
|
8478
8478
|
}
|
|
8479
8479
|
}
|
|
8480
|
-
var rr = {}, nr,
|
|
8480
|
+
var rr = {}, nr, Da;
|
|
8481
8481
|
function Hc() {
|
|
8482
|
-
if (
|
|
8483
|
-
|
|
8482
|
+
if (Da) return nr;
|
|
8483
|
+
Da = 1;
|
|
8484
8484
|
function i(e, t) {
|
|
8485
8485
|
typeof t == "boolean" && (t = { forever: t }), this._originalTimeouts = JSON.parse(JSON.stringify(e)), this._timeouts = e, this._options = t || {}, this._maxRetryTime = t && t.maxRetryTime || 1 / 0, this._fn = null, this._errors = [], this._attempts = 1, this._operationTimeout = null, this._operationTimeoutCb = null, this._timeout = null, this._operationStart = null, this._timer = null, this._options.forever && (this._cachedTimeouts = this._timeouts.slice(0));
|
|
8486
8486
|
}
|
|
@@ -8531,9 +8531,9 @@ function Hc() {
|
|
|
8531
8531
|
return t;
|
|
8532
8532
|
}, nr;
|
|
8533
8533
|
}
|
|
8534
|
-
var
|
|
8534
|
+
var Aa;
|
|
8535
8535
|
function qc() {
|
|
8536
|
-
return
|
|
8536
|
+
return Aa || (Aa = 1, function(i) {
|
|
8537
8537
|
var e = Hc();
|
|
8538
8538
|
i.operation = function(t) {
|
|
8539
8539
|
var s = i.timeouts(t);
|
|
@@ -8584,9 +8584,9 @@ function qc() {
|
|
|
8584
8584
|
};
|
|
8585
8585
|
}(rr)), rr;
|
|
8586
8586
|
}
|
|
8587
|
-
var ar,
|
|
8587
|
+
var ar, ka;
|
|
8588
8588
|
function Vc() {
|
|
8589
|
-
return
|
|
8589
|
+
return ka || (ka = 1, ar = qc()), ar;
|
|
8590
8590
|
}
|
|
8591
8591
|
var Wc = Vc();
|
|
8592
8592
|
const Gc = /* @__PURE__ */ it(Wc), Xc = Object.prototype.toString, Yc = (i) => Xc.call(i) === "[object Error]", Kc = /* @__PURE__ */ new Set([
|
|
@@ -8615,11 +8615,11 @@ class kr extends Error {
|
|
|
8615
8615
|
super(), e instanceof Error ? (this.originalError = e, { message: e } = e) : (this.originalError = new Error(e), this.originalError.stack = this.stack), this.name = "AbortError", this.message = e;
|
|
8616
8616
|
}
|
|
8617
8617
|
}
|
|
8618
|
-
const
|
|
8618
|
+
const Ma = (i, e, t) => {
|
|
8619
8619
|
const s = t.retries - (e - 1);
|
|
8620
8620
|
return i.attemptNumber = e, i.retriesLeft = s, i;
|
|
8621
8621
|
};
|
|
8622
|
-
async function
|
|
8622
|
+
async function nl(i, e) {
|
|
8623
8623
|
return new Promise((t, s) => {
|
|
8624
8624
|
e = { ...e }, e.onFailedAttempt ?? (e.onFailedAttempt = () => {
|
|
8625
8625
|
}), e.shouldRetry ?? (e.shouldRetry = () => !0), e.retries ?? (e.retries = 10);
|
|
@@ -8644,10 +8644,10 @@ async function rl(i, e) {
|
|
|
8644
8644
|
throw l.originalError;
|
|
8645
8645
|
if (l instanceof TypeError && !Jc(l))
|
|
8646
8646
|
throw l;
|
|
8647
|
-
if (
|
|
8647
|
+
if (Ma(l, o, e), await e.shouldRetry(l) || (r.stop(), s(l)), await e.onFailedAttempt(l), !r.retry(l))
|
|
8648
8648
|
throw r.mainError();
|
|
8649
8649
|
} catch (u) {
|
|
8650
|
-
|
|
8650
|
+
Ma(u, o, e), a(), s(u);
|
|
8651
8651
|
}
|
|
8652
8652
|
}
|
|
8653
8653
|
});
|
|
@@ -8695,7 +8695,7 @@ const rp = {
|
|
|
8695
8695
|
function np(i) {
|
|
8696
8696
|
return i.replace(/\/$/, "");
|
|
8697
8697
|
}
|
|
8698
|
-
const
|
|
8698
|
+
const al = 10, ap = 5 * 60 * 1e3, op = 401;
|
|
8699
8699
|
class lp extends Error {
|
|
8700
8700
|
constructor(e) {
|
|
8701
8701
|
let {
|
|
@@ -8739,7 +8739,7 @@ function dp(i, e, t) {
|
|
|
8739
8739
|
}
|
|
8740
8740
|
}
|
|
8741
8741
|
var Ue = /* @__PURE__ */ ls("companionHeaders"), ni = /* @__PURE__ */ ls("getUrl"), or = /* @__PURE__ */ ls("requestSocketToken"), ai = /* @__PURE__ */ ls("awaitRemoteFileUpload");
|
|
8742
|
-
class
|
|
8742
|
+
class ol {
|
|
8743
8743
|
constructor(e, t) {
|
|
8744
8744
|
Object.defineProperty(this, ai, {
|
|
8745
8745
|
value: cp
|
|
@@ -8863,7 +8863,7 @@ class al {
|
|
|
8863
8863
|
signal: n,
|
|
8864
8864
|
getQueue: a
|
|
8865
8865
|
} = s || {};
|
|
8866
|
-
return await
|
|
8866
|
+
return await nl(async () => {
|
|
8867
8867
|
var o;
|
|
8868
8868
|
const l = (o = this.uppy.getFile(e.id)) == null ? void 0 : o.serverToken;
|
|
8869
8869
|
if (l != null)
|
|
@@ -8898,7 +8898,7 @@ class al {
|
|
|
8898
8898
|
signal: n
|
|
8899
8899
|
});
|
|
8900
8900
|
}, {
|
|
8901
|
-
retries:
|
|
8901
|
+
retries: al,
|
|
8902
8902
|
signal: n,
|
|
8903
8903
|
onFailedAttempt: (o) => this.uppy.log(`Retrying upload due to: ${o.message}`, "warning")
|
|
8904
8904
|
});
|
|
@@ -8954,7 +8954,7 @@ async function cp(i) {
|
|
|
8954
8954
|
}
|
|
8955
8955
|
try {
|
|
8956
8956
|
await t.wrapPromiseFunction(async () => {
|
|
8957
|
-
await
|
|
8957
|
+
await nl(async () => (
|
|
8958
8958
|
// eslint-disable-next-line promise/param-names
|
|
8959
8959
|
new Promise((I, k) => {
|
|
8960
8960
|
c = new WebSocket(`${u}/api/${l}`), F(), c.addEventListener("close", () => {
|
|
@@ -9009,7 +9009,7 @@ async function cp(i) {
|
|
|
9009
9009
|
});
|
|
9010
9010
|
})
|
|
9011
9011
|
), {
|
|
9012
|
-
retries:
|
|
9012
|
+
retries: al,
|
|
9013
9013
|
signal: h.signal,
|
|
9014
9014
|
onFailedAttempt: () => {
|
|
9015
9015
|
h.signal.aborted || this.uppy.log(`Retrying websocket ${e.id}`);
|
|
@@ -9042,8 +9042,8 @@ async function cp(i) {
|
|
|
9042
9042
|
r == null || r();
|
|
9043
9043
|
}
|
|
9044
9044
|
}
|
|
9045
|
-
|
|
9046
|
-
function
|
|
9045
|
+
ol.VERSION = rp.version;
|
|
9046
|
+
function Na(i, e) {
|
|
9047
9047
|
if (!{}.hasOwnProperty.call(i, e)) throw new TypeError("attempted to use private field on non-instance");
|
|
9048
9048
|
return i;
|
|
9049
9049
|
}
|
|
@@ -9067,10 +9067,10 @@ class mp extends ae {
|
|
|
9067
9067
|
}), this.form.id = ns();
|
|
9068
9068
|
}
|
|
9069
9069
|
componentDidMount() {
|
|
9070
|
-
this.input.value = "", this.form.addEventListener("submit",
|
|
9070
|
+
this.input.value = "", this.form.addEventListener("submit", Na(this, oi)[oi]), document.body.appendChild(this.form);
|
|
9071
9071
|
}
|
|
9072
9072
|
componentWillUnmount() {
|
|
9073
|
-
this.form.removeEventListener("submit",
|
|
9073
|
+
this.form.removeEventListener("submit", Na(this, oi)[oi]), document.body.removeChild(this.form);
|
|
9074
9074
|
}
|
|
9075
9075
|
render() {
|
|
9076
9076
|
const {
|
|
@@ -9095,7 +9095,7 @@ class mp extends ae {
|
|
|
9095
9095
|
}, e("import")));
|
|
9096
9096
|
}
|
|
9097
9097
|
}
|
|
9098
|
-
function
|
|
9098
|
+
function Ia(i, e, t) {
|
|
9099
9099
|
const s = Ge(i.items);
|
|
9100
9100
|
let r;
|
|
9101
9101
|
switch (e) {
|
|
@@ -9129,7 +9129,7 @@ const gp = {
|
|
|
9129
9129
|
enterCorrectUrl: "Incorrect URL: Please make sure you are entering a direct link to a file"
|
|
9130
9130
|
}
|
|
9131
9131
|
};
|
|
9132
|
-
var
|
|
9132
|
+
var ll;
|
|
9133
9133
|
const vp = {
|
|
9134
9134
|
version: "4.1.2"
|
|
9135
9135
|
};
|
|
@@ -9208,16 +9208,16 @@ class tt extends oe {
|
|
|
9208
9208
|
}, "error", 4e3), a;
|
|
9209
9209
|
}
|
|
9210
9210
|
}, this.handleRootDrop = (s) => {
|
|
9211
|
-
|
|
9211
|
+
Ia(s.dataTransfer, "drop", (r) => {
|
|
9212
9212
|
this.uppy.log(`[URL] Adding file from dropped url: ${r}`), this.addFile(r);
|
|
9213
9213
|
});
|
|
9214
9214
|
}, this.handleRootPaste = (s) => {
|
|
9215
|
-
|
|
9215
|
+
Ia(s.clipboardData, "paste", (r) => {
|
|
9216
9216
|
this.uppy.log(`[URL] Adding file from pasted url: ${r}`), this.addFile(r);
|
|
9217
9217
|
});
|
|
9218
9218
|
}, this.id = this.opts.id || "Url", this.type = "acquirer", this.icon = () => d(yp, null), this.defaultLocale = gp, this.i18nInit(), this.title = this.i18n("pluginNameUrl"), this.hostname = this.opts.companionUrl, !this.hostname)
|
|
9219
9219
|
throw new Error("Companion hostname is required, please consult https://uppy.io/docs/companion");
|
|
9220
|
-
this.client = new
|
|
9220
|
+
this.client = new ol(e, {
|
|
9221
9221
|
pluginId: this.id,
|
|
9222
9222
|
provider: "url",
|
|
9223
9223
|
companionUrl: this.opts.companionUrl,
|
|
@@ -9241,9 +9241,9 @@ class tt extends oe {
|
|
|
9241
9241
|
this.unmount();
|
|
9242
9242
|
}
|
|
9243
9243
|
}
|
|
9244
|
-
|
|
9244
|
+
ll = tt;
|
|
9245
9245
|
tt.VERSION = vp.version;
|
|
9246
|
-
tt.requestClientId =
|
|
9246
|
+
tt.requestClientId = ll.name;
|
|
9247
9247
|
tt.prototype.canHandleRootDrop = wp;
|
|
9248
9248
|
function Fp() {
|
|
9249
9249
|
return d("svg", {
|
|
@@ -9550,7 +9550,7 @@ const Mp = {
|
|
|
9550
9550
|
},
|
|
9551
9551
|
preferredVideoMimeType: "video/webm"
|
|
9552
9552
|
};
|
|
9553
|
-
class
|
|
9553
|
+
class ul extends oe {
|
|
9554
9554
|
constructor(e, t) {
|
|
9555
9555
|
super(e, {
|
|
9556
9556
|
...Mp,
|
|
@@ -9696,7 +9696,7 @@ class ll extends oe {
|
|
|
9696
9696
|
}));
|
|
9697
9697
|
}
|
|
9698
9698
|
}
|
|
9699
|
-
|
|
9699
|
+
ul.VERSION = Dp.version;
|
|
9700
9700
|
/*!
|
|
9701
9701
|
* Cropper.js v1.6.2
|
|
9702
9702
|
* https://fengyuanchen.github.io/cropperjs
|
|
@@ -9706,7 +9706,7 @@ ll.VERSION = Dp.version;
|
|
|
9706
9706
|
*
|
|
9707
9707
|
* Date: 2024-04-21T07:43:05.335Z
|
|
9708
9708
|
*/
|
|
9709
|
-
function
|
|
9709
|
+
function Ua(i, e) {
|
|
9710
9710
|
var t = Object.keys(i);
|
|
9711
9711
|
if (Object.getOwnPropertySymbols) {
|
|
9712
9712
|
var s = Object.getOwnPropertySymbols(i);
|
|
@@ -9716,12 +9716,12 @@ function Ia(i, e) {
|
|
|
9716
9716
|
}
|
|
9717
9717
|
return t;
|
|
9718
9718
|
}
|
|
9719
|
-
function
|
|
9719
|
+
function dl(i) {
|
|
9720
9720
|
for (var e = 1; e < arguments.length; e++) {
|
|
9721
9721
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
9722
|
-
e % 2 ?
|
|
9722
|
+
e % 2 ? Ua(Object(t), !0).forEach(function(s) {
|
|
9723
9723
|
Bp(i, s, t[s]);
|
|
9724
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) :
|
|
9724
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(i, Object.getOwnPropertyDescriptors(t)) : Ua(Object(t)).forEach(function(s) {
|
|
9725
9725
|
Object.defineProperty(i, s, Object.getOwnPropertyDescriptor(t, s));
|
|
9726
9726
|
});
|
|
9727
9727
|
}
|
|
@@ -9737,7 +9737,7 @@ function Np(i, e) {
|
|
|
9737
9737
|
}
|
|
9738
9738
|
return (e === "string" ? String : Number)(i);
|
|
9739
9739
|
}
|
|
9740
|
-
function
|
|
9740
|
+
function hl(i) {
|
|
9741
9741
|
var e = Np(i, "string");
|
|
9742
9742
|
return typeof e == "symbol" ? e : e + "";
|
|
9743
9743
|
}
|
|
@@ -9753,26 +9753,26 @@ function Ip(i, e) {
|
|
|
9753
9753
|
if (!(i instanceof e))
|
|
9754
9754
|
throw new TypeError("Cannot call a class as a function");
|
|
9755
9755
|
}
|
|
9756
|
-
function
|
|
9756
|
+
function Ba(i, e) {
|
|
9757
9757
|
for (var t = 0; t < e.length; t++) {
|
|
9758
9758
|
var s = e[t];
|
|
9759
|
-
s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(i,
|
|
9759
|
+
s.enumerable = s.enumerable || !1, s.configurable = !0, "value" in s && (s.writable = !0), Object.defineProperty(i, hl(s.key), s);
|
|
9760
9760
|
}
|
|
9761
9761
|
}
|
|
9762
9762
|
function Up(i, e, t) {
|
|
9763
|
-
return
|
|
9763
|
+
return Ba(i.prototype, e), Ba(i, t), Object.defineProperty(i, "prototype", {
|
|
9764
9764
|
writable: !1
|
|
9765
9765
|
}), i;
|
|
9766
9766
|
}
|
|
9767
9767
|
function Bp(i, e, t) {
|
|
9768
|
-
return e =
|
|
9768
|
+
return e = hl(e), e in i ? Object.defineProperty(i, e, {
|
|
9769
9769
|
value: t,
|
|
9770
9770
|
enumerable: !0,
|
|
9771
9771
|
configurable: !0,
|
|
9772
9772
|
writable: !0
|
|
9773
9773
|
}) : i[e] = t, i;
|
|
9774
9774
|
}
|
|
9775
|
-
function
|
|
9775
|
+
function cl(i) {
|
|
9776
9776
|
return Lp(i) || zp(i) || $p(i) || jp();
|
|
9777
9777
|
}
|
|
9778
9778
|
function Lp(i) {
|
|
@@ -9798,7 +9798,7 @@ function jp() {
|
|
|
9798
9798
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
9799
9799
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
9800
9800
|
}
|
|
9801
|
-
var us = typeof window < "u" && typeof window.document < "u", Re = us ? window : {}, cn = us && Re.document.documentElement ? "ontouchstart" in Re.document.documentElement : !1, pn = us ? "PointerEvent" in Re : !1, z = "cropper", fn = "all",
|
|
9801
|
+
var us = typeof window < "u" && typeof window.document < "u", Re = us ? window : {}, cn = us && Re.document.documentElement ? "ontouchstart" in Re.document.documentElement : !1, pn = us ? "PointerEvent" in Re : !1, z = "cropper", fn = "all", pl = "crop", fl = "move", ml = "zoom", at = "e", ot = "w", Ft = "s", Ye = "n", li = "ne", ui = "nw", di = "se", hi = "sw", Br = "".concat(z, "-crop"), La = "".concat(z, "-disabled"), ne = "".concat(z, "-hidden"), za = "".concat(z, "-hide"), Hp = "".concat(z, "-invisible"), rs = "".concat(z, "-modal"), Lr = "".concat(z, "-move"), Oi = "".concat(z, "Action"), Xi = "".concat(z, "Preview"), mn = "crop", gl = "move", vl = "none", zr = "crop", $r = "cropend", jr = "cropmove", Hr = "cropstart", $a = "dblclick", qp = cn ? "touchstart" : "mousedown", Vp = cn ? "touchmove" : "mousemove", Wp = cn ? "touchend touchcancel" : "mouseup", ja = pn ? "pointerdown" : qp, Ha = pn ? "pointermove" : Vp, qa = pn ? "pointerup pointercancel" : Wp, Va = "ready", Wa = "resize", Ga = "wheel", qr = "zoom", Xa = "image/jpeg", Gp = /^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/, Xp = /^data:/, Yp = /^data:image\/jpeg;base64,/, Kp = /^img|canvas$/i, yl = 200, bl = 100, Ya = {
|
|
9802
9802
|
// Define the view mode of the cropper
|
|
9803
9803
|
viewMode: 0,
|
|
9804
9804
|
// 0, 1, 2, 3
|
|
@@ -9860,8 +9860,8 @@ var us = typeof window < "u" && typeof window.document < "u", Re = us ? window :
|
|
|
9860
9860
|
minCanvasHeight: 0,
|
|
9861
9861
|
minCropBoxWidth: 0,
|
|
9862
9862
|
minCropBoxHeight: 0,
|
|
9863
|
-
minContainerWidth:
|
|
9864
|
-
minContainerHeight:
|
|
9863
|
+
minContainerWidth: yl,
|
|
9864
|
+
minContainerHeight: bl,
|
|
9865
9865
|
// Shortcuts of events
|
|
9866
9866
|
ready: null,
|
|
9867
9867
|
cropstart: null,
|
|
@@ -9873,7 +9873,7 @@ var us = typeof window < "u" && typeof window.document < "u", Re = us ? window :
|
|
|
9873
9873
|
function R(i) {
|
|
9874
9874
|
return typeof i == "number" && !Qp(i);
|
|
9875
9875
|
}
|
|
9876
|
-
var
|
|
9876
|
+
var Ka = function(e) {
|
|
9877
9877
|
return e > 0 && e < 1 / 0;
|
|
9878
9878
|
};
|
|
9879
9879
|
function lr(i) {
|
|
@@ -9897,11 +9897,11 @@ function re(i) {
|
|
|
9897
9897
|
return typeof i == "function";
|
|
9898
9898
|
}
|
|
9899
9899
|
var ef = Array.prototype.slice;
|
|
9900
|
-
function
|
|
9900
|
+
function wl(i) {
|
|
9901
9901
|
return Array.from ? Array.from(i) : ef.call(i);
|
|
9902
9902
|
}
|
|
9903
9903
|
function V(i, e) {
|
|
9904
|
-
return i && re(e) && (Array.isArray(i) || R(i.length) ?
|
|
9904
|
+
return i && re(e) && (Array.isArray(i) || R(i.length) ? wl(i).forEach(function(t, s) {
|
|
9905
9905
|
e.call(i, t, s, i);
|
|
9906
9906
|
}) : wt(i) && Object.keys(i).forEach(function(t) {
|
|
9907
9907
|
e.call(i, i[t], t, i);
|
|
@@ -9998,7 +9998,7 @@ function af(i, e) {
|
|
|
9998
9998
|
else
|
|
9999
9999
|
i.removeAttribute("data-".concat(gn(e)));
|
|
10000
10000
|
}
|
|
10001
|
-
var
|
|
10001
|
+
var Sl = /\s\s*/, _l = function() {
|
|
10002
10002
|
var i = !1;
|
|
10003
10003
|
if (us) {
|
|
10004
10004
|
var e = !1, t = function() {
|
|
@@ -10021,8 +10021,8 @@ var wl = /\s\s*/, Sl = function() {
|
|
|
10021
10021
|
}();
|
|
10022
10022
|
function we(i, e, t) {
|
|
10023
10023
|
var s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, r = t;
|
|
10024
|
-
e.trim().split(
|
|
10025
|
-
if (!
|
|
10024
|
+
e.trim().split(Sl).forEach(function(n) {
|
|
10025
|
+
if (!_l) {
|
|
10026
10026
|
var a = i.listeners;
|
|
10027
10027
|
a && a[n] && a[n][t] && (r = a[n][t], delete a[n][t], Object.keys(a[n]).length === 0 && delete a[n], Object.keys(a).length === 0 && delete i.listeners);
|
|
10028
10028
|
}
|
|
@@ -10031,8 +10031,8 @@ function we(i, e, t) {
|
|
|
10031
10031
|
}
|
|
10032
10032
|
function ge(i, e, t) {
|
|
10033
10033
|
var s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, r = t;
|
|
10034
|
-
e.trim().split(
|
|
10035
|
-
if (s.once && !
|
|
10034
|
+
e.trim().split(Sl).forEach(function(n) {
|
|
10035
|
+
if (s.once && !_l) {
|
|
10036
10036
|
var a = i.listeners, o = a === void 0 ? {} : a;
|
|
10037
10037
|
r = function() {
|
|
10038
10038
|
delete o[n][t], i.removeEventListener(n, r, s);
|
|
@@ -10052,7 +10052,7 @@ function Rt(i, e, t) {
|
|
|
10052
10052
|
cancelable: !0
|
|
10053
10053
|
}) : (s = document.createEvent("CustomEvent"), s.initCustomEvent(e, !0, !0, t)), i.dispatchEvent(s);
|
|
10054
10054
|
}
|
|
10055
|
-
function
|
|
10055
|
+
function Fl(i) {
|
|
10056
10056
|
var e = i.getBoundingClientRect();
|
|
10057
10057
|
return {
|
|
10058
10058
|
left: e.left + (window.pageXOffset - document.documentElement.clientLeft),
|
|
@@ -10060,11 +10060,11 @@ function _l(i) {
|
|
|
10060
10060
|
};
|
|
10061
10061
|
}
|
|
10062
10062
|
var ur = Re.location, of = /^(\w+:)\/\/([^:/?#]*):?(\d*)/i;
|
|
10063
|
-
function
|
|
10063
|
+
function Ja(i) {
|
|
10064
10064
|
var e = i.match(of);
|
|
10065
10065
|
return e !== null && (e[1] !== ur.protocol || e[2] !== ur.hostname || e[3] !== ur.port);
|
|
10066
10066
|
}
|
|
10067
|
-
function
|
|
10067
|
+
function Qa(i) {
|
|
10068
10068
|
var e = "timestamp=".concat((/* @__PURE__ */ new Date()).getTime());
|
|
10069
10069
|
return i + (i.indexOf("?") === -1 ? "?" : "&") + e;
|
|
10070
10070
|
}
|
|
@@ -10079,7 +10079,7 @@ function bi(i) {
|
|
|
10079
10079
|
};
|
|
10080
10080
|
}
|
|
10081
10081
|
function lf(i) {
|
|
10082
|
-
var e =
|
|
10082
|
+
var e = dl({}, i), t = 0;
|
|
10083
10083
|
return V(i, function(s, r) {
|
|
10084
10084
|
delete e[r], V(e, function(n) {
|
|
10085
10085
|
var a = Math.abs(s.startX - n.startX), o = Math.abs(s.startY - n.startY), l = Math.abs(s.endX - n.endX), u = Math.abs(s.endY - n.endY), c = Math.sqrt(a * a + o * o), h = Math.sqrt(l * l + u * u), p = (h - c) / c;
|
|
@@ -10092,7 +10092,7 @@ function Yi(i, e) {
|
|
|
10092
10092
|
endX: t,
|
|
10093
10093
|
endY: s
|
|
10094
10094
|
};
|
|
10095
|
-
return e ? r :
|
|
10095
|
+
return e ? r : dl({
|
|
10096
10096
|
startX: t,
|
|
10097
10097
|
startY: s
|
|
10098
10098
|
}, r);
|
|
@@ -10108,7 +10108,7 @@ function uf(i) {
|
|
|
10108
10108
|
};
|
|
10109
10109
|
}
|
|
10110
10110
|
function et(i) {
|
|
10111
|
-
var e = i.aspectRatio, t = i.height, s = i.width, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "contain", n =
|
|
10111
|
+
var e = i.aspectRatio, t = i.height, s = i.width, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "contain", n = Ka(s), a = Ka(t);
|
|
10112
10112
|
if (n && a) {
|
|
10113
10113
|
var o = t * e;
|
|
10114
10114
|
r === "contain" && o > s || r === "cover" && o < s ? t = s / e : s = t * e;
|
|
@@ -10152,16 +10152,16 @@ function hf(i, e, t, s) {
|
|
|
10152
10152
|
width: k,
|
|
10153
10153
|
height: x
|
|
10154
10154
|
}, "cover"), Ut = Math.min(Ce.width, Math.max(It.width, n)), Di = Math.min(Ce.height, Math.max(It.height, a)), hs = [-Ut / 2, -Di / 2, Ut, Di];
|
|
10155
|
-
return M.width = xt(ye), M.height = xt(ue), U.fillStyle = w, U.fillRect(0, 0, ye, ue), U.save(), U.translate(ye / 2, ue / 2), U.rotate(l * Math.PI / 180), U.scale(c, p), U.imageSmoothingEnabled = C, U.imageSmoothingQuality = T, U.drawImage.apply(U, [i].concat(
|
|
10155
|
+
return M.width = xt(ye), M.height = xt(ue), U.fillStyle = w, U.fillRect(0, 0, ye, ue), U.save(), U.translate(ye / 2, ue / 2), U.rotate(l * Math.PI / 180), U.scale(c, p), U.imageSmoothingEnabled = C, U.imageSmoothingQuality = T, U.drawImage.apply(U, [i].concat(cl(hs.map(function(Ai) {
|
|
10156
10156
|
return Math.floor(xt(Ai));
|
|
10157
10157
|
})))), U.restore(), M;
|
|
10158
10158
|
}
|
|
10159
|
-
var
|
|
10159
|
+
var Tl = String.fromCharCode;
|
|
10160
10160
|
function cf(i, e, t) {
|
|
10161
10161
|
var s = "";
|
|
10162
10162
|
t += e;
|
|
10163
10163
|
for (var r = e; r < t; r += 1)
|
|
10164
|
-
s +=
|
|
10164
|
+
s += Tl(i.getUint8(r));
|
|
10165
10165
|
return s;
|
|
10166
10166
|
}
|
|
10167
10167
|
var pf = /^data:.*,/;
|
|
@@ -10173,7 +10173,7 @@ function ff(i) {
|
|
|
10173
10173
|
}
|
|
10174
10174
|
function mf(i, e) {
|
|
10175
10175
|
for (var t = [], s = 8192, r = new Uint8Array(i); r.length > 0; )
|
|
10176
|
-
t.push(
|
|
10176
|
+
t.push(Tl.apply(null, wl(r.subarray(0, s)))), r = r.subarray(s);
|
|
10177
10177
|
return "data:".concat(e, ";base64,").concat(btoa(t.join("")));
|
|
10178
10178
|
}
|
|
10179
10179
|
function gf(i) {
|
|
@@ -10257,8 +10257,8 @@ var yf = {
|
|
|
10257
10257
|
var e = this.element, t = this.options, s = this.container, r = this.cropper, n = Number(t.minContainerWidth), a = Number(t.minContainerHeight);
|
|
10258
10258
|
G(r, ne), xe(e, ne);
|
|
10259
10259
|
var o = {
|
|
10260
|
-
width: Math.max(s.offsetWidth, n >= 0 ? n :
|
|
10261
|
-
height: Math.max(s.offsetHeight, a >= 0 ? a :
|
|
10260
|
+
width: Math.max(s.offsetWidth, n >= 0 ? n : yl),
|
|
10261
|
+
height: Math.max(s.offsetHeight, a >= 0 ? a : bl)
|
|
10262
10262
|
};
|
|
10263
10263
|
this.containerData = o, Ze(r, {
|
|
10264
10264
|
width: o.width,
|
|
@@ -10347,7 +10347,7 @@ var yf = {
|
|
|
10347
10347
|
},
|
|
10348
10348
|
renderCropBox: function() {
|
|
10349
10349
|
var e = this.options, t = this.containerData, s = this.cropBoxData;
|
|
10350
|
-
(s.width > s.maxWidth || s.width < s.minWidth) && (s.left = s.oldLeft), (s.height > s.maxHeight || s.height < s.minHeight) && (s.top = s.oldTop), s.width = Math.min(Math.max(s.width, s.minWidth), s.maxWidth), s.height = Math.min(Math.max(s.height, s.minHeight), s.maxHeight), this.limitCropBox(!1, !0), s.left = Math.min(Math.max(s.left, s.minLeft), s.maxLeft), s.top = Math.min(Math.max(s.top, s.minTop), s.maxTop), s.oldLeft = s.left, s.oldTop = s.top, e.movable && e.cropBoxMovable && xi(this.face, Oi, s.width >= t.width && s.height >= t.height ?
|
|
10350
|
+
(s.width > s.maxWidth || s.width < s.minWidth) && (s.left = s.oldLeft), (s.height > s.maxHeight || s.height < s.minHeight) && (s.top = s.oldTop), s.width = Math.min(Math.max(s.width, s.minWidth), s.maxWidth), s.height = Math.min(Math.max(s.height, s.minHeight), s.maxHeight), this.limitCropBox(!1, !0), s.left = Math.min(Math.max(s.left, s.minLeft), s.maxLeft), s.top = Math.min(Math.max(s.top, s.minTop), s.maxTop), s.oldLeft = s.left, s.oldTop = s.top, e.movable && e.cropBoxMovable && xi(this.face, Oi, s.width >= t.width && s.height >= t.height ? fl : fn), Ze(this.cropBox, $({
|
|
10351
10351
|
width: s.width,
|
|
10352
10352
|
height: s.height
|
|
10353
10353
|
}, bi({
|
|
@@ -10407,17 +10407,17 @@ var yf = {
|
|
|
10407
10407
|
}, wf = {
|
|
10408
10408
|
bind: function() {
|
|
10409
10409
|
var e = this.element, t = this.options, s = this.cropper;
|
|
10410
|
-
re(t.cropstart) && ge(e, Hr, t.cropstart), re(t.cropmove) && ge(e, jr, t.cropmove), re(t.cropend) && ge(e, $r, t.cropend), re(t.crop) && ge(e, zr, t.crop), re(t.zoom) && ge(e, qr, t.zoom), ge(s,
|
|
10410
|
+
re(t.cropstart) && ge(e, Hr, t.cropstart), re(t.cropmove) && ge(e, jr, t.cropmove), re(t.cropend) && ge(e, $r, t.cropend), re(t.crop) && ge(e, zr, t.crop), re(t.zoom) && ge(e, qr, t.zoom), ge(s, ja, this.onCropStart = this.cropStart.bind(this)), t.zoomable && t.zoomOnWheel && ge(s, Ga, this.onWheel = this.wheel.bind(this), {
|
|
10411
10411
|
passive: !1,
|
|
10412
10412
|
capture: !0
|
|
10413
|
-
}), t.toggleDragModeOnDblclick && ge(s,
|
|
10413
|
+
}), t.toggleDragModeOnDblclick && ge(s, $a, this.onDblclick = this.dblclick.bind(this)), ge(e.ownerDocument, Ha, this.onCropMove = this.cropMove.bind(this)), ge(e.ownerDocument, qa, this.onCropEnd = this.cropEnd.bind(this)), t.responsive && ge(window, Wa, this.onResize = this.resize.bind(this));
|
|
10414
10414
|
},
|
|
10415
10415
|
unbind: function() {
|
|
10416
10416
|
var e = this.element, t = this.options, s = this.cropper;
|
|
10417
|
-
re(t.cropstart) && we(e, Hr, t.cropstart), re(t.cropmove) && we(e, jr, t.cropmove), re(t.cropend) && we(e, $r, t.cropend), re(t.crop) && we(e, zr, t.crop), re(t.zoom) && we(e, qr, t.zoom), we(s,
|
|
10417
|
+
re(t.cropstart) && we(e, Hr, t.cropstart), re(t.cropmove) && we(e, jr, t.cropmove), re(t.cropend) && we(e, $r, t.cropend), re(t.crop) && we(e, zr, t.crop), re(t.zoom) && we(e, qr, t.zoom), we(s, ja, this.onCropStart), t.zoomable && t.zoomOnWheel && we(s, Ga, this.onWheel, {
|
|
10418
10418
|
passive: !1,
|
|
10419
10419
|
capture: !0
|
|
10420
|
-
}), t.toggleDragModeOnDblclick && we(s,
|
|
10420
|
+
}), t.toggleDragModeOnDblclick && we(s, $a, this.onDblclick), we(e.ownerDocument, Ha, this.onCropMove), we(e.ownerDocument, qa, this.onCropEnd), t.responsive && we(window, Wa, this.onResize);
|
|
10421
10421
|
}
|
|
10422
10422
|
}, Sf = {
|
|
10423
10423
|
resize: function() {
|
|
@@ -10434,7 +10434,7 @@ var yf = {
|
|
|
10434
10434
|
}
|
|
10435
10435
|
},
|
|
10436
10436
|
dblclick: function() {
|
|
10437
|
-
this.disabled || this.options.dragMode ===
|
|
10437
|
+
this.disabled || this.options.dragMode === vl || this.setDragMode(rf(this.dragBox, Br) ? gl : mn);
|
|
10438
10438
|
},
|
|
10439
10439
|
wheel: function(e) {
|
|
10440
10440
|
var t = this, s = Number(this.options.wheelZoomRatio) || 0.1, r = 1;
|
|
@@ -10449,10 +10449,10 @@ var yf = {
|
|
|
10449
10449
|
var r = this.options, n = this.pointers, a;
|
|
10450
10450
|
e.changedTouches ? V(e.changedTouches, function(o) {
|
|
10451
10451
|
n[o.identifier] = Yi(o);
|
|
10452
|
-
}) : n[e.pointerId || 0] = Yi(e), Object.keys(n).length > 1 && r.zoomable && r.zoomOnTouch ? a =
|
|
10452
|
+
}) : n[e.pointerId || 0] = Yi(e), Object.keys(n).length > 1 && r.zoomable && r.zoomOnTouch ? a = ml : a = Vr(e.target, Oi), Gp.test(a) && Rt(this.element, Hr, {
|
|
10453
10453
|
originalEvent: e,
|
|
10454
10454
|
action: a
|
|
10455
|
-
}) !== !1 && (e.preventDefault(), this.action = a, this.cropping = !1, a ===
|
|
10455
|
+
}) !== !1 && (e.preventDefault(), this.action = a, this.cropping = !1, a === pl && (this.cropping = !0, G(this.dragBox, rs)));
|
|
10456
10456
|
}
|
|
10457
10457
|
},
|
|
10458
10458
|
cropMove: function(e) {
|
|
@@ -10580,20 +10580,20 @@ var yf = {
|
|
|
10580
10580
|
h < 0 && p < 0 ? (o = ui, p = -p, h = -h, c -= p, u -= h) : h < 0 ? (o = hi, h = -h, u -= h) : p < 0 && (o = li, p = -p, c -= p);
|
|
10581
10581
|
break;
|
|
10582
10582
|
// Move canvas
|
|
10583
|
-
case
|
|
10583
|
+
case fl:
|
|
10584
10584
|
this.move(g.x, g.y), C = !1;
|
|
10585
10585
|
break;
|
|
10586
10586
|
// Zoom canvas
|
|
10587
|
-
case
|
|
10587
|
+
case ml:
|
|
10588
10588
|
this.zoom(lf(a), e), C = !1;
|
|
10589
10589
|
break;
|
|
10590
10590
|
// Create crop box
|
|
10591
|
-
case
|
|
10591
|
+
case pl:
|
|
10592
10592
|
if (!g.x || !g.y) {
|
|
10593
10593
|
C = !1;
|
|
10594
10594
|
break;
|
|
10595
10595
|
}
|
|
10596
|
-
P =
|
|
10596
|
+
P = Fl(this.cropper), u = T.startX - P.left, c = T.startY - P.top, h = n.minWidth, p = n.minHeight, g.x > 0 ? o = g.y > 0 ? di : li : g.x < 0 && (u -= h, o = g.y > 0 ? hi : ui), g.y < 0 && (c -= p), this.cropped || (xe(this.cropBox, ne), this.cropped = !0, this.limited && this.limitCropBox(!0, !0));
|
|
10597
10597
|
break;
|
|
10598
10598
|
}
|
|
10599
10599
|
C && (n.width = h, n.height = p, n.left = u, n.top = c, this.action = o, this.renderCropBox()), V(a, function(F) {
|
|
@@ -10632,11 +10632,11 @@ var yf = {
|
|
|
10632
10632
|
},
|
|
10633
10633
|
// Enable (unfreeze) the cropper
|
|
10634
10634
|
enable: function() {
|
|
10635
|
-
return this.ready && this.disabled && (this.disabled = !1, xe(this.cropper,
|
|
10635
|
+
return this.ready && this.disabled && (this.disabled = !1, xe(this.cropper, La)), this;
|
|
10636
10636
|
},
|
|
10637
10637
|
// Disable (freeze) the cropper
|
|
10638
10638
|
disable: function() {
|
|
10639
|
-
return this.ready && !this.disabled && (this.disabled = !0, G(this.cropper,
|
|
10639
|
+
return this.ready && !this.disabled && (this.disabled = !0, G(this.cropper, La)), this;
|
|
10640
10640
|
},
|
|
10641
10641
|
/**
|
|
10642
10642
|
* Destroy the cropper and remove the instance from the image
|
|
@@ -10694,7 +10694,7 @@ var yf = {
|
|
|
10694
10694
|
}) === !1)
|
|
10695
10695
|
return this;
|
|
10696
10696
|
if (s) {
|
|
10697
|
-
var p = this.pointers, f =
|
|
10697
|
+
var p = this.pointers, f = Fl(this.cropper), m = p && Object.keys(p).length ? uf(p) : {
|
|
10698
10698
|
pageX: s.pageX,
|
|
10699
10699
|
pageY: s.pageY
|
|
10700
10700
|
};
|
|
@@ -10887,7 +10887,7 @@ var yf = {
|
|
|
10887
10887
|
var K = m / o;
|
|
10888
10888
|
U.push(k * K, N * K, x * K, M * K);
|
|
10889
10889
|
}
|
|
10890
|
-
return w.drawImage.apply(w, [s].concat(
|
|
10890
|
+
return w.drawImage.apply(w, [s].concat(cl(U.map(function(fe) {
|
|
10891
10891
|
return Math.floor(xt(fe));
|
|
10892
10892
|
})))), v;
|
|
10893
10893
|
},
|
|
@@ -10908,17 +10908,17 @@ var yf = {
|
|
|
10908
10908
|
setDragMode: function(e) {
|
|
10909
10909
|
var t = this.options, s = this.dragBox, r = this.face;
|
|
10910
10910
|
if (this.ready && !this.disabled) {
|
|
10911
|
-
var n = e === mn, a = t.movable && e ===
|
|
10912
|
-
e = n || a ? e :
|
|
10911
|
+
var n = e === mn, a = t.movable && e === gl;
|
|
10912
|
+
e = n || a ? e : vl, t.dragMode = e, xi(s, Oi, e), Ot(s, Br, n), Ot(s, Lr, a), t.cropBoxMovable || (xi(r, Oi, e), Ot(r, Br, n), Ot(r, Lr, a));
|
|
10913
10913
|
}
|
|
10914
10914
|
return this;
|
|
10915
10915
|
}
|
|
10916
|
-
}, Tf = Re.Cropper,
|
|
10916
|
+
}, Tf = Re.Cropper, Pl = /* @__PURE__ */ function() {
|
|
10917
10917
|
function i(e) {
|
|
10918
10918
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
10919
10919
|
if (Ip(this, i), !e || !Kp.test(e.tagName))
|
|
10920
10920
|
throw new Error("The first argument is required and must be an <img> or <canvas> element.");
|
|
10921
|
-
this.element = e, this.options = $({},
|
|
10921
|
+
this.element = e, this.options = $({}, Ya, Et(t) && t), this.cropped = !1, this.disabled = !1, this.pointers = {}, this.ready = !1, this.reloading = !1, this.replaced = !1, this.sized = !1, this.sizing = !1, this.init();
|
|
10922
10922
|
}
|
|
10923
10923
|
return Up(i, [{
|
|
10924
10924
|
key: "init",
|
|
@@ -10950,12 +10950,12 @@ var yf = {
|
|
|
10950
10950
|
}
|
|
10951
10951
|
var a = new XMLHttpRequest(), o = this.clone.bind(this);
|
|
10952
10952
|
this.reloading = !0, this.xhr = a, a.onabort = o, a.onerror = o, a.ontimeout = o, a.onprogress = function() {
|
|
10953
|
-
a.getResponseHeader("content-type") !==
|
|
10953
|
+
a.getResponseHeader("content-type") !== Xa && a.abort();
|
|
10954
10954
|
}, a.onload = function() {
|
|
10955
10955
|
s.read(a.response);
|
|
10956
10956
|
}, a.onloadend = function() {
|
|
10957
10957
|
s.reloading = !1, s.xhr = null;
|
|
10958
|
-
}, n.checkCrossOrigin &&
|
|
10958
|
+
}, n.checkCrossOrigin && Ja(t) && r.crossOrigin && (t = Qa(t)), a.open("GET", t, !0), a.responseType = "arraybuffer", a.withCredentials = r.crossOrigin === "use-credentials", a.send();
|
|
10959
10959
|
}
|
|
10960
10960
|
}
|
|
10961
10961
|
}, {
|
|
@@ -10963,7 +10963,7 @@ var yf = {
|
|
|
10963
10963
|
value: function(t) {
|
|
10964
10964
|
var s = this.options, r = this.imageData, n = gf(t), a = 0, o = 1, l = 1;
|
|
10965
10965
|
if (n > 1) {
|
|
10966
|
-
this.url = mf(t,
|
|
10966
|
+
this.url = mf(t, Xa);
|
|
10967
10967
|
var u = vf(n);
|
|
10968
10968
|
a = u.rotate, o = u.scaleX, l = u.scaleY;
|
|
10969
10969
|
}
|
|
@@ -10973,9 +10973,9 @@ var yf = {
|
|
|
10973
10973
|
key: "clone",
|
|
10974
10974
|
value: function() {
|
|
10975
10975
|
var t = this.element, s = this.url, r = t.crossOrigin, n = s;
|
|
10976
|
-
this.options.checkCrossOrigin &&
|
|
10976
|
+
this.options.checkCrossOrigin && Ja(s) && (r || (r = "anonymous"), n = Qa(s)), this.crossOrigin = r, this.crossOriginUrl = n;
|
|
10977
10977
|
var a = document.createElement("img");
|
|
10978
|
-
r && (a.crossOrigin = r), a.src = n || s, a.alt = t.alt || "The image to crop", this.image = a, a.onload = this.start.bind(this), a.onerror = this.stop.bind(this), G(a,
|
|
10978
|
+
r && (a.crossOrigin = r), a.src = n || s, a.alt = t.alt || "The image to crop", this.image = a, a.onload = this.start.bind(this), a.onerror = this.stop.bind(this), G(a, za), t.parentNode.insertBefore(a, t.nextSibling);
|
|
10979
10979
|
}
|
|
10980
10980
|
}, {
|
|
10981
10981
|
key: "start",
|
|
@@ -11011,9 +11011,9 @@ var yf = {
|
|
|
11011
11011
|
var t = this.element, s = this.options, r = this.image, n = t.parentNode, a = document.createElement("div");
|
|
11012
11012
|
a.innerHTML = Jp;
|
|
11013
11013
|
var o = a.querySelector(".".concat(z, "-container")), l = o.querySelector(".".concat(z, "-canvas")), u = o.querySelector(".".concat(z, "-drag-box")), c = o.querySelector(".".concat(z, "-crop-box")), h = c.querySelector(".".concat(z, "-face"));
|
|
11014
|
-
this.container = n, this.cropper = o, this.canvas = l, this.dragBox = u, this.cropBox = c, this.viewBox = o.querySelector(".".concat(z, "-view-box")), this.face = h, l.appendChild(r), G(t, ne), n.insertBefore(o, t.nextSibling), xe(r,
|
|
11014
|
+
this.container = n, this.cropper = o, this.canvas = l, this.dragBox = u, this.cropBox = c, this.viewBox = o.querySelector(".".concat(z, "-view-box")), this.face = h, l.appendChild(r), G(t, ne), n.insertBefore(o, t.nextSibling), xe(r, za), this.initPreview(), this.bind(), s.initialAspectRatio = Math.max(0, s.initialAspectRatio) || NaN, s.aspectRatio = Math.max(0, s.aspectRatio) || NaN, s.viewMode = Math.max(0, Math.min(3, Math.round(s.viewMode))) || 0, G(c, ne), s.guides || G(c.getElementsByClassName("".concat(z, "-dashed")), ne), s.center || G(c.getElementsByClassName("".concat(z, "-center")), ne), s.background && G(o, "".concat(z, "-bg")), s.highlight || G(h, Hp), s.cropBoxMovable && (G(h, Lr), xi(h, Oi, fn)), s.cropBoxResizable || (G(c.getElementsByClassName("".concat(z, "-line")), ne), G(c.getElementsByClassName("".concat(z, "-point")), ne)), this.render(), this.ready = !0, this.setDragMode(s.dragMode), s.autoCrop && this.crop(), this.setData(s.data), re(s.ready) && ge(t, Va, s.ready, {
|
|
11015
11015
|
once: !0
|
|
11016
|
-
}), Rt(t,
|
|
11016
|
+
}), Rt(t, Va);
|
|
11017
11017
|
}
|
|
11018
11018
|
}
|
|
11019
11019
|
}, {
|
|
@@ -11046,11 +11046,11 @@ var yf = {
|
|
|
11046
11046
|
}, {
|
|
11047
11047
|
key: "setDefaults",
|
|
11048
11048
|
value: function(t) {
|
|
11049
|
-
$(
|
|
11049
|
+
$(Ya, Et(t) && t);
|
|
11050
11050
|
}
|
|
11051
11051
|
}]);
|
|
11052
11052
|
}();
|
|
11053
|
-
$(
|
|
11053
|
+
$(Pl.prototype, yf, bf, wf, Sf, _f, Ff);
|
|
11054
11054
|
function Pf(i, e) {
|
|
11055
11055
|
const t = i.width / e.width, s = i.height / e.height, r = Math.min(t, s), n = e.width * r, a = e.height * r, o = (i.width - n) / 2, l = (i.height - a) / 2;
|
|
11056
11056
|
return {
|
|
@@ -11131,7 +11131,7 @@ class Rf extends ae {
|
|
|
11131
11131
|
opts: e,
|
|
11132
11132
|
storeCropperInstance: t
|
|
11133
11133
|
} = this.props;
|
|
11134
|
-
this.cropper = new
|
|
11134
|
+
this.cropper = new Pl(this.imgElement, e.cropperOptions), this.imgElement.addEventListener("cropstart", this.storePrevCropboxData), this.imgElement.addEventListener("cropend", this.limitCropboxMovement), t(this.cropper);
|
|
11135
11135
|
}
|
|
11136
11136
|
componentWillUnmount() {
|
|
11137
11137
|
this.cropper.destroy(), this.imgElement.removeEventListener("cropstart", this.storePrevCropboxData), this.imgElement.removeEventListener("cropend", this.limitCropboxMovement);
|
|
@@ -11412,7 +11412,7 @@ const Df = {
|
|
|
11412
11412
|
}
|
|
11413
11413
|
}, Af = {
|
|
11414
11414
|
version: "3.2.1"
|
|
11415
|
-
},
|
|
11415
|
+
}, Cl = {
|
|
11416
11416
|
viewMode: 0,
|
|
11417
11417
|
background: !1,
|
|
11418
11418
|
autoCropArea: 1,
|
|
@@ -11421,7 +11421,7 @@ const Df = {
|
|
|
11421
11421
|
minCropBoxHeight: 70,
|
|
11422
11422
|
croppedCanvasOptions: {},
|
|
11423
11423
|
initialAspectRatio: 0
|
|
11424
|
-
},
|
|
11424
|
+
}, El = {
|
|
11425
11425
|
revert: !0,
|
|
11426
11426
|
rotate: !0,
|
|
11427
11427
|
granularRotate: !0,
|
|
@@ -11435,20 +11435,20 @@ const Df = {
|
|
|
11435
11435
|
// `quality: 1` increases the image size by orders of magnitude - 0.8 seems to be the sweet spot.
|
|
11436
11436
|
// see https://github.com/fengyuanchen/cropperjs/issues/538#issuecomment-1776279427
|
|
11437
11437
|
quality: 0.8,
|
|
11438
|
-
actions:
|
|
11439
|
-
cropperOptions:
|
|
11438
|
+
actions: El,
|
|
11439
|
+
cropperOptions: Cl
|
|
11440
11440
|
};
|
|
11441
|
-
class
|
|
11441
|
+
class Ol extends oe {
|
|
11442
11442
|
constructor(e, t) {
|
|
11443
11443
|
super(e, {
|
|
11444
11444
|
...kf,
|
|
11445
11445
|
...t,
|
|
11446
11446
|
actions: {
|
|
11447
|
-
...
|
|
11447
|
+
...El,
|
|
11448
11448
|
...t == null ? void 0 : t.actions
|
|
11449
11449
|
},
|
|
11450
11450
|
cropperOptions: {
|
|
11451
|
-
...
|
|
11451
|
+
...Cl,
|
|
11452
11452
|
...t == null ? void 0 : t.cropperOptions
|
|
11453
11453
|
}
|
|
11454
11454
|
}), this.save = () => {
|
|
@@ -11524,16 +11524,16 @@ class El extends oe {
|
|
|
11524
11524
|
});
|
|
11525
11525
|
}
|
|
11526
11526
|
}
|
|
11527
|
-
|
|
11527
|
+
Ol.VERSION = Af.version;
|
|
11528
11528
|
function Be(i, e) {
|
|
11529
11529
|
if (!{}.hasOwnProperty.call(i, e)) throw new TypeError("attempted to use private field on non-instance");
|
|
11530
11530
|
return i;
|
|
11531
11531
|
}
|
|
11532
11532
|
var Mf = 0;
|
|
11533
|
-
function
|
|
11533
|
+
function xl(i) {
|
|
11534
11534
|
return "__private_" + Mf++ + "_" + i;
|
|
11535
11535
|
}
|
|
11536
|
-
var ee = /* @__PURE__ */
|
|
11536
|
+
var ee = /* @__PURE__ */ xl("uppy"), ci = /* @__PURE__ */ xl("events");
|
|
11537
11537
|
class Nf {
|
|
11538
11538
|
constructor(e) {
|
|
11539
11539
|
Object.defineProperty(this, ee, {
|
|
@@ -11606,7 +11606,7 @@ function Uf(i) {
|
|
|
11606
11606
|
cause: i
|
|
11607
11607
|
});
|
|
11608
11608
|
}
|
|
11609
|
-
function
|
|
11609
|
+
function Za(i) {
|
|
11610
11610
|
if (i != null) {
|
|
11611
11611
|
var e;
|
|
11612
11612
|
const t = () => this.abort(i.reason);
|
|
@@ -11682,7 +11682,7 @@ class Bf {
|
|
|
11682
11682
|
const o = s.run(() => (e(...n), queueMicrotask(() => o.done()), () => {
|
|
11683
11683
|
}), t);
|
|
11684
11684
|
return {
|
|
11685
|
-
abortOn:
|
|
11685
|
+
abortOn: Za,
|
|
11686
11686
|
abort() {
|
|
11687
11687
|
o.abort();
|
|
11688
11688
|
}
|
|
@@ -11714,7 +11714,7 @@ class Bf {
|
|
|
11714
11714
|
});
|
|
11715
11715
|
return l.abort = (u) => {
|
|
11716
11716
|
o.abort(u);
|
|
11717
|
-
}, l.abortOn =
|
|
11717
|
+
}, l.abortOn = Za, l;
|
|
11718
11718
|
};
|
|
11719
11719
|
}
|
|
11720
11720
|
resume() {
|
|
@@ -11881,7 +11881,7 @@ function Yf(i) {
|
|
|
11881
11881
|
return !((t = e.progress) != null && t.uploadStarted) || !e.isRestored;
|
|
11882
11882
|
});
|
|
11883
11883
|
}
|
|
11884
|
-
function
|
|
11884
|
+
function Rl(i, e) {
|
|
11885
11885
|
return i === !0 ? Object.keys(e) : Array.isArray(i) ? i : [];
|
|
11886
11886
|
}
|
|
11887
11887
|
const Kf = {
|
|
@@ -11907,7 +11907,7 @@ function Zf(i, e) {
|
|
|
11907
11907
|
data: t
|
|
11908
11908
|
})), qf(i) ? (t = new Ei(t, i), t) : (t.request = i, t);
|
|
11909
11909
|
}
|
|
11910
|
-
function
|
|
11910
|
+
function eo(i) {
|
|
11911
11911
|
return i.data.slice(0, i.data.size, i.meta.type);
|
|
11912
11912
|
}
|
|
11913
11913
|
const em = {
|
|
@@ -11923,7 +11923,7 @@ const em = {
|
|
|
11923
11923
|
responseType: ""
|
|
11924
11924
|
};
|
|
11925
11925
|
var bt = /* @__PURE__ */ Nt("getFetcher"), Xr = /* @__PURE__ */ Nt("uploadLocalFile"), pr = /* @__PURE__ */ Nt("uploadBundle"), Yr = /* @__PURE__ */ Nt("getCompanionClientArgs"), fr = /* @__PURE__ */ Nt("uploadFiles"), fi = /* @__PURE__ */ Nt("handleUpload");
|
|
11926
|
-
class
|
|
11926
|
+
class Dl extends Po {
|
|
11927
11927
|
constructor(e, t) {
|
|
11928
11928
|
if (super(e, {
|
|
11929
11929
|
...em,
|
|
@@ -12040,7 +12040,7 @@ class Rl extends To {
|
|
|
12040
12040
|
}
|
|
12041
12041
|
// eslint-disable-next-line class-methods-use-this
|
|
12042
12042
|
addMetadata(e, t, s) {
|
|
12043
|
-
|
|
12043
|
+
Rl(s.allowedMetaFields, t).forEach((n) => {
|
|
12044
12044
|
const a = t[n];
|
|
12045
12045
|
Array.isArray(a) ? a.forEach((o) => e.append(n, o)) : e.append(n, a);
|
|
12046
12046
|
});
|
|
@@ -12048,7 +12048,7 @@ class Rl extends To {
|
|
|
12048
12048
|
createFormDataUpload(e, t) {
|
|
12049
12049
|
const s = new FormData();
|
|
12050
12050
|
this.addMetadata(s, e.meta, t);
|
|
12051
|
-
const r =
|
|
12051
|
+
const r = eo(e);
|
|
12052
12052
|
return e.name ? s.append(t.fieldName, r, e.meta.name) : s.append(t.fieldName, r), s;
|
|
12053
12053
|
}
|
|
12054
12054
|
createBundledUpload(e, t) {
|
|
@@ -12056,7 +12056,7 @@ class Rl extends To {
|
|
|
12056
12056
|
meta: r
|
|
12057
12057
|
} = this.uppy.getState();
|
|
12058
12058
|
return this.addMetadata(s, r, t), e.forEach((n) => {
|
|
12059
|
-
const a = this.getOptions(n), o =
|
|
12059
|
+
const a = this.getOptions(n), o = eo(n);
|
|
12060
12060
|
n.name ? s.append(a.fieldName, o, n.name) : s.append(a.fieldName, o);
|
|
12061
12061
|
}), s;
|
|
12062
12062
|
}
|
|
@@ -12139,7 +12139,7 @@ async function im(i) {
|
|
|
12139
12139
|
}
|
|
12140
12140
|
function sm(i) {
|
|
12141
12141
|
var e;
|
|
12142
|
-
const t = this.getOptions(i), s =
|
|
12142
|
+
const t = this.getOptions(i), s = Rl(t.allowedMetaFields, i.meta);
|
|
12143
12143
|
return {
|
|
12144
12144
|
...(e = i.remote) == null ? void 0 : e.body,
|
|
12145
12145
|
protocol: "multipart",
|
|
@@ -12172,8 +12172,8 @@ async function rm(i) {
|
|
|
12172
12172
|
return Ve(this, Xr)[Xr](e);
|
|
12173
12173
|
}));
|
|
12174
12174
|
}
|
|
12175
|
-
|
|
12176
|
-
const
|
|
12175
|
+
Dl.VERSION = Qf.version;
|
|
12176
|
+
const to = [
|
|
12177
12177
|
"csv",
|
|
12178
12178
|
"djvu",
|
|
12179
12179
|
"doc",
|
|
@@ -12229,7 +12229,7 @@ const eo = [
|
|
|
12229
12229
|
"flv",
|
|
12230
12230
|
"tls"
|
|
12231
12231
|
], nm = (i) => {
|
|
12232
|
-
const e = Bt("loadUrl"), t = Lt(() => i.loadUrl || i.fileUrl || (e == null ? void 0 : e.value)), s = Bt("uploadUrl"), r = Lt(() => i.action || i.uploadUrl || (s == null ? void 0 : s.value)), n = Bt("token"), a = Lt(() => i.token || (n == null ? void 0 : n.value)), o = Bt("onlyofficeConfig"), l = Lt(() => i.onlyofficeConfig || (o == null ? void 0 : o.value)), u = Bt("userInfo"), c = Lt(() => i.userInfo || (u == null ? void 0 : u.value)), h = [...
|
|
12232
|
+
const e = Bt("loadUrl"), t = Lt(() => i.loadUrl || i.fileUrl || (e == null ? void 0 : e.value)), s = Bt("uploadUrl"), r = Lt(() => i.action || i.uploadUrl || (s == null ? void 0 : s.value)), n = Bt("token"), a = Lt(() => i.token || (n == null ? void 0 : n.value)), o = Bt("onlyofficeConfig"), l = Lt(() => i.onlyofficeConfig || (o == null ? void 0 : o.value)), u = Bt("userInfo"), c = Lt(() => i.userInfo || (u == null ? void 0 : u.value)), h = [...to, ...to.map((p) => p.toLocaleUpperCase())];
|
|
12233
12233
|
return {
|
|
12234
12234
|
cLoadUrl: t,
|
|
12235
12235
|
cUploadUrl: r,
|
|
@@ -12240,7 +12240,7 @@ const eo = [
|
|
|
12240
12240
|
};
|
|
12241
12241
|
}, am = /* @__PURE__ */ St({
|
|
12242
12242
|
__name: "IkImageUploadEditor",
|
|
12243
|
-
props: /* @__PURE__ */
|
|
12243
|
+
props: /* @__PURE__ */ vn({
|
|
12244
12244
|
tools: {
|
|
12245
12245
|
type: Array,
|
|
12246
12246
|
default: () => []
|
|
@@ -12313,11 +12313,11 @@ const eo = [
|
|
|
12313
12313
|
},
|
|
12314
12314
|
openModifiers: {}
|
|
12315
12315
|
}),
|
|
12316
|
-
emits: ["update:open"],
|
|
12317
|
-
setup(i) {
|
|
12318
|
-
const
|
|
12316
|
+
emits: /* @__PURE__ */ vn(["upload-success", "upload-error", "dashboard:modal-closed"], ["update:open"]),
|
|
12317
|
+
setup(i, { emit: e }) {
|
|
12318
|
+
const t = i;
|
|
12319
12319
|
Ar.strings.poweredBy = "";
|
|
12320
|
-
const { cToken:
|
|
12320
|
+
const s = e, { cToken: r, cUploadUrl: n } = nm(t), a = new Xe({
|
|
12321
12321
|
locale: {
|
|
12322
12322
|
strings: {
|
|
12323
12323
|
...Ar.strings,
|
|
@@ -12340,23 +12340,23 @@ const eo = [
|
|
|
12340
12340
|
autoProceed: !1,
|
|
12341
12341
|
restrictions: {
|
|
12342
12342
|
// 每个单独文件的最小文件大小(以字节为单位)
|
|
12343
|
-
minFileSize:
|
|
12343
|
+
minFileSize: t.minFileSize * 1024 * 1024,
|
|
12344
12344
|
// 每个单独文件的最大文件大小(以字节为单位)
|
|
12345
|
-
maxFileSize:
|
|
12345
|
+
maxFileSize: t.maxFileSize * 1024 * 1024,
|
|
12346
12346
|
// 可以选择的文件总数
|
|
12347
|
-
maxNumberOfFiles:
|
|
12347
|
+
maxNumberOfFiles: t.maxNumberOfFiles,
|
|
12348
12348
|
// 在上传之前必须选择的文件的最小数量
|
|
12349
|
-
minNumberOfFiles:
|
|
12349
|
+
minNumberOfFiles: t.minNumberOfFiles,
|
|
12350
12350
|
// 允许的文件类型,通配符image/*,或精确的mime类型image/jpeg,或文件扩展名.jpg:['image/*', '.jpg', '.jpeg', '.png', '.gif']
|
|
12351
|
-
allowedFileTypes:
|
|
12351
|
+
allowedFileTypes: t.accept
|
|
12352
12352
|
},
|
|
12353
12353
|
debug: !1,
|
|
12354
12354
|
meta: {
|
|
12355
12355
|
type: "avatar"
|
|
12356
12356
|
},
|
|
12357
|
-
onBeforeFileAdded: (
|
|
12358
|
-
onBeforeUpload: (
|
|
12359
|
-
}).use(
|
|
12357
|
+
onBeforeFileAdded: (l) => (console.log("onBeforeFileAdded: ", l), !0),
|
|
12358
|
+
onBeforeUpload: (l) => (console.log("onBeforeUpload: ", l), !0)
|
|
12359
|
+
}).use(rl, {
|
|
12360
12360
|
locale: {
|
|
12361
12361
|
strings: {
|
|
12362
12362
|
pluginNameCamera: "摄像头"
|
|
@@ -12375,7 +12375,7 @@ const eo = [
|
|
|
12375
12375
|
}
|
|
12376
12376
|
},
|
|
12377
12377
|
companionUrl: "http://localhost:5173"
|
|
12378
|
-
}).use(
|
|
12378
|
+
}).use(ul, {
|
|
12379
12379
|
locale: {
|
|
12380
12380
|
strings: {
|
|
12381
12381
|
pluginNameScreenCapture: "录屏"
|
|
@@ -12384,28 +12384,28 @@ const eo = [
|
|
|
12384
12384
|
return 0;
|
|
12385
12385
|
}
|
|
12386
12386
|
}
|
|
12387
|
-
}).use(
|
|
12388
|
-
endpoint:
|
|
12387
|
+
}).use(Ol).use(Dl, {
|
|
12388
|
+
endpoint: n.value,
|
|
12389
12389
|
fieldName: "file",
|
|
12390
12390
|
headers: {
|
|
12391
|
-
Authorization: `Bearer ${
|
|
12391
|
+
Authorization: `Bearer ${r.value}`
|
|
12392
12392
|
}
|
|
12393
|
-
}),
|
|
12394
|
-
return
|
|
12395
|
-
console.log("res: ",
|
|
12396
|
-
}),
|
|
12397
|
-
console.log("res: ",
|
|
12398
|
-
}),
|
|
12399
|
-
|
|
12400
|
-
}), (
|
|
12393
|
+
}), o = Ml(i, "open");
|
|
12394
|
+
return a.on("upload-success", (l, u) => {
|
|
12395
|
+
console.log("res: ", u), console.log("result: ", l), s("upload-success", { result: l, res: u });
|
|
12396
|
+
}), a.on("upload-error", (l, u) => {
|
|
12397
|
+
console.log("res: ", u), console.log("error: ", l), s("upload-error", { error: l, res: u });
|
|
12398
|
+
}), a.on("dashboard:modal-closed", () => {
|
|
12399
|
+
o.value = !1, s("dashboard:modal-closed", !1);
|
|
12400
|
+
}), (l, u) => i.isModal ? (yn(), bn(Mi(dc), {
|
|
12401
12401
|
key: 0,
|
|
12402
|
-
open:
|
|
12403
|
-
uppy: Mi(
|
|
12404
|
-
props: { disabled:
|
|
12405
|
-
}, null, 8, ["open", "uppy", "props"])) : (
|
|
12402
|
+
open: o.value,
|
|
12403
|
+
uppy: Mi(a),
|
|
12404
|
+
props: { disabled: t.disabled, fileManagerSelectionType: i.fileManagerSelectionType }
|
|
12405
|
+
}, null, 8, ["open", "uppy", "props"])) : (yn(), bn(Mi(uc), {
|
|
12406
12406
|
key: 1,
|
|
12407
|
-
uppy: Mi(
|
|
12408
|
-
props: { disabled:
|
|
12407
|
+
uppy: Mi(a),
|
|
12408
|
+
props: { disabled: t.disabled, width: t.width, height: t.height, fileManagerSelectionType: i.fileManagerSelectionType }
|
|
12409
12409
|
}, null, 8, ["uppy", "props"]));
|
|
12410
12410
|
}
|
|
12411
12411
|
}), om = (i, e) => {
|
|
@@ -12413,7 +12413,7 @@ const eo = [
|
|
|
12413
12413
|
for (const [s, r] of e)
|
|
12414
12414
|
t[s] = r;
|
|
12415
12415
|
return t;
|
|
12416
|
-
}, lm = /* @__PURE__ */ om(am, [["__scopeId", "data-v-
|
|
12416
|
+
}, lm = /* @__PURE__ */ om(am, [["__scopeId", "data-v-9646ae93"]]), mm = Nl(lm);
|
|
12417
12417
|
export {
|
|
12418
12418
|
mm as IkImageUploadEditor,
|
|
12419
12419
|
mm as default
|