@anzusystems/common-admin 1.47.0-alpha73 → 1.47.0-alpha75

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,6 +1,6 @@
1
1
  var cm = Object.defineProperty;
2
2
  var mm = (t, a, e) => a in t ? cm(t, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[a] = e;
3
- var ar = (t, a, e) => (mm(t, typeof a != "symbol" ? a + "" : a, e), e);
3
+ var ar = (t, a, e) => mm(t, typeof a != "symbol" ? a + "" : a, e);
4
4
  import { defineComponent as W, computed as _, openBlock as q, createBlock as M, withCtx as f, createTextVNode as B, toDisplayString as I, createElementBlock as P, createVNode as m, normalizeClass as he, createCommentVNode as N, renderSlot as ue, createElementVNode as L, resolveComponent as $e, withModifiers as Z, withDirectives as jt, vShow as Oa, isProxy as Dd, toRaw as Yt, isRef as Ds, unref as V, Fragment as Fe, normalizeStyle as Mt, shallowRef as ft, watch as Ye, ref as S, reactive as oa, inject as je, createSlots as va, provide as Ti, renderList as He, onMounted as At, TransitionGroup as Td, isVNode as fm, mergeModels as Ht, useModel as ba, toRefs as ii, vModelText as xl, nextTick as Wt, pushScopeId as Vm, popScopeId as pm, withKeys as Ma, mergeProps as Rt, onUnmounted as Pn, readonly as ks, createStaticVNode as Ed, resolveDynamicComponent as Hr, setBlockTracking as wl, onBeforeUnmount as Wr, toRef as Gr, Teleport as vm, normalizeProps as hm, guardReactiveProps as Fm } from "vue";
5
5
  import { useI18n as ee, createI18n as gm } from "vue-i18n";
6
6
  import { VChip as ra } from "vuetify/lib/components/VChip/index.mjs";
@@ -202,22 +202,18 @@ const Gm = { key: 1 }, Nd = /* @__PURE__ */ W({
202
202
  end: t.slice(e + a.length)
203
203
  };
204
204
  }, FS = (t) => t.toString().toLowerCase().trim().normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/\s+/g, "-").replace(/&/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, ""), rf = (t) => t.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), gS = (t, a = 80) => t.length > a ? t.substring(1, a) + "..." : t, of = (t, a) => {
205
- if (t.indexOf(":") === -1)
206
- return t;
205
+ if (t.indexOf(":") === -1) return t;
207
206
  const e = [];
208
207
  return t.split("/").forEach((i, r) => {
209
- if (e[r] = i, !i.startsWith(":"))
210
- return;
208
+ if (e[r] = i, !i.startsWith(":")) return;
211
209
  const o = i.substring(1);
212
210
  R(a[o]) || (e[r] = a[i.substring(1)] + "");
213
211
  }), e.join("/");
214
212
  }, qS = (t, a) => {
215
- if (t.indexOf(":") === -1)
216
- return t;
213
+ if (t.indexOf(":") === -1) return t;
217
214
  const e = [];
218
215
  return t.split("/").forEach((i, r) => {
219
- if (e[r] = i, !i.startsWith(":"))
220
- return;
216
+ if (e[r] = i, !i.startsWith(":")) return;
221
217
  e[r] = i.substring(1);
222
218
  const o = /^:([a-zA-Z0-9_-]+).*/, l = i.match(o);
223
219
  se(l) || !l[1] || R(a[l[1]]) || (e[r] = a[l[1]] + "");
@@ -235,10 +231,8 @@ const Gm = { key: 1 }, Nd = /* @__PURE__ */ W({
235
231
  var r;
236
232
  return (r = a.user) != null && r.avatar.color && a.user.avatar.color.length === 7 ? a.user.avatar.color : "#3f6ad8";
237
233
  }), s = _(() => a.size * 0.5 + "px"), i = _(() => {
238
- if (!a.user)
239
- return "";
240
- if (a.user.avatar.text.length > 0)
241
- return a.user.avatar.text;
234
+ if (!a.user) return "";
235
+ if (a.user.avatar.text.length > 0) return a.user.avatar.text;
242
236
  const r = a.user.person.firstName.charAt(0) + a.user.person.lastName.charAt(0);
243
237
  return r.length > 0 ? r : a.user.email.slice(0, 2);
244
238
  });
@@ -467,8 +461,7 @@ function ms(t, a, e = !1) {
467
461
  addCollabGatheringBufferDataListener: T,
468
462
  acquireCollabFieldLock: (O = {}) => {
469
463
  var k;
470
- if (!s.value.enabled || R(r.value))
471
- return;
464
+ if (!s.value.enabled || R(r.value)) return;
472
465
  const E = n.get(t);
473
466
  E && E.status === sa.Inactive || (k = r.value) == null || k.timeout(1e3).emit("acquireFieldLock", t, a, O, (b, C) => {
474
467
  var $;
@@ -492,8 +485,7 @@ function ms(t, a, e = !1) {
492
485
  },
493
486
  releaseCollabFieldLock: (O, E = {}) => {
494
487
  var b, C;
495
- if (!s.value.enabled || R(r.value))
496
- return;
488
+ if (!s.value.enabled || R(r.value)) return;
497
489
  const k = n.get(t);
498
490
  if (k && k.status === sa.Inactive) {
499
491
  l.has(t) || l.set(t, /* @__PURE__ */ new Map()), (b = l.get(t)) == null || b.set(a, O);
@@ -519,8 +511,7 @@ function ms(t, a, e = !1) {
519
511
  });
520
512
  },
521
513
  changeCollabFieldData: (O) => {
522
- if (!s.value.enabled || R(r.value))
523
- return;
514
+ if (!s.value.enabled || R(r.value)) return;
524
515
  const E = n.get(t);
525
516
  E && E.status === sa.Inactive || r.value.emit("changeFieldData", t, a, O, () => {
526
517
  });
@@ -596,10 +587,8 @@ const Cf = {
596
587
  return pe(e.errorMessage) ? [e.errorMessage] : (X = (A = e.v) == null ? void 0 : A.$errors) != null && X.length ? [e.v.$errors.map((x) => x.$message).join(" ")] : [];
597
588
  }), g = _(() => {
598
589
  var X, x;
599
- if (pe(e.label))
600
- return e.label;
601
- if (R(c) || R(u) || R((X = e.v) == null ? void 0 : X.$path))
602
- return "";
590
+ if (pe(e.label)) return e.label;
591
+ if (R(c) || R(u) || R((X = e.v) == null ? void 0 : X.$path)) return "";
603
592
  const { end: A } = Ra((x = e.v) == null ? void 0 : x.$path, ".");
604
593
  return d(c + "." + u + ".model." + A);
605
594
  }), y = _(() => {
@@ -626,7 +615,12 @@ const Cf = {
626
615
  onBlur: Y,
627
616
  onFocus: v,
628
617
  "onUpdate:modelValue": X[1] || (X[1] = (x) => p(x))
629
- }, va({ _: 2 }, [
618
+ }, va({
619
+ prepend: f(() => [
620
+ ue(A.$slots, "prepend")
621
+ ]),
622
+ _: 2
623
+ }, [
630
624
  A.hideLabel ? void 0 : {
631
625
  name: "label",
632
626
  fn: f(() => [
@@ -719,10 +713,8 @@ const Cf = {
719
713
  return pe(e.errorMessage) ? [e.errorMessage] : (X = (A = e.v) == null ? void 0 : A.$errors) != null && X.length ? [e.v.$errors.map((x) => x.$message).join(" ")] : [];
720
714
  }), g = _(() => {
721
715
  var X, x;
722
- if (pe(e.label))
723
- return e.label;
724
- if (R(c) || R(u) || R((X = e.v) == null ? void 0 : X.$path))
725
- return "";
716
+ if (pe(e.label)) return e.label;
717
+ if (R(c) || R(u) || R((X = e.v) == null ? void 0 : X.$path)) return "";
726
718
  const { end: A } = Ra((x = e.v) == null ? void 0 : x.$path, ".");
727
719
  return d(c + "." + u + ".model." + A);
728
720
  }), y = _(() => {
@@ -746,7 +738,12 @@ const Cf = {
746
738
  onBlur: Y,
747
739
  onFocus: v,
748
740
  "onUpdate:modelValue": X[1] || (X[1] = (x) => p(x))
749
- }, va({ _: 2 }, [
741
+ }, va({
742
+ prepend: f(() => [
743
+ ue(A.$slots, "prepend")
744
+ ]),
745
+ _: 2
746
+ }, [
750
747
  A.hideLabel ? void 0 : {
751
748
  name: "label",
752
749
  fn: f(() => [
@@ -1015,8 +1012,7 @@ const Cf = {
1015
1012
  return Ye(
1016
1013
  r,
1017
1014
  (p, Y) => {
1018
- if (R(Y) || p === Y)
1019
- return;
1015
+ if (R(Y) || p === Y) return;
1020
1016
  const v = c.value.find((F) => F.id === p);
1021
1017
  v && s("sortByChange", v);
1022
1018
  },
@@ -1924,8 +1920,7 @@ var vu = { exports: {} };
1924
1920
  var b = -k.utcOffset(), C = Math.abs(b), D = Math.floor(C / 60), $ = C % 60;
1925
1921
  return (b <= 0 ? "+" : "-") + A(D, 2, "0") + ":" + A($, 2, "0");
1926
1922
  }, m: function k(b, C) {
1927
- if (b.date() < C.date())
1928
- return -k(C, b);
1923
+ if (b.date() < C.date()) return -k(C, b);
1929
1924
  var D = 12 * (C.year() - b.year()) + (C.month() - b.month()), $ = b.clone().add(D, u), U = C - $ < 0, G = b.clone().add(D + (U ? -1 : 1), u);
1930
1925
  return +(-(D + (C - $) / (U ? $ - G : G - $)) || 0);
1931
1926
  }, a: function(k) {
@@ -1940,22 +1935,19 @@ var vu = { exports: {} };
1940
1935
  return k instanceof O || !(!k || !k[T]);
1941
1936
  }, H = function k(b, C, D) {
1942
1937
  var $;
1943
- if (!b)
1944
- return x;
1938
+ if (!b) return x;
1945
1939
  if (typeof b == "string") {
1946
1940
  var U = b.toLowerCase();
1947
1941
  w[U] && ($ = U), C && (w[U] = C, $ = U);
1948
1942
  var G = b.split("-");
1949
- if (!$ && G.length > 1)
1950
- return k(G[0]);
1943
+ if (!$ && G.length > 1) return k(G[0]);
1951
1944
  } else {
1952
1945
  var J = b.name;
1953
1946
  w[J] = b, $ = J;
1954
1947
  }
1955
1948
  return !D && $ && (x = $), $ || !D && x;
1956
1949
  }, j = function(k, b) {
1957
- if (z(k))
1958
- return k.clone();
1950
+ if (z(k)) return k.clone();
1959
1951
  var C = typeof b == "object" ? b : {};
1960
1952
  return C.date = k, C.args = arguments, new O(C);
1961
1953
  }, K = X;
@@ -1970,12 +1962,9 @@ var vu = { exports: {} };
1970
1962
  return b.parse = function(C) {
1971
1963
  this.$d = function(D) {
1972
1964
  var $ = D.date, U = D.utc;
1973
- if ($ === null)
1974
- return /* @__PURE__ */ new Date(NaN);
1975
- if (K.u($))
1976
- return /* @__PURE__ */ new Date();
1977
- if ($ instanceof Date)
1978
- return new Date($);
1965
+ if ($ === null) return /* @__PURE__ */ new Date(NaN);
1966
+ if (K.u($)) return /* @__PURE__ */ new Date();
1967
+ if ($ instanceof Date) return new Date($);
1979
1968
  if (typeof $ == "string" && !/Z$/i.test($)) {
1980
1969
  var G = $.match(g);
1981
1970
  if (G) {
@@ -2039,8 +2028,7 @@ var vu = { exports: {} };
2039
2028
  if (U === u || U === Y) {
2040
2029
  var fe = this.clone().set(v, 1);
2041
2030
  fe.$d[J](te), fe.init(), this.$d = fe.set(v, Math.min(this.$D, fe.daysInMonth())).$d;
2042
- } else
2043
- J && this.$d[J](te);
2031
+ } else J && this.$d[J](te);
2044
2032
  return this.init(), this;
2045
2033
  }, b.set = function(C, D) {
2046
2034
  return this.clone().$set(C, D);
@@ -2053,22 +2041,17 @@ var vu = { exports: {} };
2053
2041
  var Me = j(U);
2054
2042
  return K.w(Me.date(Me.date() + Math.round(me * C)), U);
2055
2043
  };
2056
- if (G === u)
2057
- return this.set(u, this.$M + C);
2058
- if (G === Y)
2059
- return this.set(Y, this.$y + C);
2060
- if (G === d)
2061
- return J(1);
2062
- if (G === c)
2063
- return J(7);
2044
+ if (G === u) return this.set(u, this.$M + C);
2045
+ if (G === Y) return this.set(Y, this.$y + C);
2046
+ if (G === d) return J(1);
2047
+ if (G === c) return J(7);
2064
2048
  var te = ($ = {}, $[l] = s, $[n] = i, $[o] = e, $)[G] || 1, fe = this.$d.getTime() + C * te;
2065
2049
  return K.w(fe, this);
2066
2050
  }, b.subtract = function(C, D) {
2067
2051
  return this.add(-1 * C, D);
2068
2052
  }, b.format = function(C) {
2069
2053
  var D = this, $ = this.$locale();
2070
- if (!this.isValid())
2071
- return $.invalidDate || F;
2054
+ if (!this.isValid()) return $.invalidDate || F;
2072
2055
  var U = C || "YYYY-MM-DDTHH:mm:ssZ", G = K.z(this), J = this.$H, te = this.$m, fe = this.$M, me = $.weekdays, Me = $.months, Xe = $.meridiem, _e = function(ve, we, Le, Ve) {
2073
2056
  return ve && (ve[we] || ve(D, U)) || Le[we].slice(0, Ve);
2074
2057
  }, Q = function(ve) {
@@ -2172,8 +2155,7 @@ var vu = { exports: {} };
2172
2155
  }, b.$locale = function() {
2173
2156
  return w[this.$L];
2174
2157
  }, b.locale = function(C, D) {
2175
- if (!C)
2176
- return this.$L;
2158
+ if (!C) return this.$L;
2177
2159
  var $ = this.clone(), U = H(C, D, !0);
2178
2160
  return U && ($.$L = U), $;
2179
2161
  }, b.clone = function() {
@@ -2227,31 +2209,25 @@ var hu = { exports: {} };
2227
2209
  if (this.$u) {
2228
2210
  var F = this.$d;
2229
2211
  this.$y = F.getUTCFullYear(), this.$M = F.getUTCMonth(), this.$D = F.getUTCDate(), this.$W = F.getUTCDay(), this.$H = F.getUTCHours(), this.$m = F.getUTCMinutes(), this.$s = F.getUTCSeconds(), this.$ms = F.getUTCMilliseconds();
2230
- } else
2231
- c.call(this);
2212
+ } else c.call(this);
2232
2213
  };
2233
2214
  var u = n.utcOffset;
2234
2215
  n.utcOffset = function(F, g) {
2235
2216
  var y = this.$utils().u;
2236
- if (y(F))
2237
- return this.$u ? 0 : y(this.$offset) ? u.call(this) : this.$offset;
2217
+ if (y(F)) return this.$u ? 0 : y(this.$offset) ? u.call(this) : this.$offset;
2238
2218
  if (typeof F == "string" && (F = function(x) {
2239
2219
  x === void 0 && (x = "");
2240
2220
  var w = x.match(s);
2241
- if (!w)
2242
- return null;
2221
+ if (!w) return null;
2243
2222
  var T = ("" + w[0]).match(i) || ["-", 0, 0], z = T[0], H = 60 * +T[1] + +T[2];
2244
2223
  return H === 0 ? 0 : z === "+" ? H : -H;
2245
- }(F), F === null))
2246
- return this;
2224
+ }(F), F === null)) return this;
2247
2225
  var h = Math.abs(F) <= 16 ? 60 * F : F, A = this;
2248
- if (g)
2249
- return A.$offset = h, A.$u = F === 0, A;
2226
+ if (g) return A.$offset = h, A.$u = F === 0, A;
2250
2227
  if (F !== 0) {
2251
2228
  var X = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
2252
2229
  (A = this.local().add(h + X, e)).$offset = h, A.$x.$localOffset = X;
2253
- } else
2254
- A = this.utc();
2230
+ } else A = this.utc();
2255
2231
  return A;
2256
2232
  };
2257
2233
  var p = n.format;
@@ -2274,8 +2250,7 @@ var hu = { exports: {} };
2274
2250
  };
2275
2251
  var v = n.diff;
2276
2252
  n.diff = function(F, g, y) {
2277
- if (F && this.$u === F.$u)
2278
- return v.call(this, F, g, y);
2253
+ if (F && this.$u === F.$u) return v.call(this, F, g, y);
2279
2254
  var h = this.local(), A = l(F).local();
2280
2255
  return v.call(h, A, g, y);
2281
2256
  };
@@ -2297,8 +2272,7 @@ var gu = { exports: {} };
2297
2272
  };
2298
2273
  }, c = [/[+-]\d\d:?(\d\d)?|Z/, function(F) {
2299
2274
  (this.zone || (this.zone = {})).offset = function(g) {
2300
- if (!g || g === "Z")
2301
- return 0;
2275
+ if (!g || g === "Z") return 0;
2302
2276
  var y = g.match(/([+-]|\d\d)/g), h = 60 * y[1] + (+y[2] || 0);
2303
2277
  return h === 0 ? 0 : y[0] === "+" ? -h : h;
2304
2278
  }(F);
@@ -2308,13 +2282,11 @@ var gu = { exports: {} };
2308
2282
  }, p = function(F, g) {
2309
2283
  var y, h = l.meridiem;
2310
2284
  if (h) {
2311
- for (var A = 1; A <= 24; A += 1)
2312
- if (F.indexOf(h(A, 0, g)) > -1) {
2313
- y = A > 12;
2314
- break;
2315
- }
2316
- } else
2317
- y = F === (g ? "pm" : "PM");
2285
+ for (var A = 1; A <= 24; A += 1) if (F.indexOf(h(A, 0, g)) > -1) {
2286
+ y = A > 12;
2287
+ break;
2288
+ }
2289
+ } else y = F === (g ? "pm" : "PM");
2318
2290
  return y;
2319
2291
  }, Y = { A: [o, function(F) {
2320
2292
  this.afternoon = p(F, !1);
@@ -2328,20 +2300,16 @@ var gu = { exports: {} };
2328
2300
  this.milliseconds = +F;
2329
2301
  }], s: [r, d("seconds")], ss: [r, d("seconds")], m: [r, d("minutes")], mm: [r, d("minutes")], H: [r, d("hours")], h: [r, d("hours")], HH: [r, d("hours")], hh: [r, d("hours")], D: [r, d("day")], DD: [i, d("day")], Do: [o, function(F) {
2330
2302
  var g = l.ordinal, y = F.match(/\d+/);
2331
- if (this.day = y[0], g)
2332
- for (var h = 1; h <= 31; h += 1)
2333
- g(h).replace(/\[|\]/g, "") === F && (this.day = h);
2303
+ if (this.day = y[0], g) for (var h = 1; h <= 31; h += 1) g(h).replace(/\[|\]/g, "") === F && (this.day = h);
2334
2304
  }], M: [r, d("month")], MM: [i, d("month")], MMM: [o, function(F) {
2335
2305
  var g = u("months"), y = (u("monthsShort") || g.map(function(h) {
2336
2306
  return h.slice(0, 3);
2337
2307
  })).indexOf(F) + 1;
2338
- if (y < 1)
2339
- throw new Error();
2308
+ if (y < 1) throw new Error();
2340
2309
  this.month = y % 12 || y;
2341
2310
  }], MMMM: [o, function(F) {
2342
2311
  var g = u("months").indexOf(F) + 1;
2343
- if (g < 1)
2344
- throw new Error();
2312
+ if (g < 1) throw new Error();
2345
2313
  this.month = g % 12 || g;
2346
2314
  }], Y: [/[+-]?\d+/, d("year")], YY: [i, function(F) {
2347
2315
  this.year = n(F);
@@ -2361,8 +2329,7 @@ var gu = { exports: {} };
2361
2329
  return function(H) {
2362
2330
  for (var j = {}, K = 0, O = 0; K < A; K += 1) {
2363
2331
  var E = h[K];
2364
- if (typeof E == "string")
2365
- O += E.length;
2332
+ if (typeof E == "string") O += E.length;
2366
2333
  else {
2367
2334
  var k = E.regex, b = E.parser, C = H.slice(O), D = k.exec(C)[0];
2368
2335
  b.call(j, D), H = H.replace(D, "");
@@ -2388,8 +2355,7 @@ var gu = { exports: {} };
2388
2355
  var H = T[2] === !0, j = T[3] === !0, K = H || j, O = T[2];
2389
2356
  j && (O = T[2]), l = this.$locale(), !H && O && (l = y.Ls[O]), this.$d = function(C, D, $) {
2390
2357
  try {
2391
- if (["x", "X"].indexOf(D) > -1)
2392
- return new Date((D === "X" ? 1e3 : 1) * C);
2358
+ if (["x", "X"].indexOf(D) > -1) return new Date((D === "X" ? 1e3 : 1) * C);
2393
2359
  var U = v(D)(C), G = U.year, J = U.month, te = U.day, fe = U.hours, me = U.minutes, Me = U.seconds, Xe = U.milliseconds, _e = U.zone, Q = /* @__PURE__ */ new Date(), ne = te || (G || J ? 1 : Q.getDate()), ve = G || Q.getFullYear(), we = 0;
2394
2360
  G && !J || (we = J > 0 ? J - 1 : Q.getMonth());
2395
2361
  var Le = fe || 0, Ve = me || 0, ae = Me || 0, Ae = Xe || 0;
@@ -2398,18 +2364,16 @@ var gu = { exports: {} };
2398
2364
  return /* @__PURE__ */ new Date("");
2399
2365
  }
2400
2366
  }(x, z, w), this.init(), O && O !== !0 && (this.$L = this.locale(O).$L), K && x != this.format(z) && (this.$d = /* @__PURE__ */ new Date("")), l = {};
2401
- } else if (z instanceof Array)
2402
- for (var E = z.length, k = 1; k <= E; k += 1) {
2403
- T[1] = z[k - 1];
2404
- var b = y.apply(this, T);
2405
- if (b.isValid()) {
2406
- this.$d = b.$d, this.$L = b.$L, this.init();
2407
- break;
2408
- }
2409
- k === E && (this.$d = /* @__PURE__ */ new Date(""));
2367
+ } else if (z instanceof Array) for (var E = z.length, k = 1; k <= E; k += 1) {
2368
+ T[1] = z[k - 1];
2369
+ var b = y.apply(this, T);
2370
+ if (b.isValid()) {
2371
+ this.$d = b.$d, this.$L = b.$L, this.init();
2372
+ break;
2410
2373
  }
2411
- else
2412
- A.call(this, X);
2374
+ k === E && (this.$d = /* @__PURE__ */ new Date(""));
2375
+ }
2376
+ else A.call(this, X);
2413
2377
  };
2414
2378
  };
2415
2379
  });
@@ -2980,8 +2944,7 @@ const yV = {
2980
2944
  let i = t;
2981
2945
  for (; s.length; ) {
2982
2946
  const r = s.shift();
2983
- if (R(r) || !(r in i))
2984
- return;
2947
+ if (R(r) || !(r in i)) return;
2985
2948
  i = i[r];
2986
2949
  }
2987
2950
  return i;
@@ -2990,8 +2953,7 @@ const yV = {
2990
2953
  let r = t;
2991
2954
  for (; i.length - 1; ) {
2992
2955
  const o = i.shift();
2993
- if (R(o))
2994
- return;
2956
+ if (R(o)) return;
2995
2957
  o in r || (r[o] = {}), r = r[o];
2996
2958
  }
2997
2959
  r[i[0]] = e;
@@ -3013,15 +2975,11 @@ function xV(t) {
3013
2975
  const a = R(t) || R(t.disableInject), e = (t == null ? void 0 : t.currentUser) ?? (a ? je(so, void 0) : void 0), s = (t == null ? void 0 : t.customAclProvider) ?? (a ? je(jd, void 0) : void 0), i = (n, d) => {
3014
2976
  if (R(e))
3015
2977
  throw new Error("Composable useAcl can be used as a global state without providing current user as a parameter.");
3016
- if (pe(s) && pe(s.can))
3017
- return s.can(n, d);
3018
- if (R(e.value) || e.value.id === 0)
3019
- return !1;
3020
- if (e.value.roles.includes(Wn))
3021
- return !0;
2978
+ if (pe(s) && pe(s.can)) return s.can(n, d);
2979
+ if (R(e.value) || e.value.id === 0) return !1;
2980
+ if (e.value.roles.includes(Wn)) return !0;
3022
2981
  const c = uo(e.value, "resolvedPermissions." + n);
3023
- if (R(c))
3024
- return !1;
2982
+ if (R(c)) return !1;
3025
2983
  switch (c) {
3026
2984
  case br.Allow:
3027
2985
  return !0;
@@ -3226,8 +3184,7 @@ const QV = (t) => (Vm("data-v-8b2f16cf"), t = t(), pm(), t), ep = { class: "a-da
3226
3184
  (v = r.value) == null || v.focus();
3227
3185
  };
3228
3186
  return Ye([s, i], ([v, F], [g, y]) => {
3229
- if (v === g && F === y)
3230
- return;
3187
+ if (v === g && F === y) return;
3231
3188
  const h = parseInt(v ?? (e.value ? e.value.hours.toString() : "12")), A = parseInt(F ?? (e.value ? e.value.minutes.toString() : "0"));
3232
3189
  h >= 0 && h <= 23 && A >= 0 && A <= 59 && (e.value = { hours: h, minutes: A });
3233
3190
  }), a({
@@ -3529,10 +3486,8 @@ const QV = (t) => (Vm("data-v-8b2f16cf"), t = t(), pm(), t), ep = { class: "a-da
3529
3486
  return pe(e.errorMessage) ? [e.errorMessage] : (z = (T = e.v) == null ? void 0 : T.$errors) != null && z.length ? [e.v.$errors.map((H) => H.$message).join(" ")] : [];
3530
3487
  }), X = _(() => {
3531
3488
  var z, H;
3532
- if (pe(e.label))
3533
- return e.label;
3534
- if (R(F) || R(g) || R((z = e.v) == null ? void 0 : z.$path))
3535
- return "";
3489
+ if (pe(e.label)) return e.label;
3490
+ if (R(F) || R(g) || R((z = e.v) == null ? void 0 : z.$path)) return "";
3536
3491
  const { end: T } = Ra((H = e.v) == null ? void 0 : H.$path, ".");
3537
3492
  return v(F + "." + g + ".model." + T);
3538
3493
  }), x = _(() => {
@@ -3623,10 +3578,8 @@ const QV = (t) => (Vm("data-v-8b2f16cf"), t = t(), pm(), t), ep = { class: "a-da
3623
3578
  return R(e.errorMessage) ? (H = (z = e.v) == null ? void 0 : z.$errors) != null && H.length ? [e.v.$errors.map((j) => j.$message).join(" ")] : [] : [e.errorMessage];
3624
3579
  }), x = _(() => {
3625
3580
  var H, j;
3626
- if (pe(e.label))
3627
- return e.label;
3628
- if (R(u) || R(p) || R((H = e.v) == null ? void 0 : H.$path))
3629
- return "";
3581
+ if (pe(e.label)) return e.label;
3582
+ if (R(u) || R(p) || R((H = e.v) == null ? void 0 : H.$path)) return "";
3630
3583
  const { end: z } = Ra((j = e.v) == null ? void 0 : j.$path, ".");
3631
3584
  return c(u + "." + p + ".model." + z);
3632
3585
  });
@@ -3826,10 +3779,8 @@ const Vp = {
3826
3779
  return pe(e.errorMessage) ? [e.errorMessage] : (ne = (Q = e.v) == null ? void 0 : Q.$errors) != null && ne.length ? e.v.$errors.map((ve) => ve.$message) : [];
3827
3780
  }), w = _(() => {
3828
3781
  var ne, ve;
3829
- if (pe(e.label))
3830
- return e.label;
3831
- if (R(h) || R(A) || R((ne = e.v) == null ? void 0 : ne.$path))
3832
- return "";
3782
+ if (pe(e.label)) return e.label;
3783
+ if (R(h) || R(A) || R((ne = e.v) == null ? void 0 : ne.$path)) return "";
3833
3784
  const { end: Q } = Ra((ve = e.v) == null ? void 0 : ve.$path, ".");
3834
3785
  return g(h + "." + A + ".model." + Q);
3835
3786
  }), T = _(() => {
@@ -3859,8 +3810,7 @@ const Vp = {
3859
3810
  }, U = S(!1), G = () => {
3860
3811
  clearTimeout(F.value), F.value = void 0;
3861
3812
  }, J = async () => {
3862
- if (G(), U.value === !0)
3863
- return;
3813
+ if (G(), U.value === !0) return;
3864
3814
  U.value = !0, k.value = !0;
3865
3815
  const Q = await e.fetchItems(j, y.value);
3866
3816
  l.value === 0 && (K.value = Q), k.value = !1;
@@ -3899,11 +3849,9 @@ const Vp = {
3899
3849
  Ye(
3900
3850
  i,
3901
3851
  async (Q, ne) => {
3902
- if (Q === ne)
3903
- return;
3852
+ if (Q === ne) return;
3904
3853
  if (n.value.enabled && v.value && c.value(Q), se(Q) || R(Q) || Ze(Q) && Q.length === 0) {
3905
- if (O.value = [], r.value = Ze(Q) ? [] : null, o.value = Ze(Q) ? [] : null, e.disableInitFetch || U.value === !0)
3906
- return;
3854
+ if (O.value = [], r.value = Ze(Q) ? [] : null, o.value = Ze(Q) ? [] : null, e.disableInitFetch || U.value === !0) return;
3907
3855
  F.value = setTimeout(() => {
3908
3856
  J();
3909
3857
  }, 2e3);
@@ -4015,15 +3963,12 @@ const Vp = {
4015
3963
  setup(t, { emit: a }) {
4016
3964
  const e = t, s = a, { t: i } = ee(), r = je(ka, void 0), o = je(Ia, void 0), l = _(() => {
4017
3965
  var F, g;
4018
- if (!R(e.label))
4019
- return e.label;
4020
- if (R(r) || R(o) || R((F = e.v) == null ? void 0 : F.$path))
4021
- return "";
3966
+ if (!R(e.label)) return e.label;
3967
+ if (R(r) || R(o) || R((F = e.v) == null ? void 0 : F.$path)) return "";
4022
3968
  const { end: v } = Ra((g = e.v) == null ? void 0 : g.$path, ".");
4023
3969
  return i(r + "." + o + ".model." + v);
4024
3970
  }), n = S(!1), d = S(!1), c = S(""), u = _(() => e.modelValue), p = S(e.modelValue), Y = async () => {
4025
- if (n.value)
4026
- return;
3971
+ if (n.value) return;
4027
3972
  if (n.value = !0, d.value = !1, p.value === !0) {
4028
3973
  const F = await e.callbackToFalse();
4029
3974
  s("update:modelValue", !F), p.value = !F, F || (d.value = !0), n.value = !1;
@@ -4138,15 +4083,12 @@ const Vp = {
4138
4083
  setup(t, { emit: a }) {
4139
4084
  const e = t, s = a, { t: i } = ee(), r = je(ka, void 0), o = je(Ia, void 0), l = _(() => {
4140
4085
  var F, g;
4141
- if (!R(e.label))
4142
- return e.label;
4143
- if (R(r) || R(o) || R((F = e.v) == null ? void 0 : F.$path))
4144
- return "";
4086
+ if (!R(e.label)) return e.label;
4087
+ if (R(r) || R(o) || R((F = e.v) == null ? void 0 : F.$path)) return "";
4145
4088
  const { end: v } = Ra((g = e.v) == null ? void 0 : g.$path, ".");
4146
4089
  return i(r + "." + o + ".model." + v);
4147
4090
  }), n = S(!1), d = S(!1), c = S(""), u = _(() => e.modelValue), p = S(e.modelValue), Y = async () => {
4148
- if (n.value)
4149
- return;
4091
+ if (n.value) return;
4150
4092
  if (n.value = !0, d.value = !1, p.value === !0) {
4151
4093
  const F = await e.callbackToFalse();
4152
4094
  s("update:modelValue", !F), p.value = !F, F || (d.value = !0), n.value = !1;
@@ -4262,10 +4204,8 @@ const Vp = {
4262
4204
  return pe(e.errorMessage) ? [e.errorMessage] : (w = (x = e.v) == null ? void 0 : x.$errors) != null && w.length ? e.v.$errors.map((T) => T.$message) : [];
4263
4205
  }), y = _(() => {
4264
4206
  var w, T;
4265
- if (pe(e.label))
4266
- return e.label;
4267
- if (R(c) || R(u) || R((w = e.v) == null ? void 0 : w.$path))
4268
- return "";
4207
+ if (pe(e.label)) return e.label;
4208
+ if (R(c) || R(u) || R((w = e.v) == null ? void 0 : w.$path)) return "";
4269
4209
  const { end: x } = Ra((T = e.v) == null ? void 0 : T.$path, ".");
4270
4210
  return p(c + "." + u + ".model." + x);
4271
4211
  }), h = _(() => {
@@ -4389,8 +4329,7 @@ const Vp = {
4389
4329
  }, w = S(!1), T = () => {
4390
4330
  clearTimeout(l.value), l.value = void 0;
4391
4331
  }, z = async () => {
4392
- if (T(), w.value === !0)
4393
- return;
4332
+ if (T(), w.value === !0) return;
4394
4333
  w.value = !0, h.value = !0;
4395
4334
  const k = await e.fetchItems(v, c.value);
4396
4335
  n.value === 0 && (F.value = k), h.value = !1;
@@ -4411,11 +4350,9 @@ const Vp = {
4411
4350
  return Ye(
4412
4351
  i,
4413
4352
  async (k, b) => {
4414
- if (k === b)
4415
- return;
4353
+ if (k === b) return;
4416
4354
  if (se(k) || R(k) || Ze(k) && k.length === 0) {
4417
- if (g.value = [], e.disableInitFetch || w.value === !0)
4418
- return;
4355
+ if (g.value = [], e.disableInitFetch || w.value === !0) return;
4419
4356
  l.value = setTimeout(() => {
4420
4357
  z();
4421
4358
  }, 3e3);
@@ -4961,8 +4898,7 @@ function Bp(t, a = !1, e = void 0, s = void 0, i = !1) {
4961
4898
  });
4962
4899
  }, lt = async (ce = {}) => new Promise((wt, Kt) => {
4963
4900
  var Ea;
4964
- if (!Oe.value.enabled || R(r.value))
4965
- return Kt(Fn.Failed);
4901
+ if (!Oe.value.enabled || R(r.value)) return Kt(Fn.Failed);
4966
4902
  (Ea = r.value) == null || Ea.timeout(5e3).emit("joinCollabRoom", t, ce, (ca, $s) => ca ? void Kt(Fn.Failed) : _l($s) ? (o.set(t, $s.room), void wt($s.status)) : void Kt($s.status));
4967
4903
  }), Ga = () => {
4968
4904
  !Oe.value.enabled || R(r.value) || r.value.emit("leaveCollabRoom", t, (ce) => {
@@ -5002,11 +4938,9 @@ function Bp(t, a = !1, e = void 0, s = void 0, i = !1) {
5002
4938
  const wt = { name: "", status: sa.Inactive, users: [], moderator: null };
5003
4939
  return new Promise((Kt) => {
5004
4940
  var Ea;
5005
- if (!Oe.value.enabled || R(r.value))
5006
- return Kt(wt);
4941
+ if (!Oe.value.enabled || R(r.value)) return Kt(wt);
5007
4942
  (Ea = r.value) == null || Ea.timeout(500).emit("fetchRoomsInfo", [ce], (ca, $s) => {
5008
- if (ca)
5009
- return void Kt(wt);
4943
+ if (ca) return void Kt(wt);
5010
4944
  const wo = $s[ce];
5011
4945
  return R(wo) && Kt(wt), R(e) || e(wo.users), R(s) || s(), Kt(wo);
5012
4946
  });
@@ -6151,8 +6085,7 @@ const Pp = { class: "ml-3" }, Op = { class: "ml-1" }, dK = /* @__PURE__ */ W({
6151
6085
  return "flat";
6152
6086
  }
6153
6087
  }), o = _(() => {
6154
- if (!e.loading)
6155
- return !1;
6088
+ if (!e.loading) return !1;
6156
6089
  switch (r.value) {
6157
6090
  case "flat":
6158
6091
  return "white";
@@ -6960,10 +6893,8 @@ const hv = { class: "text-center w-100 text-caption pb-1" }, YK = /* @__PURE__ *
6960
6893
  return R(e.errorMessage) ? (b = (k = e.v) == null ? void 0 : k.$errors) != null && b.length ? e.v.$errors.map((C) => C.$message) : [] : [e.errorMessage];
6961
6894
  }), X = _(() => {
6962
6895
  var b, C;
6963
- if (!R(e.label))
6964
- return e.label;
6965
- if (R(d) || R(c) || R((b = e.v) == null ? void 0 : b.$path))
6966
- return "";
6896
+ if (!R(e.label)) return e.label;
6897
+ if (R(d) || R(c) || R((b = e.v) == null ? void 0 : b.$path)) return "";
6967
6898
  const { end: k } = Ra((C = e.v) == null ? void 0 : C.$path, ".");
6968
6899
  return n(d + "." + c + ".model." + k);
6969
6900
  }), x = _(() => {
@@ -7828,8 +7759,7 @@ function yt(t = void 0) {
7828
7759
  if (R(h))
7829
7760
  try {
7830
7761
  const X = await Qn(t, y);
7831
- if (se(X.extSystem))
7832
- return;
7762
+ if (se(X.extSystem)) return;
7833
7763
  h = { extSystem: X.extSystem, name: X.name }, To.value.set(y, h);
7834
7764
  } catch {
7835
7765
  return;
@@ -7953,8 +7883,7 @@ const li = "/adm/v1/asset", $o = 10, fo = "asset", Be = "coreDam", Bo = 25, Pl =
7953
7883
  }).catch((r) => s(r));
7954
7884
  });
7955
7885
  async function eh(t, a, e) {
7956
- if (a.length === 0)
7957
- return Promise.resolve([]);
7886
+ if (a.length === 0) return Promise.resolve([]);
7958
7887
  const s = Math.ceil(a.length / Bo), i = [];
7959
7888
  for (let r = 0; r < s; r++) {
7960
7889
  const o = r * Bo, l = a.slice(o, o + Bo), n = await t().get(li + `/licence/${e}/ids/${l.join(",")}`);
@@ -7981,8 +7910,7 @@ const th = (t, a, e) => new Promise((s, i) => {
7981
7910
  });
7982
7911
  async function ah(t, a) {
7983
7912
  const e = Math.ceil(a.length / $o), s = [];
7984
- if (a.length === 0)
7985
- return Promise.resolve([]);
7913
+ if (a.length === 0) return Promise.resolve([]);
7986
7914
  for (let i = 0; i < e; i++) {
7987
7915
  const r = i * $o, o = a.slice(r, r + $o), l = await t().patch(li + "/metadata-bulk-update", JSON.stringify(o));
7988
7916
  s.push(l);
@@ -8005,8 +7933,7 @@ const { showUnknownError: ih, showApiValidationError: rh } = We(), oh = (t, a, e
8005
7933
  const { getDamConfigAssetCustomFormElements: s } = yt(), i = s(e);
8006
7934
  if (R(i))
8007
7935
  throw new Error("Custom form elements must be initialised.");
8008
- if (!t || !t.response || !t.response.data)
8009
- return;
7936
+ if (!t || !t.response || !t.response.data) return;
8010
7937
  const r = t.response.data, o = [];
8011
7938
  for (const [l, n] of Object.entries(r.fields)) {
8012
7939
  const d = l.split(".").pop(), c = i[a].find((u) => u.property === d);
@@ -8140,8 +8067,7 @@ const Is = "data:image/jpeg;base64,/9j/4QZGRXhpZgAATU0AKgAAAAgADAEAAAMAAAABCgAAA
8140
8067
  const e = t, s = a, i = () => {
8141
8068
  s("error");
8142
8069
  }, r = _(() => {
8143
- if (e.assetStatus === Ge.Deleting)
8144
- return "mdi-trash-can";
8070
+ if (e.assetStatus === Ge.Deleting) return "mdi-trash-can";
8145
8071
  switch (e.assetType) {
8146
8072
  case qe.Audio:
8147
8073
  return e.assetStatus === Ge.WithFile ? "mdi-music" : "mdi-music-off";
@@ -8723,11 +8649,9 @@ function Lu() {
8723
8649
  }
8724
8650
  function Nh(t) {
8725
8651
  const { damCurrentUser: a, damCurrentUserIsSuperAdmin: e } = Lu();
8726
- if (e.value)
8727
- return xe(t);
8652
+ if (e.value) return xe(t);
8728
8653
  const s = a.value;
8729
- if (R(s))
8730
- return [];
8654
+ if (R(s)) return [];
8731
8655
  const i = s.adminToExtSystems.map((l) => l.id), r = s.assetLicences.map((l) => l.id), o = [];
8732
8656
  return t.forEach((l) => {
8733
8657
  if (i.includes(l.extSystem)) {
@@ -8739,8 +8663,7 @@ function Nh(t) {
8739
8663
  }
8740
8664
  function Nu(t) {
8741
8665
  const { damCurrentUser: a, damCurrentUserIsSuperAdmin: e } = Lu();
8742
- if (e.value)
8743
- return !0;
8666
+ if (e.value) return !0;
8744
8667
  const s = a.value;
8745
8668
  return R(s) ? [] : !!(s.adminToExtSystems.map((o) => o.id).includes(t.extSystem) || s.assetLicences.map((o) => o.id).includes(t.licence));
8746
8669
  }
@@ -8960,16 +8883,14 @@ function Ba() {
8960
8883
  }, Ba.apply(this, arguments);
8961
8884
  }
8962
8885
  function eF(t, a) {
8963
- if (t == null)
8964
- return {};
8886
+ if (t == null) return {};
8965
8887
  var e = {}, s = Object.keys(t), i, r;
8966
8888
  for (r = 0; r < s.length; r++)
8967
8889
  i = s[r], !(a.indexOf(i) >= 0) && (e[i] = t[i]);
8968
8890
  return e;
8969
8891
  }
8970
8892
  function tF(t, a) {
8971
- if (t == null)
8972
- return {};
8893
+ if (t == null) return {};
8973
8894
  var e = eF(t, a), s, i;
8974
8895
  if (Object.getOwnPropertySymbols) {
8975
8896
  var r = Object.getOwnPropertySymbols(t);
@@ -9018,8 +8939,7 @@ function pa(t, a, e, s) {
9018
8939
  do {
9019
8940
  if (a != null && (a[0] === ">" ? t.parentNode === e && Or(t, a) : Or(t, a)) || s && t === e)
9020
8941
  return t;
9021
- if (t === e)
9022
- break;
8942
+ if (t === e) break;
9023
8943
  } while (t = sF(t));
9024
8944
  }
9025
8945
  return null;
@@ -9096,10 +9016,8 @@ function ut(t, a, e, s, i) {
9096
9016
  function jl(t, a, e) {
9097
9017
  for (var s = rs(t, !0), i = ut(t)[a]; s; ) {
9098
9018
  var r = ut(s)[e], o = void 0;
9099
- if (e === "top" || e === "left" ? o = i >= r : o = i <= r, !o)
9100
- return s;
9101
- if (s === Aa())
9102
- break;
9019
+ if (e === "top" || e === "left" ? o = i >= r : o = i <= r, !o) return s;
9020
+ if (s === Aa()) break;
9103
9021
  s = rs(s, !1);
9104
9022
  }
9105
9023
  return !1;
@@ -9141,23 +9059,19 @@ function iF(t, a) {
9141
9059
  for (var e in t)
9142
9060
  if (t.hasOwnProperty(e)) {
9143
9061
  for (var s in a)
9144
- if (a.hasOwnProperty(s) && a[s] === t[e][s])
9145
- return Number(e);
9062
+ if (a.hasOwnProperty(s) && a[s] === t[e][s]) return Number(e);
9146
9063
  }
9147
9064
  return -1;
9148
9065
  }
9149
9066
  function rs(t, a) {
9150
- if (!t || !t.getBoundingClientRect)
9151
- return Aa();
9067
+ if (!t || !t.getBoundingClientRect) return Aa();
9152
9068
  var e = t, s = !1;
9153
9069
  do
9154
9070
  if (e.clientWidth < e.scrollWidth || e.clientHeight < e.scrollHeight) {
9155
9071
  var i = be(e);
9156
9072
  if (e.clientWidth < e.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || e.clientHeight < e.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
9157
- if (!e.getBoundingClientRect || e === document.body)
9158
- return Aa();
9159
- if (s || a)
9160
- return e;
9073
+ if (!e.getBoundingClientRect || e === document.body) return Aa();
9074
+ if (s || a) return e;
9161
9075
  s = !0;
9162
9076
  }
9163
9077
  }
@@ -9703,8 +9617,7 @@ Ce.prototype = /** @lends Sortable.prototype */
9703
9617
  // Returns true - if no further action is needed (either inserted or another condition)
9704
9618
  _onDragOver: function(a) {
9705
9619
  var e = this.el, s = a.target, i, r, o, l = this.options, n = l.group, d = Ce.active, c = ur === n, u = l.sort, p = qt || d, Y, v = this, F = !1;
9706
- if (An)
9707
- return;
9620
+ if (An) return;
9708
9621
  function g($, U) {
9709
9622
  Dt($, v, xa({
9710
9623
  evt: a,
@@ -9743,13 +9656,11 @@ Ce.prototype = /** @lends Sortable.prototype */
9743
9656
  originalEvent: a
9744
9657
  });
9745
9658
  }
9746
- if (a.preventDefault !== void 0 && a.cancelable && a.preventDefault(), s = pa(s, l.draggable, e, !0), g("dragOver"), Ce.eventCanceled)
9747
- return F;
9659
+ if (a.preventDefault !== void 0 && a.cancelable && a.preventDefault(), s = pa(s, l.draggable, e, !0), g("dragOver"), Ce.eventCanceled) return F;
9748
9660
  if (oe.contains(a.target) || s.animated && s.animatingX && s.animatingY || v._ignoreWhileAnimating === s)
9749
9661
  return h(!1);
9750
9662
  if (Rr = !1, d && !l.disabled && (c ? u || (o = ot !== et) : qt === this || (this.lastPutMode = ur.checkPull(this, d, oe, a)) && n.checkPut(this, d, oe, a))) {
9751
- if (Y = this._getDirection(a, s) === "vertical", i = ut(oe), g("dragOverValid"), Ce.eventCanceled)
9752
- return F;
9663
+ if (Y = this._getDirection(a, s) === "vertical", i = ut(oe), g("dragOverValid"), Ce.eventCanceled) return F;
9753
9664
  if (o)
9754
9665
  return ot = et, y(), this._hideClone(), g("revert"), Ce.eventCanceled || (ws ? et.insertBefore(oe, ws) : et.appendChild(oe)), h(!0);
9755
9666
  var X = tl(e, l.draggable);
@@ -9934,8 +9845,7 @@ Ce.prototype = /** @lends Sortable.prototype */
9934
9845
  },
9935
9846
  _hideClone: function() {
9936
9847
  if (!es) {
9937
- if (Dt("hideClone", this), Ce.eventCanceled)
9938
- return;
9848
+ if (Dt("hideClone", this), Ce.eventCanceled) return;
9939
9849
  be(it, "display", "none"), this.options.removeCloneOnHide && it.parentNode && it.parentNode.removeChild(it), es = !0;
9940
9850
  }
9941
9851
  },
@@ -9945,8 +9855,7 @@ Ce.prototype = /** @lends Sortable.prototype */
9945
9855
  return;
9946
9856
  }
9947
9857
  if (es) {
9948
- if (Dt("showClone", this), Ce.eventCanceled)
9949
- return;
9858
+ if (Dt("showClone", this), Ce.eventCanceled) return;
9950
9859
  oe.parentNode == et && !this.options.group.revertClone ? et.insertBefore(it, oe) : ws ? et.insertBefore(it, ws) : et.appendChild(it), this.options.group.revertClone && this.animate(oe, it), be(it, "display", ""), es = !1;
9951
9860
  }
9952
9861
  }
@@ -10387,8 +10296,7 @@ const rl = "a-sortable-", _F = ["id"], SF = { class: "a-sortable-widget__before"
10387
10296
  }
10388
10297
  i("onAddLast", null);
10389
10298
  }, u = _(() => R(s.widgetIdentifierId) ? rl + z.value : s.widgetIdentifierId), p = () => {
10390
- if (s.disableDraggable || !T.value)
10391
- return;
10299
+ if (s.disableDraggable || !T.value) return;
10392
10300
  const b = T.value.querySelector("." + Ur);
10393
10301
  b && (w.value = il(b, [], {
10394
10302
  handle: "." + Gs,
@@ -10396,8 +10304,7 @@ const rl = "a-sortable-", _F = ["id"], SF = { class: "a-sortable-widget__before"
10396
10304
  dragClass: uc,
10397
10305
  chosenClass: cc,
10398
10306
  onEnd: async (C) => {
10399
- if (s.disableDefaultSort || R(C.oldIndex) || R(C.newIndex))
10400
- return;
10307
+ if (s.disableDefaultSort || R(C.oldIndex) || R(C.newIndex)) return;
10401
10308
  const D = g(C.oldIndex, C.newIndex);
10402
10309
  i("onEnd", D);
10403
10310
  },
@@ -10662,8 +10569,7 @@ function PF(t, a, e) {
10662
10569
  })), D++;
10663
10570
  }
10664
10571
  }, h = (K, O, E = 0) => {
10665
- if (K === null)
10666
- return E;
10572
+ if (K === null) return E;
10667
10573
  const k = O.find((b) => b.data.id === K);
10668
10574
  return k ? (E++, h(k.data.parent, O, E)) : E;
10669
10575
  }, A = (K, O = 0) => {
@@ -11047,8 +10953,7 @@ const OF = ["data-id"], RF = { class: "a-sortable-nested-widget__nested" }, zF =
11047
10953
  }
11048
10954
  i("onAddLast", null);
11049
10955
  }, { t: u } = ee(), p = _(() => R(s.widgetIdentifierId) ? rl + y.value : s.widgetIdentifierId), Y = _(() => s.rootClassName + " " + (F.value ? s.rootClassName + "--dragging" : "")), v = () => {
11050
- if (s.disableDraggable || !g.value)
11051
- return;
10956
+ if (s.disableDraggable || !g.value) return;
11052
10957
  const k = Array.from(g.value.querySelectorAll("." + ed));
11053
10958
  E.value = [];
11054
10959
  for (let b = 0; b < k.length; b++)
@@ -11074,14 +10979,11 @@ const OF = ["data-id"], RF = { class: "a-sortable-nested-widget__nested" }, zF =
11074
10979
  onEnd: (C) => {
11075
10980
  F.value = !1, Wt(() => {
11076
10981
  const D = ai(C.item.getAttribute("data-id") ?? "0");
11077
- if (D < 1)
11078
- return;
10982
+ if (D < 1) return;
11079
10983
  const $ = C.newIndex;
11080
- if (R($))
11081
- return;
10984
+ if (R($)) return;
11082
10985
  const U = C.oldIndex;
11083
- if (R(U))
11084
- return;
10986
+ if (R(U)) return;
11085
10987
  let G = null;
11086
10988
  const J = C.item.parentElement;
11087
10989
  se(J) || (G = ai(J.getAttribute("data-id") ?? "0"), G === 0 && (G = null));
@@ -11787,8 +11689,7 @@ function vg() {
11787
11689
  }
11788
11690
  const Ls = (t) => {
11789
11691
  var e;
11790
- if (!t)
11791
- return "";
11692
+ if (!t) return "";
11792
11693
  if (t.type && t.type.length > 0)
11793
11694
  return t.type;
11794
11695
  switch ((e = t.name.split(".").pop()) == null ? void 0 : e.toLowerCase()) {
@@ -11983,8 +11884,7 @@ const Ag = (t, a) => {
11983
11884
  for (const [e, s] of Object.entries(a))
11984
11885
  if (Object.values(qe).includes(e)) {
11985
11886
  for (let i = 0; i < s.mimeTypes.length; i++)
11986
- if (t === s.mimeTypes[i])
11987
- return e;
11887
+ if (t === s.mimeTypes[i]) return e;
11988
11888
  }
11989
11889
  return null;
11990
11890
  }, sn = S(void 0);
@@ -12085,8 +11985,7 @@ function Vc(t) {
12085
11985
  return Ig * 1e3 * t.notificationFallbackTry * t.notificationFallbackTry;
12086
11986
  }
12087
11987
  async function pc(t, a) {
12088
- if (clearTimeout(a.notificationFallbackTimer), a.status === Ne.Uploaded || a.notificationFallbackTry > _g || !a.assetId)
12089
- return;
11988
+ if (clearTimeout(a.notificationFallbackTimer), a.status === Ne.Uploaded || a.notificationFallbackTry > _g || !a.assetId) return;
12090
11989
  const e = await is(t, a.assetId);
12091
11990
  if (e && e.mainFile && e.mainFile.fileAttributes) {
12092
11991
  const s = Qt();
@@ -12266,8 +12165,7 @@ var vc = { exports: {} };
12266
12165
  return n.join("");
12267
12166
  }, e.exports.ceilHeapSize = function(o) {
12268
12167
  var l = 0;
12269
- if (o <= 65536)
12270
- return 65536;
12168
+ if (o <= 65536) return 65536;
12271
12169
  if (o < 16777216)
12272
12170
  for (l = 1; l < o; l = l << 1)
12273
12171
  ;
@@ -12400,8 +12298,7 @@ var vc = { exports: {} };
12400
12298
  var F = {};
12401
12299
  F[v] = [];
12402
12300
  var g = Y.toString(), y = g.match(/^function\s?\(\w+,\s*\w+,\s*(\w+)\)/);
12403
- if (!y)
12404
- return F;
12301
+ if (!y) return F;
12405
12302
  for (var h = y[1], A = new RegExp("(\\\\n|\\W)" + n(h) + l, "g"), X; X = A.exec(g); )
12406
12303
  X[3] !== "dll-reference" && F[v].push(X[3]);
12407
12304
  for (A = new RegExp("\\(" + n(h) + '\\("(dll-reference\\s(' + o + '))"\\)\\)' + l, "g"); X = A.exec(g); )
@@ -12738,8 +12635,7 @@ function Lg(t, a = void 0) {
12738
12635
  var x;
12739
12636
  a && g();
12740
12637
  const A = (x = t.file) == null ? void 0 : x.size;
12741
- if (R(A))
12742
- return Promise.reject();
12638
+ if (R(A)) return Promise.reject();
12743
12639
  let X = 0;
12744
12640
  for (; X < A; ) {
12745
12641
  const w = await F(X);
@@ -12778,8 +12674,7 @@ function PK() {
12778
12674
  retries: 5,
12779
12675
  delay: 5e3,
12780
12676
  onFailed() {
12781
- if (!a)
12782
- return;
12677
+ if (!a) return;
12783
12678
  const { showWarning: r } = We();
12784
12679
  setTimeout(() => {
12785
12680
  r(Ug("common.damImage.notificationsNotConnected"));
@@ -12787,8 +12682,7 @@ function PK() {
12787
12682
  }
12788
12683
  },
12789
12684
  onMessage(r, o) {
12790
- if (!a)
12791
- return;
12685
+ if (!a) return;
12792
12686
  const l = JSON.parse(o.data), n = l.data.length ? JSON.parse(l.data) : void 0;
12793
12687
  e.emit({ name: l.eventName, data: n });
12794
12688
  }
@@ -12878,8 +12772,7 @@ function Fc(t, a, e, s = "id") {
12878
12772
  return i.value.get(h);
12879
12773
  },
12880
12774
  isLoaded: (h) => {
12881
- if (!h)
12882
- return !1;
12775
+ if (!h) return !1;
12883
12776
  const A = i.value.get(h);
12884
12777
  return A ? A._loaded : !1;
12885
12778
  }
@@ -12999,8 +12892,7 @@ const Zg = (t) => ({
12999
12892
  throw new Error("Ext system must be initialised.");
13000
12893
  for await (const te of U) {
13001
12894
  const fe = Ag(Ls(te), J);
13002
- if (!fe || fe !== qe.Image)
13003
- continue;
12895
+ if (!fe || fe !== qe.Image) continue;
13004
12896
  const me = r(
13005
12897
  "file_" + te.name,
13006
12898
  nl.File,
@@ -13055,8 +12947,7 @@ const Zg = (t) => ({
13055
12947
  async function h(C) {
13056
12948
  try {
13057
12949
  const D = await is(o, C);
13058
- if (!D)
13059
- return;
12950
+ if (!D) return;
13060
12951
  i.value.forEach(($, U) => {
13061
12952
  $.items.forEach((G) => {
13062
12953
  var J;
@@ -13068,8 +12959,7 @@ const Zg = (t) => ({
13068
12959
  }
13069
12960
  async function A(C, D = null, $ = null) {
13070
12961
  const { updateNewNames: U, getAuthorConflicts: G } = on();
13071
- if (!D || !$ || $ !== qe.Image)
13072
- return;
12962
+ if (!D || !$ || $ !== qe.Image) return;
13073
12963
  let J = null;
13074
12964
  try {
13075
12965
  J = await Vo(o, D);
@@ -13136,8 +13026,7 @@ const Zg = (t) => ({
13136
13026
  }
13137
13027
  function K(C) {
13138
13028
  const D = i.value.get(C);
13139
- if (!D || D.items.length === 0)
13140
- return;
13029
+ if (!D || D.items.length === 0) return;
13141
13030
  const $ = v(C, Ne.Uploading);
13142
13031
  D.items.forEach((U) => {
13143
13032
  U.status = Ne.Stop;
@@ -13165,8 +13054,7 @@ const Zg = (t) => ({
13165
13054
  }
13166
13055
  function b(C) {
13167
13056
  const D = [], $ = i.value.get(C);
13168
- if (!$)
13169
- return D;
13057
+ if (!$) return D;
13170
13058
  if ($.items.length > 0)
13171
13059
  for (let U = 0; U < $.items.length; U++)
13172
13060
  D.includes($.items[U].assetType) || D.push($.items[U].assetType);
@@ -13207,8 +13095,7 @@ const Zg = (t) => ({
13207
13095
  });
13208
13096
  async function gq(t, a) {
13209
13097
  const e = Math.ceil(a.length / nn), s = [];
13210
- if (a.length === 0)
13211
- return Promise.resolve([]);
13098
+ if (a.length === 0) return Promise.resolve([]);
13212
13099
  for (let i = 0; i < e; i++) {
13213
13100
  const r = i * nn, l = { images: a.slice(r, r + nn) }, n = await t().put(mi, JSON.stringify(l));
13214
13101
  s.push(n);
@@ -13784,8 +13671,7 @@ const Oq = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
13784
13671
  }, o = () => {
13785
13672
  s("error");
13786
13673
  }, l = _(() => {
13787
- if (e.assetStatus === Ge.Deleting)
13788
- return "mdi-trash-can";
13674
+ if (e.assetStatus === Ge.Deleting) return "mdi-trash-can";
13789
13675
  switch (e.assetType) {
13790
13676
  case qe.Audio:
13791
13677
  return e.assetStatus === Ge.WithFile ? "mdi-music" : "mdi-music-off";
@@ -13799,8 +13685,7 @@ const Oq = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
13799
13685
  return "";
13800
13686
  }
13801
13687
  }), n = _(() => {
13802
- if (!e.uploadingProgress)
13803
- return "0%";
13688
+ if (!e.uploadingProgress) return "0%";
13804
13689
  const v = Math.ceil(e.uploadingProgress);
13805
13690
  return v > 100 ? "100%" : v + "%";
13806
13691
  }), d = _(() => [Ge.Deleting, Ge.Draft].includes(e.assetStatus) ? "#ccc" : e.backgroundColor), c = _(() => e.assetStatus === Ge.WithFile ? "#505050" : "#8f8f8f"), u = _(() => R(e.src) ? Is : e.src), p = _(() => e.hideIcon ? !1 : !(e.assetType === qe.Image && e.src)), { remainingTimeShort: Y } = Pq();
@@ -14273,8 +14158,7 @@ const A7 = { class: "w-100 text-right" }, fl = /* @__PURE__ */ W({
14273
14158
  },
14274
14159
  setup(t) {
14275
14160
  const a = t, { getCachedAuthor: e } = Gi(), s = Qt(), i = ft(void 0), r = ft(!1), o = _(() => e(a.id)), l = _(() => {
14276
- if (!a.queueId)
14277
- return;
14161
+ if (!a.queueId) return;
14278
14162
  const d = s.getQueue(a.queueId);
14279
14163
  if (!(!d || !i.value) && d.suggestions.newAuthorNames.has(i.value.name))
14280
14164
  return "mdi-new-box";
@@ -14820,8 +14704,7 @@ const B7 = { key: 1 }, pd = /* @__PURE__ */ W({
14820
14704
  },
14821
14705
  setup(t) {
14822
14706
  const a = t, { getCachedKeyword: e } = qo(), s = Qt(), i = ft(void 0), r = ft(!1), o = _(() => e(a.id)), l = _(() => {
14823
- if (!a.queueId)
14824
- return;
14707
+ if (!a.queueId) return;
14825
14708
  const d = s.getQueue(a.queueId);
14826
14709
  if (!(!d || !i.value) && d.suggestions.newKeywordNames.has(i.value.name))
14827
14710
  return "mdi-new-box";
@@ -15821,13 +15704,11 @@ function zc(t) {
15821
15704
  return t;
15822
15705
  }
15823
15706
  function gY(t, a) {
15824
- if (typeof t != "object" || !t)
15825
- return t;
15707
+ if (typeof t != "object" || !t) return t;
15826
15708
  var e = t[Symbol.toPrimitive];
15827
15709
  if (e !== void 0) {
15828
15710
  var s = e.call(t, a || "default");
15829
- if (typeof s != "object")
15830
- return s;
15711
+ if (typeof s != "object") return s;
15831
15712
  throw new TypeError("@@toPrimitive must return a primitive value.");
15832
15713
  }
15833
15714
  return (a === "string" ? String : Number)(t);
@@ -15871,28 +15752,22 @@ function Nc(t) {
15871
15752
  return AY(t) || yY(t) || bY(t) || CY();
15872
15753
  }
15873
15754
  function AY(t) {
15874
- if (Array.isArray(t))
15875
- return In(t);
15755
+ if (Array.isArray(t)) return In(t);
15876
15756
  }
15877
15757
  function yY(t) {
15878
- if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null)
15879
- return Array.from(t);
15758
+ if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
15880
15759
  }
15881
15760
  function bY(t, a) {
15882
15761
  if (t) {
15883
- if (typeof t == "string")
15884
- return In(t, a);
15762
+ if (typeof t == "string") return In(t, a);
15885
15763
  var e = Object.prototype.toString.call(t).slice(8, -1);
15886
- if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set")
15887
- return Array.from(t);
15888
- if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))
15889
- return In(t, a);
15764
+ if (e === "Object" && t.constructor && (e = t.constructor.name), e === "Map" || e === "Set") return Array.from(t);
15765
+ if (e === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)) return In(t, a);
15890
15766
  }
15891
15767
  }
15892
15768
  function In(t, a) {
15893
15769
  (a == null || a > t.length) && (a = t.length);
15894
- for (var e = 0, s = new Array(a); e < a; e++)
15895
- s[e] = t[e];
15770
+ for (var e = 0, s = new Array(a); e < a; e++) s[e] = t[e];
15896
15771
  return s;
15897
15772
  }
15898
15773
  function CY() {
@@ -16213,8 +16088,7 @@ function ns(t) {
16213
16088
  if (r && o) {
16214
16089
  var l = e * a;
16215
16090
  i === "contain" && l > s || i === "cover" && l < s ? e = s / a : s = e * a;
16216
- } else
16217
- r ? e = s / a : o && (s = e * a);
16091
+ } else r ? e = s / a : o && (s = e * a);
16218
16092
  return {
16219
16093
  width: s,
16220
16094
  height: e
@@ -16789,8 +16663,7 @@ var tX = {
16789
16663
  pageY: s.pageY
16790
16664
  };
16791
16665
  r.left -= (c - o) * ((v.pageX - Y.left - r.left) / o), r.top -= (u - l) * ((v.pageY - Y.top - r.top) / l);
16792
- } else
16793
- Us(e) && Te(e.x) && Te(e.y) ? (r.left -= (c - o) * ((e.x - r.left) / o), r.top -= (u - l) * ((e.y - r.top) / l)) : (r.left -= (c - o) / 2, r.top -= (u - l) / 2);
16666
+ } else Us(e) && Te(e.x) && Te(e.y) ? (r.left -= (c - o) * ((e.x - r.left) / o), r.top -= (u - l) * ((e.y - r.top) / l)) : (r.left -= (c - o) / 2, r.top -= (u - l) / 2);
16794
16667
  r.width = c, r.height = u, this.renderCanvas(!0);
16795
16668
  }
16796
16669
  return this;
@@ -17020,8 +16893,7 @@ var tX = {
17020
16893
  if (this.isImg = !0, i = e.getAttribute("src") || "", this.originalUrl = i, !i)
17021
16894
  return;
17022
16895
  i = e.src;
17023
- } else
17024
- s === "canvas" && window.HTMLCanvasElement && (i = e.toDataURL());
16896
+ } else s === "canvas" && window.HTMLCanvasElement && (i = e.toDataURL());
17025
16897
  this.load(i);
17026
16898
  }
17027
16899
  }
@@ -18100,8 +17972,7 @@ const XX = { key: 0 }, AX = /* @__PURE__ */ W({
18100
17972
  }
18101
17973
  }, Me = async () => {
18102
17974
  var Q;
18103
- if (F.value.length === 0)
18104
- return;
17975
+ if (F.value.length === 0) return;
18105
17976
  let Xe = "", _e = "";
18106
17977
  try {
18107
17978
  const ne = await Pr(U, F.value);
@@ -18567,8 +18438,7 @@ const XX = { key: 0 }, AX = /* @__PURE__ */ W({
18567
18438
  O.value = !0, x.setImageDetail(null), j.value = !0;
18568
18439
  let Ft = "", ua = "";
18569
18440
  if (de.type === "asset") {
18570
- if (!de.value[0] || !de.value[0].mainFile)
18571
- return;
18441
+ if (!de.value[0] || !de.value[0].mainFile) return;
18572
18442
  try {
18573
18443
  const ga = await is(ae, de.value[0].id);
18574
18444
  Pt((Ue = ga.metadata.customData) == null ? void 0 : Ue.description) && (Ft = ga.metadata.customData.description.trim()), ga.authors.length > 0 && (ua = (await ci(
@@ -20260,8 +20130,7 @@ const MA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, $A = { clas
20260
20130
  const Ve = await kc(n, s.modelValue);
20261
20131
  g.setImages(
20262
20132
  Ve.map((ae) => {
20263
- if (R(ae.position))
20264
- throw new Error("Image object needs position field!");
20133
+ if (R(ae.position)) throw new Error("Image object needs position field!");
20265
20134
  return g.updateMaxPositionIfGreater(ae.position), {
20266
20135
  key: ts(),
20267
20136
  ...ae
@@ -20327,8 +20196,7 @@ const MA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, $A = { clas
20327
20196
  });
20328
20197
  }, O = async (Ve) => {
20329
20198
  if (Ve.type === "asset") {
20330
- if (Ve.value.length === 0)
20331
- return;
20199
+ if (Ve.value.length === 0) return;
20332
20200
  const ae = await K(Ve.value.filter((Ae) => !se(Ae.mainFile)));
20333
20201
  g.addImages(ae);
20334
20202
  }
@@ -20396,8 +20264,7 @@ const MA = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, $A = { clas
20396
20264
  y.value.splice(ae, 0, Ae), ve(), ne();
20397
20265
  }
20398
20266
  }, Le = () => {
20399
- if (s.disableDraggable || !fe.value)
20400
- return;
20267
+ if (s.disableDraggable || !fe.value) return;
20401
20268
  const Ve = fe.value.querySelector("." + Ur);
20402
20269
  Ve && (Me.value = il(Ve, [], {
20403
20270
  handle: "." + Gs,
@@ -20932,14 +20799,11 @@ function UK(t, a, e, s, i, r) {
20932
20799
  loading: d,
20933
20800
  onRowClick: (z) => {
20934
20801
  const H = z.target;
20935
- if (!H)
20936
- return;
20802
+ if (!H) return;
20937
20803
  const j = H.parentElement;
20938
- if (!j || !j.classList.contains("v-data-table__tr"))
20939
- return;
20804
+ if (!j || !j.classList.contains("v-data-table__tr")) return;
20940
20805
  const K = j.firstElementChild;
20941
- if (!K || !K.classList.contains("v-data-table__td"))
20942
- return;
20806
+ if (!K || !K.classList.contains("v-data-table__td")) return;
20943
20807
  const O = K.querySelector("input");
20944
20808
  O && O.click();
20945
20809
  },
@@ -20959,8 +20823,7 @@ const jK = (t, a) => ({
20959
20823
  if (t === a && t === 1)
20960
20824
  return new Set(s ? [(r = e[0]) == null ? void 0 : r.value] : []);
20961
20825
  for (const o of e) {
20962
- if (i.size >= a && s)
20963
- break;
20826
+ if (i.size >= a && s) break;
20964
20827
  s ? i.add(o.value) : i.delete(o.value);
20965
20828
  }
20966
20829
  return i;
@@ -23377,7 +23240,7 @@ const iD = {
23377
23240
  })
23378
23241
  });
23379
23242
  async function VD() {
23380
- (await import("./webfontloader-BgWywGVH.js").then((a) => a.w)).load({
23243
+ (await import("./webfontloader-BSLWQJFx.js").then((a) => a.w)).load({
23381
23244
  google: {
23382
23245
  families: ["Roboto:100,300,400,500,700,900&display=swap"]
23383
23246
  }
@@ -23525,8 +23388,7 @@ function gD(t, a = !1) {
23525
23388
  objectSetDataByField: v,
23526
23389
  acquireCollabAnyLock: (y, h = {}) => {
23527
23390
  var X;
23528
- if (!e.value.enabled || R(s.value))
23529
- return;
23391
+ if (!e.value.enabled || R(s.value)) return;
23530
23392
  const A = o.get(t);
23531
23393
  A && A.status === sa.Inactive || (X = s.value) == null || X.timeout(1e3).emit("acquireFieldLock", t, y, h, (x, w) => {
23532
23394
  var z;
@@ -23550,8 +23412,7 @@ function gD(t, a = !1) {
23550
23412
  },
23551
23413
  releaseCollabAnyLock: (y, h, A = {}) => {
23552
23414
  var x, w;
23553
- if (!e.value.enabled || R(s.value))
23554
- return;
23415
+ if (!e.value.enabled || R(s.value)) return;
23555
23416
  const X = o.get(t);
23556
23417
  if (X && X.status === sa.Inactive) {
23557
23418
  r.has(t) || r.set(t, /* @__PURE__ */ new Map()), (x = r.get(t)) == null || x.set(y, h);
@@ -24199,4 +24060,4 @@ export {
24199
24060
  QS as y,
24200
24061
  Hs as z
24201
24062
  };
24202
- //# sourceMappingURL=lib-tqrip3Fo.js.map
24063
+ //# sourceMappingURL=lib-vv6PGFOv.js.map