@anzusystems/common-admin 1.47.0-alpha73 → 1.47.0-alpha74
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/common-admin.es.d.ts +68 -72
- package/dist/common-admin.es.js +1 -1
- package/dist/{lib-tqrip3Fo.js → lib-BHRLM_kC.js} +161 -310
- package/dist/{lib-tqrip3Fo.js.map → lib-BHRLM_kC.js.map} +1 -1
- package/dist/{webfontloader-BgWywGVH.js → webfontloader-CuPjwmtj.js} +58 -94
- package/dist/webfontloader-CuPjwmtj.js.map +1 -0
- package/package.json +4 -4
- package/dist/webfontloader-BgWywGVH.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var cm = Object.defineProperty;
|
|
2
2
|
var mm = (t, a, e) => a in t ? cm(t, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[a] = e;
|
|
3
|
-
var ar = (t, a, e) =>
|
|
3
|
+
var ar = (t, a, e) => mm(t, typeof a != "symbol" ? a + "" : a, e);
|
|
4
4
|
import { defineComponent as W, computed as _, openBlock as q, createBlock as M, withCtx as f, createTextVNode as B, toDisplayString as I, createElementBlock as P, createVNode as m, normalizeClass as he, createCommentVNode as N, renderSlot as ue, createElementVNode as L, resolveComponent as $e, withModifiers as Z, withDirectives as jt, vShow as Oa, isProxy as Dd, toRaw as Yt, isRef as Ds, unref as V, Fragment as Fe, normalizeStyle as Mt, shallowRef as ft, watch as Ye, ref as S, reactive as oa, inject as je, createSlots as va, provide as Ti, renderList as He, onMounted as At, TransitionGroup as Td, isVNode as fm, mergeModels as Ht, useModel as ba, toRefs as ii, vModelText as xl, nextTick as Wt, pushScopeId as Vm, popScopeId as pm, withKeys as Ma, mergeProps as Rt, onUnmounted as Pn, readonly as ks, createStaticVNode as Ed, resolveDynamicComponent as Hr, setBlockTracking as wl, onBeforeUnmount as Wr, toRef as Gr, Teleport as vm, normalizeProps as hm, guardReactiveProps as Fm } from "vue";
|
|
5
5
|
import { useI18n as ee, createI18n as gm } from "vue-i18n";
|
|
6
6
|
import { VChip as ra } from "vuetify/lib/components/VChip/index.mjs";
|
|
@@ -202,22 +202,18 @@ const Gm = { key: 1 }, Nd = /* @__PURE__ */ W({
|
|
|
202
202
|
end: t.slice(e + a.length)
|
|
203
203
|
};
|
|
204
204
|
}, FS = (t) => t.toString().toLowerCase().trim().normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/\s+/g, "-").replace(/&/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, ""), rf = (t) => t.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), gS = (t, a = 80) => t.length > a ? t.substring(1, a) + "..." : t, of = (t, a) => {
|
|
205
|
-
if (t.indexOf(":") === -1)
|
|
206
|
-
return t;
|
|
205
|
+
if (t.indexOf(":") === -1) return t;
|
|
207
206
|
const e = [];
|
|
208
207
|
return t.split("/").forEach((i, r) => {
|
|
209
|
-
if (e[r] = i, !i.startsWith(":"))
|
|
210
|
-
return;
|
|
208
|
+
if (e[r] = i, !i.startsWith(":")) return;
|
|
211
209
|
const o = i.substring(1);
|
|
212
210
|
R(a[o]) || (e[r] = a[i.substring(1)] + "");
|
|
213
211
|
}), e.join("/");
|
|
214
212
|
}, qS = (t, a) => {
|
|
215
|
-
if (t.indexOf(":") === -1)
|
|
216
|
-
return t;
|
|
213
|
+
if (t.indexOf(":") === -1) return t;
|
|
217
214
|
const e = [];
|
|
218
215
|
return t.split("/").forEach((i, r) => {
|
|
219
|
-
if (e[r] = i, !i.startsWith(":"))
|
|
220
|
-
return;
|
|
216
|
+
if (e[r] = i, !i.startsWith(":")) return;
|
|
221
217
|
e[r] = i.substring(1);
|
|
222
218
|
const o = /^:([a-zA-Z0-9_-]+).*/, l = i.match(o);
|
|
223
219
|
se(l) || !l[1] || R(a[l[1]]) || (e[r] = a[l[1]] + "");
|
|
@@ -235,10 +231,8 @@ const Gm = { key: 1 }, Nd = /* @__PURE__ */ W({
|
|
|
235
231
|
var r;
|
|
236
232
|
return (r = a.user) != null && r.avatar.color && a.user.avatar.color.length === 7 ? a.user.avatar.color : "#3f6ad8";
|
|
237
233
|
}), s = _(() => a.size * 0.5 + "px"), i = _(() => {
|
|
238
|
-
if (!a.user)
|
|
239
|
-
|
|
240
|
-
if (a.user.avatar.text.length > 0)
|
|
241
|
-
return a.user.avatar.text;
|
|
234
|
+
if (!a.user) return "";
|
|
235
|
+
if (a.user.avatar.text.length > 0) return a.user.avatar.text;
|
|
242
236
|
const r = a.user.person.firstName.charAt(0) + a.user.person.lastName.charAt(0);
|
|
243
237
|
return r.length > 0 ? r : a.user.email.slice(0, 2);
|
|
244
238
|
});
|
|
@@ -467,8 +461,7 @@ function ms(t, a, e = !1) {
|
|
|
467
461
|
addCollabGatheringBufferDataListener: T,
|
|
468
462
|
acquireCollabFieldLock: (O = {}) => {
|
|
469
463
|
var k;
|
|
470
|
-
if (!s.value.enabled || R(r.value))
|
|
471
|
-
return;
|
|
464
|
+
if (!s.value.enabled || R(r.value)) return;
|
|
472
465
|
const E = n.get(t);
|
|
473
466
|
E && E.status === sa.Inactive || (k = r.value) == null || k.timeout(1e3).emit("acquireFieldLock", t, a, O, (b, C) => {
|
|
474
467
|
var $;
|
|
@@ -492,8 +485,7 @@ function ms(t, a, e = !1) {
|
|
|
492
485
|
},
|
|
493
486
|
releaseCollabFieldLock: (O, E = {}) => {
|
|
494
487
|
var b, C;
|
|
495
|
-
if (!s.value.enabled || R(r.value))
|
|
496
|
-
return;
|
|
488
|
+
if (!s.value.enabled || R(r.value)) return;
|
|
497
489
|
const k = n.get(t);
|
|
498
490
|
if (k && k.status === sa.Inactive) {
|
|
499
491
|
l.has(t) || l.set(t, /* @__PURE__ */ new Map()), (b = l.get(t)) == null || b.set(a, O);
|
|
@@ -519,8 +511,7 @@ function ms(t, a, e = !1) {
|
|
|
519
511
|
});
|
|
520
512
|
},
|
|
521
513
|
changeCollabFieldData: (O) => {
|
|
522
|
-
if (!s.value.enabled || R(r.value))
|
|
523
|
-
return;
|
|
514
|
+
if (!s.value.enabled || R(r.value)) return;
|
|
524
515
|
const E = n.get(t);
|
|
525
516
|
E && E.status === sa.Inactive || r.value.emit("changeFieldData", t, a, O, () => {
|
|
526
517
|
});
|
|
@@ -596,10 +587,8 @@ const Cf = {
|
|
|
596
587
|
return pe(e.errorMessage) ? [e.errorMessage] : (X = (A = e.v) == null ? void 0 : A.$errors) != null && X.length ? [e.v.$errors.map((x) => x.$message).join(" ")] : [];
|
|
597
588
|
}), g = _(() => {
|
|
598
589
|
var X, x;
|
|
599
|
-
if (pe(e.label))
|
|
600
|
-
|
|
601
|
-
if (R(c) || R(u) || R((X = e.v) == null ? void 0 : X.$path))
|
|
602
|
-
return "";
|
|
590
|
+
if (pe(e.label)) return e.label;
|
|
591
|
+
if (R(c) || R(u) || R((X = e.v) == null ? void 0 : X.$path)) return "";
|
|
603
592
|
const { end: A } = Ra((x = e.v) == null ? void 0 : x.$path, ".");
|
|
604
593
|
return d(c + "." + u + ".model." + A);
|
|
605
594
|
}), y = _(() => {
|
|
@@ -719,10 +708,8 @@ const Cf = {
|
|
|
719
708
|
return pe(e.errorMessage) ? [e.errorMessage] : (X = (A = e.v) == null ? void 0 : A.$errors) != null && X.length ? [e.v.$errors.map((x) => x.$message).join(" ")] : [];
|
|
720
709
|
}), g = _(() => {
|
|
721
710
|
var X, x;
|
|
722
|
-
if (pe(e.label))
|
|
723
|
-
|
|
724
|
-
if (R(c) || R(u) || R((X = e.v) == null ? void 0 : X.$path))
|
|
725
|
-
return "";
|
|
711
|
+
if (pe(e.label)) return e.label;
|
|
712
|
+
if (R(c) || R(u) || R((X = e.v) == null ? void 0 : X.$path)) return "";
|
|
726
713
|
const { end: A } = Ra((x = e.v) == null ? void 0 : x.$path, ".");
|
|
727
714
|
return d(c + "." + u + ".model." + A);
|
|
728
715
|
}), y = _(() => {
|
|
@@ -1015,8 +1002,7 @@ const Cf = {
|
|
|
1015
1002
|
return Ye(
|
|
1016
1003
|
r,
|
|
1017
1004
|
(p, Y) => {
|
|
1018
|
-
if (R(Y) || p === Y)
|
|
1019
|
-
return;
|
|
1005
|
+
if (R(Y) || p === Y) return;
|
|
1020
1006
|
const v = c.value.find((F) => F.id === p);
|
|
1021
1007
|
v && s("sortByChange", v);
|
|
1022
1008
|
},
|
|
@@ -1924,8 +1910,7 @@ var vu = { exports: {} };
|
|
|
1924
1910
|
var b = -k.utcOffset(), C = Math.abs(b), D = Math.floor(C / 60), $ = C % 60;
|
|
1925
1911
|
return (b <= 0 ? "+" : "-") + A(D, 2, "0") + ":" + A($, 2, "0");
|
|
1926
1912
|
}, m: function k(b, C) {
|
|
1927
|
-
if (b.date() < C.date())
|
|
1928
|
-
return -k(C, b);
|
|
1913
|
+
if (b.date() < C.date()) return -k(C, b);
|
|
1929
1914
|
var D = 12 * (C.year() - b.year()) + (C.month() - b.month()), $ = b.clone().add(D, u), U = C - $ < 0, G = b.clone().add(D + (U ? -1 : 1), u);
|
|
1930
1915
|
return +(-(D + (C - $) / (U ? $ - G : G - $)) || 0);
|
|
1931
1916
|
}, a: function(k) {
|
|
@@ -1940,22 +1925,19 @@ var vu = { exports: {} };
|
|
|
1940
1925
|
return k instanceof O || !(!k || !k[T]);
|
|
1941
1926
|
}, H = function k(b, C, D) {
|
|
1942
1927
|
var $;
|
|
1943
|
-
if (!b)
|
|
1944
|
-
return x;
|
|
1928
|
+
if (!b) return x;
|
|
1945
1929
|
if (typeof b == "string") {
|
|
1946
1930
|
var U = b.toLowerCase();
|
|
1947
1931
|
w[U] && ($ = U), C && (w[U] = C, $ = U);
|
|
1948
1932
|
var G = b.split("-");
|
|
1949
|
-
if (!$ && G.length > 1)
|
|
1950
|
-
return k(G[0]);
|
|
1933
|
+
if (!$ && G.length > 1) return k(G[0]);
|
|
1951
1934
|
} else {
|
|
1952
1935
|
var J = b.name;
|
|
1953
1936
|
w[J] = b, $ = J;
|
|
1954
1937
|
}
|
|
1955
1938
|
return !D && $ && (x = $), $ || !D && x;
|
|
1956
1939
|
}, j = function(k, b) {
|
|
1957
|
-
if (z(k))
|
|
1958
|
-
return k.clone();
|
|
1940
|
+
if (z(k)) return k.clone();
|
|
1959
1941
|
var C = typeof b == "object" ? b : {};
|
|
1960
1942
|
return C.date = k, C.args = arguments, new O(C);
|
|
1961
1943
|
}, K = X;
|
|
@@ -1970,12 +1952,9 @@ var vu = { exports: {} };
|
|
|
1970
1952
|
return b.parse = function(C) {
|
|
1971
1953
|
this.$d = function(D) {
|
|
1972
1954
|
var $ = D.date, U = D.utc;
|
|
1973
|
-
if ($ === null)
|
|
1974
|
-
|
|
1975
|
-
if (
|
|
1976
|
-
return /* @__PURE__ */ new Date();
|
|
1977
|
-
if ($ instanceof Date)
|
|
1978
|
-
return new Date($);
|
|
1955
|
+
if ($ === null) return /* @__PURE__ */ new Date(NaN);
|
|
1956
|
+
if (K.u($)) return /* @__PURE__ */ new Date();
|
|
1957
|
+
if ($ instanceof Date) return new Date($);
|
|
1979
1958
|
if (typeof $ == "string" && !/Z$/i.test($)) {
|
|
1980
1959
|
var G = $.match(g);
|
|
1981
1960
|
if (G) {
|
|
@@ -2039,8 +2018,7 @@ var vu = { exports: {} };
|
|
|
2039
2018
|
if (U === u || U === Y) {
|
|
2040
2019
|
var fe = this.clone().set(v, 1);
|
|
2041
2020
|
fe.$d[J](te), fe.init(), this.$d = fe.set(v, Math.min(this.$D, fe.daysInMonth())).$d;
|
|
2042
|
-
} else
|
|
2043
|
-
J && this.$d[J](te);
|
|
2021
|
+
} else J && this.$d[J](te);
|
|
2044
2022
|
return this.init(), this;
|
|
2045
2023
|
}, b.set = function(C, D) {
|
|
2046
2024
|
return this.clone().$set(C, D);
|
|
@@ -2053,22 +2031,17 @@ var vu = { exports: {} };
|
|
|
2053
2031
|
var Me = j(U);
|
|
2054
2032
|
return K.w(Me.date(Me.date() + Math.round(me * C)), U);
|
|
2055
2033
|
};
|
|
2056
|
-
if (G === u)
|
|
2057
|
-
|
|
2058
|
-
if (G ===
|
|
2059
|
-
|
|
2060
|
-
if (G === d)
|
|
2061
|
-
return J(1);
|
|
2062
|
-
if (G === c)
|
|
2063
|
-
return J(7);
|
|
2034
|
+
if (G === u) return this.set(u, this.$M + C);
|
|
2035
|
+
if (G === Y) return this.set(Y, this.$y + C);
|
|
2036
|
+
if (G === d) return J(1);
|
|
2037
|
+
if (G === c) return J(7);
|
|
2064
2038
|
var te = ($ = {}, $[l] = s, $[n] = i, $[o] = e, $)[G] || 1, fe = this.$d.getTime() + C * te;
|
|
2065
2039
|
return K.w(fe, this);
|
|
2066
2040
|
}, b.subtract = function(C, D) {
|
|
2067
2041
|
return this.add(-1 * C, D);
|
|
2068
2042
|
}, b.format = function(C) {
|
|
2069
2043
|
var D = this, $ = this.$locale();
|
|
2070
|
-
if (!this.isValid())
|
|
2071
|
-
return $.invalidDate || F;
|
|
2044
|
+
if (!this.isValid()) return $.invalidDate || F;
|
|
2072
2045
|
var U = C || "YYYY-MM-DDTHH:mm:ssZ", G = K.z(this), J = this.$H, te = this.$m, fe = this.$M, me = $.weekdays, Me = $.months, Xe = $.meridiem, _e = function(ve, we, Le, Ve) {
|
|
2073
2046
|
return ve && (ve[we] || ve(D, U)) || Le[we].slice(0, Ve);
|
|
2074
2047
|
}, Q = function(ve) {
|
|
@@ -2172,8 +2145,7 @@ var vu = { exports: {} };
|
|
|
2172
2145
|
}, b.$locale = function() {
|
|
2173
2146
|
return w[this.$L];
|
|
2174
2147
|
}, b.locale = function(C, D) {
|
|
2175
|
-
if (!C)
|
|
2176
|
-
return this.$L;
|
|
2148
|
+
if (!C) return this.$L;
|
|
2177
2149
|
var $ = this.clone(), U = H(C, D, !0);
|
|
2178
2150
|
return U && ($.$L = U), $;
|
|
2179
2151
|
}, b.clone = function() {
|
|
@@ -2227,31 +2199,25 @@ var hu = { exports: {} };
|
|
|
2227
2199
|
if (this.$u) {
|
|
2228
2200
|
var F = this.$d;
|
|
2229
2201
|
this.$y = F.getUTCFullYear(), this.$M = F.getUTCMonth(), this.$D = F.getUTCDate(), this.$W = F.getUTCDay(), this.$H = F.getUTCHours(), this.$m = F.getUTCMinutes(), this.$s = F.getUTCSeconds(), this.$ms = F.getUTCMilliseconds();
|
|
2230
|
-
} else
|
|
2231
|
-
c.call(this);
|
|
2202
|
+
} else c.call(this);
|
|
2232
2203
|
};
|
|
2233
2204
|
var u = n.utcOffset;
|
|
2234
2205
|
n.utcOffset = function(F, g) {
|
|
2235
2206
|
var y = this.$utils().u;
|
|
2236
|
-
if (y(F))
|
|
2237
|
-
return this.$u ? 0 : y(this.$offset) ? u.call(this) : this.$offset;
|
|
2207
|
+
if (y(F)) return this.$u ? 0 : y(this.$offset) ? u.call(this) : this.$offset;
|
|
2238
2208
|
if (typeof F == "string" && (F = function(x) {
|
|
2239
2209
|
x === void 0 && (x = "");
|
|
2240
2210
|
var w = x.match(s);
|
|
2241
|
-
if (!w)
|
|
2242
|
-
return null;
|
|
2211
|
+
if (!w) return null;
|
|
2243
2212
|
var T = ("" + w[0]).match(i) || ["-", 0, 0], z = T[0], H = 60 * +T[1] + +T[2];
|
|
2244
2213
|
return H === 0 ? 0 : z === "+" ? H : -H;
|
|
2245
|
-
}(F), F === null))
|
|
2246
|
-
return this;
|
|
2214
|
+
}(F), F === null)) return this;
|
|
2247
2215
|
var h = Math.abs(F) <= 16 ? 60 * F : F, A = this;
|
|
2248
|
-
if (g)
|
|
2249
|
-
return A.$offset = h, A.$u = F === 0, A;
|
|
2216
|
+
if (g) return A.$offset = h, A.$u = F === 0, A;
|
|
2250
2217
|
if (F !== 0) {
|
|
2251
2218
|
var X = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
2252
2219
|
(A = this.local().add(h + X, e)).$offset = h, A.$x.$localOffset = X;
|
|
2253
|
-
} else
|
|
2254
|
-
A = this.utc();
|
|
2220
|
+
} else A = this.utc();
|
|
2255
2221
|
return A;
|
|
2256
2222
|
};
|
|
2257
2223
|
var p = n.format;
|
|
@@ -2274,8 +2240,7 @@ var hu = { exports: {} };
|
|
|
2274
2240
|
};
|
|
2275
2241
|
var v = n.diff;
|
|
2276
2242
|
n.diff = function(F, g, y) {
|
|
2277
|
-
if (F && this.$u === F.$u)
|
|
2278
|
-
return v.call(this, F, g, y);
|
|
2243
|
+
if (F && this.$u === F.$u) return v.call(this, F, g, y);
|
|
2279
2244
|
var h = this.local(), A = l(F).local();
|
|
2280
2245
|
return v.call(h, A, g, y);
|
|
2281
2246
|
};
|
|
@@ -2297,8 +2262,7 @@ var gu = { exports: {} };
|
|
|
2297
2262
|
};
|
|
2298
2263
|
}, c = [/[+-]\d\d:?(\d\d)?|Z/, function(F) {
|
|
2299
2264
|
(this.zone || (this.zone = {})).offset = function(g) {
|
|
2300
|
-
if (!g || g === "Z")
|
|
2301
|
-
return 0;
|
|
2265
|
+
if (!g || g === "Z") return 0;
|
|
2302
2266
|
var y = g.match(/([+-]|\d\d)/g), h = 60 * y[1] + (+y[2] || 0);
|
|
2303
2267
|
return h === 0 ? 0 : y[0] === "+" ? -h : h;
|
|
2304
2268
|
}(F);
|
|
@@ -2308,13 +2272,11 @@ var gu = { exports: {} };
|
|
|
2308
2272
|
}, p = function(F, g) {
|
|
2309
2273
|
var y, h = l.meridiem;
|
|
2310
2274
|
if (h) {
|
|
2311
|
-
for (var A = 1; A <= 24; A += 1)
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
} else
|
|
2317
|
-
y = F === (g ? "pm" : "PM");
|
|
2275
|
+
for (var A = 1; A <= 24; A += 1) if (F.indexOf(h(A, 0, g)) > -1) {
|
|
2276
|
+
y = A > 12;
|
|
2277
|
+
break;
|
|
2278
|
+
}
|
|
2279
|
+
} else y = F === (g ? "pm" : "PM");
|
|
2318
2280
|
return y;
|
|
2319
2281
|
}, Y = { A: [o, function(F) {
|
|
2320
2282
|
this.afternoon = p(F, !1);
|
|
@@ -2328,20 +2290,16 @@ var gu = { exports: {} };
|
|
|
2328
2290
|
this.milliseconds = +F;
|
|
2329
2291
|
}], s: [r, d("seconds")], ss: [r, d("seconds")], m: [r, d("minutes")], mm: [r, d("minutes")], H: [r, d("hours")], h: [r, d("hours")], HH: [r, d("hours")], hh: [r, d("hours")], D: [r, d("day")], DD: [i, d("day")], Do: [o, function(F) {
|
|
2330
2292
|
var g = l.ordinal, y = F.match(/\d+/);
|
|
2331
|
-
if (this.day = y[0], g)
|
|
2332
|
-
for (var h = 1; h <= 31; h += 1)
|
|
2333
|
-
g(h).replace(/\[|\]/g, "") === F && (this.day = h);
|
|
2293
|
+
if (this.day = y[0], g) for (var h = 1; h <= 31; h += 1) g(h).replace(/\[|\]/g, "") === F && (this.day = h);
|
|
2334
2294
|
}], M: [r, d("month")], MM: [i, d("month")], MMM: [o, function(F) {
|
|
2335
2295
|
var g = u("months"), y = (u("monthsShort") || g.map(function(h) {
|
|
2336
2296
|
return h.slice(0, 3);
|
|
2337
2297
|
})).indexOf(F) + 1;
|
|
2338
|
-
if (y < 1)
|
|
2339
|
-
throw new Error();
|
|
2298
|
+
if (y < 1) throw new Error();
|
|
2340
2299
|
this.month = y % 12 || y;
|
|
2341
2300
|
}], MMMM: [o, function(F) {
|
|
2342
2301
|
var g = u("months").indexOf(F) + 1;
|
|
2343
|
-
if (g < 1)
|
|
2344
|
-
throw new Error();
|
|
2302
|
+
if (g < 1) throw new Error();
|
|
2345
2303
|
this.month = g % 12 || g;
|
|
2346
2304
|
}], Y: [/[+-]?\d+/, d("year")], YY: [i, function(F) {
|
|
2347
2305
|
this.year = n(F);
|
|
@@ -2361,8 +2319,7 @@ var gu = { exports: {} };
|
|
|
2361
2319
|
return function(H) {
|
|
2362
2320
|
for (var j = {}, K = 0, O = 0; K < A; K += 1) {
|
|
2363
2321
|
var E = h[K];
|
|
2364
|
-
if (typeof E == "string")
|
|
2365
|
-
O += E.length;
|
|
2322
|
+
if (typeof E == "string") O += E.length;
|
|
2366
2323
|
else {
|
|
2367
2324
|
var k = E.regex, b = E.parser, C = H.slice(O), D = k.exec(C)[0];
|
|
2368
2325
|
b.call(j, D), H = H.replace(D, "");
|
|
@@ -2388,8 +2345,7 @@ var gu = { exports: {} };
|
|
|
2388
2345
|
var H = T[2] === !0, j = T[3] === !0, K = H || j, O = T[2];
|
|
2389
2346
|
j && (O = T[2]), l = this.$locale(), !H && O && (l = y.Ls[O]), this.$d = function(C, D, $) {
|
|
2390
2347
|
try {
|
|
2391
|
-
if (["x", "X"].indexOf(D) > -1)
|
|
2392
|
-
return new Date((D === "X" ? 1e3 : 1) * C);
|
|
2348
|
+
if (["x", "X"].indexOf(D) > -1) return new Date((D === "X" ? 1e3 : 1) * C);
|
|
2393
2349
|
var U = v(D)(C), G = U.year, J = U.month, te = U.day, fe = U.hours, me = U.minutes, Me = U.seconds, Xe = U.milliseconds, _e = U.zone, Q = /* @__PURE__ */ new Date(), ne = te || (G || J ? 1 : Q.getDate()), ve = G || Q.getFullYear(), we = 0;
|
|
2394
2350
|
G && !J || (we = J > 0 ? J - 1 : Q.getMonth());
|
|
2395
2351
|
var Le = fe || 0, Ve = me || 0, ae = Me || 0, Ae = Xe || 0;
|
|
@@ -2398,18 +2354,16 @@ var gu = { exports: {} };
|
|
|
2398
2354
|
return /* @__PURE__ */ new Date("");
|
|
2399
2355
|
}
|
|
2400
2356
|
}(x, z, w), this.init(), O && O !== !0 && (this.$L = this.locale(O).$L), K && x != this.format(z) && (this.$d = /* @__PURE__ */ new Date("")), l = {};
|
|
2401
|
-
} else if (z instanceof Array)
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
break;
|
|
2408
|
-
}
|
|
2409
|
-
k === E && (this.$d = /* @__PURE__ */ new Date(""));
|
|
2357
|
+
} else if (z instanceof Array) for (var E = z.length, k = 1; k <= E; k += 1) {
|
|
2358
|
+
T[1] = z[k - 1];
|
|
2359
|
+
var b = y.apply(this, T);
|
|
2360
|
+
if (b.isValid()) {
|
|
2361
|
+
this.$d = b.$d, this.$L = b.$L, this.init();
|
|
2362
|
+
break;
|
|
2410
2363
|
}
|
|
2411
|
-
|
|
2412
|
-
|
|
2364
|
+
k === E && (this.$d = /* @__PURE__ */ new Date(""));
|
|
2365
|
+
}
|
|
2366
|
+
else A.call(this, X);
|
|
2413
2367
|
};
|
|
2414
2368
|
};
|
|
2415
2369
|
});
|
|
@@ -2980,8 +2934,7 @@ const yV = {
|
|
|
2980
2934
|
let i = t;
|
|
2981
2935
|
for (; s.length; ) {
|
|
2982
2936
|
const r = s.shift();
|
|
2983
|
-
if (R(r) || !(r in i))
|
|
2984
|
-
return;
|
|
2937
|
+
if (R(r) || !(r in i)) return;
|
|
2985
2938
|
i = i[r];
|
|
2986
2939
|
}
|
|
2987
2940
|
return i;
|
|
@@ -2990,8 +2943,7 @@ const yV = {
|
|
|
2990
2943
|
let r = t;
|
|
2991
2944
|
for (; i.length - 1; ) {
|
|
2992
2945
|
const o = i.shift();
|
|
2993
|
-
if (R(o))
|
|
2994
|
-
return;
|
|
2946
|
+
if (R(o)) return;
|
|
2995
2947
|
o in r || (r[o] = {}), r = r[o];
|
|
2996
2948
|
}
|
|
2997
2949
|
r[i[0]] = e;
|
|
@@ -3013,15 +2965,11 @@ function xV(t) {
|
|
|
3013
2965
|
const a = R(t) || R(t.disableInject), e = (t == null ? void 0 : t.currentUser) ?? (a ? je(so, void 0) : void 0), s = (t == null ? void 0 : t.customAclProvider) ?? (a ? je(jd, void 0) : void 0), i = (n, d) => {
|
|
3014
2966
|
if (R(e))
|
|
3015
2967
|
throw new Error("Composable useAcl can be used as a global state without providing current user as a parameter.");
|
|
3016
|
-
if (pe(s) && pe(s.can))
|
|
3017
|
-
|
|
3018
|
-
if (
|
|
3019
|
-
return !1;
|
|
3020
|
-
if (e.value.roles.includes(Wn))
|
|
3021
|
-
return !0;
|
|
2968
|
+
if (pe(s) && pe(s.can)) return s.can(n, d);
|
|
2969
|
+
if (R(e.value) || e.value.id === 0) return !1;
|
|
2970
|
+
if (e.value.roles.includes(Wn)) return !0;
|
|
3022
2971
|
const c = uo(e.value, "resolvedPermissions." + n);
|
|
3023
|
-
if (R(c))
|
|
3024
|
-
return !1;
|
|
2972
|
+
if (R(c)) return !1;
|
|
3025
2973
|
switch (c) {
|
|
3026
2974
|
case br.Allow:
|
|
3027
2975
|
return !0;
|
|
@@ -3226,8 +3174,7 @@ const QV = (t) => (Vm("data-v-8b2f16cf"), t = t(), pm(), t), ep = { class: "a-da
|
|
|
3226
3174
|
(v = r.value) == null || v.focus();
|
|
3227
3175
|
};
|
|
3228
3176
|
return Ye([s, i], ([v, F], [g, y]) => {
|
|
3229
|
-
if (v === g && F === y)
|
|
3230
|
-
return;
|
|
3177
|
+
if (v === g && F === y) return;
|
|
3231
3178
|
const h = parseInt(v ?? (e.value ? e.value.hours.toString() : "12")), A = parseInt(F ?? (e.value ? e.value.minutes.toString() : "0"));
|
|
3232
3179
|
h >= 0 && h <= 23 && A >= 0 && A <= 59 && (e.value = { hours: h, minutes: A });
|
|
3233
3180
|
}), a({
|
|
@@ -3529,10 +3476,8 @@ const QV = (t) => (Vm("data-v-8b2f16cf"), t = t(), pm(), t), ep = { class: "a-da
|
|
|
3529
3476
|
return pe(e.errorMessage) ? [e.errorMessage] : (z = (T = e.v) == null ? void 0 : T.$errors) != null && z.length ? [e.v.$errors.map((H) => H.$message).join(" ")] : [];
|
|
3530
3477
|
}), X = _(() => {
|
|
3531
3478
|
var z, H;
|
|
3532
|
-
if (pe(e.label))
|
|
3533
|
-
|
|
3534
|
-
if (R(F) || R(g) || R((z = e.v) == null ? void 0 : z.$path))
|
|
3535
|
-
return "";
|
|
3479
|
+
if (pe(e.label)) return e.label;
|
|
3480
|
+
if (R(F) || R(g) || R((z = e.v) == null ? void 0 : z.$path)) return "";
|
|
3536
3481
|
const { end: T } = Ra((H = e.v) == null ? void 0 : H.$path, ".");
|
|
3537
3482
|
return v(F + "." + g + ".model." + T);
|
|
3538
3483
|
}), x = _(() => {
|
|
@@ -3623,10 +3568,8 @@ const QV = (t) => (Vm("data-v-8b2f16cf"), t = t(), pm(), t), ep = { class: "a-da
|
|
|
3623
3568
|
return R(e.errorMessage) ? (H = (z = e.v) == null ? void 0 : z.$errors) != null && H.length ? [e.v.$errors.map((j) => j.$message).join(" ")] : [] : [e.errorMessage];
|
|
3624
3569
|
}), x = _(() => {
|
|
3625
3570
|
var H, j;
|
|
3626
|
-
if (pe(e.label))
|
|
3627
|
-
|
|
3628
|
-
if (R(u) || R(p) || R((H = e.v) == null ? void 0 : H.$path))
|
|
3629
|
-
return "";
|
|
3571
|
+
if (pe(e.label)) return e.label;
|
|
3572
|
+
if (R(u) || R(p) || R((H = e.v) == null ? void 0 : H.$path)) return "";
|
|
3630
3573
|
const { end: z } = Ra((j = e.v) == null ? void 0 : j.$path, ".");
|
|
3631
3574
|
return c(u + "." + p + ".model." + z);
|
|
3632
3575
|
});
|
|
@@ -3826,10 +3769,8 @@ const Vp = {
|
|
|
3826
3769
|
return pe(e.errorMessage) ? [e.errorMessage] : (ne = (Q = e.v) == null ? void 0 : Q.$errors) != null && ne.length ? e.v.$errors.map((ve) => ve.$message) : [];
|
|
3827
3770
|
}), w = _(() => {
|
|
3828
3771
|
var ne, ve;
|
|
3829
|
-
if (pe(e.label))
|
|
3830
|
-
|
|
3831
|
-
if (R(h) || R(A) || R((ne = e.v) == null ? void 0 : ne.$path))
|
|
3832
|
-
return "";
|
|
3772
|
+
if (pe(e.label)) return e.label;
|
|
3773
|
+
if (R(h) || R(A) || R((ne = e.v) == null ? void 0 : ne.$path)) return "";
|
|
3833
3774
|
const { end: Q } = Ra((ve = e.v) == null ? void 0 : ve.$path, ".");
|
|
3834
3775
|
return g(h + "." + A + ".model." + Q);
|
|
3835
3776
|
}), T = _(() => {
|
|
@@ -3859,8 +3800,7 @@ const Vp = {
|
|
|
3859
3800
|
}, U = S(!1), G = () => {
|
|
3860
3801
|
clearTimeout(F.value), F.value = void 0;
|
|
3861
3802
|
}, J = async () => {
|
|
3862
|
-
if (G(), U.value === !0)
|
|
3863
|
-
return;
|
|
3803
|
+
if (G(), U.value === !0) return;
|
|
3864
3804
|
U.value = !0, k.value = !0;
|
|
3865
3805
|
const Q = await e.fetchItems(j, y.value);
|
|
3866
3806
|
l.value === 0 && (K.value = Q), k.value = !1;
|
|
@@ -3899,11 +3839,9 @@ const Vp = {
|
|
|
3899
3839
|
Ye(
|
|
3900
3840
|
i,
|
|
3901
3841
|
async (Q, ne) => {
|
|
3902
|
-
if (Q === ne)
|
|
3903
|
-
return;
|
|
3842
|
+
if (Q === ne) return;
|
|
3904
3843
|
if (n.value.enabled && v.value && c.value(Q), se(Q) || R(Q) || Ze(Q) && Q.length === 0) {
|
|
3905
|
-
if (O.value = [], r.value = Ze(Q) ? [] : null, o.value = Ze(Q) ? [] : null, e.disableInitFetch || U.value === !0)
|
|
3906
|
-
return;
|
|
3844
|
+
if (O.value = [], r.value = Ze(Q) ? [] : null, o.value = Ze(Q) ? [] : null, e.disableInitFetch || U.value === !0) return;
|
|
3907
3845
|
F.value = setTimeout(() => {
|
|
3908
3846
|
J();
|
|
3909
3847
|
}, 2e3);
|
|
@@ -4015,15 +3953,12 @@ const Vp = {
|
|
|
4015
3953
|
setup(t, { emit: a }) {
|
|
4016
3954
|
const e = t, s = a, { t: i } = ee(), r = je(ka, void 0), o = je(Ia, void 0), l = _(() => {
|
|
4017
3955
|
var F, g;
|
|
4018
|
-
if (!R(e.label))
|
|
4019
|
-
|
|
4020
|
-
if (R(r) || R(o) || R((F = e.v) == null ? void 0 : F.$path))
|
|
4021
|
-
return "";
|
|
3956
|
+
if (!R(e.label)) return e.label;
|
|
3957
|
+
if (R(r) || R(o) || R((F = e.v) == null ? void 0 : F.$path)) return "";
|
|
4022
3958
|
const { end: v } = Ra((g = e.v) == null ? void 0 : g.$path, ".");
|
|
4023
3959
|
return i(r + "." + o + ".model." + v);
|
|
4024
3960
|
}), n = S(!1), d = S(!1), c = S(""), u = _(() => e.modelValue), p = S(e.modelValue), Y = async () => {
|
|
4025
|
-
if (n.value)
|
|
4026
|
-
return;
|
|
3961
|
+
if (n.value) return;
|
|
4027
3962
|
if (n.value = !0, d.value = !1, p.value === !0) {
|
|
4028
3963
|
const F = await e.callbackToFalse();
|
|
4029
3964
|
s("update:modelValue", !F), p.value = !F, F || (d.value = !0), n.value = !1;
|
|
@@ -4138,15 +4073,12 @@ const Vp = {
|
|
|
4138
4073
|
setup(t, { emit: a }) {
|
|
4139
4074
|
const e = t, s = a, { t: i } = ee(), r = je(ka, void 0), o = je(Ia, void 0), l = _(() => {
|
|
4140
4075
|
var F, g;
|
|
4141
|
-
if (!R(e.label))
|
|
4142
|
-
|
|
4143
|
-
if (R(r) || R(o) || R((F = e.v) == null ? void 0 : F.$path))
|
|
4144
|
-
return "";
|
|
4076
|
+
if (!R(e.label)) return e.label;
|
|
4077
|
+
if (R(r) || R(o) || R((F = e.v) == null ? void 0 : F.$path)) return "";
|
|
4145
4078
|
const { end: v } = Ra((g = e.v) == null ? void 0 : g.$path, ".");
|
|
4146
4079
|
return i(r + "." + o + ".model." + v);
|
|
4147
4080
|
}), n = S(!1), d = S(!1), c = S(""), u = _(() => e.modelValue), p = S(e.modelValue), Y = async () => {
|
|
4148
|
-
if (n.value)
|
|
4149
|
-
return;
|
|
4081
|
+
if (n.value) return;
|
|
4150
4082
|
if (n.value = !0, d.value = !1, p.value === !0) {
|
|
4151
4083
|
const F = await e.callbackToFalse();
|
|
4152
4084
|
s("update:modelValue", !F), p.value = !F, F || (d.value = !0), n.value = !1;
|
|
@@ -4262,10 +4194,8 @@ const Vp = {
|
|
|
4262
4194
|
return pe(e.errorMessage) ? [e.errorMessage] : (w = (x = e.v) == null ? void 0 : x.$errors) != null && w.length ? e.v.$errors.map((T) => T.$message) : [];
|
|
4263
4195
|
}), y = _(() => {
|
|
4264
4196
|
var w, T;
|
|
4265
|
-
if (pe(e.label))
|
|
4266
|
-
|
|
4267
|
-
if (R(c) || R(u) || R((w = e.v) == null ? void 0 : w.$path))
|
|
4268
|
-
return "";
|
|
4197
|
+
if (pe(e.label)) return e.label;
|
|
4198
|
+
if (R(c) || R(u) || R((w = e.v) == null ? void 0 : w.$path)) return "";
|
|
4269
4199
|
const { end: x } = Ra((T = e.v) == null ? void 0 : T.$path, ".");
|
|
4270
4200
|
return p(c + "." + u + ".model." + x);
|
|
4271
4201
|
}), h = _(() => {
|
|
@@ -4389,8 +4319,7 @@ const Vp = {
|
|
|
4389
4319
|
}, w = S(!1), T = () => {
|
|
4390
4320
|
clearTimeout(l.value), l.value = void 0;
|
|
4391
4321
|
}, z = async () => {
|
|
4392
|
-
if (T(), w.value === !0)
|
|
4393
|
-
return;
|
|
4322
|
+
if (T(), w.value === !0) return;
|
|
4394
4323
|
w.value = !0, h.value = !0;
|
|
4395
4324
|
const k = await e.fetchItems(v, c.value);
|
|
4396
4325
|
n.value === 0 && (F.value = k), h.value = !1;
|
|
@@ -4411,11 +4340,9 @@ const Vp = {
|
|
|
4411
4340
|
return Ye(
|
|
4412
4341
|
i,
|
|
4413
4342
|
async (k, b) => {
|
|
4414
|
-
if (k === b)
|
|
4415
|
-
return;
|
|
4343
|
+
if (k === b) return;
|
|
4416
4344
|
if (se(k) || R(k) || Ze(k) && k.length === 0) {
|
|
4417
|
-
if (g.value = [], e.disableInitFetch || w.value === !0)
|
|
4418
|
-
return;
|
|
4345
|
+
if (g.value = [], e.disableInitFetch || w.value === !0) return;
|
|
4419
4346
|
l.value = setTimeout(() => {
|
|
4420
4347
|
z();
|
|
4421
4348
|
}, 3e3);
|
|
@@ -4961,8 +4888,7 @@ function Bp(t, a = !1, e = void 0, s = void 0, i = !1) {
|
|
|
4961
4888
|
});
|
|
4962
4889
|
}, lt = async (ce = {}) => new Promise((wt, Kt) => {
|
|
4963
4890
|
var Ea;
|
|
4964
|
-
if (!Oe.value.enabled || R(r.value))
|
|
4965
|
-
return Kt(Fn.Failed);
|
|
4891
|
+
if (!Oe.value.enabled || R(r.value)) return Kt(Fn.Failed);
|
|
4966
4892
|
(Ea = r.value) == null || Ea.timeout(5e3).emit("joinCollabRoom", t, ce, (ca, $s) => ca ? void Kt(Fn.Failed) : _l($s) ? (o.set(t, $s.room), void wt($s.status)) : void Kt($s.status));
|
|
4967
4893
|
}), Ga = () => {
|
|
4968
4894
|
!Oe.value.enabled || R(r.value) || r.value.emit("leaveCollabRoom", t, (ce) => {
|
|
@@ -5002,11 +4928,9 @@ function Bp(t, a = !1, e = void 0, s = void 0, i = !1) {
|
|
|
5002
4928
|
const wt = { name: "", status: sa.Inactive, users: [], moderator: null };
|
|
5003
4929
|
return new Promise((Kt) => {
|
|
5004
4930
|
var Ea;
|
|
5005
|
-
if (!Oe.value.enabled || R(r.value))
|
|
5006
|
-
return Kt(wt);
|
|
4931
|
+
if (!Oe.value.enabled || R(r.value)) return Kt(wt);
|
|
5007
4932
|
(Ea = r.value) == null || Ea.timeout(500).emit("fetchRoomsInfo", [ce], (ca, $s) => {
|
|
5008
|
-
if (ca)
|
|
5009
|
-
return void Kt(wt);
|
|
4933
|
+
if (ca) return void Kt(wt);
|
|
5010
4934
|
const wo = $s[ce];
|
|
5011
4935
|
return R(wo) && Kt(wt), R(e) || e(wo.users), R(s) || s(), Kt(wo);
|
|
5012
4936
|
});
|
|
@@ -6151,8 +6075,7 @@ const Pp = { class: "ml-3" }, Op = { class: "ml-1" }, dK = /* @__PURE__ */ W({
|
|
|
6151
6075
|
return "flat";
|
|
6152
6076
|
}
|
|
6153
6077
|
}), o = _(() => {
|
|
6154
|
-
if (!e.loading)
|
|
6155
|
-
return !1;
|
|
6078
|
+
if (!e.loading) return !1;
|
|
6156
6079
|
switch (r.value) {
|
|
6157
6080
|
case "flat":
|
|
6158
6081
|
return "white";
|
|
@@ -6960,10 +6883,8 @@ const hv = { class: "text-center w-100 text-caption pb-1" }, YK = /* @__PURE__ *
|
|
|
6960
6883
|
return R(e.errorMessage) ? (b = (k = e.v) == null ? void 0 : k.$errors) != null && b.length ? e.v.$errors.map((C) => C.$message) : [] : [e.errorMessage];
|
|
6961
6884
|
}), X = _(() => {
|
|
6962
6885
|
var b, C;
|
|
6963
|
-
if (!R(e.label))
|
|
6964
|
-
|
|
6965
|
-
if (R(d) || R(c) || R((b = e.v) == null ? void 0 : b.$path))
|
|
6966
|
-
return "";
|
|
6886
|
+
if (!R(e.label)) return e.label;
|
|
6887
|
+
if (R(d) || R(c) || R((b = e.v) == null ? void 0 : b.$path)) return "";
|
|
6967
6888
|
const { end: k } = Ra((C = e.v) == null ? void 0 : C.$path, ".");
|
|
6968
6889
|
return n(d + "." + c + ".model." + k);
|
|
6969
6890
|
}), x = _(() => {
|
|
@@ -7828,8 +7749,7 @@ function yt(t = void 0) {
|
|
|
7828
7749
|
if (R(h))
|
|
7829
7750
|
try {
|
|
7830
7751
|
const X = await Qn(t, y);
|
|
7831
|
-
if (se(X.extSystem))
|
|
7832
|
-
return;
|
|
7752
|
+
if (se(X.extSystem)) return;
|
|
7833
7753
|
h = { extSystem: X.extSystem, name: X.name }, To.value.set(y, h);
|
|
7834
7754
|
} catch {
|
|
7835
7755
|
return;
|
|
@@ -7953,8 +7873,7 @@ const li = "/adm/v1/asset", $o = 10, fo = "asset", Be = "coreDam", Bo = 25, Pl =
|
|
|
7953
7873
|
}).catch((r) => s(r));
|
|
7954
7874
|
});
|
|
7955
7875
|
async function eh(t, a, e) {
|
|
7956
|
-
if (a.length === 0)
|
|
7957
|
-
return Promise.resolve([]);
|
|
7876
|
+
if (a.length === 0) return Promise.resolve([]);
|
|
7958
7877
|
const s = Math.ceil(a.length / Bo), i = [];
|
|
7959
7878
|
for (let r = 0; r < s; r++) {
|
|
7960
7879
|
const o = r * Bo, l = a.slice(o, o + Bo), n = await t().get(li + `/licence/${e}/ids/${l.join(",")}`);
|
|
@@ -7981,8 +7900,7 @@ const th = (t, a, e) => new Promise((s, i) => {
|
|
|
7981
7900
|
});
|
|
7982
7901
|
async function ah(t, a) {
|
|
7983
7902
|
const e = Math.ceil(a.length / $o), s = [];
|
|
7984
|
-
if (a.length === 0)
|
|
7985
|
-
return Promise.resolve([]);
|
|
7903
|
+
if (a.length === 0) return Promise.resolve([]);
|
|
7986
7904
|
for (let i = 0; i < e; i++) {
|
|
7987
7905
|
const r = i * $o, o = a.slice(r, r + $o), l = await t().patch(li + "/metadata-bulk-update", JSON.stringify(o));
|
|
7988
7906
|
s.push(l);
|
|
@@ -8005,8 +7923,7 @@ const { showUnknownError: ih, showApiValidationError: rh } = We(), oh = (t, a, e
|
|
|
8005
7923
|
const { getDamConfigAssetCustomFormElements: s } = yt(), i = s(e);
|
|
8006
7924
|
if (R(i))
|
|
8007
7925
|
throw new Error("Custom form elements must be initialised.");
|
|
8008
|
-
if (!t || !t.response || !t.response.data)
|
|
8009
|
-
return;
|
|
7926
|
+
if (!t || !t.response || !t.response.data) return;
|
|
8010
7927
|
const r = t.response.data, o = [];
|
|
8011
7928
|
for (const [l, n] of Object.entries(r.fields)) {
|
|
8012
7929
|
const d = l.split(".").pop(), c = i[a].find((u) => u.property === d);
|
|
@@ -8140,8 +8057,7 @@ const Is = "data:image/jpeg;base64,/9j/4QZGRXhpZgAATU0AKgAAAAgADAEAAAMAAAABCgAAA
|
|
|
8140
8057
|
const e = t, s = a, i = () => {
|
|
8141
8058
|
s("error");
|
|
8142
8059
|
}, r = _(() => {
|
|
8143
|
-
if (e.assetStatus === Ge.Deleting)
|
|
8144
|
-
return "mdi-trash-can";
|
|
8060
|
+
if (e.assetStatus === Ge.Deleting) return "mdi-trash-can";
|
|
8145
8061
|
switch (e.assetType) {
|
|
8146
8062
|
case qe.Audio:
|
|
8147
8063
|
return e.assetStatus === Ge.WithFile ? "mdi-music" : "mdi-music-off";
|
|
@@ -8723,11 +8639,9 @@ function Lu() {
|
|
|
8723
8639
|
}
|
|
8724
8640
|
function Nh(t) {
|
|
8725
8641
|
const { damCurrentUser: a, damCurrentUserIsSuperAdmin: e } = Lu();
|
|
8726
|
-
if (e.value)
|
|
8727
|
-
return xe(t);
|
|
8642
|
+
if (e.value) return xe(t);
|
|
8728
8643
|
const s = a.value;
|
|
8729
|
-
if (R(s))
|
|
8730
|
-
return [];
|
|
8644
|
+
if (R(s)) return [];
|
|
8731
8645
|
const i = s.adminToExtSystems.map((l) => l.id), r = s.assetLicences.map((l) => l.id), o = [];
|
|
8732
8646
|
return t.forEach((l) => {
|
|
8733
8647
|
if (i.includes(l.extSystem)) {
|
|
@@ -8739,8 +8653,7 @@ function Nh(t) {
|
|
|
8739
8653
|
}
|
|
8740
8654
|
function Nu(t) {
|
|
8741
8655
|
const { damCurrentUser: a, damCurrentUserIsSuperAdmin: e } = Lu();
|
|
8742
|
-
if (e.value)
|
|
8743
|
-
return !0;
|
|
8656
|
+
if (e.value) return !0;
|
|
8744
8657
|
const s = a.value;
|
|
8745
8658
|
return R(s) ? [] : !!(s.adminToExtSystems.map((o) => o.id).includes(t.extSystem) || s.assetLicences.map((o) => o.id).includes(t.licence));
|
|
8746
8659
|
}
|
|
@@ -8960,16 +8873,14 @@ function Ba() {
|
|
|
8960
8873
|
}, Ba.apply(this, arguments);
|
|
8961
8874
|
}
|
|
8962
8875
|
function eF(t, a) {
|
|
8963
|
-
if (t == null)
|
|
8964
|
-
return {};
|
|
8876
|
+
if (t == null) return {};
|
|
8965
8877
|
var e = {}, s = Object.keys(t), i, r;
|
|
8966
8878
|
for (r = 0; r < s.length; r++)
|
|
8967
8879
|
i = s[r], !(a.indexOf(i) >= 0) && (e[i] = t[i]);
|
|
8968
8880
|
return e;
|
|
8969
8881
|
}
|
|
8970
8882
|
function tF(t, a) {
|
|
8971
|
-
if (t == null)
|
|
8972
|
-
return {};
|
|
8883
|
+
if (t == null) return {};
|
|
8973
8884
|
var e = eF(t, a), s, i;
|
|
8974
8885
|
if (Object.getOwnPropertySymbols) {
|
|
8975
8886
|
var r = Object.getOwnPropertySymbols(t);
|
|
@@ -9018,8 +8929,7 @@ function pa(t, a, e, s) {
|
|
|
9018
8929
|
do {
|
|
9019
8930
|
if (a != null && (a[0] === ">" ? t.parentNode === e && Or(t, a) : Or(t, a)) || s && t === e)
|
|
9020
8931
|
return t;
|
|
9021
|
-
if (t === e)
|
|
9022
|
-
break;
|
|
8932
|
+
if (t === e) break;
|
|
9023
8933
|
} while (t = sF(t));
|
|
9024
8934
|
}
|
|
9025
8935
|
return null;
|
|
@@ -9096,10 +9006,8 @@ function ut(t, a, e, s, i) {
|
|
|
9096
9006
|
function jl(t, a, e) {
|
|
9097
9007
|
for (var s = rs(t, !0), i = ut(t)[a]; s; ) {
|
|
9098
9008
|
var r = ut(s)[e], o = void 0;
|
|
9099
|
-
if (e === "top" || e === "left" ? o = i >= r : o = i <= r, !o)
|
|
9100
|
-
|
|
9101
|
-
if (s === Aa())
|
|
9102
|
-
break;
|
|
9009
|
+
if (e === "top" || e === "left" ? o = i >= r : o = i <= r, !o) return s;
|
|
9010
|
+
if (s === Aa()) break;
|
|
9103
9011
|
s = rs(s, !1);
|
|
9104
9012
|
}
|
|
9105
9013
|
return !1;
|
|
@@ -9141,23 +9049,19 @@ function iF(t, a) {
|
|
|
9141
9049
|
for (var e in t)
|
|
9142
9050
|
if (t.hasOwnProperty(e)) {
|
|
9143
9051
|
for (var s in a)
|
|
9144
|
-
if (a.hasOwnProperty(s) && a[s] === t[e][s])
|
|
9145
|
-
return Number(e);
|
|
9052
|
+
if (a.hasOwnProperty(s) && a[s] === t[e][s]) return Number(e);
|
|
9146
9053
|
}
|
|
9147
9054
|
return -1;
|
|
9148
9055
|
}
|
|
9149
9056
|
function rs(t, a) {
|
|
9150
|
-
if (!t || !t.getBoundingClientRect)
|
|
9151
|
-
return Aa();
|
|
9057
|
+
if (!t || !t.getBoundingClientRect) return Aa();
|
|
9152
9058
|
var e = t, s = !1;
|
|
9153
9059
|
do
|
|
9154
9060
|
if (e.clientWidth < e.scrollWidth || e.clientHeight < e.scrollHeight) {
|
|
9155
9061
|
var i = be(e);
|
|
9156
9062
|
if (e.clientWidth < e.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || e.clientHeight < e.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
9157
|
-
if (!e.getBoundingClientRect || e === document.body)
|
|
9158
|
-
|
|
9159
|
-
if (s || a)
|
|
9160
|
-
return e;
|
|
9063
|
+
if (!e.getBoundingClientRect || e === document.body) return Aa();
|
|
9064
|
+
if (s || a) return e;
|
|
9161
9065
|
s = !0;
|
|
9162
9066
|
}
|
|
9163
9067
|
}
|
|
@@ -9703,8 +9607,7 @@ Ce.prototype = /** @lends Sortable.prototype */
|
|
|
9703
9607
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
9704
9608
|
_onDragOver: function(a) {
|
|
9705
9609
|
var e = this.el, s = a.target, i, r, o, l = this.options, n = l.group, d = Ce.active, c = ur === n, u = l.sort, p = qt || d, Y, v = this, F = !1;
|
|
9706
|
-
if (An)
|
|
9707
|
-
return;
|
|
9610
|
+
if (An) return;
|
|
9708
9611
|
function g($, U) {
|
|
9709
9612
|
Dt($, v, xa({
|
|
9710
9613
|
evt: a,
|
|
@@ -9743,13 +9646,11 @@ Ce.prototype = /** @lends Sortable.prototype */
|
|
|
9743
9646
|
originalEvent: a
|
|
9744
9647
|
});
|
|
9745
9648
|
}
|
|
9746
|
-
if (a.preventDefault !== void 0 && a.cancelable && a.preventDefault(), s = pa(s, l.draggable, e, !0), g("dragOver"), Ce.eventCanceled)
|
|
9747
|
-
return F;
|
|
9649
|
+
if (a.preventDefault !== void 0 && a.cancelable && a.preventDefault(), s = pa(s, l.draggable, e, !0), g("dragOver"), Ce.eventCanceled) return F;
|
|
9748
9650
|
if (oe.contains(a.target) || s.animated && s.animatingX && s.animatingY || v._ignoreWhileAnimating === s)
|
|
9749
9651
|
return h(!1);
|
|
9750
9652
|
if (Rr = !1, d && !l.disabled && (c ? u || (o = ot !== et) : qt === this || (this.lastPutMode = ur.checkPull(this, d, oe, a)) && n.checkPut(this, d, oe, a))) {
|
|
9751
|
-
if (Y = this._getDirection(a, s) === "vertical", i = ut(oe), g("dragOverValid"), Ce.eventCanceled)
|
|
9752
|
-
return F;
|
|
9653
|
+
if (Y = this._getDirection(a, s) === "vertical", i = ut(oe), g("dragOverValid"), Ce.eventCanceled) return F;
|
|
9753
9654
|
if (o)
|
|
9754
9655
|
return ot = et, y(), this._hideClone(), g("revert"), Ce.eventCanceled || (ws ? et.insertBefore(oe, ws) : et.appendChild(oe)), h(!0);
|
|
9755
9656
|
var X = tl(e, l.draggable);
|
|
@@ -9934,8 +9835,7 @@ Ce.prototype = /** @lends Sortable.prototype */
|
|
|
9934
9835
|
},
|
|
9935
9836
|
_hideClone: function() {
|
|
9936
9837
|
if (!es) {
|
|
9937
|
-
if (Dt("hideClone", this), Ce.eventCanceled)
|
|
9938
|
-
return;
|
|
9838
|
+
if (Dt("hideClone", this), Ce.eventCanceled) return;
|
|
9939
9839
|
be(it, "display", "none"), this.options.removeCloneOnHide && it.parentNode && it.parentNode.removeChild(it), es = !0;
|
|
9940
9840
|
}
|
|
9941
9841
|
},
|
|
@@ -9945,8 +9845,7 @@ Ce.prototype = /** @lends Sortable.prototype */
|
|
|
9945
9845
|
return;
|
|
9946
9846
|
}
|
|
9947
9847
|
if (es) {
|
|
9948
|
-
if (Dt("showClone", this), Ce.eventCanceled)
|
|
9949
|
-
return;
|
|
9848
|
+
if (Dt("showClone", this), Ce.eventCanceled) return;
|
|
9950
9849
|
oe.parentNode == et && !this.options.group.revertClone ? et.insertBefore(it, oe) : ws ? et.insertBefore(it, ws) : et.appendChild(it), this.options.group.revertClone && this.animate(oe, it), be(it, "display", ""), es = !1;
|
|
9951
9850
|
}
|
|
9952
9851
|
}
|
|
@@ -10387,8 +10286,7 @@ const rl = "a-sortable-", _F = ["id"], SF = { class: "a-sortable-widget__before"
|
|
|
10387
10286
|
}
|
|
10388
10287
|
i("onAddLast", null);
|
|
10389
10288
|
}, u = _(() => R(s.widgetIdentifierId) ? rl + z.value : s.widgetIdentifierId), p = () => {
|
|
10390
|
-
if (s.disableDraggable || !T.value)
|
|
10391
|
-
return;
|
|
10289
|
+
if (s.disableDraggable || !T.value) return;
|
|
10392
10290
|
const b = T.value.querySelector("." + Ur);
|
|
10393
10291
|
b && (w.value = il(b, [], {
|
|
10394
10292
|
handle: "." + Gs,
|
|
@@ -10396,8 +10294,7 @@ const rl = "a-sortable-", _F = ["id"], SF = { class: "a-sortable-widget__before"
|
|
|
10396
10294
|
dragClass: uc,
|
|
10397
10295
|
chosenClass: cc,
|
|
10398
10296
|
onEnd: async (C) => {
|
|
10399
|
-
if (s.disableDefaultSort || R(C.oldIndex) || R(C.newIndex))
|
|
10400
|
-
return;
|
|
10297
|
+
if (s.disableDefaultSort || R(C.oldIndex) || R(C.newIndex)) return;
|
|
10401
10298
|
const D = g(C.oldIndex, C.newIndex);
|
|
10402
10299
|
i("onEnd", D);
|
|
10403
10300
|
},
|
|
@@ -10662,8 +10559,7 @@ function PF(t, a, e) {
|
|
|
10662
10559
|
})), D++;
|
|
10663
10560
|
}
|
|
10664
10561
|
}, h = (K, O, E = 0) => {
|
|
10665
|
-
if (K === null)
|
|
10666
|
-
return E;
|
|
10562
|
+
if (K === null) return E;
|
|
10667
10563
|
const k = O.find((b) => b.data.id === K);
|
|
10668
10564
|
return k ? (E++, h(k.data.parent, O, E)) : E;
|
|
10669
10565
|
}, A = (K, O = 0) => {
|
|
@@ -11047,8 +10943,7 @@ const OF = ["data-id"], RF = { class: "a-sortable-nested-widget__nested" }, zF =
|
|
|
11047
10943
|
}
|
|
11048
10944
|
i("onAddLast", null);
|
|
11049
10945
|
}, { t: u } = ee(), p = _(() => R(s.widgetIdentifierId) ? rl + y.value : s.widgetIdentifierId), Y = _(() => s.rootClassName + " " + (F.value ? s.rootClassName + "--dragging" : "")), v = () => {
|
|
11050
|
-
if (s.disableDraggable || !g.value)
|
|
11051
|
-
return;
|
|
10946
|
+
if (s.disableDraggable || !g.value) return;
|
|
11052
10947
|
const k = Array.from(g.value.querySelectorAll("." + ed));
|
|
11053
10948
|
E.value = [];
|
|
11054
10949
|
for (let b = 0; b < k.length; b++)
|
|
@@ -11074,14 +10969,11 @@ const OF = ["data-id"], RF = { class: "a-sortable-nested-widget__nested" }, zF =
|
|
|
11074
10969
|
onEnd: (C) => {
|
|
11075
10970
|
F.value = !1, Wt(() => {
|
|
11076
10971
|
const D = ai(C.item.getAttribute("data-id") ?? "0");
|
|
11077
|
-
if (D < 1)
|
|
11078
|
-
return;
|
|
10972
|
+
if (D < 1) return;
|
|
11079
10973
|
const $ = C.newIndex;
|
|
11080
|
-
if (R($))
|
|
11081
|
-
return;
|
|
10974
|
+
if (R($)) return;
|
|
11082
10975
|
const U = C.oldIndex;
|
|
11083
|
-
if (R(U))
|
|
11084
|
-
return;
|
|
10976
|
+
if (R(U)) return;
|
|
11085
10977
|
let G = null;
|
|
11086
10978
|
const J = C.item.parentElement;
|
|
11087
10979
|
se(J) || (G = ai(J.getAttribute("data-id") ?? "0"), G === 0 && (G = null));
|
|
@@ -11787,8 +11679,7 @@ function vg() {
|
|
|
11787
11679
|
}
|
|
11788
11680
|
const Ls = (t) => {
|
|
11789
11681
|
var e;
|
|
11790
|
-
if (!t)
|
|
11791
|
-
return "";
|
|
11682
|
+
if (!t) return "";
|
|
11792
11683
|
if (t.type && t.type.length > 0)
|
|
11793
11684
|
return t.type;
|
|
11794
11685
|
switch ((e = t.name.split(".").pop()) == null ? void 0 : e.toLowerCase()) {
|
|
@@ -11983,8 +11874,7 @@ const Ag = (t, a) => {
|
|
|
11983
11874
|
for (const [e, s] of Object.entries(a))
|
|
11984
11875
|
if (Object.values(qe).includes(e)) {
|
|
11985
11876
|
for (let i = 0; i < s.mimeTypes.length; i++)
|
|
11986
|
-
if (t === s.mimeTypes[i])
|
|
11987
|
-
return e;
|
|
11877
|
+
if (t === s.mimeTypes[i]) return e;
|
|
11988
11878
|
}
|
|
11989
11879
|
return null;
|
|
11990
11880
|
}, sn = S(void 0);
|
|
@@ -12085,8 +11975,7 @@ function Vc(t) {
|
|
|
12085
11975
|
return Ig * 1e3 * t.notificationFallbackTry * t.notificationFallbackTry;
|
|
12086
11976
|
}
|
|
12087
11977
|
async function pc(t, a) {
|
|
12088
|
-
if (clearTimeout(a.notificationFallbackTimer), a.status === Ne.Uploaded || a.notificationFallbackTry > _g || !a.assetId)
|
|
12089
|
-
return;
|
|
11978
|
+
if (clearTimeout(a.notificationFallbackTimer), a.status === Ne.Uploaded || a.notificationFallbackTry > _g || !a.assetId) return;
|
|
12090
11979
|
const e = await is(t, a.assetId);
|
|
12091
11980
|
if (e && e.mainFile && e.mainFile.fileAttributes) {
|
|
12092
11981
|
const s = Qt();
|
|
@@ -12266,8 +12155,7 @@ var vc = { exports: {} };
|
|
|
12266
12155
|
return n.join("");
|
|
12267
12156
|
}, e.exports.ceilHeapSize = function(o) {
|
|
12268
12157
|
var l = 0;
|
|
12269
|
-
if (o <= 65536)
|
|
12270
|
-
return 65536;
|
|
12158
|
+
if (o <= 65536) return 65536;
|
|
12271
12159
|
if (o < 16777216)
|
|
12272
12160
|
for (l = 1; l < o; l = l << 1)
|
|
12273
12161
|
;
|
|
@@ -12400,8 +12288,7 @@ var vc = { exports: {} };
|
|
|
12400
12288
|
var F = {};
|
|
12401
12289
|
F[v] = [];
|
|
12402
12290
|
var g = Y.toString(), y = g.match(/^function\s?\(\w+,\s*\w+,\s*(\w+)\)/);
|
|
12403
|
-
if (!y)
|
|
12404
|
-
return F;
|
|
12291
|
+
if (!y) return F;
|
|
12405
12292
|
for (var h = y[1], A = new RegExp("(\\\\n|\\W)" + n(h) + l, "g"), X; X = A.exec(g); )
|
|
12406
12293
|
X[3] !== "dll-reference" && F[v].push(X[3]);
|
|
12407
12294
|
for (A = new RegExp("\\(" + n(h) + '\\("(dll-reference\\s(' + o + '))"\\)\\)' + l, "g"); X = A.exec(g); )
|
|
@@ -12738,8 +12625,7 @@ function Lg(t, a = void 0) {
|
|
|
12738
12625
|
var x;
|
|
12739
12626
|
a && g();
|
|
12740
12627
|
const A = (x = t.file) == null ? void 0 : x.size;
|
|
12741
|
-
if (R(A))
|
|
12742
|
-
return Promise.reject();
|
|
12628
|
+
if (R(A)) return Promise.reject();
|
|
12743
12629
|
let X = 0;
|
|
12744
12630
|
for (; X < A; ) {
|
|
12745
12631
|
const w = await F(X);
|
|
@@ -12778,8 +12664,7 @@ function PK() {
|
|
|
12778
12664
|
retries: 5,
|
|
12779
12665
|
delay: 5e3,
|
|
12780
12666
|
onFailed() {
|
|
12781
|
-
if (!a)
|
|
12782
|
-
return;
|
|
12667
|
+
if (!a) return;
|
|
12783
12668
|
const { showWarning: r } = We();
|
|
12784
12669
|
setTimeout(() => {
|
|
12785
12670
|
r(Ug("common.damImage.notificationsNotConnected"));
|
|
@@ -12787,8 +12672,7 @@ function PK() {
|
|
|
12787
12672
|
}
|
|
12788
12673
|
},
|
|
12789
12674
|
onMessage(r, o) {
|
|
12790
|
-
if (!a)
|
|
12791
|
-
return;
|
|
12675
|
+
if (!a) return;
|
|
12792
12676
|
const l = JSON.parse(o.data), n = l.data.length ? JSON.parse(l.data) : void 0;
|
|
12793
12677
|
e.emit({ name: l.eventName, data: n });
|
|
12794
12678
|
}
|
|
@@ -12878,8 +12762,7 @@ function Fc(t, a, e, s = "id") {
|
|
|
12878
12762
|
return i.value.get(h);
|
|
12879
12763
|
},
|
|
12880
12764
|
isLoaded: (h) => {
|
|
12881
|
-
if (!h)
|
|
12882
|
-
return !1;
|
|
12765
|
+
if (!h) return !1;
|
|
12883
12766
|
const A = i.value.get(h);
|
|
12884
12767
|
return A ? A._loaded : !1;
|
|
12885
12768
|
}
|
|
@@ -12999,8 +12882,7 @@ const Zg = (t) => ({
|
|
|
12999
12882
|
throw new Error("Ext system must be initialised.");
|
|
13000
12883
|
for await (const te of U) {
|
|
13001
12884
|
const fe = Ag(Ls(te), J);
|
|
13002
|
-
if (!fe || fe !== qe.Image)
|
|
13003
|
-
continue;
|
|
12885
|
+
if (!fe || fe !== qe.Image) continue;
|
|
13004
12886
|
const me = r(
|
|
13005
12887
|
"file_" + te.name,
|
|
13006
12888
|
nl.File,
|
|
@@ -13055,8 +12937,7 @@ const Zg = (t) => ({
|
|
|
13055
12937
|
async function h(C) {
|
|
13056
12938
|
try {
|
|
13057
12939
|
const D = await is(o, C);
|
|
13058
|
-
if (!D)
|
|
13059
|
-
return;
|
|
12940
|
+
if (!D) return;
|
|
13060
12941
|
i.value.forEach(($, U) => {
|
|
13061
12942
|
$.items.forEach((G) => {
|
|
13062
12943
|
var J;
|
|
@@ -13068,8 +12949,7 @@ const Zg = (t) => ({
|
|
|
13068
12949
|
}
|
|
13069
12950
|
async function A(C, D = null, $ = null) {
|
|
13070
12951
|
const { updateNewNames: U, getAuthorConflicts: G } = on();
|
|
13071
|
-
if (!D || !$ || $ !== qe.Image)
|
|
13072
|
-
return;
|
|
12952
|
+
if (!D || !$ || $ !== qe.Image) return;
|
|
13073
12953
|
let J = null;
|
|
13074
12954
|
try {
|
|
13075
12955
|
J = await Vo(o, D);
|
|
@@ -13136,8 +13016,7 @@ const Zg = (t) => ({
|
|
|
13136
13016
|
}
|
|
13137
13017
|
function K(C) {
|
|
13138
13018
|
const D = i.value.get(C);
|
|
13139
|
-
if (!D || D.items.length === 0)
|
|
13140
|
-
return;
|
|
13019
|
+
if (!D || D.items.length === 0) return;
|
|
13141
13020
|
const $ = v(C, Ne.Uploading);
|
|
13142
13021
|
D.items.forEach((U) => {
|
|
13143
13022
|
U.status = Ne.Stop;
|
|
@@ -13165,8 +13044,7 @@ const Zg = (t) => ({
|
|
|
13165
13044
|
}
|
|
13166
13045
|
function b(C) {
|
|
13167
13046
|
const D = [], $ = i.value.get(C);
|
|
13168
|
-
if (!$)
|
|
13169
|
-
return D;
|
|
13047
|
+
if (!$) return D;
|
|
13170
13048
|
if ($.items.length > 0)
|
|
13171
13049
|
for (let U = 0; U < $.items.length; U++)
|
|
13172
13050
|
D.includes($.items[U].assetType) || D.push($.items[U].assetType);
|
|
@@ -13207,8 +13085,7 @@ const Zg = (t) => ({
|
|
|
13207
13085
|
});
|
|
13208
13086
|
async function gq(t, a) {
|
|
13209
13087
|
const e = Math.ceil(a.length / nn), s = [];
|
|
13210
|
-
if (a.length === 0)
|
|
13211
|
-
return Promise.resolve([]);
|
|
13088
|
+
if (a.length === 0) return Promise.resolve([]);
|
|
13212
13089
|
for (let i = 0; i < e; i++) {
|
|
13213
13090
|
const r = i * nn, l = { images: a.slice(r, r + nn) }, n = await t().put(mi, JSON.stringify(l));
|
|
13214
13091
|
s.push(n);
|
|
@@ -13784,8 +13661,7 @@ const Oq = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
13784
13661
|
}, o = () => {
|
|
13785
13662
|
s("error");
|
|
13786
13663
|
}, l = _(() => {
|
|
13787
|
-
if (e.assetStatus === Ge.Deleting)
|
|
13788
|
-
return "mdi-trash-can";
|
|
13664
|
+
if (e.assetStatus === Ge.Deleting) return "mdi-trash-can";
|
|
13789
13665
|
switch (e.assetType) {
|
|
13790
13666
|
case qe.Audio:
|
|
13791
13667
|
return e.assetStatus === Ge.WithFile ? "mdi-music" : "mdi-music-off";
|
|
@@ -13799,8 +13675,7 @@ const Oq = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
13799
13675
|
return "";
|
|
13800
13676
|
}
|
|
13801
13677
|
}), n = _(() => {
|
|
13802
|
-
if (!e.uploadingProgress)
|
|
13803
|
-
return "0%";
|
|
13678
|
+
if (!e.uploadingProgress) return "0%";
|
|
13804
13679
|
const v = Math.ceil(e.uploadingProgress);
|
|
13805
13680
|
return v > 100 ? "100%" : v + "%";
|
|
13806
13681
|
}), d = _(() => [Ge.Deleting, Ge.Draft].includes(e.assetStatus) ? "#ccc" : e.backgroundColor), c = _(() => e.assetStatus === Ge.WithFile ? "#505050" : "#8f8f8f"), u = _(() => R(e.src) ? Is : e.src), p = _(() => e.hideIcon ? !1 : !(e.assetType === qe.Image && e.src)), { remainingTimeShort: Y } = Pq();
|
|
@@ -14273,8 +14148,7 @@ const A7 = { class: "w-100 text-right" }, fl = /* @__PURE__ */ W({
|
|
|
14273
14148
|
},
|
|
14274
14149
|
setup(t) {
|
|
14275
14150
|
const a = t, { getCachedAuthor: e } = Gi(), s = Qt(), i = ft(void 0), r = ft(!1), o = _(() => e(a.id)), l = _(() => {
|
|
14276
|
-
if (!a.queueId)
|
|
14277
|
-
return;
|
|
14151
|
+
if (!a.queueId) return;
|
|
14278
14152
|
const d = s.getQueue(a.queueId);
|
|
14279
14153
|
if (!(!d || !i.value) && d.suggestions.newAuthorNames.has(i.value.name))
|
|
14280
14154
|
return "mdi-new-box";
|
|
@@ -14820,8 +14694,7 @@ const B7 = { key: 1 }, pd = /* @__PURE__ */ W({
|
|
|
14820
14694
|
},
|
|
14821
14695
|
setup(t) {
|
|
14822
14696
|
const a = t, { getCachedKeyword: e } = qo(), s = Qt(), i = ft(void 0), r = ft(!1), o = _(() => e(a.id)), l = _(() => {
|
|
14823
|
-
if (!a.queueId)
|
|
14824
|
-
return;
|
|
14697
|
+
if (!a.queueId) return;
|
|
14825
14698
|
const d = s.getQueue(a.queueId);
|
|
14826
14699
|
if (!(!d || !i.value) && d.suggestions.newKeywordNames.has(i.value.name))
|
|
14827
14700
|
return "mdi-new-box";
|
|
@@ -15821,13 +15694,11 @@ function zc(t) {
|
|
|
15821
15694
|
return t;
|
|
15822
15695
|
}
|
|
15823
15696
|
function gY(t, a) {
|
|
15824
|
-
if (typeof t != "object" || !t)
|
|
15825
|
-
return t;
|
|
15697
|
+
if (typeof t != "object" || !t) return t;
|
|
15826
15698
|
var e = t[Symbol.toPrimitive];
|
|
15827
15699
|
if (e !== void 0) {
|
|
15828
15700
|
var s = e.call(t, a || "default");
|
|
15829
|
-
if (typeof s != "object")
|
|
15830
|
-
return s;
|
|
15701
|
+
if (typeof s != "object") return s;
|
|
15831
15702
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
15832
15703
|
}
|
|
15833
15704
|
return (a === "string" ? String : Number)(t);
|
|
@@ -15871,28 +15742,22 @@ function Nc(t) {
|
|
|
15871
15742
|
return AY(t) || yY(t) || bY(t) || CY();
|
|
15872
15743
|
}
|
|
15873
15744
|
function AY(t) {
|
|
15874
|
-
if (Array.isArray(t))
|
|
15875
|
-
return In(t);
|
|
15745
|
+
if (Array.isArray(t)) return In(t);
|
|
15876
15746
|
}
|
|
15877
15747
|
function yY(t) {
|
|
15878
|
-
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null)
|
|
15879
|
-
return Array.from(t);
|
|
15748
|
+
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
15880
15749
|
}
|
|
15881
15750
|
function bY(t, a) {
|
|
15882
15751
|
if (t) {
|
|
15883
|
-
if (typeof t == "string")
|
|
15884
|
-
return In(t, a);
|
|
15752
|
+
if (typeof t == "string") return In(t, a);
|
|
15885
15753
|
var e = Object.prototype.toString.call(t).slice(8, -1);
|
|
15886
|
-
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set")
|
|
15887
|
-
|
|
15888
|
-
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
|
|
15889
|
-
return In(t, a);
|
|
15754
|
+
if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set") return Array.from(t);
|
|
15755
|
+
if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return In(t, a);
|
|
15890
15756
|
}
|
|
15891
15757
|
}
|
|
15892
15758
|
function In(t, a) {
|
|
15893
15759
|
(a == null || a > t.length) && (a = t.length);
|
|
15894
|
-
for (var e = 0, s = new Array(a); e < a; e++)
|
|
15895
|
-
s[e] = t[e];
|
|
15760
|
+
for (var e = 0, s = new Array(a); e < a; e++) s[e] = t[e];
|
|
15896
15761
|
return s;
|
|
15897
15762
|
}
|
|
15898
15763
|
function CY() {
|
|
@@ -16213,8 +16078,7 @@ function ns(t) {
|
|
|
16213
16078
|
if (r && o) {
|
|
16214
16079
|
var l = e * a;
|
|
16215
16080
|
i === "contain" && l > s || i === "cover" && l < s ? e = s / a : s = e * a;
|
|
16216
|
-
} else
|
|
16217
|
-
r ? e = s / a : o && (s = e * a);
|
|
16081
|
+
} else r ? e = s / a : o && (s = e * a);
|
|
16218
16082
|
return {
|
|
16219
16083
|
width: s,
|
|
16220
16084
|
height: e
|
|
@@ -16789,8 +16653,7 @@ var tX = {
|
|
|
16789
16653
|
pageY: s.pageY
|
|
16790
16654
|
};
|
|
16791
16655
|
r.left -= (c - o) * ((v.pageX - Y.left - r.left) / o), r.top -= (u - l) * ((v.pageY - Y.top - r.top) / l);
|
|
16792
|
-
} else
|
|
16793
|
-
Us(e) && Te(e.x) && Te(e.y) ? (r.left -= (c - o) * ((e.x - r.left) / o), r.top -= (u - l) * ((e.y - r.top) / l)) : (r.left -= (c - o) / 2, r.top -= (u - l) / 2);
|
|
16656
|
+
} else Us(e) && Te(e.x) && Te(e.y) ? (r.left -= (c - o) * ((e.x - r.left) / o), r.top -= (u - l) * ((e.y - r.top) / l)) : (r.left -= (c - o) / 2, r.top -= (u - l) / 2);
|
|
16794
16657
|
r.width = c, r.height = u, this.renderCanvas(!0);
|
|
16795
16658
|
}
|
|
16796
16659
|
return this;
|
|
@@ -17020,8 +16883,7 @@ var tX = {
|
|
|
17020
16883
|
if (this.isImg = !0, i = e.getAttribute("src") || "", this.originalUrl = i, !i)
|
|
17021
16884
|
return;
|
|
17022
16885
|
i = e.src;
|
|
17023
|
-
} else
|
|
17024
|
-
s === "canvas" && window.HTMLCanvasElement && (i = e.toDataURL());
|
|
16886
|
+
} else s === "canvas" && window.HTMLCanvasElement && (i = e.toDataURL());
|
|
17025
16887
|
this.load(i);
|
|
17026
16888
|
}
|
|
17027
16889
|
}
|
|
@@ -18100,8 +17962,7 @@ const XX = { key: 0 }, AX = /* @__PURE__ */ W({
|
|
|
18100
17962
|
}
|
|
18101
17963
|
}, Me = async () => {
|
|
18102
17964
|
var Q;
|
|
18103
|
-
if (F.value.length === 0)
|
|
18104
|
-
return;
|
|
17965
|
+
if (F.value.length === 0) return;
|
|
18105
17966
|
let Xe = "", _e = "";
|
|
18106
17967
|
try {
|
|
18107
17968
|
const ne = await Pr(U, F.value);
|
|
@@ -18567,8 +18428,7 @@ const XX = { key: 0 }, AX = /* @__PURE__ */ W({
|
|
|
18567
18428
|
O.value = !0, x.setImageDetail(null), j.value = !0;
|
|
18568
18429
|
let Ft = "", ua = "";
|
|
18569
18430
|
if (de.type === "asset") {
|
|
18570
|
-
if (!de.value[0] || !de.value[0].mainFile)
|
|
18571
|
-
return;
|
|
18431
|
+
if (!de.value[0] || !de.value[0].mainFile) return;
|
|
18572
18432
|
try {
|
|
18573
18433
|
const ga = await is(ae, de.value[0].id);
|
|
18574
18434
|
Pt((Ue = ga.metadata.customData) == null ? void 0 : Ue.description) && (Ft = ga.metadata.customData.description.trim()), ga.authors.length > 0 && (ua = (await ci(
|
|
@@ -20260,8 +20120,7 @@ const MA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, $A = { clas
|
|
|
20260
20120
|
const Ve = await kc(n, s.modelValue);
|
|
20261
20121
|
g.setImages(
|
|
20262
20122
|
Ve.map((ae) => {
|
|
20263
|
-
if (R(ae.position))
|
|
20264
|
-
throw new Error("Image object needs position field!");
|
|
20123
|
+
if (R(ae.position)) throw new Error("Image object needs position field!");
|
|
20265
20124
|
return g.updateMaxPositionIfGreater(ae.position), {
|
|
20266
20125
|
key: ts(),
|
|
20267
20126
|
...ae
|
|
@@ -20327,8 +20186,7 @@ const MA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, $A = { clas
|
|
|
20327
20186
|
});
|
|
20328
20187
|
}, O = async (Ve) => {
|
|
20329
20188
|
if (Ve.type === "asset") {
|
|
20330
|
-
if (Ve.value.length === 0)
|
|
20331
|
-
return;
|
|
20189
|
+
if (Ve.value.length === 0) return;
|
|
20332
20190
|
const ae = await K(Ve.value.filter((Ae) => !se(Ae.mainFile)));
|
|
20333
20191
|
g.addImages(ae);
|
|
20334
20192
|
}
|
|
@@ -20396,8 +20254,7 @@ const MA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, $A = { clas
|
|
|
20396
20254
|
y.value.splice(ae, 0, Ae), ve(), ne();
|
|
20397
20255
|
}
|
|
20398
20256
|
}, Le = () => {
|
|
20399
|
-
if (s.disableDraggable || !fe.value)
|
|
20400
|
-
return;
|
|
20257
|
+
if (s.disableDraggable || !fe.value) return;
|
|
20401
20258
|
const Ve = fe.value.querySelector("." + Ur);
|
|
20402
20259
|
Ve && (Me.value = il(Ve, [], {
|
|
20403
20260
|
handle: "." + Gs,
|
|
@@ -20932,14 +20789,11 @@ function UK(t, a, e, s, i, r) {
|
|
|
20932
20789
|
loading: d,
|
|
20933
20790
|
onRowClick: (z) => {
|
|
20934
20791
|
const H = z.target;
|
|
20935
|
-
if (!H)
|
|
20936
|
-
return;
|
|
20792
|
+
if (!H) return;
|
|
20937
20793
|
const j = H.parentElement;
|
|
20938
|
-
if (!j || !j.classList.contains("v-data-table__tr"))
|
|
20939
|
-
return;
|
|
20794
|
+
if (!j || !j.classList.contains("v-data-table__tr")) return;
|
|
20940
20795
|
const K = j.firstElementChild;
|
|
20941
|
-
if (!K || !K.classList.contains("v-data-table__td"))
|
|
20942
|
-
return;
|
|
20796
|
+
if (!K || !K.classList.contains("v-data-table__td")) return;
|
|
20943
20797
|
const O = K.querySelector("input");
|
|
20944
20798
|
O && O.click();
|
|
20945
20799
|
},
|
|
@@ -20959,8 +20813,7 @@ const jK = (t, a) => ({
|
|
|
20959
20813
|
if (t === a && t === 1)
|
|
20960
20814
|
return new Set(s ? [(r = e[0]) == null ? void 0 : r.value] : []);
|
|
20961
20815
|
for (const o of e) {
|
|
20962
|
-
if (i.size >= a && s)
|
|
20963
|
-
break;
|
|
20816
|
+
if (i.size >= a && s) break;
|
|
20964
20817
|
s ? i.add(o.value) : i.delete(o.value);
|
|
20965
20818
|
}
|
|
20966
20819
|
return i;
|
|
@@ -23377,7 +23230,7 @@ const iD = {
|
|
|
23377
23230
|
})
|
|
23378
23231
|
});
|
|
23379
23232
|
async function VD() {
|
|
23380
|
-
(await import("./webfontloader-
|
|
23233
|
+
(await import("./webfontloader-CuPjwmtj.js").then((a) => a.w)).load({
|
|
23381
23234
|
google: {
|
|
23382
23235
|
families: ["Roboto:100,300,400,500,700,900&display=swap"]
|
|
23383
23236
|
}
|
|
@@ -23525,8 +23378,7 @@ function gD(t, a = !1) {
|
|
|
23525
23378
|
objectSetDataByField: v,
|
|
23526
23379
|
acquireCollabAnyLock: (y, h = {}) => {
|
|
23527
23380
|
var X;
|
|
23528
|
-
if (!e.value.enabled || R(s.value))
|
|
23529
|
-
return;
|
|
23381
|
+
if (!e.value.enabled || R(s.value)) return;
|
|
23530
23382
|
const A = o.get(t);
|
|
23531
23383
|
A && A.status === sa.Inactive || (X = s.value) == null || X.timeout(1e3).emit("acquireFieldLock", t, y, h, (x, w) => {
|
|
23532
23384
|
var z;
|
|
@@ -23550,8 +23402,7 @@ function gD(t, a = !1) {
|
|
|
23550
23402
|
},
|
|
23551
23403
|
releaseCollabAnyLock: (y, h, A = {}) => {
|
|
23552
23404
|
var x, w;
|
|
23553
|
-
if (!e.value.enabled || R(s.value))
|
|
23554
|
-
return;
|
|
23405
|
+
if (!e.value.enabled || R(s.value)) return;
|
|
23555
23406
|
const X = o.get(t);
|
|
23556
23407
|
if (X && X.status === sa.Inactive) {
|
|
23557
23408
|
r.has(t) || r.set(t, /* @__PURE__ */ new Map()), (x = r.get(t)) == null || x.set(y, h);
|
|
@@ -24199,4 +24050,4 @@ export {
|
|
|
24199
24050
|
QS as y,
|
|
24200
24051
|
Hs as z
|
|
24201
24052
|
};
|
|
24202
|
-
//# sourceMappingURL=lib-
|
|
24053
|
+
//# sourceMappingURL=lib-BHRLM_kC.js.map
|