@anzusystems/common-admin 1.47.0-beta.dev-1771894840 → 1.47.0-beta.dev-1775683200

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.
@@ -1,8 +1,8 @@
1
- import { defineComponent as H, computed as k, openBlock as v, createBlock as C, withCtx as m, createTextVNode as M, toDisplayString as A, createElementBlock as S, resolveComponent as Pe, normalizeClass as Ye, createVNode as u, withModifiers as Z, withDirectives as ra, vShow as Xa, renderSlot as le, ref as T, watch as Xe, inject as ft, createSlots as ma, createCommentVNode as E, createElementVNode as P, unref as d, provide as rt, Fragment as ge, renderList as lt, useModel as tt, mergeModels as Je, onMounted as ht, toRefs as Is, mergeProps as Qe, shallowRef as Et, nextTick as ds, onUnmounted as ws, readonly as _a, createStaticVNode as Ml, resolveDynamicComponent as bs, setBlockTracking as Mn, onBeforeUnmount as Lo, reactive as Si, toRaw as Ft, normalizeStyle as Ut, toRef as Wr, normalizeProps as xt, guardReactiveProps as us, isRef as La, isProxy as Uu, getCurrentInstance as Nu, withKeys as ns, Teleport as Ou, useTemplateRef as ju } from "vue";
1
+ import { defineComponent as H, computed as k, openBlock as v, createBlock as C, withCtx as m, createTextVNode as M, toDisplayString as A, createElementBlock as S, resolveComponent as Pe, normalizeClass as Ye, createVNode as u, withModifiers as Z, withDirectives as ra, vShow as Aa, renderSlot as le, ref as T, watch as Xe, inject as ft, createSlots as ma, createCommentVNode as E, createElementVNode as P, unref as d, provide as rt, Fragment as ge, renderList as lt, useModel as tt, mergeModels as Je, onMounted as ht, toRefs as Is, mergeProps as Qe, shallowRef as Et, nextTick as ds, onUnmounted as ws, readonly as _a, createStaticVNode as Ml, resolveDynamicComponent as bs, setBlockTracking as Mn, onBeforeUnmount as Lo, reactive as Si, toRaw as Ft, normalizeStyle as Ut, toRef as Wr, normalizeProps as xt, guardReactiveProps as us, isRef as La, isProxy as Uu, getCurrentInstance as Nu, withKeys as ns, Teleport as Ou, useTemplateRef as ju } from "vue";
2
2
  import { useI18n as se } from "vue-i18n";
3
3
  import { useI18n as vT } from "vue-i18n";
4
4
  import { VChip as $t } from "vuetify/components/VChip";
5
- import { _ as na, u as Ra, i as De, a as oi, C as ea, b as ta, S as Ua, c as Na, d as _, s as fs, e as qa, f as St, g as Se, h as ne, j as ca, k as Hu, l as Mt, m as Ze, n as xs, o as Oe, p as et, q as $l, r as So, t as Wu, v as Gu, w as Bl, x as sa, y as xr, z as ei, A as Oa, B as Ju, D as Zu, E as Lt, F as zo, G as Pl, H as Zt, I as Qu, J as Ki, K as ec, L as Gr, M as _l, N as Ll, O as zl, P as Rl, Q as Ul, R as Nl, T as Ol, U as jl, V as Hl, W as Ct, X as bo, Y as xo, Z as $n, $ as Bn, a0 as tc, a1 as Wl, a2 as Di, a3 as Gl, a4 as Jl, a5 as Cr, a6 as ac, a7 as kr, a8 as ja, a9 as Ha, aa as Ss, ab as Ks, ac as Vs, ad as Ds, ae as Ts, af as Es, ag as ya, ah as Wa, ai as Ga, aj as ri, ak as Ti, al as Ei, am as Mi, an as $i, ao as Bi, ap as Zl, aq as Ql, ar as Ro, as as Jr, at as Ir, au as sc, av as ed, aw as td, ax as ic, ay as Ka, az as Da, aA as Zr, aB as oc, aC as rc, aD as wr, aE as nr, aF as nc, aG as ad, aH as sd, aI as id, aJ as lc, aK as Ms, aL as od, aM as dc, aN as Sr, aO as uc, aP as Pn, aQ as Xs, aR as cc, aS as rd, aT as nd, aU as ld, aV as Kr, aW as _n, aX as mc, aY as fc, aZ as Vc, a_ as Dr, a$ as vc, b0 as gc, b1 as Fc, b2 as pc, b3 as hc, b4 as qc, b5 as yc, b6 as Yc, b7 as dd, b8 as Xc, b9 as Ln, ba as so, bb as zn, bc as Rn, bd as Qr } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-_07nGoQb.mjs";
5
+ import { _ as na, u as Ra, i as De, a as oi, C as ea, b as ta, S as Ua, c as Na, d as _, s as fs, e as ya, f as St, g as Se, h as ne, j as ca, k as Hu, l as Mt, m as Ze, n as xs, o as Oe, p as et, q as $l, r as So, t as Wu, v as Gu, w as Bl, x as sa, y as xr, z as ei, A as Oa, B as Ju, D as Zu, E as Lt, F as zo, G as Pl, H as Zt, I as Qu, J as Ki, K as ec, L as Gr, M as _l, N as Ll, O as zl, P as Rl, Q as Ul, R as Nl, T as Ol, U as jl, V as Hl, W as Ct, X as bo, Y as xo, Z as $n, $ as Bn, a0 as tc, a1 as Wl, a2 as Di, a3 as Gl, a4 as Jl, a5 as Cr, a6 as ac, a7 as kr, a8 as ja, a9 as Ha, aa as Ss, ab as Ks, ac as Vs, ad as Ds, ae as Ts, af as Es, ag as Ya, ah as Wa, ai as Ga, aj as ri, ak as Ti, al as Ei, am as Mi, an as $i, ao as Bi, ap as Zl, aq as Ql, ar as Ro, as as Jr, at as Ir, au as sc, av as ed, aw as td, ax as ic, ay as Ka, az as Da, aA as Zr, aB as oc, aC as rc, aD as wr, aE as nr, aF as nc, aG as ad, aH as sd, aI as id, aJ as lc, aK as Ms, aL as od, aM as dc, aN as Sr, aO as uc, aP as Pn, aQ as Xs, aR as cc, aS as rd, aT as nd, aU as ld, aV as Kr, aW as _n, aX as mc, aY as fc, aZ as Vc, a_ as Dr, a$ as vc, b0 as gc, b1 as Fc, b2 as pc, b3 as hc, b4 as qc, b5 as yc, b6 as Yc, b7 as dd, b8 as Xc, b9 as Ln, ba as so, bb as zn, bc as Rn, bd as Qr } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-_07nGoQb.mjs";
6
6
  import { be as FT, bf as pT, bg as hT, bh as qT, bi as yT, bj as YT, bk as XT, bl as AT, bm as bT, bn as xT, bo as CT, bp as kT, bq as IT, br as wT, bs as ST, bt as KT, bu as DT, bv as TT, bw as ET, bx as MT, by as $T, bz as BT, bA as PT, bB as _T, bC as LT, bD as zT, bE as RT, bF as UT, bG as NT, bH as OT, bI as jT, bJ as HT, bK as WT, bL as GT, bM as JT, bN as ZT, bO as QT, bP as e3, bQ as t3, bR as a3, bS as s3, bT as i3, bU as o3 } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-_07nGoQb.mjs";
7
7
  import { VAlert as hi } from "vuetify/components/VAlert";
8
8
  import { VIcon as ae } from "vuetify/components/VIcon";
@@ -34,7 +34,7 @@ import { VAppBar as Tc } from "vuetify/components/VAppBar";
34
34
  import { VColorPicker as Ec } from "vuetify/components/VColorPicker";
35
35
  import { VToolbar as Bs, VToolbarTitle as Mc } from "vuetify/components/VToolbar";
36
36
  import "vuetify/components/VBadge";
37
- import Aa, { useVuelidate as $c } from "@vuelidate/core";
37
+ import ba, { useVuelidate as $c } from "@vuelidate/core";
38
38
  import "vuetify/components/VDatePicker";
39
39
  import { VSlider as Bc } from "vuetify/components/VSlider";
40
40
  import { defineStore as Ps, storeToRefs as dt } from "pinia";
@@ -140,7 +140,7 @@ const zc = { key: 1 }, on = /* @__PURE__ */ H({
140
140
  },
141
141
  setup(e) {
142
142
  return (a, t) => ra((v(), S("div", Oc, null, 512)), [
143
- [Xa, e.loading]
143
+ [Aa, e.loading]
144
144
  ]);
145
145
  }
146
146
  }), sK = /* @__PURE__ */ H({
@@ -255,7 +255,7 @@ const zc = { key: 1 }, on = /* @__PURE__ */ H({
255
255
  name: "append-inner",
256
256
  fn: m(() => [
257
257
  le(D.$slots, "locked", { userId: f.value }, () => [
258
- e.collab ? (v(), C(qa, {
258
+ e.collab ? (v(), C(ya, {
259
259
  key: 0,
260
260
  id: f.value,
261
261
  users: e.collab.cachedUsers
@@ -1174,7 +1174,7 @@ const uK = /* @__PURE__ */ H({
1174
1174
  ra(P("div", Fm, [
1175
1175
  le(r.$slots, "advanced")
1176
1176
  ], 512), [
1177
- [Xa, s.value]
1177
+ [Aa, s.value]
1178
1178
  ])
1179
1179
  ]),
1180
1180
  _: 3
@@ -1570,7 +1570,7 @@ const bm = /* @__PURE__ */ H({
1570
1570
  }, null, 8, ["modelValue", "label", "disabled"]),
1571
1571
  P("div", Cm, [
1572
1572
  le(x.$slots, "locked", { userId: c.value }, () => [
1573
- e.collab ? (v(), C(qa, {
1573
+ e.collab ? (v(), C(ya, {
1574
1574
  key: 0,
1575
1575
  id: c.value,
1576
1576
  users: e.collab.cachedUsers
@@ -1597,7 +1597,7 @@ const bm = /* @__PURE__ */ H({
1597
1597
  _: 1
1598
1598
  }, 8, ["modelValue", "data-cy", "error-messages", "clearable", "disabled"])
1599
1599
  ], 512), [
1600
- [Xa, h.value]
1600
+ [Aa, h.value]
1601
1601
  ])
1602
1602
  ]),
1603
1603
  _: 1
@@ -1861,7 +1861,7 @@ const bm = /* @__PURE__ */ H({
1861
1861
  name: "append-inner",
1862
1862
  fn: m(() => [
1863
1863
  le(Q.$slots, "locked", { userId: g.value }, () => [
1864
- e.collab ? (v(), C(qa, {
1864
+ e.collab ? (v(), C(ya, {
1865
1865
  key: 0,
1866
1866
  id: g.value,
1867
1867
  users: e.collab.cachedUsers
@@ -2081,7 +2081,7 @@ const bm = /* @__PURE__ */ H({
2081
2081
  name: "append-inner",
2082
2082
  fn: m(() => [
2083
2083
  le(b.$slots, "locked", { userId: c.value }, () => [
2084
- e.collab ? (v(), C(qa, {
2084
+ e.collab ? (v(), C(ya, {
2085
2085
  key: 0,
2086
2086
  id: c.value,
2087
2087
  users: e.collab.cachedUsers
@@ -2930,12 +2930,12 @@ function ef(e, a = !1, t = void 0, s = void 0, o = !1) {
2930
2930
  }, Va = async (fe = {}) => new Promise((kt, Dt) => {
2931
2931
  if (!we.value.enabled || _(i.value))
2932
2932
  return Dt(Bn.Failed);
2933
- i.value?.timeout(5e3).emit("joinCollabRoom", e, fe, (Pt, xa) => {
2933
+ i.value?.timeout(5e3).emit("joinCollabRoom", e, fe, (Pt, Ca) => {
2934
2934
  if (Pt)
2935
2935
  return void Dt(Bn.Failed);
2936
- if ($n(xa))
2937
- return r.set(e, xa.room), void kt(xa.status);
2938
- Dt(xa.status);
2936
+ if ($n(Ca))
2937
+ return r.set(e, Ca.room), void kt(Ca.status);
2938
+ Dt(Ca.status);
2939
2939
  });
2940
2940
  }), Kt = () => {
2941
2941
  !we.value.enabled || _(i.value) || i.value.emit("leaveCollabRoom", e, (fe) => {
@@ -2998,9 +2998,9 @@ function ef(e, a = !1, t = void 0, s = void 0, o = !1) {
2998
2998
  return new Promise((Dt) => {
2999
2999
  if (!we.value.enabled || _(i.value))
3000
3000
  return Dt(kt);
3001
- i.value?.timeout(500).emit("fetchRoomsInfo", [fe], (Pt, xa) => {
3001
+ i.value?.timeout(500).emit("fetchRoomsInfo", [fe], (Pt, Ca) => {
3002
3002
  if (Pt) return void Dt(kt);
3003
- const Ba = xa[fe];
3003
+ const Ba = Ca[fe];
3004
3004
  return _(Ba) && Dt(kt), _(t) || t(Ba.users), _(s) || s(), Dt(Ba);
3005
3005
  });
3006
3006
  });
@@ -3148,7 +3148,7 @@ const tf = { class: "ml-3" }, af = { class: "ml-1" }, kK = /* @__PURE__ */ H({
3148
3148
  return (Ke, Te) => {
3149
3149
  const Va = Pe("ABtnSecondary"), Kt = Pe("ABtnIcon"), qt = Pe("ABtnTertiary"), bt = Pe("ABtnPrimary");
3150
3150
  return v(), S("div", null, [
3151
- d(o).moderator ? (v(), C(qa, {
3151
+ d(o).moderator ? (v(), C(ya, {
3152
3152
  id: d(o).moderator,
3153
3153
  key: d(o).moderator,
3154
3154
  users: e.cachedUsers,
@@ -3159,7 +3159,7 @@ const tf = { class: "ml-3" }, af = { class: "ml-1" }, kK = /* @__PURE__ */ H({
3159
3159
  style: { height: "16px" },
3160
3160
  vertical: ""
3161
3161
  }),
3162
- (v(!0), S(ge, null, lt(ce.value, (ue) => (v(), C(qa, {
3162
+ (v(!0), S(ge, null, lt(ce.value, (ue) => (v(), C(ya, {
3163
3163
  id: ue,
3164
3164
  key: ue,
3165
3165
  users: e.cachedUsers,
@@ -3241,7 +3241,7 @@ const tf = { class: "ml-3" }, af = { class: "ml-1" }, kK = /* @__PURE__ */ H({
3241
3241
  value: ue.userId
3242
3242
  }, {
3243
3243
  prepend: m(() => [
3244
- u(qa, {
3244
+ u(ya, {
3245
3245
  id: ue.userId,
3246
3246
  users: e.cachedUsers
3247
3247
  }, null, 8, ["id", "users"])
@@ -3324,7 +3324,7 @@ const tf = { class: "ml-3" }, af = { class: "ml-1" }, kK = /* @__PURE__ */ H({
3324
3324
  link: !1
3325
3325
  }, {
3326
3326
  title: m(() => [
3327
- u(qa, {
3327
+ u(ya, {
3328
3328
  id: ue,
3329
3329
  users: e.cachedUsers
3330
3330
  }, null, 8, ["id", "users"])
@@ -3448,7 +3448,7 @@ const tf = { class: "ml-3" }, af = { class: "ml-1" }, kK = /* @__PURE__ */ H({
3448
3448
  default: m(() => [
3449
3449
  u(je, null, {
3450
3450
  prepend: m(() => [
3451
- u(qa, {
3451
+ u(ya, {
3452
3452
  id: I.value.userId,
3453
3453
  users: e.cachedUsers
3454
3454
  }, null, 8, ["id", "users"])
@@ -4522,33 +4522,41 @@ const lf = { key: 0 }, df = { key: 1 }, uf = { key: 2 }, PK = /* @__PURE__ */ H(
4522
4522
  title: "Translation ID",
4523
4523
  adminOnly: !0
4524
4524
  }
4525
- ], Ca = en("language", "default");
4525
+ ], ha = en("language", "default");
4526
4526
  function cf(e, a, t) {
4527
4527
  const s = t || Di;
4528
- Ca.value === "default" && (Ca.value = a);
4529
- function o(n, l) {
4530
- !s || !s.global || s.global.setLocaleMessage(n, l);
4528
+ function o(l, c) {
4529
+ !s || !s.global || s.global.setLocaleMessage(l, c);
4531
4530
  }
4532
- const i = (n) => !s || !s.global ? !1 : e.includes(n) || n === "xx" ? (Ca.value = n, s.global.locale.value = n, n) : !1;
4531
+ const i = (l) => !s || !s.global ? !1 : e.includes(l) || l === "xx" ? (ha.value = l, s.global.locale.value = l, l) : !1;
4533
4532
  return {
4534
4533
  addMessages: o,
4534
+ applyUserLocale: (l) => {
4535
+ if (!l) return !1;
4536
+ const c = l;
4537
+ return ha.value !== "default" && c === ha.value ? !1 : i(c);
4538
+ },
4535
4539
  initializeLanguage: () => {
4536
- if (!(!s || !s.global || Ca.value === "default")) {
4537
- if (e.includes(Ca.value) || Ca.value === "xx") {
4538
- s.global.locale.value = Ca.value;
4540
+ if (!(!s || !s.global)) {
4541
+ if (ha.value === "default") {
4542
+ ha.value = a, s.global.locale.value = a;
4543
+ return;
4544
+ }
4545
+ if (e.includes(ha.value) || ha.value === "xx") {
4546
+ s.global.locale.value = ha.value;
4539
4547
  return;
4540
4548
  }
4541
- Ca.value = a, s.global.locale.value = a;
4549
+ ha.value = a, s.global.locale.value = a;
4542
4550
  }
4543
4551
  },
4544
- currentLanguageCode: _a(Ca),
4552
+ currentLanguageCode: _a(ha),
4545
4553
  setLanguage: i,
4546
4554
  allLanguages: ko
4547
4555
  };
4548
4556
  }
4549
4557
  function mf() {
4550
4558
  return {
4551
- currentLanguageCode: _a(Ca)
4559
+ currentLanguageCode: _a(ha)
4552
4560
  };
4553
4561
  }
4554
4562
  const ff = {
@@ -6142,7 +6150,7 @@ const { showUnknownError: YV, showApiValidationError: XV } = Ze(), Td = (e, a, t
6142
6150
  };
6143
6151
  e().patch(a + "/metadata-bulk-update", JSON.stringify([n])).then((l) => {
6144
6152
  l.status === Ha ? i(l.data) : r();
6145
- }).catch((l) => Ss(l) ? r(new Ks(l, l.config?.url)) : Vs(l) ? (Td(l, t.attributes.assetType, s), r(new Ds(l, xe, vs, l))) : Ts(l) ? r(new Es(l, l)) : r(new ya(l)));
6153
+ }).catch((l) => Ss(l) ? r(new Ks(l, l.config?.url)) : Vs(l) ? (Td(l, t.attributes.assetType, s), r(new Ds(l, xe, vs, l))) : Ts(l) ? r(new Es(l, l)) : r(new Ya(l)));
6146
6154
  }), Ed = (e, a, t, s) => new Promise((o, i) => {
6147
6155
  const r = {
6148
6156
  id: t.id,
@@ -6151,7 +6159,7 @@ const { showUnknownError: YV, showApiValidationError: XV } = Ze(), Td = (e, a, t
6151
6159
  };
6152
6160
  e().patch(a + "/metadata-bulk-update", JSON.stringify([r])).then((n) => {
6153
6161
  n.status === Ha ? o(n.data) : i();
6154
- }).catch((n) => Ss(n) ? i(new Ks(n, n.config?.url)) : Vs(n) ? (Td(n, t.attributes.assetType, s), i(new Ds(n, xe, vs, n))) : Ts(n) ? i(new Es(n, n)) : i(new ya(n)));
6162
+ }).catch((n) => Ss(n) ? i(new Ks(n, n.config?.url)) : Vs(n) ? (Td(n, t.attributes.assetType, s), i(new Ds(n, xe, vs, n))) : Ts(n) ? i(new Es(n, n)) : i(new Ya(n)));
6155
6163
  });
6156
6164
  async function bV(e, a, t) {
6157
6165
  const s = Math.ceil(t.length / Gs), o = [];
@@ -6613,7 +6621,7 @@ const KV = (e, a) => {
6613
6621
  e().get(
6614
6622
  ri(t, s) + KV(a, n),
6615
6623
  r
6616
- ).then((f) => Ti(f.status) ? f.data?.data ? l(f.data.data) : f.status === Mi ? l(null) : c(new ya()) : c(new Ei(f.status))).catch((f) => Ss(f) ? c(new Ks(f, f.config?.url)) : Vs(f) ? c(new Ds(f, o, i, f)) : $i(f) ? c(new Bi(f, o, i, f)) : Ts(f) ? c(new Es(f, f)) : c(new ya(f)));
6624
+ ).then((f) => Ti(f.status) ? f.data?.data ? l(f.data.data) : f.status === Mi ? l(null) : c(new Ya()) : c(new Ei(f.status))).catch((f) => Ss(f) ? c(new Ks(f, f.config?.url)) : Vs(f) ? c(new Ds(f, o, i, f)) : $i(f) ? c(new Bi(f, o, i, f)) : Ts(f) ? c(new Es(f, f)) : c(new Ya(f)));
6617
6625
  }), DV = (e, a) => {
6618
6626
  const { querySetLimit: t, querySetOffset: s, querySetOrder: o, queryBuild: i, querySetFilters: r } = Zo();
6619
6627
  return t(e.rowsPerPage), s(e.page, e.rowsPerPage), o(e.sortBy, e.descending), r(a), i();
@@ -6629,9 +6637,9 @@ const KV = (e, a) => {
6629
6637
  const g = V.data;
6630
6638
  return Zl(g) ? s.hasNextPage = V.data.hasNextPage : Ql(g) && (s.totalCount = g.totalCount), s.currentViewCount = V.data.data.length, l(V.data.data);
6631
6639
  }
6632
- return V.status === Mi ? l([]) : c(new ya());
6633
- }).catch((V) => Ss(V) ? c(new Ks(V, V.config?.url)) : Vs(V) ? c(new Ds(V, i, r, V)) : $i(V) ? c(new Bi(V, i, r, V)) : Ts(V) ? c(new Es(V, V)) : c(new ya(V)));
6634
- }), $d = "/adm/v1/author", dn = $d + "/ext-system/:extSystemId", Oi = "author", Ya = (e, a, t) => gs(
6640
+ return V.status === Mi ? l([]) : c(new Ya());
6641
+ }).catch((V) => Ss(V) ? c(new Ks(V, V.config?.url)) : Vs(V) ? c(new Ds(V, i, r, V)) : $i(V) ? c(new Bi(V, i, r, V)) : Ts(V) ? c(new Es(V, V)) : c(new Ya(V)));
6642
+ }), $d = "/adm/v1/author", dn = $d + "/ext-system/:extSystemId", Oi = "author", Xa = (e, a, t) => gs(
6635
6643
  e,
6636
6644
  t,
6637
6645
  dn + "/search",
@@ -6659,7 +6667,7 @@ const KV = (e, a) => {
6659
6667
  xe,
6660
6668
  Oi
6661
6669
  ), EV = (e, a) => Ro(e, a, $d, {}, xe, Oi), MV = T(0);
6662
- function ba() {
6670
+ function xa() {
6663
6671
  return {
6664
6672
  cachedExtSystemId: MV
6665
6673
  };
@@ -6670,8 +6678,8 @@ const $V = (e) => ({
6670
6678
  identifier: e.identifier,
6671
6679
  reviewed: e.flags.reviewed
6672
6680
  }), BV = (e) => ({ id: e, name: "", identifier: "", reviewed: !1 }), { cache: PV, toFetch: _V, fetch: Bd, add: Pd, addManual: LV, addManualMinimal: _d, has: zV, get: RV, isLoaded: UV } = ln($V, BV, (e) => {
6673
- const { cachedExtSystemId: a } = ba(), { damClient: t } = Me();
6674
- return Ya(t, a.value, e);
6681
+ const { cachedExtSystemId: a } = xa(), { damClient: t } = Me();
6682
+ return Xa(t, a.value, e);
6675
6683
  }), ni = () => ({
6676
6684
  addManualToCachedAuthors: LV,
6677
6685
  addManualMinimalToCachedAuthors: _d,
@@ -6713,7 +6721,7 @@ const $V = (e) => ({
6713
6721
  id: e.id,
6714
6722
  name: e.name
6715
6723
  }), WV = (e) => ({ id: e, name: "" }), { cache: GV, toFetch: JV, fetch: Rd, add: Ud, addManual: ZV, addManualMinimal: Nd, has: QV, get: ev, isLoaded: tv } = ln(HV, WV, (e) => {
6716
- const { cachedExtSystemId: a } = ba(), { damClient: t } = Me();
6724
+ const { cachedExtSystemId: a } = xa(), { damClient: t } = Me();
6717
6725
  return zd(t, a.value, e);
6718
6726
  }), ji = () => ({
6719
6727
  addManualToCachedKeywords: ZV,
@@ -6730,7 +6738,7 @@ const $V = (e) => ({
6730
6738
  add: Ud,
6731
6739
  addManualMinimal: Nd
6732
6740
  }), cn = (e, a = {}, t, s = {}, o, i, r = {}) => new Promise((n, l) => {
6733
- e().put(ri(t, s), JSON.stringify(a), r).then((c) => Ti(c.status) ? c.data ? n(c.data) : c.status === Mi ? n(null) : l(new ya()) : l(new Ei(c.status))).catch((c) => Ss(c) ? l(new Ks(c, c.config?.url)) : Vs(c) ? l(new Ds(c, o, i, c)) : $i(c) ? l(new Bi(c, o, i, c)) : Ts(c) ? l(new Es(c, c)) : l(new ya(c)));
6741
+ e().put(ri(t, s), JSON.stringify(a), r).then((c) => Ti(c.status) ? c.data ? n(c.data) : c.status === Mi ? n(null) : l(new Ya()) : l(new Ei(c.status))).catch((c) => Ss(c) ? l(new Ks(c, c.config?.url)) : Vs(c) ? l(new Ds(c, o, i, c)) : $i(c) ? l(new Bi(c, o, i, c)) : Ts(c) ? l(new Es(c, c)) : l(new Ya(c)));
6734
6742
  }), Hi = "/adm/v1/user", Wi = "user", Od = (e, a) => gs(e, a, Hi, {}, xe, Wi), sv = (e, a, t) => _s(e, Hi, {}, a, t, xe, Wi), iv = (e) => ja({
6735
6743
  client: e,
6736
6744
  system: xe,
@@ -6826,7 +6834,7 @@ function Ls(e = "default", a) {
6826
6834
  i.hideLoader();
6827
6835
  }
6828
6836
  }, { addToCachedAuthors: Y, fetchCachedAuthors: b } = ni(), { addToCachedKeywords: y, fetchCachedKeywords: D } = ji(), { addToCachedUsers: x, fetchCachedUsers: $ } = jd(), N = async (z, L) => {
6829
- const { cachedExtSystemId: W } = ba();
6837
+ const { cachedExtSystemId: W } = xa();
6830
6838
  g.value || V(), i.toggleSelectedByIndex(z.index), i.setActiveByIndex(z.index), gr.value = !0;
6831
6839
  try {
6832
6840
  const R = await Ht(t, s, z.assetId);
@@ -6969,7 +6977,7 @@ const Gt = "data:image/jpeg;base64,/9j/4QZGRXhpZgAATU0AKgAAAAgADAEAAAMAAAABCgAAA
6969
6977
  title: i.value.titles[c] || ""
6970
6978
  }, null, 8, bv))), 128))
6971
6979
  ], 2)), [
6972
- [Xa, i.value.icons.length > 0]
6980
+ [Aa, i.value.icons.length > 0]
6973
6981
  ]);
6974
6982
  }
6975
6983
  }), xv = ["src", "width", "height"], Cv = {
@@ -7778,9 +7786,9 @@ const sg = /* @__PURE__ */ H({
7778
7786
  return {
7779
7787
  mapToValueObject: i,
7780
7788
  fetchItems: async (p, q, w) => r(await l(p, q, w)),
7781
- fetchItemsByIds: async (p) => r(await Ya(a, e, p)),
7789
+ fetchItemsByIds: async (p) => r(await Xa(a, e, p)),
7782
7790
  fetchItemsMinimal: async (p, q, w) => n(await l(p, q, w)),
7783
- fetchItemsMinimalByIds: async (p) => n(await Ya(a, e, p)),
7791
+ fetchItemsMinimalByIds: async (p) => n(await Xa(a, e, p)),
7784
7792
  fetchItemsLegacy: async (p, q) => r(await Gn(a, e, p, q)),
7785
7793
  fetchItemsMinimalLegacy: async (p, q) => n(await Gn(a, e, p, q))
7786
7794
  };
@@ -8523,7 +8531,7 @@ const bg = /* @__PURE__ */ H({
8523
8531
  const s = e, o = t, { t: i } = se(), { showAll: r, toggleForm: n } = Ag(), l = (q) => {
8524
8532
  const w = {};
8525
8533
  w[q.property] = q.value, o("update:modelValue", { ...s.modelValue, ...w }), o("anyChange");
8526
- }, c = k(() => s.elements.slice(0, s.pinnedCount)), f = k(() => s.elements.slice(s.pinnedCount)), V = k(() => r.value ? i("common.damImage.asset.detail.metadataToggle.show") : i("common.damImage.asset.detail.metadataToggle.hide")), g = k(() => r.value ? "mdi-minus" : "mdi-plus"), h = k(() => s.elements.length > s.pinnedCount), F = Aa({ $scope: s.validationScope });
8534
+ }, c = k(() => s.elements.slice(0, s.pinnedCount)), f = k(() => s.elements.slice(s.pinnedCount)), V = k(() => r.value ? i("common.damImage.asset.detail.metadataToggle.show") : i("common.damImage.asset.detail.metadataToggle.hide")), g = k(() => r.value ? "mdi-minus" : "mdi-plus"), h = k(() => s.elements.length > s.pinnedCount), F = ba({ $scope: s.validationScope });
8527
8535
  return a({
8528
8536
  validate: () => F.value.$validate()
8529
8537
  }), (q, w) => (v(), S(ge, null, [
@@ -8590,7 +8598,7 @@ const bg = /* @__PURE__ */ H({
8590
8598
  _: 2
8591
8599
  }, 1024))), 128))
8592
8600
  ], 512), [
8593
- [Xa, d(r)]
8601
+ [Aa, d(r)]
8594
8602
  ]),
8595
8603
  h.value ? (v(), C(te, {
8596
8604
  key: 0,
@@ -8643,7 +8651,7 @@ function iu(e, a, t) {
8643
8651
  }
8644
8652
  } : {});
8645
8653
  return {
8646
- v$: Aa(r, { image: e }, { $scope: Ci })
8654
+ v$: ba(r, { image: e }, { $scope: Ci })
8647
8655
  };
8648
8656
  }
8649
8657
  const qn = /* @__PURE__ */ H({
@@ -10570,7 +10578,7 @@ function gF(e, a = void 0) {
10570
10578
  }
10571
10579
  }));
10572
10580
  return {
10573
- v$: Aa(t, { author: e }, { $scope: a })
10581
+ v$: ba(t, { author: e }, { $scope: a })
10574
10582
  };
10575
10583
  }
10576
10584
  function FF() {
@@ -10823,7 +10831,7 @@ const pF = /* @__PURE__ */ H({
10823
10831
  // eslint-disable-next-line vue/no-ref-object-reactivity-loss
10824
10832
  required: f(c.value)
10825
10833
  }
10826
- }, g = Aa(V, { modelValueComputed: o }, { $scope: t.validationScope }), { fetchItemsMinimal: h } = gn(t.extSystem), { filterData: F, filterConfig: p } = Zd();
10834
+ }, g = ba(V, { modelValueComputed: o }, { $scope: t.validationScope }), { fetchItemsMinimal: h } = gn(t.extSystem), { filterData: F, filterConfig: p } = Zd();
10827
10835
  rt(Ka, p), rt(Da, F);
10828
10836
  const q = async (B) => {
10829
10837
  B && (o.value.includes(B) || (o.value = [...o.value, B]));
@@ -10974,7 +10982,7 @@ const pF = /* @__PURE__ */ H({
10974
10982
  onOnSuccess: Y
10975
10983
  }, null, 8, ["ext-system", "initial-value", "disabled"])
10976
10984
  ], 512), [
10977
- [Xa, !e.disabled]
10985
+ [Aa, !e.disabled]
10978
10986
  ])
10979
10987
  ]),
10980
10988
  !e.disabled && e.authorConflicts && e.authorConflicts.length > 0 ? (v(), S("div", qF, [
@@ -11091,7 +11099,7 @@ const bF = { class: "d-flex" }, xF = /* @__PURE__ */ H({
11091
11099
  modelValueComputed: {
11092
11100
  required: c(l)
11093
11101
  }
11094
- }, V = Aa(f, { modelValueComputed: o }, { $scope: t.validationScope }), { damClient: g } = Me(), { getDamConfigExtSystem: h } = nt(), F = h(t.extSystem);
11102
+ }, V = ba(f, { modelValueComputed: o }, { $scope: t.validationScope }), { damClient: g } = Me(), { getDamConfigExtSystem: h } = nt(), F = h(t.extSystem);
11095
11103
  if (_(F))
11096
11104
  throw new Error("KeywordRemoteAutocompleteWithCached: Ext system must be initialised.");
11097
11105
  const { fetchItemsMinimal: p } = vn(t.extSystem), { filterData: q, filterConfig: w } = Jd();
@@ -11831,7 +11839,7 @@ const bF = { class: "d-flex" }, xF = /* @__PURE__ */ H({
11831
11839
  ]),
11832
11840
  _: 3
11833
11841
  }, 8, ["loading", "onClick"])), [
11834
- [Xa, d(F).hasNextPage || d(h)],
11842
+ [Aa, d(F).hasNextPage || d(h)],
11835
11843
  [Uo, ee]
11836
11844
  ])
11837
11845
  ])
@@ -12338,7 +12346,7 @@ const xn = /* @__PURE__ */ H({
12338
12346
  configName: { default: "default" }
12339
12347
  },
12340
12348
  setup(e) {
12341
- const a = e, { t } = se(), s = Bt(), { asset: o, updateUploadStore: i, mainFileSingleUse: r } = dt(s), n = zt(), l = T(!1), { showRecordWas: c, showValidationError: f, showErrorsDefault: V } = Ze(), g = Aa({ $scope: za, $stopPropagation: !0 }), { damClient: h, endPointAsset: F } = Me(), p = async () => {
12349
+ const a = e, { t } = se(), s = Bt(), { asset: o, updateUploadStore: i, mainFileSingleUse: r } = dt(s), n = zt(), l = T(!1), { showRecordWas: c, showValidationError: f, showErrorsDefault: V } = Ze(), g = ba({ $scope: za, $stopPropagation: !0 }), { damClient: h, endPointAsset: F } = Me(), p = async () => {
12342
12350
  if (!ne(o.value)) {
12343
12351
  if (l.value = !0, g.value.$touch(), g.value.$invalid) {
12344
12352
  f(), l.value = !1;
@@ -15491,7 +15499,7 @@ async function Eu(e, a, t, s, o) {
15491
15499
  });
15492
15500
  });
15493
15501
  const n = /* @__PURE__ */ new Map();
15494
- return r.size > 0 && (await Ya(t, s, [...r])).forEach((f) => {
15502
+ return r.size > 0 && (await Xa(t, s, [...r])).forEach((f) => {
15495
15503
  n.set(f.id, f.name);
15496
15504
  }), e.filter(
15497
15505
  (c) => !ne(c.assetId) && !ne(c.fileId)
@@ -15569,7 +15577,7 @@ const Zi = Ps("commonImageStore", () => {
15569
15577
  },
15570
15578
  emits: ["onDrop", "onFilesInput", "onApply"],
15571
15579
  setup(e, { emit: a }) {
15572
- const t = e, s = a, { uploadQueueDialog: o, uploadQueueSidebar: i, toggleUploadQueueSidebar: r } = di(), n = Zi(), { maxPosition: l } = dt(n), c = zt(), f = k(() => c.getQueueTotalCount(t.queueKey)), V = k(() => c.getQueueItems(t.queueKey)), g = k(() => c.getQueueProcessedCount(t.queueKey)), h = k(() => f.value > g.value), F = k(() => f.value === g.value), { t: p } = se(), { toolbarColor: q } = Ri(), { mdAndDown: w } = Ta(), X = Aa({ $stopPropagation: !0 }), { showRecordWas: K, showValidationError: Y, showErrorsDefault: b } = Ze(), { damClient: y, endPointAsset: D, customUploadMetadataToImageMap: x } = Me(), $ = T(!1), N = T(!1), B = async () => {
15580
+ const t = e, s = a, { uploadQueueDialog: o, uploadQueueSidebar: i, toggleUploadQueueSidebar: r } = di(), n = Zi(), { maxPosition: l } = dt(n), c = zt(), f = k(() => c.getQueueTotalCount(t.queueKey)), V = k(() => c.getQueueItems(t.queueKey)), g = k(() => c.getQueueProcessedCount(t.queueKey)), h = k(() => f.value > g.value), F = k(() => f.value === g.value), { t: p } = se(), { toolbarColor: q } = Ri(), { mdAndDown: w } = Ta(), X = ba({ $stopPropagation: !0 }), { showRecordWas: K, showValidationError: Y, showErrorsDefault: b } = Ze(), { damClient: y, endPointAsset: D, customUploadMetadataToImageMap: x } = Me(), $ = T(!1), N = T(!1), B = async () => {
15573
15581
  c.stopUpload(t.queueKey), o.value = null;
15574
15582
  }, U = async () => {
15575
15583
  const J = Ft(V.value);
@@ -15666,7 +15674,7 @@ const Zi = Ps("commonImageStore", () => {
15666
15674
  vertical: "",
15667
15675
  class: "mx-4 my-2"
15668
15676
  }, null, 512), [
15669
- [Xa, h.value]
15677
+ [Aa, h.value]
15670
15678
  ]),
15671
15679
  F.value ? (v(), C(G, {
15672
15680
  key: 0,
@@ -16026,7 +16034,7 @@ const Zi = Ps("commonImageStore", () => {
16026
16034
  ]),
16027
16035
  _: 1
16028
16036
  }, 8, ["loading", "onClick"])), [
16029
- [Xa, d(r).hasNextPage || d(i)],
16037
+ [Aa, d(r).hasNextPage || d(i)],
16030
16038
  [Uo, R]
16031
16039
  ])
16032
16040
  ])
@@ -17001,7 +17009,7 @@ const Nq = ["data-id"], Oq = { class: "a-sortable-nested-widget__nested" }, jq =
17001
17009
  ]),
17002
17010
  _: 3
17003
17011
  }, 8, ["loading"])), [
17004
- [Xa, x.value || e.loading],
17012
+ [Aa, x.value || e.loading],
17005
17013
  [
17006
17014
  Uo,
17007
17015
  $,
@@ -17077,20 +17085,20 @@ async function p7(e, a) {
17077
17085
  }
17078
17086
  return s;
17079
17087
  }
17080
- const ha = T(void 0);
17088
+ const qa = T(void 0);
17081
17089
  function h7(e) {
17082
- ha.value = e;
17090
+ qa.value = e;
17083
17091
  }
17084
17092
  function zs(e = "default") {
17085
- if (_(ha.value) || _(ha.value.configs) || _(ha.value.configs[e]))
17093
+ if (_(qa.value) || _(qa.value.configs) || _(qa.value.configs[e]))
17086
17094
  throw new Error("Composable can't be used without properly configured common admin.");
17087
17095
  return {
17088
- imageClient: ha.value.configs[e].imageClient,
17089
- previewDomain: ha.value.configs[e].previewDomain,
17090
- previewDomainOriginal: ha.value.configs[e].previewDomainOriginal,
17091
- imageWidth: ha.value.configs[e].width,
17092
- imageHeight: ha.value.configs[e].height,
17093
- imageApi: ha.value.configs[e].imageApi ? ha.value.configs[e].imageApi : {
17096
+ imageClient: qa.value.configs[e].imageClient,
17097
+ previewDomain: qa.value.configs[e].previewDomain,
17098
+ previewDomainOriginal: qa.value.configs[e].previewDomainOriginal,
17099
+ imageWidth: qa.value.configs[e].width,
17100
+ imageHeight: qa.value.configs[e].height,
17101
+ imageApi: qa.value.configs[e].imageApi ? qa.value.configs[e].imageApi : {
17094
17102
  fetchImage: f7,
17095
17103
  createImage: V7,
17096
17104
  updateImage: v7,
@@ -17277,7 +17285,7 @@ const q7 = {
17277
17285
  },
17278
17286
  emits: ["editAsset", "onConfirm", "onClose"],
17279
17287
  setup(e, { expose: a, emit: t }) {
17280
- const s = e, o = t, { t: i } = se(), { mdAndDown: r } = Ta(), n = hn(), { detail: l } = dt(n), c = Bt(), { asset: f, authorConflicts: V } = dt(c), { cachedExtSystemId: g } = ba(), h = k(() => is(l.value) ? l.value.damMedia.assetType === Kn.Video ? ie.Video : ie.Audio : Qt(l.value) ? ie.Image : null), F = k(() => !s.showDamAuthors), p = k(() => {
17288
+ const s = e, o = t, { t: i } = se(), { mdAndDown: r } = Ta(), n = hn(), { detail: l } = dt(n), c = Bt(), { asset: f, authorConflicts: V } = dt(c), { cachedExtSystemId: g } = xa(), h = k(() => is(l.value) ? l.value.damMedia.assetType === Kn.Video ? ie.Video : ie.Audio : Qt(l.value) ? ie.Image : null), F = k(() => !s.showDamAuthors), p = k(() => {
17281
17289
  if (!(!is(l.value) || ne(l.value.damMedia.imageFileId)))
17282
17290
  return {
17283
17291
  texts: {
@@ -17981,7 +17989,7 @@ const q7 = {
17981
17989
  },
17982
17990
  emits: ["onSave", "onSaveAndApply"],
17983
17991
  setup(e, { emit: a }) {
17984
- const t = e, s = a, { t: o } = se(), i = zt(), r = k(() => i.getQueueItems(t.queueKey)[0]?.canEditMetadata ?? !1), n = Aa({ $scope: za }), { showValidationError: l } = Ze(), c = async () => {
17992
+ const t = e, s = a, { t: o } = se(), i = zt(), r = k(() => i.getQueueItems(t.queueKey)[0]?.canEditMetadata ?? !1), n = ba({ $scope: za }), { showValidationError: l } = Ze(), c = async () => {
17985
17993
  if (n.value.$touch(), n.value.$invalid) {
17986
17994
  l();
17987
17995
  return;
@@ -18638,7 +18646,7 @@ const q7 = {
18638
18646
  x.setDetail(Ft(B.value)), I.value = !0;
18639
18647
  }, ee = () => {
18640
18648
  O.value = !0;
18641
- }, { cachedExtSystemId: ce } = ba(), me = T(!1), oe = async () => {
18649
+ }, { cachedExtSystemId: ce } = xa(), me = T(!1), oe = async () => {
18642
18650
  if (!n.value.enabled || _(s.collab) || s.collabStatus === Ct.Inactive)
18643
18651
  return Promise.resolve(!0);
18644
18652
  let ye = 0;
@@ -18728,7 +18736,7 @@ const q7 = {
18728
18736
  const ve = at(st);
18729
18737
  ke = ve.description, ze = ve.source;
18730
18738
  } else
18731
- sa(st.metadata.customData?.description) && (ke = st.metadata.customData.description.trim()), st.authors.length > 0 ? ze = (await Ya(
18739
+ sa(st.metadata.customData?.description) && (ke = st.metadata.customData.description.trim()), st.authors.length > 0 ? ze = (await Xa(
18732
18740
  Kt,
18733
18741
  $e.selectedSelectConfig.extSystem,
18734
18742
  st.authors
@@ -18782,7 +18790,7 @@ const q7 = {
18782
18790
  z.value = !0;
18783
18791
  try {
18784
18792
  if (r.value && Te.value && Te.value.authors.length > 0) {
18785
- const ke = await Ya(
18793
+ const ke = await Xa(
18786
18794
  Kt,
18787
18795
  $e.selectedSelectConfig.extSystem,
18788
18796
  Te.value.authors
@@ -18830,7 +18838,7 @@ const q7 = {
18830
18838
  null
18831
18839
  ), Pt = () => {
18832
18840
  Dt.value?.confirm();
18833
- }, xa = () => {
18841
+ }, Ca = () => {
18834
18842
  g();
18835
18843
  }, Ba = k(() => I.value || O.value || W.value || N.value === s.queueKey), Fs = k(() => !ne(f.value));
18836
18844
  return Xe(
@@ -18870,7 +18878,7 @@ const q7 = {
18870
18878
  ])) : E("", !0),
18871
18879
  P("div", py, [
18872
18880
  Fs.value && e.collab ? (v(), S("div", hy, [
18873
- u(qa, {
18881
+ u(ya, {
18874
18882
  id: f.value,
18875
18883
  users: e.collab.cachedUsers
18876
18884
  }, null, 8, ["id", "users"])
@@ -18923,7 +18931,7 @@ const q7 = {
18923
18931
  size: "x-small",
18924
18932
  icon: "",
18925
18933
  disabled: Fs.value,
18926
- onClick: Z(xa, ["stop"])
18934
+ onClick: Z(Ca, ["stop"])
18927
18935
  }, {
18928
18936
  default: m(() => [
18929
18937
  u(ae, { icon: "mdi-dots-horizontal" }),
@@ -19387,7 +19395,7 @@ const q7 = {
19387
19395
  ]),
19388
19396
  _: 3
19389
19397
  }, 8, ["loading", "onClick"])), [
19390
- [Xa, d(F).hasNextPage || d(h)],
19398
+ [Aa, d(F).hasNextPage || d(h)],
19391
19399
  [Uo, de]
19392
19400
  ])
19393
19401
  ])
@@ -19524,7 +19532,7 @@ const q7 = {
19524
19532
  ot.setDetail(Ft(B.value)), I.value = !0;
19525
19533
  }, ee = () => {
19526
19534
  O.value = !0;
19527
- }, { cachedExtSystemId: ce } = ba(), me = T(!1), oe = async () => {
19535
+ }, { cachedExtSystemId: ce } = xa(), me = T(!1), oe = async () => {
19528
19536
  if (!n.value.enabled || _(s.collab) || s.collabStatus === Ct.Inactive)
19529
19537
  return Promise.resolve(!0);
19530
19538
  let ve = 0;
@@ -19691,7 +19699,7 @@ const q7 = {
19691
19699
  I.value = !0;
19692
19700
  try {
19693
19701
  const da = await Ht(bt, ue, mt.id);
19694
- sa(da.metadata.customData?.description) && (Ie = da.metadata.customData.description.trim()), da.authors.length > 0 ? We = (await Ya(
19702
+ sa(da.metadata.customData?.description) && (Ie = da.metadata.customData.description.trim()), da.authors.length > 0 ? We = (await Xa(
19695
19703
  bt,
19696
19704
  Vt.selectedSelectConfig.extSystem,
19697
19705
  da.authors
@@ -19757,7 +19765,7 @@ const q7 = {
19757
19765
  z.value = !0;
19758
19766
  try {
19759
19767
  if (N.value && qt.value && qt.value.authors.length > 0) {
19760
- const Ie = await Ya(
19768
+ const Ie = await Xa(
19761
19769
  bt,
19762
19770
  Vt.selectedSelectConfig.extSystem,
19763
19771
  qt.value.authors
@@ -19796,7 +19804,7 @@ const q7 = {
19796
19804
  } else Qt(Fe.value) && He(Fe.value, null, !0);
19797
19805
  }, Dt = (ve) => {
19798
19806
  ve[0] && (ne(i.value) || (ve[0].id = i.value), ot.setDetail(ve[0]), I.value = !0, s.expandMetadata && kt());
19799
- }, Pt = T(null), xa = () => {
19807
+ }, Pt = T(null), Ca = () => {
19800
19808
  if (!ze.value) {
19801
19809
  if (g(), !s.expandOptions) {
19802
19810
  U.value = !0;
@@ -19842,7 +19850,7 @@ const q7 = {
19842
19850
  ])) : E("", !0),
19843
19851
  P("div", Hy, [
19844
19852
  ze.value && e.collab ? (v(), S("div", Wy, [
19845
- u(qa, {
19853
+ u(ya, {
19846
19854
  id: f.value,
19847
19855
  users: e.collab.cachedUsers
19848
19856
  }, null, 8, ["id", "users"])
@@ -20035,7 +20043,7 @@ const q7 = {
20035
20043
  accept: d(Ae),
20036
20044
  "max-sizes": d(qe),
20037
20045
  "hide-text": R.value || ze.value,
20038
- onOnClick: xa,
20046
+ onOnClick: Ca,
20039
20047
  onOnDrop: Re
20040
20048
  }, null, 8, ["accept", "max-sizes", "hide-text"])
20041
20049
  ]),
@@ -20367,7 +20375,7 @@ const q7 = {
20367
20375
  },
20368
20376
  emits: ["editAsset", "removeItem", "moveUp", "moveDown"],
20369
20377
  setup(e, { emit: a }) {
20370
- const t = e, s = a, o = Zi(), { t: i } = se(), { mdAndDown: r } = Ta(), { cachedExtSystemId: n } = ba(), l = T([]), c = k(() => o.images[t.index]), f = k(() => ne(c.value) || _(c.value) ? !0 : !(c.value.showDamAuthors && t.authorEnabled)), { v$: V } = iu(c, f), g = () => {
20378
+ const t = e, s = a, o = Zi(), { t: i } = se(), { mdAndDown: r } = Ta(), { cachedExtSystemId: n } = xa(), l = T([]), c = k(() => o.images[t.index]), f = k(() => ne(c.value) || _(c.value) ? !0 : !(c.value.showDamAuthors && t.authorEnabled)), { v$: V } = iu(c, f), g = () => {
20371
20379
  ne(c.value) || _(c.value) || s("editAsset", c.value.dam.damId);
20372
20380
  }, h = () => {
20373
20381
  s("removeItem", t.index);
@@ -20643,7 +20651,7 @@ const q7 = {
20643
20651
  }
20644
20652
  }), IY = (e, a, t = "", s = {}, o = null, i, r, n = {}) => new Promise((l, c) => {
20645
20653
  const f = { method: a };
20646
- t !== "" && (f.url = ri(t, s)), ne(o) || (f.data = JSON.stringify(o)), e().request({ ...n, ...f }).then((V) => Ti(V.status) ? V.data ? l(V.data) : V.status === Mi ? l(null) : c(new ya()) : c(new Ei(V.status))).catch((V) => Ss(V) ? c(new Ks(V, V.config?.url)) : Vs(V) ? c(new Ds(V, i, r, V)) : $i(V) ? c(new Bi(V, i, r, V)) : Ts(V) ? c(new Es(V, V)) : c(new ya(V)));
20654
+ t !== "" && (f.url = ri(t, s)), ne(o) || (f.data = JSON.stringify(o)), e().request({ ...n, ...f }).then((V) => Ti(V.status) ? V.data ? l(V.data) : V.status === Mi ? l(null) : c(new Ya()) : c(new Ei(V.status))).catch((V) => Ss(V) ? c(new Ks(V, V.config?.url)) : Vs(V) ? c(new Ds(V, i, r, V)) : $i(V) ? c(new Bi(V, i, r, V)) : Ts(V) ? c(new Es(V, V)) : c(new Ya(V)));
20647
20655
  }), Pu = 20, wY = async (e, a, t) => {
20648
20656
  const s = Array.from(t.entries()).flatMap(([i, r]) => Lu(r, Pu).map(
20649
20657
  (n) => _u(
@@ -20765,7 +20773,7 @@ const q7 = {
20765
20773
  } finally {
20766
20774
  w.value = !1;
20767
20775
  }
20768
- }, y = zt(), D = k(() => y.getQueue(s.queueKey)), { cachedExtSystemId: x } = ba(), { uploadQueueDialog: $ } = di(), N = (ue) => {
20776
+ }, y = zt(), D = k(() => y.getQueue(s.queueKey)), { cachedExtSystemId: x } = xa(), { uploadQueueDialog: $ } = di(), N = (ue) => {
20769
20777
  const pe = r.value;
20770
20778
  _(pe) || (x.value = pe.extSystem, Ke.value?.check(ue), $.value = s.queueKey);
20771
20779
  }, B = (ue) => {
@@ -20818,7 +20826,7 @@ const q7 = {
20818
20826
  Be.authorIds.forEach((vt) => {
20819
20827
  at.add(vt);
20820
20828
  });
20821
- }), at.size > 0 && (await Ya(
20829
+ }), at.size > 0 && (await Xa(
20822
20830
  J,
20823
20831
  pe.selectedSelectConfig.extSystem,
20824
20832
  [...at]
@@ -20925,14 +20933,14 @@ const q7 = {
20925
20933
  ), $.value = null, y.stopUpload(s.queueKey));
20926
20934
  }, Q = () => {
20927
20935
  i.value = !0;
20928
- }, Ce = Aa({ $scope: Ci }), { getDamConfigExtSystem: qe, getExtSystemByLicence: Ae } = nt(J), He = k(() => !!qe(x.value)?.[ie.Image]?.authors?.enabled), Ve = async () => {
20936
+ }, Ce = ba({ $scope: Ci }), { getDamConfigExtSystem: qe, getExtSystemByLicence: Ae } = nt(J), He = k(() => !!qe(x.value)?.[ie.Image]?.authors?.enabled), Ve = async () => {
20929
20937
  if (Ce.value.$touch(), Ce.value.$invalid)
20930
20938
  return V(), !1;
20931
20939
  try {
20932
20940
  const ue = [], pe = Ft(K.value);
20933
20941
  for (const Be of pe)
20934
20942
  if (He.value && Be.showDamAuthors && Be.assetId && ue.push({ id: Be.assetId, authors: Be.damAuthors }), He.value && Be.showDamAuthors && Be.damAuthors.length > 0) {
20935
- const vt = await Ya(
20943
+ const vt = await Xa(
20936
20944
  J,
20937
20945
  x.value,
20938
20946
  Be.damAuthors
@@ -21155,7 +21163,7 @@ const q7 = {
21155
21163
  getDamConfigAssetCustomFormElements: c,
21156
21164
  getOrLoadDamConfigExtSystemByLicence: f,
21157
21165
  getOrLoadDamConfigExtSystemByLicences: V
21158
- } = nt(r), g = Et(void 0), { cachedExtSystemId: h } = ba();
21166
+ } = nt(r), g = Et(void 0), { cachedExtSystemId: h } = xa();
21159
21167
  ht(async () => {
21160
21168
  const q = Za();
21161
21169
  if (g.value = await f(s.uploadLicence), _(g.value)) {
@@ -21264,13 +21272,13 @@ function zY() {
21264
21272
  const f = l[c];
21265
21273
  (n || _(f.texts.source) || f.texts.source.length === 0) && (f.texts.source = r);
21266
21274
  }
21267
- }, { damClient: s } = Me(), { cachedExtSystemId: o } = ba();
21275
+ }, { damClient: s } = Me(), { cachedExtSystemId: o } = xa();
21268
21276
  return {
21269
21277
  replaceEmptyDescription: a,
21270
21278
  replaceEmptySource: t,
21271
21279
  replaceEmptyAuthors: async (r, n = !1) => {
21272
21280
  const l = /* @__PURE__ */ new Map(), c = [];
21273
- (await Ya(s, o.value, [...r])).forEach((g) => {
21281
+ (await Xa(s, o.value, [...r])).forEach((g) => {
21274
21282
  l.set(g.id, g.name);
21275
21283
  }), r.forEach((g) => {
21276
21284
  const h = l.get(g);
@@ -21291,12 +21299,12 @@ const RY = { class: "w-100" }, UY = { class: "d-flex" }, NY = { class: "d-flex"
21291
21299
  o(a.value.description, Y), g.value && K.value ? r(a.value.authors, Y) : i(a.value.source, Y);
21292
21300
  }, c = () => {
21293
21301
  a.value.description = "", g.value && K.value ? a.value.authors = [] : a.value.source = "";
21294
- }, { cachedExtSystemId: f } = ba(), { getDamConfigExtSystem: V } = nt(), g = k(() => !!V(f.value)?.[ie.Image]?.authors?.enabled), { descriptionValidation: h, sourceValidation: F, sourceLabel: p } = Me(), q = Ms(), w = k(() => ({
21302
+ }, { cachedExtSystemId: f } = xa(), { getDamConfigExtSystem: V } = nt(), g = k(() => !!V(f.value)?.[ie.Image]?.authors?.enabled), { descriptionValidation: h, sourceValidation: F, sourceLabel: p } = Me(), q = Ms(), w = k(() => ({
21295
21303
  texts: {
21296
21304
  description: ii(h, q),
21297
21305
  source: ii(F, q)
21298
21306
  }
21299
- })), X = Aa(w, { texts: a }, { $scope: !1 }), K = k(() => s.value.length === 0 ? !1 : s.value.length && s.value.some((Y) => Y?.showDamAuthors));
21307
+ })), X = ba(w, { texts: a }, { $scope: !1 }), K = k(() => s.value.length === 0 ? !1 : s.value.length && s.value.some((Y) => Y?.showDamAuthors));
21300
21308
  return (Y, b) => (v(), S("div", RY, [
21301
21309
  u(he, {
21302
21310
  density: "comfortable",
@@ -21555,7 +21563,7 @@ const RY = { class: "w-100" }, UY = { class: "d-flex" }, NY = { class: "d-flex"
21555
21563
  description: ii(q, x),
21556
21564
  source: ii(w, x)
21557
21565
  }
21558
- }, N = Aa($, { meta: i }, { $stopPropagation: !0 }), B = async () => {
21566
+ }, N = ba($, { meta: i }, { $stopPropagation: !0 }), B = async () => {
21559
21567
  if (c.value = !0, l.value = !0, o.value = o.value.trim(), o.value.startsWith("http")) {
21560
21568
  const W = y(o.value);
21561
21569
  sa(W) && (o.value = W);
@@ -21853,6 +21861,7 @@ function xD(e = "", a = "user") {
21853
21861
  lastName: ""
21854
21862
  },
21855
21863
  enabled: !1,
21864
+ locale: null,
21856
21865
  permissionGroups: [],
21857
21866
  permissions: {},
21858
21867
  resolvedPermissions: {},
@@ -21964,7 +21973,7 @@ const El = (e, a = void 0) => {
21964
21973
  }
21965
21974
  return p.status === Mi ? Promise.resolve([]) : F;
21966
21975
  } catch (p) {
21967
- return Ss(p) ? Promise.reject(new Ks(p, p.config?.url)) : Vs(p) ? Promise.reject(new Ds(p, n, l, p)) : $i(p) ? Promise.reject(new Bi(p, n, l, p)) : Ts(p) ? Promise.reject(new Es(p, p)) : Promise.reject(new ya(p));
21976
+ return Ss(p) ? Promise.reject(new Ks(p, p.config?.url)) : Vs(p) ? Promise.reject(new Ds(p, n, l, p)) : $i(p) ? Promise.reject(new Bi(p, n, l, p)) : Ts(p) ? Promise.reject(new Es(p, p)) : Promise.reject(new Ya(p));
21968
21977
  }
21969
21978
  };
21970
21979
  function SD() {
@@ -23626,7 +23635,7 @@ export {
23626
23635
  jc as ACardLoader,
23627
23636
  Xd as AChipNoLink,
23628
23637
  oo as ACollabCountdown,
23629
- qa as ACollabLockedByUser,
23638
+ ya as ACollabLockedByUser,
23630
23639
  kK as ACollabManagement,
23631
23640
  Do as ACopyText,
23632
23641
  rK as ACreateDialog,
@@ -23710,7 +23719,7 @@ export {
23710
23719
  Es as AnzuApiForbiddenOperationError,
23711
23720
  Ei as AnzuApiResponseCodeError,
23712
23721
  Ds as AnzuApiValidationError,
23713
- ya as AnzuFatalError,
23722
+ Ya as AnzuFatalError,
23714
23723
  ED as AnzuSystemsCommonAdmin,
23715
23724
  Pa as AssetFileFailReason,
23716
23725
  rD as AssetFileLinkType,