@anzusystems/common-admin 1.47.0-beta.61 → 1.47.0-beta.62

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,17 +1,17 @@
1
1
  var fm = Object.defineProperty;
2
2
  var Vm = (a, t, e) => t in a ? fm(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
3
3
  var nr = (a, t, e) => Vm(a, typeof t != "symbol" ? t + "" : t, e);
4
- import { defineComponent as W, computed as _, openBlock as q, createBlock as K, withCtx as V, createTextVNode as M, toDisplayString as I, createElementBlock as B, createVNode as m, normalizeClass as he, createCommentVNode as j, renderSlot as le, createElementVNode as N, resolveComponent as $e, withModifiers as Z, withDirectives as na, vShow as fs, isProxy as $d, toRaw as yt, isRef as Es, unref as p, Fragment as Fe, normalizeStyle as $t, shallowRef as vt, watch as qe, ref as D, reactive as la, inject as at, createSlots as da, provide as Oi, renderList as je, onMounted as gt, TransitionGroup as pm, mergeProps as Dt, isVNode as vm, mergeModels as _t, useModel as qa, toRefs as ui, vModelText as Il, nextTick as Gt, withKeys as Ba, onUnmounted as to, readonly as Is, createStaticVNode as Bd, resolveDynamicComponent as ao, setBlockTracking as _l, onBeforeUnmount as so, toRef as io, Teleport as hm, normalizeProps as Fm, guardReactiveProps as gm } from "vue";
4
+ import { defineComponent as W, computed as _, openBlock as q, createBlock as K, withCtx as V, createTextVNode as M, toDisplayString as I, createElementBlock as B, createVNode as m, normalizeClass as he, createCommentVNode as j, renderSlot as le, createElementVNode as N, resolveComponent as $e, withModifiers as Z, withDirectives as na, vShow as fs, isProxy as $d, toRaw as yt, isRef as Es, unref as p, Fragment as Fe, normalizeStyle as Bt, shallowRef as vt, watch as qe, ref as D, reactive as la, inject as at, createSlots as da, provide as Oi, renderList as je, onMounted as gt, TransitionGroup as pm, mergeProps as Kt, isVNode as vm, mergeModels as St, useModel as qa, toRefs as ui, vModelText as Il, nextTick as Jt, withKeys as Ba, onUnmounted as to, readonly as Is, createStaticVNode as Bd, resolveDynamicComponent as ao, setBlockTracking as _l, onBeforeUnmount as so, toRef as io, Teleport as hm, normalizeProps as Fm, guardReactiveProps as gm } from "vue";
5
5
  import { useI18n as ee, createI18n as qm } from "vue-i18n";
6
- import { VChip as Jt } from "vuetify/lib/components/VChip/index.mjs";
6
+ import { VChip as Zt } from "vuetify/lib/components/VChip/index.mjs";
7
7
  import { VRow as ge, VCol as ne, VSpacer as it } from "vuetify/lib/components/VGrid/index.mjs";
8
8
  import { VAlert as xi } from "vuetify/lib/components/VAlert/index.mjs";
9
9
  import { VIcon as re } from "vuetify/lib/components/VIcon/index.mjs";
10
- import { VCard as Le, VCardText as Vs, VCardActions as It, VCardItem as Eo } from "vuetify/lib/components/VCard/index.mjs";
10
+ import { VCard as Le, VCardText as Vs, VCardActions as _t, VCardItem as Eo } from "vuetify/lib/components/VCard/index.mjs";
11
11
  import { VAvatar as qn } from "vuetify/lib/components/VAvatar/index.mjs";
12
12
  import { VTooltip as ye } from "vuetify/lib/components/VTooltip/index.mjs";
13
13
  import { VProgressCircular as tt } from "vuetify/lib/components/VProgressCircular/index.mjs";
14
- import { useEventBus as Zt, tryOnBeforeUnmount as Nn, useFetch as Ym, watchDebounced as Un, useClipboard as Pd, useStorage as Od, useIntervalFn as Xm, tryOnMounted as Am, tryOnScopeDispose as ym, unrefElement as bm, defaultDocument as Cm, toValue as Sl, useDropZone as xm, useDebounceFn as wm, useWebSocket as km } from "@vueuse/core";
14
+ import { useEventBus as Qt, tryOnBeforeUnmount as Nn, useFetch as Ym, watchDebounced as Un, useClipboard as Pd, useStorage as Od, useIntervalFn as Xm, tryOnMounted as Am, tryOnScopeDispose as ym, unrefElement as bm, defaultDocument as Cm, toValue as Sl, useDropZone as xm, useDebounceFn as wm, useWebSocket as km } from "@vueuse/core";
15
15
  import { VTextField as ci } from "vuetify/lib/components/VTextField/index.mjs";
16
16
  import { Tooltip as Rd, Intersect as zd } from "vuetify/lib/directives/index.mjs";
17
17
  import { VTextarea as Ld } from "vuetify/lib/components/VTextarea/index.mjs";
@@ -37,7 +37,7 @@ import { VAppBar as Nm } from "vuetify/lib/components/VAppBar/index.mjs";
37
37
  import { VColorPicker as Um } from "vuetify/lib/components/VColorPicker/index.mjs";
38
38
  import { VSlider as jm } from "vuetify/lib/components/VSlider/index.mjs";
39
39
  import { VTable as jd } from "vuetify/lib/components/VTable/index.mjs";
40
- import { defineStore as mi, storeToRefs as St } from "pinia";
40
+ import { defineStore as mi, storeToRefs as Dt } from "pinia";
41
41
  import { VForm as no } from "vuetify/lib/components/VForm/index.mjs";
42
42
  import { VCombobox as Hm } from "vuetify/lib/components/VCombobox/index.mjs";
43
43
  import { VImg as $r } from "vuetify/lib/components/VImg/index.mjs";
@@ -54,7 +54,7 @@ const Jm = { key: 1 }, Hd = /* @__PURE__ */ W({
54
54
  },
55
55
  setup(a) {
56
56
  const t = a, { t: e } = ee(), s = _(() => t.value === !0 || t.value === 1 || t.value === "true"), i = _(() => s.value ? e("common.model.boolean.true") : e("common.model.boolean.false")), r = _(() => t.invertColor ? s.value ? "error" : "success" : s.value ? "success" : "error");
57
- return (o, l) => o.chip ? (q(), K(Jt, {
57
+ return (o, l) => o.chip ? (q(), K(Zt, {
58
58
  key: 0,
59
59
  color: r.value,
60
60
  label: "",
@@ -168,7 +168,7 @@ const Jm = { key: 1 }, Hd = /* @__PURE__ */ W({
168
168
  _: 3
169
169
  }, 8, ["title", "loading"]));
170
170
  }
171
- }), R = (a) => typeof a > "u", ve = (a) => !R(a), te = (a) => a === null, oi = (a) => typeof a == "number", zt = (a) => typeof a == "string", We = (a) => Array.isArray(a), af = (a) => typeof a == "function", Yn = (a) => typeof a == "boolean", Wd = (a) => zt(a) && /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(a), sf = (a) => {
171
+ }), R = (a) => typeof a > "u", ve = (a) => !R(a), te = (a) => a === null, oi = (a) => typeof a == "number", Lt = (a) => typeof a == "string", We = (a) => Array.isArray(a), af = (a) => typeof a == "function", Yn = (a) => typeof a == "boolean", Wd = (a) => Lt(a) && /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(a), sf = (a) => {
172
172
  const t = parseFloat(a);
173
173
  return !isNaN(a) && (t | 0) === t;
174
174
  }, Gi = (a) => typeof a == "object" && !We(a) && !te(a), ni = (a) => Gi(a) ? Object.keys(a).length === 0 : !1, Gd = (a) => We(a) && a.length === 0, Xn = (a) => te(a) || R(a) || a === "" || a === 0 || Gd(a) || ni(a), xe = (a) => {
@@ -245,7 +245,7 @@ const Jm = { key: 1 }, Hd = /* @__PURE__ */ W({
245
245
  default: V(() => [
246
246
  N("div", {
247
247
  class: "d-inline-flex text-white font-weight-light",
248
- style: $t({ fontSize: s.value })
248
+ style: Bt({ fontSize: s.value })
249
249
  }, I(i.value), 5),
250
250
  r.tooltip ? (q(), K(ye, {
251
251
  key: 0,
@@ -262,7 +262,7 @@ const Jm = { key: 1 }, Hd = /* @__PURE__ */ W({
262
262
  o[0] || (o[0] = N("div", null, null, -1))
263
263
  ], 64));
264
264
  }
265
- }), nf = { class: "d-inline-flex" }, lf = { key: 0 }, Wt = /* @__PURE__ */ W({
265
+ }), nf = { class: "d-inline-flex" }, lf = { key: 0 }, Gt = /* @__PURE__ */ W({
266
266
  __name: "ACollabLockedByUser",
267
267
  props: {
268
268
  id: {},
@@ -306,44 +306,44 @@ const Jm = { key: 1 }, Hd = /* @__PURE__ */ W({
306
306
  "anzu:collabKickedFromRoom"
307
307
  );
308
308
  function Jn() {
309
- return Zt(df);
309
+ return Qt(df);
310
310
  }
311
311
  function Qd() {
312
- return Zt(uf);
312
+ return Qt(uf);
313
313
  }
314
314
  function eu() {
315
- return Zt(
315
+ return Qt(
316
316
  cf
317
317
  );
318
318
  }
319
319
  function tu() {
320
- return Zt(mf);
320
+ return Qt(mf);
321
321
  }
322
322
  function au() {
323
- return Zt(ff);
323
+ return Qt(ff);
324
324
  }
325
325
  function su() {
326
- return Zt(Vf);
326
+ return Qt(Vf);
327
327
  }
328
328
  function iu() {
329
- return Zt(pf);
329
+ return Qt(pf);
330
330
  }
331
331
  function ru() {
332
- return Zt(vf);
332
+ return Qt(vf);
333
333
  }
334
334
  function ou() {
335
- return Zt(hf);
335
+ return Qt(hf);
336
336
  }
337
337
  function nu() {
338
- return Zt(Ff);
338
+ return Qt(Ff);
339
339
  }
340
340
  function lu() {
341
- return Zt(gf);
341
+ return Qt(gf);
342
342
  }
343
- const Ot = {
343
+ const Rt = {
344
344
  Acquire: "acquire",
345
345
  Release: "release"
346
- }, Rt = {
346
+ }, zt = {
347
347
  Success: "success",
348
348
  Failure: "failure"
349
349
  }, rs = (a, t) => ({
@@ -351,9 +351,9 @@ const Ot = {
351
351
  status: t
352
352
  }), qf = Symbol("anzu:collabFieldLockStatus");
353
353
  function du() {
354
- return Zt(qf);
354
+ return Qt(qf);
355
355
  }
356
- const ra = {
356
+ const wt = {
357
357
  Inactive: "inactive",
358
358
  Active: "active"
359
359
  }, yn = {
@@ -392,7 +392,7 @@ const pS = {
392
392
  function Yf(a) {
393
393
  R(a) || (bn.value = a);
394
394
  }
395
- function Qt() {
395
+ function ea() {
396
396
  if (R(bn.value))
397
397
  throw new Error("Composable can't be used without properly configured common admin.");
398
398
  return {
@@ -401,7 +401,7 @@ function Qt() {
401
401
  }
402
402
  const Tl = D(!0), Xf = D(), Af = la(/* @__PURE__ */ new Map()), yf = la(/* @__PURE__ */ new Map()), Mo = la(/* @__PURE__ */ new Map());
403
403
  function lo() {
404
- const { collabOptions: a } = Qt();
404
+ const { collabOptions: a } = ea();
405
405
  return {
406
406
  collabReconnecting: _(() => a.value.enabled && !Tl.value),
407
407
  collabConnected: Tl,
@@ -428,7 +428,7 @@ function cu() {
428
428
  };
429
429
  }
430
430
  function vs(a, t, e = !1) {
431
- const { collabOptions: s } = Qt(), { currentUserId: i } = cu(), { collabSocket: r, collabFieldLocksState: o, collabFieldDataBufferState: l, collabRoomInfoState: n } = lo(), d = Jn(), u = D(), c = D(), f = du(), Y = D(), v = D(), g = tu(), h = D(), C = D(), F = (z, E) => {
431
+ const { collabOptions: s } = ea(), { currentUserId: i } = cu(), { collabSocket: r, collabFieldLocksState: o, collabFieldDataBufferState: l, collabRoomInfoState: n } = lo(), d = Jn(), u = D(), c = D(), f = du(), Y = D(), v = D(), g = tu(), h = D(), C = D(), F = (z, E) => {
432
432
  z.room !== a || z.field !== t || R(E) || R(c.value) || c.value(E);
433
433
  }, A = (z, E) => {
434
434
  z.room !== a || z.field !== t || R(E) || R(v.value) || v.value(E);
@@ -463,13 +463,13 @@ function vs(a, t, e = !1) {
463
463
  var k;
464
464
  if (!s.value.enabled || R(r.value)) return;
465
465
  const E = n.get(a);
466
- E && E.status === ra.Inactive || (k = r.value) == null || k.timeout(1e3).emit("acquireFieldLock", a, t, z, (w, y) => {
466
+ E && E.status === wt.Inactive || (k = r.value) == null || k.timeout(1e3).emit("acquireFieldLock", a, t, z, (w, y) => {
467
467
  var $;
468
468
  const S = { field: t, room: a };
469
469
  if (w || Pr(y))
470
470
  return void f.emit(
471
471
  S,
472
- rs(Ot.Acquire, Rt.Failure)
472
+ rs(Rt.Acquire, zt.Failure)
473
473
  );
474
474
  if (Br(y)) {
475
475
  o.has(a) || o.set(a, /* @__PURE__ */ new Map());
@@ -478,7 +478,7 @@ function vs(a, t, e = !1) {
478
478
  ($ = o.get(a)) == null || $.set(G, J);
479
479
  return void f.emit(
480
480
  S,
481
- rs(Ot.Acquire, Rt.Success)
481
+ rs(Rt.Acquire, zt.Success)
482
482
  );
483
483
  }
484
484
  });
@@ -487,7 +487,7 @@ function vs(a, t, e = !1) {
487
487
  var w, y;
488
488
  if (!s.value.enabled || R(r.value)) return;
489
489
  const k = n.get(a);
490
- if (k && k.status === ra.Inactive) {
490
+ if (k && k.status === wt.Inactive) {
491
491
  l.has(a) || l.set(a, /* @__PURE__ */ new Map()), (w = l.get(a)) == null || w.set(t, z);
492
492
  return;
493
493
  }
@@ -497,7 +497,7 @@ function vs(a, t, e = !1) {
497
497
  if (S || Pr($))
498
498
  return void f.emit(
499
499
  H,
500
- rs(Ot.Release, Rt.Failure)
500
+ rs(Rt.Release, zt.Failure)
501
501
  );
502
502
  if (Br($)) {
503
503
  o.has(a) || o.set(a, /* @__PURE__ */ new Map());
@@ -505,7 +505,7 @@ function vs(a, t, e = !1) {
505
505
  (G = o.get(a)) == null || G.delete(J);
506
506
  return void f.emit(
507
507
  H,
508
- rs(Ot.Release, Rt.Success)
508
+ rs(Rt.Release, zt.Success)
509
509
  );
510
510
  }
511
511
  });
@@ -513,7 +513,7 @@ function vs(a, t, e = !1) {
513
513
  changeCollabFieldData: (z) => {
514
514
  if (!s.value.enabled || R(r.value)) return;
515
515
  const E = n.get(a);
516
- E && E.status === ra.Inactive || r.value.emit("changeFieldData", a, t, z, () => {
516
+ E && E.status === wt.Inactive || r.value.emit("changeFieldData", a, t, z, () => {
517
517
  });
518
518
  },
519
519
  lockedByUser: L,
@@ -549,7 +549,7 @@ const bf = {
549
549
  },
550
550
  emits: ["update:modelValue", "click:append", "blur", "focus"],
551
551
  setup(a, { emit: t }) {
552
- const e = a, s = t, i = D(null), { collabOptions: r } = Qt(), o = D((A, X) => {
552
+ const e = a, s = t, i = D(null), { collabOptions: r } = ea(), o = D((A, X) => {
553
553
  }), l = D((A) => {
554
554
  }), n = D(null);
555
555
  if (r.value.enabled && ve(e.collab)) {
@@ -568,7 +568,7 @@ const bf = {
568
568
  { immediate: !0 }
569
569
  ), b((L) => {
570
570
  var U;
571
- L.status === Rt.Failure && L.type === Ot.Acquire && ((U = i.value) == null || U.blur());
571
+ L.status === zt.Failure && L.type === Rt.Acquire && ((U = i.value) == null || U.blur());
572
572
  }), x(() => {
573
573
  var L;
574
574
  (L = i.value) == null || L.blur();
@@ -627,7 +627,7 @@ const bf = {
627
627
  name: "append-inner",
628
628
  fn: V(() => [
629
629
  le(A.$slots, "locked", { userId: n.value }, () => [
630
- A.collab ? (q(), K(Wt, {
630
+ A.collab ? (q(), K(Gt, {
631
631
  key: 0,
632
632
  id: n.value,
633
633
  users: A.collab.cachedUsers
@@ -676,7 +676,7 @@ const bf = {
676
676
  },
677
677
  emits: ["update:modelValue", "click:append", "blur", "focus"],
678
678
  setup(a, { emit: t }) {
679
- const e = a, s = t, i = D(null), { collabOptions: r } = Qt(), o = D((A) => {
679
+ const e = a, s = t, i = D(null), { collabOptions: r } = ea(), o = D((A) => {
680
680
  }), l = D((A) => {
681
681
  }), n = D(null);
682
682
  if (r.value.enabled && ve(e.collab)) {
@@ -695,7 +695,7 @@ const bf = {
695
695
  { immediate: !0 }
696
696
  ), b((L) => {
697
697
  var U;
698
- L.status === Rt.Failure && L.type === Ot.Acquire && ((U = i.value) == null || U.blur());
698
+ L.status === zt.Failure && L.type === Rt.Acquire && ((U = i.value) == null || U.blur());
699
699
  }), x(() => {
700
700
  var L;
701
701
  (L = i.value) == null || L.blur();
@@ -751,7 +751,7 @@ const bf = {
751
751
  name: "append-inner",
752
752
  fn: V(() => [
753
753
  le(A.$slots, "locked", { userId: n.value }, () => [
754
- A.collab ? (q(), K(Wt, {
754
+ A.collab ? (q(), K(Gt, {
755
755
  key: 0,
756
756
  id: n.value,
757
757
  users: A.collab.cachedUsers
@@ -1073,7 +1073,7 @@ const bf = {
1073
1073
  })
1074
1074
  ]));
1075
1075
  }
1076
- }), wt = /* @__PURE__ */ W({
1076
+ }), kt = /* @__PURE__ */ W({
1077
1077
  __name: "ADialogToolbar",
1078
1078
  emits: ["onCancel"],
1079
1079
  setup(a, { emit: t }) {
@@ -1416,7 +1416,7 @@ const dr = {
1416
1416
  return m("div", {
1417
1417
  class: "vue-notification-group",
1418
1418
  style: u.value
1419
- }, [m(pm, Dt(c.value, {
1419
+ }, [m(pm, Kt(c.value, {
1420
1420
  tag: "div",
1421
1421
  css: !l.value,
1422
1422
  name: a.animationName
@@ -1449,17 +1449,17 @@ const dr = {
1449
1449
  })]);
1450
1450
  };
1451
1451
  }
1452
- }), sa = (a) => {
1452
+ }), ia = (a) => {
1453
1453
  typeof a == "string" && (a = { title: "", text: a }), typeof a == "object" && Rr.emit("add", a);
1454
1454
  };
1455
- sa.close = (a) => {
1455
+ ia.close = (a) => {
1456
1456
  Rr.emit("close", a);
1457
1457
  };
1458
1458
  const Nf = "Notifications";
1459
1459
  function Uf(a, t = {}) {
1460
1460
  Object.entries(t).forEach((s) => mu.set(...s));
1461
1461
  const e = t.name || "notify";
1462
- a.config.globalProperties["$" + e] = sa, a.component(t.componentName || Nf, Lf);
1462
+ a.config.globalProperties["$" + e] = ia, a.component(t.componentName || Nf, Lf);
1463
1463
  }
1464
1464
  const jf = {
1465
1465
  install: Uf
@@ -1534,7 +1534,7 @@ const va = 3, Fu = `
1534
1534
  `;
1535
1535
  function He() {
1536
1536
  const a = (g, h = va) => {
1537
- sa({
1537
+ ia({
1538
1538
  group: "alerts",
1539
1539
  text: g,
1540
1540
  duration: h * 1e3,
@@ -1544,7 +1544,7 @@ function He() {
1544
1544
  const { t: C } = De.global;
1545
1545
  a(C(g), h);
1546
1546
  }, e = (g, h = va) => {
1547
- sa({
1547
+ ia({
1548
1548
  group: "alerts",
1549
1549
  text: g,
1550
1550
  duration: h * 1e3,
@@ -1554,7 +1554,7 @@ function He() {
1554
1554
  const { t: C } = De.global;
1555
1555
  e(C(g), h);
1556
1556
  }, i = (g, h = va) => {
1557
- sa({
1557
+ ia({
1558
1558
  group: "alerts",
1559
1559
  text: g,
1560
1560
  duration: h * 1e3,
@@ -1564,7 +1564,7 @@ function He() {
1564
1564
  const { t: C } = De.global;
1565
1565
  i(C(g), h);
1566
1566
  }, o = (g, h = va) => {
1567
- sa({
1567
+ ia({
1568
1568
  group: "alerts",
1569
1569
  text: g,
1570
1570
  duration: h * 1e3,
@@ -1575,7 +1575,7 @@ function He() {
1575
1575
  o(C(g), h);
1576
1576
  }, n = (g = va) => {
1577
1577
  const { t: h } = De.global;
1578
- sa({
1578
+ ia({
1579
1579
  group: "alerts",
1580
1580
  text: h("common.alert.fixValidationErrors"),
1581
1581
  duration: g * 1e3,
@@ -1583,7 +1583,7 @@ function He() {
1583
1583
  });
1584
1584
  }, d = (g, h = va) => {
1585
1585
  const { t: C } = De.global;
1586
- sa({
1586
+ ia({
1587
1587
  group: "alerts",
1588
1588
  text: C("common.alert.recordWas." + g),
1589
1589
  duration: h * 1e3,
@@ -1604,7 +1604,7 @@ function He() {
1604
1604
  }
1605
1605
  x.length > 0 && X.push(x + ": " + Array.from(P).join(", "));
1606
1606
  }
1607
- sa({
1607
+ ia({
1608
1608
  group: "alerts",
1609
1609
  text: X.join(Fu),
1610
1610
  duration: h * 1e3,
@@ -1613,7 +1613,7 @@ function He() {
1613
1613
  }, c = (g, h = -1) => {
1614
1614
  const { t: C, te: F } = De.global;
1615
1615
  let A = C("error.apiForbiddenOperation.noTranslation");
1616
- F("error.apiForbiddenOperation." + g) && (A = C("error.apiForbiddenOperation." + g)), sa({
1616
+ F("error.apiForbiddenOperation." + g) && (A = C("error.apiForbiddenOperation." + g)), ia({
1617
1617
  group: "alerts",
1618
1618
  text: A,
1619
1619
  duration: h * 1e3,
@@ -1621,7 +1621,7 @@ function He() {
1621
1621
  });
1622
1622
  }, f = (g = -1) => {
1623
1623
  const { t: h } = De.global;
1624
- sa({
1624
+ ia({
1625
1625
  group: "alerts",
1626
1626
  text: h("common.alert.unknownError"),
1627
1627
  duration: g * 1e3,
@@ -1629,7 +1629,7 @@ function He() {
1629
1629
  });
1630
1630
  }, Y = (g = va) => {
1631
1631
  const { t: h } = De.global;
1632
- sa({
1632
+ ia({
1633
1633
  group: "alerts",
1634
1634
  text: h("common.alert.forbiddenError"),
1635
1635
  duration: g * 1e3,
@@ -1656,7 +1656,7 @@ function He() {
1656
1656
  }
1657
1657
  const XS = /* @__PURE__ */ W({
1658
1658
  __name: "ACreateDialog",
1659
- props: /* @__PURE__ */ _t({
1659
+ props: /* @__PURE__ */ St({
1660
1660
  buttonClass: { default: "" },
1661
1661
  maxWidth: { default: void 0 },
1662
1662
  dataCy: { default: "button-create" },
@@ -1669,7 +1669,7 @@ const XS = /* @__PURE__ */ W({
1669
1669
  modelValue: { type: Boolean, default: !1, required: !1 },
1670
1670
  modelModifiers: {}
1671
1671
  }),
1672
- emits: /* @__PURE__ */ _t(["onConfirm", "onOpen", "onClose", "onError", "onSuccess"], ["update:modelValue"]),
1672
+ emits: /* @__PURE__ */ St(["onConfirm", "onOpen", "onClose", "onError", "onSuccess"], ["update:modelValue"]),
1673
1673
  setup(a, { emit: t }) {
1674
1674
  const e = a, s = t, i = qa(a, "modelValue"), { t: r } = ee(), o = D(!1), l = () => {
1675
1675
  i.value = !0, s("onOpen");
@@ -1718,7 +1718,7 @@ const XS = /* @__PURE__ */ W({
1718
1718
  "data-cy": "create-panel"
1719
1719
  }, {
1720
1720
  default: V(() => [
1721
- m(wt, { onOnCancel: n }, {
1721
+ m(kt, { onOnCancel: n }, {
1722
1722
  default: V(() => [
1723
1723
  le(v.$slots, "title", {}, () => [
1724
1724
  M(I(p(r)("common.button.create")), 1)
@@ -1732,7 +1732,7 @@ const XS = /* @__PURE__ */ W({
1732
1732
  ]),
1733
1733
  _: 3
1734
1734
  }),
1735
- m(It, null, {
1735
+ m(_t, null, {
1736
1736
  default: V(() => [
1737
1737
  m(it),
1738
1738
  m(h, {
@@ -2324,7 +2324,7 @@ var uV = Xu.exports;
2324
2324
  const Au = /* @__PURE__ */ co(uV);
2325
2325
  Me.extend(Yu);
2326
2326
  Me.extend(Au);
2327
- const ms = ".000000Z", zr = "YYYY-MM-DDTHH:mm:ss", mo = "1970-01-01T00:00:00.000000Z", fo = "2100-01-01T00:00:00.000000Z", bS = () => Me().utc().toDate(), CS = (a) => Me(a).toDate(), xS = () => li(Me().utc().unix()), Lt = (a = !0, t = !1) => a && !t ? Me().utc().format("YYYY-MM-DDTHH:mm:ss") + ms : a && t ? Me().utc().format("YYYY-MM-DDTHH:mm:00") + ms : !a && t ? Me().utc().format("YYYY-MM-DDTHH:mm:00.SSSSSS") + "Z" : Me().utc().format("YYYY-MM-DDTHH:mm:ss.SSSSSS") + "Z", wS = (a = 0) => a === 0 ? Me().startOf("day").utc().format(zr) + ms : Me().add(a, "days").startOf("day").utc().format(zr) + ms, kS = (a = 0) => a === 0 ? Me().endOf("day").utc().format(zr) + ms : Me().add(a, "days").endOf("day").utc().format(zr) + ms, IS = (a = 0, t = null) => (t === null && (t = /* @__PURE__ */ new Date()), a === 0 ? t : a > 0 ? Me(t).add(a, "minutes").toDate() : a < 0 ? Me(t).subtract(Math.abs(a), "minutes").toDate() : t), _S = (a) => Me(a).utc().format("YYYY-MM-DDTHH:mm:ss") + ms, SS = () => Me().utc().format("YYYY"), Ks = (a, t = "") => a === fo || a === mo || a === "" || te(a) || R(a) ? t : Me(a).format("DD.MM.YYYY HH:mm"), DS = (a, t = "") => {
2327
+ const ms = ".000000Z", zr = "YYYY-MM-DDTHH:mm:ss", mo = "1970-01-01T00:00:00.000000Z", fo = "2100-01-01T00:00:00.000000Z", bS = () => Me().utc().toDate(), CS = (a) => Me(a).toDate(), xS = () => li(Me().utc().unix()), Nt = (a = !0, t = !1) => a && !t ? Me().utc().format("YYYY-MM-DDTHH:mm:ss") + ms : a && t ? Me().utc().format("YYYY-MM-DDTHH:mm:00") + ms : !a && t ? Me().utc().format("YYYY-MM-DDTHH:mm:00.SSSSSS") + "Z" : Me().utc().format("YYYY-MM-DDTHH:mm:ss.SSSSSS") + "Z", wS = (a = 0) => a === 0 ? Me().startOf("day").utc().format(zr) + ms : Me().add(a, "days").startOf("day").utc().format(zr) + ms, kS = (a = 0) => a === 0 ? Me().endOf("day").utc().format(zr) + ms : Me().add(a, "days").endOf("day").utc().format(zr) + ms, IS = (a = 0, t = null) => (t === null && (t = /* @__PURE__ */ new Date()), a === 0 ? t : a > 0 ? Me(t).add(a, "minutes").toDate() : a < 0 ? Me(t).subtract(Math.abs(a), "minutes").toDate() : t), _S = (a) => Me(a).utc().format("YYYY-MM-DDTHH:mm:ss") + ms, SS = () => Me().utc().format("YYYY"), Ks = (a, t = "") => a === fo || a === mo || a === "" || te(a) || R(a) ? t : Me(a).format("DD.MM.YYYY HH:mm"), DS = (a, t = "") => {
2328
2328
  if (a === fo || a === mo || a === "" || te(a) || R(a))
2329
2329
  return t;
2330
2330
  let e = !0, s = !0;
@@ -2508,7 +2508,7 @@ const yu = /* @__PURE__ */ W({
2508
2508
  return s.value;
2509
2509
  if (Wd(X) && d(r))
2510
2510
  return r.value;
2511
- if (zt(X) && X.length > 0) {
2511
+ if (Lt(X) && X.length > 0) {
2512
2512
  if (d(o) && X.startsWith("http"))
2513
2513
  return o.value;
2514
2514
  if (d(i))
@@ -2888,7 +2888,7 @@ const YV = {
2888
2888
  },
2889
2889
  setup(a) {
2890
2890
  const t = a, { getGrantOption: e } = bu(), s = _(() => e(t.grant)), { getGrantOriginOption: i } = qV(), r = _(() => i(t.grantOrigin));
2891
- return (o, l) => s.value ? (q(), K(Jt, {
2891
+ return (o, l) => s.value ? (q(), K(Zt, {
2892
2892
  key: 0,
2893
2893
  color: s.value.color,
2894
2894
  label: "",
@@ -2959,7 +2959,7 @@ function NS(a, t, e = ".") {
2959
2959
  }
2960
2960
  return r(a), a;
2961
2961
  }
2962
- const AV = (a) => Gi(a) && Object.hasOwn(a, "owners"), yV = (a) => Object.hasOwn(a, "createdBy"), hs = (a, t, e = "") => ni(t) ? a : of(e === "" ? a : e, t), Fs = (a) => Gf.includes(a), Nt = (a, t, e = {}, s, i, r = {}) => new Promise((o, l) => {
2962
+ const AV = (a) => Gi(a) && Object.hasOwn(a, "owners"), yV = (a) => Object.hasOwn(a, "createdBy"), hs = (a, t, e = "") => ni(t) ? a : of(e === "" ? a : e, t), Fs = (a) => Gf.includes(a), Ut = (a, t, e = {}, s, i, r = {}) => new Promise((o, l) => {
2963
2963
  a().get(hs(t, e), r).then((n) => Fs(n.status) ? n.data ? o(n.data) : n.status === La ? o(null) : l(new bt()) : l(new Ua(n.status))).catch((n) => Na(n) ? l(new Sa(n)) : Da(n) ? l(new Ka(n, s, i, n)) : ja(n) ? l(new Ta(n, n)) : l(new bt(n)));
2964
2964
  }), wu = "ROLE_SUPER_ADMIN";
2965
2965
  function po(a) {
@@ -3007,7 +3007,7 @@ function po(a) {
3007
3007
  hasCurrentUser: v,
3008
3008
  fetchCurrentUser: async (C, F = "/adm/v1/user/current", A = void 0, X = "user") => {
3009
3009
  try {
3010
- const b = await Nt(C, F, A, d, X);
3010
+ const b = await Ut(C, F, A, d, X);
3011
3011
  return u(b), t.currentUsersLoaded.value.set(d, !0), c.value;
3012
3012
  } catch {
3013
3013
  t.currentUsersLoaded.value.set(d, !0);
@@ -3180,7 +3180,7 @@ const GV = { class: "a-datetime-picker-time" }, JV = { class: "a-datetime-picker
3180
3180
  e.value ? String(e.value.minutes).padStart(2, "0") : "00"
3181
3181
  ), r = D(null), o = async (v) => {
3182
3182
  const g = v.target;
3183
- await Gt(), g == null || g.select();
3183
+ await Jt(), g == null || g.select();
3184
3184
  }, l = () => {
3185
3185
  const v = parseInt(s.value || "0");
3186
3186
  s.value = v >= 0 && v <= 23 ? String(v).padStart(2, "0") : "00";
@@ -3334,7 +3334,7 @@ const GV = { class: "a-datetime-picker-time" }, JV = { class: "a-datetime-picker
3334
3334
  { immediate: !0 }
3335
3335
  ), qe(i, (O) => {
3336
3336
  if (O) {
3337
- x(), Gt(() => {
3337
+ x(), Jt(() => {
3338
3338
  r.value++;
3339
3339
  }), s("onOpen");
3340
3340
  return;
@@ -3367,7 +3367,7 @@ const GV = { class: "a-datetime-picker-time" }, JV = { class: "a-datetime-picker
3367
3367
  }, L = () => {
3368
3368
  s("focus");
3369
3369
  }, U = () => {
3370
- c.value = Me().second(0).millisecond(0), Gt(() => {
3370
+ c.value = Me().second(0).millisecond(0), Jt(() => {
3371
3371
  r.value++, o.value++;
3372
3372
  });
3373
3373
  };
@@ -3400,7 +3400,7 @@ const GV = { class: "a-datetime-picker-time" }, JV = { class: "a-datetime-picker
3400
3400
  "onUpdate:modelValue": T[2] || (T[2] = (z) => i.value = z)
3401
3401
  }, {
3402
3402
  activator: V(({ props: z }) => [
3403
- m(re, Dt({
3403
+ m(re, Kt({
3404
3404
  class: "a-datetime-picker__calendar-icon",
3405
3405
  icon: "mdi-calendar",
3406
3406
  size: "small"
@@ -3472,7 +3472,7 @@ const GV = { class: "a-datetime-picker-time" }, JV = { class: "a-datetime-picker
3472
3472
  set(P) {
3473
3473
  s("update:modelValue", P);
3474
3474
  }
3475
- }), { collabOptions: r } = Qt(), o = D((P) => {
3475
+ }), { collabOptions: r } = ea(), o = D((P) => {
3476
3476
  }), l = D((P) => {
3477
3477
  }), n = D(() => {
3478
3478
  }), d = D(null);
@@ -3531,7 +3531,7 @@ const GV = { class: "a-datetime-picker-time" }, JV = { class: "a-datetime-picker
3531
3531
  }, {
3532
3532
  "append-inner": V(() => [
3533
3533
  le(P.$slots, "locked", { userId: d.value }, () => [
3534
- P.collab ? (q(), K(Wt, {
3534
+ P.collab ? (q(), K(Gt, {
3535
3535
  key: 0,
3536
3536
  id: d.value,
3537
3537
  users: P.collab.cachedUsers
@@ -3563,7 +3563,7 @@ const GV = { class: "a-datetime-picker-time" }, JV = { class: "a-datetime-picker
3563
3563
  set(L) {
3564
3564
  s("update:modelValue", L);
3565
3565
  }
3566
- }), { collabOptions: r } = Qt(), o = D((L) => {
3566
+ }), { collabOptions: r } = ea(), o = D((L) => {
3567
3567
  }), l = D((L) => {
3568
3568
  }), n = D(() => {
3569
3569
  }), d = D(null);
@@ -3622,7 +3622,7 @@ const GV = { class: "a-datetime-picker-time" }, JV = { class: "a-datetime-picker
3622
3622
  return;
3623
3623
  }
3624
3624
  if (e.defaultActivationValue === "now") {
3625
- i.value = Lt();
3625
+ i.value = Nt();
3626
3626
  return;
3627
3627
  }
3628
3628
  if (af(e.defaultActivationValue)) {
@@ -3644,7 +3644,7 @@ const GV = { class: "a-datetime-picker-time" }, JV = { class: "a-datetime-picker
3644
3644
  }, null, 8, ["modelValue", "label", "disabled"]),
3645
3645
  N("div", lp, [
3646
3646
  le(L.$slots, "locked", { userId: d.value }, () => [
3647
- L.collab ? (q(), K(Wt, {
3647
+ L.collab ? (q(), K(Gt, {
3648
3648
  key: 0,
3649
3649
  id: d.value,
3650
3650
  users: L.collab.cachedUsers
@@ -3729,7 +3729,7 @@ const dp = {
3729
3729
  class: "required"
3730
3730
  }, el = /* @__PURE__ */ W({
3731
3731
  __name: "AFormRemoteAutocomplete",
3732
- props: /* @__PURE__ */ _t({
3732
+ props: /* @__PURE__ */ St({
3733
3733
  label: { default: void 0 },
3734
3734
  required: { type: Boolean, default: void 0 },
3735
3735
  multiple: { type: Boolean, default: !1 },
@@ -3759,7 +3759,7 @@ const dp = {
3759
3759
  },
3760
3760
  selectedModifiers: {}
3761
3761
  }),
3762
- emits: /* @__PURE__ */ _t(["searchChange", "searchChangeDebounced", "blur", "focus"], ["update:modelValue", "update:selected"]),
3762
+ emits: /* @__PURE__ */ St(["searchChange", "searchChangeDebounced", "blur", "focus"], ["update:modelValue", "update:selected"]),
3763
3763
  setup(a, { emit: t }) {
3764
3764
  const e = a, s = t, i = qa(a, "modelValue", {
3765
3765
  set(Q) {
@@ -3769,7 +3769,7 @@ const dp = {
3769
3769
  set(Q) {
3770
3770
  return We(Q) ? xe(Q) : Q;
3771
3771
  }
3772
- }), o = D(null), l = D(0), { collabOptions: n } = Qt(), d = D((Q) => {
3772
+ }), o = D(null), l = D(0), { collabOptions: n } = ea(), d = D((Q) => {
3773
3773
  }), u = D((Q) => {
3774
3774
  }), c = D(() => {
3775
3775
  }), f = D(null);
@@ -3921,13 +3921,13 @@ const dp = {
3921
3921
  "onClick:clear": Ke
3922
3922
  }, da({
3923
3923
  item: V(({ props: fe, item: we }) => [
3924
- m(Je, Dt(fe, {
3924
+ m(Je, Kt(fe, {
3925
3925
  title: we.raw.title,
3926
3926
  subtitle: we.raw.subtitle
3927
3927
  }), null, 16, ["title", "subtitle"])
3928
3928
  ]),
3929
3929
  chip: V(({ props: fe, item: we }) => [
3930
- m(Jt, {
3930
+ m(Zt, {
3931
3931
  closable: fe.closable,
3932
3932
  size: "small",
3933
3933
  text: `${we.title} (${we.raw.subtitle})`,
@@ -3954,7 +3954,7 @@ const dp = {
3954
3954
  name: "append-inner",
3955
3955
  fn: V(() => [
3956
3956
  le(Q.$slots, "locked", { userId: f.value }, () => [
3957
- Q.collab ? (q(), K(Wt, {
3957
+ Q.collab ? (q(), K(Gt, {
3958
3958
  key: 0,
3959
3959
  id: f.value,
3960
3960
  users: Q.collab.cachedUsers
@@ -4025,7 +4025,7 @@ const dp = {
4025
4025
  },
4026
4026
  emits: ["update:modelValue", "blur", "focus"],
4027
4027
  setup(a, { emit: t }) {
4028
- const e = a, s = t, { collabOptions: i } = Qt(), r = D((Y) => {
4028
+ const e = a, s = t, { collabOptions: i } = ea(), r = D((Y) => {
4029
4029
  }), o = D(() => {
4030
4030
  }), l = D(null);
4031
4031
  if (i.value.enabled && ve(e.collab)) {
@@ -4073,7 +4073,7 @@ const dp = {
4073
4073
  name: "append",
4074
4074
  fn: V(() => [
4075
4075
  le(Y.$slots, "locked", { userId: l.value }, () => [
4076
- Y.collab ? (q(), K(Wt, {
4076
+ Y.collab ? (q(), K(Gt, {
4077
4077
  key: 0,
4078
4078
  id: l.value,
4079
4079
  users: Y.collab.cachedUsers
@@ -4190,7 +4190,7 @@ const dp = {
4190
4190
  set(b) {
4191
4191
  s("update:modelValue", xe(b));
4192
4192
  }
4193
- }), { collabOptions: r } = Qt(), o = D((b) => {
4193
+ }), { collabOptions: r } = ea(), o = D((b) => {
4194
4194
  }), l = D((b) => {
4195
4195
  }), n = D(() => {
4196
4196
  }), d = D(null);
@@ -4259,7 +4259,7 @@ const dp = {
4259
4259
  name: "append-inner",
4260
4260
  fn: V(() => [
4261
4261
  le(b.$slots, "locked", { userId: d.value }, () => [
4262
- b.collab ? (q(), K(Wt, {
4262
+ b.collab ? (q(), K(Gt, {
4263
4263
  key: 0,
4264
4264
  id: d.value,
4265
4265
  users: b.collab.cachedUsers
@@ -4405,7 +4405,7 @@ const dp = {
4405
4405
  "onClick:clear": z
4406
4406
  }, {
4407
4407
  item: V(({ props: y, item: S }) => [
4408
- m(Je, Dt(y, {
4408
+ m(Je, Kt(y, {
4409
4409
  title: S.raw.title,
4410
4410
  subtitle: S.raw.subtitle
4411
4411
  }), null, 16, ["title", "subtitle"])
@@ -4550,7 +4550,7 @@ const Xp = /* @__PURE__ */ W({
4550
4550
  const t = a, { getJobStatusOption: e } = Yp(), s = _(() => e(t.value));
4551
4551
  return (i, r) => {
4552
4552
  var o;
4553
- return q(), K(Jt, {
4553
+ return q(), K(Zt, {
4554
4554
  color: (o = s.value) == null ? void 0 : o.color,
4555
4555
  label: "",
4556
4556
  size: "small"
@@ -4626,7 +4626,7 @@ const Xp = /* @__PURE__ */ W({
4626
4626
  indeterminate: "",
4627
4627
  class: "mx-1"
4628
4628
  })) : j("", !0)
4629
- ])) : c.disableClick ? (q(), K(Jt, {
4629
+ ])) : c.disableClick ? (q(), K(Zt, {
4630
4630
  key: 2,
4631
4631
  size: c.size,
4632
4632
  label: c.forceRounded ? void 0 : !0,
@@ -4644,7 +4644,7 @@ const Xp = /* @__PURE__ */ W({
4644
4644
  })) : j("", !0)
4645
4645
  ]),
4646
4646
  _: 1
4647
- }, 8, ["size", "label", "closable"])) : (q(), K(Jt, {
4647
+ }, 8, ["size", "label", "closable"])) : (q(), K(Zt, {
4648
4648
  key: 3,
4649
4649
  size: c.size,
4650
4650
  "append-icon": c.openInNew ? p(Pl).CHIP.ICON.LINK_EXTERNAL : p(Pl).CHIP.ICON.LINK,
@@ -4732,7 +4732,7 @@ const sD = /* @__PURE__ */ W({
4732
4732
  },
4733
4733
  setup(a) {
4734
4734
  const t = a, { getLogLevelOption: e } = bp(), s = _(() => e(t.level));
4735
- return (i, r) => s.value ? (q(), K(Jt, {
4735
+ return (i, r) => s.value ? (q(), K(Zt, {
4736
4736
  key: 0,
4737
4737
  color: s.value.color,
4738
4738
  label: "",
@@ -4756,7 +4756,7 @@ const sD = /* @__PURE__ */ W({
4756
4756
  const t = a, { copy: e, isSupported: s } = Pd(), { showSuccess: i } = He(), { t: r } = ee(), o = (l) => {
4757
4757
  Ya(l), s && (oi(t.value) ? e(ku(t.value)).then(() => {
4758
4758
  i(r(t.notifyT));
4759
- }) : zt(t.value) && t.value.length && e(t.value).then(() => {
4759
+ }) : Lt(t.value) && t.value.length && e(t.value).then(() => {
4760
4760
  i(r(t.notifyT));
4761
4761
  }));
4762
4762
  };
@@ -4838,7 +4838,7 @@ const sD = /* @__PURE__ */ W({
4838
4838
  },
4839
4839
  setup(a) {
4840
4840
  const t = a, e = _(() => R(t.color) ? "a-chip-no-link--custom-color" : "");
4841
- return (s, i) => (q(), K(Jt, {
4841
+ return (s, i) => (q(), K(Zt, {
4842
4842
  color: s.color,
4843
4843
  "data-cy": s.dataCy,
4844
4844
  class: he(["a-chip-no-link", e.value]),
@@ -4929,7 +4929,7 @@ function Kp(a, t = !1, e = void 0, s = void 0, i = !1) {
4929
4929
  Nn(() => {
4930
4930
  i || (ve(Y.value) && Y.value(), ve(h.value) && h.value(), ve(A.value) && A.value(), ve(x.value) && x.value(), ve(U.value) && U.value(), ve(z.value) && z.value(), ve(w.value) && w.value(), ve($.value) && $.value());
4931
4931
  });
4932
- const { collabOptions: Te } = Qt(), lt = () => {
4932
+ const { collabOptions: Te } = ea(), lt = () => {
4933
4933
  !Te.value.enabled || R(r.value) || r.value.emit("subscribeCollabRoomInfo", a, (ce) => {
4934
4934
  o.set(a, ce.room);
4935
4935
  });
@@ -4937,10 +4937,10 @@ function Kp(a, t = !1, e = void 0, s = void 0, i = !1) {
4937
4937
  !Te.value.enabled || R(r.value) || r.value.emit("unsubscribeCollabRoomInfo", a, (ce) => {
4938
4938
  o.set(a, ce.room);
4939
4939
  });
4940
- }, pt = async (ce = {}) => new Promise((Ut, Kt) => {
4940
+ }, pt = async (ce = {}) => new Promise((jt, Tt) => {
4941
4941
  var Ma;
4942
- if (!Te.value.enabled || R(r.value)) return Kt(yn.Failed);
4943
- (Ma = r.value) == null || Ma.timeout(5e3).emit("joinCollabRoom", a, ce, (pa, Rs) => pa ? void Kt(yn.Failed) : Kl(Rs) ? (o.set(a, Rs.room), void Ut(Rs.status)) : void Kt(Rs.status));
4942
+ if (!Te.value.enabled || R(r.value)) return Tt(yn.Failed);
4943
+ (Ma = r.value) == null || Ma.timeout(5e3).emit("joinCollabRoom", a, ce, (pa, Rs) => pa ? void Tt(yn.Failed) : Kl(Rs) ? (o.set(a, Rs.room), void jt(Rs.status)) : void Tt(Rs.status));
4944
4944
  }), Ea = () => {
4945
4945
  !Te.value.enabled || R(r.value) || r.value.emit("leaveCollabRoom", a, (ce) => {
4946
4946
  Kl(ce) && o.set(a, ce.room);
@@ -4948,24 +4948,24 @@ function Kp(a, t = !1, e = void 0, s = void 0, i = !1) {
4948
4948
  }, Os = () => {
4949
4949
  var ce;
4950
4950
  !Te.value.enabled || R(r.value) || (ce = r.value) == null || ce.emit("enteredCollabRoom", a);
4951
- }, qi = () => new Promise((ce, Ut) => {
4952
- var Kt;
4951
+ }, qi = () => new Promise((ce, jt) => {
4952
+ var Tt;
4953
4953
  if (!Te.value.enabled || R(r.value))
4954
- return Ut(Ir.Failed);
4955
- (Kt = r.value) == null || Kt.timeout(2e3).emit("requestToJoin", a, (/* @__PURE__ */ new Date()).getTime(), (Ma, pa) => Ma ? void Ut(Ir.Failed) : pa.status === Ir.Ok ? void ce(pa.status) : void Ut(pa.status));
4954
+ return jt(Ir.Failed);
4955
+ (Tt = r.value) == null || Tt.timeout(2e3).emit("requestToJoin", a, (/* @__PURE__ */ new Date()).getTime(), (Ma, pa) => Ma ? void jt(Ir.Failed) : pa.status === Ir.Ok ? void ce(pa.status) : void jt(pa.status));
4956
4956
  }), Ja = (ce) => {
4957
4957
  !Te.value.enabled || R(r.value) || r.value.emit("approveRequestToJoin", a, ce);
4958
4958
  }, qs = (ce) => {
4959
4959
  !Te.value.enabled || R(r.value) || r.value.emit("rejectRequestToJoin", a, ce);
4960
- }, de = async () => new Promise((ce, Ut) => {
4961
- var Kt;
4960
+ }, de = async () => new Promise((ce, jt) => {
4961
+ var Tt;
4962
4962
  if (!Te.value.enabled || R(r.value))
4963
- return Ut(kr.Failed);
4964
- (Kt = r.value) == null || Kt.timeout(2e3).emit(
4963
+ return jt(kr.Failed);
4964
+ (Tt = r.value) == null || Tt.timeout(2e3).emit(
4965
4965
  "requestToTakeModeration",
4966
4966
  a,
4967
4967
  (/* @__PURE__ */ new Date()).getTime(),
4968
- (Ma, pa) => Ma ? void Ut(kr.Failed) : pa.status === kr.Ok ? void ce(pa.status) : void Ut(pa.status)
4968
+ (Ma, pa) => Ma ? void jt(kr.Failed) : pa.status === kr.Ok ? void ce(pa.status) : void jt(pa.status)
4969
4969
  );
4970
4970
  }), ke = () => {
4971
4971
  !Te.value.enabled || R(r.value) || r.value.emit("approveRequestToTakeModeration", a);
@@ -4976,17 +4976,17 @@ function Kp(a, t = !1, e = void 0, s = void 0, i = !1) {
4976
4976
  }, Ne = (ce) => {
4977
4977
  !Te.value.enabled || R(r.value) || r.value.emit("transferModeration", a, ce);
4978
4978
  }, Za = async (ce) => {
4979
- const Ut = { name: "", status: ra.Inactive, users: [], moderator: null };
4980
- return new Promise((Kt) => {
4979
+ const jt = { name: "", status: wt.Inactive, users: [], moderator: null };
4980
+ return new Promise((Tt) => {
4981
4981
  var Ma;
4982
- if (!Te.value.enabled || R(r.value)) return Kt(Ut);
4982
+ if (!Te.value.enabled || R(r.value)) return Tt(jt);
4983
4983
  (Ma = r.value) == null || Ma.timeout(500).emit("fetchRoomsInfo", [ce], (pa, Rs) => {
4984
- if (pa) return void Kt(Ut);
4984
+ if (pa) return void Tt(jt);
4985
4985
  const To = Rs[ce];
4986
- return R(To) && Kt(Ut), R(e) || e(To.users), R(s) || s(), Kt(To);
4986
+ return R(To) && Tt(jt), R(e) || e(To.users), R(s) || s(), Tt(To);
4987
4987
  });
4988
4988
  });
4989
- }, Va = _(() => o.get(a) ?? { name: a, moderator: null, users: [], status: ra.Inactive });
4989
+ }, Va = _(() => o.get(a) ?? { name: a, moderator: null, users: [], status: wt.Inactive });
4990
4990
  t && qe(
4991
4991
  Va,
4992
4992
  (ce) => {
@@ -5077,7 +5077,7 @@ const Tp = { class: "ml-3" }, Ep = { class: "ml-1" }, iD = /* @__PURE__ */ W({
5077
5077
  });
5078
5078
  const k = () => {
5079
5079
  E.value = !1;
5080
- }, w = _(() => z.value === null && e.value.users.length && !e.value.users.includes(b.value ?? 0) && !E.value), y = _(() => t.isEdit && e.value.status === ra.Active && e.value.moderator !== b.value), S = _(() => U.value && e.value.status === ra.Active), $ = _(() => t.isEdit && e.value.status === ra.Active), H = _(() => t.isEdit && e.value.moderator === b.value && e.value.status === ra.Active), G = _(() => !t.isEdit && C.value.has(t.collabRoom) && z.value === null), J = (se) => {
5080
+ }, w = _(() => z.value === null && e.value.users.length && !e.value.users.includes(b.value ?? 0) && !E.value), y = _(() => t.isEdit && e.value.status === wt.Active && e.value.moderator !== b.value), S = _(() => U.value && e.value.status === wt.Active), $ = _(() => t.isEdit && e.value.status === wt.Active), H = _(() => t.isEdit && e.value.moderator === b.value && e.value.status === wt.Active), G = _(() => !t.isEdit && C.value.has(t.collabRoom) && z.value === null), J = (se) => {
5081
5081
  x.value = x.value.filter((Ye) => Ye.userId !== se), P.value = P.value.filter((Ye) => Ye !== se);
5082
5082
  }, ae = async () => {
5083
5083
  try {
@@ -5122,13 +5122,13 @@ const Tp = { class: "ml-3" }, Ep = { class: "ml-1" }, iD = /* @__PURE__ */ W({
5122
5122
  const ot = $e("ABtnSecondary"), nt = $e("ABtnIcon"), Te = $e("ABtnTertiary"), lt = $e("ABtnPrimary");
5123
5123
  return q(), B("div", null, [
5124
5124
  M(I(p(F)("common.collab.moderator")) + ": ", 1),
5125
- p(e).moderator ? (q(), K(Wt, {
5125
+ p(e).moderator ? (q(), K(Gt, {
5126
5126
  id: p(e).moderator,
5127
5127
  key: p(e).moderator,
5128
5128
  users: se.cachedUsers
5129
5129
  }, null, 8, ["id", "users"])) : j("", !0),
5130
5130
  M(" " + I(p(F)("common.collab.users")) + ": ", 1),
5131
- (q(!0), B(Fe, null, je(p(e).users.filter((_e) => _e !== p(e).moderator), (_e) => (q(), K(Wt, {
5131
+ (q(!0), B(Fe, null, je(p(e).users.filter((_e) => _e !== p(e).moderator), (_e) => (q(), K(Gt, {
5132
5132
  id: _e,
5133
5133
  key: _e,
5134
5134
  users: se.cachedUsers
@@ -5189,7 +5189,7 @@ const Tp = { class: "ml-3" }, Ep = { class: "ml-1" }, iD = /* @__PURE__ */ W({
5189
5189
  default: V(() => [
5190
5190
  x.value.length ? (q(), K(Le, { key: 0 }, {
5191
5191
  default: V(() => [
5192
- m(wt, null, {
5192
+ m(kt, null, {
5193
5193
  default: V(() => [
5194
5194
  M(I(p(F)("common.collab.requestToCollaborateText")), 1)
5195
5195
  ]),
@@ -5208,7 +5208,7 @@ const Tp = { class: "ml-3" }, Ep = { class: "ml-1" }, iD = /* @__PURE__ */ W({
5208
5208
  value: _e.userId
5209
5209
  }, {
5210
5210
  prepend: V(() => [
5211
- m(Wt, {
5211
+ m(Gt, {
5212
5212
  id: _e.userId,
5213
5213
  users: se.cachedUsers
5214
5214
  }, null, 8, ["id", "users"])
@@ -5236,7 +5236,7 @@ const Tp = { class: "ml-3" }, Ep = { class: "ml-1" }, iD = /* @__PURE__ */ W({
5236
5236
  ]),
5237
5237
  _: 1
5238
5238
  }),
5239
- m(It, null, {
5239
+ m(_t, null, {
5240
5240
  default: V(() => [
5241
5241
  m(it),
5242
5242
  m(Te, {
@@ -5274,7 +5274,7 @@ const Tp = { class: "ml-3" }, Ep = { class: "ml-1" }, iD = /* @__PURE__ */ W({
5274
5274
  default: V(() => [
5275
5275
  m(Le, null, {
5276
5276
  default: V(() => [
5277
- m(wt, {
5277
+ m(kt, {
5278
5278
  onOnCancel: Ye[1] || (Ye[1] = (_e) => U.value = !1)
5279
5279
  }, {
5280
5280
  default: V(() => [
@@ -5291,7 +5291,7 @@ const Tp = { class: "ml-3" }, Ep = { class: "ml-1" }, iD = /* @__PURE__ */ W({
5291
5291
  link: !1
5292
5292
  }, {
5293
5293
  title: V(() => [
5294
- m(Wt, {
5294
+ m(Gt, {
5295
5295
  id: _e,
5296
5296
  users: se.cachedUsers
5297
5297
  }, null, 8, ["id", "users"])
@@ -5326,7 +5326,7 @@ const Tp = { class: "ml-3" }, Ep = { class: "ml-1" }, iD = /* @__PURE__ */ W({
5326
5326
  ]),
5327
5327
  _: 1
5328
5328
  }),
5329
- m(It, null, {
5329
+ m(_t, null, {
5330
5330
  default: V(() => [
5331
5331
  m(it),
5332
5332
  m(Te, {
@@ -5380,7 +5380,7 @@ const Tp = { class: "ml-3" }, Ep = { class: "ml-1" }, iD = /* @__PURE__ */ W({
5380
5380
  default: V(() => [
5381
5381
  m(Le, null, {
5382
5382
  default: V(() => [
5383
- m(wt, null, {
5383
+ m(kt, null, {
5384
5384
  default: V(() => [
5385
5385
  M(I(p(F)("common.collab.requestToTakeModerationTextTitle")), 1)
5386
5386
  ]),
@@ -5392,7 +5392,7 @@ const Tp = { class: "ml-3" }, Ep = { class: "ml-1" }, iD = /* @__PURE__ */ W({
5392
5392
  default: V(() => [
5393
5393
  m(Je, null, {
5394
5394
  prepend: V(() => [
5395
- m(Wt, {
5395
+ m(Gt, {
5396
5396
  id: T.value.userId,
5397
5397
  users: se.cachedUsers
5398
5398
  }, null, 8, ["id", "users"])
@@ -5408,7 +5408,7 @@ const Tp = { class: "ml-3" }, Ep = { class: "ml-1" }, iD = /* @__PURE__ */ W({
5408
5408
  ]),
5409
5409
  _: 1
5410
5410
  }),
5411
- m(It, null, {
5411
+ m(_t, null, {
5412
5412
  default: V(() => [
5413
5413
  m(it),
5414
5414
  m(Te, { onClick: Q }, {
@@ -5447,7 +5447,7 @@ const Tp = { class: "ml-3" }, Ep = { class: "ml-1" }, iD = /* @__PURE__ */ W({
5447
5447
  default: V(() => [
5448
5448
  m(Le, null, {
5449
5449
  default: V(() => [
5450
- m(wt, {
5450
+ m(kt, {
5451
5451
  onOnCancel: Ye[5] || (Ye[5] = (_e) => p(C).delete(t.collabRoom))
5452
5452
  }, {
5453
5453
  default: V(() => [
@@ -5461,7 +5461,7 @@ const Tp = { class: "ml-3" }, Ep = { class: "ml-1" }, iD = /* @__PURE__ */ W({
5461
5461
  ]),
5462
5462
  _: 1
5463
5463
  }),
5464
- m(It, null, {
5464
+ m(_t, null, {
5465
5465
  default: V(() => [
5466
5466
  m(it),
5467
5467
  m(Te, {
@@ -5751,13 +5751,13 @@ const Tp = { class: "ml-3" }, Ep = { class: "ml-1" }, iD = /* @__PURE__ */ W({
5751
5751
  "data-cy": "delete-panel"
5752
5752
  }, {
5753
5753
  default: V(() => [
5754
- m(wt, { onOnCancel: d }, {
5754
+ m(kt, { onOnCancel: d }, {
5755
5755
  default: V(() => [
5756
5756
  M(I(p(u)(f.dialogMessageT)), 1)
5757
5757
  ]),
5758
5758
  _: 1
5759
5759
  }),
5760
- m(It, null, {
5760
+ m(_t, null, {
5761
5761
  default: V(() => [
5762
5762
  m(it),
5763
5763
  m(v, {
@@ -5992,7 +5992,7 @@ const Tp = { class: "ml-3" }, Ep = { class: "ml-1" }, iD = /* @__PURE__ */ W({
5992
5992
  const t = a, { t: e } = ee(), { copy: s, isSupported: i } = Pd(), { showSuccess: r } = He(), o = (l) => {
5993
5993
  Ya(l), oi(t.id) && t.id > 0 ? s(ku(t.id)).then(() => {
5994
5994
  r(e(t.notifyT));
5995
- }) : zt(t.id) && t.id.length && s(t.id).then(() => {
5995
+ }) : Lt(t.id) && t.id.length && s(t.id).then(() => {
5996
5996
  r(e(t.notifyT));
5997
5997
  });
5998
5998
  };
@@ -6214,24 +6214,24 @@ const Tp = { class: "ml-3" }, Ep = { class: "ml-1" }, iD = /* @__PURE__ */ W({
6214
6214
  }, 8, ["variant", "disabled", "data-cy", "color", "rounded", "size"])
6215
6215
  ], 2));
6216
6216
  }
6217
- }), Bt = {
6217
+ }), Pt = {
6218
6218
  Light: "light",
6219
6219
  Dark: "dark",
6220
6220
  Auto: "auto"
6221
6221
  }, Hs = {
6222
6222
  Light: "light",
6223
6223
  Dark: "dark"
6224
- }, xn = Od("theme", Bt.Light), Su = "(prefers-color-scheme: dark)", Nr = D(
6225
- Object.values(Bt).some((a) => a === xn.value) ? xn.value : Bt.Light
6224
+ }, xn = Od("theme", Pt.Light), Su = "(prefers-color-scheme: dark)", Nr = D(
6225
+ Object.values(Pt).some((a) => a === xn.value) ? xn.value : Pt.Light
6226
6226
  ), Si = D(Hs.Light), Du = D(window.matchMedia && window.matchMedia(Su).matches), Di = () => {
6227
6227
  switch (Nr.value) {
6228
- case Bt.Auto:
6228
+ case Pt.Auto:
6229
6229
  Si.value = Du.value ? Hs.Dark : Hs.Light;
6230
6230
  break;
6231
- case Bt.Light:
6231
+ case Pt.Light:
6232
6232
  Si.value = Hs.Light;
6233
6233
  break;
6234
- case Bt.Dark:
6234
+ case Pt.Dark:
6235
6235
  Si.value = Hs.Dark;
6236
6236
  break;
6237
6237
  }
@@ -6246,17 +6246,17 @@ window.matchMedia(Su).addEventListener("change", (a) => {
6246
6246
  const Bp = _(() => Si.value === Hs.Light ? "white" : "#1A1A1A");
6247
6247
  function Ji() {
6248
6248
  const a = () => {
6249
- zo(Bt.Auto), Di();
6249
+ zo(Pt.Auto), Di();
6250
6250
  }, t = () => {
6251
- zo(Bt.Dark), Di();
6251
+ zo(Pt.Dark), Di();
6252
6252
  }, e = () => {
6253
- zo(Bt.Light), Di();
6253
+ zo(Pt.Light), Di();
6254
6254
  }, s = () => {
6255
6255
  switch (Nr.value) {
6256
- case Bt.Light:
6256
+ case Pt.Light:
6257
6257
  t();
6258
6258
  break;
6259
- case Bt.Dark:
6259
+ case Pt.Dark:
6260
6260
  a();
6261
6261
  break;
6262
6262
  default:
@@ -6284,7 +6284,7 @@ const Pp = { key: 0 }, Op = { key: 1 }, Rp = { key: 2 }, VD = /* @__PURE__ */ W(
6284
6284
  "close-on-content-click": ""
6285
6285
  }, {
6286
6286
  activator: V(({ props: d }) => [
6287
- m(ie, Dt({
6287
+ m(ie, Kt({
6288
6288
  class: "pl-1",
6289
6289
  rounded: "pill"
6290
6290
  }, d, {
@@ -6292,21 +6292,21 @@ const Pp = { key: 0 }, Op = { key: 1 }, Rp = { key: 2 }, VD = /* @__PURE__ */ W(
6292
6292
  "data-cy": "settings-theme"
6293
6293
  }), {
6294
6294
  default: V(() => [
6295
- p(i) === p(Bt).Auto ? (q(), B("div", Pp, [
6295
+ p(i) === p(Pt).Auto ? (q(), B("div", Pp, [
6296
6296
  m(re, {
6297
6297
  class: "mr-1",
6298
6298
  icon: "mdi-brightness-auto",
6299
6299
  size: 32
6300
6300
  }),
6301
6301
  M(I(p(r)("common.system.theme.auto")), 1)
6302
- ])) : p(i) === p(Bt).Light ? (q(), B("div", Op, [
6302
+ ])) : p(i) === p(Pt).Light ? (q(), B("div", Op, [
6303
6303
  m(re, {
6304
6304
  class: "mr-1",
6305
6305
  icon: "mdi-brightness-7",
6306
6306
  size: 32
6307
6307
  }),
6308
6308
  M(I(p(r)("common.system.theme.light")), 1)
6309
- ])) : p(i) === p(Bt).Dark ? (q(), B("div", Rp, [
6309
+ ])) : p(i) === p(Pt).Dark ? (q(), B("div", Rp, [
6310
6310
  m(re, {
6311
6311
  class: "mr-1",
6312
6312
  icon: "mdi-brightness-4",
@@ -6489,7 +6489,7 @@ const ev = /* @__PURE__ */ Ha(Jp, [["render", Qp]]), tv = { class: "flag" }, Ol
6489
6489
  ));
6490
6490
  return (Y, v) => (q(), K(ua, null, {
6491
6491
  activator: V(({ props: g }) => [
6492
- m(ie, Dt({
6492
+ m(ie, Kt({
6493
6493
  class: "pl-1",
6494
6494
  rounded: "pill"
6495
6495
  }, g, {
@@ -6834,7 +6834,7 @@ const iv = { class: "text-center w-100 text-caption pb-1" }, vD = /* @__PURE__ *
6834
6834
  ]),
6835
6835
  _: 1
6836
6836
  }),
6837
- m(It, null, {
6837
+ m(_t, null, {
6838
6838
  default: V(() => [
6839
6839
  m(it),
6840
6840
  m(ie, {
@@ -7009,7 +7009,7 @@ const iv = { class: "text-center w-100 text-caption pb-1" }, vD = /* @__PURE__ *
7009
7009
  props: y,
7010
7010
  item: S
7011
7011
  }, () => [
7012
- m(Jt, Dt(y, {
7012
+ m(Zt, Kt(y, {
7013
7013
  text: S.title
7014
7014
  }), null, 16, ["text"])
7015
7015
  ])
@@ -7592,10 +7592,10 @@ function go() {
7592
7592
  }, s = (u, c) => {
7593
7593
  !te(u) && u.length > 0 && l("order[" + u + "]", c ? "desc" : "asc");
7594
7594
  }, i = (u) => Yn(u) ? u ? "1" : "0" : u, r = (u, c, f) => {
7595
- zt(f) && f.length === 0 || a.value.push("filter_" + u + "[" + c + "]=" + i(f));
7595
+ Lt(f) && f.length === 0 || a.value.push("filter_" + u + "[" + c + "]=" + i(f));
7596
7596
  }, o = (u) => {
7597
7597
  const c = u.model;
7598
- return te(c) ? u.mandatory ? (u.model = u.default, u.default) : null : zt(c) ? c.length === 0 ? u.mandatory ? (u.model = u.default, u.default) : null : encodeURIComponent(c) : We(c) ? c.length === 0 ? u.mandatory ? (u.model = u.default, u.default) : null : c.map((f) => zt(f) ? encodeURIComponent(f) : f).join(",") : oi(c) || Yn(c) ? c : null;
7598
+ return te(c) ? u.mandatory ? (u.model = u.default, u.default) : null : Lt(c) ? c.length === 0 ? u.mandatory ? (u.model = u.default, u.default) : null : encodeURIComponent(c) : We(c) ? c.length === 0 ? u.mandatory ? (u.model = u.default, u.default) : null : c.map((f) => Lt(f) ? encodeURIComponent(f) : f).join(",") : oi(c) || Yn(c) ? c : null;
7599
7599
  }, l = (u, c) => {
7600
7600
  a.value.push(u + "=" + c);
7601
7601
  };
@@ -7641,19 +7641,19 @@ const Mu = (a) => Gi(a) && Object.hasOwn(a, "totalCount"), $u = (a) => Gi(a) &&
7641
7641
  }
7642
7642
  return c.status === La ? n([]) : d(new bt());
7643
7643
  }).catch((c) => Na(c) ? d(new Sa(c)) : Da(c) ? d(new Ka(c, r, o, c)) : ja(c) ? d(new Ta(c, c)) : d(new bt(c)));
7644
- }), wv = "/adm/v1/asset-licence", tl = (a, t) => Nt(a, wv + "/:id", { id: t }, "coreDam", "assetLicence"), Bu = "/adm/v1/asset-custom-form", Pu = "assetCustomForm", mr = (a, t, e) => Nt(
7644
+ }), wv = "/adm/v1/asset-licence", tl = (a, t) => Ut(a, wv + "/:id", { id: t }, "coreDam", "assetLicence"), Bu = "/adm/v1/asset-custom-form", Pu = "assetCustomForm", mr = (a, t, e) => Ut(
7645
7645
  a,
7646
7646
  Bu + "/ext-system/:extSystem/type/:assetType/element?order[position]=asc&limit=100",
7647
7647
  { extSystem: t, assetType: e },
7648
7648
  Be,
7649
7649
  Pu
7650
- ), kv = (a, t) => Nt(
7650
+ ), kv = (a, t) => Ut(
7651
7651
  a,
7652
7652
  Bu + "/distribution-service/:distributionService/element?order[position]=asc&limit=100",
7653
7653
  { distributionService: t },
7654
7654
  Be,
7655
7655
  Pu
7656
- ), Ou = "/adm/v1/configuration", Iv = "/pub", _v = Iv + "/v1/configuration", al = "settings", Sv = (a) => Nt(a, _v, {}, Be, al), Dv = (a) => Nt(a, Ou, {}, Be, al), Kv = (a, t) => Nt(t, Ou + "/ext-system/" + a, {}, Be, al), Tv = {
7656
+ ), Ou = "/adm/v1/configuration", Iv = "/pub", _v = Iv + "/v1/configuration", al = "settings", Sv = (a) => Ut(a, _v, {}, Be, al), Dv = (a) => Ut(a, Ou, {}, Be, al), Kv = (a, t) => Ut(t, Ou + "/ext-system/" + a, {}, Be, al), Tv = {
7657
7657
  None: "none",
7658
7658
  AtLeastOne: "at_least_one",
7659
7659
  OneFromType: "one_from_type",
@@ -7713,7 +7713,7 @@ const Mu = (a) => Gi(a) && Object.hasOwn(a, "totalCount"), $u = (a) => Gi(a) &&
7713
7713
  reset: l
7714
7714
  };
7715
7715
  });
7716
- function ea(a = void 0) {
7716
+ function ta(a = void 0) {
7717
7717
  const t = Bs();
7718
7718
  function e(F) {
7719
7719
  console.error(F);
@@ -7920,7 +7920,7 @@ const pi = "/adm/v1/asset", Lo = 10, qo = "asset", Be = "coreDam", Ur = "dam", N
7920
7920
  s,
7921
7921
  Be,
7922
7922
  qo
7923
- ), ns = (a, t) => Nt(a, pi + "/:id", { id: t }, Be, qo), Yo = (a, t) => Nt(a, pi + "/asset-file/:id", { id: t }, Be, qo), jr = (a, t) => new Promise((e, s) => {
7923
+ ), ns = (a, t) => Ut(a, pi + "/:id", { id: t }, Be, qo), Yo = (a, t) => Ut(a, pi + "/asset-file/:id", { id: t }, Be, qo), jr = (a, t) => new Promise((e, s) => {
7924
7924
  const i = Pv(t);
7925
7925
  Bv(a, i).then((r) => {
7926
7926
  if (i.length === 0)
@@ -7982,7 +7982,7 @@ function Pv(a) {
7982
7982
  }), t;
7983
7983
  }
7984
7984
  const { showUnknownError: Ov, showApiValidationError: Rv } = He(), zv = (a, t, e) => {
7985
- const { getDamConfigAssetCustomFormElements: s } = ea(), i = s(e);
7985
+ const { getDamConfigAssetCustomFormElements: s } = ta(), i = s(e);
7986
7986
  if (R(i))
7987
7987
  throw new Error("Custom form elements must be initialised.");
7988
7988
  if (!a || !a.response || !a.response.data) return;
@@ -8012,7 +8012,7 @@ const { showUnknownError: Ov, showApiValidationError: Rv } = He(), zv = (a, t, e
8012
8012
  }).catch((o) => Na(o) ? i(new Sa(o)) : Da(o) ? (zv(o, t.attributes.assetType, e), i(new Ka(o, Be, qo, o))) : ja(o) ? i(new Ta(o, o)) : i(new bt(o)));
8013
8013
  }), Yi = bv(), Ys = $s(), Uo = D(!1);
8014
8014
  function vi(a = "default") {
8015
- const { damClient: t } = ut(a), e = Fo(), { selectedCount: s, selectedAssets: i, assetListItems: r, loader: o } = St(e), { resetFilter: l } = Vi(), { showErrorsDefault: n } = He(), d = async () => {
8015
+ const { damClient: t } = ut(a), e = Fo(), { selectedCount: s, selectedAssets: i, assetListItems: r, loader: o } = Dt(e), { resetFilter: l } = Vi(), { showErrorsDefault: n } = He(), d = async () => {
8016
8016
  Ys.page = 1;
8017
8017
  try {
8018
8018
  e.showLoader(), e.setList(
@@ -8136,7 +8136,7 @@ const Ss = "data:image/jpeg;base64,/9j/4QZGRXhpZgAATU0AKgAAAAgADAEAAAMAAAABCgAAA
8136
8136
  return (n, d) => n.assetStatus === p(dt).WithFile && n.src ? (q(), B("div", {
8137
8137
  key: 0,
8138
8138
  class: "anzu-common-asset-image anzu-common-asset-image--img position-relative",
8139
- style: $t({ width: n.width + "px" })
8139
+ style: Bt({ width: n.width + "px" })
8140
8140
  }, [
8141
8141
  N("img", {
8142
8142
  class: "anzu-common-asset-image__img",
@@ -8144,13 +8144,13 @@ const Ss = "data:image/jpeg;base64,/9j/4QZGRXhpZgAATU0AKgAAAAgADAEAAAMAAAABCgAAA
8144
8144
  width: n.width,
8145
8145
  height: n.height,
8146
8146
  alt: "",
8147
- style: $t("background-color:" + n.backgroundColor),
8147
+ style: Bt("background-color:" + n.backgroundColor),
8148
8148
  onOnerror: i
8149
8149
  }, null, 44, Nv),
8150
8150
  l.value ? (q(), B("div", Uv, [
8151
8151
  N("div", {
8152
8152
  class: "anzu-common-asset-image__icon-circle",
8153
- style: $t({ padding: n.iconSize / 4 + "px" })
8153
+ style: Bt({ padding: n.iconSize / 4 + "px" })
8154
8154
  }, [
8155
8155
  r.value.length ? (q(), K(re, {
8156
8156
  key: 0,
@@ -8163,13 +8163,13 @@ const Ss = "data:image/jpeg;base64,/9j/4QZGRXhpZgAATU0AKgAAAAgADAEAAAMAAAABCgAAA
8163
8163
  ])) : j("", !0)
8164
8164
  ], 4)) : (q(), B("div", {
8165
8165
  key: 1,
8166
- style: $t([{ height: n.fallbackHeight + "px", backgroundColor: n.backgroundColor }, { width: "100%" }]),
8166
+ style: Bt([{ height: n.fallbackHeight + "px", backgroundColor: n.backgroundColor }, { width: "100%" }]),
8167
8167
  class: "asset-image asset-image--placeholder d-flex align-center justify-center"
8168
8168
  }, [
8169
8169
  l.value ? (q(), B("div", jv, [
8170
8170
  N("div", {
8171
8171
  class: "asset-image__icon-circle",
8172
- style: $t({ padding: n.iconSize / 4 + "px" })
8172
+ style: Bt({ padding: n.iconSize / 4 + "px" })
8173
8173
  }, [
8174
8174
  r.value.length ? (q(), K(re, {
8175
8175
  key: 0,
@@ -8595,7 +8595,7 @@ const rh = { class: "d-flex flex-column w-100 px-1 align-center" }, oh = { class
8595
8595
  }), Yh = { class: "subject-select-filter" }, Xh = { class: "subject-select-filter__content" }, Ah = { class: "subject-select-filter__actions" }, yh = /* @__PURE__ */ W({
8596
8596
  __name: "AssetSelectFilter",
8597
8597
  setup(a) {
8598
- const { t } = ee(), { fetchAssetList: e, resetAssetList: s, filterUnTouch: i, filterIsTouched: r } = vi(), o = Fo(), { selectedLicenceId: l, selectConfig: n } = St(o), d = () => {
8598
+ const { t } = ee(), { fetchAssetList: e, resetAssetList: s, filterUnTouch: i, filterIsTouched: r } = vi(), o = Fo(), { selectedLicenceId: l, selectConfig: n } = Dt(o), d = () => {
8599
8599
  i(), e();
8600
8600
  }, u = () => {
8601
8601
  s(), i();
@@ -8708,7 +8708,7 @@ const Ch = {
8708
8708
  class: "w-100 d-flex align-center justify-center"
8709
8709
  }, xh = { class: "subject-select__sidebar system-border-r" }, wh = { class: "subject-select__content" }, kh = { class: "d-flex w-100 align-center justify-center pa-4" }, Ih = { class: "subject-select__actions system-border-t" }, _h = { key: 0 }, Sh = { key: 1 }, Dh = { key: 2 }, ju = /* @__PURE__ */ W({
8710
8710
  __name: "AAssetSelect",
8711
- props: /* @__PURE__ */ _t({
8711
+ props: /* @__PURE__ */ St({
8712
8712
  assetType: {},
8713
8713
  minCount: {},
8714
8714
  maxCount: {},
@@ -8720,7 +8720,7 @@ const Ch = {
8720
8720
  modelValue: { type: Boolean, default: !1, required: !1 },
8721
8721
  modelModifiers: {}
8722
8722
  }),
8723
- emits: /* @__PURE__ */ _t(["onConfirm"], ["update:modelValue"]),
8723
+ emits: /* @__PURE__ */ St(["onConfirm"], ["update:modelValue"]),
8724
8724
  setup(a, { expose: t, emit: e }) {
8725
8725
  const s = a, i = e, r = qa(a, "modelValue"), o = D(!1), { t: l } = ee(), {
8726
8726
  damClient: n,
@@ -8731,7 +8731,7 @@ const Ch = {
8731
8731
  resetAssetList: Y,
8732
8732
  getSelectedData: v,
8733
8733
  initStoreContext: g
8734
- } = vi(), { getOrLoadDamConfigExtSystemByLicences: h } = ea(n), C = vt([]), { openSidebar: F, sidebarLeft: A } = Nu(), { showErrorT: X } = He(), b = () => {
8734
+ } = vi(), { getOrLoadDamConfigExtSystemByLicences: h } = ta(n), C = vt([]), { openSidebar: F, sidebarLeft: A } = Nu(), { showErrorT: X } = He(), b = () => {
8735
8735
  let z = xe(C.value);
8736
8736
  if (s.skipCurrentUserCheck || (z = bh(C.value)), z.length === 0) {
8737
8737
  X("common.assetSelect.error.unallowedLicence");
@@ -8794,7 +8794,7 @@ const Ch = {
8794
8794
  class: "subject-select__card"
8795
8795
  }, {
8796
8796
  default: V(() => [
8797
- m(wt, {
8797
+ m(kt, {
8798
8798
  class: "subject-select__toolbar system-border-b",
8799
8799
  onOnCancel: x
8800
8800
  }, {
@@ -8978,7 +8978,7 @@ function ga(a, t, e, s) {
8978
8978
  return null;
8979
8979
  }
8980
8980
  var Gl = /\s+/g;
8981
- function jt(a, t, e) {
8981
+ function Ht(a, t, e) {
8982
8982
  if (a && t)
8983
8983
  if (a.classList)
8984
8984
  a.classList[e ? "add" : "remove"](t);
@@ -9071,7 +9071,7 @@ function il(a, t) {
9071
9071
  e = e.previousElementSibling;
9072
9072
  return e || null;
9073
9073
  }
9074
- function ia(a, t) {
9074
+ function ra(a, t) {
9075
9075
  var e = 0;
9076
9076
  if (!a || !a.parentNode)
9077
9077
  return -1;
@@ -9151,7 +9151,7 @@ function ac(a, t, e) {
9151
9151
  }
9152
9152
  }), s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
9153
9153
  }
9154
- var Pt = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
9154
+ var Ot = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
9155
9155
  function Oh() {
9156
9156
  var a = [], t;
9157
9157
  return {
@@ -9270,7 +9270,7 @@ var zs = [], Ho = {
9270
9270
  };
9271
9271
  function Lh(a) {
9272
9272
  var t = a.sortable, e = a.rootEl, s = a.name, i = a.targetEl, r = a.cloneEl, o = a.toEl, l = a.fromEl, n = a.oldIndex, d = a.newIndex, u = a.oldDraggableIndex, c = a.newDraggableIndex, f = a.originalEvent, Y = a.putSortable, v = a.extraEventProperties;
9273
- if (t = t || e && e[Pt], !!t) {
9273
+ if (t = t || e && e[Ot], !!t) {
9274
9274
  var g, h = t.options, C = "on" + s.charAt(0).toUpperCase() + s.substr(1);
9275
9275
  window.CustomEvent && !Ga && !Zi ? g = new CustomEvent(s, {
9276
9276
  bubbles: !0,
@@ -9282,7 +9282,7 @@ function Lh(a) {
9282
9282
  e && e.dispatchEvent(g), h[C] && h[C].call(t, g);
9283
9283
  }
9284
9284
  }
9285
- var Nh = ["evt"], Tt = function(t, e) {
9285
+ var Nh = ["evt"], Et = function(t, e) {
9286
9286
  var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = s.evt, r = Eh(s, Nh);
9287
9287
  Qi.pluginEvent.bind(Ce)(t, e, wa({
9288
9288
  dragEl: oe,
@@ -9299,7 +9299,7 @@ var Nh = ["evt"], Tt = function(t, e) {
9299
9299
  originalEvent: i,
9300
9300
  oldIndex: Ws,
9301
9301
  oldDraggableIndex: Ei,
9302
- newIndex: Ht,
9302
+ newIndex: Wt,
9303
9303
  newDraggableIndex: ts,
9304
9304
  hideGhostForTarget: oc,
9305
9305
  unhideGhostForTarget: nc,
@@ -9310,7 +9310,7 @@ var Nh = ["evt"], Tt = function(t, e) {
9310
9310
  as = !1;
9311
9311
  },
9312
9312
  dispatchSortableEvent: function(l) {
9313
- kt({
9313
+ It({
9314
9314
  sortable: e,
9315
9315
  name: l,
9316
9316
  originalEvent: i
@@ -9318,7 +9318,7 @@ var Nh = ["evt"], Tt = function(t, e) {
9318
9318
  }
9319
9319
  }, r));
9320
9320
  };
9321
- function kt(a) {
9321
+ function It(a) {
9322
9322
  Lh(wa({
9323
9323
  putSortable: At,
9324
9324
  cloneEl: st,
@@ -9326,11 +9326,11 @@ function kt(a) {
9326
9326
  rootEl: Ze,
9327
9327
  oldIndex: Ws,
9328
9328
  oldDraggableIndex: Ei,
9329
- newIndex: Ht,
9329
+ newIndex: Wt,
9330
9330
  newDraggableIndex: ts
9331
9331
  }, a));
9332
9332
  }
9333
- var oe, rt, Ie, Ze, ks, Kr, st, as, Ws, Ht, Ei, ts, pr, At, js = !1, Wr = !1, Gr = [], Xs, ha, Wo, Go, Ql, ed, wi, Ls, Mi, $i = !1, vr = !1, Tr, Ct, Jo = [], wn = !1, Jr = [], Ao = typeof document < "u", hr = Hu, td = Zi || Ga ? "cssFloat" : "float", Uh = Ao && !Wu && !Hu && "draggable" in document.createElement("div"), sc = function() {
9333
+ var oe, rt, Ie, Ze, ks, Kr, st, as, Ws, Wt, Ei, ts, pr, At, js = !1, Wr = !1, Gr = [], Xs, ha, Wo, Go, Ql, ed, wi, Ls, Mi, $i = !1, vr = !1, Tr, Ct, Jo = [], wn = !1, Jr = [], Ao = typeof document < "u", hr = Hu, td = Zi || Ga ? "cssFloat" : "float", Uh = Ao && !Wu && !Hu && "draggable" in document.createElement("div"), sc = function() {
9334
9334
  if (Ao) {
9335
9335
  if (Ga)
9336
9336
  return !1;
@@ -9354,7 +9354,7 @@ var oe, rt, Ie, Ze, ks, Kr, st, as, Ws, Ht, Ei, ts, pr, At, js = !1, Wr = !1, Gr
9354
9354
  }, Hh = function(t, e) {
9355
9355
  var s;
9356
9356
  return Gr.some(function(i) {
9357
- var r = i[Pt].options.emptyInsertThreshold;
9357
+ var r = i[Ot].options.emptyInsertThreshold;
9358
9358
  if (!(!r || il(i))) {
9359
9359
  var o = mt(i), l = t >= o.left - r && t <= o.right + r, n = e >= o.top - r && e <= o.bottom + r;
9360
9360
  if (l && n)
@@ -9398,16 +9398,16 @@ var As = function(t) {
9398
9398
  var s = {};
9399
9399
  for (var i in t)
9400
9400
  t.hasOwnProperty(i) && (s[i] = t[i]);
9401
- s.target = s.rootEl = e, s.preventDefault = void 0, s.stopPropagation = void 0, e[Pt]._onDragOver(s);
9401
+ s.target = s.rootEl = e, s.preventDefault = void 0, s.stopPropagation = void 0, e[Ot]._onDragOver(s);
9402
9402
  }
9403
9403
  }
9404
9404
  }, Wh = function(t) {
9405
- oe && oe.parentNode[Pt]._isOutsideThisEl(t.target);
9405
+ oe && oe.parentNode[Ot]._isOutsideThisEl(t.target);
9406
9406
  };
9407
9407
  function Ce(a, t) {
9408
9408
  if (!(a && a.nodeType && a.nodeType === 1))
9409
9409
  throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(a));
9410
- this.el = a, this.options = t = Oa({}, t), a[Pt] = this;
9410
+ this.el = a, this.options = t = Oa({}, t), a[Ot] = this;
9411
9411
  var e = {
9412
9412
  group: null,
9413
9413
  sort: !0,
@@ -9474,30 +9474,30 @@ Ce.prototype = /** @lends Sortable.prototype */
9474
9474
  if (t.cancelable) {
9475
9475
  var e = this, s = this.el, i = this.options, r = i.preventOnFilter, o = t.type, l = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, n = (l || t).target, d = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || n, u = i.filter;
9476
9476
  if (sF(s), !oe && !(/mousedown|pointerdown/.test(o) && t.button !== 0 || i.disabled) && !d.isContentEditable && !(!this.nativeDraggable && Ki && n && n.tagName.toUpperCase() === "SELECT") && (n = ga(n, i.draggable, s, !1), !(n && n.animated) && Kr !== n)) {
9477
- if (Ws = ia(n), Ei = ia(n, i.draggable), typeof u == "function") {
9477
+ if (Ws = ra(n), Ei = ra(n, i.draggable), typeof u == "function") {
9478
9478
  if (u.call(this, t, n, this)) {
9479
- kt({
9479
+ It({
9480
9480
  sortable: e,
9481
9481
  rootEl: d,
9482
9482
  name: "filter",
9483
9483
  targetEl: n,
9484
9484
  toEl: s,
9485
9485
  fromEl: s
9486
- }), Tt("filter", e, {
9486
+ }), Et("filter", e, {
9487
9487
  evt: t
9488
9488
  }), r && t.cancelable && t.preventDefault();
9489
9489
  return;
9490
9490
  }
9491
9491
  } else if (u && (u = u.split(",").some(function(c) {
9492
9492
  if (c = ga(d, c.trim(), s, !1), c)
9493
- return kt({
9493
+ return It({
9494
9494
  sortable: e,
9495
9495
  rootEl: c,
9496
9496
  name: "filter",
9497
9497
  targetEl: n,
9498
9498
  fromEl: s,
9499
9499
  toEl: s
9500
- }), Tt("filter", e, {
9500
+ }), Et("filter", e, {
9501
9501
  evt: t
9502
9502
  }), !0;
9503
9503
  }), u)) {
@@ -9517,20 +9517,20 @@ Ce.prototype = /** @lends Sortable.prototype */
9517
9517
  clientX: (e || t).clientX,
9518
9518
  clientY: (e || t).clientY
9519
9519
  }, Ql = Xs.clientX - d.left, ed = Xs.clientY - d.top, this._lastX = (e || t).clientX, this._lastY = (e || t).clientY, oe.style["will-change"] = "all", n = function() {
9520
- if (Tt("delayEnded", i, {
9520
+ if (Et("delayEnded", i, {
9521
9521
  evt: t
9522
9522
  }), Ce.eventCanceled) {
9523
9523
  i._onDrop();
9524
9524
  return;
9525
9525
  }
9526
- i._disableDelayedDragEvents(), !Wl && i.nativeDraggable && (oe.draggable = !0), i._triggerDragStart(t, e), kt({
9526
+ i._disableDelayedDragEvents(), !Wl && i.nativeDraggable && (oe.draggable = !0), i._triggerDragStart(t, e), It({
9527
9527
  sortable: i,
9528
9528
  name: "choose",
9529
9529
  originalEvent: t
9530
- }), jt(oe, o.chosenClass, !0);
9530
+ }), Ht(oe, o.chosenClass, !0);
9531
9531
  }, o.ignore.split(",").forEach(function(u) {
9532
9532
  Zu(oe, u.trim(), Zo);
9533
- }), ze(l, "dragover", As), ze(l, "mousemove", As), ze(l, "touchmove", As), ze(l, "mouseup", i._onDrop), ze(l, "touchend", i._onDrop), ze(l, "touchcancel", i._onDrop), Wl && this.nativeDraggable && (this.options.touchStartThreshold = 4, oe.draggable = !0), Tt("delayStart", this, {
9533
+ }), ze(l, "dragover", As), ze(l, "mousemove", As), ze(l, "touchmove", As), ze(l, "mouseup", i._onDrop), ze(l, "touchend", i._onDrop), ze(l, "touchcancel", i._onDrop), Wl && this.nativeDraggable && (this.options.touchStartThreshold = 4, oe.draggable = !0), Et("delayStart", this, {
9534
9534
  evt: t
9535
9535
  }), o.delay && (!o.delayOnTouchOnly || e) && (!this.nativeDraggable || !(Zi || Ga))) {
9536
9536
  if (Ce.eventCanceled) {
@@ -9564,11 +9564,11 @@ Ce.prototype = /** @lends Sortable.prototype */
9564
9564
  },
9565
9565
  _dragStarted: function(t, e) {
9566
9566
  if (js = !1, Ze && oe) {
9567
- Tt("dragStarted", this, {
9567
+ Et("dragStarted", this, {
9568
9568
  evt: e
9569
9569
  }), this.nativeDraggable && ze(document, "dragover", Wh);
9570
9570
  var s = this.options;
9571
- !t && jt(oe, s.dragClass, !1), jt(oe, s.ghostClass, !0), Ce.active = this, t && this._appendGhost(), kt({
9571
+ !t && Ht(oe, s.dragClass, !1), Ht(oe, s.ghostClass, !0), Ce.active = this, t && this._appendGhost(), It({
9572
9572
  sortable: this,
9573
9573
  name: "start",
9574
9574
  originalEvent: e
@@ -9581,11 +9581,11 @@ Ce.prototype = /** @lends Sortable.prototype */
9581
9581
  this._lastX = ha.clientX, this._lastY = ha.clientY, oc();
9582
9582
  for (var t = document.elementFromPoint(ha.clientX, ha.clientY), e = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(ha.clientX, ha.clientY), t !== e); )
9583
9583
  e = t;
9584
- if (oe.parentNode[Pt]._isOutsideThisEl(t), e)
9584
+ if (oe.parentNode[Ot]._isOutsideThisEl(t), e)
9585
9585
  do {
9586
- if (e[Pt]) {
9586
+ if (e[Ot]) {
9587
9587
  var s = void 0;
9588
- if (s = e[Pt]._onDragOver({
9588
+ if (s = e[Ot]._onDragOver({
9589
9589
  clientX: ha.clientX,
9590
9590
  clientY: ha.clientY,
9591
9591
  target: t,
@@ -9629,30 +9629,30 @@ Ce.prototype = /** @lends Sortable.prototype */
9629
9629
  Ct = Ct.parentNode;
9630
9630
  Ct !== document.body && Ct !== document.documentElement ? (Ct === document && (Ct = ba()), e.top += Ct.scrollTop, e.left += Ct.scrollLeft) : Ct = ba(), Jo = Zl(Ct);
9631
9631
  }
9632
- Ie = oe.cloneNode(!0), jt(Ie, s.ghostClass, !1), jt(Ie, s.fallbackClass, !0), jt(Ie, s.dragClass, !0), be(Ie, "transition", ""), be(Ie, "transform", ""), be(Ie, "box-sizing", "border-box"), be(Ie, "margin", 0), be(Ie, "top", e.top), be(Ie, "left", e.left), be(Ie, "width", e.width), be(Ie, "height", e.height), be(Ie, "opacity", "0.8"), be(Ie, "position", hr ? "absolute" : "fixed"), be(Ie, "zIndex", "100000"), be(Ie, "pointerEvents", "none"), Ce.ghost = Ie, t.appendChild(Ie), be(Ie, "transform-origin", Ql / parseInt(Ie.style.width) * 100 + "% " + ed / parseInt(Ie.style.height) * 100 + "%");
9632
+ Ie = oe.cloneNode(!0), Ht(Ie, s.ghostClass, !1), Ht(Ie, s.fallbackClass, !0), Ht(Ie, s.dragClass, !0), be(Ie, "transition", ""), be(Ie, "transform", ""), be(Ie, "box-sizing", "border-box"), be(Ie, "margin", 0), be(Ie, "top", e.top), be(Ie, "left", e.left), be(Ie, "width", e.width), be(Ie, "height", e.height), be(Ie, "opacity", "0.8"), be(Ie, "position", hr ? "absolute" : "fixed"), be(Ie, "zIndex", "100000"), be(Ie, "pointerEvents", "none"), Ce.ghost = Ie, t.appendChild(Ie), be(Ie, "transform-origin", Ql / parseInt(Ie.style.width) * 100 + "% " + ed / parseInt(Ie.style.height) * 100 + "%");
9633
9633
  }
9634
9634
  },
9635
9635
  _onDragStart: function(t, e) {
9636
9636
  var s = this, i = t.dataTransfer, r = s.options;
9637
- if (Tt("dragStart", this, {
9637
+ if (Et("dragStart", this, {
9638
9638
  evt: t
9639
9639
  }), Ce.eventCanceled) {
9640
9640
  this._onDrop();
9641
9641
  return;
9642
9642
  }
9643
- Tt("setupClone", this), Ce.eventCanceled || (st = tc(oe), st.removeAttribute("id"), st.draggable = !1, st.style["will-change"] = "", this._hideClone(), jt(st, this.options.chosenClass, !1), Ce.clone = st), s.cloneId = Er(function() {
9644
- Tt("clone", s), !Ce.eventCanceled && (s.options.removeCloneOnHide || Ze.insertBefore(st, oe), s._hideClone(), kt({
9643
+ Et("setupClone", this), Ce.eventCanceled || (st = tc(oe), st.removeAttribute("id"), st.draggable = !1, st.style["will-change"] = "", this._hideClone(), Ht(st, this.options.chosenClass, !1), Ce.clone = st), s.cloneId = Er(function() {
9644
+ Et("clone", s), !Ce.eventCanceled && (s.options.removeCloneOnHide || Ze.insertBefore(st, oe), s._hideClone(), It({
9645
9645
  sortable: s,
9646
9646
  name: "clone"
9647
9647
  }));
9648
- }), !e && jt(oe, r.dragClass, !0), e ? (Wr = !0, s._loopId = setInterval(s._emulateDragOver, 50)) : (Pe(document, "mouseup", s._onDrop), Pe(document, "touchend", s._onDrop), Pe(document, "touchcancel", s._onDrop), i && (i.effectAllowed = "move", r.setData && r.setData.call(s, i, oe)), ze(document, "drop", s), be(oe, "transform", "translateZ(0)")), js = !0, s._dragStartId = Er(s._dragStarted.bind(s, e, t)), ze(document, "selectstart", s), wi = !0, Ki && be(document.body, "user-select", "none");
9648
+ }), !e && Ht(oe, r.dragClass, !0), e ? (Wr = !0, s._loopId = setInterval(s._emulateDragOver, 50)) : (Pe(document, "mouseup", s._onDrop), Pe(document, "touchend", s._onDrop), Pe(document, "touchcancel", s._onDrop), i && (i.effectAllowed = "move", r.setData && r.setData.call(s, i, oe)), ze(document, "drop", s), be(oe, "transform", "translateZ(0)")), js = !0, s._dragStartId = Er(s._dragStarted.bind(s, e, t)), ze(document, "selectstart", s), wi = !0, Ki && be(document.body, "user-select", "none");
9649
9649
  },
9650
9650
  // Returns true - if no further action is needed (either inserted or another condition)
9651
9651
  _onDragOver: function(t) {
9652
9652
  var e = this.el, s = t.target, i, r, o, l = this.options, n = l.group, d = Ce.active, u = pr === n, c = l.sort, f = At || d, Y, v = this, g = !1;
9653
9653
  if (wn) return;
9654
9654
  function h($, H) {
9655
- Tt($, v, wa({
9655
+ Et($, v, wa({
9656
9656
  evt: t,
9657
9657
  isOwner: u,
9658
9658
  axis: Y ? "vertical" : "horizontal",
@@ -9675,16 +9675,16 @@ Ce.prototype = /** @lends Sortable.prototype */
9675
9675
  function F($) {
9676
9676
  return h("dragOverCompleted", {
9677
9677
  insertion: $
9678
- }), $ && (u ? d._hideClone() : d._showClone(v), v !== f && (jt(oe, At ? At.options.ghostClass : d.options.ghostClass, !1), jt(oe, l.ghostClass, !0)), At !== v && v !== Ce.active ? At = v : v === Ce.active && At && (At = null), f === v && (v._ignoreWhileAnimating = s), v.animateAll(function() {
9678
+ }), $ && (u ? d._hideClone() : d._showClone(v), v !== f && (Ht(oe, At ? At.options.ghostClass : d.options.ghostClass, !1), Ht(oe, l.ghostClass, !0)), At !== v && v !== Ce.active ? At = v : v === Ce.active && At && (At = null), f === v && (v._ignoreWhileAnimating = s), v.animateAll(function() {
9679
9679
  h("dragOverAnimationComplete"), v._ignoreWhileAnimating = null;
9680
- }), v !== f && (f.animateAll(), f._ignoreWhileAnimating = null)), (s === oe && !oe.animated || s === e && !s.animated) && (Ls = null), !l.dragoverBubble && !t.rootEl && s !== document && (oe.parentNode[Pt]._isOutsideThisEl(t.target), !$ && As(t)), !l.dragoverBubble && t.stopPropagation && t.stopPropagation(), g = !0;
9680
+ }), v !== f && (f.animateAll(), f._ignoreWhileAnimating = null)), (s === oe && !oe.animated || s === e && !s.animated) && (Ls = null), !l.dragoverBubble && !t.rootEl && s !== document && (oe.parentNode[Ot]._isOutsideThisEl(t.target), !$ && As(t)), !l.dragoverBubble && t.stopPropagation && t.stopPropagation(), g = !0;
9681
9681
  }
9682
9682
  function A() {
9683
- Ht = ia(oe), ts = ia(oe, l.draggable), kt({
9683
+ Wt = ra(oe), ts = ra(oe, l.draggable), It({
9684
9684
  sortable: v,
9685
9685
  name: "change",
9686
9686
  toEl: e,
9687
- newIndex: Ht,
9687
+ newIndex: Wt,
9688
9688
  newDraggableIndex: ts,
9689
9689
  originalEvent: t
9690
9690
  });
@@ -9714,7 +9714,7 @@ Ce.prototype = /** @lends Sortable.prototype */
9714
9714
  Ls !== s && (P = r[O], $i = !1, vr = !U && l.invertSwap || L), x = eF(t, s, r, Y, U ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, vr, Ls === s);
9715
9715
  var E;
9716
9716
  if (x !== 0) {
9717
- var k = ia(oe);
9717
+ var k = ra(oe);
9718
9718
  do
9719
9719
  k -= x, E = rt.children[k];
9720
9720
  while (E && (be(E, "display") === "none" || E === Ie));
@@ -9743,52 +9743,52 @@ Ce.prototype = /** @lends Sortable.prototype */
9743
9743
  },
9744
9744
  _onDrop: function(t) {
9745
9745
  var e = this.el, s = this.options;
9746
- if (Ht = ia(oe), ts = ia(oe, s.draggable), Tt("drop", this, {
9746
+ if (Wt = ra(oe), ts = ra(oe, s.draggable), Et("drop", this, {
9747
9747
  evt: t
9748
- }), rt = oe && oe.parentNode, Ht = ia(oe), ts = ia(oe, s.draggable), Ce.eventCanceled) {
9748
+ }), rt = oe && oe.parentNode, Wt = ra(oe), ts = ra(oe, s.draggable), Ce.eventCanceled) {
9749
9749
  this._nulling();
9750
9750
  return;
9751
9751
  }
9752
- js = !1, vr = !1, $i = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), kn(this.cloneId), kn(this._dragStartId), this.nativeDraggable && (Pe(document, "drop", this), Pe(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ki && be(document.body, "user-select", ""), be(oe, "transform", ""), t && (wi && (t.cancelable && t.preventDefault(), !s.dropBubble && t.stopPropagation()), Ie && Ie.parentNode && Ie.parentNode.removeChild(Ie), (Ze === rt || At && At.lastPutMode !== "clone") && st && st.parentNode && st.parentNode.removeChild(st), oe && (this.nativeDraggable && Pe(oe, "dragend", this), Zo(oe), oe.style["will-change"] = "", wi && !js && jt(oe, At ? At.options.ghostClass : this.options.ghostClass, !1), jt(oe, this.options.chosenClass, !1), kt({
9752
+ js = !1, vr = !1, $i = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), kn(this.cloneId), kn(this._dragStartId), this.nativeDraggable && (Pe(document, "drop", this), Pe(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ki && be(document.body, "user-select", ""), be(oe, "transform", ""), t && (wi && (t.cancelable && t.preventDefault(), !s.dropBubble && t.stopPropagation()), Ie && Ie.parentNode && Ie.parentNode.removeChild(Ie), (Ze === rt || At && At.lastPutMode !== "clone") && st && st.parentNode && st.parentNode.removeChild(st), oe && (this.nativeDraggable && Pe(oe, "dragend", this), Zo(oe), oe.style["will-change"] = "", wi && !js && Ht(oe, At ? At.options.ghostClass : this.options.ghostClass, !1), Ht(oe, this.options.chosenClass, !1), It({
9753
9753
  sortable: this,
9754
9754
  name: "unchoose",
9755
9755
  toEl: rt,
9756
9756
  newIndex: null,
9757
9757
  newDraggableIndex: null,
9758
9758
  originalEvent: t
9759
- }), Ze !== rt ? (Ht >= 0 && (kt({
9759
+ }), Ze !== rt ? (Wt >= 0 && (It({
9760
9760
  rootEl: rt,
9761
9761
  name: "add",
9762
9762
  toEl: rt,
9763
9763
  fromEl: Ze,
9764
9764
  originalEvent: t
9765
- }), kt({
9765
+ }), It({
9766
9766
  sortable: this,
9767
9767
  name: "remove",
9768
9768
  toEl: rt,
9769
9769
  originalEvent: t
9770
- }), kt({
9770
+ }), It({
9771
9771
  rootEl: rt,
9772
9772
  name: "sort",
9773
9773
  toEl: rt,
9774
9774
  fromEl: Ze,
9775
9775
  originalEvent: t
9776
- }), kt({
9776
+ }), It({
9777
9777
  sortable: this,
9778
9778
  name: "sort",
9779
9779
  toEl: rt,
9780
9780
  originalEvent: t
9781
- })), At && At.save()) : Ht !== Ws && Ht >= 0 && (kt({
9781
+ })), At && At.save()) : Wt !== Ws && Wt >= 0 && (It({
9782
9782
  sortable: this,
9783
9783
  name: "update",
9784
9784
  toEl: rt,
9785
9785
  originalEvent: t
9786
- }), kt({
9786
+ }), It({
9787
9787
  sortable: this,
9788
9788
  name: "sort",
9789
9789
  toEl: rt,
9790
9790
  originalEvent: t
9791
- })), Ce.active && ((Ht == null || Ht === -1) && (Ht = Ws, ts = Ei), kt({
9791
+ })), Ce.active && ((Wt == null || Wt === -1) && (Wt = Ws, ts = Ei), It({
9792
9792
  sortable: this,
9793
9793
  name: "end",
9794
9794
  toEl: rt,
@@ -9796,7 +9796,7 @@ Ce.prototype = /** @lends Sortable.prototype */
9796
9796
  }), this.save()))), this._nulling();
9797
9797
  },
9798
9798
  _nulling: function() {
9799
- Tt("nulling", this), Ze = oe = rt = Ie = ks = st = Kr = as = Xs = ha = wi = Ht = ts = Ws = Ei = Ls = Mi = At = pr = Ce.dragged = Ce.ghost = Ce.clone = Ce.active = null, Jr.forEach(function(t) {
9799
+ Et("nulling", this), Ze = oe = rt = Ie = ks = st = Kr = as = Xs = ha = wi = Wt = ts = Ws = Ei = Ls = Mi = At = pr = Ce.dragged = Ce.ghost = Ce.clone = Ce.active = null, Jr.forEach(function(t) {
9800
9800
  t.checked = !0;
9801
9801
  }), Jr.length = Wo = Go = 0;
9802
9802
  },
@@ -9870,15 +9870,15 @@ Ce.prototype = /** @lends Sortable.prototype */
9870
9870
  * Destroy
9871
9871
  */
9872
9872
  destroy: function() {
9873
- Tt("destroy", this);
9873
+ Et("destroy", this);
9874
9874
  var t = this.el;
9875
- t[Pt] = null, Pe(t, "mousedown", this._onTapStart), Pe(t, "touchstart", this._onTapStart), Pe(t, "pointerdown", this._onTapStart), this.nativeDraggable && (Pe(t, "dragover", this), Pe(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(e) {
9875
+ t[Ot] = null, Pe(t, "mousedown", this._onTapStart), Pe(t, "touchstart", this._onTapStart), Pe(t, "pointerdown", this._onTapStart), this.nativeDraggable && (Pe(t, "dragover", this), Pe(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(e) {
9876
9876
  e.removeAttribute("draggable");
9877
9877
  }), this._onDrop(), this._disableDelayedDragEvents(), Gr.splice(Gr.indexOf(this.el), 1), this.el = t = null;
9878
9878
  },
9879
9879
  _hideClone: function() {
9880
9880
  if (!as) {
9881
- if (Tt("hideClone", this), Ce.eventCanceled) return;
9881
+ if (Et("hideClone", this), Ce.eventCanceled) return;
9882
9882
  be(st, "display", "none"), this.options.removeCloneOnHide && st.parentNode && st.parentNode.removeChild(st), as = !0;
9883
9883
  }
9884
9884
  },
@@ -9888,7 +9888,7 @@ Ce.prototype = /** @lends Sortable.prototype */
9888
9888
  return;
9889
9889
  }
9890
9890
  if (as) {
9891
- if (Tt("showClone", this), Ce.eventCanceled) return;
9891
+ if (Et("showClone", this), Ce.eventCanceled) return;
9892
9892
  oe.parentNode == Ze && !this.options.group.revertClone ? Ze.insertBefore(st, oe) : ks ? Ze.insertBefore(st, ks) : Ze.appendChild(st), this.options.group.revertClone && this.animate(oe, st), be(st, "display", ""), as = !1;
9893
9893
  }
9894
9894
  }
@@ -9897,7 +9897,7 @@ function Gh(a) {
9897
9897
  a.dataTransfer && (a.dataTransfer.dropEffect = "move"), a.cancelable && a.preventDefault();
9898
9898
  }
9899
9899
  function Fr(a, t, e, s, i, r, o, l) {
9900
- var n, d = a[Pt], u = d.options.onMove, c;
9900
+ var n, d = a[Ot], u = d.options.onMove, c;
9901
9901
  return window.CustomEvent && !Ga && !Zi ? n = new CustomEvent("move", {
9902
9902
  bubbles: !0,
9903
9903
  cancelable: !0
@@ -9931,7 +9931,7 @@ function eF(a, t, e, s, i, r, o, l) {
9931
9931
  return f = f || o, f && (n < u + d * r / 2 || n > c - d * r / 2) ? n > u + d / 2 ? 1 : -1 : 0;
9932
9932
  }
9933
9933
  function tF(a) {
9934
- return ia(oe) < ia(a) ? 1 : -1;
9934
+ return ra(oe) < ra(a) ? 1 : -1;
9935
9935
  }
9936
9936
  function aF(a) {
9937
9937
  for (var t = a.tagName + a.className + a.src + a.href + a.textContent, e = t.length, s = 0; e--; )
@@ -9965,17 +9965,17 @@ Ce.utils = {
9965
9965
  extend: Bh,
9966
9966
  throttle: Qu,
9967
9967
  closest: ga,
9968
- toggleClass: jt,
9968
+ toggleClass: Ht,
9969
9969
  clone: tc,
9970
- index: ia,
9970
+ index: ra,
9971
9971
  nextTick: Er,
9972
9972
  cancelNextTick: kn,
9973
9973
  detectDirection: ic,
9974
9974
  getChild: di,
9975
- expando: Pt
9975
+ expando: Ot
9976
9976
  };
9977
9977
  Ce.get = function(a) {
9978
- return a[Pt];
9978
+ return a[Ot];
9979
9979
  };
9980
9980
  Ce.mount = function() {
9981
9981
  for (var a = arguments.length, t = new Array(a), e = 0; e < a; e++)
@@ -10066,7 +10066,7 @@ var tn = Qu(function(a, t, e, s) {
10066
10066
  (ct[c].vx != z || ct[c].vy != E || ct[c].el !== Y) && (ct[c].el = Y, ct[c].vx = z, ct[c].vy = E, clearInterval(ct[c].pid), (z != 0 || E != 0) && (d = !0, ct[c].pid = setInterval((function() {
10067
10067
  s && this.layer === 0 && Ce.active._onTouchMove(Zr);
10068
10068
  var w = ct[this.layer].vy ? ct[this.layer].vy * l : 0, y = ct[this.layer].vx ? ct[this.layer].vx * l : 0;
10069
- typeof u == "function" && u.call(Ce.dragged.parentNode[Pt], y, w, a, Zr, ct[this.layer].el) !== "continue" || ec(ct[this.layer].el, y, w);
10069
+ typeof u == "function" && u.call(Ce.dragged.parentNode[Ot], y, w, a, Zr, ct[this.layer].el) !== "continue" || ec(ct[this.layer].el, y, w);
10070
10070
  }).bind({
10071
10071
  layer: c
10072
10072
  }), 24))), c++;
@@ -10145,7 +10145,7 @@ function rF(a, t, e) {
10145
10145
  const s = Es(a), i = s ? [...Sl(a)] : Sl(a);
10146
10146
  if (e >= 0 && e < i.length) {
10147
10147
  const r = i.splice(t, 1)[0];
10148
- Gt(() => {
10148
+ Jt(() => {
10149
10149
  i.splice(e, 0, r), s && (a.value = i);
10150
10150
  });
10151
10151
  }
@@ -10205,7 +10205,7 @@ function uF(a, t, e, s) {
10205
10205
  };
10206
10206
  }
10207
10207
  const f = _(() => a.value.map((E, k) => c(E, k))), Y = (E = void 0) => {
10208
- d.value++, R(E) || s("update:modelValue", E), Gt(() => {
10208
+ d.value++, R(E) || s("update:modelValue", E), Jt(() => {
10209
10209
  t();
10210
10210
  });
10211
10211
  }, v = (E) => {
@@ -10369,7 +10369,7 @@ const ll = "a-sortable-", cF = ["id"], mF = { key: 1 }, fF = { class: "a-sortabl
10369
10369
  } = uF(r, Y, s, i);
10370
10370
  return so(() => {
10371
10371
  X();
10372
- }), Gt(() => {
10372
+ }), Jt(() => {
10373
10373
  L.value = document.querySelector("#" + c.value), Y();
10374
10374
  }), qe(
10375
10375
  () => s.disableDraggable,
@@ -10403,7 +10403,7 @@ const ll = "a-sortable-", cF = ["id"], mF = { key: 1 }, fF = { class: "a-sortabl
10403
10403
  (q(!0), B(Fe, null, je(p(v), (G) => (q(), B(Fe, {
10404
10404
  key: G.key
10405
10405
  }, [
10406
- y.chips ? (q(), K(Jt, {
10406
+ y.chips ? (q(), K(Zt, {
10407
10407
  key: 0,
10408
10408
  size: y.chipSize,
10409
10409
  class: "mr-1",
@@ -10563,7 +10563,7 @@ const ll = "a-sortable-", cF = ["id"], mF = { key: 1 }, fF = { class: "a-sortabl
10563
10563
  default: V(() => [
10564
10564
  p(A) ? (q(), K(Le, { key: 0 }, {
10565
10565
  default: V(() => [
10566
- m(wt, {
10566
+ m(kt, {
10567
10567
  onOnCancel: S[0] || (S[0] = (G) => A.value = !1)
10568
10568
  }, {
10569
10569
  default: V(() => [
@@ -10571,7 +10571,7 @@ const ll = "a-sortable-", cF = ["id"], mF = { key: 1 }, fF = { class: "a-sortabl
10571
10571
  ]),
10572
10572
  _: 1
10573
10573
  }),
10574
- m(It, null, {
10574
+ m(_t, null, {
10575
10575
  default: V(() => [
10576
10576
  m(it),
10577
10577
  m($, {
@@ -10605,7 +10605,7 @@ const ll = "a-sortable-", cF = ["id"], mF = { key: 1 }, fF = { class: "a-sortabl
10605
10605
  }), Sn = "a-sortable-nested-widget__handle", FF = "a-sortable-nested-widget__ghost", gF = "a-sortable-nested-widget__drag", qF = "a-sortable-nested-widget__chosen", id = "a-sortable-nested-widget__group", rd = Symbol.for("anzu:SortableLevel");
10606
10606
  function YF(a, t, e) {
10607
10607
  const { showWarningT: s } = He(), i = D([]), r = D(0), o = D(!1), l = D(null), n = D(!1), d = D(null), u = D(ss()), c = (T = void 0) => {
10608
- r.value++, R(T) || e("update:modelValue", T), Gt(() => {
10608
+ r.value++, R(T) || e("update:modelValue", T), Jt(() => {
10609
10609
  t();
10610
10610
  });
10611
10611
  }, f = () => {
@@ -11052,7 +11052,7 @@ const XF = ["data-id"], AF = { class: "a-sortable-nested-widget__nested" }, yF =
11052
11052
  g.value = !0;
11053
11053
  },
11054
11054
  onEnd: (y) => {
11055
- g.value = !1, Gt(() => {
11055
+ g.value = !1, Jt(() => {
11056
11056
  const S = li(y.item.getAttribute("data-id") ?? "0");
11057
11057
  if (S < 1) return;
11058
11058
  const $ = y.newIndex;
@@ -11086,7 +11086,7 @@ const XF = ["data-id"], AF = { class: "a-sortable-nested-widget__nested" }, yF =
11086
11086
  } = YF(r, v, i);
11087
11087
  return so(() => {
11088
11088
  O();
11089
- }), Gt(() => {
11089
+ }), Jt(() => {
11090
11090
  h.value = document.querySelector("#" + f.value), v();
11091
11091
  }), qe(
11092
11092
  () => s.disableDraggable,
@@ -11153,7 +11153,7 @@ const XF = ["data-id"], AF = { class: "a-sortable-nested-widget__nested" }, yF =
11153
11153
  default: V(() => [
11154
11154
  p(F) ? (q(), K(Le, { key: 0 }, {
11155
11155
  default: V(() => [
11156
- m(wt, {
11156
+ m(kt, {
11157
11157
  onOnCancel: w[0] || (w[0] = ($) => F.value = !1)
11158
11158
  }, {
11159
11159
  default: V(() => [
@@ -11161,7 +11161,7 @@ const XF = ["data-id"], AF = { class: "a-sortable-nested-widget__nested" }, yF =
11161
11161
  ]),
11162
11162
  _: 1
11163
11163
  }),
11164
- m(It, null, {
11164
+ m(_t, null, {
11165
11165
  default: V(() => [
11166
11166
  m(it),
11167
11167
  m(y, {
@@ -11249,7 +11249,7 @@ const XF = ["data-id"], AF = { class: "a-sortable-nested-widget__nested" }, yF =
11249
11249
  le(x.$slots, "activator", {
11250
11250
  props: { onClick: Z(() => Y(), ["stop"]) }
11251
11251
  }),
11252
- m(Vt, Dt(x.$attrs, {
11252
+ m(Vt, Kt(x.$attrs, {
11253
11253
  "model-value": o.value,
11254
11254
  fullscreen: "",
11255
11255
  class: "subject-select",
@@ -11261,7 +11261,7 @@ const XF = ["data-id"], AF = { class: "a-sortable-nested-widget__nested" }, yF =
11261
11261
  class: "subject-select__card"
11262
11262
  }, {
11263
11263
  default: V(() => [
11264
- m(wt, {
11264
+ m(kt, {
11265
11265
  class: "subject-select__toolbar system-border-b",
11266
11266
  onOnCancel: g
11267
11267
  }, {
@@ -12128,7 +12128,7 @@ function un() {
12128
12128
  }
12129
12129
  const vg = Symbol("anzu:damNotificationsEventBusKey");
12130
12130
  function Ac() {
12131
- return Zt(vg);
12131
+ return Qt(vg);
12132
12132
  }
12133
12133
  const Yr = {
12134
12134
  AssetFileProcessed: "asset_file_processed",
@@ -12307,7 +12307,7 @@ async function Cc(a, t) {
12307
12307
  if (clearTimeout(t.notificationFallbackTimer), t.status === Ue.Uploaded || t.notificationFallbackTry > xg || !t.assetId) return;
12308
12308
  const e = await ns(a, t.assetId);
12309
12309
  if (e && e.mainFile && e.mainFile.fileAttributes) {
12310
- const s = ta();
12310
+ const s = aa();
12311
12311
  if (e.mainFile.fileAttributes.status === Bi.Processed) {
12312
12312
  s.queueItemProcessed(e.id);
12313
12313
  return;
@@ -12991,7 +12991,7 @@ const dd = (a) => {
12991
12991
  hasCachedKeyword: Gg,
12992
12992
  getCachedKeyword: Jg,
12993
12993
  isLoadedCachedKeyword: Zg
12994
- }), cd = 2, Qg = 10485760, ta = mi("commonUploadQueuesStore", () => {
12994
+ }), cd = 2, Qg = 10485760, aa = mi("commonUploadQueuesStore", () => {
12995
12995
  const { addToCachedKeywords: a, fetchCachedKeywords: t } = wo(), { addToCachedAuthors: e, fetchCachedAuthors: s } = tr(), i = D(/* @__PURE__ */ new Map()), { createDefault: r } = pg(), { damClient: o } = ut(), { addDamNotificationListener: l } = Fg();
12996
12996
  l((y) => {
12997
12997
  switch (y.name) {
@@ -13017,7 +13017,7 @@ const dd = (a) => {
13017
13017
  return i.value.has(y) ? ((S = i.value.get(y)) == null ? void 0 : S.items) || [] : [];
13018
13018
  }
13019
13019
  async function u(y, S, $, H) {
13020
- const { getDamConfigExtSystem: G } = ea(), J = G(S);
13020
+ const { getDamConfigExtSystem: G } = ta(), J = G(S);
13021
13021
  if (R(J))
13022
13022
  throw new Error("Ext system must be initialised.");
13023
13023
  for await (const ae of H) {
@@ -13210,7 +13210,7 @@ const dd = (a) => {
13210
13210
  a().put(hs(e, s), JSON.stringify(t), o).then((d) => Fs(d.status) ? d.data ? l(d.data) : d.status === La ? l(null) : n(new bt()) : n(new Ua(d.status))).catch((d) => Na(d) ? n(new Sa(d)) : Da(d) ? n(new Ka(d, i, r, d)) : ja(d) ? n(new Ta(d, d)) : n(new bt(d)));
13211
13211
  }), _c = (a, t, e = {}, s, i, r = {}) => new Promise((o, l) => {
13212
13212
  a().delete(hs(t, e), r).then((n) => Fs(n.status) ? n.data ? o(n.data) : n.status === La ? o(null) : l(new bt()) : l(new Ua(n.status))).catch((n) => Na(n) ? l(new Sa(n)) : Da(n) ? l(new Ka(n, s, i, n)) : ja(n) ? l(new Ta(n, n)) : l(new bt(n)));
13213
- }), gi = "/adm/v1/image", sr = "image", ir = "cms", fn = 20, Sc = (a, t) => Ps(a, t, gi, {}, ir, sr), cl = (a, t) => Nt(a, gi + "/:id", { id: t }, ir, sr), Dc = (a, t) => bo(a, t, gi, {}, ir, sr), Kc = (a, t, e) => ul(a, e, gi + "/:id", { id: t }, ir, sr), Tc = (a, t) => _c(a, gi + "/:id", { id: t }, ir, sr), eq = (a, t) => new Promise((e, s) => {
13213
+ }), gi = "/adm/v1/image", sr = "image", ir = "cms", fn = 20, Sc = (a, t) => Ps(a, t, gi, {}, ir, sr), cl = (a, t) => Ut(a, gi + "/:id", { id: t }, ir, sr), Dc = (a, t) => bo(a, t, gi, {}, ir, sr), Kc = (a, t, e) => ul(a, e, gi + "/:id", { id: t }, ir, sr), Tc = (a, t) => _c(a, gi + "/:id", { id: t }, ir, sr), eq = (a, t) => new Promise((e, s) => {
13214
13214
  tq(a, t).then((i) => {
13215
13215
  if (t.length === 0)
13216
13216
  return e([]);
@@ -13390,7 +13390,7 @@ const cq = { key: 0 }, mq = { class: "d-flex align-center justify-center" }, fq
13390
13390
  },
13391
13391
  emits: ["editAsset", "onConfirm", "onClose"],
13392
13392
  setup(a, { expose: t, emit: e }) {
13393
- const s = e, { t: i } = ee(), r = rr(), { imageDetail: o } = St(r), { v$: l } = Mc(o), { showValidationError: n } = He(), d = () => {
13393
+ const s = e, { t: i } = ee(), r = rr(), { imageDetail: o } = Dt(r), { v$: l } = Mc(o), { showValidationError: n } = He(), d = () => {
13394
13394
  if (l.value.$touch(), l.value.$invalid) {
13395
13395
  n();
13396
13396
  return;
@@ -13479,7 +13479,7 @@ const cq = { key: 0 }, mq = { class: "d-flex align-center justify-center" }, fq
13479
13479
  default: V(() => [
13480
13480
  f.modelValue ? (q(), K(Le, { key: 0 }, {
13481
13481
  default: V(() => [
13482
- m(wt, {
13482
+ m(kt, {
13483
13483
  onOnCancel: Y[2] || (Y[2] = (g) => u(!1))
13484
13484
  }, {
13485
13485
  default: V(() => [
@@ -13552,7 +13552,7 @@ const cq = { key: 0 }, mq = { class: "d-flex align-center justify-center" }, fq
13552
13552
  ]),
13553
13553
  _: 1
13554
13554
  }),
13555
- m(It, null, {
13555
+ m(_t, null, {
13556
13556
  default: V(() => [
13557
13557
  m(it),
13558
13558
  m(v, {
@@ -13888,7 +13888,7 @@ const Yq = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
13888
13888
  f.value ? (q(), B("div", Pq, [
13889
13889
  N("div", {
13890
13890
  class: "asset-image__icon-circle",
13891
- style: $t({ padding: v.iconSize / 4 + "px" })
13891
+ style: Bt({ padding: v.iconSize / 4 + "px" })
13892
13892
  }, [
13893
13893
  l.value.length ? (q(), K(re, {
13894
13894
  key: 0,
@@ -13919,13 +13919,13 @@ const Yq = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
13919
13919
  width: v.width,
13920
13920
  height: v.height,
13921
13921
  alt: "",
13922
- style: $t("background-color:" + d.value),
13922
+ style: Bt("background-color:" + d.value),
13923
13923
  onOnerror: o
13924
13924
  }, null, 44, Lq),
13925
13925
  f.value ? (q(), B("div", Nq, [
13926
13926
  N("div", {
13927
13927
  class: "asset-image__icon-circle",
13928
- style: $t({ padding: v.iconSize / 4 + "px" })
13928
+ style: Bt({ padding: v.iconSize / 4 + "px" })
13929
13929
  }, [
13930
13930
  l.value.length ? (q(), K(re, {
13931
13931
  key: 0,
@@ -13943,13 +13943,13 @@ const Yq = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
13943
13943
  }, null, 8, ["asset-file-properties", "asset-type"])) : j("", !0)
13944
13944
  ])) : (q(), B("div", {
13945
13945
  key: 3,
13946
- style: $t({ height: v.fallbackHeight + "px", backgroundColor: d.value, width: v.width + "px" }),
13946
+ style: Bt({ height: v.fallbackHeight + "px", backgroundColor: d.value, width: v.width + "px" }),
13947
13947
  class: "asset-image asset-image--placeholder d-flex align-center justify-center"
13948
13948
  }, [
13949
13949
  f.value ? (q(), B("div", Uq, [
13950
13950
  N("div", {
13951
13951
  class: "asset-image__icon-circle",
13952
- style: $t({ padding: v.iconSize / 4 + "px" })
13952
+ style: Bt({ padding: v.iconSize / 4 + "px" })
13953
13953
  }, [
13954
13954
  l.value.length ? (q(), K(re, {
13955
13955
  key: 0,
@@ -14132,7 +14132,7 @@ const a7 = { class: "w-100 text-right" }, pl = /* @__PURE__ */ W({
14132
14132
  },
14133
14133
  emits: ["update:modelValue", "anyChange"],
14134
14134
  setup(a, { emit: t }) {
14135
- const e = a, s = t, { getDamConfigAssetCustomFormElements: i, getDamConfigExtSystem: r } = ea(), o = i(e.extSystem);
14135
+ const e = a, s = t, { getDamConfigAssetCustomFormElements: i, getDamConfigExtSystem: r } = ta(), o = i(e.extSystem);
14136
14136
  if (R(o))
14137
14137
  throw new Error("Custom form elements must be initialised.");
14138
14138
  const l = _(() => o[e.assetType]), n = r(e.extSystem);
@@ -14166,7 +14166,7 @@ const a7 = { class: "w-100 text-right" }, pl = /* @__PURE__ */ W({
14166
14166
  setup(a) {
14167
14167
  const t = a, e = _(() => `background-color: ${t.color ? t.color : "transparent"}; width: ${t.width}px; height: ${t.height}px;`);
14168
14168
  return (s, i) => (q(), B("div", {
14169
- style: $t(e.value)
14169
+ style: Bt(e.value)
14170
14170
  }, [
14171
14171
  m(ye, {
14172
14172
  activator: "parent",
@@ -14290,7 +14290,7 @@ const a7 = { class: "w-100 text-right" }, pl = /* @__PURE__ */ W({
14290
14290
  containerClass: { default: "d-inline-flex" }
14291
14291
  },
14292
14292
  setup(a) {
14293
- const t = a, { getCachedAuthor: e } = tr(), s = ta(), i = vt(void 0), r = vt(!1), o = _(() => e(t.id)), l = _(() => {
14293
+ const t = a, { getCachedAuthor: e } = tr(), s = aa(), i = vt(void 0), r = vt(!1), o = _(() => e(t.id)), l = _(() => {
14294
14294
  if (!t.queueId) return;
14295
14295
  const d = s.getQueue(t.queueId);
14296
14296
  if (!(!d || !i.value) && d.suggestions.newAuthorNames.has(i.value.name))
@@ -14319,7 +14319,7 @@ const a7 = { class: "w-100 text-right" }, pl = /* @__PURE__ */ W({
14319
14319
  indeterminate: "",
14320
14320
  class: "mx-1"
14321
14321
  })) : j("", !0)
14322
- ])) : (q(), K(Jt, {
14322
+ ])) : (q(), K(Zt, {
14323
14323
  key: 2,
14324
14324
  size: d.size,
14325
14325
  "append-icon": l.value,
@@ -14359,7 +14359,7 @@ const a7 = { class: "w-100 text-right" }, pl = /* @__PURE__ */ W({
14359
14359
  l.value || R(u) || u._loaded === !1 || (o.value = u, l.value = !0);
14360
14360
  },
14361
14361
  { immediate: !0 }
14362
- ), (u, c) => (q(), K(Jt, {
14362
+ ), (u, c) => (q(), K(Zt, {
14363
14363
  size: "small",
14364
14364
  closable: "",
14365
14365
  "close-icon": "mdi-plus",
@@ -14379,7 +14379,7 @@ const a7 = { class: "w-100 text-right" }, pl = /* @__PURE__ */ W({
14379
14379
  }));
14380
14380
  }
14381
14381
  }), o7 = (a) => {
14382
- const { damClient: t } = ut(), { getDamConfigExtSystem: e } = ea(), s = e(a);
14382
+ const { damClient: t } = ut(), { getDamConfigExtSystem: e } = ta(), s = e(a);
14383
14383
  if (R(s))
14384
14384
  throw new Error("Ext system must be initialised.");
14385
14385
  const i = (c) => ({
@@ -14465,8 +14465,8 @@ function m7() {
14465
14465
  reviewed: e ?? !1
14466
14466
  },
14467
14467
  type: l7,
14468
- createdAt: Lt(),
14469
- modifiedAt: Lt(),
14468
+ createdAt: Nt(),
14469
+ modifiedAt: Nt(),
14470
14470
  createdBy: 0,
14471
14471
  modifiedBy: 0,
14472
14472
  _resourceName: Co,
@@ -14489,7 +14489,7 @@ const f7 = /* @__PURE__ */ W({
14489
14489
  },
14490
14490
  emits: ["onSuccess"],
14491
14491
  setup(a, { emit: t }) {
14492
- const e = a, s = t, { damClient: i } = ut(), { getDamConfigExtSystem: r } = ea(), o = r(e.extSystem);
14492
+ const e = a, s = t, { damClient: i } = ut(), { getDamConfigExtSystem: r } = ta(), o = r(e.extSystem);
14493
14493
  if (R(o))
14494
14494
  throw new Error("Ext system must be initialised.");
14495
14495
  const { createDefault: l } = m7(), n = D(l(e.extSystem)), d = D(!1), u = D(!1), c = () => {
@@ -14564,7 +14564,7 @@ const f7 = /* @__PURE__ */ W({
14564
14564
  "data-cy": "create-panel"
14565
14565
  }, {
14566
14566
  default: V(() => [
14567
- m(wt, { onOnCancel: f }, {
14567
+ m(kt, { onOnCancel: f }, {
14568
14568
  default: V(() => [
14569
14569
  M(I(p(v)("common.damImage.author.meta.create")), 1)
14570
14570
  ]),
@@ -14623,7 +14623,7 @@ const f7 = /* @__PURE__ */ W({
14623
14623
  ]),
14624
14624
  _: 1
14625
14625
  }),
14626
- m(It, null, {
14626
+ m(_t, null, {
14627
14627
  default: V(() => [
14628
14628
  m(it),
14629
14629
  m(P, {
@@ -14722,7 +14722,7 @@ const f7 = /* @__PURE__ */ W({
14722
14722
  onSearchChange: v
14723
14723
  }, {
14724
14724
  item: V(({ props: X, item: b }) => [
14725
- m(Je, Dt(X, {
14725
+ m(Je, Kt(X, {
14726
14726
  onClick: A[0] || (A[0] = Z(() => {
14727
14727
  }, ["prevent"]))
14728
14728
  }), da({
@@ -14788,7 +14788,7 @@ const f7 = /* @__PURE__ */ W({
14788
14788
  ], 64));
14789
14789
  }
14790
14790
  }), h7 = (a) => {
14791
- const { damClient: t } = ut(), { getDamConfigExtSystem: e } = ea(), s = e(a);
14791
+ const { damClient: t } = ut(), { getDamConfigExtSystem: e } = ta(), s = e(a);
14792
14792
  if (R(s))
14793
14793
  throw new Error("Ext system must be initialised.");
14794
14794
  const i = (c) => ({
@@ -14841,7 +14841,7 @@ const g7 = { key: 1 }, gd = /* @__PURE__ */ W({
14841
14841
  containerClass: { default: "d-inline-flex" }
14842
14842
  },
14843
14843
  setup(a) {
14844
- const t = a, { getCachedKeyword: e } = wo(), s = ta(), i = vt(void 0), r = vt(!1), o = _(() => e(t.id)), l = _(() => {
14844
+ const t = a, { getCachedKeyword: e } = wo(), s = aa(), i = vt(void 0), r = vt(!1), o = _(() => e(t.id)), l = _(() => {
14845
14845
  if (!t.queueId) return;
14846
14846
  const d = s.getQueue(t.queueId);
14847
14847
  if (!(!d || !i.value) && d.suggestions.newKeywordNames.has(i.value.name))
@@ -14867,7 +14867,7 @@ const g7 = { key: 1 }, gd = /* @__PURE__ */ W({
14867
14867
  indeterminate: "",
14868
14868
  class: "mx-1"
14869
14869
  })) : j("", !0)
14870
- ])) : (q(), K(Jt, {
14870
+ ])) : (q(), K(Zt, {
14871
14871
  key: 2,
14872
14872
  size: d.size,
14873
14873
  "append-icon": l.value,
@@ -14897,8 +14897,8 @@ function q7() {
14897
14897
  flags: {
14898
14898
  reviewed: e ?? !1
14899
14899
  },
14900
- createdAt: Lt(),
14901
- modifiedAt: Lt(),
14900
+ createdAt: Nt(),
14901
+ modifiedAt: Nt(),
14902
14902
  createdBy: 1,
14903
14903
  modifiedBy: 1,
14904
14904
  _resourceName: Fi,
@@ -14935,7 +14935,7 @@ const y7 = /* @__PURE__ */ W({
14935
14935
  },
14936
14936
  emits: ["onSuccess"],
14937
14937
  setup(a, { emit: t }) {
14938
- const e = a, s = t, { damClient: i } = ut(), { getDamConfigExtSystem: r } = ea(), o = r(e.extSystem);
14938
+ const e = a, s = t, { damClient: i } = ut(), { getDamConfigExtSystem: r } = ta(), o = r(e.extSystem);
14939
14939
  if (R(o))
14940
14940
  throw new Error("Ext system must be initialised.");
14941
14941
  const { createDefault: l } = q7(), n = D(l(e.extSystem)), d = D(!1), u = D(!1), c = () => {
@@ -15010,7 +15010,7 @@ const y7 = /* @__PURE__ */ W({
15010
15010
  "data-cy": "create-panel"
15011
15011
  }, {
15012
15012
  default: V(() => [
15013
- m(wt, { onOnCancel: f }, {
15013
+ m(kt, { onOnCancel: f }, {
15014
15014
  default: V(() => [
15015
15015
  M(I(p(v)("common.damImage.keyword.meta.create")), 1)
15016
15016
  ]),
@@ -15043,7 +15043,7 @@ const y7 = /* @__PURE__ */ W({
15043
15043
  ]),
15044
15044
  _: 1
15045
15045
  }),
15046
- m(It, null, {
15046
+ m(_t, null, {
15047
15047
  default: V(() => [
15048
15048
  m(it),
15049
15049
  m(x, {
@@ -15133,7 +15133,7 @@ const y7 = /* @__PURE__ */ W({
15133
15133
  onSearchChange: f
15134
15134
  }, {
15135
15135
  item: V(({ props: F, item: A }) => [
15136
- m(Je, Dt(F, {
15136
+ m(Je, Kt(F, {
15137
15137
  onClick: C[0] || (C[0] = Z(() => {
15138
15138
  }, ["prevent"]))
15139
15139
  }), da({
@@ -15185,7 +15185,7 @@ const y7 = /* @__PURE__ */ W({
15185
15185
  ]));
15186
15186
  }
15187
15187
  }), hl = (a, t) => {
15188
- const { getDamConfigExtSystem: e } = ea(), s = e(t);
15188
+ const { getDamConfigExtSystem: e } = ta(), s = e(t);
15189
15189
  if (R(s))
15190
15190
  throw new Error("Ext system must be initialised.");
15191
15191
  const i = _(() => s[a].keywords.enabled), r = _(() => s[a].keywords.required);
@@ -15194,7 +15194,7 @@ const y7 = /* @__PURE__ */ W({
15194
15194
  keywordRequired: r
15195
15195
  };
15196
15196
  }, Fl = (a, t) => {
15197
- const { getDamConfigExtSystem: e } = ea(), s = e(t);
15197
+ const { getDamConfigExtSystem: e } = ta(), s = e(t);
15198
15198
  if (R(s))
15199
15199
  throw new Error("Ext system must be initialised.");
15200
15200
  const i = _(() => s[a].authors.enabled), r = _(() => s[a].authors.required);
@@ -15208,7 +15208,7 @@ const y7 = /* @__PURE__ */ W({
15208
15208
  extSystem: {}
15209
15209
  },
15210
15210
  setup(a) {
15211
- const t = a, { t: e } = ee(), s = D(["metadata", "file"]), i = Xa(), { asset: r, authorConflicts: o, metadataAreTouched: l } = St(i), n = _(() => {
15211
+ const t = a, { t: e } = ee(), s = D(["metadata", "file"]), i = Xa(), { asset: r, authorConflicts: o, metadataAreTouched: l } = Dt(i), n = _(() => {
15212
15212
  var h;
15213
15213
  return ((h = r.value) == null ? void 0 : h.attributes.assetType) || ho;
15214
15214
  }), d = _(() => n.value === Xe.Image), u = _(() => r.value && r.value.mainFile ? r.value.mainFile : null), c = () => {
@@ -15478,7 +15478,7 @@ const y7 = /* @__PURE__ */ W({
15478
15478
  extSystem: {}
15479
15479
  },
15480
15480
  setup(a) {
15481
- const t = a, { t: e } = ee(), s = Xa(), { asset: i, updateUploadStore: r } = St(s), o = ta(), l = D(!1), { showRecordWas: n, showValidationError: d, showErrorsDefault: u } = He(), c = ca({}, {}, { $scope: Ra }), { damClient: f } = ut(), Y = async () => {
15481
+ const t = a, { t: e } = ee(), s = Xa(), { asset: i, updateUploadStore: r } = Dt(s), o = aa(), l = D(!1), { showRecordWas: n, showValidationError: d, showErrorsDefault: u } = He(), c = ca({}, {}, { $scope: Ra }), { damClient: f } = ut(), Y = async () => {
15482
15482
  if (!te(i.value)) {
15483
15483
  if (l.value = !0, c.value.$touch(), c.value.$invalid) {
15484
15484
  d(), l.value = !1;
@@ -15612,7 +15612,7 @@ const y7 = /* @__PURE__ */ W({
15612
15612
  ]);
15613
15613
  };
15614
15614
  }
15615
- }), Rc = "/adm/v1/roi", D7 = "/adm/v1/image/:id/roi", gl = "asset", K7 = (a, t) => Nt(a, Rc + "/:id", { id: t }, "coreDam", gl), T7 = (a, t, e) => ul(a, e, Rc + "/:id", { id: t }, "coreDam", gl), E7 = (a, t, e, s) => Wa(a, D7, { id: t }, e, s, "coreDam", gl), M7 = { class: "px-3" }, $7 = { class: "v-expansion-panel-title px-0" }, B7 = { class: "text-caption" }, P7 = {
15615
+ }), Rc = "/adm/v1/roi", D7 = "/adm/v1/image/:id/roi", gl = "asset", K7 = (a, t) => Ut(a, Rc + "/:id", { id: t }, "coreDam", gl), T7 = (a, t, e) => ul(a, e, Rc + "/:id", { id: t }, "coreDam", gl), E7 = (a, t, e, s) => Wa(a, D7, { id: t }, e, s, "coreDam", gl), M7 = { class: "px-3" }, $7 = { class: "v-expansion-panel-title px-0" }, B7 = { class: "text-caption" }, P7 = {
15616
15616
  key: 1,
15617
15617
  class: "w-100 h-100 d-flex align-center justify-center"
15618
15618
  }, O7 = {
@@ -15704,7 +15704,7 @@ const y7 = /* @__PURE__ */ W({
15704
15704
  setup(a) {
15705
15705
  const t = a, { mounted: e, unMounted: s, divClassName: i } = Bc(t.queueKey);
15706
15706
  return gt(async () => {
15707
- await Gt(), e();
15707
+ await Jt(), e();
15708
15708
  }), so(() => {
15709
15709
  s();
15710
15710
  }), (r, o) => (q(), B("div", {
@@ -15734,7 +15734,7 @@ const y7 = /* @__PURE__ */ W({
15734
15734
  assetMainFileFailReason: { default: void 0 }
15735
15735
  },
15736
15736
  setup(a) {
15737
- const { t } = ee(), e = Xa(), { activeTab: s } = St(e);
15737
+ const { t } = ee(), e = Xa(), { activeTab: s } = Dt(e);
15738
15738
  return (i, r) => (q(), B("div", L7, [
15739
15739
  N("div", N7, [
15740
15740
  m(Gn, {
@@ -15918,7 +15918,7 @@ function oY() {
15918
15918
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
15919
15919
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
15920
15920
  }
15921
- var _o = typeof window < "u" && typeof window.document < "u", ka = _o ? window : {}, ql = _o && ka.document.documentElement ? "ontouchstart" in ka.document.documentElement : !1, Yl = _o ? "PointerEvent" in ka : !1, Qe = "cropper", Xl = "all", Hc = "crop", Wc = "move", Gc = "zoom", ys = "e", bs = "w", Ns = "s", Qa = "n", Ai = "ne", yi = "nw", bi = "se", Ci = "sw", En = "".concat(Qe, "-crop"), Xd = "".concat(Qe, "-disabled"), Mt = "".concat(Qe, "-hidden"), Ad = "".concat(Qe, "-hide"), nY = "".concat(Qe, "-invisible"), eo = "".concat(Qe, "-modal"), Mn = "".concat(Qe, "-move"), Ni = "".concat(Qe, "Action"), yr = "".concat(Qe, "Preview"), Al = "crop", Jc = "move", Zc = "none", $n = "crop", Bn = "cropend", Pn = "cropmove", On = "cropstart", yd = "dblclick", lY = ql ? "touchstart" : "mousedown", dY = ql ? "touchmove" : "mousemove", uY = ql ? "touchend touchcancel" : "mouseup", bd = Yl ? "pointerdown" : lY, Cd = Yl ? "pointermove" : dY, xd = Yl ? "pointerup pointercancel" : uY, wd = "ready", kd = "resize", Id = "wheel", Rn = "zoom", _d = "image/jpeg", cY = /^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/, mY = /^data:/, fY = /^data:image\/jpeg;base64,/, VY = /^img|canvas$/i, Qc = 200, em = 100, Sd = {
15921
+ var _o = typeof window < "u" && typeof window.document < "u", ka = _o ? window : {}, ql = _o && ka.document.documentElement ? "ontouchstart" in ka.document.documentElement : !1, Yl = _o ? "PointerEvent" in ka : !1, Qe = "cropper", Xl = "all", Hc = "crop", Wc = "move", Gc = "zoom", ys = "e", bs = "w", Ns = "s", Qa = "n", Ai = "ne", yi = "nw", bi = "se", Ci = "sw", En = "".concat(Qe, "-crop"), Xd = "".concat(Qe, "-disabled"), $t = "".concat(Qe, "-hidden"), Ad = "".concat(Qe, "-hide"), nY = "".concat(Qe, "-invisible"), eo = "".concat(Qe, "-modal"), Mn = "".concat(Qe, "-move"), Ni = "".concat(Qe, "Action"), yr = "".concat(Qe, "Preview"), Al = "crop", Jc = "move", Zc = "none", $n = "crop", Bn = "cropend", Pn = "cropmove", On = "cropstart", yd = "dblclick", lY = ql ? "touchstart" : "mousedown", dY = ql ? "touchmove" : "mousemove", uY = ql ? "touchend touchcancel" : "mouseup", bd = Yl ? "pointerdown" : lY, Cd = Yl ? "pointermove" : dY, xd = Yl ? "pointerup pointercancel" : uY, wd = "ready", kd = "resize", Id = "wheel", Rn = "zoom", _d = "image/jpeg", cY = /^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/, mY = /^data:/, fY = /^data:image\/jpeg;base64,/, VY = /^img|canvas$/i, Qc = 200, em = 100, Sd = {
15922
15922
  // Define the view mode of the cropper
15923
15923
  viewMode: 0,
15924
15924
  // 0, 1, 2, 3
@@ -16013,7 +16013,7 @@ function Zs(a) {
16013
16013
  return !1;
16014
16014
  }
16015
16015
  }
16016
- function Et(a) {
16016
+ function Mt(a) {
16017
16017
  return typeof a == "function";
16018
16018
  }
16019
16019
  var FY = Array.prototype.slice;
@@ -16021,7 +16021,7 @@ function tm(a) {
16021
16021
  return Array.from ? Array.from(a) : FY.call(a);
16022
16022
  }
16023
16023
  function ft(a, t) {
16024
- return a && Et(t) && (Array.isArray(a) || Ee(a.length) ? tm(a).forEach(function(e, s) {
16024
+ return a && Mt(t) && (Array.isArray(a) || Ee(a.length) ? tm(a).forEach(function(e, s) {
16025
16025
  t.call(a, e, s, a);
16026
16026
  }) : Ts(a) && Object.keys(a).forEach(function(e) {
16027
16027
  t.call(a, a[e], e, a);
@@ -16149,7 +16149,7 @@ function Fa(a, t, e) {
16149
16149
  a.removeEventListener(r, i, s);
16150
16150
  });
16151
16151
  }
16152
- function aa(a, t, e) {
16152
+ function sa(a, t, e) {
16153
16153
  var s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, i = e;
16154
16154
  t.trim().split(am).forEach(function(r) {
16155
16155
  if (s.once && !sm) {
@@ -16166,7 +16166,7 @@ function aa(a, t, e) {
16166
16166
  }
16167
16167
  function si(a, t, e) {
16168
16168
  var s;
16169
- return Et(Event) && Et(CustomEvent) ? s = new CustomEvent(t, {
16169
+ return Mt(Event) && Mt(CustomEvent) ? s = new CustomEvent(t, {
16170
16170
  detail: e,
16171
16171
  bubbles: !0,
16172
16172
  cancelable: !0
@@ -16368,7 +16368,7 @@ var TY = {
16368
16368
  },
16369
16369
  initContainer: function() {
16370
16370
  var t = this.element, e = this.options, s = this.container, i = this.cropper, r = Number(e.minContainerWidth), o = Number(e.minContainerHeight);
16371
- Ft(i, Mt), Ca(t, Mt);
16371
+ Ft(i, $t), Ca(t, $t);
16372
16372
  var l = {
16373
16373
  width: Math.max(s.offsetWidth, r >= 0 ? r : Qc),
16374
16374
  height: Math.max(s.offsetHeight, o >= 0 ? o : em)
@@ -16376,7 +16376,7 @@ var TY = {
16376
16376
  this.containerData = l, ds(i, {
16377
16377
  width: l.width,
16378
16378
  height: l.height
16379
- }), Ft(t, Mt), Ca(i, Mt);
16379
+ }), Ft(t, $t), Ca(i, $t);
16380
16380
  },
16381
16381
  // Canvas (image wrapper)
16382
16382
  initCanvas: function() {
@@ -16520,14 +16520,14 @@ var TY = {
16520
16520
  }, MY = {
16521
16521
  bind: function() {
16522
16522
  var t = this.element, e = this.options, s = this.cropper;
16523
- Et(e.cropstart) && aa(t, On, e.cropstart), Et(e.cropmove) && aa(t, Pn, e.cropmove), Et(e.cropend) && aa(t, Bn, e.cropend), Et(e.crop) && aa(t, $n, e.crop), Et(e.zoom) && aa(t, Rn, e.zoom), aa(s, bd, this.onCropStart = this.cropStart.bind(this)), e.zoomable && e.zoomOnWheel && aa(s, Id, this.onWheel = this.wheel.bind(this), {
16523
+ Mt(e.cropstart) && sa(t, On, e.cropstart), Mt(e.cropmove) && sa(t, Pn, e.cropmove), Mt(e.cropend) && sa(t, Bn, e.cropend), Mt(e.crop) && sa(t, $n, e.crop), Mt(e.zoom) && sa(t, Rn, e.zoom), sa(s, bd, this.onCropStart = this.cropStart.bind(this)), e.zoomable && e.zoomOnWheel && sa(s, Id, this.onWheel = this.wheel.bind(this), {
16524
16524
  passive: !1,
16525
16525
  capture: !0
16526
- }), e.toggleDragModeOnDblclick && aa(s, yd, this.onDblclick = this.dblclick.bind(this)), aa(t.ownerDocument, Cd, this.onCropMove = this.cropMove.bind(this)), aa(t.ownerDocument, xd, this.onCropEnd = this.cropEnd.bind(this)), e.responsive && aa(window, kd, this.onResize = this.resize.bind(this));
16526
+ }), e.toggleDragModeOnDblclick && sa(s, yd, this.onDblclick = this.dblclick.bind(this)), sa(t.ownerDocument, Cd, this.onCropMove = this.cropMove.bind(this)), sa(t.ownerDocument, xd, this.onCropEnd = this.cropEnd.bind(this)), e.responsive && sa(window, kd, this.onResize = this.resize.bind(this));
16527
16527
  },
16528
16528
  unbind: function() {
16529
16529
  var t = this.element, e = this.options, s = this.cropper;
16530
- Et(e.cropstart) && Fa(t, On, e.cropstart), Et(e.cropmove) && Fa(t, Pn, e.cropmove), Et(e.cropend) && Fa(t, Bn, e.cropend), Et(e.crop) && Fa(t, $n, e.crop), Et(e.zoom) && Fa(t, Rn, e.zoom), Fa(s, bd, this.onCropStart), e.zoomable && e.zoomOnWheel && Fa(s, Id, this.onWheel, {
16530
+ Mt(e.cropstart) && Fa(t, On, e.cropstart), Mt(e.cropmove) && Fa(t, Pn, e.cropmove), Mt(e.cropend) && Fa(t, Bn, e.cropend), Mt(e.crop) && Fa(t, $n, e.crop), Mt(e.zoom) && Fa(t, Rn, e.zoom), Fa(s, bd, this.onCropStart), e.zoomable && e.zoomOnWheel && Fa(s, Id, this.onWheel, {
16531
16531
  passive: !1,
16532
16532
  capture: !0
16533
16533
  }), e.toggleDragModeOnDblclick && Fa(s, yd, this.onDblclick), Fa(t.ownerDocument, Cd, this.onCropMove), Fa(t.ownerDocument, xd, this.onCropEnd), e.responsive && Fa(window, kd, this.onResize);
@@ -16701,7 +16701,7 @@ var TY = {
16701
16701
  A = !1;
16702
16702
  break;
16703
16703
  }
16704
- X = im(this.cropper), d = b.startX - X.left, u = b.startY - X.top, c = r.minWidth, f = r.minHeight, x.x > 0 ? l = x.y > 0 ? bi : Ai : x.x < 0 && (d -= c, l = x.y > 0 ? Ci : yi), x.y < 0 && (u -= f), this.cropped || (Ca(this.cropBox, Mt), this.cropped = !0, this.limited && this.limitCropBox(!0, !0));
16704
+ X = im(this.cropper), d = b.startX - X.left, u = b.startY - X.top, c = r.minWidth, f = r.minHeight, x.x > 0 ? l = x.y > 0 ? bi : Ai : x.x < 0 && (d -= c, l = x.y > 0 ? Ci : yi), x.y < 0 && (u -= f), this.cropped || (Ca(this.cropBox, $t), this.cropped = !0, this.limited && this.limitCropBox(!0, !0));
16705
16705
  break;
16706
16706
  }
16707
16707
  A && (r.width = c, r.height = f, r.left = d, r.top = u, this.action = l, this.renderCropBox()), ft(o, function(L) {
@@ -16711,7 +16711,7 @@ var TY = {
16711
16711
  }, PY = {
16712
16712
  // Show the crop box manually
16713
16713
  crop: function() {
16714
- return this.ready && !this.cropped && !this.disabled && (this.cropped = !0, this.limitCropBox(!0, !0), this.options.modal && Ft(this.dragBox, eo), Ca(this.cropBox, Mt), this.setCropBoxData(this.initialCropBoxData)), this;
16714
+ return this.ready && !this.cropped && !this.disabled && (this.cropped = !0, this.limitCropBox(!0, !0), this.options.modal && Ft(this.dragBox, eo), Ca(this.cropBox, $t), this.setCropBoxData(this.initialCropBoxData)), this;
16715
16715
  },
16716
16716
  // Reset the image and crop box to their initial states
16717
16717
  reset: function() {
@@ -16724,7 +16724,7 @@ var TY = {
16724
16724
  top: 0,
16725
16725
  width: 0,
16726
16726
  height: 0
16727
- }), this.cropped = !1, this.renderCropBox(), this.limitCanvas(!0, !0), this.renderCanvas(), Ca(this.dragBox, eo), Ft(this.cropBox, Mt)), this;
16727
+ }), this.cropped = !1, this.renderCropBox(), this.limitCanvas(!0, !0), this.renderCanvas(), Ca(this.dragBox, eo), Ft(this.cropBox, $t)), this;
16728
16728
  },
16729
16729
  /**
16730
16730
  * Replace the image's src and rebuild the cropper
@@ -17119,7 +17119,7 @@ var TY = {
17119
17119
  var e = this.element, s = this.options, i = this.image, r = e.parentNode, o = document.createElement("div");
17120
17120
  o.innerHTML = pY;
17121
17121
  var l = o.querySelector(".".concat(Qe, "-container")), n = l.querySelector(".".concat(Qe, "-canvas")), d = l.querySelector(".".concat(Qe, "-drag-box")), u = l.querySelector(".".concat(Qe, "-crop-box")), c = u.querySelector(".".concat(Qe, "-face"));
17122
- this.container = r, this.cropper = l, this.canvas = n, this.dragBox = d, this.cropBox = u, this.viewBox = l.querySelector(".".concat(Qe, "-view-box")), this.face = c, n.appendChild(i), Ft(e, Mt), r.insertBefore(l, e.nextSibling), Ca(i, Ad), this.initPreview(), this.bind(), s.initialAspectRatio = Math.max(0, s.initialAspectRatio) || NaN, s.aspectRatio = Math.max(0, s.aspectRatio) || NaN, s.viewMode = Math.max(0, Math.min(3, Math.round(s.viewMode))) || 0, Ft(u, Mt), s.guides || Ft(u.getElementsByClassName("".concat(Qe, "-dashed")), Mt), s.center || Ft(u.getElementsByClassName("".concat(Qe, "-center")), Mt), s.background && Ft(l, "".concat(Qe, "-bg")), s.highlight || Ft(c, nY), s.cropBoxMovable && (Ft(c, Mn), Ui(c, Ni, Xl)), s.cropBoxResizable || (Ft(u.getElementsByClassName("".concat(Qe, "-line")), Mt), Ft(u.getElementsByClassName("".concat(Qe, "-point")), Mt)), this.render(), this.ready = !0, this.setDragMode(s.dragMode), s.autoCrop && this.crop(), this.setData(s.data), Et(s.ready) && aa(e, wd, s.ready, {
17122
+ this.container = r, this.cropper = l, this.canvas = n, this.dragBox = d, this.cropBox = u, this.viewBox = l.querySelector(".".concat(Qe, "-view-box")), this.face = c, n.appendChild(i), Ft(e, $t), r.insertBefore(l, e.nextSibling), Ca(i, Ad), this.initPreview(), this.bind(), s.initialAspectRatio = Math.max(0, s.initialAspectRatio) || NaN, s.aspectRatio = Math.max(0, s.aspectRatio) || NaN, s.viewMode = Math.max(0, Math.min(3, Math.round(s.viewMode))) || 0, Ft(u, $t), s.guides || Ft(u.getElementsByClassName("".concat(Qe, "-dashed")), $t), s.center || Ft(u.getElementsByClassName("".concat(Qe, "-center")), $t), s.background && Ft(l, "".concat(Qe, "-bg")), s.highlight || Ft(c, nY), s.cropBoxMovable && (Ft(c, Mn), Ui(c, Ni, Xl)), s.cropBoxResizable || (Ft(u.getElementsByClassName("".concat(Qe, "-line")), $t), Ft(u.getElementsByClassName("".concat(Qe, "-point")), $t)), this.render(), this.ready = !0, this.setDragMode(s.dragMode), s.autoCrop && this.crop(), this.setData(s.data), Mt(s.ready) && sa(e, wd, s.ready, {
17123
17123
  once: !0
17124
17124
  }), si(e, wd);
17125
17125
  }
@@ -17130,7 +17130,7 @@ var TY = {
17130
17130
  if (this.ready) {
17131
17131
  this.ready = !1, this.unbind(), this.resetPreview();
17132
17132
  var e = this.cropper.parentNode;
17133
- e && e.removeChild(this.cropper), Ca(this.element, Mt);
17133
+ e && e.removeChild(this.cropper), Ca(this.element, $t);
17134
17134
  }
17135
17135
  }
17136
17136
  }, {
@@ -17240,7 +17240,7 @@ const RY = { class: "d-flex flex-column" }, zY = {
17240
17240
  const { containerStyle: f, src: Y, alt: v, imgStyle: g, ...h } = e, C = h, F = {};
17241
17241
  for (const A in h)
17242
17242
  Object.prototype.hasOwnProperty.call(C, A) && C[A] !== void 0 && (F[A] = C[A]);
17243
- Gt(() => {
17243
+ Jt(() => {
17244
17244
  te(i.value) || (s.value = new om(i.value, F), setTimeout(() => {
17245
17245
  r.value = !1;
17246
17246
  }, 1e3));
@@ -17252,12 +17252,12 @@ const RY = { class: "d-flex flex-column" }, zY = {
17252
17252
  m(tt, { indeterminate: "" })
17253
17253
  ])) : j("", !0),
17254
17254
  N("div", {
17255
- style: $t(f.containerStyle)
17255
+ style: Bt(f.containerStyle)
17256
17256
  }, [
17257
17257
  N("img", {
17258
17258
  ref_key: "imgEl",
17259
17259
  ref: i,
17260
- style: $t([{ "max-width": "100%", opacity: r.value ? 0 : 1 }, f.imgStyle]),
17260
+ style: Bt([{ "max-width": "100%", opacity: r.value ? 0 : 1 }, f.imgStyle]),
17261
17261
  alt: f.alt,
17262
17262
  src: f.src
17263
17263
  }, null, 12, LY)
@@ -17339,7 +17339,7 @@ const RY = { class: "d-flex flex-column" }, zY = {
17339
17339
  extSystem: {}
17340
17340
  },
17341
17341
  setup(a) {
17342
- const { t } = ee(), { toolbarColor: e } = Ji(), s = Xa(), { asset: i, dialog: r, activeTab: o, loading: l } = St(s), n = () => {
17342
+ const { t } = ee(), { toolbarColor: e } = Ji(), s = Xa(), { asset: i, dialog: r, activeTab: o, loading: l } = Dt(s), n = () => {
17343
17343
  s.setAsset(null), r.value = null;
17344
17344
  }, d = D(!0), u = () => {
17345
17345
  d.value = !d.value;
@@ -17501,7 +17501,7 @@ const aX = { key: 0 }, sX = /* @__PURE__ */ W({
17501
17501
  extSystem: {}
17502
17502
  },
17503
17503
  setup(a) {
17504
- const t = a, { t: e } = ee(), s = D(["metadata", "file"]), i = Xa(), { asset: r, authorConflicts: o, metadataAreTouched: l } = St(i), n = ta(), d = _(() => n.getQueueItems(t.queueKey)), u = _(() => d.value[0] ?? null), c = _(() => Xe.Image), f = _(() => c.value === Xe.Image), Y = _(() => r.value && r.value.mainFile ? r.value.mainFile : null), v = () => {
17504
+ const t = a, { t: e } = ee(), s = D(["metadata", "file"]), i = Xa(), { asset: r, authorConflicts: o, metadataAreTouched: l } = Dt(i), n = aa(), d = _(() => n.getQueueItems(t.queueKey)), u = _(() => d.value[0] ?? null), c = _(() => Xe.Image), f = _(() => c.value === Xe.Image), Y = _(() => r.value && r.value.mainFile ? r.value.mainFile : null), v = () => {
17505
17505
  l.value = !0;
17506
17506
  }, { keywordRequired: g, keywordEnabled: h } = hl(c.value, t.extSystem), { authorRequired: C, authorEnabled: F } = Fl(c.value, t.extSystem);
17507
17507
  return (A, X) => u.value ? (q(), K(Wn, {
@@ -17858,7 +17858,7 @@ const aX = { key: 0 }, sX = /* @__PURE__ */ W({
17858
17858
  },
17859
17859
  emits: ["onSave", "onSaveAndApply"],
17860
17860
  setup(a, { emit: t }) {
17861
- const e = t, { t: s } = ee(), i = Xa(), { activeTab: r } = St(i);
17861
+ const e = t, { t: s } = ee(), i = Xa(), { activeTab: r } = Dt(i);
17862
17862
  return (o, l) => (q(), B("div", rX, [
17863
17863
  N("div", oX, [
17864
17864
  m(Gn, {
@@ -17971,13 +17971,13 @@ const aX = { key: 0 }, sX = /* @__PURE__ */ W({
17971
17971
  "data-cy": "delete-panel"
17972
17972
  }, {
17973
17973
  default: V(() => [
17974
- m(wt, { onOnCancel: l }, {
17974
+ m(kt, { onOnCancel: l }, {
17975
17975
  default: V(() => [
17976
17976
  M(I(p(n)("common.damImage.upload.stopConfirmQuestion")), 1)
17977
17977
  ]),
17978
17978
  _: 1
17979
17979
  }),
17980
- m(It, null, {
17980
+ m(_t, null, {
17981
17981
  default: V(() => [
17982
17982
  m(it),
17983
17983
  m(c, {
@@ -18043,7 +18043,7 @@ const aX = { key: 0 }, sX = /* @__PURE__ */ W({
18043
18043
  },
18044
18044
  emits: ["onApply"],
18045
18045
  setup(a, { emit: t }) {
18046
- const e = a, s = t, { showErrorsDefault: i, showRecordWas: r } = He(), { t: o } = ee(), { toolbarColor: l } = Ji(), n = Xa(), { activeTab: d, loading: u, asset: c } = St(n), f = D(!1), Y = ta(), { uploadQueueDialog: v } = So(), g = _(() => Y.getQueueItems(e.queueKey)), h = _(() => g.value[0] ?? null), C = _(() => !h.value || !h.value.assetId ? null : y.value && c.value ? c.value : {
18046
+ const e = a, s = t, { showErrorsDefault: i, showRecordWas: r } = He(), { t: o } = ee(), { toolbarColor: l } = Ji(), n = Xa(), { activeTab: d, loading: u, asset: c } = Dt(n), f = D(!1), Y = aa(), { uploadQueueDialog: v } = So(), g = _(() => Y.getQueueItems(e.queueKey)), h = _(() => g.value[0] ?? null), C = _(() => !h.value || !h.value.assetId ? null : y.value && c.value ? c.value : {
18047
18047
  id: h.value.assetId,
18048
18048
  texts: {
18049
18049
  displayTitle: ""
@@ -18076,8 +18076,8 @@ const aX = { key: 0 }, sX = /* @__PURE__ */ W({
18076
18076
  },
18077
18077
  _resourceName: "asset",
18078
18078
  _system: "coreDam",
18079
- createdAt: Lt(),
18080
- modifiedAt: Lt(),
18079
+ createdAt: Nt(),
18080
+ modifiedAt: Nt(),
18081
18081
  createdBy: null,
18082
18082
  modifiedBy: null
18083
18083
  }), F = D(!0), A = () => {
@@ -18126,7 +18126,7 @@ const aX = { key: 0 }, sX = /* @__PURE__ */ W({
18126
18126
  const fe = await jr(G, g.value);
18127
18127
  if (!fe[0])
18128
18128
  throw new Error("Fatal error updating asset metadata");
18129
- r("updated"), zt((ue = fe[0].customData) == null ? void 0 : ue.description) && (Ae = fe[0].customData.description.trim()), fe[0].authors.length > 0 && (Q = (await hi(G, e.extSystem, fe[0].authors)).map((Re) => Re.name).join(", ")), s(
18129
+ r("updated"), Lt((ue = fe[0].customData) == null ? void 0 : ue.description) && (Ae = fe[0].customData.description.trim()), fe[0].authors.length > 0 && (Q = (await hi(G, e.extSystem, fe[0].authors)).map((Re) => Re.name).join(", ")), s(
18130
18130
  "onApply",
18131
18131
  g.value.map((we) => ({
18132
18132
  texts: {
@@ -18371,7 +18371,7 @@ const aX = { key: 0 }, sX = /* @__PURE__ */ W({
18371
18371
  }
18372
18372
  }), Ed = /* @__PURE__ */ W({
18373
18373
  __name: "AFileInputDialog",
18374
- props: /* @__PURE__ */ _t({
18374
+ props: /* @__PURE__ */ St({
18375
18375
  fileInputKey: { default: void 0 },
18376
18376
  accept: { default: void 0 },
18377
18377
  maxSizes: { default: void 0 },
@@ -18380,7 +18380,7 @@ const aX = { key: 0 }, sX = /* @__PURE__ */ W({
18380
18380
  modelValue: { type: Boolean, default: !1, required: !1 },
18381
18381
  modelModifiers: {}
18382
18382
  }),
18383
- emits: /* @__PURE__ */ _t(["change", "filesInput"], ["update:modelValue"]),
18383
+ emits: /* @__PURE__ */ St(["change", "filesInput"], ["update:modelValue"]),
18384
18384
  setup(a, { expose: t, emit: e }) {
18385
18385
  const s = e, i = qa(a, "modelValue"), r = () => {
18386
18386
  i.value = !1;
@@ -18402,7 +18402,7 @@ const aX = { key: 0 }, sX = /* @__PURE__ */ W({
18402
18402
  }, {
18403
18403
  activator: V(({ props: Y }) => [
18404
18404
  le(u.$slots, "activator", { props: Y }, () => [
18405
- m(ie, Dt(Y, {
18405
+ m(ie, Kt(Y, {
18406
18406
  text: p(o)("common.button.open")
18407
18407
  }), null, 16, ["text"])
18408
18408
  ])
@@ -18413,7 +18413,7 @@ const aX = { key: 0 }, sX = /* @__PURE__ */ W({
18413
18413
  "data-cy": "create-panel"
18414
18414
  }, {
18415
18415
  default: V(() => [
18416
- m(wt, { onOnCancel: r }, {
18416
+ m(kt, { onOnCancel: r }, {
18417
18417
  default: V(() => [
18418
18418
  le(u.$slots, "title", {}, () => [
18419
18419
  M(I(p(o)("common.button.upload")), 1)
@@ -18441,7 +18441,7 @@ const aX = { key: 0 }, sX = /* @__PURE__ */ W({
18441
18441
  ]),
18442
18442
  _: 1
18443
18443
  }),
18444
- m(It, null, {
18444
+ m(_t, null, {
18445
18445
  default: V(() => [
18446
18446
  m(it),
18447
18447
  m(f, {
@@ -18478,13 +18478,14 @@ const aX = { key: 0 }, sX = /* @__PURE__ */ W({
18478
18478
  class: "required-mark ml-2"
18479
18479
  }, OX = { key: 0 }, RX = { key: 1 }, zX = { class: "position-relative" }, LX = { class: "d-flex align-center justify-center h-100" }, NX = /* @__PURE__ */ W({
18480
18480
  __name: "ImageWidgetInner",
18481
- props: /* @__PURE__ */ _t({
18481
+ props: /* @__PURE__ */ St({
18482
18482
  queueKey: {},
18483
18483
  uploadLicence: {},
18484
18484
  selectLicences: {},
18485
18485
  image: { default: void 0 },
18486
18486
  configName: { default: "default" },
18487
18487
  collab: { default: void 0 },
18488
+ collabStatus: { default: wt.Inactive },
18488
18489
  label: { default: void 0 },
18489
18490
  required: { type: Boolean, default: !1 },
18490
18491
  readonly: { type: Boolean, default: !1 },
@@ -18498,18 +18499,13 @@ const aX = { key: 0 }, sX = /* @__PURE__ */ W({
18498
18499
  modelValue: { required: !0 },
18499
18500
  modelModifiers: {}
18500
18501
  }),
18501
- emits: /* @__PURE__ */ _t(["afterMetadataSaveSuccess"], ["update:modelValue"]),
18502
+ emits: /* @__PURE__ */ St(["afterMetadataSaveSuccess"], ["update:modelValue"]),
18502
18503
  setup(a, { expose: t, emit: e }) {
18503
- const s = a, i = e, r = qa(a, "modelValue"), { collabOptions: o } = Qt(), l = D((de, ke) => {
18504
+ const s = a, i = e, r = qa(a, "modelValue"), { collabOptions: o } = ea(), l = D((de, ke) => {
18504
18505
  }), n = D((de) => {
18505
18506
  }), d = D(null);
18506
18507
  if (o.value.enabled && ve(s.collab)) {
18507
- const {
18508
- releaseCollabFieldLock: de,
18509
- acquireCollabFieldLock: ke,
18510
- addCollabFieldLockStatusListener: qt,
18511
- lockedByUser: fa
18512
- } = vs(s.collab.room, s.collab.field);
18508
+ const { releaseCollabFieldLock: de, acquireCollabFieldLock: ke, addCollabFieldLockStatusListener: qt, lockedByUser: fa } = vs(s.collab.room, s.collab.field);
18513
18509
  l.value = de, n.value = ke, qe(
18514
18510
  fa,
18515
18511
  (Ne) => {
@@ -18517,25 +18513,25 @@ const aX = { key: 0 }, sX = /* @__PURE__ */ W({
18517
18513
  },
18518
18514
  { immediate: !0 }
18519
18515
  ), qt((Ne) => {
18520
- Ne.status === Rt.Success && Ne.type === Ot.Acquire ? J.value = !0 : Ne.status === Rt.Failure && Ne.type === Ot.Acquire || Ne.status === Rt.Success && Ne.type === Ot.Release ? J.value = !1 : Ne.status === Rt.Failure && Ne.type === Ot.Release && (J.value = !0);
18516
+ Ne.status === zt.Success && Ne.type === Rt.Acquire ? J.value = !0 : Ne.status === zt.Failure && Ne.type === Rt.Acquire || Ne.status === zt.Success && Ne.type === Rt.Release ? J.value = !1 : Ne.status === zt.Failure && Ne.type === Rt.Release && (J.value = !0);
18521
18517
  });
18522
18518
  }
18523
18519
  const u = D(!1), c = () => {
18524
- u.value !== !0 && (n.value(), u.value = !0);
18520
+ u.value === !0 || s.collabStatus === wt.Inactive || (n.value(), u.value = !0);
18525
18521
  }, f = (de) => {
18526
- u.value !== !1 && (l.value(de), u.value = !1);
18522
+ u.value === !1 || s.collabStatus === wt.Inactive || (l.value(de), u.value = !1);
18527
18523
  }, Y = at(
18528
18524
  or,
18529
18525
  void 0
18530
18526
  );
18531
18527
  if (R(Y) || R(Y.value))
18532
18528
  throw new Error("Fatal error, parent component doesn't provide necessary config ext system config.");
18533
- const { t: v } = ee(), { showErrorsDefault: g, showError: h } = He(), C = er(s.configName), { imageClient: F } = C, { widgetImageToDamImageUrl: A } = dl(C), X = ta(), b = rr(), { uploadQueueDialog: x } = So(), P = D(null), L = D(!1), U = D(!1), O = D(!1), T = D(!1), z = D(!1), E = D(!1), k = _(() => te(r.value)), w = D(""), y = _(() => X.getQueue(s.queueKey)), S = _(() => !te(P.value)), $ = () => {
18529
+ const { t: v } = ee(), { showErrorsDefault: g, showError: h } = He(), C = er(s.configName), { imageClient: F } = C, { widgetImageToDamImageUrl: A } = dl(C), X = aa(), b = rr(), { uploadQueueDialog: x } = So(), P = D(null), L = D(!1), U = D(!1), O = D(!1), T = D(!1), z = D(!1), E = D(!1), k = _(() => te(r.value)), w = D(""), y = _(() => X.getQueue(s.queueKey)), S = _(() => !te(P.value)), $ = () => {
18534
18530
  b.setImageDetail(yt(P.value)), O.value = !0;
18535
18531
  }, H = () => {
18536
18532
  U.value = !0;
18537
18533
  }, { cachedExtSystemId: G } = xo(), J = D(!1), ae = async () => {
18538
- if (!o.value.enabled || R(s.collab))
18534
+ if (!o.value.enabled || R(s.collab) || s.collabStatus === wt.Inactive)
18539
18535
  return Promise.resolve(!0);
18540
18536
  let de = 0;
18541
18537
  const ke = () => J.value ? Promise.resolve(!0) : (de++, de < 50 ? new Promise((qt) => setTimeout(() => qt(ke()), 100)) : Promise.reject(!1));
@@ -18589,7 +18585,7 @@ const aX = { key: 0 }, sX = /* @__PURE__ */ W({
18589
18585
  if (!de.value[0] || !de.value[0].mainFile) return;
18590
18586
  try {
18591
18587
  const Va = await ns(pe, de.value[0].id);
18592
- zt((Ne = Va.metadata.customData) == null ? void 0 : Ne.description) && (qt = Va.metadata.customData.description.trim()), Va.authors.length > 0 && (fa = (await hi(
18588
+ Lt((Ne = Va.metadata.customData) == null ? void 0 : Ne.description) && (qt = Va.metadata.customData.description.trim()), Va.authors.length > 0 && (fa = (await hi(
18593
18589
  pe,
18594
18590
  ke.selectedSelectConfig.extSystem,
18595
18591
  Va.authors
@@ -18611,7 +18607,7 @@ const aX = { key: 0 }, sX = /* @__PURE__ */ W({
18611
18607
  };
18612
18608
  te(r.value) || (Za.id = r.value), b.setImageDetail(Za), z.value = !1, Te();
18613
18609
  }
18614
- }, fe = Xa(), { loading: we, dialog: Re } = St(fe), { damClient: pe } = ut(), se = async (de) => {
18610
+ }, fe = Xa(), { loading: we, dialog: Re } = Dt(fe), { damClient: pe } = ut(), se = async (de) => {
18615
18611
  we.value = !0, Re.value = s.queueKey;
18616
18612
  try {
18617
18613
  const ke = await Yo(pe, de), qt = await tl(pe, ke.licence);
@@ -18694,7 +18690,7 @@ const aX = { key: 0 }, sX = /* @__PURE__ */ W({
18694
18690
  ])) : j("", !0),
18695
18691
  N("div", TX, [
18696
18692
  qs.value && de.collab ? (q(), B("div", EX, [
18697
- m(Wt, {
18693
+ m(Gt, {
18698
18694
  id: d.value,
18699
18695
  users: de.collab.cachedUsers
18700
18696
  }, null, 8, ["id", "users"])
@@ -18956,7 +18952,7 @@ const aX = { key: 0 }, sX = /* @__PURE__ */ W({
18956
18952
  getDamConfigAssetCustomFormElements: d,
18957
18953
  getOrLoadDamConfigExtSystemByLicence: u,
18958
18954
  getOrLoadDamConfigExtSystemByLicences: c
18959
- } = ea(o), f = vt(void 0);
18955
+ } = ta(o), f = vt(void 0);
18960
18956
  gt(async () => {
18961
18957
  const g = Bs();
18962
18958
  if (f.value = await u(s.uploadLicence), R(f.value)) {
@@ -18984,7 +18980,7 @@ const aX = { key: 0 }, sX = /* @__PURE__ */ W({
18984
18980
  var g;
18985
18981
  (g = Y.value) == null || g.metadataConfirm();
18986
18982
  }
18987
- }), (g, h) => r.value === "ready" ? (q(), K(NX, Dt({
18983
+ }), (g, h) => r.value === "ready" ? (q(), K(NX, Kt({
18988
18984
  key: 0,
18989
18985
  ref_key: "innerComponent",
18990
18986
  ref: Y
@@ -19398,7 +19394,7 @@ const aX = { key: 0 }, sX = /* @__PURE__ */ W({
19398
19394
  s("fillEmptyField", { assetType: e.assetType, elementProperty: c, value: f });
19399
19395
  }, l = (c, f) => {
19400
19396
  s("replaceField", { assetType: e.assetType, elementProperty: c, value: f });
19401
- }, { getDamConfigAssetCustomFormElements: n } = ea(), d = n(e.extSystem);
19397
+ }, { getDamConfigAssetCustomFormElements: n } = ta(), d = n(e.extSystem);
19402
19398
  if (R(d))
19403
19399
  throw new Error("Custom form elements must be initialised.");
19404
19400
  const u = _(() => d[e.assetType]);
@@ -19469,7 +19465,7 @@ const aX = { key: 0 }, sX = /* @__PURE__ */ W({
19469
19465
  }
19470
19466
  });
19471
19467
  function vA(a) {
19472
- const t = ta();
19468
+ const t = aa();
19473
19469
  return {
19474
19470
  replaceEmptyCustomDataValue: (r, o = !1) => {
19475
19471
  const l = t.getQueueItems(a);
@@ -19501,7 +19497,7 @@ const hA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, FA = { clas
19501
19497
  extSystem: {}
19502
19498
  },
19503
19499
  setup(a) {
19504
- const t = a, e = D({ image: {}, video: {}, audio: {}, document: {} }), s = D([]), i = D([]), { t: r } = ee(), o = D(["general"]), l = ta(), { replaceEmptyCustomDataValue: n, replaceEmptyAuthors: d, replaceEmptyKeywords: u } = vA(
19500
+ const t = a, e = D({ image: {}, video: {}, audio: {}, document: {} }), s = D([]), i = D([]), { t: r } = ee(), o = D(["general"]), l = aa(), { replaceEmptyCustomDataValue: n, replaceEmptyAuthors: d, replaceEmptyKeywords: u } = vA(
19505
19501
  t.queueKey
19506
19502
  ), c = (X) => {
19507
19503
  n(X);
@@ -19825,7 +19821,7 @@ const hA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, FA = { clas
19825
19821
  },
19826
19822
  emits: ["showDetail"],
19827
19823
  setup(a, { emit: t }) {
19828
- const e = a, s = t, i = ta(), r = _(() => i.getQueueItems(e.queueKey)), o = (f) => {
19824
+ const e = a, s = t, i = aa(), r = _(() => i.getQueueItems(e.queueKey)), o = (f) => {
19829
19825
  i.stopItemUpload(f.queueKey, f.item, f.index);
19830
19826
  }, l = (f) => {
19831
19827
  i.removeByIndex(e.queueKey, f);
@@ -19892,7 +19888,7 @@ const hA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, FA = { clas
19892
19888
  },
19893
19889
  emits: ["onDrop", "onFilesInput", "onApply"],
19894
19890
  setup(a, { emit: t }) {
19895
- const e = a, s = t, { uploadQueueDialog: i, uploadQueueSidebar: r, toggleUploadQueueSidebar: o } = So(), l = rr(), { maxPosition: n } = St(l), d = ta(), u = _(() => d.getQueueTotalCount(e.queueKey)), c = _(() => d.getQueueItems(e.queueKey)), f = _(() => d.getQueueProcessedCount(e.queueKey)), Y = _(() => u.value > f.value), v = _(() => u.value === f.value), { t: g } = ee(), { toolbarColor: h } = Ji(), C = ca(), { showRecordWas: F, showValidationError: A, showErrorsDefault: X } = He(), { damClient: b } = ut(), x = D(!1), P = D(!1), L = async () => {
19891
+ const e = a, s = t, { uploadQueueDialog: i, uploadQueueSidebar: r, toggleUploadQueueSidebar: o } = So(), l = rr(), { maxPosition: n } = Dt(l), d = aa(), u = _(() => d.getQueueTotalCount(e.queueKey)), c = _(() => d.getQueueItems(e.queueKey)), f = _(() => d.getQueueProcessedCount(e.queueKey)), Y = _(() => u.value > f.value), v = _(() => u.value === f.value), { t: g } = ee(), { toolbarColor: h } = Ji(), C = ca(), { showRecordWas: F, showValidationError: A, showErrorsDefault: X } = He(), { damClient: b } = ut(), x = D(!1), P = D(!1), L = async () => {
19896
19892
  d.stopUpload(e.queueKey), i.value = null;
19897
19893
  }, U = async () => {
19898
19894
  const S = yt(c.value);
@@ -19915,7 +19911,7 @@ const hA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, FA = { clas
19915
19911
  $.forEach((Ve) => {
19916
19912
  var me;
19917
19913
  H.set(Ve.id, {
19918
- description: zt((me = Ve.customData) == null ? void 0 : me.description) ? Ve.customData.description.trim() : "",
19914
+ description: Lt((me = Ve.customData) == null ? void 0 : me.description) ? Ve.customData.description.trim() : "",
19919
19915
  authorIds: Ve.authors
19920
19916
  });
19921
19917
  }), H.forEach((Ve) => {
@@ -19967,7 +19963,7 @@ const hA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, FA = { clas
19967
19963
  P.value = !1;
19968
19964
  }
19969
19965
  }
19970
- }, z = Xa(), { loading: E, dialog: k, updateUploadStore: w } = St(z), y = async (S) => {
19966
+ }, z = Xa(), { loading: E, dialog: k, updateUploadStore: w } = Dt(z), y = async (S) => {
19971
19967
  try {
19972
19968
  z.setAsset(null), E.value = !0, k.value = e.queueKey, w.value = !0, z.setAsset(await ns(b, S));
19973
19969
  } catch ($) {
@@ -20063,7 +20059,7 @@ const hA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, FA = { clas
20063
20059
  onFilesInput: $[0] || ($[0] = (G) => s("onFilesInput", G))
20064
20060
  }, {
20065
20061
  activator: V(({ props: G }) => [
20066
- m(ie, Dt({
20062
+ m(ie, Kt({
20067
20063
  tabindex: "-1",
20068
20064
  icon: "",
20069
20065
  variant: "text",
@@ -20162,7 +20158,7 @@ const hA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, FA = { clas
20162
20158
  );
20163
20159
  if (R(d) || R(d.value))
20164
20160
  throw new Error("Fatal error, parent component doesn't provide necessary config ext system config.");
20165
- const u = ta(), c = _(() => u.getQueueTotalCount(s.queueKey)), f = _(() => c.value === Cs), Y = () => {
20161
+ const u = aa(), c = _(() => u.getQueueTotalCount(s.queueKey)), f = _(() => c.value === Cs), Y = () => {
20166
20162
  r.value = !0;
20167
20163
  }, v = async () => {
20168
20164
  if (R(d) || R(d.value))
@@ -20199,7 +20195,7 @@ const hA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, FA = { clas
20199
20195
  "data-cy": "delete-panel"
20200
20196
  }, {
20201
20197
  default: V(() => [
20202
- m(wt, { onOnCancel: g }, {
20198
+ m(kt, { onOnCancel: g }, {
20203
20199
  default: V(() => [
20204
20200
  M(I(p(n)("common.damImage.upload.limits.uploadWarning")), 1)
20205
20201
  ]),
@@ -20218,7 +20214,7 @@ const hA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, FA = { clas
20218
20214
  ]),
20219
20215
  _: 1
20220
20216
  }),
20221
- m(It, null, {
20217
+ m(_t, null, {
20222
20218
  default: V(() => [
20223
20219
  m(it),
20224
20220
  m(A, {
@@ -20283,7 +20279,7 @@ const hA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, FA = { clas
20283
20279
  const l = er(s.configName), { imageClient: n } = l, { showErrorsDefault: d, showValidationError: u } = He(), c = D(null), { uploadSizes: f, uploadAccept: Y } = pc(
20284
20280
  Xe.Image,
20285
20281
  o.value.extSystemConfig
20286
- ), { t: v } = ee(), g = D(!1), h = rr(), { images: C, maxPosition: F } = St(h), A = async () => {
20282
+ ), { t: v } = ee(), g = D(!1), h = rr(), { images: C, maxPosition: F } = Dt(h), A = async () => {
20287
20283
  try {
20288
20284
  g.value = !0;
20289
20285
  const pe = await Sc(n, s.modelValue);
@@ -20301,7 +20297,7 @@ const hA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, FA = { clas
20301
20297
  } finally {
20302
20298
  g.value = !1;
20303
20299
  }
20304
- }, X = ta(), b = _(() => X.getQueue(s.queueKey)), { cachedExtSystemId: x } = xo(), { uploadQueueDialog: P } = So(), L = (pe) => {
20300
+ }, X = aa(), b = _(() => X.getQueue(s.queueKey)), { cachedExtSystemId: x } = xo(), { uploadQueueDialog: P } = So(), L = (pe) => {
20305
20301
  var Ye;
20306
20302
  const se = o.value;
20307
20303
  R(se) || (x.value = se.extSystem, (Ye = Ae.value) == null || Ye.check(pe), P.value = s.queueKey);
@@ -20317,7 +20313,7 @@ const hA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, FA = { clas
20317
20313
  (await $v(y, Ye, se.selectedLicenceId)).forEach((_e) => {
20318
20314
  var pt;
20319
20315
  ot.set(_e.id, {
20320
- description: zt((pt = _e.metadata.customData) == null ? void 0 : pt.description) ? _e.metadata.customData.description.trim() : "",
20316
+ description: Lt((pt = _e.metadata.customData) == null ? void 0 : pt.description) ? _e.metadata.customData.description.trim() : "",
20321
20317
  authorIds: _e.authors
20322
20318
  });
20323
20319
  }), ot.forEach((_e) => {
@@ -20359,7 +20355,7 @@ const hA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, FA = { clas
20359
20355
  const se = await T(pe.value.filter((Ye) => !te(Ye.mainFile)));
20360
20356
  h.addImages(se);
20361
20357
  }
20362
- }, E = Xa(), { loading: k, dialog: w } = St(E), { damClient: y } = ut(), S = async (pe) => {
20358
+ }, E = Xa(), { loading: k, dialog: w } = Dt(E), { damClient: y } = ut(), S = async (pe) => {
20363
20359
  k.value = !0, w.value = s.queueKey;
20364
20360
  try {
20365
20361
  const se = await Yo(y, pe), Ye = await tl(y, se.licence);
@@ -20409,7 +20405,7 @@ const hA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, FA = { clas
20409
20405
  h.removeImageByIndex(pe);
20410
20406
  }
20411
20407
  }, Ve = D(null), me = D(ss()), Ke = D(null), Oe = D(0), Ae = D(null), Q = _(() => R(s.widgetIdentifierId) ? ll + me.value : s.widgetIdentifierId), ue = () => {
20412
- Oe.value++, Gt(() => {
20408
+ Oe.value++, Jt(() => {
20413
20409
  Re();
20414
20410
  });
20415
20411
  }, fe = () => {
@@ -20435,7 +20431,7 @@ const hA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, FA = { clas
20435
20431
  }
20436
20432
  }));
20437
20433
  };
20438
- return Gt(() => {
20434
+ return Jt(() => {
20439
20435
  Ve.value = document.querySelector("#" + Q.value), Re();
20440
20436
  }), t({
20441
20437
  saveImages: J
@@ -20453,7 +20449,7 @@ const hA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, FA = { clas
20453
20449
  onFilesInput: L
20454
20450
  }, {
20455
20451
  activator: V(({ props: nt }) => [
20456
- m(ie, Dt({
20452
+ m(ie, Kt({
20457
20453
  ref_key: "uploadButtonComponent",
20458
20454
  ref: c
20459
20455
  }, nt), {
@@ -20563,7 +20559,7 @@ const hA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, FA = { clas
20563
20559
  getDamConfigAssetCustomFormElements: d,
20564
20560
  getOrLoadDamConfigExtSystemByLicence: u,
20565
20561
  getOrLoadDamConfigExtSystemByLicences: c
20566
- } = ea(o), f = vt(void 0);
20562
+ } = ta(o), f = vt(void 0);
20567
20563
  gt(async () => {
20568
20564
  const g = Bs();
20569
20565
  if (f.value = await u(s.uploadLicence), R(f.value)) {
@@ -20588,7 +20584,7 @@ const hA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, FA = { clas
20588
20584
  const Y = D(null), v = async () => Y.value ? await Y.value.saveImages() : !1;
20589
20585
  return Oi(or, f), t({
20590
20586
  saveImages: v
20591
- }), (g, h) => r.value === "ready" ? (q(), K(jA, Dt({
20587
+ }), (g, h) => r.value === "ready" ? (q(), K(jA, Kt({
20592
20588
  key: 0,
20593
20589
  ref_key: "innerComponent",
20594
20590
  ref: Y
@@ -20655,7 +20651,7 @@ const hA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, FA = { clas
20655
20651
  }
20656
20652
  }), QA = ["src"], LD = /* @__PURE__ */ W({
20657
20653
  __name: "AImagePublicInput",
20658
- props: /* @__PURE__ */ _t({
20654
+ props: /* @__PURE__ */ St({
20659
20655
  selectLicences: {},
20660
20656
  image: { default: void 0 },
20661
20657
  configName: { default: "default" },
@@ -20683,7 +20679,7 @@ const hA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, FA = { clas
20683
20679
  }, x = ca(b, { meta: r }, { $stopPropagation: !0 }), P = async () => {
20684
20680
  if (d.value = !0, n.value = !0, i.value = i.value.trim(), i.value.startsWith("http")) {
20685
20681
  const E = C(i.value);
20686
- zt(E) && (i.value = E);
20682
+ Lt(E) && (i.value = E);
20687
20683
  }
20688
20684
  if (!Wd(i.value))
20689
20685
  return n.value = !1, Promise.reject("Incorrect URL/ID provided");
@@ -20992,7 +20988,7 @@ const jD = (a, t) => ({
20992
20988
  function WD(a = "", t = "user") {
20993
20989
  let e = a, s = t;
20994
20990
  return {
20995
- createAnzuUser: (r, o) => (zt(r) && (e = r), zt(o) && (s = o), {
20991
+ createAnzuUser: (r, o) => (Lt(r) && (e = r), Lt(o) && (s = o), {
20996
20992
  id: null,
20997
20993
  email: "",
20998
20994
  avatar: {
@@ -21009,9 +21005,9 @@ function WD(a = "", t = "user") {
21009
21005
  permissions: {},
21010
21006
  resolvedPermissions: {},
21011
21007
  roles: [],
21012
- modifiedAt: Lt(),
21008
+ modifiedAt: Nt(),
21013
21009
  modifiedBy: null,
21014
- createdAt: Lt(),
21010
+ createdAt: Nt(),
21015
21011
  createdBy: null,
21016
21012
  _system: e,
21017
21013
  _resourceName: s
@@ -21041,8 +21037,8 @@ function JD() {
21041
21037
  permissions: {},
21042
21038
  createdBy: 0,
21043
21039
  modifiedBy: 0,
21044
- createdAt: Lt(),
21045
- modifiedAt: Lt(),
21040
+ createdAt: Nt(),
21041
+ modifiedAt: Nt(),
21046
21042
  _resourceName: "permissionGroup",
21047
21043
  _system: ""
21048
21044
  })
@@ -21114,7 +21110,7 @@ const Cr = "/adm/v1/job", xr = "job";
21114
21110
  function tK(a, t) {
21115
21111
  return {
21116
21112
  fetchJobList: (o, l) => Wa(a, Cr, {}, o, l, t, xr),
21117
- fetchJob: (o) => Nt(a, Cr + "/:id", { id: o }, t, xr),
21113
+ fetchJob: (o) => Ut(a, Cr + "/:id", { id: o }, t, xr),
21118
21114
  createJob: (o) => {
21119
21115
  const l = rf(o._resourceName).slice(4).replace("-kind-", "-kind/");
21120
21116
  return bo(a, o, Cr + "/:type", { type: l }, t, xr);
@@ -23414,7 +23410,7 @@ function VK(a) {
23414
23410
  return a;
23415
23411
  }
23416
23412
  async function pK() {
23417
- (await import("./webfontloader-KmvTr09q.js").then((t) => t.w)).load({
23413
+ (await import("./webfontloader-Y6MfaVcC.js").then((t) => t.w)).load({
23418
23414
  google: {
23419
23415
  families: ["Roboto:100,300,400,500,700,900&display=swap"]
23420
23416
  }
@@ -23424,7 +23420,7 @@ async function pK() {
23424
23420
  function vK() {
23425
23421
  const a = (e, s) => ({
23426
23422
  id: 0,
23427
- scheduledAt: Lt(),
23423
+ scheduledAt: Nt(),
23428
23424
  priority: 1,
23429
23425
  status: qp,
23430
23426
  result: "",
@@ -23432,8 +23428,8 @@ function vK() {
23432
23428
  finishedAt: null,
23433
23429
  startedAt: null,
23434
23430
  lastBatchProcessedRecord: "",
23435
- createdAt: Lt(),
23436
- modifiedAt: Lt(),
23431
+ createdAt: Nt(),
23432
+ modifiedAt: Nt(),
23437
23433
  createdBy: null,
23438
23434
  modifiedBy: null,
23439
23435
  _resourceName: e,
@@ -23466,9 +23462,9 @@ function hK(a) {
23466
23462
  isStatusUnauthorized: r
23467
23463
  };
23468
23464
  }
23469
- const JI = "/adm/v1/user/current", FK = (a) => Nt(a, JI, {}, "coreDam", "user");
23465
+ const JI = "/adm/v1/user/current", FK = (a) => Ut(a, JI, {}, "coreDam", "user");
23470
23466
  function gK() {
23471
- const { collabOptions: a } = Qt(), { showWarningT: t, showSuccessT: e } = He(), { collabConnected: s, collabSocket: i, collabRoomInfoState: r, collabFieldLocksState: o } = lo();
23467
+ const { collabOptions: a } = ea(), { showWarningT: t, showSuccessT: e } = He(), { collabConnected: s, collabSocket: i, collabRoomInfoState: r, collabFieldLocksState: o } = lo();
23472
23468
  return {
23473
23469
  initCollab: () => {
23474
23470
  var F, A, X, b, x, P, L, U, O;
@@ -23526,7 +23522,7 @@ function gK() {
23526
23522
  s.value = ((T = i.value) == null ? void 0 : T.connected) ?? !1;
23527
23523
  }), i.value.on("disconnect", (T) => {
23528
23524
  var z, E;
23529
- r.forEach((k) => k.status = ra.Inactive), s.value = ((z = i.value) == null ? void 0 : z.connected) ?? !1, T === "io server disconnect" && ((E = i.value) == null || E.connect());
23525
+ r.forEach((k) => k.status = wt.Inactive), s.value = ((z = i.value) == null ? void 0 : z.connected) ?? !1, T === "io server disconnect" && ((E = i.value) == null || E.connect());
23530
23526
  }));
23531
23527
  }
23532
23528
  };
@@ -23541,7 +23537,7 @@ function qK() {
23541
23537
  };
23542
23538
  }
23543
23539
  function YK(a, t = !1) {
23544
- const { collabOptions: e } = Qt(), { collabSocket: s, collabFieldLocksState: i, collabFieldDataBufferState: r, collabRoomInfoState: o } = lo(), l = Jn(), n = du(), d = D(), u = D(), c = (C, F) => {
23540
+ const { collabOptions: e } = ea(), { collabSocket: s, collabFieldLocksState: i, collabFieldDataBufferState: r, collabRoomInfoState: o } = lo(), l = Jn(), n = du(), d = D(), u = D(), c = (C, F) => {
23545
23541
  C.room !== a || R(F) || R(d.value) || d.value(C.field, F);
23546
23542
  }, f = (C) => {
23547
23543
  d.value = C, u.value = l.on(c);
@@ -23570,13 +23566,13 @@ function YK(a, t = !1) {
23570
23566
  var X;
23571
23567
  if (!e.value.enabled || R(s.value)) return;
23572
23568
  const A = o.get(a);
23573
- A && A.status === ra.Inactive || (X = s.value) == null || X.timeout(1e3).emit("acquireFieldLock", a, C, F, (b, x) => {
23569
+ A && A.status === wt.Inactive || (X = s.value) == null || X.timeout(1e3).emit("acquireFieldLock", a, C, F, (b, x) => {
23574
23570
  var L;
23575
23571
  const P = { field: C, room: a };
23576
23572
  if (b || Pr(x))
23577
23573
  return void n.emit(
23578
23574
  P,
23579
- rs(Ot.Acquire, Rt.Failure)
23575
+ rs(Rt.Acquire, zt.Failure)
23580
23576
  );
23581
23577
  if (Br(x)) {
23582
23578
  i.has(a) || i.set(a, /* @__PURE__ */ new Map());
@@ -23585,7 +23581,7 @@ function YK(a, t = !1) {
23585
23581
  (L = i.get(a)) == null || L.set(O, T);
23586
23582
  return void n.emit(
23587
23583
  P,
23588
- rs(Ot.Acquire, Rt.Success)
23584
+ rs(Rt.Acquire, zt.Success)
23589
23585
  );
23590
23586
  }
23591
23587
  });
@@ -23594,7 +23590,7 @@ function YK(a, t = !1) {
23594
23590
  var b, x;
23595
23591
  if (!e.value.enabled || R(s.value)) return;
23596
23592
  const X = o.get(a);
23597
- if (X && X.status === ra.Inactive) {
23593
+ if (X && X.status === wt.Inactive) {
23598
23594
  r.has(a) || r.set(a, /* @__PURE__ */ new Map()), (b = r.get(a)) == null || b.set(C, F);
23599
23595
  return;
23600
23596
  }
@@ -23604,7 +23600,7 @@ function YK(a, t = !1) {
23604
23600
  if (P || Pr(L))
23605
23601
  return void n.emit(
23606
23602
  U,
23607
- rs(Ot.Release, Rt.Failure)
23603
+ rs(Rt.Release, zt.Failure)
23608
23604
  );
23609
23605
  if (Br(L)) {
23610
23606
  i.has(a) || i.set(a, /* @__PURE__ */ new Map());
@@ -23612,7 +23608,7 @@ function YK(a, t = !1) {
23612
23608
  (O = i.get(a)) == null || O.delete(T);
23613
23609
  return void n.emit(
23614
23610
  U,
23615
- rs(Ot.Release, Rt.Success)
23611
+ rs(Rt.Release, zt.Success)
23616
23612
  );
23617
23613
  }
23618
23614
  });
@@ -23644,7 +23640,7 @@ const s_ = (a) => {
23644
23640
  };
23645
23641
  }, XK = /* @__PURE__ */ W({
23646
23642
  __name: "DamAssetLicenceRemoteAutocomplete",
23647
- props: /* @__PURE__ */ _t({
23643
+ props: /* @__PURE__ */ St({
23648
23644
  modelValue: {},
23649
23645
  client: {},
23650
23646
  label: { default: void 0 },
@@ -23659,7 +23655,7 @@ const s_ = (a) => {
23659
23655
  selected: { required: !1, default: () => [] },
23660
23656
  selectedModifiers: {}
23661
23657
  }),
23662
- emits: /* @__PURE__ */ _t(["update:modelValue"], ["update:selected"]),
23658
+ emits: /* @__PURE__ */ St(["update:modelValue"], ["update:selected"]),
23663
23659
  setup(a, { emit: t }) {
23664
23660
  const e = a, s = t, i = _({
23665
23661
  get() {
@@ -23719,7 +23715,7 @@ function l_() {
23719
23715
  }
23720
23716
  const AK = /* @__PURE__ */ W({
23721
23717
  __name: "DamAssetLicenceGroupRemoteAutocomplete",
23722
- props: /* @__PURE__ */ _t({
23718
+ props: /* @__PURE__ */ St({
23723
23719
  modelValue: {},
23724
23720
  client: {},
23725
23721
  label: { default: void 0 },
@@ -23733,7 +23729,7 @@ const AK = /* @__PURE__ */ W({
23733
23729
  selected: { required: !1, default: () => [] },
23734
23730
  selectedModifiers: {}
23735
23731
  }),
23736
- emits: /* @__PURE__ */ _t(["update:modelValue"], ["update:selected"]),
23732
+ emits: /* @__PURE__ */ St(["update:modelValue"], ["update:selected"]),
23737
23733
  setup(a, { emit: t }) {
23738
23734
  const e = a, s = t, i = _({
23739
23735
  get() {
@@ -23915,7 +23911,7 @@ const CK = /* @__PURE__ */ W({
23915
23911
  onBlur: r
23916
23912
  }, null, 8, ["modelValue", "items", "label", "multiple", "data-cy"]));
23917
23913
  }
23918
- }), Do = "/adm/v1/user", Ko = "user", xK = (a, t) => Ps(a, t, Do, {}, Be, Ko), wK = (a, t, e) => Wa(a, Do, {}, t, e, Be, Ko), kK = (a, t, e) => ul(a, e, Do + "/:id", { id: t }, Be, Ko), IK = (a, t) => Nt(a, Do + "/:id", { id: t }, Be, Ko), v_ = {
23914
+ }), Do = "/adm/v1/user", Ko = "user", xK = (a, t) => Ps(a, t, Do, {}, Be, Ko), wK = (a, t, e) => Wa(a, Do, {}, t, e, Be, Ko), kK = (a, t, e) => ul(a, e, Do + "/:id", { id: t }, Be, Ko), IK = (a, t) => Ut(a, Do + "/:id", { id: t }, Be, Ko), v_ = {
23919
23915
  linkLastItem: !1
23920
23916
  };
23921
23917
  function _K(a, t = {}) {
@@ -23934,7 +23930,7 @@ export {
23934
23930
  Df as C,
23935
23931
  vS as D,
23936
23932
  hS as E,
23937
- wt as F,
23933
+ kt as F,
23938
23934
  XS as G,
23939
23935
  FS as H,
23940
23936
  Xp as I,
@@ -23991,7 +23987,7 @@ export {
23991
23987
  jD as aU,
23992
23988
  zF as aV,
23993
23989
  KD as aW,
23994
- ea as aX,
23990
+ ta as aX,
23995
23991
  pg as aY,
23996
23992
  qg as aZ,
23997
23993
  pc as a_,
@@ -24011,7 +24007,7 @@ export {
24011
24007
  zD as an,
24012
24008
  LD as ao,
24013
24009
  NY as ap,
24014
- Wt as aq,
24010
+ Gt as aq,
24015
24011
  ur as ar,
24016
24012
  iD as as,
24017
24013
  ju as at,
@@ -24095,7 +24091,7 @@ export {
24095
24091
  R as c4,
24096
24092
  ve as c5,
24097
24093
  sf as c6,
24098
- zt as c7,
24094
+ Lt as c7,
24099
24095
  oi as c8,
24100
24096
  LS as c9,
24101
24097
  SS as cA,
@@ -24122,7 +24118,7 @@ export {
24122
24118
  Ps as cV,
24123
24119
  Wa as cW,
24124
24120
  QD as cX,
24125
- Nt as cY,
24121
+ Ut as cY,
24126
24122
  ul as cZ,
24127
24123
  go as c_,
24128
24124
  Vo as ca,
@@ -24144,7 +24140,7 @@ export {
24144
24140
  xS as cq,
24145
24141
  kS as cr,
24146
24142
  wS as cs,
24147
- Lt as ct,
24143
+ Nt as ct,
24148
24144
  DS as cu,
24149
24145
  Ks as cv,
24150
24146
  IS as cw,
@@ -24163,7 +24159,7 @@ export {
24163
24159
  i_ as d7,
24164
24160
  r_ as d8,
24165
24161
  d_ as d9,
24166
- Qt as dA,
24162
+ ea as dA,
24167
24163
  cu as dB,
24168
24164
  lo as dC,
24169
24165
  vs as dD,
@@ -24181,11 +24177,11 @@ export {
24181
24177
  ou as dP,
24182
24178
  nu as dQ,
24183
24179
  lu as dR,
24184
- Ot as dS,
24185
- Rt as dT,
24180
+ Rt as dS,
24181
+ zt as dT,
24186
24182
  rs as dU,
24187
24183
  du as dV,
24188
- ra as dW,
24184
+ wt as dW,
24189
24185
  yn as dX,
24190
24186
  uu as dY,
24191
24187
  Br as dZ,
@@ -24263,4 +24259,4 @@ export {
24263
24259
  jS as y,
24264
24260
  ei as z
24265
24261
  };
24266
- //# sourceMappingURL=lib-BaChAiPh.js.map
24262
+ //# sourceMappingURL=lib-T24DHE0n.js.map