@anzusystems/common-admin 1.47.0-beta.336 → 1.47.0-beta.337
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/{AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DersLykS.mjs → AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-BEB08O7m.mjs} +2 -2
- package/dist/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-BEB08O7m.mjs.map +1 -0
- package/dist/common-admin.css +1 -1
- package/dist/common-admin.js +586 -586
- package/dist/common-admin.js.map +1 -1
- package/dist/labs.js +2 -2
- package/package.json +2 -2
- package/dist/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DersLykS.mjs.map +0 -1
package/dist/common-admin.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as H, computed as C, createBlock as I, createElementBlock as D, openBlock as v, withCtx as m, createTextVNode as M, toDisplayString as b, resolveComponent as _e, normalizeClass as ye, createVNode as u, createElementVNode as R, withModifiers as W, withDirectives as ta, vShow as Fa, renderSlot as de, ref as S, watch as Xe, inject as
|
|
1
|
+
import { defineComponent as H, computed as C, createBlock as I, createElementBlock as D, openBlock as v, withCtx as m, createTextVNode as M, toDisplayString as b, resolveComponent as _e, normalizeClass as ye, createVNode as u, createElementVNode as R, withModifiers as W, withDirectives as ta, vShow as Fa, renderSlot as de, ref as S, watch as Xe, inject as nt, createSlots as ya, createCommentVNode as P, unref as d, provide as it, Fragment as ge, renderList as et, mergeModels as He, useModel as Je, onMounted as ft, toRefs as cs, mergeProps as Ft, shallowRef as vt, onUnmounted as Os, readonly as za, createStaticVNode as ql, resolveDynamicComponent as $s, setBlockTracking as Xn, onBeforeUnmount as Xo, reactive as Fi, toRaw as dt, normalizeStyle as Dt, toRef as wr, normalizeProps as yo, guardReactiveProps as Ao, isRef as ns, isProxy as bu, getCurrentInstance as xu, withKeys as La, nextTick as ls, Teleport as Cu } from "vue";
|
|
2
2
|
import { useI18n as Q } from "vue-i18n";
|
|
3
3
|
import { useI18n as dD } from "vue-i18n";
|
|
4
4
|
import { VChip as Ct } from "vuetify/components/VChip";
|
|
5
|
-
import { u as Aa, i as Ke, a as Ns, C as Ot, b as Nt, S as ba, c as xa, d as B, s as Na, _ as ra, e as yt, f as ke, g as oe, h as Zt, j as Iu, k as kt, l as We, m as pa, n as ds, o as Pe, p as je, q as Yl, r as fo, t as ku, v as wu, w as Xl, x as Pt, y as lr, z as Bs, A as Ca, B as Su, D as Ku, E as bo, F as Tt, G as yl, H as Rt, I as Du, J as pi, K as Tu, L as Sr, M as Al, N as bl, O as xl, P as Cl, Q as Il, R as kl, T as wl, U as Sl, V as Kl, W as qt, X as ro, Y as no, Z as yn, $ as An, a0 as Mu, a1 as Kt, a2 as Dl, a3 as Tl, a4 as dr, a5 as Eu, a6 as Ia, a7 as ka, a8 as ms, a9 as fs, aa as ja, ab as Vs, ac as vs, ad as Fs, ae as na, af as wa, ag as Sa, ah as ur, ai as js, aj as hi, ak as gi, al as qi, am as Yi, an as Xi, ao as Ml, ap as El, aq as xo, ar as Kr, as as cr, at as _u, au as _l, av as $l, aw as $u, ax as ha, ay as ga, az as Dr, aA as Bu, aB as Pu, aC as bn, aD as Lo, aE as Ru, aF as zu, aG as Lu, aH as Uu, aI as ps, aJ as Bl, aK as Ou, aL as mr, aM as Is, aN as Pl, aO as Rl, aP as zl, aQ as Nu, aR as xn, aS as fr, aT as Cn, aU as ju, aV as Hu, aW as Wu, aX as Vr, aY as Gu, aZ as Ju, a_ as Zu, a$ as Qu, b0 as ec, b1 as tc, b2 as ac, b3 as sc, b4 as Ll, b5 as ic, b6 as In, b7 as Pi, b8 as kn, b9 as wn, ba as Tr } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { bb as cD, bc as mD, bK as fD, bL as VD, bo as vD, bn as FD, bD as pD, bF as hD, bG as gD, bE as qD, bH as YD, bA as XD, bt as yD, bv as AD, by as bD, bq as xD, bs as CD, br as ID, bw as kD, bu as wD, bB as SD, bN as KD, bO as DD, bM as TD, bC as MD, bf as ED, be as _D, bj as $D, bi as BD, bm as PD, bg as RD, bh as zD, bk as LD, bl as UD, bz as OD, bp as ND, bI as jD, bJ as HD, bd as WD, bx as GD } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { u as Aa, i as Ke, a as Ns, C as Ot, b as Nt, S as ba, c as xa, d as B, s as Na, _ as ra, e as yt, f as ke, g as oe, h as Zt, j as Iu, k as kt, l as We, m as pa, n as ds, o as Pe, p as je, q as Yl, r as fo, t as ku, v as wu, w as Xl, x as Pt, y as lr, z as Bs, A as Ca, B as Su, D as Ku, E as bo, F as Tt, G as yl, H as Rt, I as Du, J as pi, K as Tu, L as Sr, M as Al, N as bl, O as xl, P as Cl, Q as Il, R as kl, T as wl, U as Sl, V as Kl, W as qt, X as ro, Y as no, Z as yn, $ as An, a0 as Mu, a1 as Kt, a2 as Dl, a3 as Tl, a4 as dr, a5 as Eu, a6 as Ia, a7 as ka, a8 as ms, a9 as fs, aa as ja, ab as Vs, ac as vs, ad as Fs, ae as na, af as wa, ag as Sa, ah as ur, ai as js, aj as hi, ak as gi, al as qi, am as Yi, an as Xi, ao as Ml, ap as El, aq as xo, ar as Kr, as as cr, at as _u, au as _l, av as $l, aw as $u, ax as ha, ay as ga, az as Dr, aA as Bu, aB as Pu, aC as bn, aD as Lo, aE as Ru, aF as zu, aG as Lu, aH as Uu, aI as ps, aJ as Bl, aK as Ou, aL as mr, aM as Is, aN as Pl, aO as Rl, aP as zl, aQ as Nu, aR as xn, aS as fr, aT as Cn, aU as ju, aV as Hu, aW as Wu, aX as Vr, aY as Gu, aZ as Ju, a_ as Zu, a$ as Qu, b0 as ec, b1 as tc, b2 as ac, b3 as sc, b4 as Ll, b5 as ic, b6 as In, b7 as Pi, b8 as kn, b9 as wn, ba as Tr } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-BEB08O7m.mjs";
|
|
6
|
+
import { bb as cD, bc as mD, bK as fD, bL as VD, bo as vD, bn as FD, bD as pD, bF as hD, bG as gD, bE as qD, bH as YD, bA as XD, bt as yD, bv as AD, by as bD, bq as xD, bs as CD, br as ID, bw as kD, bu as wD, bB as SD, bN as KD, bO as DD, bM as TD, bC as MD, bf as ED, be as _D, bj as $D, bi as BD, bm as PD, bg as RD, bh as zD, bk as LD, bl as UD, bz as OD, bp as ND, bI as jD, bJ as HD, bd as WD, bx as GD } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-BEB08O7m.mjs";
|
|
7
7
|
import { VAlert as oi } from "vuetify/components/VAlert";
|
|
8
8
|
import { VIcon as se } from "vuetify/components/VIcon";
|
|
9
9
|
import { VProgressCircular as Ne } from "vuetify/components/VProgressCircular";
|
|
@@ -177,18 +177,18 @@ const yc = { key: 1 }, Pr = /* @__PURE__ */ H({
|
|
|
177
177
|
},
|
|
178
178
|
emits: ["update:modelValue", "click:append", "blur", "focus"],
|
|
179
179
|
setup(e, { expose: a, emit: t }) {
|
|
180
|
-
const s = e, o = t, i = S(null), { collabOptions: r } = Aa(), n = S((
|
|
181
|
-
}), l = S((
|
|
180
|
+
const s = e, o = t, i = S(null), { collabOptions: r } = Aa(), n = S((X) => {
|
|
181
|
+
}), l = S((X) => {
|
|
182
182
|
}), c = S(null);
|
|
183
183
|
if (r.value.enabled && Ke(s.collab)) {
|
|
184
184
|
const {
|
|
185
|
-
releaseCollabFieldLock:
|
|
185
|
+
releaseCollabFieldLock: X,
|
|
186
186
|
acquireCollabFieldLock: T,
|
|
187
187
|
addCollabFieldLockStatusListener: E,
|
|
188
188
|
addCollabGatheringBufferDataListener: N,
|
|
189
189
|
lockedByUser: O
|
|
190
190
|
} = Ns(s.collab.room, s.collab.field);
|
|
191
|
-
n.value =
|
|
191
|
+
n.value = X, l.value = T, Xe(
|
|
192
192
|
O,
|
|
193
193
|
(z) => {
|
|
194
194
|
c.value = z;
|
|
@@ -200,30 +200,30 @@ const yc = { key: 1 }, Pr = /* @__PURE__ */ H({
|
|
|
200
200
|
i.value?.blur();
|
|
201
201
|
});
|
|
202
202
|
}
|
|
203
|
-
const { t: f } = Q(), V =
|
|
204
|
-
o("update:modelValue",
|
|
203
|
+
const { t: f } = Q(), V = nt(ba, void 0), F = nt(xa, void 0), q = (X) => {
|
|
204
|
+
o("update:modelValue", X);
|
|
205
205
|
}, p = () => {
|
|
206
206
|
o("blur", s.modelValue), s.v?.$touch(), n.value(s.modelValue);
|
|
207
207
|
}, h = () => {
|
|
208
208
|
o("focus", s.modelValue), l.value();
|
|
209
|
-
}, g = C(() => Ke(s.errorMessage) ? [s.errorMessage] : s.v?.$errors?.length ? [s.v.$errors.map((
|
|
209
|
+
}, g = C(() => Ke(s.errorMessage) ? [s.errorMessage] : s.v?.$errors?.length ? [s.v.$errors.map((X) => X.$message).join(" ")] : []), x = C(() => {
|
|
210
210
|
if (Ke(s.label)) return s.label;
|
|
211
211
|
if (B(V) || B(F) || B(s.v?.$path)) return "";
|
|
212
|
-
const { end:
|
|
213
|
-
return f(V + "." + F + ".model." +
|
|
214
|
-
}),
|
|
212
|
+
const { end: X } = Na(s.v?.$path, ".");
|
|
213
|
+
return f(V + "." + F + ".model." + X);
|
|
214
|
+
}), y = C(() => Ke(s.required) ? s.required : !!(s.v?.required && s.v?.required.$params.type === "required")), w = C(() => Ke(s.disabled) ? s.disabled : !!c.value), Y = (X) => yt(X) && !B(s.suggestedLength) ? X > s.suggestedLength : !1;
|
|
215
215
|
return a({
|
|
216
216
|
focus: () => {
|
|
217
217
|
i.value?.focus();
|
|
218
218
|
}
|
|
219
|
-
}), (
|
|
219
|
+
}), (X, T) => (v(), I(Ul, {
|
|
220
220
|
ref_key: "textareaRef",
|
|
221
221
|
ref: i,
|
|
222
222
|
"prepend-icon": e.prependIcon,
|
|
223
223
|
"data-cy": e.dataCy,
|
|
224
224
|
"error-messages": g.value,
|
|
225
225
|
"model-value": e.modelValue,
|
|
226
|
-
required:
|
|
226
|
+
required: y.value,
|
|
227
227
|
disabled: w.value,
|
|
228
228
|
rows: e.rows,
|
|
229
229
|
"auto-grow": "",
|
|
@@ -238,14 +238,14 @@ const yc = { key: 1 }, Pr = /* @__PURE__ */ H({
|
|
|
238
238
|
name: "label",
|
|
239
239
|
fn: m(() => [
|
|
240
240
|
M(b(x.value), 1),
|
|
241
|
-
|
|
241
|
+
y.value ? (v(), D("span", Ic)) : P("", !0)
|
|
242
242
|
]),
|
|
243
243
|
key: "0"
|
|
244
244
|
},
|
|
245
245
|
c.value ? {
|
|
246
246
|
name: "append-inner",
|
|
247
247
|
fn: m(() => [
|
|
248
|
-
de(
|
|
248
|
+
de(X.$slots, "locked", { userId: c.value }, () => [
|
|
249
249
|
e.collab ? (v(), I(ra, {
|
|
250
250
|
key: 0,
|
|
251
251
|
id: c.value,
|
|
@@ -255,17 +255,17 @@ const yc = { key: 1 }, Pr = /* @__PURE__ */ H({
|
|
|
255
255
|
]),
|
|
256
256
|
key: "1"
|
|
257
257
|
} : void 0,
|
|
258
|
-
|
|
258
|
+
X.$slots.prepend ? {
|
|
259
259
|
name: "prepend",
|
|
260
260
|
fn: m(() => [
|
|
261
|
-
de(
|
|
261
|
+
de(X.$slots, "prepend")
|
|
262
262
|
]),
|
|
263
263
|
key: "2"
|
|
264
264
|
} : void 0,
|
|
265
|
-
|
|
265
|
+
X.$slots.counter ? {
|
|
266
266
|
name: "counter",
|
|
267
267
|
fn: m((E) => [
|
|
268
|
-
de(
|
|
268
|
+
de(X.$slots, "counter", { props: E })
|
|
269
269
|
]),
|
|
270
270
|
key: "3"
|
|
271
271
|
} : e.suggestedLength ? {
|
|
@@ -331,7 +331,7 @@ const yc = { key: 1 }, Pr = /* @__PURE__ */ H({
|
|
|
331
331
|
o.value.page = r.value;
|
|
332
332
|
}, x = () => {
|
|
333
333
|
o.value.page = o.value.page - 1;
|
|
334
|
-
},
|
|
334
|
+
}, y = () => {
|
|
335
335
|
o.value.page = o.value.page + 1;
|
|
336
336
|
};
|
|
337
337
|
return (w, Y) => (v(), D("div", kc, [
|
|
@@ -389,7 +389,7 @@ const yc = { key: 1 }, Pr = /* @__PURE__ */ H({
|
|
|
389
389
|
icon: "mdi-chevron-right",
|
|
390
390
|
size: "small",
|
|
391
391
|
variant: "text",
|
|
392
|
-
onClick: W(
|
|
392
|
+
onClick: W(y, ["stop"])
|
|
393
393
|
}, null, 8, ["disabled"]),
|
|
394
394
|
u(ee, {
|
|
395
395
|
disabled: f.value,
|
|
@@ -663,7 +663,7 @@ const yc = { key: 1 }, Pr = /* @__PURE__ */ H({
|
|
|
663
663
|
"model-value": o.value,
|
|
664
664
|
"max-width": e.maxWidth,
|
|
665
665
|
persistent: "",
|
|
666
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
666
|
+
"onUpdate:modelValue": h[0] || (h[0] = (y) => o.value = y)
|
|
667
667
|
}, {
|
|
668
668
|
default: m(() => [
|
|
669
669
|
o.value ? (v(), I(Ge, {
|
|
@@ -977,14 +977,14 @@ const nS = /* @__PURE__ */ H({
|
|
|
977
977
|
return l(p.value.titleT ?? "");
|
|
978
978
|
const Y = [];
|
|
979
979
|
return c(s) && Y.push(l(s.value.titleT ?? "")), c(i) && Y.push(l(i.value.titleT ?? "")), c(r) && Y.push(l(r.value.titleT ?? "")), c(o) && Y.push(l(o.value.titleT ?? "")), Y.join("/");
|
|
980
|
-
}),
|
|
981
|
-
Xe(
|
|
980
|
+
}), y = C(() => p.value?.model);
|
|
981
|
+
Xe(y, (Y) => {
|
|
982
982
|
!lr(t.value) && lr(Y) && (t.value = "");
|
|
983
983
|
});
|
|
984
984
|
const w = C(() => B(a.placeholder) ? p.value?.variant === "startsWith" ? l("common.model.filterPlaceholder.startsWith") : p.value?.variant === "eq" ? l("common.model.filterPlaceholder.eq") : p.value?.variant === "contains" || p.value?.variant === "search" ? l("common.model.filterPlaceholder.contains") : "" : a.placeholder);
|
|
985
985
|
return (Y, A) => (v(), I(ko, {
|
|
986
986
|
modelValue: t.value,
|
|
987
|
-
"onUpdate:modelValue": A[1] || (A[1] = (
|
|
987
|
+
"onUpdate:modelValue": A[1] || (A[1] = (X) => t.value = X),
|
|
988
988
|
label: x.value,
|
|
989
989
|
"data-cy": e.dataCy,
|
|
990
990
|
placeholder: w.value
|
|
@@ -994,18 +994,18 @@ const nS = /* @__PURE__ */ H({
|
|
|
994
994
|
fn: m(() => [
|
|
995
995
|
u(Co, {
|
|
996
996
|
modelValue: q.value,
|
|
997
|
-
"onUpdate:modelValue": A[0] || (A[0] = (
|
|
997
|
+
"onUpdate:modelValue": A[0] || (A[0] = (X) => q.value = X),
|
|
998
998
|
divided: "",
|
|
999
999
|
class: "override-toggle"
|
|
1000
1000
|
}, {
|
|
1001
1001
|
default: m(() => [
|
|
1002
|
-
(v(!0), D(ge, null, et(d(n), (
|
|
1002
|
+
(v(!0), D(ge, null, et(d(n), (X, T) => (v(), I(ee, {
|
|
1003
1003
|
key: T,
|
|
1004
1004
|
size: "small",
|
|
1005
|
-
value:
|
|
1005
|
+
value: X
|
|
1006
1006
|
}, {
|
|
1007
1007
|
default: m(() => [
|
|
1008
|
-
M(b(d(l)(
|
|
1008
|
+
M(b(d(l)(X.titleT ?? "")), 1)
|
|
1009
1009
|
]),
|
|
1010
1010
|
_: 2
|
|
1011
1011
|
}, 1032, ["value"]))), 128))
|
|
@@ -1319,10 +1319,10 @@ function Zl(e, a = {}) {
|
|
|
1319
1319
|
function p(h) {
|
|
1320
1320
|
const g = (E) => {
|
|
1321
1321
|
s.currentUsers.value.set(h, E), s.currentUsersLoaded.value.set(h, !0);
|
|
1322
|
-
}, x = C(() => s.currentUsers.value.get(h)),
|
|
1323
|
-
if (!B(
|
|
1322
|
+
}, x = C(() => s.currentUsers.value.get(h)), y = C(() => s.currentUsersLoaded.value.get(h)), w = C(() => x.value ? l(x.value.roles, h) : !1), Y = C(() => x.value ?? !1), A = C(() => {
|
|
1323
|
+
if (!B(y.value))
|
|
1324
1324
|
return !Y.value;
|
|
1325
|
-
}),
|
|
1325
|
+
}), X = () => {
|
|
1326
1326
|
if (je(t.adminRole)) {
|
|
1327
1327
|
const E = t.adminRole.find((N) => N.system === h);
|
|
1328
1328
|
E && s.isAdminRoleBySystem.value.set(h, E.adminRole);
|
|
@@ -1338,7 +1338,7 @@ function Zl(e, a = {}) {
|
|
|
1338
1338
|
fetchCurrentUser: async (E, N = "/adm/v1/users/current", O = void 0, z = "user") => {
|
|
1339
1339
|
try {
|
|
1340
1340
|
const U = await Tt(E, N, O, h, z);
|
|
1341
|
-
return g(U), s.currentUsersLoaded.value.set(h, !0),
|
|
1341
|
+
return g(U), s.currentUsersLoaded.value.set(h, !0), X(), x.value;
|
|
1342
1342
|
} catch {
|
|
1343
1343
|
s.currentUsersLoaded.value.set(h, !0);
|
|
1344
1344
|
return;
|
|
@@ -1471,11 +1471,11 @@ const om = /* @__PURE__ */ H({
|
|
|
1471
1471
|
{ immediate: !0 }
|
|
1472
1472
|
);
|
|
1473
1473
|
}
|
|
1474
|
-
const { t: f } = Q(), V =
|
|
1474
|
+
const { t: f } = Q(), V = nt(ba, void 0), F = nt(xa, void 0), q = S(!1), p = S(!1), h = S(!1), g = () => {
|
|
1475
1475
|
p.value = !1, s("blur", B(t.modelValue) ? null : t.modelValue), t.v?.$touch(), h.value === !1 && r.value(t.modelValue);
|
|
1476
1476
|
}, x = () => {
|
|
1477
1477
|
p.value = !0, l.value();
|
|
1478
|
-
},
|
|
1478
|
+
}, y = () => {
|
|
1479
1479
|
h.value = !0, l.value();
|
|
1480
1480
|
}, w = () => {
|
|
1481
1481
|
h.value = !1, r.value(t.modelValue);
|
|
@@ -1498,7 +1498,7 @@ const om = /* @__PURE__ */ H({
|
|
|
1498
1498
|
},
|
|
1499
1499
|
{ immediate: !0 }
|
|
1500
1500
|
);
|
|
1501
|
-
const
|
|
1501
|
+
const X = (E) => {
|
|
1502
1502
|
if (l.value(), setTimeout(() => {
|
|
1503
1503
|
p.value === !1 && r.value(t.modelValue);
|
|
1504
1504
|
}, 500), E) {
|
|
@@ -1524,7 +1524,7 @@ const om = /* @__PURE__ */ H({
|
|
|
1524
1524
|
"onUpdate:modelValue": N[0] || (N[0] = (O) => q.value = O),
|
|
1525
1525
|
label: A.value,
|
|
1526
1526
|
disabled: T.value,
|
|
1527
|
-
onClick: N[1] || (N[1] = W((O) =>
|
|
1527
|
+
onClick: N[1] || (N[1] = W((O) => X(q.value), ["stop"]))
|
|
1528
1528
|
}, null, 8, ["modelValue", "label", "disabled"]),
|
|
1529
1529
|
R("div", nm, [
|
|
1530
1530
|
de(E.$slots, "locked", { userId: c.value }, () => [
|
|
@@ -1548,7 +1548,7 @@ const om = /* @__PURE__ */ H({
|
|
|
1548
1548
|
disabled: T.value,
|
|
1549
1549
|
onFocus: x,
|
|
1550
1550
|
onBlur: g,
|
|
1551
|
-
onOnOpen:
|
|
1551
|
+
onOnOpen: y,
|
|
1552
1552
|
onOnClose: w
|
|
1553
1553
|
}, {
|
|
1554
1554
|
"append-inner": m(() => [...N[3] || (N[3] = [])]),
|
|
@@ -1654,13 +1654,13 @@ const om = /* @__PURE__ */ H({
|
|
|
1654
1654
|
{ immediate: !0 }
|
|
1655
1655
|
);
|
|
1656
1656
|
}
|
|
1657
|
-
const q = S(""), p = S(!1), h = S(void 0), { t: g } = Q(), { innerFilter: x } = cs(t),
|
|
1657
|
+
const q = S(""), p = S(!1), h = S(void 0), { t: g } = Q(), { innerFilter: x } = cs(t), y = nt(ba, void 0), w = nt(xa, void 0), Y = () => {
|
|
1658
1658
|
p.value = !1, s("blur", o.value), t.v?.$touch(), c.value(o.value);
|
|
1659
|
-
}, A = C(() => Ke(t.errorMessage) ? [t.errorMessage] : t.v?.$errors?.length ? t.v.$errors.map((te) => te.$message) : []),
|
|
1659
|
+
}, A = C(() => Ke(t.errorMessage) ? [t.errorMessage] : t.v?.$errors?.length ? t.v.$errors.map((te) => te.$message) : []), X = C(() => {
|
|
1660
1660
|
if (Ke(t.label)) return t.label;
|
|
1661
|
-
if (B(
|
|
1661
|
+
if (B(y) || B(w) || B(t.v?.$path)) return "";
|
|
1662
1662
|
const { end: te } = Na(t.v?.$path, ".");
|
|
1663
|
-
return g(
|
|
1663
|
+
return g(y + "." + w + ".model." + te);
|
|
1664
1664
|
}), T = C(() => Ke(t.required) ? t.required : t.v?.required && t.v?.required.$params.type === "required"), E = C(() => Ke(t.disabled) ? t.disabled : !!F.value), N = C(() => t.multiple !== !1), O = pi(t.filterSortBy, t.filterSortDescending), z = S([]), U = S([]), _ = C(() => {
|
|
1665
1665
|
const te = /* @__PURE__ */ new Map();
|
|
1666
1666
|
return U.value.forEach((he) => {
|
|
@@ -1803,7 +1803,7 @@ const om = /* @__PURE__ */ H({
|
|
|
1803
1803
|
e.hideLabel ? P("", !0) : (v(), D("span", {
|
|
1804
1804
|
key: T.value + ""
|
|
1805
1805
|
}, [
|
|
1806
|
-
M(b(
|
|
1806
|
+
M(b(X.value) + " ", 1),
|
|
1807
1807
|
T.value ? (v(), D("span", dm)) : P("", !0)
|
|
1808
1808
|
]))
|
|
1809
1809
|
]),
|
|
@@ -1837,7 +1837,7 @@ const om = /* @__PURE__ */ H({
|
|
|
1837
1837
|
},
|
|
1838
1838
|
emits: ["update:modelValue"],
|
|
1839
1839
|
setup(e, { emit: a }) {
|
|
1840
|
-
const t = e, s = a, { t: o } = Q(), i =
|
|
1840
|
+
const t = e, s = a, { t: o } = Q(), i = nt(ba, void 0), r = nt(xa, void 0), n = C(() => {
|
|
1841
1841
|
if (!B(t.label)) return t.label;
|
|
1842
1842
|
if (B(i) || B(r) || B(t.v?.$path)) return "";
|
|
1843
1843
|
const { end: p } = Na(t.v?.$path, ".");
|
|
@@ -1884,7 +1884,7 @@ const om = /* @__PURE__ */ H({
|
|
|
1884
1884
|
},
|
|
1885
1885
|
emits: ["update:modelValue"],
|
|
1886
1886
|
setup(e, { emit: a }) {
|
|
1887
|
-
const t = e, s = a, { t: o } = Q(), i =
|
|
1887
|
+
const t = e, s = a, { t: o } = Q(), i = nt(ba, void 0), r = nt(xa, void 0), n = C(() => {
|
|
1888
1888
|
if (!B(t.label)) return t.label;
|
|
1889
1889
|
if (B(i) || B(r) || B(t.v?.$path)) return "";
|
|
1890
1890
|
const { end: p } = Na(t.v?.$path, ".");
|
|
@@ -1981,11 +1981,11 @@ const om = /* @__PURE__ */ H({
|
|
|
1981
1981
|
}), l = S(() => {
|
|
1982
1982
|
}), c = S(null);
|
|
1983
1983
|
if (i.value.enabled && Ke(t.collab)) {
|
|
1984
|
-
const { releaseCollabFieldLock: A, changeCollabFieldData:
|
|
1984
|
+
const { releaseCollabFieldLock: A, changeCollabFieldData: X, acquireCollabFieldLock: T, lockedByUser: E } = Ns(
|
|
1985
1985
|
t.collab.room,
|
|
1986
1986
|
t.collab.field
|
|
1987
1987
|
);
|
|
1988
|
-
r.value = A, n.value =
|
|
1988
|
+
r.value = A, n.value = X, l.value = T, Xe(
|
|
1989
1989
|
E,
|
|
1990
1990
|
(N) => {
|
|
1991
1991
|
c.value = N;
|
|
@@ -1993,7 +1993,7 @@ const om = /* @__PURE__ */ H({
|
|
|
1993
1993
|
{ immediate: !0 }
|
|
1994
1994
|
);
|
|
1995
1995
|
}
|
|
1996
|
-
const f =
|
|
1996
|
+
const f = nt(ba, void 0), V = nt(xa, void 0), { t: F } = Q(), q = S(!1), p = () => {
|
|
1997
1997
|
q.value = !1, s("blur", t.modelValue), t.v?.$touch(), r.value(t.modelValue);
|
|
1998
1998
|
}, h = () => {
|
|
1999
1999
|
q.value = !0, s("focus", t.modelValue), l.value();
|
|
@@ -2002,16 +2002,16 @@ const om = /* @__PURE__ */ H({
|
|
|
2002
2002
|
if (B(f) || B(V) || B(t.v?.$path)) return "";
|
|
2003
2003
|
const { end: A } = Na(t.v?.$path, ".");
|
|
2004
2004
|
return F(f + "." + V + ".model." + A);
|
|
2005
|
-
}),
|
|
2005
|
+
}), y = C(() => Ke(t.required) ? t.required : !!(t.v?.required && t.v?.required.$params.type === "required")), w = C(() => Ke(t.disabled) ? t.disabled : !!c.value), Y = C(() => t.multiple !== !1);
|
|
2006
2006
|
return Xe(
|
|
2007
2007
|
o,
|
|
2008
|
-
async (A,
|
|
2009
|
-
A !==
|
|
2008
|
+
async (A, X) => {
|
|
2009
|
+
A !== X && i.value.enabled && q.value && n.value(A);
|
|
2010
2010
|
},
|
|
2011
2011
|
{ immediate: !0 }
|
|
2012
|
-
), (A,
|
|
2012
|
+
), (A, X) => (v(), I(hs, {
|
|
2013
2013
|
modelValue: o.value,
|
|
2014
|
-
"onUpdate:modelValue":
|
|
2014
|
+
"onUpdate:modelValue": X[0] || (X[0] = (T) => o.value = T),
|
|
2015
2015
|
items: e.items,
|
|
2016
2016
|
"item-title": "title",
|
|
2017
2017
|
"item-value": "value",
|
|
@@ -2027,7 +2027,7 @@ const om = /* @__PURE__ */ H({
|
|
|
2027
2027
|
label: m(() => [
|
|
2028
2028
|
e.hideLabel ? P("", !0) : (v(), D("span", Vm, [
|
|
2029
2029
|
M(b(x.value), 1),
|
|
2030
|
-
|
|
2030
|
+
y.value ? (v(), D("span", vm)) : P("", !0)
|
|
2031
2031
|
]))
|
|
2032
2032
|
]),
|
|
2033
2033
|
_: 2
|
|
@@ -2106,25 +2106,25 @@ const om = /* @__PURE__ */ H({
|
|
|
2106
2106
|
}), h.value.forEach(($) => {
|
|
2107
2107
|
k.set($.value, { value: $.value, title: $.title, subtitle: $.subtitle });
|
|
2108
2108
|
}), Array.from(k, ([$, L]) => ({ value: $, title: L.title, subtitle: L.subtitle }));
|
|
2109
|
-
}),
|
|
2110
|
-
|
|
2109
|
+
}), y = S(!1), w = async (k, $) => {
|
|
2110
|
+
y.value = !0;
|
|
2111
2111
|
const L = f.value[t.filterByField];
|
|
2112
2112
|
L.model = k;
|
|
2113
2113
|
const J = await t.fetchItems(p, f.value);
|
|
2114
|
-
$ === l.value && (h.value = J),
|
|
2114
|
+
$ === l.value && (h.value = J), y.value = !1;
|
|
2115
2115
|
}, Y = (k) => {
|
|
2116
2116
|
const $ = x.value.filter((L) => k.includes(L.value));
|
|
2117
2117
|
return [].concat($);
|
|
2118
2118
|
}, A = async (k) => {
|
|
2119
2119
|
let $ = 1, L = [];
|
|
2120
2120
|
return je(k) ? ($ = k.length, L = Y(k)) : L = Y([k]), g.value = L, L.length === $;
|
|
2121
|
-
},
|
|
2121
|
+
}, X = S(!1), T = () => {
|
|
2122
2122
|
clearTimeout(n.value), n.value = void 0;
|
|
2123
2123
|
}, E = async () => {
|
|
2124
|
-
if (T(),
|
|
2125
|
-
|
|
2124
|
+
if (T(), X.value === !0) return;
|
|
2125
|
+
X.value = !0, y.value = !0;
|
|
2126
2126
|
const k = await t.fetchItems(p, f.value);
|
|
2127
|
-
l.value === 0 && (h.value = k),
|
|
2127
|
+
l.value === 0 && (h.value = k), y.value = !1;
|
|
2128
2128
|
}, N = () => {
|
|
2129
2129
|
r.value = !0, T(), E();
|
|
2130
2130
|
}, O = C(() => {
|
|
@@ -2144,7 +2144,7 @@ const om = /* @__PURE__ */ H({
|
|
|
2144
2144
|
async (k, $) => {
|
|
2145
2145
|
if (k === $) return;
|
|
2146
2146
|
if (oe(k) || B(k) || je(k) && k.length === 0) {
|
|
2147
|
-
if (g.value = [], t.disableInitFetch ||
|
|
2147
|
+
if (g.value = [], t.disableInitFetch || X.value === !0) return;
|
|
2148
2148
|
n.value = setTimeout(() => {
|
|
2149
2149
|
E();
|
|
2150
2150
|
}, 3e3);
|
|
@@ -2152,10 +2152,10 @@ const om = /* @__PURE__ */ H({
|
|
|
2152
2152
|
}
|
|
2153
2153
|
if (!await A(k)) {
|
|
2154
2154
|
if (je(k)) {
|
|
2155
|
-
|
|
2155
|
+
y.value = !0, g.value = await t.fetchItemsByIds(k), y.value = !1;
|
|
2156
2156
|
return;
|
|
2157
2157
|
}
|
|
2158
|
-
|
|
2158
|
+
y.value = !0, g.value = await t.fetchItemsByIds([k]), y.value = !1;
|
|
2159
2159
|
}
|
|
2160
2160
|
},
|
|
2161
2161
|
{ immediate: !0 }
|
|
@@ -2175,7 +2175,7 @@ const om = /* @__PURE__ */ H({
|
|
|
2175
2175
|
clearable: !e.modelValue.mandatory,
|
|
2176
2176
|
label: F.value,
|
|
2177
2177
|
chips: e.modelValue.multiple,
|
|
2178
|
-
loading:
|
|
2178
|
+
loading: y.value,
|
|
2179
2179
|
"onUpdate:search": z,
|
|
2180
2180
|
onBlur: V,
|
|
2181
2181
|
onFocus: N,
|
|
@@ -2222,25 +2222,25 @@ const om = /* @__PURE__ */ H({
|
|
|
2222
2222
|
}), h.value.forEach((L) => {
|
|
2223
2223
|
L.raw ? (k.set(L.raw[t.itemValue], L.raw[t.itemTitle]), $.set(L.raw[t.itemValue], ke(L.raw))) : (k.set(L[t.itemValue], L[t.itemTitle]), $.set(L[t.itemValue], ke(L)));
|
|
2224
2224
|
}), Array.from(k, ([L, J]) => ({ value: L, title: J, raw: $.get(L) }));
|
|
2225
|
-
}),
|
|
2226
|
-
|
|
2225
|
+
}), y = S(!1), w = async (k, $) => {
|
|
2226
|
+
y.value = !0;
|
|
2227
2227
|
const L = f.value[t.filterByField];
|
|
2228
2228
|
L.model = k;
|
|
2229
2229
|
const J = await t.fetchItemsMinimal(p, f.value);
|
|
2230
|
-
$ === l.value && (h.value = J),
|
|
2230
|
+
$ === l.value && (h.value = J), y.value = !1;
|
|
2231
2231
|
}, Y = (k) => {
|
|
2232
2232
|
const $ = x.value.filter((L) => k.includes(L.value));
|
|
2233
2233
|
return [].concat($);
|
|
2234
2234
|
}, A = async (k) => {
|
|
2235
2235
|
let $ = 1, L = [];
|
|
2236
2236
|
return je(k) ? ($ = k.length, L = Y(k)) : L = Y([k]), g.value = L, L.length === $;
|
|
2237
|
-
},
|
|
2237
|
+
}, X = S(!1), T = () => {
|
|
2238
2238
|
clearTimeout(n.value), n.value = void 0;
|
|
2239
2239
|
}, E = async () => {
|
|
2240
|
-
if (T(),
|
|
2241
|
-
|
|
2240
|
+
if (T(), X.value === !0) return;
|
|
2241
|
+
X.value = !0, y.value = !0;
|
|
2242
2242
|
const k = await t.fetchItemsMinimal(p, f.value);
|
|
2243
|
-
l.value === 0 && (h.value = k),
|
|
2243
|
+
l.value === 0 && (h.value = k), y.value = !1;
|
|
2244
2244
|
}, N = () => {
|
|
2245
2245
|
r.value = !0, T(), E();
|
|
2246
2246
|
}, O = C(() => {
|
|
@@ -2260,7 +2260,7 @@ const om = /* @__PURE__ */ H({
|
|
|
2260
2260
|
async (k, $) => {
|
|
2261
2261
|
if (k === $) return;
|
|
2262
2262
|
if (oe(k) || B(k) || je(k) && k.length === 0) {
|
|
2263
|
-
if (g.value = [], t.disableInitFetch ||
|
|
2263
|
+
if (g.value = [], t.disableInitFetch || X.value === !0) return;
|
|
2264
2264
|
n.value = setTimeout(() => {
|
|
2265
2265
|
E();
|
|
2266
2266
|
}, 3e3);
|
|
@@ -2268,10 +2268,10 @@ const om = /* @__PURE__ */ H({
|
|
|
2268
2268
|
}
|
|
2269
2269
|
if (!await A(k)) {
|
|
2270
2270
|
if (je(k)) {
|
|
2271
|
-
|
|
2271
|
+
y.value = !0, g.value = await t.fetchItemsMinimalByIds(k), y.value = !1;
|
|
2272
2272
|
return;
|
|
2273
2273
|
}
|
|
2274
|
-
|
|
2274
|
+
y.value = !0, g.value = await t.fetchItemsMinimalByIds([k]), y.value = !1;
|
|
2275
2275
|
}
|
|
2276
2276
|
},
|
|
2277
2277
|
{ immediate: !0 }
|
|
@@ -2291,7 +2291,7 @@ const om = /* @__PURE__ */ H({
|
|
|
2291
2291
|
clearable: !e.modelValue.mandatory,
|
|
2292
2292
|
label: F.value,
|
|
2293
2293
|
chips: e.modelValue.multiple,
|
|
2294
|
-
loading:
|
|
2294
|
+
loading: y.value,
|
|
2295
2295
|
"onUpdate:search": z,
|
|
2296
2296
|
onBlur: V,
|
|
2297
2297
|
onFocus: N,
|
|
@@ -2785,7 +2785,7 @@ const AS = /* @__PURE__ */ H({
|
|
|
2785
2785
|
}
|
|
2786
2786
|
}), Dm = S(/* @__PURE__ */ new Set());
|
|
2787
2787
|
function Tm(e, a = !1, t = void 0, s = void 0, o = !1) {
|
|
2788
|
-
const { collabSocket: i, collabRoomInfoState: r, collabFieldDataBufferState: n, collabFieldLocksState: l } = Sr(), c = Al(), f = S(), V = S(), F = bl(), q = S(), p = S(), h = xl(), g = S(), x = S(),
|
|
2788
|
+
const { collabSocket: i, collabRoomInfoState: r, collabFieldDataBufferState: n, collabFieldLocksState: l } = Sr(), c = Al(), f = S(), V = S(), F = bl(), q = S(), p = S(), h = xl(), g = S(), x = S(), y = Cl(), w = S(), Y = S(), A = Il(), X = S(), T = S(), E = kl(), N = S(), O = S(), z = wl(), U = S(), _ = S(), k = Sl(), $ = S(), L = S(), J = Kl(), K = S(), j = S(), Z = () => {
|
|
2789
2789
|
Ke(V.value) && V.value();
|
|
2790
2790
|
}, G = (ie) => {
|
|
2791
2791
|
ie.room === e && Ke(p.value) && p.value(ie.userId, ie.timestamp);
|
|
@@ -2808,9 +2808,9 @@ function Tm(e, a = !1, t = void 0, s = void 0, o = !1) {
|
|
|
2808
2808
|
}, Ie = (ie) => {
|
|
2809
2809
|
x.value = ie, g.value = h.on(Ve);
|
|
2810
2810
|
}, pe = (ie) => {
|
|
2811
|
-
Y.value = ie, w.value =
|
|
2811
|
+
Y.value = ie, w.value = y.on(le);
|
|
2812
2812
|
}, Ee = (ie) => {
|
|
2813
|
-
T.value = ie,
|
|
2813
|
+
T.value = ie, X.value = A.on(
|
|
2814
2814
|
ne
|
|
2815
2815
|
);
|
|
2816
2816
|
}, De = (ie) => {
|
|
@@ -2829,7 +2829,7 @@ function Tm(e, a = !1, t = void 0, s = void 0, o = !1) {
|
|
|
2829
2829
|
j.value = ie, K.value = J.on(te);
|
|
2830
2830
|
};
|
|
2831
2831
|
jl(() => {
|
|
2832
|
-
o || (Ke(q.value) && q.value(), Ke(g.value) && g.value(), Ke(w.value) && w.value(), Ke(
|
|
2832
|
+
o || (Ke(q.value) && q.value(), Ke(g.value) && g.value(), Ke(w.value) && w.value(), Ke(X.value) && X.value(), Ke(N.value) && N.value(), Ke(U.value) && U.value(), Ke($.value) && $.value(), Ke(K.value) && K.value());
|
|
2833
2833
|
});
|
|
2834
2834
|
const { collabOptions: Ye } = Aa(), Fe = () => {
|
|
2835
2835
|
!Ye.value.enabled || B(i.value) || i.value.emit("subscribeCollabRoomInfo", e, (ie) => {
|
|
@@ -2932,7 +2932,7 @@ function Tm(e, a = !1, t = void 0, s = void 0, o = !1) {
|
|
|
2932
2932
|
unsubscribeJoinRequestListener: q,
|
|
2933
2933
|
unsubscribeApprovedJoinRequestListener: g,
|
|
2934
2934
|
unsubscribeRejectedJoinRequestListener: w,
|
|
2935
|
-
unsubscribeRequestToTakeModerationListener:
|
|
2935
|
+
unsubscribeRequestToTakeModerationListener: X,
|
|
2936
2936
|
unsubscribeApprovedRequestToTakeModerationListener: N,
|
|
2937
2937
|
unsubscribeRejectedRequestToTakeModerationListener: U,
|
|
2938
2938
|
unsubscribeKickedFromRoomListener: $,
|
|
@@ -2967,23 +2967,23 @@ const Mm = { class: "ml-3" }, Em = { class: "ml-1" }, bS = /* @__PURE__ */ H({
|
|
|
2967
2967
|
addApprovedRequestToTakeModerationListener: h,
|
|
2968
2968
|
addRejectedRequestToTakeModerationListener: g,
|
|
2969
2969
|
kickUserFromRoom: x,
|
|
2970
|
-
purgeRoom:
|
|
2970
|
+
purgeRoom: y,
|
|
2971
2971
|
transferModeration: w,
|
|
2972
2972
|
alertedOccupiedRooms: Y
|
|
2973
2973
|
// eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
2974
|
-
} = Tm(t.collabRoom), { t: A } = Q(), { showErrorT:
|
|
2974
|
+
} = Tm(t.collabRoom), { t: A } = Q(), { showErrorT: X, showSuccessT: T } = We(), { currentUserId: E } = Mu(), N = S([]), O = S([]), z = C(() => o.value.users.filter((Fe) => Fe !== E.value)), U = S(!1), _ = S(!1), k = S(null), $ = S(null), L = S(!1);
|
|
2975
2975
|
i(async (Fe, $e) => {
|
|
2976
2976
|
Ke(t.addToCachedUsers) && t.addToCachedUsers(Fe), Ke(t.fetchCachedUsers) && t.fetchCachedUsers(), O.value.includes(Fe) || O.value.push(Fe), N.value.push({ userId: Fe, timestamp: $e });
|
|
2977
2977
|
}), c(() => {
|
|
2978
2978
|
T("common.collab.alert.approvedJoinRequest"), L.value = !1, $.value = !0, Y.value.delete(t.collabRoom);
|
|
2979
2979
|
}), f(() => {
|
|
2980
|
-
|
|
2980
|
+
X("common.collab.alert.rejectedJoinRequest"), L.value = !1, $.value = !1, Y.value.delete(t.collabRoom);
|
|
2981
2981
|
}), p(async (Fe, $e) => {
|
|
2982
2982
|
Ke(t.addToCachedUsers) && t.addToCachedUsers(Fe), Ke(t.fetchCachedUsers) && t.fetchCachedUsers(), k.value = { userId: Fe, timestamp: $e }, _.value = !0;
|
|
2983
2983
|
}), h(() => {
|
|
2984
2984
|
T("common.collab.alert.approvedToTakeModeration"), L.value = !1;
|
|
2985
2985
|
}), g(() => {
|
|
2986
|
-
|
|
2986
|
+
X("common.collab.alert.rejectedToTakeModeration"), L.value = !1;
|
|
2987
2987
|
});
|
|
2988
2988
|
const J = () => {
|
|
2989
2989
|
L.value = !1;
|
|
@@ -2993,7 +2993,7 @@ const Mm = { class: "ml-3" }, Em = { class: "ml-1" }, bS = /* @__PURE__ */ H({
|
|
|
2993
2993
|
try {
|
|
2994
2994
|
await r(), L.value = !0;
|
|
2995
2995
|
} catch (Fe) {
|
|
2996
|
-
return Fe === no.AlreadyRequested ? void
|
|
2996
|
+
return Fe === no.AlreadyRequested ? void X("common.collab.alert.alreadyRequestedToJoin") : void X("common.collab.alert.failedRequestedToJoin");
|
|
2997
2997
|
}
|
|
2998
2998
|
}, Qe = () => {
|
|
2999
2999
|
U.value = !0;
|
|
@@ -3001,7 +3001,7 @@ const Mm = { class: "ml-3" }, Em = { class: "ml-1" }, bS = /* @__PURE__ */ H({
|
|
|
3001
3001
|
try {
|
|
3002
3002
|
await V(), L.value = !0;
|
|
3003
3003
|
} catch (Fe) {
|
|
3004
|
-
return Fe === ro.AlreadyRequested ? void
|
|
3004
|
+
return Fe === ro.AlreadyRequested ? void X("common.collab.alert.alreadyRequestedToTakeModeration") : void X("common.collab.alert.failedRequestToTakeModeration");
|
|
3005
3005
|
}
|
|
3006
3006
|
}, he = () => {
|
|
3007
3007
|
O.value.forEach((Fe) => {
|
|
@@ -3026,7 +3026,7 @@ const Mm = { class: "ml-3" }, Em = { class: "ml-1" }, bS = /* @__PURE__ */ H({
|
|
|
3026
3026
|
}, ue = (Fe) => {
|
|
3027
3027
|
x(Fe), U.value = !1;
|
|
3028
3028
|
}, ce = () => {
|
|
3029
|
-
|
|
3029
|
+
y();
|
|
3030
3030
|
}, we = () => {
|
|
3031
3031
|
x(E.value ?? 0);
|
|
3032
3032
|
}, Ye = (Fe) => Math.ceil((6e4 - ((/* @__PURE__ */ new Date()).getTime() - Fe)) / 1e3);
|
|
@@ -4420,7 +4420,7 @@ const Qm = /* @__PURE__ */ pa(Gm, [["render", Zm]]), ef = { class: "flag" }, Kn
|
|
|
4420
4420
|
},
|
|
4421
4421
|
emits: ["afterChange"],
|
|
4422
4422
|
setup(e, { emit: a }) {
|
|
4423
|
-
const t = e, s = a, o =
|
|
4423
|
+
const t = e, s = a, o = nt(Dl), i = nt(Tl), { setLanguage: r } = zm(o, i), { currentLanguageCode: n } = Lm(), l = (V) => {
|
|
4424
4424
|
r(V) && s("afterChange", V);
|
|
4425
4425
|
}, c = C(() => {
|
|
4426
4426
|
const V = uo.find((F) => F.code === n.value);
|
|
@@ -4902,7 +4902,7 @@ const lf = { class: "text-center w-100 text-caption pb-1" }, _S = /* @__PURE__ *
|
|
|
4902
4902
|
set(z) {
|
|
4903
4903
|
s("update:modelValue", ke(z));
|
|
4904
4904
|
}
|
|
4905
|
-
}), { t: F } = Q(), q =
|
|
4905
|
+
}), { t: F } = Q(), q = nt(ba, void 0), p = nt(xa, void 0), h = S(!1), { innerFilter: g } = cs(t), x = pi(t.filterSortBy), y = () => {
|
|
4906
4906
|
h.value = !0, s("focus", V.value);
|
|
4907
4907
|
}, w = () => {
|
|
4908
4908
|
h.value = !1, t.v?.$touch(), s("blur", V.value);
|
|
@@ -4911,7 +4911,7 @@ const lf = { class: "text-center w-100 text-caption pb-1" }, _S = /* @__PURE__ *
|
|
|
4911
4911
|
if (B(q) || B(p) || B(t.v?.$path)) return "";
|
|
4912
4912
|
const { end: z } = Na(t.v?.$path, ".");
|
|
4913
4913
|
return F(q + "." + p + ".model." + z);
|
|
4914
|
-
}),
|
|
4914
|
+
}), X = C(() => B(t.required) ? t.v?.required && t.v?.required.$params.type === "required" : t.required), T = async (z) => {
|
|
4915
4915
|
if (oe(z) || z.length < t.minSearchChars) {
|
|
4916
4916
|
r.value.clear();
|
|
4917
4917
|
return;
|
|
@@ -4970,15 +4970,15 @@ const lf = { class: "text-center w-100 text-caption pb-1" }, _S = /* @__PURE__ *
|
|
|
4970
4970
|
"no-data-text": f.value,
|
|
4971
4971
|
autocomplete: "off",
|
|
4972
4972
|
onBlur: w,
|
|
4973
|
-
onFocus:
|
|
4973
|
+
onFocus: y,
|
|
4974
4974
|
"onClick:clear": O
|
|
4975
4975
|
}, ya({
|
|
4976
4976
|
label: m(() => [
|
|
4977
4977
|
e.hideLabel ? P("", !0) : (v(), D("span", {
|
|
4978
|
-
key:
|
|
4978
|
+
key: X.value + ""
|
|
4979
4979
|
}, [
|
|
4980
4980
|
M(b(A.value) + " ", 1),
|
|
4981
|
-
|
|
4981
|
+
X.value ? (v(), D("span", cf)) : P("", !0)
|
|
4982
4982
|
]))
|
|
4983
4983
|
]),
|
|
4984
4984
|
"append-item": m(() => [
|
|
@@ -5358,11 +5358,11 @@ const lf = { class: "text-center w-100 text-caption pb-1" }, _S = /* @__PURE__ *
|
|
|
5358
5358
|
});
|
|
5359
5359
|
function gt(e = void 0) {
|
|
5360
5360
|
const a = Ka();
|
|
5361
|
-
function t(
|
|
5362
|
-
console.error(
|
|
5361
|
+
function t(y) {
|
|
5362
|
+
console.error(y);
|
|
5363
5363
|
}
|
|
5364
5364
|
function s() {
|
|
5365
|
-
return new Promise((
|
|
5365
|
+
return new Promise((y, w) => {
|
|
5366
5366
|
if (a.initialized.damPubConfig = !1, B(e)) {
|
|
5367
5367
|
w(!1);
|
|
5368
5368
|
return;
|
|
@@ -5370,21 +5370,21 @@ function gt(e = void 0) {
|
|
|
5370
5370
|
Df(e).then((Y) => {
|
|
5371
5371
|
if (Object.keys(Y).length < 1)
|
|
5372
5372
|
throw new Error("Unable to load pub config. Incorrect response body.");
|
|
5373
|
-
o(Y),
|
|
5373
|
+
o(Y), y(!0);
|
|
5374
5374
|
}).catch((Y) => {
|
|
5375
5375
|
t(Y), w(!1);
|
|
5376
5376
|
});
|
|
5377
5377
|
});
|
|
5378
5378
|
}
|
|
5379
|
-
function o(
|
|
5379
|
+
function o(y) {
|
|
5380
5380
|
try {
|
|
5381
|
-
a.damPubConfig.userAuthType =
|
|
5381
|
+
a.damPubConfig.userAuthType = y.userAuthType, a.initialized.damPubConfig = !0;
|
|
5382
5382
|
} catch {
|
|
5383
5383
|
throw new Error("Unable to load dam pub config. Incorrect fields in json.");
|
|
5384
5384
|
}
|
|
5385
5385
|
}
|
|
5386
5386
|
function i() {
|
|
5387
|
-
return new Promise((
|
|
5387
|
+
return new Promise((y, w) => {
|
|
5388
5388
|
if (a.initialized.damPubConfig = !1, B(e)) {
|
|
5389
5389
|
w(!1);
|
|
5390
5390
|
return;
|
|
@@ -5392,91 +5392,91 @@ function gt(e = void 0) {
|
|
|
5392
5392
|
Tf(e).then((Y) => {
|
|
5393
5393
|
if (Object.keys(Y).length < 1)
|
|
5394
5394
|
throw new Error("Unable to load dam prv config. Incorrect response body.");
|
|
5395
|
-
r(Y),
|
|
5395
|
+
r(Y), y(!0);
|
|
5396
5396
|
}).catch((Y) => {
|
|
5397
5397
|
t(Y), w(!1);
|
|
5398
5398
|
});
|
|
5399
5399
|
});
|
|
5400
5400
|
}
|
|
5401
|
-
function r(
|
|
5401
|
+
function r(y) {
|
|
5402
5402
|
try {
|
|
5403
|
-
a.damPrvConfig.settings =
|
|
5403
|
+
a.damPrvConfig.settings = y.settings, a.damPrvConfig.colorSet = y.colorSet, a.damPrvConfig.assetExternalProviders = y.assetExternalProviders, a.damPrvConfig.distributionServices = y.distributionServices, a.initialized.damPrvConfig = !0;
|
|
5404
5404
|
} catch {
|
|
5405
5405
|
throw new Error("Unable to load dam config. Incorrect fields in json.");
|
|
5406
5406
|
}
|
|
5407
5407
|
}
|
|
5408
|
-
function n(
|
|
5408
|
+
function n(y) {
|
|
5409
5409
|
return new Promise((w, Y) => {
|
|
5410
5410
|
if (B(e)) {
|
|
5411
5411
|
Y(!1);
|
|
5412
5412
|
return;
|
|
5413
5413
|
}
|
|
5414
|
-
Mf(
|
|
5414
|
+
Mf(y, e).then((A) => {
|
|
5415
5415
|
if (Object.keys(A).length < 1)
|
|
5416
5416
|
throw new Error("Unable to load dam ext system config. Incorrect response body.");
|
|
5417
|
-
l(A,
|
|
5417
|
+
l(A, y), w(!0);
|
|
5418
5418
|
}).catch((A) => {
|
|
5419
5419
|
t(A), Y(!1);
|
|
5420
5420
|
});
|
|
5421
5421
|
});
|
|
5422
5422
|
}
|
|
5423
|
-
function l(
|
|
5423
|
+
function l(y, w) {
|
|
5424
5424
|
try {
|
|
5425
5425
|
const Y = {
|
|
5426
|
-
assetExternalProviders:
|
|
5427
|
-
audio:
|
|
5428
|
-
document:
|
|
5429
|
-
image:
|
|
5430
|
-
video:
|
|
5426
|
+
assetExternalProviders: y.assetExternalProviders,
|
|
5427
|
+
audio: y.audio,
|
|
5428
|
+
document: y.document,
|
|
5429
|
+
image: y.image,
|
|
5430
|
+
video: y.video
|
|
5431
5431
|
};
|
|
5432
5432
|
a.damConfigExtSystem.set(w, Y);
|
|
5433
5433
|
} catch {
|
|
5434
5434
|
throw new Error("Unable to load dam ext system config. Incorrect fields in json.");
|
|
5435
5435
|
}
|
|
5436
5436
|
}
|
|
5437
|
-
function c(
|
|
5437
|
+
function c(y, w = [ae.Image, ae.Audio, ae.Video, ae.Document]) {
|
|
5438
5438
|
return new Promise((Y, A) => {
|
|
5439
5439
|
if (B(e)) {
|
|
5440
5440
|
A(!1);
|
|
5441
5441
|
return;
|
|
5442
5442
|
}
|
|
5443
|
-
const
|
|
5444
|
-
Promise.all(
|
|
5443
|
+
const X = w.map((T) => kf(e, y, T));
|
|
5444
|
+
Promise.all(X).then((T) => {
|
|
5445
5445
|
if (T.length !== w.length || T.some((E) => Object.keys(E).length < 1))
|
|
5446
5446
|
throw new Error("Unable to load asset custom form config. Incorrect response body.");
|
|
5447
|
-
f(T,
|
|
5447
|
+
f(T, y, w), Y(!0);
|
|
5448
5448
|
}).catch((T) => {
|
|
5449
5449
|
t(T), A(!1);
|
|
5450
5450
|
});
|
|
5451
5451
|
});
|
|
5452
5452
|
}
|
|
5453
|
-
function f(
|
|
5453
|
+
function f(y, w, Y) {
|
|
5454
5454
|
try {
|
|
5455
|
-
const
|
|
5455
|
+
const X = { ...a.damConfigAssetCustomFormElements.get(w) || {
|
|
5456
5456
|
image: [],
|
|
5457
5457
|
audio: [],
|
|
5458
5458
|
video: [],
|
|
5459
5459
|
document: []
|
|
5460
5460
|
} };
|
|
5461
5461
|
Y.forEach((T, E) => {
|
|
5462
|
-
|
|
5463
|
-
}), a.damConfigAssetCustomFormElements.set(w,
|
|
5462
|
+
X[T] = y[E].data;
|
|
5463
|
+
}), a.damConfigAssetCustomFormElements.set(w, X);
|
|
5464
5464
|
} catch {
|
|
5465
5465
|
throw new Error("Unable to load asset custom form config. Incorrect fields in json.");
|
|
5466
5466
|
}
|
|
5467
5467
|
}
|
|
5468
|
-
function V(
|
|
5468
|
+
function V(y) {
|
|
5469
5469
|
return new Promise((w, Y) => {
|
|
5470
5470
|
if (B(e)) {
|
|
5471
5471
|
Y(!1);
|
|
5472
5472
|
return;
|
|
5473
5473
|
}
|
|
5474
|
-
if (a.damConfigDistributionCustomFormElements.has(
|
|
5474
|
+
if (a.damConfigDistributionCustomFormElements.has(y)) {
|
|
5475
5475
|
w(!0);
|
|
5476
5476
|
return;
|
|
5477
5477
|
}
|
|
5478
|
-
wf(e,
|
|
5479
|
-
a.damConfigDistributionCustomFormElements.set(
|
|
5478
|
+
wf(e, y).then((A) => {
|
|
5479
|
+
a.damConfigDistributionCustomFormElements.set(y, A.data), w(!0);
|
|
5480
5480
|
}).catch((A) => {
|
|
5481
5481
|
Y(A);
|
|
5482
5482
|
});
|
|
@@ -5488,38 +5488,38 @@ function gt(e = void 0) {
|
|
|
5488
5488
|
function q() {
|
|
5489
5489
|
return a.initialized.damPrvConfig;
|
|
5490
5490
|
}
|
|
5491
|
-
function p(
|
|
5492
|
-
return a.damConfigExtSystem.get(
|
|
5491
|
+
function p(y) {
|
|
5492
|
+
return a.damConfigExtSystem.get(y);
|
|
5493
5493
|
}
|
|
5494
|
-
function h(
|
|
5495
|
-
return a.damConfigAssetCustomFormElements.get(
|
|
5494
|
+
function h(y) {
|
|
5495
|
+
return a.damConfigAssetCustomFormElements.get(y);
|
|
5496
5496
|
}
|
|
5497
|
-
async function g(
|
|
5498
|
-
const w =
|
|
5499
|
-
(A) => x(A).catch((
|
|
5500
|
-
console.error(`Error fetching licence ${A}:`,
|
|
5497
|
+
async function g(y) {
|
|
5498
|
+
const w = y.map(
|
|
5499
|
+
(A) => x(A).catch((X) => {
|
|
5500
|
+
console.error(`Error fetching licence ${A}:`, X);
|
|
5501
5501
|
})
|
|
5502
5502
|
);
|
|
5503
5503
|
return (await Promise.allSettled(w)).filter(
|
|
5504
5504
|
(A) => A.status === "fulfilled" && !B(A.value)
|
|
5505
5505
|
).map((A) => A.value);
|
|
5506
5506
|
}
|
|
5507
|
-
async function x(
|
|
5507
|
+
async function x(y) {
|
|
5508
5508
|
if (B(e)) {
|
|
5509
5509
|
console.warn("Client is undefined");
|
|
5510
5510
|
return;
|
|
5511
5511
|
}
|
|
5512
|
-
let w = a.damConfigLicenceExtSystem.get(
|
|
5512
|
+
let w = a.damConfigLicenceExtSystem.get(y);
|
|
5513
5513
|
if (B(w))
|
|
5514
5514
|
try {
|
|
5515
|
-
const A = await Ko(e,
|
|
5515
|
+
const A = await Ko(e, y);
|
|
5516
5516
|
if (oe(A.extSystem)) return;
|
|
5517
5517
|
w = {
|
|
5518
5518
|
extSystem: A.extSystem,
|
|
5519
5519
|
name: A.name
|
|
5520
|
-
}, a.damConfigLicenceExtSystem.set(
|
|
5520
|
+
}, a.damConfigLicenceExtSystem.set(y, w);
|
|
5521
5521
|
} catch (A) {
|
|
5522
|
-
console.error(`Error fetching asset licence for ${
|
|
5522
|
+
console.error(`Error fetching asset licence for ${y}:`, A);
|
|
5523
5523
|
return;
|
|
5524
5524
|
}
|
|
5525
5525
|
let Y = a.damConfigExtSystem.get(w.extSystem);
|
|
@@ -5532,7 +5532,7 @@ function gt(e = void 0) {
|
|
|
5532
5532
|
}
|
|
5533
5533
|
if (!B(Y))
|
|
5534
5534
|
return {
|
|
5535
|
-
licence:
|
|
5535
|
+
licence: y,
|
|
5536
5536
|
extSystem: w.extSystem,
|
|
5537
5537
|
licenceName: w.name,
|
|
5538
5538
|
extSystemConfig: ke(Y)
|
|
@@ -5775,7 +5775,7 @@ const $a = {
|
|
|
5775
5775
|
function x(K) {
|
|
5776
5776
|
c.value = K;
|
|
5777
5777
|
}
|
|
5778
|
-
function
|
|
5778
|
+
function y(K) {
|
|
5779
5779
|
e.value = K.map((j) => ({
|
|
5780
5780
|
asset: j,
|
|
5781
5781
|
selected: !1,
|
|
@@ -5793,7 +5793,7 @@ const $a = {
|
|
|
5793
5793
|
function Y(K) {
|
|
5794
5794
|
if (e.value[K] && !(!n.value && k.value && !e.value[K].selected)) {
|
|
5795
5795
|
if (e.value[K].selected = !e.value[K].selected, n.value && e.value[K].selected) {
|
|
5796
|
-
|
|
5796
|
+
X(K), T(), E(e.value[K]);
|
|
5797
5797
|
return;
|
|
5798
5798
|
}
|
|
5799
5799
|
if (!n.value && e.value[K].selected) {
|
|
@@ -5807,7 +5807,7 @@ const $a = {
|
|
|
5807
5807
|
const j = f.value;
|
|
5808
5808
|
K !== f.value && e.value[K] && (e.value[K].active = !0, f.value = K, !oe(j) && j in e.value && (e.value[j].active = !1));
|
|
5809
5809
|
}
|
|
5810
|
-
function
|
|
5810
|
+
function X(K) {
|
|
5811
5811
|
const j = e.value;
|
|
5812
5812
|
for (let Z = 0; Z < j.length; Z++)
|
|
5813
5813
|
j[Z].selected && Z !== K && (j[Z].selected = !1);
|
|
@@ -5833,7 +5833,7 @@ const $a = {
|
|
|
5833
5833
|
function U() {
|
|
5834
5834
|
const K = [];
|
|
5835
5835
|
for (const j of r.value.values())
|
|
5836
|
-
K.push(
|
|
5836
|
+
K.push(dt(j.asset));
|
|
5837
5837
|
return K;
|
|
5838
5838
|
}
|
|
5839
5839
|
function _(K, j) {
|
|
@@ -5888,7 +5888,7 @@ const $a = {
|
|
|
5888
5888
|
setMaxCount: x,
|
|
5889
5889
|
showLoader: V,
|
|
5890
5890
|
hideLoader: F,
|
|
5891
|
-
setList:
|
|
5891
|
+
setList: y,
|
|
5892
5892
|
appendList: w,
|
|
5893
5893
|
toggleSelectedByIndex: Y,
|
|
5894
5894
|
clearSelected: T,
|
|
@@ -5943,8 +5943,8 @@ const It = {
|
|
|
5943
5943
|
function Ur(e, a, t, s = "id", o = 1e3) {
|
|
5944
5944
|
const i = S(/* @__PURE__ */ new Map()), r = S(/* @__PURE__ */ new Set()), n = (...Y) => {
|
|
5945
5945
|
const A = /* @__PURE__ */ new Set();
|
|
5946
|
-
for (let
|
|
5947
|
-
const T = Y[
|
|
5946
|
+
for (let X = 0; X < Y.length; X++) {
|
|
5947
|
+
const T = Y[X];
|
|
5948
5948
|
if (!(oe(T) || B(T))) {
|
|
5949
5949
|
if (je(T)) {
|
|
5950
5950
|
for (let E = 0; E < T.length; E++) {
|
|
@@ -5956,8 +5956,8 @@ function Ur(e, a, t, s = "id", o = 1e3) {
|
|
|
5956
5956
|
i.value.has(T) || A.add(T);
|
|
5957
5957
|
}
|
|
5958
5958
|
}
|
|
5959
|
-
A.forEach((
|
|
5960
|
-
i.value.set(
|
|
5959
|
+
A.forEach((X) => {
|
|
5960
|
+
i.value.set(X, { ...a(X), _loaded: !1 }), r.value.add(X);
|
|
5961
5961
|
});
|
|
5962
5962
|
}, l = (Y) => {
|
|
5963
5963
|
Y[s] && i.value.set(Y[s], { ...e(Y), _loaded: !0 });
|
|
@@ -6218,12 +6218,12 @@ function Ws(e = "default", a) {
|
|
|
6218
6218
|
} finally {
|
|
6219
6219
|
s.hideLoader();
|
|
6220
6220
|
}
|
|
6221
|
-
}, { addToCachedAuthors: x, fetchCachedAuthors:
|
|
6221
|
+
}, { addToCachedAuthors: x, fetchCachedAuthors: y } = Hs(), { addToCachedKeywords: w, fetchCachedKeywords: Y } = ki(), { addToCachedUsers: A, fetchCachedUsers: X } = xd(), T = async (U, _) => {
|
|
6222
6222
|
const { cachedExtSystemId: k } = da();
|
|
6223
6223
|
c(), s.toggleSelectedByIndex(U.index), s.setActiveByIndex(U.index), Go.value = !0;
|
|
6224
6224
|
try {
|
|
6225
6225
|
const $ = await Qt(t, U.assetId);
|
|
6226
|
-
k.value = _, x($.authors), w($.keywords), A($.modifiedBy, $.createdBy),
|
|
6226
|
+
k.value = _, x($.authors), w($.keywords), A($.modifiedBy, $.createdBy), y(), Y(), X(), B(a) || a($), l.setAsset($);
|
|
6227
6227
|
} catch ($) {
|
|
6228
6228
|
f($);
|
|
6229
6229
|
} finally {
|
|
@@ -6472,22 +6472,22 @@ function HV() {
|
|
|
6472
6472
|
(function(t, s) {
|
|
6473
6473
|
e.exports = s();
|
|
6474
6474
|
})(jV, (function() {
|
|
6475
|
-
var t, s, o = 1e3, i = 6e4, r = 36e5, n = 864e5, l = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, c = 31536e6, f = 2628e6, V = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, F = { years: c, months: f, days: n, hours: r, minutes: i, seconds: o, milliseconds: 1, weeks: 6048e5 }, q = function(
|
|
6476
|
-
return
|
|
6477
|
-
}, p = function(
|
|
6478
|
-
return new Y(
|
|
6479
|
-
}, h = function(
|
|
6480
|
-
return s.p(
|
|
6481
|
-
}, g = function(
|
|
6482
|
-
return
|
|
6483
|
-
}, x = function(
|
|
6484
|
-
return g(
|
|
6485
|
-
},
|
|
6486
|
-
return Math.abs(
|
|
6487
|
-
}, w = function(
|
|
6488
|
-
return
|
|
6475
|
+
var t, s, o = 1e3, i = 6e4, r = 36e5, n = 864e5, l = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, c = 31536e6, f = 2628e6, V = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, F = { years: c, months: f, days: n, hours: r, minutes: i, seconds: o, milliseconds: 1, weeks: 6048e5 }, q = function(X) {
|
|
6476
|
+
return X instanceof Y;
|
|
6477
|
+
}, p = function(X, T, E) {
|
|
6478
|
+
return new Y(X, E, T.$l);
|
|
6479
|
+
}, h = function(X) {
|
|
6480
|
+
return s.p(X) + "s";
|
|
6481
|
+
}, g = function(X) {
|
|
6482
|
+
return X < 0;
|
|
6483
|
+
}, x = function(X) {
|
|
6484
|
+
return g(X) ? Math.ceil(X) : Math.floor(X);
|
|
6485
|
+
}, y = function(X) {
|
|
6486
|
+
return Math.abs(X);
|
|
6487
|
+
}, w = function(X, T) {
|
|
6488
|
+
return X ? g(X) ? { negative: !0, format: "" + y(X) + T } : { negative: !1, format: "" + X + T } : { negative: !1, format: "" };
|
|
6489
6489
|
}, Y = (function() {
|
|
6490
|
-
function
|
|
6490
|
+
function X(E, N, O) {
|
|
6491
6491
|
var z = this;
|
|
6492
6492
|
if (this.$d = {}, this.$l = O, E === void 0 && (this.$ms = 0, this.parseFromMilliseconds()), N) return p(E * F[h(N)], this);
|
|
6493
6493
|
if (typeof E == "number") return this.$ms = E, this.parseFromMilliseconds(), this;
|
|
@@ -6505,7 +6505,7 @@ function HV() {
|
|
|
6505
6505
|
}
|
|
6506
6506
|
return this;
|
|
6507
6507
|
}
|
|
6508
|
-
var T =
|
|
6508
|
+
var T = X.prototype;
|
|
6509
6509
|
return T.calMilliseconds = function() {
|
|
6510
6510
|
var E = this;
|
|
6511
6511
|
this.$ms = Object.keys(this.$d).reduce((function(N, O) {
|
|
@@ -6579,11 +6579,11 @@ function HV() {
|
|
|
6579
6579
|
return this.get("years");
|
|
6580
6580
|
}, T.asYears = function() {
|
|
6581
6581
|
return this.as("years");
|
|
6582
|
-
},
|
|
6583
|
-
})(), A = function(
|
|
6584
|
-
return
|
|
6582
|
+
}, X;
|
|
6583
|
+
})(), A = function(X, T, E) {
|
|
6584
|
+
return X.add(T.years() * E, "y").add(T.months() * E, "M").add(T.days() * E, "d").add(T.hours() * E, "h").add(T.minutes() * E, "m").add(T.seconds() * E, "s").add(T.milliseconds() * E, "ms");
|
|
6585
6585
|
};
|
|
6586
|
-
return function(
|
|
6586
|
+
return function(X, T, E) {
|
|
6587
6587
|
t = E, s = E().$utils(), E.duration = function(z, U) {
|
|
6588
6588
|
var _ = E.locale();
|
|
6589
6589
|
return p(z, { $l: _ }, U);
|
|
@@ -6731,7 +6731,7 @@ const lv = { class: "d-flex flex-column w-100 px-1 align-center" }, dv = { class
|
|
|
6731
6731
|
}),
|
|
6732
6732
|
emits: /* @__PURE__ */ He(["typeChange", "sortByChange"], ["update:sort"]),
|
|
6733
6733
|
setup(e, { emit: a }) {
|
|
6734
|
-
const t = e, s = a, o = Je(e, "sort"), { t: i } = Q(), { setGridView: r } = Eo(), { toggleSidebarLeft: n, sidebarLeft: l, toggleSidebarRight: c, sidebarRight: f } = To(), V = Da(), { filterData: F } = zr(), { assetType: q, inPodcast: p } = ot(V), h = C(() => q.value === ae.Image), g = C(() => q.value === ae.Video), x = C(() => q.value === ae.Audio && p.value === !0),
|
|
6734
|
+
const t = e, s = a, o = Je(e, "sort"), { t: i } = Q(), { setGridView: r } = Eo(), { toggleSidebarLeft: n, sidebarLeft: l, toggleSidebarRight: c, sidebarRight: f } = To(), V = Da(), { filterData: F } = zr(), { assetType: q, inPodcast: p } = ot(V), h = C(() => q.value === ae.Image), g = C(() => q.value === ae.Video), x = C(() => q.value === ae.Audio && p.value === !0), y = () => {
|
|
6735
6735
|
q.value = ae.Image, p.value = null, F.podcastIds = [], s("typeChange", { type: ae.Image, inPodcast: null });
|
|
6736
6736
|
}, w = () => {
|
|
6737
6737
|
q.value = ae.Video, p.value = null, F.podcastIds = [], s("typeChange", { type: ae.Video, inPodcast: null });
|
|
@@ -6760,7 +6760,7 @@ const lv = { class: "d-flex flex-column w-100 px-1 align-center" }, dv = { class
|
|
|
6760
6760
|
return;
|
|
6761
6761
|
}
|
|
6762
6762
|
t.preselectAssetType === ae.Video && w();
|
|
6763
|
-
}), (
|
|
6763
|
+
}), (X, T) => (v(), I(gs, {
|
|
6764
6764
|
density: "compact",
|
|
6765
6765
|
color: "transparent",
|
|
6766
6766
|
height: 46,
|
|
@@ -6768,7 +6768,7 @@ const lv = { class: "d-flex flex-column w-100 px-1 align-center" }, dv = { class
|
|
|
6768
6768
|
class: "system-border-b subject-select__second-bar"
|
|
6769
6769
|
}, {
|
|
6770
6770
|
default: m(() => [
|
|
6771
|
-
de(
|
|
6771
|
+
de(X.$slots, "second-bar", {}, () => [
|
|
6772
6772
|
R("div", lv, [
|
|
6773
6773
|
R("div", dv, [
|
|
6774
6774
|
R("div", uv, [
|
|
@@ -6810,7 +6810,7 @@ const lv = { class: "d-flex flex-column w-100 px-1 align-center" }, dv = { class
|
|
|
6810
6810
|
active: h.value,
|
|
6811
6811
|
color: h.value ? "secondary" : "",
|
|
6812
6812
|
variant: h.value ? "flat" : "text",
|
|
6813
|
-
onClick: W(
|
|
6813
|
+
onClick: W(y, ["stop"])
|
|
6814
6814
|
}, {
|
|
6815
6815
|
default: m(() => [
|
|
6816
6816
|
u(se, {
|
|
@@ -6885,10 +6885,10 @@ const lv = { class: "d-flex flex-column w-100 px-1 align-center" }, dv = { class
|
|
|
6885
6885
|
_: 1
|
|
6886
6886
|
}, 8, ["active", "color", "variant"])
|
|
6887
6887
|
], 64)) : P("", !0),
|
|
6888
|
-
de(
|
|
6888
|
+
de(X.$slots, "second-bar-left")
|
|
6889
6889
|
]),
|
|
6890
6890
|
R("div", cv, [
|
|
6891
|
-
de(
|
|
6891
|
+
de(X.$slots, "second-bar-right"),
|
|
6892
6892
|
e.disableSort ? P("", !0) : (v(), I($c, {
|
|
6893
6893
|
key: 0,
|
|
6894
6894
|
modelValue: o.value,
|
|
@@ -7740,50 +7740,50 @@ const Ov = /* @__PURE__ */ H({
|
|
|
7740
7740
|
},
|
|
7741
7741
|
emits: ["update:modelValue", "blur"],
|
|
7742
7742
|
setup(e, { emit: a }) {
|
|
7743
|
-
const t = e, s = a, o = (
|
|
7744
|
-
s("update:modelValue", { property: t.config.property, value: o(
|
|
7743
|
+
const t = e, s = a, o = (y) => t.config.attributes.type === Yt.Integer ? parseInt(y) : y, i = (y) => {
|
|
7744
|
+
s("update:modelValue", { property: t.config.property, value: o(y) });
|
|
7745
7745
|
}, r = C(() => {
|
|
7746
|
-
const
|
|
7747
|
-
return (t.config.attributes.type === Yt.StringArray || t.config.attributes.type === Yt.StringArrayLegacy) && fo(
|
|
7746
|
+
const y = bu(t.modelValue) ? dt(t.modelValue) : t.modelValue;
|
|
7747
|
+
return (t.config.attributes.type === Yt.StringArray || t.config.attributes.type === Yt.StringArrayLegacy) && fo(y) ? [] : y;
|
|
7748
7748
|
}), { maxLength: n, minLength: l, requiredIf: c, minValue: f, maxValue: V, stringArrayItemLength: F } = ps(), q = C(() => {
|
|
7749
|
-
const
|
|
7749
|
+
const y = {
|
|
7750
7750
|
modelValueComputed: {
|
|
7751
7751
|
required: c(t.config.attributes.required)
|
|
7752
7752
|
}
|
|
7753
7753
|
};
|
|
7754
7754
|
switch (t.config.attributes.type) {
|
|
7755
7755
|
case Yt.String:
|
|
7756
|
-
|
|
7756
|
+
y.modelValueComputed.minLength = l(
|
|
7757
7757
|
t.config.attributes.minValue ? t.config.attributes.minValue : 0
|
|
7758
|
-
),
|
|
7758
|
+
), y.modelValueComputed.maxLength = n(
|
|
7759
7759
|
t.config.attributes.maxValue ? t.config.attributes.maxValue : 256
|
|
7760
7760
|
);
|
|
7761
7761
|
break;
|
|
7762
7762
|
case Yt.Integer:
|
|
7763
|
-
|
|
7763
|
+
y.modelValueComputed.minValue = f(
|
|
7764
7764
|
t.config.attributes.minValue ? t.config.attributes.minValue : 0
|
|
7765
|
-
),
|
|
7765
|
+
), y.modelValueComputed.maxValue = V(
|
|
7766
7766
|
t.config.attributes.maxValue ? t.config.attributes.maxValue : 9999
|
|
7767
7767
|
);
|
|
7768
7768
|
break;
|
|
7769
7769
|
case Yt.StringArray:
|
|
7770
|
-
|
|
7770
|
+
y.modelValueComputed.minLength = l(
|
|
7771
7771
|
t.config.attributes.minCount ? t.config.attributes.minCount : 0
|
|
7772
|
-
),
|
|
7772
|
+
), y.modelValueComputed.maxLength = n(
|
|
7773
7773
|
t.config.attributes.maxCount ? t.config.attributes.maxCount : 32
|
|
7774
|
-
),
|
|
7774
|
+
), y.modelValueComputed.stringArrayItemLength = F(
|
|
7775
7775
|
t.config.attributes.minValue ? t.config.attributes.minValue : 0,
|
|
7776
7776
|
t.config.attributes.maxValue ? t.config.attributes.maxValue : 256
|
|
7777
7777
|
);
|
|
7778
7778
|
break;
|
|
7779
7779
|
}
|
|
7780
|
-
return
|
|
7781
|
-
}), p = hc(q, { modelValueComputed: r }, { $scope: t.validationScope }), h = C(() => p.value.$errors.length ? [p.value.$errors.map((
|
|
7780
|
+
return y;
|
|
7781
|
+
}), p = hc(q, { modelValueComputed: r }, { $scope: t.validationScope }), h = C(() => p.value.$errors.length ? [p.value.$errors.map((y) => y.$message).join(" ")] : []), g = S(void 0);
|
|
7782
7782
|
g.value = t.config.attributes.maxValue ?? void 0;
|
|
7783
7783
|
const x = () => {
|
|
7784
7784
|
s("blur", t.modelValue), p.value.$touch();
|
|
7785
7785
|
};
|
|
7786
|
-
return (
|
|
7786
|
+
return (y, w) => (v(), D(ge, null, [
|
|
7787
7787
|
e.config.attributes.type === d(Yt).String ? (v(), I(Ul, {
|
|
7788
7788
|
key: 0,
|
|
7789
7789
|
"model-value": e.modelValue,
|
|
@@ -7874,8 +7874,8 @@ const Ov = /* @__PURE__ */ H({
|
|
|
7874
7874
|
}), (g, x) => (v(), D(ge, null, [
|
|
7875
7875
|
R("div", Wv, [
|
|
7876
7876
|
de(g.$slots, "before-pinned"),
|
|
7877
|
-
(v(!0), D(ge, null, et(c.value, (
|
|
7878
|
-
key:
|
|
7877
|
+
(v(!0), D(ge, null, et(c.value, (y) => (v(), I(fe, {
|
|
7878
|
+
key: y.id,
|
|
7879
7879
|
dense: "",
|
|
7880
7880
|
class: "mt-1"
|
|
7881
7881
|
}, {
|
|
@@ -7884,16 +7884,16 @@ const Ov = /* @__PURE__ */ H({
|
|
|
7884
7884
|
default: m(() => [
|
|
7885
7885
|
e.readonly ? (v(), I(Pe, {
|
|
7886
7886
|
key: 0,
|
|
7887
|
-
title:
|
|
7887
|
+
title: y.name
|
|
7888
7888
|
}, {
|
|
7889
7889
|
default: m(() => [
|
|
7890
|
-
M(b(e.modelValue[
|
|
7890
|
+
M(b(e.modelValue[y.property]), 1)
|
|
7891
7891
|
]),
|
|
7892
7892
|
_: 2
|
|
7893
7893
|
}, 1032, ["title"])) : (v(), I(pr, {
|
|
7894
7894
|
key: 1,
|
|
7895
|
-
config:
|
|
7896
|
-
"model-value": e.modelValue[
|
|
7895
|
+
config: y,
|
|
7896
|
+
"model-value": e.modelValue[y.property],
|
|
7897
7897
|
"validation-scope": e.validationScope,
|
|
7898
7898
|
"onUpdate:modelValue": l
|
|
7899
7899
|
}, null, 8, ["config", "model-value", "validation-scope"]))
|
|
@@ -7906,8 +7906,8 @@ const Ov = /* @__PURE__ */ H({
|
|
|
7906
7906
|
de(g.$slots, "after-pinned")
|
|
7907
7907
|
]),
|
|
7908
7908
|
ta(R("div", Gv, [
|
|
7909
|
-
(v(!0), D(ge, null, et(f.value, (
|
|
7910
|
-
key:
|
|
7909
|
+
(v(!0), D(ge, null, et(f.value, (y) => (v(), I(fe, {
|
|
7910
|
+
key: y.id,
|
|
7911
7911
|
dense: "",
|
|
7912
7912
|
class: "mt-1"
|
|
7913
7913
|
}, {
|
|
@@ -7916,16 +7916,16 @@ const Ov = /* @__PURE__ */ H({
|
|
|
7916
7916
|
default: m(() => [
|
|
7917
7917
|
e.readonly ? (v(), I(Pe, {
|
|
7918
7918
|
key: 0,
|
|
7919
|
-
title:
|
|
7919
|
+
title: y.name
|
|
7920
7920
|
}, {
|
|
7921
7921
|
default: m(() => [
|
|
7922
|
-
M(b(e.modelValue[
|
|
7922
|
+
M(b(e.modelValue[y.property]), 1)
|
|
7923
7923
|
]),
|
|
7924
7924
|
_: 2
|
|
7925
7925
|
}, 1032, ["title"])) : (v(), I(pr, {
|
|
7926
7926
|
key: 1,
|
|
7927
|
-
config:
|
|
7928
|
-
"model-value": e.modelValue[
|
|
7927
|
+
config: y,
|
|
7928
|
+
"model-value": e.modelValue[y.property],
|
|
7929
7929
|
"onUpdate:modelValue": l
|
|
7930
7930
|
}, null, 8, ["config", "model-value"]))
|
|
7931
7931
|
]),
|
|
@@ -8177,7 +8177,7 @@ const Zr = /* @__PURE__ */ H({
|
|
|
8177
8177
|
}),
|
|
8178
8178
|
emits: /* @__PURE__ */ He(["update:modelValue", "blur", "focus", "searchChange", "searchChangeDebounced"], ["update:search", "update:loadingLocal", "update:fetchedItemsMinimal"]),
|
|
8179
8179
|
setup(e, { emit: a }) {
|
|
8180
|
-
const t = e, s = a, o = Je(e, "search"), i = Je(e, "loadingLocal"), r = Je(e, "fetchedItemsMinimal"), n =
|
|
8180
|
+
const t = e, s = a, o = Je(e, "search"), i = Je(e, "loadingLocal"), r = Je(e, "fetchedItemsMinimal"), n = nt(ha), l = nt(ga), c = xu()?.type.__name;
|
|
8181
8181
|
if (B(n) || B(l))
|
|
8182
8182
|
throw new Error(`[${c}] Incorrect provide/inject config.`);
|
|
8183
8183
|
if (
|
|
@@ -8200,15 +8200,15 @@ const Zr = /* @__PURE__ */ H({
|
|
|
8200
8200
|
set(_) {
|
|
8201
8201
|
s("update:modelValue", ke(_));
|
|
8202
8202
|
}
|
|
8203
|
-
}), { t: h } = Q(), g =
|
|
8203
|
+
}), { t: h } = Q(), g = nt(ba, void 0), x = nt(xa, void 0), y = S(!1), { pagination: w } = Kr(
|
|
8204
8204
|
// eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
8205
8205
|
oe(t.filterSortBy) ? null : t.filterSortBy.key,
|
|
8206
8206
|
t.filterSortBy?.order
|
|
8207
8207
|
), Y = () => {
|
|
8208
|
-
|
|
8208
|
+
y.value = !0, s("focus", p.value);
|
|
8209
8209
|
}, A = () => {
|
|
8210
|
-
|
|
8211
|
-
},
|
|
8210
|
+
y.value = !1, t.v?.$touch(), s("blur", p.value);
|
|
8211
|
+
}, X = C(() => B(t.errorMessage) ? t.v?.$errors?.length ? t.v.$errors.map((_) => _.$message) : [] : [t.errorMessage]), T = C(() => {
|
|
8212
8212
|
if (!B(t.label)) return t.label;
|
|
8213
8213
|
if (B(g) || B(x) || B(t.v?.$path)) return "";
|
|
8214
8214
|
const { end: _ } = Na(t.v?.$path, ".");
|
|
@@ -8265,7 +8265,7 @@ const Zr = /* @__PURE__ */ H({
|
|
|
8265
8265
|
"no-filter": "",
|
|
8266
8266
|
multiple: e.multiple,
|
|
8267
8267
|
clearable: e.clearable,
|
|
8268
|
-
"error-messages":
|
|
8268
|
+
"error-messages": X.value,
|
|
8269
8269
|
loading: i.value,
|
|
8270
8270
|
"no-data-text": q.value,
|
|
8271
8271
|
autocomplete: "off",
|
|
@@ -8871,67 +8871,67 @@ function qF() {
|
|
|
8871
8871
|
;
|
|
8872
8872
|
return g;
|
|
8873
8873
|
}, F = function(g, x) {
|
|
8874
|
-
var
|
|
8874
|
+
var y = new Uint8Array(g.buffer), w = x % 4, Y = x - w;
|
|
8875
8875
|
switch (w) {
|
|
8876
8876
|
case 0:
|
|
8877
|
-
|
|
8877
|
+
y[Y + 3] = 0;
|
|
8878
8878
|
case 1:
|
|
8879
|
-
|
|
8879
|
+
y[Y + 2] = 0;
|
|
8880
8880
|
case 2:
|
|
8881
|
-
|
|
8881
|
+
y[Y + 1] = 0;
|
|
8882
8882
|
case 3:
|
|
8883
|
-
|
|
8883
|
+
y[Y + 0] = 0;
|
|
8884
8884
|
}
|
|
8885
8885
|
for (var A = (x >> 2) + 1; A < g.length; A++)
|
|
8886
8886
|
g[A] = 0;
|
|
8887
|
-
}, q = function(g, x,
|
|
8888
|
-
g[x >> 2] |= 128 << 24 - (x % 4 << 3), g[((x >> 2) + 2 & -16) + 14] =
|
|
8887
|
+
}, q = function(g, x, y) {
|
|
8888
|
+
g[x >> 2] |= 128 << 24 - (x % 4 << 3), g[((x >> 2) + 2 & -16) + 14] = y / (1 << 29) | 0, g[((x >> 2) + 2 & -16) + 15] = y << 3;
|
|
8889
8889
|
}, p = function(g, x) {
|
|
8890
|
-
var
|
|
8891
|
-
return Y.setInt32(0,
|
|
8890
|
+
var y = new Int32Array(g, x + 320, 5), w = new Int32Array(5), Y = new DataView(w.buffer);
|
|
8891
|
+
return Y.setInt32(0, y[0], !1), Y.setInt32(4, y[1], !1), Y.setInt32(8, y[2], !1), Y.setInt32(12, y[3], !1), Y.setInt32(16, y[4], !1), w;
|
|
8892
8892
|
}, h = (function() {
|
|
8893
8893
|
function g(x) {
|
|
8894
8894
|
if (i(this, g), x = x || 64 * 1024, x % 64 > 0)
|
|
8895
8895
|
throw new Error("Chunk size must be a multiple of 128 bit");
|
|
8896
8896
|
this._offset = 0, this._maxChunkLen = x, this._padMaxChunkLen = V(x), this._heap = new ArrayBuffer(c(this._padMaxChunkLen + 320 + 20)), this._h32 = new Int32Array(this._heap), this._h8 = new Int8Array(this._heap), this._core = new r({ Int32Array }, {}, this._heap);
|
|
8897
8897
|
}
|
|
8898
|
-
return g.prototype._initState = function(
|
|
8898
|
+
return g.prototype._initState = function(y, w) {
|
|
8899
8899
|
this._offset = 0;
|
|
8900
|
-
var Y = new Int32Array(
|
|
8900
|
+
var Y = new Int32Array(y, w + 320, 5);
|
|
8901
8901
|
Y[0] = 1732584193, Y[1] = -271733879, Y[2] = -1732584194, Y[3] = 271733878, Y[4] = -1009589776;
|
|
8902
|
-
}, g.prototype._padChunk = function(
|
|
8903
|
-
var Y = V(
|
|
8904
|
-
return F(A,
|
|
8905
|
-
}, g.prototype._write = function(
|
|
8906
|
-
f(
|
|
8907
|
-
}, g.prototype._coreCall = function(
|
|
8902
|
+
}, g.prototype._padChunk = function(y, w) {
|
|
8903
|
+
var Y = V(y), A = new Int32Array(this._heap, 0, Y >> 2);
|
|
8904
|
+
return F(A, y), q(A, y, w), Y;
|
|
8905
|
+
}, g.prototype._write = function(y, w, Y, A) {
|
|
8906
|
+
f(y, this._h8, this._h32, w, Y, A || 0);
|
|
8907
|
+
}, g.prototype._coreCall = function(y, w, Y, A, X) {
|
|
8908
8908
|
var T = Y;
|
|
8909
|
-
this._write(
|
|
8910
|
-
}, g.prototype.rawDigest = function(
|
|
8911
|
-
var w =
|
|
8909
|
+
this._write(y, w, Y), X && (T = this._padChunk(Y, A)), this._core.hash(T, this._padMaxChunkLen);
|
|
8910
|
+
}, g.prototype.rawDigest = function(y) {
|
|
8911
|
+
var w = y.byteLength || y.length || y.size || 0;
|
|
8912
8912
|
this._initState(this._heap, this._padMaxChunkLen);
|
|
8913
8913
|
var Y = 0, A = this._maxChunkLen;
|
|
8914
8914
|
for (Y = 0; w > Y + A; Y += A)
|
|
8915
|
-
this._coreCall(
|
|
8916
|
-
return this._coreCall(
|
|
8917
|
-
}, g.prototype.digest = function(
|
|
8918
|
-
return l(this.rawDigest(
|
|
8919
|
-
}, g.prototype.digestFromString = function(
|
|
8920
|
-
return this.digest(
|
|
8921
|
-
}, g.prototype.digestFromBuffer = function(
|
|
8922
|
-
return this.digest(
|
|
8923
|
-
}, g.prototype.digestFromArrayBuffer = function(
|
|
8924
|
-
return this.digest(
|
|
8915
|
+
this._coreCall(y, Y, A, w, !1);
|
|
8916
|
+
return this._coreCall(y, Y, w - Y, w, !0), p(this._heap, this._padMaxChunkLen);
|
|
8917
|
+
}, g.prototype.digest = function(y) {
|
|
8918
|
+
return l(this.rawDigest(y).buffer);
|
|
8919
|
+
}, g.prototype.digestFromString = function(y) {
|
|
8920
|
+
return this.digest(y);
|
|
8921
|
+
}, g.prototype.digestFromBuffer = function(y) {
|
|
8922
|
+
return this.digest(y);
|
|
8923
|
+
}, g.prototype.digestFromArrayBuffer = function(y) {
|
|
8924
|
+
return this.digest(y);
|
|
8925
8925
|
}, g.prototype.resetState = function() {
|
|
8926
8926
|
return this._initState(this._heap, this._padMaxChunkLen), this;
|
|
8927
|
-
}, g.prototype.append = function(
|
|
8928
|
-
var w = 0, Y =
|
|
8927
|
+
}, g.prototype.append = function(y) {
|
|
8928
|
+
var w = 0, Y = y.byteLength || y.length || y.size || 0, A = this._offset % this._maxChunkLen, X = void 0;
|
|
8929
8929
|
for (this._offset += Y; w < Y; )
|
|
8930
|
-
|
|
8930
|
+
X = Math.min(Y - w, this._maxChunkLen - A), this._write(y, w, X, A), A += X, w += X, A === this._maxChunkLen && (this._core.hash(this._maxChunkLen, this._padMaxChunkLen), A = 0);
|
|
8931
8931
|
return this;
|
|
8932
8932
|
}, g.prototype.getState = function() {
|
|
8933
|
-
var
|
|
8934
|
-
if (
|
|
8933
|
+
var y = this._offset % this._maxChunkLen, w = void 0;
|
|
8934
|
+
if (y)
|
|
8935
8935
|
w = this._heap.slice(0);
|
|
8936
8936
|
else {
|
|
8937
8937
|
var Y = new Int32Array(this._heap, this._padMaxChunkLen + 320, 5);
|
|
@@ -8941,15 +8941,15 @@ function qF() {
|
|
|
8941
8941
|
offset: this._offset,
|
|
8942
8942
|
heap: w
|
|
8943
8943
|
};
|
|
8944
|
-
}, g.prototype.setState = function(
|
|
8945
|
-
if (this._offset =
|
|
8944
|
+
}, g.prototype.setState = function(y) {
|
|
8945
|
+
if (this._offset = y.offset, y.heap.byteLength === 20) {
|
|
8946
8946
|
var w = new Int32Array(this._heap, this._padMaxChunkLen + 320, 5);
|
|
8947
|
-
w.set(new Int32Array(
|
|
8947
|
+
w.set(new Int32Array(y.heap));
|
|
8948
8948
|
} else
|
|
8949
|
-
this._h32.set(new Int32Array(
|
|
8949
|
+
this._h32.set(new Int32Array(y.heap));
|
|
8950
8950
|
return this;
|
|
8951
8951
|
}, g.prototype.rawEnd = function() {
|
|
8952
|
-
var
|
|
8952
|
+
var y = this._offset, w = y % this._maxChunkLen, Y = this._padChunk(w, y);
|
|
8953
8953
|
this._core.hash(Y, this._padMaxChunkLen);
|
|
8954
8954
|
var A = p(this._heap, this._padMaxChunkLen);
|
|
8955
8955
|
return this._initState(this._heap, this._padMaxChunkLen), A;
|
|
@@ -9062,14 +9062,14 @@ function qF() {
|
|
|
9062
9062
|
}
|
|
9063
9063
|
p.m = F, p.c = q, p.i = function(g) {
|
|
9064
9064
|
return g;
|
|
9065
|
-
}, p.d = function(g, x,
|
|
9065
|
+
}, p.d = function(g, x, y) {
|
|
9066
9066
|
p.o(g, x) || Object.defineProperty(g, x, {
|
|
9067
9067
|
/******/
|
|
9068
9068
|
configurable: !1,
|
|
9069
9069
|
/******/
|
|
9070
9070
|
enumerable: !0,
|
|
9071
9071
|
/******/
|
|
9072
|
-
get:
|
|
9072
|
+
get: y
|
|
9073
9073
|
/******/
|
|
9074
9074
|
});
|
|
9075
9075
|
}, p.r = function(g) {
|
|
@@ -9104,9 +9104,9 @@ function qF() {
|
|
|
9104
9104
|
h[p] = [];
|
|
9105
9105
|
var g = q.toString(), x = g.match(/^function\s?\(\w+,\s*\w+,\s*(\w+)\)/);
|
|
9106
9106
|
if (!x) return h;
|
|
9107
|
-
for (var
|
|
9107
|
+
for (var y = x[1], w = new RegExp("(\\\\n|\\W)" + l(y) + n, "g"), Y; Y = w.exec(g); )
|
|
9108
9108
|
Y[3] !== "dll-reference" && h[p].push(Y[3]);
|
|
9109
|
-
for (w = new RegExp("\\(" + l(
|
|
9109
|
+
for (w = new RegExp("\\(" + l(y) + '\\("(dll-reference\\s(' + r + '))"\\)\\)' + n, "g"); Y = w.exec(g); )
|
|
9110
9110
|
F[Y[2]] || (h[p].push(Y[1]), F[Y[2]] = o(Y[1]).m), h[Y[2]] = h[Y[2]] || [], h[Y[2]].push(Y[4]);
|
|
9111
9111
|
return h;
|
|
9112
9112
|
}
|
|
@@ -9124,12 +9124,12 @@ function qF() {
|
|
|
9124
9124
|
}, g = {
|
|
9125
9125
|
main: {}
|
|
9126
9126
|
}; f(p); )
|
|
9127
|
-
for (var x = Object.keys(p),
|
|
9128
|
-
var w = x[
|
|
9127
|
+
for (var x = Object.keys(p), y = 0; y < x.length; y++) {
|
|
9128
|
+
var w = x[y], Y = p[w], A = Y.pop();
|
|
9129
9129
|
if (g[w] = g[w] || {}, !(g[w][A] || !F[w][A])) {
|
|
9130
9130
|
g[w][A] = !0, h[w] = h[w] || [], h[w].push(A);
|
|
9131
|
-
for (var
|
|
9132
|
-
p[T[E]] = p[T[E]] || [], p[T[E]] = p[T[E]].concat(
|
|
9131
|
+
for (var X = c(F, F[w][A], w), T = Object.keys(X), E = 0; E < T.length; E++)
|
|
9132
|
+
p[T[E]] = p[T[E]] || [], p[T[E]] = p[T[E]].concat(X[T[E]]);
|
|
9133
9133
|
}
|
|
9134
9134
|
}
|
|
9135
9135
|
return h;
|
|
@@ -9142,9 +9142,9 @@ function qF() {
|
|
|
9142
9142
|
Object.keys(h).filter(function(A) {
|
|
9143
9143
|
return A !== "main";
|
|
9144
9144
|
}).forEach(function(A) {
|
|
9145
|
-
for (var
|
|
9146
|
-
|
|
9147
|
-
h[A].push(
|
|
9145
|
+
for (var X = 0; h[A][X]; )
|
|
9146
|
+
X++;
|
|
9147
|
+
h[A].push(X), p[A][X] = "(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })", g = g + "var " + A + " = (" + i.toString().replace("ENTRY_MODULE", JSON.stringify(X)) + ")({" + h[A].map(function(T) {
|
|
9148
9148
|
return "" + JSON.stringify(T) + ": " + p[A][T].toString();
|
|
9149
9149
|
}).join(",") + `});
|
|
9150
9150
|
`;
|
|
@@ -9154,7 +9154,7 @@ function qF() {
|
|
|
9154
9154
|
var x = new window.Blob([g], { type: "text/javascript" });
|
|
9155
9155
|
if (q.bare)
|
|
9156
9156
|
return x;
|
|
9157
|
-
var
|
|
9157
|
+
var y = window.URL || window.webkitURL || window.mozURL || window.msURL, w = y.createObjectURL(x), Y = new window.Worker(w);
|
|
9158
9158
|
return Y.objectURL = w, Y;
|
|
9159
9159
|
};
|
|
9160
9160
|
}),
|
|
@@ -9165,21 +9165,21 @@ function qF() {
|
|
|
9165
9165
|
var l = new i.Int32Array(n);
|
|
9166
9166
|
function c(f, V) {
|
|
9167
9167
|
f = f | 0, V = V | 0;
|
|
9168
|
-
var F = 0, q = 0, p = 0, h = 0, g = 0, x = 0,
|
|
9169
|
-
for (p = l[V + 320 >> 2] | 0, g = l[V + 324 >> 2] | 0,
|
|
9170
|
-
for (h = p, x = g, w =
|
|
9171
|
-
N = l[F + q >> 2] | 0, E = ((p << 5 | p >>> 27) + (g &
|
|
9168
|
+
var F = 0, q = 0, p = 0, h = 0, g = 0, x = 0, y = 0, w = 0, Y = 0, A = 0, X = 0, T = 0, E = 0, N = 0;
|
|
9169
|
+
for (p = l[V + 320 >> 2] | 0, g = l[V + 324 >> 2] | 0, y = l[V + 328 >> 2] | 0, Y = l[V + 332 >> 2] | 0, X = l[V + 336 >> 2] | 0, F = 0; (F | 0) < (f | 0); F = F + 64 | 0) {
|
|
9170
|
+
for (h = p, x = g, w = y, A = Y, T = X, q = 0; (q | 0) < 64; q = q + 4 | 0)
|
|
9171
|
+
N = l[F + q >> 2] | 0, E = ((p << 5 | p >>> 27) + (g & y | ~g & Y) | 0) + ((N + X | 0) + 1518500249 | 0) | 0, X = Y, Y = y, y = g << 30 | g >>> 2, g = p, p = E, l[f + q >> 2] = N;
|
|
9172
9172
|
for (q = f + 64 | 0; (q | 0) < (f + 80 | 0); q = q + 4 | 0)
|
|
9173
|
-
N = (l[q - 12 >> 2] ^ l[q - 32 >> 2] ^ l[q - 56 >> 2] ^ l[q - 64 >> 2]) << 1 | (l[q - 12 >> 2] ^ l[q - 32 >> 2] ^ l[q - 56 >> 2] ^ l[q - 64 >> 2]) >>> 31, E = ((p << 5 | p >>> 27) + (g &
|
|
9173
|
+
N = (l[q - 12 >> 2] ^ l[q - 32 >> 2] ^ l[q - 56 >> 2] ^ l[q - 64 >> 2]) << 1 | (l[q - 12 >> 2] ^ l[q - 32 >> 2] ^ l[q - 56 >> 2] ^ l[q - 64 >> 2]) >>> 31, E = ((p << 5 | p >>> 27) + (g & y | ~g & Y) | 0) + ((N + X | 0) + 1518500249 | 0) | 0, X = Y, Y = y, y = g << 30 | g >>> 2, g = p, p = E, l[q >> 2] = N;
|
|
9174
9174
|
for (q = f + 80 | 0; (q | 0) < (f + 160 | 0); q = q + 4 | 0)
|
|
9175
|
-
N = (l[q - 12 >> 2] ^ l[q - 32 >> 2] ^ l[q - 56 >> 2] ^ l[q - 64 >> 2]) << 1 | (l[q - 12 >> 2] ^ l[q - 32 >> 2] ^ l[q - 56 >> 2] ^ l[q - 64 >> 2]) >>> 31, E = ((p << 5 | p >>> 27) + (g ^
|
|
9175
|
+
N = (l[q - 12 >> 2] ^ l[q - 32 >> 2] ^ l[q - 56 >> 2] ^ l[q - 64 >> 2]) << 1 | (l[q - 12 >> 2] ^ l[q - 32 >> 2] ^ l[q - 56 >> 2] ^ l[q - 64 >> 2]) >>> 31, E = ((p << 5 | p >>> 27) + (g ^ y ^ Y) | 0) + ((N + X | 0) + 1859775393 | 0) | 0, X = Y, Y = y, y = g << 30 | g >>> 2, g = p, p = E, l[q >> 2] = N;
|
|
9176
9176
|
for (q = f + 160 | 0; (q | 0) < (f + 240 | 0); q = q + 4 | 0)
|
|
9177
|
-
N = (l[q - 12 >> 2] ^ l[q - 32 >> 2] ^ l[q - 56 >> 2] ^ l[q - 64 >> 2]) << 1 | (l[q - 12 >> 2] ^ l[q - 32 >> 2] ^ l[q - 56 >> 2] ^ l[q - 64 >> 2]) >>> 31, E = ((p << 5 | p >>> 27) + (g &
|
|
9177
|
+
N = (l[q - 12 >> 2] ^ l[q - 32 >> 2] ^ l[q - 56 >> 2] ^ l[q - 64 >> 2]) << 1 | (l[q - 12 >> 2] ^ l[q - 32 >> 2] ^ l[q - 56 >> 2] ^ l[q - 64 >> 2]) >>> 31, E = ((p << 5 | p >>> 27) + (g & y | g & Y | y & Y) | 0) + ((N + X | 0) - 1894007588 | 0) | 0, X = Y, Y = y, y = g << 30 | g >>> 2, g = p, p = E, l[q >> 2] = N;
|
|
9178
9178
|
for (q = f + 240 | 0; (q | 0) < (f + 320 | 0); q = q + 4 | 0)
|
|
9179
|
-
N = (l[q - 12 >> 2] ^ l[q - 32 >> 2] ^ l[q - 56 >> 2] ^ l[q - 64 >> 2]) << 1 | (l[q - 12 >> 2] ^ l[q - 32 >> 2] ^ l[q - 56 >> 2] ^ l[q - 64 >> 2]) >>> 31, E = ((p << 5 | p >>> 27) + (g ^
|
|
9180
|
-
p = p + h | 0, g = g + x | 0,
|
|
9179
|
+
N = (l[q - 12 >> 2] ^ l[q - 32 >> 2] ^ l[q - 56 >> 2] ^ l[q - 64 >> 2]) << 1 | (l[q - 12 >> 2] ^ l[q - 32 >> 2] ^ l[q - 56 >> 2] ^ l[q - 64 >> 2]) >>> 31, E = ((p << 5 | p >>> 27) + (g ^ y ^ Y) | 0) + ((N + X | 0) - 899497514 | 0) | 0, X = Y, Y = y, y = g << 30 | g >>> 2, g = p, p = E, l[q >> 2] = N;
|
|
9180
|
+
p = p + h | 0, g = g + x | 0, y = y + w | 0, Y = Y + A | 0, X = X + T | 0;
|
|
9181
9181
|
}
|
|
9182
|
-
l[V + 320 >> 2] = p, l[V + 324 >> 2] = g, l[V + 328 >> 2] =
|
|
9182
|
+
l[V + 320 >> 2] = p, l[V + 324 >> 2] = g, l[V + 328 >> 2] = y, l[V + 332 >> 2] = Y, l[V + 336 >> 2] = X;
|
|
9183
9183
|
}
|
|
9184
9184
|
return { hash: c };
|
|
9185
9185
|
};
|
|
@@ -9190,7 +9190,7 @@ function qF() {
|
|
|
9190
9190
|
var o = this, i = void 0;
|
|
9191
9191
|
typeof self < "u" && typeof self.FileReaderSync < "u" && (i = new self.FileReaderSync());
|
|
9192
9192
|
var r = function(c, f, V, F, q, p) {
|
|
9193
|
-
var h = void 0, g = p % 4, x = (q + g) % 4,
|
|
9193
|
+
var h = void 0, g = p % 4, x = (q + g) % 4, y = q - x;
|
|
9194
9194
|
switch (g) {
|
|
9195
9195
|
case 0:
|
|
9196
9196
|
f[p] = c.charCodeAt(F + 3);
|
|
@@ -9202,19 +9202,19 @@ function qF() {
|
|
|
9202
9202
|
f[p + 3 - (g << 1) | 0] = c.charCodeAt(F);
|
|
9203
9203
|
}
|
|
9204
9204
|
if (!(q < x + (4 - g))) {
|
|
9205
|
-
for (h = 4 - g; h <
|
|
9205
|
+
for (h = 4 - g; h < y; h = h + 4 | 0)
|
|
9206
9206
|
V[p + h >> 2] = c.charCodeAt(F + h) << 24 | c.charCodeAt(F + h + 1) << 16 | c.charCodeAt(F + h + 2) << 8 | c.charCodeAt(F + h + 3);
|
|
9207
9207
|
switch (x) {
|
|
9208
9208
|
case 3:
|
|
9209
|
-
f[p +
|
|
9209
|
+
f[p + y + 1 | 0] = c.charCodeAt(F + y + 2);
|
|
9210
9210
|
case 2:
|
|
9211
|
-
f[p +
|
|
9211
|
+
f[p + y + 2 | 0] = c.charCodeAt(F + y + 1);
|
|
9212
9212
|
case 1:
|
|
9213
|
-
f[p +
|
|
9213
|
+
f[p + y + 3 | 0] = c.charCodeAt(F + y);
|
|
9214
9214
|
}
|
|
9215
9215
|
}
|
|
9216
9216
|
}, n = function(c, f, V, F, q, p) {
|
|
9217
|
-
var h = void 0, g = p % 4, x = (q + g) % 4,
|
|
9217
|
+
var h = void 0, g = p % 4, x = (q + g) % 4, y = q - x;
|
|
9218
9218
|
switch (g) {
|
|
9219
9219
|
case 0:
|
|
9220
9220
|
f[p] = c[F + 3];
|
|
@@ -9226,19 +9226,19 @@ function qF() {
|
|
|
9226
9226
|
f[p + 3 - (g << 1) | 0] = c[F];
|
|
9227
9227
|
}
|
|
9228
9228
|
if (!(q < x + (4 - g))) {
|
|
9229
|
-
for (h = 4 - g; h <
|
|
9229
|
+
for (h = 4 - g; h < y; h = h + 4 | 0)
|
|
9230
9230
|
V[p + h >> 2 | 0] = c[F + h] << 24 | c[F + h + 1] << 16 | c[F + h + 2] << 8 | c[F + h + 3];
|
|
9231
9231
|
switch (x) {
|
|
9232
9232
|
case 3:
|
|
9233
|
-
f[p +
|
|
9233
|
+
f[p + y + 1 | 0] = c[F + y + 2];
|
|
9234
9234
|
case 2:
|
|
9235
|
-
f[p +
|
|
9235
|
+
f[p + y + 2 | 0] = c[F + y + 1];
|
|
9236
9236
|
case 1:
|
|
9237
|
-
f[p +
|
|
9237
|
+
f[p + y + 3 | 0] = c[F + y];
|
|
9238
9238
|
}
|
|
9239
9239
|
}
|
|
9240
9240
|
}, l = function(c, f, V, F, q, p) {
|
|
9241
|
-
var h = void 0, g = p % 4, x = (q + g) % 4,
|
|
9241
|
+
var h = void 0, g = p % 4, x = (q + g) % 4, y = q - x, w = new Uint8Array(i.readAsArrayBuffer(c.slice(F, F + q)));
|
|
9242
9242
|
switch (g) {
|
|
9243
9243
|
case 0:
|
|
9244
9244
|
f[p] = w[3];
|
|
@@ -9250,15 +9250,15 @@ function qF() {
|
|
|
9250
9250
|
f[p + 3 - (g << 1) | 0] = w[0];
|
|
9251
9251
|
}
|
|
9252
9252
|
if (!(q < x + (4 - g))) {
|
|
9253
|
-
for (h = 4 - g; h <
|
|
9253
|
+
for (h = 4 - g; h < y; h = h + 4 | 0)
|
|
9254
9254
|
V[p + h >> 2 | 0] = w[h] << 24 | w[h + 1] << 16 | w[h + 2] << 8 | w[h + 3];
|
|
9255
9255
|
switch (x) {
|
|
9256
9256
|
case 3:
|
|
9257
|
-
f[p +
|
|
9257
|
+
f[p + y + 1 | 0] = w[y + 2];
|
|
9258
9258
|
case 2:
|
|
9259
|
-
f[p +
|
|
9259
|
+
f[p + y + 2 | 0] = w[y + 1];
|
|
9260
9260
|
case 1:
|
|
9261
|
-
f[p +
|
|
9261
|
+
f[p + y + 3 | 0] = w[y];
|
|
9262
9262
|
}
|
|
9263
9263
|
}
|
|
9264
9264
|
};
|
|
@@ -9369,31 +9369,31 @@ function wF(e, a = void 0) {
|
|
|
9369
9369
|
let i = [], r = 0, n = 0, l = 0, c = null;
|
|
9370
9370
|
const f = XF.createHash(), { updateChunkSize: V, lastChunkSize: F } = rF(), q = () => Date.now() / 1e3;
|
|
9371
9371
|
function p(A) {
|
|
9372
|
-
const
|
|
9372
|
+
const X = q();
|
|
9373
9373
|
if (r === 0) {
|
|
9374
|
-
r =
|
|
9374
|
+
r = X;
|
|
9375
9375
|
return;
|
|
9376
9376
|
}
|
|
9377
9377
|
const T = l > 0 ? A.loaded - l : A.loaded;
|
|
9378
|
-
l = A.total === A.loaded ? 0 : A.loaded, i.push(T / (
|
|
9378
|
+
l = A.total === A.loaded ? 0 : A.loaded, i.push(T / (X - r)), r = X;
|
|
9379
9379
|
}
|
|
9380
|
-
const h = async (A,
|
|
9380
|
+
const h = async (A, X) => new Promise((T, E) => {
|
|
9381
9381
|
if (!e.fileId) {
|
|
9382
9382
|
E();
|
|
9383
9383
|
return;
|
|
9384
9384
|
}
|
|
9385
|
-
pF(t, e, e.fileId, A, A.size,
|
|
9385
|
+
pF(t, e, e.fileId, A, A.size, X, p).then((N) => {
|
|
9386
9386
|
T(N);
|
|
9387
9387
|
}).catch((N) => {
|
|
9388
9388
|
E(N);
|
|
9389
9389
|
});
|
|
9390
9390
|
}), g = async (A) => {
|
|
9391
9391
|
V(e.progress.speed);
|
|
9392
|
-
let
|
|
9392
|
+
let X = await Nn(
|
|
9393
9393
|
A,
|
|
9394
9394
|
F.value,
|
|
9395
9395
|
e.file
|
|
9396
|
-
), T = new File([
|
|
9396
|
+
), T = new File([X.data], e.file.name, { type: e.file.type });
|
|
9397
9397
|
e.currentChunkIndex = A;
|
|
9398
9398
|
const E = vr.CancelToken;
|
|
9399
9399
|
e.latestChunkCancelToken = E.source();
|
|
@@ -9401,13 +9401,13 @@ function wF(e, a = void 0) {
|
|
|
9401
9401
|
do {
|
|
9402
9402
|
O++;
|
|
9403
9403
|
try {
|
|
9404
|
-
return await h(T, A), f.update(
|
|
9404
|
+
return await h(T, A), f.update(X.data), T;
|
|
9405
9405
|
} catch (z) {
|
|
9406
9406
|
if (vr.isAxiosError(z) && z.response?.status === 400 && O >= Wi)
|
|
9407
9407
|
return e.error.message = "Upload chunk validation failed. Please contact administrator.", Promise.reject(z);
|
|
9408
9408
|
if (ja(z))
|
|
9409
9409
|
return O = Wi, e.error.message = IF(z), Promise.reject(z);
|
|
9410
|
-
V(e.progress.speed) && (
|
|
9410
|
+
V(e.progress.speed) && (X = await Nn(A, F.value, e.file), T = new File([X.data], e.file.name, { type: e.file.type })), await kF(N), O === Wi - 1 ? N = 1 : N *= bF;
|
|
9411
9411
|
}
|
|
9412
9412
|
} while (O < Wi);
|
|
9413
9413
|
return Promise.reject("Unable to upload chunk, max tries exceeded");
|
|
@@ -9415,8 +9415,8 @@ function wF(e, a = void 0) {
|
|
|
9415
9415
|
function x() {
|
|
9416
9416
|
function A() {
|
|
9417
9417
|
if (i = i.slice(-15), i.length > 0) {
|
|
9418
|
-
const
|
|
9419
|
-
a(o.value,
|
|
9418
|
+
const X = Math.ceil(i.reduce((E, N) => E + N) / i.length), T = Math.ceil(s.value * ((100 - o.value) / 100));
|
|
9419
|
+
a(o.value, X, Math.ceil(T / X));
|
|
9420
9420
|
}
|
|
9421
9421
|
n === 0 && (c = setTimeout(function() {
|
|
9422
9422
|
A();
|
|
@@ -9425,7 +9425,7 @@ function wF(e, a = void 0) {
|
|
|
9425
9425
|
A();
|
|
9426
9426
|
}
|
|
9427
9427
|
return {
|
|
9428
|
-
uploadInit: async () => new Promise((A,
|
|
9428
|
+
uploadInit: async () => new Promise((A, X) => {
|
|
9429
9429
|
if (!e.file || e.file.size < 1) {
|
|
9430
9430
|
xF();
|
|
9431
9431
|
return;
|
|
@@ -9433,17 +9433,17 @@ function wF(e, a = void 0) {
|
|
|
9433
9433
|
s.value = e.file.size, e.status = Le.Uploading, FF(t, e).then((T) => {
|
|
9434
9434
|
e.assetId = T.asset, e.fileId = T.id, A(e);
|
|
9435
9435
|
}).catch((T) => {
|
|
9436
|
-
|
|
9436
|
+
X(T);
|
|
9437
9437
|
});
|
|
9438
9438
|
}),
|
|
9439
9439
|
upload: async () => {
|
|
9440
9440
|
a && x();
|
|
9441
9441
|
const A = e.file?.size;
|
|
9442
9442
|
if (B(A)) return Promise.reject();
|
|
9443
|
-
let
|
|
9444
|
-
for (;
|
|
9445
|
-
const T = await g(
|
|
9446
|
-
|
|
9443
|
+
let X = 0;
|
|
9444
|
+
for (; X < A; ) {
|
|
9445
|
+
const T = await g(X);
|
|
9446
|
+
X += T.size, o.value = X / A * 100;
|
|
9447
9447
|
}
|
|
9448
9448
|
return n = Date.now() / 1e3, await CF(e, f.digest("hex"));
|
|
9449
9449
|
},
|
|
@@ -9468,7 +9468,7 @@ const jn = (e) => {
|
|
|
9468
9468
|
Y(K.data.asset, K.data.originAssetFile, K.data.assetType);
|
|
9469
9469
|
break;
|
|
9470
9470
|
case ei.AssetMetadataProcessed:
|
|
9471
|
-
|
|
9471
|
+
X(K.data.asset);
|
|
9472
9472
|
break;
|
|
9473
9473
|
case ei.AssetFileCopied:
|
|
9474
9474
|
T(K.data.asset);
|
|
@@ -9547,7 +9547,7 @@ const jn = (e) => {
|
|
|
9547
9547
|
const { upload: Z, uploadInit: G, stopSpeedCheck: Ve } = wF(
|
|
9548
9548
|
K,
|
|
9549
9549
|
(le, ne, Te) => {
|
|
9550
|
-
|
|
9550
|
+
y(K, le, ne, Te);
|
|
9551
9551
|
}
|
|
9552
9552
|
);
|
|
9553
9553
|
try {
|
|
@@ -9556,7 +9556,7 @@ const jn = (e) => {
|
|
|
9556
9556
|
Ve(), K.error.hasError = !0, K.status = Le.Failed, p(j), g(j);
|
|
9557
9557
|
}
|
|
9558
9558
|
}
|
|
9559
|
-
function
|
|
9559
|
+
function y(K, j, Z, G) {
|
|
9560
9560
|
K.progress.progressPercent = j, K.progress.remainingTime = G, K.progress.speed = Z;
|
|
9561
9561
|
}
|
|
9562
9562
|
async function w(K) {
|
|
@@ -9597,7 +9597,7 @@ const jn = (e) => {
|
|
|
9597
9597
|
} catch {
|
|
9598
9598
|
}
|
|
9599
9599
|
}
|
|
9600
|
-
async function
|
|
9600
|
+
async function X(K) {
|
|
9601
9601
|
const { updateNewNames: j, getAuthorConflicts: Z } = ji();
|
|
9602
9602
|
try {
|
|
9603
9603
|
const G = await Qt(r, K);
|
|
@@ -9908,7 +9908,7 @@ const $F = /* @__PURE__ */ H({
|
|
|
9908
9908
|
c.value = l(s.extSystem, !0), A ? c.value.name = A : c.value.name = s.initialValue, f.value = !0;
|
|
9909
9909
|
}, q = () => {
|
|
9910
9910
|
f.value = !1;
|
|
9911
|
-
}, { v$: p } = EF(c, s.validationScope), { t: h } = Q(), { showValidationError: g, showRecordWas: x, showErrorsDefault:
|
|
9911
|
+
}, { v$: p } = EF(c, s.validationScope), { t: h } = Q(), { showValidationError: g, showRecordWas: x, showErrorsDefault: y } = We(), w = async () => {
|
|
9912
9912
|
if (!V.value)
|
|
9913
9913
|
try {
|
|
9914
9914
|
if (V.value = !0, p.value.$touch(), p.value.$invalid) {
|
|
@@ -9918,14 +9918,14 @@ const $F = /* @__PURE__ */ H({
|
|
|
9918
9918
|
const A = await Qf(i, c.value);
|
|
9919
9919
|
o("onSuccess", A), x("created"), f.value = !1, !B(A.id) && s.disableRedirect;
|
|
9920
9920
|
} catch (A) {
|
|
9921
|
-
|
|
9921
|
+
y(A);
|
|
9922
9922
|
} finally {
|
|
9923
9923
|
V.value = !1;
|
|
9924
9924
|
}
|
|
9925
9925
|
}, { authorTypeOptions: Y } = TF();
|
|
9926
9926
|
return a({
|
|
9927
9927
|
open: F
|
|
9928
|
-
}), (A,
|
|
9928
|
+
}), (A, X) => {
|
|
9929
9929
|
const T = _e("ABtnSecondary"), E = _e("ABtnPrimary"), N = _e("ABtnTertiary");
|
|
9930
9930
|
return v(), D(ge, null, [
|
|
9931
9931
|
e.variant === "listItem" ? (v(), I(Re, { key: 0 }, {
|
|
@@ -9944,7 +9944,7 @@ const $F = /* @__PURE__ */ H({
|
|
|
9944
9944
|
"data-cy": e.dataCy,
|
|
9945
9945
|
disabled: e.disabled,
|
|
9946
9946
|
rounded: "pill",
|
|
9947
|
-
onClick:
|
|
9947
|
+
onClick: X[0] || (X[0] = W((O) => F(void 0), ["stop"]))
|
|
9948
9948
|
}, {
|
|
9949
9949
|
default: m(() => [
|
|
9950
9950
|
M(b(d(h)(e.buttonT)), 1)
|
|
@@ -9958,7 +9958,7 @@ const $F = /* @__PURE__ */ H({
|
|
|
9958
9958
|
disabled: e.disabled,
|
|
9959
9959
|
variant: "text",
|
|
9960
9960
|
size: "small",
|
|
9961
|
-
onClick:
|
|
9961
|
+
onClick: X[1] || (X[1] = W((O) => F(void 0), ["stop"]))
|
|
9962
9962
|
}, {
|
|
9963
9963
|
default: m(() => [
|
|
9964
9964
|
u(se, { icon: "mdi-plus" }),
|
|
@@ -9976,7 +9976,7 @@ const $F = /* @__PURE__ */ H({
|
|
|
9976
9976
|
}, 8, ["class", "data-cy", "disabled"])),
|
|
9977
9977
|
u(ht, {
|
|
9978
9978
|
modelValue: f.value,
|
|
9979
|
-
"onUpdate:modelValue":
|
|
9979
|
+
"onUpdate:modelValue": X[5] || (X[5] = (O) => f.value = O)
|
|
9980
9980
|
}, {
|
|
9981
9981
|
default: m(() => [
|
|
9982
9982
|
f.value ? (v(), I(Ge, {
|
|
@@ -10003,7 +10003,7 @@ const $F = /* @__PURE__ */ H({
|
|
|
10003
10003
|
default: m(() => [
|
|
10004
10004
|
u(mr, {
|
|
10005
10005
|
modelValue: c.value.name,
|
|
10006
|
-
"onUpdate:modelValue":
|
|
10006
|
+
"onUpdate:modelValue": X[2] || (X[2] = (O) => c.value.name = O),
|
|
10007
10007
|
label: d(h)("common.damImage.author.model.name"),
|
|
10008
10008
|
v: d(p).author.name,
|
|
10009
10009
|
required: "",
|
|
@@ -10017,7 +10017,7 @@ const $F = /* @__PURE__ */ H({
|
|
|
10017
10017
|
default: m(() => [
|
|
10018
10018
|
u(mr, {
|
|
10019
10019
|
modelValue: c.value.identifier,
|
|
10020
|
-
"onUpdate:modelValue":
|
|
10020
|
+
"onUpdate:modelValue": X[3] || (X[3] = (O) => c.value.identifier = O),
|
|
10021
10021
|
label: d(h)("common.damImage.author.model.identifier"),
|
|
10022
10022
|
v: d(p).author.identifier,
|
|
10023
10023
|
"data-cy": "author-identifier",
|
|
@@ -10030,7 +10030,7 @@ const $F = /* @__PURE__ */ H({
|
|
|
10030
10030
|
default: m(() => [
|
|
10031
10031
|
u(Fm, {
|
|
10032
10032
|
modelValue: c.value.type,
|
|
10033
|
-
"onUpdate:modelValue":
|
|
10033
|
+
"onUpdate:modelValue": X[4] || (X[4] = (O) => c.value.type = O),
|
|
10034
10034
|
label: d(h)("common.damImage.author.model.type"),
|
|
10035
10035
|
items: d(Y),
|
|
10036
10036
|
"data-cy": "author-type",
|
|
@@ -10115,7 +10115,7 @@ const $F = /* @__PURE__ */ H({
|
|
|
10115
10115
|
it(ha, h), it(ga, p);
|
|
10116
10116
|
const g = async (z) => {
|
|
10117
10117
|
z && (o.value.includes(z) || (o.value = [...o.value, z]));
|
|
10118
|
-
}, x = S(""),
|
|
10118
|
+
}, x = S(""), y = (z) => {
|
|
10119
10119
|
z.length > 0 && (x.value = T(z));
|
|
10120
10120
|
}, { addManualToCachedAuthors: w } = Hs(), Y = (z) => {
|
|
10121
10121
|
if (w(z), je(o.value)) {
|
|
@@ -10123,12 +10123,12 @@ const $F = /* @__PURE__ */ H({
|
|
|
10123
10123
|
return;
|
|
10124
10124
|
}
|
|
10125
10125
|
o.value = z.id, i.value = "";
|
|
10126
|
-
}, A = (z) => je(o.value) ? o.value.includes(z) : o.value ? o.value === z : !1,
|
|
10126
|
+
}, A = (z) => je(o.value) ? o.value.includes(z) : o.value ? o.value === z : !1, X = S(null), T = (z) => z.endsWith(",") ? z.slice(0, -1) : z, E = () => {
|
|
10127
10127
|
const z = T(i.value);
|
|
10128
|
-
|
|
10128
|
+
X.value?.open(z);
|
|
10129
10129
|
}, N = () => {
|
|
10130
10130
|
const z = T(i.value);
|
|
10131
|
-
|
|
10131
|
+
X.value?.open(z);
|
|
10132
10132
|
}, O = C(() => r.value || i.value.length < 2 || i.value.length > 255 ? !1 : n.value.size === 0 ? !0 : ![...n.value.values()].some(
|
|
10133
10133
|
(z) => z.name?.toLowerCase() === i.value.toLowerCase()
|
|
10134
10134
|
));
|
|
@@ -10187,7 +10187,7 @@ const $F = /* @__PURE__ */ H({
|
|
|
10187
10187
|
"item-value": "id",
|
|
10188
10188
|
"min-search-chars": 2,
|
|
10189
10189
|
"min-search-text": "common.damImage.author.filterMinChars",
|
|
10190
|
-
onSearchChange:
|
|
10190
|
+
onSearchChange: y,
|
|
10191
10191
|
onKeyup: [
|
|
10192
10192
|
La(E, ["enter"]),
|
|
10193
10193
|
La(N, [","])
|
|
@@ -10252,7 +10252,7 @@ const $F = /* @__PURE__ */ H({
|
|
|
10252
10252
|
ta(R("div", null, [
|
|
10253
10253
|
u($F, {
|
|
10254
10254
|
ref_key: "authorCreateButton",
|
|
10255
|
-
ref:
|
|
10255
|
+
ref: X,
|
|
10256
10256
|
variant: "icon",
|
|
10257
10257
|
"ext-system": e.extSystem,
|
|
10258
10258
|
"data-cy": "add-author",
|
|
@@ -10390,15 +10390,15 @@ const OF = { class: "d-flex" }, NF = /* @__PURE__ */ H({
|
|
|
10390
10390
|
throw new Error("KeywordRemoteAutocompleteWithCached: Ext system must be initialised.");
|
|
10391
10391
|
const { fetchItemsMinimal: h } = Hr(t.extSystem), { filterData: g, filterConfig: x } = Kd();
|
|
10392
10392
|
it(ha, x), it(ga, g);
|
|
10393
|
-
const
|
|
10394
|
-
k.length > 0 && (
|
|
10393
|
+
const y = S(""), w = (k) => {
|
|
10394
|
+
k.length > 0 && (y.value = O(k));
|
|
10395
10395
|
}, { addManualToCachedKeywords: Y } = ki(), A = (k) => {
|
|
10396
10396
|
if (Y(k), je(o.value)) {
|
|
10397
10397
|
o.value = [...o.value, k.id], i.value = "";
|
|
10398
10398
|
return;
|
|
10399
10399
|
}
|
|
10400
10400
|
o.value = k.id, i.value = "";
|
|
10401
|
-
},
|
|
10401
|
+
}, X = (k) => je(o.value) ? o.value.includes(k) : o.value ? o.value === k : !1, { showErrorsDefault: T } = We(), { createDefault: E } = UF(), N = async (k) => {
|
|
10402
10402
|
const $ = E(t.extSystem, !0);
|
|
10403
10403
|
if ($.name = O(k), !($.name.length < 2))
|
|
10404
10404
|
try {
|
|
@@ -10496,7 +10496,7 @@ const OF = { class: "d-flex" }, NF = /* @__PURE__ */ H({
|
|
|
10496
10496
|
name: "prepend",
|
|
10497
10497
|
fn: m(() => [
|
|
10498
10498
|
u(Ai, {
|
|
10499
|
-
"model-value":
|
|
10499
|
+
"model-value": X(K.value),
|
|
10500
10500
|
ripple: !1
|
|
10501
10501
|
}, null, 8, ["model-value"])
|
|
10502
10502
|
]),
|
|
@@ -10521,7 +10521,7 @@ const OF = { class: "d-flex" }, NF = /* @__PURE__ */ H({
|
|
|
10521
10521
|
default: m(() => [
|
|
10522
10522
|
u(L, {
|
|
10523
10523
|
size: "small",
|
|
10524
|
-
text:
|
|
10524
|
+
text: y.value,
|
|
10525
10525
|
"prepend-icon": "mdi-plus-circle",
|
|
10526
10526
|
onClick: W(U, ["stop"])
|
|
10527
10527
|
}, null, 8, ["text"])
|
|
@@ -10627,7 +10627,7 @@ const OF = { class: "d-flex" }, NF = /* @__PURE__ */ H({
|
|
|
10627
10627
|
const a = e, { t } = Q(), s = S(["metadata", "file"]), o = wt(), { asset: i, authorConflicts: r, metadataAreTouched: n, mainFileSingleUse: l } = ot(o), c = C(() => i.value?.attributes.assetType || mi), f = C(() => c.value === ae.Image), V = C(() => i.value && i.value.mainFile ? i.value.mainFile : null), F = () => {
|
|
10628
10628
|
n.value = !0;
|
|
10629
10629
|
}, { keywordRequired: q, keywordEnabled: p } = en(c.value, a.extSystem), { authorRequired: h, authorEnabled: g } = tn(c.value, a.extSystem), { cachedUsers: x } = xd();
|
|
10630
|
-
return (
|
|
10630
|
+
return (y, w) => d(i) ? (v(), I(Br, {
|
|
10631
10631
|
key: 0,
|
|
10632
10632
|
modelValue: s.value,
|
|
10633
10633
|
"onUpdate:modelValue": w[4] || (w[4] = (Y) => s.value = Y),
|
|
@@ -10964,11 +10964,11 @@ const OF = { class: "d-flex" }, NF = /* @__PURE__ */ H({
|
|
|
10964
10964
|
fetchNextPage: h,
|
|
10965
10965
|
getSelectedData: g,
|
|
10966
10966
|
initStoreContext: x,
|
|
10967
|
-
detailLoading:
|
|
10967
|
+
detailLoading: y,
|
|
10968
10968
|
fetchAssetListDebounced: w,
|
|
10969
10969
|
reset: Y
|
|
10970
10970
|
// eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
10971
|
-
} = Ws("default", s.onDetailLoadedCallback), { loadDamConfigAssetCustomFormElements: A, getDamConfigAssetCustomFormElements:
|
|
10971
|
+
} = Ws("default", s.onDetailLoadedCallback), { loadDamConfigAssetCustomFormElements: A, getDamConfigAssetCustomFormElements: X } = gt(V), { getOrLoadDamConfigExtSystemByLicences: T } = gt(V), E = wt(), { asset: N } = ot(E), O = Da(), { selectedLicenceId: z } = ot(O), U = vt([]), { openSidebarLeft: _, sidebarLeft: k, sidebarRight: $ } = To(), { showErrorT: L } = We(), J = () => {
|
|
10972
10972
|
if (!n.value) return;
|
|
10973
10973
|
let pe = ke(U.value);
|
|
10974
10974
|
if (s.skipCurrentUserCheck || (pe = $d(U.value)), pe.length === 0) {
|
|
@@ -11014,7 +11014,7 @@ const OF = { class: "d-flex" }, NF = /* @__PURE__ */ H({
|
|
|
11014
11014
|
const pe = U.value.find((Ee) => Ee.licence === z.value);
|
|
11015
11015
|
if (pe) return pe.extSystem;
|
|
11016
11016
|
}
|
|
11017
|
-
}), Qe = C(() => he.value ||
|
|
11017
|
+
}), Qe = C(() => he.value || y.value), { showErrorsDefault: te } = We(), he = S(!0), Ie = (pe) => {
|
|
11018
11018
|
p.value.sortBy = null, pe.sortBy && (p.value.sortBy = { key: pe.sortBy.key, order: pe.sortBy.order }), w();
|
|
11019
11019
|
};
|
|
11020
11020
|
return Xe(
|
|
@@ -11022,7 +11022,7 @@ const OF = { class: "d-flex" }, NF = /* @__PURE__ */ H({
|
|
|
11022
11022
|
async (pe) => {
|
|
11023
11023
|
if (B(pe)) return;
|
|
11024
11024
|
he.value = !0;
|
|
11025
|
-
const Ee =
|
|
11025
|
+
const Ee = X(pe);
|
|
11026
11026
|
if (B(Ee))
|
|
11027
11027
|
try {
|
|
11028
11028
|
await A(pe), he.value = !1;
|
|
@@ -11196,10 +11196,10 @@ function fp(e, a, t) {
|
|
|
11196
11196
|
position: U[K].data.position
|
|
11197
11197
|
})), J++;
|
|
11198
11198
|
}
|
|
11199
|
-
},
|
|
11199
|
+
}, y = (z, U, _ = 0) => {
|
|
11200
11200
|
if (z === null) return _;
|
|
11201
11201
|
const k = U.find(($) => $.data.id === z);
|
|
11202
|
-
return k ? (_++,
|
|
11202
|
+
return k ? (_++, y(k.data.parent, U, _)) : _;
|
|
11203
11203
|
}, w = (z, U = 0) => {
|
|
11204
11204
|
let _ = U;
|
|
11205
11205
|
if (z && z.length) {
|
|
@@ -11211,7 +11211,7 @@ function fp(e, a, t) {
|
|
|
11211
11211
|
}
|
|
11212
11212
|
return _;
|
|
11213
11213
|
}, Y = (z, U, _ = 1) => {
|
|
11214
|
-
const k =
|
|
11214
|
+
const k = y(z.data.parent, U), $ = w(z.children, _);
|
|
11215
11215
|
return k + $;
|
|
11216
11216
|
}, A = (z, U, _ = null) => {
|
|
11217
11217
|
for (const k of U) {
|
|
@@ -11407,7 +11407,7 @@ const Vp = ["data-id"], vp = { class: "a-sortable-nested-widget__nested" }, Fp =
|
|
|
11407
11407
|
return;
|
|
11408
11408
|
}
|
|
11409
11409
|
s("onAddChild", ke(t.item));
|
|
11410
|
-
}, l =
|
|
11410
|
+
}, l = nt(Qn, 1);
|
|
11411
11411
|
it(Qn, l + 1);
|
|
11412
11412
|
const c = C(() => t.showAddChildButton && !B(t.item.children) && t.item.children.length === 0 && l < t.maxDepth), { t: f } = Q();
|
|
11413
11413
|
return (V, F) => {
|
|
@@ -11571,7 +11571,7 @@ const Vp = ["data-id"], vp = { class: "a-sortable-nested-widget__nested" }, Fp =
|
|
|
11571
11571
|
}, n = (k) => {
|
|
11572
11572
|
o("onAddChild", k);
|
|
11573
11573
|
}, l = (k) => {
|
|
11574
|
-
w.value = k,
|
|
11574
|
+
w.value = k, y.value = !0;
|
|
11575
11575
|
}, c = (k) => {
|
|
11576
11576
|
o("onEdit", k);
|
|
11577
11577
|
}, f = () => {
|
|
@@ -11624,11 +11624,11 @@ const Vp = ["data-id"], vp = { class: "a-sortable-nested-widget__nested" }, Fp =
|
|
|
11624
11624
|
dragging: h,
|
|
11625
11625
|
widgetEl: g,
|
|
11626
11626
|
randomUuid: x,
|
|
11627
|
-
removeDialog:
|
|
11627
|
+
removeDialog: y,
|
|
11628
11628
|
itemToRemove: w,
|
|
11629
11629
|
forceRerender: Y,
|
|
11630
11630
|
moveArrayElement: A,
|
|
11631
|
-
addAfterId:
|
|
11631
|
+
addAfterId: X,
|
|
11632
11632
|
addChildToId: T,
|
|
11633
11633
|
removeById: E,
|
|
11634
11634
|
updateData: N,
|
|
@@ -11648,7 +11648,7 @@ const Vp = ["data-id"], vp = { class: "a-sortable-nested-widget__nested" }, Fp =
|
|
|
11648
11648
|
}
|
|
11649
11649
|
), a({
|
|
11650
11650
|
refresh: z,
|
|
11651
|
-
addAfterId:
|
|
11651
|
+
addAfterId: X,
|
|
11652
11652
|
addChildToId: T,
|
|
11653
11653
|
removeById: E,
|
|
11654
11654
|
updateData: N
|
|
@@ -11699,15 +11699,15 @@ const Vp = ["data-id"], vp = { class: "a-sortable-nested-widget__nested" }, Fp =
|
|
|
11699
11699
|
_: 1
|
|
11700
11700
|
})) : P("", !0),
|
|
11701
11701
|
u(ht, {
|
|
11702
|
-
modelValue: d(
|
|
11703
|
-
"onUpdate:modelValue": $[2] || ($[2] = (K) => ns(
|
|
11702
|
+
modelValue: d(y),
|
|
11703
|
+
"onUpdate:modelValue": $[2] || ($[2] = (K) => ns(y) ? y.value = K : null),
|
|
11704
11704
|
width: 500
|
|
11705
11705
|
}, {
|
|
11706
11706
|
default: m(() => [
|
|
11707
|
-
d(
|
|
11707
|
+
d(y) ? (v(), I(Ge, { key: 0 }, {
|
|
11708
11708
|
default: m(() => [
|
|
11709
11709
|
u(kt, {
|
|
11710
|
-
onOnCancel: $[0] || ($[0] = (K) =>
|
|
11710
|
+
onOnCancel: $[0] || ($[0] = (K) => y.value = !1)
|
|
11711
11711
|
}, {
|
|
11712
11712
|
default: m(() => [
|
|
11713
11713
|
M(b(d(V)("common.system.modal.confirmDelete")), 1)
|
|
@@ -11718,7 +11718,7 @@ const Vp = ["data-id"], vp = { class: "a-sortable-nested-widget__nested" }, Fp =
|
|
|
11718
11718
|
default: m(() => [
|
|
11719
11719
|
u(mt),
|
|
11720
11720
|
u(L, {
|
|
11721
|
-
onClick: $[1] || ($[1] = W((K) =>
|
|
11721
|
+
onClick: $[1] || ($[1] = W((K) => y.value = !1, ["stop"]))
|
|
11722
11722
|
}, {
|
|
11723
11723
|
default: m(() => [
|
|
11724
11724
|
M(b(d(V)("common.button.cancel")), 1)
|
|
@@ -11768,13 +11768,13 @@ const Vp = ["data-id"], vp = { class: "a-sortable-nested-widget__nested" }, Fp =
|
|
|
11768
11768
|
get() {
|
|
11769
11769
|
return B(s.modelValue) ? i.value : s.modelValue;
|
|
11770
11770
|
},
|
|
11771
|
-
set(
|
|
11772
|
-
i.value =
|
|
11771
|
+
set(X) {
|
|
11772
|
+
i.value = X, o("update:modelValue", X);
|
|
11773
11773
|
}
|
|
11774
11774
|
}), n = C({
|
|
11775
11775
|
get: () => s.pagination,
|
|
11776
|
-
set: (
|
|
11777
|
-
o("update:pagination", { ...
|
|
11776
|
+
set: (X) => {
|
|
11777
|
+
o("update:pagination", { ...dt(X) });
|
|
11778
11778
|
}
|
|
11779
11779
|
}), l = S(!0), c = S(!1), { t: f } = Q(), V = C(() => s.selectedItems.length), F = C(() => V.value < s.minCount || V.value > s.maxCount), q = () => {
|
|
11780
11780
|
o("onOpen"), l.value = !0, r.value = !0;
|
|
@@ -11785,24 +11785,24 @@ const Vp = ["data-id"], vp = { class: "a-sortable-nested-widget__nested" }, Fp =
|
|
|
11785
11785
|
}, g = () => {
|
|
11786
11786
|
o(
|
|
11787
11787
|
"onConfirm",
|
|
11788
|
-
s.selectedItems.map((
|
|
11788
|
+
s.selectedItems.map((X) => dt(X))
|
|
11789
11789
|
), h();
|
|
11790
11790
|
}, x = () => {
|
|
11791
11791
|
o("onFetchNextPage");
|
|
11792
|
-
},
|
|
11792
|
+
}, y = () => {
|
|
11793
11793
|
o("onPageChange");
|
|
11794
|
-
}, w = C(() => Math.ceil(n.value.totalCount / n.value.rowsPerPage)), Y = C(() => !(oe(n.value.hasNextPage) && n.value.page === w.value || n.value.hasNextPage === !1)), A = (
|
|
11795
|
-
|
|
11794
|
+
}, w = C(() => Math.ceil(n.value.totalCount / n.value.rowsPerPage)), Y = C(() => !(oe(n.value.hasNextPage) && n.value.page === w.value || n.value.hasNextPage === !1)), A = (X) => {
|
|
11795
|
+
X && Y.value && !s.loading && x();
|
|
11796
11796
|
};
|
|
11797
11797
|
return a({
|
|
11798
11798
|
open: q
|
|
11799
|
-
}), (
|
|
11799
|
+
}), (X, T) => {
|
|
11800
11800
|
const E = _e("ABtnSecondary"), N = _e("ABtnPrimary");
|
|
11801
11801
|
return v(), D(ge, null, [
|
|
11802
|
-
de(
|
|
11802
|
+
de(X.$slots, "activator", {
|
|
11803
11803
|
props: { onClick: W(() => q(), ["stop"]) }
|
|
11804
11804
|
}),
|
|
11805
|
-
u(ht, Ft(
|
|
11805
|
+
u(ht, Ft(X.$attrs, {
|
|
11806
11806
|
"model-value": r.value,
|
|
11807
11807
|
fullscreen: "",
|
|
11808
11808
|
class: "subject-select",
|
|
@@ -11819,7 +11819,7 @@ const Vp = ["data-id"], vp = { class: "a-sortable-nested-widget__nested" }, Fp =
|
|
|
11819
11819
|
onOnCancel: h
|
|
11820
11820
|
}, {
|
|
11821
11821
|
default: m(() => [
|
|
11822
|
-
de(
|
|
11822
|
+
de(X.$slots, "title", {}, () => [
|
|
11823
11823
|
M(b(d(f)(e.dialogTitleT)), 1)
|
|
11824
11824
|
])
|
|
11825
11825
|
]),
|
|
@@ -11833,7 +11833,7 @@ const Vp = ["data-id"], vp = { class: "a-sortable-nested-widget__nested" }, Fp =
|
|
|
11833
11833
|
class: "system-border-b subject-select__second-bar"
|
|
11834
11834
|
}, {
|
|
11835
11835
|
default: m(() => [
|
|
11836
|
-
de(
|
|
11836
|
+
de(X.$slots, "second-bar", {}, () => [
|
|
11837
11837
|
R("div", Xp, [
|
|
11838
11838
|
R("div", yp, [
|
|
11839
11839
|
R("div", Ap, [
|
|
@@ -11860,10 +11860,10 @@ const Vp = ["data-id"], vp = { class: "a-sortable-nested-widget__nested" }, Fp =
|
|
|
11860
11860
|
]),
|
|
11861
11861
|
_: 1
|
|
11862
11862
|
}),
|
|
11863
|
-
de(
|
|
11863
|
+
de(X.$slots, "second-bar-left")
|
|
11864
11864
|
]),
|
|
11865
11865
|
R("div", bp, [
|
|
11866
|
-
de(
|
|
11866
|
+
de(X.$slots, "second-bar-right")
|
|
11867
11867
|
])
|
|
11868
11868
|
])
|
|
11869
11869
|
])
|
|
@@ -11883,7 +11883,7 @@ const Vp = ["data-id"], vp = { class: "a-sortable-nested-widget__nested" }, Fp =
|
|
|
11883
11883
|
onSubmit: W(e.submitFilter, ["prevent"])
|
|
11884
11884
|
}, {
|
|
11885
11885
|
default: m(() => [
|
|
11886
|
-
de(
|
|
11886
|
+
de(X.$slots, "filter")
|
|
11887
11887
|
]),
|
|
11888
11888
|
_: 3
|
|
11889
11889
|
}, 8, ["onSubmit"])
|
|
@@ -11927,7 +11927,7 @@ const Vp = ["data-id"], vp = { class: "a-sortable-nested-widget__nested" }, Fp =
|
|
|
11927
11927
|
])
|
|
11928
11928
|
]),
|
|
11929
11929
|
R("div", wp, [
|
|
11930
|
-
de(
|
|
11930
|
+
de(X.$slots, "content"),
|
|
11931
11931
|
e.paginationMode === "more" ? (v(), D("div", Sp, [
|
|
11932
11932
|
ta((v(), I(E, {
|
|
11933
11933
|
loading: e.loading,
|
|
@@ -11935,7 +11935,7 @@ const Vp = ["data-id"], vp = { class: "a-sortable-nested-widget__nested" }, Fp =
|
|
|
11935
11935
|
onClick: x
|
|
11936
11936
|
}, {
|
|
11937
11937
|
default: m(() => [
|
|
11938
|
-
de(
|
|
11938
|
+
de(X.$slots, "button-confirm-title", {}, () => [
|
|
11939
11939
|
M(b(d(f)("common.button.loadMore")), 1)
|
|
11940
11940
|
])
|
|
11941
11941
|
]),
|
|
@@ -11953,7 +11953,7 @@ const Vp = ["data-id"], vp = { class: "a-sortable-nested-widget__nested" }, Fp =
|
|
|
11953
11953
|
key: 1,
|
|
11954
11954
|
modelValue: n.value,
|
|
11955
11955
|
"onUpdate:modelValue": T[0] || (T[0] = (O) => n.value = O),
|
|
11956
|
-
onChange:
|
|
11956
|
+
onChange: y
|
|
11957
11957
|
}, null, 8, ["modelValue"]))
|
|
11958
11958
|
])
|
|
11959
11959
|
], 2),
|
|
@@ -11969,7 +11969,7 @@ const Vp = ["data-id"], vp = { class: "a-sortable-nested-widget__nested" }, Fp =
|
|
|
11969
11969
|
onClick: W(g, ["stop"])
|
|
11970
11970
|
}, {
|
|
11971
11971
|
default: m(() => [
|
|
11972
|
-
de(
|
|
11972
|
+
de(X.$slots, "button-confirm-title", {}, () => [
|
|
11973
11973
|
M(b(d(f)("common.button.confirm")), 1)
|
|
11974
11974
|
])
|
|
11975
11975
|
]),
|
|
@@ -12351,7 +12351,7 @@ const zp = {
|
|
|
12351
12351
|
return;
|
|
12352
12352
|
}
|
|
12353
12353
|
o("onConfirm");
|
|
12354
|
-
},
|
|
12354
|
+
}, y = (Y) => {
|
|
12355
12355
|
Y || o("onClose");
|
|
12356
12356
|
}, w = () => {
|
|
12357
12357
|
Ut(n.value) && o("editAsset", n.value.dam.damId);
|
|
@@ -12359,7 +12359,7 @@ const zp = {
|
|
|
12359
12359
|
return a({
|
|
12360
12360
|
confirm: x
|
|
12361
12361
|
}), (Y, A) => {
|
|
12362
|
-
const
|
|
12362
|
+
const X = _e("ABtnPrimary");
|
|
12363
12363
|
return e.expand ? (v(), D("div", Wp, [
|
|
12364
12364
|
e.loading ? (v(), I(fe, { key: 0 }, {
|
|
12365
12365
|
default: m(() => [
|
|
@@ -12476,13 +12476,13 @@ const zp = {
|
|
|
12476
12476
|
"model-value": e.modelValue,
|
|
12477
12477
|
"max-width": 500,
|
|
12478
12478
|
eager: "",
|
|
12479
|
-
"onUpdate:modelValue":
|
|
12479
|
+
"onUpdate:modelValue": y
|
|
12480
12480
|
}, {
|
|
12481
12481
|
default: m(() => [
|
|
12482
12482
|
e.modelValue ? (v(), I(Ge, { key: 0 }, {
|
|
12483
12483
|
default: m(() => [
|
|
12484
12484
|
u(kt, {
|
|
12485
|
-
onOnCancel: A[4] || (A[4] = (T) =>
|
|
12485
|
+
onOnCancel: A[4] || (A[4] = (T) => y(!1))
|
|
12486
12486
|
}, {
|
|
12487
12487
|
default: m(() => [
|
|
12488
12488
|
M(b(F.value === d(ae).Image ? d(i)("common.damImage.image.meta.edit") : d(i)("common.damImage.media.meta.edit")), 1)
|
|
@@ -12692,7 +12692,7 @@ const zp = {
|
|
|
12692
12692
|
u($t, null, {
|
|
12693
12693
|
default: m(() => [
|
|
12694
12694
|
u(mt),
|
|
12695
|
-
u(
|
|
12695
|
+
u(X, {
|
|
12696
12696
|
loading: e.saving,
|
|
12697
12697
|
disabled: e.loading,
|
|
12698
12698
|
onClick: W(x, ["stop"])
|
|
@@ -13613,7 +13613,7 @@ function ug() {
|
|
|
13613
13613
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
13614
13614
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
13615
13615
|
}
|
|
13616
|
-
var Po = typeof window < "u" && typeof window.document < "u", va = Po ? window : {}, mn = Po && va.document.documentElement ? "ontouchstart" in va.document.documentElement : !1, fn = Po ? "PointerEvent" in va : !1,
|
|
13616
|
+
var Po = typeof window < "u" && typeof window.document < "u", va = Po ? window : {}, mn = Po && va.document.documentElement ? "ontouchstart" in va.document.documentElement : !1, fn = Po ? "PointerEvent" in va : !1, lt = "cropper", Vn = "all", ou = "crop", ru = "move", nu = "zoom", ts = "e", as = "w", xs = "s", Ma = "n", ti = "ne", ai = "nw", si = "se", ii = "sw", Xr = "".concat(lt, "-crop"), ol = "".concat(lt, "-disabled"), Et = "".concat(lt, "-hidden"), rl = "".concat(lt, "-hide"), cg = "".concat(lt, "-invisible"), qo = "".concat(lt, "-modal"), yr = "".concat(lt, "-move"), Vi = "".concat(lt, "Action"), eo = "".concat(lt, "Preview"), vn = "crop", lu = "move", du = "none", Ar = "crop", br = "cropend", xr = "cropmove", Cr = "cropstart", nl = "dblclick", mg = mn ? "touchstart" : "mousedown", fg = mn ? "touchmove" : "mousemove", Vg = mn ? "touchend touchcancel" : "mouseup", ll = fn ? "pointerdown" : mg, dl = fn ? "pointermove" : fg, ul = fn ? "pointerup pointercancel" : Vg, cl = "ready", ml = "resize", fl = "wheel", Ir = "zoom", Vl = "image/jpeg", vg = /^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/, Fg = /^data:/, pg = /^data:image\/jpeg;base64,/, hg = /^img|canvas$/i, uu = 200, cu = 100, vl = {
|
|
13617
13617
|
// Define the view mode of the cropper
|
|
13618
13618
|
viewMode: 0,
|
|
13619
13619
|
// 0, 1, 2, 3
|
|
@@ -13950,7 +13950,7 @@ function Sg(e) {
|
|
|
13950
13950
|
};
|
|
13951
13951
|
}
|
|
13952
13952
|
function Kg(e, a, t, s) {
|
|
13953
|
-
var o = a.aspectRatio, i = a.naturalWidth, r = a.naturalHeight, n = a.rotate, l = n === void 0 ? 0 : n, c = a.scaleX, f = c === void 0 ? 1 : c, V = a.scaleY, F = V === void 0 ? 1 : V, q = t.aspectRatio, p = t.naturalWidth, h = t.naturalHeight, g = s.fillColor, x = g === void 0 ? "transparent" : g,
|
|
13953
|
+
var o = a.aspectRatio, i = a.naturalWidth, r = a.naturalHeight, n = a.rotate, l = n === void 0 ? 0 : n, c = a.scaleX, f = c === void 0 ? 1 : c, V = a.scaleY, F = V === void 0 ? 1 : V, q = t.aspectRatio, p = t.naturalWidth, h = t.naturalHeight, g = s.fillColor, x = g === void 0 ? "transparent" : g, y = s.imageSmoothingEnabled, w = y === void 0 ? !0 : y, Y = s.imageSmoothingQuality, A = Y === void 0 ? "low" : Y, X = s.maxWidth, T = X === void 0 ? 1 / 0 : X, E = s.maxHeight, N = E === void 0 ? 1 / 0 : E, O = s.minWidth, z = O === void 0 ? 0 : O, U = s.minHeight, _ = U === void 0 ? 0 : U, k = document.createElement("canvas"), $ = k.getContext("2d"), L = Ra({
|
|
13954
13954
|
aspectRatio: q,
|
|
13955
13955
|
width: T,
|
|
13956
13956
|
height: N
|
|
@@ -14295,108 +14295,108 @@ var Bg = {
|
|
|
14295
14295
|
}
|
|
14296
14296
|
}, Lg = {
|
|
14297
14297
|
change: function(a) {
|
|
14298
|
-
var t = this.options, s = this.canvasData, o = this.containerData, i = this.cropBoxData, r = this.pointers, n = this.action, l = t.aspectRatio, c = i.left, f = i.top, V = i.width, F = i.height, q = c + V, p = f + F, h = 0, g = 0, x = o.width,
|
|
14299
|
-
!l && a.shiftKey && (l = V && F ? V / F : 1), this.limited && (h = i.minLeft, g = i.minTop, x = h + Math.min(o.width, s.width, s.left + s.width),
|
|
14300
|
-
var A = r[Object.keys(r)[0]],
|
|
14298
|
+
var t = this.options, s = this.canvasData, o = this.containerData, i = this.cropBoxData, r = this.pointers, n = this.action, l = t.aspectRatio, c = i.left, f = i.top, V = i.width, F = i.height, q = c + V, p = f + F, h = 0, g = 0, x = o.width, y = o.height, w = !0, Y;
|
|
14299
|
+
!l && a.shiftKey && (l = V && F ? V / F : 1), this.limited && (h = i.minLeft, g = i.minTop, x = h + Math.min(o.width, s.width, s.left + s.width), y = g + Math.min(o.height, s.height, s.top + s.height));
|
|
14300
|
+
var A = r[Object.keys(r)[0]], X = {
|
|
14301
14301
|
x: A.endX - A.startX,
|
|
14302
14302
|
y: A.endY - A.startY
|
|
14303
14303
|
}, T = function(N) {
|
|
14304
14304
|
switch (N) {
|
|
14305
14305
|
case ts:
|
|
14306
|
-
q +
|
|
14306
|
+
q + X.x > x && (X.x = x - q);
|
|
14307
14307
|
break;
|
|
14308
14308
|
case as:
|
|
14309
|
-
c +
|
|
14309
|
+
c + X.x < h && (X.x = h - c);
|
|
14310
14310
|
break;
|
|
14311
14311
|
case Ma:
|
|
14312
|
-
f +
|
|
14312
|
+
f + X.y < g && (X.y = g - f);
|
|
14313
14313
|
break;
|
|
14314
14314
|
case xs:
|
|
14315
|
-
p +
|
|
14315
|
+
p + X.y > y && (X.y = y - p);
|
|
14316
14316
|
break;
|
|
14317
14317
|
}
|
|
14318
14318
|
};
|
|
14319
14319
|
switch (n) {
|
|
14320
14320
|
// Move crop box
|
|
14321
14321
|
case Vn:
|
|
14322
|
-
c +=
|
|
14322
|
+
c += X.x, f += X.y;
|
|
14323
14323
|
break;
|
|
14324
14324
|
// Resize crop box
|
|
14325
14325
|
case ts:
|
|
14326
|
-
if (
|
|
14326
|
+
if (X.x >= 0 && (q >= x || l && (f <= g || p >= y))) {
|
|
14327
14327
|
w = !1;
|
|
14328
14328
|
break;
|
|
14329
14329
|
}
|
|
14330
|
-
T(ts), V +=
|
|
14330
|
+
T(ts), V += X.x, V < 0 && (n = as, V = -V, c -= V), l && (F = V / l, f += (i.height - F) / 2);
|
|
14331
14331
|
break;
|
|
14332
14332
|
case Ma:
|
|
14333
|
-
if (
|
|
14333
|
+
if (X.y <= 0 && (f <= g || l && (c <= h || q >= x))) {
|
|
14334
14334
|
w = !1;
|
|
14335
14335
|
break;
|
|
14336
14336
|
}
|
|
14337
|
-
T(Ma), F -=
|
|
14337
|
+
T(Ma), F -= X.y, f += X.y, F < 0 && (n = xs, F = -F, f -= F), l && (V = F * l, c += (i.width - V) / 2);
|
|
14338
14338
|
break;
|
|
14339
14339
|
case as:
|
|
14340
|
-
if (
|
|
14340
|
+
if (X.x <= 0 && (c <= h || l && (f <= g || p >= y))) {
|
|
14341
14341
|
w = !1;
|
|
14342
14342
|
break;
|
|
14343
14343
|
}
|
|
14344
|
-
T(as), V -=
|
|
14344
|
+
T(as), V -= X.x, c += X.x, V < 0 && (n = ts, V = -V, c -= V), l && (F = V / l, f += (i.height - F) / 2);
|
|
14345
14345
|
break;
|
|
14346
14346
|
case xs:
|
|
14347
|
-
if (
|
|
14347
|
+
if (X.y >= 0 && (p >= y || l && (c <= h || q >= x))) {
|
|
14348
14348
|
w = !1;
|
|
14349
14349
|
break;
|
|
14350
14350
|
}
|
|
14351
|
-
T(xs), F +=
|
|
14351
|
+
T(xs), F += X.y, F < 0 && (n = Ma, F = -F, f -= F), l && (V = F * l, c += (i.width - V) / 2);
|
|
14352
14352
|
break;
|
|
14353
14353
|
case ti:
|
|
14354
14354
|
if (l) {
|
|
14355
|
-
if (
|
|
14355
|
+
if (X.y <= 0 && (f <= g || q >= x)) {
|
|
14356
14356
|
w = !1;
|
|
14357
14357
|
break;
|
|
14358
14358
|
}
|
|
14359
|
-
T(Ma), F -=
|
|
14359
|
+
T(Ma), F -= X.y, f += X.y, V = F * l;
|
|
14360
14360
|
} else
|
|
14361
|
-
T(Ma), T(ts),
|
|
14361
|
+
T(Ma), T(ts), X.x >= 0 ? q < x ? V += X.x : X.y <= 0 && f <= g && (w = !1) : V += X.x, X.y <= 0 ? f > g && (F -= X.y, f += X.y) : (F -= X.y, f += X.y);
|
|
14362
14362
|
V < 0 && F < 0 ? (n = ii, F = -F, V = -V, f -= F, c -= V) : V < 0 ? (n = ai, V = -V, c -= V) : F < 0 && (n = si, F = -F, f -= F);
|
|
14363
14363
|
break;
|
|
14364
14364
|
case ai:
|
|
14365
14365
|
if (l) {
|
|
14366
|
-
if (
|
|
14366
|
+
if (X.y <= 0 && (f <= g || c <= h)) {
|
|
14367
14367
|
w = !1;
|
|
14368
14368
|
break;
|
|
14369
14369
|
}
|
|
14370
|
-
T(Ma), F -=
|
|
14370
|
+
T(Ma), F -= X.y, f += X.y, V = F * l, c += i.width - V;
|
|
14371
14371
|
} else
|
|
14372
|
-
T(Ma), T(as),
|
|
14372
|
+
T(Ma), T(as), X.x <= 0 ? c > h ? (V -= X.x, c += X.x) : X.y <= 0 && f <= g && (w = !1) : (V -= X.x, c += X.x), X.y <= 0 ? f > g && (F -= X.y, f += X.y) : (F -= X.y, f += X.y);
|
|
14373
14373
|
V < 0 && F < 0 ? (n = si, F = -F, V = -V, f -= F, c -= V) : V < 0 ? (n = ti, V = -V, c -= V) : F < 0 && (n = ii, F = -F, f -= F);
|
|
14374
14374
|
break;
|
|
14375
14375
|
case ii:
|
|
14376
14376
|
if (l) {
|
|
14377
|
-
if (
|
|
14377
|
+
if (X.x <= 0 && (c <= h || p >= y)) {
|
|
14378
14378
|
w = !1;
|
|
14379
14379
|
break;
|
|
14380
14380
|
}
|
|
14381
|
-
T(as), V -=
|
|
14381
|
+
T(as), V -= X.x, c += X.x, F = V / l;
|
|
14382
14382
|
} else
|
|
14383
|
-
T(xs), T(as),
|
|
14383
|
+
T(xs), T(as), X.x <= 0 ? c > h ? (V -= X.x, c += X.x) : X.y >= 0 && p >= y && (w = !1) : (V -= X.x, c += X.x), X.y >= 0 ? p < y && (F += X.y) : F += X.y;
|
|
14384
14384
|
V < 0 && F < 0 ? (n = ti, F = -F, V = -V, f -= F, c -= V) : V < 0 ? (n = si, V = -V, c -= V) : F < 0 && (n = ai, F = -F, f -= F);
|
|
14385
14385
|
break;
|
|
14386
14386
|
case si:
|
|
14387
14387
|
if (l) {
|
|
14388
|
-
if (
|
|
14388
|
+
if (X.x >= 0 && (q >= x || p >= y)) {
|
|
14389
14389
|
w = !1;
|
|
14390
14390
|
break;
|
|
14391
14391
|
}
|
|
14392
|
-
T(ts), V +=
|
|
14392
|
+
T(ts), V += X.x, F = V / l;
|
|
14393
14393
|
} else
|
|
14394
|
-
T(xs), T(ts),
|
|
14394
|
+
T(xs), T(ts), X.x >= 0 ? q < x ? V += X.x : X.y >= 0 && p >= y && (w = !1) : V += X.x, X.y >= 0 ? p < y && (F += X.y) : F += X.y;
|
|
14395
14395
|
V < 0 && F < 0 ? (n = ai, F = -F, V = -V, f -= F, c -= V) : V < 0 ? (n = ii, V = -V, c -= V) : F < 0 && (n = ti, F = -F, f -= F);
|
|
14396
14396
|
break;
|
|
14397
14397
|
// Move canvas
|
|
14398
14398
|
case ru:
|
|
14399
|
-
this.move(
|
|
14399
|
+
this.move(X.x, X.y), w = !1;
|
|
14400
14400
|
break;
|
|
14401
14401
|
// Zoom canvas
|
|
14402
14402
|
case nu:
|
|
@@ -14404,11 +14404,11 @@ var Bg = {
|
|
|
14404
14404
|
break;
|
|
14405
14405
|
// Create crop box
|
|
14406
14406
|
case ou:
|
|
14407
|
-
if (!
|
|
14407
|
+
if (!X.x || !X.y) {
|
|
14408
14408
|
w = !1;
|
|
14409
14409
|
break;
|
|
14410
14410
|
}
|
|
14411
|
-
Y = vu(this.cropper), c = A.startX - Y.left, f = A.startY - Y.top, V = i.minWidth, F = i.minHeight,
|
|
14411
|
+
Y = vu(this.cropper), c = A.startX - Y.left, f = A.startY - Y.top, V = i.minWidth, F = i.minHeight, X.x > 0 ? n = X.y > 0 ? si : ti : X.x < 0 && (c -= V, n = X.y > 0 ? ii : ai), X.y < 0 && (f -= F), this.cropped || (fa(this.cropBox, Et), this.cropped = !0, this.limited && this.limitCropBox(!0, !0));
|
|
14412
14412
|
break;
|
|
14413
14413
|
}
|
|
14414
14414
|
w && (i.width = V, i.height = F, i.left = c, i.top = f, this.action = n, this.renderCropBox()), pt(r, function(E) {
|
|
@@ -14459,7 +14459,7 @@ var Bg = {
|
|
|
14459
14459
|
*/
|
|
14460
14460
|
destroy: function() {
|
|
14461
14461
|
var a = this.element;
|
|
14462
|
-
return a[
|
|
14462
|
+
return a[lt] ? (a[lt] = void 0, this.isImg && this.replaced && (a.src = this.originalUrl), this.uncreate(), this) : this;
|
|
14463
14463
|
},
|
|
14464
14464
|
/**
|
|
14465
14465
|
* Move the canvas with relative offsets
|
|
@@ -14693,10 +14693,10 @@ var Bg = {
|
|
|
14693
14693
|
p = Math.min(V.width, Math.max(F.width, p)), h = Math.min(V.height, Math.max(F.height, h));
|
|
14694
14694
|
var g = document.createElement("canvas"), x = g.getContext("2d");
|
|
14695
14695
|
g.width = Es(p), g.height = Es(h), x.fillStyle = a.fillColor || "transparent", x.fillRect(0, 0, p, h);
|
|
14696
|
-
var
|
|
14696
|
+
var y = a.imageSmoothingEnabled, w = y === void 0 ? !0 : y, Y = a.imageSmoothingQuality;
|
|
14697
14697
|
x.imageSmoothingEnabled = w, Y && (x.imageSmoothingQuality = Y);
|
|
14698
|
-
var A = s.width,
|
|
14699
|
-
T <= -n || T > A ? (T = 0, N = 0, z = 0, _ = 0) : T <= 0 ? (z = -T, T = 0, N = Math.min(A, n + T), _ = N) : T <= A && (z = 0, N = Math.min(n, A - T), _ = N), N <= 0 || E <= -l || E >
|
|
14698
|
+
var A = s.width, X = s.height, T = i, E = r, N, O, z, U, _, k;
|
|
14699
|
+
T <= -n || T > A ? (T = 0, N = 0, z = 0, _ = 0) : T <= 0 ? (z = -T, T = 0, N = Math.min(A, n + T), _ = N) : T <= A && (z = 0, N = Math.min(n, A - T), _ = N), N <= 0 || E <= -l || E > X ? (E = 0, O = 0, U = 0, k = 0) : E <= 0 ? (U = -E, E = 0, O = Math.min(X, l + E), k = O) : E <= X && (U = 0, O = Math.min(l, X - E), k = O);
|
|
14700
14700
|
var $ = [T, E, N, O];
|
|
14701
14701
|
if (_ > 0 && k > 0) {
|
|
14702
14702
|
var L = p / n;
|
|
@@ -14739,8 +14739,8 @@ var Bg = {
|
|
|
14739
14739
|
key: "init",
|
|
14740
14740
|
value: function() {
|
|
14741
14741
|
var t = this.element, s = t.tagName.toLowerCase(), o;
|
|
14742
|
-
if (!t[
|
|
14743
|
-
if (t[
|
|
14742
|
+
if (!t[lt]) {
|
|
14743
|
+
if (t[lt] = this, s === "img") {
|
|
14744
14744
|
if (this.isImg = !0, o = t.getAttribute("src") || "", this.originalUrl = o, !o)
|
|
14745
14745
|
return;
|
|
14746
14746
|
o = t.src;
|
|
@@ -14825,8 +14825,8 @@ var Bg = {
|
|
|
14825
14825
|
if (!(!this.sized || this.ready)) {
|
|
14826
14826
|
var t = this.element, s = this.options, o = this.image, i = t.parentNode, r = document.createElement("div");
|
|
14827
14827
|
r.innerHTML = gg;
|
|
14828
|
-
var n = r.querySelector(".".concat(
|
|
14829
|
-
this.container = i, this.cropper = n, this.canvas = l, this.dragBox = c, this.cropBox = f, this.viewBox = n.querySelector(".".concat(
|
|
14828
|
+
var n = r.querySelector(".".concat(lt, "-container")), l = n.querySelector(".".concat(lt, "-canvas")), c = n.querySelector(".".concat(lt, "-drag-box")), f = n.querySelector(".".concat(lt, "-crop-box")), V = f.querySelector(".".concat(lt, "-face"));
|
|
14829
|
+
this.container = i, this.cropper = n, this.canvas = l, this.dragBox = c, this.cropBox = f, this.viewBox = n.querySelector(".".concat(lt, "-view-box")), this.face = V, l.appendChild(o), Xt(t, Et), i.insertBefore(n, t.nextSibling), fa(o, rl), this.initPreview(), this.bind(), s.initialAspectRatio = Math.max(0, s.initialAspectRatio) || NaN, s.aspectRatio = Math.max(0, s.aspectRatio) || NaN, s.viewMode = Math.max(0, Math.min(3, Math.round(s.viewMode))) || 0, Xt(f, Et), s.guides || Xt(f.getElementsByClassName("".concat(lt, "-dashed")), Et), s.center || Xt(f.getElementsByClassName("".concat(lt, "-center")), Et), s.background && Xt(n, "".concat(lt, "-bg")), s.highlight || Xt(V, cg), s.cropBoxMovable && (Xt(V, yr), vi(V, Vi, Vn)), s.cropBoxResizable || (Xt(f.getElementsByClassName("".concat(lt, "-line")), Et), Xt(f.getElementsByClassName("".concat(lt, "-point")), Et)), this.render(), this.ready = !0, this.setDragMode(s.dragMode), s.autoCrop && this.crop(), this.setData(s.data), Mt(s.ready) && Jt(t, cl, s.ready, {
|
|
14830
14830
|
once: !0
|
|
14831
14831
|
}), _s(t, cl);
|
|
14832
14832
|
}
|
|
@@ -14932,11 +14932,11 @@ const Ng = { class: "d-flex flex-column" }, jg = {
|
|
|
14932
14932
|
getData: () => s.value?.getData(),
|
|
14933
14933
|
setData: (F) => s.value?.setData(F)
|
|
14934
14934
|
}), ft(() => {
|
|
14935
|
-
const { containerStyle: F, src: q, alt: p, imgStyle: h, ...g } = t, x = g,
|
|
14935
|
+
const { containerStyle: F, src: q, alt: p, imgStyle: h, ...g } = t, x = g, y = {};
|
|
14936
14936
|
for (const w in g)
|
|
14937
|
-
Object.prototype.hasOwnProperty.call(x, w) && x[w] !== void 0 && (
|
|
14937
|
+
Object.prototype.hasOwnProperty.call(x, w) && x[w] !== void 0 && (y[w] = x[w]);
|
|
14938
14938
|
ls(() => {
|
|
14939
|
-
oe(o.value) || (s.value = new pu(o.value,
|
|
14939
|
+
oe(o.value) || (s.value = new pu(o.value, y), setTimeout(() => {
|
|
14940
14940
|
i.value = !1;
|
|
14941
14941
|
}, 1e3));
|
|
14942
14942
|
});
|
|
@@ -14975,24 +14975,24 @@ const Ng = { class: "d-flex flex-column" }, jg = {
|
|
|
14975
14975
|
}, q = () => {
|
|
14976
14976
|
if (c.value && i.roi && i.imageFile) {
|
|
14977
14977
|
V();
|
|
14978
|
-
const
|
|
14978
|
+
const y = tg(
|
|
14979
14979
|
c.value,
|
|
14980
14980
|
i.roi,
|
|
14981
14981
|
i.imageFile.imageAttributes.width,
|
|
14982
14982
|
i.imageFile.imageAttributes.height
|
|
14983
14983
|
);
|
|
14984
|
-
c.value.setData(
|
|
14984
|
+
c.value.setData(y), F();
|
|
14985
14985
|
}
|
|
14986
14986
|
}, p = async () => {
|
|
14987
14987
|
if (c.value && i.roi && i.imageFile) {
|
|
14988
|
-
const
|
|
14988
|
+
const y = ag(
|
|
14989
14989
|
c.value,
|
|
14990
14990
|
i.roi,
|
|
14991
14991
|
i.imageFile.imageAttributes.width,
|
|
14992
14992
|
i.imageFile.imageAttributes.height
|
|
14993
14993
|
);
|
|
14994
14994
|
try {
|
|
14995
|
-
i.showLoader(), await Bh(r,
|
|
14995
|
+
i.showLoader(), await Bh(r, y.id, y), t("updated"), setTimeout(() => {
|
|
14996
14996
|
i.forceReloadRoiPreviews();
|
|
14997
14997
|
}, 2e3);
|
|
14998
14998
|
} catch (w) {
|
|
@@ -15008,7 +15008,7 @@ const Ng = { class: "d-flex flex-column" }, jg = {
|
|
|
15008
15008
|
}, x = C(() => !!(i.imageFile && f.value.length > 0 && !i.loader));
|
|
15009
15009
|
return Os(() => {
|
|
15010
15010
|
c.value && (c.value.destroy(), c.value = null);
|
|
15011
|
-
}), (
|
|
15011
|
+
}), (y, w) => x.value ? (v(), I(Wg, {
|
|
15012
15012
|
key: d(i).timestampCropper,
|
|
15013
15013
|
ref_key: "cropper",
|
|
15014
15014
|
ref: c,
|
|
@@ -15042,7 +15042,7 @@ const Ng = { class: "d-flex flex-column" }, jg = {
|
|
|
15042
15042
|
}, c = S(!0), f = () => {
|
|
15043
15043
|
c.value = !c.value;
|
|
15044
15044
|
}, V = () => {
|
|
15045
|
-
}, F = C(() => o.value?.attributes.assetType || mi), q = C(() => o.value ? o.value.attributes.assetStatus : So), p = C(() => F.value === ae.Image), h = C(() => F.value === ae.Video), g = C(() => F.value === ae.Audio), x = C(() => F.value === ae.Document),
|
|
15045
|
+
}, F = C(() => o.value?.attributes.assetType || mi), q = C(() => o.value ? o.value.attributes.assetStatus : So), p = C(() => F.value === ae.Image), h = C(() => F.value === ae.Video), g = C(() => F.value === ae.Audio), x = C(() => F.value === ae.Document), y = C(() => o.value?.mainFile && o.value.mainFile.links && o.value.mainFile.links.image_detail ? {
|
|
15046
15046
|
url: o.value.mainFile.links.image_detail.url + "?random=" + Date.now(),
|
|
15047
15047
|
width: o.value.mainFile.links.image_detail.width,
|
|
15048
15048
|
height: o.value.mainFile.links.image_detail.height,
|
|
@@ -15053,7 +15053,7 @@ const Ng = { class: "d-flex flex-column" }, jg = {
|
|
|
15053
15053
|
height: 200,
|
|
15054
15054
|
bgColor: "#ccc"
|
|
15055
15055
|
}), w = C(() => o.value ? o.value.texts.displayTitle : ""), Y = C(() => o.value?.mainFile || void 0);
|
|
15056
|
-
return (A,
|
|
15056
|
+
return (A, X) => (v(), I(ht, {
|
|
15057
15057
|
"model-value": !0,
|
|
15058
15058
|
fullscreen: "",
|
|
15059
15059
|
eager: ""
|
|
@@ -15138,10 +15138,10 @@ const Ng = { class: "d-flex flex-column" }, jg = {
|
|
|
15138
15138
|
u(dn, {
|
|
15139
15139
|
"asset-type": F.value,
|
|
15140
15140
|
"asset-status": q.value,
|
|
15141
|
-
src:
|
|
15142
|
-
"background-color":
|
|
15143
|
-
width:
|
|
15144
|
-
height:
|
|
15141
|
+
src: y.value.url,
|
|
15142
|
+
"background-color": y.value.bgColor,
|
|
15143
|
+
width: y.value.width,
|
|
15144
|
+
height: y.value.height,
|
|
15145
15145
|
"use-component": "",
|
|
15146
15146
|
onLoad: V,
|
|
15147
15147
|
onError: V
|
|
@@ -15192,11 +15192,11 @@ const oq = { key: 0 }, rq = /* @__PURE__ */ H({
|
|
|
15192
15192
|
setup(e) {
|
|
15193
15193
|
const a = e, { t } = Q(), s = S(["metadata", "file"]), o = wt(), { asset: i, authorConflicts: r, metadataAreTouched: n, mainFileSingleUse: l } = ot(o), c = zt(), f = C(() => c.getQueueItems(a.queueKey)), V = C(() => f.value[0] ?? null), F = C(() => ae.Image), q = C(() => F.value === ae.Image), p = C(() => i.value && i.value.mainFile ? i.value.mainFile : null), h = () => {
|
|
15194
15194
|
n.value = !0;
|
|
15195
|
-
}, { keywordRequired: g, keywordEnabled: x } = en(F.value, a.extSystem), { authorRequired:
|
|
15195
|
+
}, { keywordRequired: g, keywordEnabled: x } = en(F.value, a.extSystem), { authorRequired: y, authorEnabled: w } = tn(F.value, a.extSystem);
|
|
15196
15196
|
return (Y, A) => V.value ? (v(), I(Br, {
|
|
15197
15197
|
key: 0,
|
|
15198
15198
|
modelValue: s.value,
|
|
15199
|
-
"onUpdate:modelValue": A[4] || (A[4] = (
|
|
15199
|
+
"onUpdate:modelValue": A[4] || (A[4] = (X) => s.value = X),
|
|
15200
15200
|
multiple: "",
|
|
15201
15201
|
class: "v-expansion-panels--compact"
|
|
15202
15202
|
}, {
|
|
@@ -15216,7 +15216,7 @@ const oq = { key: 0 }, rq = /* @__PURE__ */ H({
|
|
|
15216
15216
|
V.value ? (v(), I(Zr, {
|
|
15217
15217
|
key: 0,
|
|
15218
15218
|
modelValue: V.value.customData,
|
|
15219
|
-
"onUpdate:modelValue": A[3] || (A[3] = (
|
|
15219
|
+
"onUpdate:modelValue": A[3] || (A[3] = (X) => V.value.customData = X),
|
|
15220
15220
|
"ext-system": e.extSystem,
|
|
15221
15221
|
"asset-type": F.value,
|
|
15222
15222
|
onAnyChange: h
|
|
@@ -15238,7 +15238,7 @@ const oq = { key: 0 }, rq = /* @__PURE__ */ H({
|
|
|
15238
15238
|
u(_o, {
|
|
15239
15239
|
modelValue: V.value.keywords,
|
|
15240
15240
|
"onUpdate:modelValue": [
|
|
15241
|
-
A[0] || (A[0] = (
|
|
15241
|
+
A[0] || (A[0] = (X) => V.value.keywords = X),
|
|
15242
15242
|
h
|
|
15243
15243
|
],
|
|
15244
15244
|
label: d(t)("common.damImage.asset.model.keywords"),
|
|
@@ -15275,7 +15275,7 @@ const oq = { key: 0 }, rq = /* @__PURE__ */ H({
|
|
|
15275
15275
|
u(Oa, {
|
|
15276
15276
|
modelValue: V.value.authors,
|
|
15277
15277
|
"onUpdate:modelValue": [
|
|
15278
|
-
A[1] || (A[1] = (
|
|
15278
|
+
A[1] || (A[1] = (X) => V.value.authors = X),
|
|
15279
15279
|
h
|
|
15280
15280
|
],
|
|
15281
15281
|
label: d(t)("common.damImage.asset.model.authors"),
|
|
@@ -15285,7 +15285,7 @@ const oq = { key: 0 }, rq = /* @__PURE__ */ H({
|
|
|
15285
15285
|
clearable: "",
|
|
15286
15286
|
multiple: "",
|
|
15287
15287
|
disabled: !V.value.canEditMetadata,
|
|
15288
|
-
required: d(
|
|
15288
|
+
required: d(y),
|
|
15289
15289
|
"validation-scope": d(Xa)
|
|
15290
15290
|
}, null, 8, ["modelValue", "label", "author-conflicts", "ext-system", "disabled", "required", "validation-scope"])
|
|
15291
15291
|
]),
|
|
@@ -15306,7 +15306,7 @@ const oq = { key: 0 }, rq = /* @__PURE__ */ H({
|
|
|
15306
15306
|
default: m(() => [
|
|
15307
15307
|
u(Va, {
|
|
15308
15308
|
modelValue: d(l),
|
|
15309
|
-
"onUpdate:modelValue": A[2] || (A[2] = (
|
|
15309
|
+
"onUpdate:modelValue": A[2] || (A[2] = (X) => ns(l) ? l.value = X : null),
|
|
15310
15310
|
label: d(t)("common.damImage.asset.model.mainFileSingleUse")
|
|
15311
15311
|
}, null, 8, ["modelValue", "label"])
|
|
15312
15312
|
]),
|
|
@@ -15796,9 +15796,9 @@ const oq = { key: 0 }, rq = /* @__PURE__ */ H({
|
|
|
15796
15796
|
modifiedAt: Rt(),
|
|
15797
15797
|
createdBy: null,
|
|
15798
15798
|
modifiedBy: null
|
|
15799
|
-
}),
|
|
15800
|
-
|
|
15801
|
-
}, Y = C(() => x.value?.attributes.assetType || mi), A = C(() => x.value ? x.value.attributes.assetStatus : So),
|
|
15799
|
+
}), y = S(!0), w = () => {
|
|
15800
|
+
y.value = !y.value;
|
|
15801
|
+
}, Y = C(() => x.value?.attributes.assetType || mi), A = C(() => x.value ? x.value.attributes.assetStatus : So), X = C(() => Y.value === ae.Image), T = C(() => Y.value === ae.Video), E = C(() => Y.value === ae.Audio), N = C(() => Y.value === ae.Document), O = C(() => g.value?.imagePreview ? {
|
|
15802
15802
|
url: g.value.imagePreview.url + "?random=" + Date.now(),
|
|
15803
15803
|
width: g.value.imagePreview.requestedWidth || void 0,
|
|
15804
15804
|
height: g.value.imagePreview.requestedHeight || void 0,
|
|
@@ -15874,7 +15874,7 @@ const oq = { key: 0 }, rq = /* @__PURE__ */ H({
|
|
|
15874
15874
|
onCloseDialog: Z
|
|
15875
15875
|
})) : g.value ? (v(), I(Ge, {
|
|
15876
15876
|
key: 1,
|
|
15877
|
-
class: ye(["dam-image-detail", { "dam-image-detail--sidebar-active":
|
|
15877
|
+
class: ye(["dam-image-detail", { "dam-image-detail--sidebar-active": y.value }])
|
|
15878
15878
|
}, {
|
|
15879
15879
|
default: m(() => [
|
|
15880
15880
|
R("div", vq, [
|
|
@@ -15891,9 +15891,9 @@ const oq = { key: 0 }, rq = /* @__PURE__ */ H({
|
|
|
15891
15891
|
u(mt),
|
|
15892
15892
|
R("div", gq, [
|
|
15893
15893
|
u(ee, {
|
|
15894
|
-
active:
|
|
15895
|
-
variant:
|
|
15896
|
-
color:
|
|
15894
|
+
active: y.value,
|
|
15895
|
+
variant: y.value ? "flat" : "text",
|
|
15896
|
+
color: y.value ? "secondary" : "",
|
|
15897
15897
|
icon: "",
|
|
15898
15898
|
class: "mr-1",
|
|
15899
15899
|
width: 36,
|
|
@@ -15978,7 +15978,7 @@ const oq = { key: 0 }, rq = /* @__PURE__ */ H({
|
|
|
15978
15978
|
"asset-id": x.value.id,
|
|
15979
15979
|
"is-video": T.value,
|
|
15980
15980
|
"is-audio": E.value,
|
|
15981
|
-
"is-image":
|
|
15981
|
+
"is-image": X.value,
|
|
15982
15982
|
"is-document": N.value,
|
|
15983
15983
|
"asset-status": A.value,
|
|
15984
15984
|
"asset-type": Y.value,
|
|
@@ -16227,14 +16227,14 @@ const oq = { key: 0 }, rq = /* @__PURE__ */ H({
|
|
|
16227
16227
|
V.value === !0 || s.collabStatus === qt.Inactive || (c.value(), V.value = !0);
|
|
16228
16228
|
}, q = (ve) => {
|
|
16229
16229
|
V.value === !1 || s.collabStatus === qt.Inactive || (l.value(ve), V.value = !1);
|
|
16230
|
-
}, p =
|
|
16230
|
+
}, p = nt(
|
|
16231
16231
|
ys,
|
|
16232
16232
|
void 0
|
|
16233
16233
|
);
|
|
16234
16234
|
if (B(p) || B(p.value))
|
|
16235
16235
|
throw new Error("Fatal error, parent component doesn't provide necessary config ext system config.");
|
|
16236
|
-
const { t: h } = Q(), { showErrorsDefault: g, showError: x, showErrorT:
|
|
16237
|
-
T.setDetail(
|
|
16236
|
+
const { t: h } = Q(), { showErrorsDefault: g, showError: x, showErrorT: y } = We(), w = Xs(s.configName), { imageClient: Y } = w, { widgetImageToDamImageUrl: A } = Ti(w), X = zt(), T = Jr(), { detail: E } = ot(T), { uploadQueueDialog: N } = _i(), O = S(null), z = S(!1), U = S(!1), _ = S(!1), k = S(!1), $ = S(!1), L = S(!1), J = C(() => oe(i.value)), K = S(""), j = C(() => X.getQueue(s.queueKey)), Z = C(() => !oe(O.value)), G = () => {
|
|
16237
|
+
T.setDetail(dt(O.value)), _.value = !0;
|
|
16238
16238
|
}, Ve = () => {
|
|
16239
16239
|
U.value = !0;
|
|
16240
16240
|
}, { cachedExtSystemId: le } = da(), ne = S(!1), Te = async () => {
|
|
@@ -16248,7 +16248,7 @@ const oq = { key: 0 }, rq = /* @__PURE__ */ H({
|
|
|
16248
16248
|
const be = p.value;
|
|
16249
16249
|
if (!B(be))
|
|
16250
16250
|
try {
|
|
16251
|
-
await Te(), le.value = be.extSystem,
|
|
16251
|
+
await Te(), le.value = be.extSystem, X.addByFiles(s.queueKey, be.extSystem, be.licence, ve), N.value = s.queueKey;
|
|
16252
16252
|
} catch {
|
|
16253
16253
|
x("Unable to lock image widget by current user.");
|
|
16254
16254
|
}
|
|
@@ -16257,24 +16257,24 @@ const oq = { key: 0 }, rq = /* @__PURE__ */ H({
|
|
|
16257
16257
|
const be = p.value;
|
|
16258
16258
|
if (!B(be)) {
|
|
16259
16259
|
if (le.value = be.extSystem, ve[0].result === "copy")
|
|
16260
|
-
|
|
16260
|
+
X.addByCopyToLicence(s.queueKey, be.extSystem, be.licence, [ve[0].targetAsset]);
|
|
16261
16261
|
else if (ve[0].result === "exists")
|
|
16262
|
-
|
|
16262
|
+
X.addByCopyToLicence(s.queueKey, be.extSystem, be.licence, [ve[0].targetAsset]), X.queueItemDuplicate(ve[0].targetAsset, ve[0].targetMainFile, ae.Image);
|
|
16263
16263
|
else {
|
|
16264
|
-
|
|
16264
|
+
y("damImage.queueItem.errorUnableToCopyToLicence");
|
|
16265
16265
|
return;
|
|
16266
16266
|
}
|
|
16267
16267
|
N.value = s.queueKey;
|
|
16268
16268
|
}
|
|
16269
16269
|
}, te = (ve) => {
|
|
16270
16270
|
const be = p.value;
|
|
16271
|
-
B(be) || (le.value = be.extSystem,
|
|
16271
|
+
B(be) || (le.value = be.extSystem, X.addByFiles(s.queueKey, be.extSystem, be.licence, ve), N.value = s.queueKey);
|
|
16272
16272
|
}, { uploadSizes: he, uploadAccept: Ie } = sn(
|
|
16273
16273
|
ae.Image,
|
|
16274
16274
|
p.value.extSystemConfig
|
|
16275
16275
|
), pe = async (ve, be, Oe = !1) => {
|
|
16276
16276
|
if (K.value = Bt, ve && oe(O.value) || ve && Oe) {
|
|
16277
|
-
O.value = ke(ve), O.value && (yt(s.damWidth) && yt(s.damHeight) ? K.value = A(
|
|
16277
|
+
O.value = ke(ve), O.value && (yt(s.damWidth) && yt(s.damHeight) ? K.value = A(dt(O.value), s.damWidth, s.damHeight) : K.value = A(dt(O.value)), s.expandMetadata && T.setDetail(dt(O.value)));
|
|
16278
16278
|
return;
|
|
16279
16279
|
}
|
|
16280
16280
|
if (be) {
|
|
@@ -16283,7 +16283,7 @@ const oq = { key: 0 }, rq = /* @__PURE__ */ H({
|
|
|
16283
16283
|
} catch (Lt) {
|
|
16284
16284
|
g(Lt);
|
|
16285
16285
|
}
|
|
16286
|
-
oe(O.value) || (yt(s.damWidth) && yt(s.damHeight) ? K.value = A(
|
|
16286
|
+
oe(O.value) || (yt(s.damWidth) && yt(s.damHeight) ? K.value = A(dt(O.value), s.damWidth, s.damHeight) : K.value = A(dt(O.value)), s.expandMetadata && T.setDetail(dt(O.value)));
|
|
16287
16287
|
return;
|
|
16288
16288
|
}
|
|
16289
16289
|
O.value = null;
|
|
@@ -16785,18 +16785,18 @@ const oq = { key: 0 }, rq = /* @__PURE__ */ H({
|
|
|
16785
16785
|
fetchNextPage: h,
|
|
16786
16786
|
fetchAssetListDebounced: g,
|
|
16787
16787
|
getSelectedData: x,
|
|
16788
|
-
initStoreContext:
|
|
16788
|
+
initStoreContext: y,
|
|
16789
16789
|
detailLoading: w,
|
|
16790
16790
|
reset: Y
|
|
16791
16791
|
// eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
16792
|
-
} = Ws("default", s.onDetailLoadedCallback), { loadDamConfigAssetCustomFormElements: A, getDamConfigAssetCustomFormElements:
|
|
16792
|
+
} = Ws("default", s.onDetailLoadedCallback), { loadDamConfigAssetCustomFormElements: A, getDamConfigAssetCustomFormElements: X } = gt(V), { getOrLoadDamConfigExtSystemByLicences: T } = gt(V), E = wt(), { asset: N } = ot(E), O = Da(), { selectedLicenceId: z, assetType: U } = ot(O), _ = vt([]), { openSidebarLeft: k, sidebarLeft: $, sidebarRight: L } = To(), { showErrorT: J } = We(), K = () => {
|
|
16793
16793
|
if (!n.value) return;
|
|
16794
16794
|
let De = ke(_.value);
|
|
16795
16795
|
if (s.skipCurrentUserCheck || (De = $d(_.value)), De.length === 0) {
|
|
16796
16796
|
J("common.assetSelect.error.unallowedLicence");
|
|
16797
16797
|
return;
|
|
16798
16798
|
}
|
|
16799
|
-
Y(),
|
|
16799
|
+
Y(), y(
|
|
16800
16800
|
De,
|
|
16801
16801
|
U.value,
|
|
16802
16802
|
U.value === ae.Audio ? !0 : null,
|
|
@@ -16845,7 +16845,7 @@ const oq = { key: 0 }, rq = /* @__PURE__ */ H({
|
|
|
16845
16845
|
async (De) => {
|
|
16846
16846
|
if (B(De)) return;
|
|
16847
16847
|
Ie.value = !0;
|
|
16848
|
-
const tt =
|
|
16848
|
+
const tt = X(De);
|
|
16849
16849
|
if (B(tt))
|
|
16850
16850
|
try {
|
|
16851
16851
|
await A(De), Ie.value = !1;
|
|
@@ -17047,14 +17047,14 @@ const oq = { key: 0 }, rq = /* @__PURE__ */ H({
|
|
|
17047
17047
|
V.value === !0 || s.collabStatus === qt.Inactive || (c.value(), V.value = !0);
|
|
17048
17048
|
}, q = (me) => {
|
|
17049
17049
|
V.value === !1 || s.collabStatus === qt.Inactive || (l.value(me), V.value = !1);
|
|
17050
|
-
}, p =
|
|
17050
|
+
}, p = nt(
|
|
17051
17051
|
ys,
|
|
17052
17052
|
void 0
|
|
17053
17053
|
);
|
|
17054
17054
|
if (B(p) || B(p.value))
|
|
17055
17055
|
throw new Error("Fatal error, parent component doesn't provide necessary config ext system config.");
|
|
17056
|
-
const { t: h } = Q(), { showErrorsDefault: g, showError: x, showErrorT:
|
|
17057
|
-
ue.setDetail(
|
|
17056
|
+
const { t: h } = Q(), { showErrorsDefault: g, showError: x, showErrorT: y } = We(), w = Xs(s.configName), { imageClient: Y } = w, { widgetImageToDamImageUrl: A, damImageIdToDamImageUrl: X } = Ti(w), T = zt(), { uploadQueueDialog: E } = _i(), N = S(!1), O = S(null), z = S(!1), U = S(!1), _ = S(!1), k = S(!1), $ = S(!1), L = S(!1), J = C(() => !oe(i.value) || !oe(r.value)), K = S(""), j = C(() => T.getQueue(s.queueKey)), Z = C(() => !oe(O.value)), G = () => {
|
|
17057
|
+
ue.setDetail(dt(O.value)), _.value = !0;
|
|
17058
17058
|
}, Ve = () => {
|
|
17059
17059
|
U.value = !0;
|
|
17060
17060
|
}, { cachedExtSystemId: le } = da(), ne = S(!1), Te = async () => {
|
|
@@ -17081,7 +17081,7 @@ const oq = { key: 0 }, rq = /* @__PURE__ */ H({
|
|
|
17081
17081
|
else if (me[0].result === "exists")
|
|
17082
17082
|
T.addByCopyToLicence(s.queueKey, qe.extSystem, qe.licence, [me[0].targetAsset]), T.queueItemDuplicate(me[0].targetAsset, me[0].targetMainFile, ae.Image);
|
|
17083
17083
|
else {
|
|
17084
|
-
|
|
17084
|
+
y("damImage.queueItem.errorUnableToCopyToLicence");
|
|
17085
17085
|
return;
|
|
17086
17086
|
}
|
|
17087
17087
|
E.value = s.queueKey;
|
|
@@ -17094,7 +17094,7 @@ const oq = { key: 0 }, rq = /* @__PURE__ */ H({
|
|
|
17094
17094
|
p.value.extSystemConfig
|
|
17095
17095
|
), pe = async (me, qe, Me = !1) => {
|
|
17096
17096
|
if (K.value = Bt, me && oe(O.value) || me && Me) {
|
|
17097
|
-
O.value = ke(me), Ut(O.value) && (yt(s.damWidth) && yt(s.damHeight) ? K.value = A(
|
|
17097
|
+
O.value = ke(me), Ut(O.value) && (yt(s.damWidth) && yt(s.damHeight) ? K.value = A(dt(O.value), s.damWidth, s.damHeight) : K.value = A(dt(O.value)), s.expandMetadata && ue.setDetail(dt(O.value)));
|
|
17098
17098
|
return;
|
|
17099
17099
|
}
|
|
17100
17100
|
if (qe) {
|
|
@@ -17103,17 +17103,17 @@ const oq = { key: 0 }, rq = /* @__PURE__ */ H({
|
|
|
17103
17103
|
} catch (rt) {
|
|
17104
17104
|
g(rt);
|
|
17105
17105
|
}
|
|
17106
|
-
Ut(O.value) && (yt(s.damWidth) && yt(s.damHeight) ? K.value = A(
|
|
17106
|
+
Ut(O.value) && (yt(s.damWidth) && yt(s.damHeight) ? K.value = A(dt(O.value), s.damWidth, s.damHeight) : K.value = A(dt(O.value)), s.expandMetadata && ue.setDetail(dt(O.value)));
|
|
17107
17107
|
return;
|
|
17108
17108
|
}
|
|
17109
17109
|
O.value = null;
|
|
17110
17110
|
}, Ee = (me) => {
|
|
17111
17111
|
if (K.value = Bt, me) {
|
|
17112
|
-
O.value = ke(me), Ba(O.value) && !oe(O.value.damMedia.imageFileId) && (yt(s.damWidth) && yt(s.damHeight) ? K.value =
|
|
17112
|
+
O.value = ke(me), Ba(O.value) && !oe(O.value.damMedia.imageFileId) && (yt(s.damWidth) && yt(s.damHeight) ? K.value = X(
|
|
17113
17113
|
O.value.damMedia.imageFileId,
|
|
17114
17114
|
s.damWidth,
|
|
17115
17115
|
s.damHeight
|
|
17116
|
-
) : K.value =
|
|
17116
|
+
) : K.value = X(O.value.damMedia.imageFileId), s.expandMetadata && ue.setDetail(dt(O.value)));
|
|
17117
17117
|
return;
|
|
17118
17118
|
}
|
|
17119
17119
|
O.value = null;
|
|
@@ -17641,12 +17641,12 @@ const oq = { key: 0 }, rq = /* @__PURE__ */ H({
|
|
|
17641
17641
|
n.value = "uploadNotAllowed";
|
|
17642
17642
|
return;
|
|
17643
17643
|
}
|
|
17644
|
-
const
|
|
17645
|
-
x.initialized.damPrvConfig ||
|
|
17644
|
+
const y = [];
|
|
17645
|
+
x.initialized.damPrvConfig || y.push(c()), y.push(q(s.selectLicences));
|
|
17646
17646
|
const w = V(p.value.extSystem);
|
|
17647
|
-
B(w) &&
|
|
17647
|
+
B(w) && y.push(f(p.value.extSystem));
|
|
17648
17648
|
try {
|
|
17649
|
-
await Promise.allSettled(
|
|
17649
|
+
await Promise.allSettled(y);
|
|
17650
17650
|
} catch {
|
|
17651
17651
|
n.value = "error";
|
|
17652
17652
|
}
|
|
@@ -17657,16 +17657,16 @@ const oq = { key: 0 }, rq = /* @__PURE__ */ H({
|
|
|
17657
17657
|
metadataConfirm: () => {
|
|
17658
17658
|
h.value?.metadataConfirm();
|
|
17659
17659
|
}
|
|
17660
|
-
}), (x,
|
|
17660
|
+
}), (x, y) => n.value === "ready" ? (v(), I(C7, Ft({
|
|
17661
17661
|
key: 0,
|
|
17662
17662
|
ref_key: "innerComponent",
|
|
17663
17663
|
ref: h,
|
|
17664
17664
|
media: i.value,
|
|
17665
|
-
"onUpdate:media":
|
|
17665
|
+
"onUpdate:media": y[0] || (y[0] = (w) => i.value = w),
|
|
17666
17666
|
image: r.value,
|
|
17667
|
-
"onUpdate:image":
|
|
17667
|
+
"onUpdate:image": y[1] || (y[1] = (w) => r.value = w)
|
|
17668
17668
|
}, s, {
|
|
17669
|
-
onAfterMetadataSaveSuccess:
|
|
17669
|
+
onAfterMetadataSaveSuccess: y[2] || (y[2] = (w) => o("afterMetadataSaveSuccess"))
|
|
17670
17670
|
}), {
|
|
17671
17671
|
append: m(({ imageMedia: w }) => [
|
|
17672
17672
|
de(x.$slots, "append", { imageMedia: w })
|
|
@@ -18066,13 +18066,13 @@ const oq = { key: 0 }, rq = /* @__PURE__ */ H({
|
|
|
18066
18066
|
}), { t: l } = Q(), c = [
|
|
18067
18067
|
Le.Processing,
|
|
18068
18068
|
Le.Loading
|
|
18069
|
-
], f = C(() => c.includes(t.item.status)), V = C(() => t.item.status === Le.Waiting), F = C(() => !t.disableDoneAnimation && t.item.status === Le.Uploaded), q = C(() => t.item.status === Le.Uploading), p = C(() => t.item.progress.progressPercent), h = C(() => t.item.imagePreview ? t.item.imagePreview.url : void 0), g = C(() => t.item.assetType), x = C(() => t.item ? t.item.assetStatus : So),
|
|
18069
|
+
], f = C(() => c.includes(t.item.status)), V = C(() => t.item.status === Le.Waiting), F = C(() => !t.disableDoneAnimation && t.item.status === Le.Uploaded), q = C(() => t.item.status === Le.Uploading), p = C(() => t.item.progress.progressPercent), h = C(() => t.item.imagePreview ? t.item.imagePreview.url : void 0), g = C(() => t.item.assetType), x = C(() => t.item ? t.item.assetStatus : So), y = () => {
|
|
18070
18070
|
s("cancelItem", { index: t.index, item: t.item, queueKey: t.queueKey });
|
|
18071
18071
|
}, w = [
|
|
18072
18072
|
Le.Loading,
|
|
18073
18073
|
Le.Waiting,
|
|
18074
18074
|
Le.Uploading
|
|
18075
|
-
], Y = C(() => w.includes(t.item.status)), A = S(!1),
|
|
18075
|
+
], Y = C(() => w.includes(t.item.status)), A = S(!1), X = S(void 0), T = async () => {
|
|
18076
18076
|
oe(t.item.assetId) || s("showDetail", t.item.assetId);
|
|
18077
18077
|
}, E = () => {
|
|
18078
18078
|
t.item.assetId && s("refreshItem", { index: t.index, assetId: t.item.assetId });
|
|
@@ -18080,13 +18080,13 @@ const oq = { key: 0 }, rq = /* @__PURE__ */ H({
|
|
|
18080
18080
|
return Xe(
|
|
18081
18081
|
() => t.item.status,
|
|
18082
18082
|
async (_) => {
|
|
18083
|
-
_ === Le.Uploading || _ === Le.Processing ? (clearTimeout(
|
|
18083
|
+
_ === Le.Uploading || _ === Le.Processing ? (clearTimeout(X.value), X.value = setTimeout(() => {
|
|
18084
18084
|
(_ === Le.Uploading || _ === Le.Processing) && (A.value = !0);
|
|
18085
|
-
}, eY * 1e3)) : _ === Le.Uploaded && (clearTimeout(
|
|
18085
|
+
}, eY * 1e3)) : _ === Le.Uploaded && (clearTimeout(X.value), X.value = void 0, A.value = !1);
|
|
18086
18086
|
},
|
|
18087
18087
|
{ immediate: !0 }
|
|
18088
18088
|
), Os(() => {
|
|
18089
|
-
clearTimeout(
|
|
18089
|
+
clearTimeout(X.value), X.value = void 0;
|
|
18090
18090
|
}), (_, k) => (v(), I(re, {
|
|
18091
18091
|
xxl: "2",
|
|
18092
18092
|
xl: "3",
|
|
@@ -18188,7 +18188,7 @@ const oq = { key: 0 }, rq = /* @__PURE__ */ H({
|
|
|
18188
18188
|
icon: "",
|
|
18189
18189
|
size: "small",
|
|
18190
18190
|
variant: "text",
|
|
18191
|
-
onClick: W(
|
|
18191
|
+
onClick: W(y, ["stop"])
|
|
18192
18192
|
}, {
|
|
18193
18193
|
default: m(() => [
|
|
18194
18194
|
u(se, { icon: "mdi-close-circle-outline" }),
|
|
@@ -18497,39 +18497,39 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
18497
18497
|
}, g = () => {
|
|
18498
18498
|
c(o.value, !0);
|
|
18499
18499
|
}, x = (Y = !1) => {
|
|
18500
|
-
for (const [A,
|
|
18500
|
+
for (const [A, X] of Object.entries(t.value.image))
|
|
18501
18501
|
l(
|
|
18502
18502
|
{
|
|
18503
18503
|
assetType: ae.Image,
|
|
18504
18504
|
elementProperty: A,
|
|
18505
|
-
value:
|
|
18505
|
+
value: X
|
|
18506
18506
|
},
|
|
18507
18507
|
Y
|
|
18508
18508
|
);
|
|
18509
|
-
for (const [A,
|
|
18509
|
+
for (const [A, X] of Object.entries(t.value.video))
|
|
18510
18510
|
l(
|
|
18511
18511
|
{
|
|
18512
18512
|
assetType: ae.Video,
|
|
18513
18513
|
elementProperty: A,
|
|
18514
|
-
value:
|
|
18514
|
+
value: X
|
|
18515
18515
|
},
|
|
18516
18516
|
Y
|
|
18517
18517
|
);
|
|
18518
|
-
for (const [A,
|
|
18518
|
+
for (const [A, X] of Object.entries(t.value.audio))
|
|
18519
18519
|
l(
|
|
18520
18520
|
{
|
|
18521
18521
|
assetType: ae.Audio,
|
|
18522
18522
|
elementProperty: A,
|
|
18523
|
-
value:
|
|
18523
|
+
value: X
|
|
18524
18524
|
},
|
|
18525
18525
|
Y
|
|
18526
18526
|
);
|
|
18527
|
-
for (const [A,
|
|
18527
|
+
for (const [A, X] of Object.entries(t.value.document))
|
|
18528
18528
|
l(
|
|
18529
18529
|
{
|
|
18530
18530
|
assetType: ae.Document,
|
|
18531
18531
|
elementProperty: A,
|
|
18532
|
-
value:
|
|
18532
|
+
value: X
|
|
18533
18533
|
},
|
|
18534
18534
|
Y
|
|
18535
18535
|
);
|
|
@@ -18538,7 +18538,7 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
18538
18538
|
return;
|
|
18539
18539
|
}
|
|
18540
18540
|
h(), q();
|
|
18541
|
-
},
|
|
18541
|
+
}, y = () => {
|
|
18542
18542
|
t.value = { image: {}, video: {}, audio: {}, document: {} }, o.value = [], s.value = [];
|
|
18543
18543
|
}, w = C(() => n.getQueueItemsTypes(a.queueKey));
|
|
18544
18544
|
return ft(() => {
|
|
@@ -18560,7 +18560,7 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
18560
18560
|
R("div", uY, b(d(i)("common.damImage.asset.massOperations.description")), 1),
|
|
18561
18561
|
u(Br, {
|
|
18562
18562
|
modelValue: r.value,
|
|
18563
|
-
"onUpdate:modelValue": A[3] || (A[3] = (
|
|
18563
|
+
"onUpdate:modelValue": A[3] || (A[3] = (X) => r.value = X),
|
|
18564
18564
|
multiple: "",
|
|
18565
18565
|
class: "v-expansion-panels--compact"
|
|
18566
18566
|
}, {
|
|
@@ -18589,7 +18589,7 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
18589
18589
|
R("div", mY, [
|
|
18590
18590
|
u(_o, {
|
|
18591
18591
|
modelValue: s.value,
|
|
18592
|
-
"onUpdate:modelValue": A[0] || (A[0] = (
|
|
18592
|
+
"onUpdate:modelValue": A[0] || (A[0] = (X) => s.value = X),
|
|
18593
18593
|
label: d(i)("common.damImage.asset.model.keywords"),
|
|
18594
18594
|
clearable: "",
|
|
18595
18595
|
"ext-system": e.extSystem,
|
|
@@ -18664,7 +18664,7 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
18664
18664
|
R("div", VY, [
|
|
18665
18665
|
u(Oa, {
|
|
18666
18666
|
modelValue: o.value,
|
|
18667
|
-
"onUpdate:modelValue": A[1] || (A[1] = (
|
|
18667
|
+
"onUpdate:modelValue": A[1] || (A[1] = (X) => o.value = X),
|
|
18668
18668
|
label: d(i)("common.damImage.asset.model.authors"),
|
|
18669
18669
|
"ext-system": e.extSystem,
|
|
18670
18670
|
clearable: "",
|
|
@@ -18740,7 +18740,7 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
18740
18740
|
default: m(() => [
|
|
18741
18741
|
u(oY, {
|
|
18742
18742
|
modelValue: t.value.image,
|
|
18743
|
-
"onUpdate:modelValue": A[2] || (A[2] = (
|
|
18743
|
+
"onUpdate:modelValue": A[2] || (A[2] = (X) => t.value.image = X),
|
|
18744
18744
|
"asset-type": d(ae).Image,
|
|
18745
18745
|
"ext-system": e.extSystem,
|
|
18746
18746
|
onFillEmptyField: V,
|
|
@@ -18761,7 +18761,7 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
18761
18761
|
class: "mr-2",
|
|
18762
18762
|
variant: "text",
|
|
18763
18763
|
size: "small",
|
|
18764
|
-
onClick: A[4] || (A[4] = W((
|
|
18764
|
+
onClick: A[4] || (A[4] = W((X) => x(!1), ["stop"]))
|
|
18765
18765
|
}, {
|
|
18766
18766
|
default: m(() => [
|
|
18767
18767
|
M(b(d(i)("common.damImage.asset.massOperations.fillAllEmpty")), 1)
|
|
@@ -18772,7 +18772,7 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
18772
18772
|
class: "mr-2",
|
|
18773
18773
|
variant: "text",
|
|
18774
18774
|
size: "small",
|
|
18775
|
-
onClick: A[5] || (A[5] = W((
|
|
18775
|
+
onClick: A[5] || (A[5] = W((X) => x(!0), ["stop"]))
|
|
18776
18776
|
}, {
|
|
18777
18777
|
default: m(() => [
|
|
18778
18778
|
M(b(d(i)("common.damImage.asset.massOperations.replaceAll")), 1)
|
|
@@ -18782,7 +18782,7 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
18782
18782
|
u(ee, {
|
|
18783
18783
|
variant: "text",
|
|
18784
18784
|
size: "small",
|
|
18785
|
-
onClick: W(
|
|
18785
|
+
onClick: W(y, ["stop"])
|
|
18786
18786
|
}, {
|
|
18787
18787
|
default: m(() => [
|
|
18788
18788
|
M(b(d(i)("common.damImage.asset.massOperations.clearForm")), 1)
|
|
@@ -18821,7 +18821,7 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
18821
18821
|
}
|
|
18822
18822
|
}, { addToCachedKeywords: F, fetchCachedKeywords: q } = ki(), { addToCachedAuthors: p, fetchCachedAuthors: h } = Hs(), g = S(null), x = (w) => {
|
|
18823
18823
|
if (!g.value) return;
|
|
18824
|
-
const Y = g.value, A = 100,
|
|
18824
|
+
const Y = g.value, A = 100, X = Y.clientHeight - 50;
|
|
18825
18825
|
switch (w.key) {
|
|
18826
18826
|
case "ArrowDown":
|
|
18827
18827
|
Y.scrollTop += A, w.preventDefault();
|
|
@@ -18830,10 +18830,10 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
18830
18830
|
Y.scrollTop -= A, w.preventDefault();
|
|
18831
18831
|
break;
|
|
18832
18832
|
case "PageDown":
|
|
18833
|
-
Y.scrollTop +=
|
|
18833
|
+
Y.scrollTop += X, w.preventDefault();
|
|
18834
18834
|
break;
|
|
18835
18835
|
case "PageUp":
|
|
18836
|
-
Y.scrollTop -=
|
|
18836
|
+
Y.scrollTop -= X, w.preventDefault();
|
|
18837
18837
|
break;
|
|
18838
18838
|
case "Home":
|
|
18839
18839
|
Y.scrollTop = 0, w.preventDefault();
|
|
@@ -18843,13 +18843,13 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
18843
18843
|
break;
|
|
18844
18844
|
}
|
|
18845
18845
|
};
|
|
18846
|
-
let
|
|
18846
|
+
let y;
|
|
18847
18847
|
return ft(() => {
|
|
18848
18848
|
n.value.forEach((w) => {
|
|
18849
18849
|
F(w.keywords), p(w.authors);
|
|
18850
|
-
}), q(), h(),
|
|
18850
|
+
}), q(), h(), y = mc(document, "keydown", x);
|
|
18851
18851
|
}), Xo(() => {
|
|
18852
|
-
|
|
18852
|
+
y && y();
|
|
18853
18853
|
}), (w, Y) => (v(), D("div", {
|
|
18854
18854
|
class: ye(["asset-queue-editable", { "asset-queue-editable--sidebar-active": e.massOperations }])
|
|
18855
18855
|
}, [
|
|
@@ -18862,7 +18862,7 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
18862
18862
|
}, [
|
|
18863
18863
|
u(fe, { class: "dam-upload-queue dam-upload-queue--editable pa-2 mb-5" }, {
|
|
18864
18864
|
default: m(() => [
|
|
18865
|
-
(v(!0), D(ge, null, et(n.value, (A,
|
|
18865
|
+
(v(!0), D(ge, null, et(n.value, (A, X) => (v(), I(tY, {
|
|
18866
18866
|
key: A.key,
|
|
18867
18867
|
"custom-data": A.customData,
|
|
18868
18868
|
"onUpdate:customData": (T) => A.customData = T,
|
|
@@ -18874,7 +18874,7 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
18874
18874
|
"onUpdate:mainFileSingleUse": (T) => A.mainFileSingleUse = T,
|
|
18875
18875
|
"ext-system": e.extSystem,
|
|
18876
18876
|
item: A,
|
|
18877
|
-
index:
|
|
18877
|
+
index: X,
|
|
18878
18878
|
"queue-key": e.queueKey,
|
|
18879
18879
|
"disable-done-animation": e.disableDoneAnimation,
|
|
18880
18880
|
"refresh-disabled": i.value,
|
|
@@ -18917,21 +18917,21 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
18917
18917
|
},
|
|
18918
18918
|
emits: ["onDrop", "onFilesInput", "onApply"],
|
|
18919
18919
|
setup(e, { emit: a }) {
|
|
18920
|
-
const t = e, s = a, { uploadQueueDialog: o, uploadQueueSidebar: i, toggleUploadQueueSidebar: r } = _i(), n = $i(), { maxPosition: l } = ot(n), c = zt(), f = C(() => c.getQueueTotalCount(t.queueKey)), V = C(() => c.getQueueItems(t.queueKey)), F = C(() => c.getQueueProcessedCount(t.queueKey)), q = C(() => f.value > F.value), p = C(() => f.value === F.value), { t: h } = Q(), { toolbarColor: g } = xi(), x = la({ $stopPropagation: !0 }), { showRecordWas:
|
|
18920
|
+
const t = e, s = a, { uploadQueueDialog: o, uploadQueueSidebar: i, toggleUploadQueueSidebar: r } = _i(), n = $i(), { maxPosition: l } = ot(n), c = zt(), f = C(() => c.getQueueTotalCount(t.queueKey)), V = C(() => c.getQueueItems(t.queueKey)), F = C(() => c.getQueueProcessedCount(t.queueKey)), q = C(() => f.value > F.value), p = C(() => f.value === F.value), { t: h } = Q(), { toolbarColor: g } = xi(), x = la({ $stopPropagation: !0 }), { showRecordWas: y, showValidationError: w, showErrorsDefault: Y } = We(), { damClient: A } = Ze(), X = S(!1), T = S(!1), E = async () => {
|
|
18921
18921
|
c.stopUpload(t.queueKey), o.value = null;
|
|
18922
18922
|
}, N = async () => {
|
|
18923
|
-
const J =
|
|
18923
|
+
const J = dt(V.value);
|
|
18924
18924
|
if (J.length !== 0) {
|
|
18925
|
-
if (
|
|
18926
|
-
w(),
|
|
18925
|
+
if (X.value = !0, x.value.$touch(), x.value.$invalid) {
|
|
18926
|
+
w(), X.value = !1;
|
|
18927
18927
|
return;
|
|
18928
18928
|
}
|
|
18929
18929
|
try {
|
|
18930
|
-
await ho(A, J),
|
|
18930
|
+
await ho(A, J), y("updated");
|
|
18931
18931
|
} catch (K) {
|
|
18932
18932
|
console.error(K), Y(K);
|
|
18933
18933
|
} finally {
|
|
18934
|
-
|
|
18934
|
+
X.value = !1;
|
|
18935
18935
|
}
|
|
18936
18936
|
}
|
|
18937
18937
|
}, O = async (J, K) => {
|
|
@@ -18981,7 +18981,7 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
18981
18981
|
};
|
|
18982
18982
|
});
|
|
18983
18983
|
}, z = async () => {
|
|
18984
|
-
const J =
|
|
18984
|
+
const J = dt(V.value);
|
|
18985
18985
|
if (J.length !== 0) {
|
|
18986
18986
|
if (T.value = !0, x.value.$touch(), x.value.$invalid) {
|
|
18987
18987
|
w(), T.value = !1;
|
|
@@ -19054,7 +19054,7 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
19054
19054
|
class: "mr-2",
|
|
19055
19055
|
rounded: "pill",
|
|
19056
19056
|
loading: T.value,
|
|
19057
|
-
disabled:
|
|
19057
|
+
disabled: X.value,
|
|
19058
19058
|
onClick: W(z, ["stop"])
|
|
19059
19059
|
}, {
|
|
19060
19060
|
default: m(() => [
|
|
@@ -19068,7 +19068,7 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
19068
19068
|
width: 36,
|
|
19069
19069
|
class: "mr-2",
|
|
19070
19070
|
icon: "",
|
|
19071
|
-
loading:
|
|
19071
|
+
loading: X.value,
|
|
19072
19072
|
disabled: T.value,
|
|
19073
19073
|
onClick: W(N, ["stop"])
|
|
19074
19074
|
}, {
|
|
@@ -19187,7 +19187,7 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
19187
19187
|
},
|
|
19188
19188
|
emits: ["afterAdd"],
|
|
19189
19189
|
setup(e, { expose: a, emit: t }) {
|
|
19190
|
-
const s = e, o = t, i = S(!1), r = S(!1), n = S([]), { t: l } = Q(), c =
|
|
19190
|
+
const s = e, o = t, i = S(!1), r = S(!1), n = S([]), { t: l } = Q(), c = nt(
|
|
19191
19191
|
ys,
|
|
19192
19192
|
void 0
|
|
19193
19193
|
);
|
|
@@ -19217,11 +19217,11 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
19217
19217
|
}
|
|
19218
19218
|
p();
|
|
19219
19219
|
}
|
|
19220
|
-
}), (x,
|
|
19220
|
+
}), (x, y) => {
|
|
19221
19221
|
const w = _e("ABtnTertiary"), Y = _e("ABtnPrimary");
|
|
19222
19222
|
return v(), I(ht, {
|
|
19223
19223
|
modelValue: i.value,
|
|
19224
|
-
"onUpdate:modelValue":
|
|
19224
|
+
"onUpdate:modelValue": y[0] || (y[0] = (A) => i.value = A),
|
|
19225
19225
|
width: 500
|
|
19226
19226
|
}, {
|
|
19227
19227
|
default: m(() => [
|
|
@@ -19242,8 +19242,8 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
19242
19242
|
M(b(d(l)("common.damImage.upload.limits.addingOverLimit", { count: n.value.length })) + " ", 1),
|
|
19243
19243
|
V.value > 0 ? (v(), D("span", wY, b(d(l)("common.damImage.upload.limits.countAlreadyInProgress", { count: V.value })), 1)) : P("", !0),
|
|
19244
19244
|
M(" " + b(d(l)("common.damImage.upload.limits.onlyAllowedAtOnce", { count: ss })), 1),
|
|
19245
|
-
|
|
19246
|
-
|
|
19245
|
+
y[1] || (y[1] = R("br", null, null, -1)),
|
|
19246
|
+
y[2] || (y[2] = R("br", null, null, -1)),
|
|
19247
19247
|
M(" " + b(d(l)("common.damImage.upload.limits.cancelOrUploadFirst", { count: ss - V.value })), 1)
|
|
19248
19248
|
]))
|
|
19249
19249
|
]),
|
|
@@ -19348,7 +19348,7 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
19348
19348
|
},
|
|
19349
19349
|
emits: ["update:modelValue"],
|
|
19350
19350
|
setup(e, { expose: a, emit: t }) {
|
|
19351
|
-
const s = e, o = t, i = S(!1), r =
|
|
19351
|
+
const s = e, o = t, i = S(!1), r = nt(
|
|
19352
19352
|
ys,
|
|
19353
19353
|
void 0
|
|
19354
19354
|
);
|
|
@@ -19357,7 +19357,7 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
19357
19357
|
const n = Xs(s.configName), { imageClient: l } = n, { showErrorsDefault: c, showValidationError: f, showErrorT: V } = We(), F = S(null), { uploadSizes: q, uploadAccept: p } = sn(
|
|
19358
19358
|
ae.Image,
|
|
19359
19359
|
r.value.extSystemConfig
|
|
19360
|
-
), { t: h } = Q(), g = S(!1), x = $i(), { images:
|
|
19360
|
+
), { t: h } = Q(), g = S(!1), x = $i(), { images: y, maxPosition: w } = ot(x), Y = async () => {
|
|
19361
19361
|
try {
|
|
19362
19362
|
g.value = !0;
|
|
19363
19363
|
const ue = (await Hd(l, s.modelValue)).sort(
|
|
@@ -19381,13 +19381,13 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
19381
19381
|
assetId: Fe ? Fe.id : void 0
|
|
19382
19382
|
};
|
|
19383
19383
|
})
|
|
19384
|
-
), o("update:modelValue",
|
|
19384
|
+
), o("update:modelValue", y.value.map((Ye) => Ye.id).filter((Ye) => Ye !== void 0));
|
|
19385
19385
|
} catch (ue) {
|
|
19386
19386
|
c(ue);
|
|
19387
19387
|
} finally {
|
|
19388
19388
|
g.value = !1;
|
|
19389
19389
|
}
|
|
19390
|
-
}, A = zt(),
|
|
19390
|
+
}, A = zt(), X = C(() => A.getQueue(s.queueKey)), { cachedExtSystemId: T } = da(), { uploadQueueDialog: E } = _i(), N = (ue) => {
|
|
19391
19391
|
const ce = r.value;
|
|
19392
19392
|
B(ce) || (T.value = ce.extSystem, he.value?.check(ue), E.value = s.queueKey);
|
|
19393
19393
|
}, O = (ue) => {
|
|
@@ -19490,14 +19490,14 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
19490
19490
|
if (Ve.value.$touch(), Ve.value.$invalid)
|
|
19491
19491
|
return f(), !1;
|
|
19492
19492
|
try {
|
|
19493
|
-
const ue = [], ce =
|
|
19493
|
+
const ue = [], ce = dt(y.value);
|
|
19494
19494
|
for (const Se of ce)
|
|
19495
|
-
if (Se.showDamAuthors && Se.assetId && ue.push({ id: Se.assetId, authors: Se.damAuthors }), Se.damAuthors.length > 0) {
|
|
19495
|
+
if (Se.showDamAuthors && Se.assetId && ue.push({ id: Se.assetId, authors: Se.damAuthors }), Se.damAuthors.length > 0 && Se.showDamAuthors) {
|
|
19496
19496
|
const st = await ea(K, T.value, Se.damAuthors);
|
|
19497
19497
|
Se.texts.source = st.map((At) => At.name).join(", ");
|
|
19498
19498
|
}
|
|
19499
19499
|
ue.length && await Nf(K, ue);
|
|
19500
|
-
const we = await Pp(l,
|
|
19500
|
+
const we = await Pp(l, ce), Ye = [], Fe = we.map((Se) => (Ye.push(Se.id), {
|
|
19501
19501
|
key: Is(),
|
|
19502
19502
|
...Se,
|
|
19503
19503
|
damAuthors: [],
|
|
@@ -19519,7 +19519,7 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
19519
19519
|
return !1;
|
|
19520
19520
|
}
|
|
19521
19521
|
}, ne = async (ue) => {
|
|
19522
|
-
const ce =
|
|
19522
|
+
const ce = y.value[ue];
|
|
19523
19523
|
if (ce) {
|
|
19524
19524
|
if (B(ce.id)) {
|
|
19525
19525
|
x.removeImageByIndex(ue);
|
|
@@ -19541,13 +19541,13 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
19541
19541
|
});
|
|
19542
19542
|
}, Ee = () => {
|
|
19543
19543
|
let ue = 0;
|
|
19544
|
-
|
|
19544
|
+
y.value.forEach((ce) => {
|
|
19545
19545
|
ue++, ce.position = ue;
|
|
19546
19546
|
}), x.maxPosition = ue;
|
|
19547
19547
|
}, De = (ue, ce) => {
|
|
19548
|
-
if (ce >= 0 && ce <
|
|
19549
|
-
const we =
|
|
19550
|
-
|
|
19548
|
+
if (ce >= 0 && ce < y.value.length) {
|
|
19549
|
+
const we = y.value.splice(ue, 1)[0];
|
|
19550
|
+
y.value.splice(ce, 0, we), Ee(), pe();
|
|
19551
19551
|
}
|
|
19552
19552
|
}, tt = () => {
|
|
19553
19553
|
if (s.disableDraggable || !Te.value) return;
|
|
@@ -19572,7 +19572,7 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
19572
19572
|
e.label ? (v(), D("h4", MY, b(e.label), 1)) : P("", !0),
|
|
19573
19573
|
R("div", EY, [
|
|
19574
19574
|
u(hn, {
|
|
19575
|
-
"file-input-key":
|
|
19575
|
+
"file-input-key": X.value?.fileInputKey,
|
|
19576
19576
|
accept: d(p),
|
|
19577
19577
|
"max-sizes": d(q),
|
|
19578
19578
|
multiple: "",
|
|
@@ -19623,7 +19623,7 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
19623
19623
|
key: te.value,
|
|
19624
19624
|
class: ye([d(Cn), "asset-list-tiles asset-list-tiles--thumbnail"])
|
|
19625
19625
|
}, [
|
|
19626
|
-
(v(!0), D(ge, null, et(d(
|
|
19626
|
+
(v(!0), D(ge, null, et(d(y), (we, Ye) => (v(), I(R7, {
|
|
19627
19627
|
key: we.key,
|
|
19628
19628
|
index: Ye,
|
|
19629
19629
|
"disable-draggable": e.disableDraggable,
|
|
@@ -19633,7 +19633,7 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
19633
19633
|
], 2)),
|
|
19634
19634
|
u(Di, {
|
|
19635
19635
|
variant: "fill",
|
|
19636
|
-
"hover-only": e.modelValue.length > 0 || d(
|
|
19636
|
+
"hover-only": e.modelValue.length > 0 || d(y).length > 0,
|
|
19637
19637
|
accept: d(p),
|
|
19638
19638
|
"max-sizes": d(q),
|
|
19639
19639
|
onOnDrop: O,
|
|
@@ -19645,7 +19645,7 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
19645
19645
|
"queue-key": e.queueKey,
|
|
19646
19646
|
"ext-system": d(r).extSystem,
|
|
19647
19647
|
"licence-id": d(r).licence,
|
|
19648
|
-
"file-input-key":
|
|
19648
|
+
"file-input-key": X.value?.fileInputKey ?? -1,
|
|
19649
19649
|
accept: d(p),
|
|
19650
19650
|
"max-sizes": d(q),
|
|
19651
19651
|
multiple: "",
|
|
@@ -19707,8 +19707,8 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
19707
19707
|
q.value = F.value.extSystem;
|
|
19708
19708
|
const x = [];
|
|
19709
19709
|
g.initialized.damPrvConfig || x.push(n()), x.push(V(s.selectLicences));
|
|
19710
|
-
const
|
|
19711
|
-
B(
|
|
19710
|
+
const y = c(F.value.extSystem);
|
|
19711
|
+
B(y) && x.push(l(F.value.extSystem));
|
|
19712
19712
|
try {
|
|
19713
19713
|
await Promise.allSettled(x);
|
|
19714
19714
|
} catch {
|
|
@@ -19724,7 +19724,7 @@ const nY = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, lY = { clas
|
|
|
19724
19724
|
ref_key: "innerComponent",
|
|
19725
19725
|
ref: p
|
|
19726
19726
|
}, s, {
|
|
19727
|
-
"onUpdate:modelValue": x[0] || (x[0] = (
|
|
19727
|
+
"onUpdate:modelValue": x[0] || (x[0] = (y) => o("update:modelValue", y))
|
|
19728
19728
|
}), null, 16)) : i.value === "error" ? (v(), D("div", PY, " Loading DAM config error ")) : i.value === "uploadNotAllowed" ? (v(), D("div", RY, " DAM access rights error ")) : (v(), I(Ne, {
|
|
19729
19729
|
key: 3,
|
|
19730
19730
|
size: 12,
|
|
@@ -20091,7 +20091,7 @@ const NY = { class: "w-100" }, jY = { class: "d-flex" }, HY = { class: "d-flex"
|
|
|
20091
20091
|
const t = e, s = Je(e, "modelValue"), o = S(""), i = S({ description: "", source: "" }), r = S(""), n = S(null), l = S(!0), c = S(!1), f = Xs(t.configName), { imageClient: V } = f, { damClient: F } = Ze(), { widgetImageToDamImageOriginalUrl: q } = Ti(f), { showErrorsDefault: p, showValidationError: h } = We(), { t: g } = Q(), x = (_) => {
|
|
20092
20092
|
const k = /\/image\/original\/([0-9a-fA-F-]+)\.jpg/, $ = _.match(k);
|
|
20093
20093
|
return $ ? $[1] : void 0;
|
|
20094
|
-
},
|
|
20094
|
+
}, y = (_, k) => k.some(($) => $ === _.licence), { required: w, maxLength: Y } = ps(), A = {
|
|
20095
20095
|
meta: {
|
|
20096
20096
|
description: {
|
|
20097
20097
|
maxLength: Y(255)
|
|
@@ -20101,7 +20101,7 @@ const NY = { class: "w-100" }, jY = { class: "d-flex" }, HY = { class: "d-flex"
|
|
|
20101
20101
|
maxLength: Y(255)
|
|
20102
20102
|
}
|
|
20103
20103
|
}
|
|
20104
|
-
},
|
|
20104
|
+
}, X = la(A, { meta: i }, { $stopPropagation: !0 }), T = async () => {
|
|
20105
20105
|
if (c.value = !0, l.value = !0, o.value = o.value.trim(), o.value.startsWith("http")) {
|
|
20106
20106
|
const _ = x(o.value);
|
|
20107
20107
|
Pt(_) && (o.value = _);
|
|
@@ -20110,14 +20110,14 @@ const NY = { class: "w-100" }, jY = { class: "d-flex" }, HY = { class: "d-flex"
|
|
|
20110
20110
|
return l.value = !1, Promise.reject("Incorrect URL/ID provided");
|
|
20111
20111
|
try {
|
|
20112
20112
|
const _ = await Ci(F, o.value);
|
|
20113
|
-
return oe(_.mainFile) ? (l.value = !1, Promise.reject("Incorrect asset mainFile")) :
|
|
20113
|
+
return oe(_.mainFile) ? (l.value = !1, Promise.reject("Incorrect asset mainFile")) : y(_, t.selectLicences) ? (l.value = !0, Promise.resolve(_)) : (l.value = !1, Promise.reject("Incorrect asset or no access"));
|
|
20114
20114
|
} catch {
|
|
20115
20115
|
return l.value = !1, Promise.reject("Incorrect asset or no access");
|
|
20116
20116
|
}
|
|
20117
20117
|
}, E = async () => {
|
|
20118
20118
|
try {
|
|
20119
20119
|
const _ = await T();
|
|
20120
|
-
if (
|
|
20120
|
+
if (X.value.$touch(), X.value.$invalid)
|
|
20121
20121
|
return h(), Promise.reject("Invalid source or description");
|
|
20122
20122
|
const k = {
|
|
20123
20123
|
texts: {
|
|
@@ -20162,7 +20162,7 @@ const NY = { class: "w-100" }, jY = { class: "d-flex" }, HY = { class: "d-flex"
|
|
|
20162
20162
|
}
|
|
20163
20163
|
}, z = async (_, k, $ = !1) => {
|
|
20164
20164
|
if (r.value = "", _ && oe(n.value) || _ && $) {
|
|
20165
|
-
n.value = ke(_), n.value && (o.value = n.value.dam.damId, r.value = q(
|
|
20165
|
+
n.value = ke(_), n.value && (o.value = n.value.dam.damId, r.value = q(dt(n.value)), i.value.description = n.value.texts.description, i.value.source = n.value.texts.source, O());
|
|
20166
20166
|
return;
|
|
20167
20167
|
}
|
|
20168
20168
|
if (k) {
|
|
@@ -20171,7 +20171,7 @@ const NY = { class: "w-100" }, jY = { class: "d-flex" }, HY = { class: "d-flex"
|
|
|
20171
20171
|
} catch (L) {
|
|
20172
20172
|
p(L);
|
|
20173
20173
|
}
|
|
20174
|
-
oe(n.value) || (o.value = n.value.dam.damId, r.value = q(
|
|
20174
|
+
oe(n.value) || (o.value = n.value.dam.damId, r.value = q(dt(n.value)), i.value.description = n.value.texts.description, i.value.source = n.value.texts.source, O());
|
|
20175
20175
|
return;
|
|
20176
20176
|
}
|
|
20177
20177
|
n.value = null, i.value.description = "", i.value.source = "";
|
|
@@ -20206,7 +20206,7 @@ const NY = { class: "w-100" }, jY = { class: "d-flex" }, HY = { class: "d-flex"
|
|
|
20206
20206
|
modelValue: i.value.description,
|
|
20207
20207
|
"onUpdate:modelValue": k[1] || (k[1] = ($) => i.value.description = $),
|
|
20208
20208
|
label: d(g)("common.damImage.image.model.texts.description"),
|
|
20209
|
-
v: d(
|
|
20209
|
+
v: d(X).meta.description,
|
|
20210
20210
|
disabled: U.value
|
|
20211
20211
|
}, null, 8, ["modelValue", "label", "v", "disabled"])
|
|
20212
20212
|
]),
|
|
@@ -20218,7 +20218,7 @@ const NY = { class: "w-100" }, jY = { class: "d-flex" }, HY = { class: "d-flex"
|
|
|
20218
20218
|
modelValue: i.value.source,
|
|
20219
20219
|
"onUpdate:modelValue": k[2] || (k[2] = ($) => i.value.source = $),
|
|
20220
20220
|
label: d(g)("common.damImage.image.model.texts.source"),
|
|
20221
|
-
v: d(
|
|
20221
|
+
v: d(X).meta.source,
|
|
20222
20222
|
disabled: U.value
|
|
20223
20223
|
}, null, 8, ["modelValue", "label", "v", "disabled"])
|
|
20224
20224
|
]),
|
|
@@ -20315,10 +20315,10 @@ function pK(e, a, t, s, o, i) {
|
|
|
20315
20315
|
a,
|
|
20316
20316
|
t,
|
|
20317
20317
|
s
|
|
20318
|
-
),
|
|
20319
|
-
A(),
|
|
20318
|
+
), y = () => {
|
|
20319
|
+
A(), X();
|
|
20320
20320
|
}, w = (E) => {
|
|
20321
|
-
h(E.sortBy),
|
|
20321
|
+
h(E.sortBy), X();
|
|
20322
20322
|
}, Y = async () => {
|
|
20323
20323
|
c.value = !0, p.page++;
|
|
20324
20324
|
try {
|
|
@@ -20330,7 +20330,7 @@ function pK(e, a, t, s, o, i) {
|
|
|
20330
20330
|
}
|
|
20331
20331
|
}, A = () => {
|
|
20332
20332
|
n.value = [], l.value = [];
|
|
20333
|
-
},
|
|
20333
|
+
}, X = async () => {
|
|
20334
20334
|
c.value = !0;
|
|
20335
20335
|
try {
|
|
20336
20336
|
n.value = await o(p, i);
|
|
@@ -20361,11 +20361,11 @@ function pK(e, a, t, s, o, i) {
|
|
|
20361
20361
|
U && U.click();
|
|
20362
20362
|
},
|
|
20363
20363
|
onFetchNextPage: Y,
|
|
20364
|
-
onOpen:
|
|
20364
|
+
onOpen: y,
|
|
20365
20365
|
sortByChange: w,
|
|
20366
|
-
getList:
|
|
20367
|
-
resetFilter: () => f(i, p,
|
|
20368
|
-
submitFilter: () => V(i, p,
|
|
20366
|
+
getList: X,
|
|
20367
|
+
resetFilter: () => f(i, p, X),
|
|
20368
|
+
submitFilter: () => V(i, p, X)
|
|
20369
20369
|
};
|
|
20370
20370
|
}
|
|
20371
20371
|
const hK = (e, a) => ({
|
|
@@ -20478,14 +20478,14 @@ const gl = (e, a = void 0) => {
|
|
|
20478
20478
|
if (F.hasNextPage = h.data.hasNextPage, F.hasNextPage)
|
|
20479
20479
|
for (; F.hasNextPage; ) {
|
|
20480
20480
|
F.page++;
|
|
20481
|
-
const
|
|
20482
|
-
p.push(...
|
|
20481
|
+
const y = (await e().get(q + gl(F, i), f)).data;
|
|
20482
|
+
p.push(...y.data), F.hasNextPage = y.hasNextPage;
|
|
20483
20483
|
}
|
|
20484
20484
|
} else if (El(g)) {
|
|
20485
20485
|
if (F.totalCount = g.totalCount, F.totalCount <= F.rowsPerPage)
|
|
20486
20486
|
return Promise.resolve(p);
|
|
20487
|
-
const x = [],
|
|
20488
|
-
for (let Y = 0; Y <
|
|
20487
|
+
const x = [], y = Math.ceil(F.totalCount / F.rowsPerPage);
|
|
20488
|
+
for (let Y = 0; Y < y; Y++)
|
|
20489
20489
|
x.push(
|
|
20490
20490
|
e().get(
|
|
20491
20491
|
q + sX(
|
|
@@ -21447,7 +21447,7 @@ function UK() {
|
|
|
21447
21447
|
let l = !1;
|
|
21448
21448
|
return {
|
|
21449
21449
|
initCollab: () => {
|
|
21450
|
-
const f = Ll(), V = Al(), F = Kl(), q = bl(), p = xl(), h = Cl(), g = Il(), x = kl(),
|
|
21450
|
+
const f = Ll(), V = Al(), F = Kl(), q = bl(), p = xl(), h = Cl(), g = Il(), x = kl(), y = wl(), w = Sl();
|
|
21451
21451
|
if (!(o.value || !e.value.enabled))
|
|
21452
21452
|
try {
|
|
21453
21453
|
o.value = Xc(e.value.socketUrl, {
|
|
@@ -21462,9 +21462,9 @@ function UK() {
|
|
|
21462
21462
|
}
|
|
21463
21463
|
}), o.value.on("collabRoomLocksChanged", (Y, A) => {
|
|
21464
21464
|
if (!oe(A)) {
|
|
21465
|
-
const
|
|
21466
|
-
(!r.has(Y) || Object.keys(A).length === 0) && r.set(Y, new Map(
|
|
21467
|
-
for (const [T, E] of
|
|
21465
|
+
const X = Object.entries(A);
|
|
21466
|
+
(!r.has(Y) || Object.keys(A).length === 0) && r.set(Y, new Map(X));
|
|
21467
|
+
for (const [T, E] of X) {
|
|
21468
21468
|
if (!E) {
|
|
21469
21469
|
r.get(Y)?.delete(T);
|
|
21470
21470
|
continue;
|
|
@@ -21473,21 +21473,21 @@ function UK() {
|
|
|
21473
21473
|
}
|
|
21474
21474
|
}
|
|
21475
21475
|
}), o.value.on("collabRoomDataChanged", (Y, A) => {
|
|
21476
|
-
const
|
|
21477
|
-
for (const [T, E] of
|
|
21476
|
+
const X = Object.entries(A);
|
|
21477
|
+
for (const [T, E] of X)
|
|
21478
21478
|
f.emit({ room: Y, field: T }, E);
|
|
21479
|
-
}), o.value?.on("requestToJoin", (Y, A,
|
|
21480
|
-
q.emit({ room: Y, userId: A, timestamp:
|
|
21479
|
+
}), o.value?.on("requestToJoin", (Y, A, X) => {
|
|
21480
|
+
q.emit({ room: Y, userId: A, timestamp: X });
|
|
21481
21481
|
}), o.value?.on("approvedRequestToJoin", (Y) => {
|
|
21482
21482
|
p.emit({ room: Y });
|
|
21483
21483
|
}), o.value?.on("rejectedRequestToJoin", (Y) => {
|
|
21484
21484
|
h.emit({ room: Y });
|
|
21485
|
-
}), o.value?.on("requestToTakeModeration", (Y, A,
|
|
21486
|
-
g.emit({ room: Y, userId: A, timestamp:
|
|
21485
|
+
}), o.value?.on("requestToTakeModeration", (Y, A, X) => {
|
|
21486
|
+
g.emit({ room: Y, userId: A, timestamp: X });
|
|
21487
21487
|
}), o.value?.on("approvedRequestToTakeModeration", (Y) => {
|
|
21488
21488
|
x.emit({ room: Y });
|
|
21489
21489
|
}), o.value?.on("rejectedRequestToTakeModeration", (Y) => {
|
|
21490
|
-
|
|
21490
|
+
y.emit({ room: Y });
|
|
21491
21491
|
}), o.value?.on("transferredModeration", () => {
|
|
21492
21492
|
t("common.collab.alert.transferredModeration");
|
|
21493
21493
|
}), o.value?.on("kickedFromRoom", (Y) => {
|
|
@@ -21523,24 +21523,24 @@ function OK() {
|
|
|
21523
21523
|
};
|
|
21524
21524
|
}
|
|
21525
21525
|
function NK(e, a = !1) {
|
|
21526
|
-
const { collabOptions: t } = Aa(), { collabSocket: s, collabFieldLocksState: o, collabFieldDataBufferState: i, collabRoomInfoState: r } = Sr(), n = Ll(), l = ic(), c = S(), f = S(), V = (x,
|
|
21527
|
-
x.room !== e || B(
|
|
21526
|
+
const { collabOptions: t } = Aa(), { collabSocket: s, collabFieldLocksState: o, collabFieldDataBufferState: i, collabRoomInfoState: r } = Sr(), n = Ll(), l = ic(), c = S(), f = S(), V = (x, y) => {
|
|
21527
|
+
x.room !== e || B(y) || B(c.value) || c.value(x.field, y);
|
|
21528
21528
|
}, F = (x) => {
|
|
21529
21529
|
c.value = x, f.value = n.on(V);
|
|
21530
|
-
}, q = (x,
|
|
21530
|
+
}, q = (x, y, w = void 0) => {
|
|
21531
21531
|
if (!t.value.enabled || B(s.value)) return;
|
|
21532
21532
|
const Y = r.get(e);
|
|
21533
|
-
Y && Y.status === qt.Inactive || s.value.emit("changeFieldData", e, x,
|
|
21533
|
+
Y && Y.status === qt.Inactive || s.value.emit("changeFieldData", e, x, y, () => {
|
|
21534
21534
|
B(w) || w();
|
|
21535
21535
|
});
|
|
21536
|
-
}, p = (x,
|
|
21536
|
+
}, p = (x, y, w) => {
|
|
21537
21537
|
const Y = d(w);
|
|
21538
|
-
switch (
|
|
21538
|
+
switch (y.type) {
|
|
21539
21539
|
case "json":
|
|
21540
|
-
wn(Y, x, ke(
|
|
21540
|
+
wn(Y, x, ke(y.value));
|
|
21541
21541
|
break;
|
|
21542
21542
|
default:
|
|
21543
|
-
wn(Y, x,
|
|
21543
|
+
wn(Y, x, y.value);
|
|
21544
21544
|
}
|
|
21545
21545
|
};
|
|
21546
21546
|
return jl(() => {
|
|
@@ -21550,14 +21550,14 @@ function NK(e, a = !1) {
|
|
|
21550
21550
|
unsubscribeCollabAnyDataChangeListener: f,
|
|
21551
21551
|
changeCollabAnyData: q,
|
|
21552
21552
|
objectSetDataByField: p,
|
|
21553
|
-
acquireCollabAnyLock: (x,
|
|
21553
|
+
acquireCollabAnyLock: (x, y = {}) => {
|
|
21554
21554
|
if (!t.value.enabled || B(s.value)) return;
|
|
21555
21555
|
const w = r.get(e);
|
|
21556
|
-
w && w.status === qt.Inactive || s.value?.timeout(1e3).emit("acquireFieldLock", e, x,
|
|
21557
|
-
const
|
|
21556
|
+
w && w.status === qt.Inactive || s.value?.timeout(1e3).emit("acquireFieldLock", e, x, y, (Y, A) => {
|
|
21557
|
+
const X = { field: x, room: e };
|
|
21558
21558
|
if (Y || In(A))
|
|
21559
21559
|
return void l.emit(
|
|
21560
|
-
|
|
21560
|
+
X,
|
|
21561
21561
|
Pi(Nt.Acquire, Ot.Failure)
|
|
21562
21562
|
);
|
|
21563
21563
|
if (kn(A)) {
|
|
@@ -21566,29 +21566,29 @@ function NK(e, a = !1) {
|
|
|
21566
21566
|
for (const [E, N] of T.entries())
|
|
21567
21567
|
o.get(e)?.set(E, N);
|
|
21568
21568
|
return void l.emit(
|
|
21569
|
-
|
|
21569
|
+
X,
|
|
21570
21570
|
Pi(Nt.Acquire, Ot.Success)
|
|
21571
21571
|
);
|
|
21572
21572
|
}
|
|
21573
21573
|
});
|
|
21574
21574
|
},
|
|
21575
|
-
releaseCollabAnyLock: (x,
|
|
21575
|
+
releaseCollabAnyLock: (x, y, w = {}) => {
|
|
21576
21576
|
if (!t.value.enabled || B(s.value)) return;
|
|
21577
21577
|
const Y = r.get(e);
|
|
21578
21578
|
if (Y && Y.status === qt.Inactive) {
|
|
21579
|
-
i.has(e) || i.set(e, /* @__PURE__ */ new Map()), i.get(e)?.set(x,
|
|
21579
|
+
i.has(e) || i.set(e, /* @__PURE__ */ new Map()), i.get(e)?.set(x, y);
|
|
21580
21580
|
return;
|
|
21581
21581
|
}
|
|
21582
|
-
s.value?.timeout(1e3).emit("releaseFieldLock", e, x,
|
|
21582
|
+
s.value?.timeout(1e3).emit("releaseFieldLock", e, x, y, w, (A, X) => {
|
|
21583
21583
|
const T = { field: x, room: e };
|
|
21584
|
-
if (A || In(
|
|
21584
|
+
if (A || In(X))
|
|
21585
21585
|
return void l.emit(
|
|
21586
21586
|
T,
|
|
21587
21587
|
Pi(Nt.Release, Ot.Failure)
|
|
21588
21588
|
);
|
|
21589
|
-
if (kn(
|
|
21590
|
-
if (o.has(e) || o.set(e, /* @__PURE__ */ new Map()),
|
|
21591
|
-
for (const E of Object.keys(
|
|
21589
|
+
if (kn(X)) {
|
|
21590
|
+
if (o.has(e) || o.set(e, /* @__PURE__ */ new Map()), X.locks)
|
|
21591
|
+
for (const E of Object.keys(X.locks))
|
|
21592
21592
|
o.get(e)?.delete(E);
|
|
21593
21593
|
return void l.emit(
|
|
21594
21594
|
T,
|