@anzusystems/common-admin 1.47.0-beta.52 → 1.47.0-beta.54
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 +589 -498
- package/dist/common-admin.es.js +1 -1
- package/dist/{lib-KX966isF.js → lib-BogOdsVH.js} +370 -368
- package/dist/{lib-KX966isF.js.map → lib-BogOdsVH.js.map} +1 -1
- package/dist/{webfontloader-msZgeyq8.js → webfontloader-Dfd0sOti.js} +2 -2
- package/dist/{webfontloader-msZgeyq8.js.map → webfontloader-Dfd0sOti.js.map} +1 -1
- package/package.json +10 -8
|
@@ -11,7 +11,7 @@ import { VCard as Le, VCardText as Vs, VCardActions as It, VCardItem as Eo } fro
|
|
|
11
11
|
import { VAvatar as gn } from "vuetify/lib/components/VAvatar/index.mjs";
|
|
12
12
|
import { VTooltip as ye } from "vuetify/lib/components/VTooltip/index.mjs";
|
|
13
13
|
import { VProgressCircular as tt } from "vuetify/lib/components/VProgressCircular/index.mjs";
|
|
14
|
-
import { useEventBus as Jt, tryOnBeforeUnmount as Ln, useFetch as qm, watchDebounced as Nn, useClipboard as Pd, useStorage as Od, useIntervalFn as Ym, tryOnMounted as Xm, tryOnScopeDispose as Am, unrefElement as ym, defaultDocument as bm, toValue as _l, useDropZone as Cm,
|
|
14
|
+
import { useEventBus as Jt, tryOnBeforeUnmount as Ln, useFetch as qm, watchDebounced as Nn, useClipboard as Pd, useStorage as Od, useIntervalFn as Ym, tryOnMounted as Xm, tryOnScopeDispose as Am, unrefElement as ym, defaultDocument as bm, toValue as _l, useDropZone as Cm, useDebounceFn as xm, useWebSocket as wm } from "@vueuse/core";
|
|
15
15
|
import { VTextField as ci } from "vuetify/lib/components/VTextField/index.mjs";
|
|
16
16
|
import { Tooltip as Rd, Intersect as zd } from "vuetify/lib/directives/index.mjs";
|
|
17
17
|
import { VTextarea as Ld } from "vuetify/lib/components/VTextarea/index.mjs";
|
|
@@ -7683,26 +7683,38 @@ const Mu = (a) => Gi(a) && Object.hasOwn(a, "totalCount"), $u = (a) => Gi(a) &&
|
|
|
7683
7683
|
}
|
|
7684
7684
|
return c.status === La ? n([]) : d(new bt());
|
|
7685
7685
|
}).catch((c) => Na(c) ? d(new Sa(c)) : Da(c) ? d(new Ka(c, r, o, c)) : ja(c) ? d(new Ta(c, c)) : d(new bt(c)));
|
|
7686
|
-
}),
|
|
7686
|
+
}), kv = "/adm/v1/asset-licence", el = (a, t) => Nt(a, kv + "/:id", { id: t }, "coreDam", "assetLicence"), Bu = "/adm/v1/asset-custom-form", Pu = "assetCustomForm", mr = (a, t, e) => Nt(
|
|
7687
|
+
a,
|
|
7688
|
+
Bu + "/ext-system/:extSystem/type/:assetType/element?order[position]=asc&limit=100",
|
|
7689
|
+
{ extSystem: t, assetType: e },
|
|
7690
|
+
Be,
|
|
7691
|
+
Pu
|
|
7692
|
+
), Iv = (a, t) => Nt(
|
|
7693
|
+
a,
|
|
7694
|
+
Bu + "/distribution-service/:distributionService/element?order[position]=asc&limit=100",
|
|
7695
|
+
{ distributionService: t },
|
|
7696
|
+
Be,
|
|
7697
|
+
Pu
|
|
7698
|
+
), Ou = "/adm/v1/configuration", _v = "/pub", Sv = _v + "/v1/configuration", tl = "settings", Dv = (a) => Nt(a, Sv, {}, Be, tl), Kv = (a) => Nt(a, Ou, {}, Be, tl), Tv = (a, t) => Nt(t, Ou + "/ext-system/" + a, {}, Be, tl), Ev = {
|
|
7687
7699
|
None: "none",
|
|
7688
7700
|
AtLeastOne: "at_least_one",
|
|
7689
7701
|
OneFromType: "one_from_type",
|
|
7690
7702
|
WaitForAll: "wait_for_all"
|
|
7691
|
-
}, CD =
|
|
7703
|
+
}, CD = Ev.None, xD = {
|
|
7692
7704
|
Youtube: "youtubeDistribution",
|
|
7693
7705
|
Jw: "jwDistribution",
|
|
7694
7706
|
Custom: "customDistribution"
|
|
7695
|
-
},
|
|
7707
|
+
}, Mv = {
|
|
7696
7708
|
Waiting: "waiting",
|
|
7697
7709
|
Distributing: "distributing",
|
|
7698
7710
|
RemoteProcessing: "remote_processing",
|
|
7699
7711
|
Distributed: "distributed",
|
|
7700
7712
|
Failed: "failed"
|
|
7701
|
-
}, wD =
|
|
7713
|
+
}, wD = Mv.Waiting, Ru = {
|
|
7702
7714
|
JsonCredentials: "json_credentials",
|
|
7703
7715
|
OAuth2: "oauth2"
|
|
7704
|
-
}, kD =
|
|
7705
|
-
userAuthType:
|
|
7716
|
+
}, kD = Ru.JsonCredentials, Ol = () => ({
|
|
7717
|
+
userAuthType: Ru.JsonCredentials
|
|
7706
7718
|
}), Rl = () => ({
|
|
7707
7719
|
colorSet: {},
|
|
7708
7720
|
assetExternalProviders: {},
|
|
@@ -7742,19 +7754,7 @@ const Mu = (a) => Gi(a) && Object.hasOwn(a, "totalCount"), $u = (a) => Gi(a) &&
|
|
|
7742
7754
|
damConfigDistributionCustomFormElements: o,
|
|
7743
7755
|
reset: l
|
|
7744
7756
|
};
|
|
7745
|
-
})
|
|
7746
|
-
a,
|
|
7747
|
-
Ou + "/ext-system/:extSystem/type/:assetType/element?order[position]=asc&limit=100",
|
|
7748
|
-
{ extSystem: t, assetType: e },
|
|
7749
|
-
Be,
|
|
7750
|
-
Ru
|
|
7751
|
-
), Ev = (a, t) => Nt(
|
|
7752
|
-
a,
|
|
7753
|
-
Ou + "/distribution-service/:distributionService/element?order[position]=asc&limit=100",
|
|
7754
|
-
{ distributionService: t },
|
|
7755
|
-
Be,
|
|
7756
|
-
Ru
|
|
7757
|
-
), Mv = "/adm/v1/asset-licence", tl = (a, t) => Nt(a, Mv + "/:id", { id: t }, "coreDam", "assetLicence");
|
|
7757
|
+
});
|
|
7758
7758
|
function ea(a = void 0) {
|
|
7759
7759
|
const t = Bs();
|
|
7760
7760
|
function e(F) {
|
|
@@ -7766,7 +7766,7 @@ function ea(a = void 0) {
|
|
|
7766
7766
|
A(!1);
|
|
7767
7767
|
return;
|
|
7768
7768
|
}
|
|
7769
|
-
|
|
7769
|
+
Dv(a).then((X) => {
|
|
7770
7770
|
if (Object.keys(X).length < 1)
|
|
7771
7771
|
throw new Error("Unable to load pub config. Incorrect response body.");
|
|
7772
7772
|
i(X), F(!0);
|
|
@@ -7788,7 +7788,7 @@ function ea(a = void 0) {
|
|
|
7788
7788
|
A(!1);
|
|
7789
7789
|
return;
|
|
7790
7790
|
}
|
|
7791
|
-
|
|
7791
|
+
Kv(a).then((X) => {
|
|
7792
7792
|
if (Object.keys(X).length < 1)
|
|
7793
7793
|
throw new Error("Unable to load dam prv config. Incorrect response body.");
|
|
7794
7794
|
o(X), F(!0);
|
|
@@ -7810,7 +7810,7 @@ function ea(a = void 0) {
|
|
|
7810
7810
|
X(!1);
|
|
7811
7811
|
return;
|
|
7812
7812
|
}
|
|
7813
|
-
|
|
7813
|
+
Tv(F, a).then((b) => {
|
|
7814
7814
|
if (Object.keys(b).length < 1)
|
|
7815
7815
|
throw new Error("Unable to load dam ext system config. Incorrect response body.");
|
|
7816
7816
|
n(b, F), A(!0);
|
|
@@ -7877,7 +7877,7 @@ function ea(a = void 0) {
|
|
|
7877
7877
|
A(!0);
|
|
7878
7878
|
return;
|
|
7879
7879
|
}
|
|
7880
|
-
|
|
7880
|
+
Iv(a, F).then((b) => {
|
|
7881
7881
|
t.damConfigDistributionCustomFormElements.set(F, b.data), A(!0);
|
|
7882
7882
|
}).catch((b) => {
|
|
7883
7883
|
X(b);
|
|
@@ -7914,7 +7914,7 @@ function ea(a = void 0) {
|
|
|
7914
7914
|
let A = t.damConfigLicenceExtSystem.get(F);
|
|
7915
7915
|
if (R(A))
|
|
7916
7916
|
try {
|
|
7917
|
-
const b = await
|
|
7917
|
+
const b = await el(a, F);
|
|
7918
7918
|
if (te(b.extSystem)) return;
|
|
7919
7919
|
A = {
|
|
7920
7920
|
extSystem: b.extSystem,
|
|
@@ -11959,27 +11959,129 @@ function pc(a = void 0, t) {
|
|
|
11959
11959
|
uploadAccept: i
|
|
11960
11960
|
};
|
|
11961
11961
|
}
|
|
11962
|
-
|
|
11963
|
-
|
|
11964
|
-
|
|
11965
|
-
|
|
11966
|
-
|
|
11967
|
-
|
|
11968
|
-
|
|
11969
|
-
|
|
11970
|
-
|
|
11971
|
-
|
|
11972
|
-
|
|
11973
|
-
|
|
11974
|
-
|
|
11975
|
-
|
|
11976
|
-
|
|
11977
|
-
|
|
11978
|
-
|
|
11979
|
-
|
|
11980
|
-
|
|
11981
|
-
|
|
11982
|
-
|
|
11962
|
+
function vc(a, t, e, s = "id", i = 1e3) {
|
|
11963
|
+
const r = K(/* @__PURE__ */ new Map()), o = K(/* @__PURE__ */ new Set()), l = (...X) => {
|
|
11964
|
+
const b = /* @__PURE__ */ new Set();
|
|
11965
|
+
for (let w = 0; w < X.length; w++) {
|
|
11966
|
+
const $ = X[w];
|
|
11967
|
+
if (!(te($) || R($))) {
|
|
11968
|
+
if (We($)) {
|
|
11969
|
+
for (let z = 0; z < $.length; z++) {
|
|
11970
|
+
const N = $[z];
|
|
11971
|
+
te(N) || R(N) || r.value.has(N) || b.add(N);
|
|
11972
|
+
}
|
|
11973
|
+
continue;
|
|
11974
|
+
}
|
|
11975
|
+
r.value.has($) || b.add($);
|
|
11976
|
+
}
|
|
11977
|
+
}
|
|
11978
|
+
b.forEach((w) => {
|
|
11979
|
+
r.value.set(w, { ...t(w), _loaded: !1 }), o.value.add(w);
|
|
11980
|
+
});
|
|
11981
|
+
}, n = (X) => {
|
|
11982
|
+
X[s] && r.value.set(X[s], { ...a(X), _loaded: !0 });
|
|
11983
|
+
}, d = (X) => {
|
|
11984
|
+
X[s] && r.value.set(X[s], { ...X, _loaded: !0 });
|
|
11985
|
+
}, u = (X) => {
|
|
11986
|
+
r.value.size >= i && r.value.clear();
|
|
11987
|
+
for (let b = 0; b < X.length; b += 1)
|
|
11988
|
+
r.value.set(X[b][s], { ...a(X[b]), _loaded: !0 });
|
|
11989
|
+
}, c = (X) => {
|
|
11990
|
+
for (let b = 0; b < X.length; b += 1)
|
|
11991
|
+
o.value.delete(X[b]);
|
|
11992
|
+
};
|
|
11993
|
+
async function f() {
|
|
11994
|
+
if (o.value.size > 0) {
|
|
11995
|
+
const X = Array.from(o.value), b = await e(X);
|
|
11996
|
+
return c(X), u(b), b;
|
|
11997
|
+
}
|
|
11998
|
+
return [];
|
|
11999
|
+
}
|
|
12000
|
+
const Y = xm(
|
|
12001
|
+
async () => await f(),
|
|
12002
|
+
1500,
|
|
12003
|
+
{ maxWait: 5e3 }
|
|
12004
|
+
);
|
|
12005
|
+
return {
|
|
12006
|
+
cache: r,
|
|
12007
|
+
toFetch: o,
|
|
12008
|
+
fetch: () => Y(),
|
|
12009
|
+
immediateFetch: () => f(),
|
|
12010
|
+
add: l,
|
|
12011
|
+
addManual: n,
|
|
12012
|
+
addManualMinimal: d,
|
|
12013
|
+
has: (X) => X ? r.value.has(X) : !1,
|
|
12014
|
+
get: (X) => {
|
|
12015
|
+
if (X)
|
|
12016
|
+
return r.value.get(X);
|
|
12017
|
+
},
|
|
12018
|
+
clear: () => r.value.clear(),
|
|
12019
|
+
isLoaded: (X) => {
|
|
12020
|
+
if (!X) return !1;
|
|
12021
|
+
const b = r.value.get(X);
|
|
12022
|
+
return b ? b._loaded : !1;
|
|
12023
|
+
}
|
|
12024
|
+
};
|
|
12025
|
+
}
|
|
12026
|
+
const sg = (a, t) => {
|
|
12027
|
+
const { querySetLimit: e, querySetOffset: s, querySetOrder: i, queryBuild: r, queryAddFilter: o, queryAdd: l } = go(), n = a.length;
|
|
12028
|
+
return e(n), s(1, n), i("id", !1), t ? l("id", a.join(",")) : o("in", "id", a.join(",")), r();
|
|
12029
|
+
}, Ps = (a, t, e, s = {}, i, r, o = {}, l = !1) => new Promise((n, d) => {
|
|
12030
|
+
a().get(hs(e, s) + sg(t, l), o).then((u) => {
|
|
12031
|
+
var c;
|
|
12032
|
+
return Fs(u.status) ? (c = u.data) != null && c.data ? n(u.data.data) : u.status === La ? n(null) : d(new bt()) : d(new Ua(u.status));
|
|
12033
|
+
}).catch((u) => Na(u) ? d(new Sa(u)) : Da(u) ? d(new Ka(u, i, r, u)) : ja(u) ? d(new Ta(u, u)) : d(new bt(u)));
|
|
12034
|
+
}), bo = (a, t = {}, e, s = {}, i, r, o = {}) => new Promise((l, n) => {
|
|
12035
|
+
a().post(hs(e, s), JSON.stringify(t), o).then((d) => Fs(d.status) ? d.data ? l(d.data) : d.status === La ? l(null) : n(new bt()) : n(new Ua(d.status))).catch((d) => Na(d) ? n(new Sa(d)) : Da(d) ? n(new Ka(d, i, r, d)) : ja(d) ? n(new Ta(d, d)) : n(new bt(d)));
|
|
12036
|
+
}), hc = "/adm/v1/author", Fc = hc + "/ext-system/:extSystemId", Co = "author", hi = (a, t, e) => Ps(
|
|
12037
|
+
a,
|
|
12038
|
+
e,
|
|
12039
|
+
Fc + "/search",
|
|
12040
|
+
{
|
|
12041
|
+
extSystemId: t
|
|
12042
|
+
},
|
|
12043
|
+
Be,
|
|
12044
|
+
Co,
|
|
12045
|
+
{},
|
|
12046
|
+
!0
|
|
12047
|
+
), rd = (a, t, e, s) => Wa(
|
|
12048
|
+
a,
|
|
12049
|
+
Fc,
|
|
12050
|
+
{
|
|
12051
|
+
extSystemId: t
|
|
12052
|
+
},
|
|
12053
|
+
e,
|
|
12054
|
+
s,
|
|
12055
|
+
Be,
|
|
12056
|
+
Co
|
|
12057
|
+
), ig = (a, t) => bo(a, t, hc, {}, Be, Co), rg = K(0);
|
|
12058
|
+
function xo() {
|
|
12059
|
+
return {
|
|
12060
|
+
cachedExtSystemId: rg
|
|
12061
|
+
};
|
|
12062
|
+
}
|
|
12063
|
+
const og = (a) => ({
|
|
12064
|
+
id: a.id,
|
|
12065
|
+
name: a.name,
|
|
12066
|
+
identifier: a.identifier
|
|
12067
|
+
}), ng = (a) => ({ id: a, name: "", identifier: "" }), { cache: lg, toFetch: dg, fetch: gc, add: qc, addManual: ug, addManualMinimal: Yc, has: cg, get: mg, isLoaded: fg } = vc(og, ng, (a) => {
|
|
12068
|
+
const { cachedExtSystemId: t } = xo(), { damClient: e } = ut();
|
|
12069
|
+
return hi(e, t.value, a);
|
|
12070
|
+
}), tr = () => ({
|
|
12071
|
+
addManualToCachedAuthors: ug,
|
|
12072
|
+
addManualMinimalToCachedAuthors: Yc,
|
|
12073
|
+
addToCachedAuthors: qc,
|
|
12074
|
+
fetchCachedAuthors: gc,
|
|
12075
|
+
toFetchCachedAuthors: dg,
|
|
12076
|
+
cachedAuthors: lg,
|
|
12077
|
+
hasCachedAuthor: cg,
|
|
12078
|
+
getCachedAuthor: mg,
|
|
12079
|
+
isLoadedCachedAuthor: fg
|
|
12080
|
+
}), Xc = () => ({
|
|
12081
|
+
fetch: gc,
|
|
12082
|
+
add: qc,
|
|
12083
|
+
addManualMinimal: Yc
|
|
12084
|
+
}), Bi = {
|
|
11983
12085
|
Uploading: "uploading",
|
|
11984
12086
|
// file entity created and ready to receive chunks
|
|
11985
12087
|
Uploaded: "uploaded",
|
|
@@ -11998,14 +12100,14 @@ const vc = {
|
|
|
11998
12100
|
InvalidMimeType: "invalid_mime_type",
|
|
11999
12101
|
DownloadFailed: "download_failed",
|
|
12000
12102
|
InvalidSize: "invalid_size"
|
|
12001
|
-
},
|
|
12103
|
+
}, Vg = $a.None, pg = {
|
|
12002
12104
|
Disabled: "disabled",
|
|
12003
12105
|
Active: "active"
|
|
12004
|
-
}, ED =
|
|
12106
|
+
}, ED = pg.Disabled, MD = {
|
|
12005
12107
|
Image: "image",
|
|
12006
12108
|
Audio: "audio"
|
|
12007
|
-
},
|
|
12008
|
-
function
|
|
12109
|
+
}, ar = (a) => !a || !a._resourceName ? !1 : a._resourceName === "imageFile", $D = (a) => !a || !a._resourceName ? !1 : a._resourceName === "videoFile", BD = (a) => !a || !a._resourceName ? !1 : a._resourceName === "audioFile", PD = (a) => !a || !a._resourceName ? !1 : a._resourceName === "documentFile";
|
|
12110
|
+
function vg() {
|
|
12009
12111
|
return {
|
|
12010
12112
|
createDefault: (t, e, s, i, r, o) => ({
|
|
12011
12113
|
key: t,
|
|
@@ -12041,7 +12143,7 @@ function rg() {
|
|
|
12041
12143
|
error: {
|
|
12042
12144
|
hasError: !1,
|
|
12043
12145
|
message: "",
|
|
12044
|
-
assetFileFailReason:
|
|
12146
|
+
assetFileFailReason: Vg
|
|
12045
12147
|
},
|
|
12046
12148
|
notificationFallbackTimer: void 0,
|
|
12047
12149
|
notificationFallbackTry: 1,
|
|
@@ -12050,30 +12152,119 @@ function rg() {
|
|
|
12050
12152
|
})
|
|
12051
12153
|
};
|
|
12052
12154
|
}
|
|
12053
|
-
|
|
12155
|
+
function dn() {
|
|
12156
|
+
return {
|
|
12157
|
+
updateNewNames: (e, s) => {
|
|
12158
|
+
for (const [i, r] of Object.entries(e))
|
|
12159
|
+
ni(r) && s.add(i);
|
|
12160
|
+
},
|
|
12161
|
+
getAuthorConflicts: (e) => {
|
|
12162
|
+
const s = [];
|
|
12163
|
+
for (const i of Object.values(e))
|
|
12164
|
+
We(i) && i.length > 1 && i.forEach((r) => {
|
|
12165
|
+
s.push(r);
|
|
12166
|
+
});
|
|
12167
|
+
return s;
|
|
12168
|
+
}
|
|
12169
|
+
};
|
|
12170
|
+
}
|
|
12171
|
+
const hg = Symbol("anzu:damNotificationsEventBusKey");
|
|
12172
|
+
function Ac() {
|
|
12173
|
+
return Jt(hg);
|
|
12174
|
+
}
|
|
12175
|
+
const Yr = {
|
|
12176
|
+
AssetFileProcessed: "asset_file_processed",
|
|
12177
|
+
AssetFileFailed: "asset_file_failed",
|
|
12178
|
+
AssetFileDuplicate: "asset_file_duplicate",
|
|
12179
|
+
AssetFileUploaded: "asset_file_uploaded",
|
|
12180
|
+
AssetFileDeleted: "asset_file_deleted",
|
|
12181
|
+
AssetMetadataProcessed: "asset_metadata_processed",
|
|
12182
|
+
AssetDeleted: "asset_deleted",
|
|
12183
|
+
DistributionDistributing: "distribution_distributing",
|
|
12184
|
+
DistributionRemoteProcessing: "distribution_remote_processing",
|
|
12185
|
+
DistributionDistributed: "distribution_distributed",
|
|
12186
|
+
DistributionFailed: "distribution_failed",
|
|
12187
|
+
DistributionAuthorized: "distribution_authorized",
|
|
12188
|
+
UserUpdated: "user_updated"
|
|
12189
|
+
}, { t: Fg } = De.global || De, od = K(!1);
|
|
12190
|
+
function OD() {
|
|
12191
|
+
const { notification: a } = Eu(), t = a.enabled && a.webSocketUrl.length > 0, e = Ac(), { open: s } = wm(a.webSocketUrl, {
|
|
12192
|
+
immediate: !1,
|
|
12193
|
+
autoClose: !1,
|
|
12194
|
+
autoReconnect: {
|
|
12195
|
+
retries: 5,
|
|
12196
|
+
delay: 5e3,
|
|
12197
|
+
onFailed() {
|
|
12198
|
+
if (!t) return;
|
|
12199
|
+
const { showWarning: r } = He();
|
|
12200
|
+
setTimeout(() => {
|
|
12201
|
+
r(Fg("common.damImage.notificationsNotConnected"));
|
|
12202
|
+
}, 3e3);
|
|
12203
|
+
}
|
|
12204
|
+
},
|
|
12205
|
+
onMessage(r, o) {
|
|
12206
|
+
if (!t) return;
|
|
12207
|
+
const l = JSON.parse(o.data), n = l.data.length ? JSON.parse(l.data) : void 0;
|
|
12208
|
+
e.emit({ name: l.eventName, data: n });
|
|
12209
|
+
}
|
|
12210
|
+
});
|
|
12211
|
+
return {
|
|
12212
|
+
openConnection: () => {
|
|
12213
|
+
od.value = !0, t && s();
|
|
12214
|
+
},
|
|
12215
|
+
damNotificationsInitialized: od
|
|
12216
|
+
};
|
|
12217
|
+
}
|
|
12218
|
+
function gg() {
|
|
12219
|
+
const a = Ac();
|
|
12220
|
+
return {
|
|
12221
|
+
addDamNotificationListener: (e) => a.on(e)
|
|
12222
|
+
};
|
|
12223
|
+
}
|
|
12224
|
+
const qg = (a, t) => {
|
|
12054
12225
|
for (const [e, s] of Object.entries(t))
|
|
12055
12226
|
if (Object.values(Xe).includes(e)) {
|
|
12056
12227
|
for (let i = 0; i < s.mimeTypes.length; i++)
|
|
12057
12228
|
if (a === s.mimeTypes[i]) return e;
|
|
12058
12229
|
}
|
|
12059
12230
|
return null;
|
|
12060
|
-
},
|
|
12061
|
-
|
|
12062
|
-
|
|
12231
|
+
}, yc = {
|
|
12232
|
+
File: "file",
|
|
12233
|
+
Asset: "asset",
|
|
12234
|
+
ExternalProviderAsset: "externalProviderAsset",
|
|
12235
|
+
SlotFile: "slotFile"
|
|
12236
|
+
}, Ue = {
|
|
12237
|
+
Loading: "loading",
|
|
12238
|
+
// loading additional api data
|
|
12239
|
+
Waiting: "waiting",
|
|
12240
|
+
// waiting to be uploaded
|
|
12241
|
+
Uploading: "uploading",
|
|
12242
|
+
// uploading right now
|
|
12243
|
+
Processing: "processing",
|
|
12244
|
+
// all data sent by FE, server processing, waiting for notification, todo
|
|
12245
|
+
Failed: "failed",
|
|
12246
|
+
// any error
|
|
12247
|
+
Uploaded: "uploaded",
|
|
12248
|
+
// uploaded/ready after loading
|
|
12249
|
+
Stop: "stop"
|
|
12250
|
+
// after hitting stop upload
|
|
12251
|
+
}, un = K(void 0);
|
|
12252
|
+
function Yg(a = 30) {
|
|
12253
|
+
const t = Bs(), e = K(un.value || t.damPrvConfig.settings.imageChunkConfig.minSize), s = a / 5, i = a / 4, r = a / 2, o = (n) => {
|
|
12063
12254
|
if (te(n))
|
|
12064
12255
|
return !1;
|
|
12065
12256
|
const d = e.value / n;
|
|
12066
|
-
return d > r ? (e.value = l(r * n),
|
|
12257
|
+
return d > r ? (e.value = l(r * n), un.value = e.value, !0) : d < s ? (e.value = l(i * n), un.value = e.value, !0) : !1;
|
|
12067
12258
|
}, l = (n) => n > t.damPrvConfig.settings.imageChunkConfig.maxSize ? t.damPrvConfig.settings.imageChunkConfig.maxSize : n < t.damPrvConfig.settings.imageChunkConfig.minSize ? t.damPrvConfig.settings.imageChunkConfig.minSize : n;
|
|
12068
12259
|
return {
|
|
12069
12260
|
lastChunkSize: e,
|
|
12070
12261
|
updateChunkSize: o
|
|
12071
12262
|
};
|
|
12072
12263
|
}
|
|
12073
|
-
const Li = "/adm/v1/image",
|
|
12264
|
+
const Li = "/adm/v1/image", Xg = 420, Ag = (a, t) => new Promise((e, s) => {
|
|
12074
12265
|
var r;
|
|
12075
12266
|
let i = Li + "/licence/" + t.licenceId;
|
|
12076
|
-
t.type ===
|
|
12267
|
+
t.type === yc.SlotFile && t.slotName && t.assetId && (i = Li + "/asset/" + t.assetId + "/slot-name/" + t.slotName), a().post(
|
|
12077
12268
|
i,
|
|
12078
12269
|
JSON.stringify({
|
|
12079
12270
|
mimeType: Gs(t.file),
|
|
@@ -12084,7 +12275,7 @@ const Li = "/adm/v1/image", lg = 420, dg = (a, t) => new Promise((e, s) => {
|
|
|
12084
12275
|
}).catch((o) => {
|
|
12085
12276
|
s(o);
|
|
12086
12277
|
});
|
|
12087
|
-
}),
|
|
12278
|
+
}), yg = (a, t, e, s, i, r, o = void 0) => new Promise((l, n) => {
|
|
12088
12279
|
const d = new FormData(), u = Li + "/" + e + "/chunk";
|
|
12089
12280
|
d.append("file", s), d.append(
|
|
12090
12281
|
"chunk",
|
|
@@ -12092,7 +12283,7 @@ const Li = "/adm/v1/image", lg = 420, dg = (a, t) => new Promise((e, s) => {
|
|
|
12092
12283
|
offset: r,
|
|
12093
12284
|
size: i
|
|
12094
12285
|
})
|
|
12095
|
-
), a(
|
|
12286
|
+
), a(Xg).post(u, d, {
|
|
12096
12287
|
cancelToken: t.latestChunkCancelToken ? t.latestChunkCancelToken.token : void 0,
|
|
12097
12288
|
headers: {
|
|
12098
12289
|
"Content-Type": "multipart/form-data"
|
|
@@ -12103,7 +12294,7 @@ const Li = "/adm/v1/image", lg = 420, dg = (a, t) => new Promise((e, s) => {
|
|
|
12103
12294
|
}).catch((c) => {
|
|
12104
12295
|
n(c);
|
|
12105
12296
|
});
|
|
12106
|
-
}),
|
|
12297
|
+
}), bg = (a, t, e) => new Promise((s, i) => {
|
|
12107
12298
|
const r = Li + "/" + t.fileId + "/uploaded";
|
|
12108
12299
|
a().patch(
|
|
12109
12300
|
r,
|
|
@@ -12115,47 +12306,47 @@ const Li = "/adm/v1/image", lg = 420, dg = (a, t) => new Promise((e, s) => {
|
|
|
12115
12306
|
}).catch((o) => {
|
|
12116
12307
|
i(o);
|
|
12117
12308
|
});
|
|
12118
|
-
}),
|
|
12309
|
+
}), Cg = (a, t, e) => new Promise((s, i) => {
|
|
12119
12310
|
const r = Li + "/" + t + "/rotate/" + e;
|
|
12120
12311
|
a().patch(r).then((o) => {
|
|
12121
12312
|
o.status === Ms ? s(o.data) : i();
|
|
12122
12313
|
}).catch((o) => {
|
|
12123
12314
|
i(o);
|
|
12124
12315
|
});
|
|
12125
|
-
}),
|
|
12316
|
+
}), xg = 10, wg = 3, kg = (a, t) => new Promise((e, s) => {
|
|
12126
12317
|
if (t.assetType !== Xe.Image) {
|
|
12127
12318
|
s();
|
|
12128
12319
|
return;
|
|
12129
12320
|
}
|
|
12130
|
-
|
|
12321
|
+
Ag(a, t).then((i) => {
|
|
12131
12322
|
e(i);
|
|
12132
12323
|
}).catch((i) => s(i));
|
|
12133
|
-
}),
|
|
12324
|
+
}), Ig = (a, t, e, s, i, r, o) => new Promise((l, n) => {
|
|
12134
12325
|
if (t.assetType !== Xe.Image) {
|
|
12135
12326
|
n();
|
|
12136
12327
|
return;
|
|
12137
12328
|
}
|
|
12138
|
-
|
|
12329
|
+
yg(a, t, e, s, i, r, o).then((d) => {
|
|
12139
12330
|
l(d);
|
|
12140
12331
|
}).catch((d) => {
|
|
12141
12332
|
n(d);
|
|
12142
12333
|
});
|
|
12143
|
-
}),
|
|
12334
|
+
}), _g = (a, t, e, s) => new Promise((i, r) => {
|
|
12144
12335
|
if (t.assetType !== Xe.Image) {
|
|
12145
12336
|
r();
|
|
12146
12337
|
return;
|
|
12147
12338
|
}
|
|
12148
|
-
|
|
12339
|
+
bg(a, t, e).then((o) => {
|
|
12149
12340
|
t.status = Ue.Processing, s && (t.notificationFallbackTimer = setTimeout(function() {
|
|
12150
|
-
|
|
12151
|
-
},
|
|
12341
|
+
Cc(a, t);
|
|
12342
|
+
}, bc(t))), i(o);
|
|
12152
12343
|
}).catch((o) => r(o));
|
|
12153
12344
|
});
|
|
12154
|
-
function
|
|
12155
|
-
return
|
|
12345
|
+
function bc(a) {
|
|
12346
|
+
return xg * 1e3 * a.notificationFallbackTry * a.notificationFallbackTry;
|
|
12156
12347
|
}
|
|
12157
|
-
async function
|
|
12158
|
-
if (clearTimeout(t.notificationFallbackTimer), t.status === Ue.Uploaded || t.notificationFallbackTry >
|
|
12348
|
+
async function Cc(a, t) {
|
|
12349
|
+
if (clearTimeout(t.notificationFallbackTimer), t.status === Ue.Uploaded || t.notificationFallbackTry > wg || !t.assetId) return;
|
|
12159
12350
|
const e = await ns(a, t.assetId);
|
|
12160
12351
|
if (e && e.mainFile && e.mainFile.fileAttributes) {
|
|
12161
12352
|
const s = ta();
|
|
@@ -12171,10 +12362,10 @@ async function Fc(a, t) {
|
|
|
12171
12362
|
}
|
|
12172
12363
|
}
|
|
12173
12364
|
t.notificationFallbackTry++, t.notificationFallbackTimer = setTimeout(function() {
|
|
12174
|
-
|
|
12175
|
-
},
|
|
12365
|
+
Cc(a, t);
|
|
12366
|
+
}, bc(t));
|
|
12176
12367
|
}
|
|
12177
|
-
var
|
|
12368
|
+
var xc = { exports: {} };
|
|
12178
12369
|
(function(a, t) {
|
|
12179
12370
|
(function(s, i) {
|
|
12180
12371
|
a.exports = i();
|
|
@@ -12690,14 +12881,14 @@ var gc = { exports: {} };
|
|
|
12690
12881
|
])
|
|
12691
12882
|
);
|
|
12692
12883
|
});
|
|
12693
|
-
})(
|
|
12694
|
-
var
|
|
12695
|
-
const
|
|
12884
|
+
})(xc);
|
|
12885
|
+
var Sg = xc.exports;
|
|
12886
|
+
const Dg = /* @__PURE__ */ co(Sg), cn = 4, Kg = 1e3, Tg = 1e3, Eg = 3, Mg = async (a, t = null) => {
|
|
12696
12887
|
throw t;
|
|
12697
|
-
},
|
|
12888
|
+
}, $g = async (a, t) => {
|
|
12698
12889
|
const { damClient: e } = ut(), { uploadStatusFallback: s } = Eu();
|
|
12699
|
-
return await
|
|
12700
|
-
},
|
|
12890
|
+
return await _g(e, a, t, s);
|
|
12891
|
+
}, Bg = (a) => {
|
|
12701
12892
|
const { t } = De.global || De;
|
|
12702
12893
|
if (!a || !a.response || !a.response.data)
|
|
12703
12894
|
return t("common.damImage.uploadErrors.unknownError");
|
|
@@ -12717,7 +12908,7 @@ const gg = /* @__PURE__ */ co(Fg), un = 4, qg = 1e3, Yg = 1e3, Xg = 3, Ag = asyn
|
|
|
12717
12908
|
s.push(t("common.damImage.uploadErrors.systemError") + ": " + i + " - " + r.join(","));
|
|
12718
12909
|
}
|
|
12719
12910
|
return s.length > 0 ? s.join(Fu) : t("common.damImage.uploadErrors.unknownError");
|
|
12720
|
-
},
|
|
12911
|
+
}, nd = async (a, t, e) => new Promise((s, i) => {
|
|
12721
12912
|
const r = e.slice(a, a + t), o = new FileReader();
|
|
12722
12913
|
o.onload = function(l) {
|
|
12723
12914
|
var n;
|
|
@@ -12725,11 +12916,11 @@ const gg = /* @__PURE__ */ co(Fg), un = 4, qg = 1e3, Yg = 1e3, Xg = 3, Ag = asyn
|
|
|
12725
12916
|
}, o.onerror = function(l) {
|
|
12726
12917
|
i(l);
|
|
12727
12918
|
}, o.readAsArrayBuffer(r);
|
|
12728
|
-
}),
|
|
12729
|
-
function
|
|
12919
|
+
}), Pg = (a) => new Promise((t) => setTimeout(t, a));
|
|
12920
|
+
function Og(a, t = void 0) {
|
|
12730
12921
|
const { damClient: e } = ut(), s = K(0), i = K(0);
|
|
12731
12922
|
let r = [], o = 0, l = 0, n = 0;
|
|
12732
|
-
const d =
|
|
12923
|
+
const d = Dg.createHash(), { updateChunkSize: u, lastChunkSize: c } = Yg(), f = () => Date.now() / 1e3;
|
|
12733
12924
|
function Y(A) {
|
|
12734
12925
|
const X = f();
|
|
12735
12926
|
if (o === 0) {
|
|
@@ -12744,7 +12935,7 @@ function xg(a, t = void 0) {
|
|
|
12744
12935
|
w();
|
|
12745
12936
|
return;
|
|
12746
12937
|
}
|
|
12747
|
-
|
|
12938
|
+
Ig(
|
|
12748
12939
|
e,
|
|
12749
12940
|
a,
|
|
12750
12941
|
a.fileId,
|
|
@@ -12760,21 +12951,21 @@ function xg(a, t = void 0) {
|
|
|
12760
12951
|
});
|
|
12761
12952
|
}), g = async (A) => {
|
|
12762
12953
|
u(a.progress.speed);
|
|
12763
|
-
let X = await
|
|
12954
|
+
let X = await nd(A, c.value, a.file), b = new File([X.data], a.file.name);
|
|
12764
12955
|
a.currentChunkIndex = A;
|
|
12765
12956
|
const w = oo.CancelToken;
|
|
12766
12957
|
a.latestChunkCancelToken = w.source();
|
|
12767
|
-
let $ =
|
|
12958
|
+
let $ = Tg, z = 0;
|
|
12768
12959
|
do {
|
|
12769
12960
|
z++;
|
|
12770
12961
|
try {
|
|
12771
12962
|
return await v(b, A), d.update(X.data), b;
|
|
12772
12963
|
} catch (N) {
|
|
12773
12964
|
if (Da(N))
|
|
12774
|
-
return z =
|
|
12775
|
-
u(a.progress.speed) && (X = await
|
|
12965
|
+
return z = cn, a.error.message = Bg(N), Promise.reject(N);
|
|
12966
|
+
u(a.progress.speed) && (X = await nd(A, c.value, a.file), b = new File([X.data], a.file.name)), await Pg($), z === cn - 1 ? $ = 1 : $ *= Eg;
|
|
12776
12967
|
}
|
|
12777
|
-
} while (z <
|
|
12968
|
+
} while (z < cn);
|
|
12778
12969
|
return Promise.reject("Unable to upload chunk, max tries exceeded");
|
|
12779
12970
|
};
|
|
12780
12971
|
function h() {
|
|
@@ -12785,17 +12976,17 @@ function xg(a, t = void 0) {
|
|
|
12785
12976
|
}
|
|
12786
12977
|
l === 0 && setTimeout(function() {
|
|
12787
12978
|
A();
|
|
12788
|
-
},
|
|
12979
|
+
}, Kg);
|
|
12789
12980
|
}
|
|
12790
12981
|
A();
|
|
12791
12982
|
}
|
|
12792
12983
|
return {
|
|
12793
12984
|
uploadInit: async () => new Promise((A, X) => {
|
|
12794
12985
|
if (!a.file || a.file.size < 1) {
|
|
12795
|
-
|
|
12986
|
+
Mg();
|
|
12796
12987
|
return;
|
|
12797
12988
|
}
|
|
12798
|
-
s.value = a.file.size, a.status = Ue.Uploading,
|
|
12989
|
+
s.value = a.file.size, a.status = Ue.Uploading, kg(e, a).then((b) => {
|
|
12799
12990
|
a.assetId = b.asset, a.fileId = b.id, A(a);
|
|
12800
12991
|
}).catch((b) => {
|
|
12801
12992
|
X(b);
|
|
@@ -12811,230 +13002,39 @@ function xg(a, t = void 0) {
|
|
|
12811
13002
|
const w = await g(X);
|
|
12812
13003
|
X += w.size, i.value = X / A * 100;
|
|
12813
13004
|
}
|
|
12814
|
-
return l = Date.now() / 1e3, await
|
|
13005
|
+
return l = Date.now() / 1e3, await $g(a, d.digest("hex"));
|
|
12815
13006
|
}
|
|
12816
13007
|
};
|
|
12817
13008
|
}
|
|
12818
|
-
const
|
|
13009
|
+
const ld = (a) => {
|
|
12819
13010
|
a.cancel("axios request cancelled");
|
|
12820
|
-
},
|
|
12821
|
-
function qc() {
|
|
12822
|
-
return Jt(wg);
|
|
12823
|
-
}
|
|
12824
|
-
const Yr = {
|
|
12825
|
-
AssetFileProcessed: "asset_file_processed",
|
|
12826
|
-
AssetFileFailed: "asset_file_failed",
|
|
12827
|
-
AssetFileDuplicate: "asset_file_duplicate",
|
|
12828
|
-
AssetFileUploaded: "asset_file_uploaded",
|
|
12829
|
-
AssetFileDeleted: "asset_file_deleted",
|
|
12830
|
-
AssetMetadataProcessed: "asset_metadata_processed",
|
|
12831
|
-
AssetDeleted: "asset_deleted",
|
|
12832
|
-
DistributionDistributing: "distribution_distributing",
|
|
12833
|
-
DistributionRemoteProcessing: "distribution_remote_processing",
|
|
12834
|
-
DistributionDistributed: "distribution_distributed",
|
|
12835
|
-
DistributionFailed: "distribution_failed",
|
|
12836
|
-
DistributionAuthorized: "distribution_authorized",
|
|
12837
|
-
UserUpdated: "user_updated"
|
|
12838
|
-
}, { t: kg } = De.global || De, nd = K(!1);
|
|
12839
|
-
function OD() {
|
|
12840
|
-
const { notification: a } = Eu(), t = a.enabled && a.webSocketUrl.length > 0, e = qc(), { open: s } = xm(a.webSocketUrl, {
|
|
12841
|
-
immediate: !1,
|
|
12842
|
-
autoClose: !1,
|
|
12843
|
-
autoReconnect: {
|
|
12844
|
-
retries: 5,
|
|
12845
|
-
delay: 5e3,
|
|
12846
|
-
onFailed() {
|
|
12847
|
-
if (!t) return;
|
|
12848
|
-
const { showWarning: r } = He();
|
|
12849
|
-
setTimeout(() => {
|
|
12850
|
-
r(kg("common.damImage.notificationsNotConnected"));
|
|
12851
|
-
}, 3e3);
|
|
12852
|
-
}
|
|
12853
|
-
},
|
|
12854
|
-
onMessage(r, o) {
|
|
12855
|
-
if (!t) return;
|
|
12856
|
-
const l = JSON.parse(o.data), n = l.data.length ? JSON.parse(l.data) : void 0;
|
|
12857
|
-
e.emit({ name: l.eventName, data: n });
|
|
12858
|
-
}
|
|
12859
|
-
});
|
|
12860
|
-
return {
|
|
12861
|
-
openConnection: () => {
|
|
12862
|
-
nd.value = !0, t && s();
|
|
12863
|
-
},
|
|
12864
|
-
damNotificationsInitialized: nd
|
|
12865
|
-
};
|
|
12866
|
-
}
|
|
12867
|
-
function Ig() {
|
|
12868
|
-
const a = qc();
|
|
12869
|
-
return {
|
|
12870
|
-
addDamNotificationListener: (e) => a.on(e)
|
|
12871
|
-
};
|
|
12872
|
-
}
|
|
12873
|
-
function cn() {
|
|
12874
|
-
return {
|
|
12875
|
-
updateNewNames: (e, s) => {
|
|
12876
|
-
for (const [i, r] of Object.entries(e))
|
|
12877
|
-
ni(r) && s.add(i);
|
|
12878
|
-
},
|
|
12879
|
-
getAuthorConflicts: (e) => {
|
|
12880
|
-
const s = [];
|
|
12881
|
-
for (const i of Object.values(e))
|
|
12882
|
-
We(i) && i.length > 1 && i.forEach((r) => {
|
|
12883
|
-
s.push(r);
|
|
12884
|
-
});
|
|
12885
|
-
return s;
|
|
12886
|
-
}
|
|
12887
|
-
};
|
|
12888
|
-
}
|
|
12889
|
-
function Yc(a, t, e, s = "id", i = 1e3) {
|
|
12890
|
-
const r = K(/* @__PURE__ */ new Map()), o = K(/* @__PURE__ */ new Set()), l = (...X) => {
|
|
12891
|
-
const b = /* @__PURE__ */ new Set();
|
|
12892
|
-
for (let w = 0; w < X.length; w++) {
|
|
12893
|
-
const $ = X[w];
|
|
12894
|
-
if (!(te($) || R($))) {
|
|
12895
|
-
if (We($)) {
|
|
12896
|
-
for (let z = 0; z < $.length; z++) {
|
|
12897
|
-
const N = $[z];
|
|
12898
|
-
te(N) || R(N) || r.value.has(N) || b.add(N);
|
|
12899
|
-
}
|
|
12900
|
-
continue;
|
|
12901
|
-
}
|
|
12902
|
-
r.value.has($) || b.add($);
|
|
12903
|
-
}
|
|
12904
|
-
}
|
|
12905
|
-
b.forEach((w) => {
|
|
12906
|
-
r.value.set(w, { ...t(w), _loaded: !1 }), o.value.add(w);
|
|
12907
|
-
});
|
|
12908
|
-
}, n = (X) => {
|
|
12909
|
-
X[s] && r.value.set(X[s], { ...a(X), _loaded: !0 });
|
|
12910
|
-
}, d = (X) => {
|
|
12911
|
-
X[s] && r.value.set(X[s], { ...X, _loaded: !0 });
|
|
12912
|
-
}, u = (X) => {
|
|
12913
|
-
r.value.size >= i && r.value.clear();
|
|
12914
|
-
for (let b = 0; b < X.length; b += 1)
|
|
12915
|
-
r.value.set(X[b][s], { ...a(X[b]), _loaded: !0 });
|
|
12916
|
-
}, c = (X) => {
|
|
12917
|
-
for (let b = 0; b < X.length; b += 1)
|
|
12918
|
-
o.value.delete(X[b]);
|
|
12919
|
-
};
|
|
12920
|
-
async function f() {
|
|
12921
|
-
if (o.value.size > 0) {
|
|
12922
|
-
const X = Array.from(o.value), b = await e(X);
|
|
12923
|
-
return c(X), u(b), b;
|
|
12924
|
-
}
|
|
12925
|
-
return [];
|
|
12926
|
-
}
|
|
12927
|
-
const Y = wm(
|
|
12928
|
-
async () => await f(),
|
|
12929
|
-
1500,
|
|
12930
|
-
{ maxWait: 5e3 }
|
|
12931
|
-
);
|
|
12932
|
-
return {
|
|
12933
|
-
cache: r,
|
|
12934
|
-
toFetch: o,
|
|
12935
|
-
fetch: () => Y(),
|
|
12936
|
-
immediateFetch: () => f(),
|
|
12937
|
-
add: l,
|
|
12938
|
-
addManual: n,
|
|
12939
|
-
addManualMinimal: d,
|
|
12940
|
-
has: (X) => X ? r.value.has(X) : !1,
|
|
12941
|
-
get: (X) => {
|
|
12942
|
-
if (X)
|
|
12943
|
-
return r.value.get(X);
|
|
12944
|
-
},
|
|
12945
|
-
clear: () => r.value.clear(),
|
|
12946
|
-
isLoaded: (X) => {
|
|
12947
|
-
if (!X) return !1;
|
|
12948
|
-
const b = r.value.get(X);
|
|
12949
|
-
return b ? b._loaded : !1;
|
|
12950
|
-
}
|
|
12951
|
-
};
|
|
12952
|
-
}
|
|
12953
|
-
const _g = (a, t) => {
|
|
12954
|
-
const { querySetLimit: e, querySetOffset: s, querySetOrder: i, queryBuild: r, queryAddFilter: o, queryAdd: l } = go(), n = a.length;
|
|
12955
|
-
return e(n), s(1, n), i("id", !1), t ? l("id", a.join(",")) : o("in", "id", a.join(",")), r();
|
|
12956
|
-
}, Ps = (a, t, e, s = {}, i, r, o = {}, l = !1) => new Promise((n, d) => {
|
|
12957
|
-
a().get(hs(e, s) + _g(t, l), o).then((u) => {
|
|
12958
|
-
var c;
|
|
12959
|
-
return Fs(u.status) ? (c = u.data) != null && c.data ? n(u.data.data) : u.status === La ? n(null) : d(new bt()) : d(new Ua(u.status));
|
|
12960
|
-
}).catch((u) => Na(u) ? d(new Sa(u)) : Da(u) ? d(new Ka(u, i, r, u)) : ja(u) ? d(new Ta(u, u)) : d(new bt(u)));
|
|
12961
|
-
}), bo = (a, t = {}, e, s = {}, i, r, o = {}) => new Promise((l, n) => {
|
|
12962
|
-
a().post(hs(e, s), JSON.stringify(t), o).then((d) => Fs(d.status) ? d.data ? l(d.data) : d.status === La ? l(null) : n(new bt()) : n(new Ua(d.status))).catch((d) => Na(d) ? n(new Sa(d)) : Da(d) ? n(new Ka(d, i, r, d)) : ja(d) ? n(new Ta(d, d)) : n(new bt(d)));
|
|
12963
|
-
}), Xc = "/adm/v1/keyword", Ac = Xc + "/ext-system/:extSystemId", hi = "keyword", yc = (a, t, e) => Ps(
|
|
13011
|
+
}, wc = "/adm/v1/keyword", kc = wc + "/ext-system/:extSystemId", Fi = "keyword", Ic = (a, t, e) => Ps(
|
|
12964
13012
|
a,
|
|
12965
13013
|
e,
|
|
12966
|
-
|
|
13014
|
+
kc + "/search",
|
|
12967
13015
|
{ extSystemId: t },
|
|
12968
13016
|
Be,
|
|
12969
|
-
|
|
13017
|
+
Fi,
|
|
12970
13018
|
{},
|
|
12971
13019
|
!0
|
|
12972
|
-
),
|
|
12973
|
-
function Co() {
|
|
12974
|
-
return {
|
|
12975
|
-
cachedExtSystemId: Dg
|
|
12976
|
-
};
|
|
12977
|
-
}
|
|
12978
|
-
const Kg = (a) => ({
|
|
13020
|
+
), dd = (a, t, e, s) => Wa(a, kc, { extSystemId: t }, e, s, Be, Fi), Rg = (a, t) => bo(a, t, wc, {}, Be, Fi), zg = (a) => ({
|
|
12979
13021
|
id: a.id,
|
|
12980
13022
|
name: a.name
|
|
12981
|
-
}),
|
|
12982
|
-
const { cachedExtSystemId: t } =
|
|
12983
|
-
return
|
|
12984
|
-
}),
|
|
12985
|
-
addManualToCachedKeywords:
|
|
12986
|
-
addManualMinimalToCachedKeywords:
|
|
12987
|
-
addToCachedKeywords:
|
|
12988
|
-
fetchCachedKeywords:
|
|
12989
|
-
toFetchCachedKeywords:
|
|
12990
|
-
cachedKeywords:
|
|
12991
|
-
hasCachedKeyword:
|
|
12992
|
-
getCachedKeyword:
|
|
12993
|
-
isLoadedCachedKeyword:
|
|
12994
|
-
}), bc = "/adm/v1/author", Cc = bc + "/ext-system/:extSystemId", wo = "author", Fi = (a, t, e) => Ps(
|
|
12995
|
-
a,
|
|
12996
|
-
e,
|
|
12997
|
-
Cc + "/search",
|
|
12998
|
-
{
|
|
12999
|
-
extSystemId: t
|
|
13000
|
-
},
|
|
13001
|
-
Be,
|
|
13002
|
-
wo,
|
|
13003
|
-
{},
|
|
13004
|
-
!0
|
|
13005
|
-
), dd = (a, t, e, s) => Wa(
|
|
13006
|
-
a,
|
|
13007
|
-
Cc,
|
|
13008
|
-
{
|
|
13009
|
-
extSystemId: t
|
|
13010
|
-
},
|
|
13011
|
-
e,
|
|
13012
|
-
s,
|
|
13013
|
-
Be,
|
|
13014
|
-
wo
|
|
13015
|
-
), Ng = (a, t) => bo(a, t, bc, {}, Be, wo), Ug = (a) => ({
|
|
13016
|
-
id: a.id,
|
|
13017
|
-
name: a.name,
|
|
13018
|
-
identifier: a.identifier
|
|
13019
|
-
}), jg = (a) => ({ id: a, name: "", identifier: "" }), { cache: Hg, toFetch: Wg, fetch: xc, add: wc, addManual: Gg, addManualMinimal: kc, has: Zg, get: Jg, isLoaded: Qg } = Yc(Ug, jg, (a) => {
|
|
13020
|
-
const { cachedExtSystemId: t } = Co(), { damClient: e } = ut();
|
|
13021
|
-
return Fi(e, t.value, a);
|
|
13022
|
-
}), ar = () => ({
|
|
13023
|
-
addManualToCachedAuthors: Gg,
|
|
13024
|
-
addManualMinimalToCachedAuthors: kc,
|
|
13025
|
-
addToCachedAuthors: wc,
|
|
13026
|
-
fetchCachedAuthors: xc,
|
|
13027
|
-
toFetchCachedAuthors: Wg,
|
|
13028
|
-
cachedAuthors: Hg,
|
|
13029
|
-
hasCachedAuthor: Zg,
|
|
13030
|
-
getCachedAuthor: Jg,
|
|
13031
|
-
isLoadedCachedAuthor: Qg
|
|
13032
|
-
}), Ic = () => ({
|
|
13033
|
-
fetch: xc,
|
|
13034
|
-
add: wc,
|
|
13035
|
-
addManualMinimal: kc
|
|
13023
|
+
}), Lg = (a) => ({ id: a, name: "" }), { cache: Ng, toFetch: Ug, fetch: jg, add: Hg, addManual: Wg, addManualMinimal: Gg, has: Zg, get: Jg, isLoaded: Qg } = vc(zg, Lg, (a) => {
|
|
13024
|
+
const { cachedExtSystemId: t } = xo(), { damClient: e } = ut();
|
|
13025
|
+
return Ic(e, t.value, a);
|
|
13026
|
+
}), wo = () => ({
|
|
13027
|
+
addManualToCachedKeywords: Wg,
|
|
13028
|
+
addManualMinimalToCachedKeywords: Gg,
|
|
13029
|
+
addToCachedKeywords: Hg,
|
|
13030
|
+
fetchCachedKeywords: jg,
|
|
13031
|
+
toFetchCachedKeywords: Ug,
|
|
13032
|
+
cachedKeywords: Ng,
|
|
13033
|
+
hasCachedKeyword: Zg,
|
|
13034
|
+
getCachedKeyword: Jg,
|
|
13035
|
+
isLoadedCachedKeyword: Qg
|
|
13036
13036
|
}), ud = 2, eq = 10485760, ta = mi("commonUploadQueuesStore", () => {
|
|
13037
|
-
const { addToCachedKeywords: a, fetchCachedKeywords: t } =
|
|
13037
|
+
const { addToCachedKeywords: a, fetchCachedKeywords: t } = wo(), { addToCachedAuthors: e, fetchCachedAuthors: s } = tr(), i = K(/* @__PURE__ */ new Map()), { createDefault: r } = vg(), { damClient: o } = ut(), { addDamNotificationListener: l } = gg();
|
|
13038
13038
|
l((y) => {
|
|
13039
13039
|
switch (y.name) {
|
|
13040
13040
|
case Yr.AssetFileProcessed:
|
|
@@ -13063,11 +13063,11 @@ const Kg = (a) => ({
|
|
|
13063
13063
|
if (R(Z))
|
|
13064
13064
|
throw new Error("Ext system must be initialised.");
|
|
13065
13065
|
for await (const ae of H) {
|
|
13066
|
-
const Ve =
|
|
13066
|
+
const Ve = qg(Gs(ae), Z);
|
|
13067
13067
|
if (!Ve || Ve !== Xe.Image) continue;
|
|
13068
13068
|
const me = r(
|
|
13069
13069
|
"file_" + ae.name,
|
|
13070
|
-
|
|
13070
|
+
yc.File,
|
|
13071
13071
|
Ue.Waiting,
|
|
13072
13072
|
Ve,
|
|
13073
13073
|
eq,
|
|
@@ -13104,7 +13104,7 @@ const Kg = (a) => ({
|
|
|
13104
13104
|
S[H] && h(S[H], y);
|
|
13105
13105
|
}
|
|
13106
13106
|
async function h(y, S) {
|
|
13107
|
-
const { upload: B, uploadInit: H } =
|
|
13107
|
+
const { upload: B, uploadInit: H } = Og(y, (W, Z, ae) => {
|
|
13108
13108
|
x(y, W, Z, ae);
|
|
13109
13109
|
});
|
|
13110
13110
|
try {
|
|
@@ -13130,7 +13130,7 @@ const Kg = (a) => ({
|
|
|
13130
13130
|
}
|
|
13131
13131
|
}
|
|
13132
13132
|
async function A(y, S = null, B = null) {
|
|
13133
|
-
const { updateNewNames: H, getAuthorConflicts: W } =
|
|
13133
|
+
const { updateNewNames: H, getAuthorConflicts: W } = dn();
|
|
13134
13134
|
if (!S || !B || B !== Xe.Image) return;
|
|
13135
13135
|
let Z = null;
|
|
13136
13136
|
try {
|
|
@@ -13157,7 +13157,7 @@ const Kg = (a) => ({
|
|
|
13157
13157
|
}
|
|
13158
13158
|
}
|
|
13159
13159
|
async function b(y) {
|
|
13160
|
-
const { updateNewNames: S, getAuthorConflicts: B } =
|
|
13160
|
+
const { updateNewNames: S, getAuthorConflicts: B } = dn();
|
|
13161
13161
|
try {
|
|
13162
13162
|
const H = await ns(o, y);
|
|
13163
13163
|
i.value.forEach((W, Z) => {
|
|
@@ -13174,10 +13174,10 @@ const Kg = (a) => ({
|
|
|
13174
13174
|
}
|
|
13175
13175
|
async function $(y, S, B) {
|
|
13176
13176
|
const H = i.value.get(y);
|
|
13177
|
-
!H || H.items.length === 0 || (S.status = Ue.Stop, S.latestChunkCancelToken &&
|
|
13177
|
+
!H || H.items.length === 0 || (S.status = Ue.Stop, S.latestChunkCancelToken && ld(S.latestChunkCancelToken), w(y, B), g(y));
|
|
13178
13178
|
}
|
|
13179
13179
|
async function z(y) {
|
|
13180
|
-
const { updateNewNames: S, getAuthorConflicts: B } =
|
|
13180
|
+
const { updateNewNames: S, getAuthorConflicts: B } = dn();
|
|
13181
13181
|
try {
|
|
13182
13182
|
const H = await ns(o, y.id);
|
|
13183
13183
|
i.value.forEach((W, Z) => {
|
|
@@ -13203,7 +13203,7 @@ const Kg = (a) => ({
|
|
|
13203
13203
|
S.items.forEach((H) => {
|
|
13204
13204
|
H.status = Ue.Stop;
|
|
13205
13205
|
}), B.length > 0 && B.forEach((H) => {
|
|
13206
|
-
H.latestChunkCancelToken &&
|
|
13206
|
+
H.latestChunkCancelToken && ld(H.latestChunkCancelToken);
|
|
13207
13207
|
}), k(y), O(y);
|
|
13208
13208
|
}
|
|
13209
13209
|
function O(y) {
|
|
@@ -14332,7 +14332,7 @@ const s7 = { class: "w-100 text-right" }, Vl = /* @__PURE__ */ G({
|
|
|
14332
14332
|
containerClass: { default: "d-inline-flex" }
|
|
14333
14333
|
},
|
|
14334
14334
|
setup(a) {
|
|
14335
|
-
const t = a, { getCachedAuthor: e } =
|
|
14335
|
+
const t = a, { getCachedAuthor: e } = tr(), s = ta(), i = vt(void 0), r = vt(!1), o = _(() => e(t.id)), l = _(() => {
|
|
14336
14336
|
if (!t.queueId) return;
|
|
14337
14337
|
const d = s.getQueue(t.queueId);
|
|
14338
14338
|
if (!(!d || !i.value) && d.suggestions.newAuthorNames.has(i.value.name))
|
|
@@ -14391,7 +14391,7 @@ const s7 = { class: "w-100 text-right" }, Vl = /* @__PURE__ */ G({
|
|
|
14391
14391
|
setup(a, { emit: t }) {
|
|
14392
14392
|
const e = a, s = t, i = () => {
|
|
14393
14393
|
s("addAuthor", e.id);
|
|
14394
|
-
}, { getCachedAuthor: r } =
|
|
14394
|
+
}, { getCachedAuthor: r } = tr(), o = vt(void 0), l = vt(!1), n = _(() => r(e.id)), d = _(() => {
|
|
14395
14395
|
var u;
|
|
14396
14396
|
return o.value ? o.value.name + (((u = o.value.identifier) == null ? void 0 : u.length) > 0 ? ` (${o.value.identifier})` : "") : "";
|
|
14397
14397
|
});
|
|
@@ -14434,9 +14434,9 @@ const s7 = { class: "w-100 text-right" }, Vl = /* @__PURE__ */ G({
|
|
|
14434
14434
|
}), o = (c) => c.map((f) => r(f)), l = (c) => c.map((f) => i(f));
|
|
14435
14435
|
return {
|
|
14436
14436
|
mapToValueObject: r,
|
|
14437
|
-
fetchItems: async (c, f) => o(await
|
|
14438
|
-
fetchItemsByIds: async (c) => o(await
|
|
14439
|
-
fetchItemsMinimal: async (c, f) => l(await
|
|
14437
|
+
fetchItems: async (c, f) => o(await rd(t, a, c, f)),
|
|
14438
|
+
fetchItemsByIds: async (c) => o(await hi(t, a, c)),
|
|
14439
|
+
fetchItemsMinimal: async (c, f) => l(await rd(t, a, c, f))
|
|
14440
14440
|
};
|
|
14441
14441
|
}, vd = fi(Be, "author");
|
|
14442
14442
|
function l7() {
|
|
@@ -14511,7 +14511,7 @@ function f7() {
|
|
|
14511
14511
|
modifiedAt: zt(),
|
|
14512
14512
|
createdBy: 0,
|
|
14513
14513
|
modifiedBy: 0,
|
|
14514
|
-
_resourceName:
|
|
14514
|
+
_resourceName: Co,
|
|
14515
14515
|
_system: Be
|
|
14516
14516
|
})
|
|
14517
14517
|
};
|
|
@@ -14547,7 +14547,7 @@ const V7 = /* @__PURE__ */ G({
|
|
|
14547
14547
|
g(), u.value = !1;
|
|
14548
14548
|
return;
|
|
14549
14549
|
}
|
|
14550
|
-
const X = await
|
|
14550
|
+
const X = await ig(i, n.value);
|
|
14551
14551
|
s("onSuccess", X), h("created"), d.value = !1, !R(X.id) && e.disableRedirect;
|
|
14552
14552
|
} catch (X) {
|
|
14553
14553
|
x(X);
|
|
@@ -14735,7 +14735,7 @@ const V7 = /* @__PURE__ */ G({
|
|
|
14735
14735
|
F && (i.value.includes(F) || (i.value = [...i.value, F]));
|
|
14736
14736
|
}, Y = K(""), v = (F) => {
|
|
14737
14737
|
F.length > 0 && (Y.value = F);
|
|
14738
|
-
}, { addManualToCachedAuthors: g } =
|
|
14738
|
+
}, { addManualToCachedAuthors: g } = tr(), h = (F) => {
|
|
14739
14739
|
if (g(F), We(i.value)) {
|
|
14740
14740
|
i.value = [...i.value, F.id];
|
|
14741
14741
|
return;
|
|
@@ -14748,7 +14748,7 @@ const V7 = /* @__PURE__ */ G({
|
|
|
14748
14748
|
m(Ku, {
|
|
14749
14749
|
modelValue: i.value,
|
|
14750
14750
|
"onUpdate:modelValue": A[1] || (A[1] = (X) => i.value = X),
|
|
14751
|
-
"use-cached": p(
|
|
14751
|
+
"use-cached": p(Xc),
|
|
14752
14752
|
v: p(d),
|
|
14753
14753
|
required: o.value,
|
|
14754
14754
|
label: F.label,
|
|
@@ -14842,11 +14842,11 @@ const V7 = /* @__PURE__ */ G({
|
|
|
14842
14842
|
}), o = (c) => c.map((f) => i(f)), l = (c) => c.map((f) => r(f));
|
|
14843
14843
|
return {
|
|
14844
14844
|
mapToValueObject: i,
|
|
14845
|
-
fetchItems: async (c, f) => o(await
|
|
14846
|
-
fetchItemsByIds: async (c) => o(await
|
|
14847
|
-
fetchItemsMinimal: async (c, f) => l(await
|
|
14845
|
+
fetchItems: async (c, f) => o(await dd(t, a, c, f)),
|
|
14846
|
+
fetchItemsByIds: async (c) => o(await Ic(t, a, c)),
|
|
14847
|
+
fetchItemsMinimal: async (c, f) => l(await dd(t, a, c, f))
|
|
14848
14848
|
};
|
|
14849
|
-
}, Zs = fi(Be,
|
|
14849
|
+
}, Zs = fi(Be, Fi);
|
|
14850
14850
|
la({
|
|
14851
14851
|
_elastic: {
|
|
14852
14852
|
...Zs({ exclude: !0 })
|
|
@@ -14883,7 +14883,7 @@ const q7 = { key: 1 }, Fd = /* @__PURE__ */ G({
|
|
|
14883
14883
|
containerClass: { default: "d-inline-flex" }
|
|
14884
14884
|
},
|
|
14885
14885
|
setup(a) {
|
|
14886
|
-
const t = a, { getCachedKeyword: e } =
|
|
14886
|
+
const t = a, { getCachedKeyword: e } = wo(), s = ta(), i = vt(void 0), r = vt(!1), o = _(() => e(t.id)), l = _(() => {
|
|
14887
14887
|
if (!t.queueId) return;
|
|
14888
14888
|
const d = s.getQueue(t.queueId);
|
|
14889
14889
|
if (!(!d || !i.value) && d.suggestions.newKeywordNames.has(i.value.name))
|
|
@@ -14943,7 +14943,7 @@ function Y7() {
|
|
|
14943
14943
|
modifiedAt: zt(),
|
|
14944
14944
|
createdBy: 1,
|
|
14945
14945
|
modifiedBy: 1,
|
|
14946
|
-
_resourceName:
|
|
14946
|
+
_resourceName: Fi,
|
|
14947
14947
|
_system: Be
|
|
14948
14948
|
})
|
|
14949
14949
|
};
|
|
@@ -14993,7 +14993,7 @@ const b7 = /* @__PURE__ */ G({
|
|
|
14993
14993
|
g(), u.value = !1;
|
|
14994
14994
|
return;
|
|
14995
14995
|
}
|
|
14996
|
-
const A = await
|
|
14996
|
+
const A = await Rg(i, n.value);
|
|
14997
14997
|
s("onSuccess", A), h("created"), d.value = !1, !R(A.id) && e.disableRedirect;
|
|
14998
14998
|
} catch (A) {
|
|
14999
14999
|
x(A);
|
|
@@ -15062,7 +15062,7 @@ const b7 = /* @__PURE__ */ G({
|
|
|
15062
15062
|
default: V(() => [
|
|
15063
15063
|
m(xa, {
|
|
15064
15064
|
system: p(Be),
|
|
15065
|
-
subject: p(
|
|
15065
|
+
subject: p(Fi)
|
|
15066
15066
|
}, {
|
|
15067
15067
|
default: V(() => [
|
|
15068
15068
|
m(Ge, null, {
|
|
@@ -15148,7 +15148,7 @@ const b7 = /* @__PURE__ */ G({
|
|
|
15148
15148
|
}
|
|
15149
15149
|
}, n = ca(l, { modelValueComputed: i }, { $scope: e.validationScope }), { fetchItemsMinimal: d } = F7(e.extSystem), u = g7(), c = K(""), f = (h) => {
|
|
15150
15150
|
h.length > 0 && (c.value = h);
|
|
15151
|
-
}, { addManualToCachedKeywords: Y } =
|
|
15151
|
+
}, { addManualToCachedKeywords: Y } = wo(), v = (h) => {
|
|
15152
15152
|
if (Y(h), We(i.value)) {
|
|
15153
15153
|
i.value = [...i.value, h.id];
|
|
15154
15154
|
return;
|
|
@@ -15159,7 +15159,7 @@ const b7 = /* @__PURE__ */ G({
|
|
|
15159
15159
|
m(Ku, {
|
|
15160
15160
|
modelValue: i.value,
|
|
15161
15161
|
"onUpdate:modelValue": x[1] || (x[1] = (F) => i.value = F),
|
|
15162
|
-
"use-cached": p(
|
|
15162
|
+
"use-cached": p(Xc),
|
|
15163
15163
|
v: p(n),
|
|
15164
15164
|
required: r.value,
|
|
15165
15165
|
label: h.label,
|
|
@@ -15495,7 +15495,7 @@ const b7 = /* @__PURE__ */ G({
|
|
|
15495
15495
|
]),
|
|
15496
15496
|
_: 1
|
|
15497
15497
|
}),
|
|
15498
|
-
d.value && p(
|
|
15498
|
+
d.value && p(ar)(u.value) ? (q(), T(Pc, {
|
|
15499
15499
|
key: 0,
|
|
15500
15500
|
file: u.value
|
|
15501
15501
|
}, null, 8, ["file"])) : U("", !0)
|
|
@@ -15612,7 +15612,7 @@ const b7 = /* @__PURE__ */ G({
|
|
|
15612
15612
|
setup(a, { emit: t }) {
|
|
15613
15613
|
const e = a, s = t, { showRecordWas: i, showErrorsDefault: r } = He(), o = K(!1), { damClient: l } = ut(), n = async (u) => {
|
|
15614
15614
|
try {
|
|
15615
|
-
o.value = !0, await
|
|
15615
|
+
o.value = !0, await Cg(l, e.imageId, u), i("updated"), s("afterRotate");
|
|
15616
15616
|
} catch (c) {
|
|
15617
15617
|
r(c);
|
|
15618
15618
|
} finally {
|
|
@@ -15684,7 +15684,7 @@ const b7 = /* @__PURE__ */ G({
|
|
|
15684
15684
|
await o(), e.forceReloadRoiPreviews(), e.forceReloadCropper();
|
|
15685
15685
|
};
|
|
15686
15686
|
return gt(async () => {
|
|
15687
|
-
e.reset(), e.showLoader(), s.asset && s.asset.mainFile &&
|
|
15687
|
+
e.reset(), e.showLoader(), s.asset && s.asset.mainFile && ar(s.asset.mainFile) && (e.setImageFile(xe(s.asset.mainFile)), await o()), e.hideLoader();
|
|
15688
15688
|
}), (n, d) => {
|
|
15689
15689
|
var c;
|
|
15690
15690
|
const u = $e("ABtnTertiary");
|
|
@@ -17395,7 +17395,7 @@ const zY = { class: "d-flex flex-column" }, LY = {
|
|
|
17395
17395
|
url: i.value.mainFile.links.image_detail.url,
|
|
17396
17396
|
width: i.value.mainFile.links.image_detail.width,
|
|
17397
17397
|
height: i.value.mainFile.links.image_detail.height,
|
|
17398
|
-
bgColor:
|
|
17398
|
+
bgColor: ar(i.value.mainFile) && i.value.mainFile.imageAttributes && i.value.mainFile.imageAttributes.mostDominantColor ? i.value.mainFile.imageAttributes.mostDominantColor : "#ccc"
|
|
17399
17399
|
} : {
|
|
17400
17400
|
url: "",
|
|
17401
17401
|
width: 356,
|
|
@@ -17795,7 +17795,7 @@ const sX = { key: 0 }, iX = /* @__PURE__ */ G({
|
|
|
17795
17795
|
]),
|
|
17796
17796
|
_: 1
|
|
17797
17797
|
}),
|
|
17798
|
-
f.value && p(
|
|
17798
|
+
f.value && p(ar)(Y.value) ? (q(), T(Pc, {
|
|
17799
17799
|
key: 0,
|
|
17800
17800
|
file: Y.value
|
|
17801
17801
|
}, null, 8, ["file"])) : U("", !0)
|
|
@@ -18134,7 +18134,7 @@ const sX = { key: 0 }, iX = /* @__PURE__ */ G({
|
|
|
18134
18134
|
url: h.value.imagePreview.url,
|
|
18135
18135
|
width: h.value.imagePreview.requestedWidth || void 0,
|
|
18136
18136
|
height: h.value.imagePreview.requestedHeight || void 0,
|
|
18137
|
-
bgColor:
|
|
18137
|
+
bgColor: ar((Q = x.value) == null ? void 0 : Q.mainFile) && ((ue = x.value) != null && ue.mainFile.imageAttributes) && ((fe = x.value) != null && fe.mainFile.imageAttributes.mostDominantColor) ? x.value.mainFile.imageAttributes.mostDominantColor : "#ccc"
|
|
18138
18138
|
} : {
|
|
18139
18139
|
url: "",
|
|
18140
18140
|
width: 356,
|
|
@@ -18168,7 +18168,7 @@ const sX = { key: 0 }, iX = /* @__PURE__ */ G({
|
|
|
18168
18168
|
const fe = await jr(W, g.value);
|
|
18169
18169
|
if (!fe[0])
|
|
18170
18170
|
throw new Error("Fatal error updating asset metadata");
|
|
18171
|
-
r("updated"), Rt((ue = fe[0].customData) == null ? void 0 : ue.description) && (Ae = fe[0].customData.description.trim()), fe[0].authors.length > 0 && (Q = (await
|
|
18171
|
+
r("updated"), Rt((ue = fe[0].customData) == null ? void 0 : ue.description) && (Ae = fe[0].customData.description.trim()), fe[0].authors.length > 0 && (Q = (await hi(W, e.extSystem, fe[0].authors)).map((Re) => Re.name).join(", ")), s(
|
|
18172
18172
|
"onApply",
|
|
18173
18173
|
g.value.map((we) => ({
|
|
18174
18174
|
texts: {
|
|
@@ -18576,7 +18576,7 @@ const sX = { key: 0 }, iX = /* @__PURE__ */ G({
|
|
|
18576
18576
|
b.setImageDetail(yt($.value)), j.value = !0;
|
|
18577
18577
|
}, H = () => {
|
|
18578
18578
|
N.value = !0;
|
|
18579
|
-
}, { cachedExtSystemId: W } =
|
|
18579
|
+
}, { cachedExtSystemId: W } = xo(), Z = K(!1), ae = async () => {
|
|
18580
18580
|
if (!o.value.enabled || R(s.collab))
|
|
18581
18581
|
return Promise.resolve(!0);
|
|
18582
18582
|
let de = 0;
|
|
@@ -18631,7 +18631,7 @@ const sX = { key: 0 }, iX = /* @__PURE__ */ G({
|
|
|
18631
18631
|
if (!de.value[0] || !de.value[0].mainFile) return;
|
|
18632
18632
|
try {
|
|
18633
18633
|
const Va = await ns(pe, de.value[0].id);
|
|
18634
|
-
Rt((Ne = Va.metadata.customData) == null ? void 0 : Ne.description) && (qt = Va.metadata.customData.description.trim()), Va.authors.length > 0 && (fa = (await
|
|
18634
|
+
Rt((Ne = Va.metadata.customData) == null ? void 0 : Ne.description) && (qt = Va.metadata.customData.description.trim()), Va.authors.length > 0 && (fa = (await hi(
|
|
18635
18635
|
pe,
|
|
18636
18636
|
ke.selectedSelectConfig.extSystem,
|
|
18637
18637
|
Va.authors
|
|
@@ -18656,7 +18656,7 @@ const sX = { key: 0 }, iX = /* @__PURE__ */ G({
|
|
|
18656
18656
|
}, fe = Xa(), { loading: we, dialog: Re } = St(fe), { damClient: pe } = ut(), se = async (de) => {
|
|
18657
18657
|
we.value = !0, Re.value = s.queueKey;
|
|
18658
18658
|
try {
|
|
18659
|
-
const ke = await Yo(pe, de), qt = await
|
|
18659
|
+
const ke = await Yo(pe, de), qt = await el(pe, ke.licence);
|
|
18660
18660
|
qt.extSystem && (W.value = qt.extSystem), fe.setAsset(ke);
|
|
18661
18661
|
} catch (ke) {
|
|
18662
18662
|
g(ke);
|
|
@@ -19014,7 +19014,7 @@ const sX = { key: 0 }, iX = /* @__PURE__ */ G({
|
|
|
19014
19014
|
const x = d(f.value.extSystem);
|
|
19015
19015
|
R(x) && h.push(n(f.value.extSystem));
|
|
19016
19016
|
try {
|
|
19017
|
-
await Promise.
|
|
19017
|
+
await Promise.allSettled(h);
|
|
19018
19018
|
} catch {
|
|
19019
19019
|
r.value = "error";
|
|
19020
19020
|
}
|
|
@@ -19871,7 +19871,7 @@ const FA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, gA = { clas
|
|
|
19871
19871
|
i.stopItemUpload(f.queueKey, f.item, f.index);
|
|
19872
19872
|
}, l = (f) => {
|
|
19873
19873
|
i.removeByIndex(e.queueKey, f);
|
|
19874
|
-
}, { addToCachedKeywords: n, fetchCachedKeywords: d } =
|
|
19874
|
+
}, { addToCachedKeywords: n, fetchCachedKeywords: d } = wo(), { addToCachedAuthors: u, fetchCachedAuthors: c } = tr();
|
|
19875
19875
|
return gt(() => {
|
|
19876
19876
|
r.value.forEach((f) => {
|
|
19877
19877
|
n(f.keywords), u(f.authors);
|
|
@@ -19964,7 +19964,7 @@ const FA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, gA = { clas
|
|
|
19964
19964
|
Ve.authorIds.forEach((me) => {
|
|
19965
19965
|
W.add(me);
|
|
19966
19966
|
});
|
|
19967
|
-
}), W.size > 0 && (await
|
|
19967
|
+
}), W.size > 0 && (await hi(b, e.extSystem, [...W])).forEach((me) => {
|
|
19968
19968
|
Z.set(me.id, me.name);
|
|
19969
19969
|
});
|
|
19970
19970
|
} catch (Ve) {
|
|
@@ -20202,17 +20202,19 @@ const FA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, gA = { clas
|
|
|
20202
20202
|
or,
|
|
20203
20203
|
void 0
|
|
20204
20204
|
);
|
|
20205
|
-
if (R(d))
|
|
20205
|
+
if (R(d) || R(d.value))
|
|
20206
20206
|
throw new Error("Fatal error, parent component doesn't provide necessary config ext system config.");
|
|
20207
20207
|
const u = ta(), c = _(() => u.getQueueTotalCount(s.queueKey)), f = _(() => c.value === Cs), Y = () => {
|
|
20208
20208
|
r.value = !0;
|
|
20209
20209
|
}, v = async () => {
|
|
20210
|
+
if (R(d) || R(d.value))
|
|
20211
|
+
return;
|
|
20210
20212
|
o.value = !0;
|
|
20211
20213
|
const x = l.value.slice(0, Cs - c.value);
|
|
20212
20214
|
await u.addByFiles(
|
|
20213
20215
|
s.queueKey,
|
|
20214
|
-
d.extSystem,
|
|
20215
|
-
d.licence,
|
|
20216
|
+
d.value.extSystem,
|
|
20217
|
+
d.value.licence,
|
|
20216
20218
|
x
|
|
20217
20219
|
), l.value = [], o.value = !1, r.value = !1, i("afterAdd");
|
|
20218
20220
|
}, g = () => {
|
|
@@ -20341,7 +20343,7 @@ const FA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, gA = { clas
|
|
|
20341
20343
|
} finally {
|
|
20342
20344
|
g.value = !1;
|
|
20343
20345
|
}
|
|
20344
|
-
}, X = ta(), b = _(() => X.getQueue(s.queueKey)), { cachedExtSystemId: w } =
|
|
20346
|
+
}, X = ta(), b = _(() => X.getQueue(s.queueKey)), { cachedExtSystemId: w } = xo(), { uploadQueueDialog: $ } = So(), z = (pe) => {
|
|
20345
20347
|
var Ye;
|
|
20346
20348
|
const se = o.value;
|
|
20347
20349
|
R(se) || (w.value = se.extSystem, (Ye = Ae.value) == null || Ye.check(pe), $.value = s.queueKey);
|
|
@@ -20364,7 +20366,7 @@ const FA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, gA = { clas
|
|
|
20364
20366
|
_e.authorIds.forEach((pt) => {
|
|
20365
20367
|
nt.add(pt);
|
|
20366
20368
|
});
|
|
20367
|
-
}), nt.size > 0 && (await
|
|
20369
|
+
}), nt.size > 0 && (await hi(y, se.selectedSelectConfig.extSystem, [
|
|
20368
20370
|
...nt
|
|
20369
20371
|
])).forEach((pt) => {
|
|
20370
20372
|
Te.set(pt.id, pt.name);
|
|
@@ -20402,7 +20404,7 @@ const FA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, gA = { clas
|
|
|
20402
20404
|
}, E = Xa(), { loading: k, dialog: C } = St(E), { damClient: y } = ut(), S = async (pe) => {
|
|
20403
20405
|
k.value = !0, C.value = s.queueKey;
|
|
20404
20406
|
try {
|
|
20405
|
-
const se = await Yo(y, pe), Ye = await
|
|
20407
|
+
const se = await Yo(y, pe), Ye = await el(y, se.licence);
|
|
20406
20408
|
Ye.extSystem && (w.value = Ye.extSystem), E.setAsset(se);
|
|
20407
20409
|
} catch (se) {
|
|
20408
20410
|
d(se);
|
|
@@ -20619,7 +20621,7 @@ const FA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, gA = { clas
|
|
|
20619
20621
|
const x = d(f.value.extSystem);
|
|
20620
20622
|
R(x) && h.push(n(f.value.extSystem));
|
|
20621
20623
|
try {
|
|
20622
|
-
await Promise.
|
|
20624
|
+
await Promise.allSettled(h);
|
|
20623
20625
|
} catch {
|
|
20624
20626
|
r.value = "error";
|
|
20625
20627
|
}
|
|
@@ -23454,7 +23456,7 @@ function pK(a) {
|
|
|
23454
23456
|
return a;
|
|
23455
23457
|
}
|
|
23456
23458
|
async function vK() {
|
|
23457
|
-
(await import("./webfontloader-
|
|
23459
|
+
(await import("./webfontloader-Dfd0sOti.js").then((t) => t.w)).load({
|
|
23458
23460
|
google: {
|
|
23459
23461
|
families: ["Roboto:100,300,400,500,700,900&display=swap"]
|
|
23460
23462
|
}
|
|
@@ -23997,7 +23999,7 @@ export {
|
|
|
23997
23999
|
FV as Z,
|
|
23998
24000
|
uS as _,
|
|
23999
24001
|
ef as a,
|
|
24000
|
-
|
|
24002
|
+
dn as a$,
|
|
24001
24003
|
Bp as a0,
|
|
24002
24004
|
mD as a1,
|
|
24003
24005
|
fD as a2,
|
|
@@ -24022,7 +24024,7 @@ export {
|
|
|
24022
24024
|
tK as aL,
|
|
24023
24025
|
ny as aM,
|
|
24024
24026
|
Zi as aN,
|
|
24025
|
-
|
|
24027
|
+
vc as aO,
|
|
24026
24028
|
Hs as aP,
|
|
24027
24029
|
Np as aQ,
|
|
24028
24030
|
Lp as aR,
|
|
@@ -24032,8 +24034,8 @@ export {
|
|
|
24032
24034
|
LF as aV,
|
|
24033
24035
|
TD as aW,
|
|
24034
24036
|
ea as aX,
|
|
24035
|
-
|
|
24036
|
-
|
|
24037
|
+
vg as aY,
|
|
24038
|
+
Yg as aZ,
|
|
24037
24039
|
pc as a_,
|
|
24038
24040
|
gD as aa,
|
|
24039
24041
|
Ku as ab,
|
|
@@ -24064,7 +24066,7 @@ export {
|
|
|
24064
24066
|
Ge as b,
|
|
24065
24067
|
We as b$,
|
|
24066
24068
|
OD as b0,
|
|
24067
|
-
|
|
24069
|
+
gg as b1,
|
|
24068
24070
|
JF as b2,
|
|
24069
24071
|
Y7 as b3,
|
|
24070
24072
|
f7 as b4,
|
|
@@ -24075,19 +24077,19 @@ export {
|
|
|
24075
24077
|
er as b9,
|
|
24076
24078
|
PD as bA,
|
|
24077
24079
|
Ue as bB,
|
|
24078
|
-
|
|
24080
|
+
yc as bC,
|
|
24079
24081
|
ht as bD,
|
|
24080
24082
|
KD as bE,
|
|
24081
24083
|
Xe as bF,
|
|
24082
24084
|
ho as bG,
|
|
24083
24085
|
dt as bH,
|
|
24084
24086
|
vo as bI,
|
|
24085
|
-
|
|
24087
|
+
Ev as bJ,
|
|
24086
24088
|
CD as bK,
|
|
24087
24089
|
xD as bL,
|
|
24088
|
-
|
|
24090
|
+
Mv as bM,
|
|
24089
24091
|
wD as bN,
|
|
24090
|
-
|
|
24092
|
+
Ru as bO,
|
|
24091
24093
|
kD as bP,
|
|
24092
24094
|
Yr as bQ,
|
|
24093
24095
|
_i as bR,
|
|
@@ -24121,9 +24123,9 @@ export {
|
|
|
24121
24123
|
$a as bs,
|
|
24122
24124
|
Bi as bt,
|
|
24123
24125
|
MD as bu,
|
|
24124
|
-
|
|
24126
|
+
pg as bv,
|
|
24125
24127
|
ED as bw,
|
|
24126
|
-
|
|
24128
|
+
ar as bx,
|
|
24127
24129
|
$D as by,
|
|
24128
24130
|
BD as bz,
|
|
24129
24131
|
_u as c,
|
|
@@ -24278,7 +24280,7 @@ export {
|
|
|
24278
24280
|
rK as ej,
|
|
24279
24281
|
VK as ek,
|
|
24280
24282
|
vK as el,
|
|
24281
|
-
|
|
24283
|
+
qg as em,
|
|
24282
24284
|
Gs as en,
|
|
24283
24285
|
gK as eo,
|
|
24284
24286
|
zS as f,
|
|
@@ -24303,4 +24305,4 @@ export {
|
|
|
24303
24305
|
HS as y,
|
|
24304
24306
|
ei as z
|
|
24305
24307
|
};
|
|
24306
|
-
//# sourceMappingURL=lib-
|
|
24308
|
+
//# sourceMappingURL=lib-BogOdsVH.js.map
|