@anzusystems/common-admin 1.47.0-beta.90 → 1.47.0-beta.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common-admin.es.d.ts +6 -1
- package/dist/common-admin.es.js +1 -1
- package/dist/{lib-BG7fcgx4.js → lib-DPp4Rq_S.js} +769 -767
- package/dist/lib-DPp4Rq_S.js.map +1 -0
- package/dist/{webfontloader-DIFkx8BO.js → webfontloader-B9HB8WIB.js} +2 -2
- package/dist/{webfontloader-DIFkx8BO.js.map → webfontloader-B9HB8WIB.js.map} +1 -1
- package/package.json +1 -1
- package/dist/lib-BG7fcgx4.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var hm = Object.defineProperty;
|
|
2
2
|
var Fm = (a, t, e) => t in a ? hm(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
|
|
3
3
|
var cr = (a, t, e) => Fm(a, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { defineComponent as W, computed as _, openBlock as Y, createBlock as T, withCtx as p, createTextVNode as P, toDisplayString as k, createElementBlock as R, createVNode as m, normalizeClass as Fe, createCommentVNode as j, renderSlot as de, createElementVNode as U, resolveComponent as $e, withModifiers as J, withDirectives as da, vShow as ps, isProxy as $d, toRaw as ht, isRef as La, unref as V, Fragment as ge, normalizeStyle as Dt, shallowRef as Ft, watch as qe, ref as S, reactive as ea, inject as at, createSlots as ua, provide as Li, renderList as je, onMounted as
|
|
4
|
+
import { defineComponent as W, computed as _, openBlock as Y, createBlock as T, withCtx as p, createTextVNode as P, toDisplayString as k, createElementBlock as R, createVNode as m, normalizeClass as Fe, createCommentVNode as j, renderSlot as de, createElementVNode as U, resolveComponent as $e, withModifiers as J, withDirectives as da, vShow as ps, isProxy as $d, toRaw as ht, isRef as La, unref as V, Fragment as ge, normalizeStyle as Dt, shallowRef as Ft, watch as qe, ref as S, reactive as ea, inject as at, createSlots as ua, provide as Li, renderList as je, onMounted as gt, TransitionGroup as gm, mergeProps as Et, isVNode as qm, mergeModels as pt, useModel as Tt, toRefs as ci, vModelText as kl, nextTick as Jt, withKeys as Pa, onUnmounted as so, readonly as Ss, createStaticVNode as Bd, resolveDynamicComponent as io, setBlockTracking as Il, onBeforeUnmount as ro, toRef as oo, Teleport as Ym, normalizeProps as Xm, guardReactiveProps as Am } from "vue";
|
|
5
5
|
import { useI18n as ee, createI18n as ym } from "vue-i18n";
|
|
6
6
|
import { VChip as Qt } from "vuetify/lib/components/VChip/index.mjs";
|
|
7
7
|
import { VRow as ve, VCol as oe, VSpacer as it } from "vuetify/lib/components/VGrid/index.mjs";
|
|
@@ -432,7 +432,7 @@ function cu() {
|
|
|
432
432
|
};
|
|
433
433
|
}
|
|
434
434
|
function Fs(a, t, e = !1) {
|
|
435
|
-
const { collabOptions: s } = aa(), { currentUserId: i } = cu(), { collabSocket: r, collabFieldLocksState: o, collabFieldDataBufferState: l, collabRoomInfoState: n } = co(), d = Wn(), c = S(), u = S(), f = du(),
|
|
435
|
+
const { collabOptions: s } = aa(), { currentUserId: i } = cu(), { collabSocket: r, collabFieldLocksState: o, collabFieldDataBufferState: l, collabRoomInfoState: n } = co(), d = Wn(), c = S(), u = S(), f = du(), q = S(), v = S(), g = tu(), h = S(), x = S(), F = (K, E) => {
|
|
436
436
|
K.room !== a || K.field !== t || L(E) || L(u.value) || u.value(E);
|
|
437
437
|
}, y = (K, E) => {
|
|
438
438
|
K.room !== a || K.field !== t || L(E) || L(v.value) || v.value(E);
|
|
@@ -441,14 +441,14 @@ function Fs(a, t, e = !1) {
|
|
|
441
441
|
}, A = (K) => {
|
|
442
442
|
u.value = K, c.value = d.on(F);
|
|
443
443
|
}, b = (K) => {
|
|
444
|
-
v.value = K,
|
|
444
|
+
v.value = K, q.value = f.on(y);
|
|
445
445
|
}, B = (K) => {
|
|
446
|
-
x.value = K, h.value =
|
|
446
|
+
x.value = K, h.value = g.on(
|
|
447
447
|
X
|
|
448
448
|
);
|
|
449
449
|
};
|
|
450
450
|
Ln(() => {
|
|
451
|
-
e || (he(c.value) && c.value(), he(
|
|
451
|
+
e || (he(c.value) && c.value(), he(q.value) && q.value(), he(h.value) && h.value());
|
|
452
452
|
});
|
|
453
453
|
const N = _(() => {
|
|
454
454
|
const K = o.get(a);
|
|
@@ -523,7 +523,7 @@ function Fs(a, t, e = !1) {
|
|
|
523
523
|
lockedByUser: N,
|
|
524
524
|
collabFieldDataBufferState: l,
|
|
525
525
|
unsubscribeCollabFieldDataChangeListener: c,
|
|
526
|
-
unsubscribeCollabFieldLockStatusListener:
|
|
526
|
+
unsubscribeCollabFieldLockStatusListener: q,
|
|
527
527
|
unsubscribeCollabGatheringBufferData: h
|
|
528
528
|
};
|
|
529
529
|
}
|
|
@@ -580,12 +580,12 @@ const kf = {
|
|
|
580
580
|
}
|
|
581
581
|
const { t: d } = ee(), c = at(_a, void 0), u = at(Sa, void 0), f = (y) => {
|
|
582
582
|
s("update:modelValue", y);
|
|
583
|
-
},
|
|
583
|
+
}, q = () => {
|
|
584
584
|
var y;
|
|
585
585
|
s("blur", e.modelValue), (y = e.v) == null || y.$touch(), o.value(e.modelValue);
|
|
586
586
|
}, v = () => {
|
|
587
587
|
s("focus", e.modelValue), l.value();
|
|
588
|
-
},
|
|
588
|
+
}, g = _(() => {
|
|
589
589
|
var y, X;
|
|
590
590
|
return he(e.errorMessage) ? [e.errorMessage] : (X = (y = e.v) == null ? void 0 : y.$errors) != null && X.length ? [e.v.$errors.map((A) => A.$message).join(" ")] : [];
|
|
591
591
|
}), h = _(() => {
|
|
@@ -603,7 +603,7 @@ const kf = {
|
|
|
603
603
|
ref: i,
|
|
604
604
|
"prepend-icon": y.prependIcon,
|
|
605
605
|
"data-cy": y.dataCy,
|
|
606
|
-
"error-messages":
|
|
606
|
+
"error-messages": g.value,
|
|
607
607
|
"model-value": y.modelValue,
|
|
608
608
|
required: x.value,
|
|
609
609
|
type: y.type,
|
|
@@ -615,7 +615,7 @@ const kf = {
|
|
|
615
615
|
"persistent-placeholder": y.persistentPlaceholder,
|
|
616
616
|
trim: "",
|
|
617
617
|
"onClick:append": X[0] || (X[0] = (A) => s("click:append", A)),
|
|
618
|
-
onBlur:
|
|
618
|
+
onBlur: q,
|
|
619
619
|
onFocus: v,
|
|
620
620
|
"onUpdate:modelValue": X[1] || (X[1] = (A) => f(A))
|
|
621
621
|
}, ua({ _: 2 }, [
|
|
@@ -708,12 +708,12 @@ const kf = {
|
|
|
708
708
|
}
|
|
709
709
|
const { t: d } = ee(), c = at(_a, void 0), u = at(Sa, void 0), f = (X) => {
|
|
710
710
|
s("update:modelValue", X);
|
|
711
|
-
},
|
|
711
|
+
}, q = () => {
|
|
712
712
|
var X;
|
|
713
713
|
s("blur", e.modelValue), (X = e.v) == null || X.$touch(), o.value(e.modelValue);
|
|
714
714
|
}, v = () => {
|
|
715
715
|
s("focus", e.modelValue), l.value();
|
|
716
|
-
},
|
|
716
|
+
}, g = _(() => {
|
|
717
717
|
var X, A;
|
|
718
718
|
return he(e.errorMessage) ? [e.errorMessage] : (A = (X = e.v) == null ? void 0 : X.$errors) != null && A.length ? [e.v.$errors.map((b) => b.$message).join(" ")] : [];
|
|
719
719
|
}), h = _(() => {
|
|
@@ -731,7 +731,7 @@ const kf = {
|
|
|
731
731
|
ref: i,
|
|
732
732
|
"prepend-icon": X.prependIcon,
|
|
733
733
|
"data-cy": X.dataCy,
|
|
734
|
-
"error-messages":
|
|
734
|
+
"error-messages": g.value,
|
|
735
735
|
"model-value": X.modelValue,
|
|
736
736
|
required: x.value,
|
|
737
737
|
disabled: F.value,
|
|
@@ -740,7 +740,7 @@ const kf = {
|
|
|
740
740
|
"append-icon": X.appendIcon,
|
|
741
741
|
trim: "",
|
|
742
742
|
"onClick:append": A[0] || (A[0] = (b) => s("click:append", b)),
|
|
743
|
-
onBlur:
|
|
743
|
+
onBlur: q,
|
|
744
744
|
onFocus: v,
|
|
745
745
|
"onUpdate:modelValue": A[1] || (A[1] = (b) => f(b))
|
|
746
746
|
}, ua({ _: 2 }, [
|
|
@@ -827,15 +827,15 @@ const kf = {
|
|
|
827
827
|
set(y) {
|
|
828
828
|
s("update:modelValue", ye(y));
|
|
829
829
|
}
|
|
830
|
-
}), { t: r } = ee(), o = _(() => Math.ceil(i.value.totalCount / i.value.rowsPerPage)), l = _(() => i.value.page * i.value.rowsPerPage - i.value.rowsPerPage + 1), n = _(() => i.value.page * i.value.rowsPerPage - i.value.rowsPerPage + i.value.currentViewCount), d = _(() => i.value.page === 1), c = _(() => !te(i.value.hasNextPage) || i.value.page === o.value), u = _(() => te(i.value.hasNextPage) && i.value.page === o.value || i.value.hasNextPage === !1), f = _(() => te(i.value.hasNextPage) ? i.value.totalCount : i.value.hasNextPage ? n.value + 1 + "+" : n.value),
|
|
831
|
-
qe(
|
|
830
|
+
}), { t: r } = ee(), o = _(() => Math.ceil(i.value.totalCount / i.value.rowsPerPage)), l = _(() => i.value.page * i.value.rowsPerPage - i.value.rowsPerPage + 1), n = _(() => i.value.page * i.value.rowsPerPage - i.value.rowsPerPage + i.value.currentViewCount), d = _(() => i.value.page === 1), c = _(() => !te(i.value.hasNextPage) || i.value.page === o.value), u = _(() => te(i.value.hasNextPage) && i.value.page === o.value || i.value.hasNextPage === !1), f = _(() => te(i.value.hasNextPage) ? i.value.totalCount : i.value.hasNextPage ? n.value + 1 + "+" : n.value), q = _(() => i.value.rowsPerPage);
|
|
831
|
+
qe(q, (y, X) => {
|
|
832
832
|
y !== X && (i.value.page = 1, s("change"));
|
|
833
833
|
});
|
|
834
834
|
const v = _(() => i.value.page);
|
|
835
835
|
qe(v, (y, X) => {
|
|
836
836
|
y !== X && s("change");
|
|
837
837
|
});
|
|
838
|
-
const
|
|
838
|
+
const g = () => {
|
|
839
839
|
i.value.page = 1;
|
|
840
840
|
}, h = () => {
|
|
841
841
|
i.value.page = o.value;
|
|
@@ -880,7 +880,7 @@ const kf = {
|
|
|
880
880
|
icon: "mdi-page-first",
|
|
881
881
|
size: "small",
|
|
882
882
|
variant: "text",
|
|
883
|
-
onClick: J(
|
|
883
|
+
onClick: J(g, ["stop"])
|
|
884
884
|
}, null, 8, ["disabled"]),
|
|
885
885
|
m(ie, {
|
|
886
886
|
disabled: d.value,
|
|
@@ -1026,26 +1026,26 @@ const kf = {
|
|
|
1026
1026
|
{ id: 1, titleT: "common.system.datatable.ordering.mostRecent", sortBy: { key: "createdAt", order: "desc" } },
|
|
1027
1027
|
{ id: 2, titleT: "common.system.datatable.ordering.oldest", sortBy: { key: "createdAt", order: "asc" } }
|
|
1028
1028
|
], d = _(() => {
|
|
1029
|
-
const f = c.value.find((
|
|
1029
|
+
const f = c.value.find((q) => q.id === r.value);
|
|
1030
1030
|
return f ? i(f.titleT) : "";
|
|
1031
1031
|
}), c = _(() => e.customOptions ? e.customOptions : e.variant === "most-relevant" ? n : l), u = (f) => {
|
|
1032
1032
|
o.value = f.id;
|
|
1033
1033
|
};
|
|
1034
1034
|
return qe(
|
|
1035
1035
|
r,
|
|
1036
|
-
(f,
|
|
1037
|
-
if (L(
|
|
1038
|
-
const v = c.value.find((
|
|
1036
|
+
(f, q) => {
|
|
1037
|
+
if (L(q) || f === q) return;
|
|
1038
|
+
const v = c.value.find((g) => g.id === f);
|
|
1039
1039
|
v && s("sortByChange", v);
|
|
1040
1040
|
},
|
|
1041
1041
|
{ immediate: !0 }
|
|
1042
1042
|
), qe(
|
|
1043
1043
|
o,
|
|
1044
|
-
(f,
|
|
1045
|
-
L(
|
|
1044
|
+
(f, q) => {
|
|
1045
|
+
L(q) || f === q || (r.value = f);
|
|
1046
1046
|
},
|
|
1047
1047
|
{ immediate: !0 }
|
|
1048
|
-
), (f,
|
|
1048
|
+
), (f, q) => (Y(), R("div", $f, [
|
|
1049
1049
|
U("div", Bf, k(V(i)("common.system.datatable.ordering.title")) + ": ", 1),
|
|
1050
1050
|
m(ie, {
|
|
1051
1051
|
variant: "text",
|
|
@@ -1068,7 +1068,7 @@ const kf = {
|
|
|
1068
1068
|
default: p(() => [
|
|
1069
1069
|
(Y(!0), R(ge, null, je(c.value, (v) => (Y(), T(Ze, {
|
|
1070
1070
|
key: v.id,
|
|
1071
|
-
onClick: (
|
|
1071
|
+
onClick: (g) => u(v)
|
|
1072
1072
|
}, {
|
|
1073
1073
|
default: p(() => [
|
|
1074
1074
|
m(fs, {
|
|
@@ -1362,7 +1362,7 @@ const fr = {
|
|
|
1362
1362
|
}, f = (z) => {
|
|
1363
1363
|
var M;
|
|
1364
1364
|
a.pauseOnHover && ((M = z.timer) == null || M.stop());
|
|
1365
|
-
},
|
|
1365
|
+
}, q = (z) => {
|
|
1366
1366
|
var M;
|
|
1367
1367
|
a.pauseOnHover && ((M = z.timer) == null || M.start());
|
|
1368
1368
|
}, v = (z = {}) => {
|
|
@@ -1398,7 +1398,7 @@ const fr = {
|
|
|
1398
1398
|
return;
|
|
1399
1399
|
}
|
|
1400
1400
|
G ? (i.value.push($), t("start", $), l.value.length > a.max && (Z = 0)) : (i.value.unshift($), t("start", $), l.value.length > a.max && (Z = l.value.length - 1)), Z !== -1 && F(l.value[Z]);
|
|
1401
|
-
},
|
|
1401
|
+
}, g = (z) => {
|
|
1402
1402
|
y(z);
|
|
1403
1403
|
}, h = (z) => ["vue-notification-template", a.classes, z.type || ""], x = (z) => o.value ? void 0 : {
|
|
1404
1404
|
transition: `all ${z.speed}ms`
|
|
@@ -1430,8 +1430,8 @@ const fr = {
|
|
|
1430
1430
|
function N() {
|
|
1431
1431
|
i.value = i.value.filter((z) => z.state !== fr.DESTROYED);
|
|
1432
1432
|
}
|
|
1433
|
-
return
|
|
1434
|
-
Lr.on("add", v), Lr.on("close",
|
|
1433
|
+
return gt(() => {
|
|
1434
|
+
Lr.on("add", v), Lr.on("close", g);
|
|
1435
1435
|
}), () => {
|
|
1436
1436
|
let z;
|
|
1437
1437
|
return m("div", {
|
|
@@ -1447,7 +1447,7 @@ const fr = {
|
|
|
1447
1447
|
style: x(M),
|
|
1448
1448
|
"data-id": M.id,
|
|
1449
1449
|
onMouseenter: () => f(M),
|
|
1450
|
-
onMouseleave: () =>
|
|
1450
|
+
onMouseleave: () => q(M)
|
|
1451
1451
|
}, [e.body ? e.body({
|
|
1452
1452
|
item: M,
|
|
1453
1453
|
class: [a.classes, M.type],
|
|
@@ -1554,71 +1554,71 @@ class Ea extends Error {
|
|
|
1554
1554
|
const ha = 3, Fu = `
|
|
1555
1555
|
`;
|
|
1556
1556
|
function He() {
|
|
1557
|
-
const a = (
|
|
1557
|
+
const a = (g, h = ha) => {
|
|
1558
1558
|
oa({
|
|
1559
1559
|
group: "alerts",
|
|
1560
|
-
text:
|
|
1560
|
+
text: g,
|
|
1561
1561
|
duration: h * 1e3,
|
|
1562
1562
|
type: "success"
|
|
1563
1563
|
});
|
|
1564
|
-
}, t = (
|
|
1564
|
+
}, t = (g, h = ha) => {
|
|
1565
1565
|
const { t: x } = De.global;
|
|
1566
|
-
a(x(
|
|
1567
|
-
}, e = (
|
|
1566
|
+
a(x(g), h);
|
|
1567
|
+
}, e = (g, h = ha) => {
|
|
1568
1568
|
oa({
|
|
1569
1569
|
group: "alerts",
|
|
1570
|
-
text:
|
|
1570
|
+
text: g,
|
|
1571
1571
|
duration: h * 1e3,
|
|
1572
1572
|
type: "error"
|
|
1573
1573
|
});
|
|
1574
|
-
}, s = (
|
|
1574
|
+
}, s = (g, h = ha) => {
|
|
1575
1575
|
const { t: x } = De.global;
|
|
1576
|
-
e(x(
|
|
1577
|
-
}, i = (
|
|
1576
|
+
e(x(g), h);
|
|
1577
|
+
}, i = (g, h = ha) => {
|
|
1578
1578
|
oa({
|
|
1579
1579
|
group: "alerts",
|
|
1580
|
-
text:
|
|
1580
|
+
text: g,
|
|
1581
1581
|
duration: h * 1e3,
|
|
1582
1582
|
type: "info"
|
|
1583
1583
|
});
|
|
1584
|
-
}, r = (
|
|
1584
|
+
}, r = (g, h = ha) => {
|
|
1585
1585
|
const { t: x } = De.global;
|
|
1586
|
-
i(x(
|
|
1587
|
-
}, o = (
|
|
1586
|
+
i(x(g), h);
|
|
1587
|
+
}, o = (g, h = ha) => {
|
|
1588
1588
|
oa({
|
|
1589
1589
|
group: "alerts",
|
|
1590
|
-
text:
|
|
1590
|
+
text: g,
|
|
1591
1591
|
duration: h * 1e3,
|
|
1592
1592
|
type: "warning"
|
|
1593
1593
|
});
|
|
1594
|
-
}, l = (
|
|
1594
|
+
}, l = (g, h = ha) => {
|
|
1595
1595
|
const { t: x } = De.global;
|
|
1596
|
-
o(x(
|
|
1597
|
-
}, n = (
|
|
1596
|
+
o(x(g), h);
|
|
1597
|
+
}, n = (g = ha) => {
|
|
1598
1598
|
const { t: h } = De.global;
|
|
1599
1599
|
oa({
|
|
1600
1600
|
group: "alerts",
|
|
1601
1601
|
text: h("common.alert.fixValidationErrors"),
|
|
1602
|
-
duration:
|
|
1602
|
+
duration: g * 1e3,
|
|
1603
1603
|
type: "error"
|
|
1604
1604
|
});
|
|
1605
|
-
}, d = (
|
|
1605
|
+
}, d = (g, h = ha) => {
|
|
1606
1606
|
const { t: x } = De.global;
|
|
1607
1607
|
oa({
|
|
1608
1608
|
group: "alerts",
|
|
1609
|
-
text: x("common.alert.recordWas." +
|
|
1609
|
+
text: x("common.alert.recordWas." + g),
|
|
1610
1610
|
duration: h * 1e3,
|
|
1611
1611
|
type: "success"
|
|
1612
1612
|
});
|
|
1613
|
-
}, c = (
|
|
1613
|
+
}, c = (g, h = -1, x = !1) => {
|
|
1614
1614
|
const { t: F, te: y } = De.global, X = [F("common.alert.fixApiValidationErrors")];
|
|
1615
|
-
for (let A = 0; A <
|
|
1615
|
+
for (let A = 0; A < g.length; A++) {
|
|
1616
1616
|
let b = "";
|
|
1617
|
-
x ? b +=
|
|
1617
|
+
x ? b += g[A].field : y(g[A].field) && (b += F(g[A].field));
|
|
1618
1618
|
const B = /* @__PURE__ */ new Set();
|
|
1619
|
-
for (let N = 0; N <
|
|
1620
|
-
if (y("error.apiValidation." +
|
|
1621
|
-
B.add(F("error.apiValidation." +
|
|
1619
|
+
for (let N = 0; N < g[A].errors.length; N++) {
|
|
1620
|
+
if (y("error.apiValidation." + g[A].errors[N])) {
|
|
1621
|
+
B.add(F("error.apiValidation." + g[A].errors[N]));
|
|
1622
1622
|
continue;
|
|
1623
1623
|
}
|
|
1624
1624
|
B.add(F("error.apiValidation.noTranslation"));
|
|
@@ -1631,29 +1631,29 @@ function He() {
|
|
|
1631
1631
|
duration: h * 1e3,
|
|
1632
1632
|
type: "error"
|
|
1633
1633
|
});
|
|
1634
|
-
}, u = (
|
|
1634
|
+
}, u = (g, h = -1) => {
|
|
1635
1635
|
const { t: x, te: F } = De.global;
|
|
1636
1636
|
let y = x("error.apiForbiddenOperation.noTranslation");
|
|
1637
|
-
F("error.apiForbiddenOperation." +
|
|
1637
|
+
F("error.apiForbiddenOperation." + g) && (y = x("error.apiForbiddenOperation." + g)), oa({
|
|
1638
1638
|
group: "alerts",
|
|
1639
1639
|
text: y,
|
|
1640
1640
|
duration: h * 1e3,
|
|
1641
1641
|
type: "error"
|
|
1642
1642
|
});
|
|
1643
|
-
}, f = (
|
|
1643
|
+
}, f = (g = -1) => {
|
|
1644
1644
|
const { t: h } = De.global;
|
|
1645
1645
|
oa({
|
|
1646
1646
|
group: "alerts",
|
|
1647
1647
|
text: h("common.alert.unknownError"),
|
|
1648
|
-
duration:
|
|
1648
|
+
duration: g * 1e3,
|
|
1649
1649
|
type: "error"
|
|
1650
1650
|
});
|
|
1651
|
-
},
|
|
1651
|
+
}, q = (g = ha) => {
|
|
1652
1652
|
const { t: h } = De.global;
|
|
1653
1653
|
oa({
|
|
1654
1654
|
group: "alerts",
|
|
1655
1655
|
text: h("common.alert.forbiddenError"),
|
|
1656
|
-
duration:
|
|
1656
|
+
duration: g * 1e3,
|
|
1657
1657
|
type: "error"
|
|
1658
1658
|
});
|
|
1659
1659
|
};
|
|
@@ -1671,8 +1671,8 @@ function He() {
|
|
|
1671
1671
|
showApiValidationError: c,
|
|
1672
1672
|
showApiForbiddenOperationError: u,
|
|
1673
1673
|
showUnknownError: f,
|
|
1674
|
-
showForbiddenError:
|
|
1675
|
-
showErrorsDefault: (
|
|
1674
|
+
showForbiddenError: q,
|
|
1675
|
+
showErrorsDefault: (g) => pu(g) ? (q(), !0) : vu(g) ? (c(g.fields), !0) : iV(g) ? (u(g.detail), !0) : fu(g) || hu(g) ? (f(), !0) : !1
|
|
1676
1676
|
};
|
|
1677
1677
|
}
|
|
1678
1678
|
const LS = /* @__PURE__ */ W({
|
|
@@ -1696,7 +1696,7 @@ const LS = /* @__PURE__ */ W({
|
|
|
1696
1696
|
i.value = !0, s("onOpen");
|
|
1697
1697
|
}, n = () => {
|
|
1698
1698
|
i.value = !0, s("onClose");
|
|
1699
|
-
}, d = Nn(), { showValidationError: c, showRecordWas: u, showErrorsDefault: f } = He(),
|
|
1699
|
+
}, d = Nn(), { showValidationError: c, showRecordWas: u, showErrorsDefault: f } = He(), q = async () => {
|
|
1700
1700
|
var v;
|
|
1701
1701
|
s("onConfirm");
|
|
1702
1702
|
try {
|
|
@@ -1704,18 +1704,18 @@ const LS = /* @__PURE__ */ W({
|
|
|
1704
1704
|
c(), o.value = !1;
|
|
1705
1705
|
return;
|
|
1706
1706
|
}
|
|
1707
|
-
const
|
|
1708
|
-
s("onSuccess",
|
|
1707
|
+
const g = await e.callCreate();
|
|
1708
|
+
s("onSuccess", g), u("created"), n(), !L(g.id) && !e.disableRedirect && e.redirectRouteName && d.push({
|
|
1709
1709
|
name: e.redirectRouteName,
|
|
1710
|
-
params: { [e.redirectParamName]:
|
|
1710
|
+
params: { [e.redirectParamName]: g[e.redirectParamName] }
|
|
1711
1711
|
});
|
|
1712
|
-
} catch (
|
|
1713
|
-
f(
|
|
1712
|
+
} catch (g) {
|
|
1713
|
+
f(g), s("onError", g);
|
|
1714
1714
|
} finally {
|
|
1715
1715
|
o.value = !1;
|
|
1716
1716
|
}
|
|
1717
1717
|
};
|
|
1718
|
-
return (v,
|
|
1718
|
+
return (v, g) => {
|
|
1719
1719
|
const h = $e("ABtnTertiary"), x = $e("ABtnPrimary");
|
|
1720
1720
|
return Y(), T(x, {
|
|
1721
1721
|
class: Fe(v.buttonClass),
|
|
@@ -1731,7 +1731,7 @@ const LS = /* @__PURE__ */ W({
|
|
|
1731
1731
|
"model-value": i.value,
|
|
1732
1732
|
"max-width": v.maxWidth,
|
|
1733
1733
|
persistent: "",
|
|
1734
|
-
"onUpdate:modelValue":
|
|
1734
|
+
"onUpdate:modelValue": g[0] || (g[0] = (F) => i.value = F)
|
|
1735
1735
|
}, {
|
|
1736
1736
|
default: p(() => [
|
|
1737
1737
|
i.value ? (Y(), T(Le, {
|
|
@@ -1768,7 +1768,7 @@ const LS = /* @__PURE__ */ W({
|
|
|
1768
1768
|
m(x, {
|
|
1769
1769
|
loading: o.value,
|
|
1770
1770
|
"data-cy": "button-confirm",
|
|
1771
|
-
onClick: J(
|
|
1771
|
+
onClick: J(q, ["stop"])
|
|
1772
1772
|
}, {
|
|
1773
1773
|
default: p(() => [
|
|
1774
1774
|
de(v.$slots, "button-confirm-title", {}, () => [
|
|
@@ -1798,7 +1798,7 @@ const LS = /* @__PURE__ */ W({
|
|
|
1798
1798
|
},
|
|
1799
1799
|
setup(a) {
|
|
1800
1800
|
const t = a, { t: e } = ee(), s = S([]);
|
|
1801
|
-
return
|
|
1801
|
+
return gt(async () => {
|
|
1802
1802
|
if (t.configUrl && t.configUrl.length > 0)
|
|
1803
1803
|
try {
|
|
1804
1804
|
const { data: i } = await bm(t.configUrl).get().json();
|
|
@@ -1871,7 +1871,7 @@ var gu = { exports: {} };
|
|
|
1871
1871
|
(function(e, s) {
|
|
1872
1872
|
a.exports = s();
|
|
1873
1873
|
})(mo, function() {
|
|
1874
|
-
var e = 1e3, s = 6e4, i = 36e5, r = "millisecond", o = "second", l = "minute", n = "hour", d = "day", c = "week", u = "month", f = "quarter",
|
|
1874
|
+
var e = 1e3, s = 6e4, i = 36e5, r = "millisecond", o = "second", l = "minute", n = "hour", d = "day", c = "week", u = "month", f = "quarter", q = "year", v = "date", g = "Invalid Date", h = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, x = /\[([^\]]+)]|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, F = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(I) {
|
|
1875
1875
|
var w = ["th", "st", "nd", "rd"], C = I % 100;
|
|
1876
1876
|
return "[" + I + (w[(C - 20) % 10] || w[C] || w[0]) + "]";
|
|
1877
1877
|
} }, y = function(I, w, C) {
|
|
@@ -1887,7 +1887,7 @@ var gu = { exports: {} };
|
|
|
1887
1887
|
}, a: function(I) {
|
|
1888
1888
|
return I < 0 ? Math.ceil(I) || 0 : Math.floor(I);
|
|
1889
1889
|
}, p: function(I) {
|
|
1890
|
-
return { M: u, y:
|
|
1890
|
+
return { M: u, y: q, w: c, d, D: v, h: n, m: l, s: o, ms: r, Q: f }[I] || String(I || "").toLowerCase().replace(/s$/, "");
|
|
1891
1891
|
}, u: function(I) {
|
|
1892
1892
|
return I === void 0;
|
|
1893
1893
|
} }, A = "en", b = {};
|
|
@@ -1941,7 +1941,7 @@ var gu = { exports: {} };
|
|
|
1941
1941
|
}, w.$utils = function() {
|
|
1942
1942
|
return O;
|
|
1943
1943
|
}, w.isValid = function() {
|
|
1944
|
-
return this.$d.toString() !==
|
|
1944
|
+
return this.$d.toString() !== g;
|
|
1945
1945
|
}, w.isSame = function(C, D) {
|
|
1946
1946
|
var $ = M(C);
|
|
1947
1947
|
return this.startOf(D) <= $ && $ <= this.endOf(D);
|
|
@@ -1963,7 +1963,7 @@ var gu = { exports: {} };
|
|
|
1963
1963
|
return O.w($.toDate()[ue].apply($.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ce)), $);
|
|
1964
1964
|
}, fe = this.$W, Ve = this.$M, Ke = this.$D, Re = "set" + (this.$u ? "UTC" : "");
|
|
1965
1965
|
switch (G) {
|
|
1966
|
-
case
|
|
1966
|
+
case q:
|
|
1967
1967
|
return H ? Z(1, 0) : Z(31, 11);
|
|
1968
1968
|
case u:
|
|
1969
1969
|
return H ? Z(1, Ve) : Z(0, Ve + 1);
|
|
@@ -1985,8 +1985,8 @@ var gu = { exports: {} };
|
|
|
1985
1985
|
}, w.endOf = function(C) {
|
|
1986
1986
|
return this.startOf(C, !1);
|
|
1987
1987
|
}, w.$set = function(C, D) {
|
|
1988
|
-
var $, H = O.p(C), G = "set" + (this.$u ? "UTC" : ""), Z = ($ = {}, $[d] = G + "Date", $[v] = G + "Date", $[u] = G + "Month", $[
|
|
1989
|
-
if (H === u || H ===
|
|
1988
|
+
var $, H = O.p(C), G = "set" + (this.$u ? "UTC" : ""), Z = ($ = {}, $[d] = G + "Date", $[v] = G + "Date", $[u] = G + "Month", $[q] = G + "FullYear", $[n] = G + "Hours", $[l] = G + "Minutes", $[o] = G + "Seconds", $[r] = G + "Milliseconds", $)[H], ae = H === d ? this.$D + (D - this.$W) : D;
|
|
1989
|
+
if (H === u || H === q) {
|
|
1990
1990
|
var fe = this.clone().set(v, 1);
|
|
1991
1991
|
fe.$d[Z](ae), fe.init(), this.$d = fe.set(v, Math.min(this.$D, fe.daysInMonth())).$d;
|
|
1992
1992
|
} else Z && this.$d[Z](ae);
|
|
@@ -2003,7 +2003,7 @@ var gu = { exports: {} };
|
|
|
2003
2003
|
return O.w(Ke.date(Ke.date() + Math.round(Ve * C)), H);
|
|
2004
2004
|
};
|
|
2005
2005
|
if (G === u) return this.set(u, this.$M + C);
|
|
2006
|
-
if (G ===
|
|
2006
|
+
if (G === q) return this.set(q, this.$y + C);
|
|
2007
2007
|
if (G === d) return Z(1);
|
|
2008
2008
|
if (G === c) return Z(7);
|
|
2009
2009
|
var ae = ($ = {}, $[l] = s, $[n] = i, $[o] = e, $)[G] || 1, fe = this.$d.getTime() + C * ae;
|
|
@@ -2012,7 +2012,7 @@ var gu = { exports: {} };
|
|
|
2012
2012
|
return this.add(-1 * C, D);
|
|
2013
2013
|
}, w.format = function(C) {
|
|
2014
2014
|
var D = this, $ = this.$locale();
|
|
2015
|
-
if (!this.isValid()) return $.invalidDate ||
|
|
2015
|
+
if (!this.isValid()) return $.invalidDate || g;
|
|
2016
2016
|
var H = C || "YYYY-MM-DDTHH:mm:ssZ", G = O.z(this), Z = this.$H, ae = this.$m, fe = this.$M, Ve = $.weekdays, Ke = $.months, Re = $.meridiem, Ae = function(ce, we, Oe, pe) {
|
|
2017
2017
|
return ce && (ce[we] || ce(D, H)) || Oe[we].slice(0, pe);
|
|
2018
2018
|
}, Q = function(ce) {
|
|
@@ -2083,7 +2083,7 @@ var gu = { exports: {} };
|
|
|
2083
2083
|
return O.m(G, ae);
|
|
2084
2084
|
};
|
|
2085
2085
|
switch (Z) {
|
|
2086
|
-
case
|
|
2086
|
+
case q:
|
|
2087
2087
|
H = Ke() / 12;
|
|
2088
2088
|
break;
|
|
2089
2089
|
case u:
|
|
@@ -2131,7 +2131,7 @@ var gu = { exports: {} };
|
|
|
2131
2131
|
return this.$d.toUTCString();
|
|
2132
2132
|
}, I;
|
|
2133
2133
|
}(), E = K.prototype;
|
|
2134
|
-
return M.prototype = E, [["$ms", r], ["$s", o], ["$m", l], ["$H", n], ["$W", d], ["$M", u], ["$y",
|
|
2134
|
+
return M.prototype = E, [["$ms", r], ["$s", o], ["$m", l], ["$H", n], ["$W", d], ["$M", u], ["$y", q], ["$D", v]].forEach(function(I) {
|
|
2135
2135
|
E[I[1]] = function(w) {
|
|
2136
2136
|
return this.$g(w, I[0], I[1]);
|
|
2137
2137
|
};
|
|
@@ -2152,52 +2152,52 @@ var qu = { exports: {} };
|
|
|
2152
2152
|
var e = "minute", s = /[+-]\d\d(?::?\d\d)?/g, i = /([+-]|\d\d)/g;
|
|
2153
2153
|
return function(r, o, l) {
|
|
2154
2154
|
var n = o.prototype;
|
|
2155
|
-
l.utc = function(
|
|
2156
|
-
var h = { date:
|
|
2155
|
+
l.utc = function(g) {
|
|
2156
|
+
var h = { date: g, utc: !0, args: arguments };
|
|
2157
2157
|
return new o(h);
|
|
2158
|
-
}, n.utc = function(
|
|
2158
|
+
}, n.utc = function(g) {
|
|
2159
2159
|
var h = l(this.toDate(), { locale: this.$L, utc: !0 });
|
|
2160
|
-
return
|
|
2160
|
+
return g ? h.add(this.utcOffset(), e) : h;
|
|
2161
2161
|
}, n.local = function() {
|
|
2162
2162
|
return l(this.toDate(), { locale: this.$L, utc: !1 });
|
|
2163
2163
|
};
|
|
2164
2164
|
var d = n.parse;
|
|
2165
|
-
n.parse = function(
|
|
2166
|
-
|
|
2165
|
+
n.parse = function(g) {
|
|
2166
|
+
g.utc && (this.$u = !0), this.$utils().u(g.$offset) || (this.$offset = g.$offset), d.call(this, g);
|
|
2167
2167
|
};
|
|
2168
2168
|
var c = n.init;
|
|
2169
2169
|
n.init = function() {
|
|
2170
2170
|
if (this.$u) {
|
|
2171
|
-
var
|
|
2172
|
-
this.$y =
|
|
2171
|
+
var g = this.$d;
|
|
2172
|
+
this.$y = g.getUTCFullYear(), this.$M = g.getUTCMonth(), this.$D = g.getUTCDate(), this.$W = g.getUTCDay(), this.$H = g.getUTCHours(), this.$m = g.getUTCMinutes(), this.$s = g.getUTCSeconds(), this.$ms = g.getUTCMilliseconds();
|
|
2173
2173
|
} else c.call(this);
|
|
2174
2174
|
};
|
|
2175
2175
|
var u = n.utcOffset;
|
|
2176
|
-
n.utcOffset = function(
|
|
2176
|
+
n.utcOffset = function(g, h) {
|
|
2177
2177
|
var x = this.$utils().u;
|
|
2178
|
-
if (x(
|
|
2179
|
-
if (typeof
|
|
2178
|
+
if (x(g)) return this.$u ? 0 : x(this.$offset) ? u.call(this) : this.$offset;
|
|
2179
|
+
if (typeof g == "string" && (g = function(A) {
|
|
2180
2180
|
A === void 0 && (A = "");
|
|
2181
2181
|
var b = A.match(s);
|
|
2182
2182
|
if (!b) return null;
|
|
2183
2183
|
var B = ("" + b[0]).match(i) || ["-", 0, 0], N = B[0], z = 60 * +B[1] + +B[2];
|
|
2184
2184
|
return z === 0 ? 0 : N === "+" ? z : -z;
|
|
2185
|
-
}(
|
|
2186
|
-
var F = Math.abs(
|
|
2187
|
-
if (h) return y.$offset = F, y.$u =
|
|
2188
|
-
if (
|
|
2185
|
+
}(g), g === null)) return this;
|
|
2186
|
+
var F = Math.abs(g) <= 16 ? 60 * g : g, y = this;
|
|
2187
|
+
if (h) return y.$offset = F, y.$u = g === 0, y;
|
|
2188
|
+
if (g !== 0) {
|
|
2189
2189
|
var X = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
2190
2190
|
(y = this.local().add(F + X, e)).$offset = F, y.$x.$localOffset = X;
|
|
2191
2191
|
} else y = this.utc();
|
|
2192
2192
|
return y;
|
|
2193
2193
|
};
|
|
2194
2194
|
var f = n.format;
|
|
2195
|
-
n.format = function(
|
|
2196
|
-
var h =
|
|
2195
|
+
n.format = function(g) {
|
|
2196
|
+
var h = g || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
2197
2197
|
return f.call(this, h);
|
|
2198
2198
|
}, n.valueOf = function() {
|
|
2199
|
-
var
|
|
2200
|
-
return this.$d.valueOf() - 6e4 *
|
|
2199
|
+
var g = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
2200
|
+
return this.$d.valueOf() - 6e4 * g;
|
|
2201
2201
|
}, n.isUTC = function() {
|
|
2202
2202
|
return !!this.$u;
|
|
2203
2203
|
}, n.toISOString = function() {
|
|
@@ -2205,14 +2205,14 @@ var qu = { exports: {} };
|
|
|
2205
2205
|
}, n.toString = function() {
|
|
2206
2206
|
return this.toDate().toUTCString();
|
|
2207
2207
|
};
|
|
2208
|
-
var
|
|
2209
|
-
n.toDate = function(
|
|
2210
|
-
return
|
|
2208
|
+
var q = n.toDate;
|
|
2209
|
+
n.toDate = function(g) {
|
|
2210
|
+
return g === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : q.call(this);
|
|
2211
2211
|
};
|
|
2212
2212
|
var v = n.diff;
|
|
2213
|
-
n.diff = function(
|
|
2214
|
-
if (
|
|
2215
|
-
var F = this.local(), y = l(
|
|
2213
|
+
n.diff = function(g, h, x) {
|
|
2214
|
+
if (g && this.$u === g.$u) return v.call(this, g, h, x);
|
|
2215
|
+
var F = this.local(), y = l(g).local();
|
|
2216
2216
|
return v.call(F, y, h, x);
|
|
2217
2217
|
};
|
|
2218
2218
|
};
|
|
@@ -2240,7 +2240,7 @@ var Xu = { exports: {} };
|
|
|
2240
2240
|
}], f = function(h) {
|
|
2241
2241
|
var x = n[h];
|
|
2242
2242
|
return x && (x.indexOf ? x : x.s.concat(x.f));
|
|
2243
|
-
},
|
|
2243
|
+
}, q = function(h, x) {
|
|
2244
2244
|
var F, y = n.meridiem;
|
|
2245
2245
|
if (y) {
|
|
2246
2246
|
for (var X = 1; X <= 24; X += 1) if (h.indexOf(y(X, 0, x)) > -1) {
|
|
@@ -2250,9 +2250,9 @@ var Xu = { exports: {} };
|
|
|
2250
2250
|
} else F = h === (x ? "pm" : "PM");
|
|
2251
2251
|
return F;
|
|
2252
2252
|
}, v = { A: [l, function(h) {
|
|
2253
|
-
this.afternoon =
|
|
2253
|
+
this.afternoon = q(h, !1);
|
|
2254
2254
|
}], a: [l, function(h) {
|
|
2255
|
-
this.afternoon =
|
|
2255
|
+
this.afternoon = q(h, !0);
|
|
2256
2256
|
}], Q: [i, function(h) {
|
|
2257
2257
|
this.month = 3 * (h - 1) + 1;
|
|
2258
2258
|
}], S: [i, function(h) {
|
|
@@ -2277,7 +2277,7 @@ var Xu = { exports: {} };
|
|
|
2277
2277
|
}], Y: [/[+-]?\d+/, c("year")], YY: [r, function(h) {
|
|
2278
2278
|
this.year = d(h);
|
|
2279
2279
|
}], YYYY: [/\d{4}/, c("year")], Z: u, ZZ: u };
|
|
2280
|
-
function
|
|
2280
|
+
function g(h) {
|
|
2281
2281
|
var x, F;
|
|
2282
2282
|
x = h, F = n && n.formats;
|
|
2283
2283
|
for (var y = (h = x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(M, O, K) {
|
|
@@ -2319,7 +2319,7 @@ var Xu = { exports: {} };
|
|
|
2319
2319
|
O && (E = N[2]), n = this.$locale(), !M && E && (n = F.Ls[E]), this.$d = function(D, $, H, G) {
|
|
2320
2320
|
try {
|
|
2321
2321
|
if (["x", "X"].indexOf($) > -1) return new Date(($ === "X" ? 1e3 : 1) * D);
|
|
2322
|
-
var Z =
|
|
2322
|
+
var Z = g($)(D), ae = Z.year, fe = Z.month, Ve = Z.day, Ke = Z.hours, Re = Z.minutes, Ae = Z.seconds, Q = Z.milliseconds, ue = Z.zone, ce = Z.week, we = /* @__PURE__ */ new Date(), Oe = Ve || (ae || fe ? 1 : we.getDate()), pe = ae || we.getFullYear(), se = 0;
|
|
2323
2323
|
ae && !fe || (se = fe > 0 ? fe - 1 : we.getMonth());
|
|
2324
2324
|
var Ye, nt = Ke || 0, lt = Re || 0, Te = Ae || 0, dt = Q || 0;
|
|
2325
2325
|
return ue ? new Date(Date.UTC(pe, se, Oe, nt, lt, Te, dt + 60 * ue.offset * 1e3)) : H ? new Date(Date.UTC(pe, se, Oe, nt, lt, Te, dt)) : (Ye = new Date(pe, se, Oe, nt, lt, Te, dt), ce && (Ye = G(Ye).week(ce).toDate()), Ye);
|
|
@@ -2423,19 +2423,20 @@ function pi(a = void 0) {
|
|
|
2423
2423
|
}, s = (n) => {
|
|
2424
2424
|
for (const d in n)
|
|
2425
2425
|
n[d].error = "";
|
|
2426
|
-
}, i = (n, d
|
|
2426
|
+
}, i = (n, d = {}) => {
|
|
2427
2427
|
if (!a || !localStorage) return;
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2428
|
+
const { showAdvancedFilter: c, callback: u } = d;
|
|
2429
|
+
let f = !1;
|
|
2430
|
+
const q = localStorage.getItem(a);
|
|
2431
|
+
if (!q) return;
|
|
2432
|
+
const v = JSON.parse(q);
|
|
2433
|
+
if (Qi(v)) {
|
|
2434
|
+
for (const g in n)
|
|
2434
2435
|
try {
|
|
2435
|
-
L(g
|
|
2436
|
+
L(v[g]) || (n[g].model = v[g], n[g].advanced && (f = !0));
|
|
2436
2437
|
} catch {
|
|
2437
2438
|
}
|
|
2438
|
-
|
|
2439
|
+
c && f && (c.value = !0), u && u(f);
|
|
2439
2440
|
}
|
|
2440
2441
|
}, r = (n) => {
|
|
2441
2442
|
if (!a || !localStorage) return;
|
|
@@ -2507,21 +2508,21 @@ const yn = /* @__PURE__ */ W({
|
|
|
2507
2508
|
var w;
|
|
2508
2509
|
((w = X == null ? void 0 : X.value) == null ? void 0 : w.titleT) !== I.titleT && c(I);
|
|
2509
2510
|
});
|
|
2510
|
-
},
|
|
2511
|
-
qe(
|
|
2512
|
-
if (d(
|
|
2513
|
-
|
|
2511
|
+
}, q = S(void 0);
|
|
2512
|
+
qe(q, () => {
|
|
2513
|
+
if (d(q)) {
|
|
2514
|
+
q.value.model = e.value, v.value = q.value, f(q);
|
|
2514
2515
|
return;
|
|
2515
2516
|
}
|
|
2516
|
-
|
|
2517
|
+
g(e.value);
|
|
2517
2518
|
});
|
|
2518
2519
|
const v = S(void 0);
|
|
2519
2520
|
qe(e, (X) => {
|
|
2520
|
-
|
|
2521
|
+
g(X);
|
|
2521
2522
|
});
|
|
2522
|
-
const
|
|
2523
|
-
if (d(
|
|
2524
|
-
|
|
2523
|
+
const g = (X) => {
|
|
2524
|
+
if (d(q)) {
|
|
2525
|
+
q.value.model = X;
|
|
2525
2526
|
return;
|
|
2526
2527
|
}
|
|
2527
2528
|
const A = h(X);
|
|
@@ -2538,8 +2539,8 @@ const yn = /* @__PURE__ */ W({
|
|
|
2538
2539
|
return i.value;
|
|
2539
2540
|
}
|
|
2540
2541
|
}, x = _(() => {
|
|
2541
|
-
if (d(
|
|
2542
|
-
return n(
|
|
2542
|
+
if (d(q))
|
|
2543
|
+
return n(q.value.titleT ?? "");
|
|
2543
2544
|
if (d(v))
|
|
2544
2545
|
return n(v.value.titleT ?? "");
|
|
2545
2546
|
const X = [];
|
|
@@ -2566,8 +2567,8 @@ const yn = /* @__PURE__ */ W({
|
|
|
2566
2567
|
name: "append-inner",
|
|
2567
2568
|
fn: p(() => [
|
|
2568
2569
|
m(no, {
|
|
2569
|
-
modelValue:
|
|
2570
|
-
"onUpdate:modelValue": A[0] || (A[0] = (b) =>
|
|
2570
|
+
modelValue: q.value,
|
|
2571
|
+
"onUpdate:modelValue": A[0] || (A[0] = (b) => q.value = b),
|
|
2571
2572
|
divided: "",
|
|
2572
2573
|
class: "override-toggle"
|
|
2573
2574
|
}, {
|
|
@@ -2990,15 +2991,15 @@ const xV = (a) => Qi(a) && Object.hasOwn(a, "owners"), wV = (a) => Object.hasOwn
|
|
|
2990
2991
|
}), xu = "ROLE_SUPER_ADMIN";
|
|
2991
2992
|
function ho(a) {
|
|
2992
2993
|
const t = CV(), e = (c) => c.split("_")[0], s = (c) => c.includes(xu), i = (c, u) => {
|
|
2993
|
-
const f = e(c),
|
|
2994
|
+
const f = e(c), q = t.getCurrentUserBySystem(f), v = t.isCurrentUserLoadedBySystem(f);
|
|
2994
2995
|
if (L(v))
|
|
2995
2996
|
throw new Error("Composable defineAuth must try to load currentUser first to use can function.");
|
|
2996
|
-
if (L(
|
|
2997
|
+
if (L(q) || L(q.id) || te(q.id) || q.id === 0)
|
|
2997
2998
|
return !1;
|
|
2998
|
-
if (s(
|
|
2999
|
-
const
|
|
3000
|
-
if (L(
|
|
3001
|
-
switch (
|
|
2999
|
+
if (s(q.roles)) return !0;
|
|
3000
|
+
const g = vo(q, "resolvedPermissions." + c);
|
|
3001
|
+
if (L(g)) return !1;
|
|
3002
|
+
switch (g) {
|
|
3002
3003
|
case Ds.Allow:
|
|
3003
3004
|
return !0;
|
|
3004
3005
|
case Ds.Deny:
|
|
@@ -3025,16 +3026,16 @@ function ho(a) {
|
|
|
3025
3026
|
function d(c) {
|
|
3026
3027
|
const u = (F) => {
|
|
3027
3028
|
t.currentUsers.value.set(c, F), t.currentUsersLoaded.value.set(c, !0);
|
|
3028
|
-
}, f = _(() => t.currentUsers.value.get(c)),
|
|
3029
|
-
if (!L(
|
|
3030
|
-
return !
|
|
3029
|
+
}, f = _(() => t.currentUsers.value.get(c)), q = _(() => t.currentUsersLoaded.value.get(c)), v = _(() => f.value ? s(f.value.roles) : !1), g = _(() => f.value ?? !1), h = _(() => {
|
|
3030
|
+
if (!L(q.value))
|
|
3031
|
+
return !g.value;
|
|
3031
3032
|
});
|
|
3032
3033
|
return {
|
|
3033
3034
|
currentUser: f,
|
|
3034
3035
|
setCurrentUser: u,
|
|
3035
3036
|
isSuperAdmin: v,
|
|
3036
3037
|
isAnonymous: h,
|
|
3037
|
-
hasCurrentUser:
|
|
3038
|
+
hasCurrentUser: g,
|
|
3038
3039
|
fetchCurrentUser: async (F, y = "/adm/v1/users/current", X = void 0, A = "user") => {
|
|
3039
3040
|
try {
|
|
3040
3041
|
const b = await jt(F, y, X, c, A);
|
|
@@ -3062,7 +3063,7 @@ const kV = /* @__PURE__ */ W({
|
|
|
3062
3063
|
},
|
|
3063
3064
|
setup(a) {
|
|
3064
3065
|
const t = a, e = S(!1), s = _(() => t.permission.split("_")[0] || "");
|
|
3065
|
-
return
|
|
3066
|
+
return gt(() => {
|
|
3066
3067
|
const { can: i, useCurrentUser: r } = ho(s.value), { currentUser: o } = r(s.value);
|
|
3067
3068
|
qe(
|
|
3068
3069
|
o,
|
|
@@ -3210,8 +3211,8 @@ const ep = { class: "a-datetime-picker-time" }, tp = { class: "a-datetime-picker
|
|
|
3210
3211
|
// eslint-disable-next-line vue/no-ref-object-reactivity-loss
|
|
3211
3212
|
e.value ? String(e.value.minutes).padStart(2, "0") : "00"
|
|
3212
3213
|
), r = S(null), o = async (v) => {
|
|
3213
|
-
const
|
|
3214
|
-
await Jt(),
|
|
3214
|
+
const g = v.target;
|
|
3215
|
+
await Jt(), g == null || g.select();
|
|
3215
3216
|
}, l = () => {
|
|
3216
3217
|
const v = parseInt(s.value || "0");
|
|
3217
3218
|
s.value = v >= 0 && v <= 23 ? String(v).padStart(2, "0") : "00";
|
|
@@ -3219,33 +3220,33 @@ const ep = { class: "a-datetime-picker-time" }, tp = { class: "a-datetime-picker
|
|
|
3219
3220
|
const v = parseInt(i.value || "0");
|
|
3220
3221
|
i.value = v >= 0 && v <= 59 ? String(v).padStart(2, "0") : "00";
|
|
3221
3222
|
}, d = () => {
|
|
3222
|
-
const v = parseInt(s.value || "0"),
|
|
3223
|
-
s.value = String(
|
|
3223
|
+
const v = parseInt(s.value || "0"), g = isNaN(v) ? 1 : (v + 1) % 24;
|
|
3224
|
+
s.value = String(g).padStart(2, "0");
|
|
3224
3225
|
}, c = () => {
|
|
3225
|
-
const v = parseInt(s.value || "0"),
|
|
3226
|
-
s.value = String(
|
|
3226
|
+
const v = parseInt(s.value || "0"), g = isNaN(v) ? 23 : (v - 1 + 24) % 24;
|
|
3227
|
+
s.value = String(g).padStart(2, "0");
|
|
3227
3228
|
}, u = () => {
|
|
3228
|
-
const v = parseInt(i.value || "0"),
|
|
3229
|
-
i.value = String(
|
|
3229
|
+
const v = parseInt(i.value || "0"), g = isNaN(v) ? 1 : (v + 1) % 60;
|
|
3230
|
+
i.value = String(g).padStart(2, "0");
|
|
3230
3231
|
}, f = () => {
|
|
3231
|
-
const v = parseInt(i.value || "0"),
|
|
3232
|
-
i.value = String(
|
|
3233
|
-
},
|
|
3232
|
+
const v = parseInt(i.value || "0"), g = isNaN(v) ? 59 : (v - 1 + 60) % 60;
|
|
3233
|
+
i.value = String(g).padStart(2, "0");
|
|
3234
|
+
}, q = () => {
|
|
3234
3235
|
var v;
|
|
3235
3236
|
(v = r.value) == null || v.focus();
|
|
3236
3237
|
};
|
|
3237
|
-
return qe([s, i], ([v,
|
|
3238
|
-
if (v === h &&
|
|
3239
|
-
const F = parseInt(v ?? (e.value ? e.value.hours.toString() : "12")), y = parseInt(
|
|
3238
|
+
return qe([s, i], ([v, g], [h, x]) => {
|
|
3239
|
+
if (v === h && g === x) return;
|
|
3240
|
+
const F = parseInt(v ?? (e.value ? e.value.hours.toString() : "12")), y = parseInt(g ?? (e.value ? e.value.minutes.toString() : "0"));
|
|
3240
3241
|
F >= 0 && F <= 23 && y >= 0 && y <= 59 && (e.value = { hours: F, minutes: y });
|
|
3241
3242
|
}), t({
|
|
3242
|
-
focus:
|
|
3243
|
-
}), (v,
|
|
3243
|
+
focus: q
|
|
3244
|
+
}), (v, g) => (Y(), R("div", ep, [
|
|
3244
3245
|
U("div", tp, [
|
|
3245
3246
|
da(U("input", {
|
|
3246
3247
|
ref_key: "hoursRef",
|
|
3247
3248
|
ref: r,
|
|
3248
|
-
"onUpdate:modelValue":
|
|
3249
|
+
"onUpdate:modelValue": g[0] || (g[0] = (h) => s.value = h),
|
|
3249
3250
|
class: "a-datetime-picker-time__input a-datetime-picker-time__input--hours",
|
|
3250
3251
|
type: "number",
|
|
3251
3252
|
"aria-label": "Hour",
|
|
@@ -3272,10 +3273,10 @@ const ep = { class: "a-datetime-picker-time" }, tp = { class: "a-datetime-picker
|
|
|
3272
3273
|
})
|
|
3273
3274
|
])
|
|
3274
3275
|
]),
|
|
3275
|
-
|
|
3276
|
+
g[2] || (g[2] = U("span", { class: "a-datetime-picker-time__separator" }, ":", -1)),
|
|
3276
3277
|
U("div", sp, [
|
|
3277
3278
|
da(U("input", {
|
|
3278
|
-
"onUpdate:modelValue":
|
|
3279
|
+
"onUpdate:modelValue": g[1] || (g[1] = (h) => i.value = h),
|
|
3279
3280
|
class: "a-datetime-picker-time__input a-datetime-picker-time__input--minutes",
|
|
3280
3281
|
type: "number",
|
|
3281
3282
|
"aria-label": "Minute",
|
|
@@ -3328,11 +3329,11 @@ const ep = { class: "a-datetime-picker-time" }, tp = { class: "a-datetime-picker
|
|
|
3328
3329
|
setup(a, { emit: t }) {
|
|
3329
3330
|
const e = a, s = t;
|
|
3330
3331
|
Me.extend(Yu), Me.extend(Au);
|
|
3331
|
-
const i = S(!1), r = S(0), o = S(0), l = S(null), n = S(""), d = S(null), c = S(null), u = S(null), { t: f } = ee(),
|
|
3332
|
+
const i = S(!1), r = S(0), o = S(0), l = S(null), n = S(""), d = S(null), c = S(null), u = S(null), { t: f } = ee(), q = _(() => e.type === "datetime" ? "dd.mm.yyyy hh:mm" : "dd.mm.yyyy"), { requiredIf: v } = Ys(), g = _(() => ({
|
|
3332
3333
|
textFieldValue: {
|
|
3333
3334
|
required: v(e.required)
|
|
3334
3335
|
}
|
|
3335
|
-
})), h = ma(
|
|
3336
|
+
})), h = ma(g, { textFieldValue: n }), x = _(() => e.type === "datetime" ? "DD.MM.YYYY HH:mm" : "DD.MM.YYYY"), F = (M) => {
|
|
3336
3337
|
te(M) || ((te(c.value) || M.hour() !== c.value.hours || M.minute() !== c.value.minutes) && (c.value = { hours: M.hour(), minutes: M.minute() }), (te(d.value) || M.year() !== d.value.getFullYear() || M.month() !== d.value.getMonth() || M.date() !== d.value.getDate()) && (d.value = M.toDate()));
|
|
3337
3338
|
};
|
|
3338
3339
|
qe(
|
|
@@ -3409,7 +3410,7 @@ const ep = { class: "a-datetime-picker-time" }, tp = { class: "a-datetime-picker
|
|
|
3409
3410
|
"onUpdate:modelValue": O[3] || (O[3] = (K) => n.value = K),
|
|
3410
3411
|
"error-messages": A.value,
|
|
3411
3412
|
"persistent-placeholder": !0,
|
|
3412
|
-
placeholder:
|
|
3413
|
+
placeholder: q.value,
|
|
3413
3414
|
class: "a-datetime-picker",
|
|
3414
3415
|
disabled: M.disabled,
|
|
3415
3416
|
onBlur: b,
|
|
@@ -3524,9 +3525,9 @@ const ep = { class: "a-datetime-picker-time" }, tp = { class: "a-datetime-picker
|
|
|
3524
3525
|
}
|
|
3525
3526
|
const c = S(!1), u = S(!1), f = () => {
|
|
3526
3527
|
c.value = !0, n.value();
|
|
3527
|
-
},
|
|
3528
|
+
}, q = () => {
|
|
3528
3529
|
o.value(e.modelValue), c.value = !0;
|
|
3529
|
-
}, { t: v } = ee(),
|
|
3530
|
+
}, { t: v } = ee(), g = at(_a, void 0), h = at(Sa, void 0), x = () => {
|
|
3530
3531
|
var B;
|
|
3531
3532
|
u.value = !1, s("blur", L(e.modelValue) ? null : e.modelValue), (B = e.v) == null || B.$touch(), c.value === !1 && o.value(e.modelValue);
|
|
3532
3533
|
}, F = () => {
|
|
@@ -3537,9 +3538,9 @@ const ep = { class: "a-datetime-picker-time" }, tp = { class: "a-datetime-picker
|
|
|
3537
3538
|
}), X = _(() => {
|
|
3538
3539
|
var N, z;
|
|
3539
3540
|
if (he(e.label)) return e.label;
|
|
3540
|
-
if (L(
|
|
3541
|
+
if (L(g) || L(h) || L((N = e.v) == null ? void 0 : N.$path)) return "";
|
|
3541
3542
|
const { end: B } = Ua((z = e.v) == null ? void 0 : z.$path, ".");
|
|
3542
|
-
return v(
|
|
3543
|
+
return v(g + "." + h + ".model." + B);
|
|
3543
3544
|
}), A = _(() => {
|
|
3544
3545
|
var B, N;
|
|
3545
3546
|
return he(e.required) ? e.required : !!((B = e.v) != null && B.required && ((N = e.v) == null ? void 0 : N.required.$params.type) === "required");
|
|
@@ -3558,7 +3559,7 @@ const ep = { class: "a-datetime-picker-time" }, tp = { class: "a-datetime-picker
|
|
|
3558
3559
|
onBlur: x,
|
|
3559
3560
|
onFocus: F,
|
|
3560
3561
|
onOnOpen: f,
|
|
3561
|
-
onOnClose:
|
|
3562
|
+
onOnClose: q
|
|
3562
3563
|
}, {
|
|
3563
3564
|
"append-inner": p(() => [
|
|
3564
3565
|
de(B.$slots, "locked", { userId: d.value }, () => [
|
|
@@ -3613,15 +3614,15 @@ const ep = { class: "a-datetime-picker-time" }, tp = { class: "a-datetime-picker
|
|
|
3613
3614
|
{ immediate: !0 }
|
|
3614
3615
|
);
|
|
3615
3616
|
}
|
|
3616
|
-
const { t: c } = ee(), u = at(_a, void 0), f = at(Sa, void 0),
|
|
3617
|
+
const { t: c } = ee(), u = at(_a, void 0), f = at(Sa, void 0), q = S(!1), v = S(!1), g = S(!1), h = () => {
|
|
3617
3618
|
var N;
|
|
3618
|
-
v.value = !1, s("blur", L(e.modelValue) ? null : e.modelValue), (N = e.v) == null || N.$touch(),
|
|
3619
|
+
v.value = !1, s("blur", L(e.modelValue) ? null : e.modelValue), (N = e.v) == null || N.$touch(), g.value === !1 && o.value(e.modelValue);
|
|
3619
3620
|
}, x = () => {
|
|
3620
3621
|
v.value = !0, n.value();
|
|
3621
3622
|
}, F = () => {
|
|
3622
|
-
|
|
3623
|
+
g.value = !0, n.value();
|
|
3623
3624
|
}, y = () => {
|
|
3624
|
-
|
|
3625
|
+
g.value = !1, o.value(e.modelValue);
|
|
3625
3626
|
}, X = _(() => {
|
|
3626
3627
|
var N, z;
|
|
3627
3628
|
return L(e.errorMessage) ? (z = (N = e.v) == null ? void 0 : N.$errors) != null && z.length ? [e.v.$errors.map((M) => M.$message).join(" ")] : [] : [e.errorMessage];
|
|
@@ -3637,10 +3638,10 @@ const ep = { class: "a-datetime-picker-time" }, tp = { class: "a-datetime-picker
|
|
|
3637
3638
|
(N, z) => {
|
|
3638
3639
|
if (N !== z) {
|
|
3639
3640
|
if (te(N) || L(N)) {
|
|
3640
|
-
|
|
3641
|
+
q.value = !1;
|
|
3641
3642
|
return;
|
|
3642
3643
|
}
|
|
3643
|
-
|
|
3644
|
+
q.value = !0;
|
|
3644
3645
|
}
|
|
3645
3646
|
},
|
|
3646
3647
|
{ immediate: !0 }
|
|
@@ -3663,15 +3664,15 @@ const ep = { class: "a-datetime-picker-time" }, tp = { class: "a-datetime-picker
|
|
|
3663
3664
|
i.value = e.defaultActivationValue;
|
|
3664
3665
|
}, B = _(() => he(e.disabled) ? e.disabled : !!d.value);
|
|
3665
3666
|
return qe(i, (N, z) => {
|
|
3666
|
-
N !== z && r.value.enabled && (v.value ||
|
|
3667
|
+
N !== z && r.value.enabled && (v.value || g.value) && l.value(N);
|
|
3667
3668
|
}), (N, z) => (Y(), R(ge, null, [
|
|
3668
3669
|
U("div", cp, [
|
|
3669
3670
|
m(Gi, {
|
|
3670
|
-
modelValue:
|
|
3671
|
-
"onUpdate:modelValue": z[0] || (z[0] = (M) =>
|
|
3671
|
+
modelValue: q.value,
|
|
3672
|
+
"onUpdate:modelValue": z[0] || (z[0] = (M) => q.value = M),
|
|
3672
3673
|
label: A.value,
|
|
3673
3674
|
disabled: B.value,
|
|
3674
|
-
onClick: z[1] || (z[1] = J((M) => b(
|
|
3675
|
+
onClick: z[1] || (z[1] = J((M) => b(q.value), ["stop"]))
|
|
3675
3676
|
}, null, 8, ["modelValue", "label", "disabled"]),
|
|
3676
3677
|
U("div", mp, [
|
|
3677
3678
|
de(N.$slots, "locked", { userId: d.value }, () => [
|
|
@@ -3702,7 +3703,7 @@ const ep = { class: "a-datetime-picker-time" }, tp = { class: "a-datetime-picker
|
|
|
3702
3703
|
_: 1
|
|
3703
3704
|
}, 8, ["modelValue", "data-cy", "error-messages", "clearable", "disabled"])
|
|
3704
3705
|
], 512), [
|
|
3705
|
-
[ps,
|
|
3706
|
+
[ps, q.value]
|
|
3706
3707
|
])
|
|
3707
3708
|
]),
|
|
3708
3709
|
_: 1
|
|
@@ -3819,7 +3820,7 @@ const fp = {
|
|
|
3819
3820
|
{ immediate: !0 }
|
|
3820
3821
|
);
|
|
3821
3822
|
}
|
|
3822
|
-
const
|
|
3823
|
+
const q = S(""), v = S(!1), g = S(void 0), { t: h } = ee(), { innerFilter: x } = ci(e), F = at(_a, void 0), y = at(Sa, void 0), X = () => {
|
|
3823
3824
|
var Q;
|
|
3824
3825
|
v.value = !1, s("blur", i.value), (Q = e.v) == null || Q.$touch(), d.value(i.value);
|
|
3825
3826
|
}, A = _(() => {
|
|
@@ -3856,7 +3857,7 @@ const fp = {
|
|
|
3856
3857
|
let ue = 1, ce = [];
|
|
3857
3858
|
return We(Q) ? (ue = Q.length, ce = D(Q)) : ce = D([Q]), K.value = ce, ce.length === ue;
|
|
3858
3859
|
}, H = S(!1), G = () => {
|
|
3859
|
-
clearTimeout(
|
|
3860
|
+
clearTimeout(g.value), g.value = void 0;
|
|
3860
3861
|
}, Z = async () => {
|
|
3861
3862
|
if (G(), H.value === !0) return;
|
|
3862
3863
|
H.value = !0, I.value = !0;
|
|
@@ -3868,7 +3869,7 @@ const fp = {
|
|
|
3868
3869
|
if (!e.multiple && K.value[0])
|
|
3869
3870
|
return K.value[0].title;
|
|
3870
3871
|
}), Ve = (Q) => {
|
|
3871
|
-
!e.multiple && !v.value && Q.length === 0 || fe.value !== Q && (
|
|
3872
|
+
!e.multiple && !v.value && Q.length === 0 || fe.value !== Q && (q.value = Q);
|
|
3872
3873
|
}, Ke = async () => {
|
|
3873
3874
|
if (O.value = await e.fetchItems(M, x.value), e.multiple) {
|
|
3874
3875
|
i.value = [];
|
|
@@ -3877,12 +3878,12 @@ const fp = {
|
|
|
3877
3878
|
i.value = null;
|
|
3878
3879
|
};
|
|
3879
3880
|
Un(
|
|
3880
|
-
|
|
3881
|
+
q,
|
|
3881
3882
|
(Q, ue) => {
|
|
3882
3883
|
Q !== ue && (l.value++, C(Q, l.value), s("searchChangeDebounced", Q));
|
|
3883
3884
|
},
|
|
3884
3885
|
{ debounce: 300 }
|
|
3885
|
-
), qe(
|
|
3886
|
+
), qe(q, (Q, ue) => {
|
|
3886
3887
|
Q !== ue && s("searchChange", Q);
|
|
3887
3888
|
});
|
|
3888
3889
|
const Re = (Q) => {
|
|
@@ -3900,7 +3901,7 @@ const fp = {
|
|
|
3900
3901
|
if (Q === ue) return;
|
|
3901
3902
|
if (n.value.enabled && v.value && c.value(Q), te(Q) || L(Q) || We(Q) && Q.length === 0) {
|
|
3902
3903
|
if (K.value = [], r.value = We(Q) ? [] : null, o.value = We(Q) ? [] : null, e.disableInitFetch || H.value === !0) return;
|
|
3903
|
-
|
|
3904
|
+
g.value = setTimeout(() => {
|
|
3904
3905
|
Z();
|
|
3905
3906
|
}, 2e3);
|
|
3906
3907
|
return;
|
|
@@ -4010,32 +4011,32 @@ const fp = {
|
|
|
4010
4011
|
emits: ["update:modelValue"],
|
|
4011
4012
|
setup(a, { emit: t }) {
|
|
4012
4013
|
const e = a, s = t, { t: i } = ee(), r = at(_a, void 0), o = at(Sa, void 0), l = _(() => {
|
|
4013
|
-
var
|
|
4014
|
+
var g, h;
|
|
4014
4015
|
if (!L(e.label)) return e.label;
|
|
4015
|
-
if (L(r) || L(o) || L((
|
|
4016
|
+
if (L(r) || L(o) || L((g = e.v) == null ? void 0 : g.$path)) return "";
|
|
4016
4017
|
const { end: v } = Ua((h = e.v) == null ? void 0 : h.$path, ".");
|
|
4017
4018
|
return i(r + "." + o + ".model." + v);
|
|
4018
|
-
}), n = S(!1), d = S(!1), c = S(""), u = _(() => e.modelValue), f = S(e.modelValue),
|
|
4019
|
+
}), n = S(!1), d = S(!1), c = S(""), u = _(() => e.modelValue), f = S(e.modelValue), q = async () => {
|
|
4019
4020
|
if (n.value) return;
|
|
4020
4021
|
if (n.value = !0, d.value = !1, f.value === !0) {
|
|
4021
|
-
const
|
|
4022
|
-
s("update:modelValue", !
|
|
4022
|
+
const g = await e.callbackToFalse();
|
|
4023
|
+
s("update:modelValue", !g), f.value = !g, g || (d.value = !0), n.value = !1;
|
|
4023
4024
|
return;
|
|
4024
4025
|
}
|
|
4025
4026
|
const v = await e.callbackToTrue();
|
|
4026
4027
|
s("update:modelValue", v), f.value = v, v || (d.value = !0), n.value = !1;
|
|
4027
4028
|
};
|
|
4028
|
-
return qe(u, (v,
|
|
4029
|
-
v !==
|
|
4030
|
-
}),
|
|
4029
|
+
return qe(u, (v, g) => {
|
|
4030
|
+
v !== g && (f.value = v, d.value = !1);
|
|
4031
|
+
}), gt(() => {
|
|
4031
4032
|
c.value = "remote-switch-" + Date.now();
|
|
4032
|
-
}), (v,
|
|
4033
|
+
}), (v, g) => (Y(), R("div", pp, [
|
|
4033
4034
|
m(Gi, {
|
|
4034
4035
|
id: c.value,
|
|
4035
4036
|
modelValue: f.value,
|
|
4036
|
-
"onUpdate:modelValue":
|
|
4037
|
+
"onUpdate:modelValue": g[0] || (g[0] = (h) => f.value = h),
|
|
4037
4038
|
disabled: n.value,
|
|
4038
|
-
onClick: J(
|
|
4039
|
+
onClick: J(q, ["stop"])
|
|
4039
4040
|
}, null, 8, ["id", "modelValue", "disabled"]),
|
|
4040
4041
|
v.hideLabel ? j("", !0) : (Y(), R("label", {
|
|
4041
4042
|
key: 0,
|
|
@@ -4056,17 +4057,17 @@ const fp = {
|
|
|
4056
4057
|
},
|
|
4057
4058
|
emits: ["update:modelValue", "blur", "focus"],
|
|
4058
4059
|
setup(a, { emit: t }) {
|
|
4059
|
-
const e = a, s = t, { collabOptions: i } = aa(), r = S((
|
|
4060
|
+
const e = a, s = t, { collabOptions: i } = aa(), r = S((q) => {
|
|
4060
4061
|
}), o = S(() => {
|
|
4061
4062
|
}), l = S(null);
|
|
4062
4063
|
if (i.value.enabled && he(e.collab)) {
|
|
4063
4064
|
const {
|
|
4064
|
-
releaseCollabFieldLock:
|
|
4065
|
+
releaseCollabFieldLock: q,
|
|
4065
4066
|
acquireCollabFieldLock: v,
|
|
4066
|
-
lockedByUser:
|
|
4067
|
+
lockedByUser: g
|
|
4067
4068
|
} = Fs(e.collab.room, e.collab.field);
|
|
4068
|
-
r.value =
|
|
4069
|
-
|
|
4069
|
+
r.value = q, o.value = v, qe(
|
|
4070
|
+
g,
|
|
4070
4071
|
(h) => {
|
|
4071
4072
|
l.value = h;
|
|
4072
4073
|
},
|
|
@@ -4077,37 +4078,37 @@ const fp = {
|
|
|
4077
4078
|
o.value(), setTimeout(() => {
|
|
4078
4079
|
r.value(e.modelValue);
|
|
4079
4080
|
}, 500);
|
|
4080
|
-
}, d = (
|
|
4081
|
-
s("update:modelValue",
|
|
4081
|
+
}, d = (q) => {
|
|
4082
|
+
s("update:modelValue", q);
|
|
4082
4083
|
}, c = () => {
|
|
4083
4084
|
s("blur", e.modelValue), r.value(e.modelValue);
|
|
4084
4085
|
}, u = () => {
|
|
4085
4086
|
s("focus", e.modelValue), o.value();
|
|
4086
4087
|
}, f = _(() => he(e.disabled) ? e.disabled : !!l.value);
|
|
4087
|
-
return (
|
|
4088
|
-
"data-cy":
|
|
4089
|
-
"model-value":
|
|
4088
|
+
return (q, v) => (Y(), T(fi, {
|
|
4089
|
+
"data-cy": q.dataCy,
|
|
4090
|
+
"model-value": q.modelValue,
|
|
4090
4091
|
disabled: f.value,
|
|
4091
4092
|
onBlur: c,
|
|
4092
4093
|
onFocus: u,
|
|
4093
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
4094
|
+
"onUpdate:modelValue": v[0] || (v[0] = (g) => d(g)),
|
|
4094
4095
|
onClick: J(n, ["stop"])
|
|
4095
4096
|
}, ua({ _: 2 }, [
|
|
4096
|
-
|
|
4097
|
+
q.hideLabel ? void 0 : {
|
|
4097
4098
|
name: "label",
|
|
4098
4099
|
fn: p(() => [
|
|
4099
|
-
P(k(
|
|
4100
|
+
P(k(q.label), 1)
|
|
4100
4101
|
]),
|
|
4101
4102
|
key: "0"
|
|
4102
4103
|
},
|
|
4103
4104
|
l.value ? {
|
|
4104
4105
|
name: "append",
|
|
4105
4106
|
fn: p(() => [
|
|
4106
|
-
de(
|
|
4107
|
-
|
|
4107
|
+
de(q.$slots, "locked", { userId: l.value }, () => [
|
|
4108
|
+
q.collab ? (Y(), T(Zt, {
|
|
4108
4109
|
key: 0,
|
|
4109
4110
|
id: l.value,
|
|
4110
|
-
users:
|
|
4111
|
+
users: q.collab.cachedUsers
|
|
4111
4112
|
}, null, 8, ["id", "users"])) : j("", !0)
|
|
4112
4113
|
])
|
|
4113
4114
|
]),
|
|
@@ -4129,26 +4130,26 @@ const fp = {
|
|
|
4129
4130
|
emits: ["update:modelValue"],
|
|
4130
4131
|
setup(a, { emit: t }) {
|
|
4131
4132
|
const e = a, s = t, { t: i } = ee(), r = at(_a, void 0), o = at(Sa, void 0), l = _(() => {
|
|
4132
|
-
var
|
|
4133
|
+
var g, h;
|
|
4133
4134
|
if (!L(e.label)) return e.label;
|
|
4134
|
-
if (L(r) || L(o) || L((
|
|
4135
|
+
if (L(r) || L(o) || L((g = e.v) == null ? void 0 : g.$path)) return "";
|
|
4135
4136
|
const { end: v } = Ua((h = e.v) == null ? void 0 : h.$path, ".");
|
|
4136
4137
|
return i(r + "." + o + ".model." + v);
|
|
4137
|
-
}), n = S(!1), d = S(!1), c = S(""), u = _(() => e.modelValue), f = S(e.modelValue),
|
|
4138
|
+
}), n = S(!1), d = S(!1), c = S(""), u = _(() => e.modelValue), f = S(e.modelValue), q = async () => {
|
|
4138
4139
|
if (n.value) return;
|
|
4139
4140
|
if (n.value = !0, d.value = !1, f.value === !0) {
|
|
4140
|
-
const
|
|
4141
|
-
s("update:modelValue", !
|
|
4141
|
+
const g = await e.callbackToFalse();
|
|
4142
|
+
s("update:modelValue", !g), f.value = !g, g || (d.value = !0), n.value = !1;
|
|
4142
4143
|
return;
|
|
4143
4144
|
}
|
|
4144
4145
|
const v = await e.callbackToTrue();
|
|
4145
4146
|
s("update:modelValue", v), f.value = v, v || (d.value = !0), n.value = !1;
|
|
4146
4147
|
};
|
|
4147
|
-
return qe(u, (v,
|
|
4148
|
-
v !==
|
|
4149
|
-
}),
|
|
4148
|
+
return qe(u, (v, g) => {
|
|
4149
|
+
v !== g && (f.value = v, d.value = !1);
|
|
4150
|
+
}), gt(() => {
|
|
4150
4151
|
c.value = "a-remote-switch-" + Date.now();
|
|
4151
|
-
}), (v,
|
|
4152
|
+
}), (v, g) => (Y(), R("div", hp, [
|
|
4152
4153
|
m(ie, {
|
|
4153
4154
|
id: c.value,
|
|
4154
4155
|
icon: "",
|
|
@@ -4157,17 +4158,17 @@ const fp = {
|
|
|
4157
4158
|
ripple: !1,
|
|
4158
4159
|
width: v.hideLabel ? 36 : void 0,
|
|
4159
4160
|
height: 36,
|
|
4160
|
-
onClick: J(
|
|
4161
|
+
onClick: J(q, ["stop"])
|
|
4161
4162
|
}, {
|
|
4162
4163
|
default: p(() => [
|
|
4163
4164
|
m(fi, {
|
|
4164
4165
|
modelValue: f.value,
|
|
4165
|
-
"onUpdate:modelValue":
|
|
4166
|
+
"onUpdate:modelValue": g[0] || (g[0] = (h) => f.value = h),
|
|
4166
4167
|
loading: n.value,
|
|
4167
4168
|
disabled: n.value,
|
|
4168
4169
|
"hide-details": v.hideDetails,
|
|
4169
4170
|
density: "compact",
|
|
4170
|
-
onClick: J(
|
|
4171
|
+
onClick: J(q, ["stop"])
|
|
4171
4172
|
}, ua({ _: 2 }, [
|
|
4172
4173
|
d.value ? {
|
|
4173
4174
|
name: "append",
|
|
@@ -4240,11 +4241,11 @@ const fp = {
|
|
|
4240
4241
|
{ immediate: !0 }
|
|
4241
4242
|
);
|
|
4242
4243
|
}
|
|
4243
|
-
const c = at(_a, void 0), u = at(Sa, void 0), { t: f } = ee(),
|
|
4244
|
+
const c = at(_a, void 0), u = at(Sa, void 0), { t: f } = ee(), q = S(!1), v = () => {
|
|
4244
4245
|
var A;
|
|
4245
|
-
|
|
4246
|
-
},
|
|
4247
|
-
|
|
4246
|
+
q.value = !1, s("blur", e.modelValue), (A = e.v) == null || A.$touch(), o.value(e.modelValue);
|
|
4247
|
+
}, g = () => {
|
|
4248
|
+
q.value = !0, s("focus", e.modelValue), n.value();
|
|
4248
4249
|
}, h = _(() => {
|
|
4249
4250
|
var A, b;
|
|
4250
4251
|
return he(e.errorMessage) ? [e.errorMessage] : (b = (A = e.v) == null ? void 0 : A.$errors) != null && b.length ? e.v.$errors.map((B) => B.$message) : [];
|
|
@@ -4261,7 +4262,7 @@ const fp = {
|
|
|
4261
4262
|
return qe(
|
|
4262
4263
|
i,
|
|
4263
4264
|
async (A, b) => {
|
|
4264
|
-
A !== b && r.value.enabled &&
|
|
4265
|
+
A !== b && r.value.enabled && q.value && l.value(A);
|
|
4265
4266
|
},
|
|
4266
4267
|
{ immediate: !0 }
|
|
4267
4268
|
), (A, b) => (Y(), T(Zi, {
|
|
@@ -4276,7 +4277,7 @@ const fp = {
|
|
|
4276
4277
|
"error-messages": h.value,
|
|
4277
4278
|
"data-cy": A.dataCy,
|
|
4278
4279
|
onBlur: v,
|
|
4279
|
-
onFocus:
|
|
4280
|
+
onFocus: g
|
|
4280
4281
|
}, ua({
|
|
4281
4282
|
label: p(() => [
|
|
4282
4283
|
A.hideLabel ? j("", !0) : (Y(), R("span", gp, [
|
|
@@ -4353,11 +4354,11 @@ const fp = {
|
|
|
4353
4354
|
}
|
|
4354
4355
|
}), r = S(""), o = S(!1), l = S(void 0), n = S(0), { t: d } = ee(), { innerFilter: c } = ci(e), u = () => {
|
|
4355
4356
|
o.value = !0;
|
|
4356
|
-
}, f = _(() => e.modelValue.titleT ? d(e.modelValue.titleT) : void 0),
|
|
4357
|
+
}, f = _(() => e.modelValue.titleT ? d(e.modelValue.titleT) : void 0), q = _(() => e.modelValue.multiple !== !1), v = Ps(e.filterSortBy), g = S([]), h = S([]), x = _(() => {
|
|
4357
4358
|
const I = /* @__PURE__ */ new Map();
|
|
4358
4359
|
return h.value.forEach((w) => {
|
|
4359
4360
|
I.set(w.value, { value: w.value, title: w.title, subtitle: w.subtitle });
|
|
4360
|
-
}),
|
|
4361
|
+
}), g.value.forEach((w) => {
|
|
4361
4362
|
I.set(w.value, { value: w.value, title: w.title, subtitle: w.subtitle });
|
|
4362
4363
|
}), Array.from(I, ([w, C]) => ({ value: w, title: C.title, subtitle: C.subtitle }));
|
|
4363
4364
|
}), F = S(!1), y = async (I, w) => {
|
|
@@ -4365,7 +4366,7 @@ const fp = {
|
|
|
4365
4366
|
const C = c.value[e.filterByField];
|
|
4366
4367
|
C.model = I;
|
|
4367
4368
|
const D = await e.fetchItems(v, c.value);
|
|
4368
|
-
w === n.value && (
|
|
4369
|
+
w === n.value && (g.value = D), F.value = !1;
|
|
4369
4370
|
}, X = (I) => {
|
|
4370
4371
|
const w = x.value.filter((C) => I.includes(C.value));
|
|
4371
4372
|
return [].concat(w);
|
|
@@ -4378,7 +4379,7 @@ const fp = {
|
|
|
4378
4379
|
if (B(), b.value === !0) return;
|
|
4379
4380
|
b.value = !0, F.value = !0;
|
|
4380
4381
|
const I = await e.fetchItems(v, c.value);
|
|
4381
|
-
n.value === 0 && (
|
|
4382
|
+
n.value === 0 && (g.value = I), F.value = !1;
|
|
4382
4383
|
}, z = () => {
|
|
4383
4384
|
o.value = !0, B(), N();
|
|
4384
4385
|
}, M = _(() => {
|
|
@@ -4387,7 +4388,7 @@ const fp = {
|
|
|
4387
4388
|
}), O = (I) => {
|
|
4388
4389
|
!e.modelValue.multiple && !o.value && I.length === 0 || M.value !== I && (r.value = I);
|
|
4389
4390
|
}, K = async () => {
|
|
4390
|
-
if (
|
|
4391
|
+
if (g.value = await e.fetchItems(v, c.value), e.modelValue.multiple) {
|
|
4391
4392
|
i.value = [];
|
|
4392
4393
|
return;
|
|
4393
4394
|
}
|
|
@@ -4425,7 +4426,7 @@ const fp = {
|
|
|
4425
4426
|
items: x.value,
|
|
4426
4427
|
"no-filter": "",
|
|
4427
4428
|
placeholder: E.value,
|
|
4428
|
-
multiple:
|
|
4429
|
+
multiple: q.value,
|
|
4429
4430
|
clearable: !I.modelValue.mandatory,
|
|
4430
4431
|
label: f.value,
|
|
4431
4432
|
chips: I.modelValue.multiple,
|
|
@@ -4901,7 +4902,7 @@ const yD = /* @__PURE__ */ W({
|
|
|
4901
4902
|
o > 0 ? r.value = setTimeout(() => i.value--, 1e3) : s("done");
|
|
4902
4903
|
},
|
|
4903
4904
|
{ immediate: !0 }
|
|
4904
|
-
),
|
|
4905
|
+
), gt(() => {
|
|
4905
4906
|
i.value = e.seconds;
|
|
4906
4907
|
}), so(() => {
|
|
4907
4908
|
clearTimeout(r.value), r.value = void 0;
|
|
@@ -4914,7 +4915,7 @@ const yD = /* @__PURE__ */ W({
|
|
|
4914
4915
|
}
|
|
4915
4916
|
}), Mp = S(/* @__PURE__ */ new Set());
|
|
4916
4917
|
function $p(a, t = !1, e = void 0, s = void 0, i = !1) {
|
|
4917
|
-
const { collabSocket: r, collabRoomInfoState: o, collabFieldDataBufferState: l, collabFieldLocksState: n } = co(), d = Qd(), c = S(), u = S(), f = iu(),
|
|
4918
|
+
const { collabSocket: r, collabRoomInfoState: o, collabFieldDataBufferState: l, collabFieldLocksState: n } = co(), d = Qd(), c = S(), u = S(), f = iu(), q = S(), v = S(), g = au(), h = S(), x = S(), F = su(), y = S(), X = S(), A = nu(), b = S(), B = S(), N = ru(), z = S(), M = S(), O = ou(), K = S(), E = S(), I = lu(), w = S(), C = S(), D = eu(), $ = S(), H = S(), G = () => {
|
|
4918
4919
|
he(u.value) && u.value();
|
|
4919
4920
|
}, Z = (me) => {
|
|
4920
4921
|
me.room === a && he(v.value) && v.value(me.userId, me.timestamp);
|
|
@@ -4933,9 +4934,9 @@ function $p(a, t = !1, e = void 0, s = void 0, i = !1) {
|
|
|
4933
4934
|
}, Q = (me) => {
|
|
4934
4935
|
me.room === a && he(H.value) && H.value(me.startedCallback);
|
|
4935
4936
|
}, ue = (me) => {
|
|
4936
|
-
v.value = me,
|
|
4937
|
+
v.value = me, q.value = f.on(Z);
|
|
4937
4938
|
}, ce = (me) => {
|
|
4938
|
-
x.value = me, h.value =
|
|
4939
|
+
x.value = me, h.value = g.on(ae);
|
|
4939
4940
|
}, we = (me) => {
|
|
4940
4941
|
X.value = me, y.value = F.on(fe);
|
|
4941
4942
|
}, Oe = (me) => {
|
|
@@ -4958,7 +4959,7 @@ function $p(a, t = !1, e = void 0, s = void 0, i = !1) {
|
|
|
4958
4959
|
H.value = me, $.value = D.on(Q);
|
|
4959
4960
|
};
|
|
4960
4961
|
Ln(() => {
|
|
4961
|
-
i || (he(
|
|
4962
|
+
i || (he(q.value) && q.value(), he(h.value) && h.value(), he(y.value) && y.value(), he(b.value) && b.value(), he(z.value) && z.value(), he(K.value) && K.value(), he(w.value) && w.value(), he($.value) && $.value());
|
|
4962
4963
|
});
|
|
4963
4964
|
const { collabOptions: Te } = aa(), dt = () => {
|
|
4964
4965
|
!Te.value.enabled || L(r.value) || r.value.emit("subscribeCollabRoomInfo", a, (me) => {
|
|
@@ -5054,7 +5055,7 @@ function $p(a, t = !1, e = void 0, s = void 0, i = !1) {
|
|
|
5054
5055
|
collabRoomLocks: wl,
|
|
5055
5056
|
collabFieldDataBufferState: l,
|
|
5056
5057
|
alertedOccupiedRooms: Mp,
|
|
5057
|
-
unsubscribeJoinRequestListener:
|
|
5058
|
+
unsubscribeJoinRequestListener: q,
|
|
5058
5059
|
unsubscribeApprovedJoinRequestListener: h,
|
|
5059
5060
|
unsubscribeRejectedJoinRequestListener: y,
|
|
5060
5061
|
unsubscribeRequestToTakeModerationListener: b,
|
|
@@ -5086,9 +5087,9 @@ const Bp = { class: "ml-3" }, Pp = { class: "ml-1" }, bD = /* @__PURE__ */ W({
|
|
|
5086
5087
|
approveRequestToTakeModeration: c,
|
|
5087
5088
|
rejectRequestToTakeModeration: u,
|
|
5088
5089
|
addRequestToTakeModerationListener: f,
|
|
5089
|
-
addApprovedRequestToTakeModerationListener:
|
|
5090
|
+
addApprovedRequestToTakeModerationListener: q,
|
|
5090
5091
|
addRejectedRequestToTakeModerationListener: v,
|
|
5091
|
-
kickUserFromRoom:
|
|
5092
|
+
kickUserFromRoom: g,
|
|
5092
5093
|
transferModeration: h,
|
|
5093
5094
|
alertedOccupiedRooms: x
|
|
5094
5095
|
// eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
@@ -5101,7 +5102,7 @@ const Bp = { class: "ml-3" }, Pp = { class: "ml-1" }, bD = /* @__PURE__ */ W({
|
|
|
5101
5102
|
y("common.collab.alert.rejectedJoinRequest"), E.value = !1, K.value = !1, x.value.delete(t.collabRoom);
|
|
5102
5103
|
}), f(async (se, Ye) => {
|
|
5103
5104
|
he(t.addToCachedUsers) && t.addToCachedUsers(se), he(t.fetchCachedUsers) && t.fetchCachedUsers(), O.value = { userId: se, timestamp: Ye }, M.value = !0;
|
|
5104
|
-
}),
|
|
5105
|
+
}), q(() => {
|
|
5105
5106
|
X("common.collab.alert.approvedToTakeModeration"), E.value = !1;
|
|
5106
5107
|
}), v(() => {
|
|
5107
5108
|
y("common.collab.alert.rejectedToTakeModeration"), E.value = !1;
|
|
@@ -5145,9 +5146,9 @@ const Bp = { class: "ml-3" }, Pp = { class: "ml-1" }, bD = /* @__PURE__ */ W({
|
|
|
5145
5146
|
}, ce = (se) => {
|
|
5146
5147
|
h(se), z.value = !1;
|
|
5147
5148
|
}, we = (se) => {
|
|
5148
|
-
|
|
5149
|
+
g(se), z.value = !1;
|
|
5149
5150
|
}, Oe = () => {
|
|
5150
|
-
|
|
5151
|
+
g(A.value ?? 0);
|
|
5151
5152
|
}, pe = (se) => Math.ceil((6e4 - ((/* @__PURE__ */ new Date()).getTime() - se)) / 1e3);
|
|
5152
5153
|
return (se, Ye) => {
|
|
5153
5154
|
const nt = $e("ABtnSecondary"), lt = $e("ABtnIcon"), Te = $e("ABtnTertiary"), dt = $e("ABtnPrimary");
|
|
@@ -5725,8 +5726,8 @@ const Bp = { class: "ml-3" }, Pp = { class: "ml-1" }, bD = /* @__PURE__ */ W({
|
|
|
5725
5726
|
return "flat";
|
|
5726
5727
|
}
|
|
5727
5728
|
});
|
|
5728
|
-
return (f,
|
|
5729
|
-
const v = $e("ABtnTertiary"),
|
|
5729
|
+
return (f, q) => {
|
|
5730
|
+
const v = $e("ABtnTertiary"), g = $e("ABtnPrimary");
|
|
5730
5731
|
return Y(), R(ge, null, [
|
|
5731
5732
|
f.variant === "icon" ? (Y(), T(ie, {
|
|
5732
5733
|
key: 0,
|
|
@@ -5772,7 +5773,7 @@ const Bp = { class: "ml-3" }, Pp = { class: "ml-1" }, bD = /* @__PURE__ */ W({
|
|
|
5772
5773
|
}, 8, ["class", "data-cy", "variant", "color", "height"])),
|
|
5773
5774
|
m(Vt, {
|
|
5774
5775
|
modelValue: r.value,
|
|
5775
|
-
"onUpdate:modelValue":
|
|
5776
|
+
"onUpdate:modelValue": q[0] || (q[0] = (h) => r.value = h),
|
|
5776
5777
|
persistent: "",
|
|
5777
5778
|
width: 500,
|
|
5778
5779
|
"no-click-animation": ""
|
|
@@ -5802,7 +5803,7 @@ const Bp = { class: "ml-3" }, Pp = { class: "ml-1" }, bD = /* @__PURE__ */ W({
|
|
|
5802
5803
|
]),
|
|
5803
5804
|
_: 1
|
|
5804
5805
|
}, 8, ["disabled"]),
|
|
5805
|
-
m(
|
|
5806
|
+
m(g, {
|
|
5806
5807
|
color: f.dialogConfirmColor,
|
|
5807
5808
|
loading: f.loading,
|
|
5808
5809
|
"data-cy": "button-confirm-delete",
|
|
@@ -6508,23 +6509,23 @@ const iv = /* @__PURE__ */ Ga(tv, [["render", sv]]), rv = { class: "flag" }, Pl
|
|
|
6508
6509
|
},
|
|
6509
6510
|
emits: ["afterChange"],
|
|
6510
6511
|
setup(a, { emit: t }) {
|
|
6511
|
-
const e = a, s = t, { useCurrentUser: i } = ho(e.system), { currentUser: r } = i(e.system), o = at(Zd), l = at(Jd), { setLanguage: n } = jp(o, l), { currentLanguageCode: d } = Hp(), c = (
|
|
6512
|
-
n(
|
|
6512
|
+
const e = a, s = t, { useCurrentUser: i } = ho(e.system), { currentUser: r } = i(e.system), o = at(Zd), l = at(Jd), { setLanguage: n } = jp(o, l), { currentLanguageCode: d } = Hp(), c = (q) => {
|
|
6513
|
+
n(q) && s("afterChange", q);
|
|
6513
6514
|
}, u = _(() => {
|
|
6514
|
-
const
|
|
6515
|
-
return L(
|
|
6515
|
+
const q = Kr.find((v) => v.code === d.value);
|
|
6516
|
+
return L(q) ? Kr[0] : q;
|
|
6516
6517
|
}), f = _(() => Kr.filter(
|
|
6517
|
-
(
|
|
6518
|
+
(q) => {
|
|
6518
6519
|
var v;
|
|
6519
|
-
return (o.includes(
|
|
6520
|
+
return (o.includes(q.code) || q.code === "xx") && (!q.adminOnly || ((v = r.value) == null ? void 0 : v.roles.includes(xu)));
|
|
6520
6521
|
}
|
|
6521
6522
|
));
|
|
6522
|
-
return (
|
|
6523
|
-
activator: p(({ props:
|
|
6523
|
+
return (q, v) => (Y(), T(ca, null, {
|
|
6524
|
+
activator: p(({ props: g }) => [
|
|
6524
6525
|
m(ie, Et({
|
|
6525
6526
|
class: "pl-1",
|
|
6526
6527
|
rounded: "pill"
|
|
6527
|
-
},
|
|
6528
|
+
}, g, {
|
|
6528
6529
|
variant: "text",
|
|
6529
6530
|
"data-cy": "settings-language"
|
|
6530
6531
|
}), {
|
|
@@ -6553,9 +6554,9 @@ const iv = /* @__PURE__ */ Ga(tv, [["render", sv]]), rv = { class: "flag" }, Pl
|
|
|
6553
6554
|
default: p(() => [
|
|
6554
6555
|
m(la, { density: "compact" }, {
|
|
6555
6556
|
default: p(() => [
|
|
6556
|
-
(Y(!0), R(ge, null, je(f.value, (
|
|
6557
|
-
key:
|
|
6558
|
-
onClick: J((h) => c(
|
|
6557
|
+
(Y(!0), R(ge, null, je(f.value, (g) => (Y(), T(Ze, {
|
|
6558
|
+
key: g.code,
|
|
6559
|
+
onClick: J((h) => c(g.code), ["stop"])
|
|
6559
6560
|
}, {
|
|
6560
6561
|
default: p(() => [
|
|
6561
6562
|
m(fs, null, {
|
|
@@ -6566,12 +6567,12 @@ const iv = /* @__PURE__ */ Ga(tv, [["render", sv]]), rv = { class: "flag" }, Pl
|
|
|
6566
6567
|
}, {
|
|
6567
6568
|
default: p(() => [
|
|
6568
6569
|
m(Pl, {
|
|
6569
|
-
code:
|
|
6570
|
+
code: g.code
|
|
6570
6571
|
}, null, 8, ["code"])
|
|
6571
6572
|
]),
|
|
6572
6573
|
_: 2
|
|
6573
6574
|
}, 1024),
|
|
6574
|
-
P(" " + k(
|
|
6575
|
+
P(" " + k(g.title), 1)
|
|
6575
6576
|
]),
|
|
6576
6577
|
_: 2
|
|
6577
6578
|
}, 1024)
|
|
@@ -6945,7 +6946,7 @@ const lv = { class: "text-center w-100 text-caption pb-1" }, MD = /* @__PURE__ *
|
|
|
6945
6946
|
const e = a, s = t, { fetch: i, add: r, addManualMinimal: o } = e.useCached(), l = _(() => {
|
|
6946
6947
|
if (v.value)
|
|
6947
6948
|
return "$vuetify.loading";
|
|
6948
|
-
if (x.value.size === 0 &&
|
|
6949
|
+
if (x.value.size === 0 && q.value.length < Rl && e.minSearchText.length > 0)
|
|
6949
6950
|
return e.minSearchText;
|
|
6950
6951
|
}), n = _({
|
|
6951
6952
|
get() {
|
|
@@ -6954,7 +6955,7 @@ const lv = { class: "text-center w-100 text-caption pb-1" }, MD = /* @__PURE__ *
|
|
|
6954
6955
|
set(K) {
|
|
6955
6956
|
s("update:modelValue", ye(K));
|
|
6956
6957
|
}
|
|
6957
|
-
}), { t: d } = ee(), c = at(_a, void 0), u = at(Sa, void 0), f = S(!1),
|
|
6958
|
+
}), { t: d } = ee(), c = at(_a, void 0), u = at(Sa, void 0), f = S(!1), q = S(""), v = S(!1), { innerFilter: g } = ci(e), h = Ps(e.filterSortBy), x = S(/* @__PURE__ */ new Map()), F = () => {
|
|
6958
6959
|
f.value = !0, s("focus", n.value);
|
|
6959
6960
|
}, y = () => {
|
|
6960
6961
|
var K;
|
|
@@ -6972,15 +6973,15 @@ const lv = { class: "text-center w-100 text-caption pb-1" }, MD = /* @__PURE__ *
|
|
|
6972
6973
|
var K, E;
|
|
6973
6974
|
return L(e.required) ? ((K = e.v) == null ? void 0 : K.required) && ((E = e.v) == null ? void 0 : E.required.$params.type) === "required" : e.required;
|
|
6974
6975
|
}), B = (K) => {
|
|
6975
|
-
|
|
6976
|
+
q.value = K;
|
|
6976
6977
|
}, N = async (K) => {
|
|
6977
6978
|
if (K.length < Rl) {
|
|
6978
6979
|
x.value.clear();
|
|
6979
6980
|
return;
|
|
6980
6981
|
}
|
|
6981
6982
|
v.value = !0;
|
|
6982
|
-
const E =
|
|
6983
|
-
E.model = K, x.value.clear(), (await e.fetchItemsMinimal(h,
|
|
6983
|
+
const E = g.value[e.filterByField];
|
|
6984
|
+
E.model = K, x.value.clear(), (await e.fetchItemsMinimal(h, g.value)).forEach((w) => {
|
|
6984
6985
|
x.value.set(w[e.itemValue], w);
|
|
6985
6986
|
}), v.value = !1;
|
|
6986
6987
|
}, z = _(() => {
|
|
@@ -7000,12 +7001,12 @@ const lv = { class: "text-center w-100 text-caption pb-1" }, MD = /* @__PURE__ *
|
|
|
7000
7001
|
n.value = null;
|
|
7001
7002
|
};
|
|
7002
7003
|
return Un(
|
|
7003
|
-
|
|
7004
|
+
q,
|
|
7004
7005
|
(K, E) => {
|
|
7005
7006
|
K !== E && (N(K), s("searchChangeDebounced", K));
|
|
7006
7007
|
},
|
|
7007
7008
|
{ debounce: 300 }
|
|
7008
|
-
), qe(
|
|
7009
|
+
), qe(q, (K, E) => {
|
|
7009
7010
|
K !== E && s("searchChange", K);
|
|
7010
7011
|
}), qe(
|
|
7011
7012
|
n,
|
|
@@ -7019,9 +7020,9 @@ const lv = { class: "text-center w-100 text-caption pb-1" }, MD = /* @__PURE__ *
|
|
|
7019
7020
|
), (K, E) => (Y(), T(Zi, {
|
|
7020
7021
|
modelValue: n.value,
|
|
7021
7022
|
"onUpdate:modelValue": E[0] || (E[0] = (I) => n.value = I),
|
|
7022
|
-
search:
|
|
7023
|
+
search: q.value,
|
|
7023
7024
|
"onUpdate:search": [
|
|
7024
|
-
E[1] || (E[1] = (I) =>
|
|
7025
|
+
E[1] || (E[1] = (I) => q.value = I),
|
|
7025
7026
|
B
|
|
7026
7027
|
],
|
|
7027
7028
|
chips: "",
|
|
@@ -7119,7 +7120,7 @@ const lv = { class: "text-center w-100 text-caption pb-1" }, MD = /* @__PURE__ *
|
|
|
7119
7120
|
},
|
|
7120
7121
|
setup(a) {
|
|
7121
7122
|
const t = a;
|
|
7122
|
-
return
|
|
7123
|
+
return gt(() => {
|
|
7123
7124
|
t.logoutUrl && (window.location.href = t.logoutUrl());
|
|
7124
7125
|
}), (e, s) => (Y(), R("div"));
|
|
7125
7126
|
}
|
|
@@ -7500,13 +7501,13 @@ const Is = {
|
|
|
7500
7501
|
function f(w) {
|
|
7501
7502
|
o.value = w;
|
|
7502
7503
|
}
|
|
7503
|
-
function
|
|
7504
|
+
function q(w) {
|
|
7504
7505
|
i.value = w;
|
|
7505
7506
|
}
|
|
7506
7507
|
function v(w) {
|
|
7507
7508
|
l.value = w;
|
|
7508
7509
|
}
|
|
7509
|
-
function
|
|
7510
|
+
function g(w) {
|
|
7510
7511
|
n.value = w;
|
|
7511
7512
|
}
|
|
7512
7513
|
function h(w) {
|
|
@@ -7605,11 +7606,11 @@ const Is = {
|
|
|
7605
7606
|
loader: t,
|
|
7606
7607
|
assetListItems: a,
|
|
7607
7608
|
getSelectedData: M,
|
|
7608
|
-
setAssetType:
|
|
7609
|
+
setAssetType: q,
|
|
7609
7610
|
setSelectConfig: u,
|
|
7610
7611
|
setSingleMode: f,
|
|
7611
7612
|
setMinCount: v,
|
|
7612
|
-
setMaxCount:
|
|
7613
|
+
setMaxCount: g,
|
|
7613
7614
|
showLoader: d,
|
|
7614
7615
|
hideLoader: c,
|
|
7615
7616
|
setList: h,
|
|
@@ -7662,16 +7663,16 @@ function qo() {
|
|
|
7662
7663
|
querySetFilters: (c) => {
|
|
7663
7664
|
const u = !L(c._elastic);
|
|
7664
7665
|
for (const f in c) {
|
|
7665
|
-
const
|
|
7666
|
-
if (
|
|
7666
|
+
const q = c[f], v = q.field || f;
|
|
7667
|
+
if (q.exclude)
|
|
7667
7668
|
continue;
|
|
7668
|
-
const
|
|
7669
|
-
if (!te(
|
|
7669
|
+
const g = o(q);
|
|
7670
|
+
if (!te(g)) {
|
|
7670
7671
|
if (u) {
|
|
7671
|
-
l(v,
|
|
7672
|
+
l(v, g);
|
|
7672
7673
|
continue;
|
|
7673
7674
|
}
|
|
7674
|
-
r(
|
|
7675
|
+
r(q.variant, v, g);
|
|
7675
7676
|
}
|
|
7676
7677
|
}
|
|
7677
7678
|
},
|
|
@@ -7900,13 +7901,13 @@ function sa(a = void 0) {
|
|
|
7900
7901
|
function f() {
|
|
7901
7902
|
return t.initialized.damPubConfig;
|
|
7902
7903
|
}
|
|
7903
|
-
function
|
|
7904
|
+
function q() {
|
|
7904
7905
|
return t.initialized.damPrvConfig;
|
|
7905
7906
|
}
|
|
7906
7907
|
function v(F) {
|
|
7907
7908
|
return t.damConfigExtSystem.get(F);
|
|
7908
7909
|
}
|
|
7909
|
-
function
|
|
7910
|
+
function g(F) {
|
|
7910
7911
|
return t.damConfigAssetCustomFormElements.get(F);
|
|
7911
7912
|
}
|
|
7912
7913
|
async function h(F) {
|
|
@@ -7962,9 +7963,9 @@ function sa(a = void 0) {
|
|
|
7962
7963
|
loadDamConfigAssetCustomFormElements: d,
|
|
7963
7964
|
loadDamConfigDistributionCustomFormElements: u,
|
|
7964
7965
|
isDamPubConfigLoaded: f,
|
|
7965
|
-
isDamPrvConfigLoaded:
|
|
7966
|
+
isDamPrvConfigLoaded: q,
|
|
7966
7967
|
getDamConfigExtSystem: v,
|
|
7967
|
-
getDamConfigAssetCustomFormElements:
|
|
7968
|
+
getDamConfigAssetCustomFormElements: g
|
|
7968
7969
|
};
|
|
7969
7970
|
}
|
|
7970
7971
|
const vi = "/adm/v1/asset", Uo = 10, Yo = "asset", Be = "coreDam", Hr = "dam", No = 25, Ll = (a, t, e, s) => Za(
|
|
@@ -8095,11 +8096,11 @@ function hi(a = "default") {
|
|
|
8095
8096
|
e.toggleSelectedByIndex(h.index);
|
|
8096
8097
|
}, f = async () => {
|
|
8097
8098
|
e.reset(), Xi.type.default = [e.assetType], l(Xi, As, d);
|
|
8098
|
-
},
|
|
8099
|
+
}, q = () => {
|
|
8099
8100
|
jo.value = !0;
|
|
8100
8101
|
}, v = () => {
|
|
8101
8102
|
jo.value = !1;
|
|
8102
|
-
},
|
|
8103
|
+
}, g = (h, x, F, y, X) => {
|
|
8103
8104
|
e.clearSelected(), e.setAssetType(x), e.setSelectConfig(h), e.setSingleMode(F), e.setMinCount(y), e.setMaxCount(X);
|
|
8104
8105
|
};
|
|
8105
8106
|
return {
|
|
@@ -8116,9 +8117,9 @@ function hi(a = "default") {
|
|
|
8116
8117
|
fetchAssetList: d,
|
|
8117
8118
|
fetchNextPage: c,
|
|
8118
8119
|
resetAssetList: f,
|
|
8119
|
-
filterTouch:
|
|
8120
|
+
filterTouch: q,
|
|
8120
8121
|
filterUnTouch: v,
|
|
8121
|
-
initStoreContext:
|
|
8122
|
+
initStoreContext: g
|
|
8122
8123
|
};
|
|
8123
8124
|
}
|
|
8124
8125
|
const Ul = 200, hr = "#ccc";
|
|
@@ -8257,7 +8258,7 @@ const Ks = "data:image/jpeg;base64,/9j/4QZGRXhpZgAATU0AKgAAAAgADAEAAAMAAAABCgAAA
|
|
|
8257
8258
|
s("itemClick", { assetId: o.value.id, index: e.index });
|
|
8258
8259
|
};
|
|
8259
8260
|
return (u, f) => {
|
|
8260
|
-
var
|
|
8261
|
+
var q, v;
|
|
8261
8262
|
return Y(), R("tr", {
|
|
8262
8263
|
class: Fe(["a-datatable__row", { "a-datatable__row--selected": r.value.selected }]),
|
|
8263
8264
|
onClick: J(c, ["stop", "exact"])
|
|
@@ -8291,7 +8292,7 @@ const Ks = "data:image/jpeg;base64,/9j/4QZGRXhpZgAATU0AKgAAAAgADAEAAAMAAAABCgAAA
|
|
|
8291
8292
|
"date-time": V(o).createdAt
|
|
8292
8293
|
}, null, 8, ["date-time"])
|
|
8293
8294
|
]),
|
|
8294
|
-
U("td", null, k((
|
|
8295
|
+
U("td", null, k((q = V(o).mainFile) == null ? void 0 : q.fileAttributes.mimeType), 1),
|
|
8295
8296
|
U("td", null, k(V(Ao)(((v = V(o).mainFile) == null ? void 0 : v.fileAttributes.size) || 0)), 1)
|
|
8296
8297
|
], 2);
|
|
8297
8298
|
};
|
|
@@ -8773,7 +8774,7 @@ const Eh = /* @__PURE__ */ W({
|
|
|
8773
8774
|
m(yn, {
|
|
8774
8775
|
modelValue: V(t).text,
|
|
8775
8776
|
"onUpdate:modelValue": [
|
|
8776
|
-
f[0] || (f[0] = (
|
|
8777
|
+
f[0] || (f[0] = (q) => V(t).text = q),
|
|
8777
8778
|
d
|
|
8778
8779
|
],
|
|
8779
8780
|
onKeydown: Pa(c, ["enter"])
|
|
@@ -8791,7 +8792,7 @@ const Eh = /* @__PURE__ */ W({
|
|
|
8791
8792
|
m(yn, {
|
|
8792
8793
|
modelValue: V(t).assetAndMainFileIds,
|
|
8793
8794
|
"onUpdate:modelValue": [
|
|
8794
|
-
f[1] || (f[1] = (
|
|
8795
|
+
f[1] || (f[1] = (q) => V(t).assetAndMainFileIds = q),
|
|
8795
8796
|
d
|
|
8796
8797
|
],
|
|
8797
8798
|
onKeydown: Pa(c, ["enter"])
|
|
@@ -8810,7 +8811,7 @@ const Eh = /* @__PURE__ */ W({
|
|
|
8810
8811
|
key: n.value,
|
|
8811
8812
|
modelValue: V(t).keywordIds,
|
|
8812
8813
|
"onUpdate:modelValue": [
|
|
8813
|
-
f[2] || (f[2] = (
|
|
8814
|
+
f[2] || (f[2] = (q) => V(t).keywordIds = q),
|
|
8814
8815
|
d
|
|
8815
8816
|
],
|
|
8816
8817
|
"ext-system": n.value
|
|
@@ -8829,7 +8830,7 @@ const Eh = /* @__PURE__ */ W({
|
|
|
8829
8830
|
key: n.value,
|
|
8830
8831
|
modelValue: V(t).authorIds,
|
|
8831
8832
|
"onUpdate:modelValue": [
|
|
8832
|
-
f[3] || (f[3] = (
|
|
8833
|
+
f[3] || (f[3] = (q) => V(t).authorIds = q),
|
|
8833
8834
|
d
|
|
8834
8835
|
],
|
|
8835
8836
|
"ext-system": n.value
|
|
@@ -8847,7 +8848,7 @@ const Eh = /* @__PURE__ */ W({
|
|
|
8847
8848
|
m(Eh, {
|
|
8848
8849
|
modelValue: V(t).createdByIds,
|
|
8849
8850
|
"onUpdate:modelValue": [
|
|
8850
|
-
f[4] || (f[4] = (
|
|
8851
|
+
f[4] || (f[4] = (q) => V(t).createdByIds = q),
|
|
8851
8852
|
d
|
|
8852
8853
|
]
|
|
8853
8854
|
}, null, 8, ["modelValue"])
|
|
@@ -8864,7 +8865,7 @@ const Eh = /* @__PURE__ */ W({
|
|
|
8864
8865
|
m(zo, {
|
|
8865
8866
|
modelValue: V(t).described,
|
|
8866
8867
|
"onUpdate:modelValue": [
|
|
8867
|
-
f[5] || (f[5] = (
|
|
8868
|
+
f[5] || (f[5] = (q) => V(t).described = q),
|
|
8868
8869
|
d
|
|
8869
8870
|
]
|
|
8870
8871
|
}, null, 8, ["modelValue"])
|
|
@@ -8881,7 +8882,7 @@ const Eh = /* @__PURE__ */ W({
|
|
|
8881
8882
|
m(zo, {
|
|
8882
8883
|
modelValue: V(t).visible,
|
|
8883
8884
|
"onUpdate:modelValue": [
|
|
8884
|
-
f[6] || (f[6] = (
|
|
8885
|
+
f[6] || (f[6] = (q) => V(t).visible = q),
|
|
8885
8886
|
d
|
|
8886
8887
|
]
|
|
8887
8888
|
}, null, 8, ["modelValue"])
|
|
@@ -8898,7 +8899,7 @@ const Eh = /* @__PURE__ */ W({
|
|
|
8898
8899
|
m(zo, {
|
|
8899
8900
|
modelValue: V(t).generatedBySystem,
|
|
8900
8901
|
"onUpdate:modelValue": [
|
|
8901
|
-
f[7] || (f[7] = (
|
|
8902
|
+
f[7] || (f[7] = (q) => V(t).generatedBySystem = q),
|
|
8902
8903
|
d
|
|
8903
8904
|
]
|
|
8904
8905
|
}, null, 8, ["modelValue"])
|
|
@@ -8954,11 +8955,11 @@ const Eh = /* @__PURE__ */ W({
|
|
|
8954
8955
|
});
|
|
8955
8956
|
return qe(
|
|
8956
8957
|
l,
|
|
8957
|
-
(f,
|
|
8958
|
-
f !==
|
|
8958
|
+
(f, q) => {
|
|
8959
|
+
f !== q && d();
|
|
8959
8960
|
},
|
|
8960
8961
|
{ immediate: !1 }
|
|
8961
|
-
), (f,
|
|
8962
|
+
), (f, q) => (Y(), R("div", Bh, [
|
|
8962
8963
|
U("div", Ph, [
|
|
8963
8964
|
m(uo, {
|
|
8964
8965
|
name: "search2",
|
|
@@ -8972,7 +8973,7 @@ const Eh = /* @__PURE__ */ W({
|
|
|
8972
8973
|
default: p(() => [
|
|
8973
8974
|
m(Ji, {
|
|
8974
8975
|
modelValue: V(l),
|
|
8975
|
-
"onUpdate:modelValue":
|
|
8976
|
+
"onUpdate:modelValue": q[0] || (q[0] = (v) => La(l) ? l.value = v : null),
|
|
8976
8977
|
label: V(t)("common.assetSelect.filter.licence"),
|
|
8977
8978
|
items: V(n),
|
|
8978
8979
|
"item-title": "licenceName",
|
|
@@ -9073,22 +9074,22 @@ const Lh = {
|
|
|
9073
9074
|
loader: c,
|
|
9074
9075
|
pagination: u,
|
|
9075
9076
|
fetchNextPage: f,
|
|
9076
|
-
resetAssetList:
|
|
9077
|
+
resetAssetList: q,
|
|
9077
9078
|
getSelectedData: v,
|
|
9078
|
-
initStoreContext:
|
|
9079
|
+
initStoreContext: g
|
|
9079
9080
|
} = hi(), { getOrLoadDamConfigExtSystemByLicences: h } = sa(n), x = Ft([]), { openSidebar: F, sidebarLeft: y } = Lu(), { showErrorT: X } = He(), A = () => {
|
|
9080
9081
|
let K = ye(x.value);
|
|
9081
9082
|
if (s.skipCurrentUserCheck || (K = zh(x.value)), K.length === 0) {
|
|
9082
9083
|
X("common.assetSelect.error.unallowedLicence");
|
|
9083
9084
|
return;
|
|
9084
9085
|
}
|
|
9085
|
-
|
|
9086
|
+
g(
|
|
9086
9087
|
K,
|
|
9087
9088
|
s.assetType,
|
|
9088
9089
|
s.minCount === 1 && s.minCount === s.maxCount,
|
|
9089
9090
|
s.minCount,
|
|
9090
9091
|
s.maxCount
|
|
9091
|
-
),
|
|
9092
|
+
), q(), F(), r.value = !0;
|
|
9092
9093
|
};
|
|
9093
9094
|
qe(
|
|
9094
9095
|
r,
|
|
@@ -9113,7 +9114,7 @@ const Lh = {
|
|
|
9113
9114
|
return Xh;
|
|
9114
9115
|
}
|
|
9115
9116
|
}), O = _(() => d.value < s.minCount || d.value > s.maxCount);
|
|
9116
|
-
return
|
|
9117
|
+
return gt(async () => {
|
|
9117
9118
|
o.value = !0, x.value = await h(s.selectLicences), o.value = !1;
|
|
9118
9119
|
}), so(() => {
|
|
9119
9120
|
x.value = [];
|
|
@@ -9378,8 +9379,8 @@ function mt(a, t, e, s, i) {
|
|
|
9378
9379
|
}
|
|
9379
9380
|
while (i = i.parentNode);
|
|
9380
9381
|
if (s && a !== window) {
|
|
9381
|
-
var
|
|
9382
|
-
|
|
9382
|
+
var q = si(i || a), v = q && q.a, g = q && q.d;
|
|
9383
|
+
q && (o /= g, l /= v, u /= v, c /= g, n = o + c, d = l + u);
|
|
9383
9384
|
}
|
|
9384
9385
|
return {
|
|
9385
9386
|
top: o,
|
|
@@ -9535,9 +9536,9 @@ function rF() {
|
|
|
9535
9536
|
}
|
|
9536
9537
|
var r = !1, o = 0;
|
|
9537
9538
|
a.forEach(function(l) {
|
|
9538
|
-
var n = 0, d = l.target, c = d.fromRect, u = mt(d), f = d.prevFromRect,
|
|
9539
|
-
|
|
9540
|
-
(v.top - u.top) / (v.left - u.left) === (c.top - u.top) / (c.left - u.left) && (n = nF(v, f,
|
|
9539
|
+
var n = 0, d = l.target, c = d.fromRect, u = mt(d), f = d.prevFromRect, q = d.prevToRect, v = l.rect, g = si(d, !0);
|
|
9540
|
+
g && (u.top -= g.f, u.left -= g.e), d.toRect = u, d.thisAnimationDuration && Ho(f, u) && !Ho(c, u) && // Make sure animatingRect is on line between toRect & fromRect
|
|
9541
|
+
(v.top - u.top) / (v.left - u.left) === (c.top - u.top) / (c.left - u.left) && (n = nF(v, f, q, i.options)), Ho(u, c) || (d.prevFromRect = c, d.prevToRect = u, n || (n = i.options.animation), i.animate(d, v, u, n)), n && (r = !0, o = Math.max(o, n), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
|
|
9541
9542
|
d.animationTime = 0, d.prevFromRect = null, d.fromRect = null, d.prevToRect = null, d.thisAnimationDuration = null;
|
|
9542
9543
|
}, n), d.thisAnimationDuration = n);
|
|
9543
9544
|
}), clearTimeout(t), r ? t = setTimeout(function() {
|
|
@@ -9614,17 +9615,17 @@ var Us = [], Wo = {
|
|
|
9614
9615
|
}
|
|
9615
9616
|
};
|
|
9616
9617
|
function lF(a) {
|
|
9617
|
-
var t = a.sortable, e = a.rootEl, s = a.name, i = a.targetEl, r = a.cloneEl, o = a.toEl, l = a.fromEl, n = a.oldIndex, d = a.newIndex, c = a.oldDraggableIndex, u = a.newDraggableIndex, f = a.originalEvent,
|
|
9618
|
+
var t = a.sortable, e = a.rootEl, s = a.name, i = a.targetEl, r = a.cloneEl, o = a.toEl, l = a.fromEl, n = a.oldIndex, d = a.newIndex, c = a.oldDraggableIndex, u = a.newDraggableIndex, f = a.originalEvent, q = a.putSortable, v = a.extraEventProperties;
|
|
9618
9619
|
if (t = t || e && e[Ot], !!t) {
|
|
9619
|
-
var
|
|
9620
|
-
window.CustomEvent && !Ja && !ar ?
|
|
9620
|
+
var g, h = t.options, x = "on" + s.charAt(0).toUpperCase() + s.substr(1);
|
|
9621
|
+
window.CustomEvent && !Ja && !ar ? g = new CustomEvent(s, {
|
|
9621
9622
|
bubbles: !0,
|
|
9622
9623
|
cancelable: !0
|
|
9623
|
-
}) : (
|
|
9624
|
+
}) : (g = document.createEvent("Event"), g.initEvent(s, !0, !0)), g.to = o || e, g.from = l || e, g.item = i || e, g.clone = r, g.oldIndex = n, g.newIndex = d, g.oldDraggableIndex = c, g.newDraggableIndex = u, g.originalEvent = f, g.pullMode = q ? q.lastPutMode : void 0;
|
|
9624
9625
|
var F = ka(ka({}, v), sr.getEventProperties(s, t));
|
|
9625
9626
|
for (var y in F)
|
|
9626
|
-
|
|
9627
|
-
e && e.dispatchEvent(
|
|
9627
|
+
g[y] = F[y];
|
|
9628
|
+
e && e.dispatchEvent(g), h[x] && h[x].call(t, g);
|
|
9628
9629
|
}
|
|
9629
9630
|
}
|
|
9630
9631
|
var dF = ["evt"], $t = function(t, e) {
|
|
@@ -9994,13 +9995,13 @@ xe.prototype = /** @lends Sortable.prototype */
|
|
|
9994
9995
|
},
|
|
9995
9996
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
9996
9997
|
_onDragOver: function(t) {
|
|
9997
|
-
var e = this.el, s = t.target, i, r, o, l = this.options, n = l.group, d = xe.active, c = gr === n, u = l.sort, f = bt || d,
|
|
9998
|
+
var e = this.el, s = t.target, i, r, o, l = this.options, n = l.group, d = xe.active, c = gr === n, u = l.sort, f = bt || d, q, v = this, g = !1;
|
|
9998
9999
|
if (xn) return;
|
|
9999
10000
|
function h($, H) {
|
|
10000
10001
|
$t($, v, ka({
|
|
10001
10002
|
evt: t,
|
|
10002
10003
|
isOwner: c,
|
|
10003
|
-
axis:
|
|
10004
|
+
axis: q ? "vertical" : "horizontal",
|
|
10004
10005
|
revert: o,
|
|
10005
10006
|
dragRect: i,
|
|
10006
10007
|
targetRect: r,
|
|
@@ -10022,7 +10023,7 @@ xe.prototype = /** @lends Sortable.prototype */
|
|
|
10022
10023
|
insertion: $
|
|
10023
10024
|
}), $ && (c ? d._hideClone() : d._showClone(v), v !== f && (Wt(ne, bt ? bt.options.ghostClass : d.options.ghostClass, !1), Wt(ne, l.ghostClass, !0)), bt !== v && v !== xe.active ? bt = v : v === xe.active && bt && (bt = null), f === v && (v._ignoreWhileAnimating = s), v.animateAll(function() {
|
|
10024
10025
|
h("dragOverAnimationComplete"), v._ignoreWhileAnimating = null;
|
|
10025
|
-
}), v !== f && (f.animateAll(), f._ignoreWhileAnimating = null)), (s === ne && !ne.animated || s === e && !s.animated) && (Ns = null), !l.dragoverBubble && !t.rootEl && s !== document && (ne.parentNode[Ot]._isOutsideThisEl(t.target), !$ && bs(t)), !l.dragoverBubble && t.stopPropagation && t.stopPropagation(),
|
|
10026
|
+
}), v !== f && (f.animateAll(), f._ignoreWhileAnimating = null)), (s === ne && !ne.animated || s === e && !s.animated) && (Ns = null), !l.dragoverBubble && !t.rootEl && s !== document && (ne.parentNode[Ot]._isOutsideThisEl(t.target), !$ && bs(t)), !l.dragoverBubble && t.stopPropagation && t.stopPropagation(), g = !0;
|
|
10026
10027
|
}
|
|
10027
10028
|
function y() {
|
|
10028
10029
|
Gt = na(ne), ss = na(ne, l.draggable), St({
|
|
@@ -10034,20 +10035,20 @@ xe.prototype = /** @lends Sortable.prototype */
|
|
|
10034
10035
|
originalEvent: t
|
|
10035
10036
|
});
|
|
10036
10037
|
}
|
|
10037
|
-
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), s = qa(s, l.draggable, e, !0), h("dragOver"), xe.eventCanceled) return
|
|
10038
|
+
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), s = qa(s, l.draggable, e, !0), h("dragOver"), xe.eventCanceled) return g;
|
|
10038
10039
|
if (ne.contains(t.target) || s.animated && s.animatingX && s.animatingY || v._ignoreWhileAnimating === s)
|
|
10039
10040
|
return F(!1);
|
|
10040
10041
|
if (Zr = !1, d && !l.disabled && (c ? u || (o = rt !== Je) : bt === this || (this.lastPutMode = gr.checkPull(this, d, ne, t)) && n.checkPut(this, d, ne, t))) {
|
|
10041
|
-
if (
|
|
10042
|
+
if (q = this._getDirection(t, s) === "vertical", i = mt(ne), h("dragOverValid"), xe.eventCanceled) return g;
|
|
10042
10043
|
if (o)
|
|
10043
10044
|
return rt = Je, x(), this._hideClone(), h("revert"), xe.eventCanceled || (_s ? Je.insertBefore(ne, _s) : Je.appendChild(ne)), F(!0);
|
|
10044
10045
|
var X = il(e, l.draggable);
|
|
10045
|
-
if (!X || hF(t,
|
|
10046
|
+
if (!X || hF(t, q, this) && !X.animated) {
|
|
10046
10047
|
if (X === ne)
|
|
10047
10048
|
return F(!1);
|
|
10048
10049
|
if (X && e === t.target && (s = X), s && (r = mt(s)), Xr(Je, e, ne, i, s, r, t, !!s) !== !1)
|
|
10049
10050
|
return x(), X && X.nextSibling ? e.insertBefore(ne, X.nextSibling) : e.appendChild(ne), rt = e, y(), F(!0);
|
|
10050
|
-
} else if (X && vF(t,
|
|
10051
|
+
} else if (X && vF(t, q, this)) {
|
|
10051
10052
|
var A = ui(e, 0, l, !0);
|
|
10052
10053
|
if (A === ne)
|
|
10053
10054
|
return F(!1);
|
|
@@ -10055,8 +10056,8 @@ xe.prototype = /** @lends Sortable.prototype */
|
|
|
10055
10056
|
return x(), e.insertBefore(ne, A), rt = e, y(), F(!0);
|
|
10056
10057
|
} else if (s.parentNode === e) {
|
|
10057
10058
|
r = mt(s);
|
|
10058
|
-
var b = 0, B, N = ne.parentNode !== e, z = !cF(ne.animated && ne.toRect || i, s.animated && s.toRect || r,
|
|
10059
|
-
Ns !== s && (B = r[M], Ri = !1, qr = !z && l.invertSwap || N), b = FF(t, s, r,
|
|
10059
|
+
var b = 0, B, N = ne.parentNode !== e, z = !cF(ne.animated && ne.toRect || i, s.animated && s.toRect || r, q), M = q ? "top" : "left", O = ed(s, "top", "top") || ed(ne, "top", "top"), K = O ? O.scrollTop : void 0;
|
|
10060
|
+
Ns !== s && (B = r[M], Ri = !1, qr = !z && l.invertSwap || N), b = FF(t, s, r, q, z ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, qr, Ns === s);
|
|
10060
10061
|
var E;
|
|
10061
10062
|
if (b !== 0) {
|
|
10062
10063
|
var I = na(ne);
|
|
@@ -10402,13 +10403,13 @@ var an = oc(function(a, t, e, s) {
|
|
|
10402
10403
|
kn !== e && (kn = e, Br(), Si = t.scroll, c = t.scrollFn, Si === !0 && (Si = us(e, !0)));
|
|
10403
10404
|
var u = 0, f = Si;
|
|
10404
10405
|
do {
|
|
10405
|
-
var
|
|
10406
|
-
|
|
10407
|
-
var K = A && (Math.abs(F - i) <= o && M + y < B) - (Math.abs(x - i) <= o && !!M), E = b && (Math.abs(h - r) <= o && O + X < N) - (Math.abs(
|
|
10406
|
+
var q = f, v = mt(q), g = v.top, h = v.bottom, x = v.left, F = v.right, y = v.width, X = v.height, A = void 0, b = void 0, B = q.scrollWidth, N = q.scrollHeight, z = Ce(q), M = q.scrollLeft, O = q.scrollTop;
|
|
10407
|
+
q === n ? (A = y < B && (z.overflowX === "auto" || z.overflowX === "scroll" || z.overflowX === "visible"), b = X < N && (z.overflowY === "auto" || z.overflowY === "scroll" || z.overflowY === "visible")) : (A = y < B && (z.overflowX === "auto" || z.overflowX === "scroll"), b = X < N && (z.overflowY === "auto" || z.overflowY === "scroll"));
|
|
10408
|
+
var K = A && (Math.abs(F - i) <= o && M + y < B) - (Math.abs(x - i) <= o && !!M), E = b && (Math.abs(h - r) <= o && O + X < N) - (Math.abs(g - r) <= o && !!O);
|
|
10408
10409
|
if (!ct[u])
|
|
10409
10410
|
for (var I = 0; I <= u; I++)
|
|
10410
10411
|
ct[I] || (ct[I] = {});
|
|
10411
|
-
(ct[u].vx != K || ct[u].vy != E || ct[u].el !==
|
|
10412
|
+
(ct[u].vx != K || ct[u].vy != E || ct[u].el !== q) && (ct[u].el = q, ct[u].vx = K, ct[u].vy = E, clearInterval(ct[u].pid), (K != 0 || E != 0) && (d = !0, ct[u].pid = setInterval((function() {
|
|
10412
10413
|
s && this.layer === 0 && xe.active._onTouchMove(eo);
|
|
10413
10414
|
var w = ct[this.layer].vy ? ct[this.layer].vy * l : 0, C = ct[this.layer].vx ? ct[this.layer].vx * l : 0;
|
|
10414
10415
|
typeof c == "function" && c.call(xe.dragged.parentNode[Ot], C, w, a, eo, ct[this.layer].el) !== "continue" || nc(ct[this.layer].el, C, w);
|
|
@@ -10551,13 +10552,13 @@ function IF(a, t, e, s) {
|
|
|
10551
10552
|
raw: E
|
|
10552
10553
|
};
|
|
10553
10554
|
}
|
|
10554
|
-
const f = _(() => a.value.map((E, I) => u(E, I))),
|
|
10555
|
+
const f = _(() => a.value.map((E, I) => u(E, I))), q = (E = void 0) => {
|
|
10555
10556
|
d.value++, L(E) || s("update:modelValue", E), Jt(() => {
|
|
10556
10557
|
t();
|
|
10557
10558
|
});
|
|
10558
10559
|
}, v = (E) => {
|
|
10559
10560
|
c.value.add(E);
|
|
10560
|
-
},
|
|
10561
|
+
}, g = (E) => {
|
|
10561
10562
|
c.value.delete(E);
|
|
10562
10563
|
}, h = (E, I, w, C = []) => {
|
|
10563
10564
|
const D = I > w ? w : I;
|
|
@@ -10573,7 +10574,7 @@ function IF(a, t, e, s) {
|
|
|
10573
10574
|
if (I >= 0 && I < w.length) {
|
|
10574
10575
|
let C = [];
|
|
10575
10576
|
const D = w.splice(E, 1)[0];
|
|
10576
|
-
return w.splice(I, 0, D), L(e.updatePosition) || (C = h(w, E, I)),
|
|
10577
|
+
return w.splice(I, 0, D), L(e.updatePosition) || (C = h(w, E, I)), q(), s("update:modelValue", w), C;
|
|
10577
10578
|
}
|
|
10578
10579
|
return [];
|
|
10579
10580
|
}, F = (E, I) => {
|
|
@@ -10583,30 +10584,30 @@ function IF(a, t, e, s) {
|
|
|
10583
10584
|
E.data = ye(I), te(w) || (E.data.position = w), te(C) || v(I.id);
|
|
10584
10585
|
}, X = (E, I, w = null, C = null) => {
|
|
10585
10586
|
const D = ye(a.value), $ = F(E, D);
|
|
10586
|
-
!te($) && D[$] && (y(D[$], I, w, C),
|
|
10587
|
+
!te($) && D[$] && (y(D[$], I, w, C), q(D));
|
|
10587
10588
|
}, A = (E, I, w, C = null) => {
|
|
10588
10589
|
const D = ye(a.value);
|
|
10589
|
-
D[E] && (y(D[E], I, w, C),
|
|
10590
|
+
D[E] && (y(D[E], I, w, C), q(D));
|
|
10590
10591
|
}, b = (E, I) => {
|
|
10591
10592
|
const w = ye(a.value);
|
|
10592
10593
|
if (te(E))
|
|
10593
|
-
return w.push(ye(I)),
|
|
10594
|
+
return w.push(ye(I)), q(w), [];
|
|
10594
10595
|
const C = [];
|
|
10595
|
-
return w[E] ? (w.splice(E + 1, 0, I), h(w, E + 1, E + 1, C),
|
|
10596
|
+
return w[E] ? (w.splice(E + 1, 0, I), h(w, E + 1, E + 1, C), q(w), C) : [];
|
|
10596
10597
|
}, B = (E, I) => {
|
|
10597
10598
|
const w = ye(a.value);
|
|
10598
10599
|
if (te(E))
|
|
10599
|
-
return w.push(ye(I)),
|
|
10600
|
+
return w.push(ye(I)), q(w), [];
|
|
10600
10601
|
const C = F(E, w), D = [];
|
|
10601
|
-
return !te(C) && w[C] ? (w.splice(C + 1, 0, I), h(w, C + 1, C + 1, D),
|
|
10602
|
+
return !te(C) && w[C] ? (w.splice(C + 1, 0, I), h(w, C + 1, C + 1, D), q(w), D) : [];
|
|
10602
10603
|
}, N = (E) => {
|
|
10603
10604
|
const I = ye(a.value), w = F(E, I), C = [];
|
|
10604
|
-
return !te(w) && I[w] ? (I.splice(w, 1), h(I, w, w, C),
|
|
10605
|
+
return !te(w) && I[w] ? (I.splice(w, 1), h(I, w, w, C), g(E), q(I), C) : [];
|
|
10605
10606
|
}, z = (E) => {
|
|
10606
10607
|
const I = ye(a.value), w = [];
|
|
10607
10608
|
if (I[E]) {
|
|
10608
10609
|
const C = I[E][e.keyField];
|
|
10609
|
-
return I.splice(E, 1), h(I, E, E, w),
|
|
10610
|
+
return I.splice(E, 1), h(I, E, E, w), g(C), q(I), w;
|
|
10610
10611
|
}
|
|
10611
10612
|
return [];
|
|
10612
10613
|
}, M = () => {
|
|
@@ -10677,7 +10678,7 @@ const ll = "a-sortable-", _F = ["id"], SF = { key: 1 }, DF = { class: "a-sortabl
|
|
|
10677
10678
|
return;
|
|
10678
10679
|
}
|
|
10679
10680
|
i("onAddLast", null);
|
|
10680
|
-
}, u = _(() => L(s.widgetIdentifierId) ? ll + z.value : s.widgetIdentifierId), f = _(() => s.rootClassName + " " + (s.chips ? s.rootClassName + "--chips" : "")),
|
|
10681
|
+
}, u = _(() => L(s.widgetIdentifierId) ? ll + z.value : s.widgetIdentifierId), f = _(() => s.rootClassName + " " + (s.chips ? s.rootClassName + "--chips" : "")), q = () => {
|
|
10681
10682
|
if (s.disableDraggable || !N.value) return;
|
|
10682
10683
|
const C = N.value.querySelector("." + to);
|
|
10683
10684
|
C && (B.value = nl(C, [], {
|
|
@@ -10696,7 +10697,7 @@ const ll = "a-sortable-", _F = ["id"], SF = { key: 1 }, DF = { class: "a-sortabl
|
|
|
10696
10697
|
}));
|
|
10697
10698
|
}, {
|
|
10698
10699
|
items: v,
|
|
10699
|
-
forceRerender:
|
|
10700
|
+
forceRerender: g,
|
|
10700
10701
|
dirtyLocal: h,
|
|
10701
10702
|
moveArrayElement: x,
|
|
10702
10703
|
itemToRemove: F,
|
|
@@ -10713,15 +10714,15 @@ const ll = "a-sortable-", _F = ["id"], SF = { key: 1 }, DF = { class: "a-sortabl
|
|
|
10713
10714
|
addAfterIndex: E,
|
|
10714
10715
|
removeByIndex: I,
|
|
10715
10716
|
updateDataAtIndex: w
|
|
10716
|
-
} = IF(r,
|
|
10717
|
+
} = IF(r, q, s, i);
|
|
10717
10718
|
return ro(() => {
|
|
10718
10719
|
X();
|
|
10719
10720
|
}), Jt(() => {
|
|
10720
|
-
N.value = document.querySelector("#" + u.value),
|
|
10721
|
+
N.value = document.querySelector("#" + u.value), q();
|
|
10721
10722
|
}), qe(
|
|
10722
10723
|
() => s.disableDraggable,
|
|
10723
10724
|
async (C) => {
|
|
10724
|
-
X(), C === !1 &&
|
|
10725
|
+
X(), C === !1 && q();
|
|
10725
10726
|
}
|
|
10726
10727
|
), qe(
|
|
10727
10728
|
() => s.dirty,
|
|
@@ -10744,7 +10745,7 @@ const ll = "a-sortable-", _F = ["id"], SF = { key: 1 }, DF = { class: "a-sortabl
|
|
|
10744
10745
|
class: Fe(f.value)
|
|
10745
10746
|
}, [
|
|
10746
10747
|
(Y(), R("div", {
|
|
10747
|
-
key: V(
|
|
10748
|
+
key: V(g),
|
|
10748
10749
|
class: Fe(V(to))
|
|
10749
10750
|
}, [
|
|
10750
10751
|
(Y(!0), R(ge, null, je(V(v), (G) => (Y(), R(ge, {
|
|
@@ -10957,19 +10958,19 @@ function RF(a, t, e) {
|
|
|
10957
10958
|
});
|
|
10958
10959
|
}, f = () => {
|
|
10959
10960
|
v(), t();
|
|
10960
|
-
},
|
|
10961
|
+
}, q = () => {
|
|
10961
10962
|
te(l.value) || (e("onDelete", l.value), o.value = !1);
|
|
10962
10963
|
}, v = () => {
|
|
10963
10964
|
d.value && (i.value.forEach((O) => {
|
|
10964
10965
|
O.stop();
|
|
10965
10966
|
}), i.value = []);
|
|
10966
|
-
},
|
|
10967
|
+
}, g = (O, K) => {
|
|
10967
10968
|
O.meta.dirty = !0, K.meta.dirty = !0;
|
|
10968
10969
|
}, h = (O, K, E, I, w = []) => {
|
|
10969
10970
|
const C = K > E ? E : K;
|
|
10970
10971
|
let D = C + 1;
|
|
10971
10972
|
for (let $ = C; $ < O.length; $++)
|
|
10972
|
-
O[$].data.position !== D && (O[$].data.position = D,
|
|
10973
|
+
O[$].data.position !== D && (O[$].data.position = D, g(O[$], I), w.push({
|
|
10973
10974
|
id: O[$].data.id,
|
|
10974
10975
|
position: O[$].data.position
|
|
10975
10976
|
})), D++;
|
|
@@ -10977,7 +10978,7 @@ function RF(a, t, e) {
|
|
|
10977
10978
|
if (O.length > 0) {
|
|
10978
10979
|
let D = E + 1;
|
|
10979
10980
|
for (let $ = E; $ < O.length; $++)
|
|
10980
|
-
O[$].data.position !== D && (O[$].data.position = D,
|
|
10981
|
+
O[$].data.position !== D && (O[$].data.position = D, g(O[$], w), C.push({
|
|
10981
10982
|
id: O[$].data.id,
|
|
10982
10983
|
position: O[$].data.position
|
|
10983
10984
|
})), D++;
|
|
@@ -10985,7 +10986,7 @@ function RF(a, t, e) {
|
|
|
10985
10986
|
if (K.length > 0) {
|
|
10986
10987
|
let D = I + 1;
|
|
10987
10988
|
for (let $ = I; $ < K.length; $++)
|
|
10988
|
-
K[$].data.position !== D && (K[$].data.position = D,
|
|
10989
|
+
K[$].data.position !== D && (K[$].data.position = D, g(K[$], w), C.push({
|
|
10989
10990
|
id: K[$].data.id,
|
|
10990
10991
|
position: K[$].data.position
|
|
10991
10992
|
})), D++;
|
|
@@ -11034,7 +11035,7 @@ function RF(a, t, e) {
|
|
|
11034
11035
|
sortableInstances: i,
|
|
11035
11036
|
forceRerender: r,
|
|
11036
11037
|
refresh: f,
|
|
11037
|
-
onRemoveDialogConfirm:
|
|
11038
|
+
onRemoveDialogConfirm: q,
|
|
11038
11039
|
destroy: v,
|
|
11039
11040
|
moveArrayElement: (O, K, E, I, w) => {
|
|
11040
11041
|
const C = ye(a.value), { itemFound: D, parentItem: $ } = A(O, C.children);
|
|
@@ -11205,7 +11206,7 @@ const OF = ["data-id"], zF = { class: "a-sortable-nested-widget__nested" }, LF =
|
|
|
11205
11206
|
Li(ld, n + 1);
|
|
11206
11207
|
const d = _(() => e.showAddChildButton && !L(e.item.children) && e.item.children.length === 0 && n < e.maxDepth), { t: c } = ee();
|
|
11207
11208
|
return (u, f) => {
|
|
11208
|
-
const
|
|
11209
|
+
const q = $e("ASortableNestedItem", !0);
|
|
11209
11210
|
return Y(), R("div", {
|
|
11210
11211
|
class: Fe(["a-sortable-nested-widget__container", "a-sortable-nested-widget__container--level-" + V(n)]),
|
|
11211
11212
|
"data-id": u.item.data.id
|
|
@@ -11312,7 +11313,7 @@ const OF = ["data-id"], zF = { class: "a-sortable-nested-widget__nested" }, LF =
|
|
|
11312
11313
|
class: Fe(["a-sortable-nested-widget__group", { "a-sortable-nested-widget__group--empty": u.item.children.length === 0 }]),
|
|
11313
11314
|
"data-id": u.item.data.id
|
|
11314
11315
|
}, [
|
|
11315
|
-
(Y(!0), R(ge, null, je(u.item.children, (v) => (Y(), T(
|
|
11316
|
+
(Y(!0), R(ge, null, je(u.item.children, (v) => (Y(), T(q, {
|
|
11316
11317
|
key: v.data.id,
|
|
11317
11318
|
item: v,
|
|
11318
11319
|
"disable-draggable": u.disableDraggable,
|
|
@@ -11326,14 +11327,14 @@ const OF = ["data-id"], zF = { class: "a-sortable-nested-widget__nested" }, LF =
|
|
|
11326
11327
|
onOnDelete: i,
|
|
11327
11328
|
onOnEdit: r
|
|
11328
11329
|
}, {
|
|
11329
|
-
item: p(({ item:
|
|
11330
|
+
item: p(({ item: g }) => [
|
|
11330
11331
|
de(u.$slots, "item", {
|
|
11331
|
-
item:
|
|
11332
|
+
item: g
|
|
11332
11333
|
})
|
|
11333
11334
|
]),
|
|
11334
|
-
buttons: p(({ item:
|
|
11335
|
+
buttons: p(({ item: g }) => [
|
|
11335
11336
|
de(u.$slots, "buttons", {
|
|
11336
|
-
item:
|
|
11337
|
+
item: g
|
|
11337
11338
|
})
|
|
11338
11339
|
]),
|
|
11339
11340
|
_: 2
|
|
@@ -11374,7 +11375,7 @@ const OF = ["data-id"], zF = { class: "a-sortable-nested-widget__nested" }, LF =
|
|
|
11374
11375
|
return;
|
|
11375
11376
|
}
|
|
11376
11377
|
i("onAddLast", null);
|
|
11377
|
-
}, { t: u } = ee(), f = _(() => L(s.widgetIdentifierId) ? ll + x.value : s.widgetIdentifierId),
|
|
11378
|
+
}, { t: u } = ee(), f = _(() => L(s.widgetIdentifierId) ? ll + x.value : s.widgetIdentifierId), q = _(() => s.rootClassName + " " + (g.value ? s.rootClassName + "--dragging" : "")), v = () => {
|
|
11378
11379
|
if (s.disableDraggable || !h.value) return;
|
|
11379
11380
|
const I = Array.from(h.value.querySelectorAll("." + nd));
|
|
11380
11381
|
E.value = [];
|
|
@@ -11396,10 +11397,10 @@ const OF = ["data-id"], zF = { class: "a-sortable-nested-widget__nested" }, LF =
|
|
|
11396
11397
|
onUpdate: () => {
|
|
11397
11398
|
},
|
|
11398
11399
|
onStart: () => {
|
|
11399
|
-
|
|
11400
|
+
g.value = !0;
|
|
11400
11401
|
},
|
|
11401
11402
|
onEnd: (C) => {
|
|
11402
|
-
|
|
11403
|
+
g.value = !1, Jt(() => {
|
|
11403
11404
|
const D = di(C.item.getAttribute("data-id") ?? "0");
|
|
11404
11405
|
if (D < 1) return;
|
|
11405
11406
|
const $ = C.newIndex;
|
|
@@ -11415,7 +11416,7 @@ const OF = ["data-id"], zF = { class: "a-sortable-nested-widget__nested" }, LF =
|
|
|
11415
11416
|
}
|
|
11416
11417
|
});
|
|
11417
11418
|
}, {
|
|
11418
|
-
dragging:
|
|
11419
|
+
dragging: g,
|
|
11419
11420
|
widgetEl: h,
|
|
11420
11421
|
randomUuid: x,
|
|
11421
11422
|
removeDialog: F,
|
|
@@ -11451,7 +11452,7 @@ const OF = ["data-id"], zF = { class: "a-sortable-nested-widget__nested" }, LF =
|
|
|
11451
11452
|
return Y(), R("div", null, [
|
|
11452
11453
|
U("div", {
|
|
11453
11454
|
id: f.value,
|
|
11454
|
-
class: Fe(
|
|
11455
|
+
class: Fe(q.value)
|
|
11455
11456
|
}, [
|
|
11456
11457
|
(Y(), R("div", {
|
|
11457
11458
|
key: V(X),
|
|
@@ -11570,17 +11571,17 @@ const OF = ["data-id"], zF = { class: "a-sortable-nested-widget__nested" }, LF =
|
|
|
11570
11571
|
set: (b) => {
|
|
11571
11572
|
i("update:pagination", { ...ht(b) });
|
|
11572
11573
|
}
|
|
11573
|
-
}), n = S(!0), d = S(!1), { t: c } = ee(), u = _(() => s.selectedItems.length), f = _(() => u.value < s.minCount || u.value > s.maxCount),
|
|
11574
|
+
}), n = S(!0), d = S(!1), { t: c } = ee(), u = _(() => s.selectedItems.length), f = _(() => u.value < s.minCount || u.value > s.maxCount), q = () => {
|
|
11574
11575
|
i("onOpen"), n.value = !0, o.value = !0;
|
|
11575
11576
|
}, v = () => {
|
|
11576
11577
|
n.value = !n.value;
|
|
11577
|
-
},
|
|
11578
|
+
}, g = () => {
|
|
11578
11579
|
o.value = !1;
|
|
11579
11580
|
}, h = () => {
|
|
11580
11581
|
i(
|
|
11581
11582
|
"onConfirm",
|
|
11582
11583
|
s.selectedItems.map((b) => ht(b))
|
|
11583
|
-
),
|
|
11584
|
+
), g();
|
|
11584
11585
|
}, x = () => {
|
|
11585
11586
|
i("onFetchNextPage");
|
|
11586
11587
|
}, F = () => {
|
|
@@ -11589,12 +11590,12 @@ const OF = ["data-id"], zF = { class: "a-sortable-nested-widget__nested" }, LF =
|
|
|
11589
11590
|
b && X.value && !s.loading && x();
|
|
11590
11591
|
};
|
|
11591
11592
|
return t({
|
|
11592
|
-
open:
|
|
11593
|
+
open: q
|
|
11593
11594
|
}), (b, B) => {
|
|
11594
11595
|
const N = $e("ABtnSecondary"), z = $e("ABtnPrimary");
|
|
11595
11596
|
return Y(), R(ge, null, [
|
|
11596
11597
|
de(b.$slots, "activator", {
|
|
11597
|
-
props: { onClick: J(() =>
|
|
11598
|
+
props: { onClick: J(() => q(), ["stop"]) }
|
|
11598
11599
|
}),
|
|
11599
11600
|
m(Vt, Et(b.$attrs, {
|
|
11600
11601
|
"model-value": o.value,
|
|
@@ -11610,7 +11611,7 @@ const OF = ["data-id"], zF = { class: "a-sortable-nested-widget__nested" }, LF =
|
|
|
11610
11611
|
default: p(() => [
|
|
11611
11612
|
m(It, {
|
|
11612
11613
|
class: "subject-select__toolbar system-border-b",
|
|
11613
|
-
onOnCancel:
|
|
11614
|
+
onOnCancel: g
|
|
11614
11615
|
}, {
|
|
11615
11616
|
default: p(() => [
|
|
11616
11617
|
de(b.$slots, "title", {}, () => [
|
|
@@ -11788,34 +11789,34 @@ function dg() {
|
|
|
11788
11789
|
}
|
|
11789
11790
|
};
|
|
11790
11791
|
}
|
|
11791
|
-
const
|
|
11792
|
+
const qt = {
|
|
11792
11793
|
String: "string",
|
|
11793
11794
|
Integer: "integer",
|
|
11794
11795
|
StringArray: "stringArray",
|
|
11795
11796
|
StringArrayLegacy: "string_array",
|
|
11796
11797
|
// todo: remove
|
|
11797
11798
|
Boolean: "boolean"
|
|
11798
|
-
}, aK =
|
|
11799
|
+
}, aK = qt.String;
|
|
11799
11800
|
function sK() {
|
|
11800
11801
|
const { t: a } = ee(), t = S([
|
|
11801
11802
|
{
|
|
11802
|
-
value:
|
|
11803
|
+
value: qt.String,
|
|
11803
11804
|
title: a("common.customFormElement.type.string")
|
|
11804
11805
|
},
|
|
11805
11806
|
{
|
|
11806
|
-
value:
|
|
11807
|
+
value: qt.Integer,
|
|
11807
11808
|
title: a("common.customFormElement.type.integer")
|
|
11808
11809
|
},
|
|
11809
11810
|
{
|
|
11810
|
-
value:
|
|
11811
|
+
value: qt.StringArray,
|
|
11811
11812
|
title: a("common.customFormElement.type.C")
|
|
11812
11813
|
},
|
|
11813
11814
|
{
|
|
11814
|
-
value:
|
|
11815
|
+
value: qt.StringArrayLegacy,
|
|
11815
11816
|
title: a("common.customFormElement.type.stringArrayLegacy")
|
|
11816
11817
|
},
|
|
11817
11818
|
{
|
|
11818
|
-
value:
|
|
11819
|
+
value: qt.Boolean,
|
|
11819
11820
|
title: a("common.customFormElement.type.boolean")
|
|
11820
11821
|
}
|
|
11821
11822
|
]);
|
|
@@ -11875,33 +11876,33 @@ const ug = /* @__PURE__ */ W({
|
|
|
11875
11876
|
},
|
|
11876
11877
|
emits: ["update:modelValue", "blur"],
|
|
11877
11878
|
setup(a, { emit: t }) {
|
|
11878
|
-
const e = a, s = t, i = (F) => e.config.attributes.type ===
|
|
11879
|
+
const e = a, s = t, i = (F) => e.config.attributes.type === qt.Integer ? parseInt(F) : F, r = (F) => {
|
|
11879
11880
|
s("update:modelValue", { property: e.config.property, value: i(F) });
|
|
11880
11881
|
}, o = _(() => {
|
|
11881
11882
|
const F = $d(e.modelValue) ? ht(e.modelValue) : e.modelValue;
|
|
11882
|
-
return (e.config.attributes.type ===
|
|
11883
|
-
}), { maxLength: l, minLength: n, requiredIf: d, minValue: c, maxValue: u, stringArrayItemLength: f } = Ys(),
|
|
11883
|
+
return (e.config.attributes.type === qt.StringArray || e.config.attributes.type === qt.StringArrayLegacy) && li(F) ? [] : F;
|
|
11884
|
+
}), { maxLength: l, minLength: n, requiredIf: d, minValue: c, maxValue: u, stringArrayItemLength: f } = Ys(), q = _(() => {
|
|
11884
11885
|
const F = {
|
|
11885
11886
|
modelValueComputed: {
|
|
11886
11887
|
required: d(e.config.attributes.required)
|
|
11887
11888
|
}
|
|
11888
11889
|
};
|
|
11889
11890
|
switch (e.config.attributes.type) {
|
|
11890
|
-
case
|
|
11891
|
+
case qt.String:
|
|
11891
11892
|
F.modelValueComputed.minLength = n(
|
|
11892
11893
|
e.config.attributes.minValue ? e.config.attributes.minValue : 0
|
|
11893
11894
|
), F.modelValueComputed.maxLength = l(
|
|
11894
11895
|
e.config.attributes.maxValue ? e.config.attributes.maxValue : 256
|
|
11895
11896
|
);
|
|
11896
11897
|
break;
|
|
11897
|
-
case
|
|
11898
|
+
case qt.Integer:
|
|
11898
11899
|
F.modelValueComputed.minValue = c(
|
|
11899
11900
|
e.config.attributes.minValue ? e.config.attributes.minValue : 0
|
|
11900
11901
|
), F.modelValueComputed.maxValue = u(
|
|
11901
11902
|
e.config.attributes.maxValue ? e.config.attributes.maxValue : 9999
|
|
11902
11903
|
);
|
|
11903
11904
|
break;
|
|
11904
|
-
case
|
|
11905
|
+
case qt.StringArray:
|
|
11905
11906
|
F.modelValueComputed.minLength = n(
|
|
11906
11907
|
e.config.attributes.minCount ? e.config.attributes.minCount : 0
|
|
11907
11908
|
), F.modelValueComputed.maxLength = l(
|
|
@@ -11913,19 +11914,19 @@ const ug = /* @__PURE__ */ W({
|
|
|
11913
11914
|
break;
|
|
11914
11915
|
}
|
|
11915
11916
|
return F;
|
|
11916
|
-
}), v = Tm(
|
|
11917
|
+
}), v = Tm(q, { modelValueComputed: o }, { $scope: e.validationScope }), g = _(() => v.value.$errors.length ? [v.value.$errors.map((F) => F.$message).join(" ")] : []), h = S(void 0);
|
|
11917
11918
|
h.value = e.config.attributes.maxValue ?? void 0;
|
|
11918
11919
|
const x = () => {
|
|
11919
11920
|
s("blur", e.modelValue), v.value.$touch();
|
|
11920
11921
|
};
|
|
11921
11922
|
return (F, y) => (Y(), R(ge, null, [
|
|
11922
|
-
F.config.attributes.type === V(
|
|
11923
|
+
F.config.attributes.type === V(qt).String ? (Y(), T(Ld, {
|
|
11923
11924
|
key: 0,
|
|
11924
11925
|
"model-value": F.modelValue,
|
|
11925
11926
|
"auto-grow": "",
|
|
11926
11927
|
rows: 1,
|
|
11927
11928
|
label: F.config.name,
|
|
11928
|
-
"error-messages":
|
|
11929
|
+
"error-messages": g.value,
|
|
11929
11930
|
counter: h.value,
|
|
11930
11931
|
readonly: F.config.attributes.readonly,
|
|
11931
11932
|
"data-cy": "custom-field-" + F.config.property,
|
|
@@ -11937,12 +11938,12 @@ const ug = /* @__PURE__ */ W({
|
|
|
11937
11938
|
F.config.attributes.required ? (Y(), R("span", cg)) : j("", !0)
|
|
11938
11939
|
]),
|
|
11939
11940
|
_: 1
|
|
11940
|
-
}, 8, ["model-value", "label", "error-messages", "counter", "readonly", "data-cy"])) : F.config.attributes.type === V(
|
|
11941
|
+
}, 8, ["model-value", "label", "error-messages", "counter", "readonly", "data-cy"])) : F.config.attributes.type === V(qt).Integer ? (Y(), T(mi, {
|
|
11941
11942
|
key: 1,
|
|
11942
11943
|
"model-value": o.value,
|
|
11943
11944
|
type: "number",
|
|
11944
11945
|
label: F.config.name,
|
|
11945
|
-
"error-messages":
|
|
11946
|
+
"error-messages": g.value,
|
|
11946
11947
|
readonly: F.config.attributes.readonly,
|
|
11947
11948
|
"data-cy": "custom-field-" + F.config.property,
|
|
11948
11949
|
"onUpdate:modelValue": r,
|
|
@@ -11953,14 +11954,14 @@ const ug = /* @__PURE__ */ W({
|
|
|
11953
11954
|
F.config.attributes.required ? (Y(), R("span", mg)) : j("", !0)
|
|
11954
11955
|
]),
|
|
11955
11956
|
_: 1
|
|
11956
|
-
}, 8, ["model-value", "label", "error-messages", "readonly", "data-cy"])) : F.config.attributes.type === V(
|
|
11957
|
+
}, 8, ["model-value", "label", "error-messages", "readonly", "data-cy"])) : F.config.attributes.type === V(qt).StringArray || F.config.attributes.type === V(qt).StringArrayLegacy ? (Y(), T(Jm, {
|
|
11957
11958
|
key: 2,
|
|
11958
11959
|
"model-value": o.value,
|
|
11959
11960
|
label: F.config.name,
|
|
11960
11961
|
multiple: "",
|
|
11961
11962
|
chips: "",
|
|
11962
11963
|
readonly: F.config.attributes.readonly,
|
|
11963
|
-
"error-messages":
|
|
11964
|
+
"error-messages": g.value,
|
|
11964
11965
|
"data-cy": "custom-field-" + F.config.property,
|
|
11965
11966
|
"onUpdate:modelValue": r,
|
|
11966
11967
|
onBlur: x
|
|
@@ -11971,7 +11972,7 @@ const ug = /* @__PURE__ */ W({
|
|
|
11971
11972
|
]),
|
|
11972
11973
|
_: 1
|
|
11973
11974
|
}, 8, ["model-value", "label", "readonly", "error-messages", "data-cy"])) : j("", !0),
|
|
11974
|
-
F.config.attributes.type === V(
|
|
11975
|
+
F.config.attributes.type === V(qt).Boolean && F.config.attributes.required === !0 ? (Y(), T(fi, {
|
|
11975
11976
|
key: 3,
|
|
11976
11977
|
label: F.config.name,
|
|
11977
11978
|
"model-value": o.value,
|
|
@@ -11979,7 +11980,7 @@ const ug = /* @__PURE__ */ W({
|
|
|
11979
11980
|
"data-cy": "custom-field-" + F.config.property,
|
|
11980
11981
|
"onUpdate:modelValue": r
|
|
11981
11982
|
}, null, 8, ["label", "model-value", "readonly", "data-cy"])) : j("", !0),
|
|
11982
|
-
F.config.attributes.type === V(
|
|
11983
|
+
F.config.attributes.type === V(qt).Boolean && F.config.attributes.required === !1 ? (Y(), T(ug, {
|
|
11983
11984
|
key: 4,
|
|
11984
11985
|
"model-value": o.value,
|
|
11985
11986
|
label: F.config.name,
|
|
@@ -12003,7 +12004,7 @@ const ug = /* @__PURE__ */ W({
|
|
|
12003
12004
|
const s = a, i = e, { t: r } = ee(), { showAll: o, toggleForm: l } = dg(), n = (h) => {
|
|
12004
12005
|
const x = {};
|
|
12005
12006
|
x[h.property] = h.value, i("update:modelValue", { ...s.modelValue, ...x }), i("anyChange");
|
|
12006
|
-
}, d = _(() => s.elements.slice(0, s.pinnedCount)), c = _(() => s.elements.slice(s.pinnedCount)), u = _(() => o.value ? r("common.damImage.asset.detail.metadataToggle.show") : r("common.damImage.asset.detail.metadataToggle.hide")), f = _(() => o.value ? "mdi-minus" : "mdi-plus"),
|
|
12007
|
+
}, d = _(() => s.elements.slice(0, s.pinnedCount)), c = _(() => s.elements.slice(s.pinnedCount)), u = _(() => o.value ? r("common.damImage.asset.detail.metadataToggle.show") : r("common.damImage.asset.detail.metadataToggle.hide")), f = _(() => o.value ? "mdi-minus" : "mdi-plus"), q = _(() => s.elements.length > s.pinnedCount), v = ma({ $scope: s.validationScope });
|
|
12007
12008
|
return t({
|
|
12008
12009
|
validate: () => v.value.$validate()
|
|
12009
12010
|
}), (h, x) => (Y(), R(ge, null, [
|
|
@@ -12072,7 +12073,7 @@ const ug = /* @__PURE__ */ W({
|
|
|
12072
12073
|
], 512), [
|
|
12073
12074
|
[ps, V(o)]
|
|
12074
12075
|
]),
|
|
12075
|
-
|
|
12076
|
+
q.value ? (Y(), T(ie, {
|
|
12076
12077
|
key: 0,
|
|
12077
12078
|
variant: "text",
|
|
12078
12079
|
size: "small",
|
|
@@ -12302,7 +12303,7 @@ function Ac(a, t, e, s = "id", i = 1e3) {
|
|
|
12302
12303
|
}
|
|
12303
12304
|
return [];
|
|
12304
12305
|
}
|
|
12305
|
-
const
|
|
12306
|
+
const q = Sm(
|
|
12306
12307
|
async () => await f(),
|
|
12307
12308
|
1500,
|
|
12308
12309
|
{ maxWait: 5e3 }
|
|
@@ -12310,7 +12311,7 @@ function Ac(a, t, e, s = "id", i = 1e3) {
|
|
|
12310
12311
|
return {
|
|
12311
12312
|
cache: r,
|
|
12312
12313
|
toFetch: o,
|
|
12313
|
-
fetch: () =>
|
|
12314
|
+
fetch: () => q(),
|
|
12314
12315
|
immediateFetch: () => f(),
|
|
12315
12316
|
add: l,
|
|
12316
12317
|
addManual: n,
|
|
@@ -12716,12 +12717,12 @@ var _c = { exports: {} };
|
|
|
12716
12717
|
}
|
|
12717
12718
|
for (var A = (x >> 2) + 1; A < h.length; A++)
|
|
12718
12719
|
h[A] = 0;
|
|
12719
|
-
},
|
|
12720
|
+
}, q = function(h, x, F) {
|
|
12720
12721
|
h[x >> 2] |= 128 << 24 - (x % 4 << 3), h[((x >> 2) + 2 & -16) + 14] = F / (1 << 29) | 0, h[((x >> 2) + 2 & -16) + 15] = F << 3;
|
|
12721
12722
|
}, v = function(h, x) {
|
|
12722
12723
|
var F = new Int32Array(h, x + 320, 5), y = new Int32Array(5), X = new DataView(y.buffer);
|
|
12723
12724
|
return X.setInt32(0, F[0], !1), X.setInt32(4, F[1], !1), X.setInt32(8, F[2], !1), X.setInt32(12, F[3], !1), X.setInt32(16, F[4], !1), y;
|
|
12724
|
-
},
|
|
12725
|
+
}, g = function() {
|
|
12725
12726
|
function h(x) {
|
|
12726
12727
|
if (r(this, h), x = x || 64 * 1024, x % 64 > 0)
|
|
12727
12728
|
throw new Error("Chunk size must be a multiple of 128 bit");
|
|
@@ -12733,7 +12734,7 @@ var _c = { exports: {} };
|
|
|
12733
12734
|
X[0] = 1732584193, X[1] = -271733879, X[2] = -1732584194, X[3] = 271733878, X[4] = -1009589776;
|
|
12734
12735
|
}, h.prototype._padChunk = function(F, y) {
|
|
12735
12736
|
var X = u(F), A = new Int32Array(this._heap, 0, X >> 2);
|
|
12736
|
-
return f(A, F),
|
|
12737
|
+
return f(A, F), q(A, F, y), X;
|
|
12737
12738
|
}, h.prototype._write = function(F, y, X, A) {
|
|
12738
12739
|
c(F, this._h8, this._h32, y, X, A || 0);
|
|
12739
12740
|
}, h.prototype._coreCall = function(F, y, X, A, b) {
|
|
@@ -12789,7 +12790,7 @@ var _c = { exports: {} };
|
|
|
12789
12790
|
return n(this.rawEnd().buffer);
|
|
12790
12791
|
}, h;
|
|
12791
12792
|
}();
|
|
12792
|
-
e.exports =
|
|
12793
|
+
e.exports = g, e.exports._core = o;
|
|
12793
12794
|
},
|
|
12794
12795
|
/* 1 */
|
|
12795
12796
|
/***/
|
|
@@ -12825,32 +12826,32 @@ var _c = { exports: {} };
|
|
|
12825
12826
|
} catch (f) {
|
|
12826
12827
|
return u(f);
|
|
12827
12828
|
}
|
|
12828
|
-
}, l = function(d, c, u, f,
|
|
12829
|
+
}, l = function(d, c, u, f, q) {
|
|
12829
12830
|
var v = new self.FileReader();
|
|
12830
12831
|
v.onloadend = function() {
|
|
12831
12832
|
if (v.error)
|
|
12832
|
-
return
|
|
12833
|
+
return q(v.error);
|
|
12833
12834
|
var h = v.result;
|
|
12834
12835
|
c += v.result.byteLength;
|
|
12835
12836
|
try {
|
|
12836
12837
|
d.append(h);
|
|
12837
12838
|
} catch (x) {
|
|
12838
|
-
|
|
12839
|
+
q(x);
|
|
12839
12840
|
return;
|
|
12840
12841
|
}
|
|
12841
|
-
c < f.size ? l(d, c, u, f,
|
|
12842
|
+
c < f.size ? l(d, c, u, f, q) : q(null, d.end());
|
|
12842
12843
|
}, v.readAsArrayBuffer(f.slice(c, c + u));
|
|
12843
12844
|
}, n = !0;
|
|
12844
12845
|
return self.onmessage = function(d) {
|
|
12845
12846
|
if (n) {
|
|
12846
12847
|
var c = d.data.data, u = d.data.file, f = d.data.id;
|
|
12847
12848
|
if (!(typeof f > "u") && !(!u && !c)) {
|
|
12848
|
-
var
|
|
12849
|
+
var q = d.data.blockSize || 4 * 1024 * 1024, v = new r(q);
|
|
12849
12850
|
v.resetState();
|
|
12850
|
-
var
|
|
12851
|
+
var g = function(h, x) {
|
|
12851
12852
|
h ? self.postMessage({ id: f, error: h.name }) : self.postMessage({ id: f, hash: x });
|
|
12852
12853
|
};
|
|
12853
|
-
c && o(v, c,
|
|
12854
|
+
c && o(v, c, g), u && l(v, 0, q, u, g);
|
|
12854
12855
|
}
|
|
12855
12856
|
}
|
|
12856
12857
|
}, function() {
|
|
@@ -12867,9 +12868,9 @@ var _c = { exports: {} };
|
|
|
12867
12868
|
var f = r(
|
|
12868
12869
|
/*require.resolve*/
|
|
12869
12870
|
2
|
|
12870
|
-
),
|
|
12871
|
+
), q = f.terminate;
|
|
12871
12872
|
return f.terminate = function() {
|
|
12872
|
-
URL.revokeObjectURL(f.objectURL),
|
|
12873
|
+
URL.revokeObjectURL(f.objectURL), q.call(f);
|
|
12873
12874
|
}, f;
|
|
12874
12875
|
}, o.createHash = l, e.exports = o;
|
|
12875
12876
|
},
|
|
@@ -12877,11 +12878,11 @@ var _c = { exports: {} };
|
|
|
12877
12878
|
/***/
|
|
12878
12879
|
function(e, s, i) {
|
|
12879
12880
|
function r(f) {
|
|
12880
|
-
var
|
|
12881
|
+
var q = {};
|
|
12881
12882
|
function v(h) {
|
|
12882
|
-
if (
|
|
12883
|
-
return
|
|
12884
|
-
var x =
|
|
12883
|
+
if (q[h])
|
|
12884
|
+
return q[h].exports;
|
|
12885
|
+
var x = q[h] = {
|
|
12885
12886
|
/******/
|
|
12886
12887
|
i: h,
|
|
12887
12888
|
/******/
|
|
@@ -12892,7 +12893,7 @@ var _c = { exports: {} };
|
|
|
12892
12893
|
};
|
|
12893
12894
|
return f[h].call(x.exports, x, x.exports, v), x.l = !0, x.exports;
|
|
12894
12895
|
}
|
|
12895
|
-
v.m = f, v.c =
|
|
12896
|
+
v.m = f, v.c = q, v.i = function(h) {
|
|
12896
12897
|
return h;
|
|
12897
12898
|
}, v.d = function(h, x, F) {
|
|
12898
12899
|
v.o(h, x) || Object.defineProperty(h, x, {
|
|
@@ -12924,34 +12925,34 @@ var _c = { exports: {} };
|
|
|
12924
12925
|
}, v.p = "/", v.oe = function(h) {
|
|
12925
12926
|
throw console.error(h), h;
|
|
12926
12927
|
};
|
|
12927
|
-
var
|
|
12928
|
-
return
|
|
12928
|
+
var g = v(v.s = ENTRY_MODULE);
|
|
12929
|
+
return g.default || g;
|
|
12929
12930
|
}
|
|
12930
12931
|
var o = "[\\.|\\-|\\+|\\w|/|@]+", l = "\\((/\\*.*?\\*/)?s?.*?(" + o + ").*?\\)";
|
|
12931
12932
|
function n(f) {
|
|
12932
12933
|
return (f + "").replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
|
|
12933
12934
|
}
|
|
12934
|
-
function d(f,
|
|
12935
|
-
var
|
|
12936
|
-
|
|
12937
|
-
var h =
|
|
12938
|
-
if (!x) return
|
|
12935
|
+
function d(f, q, v) {
|
|
12936
|
+
var g = {};
|
|
12937
|
+
g[v] = [];
|
|
12938
|
+
var h = q.toString(), x = h.match(/^function\s?\(\w+,\s*\w+,\s*(\w+)\)/);
|
|
12939
|
+
if (!x) return g;
|
|
12939
12940
|
for (var F = x[1], y = new RegExp("(\\\\n|\\W)" + n(F) + l, "g"), X; X = y.exec(h); )
|
|
12940
|
-
X[3] !== "dll-reference" &&
|
|
12941
|
+
X[3] !== "dll-reference" && g[v].push(X[3]);
|
|
12941
12942
|
for (y = new RegExp("\\(" + n(F) + '\\("(dll-reference\\s(' + o + '))"\\)\\)' + l, "g"); X = y.exec(h); )
|
|
12942
|
-
f[X[2]] || (
|
|
12943
|
-
return
|
|
12943
|
+
f[X[2]] || (g[v].push(X[1]), f[X[2]] = i(X[1]).m), g[X[2]] = g[X[2]] || [], g[X[2]].push(X[4]);
|
|
12944
|
+
return g;
|
|
12944
12945
|
}
|
|
12945
12946
|
function c(f) {
|
|
12946
|
-
var
|
|
12947
|
-
return
|
|
12948
|
-
return v || f[
|
|
12947
|
+
var q = Object.keys(f);
|
|
12948
|
+
return q.reduce(function(v, g) {
|
|
12949
|
+
return v || f[g].length > 0;
|
|
12949
12950
|
}, !1);
|
|
12950
12951
|
}
|
|
12951
|
-
function u(f,
|
|
12952
|
+
function u(f, q) {
|
|
12952
12953
|
for (var v = {
|
|
12953
|
-
main: [
|
|
12954
|
-
},
|
|
12954
|
+
main: [q]
|
|
12955
|
+
}, g = {
|
|
12955
12956
|
main: []
|
|
12956
12957
|
}, h = {
|
|
12957
12958
|
main: {}
|
|
@@ -12959,32 +12960,32 @@ var _c = { exports: {} };
|
|
|
12959
12960
|
for (var x = Object.keys(v), F = 0; F < x.length; F++) {
|
|
12960
12961
|
var y = x[F], X = v[y], A = X.pop();
|
|
12961
12962
|
if (h[y] = h[y] || {}, !(h[y][A] || !f[y][A])) {
|
|
12962
|
-
h[y][A] = !0,
|
|
12963
|
+
h[y][A] = !0, g[y] = g[y] || [], g[y].push(A);
|
|
12963
12964
|
for (var b = d(f, f[y][A], y), B = Object.keys(b), N = 0; N < B.length; N++)
|
|
12964
12965
|
v[B[N]] = v[B[N]] || [], v[B[N]] = v[B[N]].concat(b[B[N]]);
|
|
12965
12966
|
}
|
|
12966
12967
|
}
|
|
12967
|
-
return
|
|
12968
|
+
return g;
|
|
12968
12969
|
}
|
|
12969
|
-
e.exports = function(f,
|
|
12970
|
-
|
|
12970
|
+
e.exports = function(f, q) {
|
|
12971
|
+
q = q || {};
|
|
12971
12972
|
var v = {
|
|
12972
12973
|
main: i.m
|
|
12973
|
-
},
|
|
12974
|
-
Object.keys(
|
|
12974
|
+
}, g = q.all ? { main: Object.keys(v) } : u(v, f), h = "";
|
|
12975
|
+
Object.keys(g).filter(function(A) {
|
|
12975
12976
|
return A !== "main";
|
|
12976
12977
|
}).forEach(function(A) {
|
|
12977
|
-
for (var b = 0;
|
|
12978
|
+
for (var b = 0; g[A][b]; )
|
|
12978
12979
|
b++;
|
|
12979
|
-
|
|
12980
|
+
g[A].push(b), v[A][b] = "(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })", h = h + "var " + A + " = (" + r.toString().replace("ENTRY_MODULE", JSON.stringify(b)) + ")({" + g[A].map(function(B) {
|
|
12980
12981
|
return "" + JSON.stringify(B) + ": " + v[A][B].toString();
|
|
12981
12982
|
}).join(",") + `});
|
|
12982
12983
|
`;
|
|
12983
|
-
}), h = h + "(" + r.toString().replace("ENTRY_MODULE", JSON.stringify(f)) + ")({" +
|
|
12984
|
+
}), h = h + "(" + r.toString().replace("ENTRY_MODULE", JSON.stringify(f)) + ")({" + g.main.map(function(A) {
|
|
12984
12985
|
return "" + JSON.stringify(A) + ": " + v.main[A].toString();
|
|
12985
12986
|
}).join(",") + "})(self);";
|
|
12986
12987
|
var x = new window.Blob([h], { type: "text/javascript" });
|
|
12987
|
-
if (
|
|
12988
|
+
if (q.bare)
|
|
12988
12989
|
return x;
|
|
12989
12990
|
var F = window.URL || window.webkitURL || window.mozURL || window.msURL, y = F.createObjectURL(x), X = new window.Worker(y);
|
|
12990
12991
|
return X.objectURL = y, X;
|
|
@@ -12997,19 +12998,19 @@ var _c = { exports: {} };
|
|
|
12997
12998
|
var n = new r.Int32Array(l);
|
|
12998
12999
|
function d(c, u) {
|
|
12999
13000
|
c = c | 0, u = u | 0;
|
|
13000
|
-
var f = 0,
|
|
13001
|
+
var f = 0, q = 0, v = 0, g = 0, h = 0, x = 0, F = 0, y = 0, X = 0, A = 0, b = 0, B = 0, N = 0, z = 0;
|
|
13001
13002
|
for (v = n[u + 320 >> 2] | 0, h = n[u + 324 >> 2] | 0, F = n[u + 328 >> 2] | 0, X = n[u + 332 >> 2] | 0, b = n[u + 336 >> 2] | 0, f = 0; (f | 0) < (c | 0); f = f + 64 | 0) {
|
|
13002
|
-
for (
|
|
13003
|
-
z = n[f +
|
|
13004
|
-
for (
|
|
13005
|
-
z = (n[
|
|
13006
|
-
for (
|
|
13007
|
-
z = (n[
|
|
13008
|
-
for (
|
|
13009
|
-
z = (n[
|
|
13010
|
-
for (
|
|
13011
|
-
z = (n[
|
|
13012
|
-
v = v +
|
|
13003
|
+
for (g = v, x = h, y = F, A = X, B = b, q = 0; (q | 0) < 64; q = q + 4 | 0)
|
|
13004
|
+
z = n[f + q >> 2] | 0, N = ((v << 5 | v >>> 27) + (h & F | ~h & X) | 0) + ((z + b | 0) + 1518500249 | 0) | 0, b = X, X = F, F = h << 30 | h >>> 2, h = v, v = N, n[c + q >> 2] = z;
|
|
13005
|
+
for (q = c + 64 | 0; (q | 0) < (c + 80 | 0); q = q + 4 | 0)
|
|
13006
|
+
z = (n[q - 12 >> 2] ^ n[q - 32 >> 2] ^ n[q - 56 >> 2] ^ n[q - 64 >> 2]) << 1 | (n[q - 12 >> 2] ^ n[q - 32 >> 2] ^ n[q - 56 >> 2] ^ n[q - 64 >> 2]) >>> 31, N = ((v << 5 | v >>> 27) + (h & F | ~h & X) | 0) + ((z + b | 0) + 1518500249 | 0) | 0, b = X, X = F, F = h << 30 | h >>> 2, h = v, v = N, n[q >> 2] = z;
|
|
13007
|
+
for (q = c + 80 | 0; (q | 0) < (c + 160 | 0); q = q + 4 | 0)
|
|
13008
|
+
z = (n[q - 12 >> 2] ^ n[q - 32 >> 2] ^ n[q - 56 >> 2] ^ n[q - 64 >> 2]) << 1 | (n[q - 12 >> 2] ^ n[q - 32 >> 2] ^ n[q - 56 >> 2] ^ n[q - 64 >> 2]) >>> 31, N = ((v << 5 | v >>> 27) + (h ^ F ^ X) | 0) + ((z + b | 0) + 1859775393 | 0) | 0, b = X, X = F, F = h << 30 | h >>> 2, h = v, v = N, n[q >> 2] = z;
|
|
13009
|
+
for (q = c + 160 | 0; (q | 0) < (c + 240 | 0); q = q + 4 | 0)
|
|
13010
|
+
z = (n[q - 12 >> 2] ^ n[q - 32 >> 2] ^ n[q - 56 >> 2] ^ n[q - 64 >> 2]) << 1 | (n[q - 12 >> 2] ^ n[q - 32 >> 2] ^ n[q - 56 >> 2] ^ n[q - 64 >> 2]) >>> 31, N = ((v << 5 | v >>> 27) + (h & F | h & X | F & X) | 0) + ((z + b | 0) - 1894007588 | 0) | 0, b = X, X = F, F = h << 30 | h >>> 2, h = v, v = N, n[q >> 2] = z;
|
|
13011
|
+
for (q = c + 240 | 0; (q | 0) < (c + 320 | 0); q = q + 4 | 0)
|
|
13012
|
+
z = (n[q - 12 >> 2] ^ n[q - 32 >> 2] ^ n[q - 56 >> 2] ^ n[q - 64 >> 2]) << 1 | (n[q - 12 >> 2] ^ n[q - 32 >> 2] ^ n[q - 56 >> 2] ^ n[q - 64 >> 2]) >>> 31, N = ((v << 5 | v >>> 27) + (h ^ F ^ X) | 0) + ((z + b | 0) - 899497514 | 0) | 0, b = X, X = F, F = h << 30 | h >>> 2, h = v, v = N, n[q >> 2] = z;
|
|
13013
|
+
v = v + g | 0, h = h + x | 0, F = F + y | 0, X = X + A | 0, b = b + B | 0;
|
|
13013
13014
|
}
|
|
13014
13015
|
n[u + 320 >> 2] = v, n[u + 324 >> 2] = h, n[u + 328 >> 2] = F, n[u + 332 >> 2] = X, n[u + 336 >> 2] = b;
|
|
13015
13016
|
}
|
|
@@ -13021,8 +13022,8 @@ var _c = { exports: {} };
|
|
|
13021
13022
|
function(e, s) {
|
|
13022
13023
|
var i = this, r = void 0;
|
|
13023
13024
|
typeof self < "u" && typeof self.FileReaderSync < "u" && (r = new self.FileReaderSync());
|
|
13024
|
-
var o = function(d, c, u, f,
|
|
13025
|
-
var
|
|
13025
|
+
var o = function(d, c, u, f, q, v) {
|
|
13026
|
+
var g = void 0, h = v % 4, x = (q + h) % 4, F = q - x;
|
|
13026
13027
|
switch (h) {
|
|
13027
13028
|
case 0:
|
|
13028
13029
|
c[v] = d.charCodeAt(f + 3);
|
|
@@ -13033,9 +13034,9 @@ var _c = { exports: {} };
|
|
|
13033
13034
|
case 3:
|
|
13034
13035
|
c[v + 3 - (h << 1) | 0] = d.charCodeAt(f);
|
|
13035
13036
|
}
|
|
13036
|
-
if (!(
|
|
13037
|
-
for (
|
|
13038
|
-
u[v +
|
|
13037
|
+
if (!(q < x + (4 - h))) {
|
|
13038
|
+
for (g = 4 - h; g < F; g = g + 4 | 0)
|
|
13039
|
+
u[v + g >> 2] = d.charCodeAt(f + g) << 24 | d.charCodeAt(f + g + 1) << 16 | d.charCodeAt(f + g + 2) << 8 | d.charCodeAt(f + g + 3);
|
|
13039
13040
|
switch (x) {
|
|
13040
13041
|
case 3:
|
|
13041
13042
|
c[v + F + 1 | 0] = d.charCodeAt(f + F + 2);
|
|
@@ -13045,8 +13046,8 @@ var _c = { exports: {} };
|
|
|
13045
13046
|
c[v + F + 3 | 0] = d.charCodeAt(f + F);
|
|
13046
13047
|
}
|
|
13047
13048
|
}
|
|
13048
|
-
}, l = function(d, c, u, f,
|
|
13049
|
-
var
|
|
13049
|
+
}, l = function(d, c, u, f, q, v) {
|
|
13050
|
+
var g = void 0, h = v % 4, x = (q + h) % 4, F = q - x;
|
|
13050
13051
|
switch (h) {
|
|
13051
13052
|
case 0:
|
|
13052
13053
|
c[v] = d[f + 3];
|
|
@@ -13057,9 +13058,9 @@ var _c = { exports: {} };
|
|
|
13057
13058
|
case 3:
|
|
13058
13059
|
c[v + 3 - (h << 1) | 0] = d[f];
|
|
13059
13060
|
}
|
|
13060
|
-
if (!(
|
|
13061
|
-
for (
|
|
13062
|
-
u[v +
|
|
13061
|
+
if (!(q < x + (4 - h))) {
|
|
13062
|
+
for (g = 4 - h; g < F; g = g + 4 | 0)
|
|
13063
|
+
u[v + g >> 2 | 0] = d[f + g] << 24 | d[f + g + 1] << 16 | d[f + g + 2] << 8 | d[f + g + 3];
|
|
13063
13064
|
switch (x) {
|
|
13064
13065
|
case 3:
|
|
13065
13066
|
c[v + F + 1 | 0] = d[f + F + 2];
|
|
@@ -13069,8 +13070,8 @@ var _c = { exports: {} };
|
|
|
13069
13070
|
c[v + F + 3 | 0] = d[f + F];
|
|
13070
13071
|
}
|
|
13071
13072
|
}
|
|
13072
|
-
}, n = function(d, c, u, f,
|
|
13073
|
-
var
|
|
13073
|
+
}, n = function(d, c, u, f, q, v) {
|
|
13074
|
+
var g = void 0, h = v % 4, x = (q + h) % 4, F = q - x, y = new Uint8Array(r.readAsArrayBuffer(d.slice(f, f + q)));
|
|
13074
13075
|
switch (h) {
|
|
13075
13076
|
case 0:
|
|
13076
13077
|
c[v] = y[3];
|
|
@@ -13081,9 +13082,9 @@ var _c = { exports: {} };
|
|
|
13081
13082
|
case 3:
|
|
13082
13083
|
c[v + 3 - (h << 1) | 0] = y[0];
|
|
13083
13084
|
}
|
|
13084
|
-
if (!(
|
|
13085
|
-
for (
|
|
13086
|
-
u[v +
|
|
13085
|
+
if (!(q < x + (4 - h))) {
|
|
13086
|
+
for (g = 4 - h; g < F; g = g + 4 | 0)
|
|
13087
|
+
u[v + g >> 2 | 0] = y[g] << 24 | y[g + 1] << 16 | y[g + 2] << 8 | y[g + 3];
|
|
13087
13088
|
switch (x) {
|
|
13088
13089
|
case 3:
|
|
13089
13090
|
c[v + F + 1 | 0] = y[F + 2];
|
|
@@ -13094,17 +13095,17 @@ var _c = { exports: {} };
|
|
|
13094
13095
|
}
|
|
13095
13096
|
}
|
|
13096
13097
|
};
|
|
13097
|
-
e.exports = function(d, c, u, f,
|
|
13098
|
+
e.exports = function(d, c, u, f, q, v) {
|
|
13098
13099
|
if (typeof d == "string")
|
|
13099
|
-
return o(d, c, u, f,
|
|
13100
|
+
return o(d, c, u, f, q, v);
|
|
13100
13101
|
if (d instanceof Array || i && i.Buffer && i.Buffer.isBuffer(d))
|
|
13101
|
-
return l(d, c, u, f,
|
|
13102
|
+
return l(d, c, u, f, q, v);
|
|
13102
13103
|
if (d instanceof ArrayBuffer)
|
|
13103
|
-
return l(new Uint8Array(d), c, u, f,
|
|
13104
|
+
return l(new Uint8Array(d), c, u, f, q, v);
|
|
13104
13105
|
if (d.buffer instanceof ArrayBuffer)
|
|
13105
|
-
return l(new Uint8Array(d.buffer, d.byteOffset, d.byteLength), c, u, f,
|
|
13106
|
+
return l(new Uint8Array(d.buffer, d.byteOffset, d.byteLength), c, u, f, q, v);
|
|
13106
13107
|
if (d instanceof Blob)
|
|
13107
|
-
return n(d, c, u, f,
|
|
13108
|
+
return n(d, c, u, f, q, v);
|
|
13108
13109
|
throw new Error("Unsupported data type.");
|
|
13109
13110
|
};
|
|
13110
13111
|
},
|
|
@@ -13112,14 +13113,14 @@ var _c = { exports: {} };
|
|
|
13112
13113
|
/***/
|
|
13113
13114
|
function(e, s, i) {
|
|
13114
13115
|
var r = /* @__PURE__ */ function() {
|
|
13115
|
-
function u(f,
|
|
13116
|
-
for (var v = 0; v <
|
|
13117
|
-
var
|
|
13118
|
-
|
|
13116
|
+
function u(f, q) {
|
|
13117
|
+
for (var v = 0; v < q.length; v++) {
|
|
13118
|
+
var g = q[v];
|
|
13119
|
+
g.enumerable = g.enumerable || !1, g.configurable = !0, "value" in g && (g.writable = !0), Object.defineProperty(f, g.key, g);
|
|
13119
13120
|
}
|
|
13120
13121
|
}
|
|
13121
|
-
return function(f,
|
|
13122
|
-
return
|
|
13122
|
+
return function(f, q, v) {
|
|
13123
|
+
return q && u(f.prototype, q), v && u(f, v), f;
|
|
13123
13124
|
};
|
|
13124
13125
|
}();
|
|
13125
13126
|
function o(u, f) {
|
|
@@ -13130,13 +13131,13 @@ var _c = { exports: {} };
|
|
|
13130
13131
|
function u() {
|
|
13131
13132
|
o(this, u), this._rusha = new l(), this._rusha.resetState();
|
|
13132
13133
|
}
|
|
13133
|
-
return u.prototype.update = function(
|
|
13134
|
-
return this._rusha.append(
|
|
13135
|
-
}, u.prototype.digest = function(
|
|
13134
|
+
return u.prototype.update = function(q) {
|
|
13135
|
+
return this._rusha.append(q), this;
|
|
13136
|
+
}, u.prototype.digest = function(q) {
|
|
13136
13137
|
var v = this._rusha.rawEnd().buffer;
|
|
13137
|
-
if (!
|
|
13138
|
+
if (!q)
|
|
13138
13139
|
return v;
|
|
13139
|
-
if (
|
|
13140
|
+
if (q === "hex")
|
|
13140
13141
|
return d(v);
|
|
13141
13142
|
throw new Error("unsupported digest encoding");
|
|
13142
13143
|
}, r(u, [{
|
|
@@ -13197,7 +13198,7 @@ function rq(a, t = void 0) {
|
|
|
13197
13198
|
const { damClient: e } = ot(), s = S(0), i = S(0);
|
|
13198
13199
|
let r = [], o = 0, l = 0, n = 0;
|
|
13199
13200
|
const d = Zg.createHash(), { updateChunkSize: c, lastChunkSize: u } = Bg(), f = () => Date.now() / 1e3;
|
|
13200
|
-
function
|
|
13201
|
+
function q(y) {
|
|
13201
13202
|
const X = f();
|
|
13202
13203
|
if (o === 0) {
|
|
13203
13204
|
o = X;
|
|
@@ -13219,13 +13220,13 @@ function rq(a, t = void 0) {
|
|
|
13219
13220
|
// todo check
|
|
13220
13221
|
y.size,
|
|
13221
13222
|
X,
|
|
13222
|
-
|
|
13223
|
+
q
|
|
13223
13224
|
).then((B) => {
|
|
13224
13225
|
A(B);
|
|
13225
13226
|
}).catch((B) => {
|
|
13226
13227
|
b(B);
|
|
13227
13228
|
});
|
|
13228
|
-
}),
|
|
13229
|
+
}), g = async (y) => {
|
|
13229
13230
|
c(a.progress.speed);
|
|
13230
13231
|
let X = await ud(y, u.value, a.file), A = new File([X.data], a.file.name);
|
|
13231
13232
|
a.currentChunkIndex = y;
|
|
@@ -13275,7 +13276,7 @@ function rq(a, t = void 0) {
|
|
|
13275
13276
|
if (L(y)) return Promise.reject();
|
|
13276
13277
|
let X = 0;
|
|
13277
13278
|
for (; X < y; ) {
|
|
13278
|
-
const b = await
|
|
13279
|
+
const b = await g(X);
|
|
13279
13280
|
X += b.size, i.value = X / y * 100;
|
|
13280
13281
|
}
|
|
13281
13282
|
return l = Date.now() / 1e3, await aq(a, d.digest("hex"));
|
|
@@ -13344,7 +13345,7 @@ const cd = (a) => {
|
|
|
13344
13345
|
pq,
|
|
13345
13346
|
$
|
|
13346
13347
|
);
|
|
13347
|
-
Ve.file = ae, Ve.displayTitle = ae.name, f(C), u(C, Ve),
|
|
13348
|
+
Ve.file = ae, Ve.displayTitle = ae.name, f(C), u(C, Ve), q(C), g(C);
|
|
13348
13349
|
}
|
|
13349
13350
|
}
|
|
13350
13351
|
function u(C, D) {
|
|
@@ -13360,7 +13361,7 @@ const cd = (a) => {
|
|
|
13360
13361
|
suggestions: { newKeywordNames: /* @__PURE__ */ new Set(), newAuthorNames: /* @__PURE__ */ new Set() }
|
|
13361
13362
|
});
|
|
13362
13363
|
}
|
|
13363
|
-
function
|
|
13364
|
+
function q(C) {
|
|
13364
13365
|
const D = i.value.get(C);
|
|
13365
13366
|
D && (D.totalCount = D.items.length, D.processedCount = v(C, Ne.Uploaded).length + v(C, Ne.Failed).length);
|
|
13366
13367
|
}
|
|
@@ -13368,7 +13369,7 @@ const cd = (a) => {
|
|
|
13368
13369
|
const $ = i.value.get(C);
|
|
13369
13370
|
return $ ? $.items.filter((H) => H.status === D) : [];
|
|
13370
13371
|
}
|
|
13371
|
-
function
|
|
13372
|
+
function g(C) {
|
|
13372
13373
|
const D = v(C, Ne.Waiting);
|
|
13373
13374
|
if (!(D.length === 0 || v(C, Ne.Uploading).length === md))
|
|
13374
13375
|
for (let H = 0; H < md; H++)
|
|
@@ -13379,9 +13380,9 @@ const cd = (a) => {
|
|
|
13379
13380
|
x(C, G, Z, ae);
|
|
13380
13381
|
});
|
|
13381
13382
|
try {
|
|
13382
|
-
await H(), await $(),
|
|
13383
|
+
await H(), await $(), g(D);
|
|
13383
13384
|
} catch {
|
|
13384
|
-
C.error.hasError = !0, C.status = Ne.Failed,
|
|
13385
|
+
C.error.hasError = !0, C.status = Ne.Failed, q(D), g(D);
|
|
13385
13386
|
}
|
|
13386
13387
|
}
|
|
13387
13388
|
function x(C, D, $, H) {
|
|
@@ -13394,8 +13395,8 @@ const cd = (a) => {
|
|
|
13394
13395
|
i.value.forEach(($, H) => {
|
|
13395
13396
|
$.items.forEach((G) => {
|
|
13396
13397
|
var Z;
|
|
13397
|
-
G.assetId === D.id && D.mainFile && (clearTimeout(G.notificationFallbackTimer), G.status = Ne.Uploaded, G.assetStatus = D.attributes.assetStatus, (Z = D.mainFile.links) != null && Z.image_detail && (G.imagePreview = D.mainFile.links.image_detail), G.mainFileSingleUse = D.mainFileSingleUse,
|
|
13398
|
-
}),
|
|
13398
|
+
G.assetId === D.id && D.mainFile && (clearTimeout(G.notificationFallbackTimer), G.status = Ne.Uploaded, G.assetStatus = D.attributes.assetStatus, (Z = D.mainFile.links) != null && Z.image_detail && (G.imagePreview = D.mainFile.links.image_detail), G.mainFileSingleUse = D.mainFileSingleUse, g(H));
|
|
13399
|
+
}), q(H);
|
|
13399
13400
|
});
|
|
13400
13401
|
} catch {
|
|
13401
13402
|
}
|
|
@@ -13412,8 +13413,8 @@ const cd = (a) => {
|
|
|
13412
13413
|
i.value.forEach((ae, fe) => {
|
|
13413
13414
|
ae.items.forEach((Ve) => {
|
|
13414
13415
|
var Ke, Re;
|
|
13415
|
-
te(Z) || Ve.assetId === C && (clearTimeout(Ve.notificationFallbackTimer), Ve.isDuplicate = !0, Ve.status = Ne.Uploaded, Ve.fileId = D, Ve.duplicateAssetId = Z.id, Ve.assetStatus = Z.attributes.assetStatus, (Re = (Ke = Z.mainFile) == null ? void 0 : Ke.links) != null && Re.image_detail && (Ve.imagePreview = Z.mainFile.links.image_detail), Ve.keywords = Z.keywords, Ve.authors = Z.authors, Ve.customData = Z.metadata.customData, H(Z.metadata.authorSuggestions, ae.suggestions.newAuthorNames), H(Z.metadata.keywordSuggestions, ae.suggestions.newKeywordNames), Ve.authorConflicts = G(Z.metadata.authorSuggestions), a(Ve.keywords), e(Ve.authors), e(Ve.authorConflicts), Ve.assetId = Z.id, Ve.mainFileSingleUse = Z.mainFileSingleUse, Ve.canEditMetadata = !0,
|
|
13416
|
-
}),
|
|
13416
|
+
te(Z) || Ve.assetId === C && (clearTimeout(Ve.notificationFallbackTimer), Ve.isDuplicate = !0, Ve.status = Ne.Uploaded, Ve.fileId = D, Ve.duplicateAssetId = Z.id, Ve.assetStatus = Z.attributes.assetStatus, (Re = (Ke = Z.mainFile) == null ? void 0 : Ke.links) != null && Re.image_detail && (Ve.imagePreview = Z.mainFile.links.image_detail), Ve.keywords = Z.keywords, Ve.authors = Z.authors, Ve.customData = Z.metadata.customData, H(Z.metadata.authorSuggestions, ae.suggestions.newAuthorNames), H(Z.metadata.keywordSuggestions, ae.suggestions.newKeywordNames), Ve.authorConflicts = G(Z.metadata.authorSuggestions), a(Ve.keywords), e(Ve.authors), e(Ve.authorConflicts), Ve.assetId = Z.id, Ve.mainFileSingleUse = Z.mainFileSingleUse, Ve.canEditMetadata = !0, g(fe));
|
|
13417
|
+
}), q(fe), s(), t();
|
|
13417
13418
|
});
|
|
13418
13419
|
}
|
|
13419
13420
|
async function X(C, D) {
|
|
@@ -13421,8 +13422,8 @@ const cd = (a) => {
|
|
|
13421
13422
|
const $ = await ds(o, C);
|
|
13422
13423
|
i.value.forEach((H, G) => {
|
|
13423
13424
|
H.items.forEach((Z) => {
|
|
13424
|
-
Z.assetId === $.id && (clearTimeout(Z.notificationFallbackTimer), Z.error.hasError = !0, Z.status = Ne.Failed, Z.error.assetFileFailReason = D, Z.canEditMetadata = !1,
|
|
13425
|
-
}),
|
|
13425
|
+
Z.assetId === $.id && (clearTimeout(Z.notificationFallbackTimer), Z.error.hasError = !0, Z.status = Ne.Failed, Z.error.assetFileFailReason = D, Z.canEditMetadata = !1, g(G));
|
|
13426
|
+
}), q(G);
|
|
13426
13427
|
});
|
|
13427
13428
|
} catch {
|
|
13428
13429
|
}
|
|
@@ -13434,18 +13435,18 @@ const cd = (a) => {
|
|
|
13434
13435
|
i.value.forEach((G, Z) => {
|
|
13435
13436
|
G.items.forEach((ae) => {
|
|
13436
13437
|
ae.assetId === H.id && ae.type && (clearTimeout(ae.notificationFallbackTimer), ae.keywords = H.keywords, ae.authors = H.authors, ae.customData = H.metadata.customData, ae.mainFileSingleUse = H.mainFileSingleUse, D(H.metadata.authorSuggestions, G.suggestions.newAuthorNames), D(H.metadata.keywordSuggestions, G.suggestions.newKeywordNames), ae.authorConflicts = $(H.metadata.authorSuggestions), a(ae.keywords), e(ae.authors), e(ae.authorConflicts), ae.canEditMetadata = !0);
|
|
13437
|
-
}),
|
|
13438
|
+
}), q(Z), s(), t();
|
|
13438
13439
|
});
|
|
13439
13440
|
} catch {
|
|
13440
13441
|
}
|
|
13441
13442
|
}
|
|
13442
13443
|
function b(C, D) {
|
|
13443
13444
|
const $ = i.value.get(C);
|
|
13444
|
-
!$ || !$.items[D] || ($.items.splice(D, 1),
|
|
13445
|
+
!$ || !$.items[D] || ($.items.splice(D, 1), q(C));
|
|
13445
13446
|
}
|
|
13446
13447
|
async function B(C, D, $) {
|
|
13447
13448
|
const H = i.value.get(C);
|
|
13448
|
-
!H || H.items.length === 0 || (D.status = Ne.Stop, D.latestChunkCancelToken && cd(D.latestChunkCancelToken), b(C, $),
|
|
13449
|
+
!H || H.items.length === 0 || (D.status = Ne.Stop, D.latestChunkCancelToken && cd(D.latestChunkCancelToken), b(C, $), g(C));
|
|
13449
13450
|
}
|
|
13450
13451
|
async function N(C) {
|
|
13451
13452
|
const { updateNewNames: D, getAuthorConflicts: $ } = ln();
|
|
@@ -13454,7 +13455,7 @@ const cd = (a) => {
|
|
|
13454
13455
|
i.value.forEach((G, Z) => {
|
|
13455
13456
|
G.items.forEach((ae) => {
|
|
13456
13457
|
ae.assetId === H.id && ae.type && (clearTimeout(ae.notificationFallbackTimer), ae.keywords = H.keywords, ae.authors = H.authors, ae.customData = H.metadata.customData, D(H.metadata.authorSuggestions, G.suggestions.newAuthorNames), D(H.metadata.keywordSuggestions, G.suggestions.newKeywordNames), ae.authorConflicts = $(H.metadata.authorSuggestions), a(ae.keywords), e(ae.authors), e(ae.authorConflicts));
|
|
13457
|
-
}),
|
|
13458
|
+
}), q(Z), s(), t();
|
|
13458
13459
|
});
|
|
13459
13460
|
} catch {
|
|
13460
13461
|
}
|
|
@@ -13565,14 +13566,14 @@ const Fq = {
|
|
|
13565
13566
|
const t = a, { showErrorsDefault: e } = He(), s = ir(t.configName), { imageClient: i } = s, { widgetImageToDamImageUrl: r } = dl(s), o = S(null), { image: l, modelValue: n } = ci(t), d = S(""), { t: c } = ee(), u = (f) => Ya(t.damWidth) && Ya(t.damHeight) ? r(f, t.damWidth, t.damHeight) : r(f);
|
|
13566
13567
|
return qe(
|
|
13567
13568
|
[l, n],
|
|
13568
|
-
async ([f,
|
|
13569
|
+
async ([f, q]) => {
|
|
13569
13570
|
if (o.value = null, d.value = Ks, f) {
|
|
13570
13571
|
o.value = ye(f), o.value && (d.value = u(o.value));
|
|
13571
13572
|
return;
|
|
13572
13573
|
}
|
|
13573
|
-
if (
|
|
13574
|
+
if (q) {
|
|
13574
13575
|
try {
|
|
13575
|
-
o.value = await ul(i,
|
|
13576
|
+
o.value = await ul(i, q);
|
|
13576
13577
|
} catch (v) {
|
|
13577
13578
|
e(v);
|
|
13578
13579
|
}
|
|
@@ -13580,7 +13581,7 @@ const Fq = {
|
|
|
13580
13581
|
}
|
|
13581
13582
|
},
|
|
13582
13583
|
{ immediate: !0 }
|
|
13583
|
-
), (f,
|
|
13584
|
+
), (f, q) => (Y(), R(ge, null, [
|
|
13584
13585
|
f.label ? (Y(), R("h4", Fq, k(f.label), 1)) : j("", !0),
|
|
13585
13586
|
m(Pr, {
|
|
13586
13587
|
"lazy-src": V(Ks),
|
|
@@ -13610,7 +13611,7 @@ const Fq = {
|
|
|
13610
13611
|
m(oe, null, {
|
|
13611
13612
|
default: p(() => [
|
|
13612
13613
|
U("span", Yq, k(V(c)("common.damImage.image.model.texts.description")) + ":", 1),
|
|
13613
|
-
|
|
13614
|
+
q[0] || (q[0] = U("br", null, null, -1)),
|
|
13614
13615
|
P(k(o.value.texts.description), 1)
|
|
13615
13616
|
]),
|
|
13616
13617
|
_: 1
|
|
@@ -13626,7 +13627,7 @@ const Fq = {
|
|
|
13626
13627
|
m(oe, null, {
|
|
13627
13628
|
default: p(() => [
|
|
13628
13629
|
U("span", Xq, k(V(c)("common.damImage.image.model.texts.source")) + ":", 1),
|
|
13629
|
-
|
|
13630
|
+
q[1] || (q[1] = U("br", null, null, -1)),
|
|
13630
13631
|
P(k(o.value.texts.source), 1)
|
|
13631
13632
|
]),
|
|
13632
13633
|
_: 1
|
|
@@ -13714,7 +13715,7 @@ const xq = { key: 0 }, wq = { class: "d-flex align-center justify-center" }, kq
|
|
|
13714
13715
|
};
|
|
13715
13716
|
return t({
|
|
13716
13717
|
confirm: d
|
|
13717
|
-
}), (f,
|
|
13718
|
+
}), (f, q) => {
|
|
13718
13719
|
const v = $e("ABtnPrimary");
|
|
13719
13720
|
return f.expand ? (Y(), R("div", xq, [
|
|
13720
13721
|
f.loading ? (Y(), T(ve, { key: 0 }, {
|
|
@@ -13754,7 +13755,7 @@ const xq = { key: 0 }, wq = { class: "d-flex align-center justify-center" }, kq
|
|
|
13754
13755
|
default: p(() => [
|
|
13755
13756
|
m(ls, {
|
|
13756
13757
|
modelValue: V(o).texts.description,
|
|
13757
|
-
"onUpdate:modelValue":
|
|
13758
|
+
"onUpdate:modelValue": q[0] || (q[0] = (g) => V(o).texts.description = g),
|
|
13758
13759
|
label: V(i)("common.damImage.image.model.texts.description"),
|
|
13759
13760
|
help: V(i)("common.damImage.image.help.texts.description")
|
|
13760
13761
|
}, null, 8, ["modelValue", "label", "help"])
|
|
@@ -13770,7 +13771,7 @@ const xq = { key: 0 }, wq = { class: "d-flex align-center justify-center" }, kq
|
|
|
13770
13771
|
default: p(() => [
|
|
13771
13772
|
m(ls, {
|
|
13772
13773
|
modelValue: V(o).texts.source,
|
|
13773
|
-
"onUpdate:modelValue":
|
|
13774
|
+
"onUpdate:modelValue": q[1] || (q[1] = (g) => V(o).texts.source = g),
|
|
13774
13775
|
label: V(i)("common.damImage.image.model.texts.source"),
|
|
13775
13776
|
v: V(l).image.texts.source
|
|
13776
13777
|
}, null, 8, ["modelValue", "label", "v"])
|
|
@@ -13791,7 +13792,7 @@ const xq = { key: 0 }, wq = { class: "d-flex align-center justify-center" }, kq
|
|
|
13791
13792
|
f.modelValue ? (Y(), T(Le, { key: 0 }, {
|
|
13792
13793
|
default: p(() => [
|
|
13793
13794
|
m(It, {
|
|
13794
|
-
onOnCancel:
|
|
13795
|
+
onOnCancel: q[2] || (q[2] = (g) => c(!1))
|
|
13795
13796
|
}, {
|
|
13796
13797
|
default: p(() => [
|
|
13797
13798
|
P(k(V(i)("common.damImage.image.meta.edit")), 1)
|
|
@@ -13833,7 +13834,7 @@ const xq = { key: 0 }, wq = { class: "d-flex align-center justify-center" }, kq
|
|
|
13833
13834
|
default: p(() => [
|
|
13834
13835
|
m(ls, {
|
|
13835
13836
|
modelValue: V(o).texts.description,
|
|
13836
|
-
"onUpdate:modelValue":
|
|
13837
|
+
"onUpdate:modelValue": q[3] || (q[3] = (g) => V(o).texts.description = g),
|
|
13837
13838
|
label: V(i)("common.damImage.image.model.texts.description"),
|
|
13838
13839
|
help: V(i)("common.damImage.image.help.texts.description")
|
|
13839
13840
|
}, null, 8, ["modelValue", "label", "help"])
|
|
@@ -13849,7 +13850,7 @@ const xq = { key: 0 }, wq = { class: "d-flex align-center justify-center" }, kq
|
|
|
13849
13850
|
default: p(() => [
|
|
13850
13851
|
m(ls, {
|
|
13851
13852
|
modelValue: V(o).texts.source,
|
|
13852
|
-
"onUpdate:modelValue":
|
|
13853
|
+
"onUpdate:modelValue": q[4] || (q[4] = (g) => V(o).texts.source = g),
|
|
13853
13854
|
label: V(i)("common.damImage.image.model.texts.source"),
|
|
13854
13855
|
v: V(l).image.texts.source
|
|
13855
13856
|
}, null, 8, ["modelValue", "label", "v"])
|
|
@@ -14133,8 +14134,8 @@ const Mq = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
14133
14134
|
if (!e.uploadingProgress) return "0%";
|
|
14134
14135
|
const v = Math.ceil(e.uploadingProgress);
|
|
14135
14136
|
return v > 100 ? "100%" : v + "%";
|
|
14136
|
-
}), d = _(() => [ut.Deleting, ut.Draft].includes(e.assetStatus) ? "#ccc" : e.backgroundColor), c = _(() => e.assetStatus === ut.WithFile ? "#505050" : "#8f8f8f"), u = _(() => L(e.src) ? Ks : e.src), f = _(() => e.hideIcon ? !1 : !(e.assetType === Xe.Image && e.src)), { remainingTimeShort:
|
|
14137
|
-
return (v,
|
|
14137
|
+
}), d = _(() => [ut.Deleting, ut.Draft].includes(e.assetStatus) ? "#ccc" : e.backgroundColor), c = _(() => e.assetStatus === ut.WithFile ? "#505050" : "#8f8f8f"), u = _(() => L(e.src) ? Ks : e.src), f = _(() => e.hideIcon ? !1 : !(e.assetType === Xe.Image && e.src)), { remainingTimeShort: q } = Eq();
|
|
14138
|
+
return (v, g) => v.showUploading || v.showProcessing || v.showWaiting ? (Y(), T(Pr, {
|
|
14138
14139
|
key: 0,
|
|
14139
14140
|
"aspect-ratio": v.aspectRatio,
|
|
14140
14141
|
src: u.value,
|
|
@@ -14145,7 +14146,7 @@ const Mq = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
14145
14146
|
onError: o,
|
|
14146
14147
|
onLoad: r
|
|
14147
14148
|
}, {
|
|
14148
|
-
placeholder: p(() =>
|
|
14149
|
+
placeholder: p(() => g[0] || (g[0] = [])),
|
|
14149
14150
|
default: p(() => [
|
|
14150
14151
|
v.showWaiting ? (Y(), R("div", Wq, [
|
|
14151
14152
|
m(tt, {
|
|
@@ -14179,7 +14180,7 @@ const Mq = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
14179
14180
|
}, 8, ["color", "size", "width", "model-value"]),
|
|
14180
14181
|
U("div", e7, [
|
|
14181
14182
|
P(k(V(i)("common.damImage.upload.uploading")) + " ", 1),
|
|
14182
|
-
v.remainingTime ? (Y(), R("span", t7, k(V(
|
|
14183
|
+
v.remainingTime ? (Y(), R("span", t7, k(V(q)(v.remainingTime)), 1)) : j("", !0)
|
|
14183
14184
|
])
|
|
14184
14185
|
])) : j("", !0)
|
|
14185
14186
|
]),
|
|
@@ -14195,7 +14196,7 @@ const Mq = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
|
|
|
14195
14196
|
onLoad: r,
|
|
14196
14197
|
onError: o
|
|
14197
14198
|
}, {
|
|
14198
|
-
placeholder: p(() =>
|
|
14199
|
+
placeholder: p(() => g[1] || (g[1] = [])),
|
|
14199
14200
|
default: p(() => [
|
|
14200
14201
|
f.value ? (Y(), R("div", a7, [
|
|
14201
14202
|
U("div", {
|
|
@@ -14802,11 +14803,11 @@ const x7 = /* @__PURE__ */ W({
|
|
|
14802
14803
|
n.value = l(e.extSystem, !0), n.value.name = e.initialValue, d.value = !0;
|
|
14803
14804
|
}, f = () => {
|
|
14804
14805
|
d.value = !1;
|
|
14805
|
-
}, { v$:
|
|
14806
|
+
}, { v$: q } = b7(n, e.validationScope), { t: v } = ee(), { showValidationError: g, showRecordWas: h, showErrorsDefault: x } = He(), F = async () => {
|
|
14806
14807
|
if (!c.value)
|
|
14807
14808
|
try {
|
|
14808
|
-
if (c.value = !0,
|
|
14809
|
-
|
|
14809
|
+
if (c.value = !0, q.value.$touch(), q.value.$invalid) {
|
|
14810
|
+
g(), c.value = !1;
|
|
14810
14811
|
return;
|
|
14811
14812
|
}
|
|
14812
14813
|
const X = await kh(i, n.value);
|
|
@@ -14887,7 +14888,7 @@ const x7 = /* @__PURE__ */ W({
|
|
|
14887
14888
|
modelValue: n.value.name,
|
|
14888
14889
|
"onUpdate:modelValue": A[0] || (A[0] = (N) => n.value.name = N),
|
|
14889
14890
|
label: V(v)("common.damImage.author.model.name"),
|
|
14890
|
-
v: V(
|
|
14891
|
+
v: V(q).author.name,
|
|
14891
14892
|
required: "",
|
|
14892
14893
|
"data-cy": "author-name",
|
|
14893
14894
|
onKeyup: Pa(F, ["enter"])
|
|
@@ -14901,7 +14902,7 @@ const x7 = /* @__PURE__ */ W({
|
|
|
14901
14902
|
modelValue: n.value.identifier,
|
|
14902
14903
|
"onUpdate:modelValue": A[1] || (A[1] = (N) => n.value.identifier = N),
|
|
14903
14904
|
label: V(v)("common.damImage.author.model.identifier"),
|
|
14904
|
-
v: V(
|
|
14905
|
+
v: V(q).author.identifier,
|
|
14905
14906
|
"data-cy": "author-identifier",
|
|
14906
14907
|
onKeyup: Pa(F, ["enter"])
|
|
14907
14908
|
}, null, 8, ["modelValue", "label", "v"])
|
|
@@ -14995,16 +14996,16 @@ const x7 = /* @__PURE__ */ W({
|
|
|
14995
14996
|
}
|
|
14996
14997
|
}, d = ma(n, { modelValueComputed: i }, { $scope: e.validationScope }), { fetchItemsMinimal: c } = Zu(e.extSystem), u = Ju(), f = async (F) => {
|
|
14997
14998
|
F && (i.value.includes(F) || (i.value = [...i.value, F]));
|
|
14998
|
-
},
|
|
14999
|
-
F.length > 0 && (
|
|
15000
|
-
}, { addManualToCachedAuthors:
|
|
15001
|
-
if (
|
|
14999
|
+
}, q = S(""), v = (F) => {
|
|
15000
|
+
F.length > 0 && (q.value = F);
|
|
15001
|
+
}, { addManualToCachedAuthors: g } = rr(), h = (F) => {
|
|
15002
|
+
if (g(F), We(i.value)) {
|
|
15002
15003
|
i.value = [...i.value, F.id];
|
|
15003
15004
|
return;
|
|
15004
15005
|
}
|
|
15005
15006
|
i.value = F.id;
|
|
15006
15007
|
}, x = (F) => We(i.value) ? i.value.includes(F) : i.value ? i.value === F : !1;
|
|
15007
|
-
return
|
|
15008
|
+
return gt(() => {
|
|
15008
15009
|
}), (F, y) => (Y(), R(ge, null, [
|
|
15009
15010
|
U("div", w7, [
|
|
15010
15011
|
m(Du, {
|
|
@@ -15075,7 +15076,7 @@ const x7 = /* @__PURE__ */ W({
|
|
|
15075
15076
|
variant: "icon",
|
|
15076
15077
|
"ext-system": F.extSystem,
|
|
15077
15078
|
"data-cy": "add-author",
|
|
15078
|
-
"initial-value":
|
|
15079
|
+
"initial-value": q.value,
|
|
15079
15080
|
"disable-redirect": "",
|
|
15080
15081
|
disabled: F.disabled,
|
|
15081
15082
|
onOnSuccess: h
|
|
@@ -15212,11 +15213,11 @@ const E7 = /* @__PURE__ */ W({
|
|
|
15212
15213
|
n.value = l(e.extSystem, !0), n.value.name = e.initialValue, d.value = !0;
|
|
15213
15214
|
}, f = () => {
|
|
15214
15215
|
d.value = !1;
|
|
15215
|
-
}, { v$:
|
|
15216
|
+
}, { v$: q } = T7(n, e.validationScope), { t: v } = ee(), { showValidationError: g, showRecordWas: h, showErrorsDefault: x } = He(), F = async () => {
|
|
15216
15217
|
if (!c.value)
|
|
15217
15218
|
try {
|
|
15218
|
-
if (c.value = !0,
|
|
15219
|
-
|
|
15219
|
+
if (c.value = !0, q.value.$touch(), q.value.$invalid) {
|
|
15220
|
+
g(), c.value = !1;
|
|
15220
15221
|
return;
|
|
15221
15222
|
}
|
|
15222
15223
|
const y = await yh(i, n.value);
|
|
@@ -15297,7 +15298,7 @@ const E7 = /* @__PURE__ */ W({
|
|
|
15297
15298
|
modelValue: n.value.name,
|
|
15298
15299
|
"onUpdate:modelValue": X[0] || (X[0] = (B) => n.value.name = B),
|
|
15299
15300
|
label: V(v)("common.damImage.keyword.model.name"),
|
|
15300
|
-
v: V(
|
|
15301
|
+
v: V(q).keyword.name,
|
|
15301
15302
|
required: "",
|
|
15302
15303
|
"data-cy": "keyword-name",
|
|
15303
15304
|
onKeyup: Pa(F, ["enter"])
|
|
@@ -15374,13 +15375,13 @@ const E7 = /* @__PURE__ */ W({
|
|
|
15374
15375
|
}
|
|
15375
15376
|
}, n = ma(l, { modelValueComputed: i }, { $scope: e.validationScope }), { fetchItemsMinimal: d } = Hu(e.extSystem), c = xh(), u = S(""), f = (h) => {
|
|
15376
15377
|
h.length > 0 && (u.value = h);
|
|
15377
|
-
}, { addManualToCachedKeywords:
|
|
15378
|
-
if (
|
|
15378
|
+
}, { addManualToCachedKeywords: q } = _o(), v = (h) => {
|
|
15379
|
+
if (q(h), We(i.value)) {
|
|
15379
15380
|
i.value = [...i.value, h.id];
|
|
15380
15381
|
return;
|
|
15381
15382
|
}
|
|
15382
15383
|
i.value = h.id;
|
|
15383
|
-
},
|
|
15384
|
+
}, g = (h) => We(i.value) ? i.value.includes(h) : i.value ? i.value === h : !1;
|
|
15384
15385
|
return (h, x) => (Y(), R("div", M7, [
|
|
15385
15386
|
m(Du, {
|
|
15386
15387
|
modelValue: i.value,
|
|
@@ -15422,7 +15423,7 @@ const E7 = /* @__PURE__ */ W({
|
|
|
15422
15423
|
name: "prepend",
|
|
15423
15424
|
fn: p(() => [
|
|
15424
15425
|
m(Gi, {
|
|
15425
|
-
"model-value":
|
|
15426
|
+
"model-value": g(y.value),
|
|
15426
15427
|
ripple: !1
|
|
15427
15428
|
}, null, 8, ["model-value"])
|
|
15428
15429
|
]),
|
|
@@ -15483,7 +15484,7 @@ const E7 = /* @__PURE__ */ W({
|
|
|
15483
15484
|
return ((x = r.value) == null ? void 0 : x.attributes.assetType) || go;
|
|
15484
15485
|
}), c = _(() => d.value === Xe.Image), u = _(() => r.value && r.value.mainFile ? r.value.mainFile : null), f = () => {
|
|
15485
15486
|
l.value = !0;
|
|
15486
|
-
}, { keywordRequired:
|
|
15487
|
+
}, { keywordRequired: q, keywordEnabled: v } = vl(d.value, t.extSystem), { authorRequired: g, authorEnabled: h } = hl(d.value, t.extSystem);
|
|
15487
15488
|
return (x, F) => V(r) ? (Y(), T(jn, {
|
|
15488
15489
|
key: 0,
|
|
15489
15490
|
modelValue: s.value,
|
|
@@ -15533,7 +15534,7 @@ const E7 = /* @__PURE__ */ W({
|
|
|
15533
15534
|
"data-cy": "custom-field-keywords",
|
|
15534
15535
|
clearable: "",
|
|
15535
15536
|
multiple: "",
|
|
15536
|
-
required: V(
|
|
15537
|
+
required: V(q),
|
|
15537
15538
|
"validation-scope": V(za)
|
|
15538
15539
|
}, null, 8, ["modelValue", "ext-system", "label", "required", "validation-scope"])
|
|
15539
15540
|
]),
|
|
@@ -15570,7 +15571,7 @@ const E7 = /* @__PURE__ */ W({
|
|
|
15570
15571
|
"data-cy": "custom-field-authors",
|
|
15571
15572
|
clearable: "",
|
|
15572
15573
|
multiple: "",
|
|
15573
|
-
required: V(
|
|
15574
|
+
required: V(g),
|
|
15574
15575
|
"validation-scope": V(za)
|
|
15575
15576
|
}, null, 8, ["modelValue", "ext-system", "label", "author-conflicts", "required", "validation-scope"])
|
|
15576
15577
|
]),
|
|
@@ -15766,27 +15767,27 @@ const E7 = /* @__PURE__ */ W({
|
|
|
15766
15767
|
extSystem: {}
|
|
15767
15768
|
},
|
|
15768
15769
|
setup(a) {
|
|
15769
|
-
const t = a, { t: e } = ee(), s = Aa(), { asset: i, updateUploadStore: r, mainFileSingleUse: o } = _t(s), l = ia(), n = S(!1), { showRecordWas: d, showValidationError: c, showErrorsDefault: u } = He(), f = ma({ $scope: za, $stopPropagation: !0 }), { damClient:
|
|
15770
|
+
const t = a, { t: e } = ee(), s = Aa(), { asset: i, updateUploadStore: r, mainFileSingleUse: o } = _t(s), l = ia(), n = S(!1), { showRecordWas: d, showValidationError: c, showErrorsDefault: u } = He(), f = ma({ $scope: za, $stopPropagation: !0 }), { damClient: q } = ot(), v = async () => {
|
|
15770
15771
|
if (!te(i.value)) {
|
|
15771
15772
|
if (n.value = !0, f.value.$touch(), f.value.$invalid) {
|
|
15772
15773
|
c(), n.value = !1;
|
|
15773
15774
|
return;
|
|
15774
15775
|
}
|
|
15775
15776
|
try {
|
|
15776
|
-
await Hv(
|
|
15777
|
-
} catch (
|
|
15778
|
-
u(
|
|
15777
|
+
await Hv(q, i.value, t.extSystem, o.value), r.value && !te(i.value) && await l.updateFromDetail(i.value), d("updated");
|
|
15778
|
+
} catch (g) {
|
|
15779
|
+
u(g);
|
|
15779
15780
|
} finally {
|
|
15780
15781
|
n.value = !1;
|
|
15781
15782
|
}
|
|
15782
15783
|
}
|
|
15783
15784
|
};
|
|
15784
|
-
return (
|
|
15785
|
+
return (g, h) => {
|
|
15785
15786
|
const x = $e("ABtnPrimary");
|
|
15786
15787
|
return Y(), R(ge, null, [
|
|
15787
|
-
|
|
15788
|
+
g.isActive ? (Y(), T(Vl, {
|
|
15788
15789
|
key: 0,
|
|
15789
|
-
"queue-key":
|
|
15790
|
+
"queue-key": g.queueKey
|
|
15790
15791
|
}, {
|
|
15791
15792
|
default: p(() => [
|
|
15792
15793
|
m(x, {
|
|
@@ -15804,7 +15805,7 @@ const E7 = /* @__PURE__ */ W({
|
|
|
15804
15805
|
]),
|
|
15805
15806
|
_: 1
|
|
15806
15807
|
}, 8, ["queue-key"])) : j("", !0),
|
|
15807
|
-
m(B7, { "ext-system":
|
|
15808
|
+
m(B7, { "ext-system": g.extSystem }, null, 8, ["ext-system"])
|
|
15808
15809
|
], 64);
|
|
15809
15810
|
};
|
|
15810
15811
|
}
|
|
@@ -15879,7 +15880,7 @@ const E7 = /* @__PURE__ */ W({
|
|
|
15879
15880
|
"prepend-icon": "mdi-rotate-right",
|
|
15880
15881
|
class: "mr-2",
|
|
15881
15882
|
"data-cy": "button-rotate-right",
|
|
15882
|
-
onClick: u[0] || (u[0] = J((
|
|
15883
|
+
onClick: u[0] || (u[0] = J((q) => n(90), ["stop"]))
|
|
15883
15884
|
}, {
|
|
15884
15885
|
default: p(() => [
|
|
15885
15886
|
P(k(V(d)("common.damImage.asset.detail.roi.rotate.rotateClockwise")), 1)
|
|
@@ -15889,7 +15890,7 @@ const E7 = /* @__PURE__ */ W({
|
|
|
15889
15890
|
m(f, {
|
|
15890
15891
|
"prepend-icon": "mdi-rotate-left",
|
|
15891
15892
|
"data-cy": "button-rotate-left",
|
|
15892
|
-
onClick: u[1] || (u[1] = J((
|
|
15893
|
+
onClick: u[1] || (u[1] = J((q) => n(270), ["stop"]))
|
|
15893
15894
|
}, {
|
|
15894
15895
|
default: p(() => [
|
|
15895
15896
|
P(k(V(d)("common.damImage.asset.detail.roi.rotate.rotateCounterclockwise")), 1)
|
|
@@ -15929,7 +15930,7 @@ const E7 = /* @__PURE__ */ W({
|
|
|
15929
15930
|
}, l = async () => {
|
|
15930
15931
|
await o(), e.forceReloadRoiPreviews(), e.forceReloadCropper();
|
|
15931
15932
|
};
|
|
15932
|
-
return
|
|
15933
|
+
return gt(async () => {
|
|
15933
15934
|
e.reset(), e.showLoader(), s.asset && s.asset.mainFile && or(s.asset.mainFile) && (e.setImageFile(ye(s.asset.mainFile)), await o()), e.hideLoader();
|
|
15934
15935
|
}), (n, d) => {
|
|
15935
15936
|
var u;
|
|
@@ -15991,7 +15992,7 @@ const E7 = /* @__PURE__ */ W({
|
|
|
15991
15992
|
},
|
|
15992
15993
|
setup(a) {
|
|
15993
15994
|
const t = a, { mounted: e, unMounted: s, divClassName: i } = zc(t.queueKey);
|
|
15994
|
-
return
|
|
15995
|
+
return gt(async () => {
|
|
15995
15996
|
await Jt(), e();
|
|
15996
15997
|
}), ro(() => {
|
|
15997
15998
|
s();
|
|
@@ -16338,11 +16339,11 @@ function cs(a, t) {
|
|
|
16338
16339
|
function DY(a, t) {
|
|
16339
16340
|
return a.classList ? a.classList.contains(t) : a.className.indexOf(t) > -1;
|
|
16340
16341
|
}
|
|
16341
|
-
function
|
|
16342
|
+
function Yt(a, t) {
|
|
16342
16343
|
if (t) {
|
|
16343
16344
|
if (Ee(a.length)) {
|
|
16344
16345
|
ft(a, function(s) {
|
|
16345
|
-
|
|
16346
|
+
Yt(s, t);
|
|
16346
16347
|
});
|
|
16347
16348
|
return;
|
|
16348
16349
|
}
|
|
@@ -16377,7 +16378,7 @@ function ti(a, t, e) {
|
|
|
16377
16378
|
});
|
|
16378
16379
|
return;
|
|
16379
16380
|
}
|
|
16380
|
-
e ?
|
|
16381
|
+
e ? Yt(a, t) : xa(a, t);
|
|
16381
16382
|
}
|
|
16382
16383
|
}
|
|
16383
16384
|
var KY = /([a-z\d])([A-Z])/g;
|
|
@@ -16543,15 +16544,15 @@ function BY(a) {
|
|
|
16543
16544
|
};
|
|
16544
16545
|
}
|
|
16545
16546
|
function PY(a, t, e, s) {
|
|
16546
|
-
var i = t.aspectRatio, r = t.naturalWidth, o = t.naturalHeight, l = t.rotate, n = l === void 0 ? 0 : l, d = t.scaleX, c = d === void 0 ? 1 : d, u = t.scaleY, f = u === void 0 ? 1 : u,
|
|
16547
|
-
aspectRatio:
|
|
16547
|
+
var i = t.aspectRatio, r = t.naturalWidth, o = t.naturalHeight, l = t.rotate, n = l === void 0 ? 0 : l, d = t.scaleX, c = d === void 0 ? 1 : d, u = t.scaleY, f = u === void 0 ? 1 : u, q = e.aspectRatio, v = e.naturalWidth, g = e.naturalHeight, h = s.fillColor, x = h === void 0 ? "transparent" : h, F = s.imageSmoothingEnabled, y = F === void 0 ? !0 : F, X = s.imageSmoothingQuality, A = X === void 0 ? "low" : X, b = s.maxWidth, B = b === void 0 ? 1 / 0 : b, N = s.maxHeight, z = N === void 0 ? 1 / 0 : N, M = s.minWidth, O = M === void 0 ? 0 : M, K = s.minHeight, E = K === void 0 ? 0 : K, I = document.createElement("canvas"), w = I.getContext("2d"), C = ms({
|
|
16548
|
+
aspectRatio: q,
|
|
16548
16549
|
width: B,
|
|
16549
16550
|
height: z
|
|
16550
16551
|
}), D = ms({
|
|
16551
|
-
aspectRatio:
|
|
16552
|
+
aspectRatio: q,
|
|
16552
16553
|
width: O,
|
|
16553
16554
|
height: E
|
|
16554
|
-
}, "cover"), $ = Math.min(C.width, Math.max(D.width, v)), H = Math.min(C.height, Math.max(D.height,
|
|
16555
|
+
}, "cover"), $ = Math.min(C.width, Math.max(D.width, v)), H = Math.min(C.height, Math.max(D.height, g)), G = ms({
|
|
16555
16556
|
aspectRatio: i,
|
|
16556
16557
|
width: B,
|
|
16557
16558
|
height: z
|
|
@@ -16607,10 +16608,10 @@ function UY(a) {
|
|
|
16607
16608
|
}
|
|
16608
16609
|
}
|
|
16609
16610
|
if (r) {
|
|
16610
|
-
var f = t.getUint16(r, s),
|
|
16611
|
+
var f = t.getUint16(r, s), q, v;
|
|
16611
16612
|
for (v = 0; v < f; v += 1)
|
|
16612
|
-
if (
|
|
16613
|
-
|
|
16613
|
+
if (q = r + v * 12 + 2, t.getUint16(q, s) === 274) {
|
|
16614
|
+
q += 8, e = t.getUint16(q, s), t.setUint16(q, 1, s);
|
|
16614
16615
|
break;
|
|
16615
16616
|
}
|
|
16616
16617
|
}
|
|
@@ -16656,7 +16657,7 @@ var jY = {
|
|
|
16656
16657
|
},
|
|
16657
16658
|
initContainer: function() {
|
|
16658
16659
|
var t = this.element, e = this.options, s = this.container, i = this.cropper, r = Number(e.minContainerWidth), o = Number(e.minContainerHeight);
|
|
16659
|
-
|
|
16660
|
+
Yt(i, Pt), xa(t, Pt);
|
|
16660
16661
|
var l = {
|
|
16661
16662
|
width: Math.max(s.offsetWidth, r >= 0 ? r : sm),
|
|
16662
16663
|
height: Math.max(s.offsetHeight, o >= 0 ? o : im)
|
|
@@ -16664,7 +16665,7 @@ var jY = {
|
|
|
16664
16665
|
this.containerData = l, cs(i, {
|
|
16665
16666
|
width: l.width,
|
|
16666
16667
|
height: l.height
|
|
16667
|
-
}),
|
|
16668
|
+
}), Yt(t, Pt), xa(i, Pt);
|
|
16668
16669
|
},
|
|
16669
16670
|
// Canvas (image wrapper)
|
|
16670
16671
|
initCanvas: function() {
|
|
@@ -16693,8 +16694,8 @@ var jY = {
|
|
|
16693
16694
|
}
|
|
16694
16695
|
if (e)
|
|
16695
16696
|
if (l > (d ? 0 : 1)) {
|
|
16696
|
-
var
|
|
16697
|
-
r.minLeft = Math.min(0,
|
|
16697
|
+
var q = i.width - r.width, v = i.height - r.height;
|
|
16698
|
+
r.minLeft = Math.min(0, q), r.minTop = Math.min(0, v), r.maxLeft = Math.max(0, q), r.maxTop = Math.max(0, v), d && this.limited && (r.minLeft = Math.min(o.left, o.left + (o.width - r.width)), r.minTop = Math.min(o.top, o.top + (o.height - r.height)), r.maxLeft = o.left, r.maxTop = o.top, l === 2 && (r.width >= i.width && (r.minLeft = Math.min(0, q), r.maxLeft = Math.max(0, q)), r.height >= i.height && (r.minTop = Math.min(0, v), r.maxTop = Math.max(0, v))));
|
|
16698
16699
|
} else
|
|
16699
16700
|
r.minLeft = -r.width, r.minTop = -r.height, r.maxLeft = i.width, r.maxTop = i.height;
|
|
16700
16701
|
},
|
|
@@ -16792,10 +16793,10 @@ var jY = {
|
|
|
16792
16793
|
translateX: -n,
|
|
16793
16794
|
translateY: -d
|
|
16794
16795
|
}, t)))), ft(this.previews, function(c) {
|
|
16795
|
-
var u = On(c, Cr), f = u.width,
|
|
16796
|
-
i && (h = f / i,
|
|
16796
|
+
var u = On(c, Cr), f = u.width, q = u.height, v = f, g = q, h = 1;
|
|
16797
|
+
i && (h = f / i, g = r * h), r && g > q && (h = q / r, v = i * h, g = q), cs(c, {
|
|
16797
16798
|
width: v,
|
|
16798
|
-
height:
|
|
16799
|
+
height: g
|
|
16799
16800
|
}), cs(c.getElementsByTagName("img")[0], et({
|
|
16800
16801
|
width: o * h,
|
|
16801
16802
|
height: l * h
|
|
@@ -16853,7 +16854,7 @@ var jY = {
|
|
|
16853
16854
|
}) : r[t.pointerId || 0] = xr(t), Object.keys(r).length > 1 && i.zoomable && i.zoomOnTouch ? o = em : o = On(t.target, Hi), AY.test(o) && ri(this.element, Pn, {
|
|
16854
16855
|
originalEvent: t,
|
|
16855
16856
|
action: o
|
|
16856
|
-
}) !== !1 && (t.preventDefault(), this.action = o, this.cropping = !1, o === Jc && (this.cropping = !0,
|
|
16857
|
+
}) !== !1 && (t.preventDefault(), this.action = o, this.cropping = !1, o === Jc && (this.cropping = !0, Yt(this.dragBox, ao)));
|
|
16857
16858
|
}
|
|
16858
16859
|
},
|
|
16859
16860
|
cropMove: function(t) {
|
|
@@ -16881,18 +16882,18 @@ var jY = {
|
|
|
16881
16882
|
}
|
|
16882
16883
|
}, ZY = {
|
|
16883
16884
|
change: function(t) {
|
|
16884
|
-
var e = this.options, s = this.canvasData, i = this.containerData, r = this.cropBoxData, o = this.pointers, l = this.action, n = e.aspectRatio, d = r.left, c = r.top, u = r.width, f = r.height,
|
|
16885
|
-
!n && t.shiftKey && (n = u && f ? u / f : 1), this.limited && (
|
|
16885
|
+
var e = this.options, s = this.canvasData, i = this.containerData, r = this.cropBoxData, o = this.pointers, l = this.action, n = e.aspectRatio, d = r.left, c = r.top, u = r.width, f = r.height, q = d + u, v = c + f, g = 0, h = 0, x = i.width, F = i.height, y = !0, X;
|
|
16886
|
+
!n && t.shiftKey && (n = u && f ? u / f : 1), this.limited && (g = r.minLeft, h = r.minTop, x = g + Math.min(i.width, s.width, s.left + s.width), F = h + Math.min(i.height, s.height, s.top + s.height));
|
|
16886
16887
|
var A = o[Object.keys(o)[0]], b = {
|
|
16887
16888
|
x: A.endX - A.startX,
|
|
16888
16889
|
y: A.endY - A.startY
|
|
16889
16890
|
}, B = function(z) {
|
|
16890
16891
|
switch (z) {
|
|
16891
16892
|
case Cs:
|
|
16892
|
-
|
|
16893
|
+
q + b.x > x && (b.x = x - q);
|
|
16893
16894
|
break;
|
|
16894
16895
|
case xs:
|
|
16895
|
-
d + b.x <
|
|
16896
|
+
d + b.x < g && (b.x = g - d);
|
|
16896
16897
|
break;
|
|
16897
16898
|
case ts:
|
|
16898
16899
|
c + b.y < h && (b.y = h - c);
|
|
@@ -16907,28 +16908,28 @@ var jY = {
|
|
|
16907
16908
|
d += b.x, c += b.y;
|
|
16908
16909
|
break;
|
|
16909
16910
|
case Cs:
|
|
16910
|
-
if (b.x >= 0 && (
|
|
16911
|
+
if (b.x >= 0 && (q >= x || n && (c <= h || v >= F))) {
|
|
16911
16912
|
y = !1;
|
|
16912
16913
|
break;
|
|
16913
16914
|
}
|
|
16914
16915
|
B(Cs), u += b.x, u < 0 && (l = xs, u = -u, d -= u), n && (f = u / n, c += (r.height - f) / 2);
|
|
16915
16916
|
break;
|
|
16916
16917
|
case ts:
|
|
16917
|
-
if (b.y <= 0 && (c <= h || n && (d <=
|
|
16918
|
+
if (b.y <= 0 && (c <= h || n && (d <= g || q >= x))) {
|
|
16918
16919
|
y = !1;
|
|
16919
16920
|
break;
|
|
16920
16921
|
}
|
|
16921
16922
|
B(ts), f -= b.y, c += b.y, f < 0 && (l = js, f = -f, c -= f), n && (u = f * n, d += (r.width - u) / 2);
|
|
16922
16923
|
break;
|
|
16923
16924
|
case xs:
|
|
16924
|
-
if (b.x <= 0 && (d <=
|
|
16925
|
+
if (b.x <= 0 && (d <= g || n && (c <= h || v >= F))) {
|
|
16925
16926
|
y = !1;
|
|
16926
16927
|
break;
|
|
16927
16928
|
}
|
|
16928
16929
|
B(xs), u -= b.x, d += b.x, u < 0 && (l = Cs, u = -u, d -= u), n && (f = u / n, c += (r.height - f) / 2);
|
|
16929
16930
|
break;
|
|
16930
16931
|
case js:
|
|
16931
|
-
if (b.y >= 0 && (v >= F || n && (d <=
|
|
16932
|
+
if (b.y >= 0 && (v >= F || n && (d <= g || q >= x))) {
|
|
16932
16933
|
y = !1;
|
|
16933
16934
|
break;
|
|
16934
16935
|
}
|
|
@@ -16936,46 +16937,46 @@ var jY = {
|
|
|
16936
16937
|
break;
|
|
16937
16938
|
case Ci:
|
|
16938
16939
|
if (n) {
|
|
16939
|
-
if (b.y <= 0 && (c <= h ||
|
|
16940
|
+
if (b.y <= 0 && (c <= h || q >= x)) {
|
|
16940
16941
|
y = !1;
|
|
16941
16942
|
break;
|
|
16942
16943
|
}
|
|
16943
16944
|
B(ts), f -= b.y, c += b.y, u = f * n;
|
|
16944
16945
|
} else
|
|
16945
|
-
B(ts), B(Cs), b.x >= 0 ?
|
|
16946
|
+
B(ts), B(Cs), b.x >= 0 ? q < x ? u += b.x : b.y <= 0 && c <= h && (y = !1) : u += b.x, b.y <= 0 ? c > h && (f -= b.y, c += b.y) : (f -= b.y, c += b.y);
|
|
16946
16947
|
u < 0 && f < 0 ? (l = ki, f = -f, u = -u, c -= f, d -= u) : u < 0 ? (l = xi, u = -u, d -= u) : f < 0 && (l = wi, f = -f, c -= f);
|
|
16947
16948
|
break;
|
|
16948
16949
|
case xi:
|
|
16949
16950
|
if (n) {
|
|
16950
|
-
if (b.y <= 0 && (c <= h || d <=
|
|
16951
|
+
if (b.y <= 0 && (c <= h || d <= g)) {
|
|
16951
16952
|
y = !1;
|
|
16952
16953
|
break;
|
|
16953
16954
|
}
|
|
16954
16955
|
B(ts), f -= b.y, c += b.y, u = f * n, d += r.width - u;
|
|
16955
16956
|
} else
|
|
16956
|
-
B(ts), B(xs), b.x <= 0 ? d >
|
|
16957
|
+
B(ts), B(xs), b.x <= 0 ? d > g ? (u -= b.x, d += b.x) : b.y <= 0 && c <= h && (y = !1) : (u -= b.x, d += b.x), b.y <= 0 ? c > h && (f -= b.y, c += b.y) : (f -= b.y, c += b.y);
|
|
16957
16958
|
u < 0 && f < 0 ? (l = wi, f = -f, u = -u, c -= f, d -= u) : u < 0 ? (l = Ci, u = -u, d -= u) : f < 0 && (l = ki, f = -f, c -= f);
|
|
16958
16959
|
break;
|
|
16959
16960
|
case ki:
|
|
16960
16961
|
if (n) {
|
|
16961
|
-
if (b.x <= 0 && (d <=
|
|
16962
|
+
if (b.x <= 0 && (d <= g || v >= F)) {
|
|
16962
16963
|
y = !1;
|
|
16963
16964
|
break;
|
|
16964
16965
|
}
|
|
16965
16966
|
B(xs), u -= b.x, d += b.x, f = u / n;
|
|
16966
16967
|
} else
|
|
16967
|
-
B(js), B(xs), b.x <= 0 ? d >
|
|
16968
|
+
B(js), B(xs), b.x <= 0 ? d > g ? (u -= b.x, d += b.x) : b.y >= 0 && v >= F && (y = !1) : (u -= b.x, d += b.x), b.y >= 0 ? v < F && (f += b.y) : f += b.y;
|
|
16968
16969
|
u < 0 && f < 0 ? (l = Ci, f = -f, u = -u, c -= f, d -= u) : u < 0 ? (l = wi, u = -u, d -= u) : f < 0 && (l = xi, f = -f, c -= f);
|
|
16969
16970
|
break;
|
|
16970
16971
|
case wi:
|
|
16971
16972
|
if (n) {
|
|
16972
|
-
if (b.x >= 0 && (
|
|
16973
|
+
if (b.x >= 0 && (q >= x || v >= F)) {
|
|
16973
16974
|
y = !1;
|
|
16974
16975
|
break;
|
|
16975
16976
|
}
|
|
16976
16977
|
B(Cs), u += b.x, f = u / n;
|
|
16977
16978
|
} else
|
|
16978
|
-
B(js), B(Cs), b.x >= 0 ?
|
|
16979
|
+
B(js), B(Cs), b.x >= 0 ? q < x ? u += b.x : b.y >= 0 && v >= F && (y = !1) : u += b.x, b.y >= 0 ? v < F && (f += b.y) : f += b.y;
|
|
16979
16980
|
u < 0 && f < 0 ? (l = xi, f = -f, u = -u, c -= f, d -= u) : u < 0 ? (l = ki, u = -u, d -= u) : f < 0 && (l = Ci, f = -f, c -= f);
|
|
16980
16981
|
break;
|
|
16981
16982
|
case Qc:
|
|
@@ -16999,7 +17000,7 @@ var jY = {
|
|
|
16999
17000
|
}, JY = {
|
|
17000
17001
|
// Show the crop box manually
|
|
17001
17002
|
crop: function() {
|
|
17002
|
-
return this.ready && !this.cropped && !this.disabled && (this.cropped = !0, this.limitCropBox(!0, !0), this.options.modal &&
|
|
17003
|
+
return this.ready && !this.cropped && !this.disabled && (this.cropped = !0, this.limitCropBox(!0, !0), this.options.modal && Yt(this.dragBox, ao), xa(this.cropBox, Pt), this.setCropBoxData(this.initialCropBoxData)), this;
|
|
17003
17004
|
},
|
|
17004
17005
|
// Reset the image and crop box to their initial states
|
|
17005
17006
|
reset: function() {
|
|
@@ -17012,7 +17013,7 @@ var jY = {
|
|
|
17012
17013
|
top: 0,
|
|
17013
17014
|
width: 0,
|
|
17014
17015
|
height: 0
|
|
17015
|
-
}), this.cropped = !1, this.renderCropBox(), this.limitCanvas(!0, !0), this.renderCanvas(), xa(this.dragBox, ao),
|
|
17016
|
+
}), this.cropped = !1, this.renderCropBox(), this.limitCanvas(!0, !0), this.renderCanvas(), xa(this.dragBox, ao), Yt(this.cropBox, Pt)), this;
|
|
17016
17017
|
},
|
|
17017
17018
|
/**
|
|
17018
17019
|
* Replace the image's src and rebuild the cropper
|
|
@@ -17032,7 +17033,7 @@ var jY = {
|
|
|
17032
17033
|
},
|
|
17033
17034
|
// Disable (freeze) the cropper
|
|
17034
17035
|
disable: function() {
|
|
17035
|
-
return this.ready && !this.disabled && (this.disabled = !0,
|
|
17036
|
+
return this.ready && !this.disabled && (this.disabled = !0, Yt(this.cropper, Xd)), this;
|
|
17036
17037
|
},
|
|
17037
17038
|
/**
|
|
17038
17039
|
* Destroy the cropper and remove the instance from the image
|
|
@@ -17090,11 +17091,11 @@ var jY = {
|
|
|
17090
17091
|
}) === !1)
|
|
17091
17092
|
return this;
|
|
17092
17093
|
if (s) {
|
|
17093
|
-
var f = this.pointers,
|
|
17094
|
+
var f = this.pointers, q = lm(this.cropper), v = f && Object.keys(f).length ? $Y(f) : {
|
|
17094
17095
|
pageX: s.pageX,
|
|
17095
17096
|
pageY: s.pageY
|
|
17096
17097
|
};
|
|
17097
|
-
r.left -= (c - o) * ((v.pageX -
|
|
17098
|
+
r.left -= (c - o) * ((v.pageX - q.left - r.left) / o), r.top -= (u - l) * ((v.pageY - q.top - r.top) / l);
|
|
17098
17099
|
} else ei(e) && Ee(e.x) && Ee(e.y) ? (r.left -= (c - o) * ((e.x - r.left) / o), r.top -= (u - l) * ((e.y - r.top) / l)) : (r.left -= (c - o) / 2, r.top -= (u - l) / 2);
|
|
17099
17100
|
r.width = c, r.height = u, this.renderCanvas(!0);
|
|
17100
17101
|
}
|
|
@@ -17266,14 +17267,14 @@ var jY = {
|
|
|
17266
17267
|
aspectRatio: c,
|
|
17267
17268
|
width: t.minWidth || 0,
|
|
17268
17269
|
height: t.minHeight || 0
|
|
17269
|
-
}, "cover"),
|
|
17270
|
+
}, "cover"), q = ms({
|
|
17270
17271
|
aspectRatio: c,
|
|
17271
17272
|
width: t.width || (d !== 1 ? s.width : l),
|
|
17272
17273
|
height: t.height || (d !== 1 ? s.height : n)
|
|
17273
|
-
}), v =
|
|
17274
|
-
v = Math.min(u.width, Math.max(f.width, v)),
|
|
17274
|
+
}), v = q.width, g = q.height;
|
|
17275
|
+
v = Math.min(u.width, Math.max(f.width, v)), g = Math.min(u.height, Math.max(f.height, g));
|
|
17275
17276
|
var h = document.createElement("canvas"), x = h.getContext("2d");
|
|
17276
|
-
h.width = ii(v), h.height = ii(
|
|
17277
|
+
h.width = ii(v), h.height = ii(g), x.fillStyle = t.fillColor || "transparent", x.fillRect(0, 0, v, g);
|
|
17277
17278
|
var F = t.imageSmoothingEnabled, y = F === void 0 ? !0 : F, X = t.imageSmoothingQuality;
|
|
17278
17279
|
x.imageSmoothingEnabled = y, X && (x.imageSmoothingQuality = X);
|
|
17279
17280
|
var A = s.width, b = s.height, B = r, N = o, z, M, O, K, E, I;
|
|
@@ -17371,7 +17372,7 @@ var jY = {
|
|
|
17371
17372
|
var e = this.element, s = this.url, i = e.crossOrigin, r = s;
|
|
17372
17373
|
this.options.checkCrossOrigin && Kd(s) && (i || (i = "anonymous"), r = Td(s)), this.crossOrigin = i, this.crossOriginUrl = r;
|
|
17373
17374
|
var o = document.createElement("img");
|
|
17374
|
-
i && (o.crossOrigin = i), o.src = r || s, o.alt = e.alt || "The image to crop", this.image = o, o.onload = this.start.bind(this), o.onerror = this.stop.bind(this),
|
|
17375
|
+
i && (o.crossOrigin = i), o.src = r || s, o.alt = e.alt || "The image to crop", this.image = o, o.onload = this.start.bind(this), o.onerror = this.stop.bind(this), Yt(o, Ad), e.parentNode.insertBefore(o, e.nextSibling);
|
|
17375
17376
|
}
|
|
17376
17377
|
}, {
|
|
17377
17378
|
key: "start",
|
|
@@ -17407,7 +17408,7 @@ var jY = {
|
|
|
17407
17408
|
var e = this.element, s = this.options, i = this.image, r = e.parentNode, o = document.createElement("div");
|
|
17408
17409
|
o.innerHTML = xY;
|
|
17409
17410
|
var l = o.querySelector(".".concat(Qe, "-container")), n = l.querySelector(".".concat(Qe, "-canvas")), d = l.querySelector(".".concat(Qe, "-drag-box")), c = l.querySelector(".".concat(Qe, "-crop-box")), u = c.querySelector(".".concat(Qe, "-face"));
|
|
17410
|
-
this.container = r, this.cropper = l, this.canvas = n, this.dragBox = d, this.cropBox = c, this.viewBox = l.querySelector(".".concat(Qe, "-view-box")), this.face = u, n.appendChild(i),
|
|
17411
|
+
this.container = r, this.cropper = l, this.canvas = n, this.dragBox = d, this.cropBox = c, this.viewBox = l.querySelector(".".concat(Qe, "-view-box")), this.face = u, n.appendChild(i), Yt(e, Pt), r.insertBefore(l, e.nextSibling), xa(i, Ad), 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, Yt(c, Pt), s.guides || Yt(c.getElementsByClassName("".concat(Qe, "-dashed")), Pt), s.center || Yt(c.getElementsByClassName("".concat(Qe, "-center")), Pt), s.background && Yt(l, "".concat(Qe, "-bg")), s.highlight || Yt(u, gY), s.cropBoxMovable && (Yt(u, En), Wi(u, Hi, Yl)), s.cropBoxResizable || (Yt(c.getElementsByClassName("".concat(Qe, "-line")), Pt), Yt(c.getElementsByClassName("".concat(Qe, "-point")), Pt)), this.render(), this.ready = !0, this.setDragMode(s.dragMode), s.autoCrop && this.crop(), this.setData(s.data), Bt(s.ready) && ra(e, wd, s.ready, {
|
|
17411
17412
|
once: !0
|
|
17412
17413
|
}), ri(e, wd);
|
|
17413
17414
|
}
|
|
@@ -17521,11 +17522,11 @@ const eX = { class: "d-flex flex-column" }, tX = {
|
|
|
17521
17522
|
return (f = s.value) == null ? void 0 : f.getData();
|
|
17522
17523
|
},
|
|
17523
17524
|
setData: (f) => {
|
|
17524
|
-
var
|
|
17525
|
-
return (
|
|
17525
|
+
var q;
|
|
17526
|
+
return (q = s.value) == null ? void 0 : q.setData(f);
|
|
17526
17527
|
}
|
|
17527
|
-
}),
|
|
17528
|
-
const { containerStyle: f, src:
|
|
17528
|
+
}), gt(() => {
|
|
17529
|
+
const { containerStyle: f, src: q, alt: v, imgStyle: g, ...h } = e, x = h, F = {};
|
|
17529
17530
|
for (const y in h)
|
|
17530
17531
|
Object.prototype.hasOwnProperty.call(x, y) && x[y] !== void 0 && (F[y] = x[y]);
|
|
17531
17532
|
Jt(() => {
|
|
@@ -17535,7 +17536,7 @@ const eX = { class: "d-flex flex-column" }, tX = {
|
|
|
17535
17536
|
});
|
|
17536
17537
|
}), so(() => {
|
|
17537
17538
|
n();
|
|
17538
|
-
}), (f,
|
|
17539
|
+
}), (f, q) => (Y(), R("div", eX, [
|
|
17539
17540
|
r.value ? (Y(), R("div", tX, [
|
|
17540
17541
|
m(tt, { indeterminate: "" })
|
|
17541
17542
|
])) : j("", !0),
|
|
@@ -17556,8 +17557,8 @@ const eX = { class: "d-flex flex-column" }, tX = {
|
|
|
17556
17557
|
__name: "AssetImageRoiSelect",
|
|
17557
17558
|
setup(a) {
|
|
17558
17559
|
const { showRecordWas: t, showErrorsDefault: e } = He(), s = { overflow: "hidden", maxHeight: "calc(100vh - 160px)" }, i = Uc(), { damClient: r } = ot(), o = S(null), l = _(() => {
|
|
17559
|
-
var
|
|
17560
|
-
return i.imageFile && ((
|
|
17560
|
+
var g;
|
|
17561
|
+
return i.imageFile && ((g = i.imageFile.links) != null && g.image_detail) ? i.imageFile.links.image_detail.url : "";
|
|
17561
17562
|
}), n = () => {
|
|
17562
17563
|
o.value && o.value.enable();
|
|
17563
17564
|
}, d = () => {
|
|
@@ -17565,24 +17566,24 @@ const eX = { class: "d-flex flex-column" }, tX = {
|
|
|
17565
17566
|
}, c = () => {
|
|
17566
17567
|
if (o.value && i.roi && i.imageFile) {
|
|
17567
17568
|
n();
|
|
17568
|
-
const
|
|
17569
|
+
const g = dY(
|
|
17569
17570
|
o.value,
|
|
17570
17571
|
i.roi,
|
|
17571
17572
|
i.imageFile.imageAttributes.width,
|
|
17572
17573
|
i.imageFile.imageAttributes.height
|
|
17573
17574
|
);
|
|
17574
|
-
o.value.setData(
|
|
17575
|
+
o.value.setData(g), d();
|
|
17575
17576
|
}
|
|
17576
17577
|
}, u = async () => {
|
|
17577
17578
|
if (o.value && i.roi && i.imageFile) {
|
|
17578
|
-
const
|
|
17579
|
+
const g = uY(
|
|
17579
17580
|
o.value,
|
|
17580
17581
|
i.roi,
|
|
17581
17582
|
i.imageFile.imageAttributes.width,
|
|
17582
17583
|
i.imageFile.imageAttributes.height
|
|
17583
17584
|
);
|
|
17584
17585
|
try {
|
|
17585
|
-
i.showLoader(), await j7(r,
|
|
17586
|
+
i.showLoader(), await j7(r, g.id, g), t("updated"), setTimeout(() => {
|
|
17586
17587
|
i.forceReloadRoiPreviews();
|
|
17587
17588
|
}, 2e3);
|
|
17588
17589
|
} catch (h) {
|
|
@@ -17593,12 +17594,12 @@ const eX = { class: "d-flex flex-column" }, tX = {
|
|
|
17593
17594
|
}
|
|
17594
17595
|
}, f = () => {
|
|
17595
17596
|
c(), n();
|
|
17596
|
-
},
|
|
17597
|
+
}, q = () => {
|
|
17597
17598
|
u();
|
|
17598
17599
|
}, v = _(() => !!(i.imageFile && l.value.length > 0 && !i.loader));
|
|
17599
17600
|
return so(() => {
|
|
17600
17601
|
o.value && (o.value.destroy(), o.value = null);
|
|
17601
|
-
}), (
|
|
17602
|
+
}), (g, h) => v.value ? (Y(), T(sX, {
|
|
17602
17603
|
key: V(i).timestampCropper,
|
|
17603
17604
|
ref_key: "cropper",
|
|
17604
17605
|
ref: o,
|
|
@@ -17607,7 +17608,7 @@ const eX = { class: "d-flex flex-column" }, tX = {
|
|
|
17607
17608
|
"check-cross-origin": !1,
|
|
17608
17609
|
"container-style": s,
|
|
17609
17610
|
ready: f,
|
|
17610
|
-
cropend:
|
|
17611
|
+
cropend: q,
|
|
17611
17612
|
src: l.value,
|
|
17612
17613
|
"view-mode": 1,
|
|
17613
17614
|
"zoom-on-wheel": !1,
|
|
@@ -17635,7 +17636,7 @@ const eX = { class: "d-flex flex-column" }, tX = {
|
|
|
17635
17636
|
}, f = _(() => {
|
|
17636
17637
|
var A;
|
|
17637
17638
|
return ((A = i.value) == null ? void 0 : A.attributes.assetType) || go;
|
|
17638
|
-
}),
|
|
17639
|
+
}), q = _(() => i.value ? i.value.attributes.assetStatus : Fo), v = _(() => f.value === Xe.Image), g = _(() => f.value === Xe.Video), h = _(() => f.value === Xe.Audio), x = _(() => f.value === Xe.Document), F = _(() => {
|
|
17639
17640
|
var A;
|
|
17640
17641
|
return (A = i.value) != null && A.mainFile && i.value.mainFile.links && i.value.mainFile.links.image_detail ? {
|
|
17641
17642
|
url: i.value.mainFile.links.image_detail.url + "?random=" + Date.now(),
|
|
@@ -17736,7 +17737,7 @@ const eX = { class: "d-flex flex-column" }, tX = {
|
|
|
17736
17737
|
])) : (Y(), R("div", cX, [
|
|
17737
17738
|
m(ml, {
|
|
17738
17739
|
"asset-type": f.value,
|
|
17739
|
-
"asset-status":
|
|
17740
|
+
"asset-status": q.value,
|
|
17740
17741
|
src: F.value.url,
|
|
17741
17742
|
"background-color": F.value.bgColor,
|
|
17742
17743
|
width: F.value.width,
|
|
@@ -17753,11 +17754,11 @@ const eX = { class: "d-flex flex-column" }, tX = {
|
|
|
17753
17754
|
"queue-key": A.queueKey,
|
|
17754
17755
|
"ext-system": A.extSystem,
|
|
17755
17756
|
"asset-id": V(i).id,
|
|
17756
|
-
"is-video":
|
|
17757
|
+
"is-video": g.value,
|
|
17757
17758
|
"is-audio": h.value,
|
|
17758
17759
|
"is-image": v.value,
|
|
17759
17760
|
"is-document": x.value,
|
|
17760
|
-
"asset-status":
|
|
17761
|
+
"asset-status": q.value,
|
|
17761
17762
|
"asset-type": f.value,
|
|
17762
17763
|
"asset-main-file-status": X.value ? X.value.fileAttributes.status : void 0,
|
|
17763
17764
|
"asset-main-file-fail-reason": X.value ? X.value.fileAttributes.failReason : void 0
|
|
@@ -17789,7 +17790,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
17789
17790
|
extSystem: {}
|
|
17790
17791
|
},
|
|
17791
17792
|
setup(a) {
|
|
17792
|
-
const t = a, { t: e } = ee(), s = S(["metadata", "file"]), i = Aa(), { asset: r, authorConflicts: o, metadataAreTouched: l, mainFileSingleUse: n } = _t(i), d = ia(), c = _(() => d.getQueueItems(t.queueKey)), u = _(() => c.value[0] ?? null), f = _(() => Xe.Image),
|
|
17793
|
+
const t = a, { t: e } = ee(), s = S(["metadata", "file"]), i = Aa(), { asset: r, authorConflicts: o, metadataAreTouched: l, mainFileSingleUse: n } = _t(i), d = ia(), c = _(() => d.getQueueItems(t.queueKey)), u = _(() => c.value[0] ?? null), f = _(() => Xe.Image), q = _(() => f.value === Xe.Image), v = _(() => r.value && r.value.mainFile ? r.value.mainFile : null), g = () => {
|
|
17793
17794
|
l.value = !0;
|
|
17794
17795
|
}, { keywordRequired: h, keywordEnabled: x } = vl(f.value, t.extSystem), { authorRequired: F, authorEnabled: y } = hl(f.value, t.extSystem);
|
|
17795
17796
|
return (X, A) => u.value ? (Y(), T(jn, {
|
|
@@ -17818,7 +17819,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
17818
17819
|
"onUpdate:modelValue": A[3] || (A[3] = (b) => u.value.customData = b),
|
|
17819
17820
|
"ext-system": X.extSystem,
|
|
17820
17821
|
"asset-type": f.value,
|
|
17821
|
-
onAnyChange:
|
|
17822
|
+
onAnyChange: g
|
|
17822
17823
|
}, {
|
|
17823
17824
|
"after-pinned": p(() => [
|
|
17824
17825
|
V(x) ? (Y(), T(ve, {
|
|
@@ -17838,7 +17839,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
17838
17839
|
modelValue: u.value.keywords,
|
|
17839
17840
|
"onUpdate:modelValue": [
|
|
17840
17841
|
A[0] || (A[0] = (b) => u.value.keywords = b),
|
|
17841
|
-
|
|
17842
|
+
g
|
|
17842
17843
|
],
|
|
17843
17844
|
label: V(e)("common.damImage.asset.model.keywords"),
|
|
17844
17845
|
"data-cy": "custom-field-keywords",
|
|
@@ -17875,7 +17876,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
17875
17876
|
modelValue: u.value.authors,
|
|
17876
17877
|
"onUpdate:modelValue": [
|
|
17877
17878
|
A[1] || (A[1] = (b) => u.value.authors = b),
|
|
17878
|
-
|
|
17879
|
+
g
|
|
17879
17880
|
],
|
|
17880
17881
|
label: V(e)("common.damImage.asset.model.authors"),
|
|
17881
17882
|
"author-conflicts": V(o),
|
|
@@ -18059,7 +18060,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
18059
18060
|
]),
|
|
18060
18061
|
_: 1
|
|
18061
18062
|
}),
|
|
18062
|
-
|
|
18063
|
+
q.value && V(or)(v.value) ? (Y(), T(Lc, {
|
|
18063
18064
|
key: 0,
|
|
18064
18065
|
file: v.value
|
|
18065
18066
|
}, null, 8, ["file"])) : j("", !0)
|
|
@@ -18269,7 +18270,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
18269
18270
|
}, 8, ["data-cy", "width", "height"]),
|
|
18270
18271
|
m(Vt, {
|
|
18271
18272
|
modelValue: i.value,
|
|
18272
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
18273
|
+
"onUpdate:modelValue": c[0] || (c[0] = (q) => i.value = q),
|
|
18273
18274
|
width: 500
|
|
18274
18275
|
}, {
|
|
18275
18276
|
default: p(() => [
|
|
@@ -18356,7 +18357,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
18356
18357
|
},
|
|
18357
18358
|
emits: ["onApply"],
|
|
18358
18359
|
setup(a, { emit: t }) {
|
|
18359
|
-
const e = a, s = t, { showErrorsDefault: i, showRecordWas: r } = He(), { t: o } = ee(), { toolbarColor: l } = er(), n = Aa(), { activeTab: d, loading: c, asset: u } = _t(n), f = S(!1),
|
|
18360
|
+
const e = a, s = t, { showErrorsDefault: i, showRecordWas: r } = He(), { t: o } = ee(), { toolbarColor: l } = er(), n = Aa(), { activeTab: d, loading: c, asset: u } = _t(n), f = S(!1), q = ia(), { uploadQueueDialog: v } = To(), g = _(() => q.getQueueItems(e.queueKey)), h = _(() => g.value[0] ?? null), x = _(() => !h.value || !h.value.assetId ? null : C.value && u.value ? u.value : {
|
|
18360
18361
|
id: h.value.assetId,
|
|
18361
18362
|
texts: {
|
|
18362
18363
|
displayTitle: ""
|
|
@@ -18423,27 +18424,26 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
18423
18424
|
var Ae;
|
|
18424
18425
|
return (Ae = h.value) == null ? void 0 : Ae.progress.progressPercent;
|
|
18425
18426
|
}), { damClient: G } = ot(), Z = async () => {
|
|
18426
|
-
|
|
18427
|
-
}, ae = _(() =>
|
|
18428
|
-
if (
|
|
18427
|
+
q.stopUpload(e.queueKey), n.setAsset(null), v.value = null;
|
|
18428
|
+
}, ae = _(() => q.getQueueTotalCount(e.queueKey)), fe = _(() => q.getQueueProcessedCount(e.queueKey)), Ve = _(() => ae.value > fe.value), Ke = async () => {
|
|
18429
|
+
if (g.value.length !== 0)
|
|
18429
18430
|
try {
|
|
18430
|
-
await Wr(G,
|
|
18431
|
+
await Wr(G, g.value), r("updated");
|
|
18431
18432
|
} catch (Ae) {
|
|
18432
18433
|
i(Ae);
|
|
18433
18434
|
} finally {
|
|
18434
18435
|
}
|
|
18435
18436
|
}, Re = async () => {
|
|
18436
18437
|
var ue;
|
|
18437
|
-
if (
|
|
18438
|
+
if (g.value.length === 0) return;
|
|
18438
18439
|
let Ae = "", Q = "";
|
|
18439
18440
|
try {
|
|
18440
|
-
|
|
18441
|
-
const ce = await Wr(G, q.value, n.mainFileSingleUse);
|
|
18441
|
+
const ce = await Wr(G, g.value, n.mainFileSingleUse);
|
|
18442
18442
|
if (!ce[0])
|
|
18443
18443
|
throw new Error("Fatal error updating asset metadata");
|
|
18444
18444
|
r("updated"), Ut((ue = ce[0].customData) == null ? void 0 : ue.description) && (Ae = ce[0].customData.description.trim()), ce[0].authors.length > 0 && (Q = (await gi(G, e.extSystem, ce[0].authors)).map((Oe) => Oe.name).join(", ")), s(
|
|
18445
18445
|
"onApply",
|
|
18446
|
-
|
|
18446
|
+
g.value.map((we) => ({
|
|
18447
18447
|
texts: {
|
|
18448
18448
|
description: Ae,
|
|
18449
18449
|
source: Q
|
|
@@ -18474,7 +18474,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
18474
18474
|
}
|
|
18475
18475
|
},
|
|
18476
18476
|
{ immediate: !0 }
|
|
18477
|
-
),
|
|
18477
|
+
), gt(() => {
|
|
18478
18478
|
d.value = kt.Info;
|
|
18479
18479
|
}), (Ae, Q) => (Y(), T(Vt, {
|
|
18480
18480
|
"model-value": !0,
|
|
@@ -18646,15 +18646,15 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
18646
18646
|
i("filesInput", h);
|
|
18647
18647
|
return;
|
|
18648
18648
|
}
|
|
18649
|
-
const
|
|
18650
|
-
i("filesInput",
|
|
18649
|
+
const g = d(v);
|
|
18650
|
+
i("filesInput", g);
|
|
18651
18651
|
}, u = (v) => {
|
|
18652
18652
|
c(v);
|
|
18653
18653
|
}, f = (v) => {
|
|
18654
18654
|
var h;
|
|
18655
|
-
const
|
|
18656
|
-
i("change",
|
|
18657
|
-
},
|
|
18655
|
+
const g = v;
|
|
18656
|
+
i("change", g), c(Array.from(((h = g.target) == null ? void 0 : h.files) ?? []));
|
|
18657
|
+
}, q = () => {
|
|
18658
18658
|
if (!gn(s.onDropzoneClickCallback)) {
|
|
18659
18659
|
if (L(s.onDropzoneClickCallback)) {
|
|
18660
18660
|
n();
|
|
@@ -18665,16 +18665,16 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
18665
18665
|
};
|
|
18666
18666
|
return qe(
|
|
18667
18667
|
() => s.fileInputKey,
|
|
18668
|
-
(v,
|
|
18669
|
-
v ===
|
|
18668
|
+
(v, g) => {
|
|
18669
|
+
v === g || L(v) || (o.value = v);
|
|
18670
18670
|
}
|
|
18671
18671
|
), t({
|
|
18672
18672
|
activate: n
|
|
18673
|
-
}), (v,
|
|
18673
|
+
}), (v, g) => (Y(), R(ge, null, [
|
|
18674
18674
|
v.useDropzone ? (Y(), T(ko, {
|
|
18675
18675
|
key: 0,
|
|
18676
18676
|
variant: v.dropzoneVariant,
|
|
18677
|
-
onOnClick:
|
|
18677
|
+
onOnClick: q,
|
|
18678
18678
|
onOnDrop: u
|
|
18679
18679
|
}, null, 8, ["variant"])) : de(v.$slots, "activator", {
|
|
18680
18680
|
key: 1,
|
|
@@ -18722,11 +18722,11 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
18722
18722
|
"model-value": i.value,
|
|
18723
18723
|
persistent: "",
|
|
18724
18724
|
"max-width": 500,
|
|
18725
|
-
"onUpdate:modelValue": u[1] || (u[1] = (
|
|
18725
|
+
"onUpdate:modelValue": u[1] || (u[1] = (q) => i.value = q)
|
|
18726
18726
|
}, {
|
|
18727
|
-
activator: p(({ props:
|
|
18728
|
-
de(c.$slots, "activator", { props:
|
|
18729
|
-
m(ie, Et(
|
|
18727
|
+
activator: p(({ props: q }) => [
|
|
18728
|
+
de(c.$slots, "activator", { props: q }, () => [
|
|
18729
|
+
m(ie, Et(q, {
|
|
18730
18730
|
text: V(o)("common.button.open")
|
|
18731
18731
|
}), null, 16, ["text"])
|
|
18732
18732
|
])
|
|
@@ -18757,7 +18757,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
18757
18757
|
multiple: c.multiple,
|
|
18758
18758
|
"use-dropzone": "",
|
|
18759
18759
|
onFilesInput: n,
|
|
18760
|
-
onChange: u[0] || (u[0] = (
|
|
18760
|
+
onChange: u[0] || (u[0] = (q) => s("change", q))
|
|
18761
18761
|
}, null, 8, ["file-input-key", "accept", "max-sizes", "multiple"])
|
|
18762
18762
|
]),
|
|
18763
18763
|
_: 1
|
|
@@ -18848,13 +18848,13 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
18848
18848
|
c.value === !0 || s.collabStatus === Ct.Inactive || (n.value(), c.value = !0);
|
|
18849
18849
|
}, f = (le) => {
|
|
18850
18850
|
c.value === !1 || s.collabStatus === Ct.Inactive || (l.value(le), c.value = !1);
|
|
18851
|
-
},
|
|
18851
|
+
}, q = at(
|
|
18852
18852
|
ur,
|
|
18853
18853
|
void 0
|
|
18854
18854
|
);
|
|
18855
|
-
if (L(
|
|
18855
|
+
if (L(q) || L(q.value))
|
|
18856
18856
|
throw new Error("Fatal error, parent component doesn't provide necessary config ext system config.");
|
|
18857
|
-
const { t: v } = ee(), { showErrorsDefault:
|
|
18857
|
+
const { t: v } = ee(), { showErrorsDefault: g, showError: h } = He(), x = ir(s.configName), { imageClient: F } = x, { widgetImageToDamImageUrl: y } = dl(x), X = ia(), A = dr(), { uploadQueueDialog: b } = To(), B = S(null), N = S(!1), z = S(!1), M = S(!1), O = S(!1), K = S(!1), E = S(!1), I = _(() => te(r.value)), w = S(""), C = _(() => X.getQueue(s.queueKey)), D = _(() => !te(B.value)), $ = () => {
|
|
18858
18858
|
A.setImageDetail(ht(B.value)), M.value = !0;
|
|
18859
18859
|
}, H = () => {
|
|
18860
18860
|
z.value = !0;
|
|
@@ -18866,7 +18866,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
18866
18866
|
return ke();
|
|
18867
18867
|
}, fe = async (le) => {
|
|
18868
18868
|
u();
|
|
18869
|
-
const ke =
|
|
18869
|
+
const ke = q.value;
|
|
18870
18870
|
if (!L(ke))
|
|
18871
18871
|
try {
|
|
18872
18872
|
await ae(), G.value = ke.extSystem, X.addByFiles(s.queueKey, ke.extSystem, ke.licence, le), b.value = s.queueKey;
|
|
@@ -18874,11 +18874,11 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
18874
18874
|
h("Unable to lock image widget by current user.");
|
|
18875
18875
|
}
|
|
18876
18876
|
}, Ve = (le) => {
|
|
18877
|
-
const ke =
|
|
18877
|
+
const ke = q.value;
|
|
18878
18878
|
L(ke) || (G.value = ke.extSystem, X.addByFiles(s.queueKey, ke.extSystem, ke.licence, le), b.value = s.queueKey);
|
|
18879
18879
|
}, { uploadSizes: Ke, uploadAccept: Re } = Xc(
|
|
18880
18880
|
Xe.Image,
|
|
18881
|
-
|
|
18881
|
+
q.value.extSystemConfig
|
|
18882
18882
|
), Ae = async (le, ke, Xt = !1) => {
|
|
18883
18883
|
if (w.value = Ks, le && te(B.value) || le && Xt) {
|
|
18884
18884
|
B.value = ye(le), B.value && (Ya(s.damWidth) && Ya(s.damHeight) ? w.value = y(ht(B.value), s.damWidth, s.damHeight) : w.value = y(ht(B.value)), s.expandMetadata && A.setImageDetail(ht(B.value)));
|
|
@@ -18888,7 +18888,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
18888
18888
|
try {
|
|
18889
18889
|
B.value = await ul(F, ke);
|
|
18890
18890
|
} catch (Va) {
|
|
18891
|
-
|
|
18891
|
+
g(Va);
|
|
18892
18892
|
}
|
|
18893
18893
|
te(B.value) || (Ya(s.damWidth) && Ya(s.damHeight) ? w.value = y(ht(B.value), s.damWidth, s.damHeight) : w.value = y(ht(B.value)), s.expandMetadata && A.setImageDetail(ht(B.value)));
|
|
18894
18894
|
return;
|
|
@@ -18919,7 +18919,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
18919
18919
|
pa.authors
|
|
18920
18920
|
)).map((me) => me.name).join(", "));
|
|
18921
18921
|
} catch (pa) {
|
|
18922
|
-
|
|
18922
|
+
g(pa);
|
|
18923
18923
|
}
|
|
18924
18924
|
const es = {
|
|
18925
18925
|
texts: {
|
|
@@ -18941,7 +18941,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
18941
18941
|
const ke = await Xo(pe, le), Xt = await el(pe, ke.licence);
|
|
18942
18942
|
Xt.extSystem && (G.value = Xt.extSystem), ce.setAsset(ke);
|
|
18943
18943
|
} catch (ke) {
|
|
18944
|
-
|
|
18944
|
+
g(ke);
|
|
18945
18945
|
} finally {
|
|
18946
18946
|
we.value = !1;
|
|
18947
18947
|
}
|
|
@@ -18954,7 +18954,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
18954
18954
|
const le = A.imageDetail.id ? await $c(F, A.imageDetail.id, A.imageDetail) : await Mc(F, A.imageDetail);
|
|
18955
18955
|
M.value = !1, r.value = le.id, A.setImageDetail(null), await Ae(le, le.id, !0), i("afterMetadataSaveSuccess"), l.value(le.id);
|
|
18956
18956
|
} catch (le) {
|
|
18957
|
-
|
|
18957
|
+
g(le);
|
|
18958
18958
|
} finally {
|
|
18959
18959
|
O.value = !1;
|
|
18960
18960
|
}
|
|
@@ -18965,7 +18965,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
18965
18965
|
try {
|
|
18966
18966
|
await Bc(F, r.value), Q();
|
|
18967
18967
|
} catch (le) {
|
|
18968
|
-
|
|
18968
|
+
g(le);
|
|
18969
18969
|
}
|
|
18970
18970
|
return;
|
|
18971
18971
|
}
|
|
@@ -19003,7 +19003,9 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
19003
19003
|
le === ke || le || f(r.value);
|
|
19004
19004
|
},
|
|
19005
19005
|
{ immediate: !1 }
|
|
19006
|
-
),
|
|
19006
|
+
), gt(() => {
|
|
19007
|
+
A.reset();
|
|
19008
|
+
}), t({
|
|
19007
19009
|
metadataConfirm: zs
|
|
19008
19010
|
}), (le, ke) => {
|
|
19009
19011
|
var Xt, Va;
|
|
@@ -19235,11 +19237,11 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
19235
19237
|
"queue-key": le.queueKey,
|
|
19236
19238
|
"ext-system": V(G)
|
|
19237
19239
|
}, null, 8, ["queue-key", "ext-system"])) : j("", !0),
|
|
19238
|
-
V(b) === le.queueKey && V(
|
|
19240
|
+
V(b) === le.queueKey && V(q) ? (Y(), T(zX, {
|
|
19239
19241
|
key: 1,
|
|
19240
19242
|
"queue-key": le.queueKey,
|
|
19241
|
-
"ext-system": V(
|
|
19242
|
-
"licence-id": V(
|
|
19243
|
+
"ext-system": V(q).extSystem,
|
|
19244
|
+
"licence-id": V(q).licence,
|
|
19243
19245
|
"file-input-key": ((Va = C.value) == null ? void 0 : Va.fileInputKey) ?? -1,
|
|
19244
19246
|
accept: V(Re),
|
|
19245
19247
|
"max-sizes": V(Ke),
|
|
@@ -19288,8 +19290,8 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
19288
19290
|
getOrLoadDamConfigExtSystemByLicence: c,
|
|
19289
19291
|
getOrLoadDamConfigExtSystemByLicences: u
|
|
19290
19292
|
} = sa(o), f = Ft(void 0);
|
|
19291
|
-
|
|
19292
|
-
const
|
|
19293
|
+
gt(async () => {
|
|
19294
|
+
const g = Rs();
|
|
19293
19295
|
if (f.value = await c(s.uploadLicence), L(f.value)) {
|
|
19294
19296
|
r.value = "error";
|
|
19295
19297
|
return;
|
|
@@ -19299,7 +19301,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
19299
19301
|
return;
|
|
19300
19302
|
}
|
|
19301
19303
|
const h = [];
|
|
19302
|
-
|
|
19304
|
+
g.initialized.damPrvConfig || h.push(l()), h.push(u(s.selectLicences));
|
|
19303
19305
|
const x = d(f.value.extSystem);
|
|
19304
19306
|
L(x) && h.push(n(f.value.extSystem));
|
|
19305
19307
|
try {
|
|
@@ -19309,22 +19311,22 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
19309
19311
|
}
|
|
19310
19312
|
r.value !== "error" && (r.value = "ready");
|
|
19311
19313
|
}), Li(ur, f);
|
|
19312
|
-
const
|
|
19314
|
+
const q = S(null);
|
|
19313
19315
|
return t({
|
|
19314
19316
|
metadataConfirm: () => {
|
|
19315
|
-
var
|
|
19316
|
-
(
|
|
19317
|
+
var g;
|
|
19318
|
+
(g = q.value) == null || g.metadataConfirm();
|
|
19317
19319
|
}
|
|
19318
|
-
}), (
|
|
19320
|
+
}), (g, h) => r.value === "ready" ? (Y(), T(rA, Et({
|
|
19319
19321
|
key: 0,
|
|
19320
19322
|
ref_key: "innerComponent",
|
|
19321
|
-
ref:
|
|
19323
|
+
ref: q
|
|
19322
19324
|
}, s, {
|
|
19323
19325
|
"onUpdate:modelValue": h[0] || (h[0] = (x) => i("update:modelValue", x)),
|
|
19324
19326
|
onAfterMetadataSaveSuccess: h[1] || (h[1] = (x) => i("afterMetadataSaveSuccess"))
|
|
19325
19327
|
}), {
|
|
19326
19328
|
append: p(({ image: x }) => [
|
|
19327
|
-
de(
|
|
19329
|
+
de(g.$slots, "append", { image: x })
|
|
19328
19330
|
]),
|
|
19329
19331
|
_: 3
|
|
19330
19332
|
}, 16)) : r.value === "error" ? (Y(), R("div", oA, " Loading DAM config error ")) : r.value === "uploadNotAllowed" ? (Y(), R("div", nA, " DAM access rights error ")) : (Y(), T(tt, {
|
|
@@ -19480,7 +19482,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
19480
19482
|
}), { t: n } = ee(), d = [
|
|
19481
19483
|
Ne.Processing,
|
|
19482
19484
|
Ne.Loading
|
|
19483
|
-
], c = _(() => d.includes(e.item.status)), u = _(() => e.item.status === Ne.Waiting), f = _(() => !e.disableDoneAnimation && e.item.status === Ne.Uploaded),
|
|
19485
|
+
], c = _(() => d.includes(e.item.status)), u = _(() => e.item.status === Ne.Waiting), f = _(() => !e.disableDoneAnimation && e.item.status === Ne.Uploaded), q = _(() => e.item.status === Ne.Uploading), v = _(() => e.item.progress.progressPercent), g = _(() => e.item.imagePreview ? e.item.imagePreview.url : void 0), h = _(() => e.item.assetType), x = _(() => e.item ? e.item.assetStatus : Fo), F = () => {
|
|
19484
19486
|
s("cancelItem", { index: e.index, item: e.item, queueKey: e.queueKey });
|
|
19485
19487
|
}, y = [
|
|
19486
19488
|
Ne.Loading,
|
|
@@ -19503,9 +19505,9 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
19503
19505
|
m(ml, {
|
|
19504
19506
|
"asset-type": h.value,
|
|
19505
19507
|
"asset-status": x.value,
|
|
19506
|
-
src:
|
|
19508
|
+
src: g.value,
|
|
19507
19509
|
"background-color": "#ccc",
|
|
19508
|
-
"show-uploading":
|
|
19510
|
+
"show-uploading": q.value,
|
|
19509
19511
|
"show-processing": c.value,
|
|
19510
19512
|
"show-waiting": u.value,
|
|
19511
19513
|
"show-done": f.value,
|
|
@@ -19760,18 +19762,18 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
19760
19762
|
throw new Error("Custom form elements must be initialised.");
|
|
19761
19763
|
const c = _(() => d[e.assetType]);
|
|
19762
19764
|
return (u, f) => (Y(), R("div", CA, [
|
|
19763
|
-
(Y(!0), R(ge, null, je(c.value, (
|
|
19764
|
-
key:
|
|
19765
|
+
(Y(!0), R(ge, null, je(c.value, (q) => (Y(), T(ve, {
|
|
19766
|
+
key: q.id,
|
|
19765
19767
|
dense: "",
|
|
19766
19768
|
class: "mt-1"
|
|
19767
19769
|
}, {
|
|
19768
19770
|
default: p(() => [
|
|
19769
19771
|
m(oe, null, {
|
|
19770
19772
|
default: p(() => [
|
|
19771
|
-
|
|
19773
|
+
q.attributes.readonly ? (Y(), R("div", xA)) : (Y(), R("div", wA, [
|
|
19772
19774
|
m(Sn, {
|
|
19773
|
-
config:
|
|
19774
|
-
"model-value": u.modelValue[
|
|
19775
|
+
config: q,
|
|
19776
|
+
"model-value": u.modelValue[q.property],
|
|
19775
19777
|
"onUpdate:modelValue": r
|
|
19776
19778
|
}, null, 8, ["config", "model-value"]),
|
|
19777
19779
|
m(ie, {
|
|
@@ -19779,7 +19781,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
19779
19781
|
size: "small",
|
|
19780
19782
|
variant: "text",
|
|
19781
19783
|
class: "mr-1",
|
|
19782
|
-
onClick: J((v) => o(
|
|
19784
|
+
onClick: J((v) => o(q.property, u.modelValue[q.property]), ["stop"])
|
|
19783
19785
|
}, {
|
|
19784
19786
|
default: p(() => [
|
|
19785
19787
|
m(re, { icon: "mdi-file-arrow-left-right-outline" }),
|
|
@@ -19799,7 +19801,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
|
|
|
19799
19801
|
icon: "",
|
|
19800
19802
|
size: "small",
|
|
19801
19803
|
variant: "text",
|
|
19802
|
-
onClick: J((v) => l(
|
|
19804
|
+
onClick: J((v) => l(q.property, u.modelValue[q.property]), ["stop"])
|
|
19803
19805
|
}, {
|
|
19804
19806
|
default: p(() => [
|
|
19805
19807
|
m(re, { icon: "mdi-file-replace-outline" }),
|
|
@@ -19864,11 +19866,11 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
19864
19866
|
n(X);
|
|
19865
19867
|
}, f = (X) => {
|
|
19866
19868
|
n(X, !0);
|
|
19867
|
-
},
|
|
19869
|
+
}, q = () => {
|
|
19868
19870
|
c(s.value);
|
|
19869
19871
|
}, v = () => {
|
|
19870
19872
|
c(s.value, !0);
|
|
19871
|
-
},
|
|
19873
|
+
}, g = () => {
|
|
19872
19874
|
d(i.value);
|
|
19873
19875
|
}, h = () => {
|
|
19874
19876
|
d(i.value, !0);
|
|
@@ -19913,11 +19915,11 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
19913
19915
|
h(), v();
|
|
19914
19916
|
return;
|
|
19915
19917
|
}
|
|
19916
|
-
|
|
19918
|
+
g(), q();
|
|
19917
19919
|
}, F = () => {
|
|
19918
19920
|
e.value = { image: {}, video: {}, audio: {}, document: {} }, i.value = [], s.value = [];
|
|
19919
19921
|
}, y = _(() => l.getQueueItemsTypes(t.queueKey));
|
|
19920
|
-
return
|
|
19922
|
+
return gt(() => {
|
|
19921
19923
|
y.value[0] && o.value.push(y.value[0]);
|
|
19922
19924
|
}), (X, A) => (Y(), R("div", _A, [
|
|
19923
19925
|
U("div", SA, [
|
|
@@ -19978,7 +19980,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
19978
19980
|
size: "small",
|
|
19979
19981
|
variant: "text",
|
|
19980
19982
|
class: "mr-1",
|
|
19981
|
-
onClick: J(
|
|
19983
|
+
onClick: J(q, ["stop"])
|
|
19982
19984
|
}, {
|
|
19983
19985
|
default: p(() => [
|
|
19984
19986
|
m(re, { icon: "mdi-file-arrow-left-right-outline" }),
|
|
@@ -20053,7 +20055,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20053
20055
|
size: "small",
|
|
20054
20056
|
variant: "text",
|
|
20055
20057
|
class: "mr-1",
|
|
20056
|
-
onClick: J(
|
|
20058
|
+
onClick: J(g, ["stop"])
|
|
20057
20059
|
}, {
|
|
20058
20060
|
default: p(() => [
|
|
20059
20061
|
m(re, { icon: "mdi-file-arrow-left-right-outline" }),
|
|
@@ -20187,18 +20189,18 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20187
20189
|
}, l = (f) => {
|
|
20188
20190
|
i.removeByIndex(e.queueKey, f);
|
|
20189
20191
|
}, { addToCachedKeywords: n, fetchCachedKeywords: d } = _o(), { addToCachedAuthors: c, fetchCachedAuthors: u } = rr();
|
|
20190
|
-
return
|
|
20192
|
+
return gt(() => {
|
|
20191
20193
|
r.value.forEach((f) => {
|
|
20192
20194
|
n(f.keywords), c(f.authors);
|
|
20193
20195
|
}), d(), u();
|
|
20194
|
-
}), (f,
|
|
20196
|
+
}), (f, q) => (Y(), R("div", {
|
|
20195
20197
|
class: Fe(["asset-queue-editable", { "asset-queue-editable--sidebar-active": f.massOperations }])
|
|
20196
20198
|
}, [
|
|
20197
20199
|
U("div", RA, [
|
|
20198
20200
|
U("div", OA, [
|
|
20199
20201
|
m(ve, { class: "dam-upload-queue dam-upload-queue--editable pa-2 mb-5" }, {
|
|
20200
20202
|
default: p(() => [
|
|
20201
|
-
(Y(!0), R(ge, null, je(r.value, (v,
|
|
20203
|
+
(Y(!0), R(ge, null, je(r.value, (v, g) => (Y(), T(bA, {
|
|
20202
20204
|
key: v.key,
|
|
20203
20205
|
"custom-data": v.customData,
|
|
20204
20206
|
"onUpdate:customData": (h) => v.customData = h,
|
|
@@ -20210,12 +20212,12 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20210
20212
|
"onUpdate:mainFileSingleUse": (h) => v.mainFileSingleUse = h,
|
|
20211
20213
|
"ext-system": f.extSystem,
|
|
20212
20214
|
item: v,
|
|
20213
|
-
index:
|
|
20215
|
+
index: g,
|
|
20214
20216
|
"queue-key": f.queueKey,
|
|
20215
20217
|
"disable-done-animation": f.disableDoneAnimation,
|
|
20216
20218
|
onCancelItem: o,
|
|
20217
20219
|
onRemoveItem: l,
|
|
20218
|
-
onShowDetail:
|
|
20220
|
+
onShowDetail: q[0] || (q[0] = (h) => s("showDetail", h))
|
|
20219
20221
|
}, null, 8, ["custom-data", "onUpdate:customData", "keywords", "onUpdate:keywords", "authors", "onUpdate:authors", "main-file-single-use", "onUpdate:mainFileSingleUse", "ext-system", "item", "index", "queue-key", "disable-done-animation"]))), 128))
|
|
20220
20222
|
]),
|
|
20221
20223
|
_: 1
|
|
@@ -20251,7 +20253,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20251
20253
|
},
|
|
20252
20254
|
emits: ["onDrop", "onFilesInput", "onApply"],
|
|
20253
20255
|
setup(a, { emit: t }) {
|
|
20254
|
-
const e = a, s = t, { uploadQueueDialog: i, uploadQueueSidebar: r, toggleUploadQueueSidebar: o } = To(), l = dr(), { maxPosition: n } = _t(l), d = ia(), c = _(() => d.getQueueTotalCount(e.queueKey)), u = _(() => d.getQueueItems(e.queueKey)), f = _(() => d.getQueueProcessedCount(e.queueKey)),
|
|
20256
|
+
const e = a, s = t, { uploadQueueDialog: i, uploadQueueSidebar: r, toggleUploadQueueSidebar: o } = To(), l = dr(), { maxPosition: n } = _t(l), d = ia(), c = _(() => d.getQueueTotalCount(e.queueKey)), u = _(() => d.getQueueItems(e.queueKey)), f = _(() => d.getQueueProcessedCount(e.queueKey)), q = _(() => c.value > f.value), v = _(() => c.value === f.value), { t: g } = ee(), { toolbarColor: h } = er(), x = ma({ $stopPropagation: !0 }), { showRecordWas: F, showValidationError: y, showErrorsDefault: X } = He(), { damClient: A } = ot(), b = S(!1), B = S(!1), N = async () => {
|
|
20255
20257
|
d.stopUpload(e.queueKey), i.value = null;
|
|
20256
20258
|
}, z = async () => {
|
|
20257
20259
|
const D = ht(u.value);
|
|
@@ -20356,11 +20358,11 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20356
20358
|
default: p(() => [
|
|
20357
20359
|
U("div", jA, [
|
|
20358
20360
|
U("div", null, [
|
|
20359
|
-
|
|
20361
|
+
q.value ? (Y(), R("div", HA, k(V(g)("common.damImage.upload.title")), 1)) : (Y(), R("div", WA, k(V(g)("common.damImage.upload.titleDone")), 1))
|
|
20360
20362
|
])
|
|
20361
20363
|
]),
|
|
20362
20364
|
m(it),
|
|
20363
|
-
|
|
20365
|
+
q.value ? (Y(), R("div", GA, [
|
|
20364
20366
|
m(tt, {
|
|
20365
20367
|
indeterminate: "",
|
|
20366
20368
|
color: "primary",
|
|
@@ -20368,14 +20370,14 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20368
20370
|
width: "2",
|
|
20369
20371
|
class: "mr-1"
|
|
20370
20372
|
}),
|
|
20371
|
-
U("div", null, k(V(
|
|
20373
|
+
U("div", null, k(V(g)("common.damImage.upload.uploading")) + " " + k(f.value + 1) + "/" + k(c.value), 1)
|
|
20372
20374
|
])) : j("", !0),
|
|
20373
20375
|
U("div", ZA, [
|
|
20374
20376
|
da(m(Ui, {
|
|
20375
20377
|
vertical: "",
|
|
20376
20378
|
class: "mx-4 my-2"
|
|
20377
20379
|
}, null, 512), [
|
|
20378
|
-
[ps,
|
|
20380
|
+
[ps, q.value]
|
|
20379
20381
|
]),
|
|
20380
20382
|
v.value ? (Y(), T(H, {
|
|
20381
20383
|
key: 0,
|
|
@@ -20387,7 +20389,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20387
20389
|
onClick: J(O, ["stop"])
|
|
20388
20390
|
}, {
|
|
20389
20391
|
default: p(() => [
|
|
20390
|
-
P(k(V(
|
|
20392
|
+
P(k(V(g)("common.damImage.upload.saveAndApply")), 1)
|
|
20391
20393
|
]),
|
|
20392
20394
|
_: 1
|
|
20393
20395
|
}, 8, ["loading", "disabled"])) : j("", !0),
|
|
@@ -20408,7 +20410,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20408
20410
|
location: "bottom"
|
|
20409
20411
|
}, {
|
|
20410
20412
|
default: p(() => [
|
|
20411
|
-
P(k(V(
|
|
20413
|
+
P(k(V(g)("common.damImage.upload.save")), 1)
|
|
20412
20414
|
]),
|
|
20413
20415
|
_: 1
|
|
20414
20416
|
})
|
|
@@ -20437,7 +20439,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20437
20439
|
location: "bottom"
|
|
20438
20440
|
}, {
|
|
20439
20441
|
default: p(() => [
|
|
20440
|
-
P(k(V(
|
|
20442
|
+
P(k(V(g)("common.damImage.upload.add")), 1)
|
|
20441
20443
|
]),
|
|
20442
20444
|
_: 1
|
|
20443
20445
|
})
|
|
@@ -20468,7 +20470,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20468
20470
|
location: "bottom"
|
|
20469
20471
|
}, {
|
|
20470
20472
|
default: p(() => [
|
|
20471
|
-
P(k(V(
|
|
20473
|
+
P(k(V(g)("common.damImage.asset.massOperations.title")), 1)
|
|
20472
20474
|
]),
|
|
20473
20475
|
_: 1
|
|
20474
20476
|
})
|
|
@@ -20478,7 +20480,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20478
20480
|
m(fm, {
|
|
20479
20481
|
"data-cy": "button-close",
|
|
20480
20482
|
"button-size": 36,
|
|
20481
|
-
"is-uploading":
|
|
20483
|
+
"is-uploading": q.value,
|
|
20482
20484
|
onConfirm: N
|
|
20483
20485
|
}, null, 8, ["is-uploading"])
|
|
20484
20486
|
])
|
|
@@ -20522,7 +20524,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20522
20524
|
);
|
|
20523
20525
|
if (L(d) || L(d.value))
|
|
20524
20526
|
throw new Error("Fatal error, parent component doesn't provide necessary config ext system config.");
|
|
20525
|
-
const c = ia(), u = _(() => c.getQueueTotalCount(s.queueKey)), f = _(() => u.value === ws),
|
|
20527
|
+
const c = ia(), u = _(() => c.getQueueTotalCount(s.queueKey)), f = _(() => u.value === ws), q = () => {
|
|
20526
20528
|
r.value = !0;
|
|
20527
20529
|
}, v = async () => {
|
|
20528
20530
|
if (L(d) || L(d.value))
|
|
@@ -20535,13 +20537,13 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20535
20537
|
d.value.licence,
|
|
20536
20538
|
x
|
|
20537
20539
|
), l.value = [], o.value = !1, r.value = !1, i("afterAdd");
|
|
20538
|
-
},
|
|
20540
|
+
}, g = () => {
|
|
20539
20541
|
l.value = [], c.forceReloadFileInput(s.queueKey), r.value = !1;
|
|
20540
20542
|
};
|
|
20541
20543
|
return t({
|
|
20542
20544
|
check: (x) => {
|
|
20543
20545
|
if (l.value = x, x.length + u.value > ws) {
|
|
20544
|
-
|
|
20546
|
+
q();
|
|
20545
20547
|
return;
|
|
20546
20548
|
}
|
|
20547
20549
|
v();
|
|
@@ -20559,7 +20561,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20559
20561
|
"data-cy": "delete-panel"
|
|
20560
20562
|
}, {
|
|
20561
20563
|
default: p(() => [
|
|
20562
|
-
m(It, { onOnCancel:
|
|
20564
|
+
m(It, { onOnCancel: g }, {
|
|
20563
20565
|
default: p(() => [
|
|
20564
20566
|
P(k(V(n)("common.damImage.upload.limits.uploadWarning")), 1)
|
|
20565
20567
|
]),
|
|
@@ -20582,7 +20584,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20582
20584
|
default: p(() => [
|
|
20583
20585
|
m(it),
|
|
20584
20586
|
m(y, {
|
|
20585
|
-
onClick: J(
|
|
20587
|
+
onClick: J(g, ["stop"])
|
|
20586
20588
|
}, {
|
|
20587
20589
|
default: p(() => [
|
|
20588
20590
|
P(k(V(n)("common.button.cancel")), 1)
|
|
@@ -20640,12 +20642,12 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20640
20642
|
);
|
|
20641
20643
|
if (L(o) || L(o.value))
|
|
20642
20644
|
throw new Error("Fatal error, parent component doesn't provide necessary config ext system config.");
|
|
20643
|
-
const l = ir(s.configName), { imageClient: n } = l, { showErrorsDefault: d, showValidationError: c } = He(), u = S(null), { uploadSizes: f, uploadAccept:
|
|
20645
|
+
const l = ir(s.configName), { imageClient: n } = l, { showErrorsDefault: d, showValidationError: c } = He(), u = S(null), { uploadSizes: f, uploadAccept: q } = Xc(
|
|
20644
20646
|
Xe.Image,
|
|
20645
20647
|
o.value.extSystemConfig
|
|
20646
|
-
), { t: v } = ee(),
|
|
20648
|
+
), { t: v } = ee(), g = S(!1), h = dr(), { images: x, maxPosition: F } = _t(h), y = async () => {
|
|
20647
20649
|
try {
|
|
20648
|
-
|
|
20650
|
+
g.value = !0;
|
|
20649
20651
|
const pe = await Ec(n, s.modelValue);
|
|
20650
20652
|
h.setImages(
|
|
20651
20653
|
pe.map((se) => {
|
|
@@ -20659,7 +20661,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20659
20661
|
} catch (pe) {
|
|
20660
20662
|
d(pe);
|
|
20661
20663
|
} finally {
|
|
20662
|
-
|
|
20664
|
+
g.value = !1;
|
|
20663
20665
|
}
|
|
20664
20666
|
}, X = ia(), A = _(() => X.getQueue(s.queueKey)), { cachedExtSystemId: b } = Io(), { uploadQueueDialog: B } = To(), N = (pe) => {
|
|
20665
20667
|
var Ye;
|
|
@@ -20799,7 +20801,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20799
20801
|
fe.value = document.querySelector("#" + Q.value), Oe();
|
|
20800
20802
|
}), t({
|
|
20801
20803
|
saveImages: Z
|
|
20802
|
-
}),
|
|
20804
|
+
}), gt(() => {
|
|
20803
20805
|
y();
|
|
20804
20806
|
}), (pe, se) => {
|
|
20805
20807
|
var Ye, nt;
|
|
@@ -20808,7 +20810,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20808
20810
|
U("div", ry, [
|
|
20809
20811
|
m(yl, {
|
|
20810
20812
|
"file-input-key": (Ye = A.value) == null ? void 0 : Ye.fileInputKey,
|
|
20811
|
-
accept: V(
|
|
20813
|
+
accept: V(q),
|
|
20812
20814
|
"max-sizes": V(f),
|
|
20813
20815
|
multiple: "",
|
|
20814
20816
|
onFilesInput: N
|
|
@@ -20862,7 +20864,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20862
20864
|
m(ko, {
|
|
20863
20865
|
variant: "fill",
|
|
20864
20866
|
"hover-only": pe.modelValue.length > 0 || V(x).length > 0,
|
|
20865
|
-
accept: V(
|
|
20867
|
+
accept: V(q),
|
|
20866
20868
|
"max-sizes": V(f),
|
|
20867
20869
|
onOnDrop: z,
|
|
20868
20870
|
onOnClick: se[1] || (se[1] = (lt) => {
|
|
@@ -20877,7 +20879,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20877
20879
|
"ext-system": V(o).extSystem,
|
|
20878
20880
|
"licence-id": V(o).licence,
|
|
20879
20881
|
"file-input-key": ((nt = A.value) == null ? void 0 : nt.fileInputKey) ?? -1,
|
|
20880
|
-
accept: V(
|
|
20882
|
+
accept: V(q),
|
|
20881
20883
|
"max-sizes": V(f),
|
|
20882
20884
|
multiple: "",
|
|
20883
20885
|
onOnApply: $
|
|
@@ -20925,8 +20927,8 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20925
20927
|
getOrLoadDamConfigExtSystemByLicence: c,
|
|
20926
20928
|
getOrLoadDamConfigExtSystemByLicences: u
|
|
20927
20929
|
} = sa(o), f = Ft(void 0);
|
|
20928
|
-
|
|
20929
|
-
const
|
|
20930
|
+
gt(async () => {
|
|
20931
|
+
const g = Rs();
|
|
20930
20932
|
if (f.value = await c(s.uploadLicence), L(f.value)) {
|
|
20931
20933
|
r.value = "error";
|
|
20932
20934
|
return;
|
|
@@ -20936,7 +20938,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20936
20938
|
return;
|
|
20937
20939
|
}
|
|
20938
20940
|
const h = [];
|
|
20939
|
-
|
|
20941
|
+
g.initialized.damPrvConfig || h.push(l()), h.push(u(s.selectLicences));
|
|
20940
20942
|
const x = d(f.value.extSystem);
|
|
20941
20943
|
L(x) && h.push(n(f.value.extSystem));
|
|
20942
20944
|
try {
|
|
@@ -20946,13 +20948,13 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
20946
20948
|
}
|
|
20947
20949
|
r.value !== "error" && (r.value = "ready");
|
|
20948
20950
|
});
|
|
20949
|
-
const
|
|
20951
|
+
const q = S(null), v = async () => q.value ? await q.value.saveImages() : !1;
|
|
20950
20952
|
return Li(ur, f), t({
|
|
20951
20953
|
saveImages: v
|
|
20952
|
-
}), (
|
|
20954
|
+
}), (g, h) => r.value === "ready" ? (Y(), T(ny, Et({
|
|
20953
20955
|
key: 0,
|
|
20954
20956
|
ref_key: "innerComponent",
|
|
20955
|
-
ref:
|
|
20957
|
+
ref: q
|
|
20956
20958
|
}, s, {
|
|
20957
20959
|
"onUpdate:modelValue": h[0] || (h[0] = (x) => i("update:modelValue", x))
|
|
20958
20960
|
}), null, 16)) : r.value === "error" ? (Y(), R("div", ly, " Loading DAM config error ")) : r.value === "uploadNotAllowed" ? (Y(), R("div", dy, " DAM access rights error ")) : (Y(), T(tt, {
|
|
@@ -21028,7 +21030,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
21028
21030
|
}),
|
|
21029
21031
|
emits: ["update:modelValue"],
|
|
21030
21032
|
setup(a, { expose: t }) {
|
|
21031
|
-
const e = a, s = Tt(a, "modelValue"), i = S(""), r = S({ description: "", source: "" }), o = S(""), l = S(null), n = S(!0), d = S(!1), c = ir(e.configName), { imageClient: u } = c, { damClient: f } = ot(), { widgetImageToDamImageOriginalUrl:
|
|
21033
|
+
const e = a, s = Tt(a, "modelValue"), i = S(""), r = S({ description: "", source: "" }), o = S(""), l = S(null), n = S(!0), d = S(!1), c = ir(e.configName), { imageClient: u } = c, { damClient: f } = ot(), { widgetImageToDamImageOriginalUrl: q } = dl(c), { showErrorsDefault: v, showValidationError: g } = He(), { t: h } = ee(), x = (E) => {
|
|
21032
21034
|
const I = /\/image\/original\/([0-9a-fA-F-]+)\.jpg/, w = E.match(I);
|
|
21033
21035
|
return w ? w[1] : void 0;
|
|
21034
21036
|
}, F = (E, I) => I.some((w) => w === E.licence), { required: y, maxLength: X } = Ys(), A = {
|
|
@@ -21059,7 +21061,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
21059
21061
|
try {
|
|
21060
21062
|
const w = await B();
|
|
21061
21063
|
if (b.value.$touch(), b.value.$invalid)
|
|
21062
|
-
return
|
|
21064
|
+
return g(), Promise.reject("Invalid source or description");
|
|
21063
21065
|
const C = {
|
|
21064
21066
|
texts: {
|
|
21065
21067
|
description: r.value.description.trim(),
|
|
@@ -21079,7 +21081,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
21079
21081
|
v(w);
|
|
21080
21082
|
}
|
|
21081
21083
|
}, z = () => {
|
|
21082
|
-
o.value =
|
|
21084
|
+
o.value = q({
|
|
21083
21085
|
texts: {
|
|
21084
21086
|
description: "",
|
|
21085
21087
|
source: ""
|
|
@@ -21097,7 +21099,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
21097
21099
|
}
|
|
21098
21100
|
}, O = async (E, I, w = !1) => {
|
|
21099
21101
|
if (o.value = "", E && te(l.value) || E && w) {
|
|
21100
|
-
l.value = ye(E), l.value && (i.value = l.value.dam.damId, o.value =
|
|
21102
|
+
l.value = ye(E), l.value && (i.value = l.value.dam.damId, o.value = q(ht(l.value)), r.value.description = l.value.texts.description, r.value.source = l.value.texts.source, M());
|
|
21101
21103
|
return;
|
|
21102
21104
|
}
|
|
21103
21105
|
if (I) {
|
|
@@ -21106,7 +21108,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
|
|
|
21106
21108
|
} catch (C) {
|
|
21107
21109
|
v(C);
|
|
21108
21110
|
}
|
|
21109
|
-
te(l.value) || (i.value = l.value.dam.damId, o.value =
|
|
21111
|
+
te(l.value) || (i.value = l.value.dam.damId, o.value = q(ht(l.value)), r.value.description = l.value.texts.description, r.value.source = l.value.texts.source, M());
|
|
21110
21112
|
return;
|
|
21111
21113
|
}
|
|
21112
21114
|
l.value = null, r.value.description = "", r.value.source = "";
|
|
@@ -21255,12 +21257,12 @@ function qy(a, t, e = void 0, s = void 0, i = !1, r = void 0, o = void 0, l = vo
|
|
|
21255
21257
|
for (const v of Object.keys(c))
|
|
21256
21258
|
v in r && (c[v] = r[v]);
|
|
21257
21259
|
const u = a.map((v) => {
|
|
21258
|
-
const
|
|
21259
|
-
return L(
|
|
21260
|
+
const g = { ...gy, ...v };
|
|
21261
|
+
return L(g.title) && (L(g.title) && Fy.includes(g.key) ? g.title = d("common.model.tracking." + g.key) : L(g.title) && e && s ? g.title = d(e + "." + s + ".model." + g.key) : g.title = ""), g;
|
|
21260
21262
|
}), f = _(() => {
|
|
21261
21263
|
const v = [];
|
|
21262
|
-
return l && v.push({ key: "data-table-expand", sortable: !1 }), u.forEach((
|
|
21263
|
-
t.value.includes(
|
|
21264
|
+
return l && v.push({ key: "data-table-expand", sortable: !1 }), u.forEach((g) => {
|
|
21265
|
+
t.value.includes(g.key) || v.push(g);
|
|
21264
21266
|
}), i || v.push({ key: "actions", sortable: !1, fixed: !0 }), v;
|
|
21265
21267
|
});
|
|
21266
21268
|
return {
|
|
@@ -21278,7 +21280,7 @@ function qy(a, t, e = void 0, s = void 0, i = !1, r = void 0, o = void 0, l = vo
|
|
|
21278
21280
|
};
|
|
21279
21281
|
}
|
|
21280
21282
|
function pK(a, t, e, s, i, r) {
|
|
21281
|
-
const o = S(!1), l = S([]), n = S([]), d = S(!1), { resetFilter: c, submitFilter: u } = pi(), { showErrorsDefault: f } = He(), { columnsVisible:
|
|
21283
|
+
const o = S(!1), l = S([]), n = S([]), d = S(!1), { resetFilter: c, submitFilter: u } = pi(), { showErrorsDefault: f } = He(), { columnsVisible: q, pagination: v, updateSortBy: g, columnsAll: h, columnsHidden: x } = qy(
|
|
21282
21284
|
a,
|
|
21283
21285
|
t,
|
|
21284
21286
|
e,
|
|
@@ -21286,7 +21288,7 @@ function pK(a, t, e, s, i, r) {
|
|
|
21286
21288
|
), F = () => {
|
|
21287
21289
|
A(), b();
|
|
21288
21290
|
}, y = (N) => {
|
|
21289
|
-
|
|
21291
|
+
g(N.sortBy), b();
|
|
21290
21292
|
}, X = async () => {
|
|
21291
21293
|
d.value = !0, v.page++;
|
|
21292
21294
|
try {
|
|
@@ -21312,7 +21314,7 @@ function pK(a, t, e, s, i, r) {
|
|
|
21312
21314
|
items: l,
|
|
21313
21315
|
selected: n,
|
|
21314
21316
|
pagination: v,
|
|
21315
|
-
columnsVisible:
|
|
21317
|
+
columnsVisible: q,
|
|
21316
21318
|
columnsHidden: x,
|
|
21317
21319
|
columnsAll: h,
|
|
21318
21320
|
filterTouched: o,
|
|
@@ -21438,18 +21440,18 @@ const XK = (a, t, e = "", s = {}, i = null, r, o, l = {}) => new Promise((n, d)
|
|
|
21438
21440
|
}, AK = async (a, t, e = {}, s = "id", i = !0, r = void 0, o = 100, l, n, d = !1, c = {}) => {
|
|
21439
21441
|
const u = he(r == null ? void 0 : r._elastic) || d ? "/search" : "", f = Ps(s);
|
|
21440
21442
|
f.rowsPerPage = o, f.sortBy = s, f.descending = i;
|
|
21441
|
-
const
|
|
21443
|
+
const q = gs(t, e) + u, v = [];
|
|
21442
21444
|
try {
|
|
21443
|
-
const
|
|
21444
|
-
if (!qs(
|
|
21445
|
-
return Promise.reject(new Ha(
|
|
21446
|
-
if (
|
|
21447
|
-
const h =
|
|
21445
|
+
const g = await a().get(q + Md(f, r), c);
|
|
21446
|
+
if (!qs(g.status))
|
|
21447
|
+
return Promise.reject(new Ha(g.status));
|
|
21448
|
+
if (g.data) {
|
|
21449
|
+
const h = g.data;
|
|
21448
21450
|
if (v.push(...h.data), Mu(h)) {
|
|
21449
|
-
if (f.hasNextPage =
|
|
21451
|
+
if (f.hasNextPage = g.data.hasNextPage, f.hasNextPage)
|
|
21450
21452
|
for (; f.hasNextPage; ) {
|
|
21451
21453
|
f.page++;
|
|
21452
|
-
const F = (await a().get(
|
|
21454
|
+
const F = (await a().get(q + Md(f, r), c)).data;
|
|
21453
21455
|
v.push(...F.data), f.hasNextPage = F.hasNextPage;
|
|
21454
21456
|
}
|
|
21455
21457
|
} else if (Eu(h)) {
|
|
@@ -21459,7 +21461,7 @@ const XK = (a, t, e = "", s = {}, i = null, r, o, l = {}) => new Promise((n, d)
|
|
|
21459
21461
|
for (let X = 0; X < F; X++)
|
|
21460
21462
|
x.push(
|
|
21461
21463
|
a().get(
|
|
21462
|
-
|
|
21464
|
+
q + Yy(
|
|
21463
21465
|
f.rowsPerPage,
|
|
21464
21466
|
X,
|
|
21465
21467
|
f.sortBy,
|
|
@@ -21473,11 +21475,11 @@ const XK = (a, t, e = "", s = {}, i = null, r, o, l = {}) => new Promise((n, d)
|
|
|
21473
21475
|
v.push(...X.data.data);
|
|
21474
21476
|
});
|
|
21475
21477
|
}
|
|
21476
|
-
return f.currentViewCount =
|
|
21478
|
+
return f.currentViewCount = g.data.data.length, Promise.resolve(v);
|
|
21477
21479
|
}
|
|
21478
|
-
return
|
|
21479
|
-
} catch (
|
|
21480
|
-
return ja(
|
|
21480
|
+
return g.status === Na ? Promise.resolve([]) : v;
|
|
21481
|
+
} catch (g) {
|
|
21482
|
+
return ja(g) ? Promise.reject(new Da(g)) : Ka(g) ? Promise.reject(new Ta(g, l, n, g)) : Wa(g) ? Promise.reject(new Ea(g, g)) : Promise.reject(new xt(g));
|
|
21481
21483
|
}
|
|
21482
21484
|
};
|
|
21483
21485
|
function yK() {
|
|
@@ -23836,7 +23838,7 @@ function $K(a) {
|
|
|
23836
23838
|
return a;
|
|
23837
23839
|
}
|
|
23838
23840
|
async function BK() {
|
|
23839
|
-
(await import("./webfontloader-
|
|
23841
|
+
(await import("./webfontloader-B9HB8WIB.js").then((t) => t.w)).load({
|
|
23840
23842
|
google: {
|
|
23841
23843
|
families: ["Roboto:100,300,400,500,700,900&display=swap"]
|
|
23842
23844
|
}
|
|
@@ -23894,7 +23896,7 @@ function zK() {
|
|
|
23894
23896
|
return {
|
|
23895
23897
|
initCollab: () => {
|
|
23896
23898
|
var F, y, X, A, b, B, N, z, M;
|
|
23897
|
-
const n = Wn(), d = Qd(), c = eu(), u = iu(), f = au(),
|
|
23899
|
+
const n = Wn(), d = Qd(), c = eu(), u = iu(), f = au(), q = su(), v = nu(), g = ru(), h = ou(), x = lu();
|
|
23898
23900
|
i.value || !a.value.enabled || (i.value = ef(a.value.socketUrl, {
|
|
23899
23901
|
transports: ["websocket"],
|
|
23900
23902
|
path: "/ws",
|
|
@@ -23925,11 +23927,11 @@ function zK() {
|
|
|
23925
23927
|
}), (y = i.value) == null || y.on("approvedRequestToJoin", (O) => {
|
|
23926
23928
|
f.emit({ room: O });
|
|
23927
23929
|
}), (X = i.value) == null || X.on("rejectedRequestToJoin", (O) => {
|
|
23928
|
-
|
|
23930
|
+
q.emit({ room: O });
|
|
23929
23931
|
}), (A = i.value) == null || A.on("requestToTakeModeration", (O, K, E) => {
|
|
23930
23932
|
v.emit({ room: O, userId: K, timestamp: E });
|
|
23931
23933
|
}), (b = i.value) == null || b.on("approvedRequestToTakeModeration", (O) => {
|
|
23932
|
-
|
|
23934
|
+
g.emit({ room: O });
|
|
23933
23935
|
}), (B = i.value) == null || B.on("rejectedRequestToTakeModeration", (O) => {
|
|
23934
23936
|
h.emit({ room: O });
|
|
23935
23937
|
}), (N = i.value) == null || N.on("transferredModeration", () => {
|
|
@@ -23967,7 +23969,7 @@ function UK(a, t = !1) {
|
|
|
23967
23969
|
x.room !== a || L(F) || L(d.value) || d.value(x.field, F);
|
|
23968
23970
|
}, f = (x) => {
|
|
23969
23971
|
d.value = x, c.value = l.on(u);
|
|
23970
|
-
},
|
|
23972
|
+
}, q = (x, F, y = void 0) => {
|
|
23971
23973
|
!e.value.enabled || L(s.value) || s.value.emit("changeFieldData", a, x, F, () => {
|
|
23972
23974
|
L(y) || y();
|
|
23973
23975
|
});
|
|
@@ -23986,7 +23988,7 @@ function UK(a, t = !1) {
|
|
|
23986
23988
|
}), {
|
|
23987
23989
|
addCollabAnyDataChangeListener: f,
|
|
23988
23990
|
unsubscribeCollabAnyDataChangeListener: c,
|
|
23989
|
-
changeCollabAnyData:
|
|
23991
|
+
changeCollabAnyData: q,
|
|
23990
23992
|
objectSetDataByField: v,
|
|
23991
23993
|
acquireCollabAnyLock: (x, F = {}) => {
|
|
23992
23994
|
var X;
|
|
@@ -24461,7 +24463,7 @@ export {
|
|
|
24461
24463
|
lK as bD,
|
|
24462
24464
|
Ne as bE,
|
|
24463
24465
|
wc as bF,
|
|
24464
|
-
|
|
24466
|
+
qt as bG,
|
|
24465
24467
|
aK as bH,
|
|
24466
24468
|
Xe as bI,
|
|
24467
24469
|
go as bJ,
|
|
@@ -24689,4 +24691,4 @@ export {
|
|
|
24689
24691
|
pD as y,
|
|
24690
24692
|
ai as z
|
|
24691
24693
|
};
|
|
24692
|
-
//# sourceMappingURL=lib-
|
|
24694
|
+
//# sourceMappingURL=lib-DPp4Rq_S.js.map
|