@anzusystems/common-admin 1.47.0-beta.98 → 1.47.0-beta.99
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.js +1 -1
- package/dist/{lib-CDpngw0k.js → lib-C6OcGAGE.js} +352 -352
- package/dist/lib-C6OcGAGE.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/{webfontloader-DYZrD9l8.js → webfontloader-Bx-6nQEU.js} +2 -2
- package/dist/{webfontloader-DYZrD9l8.js.map → webfontloader-Bx-6nQEU.js.map} +1 -1
- package/package.json +3 -3
- package/dist/lib-CDpngw0k.js.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var gm = Object.defineProperty;
|
|
2
2
|
var Fm = (a, t, e) => t in a ? gm(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
|
|
3
3
|
var mr = (a, t, e) => Fm(a, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { defineComponent as W, computed as S, openBlock as F, createBlock as E, withCtx as V, createTextVNode as z, toDisplayString as _, createElementBlock as O, createVNode as m, normalizeClass as ge, createCommentVNode as j, renderSlot as de, createElementVNode as U, resolveComponent as
|
|
4
|
+
import { defineComponent as W, computed as S, openBlock as F, createBlock as E, withCtx as V, createTextVNode as z, toDisplayString as _, createElementBlock as O, createVNode as m, normalizeClass as ge, createCommentVNode as j, renderSlot as de, createElementVNode as U, resolveComponent as Be, withModifiers as J, withDirectives as ca, vShow as Vs, isProxy as $d, toRaw as vt, isRef as Ua, unref as p, Fragment as Fe, normalizeStyle as Dt, shallowRef as ht, watch as qe, ref as K, reactive as ea, inject as at, createSlots as ma, provide as zi, renderList as He, onMounted as Xt, TransitionGroup as qm, mergeProps as Tt, isVNode as Ym, mergeModels as lt, useModel as Yt, toRefs as mi, vModelText as kl, nextTick as Jt, withKeys as da, onUnmounted as Wi, readonly as Is, createStaticVNode as Bd, resolveDynamicComponent as so, setBlockTracking as Il, onBeforeUnmount as io, toRef as ro, Teleport as Xm, normalizeProps as Am, guardReactiveProps as ym } from "vue";
|
|
5
5
|
import { useI18n as ee, createI18n as bm } from "vue-i18n";
|
|
6
6
|
import { VChip as Qt } from "vuetify/lib/components/VChip/index.mjs";
|
|
7
7
|
import { VRow as ve, VCol as oe, VSpacer as nt } from "vuetify/lib/components/VGrid/index.mjs";
|
|
8
8
|
import { VAlert as Ii } from "vuetify/lib/components/VAlert/index.mjs";
|
|
9
9
|
import { VIcon as re } from "vuetify/lib/components/VIcon/index.mjs";
|
|
10
|
-
import { VCard as Ue, VCardText as
|
|
10
|
+
import { VCard as Ue, VCardText as Ms, VCardActions as Ot, VCardItem as Eo } from "vuetify/lib/components/VCard/index.mjs";
|
|
11
11
|
import { VAvatar as hn } from "vuetify/lib/components/VAvatar/index.mjs";
|
|
12
12
|
import { VTooltip as be } from "vuetify/lib/components/VTooltip/index.mjs";
|
|
13
13
|
import { VProgressCircular as tt } from "vuetify/lib/components/VProgressCircular/index.mjs";
|
|
@@ -104,7 +104,7 @@ const af = { key: 1 }, Hd = /* @__PURE__ */ W({
|
|
|
104
104
|
},
|
|
105
105
|
setup(a) {
|
|
106
106
|
return (t, e) => {
|
|
107
|
-
const s =
|
|
107
|
+
const s = Be("Notifications");
|
|
108
108
|
return F(), E(s, {
|
|
109
109
|
max: t.max,
|
|
110
110
|
group: t.group,
|
|
@@ -1498,7 +1498,7 @@ class wt extends Error {
|
|
|
1498
1498
|
super(e), this.name = "AnzuFatalError", this.cause = t, this.message = e;
|
|
1499
1499
|
}
|
|
1500
1500
|
}
|
|
1501
|
-
const
|
|
1501
|
+
const $s = 200, Gn = 201, Qf = 202, ja = 204, LS = 400, US = 401, ep = 403, NS = 404, pu = 422, tp = [$s, Gn, Qf, ja], Ha = (a) => {
|
|
1502
1502
|
var t;
|
|
1503
1503
|
return no.isAxiosError(a) && ((t = a.response) == null ? void 0 : t.status) === ep;
|
|
1504
1504
|
}, Vu = (a) => a instanceof Da;
|
|
@@ -1716,7 +1716,7 @@ const jS = /* @__PURE__ */ W({
|
|
|
1716
1716
|
}
|
|
1717
1717
|
};
|
|
1718
1718
|
return (v, h) => {
|
|
1719
|
-
const g =
|
|
1719
|
+
const g = Be("ABtnTertiary"), w = Be("ABtnPrimary");
|
|
1720
1720
|
return F(), E(w, {
|
|
1721
1721
|
class: ge(v.buttonClass),
|
|
1722
1722
|
rounded: "pill",
|
|
@@ -1747,7 +1747,7 @@ const jS = /* @__PURE__ */ W({
|
|
|
1747
1747
|
]),
|
|
1748
1748
|
_: 3
|
|
1749
1749
|
}),
|
|
1750
|
-
m(
|
|
1750
|
+
m(Ms, null, {
|
|
1751
1751
|
default: V(() => [
|
|
1752
1752
|
de(v.$slots, "content")
|
|
1753
1753
|
]),
|
|
@@ -1858,7 +1858,7 @@ const jS = /* @__PURE__ */ W({
|
|
|
1858
1858
|
return e;
|
|
1859
1859
|
}, cp = {};
|
|
1860
1860
|
function mp(a, t) {
|
|
1861
|
-
const e =
|
|
1861
|
+
const e = Be("RouterView");
|
|
1862
1862
|
return F(), E(e);
|
|
1863
1863
|
}
|
|
1864
1864
|
const WS = /* @__PURE__ */ Za(cp, [["render", mp]]);
|
|
@@ -1961,7 +1961,7 @@ var Fu = { exports: {} };
|
|
|
1961
1961
|
return H ? we : we.endOf(d);
|
|
1962
1962
|
}, ae = function(ue, ce) {
|
|
1963
1963
|
return D.w(B.toDate()[ue].apply(B.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ce)), B);
|
|
1964
|
-
}, fe = this.$W, pe = this.$M, Ke = this.$D,
|
|
1964
|
+
}, fe = this.$W, pe = this.$M, Ke = this.$D, ze = "set" + (this.$u ? "UTC" : "");
|
|
1965
1965
|
switch (G) {
|
|
1966
1966
|
case q:
|
|
1967
1967
|
return H ? Z(1, 0) : Z(31, 11);
|
|
@@ -1972,13 +1972,13 @@ var Fu = { exports: {} };
|
|
|
1972
1972
|
return Z(H ? Ke - Q : Ke + (6 - Q), pe);
|
|
1973
1973
|
case d:
|
|
1974
1974
|
case v:
|
|
1975
|
-
return ae(
|
|
1975
|
+
return ae(ze + "Hours", 0);
|
|
1976
1976
|
case n:
|
|
1977
|
-
return ae(
|
|
1977
|
+
return ae(ze + "Minutes", 1);
|
|
1978
1978
|
case l:
|
|
1979
|
-
return ae(
|
|
1979
|
+
return ae(ze + "Seconds", 2);
|
|
1980
1980
|
case o:
|
|
1981
|
-
return ae(
|
|
1981
|
+
return ae(ze + "Milliseconds", 3);
|
|
1982
1982
|
default:
|
|
1983
1983
|
return this.clone();
|
|
1984
1984
|
}
|
|
@@ -2013,17 +2013,17 @@ var Fu = { exports: {} };
|
|
|
2013
2013
|
}, k.format = function(b) {
|
|
2014
2014
|
var T = this, B = this.$locale();
|
|
2015
2015
|
if (!this.isValid()) return B.invalidDate || h;
|
|
2016
|
-
var H = b || "YYYY-MM-DDTHH:mm:ssZ", G = D.z(this), Z = this.$H, ae = this.$m, fe = this.$M, pe = B.weekdays, Ke = B.months,
|
|
2017
|
-
return ce && (ce[we] || ce(T, H)) ||
|
|
2016
|
+
var H = b || "YYYY-MM-DDTHH:mm:ssZ", G = D.z(this), Z = this.$H, ae = this.$m, fe = this.$M, pe = B.weekdays, Ke = B.months, ze = B.meridiem, Ae = function(ce, we, Le, Ve) {
|
|
2017
|
+
return ce && (ce[we] || ce(T, H)) || Le[we].slice(0, Ve);
|
|
2018
2018
|
}, Q = function(ce) {
|
|
2019
2019
|
return D.s(Z % 12 || 12, ce, "0");
|
|
2020
|
-
}, ue =
|
|
2020
|
+
}, ue = ze || function(ce, we, Le) {
|
|
2021
2021
|
var Ve = ce < 12 ? "AM" : "PM";
|
|
2022
|
-
return
|
|
2022
|
+
return Le ? Ve.toLowerCase() : Ve;
|
|
2023
2023
|
};
|
|
2024
2024
|
return H.replace(w, function(ce, we) {
|
|
2025
|
-
return we || function(
|
|
2026
|
-
switch (
|
|
2025
|
+
return we || function(Le) {
|
|
2026
|
+
switch (Le) {
|
|
2027
2027
|
case "YY":
|
|
2028
2028
|
return String(T.$y).slice(-2);
|
|
2029
2029
|
case "YYYY":
|
|
@@ -2143,7 +2143,7 @@ var Fu = { exports: {} };
|
|
|
2143
2143
|
});
|
|
2144
2144
|
})(Fu);
|
|
2145
2145
|
var fp = Fu.exports;
|
|
2146
|
-
const
|
|
2146
|
+
const $e = /* @__PURE__ */ mo(fp);
|
|
2147
2147
|
var qu = { exports: {} };
|
|
2148
2148
|
(function(a, t) {
|
|
2149
2149
|
(function(e, s) {
|
|
@@ -2319,10 +2319,10 @@ var Xu = { exports: {} };
|
|
|
2319
2319
|
D && (x = N[2]), n = this.$locale(), !M && x && (n = Y.Ls[x]), this.$d = function(T, B, H, G) {
|
|
2320
2320
|
try {
|
|
2321
2321
|
if (["x", "X"].indexOf(B) > -1) return new Date((B === "X" ? 1e3 : 1) * T);
|
|
2322
|
-
var Z = h(B)(T), ae = Z.year, fe = Z.month, pe = Z.day, Ke = Z.hours,
|
|
2322
|
+
var Z = h(B)(T), ae = Z.year, fe = Z.month, pe = Z.day, Ke = Z.hours, ze = Z.minutes, Ae = Z.seconds, Q = Z.milliseconds, ue = Z.zone, ce = Z.week, we = /* @__PURE__ */ new Date(), Le = pe || (ae || fe ? 1 : we.getDate()), Ve = ae || we.getFullYear(), se = 0;
|
|
2323
2323
|
ae && !fe || (se = fe > 0 ? fe - 1 : we.getMonth());
|
|
2324
|
-
var Ye, dt = Ke || 0, ut =
|
|
2325
|
-
return ue ? new Date(Date.UTC(Ve, se,
|
|
2324
|
+
var Ye, dt = Ke || 0, ut = ze || 0, Te = Ae || 0, ct = Q || 0;
|
|
2325
|
+
return ue ? new Date(Date.UTC(Ve, se, Le, dt, ut, Te, ct + 60 * ue.offset * 1e3)) : H ? new Date(Date.UTC(Ve, se, Le, dt, ut, Te, ct)) : (Ye = new Date(Ve, se, Le, dt, ut, Te, ct), ce && (Ye = G(Ye).week(ce).toDate()), Ye);
|
|
2326
2326
|
} catch {
|
|
2327
2327
|
return /* @__PURE__ */ new Date("");
|
|
2328
2328
|
}
|
|
@@ -2343,16 +2343,16 @@ var Xu = { exports: {} };
|
|
|
2343
2343
|
})(Xu);
|
|
2344
2344
|
var Vp = Xu.exports;
|
|
2345
2345
|
const Au = /* @__PURE__ */ mo(Vp);
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
const ps = ".000000Z", Ur = "YYYY-MM-DDTHH:mm:ss", fo = "1970-01-01T00:00:00.000000Z", po = "2100-01-01T00:00:00.000000Z", GS = () =>
|
|
2346
|
+
$e.extend(Yu);
|
|
2347
|
+
$e.extend(Au);
|
|
2348
|
+
const ps = ".000000Z", Ur = "YYYY-MM-DDTHH:mm:ss", fo = "1970-01-01T00:00:00.000000Z", po = "2100-01-01T00:00:00.000000Z", GS = () => $e().utc().toDate(), ZS = (a) => $e(a).toDate(), JS = () => ui($e().utc().unix()), Nt = (a = !0, t = !1) => a && !t ? $e().utc().format("YYYY-MM-DDTHH:mm:ss") + ps : a && t ? $e().utc().format("YYYY-MM-DDTHH:mm:00") + ps : !a && t ? $e().utc().format("YYYY-MM-DDTHH:mm:00.SSSSSS") + "Z" : $e().utc().format("YYYY-MM-DDTHH:mm:ss.SSSSSS") + "Z", QS = (a = 0) => a === 0 ? $e().startOf("day").utc().format(Ur) + ps : $e().add(a, "days").startOf("day").utc().format(Ur) + ps, eD = (a = 0) => a === 0 ? $e().endOf("day").utc().format(Ur) + ps : $e().add(a, "days").endOf("day").utc().format(Ur) + ps, tD = (a = 0, t = null) => (t === null && (t = /* @__PURE__ */ new Date()), a === 0 ? t : a > 0 ? $e(t).add(a, "minutes").toDate() : a < 0 ? $e(t).subtract(Math.abs(a), "minutes").toDate() : t), aD = (a) => $e(a).utc().format("YYYY-MM-DDTHH:mm:ss") + ps, sD = () => $e().utc().format("YYYY"), Ts = (a, t = "") => a === po || a === fo || a === "" || te(a) || L(a) ? t : $e(a).format("DD.MM.YYYY HH:mm"), iD = (a, t = "") => {
|
|
2349
2349
|
if (a === po || a === fo || a === "" || te(a) || L(a))
|
|
2350
2350
|
return t;
|
|
2351
2351
|
let e = !0, s = !0;
|
|
2352
|
-
const i =
|
|
2353
|
-
return r.format("YYYY") === i.format("YYYY") && (e = !1), r.format("YYYY-MM-DD") === i.format("YYYY-MM-DD") && (s = !1), !e && !s ?
|
|
2354
|
-
}, rD = (a, t = "") => a === po || a === fo || a === "" || te(a) || L(a) ? t :
|
|
2355
|
-
const s =
|
|
2352
|
+
const i = $e(a), r = $e();
|
|
2353
|
+
return r.format("YYYY") === i.format("YYYY") && (e = !1), r.format("YYYY-MM-DD") === i.format("YYYY-MM-DD") && (s = !1), !e && !s ? $e(i).format("H:mm") : e ? $e(i).format("D.M.YYYY H:mm") : $e(i).format("D.M. H:mm");
|
|
2354
|
+
}, rD = (a, t = "") => a === po || a === fo || a === "" || te(a) || L(a) ? t : $e(a).format("DD.MM.YYYY"), oD = (a, t = "") => a === po || a === fo || a === "" || te(a) || L(a) ? t : $e(a).format("HH:mm"), nD = (a, t, e = "ms") => {
|
|
2355
|
+
const s = $e(a), i = $e(t);
|
|
2356
2356
|
return s.diff(i, e);
|
|
2357
2357
|
}, vp = { class: "d-flex align-center" }, hp = {
|
|
2358
2358
|
key: 0,
|
|
@@ -2368,7 +2368,7 @@ const ps = ".000000Z", Ur = "YYYY-MM-DDTHH:mm:ss", fo = "1970-01-01T00:00:00.000
|
|
|
2368
2368
|
hideModifiedAt: { type: Boolean, default: !1 }
|
|
2369
2369
|
},
|
|
2370
2370
|
setup(a) {
|
|
2371
|
-
const t = a, e = S(() =>
|
|
2371
|
+
const t = a, e = S(() => Ts(t.data.createdAt)), s = S(() => Ts(t.data.modifiedAt)), { t: i } = ee();
|
|
2372
2372
|
return (r, o) => (F(), O(Fe, null, [
|
|
2373
2373
|
m(Qe, {
|
|
2374
2374
|
title: p(i)("common.model.tracking.created")
|
|
@@ -2393,7 +2393,7 @@ const ps = ".000000Z", Ur = "YYYY-MM-DDTHH:mm:ss", fo = "1970-01-01T00:00:00.000
|
|
|
2393
2393
|
], 64));
|
|
2394
2394
|
}
|
|
2395
2395
|
});
|
|
2396
|
-
function
|
|
2396
|
+
function Bs(a, t) {
|
|
2397
2397
|
return (e = {}) => {
|
|
2398
2398
|
const s = L(e.variant) ? "eq" : e.variant;
|
|
2399
2399
|
let i = L(e.default) ? null : e.default;
|
|
@@ -3076,14 +3076,14 @@ const Ip = /* @__PURE__ */ W({
|
|
|
3076
3076
|
);
|
|
3077
3077
|
}), (i, r) => e.value ? de(i.$slots, "default", { key: 0 }) : j("", !0);
|
|
3078
3078
|
}
|
|
3079
|
-
}),
|
|
3079
|
+
}), si = /* @__PURE__ */ W({
|
|
3080
3080
|
__name: "ADatetime",
|
|
3081
3081
|
props: {
|
|
3082
3082
|
dateTime: {},
|
|
3083
3083
|
edgeDateValue: { default: "n/a" }
|
|
3084
3084
|
},
|
|
3085
3085
|
setup(a) {
|
|
3086
|
-
const t = a, e = S(() =>
|
|
3086
|
+
const t = a, e = S(() => Ts(t.dateTime, t.edgeDateValue));
|
|
3087
3087
|
return (s, i) => _(e.value);
|
|
3088
3088
|
}
|
|
3089
3089
|
}), { t: _p } = De.global;
|
|
@@ -3210,7 +3210,7 @@ function aV() {
|
|
|
3210
3210
|
messagePath: (s) => `error.jsValidation.datesCompare.${s.$params.variant}`
|
|
3211
3211
|
});
|
|
3212
3212
|
}
|
|
3213
|
-
function
|
|
3213
|
+
function Ps() {
|
|
3214
3214
|
return {
|
|
3215
3215
|
required: Np(),
|
|
3216
3216
|
requiredIf: Hp(),
|
|
@@ -3361,8 +3361,8 @@ const sV = { class: "a-datetime-picker-time" }, iV = { class: "a-datetime-picker
|
|
|
3361
3361
|
emits: ["blur", "focus", "update:modelValue", "onOpen", "onClose"],
|
|
3362
3362
|
setup(a, { emit: t }) {
|
|
3363
3363
|
const e = a, s = t;
|
|
3364
|
-
|
|
3365
|
-
const i = K(!1), r = K(0), o = K(0), l = K(null), n = K(""), d = K(null), c = K(null), u = K(null), { t: f } = ee(), q = S(() => e.type === "datetime" ? "dd.mm.yyyy hh:mm" : "dd.mm.yyyy"), { requiredIf: v } =
|
|
3364
|
+
$e.extend(Yu), $e.extend(Au);
|
|
3365
|
+
const i = K(!1), r = K(0), o = K(0), l = K(null), n = K(""), d = K(null), c = K(null), u = K(null), { t: f } = ee(), q = S(() => e.type === "datetime" ? "dd.mm.yyyy hh:mm" : "dd.mm.yyyy"), { requiredIf: v } = Ps(), h = S(() => ({
|
|
3366
3366
|
textFieldValue: {
|
|
3367
3367
|
required: v(e.required)
|
|
3368
3368
|
}
|
|
@@ -3377,7 +3377,7 @@ const sV = { class: "a-datetime-picker-time" }, iV = { class: "a-datetime-picker
|
|
|
3377
3377
|
u.value = null;
|
|
3378
3378
|
return;
|
|
3379
3379
|
}
|
|
3380
|
-
u.value =
|
|
3380
|
+
u.value = $e(M, "YYYY-MM-DDTHH:mm:ss.SSSSSSZ").millisecond(0);
|
|
3381
3381
|
}
|
|
3382
3382
|
},
|
|
3383
3383
|
{ immediate: !0 }
|
|
@@ -3385,7 +3385,7 @@ const sV = { class: "a-datetime-picker-time" }, iV = { class: "a-datetime-picker
|
|
|
3385
3385
|
const C = (M, D) => te(M) ? D : D.set("date", M.getDate()).set("month", M.getMonth()).set("year", M.getFullYear()), X = (M, D) => te(M) ? D : D.set("hour", M.hours).set("minute", M.minutes);
|
|
3386
3386
|
qe([c, d], ([M, D]) => {
|
|
3387
3387
|
let $ = null;
|
|
3388
|
-
te(u.value) ? te(e.modelValue) ? $ =
|
|
3388
|
+
te(u.value) ? te(e.modelValue) ? $ = $e().hour(0).minute(0).second(0).millisecond(0) : $ = $e(e.modelValue, "YYYY-MM-DDTHH:mm:ss.SSSSSSZ") : $ = u.value, $ = X(M, $), $ = C(D, $), !$.isSame(vt(u.value)) && (u.value = $);
|
|
3389
3389
|
}), qe(
|
|
3390
3390
|
u,
|
|
3391
3391
|
(M) => {
|
|
@@ -3412,11 +3412,11 @@ const sV = { class: "a-datetime-picker-time" }, iV = { class: "a-datetime-picker
|
|
|
3412
3412
|
u.value = null, s("blur");
|
|
3413
3413
|
return;
|
|
3414
3414
|
}
|
|
3415
|
-
const D =
|
|
3415
|
+
const D = $e(M, ["DD.MM.YYYY HH:mm", "DD.MM.YYYY"]);
|
|
3416
3416
|
if (D.isValid()) {
|
|
3417
3417
|
let $ = 0;
|
|
3418
3418
|
if (!te(e.modelValue)) {
|
|
3419
|
-
const x =
|
|
3419
|
+
const x = $e(e.modelValue, "YYYY-MM-DDTHH:mm:ss.SSSSSSZ");
|
|
3420
3420
|
x.isValid() && ($ = x.second());
|
|
3421
3421
|
}
|
|
3422
3422
|
u.value = D.second($), g.value.textFieldValue.$touch(), s("blur");
|
|
@@ -3428,11 +3428,11 @@ const sV = { class: "a-datetime-picker-time" }, iV = { class: "a-datetime-picker
|
|
|
3428
3428
|
u.value = null, d.value = null, c.value = null;
|
|
3429
3429
|
return;
|
|
3430
3430
|
}
|
|
3431
|
-
u.value =
|
|
3431
|
+
u.value = $e(e.defaultValue, "YYYY-MM-DDTHH:mm:ss.SSSSSSZ");
|
|
3432
3432
|
}, N = () => {
|
|
3433
3433
|
s("focus");
|
|
3434
3434
|
}, R = () => {
|
|
3435
|
-
u.value =
|
|
3435
|
+
u.value = $e().second(0).millisecond(0), Jt(() => {
|
|
3436
3436
|
r.value++, o.value++;
|
|
3437
3437
|
});
|
|
3438
3438
|
};
|
|
@@ -3769,7 +3769,7 @@ const sV = { class: "a-datetime-picker-time" }, iV = { class: "a-datetime-picker
|
|
|
3769
3769
|
}, null, 8, ["modelValue", "data-cy", "clearable", "default-value", "label"]));
|
|
3770
3770
|
}
|
|
3771
3771
|
});
|
|
3772
|
-
function
|
|
3772
|
+
function Rs(a = "id") {
|
|
3773
3773
|
return ea({
|
|
3774
3774
|
sortBy: a,
|
|
3775
3775
|
descending: !0,
|
|
@@ -3847,8 +3847,8 @@ const vV = {
|
|
|
3847
3847
|
} = hs(e.collab.room, e.collab.field);
|
|
3848
3848
|
d.value = Q, c.value = ue, u.value = ce, qe(
|
|
3849
3849
|
we,
|
|
3850
|
-
(
|
|
3851
|
-
f.value =
|
|
3850
|
+
(Le) => {
|
|
3851
|
+
f.value = Le;
|
|
3852
3852
|
},
|
|
3853
3853
|
{ immediate: !0 }
|
|
3854
3854
|
);
|
|
@@ -3868,7 +3868,7 @@ const vV = {
|
|
|
3868
3868
|
}), P = S(() => {
|
|
3869
3869
|
var Q, ue;
|
|
3870
3870
|
return he(e.required) ? e.required : ((Q = e.v) == null ? void 0 : Q.required) && ((ue = e.v) == null ? void 0 : ue.required.$params.type) === "required";
|
|
3871
|
-
}), N = S(() => he(e.disabled) ? e.disabled : !!f.value), R = S(() => e.multiple !== !1), M =
|
|
3871
|
+
}), N = S(() => he(e.disabled) ? e.disabled : !!f.value), R = S(() => e.multiple !== !1), M = Rs(e.filterSortBy), D = K([]), $ = K([]), x = S(() => {
|
|
3872
3872
|
const Q = /* @__PURE__ */ new Map();
|
|
3873
3873
|
return $.value.forEach((ue) => {
|
|
3874
3874
|
Q.set(ue.value, { value: ue.value, title: ue.title, subtitle: ue.subtitle });
|
|
@@ -3919,10 +3919,10 @@ const vV = {
|
|
|
3919
3919
|
), qe(q, (Q, ue) => {
|
|
3920
3920
|
Q !== ue && s("searchChange", Q);
|
|
3921
3921
|
});
|
|
3922
|
-
const
|
|
3922
|
+
const ze = (Q) => {
|
|
3923
3923
|
if (Ge(Q))
|
|
3924
3924
|
return Q.map((ce) => {
|
|
3925
|
-
const we = x.value.find((
|
|
3925
|
+
const we = x.value.find((Le) => Le.value === ce);
|
|
3926
3926
|
return we || { title: `${ce}`, value: ce };
|
|
3927
3927
|
});
|
|
3928
3928
|
const ue = x.value.find((ce) => ce.value === Q);
|
|
@@ -3940,18 +3940,18 @@ const vV = {
|
|
|
3940
3940
|
return;
|
|
3941
3941
|
}
|
|
3942
3942
|
if (await B(Q)) {
|
|
3943
|
-
const
|
|
3944
|
-
r.value =
|
|
3943
|
+
const Le = ze(Q);
|
|
3944
|
+
r.value = Le, o.value = Le;
|
|
3945
3945
|
return;
|
|
3946
3946
|
}
|
|
3947
3947
|
if (Ge(Q)) {
|
|
3948
3948
|
I.value = !0, $.value = await e.fetchItemsByIds(Q);
|
|
3949
|
-
const
|
|
3950
|
-
r.value =
|
|
3949
|
+
const Le = ze(Q);
|
|
3950
|
+
r.value = Le, o.value = Le, I.value = !1;
|
|
3951
3951
|
return;
|
|
3952
3952
|
}
|
|
3953
3953
|
I.value = !0, $.value = await e.fetchItemsByIds([Q]);
|
|
3954
|
-
const we =
|
|
3954
|
+
const we = ze(Q);
|
|
3955
3955
|
r.value = we, o.value = we, I.value = !1;
|
|
3956
3956
|
},
|
|
3957
3957
|
{ immediate: !0 }
|
|
@@ -4387,7 +4387,7 @@ const vV = {
|
|
|
4387
4387
|
}
|
|
4388
4388
|
}), r = K(""), o = K(!1), l = K(void 0), n = K(0), { t: d } = ee(), { innerFilter: c } = mi(e), u = () => {
|
|
4389
4389
|
o.value = !0;
|
|
4390
|
-
}, f = S(() => e.modelValue.titleT ? d(e.modelValue.titleT) : void 0), q = S(() => e.modelValue.multiple !== !1), v =
|
|
4390
|
+
}, f = S(() => e.modelValue.titleT ? d(e.modelValue.titleT) : void 0), q = S(() => e.modelValue.multiple !== !1), v = Rs(e.filterSortBy), h = K([]), g = K([]), w = S(() => {
|
|
4391
4391
|
const I = /* @__PURE__ */ new Map();
|
|
4392
4392
|
return g.value.forEach((k) => {
|
|
4393
4393
|
I.set(k.value, { value: k.value, title: k.title, subtitle: k.subtitle });
|
|
@@ -4566,37 +4566,37 @@ const vV = {
|
|
|
4566
4566
|
items: l.value
|
|
4567
4567
|
}, null, 8, ["modelValue", "data-cy", "label", "items"]));
|
|
4568
4568
|
}
|
|
4569
|
-
}),
|
|
4569
|
+
}), Ws = {
|
|
4570
4570
|
Waiting: "waiting",
|
|
4571
4571
|
Processing: "processing",
|
|
4572
4572
|
AwaitingBatchProcess: "awaiting_batch_process",
|
|
4573
4573
|
Done: "done",
|
|
4574
4574
|
Error: "error"
|
|
4575
|
-
}, xV =
|
|
4575
|
+
}, xV = Ws.Waiting;
|
|
4576
4576
|
function wV() {
|
|
4577
4577
|
const { t: a } = ee(), t = K([
|
|
4578
4578
|
{
|
|
4579
|
-
value:
|
|
4579
|
+
value: Ws.Waiting,
|
|
4580
4580
|
title: a("common.job.status.waiting"),
|
|
4581
4581
|
color: "warning"
|
|
4582
4582
|
},
|
|
4583
4583
|
{
|
|
4584
|
-
value:
|
|
4584
|
+
value: Ws.Processing,
|
|
4585
4585
|
title: a("common.job.status.processing"),
|
|
4586
4586
|
color: "primary"
|
|
4587
4587
|
},
|
|
4588
4588
|
{
|
|
4589
|
-
value:
|
|
4589
|
+
value: Ws.AwaitingBatchProcess,
|
|
4590
4590
|
title: a("common.job.status.awaitingBatchProcess"),
|
|
4591
4591
|
color: "primary"
|
|
4592
4592
|
},
|
|
4593
4593
|
{
|
|
4594
|
-
value:
|
|
4594
|
+
value: Ws.Done,
|
|
4595
4595
|
title: a("common.job.status.done"),
|
|
4596
4596
|
color: "success"
|
|
4597
4597
|
},
|
|
4598
4598
|
{
|
|
4599
|
-
value:
|
|
4599
|
+
value: Ws.Error,
|
|
4600
4600
|
title: a("common.job.status.error"),
|
|
4601
4601
|
color: "error"
|
|
4602
4602
|
}
|
|
@@ -4960,7 +4960,7 @@ function RV(a, t = !1, e = void 0, s = void 0, i = !1) {
|
|
|
4960
4960
|
me.room === a && he(P.value) && P.value(me.userId, me.timestamp);
|
|
4961
4961
|
}, Ke = (me) => {
|
|
4962
4962
|
me.room === a && he(M.value) && M.value();
|
|
4963
|
-
},
|
|
4963
|
+
}, ze = (me) => {
|
|
4964
4964
|
me.room === a && he(x.value) && x.value();
|
|
4965
4965
|
}, Ae = (me) => {
|
|
4966
4966
|
me.room === a && he(b.value) && b.value();
|
|
@@ -4972,7 +4972,7 @@ function RV(a, t = !1, e = void 0, s = void 0, i = !1) {
|
|
|
4972
4972
|
w.value = me, g.value = h.on(ae);
|
|
4973
4973
|
}, we = (me) => {
|
|
4974
4974
|
X.value = me, C.value = Y.on(fe);
|
|
4975
|
-
},
|
|
4975
|
+
}, Le = (me) => {
|
|
4976
4976
|
P.value = me, y.value = A.on(
|
|
4977
4977
|
pe
|
|
4978
4978
|
);
|
|
@@ -4982,7 +4982,7 @@ function RV(a, t = !1, e = void 0, s = void 0, i = !1) {
|
|
|
4982
4982
|
);
|
|
4983
4983
|
}, se = (me) => {
|
|
4984
4984
|
x.value = me, $.value = D.on(
|
|
4985
|
-
|
|
4985
|
+
ze
|
|
4986
4986
|
);
|
|
4987
4987
|
}, Ye = (me) => {
|
|
4988
4988
|
u.value = me, c.value = d.on(G);
|
|
@@ -5005,12 +5005,12 @@ function RV(a, t = !1, e = void 0, s = void 0, i = !1) {
|
|
|
5005
5005
|
}, Vt = async (me = {}) => new Promise((Ht, Et) => {
|
|
5006
5006
|
var $a;
|
|
5007
5007
|
if (!Te.value.enabled || L(r.value)) return Et(Yn.Failed);
|
|
5008
|
-
($a = r.value) == null || $a.timeout(5e3).emit("joinCollabRoom", a, me, (va,
|
|
5008
|
+
($a = r.value) == null || $a.timeout(5e3).emit("joinCollabRoom", a, me, (va, Us) => va ? void Et(Yn.Failed) : Dl(Us) ? (o.set(a, Us.room), void Ht(Us.status)) : void Et(Us.status));
|
|
5009
5009
|
}), Ma = () => {
|
|
5010
5010
|
!Te.value.enabled || L(r.value) || r.value.emit("leaveCollabRoom", a, (me) => {
|
|
5011
5011
|
Dl(me) && o.set(a, me.room);
|
|
5012
5012
|
});
|
|
5013
|
-
},
|
|
5013
|
+
}, Ls = () => {
|
|
5014
5014
|
var me;
|
|
5015
5015
|
!Te.value.enabled || L(r.value) || (me = r.value) == null || me.emit("enteredCollabRoom", a);
|
|
5016
5016
|
}, Yi = () => new Promise((me, Ht) => {
|
|
@@ -5045,9 +5045,9 @@ function RV(a, t = !1, e = void 0, s = void 0, i = !1) {
|
|
|
5045
5045
|
return new Promise((Et) => {
|
|
5046
5046
|
var $a;
|
|
5047
5047
|
if (!Te.value.enabled || L(r.value)) return Et(Ht);
|
|
5048
|
-
($a = r.value) == null || $a.timeout(500).emit("fetchRoomsInfo", [me], (va,
|
|
5048
|
+
($a = r.value) == null || $a.timeout(500).emit("fetchRoomsInfo", [me], (va, Us) => {
|
|
5049
5049
|
if (va) return void Et(Ht);
|
|
5050
|
-
const To =
|
|
5050
|
+
const To = Us[me];
|
|
5051
5051
|
return L(To) && Et(Ht), L(e) || e(To.users), L(s) || s(), Et(To);
|
|
5052
5052
|
});
|
|
5053
5053
|
});
|
|
@@ -5075,10 +5075,10 @@ function RV(a, t = !1, e = void 0, s = void 0, i = !1) {
|
|
|
5075
5075
|
requestToTakeModeration: le,
|
|
5076
5076
|
approveRequestToTakeModeration: ke,
|
|
5077
5077
|
rejectRequestToTakeModeration: At,
|
|
5078
|
-
addRequestToTakeModerationListener:
|
|
5078
|
+
addRequestToTakeModerationListener: Le,
|
|
5079
5079
|
addApprovedRequestToTakeModerationListener: Ve,
|
|
5080
5080
|
addRejectedRequestToTakeModerationListener: se,
|
|
5081
|
-
enteredCollabRoom:
|
|
5081
|
+
enteredCollabRoom: Ls,
|
|
5082
5082
|
kickUserFromRoom: pa,
|
|
5083
5083
|
transferModeration: Ne,
|
|
5084
5084
|
addKickedFromRoomListener: dt,
|
|
@@ -5164,7 +5164,7 @@ const OV = { class: "ml-3" }, zV = { class: "ml-1" }, wD = /* @__PURE__ */ W({
|
|
|
5164
5164
|
}), y.value = y.value.filter(
|
|
5165
5165
|
(se) => !P.value.includes(se.userId)
|
|
5166
5166
|
), P.value = [];
|
|
5167
|
-
},
|
|
5167
|
+
}, ze = () => {
|
|
5168
5168
|
P.value.forEach((se) => {
|
|
5169
5169
|
o(se);
|
|
5170
5170
|
}), y.value = y.value.filter(
|
|
@@ -5180,11 +5180,11 @@ const OV = { class: "ml-3" }, zV = { class: "ml-1" }, wD = /* @__PURE__ */ W({
|
|
|
5180
5180
|
g(se), R.value = !1;
|
|
5181
5181
|
}, we = (se) => {
|
|
5182
5182
|
h(se), R.value = !1;
|
|
5183
|
-
},
|
|
5183
|
+
}, Le = () => {
|
|
5184
5184
|
h(A.value ?? 0);
|
|
5185
5185
|
}, Ve = (se) => Math.ceil((6e4 - ((/* @__PURE__ */ new Date()).getTime() - se)) / 1e3);
|
|
5186
5186
|
return (se, Ye) => {
|
|
5187
|
-
const dt =
|
|
5187
|
+
const dt = Be("ABtnSecondary"), ut = Be("ABtnIcon"), Te = Be("ABtnTertiary"), ct = Be("ABtnPrimary");
|
|
5188
5188
|
return F(), O("div", null, [
|
|
5189
5189
|
z(_(p(Y)("common.collab.moderator")) + ": ", 1),
|
|
5190
5190
|
p(e).moderator ? (F(), E(Zt, {
|
|
@@ -5307,7 +5307,7 @@ const OV = { class: "ml-3" }, zV = { class: "ml-1" }, wD = /* @__PURE__ */ W({
|
|
|
5307
5307
|
m(nt),
|
|
5308
5308
|
m(Te, {
|
|
5309
5309
|
disabled: !P.value.length,
|
|
5310
|
-
onClick:
|
|
5310
|
+
onClick: ze
|
|
5311
5311
|
}, {
|
|
5312
5312
|
default: V(() => [
|
|
5313
5313
|
z(_(p(Y)("common.collab.button.reject")), 1)
|
|
@@ -5430,7 +5430,7 @@ const OV = { class: "ml-3" }, zV = { class: "ml-1" }, wD = /* @__PURE__ */ W({
|
|
|
5430
5430
|
B.value ? (F(), E(Te, {
|
|
5431
5431
|
key: 6,
|
|
5432
5432
|
size: "small",
|
|
5433
|
-
onClick:
|
|
5433
|
+
onClick: Le
|
|
5434
5434
|
}, {
|
|
5435
5435
|
default: V(() => [
|
|
5436
5436
|
z(_(p(Y)("common.collab.button.kickYourself")), 1)
|
|
@@ -5521,7 +5521,7 @@ const OV = { class: "ml-3" }, zV = { class: "ml-1" }, wD = /* @__PURE__ */ W({
|
|
|
5521
5521
|
]),
|
|
5522
5522
|
_: 1
|
|
5523
5523
|
}),
|
|
5524
|
-
m(
|
|
5524
|
+
m(Ms, null, {
|
|
5525
5525
|
default: V(() => [
|
|
5526
5526
|
z(_(p(Y)("common.collab.occupiedEntityText")), 1)
|
|
5527
5527
|
]),
|
|
@@ -5593,7 +5593,7 @@ const OV = { class: "ml-3" }, zV = { class: "ml-1" }, wD = /* @__PURE__ */ W({
|
|
|
5593
5593
|
title: p(t)("common.model.tracking.created")
|
|
5594
5594
|
}, {
|
|
5595
5595
|
default: V(() => [
|
|
5596
|
-
m(
|
|
5596
|
+
m(si, {
|
|
5597
5597
|
"date-time": e.data.createdAt
|
|
5598
5598
|
}, null, 8, ["date-time"])
|
|
5599
5599
|
]),
|
|
@@ -5604,7 +5604,7 @@ const OV = { class: "ml-3" }, zV = { class: "ml-1" }, wD = /* @__PURE__ */ W({
|
|
|
5604
5604
|
title: p(t)("common.model.tracking.modified")
|
|
5605
5605
|
}, {
|
|
5606
5606
|
default: V(() => [
|
|
5607
|
-
m(
|
|
5607
|
+
m(si, {
|
|
5608
5608
|
"date-time": e.data.modifiedAt
|
|
5609
5609
|
}, null, 8, ["date-time"])
|
|
5610
5610
|
]),
|
|
@@ -5760,7 +5760,7 @@ const OV = { class: "ml-3" }, zV = { class: "ml-1" }, wD = /* @__PURE__ */ W({
|
|
|
5760
5760
|
}
|
|
5761
5761
|
});
|
|
5762
5762
|
return (f, q) => {
|
|
5763
|
-
const v =
|
|
5763
|
+
const v = Be("ABtnTertiary"), h = Be("ABtnPrimary");
|
|
5764
5764
|
return F(), O(Fe, null, [
|
|
5765
5765
|
f.variant === "icon" ? (F(), E(ie, {
|
|
5766
5766
|
key: 0,
|
|
@@ -6284,21 +6284,21 @@ const OV = { class: "ml-3" }, zV = { class: "ml-1" }, wD = /* @__PURE__ */ W({
|
|
|
6284
6284
|
Light: "light",
|
|
6285
6285
|
Dark: "dark",
|
|
6286
6286
|
Auto: "auto"
|
|
6287
|
-
},
|
|
6287
|
+
}, Zs = {
|
|
6288
6288
|
Light: "light",
|
|
6289
6289
|
Dark: "dark"
|
|
6290
6290
|
}, Cn = Rd("theme", Pt.Light), Su = "(prefers-color-scheme: dark)", jr = K(
|
|
6291
6291
|
Object.values(Pt).some((a) => a === Cn.value) ? Cn.value : Pt.Light
|
|
6292
|
-
), Ti = K(
|
|
6292
|
+
), Ti = K(Zs.Light), Du = K(window.matchMedia && window.matchMedia(Su).matches), Ei = () => {
|
|
6293
6293
|
switch (jr.value) {
|
|
6294
6294
|
case Pt.Auto:
|
|
6295
|
-
Ti.value = Du.value ?
|
|
6295
|
+
Ti.value = Du.value ? Zs.Dark : Zs.Light;
|
|
6296
6296
|
break;
|
|
6297
6297
|
case Pt.Light:
|
|
6298
|
-
Ti.value =
|
|
6298
|
+
Ti.value = Zs.Light;
|
|
6299
6299
|
break;
|
|
6300
6300
|
case Pt.Dark:
|
|
6301
|
-
Ti.value =
|
|
6301
|
+
Ti.value = Zs.Dark;
|
|
6302
6302
|
break;
|
|
6303
6303
|
}
|
|
6304
6304
|
};
|
|
@@ -6309,7 +6309,7 @@ const zo = (a) => {
|
|
|
6309
6309
|
window.matchMedia(Su).addEventListener("change", (a) => {
|
|
6310
6310
|
Du.value = a.matches, Ei();
|
|
6311
6311
|
});
|
|
6312
|
-
const UV = S(() => Ti.value ===
|
|
6312
|
+
const UV = S(() => Ti.value === Zs.Light ? "white" : "#1A1A1A");
|
|
6313
6313
|
function er() {
|
|
6314
6314
|
const a = () => {
|
|
6315
6315
|
zo(Pt.Auto), Ei();
|
|
@@ -6894,7 +6894,7 @@ const uv = { class: "text-center w-100 text-caption pb-1" }, PD = /* @__PURE__ *
|
|
|
6894
6894
|
]),
|
|
6895
6895
|
_: 1
|
|
6896
6896
|
}),
|
|
6897
|
-
m(
|
|
6897
|
+
m(Ms, null, {
|
|
6898
6898
|
default: V(() => [
|
|
6899
6899
|
z(_(p(t)("common.system.currentUser.logoutText")), 1)
|
|
6900
6900
|
]),
|
|
@@ -6998,7 +6998,7 @@ const uv = { class: "text-center w-100 text-caption pb-1" }, PD = /* @__PURE__ *
|
|
|
6998
6998
|
set(D) {
|
|
6999
6999
|
s("update:modelValue", ye(D));
|
|
7000
7000
|
}
|
|
7001
|
-
}), { t: f } = ee(), q = at(_a, void 0), v = at(Sa, void 0), h = K(!1), { innerFilter: g } = mi(e), w =
|
|
7001
|
+
}), { t: f } = ee(), q = at(_a, void 0), v = at(Sa, void 0), h = K(!1), { innerFilter: g } = mi(e), w = Rs(e.filterSortBy), Y = () => {
|
|
7002
7002
|
h.value = !0, s("focus", u.value);
|
|
7003
7003
|
}, C = () => {
|
|
7004
7004
|
var D;
|
|
@@ -7308,7 +7308,7 @@ const uv = { class: "text-center w-100 text-caption pb-1" }, PD = /* @__PURE__ *
|
|
|
7308
7308
|
title: p(t)("common.job.model.scheduledAt")
|
|
7309
7309
|
}, {
|
|
7310
7310
|
default: V(() => [
|
|
7311
|
-
m(
|
|
7311
|
+
m(si, {
|
|
7312
7312
|
"date-time": e.job.scheduledAt
|
|
7313
7313
|
}, null, 8, ["date-time"])
|
|
7314
7314
|
]),
|
|
@@ -7318,7 +7318,7 @@ const uv = { class: "text-center w-100 text-caption pb-1" }, PD = /* @__PURE__ *
|
|
|
7318
7318
|
title: p(t)("common.job.model.startedAt")
|
|
7319
7319
|
}, {
|
|
7320
7320
|
default: V(() => [
|
|
7321
|
-
m(
|
|
7321
|
+
m(si, {
|
|
7322
7322
|
"date-time": e.job.startedAt
|
|
7323
7323
|
}, null, 8, ["date-time"])
|
|
7324
7324
|
]),
|
|
@@ -7328,7 +7328,7 @@ const uv = { class: "text-center w-100 text-caption pb-1" }, PD = /* @__PURE__ *
|
|
|
7328
7328
|
title: p(t)("common.job.model.finishedAt")
|
|
7329
7329
|
}, {
|
|
7330
7330
|
default: V(() => [
|
|
7331
|
-
m(
|
|
7331
|
+
m(si, {
|
|
7332
7332
|
"date-time": e.job.finishedAt
|
|
7333
7333
|
}, null, 8, ["date-time"])
|
|
7334
7334
|
]),
|
|
@@ -7377,7 +7377,7 @@ const uv = { class: "text-center w-100 text-caption pb-1" }, PD = /* @__PURE__ *
|
|
|
7377
7377
|
})
|
|
7378
7378
|
], 64));
|
|
7379
7379
|
}
|
|
7380
|
-
}), _e =
|
|
7380
|
+
}), _e = Bs("common", "assetSelect"), Iv = ea({
|
|
7381
7381
|
_elastic: {
|
|
7382
7382
|
..._e({ exclude: !0 })
|
|
7383
7383
|
},
|
|
@@ -7742,15 +7742,15 @@ const Mu = (a) => Qi(a) && Object.hasOwn(a, "totalCount"), $u = (a) => Qi(a) &&
|
|
|
7742
7742
|
a,
|
|
7743
7743
|
Bu + "/ext-system/:extSystem/type/:assetType/element?order[position]=asc&limit=100",
|
|
7744
7744
|
{ extSystem: t, assetType: e },
|
|
7745
|
-
|
|
7745
|
+
Oe,
|
|
7746
7746
|
Pu
|
|
7747
7747
|
), Tv = (a, t) => jt(
|
|
7748
7748
|
a,
|
|
7749
7749
|
Bu + "/distribution-service/:distributionService/element?order[position]=asc&limit=100",
|
|
7750
7750
|
{ distributionService: t },
|
|
7751
|
-
|
|
7751
|
+
Oe,
|
|
7752
7752
|
Pu
|
|
7753
|
-
), Ru = "/adm/v1/configuration", Ev = "/pub", Mv = Ev + "/v1/configuration", tl = "settings", $v = (a) => jt(a, Mv, {},
|
|
7753
|
+
), Ru = "/adm/v1/configuration", Ev = "/pub", Mv = Ev + "/v1/configuration", tl = "settings", $v = (a) => jt(a, Mv, {}, Oe, tl), Bv = (a) => jt(a, Ru, {}, Oe, tl), Pv = (a, t) => jt(t, Ru + "/ext-system/" + a, {}, Oe, tl), Rv = {
|
|
7754
7754
|
None: "none",
|
|
7755
7755
|
AtLeastOne: "at_least_one",
|
|
7756
7756
|
OneFromType: "one_from_type",
|
|
@@ -7787,7 +7787,7 @@ const Mu = (a) => Qi(a) && Object.hasOwn(a, "totalCount"), $u = (a) => Qi(a) &&
|
|
|
7787
7787
|
},
|
|
7788
7788
|
maxBulkItemCount: 0
|
|
7789
7789
|
}
|
|
7790
|
-
}),
|
|
7790
|
+
}), Os = Vi("commonAdminDamConfigStore", () => {
|
|
7791
7791
|
const a = ea({
|
|
7792
7792
|
damPubConfig: !1,
|
|
7793
7793
|
damPrvConfig: !1
|
|
@@ -7811,7 +7811,7 @@ const Mu = (a) => Qi(a) && Object.hasOwn(a, "totalCount"), $u = (a) => Qi(a) &&
|
|
|
7811
7811
|
};
|
|
7812
7812
|
});
|
|
7813
7813
|
function ia(a = void 0) {
|
|
7814
|
-
const t =
|
|
7814
|
+
const t = Os();
|
|
7815
7815
|
function e(Y) {
|
|
7816
7816
|
console.error(Y);
|
|
7817
7817
|
}
|
|
@@ -8009,22 +8009,22 @@ function ia(a = void 0) {
|
|
|
8009
8009
|
getDamConfigAssetCustomFormElements: h
|
|
8010
8010
|
};
|
|
8011
8011
|
}
|
|
8012
|
-
const hi = "/adm/v1/asset", Lo = 10, qo = "asset",
|
|
8012
|
+
const hi = "/adm/v1/asset", Lo = 10, qo = "asset", Oe = "coreDam", Hr = "dam", Uo = 25, Ll = (a, t, e, s) => Ja(
|
|
8013
8013
|
a,
|
|
8014
8014
|
hi + "/licence/:licenceId",
|
|
8015
8015
|
{ licenceId: t },
|
|
8016
8016
|
e,
|
|
8017
8017
|
s,
|
|
8018
|
-
|
|
8018
|
+
Oe,
|
|
8019
8019
|
qo
|
|
8020
|
-
), Pa = (a, t) => jt(a, hi + "/:id", { id: t },
|
|
8020
|
+
), Pa = (a, t) => jt(a, hi + "/:id", { id: t }, Oe, qo), Yo = (a, t) => jt(a, hi + "/asset-file/:id", { id: t }, Oe, qo), Wr = (a, t, e = void 0) => new Promise((s, i) => {
|
|
8021
8021
|
const r = Nv(t, e);
|
|
8022
8022
|
Uv(a, r).then((o) => {
|
|
8023
8023
|
if (r.length === 0)
|
|
8024
8024
|
return s([]);
|
|
8025
8025
|
if (o.length === 0)
|
|
8026
8026
|
return i(o);
|
|
8027
|
-
if (o.every((l) => l.status ===
|
|
8027
|
+
if (o.every((l) => l.status === $s)) {
|
|
8028
8028
|
const l = o.flatMap((n) => n.data);
|
|
8029
8029
|
return s(l);
|
|
8030
8030
|
} else
|
|
@@ -8046,7 +8046,7 @@ const Lv = (a, t, e) => new Promise((s, i) => {
|
|
|
8046
8046
|
return s([]);
|
|
8047
8047
|
if (r.length === 0)
|
|
8048
8048
|
i(r);
|
|
8049
|
-
else if (r.every((o) => o.status ===
|
|
8049
|
+
else if (r.every((o) => o.status === $s)) {
|
|
8050
8050
|
const o = [];
|
|
8051
8051
|
for (let l = 0; l < r.length; l++)
|
|
8052
8052
|
o.push(...r[l].data.data);
|
|
@@ -8107,9 +8107,9 @@ const { showUnknownError: jv, showApiValidationError: Hv } = We(), Wv = (a, t, e
|
|
|
8107
8107
|
mainFileSingleUse: s
|
|
8108
8108
|
};
|
|
8109
8109
|
a().patch(hi + "/metadata-bulk-update", JSON.stringify([o])).then((l) => {
|
|
8110
|
-
l.status ===
|
|
8111
|
-
}).catch((l) => Ha(l) ? r(new Da(l)) : Ka(l) ? (Wv(l, t.attributes.assetType, e), r(new Ta(l,
|
|
8112
|
-
}), Xi = _v(), Ys =
|
|
8110
|
+
l.status === $s ? i(l.data) : r();
|
|
8111
|
+
}).catch((l) => Ha(l) ? r(new Da(l)) : Ka(l) ? (Wv(l, t.attributes.assetType, e), r(new Ta(l, Oe, qo, l))) : Ga(l) ? r(new Ea(l, l)) : r(new wt(l)));
|
|
8112
|
+
}), Xi = _v(), Ys = Rs(), No = K(!1);
|
|
8113
8113
|
function gi(a = "default") {
|
|
8114
8114
|
const { damClient: t } = it(a), e = tr(), { selectedCount: s, selectedAssets: i, assetListItems: r, loader: o } = _t(e), { resetFilter: l } = vi(), { showErrorsDefault: n } = We(), d = async () => {
|
|
8115
8115
|
Ys.page = 1;
|
|
@@ -8329,7 +8329,7 @@ const Ss = "data:image/jpeg;base64,/9j/4QZGRXhpZgAATU0AKgAAAAgADAEAAAMAAAABCgAAA
|
|
|
8329
8329
|
]),
|
|
8330
8330
|
U("td", null, _(p(o).texts.displayTitle || p(i)("commonCoreDam.asset.list.noTitle")), 1),
|
|
8331
8331
|
U("td", null, [
|
|
8332
|
-
m(
|
|
8332
|
+
m(si, {
|
|
8333
8333
|
"date-time": p(o).createdAt
|
|
8334
8334
|
}, null, 8, ["date-time"])
|
|
8335
8335
|
]),
|
|
@@ -8587,23 +8587,23 @@ const ch = { class: "d-flex flex-column w-100 px-1 align-center" }, mh = { class
|
|
|
8587
8587
|
}), bh = (a, t) => {
|
|
8588
8588
|
const { querySetLimit: e, querySetOffset: s, querySetOrder: i, queryBuild: r, queryAddFilter: o, queryAdd: l } = Fo(), n = a.length;
|
|
8589
8589
|
return e(n), s(1, n), i("id", !1), t ? l("id", a.join(",")) : o("in", "id", a.join(",")), r();
|
|
8590
|
-
},
|
|
8590
|
+
}, zs = (a, t, e, s = {}, i, r, o = {}, l = !1) => new Promise((n, d) => {
|
|
8591
8591
|
a().get(gs(e, s) + bh(t, l), o).then((c) => {
|
|
8592
8592
|
var u;
|
|
8593
8593
|
return Fs(c.status) ? (u = c.data) != null && u.data ? n(c.data.data) : c.status === ja ? n(null) : d(new wt()) : d(new Wa(c.status));
|
|
8594
8594
|
}).catch((c) => Ha(c) ? d(new Da(c)) : Ka(c) ? d(new Ta(c, i, r, c)) : Ga(c) ? d(new Ea(c, c)) : d(new wt(c)));
|
|
8595
8595
|
}), Ao = (a, t = {}, e, s = {}, i, r, o = {}) => new Promise((l, n) => {
|
|
8596
8596
|
a().post(gs(e, s), JSON.stringify(t), o).then((d) => Fs(d.status) ? d.data ? l(d.data) : d.status === ja ? l(null) : n(new wt()) : n(new Wa(d.status))).catch((d) => Ha(d) ? n(new Da(d)) : Ka(d) ? n(new Ta(d, i, r, d)) : Ga(d) ? n(new Ea(d, d)) : n(new wt(d)));
|
|
8597
|
-
}), Nu = "/adm/v1/keyword", ju = Nu + "/ext-system/:extSystemId", ar = "keyword", Hu = (a, t, e) =>
|
|
8597
|
+
}), Nu = "/adm/v1/keyword", ju = Nu + "/ext-system/:extSystemId", ar = "keyword", Hu = (a, t, e) => zs(
|
|
8598
8598
|
a,
|
|
8599
8599
|
e,
|
|
8600
8600
|
ju + "/search",
|
|
8601
8601
|
{ extSystemId: t },
|
|
8602
|
-
|
|
8602
|
+
Oe,
|
|
8603
8603
|
ar,
|
|
8604
8604
|
{},
|
|
8605
8605
|
!0
|
|
8606
|
-
), Hl = (a, t, e, s) => Ja(a, ju, { extSystemId: t }, e, s,
|
|
8606
|
+
), Hl = (a, t, e, s) => Ja(a, ju, { extSystemId: t }, e, s, Oe, ar), Ch = (a, t) => Ao(a, t, Nu, {}, Oe, ar), Wu = (a) => {
|
|
8607
8607
|
const { damClient: t } = it(), { getDamConfigExtSystem: e } = ia(), s = e(a);
|
|
8608
8608
|
if (L(s))
|
|
8609
8609
|
throw new Error("Ext system must be initialised.");
|
|
@@ -8620,18 +8620,18 @@ const ch = { class: "d-flex flex-column w-100 px-1 align-center" }, mh = { class
|
|
|
8620
8620
|
fetchItemsByIds: async (u) => o(await Hu(t, a, u)),
|
|
8621
8621
|
fetchItemsMinimal: async (u, f) => l(await Hl(t, a, u, f))
|
|
8622
8622
|
};
|
|
8623
|
-
},
|
|
8623
|
+
}, Js = Bs(Oe, ar), xh = ea({
|
|
8624
8624
|
_elastic: {
|
|
8625
|
-
...
|
|
8625
|
+
...Js({ exclude: !0 })
|
|
8626
8626
|
},
|
|
8627
8627
|
id: {
|
|
8628
|
-
...
|
|
8628
|
+
...Js({ name: "id" })
|
|
8629
8629
|
},
|
|
8630
8630
|
text: {
|
|
8631
|
-
...
|
|
8631
|
+
...Js({ name: "text" })
|
|
8632
8632
|
},
|
|
8633
8633
|
reviewed: {
|
|
8634
|
-
...
|
|
8634
|
+
...Js({ name: "reviewed" })
|
|
8635
8635
|
}
|
|
8636
8636
|
});
|
|
8637
8637
|
function wh() {
|
|
@@ -8640,10 +8640,10 @@ function wh() {
|
|
|
8640
8640
|
function kh() {
|
|
8641
8641
|
return ea({
|
|
8642
8642
|
_elastic: {
|
|
8643
|
-
...
|
|
8643
|
+
...Js({ exclude: !0 })
|
|
8644
8644
|
},
|
|
8645
8645
|
text: {
|
|
8646
|
-
...
|
|
8646
|
+
...Js({ name: "text" })
|
|
8647
8647
|
}
|
|
8648
8648
|
});
|
|
8649
8649
|
}
|
|
@@ -8668,14 +8668,14 @@ const Ih = /* @__PURE__ */ W({
|
|
|
8668
8668
|
"filter-sort-by": null
|
|
8669
8669
|
}, null, 8, ["modelValue", "fetch-items", "fetch-items-by-ids", "inner-filter"]));
|
|
8670
8670
|
}
|
|
8671
|
-
}), Gu = "/adm/v1/author", Zu = Gu + "/ext-system/:extSystemId", yo = "author", Fi = (a, t, e) =>
|
|
8671
|
+
}), Gu = "/adm/v1/author", Zu = Gu + "/ext-system/:extSystemId", yo = "author", Fi = (a, t, e) => zs(
|
|
8672
8672
|
a,
|
|
8673
8673
|
e,
|
|
8674
8674
|
Zu + "/search",
|
|
8675
8675
|
{
|
|
8676
8676
|
extSystemId: t
|
|
8677
8677
|
},
|
|
8678
|
-
|
|
8678
|
+
Oe,
|
|
8679
8679
|
yo,
|
|
8680
8680
|
{},
|
|
8681
8681
|
!0
|
|
@@ -8687,9 +8687,9 @@ const Ih = /* @__PURE__ */ W({
|
|
|
8687
8687
|
},
|
|
8688
8688
|
e,
|
|
8689
8689
|
s,
|
|
8690
|
-
|
|
8690
|
+
Oe,
|
|
8691
8691
|
yo
|
|
8692
|
-
), _h = (a, t) => Ao(a, t, Gu, {},
|
|
8692
|
+
), _h = (a, t) => Ao(a, t, Gu, {}, Oe, yo), Ju = (a) => {
|
|
8693
8693
|
const { damClient: t } = it(), { getDamConfigExtSystem: e } = ia(), s = e(a);
|
|
8694
8694
|
if (L(s))
|
|
8695
8695
|
throw new Error("Ext system must be initialised.");
|
|
@@ -8708,7 +8708,7 @@ const Ih = /* @__PURE__ */ W({
|
|
|
8708
8708
|
fetchItemsByIds: async (u) => o(await Fi(t, a, u)),
|
|
8709
8709
|
fetchItemsMinimal: async (u, f) => l(await Wl(t, a, u, f))
|
|
8710
8710
|
};
|
|
8711
|
-
}, Gl =
|
|
8711
|
+
}, Gl = Bs(Oe, "author");
|
|
8712
8712
|
function Qu() {
|
|
8713
8713
|
return ea({
|
|
8714
8714
|
_elastic: {
|
|
@@ -8742,7 +8742,7 @@ const Sh = /* @__PURE__ */ W({
|
|
|
8742
8742
|
}
|
|
8743
8743
|
}), sl = (a, t = {}, e, s = {}, i, r, o = {}) => new Promise((l, n) => {
|
|
8744
8744
|
a().put(gs(e, s), JSON.stringify(t), o).then((d) => Fs(d.status) ? d.data ? l(d.data) : d.status === ja ? l(null) : n(new wt()) : n(new Wa(d.status))).catch((d) => Ha(d) ? n(new Da(d)) : Ka(d) ? n(new Ta(d, i, r, d)) : Ga(d) ? n(new Ea(d, d)) : n(new wt(d)));
|
|
8745
|
-
}), bo = "/adm/v1/user", Co = "user", Dh = (a, t) =>
|
|
8745
|
+
}), bo = "/adm/v1/user", Co = "user", Dh = (a, t) => zs(a, t, bo, {}, Oe, Co), Kh = (a, t, e) => Ja(a, bo, {}, t, e, Oe, Co), QD = (a, t, e) => sl(a, e, bo + "/:id", { id: t }, Oe, Co), eK = (a, t) => jt(a, bo + "/:id", { id: t }, Oe, Co), Th = (a) => {
|
|
8746
8746
|
const t = (r) => ({
|
|
8747
8747
|
title: r.person.fullName === "" ? r.email : r.person.fullName,
|
|
8748
8748
|
value: r.id
|
|
@@ -8752,7 +8752,7 @@ const Sh = /* @__PURE__ */ W({
|
|
|
8752
8752
|
fetchItems: async (r, o) => e(await Kh(a, r, o)),
|
|
8753
8753
|
fetchItemsByIds: async (r) => e(await Dh(a, r))
|
|
8754
8754
|
};
|
|
8755
|
-
}, Ai =
|
|
8755
|
+
}, Ai = Bs("dam", "user"), Eh = ea({
|
|
8756
8756
|
id: {
|
|
8757
8757
|
...Ai({ name: "id", default: null })
|
|
8758
8758
|
},
|
|
@@ -9162,7 +9162,7 @@ const Nh = {
|
|
|
9162
9162
|
}), t({
|
|
9163
9163
|
open: A
|
|
9164
9164
|
}), ($, x) => {
|
|
9165
|
-
const I =
|
|
9165
|
+
const I = Be("ABtnSecondary"), k = Be("ABtnPrimary");
|
|
9166
9166
|
return o.value ? (F(), O("div", Nh, [
|
|
9167
9167
|
m(tt, { indeterminate: "" })
|
|
9168
9168
|
])) : w.value.length > 0 ? (F(), O(Fe, { key: 1 }, [
|
|
@@ -9250,7 +9250,7 @@ const Nh = {
|
|
|
9250
9250
|
}
|
|
9251
9251
|
});
|
|
9252
9252
|
/**!
|
|
9253
|
-
* Sortable 1.15.
|
|
9253
|
+
* Sortable 1.15.4
|
|
9254
9254
|
* @author RubaXa <trash@rubaxa.org>
|
|
9255
9255
|
* @author owenm <owen23355@gmail.com>
|
|
9256
9256
|
* @license MIT
|
|
@@ -9319,7 +9319,7 @@ function ag(a, t) {
|
|
|
9319
9319
|
}
|
|
9320
9320
|
return e;
|
|
9321
9321
|
}
|
|
9322
|
-
var sg = "1.15.
|
|
9322
|
+
var sg = "1.15.4";
|
|
9323
9323
|
function Ra(a) {
|
|
9324
9324
|
if (typeof window < "u" && window.navigator)
|
|
9325
9325
|
return !!/* @__PURE__ */ navigator.userAgent.match(a);
|
|
@@ -9328,10 +9328,10 @@ var Qa = Ra(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), sr = Ra(/E
|
|
|
9328
9328
|
capture: !1,
|
|
9329
9329
|
passive: !1
|
|
9330
9330
|
};
|
|
9331
|
-
function
|
|
9331
|
+
function Pe(a, t, e) {
|
|
9332
9332
|
a.addEventListener(t, e, !Qa && ic);
|
|
9333
9333
|
}
|
|
9334
|
-
function
|
|
9334
|
+
function Ee(a, t, e) {
|
|
9335
9335
|
a.removeEventListener(t, e, !Qa && ic);
|
|
9336
9336
|
}
|
|
9337
9337
|
function Gr(a, t) {
|
|
@@ -9382,7 +9382,7 @@ function Ce(a, t, e) {
|
|
|
9382
9382
|
!(t in s) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), s[t] = e + (typeof e == "string" ? "" : "px");
|
|
9383
9383
|
}
|
|
9384
9384
|
}
|
|
9385
|
-
function
|
|
9385
|
+
function ii(a, t) {
|
|
9386
9386
|
var e = "";
|
|
9387
9387
|
if (typeof a == "string")
|
|
9388
9388
|
e = a;
|
|
@@ -9420,7 +9420,7 @@ function ft(a, t, e, s, i) {
|
|
|
9420
9420
|
}
|
|
9421
9421
|
while (i = i.parentNode);
|
|
9422
9422
|
if (s && a !== window) {
|
|
9423
|
-
var q =
|
|
9423
|
+
var q = ii(i || a), v = q && q.a, h = q && q.d;
|
|
9424
9424
|
q && (o /= h, l /= v, u /= v, c /= h, n = o + c, d = l + u);
|
|
9425
9425
|
}
|
|
9426
9426
|
return {
|
|
@@ -9470,7 +9470,7 @@ function td(a) {
|
|
|
9470
9470
|
var t = 0, e = 0, s = xa();
|
|
9471
9471
|
if (a)
|
|
9472
9472
|
do {
|
|
9473
|
-
var i =
|
|
9473
|
+
var i = ii(a), r = i.a, o = i.d;
|
|
9474
9474
|
t += a.scrollLeft * r, e += a.scrollTop * o;
|
|
9475
9475
|
} while (a !== s && (a = a.parentNode));
|
|
9476
9476
|
return [t, e];
|
|
@@ -9553,7 +9553,7 @@ function ng() {
|
|
|
9553
9553
|
});
|
|
9554
9554
|
var r = ka({}, a[a.length - 1].rect);
|
|
9555
9555
|
if (i.thisAnimationDuration) {
|
|
9556
|
-
var o =
|
|
9556
|
+
var o = ii(i, !0);
|
|
9557
9557
|
o && (r.top -= o.f, r.left -= o.e);
|
|
9558
9558
|
}
|
|
9559
9559
|
i.fromRect = r;
|
|
@@ -9577,7 +9577,7 @@ function ng() {
|
|
|
9577
9577
|
}
|
|
9578
9578
|
var r = !1, o = 0;
|
|
9579
9579
|
a.forEach(function(l) {
|
|
9580
|
-
var n = 0, d = l.target, c = d.fromRect, u = ft(d), f = d.prevFromRect, q = d.prevToRect, v = l.rect, h =
|
|
9580
|
+
var n = 0, d = l.target, c = d.fromRect, u = ft(d), f = d.prevFromRect, q = d.prevToRect, v = l.rect, h = ii(d, !0);
|
|
9581
9581
|
h && (u.top -= h.f, u.left -= h.e), d.toRect = u, d.thisAnimationDuration && jo(f, u) && !jo(c, u) && // Make sure animatingRect is on line between toRect & fromRect
|
|
9582
9582
|
(v.top - u.top) / (v.left - u.left) === (c.top - u.top) / (c.left - u.left) && (n = dg(v, f, q, i.options)), jo(u, c) || (d.prevFromRect = c, d.prevToRect = u, n || (n = i.options.animation), i.animate(d, v, u, n)), n && (r = !0, o = Math.max(o, n), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
|
|
9583
9583
|
d.animationTime = 0, d.prevFromRect = null, d.fromRect = null, d.prevToRect = null, d.thisAnimationDuration = null;
|
|
@@ -9589,7 +9589,7 @@ function ng() {
|
|
|
9589
9589
|
animate: function(s, i, r, o) {
|
|
9590
9590
|
if (o) {
|
|
9591
9591
|
Ce(s, "transition", ""), Ce(s, "transform", "");
|
|
9592
|
-
var l =
|
|
9592
|
+
var l = ii(this.el), n = l && l.a, d = l && l.d, c = (i.left - r.left) / (n || 1), u = (i.top - r.top) / (d || 1);
|
|
9593
9593
|
s.animatingX = !!c, s.animatingY = !!u, Ce(s, "transform", "translate3d(" + c + "px," + u + "px,0)"), this.forRepaintDummy = lg(s), Ce(s, "transition", "transform " + o + "ms" + (this.options.easing ? " " + this.options.easing : "")), Ce(s, "transform", "translate3d(0,0,0)"), typeof s.animated == "number" && clearTimeout(s.animated), s.animated = setTimeout(function() {
|
|
9594
9594
|
Ce(s, "transition", ""), Ce(s, "transform", ""), s.animated = !1, s.animatingX = !1, s.animatingY = !1;
|
|
9595
9595
|
}, o);
|
|
@@ -9603,16 +9603,16 @@ function lg(a) {
|
|
|
9603
9603
|
function dg(a, t, e, s) {
|
|
9604
9604
|
return Math.sqrt(Math.pow(t.top - a.top, 2) + Math.pow(t.left - a.left, 2)) / Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) * s.animation;
|
|
9605
9605
|
}
|
|
9606
|
-
var
|
|
9606
|
+
var Ns = [], Ho = {
|
|
9607
9607
|
initializeByDefault: !0
|
|
9608
9608
|
}, ir = {
|
|
9609
9609
|
mount: function(t) {
|
|
9610
9610
|
for (var e in Ho)
|
|
9611
9611
|
Ho.hasOwnProperty(e) && !(e in t) && (t[e] = Ho[e]);
|
|
9612
|
-
|
|
9612
|
+
Ns.forEach(function(s) {
|
|
9613
9613
|
if (s.pluginName === t.pluginName)
|
|
9614
9614
|
throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
|
|
9615
|
-
}),
|
|
9615
|
+
}), Ns.push(t);
|
|
9616
9616
|
},
|
|
9617
9617
|
pluginEvent: function(t, e, s) {
|
|
9618
9618
|
var i = this;
|
|
@@ -9620,7 +9620,7 @@ var Us = [], Ho = {
|
|
|
9620
9620
|
i.eventCanceled = !0;
|
|
9621
9621
|
};
|
|
9622
9622
|
var r = t + "Global";
|
|
9623
|
-
|
|
9623
|
+
Ns.forEach(function(o) {
|
|
9624
9624
|
e[o.pluginName] && (e[o.pluginName][r] && e[o.pluginName][r](ka({
|
|
9625
9625
|
sortable: e
|
|
9626
9626
|
}, s)), e.options[o.pluginName] && e[o.pluginName][t] && e[o.pluginName][t](ka({
|
|
@@ -9629,7 +9629,7 @@ var Us = [], Ho = {
|
|
|
9629
9629
|
});
|
|
9630
9630
|
},
|
|
9631
9631
|
initializePlugins: function(t, e, s, i) {
|
|
9632
|
-
|
|
9632
|
+
Ns.forEach(function(l) {
|
|
9633
9633
|
var n = l.pluginName;
|
|
9634
9634
|
if (!(!t.options[n] && !l.initializeByDefault)) {
|
|
9635
9635
|
var d = new l(t, e, t.options);
|
|
@@ -9644,13 +9644,13 @@ var Us = [], Ho = {
|
|
|
9644
9644
|
},
|
|
9645
9645
|
getEventProperties: function(t, e) {
|
|
9646
9646
|
var s = {};
|
|
9647
|
-
return
|
|
9647
|
+
return Ns.forEach(function(i) {
|
|
9648
9648
|
typeof i.eventProperties == "function" && za(s, i.eventProperties.call(e[i.pluginName], t));
|
|
9649
9649
|
}), s;
|
|
9650
9650
|
},
|
|
9651
9651
|
modifyOption: function(t, e, s) {
|
|
9652
9652
|
var i;
|
|
9653
|
-
return
|
|
9653
|
+
return Ns.forEach(function(r) {
|
|
9654
9654
|
t[r.pluginName] && r.optionListeners && typeof r.optionListeners[e] == "function" && (i = r.optionListeners[e].call(t[r.pluginName], s));
|
|
9655
9655
|
}), i;
|
|
9656
9656
|
}
|
|
@@ -9684,7 +9684,7 @@ var cg = ["evt"], Mt = function(t, e) {
|
|
|
9684
9684
|
putSortable: Ct,
|
|
9685
9685
|
activeSortable: xe.active,
|
|
9686
9686
|
originalEvent: i,
|
|
9687
|
-
oldIndex:
|
|
9687
|
+
oldIndex: Qs,
|
|
9688
9688
|
oldDraggableIndex: Bi,
|
|
9689
9689
|
newIndex: Gt,
|
|
9690
9690
|
newDraggableIndex: is,
|
|
@@ -9711,13 +9711,13 @@ function St(a) {
|
|
|
9711
9711
|
cloneEl: st,
|
|
9712
9712
|
targetEl: ne,
|
|
9713
9713
|
rootEl: Ze,
|
|
9714
|
-
oldIndex:
|
|
9714
|
+
oldIndex: Qs,
|
|
9715
9715
|
oldDraggableIndex: Bi,
|
|
9716
9716
|
newIndex: Gt,
|
|
9717
9717
|
newDraggableIndex: is
|
|
9718
9718
|
}, a));
|
|
9719
9719
|
}
|
|
9720
|
-
var ne, rt, Ie, Ze, ks, Mr, st, rs,
|
|
9720
|
+
var ne, rt, Ie, Ze, ks, Mr, st, rs, Qs, Gt, Bi, is, qr, Ct, Gs = !1, Zr = !1, Jr = [], Xs, ga, Wo, Go, ad, sd, _i, js, Pi, Ri = !1, Yr = !1, $r, kt, Zo = [], xn = !1, Qr = [], xo = typeof document < "u", Xr = ac, id = sr || Qa ? "cssFloat" : "float", mg = xo && !sc && !ac && "draggable" in document.createElement("div"), cc = function() {
|
|
9721
9721
|
if (xo) {
|
|
9722
9722
|
if (Qa)
|
|
9723
9723
|
return !1;
|
|
@@ -9846,13 +9846,13 @@ function xe(a, t) {
|
|
|
9846
9846
|
fc(t);
|
|
9847
9847
|
for (var i in this)
|
|
9848
9848
|
i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
9849
|
-
this.nativeDraggable = t.forceFallback ? !1 : mg, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ?
|
|
9849
|
+
this.nativeDraggable = t.forceFallback ? !1 : mg, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? Pe(a, "pointerdown", this._onTapStart) : (Pe(a, "mousedown", this._onTapStart), Pe(a, "touchstart", this._onTapStart)), this.nativeDraggable && (Pe(a, "dragover", this), Pe(a, "dragenter", this)), Jr.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), za(this, ng());
|
|
9850
9850
|
}
|
|
9851
9851
|
xe.prototype = /** @lends Sortable.prototype */
|
|
9852
9852
|
{
|
|
9853
9853
|
constructor: xe,
|
|
9854
9854
|
_isOutsideThisEl: function(t) {
|
|
9855
|
-
!this.el.contains(t) && t !== this.el && (
|
|
9855
|
+
!this.el.contains(t) && t !== this.el && (js = null);
|
|
9856
9856
|
},
|
|
9857
9857
|
_getDirection: function(t, e) {
|
|
9858
9858
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, t, e, ne) : this.options.direction;
|
|
@@ -9861,7 +9861,7 @@ xe.prototype = /** @lends Sortable.prototype */
|
|
|
9861
9861
|
if (t.cancelable) {
|
|
9862
9862
|
var e = this, s = this.el, i = this.options, r = i.preventOnFilter, o = t.type, l = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, n = (l || t).target, d = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || n, c = i.filter;
|
|
9863
9863
|
if (Ag(s), !ne && !(/mousedown|pointerdown/.test(o) && t.button !== 0 || i.disabled) && !d.isContentEditable && !(!this.nativeDraggable && Mi && n && n.tagName.toUpperCase() === "SELECT") && (n = qa(n, i.draggable, s, !1), !(n && n.animated) && Mr !== n)) {
|
|
9864
|
-
if (
|
|
9864
|
+
if (Qs = la(n), Bi = la(n, i.draggable), typeof c == "function") {
|
|
9865
9865
|
if (c.call(this, t, n, this)) {
|
|
9866
9866
|
St({
|
|
9867
9867
|
sortable: e,
|
|
@@ -9872,7 +9872,7 @@ xe.prototype = /** @lends Sortable.prototype */
|
|
|
9872
9872
|
fromEl: s
|
|
9873
9873
|
}), Mt("filter", e, {
|
|
9874
9874
|
evt: t
|
|
9875
|
-
}), r && t.
|
|
9875
|
+
}), r && t.preventDefault();
|
|
9876
9876
|
return;
|
|
9877
9877
|
}
|
|
9878
9878
|
} else if (c && (c = c.split(",").some(function(u) {
|
|
@@ -9888,7 +9888,7 @@ xe.prototype = /** @lends Sortable.prototype */
|
|
|
9888
9888
|
evt: t
|
|
9889
9889
|
}), !0;
|
|
9890
9890
|
}), c)) {
|
|
9891
|
-
r && t.
|
|
9891
|
+
r && t.preventDefault();
|
|
9892
9892
|
return;
|
|
9893
9893
|
}
|
|
9894
9894
|
i.handle && !qa(d, i.handle, s, !1) || this._prepareDragStart(t, l, n);
|
|
@@ -9917,14 +9917,14 @@ xe.prototype = /** @lends Sortable.prototype */
|
|
|
9917
9917
|
}), Wt(ne, o.chosenClass, !0);
|
|
9918
9918
|
}, o.ignore.split(",").forEach(function(c) {
|
|
9919
9919
|
oc(ne, c.trim(), Jo);
|
|
9920
|
-
}),
|
|
9920
|
+
}), Pe(l, "dragover", As), Pe(l, "mousemove", As), Pe(l, "touchmove", As), o.supportPointer ? (Pe(l, "pointerup", i._onDrop), !this.nativeDraggable && Pe(l, "pointercancel", i._onDrop)) : (Pe(l, "mouseup", i._onDrop), Pe(l, "touchend", i._onDrop), Pe(l, "touchcancel", i._onDrop)), Jl && this.nativeDraggable && (this.options.touchStartThreshold = 4, ne.draggable = !0), Mt("delayStart", this, {
|
|
9921
9921
|
evt: t
|
|
9922
9922
|
}), o.delay && (!o.delayOnTouchOnly || e) && (!this.nativeDraggable || !(sr || Qa))) {
|
|
9923
9923
|
if (xe.eventCanceled) {
|
|
9924
9924
|
this._onDrop();
|
|
9925
9925
|
return;
|
|
9926
9926
|
}
|
|
9927
|
-
|
|
9927
|
+
o.supportPointer ? (Pe(l, "pointerup", i._disableDelayedDrag), Pe(l, "pointercancel", i._disableDelayedDrag)) : (Pe(l, "mouseup", i._disableDelayedDrag), Pe(l, "touchend", i._disableDelayedDrag), Pe(l, "touchcancel", i._disableDelayedDrag)), Pe(l, "mousemove", i._delayedDragTouchMoveHandler), Pe(l, "touchmove", i._delayedDragTouchMoveHandler), o.supportPointer && Pe(l, "pointermove", i._delayedDragTouchMoveHandler), i._dragStartTimer = setTimeout(n, o.delay);
|
|
9928
9928
|
} else
|
|
9929
9929
|
n();
|
|
9930
9930
|
}
|
|
@@ -9938,22 +9938,22 @@ xe.prototype = /** @lends Sortable.prototype */
|
|
|
9938
9938
|
},
|
|
9939
9939
|
_disableDelayedDragEvents: function() {
|
|
9940
9940
|
var t = this.el.ownerDocument;
|
|
9941
|
-
|
|
9941
|
+
Ee(t, "mouseup", this._disableDelayedDrag), Ee(t, "touchend", this._disableDelayedDrag), Ee(t, "touchcancel", this._disableDelayedDrag), Ee(t, "pointerup", this._disableDelayedDrag), Ee(t, "pointercancel", this._disableDelayedDrag), Ee(t, "mousemove", this._delayedDragTouchMoveHandler), Ee(t, "touchmove", this._delayedDragTouchMoveHandler), Ee(t, "pointermove", this._delayedDragTouchMoveHandler);
|
|
9942
9942
|
},
|
|
9943
9943
|
_triggerDragStart: function(t, e) {
|
|
9944
|
-
e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ?
|
|
9944
|
+
e = e || t.pointerType == "touch" && t, !this.nativeDraggable || e ? this.options.supportPointer ? Pe(document, "pointermove", this._onTouchMove) : e ? Pe(document, "touchmove", this._onTouchMove) : Pe(document, "mousemove", this._onTouchMove) : (Pe(ne, "dragend", this), Pe(Ze, "dragstart", this._onDragStart));
|
|
9945
9945
|
try {
|
|
9946
|
-
|
|
9947
|
-
document.selection.empty();
|
|
9948
|
-
})
|
|
9946
|
+
Br(function() {
|
|
9947
|
+
document.selection ? document.selection.empty() : window.getSelection().removeAllRanges();
|
|
9948
|
+
});
|
|
9949
9949
|
} catch {
|
|
9950
9950
|
}
|
|
9951
9951
|
},
|
|
9952
9952
|
_dragStarted: function(t, e) {
|
|
9953
|
-
if (
|
|
9953
|
+
if (Gs = !1, Ze && ne) {
|
|
9954
9954
|
Mt("dragStarted", this, {
|
|
9955
9955
|
evt: e
|
|
9956
|
-
}), this.nativeDraggable &&
|
|
9956
|
+
}), this.nativeDraggable && Pe(document, "dragover", Vg);
|
|
9957
9957
|
var s = this.options;
|
|
9958
9958
|
!t && Wt(ne, s.dragClass, !1), Wt(ne, s.ghostClass, !0), xe.active = this, t && this._appendGhost(), St({
|
|
9959
9959
|
sortable: this,
|
|
@@ -9987,8 +9987,8 @@ xe.prototype = /** @lends Sortable.prototype */
|
|
|
9987
9987
|
},
|
|
9988
9988
|
_onTouchMove: function(t) {
|
|
9989
9989
|
if (Xs) {
|
|
9990
|
-
var e = this.options, s = e.fallbackTolerance, i = e.fallbackOffset, r = t.touches ? t.touches[0] : t, o = Ie &&
|
|
9991
|
-
if (!xe.active && !
|
|
9990
|
+
var e = this.options, s = e.fallbackTolerance, i = e.fallbackOffset, r = t.touches ? t.touches[0] : t, o = Ie && ii(Ie, !0), l = Ie && o && o.a, n = Ie && o && o.d, d = Xr && kt && td(kt), c = (r.clientX - Xs.clientX + i.x) / (l || 1) + (d ? d[0] - Zo[0] : 0) / (l || 1), u = (r.clientY - Xs.clientY + i.y) / (n || 1) + (d ? d[1] - Zo[1] : 0) / (n || 1);
|
|
9991
|
+
if (!xe.active && !Gs) {
|
|
9992
9992
|
if (s && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < s)
|
|
9993
9993
|
return;
|
|
9994
9994
|
this._onDragStart(t, !0);
|
|
@@ -10032,7 +10032,7 @@ xe.prototype = /** @lends Sortable.prototype */
|
|
|
10032
10032
|
sortable: s,
|
|
10033
10033
|
name: "clone"
|
|
10034
10034
|
}));
|
|
10035
|
-
}), !e && Wt(ne, r.dragClass, !0), e ? (Zr = !0, s._loopId = setInterval(s._emulateDragOver, 50)) : (
|
|
10035
|
+
}), !e && Wt(ne, r.dragClass, !0), e ? (Zr = !0, s._loopId = setInterval(s._emulateDragOver, 50)) : (Ee(document, "mouseup", s._onDrop), Ee(document, "touchend", s._onDrop), Ee(document, "touchcancel", s._onDrop), i && (i.effectAllowed = "move", r.setData && r.setData.call(s, i, ne)), Pe(document, "drop", s), Ce(ne, "transform", "translateZ(0)")), Gs = !0, s._dragStartId = Br(s._dragStarted.bind(s, e, t)), Pe(document, "selectstart", s), _i = !0, Mi && Ce(document.body, "user-select", "none");
|
|
10036
10036
|
},
|
|
10037
10037
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
10038
10038
|
_onDragOver: function(t) {
|
|
@@ -10064,7 +10064,7 @@ xe.prototype = /** @lends Sortable.prototype */
|
|
|
10064
10064
|
insertion: B
|
|
10065
10065
|
}), B && (c ? d._hideClone() : d._showClone(v), v !== f && (Wt(ne, Ct ? Ct.options.ghostClass : d.options.ghostClass, !1), Wt(ne, l.ghostClass, !0)), Ct !== v && v !== xe.active ? Ct = v : v === xe.active && Ct && (Ct = null), f === v && (v._ignoreWhileAnimating = s), v.animateAll(function() {
|
|
10066
10066
|
g("dragOverAnimationComplete"), v._ignoreWhileAnimating = null;
|
|
10067
|
-
}), v !== f && (f.animateAll(), f._ignoreWhileAnimating = null)), (s === ne && !ne.animated || s === e && !s.animated) && (
|
|
10067
|
+
}), v !== f && (f.animateAll(), f._ignoreWhileAnimating = null)), (s === ne && !ne.animated || s === e && !s.animated) && (js = null), !l.dragoverBubble && !t.rootEl && s !== document && (ne.parentNode[Rt]._isOutsideThisEl(t.target), !B && As(t)), !l.dragoverBubble && t.stopPropagation && t.stopPropagation(), h = !0;
|
|
10068
10068
|
}
|
|
10069
10069
|
function C() {
|
|
10070
10070
|
Gt = la(ne), is = la(ne, l.draggable), St({
|
|
@@ -10098,7 +10098,7 @@ xe.prototype = /** @lends Sortable.prototype */
|
|
|
10098
10098
|
} else if (s.parentNode === e) {
|
|
10099
10099
|
r = ft(s);
|
|
10100
10100
|
var y = 0, P, N = ne.parentNode !== e, R = !fg(ne.animated && ne.toRect || i, s.animated && s.toRect || r, q), M = q ? "top" : "left", D = ed(s, "top", "top") || ed(ne, "top", "top"), $ = D ? D.scrollTop : void 0;
|
|
10101
|
-
|
|
10101
|
+
js !== s && (P = r[M], Ri = !1, Yr = !R && l.invertSwap || N), y = qg(t, s, r, q, R ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Yr, js === s);
|
|
10102
10102
|
var x;
|
|
10103
10103
|
if (y !== 0) {
|
|
10104
10104
|
var I = la(ne);
|
|
@@ -10108,7 +10108,7 @@ xe.prototype = /** @lends Sortable.prototype */
|
|
|
10108
10108
|
}
|
|
10109
10109
|
if (y === 0 || x === s)
|
|
10110
10110
|
return Y(!1);
|
|
10111
|
-
|
|
10111
|
+
js = s, Pi = y;
|
|
10112
10112
|
var k = s.nextElementSibling, b = !1;
|
|
10113
10113
|
b = y === 1;
|
|
10114
10114
|
var T = Ar(Ze, e, ne, i, s, r, t, b);
|
|
@@ -10122,11 +10122,11 @@ xe.prototype = /** @lends Sortable.prototype */
|
|
|
10122
10122
|
},
|
|
10123
10123
|
_ignoreWhileAnimating: null,
|
|
10124
10124
|
_offMoveEvents: function() {
|
|
10125
|
-
|
|
10125
|
+
Ee(document, "mousemove", this._onTouchMove), Ee(document, "touchmove", this._onTouchMove), Ee(document, "pointermove", this._onTouchMove), Ee(document, "dragover", As), Ee(document, "mousemove", As), Ee(document, "touchmove", As);
|
|
10126
10126
|
},
|
|
10127
10127
|
_offUpEvents: function() {
|
|
10128
10128
|
var t = this.el.ownerDocument;
|
|
10129
|
-
|
|
10129
|
+
Ee(t, "mouseup", this._onDrop), Ee(t, "touchend", this._onDrop), Ee(t, "pointerup", this._onDrop), Ee(t, "pointercancel", this._onDrop), Ee(t, "touchcancel", this._onDrop), Ee(document, "selectstart", this);
|
|
10130
10130
|
},
|
|
10131
10131
|
_onDrop: function(t) {
|
|
10132
10132
|
var e = this.el, s = this.options;
|
|
@@ -10136,7 +10136,7 @@ xe.prototype = /** @lends Sortable.prototype */
|
|
|
10136
10136
|
this._nulling();
|
|
10137
10137
|
return;
|
|
10138
10138
|
}
|
|
10139
|
-
|
|
10139
|
+
Gs = !1, Yr = !1, Ri = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), wn(this.cloneId), wn(this._dragStartId), this.nativeDraggable && (Ee(document, "drop", this), Ee(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Mi && Ce(document.body, "user-select", ""), Ce(ne, "transform", ""), t && (_i && (t.cancelable && t.preventDefault(), !s.dropBubble && t.stopPropagation()), Ie && Ie.parentNode && Ie.parentNode.removeChild(Ie), (Ze === rt || Ct && Ct.lastPutMode !== "clone") && st && st.parentNode && st.parentNode.removeChild(st), ne && (this.nativeDraggable && Ee(ne, "dragend", this), Jo(ne), ne.style["will-change"] = "", _i && !Gs && Wt(ne, Ct ? Ct.options.ghostClass : this.options.ghostClass, !1), Wt(ne, this.options.chosenClass, !1), St({
|
|
10140
10140
|
sortable: this,
|
|
10141
10141
|
name: "unchoose",
|
|
10142
10142
|
toEl: rt,
|
|
@@ -10165,7 +10165,7 @@ xe.prototype = /** @lends Sortable.prototype */
|
|
|
10165
10165
|
name: "sort",
|
|
10166
10166
|
toEl: rt,
|
|
10167
10167
|
originalEvent: t
|
|
10168
|
-
})), Ct && Ct.save()) : Gt !==
|
|
10168
|
+
})), Ct && Ct.save()) : Gt !== Qs && Gt >= 0 && (St({
|
|
10169
10169
|
sortable: this,
|
|
10170
10170
|
name: "update",
|
|
10171
10171
|
toEl: rt,
|
|
@@ -10175,7 +10175,7 @@ xe.prototype = /** @lends Sortable.prototype */
|
|
|
10175
10175
|
name: "sort",
|
|
10176
10176
|
toEl: rt,
|
|
10177
10177
|
originalEvent: t
|
|
10178
|
-
})), xe.active && ((Gt == null || Gt === -1) && (Gt =
|
|
10178
|
+
})), xe.active && ((Gt == null || Gt === -1) && (Gt = Qs, is = Bi), St({
|
|
10179
10179
|
sortable: this,
|
|
10180
10180
|
name: "end",
|
|
10181
10181
|
toEl: rt,
|
|
@@ -10183,7 +10183,7 @@ xe.prototype = /** @lends Sortable.prototype */
|
|
|
10183
10183
|
}), this.save()))), this._nulling();
|
|
10184
10184
|
},
|
|
10185
10185
|
_nulling: function() {
|
|
10186
|
-
Mt("nulling", this), Ze = ne = rt = Ie = ks = st = Mr = rs = Xs = ga = _i = Gt = is =
|
|
10186
|
+
Mt("nulling", this), Ze = ne = rt = Ie = ks = st = Mr = rs = Xs = ga = _i = Gt = is = Qs = Bi = js = Pi = Ct = qr = xe.dragged = xe.ghost = xe.clone = xe.active = null, Qr.forEach(function(t) {
|
|
10187
10187
|
t.checked = !0;
|
|
10188
10188
|
}), Qr.length = Wo = Go = 0;
|
|
10189
10189
|
},
|
|
@@ -10259,7 +10259,7 @@ xe.prototype = /** @lends Sortable.prototype */
|
|
|
10259
10259
|
destroy: function() {
|
|
10260
10260
|
Mt("destroy", this);
|
|
10261
10261
|
var t = this.el;
|
|
10262
|
-
t[Rt] = null,
|
|
10262
|
+
t[Rt] = null, Ee(t, "mousedown", this._onTapStart), Ee(t, "touchstart", this._onTapStart), Ee(t, "pointerdown", this._onTapStart), this.nativeDraggable && (Ee(t, "dragover", this), Ee(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(e) {
|
|
10263
10263
|
e.removeAttribute("draggable");
|
|
10264
10264
|
}), this._onDrop(), this._disableDelayedDragEvents(), Jr.splice(Jr.indexOf(this.el), 1), this.el = t = null;
|
|
10265
10265
|
},
|
|
@@ -10338,12 +10338,12 @@ function Br(a) {
|
|
|
10338
10338
|
function wn(a) {
|
|
10339
10339
|
return clearTimeout(a);
|
|
10340
10340
|
}
|
|
10341
|
-
xo &&
|
|
10342
|
-
(xe.active ||
|
|
10341
|
+
xo && Pe(document, "touchmove", function(a) {
|
|
10342
|
+
(xe.active || Gs) && a.cancelable && a.preventDefault();
|
|
10343
10343
|
});
|
|
10344
10344
|
xe.utils = {
|
|
10345
|
-
on:
|
|
10346
|
-
off:
|
|
10345
|
+
on: Pe,
|
|
10346
|
+
off: Ee,
|
|
10347
10347
|
css: Ce,
|
|
10348
10348
|
find: oc,
|
|
10349
10349
|
is: function(t, e) {
|
|
@@ -10393,14 +10393,14 @@ function yg() {
|
|
|
10393
10393
|
return a.prototype = {
|
|
10394
10394
|
dragStarted: function(e) {
|
|
10395
10395
|
var s = e.originalEvent;
|
|
10396
|
-
this.sortable.nativeDraggable ?
|
|
10396
|
+
this.sortable.nativeDraggable ? Pe(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? Pe(document, "pointermove", this._handleFallbackAutoScroll) : s.touches ? Pe(document, "touchmove", this._handleFallbackAutoScroll) : Pe(document, "mousemove", this._handleFallbackAutoScroll);
|
|
10397
10397
|
},
|
|
10398
10398
|
dragOverCompleted: function(e) {
|
|
10399
10399
|
var s = e.originalEvent;
|
|
10400
10400
|
!this.options.dragOverBubble && !s.rootEl && this._handleAutoScroll(s);
|
|
10401
10401
|
},
|
|
10402
10402
|
drop: function() {
|
|
10403
|
-
this.sortable.nativeDraggable ?
|
|
10403
|
+
this.sortable.nativeDraggable ? Ee(document, "dragover", this._handleAutoScroll) : (Ee(document, "pointermove", this._handleFallbackAutoScroll), Ee(document, "touchmove", this._handleFallbackAutoScroll), Ee(document, "mousemove", this._handleFallbackAutoScroll)), rd(), Pr(), og();
|
|
10404
10404
|
},
|
|
10405
10405
|
nulling: function() {
|
|
10406
10406
|
eo = kn = Si = In = Di = Qo = en = null, mt.length = 0;
|
|
@@ -10787,7 +10787,7 @@ const ll = "a-sortable-", Tg = ["id"], Eg = { key: 1 }, Mg = { class: "a-sortabl
|
|
|
10787
10787
|
updateData: $,
|
|
10788
10788
|
updateDataAtIndex: k
|
|
10789
10789
|
}), (b, T) => {
|
|
10790
|
-
const B =
|
|
10790
|
+
const B = Be("ABtnTertiary"), H = Be("ABtnPrimary");
|
|
10791
10791
|
return F(), O("div", null, [
|
|
10792
10792
|
U("div", {
|
|
10793
10793
|
id: u.value,
|
|
@@ -11255,7 +11255,7 @@ const Ng = ["data-id"], jg = { class: "a-sortable-nested-widget__nested" }, Hg =
|
|
|
11255
11255
|
zi(ld, n + 1);
|
|
11256
11256
|
const d = S(() => e.showAddChildButton && !L(e.item.children) && e.item.children.length === 0 && n < e.maxDepth), { t: c } = ee();
|
|
11257
11257
|
return (u, f) => {
|
|
11258
|
-
const q =
|
|
11258
|
+
const q = Be("ASortableNestedItem", !0);
|
|
11259
11259
|
return F(), O("div", {
|
|
11260
11260
|
class: ge(["a-sortable-nested-widget__container", "a-sortable-nested-widget__container--level-" + p(n)]),
|
|
11261
11261
|
"data-id": u.item.data.id
|
|
@@ -11497,7 +11497,7 @@ const Ng = ["data-id"], jg = { class: "a-sortable-nested-widget__nested" }, Hg =
|
|
|
11497
11497
|
removeById: N,
|
|
11498
11498
|
updateData: R
|
|
11499
11499
|
}), (I, k) => {
|
|
11500
|
-
const b =
|
|
11500
|
+
const b = Be("ABtnTertiary"), T = Be("ABtnPrimary");
|
|
11501
11501
|
return F(), O("div", null, [
|
|
11502
11502
|
U("div", {
|
|
11503
11503
|
id: f.value,
|
|
@@ -11641,7 +11641,7 @@ const Ng = ["data-id"], jg = { class: "a-sortable-nested-widget__nested" }, Hg =
|
|
|
11641
11641
|
return t({
|
|
11642
11642
|
open: q
|
|
11643
11643
|
}), (y, P) => {
|
|
11644
|
-
const N =
|
|
11644
|
+
const N = Be("ABtnSecondary"), R = Be("ABtnPrimary");
|
|
11645
11645
|
return F(), O(Fe, null, [
|
|
11646
11646
|
de(y.$slots, "activator", {
|
|
11647
11647
|
props: { onClick: J(() => q(), ["stop"]) }
|
|
@@ -11930,7 +11930,7 @@ const pF = /* @__PURE__ */ W({
|
|
|
11930
11930
|
}, o = S(() => {
|
|
11931
11931
|
const Y = $d(e.modelValue) ? vt(e.modelValue) : e.modelValue;
|
|
11932
11932
|
return (e.config.attributes.type === Ft.StringArray || e.config.attributes.type === Ft.StringArrayLegacy) && di(Y) ? [] : Y;
|
|
11933
|
-
}), { maxLength: l, minLength: n, requiredIf: d, minValue: c, maxValue: u, stringArrayItemLength: f } =
|
|
11933
|
+
}), { maxLength: l, minLength: n, requiredIf: d, minValue: c, maxValue: u, stringArrayItemLength: f } = Ps(), q = S(() => {
|
|
11934
11934
|
const Y = {
|
|
11935
11935
|
modelValueComputed: {
|
|
11936
11936
|
required: d(e.config.attributes.required)
|
|
@@ -12168,7 +12168,7 @@ function YF() {
|
|
|
12168
12168
|
}
|
|
12169
12169
|
};
|
|
12170
12170
|
}
|
|
12171
|
-
const
|
|
12171
|
+
const ei = (a) => {
|
|
12172
12172
|
var e;
|
|
12173
12173
|
if (!a) return "";
|
|
12174
12174
|
if (a.type && a.type.length > 0)
|
|
@@ -12200,9 +12200,9 @@ function Xc(a, t) {
|
|
|
12200
12200
|
return !0;
|
|
12201
12201
|
} else {
|
|
12202
12202
|
const c = n[d].split("/");
|
|
12203
|
-
if (c[1] === "*" &&
|
|
12203
|
+
if (c[1] === "*" && ei(l).startsWith(c[0] + "/"))
|
|
12204
12204
|
return !0;
|
|
12205
|
-
if (n[d] ===
|
|
12205
|
+
if (n[d] === ei(l))
|
|
12206
12206
|
return !0;
|
|
12207
12207
|
}
|
|
12208
12208
|
return !1;
|
|
@@ -12216,9 +12216,9 @@ function Xc(a, t) {
|
|
|
12216
12216
|
return !0;
|
|
12217
12217
|
{
|
|
12218
12218
|
const u = n[c].split("/");
|
|
12219
|
-
if (u[1] === "*" &&
|
|
12219
|
+
if (u[1] === "*" && ei(l).startsWith(u[0] + "/") && d[n[c]] > l.size)
|
|
12220
12220
|
return !0;
|
|
12221
|
-
if (n[c] ===
|
|
12221
|
+
if (n[c] === ei(l) && d[n[c]] > l.size)
|
|
12222
12222
|
return !0;
|
|
12223
12223
|
}
|
|
12224
12224
|
}
|
|
@@ -12406,7 +12406,7 @@ const xF = (a) => ({
|
|
|
12406
12406
|
fetch: bc,
|
|
12407
12407
|
add: Cc,
|
|
12408
12408
|
addManualMinimal: xc
|
|
12409
|
-
}),
|
|
12409
|
+
}), Ks = {
|
|
12410
12410
|
Uploading: "uploading",
|
|
12411
12411
|
// file entity created and ready to receive chunks
|
|
12412
12412
|
Uploaded: "uploaded",
|
|
@@ -12559,7 +12559,7 @@ const OF = (a, t) => {
|
|
|
12559
12559
|
Asset: "asset",
|
|
12560
12560
|
ExternalProviderAsset: "externalProviderAsset",
|
|
12561
12561
|
SlotFile: "slotFile"
|
|
12562
|
-
},
|
|
12562
|
+
}, Re = {
|
|
12563
12563
|
Loading: "loading",
|
|
12564
12564
|
// loading additional api data
|
|
12565
12565
|
Waiting: "waiting",
|
|
@@ -12576,7 +12576,7 @@ const OF = (a, t) => {
|
|
|
12576
12576
|
// after hitting stop upload
|
|
12577
12577
|
}, ln = K(void 0);
|
|
12578
12578
|
function zF(a = 30) {
|
|
12579
|
-
const t =
|
|
12579
|
+
const t = Os(), e = K(ln.value || t.damPrvConfig.settings.imageChunkConfig.minSize), s = a / 5, i = a / 4, r = a / 2, o = (n) => {
|
|
12580
12580
|
if (te(n))
|
|
12581
12581
|
return !1;
|
|
12582
12582
|
const d = e.value / n;
|
|
@@ -12593,7 +12593,7 @@ const Ni = "/adm/v1/image", LF = 420, UF = (a, t) => new Promise((e, s) => {
|
|
|
12593
12593
|
t.type === kc.SlotFile && t.slotName && t.assetId && (i = Ni + "/asset/" + t.assetId + "/slot-name/" + t.slotName), a().post(
|
|
12594
12594
|
i,
|
|
12595
12595
|
JSON.stringify({
|
|
12596
|
-
mimeType:
|
|
12596
|
+
mimeType: ei(t.file),
|
|
12597
12597
|
size: (r = t.file) == null ? void 0 : r.size
|
|
12598
12598
|
})
|
|
12599
12599
|
).then((o) => {
|
|
@@ -12628,14 +12628,14 @@ const Ni = "/adm/v1/image", LF = 420, UF = (a, t) => new Promise((e, s) => {
|
|
|
12628
12628
|
checksum: e
|
|
12629
12629
|
})
|
|
12630
12630
|
).then((o) => {
|
|
12631
|
-
o.status ===
|
|
12631
|
+
o.status === $s ? s(o.data) : i();
|
|
12632
12632
|
}).catch((o) => {
|
|
12633
12633
|
i(o);
|
|
12634
12634
|
});
|
|
12635
12635
|
}), HF = (a, t, e) => new Promise((s, i) => {
|
|
12636
12636
|
const r = Ni + "/" + t + "/rotate/" + e;
|
|
12637
12637
|
a().patch(r).then((o) => {
|
|
12638
|
-
o.status ===
|
|
12638
|
+
o.status === $s ? s(o.data) : i();
|
|
12639
12639
|
}).catch((o) => {
|
|
12640
12640
|
i(o);
|
|
12641
12641
|
});
|
|
@@ -12663,7 +12663,7 @@ const Ni = "/adm/v1/image", LF = 420, UF = (a, t) => new Promise((e, s) => {
|
|
|
12663
12663
|
return;
|
|
12664
12664
|
}
|
|
12665
12665
|
jF(a, t, e).then((o) => {
|
|
12666
|
-
t.status =
|
|
12666
|
+
t.status = Re.Processing, s && (t.notificationFallbackTimer = setTimeout(function() {
|
|
12667
12667
|
_c(a, t);
|
|
12668
12668
|
}, Ic(t))), i(o);
|
|
12669
12669
|
}).catch((o) => r(o));
|
|
@@ -12672,17 +12672,17 @@ function Ic(a) {
|
|
|
12672
12672
|
return WF * 1e3 * a.notificationFallbackTry * a.notificationFallbackTry;
|
|
12673
12673
|
}
|
|
12674
12674
|
async function _c(a, t) {
|
|
12675
|
-
if (clearTimeout(t.notificationFallbackTimer), t.status ===
|
|
12675
|
+
if (clearTimeout(t.notificationFallbackTimer), t.status === Re.Uploaded || t.notificationFallbackTry > GF || !t.assetId) return;
|
|
12676
12676
|
const e = await Pa(a, t.assetId);
|
|
12677
12677
|
if (e && e.mainFile && e.mainFile.fileAttributes) {
|
|
12678
12678
|
const s = ra();
|
|
12679
|
-
if (e.mainFile.fileAttributes.status ===
|
|
12679
|
+
if (e.mainFile.fileAttributes.status === Ks.Processed) {
|
|
12680
12680
|
s.queueItemProcessed(e.id);
|
|
12681
12681
|
return;
|
|
12682
|
-
} else if (e.mainFile.fileAttributes.status ===
|
|
12682
|
+
} else if (e.mainFile.fileAttributes.status === Ks.Duplicate) {
|
|
12683
12683
|
s.queueItemDuplicate(e.id, e.mainFile.originAssetFile, e.attributes.assetType);
|
|
12684
12684
|
return;
|
|
12685
|
-
} else if (e.mainFile.fileAttributes.status ===
|
|
12685
|
+
} else if (e.mainFile.fileAttributes.status === Ks.Failed) {
|
|
12686
12686
|
s.queueItemFailed(e.id, e.mainFile.fileAttributes.failReason);
|
|
12687
12687
|
return;
|
|
12688
12688
|
}
|
|
@@ -13312,7 +13312,7 @@ function dq(a, t = void 0) {
|
|
|
13312
13312
|
rq();
|
|
13313
13313
|
return;
|
|
13314
13314
|
}
|
|
13315
|
-
s.value = a.file.size, a.status =
|
|
13315
|
+
s.value = a.file.size, a.status = Re.Uploading, ZF(e, a).then((A) => {
|
|
13316
13316
|
a.assetId = A.asset, a.fileId = A.id, C(a);
|
|
13317
13317
|
}).catch((A) => {
|
|
13318
13318
|
X(A);
|
|
@@ -13384,12 +13384,12 @@ const cd = (a) => {
|
|
|
13384
13384
|
if (L(Z))
|
|
13385
13385
|
throw new Error("Ext system must be initialised.");
|
|
13386
13386
|
for await (const ae of H) {
|
|
13387
|
-
const fe = OF(
|
|
13387
|
+
const fe = OF(ei(ae), Z);
|
|
13388
13388
|
if (!fe || fe !== Xe.Image) continue;
|
|
13389
13389
|
const pe = r(
|
|
13390
13390
|
"file_" + ae.name,
|
|
13391
13391
|
kc.File,
|
|
13392
|
-
|
|
13392
|
+
Re.Waiting,
|
|
13393
13393
|
fe,
|
|
13394
13394
|
Fq,
|
|
13395
13395
|
B
|
|
@@ -13412,15 +13412,15 @@ const cd = (a) => {
|
|
|
13412
13412
|
}
|
|
13413
13413
|
function q(b) {
|
|
13414
13414
|
const T = i.value.get(b);
|
|
13415
|
-
T && (T.totalCount = T.items.length, T.processedCount = v(b,
|
|
13415
|
+
T && (T.totalCount = T.items.length, T.processedCount = v(b, Re.Uploaded).length + v(b, Re.Failed).length);
|
|
13416
13416
|
}
|
|
13417
13417
|
function v(b, T) {
|
|
13418
13418
|
const B = i.value.get(b);
|
|
13419
13419
|
return B ? B.items.filter((H) => H.status === T) : [];
|
|
13420
13420
|
}
|
|
13421
13421
|
function h(b) {
|
|
13422
|
-
const T = v(b,
|
|
13423
|
-
if (!(T.length === 0 || v(b,
|
|
13422
|
+
const T = v(b, Re.Waiting);
|
|
13423
|
+
if (!(T.length === 0 || v(b, Re.Uploading).length === md))
|
|
13424
13424
|
for (let H = 0; H < md; H++)
|
|
13425
13425
|
T[H] && g(T[H], b);
|
|
13426
13426
|
}
|
|
@@ -13431,7 +13431,7 @@ const cd = (a) => {
|
|
|
13431
13431
|
try {
|
|
13432
13432
|
await H(), await B(), h(T);
|
|
13433
13433
|
} catch {
|
|
13434
|
-
b.error.hasError = !0, b.status =
|
|
13434
|
+
b.error.hasError = !0, b.status = Re.Failed, q(T), h(T);
|
|
13435
13435
|
}
|
|
13436
13436
|
}
|
|
13437
13437
|
function w(b, T, B, H) {
|
|
@@ -13444,7 +13444,7 @@ const cd = (a) => {
|
|
|
13444
13444
|
i.value.forEach((B, H) => {
|
|
13445
13445
|
B.items.forEach((G) => {
|
|
13446
13446
|
var Z;
|
|
13447
|
-
G.assetId === T.id && T.mainFile && (clearTimeout(G.notificationFallbackTimer), G.status =
|
|
13447
|
+
G.assetId === T.id && T.mainFile && (clearTimeout(G.notificationFallbackTimer), G.status = Re.Uploaded, G.assetStatus = T.attributes.assetStatus, (Z = T.mainFile.links) != null && Z.image_detail && (G.imagePreview = T.mainFile.links.image_detail), G.mainFileSingleUse = T.mainFileSingleUse, h(H));
|
|
13448
13448
|
}), q(H);
|
|
13449
13449
|
});
|
|
13450
13450
|
} catch {
|
|
@@ -13461,8 +13461,8 @@ const cd = (a) => {
|
|
|
13461
13461
|
}
|
|
13462
13462
|
i.value.forEach((ae, fe) => {
|
|
13463
13463
|
ae.items.forEach((pe) => {
|
|
13464
|
-
var Ke,
|
|
13465
|
-
te(Z) || pe.assetId === b && (clearTimeout(pe.notificationFallbackTimer), pe.isDuplicate = !0, pe.status =
|
|
13464
|
+
var Ke, ze;
|
|
13465
|
+
te(Z) || pe.assetId === b && (clearTimeout(pe.notificationFallbackTimer), pe.isDuplicate = !0, pe.status = Re.Uploaded, pe.fileId = T, pe.duplicateAssetId = Z.id, pe.assetStatus = Z.attributes.assetStatus, (ze = (Ke = Z.mainFile) == null ? void 0 : Ke.links) != null && ze.image_detail && (pe.imagePreview = Z.mainFile.links.image_detail), pe.keywords = Z.keywords, pe.authors = Z.authors, pe.customData = Z.metadata.customData, H(Z.metadata.authorSuggestions, ae.suggestions.newAuthorNames), H(Z.metadata.keywordSuggestions, ae.suggestions.newKeywordNames), pe.authorConflicts = G(Z.metadata.authorSuggestions), a(pe.keywords), e(pe.authors), e(pe.authorConflicts), pe.assetId = Z.id, pe.mainFileSingleUse = Z.mainFileSingleUse, pe.canEditMetadata = !0, h(fe));
|
|
13466
13466
|
}), q(fe), s(), t();
|
|
13467
13467
|
});
|
|
13468
13468
|
}
|
|
@@ -13471,7 +13471,7 @@ const cd = (a) => {
|
|
|
13471
13471
|
const B = await Pa(o, b);
|
|
13472
13472
|
i.value.forEach((H, G) => {
|
|
13473
13473
|
H.items.forEach((Z) => {
|
|
13474
|
-
Z.assetId === B.id && (clearTimeout(Z.notificationFallbackTimer), Z.error.hasError = !0, Z.status =
|
|
13474
|
+
Z.assetId === B.id && (clearTimeout(Z.notificationFallbackTimer), Z.error.hasError = !0, Z.status = Re.Failed, Z.error.assetFileFailReason = T, Z.canEditMetadata = !1, h(G));
|
|
13475
13475
|
}), q(G);
|
|
13476
13476
|
});
|
|
13477
13477
|
} catch {
|
|
@@ -13495,7 +13495,7 @@ const cd = (a) => {
|
|
|
13495
13495
|
}
|
|
13496
13496
|
async function P(b, T, B) {
|
|
13497
13497
|
const H = i.value.get(b);
|
|
13498
|
-
!H || H.items.length === 0 || (T.status =
|
|
13498
|
+
!H || H.items.length === 0 || (T.status = Re.Stop, T.latestChunkCancelToken && cd(T.latestChunkCancelToken), y(b, B), h(b));
|
|
13499
13499
|
}
|
|
13500
13500
|
async function N(b) {
|
|
13501
13501
|
const { updateNewNames: T, getAuthorConflicts: B } = nn();
|
|
@@ -13520,9 +13520,9 @@ const cd = (a) => {
|
|
|
13520
13520
|
function D(b) {
|
|
13521
13521
|
const T = i.value.get(b);
|
|
13522
13522
|
if (!T || T.items.length === 0) return;
|
|
13523
|
-
const B = v(b,
|
|
13523
|
+
const B = v(b, Re.Uploading);
|
|
13524
13524
|
T.items.forEach((H) => {
|
|
13525
|
-
H.status =
|
|
13525
|
+
H.status = Re.Stop;
|
|
13526
13526
|
}), B.length > 0 && B.forEach((H) => {
|
|
13527
13527
|
H.latestChunkCancelToken && cd(H.latestChunkCancelToken);
|
|
13528
13528
|
}), I(b), $(b);
|
|
@@ -13571,13 +13571,13 @@ const cd = (a) => {
|
|
|
13571
13571
|
};
|
|
13572
13572
|
}), Ec = (a, t, e = {}, s, i, r = {}) => new Promise((o, l) => {
|
|
13573
13573
|
a().delete(gs(t, e), r).then((n) => Fs(n.status) ? n.data ? o(n.data) : n.status === ja ? o(null) : l(new wt()) : l(new Wa(n.status))).catch((n) => Ha(n) ? l(new Da(n)) : Ka(n) ? l(new Ta(n, s, i, n)) : Ga(n) ? l(new Ea(n, n)) : l(new wt(n)));
|
|
13574
|
-
}), qi = "/adm/v1/image", lr = "image", dr = "cms", un = 20, Mc = (a, t) =>
|
|
13574
|
+
}), qi = "/adm/v1/image", lr = "image", dr = "cms", un = 20, Mc = (a, t) => zs(a, t, qi, {}, dr, lr), ul = (a, t) => jt(a, qi + "/:id", { id: t }, dr, lr), $c = (a, t) => Ao(a, t, qi, {}, dr, lr), Bc = (a, t, e) => sl(a, e, qi + "/:id", { id: t }, dr, lr), Pc = (a, t) => Ec(a, qi + "/:id", { id: t }, dr, lr), qq = (a, t) => new Promise((e, s) => {
|
|
13575
13575
|
Yq(a, t).then((i) => {
|
|
13576
13576
|
if (t.length === 0)
|
|
13577
13577
|
return e([]);
|
|
13578
13578
|
if (i.length === 0)
|
|
13579
13579
|
return s(i);
|
|
13580
|
-
if (i.every((r) => r.status ===
|
|
13580
|
+
if (i.every((r) => r.status === $s)) {
|
|
13581
13581
|
const r = i.flatMap((o) => o.data.images);
|
|
13582
13582
|
return e(r);
|
|
13583
13583
|
} else
|
|
@@ -13719,7 +13719,7 @@ const Xq = {
|
|
|
13719
13719
|
removeImageByIndex: l,
|
|
13720
13720
|
reset: n
|
|
13721
13721
|
};
|
|
13722
|
-
}), La = Symbol.for("anzu:common:asset-metadata-validation-scope"), Rc = Symbol.for("anzu:common:image-validation-scope"), xq = Symbol.for("anzu:common:author-create-validation-scope"), { required: wq, maxLength: kq } =
|
|
13722
|
+
}), La = Symbol.for("anzu:common:asset-metadata-validation-scope"), Rc = Symbol.for("anzu:common:image-validation-scope"), xq = Symbol.for("anzu:common:author-create-validation-scope"), { required: wq, maxLength: kq } = Ps();
|
|
13723
13723
|
function Oc(a) {
|
|
13724
13724
|
const t = S(() => ({
|
|
13725
13725
|
image: {
|
|
@@ -13765,7 +13765,7 @@ const Iq = { key: 0 }, _q = { class: "d-flex align-center justify-center" }, Sq
|
|
|
13765
13765
|
return t({
|
|
13766
13766
|
confirm: d
|
|
13767
13767
|
}), (f, q) => {
|
|
13768
|
-
const v =
|
|
13768
|
+
const v = Be("ABtnPrimary");
|
|
13769
13769
|
return f.expand ? (F(), O("div", Iq, [
|
|
13770
13770
|
f.loading ? (F(), E(ve, { key: 0 }, {
|
|
13771
13771
|
default: V(() => [
|
|
@@ -13848,7 +13848,7 @@ const Iq = { key: 0 }, _q = { class: "d-flex align-center justify-center" }, Sq
|
|
|
13848
13848
|
]),
|
|
13849
13849
|
_: 1
|
|
13850
13850
|
}),
|
|
13851
|
-
m(
|
|
13851
|
+
m(Ms, null, {
|
|
13852
13852
|
default: V(() => [
|
|
13853
13853
|
f.loading ? (F(), O("div", Sq, [
|
|
13854
13854
|
m(tt, { indeterminate: "" })
|
|
@@ -14074,7 +14074,7 @@ const Pq = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
14074
14074
|
}
|
|
14075
14075
|
}, i = (o, l) => {
|
|
14076
14076
|
var d;
|
|
14077
|
-
const n =
|
|
14077
|
+
const n = Os();
|
|
14078
14078
|
for (let c = 0; c < t.assetFileProperties.distributesInServices.length; c++) {
|
|
14079
14079
|
const u = (d = n.damPrvConfig.distributionServices[t.assetFileProperties.distributesInServices[c]]) == null ? void 0 : d.iconPath;
|
|
14080
14080
|
u.length > 0 && !o.includes(u) && (o.push(u), l.push(
|
|
@@ -14406,7 +14406,7 @@ const fl = /* @__PURE__ */ W({
|
|
|
14406
14406
|
setup(a) {
|
|
14407
14407
|
const { t } = ee();
|
|
14408
14408
|
return (e, s) => (F(), O(Fe, null, [
|
|
14409
|
-
e.assetMainFileStatus && e.assetMainFileStatus === p(
|
|
14409
|
+
e.assetMainFileStatus && e.assetMainFileStatus === p(Ks).Duplicate ? (F(), O("div", V7, [
|
|
14410
14410
|
m(Ii, {
|
|
14411
14411
|
dark: "",
|
|
14412
14412
|
type: "warning"
|
|
@@ -14417,7 +14417,7 @@ const fl = /* @__PURE__ */ W({
|
|
|
14417
14417
|
_: 1
|
|
14418
14418
|
})
|
|
14419
14419
|
])) : j("", !0),
|
|
14420
|
-
e.assetMainFileStatus && e.assetMainFileStatus === p(
|
|
14420
|
+
e.assetMainFileStatus && e.assetMainFileStatus === p(Ks).Failed ? (F(), O("div", v7, [
|
|
14421
14421
|
m(Ii, {
|
|
14422
14422
|
dark: "",
|
|
14423
14423
|
type: "error"
|
|
@@ -14791,13 +14791,13 @@ function C7() {
|
|
|
14791
14791
|
getAuthorTypeOption: (s) => t.value.find((i) => i.value === s)
|
|
14792
14792
|
};
|
|
14793
14793
|
}
|
|
14794
|
-
const { required: x7, minLength: gd } =
|
|
14794
|
+
const { required: x7, minLength: gd } = Ps();
|
|
14795
14795
|
function w7(a, t = void 0) {
|
|
14796
14796
|
const e = S(() => ({
|
|
14797
14797
|
author: {
|
|
14798
14798
|
name: {
|
|
14799
14799
|
required: x7,
|
|
14800
|
-
minLength: gd(
|
|
14800
|
+
minLength: gd(2)
|
|
14801
14801
|
},
|
|
14802
14802
|
identifier: {
|
|
14803
14803
|
minLength: gd(3)
|
|
@@ -14824,7 +14824,7 @@ function k7() {
|
|
|
14824
14824
|
createdBy: 0,
|
|
14825
14825
|
modifiedBy: 0,
|
|
14826
14826
|
_resourceName: yo,
|
|
14827
|
-
_system:
|
|
14827
|
+
_system: Oe
|
|
14828
14828
|
})
|
|
14829
14829
|
};
|
|
14830
14830
|
}
|
|
@@ -14870,7 +14870,7 @@ const I7 = /* @__PURE__ */ W({
|
|
|
14870
14870
|
return t({
|
|
14871
14871
|
open: f
|
|
14872
14872
|
}), (A, y) => {
|
|
14873
|
-
const P =
|
|
14873
|
+
const P = Be("ABtnSecondary"), N = Be("ABtnPrimary"), R = Be("ABtnTertiary");
|
|
14874
14874
|
return F(), O(Fe, null, [
|
|
14875
14875
|
A.variant === "listItem" ? (F(), E(je, { key: 0 }, {
|
|
14876
14876
|
default: V(() => [
|
|
@@ -14936,10 +14936,10 @@ const I7 = /* @__PURE__ */ W({
|
|
|
14936
14936
|
]),
|
|
14937
14937
|
_: 1
|
|
14938
14938
|
}),
|
|
14939
|
-
m(
|
|
14939
|
+
m(Ms, null, {
|
|
14940
14940
|
default: V(() => [
|
|
14941
14941
|
m(Oa, {
|
|
14942
|
-
system: p(
|
|
14942
|
+
system: p(Oe),
|
|
14943
14943
|
subject: "author"
|
|
14944
14944
|
}, {
|
|
14945
14945
|
default: V(() => [
|
|
@@ -15050,7 +15050,7 @@ const I7 = /* @__PURE__ */ W({
|
|
|
15050
15050
|
set(M) {
|
|
15051
15051
|
s("update:modelValue", [...M]);
|
|
15052
15052
|
}
|
|
15053
|
-
}), r = K(""), o = K(!1), l = K(/* @__PURE__ */ new Map()), { t: n } = ee(), d = S(() => !!e.required), { requiredIf: c } =
|
|
15053
|
+
}), r = K(""), o = K(!1), l = K(/* @__PURE__ */ new Map()), { t: n } = ee(), d = S(() => !!e.required), { requiredIf: c } = Ps(), u = {
|
|
15054
15054
|
modelValueComputed: {
|
|
15055
15055
|
// eslint-disable-next-line vue/no-ref-object-reactivity-loss
|
|
15056
15056
|
required: c(d.value)
|
|
@@ -15080,7 +15080,7 @@ const I7 = /* @__PURE__ */ W({
|
|
|
15080
15080
|
}
|
|
15081
15081
|
));
|
|
15082
15082
|
return (M, D) => {
|
|
15083
|
-
const $ =
|
|
15083
|
+
const $ = Be("ABtnSecondary");
|
|
15084
15084
|
return F(), O(Fe, null, [
|
|
15085
15085
|
U("div", _7, [
|
|
15086
15086
|
m(Ku, {
|
|
@@ -15272,7 +15272,7 @@ function T7() {
|
|
|
15272
15272
|
createdBy: 1,
|
|
15273
15273
|
modifiedBy: 1,
|
|
15274
15274
|
_resourceName: ar,
|
|
15275
|
-
_system:
|
|
15275
|
+
_system: Oe
|
|
15276
15276
|
})
|
|
15277
15277
|
};
|
|
15278
15278
|
}
|
|
@@ -15299,7 +15299,7 @@ const E7 = { class: "d-flex" }, So = /* @__PURE__ */ W({
|
|
|
15299
15299
|
set(x) {
|
|
15300
15300
|
s("update:modelValue", [...x]);
|
|
15301
15301
|
}
|
|
15302
|
-
}), r = K(""), o = K(!1), l = K(/* @__PURE__ */ new Map()), n = S(() => !!e.required), { requiredIf: d } =
|
|
15302
|
+
}), r = K(""), o = K(!1), l = K(/* @__PURE__ */ new Map()), n = S(() => !!e.required), { requiredIf: d } = Ps(), c = {
|
|
15303
15303
|
modelValueComputed: {
|
|
15304
15304
|
required: d(n)
|
|
15305
15305
|
}
|
|
@@ -15336,7 +15336,7 @@ const E7 = { class: "d-flex" }, So = /* @__PURE__ */ W({
|
|
|
15336
15336
|
}
|
|
15337
15337
|
));
|
|
15338
15338
|
return (x, I) => {
|
|
15339
|
-
const k =
|
|
15339
|
+
const k = Be("ABtnSecondary");
|
|
15340
15340
|
return F(), O("div", E7, [
|
|
15341
15341
|
m(Ku, {
|
|
15342
15342
|
modelValue: i.value,
|
|
@@ -15632,7 +15632,7 @@ const E7 = { class: "d-flex" }, So = /* @__PURE__ */ W({
|
|
|
15632
15632
|
}),
|
|
15633
15633
|
m(oe, { cols: "9" }, {
|
|
15634
15634
|
default: V(() => [
|
|
15635
|
-
z(_(p(
|
|
15635
|
+
z(_(p(Ts)(p(r).createdAt)), 1)
|
|
15636
15636
|
]),
|
|
15637
15637
|
_: 1
|
|
15638
15638
|
})
|
|
@@ -15649,7 +15649,7 @@ const E7 = { class: "d-flex" }, So = /* @__PURE__ */ W({
|
|
|
15649
15649
|
}),
|
|
15650
15650
|
m(oe, { cols: "9" }, {
|
|
15651
15651
|
default: V(() => [
|
|
15652
|
-
z(_(p(
|
|
15652
|
+
z(_(p(Ts)(p(r).modifiedAt)), 1)
|
|
15653
15653
|
]),
|
|
15654
15654
|
_: 1
|
|
15655
15655
|
})
|
|
@@ -15751,7 +15751,7 @@ const E7 = { class: "d-flex" }, So = /* @__PURE__ */ W({
|
|
|
15751
15751
|
}
|
|
15752
15752
|
};
|
|
15753
15753
|
return (h, g) => {
|
|
15754
|
-
const w =
|
|
15754
|
+
const w = Be("ABtnPrimary");
|
|
15755
15755
|
return F(), O(Fe, null, [
|
|
15756
15756
|
h.isActive ? (F(), E(pl, {
|
|
15757
15757
|
key: 0,
|
|
@@ -15835,7 +15835,7 @@ const E7 = { class: "d-flex" }, So = /* @__PURE__ */ W({
|
|
|
15835
15835
|
}
|
|
15836
15836
|
}, { t: d } = ee();
|
|
15837
15837
|
return (c, u) => {
|
|
15838
|
-
const f =
|
|
15838
|
+
const f = Be("ABtnTertiary");
|
|
15839
15839
|
return F(), O("div", null, [
|
|
15840
15840
|
U("div", P7, _(p(d)("common.damImage.asset.detail.roi.rotate.rotateMainFileImage")), 1),
|
|
15841
15841
|
o.value ? (F(), O("div", R7, [
|
|
@@ -15882,7 +15882,7 @@ const E7 = { class: "d-flex" }, So = /* @__PURE__ */ W({
|
|
|
15882
15882
|
queueKey: {}
|
|
15883
15883
|
},
|
|
15884
15884
|
setup(a) {
|
|
15885
|
-
const { t } = ee(), e = Nc(), s = ya(), i =
|
|
15885
|
+
const { t } = ee(), e = Nc(), s = ya(), i = Rs(), { damClient: r } = it(), o = async () => {
|
|
15886
15886
|
if (e.imageFile) {
|
|
15887
15887
|
e.showLoader();
|
|
15888
15888
|
const n = await j7(r, e.imageFile.id, i, {});
|
|
@@ -15902,7 +15902,7 @@ const E7 = { class: "d-flex" }, So = /* @__PURE__ */ W({
|
|
|
15902
15902
|
e.reset(), e.showLoader(), s.asset && s.asset.mainFile && nr(s.asset.mainFile) && (e.setImageFile(ye(s.asset.mainFile)), await o()), e.hideLoader();
|
|
15903
15903
|
}), (n, d) => {
|
|
15904
15904
|
var u;
|
|
15905
|
-
const c =
|
|
15905
|
+
const c = Be("ABtnTertiary");
|
|
15906
15906
|
return F(), O(Fe, null, [
|
|
15907
15907
|
n.isActive ? (F(), E(pl, {
|
|
15908
15908
|
key: 0,
|
|
@@ -16175,7 +16175,7 @@ function hY() {
|
|
|
16175
16175
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
16176
16176
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
16177
16177
|
}
|
|
16178
|
-
var Do = typeof window < "u" && typeof window.document < "u", Ia = Do ? window : {}, Fl = Do && Ia.document.documentElement ? "ontouchstart" in Ia.document.documentElement : !1, ql = Do ? "PointerEvent" in Ia : !1, Je = "cropper", Yl = "all", Qc = "crop", em = "move", tm = "zoom", ys = "e", bs = "w",
|
|
16178
|
+
var Do = typeof window < "u" && typeof window.document < "u", Ia = Do ? window : {}, Fl = Do && Ia.document.documentElement ? "ontouchstart" in Ia.document.documentElement : !1, ql = Do ? "PointerEvent" in Ia : !1, Je = "cropper", Yl = "all", Qc = "crop", em = "move", tm = "zoom", ys = "e", bs = "w", Hs = "s", as = "n", Ci = "ne", xi = "nw", wi = "se", ki = "sw", Tn = "".concat(Je, "-crop"), Xd = "".concat(Je, "-disabled"), Bt = "".concat(Je, "-hidden"), Ad = "".concat(Je, "-hide"), gY = "".concat(Je, "-invisible"), ao = "".concat(Je, "-modal"), En = "".concat(Je, "-move"), ji = "".concat(Je, "Action"), xr = "".concat(Je, "Preview"), Xl = "crop", am = "move", sm = "none", Mn = "crop", $n = "cropend", Bn = "cropmove", Pn = "cropstart", yd = "dblclick", FY = Fl ? "touchstart" : "mousedown", qY = Fl ? "touchmove" : "mousemove", YY = Fl ? "touchend touchcancel" : "mouseup", bd = ql ? "pointerdown" : FY, Cd = ql ? "pointermove" : qY, xd = ql ? "pointerup pointercancel" : YY, wd = "ready", kd = "resize", Id = "wheel", Rn = "zoom", _d = "image/jpeg", XY = /^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/, AY = /^data:/, yY = /^data:image\/jpeg;base64,/, bY = /^img|canvas$/i, im = 200, rm = 100, Sd = {
|
|
16179
16179
|
// Define the view mode of the cropper
|
|
16180
16180
|
viewMode: 0,
|
|
16181
16181
|
// 0, 1, 2, 3
|
|
@@ -16247,7 +16247,7 @@ var Do = typeof window < "u" && typeof window.document < "u", Ia = Do ? window :
|
|
|
16247
16247
|
crop: null,
|
|
16248
16248
|
zoom: null
|
|
16249
16249
|
}, CY = '<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>', xY = Number.isNaN || Ia.isNaN;
|
|
16250
|
-
function
|
|
16250
|
+
function Me(a) {
|
|
16251
16251
|
return typeof a == "number" && !xY(a);
|
|
16252
16252
|
}
|
|
16253
16253
|
var Dd = function(t) {
|
|
@@ -16256,12 +16256,12 @@ var Dd = function(t) {
|
|
|
16256
16256
|
function fn(a) {
|
|
16257
16257
|
return typeof a > "u";
|
|
16258
16258
|
}
|
|
16259
|
-
function
|
|
16259
|
+
function Es(a) {
|
|
16260
16260
|
return Dn(a) === "object" && a !== null;
|
|
16261
16261
|
}
|
|
16262
16262
|
var wY = Object.prototype.hasOwnProperty;
|
|
16263
|
-
function
|
|
16264
|
-
if (!
|
|
16263
|
+
function ti(a) {
|
|
16264
|
+
if (!Es(a))
|
|
16265
16265
|
return !1;
|
|
16266
16266
|
try {
|
|
16267
16267
|
var t = a.constructor, e = t.prototype;
|
|
@@ -16278,17 +16278,17 @@ function om(a) {
|
|
|
16278
16278
|
return Array.from ? Array.from(a) : kY.call(a);
|
|
16279
16279
|
}
|
|
16280
16280
|
function pt(a, t) {
|
|
16281
|
-
return a && $t(t) && (Array.isArray(a) ||
|
|
16281
|
+
return a && $t(t) && (Array.isArray(a) || Me(a.length) ? om(a).forEach(function(e, s) {
|
|
16282
16282
|
t.call(a, e, s, a);
|
|
16283
|
-
}) :
|
|
16283
|
+
}) : Es(a) && Object.keys(a).forEach(function(e) {
|
|
16284
16284
|
t.call(a, a[e], e, a);
|
|
16285
16285
|
})), a;
|
|
16286
16286
|
}
|
|
16287
16287
|
var et = Object.assign || function(t) {
|
|
16288
16288
|
for (var e = arguments.length, s = new Array(e > 1 ? e - 1 : 0), i = 1; i < e; i++)
|
|
16289
16289
|
s[i - 1] = arguments[i];
|
|
16290
|
-
return
|
|
16291
|
-
|
|
16290
|
+
return Es(t) && s.length > 0 && s.forEach(function(r) {
|
|
16291
|
+
Es(r) && Object.keys(r).forEach(function(o) {
|
|
16292
16292
|
t[o] = r[o];
|
|
16293
16293
|
});
|
|
16294
16294
|
}), t;
|
|
@@ -16301,7 +16301,7 @@ var _Y = /^width|height|left|top|marginLeft|marginTop$/;
|
|
|
16301
16301
|
function cs(a, t) {
|
|
16302
16302
|
var e = a.style;
|
|
16303
16303
|
pt(t, function(s, i) {
|
|
16304
|
-
_Y.test(i) &&
|
|
16304
|
+
_Y.test(i) && Me(s) && (s = "".concat(s, "px")), e[i] = s;
|
|
16305
16305
|
});
|
|
16306
16306
|
}
|
|
16307
16307
|
function SY(a, t) {
|
|
@@ -16309,7 +16309,7 @@ function SY(a, t) {
|
|
|
16309
16309
|
}
|
|
16310
16310
|
function qt(a, t) {
|
|
16311
16311
|
if (t) {
|
|
16312
|
-
if (
|
|
16312
|
+
if (Me(a.length)) {
|
|
16313
16313
|
pt(a, function(s) {
|
|
16314
16314
|
qt(s, t);
|
|
16315
16315
|
});
|
|
@@ -16325,7 +16325,7 @@ function qt(a, t) {
|
|
|
16325
16325
|
}
|
|
16326
16326
|
function wa(a, t) {
|
|
16327
16327
|
if (t) {
|
|
16328
|
-
if (
|
|
16328
|
+
if (Me(a.length)) {
|
|
16329
16329
|
pt(a, function(e) {
|
|
16330
16330
|
wa(e, t);
|
|
16331
16331
|
});
|
|
@@ -16338,11 +16338,11 @@ function wa(a, t) {
|
|
|
16338
16338
|
a.className.indexOf(t) >= 0 && (a.className = a.className.replace(t, ""));
|
|
16339
16339
|
}
|
|
16340
16340
|
}
|
|
16341
|
-
function
|
|
16341
|
+
function ai(a, t, e) {
|
|
16342
16342
|
if (t) {
|
|
16343
|
-
if (
|
|
16343
|
+
if (Me(a.length)) {
|
|
16344
16344
|
pt(a, function(s) {
|
|
16345
|
-
|
|
16345
|
+
ai(s, t, e);
|
|
16346
16346
|
});
|
|
16347
16347
|
return;
|
|
16348
16348
|
}
|
|
@@ -16354,13 +16354,13 @@ function Al(a) {
|
|
|
16354
16354
|
return a.replace(DY, "$1-$2").toLowerCase();
|
|
16355
16355
|
}
|
|
16356
16356
|
function On(a, t) {
|
|
16357
|
-
return
|
|
16357
|
+
return Es(a[t]) ? a[t] : a.dataset ? a.dataset[t] : a.getAttribute("data-".concat(Al(t)));
|
|
16358
16358
|
}
|
|
16359
16359
|
function Hi(a, t, e) {
|
|
16360
|
-
|
|
16360
|
+
Es(e) ? a[t] = e : a.dataset ? a.dataset[t] = e : a.setAttribute("data-".concat(Al(t)), e);
|
|
16361
16361
|
}
|
|
16362
16362
|
function KY(a, t) {
|
|
16363
|
-
if (
|
|
16363
|
+
if (Es(a[t]))
|
|
16364
16364
|
try {
|
|
16365
16365
|
delete a[t];
|
|
16366
16366
|
} catch {
|
|
@@ -16447,7 +16447,7 @@ function Td(a) {
|
|
|
16447
16447
|
}
|
|
16448
16448
|
function Oi(a) {
|
|
16449
16449
|
var t = a.rotate, e = a.scaleX, s = a.scaleY, i = a.translateX, r = a.translateY, o = [];
|
|
16450
|
-
|
|
16450
|
+
Me(i) && i !== 0 && o.push("translateX(".concat(i, "px)")), Me(r) && r !== 0 && o.push("translateY(".concat(r, "px)")), Me(t) && t !== 0 && o.push("rotate(".concat(t, "deg)")), Me(e) && e !== 1 && o.push("scaleX(".concat(e, ")")), Me(s) && s !== 1 && o.push("scaleY(".concat(s, ")"));
|
|
16451
16451
|
var l = o.length ? o.join(" ") : "none";
|
|
16452
16452
|
return {
|
|
16453
16453
|
WebkitTransform: l,
|
|
@@ -16815,7 +16815,7 @@ var NY = {
|
|
|
16815
16815
|
cropStart: function(t) {
|
|
16816
16816
|
var e = t.buttons, s = t.button;
|
|
16817
16817
|
if (!(this.disabled || (t.type === "mousedown" || t.type === "pointerdown" && t.pointerType === "mouse") && // No primary button (Usually the left button)
|
|
16818
|
-
(
|
|
16818
|
+
(Me(e) && e !== 1 || Me(s) && s !== 0 || t.ctrlKey))) {
|
|
16819
16819
|
var i = this.options, r = this.pointers, o;
|
|
16820
16820
|
t.changedTouches ? pt(t.changedTouches, function(l) {
|
|
16821
16821
|
r[l.identifier] = wr(l);
|
|
@@ -16842,7 +16842,7 @@ var NY = {
|
|
|
16842
16842
|
var e = this.action, s = this.pointers;
|
|
16843
16843
|
t.changedTouches ? pt(t.changedTouches, function(i) {
|
|
16844
16844
|
delete s[i.identifier];
|
|
16845
|
-
}) : delete s[t.pointerId || 0], e && (t.preventDefault(), Object.keys(s).length || (this.action = ""), this.cropping && (this.cropping = !1,
|
|
16845
|
+
}) : delete s[t.pointerId || 0], e && (t.preventDefault(), Object.keys(s).length || (this.action = ""), this.cropping && (this.cropping = !1, ai(this.dragBox, ao, this.cropped && this.options.modal)), oi(this.element, $n, {
|
|
16846
16846
|
originalEvent: t,
|
|
16847
16847
|
action: e
|
|
16848
16848
|
}));
|
|
@@ -16866,7 +16866,7 @@ var NY = {
|
|
|
16866
16866
|
case as:
|
|
16867
16867
|
c + y.y < g && (y.y = g - c);
|
|
16868
16868
|
break;
|
|
16869
|
-
case
|
|
16869
|
+
case Hs:
|
|
16870
16870
|
v + y.y > Y && (y.y = Y - v);
|
|
16871
16871
|
break;
|
|
16872
16872
|
}
|
|
@@ -16887,7 +16887,7 @@ var NY = {
|
|
|
16887
16887
|
C = !1;
|
|
16888
16888
|
break;
|
|
16889
16889
|
}
|
|
16890
|
-
P(as), f -= y.y, c += y.y, f < 0 && (l =
|
|
16890
|
+
P(as), f -= y.y, c += y.y, f < 0 && (l = Hs, f = -f, c -= f), n && (u = f * n, d += (r.width - u) / 2);
|
|
16891
16891
|
break;
|
|
16892
16892
|
case bs:
|
|
16893
16893
|
if (y.x <= 0 && (d <= h || n && (c <= g || v >= Y))) {
|
|
@@ -16896,12 +16896,12 @@ var NY = {
|
|
|
16896
16896
|
}
|
|
16897
16897
|
P(bs), u -= y.x, d += y.x, u < 0 && (l = ys, u = -u, d -= u), n && (f = u / n, c += (r.height - f) / 2);
|
|
16898
16898
|
break;
|
|
16899
|
-
case
|
|
16899
|
+
case Hs:
|
|
16900
16900
|
if (y.y >= 0 && (v >= Y || n && (d <= h || q >= w))) {
|
|
16901
16901
|
C = !1;
|
|
16902
16902
|
break;
|
|
16903
16903
|
}
|
|
16904
|
-
P(
|
|
16904
|
+
P(Hs), f += y.y, f < 0 && (l = as, f = -f, c -= f), n && (u = f * n, d += (r.width - u) / 2);
|
|
16905
16905
|
break;
|
|
16906
16906
|
case Ci:
|
|
16907
16907
|
if (n) {
|
|
@@ -16933,7 +16933,7 @@ var NY = {
|
|
|
16933
16933
|
}
|
|
16934
16934
|
P(bs), u -= y.x, d += y.x, f = u / n;
|
|
16935
16935
|
} else
|
|
16936
|
-
P(
|
|
16936
|
+
P(Hs), P(bs), y.x <= 0 ? d > h ? (u -= y.x, d += y.x) : y.y >= 0 && v >= Y && (C = !1) : (u -= y.x, d += y.x), y.y >= 0 ? v < Y && (f += y.y) : f += y.y;
|
|
16937
16937
|
u < 0 && f < 0 ? (l = Ci, f = -f, u = -u, c -= f, d -= u) : u < 0 ? (l = wi, u = -u, d -= u) : f < 0 && (l = xi, f = -f, c -= f);
|
|
16938
16938
|
break;
|
|
16939
16939
|
case wi:
|
|
@@ -16944,7 +16944,7 @@ var NY = {
|
|
|
16944
16944
|
}
|
|
16945
16945
|
P(ys), u += y.x, f = u / n;
|
|
16946
16946
|
} else
|
|
16947
|
-
P(
|
|
16947
|
+
P(Hs), P(ys), y.x >= 0 ? q < w ? u += y.x : y.y >= 0 && v >= Y && (C = !1) : u += y.x, y.y >= 0 ? v < Y && (f += y.y) : f += y.y;
|
|
16948
16948
|
u < 0 && f < 0 ? (l = xi, f = -f, u = -u, c -= f, d -= u) : u < 0 ? (l = ki, u = -u, d -= u) : f < 0 && (l = Ci, f = -f, c -= f);
|
|
16949
16949
|
break;
|
|
16950
16950
|
case em:
|
|
@@ -17029,7 +17029,7 @@ var NY = {
|
|
|
17029
17029
|
*/
|
|
17030
17030
|
moveTo: function(t) {
|
|
17031
17031
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : t, s = this.canvasData, i = !1;
|
|
17032
|
-
return t = Number(t), e = Number(e), this.ready && !this.disabled && this.options.movable && (
|
|
17032
|
+
return t = Number(t), e = Number(e), this.ready && !this.disabled && this.options.movable && (Me(t) && (s.left = t, i = !0), Me(e) && (s.top = e, i = !0), i && this.renderCanvas(!0)), this;
|
|
17033
17033
|
},
|
|
17034
17034
|
/**
|
|
17035
17035
|
* Zoom the canvas with a relative ratio
|
|
@@ -17064,7 +17064,7 @@ var NY = {
|
|
|
17064
17064
|
pageY: s.pageY
|
|
17065
17065
|
};
|
|
17066
17066
|
r.left -= (c - o) * ((v.pageX - q.left - r.left) / o), r.top -= (u - l) * ((v.pageY - q.top - r.top) / l);
|
|
17067
|
-
} else
|
|
17067
|
+
} else ti(e) && Me(e.x) && Me(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);
|
|
17068
17068
|
r.width = c, r.height = u, this.renderCanvas(!0);
|
|
17069
17069
|
}
|
|
17070
17070
|
return this;
|
|
@@ -17083,7 +17083,7 @@ var NY = {
|
|
|
17083
17083
|
* @returns {Cropper} this
|
|
17084
17084
|
*/
|
|
17085
17085
|
rotateTo: function(t) {
|
|
17086
|
-
return t = Number(t),
|
|
17086
|
+
return t = Number(t), Me(t) && this.ready && !this.disabled && this.options.rotatable && (this.imageData.rotate = t % 360, this.renderCanvas(!0, !0)), this;
|
|
17087
17087
|
},
|
|
17088
17088
|
/**
|
|
17089
17089
|
* Scale the image on the x-axis.
|
|
@@ -17092,7 +17092,7 @@ var NY = {
|
|
|
17092
17092
|
*/
|
|
17093
17093
|
scaleX: function(t) {
|
|
17094
17094
|
var e = this.imageData.scaleY;
|
|
17095
|
-
return this.scale(t,
|
|
17095
|
+
return this.scale(t, Me(e) ? e : 1);
|
|
17096
17096
|
},
|
|
17097
17097
|
/**
|
|
17098
17098
|
* Scale the image on the y-axis.
|
|
@@ -17101,7 +17101,7 @@ var NY = {
|
|
|
17101
17101
|
*/
|
|
17102
17102
|
scaleY: function(t) {
|
|
17103
17103
|
var e = this.imageData.scaleX;
|
|
17104
|
-
return this.scale(
|
|
17104
|
+
return this.scale(Me(e) ? e : 1, t);
|
|
17105
17105
|
},
|
|
17106
17106
|
/**
|
|
17107
17107
|
* Scale the image
|
|
@@ -17111,7 +17111,7 @@ var NY = {
|
|
|
17111
17111
|
*/
|
|
17112
17112
|
scale: function(t) {
|
|
17113
17113
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : t, s = this.imageData, i = !1;
|
|
17114
|
-
return t = Number(t), e = Number(e), this.ready && !this.disabled && this.options.scalable && (
|
|
17114
|
+
return t = Number(t), e = Number(e), this.ready && !this.disabled && this.options.scalable && (Me(t) && (s.scaleX = t, i = !0), Me(e) && (s.scaleY = e, i = !0), i && this.renderCanvas(!0, !0)), this;
|
|
17115
17115
|
},
|
|
17116
17116
|
/**
|
|
17117
17117
|
* Get the cropped area position and size data (base on the original image)
|
|
@@ -17150,11 +17150,11 @@ var NY = {
|
|
|
17150
17150
|
*/
|
|
17151
17151
|
setData: function(t) {
|
|
17152
17152
|
var e = this.options, s = this.imageData, i = this.canvasData, r = {};
|
|
17153
|
-
if (this.ready && !this.disabled &&
|
|
17153
|
+
if (this.ready && !this.disabled && ti(t)) {
|
|
17154
17154
|
var o = !1;
|
|
17155
|
-
e.rotatable &&
|
|
17155
|
+
e.rotatable && Me(t.rotate) && t.rotate !== s.rotate && (s.rotate = t.rotate, o = !0), e.scalable && (Me(t.scaleX) && t.scaleX !== s.scaleX && (s.scaleX = t.scaleX, o = !0), Me(t.scaleY) && t.scaleY !== s.scaleY && (s.scaleY = t.scaleY, o = !0)), o && this.renderCanvas(!0, !0);
|
|
17156
17156
|
var l = s.width / s.naturalWidth;
|
|
17157
|
-
|
|
17157
|
+
Me(t.x) && (r.left = t.x * l + i.left), Me(t.y) && (r.top = t.y * l + i.top), Me(t.width) && (r.width = t.width * l), Me(t.height) && (r.height = t.height * l), this.setCropBoxData(r);
|
|
17158
17158
|
}
|
|
17159
17159
|
return this;
|
|
17160
17160
|
},
|
|
@@ -17189,7 +17189,7 @@ var NY = {
|
|
|
17189
17189
|
*/
|
|
17190
17190
|
setCanvasData: function(t) {
|
|
17191
17191
|
var e = this.canvasData, s = e.aspectRatio;
|
|
17192
|
-
return this.ready && !this.disabled &&
|
|
17192
|
+
return this.ready && !this.disabled && ti(t) && (Me(t.left) && (e.left = t.left), Me(t.top) && (e.top = t.top), Me(t.width) ? (e.width = t.width, e.height = t.width / s) : Me(t.height) && (e.height = t.height, e.width = t.height * s), this.renderCanvas(!0)), this;
|
|
17193
17193
|
},
|
|
17194
17194
|
/**
|
|
17195
17195
|
* Get the crop box position and size data.
|
|
@@ -17211,7 +17211,7 @@ var NY = {
|
|
|
17211
17211
|
*/
|
|
17212
17212
|
setCropBoxData: function(t) {
|
|
17213
17213
|
var e = this.cropBoxData, s = this.options.aspectRatio, i, r;
|
|
17214
|
-
return this.ready && this.cropped && !this.disabled &&
|
|
17214
|
+
return this.ready && this.cropped && !this.disabled && ti(t) && (Me(t.left) && (e.left = t.left), Me(t.top) && (e.top = t.top), Me(t.width) && t.width !== e.width && (i = !0, e.width = t.width), Me(t.height) && t.height !== e.height && (r = !0, e.height = t.height), s && (i ? e.height = e.width / s : r && (e.width = e.height * s)), this.renderCropBox()), this;
|
|
17215
17215
|
},
|
|
17216
17216
|
/**
|
|
17217
17217
|
* Get a canvas drawn the cropped image.
|
|
@@ -17274,7 +17274,7 @@ var NY = {
|
|
|
17274
17274
|
var e = this.options, s = this.dragBox, i = this.face;
|
|
17275
17275
|
if (this.ready && !this.disabled) {
|
|
17276
17276
|
var r = t === Xl, o = e.movable && t === am;
|
|
17277
|
-
t = r || o ? t : sm, e.dragMode = t, Hi(s, ji, t),
|
|
17277
|
+
t = r || o ? t : sm, e.dragMode = t, Hi(s, ji, t), ai(s, Tn, r), ai(s, En, o), e.cropBoxMovable || (Hi(i, ji, t), ai(i, Tn, r), ai(i, En, o));
|
|
17278
17278
|
}
|
|
17279
17279
|
return this;
|
|
17280
17280
|
}
|
|
@@ -17283,7 +17283,7 @@ var NY = {
|
|
|
17283
17283
|
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
17284
17284
|
if (cY(this, a), !t || !bY.test(t.tagName))
|
|
17285
17285
|
throw new Error("The first argument is required and must be an <img> or <canvas> element.");
|
|
17286
|
-
this.element = t, this.options = et({}, Sd,
|
|
17286
|
+
this.element = t, this.options = et({}, Sd, ti(e) && e), this.cropped = !1, this.disabled = !1, this.pointers = {}, this.ready = !1, this.reloading = !1, this.replaced = !1, this.sized = !1, this.sizing = !1, this.init();
|
|
17287
17287
|
}
|
|
17288
17288
|
return mY(a, [{
|
|
17289
17289
|
key: "init",
|
|
@@ -17411,7 +17411,7 @@ var NY = {
|
|
|
17411
17411
|
}, {
|
|
17412
17412
|
key: "setDefaults",
|
|
17413
17413
|
value: function(e) {
|
|
17414
|
-
et(Sd,
|
|
17414
|
+
et(Sd, ti(e) && e);
|
|
17415
17415
|
}
|
|
17416
17416
|
}]);
|
|
17417
17417
|
}();
|
|
@@ -17950,7 +17950,7 @@ const fX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
17950
17950
|
}),
|
|
17951
17951
|
m(oe, { cols: "9" }, {
|
|
17952
17952
|
default: V(() => [
|
|
17953
|
-
z(_(p(
|
|
17953
|
+
z(_(p(Ts)(p(r).createdAt)), 1)
|
|
17954
17954
|
]),
|
|
17955
17955
|
_: 1
|
|
17956
17956
|
})
|
|
@@ -17967,7 +17967,7 @@ const fX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
17967
17967
|
}),
|
|
17968
17968
|
m(oe, { cols: "9" }, {
|
|
17969
17969
|
default: V(() => [
|
|
17970
|
-
z(_(p(
|
|
17970
|
+
z(_(p(Ts)(p(r).modifiedAt)), 1)
|
|
17971
17971
|
]),
|
|
17972
17972
|
_: 1
|
|
17973
17973
|
})
|
|
@@ -18068,7 +18068,7 @@ const fX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
18068
18068
|
e("onSaveAndApply");
|
|
18069
18069
|
};
|
|
18070
18070
|
return (n, d) => {
|
|
18071
|
-
const c =
|
|
18071
|
+
const c = Be("ABtnSecondary"), u = Be("ABtnPrimary");
|
|
18072
18072
|
return F(), O(Fe, null, [
|
|
18073
18073
|
n.isActive ? (F(), E(pl, {
|
|
18074
18074
|
key: 0,
|
|
@@ -18212,7 +18212,7 @@ const fX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
18212
18212
|
i.value = !1;
|
|
18213
18213
|
}, { t: n } = ee();
|
|
18214
18214
|
return (d, c) => {
|
|
18215
|
-
const u =
|
|
18215
|
+
const u = Be("ABtnTertiary"), f = Be("ABtnPrimary");
|
|
18216
18216
|
return F(), O(Fe, null, [
|
|
18217
18217
|
m(ie, {
|
|
18218
18218
|
variant: "flat",
|
|
@@ -18386,9 +18386,9 @@ const fX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
18386
18386
|
var Ae;
|
|
18387
18387
|
return ((Ae = w.value) == null ? void 0 : Ae.mainFile) || void 0;
|
|
18388
18388
|
}), x = [
|
|
18389
|
-
|
|
18390
|
-
|
|
18391
|
-
], I = S(() => !te(g.value) && x.includes(g.value.status)), k = S(() => !te(g.value) && g.value.status ===
|
|
18389
|
+
Re.Processing,
|
|
18390
|
+
Re.Loading
|
|
18391
|
+
], I = S(() => !te(g.value) && x.includes(g.value.status)), k = S(() => !te(g.value) && g.value.status === Re.Waiting), b = S(() => !te(g.value) && g.value.status === Re.Uploaded), T = S(() => !e.disableDoneAnimation && b.value), B = S(() => !te(g.value) && g.value.status === Re.Uploading), H = S(() => {
|
|
18392
18392
|
var Ae;
|
|
18393
18393
|
return (Ae = g.value) == null ? void 0 : Ae.progress.progressPercent;
|
|
18394
18394
|
}), { damClient: G } = it(), Z = async () => {
|
|
@@ -18401,7 +18401,7 @@ const fX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
18401
18401
|
i(Ae);
|
|
18402
18402
|
} finally {
|
|
18403
18403
|
}
|
|
18404
|
-
},
|
|
18404
|
+
}, ze = async () => {
|
|
18405
18405
|
var ue;
|
|
18406
18406
|
if (h.value.length === 0) return;
|
|
18407
18407
|
let Ae = "", Q = "";
|
|
@@ -18409,7 +18409,7 @@ const fX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
18409
18409
|
const ce = await Wr(G, h.value, n.mainFileSingleUse);
|
|
18410
18410
|
if (!ce[0])
|
|
18411
18411
|
throw new Error("Fatal error updating asset metadata");
|
|
18412
|
-
r("updated"), Ut((ue = ce[0].customData) == null ? void 0 : ue.description) && (Ae = ce[0].customData.description.trim()), ce[0].authors.length > 0 && (Q = (await Fi(G, e.extSystem, ce[0].authors)).map((
|
|
18412
|
+
r("updated"), Ut((ue = ce[0].customData) == null ? void 0 : ue.description) && (Ae = ce[0].customData.description.trim()), ce[0].authors.length > 0 && (Q = (await Fi(G, e.extSystem, ce[0].authors)).map((Le) => Le.name).join(", ")), s(
|
|
18413
18413
|
"onApply",
|
|
18414
18414
|
h.value.map((we) => ({
|
|
18415
18415
|
texts: {
|
|
@@ -18569,7 +18569,7 @@ const fX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
18569
18569
|
"asset-main-file-status": $.value ? $.value.fileAttributes.status : void 0,
|
|
18570
18570
|
"asset-main-file-fail-reason": $.value ? $.value.fileAttributes.failReason : void 0,
|
|
18571
18571
|
onOnSave: Ke,
|
|
18572
|
-
onOnSaveAndApply:
|
|
18572
|
+
onOnSaveAndApply: ze
|
|
18573
18573
|
}, {
|
|
18574
18574
|
"prepend-sidebar": V(() => {
|
|
18575
18575
|
var ue, ce, we;
|
|
@@ -18685,7 +18685,7 @@ const fX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
18685
18685
|
(c = l.value) == null || c.activate();
|
|
18686
18686
|
}
|
|
18687
18687
|
}), (c, u) => {
|
|
18688
|
-
const f =
|
|
18688
|
+
const f = Be("ABtnTertiary");
|
|
18689
18689
|
return F(), E(gt, {
|
|
18690
18690
|
"model-value": i.value,
|
|
18691
18691
|
persistent: "",
|
|
@@ -18713,7 +18713,7 @@ const fX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
18713
18713
|
]),
|
|
18714
18714
|
_: 3
|
|
18715
18715
|
}),
|
|
18716
|
-
m(
|
|
18716
|
+
m(Ms, null, {
|
|
18717
18717
|
default: V(() => [
|
|
18718
18718
|
m(Qe, null, {
|
|
18719
18719
|
default: V(() => [
|
|
@@ -18844,7 +18844,7 @@ const fX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
18844
18844
|
}, pe = (le) => {
|
|
18845
18845
|
const ke = q.value;
|
|
18846
18846
|
L(ke) || (G.value = ke.extSystem, X.addByFiles(s.queueKey, ke.extSystem, ke.licence, le), y.value = s.queueKey);
|
|
18847
|
-
}, { uploadSizes: Ke, uploadAccept:
|
|
18847
|
+
}, { uploadSizes: Ke, uploadAccept: ze } = Ac(
|
|
18848
18848
|
Xe.Image,
|
|
18849
18849
|
q.value.extSystemConfig
|
|
18850
18850
|
), Ae = async (le, ke, At = !1) => {
|
|
@@ -18903,8 +18903,8 @@ const fX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
18903
18903
|
};
|
|
18904
18904
|
te(r.value) || (ts.id = r.value), A.setImageDetail(ts), $.value = !1, Te();
|
|
18905
18905
|
}
|
|
18906
|
-
}, ce = ya(), { loading: we, dialog:
|
|
18907
|
-
we.value = !0,
|
|
18906
|
+
}, ce = ya(), { loading: we, dialog: Le } = _t(ce), { damClient: Ve } = it(), se = async (le) => {
|
|
18907
|
+
we.value = !0, Le.value = s.queueKey;
|
|
18908
18908
|
try {
|
|
18909
18909
|
const ke = await Yo(Ve, le), At = await el(Ve, ke.licence);
|
|
18910
18910
|
At.extSystem && (G.value = At.extSystem), ce.setAsset(ke);
|
|
@@ -18953,7 +18953,7 @@ const fX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
18953
18953
|
}
|
|
18954
18954
|
(le = Se.value) == null || le.activate();
|
|
18955
18955
|
}
|
|
18956
|
-
}, Ma = K(null),
|
|
18956
|
+
}, Ma = K(null), Ls = () => {
|
|
18957
18957
|
var le;
|
|
18958
18958
|
(le = Ma.value) == null || le.confirm();
|
|
18959
18959
|
}, Yi = () => {
|
|
@@ -18974,7 +18974,7 @@ const fX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
18974
18974
|
), Xt(() => {
|
|
18975
18975
|
A.reset();
|
|
18976
18976
|
}), t({
|
|
18977
|
-
metadataConfirm:
|
|
18977
|
+
metadataConfirm: Ls
|
|
18978
18978
|
}), (le, ke) => {
|
|
18979
18979
|
var At, pa;
|
|
18980
18980
|
return F(), O(Fe, null, [
|
|
@@ -19021,7 +19021,7 @@ const fX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
19021
19021
|
modelValue: x.value,
|
|
19022
19022
|
"onUpdate:modelValue": ke[0] || (ke[0] = (Ne) => x.value = Ne),
|
|
19023
19023
|
"file-input-key": (At = b.value) == null ? void 0 : At.fileInputKey,
|
|
19024
|
-
accept: p(
|
|
19024
|
+
accept: p(ze),
|
|
19025
19025
|
"max-sizes": p(Ke),
|
|
19026
19026
|
onFilesInput: pe
|
|
19027
19027
|
}, {
|
|
@@ -19098,7 +19098,7 @@ const fX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
19098
19098
|
modelValue: x.value,
|
|
19099
19099
|
"onUpdate:modelValue": ke[1] || (ke[1] = (ts) => x.value = ts),
|
|
19100
19100
|
"file-input-key": (Ne = b.value) == null ? void 0 : Ne.fileInputKey,
|
|
19101
|
-
accept: p(
|
|
19101
|
+
accept: p(ze),
|
|
19102
19102
|
"max-sizes": p(Ke),
|
|
19103
19103
|
onFilesInput: pe
|
|
19104
19104
|
}, {
|
|
@@ -19169,7 +19169,7 @@ const fX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
19169
19169
|
m(wo, {
|
|
19170
19170
|
variant: "fill",
|
|
19171
19171
|
transparent: "",
|
|
19172
|
-
accept: p(
|
|
19172
|
+
accept: p(ze),
|
|
19173
19173
|
"max-sizes": p(Ke),
|
|
19174
19174
|
"hide-text": !I.value || qs.value,
|
|
19175
19175
|
onOnClick: Vt,
|
|
@@ -19200,7 +19200,7 @@ const fX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
19200
19200
|
"return-type": "asset",
|
|
19201
19201
|
onOnConfirm: ue
|
|
19202
19202
|
}, null, 8, ["modelValue", "select-licences", "asset-type"]),
|
|
19203
|
-
p(
|
|
19203
|
+
p(Le) === le.queueKey ? (F(), E(fm, {
|
|
19204
19204
|
key: 0,
|
|
19205
19205
|
"queue-key": le.queueKey,
|
|
19206
19206
|
"ext-system": p(G)
|
|
@@ -19211,7 +19211,7 @@ const fX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
19211
19211
|
"ext-system": p(q).extSystem,
|
|
19212
19212
|
"licence-id": p(q).licence,
|
|
19213
19213
|
"file-input-key": ((pa = b.value) == null ? void 0 : pa.fileInputKey) ?? -1,
|
|
19214
|
-
accept: p(
|
|
19214
|
+
accept: p(ze),
|
|
19215
19215
|
"max-sizes": p(Ke),
|
|
19216
19216
|
onOnApply: ct
|
|
19217
19217
|
}, null, 8, ["queue-key", "ext-system", "licence-id", "file-input-key", "accept", "max-sizes"])) : j("", !0)
|
|
@@ -19259,7 +19259,7 @@ const fX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
19259
19259
|
getOrLoadDamConfigExtSystemByLicences: u
|
|
19260
19260
|
} = ia(o), f = ht(void 0);
|
|
19261
19261
|
Xt(async () => {
|
|
19262
|
-
const h =
|
|
19262
|
+
const h = Os();
|
|
19263
19263
|
if (f.value = await c(s.uploadLicence), L(f.value)) {
|
|
19264
19264
|
r.value = "error";
|
|
19265
19265
|
return;
|
|
@@ -19449,14 +19449,14 @@ const fX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
19449
19449
|
s("update:mainFileSingleUse", x);
|
|
19450
19450
|
}
|
|
19451
19451
|
}), { t: n } = ee(), d = [
|
|
19452
|
-
|
|
19453
|
-
|
|
19454
|
-
], c = S(() => d.includes(e.item.status)), u = S(() => e.item.status ===
|
|
19452
|
+
Re.Processing,
|
|
19453
|
+
Re.Loading
|
|
19454
|
+
], c = S(() => d.includes(e.item.status)), u = S(() => e.item.status === Re.Waiting), f = S(() => !e.disableDoneAnimation && e.item.status === Re.Uploaded), q = S(() => e.item.status === Re.Uploading), v = S(() => e.item.progress.progressPercent), h = S(() => e.item.imagePreview ? e.item.imagePreview.url : void 0), g = S(() => e.item.assetType), w = S(() => e.item ? e.item.assetStatus : ho), Y = () => {
|
|
19455
19455
|
s("cancelItem", { index: e.index, item: e.item, queueKey: e.queueKey });
|
|
19456
19456
|
}, C = [
|
|
19457
|
-
|
|
19458
|
-
|
|
19459
|
-
|
|
19457
|
+
Re.Loading,
|
|
19458
|
+
Re.Waiting,
|
|
19459
|
+
Re.Uploading
|
|
19460
19460
|
], X = S(() => C.includes(e.item.status)), A = K(!1), y = K(void 0), P = async () => {
|
|
19461
19461
|
te(e.item.assetId) || s("showDetail", e.item.assetId);
|
|
19462
19462
|
}, N = () => {
|
|
@@ -19465,9 +19465,9 @@ const fX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
19465
19465
|
return qe(
|
|
19466
19466
|
() => e.item.status,
|
|
19467
19467
|
async (x) => {
|
|
19468
|
-
x ===
|
|
19469
|
-
(x ===
|
|
19470
|
-
}, yA * 1e3)) : x ===
|
|
19468
|
+
x === Re.Uploading || x === Re.Processing ? (clearTimeout(y.value), y.value = setTimeout(() => {
|
|
19469
|
+
(x === Re.Uploading || x === Re.Processing) && (A.value = !0);
|
|
19470
|
+
}, yA * 1e3)) : x === Re.Uploaded && (clearTimeout(y.value), y.value = void 0, A.value = !1);
|
|
19471
19471
|
},
|
|
19472
19472
|
{ immediate: !0 }
|
|
19473
19473
|
), Wi(() => {
|
|
@@ -20199,11 +20199,11 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20199
20199
|
}, d = (g) => {
|
|
20200
20200
|
o.removeByIndex(e.queueKey, g);
|
|
20201
20201
|
}, { showWarningT: c } = We(), u = async (g) => {
|
|
20202
|
-
var w;
|
|
20202
|
+
var w, Y;
|
|
20203
20203
|
r.value = !0;
|
|
20204
20204
|
try {
|
|
20205
|
-
const
|
|
20206
|
-
|
|
20205
|
+
const C = await Pa(i, g.assetId);
|
|
20206
|
+
C.attributes.assetStatus === ot.WithFile ? await o.queueItemProcessed(C.id) : ((w = C.mainFile) == null ? void 0 : w.fileAttributes.status) === Ks.Duplicate ? await o.queueItemDuplicate(C.id, C.mainFile.originAssetFile, Xe.Image) : ((Y = C.mainFile) == null ? void 0 : Y.fileAttributes.status) === Ks.Failed ? await o.queueItemFailed(g.assetId, C.mainFile.fileAttributes.failReason) : c("common.damImage.queueItem.stillUploadingOrProcessing");
|
|
20207
20207
|
} catch {
|
|
20208
20208
|
} finally {
|
|
20209
20209
|
r.value = !1;
|
|
@@ -20314,9 +20314,9 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20314
20314
|
return T.filter(
|
|
20315
20315
|
(fe) => !te(fe.assetId) && !te(fe.fileId)
|
|
20316
20316
|
).map((fe) => {
|
|
20317
|
-
var
|
|
20317
|
+
var ze, Ae;
|
|
20318
20318
|
n.value++;
|
|
20319
|
-
const pe = (
|
|
20319
|
+
const pe = (ze = H.get(fe.assetId)) == null ? void 0 : ze.description, Ke = [];
|
|
20320
20320
|
return (Ae = H.get(fe.assetId)) == null || Ae.authorIds.forEach((Q) => {
|
|
20321
20321
|
const ue = Z.get(Q);
|
|
20322
20322
|
!L(ue) && ue.trim().length > 0 && Ke.push(ue);
|
|
@@ -20360,7 +20360,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20360
20360
|
}
|
|
20361
20361
|
};
|
|
20362
20362
|
return (T, B) => {
|
|
20363
|
-
const H =
|
|
20363
|
+
const H = Be("ABtnPrimary");
|
|
20364
20364
|
return F(), E(gt, {
|
|
20365
20365
|
"model-value": !0,
|
|
20366
20366
|
fullscreen: "",
|
|
@@ -20571,7 +20571,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20571
20571
|
v();
|
|
20572
20572
|
}
|
|
20573
20573
|
}), (w, Y) => {
|
|
20574
|
-
const C =
|
|
20574
|
+
const C = Be("ABtnTertiary"), X = Be("ABtnPrimary");
|
|
20575
20575
|
return F(), E(gt, {
|
|
20576
20576
|
modelValue: r.value,
|
|
20577
20577
|
"onUpdate:modelValue": Y[0] || (Y[0] = (A) => r.value = A),
|
|
@@ -20589,7 +20589,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20589
20589
|
]),
|
|
20590
20590
|
_: 1
|
|
20591
20591
|
}),
|
|
20592
|
-
m(
|
|
20592
|
+
m(Ms, null, {
|
|
20593
20593
|
default: V(() => [
|
|
20594
20594
|
f.value ? (F(), O("p", QA, _(p(n)("common.damImage.upload.limits.onUploadLimit", { limit: Cs })), 1)) : (F(), O("p", ey, [
|
|
20595
20595
|
z(_(p(n)("common.damImage.upload.limits.addingOverLimit", { count: l.value.length })) + " ", 1),
|
|
@@ -20717,10 +20717,10 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20717
20717
|
d(ct);
|
|
20718
20718
|
}
|
|
20719
20719
|
return Ve.map((ct) => {
|
|
20720
|
-
var Ma,
|
|
20720
|
+
var Ma, Ls;
|
|
20721
20721
|
Y.value++;
|
|
20722
20722
|
const Se = (Ma = dt.get(ct.id)) == null ? void 0 : Ma.description, Vt = [];
|
|
20723
|
-
return (
|
|
20723
|
+
return (Ls = dt.get(ct.id)) == null || Ls.authorIds.forEach((Yi) => {
|
|
20724
20724
|
const es = Te.get(Yi);
|
|
20725
20725
|
!L(es) && es.trim().length > 0 && Vt.push(es);
|
|
20726
20726
|
}), {
|
|
@@ -20792,9 +20792,9 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20792
20792
|
}
|
|
20793
20793
|
g.removeImageByIndex(Ve);
|
|
20794
20794
|
}
|
|
20795
|
-
}, fe = K(null), pe = K(os()), Ke = K(null),
|
|
20796
|
-
|
|
20797
|
-
|
|
20795
|
+
}, fe = K(null), pe = K(os()), Ke = K(null), ze = K(0), Ae = K(null), Q = S(() => L(s.widgetIdentifierId) ? ll + pe.value : s.widgetIdentifierId), ue = () => {
|
|
20796
|
+
ze.value++, Jt(() => {
|
|
20797
|
+
Le();
|
|
20798
20798
|
});
|
|
20799
20799
|
}, ce = () => {
|
|
20800
20800
|
let Ve = 0;
|
|
@@ -20806,7 +20806,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20806
20806
|
const Ye = w.value.splice(Ve, 1)[0];
|
|
20807
20807
|
w.value.splice(se, 0, Ye), ce(), ue();
|
|
20808
20808
|
}
|
|
20809
|
-
},
|
|
20809
|
+
}, Le = () => {
|
|
20810
20810
|
if (s.disableDraggable || !fe.value) return;
|
|
20811
20811
|
const Ve = fe.value.querySelector("." + to);
|
|
20812
20812
|
Ve && (Ke.value = nl(Ve, [], {
|
|
@@ -20820,7 +20820,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20820
20820
|
}));
|
|
20821
20821
|
};
|
|
20822
20822
|
return Jt(() => {
|
|
20823
|
-
fe.value = document.querySelector("#" + Q.value),
|
|
20823
|
+
fe.value = document.querySelector("#" + Q.value), Le();
|
|
20824
20824
|
}), t({
|
|
20825
20825
|
saveImages: Z
|
|
20826
20826
|
}), Xt(() => {
|
|
@@ -20872,7 +20872,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20872
20872
|
}, null, 8, ["modelValue", "select-licences", "asset-type"]),
|
|
20873
20873
|
U("div", oy, [
|
|
20874
20874
|
(F(), O("div", {
|
|
20875
|
-
key:
|
|
20875
|
+
key: ze.value,
|
|
20876
20876
|
class: ge([p(to), "asset-list-tiles asset-list-tiles--thumbnail"])
|
|
20877
20877
|
}, [
|
|
20878
20878
|
(F(!0), O(Fe, null, He(p(w), (ut, Te) => (F(), E(cA, {
|
|
@@ -20951,7 +20951,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20951
20951
|
getOrLoadDamConfigExtSystemByLicences: u
|
|
20952
20952
|
} = ia(o), f = ht(void 0);
|
|
20953
20953
|
Xt(async () => {
|
|
20954
|
-
const h =
|
|
20954
|
+
const h = Os();
|
|
20955
20955
|
if (f.value = await c(s.uploadLicence), L(f.value)) {
|
|
20956
20956
|
r.value = "error";
|
|
20957
20957
|
return;
|
|
@@ -21056,7 +21056,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
21056
21056
|
const e = a, s = Yt(a, "modelValue"), i = K(""), r = K({ description: "", source: "" }), o = K(""), l = K(null), n = K(!0), d = K(!1), c = rr(e.configName), { imageClient: u } = c, { damClient: f } = it(), { widgetImageToDamImageOriginalUrl: q } = dl(c), { showErrorsDefault: v, showValidationError: h } = We(), { t: g } = ee(), w = (x) => {
|
|
21057
21057
|
const I = /\/image\/original\/([0-9a-fA-F-]+)\.jpg/, k = x.match(I);
|
|
21058
21058
|
return k ? k[1] : void 0;
|
|
21059
|
-
}, Y = (x, I) => I.some((k) => k === x.licence), { required: C, maxLength: X } =
|
|
21059
|
+
}, Y = (x, I) => I.some((k) => k === x.licence), { required: C, maxLength: X } = Ps(), A = {
|
|
21060
21060
|
meta: {
|
|
21061
21061
|
description: {
|
|
21062
21062
|
maxLength: X(255)
|
|
@@ -21275,7 +21275,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
21275
21275
|
fixed: !1
|
|
21276
21276
|
};
|
|
21277
21277
|
function qy(a, t, e = void 0, s = void 0, i = !1, r = void 0, o = void 0, l = void 0) {
|
|
21278
|
-
const n = o ?? De, { t: d } = n.global || n, c =
|
|
21278
|
+
const n = o ?? De, { t: d } = n.global || n, c = Rs();
|
|
21279
21279
|
if (r)
|
|
21280
21280
|
for (const v of Object.keys(c))
|
|
21281
21281
|
v in r && (c[v] = r[v]);
|
|
@@ -21461,7 +21461,7 @@ const bK = (a, t, e = "", s = {}, i = null, r, o, l = {}) => new Promise((n, d)
|
|
|
21461
21461
|
const { querySetLimit: r, querySetOffset: o, querySetOrder: l, queryBuild: n, querySetFilters: d } = Fo();
|
|
21462
21462
|
return r(a), o(t, a), l(e, s), he(i) && d(i), n();
|
|
21463
21463
|
}, CK = async (a, t, e = {}, s = "id", i = !0, r = void 0, o = 100, l, n, d = !1, c = {}) => {
|
|
21464
|
-
const u = he(r == null ? void 0 : r._elastic) || d ? "/search" : "", f =
|
|
21464
|
+
const u = he(r == null ? void 0 : r._elastic) || d ? "/search" : "", f = Rs(s);
|
|
21465
21465
|
f.rowsPerPage = o, f.sortBy = s, f.descending = i;
|
|
21466
21466
|
const q = gs(t, e) + u, v = [];
|
|
21467
21467
|
try {
|
|
@@ -23885,7 +23885,7 @@ function RK(a) {
|
|
|
23885
23885
|
return a;
|
|
23886
23886
|
}
|
|
23887
23887
|
async function OK() {
|
|
23888
|
-
(await import("./webfontloader-
|
|
23888
|
+
(await import("./webfontloader-Bx-6nQEU.js").then((t) => t.w)).load({
|
|
23889
23889
|
google: {
|
|
23890
23890
|
families: ["Roboto:100,300,400,500,700,900&display=swap"]
|
|
23891
23891
|
}
|
|
@@ -24090,7 +24090,7 @@ function HK(a, t = !1) {
|
|
|
24090
24090
|
}
|
|
24091
24091
|
};
|
|
24092
24092
|
}
|
|
24093
|
-
const Vm = "/adm/v1/asset-licence", bl = "assetLicence", b_ = (a, t) =>
|
|
24093
|
+
const Vm = "/adm/v1/asset-licence", bl = "assetLicence", b_ = (a, t) => zs(a, t, Vm, {}, Oe, bl), C_ = (a, t, e) => Ja(a, Vm, {}, t, e, Oe, bl), vn = Bs(Oe, bl);
|
|
24094
24094
|
function x_() {
|
|
24095
24095
|
return ea({
|
|
24096
24096
|
name: {
|
|
@@ -24171,7 +24171,7 @@ const w_ = (a) => {
|
|
|
24171
24171
|
"disable-init-fetch": c.disableInitFetch
|
|
24172
24172
|
}, null, 8, ["modelValue", "selected", "required", "label", "fetch-items", "fetch-items-by-ids", "inner-filter", "multiple", "clearable", "data-cy", "hide-details", "disable-init-fetch"]));
|
|
24173
24173
|
}
|
|
24174
|
-
}), vm = "/adm/v1/asset-licence-group", Cl = "assetLicenceGroup", k_ = (a, t) =>
|
|
24174
|
+
}), vm = "/adm/v1/asset-licence-group", Cl = "assetLicenceGroup", k_ = (a, t) => zs(a, t, vm, {}, Oe, Cl, {}, !0), I_ = (a, t, e) => Ja(a, vm, {}, t, e, Oe, Cl), __ = (a) => {
|
|
24175
24175
|
const t = (i) => i.map((r) => ({
|
|
24176
24176
|
title: r.name,
|
|
24177
24177
|
value: r.id
|
|
@@ -24180,7 +24180,7 @@ const w_ = (a) => {
|
|
|
24180
24180
|
fetchItems: async (i, r) => t(await I_(a, i, r)),
|
|
24181
24181
|
fetchItemsByIds: async (i) => t(await k_(a, i))
|
|
24182
24182
|
};
|
|
24183
|
-
}, S_ =
|
|
24183
|
+
}, S_ = Bs(Oe, Cl);
|
|
24184
24184
|
function D_() {
|
|
24185
24185
|
return ea({
|
|
24186
24186
|
name: {
|
|
@@ -24232,7 +24232,7 @@ const GK = /* @__PURE__ */ W({
|
|
|
24232
24232
|
"disable-init-fetch": d.disableInitFetch
|
|
24233
24233
|
}, null, 8, ["modelValue", "selected", "required", "label", "fetch-items", "fetch-items-by-ids", "inner-filter", "multiple", "clearable", "data-cy", "hide-details", "disable-init-fetch"]));
|
|
24234
24234
|
}
|
|
24235
|
-
}), hm = "/adm/v1/ext-system", xl = "extSystem", K_ = (a, t) =>
|
|
24235
|
+
}), hm = "/adm/v1/ext-system", xl = "extSystem", K_ = (a, t) => zs(a, t, hm, {}, Oe, xl), T_ = (a, t, e) => Ja(a, hm, {}, t, e, Oe, xl), E_ = (a) => ({
|
|
24236
24236
|
fetchItems: async (s, i) => (await T_(a, s, i)).map((o) => ({
|
|
24237
24237
|
title: o.slug,
|
|
24238
24238
|
value: o.id
|
|
@@ -24241,7 +24241,7 @@ const GK = /* @__PURE__ */ W({
|
|
|
24241
24241
|
title: r.slug,
|
|
24242
24242
|
value: r.id
|
|
24243
24243
|
}))
|
|
24244
|
-
}), M_ =
|
|
24244
|
+
}), M_ = Bs(Oe, xl);
|
|
24245
24245
|
function $_() {
|
|
24246
24246
|
return ea({
|
|
24247
24247
|
name: {
|
|
@@ -24290,7 +24290,7 @@ const ZK = /* @__PURE__ */ W({
|
|
|
24290
24290
|
}
|
|
24291
24291
|
});
|
|
24292
24292
|
function B_() {
|
|
24293
|
-
const a =
|
|
24293
|
+
const a = Os(), t = Object.entries(a.damPrvConfig.assetExternalProviders).map(
|
|
24294
24294
|
([i, r]) => ({
|
|
24295
24295
|
value: i,
|
|
24296
24296
|
title: r.title
|
|
@@ -24339,7 +24339,7 @@ const JK = /* @__PURE__ */ W({
|
|
|
24339
24339
|
}
|
|
24340
24340
|
});
|
|
24341
24341
|
function P_() {
|
|
24342
|
-
const a =
|
|
24342
|
+
const a = Os(), t = Object.entries(a.damPrvConfig.distributionServices).map(
|
|
24343
24343
|
([i, r]) => ({
|
|
24344
24344
|
value: i,
|
|
24345
24345
|
title: r.title
|
|
@@ -24447,17 +24447,17 @@ export {
|
|
|
24447
24447
|
LD as aF,
|
|
24448
24448
|
UD as aG,
|
|
24449
24449
|
ND as aH,
|
|
24450
|
-
|
|
24450
|
+
Rs as aI,
|
|
24451
24451
|
FD as aJ,
|
|
24452
24452
|
vi as aK,
|
|
24453
|
-
|
|
24453
|
+
Bs as aL,
|
|
24454
24454
|
Bq as aM,
|
|
24455
24455
|
We as aN,
|
|
24456
24456
|
xK as aO,
|
|
24457
24457
|
qy as aP,
|
|
24458
24458
|
er as aQ,
|
|
24459
24459
|
yc as aR,
|
|
24460
|
-
|
|
24460
|
+
Zs as aS,
|
|
24461
24461
|
GV as aT,
|
|
24462
24462
|
WV as aU,
|
|
24463
24463
|
LK as aV,
|
|
@@ -24508,7 +24508,7 @@ export {
|
|
|
24508
24508
|
dK as bB,
|
|
24509
24509
|
uK as bC,
|
|
24510
24510
|
cK as bD,
|
|
24511
|
-
|
|
24511
|
+
Re as bE,
|
|
24512
24512
|
kc as bF,
|
|
24513
24513
|
Ft as bG,
|
|
24514
24514
|
rK as bH,
|
|
@@ -24548,12 +24548,12 @@ export {
|
|
|
24548
24548
|
wp as bo,
|
|
24549
24549
|
kp as bp,
|
|
24550
24550
|
kK as bq,
|
|
24551
|
-
|
|
24551
|
+
Ws as br,
|
|
24552
24552
|
xV as bs,
|
|
24553
24553
|
zK as bt,
|
|
24554
24554
|
RK as bu,
|
|
24555
24555
|
Ba as bv,
|
|
24556
|
-
|
|
24556
|
+
Ks as bw,
|
|
24557
24557
|
lK as bx,
|
|
24558
24558
|
MF as by,
|
|
24559
24559
|
nK as bz,
|
|
@@ -24594,7 +24594,7 @@ export {
|
|
|
24594
24594
|
bK as cW,
|
|
24595
24595
|
Ao as cX,
|
|
24596
24596
|
Ec as cY,
|
|
24597
|
-
|
|
24597
|
+
zs as cZ,
|
|
24598
24598
|
Ja as c_,
|
|
24599
24599
|
df as ca,
|
|
24600
24600
|
Ut as cb,
|
|
@@ -24621,7 +24621,7 @@ export {
|
|
|
24621
24621
|
QS as cw,
|
|
24622
24622
|
Nt as cx,
|
|
24623
24623
|
iD as cy,
|
|
24624
|
-
|
|
24624
|
+
Ts as cz,
|
|
24625
24625
|
DS as d,
|
|
24626
24626
|
Yn as d$,
|
|
24627
24627
|
jt as d0,
|
|
@@ -24636,7 +24636,7 @@ export {
|
|
|
24636
24636
|
b_ as d9,
|
|
24637
24637
|
gu as dA,
|
|
24638
24638
|
Bl as dB,
|
|
24639
|
-
|
|
24639
|
+
Ps as dC,
|
|
24640
24640
|
NK as dD,
|
|
24641
24641
|
sa as dE,
|
|
24642
24642
|
cu as dF,
|
|
@@ -24677,7 +24677,7 @@ export {
|
|
|
24677
24677
|
Sa as dn,
|
|
24678
24678
|
Zd as dp,
|
|
24679
24679
|
Jd as dq,
|
|
24680
|
-
|
|
24680
|
+
$s as dr,
|
|
24681
24681
|
Gn as ds,
|
|
24682
24682
|
ja as dt,
|
|
24683
24683
|
LS as du,
|
|
@@ -24695,7 +24695,7 @@ export {
|
|
|
24695
24695
|
Dr as e5,
|
|
24696
24696
|
A_ as e6,
|
|
24697
24697
|
y_ as e7,
|
|
24698
|
-
|
|
24698
|
+
Os as e8,
|
|
24699
24699
|
De as e9,
|
|
24700
24700
|
Vu as ea,
|
|
24701
24701
|
Ha as eb,
|
|
@@ -24714,7 +24714,7 @@ export {
|
|
|
24714
24714
|
PK as eo,
|
|
24715
24715
|
OK as ep,
|
|
24716
24716
|
OF as eq,
|
|
24717
|
-
|
|
24717
|
+
ei as er,
|
|
24718
24718
|
UK as es,
|
|
24719
24719
|
fD as f,
|
|
24720
24720
|
mo as g,
|
|
@@ -24736,6 +24736,6 @@ export {
|
|
|
24736
24736
|
AD as w,
|
|
24737
24737
|
Oo as x,
|
|
24738
24738
|
gD as y,
|
|
24739
|
-
|
|
24739
|
+
si as z
|
|
24740
24740
|
};
|
|
24741
|
-
//# sourceMappingURL=lib-
|
|
24741
|
+
//# sourceMappingURL=lib-C6OcGAGE.js.map
|