@anzusystems/common-admin 1.40.0-alpha32 → 1.40.0-alpha33

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,26 +1,26 @@
1
1
  var Um = Object.defineProperty;
2
2
  var jm = (i, t, e) => t in i ? Um(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
3
  var Tr = (i, t, e) => (jm(i, typeof t != "symbol" ? t + "" : t, e), e);
4
- import { defineComponent as Z, computed as D, openBlock as q, createBlock as B, withCtx as p, createTextVNode as P, toDisplayString as k, createElementBlock as R, createVNode as f, normalizeClass as Xe, createCommentVNode as j, renderSlot as ge, createElementVNode as z, resolveComponent as We, withModifiers as ae, withDirectives as fa, vShow as ma, isProxy as Hu, toRaw as Qt, isRef as ts, unref as h, Fragment as we, normalizeStyle as ei, shallowRef as Ut, watch as xe, ref as E, reactive as pa, onBeforeUnmount as is, inject as at, createSlots as Ki, provide as pr, renderList as ut, onMounted as Bt, TransitionGroup as Wu, isVNode as Hm, toRefs as Ds, h as Wm, nextTick as Si, readonly as Wa, withKeys as Ia, onUnmounted as El, getCurrentInstance as Gm, mergeProps as ea, createStaticVNode as Gu, resolveDynamicComponent as Kn, setBlockTracking as Ad, toRef as En, Teleport as Jm, normalizeProps as Zm, guardReactiveProps as Qm } from "vue";
4
+ import { defineComponent as Z, computed as D, openBlock as q, createBlock as B, withCtx as p, createTextVNode as P, toDisplayString as k, createElementBlock as R, createVNode as f, normalizeClass as Xe, createCommentVNode as j, renderSlot as ge, createElementVNode as z, resolveComponent as We, withModifiers as ae, withDirectives as fa, vShow as ma, isProxy as Hu, toRaw as Qt, isRef as ts, unref as h, Fragment as we, normalizeStyle as ei, shallowRef as Ut, watch as xe, ref as E, reactive as pa, onBeforeUnmount as is, inject as at, createSlots as Ki, provide as pr, renderList as ut, onMounted as Bt, TransitionGroup as Wu, isVNode as Hm, toRefs as Ds, h as Wm, nextTick as Si, readonly as Wa, onUnmounted as Kn, withKeys as Ia, getCurrentInstance as Gm, mergeProps as ea, createStaticVNode as Gu, resolveDynamicComponent as En, setBlockTracking as Ad, toRef as Mn, Teleport as Jm, normalizeProps as Zm, guardReactiveProps as Qm } from "vue";
5
5
  import { useI18n as ne, createI18n as ep } from "vue-i18n";
6
6
  import { VChip as Ti } from "vuetify/lib/components/VChip/index.mjs";
7
7
  import { VRow as Ae, VCol as pe, VSpacer as Yt } from "vuetify/lib/components/VGrid/index.mjs";
8
8
  import { VAlert as Qs } from "vuetify/lib/components/VAlert/index.mjs";
9
9
  import { VIcon as fe } from "vuetify/lib/components/VIcon/index.mjs";
10
- import { VCard as it, VCardText as Ss, VCardActions as mi, VCardItem as fo } from "vuetify/lib/components/VCard/index.mjs";
11
- import { VAvatar as il } from "vuetify/lib/components/VAvatar/index.mjs";
10
+ import { VCard as it, VCardText as Ss, VCardActions as mi, VCardItem as mo } from "vuetify/lib/components/VCard/index.mjs";
11
+ import { VAvatar as al } from "vuetify/lib/components/VAvatar/index.mjs";
12
12
  import { VProgressCircular as pt } from "vuetify/lib/components/VProgressCircular/index.mjs";
13
13
  import { useEventBus as Vi, useFetch as tp, useStorage as Ju, watchDebounced as Ml, useClipboard as Zu, useIntervalFn as ip, tryOnMounted as ap, tryOnScopeDispose as sp, unrefElement as rp, defaultDocument as np, toValue as bd, useDropZone as op, useWebSocket as lp, useDebounceFn as dp } from "@vueuse/core";
14
14
  import { VTextField as Ts } from "vuetify/lib/components/VTextField/index.mjs";
15
15
  import { VTextarea as Qu } from "vuetify/lib/components/VTextarea/index.mjs";
16
16
  import { VBtn as oe } from "vuetify/lib/components/VBtn/index.mjs";
17
- import { VBtnToggle as Mn } from "vuetify/lib/components/VBtnToggle/index.mjs";
17
+ import { VBtnToggle as Bn } from "vuetify/lib/components/VBtnToggle/index.mjs";
18
18
  import { VList as Ai, VListItem as mt, VListItemTitle as Da, VListItemSubtitle as up } from "vuetify/lib/components/VList/index.mjs";
19
19
  import { VMenu as Ei } from "vuetify/lib/components/VMenu/index.mjs";
20
20
  import { VTooltip as Ie } from "vuetify/lib/components/VTooltip/index.mjs";
21
21
  import { VToolbar as Sa, VToolbarTitle as ec } from "vuetify/lib/components/VToolbar/index.mjs";
22
22
  import { useRouter as Bl } from "vue-router";
23
- import Bn from "axios";
23
+ import On from "axios";
24
24
  import { VDialog as St } from "vuetify/lib/components/VDialog/index.mjs";
25
25
  import { VExpandTransition as tc } from "vuetify/lib/components/transitions/index.mjs";
26
26
  import Mi, { useVuelidate as cp } from "@vuelidate/core";
@@ -35,7 +35,7 @@ import { VAppBar as yp } from "vuetify/lib/components/VAppBar/index.mjs";
35
35
  import { VColorPicker as Ap } from "vuetify/lib/components/VColorPicker/index.mjs";
36
36
  import { VTable as bp } from "vuetify/lib/components/VTable/index.mjs";
37
37
  import { defineStore as Ar, storeToRefs as jt } from "pinia";
38
- import { VForm as On } from "vuetify/lib/components/VForm/index.mjs";
38
+ import { VForm as $n } from "vuetify/lib/components/VForm/index.mjs";
39
39
  import { Intersect as sc } from "vuetify/lib/directives/index.mjs";
40
40
  import { VCombobox as Cp } from "vuetify/lib/components/VCombobox/index.mjs";
41
41
  import { VImg as qn } from "vuetify/lib/components/VImg/index.mjs";
@@ -165,10 +165,10 @@ const wp = { key: 1 }, kp = /* @__PURE__ */ Z({
165
165
  _: 3
166
166
  }, 8, ["title", "loading"]));
167
167
  }
168
- }), N = (i) => typeof i > "u", qe = (i) => !N(i), ce = (i) => i === null, $n = (i) => typeof i == "number", pi = (i) => typeof i == "string", _t = (i) => Array.isArray(i), Tp = (i) => typeof i == "function", al = (i) => typeof i == "boolean", Kp = (i) => pi(i) && /^[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(i), Ep = (i) => {
168
+ }), N = (i) => typeof i > "u", qe = (i) => !N(i), ce = (i) => i === null, Pn = (i) => typeof i == "number", pi = (i) => typeof i == "string", _t = (i) => Array.isArray(i), Tp = (i) => typeof i == "function", sl = (i) => typeof i == "boolean", Kp = (i) => pi(i) && /^[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(i), Ep = (i) => {
169
169
  const t = parseFloat(i);
170
170
  return !isNaN(i) && (t | 0) === t;
171
- }, Pn = (i) => typeof i == "object" && !_t(i) && !ce(i), Rn = (i) => Pn(i) ? Object.keys(i).length === 0 : !1, Mp = (i) => _t(i) && i.length === 0, Cd = (i) => ce(i) || N(i) || i === "" || i === 0 || Mp(i) || Rn(i), Be = (i) => {
171
+ }, Rn = (i) => typeof i == "object" && !_t(i) && !ce(i), Nn = (i) => Rn(i) ? Object.keys(i).length === 0 : !1, Mp = (i) => _t(i) && i.length === 0, Cd = (i) => ce(i) || N(i) || i === "" || i === 0 || Mp(i) || Nn(i), Be = (i) => {
172
172
  if (typeof structuredClone == "function")
173
173
  try {
174
174
  return Hu(i) ? structuredClone(Qt(i)) : ts(i) ? structuredClone(h(i)) : structuredClone(i);
@@ -219,7 +219,7 @@ const wp = { key: 1 }, kp = /* @__PURE__ */ Z({
219
219
  const n = /^:([a-zA-Z0-9_-]+).*/, l = s.match(n);
220
220
  ce(l) || !l[1] || N(t[l[1]]) || (e[r] = t[l[1]] + "");
221
221
  }), e.join("/");
222
- }, KS = (i) => i.replace(".", "-"), ES = (i) => /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,63}$/.test(i), ta = Symbol.for("anzu:SystemScope"), ia = Symbol.for("anzu:SubjectScope"), Nn = Symbol.for("anzu:CurrentUser"), rc = Symbol.for("anzu:CustomAclResolver"), nc = Symbol.for("anzu:AvailableLanguages"), oc = Symbol.for("anzu:DefaultLanguage"), $p = /* @__PURE__ */ z("div", null, null, -1), sl = /* @__PURE__ */ Z({
222
+ }, KS = (i) => i.replace(".", "-"), ES = (i) => /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,63}$/.test(i), ta = Symbol.for("anzu:SystemScope"), ia = Symbol.for("anzu:SubjectScope"), Ln = Symbol.for("anzu:CurrentUser"), rc = Symbol.for("anzu:CustomAclResolver"), nc = Symbol.for("anzu:AvailableLanguages"), oc = Symbol.for("anzu:DefaultLanguage"), $p = /* @__PURE__ */ z("div", null, null, -1), rl = /* @__PURE__ */ Z({
223
223
  __name: "AAnzuUserAvatar",
224
224
  props: {
225
225
  user: { default: void 0 },
@@ -239,7 +239,7 @@ const wp = { key: 1 }, kp = /* @__PURE__ */ Z({
239
239
  return r.length > 0 ? r : t.user.email.slice(0, 2);
240
240
  });
241
241
  return (r, n) => (q(), R(we, null, [
242
- f(il, {
242
+ f(al, {
243
243
  color: e.value,
244
244
  class: Xe(["text-uppercase", r.containerClass]),
245
245
  size: r.size
@@ -263,7 +263,7 @@ const wp = { key: 1 }, kp = /* @__PURE__ */ Z({
263
263
  },
264
264
  setup(i) {
265
265
  const t = i, e = Ut(void 0), a = Ut(!1), s = h(t.users), r = D(() => {
266
- if ($n(t.id) && t.id > 0)
266
+ if (Pn(t.id) && t.id > 0)
267
267
  return s.get(t.id);
268
268
  });
269
269
  return xe(
@@ -273,7 +273,7 @@ const wp = { key: 1 }, kp = /* @__PURE__ */ Z({
273
273
  },
274
274
  { immediate: !0 }
275
275
  ), (n, l) => (q(), R("div", Pp, [
276
- h(ce)(n.id) || h(N)(n.id) ? (q(), R("span", Rp)) : a.value ? (q(), B(sl, {
276
+ h(ce)(n.id) || h(N)(n.id) ? (q(), R("span", Rp)) : a.value ? (q(), B(rl, {
277
277
  key: 1,
278
278
  user: e.value ?? void 0,
279
279
  "container-class": "",
@@ -349,13 +349,13 @@ function th() {
349
349
  const Ui = {
350
350
  Inactive: "inactive",
351
351
  Active: "active"
352
- }, rl = {
352
+ }, nl = {
353
353
  Ok: "ok",
354
354
  Occupied: "occupied",
355
355
  Failed: "failed"
356
356
  };
357
357
  function wd(i) {
358
- return i.status === rl.Ok;
358
+ return i.status === nl.Ok;
359
359
  }
360
360
  const vc = {
361
361
  Ok: "ok",
@@ -378,19 +378,19 @@ const MS = {
378
378
  Ok: "ok",
379
379
  AlreadyRequested: "alreadyRequested",
380
380
  Failed: "failed"
381
- }, nl = E({ enabled: !1, socketUrl: "" });
381
+ }, ol = E({ enabled: !1, socketUrl: "" });
382
382
  function ih(i) {
383
- N(i) || (nl.value = i);
383
+ N(i) || (ol.value = i);
384
384
  }
385
385
  function gi() {
386
- if (N(nl.value))
386
+ if (N(ol.value))
387
387
  throw new Error("Composable can't be used without properly configured common admin.");
388
388
  return {
389
- collabOptions: nl
389
+ collabOptions: ol
390
390
  };
391
391
  }
392
- const Id = E(!0), ah = E(), sh = pa(/* @__PURE__ */ new Map()), rh = pa(/* @__PURE__ */ new Map()), mo = pa(/* @__PURE__ */ new Map());
393
- function Ln() {
392
+ const Id = E(!0), ah = E(), sh = pa(/* @__PURE__ */ new Map()), rh = pa(/* @__PURE__ */ new Map()), po = pa(/* @__PURE__ */ new Map());
393
+ function zn() {
394
394
  const { collabOptions: i } = gi();
395
395
  return {
396
396
  collabReconnecting: D(() => i.value.enabled && !Id.value),
@@ -398,12 +398,12 @@ function Ln() {
398
398
  collabSocket: ah,
399
399
  collabRoomInfoState: sh,
400
400
  collabFieldLocksState: rh,
401
- collabFieldDataBufferState: mo,
401
+ collabFieldDataBufferState: po,
402
402
  gatherBufferData: (a) => {
403
403
  uc().emit({ room: a });
404
404
  let r = {};
405
- const n = mo.get(a);
406
- return n && (r = Qt(Object.fromEntries(n.entries())), mo.delete(a)), r;
405
+ const n = po.get(a);
406
+ return n && (r = Qt(Object.fromEntries(n.entries())), po.delete(a)), r;
407
407
  }
408
408
  };
409
409
  }
@@ -418,7 +418,7 @@ function Fc() {
418
418
  };
419
419
  }
420
420
  function Ta(i, t) {
421
- const { collabOptions: e } = gi(), { currentUserId: a } = Fc(), { collabSocket: s, collabFieldLocksState: r, collabFieldDataBufferState: n, collabRoomInfoState: l } = Ln(), o = Rl(), d = E(), c = E(), u = th(), m = E(), v = E(), V = uc(), g = E(), F = E(), w = (S, H) => {
421
+ const { collabOptions: e } = gi(), { currentUserId: a } = Fc(), { collabSocket: s, collabFieldLocksState: r, collabFieldDataBufferState: n, collabRoomInfoState: l } = zn(), o = Rl(), d = E(), c = E(), u = th(), m = E(), v = E(), V = uc(), g = E(), F = E(), w = (S, H) => {
422
422
  S.room !== i || S.field !== t || N(H) || N(c.value) || c.value(H);
423
423
  }, Y = (S, H) => {
424
424
  S.room !== i || S.field !== t || N(H) || N(v.value) || v.value(H);
@@ -514,7 +514,7 @@ function Ta(i, t) {
514
514
  const nh = {
515
515
  key: 0,
516
516
  class: "required"
517
- }, ol = /* @__PURE__ */ Z({
517
+ }, ll = /* @__PURE__ */ Z({
518
518
  __name: "AFormTextField",
519
519
  props: {
520
520
  modelValue: {},
@@ -558,8 +558,8 @@ const nh = {
558
558
  ), x((L) => {
559
559
  a("update:modelValue", L.value);
560
560
  }), C((L) => {
561
- var te;
562
- L.status === ps.Failure && L.type === ms.Acquire && ((te = s.value) == null || te.blur());
561
+ var ie;
562
+ L.status === ps.Failure && L.type === ms.Acquire && ((ie = s.value) == null || ie.blur());
563
563
  }), M(() => {
564
564
  var L;
565
565
  (L = s.value) == null || L.blur();
@@ -674,8 +674,8 @@ const nh = {
674
674
  ), x((L) => {
675
675
  a("update:modelValue", L.value);
676
676
  }), C((L) => {
677
- var te;
678
- L.status === ps.Failure && L.type === ms.Acquire && ((te = s.value) == null || te.blur());
677
+ var ie;
678
+ L.status === ps.Failure && L.type === ms.Acquire && ((ie = s.value) == null || ie.blur());
679
679
  }), M(() => {
680
680
  var L;
681
681
  (L = s.value) == null || L.blur();
@@ -793,7 +793,7 @@ const nh = {
793
793
  return (y, X) => (q(), R("div", lh, [
794
794
  y.hideRecordsPerPage ? j("", !0) : (q(), R("div", dh, [
795
795
  P(k(h(r)("common.system.datatable.itemsPerPage")) + ": ", 1),
796
- f(Mn, {
796
+ f(Bn, {
797
797
  modelValue: s.value.rowsPerPage,
798
798
  "onUpdate:modelValue": X[0] || (X[0] = (x) => s.value.rowsPerPage = x),
799
799
  class: "ml-2",
@@ -1126,14 +1126,14 @@ function vh(i) {
1126
1126
  });
1127
1127
  } };
1128
1128
  }
1129
- const Yn = vh(), po = "[-+]?[0-9]*.?[0-9]+", Sd = [
1129
+ const Yn = vh(), ho = "[-+]?[0-9]*.?[0-9]+", Sd = [
1130
1130
  {
1131
1131
  name: "px",
1132
- regexp: new RegExp(`^${po}px$`)
1132
+ regexp: new RegExp(`^${ho}px$`)
1133
1133
  },
1134
1134
  {
1135
1135
  name: "%",
1136
- regexp: new RegExp(`^${po}%$`)
1136
+ regexp: new RegExp(`^${ho}%$`)
1137
1137
  },
1138
1138
  /**
1139
1139
  * Fallback option
@@ -1141,7 +1141,7 @@ const Yn = vh(), po = "[-+]?[0-9]*.?[0-9]+", Sd = [
1141
1141
  */
1142
1142
  {
1143
1143
  name: "px",
1144
- regexp: new RegExp(`^${po}$`)
1144
+ regexp: new RegExp(`^${ho}$`)
1145
1145
  }
1146
1146
  ], Fh = (i) => {
1147
1147
  if (i === "auto")
@@ -1179,7 +1179,7 @@ const Yn = vh(), po = "[-+]?[0-9]*.?[0-9]+", Sd = [
1179
1179
  return i.forEach((a) => {
1180
1180
  Td.y.has(a) && (e = a), Td.x.has(a) && (t = a);
1181
1181
  }), { x: t, y: e };
1182
- }, ho = {
1182
+ }, Vo = {
1183
1183
  position: ["top", "right"],
1184
1184
  cssAnimation: "vn-fade",
1185
1185
  velocityAnimation: {
@@ -1282,7 +1282,7 @@ const Mr = {
1282
1282
  },
1283
1283
  position: {
1284
1284
  type: [String, Array],
1285
- default: () => ho.position
1285
+ default: () => Vo.position
1286
1286
  },
1287
1287
  classes: {
1288
1288
  type: String,
@@ -1298,12 +1298,12 @@ const Mr = {
1298
1298
  animation: {
1299
1299
  type: Object,
1300
1300
  default() {
1301
- return ho.velocityAnimation;
1301
+ return Vo.velocityAnimation;
1302
1302
  }
1303
1303
  },
1304
1304
  animationName: {
1305
1305
  type: String,
1306
- default: ho.cssAnimation
1306
+ default: Vo.cssAnimation
1307
1307
  },
1308
1308
  speed: {
1309
1309
  type: Number,
@@ -1393,16 +1393,16 @@ const Mr = {
1393
1393
  data: $
1394
1394
  };
1395
1395
  H >= 0 && (r.value = new gh(() => X(G), G.length, G));
1396
- const ie = i.reverse ? !m.value : m.value;
1396
+ const ee = i.reverse ? !m.value : m.value;
1397
1397
  let re = -1;
1398
- const ee = d.value.some((se) => se.title === S.title && se.text === S.text);
1399
- (!I || !ee) && (ie ? (s.value.push(G), t("start", G), d.value.length > i.max && (re = 0)) : (s.value.unshift(G), t("start", G), d.value.length > i.max && (re = d.value.length - 1)), re !== -1 && X(d.value[re]));
1398
+ const te = d.value.some((se) => se.title === S.title && se.text === S.text);
1399
+ (!I || !te) && (ee ? (s.value.push(G), t("start", G), d.value.length > i.max && (re = 0)) : (s.value.unshift(G), t("start", G), d.value.length > i.max && (re = d.value.length - 1)), re !== -1 && X(d.value[re]));
1400
1400
  }, w = (S) => {
1401
1401
  x(S);
1402
1402
  }, Y = (S) => ["vue-notification-template", i.classes, S.type || ""], y = (S) => l.value ? void 0 : {
1403
1403
  transition: `all ${S.speed}ms`
1404
1404
  }, X = (S) => {
1405
- clearTimeout(S.timer), S.state = Mr.DESTROYED, te(), t("destroy", S);
1405
+ clearTimeout(S.timer), S.state = Mr.DESTROYED, ie(), t("destroy", S);
1406
1406
  }, x = (S) => {
1407
1407
  const H = s.value.find((O) => O.id === S);
1408
1408
  H && X(H);
@@ -1429,7 +1429,7 @@ const Mr = {
1429
1429
  complete: H
1430
1430
  });
1431
1431
  };
1432
- function te() {
1432
+ function ie() {
1433
1433
  s.value = s.value.filter((S) => S.state !== Mr.DESTROYED);
1434
1434
  }
1435
1435
  return Bt(() => {
@@ -1443,7 +1443,7 @@ const Mr = {
1443
1443
  name: i.animationName,
1444
1444
  onEnter: U,
1445
1445
  onLeave: L,
1446
- onAfterLeave: te
1446
+ onAfterLeave: ie
1447
1447
  }, Ch(S = d.value.map((H) => f("div", {
1448
1448
  key: H.id,
1449
1449
  class: "vue-notification-wrapper",
@@ -1503,7 +1503,7 @@ class Mt extends Error {
1503
1503
  }
1504
1504
  const as = 200, Nl = 201, Va = 204, PS = 400, RS = 401, Ih = 403, Xc = 422, Dh = [as, Nl, Va], ga = (i) => {
1505
1505
  var t;
1506
- return Bn.isAxiosError(i) && ((t = i.response) == null ? void 0 : t.status) === Ih;
1506
+ return On.isAxiosError(i) && ((t = i.response) == null ? void 0 : t.status) === Ih;
1507
1507
  }, yc = (i) => i instanceof aa;
1508
1508
  class aa extends Error {
1509
1509
  constructor(t, e = "") {
@@ -1512,7 +1512,7 @@ class aa extends Error {
1512
1512
  }
1513
1513
  const Sh = "validation_failed", sa = (i) => {
1514
1514
  var t, e, a;
1515
- return Bn.isAxiosError(i) && ((t = i.response) == null ? void 0 : t.status) === Xc && ((e = i.response.data) == null ? void 0 : e.error) === Sh && ((a = i.response.data) == null ? void 0 : a.fields);
1515
+ return On.isAxiosError(i) && ((t = i.response) == null ? void 0 : t.status) === Xc && ((e = i.response.data) == null ? void 0 : e.error) === Sh && ((a = i.response.data) == null ? void 0 : a.fields);
1516
1516
  }, Ac = (i) => i instanceof ra;
1517
1517
  function Th(i, t, e) {
1518
1518
  var r;
@@ -1541,7 +1541,7 @@ class va extends Error {
1541
1541
  }
1542
1542
  const Kh = "forbidden_operation_error", Fa = (i) => {
1543
1543
  var t, e, a;
1544
- return Bn.isAxiosError(i) && ((t = i.response) == null ? void 0 : t.status) === Xc && ((e = i.response.data) == null ? void 0 : e.error) === Kh && ((a = i.response.data) == null ? void 0 : a.detail);
1544
+ return On.isAxiosError(i) && ((t = i.response) == null ? void 0 : t.status) === Xc && ((e = i.response.data) == null ? void 0 : e.error) === Kh && ((a = i.response.data) == null ? void 0 : a.detail);
1545
1545
  }, Eh = (i) => i instanceof na;
1546
1546
  function Mh(i) {
1547
1547
  var e;
@@ -1907,18 +1907,18 @@ var xc = { exports: {} };
1907
1907
  if (!$ && G.length > 1)
1908
1908
  return I(G[0]);
1909
1909
  } else {
1910
- var ie = A.name;
1911
- C[ie] = A, $ = ie;
1910
+ var ee = A.name;
1911
+ C[ee] = A, $ = ee;
1912
1912
  }
1913
1913
  return !T && $ && (x = $), $ || !T && x;
1914
- }, te = function(I, A) {
1914
+ }, ie = function(I, A) {
1915
1915
  if (U(I))
1916
1916
  return I.clone();
1917
1917
  var b = typeof A == "object" ? A : {};
1918
1918
  return b.date = I, b.args = arguments, new H(b);
1919
1919
  }, S = X;
1920
1920
  S.l = L, S.i = U, S.w = function(I, A) {
1921
- return te(I, { locale: A.$L, utc: A.$u, x: A.$x, $offset: A.$offset });
1921
+ return ie(I, { locale: A.$L, utc: A.$u, x: A.$x, $offset: A.$offset });
1922
1922
  };
1923
1923
  var H = function() {
1924
1924
  function I(b) {
@@ -1937,8 +1937,8 @@ var xc = { exports: {} };
1937
1937
  if (typeof $ == "string" && !/Z$/i.test($)) {
1938
1938
  var G = $.match(F);
1939
1939
  if (G) {
1940
- var ie = G[2] - 1 || 0, re = (G[7] || "0").substring(0, 3);
1941
- return W ? new Date(Date.UTC(G[1], ie, G[3] || 1, G[4] || 0, G[5] || 0, G[6] || 0, re)) : new Date(G[1], ie, G[3] || 1, G[4] || 0, G[5] || 0, G[6] || 0, re);
1940
+ var ee = G[2] - 1 || 0, re = (G[7] || "0").substring(0, 3);
1941
+ return W ? new Date(Date.UTC(G[1], ee, G[3] || 1, G[4] || 0, G[5] || 0, G[6] || 0, re)) : new Date(G[1], ee, G[3] || 1, G[4] || 0, G[5] || 0, G[6] || 0, re);
1942
1942
  }
1943
1943
  }
1944
1944
  return new Date($);
@@ -1951,12 +1951,12 @@ var xc = { exports: {} };
1951
1951
  }, A.isValid = function() {
1952
1952
  return this.$d.toString() !== g;
1953
1953
  }, A.isSame = function(b, T) {
1954
- var $ = te(b);
1954
+ var $ = ie(b);
1955
1955
  return this.startOf(T) <= $ && $ <= this.endOf(T);
1956
1956
  }, A.isAfter = function(b, T) {
1957
- return te(b) < this.startOf(T);
1957
+ return ie(b) < this.startOf(T);
1958
1958
  }, A.isBefore = function(b, T) {
1959
- return this.endOf(T) < te(b);
1959
+ return this.endOf(T) < ie(b);
1960
1960
  }, A.$g = function(b, T, $) {
1961
1961
  return S.u(b) ? this[T] : this.set($, b);
1962
1962
  }, A.unix = function() {
@@ -1964,20 +1964,20 @@ var xc = { exports: {} };
1964
1964
  }, A.valueOf = function() {
1965
1965
  return this.$d.getTime();
1966
1966
  }, A.startOf = function(b, T) {
1967
- var $ = this, W = !!S.u(T) || T, G = S.p(b), ie = function(Le, Ze) {
1967
+ var $ = this, W = !!S.u(T) || T, G = S.p(b), ee = function(Le, Ze) {
1968
1968
  var ht = S.w($.$u ? Date.UTC($.$y, Ze, Le) : new Date($.$y, Ze, Le), $);
1969
1969
  return W ? ht : ht.endOf(d);
1970
1970
  }, re = function(Le, Ze) {
1971
1971
  return S.w($.toDate()[Le].apply($.toDate("s"), (W ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Ze)), $);
1972
- }, ee = this.$W, se = this.$M, ye = this.$D, ke = "set" + (this.$u ? "UTC" : "");
1972
+ }, te = this.$W, se = this.$M, ye = this.$D, ke = "set" + (this.$u ? "UTC" : "");
1973
1973
  switch (G) {
1974
1974
  case v:
1975
- return W ? ie(1, 0) : ie(31, 11);
1975
+ return W ? ee(1, 0) : ee(31, 11);
1976
1976
  case u:
1977
- return W ? ie(1, se) : ie(0, se + 1);
1977
+ return W ? ee(1, se) : ee(0, se + 1);
1978
1978
  case c:
1979
- var Me = this.$locale().weekStart || 0, Oe = (ee < Me ? ee + 7 : ee) - Me;
1980
- return ie(W ? ye - Oe : ye + (6 - Oe), se);
1979
+ var Me = this.$locale().weekStart || 0, Oe = (te < Me ? te + 7 : te) - Me;
1980
+ return ee(W ? ye - Oe : ye + (6 - Oe), se);
1981
1981
  case d:
1982
1982
  case V:
1983
1983
  return re(ke + "Hours", 0);
@@ -1993,12 +1993,12 @@ var xc = { exports: {} };
1993
1993
  }, A.endOf = function(b) {
1994
1994
  return this.startOf(b, !1);
1995
1995
  }, A.$set = function(b, T) {
1996
- var $, W = S.p(b), G = "set" + (this.$u ? "UTC" : ""), ie = ($ = {}, $[d] = G + "Date", $[V] = G + "Date", $[u] = G + "Month", $[v] = G + "FullYear", $[o] = G + "Hours", $[l] = G + "Minutes", $[n] = G + "Seconds", $[r] = G + "Milliseconds", $)[W], re = W === d ? this.$D + (T - this.$W) : T;
1996
+ var $, W = S.p(b), G = "set" + (this.$u ? "UTC" : ""), ee = ($ = {}, $[d] = G + "Date", $[V] = G + "Date", $[u] = G + "Month", $[v] = G + "FullYear", $[o] = G + "Hours", $[l] = G + "Minutes", $[n] = G + "Seconds", $[r] = G + "Milliseconds", $)[W], re = W === d ? this.$D + (T - this.$W) : T;
1997
1997
  if (W === u || W === v) {
1998
- var ee = this.clone().set(V, 1);
1999
- ee.$d[ie](re), ee.init(), this.$d = ee.set(V, Math.min(this.$D, ee.daysInMonth())).$d;
1998
+ var te = this.clone().set(V, 1);
1999
+ te.$d[ee](re), te.init(), this.$d = te.set(V, Math.min(this.$D, te.daysInMonth())).$d;
2000
2000
  } else
2001
- ie && this.$d[ie](re);
2001
+ ee && this.$d[ee](re);
2002
2002
  return this.init(), this;
2003
2003
  }, A.set = function(b, T) {
2004
2004
  return this.clone().$set(b, T);
@@ -2007,8 +2007,8 @@ var xc = { exports: {} };
2007
2007
  }, A.add = function(b, T) {
2008
2008
  var $, W = this;
2009
2009
  b = Number(b);
2010
- var G = S.p(T), ie = function(se) {
2011
- var ye = te(W);
2010
+ var G = S.p(T), ee = function(se) {
2011
+ var ye = ie(W);
2012
2012
  return S.w(ye.date(ye.date() + Math.round(se * b)), W);
2013
2013
  };
2014
2014
  if (G === u)
@@ -2016,21 +2016,21 @@ var xc = { exports: {} };
2016
2016
  if (G === v)
2017
2017
  return this.set(v, this.$y + b);
2018
2018
  if (G === d)
2019
- return ie(1);
2019
+ return ee(1);
2020
2020
  if (G === c)
2021
- return ie(7);
2022
- var re = ($ = {}, $[l] = a, $[o] = s, $[n] = e, $)[G] || 1, ee = this.$d.getTime() + b * re;
2023
- return S.w(ee, this);
2021
+ return ee(7);
2022
+ var re = ($ = {}, $[l] = a, $[o] = s, $[n] = e, $)[G] || 1, te = this.$d.getTime() + b * re;
2023
+ return S.w(te, this);
2024
2024
  }, A.subtract = function(b, T) {
2025
2025
  return this.add(-1 * b, T);
2026
2026
  }, A.format = function(b) {
2027
2027
  var T = this, $ = this.$locale();
2028
2028
  if (!this.isValid())
2029
2029
  return $.invalidDate || g;
2030
- var W = b || "YYYY-MM-DDTHH:mm:ssZ", G = S.z(this), ie = this.$H, re = this.$m, ee = this.$M, se = $.weekdays, ye = $.months, ke = $.meridiem, Me = function(Ze, ht, wt, ve) {
2030
+ var W = b || "YYYY-MM-DDTHH:mm:ssZ", G = S.z(this), ee = this.$H, re = this.$m, te = this.$M, se = $.weekdays, ye = $.months, ke = $.meridiem, Me = function(Ze, ht, wt, ve) {
2031
2031
  return Ze && (Ze[ht] || Ze(T, W)) || wt[ht].slice(0, ve);
2032
2032
  }, Oe = function(Ze) {
2033
- return S.s(ie % 12 || 12, Ze, "0");
2033
+ return S.s(ee % 12 || 12, Ze, "0");
2034
2034
  }, Le = ke || function(Ze, ht, wt) {
2035
2035
  var ve = Ze < 12 ? "AM" : "PM";
2036
2036
  return wt ? ve.toLowerCase() : ve;
@@ -2043,13 +2043,13 @@ var xc = { exports: {} };
2043
2043
  case "YYYY":
2044
2044
  return S.s(T.$y, 4, "0");
2045
2045
  case "M":
2046
- return ee + 1;
2046
+ return te + 1;
2047
2047
  case "MM":
2048
- return S.s(ee + 1, 2, "0");
2048
+ return S.s(te + 1, 2, "0");
2049
2049
  case "MMM":
2050
- return Me($.monthsShort, ee, ye, 3);
2050
+ return Me($.monthsShort, te, ye, 3);
2051
2051
  case "MMMM":
2052
- return Me(ye, ee);
2052
+ return Me(ye, te);
2053
2053
  case "D":
2054
2054
  return T.$D;
2055
2055
  case "DD":
@@ -2063,17 +2063,17 @@ var xc = { exports: {} };
2063
2063
  case "dddd":
2064
2064
  return se[T.$W];
2065
2065
  case "H":
2066
- return String(ie);
2066
+ return String(ee);
2067
2067
  case "HH":
2068
- return S.s(ie, 2, "0");
2068
+ return S.s(ee, 2, "0");
2069
2069
  case "h":
2070
2070
  return Oe(1);
2071
2071
  case "hh":
2072
2072
  return Oe(2);
2073
2073
  case "a":
2074
- return Le(ie, re, !0);
2074
+ return Le(ee, re, !0);
2075
2075
  case "A":
2076
- return Le(ie, re, !1);
2076
+ return Le(ee, re, !1);
2077
2077
  case "m":
2078
2078
  return String(re);
2079
2079
  case "mm":
@@ -2093,10 +2093,10 @@ var xc = { exports: {} };
2093
2093
  }, A.utcOffset = function() {
2094
2094
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
2095
2095
  }, A.diff = function(b, T, $) {
2096
- var W, G = this, ie = S.p(T), re = te(b), ee = (re.utcOffset() - this.utcOffset()) * a, se = this - re, ye = function() {
2096
+ var W, G = this, ee = S.p(T), re = ie(b), te = (re.utcOffset() - this.utcOffset()) * a, se = this - re, ye = function() {
2097
2097
  return S.m(G, re);
2098
2098
  };
2099
- switch (ie) {
2099
+ switch (ee) {
2100
2100
  case v:
2101
2101
  W = ye() / 12;
2102
2102
  break;
@@ -2107,10 +2107,10 @@ var xc = { exports: {} };
2107
2107
  W = ye() / 3;
2108
2108
  break;
2109
2109
  case c:
2110
- W = (se - ee) / 6048e5;
2110
+ W = (se - te) / 6048e5;
2111
2111
  break;
2112
2112
  case d:
2113
- W = (se - ee) / 864e5;
2113
+ W = (se - te) / 864e5;
2114
2114
  break;
2115
2115
  case o:
2116
2116
  W = se / s;
@@ -2146,15 +2146,15 @@ var xc = { exports: {} };
2146
2146
  return this.$d.toUTCString();
2147
2147
  }, I;
2148
2148
  }(), O = H.prototype;
2149
- return te.prototype = O, [["$ms", r], ["$s", n], ["$m", l], ["$H", o], ["$W", d], ["$M", u], ["$y", v], ["$D", V]].forEach(function(I) {
2149
+ return ie.prototype = O, [["$ms", r], ["$s", n], ["$m", l], ["$H", o], ["$W", d], ["$M", u], ["$y", v], ["$D", V]].forEach(function(I) {
2150
2150
  O[I[1]] = function(A) {
2151
2151
  return this.$g(A, I[0], I[1]);
2152
2152
  };
2153
- }), te.extend = function(I, A) {
2154
- return I.$i || (I(A, H, te), I.$i = !0), te;
2155
- }, te.locale = L, te.isDayjs = U, te.unix = function(I) {
2156
- return te(1e3 * I);
2157
- }, te.en = C[x], te.Ls = C, te.p = {}, te;
2153
+ }), ie.extend = function(I, A) {
2154
+ return I.$i || (I(A, H, ie), I.$i = !0), ie;
2155
+ }, ie.locale = L, ie.isDayjs = U, ie.unix = function(I) {
2156
+ return ie(1e3 * I);
2157
+ }, ie.en = C[x], ie.Ls = C, ie.p = {}, ie;
2158
2158
  });
2159
2159
  })(xc);
2160
2160
  var Lh = xc.exports;
@@ -2243,13 +2243,13 @@ var wc = { exports: {} };
2243
2243
  var zh = wc.exports;
2244
2244
  const Uh = /* @__PURE__ */ Ll(zh);
2245
2245
  st.extend(Uh);
2246
- const Za = ".000000Z", Xn = "YYYY-MM-DDTHH:mm:ss", zn = "1970-01-01T00:00:00.000000Z", Un = "2100-01-01T00:00:00.000000Z", jh = () => st().utc().toDate(), US = (i) => st(i).toDate(), jS = () => _s(st().utc().unix()), hi = (i = !0, t = !1) => i && !t ? st().utc().format("YYYY-MM-DDTHH:mm:ss") + Za : i && t ? st().utc().format("YYYY-MM-DDTHH:mm:00") + Za : !i && t ? st().utc().format("YYYY-MM-DDTHH:mm:00.SSSSSS") + "Z" : st().utc().format("YYYY-MM-DDTHH:mm:ss.SSSSSS") + "Z", HS = (i = 0) => i === 0 ? st().startOf("day").utc().format(Xn) + Za : st().add(i, "days").startOf("day").utc().format(Xn) + Za, WS = (i = 0) => i === 0 ? st().endOf("day").utc().format(Xn) + Za : st().add(i, "days").endOf("day").utc().format(Xn) + Za, GS = (i = 0, t = null) => (t === null && (t = /* @__PURE__ */ new Date()), i === 0 ? t : i > 0 ? st(t).add(i, "minutes").toDate() : i < 0 ? st(t).subtract(Math.abs(i), "minutes").toDate() : t), Hh = (i) => st(i).utc().format("YYYY-MM-DDTHH:mm:ss") + Za, JS = () => st().utc().format("YYYY"), Qa = (i, t = "") => i === Un || i === zn || i === "" || ce(i) || N(i) ? t : st(i).format("DD.MM.YYYY HH:mm"), ZS = (i, t = "") => {
2247
- if (i === Un || i === zn || i === "" || ce(i) || N(i))
2246
+ const Za = ".000000Z", Xn = "YYYY-MM-DDTHH:mm:ss", Un = "1970-01-01T00:00:00.000000Z", jn = "2100-01-01T00:00:00.000000Z", jh = () => st().utc().toDate(), US = (i) => st(i).toDate(), jS = () => _s(st().utc().unix()), hi = (i = !0, t = !1) => i && !t ? st().utc().format("YYYY-MM-DDTHH:mm:ss") + Za : i && t ? st().utc().format("YYYY-MM-DDTHH:mm:00") + Za : !i && t ? st().utc().format("YYYY-MM-DDTHH:mm:00.SSSSSS") + "Z" : st().utc().format("YYYY-MM-DDTHH:mm:ss.SSSSSS") + "Z", HS = (i = 0) => i === 0 ? st().startOf("day").utc().format(Xn) + Za : st().add(i, "days").startOf("day").utc().format(Xn) + Za, WS = (i = 0) => i === 0 ? st().endOf("day").utc().format(Xn) + Za : st().add(i, "days").endOf("day").utc().format(Xn) + Za, GS = (i = 0, t = null) => (t === null && (t = /* @__PURE__ */ new Date()), i === 0 ? t : i > 0 ? st(t).add(i, "minutes").toDate() : i < 0 ? st(t).subtract(Math.abs(i), "minutes").toDate() : t), Hh = (i) => st(i).utc().format("YYYY-MM-DDTHH:mm:ss") + Za, JS = () => st().utc().format("YYYY"), Qa = (i, t = "") => i === jn || i === Un || i === "" || ce(i) || N(i) ? t : st(i).format("DD.MM.YYYY HH:mm"), ZS = (i, t = "") => {
2247
+ if (i === jn || i === Un || i === "" || ce(i) || N(i))
2248
2248
  return t;
2249
2249
  let e = !0, a = !0;
2250
2250
  const s = st(i), r = st();
2251
2251
  return r.format("YYYY") === s.format("YYYY") && (e = !1), r.format("YYYY-MM-DD") === s.format("YYYY-MM-DD") && (a = !1), !e && !a ? st(s).format("H:mm") : e ? st(s).format("D.M.YYYY H:mm") : st(s).format("D.M. H:mm");
2252
- }, QS = (i, t = "") => i === Un || i === zn || i === "" || ce(i) || N(i) ? t : st(i).format("DD.MM.YYYY"), eT = (i, t = "") => i === Un || i === zn || i === "" || ce(i) || N(i) ? t : st(i).format("HH:mm"), tT = (i, t, e = "ms") => {
2252
+ }, QS = (i, t = "") => i === jn || i === Un || i === "" || ce(i) || N(i) ? t : st(i).format("DD.MM.YYYY"), eT = (i, t = "") => i === jn || i === Un || i === "" || ce(i) || N(i) ? t : st(i).format("HH:mm"), tT = (i, t, e = "ms") => {
2253
2253
  const a = st(i), s = st(t);
2254
2254
  return a.diff(s, e);
2255
2255
  }, Wh = { class: "d-flex align-center" }, Gh = {
@@ -2374,8 +2374,8 @@ const kc = /* @__PURE__ */ Z({
2374
2374
  const t = i, e = E(""), { filterId: a, filterText: s, filterDocId: r, filterUrl: n, filterOverrides: l } = Ds(t), { t: o } = ne(), d = (X) => !N(X) && !N(X.value), { clearOne: c } = Es(), u = (X) => {
2375
2375
  d(X) && c(X.value);
2376
2376
  }, m = (X = void 0) => {
2377
- var x, C, M, U, L, te, S, H, O;
2378
- ((x = X == null ? void 0 : X.value) == null ? void 0 : x.titleT) !== ((C = a == null ? void 0 : a.value) == null ? void 0 : C.titleT) && u(a), ((M = X == null ? void 0 : X.value) == null ? void 0 : M.titleT) !== ((U = r == null ? void 0 : r.value) == null ? void 0 : U.titleT) && u(r), ((L = X == null ? void 0 : X.value) == null ? void 0 : L.titleT) !== ((te = s == null ? void 0 : s.value) == null ? void 0 : te.titleT) && u(s), ((S = X == null ? void 0 : X.value) == null ? void 0 : S.titleT) !== ((H = n == null ? void 0 : n.value) == null ? void 0 : H.titleT) && u(n), N(l) || (O = l.value) == null || O.forEach((I) => {
2377
+ var x, C, M, U, L, ie, S, H, O;
2378
+ ((x = X == null ? void 0 : X.value) == null ? void 0 : x.titleT) !== ((C = a == null ? void 0 : a.value) == null ? void 0 : C.titleT) && u(a), ((M = X == null ? void 0 : X.value) == null ? void 0 : M.titleT) !== ((U = r == null ? void 0 : r.value) == null ? void 0 : U.titleT) && u(r), ((L = X == null ? void 0 : X.value) == null ? void 0 : L.titleT) !== ((ie = s == null ? void 0 : s.value) == null ? void 0 : ie.titleT) && u(s), ((S = X == null ? void 0 : X.value) == null ? void 0 : S.titleT) !== ((H = n == null ? void 0 : n.value) == null ? void 0 : H.titleT) && u(n), N(l) || (O = l.value) == null || O.forEach((I) => {
2379
2379
  var A;
2380
2380
  ((A = X == null ? void 0 : X.value) == null ? void 0 : A.titleT) !== I.titleT && c(I);
2381
2381
  });
@@ -2437,7 +2437,7 @@ const kc = /* @__PURE__ */ Z({
2437
2437
  h(l) ? {
2438
2438
  name: "append-inner",
2439
2439
  fn: p(() => [
2440
- f(Mn, {
2440
+ f(Bn, {
2441
2441
  modelValue: v.value,
2442
2442
  "onUpdate:modelValue": x[0] || (x[0] = (C) => v.value = C),
2443
2443
  divided: "",
@@ -2712,7 +2712,7 @@ const nT = /* @__PURE__ */ Z({
2712
2712
  a("change", n);
2713
2713
  }
2714
2714
  }), { getGrantOption: r } = _c();
2715
- return (n, l) => (q(), B(Mn, {
2715
+ return (n, l) => (q(), B(Bn, {
2716
2716
  modelValue: s.value,
2717
2717
  "onUpdate:modelValue": l[0] || (l[0] = (o) => s.value = o),
2718
2718
  divided: "",
@@ -2834,9 +2834,9 @@ function dT(i, t, e = ".") {
2834
2834
  }
2835
2835
  return r(i), i;
2836
2836
  }
2837
- const nV = (i) => Pn(i) && Object.hasOwn(i, "owners"), oV = (i) => Object.hasOwn(i, "createdBy"), Ul = "ROLE_ADMIN";
2837
+ const nV = (i) => Rn(i) && Object.hasOwn(i, "owners"), oV = (i) => Object.hasOwn(i, "createdBy"), Ul = "ROLE_ADMIN";
2838
2838
  function lV(i) {
2839
- const t = N(i) || N(i.disableInject), e = (i == null ? void 0 : i.currentUser) ?? (t ? at(Nn, void 0) : void 0), a = (i == null ? void 0 : i.customAclProvider) ?? (t ? at(rc, void 0) : void 0), s = (o, d) => {
2839
+ const t = N(i) || N(i.disableInject), e = (i == null ? void 0 : i.currentUser) ?? (t ? at(Ln, void 0) : void 0), a = (i == null ? void 0 : i.customAclProvider) ?? (t ? at(rc, void 0) : void 0), s = (o, d) => {
2840
2840
  if (N(e))
2841
2841
  throw new Error("Composable useAcl can be used as a global state without providing current user as a parameter.");
2842
2842
  if (qe(a) && qe(a.can))
@@ -2887,7 +2887,7 @@ const dV = /* @__PURE__ */ Z({
2887
2887
  subject: { default: void 0 }
2888
2888
  },
2889
2889
  setup(i) {
2890
- const t = i, e = at(Nn), { can: a } = lV(), s = E(a(t.permission, t.subject));
2890
+ const t = i, e = at(Ln), { can: a } = lV(), s = E(a(t.permission, t.subject));
2891
2891
  return xe(e, () => {
2892
2892
  s.value = a(t.permission, t.subject);
2893
2893
  }), (r, n) => s.value ? ge(r.$slots, "default", { key: 0 }) : j("", !0);
@@ -2903,7 +2903,7 @@ const dV = /* @__PURE__ */ Z({
2903
2903
  return (a, s) => k(e.value);
2904
2904
  }
2905
2905
  });
2906
- var Vo = [
2906
+ var go = [
2907
2907
  "onChange",
2908
2908
  "onClose",
2909
2909
  "onDayCreate",
@@ -3062,7 +3062,7 @@ function Ed(i, t) {
3062
3062
  }, t);
3063
3063
  };
3064
3064
  }
3065
- var go = function(i) {
3065
+ var vo = function(i) {
3066
3066
  return i instanceof Array ? i : [i];
3067
3067
  };
3068
3068
  function Nt(i, t, e) {
@@ -3102,11 +3102,11 @@ function oi(i) {
3102
3102
  return i.target;
3103
3103
  }
3104
3104
  }
3105
- var vo = function() {
3105
+ var Fo = function() {
3106
3106
  }, yn = function(i, t, e) {
3107
3107
  return e.months[t ? "shorthand" : "longhand"][i];
3108
3108
  }, uV = {
3109
- D: vo,
3109
+ D: Fo,
3110
3110
  F: function(i, t, e) {
3111
3111
  i.setMonth(e.months.longhand.indexOf(t));
3112
3112
  },
@@ -3153,7 +3153,7 @@ var vo = function() {
3153
3153
  j: function(i, t) {
3154
3154
  i.setDate(parseFloat(t));
3155
3155
  },
3156
- l: vo,
3156
+ l: Fo,
3157
3157
  m: function(i, t) {
3158
3158
  i.setMonth(parseFloat(t) - 1);
3159
3159
  },
@@ -3166,7 +3166,7 @@ var vo = function() {
3166
3166
  u: function(i, t) {
3167
3167
  return new Date(parseFloat(t));
3168
3168
  },
3169
- w: vo,
3169
+ w: Fo,
3170
3170
  y: function(i, t) {
3171
3171
  i.setFullYear(2e3 + parseFloat(t));
3172
3172
  }
@@ -3272,7 +3272,7 @@ var vo = function() {
3272
3272
  return sr[u] && v[m - 1] !== "\\" ? sr[u](l, c, e) : u !== "\\" ? u : "";
3273
3273
  }).join("");
3274
3274
  };
3275
- }, ll = function(i) {
3275
+ }, dl = function(i) {
3276
3276
  var t = i.config, e = t === void 0 ? Ys : t, a = i.l10n, s = a === void 0 ? vr : a;
3277
3277
  return function(r, n, l, o) {
3278
3278
  if (!(r !== 0 && !r)) {
@@ -3321,7 +3321,7 @@ function li(i, t, e) {
3321
3321
  }
3322
3322
  var cV = function(i, t, e) {
3323
3323
  return i > Math.min(t, e) && i < Math.max(t, e);
3324
- }, Fo = function(i, t, e) {
3324
+ }, qo = function(i, t, e) {
3325
3325
  return i * 3600 + t * 60 + e;
3326
3326
  }, fV = function(i) {
3327
3327
  var t = Math.floor(i / 3600), e = (i - t * 3600) / 60;
@@ -3329,7 +3329,7 @@ var cV = function(i, t, e) {
3329
3329
  }, mV = {
3330
3330
  DAY: 864e5
3331
3331
  };
3332
- function qo(i) {
3332
+ function Yo(i) {
3333
3333
  var t = i.defaultHour, e = i.defaultMinute, a = i.defaultSeconds;
3334
3334
  if (i.minDate !== void 0) {
3335
3335
  var s = i.minDate.getHours(), r = i.minDate.getMinutes(), n = i.minDate.getSeconds();
@@ -3378,7 +3378,7 @@ function hV(i, t) {
3378
3378
  config: $t($t({}, Ys), qt.defaultConfig),
3379
3379
  l10n: vr
3380
3380
  };
3381
- e.parseDate = ll({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = g, e._setHoursFromDate = m, e._positionCalendar = ct, e.changeMonth = ie, e.changeYear = Me, e.clear = re, e.close = ee, e.onMouseOver = wt, e._createElement = Ge, e.createDay = C, e.destroy = se, e.isEnabled = Oe, e.jumpToDate = Y, e.updateValue = la, e.open = le, e.redraw = vi, e.set = Qe, e.setDate = ai, e.toggle = he;
3381
+ e.parseDate = dl({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = g, e._setHoursFromDate = m, e._positionCalendar = ct, e.changeMonth = ee, e.changeYear = Me, e.clear = re, e.close = te, e.onMouseOver = wt, e._createElement = Ge, e.createDay = C, e.destroy = se, e.isEnabled = Oe, e.jumpToDate = Y, e.updateValue = la, e.open = le, e.redraw = vi, e.set = Qe, e.setDate = ai, e.toggle = he;
3382
3382
  function a() {
3383
3383
  e.utils = {
3384
3384
  getDaysInMonth: function(_, K) {
@@ -3409,7 +3409,7 @@ function hV(i, t) {
3409
3409
  }
3410
3410
  function o(_) {
3411
3411
  if (e.selectedDates.length === 0) {
3412
- var K = e.config.minDate === void 0 || li(/* @__PURE__ */ new Date(), e.config.minDate) >= 0 ? /* @__PURE__ */ new Date() : new Date(e.config.minDate.getTime()), J = qo(e.config);
3412
+ var K = e.config.minDate === void 0 || li(/* @__PURE__ */ new Date(), e.config.minDate) >= 0 ? /* @__PURE__ */ new Date() : new Date(e.config.minDate.getTime()), J = Yo(e.config);
3413
3413
  K.setHours(J.hours, J.minutes, J.seconds, K.getMilliseconds()), e.selectedDates = [K], e.latestSelectedDateObj = K;
3414
3414
  }
3415
3415
  _ !== void 0 && _.type !== "blur" && Em(_);
@@ -3434,7 +3434,7 @@ function hV(i, t) {
3434
3434
  e.amPM !== void 0 && (_ = d(_, e.amPM.textContent));
3435
3435
  var Q = e.config.minTime !== void 0 || e.config.minDate && e.minDateHasTime && e.latestSelectedDateObj && li(e.latestSelectedDateObj, e.config.minDate, !0) === 0, de = e.config.maxTime !== void 0 || e.config.maxDate && e.maxDateHasTime && e.latestSelectedDateObj && li(e.latestSelectedDateObj, e.config.maxDate, !0) === 0;
3436
3436
  if (e.config.maxTime !== void 0 && e.config.minTime !== void 0 && e.config.minTime > e.config.maxTime) {
3437
- var Ve = Fo(e.config.minTime.getHours(), e.config.minTime.getMinutes(), e.config.minTime.getSeconds()), Ee = Fo(e.config.maxTime.getHours(), e.config.maxTime.getMinutes(), e.config.maxTime.getSeconds()), Ye = Fo(_, K, J);
3437
+ var Ve = qo(e.config.minTime.getHours(), e.config.minTime.getMinutes(), e.config.minTime.getSeconds()), Ee = qo(e.config.maxTime.getHours(), e.config.maxTime.getMinutes(), e.config.maxTime.getSeconds()), Ye = qo(_, K, J);
3438
3438
  if (Ye > Ee && Ye < Ve) {
3439
3439
  var $e = fV(Ve);
3440
3440
  _ = $e[0], K = $e[1], J = $e[2];
@@ -3561,9 +3561,9 @@ function hV(i, t) {
3561
3561
  if (De.className.indexOf("hidden") === -1 && Oe(De.dateObj) && Math.abs(_.$i - Fe) >= Math.abs(K))
3562
3562
  return M(De);
3563
3563
  }
3564
- e.changeMonth(de), te(U(de), 0);
3564
+ e.changeMonth(de), ie(U(de), 0);
3565
3565
  }
3566
- function te(_, K) {
3566
+ function ie(_, K) {
3567
3567
  var J = r(), Q = Le(J || document.body), de = _ !== void 0 ? _ : Q ? J : e.selectedDateElem !== void 0 && Le(e.selectedDateElem) ? e.selectedDateElem : e.todayDateElem !== void 0 && Le(e.todayDateElem) ? e.todayDateElem : U(K > 0 ? 1 : -1);
3568
3568
  de === void 0 ? e._input.focus() : Q ? L(de, K) : M(de);
3569
3569
  }
@@ -3642,7 +3642,7 @@ function hV(i, t) {
3642
3642
  }
3643
3643
  function T() {
3644
3644
  e.calendarContainer.classList.add("hasTime"), e.config.noCalendar && e.calendarContainer.classList.add("noCalendar");
3645
- var _ = qo(e.config);
3645
+ var _ = Yo(e.config);
3646
3646
  e.timeContainer = Ge("div", "flatpickr-time"), e.timeContainer.tabIndex = -1;
3647
3647
  var K = Ge("span", "flatpickr-time-separator", ":"), J = Or("flatpickr-hour", {
3648
3648
  "aria-label": e.l10n.hourAriaLabel
@@ -3688,19 +3688,19 @@ function hV(i, t) {
3688
3688
  weekNumbers: K
3689
3689
  };
3690
3690
  }
3691
- function ie(_, K) {
3691
+ function ee(_, K) {
3692
3692
  K === void 0 && (K = !0);
3693
3693
  var J = K ? _ : _ - e.currentMonth;
3694
3694
  J < 0 && e._hidePrevMonthArrow === !0 || J > 0 && e._hideNextMonthArrow === !0 || (e.currentMonth += J, (e.currentMonth < 0 || e.currentMonth > 11) && (e.currentYear += e.currentMonth > 11 ? 1 : -1, e.currentMonth = (e.currentMonth + 12) % 12, Ne("onYearChange"), O()), H(), Ne("onMonthChange"), wi());
3695
3695
  }
3696
3696
  function re(_, K) {
3697
3697
  if (_ === void 0 && (_ = !0), K === void 0 && (K = !0), e.input.value = "", e.altInput !== void 0 && (e.altInput.value = ""), e.mobileInput !== void 0 && (e.mobileInput.value = ""), e.selectedDates = [], e.latestSelectedDateObj = void 0, K === !0 && (e.currentYear = e._initialDate.getFullYear(), e.currentMonth = e._initialDate.getMonth()), e.config.enableTime === !0) {
3698
- var J = qo(e.config), Q = J.hours, de = J.minutes, Ve = J.seconds;
3698
+ var J = Yo(e.config), Q = J.hours, de = J.minutes, Ve = J.seconds;
3699
3699
  v(Q, de, Ve);
3700
3700
  }
3701
3701
  e.redraw(), _ && Ne("onChange");
3702
3702
  }
3703
- function ee() {
3703
+ function te() {
3704
3704
  e.isOpen = !1, e.isMobile || (e.calendarContainer !== void 0 && e.calendarContainer.classList.remove("open"), e._input !== void 0 && e._input.classList.remove("active")), Ne("onClose");
3705
3705
  }
3706
3706
  function se() {
@@ -3829,7 +3829,7 @@ function hV(i, t) {
3829
3829
  var Ye = r();
3830
3830
  if (e.daysContainer !== void 0 && (Q === !1 || Ye && Le(Ye))) {
3831
3831
  var $e = _.keyCode === 39 ? 1 : -1;
3832
- _.ctrlKey ? (_.stopPropagation(), ie($e), te(U(1), 0)) : te(void 0, $e);
3832
+ _.ctrlKey ? (_.stopPropagation(), ee($e), ie(U(1), 0)) : ie(void 0, $e);
3833
3833
  }
3834
3834
  } else
3835
3835
  e.hourElement && e.hourElement.focus();
@@ -3838,7 +3838,7 @@ function hV(i, t) {
3838
3838
  case 40:
3839
3839
  _.preventDefault();
3840
3840
  var Fe = _.keyCode === 40 ? 1 : -1;
3841
- e.daysContainer && K.$i !== void 0 || K === e.input || K === e.altInput ? _.ctrlKey ? (_.stopPropagation(), Me(e.currentYear - Fe), te(U(1), 0)) : Ee || te(void 0, Fe * 7) : K === e.currentYearElement ? Me(e.currentYear - Fe) : e.config.enableTime && (!Ee && e.hourElement && e.hourElement.focus(), o(_), e._debouncedChange());
3841
+ e.daysContainer && K.$i !== void 0 || K === e.input || K === e.altInput ? _.ctrlKey ? (_.stopPropagation(), Me(e.currentYear - Fe), ie(U(1), 0)) : Ee || ie(void 0, Fe * 7) : K === e.currentYearElement ? Me(e.currentYear - Fe) : e.config.enableTime && (!Ee && e.hourElement && e.hourElement.focus(), o(_), e._debouncedChange());
3842
3842
  break;
3843
3843
  case 9:
3844
3844
  if (Ee) {
@@ -3989,15 +3989,15 @@ function hV(i, t) {
3989
3989
  }), K.mode === "time" && (e.config.noCalendar = !0, e.config.enableTime = !0), Object.assign(e.config, J, K);
3990
3990
  for (var Ye = 0; Ye < _.length; Ye++)
3991
3991
  e.config[_[Ye]] = e.config[_[Ye]] === !0 || e.config[_[Ye]] === "true";
3992
- Vo.filter(function(De) {
3992
+ go.filter(function(De) {
3993
3993
  return e.config[De] !== void 0;
3994
3994
  }).forEach(function(De) {
3995
- e.config[De] = go(e.config[De] || []).map(n);
3995
+ e.config[De] = vo(e.config[De] || []).map(n);
3996
3996
  }), e.isMobile = !e.config.disableMobile && !e.config.inline && e.config.mode === "single" && !e.config.disable.length && !e.config.enable && !e.config.weekNumbers && /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
3997
3997
  for (var Ye = 0; Ye < e.config.plugins.length; Ye++) {
3998
3998
  var $e = e.config.plugins[Ye](e) || {};
3999
3999
  for (var Fe in $e)
4000
- Vo.indexOf(Fe) > -1 ? e.config[Fe] = go($e[Fe]).map(n).concat(e.config[Fe]) : typeof K[Fe] > "u" && (e.config[Fe] = $e[Fe]);
4000
+ go.indexOf(Fe) > -1 ? e.config[Fe] = vo($e[Fe]).map(n).concat(e.config[Fe]) : typeof K[Fe] > "u" && (e.config[Fe] = $e[Fe]);
4001
4001
  }
4002
4002
  K.altInputClass || (e.config.altInputClass = je().className + " " + e.config.altInputClass), Ne("onParseConfig");
4003
4003
  }
@@ -4007,7 +4007,7 @@ function hV(i, t) {
4007
4007
  function vt() {
4008
4008
  typeof e.config.locale != "object" && typeof qt.l10ns[e.config.locale] > "u" && e.config.errorHandler(new Error("flatpickr: invalid locale " + e.config.locale)), e.l10n = $t($t({}, qt.l10ns.default), typeof e.config.locale == "object" ? e.config.locale : e.config.locale !== "default" ? qt.l10ns[e.config.locale] : void 0), Ha.D = "(" + e.l10n.weekdays.shorthand.join("|") + ")", Ha.l = "(" + e.l10n.weekdays.longhand.join("|") + ")", Ha.M = "(" + e.l10n.months.shorthand.join("|") + ")", Ha.F = "(" + e.l10n.months.longhand.join("|") + ")", Ha.K = "(" + e.l10n.amPM[0] + "|" + e.l10n.amPM[1] + "|" + e.l10n.amPM[0].toLowerCase() + "|" + e.l10n.amPM[1].toLowerCase() + ")";
4009
4009
  var _ = $t($t({}, t), JSON.parse(JSON.stringify(i.dataset || {})));
4010
- _.time_24hr === void 0 && qt.defaultConfig.time_24hr === void 0 && (e.config.time_24hr = e.l10n.time_24hr), e.formatDate = Kc(e), e.parseDate = ll({ config: e.config, l10n: e.l10n });
4010
+ _.time_24hr === void 0 && qt.defaultConfig.time_24hr === void 0 && (e.config.time_24hr = e.l10n.time_24hr), e.formatDate = Kc(e), e.parseDate = dl({ config: e.config, l10n: e.l10n });
4011
4011
  }
4012
4012
  function ct(_) {
4013
4013
  if (typeof e.config.position == "function")
@@ -4027,11 +4027,11 @@ function hV(i, t) {
4027
4027
  else if (!Mm)
4028
4028
  e.calendarContainer.style.left = "auto", e.calendarContainer.style.right = Ls + "px";
4029
4029
  else {
4030
- var co = Ke();
4031
- if (co === void 0)
4030
+ var fo = Ke();
4031
+ if (fo === void 0)
4032
4032
  return;
4033
- var Bm = window.document.body.offsetWidth, Om = Math.max(0, Bm / 2 - Q / 2), $m = ".flatpickr-calendar.centerMost:before", Pm = ".flatpickr-calendar.centerMost:after", Rm = co.cssRules.length, Nm = "{left:" + Ye.left + "px;right:auto;}";
4034
- Nt(e.calendarContainer, "rightMost", !1), Nt(e.calendarContainer, "centerMost", !0), co.insertRule($m + "," + Pm + Nm, Rm), e.calendarContainer.style.left = Om + "px", e.calendarContainer.style.right = "auto";
4033
+ var Bm = window.document.body.offsetWidth, Om = Math.max(0, Bm / 2 - Q / 2), $m = ".flatpickr-calendar.centerMost:before", Pm = ".flatpickr-calendar.centerMost:after", Rm = fo.cssRules.length, Nm = "{left:" + Ye.left + "px;right:auto;}";
4034
+ Nt(e.calendarContainer, "rightMost", !1), Nt(e.calendarContainer, "centerMost", !0), fo.insertRule($m + "," + Pm + Nm, Rm), e.calendarContainer.style.left = Om + "px", e.calendarContainer.style.right = "auto";
4035
4035
  }
4036
4036
  }
4037
4037
  }
@@ -4110,7 +4110,7 @@ function hV(i, t) {
4110
4110
  } else
4111
4111
  e.config[_] = K, me[_] !== void 0 ? me[_].forEach(function(Q) {
4112
4112
  return Q();
4113
- }) : Vo.indexOf(_) > -1 && (e.config[_] = go(K));
4113
+ }) : go.indexOf(_) > -1 && (e.config[_] = vo(K));
4114
4114
  e.redraw(), la(!0);
4115
4115
  }
4116
4116
  function Tt(_, K) {
@@ -4235,7 +4235,7 @@ function hV(i, t) {
4235
4235
  }
4236
4236
  function Km(_) {
4237
4237
  var K = oi(_), J = e.prevMonthNav.contains(K), Q = e.nextMonthNav.contains(K);
4238
- J || Q ? ie(J ? -1 : 1) : e.yearElements.indexOf(K) >= 0 ? K.select() : K.classList.contains("arrowUp") ? e.changeYear(e.currentYear + 1) : K.classList.contains("arrowDown") && e.changeYear(e.currentYear - 1);
4238
+ J || Q ? ee(J ? -1 : 1) : e.yearElements.indexOf(K) >= 0 ? K.select() : K.classList.contains("arrowUp") ? e.changeYear(e.currentYear + 1) : K.classList.contains("arrowDown") && e.changeYear(e.currentYear - 1);
4239
4239
  }
4240
4240
  function Em(_) {
4241
4241
  _.preventDefault();
@@ -4283,7 +4283,7 @@ qt.localize = function(i) {
4283
4283
  qt.setDefaults = function(i) {
4284
4284
  qt.defaultConfig = $t($t({}, qt.defaultConfig), i);
4285
4285
  };
4286
- qt.parseDate = ll({});
4286
+ qt.parseDate = dl({});
4287
4287
  qt.formatDate = Kc({});
4288
4288
  qt.compareDates = li;
4289
4289
  typeof jQuery < "u" && typeof jQuery.fn < "u" && (jQuery.fn.flatpickr = function(i) {
@@ -4314,7 +4314,7 @@ function Bd(i) {
4314
4314
  function Od(i) {
4315
4315
  return i instanceof Array ? i : [i];
4316
4316
  }
4317
- function Yo(i) {
4317
+ function Xo(i) {
4318
4318
  return i && i.length ? i : null;
4319
4319
  }
4320
4320
  const $d = [...Ec, ...VV], gV = ["locale", "showMonths"], vV = Z({
@@ -4393,7 +4393,7 @@ const $d = [...Ec, ...VV], gV = ["locale", "showMonths"], vV = Z({
4393
4393
  onInput(i) {
4394
4394
  const t = i.target;
4395
4395
  Si().then(() => {
4396
- this.$emit("update:modelValue", Yo(t.value));
4396
+ this.$emit("update:modelValue", Xo(t.value));
4397
4397
  });
4398
4398
  },
4399
4399
  fpInput() {
@@ -4403,7 +4403,7 @@ const $d = [...Ec, ...VV], gV = ["locale", "showMonths"], vV = Z({
4403
4403
  * Blur event is required by many validation libraries
4404
4404
  */
4405
4405
  onBlur(i) {
4406
- this.$emit("blur", Yo(i.target.value));
4406
+ this.$emit("blur", Xo(i.target.value));
4407
4407
  },
4408
4408
  /**
4409
4409
  * Flatpickr does not emit input event in some cases
@@ -4440,14 +4440,14 @@ const $d = [...Ec, ...VV], gV = ["locale", "showMonths"], vV = Z({
4440
4440
  */
4441
4441
  modelValue(i) {
4442
4442
  var t;
4443
- !this.$el || i === Yo(this.$el.value) || (t = this.fp) === null || t === void 0 || t.setDate(i, !0);
4443
+ !this.$el || i === Xo(this.$el.value) || (t = this.fp) === null || t === void 0 || t.setDate(i, !0);
4444
4444
  }
4445
4445
  },
4446
4446
  beforeUnmount() {
4447
4447
  this.fp && (this.fpInput().removeEventListener("blur", this.onBlur), this.fp.destroy(), this.fp = null);
4448
4448
  }
4449
4449
  });
4450
- var dl = { exports: {} };
4450
+ var ul = { exports: {} };
4451
4451
  (function(i, t) {
4452
4452
  (function(e, a) {
4453
4453
  a(t);
@@ -4508,8 +4508,8 @@ var dl = { exports: {} };
4508
4508
  var r = a.l10ns;
4509
4509
  e.Slovak = s, e.default = r, Object.defineProperty(e, "__esModule", { value: !0 });
4510
4510
  });
4511
- })(dl, dl.exports);
4512
- var FV = dl.exports, ul = { exports: {} };
4511
+ })(ul, ul.exports);
4512
+ var FV = ul.exports, cl = { exports: {} };
4513
4513
  (function(i, t) {
4514
4514
  (function(e, a) {
4515
4515
  a(t);
@@ -4575,8 +4575,8 @@ var FV = dl.exports, ul = { exports: {} };
4575
4575
  var r = a.l10ns;
4576
4576
  e.Czech = s, e.default = r, Object.defineProperty(e, "__esModule", { value: !0 });
4577
4577
  });
4578
- })(ul, ul.exports);
4579
- var qV = ul.exports, cl = { exports: {} };
4578
+ })(cl, cl.exports);
4579
+ var qV = cl.exports, fl = { exports: {} };
4580
4580
  (function(i, t) {
4581
4581
  (function(e, a) {
4582
4582
  a(t);
@@ -4654,8 +4654,8 @@ var qV = ul.exports, cl = { exports: {} };
4654
4654
  };
4655
4655
  e.default = a, e.english = a, Object.defineProperty(e, "__esModule", { value: !0 });
4656
4656
  });
4657
- })(cl, cl.exports);
4658
- var YV = cl.exports;
4657
+ })(fl, fl.exports);
4658
+ var YV = fl.exports;
4659
4659
  const cn = [
4660
4660
  {
4661
4661
  code: "en",
@@ -4856,15 +4856,15 @@ const jV = { class: "ml-1" }, HV = {
4856
4856
  }, X = () => {
4857
4857
  a("focus");
4858
4858
  }, x = () => {
4859
- var re, ee, se;
4859
+ var re, te, se;
4860
4860
  if (!n(l.value))
4861
4861
  return;
4862
- const G = c.value.replace(/[^\s\d.:]/g, ""), ie = l.value.fp.parseDate(G, M.value);
4863
- if (N(ie)) {
4864
- ce(e.defaultValue) ? (re = l.value) == null || re.fp.clear(!0) : (ee = l.value) == null || ee.fp.setDate(e.defaultValue, !0), $.value.textFieldValue.$touch(), a("blur");
4862
+ const G = c.value.replace(/[^\s\d.:]/g, ""), ee = l.value.fp.parseDate(G, M.value);
4863
+ if (N(ee)) {
4864
+ ce(e.defaultValue) ? (re = l.value) == null || re.fp.clear(!0) : (te = l.value) == null || te.fp.setDate(e.defaultValue, !0), $.value.textFieldValue.$touch(), a("blur");
4865
4865
  return;
4866
4866
  }
4867
- (se = l.value) == null || se.fp.setDate(ie, !0), $.value.textFieldValue.$touch(), a("blur");
4867
+ (se = l.value) == null || se.fp.setDate(ee, !0), $.value.textFieldValue.$touch(), a("blur");
4868
4868
  }, C = () => {
4869
4869
  u.value = e.defaultValue, a("update:modelValue", h(e.defaultValue));
4870
4870
  }, M = D(() => e.type === "datetime" ? "d.m.Y H:i" : "d.m.Y"), U = D(() => e.type === "datetime" ? "dd.mm.yyyy hh:mm" : "dd.mm.yyyy"), L = D(() => e.enable && e.enable.length > 0 ? e.enable : [
@@ -4872,16 +4872,16 @@ const jV = { class: "ml-1" }, HV = {
4872
4872
  from: new Date(1901, 1),
4873
4873
  to: new Date(2099, 12)
4874
4874
  }
4875
- ]), te = D(() => ce(e.defaultValue) ? void 0 : e.defaultValue), S = D(() => e.hideSetToNow || N(s.value) ? [] : [
4875
+ ]), ie = D(() => ce(e.defaultValue) ? void 0 : e.defaultValue), S = D(() => e.hideSetToNow || N(s.value) ? [] : [
4876
4876
  s.value({
4877
4877
  button: [
4878
4878
  {
4879
4879
  label: v("common.button.now")
4880
4880
  }
4881
4881
  ],
4882
- onClick: (G, ie) => {
4882
+ onClick: (G, ee) => {
4883
4883
  const re = jh();
4884
- ie.setDate(re, !0), F(Hh(re));
4884
+ ee.setDate(re, !0), F(Hh(re));
4885
4885
  }
4886
4886
  })
4887
4887
  ]), H = {
@@ -4889,14 +4889,14 @@ const jV = { class: "ml-1" }, HV = {
4889
4889
  en: YV.english,
4890
4890
  cs: qV.Czech
4891
4891
  }, { currentLanguageCode: O } = Mc(), I = D(() => {
4892
- var ie;
4893
- const G = (ie = o.value) == null ? void 0 : ie.$el.querySelector(".v-input__control");
4892
+ var ee;
4893
+ const G = (ee = o.value) == null ? void 0 : ee.$el.querySelector(".v-input__control");
4894
4894
  return {
4895
4895
  enableTime: e.type !== "date",
4896
4896
  wrap: !0,
4897
4897
  time_24hr: !0,
4898
4898
  altFormat: M.value,
4899
- defaultDate: te.value,
4899
+ defaultDate: ie.value,
4900
4900
  allowInput: !0,
4901
4901
  altInput: !0,
4902
4902
  altInputClass: "d-sr-only",
@@ -4931,8 +4931,8 @@ const jV = { class: "ml-1" }, HV = {
4931
4931
  })), $ = Mi(T, { textFieldValue: c }), W = D(() => qe(e.errorMessages) ? e.errorMessages : $.value.textFieldValue.$errors.length ? [$.value.textFieldValue.$errors.map((G) => G.$message).join(" ")] : []);
4932
4932
  return xe(
4933
4933
  () => e.modelValue,
4934
- (G, ie) => {
4935
- if (G !== ie) {
4934
+ (G, ee) => {
4935
+ if (G !== ee) {
4936
4936
  if ((ce(G) || N(G)) && !ce(e.defaultValue)) {
4937
4937
  u.value = e.defaultValue;
4938
4938
  return;
@@ -4943,19 +4943,22 @@ const jV = { class: "ml-1" }, HV = {
4943
4943
  { immediate: !0 }
4944
4944
  ), xe(
4945
4945
  l,
4946
- (G, ie) => {
4947
- m.value !== !0 && G !== ie && (ce(G) || N(G) || (y(), m.value = !0));
4946
+ (G, ee) => {
4947
+ m.value !== !0 && G !== ee && (ce(G) || N(G) || (y(), m.value = !0));
4948
4948
  },
4949
4949
  { immediate: !0 }
4950
4950
  ), Bt(() => {
4951
- import("./shortcut-buttons-flatpickr-JYE8O9pk.js").then((G) => G.s).then((G) => {
4951
+ import("./shortcut-buttons-flatpickr-ymlfdFaJ.js").then((G) => G.s).then((G) => {
4952
4952
  s.value = G.default, r.value = !0;
4953
4953
  });
4954
- }), (G, ie) => (q(), B(Ts, {
4954
+ }), Kn(() => {
4955
+ var G, ee;
4956
+ (ee = (G = l.value) == null ? void 0 : G.fp) == null || ee.destroy();
4957
+ }), (G, ee) => (q(), B(Ts, {
4955
4958
  ref_key: "textFieldRef",
4956
4959
  ref: o,
4957
4960
  modelValue: c.value,
4958
- "onUpdate:modelValue": ie[0] || (ie[0] = (re) => c.value = re),
4961
+ "onUpdate:modelValue": ee[0] || (ee[0] = (re) => c.value = re),
4959
4962
  "error-messages": W.value,
4960
4963
  "persistent-placeholder": !0,
4961
4964
  placeholder: U.value,
@@ -5008,7 +5011,7 @@ const jV = { class: "ml-1" }, HV = {
5008
5011
  }
5009
5012
  ]), 1032, ["modelValue", "error-messages", "placeholder", "disabled"]));
5010
5013
  }
5011
- }), jl = /* @__PURE__ */ Ka(WV, [["__scopeId", "data-v-c15746d6"]]), uT = /* @__PURE__ */ Z({
5014
+ }), jl = /* @__PURE__ */ Ka(WV, [["__scopeId", "data-v-395e3efa"]]), uT = /* @__PURE__ */ Z({
5012
5015
  __name: "AFormDatetimePicker",
5013
5016
  props: {
5014
5017
  modelValue: {},
@@ -5039,7 +5042,7 @@ const jV = { class: "ml-1" }, HV = {
5039
5042
  releaseCollabFieldLock: M,
5040
5043
  changeCollabFieldData: U,
5041
5044
  acquireCollabFieldLock: L,
5042
- addCollabFieldDataChangeListener: te,
5045
+ addCollabFieldDataChangeListener: ie,
5043
5046
  lockedByUser: S
5044
5047
  // eslint-disable-next-line vue/no-setup-props-reactivity-loss
5045
5048
  } = Ta(e.collab.room, e.collab.field);
@@ -5049,7 +5052,7 @@ const jV = { class: "ml-1" }, HV = {
5049
5052
  d.value = H;
5050
5053
  },
5051
5054
  { immediate: !0 }
5052
- ), te((H) => {
5055
+ ), ie((H) => {
5053
5056
  a("update:modelValue", H.value);
5054
5057
  });
5055
5058
  }
@@ -5135,12 +5138,12 @@ const jV = { class: "ml-1" }, HV = {
5135
5138
  const {
5136
5139
  releaseCollabFieldLock: U,
5137
5140
  changeCollabFieldData: L,
5138
- acquireCollabFieldLock: te,
5141
+ acquireCollabFieldLock: ie,
5139
5142
  addCollabFieldDataChangeListener: S,
5140
5143
  lockedByUser: H
5141
5144
  // eslint-disable-next-line vue/no-setup-props-reactivity-loss
5142
5145
  } = Ta(e.collab.room, e.collab.field);
5143
- n.value = U, l.value = L, o.value = te, xe(
5146
+ n.value = U, l.value = L, o.value = ie, xe(
5144
5147
  H,
5145
5148
  (O) => {
5146
5149
  d.value = O;
@@ -5161,14 +5164,14 @@ const jV = { class: "ml-1" }, HV = {
5161
5164
  g.value = !1, n.value(e.modelValue);
5162
5165
  }, X = D(() => {
5163
5166
  var U, L;
5164
- return N(e.errorMessage) ? (L = (U = e.v) == null ? void 0 : U.$errors) != null && L.length ? [e.v.$errors.map((te) => te.$message).join(" ")] : [] : [e.errorMessage];
5167
+ return N(e.errorMessage) ? (L = (U = e.v) == null ? void 0 : U.$errors) != null && L.length ? [e.v.$errors.map((ie) => ie.$message).join(" ")] : [] : [e.errorMessage];
5165
5168
  }), x = D(() => {
5166
- var L, te;
5169
+ var L, ie;
5167
5170
  if (qe(e.label))
5168
5171
  return e.label;
5169
5172
  if (N(u) || N(m) || N((L = e.v) == null ? void 0 : L.$path))
5170
5173
  return "";
5171
- const { end: U } = ha((te = e.v) == null ? void 0 : te.$path, ".");
5174
+ const { end: U } = ha((ie = e.v) == null ? void 0 : ie.$path, ".");
5172
5175
  return c(u + "." + m + ".model." + U);
5173
5176
  });
5174
5177
  xe(
@@ -5207,10 +5210,10 @@ const jV = { class: "ml-1" }, HV = {
5207
5210
  z("div", GV, [
5208
5211
  f(Xr, {
5209
5212
  modelValue: v.value,
5210
- "onUpdate:modelValue": L[0] || (L[0] = (te) => v.value = te),
5213
+ "onUpdate:modelValue": L[0] || (L[0] = (ie) => v.value = ie),
5211
5214
  label: x.value,
5212
5215
  disabled: M.value,
5213
- onClick: L[1] || (L[1] = ae((te) => C(v.value), ["stop"]))
5216
+ onClick: L[1] || (L[1] = ae((ie) => C(v.value), ["stop"]))
5214
5217
  }, null, 8, ["modelValue", "label", "disabled"]),
5215
5218
  z("div", JV, [
5216
5219
  ge(U.$slots, "locked", { userId: d.value }, () => [
@@ -5227,7 +5230,7 @@ const jV = { class: "ml-1" }, HV = {
5227
5230
  fa(z("div", null, [
5228
5231
  f(jl, {
5229
5232
  modelValue: s.value,
5230
- "onUpdate:modelValue": L[2] || (L[2] = (te) => s.value = te),
5233
+ "onUpdate:modelValue": L[2] || (L[2] = (ie) => s.value = ie),
5231
5234
  "data-cy": U.dataCy,
5232
5235
  "error-messages": X.value,
5233
5236
  clearable: U.clearable,
@@ -5322,23 +5325,23 @@ const ZV = {
5322
5325
  get() {
5323
5326
  return e.modelValue;
5324
5327
  },
5325
- set(ee) {
5326
- a("update:modelValue", Be(ee));
5328
+ set(te) {
5329
+ a("update:modelValue", Be(te));
5327
5330
  }
5328
- }), { collabOptions: r } = gi(), n = E((ee) => {
5329
- }), l = E((ee) => {
5331
+ }), { collabOptions: r } = gi(), n = E((te) => {
5332
+ }), l = E((te) => {
5330
5333
  }), o = E(() => {
5331
5334
  }), d = E(null);
5332
5335
  if (r.value.enabled && qe(e.collab)) {
5333
5336
  const {
5334
- releaseCollabFieldLock: ee,
5337
+ releaseCollabFieldLock: te,
5335
5338
  changeCollabFieldData: se,
5336
5339
  acquireCollabFieldLock: ye,
5337
5340
  addCollabFieldDataChangeListener: ke,
5338
5341
  lockedByUser: Me
5339
5342
  // eslint-disable-next-line vue/no-setup-props-reactivity-loss
5340
5343
  } = Ta(e.collab.room, e.collab.field);
5341
- n.value = ee, l.value = se, o.value = ye, xe(
5344
+ n.value = te, l.value = se, o.value = ye, xe(
5342
5345
  Me,
5343
5346
  (Oe) => {
5344
5347
  d.value = Oe;
@@ -5349,39 +5352,39 @@ const ZV = {
5349
5352
  });
5350
5353
  }
5351
5354
  const c = E(""), u = E(!1), m = E(void 0), { t: v } = ne(), { innerFilter: V } = Ds(e), g = at(ta, void 0), F = at(ia, void 0), w = () => {
5352
- var ee;
5353
- u.value = !1, a("blur", e.modelValue), (ee = e.v) == null || ee.$touch(), n.value(e.modelValue);
5355
+ var te;
5356
+ u.value = !1, a("blur", e.modelValue), (te = e.v) == null || te.$touch(), n.value(e.modelValue);
5354
5357
  }, Y = D(() => {
5355
- var ee, se;
5356
- return qe(e.errorMessage) ? [e.errorMessage] : (se = (ee = e.v) == null ? void 0 : ee.$errors) != null && se.length ? e.v.$errors.map((ye) => ye.$message) : [];
5358
+ var te, se;
5359
+ return qe(e.errorMessage) ? [e.errorMessage] : (se = (te = e.v) == null ? void 0 : te.$errors) != null && se.length ? e.v.$errors.map((ye) => ye.$message) : [];
5357
5360
  }), y = D(() => {
5358
5361
  var se, ye;
5359
5362
  if (qe(e.label))
5360
5363
  return e.label;
5361
5364
  if (N(g) || N(F) || N((se = e.v) == null ? void 0 : se.$path))
5362
5365
  return "";
5363
- const { end: ee } = ha((ye = e.v) == null ? void 0 : ye.$path, ".");
5364
- return v(g + "." + F + ".model." + ee);
5366
+ const { end: te } = ha((ye = e.v) == null ? void 0 : ye.$path, ".");
5367
+ return v(g + "." + F + ".model." + te);
5365
5368
  }), X = D(() => {
5366
- var ee, se;
5367
- return qe(e.required) ? e.required : ((ee = e.v) == null ? void 0 : ee.required) && ((se = e.v) == null ? void 0 : se.required.$params.type) === "required";
5368
- }), x = D(() => qe(e.disabled) ? e.disabled : !!d.value), C = D(() => e.multiple !== !1), M = rs(e.filterSortBy), U = E([]), L = E([]), te = D(() => {
5369
- const ee = /* @__PURE__ */ new Map();
5369
+ var te, se;
5370
+ return qe(e.required) ? e.required : ((te = e.v) == null ? void 0 : te.required) && ((se = e.v) == null ? void 0 : se.required.$params.type) === "required";
5371
+ }), x = D(() => qe(e.disabled) ? e.disabled : !!d.value), C = D(() => e.multiple !== !1), M = rs(e.filterSortBy), U = E([]), L = E([]), ie = D(() => {
5372
+ const te = /* @__PURE__ */ new Map();
5370
5373
  return L.value.forEach((se) => {
5371
- ee.set(se.value, { value: se.value, title: se.title });
5374
+ te.set(se.value, { value: se.value, title: se.title });
5372
5375
  }), U.value.forEach((se) => {
5373
- ee.set(se.value, { value: se.value, title: se.title });
5374
- }), Array.from(ee, ([se, ye]) => ({ value: se, title: ye.title }));
5375
- }), S = E(!1), H = D(() => S.value ? !0 : e.loading), O = async (ee) => {
5376
+ te.set(se.value, { value: se.value, title: se.title });
5377
+ }), Array.from(te, ([se, ye]) => ({ value: se, title: ye.title }));
5378
+ }), S = E(!1), H = D(() => S.value ? !0 : e.loading), O = async (te) => {
5376
5379
  S.value = !0;
5377
5380
  const se = V.value[e.filterByField];
5378
- se.model = ee, U.value = await e.fetchItems(M, V.value), S.value = !1;
5379
- }, I = (ee) => {
5380
- const se = te.value.filter((ye) => ee.includes(ye.value));
5381
+ se.model = te, U.value = await e.fetchItems(M, V.value), S.value = !1;
5382
+ }, I = (te) => {
5383
+ const se = ie.value.filter((ye) => te.includes(ye.value));
5381
5384
  return [].concat(se);
5382
- }, A = async (ee) => {
5385
+ }, A = async (te) => {
5383
5386
  let se = 1, ye = [];
5384
- return _t(ee) ? (se = ee.length, ye = I(ee)) : ye = I([ee]), L.value = ye, ye.length === se;
5387
+ return _t(te) ? (se = te.length, ye = I(te)) : ye = I([te]), L.value = ye, ye.length === se;
5385
5388
  }, b = E(!1), T = () => {
5386
5389
  clearTimeout(m.value), m.value = void 0;
5387
5390
  }, $ = async () => {
@@ -5391,8 +5394,8 @@ const ZV = {
5391
5394
  }, G = D(() => {
5392
5395
  if (!e.multiple && L.value[0])
5393
5396
  return L.value[0].title;
5394
- }), ie = (ee) => {
5395
- !e.multiple && !u.value && ee.length === 0 || G.value !== ee && (c.value = ee);
5397
+ }), ee = (te) => {
5398
+ !e.multiple && !u.value && te.length === 0 || G.value !== te && (c.value = te);
5396
5399
  }, re = async () => {
5397
5400
  if (U.value = await e.fetchItems(M, V.value), e.multiple) {
5398
5401
  s.value = [];
@@ -5402,10 +5405,10 @@ const ZV = {
5402
5405
  };
5403
5406
  return xe(
5404
5407
  s,
5405
- async (ee, se) => {
5406
- if (ee === se)
5408
+ async (te, se) => {
5409
+ if (te === se)
5407
5410
  return;
5408
- if (r.value.enabled && u.value && l.value(ee), ce(ee) || N(ee) || _t(ee) && ee.length === 0) {
5411
+ if (r.value.enabled && u.value && l.value(te), ce(te) || N(te) || _t(te) && te.length === 0) {
5409
5412
  if (L.value = [], e.disableInitFetch || b.value === !0)
5410
5413
  return;
5411
5414
  m.value = setTimeout(() => {
@@ -5413,42 +5416,42 @@ const ZV = {
5413
5416
  }, 3e3);
5414
5417
  return;
5415
5418
  }
5416
- if (!await A(ee)) {
5417
- if (_t(ee)) {
5418
- S.value = !0, L.value = await e.fetchItemsByIds(ee), S.value = !1;
5419
+ if (!await A(te)) {
5420
+ if (_t(te)) {
5421
+ S.value = !0, L.value = await e.fetchItemsByIds(te), S.value = !1;
5419
5422
  return;
5420
5423
  }
5421
- S.value = !0, L.value = await e.fetchItemsByIds([ee]), S.value = !1;
5424
+ S.value = !0, L.value = await e.fetchItemsByIds([te]), S.value = !1;
5422
5425
  }
5423
5426
  },
5424
5427
  { immediate: !0 }
5425
5428
  ), Ml(
5426
5429
  c,
5427
- (ee, se) => {
5428
- ee !== se && (O(ee), a("searchChangeDebounced", ee));
5430
+ (te, se) => {
5431
+ te !== se && (O(te), a("searchChangeDebounced", te));
5429
5432
  },
5430
5433
  { debounce: 300, maxWait: 1e3 }
5431
- ), xe(c, (ee, se) => {
5432
- ee !== se && a("searchChange", ee);
5433
- }), (ee, se) => (q(), B(yr, {
5434
+ ), xe(c, (te, se) => {
5435
+ te !== se && a("searchChange", te);
5436
+ }), (te, se) => (q(), B(yr, {
5434
5437
  modelValue: s.value,
5435
5438
  "onUpdate:modelValue": se[0] || (se[0] = (ye) => s.value = ye),
5436
- items: te.value,
5439
+ items: ie.value,
5437
5440
  "no-filter": "",
5438
5441
  multiple: C.value,
5439
- clearable: ee.clearable,
5442
+ clearable: te.clearable,
5440
5443
  "error-messages": Y.value,
5441
- chips: ee.multiple,
5442
- "hide-details": ee.hideDetails,
5444
+ chips: te.multiple,
5445
+ "hide-details": te.hideDetails,
5443
5446
  loading: H.value,
5444
5447
  disabled: x.value,
5445
- "onUpdate:search": ie,
5448
+ "onUpdate:search": ee,
5446
5449
  onBlur: w,
5447
5450
  onFocus: W,
5448
5451
  "onClick:clear": re
5449
5452
  }, Ki({
5450
5453
  label: p(() => [
5451
- ee.hideLabel ? j("", !0) : (q(), R("span", {
5454
+ te.hideLabel ? j("", !0) : (q(), R("span", {
5452
5455
  key: X.value + ""
5453
5456
  }, [
5454
5457
  P(k(y.value) + " ", 1),
@@ -5460,11 +5463,11 @@ const ZV = {
5460
5463
  d.value ? {
5461
5464
  name: "append-inner",
5462
5465
  fn: p(() => [
5463
- ge(ee.$slots, "locked", { userId: d.value }, () => [
5464
- ee.collab ? (q(), B(ci, {
5466
+ ge(te.$slots, "locked", { userId: d.value }, () => [
5467
+ te.collab ? (q(), B(ci, {
5465
5468
  key: 0,
5466
5469
  id: d.value,
5467
- users: ee.collab.cachedUsers
5470
+ users: te.collab.cachedUsers
5468
5471
  }, null, 8, ["id", "users"])) : j("", !0)
5469
5472
  ])
5470
5473
  ]),
@@ -5722,12 +5725,12 @@ const ZV = {
5722
5725
  } = Ta(e.collab.room, e.collab.field);
5723
5726
  n.value = x, l.value = C, o.value = M, xe(
5724
5727
  L,
5725
- (te) => {
5726
- d.value = te;
5728
+ (ie) => {
5729
+ d.value = ie;
5727
5730
  },
5728
5731
  { immediate: !0 }
5729
- ), U((te) => {
5730
- a("update:modelValue", te.value);
5732
+ ), U((ie) => {
5733
+ a("update:modelValue", ie.value);
5731
5734
  });
5732
5735
  }
5733
5736
  const c = at(ta, void 0), u = at(ia, void 0), { t: m } = ne(), v = E(!1), V = () => {
@@ -5871,7 +5874,7 @@ const ZV = {
5871
5874
  }, L = D(() => {
5872
5875
  if (!e.modelValue.multiple && g.value[0])
5873
5876
  return g.value[0].title;
5874
- }), te = (O) => {
5877
+ }), ie = (O) => {
5875
5878
  !e.modelValue.multiple && !n.value && O.length === 0 || L.value !== O && (r.value = O);
5876
5879
  }, S = async () => {
5877
5880
  if (V.value = await e.fetchItems(v, d.value), e.modelValue.multiple) {
@@ -5919,7 +5922,7 @@ const ZV = {
5919
5922
  label: u.value,
5920
5923
  chips: O.modelValue.multiple,
5921
5924
  loading: w.value,
5922
- "onUpdate:search": te,
5925
+ "onUpdate:search": ie,
5923
5926
  onBlur: c,
5924
5927
  onFocus: U,
5925
5928
  "onClick:clear": S
@@ -5949,7 +5952,7 @@ const ZV = {
5949
5952
  ]),
5950
5953
  _: 1
5951
5954
  }),
5952
- f(Mn, {
5955
+ f(Bn, {
5953
5956
  modelValue: s.value,
5954
5957
  "onUpdate:modelValue": o[0] || (o[0] = (d) => s.value = d)
5955
5958
  }, {
@@ -5981,7 +5984,7 @@ const ZV = {
5981
5984
  }, 8, ["modelValue"])
5982
5985
  ]));
5983
5986
  }
5984
- }), qT = /* @__PURE__ */ Ka(og, [["__scopeId", "data-v-0bca0344"]]), Xo = /* @__PURE__ */ Z({
5987
+ }), qT = /* @__PURE__ */ Ka(og, [["__scopeId", "data-v-0bca0344"]]), yo = /* @__PURE__ */ Z({
5985
5988
  __name: "AFilterBooleanSelect",
5986
5989
  props: {
5987
5990
  modelValue: {},
@@ -6235,7 +6238,7 @@ const XT = /* @__PURE__ */ Z({
6235
6238
  },
6236
6239
  setup(i) {
6237
6240
  const t = i, { copy: e, isSupported: a } = Zu(), { showSuccess: s } = nt(), { t: r } = ne(), n = (l) => {
6238
- Bi(l), a && ($n(t.value) ? e(Oc(t.value)).then(() => {
6241
+ Bi(l), a && (Pn(t.value) ? e(Oc(t.value)).then(() => {
6239
6242
  s(r(t.notifyT));
6240
6243
  }) : pi(t.value) && t.value.length && e(t.value).then(() => {
6241
6244
  s(r(t.notifyT));
@@ -6345,7 +6348,7 @@ const XT = /* @__PURE__ */ Z({
6345
6348
  { immediate: !0 }
6346
6349
  ), Bt(() => {
6347
6350
  s.value = e.seconds;
6348
- }), El(() => {
6351
+ }), Kn(() => {
6349
6352
  clearTimeout(r.value), r.value = void 0;
6350
6353
  }), (n, l) => (q(), R("span", null, [
6351
6354
  n.parentheses ? (q(), R("span", Fg, "(")) : j("", !0),
@@ -6356,15 +6359,15 @@ const XT = /* @__PURE__ */ Z({
6356
6359
  }
6357
6360
  }), Xg = E(/* @__PURE__ */ new Set());
6358
6361
  function yg(i, t = !1, e = void 0, a = void 0) {
6359
- const { collabSocket: s, collabRoomInfoState: r, collabFieldDataBufferState: n, collabFieldLocksState: l } = Ln(), o = lc(), d = E(), c = E(), u = mc(), m = E(), v = E(), V = cc(), g = E(), F = E(), w = fc(), Y = E(), y = E(), X = Vc(), x = E(), C = E(), M = pc(), U = E(), L = E(), te = hc(), S = E(), H = E(), O = gc(), I = E(), A = E(), b = dc(), T = E(), $ = E(), W = () => {
6362
+ const { collabSocket: s, collabRoomInfoState: r, collabFieldDataBufferState: n, collabFieldLocksState: l } = zn(), o = lc(), d = E(), c = E(), u = mc(), m = E(), v = E(), V = cc(), g = E(), F = E(), w = fc(), Y = E(), y = E(), X = Vc(), x = E(), C = E(), M = pc(), U = E(), L = E(), ie = hc(), S = E(), H = E(), O = gc(), I = E(), A = E(), b = dc(), T = E(), $ = E(), W = () => {
6360
6363
  qe(c.value) && c.value();
6361
6364
  }, G = (he) => {
6362
6365
  he.room === i && qe(v.value) && v.value(he.userId, he.timestamp);
6363
- }, ie = (he) => {
6366
+ }, ee = (he) => {
6364
6367
  he.room === i && qe(F.value) && F.value();
6365
6368
  }, re = (he) => {
6366
6369
  he.room === i && qe(y.value) && y.value();
6367
- }, ee = (he) => {
6370
+ }, te = (he) => {
6368
6371
  he.room === i && qe(C.value) && C.value(he.userId, he.timestamp);
6369
6372
  }, se = (he) => {
6370
6373
  he.room === i && qe(L.value) && L.value();
@@ -6377,19 +6380,19 @@ function yg(i, t = !1, e = void 0, a = void 0) {
6377
6380
  }, Oe = (he) => {
6378
6381
  v.value = he, m.value = u.on(G);
6379
6382
  }, Le = (he) => {
6380
- F.value = he, g.value = V.on(ie);
6383
+ F.value = he, g.value = V.on(ee);
6381
6384
  }, Ze = (he) => {
6382
6385
  y.value = he, Y.value = w.on(re);
6383
6386
  }, ht = (he) => {
6384
6387
  C.value = he, x.value = X.on(
6385
- ee
6388
+ te
6386
6389
  );
6387
6390
  }, wt = (he) => {
6388
6391
  L.value = he, U.value = M.on(
6389
6392
  se
6390
6393
  );
6391
6394
  }, ve = (he) => {
6392
- H.value = he, S.value = te.on(
6395
+ H.value = he, S.value = ie.on(
6393
6396
  ye
6394
6397
  );
6395
6398
  }, le = (he) => {
@@ -6413,8 +6416,8 @@ function yg(i, t = !1, e = void 0, a = void 0) {
6413
6416
  }, Ke = async (he = {}) => new Promise((Ne, It) => {
6414
6417
  var si;
6415
6418
  if (!je.value.enabled || N(s.value))
6416
- return It(rl.Failed);
6417
- (si = s.value) == null || si.timeout(5e3).emit("joinCollabRoom", i, he, (ri, wi) => ri ? void It(rl.Failed) : wd(wi) ? (r.set(i, wi.room), void Ne(wi.status)) : void It(wi.status));
6419
+ return It(nl.Failed);
6420
+ (si = s.value) == null || si.timeout(5e3).emit("joinCollabRoom", i, he, (ri, wi) => ri ? void It(nl.Failed) : wd(wi) ? (r.set(i, wi.room), void Ne(wi.status)) : void It(wi.status));
6418
6421
  }), Ft = () => {
6419
6422
  !je.value.enabled || N(s.value) || s.value.emit("leaveCollabRoom", i, (he) => {
6420
6423
  wd(he) && r.set(i, he.room);
@@ -6529,7 +6532,7 @@ const Ag = { class: "ml-3" }, bg = { class: "ml-1" }, yT = /* @__PURE__ */ Z({
6529
6532
  transferModeration: F,
6530
6533
  alertedOccupiedRooms: w
6531
6534
  // eslint-disable-next-line vue/no-setup-props-reactivity-loss
6532
- } = yg(t.collabRoom), { t: Y } = ne(), { showErrorT: y, showSuccessT: X } = nt(), { currentUserId: x } = Fc(), C = E([]), M = E([]), U = D(() => e.value.users.filter((le) => le !== x.value)), L = E(!1), te = E(!1), S = E(null), H = E(null), O = E(!1);
6535
+ } = yg(t.collabRoom), { t: Y } = ne(), { showErrorT: y, showSuccessT: X } = nt(), { currentUserId: x } = Fc(), C = E([]), M = E([]), U = D(() => e.value.users.filter((le) => le !== x.value)), L = E(!1), ie = E(!1), S = E(null), H = E(null), O = E(!1);
6533
6536
  a(async (le, Se) => {
6534
6537
  qe(t.addToCachedUsers) && t.addToCachedUsers(le), qe(t.fetchCachedUsers) && t.fetchCachedUsers(), M.value.includes(le) || M.value.push(le), C.value.push({ userId: le, timestamp: Se });
6535
6538
  }), l(() => {
@@ -6537,7 +6540,7 @@ const Ag = { class: "ml-3" }, bg = { class: "ml-1" }, yT = /* @__PURE__ */ Z({
6537
6540
  }), o(() => {
6538
6541
  y("common.collab.alert.rejectedJoinRequest"), O.value = !1, H.value = !1, w.value.delete(t.collabRoom);
6539
6542
  }), m(async (le, Se) => {
6540
- qe(t.addToCachedUsers) && t.addToCachedUsers(le), qe(t.fetchCachedUsers) && t.fetchCachedUsers(), S.value = { userId: le, timestamp: Se }, te.value = !0;
6543
+ qe(t.addToCachedUsers) && t.addToCachedUsers(le), qe(t.fetchCachedUsers) && t.fetchCachedUsers(), S.value = { userId: le, timestamp: Se }, ie.value = !0;
6541
6544
  }), v(() => {
6542
6545
  X("common.collab.alert.approvedToTakeModeration"), O.value = !1;
6543
6546
  }), V(() => {
@@ -6545,7 +6548,7 @@ const Ag = { class: "ml-3" }, bg = { class: "ml-1" }, yT = /* @__PURE__ */ Z({
6545
6548
  });
6546
6549
  const I = () => {
6547
6550
  O.value = !1;
6548
- }, A = D(() => H.value === null && e.value.users.length && !e.value.users.includes(x.value ?? 0) && !O.value), b = D(() => t.isEdit && e.value.status === Ui.Active && e.value.moderator !== x.value), T = D(() => L.value && e.value.status === Ui.Active), $ = D(() => t.isEdit && e.value.status === Ui.Active), W = D(() => t.isEdit && e.value.moderator === x.value && e.value.status === Ui.Active), G = D(() => !t.isEdit && w.value.has(t.collabRoom) && H.value === null), ie = (le) => {
6551
+ }, A = D(() => H.value === null && e.value.users.length && !e.value.users.includes(x.value ?? 0) && !O.value), b = D(() => t.isEdit && e.value.status === Ui.Active && e.value.moderator !== x.value), T = D(() => L.value && e.value.status === Ui.Active), $ = D(() => t.isEdit && e.value.status === Ui.Active), W = D(() => t.isEdit && e.value.moderator === x.value && e.value.status === Ui.Active), G = D(() => !t.isEdit && w.value.has(t.collabRoom) && H.value === null), ee = (le) => {
6549
6552
  C.value = C.value.filter((Se) => Se.userId !== le), M.value = M.value.filter((Se) => Se !== le);
6550
6553
  }, re = async () => {
6551
6554
  try {
@@ -6553,7 +6556,7 @@ const Ag = { class: "ml-3" }, bg = { class: "ml-1" }, yT = /* @__PURE__ */ Z({
6553
6556
  } catch (le) {
6554
6557
  return le === dn.AlreadyRequested ? void y("common.collab.alert.alreadyRequestedToJoin") : void y("common.collab.alert.failedRequestedToJoin");
6555
6558
  }
6556
- }, ee = () => {
6559
+ }, te = () => {
6557
6560
  L.value = !0;
6558
6561
  }, se = async () => {
6559
6562
  try {
@@ -6574,7 +6577,7 @@ const Ag = { class: "ml-3" }, bg = { class: "ml-1" }, yT = /* @__PURE__ */ Z({
6574
6577
  (le) => !M.value.includes(le.userId)
6575
6578
  ), M.value = [];
6576
6579
  }, Me = () => {
6577
- S.value = null, te.value = !1;
6580
+ S.value = null, ie.value = !1;
6578
6581
  }, Oe = () => {
6579
6582
  u(), Me();
6580
6583
  }, Le = () => {
@@ -6637,7 +6640,7 @@ const Ag = { class: "ml-3" }, bg = { class: "ml-1" }, yT = /* @__PURE__ */ Z({
6637
6640
  W.value ? (q(), B(je, {
6638
6641
  key: 3,
6639
6642
  size: "small",
6640
- onClick: ee
6643
+ onClick: te
6641
6644
  }, {
6642
6645
  default: p(() => [
6643
6646
  f(fe, { icon: "mdi-account-details-outline" }),
@@ -6663,7 +6666,7 @@ const Ag = { class: "ml-3" }, bg = { class: "ml-1" }, yT = /* @__PURE__ */ Z({
6663
6666
  ]),
6664
6667
  _: 1
6665
6668
  }),
6666
- f(fo, null, {
6669
+ f(mo, null, {
6667
6670
  default: p(() => [
6668
6671
  f(Ai, {
6669
6672
  selected: M.value,
@@ -6686,7 +6689,7 @@ const Ag = { class: "ml-3" }, bg = { class: "ml-1" }, yT = /* @__PURE__ */ Z({
6686
6689
  class: "ml-3",
6687
6690
  seconds: ve(Ke.timestamp),
6688
6691
  label: h(Y)("common.collab.approvedAfterCountdown"),
6689
- onDone: () => ie(Ke.userId)
6692
+ onDone: () => ee(Ke.userId)
6690
6693
  }, null, 8, ["seconds", "label", "onDone"])
6691
6694
  ]),
6692
6695
  append: p(({ isActive: Ft, select: vi }) => [
@@ -6750,7 +6753,7 @@ const Ag = { class: "ml-3" }, bg = { class: "ml-1" }, yT = /* @__PURE__ */ Z({
6750
6753
  ]),
6751
6754
  _: 1
6752
6755
  }),
6753
- f(fo, null, {
6756
+ f(mo, null, {
6754
6757
  default: p(() => [
6755
6758
  f(Ai, null, {
6756
6759
  default: p(() => [
@@ -6841,8 +6844,8 @@ const Ag = { class: "ml-3" }, bg = { class: "ml-1" }, yT = /* @__PURE__ */ Z({
6841
6844
  })) : j("", !0),
6842
6845
  S.value ? (q(), B(St, {
6843
6846
  key: 7,
6844
- modelValue: te.value,
6845
- "onUpdate:modelValue": Se[4] || (Se[4] = (Ke) => te.value = Ke),
6847
+ modelValue: ie.value,
6848
+ "onUpdate:modelValue": Se[4] || (Se[4] = (Ke) => ie.value = Ke),
6846
6849
  width: "auto"
6847
6850
  }, {
6848
6851
  default: p(() => [
@@ -6854,7 +6857,7 @@ const Ag = { class: "ml-3" }, bg = { class: "ml-1" }, yT = /* @__PURE__ */ Z({
6854
6857
  ]),
6855
6858
  _: 1
6856
6859
  }),
6857
- f(fo, null, {
6860
+ f(mo, null, {
6858
6861
  default: p(() => [
6859
6862
  f(Ai, null, {
6860
6863
  default: p(() => [
@@ -7458,7 +7461,7 @@ const Ag = { class: "ml-3" }, bg = { class: "ml-1" }, yT = /* @__PURE__ */ Z({
7458
7461
  },
7459
7462
  setup(i) {
7460
7463
  const t = i, { t: e } = ne(), { copy: a, isSupported: s } = Zu(), { showSuccess: r } = nt(), n = (l) => {
7461
- Bi(l), $n(t.id) && t.id > 0 ? a(Oc(t.id)).then(() => {
7464
+ Bi(l), Pn(t.id) && t.id > 0 ? a(Oc(t.id)).then(() => {
7462
7465
  r(e(t.notifyT));
7463
7466
  }) : pi(t.id) && t.id.length && a(t.id).then(() => {
7464
7467
  r(e(t.notifyT));
@@ -7685,12 +7688,12 @@ const Ag = { class: "ml-3" }, bg = { class: "ml-1" }, yT = /* @__PURE__ */ Z({
7685
7688
  }
7686
7689
  });
7687
7690
  var rr = /* @__PURE__ */ ((i) => (i.Light = "light", i.Dark = "dark", i.Auto = "auto", i))(rr || {}), kg = /* @__PURE__ */ ((i) => (i.Light = "light", i.Dark = "dark", i))(kg || {});
7688
- const fl = Ju(
7691
+ const ml = Ju(
7689
7692
  "theme",
7690
7693
  "light"
7691
7694
  /* Light */
7692
7695
  ), Pc = "(prefers-color-scheme: dark)", bn = E(
7693
- Object.values(rr).some((i) => i === fl.value) ? fl.value : "light"
7696
+ Object.values(rr).some((i) => i === ml.value) ? ml.value : "light"
7694
7697
  /* Light */
7695
7698
  ), nr = E(
7696
7699
  "light"
@@ -7709,8 +7712,8 @@ const fl = Ju(
7709
7712
  }
7710
7713
  };
7711
7714
  or();
7712
- const yo = (i) => {
7713
- bn.value = i, fl.value = i;
7715
+ const Ao = (i) => {
7716
+ bn.value = i, ml.value = i;
7714
7717
  };
7715
7718
  window.matchMedia(Pc).addEventListener("change", (i) => {
7716
7719
  Rc.value = i.matches, or();
@@ -7718,17 +7721,17 @@ window.matchMedia(Pc).addEventListener("change", (i) => {
7718
7721
  const _g = D(() => nr.value === "light" ? "white" : "#1A1A1A");
7719
7722
  function br() {
7720
7723
  const i = () => {
7721
- yo(
7724
+ Ao(
7722
7725
  "auto"
7723
7726
  /* Auto */
7724
7727
  ), or();
7725
7728
  }, t = () => {
7726
- yo(
7729
+ Ao(
7727
7730
  "dark"
7728
7731
  /* Dark */
7729
7732
  ), or();
7730
7733
  }, e = () => {
7731
- yo(
7734
+ Ao(
7732
7735
  "light"
7733
7736
  /* Light */
7734
7737
  ), or();
@@ -7901,14 +7904,14 @@ const Wg = /* @__PURE__ */ Ka(Lg, [["render", Hg]]), Gg = { class: "flag" }, Rd
7901
7904
  }
7902
7905
  });
7903
7906
  return (a, s) => (q(), R("div", Gg, [
7904
- (q(), B(Kn(e.value), { "data-cy": a.dataCy }, null, 8, ["data-cy"]))
7907
+ (q(), B(En(e.value), { "data-cy": a.dataCy }, null, 8, ["data-cy"]))
7905
7908
  ]));
7906
7909
  }
7907
7910
  }), Jg = /* @__PURE__ */ Z({
7908
7911
  __name: "ALanguageSelect",
7909
7912
  emits: ["afterChange"],
7910
7913
  setup(i, { emit: t }) {
7911
- const e = t, a = at(Nn), s = at(nc), r = at(oc), { setLanguage: n } = XV(s, r), { currentLanguageCode: l } = Mc(), o = (u) => {
7914
+ const e = t, a = at(Ln), s = at(nc), r = at(oc), { setLanguage: n } = XV(s, r), { currentLanguageCode: l } = Mc(), o = (u) => {
7912
7915
  n(u) && e("afterChange", u);
7913
7916
  }, d = D(() => {
7914
7917
  const u = cn.find((m) => m.code === l.value);
@@ -7929,7 +7932,7 @@ const Wg = /* @__PURE__ */ Ka(Lg, [["render", Hg]]), Gg = { class: "flag" }, Rd
7929
7932
  "data-cy": "settings-language"
7930
7933
  }), {
7931
7934
  default: p(() => [
7932
- f(il, {
7935
+ f(al, {
7933
7936
  class: "mr-1",
7934
7937
  size: "30"
7935
7938
  }, {
@@ -7960,7 +7963,7 @@ const Wg = /* @__PURE__ */ Ka(Lg, [["render", Hg]]), Gg = { class: "flag" }, Rd
7960
7963
  default: p(() => [
7961
7964
  f(Da, null, {
7962
7965
  default: p(() => [
7963
- f(il, {
7966
+ f(al, {
7964
7967
  class: "mr-1",
7965
7968
  size: "30"
7966
7969
  }, {
@@ -8055,7 +8058,7 @@ const Qg = { class: "text-center w-100 text-caption pb-1" }, KT = /* @__PURE__ *
8055
8058
  }, {
8056
8059
  default: p(() => [
8057
8060
  z("div", Qg, [
8058
- (q(), B(Kn(s.value)))
8061
+ (q(), B(En(s.value)))
8059
8062
  ])
8060
8063
  ]),
8061
8064
  _: 1
@@ -8160,7 +8163,7 @@ const Qg = { class: "text-center w-100 text-caption pb-1" }, KT = /* @__PURE__ *
8160
8163
  "data-cy": a.dataCy
8161
8164
  }, {
8162
8165
  default: p(() => [
8163
- f(sl, {
8166
+ f(rl, {
8164
8167
  size: 32,
8165
8168
  user: a.currentUser
8166
8169
  }, null, 8, ["user"]),
@@ -8187,7 +8190,7 @@ const Qg = { class: "text-center w-100 text-caption pb-1" }, KT = /* @__PURE__ *
8187
8190
  lines: "two"
8188
8191
  }, {
8189
8192
  prepend: p(() => [
8190
- f(sl, {
8193
+ f(rl, {
8191
8194
  user: a.currentUser,
8192
8195
  size: 40
8193
8196
  }, null, 8, ["user"])
@@ -8381,7 +8384,7 @@ const Qg = { class: "text-center w-100 text-caption pb-1" }, KT = /* @__PURE__ *
8381
8384
  }) : l.value && I.set(l.value, ""), F.value.forEach((A) => {
8382
8385
  I.set(A[e.itemValue], A[e.itemTitle]);
8383
8386
  }), Array.from(I, ([A, b]) => ({ value: A, title: b }));
8384
- }), te = (I) => new Promise((A) => (F.value.forEach((b, T) => {
8387
+ }), ie = (I) => new Promise((A) => (F.value.forEach((b, T) => {
8385
8388
  I.has(T) && n(Be(b));
8386
8389
  }), A(!0))), S = () => {
8387
8390
  if (U(""), e.multiple) {
@@ -8410,7 +8413,7 @@ const Qg = { class: "text-center w-100 text-caption pb-1" }, KT = /* @__PURE__ *
8410
8413
  if (ce(I) || N(I) || _t(I) && I.length === 0)
8411
8414
  return;
8412
8415
  const A = _t(I) ? I : [I], b = new Set(A);
8413
- await te(b), b.size > 0 && (r(Array.from(b)), s());
8416
+ await ie(b), b.size > 0 && (r(Array.from(b)), s());
8414
8417
  },
8415
8418
  { immediate: !0 }
8416
8419
  ), (I, A) => (q(), B(yr, {
@@ -8781,7 +8784,7 @@ const Xv = (i) => {
8781
8784
  default:
8782
8785
  return "mainFileId";
8783
8786
  }
8784
- }, jn = Ar("commonAdminCoreDamAssetSelectStore", () => {
8787
+ }, Hn = Ar("commonAdminCoreDamAssetSelectStore", () => {
8785
8788
  const i = E([]), t = E(!1), e = E(0), a = E([]), s = E(be.Default), r = E(/* @__PURE__ */ new Map()), n = E(!1), l = E(0), o = E(0);
8786
8789
  function d() {
8787
8790
  t.value = !0;
@@ -8860,7 +8863,7 @@ const Xv = (i) => {
8860
8863
  A.push(Qt(b.asset));
8861
8864
  return A;
8862
8865
  }
8863
- function te(A) {
8866
+ function ie(A) {
8864
8867
  switch (A) {
8865
8868
  case Ua.AssetId:
8866
8869
  return {
@@ -8899,7 +8902,7 @@ const Xv = (i) => {
8899
8902
  selectedAssets: r,
8900
8903
  loader: t,
8901
8904
  assetListItems: i,
8902
- getSelectedData: te,
8905
+ getSelectedData: ie,
8903
8906
  setAssetType: v,
8904
8907
  setSelectConfig: u,
8905
8908
  setSingleMode: m,
@@ -8934,21 +8937,21 @@ function Lc() {
8934
8937
  notification: zi.value.notification
8935
8938
  };
8936
8939
  }
8937
- const Ea = (i, t, e = "") => Rn(t) ? i : Op(e === "" ? i : e, t), Ma = (i) => Dh.includes(i), Ci = (i, t, e = {}, a, s, r = {}) => new Promise((n, l) => {
8940
+ const Ea = (i, t, e = "") => Nn(t) ? i : Op(e === "" ? i : e, t), Ma = (i) => Dh.includes(i), Ci = (i, t, e = {}, a, s, r = {}) => new Promise((n, l) => {
8938
8941
  i().get(Ea(t, e), r).then((o) => Ma(o.status) ? o.data ? n(o.data) : o.status === Va ? n(null) : l(new Mt()) : l(new va(o.status))).catch((o) => ga(o) ? l(new aa(o)) : sa(o) ? l(new ra(o, a, s, o)) : Fa(o) ? l(new na(o, o)) : l(new Mt(o)));
8939
8942
  });
8940
- function Hn() {
8943
+ function Wn() {
8941
8944
  const i = E([]), t = (c) => {
8942
8945
  l("limit", c);
8943
8946
  }, e = (c, u) => {
8944
8947
  l("offset", c * u - u);
8945
8948
  }, a = (c, u) => {
8946
8949
  !ce(c) && c.length > 0 && l("order[" + c + "]", u ? "desc" : "asc");
8947
- }, s = (c) => al(c) ? c ? "1" : "0" : c, r = (c, u, m) => {
8950
+ }, s = (c) => sl(c) ? c ? "1" : "0" : c, r = (c, u, m) => {
8948
8951
  pi(m) && m.length === 0 || i.value.push("filter_" + c + "[" + u + "]=" + s(m));
8949
8952
  }, n = (c) => {
8950
8953
  const u = c.model;
8951
- return ce(u) ? c.mandatory ? (c.model = c.default, c.default) : null : pi(u) ? u.length === 0 ? c.mandatory ? (c.model = c.default, c.default) : null : encodeURIComponent(u) : _t(u) ? u.length === 0 ? c.mandatory ? (c.model = c.default, c.default) : null : u.map((m) => pi(m) ? encodeURIComponent(m) : m).join(",") : $n(u) || al(u) ? u : null;
8954
+ return ce(u) ? c.mandatory ? (c.model = c.default, c.default) : null : pi(u) ? u.length === 0 ? c.mandatory ? (c.model = c.default, c.default) : null : encodeURIComponent(u) : _t(u) ? u.length === 0 ? c.mandatory ? (c.model = c.default, c.default) : null : u.map((m) => pi(m) ? encodeURIComponent(m) : m).join(",") : Pn(u) || sl(u) ? u : null;
8952
8955
  }, l = (c, u) => {
8953
8956
  i.value.push(c + "=" + u);
8954
8957
  };
@@ -8977,8 +8980,8 @@ function Hn() {
8977
8980
  queryBuild: () => "?" + i.value.join("&")
8978
8981
  };
8979
8982
  }
8980
- const zc = (i) => Pn(i) && Object.hasOwn(i, "totalCount"), Uc = (i) => Pn(i) && Object.hasOwn(i, "hasNextPage"), Av = (i, t) => {
8981
- const { querySetLimit: e, querySetOffset: a, querySetOrder: s, queryBuild: r, querySetFilters: n } = Hn();
8983
+ const zc = (i) => Rn(i) && Object.hasOwn(i, "totalCount"), Uc = (i) => Rn(i) && Object.hasOwn(i, "hasNextPage"), Av = (i, t) => {
8984
+ const { querySetLimit: e, querySetOffset: a, querySetOrder: s, queryBuild: r, querySetFilters: n } = Wn();
8982
8985
  return e(i.rowsPerPage), a(i.page, i.rowsPerPage), s(i.sortBy, i.descending), n(t), r();
8983
8986
  }, Cr = (i, t, e = {}, a, s, r, n, l = {}) => new Promise((o, d) => {
8984
8987
  const c = N(s._elastic) ? "" : "/search";
@@ -9030,9 +9033,9 @@ const Hc = "/adm/v1/configuration", wv = "/pub", kv = wv + "/v1/configuration",
9030
9033
  },
9031
9034
  maxBulkItemCount: 0
9032
9035
  }
9033
- }), Ao = Ut(/* @__PURE__ */ new Map()), bo = Ut(
9036
+ }), bo = Ut(/* @__PURE__ */ new Map()), Co = Ut(
9034
9037
  /* @__PURE__ */ new Map()
9035
- ), Co = Ut(
9038
+ ), xo = Ut(
9036
9039
  /* @__PURE__ */ new Map()
9037
9040
  );
9038
9041
  function ii(i = void 0) {
@@ -9113,13 +9116,13 @@ function ii(i = void 0) {
9113
9116
  image: g.image,
9114
9117
  video: g.video
9115
9118
  };
9116
- Ao.value.set(F, w);
9119
+ bo.value.set(F, w);
9117
9120
  } catch {
9118
9121
  throw new Error("Unable to load dam ext system config. Incorrect fields in json.");
9119
9122
  }
9120
9123
  }
9121
9124
  function c(g) {
9122
- return Ao.value.get(g);
9125
+ return bo.value.get(g);
9123
9126
  }
9124
9127
  function u(g) {
9125
9128
  return new Promise((F, w) => {
@@ -9150,13 +9153,13 @@ function ii(i = void 0) {
9150
9153
  video: g[2].data,
9151
9154
  document: g[3].data
9152
9155
  };
9153
- bo.value.set(F, w);
9156
+ Co.value.set(F, w);
9154
9157
  } catch {
9155
9158
  throw new Error("Unable to load asset custom form config. Incorrect fields in json.");
9156
9159
  }
9157
9160
  }
9158
9161
  function v(g) {
9159
- return bo.value.get(g);
9162
+ return Co.value.get(g);
9160
9163
  }
9161
9164
  function V(g) {
9162
9165
  return new Promise((F, w) => {
@@ -9164,12 +9167,12 @@ function ii(i = void 0) {
9164
9167
  w(!1);
9165
9168
  return;
9166
9169
  }
9167
- if (Co.value.has(g)) {
9170
+ if (xo.value.has(g)) {
9168
9171
  F(!0);
9169
9172
  return;
9170
9173
  }
9171
9174
  Sv(i, g).then((Y) => {
9172
- Co.value.set(g, Y.data), F(!0);
9175
+ xo.value.set(g, Y.data), F(!0);
9173
9176
  }).catch((Y) => {
9174
9177
  w(Y);
9175
9178
  });
@@ -9179,9 +9182,9 @@ function ii(i = void 0) {
9179
9182
  initialized: Oa,
9180
9183
  damPubConfig: Nd,
9181
9184
  damPrvConfig: zs,
9182
- damConfigExtSystem: Ao,
9183
- damConfigAssetCustomFormElements: bo,
9184
- damConfigDistributionCustomFormElements: Co,
9185
+ damConfigExtSystem: bo,
9186
+ damConfigAssetCustomFormElements: Co,
9187
+ damConfigDistributionCustomFormElements: xo,
9185
9188
  loadDamPrvConfig: r,
9186
9189
  loadDamPubConfig: e,
9187
9190
  loadDamConfigExtSystem: o,
@@ -9193,15 +9196,15 @@ function ii(i = void 0) {
9193
9196
  getDamConfigAssetCustomFormElements: v
9194
9197
  };
9195
9198
  }
9196
- const Ms = "/adm/v1/asset", xo = 10, Wn = "asset", Xt = "coreDam", wo = 25, Ld = (i, t, e, a) => Cr(
9199
+ const Ms = "/adm/v1/asset", wo = 10, Gn = "asset", Xt = "coreDam", ko = 25, Ld = (i, t, e, a) => Cr(
9197
9200
  i,
9198
9201
  Ms + "/licence/:licenceId",
9199
9202
  { licenceId: t },
9200
9203
  e,
9201
9204
  a,
9202
9205
  Xt,
9203
- Wn
9204
- ), xa = (i, t) => Ci(i, Ms + "/:id", { id: t }, Xt, Wn), Wl = (i, t) => Ci(i, Ms + "/asset-file/:id", { id: t }, Xt, Wn), Cn = (i, t) => new Promise((e, a) => {
9206
+ Gn
9207
+ ), xa = (i, t) => Ci(i, Ms + "/:id", { id: t }, Xt, Gn), Wl = (i, t) => Ci(i, Ms + "/asset-file/:id", { id: t }, Xt, Gn), Cn = (i, t) => new Promise((e, a) => {
9205
9208
  const s = Mv(t);
9206
9209
  Ev(i, s).then((r) => {
9207
9210
  if (s.length === 0)
@@ -9218,9 +9221,9 @@ const Ms = "/adm/v1/asset", xo = 10, Wn = "asset", Xt = "coreDam", wo = 25, Ld =
9218
9221
  async function Tv(i, t, e) {
9219
9222
  if (t.length === 0)
9220
9223
  return Promise.resolve([]);
9221
- const a = Math.ceil(t.length / wo), s = [];
9224
+ const a = Math.ceil(t.length / ko), s = [];
9222
9225
  for (let r = 0; r < a; r++) {
9223
- const n = r * wo, l = t.slice(n, n + wo), o = await i().get(Ms + `/licence/${e}/ids/${l.join(",")}`);
9226
+ const n = r * ko, l = t.slice(n, n + ko), o = await i().get(Ms + `/licence/${e}/ids/${l.join(",")}`);
9224
9227
  s.push(o);
9225
9228
  }
9226
9229
  return s;
@@ -9243,11 +9246,11 @@ const Kv = (i, t, e) => new Promise((a, s) => {
9243
9246
  });
9244
9247
  });
9245
9248
  async function Ev(i, t) {
9246
- const e = Math.ceil(t.length / xo), a = [];
9249
+ const e = Math.ceil(t.length / wo), a = [];
9247
9250
  if (t.length === 0)
9248
9251
  return Promise.resolve([]);
9249
9252
  for (let s = 0; s < e; s++) {
9250
- const r = s * xo, n = t.slice(r, r + xo), l = await i().patch(Ms + "/metadata-bulk-update", JSON.stringify(n));
9253
+ const r = s * wo, n = t.slice(r, r + wo), l = await i().patch(Ms + "/metadata-bulk-update", JSON.stringify(n));
9251
9254
  a.push(l);
9252
9255
  }
9253
9256
  return a;
@@ -9293,10 +9296,10 @@ const { showUnknownError: Bv, showApiValidationError: Ov } = nt(), $v = (i, t, e
9293
9296
  };
9294
9297
  i().patch(Ms + "/metadata-bulk-update", JSON.stringify([r])).then((n) => {
9295
9298
  n.status === as ? a(n.data) : s();
9296
- }).catch((n) => ga(n) ? s(new aa(n)) : sa(n) ? ($v(n, t.attributes.assetType, e), s(new ra(n, Xt, Wn, n))) : Fa(n) ? s(new na(n, n)) : s(new Mt(n)));
9297
- }), Us = Yv(), $a = rs(), ko = E(!1);
9299
+ }).catch((n) => ga(n) ? s(new aa(n)) : sa(n) ? ($v(n, t.attributes.assetType, e), s(new ra(n, Xt, Gn, n))) : Fa(n) ? s(new na(n, n)) : s(new Mt(n)));
9300
+ }), Us = Yv(), $a = rs(), _o = E(!1);
9298
9301
  function Bs(i = "default") {
9299
- const { damClient: t } = xt(i), e = jn(), { selectedCount: a, selectedAssets: s, assetListItems: r, loader: n } = jt(e), { resetFilter: l } = Es(), { showErrorsDefault: o } = nt(), d = async () => {
9302
+ const { damClient: t } = xt(i), e = Hn(), { selectedCount: a, selectedAssets: s, assetListItems: r, loader: n } = jt(e), { resetFilter: l } = Es(), { showErrorsDefault: o } = nt(), d = async () => {
9300
9303
  $a.page = 1;
9301
9304
  try {
9302
9305
  e.showLoader(), e.setList(
@@ -9323,14 +9326,14 @@ function Bs(i = "default") {
9323
9326
  }, m = async () => {
9324
9327
  e.reset(), Us.type.default = [e.assetType], l(Us, $a, d);
9325
9328
  }, v = () => {
9326
- ko.value = !0;
9329
+ _o.value = !0;
9327
9330
  }, V = () => {
9328
- ko.value = !1;
9331
+ _o.value = !1;
9329
9332
  }, g = (F, w, Y, y, X) => {
9330
9333
  e.clearSelected(), e.setAssetType(w), e.setSelectConfig(F), e.setSingleMode(Y), e.setMinCount(y), e.setMaxCount(X);
9331
9334
  };
9332
9335
  return {
9333
- filterIsTouched: ko,
9336
+ filterIsTouched: _o,
9334
9337
  filter: Us,
9335
9338
  selectedCount: a,
9336
9339
  selectedAssets: s,
@@ -9466,7 +9469,7 @@ const Ga = "data:image/jpeg;base64,/9j/4QZGRXhpZgAATU0AKgAAAAgADAEAAAMAAAABCgAAA
9466
9469
  ])) : j("", !0)
9467
9470
  ], 4));
9468
9471
  }
9469
- }), Gn = (i, t = 2) => {
9472
+ }), Jn = (i, t = 2) => {
9470
9473
  if (i === 0)
9471
9474
  return "0 Bytes";
9472
9475
  const e = 1024, a = t < 0 ? 0 : t, s = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], r = Math.floor(Math.log(i) / Math.log(e));
@@ -9480,7 +9483,7 @@ const Ga = "data:image/jpeg;base64,/9j/4QZGRXhpZgAATU0AKgAAAAgADAEAAAMAAAABCgAAA
9480
9483
  },
9481
9484
  emits: ["itemClick"],
9482
9485
  setup(i, { emit: t }) {
9483
- const e = i, a = t, { t: s } = ne(), r = En(e, "item"), { asset: n, tableImageProperties: l, assetType: o, assetStatus: d } = Jc(r), c = () => {
9486
+ const e = i, a = t, { t: s } = ne(), r = Mn(e, "item"), { asset: n, tableImageProperties: l, assetType: o, assetStatus: d } = Jc(r), c = () => {
9484
9487
  a("itemClick", { assetId: n.value.id, index: e.index });
9485
9488
  };
9486
9489
  return (u, m) => {
@@ -9519,7 +9522,7 @@ const Ga = "data:image/jpeg;base64,/9j/4QZGRXhpZgAATU0AKgAAAAgADAEAAAMAAAABCgAAA
9519
9522
  }, null, 8, ["date-time"])
9520
9523
  ]),
9521
9524
  z("td", null, k((v = h(n).mainFile) == null ? void 0 : v.fileAttributes.mimeType), 1),
9522
- z("td", null, k(h(Gn)(((V = h(n).mainFile) == null ? void 0 : V.fileAttributes.size) || 0)), 1)
9525
+ z("td", null, k(h(Jn)(((V = h(n).mainFile) == null ? void 0 : V.fileAttributes.size) || 0)), 1)
9523
9526
  ], 2);
9524
9527
  };
9525
9528
  }
@@ -9715,7 +9718,7 @@ const iF = { class: "d-flex flex-column w-100 px-1 align-center" }, aF = { class
9715
9718
  setup(i, { emit: t }) {
9716
9719
  const e = i, a = t, { t: s } = ne(), r = () => {
9717
9720
  a("itemClick", { assetId: l.value.id, index: e.index });
9718
- }, n = En(e, "item"), { asset: l, assetType: o, assetStatus: d, imageProperties: c } = Jc(n);
9721
+ }, n = Mn(e, "item"), { asset: l, assetType: o, assetStatus: d, imageProperties: c } = Jc(n);
9719
9722
  return (u, m) => (q(), R("div", {
9720
9723
  class: Xe(["asset-list-tiles__item asset-list-tiles__item--pointer", { "asset-list-tiles__item--selected": n.value.selected }]),
9721
9724
  onClick: ae(r, ["stop", "exact"])
@@ -9801,7 +9804,7 @@ const iF = { class: "d-flex flex-column w-100 px-1 align-center" }, aF = { class
9801
9804
  default: p(() => [
9802
9805
  f(pe, { cols: 12 }, {
9803
9806
  default: p(() => [
9804
- f(Xo, {
9807
+ f(yo, {
9805
9808
  modelValue: h(t).described,
9806
9809
  "onUpdate:modelValue": [
9807
9810
  o[1] || (o[1] = (d) => h(t).described = d),
@@ -9818,7 +9821,7 @@ const iF = { class: "d-flex flex-column w-100 px-1 align-center" }, aF = { class
9818
9821
  default: p(() => [
9819
9822
  f(pe, { cols: 12 }, {
9820
9823
  default: p(() => [
9821
- f(Xo, {
9824
+ f(yo, {
9822
9825
  modelValue: h(t).visible,
9823
9826
  "onUpdate:modelValue": [
9824
9827
  o[2] || (o[2] = (d) => h(t).visible = d),
@@ -9835,7 +9838,7 @@ const iF = { class: "d-flex flex-column w-100 px-1 align-center" }, aF = { class
9835
9838
  default: p(() => [
9836
9839
  f(pe, null, {
9837
9840
  default: p(() => [
9838
- f(Xo, {
9841
+ f(yo, {
9839
9842
  modelValue: h(t).generatedBySystem,
9840
9843
  "onUpdate:modelValue": [
9841
9844
  o[3] || (o[3] = (d) => h(t).generatedBySystem = d),
@@ -9880,7 +9883,7 @@ const iF = { class: "d-flex flex-column w-100 px-1 align-center" }, aF = { class
9880
9883
  }), FF = { class: "subject-select-filter" }, qF = { class: "subject-select-filter__content" }, YF = { class: "subject-select-filter__actions" }, XF = /* @__PURE__ */ Z({
9881
9884
  __name: "AssetSelectFilter",
9882
9885
  setup(i) {
9883
- const { t } = ne(), { fetchAssetList: e, resetAssetList: a, filterUnTouch: s, filterIsTouched: r } = Bs(), n = jn(), { selectedLicenceId: l, selectConfig: o } = jt(n), d = () => {
9886
+ const { t } = ne(), { fetchAssetList: e, resetAssetList: a, filterUnTouch: s, filterIsTouched: r } = Bs(), n = Hn(), { selectedLicenceId: l, selectConfig: o } = jt(n), d = () => {
9884
9887
  s(), e();
9885
9888
  }, c = () => {
9886
9889
  a(), s();
@@ -9900,7 +9903,7 @@ const iF = { class: "d-flex flex-column w-100 px-1 align-center" }, aF = { class
9900
9903
  { immediate: !1 }
9901
9904
  ), (m, v) => (q(), R("div", FF, [
9902
9905
  z("div", qF, [
9903
- f(On, {
9906
+ f($n, {
9904
9907
  name: "search2",
9905
9908
  class: "px-2 pt-4",
9906
9909
  onSubmit: ae(d, ["prevent"])
@@ -9924,7 +9927,7 @@ const iF = { class: "d-flex flex-column w-100 px-1 align-center" }, aF = { class
9924
9927
  ]),
9925
9928
  _: 1
9926
9929
  })) : j("", !0),
9927
- (q(), B(Kn(u.value)))
9930
+ (q(), B(En(u.value)))
9928
9931
  ]),
9929
9932
  _: 1
9930
9933
  })
@@ -9967,11 +9970,11 @@ const iF = { class: "d-flex flex-column w-100 px-1 align-center" }, aF = { class
9967
9970
  ])
9968
9971
  ]));
9969
9972
  }
9970
- }), yF = "/adm/v1/user/current", AF = (i) => Ci(i, yF, {}, "coreDam", "user"), ml = E(void 0), ef = E(!1);
9973
+ }), yF = "/adm/v1/user/current", AF = (i) => Ci(i, yF, {}, "coreDam", "user"), pl = E(void 0), ef = E(!1);
9971
9974
  function NT(i) {
9972
9975
  return new Promise((t, e) => {
9973
9976
  AF(i).then((a) => {
9974
- ml.value = a, a.roles.includes(Ul) && (ef.value = !0), t(ml);
9977
+ pl.value = a, a.roles.includes(Ul) && (ef.value = !0), t(pl);
9975
9978
  }).catch((a) => {
9976
9979
  e(a);
9977
9980
  });
@@ -9979,7 +9982,7 @@ function NT(i) {
9979
9982
  }
9980
9983
  function tf() {
9981
9984
  return {
9982
- damCurrentUser: ml,
9985
+ damCurrentUser: pl,
9983
9986
  damCurrentUserIsSuperAdmin: ef
9984
9987
  };
9985
9988
  }
@@ -10043,8 +10046,8 @@ const CF = { class: "subject-select__sidebar system-border-r" }, xF = { class: "
10043
10046
  };
10044
10047
  xe(
10045
10048
  l,
10046
- async (L, te) => {
10047
- L === te || !L || Y();
10049
+ async (L, ie) => {
10050
+ L === ie || !L || Y();
10048
10051
  },
10049
10052
  { immediate: !0 }
10050
10053
  );
@@ -10066,7 +10069,7 @@ const CF = { class: "subject-select__sidebar system-border-r" }, xF = { class: "
10066
10069
  }), U = D(() => o.value < a.minCount || o.value > a.maxCount);
10067
10070
  return t({
10068
10071
  open: Y
10069
- }), (L, te) => {
10072
+ }), (L, ie) => {
10070
10073
  const S = We("ABtnSecondary"), H = We("ABtnPrimary");
10071
10074
  return q(), R(we, null, [
10072
10075
  ge(L.$slots, "activator", {
@@ -10076,7 +10079,7 @@ const CF = { class: "subject-select__sidebar system-border-r" }, xF = { class: "
10076
10079
  "model-value": l.value,
10077
10080
  fullscreen: "",
10078
10081
  class: "subject-select",
10079
- "onUpdate:modelValue": te[0] || (te[0] = (O) => s("update:modelValue", O))
10082
+ "onUpdate:modelValue": ie[0] || (ie[0] = (O) => s("update:modelValue", O))
10080
10083
  }, {
10081
10084
  default: p(() => [
10082
10085
  l.value ? (q(), B(it, {
@@ -10103,7 +10106,7 @@ const CF = { class: "subject-select__sidebar system-border-r" }, xF = { class: "
10103
10106
  f(XF)
10104
10107
  ]),
10105
10108
  z("div", xF, [
10106
- (q(), B(Kn(M.value))),
10109
+ (q(), B(En(M.value))),
10107
10110
  z("div", wF, [
10108
10111
  fa((q(), B(S, {
10109
10112
  loading: h(d),
@@ -10420,7 +10423,7 @@ function BF(i, t) {
10420
10423
  t.hasOwnProperty(e) && (i[e] = t[e]);
10421
10424
  return i;
10422
10425
  }
10423
- function _o(i, t) {
10426
+ function Io(i, t) {
10424
10427
  return Math.round(i.top) === Math.round(t.top) && Math.round(i.left) === Math.round(t.left) && Math.round(i.height) === Math.round(t.height) && Math.round(i.width) === Math.round(t.width);
10425
10428
  }
10426
10429
  var dr;
@@ -10484,8 +10487,8 @@ function $F() {
10484
10487
  var r = !1, n = 0;
10485
10488
  i.forEach(function(l) {
10486
10489
  var o = 0, d = l.target, c = d.fromRect, u = At(d), m = d.prevFromRect, v = d.prevToRect, V = l.rect, g = ys(d, !0);
10487
- g && (u.top -= g.f, u.left -= g.e), d.toRect = u, d.thisAnimationDuration && _o(m, u) && !_o(c, u) && // Make sure animatingRect is on line between toRect & fromRect
10488
- (V.top - u.top) / (V.left - u.left) === (c.top - u.top) / (c.left - u.left) && (o = RF(V, m, v, s.options)), _o(u, c) || (d.prevFromRect = c, d.prevToRect = u, o || (o = s.options.animation), s.animate(d, V, u, o)), o && (r = !0, n = Math.max(n, o), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
10490
+ g && (u.top -= g.f, u.left -= g.e), d.toRect = u, d.thisAnimationDuration && Io(m, u) && !Io(c, u) && // Make sure animatingRect is on line between toRect & fromRect
10491
+ (V.top - u.top) / (V.left - u.left) === (c.top - u.top) / (c.left - u.left) && (o = RF(V, m, v, s.options)), Io(u, c) || (d.prevFromRect = c, d.prevToRect = u, o || (o = s.options.animation), s.animate(d, V, u, o)), o && (r = !0, n = Math.max(n, o), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
10489
10492
  d.animationTime = 0, d.prevFromRect = null, d.fromRect = null, d.prevToRect = null, d.thisAnimationDuration = null;
10490
10493
  }, o), d.thisAnimationDuration = o);
10491
10494
  }), clearTimeout(t), r ? t = setTimeout(function() {
@@ -10509,12 +10512,12 @@ function PF(i) {
10509
10512
  function RF(i, t, e, a) {
10510
10513
  return Math.sqrt(Math.pow(t.top - i.top, 2) + Math.pow(t.left - i.left, 2)) / Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) * a.animation;
10511
10514
  }
10512
- var ls = [], Io = {
10515
+ var ls = [], Do = {
10513
10516
  initializeByDefault: !0
10514
10517
  }, wr = {
10515
10518
  mount: function(t) {
10516
- for (var e in Io)
10517
- Io.hasOwnProperty(e) && !(e in t) && (t[e] = Io[e]);
10519
+ for (var e in Do)
10520
+ Do.hasOwnProperty(e) && !(e in t) && (t[e] = Do[e]);
10518
10521
  ls.forEach(function(a) {
10519
10522
  if (a.pluginName === t.pluginName)
10520
10523
  throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
@@ -10623,8 +10626,8 @@ function Lt(i) {
10623
10626
  newDraggableIndex: Aa
10624
10627
  }, i));
10625
10628
  }
10626
- var ue, gt, Te, ot, ja, mn, ft, ba, Vs, ui, ur, Aa, zr, Et, cs = !1, wn = !1, kn = [], Pa, _i, Do, So, Qd, eu, er, ds, cr, fr = !1, Ur = !1, pn, Ot, To = [], pl = !1, _n = [], Jn = typeof document < "u", jr = rf, tu = xr || qa ? "cssFloat" : "float", zF = Jn && !nf && !rf && "draggable" in document.createElement("div"), mf = function() {
10627
- if (Jn) {
10629
+ var ue, gt, Te, ot, ja, mn, ft, ba, Vs, ui, ur, Aa, zr, Et, cs = !1, wn = !1, kn = [], Pa, _i, So, To, Qd, eu, er, ds, cr, fr = !1, Ur = !1, pn, Ot, Ko = [], hl = !1, _n = [], Zn = typeof document < "u", jr = rf, tu = xr || qa ? "cssFloat" : "float", zF = Zn && !nf && !rf && "draggable" in document.createElement("div"), mf = function() {
10630
+ if (Zn) {
10628
10631
  if (qa)
10629
10632
  return !1;
10630
10633
  var i = document.createElement("x");
@@ -10679,7 +10682,7 @@ var ue, gt, Te, ot, ja, mn, ft, ba, Vs, ui, ur, Aa, zr, Et, cs = !1, wn = !1, kn
10679
10682
  }, gf = function() {
10680
10683
  !mf && Te && Ce(Te, "display", "");
10681
10684
  };
10682
- Jn && !nf && document.addEventListener("click", function(i) {
10685
+ Zn && !nf && document.addEventListener("click", function(i) {
10683
10686
  if (wn)
10684
10687
  return i.preventDefault(), i.stopPropagation && i.stopPropagation(), i.stopImmediatePropagation && i.stopImmediatePropagation(), wn = !1, !1;
10685
10688
  }, !0);
@@ -10822,7 +10825,7 @@ _e.prototype = /** @lends Sortable.prototype */
10822
10825
  originalEvent: t
10823
10826
  }), di(ue, n.chosenClass, !0);
10824
10827
  }, n.ignore.split(",").forEach(function(c) {
10825
- lf(ue, c.trim(), Ko);
10828
+ lf(ue, c.trim(), Eo);
10826
10829
  }), Je(l, "dragover", Ra), Je(l, "mousemove", Ra), Je(l, "touchmove", Ra), Je(l, "mouseup", s._onDrop), Je(l, "touchend", s._onDrop), Je(l, "touchcancel", s._onDrop), Wd && this.nativeDraggable && (this.options.touchStartThreshold = 4, ue.draggable = !0), Wt("delayStart", this, {
10827
10830
  evt: t
10828
10831
  }), n.delay && (!n.delayOnTouchOnly || e) && (!this.nativeDraggable || !(xr || qa))) {
@@ -10840,7 +10843,7 @@ _e.prototype = /** @lends Sortable.prototype */
10840
10843
  Math.max(Math.abs(e.clientX - this._lastX), Math.abs(e.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
10841
10844
  },
10842
10845
  _disableDelayedDrag: function() {
10843
- ue && Ko(ue), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
10846
+ ue && Eo(ue), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
10844
10847
  },
10845
10848
  _disableDelayedDragEvents: function() {
10846
10849
  var t = this.el.ownerDocument;
@@ -10893,14 +10896,14 @@ _e.prototype = /** @lends Sortable.prototype */
10893
10896
  },
10894
10897
  _onTouchMove: function(t) {
10895
10898
  if (Pa) {
10896
- var e = this.options, a = e.fallbackTolerance, s = e.fallbackOffset, r = t.touches ? t.touches[0] : t, n = Te && ys(Te, !0), l = Te && n && n.a, o = Te && n && n.d, d = jr && Ot && Zd(Ot), c = (r.clientX - Pa.clientX + s.x) / (l || 1) + (d ? d[0] - To[0] : 0) / (l || 1), u = (r.clientY - Pa.clientY + s.y) / (o || 1) + (d ? d[1] - To[1] : 0) / (o || 1);
10899
+ var e = this.options, a = e.fallbackTolerance, s = e.fallbackOffset, r = t.touches ? t.touches[0] : t, n = Te && ys(Te, !0), l = Te && n && n.a, o = Te && n && n.d, d = jr && Ot && Zd(Ot), c = (r.clientX - Pa.clientX + s.x) / (l || 1) + (d ? d[0] - Ko[0] : 0) / (l || 1), u = (r.clientY - Pa.clientY + s.y) / (o || 1) + (d ? d[1] - Ko[1] : 0) / (o || 1);
10897
10900
  if (!_e.active && !cs) {
10898
10901
  if (a && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < a)
10899
10902
  return;
10900
10903
  this._onDragStart(t, !0);
10901
10904
  }
10902
10905
  if (Te) {
10903
- n ? (n.e += c - (Do || 0), n.f += u - (So || 0)) : n = {
10906
+ n ? (n.e += c - (So || 0), n.f += u - (To || 0)) : n = {
10904
10907
  a: 1,
10905
10908
  b: 0,
10906
10909
  c: 0,
@@ -10909,7 +10912,7 @@ _e.prototype = /** @lends Sortable.prototype */
10909
10912
  f: u
10910
10913
  };
10911
10914
  var m = "matrix(".concat(n.a, ",").concat(n.b, ",").concat(n.c, ",").concat(n.d, ",").concat(n.e, ",").concat(n.f, ")");
10912
- Ce(Te, "webkitTransform", m), Ce(Te, "mozTransform", m), Ce(Te, "msTransform", m), Ce(Te, "transform", m), Do = c, So = u, _i = r;
10915
+ Ce(Te, "webkitTransform", m), Ce(Te, "mozTransform", m), Ce(Te, "msTransform", m), Ce(Te, "transform", m), So = c, To = u, _i = r;
10913
10916
  }
10914
10917
  t.cancelable && t.preventDefault();
10915
10918
  }
@@ -10920,7 +10923,7 @@ _e.prototype = /** @lends Sortable.prototype */
10920
10923
  if (jr) {
10921
10924
  for (Ot = t; Ce(Ot, "position") === "static" && Ce(Ot, "transform") === "none" && Ot !== document; )
10922
10925
  Ot = Ot.parentNode;
10923
- Ot !== document.body && Ot !== document.documentElement ? (Ot === document && (Ot = ji()), e.top += Ot.scrollTop, e.left += Ot.scrollLeft) : Ot = ji(), To = Zd(Ot);
10926
+ Ot !== document.body && Ot !== document.documentElement ? (Ot === document && (Ot = ji()), e.top += Ot.scrollTop, e.left += Ot.scrollLeft) : Ot = ji(), Ko = Zd(Ot);
10924
10927
  }
10925
10928
  Te = ue.cloneNode(!0), di(Te, a.ghostClass, !1), di(Te, a.fallbackClass, !0), di(Te, a.dragClass, !0), Ce(Te, "transition", ""), Ce(Te, "transform", ""), Ce(Te, "box-sizing", "border-box"), Ce(Te, "margin", 0), Ce(Te, "top", e.top), Ce(Te, "left", e.left), Ce(Te, "width", e.width), Ce(Te, "height", e.height), Ce(Te, "opacity", "0.8"), Ce(Te, "position", jr ? "absolute" : "fixed"), Ce(Te, "zIndex", "100000"), Ce(Te, "pointerEvents", "none"), _e.ghost = Te, t.appendChild(Te), Ce(Te, "transform-origin", Qd / parseInt(Te.style.width) * 100 + "% " + eu / parseInt(Te.style.height) * 100 + "%");
10926
10929
  }
@@ -10943,7 +10946,7 @@ _e.prototype = /** @lends Sortable.prototype */
10943
10946
  // Returns true - if no further action is needed (either inserted or another condition)
10944
10947
  _onDragOver: function(t) {
10945
10948
  var e = this.el, a = t.target, s, r, n, l = this.options, o = l.group, d = _e.active, c = zr === o, u = l.sort, m = Et || d, v, V = this, g = !1;
10946
- if (pl)
10949
+ if (hl)
10947
10950
  return;
10948
10951
  function F($, W) {
10949
10952
  Wt($, V, Ji({
@@ -10957,8 +10960,8 @@ _e.prototype = /** @lends Sortable.prototype */
10957
10960
  fromSortable: m,
10958
10961
  target: a,
10959
10962
  completed: Y,
10960
- onMove: function(ie, re) {
10961
- return Hr(ot, e, ue, s, ie, At(ie), t, re);
10963
+ onMove: function(ee, re) {
10964
+ return Hr(ot, e, ue, s, ee, At(ee), t, re);
10962
10965
  },
10963
10966
  changed: y
10964
10967
  }, W));
@@ -11006,8 +11009,8 @@ _e.prototype = /** @lends Sortable.prototype */
11006
11009
  return w(), e.insertBefore(ue, x), gt = e, y(), Y(!0);
11007
11010
  } else if (a.parentNode === e) {
11008
11011
  r = At(a);
11009
- var C = 0, M, U = ue.parentNode !== e, L = !UF(ue.animated && ue.toRect || s, a.animated && a.toRect || r, v), te = v ? "top" : "left", S = Jd(a, "top", "top") || Jd(ue, "top", "top"), H = S ? S.scrollTop : void 0;
11010
- ds !== a && (M = r[te], fr = !1, Ur = !L && l.invertSwap || U), C = QF(t, a, r, v, L ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Ur, ds === a);
11012
+ var C = 0, M, U = ue.parentNode !== e, L = !UF(ue.animated && ue.toRect || s, a.animated && a.toRect || r, v), ie = v ? "top" : "left", S = Jd(a, "top", "top") || Jd(ue, "top", "top"), H = S ? S.scrollTop : void 0;
11013
+ ds !== a && (M = r[ie], fr = !1, Ur = !L && l.invertSwap || U), C = QF(t, a, r, v, L ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Ur, ds === a);
11011
11014
  var O;
11012
11015
  if (C !== 0) {
11013
11016
  var I = Xi(ue);
@@ -11022,7 +11025,7 @@ _e.prototype = /** @lends Sortable.prototype */
11022
11025
  b = C === 1;
11023
11026
  var T = Hr(ot, e, ue, s, a, r, t, b);
11024
11027
  if (T !== !1)
11025
- return (T === 1 || T === -1) && (b = T === 1), pl = !0, setTimeout(GF, 30), w(), b && !A ? e.appendChild(ue) : a.parentNode.insertBefore(ue, b ? A : a), S && cf(S, 0, H - S.scrollTop), gt = ue.parentNode, M !== void 0 && !Ur && (pn = Math.abs(M - At(a)[te])), y(), Y(!0);
11028
+ return (T === 1 || T === -1) && (b = T === 1), hl = !0, setTimeout(GF, 30), w(), b && !A ? e.appendChild(ue) : a.parentNode.insertBefore(ue, b ? A : a), S && cf(S, 0, H - S.scrollTop), gt = ue.parentNode, M !== void 0 && !Ur && (pn = Math.abs(M - At(a)[ie])), y(), Y(!0);
11026
11029
  }
11027
11030
  if (e.contains(ue))
11028
11031
  return Y(!1);
@@ -11045,7 +11048,7 @@ _e.prototype = /** @lends Sortable.prototype */
11045
11048
  this._nulling();
11046
11049
  return;
11047
11050
  }
11048
- cs = !1, Ur = !1, fr = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), hl(this.cloneId), hl(this._dragStartId), this.nativeDraggable && (He(document, "drop", this), He(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), lr && Ce(document.body, "user-select", ""), Ce(ue, "transform", ""), t && (er && (t.cancelable && t.preventDefault(), !a.dropBubble && t.stopPropagation()), Te && Te.parentNode && Te.parentNode.removeChild(Te), (ot === gt || Et && Et.lastPutMode !== "clone") && ft && ft.parentNode && ft.parentNode.removeChild(ft), ue && (this.nativeDraggable && He(ue, "dragend", this), Ko(ue), ue.style["will-change"] = "", er && !cs && di(ue, Et ? Et.options.ghostClass : this.options.ghostClass, !1), di(ue, this.options.chosenClass, !1), Lt({
11051
+ cs = !1, Ur = !1, fr = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Vl(this.cloneId), Vl(this._dragStartId), this.nativeDraggable && (He(document, "drop", this), He(e, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), lr && Ce(document.body, "user-select", ""), Ce(ue, "transform", ""), t && (er && (t.cancelable && t.preventDefault(), !a.dropBubble && t.stopPropagation()), Te && Te.parentNode && Te.parentNode.removeChild(Te), (ot === gt || Et && Et.lastPutMode !== "clone") && ft && ft.parentNode && ft.parentNode.removeChild(ft), ue && (this.nativeDraggable && He(ue, "dragend", this), Eo(ue), ue.style["will-change"] = "", er && !cs && di(ue, Et ? Et.options.ghostClass : this.options.ghostClass, !1), di(ue, this.options.chosenClass, !1), Lt({
11049
11052
  sortable: this,
11050
11053
  name: "unchoose",
11051
11054
  toEl: gt,
@@ -11094,7 +11097,7 @@ _e.prototype = /** @lends Sortable.prototype */
11094
11097
  _nulling: function() {
11095
11098
  Wt("nulling", this), ot = ue = gt = Te = ja = ft = mn = ba = Pa = _i = er = ui = Aa = Vs = ur = ds = cr = Et = zr = _e.dragged = _e.ghost = _e.clone = _e.active = null, _n.forEach(function(t) {
11096
11099
  t.checked = !0;
11097
- }), _n.length = Do = So = 0;
11100
+ }), _n.length = So = To = 0;
11098
11101
  },
11099
11102
  handleEvent: function(t) {
11100
11103
  switch (t.type) {
@@ -11201,11 +11204,11 @@ function Hr(i, t, e, a, s, r, n, l) {
11201
11204
  cancelable: !0
11202
11205
  }) : (o = document.createEvent("Event"), o.initEvent("move", !0, !0)), o.to = t, o.from = i, o.dragged = e, o.draggedRect = a, o.related = s || t, o.relatedRect = r || At(t), o.willInsertAfter = l, o.originalEvent = n, i.dispatchEvent(o), c && (u = c.call(d, o, n)), u;
11203
11206
  }
11204
- function Ko(i) {
11207
+ function Eo(i) {
11205
11208
  i.draggable = !1;
11206
11209
  }
11207
11210
  function GF() {
11208
- pl = !1;
11211
+ hl = !1;
11209
11212
  }
11210
11213
  function JF(i, t, e) {
11211
11214
  var a = At(Is(e.el, 0, e.options, !0)), s = df(e.el), r = 10;
@@ -11246,10 +11249,10 @@ function iq(i) {
11246
11249
  function hn(i) {
11247
11250
  return setTimeout(i, 0);
11248
11251
  }
11249
- function hl(i) {
11252
+ function Vl(i) {
11250
11253
  return clearTimeout(i);
11251
11254
  }
11252
- Jn && Je(document, "touchmove", function(i) {
11255
+ Zn && Je(document, "touchmove", function(i) {
11253
11256
  (_e.active || cs) && i.cancelable && i.preventDefault();
11254
11257
  });
11255
11258
  _e.utils = {
@@ -11267,7 +11270,7 @@ _e.utils = {
11267
11270
  clone: ff,
11268
11271
  index: Xi,
11269
11272
  nextTick: hn,
11270
- cancelNextTick: hl,
11273
+ cancelNextTick: Vl,
11271
11274
  detectDirection: pf,
11272
11275
  getChild: Is
11273
11276
  };
@@ -11287,7 +11290,7 @@ _e.create = function(i, t) {
11287
11290
  return new _e(i, t);
11288
11291
  };
11289
11292
  _e.version = KF;
11290
- var yt = [], tr, Vl, gl = !1, Eo, Mo, In, ir;
11293
+ var yt = [], tr, gl, vl = !1, Mo, Bo, In, ir;
11291
11294
  function aq() {
11292
11295
  function i() {
11293
11296
  this.defaults = {
@@ -11313,7 +11316,7 @@ function aq() {
11313
11316
  this.sortable.nativeDraggable ? He(document, "dragover", this._handleAutoScroll) : (He(document, "pointermove", this._handleFallbackAutoScroll), He(document, "touchmove", this._handleFallbackAutoScroll), He(document, "mousemove", this._handleFallbackAutoScroll)), iu(), Vn(), OF();
11314
11317
  },
11315
11318
  nulling: function() {
11316
- In = Vl = tr = gl = ir = Eo = Mo = null, yt.length = 0;
11319
+ In = gl = tr = vl = ir = Mo = Bo = null, yt.length = 0;
11317
11320
  },
11318
11321
  _handleFallbackAutoScroll: function(e) {
11319
11322
  this._handleAutoScroll(e, !0);
@@ -11321,18 +11324,18 @@ function aq() {
11321
11324
  _handleAutoScroll: function(e, a) {
11322
11325
  var s = this, r = (e.touches ? e.touches[0] : e).clientX, n = (e.touches ? e.touches[0] : e).clientY, l = document.elementFromPoint(r, n);
11323
11326
  if (In = e, a || this.options.forceAutoScrollFallback || xr || qa || lr) {
11324
- Bo(e, this.options, l, a);
11327
+ Oo(e, this.options, l, a);
11325
11328
  var o = wa(l, !0);
11326
- gl && (!ir || r !== Eo || n !== Mo) && (ir && iu(), ir = setInterval(function() {
11329
+ vl && (!ir || r !== Mo || n !== Bo) && (ir && iu(), ir = setInterval(function() {
11327
11330
  var d = wa(document.elementFromPoint(r, n), !0);
11328
- d !== o && (o = d, Vn()), Bo(e, s.options, d, a);
11329
- }, 10), Eo = r, Mo = n);
11331
+ d !== o && (o = d, Vn()), Oo(e, s.options, d, a);
11332
+ }, 10), Mo = r, Bo = n);
11330
11333
  } else {
11331
11334
  if (!this.options.bubbleScroll || wa(l, !0) === ji()) {
11332
11335
  Vn();
11333
11336
  return;
11334
11337
  }
11335
- Bo(e, this.options, wa(l, !1), !1);
11338
+ Oo(e, this.options, wa(l, !1), !1);
11336
11339
  }
11337
11340
  }
11338
11341
  }, ua(i, {
@@ -11348,15 +11351,15 @@ function Vn() {
11348
11351
  function iu() {
11349
11352
  clearInterval(ir);
11350
11353
  }
11351
- var Bo = uf(function(i, t, e, a) {
11354
+ var Oo = uf(function(i, t, e, a) {
11352
11355
  if (t.scroll) {
11353
11356
  var s = (i.touches ? i.touches[0] : i).clientX, r = (i.touches ? i.touches[0] : i).clientY, n = t.scrollSensitivity, l = t.scrollSpeed, o = ji(), d = !1, c;
11354
- Vl !== e && (Vl = e, Vn(), tr = t.scroll, c = t.scrollFn, tr === !0 && (tr = wa(e, !0)));
11357
+ gl !== e && (gl = e, Vn(), tr = t.scroll, c = t.scrollFn, tr === !0 && (tr = wa(e, !0)));
11355
11358
  var u = 0, m = tr;
11356
11359
  do {
11357
- var v = m, V = At(v), g = V.top, F = V.bottom, w = V.left, Y = V.right, y = V.width, X = V.height, x = void 0, C = void 0, M = v.scrollWidth, U = v.scrollHeight, L = Ce(v), te = v.scrollLeft, S = v.scrollTop;
11360
+ var v = m, V = At(v), g = V.top, F = V.bottom, w = V.left, Y = V.right, y = V.width, X = V.height, x = void 0, C = void 0, M = v.scrollWidth, U = v.scrollHeight, L = Ce(v), ie = v.scrollLeft, S = v.scrollTop;
11358
11361
  v === o ? (x = y < M && (L.overflowX === "auto" || L.overflowX === "scroll" || L.overflowX === "visible"), C = X < U && (L.overflowY === "auto" || L.overflowY === "scroll" || L.overflowY === "visible")) : (x = y < M && (L.overflowX === "auto" || L.overflowX === "scroll"), C = X < U && (L.overflowY === "auto" || L.overflowY === "scroll"));
11359
- var H = x && (Math.abs(Y - s) <= n && te + y < M) - (Math.abs(w - s) <= n && !!te), O = C && (Math.abs(F - r) <= n && S + X < U) - (Math.abs(g - r) <= n && !!S);
11362
+ var H = x && (Math.abs(Y - s) <= n && ie + y < M) - (Math.abs(w - s) <= n && !!ie), O = C && (Math.abs(F - r) <= n && S + X < U) - (Math.abs(g - r) <= n && !!S);
11360
11363
  if (!yt[u])
11361
11364
  for (var I = 0; I <= u; I++)
11362
11365
  yt[I] || (yt[I] = {});
@@ -11368,7 +11371,7 @@ var Bo = uf(function(i, t, e, a) {
11368
11371
  layer: u
11369
11372
  }), 24))), u++;
11370
11373
  } while (t.bubbleScroll && m !== o && (m = wa(m, !1)));
11371
- gl = d;
11374
+ vl = d;
11372
11375
  }
11373
11376
  }, 30), vf = function(t) {
11374
11377
  var e = t.originalEvent, a = t.putSortable, s = t.dragEl, r = t.activeSortable, n = t.dispatchSortableEvent, l = t.hideGhostForTarget, o = t.unhideGhostForTarget;
@@ -11456,21 +11459,21 @@ for (let i = 0; i < 256; ++i)
11456
11459
  function qf(i, t = 0) {
11457
11460
  return Kt[i[t + 0]] + Kt[i[t + 1]] + Kt[i[t + 2]] + Kt[i[t + 3]] + "-" + Kt[i[t + 4]] + Kt[i[t + 5]] + "-" + Kt[i[t + 6]] + Kt[i[t + 7]] + "-" + Kt[i[t + 8]] + Kt[i[t + 9]] + "-" + Kt[i[t + 10]] + Kt[i[t + 11]] + Kt[i[t + 12]] + Kt[i[t + 13]] + Kt[i[t + 14]] + Kt[i[t + 15]];
11458
11461
  }
11459
- let au, Oo, $o = 0, Po = 0;
11462
+ let au, $o, Po = 0, Ro = 0;
11460
11463
  function nq(i, t, e) {
11461
11464
  let a = t && e || 0;
11462
11465
  const s = t || new Array(16);
11463
11466
  i = i || {};
11464
- let r = i.node || au, n = i.clockseq !== void 0 ? i.clockseq : Oo;
11467
+ let r = i.node || au, n = i.clockseq !== void 0 ? i.clockseq : $o;
11465
11468
  if (r == null || n == null) {
11466
11469
  const m = i.random || (i.rng || Ff)();
11467
- r == null && (r = au = [m[0] | 1, m[1], m[2], m[3], m[4], m[5]]), n == null && (n = Oo = (m[6] << 8 | m[7]) & 16383);
11470
+ r == null && (r = au = [m[0] | 1, m[1], m[2], m[3], m[4], m[5]]), n == null && (n = $o = (m[6] << 8 | m[7]) & 16383);
11468
11471
  }
11469
- let l = i.msecs !== void 0 ? i.msecs : Date.now(), o = i.nsecs !== void 0 ? i.nsecs : Po + 1;
11470
- const d = l - $o + (o - Po) / 1e4;
11471
- if (d < 0 && i.clockseq === void 0 && (n = n + 1 & 16383), (d < 0 || l > $o) && i.nsecs === void 0 && (o = 0), o >= 1e4)
11472
+ let l = i.msecs !== void 0 ? i.msecs : Date.now(), o = i.nsecs !== void 0 ? i.nsecs : Ro + 1;
11473
+ const d = l - Po + (o - Ro) / 1e4;
11474
+ if (d < 0 && i.clockseq === void 0 && (n = n + 1 & 16383), (d < 0 || l > Po) && i.nsecs === void 0 && (o = 0), o >= 1e4)
11472
11475
  throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
11473
- $o = l, Po = o, Oo = n, l += 122192928e5;
11476
+ Po = l, Ro = o, $o = n, l += 122192928e5;
11474
11477
  const c = ((l & 268435455) * 1e4 + o) % 4294967296;
11475
11478
  s[a++] = c >>> 24 & 255, s[a++] = c >>> 16 & 255, s[a++] = c >>> 8 & 255, s[a++] = c & 255;
11476
11479
  const u = l / 4294967296 * 1e4 & 268435455;
@@ -11563,7 +11566,7 @@ function dq(i, t, e, a) {
11563
11566
  return I.splice(O, 1), F(I, O, O, A), g(b), v(I), A;
11564
11567
  }
11565
11568
  return [];
11566
- }, te = () => {
11569
+ }, ie = () => {
11567
11570
  n.value && o.value && (o.value.stop(), o.value = null);
11568
11571
  };
11569
11572
  return {
@@ -11576,12 +11579,12 @@ function dq(i, t, e, a) {
11576
11579
  itemToRemove: r,
11577
11580
  sortableInstance: o,
11578
11581
  refresh: () => {
11579
- te(), t();
11582
+ ie(), t();
11580
11583
  },
11581
11584
  onRemoveDialogConfirm: () => {
11582
11585
  ce(r.value) || (a("onDelete", r.value), s.value = !1);
11583
11586
  },
11584
- destroy: te,
11587
+ destroy: ie,
11585
11588
  moveArrayElement: w,
11586
11589
  addAfterId: M,
11587
11590
  addAfterIndex: C,
@@ -11611,7 +11614,7 @@ const td = "a-sortable-", uq = ["id"], cq = { class: "a-sortable-widget__content
11611
11614
  },
11612
11615
  emits: ["update:modelValue", "update:dirty", "onEnd", "onAddAfter", "onAddLast", "onEdit", "onDelete"],
11613
11616
  setup(i, { expose: t, emit: e }) {
11614
- const a = i, s = e, r = En(() => a.modelValue), { t: n } = ne(), l = (A) => {
11617
+ const a = i, s = e, r = Mn(() => a.modelValue), { t: n } = ne(), l = (A) => {
11615
11618
  s("onAddAfter", A);
11616
11619
  }, o = (A) => {
11617
11620
  w.value = A, Y.value = !0;
@@ -11653,7 +11656,7 @@ const td = "a-sortable-", uq = ["id"], cq = { class: "a-sortable-widget__content
11653
11656
  widgetEl: M,
11654
11657
  randomUuid: U,
11655
11658
  addAfterId: L,
11656
- removeById: te,
11659
+ removeById: ie,
11657
11660
  updateData: S,
11658
11661
  addAfterIndex: H,
11659
11662
  removeByIndex: O,
@@ -11677,7 +11680,7 @@ const td = "a-sortable-", uq = ["id"], cq = { class: "a-sortable-widget__content
11677
11680
  refresh: X,
11678
11681
  addAfterId: L,
11679
11682
  addAfterIndex: H,
11680
- removeById: te,
11683
+ removeById: ie,
11681
11684
  removeByIndex: O,
11682
11685
  updateData: S,
11683
11686
  updateDataAtIndex: I
@@ -11847,7 +11850,7 @@ const td = "a-sortable-", uq = ["id"], cq = { class: "a-sortable-widget__content
11847
11850
  ]);
11848
11851
  };
11849
11852
  }
11850
- }), vl = "a-sortable-nested-widget__handle", mq = "a-sortable-nested-widget__ghost", pq = "a-sortable-nested-widget__drag", hq = "a-sortable-nested-widget__chosen", ru = "a-sortable-nested-widget__group", nu = Symbol.for("anzu:SortableLevel");
11853
+ }), Fl = "a-sortable-nested-widget__handle", mq = "a-sortable-nested-widget__ghost", pq = "a-sortable-nested-widget__drag", hq = "a-sortable-nested-widget__chosen", ru = "a-sortable-nested-widget__group", nu = Symbol.for("anzu:SortableLevel");
11851
11854
  function Vq(i, t, e) {
11852
11855
  const { showWarningT: a } = nt(), s = E([]), r = E(0), n = E(!1), l = E(null), o = E(!1), d = E(null), c = E(Ca()), u = (S = void 0) => {
11853
11856
  r.value++, N(S) || e("update:modelValue", S), Si(() => {
@@ -11944,23 +11947,23 @@ function Vq(i, t, e) {
11944
11947
  if (ce($) && O === I)
11945
11948
  return [];
11946
11949
  if (ce($)) {
11947
- const ie = b.children.indexOf(T);
11948
- if (ie !== -1) {
11949
- const re = b.children.splice(ie, 1)[0];
11950
- return b.children.splice(O, 0, re), F(b.children, ie, O, b, W), u(b), [];
11950
+ const ee = b.children.indexOf(T);
11951
+ if (ee !== -1) {
11952
+ const re = b.children.splice(ee, 1)[0];
11953
+ return b.children.splice(O, 0, re), F(b.children, ee, O, b, W), u(b), [];
11951
11954
  }
11952
11955
  return console.error("ASortableNested error."), [];
11953
11956
  }
11954
11957
  if (!ce($) && $.children) {
11955
- const ie = $.children.indexOf(T);
11956
- if (ie !== -1) {
11958
+ const ee = $.children.indexOf(T);
11959
+ if (ee !== -1) {
11957
11960
  T.data.parent = null;
11958
- const re = $.children.splice(ie, 1)[0];
11961
+ const re = $.children.splice(ee, 1)[0];
11959
11962
  return b.children.splice(O, 0, re), w(
11960
11963
  b.children,
11961
11964
  $.children,
11962
11965
  O,
11963
- ie,
11966
+ ee,
11964
11967
  b,
11965
11968
  W
11966
11969
  ), u(b), [];
@@ -11975,31 +11978,31 @@ function Vq(i, t, e) {
11975
11978
  if (!ce($) && $.data.id === G.data.id && O === I)
11976
11979
  return [];
11977
11980
  if ($ && $.children && G.data.id === $.data.id) {
11978
- const ie = $.children.indexOf(T);
11979
- if (ie !== -1) {
11980
- const re = $.children.splice(ie, 1)[0];
11981
- G.children.splice(O, 0, re), F(G.children, ie, O, b, W);
11981
+ const ee = $.children.indexOf(T);
11982
+ if (ee !== -1) {
11983
+ const re = $.children.splice(ee, 1)[0];
11984
+ G.children.splice(O, 0, re), F(G.children, ee, O, b, W);
11982
11985
  }
11983
11986
  } else if ($ && $.children && G.data.id !== $.data.id) {
11984
- const ie = $.children.indexOf(T);
11985
- if (ie !== -1) {
11987
+ const ee = $.children.indexOf(T);
11988
+ if (ee !== -1) {
11986
11989
  T.data.parent = G.data.id;
11987
- const re = $.children.splice(ie, 1)[0];
11990
+ const re = $.children.splice(ee, 1)[0];
11988
11991
  G.children.splice(O, 0, re), w(
11989
11992
  G.children,
11990
11993
  $.children,
11991
11994
  O,
11992
- ie,
11995
+ ee,
11993
11996
  b,
11994
11997
  W
11995
11998
  );
11996
11999
  }
11997
12000
  } else {
11998
- const ie = b.children.indexOf(T);
11999
- if (ie !== -1) {
12001
+ const ee = b.children.indexOf(T);
12002
+ if (ee !== -1) {
12000
12003
  T.data.parent = G.data.id;
12001
- const re = b.children.splice(ie, 1)[0];
12002
- G.children.splice(O, 0, re), w(G.children, b.children, O, ie, b, W);
12004
+ const re = b.children.splice(ee, 1)[0];
12005
+ G.children.splice(O, 0, re), w(G.children, b.children, O, ee, b, W);
12003
12006
  }
12004
12007
  }
12005
12008
  return X(G, b.children) > A ? (a("common.sortable.error.maxDeepExceed"), u(), []) : (u(b), W);
@@ -12113,8 +12116,8 @@ const gq = ["data-id"], vq = { class: "a-sortable-nested-widget__nested" }, Fq =
12113
12116
  z("div", Fq, [
12114
12117
  f(fe, {
12115
12118
  class: Xe({
12116
- [h(vl)]: !0,
12117
- [h(vl) + "--disabled"]: u.disableDraggable
12119
+ [h(Fl)]: !0,
12120
+ [h(Fl) + "--disabled"]: u.disableDraggable
12118
12121
  }),
12119
12122
  icon: "mdi-drag"
12120
12123
  }, null, 8, ["class"]),
@@ -12259,7 +12262,7 @@ const gq = ["data-id"], vq = { class: "a-sortable-nested-widget__nested" }, Fq =
12259
12262
  },
12260
12263
  emits: ["update:modelValue", "onEnd", "onAddAfter", "onAddChild", "onAddLast", "onEdit", "onDelete"],
12261
12264
  setup(i, { expose: t, emit: e }) {
12262
- const a = i, s = e, r = En(() => a.modelValue), n = (I) => {
12265
+ const a = i, s = e, r = Mn(() => a.modelValue), n = (I) => {
12263
12266
  s("onAddAfter", I);
12264
12267
  }, l = (I) => {
12265
12268
  s("onAddChild", I);
@@ -12285,7 +12288,7 @@ const gq = ["data-id"], vq = { class: "a-sortable-nested-widget__nested" }, Fq =
12285
12288
  pull: !0,
12286
12289
  put: !0
12287
12290
  },
12288
- handle: "." + vl,
12291
+ handle: "." + Fl,
12289
12292
  ghostClass: mq,
12290
12293
  dragClass: pq,
12291
12294
  chosenClass: hq,
@@ -12310,8 +12313,8 @@ const gq = ["data-id"], vq = { class: "a-sortable-nested-widget__nested" }, Fq =
12310
12313
  if (N(W))
12311
12314
  return;
12312
12315
  let G = null;
12313
- const ie = b.item.parentElement;
12314
- ce(ie) || (G = _s(ie.getAttribute("data-id") ?? "0"), G === 0 && (G = null));
12316
+ const ee = b.item.parentElement;
12317
+ ce(ee) || (G = _s(ee.getAttribute("data-id") ?? "0"), G === 0 && (G = null));
12315
12318
  const re = x(T, G, $, W, a.maxDepth);
12316
12319
  s("onEnd", re);
12317
12320
  });
@@ -12329,19 +12332,19 @@ const gq = ["data-id"], vq = { class: "a-sortable-nested-widget__nested" }, Fq =
12329
12332
  addChildToId: M,
12330
12333
  removeById: U,
12331
12334
  updateData: L,
12332
- destroy: te,
12335
+ destroy: ie,
12333
12336
  refresh: S,
12334
12337
  onRemoveDialogConfirm: H,
12335
12338
  sortableInstances: O
12336
12339
  } = Vq(r, V, s);
12337
12340
  return is(() => {
12338
- te();
12341
+ ie();
12339
12342
  }), Si(() => {
12340
12343
  F.value = document.querySelector("#" + m.value), V();
12341
12344
  }), xe(
12342
12345
  () => a.disableDraggable,
12343
12346
  async (I) => {
12344
- te(), I === !1 && V();
12347
+ ie(), I === !1 && V();
12345
12348
  }
12346
12349
  ), t({
12347
12350
  refresh: S,
@@ -12503,7 +12506,7 @@ const gq = ["data-id"], vq = { class: "a-sortable-nested-widget__nested" }, Fq =
12503
12506
  "model-value": n.value,
12504
12507
  fullscreen: "",
12505
12508
  class: "subject-select",
12506
- "onUpdate:modelValue": M[1] || (M[1] = (te) => s("update:modelValue", te))
12509
+ "onUpdate:modelValue": M[1] || (M[1] = (ie) => s("update:modelValue", ie))
12507
12510
  }), {
12508
12511
  default: p(() => [
12509
12512
  n.value ? (q(), B(it, {
@@ -12574,7 +12577,7 @@ const gq = ["data-id"], vq = { class: "a-sortable-nested-widget__nested" }, Fq =
12574
12577
  z("div", kq, [
12575
12578
  z("div", _q, [
12576
12579
  z("div", Iq, [
12577
- f(On, {
12580
+ f($n, {
12578
12581
  name: "search2",
12579
12582
  class: "px-2 pt-4",
12580
12583
  onSubmit: ae(C.submitFilter, ["prevent"])
@@ -12649,7 +12652,7 @@ const gq = ["data-id"], vq = { class: "a-sortable-nested-widget__nested" }, Fq =
12649
12652
  ])) : (q(), B(ph, {
12650
12653
  key: 1,
12651
12654
  modelValue: l.value,
12652
- "onUpdate:modelValue": M[0] || (M[0] = (te) => l.value = te),
12655
+ "onUpdate:modelValue": M[0] || (M[0] = (ie) => l.value = ie),
12653
12656
  onChange: Y
12654
12657
  }, null, 8, ["modelValue"]))
12655
12658
  ])
@@ -12682,12 +12685,12 @@ const gq = ["data-id"], vq = { class: "a-sortable-nested-widget__nested" }, Fq =
12682
12685
  ], 64);
12683
12686
  };
12684
12687
  }
12685
- }), Ro = E(!1);
12688
+ }), No = E(!1);
12686
12689
  function Bq() {
12687
12690
  return {
12688
- showAll: Ro,
12691
+ showAll: No,
12689
12692
  toggleForm: () => {
12690
- Ro.value = !Ro.value;
12693
+ No.value = !No.value;
12691
12694
  }
12692
12695
  };
12693
12696
  }
@@ -12730,7 +12733,7 @@ const Oq = {
12730
12733
  }, Pq = {
12731
12734
  key: 0,
12732
12735
  class: "required"
12733
- }, Rq = { key: 4 }, Fl = /* @__PURE__ */ Z({
12736
+ }, Rq = { key: 4 }, ql = /* @__PURE__ */ Z({
12734
12737
  __name: "ACustomDataFormElement",
12735
12738
  props: {
12736
12739
  modelValue: {},
@@ -12743,7 +12746,7 @@ const Oq = {
12743
12746
  a("update:modelValue", { property: e.config.property, value: s(Y) });
12744
12747
  }, n = D(() => {
12745
12748
  const Y = Hu(e.modelValue) ? Qt(e.modelValue) : e.modelValue;
12746
- return e.config.attributes.type === zt.StringArray && Rn(Y) ? [] : Y;
12749
+ return e.config.attributes.type === zt.StringArray && Nn(Y) ? [] : Y;
12747
12750
  }), { maxLength: l, minLength: o, requiredIf: d, minValue: c, maxValue: u, stringArrayItemLength: m } = ss(), v = D(() => {
12748
12751
  const Y = {
12749
12752
  modelValueComputed: {
@@ -12878,7 +12881,7 @@ const Oq = {
12878
12881
  P(k(F.modelValue[Y.property]), 1)
12879
12882
  ]),
12880
12883
  _: 2
12881
- }, 1032, ["title"])) : (q(), B(Fl, {
12884
+ }, 1032, ["title"])) : (q(), B(ql, {
12882
12885
  key: 1,
12883
12886
  config: Y,
12884
12887
  "model-value": F.modelValue[Y.property],
@@ -12910,7 +12913,7 @@ const Oq = {
12910
12913
  P(k(F.modelValue[Y.property]), 1)
12911
12914
  ]),
12912
12915
  _: 2
12913
- }, 1032, ["title"])) : (q(), B(Fl, {
12916
+ }, 1032, ["title"])) : (q(), B(ql, {
12914
12917
  key: 1,
12915
12918
  config: Y,
12916
12919
  "model-value": F.modelValue[Y.property],
@@ -12940,7 +12943,7 @@ const Oq = {
12940
12943
  }, 8, ["onClick"])) : j("", !0)
12941
12944
  ], 64));
12942
12945
  }
12943
- }), No = E(!1), Lo = E(void 0);
12946
+ }), Lo = E(!1), zo = E(void 0);
12944
12947
  function Uq() {
12945
12948
  const i = (l) => {
12946
12949
  l.preventDefault(), a(l, !0);
@@ -12949,8 +12952,8 @@ function Uq() {
12949
12952
  }, e = (l) => {
12950
12953
  l.preventDefault(), a(l, !1);
12951
12954
  }, a = (l, o) => {
12952
- s(l) && (o ? (No.value = !0, clearTimeout(Lo.value)) : (clearTimeout(Lo.value), Lo.value = setTimeout(() => {
12953
- No.value = !1;
12955
+ s(l) && (o ? (Lo.value = !0, clearTimeout(zo.value)) : (clearTimeout(zo.value), zo.value = setTimeout(() => {
12956
+ Lo.value = !1;
12954
12957
  }, 100)));
12955
12958
  }, s = (l) => {
12956
12959
  var o;
@@ -12962,7 +12965,7 @@ function Uq() {
12962
12965
  return !1;
12963
12966
  };
12964
12967
  return {
12965
- isDraggingFile: No,
12968
+ isDraggingFile: Lo,
12966
12969
  initGlobalDragState: () => {
12967
12970
  window.document.addEventListener("dragover", i), window.document.addEventListener("dragleave", t), window.document.addEventListener("drop", e);
12968
12971
  },
@@ -13041,7 +13044,7 @@ const jq = {
13041
13044
  }, Wq = {
13042
13045
  key: 2,
13043
13046
  class: "text"
13044
- }, Zn = /* @__PURE__ */ Z({
13047
+ }, Qn = /* @__PURE__ */ Z({
13045
13048
  __name: "AFileDropzone",
13046
13049
  props: {
13047
13050
  variant: { default: "default" },
@@ -13081,7 +13084,7 @@ const jq = {
13081
13084
  function Gq(i) {
13082
13085
  ya.value = i;
13083
13086
  }
13084
- function Qn(i = "default") {
13087
+ function eo(i = "default") {
13085
13088
  if (N(ya.value) || N(ya.value.configs) || N(ya.value.configs[i]))
13086
13089
  throw new Error("Composable can't be used without properly configured common admin.");
13087
13090
  return {
@@ -13170,13 +13173,13 @@ const Qq = (i, t) => {
13170
13173
  return e;
13171
13174
  }
13172
13175
  return null;
13173
- }, zo = E(void 0);
13176
+ }, Uo = E(void 0);
13174
13177
  function e7(i = 30) {
13175
- const { damPrvConfig: t } = ii(), e = E(zo.value || t.value.settings.imageChunkConfig.minSize), a = i / 5, s = i / 4, r = i / 2, n = (o) => {
13178
+ const { damPrvConfig: t } = ii(), e = E(Uo.value || t.value.settings.imageChunkConfig.minSize), a = i / 5, s = i / 4, r = i / 2, n = (o) => {
13176
13179
  if (ce(o))
13177
13180
  return !1;
13178
13181
  const d = e.value / o;
13179
- return d > r ? (e.value = l(r * o), zo.value = e.value, !0) : d < a ? (e.value = l(s * o), zo.value = e.value, !0) : !1;
13182
+ return d > r ? (e.value = l(r * o), Uo.value = e.value, !0) : d < a ? (e.value = l(s * o), Uo.value = e.value, !0) : !1;
13180
13183
  }, l = (o) => o > t.value.settings.imageChunkConfig.maxSize ? t.value.settings.imageChunkConfig.maxSize : o < t.value.settings.imageChunkConfig.minSize ? t.value.settings.imageChunkConfig.minSize : o;
13181
13184
  return {
13182
13185
  lastChunkSize: e,
@@ -13808,7 +13811,7 @@ var kf = { exports: {} };
13808
13811
  });
13809
13812
  })(kf);
13810
13813
  var c7 = kf.exports;
13811
- const f7 = /* @__PURE__ */ Ll(c7), Uo = 4, m7 = 1e3, p7 = 1e3, h7 = 3, V7 = async (i, t = null) => {
13814
+ const f7 = /* @__PURE__ */ Ll(c7), jo = 4, m7 = 1e3, p7 = 1e3, h7 = 3, V7 = async (i, t = null) => {
13812
13815
  throw t;
13813
13816
  }, g7 = async (i, t) => {
13814
13817
  const { damClient: e } = xt(), { uploadStatusFallback: a } = Lc();
@@ -13878,7 +13881,7 @@ function q7(i, t = void 0) {
13878
13881
  c(i.progress.speed);
13879
13882
  let X = await ou(y, u.value, i.file), x = new File([X.data], i.file.name);
13880
13883
  i.currentChunkIndex = y;
13881
- const C = Bn.CancelToken;
13884
+ const C = On.CancelToken;
13882
13885
  i.latestChunkCancelToken = C.source();
13883
13886
  let M = p7, U = 0;
13884
13887
  do {
@@ -13887,10 +13890,10 @@ function q7(i, t = void 0) {
13887
13890
  return await V(x, y), d.update(X.data), x;
13888
13891
  } catch (L) {
13889
13892
  if (sa(L))
13890
- return U = Uo, i.error.message = v7(L), Promise.reject(L);
13891
- c(i.progress.speed) && (X = await ou(y, u.value, i.file), x = new File([X.data], i.file.name)), await F7(M), U === Uo - 1 ? M = 1 : M *= h7;
13893
+ return U = jo, i.error.message = v7(L), Promise.reject(L);
13894
+ c(i.progress.speed) && (X = await ou(y, u.value, i.file), x = new File([X.data], i.file.name)), await F7(M), U === jo - 1 ? M = 1 : M *= h7;
13892
13895
  }
13893
- } while (U < Uo);
13896
+ } while (U < jo);
13894
13897
  return Promise.reject("Unable to upload chunk, max tries exceeded");
13895
13898
  };
13896
13899
  function F() {
@@ -13990,11 +13993,11 @@ function y7() {
13990
13993
  addDamNotificationListener: (e) => i.on(e)
13991
13994
  };
13992
13995
  }
13993
- function jo() {
13996
+ function Ho() {
13994
13997
  return {
13995
13998
  updateNewNames: (e, a) => {
13996
13999
  for (const [s, r] of Object.entries(e))
13997
- Rn(r) && a.add(s);
14000
+ Nn(r) && a.add(s);
13998
14001
  },
13999
14002
  getAuthorConflicts: (e) => {
14000
14003
  const a = [];
@@ -14070,14 +14073,14 @@ function If(i, t, e, a = "id") {
14070
14073
  };
14071
14074
  }
14072
14075
  const A7 = (i, t) => {
14073
- const { querySetLimit: e, querySetOffset: a, querySetOrder: s, queryBuild: r, queryAddFilter: n, queryAdd: l } = Hn(), o = i.length;
14076
+ const { querySetLimit: e, querySetOffset: a, querySetOrder: s, queryBuild: r, queryAddFilter: n, queryAdd: l } = Wn(), o = i.length;
14074
14077
  return e(o), a(1, o), s("id", !1), t ? l("id", i.join(",")) : n("in", "id", i.join(",")), r();
14075
14078
  }, ad = (i, t, e, a = {}, s, r, n = {}, l = !1) => new Promise((o, d) => {
14076
14079
  i().get(Ea(e, a) + A7(t, l), n).then((c) => {
14077
14080
  var u;
14078
14081
  return Ma(c.status) ? (u = c.data) != null && u.data ? o(c.data.data) : c.status === Va ? o(null) : d(new Mt()) : d(new va(c.status));
14079
14082
  }).catch((c) => ga(c) ? d(new aa(c)) : sa(c) ? d(new ra(c, s, r, c)) : Fa(c) ? d(new na(c, c)) : d(new Mt(c)));
14080
- }), eo = (i, t = {}, e, a = {}, s, r, n = {}) => new Promise((l, o) => {
14083
+ }), to = (i, t = {}, e, a = {}, s, r, n = {}) => new Promise((l, o) => {
14081
14084
  i().post(Ea(e, a), JSON.stringify(t), n).then((d) => Ma(d.status) ? d.data ? l(d.data) : d.status === Va ? l(null) : o(new Mt()) : o(new va(d.status))).catch((d) => ga(d) ? o(new aa(d)) : sa(d) ? o(new ra(d, s, r, d)) : Fa(d) ? o(new na(d, d)) : o(new Mt(d)));
14082
14085
  }), Df = "/adm/v1/keyword", Sf = Df + "/ext-system/:extSystemId", Os = "keyword", Tf = (i, t, e) => ad(
14083
14086
  i,
@@ -14088,8 +14091,8 @@ const A7 = (i, t) => {
14088
14091
  Os,
14089
14092
  {},
14090
14093
  !0
14091
- ), uu = (i, t, e, a) => Cr(i, Sf, { extSystemId: t }, e, a, Xt, Os), b7 = (i, t) => eo(i, t, Df, {}, Xt, Os), C7 = E(0);
14092
- function to() {
14094
+ ), uu = (i, t, e, a) => Cr(i, Sf, { extSystemId: t }, e, a, Xt, Os), b7 = (i, t) => to(i, t, Df, {}, Xt, Os), C7 = E(0);
14095
+ function io() {
14093
14096
  return {
14094
14097
  cachedExtSystemId: C7
14095
14098
  };
@@ -14098,9 +14101,9 @@ const x7 = (i) => ({
14098
14101
  id: i.id,
14099
14102
  name: i.name
14100
14103
  }), w7 = (i) => ({ id: i, name: "" }), { cache: k7, toFetch: _7, fetch: I7, add: D7, addManual: S7, addManualMinimal: T7, has: K7, get: E7, isLoaded: M7 } = If(x7, w7, (i) => {
14101
- const { cachedExtSystemId: t } = to(), { damClient: e } = xt();
14104
+ const { cachedExtSystemId: t } = io(), { damClient: e } = xt();
14102
14105
  return Tf(e, t.value, i);
14103
- }), io = () => ({
14106
+ }), ao = () => ({
14104
14107
  addManualToCachedKeywords: S7,
14105
14108
  addManualMinimalToCachedKeywords: T7,
14106
14109
  addToCachedKeywords: D7,
@@ -14110,7 +14113,7 @@ const x7 = (i) => ({
14110
14113
  hasCachedKeyword: K7,
14111
14114
  getCachedKeyword: E7,
14112
14115
  isLoadedCachedKeyword: M7
14113
- }), Kf = "/adm/v1/author", Ef = Kf + "/ext-system/:extSystemId", ao = "author", $s = (i, t, e) => ad(
14116
+ }), Kf = "/adm/v1/author", Ef = Kf + "/ext-system/:extSystemId", so = "author", $s = (i, t, e) => ad(
14114
14117
  i,
14115
14118
  e,
14116
14119
  Ef + "/search",
@@ -14118,7 +14121,7 @@ const x7 = (i) => ({
14118
14121
  extSystemId: t
14119
14122
  },
14120
14123
  Xt,
14121
- ao,
14124
+ so,
14122
14125
  {},
14123
14126
  !0
14124
14127
  ), cu = (i, t, e, a) => Cr(
@@ -14130,13 +14133,13 @@ const x7 = (i) => ({
14130
14133
  e,
14131
14134
  a,
14132
14135
  Xt,
14133
- ao
14134
- ), B7 = (i, t) => eo(i, t, Kf, {}, Xt, ao), O7 = (i) => ({
14136
+ so
14137
+ ), B7 = (i, t) => to(i, t, Kf, {}, Xt, so), O7 = (i) => ({
14135
14138
  id: i.id,
14136
14139
  name: i.name,
14137
14140
  identifier: i.identifier
14138
14141
  }), $7 = (i) => ({ id: i, name: "", identifier: "" }), { cache: P7, toFetch: R7, fetch: Mf, add: Bf, addManual: N7, addManualMinimal: Of, has: L7, get: z7, isLoaded: U7 } = If(O7, $7, (i) => {
14139
- const { cachedExtSystemId: t } = to(), { damClient: e } = xt();
14142
+ const { cachedExtSystemId: t } = io(), { damClient: e } = xt();
14140
14143
  return $s(e, t.value, i);
14141
14144
  }), _r = () => ({
14142
14145
  addManualToCachedAuthors: N7,
@@ -14153,7 +14156,7 @@ const x7 = (i) => ({
14153
14156
  add: Bf,
14154
14157
  addManualMinimal: Of
14155
14158
  }), fu = 2, j7 = 10485760, xi = Ar("commonUploadQueuesStore", () => {
14156
- const { addToCachedKeywords: i, fetchCachedKeywords: t } = io(), { addToCachedAuthors: e, fetchCachedAuthors: a } = _r(), s = E(/* @__PURE__ */ new Map()), { createDefault: r } = Zq(), { damClient: n } = xt(), { addDamNotificationListener: l } = y7();
14159
+ const { addToCachedKeywords: i, fetchCachedKeywords: t } = ao(), { addToCachedAuthors: e, fetchCachedAuthors: a } = _r(), s = E(/* @__PURE__ */ new Map()), { createDefault: r } = Zq(), { damClient: n } = xt(), { addDamNotificationListener: l } = y7();
14157
14160
  l((b) => {
14158
14161
  switch (b.name) {
14159
14162
  case Gr.AssetFileProcessed:
@@ -14178,18 +14181,18 @@ const x7 = (i) => ({
14178
14181
  return s.value.has(b) ? ((T = s.value.get(b)) == null ? void 0 : T.items) || [] : [];
14179
14182
  }
14180
14183
  async function c(b, T, $, W) {
14181
- const { getDamConfigExtSystem: G } = ii(), ie = G(T);
14182
- if (N(ie))
14184
+ const { getDamConfigExtSystem: G } = ii(), ee = G(T);
14185
+ if (N(ee))
14183
14186
  throw new Error("Ext system must be initialised.");
14184
14187
  for await (const re of W) {
14185
- const ee = Qq(gs(re), ie);
14186
- if (!ee || ee !== be.Image)
14188
+ const te = Qq(gs(re), ee);
14189
+ if (!te || te !== be.Image)
14187
14190
  continue;
14188
14191
  const se = r(
14189
14192
  "file_" + re.name,
14190
14193
  id.File,
14191
14194
  et.Waiting,
14192
- ee,
14195
+ te,
14193
14196
  j7,
14194
14197
  $
14195
14198
  );
@@ -14224,8 +14227,8 @@ const x7 = (i) => ({
14224
14227
  T[W] && F(T[W], b);
14225
14228
  }
14226
14229
  async function F(b, T) {
14227
- const { upload: $, uploadInit: W } = q7(b, (G, ie, re) => {
14228
- w(b, G, ie, re);
14230
+ const { upload: $, uploadInit: W } = q7(b, (G, ee, re) => {
14231
+ w(b, G, ee, re);
14229
14232
  });
14230
14233
  try {
14231
14234
  await W(), await $(), g(T);
@@ -14243,49 +14246,49 @@ const x7 = (i) => ({
14243
14246
  return;
14244
14247
  s.value.forEach(($, W) => {
14245
14248
  $.items.forEach((G) => {
14246
- var ie;
14247
- G.assetId === T.id && T.mainFile && (clearTimeout(G.notificationFallbackTimer), G.status = et.Uploaded, G.assetStatus = T.attributes.assetStatus, (ie = T.mainFile.links) != null && ie.image_detail && (G.imagePreview = T.mainFile.links.image_detail), g(W));
14249
+ var ee;
14250
+ G.assetId === T.id && T.mainFile && (clearTimeout(G.notificationFallbackTimer), G.status = et.Uploaded, G.assetStatus = T.attributes.assetStatus, (ee = T.mainFile.links) != null && ee.image_detail && (G.imagePreview = T.mainFile.links.image_detail), g(W));
14248
14251
  }), v(W);
14249
14252
  });
14250
14253
  } catch {
14251
14254
  }
14252
14255
  }
14253
14256
  async function y(b, T = null, $ = null) {
14254
- const { updateNewNames: W, getAuthorConflicts: G } = jo();
14257
+ const { updateNewNames: W, getAuthorConflicts: G } = Ho();
14255
14258
  if (!T || !$ || $ !== be.Image)
14256
14259
  return;
14257
- let ie = null;
14260
+ let ee = null;
14258
14261
  try {
14259
- ie = await Wl(n, T);
14262
+ ee = await Wl(n, T);
14260
14263
  } catch {
14261
14264
  throw new Error("Fatal error");
14262
14265
  }
14263
- s.value.forEach((re, ee) => {
14266
+ s.value.forEach((re, te) => {
14264
14267
  re.items.forEach((se) => {
14265
14268
  var ye, ke;
14266
- ce(ie) || se.assetId === b && (clearTimeout(se.notificationFallbackTimer), se.isDuplicate = !0, se.status = et.Uploaded, se.fileId = T, se.duplicateAssetId = ie.id, se.assetStatus = ie.attributes.assetStatus, (ke = (ye = ie.mainFile) == null ? void 0 : ye.links) != null && ke.image_detail && (se.imagePreview = ie.mainFile.links.image_detail), se.keywords = ie.keywords, se.authors = ie.authors, se.customData = ie.metadata.customData, W(ie.metadata.authorSuggestions, re.suggestions.newAuthorNames), W(ie.metadata.keywordSuggestions, re.suggestions.newKeywordNames), se.authorConflicts = G(ie.metadata.authorSuggestions), i(se.keywords), e(se.authors), e(se.authorConflicts), se.assetId = ie.id, se.canEditMetadata = !0, g(ee));
14267
- }), v(ee), a(), t();
14269
+ ce(ee) || se.assetId === b && (clearTimeout(se.notificationFallbackTimer), se.isDuplicate = !0, se.status = et.Uploaded, se.fileId = T, se.duplicateAssetId = ee.id, se.assetStatus = ee.attributes.assetStatus, (ke = (ye = ee.mainFile) == null ? void 0 : ye.links) != null && ke.image_detail && (se.imagePreview = ee.mainFile.links.image_detail), se.keywords = ee.keywords, se.authors = ee.authors, se.customData = ee.metadata.customData, W(ee.metadata.authorSuggestions, re.suggestions.newAuthorNames), W(ee.metadata.keywordSuggestions, re.suggestions.newKeywordNames), se.authorConflicts = G(ee.metadata.authorSuggestions), i(se.keywords), e(se.authors), e(se.authorConflicts), se.assetId = ee.id, se.canEditMetadata = !0, g(te));
14270
+ }), v(te), a(), t();
14268
14271
  });
14269
14272
  }
14270
14273
  async function X(b, T) {
14271
14274
  try {
14272
14275
  const $ = await xa(n, b);
14273
14276
  s.value.forEach((W, G) => {
14274
- W.items.forEach((ie) => {
14275
- ie.assetId === $.id && (clearTimeout(ie.notificationFallbackTimer), ie.error.hasError = !0, ie.status = et.Failed, ie.error.assetFileFailReason = T, ie.canEditMetadata = !1, g(G));
14277
+ W.items.forEach((ee) => {
14278
+ ee.assetId === $.id && (clearTimeout(ee.notificationFallbackTimer), ee.error.hasError = !0, ee.status = et.Failed, ee.error.assetFileFailReason = T, ee.canEditMetadata = !1, g(G));
14276
14279
  }), v(G);
14277
14280
  });
14278
14281
  } catch {
14279
14282
  }
14280
14283
  }
14281
14284
  async function x(b) {
14282
- const { updateNewNames: T, getAuthorConflicts: $ } = jo();
14285
+ const { updateNewNames: T, getAuthorConflicts: $ } = Ho();
14283
14286
  try {
14284
14287
  const W = await xa(n, b);
14285
- s.value.forEach((G, ie) => {
14288
+ s.value.forEach((G, ee) => {
14286
14289
  G.items.forEach((re) => {
14287
14290
  re.assetId === W.id && re.type && (clearTimeout(re.notificationFallbackTimer), re.keywords = W.keywords, re.authors = W.authors, re.customData = W.metadata.customData, T(W.metadata.authorSuggestions, G.suggestions.newAuthorNames), T(W.metadata.keywordSuggestions, G.suggestions.newKeywordNames), re.authorConflicts = $(W.metadata.authorSuggestions), i(re.keywords), e(re.authors), e(re.authorConflicts), re.canEditMetadata = !0);
14288
- }), v(ie), a(), t();
14291
+ }), v(ee), a(), t();
14289
14292
  });
14290
14293
  } catch {
14291
14294
  }
@@ -14299,13 +14302,13 @@ const x7 = (i) => ({
14299
14302
  !W || W.items.length === 0 || (T.status = et.Stop, T.latestChunkCancelToken && lu(T.latestChunkCancelToken), C(b, $), g(b));
14300
14303
  }
14301
14304
  async function U(b) {
14302
- const { updateNewNames: T, getAuthorConflicts: $ } = jo();
14305
+ const { updateNewNames: T, getAuthorConflicts: $ } = Ho();
14303
14306
  try {
14304
14307
  const W = await xa(n, b.id);
14305
- s.value.forEach((G, ie) => {
14308
+ s.value.forEach((G, ee) => {
14306
14309
  G.items.forEach((re) => {
14307
14310
  re.assetId === W.id && re.type && (clearTimeout(re.notificationFallbackTimer), re.keywords = W.keywords, re.authors = W.authors, re.customData = W.metadata.customData, T(W.metadata.authorSuggestions, G.suggestions.newAuthorNames), T(W.metadata.keywordSuggestions, G.suggestions.newKeywordNames), re.authorConflicts = $(W.metadata.authorSuggestions), i(re.keywords), e(re.authors), e(re.authorConflicts));
14308
- }), v(ie), a(), t();
14311
+ }), v(ee), a(), t();
14309
14312
  });
14310
14313
  } catch {
14311
14314
  }
@@ -14314,7 +14317,7 @@ const x7 = (i) => ({
14314
14317
  const T = s.value.get(b);
14315
14318
  return T ? T.totalCount : 0;
14316
14319
  }
14317
- function te(b) {
14320
+ function ie(b) {
14318
14321
  const T = s.value.get(b);
14319
14322
  return T ? T.processedCount : 0;
14320
14323
  }
@@ -14366,7 +14369,7 @@ const x7 = (i) => ({
14366
14369
  removeByIndex: C,
14367
14370
  stopItemUpload: M,
14368
14371
  getQueueTotalCount: L,
14369
- getQueueProcessedCount: te,
14372
+ getQueueProcessedCount: ie,
14370
14373
  stopUpload: S,
14371
14374
  getQueueItemsTypes: A,
14372
14375
  updateFromDetail: U
@@ -14404,7 +14407,7 @@ const x7 = (i) => ({
14404
14407
  const g = V;
14405
14408
  s("change", g), c(Array.from(((F = g.target) == null ? void 0 : F.files) ?? []));
14406
14409
  }, v = () => {
14407
- if (!al(a.onDropzoneClickCallback)) {
14410
+ if (!sl(a.onDropzoneClickCallback)) {
14408
14411
  if (N(a.onDropzoneClickCallback)) {
14409
14412
  o();
14410
14413
  return;
@@ -14420,7 +14423,7 @@ const x7 = (i) => ({
14420
14423
  ), t({
14421
14424
  activate: o
14422
14425
  }), (V, g) => (q(), R(we, null, [
14423
- V.useDropzone ? (q(), B(Zn, {
14426
+ V.useDropzone ? (q(), B(Qn, {
14424
14427
  key: 0,
14425
14428
  variant: V.dropzoneVariant,
14426
14429
  onOnClick: v,
@@ -14442,13 +14445,13 @@ const x7 = (i) => ({
14442
14445
  }, null, 40, H7))
14443
14446
  ], 64));
14444
14447
  }
14445
- }), so = Symbol.for(
14448
+ }), ro = Symbol.for(
14446
14449
  "anzu:ImageWidgetExtSystemConfigs"
14447
14450
  ), Pf = (i, t = {}, e, a = {}, s, r, n = {}) => new Promise((l, o) => {
14448
14451
  i().put(Ea(e, a), JSON.stringify(t), n).then((d) => Ma(d.status) ? d.data ? l(d.data) : d.status === Va ? l(null) : o(new Mt()) : o(new va(d.status))).catch((d) => ga(d) ? o(new aa(d)) : sa(d) ? o(new ra(d, s, r, d)) : Fa(d) ? o(new na(d, d)) : o(new Mt(d)));
14449
14452
  }), Rf = (i, t, e = {}, a, s, r = {}) => new Promise((n, l) => {
14450
14453
  i().delete(Ea(t, e), r).then((o) => Ma(o.status) ? o.data ? n(o.data) : o.status === Va ? n(null) : l(new Mt()) : l(new va(o.status))).catch((o) => ga(o) ? l(new aa(o)) : sa(o) ? l(new ra(o, a, s, o)) : Fa(o) ? l(new na(o, o)) : l(new Mt(o)));
14451
- }), Ps = "/adm/v1/image", Ir = "image", Dr = "cms", Ho = 20, Nf = (i, t) => ad(i, t, Ps, {}, Dr, Ir), Lf = (i, t) => Ci(i, Ps + "/:id", { id: t }, Dr, Ir), G7 = (i, t) => eo(i, t, Ps, {}, Dr, Ir), J7 = (i, t, e) => Pf(i, e, Ps + "/:id", { id: t }, Dr, Ir), zf = (i, t) => Rf(i, Ps + "/:id", { id: t }, Dr, Ir), Z7 = (i, t) => new Promise((e, a) => {
14454
+ }), Ps = "/adm/v1/image", Ir = "image", Dr = "cms", Wo = 20, Nf = (i, t) => ad(i, t, Ps, {}, Dr, Ir), Lf = (i, t) => Ci(i, Ps + "/:id", { id: t }, Dr, Ir), G7 = (i, t) => to(i, t, Ps, {}, Dr, Ir), J7 = (i, t, e) => Pf(i, e, Ps + "/:id", { id: t }, Dr, Ir), zf = (i, t) => Rf(i, Ps + "/:id", { id: t }, Dr, Ir), Z7 = (i, t) => new Promise((e, a) => {
14452
14455
  Q7(i, t).then((s) => {
14453
14456
  if (t.length === 0)
14454
14457
  return e([]);
@@ -14462,11 +14465,11 @@ const x7 = (i) => ({
14462
14465
  }).catch((s) => a(s));
14463
14466
  });
14464
14467
  async function Q7(i, t) {
14465
- const e = Math.ceil(t.length / Ho), a = [];
14468
+ const e = Math.ceil(t.length / Wo), a = [];
14466
14469
  if (t.length === 0)
14467
14470
  return Promise.resolve([]);
14468
14471
  for (let s = 0; s < e; s++) {
14469
- const r = s * Ho, l = { images: t.slice(r, r + Ho) }, o = await i().put(Ps, JSON.stringify(l));
14472
+ const r = s * Wo, l = { images: t.slice(r, r + Wo) }, o = await i().put(Ps, JSON.stringify(l));
14470
14473
  a.push(o);
14471
14474
  }
14472
14475
  return a;
@@ -14488,7 +14491,7 @@ const eY = {
14488
14491
  showSource: { type: Boolean, default: !1 }
14489
14492
  },
14490
14493
  setup(i) {
14491
- const t = i, { showErrorsDefault: e } = nt(), a = Qn(t.configName), { imageClient: s } = a, { widgetImageToDamImageUrl: r } = bf(a), n = E(null), { image: l, modelValue: o } = Ds(t), d = E(""), { t: c } = ne();
14494
+ const t = i, { showErrorsDefault: e } = nt(), a = eo(t.configName), { imageClient: s } = a, { widgetImageToDamImageUrl: r } = bf(a), n = E(null), { image: l, modelValue: o } = Ds(t), d = E(""), { t: c } = ne();
14492
14495
  return xe(
14493
14496
  [l, o],
14494
14497
  async ([u, m]) => {
@@ -14924,7 +14927,7 @@ const YY = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
14924
14927
  height: 4320,
14925
14928
  svgSrc: yY
14926
14929
  }
14927
- ], kY = CY, _Y = wY, IY = xY, Vu = 600, DY = ["src", "title"], Wo = /* @__PURE__ */ Z({
14930
+ ], kY = CY, _Y = wY, IY = xY, Vu = 600, DY = ["src", "title"], Go = /* @__PURE__ */ Z({
14928
14931
  __name: "AssetImageMetaIcons",
14929
14932
  props: {
14930
14933
  assetType: {},
@@ -15142,7 +15145,7 @@ const YY = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
15142
15145
  }, null, 8, ["size"]),
15143
15146
  z("div", RY, k(h(s)("common.damImage.upload.done")), 1)
15144
15147
  ])) : j("", !0),
15145
- V.showMetaIcons && V.assetFileProperties ? (q(), B(Wo, {
15148
+ V.showMetaIcons && V.assetFileProperties ? (q(), B(Go, {
15146
15149
  key: 2,
15147
15150
  "asset-file-properties": V.assetFileProperties,
15148
15151
  "asset-type": V.assetType
@@ -15172,7 +15175,7 @@ const YY = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
15172
15175
  }, null, 8, ["size", "icon", "color"])) : j("", !0)
15173
15176
  ], 4)
15174
15177
  ])) : j("", !0),
15175
- V.showMetaIcons && V.assetFileProperties ? (q(), B(Wo, {
15178
+ V.showMetaIcons && V.assetFileProperties ? (q(), B(Go, {
15176
15179
  key: 1,
15177
15180
  "asset-file-properties": V.assetFileProperties,
15178
15181
  "asset-type": V.assetType
@@ -15204,7 +15207,7 @@ const YY = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
15204
15207
  }, null, 8, ["size"]),
15205
15208
  z("div", HY, k(h(s)("common.damImage.upload.done")), 1)
15206
15209
  ])) : j("", !0),
15207
- V.showMetaIcons && V.assetFileProperties ? (q(), B(Wo, {
15210
+ V.showMetaIcons && V.assetFileProperties ? (q(), B(Go, {
15208
15211
  key: 2,
15209
15212
  "asset-file-properties": V.assetFileProperties,
15210
15213
  "asset-type": V.assetType
@@ -15328,13 +15331,13 @@ const od = /* @__PURE__ */ Z({
15328
15331
  ])) : j("", !0)
15329
15332
  ], 64));
15330
15333
  }
15331
- }), Jr = "teleport-target-", Go = E(/* @__PURE__ */ new Set());
15334
+ }), Jr = "teleport-target-", Jo = E(/* @__PURE__ */ new Set());
15332
15335
  function Hf(i) {
15333
15336
  const t = () => {
15334
- Go.value.add(Jr + i);
15337
+ Jo.value.add(Jr + i);
15335
15338
  }, e = () => {
15336
- Go.value.delete(Jr + i);
15337
- }, a = D(() => Go.value.has(Jr + i));
15339
+ Jo.value.delete(Jr + i);
15340
+ }, a = D(() => Jo.value.has(Jr + i));
15338
15341
  return {
15339
15342
  divClassName: D(() => Jr + i),
15340
15343
  canTeleport: a,
@@ -15701,7 +15704,7 @@ function fX() {
15701
15704
  modifiedAt: hi(),
15702
15705
  createdBy: 0,
15703
15706
  modifiedBy: 0,
15704
- _resourceName: ao,
15707
+ _resourceName: so,
15705
15708
  _system: Xt
15706
15709
  })
15707
15710
  };
@@ -15811,7 +15814,7 @@ const mX = /* @__PURE__ */ Z({
15811
15814
  default: p(() => [
15812
15815
  f(Pt, null, {
15813
15816
  default: p(() => [
15814
- f(ol, {
15817
+ f(ll, {
15815
15818
  modelValue: o.value.name,
15816
15819
  "onUpdate:modelValue": x[0] || (x[0] = (U) => o.value.name = U),
15817
15820
  label: h(V)("common.damImage.author.model.name"),
@@ -15825,7 +15828,7 @@ const mX = /* @__PURE__ */ Z({
15825
15828
  }),
15826
15829
  f(Pt, null, {
15827
15830
  default: p(() => [
15828
- f(ol, {
15831
+ f(ll, {
15829
15832
  modelValue: o.value.identifier,
15830
15833
  "onUpdate:modelValue": x[1] || (x[1] = (U) => o.value.identifier = U),
15831
15834
  label: h(V)("common.damImage.author.model.identifier"),
@@ -15892,7 +15895,7 @@ const mX = /* @__PURE__ */ Z({
15892
15895
  }), pX = { class: "d-flex" }, hX = {
15893
15896
  key: 0,
15894
15897
  class: "d-flex flex-column"
15895
- }, VX = { class: "text-caption" }, ro = /* @__PURE__ */ Z({
15898
+ }, VX = { class: "text-caption" }, no = /* @__PURE__ */ Z({
15896
15899
  __name: "AuthorRemoteAutocompleteWithCached",
15897
15900
  props: {
15898
15901
  modelValue: {},
@@ -16073,7 +16076,7 @@ const FX = { key: 1 }, qu = /* @__PURE__ */ Z({
16073
16076
  containerClass: { default: "d-inline-flex" }
16074
16077
  },
16075
16078
  setup(i) {
16076
- const t = i, { getCachedKeyword: e } = io(), a = xi(), s = Ut(void 0), r = Ut(!1), n = D(() => e(t.id)), l = D(() => {
16079
+ const t = i, { getCachedKeyword: e } = ao(), a = xi(), s = Ut(void 0), r = Ut(!1), n = D(() => e(t.id)), l = D(() => {
16077
16080
  if (!t.queueId)
16078
16081
  return;
16079
16082
  const d = a.getQueue(t.queueId);
@@ -16258,7 +16261,7 @@ const AX = /* @__PURE__ */ Z({
16258
16261
  default: p(() => [
16259
16262
  f(Pt, null, {
16260
16263
  default: p(() => [
16261
- f(ol, {
16264
+ f(ll, {
16262
16265
  modelValue: o.value.name,
16263
16266
  "onUpdate:modelValue": X[0] || (X[0] = (M) => o.value.name = M),
16264
16267
  label: h(V)("common.damImage.keyword.model.name"),
@@ -16310,7 +16313,7 @@ const AX = /* @__PURE__ */ Z({
16310
16313
  ], 64);
16311
16314
  };
16312
16315
  }
16313
- }), bX = { class: "d-flex" }, no = /* @__PURE__ */ Z({
16316
+ }), bX = { class: "d-flex" }, oo = /* @__PURE__ */ Z({
16314
16317
  __name: "KeywordRemoteAutocompleteWithCached",
16315
16318
  props: {
16316
16319
  modelValue: {},
@@ -16339,7 +16342,7 @@ const AX = /* @__PURE__ */ Z({
16339
16342
  }
16340
16343
  }, o = Mi(l, { modelValueComputed: s }, { $scope: e.validationScope }), { fetchItemsMinimal: d } = gX(e.extSystem), c = vX(), u = E(""), m = (F) => {
16341
16344
  F.length > 0 && (u.value = F);
16342
- }, { addManualToCachedKeywords: v } = io(), V = (F) => {
16345
+ }, { addManualToCachedKeywords: v } = ao(), V = (F) => {
16343
16346
  if (v(F), _t(s.value)) {
16344
16347
  s.value = [...s.value, F.id];
16345
16348
  return;
@@ -16485,7 +16488,7 @@ const AX = /* @__PURE__ */ Z({
16485
16488
  system: "dam"
16486
16489
  }, {
16487
16490
  default: p(() => [
16488
- f(no, {
16491
+ f(oo, {
16489
16492
  modelValue: h(r).keywords,
16490
16493
  "onUpdate:modelValue": [
16491
16494
  w[0] || (w[0] = (Y) => h(r).keywords = Y),
@@ -16521,7 +16524,7 @@ const AX = /* @__PURE__ */ Z({
16521
16524
  system: "dam"
16522
16525
  }, {
16523
16526
  default: p(() => [
16524
- f(ro, {
16527
+ f(no, {
16525
16528
  modelValue: h(r).authors,
16526
16529
  "onUpdate:modelValue": [
16527
16530
  w[1] || (w[1] = (Y) => h(r).authors = Y),
@@ -16679,7 +16682,7 @@ const AX = /* @__PURE__ */ Z({
16679
16682
  }),
16680
16683
  f(pe, { cols: "9" }, {
16681
16684
  default: p(() => [
16682
- P(k(h(Gn)(c.value.fileAttributes.size)), 1)
16685
+ P(k(h(Jn)(c.value.fileAttributes.size)), 1)
16683
16686
  ]),
16684
16687
  _: 1
16685
16688
  })
@@ -17074,13 +17077,13 @@ function tm(i) {
17074
17077
  }
17075
17078
  return i;
17076
17079
  }
17077
- function ql(i) {
17080
+ function Yl(i) {
17078
17081
  "@babel/helpers - typeof";
17079
- return ql = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
17082
+ return Yl = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
17080
17083
  return typeof t;
17081
17084
  } : function(t) {
17082
17085
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
17083
- }, ql(i);
17086
+ }, Yl(i);
17084
17087
  }
17085
17088
  function QX(i, t) {
17086
17089
  if (!(i instanceof t))
@@ -17110,7 +17113,7 @@ function im(i) {
17110
17113
  }
17111
17114
  function iy(i) {
17112
17115
  if (Array.isArray(i))
17113
- return Yl(i);
17116
+ return Xl(i);
17114
17117
  }
17115
17118
  function ay(i) {
17116
17119
  if (typeof Symbol < "u" && i[Symbol.iterator] != null || i["@@iterator"] != null)
@@ -17119,15 +17122,15 @@ function ay(i) {
17119
17122
  function sy(i, t) {
17120
17123
  if (i) {
17121
17124
  if (typeof i == "string")
17122
- return Yl(i, t);
17125
+ return Xl(i, t);
17123
17126
  var e = Object.prototype.toString.call(i).slice(8, -1);
17124
17127
  if (e === "Object" && i.constructor && (e = i.constructor.name), e === "Map" || e === "Set")
17125
17128
  return Array.from(i);
17126
17129
  if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
17127
- return Yl(i, t);
17130
+ return Xl(i, t);
17128
17131
  }
17129
17132
  }
17130
- function Yl(i, t) {
17133
+ function Xl(i, t) {
17131
17134
  (t == null || t > i.length) && (t = i.length);
17132
17135
  for (var e = 0, a = new Array(t); e < t; e++)
17133
17136
  a[e] = i[e];
@@ -17153,7 +17156,7 @@ function am(i) {
17153
17156
  var t = ny(i, "string");
17154
17157
  return typeof t == "symbol" ? t : String(t);
17155
17158
  }
17156
- var oo = typeof window < "u" && typeof window.document < "u", Zi = oo ? window : {}, md = oo && Zi.document.documentElement ? "ontouchstart" in Zi.document.documentElement : !1, pd = oo ? "PointerEvent" in Zi : !1, lt = "cropper", hd = "all", sm = "crop", rm = "move", nm = "zoom", Na = "e", La = "w", us = "s", Xa = "n", Hs = "ne", Ws = "nw", Gs = "se", Js = "sw", Xl = "".concat(lt, "-crop"), yu = "".concat(lt, "-disabled"), Zt = "".concat(lt, "-hidden"), Au = "".concat(lt, "-hide"), oy = "".concat(lt, "-invisible"), Tn = "".concat(lt, "-modal"), yl = "".concat(lt, "-move"), qr = "".concat(lt, "Action"), Qr = "".concat(lt, "Preview"), Vd = "crop", om = "move", lm = "none", Al = "crop", bl = "cropend", Cl = "cropmove", xl = "cropstart", bu = "dblclick", ly = md ? "touchstart" : "mousedown", dy = md ? "touchmove" : "mousemove", uy = md ? "touchend touchcancel" : "mouseup", Cu = pd ? "pointerdown" : ly, xu = pd ? "pointermove" : dy, wu = pd ? "pointerup pointercancel" : uy, ku = "ready", _u = "resize", Iu = "wheel", wl = "zoom", Du = "image/jpeg", cy = /^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/, fy = /^data:/, my = /^data:image\/jpeg;base64,/, py = /^img|canvas$/i, dm = 200, um = 100, Su = {
17159
+ var lo = typeof window < "u" && typeof window.document < "u", Zi = lo ? window : {}, md = lo && Zi.document.documentElement ? "ontouchstart" in Zi.document.documentElement : !1, pd = lo ? "PointerEvent" in Zi : !1, lt = "cropper", hd = "all", sm = "crop", rm = "move", nm = "zoom", Na = "e", La = "w", us = "s", Xa = "n", Hs = "ne", Ws = "nw", Gs = "se", Js = "sw", yl = "".concat(lt, "-crop"), yu = "".concat(lt, "-disabled"), Zt = "".concat(lt, "-hidden"), Au = "".concat(lt, "-hide"), oy = "".concat(lt, "-invisible"), Tn = "".concat(lt, "-modal"), Al = "".concat(lt, "-move"), qr = "".concat(lt, "Action"), Qr = "".concat(lt, "Preview"), Vd = "crop", om = "move", lm = "none", bl = "crop", Cl = "cropend", xl = "cropmove", wl = "cropstart", bu = "dblclick", ly = md ? "touchstart" : "mousedown", dy = md ? "touchmove" : "mousemove", uy = md ? "touchend touchcancel" : "mouseup", Cu = pd ? "pointerdown" : ly, xu = pd ? "pointermove" : dy, wu = pd ? "pointerup pointercancel" : uy, ku = "ready", _u = "resize", Iu = "wheel", kl = "zoom", Du = "image/jpeg", cy = /^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/, fy = /^data:/, my = /^data:image\/jpeg;base64,/, py = /^img|canvas$/i, dm = 200, um = 100, Su = {
17157
17160
  // Define the view mode of the cropper
17158
17161
  viewMode: 0,
17159
17162
  // 0, 1, 2, 3
@@ -17231,11 +17234,11 @@ function ze(i) {
17231
17234
  var Tu = function(t) {
17232
17235
  return t > 0 && t < 1 / 0;
17233
17236
  };
17234
- function Jo(i) {
17237
+ function Zo(i) {
17235
17238
  return typeof i > "u";
17236
17239
  }
17237
17240
  function es(i) {
17238
- return ql(i) === "object" && i !== null;
17241
+ return Yl(i) === "object" && i !== null;
17239
17242
  }
17240
17243
  var gy = Object.prototype.hasOwnProperty;
17241
17244
  function Fs(i) {
@@ -17331,7 +17334,7 @@ var Xy = /([a-z\d])([A-Z])/g;
17331
17334
  function gd(i) {
17332
17335
  return i.replace(Xy, "$1-$2").toLowerCase();
17333
17336
  }
17334
- function kl(i, t) {
17337
+ function _l(i, t) {
17335
17338
  return es(i[t]) ? i[t] : i.dataset ? i.dataset[t] : i.getAttribute("data-".concat(gd(t)));
17336
17339
  }
17337
17340
  function Yr(i, t, e) {
@@ -17355,7 +17358,7 @@ function yy(i, t) {
17355
17358
  }
17356
17359
  var fm = /\s\s*/, mm = function() {
17357
17360
  var i = !1;
17358
- if (oo) {
17361
+ if (lo) {
17359
17362
  var t = !1, e = function() {
17360
17363
  }, a = Object.defineProperty({}, "once", {
17361
17364
  get: function() {
@@ -17414,10 +17417,10 @@ function pm(i) {
17414
17417
  top: t.top + (window.pageYOffset - document.documentElement.clientTop)
17415
17418
  };
17416
17419
  }
17417
- var Zo = Zi.location, Ay = /^(\w+:)\/\/([^:/?#]*):?(\d*)/i;
17420
+ var Qo = Zi.location, Ay = /^(\w+:)\/\/([^:/?#]*):?(\d*)/i;
17418
17421
  function Ku(i) {
17419
17422
  var t = i.match(Ay);
17420
- return t !== null && (t[1] !== Zo.protocol || t[2] !== Zo.hostname || t[3] !== Zo.port);
17423
+ return t !== null && (t[1] !== Qo.protocol || t[2] !== Qo.hostname || t[3] !== Qo.port);
17421
17424
  }
17422
17425
  function Eu(i) {
17423
17426
  var t = "timestamp=".concat((/* @__PURE__ */ new Date()).getTime());
@@ -17491,7 +17494,7 @@ function xy(i) {
17491
17494
  };
17492
17495
  }
17493
17496
  function wy(i, t, e, a) {
17494
- var s = t.aspectRatio, r = t.naturalWidth, n = t.naturalHeight, l = t.rotate, o = l === void 0 ? 0 : l, d = t.scaleX, c = d === void 0 ? 1 : d, u = t.scaleY, m = u === void 0 ? 1 : u, v = e.aspectRatio, V = e.naturalWidth, g = e.naturalHeight, F = a.fillColor, w = F === void 0 ? "transparent" : F, Y = a.imageSmoothingEnabled, y = Y === void 0 ? !0 : Y, X = a.imageSmoothingQuality, x = X === void 0 ? "low" : X, C = a.maxWidth, M = C === void 0 ? 1 / 0 : C, U = a.maxHeight, L = U === void 0 ? 1 / 0 : U, te = a.minWidth, S = te === void 0 ? 0 : te, H = a.minHeight, O = H === void 0 ? 0 : H, I = document.createElement("canvas"), A = I.getContext("2d"), b = _a({
17497
+ var s = t.aspectRatio, r = t.naturalWidth, n = t.naturalHeight, l = t.rotate, o = l === void 0 ? 0 : l, d = t.scaleX, c = d === void 0 ? 1 : d, u = t.scaleY, m = u === void 0 ? 1 : u, v = e.aspectRatio, V = e.naturalWidth, g = e.naturalHeight, F = a.fillColor, w = F === void 0 ? "transparent" : F, Y = a.imageSmoothingEnabled, y = Y === void 0 ? !0 : Y, X = a.imageSmoothingQuality, x = X === void 0 ? "low" : X, C = a.maxWidth, M = C === void 0 ? 1 / 0 : C, U = a.maxHeight, L = U === void 0 ? 1 / 0 : U, ie = a.minWidth, S = ie === void 0 ? 0 : ie, H = a.minHeight, O = H === void 0 ? 0 : H, I = document.createElement("canvas"), A = I.getContext("2d"), b = _a({
17495
17498
  aspectRatio: v,
17496
17499
  width: M,
17497
17500
  height: L
@@ -17503,11 +17506,11 @@ function wy(i, t, e, a) {
17503
17506
  aspectRatio: s,
17504
17507
  width: M,
17505
17508
  height: L
17506
- }), ie = _a({
17509
+ }), ee = _a({
17507
17510
  aspectRatio: s,
17508
17511
  width: S,
17509
17512
  height: O
17510
- }, "cover"), re = Math.min(G.width, Math.max(ie.width, r)), ee = Math.min(G.height, Math.max(ie.height, n)), se = [-re / 2, -ee / 2, re, ee];
17513
+ }, "cover"), re = Math.min(G.width, Math.max(ee.width, r)), te = Math.min(G.height, Math.max(ee.height, n)), se = [-re / 2, -te / 2, re, te];
17511
17514
  return I.width = Cs($), I.height = Cs(W), A.fillStyle = w, A.fillRect(0, 0, $, W), A.save(), A.translate($ / 2, W / 2), A.rotate(o * Math.PI / 180), A.scale(c, m), A.imageSmoothingEnabled = y, A.imageSmoothingQuality = x, A.drawImage.apply(A, [i].concat(im(se.map(function(ye) {
17512
17515
  return Math.floor(Cs(ye));
17513
17516
  })))), A.restore(), I;
@@ -17705,7 +17708,7 @@ var Ky = {
17705
17708
  }))), this.cropped && this.limited && this.limitCanvas(!0, !0), this.disabled || this.output();
17706
17709
  },
17707
17710
  output: function() {
17708
- this.preview(), xs(this.element, Al, this.getData());
17711
+ this.preview(), xs(this.element, bl, this.getData());
17709
17712
  }
17710
17713
  }, Ey = {
17711
17714
  initPreview: function() {
@@ -17724,7 +17727,7 @@ var Ky = {
17724
17727
  },
17725
17728
  resetPreview: function() {
17726
17729
  bt(this.previews, function(t) {
17727
- var e = kl(t, Qr);
17730
+ var e = _l(t, Qr);
17728
17731
  ka(t, {
17729
17732
  width: e.width,
17730
17733
  height: e.height
@@ -17740,7 +17743,7 @@ var Ky = {
17740
17743
  translateX: -o,
17741
17744
  translateY: -d
17742
17745
  }, t)))), bt(this.previews, function(c) {
17743
- var u = kl(c, Qr), m = u.width, v = u.height, V = m, g = v, F = 1;
17746
+ var u = _l(c, Qr), m = u.width, v = u.height, V = m, g = v, F = 1;
17744
17747
  s && (F = m / s, g = r * F), r && g > v && (F = v / r, V = s * F, g = v), ka(c, {
17745
17748
  width: V,
17746
17749
  height: g
@@ -17756,14 +17759,14 @@ var Ky = {
17756
17759
  }, My = {
17757
17760
  bind: function() {
17758
17761
  var t = this.element, e = this.options, a = this.cropper;
17759
- Gt(e.cropstart) && Fi(t, xl, e.cropstart), Gt(e.cropmove) && Fi(t, Cl, e.cropmove), Gt(e.cropend) && Fi(t, bl, e.cropend), Gt(e.crop) && Fi(t, Al, e.crop), Gt(e.zoom) && Fi(t, wl, e.zoom), Fi(a, Cu, this.onCropStart = this.cropStart.bind(this)), e.zoomable && e.zoomOnWheel && Fi(a, Iu, this.onWheel = this.wheel.bind(this), {
17762
+ Gt(e.cropstart) && Fi(t, wl, e.cropstart), Gt(e.cropmove) && Fi(t, xl, e.cropmove), Gt(e.cropend) && Fi(t, Cl, e.cropend), Gt(e.crop) && Fi(t, bl, e.crop), Gt(e.zoom) && Fi(t, kl, e.zoom), Fi(a, Cu, this.onCropStart = this.cropStart.bind(this)), e.zoomable && e.zoomOnWheel && Fi(a, Iu, this.onWheel = this.wheel.bind(this), {
17760
17763
  passive: !1,
17761
17764
  capture: !0
17762
17765
  }), e.toggleDragModeOnDblclick && Fi(a, bu, this.onDblclick = this.dblclick.bind(this)), Fi(t.ownerDocument, xu, this.onCropMove = this.cropMove.bind(this)), Fi(t.ownerDocument, wu, this.onCropEnd = this.cropEnd.bind(this)), e.responsive && Fi(window, _u, this.onResize = this.resize.bind(this));
17763
17766
  },
17764
17767
  unbind: function() {
17765
17768
  var t = this.element, e = this.options, a = this.cropper;
17766
- Gt(e.cropstart) && Ii(t, xl, e.cropstart), Gt(e.cropmove) && Ii(t, Cl, e.cropmove), Gt(e.cropend) && Ii(t, bl, e.cropend), Gt(e.crop) && Ii(t, Al, e.crop), Gt(e.zoom) && Ii(t, wl, e.zoom), Ii(a, Cu, this.onCropStart), e.zoomable && e.zoomOnWheel && Ii(a, Iu, this.onWheel, {
17769
+ Gt(e.cropstart) && Ii(t, wl, e.cropstart), Gt(e.cropmove) && Ii(t, xl, e.cropmove), Gt(e.cropend) && Ii(t, Cl, e.cropend), Gt(e.crop) && Ii(t, bl, e.crop), Gt(e.zoom) && Ii(t, kl, e.zoom), Ii(a, Cu, this.onCropStart), e.zoomable && e.zoomOnWheel && Ii(a, Iu, this.onWheel, {
17767
17770
  passive: !1,
17768
17771
  capture: !0
17769
17772
  }), e.toggleDragModeOnDblclick && Ii(a, bu, this.onDblclick), Ii(t.ownerDocument, xu, this.onCropMove), Ii(t.ownerDocument, wu, this.onCropEnd), e.responsive && Ii(window, _u, this.onResize);
@@ -17783,7 +17786,7 @@ var Ky = {
17783
17786
  }
17784
17787
  },
17785
17788
  dblclick: function() {
17786
- this.disabled || this.options.dragMode === lm || this.setDragMode(Yy(this.dragBox, Xl) ? om : Vd);
17789
+ this.disabled || this.options.dragMode === lm || this.setDragMode(Yy(this.dragBox, yl) ? om : Vd);
17787
17790
  },
17788
17791
  wheel: function(t) {
17789
17792
  var e = this, a = Number(this.options.wheelZoomRatio) || 0.1, s = 1;
@@ -17798,7 +17801,7 @@ var Ky = {
17798
17801
  var s = this.options, r = this.pointers, n;
17799
17802
  t.changedTouches ? bt(t.changedTouches, function(l) {
17800
17803
  r[l.identifier] = en(l);
17801
- }) : r[t.pointerId || 0] = en(t), Object.keys(r).length > 1 && s.zoomable && s.zoomOnTouch ? n = nm : n = kl(t.target, qr), cy.test(n) && xs(this.element, xl, {
17804
+ }) : r[t.pointerId || 0] = en(t), Object.keys(r).length > 1 && s.zoomable && s.zoomOnTouch ? n = nm : n = _l(t.target, qr), cy.test(n) && xs(this.element, wl, {
17802
17805
  originalEvent: t,
17803
17806
  action: n
17804
17807
  }) !== !1 && (t.preventDefault(), this.action = n, this.cropping = !1, n === sm && (this.cropping = !0, Dt(this.dragBox, Tn)));
@@ -17808,7 +17811,7 @@ var Ky = {
17808
17811
  var e = this.action;
17809
17812
  if (!(this.disabled || !e)) {
17810
17813
  var a = this.pointers;
17811
- t.preventDefault(), xs(this.element, Cl, {
17814
+ t.preventDefault(), xs(this.element, xl, {
17812
17815
  originalEvent: t,
17813
17816
  action: e
17814
17817
  }) !== !1 && (t.changedTouches ? bt(t.changedTouches, function(s) {
@@ -17821,7 +17824,7 @@ var Ky = {
17821
17824
  var e = this.action, a = this.pointers;
17822
17825
  t.changedTouches ? bt(t.changedTouches, function(s) {
17823
17826
  delete a[s.identifier];
17824
- }) : delete a[t.pointerId || 0], e && (t.preventDefault(), Object.keys(a).length || (this.action = ""), this.cropping && (this.cropping = !1, qs(this.dragBox, Tn, this.cropped && this.options.modal)), xs(this.element, bl, {
17827
+ }) : delete a[t.pointerId || 0], e && (t.preventDefault(), Object.keys(a).length || (this.action = ""), this.cropping && (this.cropping = !1, qs(this.dragBox, Tn, this.cropped && this.options.modal)), xs(this.element, Cl, {
17825
17828
  originalEvent: t,
17826
17829
  action: e
17827
17830
  }));
@@ -17998,7 +18001,7 @@ var Ky = {
17998
18001
  */
17999
18002
  move: function(t) {
18000
18003
  var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : t, a = this.canvasData, s = a.left, r = a.top;
18001
- return this.moveTo(Jo(t) ? t : s + Number(t), Jo(e) ? e : r + Number(e));
18004
+ return this.moveTo(Zo(t) ? t : s + Number(t), Zo(e) ? e : r + Number(e));
18002
18005
  },
18003
18006
  /**
18004
18007
  * Move the canvas to an absolute point
@@ -18031,7 +18034,7 @@ var Ky = {
18031
18034
  var s = this.options, r = this.canvasData, n = r.width, l = r.height, o = r.naturalWidth, d = r.naturalHeight;
18032
18035
  if (t = Number(t), t >= 0 && this.ready && !this.disabled && s.zoomable) {
18033
18036
  var c = o * t, u = d * t;
18034
- if (xs(this.element, wl, {
18037
+ if (xs(this.element, kl, {
18035
18038
  ratio: t,
18036
18039
  oldRatio: n / o,
18037
18040
  originalEvent: a
@@ -18225,9 +18228,9 @@ var Ky = {
18225
18228
  F.width = Cs(V), F.height = Cs(g), w.fillStyle = t.fillColor || "transparent", w.fillRect(0, 0, V, g);
18226
18229
  var Y = t.imageSmoothingEnabled, y = Y === void 0 ? !0 : Y, X = t.imageSmoothingQuality;
18227
18230
  w.imageSmoothingEnabled = y, X && (w.imageSmoothingQuality = X);
18228
- var x = a.width, C = a.height, M = r, U = n, L, te, S, H, O, I;
18229
- M <= -l || M > x ? (M = 0, L = 0, S = 0, O = 0) : M <= 0 ? (S = -M, M = 0, L = Math.min(x, l + M), O = L) : M <= x && (S = 0, L = Math.min(l, x - M), O = L), L <= 0 || U <= -o || U > C ? (U = 0, te = 0, H = 0, I = 0) : U <= 0 ? (H = -U, U = 0, te = Math.min(C, o + U), I = te) : U <= C && (H = 0, te = Math.min(o, C - U), I = te);
18230
- var A = [M, U, L, te];
18231
+ var x = a.width, C = a.height, M = r, U = n, L, ie, S, H, O, I;
18232
+ M <= -l || M > x ? (M = 0, L = 0, S = 0, O = 0) : M <= 0 ? (S = -M, M = 0, L = Math.min(x, l + M), O = L) : M <= x && (S = 0, L = Math.min(l, x - M), O = L), L <= 0 || U <= -o || U > C ? (U = 0, ie = 0, H = 0, I = 0) : U <= 0 ? (H = -U, U = 0, ie = Math.min(C, o + U), I = ie) : U <= C && (H = 0, ie = Math.min(o, C - U), I = ie);
18233
+ var A = [M, U, L, ie];
18231
18234
  if (O > 0 && I > 0) {
18232
18235
  var b = V / l;
18233
18236
  A.push(S * b, H * b, O * b, I * b);
@@ -18243,7 +18246,7 @@ var Ky = {
18243
18246
  */
18244
18247
  setAspectRatio: function(t) {
18245
18248
  var e = this.options;
18246
- return !this.disabled && !Jo(t) && (e.aspectRatio = Math.max(0, t) || NaN, this.ready && (this.initCropBox(), this.cropped && this.renderCropBox())), this;
18249
+ return !this.disabled && !Zo(t) && (e.aspectRatio = Math.max(0, t) || NaN, this.ready && (this.initCropBox(), this.cropped && this.renderCropBox())), this;
18247
18250
  },
18248
18251
  /**
18249
18252
  * Change the drag mode.
@@ -18254,7 +18257,7 @@ var Ky = {
18254
18257
  var e = this.options, a = this.dragBox, s = this.face;
18255
18258
  if (this.ready && !this.disabled) {
18256
18259
  var r = t === Vd, n = e.movable && t === om;
18257
- t = r || n ? t : lm, e.dragMode = t, Yr(a, qr, t), qs(a, Xl, r), qs(a, yl, n), e.cropBoxMovable || (Yr(s, qr, t), qs(s, Xl, r), qs(s, yl, n));
18260
+ t = r || n ? t : lm, e.dragMode = t, Yr(a, qr, t), qs(a, yl, r), qs(a, Al, n), e.cropBoxMovable || (Yr(s, qr, t), qs(s, yl, r), qs(s, Al, n));
18258
18261
  }
18259
18262
  return this;
18260
18263
  }
@@ -18357,7 +18360,7 @@ var Ky = {
18357
18360
  var e = this.element, a = this.options, s = this.image, r = e.parentNode, n = document.createElement("div");
18358
18361
  n.innerHTML = hy;
18359
18362
  var l = n.querySelector(".".concat(lt, "-container")), o = l.querySelector(".".concat(lt, "-canvas")), d = l.querySelector(".".concat(lt, "-drag-box")), c = l.querySelector(".".concat(lt, "-crop-box")), u = c.querySelector(".".concat(lt, "-face"));
18360
- this.container = r, this.cropper = l, this.canvas = o, this.dragBox = d, this.cropBox = c, this.viewBox = l.querySelector(".".concat(lt, "-view-box")), this.face = u, o.appendChild(s), Dt(e, Zt), r.insertBefore(l, e.nextSibling), Hi(s, Au), this.initPreview(), this.bind(), a.initialAspectRatio = Math.max(0, a.initialAspectRatio) || NaN, a.aspectRatio = Math.max(0, a.aspectRatio) || NaN, a.viewMode = Math.max(0, Math.min(3, Math.round(a.viewMode))) || 0, Dt(c, Zt), a.guides || Dt(c.getElementsByClassName("".concat(lt, "-dashed")), Zt), a.center || Dt(c.getElementsByClassName("".concat(lt, "-center")), Zt), a.background && Dt(l, "".concat(lt, "-bg")), a.highlight || Dt(u, oy), a.cropBoxMovable && (Dt(u, yl), Yr(u, qr, hd)), a.cropBoxResizable || (Dt(c.getElementsByClassName("".concat(lt, "-line")), Zt), Dt(c.getElementsByClassName("".concat(lt, "-point")), Zt)), this.render(), this.ready = !0, this.setDragMode(a.dragMode), a.autoCrop && this.crop(), this.setData(a.data), Gt(a.ready) && Fi(e, ku, a.ready, {
18363
+ this.container = r, this.cropper = l, this.canvas = o, this.dragBox = d, this.cropBox = c, this.viewBox = l.querySelector(".".concat(lt, "-view-box")), this.face = u, o.appendChild(s), Dt(e, Zt), r.insertBefore(l, e.nextSibling), Hi(s, Au), this.initPreview(), this.bind(), a.initialAspectRatio = Math.max(0, a.initialAspectRatio) || NaN, a.aspectRatio = Math.max(0, a.aspectRatio) || NaN, a.viewMode = Math.max(0, Math.min(3, Math.round(a.viewMode))) || 0, Dt(c, Zt), a.guides || Dt(c.getElementsByClassName("".concat(lt, "-dashed")), Zt), a.center || Dt(c.getElementsByClassName("".concat(lt, "-center")), Zt), a.background && Dt(l, "".concat(lt, "-bg")), a.highlight || Dt(u, oy), a.cropBoxMovable && (Dt(u, Al), Yr(u, qr, hd)), a.cropBoxResizable || (Dt(c.getElementsByClassName("".concat(lt, "-line")), Zt), Dt(c.getElementsByClassName("".concat(lt, "-point")), Zt)), this.render(), this.ready = !0, this.setDragMode(a.dragMode), a.autoCrop && this.crop(), this.setData(a.data), Gt(a.ready) && Fi(e, ku, a.ready, {
18361
18364
  once: !0
18362
18365
  }), xs(e, ku);
18363
18366
  }
@@ -18483,7 +18486,7 @@ const Ry = { class: "d-flex flex-column" }, Ny = {
18483
18486
  r.value = !1;
18484
18487
  }, 1e3));
18485
18488
  });
18486
- }), El(() => {
18489
+ }), Kn(() => {
18487
18490
  o();
18488
18491
  }), (m, v) => (q(), R("div", Ry, [
18489
18492
  r.value ? (q(), R("div", Ny, [
@@ -18546,7 +18549,7 @@ const Ry = { class: "d-flex flex-column" }, Ny = {
18546
18549
  }, v = () => {
18547
18550
  u();
18548
18551
  }, V = D(() => !!(s.imageFile && l.value.length > 0 && !s.loader));
18549
- return El(() => {
18552
+ return Kn(() => {
18550
18553
  n.value && (n.value.destroy(), n.value = null);
18551
18554
  }), (g, F) => V.value ? (q(), B(zy, {
18552
18555
  key: h(s).timestampCropper,
@@ -18721,14 +18724,14 @@ const Ry = { class: "d-flex flex-column" }, Ny = {
18721
18724
  _: 1
18722
18725
  }));
18723
18726
  }
18724
- }), eA = E(null), Qo = E(!1);
18725
- function lo() {
18727
+ }), eA = E(null), el = E(!1);
18728
+ function uo() {
18726
18729
  return {
18727
18730
  toggleUploadQueueSidebar: () => {
18728
- Qo.value = !Qo.value;
18731
+ el.value = !el.value;
18729
18732
  },
18730
18733
  uploadQueueDialog: eA,
18731
- uploadQueueSidebar: Qo
18734
+ uploadQueueSidebar: el
18732
18735
  };
18733
18736
  }
18734
18737
  const tA = { key: 0 }, iA = /* @__PURE__ */ Z({
@@ -18757,7 +18760,7 @@ const tA = { key: 0 }, iA = /* @__PURE__ */ Z({
18757
18760
  default: p(() => [
18758
18761
  f(ks, null, {
18759
18762
  default: p(() => [
18760
- f(On, {
18763
+ f($n, {
18761
18764
  disabled: !c.value.canEditMetadata
18762
18765
  }, {
18763
18766
  default: p(() => [
@@ -18783,7 +18786,7 @@ const tA = { key: 0 }, iA = /* @__PURE__ */ Z({
18783
18786
  system: "dam"
18784
18787
  }, {
18785
18788
  default: p(() => [
18786
- f(no, {
18789
+ f(oo, {
18787
18790
  modelValue: c.value.keywords,
18788
18791
  "onUpdate:modelValue": [
18789
18792
  X[0] || (X[0] = (x) => c.value.keywords = x),
@@ -18820,7 +18823,7 @@ const tA = { key: 0 }, iA = /* @__PURE__ */ Z({
18820
18823
  system: "dam"
18821
18824
  }, {
18822
18825
  default: p(() => [
18823
- f(ro, {
18826
+ f(no, {
18824
18827
  modelValue: c.value.authors,
18825
18828
  "onUpdate:modelValue": [
18826
18829
  X[1] || (X[1] = (x) => c.value.authors = x),
@@ -18983,7 +18986,7 @@ const tA = { key: 0 }, iA = /* @__PURE__ */ Z({
18983
18986
  }),
18984
18987
  f(pe, { cols: "9" }, {
18985
18988
  default: p(() => [
18986
- P(k(h(Gn)(v.value.fileAttributes.size)), 1)
18989
+ P(k(h(Jn)(v.value.fileAttributes.size)), 1)
18987
18990
  ]),
18988
18991
  _: 1
18989
18992
  })
@@ -19280,7 +19283,7 @@ const tA = { key: 0 }, iA = /* @__PURE__ */ Z({
19280
19283
  },
19281
19284
  emits: ["onApply"],
19282
19285
  setup(i, { emit: t }) {
19283
- const e = i, a = t, { showErrorsDefault: s, showRecordWas: r } = nt(), { t: n } = ne(), { toolbarColor: l } = br(), o = Oi(), { activeTab: d, loading: c, asset: u } = jt(o), m = E(!1), v = xi(), { uploadQueueDialog: V } = lo(), g = D(() => v.getQueueItems(e.queueKey)), F = D(() => g.value[0] ?? null), w = D(() => !F.value || !F.value.assetId ? null : A.value && u.value ? u.value : {
19286
+ const e = i, a = t, { showErrorsDefault: s, showRecordWas: r } = nt(), { t: n } = ne(), { toolbarColor: l } = br(), o = Oi(), { activeTab: d, loading: c, asset: u } = jt(o), m = E(!1), v = xi(), { uploadQueueDialog: V } = uo(), g = D(() => v.getQueueItems(e.queueKey)), F = D(() => g.value[0] ?? null), w = D(() => !F.value || !F.value.assetId ? null : A.value && u.value ? u.value : {
19284
19287
  id: F.value.assetId,
19285
19288
  texts: {
19286
19289
  displayTitle: ""
@@ -19323,7 +19326,7 @@ const tA = { key: 0 }, iA = /* @__PURE__ */ Z({
19323
19326
  }, x = D(() => {
19324
19327
  var ke;
19325
19328
  return ((ke = w.value) == null ? void 0 : ke.attributes.assetType) || be.Default;
19326
- }), C = D(() => w.value ? w.value.attributes.assetStatus : rt.Default), M = D(() => x.value === be.Image), U = D(() => x.value === be.Video), L = D(() => x.value === be.Audio), te = D(() => x.value === be.Document), S = D(() => {
19329
+ }), C = D(() => w.value ? w.value.attributes.assetStatus : rt.Default), M = D(() => x.value === be.Image), U = D(() => x.value === be.Video), L = D(() => x.value === be.Audio), ie = D(() => x.value === be.Document), S = D(() => {
19327
19330
  var ke, Me, Oe, Le;
19328
19331
  return (ke = F.value) != null && ke.imagePreview ? {
19329
19332
  url: F.value.imagePreview.url,
@@ -19344,7 +19347,7 @@ const tA = { key: 0 }, iA = /* @__PURE__ */ Z({
19344
19347
  return (ke = F.value) == null ? void 0 : ke.progress.progressPercent;
19345
19348
  }), { damClient: W } = xt(), G = async () => {
19346
19349
  v.stopUpload(e.queueKey), o.setAsset(null), V.value = null;
19347
- }, ie = D(() => v.getQueueTotalCount(e.queueKey)), re = D(() => v.getQueueProcessedCount(e.queueKey)), ee = D(() => ie.value > re.value), se = async () => {
19350
+ }, ee = D(() => v.getQueueTotalCount(e.queueKey)), re = D(() => v.getQueueProcessedCount(e.queueKey)), te = D(() => ee.value > re.value), se = async () => {
19348
19351
  if (g.value.length !== 0)
19349
19352
  try {
19350
19353
  await Cn(W, g.value), r("updated");
@@ -19418,7 +19421,7 @@ const tA = { key: 0 }, iA = /* @__PURE__ */ Z({
19418
19421
  }, {
19419
19422
  default: p(() => [
19420
19423
  z("div", fA, [
19421
- ee.value ? (q(), R("div", mA, k(h(n)("common.damImage.upload.title")), 1)) : (q(), R("div", pA, k(h(n)("common.damImage.upload.titleDone")), 1))
19424
+ te.value ? (q(), R("div", mA, k(h(n)("common.damImage.upload.title")), 1)) : (q(), R("div", pA, k(h(n)("common.damImage.upload.titleDone")), 1))
19422
19425
  ]),
19423
19426
  f(Yt),
19424
19427
  z("div", null, [
@@ -19449,7 +19452,7 @@ const tA = { key: 0 }, iA = /* @__PURE__ */ Z({
19449
19452
  f(Fm, {
19450
19453
  "data-cy": "button-close",
19451
19454
  "button-size": 36,
19452
- "is-uploading": ee.value,
19455
+ "is-uploading": te.value,
19453
19456
  onConfirm: G
19454
19457
  }, null, 8, ["is-uploading"])
19455
19458
  ])
@@ -19514,7 +19517,7 @@ const tA = { key: 0 }, iA = /* @__PURE__ */ Z({
19514
19517
  "is-video": U.value,
19515
19518
  "is-audio": L.value,
19516
19519
  "is-image": M.value,
19517
- "is-document": te.value,
19520
+ "is-document": ie.value,
19518
19521
  "asset-status": C.value,
19519
19522
  "asset-type": x.value,
19520
19523
  "asset-main-file-status": H.value ? H.value.fileAttributes.status : void 0,
@@ -19586,20 +19589,20 @@ const tA = { key: 0 }, iA = /* @__PURE__ */ Z({
19586
19589
  }, u = (me) => {
19587
19590
  d.value !== !1 && (n.value(me), d.value = !1);
19588
19591
  }, m = at(
19589
- so,
19592
+ ro,
19590
19593
  void 0
19591
19594
  ), v = (oa = m == null ? void 0 : m.value) == null ? void 0 : oa.get(a.uploadConfig.extSystem);
19592
19595
  if (N(m) || N(v))
19593
19596
  throw new Error("Fatal error, parent component doesn't provide necessary config ext system config.");
19594
- const { t: V } = ne(), { showErrorsDefault: g } = nt(), F = Qn(a.configName), { imageClient: w } = F, { widgetImageToDamImageUrl: Y } = bf(F), y = xi(), X = Sr(), { uploadQueueDialog: x } = lo(), C = E(null), M = E(!1), U = E(!1), L = E(!1), te = E(!1), S = E(!1), H = D(() => ce(a.modelValue)), O = E(""), I = D(() => y.getQueue(a.queueKey)), A = D(() => !0), b = D(() => !ce(C.value)), T = () => {
19597
+ const { t: V } = ne(), { showErrorsDefault: g } = nt(), F = eo(a.configName), { imageClient: w } = F, { widgetImageToDamImageUrl: Y } = bf(F), y = xi(), X = Sr(), { uploadQueueDialog: x } = uo(), C = E(null), M = E(!1), U = E(!1), L = E(!1), ie = E(!1), S = E(!1), H = D(() => ce(a.modelValue)), O = E(""), I = D(() => y.getQueue(a.queueKey)), A = D(() => !0), b = D(() => !ce(C.value)), T = () => {
19595
19598
  X.setImageDetail(Qt(C.value)), L.value = !0;
19596
19599
  }, $ = () => {
19597
19600
  U.value = !0;
19598
- }, { cachedExtSystemId: W } = to(), G = (me) => {
19601
+ }, { cachedExtSystemId: W } = io(), G = (me) => {
19599
19602
  c(), W.value = a.uploadConfig.extSystem, y.addByFiles(a.queueKey, a.uploadConfig.extSystem, a.uploadConfig.licence, me), x.value = a.queueKey;
19600
- }, ie = (me) => {
19603
+ }, ee = (me) => {
19601
19604
  W.value = a.uploadConfig.extSystem, y.addByFiles(a.queueKey, a.uploadConfig.extSystem, a.uploadConfig.licence, me), x.value = a.queueKey;
19602
- }, { uploadSizes: re, uploadAccept: ee } = Cf(be.Image, v), se = async (me, Qe, Tt = !1) => {
19605
+ }, { uploadSizes: re, uploadAccept: te } = Cf(be.Image, v), se = async (me, Qe, Tt = !1) => {
19603
19606
  if (O.value = Ga, me && ce(C.value) || me && Tt) {
19604
19607
  C.value = Be(me), C.value && (O.value = Y(Qt(C.value)), a.expandMetadata && X.setImageDetail(Qt(C.value)));
19605
19608
  return;
@@ -19626,7 +19629,7 @@ const tA = { key: 0 }, iA = /* @__PURE__ */ Z({
19626
19629
  );
19627
19630
  const ke = async (me) => {
19628
19631
  var Vt;
19629
- const Qe = jn();
19632
+ const Qe = Hn();
19630
19633
  S.value = !0, X.setImageDetail(null), L.value = !0;
19631
19634
  let Tt = "", ai = "";
19632
19635
  if (me.type === "asset") {
@@ -19670,14 +19673,14 @@ const tA = { key: 0 }, iA = /* @__PURE__ */ Z({
19670
19673
  X.setImageDetail(null), L.value = !1;
19671
19674
  }, ve = async () => {
19672
19675
  if (!ce(X.imageDetail)) {
19673
- console.log(X.imageDetail), te.value = !0;
19676
+ console.log(X.imageDetail), ie.value = !0;
19674
19677
  try {
19675
19678
  const me = X.imageDetail.id ? await J7(w, X.imageDetail.id, X.imageDetail) : await G7(w, X.imageDetail);
19676
19679
  L.value = !1, s("update:modelValue", me.id), X.setImageDetail(null), await se(me, me.id, !0), s("afterMetadataSaveSuccess"), n.value(me.id);
19677
19680
  } catch (me) {
19678
19681
  g(me);
19679
19682
  } finally {
19680
- te.value = !1;
19683
+ ie.value = !1;
19681
19684
  }
19682
19685
  }
19683
19686
  }, le = async () => {
@@ -19766,9 +19769,9 @@ const tA = { key: 0 }, iA = /* @__PURE__ */ Z({
19766
19769
  ref_key: "expandedUploadButton",
19767
19770
  ref: je,
19768
19771
  "file-input-key": (Tt = I.value) == null ? void 0 : Tt.fileInputKey,
19769
- accept: h(ee),
19772
+ accept: h(te),
19770
19773
  "max-sizes": h(re),
19771
- onFilesInput: ie
19774
+ onFilesInput: ee
19772
19775
  }, {
19773
19776
  activator: p(({ props: Vt }) => [
19774
19777
  f(oe, Zm(Qm(Vt)), {
@@ -19840,9 +19843,9 @@ const tA = { key: 0 }, iA = /* @__PURE__ */ Z({
19840
19843
  }),
19841
19844
  f(Sn, {
19842
19845
  "file-input-key": (Vt = I.value) == null ? void 0 : Vt.fileInputKey,
19843
- accept: h(ee),
19846
+ accept: h(te),
19844
19847
  "max-sizes": h(re),
19845
- onFilesInput: ie
19848
+ onFilesInput: ee
19846
19849
  }, {
19847
19850
  activator: p(({ props: Ya }) => [
19848
19851
  f(mt, {
@@ -19907,10 +19910,10 @@ const tA = { key: 0 }, iA = /* @__PURE__ */ Z({
19907
19910
  ]),
19908
19911
  _: 1
19909
19912
  }, 8, ["lazy-src", "src", "width"]),
19910
- f(Zn, {
19913
+ f(Qn, {
19911
19914
  variant: "fill",
19912
19915
  transparent: "",
19913
- accept: h(ee),
19916
+ accept: h(te),
19914
19917
  "max-sizes": h(re),
19915
19918
  "hide-text": !H.value || Ht.value,
19916
19919
  onOnClick: vt,
@@ -19923,7 +19926,7 @@ const tA = { key: 0 }, iA = /* @__PURE__ */ Z({
19923
19926
  modelValue: L.value,
19924
19927
  "onUpdate:modelValue": Qe[1] || (Qe[1] = (Vt) => L.value = Vt),
19925
19928
  expand: me.expandMetadata,
19926
- saving: te.value,
19929
+ saving: ie.value,
19927
19930
  loading: S.value,
19928
19931
  onEditAsset: ht,
19929
19932
  onOnConfirm: ve,
@@ -19951,7 +19954,7 @@ const tA = { key: 0 }, iA = /* @__PURE__ */ Z({
19951
19954
  "ext-system": me.uploadConfig.extSystem,
19952
19955
  "licence-id": me.uploadConfig.licence,
19953
19956
  "file-input-key": ((ai = I.value) == null ? void 0 : ai.fileInputKey) ?? -1,
19954
- accept: h(ee),
19957
+ accept: h(te),
19955
19958
  "max-sizes": h(re),
19956
19959
  onOnApply: kt
19957
19960
  }, null, 8, ["queue-key", "ext-system", "licence-id", "file-input-key", "accept", "max-sizes"])) : j("", !0)
@@ -20011,7 +20014,7 @@ const tA = { key: 0 }, iA = /* @__PURE__ */ Z({
20011
20014
  r.value = "error";
20012
20015
  }
20013
20016
  r.value !== "error" && (r.value = "ready");
20014
- }), pr(so, d);
20017
+ }), pr(ro, d);
20015
20018
  const V = E(null);
20016
20019
  return t({
20017
20020
  metadataConfirm: () => {
@@ -20287,7 +20290,7 @@ const tA = { key: 0 }, iA = /* @__PURE__ */ Z({
20287
20290
  var L;
20288
20291
  return [
20289
20292
  P(k(h(l)("common.damImage.queueItem.displayTitle")) + ": " + k(M.item.displayTitle) + " ", 1),
20290
- (L = M.item.file) != null && L.size ? (q(), R("span", sb, " (" + k(h(Gn)(M.item.file.size)) + ")", 1)) : j("", !0)
20293
+ (L = M.item.file) != null && L.size ? (q(), R("span", sb, " (" + k(h(Jn)(M.item.file.size)) + ")", 1)) : j("", !0)
20291
20294
  ];
20292
20295
  }),
20293
20296
  _: 1
@@ -20309,7 +20312,7 @@ const tA = { key: 0 }, iA = /* @__PURE__ */ Z({
20309
20312
  ]),
20310
20313
  _: 1
20311
20314
  })) : j("", !0),
20312
- f(On, {
20315
+ f($n, {
20313
20316
  disabled: !M.item.canEditMetadata
20314
20317
  }, {
20315
20318
  default: p(() => [
@@ -20334,7 +20337,7 @@ const tA = { key: 0 }, iA = /* @__PURE__ */ Z({
20334
20337
  system: "dam"
20335
20338
  }, {
20336
20339
  default: p(() => [
20337
- f(no, {
20340
+ f(oo, {
20338
20341
  modelValue: r.value,
20339
20342
  "onUpdate:modelValue": U[0] || (U[0] = (L) => r.value = L),
20340
20343
  "queue-id": M.queueKey,
@@ -20368,7 +20371,7 @@ const tA = { key: 0 }, iA = /* @__PURE__ */ Z({
20368
20371
  system: "dam"
20369
20372
  }, {
20370
20373
  default: p(() => [
20371
- f(ro, {
20374
+ f(no, {
20372
20375
  modelValue: n.value,
20373
20376
  "onUpdate:modelValue": U[1] || (U[1] = (L) => n.value = L),
20374
20377
  "queue-id": M.queueKey,
@@ -20435,7 +20438,7 @@ const tA = { key: 0 }, iA = /* @__PURE__ */ Z({
20435
20438
  f(pe, null, {
20436
20439
  default: p(() => [
20437
20440
  v.attributes.readonly ? (q(), R("div", lb)) : (q(), R("div", db, [
20438
- f(Fl, {
20441
+ f(ql, {
20439
20442
  config: v,
20440
20443
  "model-value": u.modelValue[v.property],
20441
20444
  "onUpdate:modelValue": r
@@ -20629,7 +20632,7 @@ const fb = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, mb = { clas
20629
20632
  default: p(() => [
20630
20633
  z("div", Vb, [
20631
20634
  z("div", gb, [
20632
- f(no, {
20635
+ f(oo, {
20633
20636
  modelValue: a.value,
20634
20637
  "onUpdate:modelValue": x[0] || (x[0] = (C) => a.value = C),
20635
20638
  label: h(r)("common.damImage.asset.model.keywords"),
@@ -20704,7 +20707,7 @@ const fb = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, mb = { clas
20704
20707
  default: p(() => [
20705
20708
  z("div", vb, [
20706
20709
  z("div", Fb, [
20707
- f(ro, {
20710
+ f(no, {
20708
20711
  modelValue: s.value,
20709
20712
  "onUpdate:modelValue": x[1] || (x[1] = (C) => s.value = C),
20710
20713
  label: h(r)("common.damImage.asset.model.authors"),
@@ -20852,7 +20855,7 @@ const fb = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, mb = { clas
20852
20855
  s.stopItemUpload(m.queueKey, m.item, m.index);
20853
20856
  }, l = (m) => {
20854
20857
  s.removeByIndex(e.queueKey, m);
20855
- }, { addToCachedKeywords: o, fetchCachedKeywords: d } = io(), { addToCachedAuthors: c, fetchCachedAuthors: u } = _r();
20858
+ }, { addToCachedKeywords: o, fetchCachedKeywords: d } = ao(), { addToCachedAuthors: c, fetchCachedAuthors: u } = _r();
20856
20859
  return Bt(() => {
20857
20860
  r.value.forEach((m) => {
20858
20861
  o(m.keywords), c(m.authors);
@@ -20915,7 +20918,7 @@ const fb = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, mb = { clas
20915
20918
  },
20916
20919
  emits: ["onDrop", "onFilesInput", "onApply"],
20917
20920
  setup(i, { emit: t }) {
20918
- const e = i, a = t, { uploadQueueDialog: s, uploadQueueSidebar: r, toggleUploadQueueSidebar: n } = lo(), l = Sr(), { maxPosition: o } = jt(l), d = xi(), c = D(() => d.getQueueTotalCount(e.queueKey)), u = D(() => d.getQueueItems(e.queueKey)), m = D(() => d.getQueueProcessedCount(e.queueKey)), v = D(() => c.value > m.value), V = D(() => c.value === m.value), { t: g } = ne(), { toolbarColor: F } = br(), w = Mi(), { showRecordWas: Y, showValidationError: y, showErrorsDefault: X } = nt(), { damClient: x } = xt(), C = E(!1), M = E(!1), U = async () => {
20921
+ const e = i, a = t, { uploadQueueDialog: s, uploadQueueSidebar: r, toggleUploadQueueSidebar: n } = uo(), l = Sr(), { maxPosition: o } = jt(l), d = xi(), c = D(() => d.getQueueTotalCount(e.queueKey)), u = D(() => d.getQueueItems(e.queueKey)), m = D(() => d.getQueueProcessedCount(e.queueKey)), v = D(() => c.value > m.value), V = D(() => c.value === m.value), { t: g } = ne(), { toolbarColor: F } = br(), w = Mi(), { showRecordWas: Y, showValidationError: y, showErrorsDefault: X } = nt(), { damClient: x } = xt(), C = E(!1), M = E(!1), U = async () => {
20919
20922
  d.stopUpload(e.queueKey), s.value = null;
20920
20923
  }, L = async () => {
20921
20924
  const T = Qt(u.value);
@@ -20932,33 +20935,33 @@ const fb = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, mb = { clas
20932
20935
  C.value = !1;
20933
20936
  }
20934
20937
  }
20935
- }, te = async (T, $) => {
20936
- const W = /* @__PURE__ */ new Map(), G = /* @__PURE__ */ new Set(), ie = /* @__PURE__ */ new Map();
20938
+ }, ie = async (T, $) => {
20939
+ const W = /* @__PURE__ */ new Map(), G = /* @__PURE__ */ new Set(), ee = /* @__PURE__ */ new Map();
20937
20940
  try {
20938
- $.forEach((ee) => {
20941
+ $.forEach((te) => {
20939
20942
  var se;
20940
- W.set(ee.id, {
20941
- description: pi((se = ee.customData) == null ? void 0 : se.description) ? ee.customData.description.trim() : "",
20942
- authorIds: ee.authors
20943
+ W.set(te.id, {
20944
+ description: pi((se = te.customData) == null ? void 0 : se.description) ? te.customData.description.trim() : "",
20945
+ authorIds: te.authors
20943
20946
  });
20944
- }), W.forEach((ee) => {
20945
- ee.authorIds.forEach((se) => {
20947
+ }), W.forEach((te) => {
20948
+ te.authorIds.forEach((se) => {
20946
20949
  G.add(se);
20947
20950
  });
20948
20951
  }), G.size > 0 && (await $s(x, e.extSystem, [...G])).forEach((se) => {
20949
- ie.set(se.id, se.name);
20952
+ ee.set(se.id, se.name);
20950
20953
  });
20951
- } catch (ee) {
20952
- X(ee);
20954
+ } catch (te) {
20955
+ X(te);
20953
20956
  }
20954
20957
  return T.filter(
20955
- (ee) => !ce(ee.assetId) && !ce(ee.fileId)
20956
- ).map((ee) => {
20958
+ (te) => !ce(te.assetId) && !ce(te.fileId)
20959
+ ).map((te) => {
20957
20960
  var ke, Me;
20958
20961
  o.value++;
20959
- const se = (ke = W.get(ee.assetId)) == null ? void 0 : ke.description, ye = [];
20960
- return (Me = W.get(ee.assetId)) == null || Me.authorIds.forEach((Oe) => {
20961
- const Le = ie.get(Oe);
20962
+ const se = (ke = W.get(te.assetId)) == null ? void 0 : ke.description, ye = [];
20963
+ return (Me = W.get(te.assetId)) == null || Me.authorIds.forEach((Oe) => {
20964
+ const Le = ee.get(Oe);
20962
20965
  !N(Le) && Le.trim().length > 0 && ye.push(Le);
20963
20966
  }), {
20964
20967
  key: Ca(),
@@ -20967,7 +20970,7 @@ const fb = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, mb = { clas
20967
20970
  source: ye.join(", ")
20968
20971
  },
20969
20972
  dam: {
20970
- damId: ee.fileId,
20973
+ damId: te.fileId,
20971
20974
  regionPosition: 0,
20972
20975
  licenceId: e.licenceId
20973
20976
  },
@@ -20982,7 +20985,7 @@ const fb = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, mb = { clas
20982
20985
  return;
20983
20986
  }
20984
20987
  try {
20985
- const $ = await Cn(x, T), W = await te(T, $);
20988
+ const $ = await Cn(x, T), W = await ie(T, $);
20986
20989
  a("onApply", W);
20987
20990
  } catch ($) {
20988
20991
  X($);
@@ -21155,7 +21158,7 @@ const fb = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, mb = { clas
21155
21158
  onShowDetail: b
21156
21159
  }, null, 8, ["queue-key", "ext-system", "mass-operations"])
21157
21160
  ]),
21158
- f(Zn, {
21161
+ f(Qn, {
21159
21162
  variant: "fill",
21160
21163
  transparent: "",
21161
21164
  "hover-only": "",
@@ -21198,12 +21201,12 @@ const fb = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, mb = { clas
21198
21201
  setup(i, { expose: t, emit: e }) {
21199
21202
  var wt;
21200
21203
  const a = i, s = e, r = E(!1), n = at(
21201
- so,
21204
+ ro,
21202
21205
  void 0
21203
21206
  ), l = (wt = n == null ? void 0 : n.value) == null ? void 0 : wt.get(a.uploadConfig.extSystem);
21204
21207
  if (N(n) || N(l))
21205
21208
  throw new Error("Fatal error, parent component doesn't provide necessary config ext system config.");
21206
- const o = Qn(a.configName), { imageClient: d } = o, { showErrorsDefault: c, showValidationError: u } = nt(), m = E(null), { uploadSizes: v, uploadAccept: V } = Cf(be.Image, l), { t: g } = ne(), F = E(!1), w = Sr(), { images: Y, maxPosition: y } = jt(w), X = async () => {
21209
+ const o = eo(a.configName), { imageClient: d } = o, { showErrorsDefault: c, showValidationError: u } = nt(), m = E(null), { uploadSizes: v, uploadAccept: V } = Cf(be.Image, l), { t: g } = ne(), F = E(!1), w = Sr(), { images: Y, maxPosition: y } = jt(w), X = async () => {
21207
21210
  try {
21208
21211
  F.value = !0;
21209
21212
  const ve = await Nf(d, a.modelValue);
@@ -21218,12 +21221,12 @@ const fb = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, mb = { clas
21218
21221
  } finally {
21219
21222
  F.value = !1;
21220
21223
  }
21221
- }, x = xi(), C = D(() => x.getQueue(a.queueKey)), { cachedExtSystemId: M } = to(), { uploadQueueDialog: U } = lo(), L = (ve) => {
21224
+ }, x = xi(), C = D(() => x.getQueue(a.queueKey)), { cachedExtSystemId: M } = io(), { uploadQueueDialog: U } = uo(), L = (ve) => {
21222
21225
  M.value = a.uploadConfig.extSystem, x.addByFiles(a.queueKey, a.uploadConfig.extSystem, a.uploadConfig.licence, ve), U.value = a.queueKey;
21223
- }, te = (ve) => {
21226
+ }, ie = (ve) => {
21224
21227
  M.value = a.uploadConfig.extSystem, x.addByFiles(a.queueKey, a.uploadConfig.extSystem, a.uploadConfig.licence, ve), U.value = a.queueKey;
21225
21228
  }, S = async (ve) => {
21226
- const le = jn(), Se = ve.map((ct) => ct.id), kt = /* @__PURE__ */ new Map(), je = /* @__PURE__ */ new Set(), vt = /* @__PURE__ */ new Map();
21229
+ const le = Hn(), Se = ve.map((ct) => ct.id), kt = /* @__PURE__ */ new Map(), je = /* @__PURE__ */ new Set(), vt = /* @__PURE__ */ new Map();
21227
21230
  try {
21228
21231
  (await Kv(b, Se, le.selectedLicenceId)).forEach((Ke) => {
21229
21232
  var Ft;
@@ -21291,7 +21294,7 @@ const fb = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, mb = { clas
21291
21294
  ), U.value = null, x.stopUpload(a.queueKey));
21292
21295
  }, W = () => {
21293
21296
  r.value = !0;
21294
- }, G = Mi({}, {}, { $scope: rd }), ie = async () => {
21297
+ }, G = Mi({}, {}, { $scope: rd }), ee = async () => {
21295
21298
  if (G.value.$touch(), G.value.$invalid)
21296
21299
  return u(), !1;
21297
21300
  try {
@@ -21320,7 +21323,7 @@ const fb = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, mb = { clas
21320
21323
  }
21321
21324
  w.removeImageByIndex(ve);
21322
21325
  }
21323
- }, ee = E(null), se = E(Ca()), ye = E(null), ke = E(0), Me = D(() => N(a.widgetIdentifierId) ? td + se.value : a.widgetIdentifierId), Oe = () => {
21326
+ }, te = E(null), se = E(Ca()), ye = E(null), ke = E(0), Me = D(() => N(a.widgetIdentifierId) ? td + se.value : a.widgetIdentifierId), Oe = () => {
21324
21327
  ke.value++, Si(() => {
21325
21328
  ht();
21326
21329
  });
@@ -21335,9 +21338,9 @@ const fb = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, mb = { clas
21335
21338
  Y.value.splice(le, 0, Se), Le(), Oe();
21336
21339
  }
21337
21340
  }, ht = () => {
21338
- if (a.disableDraggable || !ee.value)
21341
+ if (a.disableDraggable || !te.value)
21339
21342
  return;
21340
- const ve = ee.value.querySelector("." + Dn);
21343
+ const ve = te.value.querySelector("." + Dn);
21341
21344
  ve && (ye.value = ed(ve, [], {
21342
21345
  handle: "." + As,
21343
21346
  ghostClass: Yf,
@@ -21349,9 +21352,9 @@ const fb = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, mb = { clas
21349
21352
  }));
21350
21353
  };
21351
21354
  return Si(() => {
21352
- ee.value = document.querySelector("#" + Me.value), ht();
21355
+ te.value = document.querySelector("#" + Me.value), ht();
21353
21356
  }), t({
21354
- saveImages: ie
21357
+ saveImages: ee
21355
21358
  }), Bt(() => {
21356
21359
  X();
21357
21360
  }), (ve, le) => {
@@ -21411,12 +21414,12 @@ const fb = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, mb = { clas
21411
21414
  onRemoveItem: re
21412
21415
  }, null, 8, ["index", "disable-draggable"]))), 128))
21413
21416
  ], 2)),
21414
- f(Zn, {
21417
+ f(Qn, {
21415
21418
  variant: "fill",
21416
21419
  "hover-only": ve.modelValue.length > 0 || h(Y).length > 0,
21417
21420
  accept: h(V),
21418
21421
  "max-sizes": h(v),
21419
- onOnDrop: te,
21422
+ onOnDrop: ie,
21420
21423
  onOnClick: le[1] || (le[1] = (je) => {
21421
21424
  var vt;
21422
21425
  return (vt = m.value) == null ? void 0 : vt.$el.click();
@@ -21492,7 +21495,7 @@ const fb = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, mb = { clas
21492
21495
  r.value !== "error" && (r.value = "ready");
21493
21496
  });
21494
21497
  const V = E(null), g = async () => V.value ? await V.value.saveImages() : !1;
21495
- return pr(so, d), t({
21498
+ return pr(ro, d), t({
21496
21499
  saveImages: g
21497
21500
  }), (F, w) => r.value === "ready" ? (q(), B(Bb, ea({
21498
21501
  key: 0,
@@ -21521,7 +21524,7 @@ const fb = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, mb = { clas
21521
21524
  showSource: { type: Boolean, default: !1 }
21522
21525
  },
21523
21526
  setup(i) {
21524
- const t = i, { images: e, modelValue: a } = Ds(t), s = E([]), { showErrorsDefault: r } = nt(), n = Qn(t.configName), { imageClient: l } = n;
21527
+ const t = i, { images: e, modelValue: a } = Ds(t), s = E([]), { showErrorsDefault: r } = nt(), n = eo(t.configName), { imageClient: l } = n;
21525
21528
  return xe(
21526
21529
  [e, a],
21527
21530
  async ([o, d]) => {
@@ -21637,10 +21640,10 @@ function aK(i, t, e, a, s, r) {
21637
21640
  const L = U.target;
21638
21641
  if (!L)
21639
21642
  return;
21640
- const te = L.parentElement;
21641
- if (!te || !te.classList.contains("v-data-table__tr"))
21643
+ const ie = L.parentElement;
21644
+ if (!ie || !ie.classList.contains("v-data-table__tr"))
21642
21645
  return;
21643
- const S = te.firstElementChild;
21646
+ const S = ie.firstElementChild;
21644
21647
  if (!S || !S.classList.contains("v-data-table__td"))
21645
21648
  return;
21646
21649
  const H = S.querySelector("input");
@@ -21733,10 +21736,10 @@ const dK = (i, t, e = "", a = {}, s = null, r, n, l = {}) => new Promise((o, d)
21733
21736
  const c = { method: t };
21734
21737
  e !== "" && (c.url = Ea(e, a)), ce(s) || (c.data = JSON.stringify(s)), i().request({ ...l, ...c }).then((u) => Ma(u.status) ? u.data ? o(u.data) : u.status === Va ? o(null) : d(new Mt()) : d(new va(u.status))).catch((u) => ga(u) ? d(new aa(u)) : sa(u) ? d(new ra(u, r, n, u)) : Fa(u) ? d(new na(u, u)) : d(new Mt(u)));
21735
21738
  }), Mu = (i, t = void 0) => {
21736
- const { querySetLimit: e, querySetOffset: a, querySetOrder: s, queryBuild: r, querySetFilters: n } = Hn();
21739
+ const { querySetLimit: e, querySetOffset: a, querySetOrder: s, queryBuild: r, querySetFilters: n } = Wn();
21737
21740
  return e(i.rowsPerPage), a(i.page, i.rowsPerPage), s(i.sortBy, i.descending), qe(t) && n(t), r();
21738
21741
  }, jb = (i, t, e, a, s = void 0) => {
21739
- const { querySetLimit: r, querySetOffset: n, querySetOrder: l, queryBuild: o, querySetFilters: d } = Hn();
21742
+ const { querySetLimit: r, querySetOffset: n, querySetOrder: l, queryBuild: o, querySetFilters: d } = Wn();
21740
21743
  return r(i), n(t, i), l(e, a), qe(s) && d(s), o();
21741
21744
  }, uK = async (i, t, e = {}, a = "id", s = !0, r = void 0, n = 100, l, o, d = !1, c = {}) => {
21742
21745
  const u = qe(r == null ? void 0 : r._elastic) || d ? "/search" : "", m = rs(a);
@@ -21798,7 +21801,7 @@ function fK(i, t) {
21798
21801
  fetchJob: (n) => Ci(i, tn + "/:id", { id: n }, t, an),
21799
21802
  createJob: (n) => {
21800
21803
  const l = Bp(n._resourceName).slice(4).replace("-kind-", "-kind/");
21801
- return eo(i, n, tn + "/:type", { type: l }, t, an);
21804
+ return to(i, n, tn + "/:type", { type: l }, t, an);
21802
21805
  },
21803
21806
  deleteJob: (n) => Rf(i, tn + "/:id", { id: n }, t, an)
21804
21807
  };
@@ -21819,7 +21822,7 @@ function pK(i = []) {
21819
21822
  }
21820
21823
  const hK = {
21821
21824
  install(i, t) {
21822
- i.provide(Nn, t.currentUser), i.provide(rc, t.customAclResolver), i.provide(nc, t.languages.available), i.provide(oc, t.languages.default), i.component("Acl", dV), i.use(_h, { componentName: "Notifications" }), Gq(t.image), yv(t.coreDam), ih(t.collab);
21825
+ i.provide(Ln, t.currentUser), i.provide(rc, t.customAclResolver), i.provide(nc, t.languages.available), i.provide(oc, t.languages.default), i.component("Acl", dV), i.use(_h, { componentName: "Notifications" }), Gq(t.image), yv(t.coreDam), ih(t.collab);
21823
21826
  }
21824
21827
  }, VK = (i, t) => {
21825
21828
  const e = i.indexOf(t);
@@ -23920,7 +23923,7 @@ const hK = {
23920
23923
  })
23921
23924
  });
23922
23925
  async function bK() {
23923
- (await import("./webfontloader-7lOXRoIC.js").then((t) => t.w)).load({
23926
+ (await import("./webfontloader-QFVyDsGA.js").then((t) => t.w)).load({
23924
23927
  google: {
23925
23928
  families: ["Roboto:100,300,400,500,700,900&display=swap"]
23926
23929
  }
@@ -23977,7 +23980,7 @@ const gn = /* @__PURE__ */ Object.create(null);
23977
23980
  Object.keys(Qi).forEach((i) => {
23978
23981
  gn[Qi[i]] = i;
23979
23982
  });
23980
- const _l = { type: "error", data: "parser error" }, Ym = typeof Blob == "function" || typeof Blob < "u" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]", Xm = typeof ArrayBuffer == "function", ym = (i) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(i) : i && i.buffer instanceof ArrayBuffer, vd = ({ type: i, data: t }, e, a) => Ym && t instanceof Blob ? e ? a(t) : Bu(t, a) : Xm && (t instanceof ArrayBuffer || ym(t)) ? e ? a(t) : Bu(new Blob([t]), a) : a(Qi[i] + (t || "")), Bu = (i, t) => {
23983
+ const Il = { type: "error", data: "parser error" }, Ym = typeof Blob == "function" || typeof Blob < "u" && Object.prototype.toString.call(Blob) === "[object BlobConstructor]", Xm = typeof ArrayBuffer == "function", ym = (i) => typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView(i) : i && i.buffer instanceof ArrayBuffer, vd = ({ type: i, data: t }, e, a) => Ym && t instanceof Blob ? e ? a(t) : Bu(t, a) : Xm && (t instanceof ArrayBuffer || ym(t)) ? e ? a(t) : Bu(new Blob([t]), a) : a(Qi[i] + (t || "")), Bu = (i, t) => {
23981
23984
  const e = new FileReader();
23982
23985
  return e.onload = function() {
23983
23986
  const a = e.result.split(",")[1];
@@ -23987,14 +23990,14 @@ const _l = { type: "error", data: "parser error" }, Ym = typeof Blob == "functio
23987
23990
  function Ou(i) {
23988
23991
  return i instanceof Uint8Array ? i : i instanceof ArrayBuffer ? new Uint8Array(i) : new Uint8Array(i.buffer, i.byteOffset, i.byteLength);
23989
23992
  }
23990
- let el;
23993
+ let tl;
23991
23994
  function JI(i, t) {
23992
23995
  if (Ym && i.data instanceof Blob)
23993
23996
  return i.data.arrayBuffer().then(Ou).then(t);
23994
23997
  if (Xm && (i.data instanceof ArrayBuffer || ym(i.data)))
23995
23998
  return t(Ou(i.data));
23996
23999
  vd(i, !1, (e) => {
23997
- el || (el = new TextEncoder()), t(el.encode(e));
24000
+ tl || (tl = new TextEncoder()), t(tl.encode(e));
23998
24001
  });
23999
24002
  }
24000
24003
  const $u = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", ar = typeof Uint8Array > "u" ? [] : new Uint8Array(256);
@@ -24022,7 +24025,7 @@ const ZI = (i) => {
24022
24025
  data: i.substring(1)
24023
24026
  } : {
24024
24027
  type: gn[e]
24025
- } : _l;
24028
+ } : Il;
24026
24029
  }, eD = (i, t) => {
24027
24030
  if (QI) {
24028
24031
  const e = ZI(i);
@@ -24076,7 +24079,7 @@ function aD() {
24076
24079
  }
24077
24080
  });
24078
24081
  }
24079
- let tl;
24082
+ let il;
24080
24083
  function sn(i) {
24081
24084
  return i.reduce((t, e) => t + e.length, 0);
24082
24085
  }
@@ -24090,7 +24093,7 @@ function rn(i, t) {
24090
24093
  return i.length && a < i[0].length && (i[0] = i[0].slice(a)), e;
24091
24094
  }
24092
24095
  function sD(i, t) {
24093
- tl || (tl = new TextDecoder());
24096
+ il || (il = new TextDecoder());
24094
24097
  const e = [];
24095
24098
  let a = 0, s = -1, r = !1;
24096
24099
  return new TransformStream({
@@ -24111,7 +24114,7 @@ function sD(i, t) {
24111
24114
  break;
24112
24115
  const o = rn(e, 8), d = new DataView(o.buffer, o.byteOffset, o.length), c = d.getUint32(0);
24113
24116
  if (c > Math.pow(2, 21) - 1) {
24114
- l.enqueue(_l);
24117
+ l.enqueue(Il);
24115
24118
  break;
24116
24119
  }
24117
24120
  s = c * Math.pow(2, 32) + d.getUint32(4), a = 3;
@@ -24119,10 +24122,10 @@ function sD(i, t) {
24119
24122
  if (sn(e) < s)
24120
24123
  break;
24121
24124
  const o = rn(e, s);
24122
- l.enqueue(Fd(r ? o : tl.decode(o), t)), a = 0;
24125
+ l.enqueue(Fd(r ? o : il.decode(o), t)), a = 0;
24123
24126
  }
24124
24127
  if (s === 0 || s > i) {
24125
- l.enqueue(_l);
24128
+ l.enqueue(Il);
24126
24129
  break;
24127
24130
  }
24128
24131
  }
@@ -24186,7 +24189,7 @@ function xm(i, ...t) {
24186
24189
  return t.reduce((e, a) => (i.hasOwnProperty(a) && (e[a] = i[a]), e), {});
24187
24190
  }
24188
24191
  const nD = yi.setTimeout, oD = yi.clearTimeout;
24189
- function uo(i, t) {
24192
+ function co(i, t) {
24190
24193
  t.useNativeTimers ? (i.setTimeoutFn = nD.bind(yi), i.clearTimeoutFn = oD.bind(yi)) : (i.setTimeoutFn = yi.setTimeout.bind(yi), i.clearTimeoutFn = yi.clearTimeout.bind(yi));
24191
24194
  }
24192
24195
  const lD = 1.33;
@@ -24226,7 +24229,7 @@ class qd extends Ct {
24226
24229
  * @protected
24227
24230
  */
24228
24231
  constructor(t) {
24229
- super(), this.writable = !1, uo(this, t), this.opts = t, this.query = t.query, this.socket = t.socket;
24232
+ super(), this.writable = !1, co(this, t), this.opts = t, this.query = t.query, this.socket = t.socket;
24230
24233
  }
24231
24234
  /**
24232
24235
  * Emits an error.
@@ -24316,12 +24319,12 @@ class qd extends Ct {
24316
24319
  return e.length ? "?" + e : "";
24317
24320
  }
24318
24321
  }
24319
- const wm = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""), Il = 64, pD = {};
24322
+ const wm = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""), Dl = 64, pD = {};
24320
24323
  let Pu = 0, nn = 0, Ru;
24321
24324
  function Nu(i) {
24322
24325
  let t = "";
24323
24326
  do
24324
- t = wm[i % Il] + t, i = Math.floor(i / Il);
24327
+ t = wm[i % Dl] + t, i = Math.floor(i / Dl);
24325
24328
  while (i > 0);
24326
24329
  return t;
24327
24330
  }
@@ -24329,7 +24332,7 @@ function km() {
24329
24332
  const i = Nu(+/* @__PURE__ */ new Date());
24330
24333
  return i !== Ru ? (Pu = 0, Ru = i) : i + "." + Nu(Pu++);
24331
24334
  }
24332
- for (; nn < Il; nn++)
24335
+ for (; nn < Dl; nn++)
24333
24336
  pD[wm[nn]] = nn;
24334
24337
  let _m = !1;
24335
24338
  try {
@@ -24505,7 +24508,7 @@ class Wi extends Ct {
24505
24508
  * @package
24506
24509
  */
24507
24510
  constructor(t, e) {
24508
- super(), uo(this, e), this.opts = e, this.method = e.method || "GET", this.uri = t, this.data = e.data !== void 0 ? e.data : null, this.create();
24511
+ super(), co(this, e), this.opts = e, this.method = e.method || "GET", this.uri = t, this.data = e.data !== void 0 ? e.data : null, this.create();
24509
24512
  }
24510
24513
  /**
24511
24514
  * Creates the XHR object and sends the request.
@@ -24743,7 +24746,7 @@ const XD = {
24743
24746
  "query",
24744
24747
  "anchor"
24745
24748
  ];
24746
- function Dl(i) {
24749
+ function Sl(i) {
24747
24750
  if (i.length > 2e3)
24748
24751
  throw "URI too long";
24749
24752
  const t = i, e = i.indexOf("["), a = i.indexOf("]");
@@ -24771,7 +24774,7 @@ let Dm = class fs extends Ct {
24771
24774
  * @param {Object} opts - options
24772
24775
  */
24773
24776
  constructor(t, e = {}) {
24774
- super(), this.binaryType = FD, this.writeBuffer = [], t && typeof t == "object" && (e = t, t = null), t ? (t = Dl(t), e.hostname = t.host, e.secure = t.protocol === "https" || t.protocol === "wss", e.port = t.port, t.query && (e.query = t.query)) : e.host && (e.hostname = Dl(e.host).host), uo(this, e), this.secure = e.secure != null ? e.secure : typeof location < "u" && location.protocol === "https:", e.hostname && !e.port && (e.port = this.secure ? "443" : "80"), this.hostname = e.hostname || (typeof location < "u" ? location.hostname : "localhost"), this.port = e.port || (typeof location < "u" && location.port ? location.port : this.secure ? "443" : "80"), this.transports = e.transports || [
24777
+ super(), this.binaryType = FD, this.writeBuffer = [], t && typeof t == "object" && (e = t, t = null), t ? (t = Sl(t), e.hostname = t.host, e.secure = t.protocol === "https" || t.protocol === "wss", e.port = t.port, t.query && (e.query = t.query)) : e.host && (e.hostname = Sl(e.host).host), co(this, e), this.secure = e.secure != null ? e.secure : typeof location < "u" && location.protocol === "https:", e.hostname && !e.port && (e.port = this.secure ? "443" : "80"), this.hostname = e.hostname || (typeof location < "u" ? location.hostname : "localhost"), this.port = e.port || (typeof location < "u" && location.port ? location.port : this.secure ? "443" : "80"), this.transports = e.transports || [
24775
24778
  "polling",
24776
24779
  "websocket",
24777
24780
  "webtransport"
@@ -25071,7 +25074,7 @@ let Dm = class fs extends Ct {
25071
25074
  Dm.protocol = Cm;
25072
25075
  function xD(i, t = "", e) {
25073
25076
  let a = i;
25074
- e = e || typeof location < "u" && location, i == null && (i = e.protocol + "//" + e.host), typeof i == "string" && (i.charAt(0) === "/" && (i.charAt(1) === "/" ? i = e.protocol + i : i = e.host + i), /^(https?|wss?):\/\//.test(i) || (typeof e < "u" ? i = e.protocol + "//" + i : i = "https://" + i), a = Dl(i)), a.port || (/^(http|ws)$/.test(a.protocol) ? a.port = "80" : /^(http|ws)s$/.test(a.protocol) && (a.port = "443")), a.path = a.path || "/";
25077
+ e = e || typeof location < "u" && location, i == null && (i = e.protocol + "//" + e.host), typeof i == "string" && (i.charAt(0) === "/" && (i.charAt(1) === "/" ? i = e.protocol + i : i = e.host + i), /^(https?|wss?):\/\//.test(i) || (typeof e < "u" ? i = e.protocol + "//" + i : i = "https://" + i), a = Sl(i)), a.port || (/^(http|ws)$/.test(a.protocol) ? a.port = "80" : /^(http|ws)s$/.test(a.protocol) && (a.port = "443")), a.path = a.path || "/";
25075
25078
  const r = a.host.indexOf(":") !== -1 ? "[" + a.host + "]" : a.host;
25076
25079
  return a.id = a.protocol + "://" + r + ":" + a.port + t, a.href = a.protocol + "://" + r + (e && e.port === a.port ? "" : ":" + a.port), a;
25077
25080
  }
@@ -25099,9 +25102,9 @@ function vn(i, t) {
25099
25102
  }
25100
25103
  function DD(i) {
25101
25104
  const t = [], e = i.data, a = i;
25102
- return a.data = Sl(e, t), a.attachments = t.length, { packet: a, buffers: t };
25105
+ return a.data = Tl(e, t), a.attachments = t.length, { packet: a, buffers: t };
25103
25106
  }
25104
- function Sl(i, t) {
25107
+ function Tl(i, t) {
25105
25108
  if (!i)
25106
25109
  return i;
25107
25110
  if (Xd(i)) {
@@ -25110,20 +25113,20 @@ function Sl(i, t) {
25110
25113
  } else if (Array.isArray(i)) {
25111
25114
  const e = new Array(i.length);
25112
25115
  for (let a = 0; a < i.length; a++)
25113
- e[a] = Sl(i[a], t);
25116
+ e[a] = Tl(i[a], t);
25114
25117
  return e;
25115
25118
  } else if (typeof i == "object" && !(i instanceof Date)) {
25116
25119
  const e = {};
25117
25120
  for (const a in i)
25118
- Object.prototype.hasOwnProperty.call(i, a) && (e[a] = Sl(i[a], t));
25121
+ Object.prototype.hasOwnProperty.call(i, a) && (e[a] = Tl(i[a], t));
25119
25122
  return e;
25120
25123
  }
25121
25124
  return i;
25122
25125
  }
25123
25126
  function SD(i, t) {
25124
- return i.data = Tl(i.data, t), delete i.attachments, i;
25127
+ return i.data = Kl(i.data, t), delete i.attachments, i;
25125
25128
  }
25126
- function Tl(i, t) {
25129
+ function Kl(i, t) {
25127
25130
  if (!i)
25128
25131
  return i;
25129
25132
  if (i && i._placeholder === !0) {
@@ -25132,10 +25135,10 @@ function Tl(i, t) {
25132
25135
  throw new Error("illegal attachments");
25133
25136
  } else if (Array.isArray(i))
25134
25137
  for (let e = 0; e < i.length; e++)
25135
- i[e] = Tl(i[e], t);
25138
+ i[e] = Kl(i[e], t);
25136
25139
  else if (typeof i == "object")
25137
25140
  for (const e in i)
25138
- Object.prototype.hasOwnProperty.call(i, e) && (i[e] = Tl(i[e], t));
25141
+ Object.prototype.hasOwnProperty.call(i, e) && (i[e] = Kl(i[e], t));
25139
25142
  return i;
25140
25143
  }
25141
25144
  const TD = [
@@ -25955,10 +25958,10 @@ Rs.prototype.setMax = function(i) {
25955
25958
  Rs.prototype.setJitter = function(i) {
25956
25959
  this.jitter = i;
25957
25960
  };
25958
- class Kl extends Ct {
25961
+ class El extends Ct {
25959
25962
  constructor(t, e) {
25960
25963
  var a;
25961
- super(), this.nsps = {}, this.subs = [], t && typeof t == "object" && (e = t, t = void 0), e = e || {}, e.path = e.path || "/socket.io", this.opts = e, uo(this, e), this.reconnection(e.reconnection !== !1), this.reconnectionAttempts(e.reconnectionAttempts || 1 / 0), this.reconnectionDelay(e.reconnectionDelay || 1e3), this.reconnectionDelayMax(e.reconnectionDelayMax || 5e3), this.randomizationFactor((a = e.randomizationFactor) !== null && a !== void 0 ? a : 0.5), this.backoff = new Rs({
25964
+ super(), this.nsps = {}, this.subs = [], t && typeof t == "object" && (e = t, t = void 0), e = e || {}, e.path = e.path || "/socket.io", this.opts = e, co(this, e), this.reconnection(e.reconnection !== !1), this.reconnectionAttempts(e.reconnectionAttempts || 1 / 0), this.reconnectionDelay(e.reconnectionDelay || 1e3), this.reconnectionDelayMax(e.reconnectionDelayMax || 5e3), this.randomizationFactor((a = e.randomizationFactor) !== null && a !== void 0 ? a : 0.5), this.backoff = new Rs({
25962
25965
  min: this.reconnectionDelay(),
25963
25966
  max: this.reconnectionDelayMax(),
25964
25967
  jitter: this.randomizationFactor()
@@ -26186,19 +26189,19 @@ function Fn(i, t) {
26186
26189
  typeof i == "object" && (t = i, i = void 0), t = t || {};
26187
26190
  const e = xD(i, t.path || "/socket.io"), a = e.source, s = e.id, r = e.path, n = Zs[s] && r in Zs[s].nsps, l = t.forceNew || t["force new connection"] || t.multiplex === !1 || n;
26188
26191
  let o;
26189
- return l ? o = new Kl(a, t) : (Zs[s] || (Zs[s] = new Kl(a, t)), o = Zs[s]), e.query && !t.query && (t.query = e.queryKey), o.socket(e.path, t);
26192
+ return l ? o = new El(a, t) : (Zs[s] || (Zs[s] = new El(a, t)), o = Zs[s]), e.query && !t.query && (t.query = e.queryKey), o.socket(e.path, t);
26190
26193
  }
26191
26194
  Object.assign(Fn, {
26192
- Manager: Kl,
26195
+ Manager: El,
26193
26196
  Socket: Tm,
26194
26197
  io: Fn,
26195
26198
  connect: Fn
26196
26199
  });
26197
26200
  function wK() {
26198
- const { collabOptions: i } = gi(), { showWarningT: t, showSuccessT: e } = nt(), { collabConnected: a, collabSocket: s, collabRoomInfoState: r, collabFieldLocksState: n } = Ln();
26201
+ const { collabOptions: i } = gi(), { showWarningT: t, showSuccessT: e } = nt(), { collabConnected: a, collabSocket: s, collabRoomInfoState: r, collabFieldLocksState: n } = zn();
26199
26202
  return {
26200
26203
  initCollab: () => {
26201
- var Y, y, X, x, C, M, U, L, te;
26204
+ var Y, y, X, x, C, M, U, L, ie;
26202
26205
  const o = Rl(), d = lc(), c = dc(), u = mc(), m = cc(), v = fc(), V = Vc(), g = pc(), F = hc(), w = gc();
26203
26206
  s.value || !i.value.enabled || (console.log("init collab"), s.value = Fn(i.value.socketUrl, {
26204
26207
  transports: ["websocket"],
@@ -26241,7 +26244,7 @@ function wK() {
26241
26244
  e("common.collab.alert.transferredModeration");
26242
26245
  }), (L = s.value) == null || L.on("kickedFromRoom", (S) => {
26243
26246
  t("common.collab.alert.kickedFromRoom"), w.emit({ room: S });
26244
- }), (te = s.value) == null || te.on("startCollab", async (S, H) => {
26247
+ }), (ie = s.value) == null || ie.on("startCollab", async (S, H) => {
26245
26248
  c.emit({ room: S, startedCallback: H });
26246
26249
  }), s.value.on("connect", () => {
26247
26250
  var H;
@@ -26268,7 +26271,7 @@ function kK() {
26268
26271
  };
26269
26272
  }
26270
26273
  function _K(i) {
26271
- const { collabOptions: t } = gi(), { collabSocket: e } = Ln(), a = Rl(), s = E(), r = E(), n = (d, c) => {
26274
+ const { collabOptions: t } = gi(), { collabSocket: e } = zn(), a = Rl(), s = E(), r = E(), n = (d, c) => {
26272
26275
  d.room !== i || N(c) || N(s.value) || s.value(d.field, c);
26273
26276
  }, l = (d) => {
26274
26277
  s.value = d, r.value = a.on(n);
@@ -26323,7 +26326,7 @@ export {
26323
26326
  TT as a5,
26324
26327
  KT as a6,
26325
26328
  XT as a7,
26326
- sl as a8,
26329
+ rl as a8,
26327
26330
  ET as a9,
26328
26331
  nt as aA,
26329
26332
  cK as aB,
@@ -26342,7 +26345,7 @@ export {
26342
26345
  Zq as aO,
26343
26346
  e7 as aP,
26344
26347
  Cf as aQ,
26345
- jo as aR,
26348
+ Ho as aR,
26346
26349
  QT as aS,
26347
26350
  y7 as aT,
26348
26351
  Uq as aU,
@@ -26359,7 +26362,7 @@ export {
26359
26362
  UT as ae,
26360
26363
  jT as af,
26361
26364
  zq as ag,
26362
- Fl as ah,
26365
+ ql as ah,
26363
26366
  eK as ai,
26364
26367
  sd as aj,
26365
26368
  tK as ak,
@@ -26392,14 +26395,14 @@ export {
26392
26395
  Li as b9,
26393
26396
  _t as bA,
26394
26397
  Tp as bB,
26395
- al as bC,
26398
+ sl as bC,
26396
26399
  Kp as bD,
26397
26400
  ce as bE,
26398
26401
  N as bF,
26399
26402
  qe as bG,
26400
26403
  Ep as bH,
26401
26404
  pi as bI,
26402
- $n as bJ,
26405
+ Pn as bJ,
26403
26406
  lT as bK,
26404
26407
  Sc as bL,
26405
26408
  rV as bM,
@@ -26415,8 +26418,8 @@ export {
26415
26418
  ES as bW,
26416
26419
  Op as bX,
26417
26420
  TS as bY,
26418
- zn as bZ,
26419
- Un as b_,
26421
+ Un as bZ,
26422
+ jn as b_,
26420
26423
  bs as ba,
26421
26424
  Jq as bb,
26422
26425
  kr as bc,
@@ -26440,11 +26443,11 @@ export {
26440
26443
  lK as bu,
26441
26444
  Be as bv,
26442
26445
  Cd as bw,
26443
- Rn as bx,
26444
- Pn as by,
26446
+ Nn as bx,
26447
+ Rn as by,
26445
26448
  Mp as bz,
26446
26449
  vg as c,
26447
- Ln as c$,
26450
+ zn as c$,
26448
26451
  WS as c0,
26449
26452
  HS as c1,
26450
26453
  hi as c2,
@@ -26485,7 +26488,7 @@ export {
26485
26488
  QS as ca,
26486
26489
  eT as cb,
26487
26490
  tT as cc,
26488
- Gn as cd,
26491
+ Jn as cd,
26489
26492
  Ma as ce,
26490
26493
  Oc as cf,
26491
26494
  rK as cg,
@@ -26500,14 +26503,14 @@ export {
26500
26503
  Ca as cp,
26501
26504
  LT as cq,
26502
26505
  dK as cr,
26503
- eo as cs,
26506
+ to as cs,
26504
26507
  Rf as ct,
26505
26508
  ad as cu,
26506
26509
  Cr as cv,
26507
26510
  uK as cw,
26508
26511
  Ci as cx,
26509
26512
  Pf as cy,
26510
- Hn as cz,
26513
+ Wn as cz,
26511
26514
  _S as d,
26512
26515
  Ta as d0,
26513
26516
  yg as d1,
@@ -26533,7 +26536,7 @@ export {
26533
26536
  Qq as dL,
26534
26537
  gs as dM,
26535
26538
  AF as dN,
26536
- ml as dO,
26539
+ pl as dO,
26537
26540
  ef as dP,
26538
26541
  mc as da,
26539
26542
  pc as db,
@@ -26545,7 +26548,7 @@ export {
26545
26548
  Er as dh,
26546
26549
  th as di,
26547
26550
  Ui as dj,
26548
- rl as dk,
26551
+ nl as dk,
26549
26552
  vc as dl,
26550
26553
  kd as dm,
26551
26554
  _d as dn,
@@ -26565,7 +26568,7 @@ export {
26565
26568
  Ll as g,
26566
26569
  oT as h,
26567
26570
  Gi as i,
26568
- ol as j,
26571
+ ll as j,
26569
26572
  hs as k,
26570
26573
  uT as l,
26571
26574
  cT as m,
@@ -26579,8 +26582,8 @@ export {
26579
26582
  sT as u,
26580
26583
  FT as v,
26581
26584
  vT as w,
26582
- Xo as x,
26585
+ yo as x,
26583
26586
  fT as y,
26584
26587
  gr as z
26585
26588
  };
26586
- //# sourceMappingURL=lib-UFyNKhDf.js.map
26589
+ //# sourceMappingURL=lib-A5rO572N.js.map