@anzusystems/common-admin 1.47.0-beta.6 → 1.47.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  var Vm = Object.defineProperty;
2
2
  var pm = (t, a, e) => a in t ? Vm(t, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[a] = e;
3
3
  var ir = (t, a, e) => pm(t, typeof a != "symbol" ? a + "" : a, e);
4
- import { defineComponent as W, computed as _, openBlock as q, createBlock as E, withCtx as f, createTextVNode as B, toDisplayString as I, createElementBlock as P, createVNode as m, normalizeClass as he, createCommentVNode as N, renderSlot as ue, createElementVNode as L, resolveComponent as $e, withModifiers as Z, withDirectives as Ht, vShow as Oa, isProxy as Td, toRaw as Yt, isRef as Es, unref as V, Fragment as Fe, normalizeStyle as Mt, shallowRef as ft, watch as Ye, ref as D, reactive as oa, inject as je, createSlots as na, provide as Ei, renderList as He, onMounted as At, TransitionGroup as Ed, isVNode as vm, mergeModels as Wt, useModel as ba, toRefs as ri, vModelText as wl, nextTick as Gt, pushScopeId as hm, popScopeId as Fm, withKeys as Ma, mergeProps as Rt, onUnmounted as Pn, readonly as Is, createStaticVNode as Md, resolveDynamicComponent as Wr, setBlockTracking as kl, onBeforeUnmount as Gr, toRef as Zr, Teleport as gm, normalizeProps as qm, guardReactiveProps as Ym } from "vue";
4
+ import { defineComponent as W, computed as _, openBlock as q, createBlock as E, withCtx as f, createTextVNode as B, toDisplayString as I, createElementBlock as P, createVNode as m, normalizeClass as he, createCommentVNode as N, renderSlot as ue, createElementVNode as L, resolveComponent as $e, withModifiers as Z, withDirectives as Ht, vShow as Oa, isProxy as Td, toRaw as Xt, isRef as Es, unref as V, Fragment as Fe, normalizeStyle as Mt, shallowRef as ft, watch as Ye, ref as D, reactive as oa, inject as je, createSlots as na, provide as Ei, renderList as He, onMounted as ht, TransitionGroup as Ed, isVNode as vm, mergeModels as Wt, useModel as ba, toRefs as ri, vModelText as wl, nextTick as Gt, pushScopeId as hm, popScopeId as Fm, withKeys as Ma, mergeProps as Rt, onUnmounted as Pn, readonly as Is, createStaticVNode as Md, resolveDynamicComponent as Wr, setBlockTracking as kl, onBeforeUnmount as Gr, toRef as Zr, Teleport as gm, normalizeProps as qm, guardReactiveProps as Ym } from "vue";
5
5
  import { useI18n as ee, createI18n as Xm } from "vue-i18n";
6
6
  import { VChip as Zt } from "vuetify/lib/components/VChip/index.mjs";
7
7
  import { VRow as ge, VCol as le, VSpacer as rt } from "vuetify/lib/components/VGrid/index.mjs";
@@ -174,7 +174,7 @@ const Qm = { key: 1 }, Ud = /* @__PURE__ */ W({
174
174
  }, ao = (t) => typeof t == "object" && !Ze(t) && !ae(t), so = (t) => ao(t) ? Object.keys(t).length === 0 : !1, nf = (t) => Ze(t) && t.length === 0, vn = (t) => ae(t) || R(t) || t === "" || t === 0 || nf(t) || so(t), xe = (t) => {
175
175
  if (typeof structuredClone == "function")
176
176
  try {
177
- return Td(t) ? structuredClone(Yt(t)) : Es(t) ? structuredClone(V(t)) : structuredClone(t);
177
+ return Td(t) ? structuredClone(Xt(t)) : Es(t) ? structuredClone(V(t)) : structuredClone(t);
178
178
  } catch {
179
179
  return JSON.parse(JSON.stringify(t));
180
180
  }
@@ -413,7 +413,7 @@ function io() {
413
413
  Qd().emit({ room: s });
414
414
  let r = {};
415
415
  const o = ko.get(s);
416
- return o && (r = Yt(Object.fromEntries(o.entries())), ko.delete(s)), r;
416
+ return o && (r = Xt(Object.fromEntries(o.entries())), ko.delete(s)), r;
417
417
  }
418
418
  };
419
419
  }
@@ -1472,7 +1472,7 @@ const or = {
1472
1472
  function U() {
1473
1473
  i.value = i.value.filter((K) => K.state !== or.DESTROYED);
1474
1474
  }
1475
- return At(() => {
1475
+ return ht(() => {
1476
1476
  Mr.on("add", g), Mr.on("close", y);
1477
1477
  }), () => {
1478
1478
  let K;
@@ -1535,8 +1535,8 @@ const Qf = {
1535
1535
  missing: (t, a) => {
1536
1536
  Ml.includes(t) && console.warn(`Missing ${t} translation: ${a}`);
1537
1537
  }
1538
- }), cu = (t) => t instanceof Xt;
1539
- class Xt extends Error {
1538
+ }), cu = (t) => t instanceof At;
1539
+ class At extends Error {
1540
1540
  constructor(a, e = "") {
1541
1541
  super(e), this.name = "AnzuFatalError", this.cause = a, this.message = e;
1542
1542
  }
@@ -1841,7 +1841,7 @@ const MS = /* @__PURE__ */ W({
1841
1841
  },
1842
1842
  setup(t) {
1843
1843
  const a = t, { t: e } = ee(), s = D([]);
1844
- return At(async () => {
1844
+ return ht(async () => {
1845
1845
  if (a.configUrl && a.configUrl.length > 0)
1846
1846
  try {
1847
1847
  const { data: i } = await Am(a.configUrl).get().json();
@@ -2987,7 +2987,7 @@ function rD(t, a, e = ".") {
2987
2987
  return r(t), t;
2988
2988
  }
2989
2989
  const Cu = (t) => ao(t) && Object.hasOwn(t, "owners"), xu = (t) => Object.hasOwn(t, "createdBy"), Vs = (t, a, e = "") => so(a) ? t : df(e === "" ? t : e, a), ps = (t) => aV.includes(t), zt = (t, a, e = {}, s, i, r = {}) => new Promise((o, l) => {
2990
- t().get(Vs(a, e), r).then((n) => ps(n.status) ? n.data ? o(n.data) : n.status === za ? o(null) : l(new Xt()) : l(new Na(n.status))).catch((n) => La(n) ? l(new _a(n)) : Sa(n) ? l(new Da(n, s, i, n)) : Ua(n) ? l(new Ka(n, n)) : l(new Xt(n)));
2990
+ t().get(Vs(a, e), r).then((n) => ps(n.status) ? n.data ? o(n.data) : n.status === za ? o(null) : l(new At()) : l(new Na(n.status))).catch((n) => La(n) ? l(new _a(n)) : Sa(n) ? l(new Da(n, s, i, n)) : Ua(n) ? l(new Ka(n, n)) : l(new At(n)));
2991
2991
  }), kV = "ROLE_SUPER_ADMIN";
2992
2992
  function IV(t) {
2993
2993
  const a = wV(), e = (d) => d.split("_")[0], s = (d) => d.includes(kV), i = (d, c) => {
@@ -3050,10 +3050,19 @@ const _V = /* @__PURE__ */ W({
3050
3050
  subject: { default: void 0 }
3051
3051
  },
3052
3052
  setup(t) {
3053
- const a = t, e = (l) => l.split("_")[0], { can: s, useCurrentUser: i } = IV(e(a.permission)), { currentUser: r } = i(e(a.permission)), o = D(s(a.permission, a.subject));
3054
- return Ye(r, () => {
3055
- o.value = s(a.permission, a.subject);
3056
- }), (l, n) => o.value ? ue(l.$slots, "default", { key: 0 }) : N("", !0);
3053
+ const a = t, e = D(!1), s = _(() => a.permission.split("_")[0] || "");
3054
+ return ht(() => {
3055
+ const { can: i, useCurrentUser: r } = IV(s.value), { currentUser: o } = r(s.value);
3056
+ Ye(
3057
+ o,
3058
+ (l) => {
3059
+ R(l) || (e.value = i(a.permission, a.subject));
3060
+ },
3061
+ {
3062
+ immediate: !0
3063
+ }
3064
+ );
3065
+ }), (i, r) => e.value ? ue(i.$slots, "default", { key: 0 }) : N("", !0);
3057
3066
  }
3058
3067
  }), Gs = /* @__PURE__ */ W({
3059
3068
  __name: "ADatetime",
@@ -3331,7 +3340,7 @@ const ap = (t) => (hm("data-v-8b2f16cf"), t = t(), Fm(), t), sp = { class: "a-da
3331
3340
  const A = (U, K) => ae(U) ? K : K.set("date", U.getDate()).set("month", U.getMonth()).set("year", U.getFullYear()), X = (U, K) => ae(U) ? K : K.set("hour", U.hours).set("minute", U.minutes);
3332
3341
  Ye([c, d], ([U, K]) => {
3333
3342
  let O = null;
3334
- ae(u.value) ? ae(e.modelValue) ? O = Ee().hour(12).minute(0).second(0).millisecond(0) : O = Ee(e.modelValue, "YYYY-MM-DDTHH:mm:ss.SSSSSSZ") : O = u.value, O = X(U, O), O = A(K, O), !O.isSame(Yt(u.value)) && (u.value = O);
3343
+ ae(u.value) ? ae(e.modelValue) ? O = Ee().hour(12).minute(0).second(0).millisecond(0) : O = Ee(e.modelValue, "YYYY-MM-DDTHH:mm:ss.SSSSSSZ") : O = u.value, O = X(U, O), O = A(K, O), !O.isSame(Xt(u.value)) && (u.value = O);
3335
3344
  }), Ye(
3336
3345
  u,
3337
3346
  (U) => {
@@ -4010,7 +4019,7 @@ const hp = {
4010
4019
  };
4011
4020
  return Ye(u, (v, F) => {
4012
4021
  v !== F && (p.value = v, d.value = !1);
4013
- }), At(() => {
4022
+ }), ht(() => {
4014
4023
  c.value = "remote-switch-" + Date.now();
4015
4024
  }), (v, F) => (q(), P("div", gp, [
4016
4025
  m(Ri, {
@@ -4130,7 +4139,7 @@ const hp = {
4130
4139
  };
4131
4140
  return Ye(u, (v, F) => {
4132
4141
  v !== F && (p.value = v, d.value = !1);
4133
- }), At(() => {
4142
+ }), ht(() => {
4134
4143
  c.value = "a-remote-switch-" + Date.now();
4135
4144
  }), (v, F) => (q(), P("div", Yp, [
4136
4145
  m(ie, {
@@ -4863,7 +4872,7 @@ const vD = /* @__PURE__ */ W({
4863
4872
  o > 0 ? r.value = setTimeout(() => i.value--, 1e3) : s("done");
4864
4873
  },
4865
4874
  { immediate: !0 }
4866
- ), At(() => {
4875
+ ), ht(() => {
4867
4876
  i.value = e.seconds;
4868
4877
  }), Pn(() => {
4869
4878
  clearTimeout(r.value), r.value = void 0;
@@ -4916,7 +4925,7 @@ function Rp(t, a = !1, e = void 0, s = void 0, i = !1) {
4916
4925
  u.value = ce, c.value = d.on(G);
4917
4926
  }, Vt = (ce) => {
4918
4927
  b.value = ce, C.value = k.on(_e);
4919
- }, ht = (ce) => {
4928
+ }, Ft = (ce) => {
4920
4929
  j.value = ce, $.value = S.on(Q);
4921
4930
  };
4922
4931
  On(() => {
@@ -4964,7 +4973,7 @@ function Rp(t, a = !1, e = void 0, s = void 0, i = !1) {
4964
4973
  !Oe.value.enabled || R(r.value) || r.value.emit("approveRequestToTakeModeration", t);
4965
4974
  }, ke = () => {
4966
4975
  !Oe.value.enabled || R(r.value) || r.value.emit("rejectRequestToTakeModeration", t);
4967
- }, Ft = (ce) => {
4976
+ }, gt = (ce) => {
4968
4977
  !Oe.value.enabled || R(r.value) || r.value.emit("kickUserFromRoom", t, ce);
4969
4978
  }, ca = (ce) => {
4970
4979
  !Oe.value.enabled || R(r.value) || r.value.emit("transferModeration", t, ce);
@@ -5007,10 +5016,10 @@ function Rp(t, a = !1, e = void 0, s = void 0, i = !1) {
5007
5016
  addApprovedRequestToTakeModerationListener: Ve,
5008
5017
  addRejectedRequestToTakeModerationListener: se,
5009
5018
  enteredCollabRoom: hs,
5010
- kickUserFromRoom: Ft,
5019
+ kickUserFromRoom: gt,
5011
5020
  transferModeration: ca,
5012
5021
  addKickedFromRoomListener: Vt,
5013
- addCollabStartingListener: ht,
5022
+ addCollabStartingListener: Ft,
5014
5023
  fetchRoomInfo: Ue,
5015
5024
  collabRoomInfo: Ta,
5016
5025
  collabRoomLocks: ga,
@@ -5112,7 +5121,7 @@ const zp = { class: "ml-3" }, Lp = { class: "ml-1" }, hD = /* @__PURE__ */ W({
5112
5121
  F(x.value ?? 0);
5113
5122
  }, Ve = (se) => Math.ceil((6e4 - ((/* @__PURE__ */ new Date()).getTime() - se)) / 1e3);
5114
5123
  return (se, Ae) => {
5115
- const Vt = $e("ABtnSecondary"), ht = $e("ABtnIcon"), Oe = $e("ABtnTertiary"), pt = $e("ABtnPrimary");
5124
+ const Vt = $e("ABtnSecondary"), Ft = $e("ABtnIcon"), Oe = $e("ABtnTertiary"), pt = $e("ABtnPrimary");
5116
5125
  return q(), P("div", null, [
5117
5126
  B(" moderator: "),
5118
5127
  V(e).moderator ? (q(), E(Ut, {
@@ -5159,7 +5168,7 @@ const zp = { class: "ml-3" }, Lp = { class: "ml-1" }, hD = /* @__PURE__ */ W({
5159
5168
  ]),
5160
5169
  _: 1
5161
5170
  })) : N("", !0),
5162
- j.value ? (q(), E(ht, {
5171
+ j.value ? (q(), E(Ft, {
5163
5172
  key: 3,
5164
5173
  size: "small",
5165
5174
  onClick: fe
@@ -5339,7 +5348,7 @@ const zp = { class: "ml-3" }, Lp = { class: "ml-1" }, hD = /* @__PURE__ */ W({
5339
5348
  ]),
5340
5349
  _: 1
5341
5350
  }, 8, ["modelValue"]),
5342
- b.value ? (q(), E(ht, {
5351
+ b.value ? (q(), E(Ft, {
5343
5352
  key: 5,
5344
5353
  size: "small",
5345
5354
  onClick: me
@@ -7123,7 +7132,7 @@ const qv = { class: "text-center w-100 text-caption pb-1" }, ID = /* @__PURE__ *
7123
7132
  },
7124
7133
  setup(t) {
7125
7134
  const a = t;
7126
- return At(() => {
7135
+ return ht(() => {
7127
7136
  a.logoutUrl && (window.location.href = a.logoutUrl());
7128
7137
  }), (e, s) => (q(), P("div"));
7129
7138
  }
@@ -7564,7 +7573,7 @@ const Lv = (t) => {
7564
7573
  function H() {
7565
7574
  const C = [];
7566
7575
  for (const b of r.value.values())
7567
- C.push(Yt(b.asset));
7576
+ C.push(Xt(b.asset));
7568
7577
  return C;
7569
7578
  }
7570
7579
  function U(C) {
@@ -7696,8 +7705,8 @@ const Mu = (t) => ao(t) && Object.hasOwn(t, "totalCount"), $u = (t) => ao(t) &&
7696
7705
  const p = u.data;
7697
7706
  return $u(p) ? s.hasNextPage = u.data.hasNextPage : Mu(p) && (s.totalCount = p.totalCount), s.currentViewCount = u.data.data.length, n(u.data.data);
7698
7707
  }
7699
- return u.status === za ? n([]) : d(new Xt());
7700
- }).catch((u) => La(u) ? d(new _a(u)) : Sa(u) ? d(new Da(u, r, o, u)) : Ua(u) ? d(new Ka(u, u)) : d(new Xt(u)));
7708
+ return u.status === za ? n([]) : d(new At());
7709
+ }).catch((u) => La(u) ? d(new _a(u)) : Sa(u) ? d(new Da(u, r, o, u)) : Ua(u) ? d(new Ka(u, u)) : d(new At(u)));
7701
7710
  });
7702
7711
  var jv = /* @__PURE__ */ ((t) => (t.None = "none", t.AtLeastOne = "at_least_one", t.OneFromType = "one_from_type", t.WaitForAll = "wait_for_all", t.Default = "none", t))(jv || {}), Hv = /* @__PURE__ */ ((t) => (t.Youtube = "youtubeDistribution", t.Jw = "jwDistribution", t.Custom = "customDistribution", t))(Hv || {}), Wv = /* @__PURE__ */ ((t) => (t.Waiting = "waiting", t.Distributing = "distributing", t.RemoteProcessing = "remote_processing", t.Distributed = "distributed", t.Failed = "failed", t.Default = "waiting", t))(Wv || {}), Bu = /* @__PURE__ */ ((t) => (t.JsonCredentials = "json_credentials", t.OAuth2 = "oauth2", t.Default = "json_credentials", t))(Bu || {});
7703
7712
  const Pu = "/adm/v1/configuration", Gv = "/pub", Zv = Gv + "/v1/configuration", Qn = "settings", Jv = (t) => zt(t, Zv, {}, Be, Qn), Qv = (t) => zt(t, Pu, {}, Be, Qn), eh = (t, a) => zt(a, Pu + "/ext-system/" + t, {}, Be, Qn), Ou = "/adm/v1/asset-custom-form", Ru = "assetCustomForm", dr = (t, a, e) => zt(
@@ -8030,7 +8039,7 @@ const { showUnknownError: nh, showApiValidationError: lh } = We(), dh = (t, a, e
8030
8039
  };
8031
8040
  t().patch(di + "/metadata-bulk-update", JSON.stringify([r])).then((o) => {
8032
8041
  o.status === Ms ? s(o.data) : i();
8033
- }).catch((o) => La(o) ? i(new _a(o)) : Sa(o) ? (dh(o, a.attributes.assetType, e), i(new Da(o, Be, mo, o))) : Ua(o) ? i(new Ka(o, o)) : i(new Xt(o)));
8042
+ }).catch((o) => La(o) ? i(new _a(o)) : Sa(o) ? (dh(o, a.attributes.assetType, e), i(new Da(o, Be, mo, o))) : Ua(o) ? i(new Ka(o, o)) : i(new At(o)));
8034
8043
  }), hi = zv(), Ys = $s(), Po = D(!1);
8035
8044
  function ui(t = "default") {
8036
8045
  const { damClient: a } = nt(t), e = uo(), { selectedCount: s, selectedAssets: i, assetListItems: r, loader: o } = St(e), { resetFilter: l } = li(), { showErrorsDefault: n } = We(), d = async () => {
@@ -8810,7 +8819,7 @@ const Wh = {
8810
8819
  return Bh;
8811
8820
  }
8812
8821
  }), O = _(() => c.value < s.minCount || c.value > s.maxCount);
8813
- return At(async () => {
8822
+ return ht(async () => {
8814
8823
  l.value = !0, h.value = await y(s.selectLicences), l.value = !1;
8815
8824
  }), a({
8816
8825
  open: w
@@ -9334,7 +9343,7 @@ var VF = ["evt"], Kt = function(a, e) {
9334
9343
  cloneEl: it,
9335
9344
  cloneHidden: es,
9336
9345
  dragStarted: yi,
9337
- putSortable: qt,
9346
+ putSortable: Yt,
9338
9347
  activeSortable: Ce.active,
9339
9348
  originalEvent: i,
9340
9349
  oldIndex: Ns,
@@ -9360,7 +9369,7 @@ var VF = ["evt"], Kt = function(a, e) {
9360
9369
  };
9361
9370
  function kt(t) {
9362
9371
  fF(xa({
9363
- putSortable: qt,
9372
+ putSortable: Yt,
9364
9373
  cloneEl: it,
9365
9374
  targetEl: oe,
9366
9375
  rootEl: et,
@@ -9370,7 +9379,7 @@ function kt(t) {
9370
9379
  newDraggableIndex: Qa
9371
9380
  }, t));
9372
9381
  }
9373
- var oe, ot, Ie, et, ks, kr, it, es, Ns, Nt, Si, Qa, mr, qt, Ls = !1, zr = !1, Lr = [], Xs, Va, zo, Lo, Gl, Zl, yi, Rs, Di, Ki = !1, fr = !1, Ir, bt, No = [], An = !1, Nr = [], po = typeof document < "u", Vr = Gu, Jl = Hi || Wa ? "cssFloat" : "float", pF = po && !Zu && !Gu && "draggable" in document.createElement("div"), ic = function() {
9382
+ var oe, ot, Ie, et, ks, kr, it, es, Ns, Nt, Si, Qa, mr, Yt, Ls = !1, zr = !1, Lr = [], Xs, Va, zo, Lo, Gl, Zl, yi, Rs, Di, Ki = !1, fr = !1, Ir, bt, No = [], An = !1, Nr = [], po = typeof document < "u", Vr = Gu, Jl = Hi || Wa ? "cssFloat" : "float", pF = po && !Zu && !Gu && "draggable" in document.createElement("div"), ic = function() {
9374
9383
  if (po) {
9375
9384
  if (Wa)
9376
9385
  return !1;
@@ -9689,7 +9698,7 @@ Ce.prototype = /** @lends Sortable.prototype */
9689
9698
  },
9690
9699
  // Returns true - if no further action is needed (either inserted or another condition)
9691
9700
  _onDragOver: function(a) {
9692
- var e = this.el, s = a.target, i, r, o, l = this.options, n = l.group, d = Ce.active, c = mr === n, u = l.sort, p = qt || d, Y, v = this, F = !1;
9701
+ var e = this.el, s = a.target, i, r, o, l = this.options, n = l.group, d = Ce.active, c = mr === n, u = l.sort, p = Yt || d, Y, v = this, F = !1;
9693
9702
  if (An) return;
9694
9703
  function g($, j) {
9695
9704
  Kt($, v, xa({
@@ -9715,7 +9724,7 @@ Ce.prototype = /** @lends Sortable.prototype */
9715
9724
  function h($) {
9716
9725
  return g("dragOverCompleted", {
9717
9726
  insertion: $
9718
- }), $ && (c ? d._hideClone() : d._showClone(v), v !== p && (Lt(oe, qt ? qt.options.ghostClass : d.options.ghostClass, !1), Lt(oe, l.ghostClass, !0)), qt !== v && v !== Ce.active ? qt = v : v === Ce.active && qt && (qt = null), p === v && (v._ignoreWhileAnimating = s), v.animateAll(function() {
9727
+ }), $ && (c ? d._hideClone() : d._showClone(v), v !== p && (Lt(oe, Yt ? Yt.options.ghostClass : d.options.ghostClass, !1), Lt(oe, l.ghostClass, !0)), Yt !== v && v !== Ce.active ? Yt = v : v === Ce.active && Yt && (Yt = null), p === v && (v._ignoreWhileAnimating = s), v.animateAll(function() {
9719
9728
  g("dragOverAnimationComplete"), v._ignoreWhileAnimating = null;
9720
9729
  }), v !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (s === oe && !oe.animated || s === e && !s.animated) && (Rs = null), !l.dragoverBubble && !a.rootEl && s !== document && (oe.parentNode[jt]._isOutsideThisEl(a.target), !$ && As(a)), !l.dragoverBubble && a.stopPropagation && a.stopPropagation(), F = !0;
9721
9730
  }
@@ -9732,7 +9741,7 @@ Ce.prototype = /** @lends Sortable.prototype */
9732
9741
  if (a.preventDefault !== void 0 && a.cancelable && a.preventDefault(), s = va(s, l.draggable, e, !0), g("dragOver"), Ce.eventCanceled) return F;
9733
9742
  if (oe.contains(a.target) || s.animated && s.animatingX && s.animatingY || v._ignoreWhileAnimating === s)
9734
9743
  return h(!1);
9735
- if (zr = !1, d && !l.disabled && (c ? u || (o = ot !== et) : qt === this || (this.lastPutMode = mr.checkPull(this, d, oe, a)) && n.checkPut(this, d, oe, a))) {
9744
+ if (zr = !1, d && !l.disabled && (c ? u || (o = ot !== et) : Yt === this || (this.lastPutMode = mr.checkPull(this, d, oe, a)) && n.checkPut(this, d, oe, a))) {
9736
9745
  if (Y = this._getDirection(a, s) === "vertical", i = ut(oe), g("dragOverValid"), Ce.eventCanceled) return F;
9737
9746
  if (o)
9738
9747
  return ot = et, y(), this._hideClone(), g("revert"), Ce.eventCanceled || (ks ? et.insertBefore(oe, ks) : et.appendChild(oe)), h(!0);
@@ -9789,7 +9798,7 @@ Ce.prototype = /** @lends Sortable.prototype */
9789
9798
  this._nulling();
9790
9799
  return;
9791
9800
  }
9792
- Ls = !1, fr = !1, Ki = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), yn(this.cloneId), yn(this._dragStartId), this.nativeDraggable && (Pe(document, "drop", this), Pe(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ii && be(document.body, "user-select", ""), be(oe, "transform", ""), a && (yi && (a.cancelable && a.preventDefault(), !s.dropBubble && a.stopPropagation()), Ie && Ie.parentNode && Ie.parentNode.removeChild(Ie), (et === ot || qt && qt.lastPutMode !== "clone") && it && it.parentNode && it.parentNode.removeChild(it), oe && (this.nativeDraggable && Pe(oe, "dragend", this), Uo(oe), oe.style["will-change"] = "", yi && !Ls && Lt(oe, qt ? qt.options.ghostClass : this.options.ghostClass, !1), Lt(oe, this.options.chosenClass, !1), kt({
9801
+ Ls = !1, fr = !1, Ki = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), yn(this.cloneId), yn(this._dragStartId), this.nativeDraggable && (Pe(document, "drop", this), Pe(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ii && be(document.body, "user-select", ""), be(oe, "transform", ""), a && (yi && (a.cancelable && a.preventDefault(), !s.dropBubble && a.stopPropagation()), Ie && Ie.parentNode && Ie.parentNode.removeChild(Ie), (et === ot || Yt && Yt.lastPutMode !== "clone") && it && it.parentNode && it.parentNode.removeChild(it), oe && (this.nativeDraggable && Pe(oe, "dragend", this), Uo(oe), oe.style["will-change"] = "", yi && !Ls && Lt(oe, Yt ? Yt.options.ghostClass : this.options.ghostClass, !1), Lt(oe, this.options.chosenClass, !1), kt({
9793
9802
  sortable: this,
9794
9803
  name: "unchoose",
9795
9804
  toEl: ot,
@@ -9818,7 +9827,7 @@ Ce.prototype = /** @lends Sortable.prototype */
9818
9827
  name: "sort",
9819
9828
  toEl: ot,
9820
9829
  originalEvent: a
9821
- })), qt && qt.save()) : Nt !== Ns && Nt >= 0 && (kt({
9830
+ })), Yt && Yt.save()) : Nt !== Ns && Nt >= 0 && (kt({
9822
9831
  sortable: this,
9823
9832
  name: "update",
9824
9833
  toEl: ot,
@@ -9836,7 +9845,7 @@ Ce.prototype = /** @lends Sortable.prototype */
9836
9845
  }), this.save()))), this._nulling();
9837
9846
  },
9838
9847
  _nulling: function() {
9839
- Kt("nulling", this), et = oe = ot = Ie = ks = it = kr = es = Xs = Va = yi = Nt = Qa = Ns = Si = Rs = Di = qt = mr = Ce.dragged = Ce.ghost = Ce.clone = Ce.active = null, Nr.forEach(function(a) {
9848
+ Kt("nulling", this), et = oe = ot = Ie = ks = it = kr = es = Xs = Va = yi = Nt = Qa = Ns = Si = Rs = Di = Yt = mr = Ce.dragged = Ce.ghost = Ce.clone = Ce.active = null, Nr.forEach(function(a) {
9840
9849
  a.checked = !0;
9841
9850
  }), Nr.length = zo = Lo = 0;
9842
9851
  },
@@ -10189,11 +10198,11 @@ function wF(t, a, e) {
10189
10198
  });
10190
10199
  }
10191
10200
  }
10192
- var gt = [];
10201
+ var qt = [];
10193
10202
  for (var Go = 0; Go < 256; ++Go)
10194
- gt.push((Go + 256).toString(16).slice(1));
10203
+ qt.push((Go + 256).toString(16).slice(1));
10195
10204
  function uc(t, a = 0) {
10196
- return (gt[t[a + 0]] + gt[t[a + 1]] + gt[t[a + 2]] + gt[t[a + 3]] + "-" + gt[t[a + 4]] + gt[t[a + 5]] + "-" + gt[t[a + 6]] + gt[t[a + 7]] + "-" + gt[t[a + 8]] + gt[t[a + 9]] + "-" + gt[t[a + 10]] + gt[t[a + 11]] + gt[t[a + 12]] + gt[t[a + 13]] + gt[t[a + 14]] + gt[t[a + 15]]).toLowerCase();
10205
+ return (qt[t[a + 0]] + qt[t[a + 1]] + qt[t[a + 2]] + qt[t[a + 3]] + "-" + qt[t[a + 4]] + qt[t[a + 5]] + "-" + qt[t[a + 6]] + qt[t[a + 7]] + "-" + qt[t[a + 8]] + qt[t[a + 9]] + "-" + qt[t[a + 10]] + qt[t[a + 11]] + qt[t[a + 12]] + qt[t[a + 13]] + qt[t[a + 14]] + qt[t[a + 15]]).toLowerCase();
10197
10206
  }
10198
10207
  var vr, kF = new Uint8Array(16);
10199
10208
  function cc() {
@@ -11266,7 +11275,7 @@ const NF = ["data-id"], UF = { class: "a-sortable-nested-widget__nested" }, jF =
11266
11275
  }), l = _({
11267
11276
  get: () => s.pagination,
11268
11277
  set: (w) => {
11269
- i("update:pagination", { ...Yt(w) });
11278
+ i("update:pagination", { ...Xt(w) });
11270
11279
  }
11271
11280
  }), n = D(!0), d = D(!1), { t: c } = ee(), u = _(() => s.selectedItems.length), p = _(() => u.value < s.minCount || u.value > s.maxCount), Y = () => {
11272
11281
  i("onOpen"), n.value = !0, o.value = !0;
@@ -11277,7 +11286,7 @@ const NF = ["data-id"], UF = { class: "a-sortable-nested-widget__nested" }, jF =
11277
11286
  }, g = () => {
11278
11287
  i(
11279
11288
  "onConfirm",
11280
- s.selectedItems.map((w) => Yt(w))
11289
+ s.selectedItems.map((w) => Xt(w))
11281
11290
  ), F();
11282
11291
  }, y = () => {
11283
11292
  i("onFetchNextPage");
@@ -11570,7 +11579,7 @@ const fg = /* @__PURE__ */ W({
11570
11579
  const e = t, s = a, i = (h) => e.config.attributes.type === It.Integer ? parseInt(h) : h, r = (h) => {
11571
11580
  s("update:modelValue", { property: e.config.property, value: i(h) });
11572
11581
  }, o = _(() => {
11573
- const h = Td(e.modelValue) ? Yt(e.modelValue) : e.modelValue;
11582
+ const h = Td(e.modelValue) ? Xt(e.modelValue) : e.modelValue;
11574
11583
  return e.config.attributes.type === It.StringArray && so(h) ? [] : h;
11575
11584
  }), { maxLength: l, minLength: n, requiredIf: d, minValue: c, maxValue: u, stringArrayItemLength: p } = vs(), Y = _(() => {
11576
11585
  const h = {
@@ -12907,10 +12916,10 @@ const Jg = (t, a) => {
12907
12916
  }, Bs = (t, a, e, s = {}, i, r, o = {}, l = !1) => new Promise((n, d) => {
12908
12917
  t().get(Vs(e, s) + Jg(a, l), o).then((c) => {
12909
12918
  var u;
12910
- return ps(c.status) ? (u = c.data) != null && u.data ? n(c.data.data) : c.status === za ? n(null) : d(new Xt()) : d(new Na(c.status));
12911
- }).catch((c) => La(c) ? d(new _a(c)) : Sa(c) ? d(new Da(c, i, r, c)) : Ua(c) ? d(new Ka(c, c)) : d(new Xt(c)));
12919
+ return ps(c.status) ? (u = c.data) != null && u.data ? n(c.data.data) : c.status === za ? n(null) : d(new At()) : d(new Na(c.status));
12920
+ }).catch((c) => La(c) ? d(new _a(c)) : Sa(c) ? d(new Da(c, i, r, c)) : Ua(c) ? d(new Ka(c, c)) : d(new At(c)));
12912
12921
  }), ho = (t, a = {}, e, s = {}, i, r, o = {}) => new Promise((l, n) => {
12913
- t().post(Vs(e, s), JSON.stringify(a), o).then((d) => ps(d.status) ? d.data ? l(d.data) : d.status === za ? l(null) : n(new Xt()) : n(new Na(d.status))).catch((d) => La(d) ? n(new _a(d)) : Sa(d) ? n(new Da(d, i, r, d)) : Ua(d) ? n(new Ka(d, d)) : n(new Xt(d)));
12922
+ t().post(Vs(e, s), JSON.stringify(a), o).then((d) => ps(d.status) ? d.data ? l(d.data) : d.status === za ? l(null) : n(new At()) : n(new Na(d.status))).catch((d) => La(d) ? n(new _a(d)) : Sa(d) ? n(new Da(d, i, r, d)) : Ua(d) ? n(new Ka(d, d)) : n(new At(d)));
12914
12923
  }), Xc = "/adm/v1/keyword", Ac = Xc + "/ext-system/:extSystemId", ci = "keyword", yc = (t, a, e) => Bs(
12915
12924
  t,
12916
12925
  e,
@@ -13200,9 +13209,9 @@ const tq = (t) => ({
13200
13209
  forceReloadFileInput: O
13201
13210
  };
13202
13211
  }), dl = (t, a = {}, e, s = {}, i, r, o = {}) => new Promise((l, n) => {
13203
- t().put(Vs(e, s), JSON.stringify(a), o).then((d) => ps(d.status) ? d.data ? l(d.data) : d.status === za ? l(null) : n(new Xt()) : n(new Na(d.status))).catch((d) => La(d) ? n(new _a(d)) : Sa(d) ? n(new Da(d, i, r, d)) : Ua(d) ? n(new Ka(d, d)) : n(new Xt(d)));
13212
+ t().put(Vs(e, s), JSON.stringify(a), o).then((d) => ps(d.status) ? d.data ? l(d.data) : d.status === za ? l(null) : n(new At()) : n(new Na(d.status))).catch((d) => La(d) ? n(new _a(d)) : Sa(d) ? n(new Da(d, i, r, d)) : Ua(d) ? n(new Ka(d, d)) : n(new At(d)));
13204
13213
  }), _c = (t, a, e = {}, s, i, r = {}) => new Promise((o, l) => {
13205
- t().delete(Vs(a, e), r).then((n) => ps(n.status) ? n.data ? o(n.data) : n.status === za ? o(null) : l(new Xt()) : l(new Na(n.status))).catch((n) => La(n) ? l(new _a(n)) : Sa(n) ? l(new Da(n, s, i, n)) : Ua(n) ? l(new Ka(n, n)) : l(new Xt(n)));
13214
+ t().delete(Vs(a, e), r).then((n) => ps(n.status) ? n.data ? o(n.data) : n.status === za ? o(null) : l(new At()) : l(new Na(n.status))).catch((n) => La(n) ? l(new _a(n)) : Sa(n) ? l(new Da(n, s, i, n)) : Ua(n) ? l(new Ka(n, n)) : l(new At(n)));
13206
13215
  }), fi = "/adm/v1/image", Qi = "image", er = "cms", nn = 20, Sc = (t, a) => Bs(t, a, fi, {}, er, Qi), ul = (t, a) => zt(t, fi + "/:id", { id: a }, er, Qi), Dc = (t, a) => ho(t, a, fi, {}, er, Qi), Kc = (t, a, e) => dl(t, e, fi + "/:id", { id: a }, er, Qi), Tc = (t, a) => _c(t, fi + "/:id", { id: a }, er, Qi), Xq = (t, a) => new Promise((e, s) => {
13207
13216
  Aq(t, a).then((i) => {
13208
13217
  if (a.length === 0)
@@ -14685,7 +14694,7 @@ const M7 = /* @__PURE__ */ W({
14685
14694
  }
14686
14695
  i.value = h.id;
14687
14696
  }, y = (h) => Ze(i.value) ? i.value.includes(h) : i.value ? i.value === h : !1;
14688
- return At(() => {
14697
+ return ht(() => {
14689
14698
  }), (h, A) => (q(), P(Fe, null, [
14690
14699
  L("div", $7, [
14691
14700
  m(Ku, {
@@ -15620,7 +15629,7 @@ const H7 = /* @__PURE__ */ W({
15620
15629
  }, l = async () => {
15621
15630
  await o(), e.forceReloadRoiPreviews(), e.forceReloadCropper();
15622
15631
  };
15623
- return At(async () => {
15632
+ return ht(async () => {
15624
15633
  e.reset(), e.showLoader(), s.asset && s.asset.mainFile && Zi(s.asset.mainFile) && (e.setImageFile(xe(s.asset.mainFile)), await o()), e.hideLoader();
15625
15634
  }), (n, d) => {
15626
15635
  var u;
@@ -15682,7 +15691,7 @@ const H7 = /* @__PURE__ */ W({
15682
15691
  },
15683
15692
  setup(t) {
15684
15693
  const a = t, { mounted: e, unMounted: s, divClassName: i } = Bc(a.queueKey);
15685
- return At(async () => {
15694
+ return ht(async () => {
15686
15695
  await Gt(), e();
15687
15696
  }), Gr(() => {
15688
15697
  s();
@@ -17215,7 +17224,7 @@ const mX = { class: "d-flex flex-column" }, fX = {
17215
17224
  var Y;
17216
17225
  return (Y = s.value) == null ? void 0 : Y.setData(p);
17217
17226
  }
17218
- }), At(() => {
17227
+ }), ht(() => {
17219
17228
  const { containerStyle: p, src: Y, alt: v, imgStyle: F, ...g } = e, y = g, h = {};
17220
17229
  for (const A in g)
17221
17230
  Object.prototype.hasOwnProperty.call(y, A) && y[A] !== void 0 && (h[A] = y[A]);
@@ -18134,7 +18143,7 @@ const CX = { key: 0 }, xX = /* @__PURE__ */ W({
18134
18143
  }
18135
18144
  },
18136
18145
  { immediate: !0 }
18137
- ), At(() => {
18146
+ ), ht(() => {
18138
18147
  d.value = Ct.Info;
18139
18148
  }), (Xe, _e) => (q(), E(mt, {
18140
18149
  "model-value": !0,
@@ -18481,7 +18490,7 @@ const CX = { key: 0 }, xX = /* @__PURE__ */ W({
18481
18490
  const {
18482
18491
  releaseCollabFieldLock: de,
18483
18492
  acquireCollabFieldLock: ke,
18484
- addCollabFieldLockStatusListener: Ft,
18493
+ addCollabFieldLockStatusListener: gt,
18485
18494
  lockedByUser: ca
18486
18495
  // eslint-disable-next-line vue/no-setup-props-reactivity-loss
18487
18496
  } = fs(s.collab.room, s.collab.field);
@@ -18491,7 +18500,7 @@ const CX = { key: 0 }, xX = /* @__PURE__ */ W({
18491
18500
  d.value = Ue;
18492
18501
  },
18493
18502
  { immediate: !0 }
18494
- ), Ft((Ue) => {
18503
+ ), gt((Ue) => {
18495
18504
  Ue.status === Bt.Success && Ue.type === $t.Acquire ? te.value = !0 : Ue.status === Bt.Failure && Ue.type === $t.Acquire || Ue.status === Bt.Success && Ue.type === $t.Release ? te.value = !1 : Ue.status === Bt.Failure && Ue.type === $t.Release && (te.value = !0);
18496
18505
  });
18497
18506
  }
@@ -18506,14 +18515,14 @@ const CX = { key: 0 }, xX = /* @__PURE__ */ W({
18506
18515
  if (R(Y) || R(Y.value))
18507
18516
  throw new Error("Fatal error, parent component doesn't provide necessary config ext system config.");
18508
18517
  const { t: v } = ee(), { showErrorsDefault: F, showError: g } = We(), y = Gi(s.configName), { imageClient: h } = y, { widgetImageToDamImageUrl: A } = nl(y), X = ea(), x = tr(), { uploadQueueDialog: w } = yo(), T = D(null), z = D(!1), H = D(!1), U = D(!1), K = D(!1), O = D(!1), M = D(!1), k = _(() => ae(r.value)), C = D(""), b = _(() => X.getQueue(s.queueKey)), S = _(() => !0), $ = _(() => !ae(T.value)), j = () => {
18509
- x.setImageDetail(Yt(T.value)), U.value = !0;
18518
+ x.setImageDetail(Xt(T.value)), U.value = !0;
18510
18519
  }, G = () => {
18511
18520
  H.value = !0;
18512
18521
  }, { cachedExtSystemId: J } = Fo(), te = D(!1), fe = async () => {
18513
18522
  if (!o.value.enabled || R(s.collab))
18514
18523
  return Promise.resolve(!0);
18515
18524
  let de = 0;
18516
- const ke = () => te.value ? Promise.resolve(!0) : (de++, de < 50 ? new Promise((Ft) => setTimeout(() => Ft(ke()), 100)) : Promise.reject(!1));
18525
+ const ke = () => te.value ? Promise.resolve(!0) : (de++, de < 50 ? new Promise((gt) => setTimeout(() => gt(ke()), 100)) : Promise.reject(!1));
18517
18526
  return ke();
18518
18527
  }, me = async (de) => {
18519
18528
  u();
@@ -18530,9 +18539,9 @@ const CX = { key: 0 }, xX = /* @__PURE__ */ W({
18530
18539
  }, { uploadSizes: Xe, uploadAccept: _e } = vc(
18531
18540
  qe.Image,
18532
18541
  Y.value.extSystemConfig
18533
- ), Q = async (de, ke, Ft = !1) => {
18534
- if (C.value = Ss, de && ae(T.value) || de && Ft) {
18535
- T.value = xe(de), T.value && (C.value = A(Yt(T.value)), s.expandMetadata && x.setImageDetail(Yt(T.value)));
18542
+ ), Q = async (de, ke, gt = !1) => {
18543
+ if (C.value = Ss, de && ae(T.value) || de && gt) {
18544
+ T.value = xe(de), T.value && (C.value = A(Xt(T.value)), s.expandMetadata && x.setImageDetail(Xt(T.value)));
18536
18545
  return;
18537
18546
  }
18538
18547
  if (ke) {
@@ -18541,7 +18550,7 @@ const CX = { key: 0 }, xX = /* @__PURE__ */ W({
18541
18550
  } catch (ca) {
18542
18551
  F(ca);
18543
18552
  }
18544
- ae(T.value) || (C.value = A(Yt(T.value)), s.expandMetadata && x.setImageDetail(Yt(T.value)));
18553
+ ae(T.value) || (C.value = A(Xt(T.value)), s.expandMetadata && x.setImageDetail(Xt(T.value)));
18545
18554
  return;
18546
18555
  }
18547
18556
  T.value = null;
@@ -18559,12 +18568,12 @@ const CX = { key: 0 }, xX = /* @__PURE__ */ W({
18559
18568
  var Ue;
18560
18569
  const ke = uo();
18561
18570
  O.value = !0, x.setImageDetail(null), U.value = !0;
18562
- let Ft = "", ca = "";
18571
+ let gt = "", ca = "";
18563
18572
  if (de.type === "asset") {
18564
18573
  if (!de.value[0] || !de.value[0].mainFile) return;
18565
18574
  try {
18566
18575
  const ga = await rs(se, de.value[0].id);
18567
- Pt((Ue = ga.metadata.customData) == null ? void 0 : Ue.description) && (Ft = ga.metadata.customData.description.trim()), ga.authors.length > 0 && (ca = (await mi(
18576
+ Pt((Ue = ga.metadata.customData) == null ? void 0 : Ue.description) && (gt = ga.metadata.customData.description.trim()), ga.authors.length > 0 && (ca = (await mi(
18568
18577
  se,
18569
18578
  ke.selectedSelectConfig.extSystem,
18570
18579
  ga.authors
@@ -18574,7 +18583,7 @@ const CX = { key: 0 }, xX = /* @__PURE__ */ W({
18574
18583
  }
18575
18584
  const Ta = {
18576
18585
  texts: {
18577
- description: Ft,
18586
+ description: gt,
18578
18587
  source: ca
18579
18588
  },
18580
18589
  dam: {
@@ -18589,8 +18598,8 @@ const CX = { key: 0 }, xX = /* @__PURE__ */ W({
18589
18598
  }, we = Fa(), { loading: Le, dialog: Ve } = St(we), { damClient: se } = nt(), Ae = async (de) => {
18590
18599
  Le.value = !0, Ve.value = s.queueKey;
18591
18600
  try {
18592
- const ke = await fo(se, de), Ft = await el(se, ke.licence);
18593
- Ft.extSystem && (J.value = Ft.extSystem), we.setAsset(ke);
18601
+ const ke = await fo(se, de), gt = await el(se, ke.licence);
18602
+ gt.extSystem && (J.value = gt.extSystem), we.setAsset(ke);
18594
18603
  } catch (ke) {
18595
18604
  F(ke);
18596
18605
  } finally {
@@ -18598,7 +18607,7 @@ const CX = { key: 0 }, xX = /* @__PURE__ */ W({
18598
18607
  }
18599
18608
  }, Vt = () => {
18600
18609
  x.setImageDetail(null), U.value = !1;
18601
- }, ht = async () => {
18610
+ }, Ft = async () => {
18602
18611
  if (!ae(x.imageDetail)) {
18603
18612
  K.value = !0;
18604
18613
  try {
@@ -18657,7 +18666,7 @@ const CX = { key: 0 }, xX = /* @__PURE__ */ W({
18657
18666
  ), a({
18658
18667
  metadataConfirm: Vi
18659
18668
  }), (de, ke) => {
18660
- var Ft, ca;
18669
+ var gt, ca;
18661
18670
  return q(), P(Fe, null, [
18662
18671
  L("div", {
18663
18672
  class: he(["a-image-widget", { "a-image-widget--locked": gs.value }])
@@ -18700,7 +18709,7 @@ const CX = { key: 0 }, xX = /* @__PURE__ */ W({
18700
18709
  ref: lt,
18701
18710
  modelValue: M.value,
18702
18711
  "onUpdate:modelValue": ke[0] || (ke[0] = (Ue) => M.value = Ue),
18703
- "file-input-key": (Ft = b.value) == null ? void 0 : Ft.fileInputKey,
18712
+ "file-input-key": (gt = b.value) == null ? void 0 : gt.fileInputKey,
18704
18713
  accept: V(_e),
18705
18714
  "max-sizes": V(Xe),
18706
18715
  onFilesInput: Me
@@ -18866,7 +18875,7 @@ const CX = { key: 0 }, xX = /* @__PURE__ */ W({
18866
18875
  saving: K.value,
18867
18876
  loading: O.value,
18868
18877
  onEditAsset: Ae,
18869
- onOnConfirm: ht,
18878
+ onOnConfirm: Ft,
18870
18879
  onOnClose: Vt
18871
18880
  }, null, 8, ["modelValue", "expand", "saving", "loading"])
18872
18881
  ], 2),
@@ -18934,7 +18943,7 @@ const CX = { key: 0 }, xX = /* @__PURE__ */ W({
18934
18943
  getOrLoadDamConfigExtSystemByLicence: u,
18935
18944
  getOrLoadDamConfigExtSystemByLicences: p
18936
18945
  } = yt(o), Y = ft(void 0);
18937
- At(async () => {
18946
+ ht(async () => {
18938
18947
  if (Y.value = await u(s.uploadLicence), R(Y.value)) {
18939
18948
  r.value = "error";
18940
18949
  return;
@@ -19526,7 +19535,7 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
19526
19535
  }, h = () => {
19527
19536
  e.value = { image: {}, video: {}, audio: {}, document: {} }, i.value = [], s.value = [];
19528
19537
  }, A = _(() => l.getQueueItemsTypes(a.queueKey));
19529
- return At(() => {
19538
+ return ht(() => {
19530
19539
  A.value[0] && o.value.push(A.value[0]);
19531
19540
  }), (X, x) => (q(), P("div", OA, [
19532
19541
  L("div", RA, [
@@ -19796,7 +19805,7 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
19796
19805
  }, l = (p) => {
19797
19806
  i.removeByIndex(e.queueKey, p);
19798
19807
  }, { addToCachedKeywords: n, fetchCachedKeywords: d } = go(), { addToCachedAuthors: c, fetchCachedAuthors: u } = Ji();
19799
- return At(() => {
19808
+ return ht(() => {
19800
19809
  r.value.forEach((p) => {
19801
19810
  n(p.keywords), c(p.authors);
19802
19811
  }), d(), u();
@@ -19861,7 +19870,7 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
19861
19870
  const e = t, s = a, { uploadQueueDialog: i, uploadQueueSidebar: r, toggleUploadQueueSidebar: o } = yo(), l = tr(), { maxPosition: n } = St(l), d = ea(), c = _(() => d.getQueueTotalCount(e.queueKey)), u = _(() => d.getQueueItems(e.queueKey)), p = _(() => d.getQueueProcessedCount(e.queueKey)), Y = _(() => c.value > p.value), v = _(() => c.value === p.value), { t: F } = ee(), { toolbarColor: g } = ji(), y = da(), { showRecordWas: h, showValidationError: A, showErrorsDefault: X } = We(), { damClient: x } = nt(), w = D(!1), T = D(!1), z = async () => {
19862
19871
  d.stopUpload(e.queueKey), i.value = null;
19863
19872
  }, H = async () => {
19864
- const S = Yt(u.value);
19873
+ const S = Xt(u.value);
19865
19874
  if (S.length !== 0) {
19866
19875
  if (w.value = !0, y.value.$touch(), y.value.$invalid) {
19867
19876
  A(), w.value = !1;
@@ -19918,7 +19927,7 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
19918
19927
  };
19919
19928
  });
19920
19929
  }, K = async () => {
19921
- const S = Yt(u.value);
19930
+ const S = Xt(u.value);
19922
19931
  if (S.length !== 0) {
19923
19932
  if (T.value = !0, y.value.$touch(), y.value.$invalid) {
19924
19933
  A(), T.value = !1;
@@ -20276,7 +20285,7 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
20276
20285
  }, U = () => {
20277
20286
  T.value = s.queueKey;
20278
20287
  }, K = async (Ve) => {
20279
- const se = uo(), Ae = Ve.map((pt) => pt.id), Vt = /* @__PURE__ */ new Map(), ht = /* @__PURE__ */ new Set(), Oe = /* @__PURE__ */ new Map();
20288
+ const se = uo(), Ae = Ve.map((pt) => pt.id), Vt = /* @__PURE__ */ new Map(), Ft = /* @__PURE__ */ new Set(), Oe = /* @__PURE__ */ new Map();
20280
20289
  try {
20281
20290
  (await ih(b, Ae, se.selectedLicenceId)).forEach((Se) => {
20282
20291
  var lt;
@@ -20286,10 +20295,10 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
20286
20295
  });
20287
20296
  }), Vt.forEach((Se) => {
20288
20297
  Se.authorIds.forEach((lt) => {
20289
- ht.add(lt);
20298
+ Ft.add(lt);
20290
20299
  });
20291
- }), ht.size > 0 && (await mi(b, se.selectedSelectConfig.extSystem, [
20292
- ...ht
20300
+ }), Ft.size > 0 && (await mi(b, se.selectedSelectConfig.extSystem, [
20301
+ ...Ft
20293
20302
  ])).forEach((lt) => {
20294
20303
  Oe.set(lt.id, lt.name);
20295
20304
  });
@@ -20347,7 +20356,7 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
20347
20356
  if (G.value.$touch(), G.value.$invalid)
20348
20357
  return c(), !1;
20349
20358
  try {
20350
- const Ve = await Xq(n, Yt(y.value)), se = [], Ae = Ve.map((Vt) => (se.push(Vt.id), {
20359
+ const Ve = await Xq(n, Xt(y.value)), se = [], Ae = Ve.map((Vt) => (se.push(Vt.id), {
20351
20360
  key: ts(),
20352
20361
  ...Vt
20353
20362
  }));
@@ -20403,7 +20412,7 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
20403
20412
  fe.value = document.querySelector("#" + Q.value), Le();
20404
20413
  }), a({
20405
20414
  saveImages: J
20406
- }), At(() => {
20415
+ }), ht(() => {
20407
20416
  A();
20408
20417
  }), (Ve, se) => {
20409
20418
  var Ae, Vt;
@@ -20416,11 +20425,11 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
20416
20425
  "max-sizes": V(p),
20417
20426
  onFilesInput: z
20418
20427
  }, {
20419
- activator: f(({ props: ht }) => [
20428
+ activator: f(({ props: Ft }) => [
20420
20429
  m(ie, Rt({
20421
20430
  ref_key: "uploadButtonComponent",
20422
20431
  ref: u
20423
- }, ht), {
20432
+ }, Ft), {
20424
20433
  default: f(() => [
20425
20434
  B(I(V(v)("common.damImage.image.button.upload")), 1)
20426
20435
  ]),
@@ -20441,7 +20450,7 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
20441
20450
  ]),
20442
20451
  m(Wu, {
20443
20452
  modelValue: r.value,
20444
- "onUpdate:modelValue": se[0] || (se[0] = (ht) => r.value = ht),
20453
+ "onUpdate:modelValue": se[0] || (se[0] = (Ft) => r.value = Ft),
20445
20454
  "select-licences": Ve.selectLicences,
20446
20455
  "min-count": 1,
20447
20456
  "max-count": 50,
@@ -20454,8 +20463,8 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
20454
20463
  key: Xe.value,
20455
20464
  class: he([V(jr), "asset-list-tiles asset-list-tiles--thumbnail"])
20456
20465
  }, [
20457
- (q(!0), P(Fe, null, He(V(y), (ht, Oe) => (q(), E(XA, {
20458
- key: ht.key,
20466
+ (q(!0), P(Fe, null, He(V(y), (Ft, Oe) => (q(), E(XA, {
20467
+ key: Ft.key,
20459
20468
  index: Oe,
20460
20469
  "disable-draggable": Ve.disableDraggable,
20461
20470
  onEditAsset: S,
@@ -20468,7 +20477,7 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
20468
20477
  accept: V(Y),
20469
20478
  "max-sizes": V(p),
20470
20479
  onOnDrop: H,
20471
- onOnClick: se[1] || (se[1] = (ht) => {
20480
+ onOnClick: se[1] || (se[1] = (Ft) => {
20472
20481
  var Oe;
20473
20482
  return (Oe = u.value) == null ? void 0 : Oe.$el.click();
20474
20483
  })
@@ -20529,7 +20538,7 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
20529
20538
  getOrLoadDamConfigExtSystemByLicence: u,
20530
20539
  getOrLoadDamConfigExtSystemByLicences: p
20531
20540
  } = yt(o), Y = ft(void 0);
20532
- At(async () => {
20541
+ ht(async () => {
20533
20542
  if (Y.value = await u(s.uploadLicence), R(Y.value)) {
20534
20543
  r.value = "error";
20535
20544
  return;
@@ -20700,7 +20709,7 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
20700
20709
  }
20701
20710
  }, K = async (M, k, C = !1) => {
20702
20711
  if (o.value = "", M && ae(l.value) || M && C) {
20703
- l.value = xe(M), l.value && (i.value = l.value.dam.damId, o.value = Y(Yt(l.value)), r.value.description = l.value.texts.description, r.value.source = l.value.texts.source, U());
20712
+ l.value = xe(M), l.value && (i.value = l.value.dam.damId, o.value = Y(Xt(l.value)), r.value.description = l.value.texts.description, r.value.source = l.value.texts.source, U());
20704
20713
  return;
20705
20714
  }
20706
20715
  if (k) {
@@ -20709,7 +20718,7 @@ const OA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, RA = { clas
20709
20718
  } catch (b) {
20710
20719
  v(b);
20711
20720
  }
20712
- ae(l.value) || (i.value = l.value.dam.damId, o.value = Y(Yt(l.value)), r.value.description = l.value.texts.description, r.value.source = l.value.texts.source, U());
20721
+ ae(l.value) || (i.value = l.value.dam.damId, o.value = Y(Xt(l.value)), r.value.description = l.value.texts.description, r.value.source = l.value.texts.source, U());
20713
20722
  return;
20714
20723
  }
20715
20724
  l.value = null, r.value.description = "", r.value.source = "";
@@ -21014,7 +21023,7 @@ function oK() {
21014
21023
  }
21015
21024
  const nK = (t, a, e = "", s = {}, i = null, r, o, l = {}) => new Promise((n, d) => {
21016
21025
  const c = { method: a };
21017
- e !== "" && (c.url = Vs(e, s)), ae(i) || (c.data = JSON.stringify(i)), t().request({ ...l, ...c }).then((u) => ps(u.status) ? u.data ? n(u.data) : u.status === za ? n(null) : d(new Xt()) : d(new Na(u.status))).catch((u) => La(u) ? d(new _a(u)) : Sa(u) ? d(new Da(u, r, o, u)) : Ua(u) ? d(new Ka(u, u)) : d(new Xt(u)));
21026
+ e !== "" && (c.url = Vs(e, s)), ae(i) || (c.data = JSON.stringify(i)), t().request({ ...l, ...c }).then((u) => ps(u.status) ? u.data ? n(u.data) : u.status === za ? n(null) : d(new At()) : d(new Na(u.status))).catch((u) => La(u) ? d(new _a(u)) : Sa(u) ? d(new Da(u, r, o, u)) : Ua(u) ? d(new Ka(u, u)) : d(new At(u)));
21018
21027
  }), Kd = (t, a = void 0) => {
21019
21028
  const { querySetLimit: e, querySetOffset: s, querySetOrder: i, queryBuild: r, querySetFilters: o } = co();
21020
21029
  return e(t.rowsPerPage), s(t.page, t.rowsPerPage), i(t.sortBy, t.descending), pe(a) && o(a), r();
@@ -21063,7 +21072,7 @@ const nK = (t, a, e = "", s = {}, i = null, r, o, l = {}) => new Promise((n, d)
21063
21072
  }
21064
21073
  return F.status === za ? Promise.resolve([]) : v;
21065
21074
  } catch (F) {
21066
- return La(F) ? Promise.reject(new _a(F)) : Sa(F) ? Promise.reject(new Da(F, l, n, F)) : Ua(F) ? Promise.reject(new Ka(F, F)) : Promise.reject(new Xt(F));
21075
+ return La(F) ? Promise.reject(new _a(F)) : Sa(F) ? Promise.reject(new Da(F, l, n, F)) : Ua(F) ? Promise.reject(new Ka(F, F)) : Promise.reject(new At(F));
21067
21076
  }
21068
21077
  };
21069
21078
  function dK() {
@@ -23366,7 +23375,7 @@ const fK = {
23366
23375
  })
23367
23376
  });
23368
23377
  async function AK() {
23369
- (await import("./webfontloader-CNg5aG0Z.js").then((a) => a.w)).load({
23378
+ (await import("./webfontloader-CkO4Lp_g.js").then((a) => a.w)).load({
23370
23379
  google: {
23371
23380
  families: ["Roboto:100,300,400,500,700,900&display=swap"]
23372
23381
  }
@@ -24168,7 +24177,7 @@ export {
24168
24177
  Sa as e3,
24169
24178
  Da as e4,
24170
24179
  cu as e5,
24171
- Xt as e6,
24180
+ At as e6,
24172
24181
  fK as e7,
24173
24182
  XK as e8,
24174
24183
  AK as e9,
@@ -24199,4 +24208,4 @@ export {
24199
24208
  nD as y,
24200
24209
  Gs as z
24201
24210
  };
24202
- //# sourceMappingURL=lib-DMC5dvce.js.map
24211
+ //# sourceMappingURL=lib-BK9nq2ph.js.map