@anzusystems/common-admin 1.47.0-beta.dev-1771894812 → 1.47.0-beta.dev-1771894813

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,11 +1,11 @@
1
- import { defineComponent as H, computed as I, createBlock as x, createElementBlock as K, openBlock as v, withCtx as f, createTextVNode as M, toDisplayString as A, resolveComponent as Be, normalizeClass as pe, createVNode as u, createElementVNode as B, withModifiers as Z, withDirectives as ra, vShow as Ya, renderSlot as le, ref as T, watch as Xe, inject as ct, createSlots as Sa, createCommentVNode as E, unref as d, provide as ot, Fragment as ve, renderList as nt, mergeModels as Je, useModel as tt, onMounted as pt, toRefs as Cs, mergeProps as Qe, shallowRef as Et, nextTick as rs, onUnmounted as ks, readonly as _a, createStaticVNode as El, resolveDynamicComponent as Xs, setBlockTracking as En, onBeforeUnmount as _o, reactive as ki, toRaw as Ft, normalizeStyle as Ut, toRef as Hr, normalizeProps as Tt, guardReactiveProps as si, isRef as ns, isProxy as Ru, getCurrentInstance as Uu, withKeys as is, Teleport as Nu, useTemplateRef as Ou } from "vue";
1
+ import { defineComponent as H, computed as I, createBlock as x, createElementBlock as K, openBlock as v, withCtx as f, createTextVNode as M, toDisplayString as A, resolveComponent as Be, normalizeClass as pe, createVNode as u, createElementVNode as B, withModifiers as Z, withDirectives as ra, vShow as Ya, renderSlot as le, ref as T, watch as Xe, inject as ft, createSlots as Sa, createCommentVNode as E, unref as d, provide as ot, Fragment as ge, renderList as nt, mergeModels as Je, useModel as tt, onMounted as pt, toRefs as Cs, mergeProps as Qe, shallowRef as Et, nextTick as rs, onUnmounted as ks, readonly as _a, createStaticVNode as El, resolveDynamicComponent as Xs, setBlockTracking as En, onBeforeUnmount as _o, reactive as ki, toRaw as Ft, normalizeStyle as Ut, toRef as Hr, normalizeProps as Tt, guardReactiveProps as si, isRef as ns, isProxy as Ru, getCurrentInstance as Uu, withKeys as is, Teleport as Nu, useTemplateRef as Ou } from "vue";
2
2
  import { useI18n as ae } from "vue-i18n";
3
3
  import { useI18n as fT } from "vue-i18n";
4
4
  import { VChip as Mt } from "vuetify/components/VChip";
5
5
  import { _ as na, u as La, i as we, a as ii, C as Qt, b as ea, S as za, c as Ra, d as _, s as us, e as pa, f as wt, g as Ie, h as ne, j as ca, k as ju, l as Pt, m as Ze, n as As, o as Oe, p as et, q as Ml, r as Io, t as Hu, v as Wu, w as $l, x as aa, y as br, z as Zs, A as Ua, B as Gu, D as Ju, E as Po, F as Lt, G as Bl, H as Jt, I as Zu, J as Ii, K as Qu, L as Wr, M as _l, N as Pl, O as Ll, P as zl, Q as Rl, R as Ul, T as Nl, U as Ol, V as jl, W as xt, X as Xo, Y as Ao, Z as Mn, $ as $n, a0 as ec, a1 as Hl, a2 as wi, a3 as Wl, a4 as Gl, a5 as xr, a6 as tc, a7 as Cr, a8 as Na, a9 as Oa, aa as Is, ab as ws, ac as cs, ad as Ss, ae as Ks, af as Ds, ag as qa, ah as ja, ai as Ha, aj as oi, ak as Si, al as Ki, am as Di, an as Ti, ao as Ei, ap as Jl, aq as Zl, ar as Lo, as as Gr, at as kr, au as ac, av as Ql, aw as ed, ax as sc, ay as Ka, az as Da, aA as Jr, aB as ic, aC as oc, aD as Ir, aE as rr, aF as rc, aG as td, aH as ad, aI as sd, aJ as nc, aK as Ts, aL as id, aM as lc, aN as wr, aO as dc, aP as Bn, aQ as ys, aR as uc, aS as od, aT as rd, aU as nd, aV as Sr, aW as _n, aX as cc, aY as mc, aZ as fc, a_ as Kr, a$ as Vc, b0 as vc, b1 as gc, b2 as Fc, b3 as hc, b4 as pc, b5 as qc, b6 as yc, b7 as ld, b8 as Yc, b9 as Pn, ba as to, bb as Ln, bc as zn, bd as Zr } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-BGpdMIsq.mjs";
6
6
  import { be as vT, bf as gT, bN as FT, bO as hT, br as pT, bq as qT, bG as yT, bI as YT, bJ as XT, bH as AT, bK as bT, bD as xT, bw as CT, by as kT, bB as IT, bt as wT, bv as ST, bu as KT, bz as DT, bx as TT, bE as ET, bR as MT, bS as $T, bQ as BT, bF as _T, bi as PT, bh as LT, bP as zT, bm as RT, bl as UT, bp as NT, bj as OT, bk as jT, bn as HT, bo as WT, bC as GT, bs as JT, bL as ZT, bM as QT, bg as e3, bA as t3 } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-BGpdMIsq.mjs";
7
7
  import { VAlert as Fi } from "vuetify/components/VAlert";
8
- import { VIcon as ie } from "vuetify/components/VIcon";
8
+ import { VIcon as oe } from "vuetify/components/VIcon";
9
9
  import { VProgressCircular as Le } from "vuetify/components/VProgressCircular";
10
10
  import { VCard as st, VCardText as ms, VCardActions as Wt, VCardItem as nr } from "vuetify/components/VCard";
11
11
  import { VTextarea as dd } from "vuetify/components/VTextarea";
@@ -92,7 +92,7 @@ const Lc = { key: 1 }, sn = /* @__PURE__ */ H({
92
92
  density: "compact"
93
93
  }, {
94
94
  close: f(() => [
95
- u(ie, {
95
+ u(oe, {
96
96
  icon: "mdi-close",
97
97
  onClick: Z(o.close, ["stop"])
98
98
  }, null, 8, ["onClick"])
@@ -212,7 +212,7 @@ const Lc = { key: 1 }, sn = /* @__PURE__ */ H({
212
212
  i.value?.blur();
213
213
  });
214
214
  }
215
- const { t: m } = ae(), V = ct(za, void 0), g = ct(Ra, void 0), h = (y) => {
215
+ const { t: m } = ae(), V = ft(za, void 0), g = ft(Ra, void 0), h = (y) => {
216
216
  o("update:modelValue", y);
217
217
  }, F = () => {
218
218
  o("blur", s.modelValue), s.v?.$touch(), n.value(s.modelValue);
@@ -292,7 +292,7 @@ const Lc = { key: 1 }, sn = /* @__PURE__ */ H({
292
292
  e.help ? {
293
293
  name: "append",
294
294
  fn: f(() => [
295
- ra(u(ie, { icon: "mdi-help-circle-outline" }, null, 512), [
295
+ ra(u(oe, { icon: "mdi-help-circle-outline" }, null, 512), [
296
296
  [ud, e.help]
297
297
  ])
298
298
  ]),
@@ -358,7 +358,7 @@ const Lc = { key: 1 }, sn = /* @__PURE__ */ H({
358
358
  "data-cy": "table-size"
359
359
  }, {
360
360
  default: f(() => [
361
- (v(!0), K(ve, null, nt(e.itemsPerPageOptions, (X) => (v(), x(te, {
361
+ (v(!0), K(ge, null, nt(e.itemsPerPageOptions, (X) => (v(), x(te, {
362
362
  key: X,
363
363
  color: X === o.value.rowsPerPage ? "secondary" : "",
364
364
  value: X,
@@ -440,7 +440,7 @@ const Lc = { key: 1 }, sn = /* @__PURE__ */ H({
440
440
  variant: "text"
441
441
  }, {
442
442
  default: f(() => [
443
- u(ie, { icon: "mdi-cog" }),
443
+ u(oe, { icon: "mdi-cog" }),
444
444
  u(be, {
445
445
  activator: "parent",
446
446
  location: "bottom"
@@ -470,18 +470,18 @@ const Lc = { key: 1 }, sn = /* @__PURE__ */ H({
470
470
  ]),
471
471
  _: 1
472
472
  }),
473
- (v(!0), K(ve, null, nt(e.columnsAll, (c) => (v(), x(je, {
473
+ (v(!0), K(ge, null, nt(e.columnsAll, (c) => (v(), x(je, {
474
474
  key: c.key,
475
475
  onClick: Z((m) => r(c.key), ["stop"])
476
476
  }, {
477
477
  default: f(() => [
478
478
  u(sa, null, {
479
479
  default: f(() => [
480
- i(c.key) ? (v(), x(ie, {
480
+ i(c.key) ? (v(), x(oe, {
481
481
  key: 0,
482
482
  class: "mr-2",
483
483
  icon: "mdi-checkbox-marked"
484
- })) : (v(), x(ie, {
484
+ })) : (v(), x(oe, {
485
485
  key: 1,
486
486
  class: "mr-2",
487
487
  icon: "mdi-checkbox-blank-outline"
@@ -602,7 +602,7 @@ const Lc = { key: 1 }, sn = /* @__PURE__ */ H({
602
602
  class: "pa-0"
603
603
  }, {
604
604
  default: f(() => [
605
- (v(!0), K(ve, null, nt(V.value, (p) => (v(), x(je, {
605
+ (v(!0), K(ge, null, nt(V.value, (p) => (v(), x(je, {
606
606
  key: p.id,
607
607
  onClick: (q) => g(p)
608
608
  }, {
@@ -781,7 +781,7 @@ const Lc = { key: 1 }, sn = /* @__PURE__ */ H({
781
781
  icon: ""
782
782
  }, {
783
783
  default: f(() => [
784
- u(ie, { icon: "mdi-dots-grid" }),
784
+ u(oe, { icon: "mdi-dots-grid" }),
785
785
  u(be, {
786
786
  activator: "parent",
787
787
  location: "top"
@@ -796,7 +796,7 @@ const Lc = { key: 1 }, sn = /* @__PURE__ */ H({
796
796
  u(st, null, {
797
797
  default: f(() => [
798
798
  B("div", om, [
799
- (v(!0), K(ve, null, nt(s.value, (r) => (v(), K("a", {
799
+ (v(!0), K(ge, null, nt(s.value, (r) => (v(), K("a", {
800
800
  key: r.id,
801
801
  href: r.url,
802
802
  rel: "noopener noreferrer",
@@ -840,7 +840,7 @@ const rK = /* @__PURE__ */ na(dm, [["render", um]]), cm = { class: "d-flex align
840
840
  },
841
841
  setup(e) {
842
842
  const a = e, t = I(() => As(a.data.createdAt)), s = I(() => As(a.data.modifiedAt)), { t: o } = ae();
843
- return (i, r) => (v(), K(ve, null, [
843
+ return (i, r) => (v(), K(ge, null, [
844
844
  u(Oe, {
845
845
  title: d(o)("common.model.tracking.created")
846
846
  }, {
@@ -1039,7 +1039,7 @@ const lK = /* @__PURE__ */ H({
1039
1039
  class: "override-toggle"
1040
1040
  }, {
1041
1041
  default: f(() => [
1042
- (v(!0), K(ve, null, nt(d(n), (y, S) => (v(), x(te, {
1042
+ (v(!0), K(ge, null, nt(d(n), (y, S) => (v(), x(te, {
1043
1043
  key: S,
1044
1044
  size: "small",
1045
1045
  value: y
@@ -1106,7 +1106,7 @@ const lK = /* @__PURE__ */ H({
1106
1106
  onClick: Z(o, ["stop"])
1107
1107
  }, {
1108
1108
  default: f(() => [
1109
- u(ie, { icon: i.value }, null, 8, ["icon"]),
1109
+ u(oe, { icon: i.value }, null, 8, ["icon"]),
1110
1110
  u(be, {
1111
1111
  activator: "parent",
1112
1112
  location: "bottom"
@@ -1138,7 +1138,7 @@ const lK = /* @__PURE__ */ H({
1138
1138
  }, i = () => {
1139
1139
  s.value = !s.value;
1140
1140
  };
1141
- return (r, n) => (v(), K(ve, null, [
1141
+ return (r, n) => (v(), K(ge, null, [
1142
1142
  e.enableTop ? (v(), x(Fe, {
1143
1143
  key: 0,
1144
1144
  density: "comfortable"
@@ -1253,7 +1253,7 @@ const fK = /* @__PURE__ */ H({
1253
1253
  class: "text-disabled"
1254
1254
  }, {
1255
1255
  default: f(() => [
1256
- (v(!0), K(ve, null, nt(e.availableGrants, (l) => (v(), x(te, {
1256
+ (v(!0), K(ge, null, nt(e.availableGrants, (l) => (v(), x(te, {
1257
1257
  key: l,
1258
1258
  value: l,
1259
1259
  color: d(i)(l)?.color
@@ -1516,7 +1516,7 @@ const bm = /* @__PURE__ */ H({
1516
1516
  { immediate: !0 }
1517
1517
  );
1518
1518
  }
1519
- const { t: m } = ae(), V = ct(za, void 0), g = ct(Ra, void 0), h = T(!1), F = T(!1), p = T(!1), q = () => {
1519
+ const { t: m } = ae(), V = ft(za, void 0), g = ft(Ra, void 0), h = T(!1), F = T(!1), p = T(!1), q = () => {
1520
1520
  F.value = !1, s("blur", _(t.modelValue) ? null : t.modelValue), t.v?.$touch(), p.value === !1 && r.value(t.modelValue);
1521
1521
  }, w = () => {
1522
1522
  F.value = !0, l.value();
@@ -1562,7 +1562,7 @@ const bm = /* @__PURE__ */ H({
1562
1562
  }, S = I(() => we(t.disabled) ? t.disabled : !!c.value);
1563
1563
  return Xe(o, (C, P) => {
1564
1564
  C !== P && i.value.enabled && (F.value || p.value) && n.value(C);
1565
- }), (C, P) => (v(), K(ve, null, [
1565
+ }), (C, P) => (v(), K(ge, null, [
1566
1566
  B("div", xm, [
1567
1567
  u(Bi, {
1568
1568
  modelValue: h.value,
@@ -1703,7 +1703,7 @@ const bm = /* @__PURE__ */ H({
1703
1703
  { immediate: !0 }
1704
1704
  );
1705
1705
  }
1706
- const h = T(""), F = T(!1), p = T(void 0), { t: q } = ae(), { innerFilter: w } = Cs(t), b = ct(za, void 0), D = ct(Ra, void 0), Y = () => {
1706
+ const h = T(""), F = T(!1), p = T(void 0), { t: q } = ae(), { innerFilter: w } = Cs(t), b = ft(za, void 0), D = ft(Ra, void 0), Y = () => {
1707
1707
  F.value = !1, s("blur", o.value), t.v?.$touch(), c.value(o.value);
1708
1708
  }, X = I(() => we(t.errorMessage) ? [t.errorMessage] : t.v?.$errors?.length ? t.v.$errors.map((Q) => Q.$message) : []), y = I(() => {
1709
1709
  if (we(t.label)) return t.label;
@@ -1745,7 +1745,7 @@ const bm = /* @__PURE__ */ H({
1745
1745
  }, ee = I(() => {
1746
1746
  if (!t.multiple && U.value[0])
1747
1747
  return U.value[0].title;
1748
- }), ge = (Q) => {
1748
+ }), ve = (Q) => {
1749
1749
  !t.multiple && !F.value && Q.length === 0 || ee.value !== Q && (h.value = Q);
1750
1750
  }, ce = async () => {
1751
1751
  if ($.value = await t.fetchItems(W, w.value), t.multiple) {
@@ -1763,7 +1763,7 @@ const bm = /* @__PURE__ */ H({
1763
1763
  ), Xe(h, (Q, Ye) => {
1764
1764
  Q !== Ye && s("searchChange", Q);
1765
1765
  });
1766
- const oe = (Q) => {
1766
+ const se = (Q) => {
1767
1767
  if (et(Q))
1768
1768
  return Q.map((he) => {
1769
1769
  const me = N.value.find((Se) => Se.value === he);
@@ -1784,18 +1784,18 @@ const bm = /* @__PURE__ */ H({
1784
1784
  return;
1785
1785
  }
1786
1786
  if (await R(Q)) {
1787
- const Se = oe(Q);
1787
+ const Se = se(Q);
1788
1788
  i.value = Se, r.value = Se;
1789
1789
  return;
1790
1790
  }
1791
1791
  if (et(Q)) {
1792
1792
  k.value = !0, U.value = await t.fetchItemsByIds(Q);
1793
- const Se = oe(Q);
1793
+ const Se = se(Q);
1794
1794
  i.value = Se, r.value = Se, k.value = !1;
1795
1795
  return;
1796
1796
  }
1797
1797
  k.value = !0, U.value = await t.fetchItemsByIds([Q]);
1798
- const me = oe(Q);
1798
+ const me = se(Q);
1799
1799
  i.value = me, r.value = me, k.value = !1;
1800
1800
  },
1801
1801
  { immediate: !0 }
@@ -1824,7 +1824,7 @@ const bm = /* @__PURE__ */ H({
1824
1824
  disabled: C.value,
1825
1825
  "return-object": "",
1826
1826
  autocomplete: "off",
1827
- "onUpdate:search": ge,
1827
+ "onUpdate:search": ve,
1828
1828
  "onUpdate:modelValue": _e,
1829
1829
  onBlur: Y,
1830
1830
  onFocus: de,
@@ -1888,7 +1888,7 @@ const bm = /* @__PURE__ */ H({
1888
1888
  },
1889
1889
  emits: ["update:modelValue"],
1890
1890
  setup(e, { emit: a }) {
1891
- const t = e, s = a, { t: o } = ae(), i = ct(za, void 0), r = ct(Ra, void 0), n = I(() => {
1891
+ const t = e, s = a, { t: o } = ae(), i = ft(za, void 0), r = ft(Ra, void 0), n = I(() => {
1892
1892
  if (!_(t.label)) return t.label;
1893
1893
  if (_(i) || _(r) || _(t.v?.$path)) return "";
1894
1894
  const { end: F } = us(t.v?.$path, ".");
@@ -1935,7 +1935,7 @@ const bm = /* @__PURE__ */ H({
1935
1935
  },
1936
1936
  emits: ["update:modelValue"],
1937
1937
  setup(e, { emit: a }) {
1938
- const t = e, s = a, { t: o } = ae(), i = ct(za, void 0), r = ct(Ra, void 0), n = I(() => {
1938
+ const t = e, s = a, { t: o } = ae(), i = ft(za, void 0), r = ft(Ra, void 0), n = I(() => {
1939
1939
  if (!_(t.label)) return t.label;
1940
1940
  if (_(i) || _(r) || _(t.v?.$path)) return "";
1941
1941
  const { end: F } = us(t.v?.$path, ".");
@@ -1978,7 +1978,7 @@ const bm = /* @__PURE__ */ H({
1978
1978
  c.value ? {
1979
1979
  name: "append",
1980
1980
  fn: f(() => [
1981
- u(ie, {
1981
+ u(oe, {
1982
1982
  icon: "mdi-alert",
1983
1983
  class: "ml-5 mt-1",
1984
1984
  size: "x-small",
@@ -2041,7 +2041,7 @@ const bm = /* @__PURE__ */ H({
2041
2041
  { immediate: !0 }
2042
2042
  );
2043
2043
  }
2044
- const m = ct(za, void 0), V = ct(Ra, void 0), { t: g } = ae(), h = T(!1), F = () => {
2044
+ const m = ft(za, void 0), V = ft(Ra, void 0), { t: g } = ae(), h = T(!1), F = () => {
2045
2045
  h.value = !1, s("blur", t.modelValue), t.v?.$touch(), r.value(t.modelValue);
2046
2046
  }, p = () => {
2047
2047
  h.value = !0, s("focus", t.modelValue), l.value();
@@ -2755,7 +2755,7 @@ const bK = /* @__PURE__ */ H({
2755
2755
  onClick: Z(r, ["stop"])
2756
2756
  }, [
2757
2757
  B("span", null, A(e.value), 1),
2758
- d(s) ? (v(), x(ie, {
2758
+ d(s) ? (v(), x(oe, {
2759
2759
  key: 0,
2760
2760
  class: "ml-1",
2761
2761
  size: "x-small",
@@ -2789,23 +2789,23 @@ const bK = /* @__PURE__ */ H({
2789
2789
  size: { default: "default" }
2790
2790
  },
2791
2791
  setup(e) {
2792
- return (a, t) => d(ne)(e.secondaryIcon) ? d(ne)(e.secondaryText) ? (v(), x(ie, {
2792
+ return (a, t) => d(ne)(e.secondaryIcon) ? d(ne)(e.secondaryText) ? (v(), x(oe, {
2793
2793
  key: 2,
2794
2794
  icon: e.mainIcon
2795
2795
  }, null, 8, ["icon"])) : (v(), K("div", Hm, [
2796
- u(ie, {
2796
+ u(oe, {
2797
2797
  size: e.size,
2798
2798
  class: "anzu-icon-group__main-icon",
2799
2799
  icon: e.mainIcon
2800
2800
  }, null, 8, ["size", "icon"]),
2801
2801
  B("div", Wm, A(e.secondaryText), 1)
2802
2802
  ])) : (v(), K("div", jm, [
2803
- u(ie, {
2803
+ u(oe, {
2804
2804
  size: e.size,
2805
2805
  class: "anzu-icon-group__main-icon",
2806
2806
  icon: e.mainIcon
2807
2807
  }, null, 8, ["size", "icon"]),
2808
- u(ie, {
2808
+ u(oe, {
2809
2809
  size: e.size,
2810
2810
  class: "anzu-icon-group__secondary-icon",
2811
2811
  icon: e.secondaryIcon
@@ -2874,11 +2874,11 @@ function ef(e, a = !1, t = void 0, s = void 0, o = !1) {
2874
2874
  fe.room === e && we(w.value) && w.value();
2875
2875
  }, ee = (fe) => {
2876
2876
  fe.room === e && we(Y.value) && Y.value();
2877
- }, ge = (fe) => {
2877
+ }, ve = (fe) => {
2878
2878
  fe.room === e && we(S.value) && S.value(fe.userId, fe.timestamp);
2879
2879
  }, ce = (fe) => {
2880
2880
  fe.room === e && we(W.value) && W.value();
2881
- }, oe = (fe) => {
2881
+ }, se = (fe) => {
2882
2882
  fe.room === e && we(N.value) && N.value();
2883
2883
  }, _e = (fe) => {
2884
2884
  fe.room === e && we(z.value) && z.value();
@@ -2896,12 +2896,12 @@ function ef(e, a = !1, t = void 0, s = void 0, o = !1) {
2896
2896
  );
2897
2897
  }, Se = (fe) => {
2898
2898
  S.value = fe, y.value = X.on(
2899
- ge
2899
+ ve
2900
2900
  );
2901
2901
  }, Ke = (fe) => {
2902
2902
  W.value = fe, P.value = C.on(ce);
2903
2903
  }, Ae = (fe) => {
2904
- N.value = fe, U.value = $.on(oe);
2904
+ N.value = fe, U.value = $.on(se);
2905
2905
  }, De = (fe) => {
2906
2906
  V.value = fe, m.value = c.on(j);
2907
2907
  }, it = (fe) => {
@@ -2916,12 +2916,12 @@ function ef(e, a = !1, t = void 0, s = void 0, o = !1) {
2916
2916
  md(() => {
2917
2917
  o || (we(h.value) && h.value(), we(q.value) && q.value(), we(D.value) && D.value(), we(y.value) && y.value(), we(P.value) && P.value(), we(U.value) && U.value(), we(L.value) && L.value(), we(R.value) && R.value());
2918
2918
  });
2919
- const { collabOptions: dt } = La(), Te = () => {
2920
- !dt.value.enabled || _(i.value) || i.value.emit("subscribeCollabRoomInfo", e, (fe) => {
2919
+ const { collabOptions: ut } = La(), Te = () => {
2920
+ !ut.value.enabled || _(i.value) || i.value.emit("subscribeCollabRoomInfo", e, (fe) => {
2921
2921
  r.set(e, fe.room);
2922
2922
  });
2923
2923
  }, Re = () => {
2924
- !dt.value.enabled || _(i.value) || i.value.emit(
2924
+ !ut.value.enabled || _(i.value) || i.value.emit(
2925
2925
  "unsubscribeCollabRoomInfo",
2926
2926
  e,
2927
2927
  (fe) => {
@@ -2929,7 +2929,7 @@ function ef(e, a = !1, t = void 0, s = void 0, o = !1) {
2929
2929
  }
2930
2930
  );
2931
2931
  }, fa = async (fe = {}) => new Promise((Ct, Kt) => {
2932
- if (!dt.value.enabled || _(i.value))
2932
+ if (!ut.value.enabled || _(i.value))
2933
2933
  return Kt($n.Failed);
2934
2934
  i.value?.timeout(5e3).emit("joinCollabRoom", e, fe, (Bt, ba) => {
2935
2935
  if (Bt)
@@ -2939,13 +2939,13 @@ function ef(e, a = !1, t = void 0, s = void 0, o = !1) {
2939
2939
  Kt(ba.status);
2940
2940
  });
2941
2941
  }), St = () => {
2942
- !dt.value.enabled || _(i.value) || i.value.emit("leaveCollabRoom", e, (fe) => {
2942
+ !ut.value.enabled || _(i.value) || i.value.emit("leaveCollabRoom", e, (fe) => {
2943
2943
  Mn(fe) && r.set(e, fe.room);
2944
2944
  });
2945
2945
  }, yt = () => {
2946
- !dt.value.enabled || _(i.value) || i.value?.emit("enteredCollabRoom", e);
2946
+ !ut.value.enabled || _(i.value) || i.value?.emit("enteredCollabRoom", e);
2947
2947
  }, bt = () => new Promise((fe, Ct) => {
2948
- if (!dt.value.enabled || _(i.value))
2948
+ if (!ut.value.enabled || _(i.value))
2949
2949
  return Ct(Ao.Failed);
2950
2950
  i.value?.timeout(2e3).emit(
2951
2951
  "requestToJoin",
@@ -2960,11 +2960,11 @@ function ef(e, a = !1, t = void 0, s = void 0, o = !1) {
2960
2960
  }
2961
2961
  );
2962
2962
  }), ue = (fe) => {
2963
- !dt.value.enabled || _(i.value) || i.value.emit("approveRequestToJoin", e, fe);
2963
+ !ut.value.enabled || _(i.value) || i.value.emit("approveRequestToJoin", e, fe);
2964
2964
  }, qe = (fe) => {
2965
- !dt.value.enabled || _(i.value) || i.value.emit("rejectRequestToJoin", e, fe);
2965
+ !ut.value.enabled || _(i.value) || i.value.emit("rejectRequestToJoin", e, fe);
2966
2966
  }, Me = async () => new Promise((fe, Ct) => {
2967
- if (!dt.value.enabled || _(i.value))
2967
+ if (!ut.value.enabled || _(i.value))
2968
2968
  return Ct(Xo.Failed);
2969
2969
  i.value?.timeout(2e3).emit(
2970
2970
  "requestToTakeModeration",
@@ -2979,15 +2979,15 @@ function ef(e, a = !1, t = void 0, s = void 0, o = !1) {
2979
2979
  }
2980
2980
  );
2981
2981
  }), Pe = () => {
2982
- !dt.value.enabled || _(i.value) || i.value.emit("approveRequestToTakeModeration", e);
2983
- }, mt = () => {
2984
- !dt.value.enabled || _(i.value) || i.value.emit("rejectRequestToTakeModeration", e);
2982
+ !ut.value.enabled || _(i.value) || i.value.emit("approveRequestToTakeModeration", e);
2983
+ }, Vt = () => {
2984
+ !ut.value.enabled || _(i.value) || i.value.emit("rejectRequestToTakeModeration", e);
2985
2985
  }, Rt = (fe) => {
2986
- !dt.value.enabled || _(i.value) || i.value.emit("kickUserFromRoom", e, fe);
2987
- }, ft = () => {
2988
- !dt.value.enabled || _(i.value) || i.value.emit("purgeRoom", e);
2986
+ !ut.value.enabled || _(i.value) || i.value.emit("kickUserFromRoom", e, fe);
2987
+ }, dt = () => {
2988
+ !ut.value.enabled || _(i.value) || i.value.emit("purgeRoom", e);
2989
2989
  }, $e = (fe) => {
2990
- !dt.value.enabled || _(i.value) || i.value.emit("transferModeration", e, fe);
2990
+ !ut.value.enabled || _(i.value) || i.value.emit("transferModeration", e, fe);
2991
2991
  }, vt = () => ({
2992
2992
  name: "",
2993
2993
  status: xt.Inactive,
@@ -2997,7 +2997,7 @@ function ef(e, a = !1, t = void 0, s = void 0, o = !1) {
2997
2997
  }), la = async (fe) => {
2998
2998
  const Ct = vt();
2999
2999
  return new Promise((Kt) => {
3000
- if (!dt.value.enabled || _(i.value))
3000
+ if (!ut.value.enabled || _(i.value))
3001
3001
  return Kt(Ct);
3002
3002
  i.value?.timeout(500).emit("fetchRoomsInfo", [fe], (Bt, ba) => {
3003
3003
  if (Bt) return void Kt(Ct);
@@ -3028,13 +3028,13 @@ function ef(e, a = !1, t = void 0, s = void 0, o = !1) {
3028
3028
  addRejectedJoinRequestListener: me,
3029
3029
  requestToTakeModeration: Me,
3030
3030
  approveRequestToTakeModeration: Pe,
3031
- rejectRequestToTakeModeration: mt,
3031
+ rejectRequestToTakeModeration: Vt,
3032
3032
  addRequestToTakeModerationListener: Se,
3033
3033
  addApprovedRequestToTakeModerationListener: Ke,
3034
3034
  addRejectedRequestToTakeModerationListener: Ae,
3035
3035
  enteredCollabRoom: yt,
3036
3036
  kickUserFromRoom: Rt,
3037
- purgeRoom: ft,
3037
+ purgeRoom: dt,
3038
3038
  transferModeration: $e,
3039
3039
  addKickedFromRoomListener: it,
3040
3040
  addCollabStartingListener: ze,
@@ -3101,11 +3101,11 @@ const tf = { class: "ml-3" }, af = { class: "ml-1" }, xK = /* @__PURE__ */ H({
3101
3101
  });
3102
3102
  const O = () => {
3103
3103
  z.value = !1;
3104
- }, R = I(() => L.value === null && o.value.users.length && !o.value.users.includes(C.value ?? 0) && !z.value), J = I(() => t.isEdit && o.value.status === xt.Active && o.value.moderator !== C.value), j = I(() => U.value && o.value.status === xt.Active), G = I(() => t.isEdit && o.value.status === xt.Active), de = I(() => t.isEdit && o.value.moderator === C.value && o.value.status === xt.Active), ee = I(() => !t.isEdit && Y.value.has(t.collabRoom) && L.value === null), ge = I(() => o.value.users.filter((Te) => Te !== o.value.moderator)), ce = (Te) => {
3104
+ }, R = I(() => L.value === null && o.value.users.length && !o.value.users.includes(C.value ?? 0) && !z.value), J = I(() => t.isEdit && o.value.status === xt.Active && o.value.moderator !== C.value), j = I(() => U.value && o.value.status === xt.Active), G = I(() => t.isEdit && o.value.status === xt.Active), de = I(() => t.isEdit && o.value.moderator === C.value && o.value.status === xt.Active), ee = I(() => !t.isEdit && Y.value.has(t.collabRoom) && L.value === null), ve = I(() => o.value.users.filter((Te) => Te !== o.value.moderator)), ce = (Te) => {
3105
3105
  P.value = P.value.filter(
3106
3106
  (Re) => Re.userId !== Te
3107
3107
  ), W.value = W.value.filter((Re) => Re !== Te);
3108
- }, oe = async () => {
3108
+ }, se = async () => {
3109
3109
  try {
3110
3110
  await r(), z.value = !0;
3111
3111
  } catch (Te) {
@@ -3145,7 +3145,7 @@ const tf = { class: "ml-3" }, af = { class: "ml-1" }, xK = /* @__PURE__ */ H({
3145
3145
  b();
3146
3146
  }, ze = () => {
3147
3147
  w(C.value ?? 0);
3148
- }, dt = (Te) => Math.ceil((6e4 - ((/* @__PURE__ */ new Date()).getTime() - Te)) / 1e3);
3148
+ }, ut = (Te) => Math.ceil((6e4 - ((/* @__PURE__ */ new Date()).getTime() - Te)) / 1e3);
3149
3149
  return (Te, Re) => {
3150
3150
  const fa = Be("ABtnSecondary"), St = Be("ABtnIcon"), yt = Be("ABtnTertiary"), bt = Be("ABtnPrimary");
3151
3151
  return v(), K("div", null, [
@@ -3160,13 +3160,13 @@ const tf = { class: "ml-3" }, af = { class: "ml-1" }, xK = /* @__PURE__ */ H({
3160
3160
  style: { height: "16px" },
3161
3161
  vertical: ""
3162
3162
  }),
3163
- (v(!0), K(ve, null, nt(ge.value, (ue) => (v(), x(pa, {
3163
+ (v(!0), K(ge, null, nt(ve.value, (ue) => (v(), x(pa, {
3164
3164
  id: ue,
3165
3165
  key: ue,
3166
3166
  users: e.cachedUsers,
3167
3167
  class: "mx-1"
3168
3168
  }, null, 8, ["id", "users"]))), 128)),
3169
- ge.value.length > 0 ? (v(), x(ls, {
3169
+ ve.value.length > 0 ? (v(), x(ls, {
3170
3170
  key: 1,
3171
3171
  class: "ml-1 mr-2",
3172
3172
  style: { height: "16px" },
@@ -3175,7 +3175,7 @@ const tf = { class: "ml-3" }, af = { class: "ml-1" }, xK = /* @__PURE__ */ H({
3175
3175
  R.value ? (v(), x(fa, {
3176
3176
  key: 2,
3177
3177
  size: "small",
3178
- onClick: oe
3178
+ onClick: se
3179
3179
  }, {
3180
3180
  default: f(() => [
3181
3181
  M(A(d(X)("common.collab.requestToCollaborate")), 1)
@@ -3188,7 +3188,7 @@ const tf = { class: "ml-3" }, af = { class: "ml-1" }, xK = /* @__PURE__ */ H({
3188
3188
  variant: "text"
3189
3189
  }, {
3190
3190
  default: f(() => [
3191
- u(ie, {
3191
+ u(oe, {
3192
3192
  class: "mr-1",
3193
3193
  icon: "mdi-loading mdi-spin"
3194
3194
  }),
@@ -3206,7 +3206,7 @@ const tf = { class: "ml-3" }, af = { class: "ml-1" }, xK = /* @__PURE__ */ H({
3206
3206
  onClick: _e
3207
3207
  }, {
3208
3208
  default: f(() => [
3209
- u(ie, { icon: "mdi-account-details-outline" }),
3209
+ u(oe, { icon: "mdi-account-details-outline" }),
3210
3210
  u(be, {
3211
3211
  anchor: "bottom",
3212
3212
  activator: "parent",
@@ -3237,7 +3237,7 @@ const tf = { class: "ml-3" }, af = { class: "ml-1" }, xK = /* @__PURE__ */ H({
3237
3237
  "select-strategy": "independent"
3238
3238
  }, {
3239
3239
  default: f(() => [
3240
- (v(!0), K(ve, null, nt(P.value, (ue) => (v(), x(je, {
3240
+ (v(!0), K(ge, null, nt(P.value, (ue) => (v(), x(je, {
3241
3241
  key: ue.userId,
3242
3242
  value: ue.userId
3243
3243
  }, {
@@ -3250,7 +3250,7 @@ const tf = { class: "ml-3" }, af = { class: "ml-1" }, xK = /* @__PURE__ */ H({
3250
3250
  title: f(() => [
3251
3251
  u(so, {
3252
3252
  class: "ml-3",
3253
- seconds: dt(ue.timestamp),
3253
+ seconds: ut(ue.timestamp),
3254
3254
  label: d(X)("common.collab.approvedAfterCountdown"),
3255
3255
  onDone: () => ce(ue.userId)
3256
3256
  }, null, 8, ["seconds", "label", "onDone"])
@@ -3320,7 +3320,7 @@ const tf = { class: "ml-3" }, af = { class: "ml-1" }, xK = /* @__PURE__ */ H({
3320
3320
  default: f(() => [
3321
3321
  u(ta, null, {
3322
3322
  default: f(() => [
3323
- (v(!0), K(ve, null, nt($.value, (ue) => (v(), x(je, {
3323
+ (v(!0), K(ge, null, nt($.value, (ue) => (v(), x(je, {
3324
3324
  key: ue,
3325
3325
  link: !1
3326
3326
  }, {
@@ -3386,7 +3386,7 @@ const tf = { class: "ml-3" }, af = { class: "ml-1" }, xK = /* @__PURE__ */ H({
3386
3386
  onClick: Q
3387
3387
  }, {
3388
3388
  default: f(() => [
3389
- u(ie, { icon: "mdi-account-switch" }),
3389
+ u(oe, { icon: "mdi-account-switch" }),
3390
3390
  u(be, {
3391
3391
  anchor: "bottom",
3392
3392
  activator: "parent",
@@ -3482,7 +3482,7 @@ const tf = { class: "ml-3" }, af = { class: "ml-1" }, xK = /* @__PURE__ */ H({
3482
3482
  M(A(d(X)("common.collab.button.accept")) + " ", 1),
3483
3483
  u(so, {
3484
3484
  parentheses: "",
3485
- seconds: dt(k.value.timestamp),
3485
+ seconds: ut(k.value.timestamp),
3486
3486
  onDone: me
3487
3487
  }, null, 8, ["seconds"])
3488
3488
  ]),
@@ -3532,7 +3532,7 @@ const tf = { class: "ml-3" }, af = { class: "ml-1" }, xK = /* @__PURE__ */ H({
3532
3532
  }),
3533
3533
  R.value ? (v(), x(bt, {
3534
3534
  key: 0,
3535
- onClick: oe
3535
+ onClick: se
3536
3536
  }, {
3537
3537
  default: f(() => [
3538
3538
  M(A(d(X)("common.collab.requestToCollaborate")), 1)
@@ -3544,7 +3544,7 @@ const tf = { class: "ml-3" }, af = { class: "ml-1" }, xK = /* @__PURE__ */ H({
3544
3544
  variant: "text"
3545
3545
  }, {
3546
3546
  default: f(() => [
3547
- u(ie, {
3547
+ u(oe, {
3548
3548
  class: "mr-1",
3549
3549
  icon: "mdi-loading mdi-spin"
3550
3550
  }),
@@ -3579,7 +3579,7 @@ const tf = { class: "ml-3" }, af = { class: "ml-1" }, xK = /* @__PURE__ */ H({
3579
3579
  },
3580
3580
  setup(e) {
3581
3581
  const { t: a } = ae();
3582
- return (t, s) => (v(), K(ve, null, [
3582
+ return (t, s) => (v(), K(ge, null, [
3583
3583
  e.hideCreatedAt ? E("", !0) : (v(), x(Oe, {
3584
3584
  key: 0,
3585
3585
  title: d(a)("common.model.tracking.created")
@@ -3632,7 +3632,7 @@ const tf = { class: "ml-3" }, af = { class: "ml-1" }, xK = /* @__PURE__ */ H({
3632
3632
  onClick: d(s)
3633
3633
  }, {
3634
3634
  default: f(() => [
3635
- u(ie, { icon: "mdi-close" }),
3635
+ u(oe, { icon: "mdi-close" }),
3636
3636
  u(be, {
3637
3637
  activator: "parent",
3638
3638
  location: "bottom"
@@ -3715,7 +3715,7 @@ const IK = /* @__PURE__ */ H({
3715
3715
  onClick: Z(r, ["stop"])
3716
3716
  }, {
3717
3717
  default: f(() => [
3718
- u(ie, { icon: "mdi-close" }),
3718
+ u(oe, { icon: "mdi-close" }),
3719
3719
  u(be, {
3720
3720
  activator: "parent",
3721
3721
  location: "bottom"
@@ -3763,7 +3763,7 @@ const IK = /* @__PURE__ */ H({
3763
3763
  height: e.size
3764
3764
  }, {
3765
3765
  default: f(() => [
3766
- u(ie, { icon: "mdi-content-save" }),
3766
+ u(oe, { icon: "mdi-content-save" }),
3767
3767
  u(be, {
3768
3768
  activator: "parent",
3769
3769
  location: "bottom"
@@ -3837,7 +3837,7 @@ const IK = /* @__PURE__ */ H({
3837
3837
  });
3838
3838
  return (g, h) => {
3839
3839
  const F = Be("ABtnTertiary"), p = Be("ABtnPrimary");
3840
- return v(), K(ve, null, [
3840
+ return v(), K(ge, null, [
3841
3841
  e.variant === "icon" ? (v(), x(te, {
3842
3842
  key: 0,
3843
3843
  class: pe(e.buttonClass),
@@ -3853,7 +3853,7 @@ const IK = /* @__PURE__ */ H({
3853
3853
  onClick: Z(r, ["stop"])
3854
3854
  }, {
3855
3855
  default: f(() => [
3856
- u(ie, { icon: "mdi-trash-can-outline" }),
3856
+ u(oe, { icon: "mdi-trash-can-outline" }),
3857
3857
  u(be, {
3858
3858
  activator: "parent",
3859
3859
  location: "bottom"
@@ -3976,7 +3976,7 @@ const IK = /* @__PURE__ */ H({
3976
3976
  onClick: Z(r, ["stop"])
3977
3977
  }, {
3978
3978
  default: f(() => [
3979
- u(ie, { icon: "mdi-content-save" }),
3979
+ u(oe, { icon: "mdi-content-save" }),
3980
3980
  u(be, {
3981
3981
  activator: "parent",
3982
3982
  location: "bottom"
@@ -4089,7 +4089,7 @@ const IK = /* @__PURE__ */ H({
4089
4089
  onClick: Z(o, ["stop"])
4090
4090
  }, {
4091
4091
  default: f(() => [
4092
- u(ie, { icon: "mdi-content-save" }),
4092
+ u(oe, { icon: "mdi-content-save" }),
4093
4093
  u(be, {
4094
4094
  activator: "parent",
4095
4095
  location: "bottom"
@@ -4190,7 +4190,7 @@ const IK = /* @__PURE__ */ H({
4190
4190
  }, ["stop"])
4191
4191
  }, {
4192
4192
  default: f(() => [
4193
- u(ie, { icon: "mdi-information-outline" }),
4193
+ u(oe, { icon: "mdi-information-outline" }),
4194
4194
  u(be, {
4195
4195
  activator: "parent",
4196
4196
  location: "bottom"
@@ -4228,7 +4228,7 @@ const IK = /* @__PURE__ */ H({
4228
4228
  }, ["stop"])
4229
4229
  }, {
4230
4230
  default: f(() => [
4231
- u(ie, { icon: "mdi-pencil" }),
4231
+ u(oe, { icon: "mdi-pencil" }),
4232
4232
  u(be, {
4233
4233
  activator: "parent",
4234
4234
  location: "bottom"
@@ -4335,7 +4335,7 @@ const IK = /* @__PURE__ */ H({
4335
4335
  class: "a-button-split__more"
4336
4336
  }, {
4337
4337
  default: f(() => [
4338
- u(ie, { icon: "mdi-chevron-down" }),
4338
+ u(oe, { icon: "mdi-chevron-down" }),
4339
4339
  u(ma, {
4340
4340
  activator: "parent",
4341
4341
  location: "bottom right"
@@ -4437,21 +4437,21 @@ const lf = { key: 0 }, df = { key: 1 }, uf = { key: 2 }, $K = /* @__PURE__ */ H(
4437
4437
  }), {
4438
4438
  default: f(() => [
4439
4439
  d(o) === d(Ht).Auto ? (v(), K("div", lf, [
4440
- u(ie, {
4440
+ u(oe, {
4441
4441
  class: "mr-1",
4442
4442
  icon: "mdi-brightness-auto",
4443
4443
  size: 32
4444
4444
  }),
4445
4445
  M(A(d(i)("common.system.theme.auto")), 1)
4446
4446
  ])) : d(o) === d(Ht).Light ? (v(), K("div", df, [
4447
- u(ie, {
4447
+ u(oe, {
4448
4448
  class: "mr-1",
4449
4449
  icon: "mdi-brightness-7",
4450
4450
  size: 32
4451
4451
  }),
4452
4452
  M(A(d(i)("common.system.theme.light")), 1)
4453
4453
  ])) : d(o) === d(Ht).Dark ? (v(), K("div", uf, [
4454
- u(ie, {
4454
+ u(oe, {
4455
4455
  class: "mr-1",
4456
4456
  icon: "mdi-brightness-4",
4457
4457
  size: 32
@@ -4472,7 +4472,7 @@ const lf = { key: 0 }, df = { key: 1 }, uf = { key: 2 }, $K = /* @__PURE__ */ H(
4472
4472
  onClick: Z(d(t), ["stop"])
4473
4473
  }, {
4474
4474
  prepend: f(() => [
4475
- u(ie, {
4475
+ u(oe, {
4476
4476
  class: "mr-2",
4477
4477
  icon: "mdi-brightness-auto"
4478
4478
  })
@@ -4484,7 +4484,7 @@ const lf = { key: 0 }, df = { key: 1 }, uf = { key: 2 }, $K = /* @__PURE__ */ H(
4484
4484
  onClick: Z(d(s), ["stop"])
4485
4485
  }, {
4486
4486
  prepend: f(() => [
4487
- u(ie, {
4487
+ u(oe, {
4488
4488
  class: "mr-2",
4489
4489
  icon: "mdi-brightness-7"
4490
4490
  })
@@ -4496,7 +4496,7 @@ const lf = { key: 0 }, df = { key: 1 }, uf = { key: 2 }, $K = /* @__PURE__ */ H(
4496
4496
  onClick: Z(d(a), ["stop"])
4497
4497
  }, {
4498
4498
  prepend: f(() => [
4499
- u(ie, {
4499
+ u(oe, {
4500
4500
  class: "mr-2",
4501
4501
  icon: "mdi-brightness-4"
4502
4502
  })
@@ -4621,7 +4621,7 @@ const Yf = /* @__PURE__ */ na(pf, [["render", yf]]), Xf = { class: "flag" }, Un
4621
4621
  },
4622
4622
  emits: ["afterChange"],
4623
4623
  setup(e, { emit: a }) {
4624
- const t = e, s = a, o = ct(Wl), i = ct(Gl), { setLanguage: r } = cf(o, i), { currentLanguageCode: n } = mf(), l = (V) => {
4624
+ const t = e, s = a, o = ft(Wl), i = ft(Gl), { setLanguage: r } = cf(o, i), { currentLanguageCode: n } = mf(), l = (V) => {
4625
4625
  r(V) && s("afterChange", V);
4626
4626
  }, c = I(() => {
4627
4627
  const V = xo.find((g) => g.code === n.value);
@@ -4660,7 +4660,7 @@ const Yf = /* @__PURE__ */ na(pf, [["render", yf]]), Xf = { class: "flag" }, Un
4660
4660
  default: f(() => [
4661
4661
  u(ta, { density: "compact" }, {
4662
4662
  default: f(() => [
4663
- (v(!0), K(ve, null, nt(m.value, (h) => (v(), x(je, {
4663
+ (v(!0), K(ge, null, nt(m.value, (h) => (v(), x(je, {
4664
4664
  key: h.code,
4665
4665
  onClick: Z((F) => l(h.code), ["stop"])
4666
4666
  }, {
@@ -5106,7 +5106,7 @@ const wf = { class: "text-center w-100 text-body-small pb-1" }, _K = /* @__PURE_
5106
5106
  Ie($)
5107
5107
  );
5108
5108
  }
5109
- }), { t: g } = ae(), h = ct(za, void 0), F = ct(Ra, void 0), p = T(!1), { innerFilter: q } = Cs(t), w = Ii(t.filterSortBy), b = () => {
5109
+ }), { t: g } = ae(), h = ft(za, void 0), F = ft(Ra, void 0), p = T(!1), { innerFilter: q } = Cs(t), w = Ii(t.filterSortBy), b = () => {
5110
5110
  p.value = !0, s("focus", V.value);
5111
5111
  }, D = () => {
5112
5112
  p.value = !1, t.v?.$touch(), s("blur", V.value);
@@ -5279,7 +5279,7 @@ const wf = { class: "text-center w-100 text-body-small pb-1" }, _K = /* @__PURE_
5279
5279
  return (t, s) => (v(), K("div", Lf, [
5280
5280
  B("div", zf, [
5281
5281
  B("h1", Rf, [
5282
- u(ie, {
5282
+ u(oe, {
5283
5283
  size: "x-large",
5284
5284
  icon: "mdi-emoticon-cry"
5285
5285
  }),
@@ -5309,7 +5309,7 @@ const wf = { class: "text-center w-100 text-body-small pb-1" }, _K = /* @__PURE_
5309
5309
  return (t, s) => (v(), K("div", Nf, [
5310
5310
  B("div", Of, [
5311
5311
  B("h1", jf, [
5312
- u(ie, {
5312
+ u(oe, {
5313
5313
  size: "x-large",
5314
5314
  icon: "mdi-emoticon-cry"
5315
5315
  }),
@@ -5352,7 +5352,7 @@ const wf = { class: "text-center w-100 text-body-small pb-1" }, _K = /* @__PURE_
5352
5352
  B("div", Gf, [
5353
5353
  le(a.$slots, "default", {}, () => [
5354
5354
  e.icon || e.title ? (v(), K("h1", Jf, [
5355
- e.icon ? (v(), x(ie, {
5355
+ e.icon ? (v(), x(oe, {
5356
5356
  key: 0,
5357
5357
  size: e.iconSize,
5358
5358
  icon: e.icon
@@ -5501,7 +5501,7 @@ const wf = { class: "text-center w-100 text-body-small pb-1" }, _K = /* @__PURE_
5501
5501
  emits: ["update:modelValue"],
5502
5502
  setup(e) {
5503
5503
  const a = tt(e, "modelValue"), { priorityLabels: t, getPriorityColor: s } = xd(), o = I(() => s(a.value.priority)), { t: i } = ae();
5504
- return (r, n) => (v(), K(ve, null, [
5504
+ return (r, n) => (v(), K(ge, null, [
5505
5505
  u(Oe, null, {
5506
5506
  default: f(() => [
5507
5507
  u(tc, {
@@ -5712,7 +5712,7 @@ const aV = {
5712
5712
  }
5713
5713
  ), a({
5714
5714
  activate: l
5715
- }), (F, p) => (v(), K(ve, null, [
5715
+ }), (F, p) => (v(), K(ge, null, [
5716
5716
  e.useDropzone ? (v(), x(Li, {
5717
5717
  key: 0,
5718
5718
  variant: e.dropzoneVariant,
@@ -5740,12 +5740,12 @@ const aV = {
5740
5740
  Draft: "draft",
5741
5741
  WithFile: "with_file",
5742
5742
  Deleting: "deleting"
5743
- }, Ho = Yt.Draft, se = {
5743
+ }, Ho = Yt.Draft, ie = {
5744
5744
  Image: "image",
5745
5745
  Audio: "audio",
5746
5746
  Video: "video",
5747
5747
  Document: "document"
5748
- }, Ai = se.Image, nV = "/adm/v1/asset-licence", Nn = (e, a) => Lt(e, nV + "/:id", { id: a }, "coreDam", "assetLicence"), kd = "/adm/v1/asset-custom-form", Id = "assetCustomForm", lV = (e, a, t) => Lt(
5748
+ }, Ai = ie.Image, nV = "/adm/v1/asset-licence", Nn = (e, a) => Lt(e, nV + "/:id", { id: a }, "coreDam", "assetLicence"), kd = "/adm/v1/asset-custom-form", Id = "assetCustomForm", lV = (e, a, t) => Lt(
5749
5749
  e,
5750
5750
  kd + "/ext-system/:extSystem/type/:assetType/element?order[position]=asc&limit=100",
5751
5751
  { extSystem: a, assetType: t },
@@ -5902,10 +5902,10 @@ function rt(e = void 0) {
5902
5902
  }
5903
5903
  }
5904
5904
  function c(D, Y = [
5905
- se.Image,
5906
- se.Audio,
5907
- se.Video,
5908
- se.Document
5905
+ ie.Image,
5906
+ ie.Audio,
5907
+ ie.Video,
5908
+ ie.Document
5909
5909
  ]) {
5910
5910
  return new Promise((X, y) => {
5911
5911
  if (_(e)) {
@@ -6429,47 +6429,47 @@ const es = {
6429
6429
  required: !1,
6430
6430
  min: 0,
6431
6431
  max: 2e3
6432
- }, IV = { required: !0, min: 0, max: 255 }, ut = T(void 0);
6432
+ }, IV = { required: !0, min: 0, max: 255 }, mt = T(void 0);
6433
6433
  function wV(e) {
6434
- ut.value = e;
6434
+ mt.value = e;
6435
6435
  }
6436
6436
  function Ee(e = "default") {
6437
- if (_(ut.value) || _(ut.value.configs) || _(ut.value.configs[e]))
6437
+ if (_(mt.value) || _(mt.value.configs) || _(mt.value.configs[e]))
6438
6438
  throw new Error("Composable can't be used without properly configured common admin.");
6439
6439
  return {
6440
- damClient: ut.value.configs[e].damClient,
6441
- endPointImage: ut.value.configs[e].endPointImage || "/adm/v1/image",
6442
- endPointAsset: ut.value.configs[e].endPointAsset || "/adm/v1/asset",
6443
- mainFileSingleUseEnabled: ut.value.configs[e].mainFileSingleUseEnabled ?? !0,
6444
- showSourceEnabled: ut.value.configs[e].showSourceEnabled ?? !0,
6445
- showFileInfoEnabled: ut.value.configs[e].showFileInfoEnabled ?? !0,
6446
- sourceLabel: ut.value.configs[e].sourceLabel || oo("common.damImage.image.model.texts.source"),
6447
- editAssetLabel: ut.value.configs[e].editAssetLabel || oo("common.damImage.image.button.editAsset"),
6448
- addFromDamLabel: ut.value.configs[e].addFromDamLabel || oo("common.damImage.image.button.addFromDam"),
6449
- replaceFromDamLabel: ut.value.configs[e].replaceFromDamLabel || oo("common.damImage.image.button.replaceFromDam"),
6440
+ damClient: mt.value.configs[e].damClient,
6441
+ endPointImage: mt.value.configs[e].endPointImage || "/adm/v1/image",
6442
+ endPointAsset: mt.value.configs[e].endPointAsset || "/adm/v1/asset",
6443
+ mainFileSingleUseEnabled: mt.value.configs[e].mainFileSingleUseEnabled ?? !0,
6444
+ showSourceEnabled: mt.value.configs[e].showSourceEnabled ?? !0,
6445
+ showFileInfoEnabled: mt.value.configs[e].showFileInfoEnabled ?? !0,
6446
+ sourceLabel: mt.value.configs[e].sourceLabel || oo("common.damImage.image.model.texts.source"),
6447
+ editAssetLabel: mt.value.configs[e].editAssetLabel || oo("common.damImage.image.button.editAsset"),
6448
+ addFromDamLabel: mt.value.configs[e].addFromDamLabel || oo("common.damImage.image.button.addFromDam"),
6449
+ replaceFromDamLabel: mt.value.configs[e].replaceFromDamLabel || oo("common.damImage.image.button.replaceFromDam"),
6450
6450
  descriptionValidation: {
6451
6451
  ...kV,
6452
- ...ut.value.configs[e].descriptionValidation
6452
+ ...mt.value.configs[e].descriptionValidation
6453
6453
  },
6454
6454
  sourceValidation: {
6455
6455
  ...IV,
6456
- ...ut.value.configs[e].sourceValidation
6456
+ ...mt.value.configs[e].sourceValidation
6457
6457
  },
6458
- customUploadMetadataToImageMap: ut.value.configs[e].customUploadMetadataToImageMap,
6459
- customAssetSelectMetadataToImageMap: ut.value.configs[e].customAssetSelectMetadataToImageMap,
6460
- assetListEnabledFilters: ut.value.configs[e].assetListEnabledFilters,
6458
+ customUploadMetadataToImageMap: mt.value.configs[e].customUploadMetadataToImageMap,
6459
+ customAssetSelectMetadataToImageMap: mt.value.configs[e].customAssetSelectMetadataToImageMap,
6460
+ assetListEnabledFilters: mt.value.configs[e].assetListEnabledFilters,
6461
6461
  // defaults to undefined = all filters
6462
- simpleAssetSidebarEnabled: ut.value.configs[e].simpleAssetSidebar ?? !1
6462
+ simpleAssetSidebarEnabled: mt.value.configs[e].simpleAssetSidebar ?? !1
6463
6463
  };
6464
6464
  }
6465
6465
  function rn() {
6466
- if (_(ut.value) || _(ut.value.configs))
6466
+ if (_(mt.value) || _(mt.value.configs))
6467
6467
  throw new Error("Composable can't be used without properly configured common admin.");
6468
6468
  return {
6469
- apiTimeout: ut.value.apiTimeout,
6470
- uploadStatusFallback: ut.value.uploadStatusFallback,
6471
- notification: ut.value.notification,
6472
- adminDomain: ut.value.adminDomain
6469
+ apiTimeout: mt.value.apiTimeout,
6470
+ uploadStatusFallback: mt.value.uploadStatusFallback,
6471
+ notification: mt.value.notification,
6472
+ adminDomain: mt.value.adminDomain
6473
6473
  };
6474
6474
  }
6475
6475
  const _t = {
@@ -6797,7 +6797,7 @@ const { pagination: gs } = Gr(kr), vr = T(!1);
6797
6797
  function _s(e = "default", a) {
6798
6798
  const { damClient: t, endPointAsset: s, showFileInfoEnabled: o } = Ee(e), i = Ta(), { selectedCount: r, selectedAssets: n, assetListItems: l, loader: c } = lt(i), m = $t(), { openSidebarRight: V } = ji(), { showErrorsDefault: g } = Ze(), { filterData: h, filterConfig: F } = Wo(), p = (k, L) => {
6799
6799
  if (L === !0) {
6800
- h.type = [se.Audio], h.inPodcast = !0;
6800
+ h.type = [ie.Audio], h.inPodcast = !0;
6801
6801
  return;
6802
6802
  }
6803
6803
  h.type = [k], h.inPodcast = null;
@@ -6946,7 +6946,7 @@ const Gt = "data:image/jpeg;base64,/9j/4QZGRXhpZgAATU0AKgAAAAgADAEAAAMAAAABCgAAA
6946
6946
  r.push(Av), n.push(t("common.damImage.asset.metaIcons.low"));
6947
6947
  return;
6948
6948
  }
6949
- if (a.assetType === se.Video) {
6949
+ if (a.assetType === ie.Video) {
6950
6950
  for (let l = 0; l < di.length; l++)
6951
6951
  if (a.assetFileProperties.width === di[l].width && a.assetFileProperties.height === di[l].height) {
6952
6952
  r.push(di[l].svgSrc), n.push(t(di[l].titleT));
@@ -6969,7 +6969,7 @@ const Gt = "data:image/jpeg;base64,/9j/4QZGRXhpZgAATU0AKgAAAAgADAEAAAMAAAABCgAAA
6969
6969
  return (r, n) => ra((v(), K("div", {
6970
6970
  class: pe(["asset-image__meta-icons", { "asset-image__meta-icons-absolute": !e.disableAbsolute }])
6971
6971
  }, [
6972
- (v(!0), K(ve, null, nt(i.value.icons, (l, c) => (v(), K("img", {
6972
+ (v(!0), K(ge, null, nt(i.value.icons, (l, c) => (v(), K("img", {
6973
6973
  key: l,
6974
6974
  class: "img-svg",
6975
6975
  src: l,
@@ -6990,7 +6990,7 @@ const Gt = "data:image/jpeg;base64,/9j/4QZGRXhpZgAATU0AKgAAAAgADAEAAAMAAAABCgAAA
6990
6990
  __name: "AssetImagePreview",
6991
6991
  props: {
6992
6992
  src: { default: void 0 },
6993
- assetType: { default: se.Image },
6993
+ assetType: { default: ie.Image },
6994
6994
  assetStatus: { default: Yt.WithFile },
6995
6995
  backgroundColor: { default: "#ccc" },
6996
6996
  width: { default: void 0 },
@@ -7008,18 +7008,18 @@ const Gt = "data:image/jpeg;base64,/9j/4QZGRXhpZgAATU0AKgAAAAgADAEAAAMAAAABCgAAA
7008
7008
  }, i = I(() => {
7009
7009
  if (t.assetStatus === Yt.Deleting) return "mdi-trash-can";
7010
7010
  switch (t.assetType) {
7011
- case se.Audio:
7011
+ case ie.Audio:
7012
7012
  return t.assetStatus === Yt.WithFile ? "mdi-music" : "mdi-music-off";
7013
- case se.Document:
7013
+ case ie.Document:
7014
7014
  return t.assetStatus === Yt.WithFile ? "mdi-note" : "mdi-note-off";
7015
- case se.Video:
7015
+ case ie.Video:
7016
7016
  return t.assetStatus === Yt.WithFile ? "mdi-video" : "mdi-video-off";
7017
- case se.Image:
7017
+ case ie.Image:
7018
7018
  return t.assetStatus === Yt.WithFile ? "mdi-image" : "mdi-image-off";
7019
7019
  default:
7020
7020
  return "";
7021
7021
  }
7022
- }), r = I(() => _(t.src) ? Gt : t.src), n = I(() => !(t.assetType === se.Image && t.src));
7022
+ }), r = I(() => _(t.src) ? Gt : t.src), n = I(() => !(t.assetType === ie.Image && t.src));
7023
7023
  return (l, c) => e.assetStatus === d(Yt).WithFile && e.src ? (v(), K("div", {
7024
7024
  key: 0,
7025
7025
  class: "anzu-common-asset-image anzu-common-asset-image--img position-relative",
@@ -7040,7 +7040,7 @@ const Gt = "data:image/jpeg;base64,/9j/4QZGRXhpZgAATU0AKgAAAAgADAEAAAMAAAABCgAAA
7040
7040
  class: "anzu-common-asset-image__icon-circle",
7041
7041
  style: Ut({ padding: e.iconSize / 4 + "px" })
7042
7042
  }, [
7043
- i.value.length ? (v(), x(ie, {
7043
+ i.value.length ? (v(), x(oe, {
7044
7044
  key: 0,
7045
7045
  size: e.iconSize,
7046
7046
  icon: i.value,
@@ -7064,7 +7064,7 @@ const Gt = "data:image/jpeg;base64,/9j/4QZGRXhpZgAATU0AKgAAAAgADAEAAAMAAAABCgAAA
7064
7064
  class: "asset-image__icon-circle",
7065
7065
  style: Ut({ padding: e.iconSize / 4 + "px" })
7066
7066
  }, [
7067
- i.value.length ? (v(), x(ie, {
7067
+ i.value.length ? (v(), x(oe, {
7068
7068
  key: 0,
7069
7069
  size: e.iconSize,
7070
7070
  icon: i.value,
@@ -7238,11 +7238,11 @@ const Jo = (e, a = 2) => {
7238
7238
  onClick: Z(m, ["stop", "exact"])
7239
7239
  }, [
7240
7240
  B("td", null, [
7241
- i.value.selected ? (v(), x(ie, {
7241
+ i.value.selected ? (v(), x(oe, {
7242
7242
  key: 0,
7243
7243
  icon: "mdi-checkbox-outline",
7244
7244
  size: 20
7245
- })) : (v(), x(ie, {
7245
+ })) : (v(), x(oe, {
7246
7246
  key: 1,
7247
7247
  icon: "mdi-checkbox-blank-outline",
7248
7248
  size: 20
@@ -7304,7 +7304,7 @@ const Jo = (e, a = 2) => {
7304
7304
  ])
7305
7305
  ]),
7306
7306
  B("tbody", null, [
7307
- (v(!0), K(ve, null, nt(d(s), (n, l) => (v(), x(Tv, {
7307
+ (v(!0), K(ge, null, nt(d(s), (n, l) => (v(), x(Tv, {
7308
7308
  key: n.asset.id,
7309
7309
  index: l,
7310
7310
  item: n,
@@ -7347,12 +7347,12 @@ const Uv = { class: "d-flex flex-column w-100 px-1 align-center" }, Nv = { class
7347
7347
  }),
7348
7348
  emits: /* @__PURE__ */ Je(["typeChange", "sortByChange"], ["update:sort"]),
7349
7349
  setup(e, { emit: a }) {
7350
- const t = e, s = a, o = tt(e, "sort"), { t: i } = ae(), { setGridView: r } = Hi(), { toggleSidebarLeft: n, sidebarLeft: l, toggleSidebarRight: c, sidebarRight: m } = ji(), V = Ta(), { filterData: g } = Wo(), { assetType: h, inPodcast: F } = lt(V), p = I(() => h.value === se.Image), q = I(() => h.value === se.Video), w = I(() => h.value === se.Audio && F.value === !0), b = () => {
7351
- h.value = se.Image, F.value = null, g.podcastIds = [], s("typeChange", { type: se.Image, inPodcast: null });
7350
+ const t = e, s = a, o = tt(e, "sort"), { t: i } = ae(), { setGridView: r } = Hi(), { toggleSidebarLeft: n, sidebarLeft: l, toggleSidebarRight: c, sidebarRight: m } = ji(), V = Ta(), { filterData: g } = Wo(), { assetType: h, inPodcast: F } = lt(V), p = I(() => h.value === ie.Image), q = I(() => h.value === ie.Video), w = I(() => h.value === ie.Audio && F.value === !0), b = () => {
7351
+ h.value = ie.Image, F.value = null, g.podcastIds = [], s("typeChange", { type: ie.Image, inPodcast: null });
7352
7352
  }, D = () => {
7353
- h.value = se.Video, F.value = null, g.podcastIds = [], s("typeChange", { type: se.Video, inPodcast: null });
7353
+ h.value = ie.Video, F.value = null, g.podcastIds = [], s("typeChange", { type: ie.Video, inPodcast: null });
7354
7354
  }, Y = () => {
7355
- h.value = se.Audio, F.value = !0, s("typeChange", { type: se.Audio, inPodcast: !0 });
7355
+ h.value = ie.Audio, F.value = !0, s("typeChange", { type: ie.Audio, inPodcast: !0 });
7356
7356
  }, X = [
7357
7357
  {
7358
7358
  id: 3,
@@ -7371,11 +7371,11 @@ const Uv = { class: "d-flex flex-column w-100 px-1 align-center" }, Nv = { class
7371
7371
  }
7372
7372
  ];
7373
7373
  return pt(() => {
7374
- if (t.preselectAssetType === se.Audio && t.preselectInPodcast) {
7374
+ if (t.preselectAssetType === ie.Audio && t.preselectInPodcast) {
7375
7375
  Y();
7376
7376
  return;
7377
7377
  }
7378
- t.preselectAssetType === se.Video && D();
7378
+ t.preselectAssetType === ie.Video && D();
7379
7379
  }), (y, S) => (v(), x(Ms, {
7380
7380
  density: "compact",
7381
7381
  color: "transparent",
@@ -7397,7 +7397,7 @@ const Uv = { class: "d-flex flex-column w-100 px-1 align-center" }, Nv = { class
7397
7397
  onClick: d(n)
7398
7398
  }, {
7399
7399
  default: f(() => [
7400
- u(ie, {
7400
+ u(oe, {
7401
7401
  icon: "mdi-tune",
7402
7402
  size: 16
7403
7403
  }),
@@ -7413,7 +7413,7 @@ const Uv = { class: "d-flex flex-column w-100 px-1 align-center" }, Nv = { class
7413
7413
  ]),
7414
7414
  _: 1
7415
7415
  }, 8, ["active", "onClick"])),
7416
- e.showTypes ? (v(), K(ve, { key: 1 }, [
7416
+ e.showTypes ? (v(), K(ge, { key: 1 }, [
7417
7417
  u(ls, {
7418
7418
  vertical: "",
7419
7419
  class: "ml-1 mr-2 my-2"
@@ -7430,7 +7430,7 @@ const Uv = { class: "d-flex flex-column w-100 px-1 align-center" }, Nv = { class
7430
7430
  onClick: Z(b, ["stop"])
7431
7431
  }, {
7432
7432
  default: f(() => [
7433
- u(ie, {
7433
+ u(oe, {
7434
7434
  icon: "mdi-image",
7435
7435
  size: 16
7436
7436
  }),
@@ -7458,7 +7458,7 @@ const Uv = { class: "d-flex flex-column w-100 px-1 align-center" }, Nv = { class
7458
7458
  onClick: Z(D, ["stop"])
7459
7459
  }, {
7460
7460
  default: f(() => [
7461
- u(ie, {
7461
+ u(oe, {
7462
7462
  icon: "mdi-video",
7463
7463
  size: 16
7464
7464
  }),
@@ -7485,7 +7485,7 @@ const Uv = { class: "d-flex flex-column w-100 px-1 align-center" }, Nv = { class
7485
7485
  onClick: Z(Y, ["stop"])
7486
7486
  }, {
7487
7487
  default: f(() => [
7488
- u(ie, {
7488
+ u(oe, {
7489
7489
  icon: "mdi-podcast",
7490
7490
  size: 16
7491
7491
  }),
@@ -7521,7 +7521,7 @@ const Uv = { class: "d-flex flex-column w-100 px-1 align-center" }, Nv = { class
7521
7521
  onClick: S[2] || (S[2] = Z((C) => d(r)(d(ia).Masonry), ["stop"]))
7522
7522
  }, {
7523
7523
  default: f(() => [
7524
- u(ie, { icon: "mdi-view-compact" }),
7524
+ u(oe, { icon: "mdi-view-compact" }),
7525
7525
  u(be, {
7526
7526
  activator: "parent",
7527
7527
  location: "bottom"
@@ -7542,7 +7542,7 @@ const Uv = { class: "d-flex flex-column w-100 px-1 align-center" }, Nv = { class
7542
7542
  onClick: S[3] || (S[3] = Z((C) => d(r)(d(ia).Thumbnail), ["stop"]))
7543
7543
  }, {
7544
7544
  default: f(() => [
7545
- u(ie, { icon: "mdi-view-grid" }),
7545
+ u(oe, { icon: "mdi-view-grid" }),
7546
7546
  u(be, {
7547
7547
  activator: "parent",
7548
7548
  location: "bottom"
@@ -7563,7 +7563,7 @@ const Uv = { class: "d-flex flex-column w-100 px-1 align-center" }, Nv = { class
7563
7563
  onClick: S[4] || (S[4] = Z((C) => d(r)(d(ia).Table), ["stop"]))
7564
7564
  }, {
7565
7565
  default: f(() => [
7566
- u(ie, { icon: "mdi-view-headline" }),
7566
+ u(oe, { icon: "mdi-view-headline" }),
7567
7567
  u(be, {
7568
7568
  activator: "parent",
7569
7569
  location: "bottom"
@@ -7589,7 +7589,7 @@ const Uv = { class: "d-flex flex-column w-100 px-1 align-center" }, Nv = { class
7589
7589
  onClick: d(c)
7590
7590
  }, {
7591
7591
  default: f(() => [
7592
- u(ie, {
7592
+ u(oe, {
7593
7593
  icon: "mdi-information-outline",
7594
7594
  size: 16
7595
7595
  }),
@@ -7638,7 +7638,7 @@ const Uv = { class: "d-flex flex-column w-100 px-1 align-center" }, Nv = { class
7638
7638
  B("div", Hv, [
7639
7639
  r.value.selected ? (v(), K("div", Wv, [
7640
7640
  g[0] || (g[0] = B("div", { class: "asset-list-tiles__selected-triangle__bg" }, null, -1)),
7641
- u(ie, {
7641
+ u(oe, {
7642
7642
  class: "asset-list-tiles__selected-triangle__icon",
7643
7643
  icon: "mdi-check",
7644
7644
  color: "white",
@@ -7674,11 +7674,11 @@ const Uv = { class: "d-flex flex-column w-100 px-1 align-center" }, Nv = { class
7674
7674
  },
7675
7675
  setup(e) {
7676
7676
  const { gridView: a } = Hi(), { onItemClick: t, assetListItems: s, loader: o } = _s(), { t: i } = ae();
7677
- return (r, n) => (v(), K(ve, null, [
7677
+ return (r, n) => (v(), K(ge, null, [
7678
7678
  B("div", {
7679
7679
  class: pe(["asset-list-tiles", "asset-list-tiles--" + d(a)])
7680
7680
  }, [
7681
- (v(!0), K(ve, null, nt(d(s), (l, c) => (v(), x(eg, {
7681
+ (v(!0), K(ge, null, nt(d(s), (l, c) => (v(), x(eg, {
7682
7682
  key: l.asset.id,
7683
7683
  index: c,
7684
7684
  item: l,
@@ -7837,7 +7837,7 @@ const rg = /* @__PURE__ */ H({
7837
7837
  u(sa, null, {
7838
7838
  default: f(() => [
7839
7839
  M(A(g.title) + " ", 1),
7840
- g.raw?.raw?.reviewed || g.raw?.reviewed ? (v(), x(ie, {
7840
+ g.raw?.raw?.reviewed || g.raw?.reviewed ? (v(), x(oe, {
7841
7841
  key: 0,
7842
7842
  icon: "mdi-shield-check",
7843
7843
  class: "text-success ml-1",
@@ -7855,7 +7855,7 @@ const rg = /* @__PURE__ */ H({
7855
7855
  u(Mt, Tt(si(V)), {
7856
7856
  default: f(() => [
7857
7857
  M(A(g.title) + " ", 1),
7858
- g.raw?.raw?.reviewed || g.raw?.reviewed ? (v(), x(ie, {
7858
+ g.raw?.raw?.reviewed || g.raw?.reviewed ? (v(), x(oe, {
7859
7859
  key: 0,
7860
7860
  icon: "mdi-shield-check",
7861
7861
  class: "text-success ml-1",
@@ -8085,7 +8085,7 @@ const Fg = (e, a = "default") => {
8085
8085
  ]),
8086
8086
  _: 1
8087
8087
  }, 16)) : E("", !0),
8088
- V.value ? (v(), K(ve, { key: 2 }, [
8088
+ V.value ? (v(), K(ge, { key: 2 }, [
8089
8089
  i("keywordIds") ? (v(), x(re, Tt(Qe({ key: 0 }, r("keywordIds"))), {
8090
8090
  default: f(() => [
8091
8091
  (v(), x(ig, {
@@ -8131,7 +8131,7 @@ const Fg = (e, a = "default") => {
8131
8131
  ]),
8132
8132
  _: 1
8133
8133
  }, 16)) : E("", !0),
8134
- (d(m) === d(se).Audio || d(m) === d(se).Video) && i("distributedInServices") ? (v(), x(re, Tt(Qe({ key: 7 }, r("distributedInServices"))), {
8134
+ (d(m) === d(ie).Audio || d(m) === d(ie).Video) && i("distributedInServices") ? (v(), x(re, Tt(Qe({ key: 7 }, r("distributedInServices"))), {
8135
8135
  default: f(() => [
8136
8136
  (v(), x(fg, {
8137
8137
  key: d(c),
@@ -8140,7 +8140,7 @@ const Fg = (e, a = "default") => {
8140
8140
  ]),
8141
8141
  _: 1
8142
8142
  }, 16)) : E("", !0),
8143
- d(m) === d(se).Audio && i("podcastIds") ? (v(), x(re, Tt(Qe({ key: 8 }, r("podcastIds"))), {
8143
+ d(m) === d(ie).Audio && i("podcastIds") ? (v(), x(re, Tt(Qe({ key: 8 }, r("podcastIds"))), {
8144
8144
  default: f(() => [
8145
8145
  (v(), x(hg, {
8146
8146
  key: d(c),
@@ -8437,7 +8437,7 @@ const xg = /* @__PURE__ */ H({
8437
8437
  const w = () => {
8438
8438
  s("blur", t.modelValue), F.value.$touch();
8439
8439
  };
8440
- return (b, D) => (v(), K(ve, null, [
8440
+ return (b, D) => (v(), K(ge, null, [
8441
8441
  e.config.attributes.type === d(kt).String ? (v(), x(dd, {
8442
8442
  key: 0,
8443
8443
  "model-value": e.modelValue,
@@ -8525,10 +8525,10 @@ const xg = /* @__PURE__ */ H({
8525
8525
  }, c = I(() => s.elements.slice(0, s.pinnedCount)), m = I(() => s.elements.slice(s.pinnedCount)), V = I(() => r.value ? i("common.damImage.asset.detail.metadataToggle.show") : i("common.damImage.asset.detail.metadataToggle.hide")), g = I(() => r.value ? "mdi-minus" : "mdi-plus"), h = I(() => s.elements.length > s.pinnedCount), F = Xa({ $scope: s.validationScope });
8526
8526
  return a({
8527
8527
  validate: () => F.value.$validate()
8528
- }), (q, w) => (v(), K(ve, null, [
8528
+ }), (q, w) => (v(), K(ge, null, [
8529
8529
  B("div", wg, [
8530
8530
  le(q.$slots, "before-pinned"),
8531
- (v(!0), K(ve, null, nt(c.value, (b) => (v(), x(Fe, {
8531
+ (v(!0), K(ge, null, nt(c.value, (b) => (v(), x(Fe, {
8532
8532
  key: b.id,
8533
8533
  density: "comfortable",
8534
8534
  class: "mt-1"
@@ -8560,7 +8560,7 @@ const xg = /* @__PURE__ */ H({
8560
8560
  le(q.$slots, "after-pinned")
8561
8561
  ]),
8562
8562
  ra(B("div", Sg, [
8563
- (v(!0), K(ve, null, nt(m.value, (b) => (v(), x(Fe, {
8563
+ (v(!0), K(ge, null, nt(m.value, (b) => (v(), x(Fe, {
8564
8564
  key: b.id,
8565
8565
  density: "comfortable",
8566
8566
  class: "mt-1"
@@ -8599,7 +8599,7 @@ const xg = /* @__PURE__ */ H({
8599
8599
  onClick: d(n)
8600
8600
  }, {
8601
8601
  default: f(() => [
8602
- u(ie, { icon: g.value }, null, 8, ["icon"]),
8602
+ u(oe, { icon: g.value }, null, 8, ["icon"]),
8603
8603
  M(" " + A(V.value), 1)
8604
8604
  ]),
8605
8605
  _: 1
@@ -8711,7 +8711,7 @@ const pn = /* @__PURE__ */ H({
8711
8711
  },
8712
8712
  setup(e) {
8713
8713
  const { t: a } = ae();
8714
- return (t, s) => (v(), K(ve, null, [
8714
+ return (t, s) => (v(), K(ge, null, [
8715
8715
  u(Fe, null, {
8716
8716
  default: f(() => [
8717
8717
  u(re, { cols: "3" }, {
@@ -8838,7 +8838,7 @@ const pn = /* @__PURE__ */ H({
8838
8838
  }),
8839
8839
  emits: /* @__PURE__ */ Je(["update:modelValue", "blur", "focus", "searchChange", "searchChangeDebounced"], ["update:search", "update:loadingLocal", "update:fetchedItemsMinimal"]),
8840
8840
  setup(e, { emit: a }) {
8841
- const t = e, s = a, o = tt(e, "search"), i = tt(e, "loadingLocal"), r = tt(e, "fetchedItemsMinimal"), n = ct(Ka), l = ct(Da), c = Uu()?.type.__name;
8841
+ const t = e, s = a, o = tt(e, "search"), i = tt(e, "loadingLocal"), r = tt(e, "fetchedItemsMinimal"), n = ft(Ka), l = ft(Da), c = Uu()?.type.__name;
8842
8842
  if (_(n) || _(l))
8843
8843
  throw new Error(`[${c}] Incorrect provide/inject config.`);
8844
8844
  if (
@@ -8864,7 +8864,7 @@ const pn = /* @__PURE__ */ H({
8864
8864
  Ie(k)
8865
8865
  );
8866
8866
  }
8867
- }), { t: p } = ae(), q = ct(za, void 0), w = ct(Ra, void 0), b = T(!1), { pagination: D } = Gr(
8867
+ }), { t: p } = ae(), q = ft(za, void 0), w = ft(Ra, void 0), b = T(!1), { pagination: D } = Gr(
8868
8868
  // eslint-disable-next-line vue/no-setup-props-reactivity-loss
8869
8869
  ne(t.filterSortBy) ? null : t.filterSortBy.key,
8870
8870
  t.filterSortBy?.order
@@ -9025,7 +9025,8 @@ function Mg() {
9025
9025
  notificationFallbackTry: 1,
9026
9026
  slotName: null,
9027
9027
  image: void 0,
9028
- mainFileSingleUse: null
9028
+ mainFileSingleUse: null,
9029
+ mainFileInternal: null
9029
9030
  })
9030
9031
  };
9031
9032
  }
@@ -9103,7 +9104,7 @@ function _g() {
9103
9104
  }
9104
9105
  const Pg = (e, a) => {
9105
9106
  for (const [t, s] of Object.entries(a))
9106
- if (Object.values(se).includes(t)) {
9107
+ if (Object.values(ie).includes(t)) {
9107
9108
  for (let o = 0; o < s.mimeTypes.length; o++)
9108
9109
  if (e === s.mimeTypes[o]) return t;
9109
9110
  }
@@ -9144,7 +9145,7 @@ function Lg(e = 30) {
9144
9145
  };
9145
9146
  }
9146
9147
  let hr = null;
9147
- const co = () => (hr || (hr = import("./index-D6n2IC2w.mjs").then((e) => e).catch(() => null)), hr);
9148
+ const co = () => (hr || (hr = import("./index-C45f-TuR.mjs").then((e) => e).catch(() => null)), hr);
9148
9149
  function ru() {
9149
9150
  return {
9150
9151
  logError: (o, i) => {
@@ -9419,7 +9420,7 @@ const zg = 420, nu = (e, a, t) => Lt(e, a + "/:id", { id: t }, xe, "asset"), Rg
9419
9420
  return Promise.reject(r);
9420
9421
  }
9421
9422
  }, Wg = 10, Gg = 4, Jg = (e, a, t) => new Promise((s, o) => {
9422
- if (t.assetType !== se.Image) {
9423
+ if (t.assetType !== ie.Image) {
9423
9424
  o();
9424
9425
  return;
9425
9426
  }
@@ -9427,7 +9428,7 @@ const zg = 420, nu = (e, a, t) => Lt(e, a + "/:id", { id: t }, xe, "asset"), Rg
9427
9428
  s(i);
9428
9429
  }).catch((i) => o(i));
9429
9430
  }), Zg = (e, a, t, s, o, i, r, n) => new Promise((l, c) => {
9430
- if (t.assetType !== se.Image) {
9431
+ if (t.assetType !== ie.Image) {
9431
9432
  c();
9432
9433
  return;
9433
9434
  }
@@ -9446,7 +9447,7 @@ const zg = 420, nu = (e, a, t) => Lt(e, a + "/:id", { id: t }, xe, "asset"), Rg
9446
9447
  c(m);
9447
9448
  });
9448
9449
  }), Qg = (e, a, t, s, o, i) => new Promise((r, n) => {
9449
- if (s.assetType !== se.Image) {
9450
+ if (s.assetType !== ie.Image) {
9450
9451
  n();
9451
9452
  return;
9452
9453
  }
@@ -10186,38 +10187,38 @@ const rl = (e) => {
10186
10187
  return o.value.has(j) ? o.value.get(j)?.items || [] : [];
10187
10188
  }
10188
10189
  async function V(j, G, de, ee) {
10189
- const { getDamConfigExtSystem: ge } = rt(), ce = ge(G);
10190
+ const { getDamConfigExtSystem: ve } = rt(), ce = ve(G);
10190
10191
  if (_(ce))
10191
10192
  throw new Error("useUploadQueuesStore.addByCopyToLicence: Ext system must be initialised.");
10192
- for (const oe of ee) {
10193
+ for (const se of ee) {
10193
10194
  const _e = i(
10194
- "asset_" + oe,
10195
+ "asset_" + se,
10195
10196
  Mr.Asset,
10196
10197
  Ne.Processing,
10197
- se.Image,
10198
+ ie.Image,
10198
10199
  // only image now
10199
10200
  ll,
10200
10201
  de
10201
10202
  );
10202
- _e.assetId = oe, F(j), h(j, _e), p(j), w(j);
10203
+ _e.assetId = se, F(j), h(j, _e), p(j), w(j);
10203
10204
  }
10204
10205
  }
10205
10206
  async function g(j, G, de, ee) {
10206
- const { getDamConfigExtSystem: ge } = rt(), ce = ge(G);
10207
+ const { getDamConfigExtSystem: ve } = rt(), ce = ve(G);
10207
10208
  if (_(ce))
10208
10209
  throw new Error("useUploadQueuesStore.addByFiles: Ext system must be initialised.");
10209
- for await (const oe of ee) {
10210
- const _e = Pg(Us(oe), ce);
10211
- if (!_e || _e !== se.Image) continue;
10210
+ for await (const se of ee) {
10211
+ const _e = Pg(Us(se), ce);
10212
+ if (!_e || _e !== ie.Image) continue;
10212
10213
  const Q = i(
10213
- "file_" + oe.name,
10214
+ "file_" + se.name,
10214
10215
  Mr.File,
10215
10216
  Ne.Waiting,
10216
10217
  _e,
10217
10218
  ll,
10218
10219
  de
10219
10220
  );
10220
- Q.file = oe, Q.displayTitle = oe.name, F(j), h(j, Q), p(j), w(j);
10221
+ Q.file = se, Q.displayTitle = se.name, F(j), h(j, Q), p(j), w(j);
10221
10222
  }
10222
10223
  }
10223
10224
  function h(j, G) {
@@ -10248,16 +10249,16 @@ const rl = (e) => {
10248
10249
  G[ee] && b(G[ee], j);
10249
10250
  }
10250
10251
  async function b(j, G) {
10251
- const { upload: de, uploadInit: ee, stopSpeedCheck: ge } = cF(
10252
+ const { upload: de, uploadInit: ee, stopSpeedCheck: ve } = cF(
10252
10253
  j,
10253
- (ce, oe, _e) => {
10254
- D(j, ce, oe, _e);
10254
+ (ce, se, _e) => {
10255
+ D(j, ce, se, _e);
10255
10256
  }
10256
10257
  );
10257
10258
  try {
10258
10259
  await ee(), await de(), w(G);
10259
10260
  } catch {
10260
- ge(), j.error.hasError = !0, j.status = Ne.Failed, p(G), w(G);
10261
+ ve(), j.error.hasError = !0, j.status = Ne.Failed, p(G), w(G);
10261
10262
  }
10262
10263
  }
10263
10264
  function D(j, G, de, ee) {
@@ -10268,8 +10269,8 @@ const rl = (e) => {
10268
10269
  const G = await jt(r, n, j);
10269
10270
  if (!G) return;
10270
10271
  o.value.forEach((de, ee) => {
10271
- de.items.forEach((ge) => {
10272
- ge.assetId === G.id && G.mainFile && (clearTimeout(ge.notificationFallbackTimer), ge.status = Ne.Uploaded, ge.assetStatus = G.attributes.assetStatus, G.mainFile.links?.image_detail && (ge.imagePreview = G.mainFile.links.image_detail), ge.mainFileSingleUse = G.mainFileSingleUse, w(ee));
10272
+ de.items.forEach((ve) => {
10273
+ ve.assetId === G.id && G.mainFile && (clearTimeout(ve.notificationFallbackTimer), ve.status = Ne.Uploaded, ve.assetStatus = G.attributes.assetStatus, G.mainFile.links?.image_detail && (ve.imagePreview = G.mainFile.links.image_detail), ve.mainFileSingleUse = G.mainFileSingleUse, ve.mainFileInternal = G.mainFileInternal, w(ee));
10273
10274
  }), p(ee);
10274
10275
  });
10275
10276
  } catch {
@@ -10280,36 +10281,36 @@ const rl = (e) => {
10280
10281
  try {
10281
10282
  const ee = await jt(r, n, j);
10282
10283
  if (!ee) return;
10283
- o.value.forEach((ge, ce) => {
10284
- ge.items.forEach((oe) => {
10285
- oe.assetId === ee.id && ee.mainFile && oe.type && (clearTimeout(oe.notificationFallbackTimer), oe.status = Ne.Uploaded, oe.assetStatus = ee.attributes.assetStatus, ee.mainFile.links?.image_detail && (oe.imagePreview = ee.mainFile.links.image_detail), oe.keywords = ee.keywords, oe.authors = ee.authors, oe.customData = ee.metadata.customData, oe.mainFileSingleUse = ee.mainFileSingleUse, G(ee.metadata.authorSuggestions, ge.suggestions.newAuthorNames), G(ee.metadata.keywordSuggestions, ge.suggestions.newKeywordNames), oe.authorConflicts = de(ee.metadata.authorSuggestions), e(oe.keywords), t(oe.authors), t(oe.authorConflicts), oe.canEditMetadata = !0, w(ce));
10284
+ o.value.forEach((ve, ce) => {
10285
+ ve.items.forEach((se) => {
10286
+ se.assetId === ee.id && ee.mainFile && se.type && (clearTimeout(se.notificationFallbackTimer), se.status = Ne.Uploaded, se.assetStatus = ee.attributes.assetStatus, ee.mainFile.links?.image_detail && (se.imagePreview = ee.mainFile.links.image_detail), se.keywords = ee.keywords, se.authors = ee.authors, se.customData = ee.metadata.customData, se.mainFileSingleUse = ee.mainFileSingleUse, se.mainFileInternal = ee.mainFileInternal, G(ee.metadata.authorSuggestions, ve.suggestions.newAuthorNames), G(ee.metadata.keywordSuggestions, ve.suggestions.newKeywordNames), se.authorConflicts = de(ee.metadata.authorSuggestions), e(se.keywords), t(se.authors), t(se.authorConflicts), se.canEditMetadata = !0, w(ce));
10286
10287
  }), p(ce), s(), a();
10287
10288
  });
10288
10289
  } catch {
10289
10290
  }
10290
10291
  }
10291
10292
  async function y(j, G = null, de = null) {
10292
- const { updateNewNames: ee, getAuthorConflicts: ge } = ci();
10293
- if (!G || !de || de !== se.Image) return;
10293
+ const { updateNewNames: ee, getAuthorConflicts: ve } = ci();
10294
+ if (!G || !de || de !== ie.Image) return;
10294
10295
  let ce = null;
10295
10296
  try {
10296
10297
  ce = await zi(r, n, G);
10297
10298
  } catch {
10298
10299
  throw new Error("Fatal error");
10299
10300
  }
10300
- o.value.forEach((oe, _e) => {
10301
- oe.items.forEach((Q) => {
10302
- ne(ce) || Q.assetId === j && (clearTimeout(Q.notificationFallbackTimer), Q.isDuplicate = !0, Q.status = Ne.Uploaded, Q.fileId = G, Q.duplicateAssetId = ce.id, Q.assetStatus = ce.attributes.assetStatus, ce.mainFile?.links?.image_detail && (Q.imagePreview = ce.mainFile.links.image_detail), Q.keywords = ce.keywords, Q.authors = ce.authors, Q.customData = ce.metadata.customData, ee(ce.metadata.authorSuggestions, oe.suggestions.newAuthorNames), ee(ce.metadata.keywordSuggestions, oe.suggestions.newKeywordNames), Q.authorConflicts = ge(ce.metadata.authorSuggestions), e(Q.keywords), t(Q.authors), t(Q.authorConflicts), Q.assetId = ce.id, Q.mainFileSingleUse = ce.mainFileSingleUse, Q.canEditMetadata = !0, w(_e));
10301
+ o.value.forEach((se, _e) => {
10302
+ se.items.forEach((Q) => {
10303
+ ne(ce) || Q.assetId === j && (clearTimeout(Q.notificationFallbackTimer), Q.isDuplicate = !0, Q.status = Ne.Uploaded, Q.fileId = G, Q.duplicateAssetId = ce.id, Q.assetStatus = ce.attributes.assetStatus, ce.mainFile?.links?.image_detail && (Q.imagePreview = ce.mainFile.links.image_detail), Q.keywords = ce.keywords, Q.authors = ce.authors, Q.customData = ce.metadata.customData, ee(ce.metadata.authorSuggestions, se.suggestions.newAuthorNames), ee(ce.metadata.keywordSuggestions, se.suggestions.newKeywordNames), Q.authorConflicts = ve(ce.metadata.authorSuggestions), e(Q.keywords), t(Q.authors), t(Q.authorConflicts), Q.assetId = ce.id, Q.mainFileSingleUse = ce.mainFileSingleUse, Q.mainFileInternal = ce.mainFileInternal, Q.canEditMetadata = !0, w(_e));
10303
10304
  }), p(_e), s(), a();
10304
10305
  });
10305
10306
  }
10306
10307
  async function S(j, G) {
10307
10308
  try {
10308
10309
  const de = await jt(r, n, j);
10309
- o.value.forEach((ee, ge) => {
10310
+ o.value.forEach((ee, ve) => {
10310
10311
  ee.items.forEach((ce) => {
10311
- ce.assetId === de.id && (clearTimeout(ce.notificationFallbackTimer), ce.error.hasError = !0, ce.status = Ne.Failed, ce.error.assetFileFailReason = G, ce.canEditMetadata = !1, w(ge));
10312
- }), p(ge);
10312
+ ce.assetId === de.id && (clearTimeout(ce.notificationFallbackTimer), ce.error.hasError = !0, ce.status = Ne.Failed, ce.error.assetFileFailReason = G, ce.canEditMetadata = !1, w(ve));
10313
+ }), p(ve);
10313
10314
  });
10314
10315
  } catch {
10315
10316
  }
@@ -10318,9 +10319,9 @@ const rl = (e) => {
10318
10319
  const { updateNewNames: G, getAuthorConflicts: de } = ci();
10319
10320
  try {
10320
10321
  const ee = await jt(r, n, j);
10321
- o.value.forEach((ge, ce) => {
10322
- ge.items.forEach((oe) => {
10323
- oe.assetId === ee.id && oe.type && (clearTimeout(oe.notificationFallbackTimer), oe.keywords = ee.keywords, oe.authors = ee.authors, oe.customData = ee.metadata.customData, oe.mainFileSingleUse = ee.mainFileSingleUse, G(ee.metadata.authorSuggestions, ge.suggestions.newAuthorNames), G(ee.metadata.keywordSuggestions, ge.suggestions.newKeywordNames), oe.authorConflicts = de(ee.metadata.authorSuggestions), e(oe.keywords), t(oe.authors), t(oe.authorConflicts), oe.canEditMetadata = !0);
10322
+ o.value.forEach((ve, ce) => {
10323
+ ve.items.forEach((se) => {
10324
+ se.assetId === ee.id && se.type && (clearTimeout(se.notificationFallbackTimer), se.keywords = ee.keywords, se.authors = ee.authors, se.customData = ee.metadata.customData, se.mainFileSingleUse = ee.mainFileSingleUse, se.mainFileInternal = ee.mainFileInternal, G(ee.metadata.authorSuggestions, ve.suggestions.newAuthorNames), G(ee.metadata.keywordSuggestions, ve.suggestions.newKeywordNames), se.authorConflicts = de(ee.metadata.authorSuggestions), e(se.keywords), t(se.authors), t(se.authorConflicts), se.canEditMetadata = !0);
10324
10325
  }), p(ce), s(), a();
10325
10326
  });
10326
10327
  } catch {
@@ -10330,9 +10331,9 @@ const rl = (e) => {
10330
10331
  const { updateNewNames: G, getAuthorConflicts: de } = ci();
10331
10332
  try {
10332
10333
  const ee = await jt(r, n, j);
10333
- o.value.forEach((ge, ce) => {
10334
- ge.items.forEach((oe) => {
10335
- oe.assetId === ee.id && ee.mainFile && oe.type && (clearTimeout(oe.notificationFallbackTimer), oe.fileId = ee.mainFile.id, oe.status = Ne.Uploaded, oe.assetStatus = ee.attributes.assetStatus, ee.mainFile.links?.image_detail && (oe.imagePreview = ee.mainFile.links.image_detail), oe.mainFileSingleUse = ee.mainFileSingleUse, oe.keywords = ee.keywords, oe.authors = ee.authors, oe.customData = ee.metadata.customData, G(ee.metadata.authorSuggestions, ge.suggestions.newAuthorNames), G(ee.metadata.keywordSuggestions, ge.suggestions.newKeywordNames), oe.authorConflicts = de(ee.metadata.authorSuggestions), e(oe.keywords), t(oe.authors), t(oe.authorConflicts), oe.canEditMetadata = !0, w(ce));
10334
+ o.value.forEach((ve, ce) => {
10335
+ ve.items.forEach((se) => {
10336
+ se.assetId === ee.id && ee.mainFile && se.type && (clearTimeout(se.notificationFallbackTimer), se.fileId = ee.mainFile.id, se.status = Ne.Uploaded, se.assetStatus = ee.attributes.assetStatus, ee.mainFile.links?.image_detail && (se.imagePreview = ee.mainFile.links.image_detail), se.mainFileSingleUse = ee.mainFileSingleUse, se.mainFileInternal = ee.mainFileInternal, se.keywords = ee.keywords, se.authors = ee.authors, se.customData = ee.metadata.customData, G(ee.metadata.authorSuggestions, ve.suggestions.newAuthorNames), G(ee.metadata.keywordSuggestions, ve.suggestions.newKeywordNames), se.authorConflicts = de(ee.metadata.authorSuggestions), e(se.keywords), t(se.authors), t(se.authorConflicts), se.canEditMetadata = !0, w(ce));
10336
10337
  }), p(ce), s(), a();
10337
10338
  });
10338
10339
  } catch {
@@ -10350,9 +10351,9 @@ const rl = (e) => {
10350
10351
  const { updateNewNames: G, getAuthorConflicts: de } = ci();
10351
10352
  try {
10352
10353
  const ee = await jt(r, n, j.id);
10353
- o.value.forEach((ge, ce) => {
10354
- ge.items.forEach((oe) => {
10355
- oe.assetId === ee.id && oe.type && (clearTimeout(oe.notificationFallbackTimer), oe.keywords = ee.keywords, oe.authors = ee.authors, oe.customData = ee.metadata.customData, G(ee.metadata.authorSuggestions, ge.suggestions.newAuthorNames), G(ee.metadata.keywordSuggestions, ge.suggestions.newKeywordNames), oe.authorConflicts = de(ee.metadata.authorSuggestions), e(oe.keywords), t(oe.authors), t(oe.authorConflicts));
10354
+ o.value.forEach((ve, ce) => {
10355
+ ve.items.forEach((se) => {
10356
+ se.assetId === ee.id && se.type && (clearTimeout(se.notificationFallbackTimer), se.keywords = ee.keywords, se.authors = ee.authors, se.customData = ee.metadata.customData, G(ee.metadata.authorSuggestions, ve.suggestions.newAuthorNames), G(ee.metadata.keywordSuggestions, ve.suggestions.newKeywordNames), se.authorConflicts = de(ee.metadata.authorSuggestions), e(se.keywords), t(se.authors), t(se.authorConflicts));
10356
10357
  }), p(ce), s(), a();
10357
10358
  });
10358
10359
  } catch {
@@ -10453,7 +10454,7 @@ const rl = (e) => {
10453
10454
  indeterminate: "",
10454
10455
  class: "mx-1"
10455
10456
  })) : E("", !0),
10456
- l.value ? (v(), x(ie, {
10457
+ l.value ? (v(), x(oe, {
10457
10458
  key: 1,
10458
10459
  icon: "mdi-shield-check",
10459
10460
  size: "small",
@@ -10476,7 +10477,7 @@ const rl = (e) => {
10476
10477
  indeterminate: "",
10477
10478
  class: "mx-1"
10478
10479
  })) : E("", !0),
10479
- l.value ? (v(), x(ie, {
10480
+ l.value ? (v(), x(oe, {
10480
10481
  key: 1,
10481
10482
  icon: "mdi-shield-check",
10482
10483
  class: "text-success ml-1",
@@ -10637,7 +10638,7 @@ const pF = /* @__PURE__ */ H({
10637
10638
  open: g
10638
10639
  }), (X, y) => {
10639
10640
  const S = Be("ABtnSecondary"), C = Be("ABtnPrimary"), P = Be("ABtnTertiary");
10640
- return v(), K(ve, null, [
10641
+ return v(), K(ge, null, [
10641
10642
  e.variant === "listItem" ? (v(), x(je, { key: 0 }, {
10642
10643
  default: f(() => [
10643
10644
  u(S, {
@@ -10671,7 +10672,7 @@ const pF = /* @__PURE__ */ H({
10671
10672
  onClick: y[1] || (y[1] = Z((W) => g(void 0), ["stop"]))
10672
10673
  }, {
10673
10674
  default: f(() => [
10674
- u(ie, { icon: "mdi-plus" }),
10675
+ u(oe, { icon: "mdi-plus" }),
10675
10676
  u(be, {
10676
10677
  activator: "parent",
10677
10678
  location: "bottom"
@@ -10844,14 +10845,14 @@ const pF = /* @__PURE__ */ H({
10844
10845
  ));
10845
10846
  return ($, U) => {
10846
10847
  const N = Be("ABtnSecondary");
10847
- return v(), K(ve, null, [
10848
+ return v(), K(ge, null, [
10848
10849
  B("div", qF, [
10849
10850
  e.disabled && e.multiple ? (v(), x(Oe, {
10850
10851
  key: 0,
10851
10852
  title: e.label
10852
10853
  }, {
10853
10854
  default: f(() => [
10854
- (v(!0), K(ve, null, nt(o.value, (k) => (v(), x(fo, {
10855
+ (v(!0), K(ge, null, nt(o.value, (k) => (v(), x(fo, {
10855
10856
  id: k,
10856
10857
  key: k,
10857
10858
  "queue-id": e.queueId,
@@ -10980,7 +10981,7 @@ const pF = /* @__PURE__ */ H({
10980
10981
  B("span", YF, A(d(l)("common.damImage.author.conflicts")), 1)
10981
10982
  ]),
10982
10983
  B("div", null, [
10983
- (v(!0), K(ve, null, nt(e.authorConflicts, (k) => (v(), x(fF, {
10984
+ (v(!0), K(ge, null, nt(e.authorConflicts, (k) => (v(), x(fF, {
10984
10985
  id: k,
10985
10986
  key: k,
10986
10987
  class: "mr-1 mt-1",
@@ -11128,7 +11129,7 @@ const xF = { class: "d-flex" }, CF = /* @__PURE__ */ H({
11128
11129
  title: e.label
11129
11130
  }, {
11130
11131
  default: f(() => [
11131
- (v(!0), K(ve, null, nt(o.value, (O) => (v(), x(Vo, {
11132
+ (v(!0), K(ge, null, nt(o.value, (O) => (v(), x(Vo, {
11132
11133
  id: O,
11133
11134
  key: O,
11134
11135
  "queue-id": e.queueId,
@@ -11325,7 +11326,7 @@ const xF = { class: "d-flex" }, CF = /* @__PURE__ */ H({
11325
11326
  },
11326
11327
  emits: ["editInDam"],
11327
11328
  setup(e, { emit: a }) {
11328
- const t = e, s = a, { t: o } = ae(), i = T(["metadata", "file"]), r = $t(), { asset: n, authorConflicts: l, metadataAreTouched: c, mainFileSingleUse: m } = lt(r), V = I(() => n.value?.attributes.assetType || Ai), g = I(() => V.value === se.Image), h = I(() => n.value && n.value.mainFile ? n.value.mainFile : null), F = () => {
11329
+ const t = e, s = a, { t: o } = ae(), i = T(["metadata", "file"]), r = $t(), { asset: n, authorConflicts: l, metadataAreTouched: c, mainFileSingleUse: m } = lt(r), V = I(() => n.value?.attributes.assetType || Ai), g = I(() => V.value === ie.Image), h = I(() => n.value && n.value.mainFile ? n.value.mainFile : null), F = () => {
11329
11330
  c.value = !0;
11330
11331
  }, { keywordRequired: p, keywordEnabled: q } = yn(
11331
11332
  // eslint-disable-next-line vue/no-ref-object-reactivity-loss
@@ -11336,7 +11337,7 @@ const xF = { class: "d-flex" }, CF = /* @__PURE__ */ H({
11336
11337
  V.value,
11337
11338
  t.extSystem
11338
11339
  ), { cachedUsers: D } = Od(), { mainFileSingleUseEnabled: Y, showFileInfoEnabled: X, editAssetLabel: y } = Ee(t.configName);
11339
- return (S, C) => (v(), K(ve, null, [
11340
+ return (S, C) => (v(), K(ge, null, [
11340
11341
  e.showEditButton && d(n) ? (v(), x(te, {
11341
11342
  key: 0,
11342
11343
  size: "small",
@@ -11724,7 +11725,7 @@ const xF = { class: "d-flex" }, CF = /* @__PURE__ */ H({
11724
11725
  o("onConfirm", q(s.returnType, J())), R();
11725
11726
  }, G = (me) => {
11726
11727
  me && F.value.hasNextPage === !0 && p();
11727
- }, { gridView: de } = Hi(), ee = I(() => s.assetType === se.Image && $.value > 0 && !_(s.uploadLicence) && $.value !== s.uploadLicence), ge = I(() => {
11728
+ }, { gridView: de } = Hi(), ee = I(() => s.assetType === ie.Image && $.value > 0 && !_(s.uploadLicence) && $.value !== s.uploadLicence), ve = I(() => {
11728
11729
  switch (de.value) {
11729
11730
  case ia.Table:
11730
11731
  return cn;
@@ -11733,7 +11734,7 @@ const xF = { class: "d-flex" }, CF = /* @__PURE__ */ H({
11733
11734
  case ia.Thumbnail:
11734
11735
  return fn;
11735
11736
  }
11736
- }), ce = I(() => g.value < s.minCount || g.value > s.maxCount), oe = I(() => {
11737
+ }), ce = I(() => g.value < s.minCount || g.value > s.maxCount), se = I(() => {
11737
11738
  if (U.value.length !== 0 && $.value > 0) {
11738
11739
  const me = U.value.find((Se) => Se.licence === $.value);
11739
11740
  if (me) return me.extSystem;
@@ -11742,7 +11743,7 @@ const xF = { class: "d-flex" }, CF = /* @__PURE__ */ H({
11742
11743
  F.value.sortBy = null, me.sortBy && (F.value.sortBy = { key: me.sortBy.key, order: me.sortBy.order }), D();
11743
11744
  };
11744
11745
  return Xe(
11745
- oe,
11746
+ se,
11746
11747
  async (me) => {
11747
11748
  if (_(me)) return;
11748
11749
  Ye.value = !0;
@@ -11767,7 +11768,7 @@ const xF = { class: "d-flex" }, CF = /* @__PURE__ */ H({
11767
11768
  const Ke = Be("ABtnSecondary"), Ae = Be("ABtnPrimary");
11768
11769
  return l.value ? (v(), K("div", DF, [
11769
11770
  u(Le, { indeterminate: "" })
11770
- ])) : n.value && U.value.length > 0 ? (v(), K(ve, { key: 1 }, [
11771
+ ])) : n.value && U.value.length > 0 ? (v(), K(ge, { key: 1 }, [
11771
11772
  le(me.$slots, "activator", {
11772
11773
  props: { onClick: Z(() => O(), ["stop"]) }
11773
11774
  }),
@@ -11809,9 +11810,9 @@ const xF = { class: "d-flex" }, CF = /* @__PURE__ */ H({
11809
11810
  u(tu, { "config-name": e.configName }, null, 8, ["config-name"])
11810
11811
  ]),
11811
11812
  B("div", EF, [
11812
- oe.value ? (v(), x(Xs(ge.value), {
11813
+ se.value ? (v(), x(Xs(ve.value), {
11813
11814
  key: 0,
11814
- "ext-system": oe.value
11815
+ "ext-system": se.value
11815
11816
  }, null, 8, ["ext-system"])) : E("", !0),
11816
11817
  B("div", MF, [
11817
11818
  ra((v(), x(Ke, {
@@ -11835,9 +11836,9 @@ const xF = { class: "d-flex" }, CF = /* @__PURE__ */ H({
11835
11836
  _e.value ? (v(), K("div", BF, [
11836
11837
  u(Le, { indeterminate: "" })
11837
11838
  ])) : d(P) ? (v(), K("div", PF, [
11838
- oe.value && !Ye.value ? (v(), x(Qo, {
11839
+ se.value && !Ye.value ? (v(), x(Qo, {
11839
11840
  key: 0,
11840
- "ext-system": oe.value,
11841
+ "ext-system": se.value,
11841
11842
  readonly: ""
11842
11843
  }, null, 8, ["ext-system"])) : E("", !0)
11843
11844
  ])) : (v(), K("div", _F, A(d(m)("common.assetSelect.meta.info.noAssetSelected")), 1))
@@ -11911,7 +11912,7 @@ const xF = { class: "d-flex" }, CF = /* @__PURE__ */ H({
11911
11912
  onClick: Z(o, ["stop"])
11912
11913
  }, {
11913
11914
  default: f(() => [
11914
- u(ie, { icon: "mdi-close" })
11915
+ u(oe, { icon: "mdi-close" })
11915
11916
  ]),
11916
11917
  _: 1
11917
11918
  })
@@ -11978,7 +11979,7 @@ const HF = {
11978
11979
  __name: "AssetImage",
11979
11980
  props: {
11980
11981
  src: { default: void 0 },
11981
- assetType: { default: se.Image },
11982
+ assetType: { default: ie.Image },
11982
11983
  assetStatus: { default: Yt.WithFile },
11983
11984
  backgroundColor: { default: "#ccc" },
11984
11985
  width: { default: void 0 },
@@ -12010,13 +12011,13 @@ const HF = {
12010
12011
  }, n = I(() => {
12011
12012
  if (t.assetStatus === Yt.Deleting) return "mdi-trash-can";
12012
12013
  switch (t.assetType) {
12013
- case se.Audio:
12014
+ case ie.Audio:
12014
12015
  return t.assetStatus === Yt.WithFile ? "mdi-music" : "mdi-music-off";
12015
- case se.Document:
12016
+ case ie.Document:
12016
12017
  return t.assetStatus === Yt.WithFile ? "mdi-note" : "mdi-note-off";
12017
- case se.Video:
12018
+ case ie.Video:
12018
12019
  return t.assetStatus === Yt.WithFile ? "mdi-video" : "mdi-video-off";
12019
- case se.Image:
12020
+ case ie.Image:
12020
12021
  return t.assetStatus === Yt.WithFile ? "mdi-image" : "mdi-image-off";
12021
12022
  default:
12022
12023
  return "";
@@ -12028,7 +12029,7 @@ const HF = {
12028
12029
  }), c = I(() => [
12029
12030
  Yt.Deleting,
12030
12031
  Yt.Draft
12031
- ].includes(t.assetStatus) ? "#ccc" : t.backgroundColor), m = I(() => t.assetStatus === Yt.WithFile ? "#505050" : "#8f8f8f"), V = I(() => _(t.src) ? Gt : t.src), g = I(() => t.hideIcon ? !1 : !(t.assetType === se.Image && t.src)), { remainingTimeShort: h } = jF();
12032
+ ].includes(t.assetStatus) ? "#ccc" : t.backgroundColor), m = I(() => t.assetStatus === Yt.WithFile ? "#505050" : "#8f8f8f"), V = I(() => _(t.src) ? Gt : t.src), g = I(() => t.hideIcon ? !1 : !(t.assetType === ie.Image && t.src)), { remainingTimeShort: h } = jF();
12032
12033
  return (F, p) => e.showUploading || e.showProcessing || e.showWaiting ? (v(), x(ti, {
12033
12034
  key: 0,
12034
12035
  "aspect-ratio": e.aspectRatio,
@@ -12097,7 +12098,7 @@ const HF = {
12097
12098
  class: "asset-image__icon-circle",
12098
12099
  style: Ut({ padding: e.iconSize / 4 + "px" })
12099
12100
  }, [
12100
- n.value.length ? (v(), x(ie, {
12101
+ n.value.length ? (v(), x(oe, {
12101
12102
  key: 0,
12102
12103
  size: e.iconSize,
12103
12104
  icon: n.value,
@@ -12106,7 +12107,7 @@ const HF = {
12106
12107
  ], 4)
12107
12108
  ])) : E("", !0),
12108
12109
  e.showDone ? (v(), K("div", ah, [
12109
- u(ie, {
12110
+ u(oe, {
12110
12111
  icon: "mdi-check-circle",
12111
12112
  color: "success",
12112
12113
  size: e.iconSize
@@ -12134,7 +12135,7 @@ const HF = {
12134
12135
  class: "asset-image__icon-circle",
12135
12136
  style: Ut({ padding: e.iconSize / 4 + "px" })
12136
12137
  }, [
12137
- n.value.length ? (v(), x(ie, {
12138
+ n.value.length ? (v(), x(oe, {
12138
12139
  key: 0,
12139
12140
  size: e.iconSize,
12140
12141
  icon: n.value,
@@ -12162,7 +12163,7 @@ const HF = {
12162
12163
  class: "asset-image__icon-circle",
12163
12164
  style: Ut({ padding: e.iconSize / 4 + "px" })
12164
12165
  }, [
12165
- n.value.length ? (v(), x(ie, {
12166
+ n.value.length ? (v(), x(oe, {
12166
12167
  key: 0,
12167
12168
  size: e.iconSize,
12168
12169
  icon: n.value,
@@ -12172,7 +12173,7 @@ const HF = {
12172
12173
  ], 4)
12173
12174
  ])) : E("", !0),
12174
12175
  e.showDone ? (v(), K("div", lh, [
12175
- u(ie, {
12176
+ u(oe, {
12176
12177
  icon: "mdi-check-circle",
12177
12178
  color: "success",
12178
12179
  size: e.iconSize
@@ -12254,7 +12255,7 @@ const An = /* @__PURE__ */ H({
12254
12255
  },
12255
12256
  setup(e) {
12256
12257
  const { t: a } = ae();
12257
- return (t, s) => (v(), K(ve, null, [
12258
+ return (t, s) => (v(), K(ge, null, [
12258
12259
  e.assetMainFileStatus && e.assetMainFileStatus === d(os).Duplicate ? (v(), K("div", ch, [
12259
12260
  u(Fi, {
12260
12261
  dark: "",
@@ -12367,7 +12368,7 @@ const bn = /* @__PURE__ */ H({
12367
12368
  };
12368
12369
  return (q, w) => {
12369
12370
  const b = Be("ABtnPrimary");
12370
- return v(), K(ve, null, [
12371
+ return v(), K(ge, null, [
12371
12372
  e.isActive ? (v(), x(bn, {
12372
12373
  key: 0,
12373
12374
  "queue-key": e.queueKey
@@ -12530,7 +12531,7 @@ const bn = /* @__PURE__ */ H({
12530
12531
  s.reset(), s.showLoader(), o.asset && o.asset.mainFile && Wi(o.asset.mainFile) && (s.setImageFile(Ie(o.asset.mainFile)), await g()), s.hideLoader();
12531
12532
  }), (F, p) => {
12532
12533
  const q = Be("ABtnTertiary");
12533
- return v(), K(ve, null, [
12534
+ return v(), K(ge, null, [
12534
12535
  e.isActive ? (v(), x(bn, {
12535
12536
  key: 0,
12536
12537
  "queue-key": e.queueKey
@@ -12558,7 +12559,7 @@ const bn = /* @__PURE__ */ H({
12558
12559
  color: "primary"
12559
12560
  })
12560
12561
  ])) : d(s).roi ? (v(), K("div", kh, [
12561
- (v(!0), K(ve, null, nt(d(s).roi?.links.image_roi_example, (w) => (v(), K("div", {
12562
+ (v(!0), K(ge, null, nt(d(s).roi?.links.image_roi_example, (w) => (v(), K("div", {
12562
12563
  key: w.url,
12563
12564
  class: "pb-2"
12564
12565
  }, [
@@ -12661,7 +12662,7 @@ const bn = /* @__PURE__ */ H({
12661
12662
  "asset-main-file-status": e.assetMainFileStatus,
12662
12663
  "asset-main-file-fail-reason": e.assetMainFileFailReason
12663
12664
  }, null, 8, ["asset-status", "asset-main-file-status", "asset-main-file-fail-reason"]),
12664
- r.value ? (v(), K(ve, { key: 0 }, [
12665
+ r.value ? (v(), K(ge, { key: 0 }, [
12665
12666
  B("div", Dh, [
12666
12667
  u(Vl, {
12667
12668
  "queue-key": e.queueKey,
@@ -12678,7 +12679,7 @@ const bn = /* @__PURE__ */ H({
12678
12679
  "config-name": e.configName
12679
12680
  }, null, 8, ["queue-key", "config-name"])
12680
12681
  ])
12681
- ], 64)) : (v(), K(ve, { key: 1 }, [
12682
+ ], 64)) : (v(), K(ge, { key: 1 }, [
12682
12683
  d(o) === d(_t).Info ? (v(), K("div", Eh, [
12683
12684
  u(Vl, {
12684
12685
  "queue-key": e.queueKey,
@@ -13185,8 +13186,8 @@ function gp(e, a, t, s) {
13185
13186
  aspectRatio: o,
13186
13187
  width: $,
13187
13188
  height: N
13188
- }, "cover"), de = Math.min(j.width, Math.max(G.width, i)), ee = Math.min(j.height, Math.max(G.height, r)), ge = [-de / 2, -ee / 2, de, ee];
13189
- return k.width = Gs(R), k.height = Gs(J), L.fillStyle = w, L.fillRect(0, 0, R, J), L.save(), L.translate(R / 2, J / 2), L.rotate(l * Math.PI / 180), L.scale(m, g), L.imageSmoothingEnabled = D, L.imageSmoothingQuality = X, L.drawImage.apply(L, [e].concat(hu(ge.map(function(ce) {
13189
+ }, "cover"), de = Math.min(j.width, Math.max(G.width, i)), ee = Math.min(j.height, Math.max(G.height, r)), ve = [-de / 2, -ee / 2, de, ee];
13190
+ return k.width = Gs(R), k.height = Gs(J), L.fillStyle = w, L.fillRect(0, 0, R, J), L.save(), L.translate(R / 2, J / 2), L.rotate(l * Math.PI / 180), L.scale(m, g), L.imageSmoothingEnabled = D, L.imageSmoothingQuality = X, L.drawImage.apply(L, [e].concat(hu(ve.map(function(ce) {
13190
13191
  return Math.floor(Gs(ce));
13191
13192
  })))), L.restore(), k;
13192
13193
  }
@@ -14235,7 +14236,7 @@ const wp = { class: "d-flex flex-column" }, Sp = {
14235
14236
  }, D = I(() => !!(i.imageFile && V.value.length > 0 && !i.loader));
14236
14237
  return ks(() => {
14237
14238
  m.value && m.value.destroy();
14238
- }), (Y, X) => (v(), K(ve, null, [
14239
+ }), (Y, X) => (v(), K(ge, null, [
14239
14240
  d(i).loader ? (v(), K("div", Tp, [
14240
14241
  u(Le, { indeterminate: "" })
14241
14242
  ])) : E("", !0),
@@ -14276,7 +14277,7 @@ const wp = { class: "d-flex flex-column" }, Sp = {
14276
14277
  }, h = T(!0), F = () => {
14277
14278
  h.value = !h.value;
14278
14279
  }, p = () => {
14279
- }, q = I(() => n.value?.attributes.assetType || Ai), w = I(() => n.value ? n.value.attributes.assetStatus : Ho), b = I(() => q.value === se.Image), D = I(() => V && b.value), Y = I(() => q.value === se.Video), X = I(() => q.value === se.Audio), y = I(() => q.value === se.Document), S = I(() => n.value?.mainFile && n.value.mainFile.links && n.value.mainFile.links.image_detail ? {
14280
+ }, q = I(() => n.value?.attributes.assetType || Ai), w = I(() => n.value ? n.value.attributes.assetStatus : Ho), b = I(() => q.value === ie.Image), D = I(() => V && b.value), Y = I(() => q.value === ie.Video), X = I(() => q.value === ie.Audio), y = I(() => q.value === ie.Document), S = I(() => n.value?.mainFile && n.value.mainFile.links && n.value.mainFile.links.image_detail ? {
14280
14281
  url: n.value.mainFile.links.image_detail.url,
14281
14282
  width: n.value.mainFile.links.image_detail.width,
14282
14283
  height: n.value.mainFile.links.image_detail.height,
@@ -14325,7 +14326,7 @@ const wp = { class: "d-flex flex-column" }, Sp = {
14325
14326
  onClick: Z(F, ["stop"])
14326
14327
  }, {
14327
14328
  default: f(() => [
14328
- u(ie, { icon: "mdi-information-outline" }),
14329
+ u(oe, { icon: "mdi-information-outline" }),
14329
14330
  u(be, {
14330
14331
  activator: "parent",
14331
14332
  location: "bottom"
@@ -14347,7 +14348,7 @@ const wp = { class: "d-flex flex-column" }, Sp = {
14347
14348
  onClick: Z(g, ["stop"])
14348
14349
  }, {
14349
14350
  default: f(() => [
14350
- u(ie, { icon: "mdi-close" }),
14351
+ u(oe, { icon: "mdi-close" }),
14351
14352
  u(be, {
14352
14353
  activator: "parent",
14353
14354
  location: "bottom"
@@ -14423,10 +14424,10 @@ function sr(e = void 0, a) {
14423
14424
  }, s = I(() => e ? {
14424
14425
  ...t(e)
14425
14426
  } : {
14426
- ...t(se.Image),
14427
- ...t(se.Audio),
14428
- ...t(se.Video),
14429
- ...t(se.Document)
14427
+ ...t(ie.Image),
14428
+ ...t(ie.Audio),
14429
+ ...t(ie.Video),
14430
+ ...t(ie.Document)
14430
14431
  }), o = I(() => Object.keys(s.value).join(","));
14431
14432
  return {
14432
14433
  uploadSizes: s,
@@ -14555,7 +14556,7 @@ const Up = { class: "dam-upload-queue__item" }, Np = { class: "dam-upload-queue_
14555
14556
  "aspect-ratio": tq
14556
14557
  }, null, 8, ["asset-type", "asset-status", "src", "show-uploading", "show-processing", "show-waiting", "show-done", "uploading-progress", "remaining-time"]),
14557
14558
  e.item.error.hasError ? (v(), K("div", jp, [
14558
- u(ie, {
14559
+ u(oe, {
14559
14560
  icon: "mdi-alert",
14560
14561
  class: "ma-1",
14561
14562
  size: "x-small",
@@ -14611,7 +14612,7 @@ const Up = { class: "dam-upload-queue__item" }, Np = { class: "dam-upload-queue_
14611
14612
  onClick: Z(C, ["stop"])
14612
14613
  }, {
14613
14614
  default: f(() => [
14614
- u(ie, { icon: "mdi-refresh" }),
14615
+ u(oe, { icon: "mdi-refresh" }),
14615
14616
  u(be, {
14616
14617
  activator: "parent",
14617
14618
  location: "bottom"
@@ -14632,7 +14633,7 @@ const Up = { class: "dam-upload-queue__item" }, Np = { class: "dam-upload-queue_
14632
14633
  onClick: Z(b, ["stop"])
14633
14634
  }, {
14634
14635
  default: f(() => [
14635
- u(ie, { icon: "mdi-close-circle-outline" }),
14636
+ u(oe, { icon: "mdi-close-circle-outline" }),
14636
14637
  u(be, {
14637
14638
  activator: "parent",
14638
14639
  location: "bottom"
@@ -14826,7 +14827,7 @@ const Up = { class: "dam-upload-queue__item" }, Np = { class: "dam-upload-queue_
14826
14827
  throw new Error("Custom form elements must be initialised.");
14827
14828
  const m = I(() => c[t.assetType]);
14828
14829
  return (V, g) => (v(), K("div", iq, [
14829
- (v(!0), K(ve, null, nt(m.value, (h) => (v(), x(Fe, {
14830
+ (v(!0), K(ge, null, nt(m.value, (h) => (v(), x(Fe, {
14830
14831
  key: h.id,
14831
14832
  density: "comfortable",
14832
14833
  class: "mt-1"
@@ -14848,7 +14849,7 @@ const Up = { class: "dam-upload-queue__item" }, Np = { class: "dam-upload-queue_
14848
14849
  onClick: Z((F) => r(h.property, e.modelValue[h.property]), ["stop"])
14849
14850
  }, {
14850
14851
  default: f(() => [
14851
- u(ie, { icon: "mdi-file-arrow-left-right-outline" }),
14852
+ u(oe, { icon: "mdi-file-arrow-left-right-outline" }),
14852
14853
  u(be, {
14853
14854
  activator: "parent",
14854
14855
  location: "bottom"
@@ -14868,7 +14869,7 @@ const Up = { class: "dam-upload-queue__item" }, Np = { class: "dam-upload-queue_
14868
14869
  onClick: Z((F) => n(h.property, e.modelValue[h.property]), ["stop"])
14869
14870
  }, {
14870
14871
  default: f(() => [
14871
- u(ie, { icon: "mdi-file-replace-outline" }),
14872
+ u(oe, { icon: "mdi-file-replace-outline" }),
14872
14873
  u(be, {
14873
14874
  activator: "parent",
14874
14875
  location: "bottom"
@@ -14943,7 +14944,7 @@ const dq = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, uq = { clas
14943
14944
  for (const [C, P] of Object.entries(t.value.image))
14944
14945
  l(
14945
14946
  {
14946
- assetType: se.Image,
14947
+ assetType: ie.Image,
14947
14948
  elementProperty: C,
14948
14949
  value: P
14949
14950
  },
@@ -14952,7 +14953,7 @@ const dq = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, uq = { clas
14952
14953
  for (const [C, P] of Object.entries(t.value.video))
14953
14954
  l(
14954
14955
  {
14955
- assetType: se.Video,
14956
+ assetType: ie.Video,
14956
14957
  elementProperty: C,
14957
14958
  value: P
14958
14959
  },
@@ -14961,7 +14962,7 @@ const dq = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, uq = { clas
14961
14962
  for (const [C, P] of Object.entries(t.value.audio))
14962
14963
  l(
14963
14964
  {
14964
- assetType: se.Audio,
14965
+ assetType: ie.Audio,
14965
14966
  elementProperty: C,
14966
14967
  value: P
14967
14968
  },
@@ -14970,7 +14971,7 @@ const dq = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, uq = { clas
14970
14971
  for (const [C, P] of Object.entries(t.value.document))
14971
14972
  l(
14972
14973
  {
14973
- assetType: se.Document,
14974
+ assetType: ie.Document,
14974
14975
  elementProperty: C,
14975
14976
  value: P
14976
14977
  },
@@ -15052,7 +15053,7 @@ const dq = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, uq = { clas
15052
15053
  onClick: Z(h, ["stop"])
15053
15054
  }, {
15054
15055
  default: f(() => [
15055
- u(ie, { icon: "mdi-file-arrow-left-right-outline" }),
15056
+ u(oe, { icon: "mdi-file-arrow-left-right-outline" }),
15056
15057
  u(be, {
15057
15058
  activator: "parent",
15058
15059
  location: "bottom"
@@ -15072,7 +15073,7 @@ const dq = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, uq = { clas
15072
15073
  onClick: Z(F, ["stop"])
15073
15074
  }, {
15074
15075
  default: f(() => [
15075
- u(ie, { icon: "mdi-file-replace-outline" }),
15076
+ u(oe, { icon: "mdi-file-replace-outline" }),
15076
15077
  u(be, {
15077
15078
  activator: "parent",
15078
15079
  location: "bottom"
@@ -15128,7 +15129,7 @@ const dq = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, uq = { clas
15128
15129
  onClick: Z(p, ["stop"])
15129
15130
  }, {
15130
15131
  default: f(() => [
15131
- u(ie, { icon: "mdi-file-arrow-left-right-outline" }),
15132
+ u(oe, { icon: "mdi-file-arrow-left-right-outline" }),
15132
15133
  u(be, {
15133
15134
  activator: "parent",
15134
15135
  location: "bottom"
@@ -15148,7 +15149,7 @@ const dq = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, uq = { clas
15148
15149
  onClick: Z(q, ["stop"])
15149
15150
  }, {
15150
15151
  default: f(() => [
15151
- u(ie, { icon: "mdi-file-replace-outline" }),
15152
+ u(oe, { icon: "mdi-file-replace-outline" }),
15152
15153
  u(be, {
15153
15154
  activator: "parent",
15154
15155
  location: "bottom"
@@ -15177,11 +15178,11 @@ const dq = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, uq = { clas
15177
15178
  ]),
15178
15179
  _: 1
15179
15180
  }, 8, ["title"])) : E("", !0),
15180
- D.value.includes(d(se).Image) ? (v(), x(Qs, {
15181
+ D.value.includes(d(ie).Image) ? (v(), x(Qs, {
15181
15182
  key: 1,
15182
15183
  elevation: "0",
15183
15184
  title: d(i)("common.damImage.asset.assetType.image"),
15184
- value: d(se).Image
15185
+ value: d(ie).Image
15185
15186
  }, {
15186
15187
  default: f(() => [
15187
15188
  u(ei, null, {
@@ -15189,7 +15190,7 @@ const dq = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, uq = { clas
15189
15190
  u(nq, {
15190
15191
  modelValue: t.value.image,
15191
15192
  "onUpdate:modelValue": C[2] || (C[2] = (P) => t.value.image = P),
15192
- "asset-type": d(se).Image,
15193
+ "asset-type": d(ie).Image,
15193
15194
  "ext-system": e.extSystem,
15194
15195
  onFillEmptyField: V,
15195
15196
  onReplaceField: g
@@ -15268,7 +15269,7 @@ const dq = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, uq = { clas
15268
15269
  y.mainFile?.fileAttributes.status === os.Processed ? await l.queueItemFullyProcessed(y.id) : y.mainFile?.fileAttributes.status === os.Duplicate ? await l.queueItemDuplicate(
15269
15270
  y.id,
15270
15271
  y.mainFile.originAssetFile,
15271
- se.Image
15272
+ ie.Image
15272
15273
  ) : y.mainFile?.fileAttributes.status === os.Failed ? await l.queueItemFailed(
15273
15274
  X.assetId,
15274
15275
  y.mainFile.fileAttributes.failReason
@@ -15320,7 +15321,7 @@ const dq = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, uq = { clas
15320
15321
  }, [
15321
15322
  u(Fe, { class: "dam-upload-queue dam-upload-queue--editable pa-2 mb-5" }, {
15322
15323
  default: f(() => [
15323
- (v(!0), K(ve, null, nt(c.value, (S, C) => (v(), x(sq, {
15324
+ (v(!0), K(ge, null, nt(c.value, (S, C) => (v(), x(sq, {
15324
15325
  key: S.key,
15325
15326
  "custom-data": S.customData,
15326
15327
  "onUpdate:customData": (P) => S.customData = P,
@@ -15378,7 +15379,7 @@ const dq = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, uq = { clas
15378
15379
  }, { t: l } = ae();
15379
15380
  return (c, m) => {
15380
15381
  const V = Be("ABtnTertiary"), g = Be("ABtnPrimary");
15381
- return v(), K(ve, null, [
15382
+ return v(), K(ge, null, [
15382
15383
  u(te, {
15383
15384
  variant: "flat",
15384
15385
  "data-cy": e.dataCy,
@@ -15388,7 +15389,7 @@ const dq = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, uq = { clas
15388
15389
  onClick: Z(i, ["stop"])
15389
15390
  }, {
15390
15391
  default: f(() => [
15391
- u(ie, { icon: "mdi-close" }),
15392
+ u(oe, { icon: "mdi-close" }),
15392
15393
  u(be, {
15393
15394
  activator: "parent",
15394
15395
  location: "bottom"
@@ -15457,7 +15458,8 @@ async function Tu(e, a, t, s, o) {
15457
15458
  a.forEach((c) => {
15458
15459
  i.set(c.id, {
15459
15460
  description: aa(c.customData?.description) ? c.customData.description.trim() : "",
15460
- authorIds: c.authors
15461
+ authorIds: c.authors,
15462
+ mainFileInternal: c.mainFileInternal ?? !1
15461
15463
  });
15462
15464
  });
15463
15465
  const r = /* @__PURE__ */ new Set();
@@ -15489,7 +15491,8 @@ async function Tu(e, a, t, s, o) {
15489
15491
  dam: {
15490
15492
  damId: c.fileId,
15491
15493
  regionPosition: 0,
15492
- licenceId: o
15494
+ licenceId: o,
15495
+ internal: i.get(c.assetId)?.mainFileInternal ?? !1
15493
15496
  },
15494
15497
  authorIds: V || [],
15495
15498
  assetId: c.assetId || void 0
@@ -15667,7 +15670,7 @@ const Gi = $s("commonImageStore", () => {
15667
15670
  onClick: Z($, ["stop"])
15668
15671
  }, {
15669
15672
  default: f(() => [
15670
- u(ie, { icon: "mdi-content-save" }),
15673
+ u(oe, { icon: "mdi-content-save" }),
15671
15674
  u(be, {
15672
15675
  activator: "parent",
15673
15676
  location: "bottom"
@@ -15696,7 +15699,7 @@ const Gi = $s("commonImageStore", () => {
15696
15699
  width: 34
15697
15700
  }, G), {
15698
15701
  default: f(() => [
15699
- u(ie, { icon: "mdi-plus" }),
15702
+ u(oe, { icon: "mdi-plus" }),
15700
15703
  u(be, {
15701
15704
  activator: "parent",
15702
15705
  location: "bottom"
@@ -15727,7 +15730,7 @@ const Gi = $s("commonImageStore", () => {
15727
15730
  onClick: Z(d(r), ["stop"])
15728
15731
  }, {
15729
15732
  default: f(() => [
15730
- u(ie, { icon: "mdi-tag-text-outline" }),
15733
+ u(oe, { icon: "mdi-tag-text-outline" }),
15731
15734
  u(be, {
15732
15735
  activator: "parent",
15733
15736
  location: "bottom"
@@ -15848,7 +15851,7 @@ const Gi = $s("commonImageStore", () => {
15848
15851
  r.value.sortBy = null, Ae.sortBy && (r.value.sortBy = { key: Ae.sortBy.key, order: Ae.sortBy.order }), m();
15849
15852
  }, ee = () => {
15850
15853
  b.value && (D.value = a.queueKey);
15851
- }, ge = async () => {
15854
+ }, ve = async () => {
15852
15855
  const Ae = Y.assetListItems.find((De) => De.active);
15853
15856
  if (Ae) {
15854
15857
  c.value = !0;
@@ -15861,7 +15864,7 @@ const Gi = $s("commonImageStore", () => {
15861
15864
  c.value = !1;
15862
15865
  }
15863
15866
  }
15864
- }, ce = ct(Ja, void 0), oe = I(
15867
+ }, ce = ft(Ja, void 0), se = I(
15865
15868
  () => we(ce) && we(ce.value)
15866
15869
  ), { uploadQueueDialog: _e } = ni(), Q = zt(), { uploadSizes: Ye, uploadAccept: he } = sr(
15867
15870
  a.assetType,
@@ -15895,8 +15898,8 @@ const Gi = $s("commonImageStore", () => {
15895
15898
  V();
15896
15899
  }), (Ae, De) => {
15897
15900
  const it = Be("ABtnSecondary");
15898
- return v(), K(ve, null, [
15899
- oe.value ? le(Ae.$slots, "upload-activator", {
15901
+ return v(), K(ge, null, [
15902
+ se.value ? le(Ae.$slots, "upload-activator", {
15900
15903
  key: 0,
15901
15904
  onFileInput: Se,
15902
15905
  uploadAccept: d(he),
@@ -16014,9 +16017,9 @@ const Gi = $s("commonImageStore", () => {
16014
16017
  key: 1,
16015
16018
  "queue-key": e.queueKey,
16016
16019
  "ext-system": R.value,
16017
- onClose: ge
16020
+ onClose: ve
16018
16021
  }, null, 8, ["queue-key", "ext-system"])) : E("", !0),
16019
- oe.value && d(_e) === e.queueKey && d(ce) ? (v(), x(Eu, {
16022
+ se.value && d(_e) === e.queueKey && d(ce) ? (v(), x(Eu, {
16020
16023
  key: 2,
16021
16024
  "queue-key": e.queueKey,
16022
16025
  "ext-system": d(ce).extSystem,
@@ -16364,7 +16367,7 @@ const Uq = ["data-id"], Nq = { class: "a-sortable-nested-widget__nested" }, Oq =
16364
16367
  return;
16365
16368
  }
16366
16369
  s("onAddChild", Ie(t.item));
16367
- }, l = ct(Kl, 1);
16370
+ }, l = ft(Kl, 1);
16368
16371
  ot(Kl, l + 1);
16369
16372
  const c = I(() => t.showAddChildButton && !_(t.item.children) && t.item.children.length === 0 && l < t.maxDepth), { t: m } = ae();
16370
16373
  return (V, g) => {
@@ -16375,7 +16378,7 @@ const Uq = ["data-id"], Nq = { class: "a-sortable-nested-widget__nested" }, Oq =
16375
16378
  }, [
16376
16379
  B("div", Nq, [
16377
16380
  B("div", Oq, [
16378
- u(ie, {
16381
+ u(oe, {
16379
16382
  class: pe({
16380
16383
  [d(jr)]: !0,
16381
16384
  [d(jr) + "--disabled"]: e.disableDraggable
@@ -16395,7 +16398,7 @@ const Uq = ["data-id"], Nq = { class: "a-sortable-nested-widget__nested" }, Oq =
16395
16398
  onClick: Z(i, ["stop"])
16396
16399
  }, {
16397
16400
  default: f(() => [
16398
- u(ie, { icon: "mdi-pencil" }),
16401
+ u(oe, { icon: "mdi-pencil" }),
16399
16402
  u(be, {
16400
16403
  anchor: "bottom",
16401
16404
  activator: "parent",
@@ -16413,7 +16416,7 @@ const Uq = ["data-id"], Nq = { class: "a-sortable-nested-widget__nested" }, Oq =
16413
16416
  onClick: Z(o, ["stop"])
16414
16417
  }, {
16415
16418
  default: f(() => [
16416
- u(ie, { icon: "mdi-trash-can-outline" }),
16419
+ u(oe, { icon: "mdi-trash-can-outline" }),
16417
16420
  u(be, {
16418
16421
  anchor: "bottom",
16419
16422
  activator: "parent",
@@ -16431,7 +16434,7 @@ const Uq = ["data-id"], Nq = { class: "a-sortable-nested-widget__nested" }, Oq =
16431
16434
  class: "mx-1"
16432
16435
  }, {
16433
16436
  default: f(() => [
16434
- u(ie, { icon: "mdi-dots-vertical" }),
16437
+ u(oe, { icon: "mdi-dots-vertical" }),
16435
16438
  u(be, {
16436
16439
  anchor: "bottom",
16437
16440
  activator: "parent",
@@ -16475,7 +16478,7 @@ const Uq = ["data-id"], Nq = { class: "a-sortable-nested-widget__nested" }, Oq =
16475
16478
  class: pe(["a-sortable-nested-widget__group", { "a-sortable-nested-widget__group--empty": e.item.children.length === 0 }]),
16476
16479
  "data-id": e.item.data.id
16477
16480
  }, [
16478
- (v(!0), K(ve, null, nt(e.item.children, (F) => (v(), x(h, {
16481
+ (v(!0), K(ge, null, nt(e.item.children, (F) => (v(), x(h, {
16479
16482
  key: F.data.id,
16480
16483
  item: F,
16481
16484
  "disable-draggable": e.disableDraggable,
@@ -16622,7 +16625,7 @@ const Uq = ["data-id"], Nq = { class: "a-sortable-nested-widget__nested" }, Oq =
16622
16625
  key: d(Y),
16623
16626
  class: pe(d(Sl))
16624
16627
  }, [
16625
- (v(!0), K(ve, null, nt(e.modelValue.children, (R) => (v(), x(Gq, {
16628
+ (v(!0), K(ge, null, nt(e.modelValue.children, (R) => (v(), x(Gq, {
16626
16629
  key: R.data.id,
16627
16630
  item: R,
16628
16631
  "disable-draggable": e.disableDraggable,
@@ -16760,7 +16763,7 @@ const Uq = ["data-id"], Nq = { class: "a-sortable-nested-widget__nested" }, Oq =
16760
16763
  open: h
16761
16764
  }), (y, S) => {
16762
16765
  const C = Be("ABtnSecondary"), P = Be("ABtnPrimary");
16763
- return v(), K(ve, null, [
16766
+ return v(), K(ge, null, [
16764
16767
  le(y.$slots, "activator", {
16765
16768
  props: { onClick: Z(() => h(), ["stop"]) }
16766
16769
  }),
@@ -16806,7 +16809,7 @@ const Uq = ["data-id"], Nq = { class: "a-sortable-nested-widget__nested" }, Oq =
16806
16809
  onClick: F
16807
16810
  }, {
16808
16811
  default: f(() => [
16809
- u(ie, {
16812
+ u(oe, {
16810
16813
  icon: "mdi-tune",
16811
16814
  size: 16
16812
16815
  }),
@@ -16871,7 +16874,7 @@ const Uq = ["data-id"], Nq = { class: "a-sortable-nested-widget__nested" }, Oq =
16871
16874
  onClick: Z(e.resetFilter, ["stop"])
16872
16875
  }, {
16873
16876
  default: f(() => [
16874
- u(ie, { icon: "mdi-filter-remove-outline" }),
16877
+ u(oe, { icon: "mdi-filter-remove-outline" }),
16875
16878
  u(be, {
16876
16879
  activator: "parent",
16877
16880
  location: "bottom"
@@ -17053,7 +17056,7 @@ const p7 = {
17053
17056
  }
17054
17057
  },
17055
17058
  { immediate: !0 }
17056
- ), (h, F) => (v(), K(ve, null, [
17059
+ ), (h, F) => (v(), K(ge, null, [
17057
17060
  e.label ? (v(), K("div", p7, [
17058
17061
  B("h4", q7, A(e.label), 1)
17059
17062
  ])) : E("", !0),
@@ -17078,7 +17081,7 @@ const p7 = {
17078
17081
  }, {
17079
17082
  error: f(() => [
17080
17083
  B("div", Y7, [
17081
- u(ie, { icon: "mdi-alert-circle-outline" })
17084
+ u(oe, { icon: "mdi-alert-circle-outline" })
17082
17085
  ])
17083
17086
  ]),
17084
17087
  placeholder: f(() => [
@@ -17178,7 +17181,7 @@ const p7 = {
17178
17181
  },
17179
17182
  emits: ["editAsset", "onConfirm", "onClose"],
17180
17183
  setup(e, { expose: a, emit: t }) {
17181
- const s = e, o = t, { t: i } = ae(), r = hn(), { detail: n } = lt(r), l = $t(), { asset: c, authorConflicts: m } = lt(l), { cachedExtSystemId: V } = Aa(), g = I(() => ts(n.value) ? n.value.damMedia.assetType === Sn.Video ? se.Video : se.Audio : Zt(n.value) ? se.Image : null), h = I(() => !s.showDamAuthors), F = I(() => {
17184
+ const s = e, o = t, { t: i } = ae(), r = hn(), { detail: n } = lt(r), l = $t(), { asset: c, authorConflicts: m } = lt(l), { cachedExtSystemId: V } = Aa(), g = I(() => ts(n.value) ? n.value.damMedia.assetType === Sn.Video ? ie.Video : ie.Audio : Zt(n.value) ? ie.Image : null), h = I(() => !s.showDamAuthors), F = I(() => {
17182
17185
  if (!(!ts(n.value) || ne(n.value.damMedia.imageFileId)))
17183
17186
  return {
17184
17187
  texts: {
@@ -17188,7 +17191,8 @@ const p7 = {
17188
17191
  dam: {
17189
17192
  damId: n.value.damMedia.imageFileId,
17190
17193
  licenceId: n.value.damMedia.licenceId,
17191
- regionPosition: 0
17194
+ regionPosition: 0,
17195
+ internal: !1
17192
17196
  },
17193
17197
  flags: {
17194
17198
  showSource: !1,
@@ -17225,7 +17229,7 @@ const p7 = {
17225
17229
  ]),
17226
17230
  _: 1
17227
17231
  })) : E("", !0),
17228
- d(Zt)(d(n)) ? (v(), K(ve, { key: 1 }, [
17232
+ d(Zt)(d(n)) ? (v(), K(ge, { key: 1 }, [
17229
17233
  u(Fe, null, {
17230
17234
  default: f(() => [
17231
17235
  u(re, null, {
@@ -17337,7 +17341,7 @@ const p7 = {
17337
17341
  onOnCancel: X[4] || (X[4] = (S) => b(!1))
17338
17342
  }, {
17339
17343
  default: f(() => [
17340
- M(A(g.value === d(se).Image ? d(i)("common.damImage.image.meta.edit") : d(i)("common.damImage.media.meta.edit")), 1)
17344
+ M(A(g.value === d(ie).Image ? d(i)("common.damImage.image.meta.edit") : d(i)("common.damImage.media.meta.edit")), 1)
17341
17345
  ]),
17342
17346
  _: 1
17343
17347
  }),
@@ -17471,7 +17475,7 @@ const p7 = {
17471
17475
  _: 1
17472
17476
  }),
17473
17477
  d(n).damMedia.playable ? E("", !0) : (v(), K("div", B7, [
17474
- u(ie, {
17478
+ u(oe, {
17475
17479
  icon: "mdi-movie-off-outline",
17476
17480
  class: "mr-1",
17477
17481
  size: "small"
@@ -17494,7 +17498,7 @@ const p7 = {
17494
17498
  ]),
17495
17499
  _: 1
17496
17500
  }, 8, ["title"]),
17497
- d(n).damMedia.assetType === "audio" ? (v(), K(ve, { key: 1 }, [
17501
+ d(n).damMedia.assetType === "audio" ? (v(), K(ge, { key: 1 }, [
17498
17502
  u(Oe, {
17499
17503
  title: d(i)("common.damImage.media.model.damMedia.seriesName")
17500
17504
  }, {
@@ -17572,7 +17576,7 @@ const p7 = {
17572
17576
  configName: { default: "default" }
17573
17577
  },
17574
17578
  setup(e) {
17575
- const a = e, { t } = ae(), s = T(["metadata", "file"]), o = $t(), { asset: i, authorConflicts: r, metadataAreTouched: n, mainFileSingleUse: l } = lt(o), c = zt(), m = I(() => c.getQueueItems(a.queueKey)), V = I(() => m.value[0] ?? null), g = I(() => se.Image), h = I(() => g.value === se.Image), F = I(() => i.value && i.value.mainFile ? i.value.mainFile : null), p = () => {
17579
+ const a = e, { t } = ae(), s = T(["metadata", "file"]), o = $t(), { asset: i, authorConflicts: r, metadataAreTouched: n, mainFileSingleUse: l } = lt(o), c = zt(), m = I(() => c.getQueueItems(a.queueKey)), V = I(() => m.value[0] ?? null), g = I(() => ie.Image), h = I(() => g.value === ie.Image), F = I(() => i.value && i.value.mainFile ? i.value.mainFile : null), p = () => {
17576
17580
  n.value = !0;
17577
17581
  }, { keywordRequired: q, keywordEnabled: w } = yn(
17578
17582
  // eslint-disable-next-line vue/no-ref-object-reactivity-loss
@@ -17895,7 +17899,7 @@ const p7 = {
17895
17899
  };
17896
17900
  return (V, g) => {
17897
17901
  const h = Be("ABtnSecondary"), F = Be("ABtnPrimary");
17898
- return v(), K(ve, null, [
17902
+ return v(), K(ge, null, [
17899
17903
  e.isActive ? (v(), x(bn, {
17900
17904
  key: 0,
17901
17905
  "queue-key": e.queueKey
@@ -18000,7 +18004,7 @@ const p7 = {
18000
18004
  }, 8, ["modelValue"])),
18001
18005
  B("div", z7, [
18002
18006
  le(c.$slots, "prepend-sidebar"),
18003
- l.value ? (v(), K(ve, { key: 0 }, [
18007
+ l.value ? (v(), K(ge, { key: 0 }, [
18004
18008
  B("div", R7, [
18005
18009
  u(Dl, {
18006
18010
  "queue-key": e.queueKey,
@@ -18019,7 +18023,7 @@ const p7 = {
18019
18023
  "config-name": e.configName
18020
18024
  }, null, 8, ["queue-key", "config-name"])
18021
18025
  ])
18022
- ], 64)) : (v(), K(ve, { key: 1 }, [
18026
+ ], 64)) : (v(), K(ge, { key: 1 }, [
18023
18027
  d(r) === d(_t).Info ? (v(), K("div", N7, [
18024
18028
  u(Dl, {
18025
18029
  "queue-key": e.queueKey,
@@ -18096,7 +18100,7 @@ const p7 = {
18096
18100
  assetStatus: q.value.assetStatus
18097
18101
  },
18098
18102
  mainFileSingleUse: !1,
18099
- mainFileInternal: null,
18103
+ mainFileInternal: q.value.mainFileInternal ?? null,
18100
18104
  mainFileOverrideInternal: null,
18101
18105
  flags: {
18102
18106
  described: !1,
@@ -18129,7 +18133,7 @@ const p7 = {
18129
18133
  modifiedBy: null
18130
18134
  }), b = T(!0), D = () => {
18131
18135
  b.value = !b.value;
18132
- }, Y = I(() => w.value?.attributes.assetType || Ai), X = I(() => w.value ? w.value.attributes.assetStatus : Ho), y = I(() => Y.value === se.Image), S = I(() => Y.value === se.Video), C = I(() => Y.value === se.Audio), P = I(() => Y.value === se.Document), W = I(() => q.value?.imagePreview ? {
18136
+ }, Y = I(() => w.value?.attributes.assetType || Ai), X = I(() => w.value ? w.value.attributes.assetStatus : Ho), y = I(() => Y.value === ie.Image), S = I(() => Y.value === ie.Video), C = I(() => Y.value === ie.Audio), P = I(() => Y.value === ie.Document), W = I(() => q.value?.imagePreview ? {
18133
18137
  url: q.value.imagePreview.url,
18134
18138
  width: q.value.imagePreview.requestedWidth || void 0,
18135
18139
  height: q.value.imagePreview.requestedHeight || void 0,
@@ -18150,9 +18154,9 @@ const p7 = {
18150
18154
  // eslint-disable-next-line vue/no-setup-props-reactivity-loss
18151
18155
  } = Ee(t.configName), ee = I(
18152
18156
  () => de && y.value && g.value
18153
- ), ge = async () => {
18157
+ ), ve = async () => {
18154
18158
  h.stopUpload(t.queueKey), l.setAsset(null), F.value = null;
18155
- }, ce = I(() => h.getQueueTotalCount(t.queueKey)), oe = I(() => h.getQueueProcessedCount(t.queueKey)), _e = I(() => ce.value > oe.value), Q = async () => {
18159
+ }, ce = I(() => h.getQueueTotalCount(t.queueKey)), se = I(() => h.getQueueProcessedCount(t.queueKey)), _e = I(() => ce.value > se.value), Q = async () => {
18156
18160
  if (p.value.length !== 0)
18157
18161
  try {
18158
18162
  await To(
@@ -18195,7 +18199,7 @@ const p7 = {
18195
18199
  ...Se,
18196
18200
  position: 1
18197
18201
  }))
18198
- ), await ge();
18202
+ ), await ve();
18199
18203
  } catch (he) {
18200
18204
  o(he);
18201
18205
  }
@@ -18222,7 +18226,7 @@ const p7 = {
18222
18226
  default: f(() => [
18223
18227
  d(m) || !q.value ? (v(), x(cu, {
18224
18228
  key: 0,
18225
- onCloseDialog: ge
18229
+ onCloseDialog: ve
18226
18230
  })) : q.value ? (v(), x(st, {
18227
18231
  key: 1,
18228
18232
  class: pe(["dam-image-detail", { "dam-image-detail--sidebar-active": b.value }])
@@ -18252,7 +18256,7 @@ const p7 = {
18252
18256
  onClick: Z(D, ["stop"])
18253
18257
  }, {
18254
18258
  default: f(() => [
18255
- u(ie, { icon: "mdi-information-outline" }),
18259
+ u(oe, { icon: "mdi-information-outline" }),
18256
18260
  u(be, {
18257
18261
  activator: "parent",
18258
18262
  location: "bottom"
@@ -18269,7 +18273,7 @@ const p7 = {
18269
18273
  "data-cy": "button-close",
18270
18274
  "button-size": 36,
18271
18275
  "is-uploading": _e.value,
18272
- onConfirm: ge
18276
+ onConfirm: ve
18273
18277
  }, null, 8, ["is-uploading"])
18274
18278
  ])
18275
18279
  ]),
@@ -18302,7 +18306,7 @@ const p7 = {
18302
18306
  "aspect-ratio": fy
18303
18307
  }, null, 8, ["asset-type", "asset-status", "src", "background-color", "width", "height", "show-uploading", "show-processing", "show-waiting", "show-done", "uploading-progress", "remaining-time"])) : E("", !0),
18304
18308
  q.value && q.value.error.hasError ? (v(), K("div", oy, [
18305
- u(ie, {
18309
+ u(oe, {
18306
18310
  icon: "mdi-alert",
18307
18311
  class: "ma-1",
18308
18312
  size: "x-small",
@@ -18521,7 +18525,7 @@ const p7 = {
18521
18525
  V.value === !0 || s.collabStatus === xt.Inactive || (c.value(), V.value = !0);
18522
18526
  }, h = (ye) => {
18523
18527
  V.value === !1 || s.collabStatus === xt.Inactive || (l.value(ye), V.value = !1);
18524
- }, F = ct(Ja, void 0);
18528
+ }, F = ft(Ja, void 0);
18525
18529
  if (_(F) || _(F.value))
18526
18530
  throw new Error(
18527
18531
  "Fatal error, parent component doesn't provide necessary config ext system config."
@@ -18530,7 +18534,7 @@ const p7 = {
18530
18534
  C.setDetail(Ft($.value)), k.value = !0;
18531
18535
  }, ee = () => {
18532
18536
  N.value = !0;
18533
- }, { cachedExtSystemId: ge } = Aa(), ce = T(!1), oe = async () => {
18537
+ }, { cachedExtSystemId: ve } = Aa(), ce = T(!1), se = async () => {
18534
18538
  if (!n.value.enabled || _(s.collab) || s.collabStatus === xt.Inactive)
18535
18539
  return Promise.resolve(!0);
18536
18540
  let ye = 0;
@@ -18540,14 +18544,14 @@ const p7 = {
18540
18544
  g();
18541
18545
  const Ce = F.value;
18542
18546
  try {
18543
- await oe(), ge.value = Ce.extSystem, S.addByFiles(s.queueKey, Ce.extSystem, Ce.licence, ye), W.value = s.queueKey;
18547
+ await se(), ve.value = Ce.extSystem, S.addByFiles(s.queueKey, Ce.extSystem, Ce.licence, ye), W.value = s.queueKey;
18544
18548
  } catch {
18545
18549
  w("Unable to lock image widget by current user.");
18546
18550
  }
18547
18551
  }, Q = (ye) => {
18548
18552
  if (!ye[0]) return;
18549
18553
  const Ce = F.value;
18550
- if (ge.value = Ce.extSystem, ye[0].result === "copy")
18554
+ if (ve.value = Ce.extSystem, ye[0].result === "copy")
18551
18555
  S.addByCopyToLicence(s.queueKey, Ce.extSystem, Ce.licence, [
18552
18556
  ye[0].targetAsset
18553
18557
  ]);
@@ -18557,7 +18561,7 @@ const p7 = {
18557
18561
  ]), S.queueItemDuplicate(
18558
18562
  ye[0].targetAsset,
18559
18563
  ye[0].targetMainFile,
18560
- se.Image
18564
+ ie.Image
18561
18565
  );
18562
18566
  else {
18563
18567
  b("damImage.queueItem.errorUnableToCopyToLicence");
@@ -18566,9 +18570,9 @@ const p7 = {
18566
18570
  W.value = s.queueKey;
18567
18571
  }, Ye = (ye) => {
18568
18572
  const Ce = F.value;
18569
- ge.value = Ce.extSystem, S.addByFiles(s.queueKey, Ce.extSystem, Ce.licence, ye), W.value = s.queueKey;
18573
+ ve.value = Ce.extSystem, S.addByFiles(s.queueKey, Ce.extSystem, Ce.licence, ye), W.value = s.queueKey;
18570
18574
  }, { uploadSizes: he, uploadAccept: me } = sr(
18571
- se.Image,
18575
+ ie.Image,
18572
18576
  F.value.extSystemConfig
18573
18577
  ), Se = async (ye, Ce, He = !1) => {
18574
18578
  if (J.value = Gt, ye && ne($.value) || ye && He) {
@@ -18616,15 +18620,15 @@ const p7 = {
18616
18620
  k.value = !0;
18617
18621
  try {
18618
18622
  const at = await jt(St, yt, ye.value[0].id);
18619
- if (mt) {
18620
- const Ve = mt(at);
18623
+ if (Vt) {
18624
+ const Ve = Vt(at);
18621
18625
  Ce = Ve.description, He = Ve.source;
18622
18626
  } else
18623
18627
  aa(at.metadata.customData?.description) && (Ce = at.metadata.customData.description.trim()), at.authors.length > 0 ? He = (await ya(
18624
18628
  St,
18625
18629
  Ae.selectedSelectConfig.extSystem,
18626
18630
  at.authors
18627
- )).map((ke) => ke.name).join(", ") : at.authors.length === 0 && De(F.value.extSystem)?.[se.Image]?.authors?.enabled && (r.value = !0, Re.value = at);
18631
+ )).map((ke) => ke.name).join(", ") : at.authors.length === 0 && De(F.value.extSystem)?.[ie.Image]?.authors?.enabled && (r.value = !0, Re.value = at);
18628
18632
  } catch (at) {
18629
18633
  q(at);
18630
18634
  }
@@ -18641,13 +18645,14 @@ const p7 = {
18641
18645
  dam: {
18642
18646
  damId: ye.value[0].mainFile.id,
18643
18647
  regionPosition: 0,
18644
- licenceId: ye.value[0].licence
18648
+ licenceId: ye.value[0].licence,
18649
+ internal: ye.value[0].mainFileInternal ?? !1
18645
18650
  },
18646
18651
  position: 1
18647
18652
  };
18648
18653
  ne(i.value) || (Va.id = i.value), C.setDetail(Va), z.value = !1, s.expandMetadata && Ea();
18649
18654
  }
18650
- }, ze = $t(), { loading: dt, dialog: Te, asset: Re } = lt(ze), fa = Ee(s.configName), {
18655
+ }, ze = $t(), { loading: ut, dialog: Te, asset: Re } = lt(ze), fa = Ee(s.configName), {
18651
18656
  damClient: St,
18652
18657
  endPointAsset: yt,
18653
18658
  showSourceEnabled: bt,
@@ -18655,16 +18660,16 @@ const p7 = {
18655
18660
  editAssetLabel: qe,
18656
18661
  addFromDamLabel: Me,
18657
18662
  replaceFromDamLabel: Pe,
18658
- customAssetSelectMetadataToImageMap: mt
18659
- } = fa, { getExtSystemByLicence: Rt } = rt(St), ft = async (ye) => {
18660
- dt.value = !0, Te.value = s.queueKey;
18663
+ customAssetSelectMetadataToImageMap: Vt
18664
+ } = fa, { getExtSystemByLicence: Rt } = rt(St), dt = async (ye) => {
18665
+ ut.value = !0, Te.value = s.queueKey;
18661
18666
  try {
18662
18667
  const Ce = await zi(St, yt, ye), He = await Rt(Ce.licence);
18663
- He && (ge.value = He), ze.setAsset(Ce);
18668
+ He && (ve.value = He), ze.setAsset(Ce);
18664
18669
  } catch (Ce) {
18665
18670
  q(Ce);
18666
18671
  } finally {
18667
- dt.value = !1;
18672
+ ut.value = !1;
18668
18673
  }
18669
18674
  }, $e = () => {
18670
18675
  C.setDetail(null), k.value = !1;
@@ -18746,7 +18751,7 @@ const p7 = {
18746
18751
  C.reset();
18747
18752
  }), a({
18748
18753
  metadataConfirm: Bt
18749
- }), (ye, Ce) => (v(), K(ve, null, [
18754
+ }), (ye, Ce) => (v(), K(ge, null, [
18750
18755
  B("div", {
18751
18756
  class: pe(["a-image-widget", { "a-image-widget--locked": vs.value }]),
18752
18757
  style: Ut({
@@ -18817,7 +18822,7 @@ const p7 = {
18817
18822
  onClick: Z(ba, ["stop"])
18818
18823
  }, {
18819
18824
  default: f(() => [
18820
- u(ie, { icon: "mdi-dots-horizontal" }),
18825
+ u(oe, { icon: "mdi-dots-horizontal" }),
18821
18826
  u(be, {
18822
18827
  activator: "parent",
18823
18828
  location: "top"
@@ -18927,7 +18932,7 @@ const p7 = {
18927
18932
  }, {
18928
18933
  error: f(() => [
18929
18934
  B("div", xy, [
18930
- u(ie, { icon: "mdi-alert-circle-outline" })
18935
+ u(oe, { icon: "mdi-alert-circle-outline" })
18931
18936
  ])
18932
18937
  ]),
18933
18938
  placeholder: f(() => [
@@ -18963,8 +18968,8 @@ const p7 = {
18963
18968
  expand: e.expandMetadata,
18964
18969
  saving: L.value,
18965
18970
  loading: z.value,
18966
- type: d(se).Image,
18967
- onEditAsset: ft,
18971
+ type: d(ie).Image,
18972
+ onEditAsset: dt,
18968
18973
  onOnConfirm: vt,
18969
18974
  onOnClose: $e
18970
18975
  }, null, 8, ["modelValue", "show-dam-authors", "show-source-enabled", "source-label", "edit-asset-label", "expand", "saving", "loading", "type"])
@@ -18976,7 +18981,7 @@ const p7 = {
18976
18981
  "upload-licence": e.uploadLicence,
18977
18982
  "min-count": 1,
18978
18983
  "max-count": 1,
18979
- "asset-type": d(se).Image,
18984
+ "asset-type": d(ie).Image,
18980
18985
  "skip-current-user-check": e.skipCurrentUserCheck,
18981
18986
  "config-name": e.configName,
18982
18987
  "return-type": "asset",
@@ -18985,7 +18990,7 @@ const p7 = {
18985
18990
  d(Te) === e.queueKey ? (v(), x(ar, {
18986
18991
  key: 0,
18987
18992
  "queue-key": e.queueKey,
18988
- "ext-system": d(ge)
18993
+ "ext-system": d(ve)
18989
18994
  }, null, 8, ["queue-key", "ext-system"])) : E("", !0),
18990
18995
  d(W) === e.queueKey && d(F) ? (v(), x($u, {
18991
18996
  key: 1,
@@ -19140,7 +19145,7 @@ const p7 = {
19140
19145
  Y(), b(
19141
19146
  Ke,
19142
19147
  U.value,
19143
- U.value === se.Audio ? !0 : null,
19148
+ U.value === ie.Audio ? !0 : null,
19144
19149
  s.minCount === 1 && s.minCount === s.maxCount,
19145
19150
  s.minCount,
19146
19151
  s.maxCount
@@ -19162,7 +19167,7 @@ const p7 = {
19162
19167
  o("onConfirm", w(s.returnType, j())), J();
19163
19168
  }, de = (Ke) => {
19164
19169
  Ke && F.value.hasNextPage === !0 && p();
19165
- }, { gridView: ee } = Hi(), ge = I(() => U.value === se.Image && $.value > 0 && !_(s.uploadLicence) && $.value !== s.uploadLicence), ce = I(() => {
19170
+ }, { gridView: ee } = Hi(), ve = I(() => U.value === ie.Image && $.value > 0 && !_(s.uploadLicence) && $.value !== s.uploadLicence), ce = I(() => {
19166
19171
  switch (ee.value) {
19167
19172
  case ia.Table:
19168
19173
  return cn;
@@ -19171,7 +19176,7 @@ const p7 = {
19171
19176
  case ia.Thumbnail:
19172
19177
  return fn;
19173
19178
  }
19174
- }), oe = I(() => g.value < s.minCount || g.value > s.maxCount), _e = I(() => {
19179
+ }), se = I(() => g.value < s.minCount || g.value > s.maxCount), _e = I(() => {
19175
19180
  if (N.value.length !== 0 && $.value > 0) {
19176
19181
  const Ke = N.value.find((Ae) => Ae.licence === $.value);
19177
19182
  if (Ke) return Ke.extSystem;
@@ -19207,7 +19212,7 @@ const p7 = {
19207
19212
  const De = Be("ABtnSecondary"), it = Be("ABtnPrimary");
19208
19213
  return l.value ? (v(), K("div", Sy, [
19209
19214
  u(Le, { indeterminate: "" })
19210
- ])) : N.value.length > 0 ? (v(), K(ve, { key: 1 }, [
19215
+ ])) : N.value.length > 0 ? (v(), K(ge, { key: 1 }, [
19211
19216
  le(Ke.$slots, "activator", {
19212
19217
  props: { onClick: Z(() => R(), ["stop"]) }
19213
19218
  }),
@@ -19297,7 +19302,7 @@ const p7 = {
19297
19302
  selected: d(g)
19298
19303
  })), 1)),
19299
19304
  u(qt),
19300
- ge.value ? (v(), x(Ia, {
19305
+ ve.value ? (v(), x(Ia, {
19301
19306
  key: 2,
19302
19307
  modelValue: c.value,
19303
19308
  "onUpdate:modelValue": Ae[1] || (Ae[1] = (ze) => c.value = ze),
@@ -19306,7 +19311,7 @@ const p7 = {
19306
19311
  class: "mr-2"
19307
19312
  }, null, 8, ["modelValue", "label"])) : E("", !0),
19308
19313
  u(it, {
19309
- disabled: oe.value,
19314
+ disabled: se.value,
19310
19315
  onClick: Z(G, ["stop"])
19311
19316
  }, {
19312
19317
  default: f(() => [
@@ -19382,10 +19387,10 @@ const p7 = {
19382
19387
  releaseCollabFieldLock: Ve,
19383
19388
  acquireCollabFieldLock: ke,
19384
19389
  addCollabFieldLockStatusListener: We,
19385
- lockedByUser: Vt
19390
+ lockedByUser: ct
19386
19391
  } = ii(s.collab.room, s.collab.field);
19387
19392
  l.value = Ve, c.value = ke, Xe(
19388
- Vt,
19393
+ ct,
19389
19394
  (Ge) => {
19390
19395
  m.value = Ge;
19391
19396
  },
@@ -19398,7 +19403,7 @@ const p7 = {
19398
19403
  V.value === !0 || s.collabStatus === xt.Inactive || (c.value(), V.value = !0);
19399
19404
  }, h = (Ve) => {
19400
19405
  V.value === !1 || s.collabStatus === xt.Inactive || (l.value(Ve), V.value = !1);
19401
- }, F = ct(Ja, void 0);
19406
+ }, F = ft(Ja, void 0);
19402
19407
  if (_(F) || _(F.value))
19403
19408
  throw new Error(
19404
19409
  "Fatal error, parent component doesn't provide necessary config ext system config."
@@ -19407,7 +19412,7 @@ const p7 = {
19407
19412
  it.setDetail(Ft($.value)), k.value = !0;
19408
19413
  }, ee = () => {
19409
19414
  N.value = !0;
19410
- }, { cachedExtSystemId: ge } = Aa(), ce = T(!1), oe = async () => {
19415
+ }, { cachedExtSystemId: ve } = Aa(), ce = T(!1), se = async () => {
19411
19416
  if (!n.value.enabled || _(s.collab) || s.collabStatus === xt.Inactive)
19412
19417
  return Promise.resolve(!0);
19413
19418
  let Ve = 0;
@@ -19417,14 +19422,14 @@ const p7 = {
19417
19422
  g();
19418
19423
  const ke = F.value;
19419
19424
  try {
19420
- await oe(), ge.value = ke.extSystem, C.addByFiles(s.queueKey, ke.extSystem, ke.licence, Ve), P.value = s.queueKey;
19425
+ await se(), ve.value = ke.extSystem, C.addByFiles(s.queueKey, ke.extSystem, ke.licence, Ve), P.value = s.queueKey;
19421
19426
  } catch {
19422
19427
  w("Unable to lock image widget by current user.");
19423
19428
  }
19424
19429
  }, Q = (Ve) => {
19425
19430
  if (!Ve[0]) return;
19426
19431
  const ke = F.value;
19427
- if (ge.value = ke.extSystem, Ve[0].result === "copy")
19432
+ if (ve.value = ke.extSystem, Ve[0].result === "copy")
19428
19433
  C.addByCopyToLicence(s.queueKey, ke.extSystem, ke.licence, [
19429
19434
  Ve[0].targetAsset
19430
19435
  ]);
@@ -19434,7 +19439,7 @@ const p7 = {
19434
19439
  ]), C.queueItemDuplicate(
19435
19440
  Ve[0].targetAsset,
19436
19441
  Ve[0].targetMainFile,
19437
- se.Image
19442
+ ie.Image
19438
19443
  );
19439
19444
  else {
19440
19445
  b("damImage.queueItem.errorUnableToCopyToLicence");
@@ -19443,9 +19448,9 @@ const p7 = {
19443
19448
  P.value = s.queueKey;
19444
19449
  }, Ye = (Ve) => {
19445
19450
  const ke = F.value;
19446
- ge.value = ke.extSystem, C.addByFiles(s.queueKey, ke.extSystem, ke.licence, Ve), P.value = s.queueKey;
19451
+ ve.value = ke.extSystem, C.addByFiles(s.queueKey, ke.extSystem, ke.licence, Ve), P.value = s.queueKey;
19447
19452
  }, { uploadSizes: he, uploadAccept: me } = sr(
19448
- se.Image,
19453
+ ie.Image,
19449
19454
  F.value.extSystemConfig
19450
19455
  ), Se = async (Ve, ke, We = !1) => {
19451
19456
  if (J.value = Gt, Ve && ne($.value) || Ve && We) {
@@ -19459,8 +19464,8 @@ const p7 = {
19459
19464
  if (ke) {
19460
19465
  try {
19461
19466
  $.value = await X.fetchImage(Y, ke);
19462
- } catch (Vt) {
19463
- q(Vt);
19467
+ } catch (ct) {
19468
+ q(ct);
19464
19469
  }
19465
19470
  Zt($.value) && (wt(s.damWidth) && wt(s.damHeight) ? J.value = y(
19466
19471
  Ft($.value),
@@ -19485,12 +19490,12 @@ const p7 = {
19485
19490
  };
19486
19491
  Xe(
19487
19492
  [() => s.initialImage, i, r],
19488
- async ([Ve, ke, We], [Vt, Ge, va]) => {
19493
+ async ([Ve, ke, We], [ct, Ge, va]) => {
19489
19494
  if (!ne(We) && JSON.stringify(We) !== JSON.stringify(va)) {
19490
19495
  Ke(We);
19491
19496
  return;
19492
19497
  }
19493
- if (Ve !== Vt || ke !== Ge) {
19498
+ if (Ve !== ct || ke !== Ge) {
19494
19499
  await Se(Ve, ke);
19495
19500
  return;
19496
19501
  }
@@ -19498,28 +19503,28 @@ const p7 = {
19498
19503
  },
19499
19504
  { immediate: !0 }
19500
19505
  );
19501
- const De = Ta(), it = hn(), { detail: ze } = lt(it), { getDamConfigExtSystem: dt } = rt(), Te = async (Ve) => {
19506
+ const De = Ta(), it = hn(), { detail: ze } = lt(it), { getDamConfigExtSystem: ut } = rt(), Te = async (Ve) => {
19502
19507
  if (Ve.type !== "asset" || !Ve.value[0]) return;
19503
19508
  z.value = !0, it.setDetail(null), W.value = !1;
19504
19509
  let ke = "", We = "";
19505
- const Vt = Ve.value[0];
19506
- if (!Vt.mainFile) return;
19510
+ const ct = Ve.value[0];
19511
+ if (!ct.mainFile) return;
19507
19512
  let Ge = null;
19508
19513
  try {
19509
- Ge = await hV(bt, Vt.id);
19514
+ Ge = await hV(bt, ct.id);
19510
19515
  } catch (va) {
19511
19516
  q(va);
19512
19517
  }
19513
19518
  if (Ge) {
19514
- if (Vt.attributes.assetType === se.Video && Xg(Vt.mainFile)) {
19519
+ if (ct.attributes.assetType === ie.Video && Xg(ct.mainFile)) {
19515
19520
  k.value = !0;
19516
19521
  const va = {
19517
19522
  extService: "damVideo",
19518
19523
  damMedia: {
19519
- imageFileId: Vt.mainFile.imagePreview?.imageFile || null,
19520
- assetId: Vt.id,
19521
- licenceId: Vt.licence,
19522
- assetType: se.Video,
19524
+ imageFileId: ct.mainFile.imagePreview?.imageFile || null,
19525
+ assetId: ct.id,
19526
+ licenceId: ct.licence,
19527
+ assetType: ie.Video,
19523
19528
  title: Ge.title,
19524
19529
  description: Ge.description,
19525
19530
  seriesName: Ge.seriesName,
@@ -19534,15 +19539,15 @@ const p7 = {
19534
19539
  }
19535
19540
  };
19536
19541
  it.setDetail(va);
19537
- } else if (Vt.attributes.assetType === se.Audio && Vt.podcasts.length > 0 && Ag(Vt.mainFile)) {
19542
+ } else if (ct.attributes.assetType === ie.Audio && ct.podcasts.length > 0 && Ag(ct.mainFile)) {
19538
19543
  k.value = !0;
19539
19544
  const va = {
19540
19545
  extService: "damPodcast",
19541
19546
  damMedia: {
19542
- imageFileId: Vt.mainFile.imagePreview?.imageFile || null,
19543
- assetId: Vt.id,
19544
- licenceId: Vt.licence,
19545
- assetType: se.Audio,
19547
+ imageFileId: ct.mainFile.imagePreview?.imageFile || null,
19548
+ assetId: ct.id,
19549
+ licenceId: ct.licence,
19550
+ assetType: ie.Audio,
19546
19551
  title: Ge.title,
19547
19552
  description: Ge.description,
19548
19553
  seriesName: Ge.seriesName,
@@ -19557,7 +19562,7 @@ const p7 = {
19557
19562
  }
19558
19563
  };
19559
19564
  it.setDetail(va);
19560
- } else if (Vt.attributes.assetType === se.Image) {
19565
+ } else if (ct.attributes.assetType === ie.Image) {
19561
19566
  if (!_(Ve.copyToLicence)) {
19562
19567
  try {
19563
19568
  const da = await qn(bt, ue, [
@@ -19573,12 +19578,12 @@ const p7 = {
19573
19578
  }
19574
19579
  k.value = !0;
19575
19580
  try {
19576
- const da = await jt(bt, ue, Vt.id);
19581
+ const da = await jt(bt, ue, ct.id);
19577
19582
  aa(da.metadata.customData?.description) && (ke = da.metadata.customData.description.trim()), da.authors.length > 0 ? We = (await ya(
19578
19583
  bt,
19579
19584
  De.selectedSelectConfig.extSystem,
19580
19585
  da.authors
19581
- )).map((zu) => zu.name).join(", ") : da.authors.length === 0 && dt(F.value.extSystem)?.[se.Image]?.authors?.enabled && (W.value = !0, yt.value = da);
19586
+ )).map((zu) => zu.name).join(", ") : da.authors.length === 0 && ut(F.value.extSystem)?.[ie.Image]?.authors?.enabled && (W.value = !0, yt.value = da);
19582
19587
  } catch (da) {
19583
19588
  q(da);
19584
19589
  }
@@ -19593,9 +19598,10 @@ const p7 = {
19593
19598
  overrideInternal: !1
19594
19599
  },
19595
19600
  dam: {
19596
- damId: Vt.mainFile.id,
19601
+ damId: ct.mainFile.id,
19597
19602
  regionPosition: 0,
19598
- licenceId: Vt.licence
19603
+ licenceId: ct.licence,
19604
+ internal: ct.mainFileInternal ?? !1
19599
19605
  },
19600
19606
  position: 1
19601
19607
  };
@@ -19609,13 +19615,13 @@ const p7 = {
19609
19615
  showSourceEnabled: qe,
19610
19616
  sourceLabel: Me,
19611
19617
  editAssetLabel: Pe,
19612
- addFromDamLabel: mt,
19618
+ addFromDamLabel: Vt,
19613
19619
  replaceFromDamLabel: Rt
19614
- } = Ee(), { getExtSystemByLicence: ft } = rt(bt), $e = async (Ve) => {
19620
+ } = Ee(), { getExtSystemByLicence: dt } = rt(bt), $e = async (Ve) => {
19615
19621
  fa.value = !0, St.value = s.queueKey;
19616
19622
  try {
19617
- const ke = await zi(bt, ue, Ve), We = await ft(ke.licence);
19618
- We && (ge.value = We), Re.setAsset(ke);
19623
+ const ke = await zi(bt, ue, Ve), We = await dt(ke.licence);
19624
+ We && (ve.value = We), Re.setAsset(ke);
19619
19625
  } catch (ke) {
19620
19626
  q(ke);
19621
19627
  } finally {
@@ -19692,7 +19698,7 @@ const p7 = {
19692
19698
  $a.value?.confirm();
19693
19699
  }, ye = () => {
19694
19700
  g();
19695
- }, Ce = I(() => k.value || N.value || O.value || P.value === s.queueKey), He = I(() => !ne(m.value)), Va = I(() => r.value && r.value.damMedia.assetType ? r.value.damMedia.assetType : se.Image), at = I(() => ts($.value) ? $.value.damMedia.assetType === Sn.Video ? se.Video : se.Audio : Zt($.value) ? se.Image : null);
19701
+ }, Ce = I(() => k.value || N.value || O.value || P.value === s.queueKey), He = I(() => !ne(m.value)), Va = I(() => r.value && r.value.damMedia.assetType ? r.value.damMedia.assetType : ie.Image), at = I(() => ts($.value) ? $.value.damMedia.assetType === Sn.Video ? ie.Video : ie.Audio : Zt($.value) ? ie.Image : null);
19696
19702
  return Xe(
19697
19703
  U,
19698
19704
  (Ve, ke) => {
@@ -19709,7 +19715,7 @@ const p7 = {
19709
19715
  it.reset();
19710
19716
  }), a({
19711
19717
  metadataConfirm: vs
19712
- }), (Ve, ke) => (v(), K(ve, null, [
19718
+ }), (Ve, ke) => (v(), K(ge, null, [
19713
19719
  B("div", {
19714
19720
  class: pe(["a-image-widget", { "a-image-widget--locked": He.value }]),
19715
19721
  style: Ut({
@@ -19734,7 +19740,7 @@ const p7 = {
19734
19740
  G.value && !e.expandMetadata ? (v(), x(te, {
19735
19741
  key: 0,
19736
19742
  class: "mr-2 mb-2",
19737
- text: at.value === d(se).Image ? d(p)("common.damImage.image.meta.edit") : d(p)("common.damImage.media.meta.edit"),
19743
+ text: at.value === d(ie).Image ? d(p)("common.damImage.image.meta.edit") : d(p)("common.damImage.media.meta.edit"),
19738
19744
  onClick: de
19739
19745
  }, null, 8, ["text"])) : E("", !0),
19740
19746
  u(te, {
@@ -19742,7 +19748,7 @@ const p7 = {
19742
19748
  onClick: ee
19743
19749
  }, {
19744
19750
  default: f(() => [
19745
- G.value ? (v(), K("span", Gy, A(d(Rt)), 1)) : (v(), K("span", Jy, A(d(mt)), 1))
19751
+ G.value ? (v(), K("span", Gy, A(d(Rt)), 1)) : (v(), K("span", Jy, A(d(Vt)), 1))
19746
19752
  ]),
19747
19753
  _: 1
19748
19754
  }),
@@ -19777,7 +19783,7 @@ const p7 = {
19777
19783
  onClick: Z(ye, ["stop"])
19778
19784
  }, {
19779
19785
  default: f(() => [
19780
- u(ie, { icon: "mdi-dots-horizontal" }),
19786
+ u(oe, { icon: "mdi-dots-horizontal" }),
19781
19787
  u(be, {
19782
19788
  activator: "parent",
19783
19789
  location: "top"
@@ -19806,7 +19812,7 @@ const p7 = {
19806
19812
  default: f(() => [
19807
19813
  u(sa, null, {
19808
19814
  default: f(() => [
19809
- M(A(at.value === d(se).Image ? d(p)("common.damImage.image.meta.edit") : d(p)("common.damImage.media.meta.edit")), 1)
19815
+ M(A(at.value === d(ie).Image ? d(p)("common.damImage.image.meta.edit") : d(p)("common.damImage.media.meta.edit")), 1)
19810
19816
  ]),
19811
19817
  _: 1
19812
19818
  })
@@ -19817,7 +19823,7 @@ const p7 = {
19817
19823
  default: f(() => [
19818
19824
  u(sa, null, {
19819
19825
  default: f(() => [
19820
- G.value ? (v(), K("span", Qy, A(d(Rt)), 1)) : (v(), K("span", eY, A(d(mt)), 1))
19826
+ G.value ? (v(), K("span", Qy, A(d(Rt)), 1)) : (v(), K("span", eY, A(d(Vt)), 1))
19821
19827
  ]),
19822
19828
  _: 1
19823
19829
  })
@@ -19835,8 +19841,8 @@ const p7 = {
19835
19841
  }, {
19836
19842
  activator: f(({ props: We }) => [
19837
19843
  u(je, {
19838
- onClick: (Vt) => {
19839
- We.onClick(Vt), U.value = !1;
19844
+ onClick: (ct) => {
19845
+ We.onClick(ct), U.value = !1;
19840
19846
  }
19841
19847
  }, {
19842
19848
  default: f(() => [
@@ -19854,7 +19860,7 @@ const p7 = {
19854
19860
  default: f(() => [
19855
19861
  u(sa, null, {
19856
19862
  default: f(() => [
19857
- M(A(at.value === d(se).Image ? d(p)("common.damImage.image.button.removeImage") : d(p)("common.damImage.media.button.remove")), 1)
19863
+ M(A(at.value === d(ie).Image ? d(p)("common.damImage.image.button.removeImage") : d(p)("common.damImage.media.button.remove")), 1)
19858
19864
  ]),
19859
19865
  _: 1
19860
19866
  })
@@ -19897,14 +19903,14 @@ const p7 = {
19897
19903
  _: 1
19898
19904
  }, 8, ["lazy-src", "src", "width", "height"]),
19899
19905
  at.value ? (v(), K("div", sY, [
19900
- at.value === d(se).Audio ? (v(), K("div", iY, [
19901
- u(ie, {
19906
+ at.value === d(ie).Audio ? (v(), K("div", iY, [
19907
+ u(oe, {
19902
19908
  size: "80",
19903
19909
  icon: "mdi-music",
19904
19910
  color: "#505050"
19905
19911
  })
19906
- ])) : at.value === d(se).Video ? (v(), K("div", oY, [
19907
- u(ie, {
19912
+ ])) : at.value === d(ie).Video ? (v(), K("div", oY, [
19913
+ u(oe, {
19908
19914
  size: "80",
19909
19915
  icon: "mdi-video",
19910
19916
  color: "#505050"
@@ -19954,13 +19960,13 @@ const p7 = {
19954
19960
  "config-name": e.configName,
19955
19961
  "return-type": "asset",
19956
19962
  "preselect-asset-type": Va.value,
19957
- "preselect-in-podcast": Va.value === d(se).Audio || null,
19963
+ "preselect-in-podcast": Va.value === d(ie).Audio || null,
19958
19964
  onOnConfirm: Te
19959
19965
  }, null, 8, ["modelValue", "select-licences", "upload-licence", "config-name", "preselect-asset-type", "preselect-in-podcast"]),
19960
19966
  d(St) === e.queueKey ? (v(), x(ar, {
19961
19967
  key: 0,
19962
19968
  "queue-key": e.queueKey,
19963
- "ext-system": d(ge)
19969
+ "ext-system": d(ve)
19964
19970
  }, null, 8, ["queue-key", "ext-system"])) : E("", !0),
19965
19971
  d(P) === e.queueKey && d(F) ? (v(), x($u, {
19966
19972
  key: 1,
@@ -20158,14 +20164,14 @@ const p7 = {
20158
20164
  o.value?.damMedia.playable && (r.value = !0);
20159
20165
  }, c = () => {
20160
20166
  r.value = !1;
20161
- }, m = I(() => o.value?.damMedia.assetType === Sn.Video ? se.Video : se.Audio);
20167
+ }, m = I(() => o.value?.damMedia.assetType === Sn.Video ? ie.Video : ie.Audio);
20162
20168
  return Xe(
20163
20169
  [() => a.media],
20164
20170
  async ([V]) => {
20165
20171
  o.value = null, i.value = Gt, V && (o.value = Ie(V), i.value = n(V));
20166
20172
  },
20167
20173
  { immediate: !0 }
20168
- ), (V, g) => (v(), K(ve, null, [
20174
+ ), (V, g) => (v(), K(ge, null, [
20169
20175
  e.label ? (v(), K("div", uY, [
20170
20176
  B("h4", cY, A(e.label), 1)
20171
20177
  ])) : E("", !0),
@@ -20193,7 +20199,7 @@ const p7 = {
20193
20199
  }, {
20194
20200
  error: f(() => [
20195
20201
  B("div", fY, [
20196
- u(ie, { icon: "mdi-alert-circle-outline" })
20202
+ u(oe, { icon: "mdi-alert-circle-outline" })
20197
20203
  ])
20198
20204
  ]),
20199
20205
  placeholder: f(() => [
@@ -20207,14 +20213,14 @@ const p7 = {
20207
20213
  _: 1
20208
20214
  }, 8, ["lazy-src", "src", "width", "height", "class", "aspect-ratio"])),
20209
20215
  m.value ? (v(), K("div", vY, [
20210
- m.value === d(se).Audio ? (v(), K("div", gY, [
20211
- u(ie, {
20216
+ m.value === d(ie).Audio ? (v(), K("div", gY, [
20217
+ u(oe, {
20212
20218
  size: "80",
20213
20219
  icon: "mdi-music",
20214
20220
  color: "#505050"
20215
20221
  })
20216
- ])) : m.value === d(se).Video ? (v(), K("div", FY, [
20217
- u(ie, {
20222
+ ])) : m.value === d(ie).Video ? (v(), K("div", FY, [
20223
+ u(oe, {
20218
20224
  size: "80",
20219
20225
  icon: "mdi-video",
20220
20226
  color: "#505050"
@@ -20257,7 +20263,7 @@ const p7 = {
20257
20263
  B("div", qY, [
20258
20264
  B("div", yY, [
20259
20265
  B("div", YY, [
20260
- u(ie, {
20266
+ u(oe, {
20261
20267
  class: pe({
20262
20268
  [d(Sr)]: !0,
20263
20269
  [d(Sr) + "--disabled"]: e.disableDraggable
@@ -20391,7 +20397,7 @@ const p7 = {
20391
20397
  },
20392
20398
  emits: ["afterAdd"],
20393
20399
  setup(e, { expose: a, emit: t }) {
20394
- const s = e, o = t, i = T(!1), r = T(!1), n = T([]), { t: l } = ae(), c = ct(Ja, void 0);
20400
+ const s = e, o = t, i = T(!1), r = T(!1), n = T([]), { t: l } = ae(), c = ft(Ja, void 0);
20395
20401
  if (_(c) || _(c.value))
20396
20402
  throw new Error(
20397
20403
  "Fatal error, parent component doesn't provide necessary config ext system config."
@@ -20568,24 +20574,24 @@ const p7 = {
20568
20574
  },
20569
20575
  emits: ["update:modelValue"],
20570
20576
  setup(e, { expose: a, emit: t }) {
20571
- const s = e, o = t, i = T(!1), r = ct(Ja, void 0);
20577
+ const s = e, o = t, i = T(!1), r = ft(Ja, void 0);
20572
20578
  if (_(r) || _(r.value))
20573
20579
  throw new Error(
20574
20580
  "Fatal error, parent component doesn't provide necessary config ext system config."
20575
20581
  );
20576
20582
  const n = Ps(s.configName), { imageClient: l, imageApi: c } = n, { showErrorsDefault: m, showValidationError: V, showErrorT: g } = Ze(), h = T(null), { uploadSizes: F, uploadAccept: p } = sr(
20577
- se.Image,
20583
+ ie.Image,
20578
20584
  r.value.extSystemConfig
20579
20585
  ), { t: q } = ae(), w = T(!1), b = Gi(), { images: D, maxPosition: Y } = lt(b), X = async () => {
20580
20586
  if (s.modelValue.length !== 0)
20581
20587
  try {
20582
20588
  w.value = !0;
20583
20589
  const ue = (await c.fetchImageListByIds(l, s.modelValue)).sort(
20584
- (Pe, mt) => (Pe.position ?? 0) - (mt.position ?? 0)
20590
+ (Pe, Vt) => (Pe.position ?? 0) - (Vt.position ?? 0)
20585
20591
  ), qe = /* @__PURE__ */ new Map();
20586
20592
  ue.forEach((Pe) => {
20587
- const mt = qe.get(Pe.dam.licenceId);
20588
- mt ? mt.push(Pe.dam.damId) : qe.set(Pe.dam.licenceId, [Pe.dam.damId]);
20593
+ const Vt = qe.get(Pe.dam.licenceId);
20594
+ Vt ? Vt.push(Pe.dam.damId) : qe.set(Pe.dam.licenceId, [Pe.dam.damId]);
20589
20595
  });
20590
20596
  const Me = await IY(
20591
20597
  J,
@@ -20596,13 +20602,13 @@ const p7 = {
20596
20602
  ue.map((Pe) => {
20597
20603
  if (_(Pe.position)) throw new Error("Image object needs position field!");
20598
20604
  b.updateMaxPositionIfGreater(Pe.position);
20599
- const mt = Me.find((Rt) => Rt.mainFile?.id === Pe.dam.damId);
20605
+ const Vt = Me.find((Rt) => Rt.mainFile?.id === Pe.dam.damId);
20600
20606
  return {
20601
20607
  key: ys(),
20602
20608
  ...Pe,
20603
- damAuthors: mt ? mt.authors : [],
20604
- showDamAuthors: mt ? mt.authors.length === 0 : !1,
20605
- assetId: mt ? mt.id : void 0
20609
+ damAuthors: Vt ? Vt.authors : [],
20610
+ showDamAuthors: Vt ? Vt.authors.length === 0 : !1,
20611
+ assetId: Vt ? Vt.id : void 0
20606
20612
  };
20607
20613
  })
20608
20614
  ), o(
@@ -20634,7 +20640,7 @@ const p7 = {
20634
20640
  ]), y.queueItemDuplicate(
20635
20641
  Me.targetAsset,
20636
20642
  Me.targetMainFile,
20637
- se.Image
20643
+ ie.Image
20638
20644
  );
20639
20645
  else {
20640
20646
  g("damImage.queueItem.errorUnableToCopyToLicence");
@@ -20644,48 +20650,48 @@ const p7 = {
20644
20650
  }, N = () => {
20645
20651
  P.value = s.queueKey;
20646
20652
  }, k = async (ue) => {
20647
- const qe = Ta(), Me = ue.map((ft) => ft.id), Pe = /* @__PURE__ */ new Map(), mt = /* @__PURE__ */ new Set(), Rt = /* @__PURE__ */ new Map();
20653
+ const qe = Ta(), Me = ue.map((dt) => dt.id), Pe = /* @__PURE__ */ new Map(), Vt = /* @__PURE__ */ new Set(), Rt = /* @__PURE__ */ new Map();
20648
20654
  try {
20649
- const ft = await Kd(
20655
+ const dt = await Kd(
20650
20656
  J,
20651
20657
  j,
20652
20658
  Me,
20653
20659
  qe.selectedLicenceId
20654
20660
  );
20655
- ce ? ft.forEach(($e) => {
20661
+ ce ? dt.forEach(($e) => {
20656
20662
  const vt = ce($e);
20657
20663
  Pe.set($e.id, {
20658
20664
  description: vt.description,
20659
20665
  authorIds: []
20660
20666
  }), Rt.set($e.id, vt.source);
20661
- }) : (ft.forEach(($e) => {
20667
+ }) : (dt.forEach(($e) => {
20662
20668
  Pe.set($e.id, {
20663
20669
  description: aa($e.metadata.customData?.description) ? $e.metadata.customData.description.trim() : "",
20664
20670
  authorIds: $e.authors
20665
20671
  });
20666
20672
  }), Pe.forEach(($e) => {
20667
20673
  $e.authorIds.forEach((vt) => {
20668
- mt.add(vt);
20674
+ Vt.add(vt);
20669
20675
  });
20670
- }), mt.size > 0 && (await ya(
20676
+ }), Vt.size > 0 && (await ya(
20671
20677
  J,
20672
20678
  qe.selectedSelectConfig.extSystem,
20673
- [...mt]
20679
+ [...Vt]
20674
20680
  )).forEach((vt) => {
20675
20681
  Rt.set(vt.id, vt.name);
20676
20682
  }));
20677
- } catch (ft) {
20678
- m(ft);
20683
+ } catch (dt) {
20684
+ m(dt);
20679
20685
  }
20680
- return ue.map((ft) => {
20686
+ return ue.map((dt) => {
20681
20687
  Y.value++;
20682
- const $e = Pe.get(ft.id)?.authorIds || [], vt = Pe.get(ft.id)?.description ?? "";
20688
+ const $e = Pe.get(dt.id)?.authorIds || [], vt = Pe.get(dt.id)?.description ?? "";
20683
20689
  if (ce)
20684
20690
  return {
20685
20691
  key: ys(),
20686
20692
  texts: {
20687
20693
  description: vt,
20688
- source: Rt.get(ft.id) ?? ""
20694
+ source: Rt.get(dt.id) ?? ""
20689
20695
  },
20690
20696
  flags: {
20691
20697
  showSource: !0,
@@ -20693,17 +20699,18 @@ const p7 = {
20693
20699
  overrideInternal: !1
20694
20700
  },
20695
20701
  dam: {
20696
- damId: ft.mainFile.id,
20702
+ damId: dt.mainFile.id,
20697
20703
  regionPosition: 0,
20698
- licenceId: ft.licence
20704
+ licenceId: dt.licence,
20705
+ internal: dt.mainFileInternal ?? !1
20699
20706
  },
20700
20707
  position: Y.value,
20701
20708
  damAuthors: [],
20702
20709
  showDamAuthors: !1,
20703
- assetId: ft.id
20710
+ assetId: dt.id
20704
20711
  };
20705
20712
  const la = [];
20706
- return Pe.get(ft.id)?.authorIds.forEach((Ea) => {
20713
+ return Pe.get(dt.id)?.authorIds.forEach((Ea) => {
20707
20714
  const Ma = Rt.get(Ea);
20708
20715
  !_(Ma) && Ma.trim().length > 0 && la.push(Ma);
20709
20716
  }), {
@@ -20718,14 +20725,15 @@ const p7 = {
20718
20725
  overrideInternal: !1
20719
20726
  },
20720
20727
  dam: {
20721
- damId: ft.mainFile.id,
20728
+ damId: dt.mainFile.id,
20722
20729
  regionPosition: 0,
20723
- licenceId: ft.licence
20730
+ licenceId: dt.licence,
20731
+ internal: dt.mainFileInternal ?? !1
20724
20732
  },
20725
20733
  position: Y.value,
20726
20734
  damAuthors: $e,
20727
20735
  showDamAuthors: $e.length === 0,
20728
- assetId: ft.id
20736
+ assetId: dt.id
20729
20737
  };
20730
20738
  });
20731
20739
  }, L = async (ue) => {
@@ -20751,9 +20759,9 @@ const p7 = {
20751
20759
  showSourceEnabled: G,
20752
20760
  sourceLabel: de,
20753
20761
  editAssetLabel: ee,
20754
- addFromDamLabel: ge,
20762
+ addFromDamLabel: ve,
20755
20763
  customAssetSelectMetadataToImageMap: ce
20756
- } = Ee(), oe = async (ue) => {
20764
+ } = Ee(), se = async (ue) => {
20757
20765
  O.value = !0, R.value = s.queueKey;
20758
20766
  try {
20759
20767
  const qe = await zi(J, j, ue), Me = await me(qe.licence);
@@ -20772,7 +20780,7 @@ const p7 = {
20772
20780
  ), P.value = null, y.stopUpload(s.queueKey));
20773
20781
  }, Q = () => {
20774
20782
  i.value = !0;
20775
- }, Ye = Xa({ $scope: bi }), { getDamConfigExtSystem: he, getExtSystemByLicence: me } = rt(J), Se = I(() => !!he(C.value)?.[se.Image]?.authors?.enabled), Ke = async () => {
20783
+ }, Ye = Xa({ $scope: bi }), { getDamConfigExtSystem: he, getExtSystemByLicence: me } = rt(J), Se = I(() => !!he(C.value)?.[ie.Image]?.authors?.enabled), Ke = async () => {
20776
20784
  if (Ye.value.$touch(), Ye.value.$invalid)
20777
20785
  return V(), !1;
20778
20786
  try {
@@ -20787,7 +20795,7 @@ const p7 = {
20787
20795
  $e.texts.source = vt.map((la) => la.name).join(", ");
20788
20796
  }
20789
20797
  ue.length && await xV(J, j, ue);
20790
- const Me = await c.bulkUpdateImages(l, qe), Pe = [], mt = Me.map(($e) => (Pe.push($e.id), {
20798
+ const Me = await c.bulkUpdateImages(l, qe), Pe = [], Vt = Me.map(($e) => (Pe.push($e.id), {
20791
20799
  key: ys(),
20792
20800
  ...$e,
20793
20801
  damAuthors: [],
@@ -20805,8 +20813,8 @@ const p7 = {
20805
20813
  showDamAuthors: vt ? vt.damAuthors.length === 0 : $e.damAuthors.length === 0,
20806
20814
  assetId: $e.assetId
20807
20815
  };
20808
- }, ft = await Promise.all(mt.map(($e) => Rt($e)));
20809
- return b.setImages(ft), o("update:modelValue", Pe), !0;
20816
+ }, dt = await Promise.all(Vt.map(($e) => Rt($e)));
20817
+ return b.setImages(dt), o("update:modelValue", Pe), !0;
20810
20818
  } catch {
20811
20819
  return !1;
20812
20820
  }
@@ -20827,8 +20835,8 @@ const p7 = {
20827
20835
  }
20828
20836
  b.removeImageByIndex(ue);
20829
20837
  }
20830
- }, De = T(null), it = T(ys()), ze = T(null), dt = T(0), Te = T(null), Re = I(() => _(s.widgetIdentifierId) ? od + it.value : s.widgetIdentifierId), fa = () => {
20831
- dt.value++, rs(() => {
20838
+ }, De = T(null), it = T(ys()), ze = T(null), ut = T(0), Te = T(null), Re = I(() => _(s.widgetIdentifierId) ? od + it.value : s.widgetIdentifierId), fa = () => {
20839
+ ut.value++, rs(() => {
20832
20840
  bt();
20833
20841
  });
20834
20842
  }, St = () => {
@@ -20888,7 +20896,7 @@ const p7 = {
20888
20896
  onClick: Q
20889
20897
  }, {
20890
20898
  default: f(() => [
20891
- M(A(d(ge)), 1)
20899
+ M(A(d(ve)), 1)
20892
20900
  ]),
20893
20901
  _: 1
20894
20902
  })
@@ -20900,7 +20908,7 @@ const p7 = {
20900
20908
  "upload-licence": e.uploadLicence,
20901
20909
  "min-count": 1,
20902
20910
  "max-count": 50,
20903
- "asset-type": d(se).Image,
20911
+ "asset-type": d(ie).Image,
20904
20912
  "skip-current-user-check": e.skipCurrentUserCheck,
20905
20913
  "config-name": e.configName,
20906
20914
  "return-type": "asset",
@@ -20914,10 +20922,10 @@ const p7 = {
20914
20922
  ])) : E("", !0),
20915
20923
  B("div", TY, [
20916
20924
  (v(), K("div", {
20917
- key: dt.value,
20925
+ key: ut.value,
20918
20926
  class: pe([d(_n), "asset-list-tiles asset-list-tiles--thumbnail"])
20919
20927
  }, [
20920
- (v(!0), K(ve, null, nt(d(D), (Me, Pe) => (v(), x(XY, {
20928
+ (v(!0), K(ge, null, nt(d(D), (Me, Pe) => (v(), x(XY, {
20921
20929
  key: Me.key,
20922
20930
  index: Pe,
20923
20931
  "disable-draggable": e.disableDraggable,
@@ -20925,7 +20933,7 @@ const p7 = {
20925
20933
  "source-label": d(de),
20926
20934
  "edit-asset-label": d(ee),
20927
20935
  "author-enabled": Se.value,
20928
- onEditAsset: oe,
20936
+ onEditAsset: se,
20929
20937
  onRemoveItem: Ae
20930
20938
  }, null, 8, ["index", "disable-draggable", "show-source-enabled", "source-label", "edit-asset-label", "author-enabled"]))), 128))
20931
20939
  ], 2)),
@@ -21065,7 +21073,7 @@ const p7 = {
21065
21073
  },
21066
21074
  { immediate: !0 }
21067
21075
  ), (c, m) => (v(), K("div", BY, [
21068
- (v(!0), K(ve, null, nt(o.value, (V) => (v(), K("div", {
21076
+ (v(!0), K(ge, null, nt(o.value, (V) => (v(), K("div", {
21069
21077
  key: V.id,
21070
21078
  class: "asset-list-tiles__item"
21071
21079
  }, [
@@ -21127,7 +21135,7 @@ const zY = { class: "w-100" }, RY = { class: "d-flex" }, UY = { class: "d-flex"
21127
21135
  o(a.value.description, Y), g.value && D.value ? r(a.value.authors, Y) : i(a.value.source, Y);
21128
21136
  }, c = () => {
21129
21137
  a.value.description = "", g.value && D.value ? a.value.authors = [] : a.value.source = "";
21130
- }, { cachedExtSystemId: m } = Aa(), { getDamConfigExtSystem: V } = rt(), g = I(() => !!V(m.value)?.[se.Image]?.authors?.enabled), { descriptionValidation: h, sourceValidation: F, sourceLabel: p } = Ee(), q = Ts(), w = I(() => ({
21138
+ }, { cachedExtSystemId: m } = Aa(), { getDamConfigExtSystem: V } = rt(), g = I(() => !!V(m.value)?.[ie.Image]?.authors?.enabled), { descriptionValidation: h, sourceValidation: F, sourceLabel: p } = Ee(), q = Ts(), w = I(() => ({
21131
21139
  texts: {
21132
21140
  description: ai(h, q),
21133
21141
  source: ai(F, q)
@@ -21156,7 +21164,7 @@ const zY = { class: "w-100" }, RY = { class: "d-flex" }, UY = { class: "d-flex"
21156
21164
  onClick: X[1] || (X[1] = Z((y) => d(o)(a.value.description, !1), ["stop"]))
21157
21165
  }, {
21158
21166
  default: f(() => [
21159
- u(ie, { icon: "mdi-file-arrow-left-right-outline" }),
21167
+ u(oe, { icon: "mdi-file-arrow-left-right-outline" }),
21160
21168
  u(be, {
21161
21169
  activator: "parent",
21162
21170
  location: "bottom"
@@ -21176,7 +21184,7 @@ const zY = { class: "w-100" }, RY = { class: "d-flex" }, UY = { class: "d-flex"
21176
21184
  onClick: X[2] || (X[2] = Z((y) => d(o)(a.value.description, !0), ["stop"]))
21177
21185
  }, {
21178
21186
  default: f(() => [
21179
- u(ie, { icon: "mdi-file-replace-outline" }),
21187
+ u(oe, { icon: "mdi-file-replace-outline" }),
21180
21188
  u(be, {
21181
21189
  activator: "parent",
21182
21190
  location: "bottom"
@@ -21229,7 +21237,7 @@ const zY = { class: "w-100" }, RY = { class: "d-flex" }, UY = { class: "d-flex"
21229
21237
  onClick: X[4] || (X[4] = Z((y) => d(r)(a.value.authors, !1), ["stop"]))
21230
21238
  }, {
21231
21239
  default: f(() => [
21232
- u(ie, { icon: "mdi-file-arrow-left-right-outline" }),
21240
+ u(oe, { icon: "mdi-file-arrow-left-right-outline" }),
21233
21241
  u(be, {
21234
21242
  activator: "parent",
21235
21243
  location: "bottom"
@@ -21249,7 +21257,7 @@ const zY = { class: "w-100" }, RY = { class: "d-flex" }, UY = { class: "d-flex"
21249
21257
  onClick: X[5] || (X[5] = Z((y) => d(r)(a.value.authors, !0), ["stop"]))
21250
21258
  }, {
21251
21259
  default: f(() => [
21252
- u(ie, { icon: "mdi-file-replace-outline" }),
21260
+ u(oe, { icon: "mdi-file-replace-outline" }),
21253
21261
  u(be, {
21254
21262
  activator: "parent",
21255
21263
  location: "bottom"
@@ -21293,7 +21301,7 @@ const zY = { class: "w-100" }, RY = { class: "d-flex" }, UY = { class: "d-flex"
21293
21301
  onClick: X[7] || (X[7] = Z((y) => d(i)(a.value.source, !1), ["stop"]))
21294
21302
  }, {
21295
21303
  default: f(() => [
21296
- u(ie, { icon: "mdi-file-arrow-left-right-outline" }),
21304
+ u(oe, { icon: "mdi-file-arrow-left-right-outline" }),
21297
21305
  u(be, {
21298
21306
  activator: "parent",
21299
21307
  location: "bottom"
@@ -21313,7 +21321,7 @@ const zY = { class: "w-100" }, RY = { class: "d-flex" }, UY = { class: "d-flex"
21313
21321
  onClick: X[8] || (X[8] = Z((y) => d(i)(a.value.source, !0), ["stop"]))
21314
21322
  }, {
21315
21323
  default: f(() => [
21316
- u(ie, { icon: "mdi-file-replace-outline" }),
21324
+ u(oe, { icon: "mdi-file-replace-outline" }),
21317
21325
  u(be, {
21318
21326
  activator: "parent",
21319
21327
  location: "bottom"
@@ -21422,7 +21430,8 @@ const zY = { class: "w-100" }, RY = { class: "d-flex" }, UY = { class: "d-flex"
21422
21430
  dam: {
21423
21431
  damId: O.mainFile.id,
21424
21432
  licenceId: O.licence,
21425
- regionPosition: 0
21433
+ regionPosition: 0,
21434
+ internal: O.mainFileInternal ?? !1
21426
21435
  },
21427
21436
  position: 0
21428
21437
  };
@@ -21446,7 +21455,8 @@ const zY = { class: "w-100" }, RY = { class: "d-flex" }, UY = { class: "d-flex"
21446
21455
  dam: {
21447
21456
  damId: o.value,
21448
21457
  licenceId: 0,
21449
- regionPosition: 0
21458
+ regionPosition: 0,
21459
+ internal: !1
21450
21460
  }
21451
21461
  });
21452
21462
  }, k = async () => {
@@ -21478,7 +21488,7 @@ const zY = { class: "w-100" }, RY = { class: "d-flex" }, UY = { class: "d-flex"
21478
21488
  { immediate: !0 }
21479
21489
  ), a({
21480
21490
  submit: U
21481
- }), (O, R) => (v(), K(ve, null, [
21491
+ }), (O, R) => (v(), K(ge, null, [
21482
21492
  u(Oe, null, {
21483
21493
  default: f(() => [
21484
21494
  u(wr, {
@@ -21545,7 +21555,7 @@ const zY = { class: "w-100" }, RY = { class: "d-flex" }, UY = { class: "d-flex"
21545
21555
  key: 0,
21546
21556
  chip: "",
21547
21557
  value: t.value
21548
- }, null, 8, ["value"])) : (v(), K(ve, { key: 1 }, [
21558
+ }, null, 8, ["value"])) : (v(), K(ge, { key: 1 }, [
21549
21559
  M(A(t.value), 1)
21550
21560
  ], 64))
21551
21561
  ])
@@ -21563,23 +21573,23 @@ const zY = { class: "w-100" }, RY = { class: "d-flex" }, UY = { class: "d-flex"
21563
21573
  const t = e, s = a, o = (l, c) => {
21564
21574
  s("click:row", { event: l, item: c });
21565
21575
  }, i = I(() => !br(t.items)), r = I(() => t.columns.length), { t: n } = ae();
21566
- return (l, c) => (v(), K(ve, null, [
21576
+ return (l, c) => (v(), K(ge, null, [
21567
21577
  u(Vd, { class: "a-datatable" }, {
21568
21578
  default: f(() => [
21569
21579
  B("thead", null, [
21570
21580
  B("tr", null, [
21571
- (v(!0), K(ve, null, nt(e.columns, (m) => (v(), K("th", {
21581
+ (v(!0), K(ge, null, nt(e.columns, (m) => (v(), K("th", {
21572
21582
  key: m.key,
21573
21583
  class: "text-left"
21574
21584
  }, A(m.title), 1))), 128))
21575
21585
  ])
21576
21586
  ]),
21577
21587
  B("tbody", null, [
21578
- i.value ? (v(!0), K(ve, { key: 0 }, nt(t.items, (m) => (v(), K("tr", {
21588
+ i.value ? (v(!0), K(ge, { key: 0 }, nt(t.items, (m) => (v(), K("tr", {
21579
21589
  key: m[e.itemKey],
21580
21590
  onClick: (V) => o(V, m)
21581
21591
  }, [
21582
- (v(!0), K(ve, null, nt(e.columns, (V) => (v(), x(WY, {
21592
+ (v(!0), K(ge, null, nt(e.columns, (V) => (v(), x(WY, {
21583
21593
  key: V.key,
21584
21594
  item: m,
21585
21595
  column: V
@@ -23362,7 +23372,7 @@ const nT = /* @__PURE__ */ H({
23362
23372
  u(sa, null, {
23363
23373
  default: f(() => [
23364
23374
  M(A(m.title) + " ", 1),
23365
- m.raw?.raw?.reviewed || m.raw?.reviewed ? (v(), x(ie, {
23375
+ m.raw?.raw?.reviewed || m.raw?.reviewed ? (v(), x(oe, {
23366
23376
  key: 0,
23367
23377
  icon: "mdi-shield-check",
23368
23378
  class: "text-success ml-1",
@@ -23380,7 +23390,7 @@ const nT = /* @__PURE__ */ H({
23380
23390
  u(Mt, Tt(si(c)), {
23381
23391
  default: f(() => [
23382
23392
  M(A(m.title) + " ", 1),
23383
- m.raw?.raw?.reviewed || m.raw?.reviewed ? (v(), x(ie, {
23393
+ m.raw?.raw?.reviewed || m.raw?.reviewed ? (v(), x(oe, {
23384
23394
  key: 0,
23385
23395
  icon: "mdi-shield-check",
23386
23396
  class: "text-success ml-1",
@@ -23578,7 +23588,7 @@ export {
23578
23588
  QD as DamAssetLicenceRemoteAutocomplete,
23579
23589
  Yt as DamAssetStatus,
23580
23590
  Ho as DamAssetStatusDefault,
23581
- se as DamAssetType,
23591
+ ie as DamAssetType,
23582
23592
  Ai as DamAssetTypeDefault,
23583
23593
  rg as DamAuthorFilterRemoteAutocomplete,
23584
23594
  nT as DamAuthorFilterRemoteAutocompleteLegacy,