@anzusystems/common-admin 1.47.0-beta.7 → 1.47.0-beta.8
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-DSLc8NRg.js → lib-BK9nq2ph.js} +105 -102
- package/dist/lib-BK9nq2ph.js.map +1 -0
- package/dist/{webfontloader-DBsuCPkz.js → webfontloader-CkO4Lp_g.js} +2 -2
- package/dist/{webfontloader-DBsuCPkz.js.map → webfontloader-CkO4Lp_g.js.map} +1 -1
- package/package.json +1 -1
- package/dist/lib-DSLc8NRg.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Vm = Object.defineProperty;
|
|
2
2
|
var pm = (t, a, e) => a in t ? Vm(t, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[a] = e;
|
|
3
3
|
var ir = (t, a, e) => pm(t, typeof a != "symbol" ? a + "" : a, e);
|
|
4
|
-
import { defineComponent as W, computed as _, openBlock as q, createBlock as E, withCtx as f, createTextVNode as B, toDisplayString as I, createElementBlock as P, createVNode as m, normalizeClass as he, createCommentVNode as N, renderSlot as ue, createElementVNode as L, resolveComponent as $e, withModifiers as Z, withDirectives as Ht, vShow as Oa, isProxy as Td, toRaw as
|
|
4
|
+
import { defineComponent as W, computed as _, openBlock as q, createBlock as E, withCtx as f, createTextVNode as B, toDisplayString as I, createElementBlock as P, createVNode as m, normalizeClass as he, createCommentVNode as N, renderSlot as ue, createElementVNode as L, resolveComponent as $e, withModifiers as Z, withDirectives as Ht, vShow as Oa, isProxy as Td, toRaw as Xt, isRef as Es, unref as V, Fragment as Fe, normalizeStyle as Mt, shallowRef as ft, watch as Ye, ref as D, reactive as oa, inject as je, createSlots as na, provide as Ei, renderList as He, onMounted as ht, TransitionGroup as Ed, isVNode as vm, mergeModels as Wt, useModel as ba, toRefs as ri, vModelText as wl, nextTick as Gt, pushScopeId as hm, popScopeId as Fm, withKeys as Ma, mergeProps as Rt, onUnmounted as Pn, readonly as Is, createStaticVNode as Md, resolveDynamicComponent as Wr, setBlockTracking as kl, onBeforeUnmount as Gr, toRef as Zr, Teleport as gm, normalizeProps as qm, guardReactiveProps as Ym } from "vue";
|
|
5
5
|
import { useI18n as ee, createI18n as Xm } from "vue-i18n";
|
|
6
6
|
import { VChip as Zt } from "vuetify/lib/components/VChip/index.mjs";
|
|
7
7
|
import { VRow as ge, VCol as le, VSpacer as rt } from "vuetify/lib/components/VGrid/index.mjs";
|
|
@@ -174,7 +174,7 @@ const Qm = { key: 1 }, Ud = /* @__PURE__ */ W({
|
|
|
174
174
|
}, ao = (t) => typeof t == "object" && !Ze(t) && !ae(t), so = (t) => ao(t) ? Object.keys(t).length === 0 : !1, nf = (t) => Ze(t) && t.length === 0, vn = (t) => ae(t) || R(t) || t === "" || t === 0 || nf(t) || so(t), xe = (t) => {
|
|
175
175
|
if (typeof structuredClone == "function")
|
|
176
176
|
try {
|
|
177
|
-
return Td(t) ? structuredClone(
|
|
177
|
+
return Td(t) ? structuredClone(Xt(t)) : Es(t) ? structuredClone(V(t)) : structuredClone(t);
|
|
178
178
|
} catch {
|
|
179
179
|
return JSON.parse(JSON.stringify(t));
|
|
180
180
|
}
|
|
@@ -413,7 +413,7 @@ function io() {
|
|
|
413
413
|
Qd().emit({ room: s });
|
|
414
414
|
let r = {};
|
|
415
415
|
const o = ko.get(s);
|
|
416
|
-
return o && (r =
|
|
416
|
+
return o && (r = Xt(Object.fromEntries(o.entries())), ko.delete(s)), r;
|
|
417
417
|
}
|
|
418
418
|
};
|
|
419
419
|
}
|
|
@@ -1472,7 +1472,7 @@ const or = {
|
|
|
1472
1472
|
function U() {
|
|
1473
1473
|
i.value = i.value.filter((K) => K.state !== or.DESTROYED);
|
|
1474
1474
|
}
|
|
1475
|
-
return
|
|
1475
|
+
return ht(() => {
|
|
1476
1476
|
Mr.on("add", g), Mr.on("close", y);
|
|
1477
1477
|
}), () => {
|
|
1478
1478
|
let K;
|
|
@@ -1535,8 +1535,8 @@ const Qf = {
|
|
|
1535
1535
|
missing: (t, a) => {
|
|
1536
1536
|
Ml.includes(t) && console.warn(`Missing ${t} translation: ${a}`);
|
|
1537
1537
|
}
|
|
1538
|
-
}), cu = (t) => t instanceof
|
|
1539
|
-
class
|
|
1538
|
+
}), cu = (t) => t instanceof At;
|
|
1539
|
+
class At extends Error {
|
|
1540
1540
|
constructor(a, e = "") {
|
|
1541
1541
|
super(e), this.name = "AnzuFatalError", this.cause = a, this.message = e;
|
|
1542
1542
|
}
|
|
@@ -1841,7 +1841,7 @@ const MS = /* @__PURE__ */ W({
|
|
|
1841
1841
|
},
|
|
1842
1842
|
setup(t) {
|
|
1843
1843
|
const a = t, { t: e } = ee(), s = D([]);
|
|
1844
|
-
return
|
|
1844
|
+
return ht(async () => {
|
|
1845
1845
|
if (a.configUrl && a.configUrl.length > 0)
|
|
1846
1846
|
try {
|
|
1847
1847
|
const { data: i } = await Am(a.configUrl).get().json();
|
|
@@ -2987,7 +2987,7 @@ function rD(t, a, e = ".") {
|
|
|
2987
2987
|
return r(t), t;
|
|
2988
2988
|
}
|
|
2989
2989
|
const Cu = (t) => ao(t) && Object.hasOwn(t, "owners"), xu = (t) => Object.hasOwn(t, "createdBy"), Vs = (t, a, e = "") => so(a) ? t : df(e === "" ? t : e, a), ps = (t) => aV.includes(t), zt = (t, a, e = {}, s, i, r = {}) => new Promise((o, l) => {
|
|
2990
|
-
t().get(Vs(a, e), r).then((n) => ps(n.status) ? n.data ? o(n.data) : n.status === za ? o(null) : l(new
|
|
2990
|
+
t().get(Vs(a, e), r).then((n) => ps(n.status) ? n.data ? o(n.data) : n.status === za ? o(null) : l(new At()) : l(new Na(n.status))).catch((n) => La(n) ? l(new _a(n)) : Sa(n) ? l(new Da(n, s, i, n)) : Ua(n) ? l(new Ka(n, n)) : l(new At(n)));
|
|
2991
2991
|
}), kV = "ROLE_SUPER_ADMIN";
|
|
2992
2992
|
function IV(t) {
|
|
2993
2993
|
const a = wV(), e = (d) => d.split("_")[0], s = (d) => d.includes(kV), i = (d, c) => {
|
|
@@ -3050,16 +3050,19 @@ const _V = /* @__PURE__ */ W({
|
|
|
3050
3050
|
subject: { default: void 0 }
|
|
3051
3051
|
},
|
|
3052
3052
|
setup(t) {
|
|
3053
|
-
const a = t, e = (
|
|
3054
|
-
return
|
|
3055
|
-
r,
|
|
3056
|
-
(
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3053
|
+
const a = t, e = D(!1), s = _(() => a.permission.split("_")[0] || "");
|
|
3054
|
+
return ht(() => {
|
|
3055
|
+
const { can: i, useCurrentUser: r } = IV(s.value), { currentUser: o } = r(s.value);
|
|
3056
|
+
Ye(
|
|
3057
|
+
o,
|
|
3058
|
+
(l) => {
|
|
3059
|
+
R(l) || (e.value = i(a.permission, a.subject));
|
|
3060
|
+
},
|
|
3061
|
+
{
|
|
3062
|
+
immediate: !0
|
|
3063
|
+
}
|
|
3064
|
+
);
|
|
3065
|
+
}), (i, r) => e.value ? ue(i.$slots, "default", { key: 0 }) : N("", !0);
|
|
3063
3066
|
}
|
|
3064
3067
|
}), Gs = /* @__PURE__ */ W({
|
|
3065
3068
|
__name: "ADatetime",
|
|
@@ -3337,7 +3340,7 @@ const ap = (t) => (hm("data-v-8b2f16cf"), t = t(), Fm(), t), sp = { class: "a-da
|
|
|
3337
3340
|
const A = (U, K) => ae(U) ? K : K.set("date", U.getDate()).set("month", U.getMonth()).set("year", U.getFullYear()), X = (U, K) => ae(U) ? K : K.set("hour", U.hours).set("minute", U.minutes);
|
|
3338
3341
|
Ye([c, d], ([U, K]) => {
|
|
3339
3342
|
let O = null;
|
|
3340
|
-
ae(u.value) ? ae(e.modelValue) ? O = Ee().hour(12).minute(0).second(0).millisecond(0) : O = Ee(e.modelValue, "YYYY-MM-DDTHH:mm:ss.SSSSSSZ") : O = u.value, O = X(U, O), O = A(K, O), !O.isSame(
|
|
3343
|
+
ae(u.value) ? ae(e.modelValue) ? O = Ee().hour(12).minute(0).second(0).millisecond(0) : O = Ee(e.modelValue, "YYYY-MM-DDTHH:mm:ss.SSSSSSZ") : O = u.value, O = X(U, O), O = A(K, O), !O.isSame(Xt(u.value)) && (u.value = O);
|
|
3341
3344
|
}), Ye(
|
|
3342
3345
|
u,
|
|
3343
3346
|
(U) => {
|
|
@@ -4016,7 +4019,7 @@ const hp = {
|
|
|
4016
4019
|
};
|
|
4017
4020
|
return Ye(u, (v, F) => {
|
|
4018
4021
|
v !== F && (p.value = v, d.value = !1);
|
|
4019
|
-
}),
|
|
4022
|
+
}), ht(() => {
|
|
4020
4023
|
c.value = "remote-switch-" + Date.now();
|
|
4021
4024
|
}), (v, F) => (q(), P("div", gp, [
|
|
4022
4025
|
m(Ri, {
|
|
@@ -4136,7 +4139,7 @@ const hp = {
|
|
|
4136
4139
|
};
|
|
4137
4140
|
return Ye(u, (v, F) => {
|
|
4138
4141
|
v !== F && (p.value = v, d.value = !1);
|
|
4139
|
-
}),
|
|
4142
|
+
}), ht(() => {
|
|
4140
4143
|
c.value = "a-remote-switch-" + Date.now();
|
|
4141
4144
|
}), (v, F) => (q(), P("div", Yp, [
|
|
4142
4145
|
m(ie, {
|
|
@@ -4869,7 +4872,7 @@ const vD = /* @__PURE__ */ W({
|
|
|
4869
4872
|
o > 0 ? r.value = setTimeout(() => i.value--, 1e3) : s("done");
|
|
4870
4873
|
},
|
|
4871
4874
|
{ immediate: !0 }
|
|
4872
|
-
),
|
|
4875
|
+
), ht(() => {
|
|
4873
4876
|
i.value = e.seconds;
|
|
4874
4877
|
}), Pn(() => {
|
|
4875
4878
|
clearTimeout(r.value), r.value = void 0;
|
|
@@ -4922,7 +4925,7 @@ function Rp(t, a = !1, e = void 0, s = void 0, i = !1) {
|
|
|
4922
4925
|
u.value = ce, c.value = d.on(G);
|
|
4923
4926
|
}, Vt = (ce) => {
|
|
4924
4927
|
b.value = ce, C.value = k.on(_e);
|
|
4925
|
-
},
|
|
4928
|
+
}, Ft = (ce) => {
|
|
4926
4929
|
j.value = ce, $.value = S.on(Q);
|
|
4927
4930
|
};
|
|
4928
4931
|
On(() => {
|
|
@@ -4970,7 +4973,7 @@ function Rp(t, a = !1, e = void 0, s = void 0, i = !1) {
|
|
|
4970
4973
|
!Oe.value.enabled || R(r.value) || r.value.emit("approveRequestToTakeModeration", t);
|
|
4971
4974
|
}, ke = () => {
|
|
4972
4975
|
!Oe.value.enabled || R(r.value) || r.value.emit("rejectRequestToTakeModeration", t);
|
|
4973
|
-
},
|
|
4976
|
+
}, gt = (ce) => {
|
|
4974
4977
|
!Oe.value.enabled || R(r.value) || r.value.emit("kickUserFromRoom", t, ce);
|
|
4975
4978
|
}, ca = (ce) => {
|
|
4976
4979
|
!Oe.value.enabled || R(r.value) || r.value.emit("transferModeration", t, ce);
|
|
@@ -5013,10 +5016,10 @@ function Rp(t, a = !1, e = void 0, s = void 0, i = !1) {
|
|
|
5013
5016
|
addApprovedRequestToTakeModerationListener: Ve,
|
|
5014
5017
|
addRejectedRequestToTakeModerationListener: se,
|
|
5015
5018
|
enteredCollabRoom: hs,
|
|
5016
|
-
kickUserFromRoom:
|
|
5019
|
+
kickUserFromRoom: gt,
|
|
5017
5020
|
transferModeration: ca,
|
|
5018
5021
|
addKickedFromRoomListener: Vt,
|
|
5019
|
-
addCollabStartingListener:
|
|
5022
|
+
addCollabStartingListener: Ft,
|
|
5020
5023
|
fetchRoomInfo: Ue,
|
|
5021
5024
|
collabRoomInfo: Ta,
|
|
5022
5025
|
collabRoomLocks: ga,
|
|
@@ -5118,7 +5121,7 @@ const zp = { class: "ml-3" }, Lp = { class: "ml-1" }, hD = /* @__PURE__ */ W({
|
|
|
5118
5121
|
F(x.value ?? 0);
|
|
5119
5122
|
}, Ve = (se) => Math.ceil((6e4 - ((/* @__PURE__ */ new Date()).getTime() - se)) / 1e3);
|
|
5120
5123
|
return (se, Ae) => {
|
|
5121
|
-
const Vt = $e("ABtnSecondary"),
|
|
5124
|
+
const Vt = $e("ABtnSecondary"), Ft = $e("ABtnIcon"), Oe = $e("ABtnTertiary"), pt = $e("ABtnPrimary");
|
|
5122
5125
|
return q(), P("div", null, [
|
|
5123
5126
|
B(" moderator: "),
|
|
5124
5127
|
V(e).moderator ? (q(), E(Ut, {
|
|
@@ -5165,7 +5168,7 @@ const zp = { class: "ml-3" }, Lp = { class: "ml-1" }, hD = /* @__PURE__ */ W({
|
|
|
5165
5168
|
]),
|
|
5166
5169
|
_: 1
|
|
5167
5170
|
})) : N("", !0),
|
|
5168
|
-
j.value ? (q(), E(
|
|
5171
|
+
j.value ? (q(), E(Ft, {
|
|
5169
5172
|
key: 3,
|
|
5170
5173
|
size: "small",
|
|
5171
5174
|
onClick: fe
|
|
@@ -5345,7 +5348,7 @@ const zp = { class: "ml-3" }, Lp = { class: "ml-1" }, hD = /* @__PURE__ */ W({
|
|
|
5345
5348
|
]),
|
|
5346
5349
|
_: 1
|
|
5347
5350
|
}, 8, ["modelValue"]),
|
|
5348
|
-
b.value ? (q(), E(
|
|
5351
|
+
b.value ? (q(), E(Ft, {
|
|
5349
5352
|
key: 5,
|
|
5350
5353
|
size: "small",
|
|
5351
5354
|
onClick: me
|
|
@@ -7129,7 +7132,7 @@ const qv = { class: "text-center w-100 text-caption pb-1" }, ID = /* @__PURE__ *
|
|
|
7129
7132
|
},
|
|
7130
7133
|
setup(t) {
|
|
7131
7134
|
const a = t;
|
|
7132
|
-
return
|
|
7135
|
+
return ht(() => {
|
|
7133
7136
|
a.logoutUrl && (window.location.href = a.logoutUrl());
|
|
7134
7137
|
}), (e, s) => (q(), P("div"));
|
|
7135
7138
|
}
|
|
@@ -7570,7 +7573,7 @@ const Lv = (t) => {
|
|
|
7570
7573
|
function H() {
|
|
7571
7574
|
const C = [];
|
|
7572
7575
|
for (const b of r.value.values())
|
|
7573
|
-
C.push(
|
|
7576
|
+
C.push(Xt(b.asset));
|
|
7574
7577
|
return C;
|
|
7575
7578
|
}
|
|
7576
7579
|
function U(C) {
|
|
@@ -7702,8 +7705,8 @@ const Mu = (t) => ao(t) && Object.hasOwn(t, "totalCount"), $u = (t) => ao(t) &&
|
|
|
7702
7705
|
const p = u.data;
|
|
7703
7706
|
return $u(p) ? s.hasNextPage = u.data.hasNextPage : Mu(p) && (s.totalCount = p.totalCount), s.currentViewCount = u.data.data.length, n(u.data.data);
|
|
7704
7707
|
}
|
|
7705
|
-
return u.status === za ? n([]) : d(new
|
|
7706
|
-
}).catch((u) => La(u) ? d(new _a(u)) : Sa(u) ? d(new Da(u, r, o, u)) : Ua(u) ? d(new Ka(u, u)) : d(new
|
|
7708
|
+
return u.status === za ? n([]) : d(new At());
|
|
7709
|
+
}).catch((u) => La(u) ? d(new _a(u)) : Sa(u) ? d(new Da(u, r, o, u)) : Ua(u) ? d(new Ka(u, u)) : d(new At(u)));
|
|
7707
7710
|
});
|
|
7708
7711
|
var jv = /* @__PURE__ */ ((t) => (t.None = "none", t.AtLeastOne = "at_least_one", t.OneFromType = "one_from_type", t.WaitForAll = "wait_for_all", t.Default = "none", t))(jv || {}), Hv = /* @__PURE__ */ ((t) => (t.Youtube = "youtubeDistribution", t.Jw = "jwDistribution", t.Custom = "customDistribution", t))(Hv || {}), Wv = /* @__PURE__ */ ((t) => (t.Waiting = "waiting", t.Distributing = "distributing", t.RemoteProcessing = "remote_processing", t.Distributed = "distributed", t.Failed = "failed", t.Default = "waiting", t))(Wv || {}), Bu = /* @__PURE__ */ ((t) => (t.JsonCredentials = "json_credentials", t.OAuth2 = "oauth2", t.Default = "json_credentials", t))(Bu || {});
|
|
7709
7712
|
const Pu = "/adm/v1/configuration", Gv = "/pub", Zv = Gv + "/v1/configuration", Qn = "settings", Jv = (t) => zt(t, Zv, {}, Be, Qn), Qv = (t) => zt(t, Pu, {}, Be, Qn), eh = (t, a) => zt(a, Pu + "/ext-system/" + t, {}, Be, Qn), Ou = "/adm/v1/asset-custom-form", Ru = "assetCustomForm", dr = (t, a, e) => zt(
|
|
@@ -8036,7 +8039,7 @@ const { showUnknownError: nh, showApiValidationError: lh } = We(), dh = (t, a, e
|
|
|
8036
8039
|
};
|
|
8037
8040
|
t().patch(di + "/metadata-bulk-update", JSON.stringify([r])).then((o) => {
|
|
8038
8041
|
o.status === Ms ? s(o.data) : i();
|
|
8039
|
-
}).catch((o) => La(o) ? i(new _a(o)) : Sa(o) ? (dh(o, a.attributes.assetType, e), i(new Da(o, Be, mo, o))) : Ua(o) ? i(new Ka(o, o)) : i(new
|
|
8042
|
+
}).catch((o) => La(o) ? i(new _a(o)) : Sa(o) ? (dh(o, a.attributes.assetType, e), i(new Da(o, Be, mo, o))) : Ua(o) ? i(new Ka(o, o)) : i(new At(o)));
|
|
8040
8043
|
}), hi = zv(), Ys = $s(), Po = D(!1);
|
|
8041
8044
|
function ui(t = "default") {
|
|
8042
8045
|
const { damClient: a } = nt(t), e = uo(), { selectedCount: s, selectedAssets: i, assetListItems: r, loader: o } = St(e), { resetFilter: l } = li(), { showErrorsDefault: n } = We(), d = async () => {
|
|
@@ -8816,7 +8819,7 @@ const Wh = {
|
|
|
8816
8819
|
return Bh;
|
|
8817
8820
|
}
|
|
8818
8821
|
}), O = _(() => c.value < s.minCount || c.value > s.maxCount);
|
|
8819
|
-
return
|
|
8822
|
+
return ht(async () => {
|
|
8820
8823
|
l.value = !0, h.value = await y(s.selectLicences), l.value = !1;
|
|
8821
8824
|
}), a({
|
|
8822
8825
|
open: w
|
|
@@ -9340,7 +9343,7 @@ var VF = ["evt"], Kt = function(a, e) {
|
|
|
9340
9343
|
cloneEl: it,
|
|
9341
9344
|
cloneHidden: es,
|
|
9342
9345
|
dragStarted: yi,
|
|
9343
|
-
putSortable:
|
|
9346
|
+
putSortable: Yt,
|
|
9344
9347
|
activeSortable: Ce.active,
|
|
9345
9348
|
originalEvent: i,
|
|
9346
9349
|
oldIndex: Ns,
|
|
@@ -9366,7 +9369,7 @@ var VF = ["evt"], Kt = function(a, e) {
|
|
|
9366
9369
|
};
|
|
9367
9370
|
function kt(t) {
|
|
9368
9371
|
fF(xa({
|
|
9369
|
-
putSortable:
|
|
9372
|
+
putSortable: Yt,
|
|
9370
9373
|
cloneEl: it,
|
|
9371
9374
|
targetEl: oe,
|
|
9372
9375
|
rootEl: et,
|
|
@@ -9376,7 +9379,7 @@ function kt(t) {
|
|
|
9376
9379
|
newDraggableIndex: Qa
|
|
9377
9380
|
}, t));
|
|
9378
9381
|
}
|
|
9379
|
-
var oe, ot, Ie, et, ks, kr, it, es, Ns, Nt, Si, Qa, mr,
|
|
9382
|
+
var oe, ot, Ie, et, ks, kr, it, es, Ns, Nt, Si, Qa, mr, Yt, Ls = !1, zr = !1, Lr = [], Xs, Va, zo, Lo, Gl, Zl, yi, Rs, Di, Ki = !1, fr = !1, Ir, bt, No = [], An = !1, Nr = [], po = typeof document < "u", Vr = Gu, Jl = Hi || Wa ? "cssFloat" : "float", pF = po && !Zu && !Gu && "draggable" in document.createElement("div"), ic = function() {
|
|
9380
9383
|
if (po) {
|
|
9381
9384
|
if (Wa)
|
|
9382
9385
|
return !1;
|
|
@@ -9695,7 +9698,7 @@ Ce.prototype = /** @lends Sortable.prototype */
|
|
|
9695
9698
|
},
|
|
9696
9699
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
9697
9700
|
_onDragOver: function(a) {
|
|
9698
|
-
var e = this.el, s = a.target, i, r, o, l = this.options, n = l.group, d = Ce.active, c = mr === n, u = l.sort, p =
|
|
9701
|
+
var e = this.el, s = a.target, i, r, o, l = this.options, n = l.group, d = Ce.active, c = mr === n, u = l.sort, p = Yt || d, Y, v = this, F = !1;
|
|
9699
9702
|
if (An) return;
|
|
9700
9703
|
function g($, j) {
|
|
9701
9704
|
Kt($, v, xa({
|
|
@@ -9721,7 +9724,7 @@ Ce.prototype = /** @lends Sortable.prototype */
|
|
|
9721
9724
|
function h($) {
|
|
9722
9725
|
return g("dragOverCompleted", {
|
|
9723
9726
|
insertion: $
|
|
9724
|
-
}), $ && (c ? d._hideClone() : d._showClone(v), v !== p && (Lt(oe,
|
|
9727
|
+
}), $ && (c ? d._hideClone() : d._showClone(v), v !== p && (Lt(oe, Yt ? Yt.options.ghostClass : d.options.ghostClass, !1), Lt(oe, l.ghostClass, !0)), Yt !== v && v !== Ce.active ? Yt = v : v === Ce.active && Yt && (Yt = null), p === v && (v._ignoreWhileAnimating = s), v.animateAll(function() {
|
|
9725
9728
|
g("dragOverAnimationComplete"), v._ignoreWhileAnimating = null;
|
|
9726
9729
|
}), v !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (s === oe && !oe.animated || s === e && !s.animated) && (Rs = null), !l.dragoverBubble && !a.rootEl && s !== document && (oe.parentNode[jt]._isOutsideThisEl(a.target), !$ && As(a)), !l.dragoverBubble && a.stopPropagation && a.stopPropagation(), F = !0;
|
|
9727
9730
|
}
|
|
@@ -9738,7 +9741,7 @@ Ce.prototype = /** @lends Sortable.prototype */
|
|
|
9738
9741
|
if (a.preventDefault !== void 0 && a.cancelable && a.preventDefault(), s = va(s, l.draggable, e, !0), g("dragOver"), Ce.eventCanceled) return F;
|
|
9739
9742
|
if (oe.contains(a.target) || s.animated && s.animatingX && s.animatingY || v._ignoreWhileAnimating === s)
|
|
9740
9743
|
return h(!1);
|
|
9741
|
-
if (zr = !1, d && !l.disabled && (c ? u || (o = ot !== et) :
|
|
9744
|
+
if (zr = !1, d && !l.disabled && (c ? u || (o = ot !== et) : Yt === this || (this.lastPutMode = mr.checkPull(this, d, oe, a)) && n.checkPut(this, d, oe, a))) {
|
|
9742
9745
|
if (Y = this._getDirection(a, s) === "vertical", i = ut(oe), g("dragOverValid"), Ce.eventCanceled) return F;
|
|
9743
9746
|
if (o)
|
|
9744
9747
|
return ot = et, y(), this._hideClone(), g("revert"), Ce.eventCanceled || (ks ? et.insertBefore(oe, ks) : et.appendChild(oe)), h(!0);
|
|
@@ -9795,7 +9798,7 @@ Ce.prototype = /** @lends Sortable.prototype */
|
|
|
9795
9798
|
this._nulling();
|
|
9796
9799
|
return;
|
|
9797
9800
|
}
|
|
9798
|
-
Ls = !1, fr = !1, Ki = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), yn(this.cloneId), yn(this._dragStartId), this.nativeDraggable && (Pe(document, "drop", this), Pe(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ii && be(document.body, "user-select", ""), be(oe, "transform", ""), a && (yi && (a.cancelable && a.preventDefault(), !s.dropBubble && a.stopPropagation()), Ie && Ie.parentNode && Ie.parentNode.removeChild(Ie), (et === ot ||
|
|
9801
|
+
Ls = !1, fr = !1, Ki = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), yn(this.cloneId), yn(this._dragStartId), this.nativeDraggable && (Pe(document, "drop", this), Pe(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ii && be(document.body, "user-select", ""), be(oe, "transform", ""), a && (yi && (a.cancelable && a.preventDefault(), !s.dropBubble && a.stopPropagation()), Ie && Ie.parentNode && Ie.parentNode.removeChild(Ie), (et === ot || Yt && Yt.lastPutMode !== "clone") && it && it.parentNode && it.parentNode.removeChild(it), oe && (this.nativeDraggable && Pe(oe, "dragend", this), Uo(oe), oe.style["will-change"] = "", yi && !Ls && Lt(oe, Yt ? Yt.options.ghostClass : this.options.ghostClass, !1), Lt(oe, this.options.chosenClass, !1), kt({
|
|
9799
9802
|
sortable: this,
|
|
9800
9803
|
name: "unchoose",
|
|
9801
9804
|
toEl: ot,
|
|
@@ -9824,7 +9827,7 @@ Ce.prototype = /** @lends Sortable.prototype */
|
|
|
9824
9827
|
name: "sort",
|
|
9825
9828
|
toEl: ot,
|
|
9826
9829
|
originalEvent: a
|
|
9827
|
-
})),
|
|
9830
|
+
})), Yt && Yt.save()) : Nt !== Ns && Nt >= 0 && (kt({
|
|
9828
9831
|
sortable: this,
|
|
9829
9832
|
name: "update",
|
|
9830
9833
|
toEl: ot,
|
|
@@ -9842,7 +9845,7 @@ Ce.prototype = /** @lends Sortable.prototype */
|
|
|
9842
9845
|
}), this.save()))), this._nulling();
|
|
9843
9846
|
},
|
|
9844
9847
|
_nulling: function() {
|
|
9845
|
-
Kt("nulling", this), et = oe = ot = Ie = ks = it = kr = es = Xs = Va = yi = Nt = Qa = Ns = Si = Rs = Di =
|
|
9848
|
+
Kt("nulling", this), et = oe = ot = Ie = ks = it = kr = es = Xs = Va = yi = Nt = Qa = Ns = Si = Rs = Di = Yt = mr = Ce.dragged = Ce.ghost = Ce.clone = Ce.active = null, Nr.forEach(function(a) {
|
|
9846
9849
|
a.checked = !0;
|
|
9847
9850
|
}), Nr.length = zo = Lo = 0;
|
|
9848
9851
|
},
|
|
@@ -10195,11 +10198,11 @@ function wF(t, a, e) {
|
|
|
10195
10198
|
});
|
|
10196
10199
|
}
|
|
10197
10200
|
}
|
|
10198
|
-
var
|
|
10201
|
+
var qt = [];
|
|
10199
10202
|
for (var Go = 0; Go < 256; ++Go)
|
|
10200
|
-
|
|
10203
|
+
qt.push((Go + 256).toString(16).slice(1));
|
|
10201
10204
|
function uc(t, a = 0) {
|
|
10202
|
-
return (
|
|
10205
|
+
return (qt[t[a + 0]] + qt[t[a + 1]] + qt[t[a + 2]] + qt[t[a + 3]] + "-" + qt[t[a + 4]] + qt[t[a + 5]] + "-" + qt[t[a + 6]] + qt[t[a + 7]] + "-" + qt[t[a + 8]] + qt[t[a + 9]] + "-" + qt[t[a + 10]] + qt[t[a + 11]] + qt[t[a + 12]] + qt[t[a + 13]] + qt[t[a + 14]] + qt[t[a + 15]]).toLowerCase();
|
|
10203
10206
|
}
|
|
10204
10207
|
var vr, kF = new Uint8Array(16);
|
|
10205
10208
|
function cc() {
|
|
@@ -11272,7 +11275,7 @@ const NF = ["data-id"], UF = { class: "a-sortable-nested-widget__nested" }, jF =
|
|
|
11272
11275
|
}), l = _({
|
|
11273
11276
|
get: () => s.pagination,
|
|
11274
11277
|
set: (w) => {
|
|
11275
|
-
i("update:pagination", { ...
|
|
11278
|
+
i("update:pagination", { ...Xt(w) });
|
|
11276
11279
|
}
|
|
11277
11280
|
}), n = D(!0), d = D(!1), { t: c } = ee(), u = _(() => s.selectedItems.length), p = _(() => u.value < s.minCount || u.value > s.maxCount), Y = () => {
|
|
11278
11281
|
i("onOpen"), n.value = !0, o.value = !0;
|
|
@@ -11283,7 +11286,7 @@ const NF = ["data-id"], UF = { class: "a-sortable-nested-widget__nested" }, jF =
|
|
|
11283
11286
|
}, g = () => {
|
|
11284
11287
|
i(
|
|
11285
11288
|
"onConfirm",
|
|
11286
|
-
s.selectedItems.map((w) =>
|
|
11289
|
+
s.selectedItems.map((w) => Xt(w))
|
|
11287
11290
|
), F();
|
|
11288
11291
|
}, y = () => {
|
|
11289
11292
|
i("onFetchNextPage");
|
|
@@ -11576,7 +11579,7 @@ const fg = /* @__PURE__ */ W({
|
|
|
11576
11579
|
const e = t, s = a, i = (h) => e.config.attributes.type === It.Integer ? parseInt(h) : h, r = (h) => {
|
|
11577
11580
|
s("update:modelValue", { property: e.config.property, value: i(h) });
|
|
11578
11581
|
}, o = _(() => {
|
|
11579
|
-
const h = Td(e.modelValue) ?
|
|
11582
|
+
const h = Td(e.modelValue) ? Xt(e.modelValue) : e.modelValue;
|
|
11580
11583
|
return e.config.attributes.type === It.StringArray && so(h) ? [] : h;
|
|
11581
11584
|
}), { maxLength: l, minLength: n, requiredIf: d, minValue: c, maxValue: u, stringArrayItemLength: p } = vs(), Y = _(() => {
|
|
11582
11585
|
const h = {
|
|
@@ -12913,10 +12916,10 @@ const Jg = (t, a) => {
|
|
|
12913
12916
|
}, Bs = (t, a, e, s = {}, i, r, o = {}, l = !1) => new Promise((n, d) => {
|
|
12914
12917
|
t().get(Vs(e, s) + Jg(a, l), o).then((c) => {
|
|
12915
12918
|
var u;
|
|
12916
|
-
return ps(c.status) ? (u = c.data) != null && u.data ? n(c.data.data) : c.status === za ? n(null) : d(new
|
|
12917
|
-
}).catch((c) => La(c) ? d(new _a(c)) : Sa(c) ? d(new Da(c, i, r, c)) : Ua(c) ? d(new Ka(c, c)) : d(new
|
|
12919
|
+
return ps(c.status) ? (u = c.data) != null && u.data ? n(c.data.data) : c.status === za ? n(null) : d(new At()) : d(new Na(c.status));
|
|
12920
|
+
}).catch((c) => La(c) ? d(new _a(c)) : Sa(c) ? d(new Da(c, i, r, c)) : Ua(c) ? d(new Ka(c, c)) : d(new At(c)));
|
|
12918
12921
|
}), ho = (t, a = {}, e, s = {}, i, r, o = {}) => new Promise((l, n) => {
|
|
12919
|
-
t().post(Vs(e, s), JSON.stringify(a), o).then((d) => ps(d.status) ? d.data ? l(d.data) : d.status === za ? l(null) : n(new
|
|
12922
|
+
t().post(Vs(e, s), JSON.stringify(a), o).then((d) => ps(d.status) ? d.data ? l(d.data) : d.status === za ? l(null) : n(new At()) : n(new Na(d.status))).catch((d) => La(d) ? n(new _a(d)) : Sa(d) ? n(new Da(d, i, r, d)) : Ua(d) ? n(new Ka(d, d)) : n(new At(d)));
|
|
12920
12923
|
}), Xc = "/adm/v1/keyword", Ac = Xc + "/ext-system/:extSystemId", ci = "keyword", yc = (t, a, e) => Bs(
|
|
12921
12924
|
t,
|
|
12922
12925
|
e,
|
|
@@ -13206,9 +13209,9 @@ const tq = (t) => ({
|
|
|
13206
13209
|
forceReloadFileInput: O
|
|
13207
13210
|
};
|
|
13208
13211
|
}), dl = (t, a = {}, e, s = {}, i, r, o = {}) => new Promise((l, n) => {
|
|
13209
|
-
t().put(Vs(e, s), JSON.stringify(a), o).then((d) => ps(d.status) ? d.data ? l(d.data) : d.status === za ? l(null) : n(new
|
|
13212
|
+
t().put(Vs(e, s), JSON.stringify(a), o).then((d) => ps(d.status) ? d.data ? l(d.data) : d.status === za ? l(null) : n(new At()) : n(new Na(d.status))).catch((d) => La(d) ? n(new _a(d)) : Sa(d) ? n(new Da(d, i, r, d)) : Ua(d) ? n(new Ka(d, d)) : n(new At(d)));
|
|
13210
13213
|
}), _c = (t, a, e = {}, s, i, r = {}) => new Promise((o, l) => {
|
|
13211
|
-
t().delete(Vs(a, e), r).then((n) => ps(n.status) ? n.data ? o(n.data) : n.status === za ? o(null) : l(new
|
|
13214
|
+
t().delete(Vs(a, e), r).then((n) => ps(n.status) ? n.data ? o(n.data) : n.status === za ? o(null) : l(new At()) : l(new Na(n.status))).catch((n) => La(n) ? l(new _a(n)) : Sa(n) ? l(new Da(n, s, i, n)) : Ua(n) ? l(new Ka(n, n)) : l(new At(n)));
|
|
13212
13215
|
}), fi = "/adm/v1/image", Qi = "image", er = "cms", nn = 20, Sc = (t, a) => Bs(t, a, fi, {}, er, Qi), ul = (t, a) => zt(t, fi + "/:id", { id: a }, er, Qi), Dc = (t, a) => ho(t, a, fi, {}, er, Qi), Kc = (t, a, e) => dl(t, e, fi + "/:id", { id: a }, er, Qi), Tc = (t, a) => _c(t, fi + "/:id", { id: a }, er, Qi), Xq = (t, a) => new Promise((e, s) => {
|
|
13213
13216
|
Aq(t, a).then((i) => {
|
|
13214
13217
|
if (a.length === 0)
|
|
@@ -14691,7 +14694,7 @@ const M7 = /* @__PURE__ */ W({
|
|
|
14691
14694
|
}
|
|
14692
14695
|
i.value = h.id;
|
|
14693
14696
|
}, y = (h) => Ze(i.value) ? i.value.includes(h) : i.value ? i.value === h : !1;
|
|
14694
|
-
return
|
|
14697
|
+
return ht(() => {
|
|
14695
14698
|
}), (h, A) => (q(), P(Fe, null, [
|
|
14696
14699
|
L("div", $7, [
|
|
14697
14700
|
m(Ku, {
|
|
@@ -15626,7 +15629,7 @@ const H7 = /* @__PURE__ */ W({
|
|
|
15626
15629
|
}, l = async () => {
|
|
15627
15630
|
await o(), e.forceReloadRoiPreviews(), e.forceReloadCropper();
|
|
15628
15631
|
};
|
|
15629
|
-
return
|
|
15632
|
+
return ht(async () => {
|
|
15630
15633
|
e.reset(), e.showLoader(), s.asset && s.asset.mainFile && Zi(s.asset.mainFile) && (e.setImageFile(xe(s.asset.mainFile)), await o()), e.hideLoader();
|
|
15631
15634
|
}), (n, d) => {
|
|
15632
15635
|
var u;
|
|
@@ -15688,7 +15691,7 @@ const H7 = /* @__PURE__ */ W({
|
|
|
15688
15691
|
},
|
|
15689
15692
|
setup(t) {
|
|
15690
15693
|
const a = t, { mounted: e, unMounted: s, divClassName: i } = Bc(a.queueKey);
|
|
15691
|
-
return
|
|
15694
|
+
return ht(async () => {
|
|
15692
15695
|
await Gt(), e();
|
|
15693
15696
|
}), Gr(() => {
|
|
15694
15697
|
s();
|
|
@@ -17221,7 +17224,7 @@ const mX = { class: "d-flex flex-column" }, fX = {
|
|
|
17221
17224
|
var Y;
|
|
17222
17225
|
return (Y = s.value) == null ? void 0 : Y.setData(p);
|
|
17223
17226
|
}
|
|
17224
|
-
}),
|
|
17227
|
+
}), ht(() => {
|
|
17225
17228
|
const { containerStyle: p, src: Y, alt: v, imgStyle: F, ...g } = e, y = g, h = {};
|
|
17226
17229
|
for (const A in g)
|
|
17227
17230
|
Object.prototype.hasOwnProperty.call(y, A) && y[A] !== void 0 && (h[A] = y[A]);
|
|
@@ -18140,7 +18143,7 @@ const CX = { key: 0 }, xX = /* @__PURE__ */ W({
|
|
|
18140
18143
|
}
|
|
18141
18144
|
},
|
|
18142
18145
|
{ immediate: !0 }
|
|
18143
|
-
),
|
|
18146
|
+
), ht(() => {
|
|
18144
18147
|
d.value = Ct.Info;
|
|
18145
18148
|
}), (Xe, _e) => (q(), E(mt, {
|
|
18146
18149
|
"model-value": !0,
|
|
@@ -18487,7 +18490,7 @@ const CX = { key: 0 }, xX = /* @__PURE__ */ W({
|
|
|
18487
18490
|
const {
|
|
18488
18491
|
releaseCollabFieldLock: de,
|
|
18489
18492
|
acquireCollabFieldLock: ke,
|
|
18490
|
-
addCollabFieldLockStatusListener:
|
|
18493
|
+
addCollabFieldLockStatusListener: gt,
|
|
18491
18494
|
lockedByUser: ca
|
|
18492
18495
|
// eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
18493
18496
|
} = fs(s.collab.room, s.collab.field);
|
|
@@ -18497,7 +18500,7 @@ const CX = { key: 0 }, xX = /* @__PURE__ */ W({
|
|
|
18497
18500
|
d.value = Ue;
|
|
18498
18501
|
},
|
|
18499
18502
|
{ immediate: !0 }
|
|
18500
|
-
),
|
|
18503
|
+
), gt((Ue) => {
|
|
18501
18504
|
Ue.status === Bt.Success && Ue.type === $t.Acquire ? te.value = !0 : Ue.status === Bt.Failure && Ue.type === $t.Acquire || Ue.status === Bt.Success && Ue.type === $t.Release ? te.value = !1 : Ue.status === Bt.Failure && Ue.type === $t.Release && (te.value = !0);
|
|
18502
18505
|
});
|
|
18503
18506
|
}
|
|
@@ -18512,14 +18515,14 @@ const CX = { key: 0 }, xX = /* @__PURE__ */ W({
|
|
|
18512
18515
|
if (R(Y) || R(Y.value))
|
|
18513
18516
|
throw new Error("Fatal error, parent component doesn't provide necessary config ext system config.");
|
|
18514
18517
|
const { t: v } = ee(), { showErrorsDefault: F, showError: g } = We(), y = Gi(s.configName), { imageClient: h } = y, { widgetImageToDamImageUrl: A } = nl(y), X = ea(), x = tr(), { uploadQueueDialog: w } = yo(), T = D(null), z = D(!1), H = D(!1), U = D(!1), K = D(!1), O = D(!1), M = D(!1), k = _(() => ae(r.value)), C = D(""), b = _(() => X.getQueue(s.queueKey)), S = _(() => !0), $ = _(() => !ae(T.value)), j = () => {
|
|
18515
|
-
x.setImageDetail(
|
|
18518
|
+
x.setImageDetail(Xt(T.value)), U.value = !0;
|
|
18516
18519
|
}, G = () => {
|
|
18517
18520
|
H.value = !0;
|
|
18518
18521
|
}, { cachedExtSystemId: J } = Fo(), te = D(!1), fe = async () => {
|
|
18519
18522
|
if (!o.value.enabled || R(s.collab))
|
|
18520
18523
|
return Promise.resolve(!0);
|
|
18521
18524
|
let de = 0;
|
|
18522
|
-
const ke = () => te.value ? Promise.resolve(!0) : (de++, de < 50 ? new Promise((
|
|
18525
|
+
const ke = () => te.value ? Promise.resolve(!0) : (de++, de < 50 ? new Promise((gt) => setTimeout(() => gt(ke()), 100)) : Promise.reject(!1));
|
|
18523
18526
|
return ke();
|
|
18524
18527
|
}, me = async (de) => {
|
|
18525
18528
|
u();
|
|
@@ -18536,9 +18539,9 @@ const CX = { key: 0 }, xX = /* @__PURE__ */ W({
|
|
|
18536
18539
|
}, { uploadSizes: Xe, uploadAccept: _e } = vc(
|
|
18537
18540
|
qe.Image,
|
|
18538
18541
|
Y.value.extSystemConfig
|
|
18539
|
-
), Q = async (de, ke,
|
|
18540
|
-
if (C.value = Ss, de && ae(T.value) || de &&
|
|
18541
|
-
T.value = xe(de), T.value && (C.value = A(
|
|
18542
|
+
), Q = async (de, ke, gt = !1) => {
|
|
18543
|
+
if (C.value = Ss, de && ae(T.value) || de && gt) {
|
|
18544
|
+
T.value = xe(de), T.value && (C.value = A(Xt(T.value)), s.expandMetadata && x.setImageDetail(Xt(T.value)));
|
|
18542
18545
|
return;
|
|
18543
18546
|
}
|
|
18544
18547
|
if (ke) {
|
|
@@ -18547,7 +18550,7 @@ const CX = { key: 0 }, xX = /* @__PURE__ */ W({
|
|
|
18547
18550
|
} catch (ca) {
|
|
18548
18551
|
F(ca);
|
|
18549
18552
|
}
|
|
18550
|
-
ae(T.value) || (C.value = A(
|
|
18553
|
+
ae(T.value) || (C.value = A(Xt(T.value)), s.expandMetadata && x.setImageDetail(Xt(T.value)));
|
|
18551
18554
|
return;
|
|
18552
18555
|
}
|
|
18553
18556
|
T.value = null;
|
|
@@ -18565,12 +18568,12 @@ const CX = { key: 0 }, xX = /* @__PURE__ */ W({
|
|
|
18565
18568
|
var Ue;
|
|
18566
18569
|
const ke = uo();
|
|
18567
18570
|
O.value = !0, x.setImageDetail(null), U.value = !0;
|
|
18568
|
-
let
|
|
18571
|
+
let gt = "", ca = "";
|
|
18569
18572
|
if (de.type === "asset") {
|
|
18570
18573
|
if (!de.value[0] || !de.value[0].mainFile) return;
|
|
18571
18574
|
try {
|
|
18572
18575
|
const ga = await rs(se, de.value[0].id);
|
|
18573
|
-
Pt((Ue = ga.metadata.customData) == null ? void 0 : Ue.description) && (
|
|
18576
|
+
Pt((Ue = ga.metadata.customData) == null ? void 0 : Ue.description) && (gt = ga.metadata.customData.description.trim()), ga.authors.length > 0 && (ca = (await mi(
|
|
18574
18577
|
se,
|
|
18575
18578
|
ke.selectedSelectConfig.extSystem,
|
|
18576
18579
|
ga.authors
|
|
@@ -18580,7 +18583,7 @@ const CX = { key: 0 }, xX = /* @__PURE__ */ W({
|
|
|
18580
18583
|
}
|
|
18581
18584
|
const Ta = {
|
|
18582
18585
|
texts: {
|
|
18583
|
-
description:
|
|
18586
|
+
description: gt,
|
|
18584
18587
|
source: ca
|
|
18585
18588
|
},
|
|
18586
18589
|
dam: {
|
|
@@ -18595,8 +18598,8 @@ const CX = { key: 0 }, xX = /* @__PURE__ */ W({
|
|
|
18595
18598
|
}, we = Fa(), { loading: Le, dialog: Ve } = St(we), { damClient: se } = nt(), Ae = async (de) => {
|
|
18596
18599
|
Le.value = !0, Ve.value = s.queueKey;
|
|
18597
18600
|
try {
|
|
18598
|
-
const ke = await fo(se, de),
|
|
18599
|
-
|
|
18601
|
+
const ke = await fo(se, de), gt = await el(se, ke.licence);
|
|
18602
|
+
gt.extSystem && (J.value = gt.extSystem), we.setAsset(ke);
|
|
18600
18603
|
} catch (ke) {
|
|
18601
18604
|
F(ke);
|
|
18602
18605
|
} finally {
|
|
@@ -18604,7 +18607,7 @@ const CX = { key: 0 }, xX = /* @__PURE__ */ W({
|
|
|
18604
18607
|
}
|
|
18605
18608
|
}, Vt = () => {
|
|
18606
18609
|
x.setImageDetail(null), U.value = !1;
|
|
18607
|
-
},
|
|
18610
|
+
}, Ft = async () => {
|
|
18608
18611
|
if (!ae(x.imageDetail)) {
|
|
18609
18612
|
K.value = !0;
|
|
18610
18613
|
try {
|
|
@@ -18663,7 +18666,7 @@ const CX = { key: 0 }, xX = /* @__PURE__ */ W({
|
|
|
18663
18666
|
), a({
|
|
18664
18667
|
metadataConfirm: Vi
|
|
18665
18668
|
}), (de, ke) => {
|
|
18666
|
-
var
|
|
18669
|
+
var gt, ca;
|
|
18667
18670
|
return q(), P(Fe, null, [
|
|
18668
18671
|
L("div", {
|
|
18669
18672
|
class: he(["a-image-widget", { "a-image-widget--locked": gs.value }])
|
|
@@ -18706,7 +18709,7 @@ const CX = { key: 0 }, xX = /* @__PURE__ */ W({
|
|
|
18706
18709
|
ref: lt,
|
|
18707
18710
|
modelValue: M.value,
|
|
18708
18711
|
"onUpdate:modelValue": ke[0] || (ke[0] = (Ue) => M.value = Ue),
|
|
18709
|
-
"file-input-key": (
|
|
18712
|
+
"file-input-key": (gt = b.value) == null ? void 0 : gt.fileInputKey,
|
|
18710
18713
|
accept: V(_e),
|
|
18711
18714
|
"max-sizes": V(Xe),
|
|
18712
18715
|
onFilesInput: Me
|
|
@@ -18872,7 +18875,7 @@ const CX = { key: 0 }, xX = /* @__PURE__ */ W({
|
|
|
18872
18875
|
saving: K.value,
|
|
18873
18876
|
loading: O.value,
|
|
18874
18877
|
onEditAsset: Ae,
|
|
18875
|
-
onOnConfirm:
|
|
18878
|
+
onOnConfirm: Ft,
|
|
18876
18879
|
onOnClose: Vt
|
|
18877
18880
|
}, null, 8, ["modelValue", "expand", "saving", "loading"])
|
|
18878
18881
|
], 2),
|
|
@@ -18940,7 +18943,7 @@ const CX = { key: 0 }, xX = /* @__PURE__ */ W({
|
|
|
18940
18943
|
getOrLoadDamConfigExtSystemByLicence: u,
|
|
18941
18944
|
getOrLoadDamConfigExtSystemByLicences: p
|
|
18942
18945
|
} = yt(o), Y = ft(void 0);
|
|
18943
|
-
|
|
18946
|
+
ht(async () => {
|
|
18944
18947
|
if (Y.value = await u(s.uploadLicence), R(Y.value)) {
|
|
18945
18948
|
r.value = "error";
|
|
18946
18949
|
return;
|
|
@@ -19532,7 +19535,7 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
|
|
|
19532
19535
|
}, h = () => {
|
|
19533
19536
|
e.value = { image: {}, video: {}, audio: {}, document: {} }, i.value = [], s.value = [];
|
|
19534
19537
|
}, A = _(() => l.getQueueItemsTypes(a.queueKey));
|
|
19535
|
-
return
|
|
19538
|
+
return ht(() => {
|
|
19536
19539
|
A.value[0] && o.value.push(A.value[0]);
|
|
19537
19540
|
}), (X, x) => (q(), P("div", OA, [
|
|
19538
19541
|
L("div", RA, [
|
|
@@ -19802,7 +19805,7 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
|
|
|
19802
19805
|
}, l = (p) => {
|
|
19803
19806
|
i.removeByIndex(e.queueKey, p);
|
|
19804
19807
|
}, { addToCachedKeywords: n, fetchCachedKeywords: d } = go(), { addToCachedAuthors: c, fetchCachedAuthors: u } = Ji();
|
|
19805
|
-
return
|
|
19808
|
+
return ht(() => {
|
|
19806
19809
|
r.value.forEach((p) => {
|
|
19807
19810
|
n(p.keywords), c(p.authors);
|
|
19808
19811
|
}), d(), u();
|
|
@@ -19867,7 +19870,7 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
|
|
|
19867
19870
|
const e = t, s = a, { uploadQueueDialog: i, uploadQueueSidebar: r, toggleUploadQueueSidebar: o } = yo(), l = tr(), { maxPosition: n } = St(l), d = ea(), c = _(() => d.getQueueTotalCount(e.queueKey)), u = _(() => d.getQueueItems(e.queueKey)), p = _(() => d.getQueueProcessedCount(e.queueKey)), Y = _(() => c.value > p.value), v = _(() => c.value === p.value), { t: F } = ee(), { toolbarColor: g } = ji(), y = da(), { showRecordWas: h, showValidationError: A, showErrorsDefault: X } = We(), { damClient: x } = nt(), w = D(!1), T = D(!1), z = async () => {
|
|
19868
19871
|
d.stopUpload(e.queueKey), i.value = null;
|
|
19869
19872
|
}, H = async () => {
|
|
19870
|
-
const S =
|
|
19873
|
+
const S = Xt(u.value);
|
|
19871
19874
|
if (S.length !== 0) {
|
|
19872
19875
|
if (w.value = !0, y.value.$touch(), y.value.$invalid) {
|
|
19873
19876
|
A(), w.value = !1;
|
|
@@ -19924,7 +19927,7 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
|
|
|
19924
19927
|
};
|
|
19925
19928
|
});
|
|
19926
19929
|
}, K = async () => {
|
|
19927
|
-
const S =
|
|
19930
|
+
const S = Xt(u.value);
|
|
19928
19931
|
if (S.length !== 0) {
|
|
19929
19932
|
if (T.value = !0, y.value.$touch(), y.value.$invalid) {
|
|
19930
19933
|
A(), T.value = !1;
|
|
@@ -20282,7 +20285,7 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
|
|
|
20282
20285
|
}, U = () => {
|
|
20283
20286
|
T.value = s.queueKey;
|
|
20284
20287
|
}, K = async (Ve) => {
|
|
20285
|
-
const se = uo(), Ae = Ve.map((pt) => pt.id), Vt = /* @__PURE__ */ new Map(),
|
|
20288
|
+
const se = uo(), Ae = Ve.map((pt) => pt.id), Vt = /* @__PURE__ */ new Map(), Ft = /* @__PURE__ */ new Set(), Oe = /* @__PURE__ */ new Map();
|
|
20286
20289
|
try {
|
|
20287
20290
|
(await ih(b, Ae, se.selectedLicenceId)).forEach((Se) => {
|
|
20288
20291
|
var lt;
|
|
@@ -20292,10 +20295,10 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
|
|
|
20292
20295
|
});
|
|
20293
20296
|
}), Vt.forEach((Se) => {
|
|
20294
20297
|
Se.authorIds.forEach((lt) => {
|
|
20295
|
-
|
|
20298
|
+
Ft.add(lt);
|
|
20296
20299
|
});
|
|
20297
|
-
}),
|
|
20298
|
-
...
|
|
20300
|
+
}), Ft.size > 0 && (await mi(b, se.selectedSelectConfig.extSystem, [
|
|
20301
|
+
...Ft
|
|
20299
20302
|
])).forEach((lt) => {
|
|
20300
20303
|
Oe.set(lt.id, lt.name);
|
|
20301
20304
|
});
|
|
@@ -20353,7 +20356,7 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
|
|
|
20353
20356
|
if (G.value.$touch(), G.value.$invalid)
|
|
20354
20357
|
return c(), !1;
|
|
20355
20358
|
try {
|
|
20356
|
-
const Ve = await Xq(n,
|
|
20359
|
+
const Ve = await Xq(n, Xt(y.value)), se = [], Ae = Ve.map((Vt) => (se.push(Vt.id), {
|
|
20357
20360
|
key: ts(),
|
|
20358
20361
|
...Vt
|
|
20359
20362
|
}));
|
|
@@ -20409,7 +20412,7 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
|
|
|
20409
20412
|
fe.value = document.querySelector("#" + Q.value), Le();
|
|
20410
20413
|
}), a({
|
|
20411
20414
|
saveImages: J
|
|
20412
|
-
}),
|
|
20415
|
+
}), ht(() => {
|
|
20413
20416
|
A();
|
|
20414
20417
|
}), (Ve, se) => {
|
|
20415
20418
|
var Ae, Vt;
|
|
@@ -20422,11 +20425,11 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
|
|
|
20422
20425
|
"max-sizes": V(p),
|
|
20423
20426
|
onFilesInput: z
|
|
20424
20427
|
}, {
|
|
20425
|
-
activator: f(({ props:
|
|
20428
|
+
activator: f(({ props: Ft }) => [
|
|
20426
20429
|
m(ie, Rt({
|
|
20427
20430
|
ref_key: "uploadButtonComponent",
|
|
20428
20431
|
ref: u
|
|
20429
|
-
},
|
|
20432
|
+
}, Ft), {
|
|
20430
20433
|
default: f(() => [
|
|
20431
20434
|
B(I(V(v)("common.damImage.image.button.upload")), 1)
|
|
20432
20435
|
]),
|
|
@@ -20447,7 +20450,7 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
|
|
|
20447
20450
|
]),
|
|
20448
20451
|
m(Wu, {
|
|
20449
20452
|
modelValue: r.value,
|
|
20450
|
-
"onUpdate:modelValue": se[0] || (se[0] = (
|
|
20453
|
+
"onUpdate:modelValue": se[0] || (se[0] = (Ft) => r.value = Ft),
|
|
20451
20454
|
"select-licences": Ve.selectLicences,
|
|
20452
20455
|
"min-count": 1,
|
|
20453
20456
|
"max-count": 50,
|
|
@@ -20460,8 +20463,8 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
|
|
|
20460
20463
|
key: Xe.value,
|
|
20461
20464
|
class: he([V(jr), "asset-list-tiles asset-list-tiles--thumbnail"])
|
|
20462
20465
|
}, [
|
|
20463
|
-
(q(!0), P(Fe, null, He(V(y), (
|
|
20464
|
-
key:
|
|
20466
|
+
(q(!0), P(Fe, null, He(V(y), (Ft, Oe) => (q(), E(XA, {
|
|
20467
|
+
key: Ft.key,
|
|
20465
20468
|
index: Oe,
|
|
20466
20469
|
"disable-draggable": Ve.disableDraggable,
|
|
20467
20470
|
onEditAsset: S,
|
|
@@ -20474,7 +20477,7 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
|
|
|
20474
20477
|
accept: V(Y),
|
|
20475
20478
|
"max-sizes": V(p),
|
|
20476
20479
|
onOnDrop: H,
|
|
20477
|
-
onOnClick: se[1] || (se[1] = (
|
|
20480
|
+
onOnClick: se[1] || (se[1] = (Ft) => {
|
|
20478
20481
|
var Oe;
|
|
20479
20482
|
return (Oe = u.value) == null ? void 0 : Oe.$el.click();
|
|
20480
20483
|
})
|
|
@@ -20535,7 +20538,7 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
|
|
|
20535
20538
|
getOrLoadDamConfigExtSystemByLicence: u,
|
|
20536
20539
|
getOrLoadDamConfigExtSystemByLicences: p
|
|
20537
20540
|
} = yt(o), Y = ft(void 0);
|
|
20538
|
-
|
|
20541
|
+
ht(async () => {
|
|
20539
20542
|
if (Y.value = await u(s.uploadLicence), R(Y.value)) {
|
|
20540
20543
|
r.value = "error";
|
|
20541
20544
|
return;
|
|
@@ -20706,7 +20709,7 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
|
|
|
20706
20709
|
}
|
|
20707
20710
|
}, K = async (M, k, C = !1) => {
|
|
20708
20711
|
if (o.value = "", M && ae(l.value) || M && C) {
|
|
20709
|
-
l.value = xe(M), l.value && (i.value = l.value.dam.damId, o.value = Y(
|
|
20712
|
+
l.value = xe(M), l.value && (i.value = l.value.dam.damId, o.value = Y(Xt(l.value)), r.value.description = l.value.texts.description, r.value.source = l.value.texts.source, U());
|
|
20710
20713
|
return;
|
|
20711
20714
|
}
|
|
20712
20715
|
if (k) {
|
|
@@ -20715,7 +20718,7 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
|
|
|
20715
20718
|
} catch (b) {
|
|
20716
20719
|
v(b);
|
|
20717
20720
|
}
|
|
20718
|
-
ae(l.value) || (i.value = l.value.dam.damId, o.value = Y(
|
|
20721
|
+
ae(l.value) || (i.value = l.value.dam.damId, o.value = Y(Xt(l.value)), r.value.description = l.value.texts.description, r.value.source = l.value.texts.source, U());
|
|
20719
20722
|
return;
|
|
20720
20723
|
}
|
|
20721
20724
|
l.value = null, r.value.description = "", r.value.source = "";
|
|
@@ -21020,7 +21023,7 @@ function oK() {
|
|
|
21020
21023
|
}
|
|
21021
21024
|
const nK = (t, a, e = "", s = {}, i = null, r, o, l = {}) => new Promise((n, d) => {
|
|
21022
21025
|
const c = { method: a };
|
|
21023
|
-
e !== "" && (c.url = Vs(e, s)), ae(i) || (c.data = JSON.stringify(i)), t().request({ ...l, ...c }).then((u) => ps(u.status) ? u.data ? n(u.data) : u.status === za ? n(null) : d(new
|
|
21026
|
+
e !== "" && (c.url = Vs(e, s)), ae(i) || (c.data = JSON.stringify(i)), t().request({ ...l, ...c }).then((u) => ps(u.status) ? u.data ? n(u.data) : u.status === za ? n(null) : d(new At()) : d(new Na(u.status))).catch((u) => La(u) ? d(new _a(u)) : Sa(u) ? d(new Da(u, r, o, u)) : Ua(u) ? d(new Ka(u, u)) : d(new At(u)));
|
|
21024
21027
|
}), Kd = (t, a = void 0) => {
|
|
21025
21028
|
const { querySetLimit: e, querySetOffset: s, querySetOrder: i, queryBuild: r, querySetFilters: o } = co();
|
|
21026
21029
|
return e(t.rowsPerPage), s(t.page, t.rowsPerPage), i(t.sortBy, t.descending), pe(a) && o(a), r();
|
|
@@ -21069,7 +21072,7 @@ const nK = (t, a, e = "", s = {}, i = null, r, o, l = {}) => new Promise((n, d)
|
|
|
21069
21072
|
}
|
|
21070
21073
|
return F.status === za ? Promise.resolve([]) : v;
|
|
21071
21074
|
} catch (F) {
|
|
21072
|
-
return La(F) ? Promise.reject(new _a(F)) : Sa(F) ? Promise.reject(new Da(F, l, n, F)) : Ua(F) ? Promise.reject(new Ka(F, F)) : Promise.reject(new
|
|
21075
|
+
return La(F) ? Promise.reject(new _a(F)) : Sa(F) ? Promise.reject(new Da(F, l, n, F)) : Ua(F) ? Promise.reject(new Ka(F, F)) : Promise.reject(new At(F));
|
|
21073
21076
|
}
|
|
21074
21077
|
};
|
|
21075
21078
|
function dK() {
|
|
@@ -23372,7 +23375,7 @@ const fK = {
|
|
|
23372
23375
|
})
|
|
23373
23376
|
});
|
|
23374
23377
|
async function AK() {
|
|
23375
|
-
(await import("./webfontloader-
|
|
23378
|
+
(await import("./webfontloader-CkO4Lp_g.js").then((a) => a.w)).load({
|
|
23376
23379
|
google: {
|
|
23377
23380
|
families: ["Roboto:100,300,400,500,700,900&display=swap"]
|
|
23378
23381
|
}
|
|
@@ -24174,7 +24177,7 @@ export {
|
|
|
24174
24177
|
Sa as e3,
|
|
24175
24178
|
Da as e4,
|
|
24176
24179
|
cu as e5,
|
|
24177
|
-
|
|
24180
|
+
At as e6,
|
|
24178
24181
|
fK as e7,
|
|
24179
24182
|
XK as e8,
|
|
24180
24183
|
AK as e9,
|
|
@@ -24205,4 +24208,4 @@ export {
|
|
|
24205
24208
|
nD as y,
|
|
24206
24209
|
Gs as z
|
|
24207
24210
|
};
|
|
24208
|
-
//# sourceMappingURL=lib-
|
|
24211
|
+
//# sourceMappingURL=lib-BK9nq2ph.js.map
|