@jari-ace/element-plus-component 0.4.3 → 0.4.4
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/components/upload/uploader.vue.d.ts.map +1 -1
- package/dist/components/upload/uploader.vue.js +64 -44
- package/dist/components/upload/uploader.vue.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/index.js +788 -795
- package/lib/index.umd.cjs +32 -32
- package/package.json +2 -2
- package/packages/components/upload/uploader.vue +60 -44
package/lib/index.js
CHANGED
|
@@ -3,9 +3,9 @@ var Mr = (e) => {
|
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
5
|
var FY = (e, l, t) => l in e ? ZY(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t;
|
|
6
|
-
var
|
|
7
|
-
var j = (e, l, t) => (sm(e, l, "read from private field"), t ? t.call(e) : l.get(e)),
|
|
8
|
-
import { ref as f, defineComponent as ml, shallowRef as A0, toRef as hY, computed as Kl, createElementBlock as Ql, watch as
|
|
6
|
+
var C = (e, l, t) => FY(e, typeof l != "symbol" ? l + "" : l, t), sm = (e, l, t) => l.has(e) || Mr("Cannot " + t);
|
|
7
|
+
var j = (e, l, t) => (sm(e, l, "read from private field"), t ? t.call(e) : l.get(e)), il = (e, l, t) => l.has(e) ? Mr("Cannot add the same private member more than once") : l instanceof WeakSet ? l.add(e) : l.set(e, t), ol = (e, l, t, d) => (sm(e, l, "write to private field"), d ? d.call(e, t) : l.set(e, t), t), Fl = (e, l, t) => (sm(e, l, "access private method"), t);
|
|
8
|
+
import { ref as f, defineComponent as ml, shallowRef as A0, toRef as hY, computed as Kl, createElementBlock as Ql, watch as Ul, onBeforeUnmount as JS, openBlock as H, Fragment as rt, renderList as xl, renderSlot as dt, createElementVNode as Nl, normalizeStyle as Mb, createCommentVNode as Dl, watchEffect as oY, toValue as Sr, mergeModels as fl, useModel as yt, createBlock as el, unref as B, withCtx as v, createVNode as $, onMounted as Xh, onUnmounted as hi, nextTick as Qn, createTextVNode as Jl, toDisplayString as ql, inject as cl, normalizeClass as _0, reactive as jQ, provide as Rs, mergeProps as Hl, createSlots as Ce, withDirectives as tt, onBeforeMount as yh, vShow as Qd, resolveComponent as Ds, resolveDynamicComponent as WY, shallowReactive as Sb, withAsyncContext as VY, h as WZ, withKeys as Pa, withModifiers as Fs, resolveDirective as GS, vModelText as QY } from "vue";
|
|
9
9
|
import { createAxiosWithoutCache as Xl, useAppServiceApi as mY, useLoading as bn, useFilesApi as TS, useLoginUser as tc, useDepartmentApi as XS, FromDeptSelect as yS, useUserApi as Jb, useRealmApi as RY, useUserQueryBuilder as YS, useAppApi as ai, useUserGroupApi as Zu, useCustomGroupApi as BS, useRoleApi as kS, useAppMessageApi as zS, useRoleCategoryApi as LS, useChannelApi as uY, useEntityApi as Gb, useEnumApi as NY, useConstraintApi as bY, useFileConfigurationApi as rY, useStringIdTemplateApi as pY } from "@jari-ace/app-bolts";
|
|
10
10
|
import { Upload as MY, Download as SY, ArrowDown as Tb, WarningFilled as JY, QuestionFilled as IS, Minus as Yh, Plus as oi, Star as GY, StarFilled as DS, Close as TY, Hide as XY, View as yY, Check as Xb, Notebook as YY, Delete as wS, Finished as BY, Setting as kY, Search as Jr, Edit as zY, InfoFilled as LY, ArrowUp as IY } from "@element-plus/icons-vue";
|
|
11
11
|
import { ElDialog as CV, ElButton as Nt, ElDropdown as yb, ElIcon as vt, ElDropdownMenu as DY, ElDropdownItem as wY, ElTable as EY, ElTableColumn as Eh, ElTag as xV, ElTooltip as Rn, ElMessageBox as ES, ElForm as Yb, ElFormItem as gV, ElText as ii, ElInput as un, ElCheckbox as CY, ElInputNumber as jV, ElSelect as Wi, ElDatePicker as Fu, ElSwitch as CS, ElSpace as Bb, ElTreeSelect as kb, ElAvatar as xY, ElImage as gY, ElPopover as xS, vLoading as vs, ElTree as OQ, ElOption as lZ, ElTabs as jY, ElTabPane as Um, ElScrollbar as ws, ElTableV2 as OY, ElMessage as tZ, ElEmpty as gS, ElTimePicker as vY, ElAutocomplete as KY, ElRadioGroup as fY, ElDrawer as jS, ElCheckboxGroup as HY } from "element-plus";
|
|
@@ -86,9 +86,9 @@ const OS = [
|
|
|
86
86
|
class lB extends Error {
|
|
87
87
|
constructor(t, d = null) {
|
|
88
88
|
super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall.");
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
C(this, "cause");
|
|
90
|
+
C(this, "isNetworkError");
|
|
91
|
+
C(this, "request");
|
|
92
92
|
this.cause = t, this.isNetworkError = !0, this.request = d;
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -372,17 +372,17 @@ function Br(e) {
|
|
|
372
372
|
var fn, an, Hn, xc, sn, gc, Ts, Re, ou, ZF, _S, qS, $S, GQ, jc;
|
|
373
373
|
class bB {
|
|
374
374
|
constructor(l) {
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
375
|
+
il(this, Re);
|
|
376
|
+
il(this, fn, 0);
|
|
377
|
+
il(this, an, []);
|
|
378
|
+
il(this, Hn, !1);
|
|
379
|
+
il(this, xc);
|
|
380
|
+
il(this, sn, 1);
|
|
381
|
+
il(this, gc);
|
|
382
|
+
il(this, Ts);
|
|
383
|
+
C(this, "limit");
|
|
384
|
+
il(this, GQ, () => this.resume());
|
|
385
|
+
il(this, jc, () => {
|
|
386
386
|
if (j(this, Hn)) {
|
|
387
387
|
ol(this, Ts, setTimeout(j(this, jc), 0));
|
|
388
388
|
return;
|
|
@@ -541,9 +541,9 @@ const pB = (e) => {
|
|
|
541
541
|
var mh, Rh, Wu;
|
|
542
542
|
class lJ {
|
|
543
543
|
constructor(l, { onMissingKey: t = pB } = {}) {
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
544
|
+
il(this, Rh);
|
|
545
|
+
C(this, "locale");
|
|
546
|
+
il(this, mh);
|
|
547
547
|
this.locale = {
|
|
548
548
|
strings: {},
|
|
549
549
|
pluralize(d) {
|
|
@@ -724,8 +724,8 @@ function Db(e, l, t, d, n, a, i, s, U, Z) {
|
|
|
724
724
|
if (b = l.props, u = "prototype" in D && D.prototype.render, N = (F = D.contextType) && d[F.__c], S = F ? N ? N.props.value : F.__ : d, t.__c ? m = (h = l.__c = t.__c).__ = h.__E : (u ? l.__c = h = new D(b, S) : (l.__c = h = new Ee(b, S), h.constructor = D, h.render = XB), N && N.sub(h), h.state || (h.state = {}), h.__n = d, o = h.__d = !0, h.__h = [], h._sb = []), u && h.__s == null && (h.__s = h.state), u && D.getDerivedStateFromProps != null && (h.__s == h.state && (h.__s = on({}, h.__s)), on(h.__s, D.getDerivedStateFromProps(b, h.__s))), W = h.props, V = h.state, h.__v = l, o) u && D.getDerivedStateFromProps == null && h.componentWillMount != null && h.componentWillMount(), u && h.componentDidMount != null && h.__h.push(h.componentDidMount);
|
|
725
725
|
else {
|
|
726
726
|
if (u && D.getDerivedStateFromProps == null && b !== W && h.componentWillReceiveProps != null && h.componentWillReceiveProps(b, S), l.__v == t.__v || !h.__e && h.shouldComponentUpdate != null && h.shouldComponentUpdate(b, h.__s, S) === !1) {
|
|
727
|
-
for (l.__v != t.__v && (h.props = b, h.state = h.__s, h.__d = !1), l.__e = t.__e, l.__k = t.__k, l.__k.some(function(
|
|
728
|
-
|
|
727
|
+
for (l.__v != t.__v && (h.props = b, h.state = h.__s, h.__d = !1), l.__e = t.__e, l.__k = t.__k, l.__k.some(function(x) {
|
|
728
|
+
x && (x.__ = l);
|
|
729
729
|
}), G = 0; G < h._sb.length; G++) h.__h.push(h._sb[G]);
|
|
730
730
|
h._sb = [], h.__h.length && i.push(h);
|
|
731
731
|
break l;
|
|
@@ -741,16 +741,16 @@ function Db(e, l, t, d, n, a, i, s, U, Z) {
|
|
|
741
741
|
h.__d = !1, J && J(l), F = h.render(h.props, h.state, h.context), h.state = h.__s;
|
|
742
742
|
while (h.__d && ++X < 25);
|
|
743
743
|
h.state = h.__s, h.getChildContext != null && (d = on(on({}, d), h.getChildContext())), u && !o && h.getSnapshotBeforeUpdate != null && (Q = h.getSnapshotBeforeUpdate(W, V)), T = F, F != null && F.type === Ld && F.key == null && (T = FJ(F.props.children)), s = UJ(e, kh(T) ? T : [T], l, t, d, n, a, i, s, U, Z), h.base = l.__e, l.__u &= -161, h.__h.length && i.push(h), m && (h.__E = h.__ = null);
|
|
744
|
-
} catch (
|
|
745
|
-
if (l.__v = null, U || a != null) if (
|
|
744
|
+
} catch (x) {
|
|
745
|
+
if (l.__v = null, U || a != null) if (x.then) {
|
|
746
746
|
for (l.__u |= U ? 160 : 128; s && s.nodeType == 8 && s.nextSibling; ) s = s.nextSibling;
|
|
747
747
|
a[a.indexOf(s)] = null, l.__e = s;
|
|
748
748
|
} else {
|
|
749
749
|
for (L = a.length; L--; ) Lb(a[L]);
|
|
750
750
|
mu(l);
|
|
751
751
|
}
|
|
752
|
-
else l.__e = t.__e, l.__k = t.__k,
|
|
753
|
-
$l.__e(
|
|
752
|
+
else l.__e = t.__e, l.__k = t.__k, x.then || mu(l);
|
|
753
|
+
$l.__e(x, l, t);
|
|
754
754
|
}
|
|
755
755
|
else a == null && l.__v == t.__v ? (l.__k = t.__k, l.__e = t.__e) : s = l.__e = TB(t.__e, l, t, d, n, a, i, U, Z);
|
|
756
756
|
return (F = $l.diffed) && F(l), 128 & l.__u ? void 0 : s;
|
|
@@ -1031,14 +1031,14 @@ function IB({ data: e, rowHeight: l, renderRow: t, overscanCount: d = 10, paddin
|
|
|
1031
1031
|
}
|
|
1032
1032
|
class mJ {
|
|
1033
1033
|
constructor(l, t) {
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1034
|
+
C(this, "uppy");
|
|
1035
|
+
C(this, "opts");
|
|
1036
|
+
C(this, "id");
|
|
1037
|
+
C(this, "defaultLocale");
|
|
1038
|
+
C(this, "i18n");
|
|
1039
|
+
C(this, "i18nArray");
|
|
1040
|
+
C(this, "type");
|
|
1041
|
+
C(this, "VERSION");
|
|
1042
1042
|
this.uppy = l, this.opts = t ?? {};
|
|
1043
1043
|
}
|
|
1044
1044
|
getPluginState() {
|
|
@@ -1090,8 +1090,8 @@ class mJ {
|
|
|
1090
1090
|
var Un, uh;
|
|
1091
1091
|
class DB {
|
|
1092
1092
|
constructor(l) {
|
|
1093
|
-
|
|
1094
|
-
|
|
1093
|
+
il(this, Un);
|
|
1094
|
+
il(this, uh, []);
|
|
1095
1095
|
ol(this, Un, l);
|
|
1096
1096
|
}
|
|
1097
1097
|
on(l, t) {
|
|
@@ -1230,16 +1230,16 @@ const vB = /* @__PURE__ */ Ks(OB), KB = {
|
|
|
1230
1230
|
class Yd extends Error {
|
|
1231
1231
|
constructor(t, d) {
|
|
1232
1232
|
super(t);
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1233
|
+
C(this, "isUserFacing");
|
|
1234
|
+
C(this, "file");
|
|
1235
|
+
C(this, "isRestriction", !0);
|
|
1236
1236
|
this.isUserFacing = (d == null ? void 0 : d.isUserFacing) ?? !0, d != null && d.file && (this.file = d.file);
|
|
1237
1237
|
}
|
|
1238
1238
|
}
|
|
1239
1239
|
class fB {
|
|
1240
1240
|
constructor(l, t) {
|
|
1241
|
-
|
|
1242
|
-
|
|
1241
|
+
C(this, "getI18n");
|
|
1242
|
+
C(this, "getOpts");
|
|
1243
1243
|
this.getI18n = t, this.getOpts = () => {
|
|
1244
1244
|
var n;
|
|
1245
1245
|
const d = l();
|
|
@@ -1311,11 +1311,11 @@ var Nh;
|
|
|
1311
1311
|
const TQ = class TQ extends mJ {
|
|
1312
1312
|
constructor() {
|
|
1313
1313
|
super(...arguments);
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1314
|
+
il(this, Nh);
|
|
1315
|
+
C(this, "isTargetDOMEl");
|
|
1316
|
+
C(this, "el");
|
|
1317
|
+
C(this, "parent");
|
|
1318
|
+
C(this, "title");
|
|
1319
1319
|
}
|
|
1320
1320
|
getTargetPlugin(t) {
|
|
1321
1321
|
let d;
|
|
@@ -1380,9 +1380,9 @@ const PB = "5.0.0", AB = {
|
|
|
1380
1380
|
var Oc, XQ, uJ;
|
|
1381
1381
|
class RJ {
|
|
1382
1382
|
constructor() {
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1383
|
+
il(this, XQ);
|
|
1384
|
+
C(this, "state", {});
|
|
1385
|
+
il(this, Oc, /* @__PURE__ */ new Set());
|
|
1386
1386
|
}
|
|
1387
1387
|
getState() {
|
|
1388
1388
|
return this.state;
|
|
@@ -1401,7 +1401,7 @@ Oc = new WeakMap(), XQ = new WeakSet(), uJ = function(...l) {
|
|
|
1401
1401
|
j(this, Oc).forEach((t) => {
|
|
1402
1402
|
t(...l);
|
|
1403
1403
|
});
|
|
1404
|
-
},
|
|
1404
|
+
}, C(RJ, "VERSION", AB.version);
|
|
1405
1405
|
var Qm, Ar;
|
|
1406
1406
|
function xb() {
|
|
1407
1407
|
if (Ar) return Qm;
|
|
@@ -1582,7 +1582,7 @@ function rJ() {
|
|
|
1582
1582
|
function D() {
|
|
1583
1583
|
return V === void 0 ? W : T(l());
|
|
1584
1584
|
}
|
|
1585
|
-
function
|
|
1585
|
+
function x() {
|
|
1586
1586
|
var I = l(), A = X(I);
|
|
1587
1587
|
if (F = arguments, h = this, Q = I, A) {
|
|
1588
1588
|
if (V === void 0)
|
|
@@ -1592,7 +1592,7 @@ function rJ() {
|
|
|
1592
1592
|
}
|
|
1593
1593
|
return V === void 0 && (V = setTimeout(k, U)), W;
|
|
1594
1594
|
}
|
|
1595
|
-
return
|
|
1595
|
+
return x.cancel = L, x.flush = D, x;
|
|
1596
1596
|
}
|
|
1597
1597
|
return Xm = i, Xm;
|
|
1598
1598
|
}
|
|
@@ -1757,26 +1757,26 @@ const YQ = class YQ {
|
|
|
1757
1757
|
* Instantiate Uppy
|
|
1758
1758
|
*/
|
|
1759
1759
|
constructor(l) {
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1760
|
+
il(this, ul);
|
|
1761
|
+
il(this, Gd, /* @__PURE__ */ Object.create(null));
|
|
1762
|
+
il(this, Td);
|
|
1763
|
+
il(this, bh);
|
|
1764
|
+
il(this, Xs, h1());
|
|
1765
|
+
il(this, vc, /* @__PURE__ */ new Set());
|
|
1766
|
+
il(this, Kc, /* @__PURE__ */ new Set());
|
|
1767
|
+
il(this, ys, /* @__PURE__ */ new Set());
|
|
1768
|
+
C(this, "defaultLocale");
|
|
1769
|
+
C(this, "locale");
|
|
1770
1770
|
// The user optionally passes in options, but we set defaults for missing options.
|
|
1771
1771
|
// We consider all options present after the contructor has run.
|
|
1772
|
-
|
|
1773
|
-
|
|
1772
|
+
C(this, "opts");
|
|
1773
|
+
C(this, "store");
|
|
1774
1774
|
// Warning: do not use this from a plugin, as it will cause the plugins' translations to be missing
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1775
|
+
C(this, "i18n");
|
|
1776
|
+
C(this, "i18nArray");
|
|
1777
|
+
C(this, "scheduledAutoProceed", null);
|
|
1778
|
+
C(this, "wasOffline", !1);
|
|
1779
|
+
il(this, yQ, (l, t) => {
|
|
1780
1780
|
const d = l ? this.getFile(l.id) : void 0;
|
|
1781
1781
|
if (l == null || !d) {
|
|
1782
1782
|
this.log(`Not setting progress for a file that has been removed: ${l == null ? void 0 : l.id}`);
|
|
@@ -1811,8 +1811,8 @@ const YQ = class YQ {
|
|
|
1811
1811
|
// and click 'ADD MORE FILES', - focus won't activate in Firefox.
|
|
1812
1812
|
// - We must throttle at around >500ms to avoid performance lags.
|
|
1813
1813
|
// [Practical Check] Firefox, try to upload a big file for a prolonged period of time. Laptop will start to heat up.
|
|
1814
|
-
|
|
1815
|
-
|
|
1814
|
+
il(this, Ys, c1(() => Fl(this, ul, Su).call(this), 500, { leading: !0, trailing: !0 }));
|
|
1815
|
+
il(this, Ka, this.updateOnlineStatus.bind(this));
|
|
1816
1816
|
// We need to store request clients by a unique ID, so we can share RequestClient instances across files
|
|
1817
1817
|
// this allows us to do rate limiting and synchronous operations like refreshing provider tokens
|
|
1818
1818
|
// example: refreshing tokens: if each file has their own requestclient,
|
|
@@ -1823,7 +1823,7 @@ const YQ = class YQ {
|
|
|
1823
1823
|
// back when we had a requestclient per file, once an access token expired,
|
|
1824
1824
|
// all 6 files would go ahead and refresh the token at the same time
|
|
1825
1825
|
// (calling /refresh-token up to 6 times), which will probably fail for some providers
|
|
1826
|
-
|
|
1826
|
+
il(this, rh, /* @__PURE__ */ new Map());
|
|
1827
1827
|
this.defaultLocale = m1;
|
|
1828
1828
|
const t = {
|
|
1829
1829
|
id: "uppy",
|
|
@@ -2761,7 +2761,7 @@ Ju = function(l) {
|
|
|
2761
2761
|
failed: [],
|
|
2762
2762
|
uploadID: l
|
|
2763
2763
|
}), a;
|
|
2764
|
-
},
|
|
2764
|
+
}, C(YQ, "VERSION", V1.version);
|
|
2765
2765
|
let uu = YQ;
|
|
2766
2766
|
function Gu(e) {
|
|
2767
2767
|
"@babel/helpers - typeof";
|
|
@@ -3146,8 +3146,8 @@ function K1() {
|
|
|
3146
3146
|
function Q(u, N, S) {
|
|
3147
3147
|
if (u = U(u), u = u.replace(d, ""), !(this instanceof Q))
|
|
3148
3148
|
return new Q(u, N, S);
|
|
3149
|
-
var G, J, X, k, T, L, D = Z.slice(),
|
|
3150
|
-
for (
|
|
3149
|
+
var G, J, X, k, T, L, D = Z.slice(), x = typeof N, I = this, A = 0;
|
|
3150
|
+
for (x !== "object" && x !== "string" && (S = N, N = null), S && typeof S != "function" && (S = l.parse), N = h(N), J = W(u || "", N), G = !J.protocol && !J.slashes, I.slashes = J.slashes || G && N.slashes, I.protocol = J.protocol || N.protocol || "", u = J.rest, (J.protocol === "file:" && (J.slashesCount !== 2 || s.test(u)) || !J.slashes && (J.protocol || J.slashesCount < 2 || !o(I.protocol))) && (D[3] = [/(.*)/, "pathname"]); A < D.length; A++) {
|
|
3151
3151
|
if (k = D[A], typeof k == "function") {
|
|
3152
3152
|
u = k(u, I);
|
|
3153
3153
|
continue;
|
|
@@ -3227,12 +3227,12 @@ function Yu() {
|
|
|
3227
3227
|
try {
|
|
3228
3228
|
Z({}, "");
|
|
3229
3229
|
} catch {
|
|
3230
|
-
Z = function(z, g,
|
|
3231
|
-
return z[g] =
|
|
3230
|
+
Z = function(z, g, E) {
|
|
3231
|
+
return z[g] = E;
|
|
3232
3232
|
};
|
|
3233
3233
|
}
|
|
3234
3234
|
function F(Y, y, z, g) {
|
|
3235
|
-
var
|
|
3235
|
+
var E = y && y.prototype instanceof b ? y : b, O = Object.create(E.prototype), K = new A(g || []);
|
|
3236
3236
|
return n(O, "_invoke", { value: L(Y, z, K) }), O;
|
|
3237
3237
|
}
|
|
3238
3238
|
function h(Y, y, z) {
|
|
@@ -3265,47 +3265,47 @@ function Yu() {
|
|
|
3265
3265
|
});
|
|
3266
3266
|
}
|
|
3267
3267
|
function T(Y, y) {
|
|
3268
|
-
function z(
|
|
3269
|
-
var ll = h(Y[
|
|
3268
|
+
function z(E, O, K, w) {
|
|
3269
|
+
var ll = h(Y[E], Y, O);
|
|
3270
3270
|
if (ll.type !== "throw") {
|
|
3271
|
-
var
|
|
3271
|
+
var al = ll.arg, _ = al.value;
|
|
3272
3272
|
return _ && Cs(_) == "object" && d.call(_, "__await") ? y.resolve(_.__await).then(function(q) {
|
|
3273
|
-
z("next", q, K,
|
|
3273
|
+
z("next", q, K, w);
|
|
3274
3274
|
}, function(q) {
|
|
3275
|
-
z("throw", q, K,
|
|
3275
|
+
z("throw", q, K, w);
|
|
3276
3276
|
}) : y.resolve(_).then(function(q) {
|
|
3277
|
-
|
|
3277
|
+
al.value = q, K(al);
|
|
3278
3278
|
}, function(q) {
|
|
3279
|
-
return z("throw", q, K,
|
|
3279
|
+
return z("throw", q, K, w);
|
|
3280
3280
|
});
|
|
3281
3281
|
}
|
|
3282
|
-
|
|
3282
|
+
w(ll.arg);
|
|
3283
3283
|
}
|
|
3284
3284
|
var g;
|
|
3285
3285
|
n(this, "_invoke", { value: function(O, K) {
|
|
3286
|
-
function
|
|
3287
|
-
return new y(function(ll,
|
|
3288
|
-
z(O, K, ll,
|
|
3286
|
+
function w() {
|
|
3287
|
+
return new y(function(ll, al) {
|
|
3288
|
+
z(O, K, ll, al);
|
|
3289
3289
|
});
|
|
3290
3290
|
}
|
|
3291
|
-
return g = g ? g.then(
|
|
3291
|
+
return g = g ? g.then(w, w) : w();
|
|
3292
3292
|
} });
|
|
3293
3293
|
}
|
|
3294
3294
|
function L(Y, y, z) {
|
|
3295
3295
|
var g = o;
|
|
3296
|
-
return function(
|
|
3296
|
+
return function(E, O) {
|
|
3297
3297
|
if (g === V) throw Error("Generator is already running");
|
|
3298
3298
|
if (g === Q) {
|
|
3299
|
-
if (
|
|
3299
|
+
if (E === "throw") throw O;
|
|
3300
3300
|
return { value: e, done: !0 };
|
|
3301
3301
|
}
|
|
3302
|
-
for (z.method =
|
|
3302
|
+
for (z.method = E, z.arg = O; ; ) {
|
|
3303
3303
|
var K = z.delegate;
|
|
3304
3304
|
if (K) {
|
|
3305
|
-
var
|
|
3306
|
-
if (
|
|
3307
|
-
if (
|
|
3308
|
-
return
|
|
3305
|
+
var w = D(K, z);
|
|
3306
|
+
if (w) {
|
|
3307
|
+
if (w === m) continue;
|
|
3308
|
+
return w;
|
|
3309
3309
|
}
|
|
3310
3310
|
}
|
|
3311
3311
|
if (z.method === "next") z.sent = z._sent = z.arg;
|
|
@@ -3326,12 +3326,12 @@ function Yu() {
|
|
|
3326
3326
|
function D(Y, y) {
|
|
3327
3327
|
var z = y.method, g = Y.iterator[z];
|
|
3328
3328
|
if (g === e) return y.delegate = null, z === "throw" && Y.iterator.return && (y.method = "return", y.arg = e, D(Y, y), y.method === "throw") || z !== "return" && (y.method = "throw", y.arg = new TypeError("The iterator does not provide a '" + z + "' method")), m;
|
|
3329
|
-
var
|
|
3330
|
-
if (
|
|
3331
|
-
var O =
|
|
3329
|
+
var E = h(g, Y.iterator, y.arg);
|
|
3330
|
+
if (E.type === "throw") return y.method = "throw", y.arg = E.arg, y.delegate = null, m;
|
|
3331
|
+
var O = E.arg;
|
|
3332
3332
|
return O ? O.done ? (y[Y.resultName] = O.value, y.next = Y.nextLoc, y.method !== "return" && (y.method = "next", y.arg = e), y.delegate = null, m) : O : (y.method = "throw", y.arg = new TypeError("iterator result is not an object"), y.delegate = null, m);
|
|
3333
3333
|
}
|
|
3334
|
-
function
|
|
3334
|
+
function x(Y) {
|
|
3335
3335
|
var y = { tryLoc: Y[0] };
|
|
3336
3336
|
1 in Y && (y.catchLoc = Y[1]), 2 in Y && (y.finallyLoc = Y[2], y.afterLoc = Y[3]), this.tryEntries.push(y);
|
|
3337
3337
|
}
|
|
@@ -3340,7 +3340,7 @@ function Yu() {
|
|
|
3340
3340
|
y.type = "normal", delete y.arg, Y.completion = y;
|
|
3341
3341
|
}
|
|
3342
3342
|
function A(Y) {
|
|
3343
|
-
this.tryEntries = [{ tryLoc: "root" }], Y.forEach(
|
|
3343
|
+
this.tryEntries = [{ tryLoc: "root" }], Y.forEach(x, this), this.reset(!0);
|
|
3344
3344
|
}
|
|
3345
3345
|
function P(Y) {
|
|
3346
3346
|
if (Y || Y === "") {
|
|
@@ -3348,9 +3348,9 @@ function Yu() {
|
|
|
3348
3348
|
if (y) return y.call(Y);
|
|
3349
3349
|
if (typeof Y.next == "function") return Y;
|
|
3350
3350
|
if (!isNaN(Y.length)) {
|
|
3351
|
-
var z = -1, g = function
|
|
3352
|
-
for (; ++z < Y.length; ) if (d.call(Y, z)) return
|
|
3353
|
-
return
|
|
3351
|
+
var z = -1, g = function E() {
|
|
3352
|
+
for (; ++z < Y.length; ) if (d.call(Y, z)) return E.value = Y[z], E.done = !1, E;
|
|
3353
|
+
return E.value = e, E.done = !0, E;
|
|
3354
3354
|
};
|
|
3355
3355
|
return g.next = g;
|
|
3356
3356
|
}
|
|
@@ -3366,9 +3366,9 @@ function Yu() {
|
|
|
3366
3366
|
return { __await: Y };
|
|
3367
3367
|
}, k(T.prototype), Z(T.prototype, s, function() {
|
|
3368
3368
|
return this;
|
|
3369
|
-
}), l.AsyncIterator = T, l.async = function(Y, y, z, g,
|
|
3370
|
-
|
|
3371
|
-
var O = new T(F(Y, y, z, g),
|
|
3369
|
+
}), l.AsyncIterator = T, l.async = function(Y, y, z, g, E) {
|
|
3370
|
+
E === void 0 && (E = Promise);
|
|
3371
|
+
var O = new T(F(Y, y, z, g), E);
|
|
3372
3372
|
return l.isGeneratorFunction(y) ? O : O.next().then(function(K) {
|
|
3373
3373
|
return K.done ? K.value : O.next();
|
|
3374
3374
|
});
|
|
@@ -3379,12 +3379,12 @@ function Yu() {
|
|
|
3379
3379
|
}), l.keys = function(Y) {
|
|
3380
3380
|
var y = Object(Y), z = [];
|
|
3381
3381
|
for (var g in y) z.push(g);
|
|
3382
|
-
return z.reverse(), function
|
|
3382
|
+
return z.reverse(), function E() {
|
|
3383
3383
|
for (; z.length; ) {
|
|
3384
3384
|
var O = z.pop();
|
|
3385
|
-
if (O in y) return
|
|
3385
|
+
if (O in y) return E.value = O, E.done = !1, E;
|
|
3386
3386
|
}
|
|
3387
|
-
return
|
|
3387
|
+
return E.done = !0, E;
|
|
3388
3388
|
};
|
|
3389
3389
|
}, l.values = P, A.prototype = { constructor: A, reset: function(y) {
|
|
3390
3390
|
if (this.prev = 0, this.next = 0, this.sent = this._sent = e, this.done = !1, this.delegate = null, this.method = "next", this.arg = e, this.tryEntries.forEach(I), !y) for (var z in this) z.charAt(0) === "t" && d.call(this, z) && !isNaN(+z.slice(1)) && (this[z] = e);
|
|
@@ -3396,18 +3396,18 @@ function Yu() {
|
|
|
3396
3396
|
}, dispatchException: function(y) {
|
|
3397
3397
|
if (this.done) throw y;
|
|
3398
3398
|
var z = this;
|
|
3399
|
-
function g(
|
|
3400
|
-
return K.type = "throw", K.arg = y, z.next =
|
|
3399
|
+
function g(al, _) {
|
|
3400
|
+
return K.type = "throw", K.arg = y, z.next = al, _ && (z.method = "next", z.arg = e), !!_;
|
|
3401
3401
|
}
|
|
3402
|
-
for (var
|
|
3403
|
-
var O = this.tryEntries[
|
|
3402
|
+
for (var E = this.tryEntries.length - 1; E >= 0; --E) {
|
|
3403
|
+
var O = this.tryEntries[E], K = O.completion;
|
|
3404
3404
|
if (O.tryLoc === "root") return g("end");
|
|
3405
3405
|
if (O.tryLoc <= this.prev) {
|
|
3406
|
-
var
|
|
3407
|
-
if (
|
|
3406
|
+
var w = d.call(O, "catchLoc"), ll = d.call(O, "finallyLoc");
|
|
3407
|
+
if (w && ll) {
|
|
3408
3408
|
if (this.prev < O.catchLoc) return g(O.catchLoc, !0);
|
|
3409
3409
|
if (this.prev < O.finallyLoc) return g(O.finallyLoc);
|
|
3410
|
-
} else if (
|
|
3410
|
+
} else if (w) {
|
|
3411
3411
|
if (this.prev < O.catchLoc) return g(O.catchLoc, !0);
|
|
3412
3412
|
} else {
|
|
3413
3413
|
if (!ll) throw Error("try statement without catch or finally");
|
|
@@ -3417,9 +3417,9 @@ function Yu() {
|
|
|
3417
3417
|
}
|
|
3418
3418
|
}, abrupt: function(y, z) {
|
|
3419
3419
|
for (var g = this.tryEntries.length - 1; g >= 0; --g) {
|
|
3420
|
-
var
|
|
3421
|
-
if (
|
|
3422
|
-
var O =
|
|
3420
|
+
var E = this.tryEntries[g];
|
|
3421
|
+
if (E.tryLoc <= this.prev && d.call(E, "finallyLoc") && this.prev < E.finallyLoc) {
|
|
3422
|
+
var O = E;
|
|
3423
3423
|
break;
|
|
3424
3424
|
}
|
|
3425
3425
|
}
|
|
@@ -3438,9 +3438,9 @@ function Yu() {
|
|
|
3438
3438
|
for (var z = this.tryEntries.length - 1; z >= 0; --z) {
|
|
3439
3439
|
var g = this.tryEntries[z];
|
|
3440
3440
|
if (g.tryLoc === y) {
|
|
3441
|
-
var
|
|
3442
|
-
if (
|
|
3443
|
-
var O =
|
|
3441
|
+
var E = g.completion;
|
|
3442
|
+
if (E.type === "throw") {
|
|
3443
|
+
var O = E.arg;
|
|
3444
3444
|
I(g);
|
|
3445
3445
|
}
|
|
3446
3446
|
return O;
|
|
@@ -4406,12 +4406,12 @@ function ku() {
|
|
|
4406
4406
|
try {
|
|
4407
4407
|
Z({}, "");
|
|
4408
4408
|
} catch {
|
|
4409
|
-
Z = function(z, g,
|
|
4410
|
-
return z[g] =
|
|
4409
|
+
Z = function(z, g, E) {
|
|
4410
|
+
return z[g] = E;
|
|
4411
4411
|
};
|
|
4412
4412
|
}
|
|
4413
4413
|
function F(Y, y, z, g) {
|
|
4414
|
-
var
|
|
4414
|
+
var E = y && y.prototype instanceof b ? y : b, O = Object.create(E.prototype), K = new A(g || []);
|
|
4415
4415
|
return n(O, "_invoke", { value: L(Y, z, K) }), O;
|
|
4416
4416
|
}
|
|
4417
4417
|
function h(Y, y, z) {
|
|
@@ -4444,47 +4444,47 @@ function ku() {
|
|
|
4444
4444
|
});
|
|
4445
4445
|
}
|
|
4446
4446
|
function T(Y, y) {
|
|
4447
|
-
function z(
|
|
4448
|
-
var ll = h(Y[
|
|
4447
|
+
function z(E, O, K, w) {
|
|
4448
|
+
var ll = h(Y[E], Y, O);
|
|
4449
4449
|
if (ll.type !== "throw") {
|
|
4450
|
-
var
|
|
4450
|
+
var al = ll.arg, _ = al.value;
|
|
4451
4451
|
return _ && xs(_) == "object" && d.call(_, "__await") ? y.resolve(_.__await).then(function(q) {
|
|
4452
|
-
z("next", q, K,
|
|
4452
|
+
z("next", q, K, w);
|
|
4453
4453
|
}, function(q) {
|
|
4454
|
-
z("throw", q, K,
|
|
4454
|
+
z("throw", q, K, w);
|
|
4455
4455
|
}) : y.resolve(_).then(function(q) {
|
|
4456
|
-
|
|
4456
|
+
al.value = q, K(al);
|
|
4457
4457
|
}, function(q) {
|
|
4458
|
-
return z("throw", q, K,
|
|
4458
|
+
return z("throw", q, K, w);
|
|
4459
4459
|
});
|
|
4460
4460
|
}
|
|
4461
|
-
|
|
4461
|
+
w(ll.arg);
|
|
4462
4462
|
}
|
|
4463
4463
|
var g;
|
|
4464
4464
|
n(this, "_invoke", { value: function(O, K) {
|
|
4465
|
-
function
|
|
4466
|
-
return new y(function(ll,
|
|
4467
|
-
z(O, K, ll,
|
|
4465
|
+
function w() {
|
|
4466
|
+
return new y(function(ll, al) {
|
|
4467
|
+
z(O, K, ll, al);
|
|
4468
4468
|
});
|
|
4469
4469
|
}
|
|
4470
|
-
return g = g ? g.then(
|
|
4470
|
+
return g = g ? g.then(w, w) : w();
|
|
4471
4471
|
} });
|
|
4472
4472
|
}
|
|
4473
4473
|
function L(Y, y, z) {
|
|
4474
4474
|
var g = o;
|
|
4475
|
-
return function(
|
|
4475
|
+
return function(E, O) {
|
|
4476
4476
|
if (g === V) throw Error("Generator is already running");
|
|
4477
4477
|
if (g === Q) {
|
|
4478
|
-
if (
|
|
4478
|
+
if (E === "throw") throw O;
|
|
4479
4479
|
return { value: e, done: !0 };
|
|
4480
4480
|
}
|
|
4481
|
-
for (z.method =
|
|
4481
|
+
for (z.method = E, z.arg = O; ; ) {
|
|
4482
4482
|
var K = z.delegate;
|
|
4483
4483
|
if (K) {
|
|
4484
|
-
var
|
|
4485
|
-
if (
|
|
4486
|
-
if (
|
|
4487
|
-
return
|
|
4484
|
+
var w = D(K, z);
|
|
4485
|
+
if (w) {
|
|
4486
|
+
if (w === m) continue;
|
|
4487
|
+
return w;
|
|
4488
4488
|
}
|
|
4489
4489
|
}
|
|
4490
4490
|
if (z.method === "next") z.sent = z._sent = z.arg;
|
|
@@ -4505,12 +4505,12 @@ function ku() {
|
|
|
4505
4505
|
function D(Y, y) {
|
|
4506
4506
|
var z = y.method, g = Y.iterator[z];
|
|
4507
4507
|
if (g === e) return y.delegate = null, z === "throw" && Y.iterator.return && (y.method = "return", y.arg = e, D(Y, y), y.method === "throw") || z !== "return" && (y.method = "throw", y.arg = new TypeError("The iterator does not provide a '" + z + "' method")), m;
|
|
4508
|
-
var
|
|
4509
|
-
if (
|
|
4510
|
-
var O =
|
|
4508
|
+
var E = h(g, Y.iterator, y.arg);
|
|
4509
|
+
if (E.type === "throw") return y.method = "throw", y.arg = E.arg, y.delegate = null, m;
|
|
4510
|
+
var O = E.arg;
|
|
4511
4511
|
return O ? O.done ? (y[Y.resultName] = O.value, y.next = Y.nextLoc, y.method !== "return" && (y.method = "next", y.arg = e), y.delegate = null, m) : O : (y.method = "throw", y.arg = new TypeError("iterator result is not an object"), y.delegate = null, m);
|
|
4512
4512
|
}
|
|
4513
|
-
function
|
|
4513
|
+
function x(Y) {
|
|
4514
4514
|
var y = { tryLoc: Y[0] };
|
|
4515
4515
|
1 in Y && (y.catchLoc = Y[1]), 2 in Y && (y.finallyLoc = Y[2], y.afterLoc = Y[3]), this.tryEntries.push(y);
|
|
4516
4516
|
}
|
|
@@ -4519,7 +4519,7 @@ function ku() {
|
|
|
4519
4519
|
y.type = "normal", delete y.arg, Y.completion = y;
|
|
4520
4520
|
}
|
|
4521
4521
|
function A(Y) {
|
|
4522
|
-
this.tryEntries = [{ tryLoc: "root" }], Y.forEach(
|
|
4522
|
+
this.tryEntries = [{ tryLoc: "root" }], Y.forEach(x, this), this.reset(!0);
|
|
4523
4523
|
}
|
|
4524
4524
|
function P(Y) {
|
|
4525
4525
|
if (Y || Y === "") {
|
|
@@ -4527,9 +4527,9 @@ function ku() {
|
|
|
4527
4527
|
if (y) return y.call(Y);
|
|
4528
4528
|
if (typeof Y.next == "function") return Y;
|
|
4529
4529
|
if (!isNaN(Y.length)) {
|
|
4530
|
-
var z = -1, g = function
|
|
4531
|
-
for (; ++z < Y.length; ) if (d.call(Y, z)) return
|
|
4532
|
-
return
|
|
4530
|
+
var z = -1, g = function E() {
|
|
4531
|
+
for (; ++z < Y.length; ) if (d.call(Y, z)) return E.value = Y[z], E.done = !1, E;
|
|
4532
|
+
return E.value = e, E.done = !0, E;
|
|
4533
4533
|
};
|
|
4534
4534
|
return g.next = g;
|
|
4535
4535
|
}
|
|
@@ -4545,9 +4545,9 @@ function ku() {
|
|
|
4545
4545
|
return { __await: Y };
|
|
4546
4546
|
}, k(T.prototype), Z(T.prototype, s, function() {
|
|
4547
4547
|
return this;
|
|
4548
|
-
}), l.AsyncIterator = T, l.async = function(Y, y, z, g,
|
|
4549
|
-
|
|
4550
|
-
var O = new T(F(Y, y, z, g),
|
|
4548
|
+
}), l.AsyncIterator = T, l.async = function(Y, y, z, g, E) {
|
|
4549
|
+
E === void 0 && (E = Promise);
|
|
4550
|
+
var O = new T(F(Y, y, z, g), E);
|
|
4551
4551
|
return l.isGeneratorFunction(y) ? O : O.next().then(function(K) {
|
|
4552
4552
|
return K.done ? K.value : O.next();
|
|
4553
4553
|
});
|
|
@@ -4558,12 +4558,12 @@ function ku() {
|
|
|
4558
4558
|
}), l.keys = function(Y) {
|
|
4559
4559
|
var y = Object(Y), z = [];
|
|
4560
4560
|
for (var g in y) z.push(g);
|
|
4561
|
-
return z.reverse(), function
|
|
4561
|
+
return z.reverse(), function E() {
|
|
4562
4562
|
for (; z.length; ) {
|
|
4563
4563
|
var O = z.pop();
|
|
4564
|
-
if (O in y) return
|
|
4564
|
+
if (O in y) return E.value = O, E.done = !1, E;
|
|
4565
4565
|
}
|
|
4566
|
-
return
|
|
4566
|
+
return E.done = !0, E;
|
|
4567
4567
|
};
|
|
4568
4568
|
}, l.values = P, A.prototype = { constructor: A, reset: function(y) {
|
|
4569
4569
|
if (this.prev = 0, this.next = 0, this.sent = this._sent = e, this.done = !1, this.delegate = null, this.method = "next", this.arg = e, this.tryEntries.forEach(I), !y) for (var z in this) z.charAt(0) === "t" && d.call(this, z) && !isNaN(+z.slice(1)) && (this[z] = e);
|
|
@@ -4575,18 +4575,18 @@ function ku() {
|
|
|
4575
4575
|
}, dispatchException: function(y) {
|
|
4576
4576
|
if (this.done) throw y;
|
|
4577
4577
|
var z = this;
|
|
4578
|
-
function g(
|
|
4579
|
-
return K.type = "throw", K.arg = y, z.next =
|
|
4578
|
+
function g(al, _) {
|
|
4579
|
+
return K.type = "throw", K.arg = y, z.next = al, _ && (z.method = "next", z.arg = e), !!_;
|
|
4580
4580
|
}
|
|
4581
|
-
for (var
|
|
4582
|
-
var O = this.tryEntries[
|
|
4581
|
+
for (var E = this.tryEntries.length - 1; E >= 0; --E) {
|
|
4582
|
+
var O = this.tryEntries[E], K = O.completion;
|
|
4583
4583
|
if (O.tryLoc === "root") return g("end");
|
|
4584
4584
|
if (O.tryLoc <= this.prev) {
|
|
4585
|
-
var
|
|
4586
|
-
if (
|
|
4585
|
+
var w = d.call(O, "catchLoc"), ll = d.call(O, "finallyLoc");
|
|
4586
|
+
if (w && ll) {
|
|
4587
4587
|
if (this.prev < O.catchLoc) return g(O.catchLoc, !0);
|
|
4588
4588
|
if (this.prev < O.finallyLoc) return g(O.finallyLoc);
|
|
4589
|
-
} else if (
|
|
4589
|
+
} else if (w) {
|
|
4590
4590
|
if (this.prev < O.catchLoc) return g(O.catchLoc, !0);
|
|
4591
4591
|
} else {
|
|
4592
4592
|
if (!ll) throw Error("try statement without catch or finally");
|
|
@@ -4596,9 +4596,9 @@ function ku() {
|
|
|
4596
4596
|
}
|
|
4597
4597
|
}, abrupt: function(y, z) {
|
|
4598
4598
|
for (var g = this.tryEntries.length - 1; g >= 0; --g) {
|
|
4599
|
-
var
|
|
4600
|
-
if (
|
|
4601
|
-
var O =
|
|
4599
|
+
var E = this.tryEntries[g];
|
|
4600
|
+
if (E.tryLoc <= this.prev && d.call(E, "finallyLoc") && this.prev < E.finallyLoc) {
|
|
4601
|
+
var O = E;
|
|
4602
4602
|
break;
|
|
4603
4603
|
}
|
|
4604
4604
|
}
|
|
@@ -4617,9 +4617,9 @@ function ku() {
|
|
|
4617
4617
|
for (var z = this.tryEntries.length - 1; z >= 0; --z) {
|
|
4618
4618
|
var g = this.tryEntries[z];
|
|
4619
4619
|
if (g.tryLoc === y) {
|
|
4620
|
-
var
|
|
4621
|
-
if (
|
|
4622
|
-
var O =
|
|
4620
|
+
var E = g.completion;
|
|
4621
|
+
if (E.type === "throw") {
|
|
4622
|
+
var O = E.arg;
|
|
4623
4623
|
I(g);
|
|
4624
4624
|
}
|
|
4625
4625
|
return O;
|
|
@@ -5137,12 +5137,12 @@ class AJ extends mJ {
|
|
|
5137
5137
|
constructor(t, d) {
|
|
5138
5138
|
var n;
|
|
5139
5139
|
super(t, { ...sk, ...d });
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5140
|
+
il(this, Zi);
|
|
5141
|
+
il(this, ph);
|
|
5142
|
+
C(this, "requests");
|
|
5143
|
+
C(this, "uploaders");
|
|
5144
|
+
C(this, "uploaderEvents");
|
|
5145
|
+
il(this, Mh, async (t) => {
|
|
5146
5146
|
if (t.length === 0) {
|
|
5147
5147
|
this.uppy.log("[Tus] No files to upload");
|
|
5148
5148
|
return;
|
|
@@ -5339,7 +5339,7 @@ ph = new WeakMap(), Zi = new WeakSet(), _J = async function(t) {
|
|
|
5339
5339
|
}
|
|
5340
5340
|
return Fl(this, Zi, _J).call(this, a);
|
|
5341
5341
|
}));
|
|
5342
|
-
}, Mh = new WeakMap(),
|
|
5342
|
+
}, Mh = new WeakMap(), C(AJ, "VERSION", dk.version);
|
|
5343
5343
|
var QZ = { exports: {} }, zp;
|
|
5344
5344
|
function Uk() {
|
|
5345
5345
|
if (zp) return QZ.exports;
|
|
@@ -5391,8 +5391,8 @@ function vh(e, l) {
|
|
|
5391
5391
|
class uk extends Ee {
|
|
5392
5392
|
constructor() {
|
|
5393
5393
|
super(...arguments);
|
|
5394
|
-
|
|
5395
|
-
|
|
5394
|
+
C(this, "videoElement");
|
|
5395
|
+
C(this, "refs");
|
|
5396
5396
|
}
|
|
5397
5397
|
componentDidMount() {
|
|
5398
5398
|
const { onFocus: t } = this.props;
|
|
@@ -5477,18 +5477,18 @@ class tG extends si {
|
|
|
5477
5477
|
super(t, { ...Jk, ...d });
|
|
5478
5478
|
// enableMirror is used to toggle mirroring, for instance when discarding the video,
|
|
5479
5479
|
// while `opts.mirror` is used to remember the initial user setting
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
|
|
5491
|
-
|
|
5480
|
+
il(this, fa);
|
|
5481
|
+
C(this, "mediaDevices");
|
|
5482
|
+
C(this, "supportsUserMedia");
|
|
5483
|
+
C(this, "protocol");
|
|
5484
|
+
C(this, "capturedMediaFile");
|
|
5485
|
+
C(this, "icon");
|
|
5486
|
+
C(this, "webcamActive");
|
|
5487
|
+
C(this, "stream", null);
|
|
5488
|
+
C(this, "recorder", null);
|
|
5489
|
+
C(this, "recordingChunks", null);
|
|
5490
|
+
C(this, "recordingLengthTimer");
|
|
5491
|
+
C(this, "captureInProgress", !1);
|
|
5492
5492
|
this.mediaDevices = Sk(), this.supportsUserMedia = !!this.mediaDevices, this.protocol = location.protocol.match(/https/i) ? "https" : "http", this.id = this.opts.id || "Webcam", this.type = "acquirer", this.capturedMediaFile = null, this.icon = () => M("svg", { "aria-hidden": "true", focusable: "false", width: "32", height: "32", viewBox: "0 0 32 32", children: M("path", { d: "M23.5 9.5c1.417 0 2.5 1.083 2.5 2.5v9.167c0 1.416-1.083 2.5-2.5 2.5h-15c-1.417 0-2.5-1.084-2.5-2.5V12c0-1.417 1.083-2.5 2.5-2.5h2.917l1.416-2.167C13 7.167 13.25 7 13.5 7h5c.25 0 .5.167.667.333L20.583 9.5H23.5zM16 11.417a4.706 4.706 0 00-4.75 4.75 4.704 4.704 0 004.75 4.75 4.703 4.703 0 004.75-4.75c0-2.663-2.09-4.75-4.75-4.75zm0 7.825c-1.744 0-3.076-1.332-3.076-3.074 0-1.745 1.333-3.077 3.076-3.077 1.744 0 3.074 1.333 3.074 3.076s-1.33 3.075-3.074 3.075z", fill: "#02B383", fillRule: "nonzero" }) }), this.defaultLocale = Nk, this.i18nInit(), this.title = this.i18n("pluginNameCamera"), ol(this, fa, this.opts.mirror), this.install = this.install.bind(this), this.setPluginState = this.setPluginState.bind(this), this.render = this.render.bind(this), this.start = this.start.bind(this), this.stop = this.stop.bind(this), this.takeSnapshot = this.takeSnapshot.bind(this), this.startRecording = this.startRecording.bind(this), this.stopRecording = this.stopRecording.bind(this), this.discardRecordedMedia = this.discardRecordedMedia.bind(this), this.submit = this.submit.bind(this), this.oneTwoThreeSmile = this.oneTwoThreeSmile.bind(this), this.focus = this.focus.bind(this), this.changeVideoSource = this.changeVideoSource.bind(this), this.webcamActive = !1, this.opts.countdown && (this.opts.onBeforeSnapshot = this.oneTwoThreeSmile), this.setPluginState({
|
|
5493
5493
|
hasCamera: !1,
|
|
5494
5494
|
cameraReady: !1,
|
|
@@ -5748,7 +5748,7 @@ class tG extends si {
|
|
|
5748
5748
|
this.stop();
|
|
5749
5749
|
}
|
|
5750
5750
|
}
|
|
5751
|
-
fa = new WeakMap(),
|
|
5751
|
+
fa = new WeakMap(), C(tG, "VERSION", Fk.version);
|
|
5752
5752
|
const Gk = "5.1.0", Tk = {
|
|
5753
5753
|
version: Gk
|
|
5754
5754
|
}, Xk = {
|
|
@@ -5780,19 +5780,19 @@ function kk(e) {
|
|
|
5780
5780
|
class zk extends Ee {
|
|
5781
5781
|
constructor(t) {
|
|
5782
5782
|
super(t);
|
|
5783
|
-
|
|
5783
|
+
C(this, "wrapperStyle", {
|
|
5784
5784
|
width: "100%",
|
|
5785
5785
|
height: "100%",
|
|
5786
5786
|
display: "flex"
|
|
5787
5787
|
});
|
|
5788
|
-
|
|
5788
|
+
C(this, "overlayStyle", {
|
|
5789
5789
|
position: "absolute",
|
|
5790
5790
|
width: "100%",
|
|
5791
5791
|
height: "100%",
|
|
5792
5792
|
background: "black",
|
|
5793
5793
|
opacity: 0.7
|
|
5794
5794
|
});
|
|
5795
|
-
|
|
5795
|
+
C(this, "infoContainerStyle", {
|
|
5796
5796
|
marginLeft: "auto",
|
|
5797
5797
|
marginRight: "auto",
|
|
5798
5798
|
marginTop: "auto",
|
|
@@ -5800,13 +5800,13 @@ class zk extends Ee {
|
|
|
5800
5800
|
zIndex: 1,
|
|
5801
5801
|
color: "white"
|
|
5802
5802
|
});
|
|
5803
|
-
|
|
5803
|
+
C(this, "infotextStyle", {
|
|
5804
5804
|
marginLeft: "auto",
|
|
5805
5805
|
marginRight: "auto",
|
|
5806
5806
|
marginBottom: "1rem",
|
|
5807
5807
|
fontSize: "1.5rem"
|
|
5808
5808
|
});
|
|
5809
|
-
|
|
5809
|
+
C(this, "timeStyle", {
|
|
5810
5810
|
display: "block",
|
|
5811
5811
|
fontWeight: "bold",
|
|
5812
5812
|
marginLeft: "auto",
|
|
@@ -5814,8 +5814,8 @@ class zk extends Ee {
|
|
|
5814
5814
|
fontSize: "3rem",
|
|
5815
5815
|
fontFamily: "Courier New"
|
|
5816
5816
|
});
|
|
5817
|
-
|
|
5818
|
-
|
|
5817
|
+
C(this, "timerRunning", !1);
|
|
5818
|
+
C(this, "timer");
|
|
5819
5819
|
this.state = { elapsedTime: 0 };
|
|
5820
5820
|
}
|
|
5821
5821
|
startTimer() {
|
|
@@ -5845,7 +5845,7 @@ function Ik({ recording: e, recordedVideo: l, onSubmit: t, capturedScreenshotUrl
|
|
|
5845
5845
|
class Dk extends Ee {
|
|
5846
5846
|
constructor() {
|
|
5847
5847
|
super(...arguments);
|
|
5848
|
-
|
|
5848
|
+
C(this, "videoElement", null);
|
|
5849
5849
|
}
|
|
5850
5850
|
componentWillUnmount() {
|
|
5851
5851
|
const { onStop: t } = this.props;
|
|
@@ -5895,18 +5895,18 @@ const xk = ["image/png", "image/jpeg", "image/webp"], gk = {
|
|
|
5895
5895
|
class eG extends si {
|
|
5896
5896
|
constructor(t, d) {
|
|
5897
5897
|
super(t, { ...gk, ...d });
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5898
|
+
C(this, "mediaDevices");
|
|
5899
|
+
C(this, "protocol");
|
|
5900
|
+
C(this, "icon");
|
|
5901
|
+
C(this, "streamInterrupted");
|
|
5902
|
+
C(this, "captureActive");
|
|
5903
|
+
C(this, "capturedMediaFile");
|
|
5904
|
+
C(this, "videoStream", null);
|
|
5905
|
+
C(this, "audioStream", null);
|
|
5906
|
+
C(this, "userDenied", !1);
|
|
5907
|
+
C(this, "recorder", null);
|
|
5908
|
+
C(this, "outputStream", null);
|
|
5909
|
+
C(this, "recordingChunks", null);
|
|
5910
5910
|
this.mediaDevices = Ck(), this.protocol = location.protocol === "https:" ? "https" : "http", this.id = this.opts.id || "ScreenCapture", this.type = "acquirer", this.icon = wk, this.defaultLocale = Xk, this.i18nInit(), this.title = this.i18n("pluginNameScreenCapture"), this.install = this.install.bind(this), this.setPluginState = this.setPluginState.bind(this), this.render = this.render.bind(this), this.start = this.start.bind(this), this.stop = this.stop.bind(this), this.startRecording = this.startRecording.bind(this), this.stopRecording = this.stopRecording.bind(this), this.submit = this.submit.bind(this), this.streamInterrupted = this.streamInactivated.bind(this), this.captureScreenshot = this.captureScreenshot.bind(this), this.discardRecordedMedia = this.discardRecordedMedia.bind(this), this.captureActive = !1, this.capturedMediaFile = null, this.setPluginState({
|
|
5911
5911
|
streamActive: !1,
|
|
5912
5912
|
audioStreamActive: !1,
|
|
@@ -6114,7 +6114,7 @@ class eG extends si {
|
|
|
6114
6114
|
return !t.streamActive && !this.captureActive && !this.userDenied && this.start(), M(Dk, { ...t, onStartRecording: this.startRecording, onStopRecording: this.stopRecording, enableScreenshots: this.opts.enableScreenshots, onScreenshot: this.captureScreenshot, onStop: this.stop, onSubmit: this.submit, i18n: this.i18n, stream: this.videoStream, onDiscard: this.discardRecordedMedia });
|
|
6115
6115
|
}
|
|
6116
6116
|
}
|
|
6117
|
-
|
|
6117
|
+
C(eG, "VERSION", Tk.version);
|
|
6118
6118
|
const jk = "3.1.0", Ok = {
|
|
6119
6119
|
version: jk
|
|
6120
6120
|
}, vk = {
|
|
@@ -6161,18 +6161,18 @@ function mZ(e) {
|
|
|
6161
6161
|
var BQ;
|
|
6162
6162
|
class Hk {
|
|
6163
6163
|
constructor(l, t = {}) {
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6164
|
+
C(this, "canvas");
|
|
6165
|
+
C(this, "canvasContext");
|
|
6166
|
+
C(this, "width");
|
|
6167
|
+
C(this, "height");
|
|
6168
|
+
C(this, "analyser");
|
|
6169
|
+
C(this, "bufferLength");
|
|
6170
|
+
C(this, "dataArray");
|
|
6171
|
+
C(this, "onDrawFrame");
|
|
6172
|
+
C(this, "streamSource");
|
|
6173
|
+
C(this, "audioContext");
|
|
6174
|
+
C(this, "source");
|
|
6175
|
+
il(this, BQ, () => this.draw());
|
|
6176
6176
|
const d = t.canvas || {}, n = t.canvasContext || {};
|
|
6177
6177
|
this.analyser = null, this.bufferLength = 0, this.canvas = l, this.width = mZ(d.width) || this.canvas.width, this.height = mZ(d.height) || this.canvas.height, this.canvas.width = this.width, this.canvas.height = this.height, this.canvasContext = this.canvas.getContext("2d"), this.canvasContext.fillStyle = mZ(n.fillStyle) || "rgb(255, 255, 255)", this.canvasContext.strokeStyle = mZ(n.strokeStyle) || "rgb(0, 0, 0)", this.canvasContext.lineWidth = mZ(n.lineWidth) || 1, this.onDrawFrame = dG(t.onDrawFrame) ? t.onDrawFrame : () => {
|
|
6178
6178
|
};
|
|
@@ -6244,17 +6244,17 @@ var fc, Xd, Hc, Be, ke, Bs, yd, Sh, cZ, aG, Pc, kQ, Jh, zQ, LQ, ks, iG, IQ, Ac;
|
|
|
6244
6244
|
class nG extends si {
|
|
6245
6245
|
constructor(t, d) {
|
|
6246
6246
|
super(t, d);
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6247
|
+
il(this, cZ);
|
|
6248
|
+
il(this, fc);
|
|
6249
|
+
C(this, "icon");
|
|
6250
|
+
il(this, Xd, null);
|
|
6251
|
+
il(this, Hc, !1);
|
|
6252
|
+
il(this, Be, null);
|
|
6253
|
+
il(this, ke, null);
|
|
6254
|
+
il(this, Bs, null);
|
|
6255
|
+
il(this, yd);
|
|
6256
|
+
il(this, Sh);
|
|
6257
|
+
il(this, Pc, (t) => {
|
|
6258
6258
|
if (!j(this, Sh))
|
|
6259
6259
|
return Promise.reject(new Error("Microphone access not supported"));
|
|
6260
6260
|
ol(this, Hc, !0), Fl(this, cZ, aG).call(this).then((d) => (this.setPluginState({
|
|
@@ -6274,7 +6274,7 @@ class nG extends si {
|
|
|
6274
6274
|
}), this.uppy.info(n.message, "error");
|
|
6275
6275
|
})));
|
|
6276
6276
|
});
|
|
6277
|
-
|
|
6277
|
+
il(this, kQ, () => {
|
|
6278
6278
|
ol(this, ke, new MediaRecorder(j(this, Xd))), ol(this, Be, []);
|
|
6279
6279
|
let t = !1;
|
|
6280
6280
|
j(this, ke).addEventListener("dataavailable", (d) => {
|
|
@@ -6293,7 +6293,7 @@ class nG extends si {
|
|
|
6293
6293
|
isRecording: !0
|
|
6294
6294
|
});
|
|
6295
6295
|
});
|
|
6296
|
-
|
|
6296
|
+
il(this, Jh, () => new Promise((d) => {
|
|
6297
6297
|
j(this, ke).addEventListener("stop", () => {
|
|
6298
6298
|
d();
|
|
6299
6299
|
}), j(this, ke).stop(), clearInterval(j(this, fc)), this.setPluginState({ recordingLengthSeconds: 0 });
|
|
@@ -6312,17 +6312,17 @@ class nG extends si {
|
|
|
6312
6312
|
}, (d) => {
|
|
6313
6313
|
throw ol(this, Be, null), ol(this, ke, null), d;
|
|
6314
6314
|
}));
|
|
6315
|
-
|
|
6315
|
+
il(this, zQ, () => {
|
|
6316
6316
|
this.setPluginState({ recordedAudio: null }), ol(this, Bs, null);
|
|
6317
6317
|
});
|
|
6318
|
-
|
|
6318
|
+
il(this, LQ, () => {
|
|
6319
6319
|
try {
|
|
6320
6320
|
j(this, Bs) && this.uppy.addFile(j(this, Bs));
|
|
6321
6321
|
} catch (t) {
|
|
6322
6322
|
t.isRestriction || this.uppy.log(t, "warning");
|
|
6323
6323
|
}
|
|
6324
6324
|
});
|
|
6325
|
-
|
|
6325
|
+
il(this, ks, async () => {
|
|
6326
6326
|
j(this, Xd) && j(this, Xd).getAudioTracks().forEach((d) => d.stop()), j(this, ke) && await new Promise((t) => {
|
|
6327
6327
|
j(this, ke).addEventListener("stop", t, { once: !0 }), j(this, ke).stop(), clearInterval(j(this, fc));
|
|
6328
6328
|
}), ol(this, Be, null), ol(this, ke, null), ol(this, Hc, !1), ol(this, Xd, null), this.setPluginState({
|
|
@@ -6331,10 +6331,10 @@ class nG extends si {
|
|
|
6331
6331
|
recordingLengthSeconds: 0
|
|
6332
6332
|
});
|
|
6333
6333
|
});
|
|
6334
|
-
|
|
6334
|
+
il(this, IQ, (t) => {
|
|
6335
6335
|
j(this, ks).call(this), j(this, Pc).call(this, { deviceId: t });
|
|
6336
6336
|
});
|
|
6337
|
-
|
|
6337
|
+
il(this, Ac, () => {
|
|
6338
6338
|
j(this, yd).enumerateDevices().then((t) => {
|
|
6339
6339
|
this.setPluginState({
|
|
6340
6340
|
audioSources: t.filter((d) => d.kind === "audioinput")
|
|
@@ -6391,7 +6391,7 @@ fc = new WeakMap(), Xd = new WeakMap(), Hc = new WeakMap(), Be = new WeakMap(),
|
|
|
6391
6391
|
type: t
|
|
6392
6392
|
};
|
|
6393
6393
|
return Promise.resolve(i);
|
|
6394
|
-
}, IQ = new WeakMap(), Ac = new WeakMap(),
|
|
6394
|
+
}, IQ = new WeakMap(), Ac = new WeakMap(), C(nG, "VERSION", Ok.version);
|
|
6395
6395
|
const ez = {
|
|
6396
6396
|
pluralize() {
|
|
6397
6397
|
return 0;
|
|
@@ -7512,36 +7512,36 @@ const Bz = {
|
|
|
7512
7512
|
class VG extends si {
|
|
7513
7513
|
constructor(t, d) {
|
|
7514
7514
|
super(t, { ...Bz, ...d });
|
|
7515
|
-
|
|
7516
|
-
|
|
7517
|
-
|
|
7518
|
-
|
|
7519
|
-
|
|
7515
|
+
C(this, "queue");
|
|
7516
|
+
C(this, "queueProcessing");
|
|
7517
|
+
C(this, "defaultThumbnailDimension");
|
|
7518
|
+
C(this, "thumbnailType");
|
|
7519
|
+
C(this, "onFileAdded", (t) => {
|
|
7520
7520
|
!t.preview && t.data && Yr(t.type) && !t.isRemote && this.addToQueue(t.id);
|
|
7521
7521
|
});
|
|
7522
7522
|
/**
|
|
7523
7523
|
* Cancel a lazy request for a thumbnail if the thumbnail has not yet been generated.
|
|
7524
7524
|
*/
|
|
7525
|
-
|
|
7525
|
+
C(this, "onCancelRequest", (t) => {
|
|
7526
7526
|
const d = this.queue.indexOf(t.id);
|
|
7527
7527
|
d !== -1 && this.queue.splice(d, 1);
|
|
7528
7528
|
});
|
|
7529
7529
|
/**
|
|
7530
7530
|
* Clean up the thumbnail for a file. Cancel lazy requests and free the thumbnail URL.
|
|
7531
7531
|
*/
|
|
7532
|
-
|
|
7532
|
+
C(this, "onFileRemoved", (t) => {
|
|
7533
7533
|
const d = this.queue.indexOf(t.id);
|
|
7534
7534
|
d !== -1 && this.queue.splice(d, 1), t.preview && yr(t.preview) && URL.revokeObjectURL(t.preview);
|
|
7535
7535
|
});
|
|
7536
|
-
|
|
7536
|
+
C(this, "onRestored", () => {
|
|
7537
7537
|
this.uppy.getFiles().filter((d) => d.isRestored).forEach((d) => {
|
|
7538
7538
|
(!d.preview || yr(d.preview)) && this.addToQueue(d.id);
|
|
7539
7539
|
});
|
|
7540
7540
|
});
|
|
7541
|
-
|
|
7541
|
+
C(this, "onAllFilesRemoved", () => {
|
|
7542
7542
|
this.queue = [];
|
|
7543
7543
|
});
|
|
7544
|
-
|
|
7544
|
+
C(this, "waitUntilAllProcessed", (t) => {
|
|
7545
7545
|
t.forEach((n) => {
|
|
7546
7546
|
const a = this.uppy.getFile(n);
|
|
7547
7547
|
this.uppy.emit("preprocess-progress", a, {
|
|
@@ -7654,37 +7654,37 @@ class VG extends si {
|
|
|
7654
7654
|
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);
|
|
7655
7655
|
}
|
|
7656
7656
|
}
|
|
7657
|
-
|
|
7657
|
+
C(VG, "VERSION", Gz.version);
|
|
7658
7658
|
const kz = "5.1.0", zz = {
|
|
7659
7659
|
version: kz
|
|
7660
7660
|
};
|
|
7661
7661
|
class QG extends Ee {
|
|
7662
7662
|
constructor() {
|
|
7663
7663
|
super(...arguments);
|
|
7664
|
-
|
|
7665
|
-
|
|
7666
|
-
|
|
7667
|
-
|
|
7668
|
-
|
|
7664
|
+
C(this, "fileInput", null);
|
|
7665
|
+
C(this, "folderInput", null);
|
|
7666
|
+
C(this, "mobilePhotoFileInput", null);
|
|
7667
|
+
C(this, "mobileVideoFileInput", null);
|
|
7668
|
+
C(this, "triggerFileInputClick", () => {
|
|
7669
7669
|
var t;
|
|
7670
7670
|
(t = this.fileInput) == null || t.click();
|
|
7671
7671
|
});
|
|
7672
|
-
|
|
7672
|
+
C(this, "triggerFolderInputClick", () => {
|
|
7673
7673
|
var t;
|
|
7674
7674
|
(t = this.folderInput) == null || t.click();
|
|
7675
7675
|
});
|
|
7676
|
-
|
|
7676
|
+
C(this, "triggerVideoCameraInputClick", () => {
|
|
7677
7677
|
var t;
|
|
7678
7678
|
(t = this.mobileVideoFileInput) == null || t.click();
|
|
7679
7679
|
});
|
|
7680
|
-
|
|
7680
|
+
C(this, "triggerPhotoCameraInputClick", () => {
|
|
7681
7681
|
var t;
|
|
7682
7682
|
(t = this.mobilePhotoFileInput) == null || t.click();
|
|
7683
7683
|
});
|
|
7684
|
-
|
|
7684
|
+
C(this, "onFileInputChange", (t) => {
|
|
7685
7685
|
this.props.handleInputChange(t), t.currentTarget.value = "";
|
|
7686
7686
|
});
|
|
7687
|
-
|
|
7687
|
+
C(this, "renderHiddenInput", (t, d) => {
|
|
7688
7688
|
var n;
|
|
7689
7689
|
return M("input", {
|
|
7690
7690
|
className: "uppy-Dashboard-input",
|
|
@@ -7701,18 +7701,18 @@ class QG extends Ee {
|
|
|
7701
7701
|
ref: d
|
|
7702
7702
|
});
|
|
7703
7703
|
});
|
|
7704
|
-
|
|
7704
|
+
C(this, "renderHiddenCameraInput", (t, d, n) => {
|
|
7705
7705
|
const i = { photo: "image/*", video: "video/*" }[t];
|
|
7706
7706
|
return M("input", { className: "uppy-Dashboard-input", hidden: !0, "aria-hidden": "true", tabIndex: -1, type: "file", name: `camera-${t}`, onChange: this.onFileInputChange, capture: d === "" ? "environment" : d, accept: i, ref: n });
|
|
7707
7707
|
});
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
|
|
7711
|
-
|
|
7708
|
+
C(this, "renderMyDeviceAcquirer", () => M("div", { className: "uppy-DashboardTab", role: "presentation", "data-uppy-acquirer-id": "MyDevice", children: M("button", { type: "button", className: "uppy-u-reset uppy-c-btn uppy-DashboardTab-btn", role: "tab", tabIndex: 0, "data-uppy-super-focusable": !0, onClick: this.triggerFileInputClick, children: [M("div", { className: "uppy-DashboardTab-inner", children: M("svg", { className: "uppy-DashboardTab-iconMyDevice", "aria-hidden": "true", focusable: "false", width: "32", height: "32", viewBox: "0 0 32 32", children: M("path", { d: "M8.45 22.087l-1.305-6.674h17.678l-1.572 6.674H8.45zm4.975-12.412l1.083 1.765a.823.823 0 00.715.386h7.951V13.5H8.587V9.675h4.838zM26.043 13.5h-1.195v-2.598c0-.463-.336-.75-.798-.75h-8.356l-1.082-1.766A.823.823 0 0013.897 8H7.728c-.462 0-.815.256-.815.718V13.5h-.956a.97.97 0 00-.746.37.972.972 0 00-.19.81l1.724 8.565c.095.44.484.755.933.755H24c.44 0 .824-.3.929-.727l2.043-8.568a.972.972 0 00-.176-.825.967.967 0 00-.753-.38z", fill: "currentcolor", "fill-rule": "evenodd" }) }) }), M("div", { className: "uppy-DashboardTab-name", children: this.props.i18n("myDevice") })] }) }));
|
|
7709
|
+
C(this, "renderPhotoCamera", () => M("div", { className: "uppy-DashboardTab", role: "presentation", "data-uppy-acquirer-id": "MobilePhotoCamera", children: M("button", { type: "button", className: "uppy-u-reset uppy-c-btn uppy-DashboardTab-btn", role: "tab", tabIndex: 0, "data-uppy-super-focusable": !0, onClick: this.triggerPhotoCameraInputClick, children: [M("div", { className: "uppy-DashboardTab-inner", children: M("svg", { "aria-hidden": "true", focusable: "false", width: "32", height: "32", viewBox: "0 0 32 32", children: M("path", { d: "M23.5 9.5c1.417 0 2.5 1.083 2.5 2.5v9.167c0 1.416-1.083 2.5-2.5 2.5h-15c-1.417 0-2.5-1.084-2.5-2.5V12c0-1.417 1.083-2.5 2.5-2.5h2.917l1.416-2.167C13 7.167 13.25 7 13.5 7h5c.25 0 .5.167.667.333L20.583 9.5H23.5zM16 11.417a4.706 4.706 0 00-4.75 4.75 4.704 4.704 0 004.75 4.75 4.703 4.703 0 004.75-4.75c0-2.663-2.09-4.75-4.75-4.75zm0 7.825c-1.744 0-3.076-1.332-3.076-3.074 0-1.745 1.333-3.077 3.076-3.077 1.744 0 3.074 1.333 3.074 3.076s-1.33 3.075-3.074 3.075z", fill: "#02B383", "fill-rule": "nonzero" }) }) }), M("div", { className: "uppy-DashboardTab-name", children: this.props.i18n("takePictureBtn") })] }) }));
|
|
7710
|
+
C(this, "renderVideoCamera", () => M("div", { className: "uppy-DashboardTab", role: "presentation", "data-uppy-acquirer-id": "MobileVideoCamera", children: M("button", { type: "button", className: "uppy-u-reset uppy-c-btn uppy-DashboardTab-btn", role: "tab", tabIndex: 0, "data-uppy-super-focusable": !0, onClick: this.triggerVideoCameraInputClick, children: [M("div", { className: "uppy-DashboardTab-inner", children: M("svg", { "aria-hidden": "true", width: "32", height: "32", viewBox: "0 0 32 32", children: M("path", { fill: "#FF675E", fillRule: "nonzero", d: "m21.254 14.277 2.941-2.588c.797-.313 1.243.818 1.09 1.554-.01 2.094.02 4.189-.017 6.282-.126.915-1.145 1.08-1.58.34l-2.434-2.142c-.192.287-.504 1.305-.738.468-.104-1.293-.028-2.596-.05-3.894.047-.312.381.823.426 1.069.063-.384.206-.744.362-1.09zm-12.939-3.73c3.858.013 7.717-.025 11.574.02.912.129 1.492 1.237 1.351 2.217-.019 2.412.04 4.83-.03 7.239-.17 1.025-1.166 1.59-2.029 1.429-3.705-.012-7.41.025-11.114-.019-.913-.129-1.492-1.237-1.352-2.217.018-2.404-.036-4.813.029-7.214.136-.82.83-1.473 1.571-1.454z " }) }) }), M("div", { className: "uppy-DashboardTab-name", children: this.props.i18n("recordVideoBtn") })] }) }));
|
|
7711
|
+
C(this, "renderBrowseButton", (t, d) => {
|
|
7712
7712
|
const n = this.props.acquirers.length;
|
|
7713
7713
|
return M("button", { type: "button", className: "uppy-u-reset uppy-c-btn uppy-Dashboard-browse", onClick: d, "data-uppy-super-focusable": n === 0, children: t });
|
|
7714
7714
|
});
|
|
7715
|
-
|
|
7715
|
+
C(this, "renderDropPasteBrowseTagline", (t) => {
|
|
7716
7716
|
const d = this.renderBrowseButton(this.props.i18n("browseFiles"), this.triggerFileInputClick), n = this.renderBrowseButton(this.props.i18n("browseFolders"), this.triggerFolderInputClick), a = this.props.fileManagerSelectionType, i = a.charAt(0).toUpperCase() + a.slice(1);
|
|
7717
7717
|
return M("div", { class: "uppy-Dashboard-AddFiles-title", children: this.props.disableLocalFiles ? this.props.i18n("importFiles") : t > 0 ? this.props.i18nArray(`dropPasteImport${i}`, {
|
|
7718
7718
|
browseFiles: d,
|
|
@@ -7724,15 +7724,15 @@ class QG extends Ee {
|
|
|
7724
7724
|
browse: d
|
|
7725
7725
|
}) });
|
|
7726
7726
|
});
|
|
7727
|
-
|
|
7727
|
+
C(this, "renderAcquirer", (t) => {
|
|
7728
7728
|
var d;
|
|
7729
7729
|
return M("div", { className: "uppy-DashboardTab", role: "presentation", "data-uppy-acquirer-id": t.id, children: M("button", { type: "button", className: "uppy-u-reset uppy-c-btn uppy-DashboardTab-btn", role: "tab", tabIndex: 0, "data-cy": t.id, "aria-controls": `uppy-DashboardContent-panel--${t.id}`, "aria-selected": ((d = this.props.activePickerPanel) == null ? void 0 : d.id) === t.id, "data-uppy-super-focusable": !0, onClick: () => this.props.showPanel(t.id), children: [M("div", { className: "uppy-DashboardTab-inner", children: t.icon() }), M("div", { className: "uppy-DashboardTab-name", children: t.name })] }) });
|
|
7730
7730
|
});
|
|
7731
|
-
|
|
7731
|
+
C(this, "renderAcquirers", (t) => {
|
|
7732
7732
|
const d = [...t], n = d.splice(t.length - 2, t.length);
|
|
7733
7733
|
return M(Ld, { children: [d.map((a) => this.renderAcquirer(a)), M("span", { role: "presentation", style: { "white-space": "nowrap" }, children: n.map((a) => this.renderAcquirer(a)) })] });
|
|
7734
7734
|
});
|
|
7735
|
-
|
|
7735
|
+
C(this, "renderSourcesList", (t, d) => {
|
|
7736
7736
|
const { showNativePhotoCameraButton: n, showNativeVideoCameraButton: a } = this.props;
|
|
7737
7737
|
let i = [];
|
|
7738
7738
|
const s = "myDevice";
|
|
@@ -8095,7 +8095,7 @@ function ZL({ id: e, i18n: l, uppy: t, files: d, resumableUploads: n, hideRetryB
|
|
|
8095
8095
|
// 190px height + 2 * 5px margin
|
|
8096
8096
|
200
|
|
8097
8097
|
), k = Cb(() => {
|
|
8098
|
-
const L = (
|
|
8098
|
+
const L = (x, I) => Number(d[I].isGhost) - Number(d[x].isGhost), D = Object.keys(d);
|
|
8099
8099
|
return Q && D.sort(L), cL(D, b);
|
|
8100
8100
|
}, [d, b, Q]), T = (L) => M("div", {
|
|
8101
8101
|
class: "uppy-Dashboard-filesInner",
|
|
@@ -8139,7 +8139,7 @@ const Hp = 300;
|
|
|
8139
8139
|
class FL extends Ee {
|
|
8140
8140
|
constructor() {
|
|
8141
8141
|
super(...arguments);
|
|
8142
|
-
|
|
8142
|
+
C(this, "ref", SB());
|
|
8143
8143
|
}
|
|
8144
8144
|
componentWillEnter(t) {
|
|
8145
8145
|
this.ref.current.style.opacity = "1", this.ref.current.style.transform = "none", setTimeout(t, Hp);
|
|
@@ -8500,7 +8500,7 @@ function gm(e) {
|
|
|
8500
8500
|
};
|
|
8501
8501
|
}
|
|
8502
8502
|
const { STATE_ERROR: qp, STATE_WAITING: kL, STATE_PREPROCESSING: jm, STATE_UPLOADING: qh, STATE_POSTPROCESSING: Om, STATE_COMPLETE: $h } = _d;
|
|
8503
|
-
function zL({ newFiles: e, allowNewUpload: l, isUploadInProgress: t, isAllPaused: d, resumableUploads: n, error: a, hideUploadButton: i = void 0, hidePauseResumeButton: s = !1, hideCancelButton: U = !1, hideRetryButton: Z = !1, recoveredState: F, uploadState: h, totalProgress: o, files: W, supportsUploadProgress: V, hideAfterFinish: Q = !1, isSomeGhost: m, doneButtonHandler: b = void 0, isUploadStarted: u, i18n: N, startUpload: S, uppy: G, isAllComplete: J, hideProgressDetails: X = void 0, numUploads: k, complete: T, totalSize: L, totalETA: D, totalUploadedSize:
|
|
8503
|
+
function zL({ newFiles: e, allowNewUpload: l, isUploadInProgress: t, isAllPaused: d, resumableUploads: n, error: a, hideUploadButton: i = void 0, hidePauseResumeButton: s = !1, hideCancelButton: U = !1, hideRetryButton: Z = !1, recoveredState: F, uploadState: h, totalProgress: o, files: W, supportsUploadProgress: V, hideAfterFinish: Q = !1, isSomeGhost: m, doneButtonHandler: b = void 0, isUploadStarted: u, i18n: N, startUpload: S, uppy: G, isAllComplete: J, hideProgressDetails: X = void 0, numUploads: k, complete: T, totalSize: L, totalETA: D, totalUploadedSize: x }) {
|
|
8504
8504
|
function I() {
|
|
8505
8505
|
switch (h) {
|
|
8506
8506
|
case Om:
|
|
@@ -8529,9 +8529,9 @@ function zL({ newFiles: e, allowNewUpload: l, isUploadInProgress: t, isAllPaused
|
|
|
8529
8529
|
return !1;
|
|
8530
8530
|
}
|
|
8531
8531
|
}
|
|
8532
|
-
const P = I(), Y = P ?? 100, y = !a && e && (!t && !d || F) && l && !i, z = !U && h !== kL && h !== $h, g = n && !s && h === qh,
|
|
8532
|
+
const P = I(), Y = P ?? 100, y = !a && e && (!t && !d || F) && l && !i, z = !U && h !== kL && h !== $h, g = n && !s && h === qh, E = a && !J && !Z, O = b && h === $h, K = Id("uppy-StatusBar-progress", {
|
|
8533
8533
|
"is-indeterminate": A()
|
|
8534
|
-
}),
|
|
8534
|
+
}), w = Id("uppy-StatusBar", `is-${h}`, { "has-ghosts": m }), ll = (() => {
|
|
8535
8535
|
switch (h) {
|
|
8536
8536
|
case jm:
|
|
8537
8537
|
case Om:
|
|
@@ -8541,12 +8541,12 @@ function zL({ newFiles: e, allowNewUpload: l, isUploadInProgress: t, isAllPaused
|
|
|
8541
8541
|
case qp:
|
|
8542
8542
|
return M(BL, { error: a, i18n: N, numUploads: k, complete: T });
|
|
8543
8543
|
case qh:
|
|
8544
|
-
return M(yL, { i18n: N, supportsUploadProgress: V, totalProgress: o, hideProgressDetails: X, isUploadStarted: u, isAllComplete: J, isAllPaused: d, newFiles: e, numUploads: k, complete: T, totalUploadedSize:
|
|
8544
|
+
return M(yL, { i18n: N, supportsUploadProgress: V, totalProgress: o, hideProgressDetails: X, isUploadStarted: u, isAllComplete: J, isAllPaused: d, newFiles: e, numUploads: k, complete: T, totalUploadedSize: x, totalSize: L, totalETA: D, startUpload: S });
|
|
8545
8545
|
default:
|
|
8546
8546
|
return null;
|
|
8547
8547
|
}
|
|
8548
8548
|
})();
|
|
8549
|
-
return !(y ||
|
|
8549
|
+
return !(y || E || g || z || O) && !ll || h === $h && Q ? null : M("div", { className: w, children: [M("div", { className: K, style: { width: `${Y}%` }, role: "progressbar", "aria-label": `${Y}%`, "aria-valuetext": `${Y}%`, "aria-valuemin": 0, "aria-valuemax": 100, "aria-valuenow": P }), ll, M("div", { className: "uppy-StatusBar-actions", children: [y ? M(rL, { newFiles: e, isUploadStarted: u, recoveredState: F, i18n: N, isSomeGhost: m, startUpload: S, uploadState: h }) : null, E ? M(pL, { i18n: N, uppy: G }) : null, g ? M(SL, { isAllPaused: d, i18n: N, isAllComplete: J, resumableUploads: n, uppy: G }) : null, z ? M(ML, { i18n: N, uppy: G }) : null, O ? M(JL, { i18n: N, doneButtonHandler: b }) : null] })] });
|
|
8550
8550
|
}
|
|
8551
8551
|
const LL = 2e3, IL = 2e3;
|
|
8552
8552
|
function DL(e, l, t, d) {
|
|
@@ -8570,12 +8570,12 @@ var Ha, cn, zs, Pn, Gh, DQ, rG;
|
|
|
8570
8570
|
class wL extends Ee {
|
|
8571
8571
|
constructor() {
|
|
8572
8572
|
super(...arguments);
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
|
|
8573
|
+
il(this, DQ);
|
|
8574
|
+
il(this, Ha);
|
|
8575
|
+
il(this, cn);
|
|
8576
|
+
il(this, zs);
|
|
8577
|
+
il(this, Pn);
|
|
8578
|
+
il(this, Gh, () => {
|
|
8579
8579
|
const { recoveredState: t } = this.props.uppy.getState();
|
|
8580
8580
|
if (ol(this, zs, null), ol(this, Pn, null), t) {
|
|
8581
8581
|
ol(this, cn, Object.values(t.files).reduce((d, { progress: n }) => d + (n.bytesUploaded || 0), 0));
|
|
@@ -8583,7 +8583,7 @@ class wL extends Ee {
|
|
|
8583
8583
|
}
|
|
8584
8584
|
ol(this, Ha, performance.now()), ol(this, cn, 0);
|
|
8585
8585
|
});
|
|
8586
|
-
|
|
8586
|
+
C(this, "startUpload", () => {
|
|
8587
8587
|
const { recoveredState: t } = this.props.uppy.getState();
|
|
8588
8588
|
t ? this.props.uppy.emit("restore-confirmed") : this.props.uppy.upload().catch(() => {
|
|
8589
8589
|
});
|
|
@@ -8918,25 +8918,25 @@ class SG extends si {
|
|
|
8918
8918
|
var a;
|
|
8919
8919
|
const n = (d == null ? void 0 : d.autoOpen) ?? null;
|
|
8920
8920
|
super(t, { ...KL, ...d, autoOpen: n });
|
|
8921
|
-
|
|
8922
|
-
|
|
8923
|
-
|
|
8924
|
-
|
|
8925
|
-
|
|
8926
|
-
|
|
8927
|
-
|
|
8928
|
-
|
|
8929
|
-
|
|
8930
|
-
|
|
8921
|
+
il(this, Fi);
|
|
8922
|
+
il(this, _c);
|
|
8923
|
+
C(this, "modalName", `uppy-Dashboard-${gb()}`);
|
|
8924
|
+
C(this, "superFocus", xL());
|
|
8925
|
+
C(this, "ifFocusedOnUppyRecently", !1);
|
|
8926
|
+
C(this, "dashboardIsDisabled");
|
|
8927
|
+
C(this, "savedScrollPosition");
|
|
8928
|
+
C(this, "savedActiveElement");
|
|
8929
|
+
C(this, "resizeObserver");
|
|
8930
|
+
C(this, "darkModeMediaQuery");
|
|
8931
8931
|
// Timeouts
|
|
8932
|
-
|
|
8933
|
-
|
|
8932
|
+
C(this, "makeDashboardInsidesVisibleAnywayTimeout");
|
|
8933
|
+
C(this, "removeTarget", (t) => {
|
|
8934
8934
|
const n = this.getPluginState().targets.filter((a) => a.id !== t.id);
|
|
8935
8935
|
this.setPluginState({
|
|
8936
8936
|
targets: n
|
|
8937
8937
|
});
|
|
8938
8938
|
});
|
|
8939
|
-
|
|
8939
|
+
C(this, "addTarget", (t) => {
|
|
8940
8940
|
const d = t.id || t.constructor.name, n = t.title || d, a = t.type;
|
|
8941
8941
|
if (a !== "acquirer" && a !== "progressindicator" && a !== "editor")
|
|
8942
8942
|
return this.uppy.log("Dashboard: can only be targeted by plugins of types: acquirer, progressindicator, editor", "error"), null;
|
|
@@ -8949,7 +8949,7 @@ class SG extends si {
|
|
|
8949
8949
|
targets: U
|
|
8950
8950
|
}), this.el;
|
|
8951
8951
|
});
|
|
8952
|
-
|
|
8952
|
+
C(this, "hideAllPanels", () => {
|
|
8953
8953
|
var n;
|
|
8954
8954
|
const t = this.getPluginState(), d = {
|
|
8955
8955
|
activePickerPanel: void 0,
|
|
@@ -8960,18 +8960,18 @@ class SG extends si {
|
|
|
8960
8960
|
};
|
|
8961
8961
|
t.activePickerPanel === d.activePickerPanel && t.showAddFilesPanel === d.showAddFilesPanel && t.showFileEditor === d.showFileEditor && t.activeOverlayType === d.activeOverlayType || (this.setPluginState(d), this.uppy.emit("dashboard:close-panel", (n = t.activePickerPanel) == null ? void 0 : n.id));
|
|
8962
8962
|
});
|
|
8963
|
-
|
|
8963
|
+
C(this, "showPanel", (t) => {
|
|
8964
8964
|
const { targets: d } = this.getPluginState(), n = d.find((a) => a.type === "acquirer" && a.id === t);
|
|
8965
8965
|
this.setPluginState({
|
|
8966
8966
|
activePickerPanel: n,
|
|
8967
8967
|
activeOverlayType: "PickerPanel"
|
|
8968
8968
|
}), this.uppy.emit("dashboard:show-panel", t);
|
|
8969
8969
|
});
|
|
8970
|
-
|
|
8970
|
+
C(this, "canEditFile", (t) => {
|
|
8971
8971
|
const { targets: d } = this.getPluginState();
|
|
8972
8972
|
return j(this, Is).call(this, d).some((a) => this.uppy.getPlugin(a.id).canEditFile(t));
|
|
8973
8973
|
});
|
|
8974
|
-
|
|
8974
|
+
C(this, "openFileEditor", (t) => {
|
|
8975
8975
|
const { targets: d } = this.getPluginState(), n = j(this, Is).call(this, d);
|
|
8976
8976
|
this.setPluginState({
|
|
8977
8977
|
showFileEditor: !0,
|
|
@@ -8981,7 +8981,7 @@ class SG extends si {
|
|
|
8981
8981
|
this.uppy.getPlugin(a.id).selectFile(t);
|
|
8982
8982
|
});
|
|
8983
8983
|
});
|
|
8984
|
-
|
|
8984
|
+
C(this, "closeFileEditor", () => {
|
|
8985
8985
|
const { metaFields: t } = this.getPluginState();
|
|
8986
8986
|
t && t.length > 0 ? this.setPluginState({
|
|
8987
8987
|
showFileEditor: !1,
|
|
@@ -8992,13 +8992,13 @@ class SG extends si {
|
|
|
8992
8992
|
activeOverlayType: "AddFiles"
|
|
8993
8993
|
});
|
|
8994
8994
|
});
|
|
8995
|
-
|
|
8995
|
+
C(this, "saveFileEditor", () => {
|
|
8996
8996
|
const { targets: t } = this.getPluginState();
|
|
8997
8997
|
j(this, Is).call(this, t).forEach((n) => {
|
|
8998
8998
|
this.uppy.getPlugin(n.id).save();
|
|
8999
8999
|
}), this.closeFileEditor();
|
|
9000
9000
|
});
|
|
9001
|
-
|
|
9001
|
+
C(this, "openModal", () => {
|
|
9002
9002
|
const { promise: t, resolve: d } = n2();
|
|
9003
9003
|
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) {
|
|
9004
9004
|
const n = () => {
|
|
@@ -9013,7 +9013,7 @@ class SG extends si {
|
|
|
9013
9013
|
}), d();
|
|
9014
9014
|
return this.opts.browserBackButtonClose && this.updateBrowserHistory(), document.addEventListener("keydown", this.handleKeyDownInModal), this.uppy.emit("dashboard:modal-open"), t;
|
|
9015
9015
|
});
|
|
9016
|
-
|
|
9016
|
+
C(this, "closeModal", (t) => {
|
|
9017
9017
|
var U;
|
|
9018
9018
|
const d = (t == null ? void 0 : t.manualClose) ?? !0, { isHidden: n, isClosing: a } = this.getPluginState();
|
|
9019
9019
|
if (n || a)
|
|
@@ -9036,9 +9036,9 @@ class SG extends si {
|
|
|
9036
9036
|
}), this.superFocus.cancel(), this.savedActiveElement.focus(), s();
|
|
9037
9037
|
return document.removeEventListener("keydown", this.handleKeyDownInModal), d && this.opts.browserBackButtonClose && (U = history.state) != null && U[this.modalName] && history.back(), this.uppy.emit("dashboard:modal-closed"), i;
|
|
9038
9038
|
});
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
|
|
9039
|
+
C(this, "isModalOpen", () => !this.getPluginState().isHidden || !1);
|
|
9040
|
+
C(this, "requestCloseModal", () => this.opts.onRequestCloseModal ? this.opts.onRequestCloseModal() : this.closeModal());
|
|
9041
|
+
C(this, "setDarkModeCapability", (t) => {
|
|
9042
9042
|
const { capabilities: d } = this.uppy.getState();
|
|
9043
9043
|
this.uppy.setState({
|
|
9044
9044
|
capabilities: {
|
|
@@ -9047,24 +9047,24 @@ class SG extends si {
|
|
|
9047
9047
|
}
|
|
9048
9048
|
});
|
|
9049
9049
|
});
|
|
9050
|
-
|
|
9050
|
+
C(this, "handleSystemDarkModeChange", (t) => {
|
|
9051
9051
|
const d = t.matches;
|
|
9052
9052
|
this.uppy.log(`[Dashboard] Dark mode is ${d ? "on" : "off"}`), this.setDarkModeCapability(d);
|
|
9053
9053
|
});
|
|
9054
|
-
|
|
9054
|
+
C(this, "toggleFileCard", (t, d) => {
|
|
9055
9055
|
const n = this.uppy.getFile(d);
|
|
9056
9056
|
t ? this.uppy.emit("dashboard:file-edit-start", n) : this.uppy.emit("dashboard:file-edit-complete", n), this.setPluginState({
|
|
9057
9057
|
fileCardFor: t ? d : null,
|
|
9058
9058
|
activeOverlayType: t ? "FileCard" : null
|
|
9059
9059
|
});
|
|
9060
9060
|
});
|
|
9061
|
-
|
|
9061
|
+
C(this, "toggleAddFilesPanel", (t) => {
|
|
9062
9062
|
this.setPluginState({
|
|
9063
9063
|
showAddFilesPanel: t,
|
|
9064
9064
|
activeOverlayType: t ? "AddFiles" : null
|
|
9065
9065
|
});
|
|
9066
9066
|
});
|
|
9067
|
-
|
|
9067
|
+
C(this, "addFiles", (t) => {
|
|
9068
9068
|
const d = t.map((n) => ({
|
|
9069
9069
|
source: this.id,
|
|
9070
9070
|
name: n.name,
|
|
@@ -9088,7 +9088,7 @@ class SG extends si {
|
|
|
9088
9088
|
// ___Why not apply visibility property to .uppy-Dashboard-inner?
|
|
9089
9089
|
// Because ideally, acc to specs, ResizeObserver should see invisible elements as of width 0. So even though applying
|
|
9090
9090
|
// invisibility to .uppy-Dashboard-inner works now, it may not work in the future.
|
|
9091
|
-
|
|
9091
|
+
C(this, "startListeningToResize", () => {
|
|
9092
9092
|
this.resizeObserver = new ResizeObserver((t) => {
|
|
9093
9093
|
const d = t[0], { width: n, height: a } = d.contentRect;
|
|
9094
9094
|
this.setPluginState({
|
|
@@ -9106,15 +9106,15 @@ class SG extends si {
|
|
|
9106
9106
|
}));
|
|
9107
9107
|
}, 1e3);
|
|
9108
9108
|
});
|
|
9109
|
-
|
|
9109
|
+
C(this, "stopListeningToResize", () => {
|
|
9110
9110
|
this.resizeObserver.disconnect(), clearTimeout(this.makeDashboardInsidesVisibleAnywayTimeout);
|
|
9111
9111
|
});
|
|
9112
9112
|
// Records whether we have been interacting with uppy right now,
|
|
9113
9113
|
// which is then used to determine whether state updates should trigger a refocusing.
|
|
9114
|
-
|
|
9114
|
+
C(this, "recordIfFocusedOnUppyRecently", (t) => {
|
|
9115
9115
|
this.el.contains(t.target) ? this.ifFocusedOnUppyRecently = !0 : (this.ifFocusedOnUppyRecently = !1, this.superFocus.cancel());
|
|
9116
9116
|
});
|
|
9117
|
-
|
|
9117
|
+
C(this, "disableInteractiveElements", (t) => {
|
|
9118
9118
|
const d = [
|
|
9119
9119
|
"a[href]",
|
|
9120
9120
|
"input:not([disabled])",
|
|
@@ -9127,24 +9127,24 @@ class SG extends si {
|
|
|
9127
9127
|
a.tagName === "A" ? a.setAttribute("aria-disabled", t) : a.disabled = t;
|
|
9128
9128
|
t ? ol(this, _c, n) : ol(this, _c, null), this.dashboardIsDisabled = t;
|
|
9129
9129
|
});
|
|
9130
|
-
|
|
9130
|
+
C(this, "updateBrowserHistory", () => {
|
|
9131
9131
|
var t;
|
|
9132
9132
|
(t = history.state) != null && t[this.modalName] || history.pushState({
|
|
9133
9133
|
...history.state,
|
|
9134
9134
|
[this.modalName]: !0
|
|
9135
9135
|
}, ""), window.addEventListener("popstate", this.handlePopState, !1);
|
|
9136
9136
|
});
|
|
9137
|
-
|
|
9137
|
+
C(this, "handlePopState", (t) => {
|
|
9138
9138
|
var d;
|
|
9139
9139
|
this.isModalOpen() && (!t.state || !t.state[this.modalName]) && this.closeModal({ manualClose: !1 }), !this.isModalOpen() && ((d = t.state) != null && d[this.modalName]) && history.back();
|
|
9140
9140
|
});
|
|
9141
|
-
|
|
9141
|
+
C(this, "handleKeyDownInModal", (t) => {
|
|
9142
9142
|
t.keyCode === vL && this.requestCloseModal(), t.keyCode === d2 && MG(t, this.getPluginState().activeOverlayType, this.el);
|
|
9143
9143
|
});
|
|
9144
|
-
|
|
9144
|
+
C(this, "handleClickOutside", () => {
|
|
9145
9145
|
this.opts.closeModalOnClickOutside && this.requestCloseModal();
|
|
9146
9146
|
});
|
|
9147
|
-
|
|
9147
|
+
C(this, "handlePaste", (t) => {
|
|
9148
9148
|
this.uppy.iteratePlugins((n) => {
|
|
9149
9149
|
var a;
|
|
9150
9150
|
n.type === "acquirer" && ((a = n.handleRootPaste) == null || a.call(n, t));
|
|
@@ -9152,12 +9152,12 @@ class SG extends si {
|
|
|
9152
9152
|
const d = Z0(t.clipboardData.files);
|
|
9153
9153
|
d.length > 0 && (this.uppy.log("[Dashboard] Files pasted"), this.addFiles(d));
|
|
9154
9154
|
});
|
|
9155
|
-
|
|
9155
|
+
C(this, "handleInputChange", (t) => {
|
|
9156
9156
|
t.preventDefault();
|
|
9157
9157
|
const d = Z0(t.currentTarget.files || []);
|
|
9158
9158
|
d.length > 0 && (this.uppy.log("[Dashboard] Files selected through input"), this.addFiles(d));
|
|
9159
9159
|
});
|
|
9160
|
-
|
|
9160
|
+
C(this, "handleDragOver", (t) => {
|
|
9161
9161
|
t.preventDefault(), t.stopPropagation();
|
|
9162
9162
|
const d = () => {
|
|
9163
9163
|
let s = !0;
|
|
@@ -9177,10 +9177,10 @@ class SG extends si {
|
|
|
9177
9177
|
}
|
|
9178
9178
|
t.dataTransfer.dropEffect = "copy", this.setPluginState({ isDraggingOver: !0 }), this.opts.onDragOver(t);
|
|
9179
9179
|
});
|
|
9180
|
-
|
|
9180
|
+
C(this, "handleDragLeave", (t) => {
|
|
9181
9181
|
t.preventDefault(), t.stopPropagation(), this.setPluginState({ isDraggingOver: !1 }), this.opts.onDragLeave(t);
|
|
9182
9182
|
});
|
|
9183
|
-
|
|
9183
|
+
C(this, "handleDrop", async (t) => {
|
|
9184
9184
|
t.preventDefault(), t.stopPropagation(), this.setPluginState({ isDraggingOver: !1 }), this.uppy.iteratePlugins((i) => {
|
|
9185
9185
|
var s;
|
|
9186
9186
|
i.type === "acquirer" && ((s = i.handleRootDrop) == null || s.call(i, t));
|
|
@@ -9193,17 +9193,17 @@ class SG extends si {
|
|
|
9193
9193
|
const a = await oB(t.dataTransfer, { logDropError: n });
|
|
9194
9194
|
a.length > 0 && (this.uppy.log("[Dashboard] Files dropped"), this.addFiles(a)), this.opts.onDrop(t);
|
|
9195
9195
|
});
|
|
9196
|
-
|
|
9196
|
+
C(this, "handleRequestThumbnail", (t) => {
|
|
9197
9197
|
this.opts.waitForThumbnailsBeforeUpload || this.uppy.emit("thumbnail:request", t);
|
|
9198
9198
|
});
|
|
9199
9199
|
/**
|
|
9200
9200
|
* We cancel thumbnail requests when a file item component unmounts to avoid
|
|
9201
9201
|
* clogging up the queue when the user scrolls past many elements.
|
|
9202
9202
|
*/
|
|
9203
|
-
|
|
9203
|
+
C(this, "handleCancelThumbnail", (t) => {
|
|
9204
9204
|
this.opts.waitForThumbnailsBeforeUpload || this.uppy.emit("thumbnail:cancel", t);
|
|
9205
9205
|
});
|
|
9206
|
-
|
|
9206
|
+
C(this, "handleKeyDownInInline", (t) => {
|
|
9207
9207
|
t.keyCode === d2 && OL(t, this.getPluginState().activeOverlayType, this.el);
|
|
9208
9208
|
});
|
|
9209
9209
|
// ___Why do we listen to the 'paste' event on a document instead of onPaste={props.handlePaste} prop,
|
|
@@ -9215,13 +9215,13 @@ class SG extends si {
|
|
|
9215
9215
|
// Because if we click on the 'Drop files here' caption e.g., `document.activeElement` will be 'body'. Which means our
|
|
9216
9216
|
// standard determination of whether we're pasting into our Uppy instance won't work.
|
|
9217
9217
|
// => Therefore, we need a traditional onPaste={props.handlePaste} handler too.
|
|
9218
|
-
|
|
9218
|
+
C(this, "handlePasteOnBody", (t) => {
|
|
9219
9219
|
this.el.contains(document.activeElement) && this.handlePaste(t);
|
|
9220
9220
|
});
|
|
9221
|
-
|
|
9221
|
+
C(this, "handleComplete", ({ failed: t }) => {
|
|
9222
9222
|
this.opts.closeAfterFinish && !(t != null && t.length) && this.requestCloseModal();
|
|
9223
9223
|
});
|
|
9224
|
-
|
|
9224
|
+
il(this, Ls, () => {
|
|
9225
9225
|
if (this.opts.disableThumbnailGenerator)
|
|
9226
9226
|
return;
|
|
9227
9227
|
const t = 600, d = this.uppy.getFiles();
|
|
@@ -9236,22 +9236,22 @@ class SG extends si {
|
|
|
9236
9236
|
});
|
|
9237
9237
|
}
|
|
9238
9238
|
});
|
|
9239
|
-
|
|
9239
|
+
il(this, Th, (t) => {
|
|
9240
9240
|
const d = t[0], { metaFields: n } = this.getPluginState(), a = n && n.length > 0, i = this.canEditFile(d);
|
|
9241
9241
|
a && this.opts.autoOpen === "metaEditor" ? this.toggleFileCard(!0, d.id) : i && this.opts.autoOpen === "imageEditor" && this.openFileEditor(d);
|
|
9242
9242
|
});
|
|
9243
|
-
|
|
9243
|
+
C(this, "initEvents", () => {
|
|
9244
9244
|
if (this.opts.trigger && !this.opts.inline) {
|
|
9245
9245
|
const t = Tr(this.opts.trigger);
|
|
9246
9246
|
t ? t.forEach((d) => d.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");
|
|
9247
9247
|
}
|
|
9248
9248
|
this.startListeningToResize(), document.addEventListener("paste", this.handlePasteOnBody), this.uppy.on("plugin-added", j(this, $c)), 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", j(this, Ls)), this.uppy.on("file-removed", j(this, Ls)), 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", j(this, Th));
|
|
9249
9249
|
});
|
|
9250
|
-
|
|
9250
|
+
C(this, "removeEvents", () => {
|
|
9251
9251
|
const t = Tr(this.opts.trigger);
|
|
9252
9252
|
!this.opts.inline && t && t.forEach((d) => d.removeEventListener("click", this.openModal)), this.stopListeningToResize(), document.removeEventListener("paste", this.handlePasteOnBody), window.removeEventListener("popstate", this.handlePopState, !1), this.uppy.off("plugin-added", j(this, $c)), 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", j(this, Ls)), this.uppy.off("file-removed", j(this, Ls)), 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", j(this, Th));
|
|
9253
9253
|
});
|
|
9254
|
-
|
|
9254
|
+
C(this, "superFocusOnEachUpdate", () => {
|
|
9255
9255
|
const t = this.el.contains(document.activeElement), d = document.activeElement === document.body || document.activeElement === null, n = this.uppy.getState().info.length === 0, a = !this.opts.inline;
|
|
9256
9256
|
// If update is connected to showing the Informer - let the screen reader calmly read it.
|
|
9257
9257
|
n && // If we are in a modal - always superfocus without concern for other elements
|
|
@@ -9268,17 +9268,17 @@ class SG extends si {
|
|
|
9268
9268
|
// try to press space multiple times. Focus will jump to Uppy.
|
|
9269
9269
|
d && this.ifFocusedOnUppyRecently) ? this.superFocus(this.el, this.getPluginState().activeOverlayType) : this.superFocus.cancel();
|
|
9270
9270
|
});
|
|
9271
|
-
|
|
9271
|
+
C(this, "afterUpdate", () => {
|
|
9272
9272
|
if (this.opts.disabled && !this.dashboardIsDisabled) {
|
|
9273
9273
|
this.disableInteractiveElements(!0);
|
|
9274
9274
|
return;
|
|
9275
9275
|
}
|
|
9276
9276
|
!this.opts.disabled && this.dashboardIsDisabled && this.disableInteractiveElements(!1), this.superFocusOnEachUpdate();
|
|
9277
9277
|
});
|
|
9278
|
-
|
|
9278
|
+
C(this, "saveFileCard", (t, d) => {
|
|
9279
9279
|
this.uppy.setFileMeta(d, t), this.toggleFileCard(!1, d);
|
|
9280
9280
|
});
|
|
9281
|
-
|
|
9281
|
+
il(this, qc, (t) => {
|
|
9282
9282
|
const d = this.uppy.getPlugin(t.id);
|
|
9283
9283
|
return {
|
|
9284
9284
|
...t,
|
|
@@ -9286,14 +9286,14 @@ class SG extends si {
|
|
|
9286
9286
|
render: d.render
|
|
9287
9287
|
};
|
|
9288
9288
|
});
|
|
9289
|
-
|
|
9289
|
+
il(this, wQ, (t) => {
|
|
9290
9290
|
const d = this.uppy.getPlugin(t.id);
|
|
9291
9291
|
return typeof d.isSupported != "function" ? !0 : d.isSupported();
|
|
9292
9292
|
});
|
|
9293
|
-
|
|
9294
|
-
|
|
9295
|
-
|
|
9296
|
-
|
|
9293
|
+
il(this, EQ, (t) => t.filter((d) => d.type === "acquirer" && j(this, wQ).call(this, d)).map(j(this, qc)));
|
|
9294
|
+
il(this, CQ, (t) => t.filter((d) => d.type === "progressindicator").map(j(this, qc)));
|
|
9295
|
+
il(this, Is, (t) => t.filter((d) => d.type === "editor").map(j(this, qc)));
|
|
9296
|
+
C(this, "render", (t) => {
|
|
9297
9297
|
const d = this.getPluginState(), { files: n, capabilities: a, allowNewUpload: i } = t, { newFiles: s, uploadStartedFiles: U, completeFiles: Z, erroredFiles: F, inProgressFiles: h, inProgressNotPausedFiles: o, processingFiles: W, isUploadStarted: V, isAllComplete: Q, isAllPaused: m } = this.uppy.getObjectOfFilesPerState(), b = j(this, EQ).call(this, d.targets), u = j(this, CQ).call(this, d.targets), N = j(this, Is).call(this, d.targets);
|
|
9298
9298
|
let S;
|
|
9299
9299
|
return this.opts.theme === "auto" ? S = a.darkMode ? "dark" : "light" : S = this.opts.theme, ["files", "folders", "both"].indexOf(this.opts.fileManagerSelectionType) < 0 && (this.opts.fileManagerSelectionType = "files", console.warn(`Unsupported option for "fileManagerSelectionType". Using default of "${this.opts.fileManagerSelectionType}".`)), EL({
|
|
@@ -9390,22 +9390,22 @@ class SG extends si {
|
|
|
9390
9390
|
doneButtonHandler: this.opts.doneButtonHandler
|
|
9391
9391
|
});
|
|
9392
9392
|
});
|
|
9393
|
-
|
|
9393
|
+
il(this, xQ, () => {
|
|
9394
9394
|
const { plugins: t } = this.opts;
|
|
9395
9395
|
t.forEach((d) => {
|
|
9396
9396
|
const n = this.uppy.getPlugin(d);
|
|
9397
9397
|
n ? n.mount(this, n) : this.uppy.log(`[Uppy] Dashboard could not find plugin '${d}', make sure to uppy.use() the plugins you are specifying`, "warning");
|
|
9398
9398
|
});
|
|
9399
9399
|
});
|
|
9400
|
-
|
|
9400
|
+
il(this, gQ, () => {
|
|
9401
9401
|
this.uppy.iteratePlugins(j(this, $c));
|
|
9402
9402
|
});
|
|
9403
|
-
|
|
9403
|
+
il(this, $c, (t) => {
|
|
9404
9404
|
var n;
|
|
9405
9405
|
const d = ["acquirer", "editor"];
|
|
9406
9406
|
t && !((n = t.opts) != null && n.target) && d.includes(t.type) && (this.getPluginState().targets.some((i) => t.id === i.id) || t.mount(this, t));
|
|
9407
9407
|
});
|
|
9408
|
-
|
|
9408
|
+
C(this, "install", () => {
|
|
9409
9409
|
var U;
|
|
9410
9410
|
this.setPluginState({
|
|
9411
9411
|
isHidden: !0,
|
|
@@ -9433,7 +9433,7 @@ class SG extends si {
|
|
|
9433
9433
|
const s = this.darkModeMediaQuery ? this.darkModeMediaQuery.matches : !1;
|
|
9434
9434
|
this.uppy.log(`[Dashboard] Dark mode is ${s ? "on" : "off"}`), this.setDarkModeCapability(s), this.opts.theme === "auto" && ((U = this.darkModeMediaQuery) == null || U.addListener(this.handleSystemDarkModeChange)), j(this, xQ).call(this), j(this, gQ).call(this), this.initEvents();
|
|
9435
9435
|
});
|
|
9436
|
-
|
|
9436
|
+
C(this, "uninstall", () => {
|
|
9437
9437
|
var d;
|
|
9438
9438
|
if (!this.opts.disableThumbnailGenerator) {
|
|
9439
9439
|
const n = this.uppy.getPlugin(`${this.id}:ThumbnailGenerator`);
|
|
@@ -9466,7 +9466,7 @@ _c = new WeakMap(), Ls = new WeakMap(), Th = new WeakMap(), qc = new WeakMap(),
|
|
|
9466
9466
|
};
|
|
9467
9467
|
}, ju = function() {
|
|
9468
9468
|
return `${this.id}:ThumbnailGenerator`;
|
|
9469
|
-
},
|
|
9469
|
+
}, C(SG, "VERSION", zz.version);
|
|
9470
9470
|
const fL = "4.1.0", HL = {
|
|
9471
9471
|
version: fL
|
|
9472
9472
|
};
|
|
@@ -9908,7 +9908,7 @@ function pI(e) {
|
|
|
9908
9908
|
};
|
|
9909
9909
|
}
|
|
9910
9910
|
function MI(e, l, t, d) {
|
|
9911
|
-
var n = l.aspectRatio, a = l.naturalWidth, i = l.naturalHeight, s = l.rotate, U = s === void 0 ? 0 : s, Z = l.scaleX, F = Z === void 0 ? 1 : Z, h = l.scaleY, o = h === void 0 ? 1 : h, W = t.aspectRatio, V = t.naturalWidth, Q = t.naturalHeight, m = d.fillColor, b = m === void 0 ? "transparent" : m, u = d.imageSmoothingEnabled, N = u === void 0 ? !0 : u, S = d.imageSmoothingQuality, G = S === void 0 ? "low" : S, J = d.maxWidth, X = J === void 0 ? 1 / 0 : J, k = d.maxHeight, T = k === void 0 ? 1 / 0 : k, L = d.minWidth, D = L === void 0 ? 0 : L,
|
|
9911
|
+
var n = l.aspectRatio, a = l.naturalWidth, i = l.naturalHeight, s = l.rotate, U = s === void 0 ? 0 : s, Z = l.scaleX, F = Z === void 0 ? 1 : Z, h = l.scaleY, o = h === void 0 ? 1 : h, W = t.aspectRatio, V = t.naturalWidth, Q = t.naturalHeight, m = d.fillColor, b = m === void 0 ? "transparent" : m, u = d.imageSmoothingEnabled, N = u === void 0 ? !0 : u, S = d.imageSmoothingQuality, G = S === void 0 ? "low" : S, J = d.maxWidth, X = J === void 0 ? 1 / 0 : J, k = d.maxHeight, T = k === void 0 ? 1 / 0 : k, L = d.minWidth, D = L === void 0 ? 0 : L, x = d.minHeight, I = x === void 0 ? 0 : x, A = document.createElement("canvas"), P = A.getContext("2d"), Y = qa({
|
|
9912
9912
|
aspectRatio: W,
|
|
9913
9913
|
width: X,
|
|
9914
9914
|
height: T
|
|
@@ -9916,7 +9916,7 @@ function MI(e, l, t, d) {
|
|
|
9916
9916
|
aspectRatio: W,
|
|
9917
9917
|
width: D,
|
|
9918
9918
|
height: I
|
|
9919
|
-
}, "cover"), z = Math.min(Y.width, Math.max(y.width, V)), g = Math.min(Y.height, Math.max(y.height, Q)),
|
|
9919
|
+
}, "cover"), z = Math.min(Y.width, Math.max(y.width, V)), g = Math.min(Y.height, Math.max(y.height, Q)), E = qa({
|
|
9920
9920
|
aspectRatio: n,
|
|
9921
9921
|
width: X,
|
|
9922
9922
|
height: T
|
|
@@ -9924,9 +9924,9 @@ function MI(e, l, t, d) {
|
|
|
9924
9924
|
aspectRatio: n,
|
|
9925
9925
|
width: D,
|
|
9926
9926
|
height: I
|
|
9927
|
-
}, "cover"), K = Math.min(
|
|
9928
|
-
return A.width = Gc(z), A.height = Gc(g), P.fillStyle = b, P.fillRect(0, 0, z, g), P.save(), P.translate(z / 2, g / 2), P.rotate(U * Math.PI / 180), P.scale(F, o), P.imageSmoothingEnabled = N, P.imageSmoothingQuality = G, P.drawImage.apply(P, [e].concat(TG(ll.map(function(
|
|
9929
|
-
return Math.floor(Gc(
|
|
9927
|
+
}, "cover"), K = Math.min(E.width, Math.max(O.width, a)), w = Math.min(E.height, Math.max(O.height, i)), ll = [-K / 2, -w / 2, K, w];
|
|
9928
|
+
return A.width = Gc(z), A.height = Gc(g), P.fillStyle = b, P.fillRect(0, 0, z, g), P.save(), P.translate(z / 2, g / 2), P.rotate(U * Math.PI / 180), P.scale(F, o), P.imageSmoothingEnabled = N, P.imageSmoothingQuality = G, P.drawImage.apply(P, [e].concat(TG(ll.map(function(al) {
|
|
9929
|
+
return Math.floor(Gc(al));
|
|
9930
9930
|
})))), P.restore(), A;
|
|
9931
9931
|
}
|
|
9932
9932
|
var CG = String.fromCharCode;
|
|
@@ -10653,12 +10653,12 @@ var YI = {
|
|
|
10653
10653
|
m.width = Gc(V), m.height = Gc(Q), b.fillStyle = l.fillColor || "transparent", b.fillRect(0, 0, V, Q);
|
|
10654
10654
|
var u = l.imageSmoothingEnabled, N = u === void 0 ? !0 : u, S = l.imageSmoothingQuality;
|
|
10655
10655
|
b.imageSmoothingEnabled = N, S && (b.imageSmoothingQuality = S);
|
|
10656
|
-
var G = d.width, J = d.height, X = a, k = i, T, L, D,
|
|
10657
|
-
X <= -s || X > G ? (X = 0, T = 0, D = 0, I = 0) : X <= 0 ? (D = -X, X = 0, T = Math.min(G, s + X), I = T) : X <= G && (D = 0, T = Math.min(s, G - X), I = T), T <= 0 || k <= -U || k > J ? (k = 0, L = 0,
|
|
10656
|
+
var G = d.width, J = d.height, X = a, k = i, T, L, D, x, I, A;
|
|
10657
|
+
X <= -s || X > G ? (X = 0, T = 0, D = 0, I = 0) : X <= 0 ? (D = -X, X = 0, T = Math.min(G, s + X), I = T) : X <= G && (D = 0, T = Math.min(s, G - X), I = T), T <= 0 || k <= -U || k > J ? (k = 0, L = 0, x = 0, A = 0) : k <= 0 ? (x = -k, k = 0, L = Math.min(J, U + k), A = L) : k <= J && (x = 0, L = Math.min(U, J - k), A = L);
|
|
10658
10658
|
var P = [X, k, T, L];
|
|
10659
10659
|
if (I > 0 && A > 0) {
|
|
10660
10660
|
var Y = V / s;
|
|
10661
|
-
P.push(D * Y,
|
|
10661
|
+
P.push(D * Y, x * Y, I * Y, A * Y);
|
|
10662
10662
|
}
|
|
10663
10663
|
return b.drawImage.apply(b, [d].concat(TG(P.map(function(y) {
|
|
10664
10664
|
return Math.floor(Gc(y));
|
|
@@ -10873,9 +10873,9 @@ function gI(e, l, t) {
|
|
|
10873
10873
|
class jI extends Ee {
|
|
10874
10874
|
constructor(t) {
|
|
10875
10875
|
super(t);
|
|
10876
|
-
|
|
10877
|
-
|
|
10878
|
-
|
|
10876
|
+
C(this, "imgElement");
|
|
10877
|
+
C(this, "cropper");
|
|
10878
|
+
C(this, "onRotate90Deg", () => {
|
|
10879
10879
|
const { angle90Deg: t } = this.state, d = t - 90;
|
|
10880
10880
|
this.setState({
|
|
10881
10881
|
angle90Deg: d,
|
|
@@ -10884,7 +10884,7 @@ class jI extends Ee {
|
|
|
10884
10884
|
const n = this.cropper.getCanvasData(), a = this.cropper.getContainerData(), i = wI(a, n);
|
|
10885
10885
|
this.cropper.setCanvasData(i), this.cropper.setCropBoxData(i);
|
|
10886
10886
|
});
|
|
10887
|
-
|
|
10887
|
+
C(this, "onRotateGranular", (t) => {
|
|
10888
10888
|
const d = Number(t.target.value);
|
|
10889
10889
|
this.setState({ angleGranular: d });
|
|
10890
10890
|
const { angle90Deg: n } = this.state, a = n + d;
|
|
@@ -11017,8 +11017,8 @@ class OG extends si {
|
|
|
11017
11017
|
...d == null ? void 0 : d.cropperOptions
|
|
11018
11018
|
}
|
|
11019
11019
|
});
|
|
11020
|
-
|
|
11021
|
-
|
|
11020
|
+
C(this, "cropper");
|
|
11021
|
+
C(this, "save", () => {
|
|
11022
11022
|
const t = (a) => {
|
|
11023
11023
|
const { currentImage: i } = this.getPluginState();
|
|
11024
11024
|
this.uppy.setFileState(i.id, {
|
|
@@ -11036,10 +11036,10 @@ class OG extends si {
|
|
|
11036
11036
|
}, { currentImage: d } = this.getPluginState(), n = this.cropper.getCroppedCanvas({});
|
|
11037
11037
|
n.width % 2 !== 0 && this.cropper.setData({ width: n.width - 1 }), n.height % 2 !== 0 && this.cropper.setData({ height: n.height - 1 }), this.cropper.getCroppedCanvas(this.opts.cropperOptions.croppedCanvasOptions).toBlob(t, d.type, this.opts.quality);
|
|
11038
11038
|
});
|
|
11039
|
-
|
|
11039
|
+
C(this, "storeCropperInstance", (t) => {
|
|
11040
11040
|
this.cropper = t;
|
|
11041
11041
|
});
|
|
11042
|
-
|
|
11042
|
+
C(this, "selectFile", (t) => {
|
|
11043
11043
|
this.uppy.emit("file-editor:start", t), this.setPluginState({
|
|
11044
11044
|
currentImage: t
|
|
11045
11045
|
});
|
|
@@ -11072,7 +11072,7 @@ class OG extends si {
|
|
|
11072
11072
|
return t === null || t.isRemote ? null : M(jI, { currentImage: t, storeCropperInstance: this.storeCropperInstance, save: this.save, opts: this.opts, i18n: this.i18n });
|
|
11073
11073
|
}
|
|
11074
11074
|
}
|
|
11075
|
-
|
|
11075
|
+
C(OG, "VERSION", HL.version);
|
|
11076
11076
|
const KI = [
|
|
11077
11077
|
"B",
|
|
11078
11078
|
"kB",
|
|
@@ -11288,17 +11288,17 @@ var lD = Object.defineProperty, KG = (e) => {
|
|
|
11288
11288
|
(e, l, t) => {
|
|
11289
11289
|
var d = t(4576), n = t(9504), a = t(6706), i = t(7696), s = t(5169), U = t(7394), Z = t(4483), F = t(1548), h = d.structuredClone, o = d.ArrayBuffer, W = d.DataView, V = Math.min, Q = o.prototype, m = W.prototype, b = n(Q.slice), u = a(Q, "resizable", "get"), N = a(Q, "maxByteLength", "get"), S = n(m.getInt8), G = n(m.setInt8);
|
|
11290
11290
|
e.exports = (F || Z) && function(J, X, k) {
|
|
11291
|
-
var T = U(J), L = X === void 0 ? T : i(X), D = !u || !u(J),
|
|
11291
|
+
var T = U(J), L = X === void 0 ? T : i(X), D = !u || !u(J), x;
|
|
11292
11292
|
if (s(J), F && (J = h(J, { transfer: [J] }), T === L && (k || D)))
|
|
11293
11293
|
return J;
|
|
11294
11294
|
if (T >= L && (!k || D))
|
|
11295
|
-
|
|
11295
|
+
x = b(J, 0, L);
|
|
11296
11296
|
else {
|
|
11297
11297
|
var I = k && !D && N ? { maxByteLength: N(J) } : void 0;
|
|
11298
|
-
|
|
11299
|
-
for (var A = new W(J), P = new W(
|
|
11298
|
+
x = new o(L, I);
|
|
11299
|
+
for (var A = new W(J), P = new W(x), Y = V(L, T), y = 0; y < Y; y++) G(P, y, S(A, y));
|
|
11300
11300
|
}
|
|
11301
|
-
return F || Z(J),
|
|
11301
|
+
return F || Z(J), x;
|
|
11302
11302
|
};
|
|
11303
11303
|
}
|
|
11304
11304
|
),
|
|
@@ -11306,7 +11306,7 @@ var lD = Object.defineProperty, KG = (e) => {
|
|
|
11306
11306
|
4644: (
|
|
11307
11307
|
/***/
|
|
11308
11308
|
(e, l, t) => {
|
|
11309
|
-
var d = t(7811), n = t(3724), a = t(4576), i = t(4901), s = t(34), U = t(9297), Z = t(6955), F = t(6823), h = t(6699), o = t(6840), W = t(2106), V = t(1625), Q = t(2787), m = t(2967), b = t(8227), u = t(3392), N = t(1181), S = N.enforce, G = N.get, J = a.Int8Array, X = J && J.prototype, k = a.Uint8ClampedArray, T = k && k.prototype, L = J && Q(J), D = X && Q(X),
|
|
11309
|
+
var d = t(7811), n = t(3724), a = t(4576), i = t(4901), s = t(34), U = t(9297), Z = t(6955), F = t(6823), h = t(6699), o = t(6840), W = t(2106), V = t(1625), Q = t(2787), m = t(2967), b = t(8227), u = t(3392), N = t(1181), S = N.enforce, G = N.get, J = a.Int8Array, X = J && J.prototype, k = a.Uint8ClampedArray, T = k && k.prototype, L = J && Q(J), D = X && Q(X), x = Object.prototype, I = a.TypeError, A = b("toStringTag"), P = u("TYPED_ARRAY_TAG"), Y = "TypedArrayConstructor", y = d && !!m && Z(a.opera) !== "Opera", z = !1, g, E, O, K = {
|
|
11310
11310
|
Int8Array: 1,
|
|
11311
11311
|
Uint8Array: 1,
|
|
11312
11312
|
Uint8ClampedArray: 1,
|
|
@@ -11316,23 +11316,23 @@ var lD = Object.defineProperty, KG = (e) => {
|
|
|
11316
11316
|
Uint32Array: 4,
|
|
11317
11317
|
Float32Array: 4,
|
|
11318
11318
|
Float64Array: 8
|
|
11319
|
-
},
|
|
11319
|
+
}, w = {
|
|
11320
11320
|
BigInt64Array: 8,
|
|
11321
11321
|
BigUint64Array: 8
|
|
11322
11322
|
}, ll = function(rl) {
|
|
11323
11323
|
if (!s(rl)) return !1;
|
|
11324
11324
|
var Ft = Z(rl);
|
|
11325
|
-
return Ft === "DataView" || U(K, Ft) || U(
|
|
11326
|
-
},
|
|
11325
|
+
return Ft === "DataView" || U(K, Ft) || U(w, Ft);
|
|
11326
|
+
}, al = function(rl) {
|
|
11327
11327
|
var Ft = Q(rl);
|
|
11328
11328
|
if (s(Ft)) {
|
|
11329
11329
|
var Et = G(Ft);
|
|
11330
|
-
return Et && U(Et, Y) ? Et[Y] :
|
|
11330
|
+
return Et && U(Et, Y) ? Et[Y] : al(Ft);
|
|
11331
11331
|
}
|
|
11332
11332
|
}, _ = function(rl) {
|
|
11333
11333
|
if (!s(rl)) return !1;
|
|
11334
11334
|
var Ft = Z(rl);
|
|
11335
|
-
return U(K, Ft) || U(
|
|
11335
|
+
return U(K, Ft) || U(w, Ft);
|
|
11336
11336
|
}, q = function(rl) {
|
|
11337
11337
|
if (_(rl)) return rl;
|
|
11338
11338
|
throw new I("Target is not a typed array");
|
|
@@ -11377,15 +11377,15 @@ var lD = Object.defineProperty, KG = (e) => {
|
|
|
11377
11377
|
}
|
|
11378
11378
|
};
|
|
11379
11379
|
for (g in K)
|
|
11380
|
-
|
|
11381
|
-
for (g in
|
|
11382
|
-
|
|
11380
|
+
E = a[g], O = E && E.prototype, O ? S(O)[Y] = E : y = !1;
|
|
11381
|
+
for (g in w)
|
|
11382
|
+
E = a[g], O = E && E.prototype, O && (S(O)[Y] = E);
|
|
11383
11383
|
if ((!y || !i(L) || L === Function.prototype) && (L = function() {
|
|
11384
11384
|
throw new I("Incorrect invocation");
|
|
11385
11385
|
}, y))
|
|
11386
11386
|
for (g in K)
|
|
11387
11387
|
a[g] && m(a[g], L);
|
|
11388
|
-
if ((!y || !D || D ===
|
|
11388
|
+
if ((!y || !D || D === x) && (D = L.prototype, y))
|
|
11389
11389
|
for (g in K)
|
|
11390
11390
|
a[g] && m(a[g].prototype, D);
|
|
11391
11391
|
if (y && Q(T) !== D && m(T, D), n && !U(D, A)) {
|
|
@@ -11404,7 +11404,7 @@ var lD = Object.defineProperty, KG = (e) => {
|
|
|
11404
11404
|
aTypedArrayConstructor: dl,
|
|
11405
11405
|
exportTypedArrayMethod: nl,
|
|
11406
11406
|
exportTypedArrayStaticMethod: El,
|
|
11407
|
-
getTypedArrayConstructor:
|
|
11407
|
+
getTypedArrayConstructor: al,
|
|
11408
11408
|
isView: ll,
|
|
11409
11409
|
isTypedArray: _,
|
|
11410
11410
|
TypedArray: L,
|
|
@@ -12320,7 +12320,7 @@ var lD = Object.defineProperty, KG = (e) => {
|
|
|
12320
12320
|
this.stopped = m, this.result = b;
|
|
12321
12321
|
}, Q = V.prototype;
|
|
12322
12322
|
e.exports = function(m, b, u) {
|
|
12323
|
-
var N = u && u.that, S = !!(u && u.AS_ENTRIES), G = !!(u && u.IS_RECORD), J = !!(u && u.IS_ITERATOR), X = !!(u && u.INTERRUPTED), k = d(b, N), T, L, D,
|
|
12323
|
+
var N = u && u.that, S = !!(u && u.AS_ENTRIES), G = !!(u && u.IS_RECORD), J = !!(u && u.IS_ITERATOR), X = !!(u && u.INTERRUPTED), k = d(b, N), T, L, D, x, I, A, P, Y = function(z) {
|
|
12324
12324
|
return T && o(T, "normal", z), new V(!0, z);
|
|
12325
12325
|
}, y = function(z) {
|
|
12326
12326
|
return S ? (a(z), X ? k(z[0], z[1], Y) : k(z[0], z[1])) : X ? k(z, Y) : k(z);
|
|
@@ -12332,7 +12332,7 @@ var lD = Object.defineProperty, KG = (e) => {
|
|
|
12332
12332
|
else {
|
|
12333
12333
|
if (L = h(m), !L) throw new W(i(m) + " is not iterable");
|
|
12334
12334
|
if (s(L)) {
|
|
12335
|
-
for (D = 0,
|
|
12335
|
+
for (D = 0, x = U(m); x > D; D++)
|
|
12336
12336
|
if (I = y(m[D]), I && Z(Q, I)) return I;
|
|
12337
12337
|
return new V(!1);
|
|
12338
12338
|
}
|
|
@@ -13641,22 +13641,22 @@ var lD = Object.defineProperty, KG = (e) => {
|
|
|
13641
13641
|
8335: (
|
|
13642
13642
|
/***/
|
|
13643
13643
|
(e, l, t) => {
|
|
13644
|
-
var d = t(6518), n = t(3724), a = t(4576), i = t(7751), s = t(9504), U = t(9565), Z = t(4901), F = t(34), h = t(4376), o = t(9297), W = t(655), V = t(6198), Q = t(4659), m = t(9039), b = t(8235), u = t(4495), N = a.JSON, S = a.Number, G = a.SyntaxError, J = N && N.parse, X = i("Object", "keys"), k = Object.getOwnPropertyDescriptor, T = s("".charAt), L = s("".slice), D = s(/./.exec),
|
|
13644
|
+
var d = t(6518), n = t(3724), a = t(4576), i = t(7751), s = t(9504), U = t(9565), Z = t(4901), F = t(34), h = t(4376), o = t(9297), W = t(655), V = t(6198), Q = t(4659), m = t(9039), b = t(8235), u = t(4495), N = a.JSON, S = a.Number, G = a.SyntaxError, J = N && N.parse, X = i("Object", "keys"), k = Object.getOwnPropertyDescriptor, T = s("".charAt), L = s("".slice), D = s(/./.exec), x = s([].push), I = /^\d$/, A = /^[1-9]$/, P = /^[\d-]$/, Y = /^[\t\n\r ]$/, y = 0, z = 1, g = function(_, q) {
|
|
13645
13645
|
_ = W(_);
|
|
13646
|
-
var dl = new
|
|
13646
|
+
var dl = new w(_, 0), nl = dl.parse(), El = nl.value, rl = dl.skip(Y, nl.end);
|
|
13647
13647
|
if (rl < _.length)
|
|
13648
13648
|
throw new G('Unexpected extra character: "' + T(_, rl) + '" after the parsed data at: ' + rl);
|
|
13649
|
-
return Z(q) ?
|
|
13650
|
-
},
|
|
13649
|
+
return Z(q) ? E({ "": El }, "", q, nl) : El;
|
|
13650
|
+
}, E = function(_, q, dl, nl) {
|
|
13651
13651
|
var El = _[q], rl = nl && El === nl.value, Ft = rl && typeof nl.source == "string" ? { source: nl.source } : {}, Et, wd, ue, ae, oZ;
|
|
13652
13652
|
if (F(El)) {
|
|
13653
13653
|
var pr = h(El), wh = rl ? nl.nodes : pr ? [] : {};
|
|
13654
13654
|
if (pr)
|
|
13655
13655
|
for (Et = wh.length, ue = V(El), ae = 0; ae < ue; ae++)
|
|
13656
|
-
O(El, ae,
|
|
13656
|
+
O(El, ae, E(El, "" + ae, dl, ae < Et ? wh[ae] : void 0));
|
|
13657
13657
|
else
|
|
13658
13658
|
for (wd = X(El), ue = V(wd), ae = 0; ae < ue; ae++)
|
|
13659
|
-
oZ = wd[ae], O(El, oZ,
|
|
13659
|
+
oZ = wd[ae], O(El, oZ, E(El, oZ, dl, o(wh, oZ) ? wh[oZ] : void 0));
|
|
13660
13660
|
}
|
|
13661
13661
|
return U(dl, _, q, El, Ft);
|
|
13662
13662
|
}, O = function(_, q, dl) {
|
|
@@ -13667,12 +13667,12 @@ var lD = Object.defineProperty, KG = (e) => {
|
|
|
13667
13667
|
dl === void 0 ? delete _[q] : Q(_, q, dl);
|
|
13668
13668
|
}, K = function(_, q, dl, nl) {
|
|
13669
13669
|
this.value = _, this.end = q, this.source = dl, this.nodes = nl;
|
|
13670
|
-
},
|
|
13670
|
+
}, w = function(_, q) {
|
|
13671
13671
|
this.source = _, this.index = q;
|
|
13672
13672
|
};
|
|
13673
|
-
|
|
13673
|
+
w.prototype = {
|
|
13674
13674
|
fork: function(_) {
|
|
13675
|
-
return new
|
|
13675
|
+
return new w(this.source, _);
|
|
13676
13676
|
},
|
|
13677
13677
|
parse: function() {
|
|
13678
13678
|
var _ = this.source, q = this.skip(Y, this.index), dl = this.fork(q), nl = T(_, q);
|
|
@@ -13721,7 +13721,7 @@ var lD = Object.defineProperty, KG = (e) => {
|
|
|
13721
13721
|
break;
|
|
13722
13722
|
}
|
|
13723
13723
|
var rl = this.fork(q).parse();
|
|
13724
|
-
if (
|
|
13724
|
+
if (x(El, rl), x(nl, rl.value), q = this.until([",", "]"], rl.end), T(_, q) === ",")
|
|
13725
13725
|
dl = !0, q++;
|
|
13726
13726
|
else if (T(_, q) === "]") {
|
|
13727
13727
|
q++;
|
|
@@ -13766,12 +13766,12 @@ var lD = Object.defineProperty, KG = (e) => {
|
|
|
13766
13766
|
return J(_, function(dl, nl, El) {
|
|
13767
13767
|
q = El.source;
|
|
13768
13768
|
}), q !== _;
|
|
13769
|
-
}),
|
|
13769
|
+
}), al = u && !m(function() {
|
|
13770
13770
|
return 1 / J("-0 ") !== -1 / 0;
|
|
13771
13771
|
});
|
|
13772
13772
|
d({ target: "JSON", stat: !0, forced: ll }, {
|
|
13773
13773
|
parse: function(_, q) {
|
|
13774
|
-
return
|
|
13774
|
+
return al && !Z(q) ? J(_) : g(_, q);
|
|
13775
13775
|
}
|
|
13776
13776
|
});
|
|
13777
13777
|
}
|
|
@@ -13799,8 +13799,8 @@ var lD = Object.defineProperty, KG = (e) => {
|
|
|
13799
13799
|
var L = a(m), D = L.prototype;
|
|
13800
13800
|
if (D.constructor !== L) {
|
|
13801
13801
|
Q || s(D, "constructor", i(1, L));
|
|
13802
|
-
for (var
|
|
13803
|
-
var I = o[
|
|
13802
|
+
for (var x in o) if (U(o, x)) {
|
|
13803
|
+
var I = o[x], A = I.s;
|
|
13804
13804
|
U(L, A) || s(L, A, i(6, I.c));
|
|
13805
13805
|
}
|
|
13806
13806
|
}
|
|
@@ -17218,10 +17218,10 @@ SU = /* @__PURE__ */ new WeakMap(), ln = /* @__PURE__ */ new WeakMap(), it = /*
|
|
|
17218
17218
|
const P = Math.hypot(i, s);
|
|
17219
17219
|
X = k = Math.max(Math.min(Math.hypot(N[0] - u[0] - T, N[1] - u[1] - L) / P, 1 / i, 1 / s), U / i, Z / s);
|
|
17220
17220
|
} else b ? X = Math.max(U, Math.min(1, Math.abs(N[0] - u[0] - T))) / i : k = Math.max(Z, Math.min(1, Math.abs(N[1] - u[1] - L))) / s;
|
|
17221
|
-
const D = mt._round(i * X),
|
|
17222
|
-
S = h(...Q(D,
|
|
17221
|
+
const D = mt._round(i * X), x = mt._round(s * k);
|
|
17222
|
+
S = h(...Q(D, x));
|
|
17223
17223
|
const I = G - S[0], A = J - S[1];
|
|
17224
|
-
c(this, Fe) || R(this, Fe, [this.x, this.y, this.width, this.height]), this.width = D, this.height =
|
|
17224
|
+
c(this, Fe) || R(this, Fe, [this.x, this.y, this.width, this.height]), this.width = D, this.height = x, this.x = I, this.y = A, this.setDims(t * D, d * x), this.fixAndSetPosition(), this._onResizing();
|
|
17225
17225
|
}, iT = function() {
|
|
17226
17226
|
var e;
|
|
17227
17227
|
R(this, Ga, {
|
|
@@ -18214,9 +18214,9 @@ class kD extends NT {
|
|
|
18214
18214
|
const G = new Array(256), J = (o - h) / S, X = u / 255, k = (N - u) / (255 * S);
|
|
18215
18215
|
let T = 0;
|
|
18216
18216
|
for (let L = 0; L <= S; L++) {
|
|
18217
|
-
const D = Math.round(h + L * J),
|
|
18217
|
+
const D = Math.round(h + L * J), x = X + L * k;
|
|
18218
18218
|
for (let I = T; I <= D; I++)
|
|
18219
|
-
G[I] =
|
|
18219
|
+
G[I] = x;
|
|
18220
18220
|
T = D + 1;
|
|
18221
18221
|
}
|
|
18222
18222
|
for (let L = T; L < 256; L++)
|
|
@@ -18393,9 +18393,9 @@ function FR(e, l, t, d, n, a, i, s) {
|
|
|
18393
18393
|
const W = (U[t] + l.offsetX) * l.scaleX, V = (U[t + 1] + l.offsetY) * l.scaleY, Q = (U[d] + l.offsetX) * l.scaleX, m = (U[d + 1] + l.offsetY) * l.scaleY, b = (U[n] + l.offsetX) * l.scaleX, u = (U[n + 1] + l.offsetY) * l.scaleY;
|
|
18394
18394
|
if (V >= u)
|
|
18395
18395
|
return;
|
|
18396
|
-
const N = Z[a], S = Z[a + 1], G = Z[a + 2], J = Z[i], X = Z[i + 1], k = Z[i + 2], T = Z[s], L = Z[s + 1], D = Z[s + 2],
|
|
18397
|
-
let A, P, Y, y, z, g,
|
|
18398
|
-
for (let K =
|
|
18396
|
+
const N = Z[a], S = Z[a + 1], G = Z[a + 2], J = Z[i], X = Z[i + 1], k = Z[i + 2], T = Z[s], L = Z[s + 1], D = Z[s + 2], x = Math.round(V), I = Math.round(u);
|
|
18397
|
+
let A, P, Y, y, z, g, E, O;
|
|
18398
|
+
for (let K = x; K <= I; K++) {
|
|
18399
18399
|
if (K < m) {
|
|
18400
18400
|
const q = K < V ? 0 : (V - K) / (V - m);
|
|
18401
18401
|
A = W - (W - Q) * q, P = N - (N - J) * q, Y = S - (S - X) * q, y = G - (G - k) * q;
|
|
@@ -18403,12 +18403,12 @@ function FR(e, l, t, d, n, a, i, s) {
|
|
|
18403
18403
|
let q;
|
|
18404
18404
|
K > u ? q = 1 : m === u ? q = 0 : q = (m - K) / (m - u), A = Q - (Q - b) * q, P = J - (J - T) * q, Y = X - (X - L) * q, y = k - (k - D) * q;
|
|
18405
18405
|
}
|
|
18406
|
-
let
|
|
18407
|
-
K < V ?
|
|
18408
|
-
const ll = Math.round(Math.min(A, z)),
|
|
18406
|
+
let w;
|
|
18407
|
+
K < V ? w = 0 : K > u ? w = 1 : w = (V - K) / (V - u), z = W - (W - b) * w, g = N - (N - T) * w, E = S - (S - L) * w, O = G - (G - D) * w;
|
|
18408
|
+
const ll = Math.round(Math.min(A, z)), al = Math.round(Math.max(A, z));
|
|
18409
18409
|
let _ = h * K + ll * 4;
|
|
18410
|
-
for (let q = ll; q <=
|
|
18411
|
-
|
|
18410
|
+
for (let q = ll; q <= al; q++)
|
|
18411
|
+
w = (A - q) / (A - z), w < 0 ? w = 0 : w > 1 && (w = 1), F[_++] = P - (P - g) * w | 0, F[_++] = Y - (Y - E) * w | 0, F[_++] = y - (y - O) * w | 0, F[_++] = 255;
|
|
18412
18412
|
}
|
|
18413
18413
|
}
|
|
18414
18414
|
function ED(e, l, t) {
|
|
@@ -18513,14 +18513,14 @@ const H2 = {
|
|
|
18513
18513
|
let S = V, G = Q, J = !1, X = !1;
|
|
18514
18514
|
const k = Math.ceil(U * u), T = Math.ceil(Z * N), L = Math.ceil(V * u), D = Math.ceil(Q * N);
|
|
18515
18515
|
k >= L ? S = U : J = !0, T >= D ? G = Z : X = !0;
|
|
18516
|
-
const
|
|
18517
|
-
if (Y.groupLevel = l.groupLevel, this.setFillAndStrokeStyleToContext(Y, n, i), P.translate(-
|
|
18516
|
+
const x = this.getSizeAndScale(S, this.ctx.canvas.width, u), I = this.getSizeAndScale(G, this.ctx.canvas.height, N), A = l.cachedCanvases.getCanvas("pattern", x.size, I.size), P = A.context, Y = s.createCanvasGraphics(P);
|
|
18517
|
+
if (Y.groupLevel = l.groupLevel, this.setFillAndStrokeStyleToContext(Y, n, i), P.translate(-x.scale * F, -I.scale * h), Y.transform(x.scale, 0, 0, I.scale, 0, 0), P.save(), this.clipBbox(Y, F, h, o, W), Y.baseTransform = at(Y.ctx), Y.executeOperatorList(d), Y.endDrawing(), P.restore(), J || X) {
|
|
18518
18518
|
const y = A.canvas;
|
|
18519
18519
|
J && (S = U), X && (G = Z);
|
|
18520
|
-
const z = this.getSizeAndScale(S, this.ctx.canvas.width, u), g = this.getSizeAndScale(G, this.ctx.canvas.height, N),
|
|
18520
|
+
const z = this.getSizeAndScale(S, this.ctx.canvas.width, u), g = this.getSizeAndScale(G, this.ctx.canvas.height, N), E = z.size, O = g.size, K = l.cachedCanvases.getCanvas("pattern-workaround", E, O), w = K.context, ll = J ? Math.floor(V / U) : 0, al = X ? Math.floor(Q / Z) : 0;
|
|
18521
18521
|
for (let _ = 0; _ <= ll; _++)
|
|
18522
|
-
for (let q = 0; q <=
|
|
18523
|
-
|
|
18522
|
+
for (let q = 0; q <= al; q++)
|
|
18523
|
+
w.drawImage(y, E * _, O * q, E, O, 0, 0, E, O);
|
|
18524
18524
|
return {
|
|
18525
18525
|
canvas: K.canvas,
|
|
18526
18526
|
scaleX: z.scale,
|
|
@@ -18531,7 +18531,7 @@ const H2 = {
|
|
|
18531
18531
|
}
|
|
18532
18532
|
return {
|
|
18533
18533
|
canvas: A.canvas,
|
|
18534
|
-
scaleX:
|
|
18534
|
+
scaleX: x.scale,
|
|
18535
18535
|
scaleY: I.scale,
|
|
18536
18536
|
offsetX: F,
|
|
18537
18537
|
offsetY: h
|
|
@@ -19315,24 +19315,24 @@ const qD = class GT {
|
|
|
19315
19315
|
}
|
|
19316
19316
|
let k = !1;
|
|
19317
19317
|
const T = (X.isSpace ? U : 0) + s, L = X.fontChar, D = X.accent;
|
|
19318
|
-
let
|
|
19318
|
+
let x, I, A = X.width;
|
|
19319
19319
|
if (o) {
|
|
19320
19320
|
const Y = X.vmetric || V, y = -(X.vmetric ? Y[1] : A * 0.5) * Q, z = Y[2] * Q;
|
|
19321
|
-
A = Y ? -Y[0] : A,
|
|
19321
|
+
A = Y ? -Y[0] : A, x = y / i, I = (G + z) / i;
|
|
19322
19322
|
} else
|
|
19323
|
-
|
|
19323
|
+
x = G / i, I = 0;
|
|
19324
19324
|
if (d.remeasure && A > 0) {
|
|
19325
19325
|
const Y = a.measureText(L).width * 1e3 / n * i;
|
|
19326
19326
|
if (A < Y && this.isFontSubpixelAAEnabled) {
|
|
19327
19327
|
const y = A / Y;
|
|
19328
|
-
k = !0, a.save(), a.scale(y, 1),
|
|
19329
|
-
} else A !== Y && (
|
|
19328
|
+
k = !0, a.save(), a.scale(y, 1), x /= y;
|
|
19329
|
+
} else A !== Y && (x += (A - Y) / 2e3 * n / i);
|
|
19330
19330
|
}
|
|
19331
19331
|
if (this.contentVisible && (X.isInFont || d.missingFile)) {
|
|
19332
19332
|
if (m && !D)
|
|
19333
|
-
a.fillText(L,
|
|
19334
|
-
else if (this.paintChar(L,
|
|
19335
|
-
const Y =
|
|
19333
|
+
a.fillText(L, x, I);
|
|
19334
|
+
else if (this.paintChar(L, x, I, b, u), D) {
|
|
19335
|
+
const Y = x + n * D.offset.x / i, y = I - n * D.offset.y / i;
|
|
19336
19336
|
this.paintChar(D.fontChar, Y, y, b, u);
|
|
19337
19337
|
}
|
|
19338
19338
|
}
|
|
@@ -21121,9 +21121,9 @@ function Gw(e = {}) {
|
|
|
21121
21121
|
docId: t
|
|
21122
21122
|
} = l, d = e.url ? Tw(e.url) : null, n = e.data ? Xw(e.data) : null, a = e.httpHeaders || null, i = e.withCredentials === !0, s = e.password ?? null, U = e.range instanceof IT ? e.range : null, Z = Number.isInteger(e.rangeChunkSize) && e.rangeChunkSize > 0 ? e.rangeChunkSize : Nw;
|
|
21123
21123
|
let F = e.worker instanceof TW ? e.worker : null;
|
|
21124
|
-
const h = e.verbosity, o = typeof e.docBaseUrl == "string" && !qQ(e.docBaseUrl) ? e.docBaseUrl : null, W = typeof e.cMapUrl == "string" ? e.cMapUrl : null, V = e.cMapPacked !== !1, Q = e.CMapReaderFactory || Mw, m = typeof e.standardFontDataUrl == "string" ? e.standardFontDataUrl : null, b = e.StandardFontDataFactory || Jw, u = e.stopAtErrors !== !0, N = Number.isInteger(e.maxImageSize) && e.maxImageSize > -1 ? e.maxImageSize : -1, S = e.isEvalSupported !== !1, G = typeof e.isOffscreenCanvasSupported == "boolean" ? e.isOffscreenCanvasSupported : !me, J = typeof e.isImageDecoderSupported == "boolean" ? e.isImageDecoderSupported : !me && (Je.platform.isFirefox || !globalThis.chrome), X = Number.isInteger(e.canvasMaxAreaInBytes) ? e.canvasMaxAreaInBytes : -1, k = typeof e.disableFontFace == "boolean" ? e.disableFontFace : me, T = e.fontExtraProperties === !0, L = e.enableXfa === !0, D = e.ownerDocument || globalThis.document,
|
|
21124
|
+
const h = e.verbosity, o = typeof e.docBaseUrl == "string" && !qQ(e.docBaseUrl) ? e.docBaseUrl : null, W = typeof e.cMapUrl == "string" ? e.cMapUrl : null, V = e.cMapPacked !== !1, Q = e.CMapReaderFactory || Mw, m = typeof e.standardFontDataUrl == "string" ? e.standardFontDataUrl : null, b = e.StandardFontDataFactory || Jw, u = e.stopAtErrors !== !0, N = Number.isInteger(e.maxImageSize) && e.maxImageSize > -1 ? e.maxImageSize : -1, S = e.isEvalSupported !== !1, G = typeof e.isOffscreenCanvasSupported == "boolean" ? e.isOffscreenCanvasSupported : !me, J = typeof e.isImageDecoderSupported == "boolean" ? e.isImageDecoderSupported : !me && (Je.platform.isFirefox || !globalThis.chrome), X = Number.isInteger(e.canvasMaxAreaInBytes) ? e.canvasMaxAreaInBytes : -1, k = typeof e.disableFontFace == "boolean" ? e.disableFontFace : me, T = e.fontExtraProperties === !0, L = e.enableXfa === !0, D = e.ownerDocument || globalThis.document, x = e.disableRange === !0, I = e.disableStream === !0, A = e.disableAutoFetch === !0, P = e.pdfBug === !0, Y = e.CanvasFactory || pw, y = e.FilterFactory || Sw, z = e.enableHWA === !0, g = U ? U.length : e.length ?? NaN, E = typeof e.useSystemFonts == "boolean" ? e.useSystemFonts : !me && !k, O = typeof e.useWorkerFetch == "boolean" ? e.useWorkerFetch : Q === uT && b === pT && W && m && mF(W, document.baseURI) && mF(m, document.baseURI), K = null;
|
|
21125
21125
|
sD(h);
|
|
21126
|
-
const
|
|
21126
|
+
const w = {
|
|
21127
21127
|
canvasFactory: new Y({
|
|
21128
21128
|
ownerDocument: D,
|
|
21129
21129
|
enableHWA: z
|
|
@@ -21166,11 +21166,11 @@ function Gw(e = {}) {
|
|
|
21166
21166
|
isImageDecoderSupported: J,
|
|
21167
21167
|
canvasMaxAreaInBytes: X,
|
|
21168
21168
|
fontExtraProperties: T,
|
|
21169
|
-
useSystemFonts:
|
|
21169
|
+
useSystemFonts: E,
|
|
21170
21170
|
cMapUrl: O ? W : null,
|
|
21171
21171
|
standardFontDataUrl: O ? m : null
|
|
21172
21172
|
}
|
|
21173
|
-
},
|
|
21173
|
+
}, al = {
|
|
21174
21174
|
disableFontFace: k,
|
|
21175
21175
|
fontExtraProperties: T,
|
|
21176
21176
|
ownerDocument: D,
|
|
@@ -21190,7 +21190,7 @@ function Gw(e = {}) {
|
|
|
21190
21190
|
let q;
|
|
21191
21191
|
if (U)
|
|
21192
21192
|
q = new ew(U, {
|
|
21193
|
-
disableRange:
|
|
21193
|
+
disableRange: x,
|
|
21194
21194
|
disableStream: I
|
|
21195
21195
|
});
|
|
21196
21196
|
else if (!n) {
|
|
@@ -21212,7 +21212,7 @@ function Gw(e = {}) {
|
|
|
21212
21212
|
httpHeaders: a,
|
|
21213
21213
|
withCredentials: i,
|
|
21214
21214
|
rangeChunkSize: Z,
|
|
21215
|
-
disableRange:
|
|
21215
|
+
disableRange: x,
|
|
21216
21216
|
disableStream: I
|
|
21217
21217
|
});
|
|
21218
21218
|
}
|
|
@@ -21221,7 +21221,7 @@ function Gw(e = {}) {
|
|
|
21221
21221
|
throw new Error("Loading aborted");
|
|
21222
21222
|
if (F.destroyed)
|
|
21223
21223
|
throw new Error("Worker was destroyed");
|
|
21224
|
-
const nl = new JF(t, dl, F.port), El = new zw(nl, l, q,
|
|
21224
|
+
const nl = new JF(t, dl, F.port), El = new zw(nl, l, q, al, w);
|
|
21225
21225
|
l._transport = El, nl.send("Ready", null);
|
|
21226
21226
|
});
|
|
21227
21227
|
}).catch(l._capability.reject), l;
|
|
@@ -24917,7 +24917,7 @@ dn = /* @__PURE__ */ new WeakMap(), Fd = /* @__PURE__ */ new WeakMap(), gW = /*
|
|
|
24917
24917
|
return this._hasBeenMoved || e.value !== l || e.fontSize !== t || e.color.some((a, i) => a !== d[i]) || e.pageIndex !== n;
|
|
24918
24918
|
}, p(Bn, ps), Rl(Bn, "_freeTextDefaultContent", ""), Rl(Bn, "_internalPadding", 0), Rl(Bn, "_defaultColor", null), Rl(Bn, "_defaultFontSize", 10), Rl(Bn, "_type", "freetext"), Rl(Bn, "_editorType", Tl.FREETEXT);
|
|
24919
24919
|
let iE = Bn;
|
|
24920
|
-
class
|
|
24920
|
+
class sl {
|
|
24921
24921
|
toSVGPath() {
|
|
24922
24922
|
lt("Abstract method `toSVGPath` must be implemented.");
|
|
24923
24923
|
}
|
|
@@ -24976,7 +24976,7 @@ class il {
|
|
|
24976
24976
|
return [(l + 5 * d) / 6, (t + 5 * n) / 6, (5 * d + a) / 6, (5 * n + i) / 6, (d + a) / 2, (n + i) / 2];
|
|
24977
24977
|
}
|
|
24978
24978
|
}
|
|
24979
|
-
Rl(
|
|
24979
|
+
Rl(sl, "PRECISION", 1e-4);
|
|
24980
24980
|
var od, nn, r0, p0, kn, Bl, Yc, Bc, OW, vW, M0, xF, Pi, KW, uR, zN, Wd, vZ, eX, dX, nX, aX, iX, sX;
|
|
24981
24981
|
const xU = class LN {
|
|
24982
24982
|
constructor({
|
|
@@ -25075,7 +25075,7 @@ od = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakMap(), r0 = /*
|
|
|
25075
25075
|
}, p(xU, KW, 8), p(xU, uR, 2), p(xU, zN, c(xU, KW) + c(xU, uR));
|
|
25076
25076
|
let UX = xU;
|
|
25077
25077
|
var gF, Wc, ga, fW, dd, HW, St, IN, cX;
|
|
25078
|
-
class ZX extends
|
|
25078
|
+
class ZX extends sl {
|
|
25079
25079
|
constructor(l, t, d, n, a, i) {
|
|
25080
25080
|
super(), p(this, IN), p(this, gF), p(this, Wc, new Float32Array(4)), p(this, ga), p(this, fW), p(this, dd), p(this, HW), p(this, St), R(this, St, l), R(this, dd, t), R(this, gF, d), R(this, HW, n), R(this, ga, a), R(this, fW, i), this.lastPoint = [NaN, NaN], r(this, IN, cX).call(this, i);
|
|
25081
25081
|
const [s, U, Z, F] = c(this, Wc);
|
|
@@ -25100,16 +25100,16 @@ class ZX extends il {
|
|
|
25100
25100
|
let U, Z;
|
|
25101
25101
|
switch (a) {
|
|
25102
25102
|
case 0:
|
|
25103
|
-
U =
|
|
25103
|
+
U = sl._rescale(c(this, St), l, n, i, -s), Z = sl._rescale(c(this, dd), l, n, i, -s);
|
|
25104
25104
|
break;
|
|
25105
25105
|
case 90:
|
|
25106
|
-
U =
|
|
25106
|
+
U = sl._rescaleAndSwap(c(this, St), l, t, i, s), Z = sl._rescaleAndSwap(c(this, dd), l, t, i, s);
|
|
25107
25107
|
break;
|
|
25108
25108
|
case 180:
|
|
25109
|
-
U =
|
|
25109
|
+
U = sl._rescale(c(this, St), d, t, -i, s), Z = sl._rescale(c(this, dd), d, t, -i, s);
|
|
25110
25110
|
break;
|
|
25111
25111
|
case 270:
|
|
25112
|
-
U =
|
|
25112
|
+
U = sl._rescaleAndSwap(c(this, St), d, n, -i, -s), Z = sl._rescaleAndSwap(c(this, dd), d, n, -i, -s);
|
|
25113
25113
|
break;
|
|
25114
25114
|
}
|
|
25115
25115
|
return {
|
|
@@ -25270,7 +25270,7 @@ FQ = /* @__PURE__ */ new WeakMap(), hQ = /* @__PURE__ */ new WeakMap(), Ai = /*
|
|
|
25270
25270
|
return n;
|
|
25271
25271
|
};
|
|
25272
25272
|
var PW, jF;
|
|
25273
|
-
class sE extends
|
|
25273
|
+
class sE extends sl {
|
|
25274
25274
|
constructor(l, t, d) {
|
|
25275
25275
|
super(), p(this, PW), p(this, jF), R(this, jF, l), R(this, PW, t), this.lastPoint = d;
|
|
25276
25276
|
}
|
|
@@ -26524,7 +26524,7 @@ class FE {
|
|
|
26524
26524
|
path: {
|
|
26525
26525
|
d: this.toSVGPath()
|
|
26526
26526
|
}
|
|
26527
|
-
}) : (isNaN(c(this, zn)[0]) && c(this, _t).splice(6, 6), c(this, zn).set([d, n, a, i, l, t], 0), c(this, _t).push(...
|
|
26527
|
+
}) : (isNaN(c(this, zn)[0]) && c(this, _t).splice(6, 6), c(this, zn).set([d, n, a, i, l, t], 0), c(this, _t).push(...sl.createBezierPoints(d, n, a, i, l, t)), {
|
|
26528
26528
|
path: {
|
|
26529
26529
|
d: this.toSVGPath()
|
|
26530
26530
|
}
|
|
@@ -26575,7 +26575,7 @@ class FE {
|
|
|
26575
26575
|
};
|
|
26576
26576
|
}
|
|
26577
26577
|
toSVGPath() {
|
|
26578
|
-
const l =
|
|
26578
|
+
const l = sl.svgRound(c(this, _t)[4]), t = sl.svgRound(c(this, _t)[5]);
|
|
26579
26579
|
if (c(this, ye).length === 2)
|
|
26580
26580
|
return R(this, $t, `${c(this, $t)} M ${l} ${t} Z`), c(this, $t);
|
|
26581
26581
|
if (c(this, ye).length <= 6) {
|
|
@@ -26583,13 +26583,13 @@ class FE {
|
|
|
26583
26583
|
R(this, $t, `${c(this, $t).slice(0, n)} M ${l} ${t}`), R(this, pd, 6);
|
|
26584
26584
|
}
|
|
26585
26585
|
if (c(this, ye).length === 4) {
|
|
26586
|
-
const n =
|
|
26586
|
+
const n = sl.svgRound(c(this, _t)[10]), a = sl.svgRound(c(this, _t)[11]);
|
|
26587
26587
|
return R(this, $t, `${c(this, $t)} L ${n} ${a}`), R(this, pd, 12), c(this, $t);
|
|
26588
26588
|
}
|
|
26589
26589
|
const d = [];
|
|
26590
26590
|
c(this, pd) === 0 && (d.push(`M ${l} ${t}`), R(this, pd, 6));
|
|
26591
26591
|
for (let n = c(this, pd), a = c(this, _t).length; n < a; n += 6) {
|
|
26592
|
-
const [i, s, U, Z, F, h] = c(this, _t).slice(n, n + 6).map(
|
|
26592
|
+
const [i, s, U, Z, F, h] = c(this, _t).slice(n, n + 6).map(sl.svgRound);
|
|
26593
26593
|
d.push(`C${i} ${s} ${U} ${Z} ${F} ${h}`);
|
|
26594
26594
|
}
|
|
26595
26595
|
return R(this, $t, c(this, $t) + d.join(" ")), R(this, pd, c(this, _t).length), c(this, $t);
|
|
@@ -26611,10 +26611,10 @@ class FE {
|
|
|
26611
26611
|
}
|
|
26612
26612
|
}
|
|
26613
26613
|
zn = /* @__PURE__ */ new WeakMap(), _t = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), uc = /* @__PURE__ */ new WeakMap(), fF = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakMap(), $t = /* @__PURE__ */ new WeakMap(), pd = /* @__PURE__ */ new WeakMap(), OU = /* @__PURE__ */ new WeakMap(), Nc = /* @__PURE__ */ new WeakMap(), bc = /* @__PURE__ */ new WeakMap(), HF = /* @__PURE__ */ new WeakSet(), $W = function(e, l) {
|
|
26614
|
-
return
|
|
26614
|
+
return sl._normalizePoint(e, l, c(this, Nc), c(this, bc), c(this, uc));
|
|
26615
26615
|
};
|
|
26616
26616
|
var Le, lV, mQ, sd, vn, Kn, y0, Y0, B0, _e, _n, pX, MX, SX;
|
|
26617
|
-
const hE = class JX extends
|
|
26617
|
+
const hE = class JX extends sl {
|
|
26618
26618
|
constructor() {
|
|
26619
26619
|
super(...arguments), p(this, _e), p(this, Le), p(this, lV, 0), p(this, mQ), p(this, sd), p(this, vn), p(this, Kn), p(this, y0), p(this, Y0), p(this, B0);
|
|
26620
26620
|
}
|
|
@@ -26640,16 +26640,16 @@ const hE = class JX extends il {
|
|
|
26640
26640
|
for (const {
|
|
26641
26641
|
line: t
|
|
26642
26642
|
} of c(this, sd)) {
|
|
26643
|
-
if (l.push(`M${
|
|
26643
|
+
if (l.push(`M${sl.svgRound(t[4])} ${sl.svgRound(t[5])}`), t.length === 6) {
|
|
26644
26644
|
l.push("Z");
|
|
26645
26645
|
continue;
|
|
26646
26646
|
}
|
|
26647
26647
|
if (t.length === 12) {
|
|
26648
|
-
l.push(`L${
|
|
26648
|
+
l.push(`L${sl.svgRound(t[10])} ${sl.svgRound(t[11])}`);
|
|
26649
26649
|
continue;
|
|
26650
26650
|
}
|
|
26651
26651
|
for (let d = 6, n = t.length; d < n; d += 6) {
|
|
26652
|
-
const [a, i, s, U, Z, F] = t.subarray(d, d + 6).map(
|
|
26652
|
+
const [a, i, s, U, Z, F] = t.subarray(d, d + 6).map(sl.svgRound);
|
|
26653
26653
|
l.push(`C${a} ${i} ${s} ${U} ${Z} ${F}`);
|
|
26654
26654
|
}
|
|
26655
26655
|
}
|
|
@@ -26660,16 +26660,16 @@ const hE = class JX extends il {
|
|
|
26660
26660
|
let o, W, V, Q, m, b, u, N, S;
|
|
26661
26661
|
switch (c(this, Y0)) {
|
|
26662
26662
|
case 0:
|
|
26663
|
-
S =
|
|
26663
|
+
S = sl._rescale, o = l, W = t + n, V = d, Q = -n, m = l + U * d, b = t + (1 - Z - h) * n, u = l + (U + F) * d, N = t + (1 - Z) * n;
|
|
26664
26664
|
break;
|
|
26665
26665
|
case 90:
|
|
26666
|
-
S =
|
|
26666
|
+
S = sl._rescaleAndSwap, o = l, W = t, V = d, Q = n, m = l + Z * d, b = t + U * n, u = l + (Z + h) * d, N = t + (U + F) * n;
|
|
26667
26667
|
break;
|
|
26668
26668
|
case 180:
|
|
26669
|
-
S =
|
|
26669
|
+
S = sl._rescale, o = l + d, W = t, V = -d, Q = n, m = l + (1 - U - F) * d, b = t + Z * n, u = l + (1 - U) * d, N = t + (Z + h) * n;
|
|
26670
26670
|
break;
|
|
26671
26671
|
case 270:
|
|
26672
|
-
S =
|
|
26672
|
+
S = sl._rescaleAndSwap, o = l + d, W = t + n, V = -d, Q = -n, m = l + (1 - Z - h) * d, b = t + (1 - U - F) * n, u = l + (1 - Z) * d, N = t + (1 - U) * n;
|
|
26673
26673
|
break;
|
|
26674
26674
|
}
|
|
26675
26675
|
for (const {
|
|
@@ -26695,16 +26695,16 @@ const hE = class JX extends il {
|
|
|
26695
26695
|
let h, o, W, V, Q;
|
|
26696
26696
|
switch (U) {
|
|
26697
26697
|
case 0:
|
|
26698
|
-
Q =
|
|
26698
|
+
Q = sl._rescale, h = -l / d, o = t / n + 1, W = 1 / d, V = -1 / n;
|
|
26699
26699
|
break;
|
|
26700
26700
|
case 90:
|
|
26701
|
-
Q =
|
|
26701
|
+
Q = sl._rescaleAndSwap, h = -t / n, o = -l / d, W = 1 / n, V = 1 / d;
|
|
26702
26702
|
break;
|
|
26703
26703
|
case 180:
|
|
26704
|
-
Q =
|
|
26704
|
+
Q = sl._rescale, h = l / d + 1, o = -t / n, W = -1 / d, V = 1 / n;
|
|
26705
26705
|
break;
|
|
26706
26706
|
case 270:
|
|
26707
|
-
Q =
|
|
26707
|
+
Q = sl._rescaleAndSwap, h = t / n + 1, o = l / d + 1, W = -1 / n, V = -1 / d;
|
|
26708
26708
|
break;
|
|
26709
26709
|
}
|
|
26710
26710
|
if (!i) {
|
|
@@ -26725,7 +26725,7 @@ const hE = class JX extends il {
|
|
|
26725
26725
|
N.set([NaN, NaN, NaN, NaN, S, G], 0);
|
|
26726
26726
|
for (let k = 4; k < u; k += 2) {
|
|
26727
26727
|
const T = b[k], L = b[k + 1];
|
|
26728
|
-
N.set(
|
|
26728
|
+
N.set(sl.createBezierPoints(S, G, J, X, T, L), (k - 2) * 3), [S, G, J, X] = [J, X, T, L];
|
|
26729
26729
|
}
|
|
26730
26730
|
}
|
|
26731
26731
|
}
|
|
@@ -26757,7 +26757,7 @@ const hE = class JX extends il {
|
|
|
26757
26757
|
};
|
|
26758
26758
|
}
|
|
26759
26759
|
get viewBox() {
|
|
26760
|
-
return c(this, Le).map(
|
|
26760
|
+
return c(this, Le).map(sl.svgRound).join(" ");
|
|
26761
26761
|
}
|
|
26762
26762
|
get defaultProperties() {
|
|
26763
26763
|
const [l, t] = c(this, Le);
|
|
@@ -26766,7 +26766,7 @@ const hE = class JX extends il {
|
|
|
26766
26766
|
viewBox: this.viewBox
|
|
26767
26767
|
},
|
|
26768
26768
|
path: {
|
|
26769
|
-
"transform-origin": `${
|
|
26769
|
+
"transform-origin": `${sl.svgRound(l)} ${sl.svgRound(t)}`
|
|
26770
26770
|
}
|
|
26771
26771
|
};
|
|
26772
26772
|
}
|
|
@@ -26786,15 +26786,15 @@ const hE = class JX extends il {
|
|
|
26786
26786
|
default:
|
|
26787
26787
|
return "";
|
|
26788
26788
|
}
|
|
26789
|
-
return `matrix(${d} ${n} ${a} ${i} ${
|
|
26789
|
+
return `matrix(${d} ${n} ${a} ${i} ${sl.svgRound(s)} ${sl.svgRound(U)})`;
|
|
26790
26790
|
}
|
|
26791
26791
|
getPathResizingSVGProperties([l, t, d, n]) {
|
|
26792
26792
|
const [a, i] = r(this, _e, _n).call(this), [s, U, Z, F] = c(this, Le);
|
|
26793
|
-
if (Math.abs(Z - a) <=
|
|
26793
|
+
if (Math.abs(Z - a) <= sl.PRECISION || Math.abs(F - i) <= sl.PRECISION) {
|
|
26794
26794
|
const Q = l + d / 2 - (s + Z / 2), m = t + n / 2 - (U + F / 2);
|
|
26795
26795
|
return {
|
|
26796
26796
|
path: {
|
|
26797
|
-
"transform-origin": `${
|
|
26797
|
+
"transform-origin": `${sl.svgRound(l)} ${sl.svgRound(t)}`,
|
|
26798
26798
|
transform: `${this.rotationTransform} translate(${Q} ${m})`
|
|
26799
26799
|
}
|
|
26800
26800
|
};
|
|
@@ -26802,26 +26802,26 @@ const hE = class JX extends il {
|
|
|
26802
26802
|
const h = (d - 2 * a) / (Z - 2 * a), o = (n - 2 * i) / (F - 2 * i), W = Z / d, V = F / n;
|
|
26803
26803
|
return {
|
|
26804
26804
|
path: {
|
|
26805
|
-
"transform-origin": `${
|
|
26806
|
-
transform: `${this.rotationTransform} scale(${W} ${V}) translate(${
|
|
26805
|
+
"transform-origin": `${sl.svgRound(s)} ${sl.svgRound(U)}`,
|
|
26806
|
+
transform: `${this.rotationTransform} scale(${W} ${V}) translate(${sl.svgRound(a)} ${sl.svgRound(i)}) scale(${h} ${o}) translate(${sl.svgRound(-a)} ${sl.svgRound(-i)})`
|
|
26807
26807
|
}
|
|
26808
26808
|
};
|
|
26809
26809
|
}
|
|
26810
26810
|
getPathResizedSVGProperties([l, t, d, n]) {
|
|
26811
26811
|
const [a, i] = r(this, _e, _n).call(this), s = c(this, Le), [U, Z, F, h] = s;
|
|
26812
|
-
if (s[0] = l, s[1] = t, s[2] = d, s[3] = n, Math.abs(F - a) <=
|
|
26812
|
+
if (s[0] = l, s[1] = t, s[2] = d, s[3] = n, Math.abs(F - a) <= sl.PRECISION || Math.abs(h - i) <= sl.PRECISION) {
|
|
26813
26813
|
const m = l + d / 2 - (U + F / 2), b = t + n / 2 - (Z + h / 2);
|
|
26814
26814
|
for (const {
|
|
26815
26815
|
line: u,
|
|
26816
26816
|
points: N
|
|
26817
26817
|
} of c(this, sd))
|
|
26818
|
-
|
|
26818
|
+
sl._translate(u, m, b, u), sl._translate(N, m, b, N);
|
|
26819
26819
|
return {
|
|
26820
26820
|
root: {
|
|
26821
26821
|
viewBox: this.viewBox
|
|
26822
26822
|
},
|
|
26823
26823
|
path: {
|
|
26824
|
-
"transform-origin": `${
|
|
26824
|
+
"transform-origin": `${sl.svgRound(l)} ${sl.svgRound(t)}`,
|
|
26825
26825
|
transform: this.rotationTransform || null,
|
|
26826
26826
|
d: this.toSVGPath()
|
|
26827
26827
|
}
|
|
@@ -26833,13 +26833,13 @@ const hE = class JX extends il {
|
|
|
26833
26833
|
line: m,
|
|
26834
26834
|
points: b
|
|
26835
26835
|
} of c(this, sd))
|
|
26836
|
-
|
|
26836
|
+
sl._rescale(m, V, Q, o, W, m), sl._rescale(b, V, Q, o, W, b);
|
|
26837
26837
|
return {
|
|
26838
26838
|
root: {
|
|
26839
26839
|
viewBox: this.viewBox
|
|
26840
26840
|
},
|
|
26841
26841
|
path: {
|
|
26842
|
-
"transform-origin": `${
|
|
26842
|
+
"transform-origin": `${sl.svgRound(l)} ${sl.svgRound(t)}`,
|
|
26843
26843
|
transform: this.rotationTransform || null,
|
|
26844
26844
|
d: this.toSVGPath()
|
|
26845
26845
|
}
|
|
@@ -26852,7 +26852,7 @@ const hE = class JX extends il {
|
|
|
26852
26852
|
line: Z,
|
|
26853
26853
|
points: F
|
|
26854
26854
|
} of c(this, sd))
|
|
26855
|
-
|
|
26855
|
+
sl._translate(Z, s, U, Z), sl._translate(F, s, U, F);
|
|
26856
26856
|
else {
|
|
26857
26857
|
const Z = c(this, vn) / n, F = c(this, Kn) / a;
|
|
26858
26858
|
R(this, vn, n), R(this, Kn, a);
|
|
@@ -26860,7 +26860,7 @@ const hE = class JX extends il {
|
|
|
26860
26860
|
line: h,
|
|
26861
26861
|
points: o
|
|
26862
26862
|
} of c(this, sd))
|
|
26863
|
-
|
|
26863
|
+
sl._rescale(h, s, U, Z, F, h), sl._rescale(o, s, U, Z, F, o);
|
|
26864
26864
|
i[2] *= Z, i[3] *= F;
|
|
26865
26865
|
}
|
|
26866
26866
|
return i[0] = l, i[1] = t, {
|
|
@@ -26869,7 +26869,7 @@ const hE = class JX extends il {
|
|
|
26869
26869
|
},
|
|
26870
26870
|
path: {
|
|
26871
26871
|
d: this.toSVGPath(),
|
|
26872
|
-
"transform-origin": `${
|
|
26872
|
+
"transform-origin": `${sl.svgRound(l)} ${sl.svgRound(t)}`
|
|
26873
26873
|
}
|
|
26874
26874
|
};
|
|
26875
26875
|
}
|
|
@@ -26884,7 +26884,7 @@ const hE = class JX extends il {
|
|
|
26884
26884
|
},
|
|
26885
26885
|
path: {
|
|
26886
26886
|
d: this.toSVGPath(),
|
|
26887
|
-
"transform-origin": `${
|
|
26887
|
+
"transform-origin": `${sl.svgRound(l[0])} ${sl.svgRound(l[1])}`,
|
|
26888
26888
|
transform: this.rotationTransform || null
|
|
26889
26889
|
},
|
|
26890
26890
|
bbox: l
|
|
@@ -28188,7 +28188,7 @@ function BX({
|
|
|
28188
28188
|
else
|
|
28189
28189
|
throw s;
|
|
28190
28190
|
}
|
|
28191
|
-
}),
|
|
28191
|
+
}), Ul(n, (i, s) => {
|
|
28192
28192
|
s == null || s.destroy();
|
|
28193
28193
|
}), JS(() => {
|
|
28194
28194
|
var i, s, U, Z;
|
|
@@ -28437,7 +28437,7 @@ function kE({
|
|
|
28437
28437
|
break;
|
|
28438
28438
|
if (L <= a || J >= i || T <= s || G >= U)
|
|
28439
28439
|
continue;
|
|
28440
|
-
const D = Math.max(0, a - J) + Math.max(0, L - i),
|
|
28440
|
+
const D = Math.max(0, a - J) + Math.max(0, L - i), x = Math.max(0, s - G) + Math.max(0, T - U), I = (k - D) / k, A = (X - x) / X, P = I * A * 100 | 0;
|
|
28441
28441
|
h.push({
|
|
28442
28442
|
id: N.id,
|
|
28443
28443
|
x: G,
|
|
@@ -28635,7 +28635,7 @@ function IR(e) {
|
|
|
28635
28635
|
const i = [0, 0];
|
|
28636
28636
|
let s = 0, U = 0, Z = 0, F = 0, h = 0, o = !1;
|
|
28637
28637
|
a = a.replace(d, (Q, m, b, u, N, S, G, J, X, k, T) => {
|
|
28638
|
-
var L, D,
|
|
28638
|
+
var L, D, x;
|
|
28639
28639
|
if (T -= F, m) {
|
|
28640
28640
|
const I = XM[m], A = I.length;
|
|
28641
28641
|
for (let P = 1; P < A; P++)
|
|
@@ -28675,7 +28675,7 @@ function IR(e) {
|
|
|
28675
28675
|
}
|
|
28676
28676
|
if (X)
|
|
28677
28677
|
return i.push(T - Z + 1, Z - 1), Z -= 1, F += 1, h += 1, " ";
|
|
28678
|
-
if (T + h === ((
|
|
28678
|
+
if (T + h === ((x = l[U]) == null ? void 0 : x[1])) {
|
|
28679
28679
|
const I = l[U][0] - 1;
|
|
28680
28680
|
++U;
|
|
28681
28681
|
for (let A = 1; A <= I; A++)
|
|
@@ -29892,8 +29892,8 @@ class _9 {
|
|
|
29892
29892
|
}
|
|
29893
29893
|
break;
|
|
29894
29894
|
}
|
|
29895
|
-
let D = T.length - 1,
|
|
29896
|
-
typeof
|
|
29895
|
+
let D = T.length - 1, x = T[D];
|
|
29896
|
+
typeof x == "string" && (T[D] = X(x, AM));
|
|
29897
29897
|
let I = [];
|
|
29898
29898
|
for (let A of T)
|
|
29899
29899
|
A instanceof qM && (A = A.value.slice(0, A.value.length - L)), A && I.push(A);
|
|
@@ -29925,19 +29925,19 @@ class _9 {
|
|
|
29925
29925
|
name: L
|
|
29926
29926
|
};
|
|
29927
29927
|
if (a(K9)) {
|
|
29928
|
-
let
|
|
29928
|
+
let x = V();
|
|
29929
29929
|
if (T === "-")
|
|
29930
29930
|
return {
|
|
29931
29931
|
type: "term",
|
|
29932
29932
|
name: L,
|
|
29933
29933
|
attr: D,
|
|
29934
|
-
args:
|
|
29934
|
+
args: x
|
|
29935
29935
|
};
|
|
29936
29936
|
if (w9.test(L))
|
|
29937
29937
|
return {
|
|
29938
29938
|
type: "func",
|
|
29939
29939
|
name: L,
|
|
29940
|
-
args:
|
|
29940
|
+
args: x
|
|
29941
29941
|
};
|
|
29942
29942
|
throw new SyntaxError("Function names must be all upper-case");
|
|
29943
29943
|
}
|
|
@@ -29978,11 +29978,11 @@ class _9 {
|
|
|
29978
29978
|
let T = [], L = 0, D;
|
|
29979
29979
|
for (; d(I9); ) {
|
|
29980
29980
|
n("*") && (D = L);
|
|
29981
|
-
let
|
|
29981
|
+
let x = b(), I = F();
|
|
29982
29982
|
if (I === null)
|
|
29983
29983
|
throw new SyntaxError("Expected variant value");
|
|
29984
29984
|
T[L++] = {
|
|
29985
|
-
key:
|
|
29985
|
+
key: x,
|
|
29986
29986
|
value: I
|
|
29987
29987
|
};
|
|
29988
29988
|
}
|
|
@@ -32396,7 +32396,7 @@ class oy {
|
|
|
32396
32396
|
})), !this.annotationLayer && c(this, AU) !== ta.DISABLE) {
|
|
32397
32397
|
const {
|
|
32398
32398
|
annotationStorage: D,
|
|
32399
|
-
annotationEditorUIManager:
|
|
32399
|
+
annotationEditorUIManager: x,
|
|
32400
32400
|
downloadManager: I,
|
|
32401
32401
|
enableScripting: A,
|
|
32402
32402
|
fieldObjectsPromise: P,
|
|
@@ -32415,7 +32415,7 @@ class oy {
|
|
|
32415
32415
|
fieldObjectsPromise: P,
|
|
32416
32416
|
annotationCanvasMap: this._annotationCanvasMap,
|
|
32417
32417
|
accessibilityManager: this._accessibilityManager,
|
|
32418
|
-
annotationEditorUIManager:
|
|
32418
|
+
annotationEditorUIManager: x,
|
|
32419
32419
|
onAppend: (z) => {
|
|
32420
32420
|
r(this, jl, pc).call(this, z, "annotationLayer");
|
|
32421
32421
|
}
|
|
@@ -32451,8 +32451,8 @@ class oy {
|
|
|
32451
32451
|
const D = 1 / this.scale;
|
|
32452
32452
|
m.sx *= D, m.sy *= D, R(this, _U, !0);
|
|
32453
32453
|
} else if (this.maxCanvasPixels > 0) {
|
|
32454
|
-
const D = U * Z,
|
|
32455
|
-
m.sx >
|
|
32454
|
+
const D = U * Z, x = Math.sqrt(this.maxCanvasPixels / D);
|
|
32455
|
+
m.sx > x || m.sy > x ? (m.sx = x, m.sy = x, R(this, _U, !0)) : R(this, _U, !1);
|
|
32456
32456
|
}
|
|
32457
32457
|
const b = TM(m.sx), u = TM(m.sy), N = F.width = Ho(Po(U * m.sx), b[0]), S = F.height = Ho(Po(Z * m.sy), u[0]), G = Ho(Po(U), b[1]), J = Ho(Po(Z), u[1]);
|
|
32458
32458
|
m.sx = N / G, m.sy = S / J, c(this, pV) !== b[1] && (l.style.setProperty("--scale-round-x", `${b[1]}px`), R(this, pV, b[1])), c(this, MV) !== u[1] && (l.style.setProperty("--scale-round-y", `${u[1]}px`), R(this, MV, u[1]));
|
|
@@ -32471,12 +32471,12 @@ class oy {
|
|
|
32471
32471
|
var D;
|
|
32472
32472
|
V == null || V(!0), await r(this, jl, Vb).call(this, T), this.structTreeLayer || (this.structTreeLayer = new iy(n, a.rawDims)), r(this, jl, ob).call(this), this.annotationLayer && await r(this, jl, cb).call(this);
|
|
32473
32473
|
const {
|
|
32474
|
-
annotationEditorUIManager:
|
|
32474
|
+
annotationEditorUIManager: x
|
|
32475
32475
|
} = c(this, ss);
|
|
32476
|
-
|
|
32476
|
+
x && (this.drawLayer || (this.drawLayer = new MC({
|
|
32477
32477
|
pageIndex: this.id
|
|
32478
32478
|
})), await r(this, jl, Fb).call(this), this.drawLayer.setParent(i), this.annotationEditorLayer || (this.annotationEditorLayer = new rC({
|
|
32479
|
-
uiManager:
|
|
32479
|
+
uiManager: x,
|
|
32480
32480
|
pdfPage: n,
|
|
32481
32481
|
l10n: t,
|
|
32482
32482
|
structTreeLayer: this.structTreeLayer,
|
|
@@ -32493,12 +32493,12 @@ class oy {
|
|
|
32493
32493
|
if (!this.xfaLayer) {
|
|
32494
32494
|
const {
|
|
32495
32495
|
annotationStorage: D,
|
|
32496
|
-
linkService:
|
|
32496
|
+
linkService: x
|
|
32497
32497
|
} = c(this, ss);
|
|
32498
32498
|
this.xfaLayer = new hy({
|
|
32499
32499
|
pdfPage: n,
|
|
32500
32500
|
annotationStorage: D,
|
|
32501
|
-
linkService:
|
|
32501
|
+
linkService: x
|
|
32502
32502
|
});
|
|
32503
32503
|
}
|
|
32504
32504
|
r(this, jl, hb).call(this);
|
|
@@ -33357,14 +33357,14 @@ class py {
|
|
|
33357
33357
|
this._pagesCapability.resolve();
|
|
33358
33358
|
return;
|
|
33359
33359
|
}
|
|
33360
|
-
for (let
|
|
33361
|
-
const I = l.getPage(
|
|
33362
|
-
const P = this._pages[
|
|
33360
|
+
for (let x = 2; x <= a; ++x) {
|
|
33361
|
+
const I = l.getPage(x).then((A) => {
|
|
33362
|
+
const P = this._pages[x - 1];
|
|
33363
33363
|
P.pdfPage || P.setPdfPage(A), --D === 0 && this._pagesCapability.resolve();
|
|
33364
33364
|
}, (A) => {
|
|
33365
|
-
console.error(`Unable to get page ${
|
|
33365
|
+
console.error(`Unable to get page ${x} to initialize viewer`, A), --D === 0 && this._pagesCapability.resolve();
|
|
33366
33366
|
});
|
|
33367
|
-
|
|
33367
|
+
x % tW.PAUSE_EAGER_PAGE_INIT === 0 && await I;
|
|
33368
33368
|
}
|
|
33369
33369
|
}), Z.dispatch("pagesinit", {
|
|
33370
33370
|
source: this
|
|
@@ -34135,7 +34135,7 @@ const EC = ["id"], CC = ["id"], xC = {
|
|
|
34135
34135
|
if (!Z.value)
|
|
34136
34136
|
return;
|
|
34137
34137
|
const k = u / 72, T = 96 / 72;
|
|
34138
|
-
let L, D,
|
|
34138
|
+
let L, D, x;
|
|
34139
34139
|
try {
|
|
34140
34140
|
L = window.document.createElement("div"), L.style.display = "none", window.document.body.appendChild(L), D = await SE(L);
|
|
34141
34141
|
const I = d.page && !S ? Array.isArray(d.page) ? d.page : [d.page] : [...Array(Z.value.numPages + 1).keys()].slice(1);
|
|
@@ -34146,8 +34146,8 @@ const EC = ["id"], CC = ["id"], xC = {
|
|
|
34146
34146
|
rotation: 0
|
|
34147
34147
|
});
|
|
34148
34148
|
if (P === 0) {
|
|
34149
|
-
const
|
|
34150
|
-
ME(D,
|
|
34149
|
+
const E = y.width * k / T, O = y.height * k / T;
|
|
34150
|
+
ME(D, E, O);
|
|
34151
34151
|
}
|
|
34152
34152
|
const z = window.document.createElement("canvas");
|
|
34153
34153
|
z.width = y.width * k, z.height = y.height * k, L.appendChild(z);
|
|
@@ -34159,9 +34159,9 @@ const EC = ["id"], CC = ["id"], xC = {
|
|
|
34159
34159
|
viewport: y
|
|
34160
34160
|
}).promise, g.getContext("2d").drawImage(z, 0, 0);
|
|
34161
34161
|
})
|
|
34162
|
-
), N && (
|
|
34162
|
+
), N && (x = window.document.title, window.document.title = N), (G = D.contentWindow) == null || G.focus(), (J = D.contentWindow) == null || J.print();
|
|
34163
34163
|
} finally {
|
|
34164
|
-
|
|
34164
|
+
x && (window.document.title = x), yR(L), (X = L.parentNode) == null || X.removeChild(L);
|
|
34165
34165
|
}
|
|
34166
34166
|
}, V = async () => {
|
|
34167
34167
|
if (!(!Z.value || U != null && U.isAborted))
|
|
@@ -34173,9 +34173,9 @@ const EC = ["id"], CC = ["id"], xC = {
|
|
|
34173
34173
|
return;
|
|
34174
34174
|
const G = ((d.rotation % 90 === 0 ? d.rotation : 0) + S.rotate) % 360, [J, X, k] = Array.from(
|
|
34175
34175
|
s.value.getElementsByClassName("vue-pdf-embed__page")[N].children
|
|
34176
|
-
), T = !!(G / 90 % 2), L = S.view[2] - S.view[0], D = S.view[3] - S.view[1], [
|
|
34176
|
+
), T = !!(G / 90 % 2), L = S.view[2] - S.view[0], D = S.view[3] - S.view[1], [x, I] = o(
|
|
34177
34177
|
T ? L / D : D / L
|
|
34178
|
-
), A = `${Math.floor(
|
|
34178
|
+
), A = `${Math.floor(x)}px`, P = `${Math.floor(I)}px`, Y = x / (T ? D : L), y = S.getViewport({
|
|
34179
34179
|
scale: Y,
|
|
34180
34180
|
rotation: G
|
|
34181
34181
|
});
|
|
@@ -34241,13 +34241,13 @@ const EC = ["id"], CC = ["id"], xC = {
|
|
|
34241
34241
|
viewport: N
|
|
34242
34242
|
}).render();
|
|
34243
34243
|
};
|
|
34244
|
-
return
|
|
34244
|
+
return Ul(
|
|
34245
34245
|
Z,
|
|
34246
34246
|
(u) => {
|
|
34247
34247
|
u && n("loaded", u);
|
|
34248
34248
|
},
|
|
34249
34249
|
{ immediate: !0 }
|
|
34250
|
-
),
|
|
34250
|
+
), Ul(
|
|
34251
34251
|
() => [
|
|
34252
34252
|
Z.value,
|
|
34253
34253
|
d.annotationLayer,
|
|
@@ -34379,24 +34379,24 @@ const jC = /* @__PURE__ */ ml({
|
|
|
34379
34379
|
], G = l;
|
|
34380
34380
|
let J;
|
|
34381
34381
|
V.value = t.attachToken, Xh(async () => {
|
|
34382
|
-
await X(), t.attachToken ? await
|
|
34382
|
+
await X(), t.attachToken ? await x() : await I();
|
|
34383
34383
|
}), hi(() => {
|
|
34384
34384
|
J && J.destroy(), J = void 0;
|
|
34385
34385
|
});
|
|
34386
34386
|
async function X() {
|
|
34387
|
-
var ll,
|
|
34387
|
+
var ll, al;
|
|
34388
34388
|
o.value = tc();
|
|
34389
|
-
const
|
|
34390
|
-
U.value = await PY(), F.value = await AY(), Z.value = U.value.filter((_) => _.value >=
|
|
34389
|
+
const w = Math.max(t.classificationLevel ?? 50, ((ll = o.value) == null ? void 0 : ll.classifiedLevel) ?? 50);
|
|
34390
|
+
U.value = await PY(), F.value = await AY(), Z.value = U.value.filter((_) => _.value >= w), h.value = Math.min(...Z.value.map((_) => _.value)), console.log(
|
|
34391
34391
|
`附件控件密级调试:
|
|
34392
34392
|
表单密级:`,
|
|
34393
34393
|
t.classificationLevel,
|
|
34394
34394
|
`
|
|
34395
34395
|
用户密级:`,
|
|
34396
|
-
(
|
|
34396
|
+
(al = o.value) == null ? void 0 : al.classifiedLevel,
|
|
34397
34397
|
`
|
|
34398
34398
|
表单/用户密级比较后取最低密级:`,
|
|
34399
|
-
|
|
34399
|
+
w,
|
|
34400
34400
|
`
|
|
34401
34401
|
系统密级:`,
|
|
34402
34402
|
U.value,
|
|
@@ -34409,9 +34409,9 @@ const jC = /* @__PURE__ */ ml({
|
|
|
34409
34409
|
V.value || (s.value = []), s.value = await i.getFileList(V.value);
|
|
34410
34410
|
}
|
|
34411
34411
|
function T() {
|
|
34412
|
-
var
|
|
34412
|
+
var al, _, q, dl;
|
|
34413
34413
|
J && J.destroy();
|
|
34414
|
-
const
|
|
34414
|
+
const w = Q.value.fileConfig;
|
|
34415
34415
|
J = new uu({
|
|
34416
34416
|
autoProceed: !0,
|
|
34417
34417
|
locale: ez
|
|
@@ -34421,7 +34421,7 @@ const jC = /* @__PURE__ */ ml({
|
|
|
34421
34421
|
endpoint: new URL("/ace-file-service/uploads", location.origin).toString(),
|
|
34422
34422
|
withCredentials: !0,
|
|
34423
34423
|
retryDelays: void 0,
|
|
34424
|
-
chunkSize: !((
|
|
34424
|
+
chunkSize: !((al = Q.value) != null && al.chunkSize) || ((_ = Q.value) == null ? void 0 : _.chunkSize) == 0 ? 1 / 0 : (q = Q.value) == null ? void 0 : q.chunkSize,
|
|
34425
34425
|
parallelUploads: 1,
|
|
34426
34426
|
headers: {
|
|
34427
34427
|
aceAttachId: d.value,
|
|
@@ -34439,9 +34439,9 @@ const jC = /* @__PURE__ */ ml({
|
|
|
34439
34439
|
appServiceName: t.serviceName,
|
|
34440
34440
|
classifiedLevel: W.value.toString()
|
|
34441
34441
|
}
|
|
34442
|
-
}),
|
|
34442
|
+
}), w.enableWebcam && J.use(tG, {
|
|
34443
34443
|
// Webcam 的相关配置
|
|
34444
|
-
modes: (dl =
|
|
34444
|
+
modes: (dl = w.allowedWebcamModes) == null ? void 0 : dl.map((nl) => {
|
|
34445
34445
|
switch (nl) {
|
|
34446
34446
|
case "VIDEO_AUDIO":
|
|
34447
34447
|
return "video-audio";
|
|
@@ -34452,15 +34452,15 @@ const jC = /* @__PURE__ */ ml({
|
|
|
34452
34452
|
}
|
|
34453
34453
|
}),
|
|
34454
34454
|
mirror: !1
|
|
34455
|
-
}),
|
|
34455
|
+
}), w.enableAudio && J.use(nG), w.enableScreenCapture && J.use(eG);
|
|
34456
34456
|
let ll;
|
|
34457
|
-
|
|
34457
|
+
w.disableFileUpload ? w.disableDirUpload ? ll = void 0 : ll = "folders" : w.disableDirUpload ? ll = "files" : ll = "both", J.use(SG, {
|
|
34458
34458
|
inline: !1,
|
|
34459
|
-
note:
|
|
34459
|
+
note: w.uploadNote,
|
|
34460
34460
|
proudlyDisplayPoweredByUppy: !1,
|
|
34461
34461
|
fileManagerSelectionType: ll,
|
|
34462
34462
|
singleFileFullScreen: !1,
|
|
34463
|
-
disableLocalFiles:
|
|
34463
|
+
disableLocalFiles: w.disableFileUpload ?? !1,
|
|
34464
34464
|
closeAfterFinish: !0,
|
|
34465
34465
|
closeModalOnClickOutside: !0
|
|
34466
34466
|
}).use(OG), J.on("file-added", (nl) => {
|
|
@@ -34488,9 +34488,9 @@ const jC = /* @__PURE__ */ ml({
|
|
|
34488
34488
|
});
|
|
34489
34489
|
}
|
|
34490
34490
|
async function L() {
|
|
34491
|
-
var ll,
|
|
34492
|
-
const
|
|
34493
|
-
if (
|
|
34491
|
+
var ll, al;
|
|
34492
|
+
const w = (ll = Q.value) == null ? void 0 : ll.fileConfig;
|
|
34493
|
+
if (w) {
|
|
34494
34494
|
J == null || J.setMeta({
|
|
34495
34495
|
attachId: d.value,
|
|
34496
34496
|
configKey: t.configKey,
|
|
@@ -34499,14 +34499,14 @@ const jC = /* @__PURE__ */ ml({
|
|
|
34499
34499
|
});
|
|
34500
34500
|
const _ = J == null ? void 0 : J.getPlugin("Dashboard");
|
|
34501
34501
|
_ && _.setOptions({
|
|
34502
|
-
note: (
|
|
34502
|
+
note: (w.uploadNote ? w.uploadNote : "") + `(正在上传${(al = F.value) == null ? void 0 : al.get(W.value)}文件)`
|
|
34503
34503
|
}), _ == null || _.openModal();
|
|
34504
34504
|
} else
|
|
34505
34505
|
ES.alert("无法找到附件配置" + t.configKey, "错误");
|
|
34506
34506
|
}
|
|
34507
|
-
function D(
|
|
34508
|
-
var
|
|
34509
|
-
W.value =
|
|
34507
|
+
function D(w) {
|
|
34508
|
+
var al, _;
|
|
34509
|
+
W.value = w, J == null || J.setMeta({
|
|
34510
34510
|
attachId: d.value,
|
|
34511
34511
|
configKey: t.configKey,
|
|
34512
34512
|
appServiceName: t.serviceName,
|
|
@@ -34514,97 +34514,90 @@ const jC = /* @__PURE__ */ ml({
|
|
|
34514
34514
|
});
|
|
34515
34515
|
const ll = J == null ? void 0 : J.getPlugin("Dashboard");
|
|
34516
34516
|
if (ll) {
|
|
34517
|
-
const q = (
|
|
34517
|
+
const q = (al = Q.value) == null ? void 0 : al.fileConfig;
|
|
34518
34518
|
q && ll.setOptions({
|
|
34519
34519
|
note: (q.uploadNote ? q.uploadNote : "") + `(正在上传${(_ = F.value) == null ? void 0 : _.get(W.value)}文件)`
|
|
34520
34520
|
}), ll == null || ll.openModal();
|
|
34521
34521
|
}
|
|
34522
34522
|
}
|
|
34523
|
-
async function
|
|
34524
|
-
var
|
|
34525
|
-
Q.value = await i.initLoad(t.serviceName, t.configKey, t.attachToken), s.value = Q.value.files, d.value = (
|
|
34523
|
+
async function x() {
|
|
34524
|
+
var w, ll;
|
|
34525
|
+
Q.value = await i.initLoad(t.serviceName, t.configKey, t.attachToken), s.value = Q.value.files, d.value = (w = Q.value) == null ? void 0 : w.attachId, V.value = (ll = Q.value) == null ? void 0 : ll.attachId, m.value = !1, await Qn(), T();
|
|
34526
34526
|
}
|
|
34527
34527
|
async function I() {
|
|
34528
|
-
var
|
|
34529
|
-
Q.value = await i.initNew(t.serviceName, t.configKey), s.value = Q.value.files, d.value = (
|
|
34528
|
+
var w, ll;
|
|
34529
|
+
Q.value = await i.initNew(t.serviceName, t.configKey), s.value = Q.value.files, d.value = (w = Q.value) == null ? void 0 : w.attachId, V.value = (ll = Q.value) == null ? void 0 : ll.attachToken, m.value = !0, G("change", d.value), await Qn(), T();
|
|
34530
34530
|
}
|
|
34531
|
-
async function A(
|
|
34532
|
-
await i.deleteFile(
|
|
34531
|
+
async function A(w) {
|
|
34532
|
+
await i.deleteFile(w.token || w.id), s.value = s.value.filter((ll) => ll.id !== w.id);
|
|
34533
34533
|
}
|
|
34534
|
-
function P(
|
|
34535
|
-
N.value = new URL("uploads/preview/" +
|
|
34534
|
+
function P(w) {
|
|
34535
|
+
N.value = new URL("uploads/preview/" + w, location.origin).toString(), u.value = !0;
|
|
34536
34536
|
}
|
|
34537
|
-
async function Y(
|
|
34538
|
-
await i.downloadFile(
|
|
34539
|
-
var ll = s.value.filter((
|
|
34537
|
+
async function Y(w) {
|
|
34538
|
+
await i.downloadFile(w);
|
|
34539
|
+
var ll = s.value.filter((al) => w === al.token);
|
|
34540
34540
|
ll && ll.length > 0 && G("downloaded", ll[0]);
|
|
34541
34541
|
}
|
|
34542
34542
|
function y() {
|
|
34543
|
-
const
|
|
34544
|
-
|
|
34543
|
+
const w = J == null ? void 0 : J.getPlugin("Dashboard");
|
|
34544
|
+
w && w.openModal();
|
|
34545
34545
|
}
|
|
34546
34546
|
async function z() {
|
|
34547
34547
|
V.value && (await i.downloadZipFile(V.value), G("zipDownloaded", s.value));
|
|
34548
34548
|
}
|
|
34549
34549
|
function g() {
|
|
34550
|
-
var
|
|
34551
|
-
if (t.allowUpload
|
|
34552
|
-
|
|
34553
|
-
|
|
34554
|
-
|
|
34555
|
-
|
|
34556
|
-
|
|
34557
|
-
|
|
34558
|
-
}
|
|
34559
|
-
return !ll.disallowUpload;
|
|
34560
|
-
}
|
|
34561
|
-
console.log("file cfg is null");
|
|
34562
|
-
}
|
|
34563
|
-
return t.allowUpload;
|
|
34564
|
-
}
|
|
34565
|
-
function w() {
|
|
34566
|
-
var x;
|
|
34567
|
-
if (t.allowDownload == null) {
|
|
34568
|
-
const ll = (x = Q.value) == null ? void 0 : x.fileConfig;
|
|
34569
|
-
if (ll) {
|
|
34570
|
-
let Ul = !0;
|
|
34571
|
-
if (ll.downloadAuthCode) {
|
|
34572
|
-
const _ = tc();
|
|
34573
|
-
return _ && (Ul = _.hasRole(ll.downloadAuthCode)), !ll.disallowDownload && Ul;
|
|
34574
|
-
}
|
|
34575
|
-
return !ll.disallowDownload;
|
|
34550
|
+
var ll;
|
|
34551
|
+
if (console.log("ja-uploader 上传权限调试:"), console.log("props.allowUpload = ", t.allowUpload), t.allowUpload === !1) return !1;
|
|
34552
|
+
const w = (ll = Q.value) == null ? void 0 : ll.fileConfig;
|
|
34553
|
+
if (w) {
|
|
34554
|
+
let al = !0;
|
|
34555
|
+
if (console.log("cfg.uploadAuthCode = ", w.uploadAuthCode), w.uploadAuthCode) {
|
|
34556
|
+
const _ = tc();
|
|
34557
|
+
return _ && (al = _.hasRole(w.uploadAuthCode)), console.log("hasRole = ", al), console.log("final upload auth: ", !w.disallowUpload && al), !w.disallowUpload && al;
|
|
34576
34558
|
}
|
|
34559
|
+
return !w.disallowUpload;
|
|
34577
34560
|
}
|
|
34578
|
-
return t.
|
|
34561
|
+
return console.log("file cfg " + t.configKey + " does not exists"), !!t.allowUpload;
|
|
34579
34562
|
}
|
|
34580
|
-
function
|
|
34581
|
-
var
|
|
34582
|
-
if (t.
|
|
34583
|
-
|
|
34584
|
-
|
|
34585
|
-
|
|
34586
|
-
|
|
34587
|
-
|
|
34588
|
-
|
|
34589
|
-
}
|
|
34590
|
-
return !ll.disallowDelete;
|
|
34563
|
+
function E() {
|
|
34564
|
+
var ll;
|
|
34565
|
+
if (console.log("ja-uploader 下载权限调试:"), console.log("props.allowDownload = ", t.allowDownload), t.allowDownload === !1) return !1;
|
|
34566
|
+
const w = (ll = Q.value) == null ? void 0 : ll.fileConfig;
|
|
34567
|
+
if (w) {
|
|
34568
|
+
let al = !0;
|
|
34569
|
+
if (console.log("cfg.uploadAuthCode = ", w.uploadAuthCode), w.downloadAuthCode) {
|
|
34570
|
+
const _ = tc();
|
|
34571
|
+
return _ && (al = _.hasRole(w.downloadAuthCode)), console.log("hasRole = ", al), console.log("final download auth: ", !w.disallowDownload && al), !w.disallowDownload && al;
|
|
34591
34572
|
}
|
|
34573
|
+
return !w.disallowDownload;
|
|
34592
34574
|
}
|
|
34593
|
-
return t.
|
|
34575
|
+
return !!t.allowDownload;
|
|
34594
34576
|
}
|
|
34595
|
-
function
|
|
34577
|
+
function O() {
|
|
34596
34578
|
var ll;
|
|
34597
|
-
if (t.
|
|
34598
|
-
|
|
34599
|
-
|
|
34600
|
-
|
|
34579
|
+
if (console.log("ja-uploader 删除权限调试:"), console.log("props.allowDelete = ", t.allowDelete), t.allowDelete === !1) return !1;
|
|
34580
|
+
const w = (ll = Q.value) == null ? void 0 : ll.fileConfig;
|
|
34581
|
+
if (w) {
|
|
34582
|
+
let al = !0;
|
|
34583
|
+
if (console.log("cfg.deleteAuthCode = ", w.deleteAuthCode), w.deleteAuthCode) {
|
|
34584
|
+
const _ = tc();
|
|
34585
|
+
return _ && (al = _.hasRole(w.deleteAuthCode)), console.log("hasRole = ", al), console.log("final delete auth: ", !w.disallowDelete && al), !w.disallowDelete && al;
|
|
34586
|
+
}
|
|
34587
|
+
return !w.disallowDelete;
|
|
34601
34588
|
}
|
|
34602
|
-
return t.
|
|
34589
|
+
return !!t.allowDelete;
|
|
34590
|
+
}
|
|
34591
|
+
function K(w) {
|
|
34592
|
+
var al;
|
|
34593
|
+
if (console.log("ja-uploader 预览权限调试:"), console.log("props.allowPreview = ", t.allowPreview), t.allowPreview === !1) return !1;
|
|
34594
|
+
const ll = (al = Q.value) == null ? void 0 : al.fileConfig;
|
|
34595
|
+
return ll ? ll.disablePreview ? !1 : (console.log("file name: ", w.fileName), console.log("可预览类型:", S), S.some((_) => w.fileName.endsWith(_))) : t.allowPreview;
|
|
34603
34596
|
}
|
|
34604
|
-
return
|
|
34605
|
-
t.attachToken ?
|
|
34606
|
-
}),
|
|
34607
|
-
var
|
|
34597
|
+
return Ul(() => t.attachToken, () => {
|
|
34598
|
+
t.attachToken ? x() : I();
|
|
34599
|
+
}), Ul(() => t.classificationLevel, X), (w, ll) => {
|
|
34600
|
+
var al;
|
|
34608
34601
|
return H(), Ql(rt, null, [
|
|
34609
34602
|
Nl("div", OC, [
|
|
34610
34603
|
Nl("div", vC, [
|
|
@@ -34626,13 +34619,13 @@ const jC = /* @__PURE__ */ ml({
|
|
|
34626
34619
|
}),
|
|
34627
34620
|
_: 1
|
|
34628
34621
|
}, 8, ["icon", "loading", "disabled"])) : Dl("", !0),
|
|
34629
|
-
|
|
34622
|
+
E() ? (H(), el(B(Nt), {
|
|
34630
34623
|
key: 1,
|
|
34631
34624
|
plain: "",
|
|
34632
34625
|
icon: B(SY),
|
|
34633
34626
|
onClick: z,
|
|
34634
34627
|
loading: B(a),
|
|
34635
|
-
disabled: B(a) || ((
|
|
34628
|
+
disabled: B(a) || ((al = s.value) == null ? void 0 : al.length) === 0,
|
|
34636
34629
|
size: "small"
|
|
34637
34630
|
}, {
|
|
34638
34631
|
default: v(() => [...ll[1] || (ll[1] = [
|
|
@@ -34759,7 +34752,7 @@ const jC = /* @__PURE__ */ ml({
|
|
|
34759
34752
|
])]),
|
|
34760
34753
|
_: 1
|
|
34761
34754
|
}, 8, ["onClick"])) : Dl("", !0),
|
|
34762
|
-
|
|
34755
|
+
E() ? (H(), el(B(Nt), {
|
|
34763
34756
|
key: 1,
|
|
34764
34757
|
link: "",
|
|
34765
34758
|
type: "primary",
|
|
@@ -34796,7 +34789,7 @@ const jC = /* @__PURE__ */ ml({
|
|
|
34796
34789
|
], 64);
|
|
34797
34790
|
};
|
|
34798
34791
|
}
|
|
34799
|
-
}), Jy = /* @__PURE__ */ Dt(fC, [["__scopeId", "data-v-
|
|
34792
|
+
}), Jy = /* @__PURE__ */ Dt(fC, [["__scopeId", "data-v-6e8d0e3a"]]);
|
|
34800
34793
|
function Yl(e, l) {
|
|
34801
34794
|
if (!l || l.length == 0)
|
|
34802
34795
|
throw new Error("prop不能为空,请检查所有的ja-form-item的prop属性是否都已设置");
|
|
@@ -34832,7 +34825,7 @@ const HC = /* @__PURE__ */ ml({
|
|
|
34832
34825
|
i.removeFieldError(a), wt(n.formData, a, Z.value), s("change", F);
|
|
34833
34826
|
}
|
|
34834
34827
|
const Z = f(Yl(n.formData, a));
|
|
34835
|
-
return
|
|
34828
|
+
return Ul(() => n.formData, () => {
|
|
34836
34829
|
Z.value = Yl(n.formData, a);
|
|
34837
34830
|
}, {
|
|
34838
34831
|
deep: !0
|
|
@@ -35043,10 +35036,10 @@ const ix = /* @__PURE__ */ ml({
|
|
|
35043
35036
|
}));
|
|
35044
35037
|
},
|
|
35045
35038
|
getRules: () => n.value
|
|
35046
|
-
}),
|
|
35039
|
+
}), Ul(() => d.model.formData, () => {
|
|
35047
35040
|
var i;
|
|
35048
35041
|
(i = d.validator) == null || i.clearFiledErrors();
|
|
35049
|
-
}),
|
|
35042
|
+
}), Ul(() => d.rules, () => {
|
|
35050
35043
|
d.rules && (n.value = HR(d.rules, d.validator.rules));
|
|
35051
35044
|
}, { immediate: !0 }), (i, s) => (H(), el(B(Yb), {
|
|
35052
35045
|
ref_key: "formRef",
|
|
@@ -35207,7 +35200,7 @@ const ix = /* @__PURE__ */ ml({
|
|
|
35207
35200
|
i.removeFieldError(a), wt(n.formData, a, F.value), U("change", o);
|
|
35208
35201
|
}
|
|
35209
35202
|
const F = f(Yl(n.formData, a));
|
|
35210
|
-
|
|
35203
|
+
Ul(() => n.formData, () => {
|
|
35211
35204
|
F.value = Yl(n.formData, a);
|
|
35212
35205
|
}, {
|
|
35213
35206
|
deep: !0
|
|
@@ -35286,7 +35279,7 @@ const ix = /* @__PURE__ */ ml({
|
|
|
35286
35279
|
i.removeFieldError(a), wt(n.formData, a, F.value), U("change", o);
|
|
35287
35280
|
}
|
|
35288
35281
|
const F = f(Yl(n.formData, a));
|
|
35289
|
-
|
|
35282
|
+
Ul(() => n.formData, () => {
|
|
35290
35283
|
F.value = Yl(n.formData, a);
|
|
35291
35284
|
});
|
|
35292
35285
|
const h = Kl(() => {
|
|
@@ -35339,7 +35332,7 @@ const ix = /* @__PURE__ */ ml({
|
|
|
35339
35332
|
i.removeFieldError(a), wt(n.formData, a, h.value), Z("change", W);
|
|
35340
35333
|
}
|
|
35341
35334
|
const h = f(Yl(n.formData, a));
|
|
35342
|
-
|
|
35335
|
+
Ul(() => n.formData, () => {
|
|
35343
35336
|
const W = Yl(n.formData, a);
|
|
35344
35337
|
h.value = W;
|
|
35345
35338
|
}, {
|
|
@@ -35440,7 +35433,7 @@ const ix = /* @__PURE__ */ ml({
|
|
|
35440
35433
|
i.removeFieldError(a), wt(n.formData, a, F.value), s("change", o);
|
|
35441
35434
|
}
|
|
35442
35435
|
const F = f(Yl(n.formData, a));
|
|
35443
|
-
|
|
35436
|
+
Ul(() => n.formData, () => {
|
|
35444
35437
|
F.value = Yl(n.formData, a);
|
|
35445
35438
|
}, {
|
|
35446
35439
|
deep: !0
|
|
@@ -35530,7 +35523,7 @@ const ix = /* @__PURE__ */ ml({
|
|
|
35530
35523
|
i.removeFieldError(a), wt(n.formData, a, h.value), s("change", W);
|
|
35531
35524
|
}
|
|
35532
35525
|
const h = f(Yl(n.formData, a));
|
|
35533
|
-
|
|
35526
|
+
Ul(() => n.formData, () => {
|
|
35534
35527
|
h.value = Yl(n.formData, a);
|
|
35535
35528
|
}, {
|
|
35536
35529
|
deep: !0
|
|
@@ -35868,7 +35861,7 @@ const Gy = {
|
|
|
35868
35861
|
i.removeFieldError(a), wt(n.formData, a, F.value), s("change", o);
|
|
35869
35862
|
}
|
|
35870
35863
|
const F = f(Yl(n.formData, a));
|
|
35871
|
-
|
|
35864
|
+
Ul(() => n.formData, () => {
|
|
35872
35865
|
F.value = Yl(n.formData, a);
|
|
35873
35866
|
}, {
|
|
35874
35867
|
deep: !0
|
|
@@ -35930,9 +35923,9 @@ const Gy = {
|
|
|
35930
35923
|
}
|
|
35931
35924
|
s = !0, h ? (i.value = h.map((o) => ({ v: o })), i.value.length == 0 && i.value.push({ v: "" })) : i.value = [{ v: "" }];
|
|
35932
35925
|
}
|
|
35933
|
-
return
|
|
35926
|
+
return Ul(() => t.modelValue, (h) => {
|
|
35934
35927
|
Z(h);
|
|
35935
|
-
}),
|
|
35928
|
+
}), Ul(() => i.value, () => {
|
|
35936
35929
|
if (s) {
|
|
35937
35930
|
s = !1;
|
|
35938
35931
|
return;
|
|
@@ -36018,7 +36011,7 @@ const Gy = {
|
|
|
36018
36011
|
n.removeFieldError(d), wt(t.formData, d, s.value), a("change", U);
|
|
36019
36012
|
}
|
|
36020
36013
|
const s = f(Yl(t.formData, d) ?? [""]);
|
|
36021
|
-
return
|
|
36014
|
+
return Ul(() => t.formData, () => {
|
|
36022
36015
|
s.value = Yl(t.formData, d) ?? [""];
|
|
36023
36016
|
}, {
|
|
36024
36017
|
deep: !0
|
|
@@ -36063,9 +36056,9 @@ const Gy = {
|
|
|
36063
36056
|
s = !0, h ? (i.value = h.map((o) => ({ v: o })), i.value.length == 0 && i.value.push({ v: 0 })) : i.value = [{ v: 0 }];
|
|
36064
36057
|
}
|
|
36065
36058
|
}
|
|
36066
|
-
return
|
|
36059
|
+
return Ul(() => t.modelValue, (h) => {
|
|
36067
36060
|
Z(h);
|
|
36068
|
-
}),
|
|
36061
|
+
}), Ul(() => i.value, () => {
|
|
36069
36062
|
if (s) {
|
|
36070
36063
|
s = !1;
|
|
36071
36064
|
return;
|
|
@@ -36142,7 +36135,7 @@ const Gy = {
|
|
|
36142
36135
|
n.removeFieldError(d), wt(t.formData, d, s.value), a("change", U);
|
|
36143
36136
|
}
|
|
36144
36137
|
const s = f(Yl(t.formData, d) ?? [0]);
|
|
36145
|
-
return
|
|
36138
|
+
return Ul(() => t.formData, () => {
|
|
36146
36139
|
s.value = Yl(t.formData, d) ?? [0];
|
|
36147
36140
|
}, {
|
|
36148
36141
|
deep: !0
|
|
@@ -36184,9 +36177,9 @@ const Gy = {
|
|
|
36184
36177
|
}
|
|
36185
36178
|
s = !0, i.value = h.map((o) => ({ v: o })), i.value.length == 0 && i.value.push({ v: "" });
|
|
36186
36179
|
}
|
|
36187
|
-
return
|
|
36180
|
+
return Ul(() => t.modelValue, (h) => {
|
|
36188
36181
|
Z(h);
|
|
36189
|
-
}),
|
|
36182
|
+
}), Ul(() => i.value, () => {
|
|
36190
36183
|
if (s) {
|
|
36191
36184
|
s = !1;
|
|
36192
36185
|
return;
|
|
@@ -36273,7 +36266,7 @@ const Gy = {
|
|
|
36273
36266
|
n.removeFieldError(d), wt(t.formData, d, s.value), a("change", U);
|
|
36274
36267
|
}
|
|
36275
36268
|
const s = f(Yl(t.formData, d) ?? [""]);
|
|
36276
|
-
return
|
|
36269
|
+
return Ul(() => t.formData, () => {
|
|
36277
36270
|
s.value = Yl(t.formData, d) ?? [""];
|
|
36278
36271
|
}, {
|
|
36279
36272
|
deep: !0
|
|
@@ -36356,11 +36349,11 @@ const Gy = {
|
|
|
36356
36349
|
} else
|
|
36357
36350
|
i.value = [{ k: "" }];
|
|
36358
36351
|
}
|
|
36359
|
-
return
|
|
36352
|
+
return Ul(() => t.modelValue, (W) => {
|
|
36360
36353
|
o(W);
|
|
36361
36354
|
}, {
|
|
36362
36355
|
deep: !0
|
|
36363
|
-
}),
|
|
36356
|
+
}), Ul(() => i.value, () => {
|
|
36364
36357
|
var V;
|
|
36365
36358
|
if (s) {
|
|
36366
36359
|
s = !1;
|
|
@@ -36369,7 +36362,7 @@ const Gy = {
|
|
|
36369
36362
|
U = !0;
|
|
36370
36363
|
const W = (V = i.value) == null ? void 0 : V.filter((Q) => Q.k && Q.v).reduce((Q, m) => (Q[m.k] = m.v, Q), {});
|
|
36371
36364
|
d("update:modelValue", W), d("change", W);
|
|
36372
|
-
}, { deep: !0 }),
|
|
36365
|
+
}, { deep: !0 }), Ul(() => t.valueType, () => {
|
|
36373
36366
|
h();
|
|
36374
36367
|
}), (W, V) => {
|
|
36375
36368
|
const Q = Ds("el-text"), m = Ds("el-option"), b = Ds("el-tooltip");
|
|
@@ -36462,7 +36455,7 @@ const Gy = {
|
|
|
36462
36455
|
n.removeFieldError(d), wt(t.formData, d, s.value), a("change", U);
|
|
36463
36456
|
}
|
|
36464
36457
|
const s = f(Yl(t.formData, d) ?? { "": "" });
|
|
36465
|
-
return
|
|
36458
|
+
return Ul(() => t.formData, () => {
|
|
36466
36459
|
s.value = Yl(t.formData, d) ?? { "": "" };
|
|
36467
36460
|
}), (U, Z) => (H(), el(Yy, Hl({
|
|
36468
36461
|
modelValue: s.value,
|
|
@@ -36524,7 +36517,7 @@ const Rr = "-1", By = "-100", n3 = /* @__PURE__ */ ml({
|
|
|
36524
36517
|
}, Z = (F) => {
|
|
36525
36518
|
a("change", Array.isArray(F) ? s.department.filter((h) => F.findIndex((o) => h.id === o) >= 0) : s.department.find((h) => h.id === F));
|
|
36526
36519
|
};
|
|
36527
|
-
return U(),
|
|
36520
|
+
return U(), Ul(
|
|
36528
36521
|
() => n.realmId,
|
|
36529
36522
|
() => {
|
|
36530
36523
|
U();
|
|
@@ -36612,7 +36605,7 @@ c-58 -10 -181 -38 -275 -61 -807 -204 -1528 -616 -2120 -1210 -726 -728 -1170
|
|
|
36612
36605
|
Z.style.fontSize = h + "px";
|
|
36613
36606
|
}
|
|
36614
36607
|
hi(() => {
|
|
36615
|
-
}),
|
|
36608
|
+
}), Ul(a, () => s(a.value));
|
|
36616
36609
|
const U = Kl(() => {
|
|
36617
36610
|
const { userId: Z, username: F, realm: h, doNotLoadAvatar: o, hasAvatar: W, firstName: V, ...Q } = l;
|
|
36618
36611
|
return Q;
|
|
@@ -36947,13 +36940,13 @@ function Ey(e, l, t, d, n, a) {
|
|
|
36947
36940
|
function V() {
|
|
36948
36941
|
U.value.total = 0, U.value.users = [], s.value.currentPage !== 1 ? s.value.currentPage = 1 : W();
|
|
36949
36942
|
}
|
|
36950
|
-
|
|
36943
|
+
Ul(i, () => {
|
|
36951
36944
|
h.value = !0, V();
|
|
36952
36945
|
}, {
|
|
36953
36946
|
deep: !0
|
|
36954
|
-
}),
|
|
36947
|
+
}), Ul(() => s.value.pageSize, () => {
|
|
36955
36948
|
h.value = !0, V();
|
|
36956
|
-
}),
|
|
36949
|
+
}), Ul(() => s.value.currentPage, () => {
|
|
36957
36950
|
Q().then((m) => {
|
|
36958
36951
|
t && t(m, h.value), h.value = !1;
|
|
36959
36952
|
});
|
|
@@ -37071,7 +37064,7 @@ const j3 = /* @__PURE__ */ ml({
|
|
|
37071
37064
|
}, W = (V) => {
|
|
37072
37065
|
Z.value = V, U("change", V);
|
|
37073
37066
|
};
|
|
37074
|
-
return
|
|
37067
|
+
return Ul(
|
|
37075
37068
|
() => s.realmId,
|
|
37076
37069
|
() => {
|
|
37077
37070
|
o();
|
|
@@ -37246,7 +37239,7 @@ const A3 = { class: "ja-user-group-tree" }, _3 = { class: "name" }, q3 = /* @__P
|
|
|
37246
37239
|
}, J = (X) => {
|
|
37247
37240
|
F.value = X, Z("change", X);
|
|
37248
37241
|
};
|
|
37249
|
-
return
|
|
37242
|
+
return Ul(
|
|
37250
37243
|
() => ({ appId: U.appId, realmId: U.realmId, category: U.category }),
|
|
37251
37244
|
() => {
|
|
37252
37245
|
G();
|
|
@@ -37255,7 +37248,7 @@ const A3 = { class: "ja-user-group-tree" }, _3 = { class: "name" }, q3 = /* @__P
|
|
|
37255
37248
|
deep: !0,
|
|
37256
37249
|
immediate: !0
|
|
37257
37250
|
}
|
|
37258
|
-
),
|
|
37251
|
+
), Ul(() => U.appId, () => {
|
|
37259
37252
|
h.value = U.appId;
|
|
37260
37253
|
}), l({
|
|
37261
37254
|
reload: G,
|
|
@@ -37457,13 +37450,13 @@ const A3 = { class: "ja-user-group-tree" }, _3 = { class: "name" }, q3 = /* @__P
|
|
|
37457
37450
|
title: "用户",
|
|
37458
37451
|
cellRenderer: ({
|
|
37459
37452
|
cellData: K,
|
|
37460
|
-
rowData:
|
|
37453
|
+
rowData: w,
|
|
37461
37454
|
rowIndex: ll
|
|
37462
37455
|
}) => {
|
|
37463
37456
|
const {
|
|
37464
|
-
hasAvatar:
|
|
37457
|
+
hasAvatar: al,
|
|
37465
37458
|
fullName: _
|
|
37466
|
-
} =
|
|
37459
|
+
} = w, q = w, dl = ll;
|
|
37467
37460
|
return WZ("div", {
|
|
37468
37461
|
class: "user-row",
|
|
37469
37462
|
onMousedown: () => Y(q),
|
|
@@ -37482,16 +37475,16 @@ const A3 = { class: "ja-user-group-tree" }, _3 = { class: "name" }, q3 = /* @__P
|
|
|
37482
37475
|
style: "flex:auto"
|
|
37483
37476
|
})]);
|
|
37484
37477
|
}
|
|
37485
|
-
}], N = f(!1), S = f(), G = P0(
|
|
37486
|
-
|
|
37478
|
+
}], N = f(!1), S = f(), G = P0(E, 100), J = P0(T, 100);
|
|
37479
|
+
Ul(s, () => {
|
|
37487
37480
|
Q.value == "dept" && (b.queryParams.value.currentDept = s.value);
|
|
37488
|
-
}),
|
|
37481
|
+
}), Ul(U, () => {
|
|
37489
37482
|
Q.value == "group" && (b.queryParams.value.currentGroup = U.value);
|
|
37490
|
-
}),
|
|
37483
|
+
}), Ul(Z, () => {
|
|
37491
37484
|
Q.value == "customGroup" && (b.queryParams.value.currentCustomGroup = Z.value);
|
|
37492
|
-
}),
|
|
37485
|
+
}), Ul(() => t.classificationLevel, () => {
|
|
37493
37486
|
b.queryParams.value.classificationLevel = t.classificationLevel;
|
|
37494
|
-
}),
|
|
37487
|
+
}), Ul(Q, () => {
|
|
37495
37488
|
Q.value === "dept" ? (b.queryParams.value.currentDept = s.value, b.queryParams.value.currentGroup = void 0, b.queryParams.value.currentCustomGroup = void 0) : Q.value === "group" ? (b.queryParams.value.currentDept = void 0, b.queryParams.value.currentCustomGroup = void 0, b.queryParams.value.currentGroup = U.value) : Q.value === "customGroup" && (b.queryParams.value.currentDept = void 0, b.queryParams.value.currentCustomGroup = Z.value, b.queryParams.value.currentGroup = void 0);
|
|
37496
37489
|
});
|
|
37497
37490
|
function X(K) {
|
|
@@ -37502,9 +37495,9 @@ const A3 = { class: "ja-user-group-tree" }, _3 = { class: "name" }, q3 = /* @__P
|
|
|
37502
37495
|
}
|
|
37503
37496
|
function T(K) {
|
|
37504
37497
|
if (Array.isArray(m.value)) {
|
|
37505
|
-
const
|
|
37506
|
-
if (
|
|
37507
|
-
V.delete(K.id), m.value.splice(
|
|
37498
|
+
const w = m.value.findIndex((ll) => ll.id === K.id);
|
|
37499
|
+
if (w >= 0)
|
|
37500
|
+
V.delete(K.id), m.value.splice(w, 1);
|
|
37508
37501
|
else {
|
|
37509
37502
|
if (t.maxSelect > 0 && m.value.length >= t.maxSelect) {
|
|
37510
37503
|
tZ({
|
|
@@ -37524,28 +37517,28 @@ const A3 = { class: "ja-user-group-tree" }, _3 = { class: "name" }, q3 = /* @__P
|
|
|
37524
37517
|
});
|
|
37525
37518
|
function L() {
|
|
37526
37519
|
if (Array.isArray(m.value)) {
|
|
37527
|
-
const K = b.queryResult.value.users.filter((
|
|
37520
|
+
const K = b.queryResult.value.users.filter((w) => !X(w));
|
|
37528
37521
|
if (t.maxSelect > 0) {
|
|
37529
|
-
const
|
|
37530
|
-
if (
|
|
37531
|
-
const ll = K.slice(0,
|
|
37532
|
-
ll.forEach((
|
|
37522
|
+
const w = t.maxSelect - m.value.length;
|
|
37523
|
+
if (w > 0) {
|
|
37524
|
+
const ll = K.slice(0, w);
|
|
37525
|
+
ll.forEach((al) => V.set(al.id, al)), m.value.push(...ll);
|
|
37533
37526
|
}
|
|
37534
37527
|
} else
|
|
37535
|
-
K.forEach((
|
|
37528
|
+
K.forEach((w) => V.set(w.id, w)), m.value.push(...K);
|
|
37536
37529
|
}
|
|
37537
37530
|
}
|
|
37538
37531
|
function D() {
|
|
37539
37532
|
Array.isArray(m.value) && (V.clear(), m.value.splice(0));
|
|
37540
37533
|
}
|
|
37541
|
-
function
|
|
37534
|
+
function x() {
|
|
37542
37535
|
if (Array.isArray(m.value)) {
|
|
37543
|
-
const K = b.queryResult.value.users.filter((
|
|
37536
|
+
const K = b.queryResult.value.users.filter((w) => !X(w));
|
|
37544
37537
|
if (V.clear(), t.maxSelect > 0) {
|
|
37545
|
-
const
|
|
37546
|
-
|
|
37538
|
+
const w = K.slice(0, t.maxSelect);
|
|
37539
|
+
w.forEach((ll) => V.set(ll.id, ll)), m.value.splice(0), m.value.push(...w);
|
|
37547
37540
|
} else
|
|
37548
|
-
K.forEach((
|
|
37541
|
+
K.forEach((w) => V.set(w.id, w)), m.value.splice(0), m.value.push(...K);
|
|
37549
37542
|
}
|
|
37550
37543
|
}
|
|
37551
37544
|
function I() {
|
|
@@ -37575,19 +37568,19 @@ const A3 = { class: "ja-user-group-tree" }, _3 = { class: "name" }, q3 = /* @__P
|
|
|
37575
37568
|
N.value && T(K);
|
|
37576
37569
|
}
|
|
37577
37570
|
let g;
|
|
37578
|
-
function
|
|
37571
|
+
function E() {
|
|
37579
37572
|
g && g < W.value.length && S.value.scrollToRow(g + 1), g = void 0;
|
|
37580
37573
|
}
|
|
37581
|
-
function O(K,
|
|
37582
|
-
N.value = K.buttons > 0, N.value && (g =
|
|
37574
|
+
function O(K, w) {
|
|
37575
|
+
N.value = K.buttons > 0, N.value && (g = w, G());
|
|
37583
37576
|
}
|
|
37584
37577
|
return l({
|
|
37585
37578
|
show() {
|
|
37586
37579
|
i.value = !0;
|
|
37587
37580
|
}
|
|
37588
|
-
}), (K,
|
|
37581
|
+
}), (K, w) => (H(), el(B(CV), {
|
|
37589
37582
|
modelValue: i.value,
|
|
37590
|
-
"onUpdate:modelValue":
|
|
37583
|
+
"onUpdate:modelValue": w[5] || (w[5] = (ll) => i.value = ll),
|
|
37591
37584
|
"destroy-on-close": "",
|
|
37592
37585
|
draggable: "",
|
|
37593
37586
|
width: "640",
|
|
@@ -37601,20 +37594,20 @@ const A3 = { class: "ja-user-group-tree" }, _3 = { class: "name" }, q3 = /* @__P
|
|
|
37601
37594
|
onClick: I,
|
|
37602
37595
|
size: "default"
|
|
37603
37596
|
}, {
|
|
37604
|
-
default: v(() => [...
|
|
37597
|
+
default: v(() => [...w[10] || (w[10] = [Jl("确定 ", -1)])]),
|
|
37605
37598
|
_: 1
|
|
37606
37599
|
}), $(B(Nt), {
|
|
37607
37600
|
plain: "",
|
|
37608
37601
|
size: "default",
|
|
37609
|
-
onClick:
|
|
37602
|
+
onClick: w[4] || (w[4] = (ll) => i.value = !1)
|
|
37610
37603
|
}, {
|
|
37611
|
-
default: v(() => [...
|
|
37604
|
+
default: v(() => [...w[11] || (w[11] = [Jl("取消", -1)])]),
|
|
37612
37605
|
_: 1
|
|
37613
37606
|
})]),
|
|
37614
37607
|
default: v(() => [Nl("div", dg, [$(B(jY), {
|
|
37615
37608
|
class: "ja-user-select-dialog__left",
|
|
37616
37609
|
modelValue: Q.value,
|
|
37617
|
-
"onUpdate:modelValue":
|
|
37610
|
+
"onUpdate:modelValue": w[3] || (w[3] = (ll) => Q.value = ll)
|
|
37618
37611
|
}, {
|
|
37619
37612
|
default: v(() => [$(B(Um), {
|
|
37620
37613
|
name: "dept",
|
|
@@ -37626,7 +37619,7 @@ const A3 = { class: "ja-user-group-tree" }, _3 = { class: "name" }, q3 = /* @__P
|
|
|
37626
37619
|
}, {
|
|
37627
37620
|
default: v(() => [$(B(Cy), {
|
|
37628
37621
|
modelValue: s.value,
|
|
37629
|
-
"onUpdate:modelValue":
|
|
37622
|
+
"onUpdate:modelValue": w[0] || (w[0] = (ll) => s.value = ll),
|
|
37630
37623
|
"realm-id": n.value
|
|
37631
37624
|
}, null, 8, ["modelValue", "realm-id"])]),
|
|
37632
37625
|
_: 1
|
|
@@ -37641,7 +37634,7 @@ const A3 = { class: "ja-user-group-tree" }, _3 = { class: "name" }, q3 = /* @__P
|
|
|
37641
37634
|
}, {
|
|
37642
37635
|
default: v(() => [$(B(Ky), {
|
|
37643
37636
|
modelValue: U.value,
|
|
37644
|
-
"onUpdate:modelValue":
|
|
37637
|
+
"onUpdate:modelValue": w[1] || (w[1] = (ll) => U.value = ll),
|
|
37645
37638
|
"show-all-category": "",
|
|
37646
37639
|
"realm-id": n.value
|
|
37647
37640
|
}, null, 8, ["modelValue", "realm-id"])]),
|
|
@@ -37657,7 +37650,7 @@ const A3 = { class: "ja-user-group-tree" }, _3 = { class: "name" }, q3 = /* @__P
|
|
|
37657
37650
|
}, {
|
|
37658
37651
|
default: v(() => [$(B(eg), {
|
|
37659
37652
|
modelValue: Z.value,
|
|
37660
|
-
"onUpdate:modelValue":
|
|
37653
|
+
"onUpdate:modelValue": w[2] || (w[2] = (ll) => Z.value = ll)
|
|
37661
37654
|
}, null, 8, ["modelValue"])]),
|
|
37662
37655
|
_: 1
|
|
37663
37656
|
})]),
|
|
@@ -37681,7 +37674,7 @@ const A3 = { class: "ja-user-group-tree" }, _3 = { class: "name" }, q3 = /* @__P
|
|
|
37681
37674
|
"font-weight": "600"
|
|
37682
37675
|
}
|
|
37683
37676
|
}, {
|
|
37684
|
-
default: v(() => [
|
|
37677
|
+
default: v(() => [w[6] || (w[6] = Jl(" 人员 ", -1)), $(B(Rn), {
|
|
37685
37678
|
content: "切换筛选条件,不会清除已选人员。支持鼠标拖动多选。"
|
|
37686
37679
|
}, {
|
|
37687
37680
|
default: v(() => [t.multiple ? (H(), el(B(vt), {
|
|
@@ -37728,7 +37721,7 @@ const A3 = { class: "ja-user-group-tree" }, _3 = { class: "name" }, q3 = /* @__P
|
|
|
37728
37721
|
shortcut: "Ctrl+A",
|
|
37729
37722
|
onClick: L
|
|
37730
37723
|
}, {
|
|
37731
|
-
default: v(() => [...
|
|
37724
|
+
default: v(() => [...w[7] || (w[7] = [Jl("全选 ", -1)])]),
|
|
37732
37725
|
_: 1
|
|
37733
37726
|
})) : Dl("", !0), t.multiple ? (H(), el(B(ne), {
|
|
37734
37727
|
key: 2,
|
|
@@ -37741,7 +37734,7 @@ const A3 = { class: "ja-user-group-tree" }, _3 = { class: "name" }, q3 = /* @__P
|
|
|
37741
37734
|
shortcut: "Ctrl+Q",
|
|
37742
37735
|
onClick: D
|
|
37743
37736
|
}, {
|
|
37744
|
-
default: v(() => [...
|
|
37737
|
+
default: v(() => [...w[8] || (w[8] = [Jl("全消 ", -1)])]),
|
|
37745
37738
|
_: 1
|
|
37746
37739
|
})) : Dl("", !0), t.multiple ? (H(), el(B(ne), {
|
|
37747
37740
|
key: 3,
|
|
@@ -37752,9 +37745,9 @@ const A3 = { class: "ja-user-group-tree" }, _3 = { class: "name" }, q3 = /* @__P
|
|
|
37752
37745
|
link: "",
|
|
37753
37746
|
tooltip: "清除选中项,并选中之前未被选中项",
|
|
37754
37747
|
shortcut: "Ctrl+F",
|
|
37755
|
-
onClick:
|
|
37748
|
+
onClick: x
|
|
37756
37749
|
}, {
|
|
37757
|
-
default: v(() => [...
|
|
37750
|
+
default: v(() => [...w[9] || (w[9] = [Jl("反选 ", -1)])]),
|
|
37758
37751
|
_: 1
|
|
37759
37752
|
})) : Dl("", !0)])]),
|
|
37760
37753
|
_: 1
|
|
@@ -37789,7 +37782,7 @@ const A3 = { class: "ja-user-group-tree" }, _3 = { class: "name" }, q3 = /* @__P
|
|
|
37789
37782
|
elScrollbar: d
|
|
37790
37783
|
}), Rs(xy, n);
|
|
37791
37784
|
let i = !1;
|
|
37792
|
-
|
|
37785
|
+
Ul(n, () => {
|
|
37793
37786
|
i && U();
|
|
37794
37787
|
}, {
|
|
37795
37788
|
deep: !0
|
|
@@ -38170,14 +38163,14 @@ const iF = /* @__PURE__ */ new Map(), im = {
|
|
|
38170
38163
|
setup(e, { expose: l, emit: t }) {
|
|
38171
38164
|
const d = e, n = f(0), a = f(), i = f(!1), s = yt(e, "modelValue"), U = yt(e, "page"), Z = t, h = P0(() => {
|
|
38172
38165
|
var I;
|
|
38173
|
-
const
|
|
38174
|
-
|
|
38166
|
+
const x = (I = a.value) == null ? void 0 : I.wrapRef;
|
|
38167
|
+
x && x.scrollHeight - x.scrollTop <= x.clientHeight + Ag && U.value < d.total / d.pageSize && U.value++;
|
|
38175
38168
|
}, 200);
|
|
38176
|
-
function o(
|
|
38169
|
+
function o(x) {
|
|
38177
38170
|
if (d.multiple) {
|
|
38178
38171
|
if (!Array.isArray(s.value))
|
|
38179
38172
|
throw new Error("UserPicker组件设置为多选模式(multiple)时,v-model必须绑定UserReference数组");
|
|
38180
|
-
const I = s.value.findIndex((A) => A.id ==
|
|
38173
|
+
const I = s.value.findIndex((A) => A.id == x.id);
|
|
38181
38174
|
if (I < 0) {
|
|
38182
38175
|
if (d.maxSelect && d.maxSelect > 0 && s.value.length >= d.maxSelect) {
|
|
38183
38176
|
tZ({
|
|
@@ -38187,24 +38180,24 @@ const iF = /* @__PURE__ */ new Map(), im = {
|
|
|
38187
38180
|
});
|
|
38188
38181
|
return;
|
|
38189
38182
|
}
|
|
38190
|
-
s.value.push(
|
|
38183
|
+
s.value.push(x);
|
|
38191
38184
|
} else
|
|
38192
38185
|
s.value.splice(I, 1);
|
|
38193
38186
|
} else {
|
|
38194
38187
|
if (Array.isArray(s.value))
|
|
38195
38188
|
throw new Error("UserPicker组件设置为单选模式时,v-model必须绑定UserReference对象或null");
|
|
38196
|
-
s.value !== null &&
|
|
38189
|
+
s.value !== null && x.id === s.value.id ? s.value = null : s.value = x;
|
|
38197
38190
|
}
|
|
38198
38191
|
}
|
|
38199
38192
|
let W;
|
|
38200
|
-
function V(
|
|
38201
|
-
o(
|
|
38193
|
+
function V(x) {
|
|
38194
|
+
o(x), i.value = !0, W = x;
|
|
38202
38195
|
}
|
|
38203
38196
|
function Q() {
|
|
38204
38197
|
i.value = !1, Z("itemClicked", W), W = void 0;
|
|
38205
38198
|
}
|
|
38206
|
-
function m(
|
|
38207
|
-
console.log("点击"), i.value && o(
|
|
38199
|
+
function m(x) {
|
|
38200
|
+
console.log("点击"), i.value && o(x);
|
|
38208
38201
|
}
|
|
38209
38202
|
function b() {
|
|
38210
38203
|
n.value < d.users.length - 1 && n.value++, N();
|
|
@@ -38215,53 +38208,53 @@ const iF = /* @__PURE__ */ new Map(), im = {
|
|
|
38215
38208
|
const N = () => {
|
|
38216
38209
|
Qn(() => {
|
|
38217
38210
|
var A, P, Y;
|
|
38218
|
-
const
|
|
38219
|
-
if (I &&
|
|
38220
|
-
const y = I.offsetTop, z = I.offsetTop + I.offsetHeight, g =
|
|
38221
|
-
z >
|
|
38211
|
+
const x = (A = a.value) == null ? void 0 : A.$refs.wrapRef, I = x == null ? void 0 : x.querySelectorAll("li")[n.value];
|
|
38212
|
+
if (I && x) {
|
|
38213
|
+
const y = I.offsetTop, z = I.offsetTop + I.offsetHeight, g = x.scrollTop, E = x.scrollTop + x.clientHeight;
|
|
38214
|
+
z > E ? (P = a.value) == null || P.scrollTo(
|
|
38222
38215
|
0,
|
|
38223
|
-
z -
|
|
38216
|
+
z - x.clientHeight + I.offsetHeight - 38
|
|
38224
38217
|
) : y < g && ((Y = a.value) == null || Y.scrollTo(0, y));
|
|
38225
38218
|
}
|
|
38226
38219
|
});
|
|
38227
38220
|
}, S = P0(b, 100), G = P0(u, 100);
|
|
38228
|
-
function J(
|
|
38221
|
+
function J(x, I) {
|
|
38229
38222
|
var A;
|
|
38230
|
-
if (n.value = I, i.value =
|
|
38231
|
-
const P = (A = a.value) == null ? void 0 : A.$refs.wrapRef, Y =
|
|
38223
|
+
if (n.value = I, i.value = x.buttons > 0, i.value) {
|
|
38224
|
+
const P = (A = a.value) == null ? void 0 : A.$refs.wrapRef, Y = x.target;
|
|
38232
38225
|
if (Y && P) {
|
|
38233
|
-
const y = Y.offsetTop, z = Y.offsetTop + Y.offsetHeight, g = P.scrollTop,
|
|
38234
|
-
z + 20 >
|
|
38226
|
+
const y = Y.offsetTop, z = Y.offsetTop + Y.offsetHeight, g = P.scrollTop, E = P.scrollTop + P.clientHeight;
|
|
38227
|
+
z + 20 > E ? S() : y < g + 20 && G();
|
|
38235
38228
|
}
|
|
38236
38229
|
}
|
|
38237
38230
|
}
|
|
38238
|
-
function X(
|
|
38231
|
+
function X(x) {
|
|
38239
38232
|
var I;
|
|
38240
38233
|
if (d.multiple) {
|
|
38241
38234
|
if (!Array.isArray(s.value))
|
|
38242
38235
|
throw new Error("UserPicker组件设置为多选模式(multiple)时,v-model必须绑定UserReference数组");
|
|
38243
|
-
return s.value.some((A) => A.id ===
|
|
38236
|
+
return s.value.some((A) => A.id === x.id);
|
|
38244
38237
|
} else {
|
|
38245
38238
|
if (Array.isArray(s.value))
|
|
38246
38239
|
throw new Error("UserPicker组件设置为单选模式时,v-model必须绑定UserReference对象");
|
|
38247
|
-
return ((I = s.value) == null ? void 0 : I.id) ===
|
|
38240
|
+
return ((I = s.value) == null ? void 0 : I.id) === x.id;
|
|
38248
38241
|
}
|
|
38249
38242
|
}
|
|
38250
|
-
const k = (
|
|
38243
|
+
const k = (x) => {
|
|
38251
38244
|
var I;
|
|
38252
|
-
return Array.isArray(T.value) ? T.value.some((A) => A.id ===
|
|
38245
|
+
return Array.isArray(T.value) ? T.value.some((A) => A.id === x.id) ? "autumnOrange" : "skyGray" : ((I = T.value) == null ? void 0 : I.id) === x.id ? "autumnOrange" : "skyGray";
|
|
38253
38246
|
}, T = Kl(() => {
|
|
38254
|
-
const
|
|
38255
|
-
if (d.multiple &&
|
|
38247
|
+
const x = Array.isArray(s.value);
|
|
38248
|
+
if (d.multiple && x)
|
|
38256
38249
|
return s.value;
|
|
38257
|
-
if (!d.multiple && !
|
|
38250
|
+
if (!d.multiple && !x)
|
|
38258
38251
|
return s.value ? [s.value] : [];
|
|
38259
|
-
if (!d.multiple &&
|
|
38252
|
+
if (!d.multiple && x)
|
|
38260
38253
|
return s.value;
|
|
38261
38254
|
throw new Error("UserPicker组件设置为多选模式(multiple)时,v-model必须绑定UserReference数组");
|
|
38262
38255
|
});
|
|
38263
|
-
function L(
|
|
38264
|
-
return
|
|
38256
|
+
function L(x) {
|
|
38257
|
+
return x === n.value ? "active" : "";
|
|
38265
38258
|
}
|
|
38266
38259
|
const D = Kl(() => d.loading && d.users.length == 0);
|
|
38267
38260
|
return l({
|
|
@@ -38272,13 +38265,13 @@ const iF = /* @__PURE__ */ new Map(), im = {
|
|
|
38272
38265
|
b();
|
|
38273
38266
|
},
|
|
38274
38267
|
activeIndex: n
|
|
38275
|
-
}),
|
|
38268
|
+
}), Ul(() => d.users, () => {
|
|
38276
38269
|
n.value = 0;
|
|
38277
38270
|
}, {
|
|
38278
38271
|
deep: !1
|
|
38279
38272
|
}), hi(() => {
|
|
38280
38273
|
S.cancel(), G.cancel(), h.cancel();
|
|
38281
|
-
}), (
|
|
38274
|
+
}), (x, I) => (H(), Ql("div", Kg, [
|
|
38282
38275
|
tt((H(), el(B(ws), {
|
|
38283
38276
|
height: e.height,
|
|
38284
38277
|
ref_key: "scrollbar",
|
|
@@ -38363,27 +38356,27 @@ const iF = /* @__PURE__ */ new Map(), im = {
|
|
|
38363
38356
|
if (l.realmId)
|
|
38364
38357
|
t.value = l.realmId;
|
|
38365
38358
|
else {
|
|
38366
|
-
const
|
|
38367
|
-
t.value =
|
|
38359
|
+
const E = await Nr().getDefaultRealm();
|
|
38360
|
+
t.value = E.id;
|
|
38368
38361
|
}
|
|
38369
38362
|
}
|
|
38370
|
-
n(),
|
|
38363
|
+
n(), Ul(() => l.realmId, n);
|
|
38371
38364
|
const a = Xl(), i = Jb(a), s = A0([]), U = yt(e, "modelValue"), Z = f(), F = f(!1), { queryResult: h, queryParams: o, pageParams: W, loading: V } = Ey(
|
|
38372
38365
|
() => o.value.name != null && o.value.name.length > sF,
|
|
38373
38366
|
l.customFilter,
|
|
38374
|
-
(
|
|
38375
|
-
var K,
|
|
38376
|
-
|
|
38367
|
+
(E, O) => {
|
|
38368
|
+
var K, w;
|
|
38369
|
+
E ? (s.value = h.value.users, O && ((w = (K = m.value) == null ? void 0 : K.elScrollbar) == null || w.scrollTo(0, 0))) : G();
|
|
38377
38370
|
},
|
|
38378
38371
|
!0,
|
|
38379
38372
|
a,
|
|
38380
38373
|
!1
|
|
38381
38374
|
), Q = f(), m = f(), b = f(), u = f(), N = f();
|
|
38382
|
-
function S(
|
|
38375
|
+
function S(E) {
|
|
38383
38376
|
if (l.multiple) {
|
|
38384
38377
|
if (!Array.isArray(U.value))
|
|
38385
38378
|
throw new Error("UserPicker组件设置为多选模式(multiple)时,v-model必须绑定UserReference数组");
|
|
38386
|
-
const O = U.value.findIndex((K) => K.id ==
|
|
38379
|
+
const O = U.value.findIndex((K) => K.id == E.id);
|
|
38387
38380
|
if (O < 0) {
|
|
38388
38381
|
if (l.maxSelect > 0 && U.value.length >= l.maxSelect) {
|
|
38389
38382
|
tZ({
|
|
@@ -38393,23 +38386,23 @@ const iF = /* @__PURE__ */ new Map(), im = {
|
|
|
38393
38386
|
});
|
|
38394
38387
|
return;
|
|
38395
38388
|
}
|
|
38396
|
-
U.value.push(
|
|
38389
|
+
U.value.push(E);
|
|
38397
38390
|
} else
|
|
38398
38391
|
U.value.splice(O, 1);
|
|
38399
38392
|
} else {
|
|
38400
38393
|
if (Array.isArray(U.value))
|
|
38401
38394
|
throw new Error("UserPicker组件设置为单选模式时,v-model必须绑定UserReference对象或者null");
|
|
38402
|
-
U.value !== null &&
|
|
38395
|
+
U.value !== null && E.id === U.value.id ? U.value = null : U.value = E;
|
|
38403
38396
|
}
|
|
38404
38397
|
}
|
|
38405
38398
|
function G() {
|
|
38406
38399
|
l.realmId && (o.value.realmId = l.realmId), o.value.name && o.value.name.length > sF && (o.value.name = void 0);
|
|
38407
|
-
const
|
|
38400
|
+
const E = YS();
|
|
38408
38401
|
if (l.customFilter) {
|
|
38409
|
-
const O =
|
|
38410
|
-
|
|
38402
|
+
const O = E.getQEntity();
|
|
38403
|
+
E.and(l.customFilter(O));
|
|
38411
38404
|
}
|
|
38412
|
-
i.getBookmarkedUsers(
|
|
38405
|
+
i.getBookmarkedUsers(E.build()).then((O) => {
|
|
38413
38406
|
s.value = O;
|
|
38414
38407
|
}), setTimeout(() => {
|
|
38415
38408
|
var O;
|
|
@@ -38417,50 +38410,50 @@ const iF = /* @__PURE__ */ new Map(), im = {
|
|
|
38417
38410
|
}, 300);
|
|
38418
38411
|
}
|
|
38419
38412
|
function J() {
|
|
38420
|
-
var
|
|
38421
|
-
F.value = !1, (
|
|
38413
|
+
var E;
|
|
38414
|
+
F.value = !1, (E = Q.value) == null || E.$el.focus();
|
|
38422
38415
|
}
|
|
38423
38416
|
function X() {
|
|
38424
|
-
var
|
|
38425
|
-
(
|
|
38417
|
+
var E;
|
|
38418
|
+
(E = u.value) == null || E.show();
|
|
38426
38419
|
}
|
|
38427
|
-
function k(
|
|
38420
|
+
function k(E) {
|
|
38428
38421
|
if (!l.disabled)
|
|
38429
38422
|
if (Array.isArray(U.value)) {
|
|
38430
|
-
const O = U.value.findIndex((K) => K.id ==
|
|
38423
|
+
const O = U.value.findIndex((K) => K.id == E);
|
|
38431
38424
|
O >= 0 && U.value.splice(O, 1);
|
|
38432
38425
|
} else
|
|
38433
38426
|
U.value = null;
|
|
38434
38427
|
}
|
|
38435
38428
|
function T() {
|
|
38436
|
-
var
|
|
38437
|
-
N.value.scrollDown(), (
|
|
38429
|
+
var E;
|
|
38430
|
+
N.value.scrollDown(), (E = Z.value) == null || E.focus();
|
|
38438
38431
|
}
|
|
38439
38432
|
function L() {
|
|
38440
|
-
var
|
|
38441
|
-
N.value.scrollUp(), (
|
|
38433
|
+
var E;
|
|
38434
|
+
N.value.scrollUp(), (E = Z.value) == null || E.focus();
|
|
38442
38435
|
}
|
|
38443
38436
|
function D() {
|
|
38444
|
-
var
|
|
38445
|
-
S(s.value[(
|
|
38437
|
+
var E;
|
|
38438
|
+
S(s.value[(E = N.value) == null ? void 0 : E.activeIndex]);
|
|
38446
38439
|
}
|
|
38447
|
-
function
|
|
38440
|
+
function x() {
|
|
38448
38441
|
l.disabled || (F.value = !0);
|
|
38449
38442
|
}
|
|
38450
38443
|
function I() {
|
|
38451
|
-
const
|
|
38444
|
+
const E = U.value, O = s.value.filter((K) => !E.some((w) => w.id === K.id));
|
|
38452
38445
|
if (l.maxSelect > 0) {
|
|
38453
|
-
const K = l.maxSelect -
|
|
38454
|
-
K > 0 &&
|
|
38446
|
+
const K = l.maxSelect - E.length;
|
|
38447
|
+
K > 0 && E.push(...O.slice(0, K));
|
|
38455
38448
|
} else
|
|
38456
|
-
|
|
38449
|
+
E.push(...O);
|
|
38457
38450
|
}
|
|
38458
38451
|
function A() {
|
|
38459
38452
|
l.multiple ? U.value = [] : U.value = null;
|
|
38460
38453
|
}
|
|
38461
38454
|
function P() {
|
|
38462
|
-
var
|
|
38463
|
-
(
|
|
38455
|
+
var E;
|
|
38456
|
+
(E = Z.value) == null || E.focus();
|
|
38464
38457
|
}
|
|
38465
38458
|
const Y = Kl(() => {
|
|
38466
38459
|
if (l.multiple && Array.isArray(U.value))
|
|
@@ -38470,20 +38463,20 @@ const iF = /* @__PURE__ */ new Map(), im = {
|
|
|
38470
38463
|
throw new Error("UserPicker组件设置为多选模式(multiple)时,v-model必须绑定UserReference数组");
|
|
38471
38464
|
});
|
|
38472
38465
|
function y() {
|
|
38473
|
-
var
|
|
38474
|
-
l.disabled || ((
|
|
38466
|
+
var E;
|
|
38467
|
+
l.disabled || ((E = b.value) == null || E.show(), F.value = !1);
|
|
38475
38468
|
}
|
|
38476
38469
|
function z() {
|
|
38477
38470
|
l.disabled || (F.value = !0);
|
|
38478
38471
|
}
|
|
38479
38472
|
const g = Kl(() => Y.value.slice(0, l.maxShowCount));
|
|
38480
|
-
return
|
|
38473
|
+
return Ul(() => l.classificationLevel, () => {
|
|
38481
38474
|
o.value.classificationLevel = l.classificationLevel;
|
|
38482
|
-
}), (
|
|
38475
|
+
}), (E, O) => (H(), Ql(rt, null, [
|
|
38483
38476
|
$(B(Hy), Hl({
|
|
38484
38477
|
"max-height": l.maxHeight,
|
|
38485
38478
|
height: l.height
|
|
38486
|
-
},
|
|
38479
|
+
}, E.$attrs, { style: { "overflow-x": "hidden" } }), {
|
|
38487
38480
|
default: v(() => [
|
|
38488
38481
|
tt((H(), Ql("div", qg, [
|
|
38489
38482
|
$(B(xS), {
|
|
@@ -38500,7 +38493,7 @@ const iF = /* @__PURE__ */ new Map(), im = {
|
|
|
38500
38493
|
}, {
|
|
38501
38494
|
reference: v(() => [
|
|
38502
38495
|
Nl("div", $g, [
|
|
38503
|
-
|
|
38496
|
+
E.$slots.default ? dt(E.$slots, "default", { key: 0 }, void 0, !0) : (H(), el(B(Nt), {
|
|
38504
38497
|
key: 1,
|
|
38505
38498
|
circle: "",
|
|
38506
38499
|
icon: B(oi),
|
|
@@ -38651,7 +38644,7 @@ const iF = /* @__PURE__ */ new Map(), im = {
|
|
|
38651
38644
|
"onUpdate:modelValue": O[4] || (O[4] = (K) => U.value = K)
|
|
38652
38645
|
}, null, 8, ["multiple", "realm-id", "classificationLevel", "customFilter", "maxSelect", "modelValue"])
|
|
38653
38646
|
])), [
|
|
38654
|
-
[B(nm), l.disabled ? void 0 :
|
|
38647
|
+
[B(nm), l.disabled ? void 0 : x, l.shortcut]
|
|
38655
38648
|
])
|
|
38656
38649
|
]),
|
|
38657
38650
|
_: 3
|
|
@@ -38672,7 +38665,7 @@ const iF = /* @__PURE__ */ new Map(), im = {
|
|
|
38672
38665
|
n.removeFieldError(d), wt(t.formData, d, s.value), a("change", U);
|
|
38673
38666
|
}
|
|
38674
38667
|
const s = f(Yl(t.formData, d) ?? []);
|
|
38675
|
-
return
|
|
38668
|
+
return Ul(() => t.formData, () => {
|
|
38676
38669
|
s.value = Yl(t.formData, d) ?? [];
|
|
38677
38670
|
}, {
|
|
38678
38671
|
deep: !0
|
|
@@ -38743,7 +38736,7 @@ const iF = /* @__PURE__ */ new Map(), im = {
|
|
|
38743
38736
|
i.removeFieldError(a), wt(n.formData, a, h.value), s("change", W);
|
|
38744
38737
|
}
|
|
38745
38738
|
const h = f(Yl(n.formData, a));
|
|
38746
|
-
|
|
38739
|
+
Ul(() => n.formData, () => {
|
|
38747
38740
|
h.value = Yl(n.formData, a);
|
|
38748
38741
|
}, {
|
|
38749
38742
|
deep: !0
|
|
@@ -38799,12 +38792,12 @@ const iF = /* @__PURE__ */ new Map(), im = {
|
|
|
38799
38792
|
}, Z = (F) => {
|
|
38800
38793
|
i("change", Array.isArray(F) ? s.groups.filter((h) => F.findIndex((o) => h.id === o) >= 0) : s.groups.find((h) => h.id === F));
|
|
38801
38794
|
};
|
|
38802
|
-
return U(),
|
|
38795
|
+
return U(), Ul(
|
|
38803
38796
|
() => n.realmId,
|
|
38804
38797
|
() => {
|
|
38805
38798
|
U();
|
|
38806
38799
|
}
|
|
38807
|
-
),
|
|
38800
|
+
), Ul(() => n.appId, U), (F, h) => (H(), el(B(kb), Hl({
|
|
38808
38801
|
style: { width: "100%" },
|
|
38809
38802
|
data: s.groups,
|
|
38810
38803
|
size: n.size,
|
|
@@ -38880,7 +38873,7 @@ const iF = /* @__PURE__ */ new Map(), im = {
|
|
|
38880
38873
|
i.removeFieldError(a), wt(n.formData, a, Z.value), s("change", o);
|
|
38881
38874
|
}
|
|
38882
38875
|
const Z = f(Yl(n.formData, a));
|
|
38883
|
-
|
|
38876
|
+
Ul(() => n.formData, () => {
|
|
38884
38877
|
Z.value = Yl(n.formData, a);
|
|
38885
38878
|
}, {
|
|
38886
38879
|
deep: !0
|
|
@@ -38926,7 +38919,7 @@ const iF = /* @__PURE__ */ new Map(), im = {
|
|
|
38926
38919
|
i.removeFieldError(a), wt(n.formData, a, F.value), s("change", o);
|
|
38927
38920
|
}
|
|
38928
38921
|
const F = f(Yl(n.formData, a));
|
|
38929
|
-
|
|
38922
|
+
Ul(() => n.formData, () => {
|
|
38930
38923
|
F.value = Yl(n.formData, a);
|
|
38931
38924
|
}, {
|
|
38932
38925
|
deep: !0
|
|
@@ -38996,7 +38989,7 @@ const Nj = /* @__PURE__ */ ml({
|
|
|
38996
38989
|
const { getRoles: d } = nY(), n = e, a = f(), i = f([]), s = Dh(), U = async () => {
|
|
38997
38990
|
n.appName && (a.value = await s.getByName(n.appName), i.value = await d(a.value.id), Z.value ? h.value = Q(Z.value, i.value) : h.value = void 0);
|
|
38998
38991
|
}, Z = yt(e, "modelValue"), F = t, h = f();
|
|
38999
|
-
|
|
38992
|
+
Ul(() => n.appName, U), U();
|
|
39000
38993
|
const o = {
|
|
39001
38994
|
label: (m) => m.caption ? m.caption : m.name,
|
|
39002
38995
|
isLeaf: (m) => !m.hasChildren
|
|
@@ -39071,7 +39064,7 @@ const Nj = /* @__PURE__ */ ml({
|
|
|
39071
39064
|
async function W() {
|
|
39072
39065
|
i.value = await F.getById(d.appId);
|
|
39073
39066
|
}
|
|
39074
|
-
return
|
|
39067
|
+
return Ul(() => d.appId, async () => {
|
|
39075
39068
|
await W();
|
|
39076
39069
|
}), (V, Q) => {
|
|
39077
39070
|
const m = GS("focus");
|
|
@@ -39176,9 +39169,9 @@ const Nj = /* @__PURE__ */ ml({
|
|
|
39176
39169
|
Q.value = "";
|
|
39177
39170
|
return;
|
|
39178
39171
|
}
|
|
39179
|
-
let
|
|
39180
|
-
L && L.length > 0 && (
|
|
39181
|
-
const A = (await i.getByKey(o.value,
|
|
39172
|
+
let x = L;
|
|
39173
|
+
L && L.length > 0 && (x = gg(x), x.startsWith("{") && x.endsWith("}") && (x = x.substring(1, x.length - 1)));
|
|
39174
|
+
const A = (await i.getByKey(o.value, x, {
|
|
39182
39175
|
cancelDuplicatedRequest: !1
|
|
39183
39176
|
})).find((P) => P.locale === s);
|
|
39184
39177
|
A && (await Qn(), Q.value = A.message);
|
|
@@ -39197,7 +39190,7 @@ const Nj = /* @__PURE__ */ ml({
|
|
|
39197
39190
|
}
|
|
39198
39191
|
hi(() => {
|
|
39199
39192
|
u.cancel(), N && clearTimeout(N);
|
|
39200
|
-
}),
|
|
39193
|
+
}), Ul(n, () => {
|
|
39201
39194
|
u();
|
|
39202
39195
|
}, {
|
|
39203
39196
|
deep: !0
|
|
@@ -39221,7 +39214,7 @@ const Nj = /* @__PURE__ */ ml({
|
|
|
39221
39214
|
ref: m,
|
|
39222
39215
|
onFocus: J,
|
|
39223
39216
|
modelValue: Q.value,
|
|
39224
|
-
"onUpdate:modelValue": D[0] || (D[0] = (
|
|
39217
|
+
"onUpdate:modelValue": D[0] || (D[0] = (x) => Q.value = x),
|
|
39225
39218
|
size: e.size,
|
|
39226
39219
|
disabled: e.disabled,
|
|
39227
39220
|
type: e.textarea ? "textarea" : void 0
|
|
@@ -39244,14 +39237,14 @@ const Nj = /* @__PURE__ */ ml({
|
|
|
39244
39237
|
clearable: "",
|
|
39245
39238
|
onBlur: X,
|
|
39246
39239
|
modelValue: n.value,
|
|
39247
|
-
"onUpdate:modelValue": D[2] || (D[2] = (
|
|
39240
|
+
"onUpdate:modelValue": D[2] || (D[2] = (x) => n.value = x)
|
|
39248
39241
|
}, {
|
|
39249
39242
|
footer: v(() => [
|
|
39250
39243
|
$(B(ne), {
|
|
39251
39244
|
link: "",
|
|
39252
39245
|
style: { width: "100%" },
|
|
39253
39246
|
type: "primary",
|
|
39254
|
-
onClick: D[1] || (D[1] = (
|
|
39247
|
+
onClick: D[1] || (D[1] = (x) => F.value = !0),
|
|
39255
39248
|
shortcut: "Alt+I"
|
|
39256
39249
|
}, {
|
|
39257
39250
|
default: v(() => [...D[4] || (D[4] = [
|
|
@@ -39261,10 +39254,10 @@ const Nj = /* @__PURE__ */ ml({
|
|
|
39261
39254
|
})
|
|
39262
39255
|
]),
|
|
39263
39256
|
default: v(() => [
|
|
39264
|
-
(H(!0), Ql(rt, null, xl(U.value, (
|
|
39265
|
-
key:
|
|
39266
|
-
value: "{" +
|
|
39267
|
-
label: "{" +
|
|
39257
|
+
(H(!0), Ql(rt, null, xl(U.value, (x) => (H(), el(B(lZ), {
|
|
39258
|
+
key: x,
|
|
39259
|
+
value: "{" + x + "}",
|
|
39260
|
+
label: "{" + x + "}"
|
|
39268
39261
|
}, null, 8, ["value", "label"]))), 128))
|
|
39269
39262
|
]),
|
|
39270
39263
|
_: 1
|
|
@@ -39275,7 +39268,7 @@ const Nj = /* @__PURE__ */ ml({
|
|
|
39275
39268
|
"app-id": e.appId,
|
|
39276
39269
|
"pre-key": V.value,
|
|
39277
39270
|
modelValue: F.value,
|
|
39278
|
-
"onUpdate:modelValue": D[3] || (D[3] = (
|
|
39271
|
+
"onUpdate:modelValue": D[3] || (D[3] = (x) => F.value = x),
|
|
39279
39272
|
onSuccess: T
|
|
39280
39273
|
}, null, 8, ["app-id", "pre-key", "modelValue"])
|
|
39281
39274
|
]));
|
|
@@ -39370,7 +39363,7 @@ const Jj = ["onClick"], Gj = { style: { flex: "1" } }, Tj = { style: { display:
|
|
|
39370
39363
|
return !1;
|
|
39371
39364
|
}
|
|
39372
39365
|
}
|
|
39373
|
-
return
|
|
39366
|
+
return Ul(() => l.appId, Z, { immediate: !0 }), (m, b) => (H(), el(B(Wi), {
|
|
39374
39367
|
modelValue: n.value,
|
|
39375
39368
|
"onUpdate:modelValue": b[2] || (b[2] = (u) => n.value = u),
|
|
39376
39369
|
placeholder: "[未分类]"
|
|
@@ -39731,7 +39724,7 @@ const Jj = ["onClick"], Gj = { style: { flex: "1" } }, Tj = { style: { display:
|
|
|
39731
39724
|
i.removeFieldError(a), wt(n.formData, a, Z.value), s("change", F);
|
|
39732
39725
|
}
|
|
39733
39726
|
const Z = f(Yl(n.formData, a));
|
|
39734
|
-
return
|
|
39727
|
+
return Ul(() => n.formData, () => {
|
|
39735
39728
|
Z.value = Yl(n.formData, a);
|
|
39736
39729
|
}, {
|
|
39737
39730
|
deep: !0
|
|
@@ -39774,7 +39767,7 @@ const Jj = ["onClick"], Gj = { style: { flex: "1" } }, Tj = { style: { display:
|
|
|
39774
39767
|
var F;
|
|
39775
39768
|
a.value = ((F = n.value) == null ? void 0 : F.filter((h) => h.name.indexOf(Z) > -1)) ?? [];
|
|
39776
39769
|
}
|
|
39777
|
-
return
|
|
39770
|
+
return Ul(() => d.appName, s), (Z, F) => (H(), el(B(Wi), Hl({
|
|
39778
39771
|
filterable: "",
|
|
39779
39772
|
"filter-method": U,
|
|
39780
39773
|
"value-key": "id",
|
|
@@ -39800,7 +39793,7 @@ const Jj = ["onClick"], Gj = { style: { flex: "1" } }, Tj = { style: { display:
|
|
|
39800
39793
|
n.removeFieldError(d), wt(t.formData, d, s.value), a("change", U);
|
|
39801
39794
|
}
|
|
39802
39795
|
const s = f(Yl(t.formData, d));
|
|
39803
|
-
return
|
|
39796
|
+
return Ul(() => t.formData, () => {
|
|
39804
39797
|
s.value = Yl(t.formData, d);
|
|
39805
39798
|
}, {
|
|
39806
39799
|
deep: !0
|
|
@@ -39856,16 +39849,16 @@ const gj = { class: "ja-property-picker__dropdown" }, jj = { key: 0 }, Oj = ["on
|
|
|
39856
39849
|
function u(y) {
|
|
39857
39850
|
let z;
|
|
39858
39851
|
y ? z = y.join(".") : z = "", z !== d.value && (d.value = z), Qn(async () => {
|
|
39859
|
-
var
|
|
39852
|
+
var E;
|
|
39860
39853
|
t = l.entityId, await b();
|
|
39861
39854
|
let g = U[t];
|
|
39862
39855
|
if (g) {
|
|
39863
39856
|
for (let O = 0; O < y.length; O++) {
|
|
39864
39857
|
const K = y[O];
|
|
39865
|
-
let
|
|
39866
|
-
|
|
39858
|
+
let w = g.find((ll) => ll.name === K);
|
|
39859
|
+
w && w.entityType ? (t = w.entityType.id, O < y.length - 1 ? (await b(), g = U[t]) : w.dataType === "ENTITY" && w.collectionType === "NONE" ? (t = w.entityType.id, b()) : (t = "-1", b())) : (t = "-1", b());
|
|
39867
39860
|
}
|
|
39868
|
-
(
|
|
39861
|
+
(E = W.value) == null || E.focus();
|
|
39869
39862
|
}
|
|
39870
39863
|
});
|
|
39871
39864
|
}
|
|
@@ -39892,7 +39885,7 @@ const gj = { class: "ja-property-picker__dropdown" }, jj = { key: 0 }, Oj = ["on
|
|
|
39892
39885
|
const y = U[t];
|
|
39893
39886
|
if (!y) return;
|
|
39894
39887
|
const z = (g = W.value) == null ? void 0 : g.value;
|
|
39895
|
-
z && z.length > 0 ? s.value = [...y].filter((
|
|
39888
|
+
z && z.length > 0 ? s.value = [...y].filter((E) => E.name.toLowerCase().indexOf(z.toLowerCase()) > -1) : s.value = y, P();
|
|
39896
39889
|
}
|
|
39897
39890
|
function T() {
|
|
39898
39891
|
s.value && (Z.value < s.value.length - 1 && Z.value++, P());
|
|
@@ -39905,7 +39898,7 @@ const gj = { class: "ja-property-picker__dropdown" }, jj = { key: 0 }, Oj = ["on
|
|
|
39905
39898
|
const y = s.value[Z.value];
|
|
39906
39899
|
y && J(y);
|
|
39907
39900
|
}
|
|
39908
|
-
function
|
|
39901
|
+
function x() {
|
|
39909
39902
|
var y;
|
|
39910
39903
|
Q.value && Q.value.length > 0 || (y = n.value) == null || y.pop();
|
|
39911
39904
|
}
|
|
@@ -39920,18 +39913,18 @@ const gj = { class: "ja-property-picker__dropdown" }, jj = { key: 0 }, Oj = ["on
|
|
|
39920
39913
|
return n.value && n.value.length > 0 ? (y = n.value) == null ? void 0 : y.join(".") : "请选择属性";
|
|
39921
39914
|
}), P = () => {
|
|
39922
39915
|
Qn(() => {
|
|
39923
|
-
var g,
|
|
39916
|
+
var g, E, O;
|
|
39924
39917
|
const y = (g = V.value) == null ? void 0 : g.$refs.wrapRef, z = y == null ? void 0 : y.querySelectorAll("li")[Z.value];
|
|
39925
39918
|
if (z && y) {
|
|
39926
|
-
const K = z.offsetTop,
|
|
39927
|
-
|
|
39919
|
+
const K = z.offsetTop, w = z.offsetTop + z.offsetHeight, ll = y.scrollTop, al = y.scrollTop + y.clientHeight;
|
|
39920
|
+
w > al ? (E = V.value) == null || E.scrollTo(
|
|
39928
39921
|
0,
|
|
39929
|
-
|
|
39922
|
+
w - y.clientHeight + z.offsetHeight - 38
|
|
39930
39923
|
) : K < ll && ((O = V.value) == null || O.scrollTo(0, K));
|
|
39931
39924
|
}
|
|
39932
39925
|
});
|
|
39933
39926
|
};
|
|
39934
|
-
|
|
39927
|
+
Ul(() => l.entityId, b), Ul(
|
|
39935
39928
|
n,
|
|
39936
39929
|
() => u(n.value),
|
|
39937
39930
|
{
|
|
@@ -39945,9 +39938,9 @@ const gj = { class: "ja-property-picker__dropdown" }, jj = { key: 0 }, Oj = ["on
|
|
|
39945
39938
|
} else
|
|
39946
39939
|
n.value.length > 0 && (n.value = []);
|
|
39947
39940
|
}
|
|
39948
|
-
return
|
|
39941
|
+
return Ul(d, () => {
|
|
39949
39942
|
Y();
|
|
39950
|
-
}), d.value && d.value.length > 0 ? Y() : b(),
|
|
39943
|
+
}), d.value && d.value.length > 0 ? Y() : b(), Ul(s, () => {
|
|
39951
39944
|
Z.value = 0, P();
|
|
39952
39945
|
}), (y, z) => (H(), el(B(yb), { onVisibleChange: I }, {
|
|
39953
39946
|
dropdown: v(() => [
|
|
@@ -39959,7 +39952,7 @@ const gj = { class: "ja-property-picker__dropdown" }, jj = { key: 0 }, Oj = ["on
|
|
|
39959
39952
|
}, [
|
|
39960
39953
|
(H(!0), Ql(rt, null, xl(n.value, (g) => (H(), el(B(xV), {
|
|
39961
39954
|
id: g,
|
|
39962
|
-
onClose: (
|
|
39955
|
+
onClose: (E) => X(),
|
|
39963
39956
|
closable: ""
|
|
39964
39957
|
}, {
|
|
39965
39958
|
default: v(() => [
|
|
@@ -39978,7 +39971,7 @@ const gj = { class: "ja-property-picker__dropdown" }, jj = { key: 0 }, Oj = ["on
|
|
|
39978
39971
|
onFocus: z[1] || (z[1] = (g) => o.value = !0),
|
|
39979
39972
|
onBlur: z[2] || (z[2] = (g) => o.value = !1),
|
|
39980
39973
|
onKeydown: [
|
|
39981
|
-
Pa(
|
|
39974
|
+
Pa(x, ["delete"]),
|
|
39982
39975
|
Pa(T, ["down"]),
|
|
39983
39976
|
Pa(L, ["up"]),
|
|
39984
39977
|
Pa(D, ["enter"])
|
|
@@ -39998,13 +39991,13 @@ const gj = { class: "ja-property-picker__dropdown" }, jj = { key: 0 }, Oj = ["on
|
|
|
39998
39991
|
var g;
|
|
39999
39992
|
return [
|
|
40000
39993
|
((g = s.value) == null ? void 0 : g.length) ?? !1 ? (H(), Ql("ul", jj, [
|
|
40001
|
-
(H(!0), Ql(rt, null, xl(s.value, (
|
|
40002
|
-
key:
|
|
39994
|
+
(H(!0), Ql(rt, null, xl(s.value, (E, O) => (H(), Ql("li", {
|
|
39995
|
+
key: E.id,
|
|
40003
39996
|
onMouseenter: (K) => S(O),
|
|
40004
|
-
onClick: (K) => J(
|
|
39997
|
+
onClick: (K) => J(E),
|
|
40005
39998
|
class: _0(G(O))
|
|
40006
39999
|
}, [
|
|
40007
|
-
|
|
40000
|
+
E.dataType === "ENTITY" ? (H(), Ql("span", vj, ql(N(E)), 1)) : (H(), Ql("span", Kj, ql(N(E)), 1))
|
|
40008
40001
|
], 42, Oj))), 128))
|
|
40009
40002
|
])) : (H(), el(B(gS), {
|
|
40010
40003
|
key: 1,
|
|
@@ -40049,7 +40042,7 @@ const gj = { class: "ja-property-picker__dropdown" }, jj = { key: 0 }, Oj = ["on
|
|
|
40049
40042
|
n.removeFieldError(d), wt(t.formData, d, s.value), a("change", U);
|
|
40050
40043
|
}
|
|
40051
40044
|
const s = f(Yl(t.formData, d) ?? "");
|
|
40052
|
-
return
|
|
40045
|
+
return Ul(() => t.formData, () => {
|
|
40053
40046
|
s.value = Yl(t.formData, d) ?? "";
|
|
40054
40047
|
}, {
|
|
40055
40048
|
deep: !0
|
|
@@ -40083,7 +40076,7 @@ const gj = { class: "ja-property-picker__dropdown" }, jj = { key: 0 }, Oj = ["on
|
|
|
40083
40076
|
i.removeFieldError(a), wt(n.formData, a, F.value), s("change", o);
|
|
40084
40077
|
}
|
|
40085
40078
|
const F = f(Yl(n.formData, a));
|
|
40086
|
-
|
|
40079
|
+
Ul(() => n.formData, () => {
|
|
40087
40080
|
F.value = Yl(n.formData, a);
|
|
40088
40081
|
}, {
|
|
40089
40082
|
deep: !0
|
|
@@ -40151,7 +40144,7 @@ const gj = { class: "ja-property-picker__dropdown" }, jj = { key: 0 }, Oj = ["on
|
|
|
40151
40144
|
} else
|
|
40152
40145
|
n.value = t.value.filter((h) => F.includes(h[l.keyField]));
|
|
40153
40146
|
};
|
|
40154
|
-
return s(),
|
|
40147
|
+
return s(), Ul(() => l.name, s), Ul(() => l.serviceName, s), (F, h) => {
|
|
40155
40148
|
const o = GS("loading");
|
|
40156
40149
|
return tt((H(), el(B(Wi), {
|
|
40157
40150
|
"model-value": U.value,
|