@anzusystems/common-admin 1.47.0-beta.90 → 1.47.0-beta.91

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.
@@ -432,7 +432,7 @@ function cu() {
432
432
  };
433
433
  }
434
434
  function Fs(a, t, e = !1) {
435
- const { collabOptions: s } = aa(), { currentUserId: i } = cu(), { collabSocket: r, collabFieldLocksState: o, collabFieldDataBufferState: l, collabRoomInfoState: n } = co(), d = Wn(), c = S(), u = S(), f = du(), g = S(), v = S(), q = tu(), h = S(), x = S(), F = (K, E) => {
435
+ const { collabOptions: s } = aa(), { currentUserId: i } = cu(), { collabSocket: r, collabFieldLocksState: o, collabFieldDataBufferState: l, collabRoomInfoState: n } = co(), d = Wn(), c = S(), u = S(), f = du(), q = S(), v = S(), g = tu(), h = S(), x = S(), F = (K, E) => {
436
436
  K.room !== a || K.field !== t || L(E) || L(u.value) || u.value(E);
437
437
  }, y = (K, E) => {
438
438
  K.room !== a || K.field !== t || L(E) || L(v.value) || v.value(E);
@@ -441,14 +441,14 @@ function Fs(a, t, e = !1) {
441
441
  }, A = (K) => {
442
442
  u.value = K, c.value = d.on(F);
443
443
  }, b = (K) => {
444
- v.value = K, g.value = f.on(y);
444
+ v.value = K, q.value = f.on(y);
445
445
  }, B = (K) => {
446
- x.value = K, h.value = q.on(
446
+ x.value = K, h.value = g.on(
447
447
  X
448
448
  );
449
449
  };
450
450
  Ln(() => {
451
- e || (he(c.value) && c.value(), he(g.value) && g.value(), he(h.value) && h.value());
451
+ e || (he(c.value) && c.value(), he(q.value) && q.value(), he(h.value) && h.value());
452
452
  });
453
453
  const N = _(() => {
454
454
  const K = o.get(a);
@@ -523,7 +523,7 @@ function Fs(a, t, e = !1) {
523
523
  lockedByUser: N,
524
524
  collabFieldDataBufferState: l,
525
525
  unsubscribeCollabFieldDataChangeListener: c,
526
- unsubscribeCollabFieldLockStatusListener: g,
526
+ unsubscribeCollabFieldLockStatusListener: q,
527
527
  unsubscribeCollabGatheringBufferData: h
528
528
  };
529
529
  }
@@ -580,12 +580,12 @@ const kf = {
580
580
  }
581
581
  const { t: d } = ee(), c = at(_a, void 0), u = at(Sa, void 0), f = (y) => {
582
582
  s("update:modelValue", y);
583
- }, g = () => {
583
+ }, q = () => {
584
584
  var y;
585
585
  s("blur", e.modelValue), (y = e.v) == null || y.$touch(), o.value(e.modelValue);
586
586
  }, v = () => {
587
587
  s("focus", e.modelValue), l.value();
588
- }, q = _(() => {
588
+ }, g = _(() => {
589
589
  var y, X;
590
590
  return he(e.errorMessage) ? [e.errorMessage] : (X = (y = e.v) == null ? void 0 : y.$errors) != null && X.length ? [e.v.$errors.map((A) => A.$message).join(" ")] : [];
591
591
  }), h = _(() => {
@@ -603,7 +603,7 @@ const kf = {
603
603
  ref: i,
604
604
  "prepend-icon": y.prependIcon,
605
605
  "data-cy": y.dataCy,
606
- "error-messages": q.value,
606
+ "error-messages": g.value,
607
607
  "model-value": y.modelValue,
608
608
  required: x.value,
609
609
  type: y.type,
@@ -615,7 +615,7 @@ const kf = {
615
615
  "persistent-placeholder": y.persistentPlaceholder,
616
616
  trim: "",
617
617
  "onClick:append": X[0] || (X[0] = (A) => s("click:append", A)),
618
- onBlur: g,
618
+ onBlur: q,
619
619
  onFocus: v,
620
620
  "onUpdate:modelValue": X[1] || (X[1] = (A) => f(A))
621
621
  }, ua({ _: 2 }, [
@@ -708,12 +708,12 @@ const kf = {
708
708
  }
709
709
  const { t: d } = ee(), c = at(_a, void 0), u = at(Sa, void 0), f = (X) => {
710
710
  s("update:modelValue", X);
711
- }, g = () => {
711
+ }, q = () => {
712
712
  var X;
713
713
  s("blur", e.modelValue), (X = e.v) == null || X.$touch(), o.value(e.modelValue);
714
714
  }, v = () => {
715
715
  s("focus", e.modelValue), l.value();
716
- }, q = _(() => {
716
+ }, g = _(() => {
717
717
  var X, A;
718
718
  return he(e.errorMessage) ? [e.errorMessage] : (A = (X = e.v) == null ? void 0 : X.$errors) != null && A.length ? [e.v.$errors.map((b) => b.$message).join(" ")] : [];
719
719
  }), h = _(() => {
@@ -731,7 +731,7 @@ const kf = {
731
731
  ref: i,
732
732
  "prepend-icon": X.prependIcon,
733
733
  "data-cy": X.dataCy,
734
- "error-messages": q.value,
734
+ "error-messages": g.value,
735
735
  "model-value": X.modelValue,
736
736
  required: x.value,
737
737
  disabled: F.value,
@@ -740,7 +740,7 @@ const kf = {
740
740
  "append-icon": X.appendIcon,
741
741
  trim: "",
742
742
  "onClick:append": A[0] || (A[0] = (b) => s("click:append", b)),
743
- onBlur: g,
743
+ onBlur: q,
744
744
  onFocus: v,
745
745
  "onUpdate:modelValue": A[1] || (A[1] = (b) => f(b))
746
746
  }, ua({ _: 2 }, [
@@ -827,15 +827,15 @@ const kf = {
827
827
  set(y) {
828
828
  s("update:modelValue", ye(y));
829
829
  }
830
- }), { t: r } = ee(), o = _(() => Math.ceil(i.value.totalCount / i.value.rowsPerPage)), l = _(() => i.value.page * i.value.rowsPerPage - i.value.rowsPerPage + 1), n = _(() => i.value.page * i.value.rowsPerPage - i.value.rowsPerPage + i.value.currentViewCount), d = _(() => i.value.page === 1), c = _(() => !te(i.value.hasNextPage) || i.value.page === o.value), u = _(() => te(i.value.hasNextPage) && i.value.page === o.value || i.value.hasNextPage === !1), f = _(() => te(i.value.hasNextPage) ? i.value.totalCount : i.value.hasNextPage ? n.value + 1 + "+" : n.value), g = _(() => i.value.rowsPerPage);
831
- qe(g, (y, X) => {
830
+ }), { t: r } = ee(), o = _(() => Math.ceil(i.value.totalCount / i.value.rowsPerPage)), l = _(() => i.value.page * i.value.rowsPerPage - i.value.rowsPerPage + 1), n = _(() => i.value.page * i.value.rowsPerPage - i.value.rowsPerPage + i.value.currentViewCount), d = _(() => i.value.page === 1), c = _(() => !te(i.value.hasNextPage) || i.value.page === o.value), u = _(() => te(i.value.hasNextPage) && i.value.page === o.value || i.value.hasNextPage === !1), f = _(() => te(i.value.hasNextPage) ? i.value.totalCount : i.value.hasNextPage ? n.value + 1 + "+" : n.value), q = _(() => i.value.rowsPerPage);
831
+ qe(q, (y, X) => {
832
832
  y !== X && (i.value.page = 1, s("change"));
833
833
  });
834
834
  const v = _(() => i.value.page);
835
835
  qe(v, (y, X) => {
836
836
  y !== X && s("change");
837
837
  });
838
- const q = () => {
838
+ const g = () => {
839
839
  i.value.page = 1;
840
840
  }, h = () => {
841
841
  i.value.page = o.value;
@@ -880,7 +880,7 @@ const kf = {
880
880
  icon: "mdi-page-first",
881
881
  size: "small",
882
882
  variant: "text",
883
- onClick: J(q, ["stop"])
883
+ onClick: J(g, ["stop"])
884
884
  }, null, 8, ["disabled"]),
885
885
  m(ie, {
886
886
  disabled: d.value,
@@ -1026,26 +1026,26 @@ const kf = {
1026
1026
  { id: 1, titleT: "common.system.datatable.ordering.mostRecent", sortBy: { key: "createdAt", order: "desc" } },
1027
1027
  { id: 2, titleT: "common.system.datatable.ordering.oldest", sortBy: { key: "createdAt", order: "asc" } }
1028
1028
  ], d = _(() => {
1029
- const f = c.value.find((g) => g.id === r.value);
1029
+ const f = c.value.find((q) => q.id === r.value);
1030
1030
  return f ? i(f.titleT) : "";
1031
1031
  }), c = _(() => e.customOptions ? e.customOptions : e.variant === "most-relevant" ? n : l), u = (f) => {
1032
1032
  o.value = f.id;
1033
1033
  };
1034
1034
  return qe(
1035
1035
  r,
1036
- (f, g) => {
1037
- if (L(g) || f === g) return;
1038
- const v = c.value.find((q) => q.id === f);
1036
+ (f, q) => {
1037
+ if (L(q) || f === q) return;
1038
+ const v = c.value.find((g) => g.id === f);
1039
1039
  v && s("sortByChange", v);
1040
1040
  },
1041
1041
  { immediate: !0 }
1042
1042
  ), qe(
1043
1043
  o,
1044
- (f, g) => {
1045
- L(g) || f === g || (r.value = f);
1044
+ (f, q) => {
1045
+ L(q) || f === q || (r.value = f);
1046
1046
  },
1047
1047
  { immediate: !0 }
1048
- ), (f, g) => (Y(), R("div", $f, [
1048
+ ), (f, q) => (Y(), R("div", $f, [
1049
1049
  U("div", Bf, k(V(i)("common.system.datatable.ordering.title")) + ": ", 1),
1050
1050
  m(ie, {
1051
1051
  variant: "text",
@@ -1068,7 +1068,7 @@ const kf = {
1068
1068
  default: p(() => [
1069
1069
  (Y(!0), R(ge, null, je(c.value, (v) => (Y(), T(Ze, {
1070
1070
  key: v.id,
1071
- onClick: (q) => u(v)
1071
+ onClick: (g) => u(v)
1072
1072
  }, {
1073
1073
  default: p(() => [
1074
1074
  m(fs, {
@@ -1362,7 +1362,7 @@ const fr = {
1362
1362
  }, f = (z) => {
1363
1363
  var M;
1364
1364
  a.pauseOnHover && ((M = z.timer) == null || M.stop());
1365
- }, g = (z) => {
1365
+ }, q = (z) => {
1366
1366
  var M;
1367
1367
  a.pauseOnHover && ((M = z.timer) == null || M.start());
1368
1368
  }, v = (z = {}) => {
@@ -1398,7 +1398,7 @@ const fr = {
1398
1398
  return;
1399
1399
  }
1400
1400
  G ? (i.value.push($), t("start", $), l.value.length > a.max && (Z = 0)) : (i.value.unshift($), t("start", $), l.value.length > a.max && (Z = l.value.length - 1)), Z !== -1 && F(l.value[Z]);
1401
- }, q = (z) => {
1401
+ }, g = (z) => {
1402
1402
  y(z);
1403
1403
  }, h = (z) => ["vue-notification-template", a.classes, z.type || ""], x = (z) => o.value ? void 0 : {
1404
1404
  transition: `all ${z.speed}ms`
@@ -1431,7 +1431,7 @@ const fr = {
1431
1431
  i.value = i.value.filter((z) => z.state !== fr.DESTROYED);
1432
1432
  }
1433
1433
  return Yt(() => {
1434
- Lr.on("add", v), Lr.on("close", q);
1434
+ Lr.on("add", v), Lr.on("close", g);
1435
1435
  }), () => {
1436
1436
  let z;
1437
1437
  return m("div", {
@@ -1447,7 +1447,7 @@ const fr = {
1447
1447
  style: x(M),
1448
1448
  "data-id": M.id,
1449
1449
  onMouseenter: () => f(M),
1450
- onMouseleave: () => g(M)
1450
+ onMouseleave: () => q(M)
1451
1451
  }, [e.body ? e.body({
1452
1452
  item: M,
1453
1453
  class: [a.classes, M.type],
@@ -1554,71 +1554,71 @@ class Ea extends Error {
1554
1554
  const ha = 3, Fu = `
1555
1555
  `;
1556
1556
  function He() {
1557
- const a = (q, h = ha) => {
1557
+ const a = (g, h = ha) => {
1558
1558
  oa({
1559
1559
  group: "alerts",
1560
- text: q,
1560
+ text: g,
1561
1561
  duration: h * 1e3,
1562
1562
  type: "success"
1563
1563
  });
1564
- }, t = (q, h = ha) => {
1564
+ }, t = (g, h = ha) => {
1565
1565
  const { t: x } = De.global;
1566
- a(x(q), h);
1567
- }, e = (q, h = ha) => {
1566
+ a(x(g), h);
1567
+ }, e = (g, h = ha) => {
1568
1568
  oa({
1569
1569
  group: "alerts",
1570
- text: q,
1570
+ text: g,
1571
1571
  duration: h * 1e3,
1572
1572
  type: "error"
1573
1573
  });
1574
- }, s = (q, h = ha) => {
1574
+ }, s = (g, h = ha) => {
1575
1575
  const { t: x } = De.global;
1576
- e(x(q), h);
1577
- }, i = (q, h = ha) => {
1576
+ e(x(g), h);
1577
+ }, i = (g, h = ha) => {
1578
1578
  oa({
1579
1579
  group: "alerts",
1580
- text: q,
1580
+ text: g,
1581
1581
  duration: h * 1e3,
1582
1582
  type: "info"
1583
1583
  });
1584
- }, r = (q, h = ha) => {
1584
+ }, r = (g, h = ha) => {
1585
1585
  const { t: x } = De.global;
1586
- i(x(q), h);
1587
- }, o = (q, h = ha) => {
1586
+ i(x(g), h);
1587
+ }, o = (g, h = ha) => {
1588
1588
  oa({
1589
1589
  group: "alerts",
1590
- text: q,
1590
+ text: g,
1591
1591
  duration: h * 1e3,
1592
1592
  type: "warning"
1593
1593
  });
1594
- }, l = (q, h = ha) => {
1594
+ }, l = (g, h = ha) => {
1595
1595
  const { t: x } = De.global;
1596
- o(x(q), h);
1597
- }, n = (q = ha) => {
1596
+ o(x(g), h);
1597
+ }, n = (g = ha) => {
1598
1598
  const { t: h } = De.global;
1599
1599
  oa({
1600
1600
  group: "alerts",
1601
1601
  text: h("common.alert.fixValidationErrors"),
1602
- duration: q * 1e3,
1602
+ duration: g * 1e3,
1603
1603
  type: "error"
1604
1604
  });
1605
- }, d = (q, h = ha) => {
1605
+ }, d = (g, h = ha) => {
1606
1606
  const { t: x } = De.global;
1607
1607
  oa({
1608
1608
  group: "alerts",
1609
- text: x("common.alert.recordWas." + q),
1609
+ text: x("common.alert.recordWas." + g),
1610
1610
  duration: h * 1e3,
1611
1611
  type: "success"
1612
1612
  });
1613
- }, c = (q, h = -1, x = !1) => {
1613
+ }, c = (g, h = -1, x = !1) => {
1614
1614
  const { t: F, te: y } = De.global, X = [F("common.alert.fixApiValidationErrors")];
1615
- for (let A = 0; A < q.length; A++) {
1615
+ for (let A = 0; A < g.length; A++) {
1616
1616
  let b = "";
1617
- x ? b += q[A].field : y(q[A].field) && (b += F(q[A].field));
1617
+ x ? b += g[A].field : y(g[A].field) && (b += F(g[A].field));
1618
1618
  const B = /* @__PURE__ */ new Set();
1619
- for (let N = 0; N < q[A].errors.length; N++) {
1620
- if (y("error.apiValidation." + q[A].errors[N])) {
1621
- B.add(F("error.apiValidation." + q[A].errors[N]));
1619
+ for (let N = 0; N < g[A].errors.length; N++) {
1620
+ if (y("error.apiValidation." + g[A].errors[N])) {
1621
+ B.add(F("error.apiValidation." + g[A].errors[N]));
1622
1622
  continue;
1623
1623
  }
1624
1624
  B.add(F("error.apiValidation.noTranslation"));
@@ -1631,29 +1631,29 @@ function He() {
1631
1631
  duration: h * 1e3,
1632
1632
  type: "error"
1633
1633
  });
1634
- }, u = (q, h = -1) => {
1634
+ }, u = (g, h = -1) => {
1635
1635
  const { t: x, te: F } = De.global;
1636
1636
  let y = x("error.apiForbiddenOperation.noTranslation");
1637
- F("error.apiForbiddenOperation." + q) && (y = x("error.apiForbiddenOperation." + q)), oa({
1637
+ F("error.apiForbiddenOperation." + g) && (y = x("error.apiForbiddenOperation." + g)), oa({
1638
1638
  group: "alerts",
1639
1639
  text: y,
1640
1640
  duration: h * 1e3,
1641
1641
  type: "error"
1642
1642
  });
1643
- }, f = (q = -1) => {
1643
+ }, f = (g = -1) => {
1644
1644
  const { t: h } = De.global;
1645
1645
  oa({
1646
1646
  group: "alerts",
1647
1647
  text: h("common.alert.unknownError"),
1648
- duration: q * 1e3,
1648
+ duration: g * 1e3,
1649
1649
  type: "error"
1650
1650
  });
1651
- }, g = (q = ha) => {
1651
+ }, q = (g = ha) => {
1652
1652
  const { t: h } = De.global;
1653
1653
  oa({
1654
1654
  group: "alerts",
1655
1655
  text: h("common.alert.forbiddenError"),
1656
- duration: q * 1e3,
1656
+ duration: g * 1e3,
1657
1657
  type: "error"
1658
1658
  });
1659
1659
  };
@@ -1671,8 +1671,8 @@ function He() {
1671
1671
  showApiValidationError: c,
1672
1672
  showApiForbiddenOperationError: u,
1673
1673
  showUnknownError: f,
1674
- showForbiddenError: g,
1675
- showErrorsDefault: (q) => pu(q) ? (g(), !0) : vu(q) ? (c(q.fields), !0) : iV(q) ? (u(q.detail), !0) : fu(q) || hu(q) ? (f(), !0) : !1
1674
+ showForbiddenError: q,
1675
+ showErrorsDefault: (g) => pu(g) ? (q(), !0) : vu(g) ? (c(g.fields), !0) : iV(g) ? (u(g.detail), !0) : fu(g) || hu(g) ? (f(), !0) : !1
1676
1676
  };
1677
1677
  }
1678
1678
  const LS = /* @__PURE__ */ W({
@@ -1696,7 +1696,7 @@ const LS = /* @__PURE__ */ W({
1696
1696
  i.value = !0, s("onOpen");
1697
1697
  }, n = () => {
1698
1698
  i.value = !0, s("onClose");
1699
- }, d = Nn(), { showValidationError: c, showRecordWas: u, showErrorsDefault: f } = He(), g = async () => {
1699
+ }, d = Nn(), { showValidationError: c, showRecordWas: u, showErrorsDefault: f } = He(), q = async () => {
1700
1700
  var v;
1701
1701
  s("onConfirm");
1702
1702
  try {
@@ -1704,18 +1704,18 @@ const LS = /* @__PURE__ */ W({
1704
1704
  c(), o.value = !1;
1705
1705
  return;
1706
1706
  }
1707
- const q = await e.callCreate();
1708
- s("onSuccess", q), u("created"), n(), !L(q.id) && !e.disableRedirect && e.redirectRouteName && d.push({
1707
+ const g = await e.callCreate();
1708
+ s("onSuccess", g), u("created"), n(), !L(g.id) && !e.disableRedirect && e.redirectRouteName && d.push({
1709
1709
  name: e.redirectRouteName,
1710
- params: { [e.redirectParamName]: q[e.redirectParamName] }
1710
+ params: { [e.redirectParamName]: g[e.redirectParamName] }
1711
1711
  });
1712
- } catch (q) {
1713
- f(q), s("onError", q);
1712
+ } catch (g) {
1713
+ f(g), s("onError", g);
1714
1714
  } finally {
1715
1715
  o.value = !1;
1716
1716
  }
1717
1717
  };
1718
- return (v, q) => {
1718
+ return (v, g) => {
1719
1719
  const h = $e("ABtnTertiary"), x = $e("ABtnPrimary");
1720
1720
  return Y(), T(x, {
1721
1721
  class: Fe(v.buttonClass),
@@ -1731,7 +1731,7 @@ const LS = /* @__PURE__ */ W({
1731
1731
  "model-value": i.value,
1732
1732
  "max-width": v.maxWidth,
1733
1733
  persistent: "",
1734
- "onUpdate:modelValue": q[0] || (q[0] = (F) => i.value = F)
1734
+ "onUpdate:modelValue": g[0] || (g[0] = (F) => i.value = F)
1735
1735
  }, {
1736
1736
  default: p(() => [
1737
1737
  i.value ? (Y(), T(Le, {
@@ -1768,7 +1768,7 @@ const LS = /* @__PURE__ */ W({
1768
1768
  m(x, {
1769
1769
  loading: o.value,
1770
1770
  "data-cy": "button-confirm",
1771
- onClick: J(g, ["stop"])
1771
+ onClick: J(q, ["stop"])
1772
1772
  }, {
1773
1773
  default: p(() => [
1774
1774
  de(v.$slots, "button-confirm-title", {}, () => [
@@ -1871,7 +1871,7 @@ var gu = { exports: {} };
1871
1871
  (function(e, s) {
1872
1872
  a.exports = s();
1873
1873
  })(mo, function() {
1874
- var e = 1e3, s = 6e4, i = 36e5, r = "millisecond", o = "second", l = "minute", n = "hour", d = "day", c = "week", u = "month", f = "quarter", g = "year", v = "date", q = "Invalid Date", h = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, x = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, F = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(I) {
1874
+ var e = 1e3, s = 6e4, i = 36e5, r = "millisecond", o = "second", l = "minute", n = "hour", d = "day", c = "week", u = "month", f = "quarter", q = "year", v = "date", g = "Invalid Date", h = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, x = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, F = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(I) {
1875
1875
  var w = ["th", "st", "nd", "rd"], C = I % 100;
1876
1876
  return "[" + I + (w[(C - 20) % 10] || w[C] || w[0]) + "]";
1877
1877
  } }, y = function(I, w, C) {
@@ -1887,7 +1887,7 @@ var gu = { exports: {} };
1887
1887
  }, a: function(I) {
1888
1888
  return I < 0 ? Math.ceil(I) || 0 : Math.floor(I);
1889
1889
  }, p: function(I) {
1890
- return { M: u, y: g, w: c, d, D: v, h: n, m: l, s: o, ms: r, Q: f }[I] || String(I || "").toLowerCase().replace(/s$/, "");
1890
+ return { M: u, y: q, w: c, d, D: v, h: n, m: l, s: o, ms: r, Q: f }[I] || String(I || "").toLowerCase().replace(/s$/, "");
1891
1891
  }, u: function(I) {
1892
1892
  return I === void 0;
1893
1893
  } }, A = "en", b = {};
@@ -1941,7 +1941,7 @@ var gu = { exports: {} };
1941
1941
  }, w.$utils = function() {
1942
1942
  return O;
1943
1943
  }, w.isValid = function() {
1944
- return this.$d.toString() !== q;
1944
+ return this.$d.toString() !== g;
1945
1945
  }, w.isSame = function(C, D) {
1946
1946
  var $ = M(C);
1947
1947
  return this.startOf(D) <= $ && $ <= this.endOf(D);
@@ -1963,7 +1963,7 @@ var gu = { exports: {} };
1963
1963
  return O.w($.toDate()[ue].apply($.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ce)), $);
1964
1964
  }, fe = this.$W, Ve = this.$M, Ke = this.$D, Re = "set" + (this.$u ? "UTC" : "");
1965
1965
  switch (G) {
1966
- case g:
1966
+ case q:
1967
1967
  return H ? Z(1, 0) : Z(31, 11);
1968
1968
  case u:
1969
1969
  return H ? Z(1, Ve) : Z(0, Ve + 1);
@@ -1985,8 +1985,8 @@ var gu = { exports: {} };
1985
1985
  }, w.endOf = function(C) {
1986
1986
  return this.startOf(C, !1);
1987
1987
  }, w.$set = function(C, D) {
1988
- var $, H = O.p(C), G = "set" + (this.$u ? "UTC" : ""), Z = ($ = {}, $[d] = G + "Date", $[v] = G + "Date", $[u] = G + "Month", $[g] = G + "FullYear", $[n] = G + "Hours", $[l] = G + "Minutes", $[o] = G + "Seconds", $[r] = G + "Milliseconds", $)[H], ae = H === d ? this.$D + (D - this.$W) : D;
1989
- if (H === u || H === g) {
1988
+ var $, H = O.p(C), G = "set" + (this.$u ? "UTC" : ""), Z = ($ = {}, $[d] = G + "Date", $[v] = G + "Date", $[u] = G + "Month", $[q] = G + "FullYear", $[n] = G + "Hours", $[l] = G + "Minutes", $[o] = G + "Seconds", $[r] = G + "Milliseconds", $)[H], ae = H === d ? this.$D + (D - this.$W) : D;
1989
+ if (H === u || H === q) {
1990
1990
  var fe = this.clone().set(v, 1);
1991
1991
  fe.$d[Z](ae), fe.init(), this.$d = fe.set(v, Math.min(this.$D, fe.daysInMonth())).$d;
1992
1992
  } else Z && this.$d[Z](ae);
@@ -2003,7 +2003,7 @@ var gu = { exports: {} };
2003
2003
  return O.w(Ke.date(Ke.date() + Math.round(Ve * C)), H);
2004
2004
  };
2005
2005
  if (G === u) return this.set(u, this.$M + C);
2006
- if (G === g) return this.set(g, this.$y + C);
2006
+ if (G === q) return this.set(q, this.$y + C);
2007
2007
  if (G === d) return Z(1);
2008
2008
  if (G === c) return Z(7);
2009
2009
  var ae = ($ = {}, $[l] = s, $[n] = i, $[o] = e, $)[G] || 1, fe = this.$d.getTime() + C * ae;
@@ -2012,7 +2012,7 @@ var gu = { exports: {} };
2012
2012
  return this.add(-1 * C, D);
2013
2013
  }, w.format = function(C) {
2014
2014
  var D = this, $ = this.$locale();
2015
- if (!this.isValid()) return $.invalidDate || q;
2015
+ if (!this.isValid()) return $.invalidDate || g;
2016
2016
  var H = C || "YYYY-MM-DDTHH:mm:ssZ", G = O.z(this), Z = this.$H, ae = this.$m, fe = this.$M, Ve = $.weekdays, Ke = $.months, Re = $.meridiem, Ae = function(ce, we, Oe, pe) {
2017
2017
  return ce && (ce[we] || ce(D, H)) || Oe[we].slice(0, pe);
2018
2018
  }, Q = function(ce) {
@@ -2083,7 +2083,7 @@ var gu = { exports: {} };
2083
2083
  return O.m(G, ae);
2084
2084
  };
2085
2085
  switch (Z) {
2086
- case g:
2086
+ case q:
2087
2087
  H = Ke() / 12;
2088
2088
  break;
2089
2089
  case u:
@@ -2131,7 +2131,7 @@ var gu = { exports: {} };
2131
2131
  return this.$d.toUTCString();
2132
2132
  }, I;
2133
2133
  }(), E = K.prototype;
2134
- return M.prototype = E, [["$ms", r], ["$s", o], ["$m", l], ["$H", n], ["$W", d], ["$M", u], ["$y", g], ["$D", v]].forEach(function(I) {
2134
+ return M.prototype = E, [["$ms", r], ["$s", o], ["$m", l], ["$H", n], ["$W", d], ["$M", u], ["$y", q], ["$D", v]].forEach(function(I) {
2135
2135
  E[I[1]] = function(w) {
2136
2136
  return this.$g(w, I[0], I[1]);
2137
2137
  };
@@ -2152,52 +2152,52 @@ var qu = { exports: {} };
2152
2152
  var e = "minute", s = /[+-]\d\d(?::?\d\d)?/g, i = /([+-]|\d\d)/g;
2153
2153
  return function(r, o, l) {
2154
2154
  var n = o.prototype;
2155
- l.utc = function(q) {
2156
- var h = { date: q, utc: !0, args: arguments };
2155
+ l.utc = function(g) {
2156
+ var h = { date: g, utc: !0, args: arguments };
2157
2157
  return new o(h);
2158
- }, n.utc = function(q) {
2158
+ }, n.utc = function(g) {
2159
2159
  var h = l(this.toDate(), { locale: this.$L, utc: !0 });
2160
- return q ? h.add(this.utcOffset(), e) : h;
2160
+ return g ? h.add(this.utcOffset(), e) : h;
2161
2161
  }, n.local = function() {
2162
2162
  return l(this.toDate(), { locale: this.$L, utc: !1 });
2163
2163
  };
2164
2164
  var d = n.parse;
2165
- n.parse = function(q) {
2166
- q.utc && (this.$u = !0), this.$utils().u(q.$offset) || (this.$offset = q.$offset), d.call(this, q);
2165
+ n.parse = function(g) {
2166
+ g.utc && (this.$u = !0), this.$utils().u(g.$offset) || (this.$offset = g.$offset), d.call(this, g);
2167
2167
  };
2168
2168
  var c = n.init;
2169
2169
  n.init = function() {
2170
2170
  if (this.$u) {
2171
- var q = this.$d;
2172
- this.$y = q.getUTCFullYear(), this.$M = q.getUTCMonth(), this.$D = q.getUTCDate(), this.$W = q.getUTCDay(), this.$H = q.getUTCHours(), this.$m = q.getUTCMinutes(), this.$s = q.getUTCSeconds(), this.$ms = q.getUTCMilliseconds();
2171
+ var g = this.$d;
2172
+ this.$y = g.getUTCFullYear(), this.$M = g.getUTCMonth(), this.$D = g.getUTCDate(), this.$W = g.getUTCDay(), this.$H = g.getUTCHours(), this.$m = g.getUTCMinutes(), this.$s = g.getUTCSeconds(), this.$ms = g.getUTCMilliseconds();
2173
2173
  } else c.call(this);
2174
2174
  };
2175
2175
  var u = n.utcOffset;
2176
- n.utcOffset = function(q, h) {
2176
+ n.utcOffset = function(g, h) {
2177
2177
  var x = this.$utils().u;
2178
- if (x(q)) return this.$u ? 0 : x(this.$offset) ? u.call(this) : this.$offset;
2179
- if (typeof q == "string" && (q = function(A) {
2178
+ if (x(g)) return this.$u ? 0 : x(this.$offset) ? u.call(this) : this.$offset;
2179
+ if (typeof g == "string" && (g = function(A) {
2180
2180
  A === void 0 && (A = "");
2181
2181
  var b = A.match(s);
2182
2182
  if (!b) return null;
2183
2183
  var B = ("" + b[0]).match(i) || ["-", 0, 0], N = B[0], z = 60 * +B[1] + +B[2];
2184
2184
  return z === 0 ? 0 : N === "+" ? z : -z;
2185
- }(q), q === null)) return this;
2186
- var F = Math.abs(q) <= 16 ? 60 * q : q, y = this;
2187
- if (h) return y.$offset = F, y.$u = q === 0, y;
2188
- if (q !== 0) {
2185
+ }(g), g === null)) return this;
2186
+ var F = Math.abs(g) <= 16 ? 60 * g : g, y = this;
2187
+ if (h) return y.$offset = F, y.$u = g === 0, y;
2188
+ if (g !== 0) {
2189
2189
  var X = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
2190
2190
  (y = this.local().add(F + X, e)).$offset = F, y.$x.$localOffset = X;
2191
2191
  } else y = this.utc();
2192
2192
  return y;
2193
2193
  };
2194
2194
  var f = n.format;
2195
- n.format = function(q) {
2196
- var h = q || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
2195
+ n.format = function(g) {
2196
+ var h = g || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
2197
2197
  return f.call(this, h);
2198
2198
  }, n.valueOf = function() {
2199
- var q = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
2200
- return this.$d.valueOf() - 6e4 * q;
2199
+ var g = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
2200
+ return this.$d.valueOf() - 6e4 * g;
2201
2201
  }, n.isUTC = function() {
2202
2202
  return !!this.$u;
2203
2203
  }, n.toISOString = function() {
@@ -2205,14 +2205,14 @@ var qu = { exports: {} };
2205
2205
  }, n.toString = function() {
2206
2206
  return this.toDate().toUTCString();
2207
2207
  };
2208
- var g = n.toDate;
2209
- n.toDate = function(q) {
2210
- return q === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : g.call(this);
2208
+ var q = n.toDate;
2209
+ n.toDate = function(g) {
2210
+ return g === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : q.call(this);
2211
2211
  };
2212
2212
  var v = n.diff;
2213
- n.diff = function(q, h, x) {
2214
- if (q && this.$u === q.$u) return v.call(this, q, h, x);
2215
- var F = this.local(), y = l(q).local();
2213
+ n.diff = function(g, h, x) {
2214
+ if (g && this.$u === g.$u) return v.call(this, g, h, x);
2215
+ var F = this.local(), y = l(g).local();
2216
2216
  return v.call(F, y, h, x);
2217
2217
  };
2218
2218
  };
@@ -2240,7 +2240,7 @@ var Xu = { exports: {} };
2240
2240
  }], f = function(h) {
2241
2241
  var x = n[h];
2242
2242
  return x && (x.indexOf ? x : x.s.concat(x.f));
2243
- }, g = function(h, x) {
2243
+ }, q = function(h, x) {
2244
2244
  var F, y = n.meridiem;
2245
2245
  if (y) {
2246
2246
  for (var X = 1; X <= 24; X += 1) if (h.indexOf(y(X, 0, x)) > -1) {
@@ -2250,9 +2250,9 @@ var Xu = { exports: {} };
2250
2250
  } else F = h === (x ? "pm" : "PM");
2251
2251
  return F;
2252
2252
  }, v = { A: [l, function(h) {
2253
- this.afternoon = g(h, !1);
2253
+ this.afternoon = q(h, !1);
2254
2254
  }], a: [l, function(h) {
2255
- this.afternoon = g(h, !0);
2255
+ this.afternoon = q(h, !0);
2256
2256
  }], Q: [i, function(h) {
2257
2257
  this.month = 3 * (h - 1) + 1;
2258
2258
  }], S: [i, function(h) {
@@ -2277,7 +2277,7 @@ var Xu = { exports: {} };
2277
2277
  }], Y: [/[+-]?\d+/, c("year")], YY: [r, function(h) {
2278
2278
  this.year = d(h);
2279
2279
  }], YYYY: [/\d{4}/, c("year")], Z: u, ZZ: u };
2280
- function q(h) {
2280
+ function g(h) {
2281
2281
  var x, F;
2282
2282
  x = h, F = n && n.formats;
2283
2283
  for (var y = (h = x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(M, O, K) {
@@ -2319,7 +2319,7 @@ var Xu = { exports: {} };
2319
2319
  O && (E = N[2]), n = this.$locale(), !M && E && (n = F.Ls[E]), this.$d = function(D, $, H, G) {
2320
2320
  try {
2321
2321
  if (["x", "X"].indexOf($) > -1) return new Date(($ === "X" ? 1e3 : 1) * D);
2322
- var Z = q($)(D), ae = Z.year, fe = Z.month, Ve = Z.day, Ke = Z.hours, Re = Z.minutes, Ae = Z.seconds, Q = Z.milliseconds, ue = Z.zone, ce = Z.week, we = /* @__PURE__ */ new Date(), Oe = Ve || (ae || fe ? 1 : we.getDate()), pe = ae || we.getFullYear(), se = 0;
2322
+ var Z = g($)(D), ae = Z.year, fe = Z.month, Ve = Z.day, Ke = Z.hours, Re = Z.minutes, Ae = Z.seconds, Q = Z.milliseconds, ue = Z.zone, ce = Z.week, we = /* @__PURE__ */ new Date(), Oe = Ve || (ae || fe ? 1 : we.getDate()), pe = ae || we.getFullYear(), se = 0;
2323
2323
  ae && !fe || (se = fe > 0 ? fe - 1 : we.getMonth());
2324
2324
  var Ye, nt = Ke || 0, lt = Re || 0, Te = Ae || 0, dt = Q || 0;
2325
2325
  return ue ? new Date(Date.UTC(pe, se, Oe, nt, lt, Te, dt + 60 * ue.offset * 1e3)) : H ? new Date(Date.UTC(pe, se, Oe, nt, lt, Te, dt)) : (Ye = new Date(pe, se, Oe, nt, lt, Te, dt), ce && (Ye = G(Ye).week(ce).toDate()), Ye);
@@ -2423,19 +2423,20 @@ function pi(a = void 0) {
2423
2423
  }, s = (n) => {
2424
2424
  for (const d in n)
2425
2425
  n[d].error = "";
2426
- }, i = (n, d, c) => {
2426
+ }, i = (n, d = {}) => {
2427
2427
  if (!a || !localStorage) return;
2428
- let u = !1;
2429
- const f = localStorage.getItem(a);
2430
- if (!f) return;
2431
- const g = JSON.parse(f);
2432
- if (Qi(g)) {
2433
- for (const v in n)
2428
+ const { showAdvancedFilter: c, callback: u } = d;
2429
+ let f = !1;
2430
+ const q = localStorage.getItem(a);
2431
+ if (!q) return;
2432
+ const v = JSON.parse(q);
2433
+ if (Qi(v)) {
2434
+ for (const g in n)
2434
2435
  try {
2435
- L(g[v]) || (n[v].model = g[v], n[v].advanced && (u = !0));
2436
+ L(v[g]) || (n[g].model = v[g], n[g].advanced && (f = !0));
2436
2437
  } catch {
2437
2438
  }
2438
- d && u && (d.value = !0), c && c(u);
2439
+ c && f && (c.value = !0), u && u(f);
2439
2440
  }
2440
2441
  }, r = (n) => {
2441
2442
  if (!a || !localStorage) return;
@@ -2507,21 +2508,21 @@ const yn = /* @__PURE__ */ W({
2507
2508
  var w;
2508
2509
  ((w = X == null ? void 0 : X.value) == null ? void 0 : w.titleT) !== I.titleT && c(I);
2509
2510
  });
2510
- }, g = S(void 0);
2511
- qe(g, () => {
2512
- if (d(g)) {
2513
- g.value.model = e.value, v.value = g.value, f(g);
2511
+ }, q = S(void 0);
2512
+ qe(q, () => {
2513
+ if (d(q)) {
2514
+ q.value.model = e.value, v.value = q.value, f(q);
2514
2515
  return;
2515
2516
  }
2516
- q(e.value);
2517
+ g(e.value);
2517
2518
  });
2518
2519
  const v = S(void 0);
2519
2520
  qe(e, (X) => {
2520
- q(X);
2521
+ g(X);
2521
2522
  });
2522
- const q = (X) => {
2523
- if (d(g)) {
2524
- g.value.model = X;
2523
+ const g = (X) => {
2524
+ if (d(q)) {
2525
+ q.value.model = X;
2525
2526
  return;
2526
2527
  }
2527
2528
  const A = h(X);
@@ -2538,8 +2539,8 @@ const yn = /* @__PURE__ */ W({
2538
2539
  return i.value;
2539
2540
  }
2540
2541
  }, x = _(() => {
2541
- if (d(g))
2542
- return n(g.value.titleT ?? "");
2542
+ if (d(q))
2543
+ return n(q.value.titleT ?? "");
2543
2544
  if (d(v))
2544
2545
  return n(v.value.titleT ?? "");
2545
2546
  const X = [];
@@ -2566,8 +2567,8 @@ const yn = /* @__PURE__ */ W({
2566
2567
  name: "append-inner",
2567
2568
  fn: p(() => [
2568
2569
  m(no, {
2569
- modelValue: g.value,
2570
- "onUpdate:modelValue": A[0] || (A[0] = (b) => g.value = b),
2570
+ modelValue: q.value,
2571
+ "onUpdate:modelValue": A[0] || (A[0] = (b) => q.value = b),
2571
2572
  divided: "",
2572
2573
  class: "override-toggle"
2573
2574
  }, {
@@ -2990,15 +2991,15 @@ const xV = (a) => Qi(a) && Object.hasOwn(a, "owners"), wV = (a) => Object.hasOwn
2990
2991
  }), xu = "ROLE_SUPER_ADMIN";
2991
2992
  function ho(a) {
2992
2993
  const t = CV(), e = (c) => c.split("_")[0], s = (c) => c.includes(xu), i = (c, u) => {
2993
- const f = e(c), g = t.getCurrentUserBySystem(f), v = t.isCurrentUserLoadedBySystem(f);
2994
+ const f = e(c), q = t.getCurrentUserBySystem(f), v = t.isCurrentUserLoadedBySystem(f);
2994
2995
  if (L(v))
2995
2996
  throw new Error("Composable defineAuth must try to load currentUser first to use can function.");
2996
- if (L(g) || L(g.id) || te(g.id) || g.id === 0)
2997
+ if (L(q) || L(q.id) || te(q.id) || q.id === 0)
2997
2998
  return !1;
2998
- if (s(g.roles)) return !0;
2999
- const q = vo(g, "resolvedPermissions." + c);
3000
- if (L(q)) return !1;
3001
- switch (q) {
2999
+ if (s(q.roles)) return !0;
3000
+ const g = vo(q, "resolvedPermissions." + c);
3001
+ if (L(g)) return !1;
3002
+ switch (g) {
3002
3003
  case Ds.Allow:
3003
3004
  return !0;
3004
3005
  case Ds.Deny:
@@ -3025,16 +3026,16 @@ function ho(a) {
3025
3026
  function d(c) {
3026
3027
  const u = (F) => {
3027
3028
  t.currentUsers.value.set(c, F), t.currentUsersLoaded.value.set(c, !0);
3028
- }, f = _(() => t.currentUsers.value.get(c)), g = _(() => t.currentUsersLoaded.value.get(c)), v = _(() => f.value ? s(f.value.roles) : !1), q = _(() => f.value ?? !1), h = _(() => {
3029
- if (!L(g.value))
3030
- return !q.value;
3029
+ }, f = _(() => t.currentUsers.value.get(c)), q = _(() => t.currentUsersLoaded.value.get(c)), v = _(() => f.value ? s(f.value.roles) : !1), g = _(() => f.value ?? !1), h = _(() => {
3030
+ if (!L(q.value))
3031
+ return !g.value;
3031
3032
  });
3032
3033
  return {
3033
3034
  currentUser: f,
3034
3035
  setCurrentUser: u,
3035
3036
  isSuperAdmin: v,
3036
3037
  isAnonymous: h,
3037
- hasCurrentUser: q,
3038
+ hasCurrentUser: g,
3038
3039
  fetchCurrentUser: async (F, y = "/adm/v1/users/current", X = void 0, A = "user") => {
3039
3040
  try {
3040
3041
  const b = await jt(F, y, X, c, A);
@@ -3210,8 +3211,8 @@ const ep = { class: "a-datetime-picker-time" }, tp = { class: "a-datetime-picker
3210
3211
  // eslint-disable-next-line vue/no-ref-object-reactivity-loss
3211
3212
  e.value ? String(e.value.minutes).padStart(2, "0") : "00"
3212
3213
  ), r = S(null), o = async (v) => {
3213
- const q = v.target;
3214
- await Jt(), q == null || q.select();
3214
+ const g = v.target;
3215
+ await Jt(), g == null || g.select();
3215
3216
  }, l = () => {
3216
3217
  const v = parseInt(s.value || "0");
3217
3218
  s.value = v >= 0 && v <= 23 ? String(v).padStart(2, "0") : "00";
@@ -3219,33 +3220,33 @@ const ep = { class: "a-datetime-picker-time" }, tp = { class: "a-datetime-picker
3219
3220
  const v = parseInt(i.value || "0");
3220
3221
  i.value = v >= 0 && v <= 59 ? String(v).padStart(2, "0") : "00";
3221
3222
  }, d = () => {
3222
- const v = parseInt(s.value || "0"), q = isNaN(v) ? 1 : (v + 1) % 24;
3223
- s.value = String(q).padStart(2, "0");
3223
+ const v = parseInt(s.value || "0"), g = isNaN(v) ? 1 : (v + 1) % 24;
3224
+ s.value = String(g).padStart(2, "0");
3224
3225
  }, c = () => {
3225
- const v = parseInt(s.value || "0"), q = isNaN(v) ? 23 : (v - 1 + 24) % 24;
3226
- s.value = String(q).padStart(2, "0");
3226
+ const v = parseInt(s.value || "0"), g = isNaN(v) ? 23 : (v - 1 + 24) % 24;
3227
+ s.value = String(g).padStart(2, "0");
3227
3228
  }, u = () => {
3228
- const v = parseInt(i.value || "0"), q = isNaN(v) ? 1 : (v + 1) % 60;
3229
- i.value = String(q).padStart(2, "0");
3229
+ const v = parseInt(i.value || "0"), g = isNaN(v) ? 1 : (v + 1) % 60;
3230
+ i.value = String(g).padStart(2, "0");
3230
3231
  }, f = () => {
3231
- const v = parseInt(i.value || "0"), q = isNaN(v) ? 59 : (v - 1 + 60) % 60;
3232
- i.value = String(q).padStart(2, "0");
3233
- }, g = () => {
3232
+ const v = parseInt(i.value || "0"), g = isNaN(v) ? 59 : (v - 1 + 60) % 60;
3233
+ i.value = String(g).padStart(2, "0");
3234
+ }, q = () => {
3234
3235
  var v;
3235
3236
  (v = r.value) == null || v.focus();
3236
3237
  };
3237
- return qe([s, i], ([v, q], [h, x]) => {
3238
- if (v === h && q === x) return;
3239
- const F = parseInt(v ?? (e.value ? e.value.hours.toString() : "12")), y = parseInt(q ?? (e.value ? e.value.minutes.toString() : "0"));
3238
+ return qe([s, i], ([v, g], [h, x]) => {
3239
+ if (v === h && g === x) return;
3240
+ const F = parseInt(v ?? (e.value ? e.value.hours.toString() : "12")), y = parseInt(g ?? (e.value ? e.value.minutes.toString() : "0"));
3240
3241
  F >= 0 && F <= 23 && y >= 0 && y <= 59 && (e.value = { hours: F, minutes: y });
3241
3242
  }), t({
3242
- focus: g
3243
- }), (v, q) => (Y(), R("div", ep, [
3243
+ focus: q
3244
+ }), (v, g) => (Y(), R("div", ep, [
3244
3245
  U("div", tp, [
3245
3246
  da(U("input", {
3246
3247
  ref_key: "hoursRef",
3247
3248
  ref: r,
3248
- "onUpdate:modelValue": q[0] || (q[0] = (h) => s.value = h),
3249
+ "onUpdate:modelValue": g[0] || (g[0] = (h) => s.value = h),
3249
3250
  class: "a-datetime-picker-time__input a-datetime-picker-time__input--hours",
3250
3251
  type: "number",
3251
3252
  "aria-label": "Hour",
@@ -3272,10 +3273,10 @@ const ep = { class: "a-datetime-picker-time" }, tp = { class: "a-datetime-picker
3272
3273
  })
3273
3274
  ])
3274
3275
  ]),
3275
- q[2] || (q[2] = U("span", { class: "a-datetime-picker-time__separator" }, ":", -1)),
3276
+ g[2] || (g[2] = U("span", { class: "a-datetime-picker-time__separator" }, ":", -1)),
3276
3277
  U("div", sp, [
3277
3278
  da(U("input", {
3278
- "onUpdate:modelValue": q[1] || (q[1] = (h) => i.value = h),
3279
+ "onUpdate:modelValue": g[1] || (g[1] = (h) => i.value = h),
3279
3280
  class: "a-datetime-picker-time__input a-datetime-picker-time__input--minutes",
3280
3281
  type: "number",
3281
3282
  "aria-label": "Minute",
@@ -3328,11 +3329,11 @@ const ep = { class: "a-datetime-picker-time" }, tp = { class: "a-datetime-picker
3328
3329
  setup(a, { emit: t }) {
3329
3330
  const e = a, s = t;
3330
3331
  Me.extend(Yu), Me.extend(Au);
3331
- const i = S(!1), r = S(0), o = S(0), l = S(null), n = S(""), d = S(null), c = S(null), u = S(null), { t: f } = ee(), g = _(() => e.type === "datetime" ? "dd.mm.yyyy hh:mm" : "dd.mm.yyyy"), { requiredIf: v } = Ys(), q = _(() => ({
3332
+ const i = S(!1), r = S(0), o = S(0), l = S(null), n = S(""), d = S(null), c = S(null), u = S(null), { t: f } = ee(), q = _(() => e.type === "datetime" ? "dd.mm.yyyy hh:mm" : "dd.mm.yyyy"), { requiredIf: v } = Ys(), g = _(() => ({
3332
3333
  textFieldValue: {
3333
3334
  required: v(e.required)
3334
3335
  }
3335
- })), h = ma(q, { textFieldValue: n }), x = _(() => e.type === "datetime" ? "DD.MM.YYYY HH:mm" : "DD.MM.YYYY"), F = (M) => {
3336
+ })), h = ma(g, { textFieldValue: n }), x = _(() => e.type === "datetime" ? "DD.MM.YYYY HH:mm" : "DD.MM.YYYY"), F = (M) => {
3336
3337
  te(M) || ((te(c.value) || M.hour() !== c.value.hours || M.minute() !== c.value.minutes) && (c.value = { hours: M.hour(), minutes: M.minute() }), (te(d.value) || M.year() !== d.value.getFullYear() || M.month() !== d.value.getMonth() || M.date() !== d.value.getDate()) && (d.value = M.toDate()));
3337
3338
  };
3338
3339
  qe(
@@ -3409,7 +3410,7 @@ const ep = { class: "a-datetime-picker-time" }, tp = { class: "a-datetime-picker
3409
3410
  "onUpdate:modelValue": O[3] || (O[3] = (K) => n.value = K),
3410
3411
  "error-messages": A.value,
3411
3412
  "persistent-placeholder": !0,
3412
- placeholder: g.value,
3413
+ placeholder: q.value,
3413
3414
  class: "a-datetime-picker",
3414
3415
  disabled: M.disabled,
3415
3416
  onBlur: b,
@@ -3524,9 +3525,9 @@ const ep = { class: "a-datetime-picker-time" }, tp = { class: "a-datetime-picker
3524
3525
  }
3525
3526
  const c = S(!1), u = S(!1), f = () => {
3526
3527
  c.value = !0, n.value();
3527
- }, g = () => {
3528
+ }, q = () => {
3528
3529
  o.value(e.modelValue), c.value = !0;
3529
- }, { t: v } = ee(), q = at(_a, void 0), h = at(Sa, void 0), x = () => {
3530
+ }, { t: v } = ee(), g = at(_a, void 0), h = at(Sa, void 0), x = () => {
3530
3531
  var B;
3531
3532
  u.value = !1, s("blur", L(e.modelValue) ? null : e.modelValue), (B = e.v) == null || B.$touch(), c.value === !1 && o.value(e.modelValue);
3532
3533
  }, F = () => {
@@ -3537,9 +3538,9 @@ const ep = { class: "a-datetime-picker-time" }, tp = { class: "a-datetime-picker
3537
3538
  }), X = _(() => {
3538
3539
  var N, z;
3539
3540
  if (he(e.label)) return e.label;
3540
- if (L(q) || L(h) || L((N = e.v) == null ? void 0 : N.$path)) return "";
3541
+ if (L(g) || L(h) || L((N = e.v) == null ? void 0 : N.$path)) return "";
3541
3542
  const { end: B } = Ua((z = e.v) == null ? void 0 : z.$path, ".");
3542
- return v(q + "." + h + ".model." + B);
3543
+ return v(g + "." + h + ".model." + B);
3543
3544
  }), A = _(() => {
3544
3545
  var B, N;
3545
3546
  return he(e.required) ? e.required : !!((B = e.v) != null && B.required && ((N = e.v) == null ? void 0 : N.required.$params.type) === "required");
@@ -3558,7 +3559,7 @@ const ep = { class: "a-datetime-picker-time" }, tp = { class: "a-datetime-picker
3558
3559
  onBlur: x,
3559
3560
  onFocus: F,
3560
3561
  onOnOpen: f,
3561
- onOnClose: g
3562
+ onOnClose: q
3562
3563
  }, {
3563
3564
  "append-inner": p(() => [
3564
3565
  de(B.$slots, "locked", { userId: d.value }, () => [
@@ -3613,15 +3614,15 @@ const ep = { class: "a-datetime-picker-time" }, tp = { class: "a-datetime-picker
3613
3614
  { immediate: !0 }
3614
3615
  );
3615
3616
  }
3616
- const { t: c } = ee(), u = at(_a, void 0), f = at(Sa, void 0), g = S(!1), v = S(!1), q = S(!1), h = () => {
3617
+ const { t: c } = ee(), u = at(_a, void 0), f = at(Sa, void 0), q = S(!1), v = S(!1), g = S(!1), h = () => {
3617
3618
  var N;
3618
- v.value = !1, s("blur", L(e.modelValue) ? null : e.modelValue), (N = e.v) == null || N.$touch(), q.value === !1 && o.value(e.modelValue);
3619
+ v.value = !1, s("blur", L(e.modelValue) ? null : e.modelValue), (N = e.v) == null || N.$touch(), g.value === !1 && o.value(e.modelValue);
3619
3620
  }, x = () => {
3620
3621
  v.value = !0, n.value();
3621
3622
  }, F = () => {
3622
- q.value = !0, n.value();
3623
+ g.value = !0, n.value();
3623
3624
  }, y = () => {
3624
- q.value = !1, o.value(e.modelValue);
3625
+ g.value = !1, o.value(e.modelValue);
3625
3626
  }, X = _(() => {
3626
3627
  var N, z;
3627
3628
  return L(e.errorMessage) ? (z = (N = e.v) == null ? void 0 : N.$errors) != null && z.length ? [e.v.$errors.map((M) => M.$message).join(" ")] : [] : [e.errorMessage];
@@ -3637,10 +3638,10 @@ const ep = { class: "a-datetime-picker-time" }, tp = { class: "a-datetime-picker
3637
3638
  (N, z) => {
3638
3639
  if (N !== z) {
3639
3640
  if (te(N) || L(N)) {
3640
- g.value = !1;
3641
+ q.value = !1;
3641
3642
  return;
3642
3643
  }
3643
- g.value = !0;
3644
+ q.value = !0;
3644
3645
  }
3645
3646
  },
3646
3647
  { immediate: !0 }
@@ -3663,15 +3664,15 @@ const ep = { class: "a-datetime-picker-time" }, tp = { class: "a-datetime-picker
3663
3664
  i.value = e.defaultActivationValue;
3664
3665
  }, B = _(() => he(e.disabled) ? e.disabled : !!d.value);
3665
3666
  return qe(i, (N, z) => {
3666
- N !== z && r.value.enabled && (v.value || q.value) && l.value(N);
3667
+ N !== z && r.value.enabled && (v.value || g.value) && l.value(N);
3667
3668
  }), (N, z) => (Y(), R(ge, null, [
3668
3669
  U("div", cp, [
3669
3670
  m(Gi, {
3670
- modelValue: g.value,
3671
- "onUpdate:modelValue": z[0] || (z[0] = (M) => g.value = M),
3671
+ modelValue: q.value,
3672
+ "onUpdate:modelValue": z[0] || (z[0] = (M) => q.value = M),
3672
3673
  label: A.value,
3673
3674
  disabled: B.value,
3674
- onClick: z[1] || (z[1] = J((M) => b(g.value), ["stop"]))
3675
+ onClick: z[1] || (z[1] = J((M) => b(q.value), ["stop"]))
3675
3676
  }, null, 8, ["modelValue", "label", "disabled"]),
3676
3677
  U("div", mp, [
3677
3678
  de(N.$slots, "locked", { userId: d.value }, () => [
@@ -3702,7 +3703,7 @@ const ep = { class: "a-datetime-picker-time" }, tp = { class: "a-datetime-picker
3702
3703
  _: 1
3703
3704
  }, 8, ["modelValue", "data-cy", "error-messages", "clearable", "disabled"])
3704
3705
  ], 512), [
3705
- [ps, g.value]
3706
+ [ps, q.value]
3706
3707
  ])
3707
3708
  ]),
3708
3709
  _: 1
@@ -3819,7 +3820,7 @@ const fp = {
3819
3820
  { immediate: !0 }
3820
3821
  );
3821
3822
  }
3822
- const g = S(""), v = S(!1), q = S(void 0), { t: h } = ee(), { innerFilter: x } = ci(e), F = at(_a, void 0), y = at(Sa, void 0), X = () => {
3823
+ const q = S(""), v = S(!1), g = S(void 0), { t: h } = ee(), { innerFilter: x } = ci(e), F = at(_a, void 0), y = at(Sa, void 0), X = () => {
3823
3824
  var Q;
3824
3825
  v.value = !1, s("blur", i.value), (Q = e.v) == null || Q.$touch(), d.value(i.value);
3825
3826
  }, A = _(() => {
@@ -3856,7 +3857,7 @@ const fp = {
3856
3857
  let ue = 1, ce = [];
3857
3858
  return We(Q) ? (ue = Q.length, ce = D(Q)) : ce = D([Q]), K.value = ce, ce.length === ue;
3858
3859
  }, H = S(!1), G = () => {
3859
- clearTimeout(q.value), q.value = void 0;
3860
+ clearTimeout(g.value), g.value = void 0;
3860
3861
  }, Z = async () => {
3861
3862
  if (G(), H.value === !0) return;
3862
3863
  H.value = !0, I.value = !0;
@@ -3868,7 +3869,7 @@ const fp = {
3868
3869
  if (!e.multiple && K.value[0])
3869
3870
  return K.value[0].title;
3870
3871
  }), Ve = (Q) => {
3871
- !e.multiple && !v.value && Q.length === 0 || fe.value !== Q && (g.value = Q);
3872
+ !e.multiple && !v.value && Q.length === 0 || fe.value !== Q && (q.value = Q);
3872
3873
  }, Ke = async () => {
3873
3874
  if (O.value = await e.fetchItems(M, x.value), e.multiple) {
3874
3875
  i.value = [];
@@ -3877,12 +3878,12 @@ const fp = {
3877
3878
  i.value = null;
3878
3879
  };
3879
3880
  Un(
3880
- g,
3881
+ q,
3881
3882
  (Q, ue) => {
3882
3883
  Q !== ue && (l.value++, C(Q, l.value), s("searchChangeDebounced", Q));
3883
3884
  },
3884
3885
  { debounce: 300 }
3885
- ), qe(g, (Q, ue) => {
3886
+ ), qe(q, (Q, ue) => {
3886
3887
  Q !== ue && s("searchChange", Q);
3887
3888
  });
3888
3889
  const Re = (Q) => {
@@ -3900,7 +3901,7 @@ const fp = {
3900
3901
  if (Q === ue) return;
3901
3902
  if (n.value.enabled && v.value && c.value(Q), te(Q) || L(Q) || We(Q) && Q.length === 0) {
3902
3903
  if (K.value = [], r.value = We(Q) ? [] : null, o.value = We(Q) ? [] : null, e.disableInitFetch || H.value === !0) return;
3903
- q.value = setTimeout(() => {
3904
+ g.value = setTimeout(() => {
3904
3905
  Z();
3905
3906
  }, 2e3);
3906
3907
  return;
@@ -4010,32 +4011,32 @@ const fp = {
4010
4011
  emits: ["update:modelValue"],
4011
4012
  setup(a, { emit: t }) {
4012
4013
  const e = a, s = t, { t: i } = ee(), r = at(_a, void 0), o = at(Sa, void 0), l = _(() => {
4013
- var q, h;
4014
+ var g, h;
4014
4015
  if (!L(e.label)) return e.label;
4015
- if (L(r) || L(o) || L((q = e.v) == null ? void 0 : q.$path)) return "";
4016
+ if (L(r) || L(o) || L((g = e.v) == null ? void 0 : g.$path)) return "";
4016
4017
  const { end: v } = Ua((h = e.v) == null ? void 0 : h.$path, ".");
4017
4018
  return i(r + "." + o + ".model." + v);
4018
- }), n = S(!1), d = S(!1), c = S(""), u = _(() => e.modelValue), f = S(e.modelValue), g = async () => {
4019
+ }), n = S(!1), d = S(!1), c = S(""), u = _(() => e.modelValue), f = S(e.modelValue), q = async () => {
4019
4020
  if (n.value) return;
4020
4021
  if (n.value = !0, d.value = !1, f.value === !0) {
4021
- const q = await e.callbackToFalse();
4022
- s("update:modelValue", !q), f.value = !q, q || (d.value = !0), n.value = !1;
4022
+ const g = await e.callbackToFalse();
4023
+ s("update:modelValue", !g), f.value = !g, g || (d.value = !0), n.value = !1;
4023
4024
  return;
4024
4025
  }
4025
4026
  const v = await e.callbackToTrue();
4026
4027
  s("update:modelValue", v), f.value = v, v || (d.value = !0), n.value = !1;
4027
4028
  };
4028
- return qe(u, (v, q) => {
4029
- v !== q && (f.value = v, d.value = !1);
4029
+ return qe(u, (v, g) => {
4030
+ v !== g && (f.value = v, d.value = !1);
4030
4031
  }), Yt(() => {
4031
4032
  c.value = "remote-switch-" + Date.now();
4032
- }), (v, q) => (Y(), R("div", pp, [
4033
+ }), (v, g) => (Y(), R("div", pp, [
4033
4034
  m(Gi, {
4034
4035
  id: c.value,
4035
4036
  modelValue: f.value,
4036
- "onUpdate:modelValue": q[0] || (q[0] = (h) => f.value = h),
4037
+ "onUpdate:modelValue": g[0] || (g[0] = (h) => f.value = h),
4037
4038
  disabled: n.value,
4038
- onClick: J(g, ["stop"])
4039
+ onClick: J(q, ["stop"])
4039
4040
  }, null, 8, ["id", "modelValue", "disabled"]),
4040
4041
  v.hideLabel ? j("", !0) : (Y(), R("label", {
4041
4042
  key: 0,
@@ -4056,17 +4057,17 @@ const fp = {
4056
4057
  },
4057
4058
  emits: ["update:modelValue", "blur", "focus"],
4058
4059
  setup(a, { emit: t }) {
4059
- const e = a, s = t, { collabOptions: i } = aa(), r = S((g) => {
4060
+ const e = a, s = t, { collabOptions: i } = aa(), r = S((q) => {
4060
4061
  }), o = S(() => {
4061
4062
  }), l = S(null);
4062
4063
  if (i.value.enabled && he(e.collab)) {
4063
4064
  const {
4064
- releaseCollabFieldLock: g,
4065
+ releaseCollabFieldLock: q,
4065
4066
  acquireCollabFieldLock: v,
4066
- lockedByUser: q
4067
+ lockedByUser: g
4067
4068
  } = Fs(e.collab.room, e.collab.field);
4068
- r.value = g, o.value = v, qe(
4069
- q,
4069
+ r.value = q, o.value = v, qe(
4070
+ g,
4070
4071
  (h) => {
4071
4072
  l.value = h;
4072
4073
  },
@@ -4077,37 +4078,37 @@ const fp = {
4077
4078
  o.value(), setTimeout(() => {
4078
4079
  r.value(e.modelValue);
4079
4080
  }, 500);
4080
- }, d = (g) => {
4081
- s("update:modelValue", g);
4081
+ }, d = (q) => {
4082
+ s("update:modelValue", q);
4082
4083
  }, c = () => {
4083
4084
  s("blur", e.modelValue), r.value(e.modelValue);
4084
4085
  }, u = () => {
4085
4086
  s("focus", e.modelValue), o.value();
4086
4087
  }, f = _(() => he(e.disabled) ? e.disabled : !!l.value);
4087
- return (g, v) => (Y(), T(fi, {
4088
- "data-cy": g.dataCy,
4089
- "model-value": g.modelValue,
4088
+ return (q, v) => (Y(), T(fi, {
4089
+ "data-cy": q.dataCy,
4090
+ "model-value": q.modelValue,
4090
4091
  disabled: f.value,
4091
4092
  onBlur: c,
4092
4093
  onFocus: u,
4093
- "onUpdate:modelValue": v[0] || (v[0] = (q) => d(q)),
4094
+ "onUpdate:modelValue": v[0] || (v[0] = (g) => d(g)),
4094
4095
  onClick: J(n, ["stop"])
4095
4096
  }, ua({ _: 2 }, [
4096
- g.hideLabel ? void 0 : {
4097
+ q.hideLabel ? void 0 : {
4097
4098
  name: "label",
4098
4099
  fn: p(() => [
4099
- P(k(g.label), 1)
4100
+ P(k(q.label), 1)
4100
4101
  ]),
4101
4102
  key: "0"
4102
4103
  },
4103
4104
  l.value ? {
4104
4105
  name: "append",
4105
4106
  fn: p(() => [
4106
- de(g.$slots, "locked", { userId: l.value }, () => [
4107
- g.collab ? (Y(), T(Zt, {
4107
+ de(q.$slots, "locked", { userId: l.value }, () => [
4108
+ q.collab ? (Y(), T(Zt, {
4108
4109
  key: 0,
4109
4110
  id: l.value,
4110
- users: g.collab.cachedUsers
4111
+ users: q.collab.cachedUsers
4111
4112
  }, null, 8, ["id", "users"])) : j("", !0)
4112
4113
  ])
4113
4114
  ]),
@@ -4129,26 +4130,26 @@ const fp = {
4129
4130
  emits: ["update:modelValue"],
4130
4131
  setup(a, { emit: t }) {
4131
4132
  const e = a, s = t, { t: i } = ee(), r = at(_a, void 0), o = at(Sa, void 0), l = _(() => {
4132
- var q, h;
4133
+ var g, h;
4133
4134
  if (!L(e.label)) return e.label;
4134
- if (L(r) || L(o) || L((q = e.v) == null ? void 0 : q.$path)) return "";
4135
+ if (L(r) || L(o) || L((g = e.v) == null ? void 0 : g.$path)) return "";
4135
4136
  const { end: v } = Ua((h = e.v) == null ? void 0 : h.$path, ".");
4136
4137
  return i(r + "." + o + ".model." + v);
4137
- }), n = S(!1), d = S(!1), c = S(""), u = _(() => e.modelValue), f = S(e.modelValue), g = async () => {
4138
+ }), n = S(!1), d = S(!1), c = S(""), u = _(() => e.modelValue), f = S(e.modelValue), q = async () => {
4138
4139
  if (n.value) return;
4139
4140
  if (n.value = !0, d.value = !1, f.value === !0) {
4140
- const q = await e.callbackToFalse();
4141
- s("update:modelValue", !q), f.value = !q, q || (d.value = !0), n.value = !1;
4141
+ const g = await e.callbackToFalse();
4142
+ s("update:modelValue", !g), f.value = !g, g || (d.value = !0), n.value = !1;
4142
4143
  return;
4143
4144
  }
4144
4145
  const v = await e.callbackToTrue();
4145
4146
  s("update:modelValue", v), f.value = v, v || (d.value = !0), n.value = !1;
4146
4147
  };
4147
- return qe(u, (v, q) => {
4148
- v !== q && (f.value = v, d.value = !1);
4148
+ return qe(u, (v, g) => {
4149
+ v !== g && (f.value = v, d.value = !1);
4149
4150
  }), Yt(() => {
4150
4151
  c.value = "a-remote-switch-" + Date.now();
4151
- }), (v, q) => (Y(), R("div", hp, [
4152
+ }), (v, g) => (Y(), R("div", hp, [
4152
4153
  m(ie, {
4153
4154
  id: c.value,
4154
4155
  icon: "",
@@ -4157,17 +4158,17 @@ const fp = {
4157
4158
  ripple: !1,
4158
4159
  width: v.hideLabel ? 36 : void 0,
4159
4160
  height: 36,
4160
- onClick: J(g, ["stop"])
4161
+ onClick: J(q, ["stop"])
4161
4162
  }, {
4162
4163
  default: p(() => [
4163
4164
  m(fi, {
4164
4165
  modelValue: f.value,
4165
- "onUpdate:modelValue": q[0] || (q[0] = (h) => f.value = h),
4166
+ "onUpdate:modelValue": g[0] || (g[0] = (h) => f.value = h),
4166
4167
  loading: n.value,
4167
4168
  disabled: n.value,
4168
4169
  "hide-details": v.hideDetails,
4169
4170
  density: "compact",
4170
- onClick: J(g, ["stop"])
4171
+ onClick: J(q, ["stop"])
4171
4172
  }, ua({ _: 2 }, [
4172
4173
  d.value ? {
4173
4174
  name: "append",
@@ -4240,11 +4241,11 @@ const fp = {
4240
4241
  { immediate: !0 }
4241
4242
  );
4242
4243
  }
4243
- const c = at(_a, void 0), u = at(Sa, void 0), { t: f } = ee(), g = S(!1), v = () => {
4244
+ const c = at(_a, void 0), u = at(Sa, void 0), { t: f } = ee(), q = S(!1), v = () => {
4244
4245
  var A;
4245
- g.value = !1, s("blur", e.modelValue), (A = e.v) == null || A.$touch(), o.value(e.modelValue);
4246
- }, q = () => {
4247
- g.value = !0, s("focus", e.modelValue), n.value();
4246
+ q.value = !1, s("blur", e.modelValue), (A = e.v) == null || A.$touch(), o.value(e.modelValue);
4247
+ }, g = () => {
4248
+ q.value = !0, s("focus", e.modelValue), n.value();
4248
4249
  }, h = _(() => {
4249
4250
  var A, b;
4250
4251
  return he(e.errorMessage) ? [e.errorMessage] : (b = (A = e.v) == null ? void 0 : A.$errors) != null && b.length ? e.v.$errors.map((B) => B.$message) : [];
@@ -4261,7 +4262,7 @@ const fp = {
4261
4262
  return qe(
4262
4263
  i,
4263
4264
  async (A, b) => {
4264
- A !== b && r.value.enabled && g.value && l.value(A);
4265
+ A !== b && r.value.enabled && q.value && l.value(A);
4265
4266
  },
4266
4267
  { immediate: !0 }
4267
4268
  ), (A, b) => (Y(), T(Zi, {
@@ -4276,7 +4277,7 @@ const fp = {
4276
4277
  "error-messages": h.value,
4277
4278
  "data-cy": A.dataCy,
4278
4279
  onBlur: v,
4279
- onFocus: q
4280
+ onFocus: g
4280
4281
  }, ua({
4281
4282
  label: p(() => [
4282
4283
  A.hideLabel ? j("", !0) : (Y(), R("span", gp, [
@@ -4353,11 +4354,11 @@ const fp = {
4353
4354
  }
4354
4355
  }), r = S(""), o = S(!1), l = S(void 0), n = S(0), { t: d } = ee(), { innerFilter: c } = ci(e), u = () => {
4355
4356
  o.value = !0;
4356
- }, f = _(() => e.modelValue.titleT ? d(e.modelValue.titleT) : void 0), g = _(() => e.modelValue.multiple !== !1), v = Ps(e.filterSortBy), q = S([]), h = S([]), x = _(() => {
4357
+ }, f = _(() => e.modelValue.titleT ? d(e.modelValue.titleT) : void 0), q = _(() => e.modelValue.multiple !== !1), v = Ps(e.filterSortBy), g = S([]), h = S([]), x = _(() => {
4357
4358
  const I = /* @__PURE__ */ new Map();
4358
4359
  return h.value.forEach((w) => {
4359
4360
  I.set(w.value, { value: w.value, title: w.title, subtitle: w.subtitle });
4360
- }), q.value.forEach((w) => {
4361
+ }), g.value.forEach((w) => {
4361
4362
  I.set(w.value, { value: w.value, title: w.title, subtitle: w.subtitle });
4362
4363
  }), Array.from(I, ([w, C]) => ({ value: w, title: C.title, subtitle: C.subtitle }));
4363
4364
  }), F = S(!1), y = async (I, w) => {
@@ -4365,7 +4366,7 @@ const fp = {
4365
4366
  const C = c.value[e.filterByField];
4366
4367
  C.model = I;
4367
4368
  const D = await e.fetchItems(v, c.value);
4368
- w === n.value && (q.value = D), F.value = !1;
4369
+ w === n.value && (g.value = D), F.value = !1;
4369
4370
  }, X = (I) => {
4370
4371
  const w = x.value.filter((C) => I.includes(C.value));
4371
4372
  return [].concat(w);
@@ -4378,7 +4379,7 @@ const fp = {
4378
4379
  if (B(), b.value === !0) return;
4379
4380
  b.value = !0, F.value = !0;
4380
4381
  const I = await e.fetchItems(v, c.value);
4381
- n.value === 0 && (q.value = I), F.value = !1;
4382
+ n.value === 0 && (g.value = I), F.value = !1;
4382
4383
  }, z = () => {
4383
4384
  o.value = !0, B(), N();
4384
4385
  }, M = _(() => {
@@ -4387,7 +4388,7 @@ const fp = {
4387
4388
  }), O = (I) => {
4388
4389
  !e.modelValue.multiple && !o.value && I.length === 0 || M.value !== I && (r.value = I);
4389
4390
  }, K = async () => {
4390
- if (q.value = await e.fetchItems(v, c.value), e.modelValue.multiple) {
4391
+ if (g.value = await e.fetchItems(v, c.value), e.modelValue.multiple) {
4391
4392
  i.value = [];
4392
4393
  return;
4393
4394
  }
@@ -4425,7 +4426,7 @@ const fp = {
4425
4426
  items: x.value,
4426
4427
  "no-filter": "",
4427
4428
  placeholder: E.value,
4428
- multiple: g.value,
4429
+ multiple: q.value,
4429
4430
  clearable: !I.modelValue.mandatory,
4430
4431
  label: f.value,
4431
4432
  chips: I.modelValue.multiple,
@@ -4914,7 +4915,7 @@ const yD = /* @__PURE__ */ W({
4914
4915
  }
4915
4916
  }), Mp = S(/* @__PURE__ */ new Set());
4916
4917
  function $p(a, t = !1, e = void 0, s = void 0, i = !1) {
4917
- const { collabSocket: r, collabRoomInfoState: o, collabFieldDataBufferState: l, collabFieldLocksState: n } = co(), d = Qd(), c = S(), u = S(), f = iu(), g = S(), v = S(), q = au(), h = S(), x = S(), F = su(), y = S(), X = S(), A = nu(), b = S(), B = S(), N = ru(), z = S(), M = S(), O = ou(), K = S(), E = S(), I = lu(), w = S(), C = S(), D = eu(), $ = S(), H = S(), G = () => {
4918
+ const { collabSocket: r, collabRoomInfoState: o, collabFieldDataBufferState: l, collabFieldLocksState: n } = co(), d = Qd(), c = S(), u = S(), f = iu(), q = S(), v = S(), g = au(), h = S(), x = S(), F = su(), y = S(), X = S(), A = nu(), b = S(), B = S(), N = ru(), z = S(), M = S(), O = ou(), K = S(), E = S(), I = lu(), w = S(), C = S(), D = eu(), $ = S(), H = S(), G = () => {
4918
4919
  he(u.value) && u.value();
4919
4920
  }, Z = (me) => {
4920
4921
  me.room === a && he(v.value) && v.value(me.userId, me.timestamp);
@@ -4933,9 +4934,9 @@ function $p(a, t = !1, e = void 0, s = void 0, i = !1) {
4933
4934
  }, Q = (me) => {
4934
4935
  me.room === a && he(H.value) && H.value(me.startedCallback);
4935
4936
  }, ue = (me) => {
4936
- v.value = me, g.value = f.on(Z);
4937
+ v.value = me, q.value = f.on(Z);
4937
4938
  }, ce = (me) => {
4938
- x.value = me, h.value = q.on(ae);
4939
+ x.value = me, h.value = g.on(ae);
4939
4940
  }, we = (me) => {
4940
4941
  X.value = me, y.value = F.on(fe);
4941
4942
  }, Oe = (me) => {
@@ -4958,7 +4959,7 @@ function $p(a, t = !1, e = void 0, s = void 0, i = !1) {
4958
4959
  H.value = me, $.value = D.on(Q);
4959
4960
  };
4960
4961
  Ln(() => {
4961
- i || (he(g.value) && g.value(), he(h.value) && h.value(), he(y.value) && y.value(), he(b.value) && b.value(), he(z.value) && z.value(), he(K.value) && K.value(), he(w.value) && w.value(), he($.value) && $.value());
4962
+ i || (he(q.value) && q.value(), he(h.value) && h.value(), he(y.value) && y.value(), he(b.value) && b.value(), he(z.value) && z.value(), he(K.value) && K.value(), he(w.value) && w.value(), he($.value) && $.value());
4962
4963
  });
4963
4964
  const { collabOptions: Te } = aa(), dt = () => {
4964
4965
  !Te.value.enabled || L(r.value) || r.value.emit("subscribeCollabRoomInfo", a, (me) => {
@@ -5054,7 +5055,7 @@ function $p(a, t = !1, e = void 0, s = void 0, i = !1) {
5054
5055
  collabRoomLocks: wl,
5055
5056
  collabFieldDataBufferState: l,
5056
5057
  alertedOccupiedRooms: Mp,
5057
- unsubscribeJoinRequestListener: g,
5058
+ unsubscribeJoinRequestListener: q,
5058
5059
  unsubscribeApprovedJoinRequestListener: h,
5059
5060
  unsubscribeRejectedJoinRequestListener: y,
5060
5061
  unsubscribeRequestToTakeModerationListener: b,
@@ -5086,9 +5087,9 @@ const Bp = { class: "ml-3" }, Pp = { class: "ml-1" }, bD = /* @__PURE__ */ W({
5086
5087
  approveRequestToTakeModeration: c,
5087
5088
  rejectRequestToTakeModeration: u,
5088
5089
  addRequestToTakeModerationListener: f,
5089
- addApprovedRequestToTakeModerationListener: g,
5090
+ addApprovedRequestToTakeModerationListener: q,
5090
5091
  addRejectedRequestToTakeModerationListener: v,
5091
- kickUserFromRoom: q,
5092
+ kickUserFromRoom: g,
5092
5093
  transferModeration: h,
5093
5094
  alertedOccupiedRooms: x
5094
5095
  // eslint-disable-next-line vue/no-setup-props-reactivity-loss
@@ -5101,7 +5102,7 @@ const Bp = { class: "ml-3" }, Pp = { class: "ml-1" }, bD = /* @__PURE__ */ W({
5101
5102
  y("common.collab.alert.rejectedJoinRequest"), E.value = !1, K.value = !1, x.value.delete(t.collabRoom);
5102
5103
  }), f(async (se, Ye) => {
5103
5104
  he(t.addToCachedUsers) && t.addToCachedUsers(se), he(t.fetchCachedUsers) && t.fetchCachedUsers(), O.value = { userId: se, timestamp: Ye }, M.value = !0;
5104
- }), g(() => {
5105
+ }), q(() => {
5105
5106
  X("common.collab.alert.approvedToTakeModeration"), E.value = !1;
5106
5107
  }), v(() => {
5107
5108
  y("common.collab.alert.rejectedToTakeModeration"), E.value = !1;
@@ -5145,9 +5146,9 @@ const Bp = { class: "ml-3" }, Pp = { class: "ml-1" }, bD = /* @__PURE__ */ W({
5145
5146
  }, ce = (se) => {
5146
5147
  h(se), z.value = !1;
5147
5148
  }, we = (se) => {
5148
- q(se), z.value = !1;
5149
+ g(se), z.value = !1;
5149
5150
  }, Oe = () => {
5150
- q(A.value ?? 0);
5151
+ g(A.value ?? 0);
5151
5152
  }, pe = (se) => Math.ceil((6e4 - ((/* @__PURE__ */ new Date()).getTime() - se)) / 1e3);
5152
5153
  return (se, Ye) => {
5153
5154
  const nt = $e("ABtnSecondary"), lt = $e("ABtnIcon"), Te = $e("ABtnTertiary"), dt = $e("ABtnPrimary");
@@ -5725,8 +5726,8 @@ const Bp = { class: "ml-3" }, Pp = { class: "ml-1" }, bD = /* @__PURE__ */ W({
5725
5726
  return "flat";
5726
5727
  }
5727
5728
  });
5728
- return (f, g) => {
5729
- const v = $e("ABtnTertiary"), q = $e("ABtnPrimary");
5729
+ return (f, q) => {
5730
+ const v = $e("ABtnTertiary"), g = $e("ABtnPrimary");
5730
5731
  return Y(), R(ge, null, [
5731
5732
  f.variant === "icon" ? (Y(), T(ie, {
5732
5733
  key: 0,
@@ -5772,7 +5773,7 @@ const Bp = { class: "ml-3" }, Pp = { class: "ml-1" }, bD = /* @__PURE__ */ W({
5772
5773
  }, 8, ["class", "data-cy", "variant", "color", "height"])),
5773
5774
  m(Vt, {
5774
5775
  modelValue: r.value,
5775
- "onUpdate:modelValue": g[0] || (g[0] = (h) => r.value = h),
5776
+ "onUpdate:modelValue": q[0] || (q[0] = (h) => r.value = h),
5776
5777
  persistent: "",
5777
5778
  width: 500,
5778
5779
  "no-click-animation": ""
@@ -5802,7 +5803,7 @@ const Bp = { class: "ml-3" }, Pp = { class: "ml-1" }, bD = /* @__PURE__ */ W({
5802
5803
  ]),
5803
5804
  _: 1
5804
5805
  }, 8, ["disabled"]),
5805
- m(q, {
5806
+ m(g, {
5806
5807
  color: f.dialogConfirmColor,
5807
5808
  loading: f.loading,
5808
5809
  "data-cy": "button-confirm-delete",
@@ -6508,23 +6509,23 @@ const iv = /* @__PURE__ */ Ga(tv, [["render", sv]]), rv = { class: "flag" }, Pl
6508
6509
  },
6509
6510
  emits: ["afterChange"],
6510
6511
  setup(a, { emit: t }) {
6511
- const e = a, s = t, { useCurrentUser: i } = ho(e.system), { currentUser: r } = i(e.system), o = at(Zd), l = at(Jd), { setLanguage: n } = jp(o, l), { currentLanguageCode: d } = Hp(), c = (g) => {
6512
- n(g) && s("afterChange", g);
6512
+ const e = a, s = t, { useCurrentUser: i } = ho(e.system), { currentUser: r } = i(e.system), o = at(Zd), l = at(Jd), { setLanguage: n } = jp(o, l), { currentLanguageCode: d } = Hp(), c = (q) => {
6513
+ n(q) && s("afterChange", q);
6513
6514
  }, u = _(() => {
6514
- const g = Kr.find((v) => v.code === d.value);
6515
- return L(g) ? Kr[0] : g;
6515
+ const q = Kr.find((v) => v.code === d.value);
6516
+ return L(q) ? Kr[0] : q;
6516
6517
  }), f = _(() => Kr.filter(
6517
- (g) => {
6518
+ (q) => {
6518
6519
  var v;
6519
- return (o.includes(g.code) || g.code === "xx") && (!g.adminOnly || ((v = r.value) == null ? void 0 : v.roles.includes(xu)));
6520
+ return (o.includes(q.code) || q.code === "xx") && (!q.adminOnly || ((v = r.value) == null ? void 0 : v.roles.includes(xu)));
6520
6521
  }
6521
6522
  ));
6522
- return (g, v) => (Y(), T(ca, null, {
6523
- activator: p(({ props: q }) => [
6523
+ return (q, v) => (Y(), T(ca, null, {
6524
+ activator: p(({ props: g }) => [
6524
6525
  m(ie, Et({
6525
6526
  class: "pl-1",
6526
6527
  rounded: "pill"
6527
- }, q, {
6528
+ }, g, {
6528
6529
  variant: "text",
6529
6530
  "data-cy": "settings-language"
6530
6531
  }), {
@@ -6553,9 +6554,9 @@ const iv = /* @__PURE__ */ Ga(tv, [["render", sv]]), rv = { class: "flag" }, Pl
6553
6554
  default: p(() => [
6554
6555
  m(la, { density: "compact" }, {
6555
6556
  default: p(() => [
6556
- (Y(!0), R(ge, null, je(f.value, (q) => (Y(), T(Ze, {
6557
- key: q.code,
6558
- onClick: J((h) => c(q.code), ["stop"])
6557
+ (Y(!0), R(ge, null, je(f.value, (g) => (Y(), T(Ze, {
6558
+ key: g.code,
6559
+ onClick: J((h) => c(g.code), ["stop"])
6559
6560
  }, {
6560
6561
  default: p(() => [
6561
6562
  m(fs, null, {
@@ -6566,12 +6567,12 @@ const iv = /* @__PURE__ */ Ga(tv, [["render", sv]]), rv = { class: "flag" }, Pl
6566
6567
  }, {
6567
6568
  default: p(() => [
6568
6569
  m(Pl, {
6569
- code: q.code
6570
+ code: g.code
6570
6571
  }, null, 8, ["code"])
6571
6572
  ]),
6572
6573
  _: 2
6573
6574
  }, 1024),
6574
- P(" " + k(q.title), 1)
6575
+ P(" " + k(g.title), 1)
6575
6576
  ]),
6576
6577
  _: 2
6577
6578
  }, 1024)
@@ -6945,7 +6946,7 @@ const lv = { class: "text-center w-100 text-caption pb-1" }, MD = /* @__PURE__ *
6945
6946
  const e = a, s = t, { fetch: i, add: r, addManualMinimal: o } = e.useCached(), l = _(() => {
6946
6947
  if (v.value)
6947
6948
  return "$vuetify.loading";
6948
- if (x.value.size === 0 && g.value.length < Rl && e.minSearchText.length > 0)
6949
+ if (x.value.size === 0 && q.value.length < Rl && e.minSearchText.length > 0)
6949
6950
  return e.minSearchText;
6950
6951
  }), n = _({
6951
6952
  get() {
@@ -6954,7 +6955,7 @@ const lv = { class: "text-center w-100 text-caption pb-1" }, MD = /* @__PURE__ *
6954
6955
  set(K) {
6955
6956
  s("update:modelValue", ye(K));
6956
6957
  }
6957
- }), { t: d } = ee(), c = at(_a, void 0), u = at(Sa, void 0), f = S(!1), g = S(""), v = S(!1), { innerFilter: q } = ci(e), h = Ps(e.filterSortBy), x = S(/* @__PURE__ */ new Map()), F = () => {
6958
+ }), { t: d } = ee(), c = at(_a, void 0), u = at(Sa, void 0), f = S(!1), q = S(""), v = S(!1), { innerFilter: g } = ci(e), h = Ps(e.filterSortBy), x = S(/* @__PURE__ */ new Map()), F = () => {
6958
6959
  f.value = !0, s("focus", n.value);
6959
6960
  }, y = () => {
6960
6961
  var K;
@@ -6972,15 +6973,15 @@ const lv = { class: "text-center w-100 text-caption pb-1" }, MD = /* @__PURE__ *
6972
6973
  var K, E;
6973
6974
  return L(e.required) ? ((K = e.v) == null ? void 0 : K.required) && ((E = e.v) == null ? void 0 : E.required.$params.type) === "required" : e.required;
6974
6975
  }), B = (K) => {
6975
- g.value = K;
6976
+ q.value = K;
6976
6977
  }, N = async (K) => {
6977
6978
  if (K.length < Rl) {
6978
6979
  x.value.clear();
6979
6980
  return;
6980
6981
  }
6981
6982
  v.value = !0;
6982
- const E = q.value[e.filterByField];
6983
- E.model = K, x.value.clear(), (await e.fetchItemsMinimal(h, q.value)).forEach((w) => {
6983
+ const E = g.value[e.filterByField];
6984
+ E.model = K, x.value.clear(), (await e.fetchItemsMinimal(h, g.value)).forEach((w) => {
6984
6985
  x.value.set(w[e.itemValue], w);
6985
6986
  }), v.value = !1;
6986
6987
  }, z = _(() => {
@@ -7000,12 +7001,12 @@ const lv = { class: "text-center w-100 text-caption pb-1" }, MD = /* @__PURE__ *
7000
7001
  n.value = null;
7001
7002
  };
7002
7003
  return Un(
7003
- g,
7004
+ q,
7004
7005
  (K, E) => {
7005
7006
  K !== E && (N(K), s("searchChangeDebounced", K));
7006
7007
  },
7007
7008
  { debounce: 300 }
7008
- ), qe(g, (K, E) => {
7009
+ ), qe(q, (K, E) => {
7009
7010
  K !== E && s("searchChange", K);
7010
7011
  }), qe(
7011
7012
  n,
@@ -7019,9 +7020,9 @@ const lv = { class: "text-center w-100 text-caption pb-1" }, MD = /* @__PURE__ *
7019
7020
  ), (K, E) => (Y(), T(Zi, {
7020
7021
  modelValue: n.value,
7021
7022
  "onUpdate:modelValue": E[0] || (E[0] = (I) => n.value = I),
7022
- search: g.value,
7023
+ search: q.value,
7023
7024
  "onUpdate:search": [
7024
- E[1] || (E[1] = (I) => g.value = I),
7025
+ E[1] || (E[1] = (I) => q.value = I),
7025
7026
  B
7026
7027
  ],
7027
7028
  chips: "",
@@ -7500,13 +7501,13 @@ const Is = {
7500
7501
  function f(w) {
7501
7502
  o.value = w;
7502
7503
  }
7503
- function g(w) {
7504
+ function q(w) {
7504
7505
  i.value = w;
7505
7506
  }
7506
7507
  function v(w) {
7507
7508
  l.value = w;
7508
7509
  }
7509
- function q(w) {
7510
+ function g(w) {
7510
7511
  n.value = w;
7511
7512
  }
7512
7513
  function h(w) {
@@ -7605,11 +7606,11 @@ const Is = {
7605
7606
  loader: t,
7606
7607
  assetListItems: a,
7607
7608
  getSelectedData: M,
7608
- setAssetType: g,
7609
+ setAssetType: q,
7609
7610
  setSelectConfig: u,
7610
7611
  setSingleMode: f,
7611
7612
  setMinCount: v,
7612
- setMaxCount: q,
7613
+ setMaxCount: g,
7613
7614
  showLoader: d,
7614
7615
  hideLoader: c,
7615
7616
  setList: h,
@@ -7662,16 +7663,16 @@ function qo() {
7662
7663
  querySetFilters: (c) => {
7663
7664
  const u = !L(c._elastic);
7664
7665
  for (const f in c) {
7665
- const g = c[f], v = g.field || f;
7666
- if (g.exclude)
7666
+ const q = c[f], v = q.field || f;
7667
+ if (q.exclude)
7667
7668
  continue;
7668
- const q = o(g);
7669
- if (!te(q)) {
7669
+ const g = o(q);
7670
+ if (!te(g)) {
7670
7671
  if (u) {
7671
- l(v, q);
7672
+ l(v, g);
7672
7673
  continue;
7673
7674
  }
7674
- r(g.variant, v, q);
7675
+ r(q.variant, v, g);
7675
7676
  }
7676
7677
  }
7677
7678
  },
@@ -7900,13 +7901,13 @@ function sa(a = void 0) {
7900
7901
  function f() {
7901
7902
  return t.initialized.damPubConfig;
7902
7903
  }
7903
- function g() {
7904
+ function q() {
7904
7905
  return t.initialized.damPrvConfig;
7905
7906
  }
7906
7907
  function v(F) {
7907
7908
  return t.damConfigExtSystem.get(F);
7908
7909
  }
7909
- function q(F) {
7910
+ function g(F) {
7910
7911
  return t.damConfigAssetCustomFormElements.get(F);
7911
7912
  }
7912
7913
  async function h(F) {
@@ -7962,9 +7963,9 @@ function sa(a = void 0) {
7962
7963
  loadDamConfigAssetCustomFormElements: d,
7963
7964
  loadDamConfigDistributionCustomFormElements: u,
7964
7965
  isDamPubConfigLoaded: f,
7965
- isDamPrvConfigLoaded: g,
7966
+ isDamPrvConfigLoaded: q,
7966
7967
  getDamConfigExtSystem: v,
7967
- getDamConfigAssetCustomFormElements: q
7968
+ getDamConfigAssetCustomFormElements: g
7968
7969
  };
7969
7970
  }
7970
7971
  const vi = "/adm/v1/asset", Uo = 10, Yo = "asset", Be = "coreDam", Hr = "dam", No = 25, Ll = (a, t, e, s) => Za(
@@ -8095,11 +8096,11 @@ function hi(a = "default") {
8095
8096
  e.toggleSelectedByIndex(h.index);
8096
8097
  }, f = async () => {
8097
8098
  e.reset(), Xi.type.default = [e.assetType], l(Xi, As, d);
8098
- }, g = () => {
8099
+ }, q = () => {
8099
8100
  jo.value = !0;
8100
8101
  }, v = () => {
8101
8102
  jo.value = !1;
8102
- }, q = (h, x, F, y, X) => {
8103
+ }, g = (h, x, F, y, X) => {
8103
8104
  e.clearSelected(), e.setAssetType(x), e.setSelectConfig(h), e.setSingleMode(F), e.setMinCount(y), e.setMaxCount(X);
8104
8105
  };
8105
8106
  return {
@@ -8116,9 +8117,9 @@ function hi(a = "default") {
8116
8117
  fetchAssetList: d,
8117
8118
  fetchNextPage: c,
8118
8119
  resetAssetList: f,
8119
- filterTouch: g,
8120
+ filterTouch: q,
8120
8121
  filterUnTouch: v,
8121
- initStoreContext: q
8122
+ initStoreContext: g
8122
8123
  };
8123
8124
  }
8124
8125
  const Ul = 200, hr = "#ccc";
@@ -8257,7 +8258,7 @@ const Ks = "data:image/jpeg;base64,/9j/4QZGRXhpZgAATU0AKgAAAAgADAEAAAMAAAABCgAAA
8257
8258
  s("itemClick", { assetId: o.value.id, index: e.index });
8258
8259
  };
8259
8260
  return (u, f) => {
8260
- var g, v;
8261
+ var q, v;
8261
8262
  return Y(), R("tr", {
8262
8263
  class: Fe(["a-datatable__row", { "a-datatable__row--selected": r.value.selected }]),
8263
8264
  onClick: J(c, ["stop", "exact"])
@@ -8291,7 +8292,7 @@ const Ks = "data:image/jpeg;base64,/9j/4QZGRXhpZgAATU0AKgAAAAgADAEAAAMAAAABCgAAA
8291
8292
  "date-time": V(o).createdAt
8292
8293
  }, null, 8, ["date-time"])
8293
8294
  ]),
8294
- U("td", null, k((g = V(o).mainFile) == null ? void 0 : g.fileAttributes.mimeType), 1),
8295
+ U("td", null, k((q = V(o).mainFile) == null ? void 0 : q.fileAttributes.mimeType), 1),
8295
8296
  U("td", null, k(V(Ao)(((v = V(o).mainFile) == null ? void 0 : v.fileAttributes.size) || 0)), 1)
8296
8297
  ], 2);
8297
8298
  };
@@ -8773,7 +8774,7 @@ const Eh = /* @__PURE__ */ W({
8773
8774
  m(yn, {
8774
8775
  modelValue: V(t).text,
8775
8776
  "onUpdate:modelValue": [
8776
- f[0] || (f[0] = (g) => V(t).text = g),
8777
+ f[0] || (f[0] = (q) => V(t).text = q),
8777
8778
  d
8778
8779
  ],
8779
8780
  onKeydown: Pa(c, ["enter"])
@@ -8791,7 +8792,7 @@ const Eh = /* @__PURE__ */ W({
8791
8792
  m(yn, {
8792
8793
  modelValue: V(t).assetAndMainFileIds,
8793
8794
  "onUpdate:modelValue": [
8794
- f[1] || (f[1] = (g) => V(t).assetAndMainFileIds = g),
8795
+ f[1] || (f[1] = (q) => V(t).assetAndMainFileIds = q),
8795
8796
  d
8796
8797
  ],
8797
8798
  onKeydown: Pa(c, ["enter"])
@@ -8810,7 +8811,7 @@ const Eh = /* @__PURE__ */ W({
8810
8811
  key: n.value,
8811
8812
  modelValue: V(t).keywordIds,
8812
8813
  "onUpdate:modelValue": [
8813
- f[2] || (f[2] = (g) => V(t).keywordIds = g),
8814
+ f[2] || (f[2] = (q) => V(t).keywordIds = q),
8814
8815
  d
8815
8816
  ],
8816
8817
  "ext-system": n.value
@@ -8829,7 +8830,7 @@ const Eh = /* @__PURE__ */ W({
8829
8830
  key: n.value,
8830
8831
  modelValue: V(t).authorIds,
8831
8832
  "onUpdate:modelValue": [
8832
- f[3] || (f[3] = (g) => V(t).authorIds = g),
8833
+ f[3] || (f[3] = (q) => V(t).authorIds = q),
8833
8834
  d
8834
8835
  ],
8835
8836
  "ext-system": n.value
@@ -8847,7 +8848,7 @@ const Eh = /* @__PURE__ */ W({
8847
8848
  m(Eh, {
8848
8849
  modelValue: V(t).createdByIds,
8849
8850
  "onUpdate:modelValue": [
8850
- f[4] || (f[4] = (g) => V(t).createdByIds = g),
8851
+ f[4] || (f[4] = (q) => V(t).createdByIds = q),
8851
8852
  d
8852
8853
  ]
8853
8854
  }, null, 8, ["modelValue"])
@@ -8864,7 +8865,7 @@ const Eh = /* @__PURE__ */ W({
8864
8865
  m(zo, {
8865
8866
  modelValue: V(t).described,
8866
8867
  "onUpdate:modelValue": [
8867
- f[5] || (f[5] = (g) => V(t).described = g),
8868
+ f[5] || (f[5] = (q) => V(t).described = q),
8868
8869
  d
8869
8870
  ]
8870
8871
  }, null, 8, ["modelValue"])
@@ -8881,7 +8882,7 @@ const Eh = /* @__PURE__ */ W({
8881
8882
  m(zo, {
8882
8883
  modelValue: V(t).visible,
8883
8884
  "onUpdate:modelValue": [
8884
- f[6] || (f[6] = (g) => V(t).visible = g),
8885
+ f[6] || (f[6] = (q) => V(t).visible = q),
8885
8886
  d
8886
8887
  ]
8887
8888
  }, null, 8, ["modelValue"])
@@ -8898,7 +8899,7 @@ const Eh = /* @__PURE__ */ W({
8898
8899
  m(zo, {
8899
8900
  modelValue: V(t).generatedBySystem,
8900
8901
  "onUpdate:modelValue": [
8901
- f[7] || (f[7] = (g) => V(t).generatedBySystem = g),
8902
+ f[7] || (f[7] = (q) => V(t).generatedBySystem = q),
8902
8903
  d
8903
8904
  ]
8904
8905
  }, null, 8, ["modelValue"])
@@ -8954,11 +8955,11 @@ const Eh = /* @__PURE__ */ W({
8954
8955
  });
8955
8956
  return qe(
8956
8957
  l,
8957
- (f, g) => {
8958
- f !== g && d();
8958
+ (f, q) => {
8959
+ f !== q && d();
8959
8960
  },
8960
8961
  { immediate: !1 }
8961
- ), (f, g) => (Y(), R("div", Bh, [
8962
+ ), (f, q) => (Y(), R("div", Bh, [
8962
8963
  U("div", Ph, [
8963
8964
  m(uo, {
8964
8965
  name: "search2",
@@ -8972,7 +8973,7 @@ const Eh = /* @__PURE__ */ W({
8972
8973
  default: p(() => [
8973
8974
  m(Ji, {
8974
8975
  modelValue: V(l),
8975
- "onUpdate:modelValue": g[0] || (g[0] = (v) => La(l) ? l.value = v : null),
8976
+ "onUpdate:modelValue": q[0] || (q[0] = (v) => La(l) ? l.value = v : null),
8976
8977
  label: V(t)("common.assetSelect.filter.licence"),
8977
8978
  items: V(n),
8978
8979
  "item-title": "licenceName",
@@ -9073,22 +9074,22 @@ const Lh = {
9073
9074
  loader: c,
9074
9075
  pagination: u,
9075
9076
  fetchNextPage: f,
9076
- resetAssetList: g,
9077
+ resetAssetList: q,
9077
9078
  getSelectedData: v,
9078
- initStoreContext: q
9079
+ initStoreContext: g
9079
9080
  } = hi(), { getOrLoadDamConfigExtSystemByLicences: h } = sa(n), x = Ft([]), { openSidebar: F, sidebarLeft: y } = Lu(), { showErrorT: X } = He(), A = () => {
9080
9081
  let K = ye(x.value);
9081
9082
  if (s.skipCurrentUserCheck || (K = zh(x.value)), K.length === 0) {
9082
9083
  X("common.assetSelect.error.unallowedLicence");
9083
9084
  return;
9084
9085
  }
9085
- q(
9086
+ g(
9086
9087
  K,
9087
9088
  s.assetType,
9088
9089
  s.minCount === 1 && s.minCount === s.maxCount,
9089
9090
  s.minCount,
9090
9091
  s.maxCount
9091
- ), g(), F(), r.value = !0;
9092
+ ), q(), F(), r.value = !0;
9092
9093
  };
9093
9094
  qe(
9094
9095
  r,
@@ -9378,8 +9379,8 @@ function mt(a, t, e, s, i) {
9378
9379
  }
9379
9380
  while (i = i.parentNode);
9380
9381
  if (s && a !== window) {
9381
- var g = si(i || a), v = g && g.a, q = g && g.d;
9382
- g && (o /= q, l /= v, u /= v, c /= q, n = o + c, d = l + u);
9382
+ var q = si(i || a), v = q && q.a, g = q && q.d;
9383
+ q && (o /= g, l /= v, u /= v, c /= g, n = o + c, d = l + u);
9383
9384
  }
9384
9385
  return {
9385
9386
  top: o,
@@ -9535,9 +9536,9 @@ function rF() {
9535
9536
  }
9536
9537
  var r = !1, o = 0;
9537
9538
  a.forEach(function(l) {
9538
- var n = 0, d = l.target, c = d.fromRect, u = mt(d), f = d.prevFromRect, g = d.prevToRect, v = l.rect, q = si(d, !0);
9539
- q && (u.top -= q.f, u.left -= q.e), d.toRect = u, d.thisAnimationDuration && Ho(f, u) && !Ho(c, u) && // Make sure animatingRect is on line between toRect & fromRect
9540
- (v.top - u.top) / (v.left - u.left) === (c.top - u.top) / (c.left - u.left) && (n = nF(v, f, g, i.options)), Ho(u, c) || (d.prevFromRect = c, d.prevToRect = u, n || (n = i.options.animation), i.animate(d, v, u, n)), n && (r = !0, o = Math.max(o, n), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
9539
+ var n = 0, d = l.target, c = d.fromRect, u = mt(d), f = d.prevFromRect, q = d.prevToRect, v = l.rect, g = si(d, !0);
9540
+ g && (u.top -= g.f, u.left -= g.e), d.toRect = u, d.thisAnimationDuration && Ho(f, u) && !Ho(c, u) && // Make sure animatingRect is on line between toRect & fromRect
9541
+ (v.top - u.top) / (v.left - u.left) === (c.top - u.top) / (c.left - u.left) && (n = nF(v, f, q, i.options)), Ho(u, c) || (d.prevFromRect = c, d.prevToRect = u, n || (n = i.options.animation), i.animate(d, v, u, n)), n && (r = !0, o = Math.max(o, n), clearTimeout(d.animationResetTimer), d.animationResetTimer = setTimeout(function() {
9541
9542
  d.animationTime = 0, d.prevFromRect = null, d.fromRect = null, d.prevToRect = null, d.thisAnimationDuration = null;
9542
9543
  }, n), d.thisAnimationDuration = n);
9543
9544
  }), clearTimeout(t), r ? t = setTimeout(function() {
@@ -9614,17 +9615,17 @@ var Us = [], Wo = {
9614
9615
  }
9615
9616
  };
9616
9617
  function lF(a) {
9617
- var t = a.sortable, e = a.rootEl, s = a.name, i = a.targetEl, r = a.cloneEl, o = a.toEl, l = a.fromEl, n = a.oldIndex, d = a.newIndex, c = a.oldDraggableIndex, u = a.newDraggableIndex, f = a.originalEvent, g = a.putSortable, v = a.extraEventProperties;
9618
+ var t = a.sortable, e = a.rootEl, s = a.name, i = a.targetEl, r = a.cloneEl, o = a.toEl, l = a.fromEl, n = a.oldIndex, d = a.newIndex, c = a.oldDraggableIndex, u = a.newDraggableIndex, f = a.originalEvent, q = a.putSortable, v = a.extraEventProperties;
9618
9619
  if (t = t || e && e[Ot], !!t) {
9619
- var q, h = t.options, x = "on" + s.charAt(0).toUpperCase() + s.substr(1);
9620
- window.CustomEvent && !Ja && !ar ? q = new CustomEvent(s, {
9620
+ var g, h = t.options, x = "on" + s.charAt(0).toUpperCase() + s.substr(1);
9621
+ window.CustomEvent && !Ja && !ar ? g = new CustomEvent(s, {
9621
9622
  bubbles: !0,
9622
9623
  cancelable: !0
9623
- }) : (q = document.createEvent("Event"), q.initEvent(s, !0, !0)), q.to = o || e, q.from = l || e, q.item = i || e, q.clone = r, q.oldIndex = n, q.newIndex = d, q.oldDraggableIndex = c, q.newDraggableIndex = u, q.originalEvent = f, q.pullMode = g ? g.lastPutMode : void 0;
9624
+ }) : (g = document.createEvent("Event"), g.initEvent(s, !0, !0)), g.to = o || e, g.from = l || e, g.item = i || e, g.clone = r, g.oldIndex = n, g.newIndex = d, g.oldDraggableIndex = c, g.newDraggableIndex = u, g.originalEvent = f, g.pullMode = q ? q.lastPutMode : void 0;
9624
9625
  var F = ka(ka({}, v), sr.getEventProperties(s, t));
9625
9626
  for (var y in F)
9626
- q[y] = F[y];
9627
- e && e.dispatchEvent(q), h[x] && h[x].call(t, q);
9627
+ g[y] = F[y];
9628
+ e && e.dispatchEvent(g), h[x] && h[x].call(t, g);
9628
9629
  }
9629
9630
  }
9630
9631
  var dF = ["evt"], $t = function(t, e) {
@@ -9994,13 +9995,13 @@ xe.prototype = /** @lends Sortable.prototype */
9994
9995
  },
9995
9996
  // Returns true - if no further action is needed (either inserted or another condition)
9996
9997
  _onDragOver: function(t) {
9997
- var e = this.el, s = t.target, i, r, o, l = this.options, n = l.group, d = xe.active, c = gr === n, u = l.sort, f = bt || d, g, v = this, q = !1;
9998
+ var e = this.el, s = t.target, i, r, o, l = this.options, n = l.group, d = xe.active, c = gr === n, u = l.sort, f = bt || d, q, v = this, g = !1;
9998
9999
  if (xn) return;
9999
10000
  function h($, H) {
10000
10001
  $t($, v, ka({
10001
10002
  evt: t,
10002
10003
  isOwner: c,
10003
- axis: g ? "vertical" : "horizontal",
10004
+ axis: q ? "vertical" : "horizontal",
10004
10005
  revert: o,
10005
10006
  dragRect: i,
10006
10007
  targetRect: r,
@@ -10022,7 +10023,7 @@ xe.prototype = /** @lends Sortable.prototype */
10022
10023
  insertion: $
10023
10024
  }), $ && (c ? d._hideClone() : d._showClone(v), v !== f && (Wt(ne, bt ? bt.options.ghostClass : d.options.ghostClass, !1), Wt(ne, l.ghostClass, !0)), bt !== v && v !== xe.active ? bt = v : v === xe.active && bt && (bt = null), f === v && (v._ignoreWhileAnimating = s), v.animateAll(function() {
10024
10025
  h("dragOverAnimationComplete"), v._ignoreWhileAnimating = null;
10025
- }), v !== f && (f.animateAll(), f._ignoreWhileAnimating = null)), (s === ne && !ne.animated || s === e && !s.animated) && (Ns = null), !l.dragoverBubble && !t.rootEl && s !== document && (ne.parentNode[Ot]._isOutsideThisEl(t.target), !$ && bs(t)), !l.dragoverBubble && t.stopPropagation && t.stopPropagation(), q = !0;
10026
+ }), v !== f && (f.animateAll(), f._ignoreWhileAnimating = null)), (s === ne && !ne.animated || s === e && !s.animated) && (Ns = null), !l.dragoverBubble && !t.rootEl && s !== document && (ne.parentNode[Ot]._isOutsideThisEl(t.target), !$ && bs(t)), !l.dragoverBubble && t.stopPropagation && t.stopPropagation(), g = !0;
10026
10027
  }
10027
10028
  function y() {
10028
10029
  Gt = na(ne), ss = na(ne, l.draggable), St({
@@ -10034,20 +10035,20 @@ xe.prototype = /** @lends Sortable.prototype */
10034
10035
  originalEvent: t
10035
10036
  });
10036
10037
  }
10037
- if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), s = qa(s, l.draggable, e, !0), h("dragOver"), xe.eventCanceled) return q;
10038
+ if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), s = qa(s, l.draggable, e, !0), h("dragOver"), xe.eventCanceled) return g;
10038
10039
  if (ne.contains(t.target) || s.animated && s.animatingX && s.animatingY || v._ignoreWhileAnimating === s)
10039
10040
  return F(!1);
10040
10041
  if (Zr = !1, d && !l.disabled && (c ? u || (o = rt !== Je) : bt === this || (this.lastPutMode = gr.checkPull(this, d, ne, t)) && n.checkPut(this, d, ne, t))) {
10041
- if (g = this._getDirection(t, s) === "vertical", i = mt(ne), h("dragOverValid"), xe.eventCanceled) return q;
10042
+ if (q = this._getDirection(t, s) === "vertical", i = mt(ne), h("dragOverValid"), xe.eventCanceled) return g;
10042
10043
  if (o)
10043
10044
  return rt = Je, x(), this._hideClone(), h("revert"), xe.eventCanceled || (_s ? Je.insertBefore(ne, _s) : Je.appendChild(ne)), F(!0);
10044
10045
  var X = il(e, l.draggable);
10045
- if (!X || hF(t, g, this) && !X.animated) {
10046
+ if (!X || hF(t, q, this) && !X.animated) {
10046
10047
  if (X === ne)
10047
10048
  return F(!1);
10048
10049
  if (X && e === t.target && (s = X), s && (r = mt(s)), Xr(Je, e, ne, i, s, r, t, !!s) !== !1)
10049
10050
  return x(), X && X.nextSibling ? e.insertBefore(ne, X.nextSibling) : e.appendChild(ne), rt = e, y(), F(!0);
10050
- } else if (X && vF(t, g, this)) {
10051
+ } else if (X && vF(t, q, this)) {
10051
10052
  var A = ui(e, 0, l, !0);
10052
10053
  if (A === ne)
10053
10054
  return F(!1);
@@ -10055,8 +10056,8 @@ xe.prototype = /** @lends Sortable.prototype */
10055
10056
  return x(), e.insertBefore(ne, A), rt = e, y(), F(!0);
10056
10057
  } else if (s.parentNode === e) {
10057
10058
  r = mt(s);
10058
- var b = 0, B, N = ne.parentNode !== e, z = !cF(ne.animated && ne.toRect || i, s.animated && s.toRect || r, g), M = g ? "top" : "left", O = ed(s, "top", "top") || ed(ne, "top", "top"), K = O ? O.scrollTop : void 0;
10059
- Ns !== s && (B = r[M], Ri = !1, qr = !z && l.invertSwap || N), b = FF(t, s, r, g, z ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, qr, Ns === s);
10059
+ var b = 0, B, N = ne.parentNode !== e, z = !cF(ne.animated && ne.toRect || i, s.animated && s.toRect || r, q), M = q ? "top" : "left", O = ed(s, "top", "top") || ed(ne, "top", "top"), K = O ? O.scrollTop : void 0;
10060
+ Ns !== s && (B = r[M], Ri = !1, qr = !z && l.invertSwap || N), b = FF(t, s, r, q, z ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, qr, Ns === s);
10060
10061
  var E;
10061
10062
  if (b !== 0) {
10062
10063
  var I = na(ne);
@@ -10402,13 +10403,13 @@ var an = oc(function(a, t, e, s) {
10402
10403
  kn !== e && (kn = e, Br(), Si = t.scroll, c = t.scrollFn, Si === !0 && (Si = us(e, !0)));
10403
10404
  var u = 0, f = Si;
10404
10405
  do {
10405
- var g = f, v = mt(g), q = v.top, h = v.bottom, x = v.left, F = v.right, y = v.width, X = v.height, A = void 0, b = void 0, B = g.scrollWidth, N = g.scrollHeight, z = Ce(g), M = g.scrollLeft, O = g.scrollTop;
10406
- g === n ? (A = y < B && (z.overflowX === "auto" || z.overflowX === "scroll" || z.overflowX === "visible"), b = X < N && (z.overflowY === "auto" || z.overflowY === "scroll" || z.overflowY === "visible")) : (A = y < B && (z.overflowX === "auto" || z.overflowX === "scroll"), b = X < N && (z.overflowY === "auto" || z.overflowY === "scroll"));
10407
- var K = A && (Math.abs(F - i) <= o && M + y < B) - (Math.abs(x - i) <= o && !!M), E = b && (Math.abs(h - r) <= o && O + X < N) - (Math.abs(q - r) <= o && !!O);
10406
+ var q = f, v = mt(q), g = v.top, h = v.bottom, x = v.left, F = v.right, y = v.width, X = v.height, A = void 0, b = void 0, B = q.scrollWidth, N = q.scrollHeight, z = Ce(q), M = q.scrollLeft, O = q.scrollTop;
10407
+ q === n ? (A = y < B && (z.overflowX === "auto" || z.overflowX === "scroll" || z.overflowX === "visible"), b = X < N && (z.overflowY === "auto" || z.overflowY === "scroll" || z.overflowY === "visible")) : (A = y < B && (z.overflowX === "auto" || z.overflowX === "scroll"), b = X < N && (z.overflowY === "auto" || z.overflowY === "scroll"));
10408
+ var K = A && (Math.abs(F - i) <= o && M + y < B) - (Math.abs(x - i) <= o && !!M), E = b && (Math.abs(h - r) <= o && O + X < N) - (Math.abs(g - r) <= o && !!O);
10408
10409
  if (!ct[u])
10409
10410
  for (var I = 0; I <= u; I++)
10410
10411
  ct[I] || (ct[I] = {});
10411
- (ct[u].vx != K || ct[u].vy != E || ct[u].el !== g) && (ct[u].el = g, ct[u].vx = K, ct[u].vy = E, clearInterval(ct[u].pid), (K != 0 || E != 0) && (d = !0, ct[u].pid = setInterval((function() {
10412
+ (ct[u].vx != K || ct[u].vy != E || ct[u].el !== q) && (ct[u].el = q, ct[u].vx = K, ct[u].vy = E, clearInterval(ct[u].pid), (K != 0 || E != 0) && (d = !0, ct[u].pid = setInterval((function() {
10412
10413
  s && this.layer === 0 && xe.active._onTouchMove(eo);
10413
10414
  var w = ct[this.layer].vy ? ct[this.layer].vy * l : 0, C = ct[this.layer].vx ? ct[this.layer].vx * l : 0;
10414
10415
  typeof c == "function" && c.call(xe.dragged.parentNode[Ot], C, w, a, eo, ct[this.layer].el) !== "continue" || nc(ct[this.layer].el, C, w);
@@ -10551,13 +10552,13 @@ function IF(a, t, e, s) {
10551
10552
  raw: E
10552
10553
  };
10553
10554
  }
10554
- const f = _(() => a.value.map((E, I) => u(E, I))), g = (E = void 0) => {
10555
+ const f = _(() => a.value.map((E, I) => u(E, I))), q = (E = void 0) => {
10555
10556
  d.value++, L(E) || s("update:modelValue", E), Jt(() => {
10556
10557
  t();
10557
10558
  });
10558
10559
  }, v = (E) => {
10559
10560
  c.value.add(E);
10560
- }, q = (E) => {
10561
+ }, g = (E) => {
10561
10562
  c.value.delete(E);
10562
10563
  }, h = (E, I, w, C = []) => {
10563
10564
  const D = I > w ? w : I;
@@ -10573,7 +10574,7 @@ function IF(a, t, e, s) {
10573
10574
  if (I >= 0 && I < w.length) {
10574
10575
  let C = [];
10575
10576
  const D = w.splice(E, 1)[0];
10576
- return w.splice(I, 0, D), L(e.updatePosition) || (C = h(w, E, I)), g(), s("update:modelValue", w), C;
10577
+ return w.splice(I, 0, D), L(e.updatePosition) || (C = h(w, E, I)), q(), s("update:modelValue", w), C;
10577
10578
  }
10578
10579
  return [];
10579
10580
  }, F = (E, I) => {
@@ -10583,30 +10584,30 @@ function IF(a, t, e, s) {
10583
10584
  E.data = ye(I), te(w) || (E.data.position = w), te(C) || v(I.id);
10584
10585
  }, X = (E, I, w = null, C = null) => {
10585
10586
  const D = ye(a.value), $ = F(E, D);
10586
- !te($) && D[$] && (y(D[$], I, w, C), g(D));
10587
+ !te($) && D[$] && (y(D[$], I, w, C), q(D));
10587
10588
  }, A = (E, I, w, C = null) => {
10588
10589
  const D = ye(a.value);
10589
- D[E] && (y(D[E], I, w, C), g(D));
10590
+ D[E] && (y(D[E], I, w, C), q(D));
10590
10591
  }, b = (E, I) => {
10591
10592
  const w = ye(a.value);
10592
10593
  if (te(E))
10593
- return w.push(ye(I)), g(w), [];
10594
+ return w.push(ye(I)), q(w), [];
10594
10595
  const C = [];
10595
- return w[E] ? (w.splice(E + 1, 0, I), h(w, E + 1, E + 1, C), g(w), C) : [];
10596
+ return w[E] ? (w.splice(E + 1, 0, I), h(w, E + 1, E + 1, C), q(w), C) : [];
10596
10597
  }, B = (E, I) => {
10597
10598
  const w = ye(a.value);
10598
10599
  if (te(E))
10599
- return w.push(ye(I)), g(w), [];
10600
+ return w.push(ye(I)), q(w), [];
10600
10601
  const C = F(E, w), D = [];
10601
- return !te(C) && w[C] ? (w.splice(C + 1, 0, I), h(w, C + 1, C + 1, D), g(w), D) : [];
10602
+ return !te(C) && w[C] ? (w.splice(C + 1, 0, I), h(w, C + 1, C + 1, D), q(w), D) : [];
10602
10603
  }, N = (E) => {
10603
10604
  const I = ye(a.value), w = F(E, I), C = [];
10604
- return !te(w) && I[w] ? (I.splice(w, 1), h(I, w, w, C), q(E), g(I), C) : [];
10605
+ return !te(w) && I[w] ? (I.splice(w, 1), h(I, w, w, C), g(E), q(I), C) : [];
10605
10606
  }, z = (E) => {
10606
10607
  const I = ye(a.value), w = [];
10607
10608
  if (I[E]) {
10608
10609
  const C = I[E][e.keyField];
10609
- return I.splice(E, 1), h(I, E, E, w), q(C), g(I), w;
10610
+ return I.splice(E, 1), h(I, E, E, w), g(C), q(I), w;
10610
10611
  }
10611
10612
  return [];
10612
10613
  }, M = () => {
@@ -10677,7 +10678,7 @@ const ll = "a-sortable-", _F = ["id"], SF = { key: 1 }, DF = { class: "a-sortabl
10677
10678
  return;
10678
10679
  }
10679
10680
  i("onAddLast", null);
10680
- }, u = _(() => L(s.widgetIdentifierId) ? ll + z.value : s.widgetIdentifierId), f = _(() => s.rootClassName + " " + (s.chips ? s.rootClassName + "--chips" : "")), g = () => {
10681
+ }, u = _(() => L(s.widgetIdentifierId) ? ll + z.value : s.widgetIdentifierId), f = _(() => s.rootClassName + " " + (s.chips ? s.rootClassName + "--chips" : "")), q = () => {
10681
10682
  if (s.disableDraggable || !N.value) return;
10682
10683
  const C = N.value.querySelector("." + to);
10683
10684
  C && (B.value = nl(C, [], {
@@ -10696,7 +10697,7 @@ const ll = "a-sortable-", _F = ["id"], SF = { key: 1 }, DF = { class: "a-sortabl
10696
10697
  }));
10697
10698
  }, {
10698
10699
  items: v,
10699
- forceRerender: q,
10700
+ forceRerender: g,
10700
10701
  dirtyLocal: h,
10701
10702
  moveArrayElement: x,
10702
10703
  itemToRemove: F,
@@ -10713,15 +10714,15 @@ const ll = "a-sortable-", _F = ["id"], SF = { key: 1 }, DF = { class: "a-sortabl
10713
10714
  addAfterIndex: E,
10714
10715
  removeByIndex: I,
10715
10716
  updateDataAtIndex: w
10716
- } = IF(r, g, s, i);
10717
+ } = IF(r, q, s, i);
10717
10718
  return ro(() => {
10718
10719
  X();
10719
10720
  }), Jt(() => {
10720
- N.value = document.querySelector("#" + u.value), g();
10721
+ N.value = document.querySelector("#" + u.value), q();
10721
10722
  }), qe(
10722
10723
  () => s.disableDraggable,
10723
10724
  async (C) => {
10724
- X(), C === !1 && g();
10725
+ X(), C === !1 && q();
10725
10726
  }
10726
10727
  ), qe(
10727
10728
  () => s.dirty,
@@ -10744,7 +10745,7 @@ const ll = "a-sortable-", _F = ["id"], SF = { key: 1 }, DF = { class: "a-sortabl
10744
10745
  class: Fe(f.value)
10745
10746
  }, [
10746
10747
  (Y(), R("div", {
10747
- key: V(q),
10748
+ key: V(g),
10748
10749
  class: Fe(V(to))
10749
10750
  }, [
10750
10751
  (Y(!0), R(ge, null, je(V(v), (G) => (Y(), R(ge, {
@@ -10957,19 +10958,19 @@ function RF(a, t, e) {
10957
10958
  });
10958
10959
  }, f = () => {
10959
10960
  v(), t();
10960
- }, g = () => {
10961
+ }, q = () => {
10961
10962
  te(l.value) || (e("onDelete", l.value), o.value = !1);
10962
10963
  }, v = () => {
10963
10964
  d.value && (i.value.forEach((O) => {
10964
10965
  O.stop();
10965
10966
  }), i.value = []);
10966
- }, q = (O, K) => {
10967
+ }, g = (O, K) => {
10967
10968
  O.meta.dirty = !0, K.meta.dirty = !0;
10968
10969
  }, h = (O, K, E, I, w = []) => {
10969
10970
  const C = K > E ? E : K;
10970
10971
  let D = C + 1;
10971
10972
  for (let $ = C; $ < O.length; $++)
10972
- O[$].data.position !== D && (O[$].data.position = D, q(O[$], I), w.push({
10973
+ O[$].data.position !== D && (O[$].data.position = D, g(O[$], I), w.push({
10973
10974
  id: O[$].data.id,
10974
10975
  position: O[$].data.position
10975
10976
  })), D++;
@@ -10977,7 +10978,7 @@ function RF(a, t, e) {
10977
10978
  if (O.length > 0) {
10978
10979
  let D = E + 1;
10979
10980
  for (let $ = E; $ < O.length; $++)
10980
- O[$].data.position !== D && (O[$].data.position = D, q(O[$], w), C.push({
10981
+ O[$].data.position !== D && (O[$].data.position = D, g(O[$], w), C.push({
10981
10982
  id: O[$].data.id,
10982
10983
  position: O[$].data.position
10983
10984
  })), D++;
@@ -10985,7 +10986,7 @@ function RF(a, t, e) {
10985
10986
  if (K.length > 0) {
10986
10987
  let D = I + 1;
10987
10988
  for (let $ = I; $ < K.length; $++)
10988
- K[$].data.position !== D && (K[$].data.position = D, q(K[$], w), C.push({
10989
+ K[$].data.position !== D && (K[$].data.position = D, g(K[$], w), C.push({
10989
10990
  id: K[$].data.id,
10990
10991
  position: K[$].data.position
10991
10992
  })), D++;
@@ -11034,7 +11035,7 @@ function RF(a, t, e) {
11034
11035
  sortableInstances: i,
11035
11036
  forceRerender: r,
11036
11037
  refresh: f,
11037
- onRemoveDialogConfirm: g,
11038
+ onRemoveDialogConfirm: q,
11038
11039
  destroy: v,
11039
11040
  moveArrayElement: (O, K, E, I, w) => {
11040
11041
  const C = ye(a.value), { itemFound: D, parentItem: $ } = A(O, C.children);
@@ -11205,7 +11206,7 @@ const OF = ["data-id"], zF = { class: "a-sortable-nested-widget__nested" }, LF =
11205
11206
  Li(ld, n + 1);
11206
11207
  const d = _(() => e.showAddChildButton && !L(e.item.children) && e.item.children.length === 0 && n < e.maxDepth), { t: c } = ee();
11207
11208
  return (u, f) => {
11208
- const g = $e("ASortableNestedItem", !0);
11209
+ const q = $e("ASortableNestedItem", !0);
11209
11210
  return Y(), R("div", {
11210
11211
  class: Fe(["a-sortable-nested-widget__container", "a-sortable-nested-widget__container--level-" + V(n)]),
11211
11212
  "data-id": u.item.data.id
@@ -11312,7 +11313,7 @@ const OF = ["data-id"], zF = { class: "a-sortable-nested-widget__nested" }, LF =
11312
11313
  class: Fe(["a-sortable-nested-widget__group", { "a-sortable-nested-widget__group--empty": u.item.children.length === 0 }]),
11313
11314
  "data-id": u.item.data.id
11314
11315
  }, [
11315
- (Y(!0), R(ge, null, je(u.item.children, (v) => (Y(), T(g, {
11316
+ (Y(!0), R(ge, null, je(u.item.children, (v) => (Y(), T(q, {
11316
11317
  key: v.data.id,
11317
11318
  item: v,
11318
11319
  "disable-draggable": u.disableDraggable,
@@ -11326,14 +11327,14 @@ const OF = ["data-id"], zF = { class: "a-sortable-nested-widget__nested" }, LF =
11326
11327
  onOnDelete: i,
11327
11328
  onOnEdit: r
11328
11329
  }, {
11329
- item: p(({ item: q }) => [
11330
+ item: p(({ item: g }) => [
11330
11331
  de(u.$slots, "item", {
11331
- item: q
11332
+ item: g
11332
11333
  })
11333
11334
  ]),
11334
- buttons: p(({ item: q }) => [
11335
+ buttons: p(({ item: g }) => [
11335
11336
  de(u.$slots, "buttons", {
11336
- item: q
11337
+ item: g
11337
11338
  })
11338
11339
  ]),
11339
11340
  _: 2
@@ -11374,7 +11375,7 @@ const OF = ["data-id"], zF = { class: "a-sortable-nested-widget__nested" }, LF =
11374
11375
  return;
11375
11376
  }
11376
11377
  i("onAddLast", null);
11377
- }, { t: u } = ee(), f = _(() => L(s.widgetIdentifierId) ? ll + x.value : s.widgetIdentifierId), g = _(() => s.rootClassName + " " + (q.value ? s.rootClassName + "--dragging" : "")), v = () => {
11378
+ }, { t: u } = ee(), f = _(() => L(s.widgetIdentifierId) ? ll + x.value : s.widgetIdentifierId), q = _(() => s.rootClassName + " " + (g.value ? s.rootClassName + "--dragging" : "")), v = () => {
11378
11379
  if (s.disableDraggable || !h.value) return;
11379
11380
  const I = Array.from(h.value.querySelectorAll("." + nd));
11380
11381
  E.value = [];
@@ -11396,10 +11397,10 @@ const OF = ["data-id"], zF = { class: "a-sortable-nested-widget__nested" }, LF =
11396
11397
  onUpdate: () => {
11397
11398
  },
11398
11399
  onStart: () => {
11399
- q.value = !0;
11400
+ g.value = !0;
11400
11401
  },
11401
11402
  onEnd: (C) => {
11402
- q.value = !1, Jt(() => {
11403
+ g.value = !1, Jt(() => {
11403
11404
  const D = di(C.item.getAttribute("data-id") ?? "0");
11404
11405
  if (D < 1) return;
11405
11406
  const $ = C.newIndex;
@@ -11415,7 +11416,7 @@ const OF = ["data-id"], zF = { class: "a-sortable-nested-widget__nested" }, LF =
11415
11416
  }
11416
11417
  });
11417
11418
  }, {
11418
- dragging: q,
11419
+ dragging: g,
11419
11420
  widgetEl: h,
11420
11421
  randomUuid: x,
11421
11422
  removeDialog: F,
@@ -11451,7 +11452,7 @@ const OF = ["data-id"], zF = { class: "a-sortable-nested-widget__nested" }, LF =
11451
11452
  return Y(), R("div", null, [
11452
11453
  U("div", {
11453
11454
  id: f.value,
11454
- class: Fe(g.value)
11455
+ class: Fe(q.value)
11455
11456
  }, [
11456
11457
  (Y(), R("div", {
11457
11458
  key: V(X),
@@ -11570,17 +11571,17 @@ const OF = ["data-id"], zF = { class: "a-sortable-nested-widget__nested" }, LF =
11570
11571
  set: (b) => {
11571
11572
  i("update:pagination", { ...ht(b) });
11572
11573
  }
11573
- }), n = S(!0), d = S(!1), { t: c } = ee(), u = _(() => s.selectedItems.length), f = _(() => u.value < s.minCount || u.value > s.maxCount), g = () => {
11574
+ }), n = S(!0), d = S(!1), { t: c } = ee(), u = _(() => s.selectedItems.length), f = _(() => u.value < s.minCount || u.value > s.maxCount), q = () => {
11574
11575
  i("onOpen"), n.value = !0, o.value = !0;
11575
11576
  }, v = () => {
11576
11577
  n.value = !n.value;
11577
- }, q = () => {
11578
+ }, g = () => {
11578
11579
  o.value = !1;
11579
11580
  }, h = () => {
11580
11581
  i(
11581
11582
  "onConfirm",
11582
11583
  s.selectedItems.map((b) => ht(b))
11583
- ), q();
11584
+ ), g();
11584
11585
  }, x = () => {
11585
11586
  i("onFetchNextPage");
11586
11587
  }, F = () => {
@@ -11589,12 +11590,12 @@ const OF = ["data-id"], zF = { class: "a-sortable-nested-widget__nested" }, LF =
11589
11590
  b && X.value && !s.loading && x();
11590
11591
  };
11591
11592
  return t({
11592
- open: g
11593
+ open: q
11593
11594
  }), (b, B) => {
11594
11595
  const N = $e("ABtnSecondary"), z = $e("ABtnPrimary");
11595
11596
  return Y(), R(ge, null, [
11596
11597
  de(b.$slots, "activator", {
11597
- props: { onClick: J(() => g(), ["stop"]) }
11598
+ props: { onClick: J(() => q(), ["stop"]) }
11598
11599
  }),
11599
11600
  m(Vt, Et(b.$attrs, {
11600
11601
  "model-value": o.value,
@@ -11610,7 +11611,7 @@ const OF = ["data-id"], zF = { class: "a-sortable-nested-widget__nested" }, LF =
11610
11611
  default: p(() => [
11611
11612
  m(It, {
11612
11613
  class: "subject-select__toolbar system-border-b",
11613
- onOnCancel: q
11614
+ onOnCancel: g
11614
11615
  }, {
11615
11616
  default: p(() => [
11616
11617
  de(b.$slots, "title", {}, () => [
@@ -11880,7 +11881,7 @@ const ug = /* @__PURE__ */ W({
11880
11881
  }, o = _(() => {
11881
11882
  const F = $d(e.modelValue) ? ht(e.modelValue) : e.modelValue;
11882
11883
  return (e.config.attributes.type === gt.StringArray || e.config.attributes.type === gt.StringArrayLegacy) && li(F) ? [] : F;
11883
- }), { maxLength: l, minLength: n, requiredIf: d, minValue: c, maxValue: u, stringArrayItemLength: f } = Ys(), g = _(() => {
11884
+ }), { maxLength: l, minLength: n, requiredIf: d, minValue: c, maxValue: u, stringArrayItemLength: f } = Ys(), q = _(() => {
11884
11885
  const F = {
11885
11886
  modelValueComputed: {
11886
11887
  required: d(e.config.attributes.required)
@@ -11913,7 +11914,7 @@ const ug = /* @__PURE__ */ W({
11913
11914
  break;
11914
11915
  }
11915
11916
  return F;
11916
- }), v = Tm(g, { modelValueComputed: o }, { $scope: e.validationScope }), q = _(() => v.value.$errors.length ? [v.value.$errors.map((F) => F.$message).join(" ")] : []), h = S(void 0);
11917
+ }), v = Tm(q, { modelValueComputed: o }, { $scope: e.validationScope }), g = _(() => v.value.$errors.length ? [v.value.$errors.map((F) => F.$message).join(" ")] : []), h = S(void 0);
11917
11918
  h.value = e.config.attributes.maxValue ?? void 0;
11918
11919
  const x = () => {
11919
11920
  s("blur", e.modelValue), v.value.$touch();
@@ -11925,7 +11926,7 @@ const ug = /* @__PURE__ */ W({
11925
11926
  "auto-grow": "",
11926
11927
  rows: 1,
11927
11928
  label: F.config.name,
11928
- "error-messages": q.value,
11929
+ "error-messages": g.value,
11929
11930
  counter: h.value,
11930
11931
  readonly: F.config.attributes.readonly,
11931
11932
  "data-cy": "custom-field-" + F.config.property,
@@ -11942,7 +11943,7 @@ const ug = /* @__PURE__ */ W({
11942
11943
  "model-value": o.value,
11943
11944
  type: "number",
11944
11945
  label: F.config.name,
11945
- "error-messages": q.value,
11946
+ "error-messages": g.value,
11946
11947
  readonly: F.config.attributes.readonly,
11947
11948
  "data-cy": "custom-field-" + F.config.property,
11948
11949
  "onUpdate:modelValue": r,
@@ -11960,7 +11961,7 @@ const ug = /* @__PURE__ */ W({
11960
11961
  multiple: "",
11961
11962
  chips: "",
11962
11963
  readonly: F.config.attributes.readonly,
11963
- "error-messages": q.value,
11964
+ "error-messages": g.value,
11964
11965
  "data-cy": "custom-field-" + F.config.property,
11965
11966
  "onUpdate:modelValue": r,
11966
11967
  onBlur: x
@@ -12003,7 +12004,7 @@ const ug = /* @__PURE__ */ W({
12003
12004
  const s = a, i = e, { t: r } = ee(), { showAll: o, toggleForm: l } = dg(), n = (h) => {
12004
12005
  const x = {};
12005
12006
  x[h.property] = h.value, i("update:modelValue", { ...s.modelValue, ...x }), i("anyChange");
12006
- }, d = _(() => s.elements.slice(0, s.pinnedCount)), c = _(() => s.elements.slice(s.pinnedCount)), u = _(() => o.value ? r("common.damImage.asset.detail.metadataToggle.show") : r("common.damImage.asset.detail.metadataToggle.hide")), f = _(() => o.value ? "mdi-minus" : "mdi-plus"), g = _(() => s.elements.length > s.pinnedCount), v = ma({ $scope: s.validationScope });
12007
+ }, d = _(() => s.elements.slice(0, s.pinnedCount)), c = _(() => s.elements.slice(s.pinnedCount)), u = _(() => o.value ? r("common.damImage.asset.detail.metadataToggle.show") : r("common.damImage.asset.detail.metadataToggle.hide")), f = _(() => o.value ? "mdi-minus" : "mdi-plus"), q = _(() => s.elements.length > s.pinnedCount), v = ma({ $scope: s.validationScope });
12007
12008
  return t({
12008
12009
  validate: () => v.value.$validate()
12009
12010
  }), (h, x) => (Y(), R(ge, null, [
@@ -12072,7 +12073,7 @@ const ug = /* @__PURE__ */ W({
12072
12073
  ], 512), [
12073
12074
  [ps, V(o)]
12074
12075
  ]),
12075
- g.value ? (Y(), T(ie, {
12076
+ q.value ? (Y(), T(ie, {
12076
12077
  key: 0,
12077
12078
  variant: "text",
12078
12079
  size: "small",
@@ -12302,7 +12303,7 @@ function Ac(a, t, e, s = "id", i = 1e3) {
12302
12303
  }
12303
12304
  return [];
12304
12305
  }
12305
- const g = Sm(
12306
+ const q = Sm(
12306
12307
  async () => await f(),
12307
12308
  1500,
12308
12309
  { maxWait: 5e3 }
@@ -12310,7 +12311,7 @@ function Ac(a, t, e, s = "id", i = 1e3) {
12310
12311
  return {
12311
12312
  cache: r,
12312
12313
  toFetch: o,
12313
- fetch: () => g(),
12314
+ fetch: () => q(),
12314
12315
  immediateFetch: () => f(),
12315
12316
  add: l,
12316
12317
  addManual: n,
@@ -12716,12 +12717,12 @@ var _c = { exports: {} };
12716
12717
  }
12717
12718
  for (var A = (x >> 2) + 1; A < h.length; A++)
12718
12719
  h[A] = 0;
12719
- }, g = function(h, x, F) {
12720
+ }, q = function(h, x, F) {
12720
12721
  h[x >> 2] |= 128 << 24 - (x % 4 << 3), h[((x >> 2) + 2 & -16) + 14] = F / (1 << 29) | 0, h[((x >> 2) + 2 & -16) + 15] = F << 3;
12721
12722
  }, v = function(h, x) {
12722
12723
  var F = new Int32Array(h, x + 320, 5), y = new Int32Array(5), X = new DataView(y.buffer);
12723
12724
  return X.setInt32(0, F[0], !1), X.setInt32(4, F[1], !1), X.setInt32(8, F[2], !1), X.setInt32(12, F[3], !1), X.setInt32(16, F[4], !1), y;
12724
- }, q = function() {
12725
+ }, g = function() {
12725
12726
  function h(x) {
12726
12727
  if (r(this, h), x = x || 64 * 1024, x % 64 > 0)
12727
12728
  throw new Error("Chunk size must be a multiple of 128 bit");
@@ -12733,7 +12734,7 @@ var _c = { exports: {} };
12733
12734
  X[0] = 1732584193, X[1] = -271733879, X[2] = -1732584194, X[3] = 271733878, X[4] = -1009589776;
12734
12735
  }, h.prototype._padChunk = function(F, y) {
12735
12736
  var X = u(F), A = new Int32Array(this._heap, 0, X >> 2);
12736
- return f(A, F), g(A, F, y), X;
12737
+ return f(A, F), q(A, F, y), X;
12737
12738
  }, h.prototype._write = function(F, y, X, A) {
12738
12739
  c(F, this._h8, this._h32, y, X, A || 0);
12739
12740
  }, h.prototype._coreCall = function(F, y, X, A, b) {
@@ -12789,7 +12790,7 @@ var _c = { exports: {} };
12789
12790
  return n(this.rawEnd().buffer);
12790
12791
  }, h;
12791
12792
  }();
12792
- e.exports = q, e.exports._core = o;
12793
+ e.exports = g, e.exports._core = o;
12793
12794
  },
12794
12795
  /* 1 */
12795
12796
  /***/
@@ -12825,32 +12826,32 @@ var _c = { exports: {} };
12825
12826
  } catch (f) {
12826
12827
  return u(f);
12827
12828
  }
12828
- }, l = function(d, c, u, f, g) {
12829
+ }, l = function(d, c, u, f, q) {
12829
12830
  var v = new self.FileReader();
12830
12831
  v.onloadend = function() {
12831
12832
  if (v.error)
12832
- return g(v.error);
12833
+ return q(v.error);
12833
12834
  var h = v.result;
12834
12835
  c += v.result.byteLength;
12835
12836
  try {
12836
12837
  d.append(h);
12837
12838
  } catch (x) {
12838
- g(x);
12839
+ q(x);
12839
12840
  return;
12840
12841
  }
12841
- c < f.size ? l(d, c, u, f, g) : g(null, d.end());
12842
+ c < f.size ? l(d, c, u, f, q) : q(null, d.end());
12842
12843
  }, v.readAsArrayBuffer(f.slice(c, c + u));
12843
12844
  }, n = !0;
12844
12845
  return self.onmessage = function(d) {
12845
12846
  if (n) {
12846
12847
  var c = d.data.data, u = d.data.file, f = d.data.id;
12847
12848
  if (!(typeof f > "u") && !(!u && !c)) {
12848
- var g = d.data.blockSize || 4 * 1024 * 1024, v = new r(g);
12849
+ var q = d.data.blockSize || 4 * 1024 * 1024, v = new r(q);
12849
12850
  v.resetState();
12850
- var q = function(h, x) {
12851
+ var g = function(h, x) {
12851
12852
  h ? self.postMessage({ id: f, error: h.name }) : self.postMessage({ id: f, hash: x });
12852
12853
  };
12853
- c && o(v, c, q), u && l(v, 0, g, u, q);
12854
+ c && o(v, c, g), u && l(v, 0, q, u, g);
12854
12855
  }
12855
12856
  }
12856
12857
  }, function() {
@@ -12867,9 +12868,9 @@ var _c = { exports: {} };
12867
12868
  var f = r(
12868
12869
  /*require.resolve*/
12869
12870
  2
12870
- ), g = f.terminate;
12871
+ ), q = f.terminate;
12871
12872
  return f.terminate = function() {
12872
- URL.revokeObjectURL(f.objectURL), g.call(f);
12873
+ URL.revokeObjectURL(f.objectURL), q.call(f);
12873
12874
  }, f;
12874
12875
  }, o.createHash = l, e.exports = o;
12875
12876
  },
@@ -12877,11 +12878,11 @@ var _c = { exports: {} };
12877
12878
  /***/
12878
12879
  function(e, s, i) {
12879
12880
  function r(f) {
12880
- var g = {};
12881
+ var q = {};
12881
12882
  function v(h) {
12882
- if (g[h])
12883
- return g[h].exports;
12884
- var x = g[h] = {
12883
+ if (q[h])
12884
+ return q[h].exports;
12885
+ var x = q[h] = {
12885
12886
  /******/
12886
12887
  i: h,
12887
12888
  /******/
@@ -12892,7 +12893,7 @@ var _c = { exports: {} };
12892
12893
  };
12893
12894
  return f[h].call(x.exports, x, x.exports, v), x.l = !0, x.exports;
12894
12895
  }
12895
- v.m = f, v.c = g, v.i = function(h) {
12896
+ v.m = f, v.c = q, v.i = function(h) {
12896
12897
  return h;
12897
12898
  }, v.d = function(h, x, F) {
12898
12899
  v.o(h, x) || Object.defineProperty(h, x, {
@@ -12924,34 +12925,34 @@ var _c = { exports: {} };
12924
12925
  }, v.p = "/", v.oe = function(h) {
12925
12926
  throw console.error(h), h;
12926
12927
  };
12927
- var q = v(v.s = ENTRY_MODULE);
12928
- return q.default || q;
12928
+ var g = v(v.s = ENTRY_MODULE);
12929
+ return g.default || g;
12929
12930
  }
12930
12931
  var o = "[\\.|\\-|\\+|\\w|/|@]+", l = "\\((/\\*.*?\\*/)?s?.*?(" + o + ").*?\\)";
12931
12932
  function n(f) {
12932
12933
  return (f + "").replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
12933
12934
  }
12934
- function d(f, g, v) {
12935
- var q = {};
12936
- q[v] = [];
12937
- var h = g.toString(), x = h.match(/^function\s?\(\w+,\s*\w+,\s*(\w+)\)/);
12938
- if (!x) return q;
12935
+ function d(f, q, v) {
12936
+ var g = {};
12937
+ g[v] = [];
12938
+ var h = q.toString(), x = h.match(/^function\s?\(\w+,\s*\w+,\s*(\w+)\)/);
12939
+ if (!x) return g;
12939
12940
  for (var F = x[1], y = new RegExp("(\\\\n|\\W)" + n(F) + l, "g"), X; X = y.exec(h); )
12940
- X[3] !== "dll-reference" && q[v].push(X[3]);
12941
+ X[3] !== "dll-reference" && g[v].push(X[3]);
12941
12942
  for (y = new RegExp("\\(" + n(F) + '\\("(dll-reference\\s(' + o + '))"\\)\\)' + l, "g"); X = y.exec(h); )
12942
- f[X[2]] || (q[v].push(X[1]), f[X[2]] = i(X[1]).m), q[X[2]] = q[X[2]] || [], q[X[2]].push(X[4]);
12943
- return q;
12943
+ f[X[2]] || (g[v].push(X[1]), f[X[2]] = i(X[1]).m), g[X[2]] = g[X[2]] || [], g[X[2]].push(X[4]);
12944
+ return g;
12944
12945
  }
12945
12946
  function c(f) {
12946
- var g = Object.keys(f);
12947
- return g.reduce(function(v, q) {
12948
- return v || f[q].length > 0;
12947
+ var q = Object.keys(f);
12948
+ return q.reduce(function(v, g) {
12949
+ return v || f[g].length > 0;
12949
12950
  }, !1);
12950
12951
  }
12951
- function u(f, g) {
12952
+ function u(f, q) {
12952
12953
  for (var v = {
12953
- main: [g]
12954
- }, q = {
12954
+ main: [q]
12955
+ }, g = {
12955
12956
  main: []
12956
12957
  }, h = {
12957
12958
  main: {}
@@ -12959,32 +12960,32 @@ var _c = { exports: {} };
12959
12960
  for (var x = Object.keys(v), F = 0; F < x.length; F++) {
12960
12961
  var y = x[F], X = v[y], A = X.pop();
12961
12962
  if (h[y] = h[y] || {}, !(h[y][A] || !f[y][A])) {
12962
- h[y][A] = !0, q[y] = q[y] || [], q[y].push(A);
12963
+ h[y][A] = !0, g[y] = g[y] || [], g[y].push(A);
12963
12964
  for (var b = d(f, f[y][A], y), B = Object.keys(b), N = 0; N < B.length; N++)
12964
12965
  v[B[N]] = v[B[N]] || [], v[B[N]] = v[B[N]].concat(b[B[N]]);
12965
12966
  }
12966
12967
  }
12967
- return q;
12968
+ return g;
12968
12969
  }
12969
- e.exports = function(f, g) {
12970
- g = g || {};
12970
+ e.exports = function(f, q) {
12971
+ q = q || {};
12971
12972
  var v = {
12972
12973
  main: i.m
12973
- }, q = g.all ? { main: Object.keys(v) } : u(v, f), h = "";
12974
- Object.keys(q).filter(function(A) {
12974
+ }, g = q.all ? { main: Object.keys(v) } : u(v, f), h = "";
12975
+ Object.keys(g).filter(function(A) {
12975
12976
  return A !== "main";
12976
12977
  }).forEach(function(A) {
12977
- for (var b = 0; q[A][b]; )
12978
+ for (var b = 0; g[A][b]; )
12978
12979
  b++;
12979
- q[A].push(b), v[A][b] = "(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })", h = h + "var " + A + " = (" + r.toString().replace("ENTRY_MODULE", JSON.stringify(b)) + ")({" + q[A].map(function(B) {
12980
+ g[A].push(b), v[A][b] = "(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })", h = h + "var " + A + " = (" + r.toString().replace("ENTRY_MODULE", JSON.stringify(b)) + ")({" + g[A].map(function(B) {
12980
12981
  return "" + JSON.stringify(B) + ": " + v[A][B].toString();
12981
12982
  }).join(",") + `});
12982
12983
  `;
12983
- }), h = h + "(" + r.toString().replace("ENTRY_MODULE", JSON.stringify(f)) + ")({" + q.main.map(function(A) {
12984
+ }), h = h + "(" + r.toString().replace("ENTRY_MODULE", JSON.stringify(f)) + ")({" + g.main.map(function(A) {
12984
12985
  return "" + JSON.stringify(A) + ": " + v.main[A].toString();
12985
12986
  }).join(",") + "})(self);";
12986
12987
  var x = new window.Blob([h], { type: "text/javascript" });
12987
- if (g.bare)
12988
+ if (q.bare)
12988
12989
  return x;
12989
12990
  var F = window.URL || window.webkitURL || window.mozURL || window.msURL, y = F.createObjectURL(x), X = new window.Worker(y);
12990
12991
  return X.objectURL = y, X;
@@ -12997,19 +12998,19 @@ var _c = { exports: {} };
12997
12998
  var n = new r.Int32Array(l);
12998
12999
  function d(c, u) {
12999
13000
  c = c | 0, u = u | 0;
13000
- var f = 0, g = 0, v = 0, q = 0, h = 0, x = 0, F = 0, y = 0, X = 0, A = 0, b = 0, B = 0, N = 0, z = 0;
13001
+ var f = 0, q = 0, v = 0, g = 0, h = 0, x = 0, F = 0, y = 0, X = 0, A = 0, b = 0, B = 0, N = 0, z = 0;
13001
13002
  for (v = n[u + 320 >> 2] | 0, h = n[u + 324 >> 2] | 0, F = n[u + 328 >> 2] | 0, X = n[u + 332 >> 2] | 0, b = n[u + 336 >> 2] | 0, f = 0; (f | 0) < (c | 0); f = f + 64 | 0) {
13002
- for (q = v, x = h, y = F, A = X, B = b, g = 0; (g | 0) < 64; g = g + 4 | 0)
13003
- z = n[f + g >> 2] | 0, N = ((v << 5 | v >>> 27) + (h & F | ~h & X) | 0) + ((z + b | 0) + 1518500249 | 0) | 0, b = X, X = F, F = h << 30 | h >>> 2, h = v, v = N, n[c + g >> 2] = z;
13004
- for (g = c + 64 | 0; (g | 0) < (c + 80 | 0); g = g + 4 | 0)
13005
- z = (n[g - 12 >> 2] ^ n[g - 32 >> 2] ^ n[g - 56 >> 2] ^ n[g - 64 >> 2]) << 1 | (n[g - 12 >> 2] ^ n[g - 32 >> 2] ^ n[g - 56 >> 2] ^ n[g - 64 >> 2]) >>> 31, N = ((v << 5 | v >>> 27) + (h & F | ~h & X) | 0) + ((z + b | 0) + 1518500249 | 0) | 0, b = X, X = F, F = h << 30 | h >>> 2, h = v, v = N, n[g >> 2] = z;
13006
- for (g = c + 80 | 0; (g | 0) < (c + 160 | 0); g = g + 4 | 0)
13007
- z = (n[g - 12 >> 2] ^ n[g - 32 >> 2] ^ n[g - 56 >> 2] ^ n[g - 64 >> 2]) << 1 | (n[g - 12 >> 2] ^ n[g - 32 >> 2] ^ n[g - 56 >> 2] ^ n[g - 64 >> 2]) >>> 31, N = ((v << 5 | v >>> 27) + (h ^ F ^ X) | 0) + ((z + b | 0) + 1859775393 | 0) | 0, b = X, X = F, F = h << 30 | h >>> 2, h = v, v = N, n[g >> 2] = z;
13008
- for (g = c + 160 | 0; (g | 0) < (c + 240 | 0); g = g + 4 | 0)
13009
- z = (n[g - 12 >> 2] ^ n[g - 32 >> 2] ^ n[g - 56 >> 2] ^ n[g - 64 >> 2]) << 1 | (n[g - 12 >> 2] ^ n[g - 32 >> 2] ^ n[g - 56 >> 2] ^ n[g - 64 >> 2]) >>> 31, N = ((v << 5 | v >>> 27) + (h & F | h & X | F & X) | 0) + ((z + b | 0) - 1894007588 | 0) | 0, b = X, X = F, F = h << 30 | h >>> 2, h = v, v = N, n[g >> 2] = z;
13010
- for (g = c + 240 | 0; (g | 0) < (c + 320 | 0); g = g + 4 | 0)
13011
- z = (n[g - 12 >> 2] ^ n[g - 32 >> 2] ^ n[g - 56 >> 2] ^ n[g - 64 >> 2]) << 1 | (n[g - 12 >> 2] ^ n[g - 32 >> 2] ^ n[g - 56 >> 2] ^ n[g - 64 >> 2]) >>> 31, N = ((v << 5 | v >>> 27) + (h ^ F ^ X) | 0) + ((z + b | 0) - 899497514 | 0) | 0, b = X, X = F, F = h << 30 | h >>> 2, h = v, v = N, n[g >> 2] = z;
13012
- v = v + q | 0, h = h + x | 0, F = F + y | 0, X = X + A | 0, b = b + B | 0;
13003
+ for (g = v, x = h, y = F, A = X, B = b, q = 0; (q | 0) < 64; q = q + 4 | 0)
13004
+ z = n[f + q >> 2] | 0, N = ((v << 5 | v >>> 27) + (h & F | ~h & X) | 0) + ((z + b | 0) + 1518500249 | 0) | 0, b = X, X = F, F = h << 30 | h >>> 2, h = v, v = N, n[c + q >> 2] = z;
13005
+ for (q = c + 64 | 0; (q | 0) < (c + 80 | 0); q = q + 4 | 0)
13006
+ z = (n[q - 12 >> 2] ^ n[q - 32 >> 2] ^ n[q - 56 >> 2] ^ n[q - 64 >> 2]) << 1 | (n[q - 12 >> 2] ^ n[q - 32 >> 2] ^ n[q - 56 >> 2] ^ n[q - 64 >> 2]) >>> 31, N = ((v << 5 | v >>> 27) + (h & F | ~h & X) | 0) + ((z + b | 0) + 1518500249 | 0) | 0, b = X, X = F, F = h << 30 | h >>> 2, h = v, v = N, n[q >> 2] = z;
13007
+ for (q = c + 80 | 0; (q | 0) < (c + 160 | 0); q = q + 4 | 0)
13008
+ z = (n[q - 12 >> 2] ^ n[q - 32 >> 2] ^ n[q - 56 >> 2] ^ n[q - 64 >> 2]) << 1 | (n[q - 12 >> 2] ^ n[q - 32 >> 2] ^ n[q - 56 >> 2] ^ n[q - 64 >> 2]) >>> 31, N = ((v << 5 | v >>> 27) + (h ^ F ^ X) | 0) + ((z + b | 0) + 1859775393 | 0) | 0, b = X, X = F, F = h << 30 | h >>> 2, h = v, v = N, n[q >> 2] = z;
13009
+ for (q = c + 160 | 0; (q | 0) < (c + 240 | 0); q = q + 4 | 0)
13010
+ z = (n[q - 12 >> 2] ^ n[q - 32 >> 2] ^ n[q - 56 >> 2] ^ n[q - 64 >> 2]) << 1 | (n[q - 12 >> 2] ^ n[q - 32 >> 2] ^ n[q - 56 >> 2] ^ n[q - 64 >> 2]) >>> 31, N = ((v << 5 | v >>> 27) + (h & F | h & X | F & X) | 0) + ((z + b | 0) - 1894007588 | 0) | 0, b = X, X = F, F = h << 30 | h >>> 2, h = v, v = N, n[q >> 2] = z;
13011
+ for (q = c + 240 | 0; (q | 0) < (c + 320 | 0); q = q + 4 | 0)
13012
+ z = (n[q - 12 >> 2] ^ n[q - 32 >> 2] ^ n[q - 56 >> 2] ^ n[q - 64 >> 2]) << 1 | (n[q - 12 >> 2] ^ n[q - 32 >> 2] ^ n[q - 56 >> 2] ^ n[q - 64 >> 2]) >>> 31, N = ((v << 5 | v >>> 27) + (h ^ F ^ X) | 0) + ((z + b | 0) - 899497514 | 0) | 0, b = X, X = F, F = h << 30 | h >>> 2, h = v, v = N, n[q >> 2] = z;
13013
+ v = v + g | 0, h = h + x | 0, F = F + y | 0, X = X + A | 0, b = b + B | 0;
13013
13014
  }
13014
13015
  n[u + 320 >> 2] = v, n[u + 324 >> 2] = h, n[u + 328 >> 2] = F, n[u + 332 >> 2] = X, n[u + 336 >> 2] = b;
13015
13016
  }
@@ -13021,8 +13022,8 @@ var _c = { exports: {} };
13021
13022
  function(e, s) {
13022
13023
  var i = this, r = void 0;
13023
13024
  typeof self < "u" && typeof self.FileReaderSync < "u" && (r = new self.FileReaderSync());
13024
- var o = function(d, c, u, f, g, v) {
13025
- var q = void 0, h = v % 4, x = (g + h) % 4, F = g - x;
13025
+ var o = function(d, c, u, f, q, v) {
13026
+ var g = void 0, h = v % 4, x = (q + h) % 4, F = q - x;
13026
13027
  switch (h) {
13027
13028
  case 0:
13028
13029
  c[v] = d.charCodeAt(f + 3);
@@ -13033,9 +13034,9 @@ var _c = { exports: {} };
13033
13034
  case 3:
13034
13035
  c[v + 3 - (h << 1) | 0] = d.charCodeAt(f);
13035
13036
  }
13036
- if (!(g < x + (4 - h))) {
13037
- for (q = 4 - h; q < F; q = q + 4 | 0)
13038
- u[v + q >> 2] = d.charCodeAt(f + q) << 24 | d.charCodeAt(f + q + 1) << 16 | d.charCodeAt(f + q + 2) << 8 | d.charCodeAt(f + q + 3);
13037
+ if (!(q < x + (4 - h))) {
13038
+ for (g = 4 - h; g < F; g = g + 4 | 0)
13039
+ u[v + g >> 2] = d.charCodeAt(f + g) << 24 | d.charCodeAt(f + g + 1) << 16 | d.charCodeAt(f + g + 2) << 8 | d.charCodeAt(f + g + 3);
13039
13040
  switch (x) {
13040
13041
  case 3:
13041
13042
  c[v + F + 1 | 0] = d.charCodeAt(f + F + 2);
@@ -13045,8 +13046,8 @@ var _c = { exports: {} };
13045
13046
  c[v + F + 3 | 0] = d.charCodeAt(f + F);
13046
13047
  }
13047
13048
  }
13048
- }, l = function(d, c, u, f, g, v) {
13049
- var q = void 0, h = v % 4, x = (g + h) % 4, F = g - x;
13049
+ }, l = function(d, c, u, f, q, v) {
13050
+ var g = void 0, h = v % 4, x = (q + h) % 4, F = q - x;
13050
13051
  switch (h) {
13051
13052
  case 0:
13052
13053
  c[v] = d[f + 3];
@@ -13057,9 +13058,9 @@ var _c = { exports: {} };
13057
13058
  case 3:
13058
13059
  c[v + 3 - (h << 1) | 0] = d[f];
13059
13060
  }
13060
- if (!(g < x + (4 - h))) {
13061
- for (q = 4 - h; q < F; q = q + 4 | 0)
13062
- u[v + q >> 2 | 0] = d[f + q] << 24 | d[f + q + 1] << 16 | d[f + q + 2] << 8 | d[f + q + 3];
13061
+ if (!(q < x + (4 - h))) {
13062
+ for (g = 4 - h; g < F; g = g + 4 | 0)
13063
+ u[v + g >> 2 | 0] = d[f + g] << 24 | d[f + g + 1] << 16 | d[f + g + 2] << 8 | d[f + g + 3];
13063
13064
  switch (x) {
13064
13065
  case 3:
13065
13066
  c[v + F + 1 | 0] = d[f + F + 2];
@@ -13069,8 +13070,8 @@ var _c = { exports: {} };
13069
13070
  c[v + F + 3 | 0] = d[f + F];
13070
13071
  }
13071
13072
  }
13072
- }, n = function(d, c, u, f, g, v) {
13073
- var q = void 0, h = v % 4, x = (g + h) % 4, F = g - x, y = new Uint8Array(r.readAsArrayBuffer(d.slice(f, f + g)));
13073
+ }, n = function(d, c, u, f, q, v) {
13074
+ var g = void 0, h = v % 4, x = (q + h) % 4, F = q - x, y = new Uint8Array(r.readAsArrayBuffer(d.slice(f, f + q)));
13074
13075
  switch (h) {
13075
13076
  case 0:
13076
13077
  c[v] = y[3];
@@ -13081,9 +13082,9 @@ var _c = { exports: {} };
13081
13082
  case 3:
13082
13083
  c[v + 3 - (h << 1) | 0] = y[0];
13083
13084
  }
13084
- if (!(g < x + (4 - h))) {
13085
- for (q = 4 - h; q < F; q = q + 4 | 0)
13086
- u[v + q >> 2 | 0] = y[q] << 24 | y[q + 1] << 16 | y[q + 2] << 8 | y[q + 3];
13085
+ if (!(q < x + (4 - h))) {
13086
+ for (g = 4 - h; g < F; g = g + 4 | 0)
13087
+ u[v + g >> 2 | 0] = y[g] << 24 | y[g + 1] << 16 | y[g + 2] << 8 | y[g + 3];
13087
13088
  switch (x) {
13088
13089
  case 3:
13089
13090
  c[v + F + 1 | 0] = y[F + 2];
@@ -13094,17 +13095,17 @@ var _c = { exports: {} };
13094
13095
  }
13095
13096
  }
13096
13097
  };
13097
- e.exports = function(d, c, u, f, g, v) {
13098
+ e.exports = function(d, c, u, f, q, v) {
13098
13099
  if (typeof d == "string")
13099
- return o(d, c, u, f, g, v);
13100
+ return o(d, c, u, f, q, v);
13100
13101
  if (d instanceof Array || i && i.Buffer && i.Buffer.isBuffer(d))
13101
- return l(d, c, u, f, g, v);
13102
+ return l(d, c, u, f, q, v);
13102
13103
  if (d instanceof ArrayBuffer)
13103
- return l(new Uint8Array(d), c, u, f, g, v);
13104
+ return l(new Uint8Array(d), c, u, f, q, v);
13104
13105
  if (d.buffer instanceof ArrayBuffer)
13105
- return l(new Uint8Array(d.buffer, d.byteOffset, d.byteLength), c, u, f, g, v);
13106
+ return l(new Uint8Array(d.buffer, d.byteOffset, d.byteLength), c, u, f, q, v);
13106
13107
  if (d instanceof Blob)
13107
- return n(d, c, u, f, g, v);
13108
+ return n(d, c, u, f, q, v);
13108
13109
  throw new Error("Unsupported data type.");
13109
13110
  };
13110
13111
  },
@@ -13112,14 +13113,14 @@ var _c = { exports: {} };
13112
13113
  /***/
13113
13114
  function(e, s, i) {
13114
13115
  var r = /* @__PURE__ */ function() {
13115
- function u(f, g) {
13116
- for (var v = 0; v < g.length; v++) {
13117
- var q = g[v];
13118
- q.enumerable = q.enumerable || !1, q.configurable = !0, "value" in q && (q.writable = !0), Object.defineProperty(f, q.key, q);
13116
+ function u(f, q) {
13117
+ for (var v = 0; v < q.length; v++) {
13118
+ var g = q[v];
13119
+ g.enumerable = g.enumerable || !1, g.configurable = !0, "value" in g && (g.writable = !0), Object.defineProperty(f, g.key, g);
13119
13120
  }
13120
13121
  }
13121
- return function(f, g, v) {
13122
- return g && u(f.prototype, g), v && u(f, v), f;
13122
+ return function(f, q, v) {
13123
+ return q && u(f.prototype, q), v && u(f, v), f;
13123
13124
  };
13124
13125
  }();
13125
13126
  function o(u, f) {
@@ -13130,13 +13131,13 @@ var _c = { exports: {} };
13130
13131
  function u() {
13131
13132
  o(this, u), this._rusha = new l(), this._rusha.resetState();
13132
13133
  }
13133
- return u.prototype.update = function(g) {
13134
- return this._rusha.append(g), this;
13135
- }, u.prototype.digest = function(g) {
13134
+ return u.prototype.update = function(q) {
13135
+ return this._rusha.append(q), this;
13136
+ }, u.prototype.digest = function(q) {
13136
13137
  var v = this._rusha.rawEnd().buffer;
13137
- if (!g)
13138
+ if (!q)
13138
13139
  return v;
13139
- if (g === "hex")
13140
+ if (q === "hex")
13140
13141
  return d(v);
13141
13142
  throw new Error("unsupported digest encoding");
13142
13143
  }, r(u, [{
@@ -13197,7 +13198,7 @@ function rq(a, t = void 0) {
13197
13198
  const { damClient: e } = ot(), s = S(0), i = S(0);
13198
13199
  let r = [], o = 0, l = 0, n = 0;
13199
13200
  const d = Zg.createHash(), { updateChunkSize: c, lastChunkSize: u } = Bg(), f = () => Date.now() / 1e3;
13200
- function g(y) {
13201
+ function q(y) {
13201
13202
  const X = f();
13202
13203
  if (o === 0) {
13203
13204
  o = X;
@@ -13219,13 +13220,13 @@ function rq(a, t = void 0) {
13219
13220
  // todo check
13220
13221
  y.size,
13221
13222
  X,
13222
- g
13223
+ q
13223
13224
  ).then((B) => {
13224
13225
  A(B);
13225
13226
  }).catch((B) => {
13226
13227
  b(B);
13227
13228
  });
13228
- }), q = async (y) => {
13229
+ }), g = async (y) => {
13229
13230
  c(a.progress.speed);
13230
13231
  let X = await ud(y, u.value, a.file), A = new File([X.data], a.file.name);
13231
13232
  a.currentChunkIndex = y;
@@ -13275,7 +13276,7 @@ function rq(a, t = void 0) {
13275
13276
  if (L(y)) return Promise.reject();
13276
13277
  let X = 0;
13277
13278
  for (; X < y; ) {
13278
- const b = await q(X);
13279
+ const b = await g(X);
13279
13280
  X += b.size, i.value = X / y * 100;
13280
13281
  }
13281
13282
  return l = Date.now() / 1e3, await aq(a, d.digest("hex"));
@@ -13344,7 +13345,7 @@ const cd = (a) => {
13344
13345
  pq,
13345
13346
  $
13346
13347
  );
13347
- Ve.file = ae, Ve.displayTitle = ae.name, f(C), u(C, Ve), g(C), q(C);
13348
+ Ve.file = ae, Ve.displayTitle = ae.name, f(C), u(C, Ve), q(C), g(C);
13348
13349
  }
13349
13350
  }
13350
13351
  function u(C, D) {
@@ -13360,7 +13361,7 @@ const cd = (a) => {
13360
13361
  suggestions: { newKeywordNames: /* @__PURE__ */ new Set(), newAuthorNames: /* @__PURE__ */ new Set() }
13361
13362
  });
13362
13363
  }
13363
- function g(C) {
13364
+ function q(C) {
13364
13365
  const D = i.value.get(C);
13365
13366
  D && (D.totalCount = D.items.length, D.processedCount = v(C, Ne.Uploaded).length + v(C, Ne.Failed).length);
13366
13367
  }
@@ -13368,7 +13369,7 @@ const cd = (a) => {
13368
13369
  const $ = i.value.get(C);
13369
13370
  return $ ? $.items.filter((H) => H.status === D) : [];
13370
13371
  }
13371
- function q(C) {
13372
+ function g(C) {
13372
13373
  const D = v(C, Ne.Waiting);
13373
13374
  if (!(D.length === 0 || v(C, Ne.Uploading).length === md))
13374
13375
  for (let H = 0; H < md; H++)
@@ -13379,9 +13380,9 @@ const cd = (a) => {
13379
13380
  x(C, G, Z, ae);
13380
13381
  });
13381
13382
  try {
13382
- await H(), await $(), q(D);
13383
+ await H(), await $(), g(D);
13383
13384
  } catch {
13384
- C.error.hasError = !0, C.status = Ne.Failed, g(D), q(D);
13385
+ C.error.hasError = !0, C.status = Ne.Failed, q(D), g(D);
13385
13386
  }
13386
13387
  }
13387
13388
  function x(C, D, $, H) {
@@ -13394,8 +13395,8 @@ const cd = (a) => {
13394
13395
  i.value.forEach(($, H) => {
13395
13396
  $.items.forEach((G) => {
13396
13397
  var Z;
13397
- G.assetId === D.id && D.mainFile && (clearTimeout(G.notificationFallbackTimer), G.status = Ne.Uploaded, G.assetStatus = D.attributes.assetStatus, (Z = D.mainFile.links) != null && Z.image_detail && (G.imagePreview = D.mainFile.links.image_detail), G.mainFileSingleUse = D.mainFileSingleUse, q(H));
13398
- }), g(H);
13398
+ G.assetId === D.id && D.mainFile && (clearTimeout(G.notificationFallbackTimer), G.status = Ne.Uploaded, G.assetStatus = D.attributes.assetStatus, (Z = D.mainFile.links) != null && Z.image_detail && (G.imagePreview = D.mainFile.links.image_detail), G.mainFileSingleUse = D.mainFileSingleUse, g(H));
13399
+ }), q(H);
13399
13400
  });
13400
13401
  } catch {
13401
13402
  }
@@ -13412,8 +13413,8 @@ const cd = (a) => {
13412
13413
  i.value.forEach((ae, fe) => {
13413
13414
  ae.items.forEach((Ve) => {
13414
13415
  var Ke, Re;
13415
- te(Z) || Ve.assetId === C && (clearTimeout(Ve.notificationFallbackTimer), Ve.isDuplicate = !0, Ve.status = Ne.Uploaded, Ve.fileId = D, Ve.duplicateAssetId = Z.id, Ve.assetStatus = Z.attributes.assetStatus, (Re = (Ke = Z.mainFile) == null ? void 0 : Ke.links) != null && Re.image_detail && (Ve.imagePreview = Z.mainFile.links.image_detail), Ve.keywords = Z.keywords, Ve.authors = Z.authors, Ve.customData = Z.metadata.customData, H(Z.metadata.authorSuggestions, ae.suggestions.newAuthorNames), H(Z.metadata.keywordSuggestions, ae.suggestions.newKeywordNames), Ve.authorConflicts = G(Z.metadata.authorSuggestions), a(Ve.keywords), e(Ve.authors), e(Ve.authorConflicts), Ve.assetId = Z.id, Ve.mainFileSingleUse = Z.mainFileSingleUse, Ve.canEditMetadata = !0, q(fe));
13416
- }), g(fe), s(), t();
13416
+ te(Z) || Ve.assetId === C && (clearTimeout(Ve.notificationFallbackTimer), Ve.isDuplicate = !0, Ve.status = Ne.Uploaded, Ve.fileId = D, Ve.duplicateAssetId = Z.id, Ve.assetStatus = Z.attributes.assetStatus, (Re = (Ke = Z.mainFile) == null ? void 0 : Ke.links) != null && Re.image_detail && (Ve.imagePreview = Z.mainFile.links.image_detail), Ve.keywords = Z.keywords, Ve.authors = Z.authors, Ve.customData = Z.metadata.customData, H(Z.metadata.authorSuggestions, ae.suggestions.newAuthorNames), H(Z.metadata.keywordSuggestions, ae.suggestions.newKeywordNames), Ve.authorConflicts = G(Z.metadata.authorSuggestions), a(Ve.keywords), e(Ve.authors), e(Ve.authorConflicts), Ve.assetId = Z.id, Ve.mainFileSingleUse = Z.mainFileSingleUse, Ve.canEditMetadata = !0, g(fe));
13417
+ }), q(fe), s(), t();
13417
13418
  });
13418
13419
  }
13419
13420
  async function X(C, D) {
@@ -13421,8 +13422,8 @@ const cd = (a) => {
13421
13422
  const $ = await ds(o, C);
13422
13423
  i.value.forEach((H, G) => {
13423
13424
  H.items.forEach((Z) => {
13424
- Z.assetId === $.id && (clearTimeout(Z.notificationFallbackTimer), Z.error.hasError = !0, Z.status = Ne.Failed, Z.error.assetFileFailReason = D, Z.canEditMetadata = !1, q(G));
13425
- }), g(G);
13425
+ Z.assetId === $.id && (clearTimeout(Z.notificationFallbackTimer), Z.error.hasError = !0, Z.status = Ne.Failed, Z.error.assetFileFailReason = D, Z.canEditMetadata = !1, g(G));
13426
+ }), q(G);
13426
13427
  });
13427
13428
  } catch {
13428
13429
  }
@@ -13434,18 +13435,18 @@ const cd = (a) => {
13434
13435
  i.value.forEach((G, Z) => {
13435
13436
  G.items.forEach((ae) => {
13436
13437
  ae.assetId === H.id && ae.type && (clearTimeout(ae.notificationFallbackTimer), ae.keywords = H.keywords, ae.authors = H.authors, ae.customData = H.metadata.customData, ae.mainFileSingleUse = H.mainFileSingleUse, D(H.metadata.authorSuggestions, G.suggestions.newAuthorNames), D(H.metadata.keywordSuggestions, G.suggestions.newKeywordNames), ae.authorConflicts = $(H.metadata.authorSuggestions), a(ae.keywords), e(ae.authors), e(ae.authorConflicts), ae.canEditMetadata = !0);
13437
- }), g(Z), s(), t();
13438
+ }), q(Z), s(), t();
13438
13439
  });
13439
13440
  } catch {
13440
13441
  }
13441
13442
  }
13442
13443
  function b(C, D) {
13443
13444
  const $ = i.value.get(C);
13444
- !$ || !$.items[D] || ($.items.splice(D, 1), g(C));
13445
+ !$ || !$.items[D] || ($.items.splice(D, 1), q(C));
13445
13446
  }
13446
13447
  async function B(C, D, $) {
13447
13448
  const H = i.value.get(C);
13448
- !H || H.items.length === 0 || (D.status = Ne.Stop, D.latestChunkCancelToken && cd(D.latestChunkCancelToken), b(C, $), q(C));
13449
+ !H || H.items.length === 0 || (D.status = Ne.Stop, D.latestChunkCancelToken && cd(D.latestChunkCancelToken), b(C, $), g(C));
13449
13450
  }
13450
13451
  async function N(C) {
13451
13452
  const { updateNewNames: D, getAuthorConflicts: $ } = ln();
@@ -13454,7 +13455,7 @@ const cd = (a) => {
13454
13455
  i.value.forEach((G, Z) => {
13455
13456
  G.items.forEach((ae) => {
13456
13457
  ae.assetId === H.id && ae.type && (clearTimeout(ae.notificationFallbackTimer), ae.keywords = H.keywords, ae.authors = H.authors, ae.customData = H.metadata.customData, D(H.metadata.authorSuggestions, G.suggestions.newAuthorNames), D(H.metadata.keywordSuggestions, G.suggestions.newKeywordNames), ae.authorConflicts = $(H.metadata.authorSuggestions), a(ae.keywords), e(ae.authors), e(ae.authorConflicts));
13457
- }), g(Z), s(), t();
13458
+ }), q(Z), s(), t();
13458
13459
  });
13459
13460
  } catch {
13460
13461
  }
@@ -13565,14 +13566,14 @@ const Fq = {
13565
13566
  const t = a, { showErrorsDefault: e } = He(), s = ir(t.configName), { imageClient: i } = s, { widgetImageToDamImageUrl: r } = dl(s), o = S(null), { image: l, modelValue: n } = ci(t), d = S(""), { t: c } = ee(), u = (f) => Ya(t.damWidth) && Ya(t.damHeight) ? r(f, t.damWidth, t.damHeight) : r(f);
13566
13567
  return qe(
13567
13568
  [l, n],
13568
- async ([f, g]) => {
13569
+ async ([f, q]) => {
13569
13570
  if (o.value = null, d.value = Ks, f) {
13570
13571
  o.value = ye(f), o.value && (d.value = u(o.value));
13571
13572
  return;
13572
13573
  }
13573
- if (g) {
13574
+ if (q) {
13574
13575
  try {
13575
- o.value = await ul(i, g);
13576
+ o.value = await ul(i, q);
13576
13577
  } catch (v) {
13577
13578
  e(v);
13578
13579
  }
@@ -13580,7 +13581,7 @@ const Fq = {
13580
13581
  }
13581
13582
  },
13582
13583
  { immediate: !0 }
13583
- ), (f, g) => (Y(), R(ge, null, [
13584
+ ), (f, q) => (Y(), R(ge, null, [
13584
13585
  f.label ? (Y(), R("h4", Fq, k(f.label), 1)) : j("", !0),
13585
13586
  m(Pr, {
13586
13587
  "lazy-src": V(Ks),
@@ -13610,7 +13611,7 @@ const Fq = {
13610
13611
  m(oe, null, {
13611
13612
  default: p(() => [
13612
13613
  U("span", Yq, k(V(c)("common.damImage.image.model.texts.description")) + ":", 1),
13613
- g[0] || (g[0] = U("br", null, null, -1)),
13614
+ q[0] || (q[0] = U("br", null, null, -1)),
13614
13615
  P(k(o.value.texts.description), 1)
13615
13616
  ]),
13616
13617
  _: 1
@@ -13626,7 +13627,7 @@ const Fq = {
13626
13627
  m(oe, null, {
13627
13628
  default: p(() => [
13628
13629
  U("span", Xq, k(V(c)("common.damImage.image.model.texts.source")) + ":", 1),
13629
- g[1] || (g[1] = U("br", null, null, -1)),
13630
+ q[1] || (q[1] = U("br", null, null, -1)),
13630
13631
  P(k(o.value.texts.source), 1)
13631
13632
  ]),
13632
13633
  _: 1
@@ -13714,7 +13715,7 @@ const xq = { key: 0 }, wq = { class: "d-flex align-center justify-center" }, kq
13714
13715
  };
13715
13716
  return t({
13716
13717
  confirm: d
13717
- }), (f, g) => {
13718
+ }), (f, q) => {
13718
13719
  const v = $e("ABtnPrimary");
13719
13720
  return f.expand ? (Y(), R("div", xq, [
13720
13721
  f.loading ? (Y(), T(ve, { key: 0 }, {
@@ -13754,7 +13755,7 @@ const xq = { key: 0 }, wq = { class: "d-flex align-center justify-center" }, kq
13754
13755
  default: p(() => [
13755
13756
  m(ls, {
13756
13757
  modelValue: V(o).texts.description,
13757
- "onUpdate:modelValue": g[0] || (g[0] = (q) => V(o).texts.description = q),
13758
+ "onUpdate:modelValue": q[0] || (q[0] = (g) => V(o).texts.description = g),
13758
13759
  label: V(i)("common.damImage.image.model.texts.description"),
13759
13760
  help: V(i)("common.damImage.image.help.texts.description")
13760
13761
  }, null, 8, ["modelValue", "label", "help"])
@@ -13770,7 +13771,7 @@ const xq = { key: 0 }, wq = { class: "d-flex align-center justify-center" }, kq
13770
13771
  default: p(() => [
13771
13772
  m(ls, {
13772
13773
  modelValue: V(o).texts.source,
13773
- "onUpdate:modelValue": g[1] || (g[1] = (q) => V(o).texts.source = q),
13774
+ "onUpdate:modelValue": q[1] || (q[1] = (g) => V(o).texts.source = g),
13774
13775
  label: V(i)("common.damImage.image.model.texts.source"),
13775
13776
  v: V(l).image.texts.source
13776
13777
  }, null, 8, ["modelValue", "label", "v"])
@@ -13791,7 +13792,7 @@ const xq = { key: 0 }, wq = { class: "d-flex align-center justify-center" }, kq
13791
13792
  f.modelValue ? (Y(), T(Le, { key: 0 }, {
13792
13793
  default: p(() => [
13793
13794
  m(It, {
13794
- onOnCancel: g[2] || (g[2] = (q) => c(!1))
13795
+ onOnCancel: q[2] || (q[2] = (g) => c(!1))
13795
13796
  }, {
13796
13797
  default: p(() => [
13797
13798
  P(k(V(i)("common.damImage.image.meta.edit")), 1)
@@ -13833,7 +13834,7 @@ const xq = { key: 0 }, wq = { class: "d-flex align-center justify-center" }, kq
13833
13834
  default: p(() => [
13834
13835
  m(ls, {
13835
13836
  modelValue: V(o).texts.description,
13836
- "onUpdate:modelValue": g[3] || (g[3] = (q) => V(o).texts.description = q),
13837
+ "onUpdate:modelValue": q[3] || (q[3] = (g) => V(o).texts.description = g),
13837
13838
  label: V(i)("common.damImage.image.model.texts.description"),
13838
13839
  help: V(i)("common.damImage.image.help.texts.description")
13839
13840
  }, null, 8, ["modelValue", "label", "help"])
@@ -13849,7 +13850,7 @@ const xq = { key: 0 }, wq = { class: "d-flex align-center justify-center" }, kq
13849
13850
  default: p(() => [
13850
13851
  m(ls, {
13851
13852
  modelValue: V(o).texts.source,
13852
- "onUpdate:modelValue": g[4] || (g[4] = (q) => V(o).texts.source = q),
13853
+ "onUpdate:modelValue": q[4] || (q[4] = (g) => V(o).texts.source = g),
13853
13854
  label: V(i)("common.damImage.image.model.texts.source"),
13854
13855
  v: V(l).image.texts.source
13855
13856
  }, null, 8, ["modelValue", "label", "v"])
@@ -14133,8 +14134,8 @@ const Mq = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
14133
14134
  if (!e.uploadingProgress) return "0%";
14134
14135
  const v = Math.ceil(e.uploadingProgress);
14135
14136
  return v > 100 ? "100%" : v + "%";
14136
- }), d = _(() => [ut.Deleting, ut.Draft].includes(e.assetStatus) ? "#ccc" : e.backgroundColor), c = _(() => e.assetStatus === ut.WithFile ? "#505050" : "#8f8f8f"), u = _(() => L(e.src) ? Ks : e.src), f = _(() => e.hideIcon ? !1 : !(e.assetType === Xe.Image && e.src)), { remainingTimeShort: g } = Eq();
14137
- return (v, q) => v.showUploading || v.showProcessing || v.showWaiting ? (Y(), T(Pr, {
14137
+ }), d = _(() => [ut.Deleting, ut.Draft].includes(e.assetStatus) ? "#ccc" : e.backgroundColor), c = _(() => e.assetStatus === ut.WithFile ? "#505050" : "#8f8f8f"), u = _(() => L(e.src) ? Ks : e.src), f = _(() => e.hideIcon ? !1 : !(e.assetType === Xe.Image && e.src)), { remainingTimeShort: q } = Eq();
14138
+ return (v, g) => v.showUploading || v.showProcessing || v.showWaiting ? (Y(), T(Pr, {
14138
14139
  key: 0,
14139
14140
  "aspect-ratio": v.aspectRatio,
14140
14141
  src: u.value,
@@ -14145,7 +14146,7 @@ const Mq = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
14145
14146
  onError: o,
14146
14147
  onLoad: r
14147
14148
  }, {
14148
- placeholder: p(() => q[0] || (q[0] = [])),
14149
+ placeholder: p(() => g[0] || (g[0] = [])),
14149
14150
  default: p(() => [
14150
14151
  v.showWaiting ? (Y(), R("div", Wq, [
14151
14152
  m(tt, {
@@ -14179,7 +14180,7 @@ const Mq = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
14179
14180
  }, 8, ["color", "size", "width", "model-value"]),
14180
14181
  U("div", e7, [
14181
14182
  P(k(V(i)("common.damImage.upload.uploading")) + " ", 1),
14182
- v.remainingTime ? (Y(), R("span", t7, k(V(g)(v.remainingTime)), 1)) : j("", !0)
14183
+ v.remainingTime ? (Y(), R("span", t7, k(V(q)(v.remainingTime)), 1)) : j("", !0)
14183
14184
  ])
14184
14185
  ])) : j("", !0)
14185
14186
  ]),
@@ -14195,7 +14196,7 @@ const Mq = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20wid
14195
14196
  onLoad: r,
14196
14197
  onError: o
14197
14198
  }, {
14198
- placeholder: p(() => q[1] || (q[1] = [])),
14199
+ placeholder: p(() => g[1] || (g[1] = [])),
14199
14200
  default: p(() => [
14200
14201
  f.value ? (Y(), R("div", a7, [
14201
14202
  U("div", {
@@ -14802,11 +14803,11 @@ const x7 = /* @__PURE__ */ W({
14802
14803
  n.value = l(e.extSystem, !0), n.value.name = e.initialValue, d.value = !0;
14803
14804
  }, f = () => {
14804
14805
  d.value = !1;
14805
- }, { v$: g } = b7(n, e.validationScope), { t: v } = ee(), { showValidationError: q, showRecordWas: h, showErrorsDefault: x } = He(), F = async () => {
14806
+ }, { v$: q } = b7(n, e.validationScope), { t: v } = ee(), { showValidationError: g, showRecordWas: h, showErrorsDefault: x } = He(), F = async () => {
14806
14807
  if (!c.value)
14807
14808
  try {
14808
- if (c.value = !0, g.value.$touch(), g.value.$invalid) {
14809
- q(), c.value = !1;
14809
+ if (c.value = !0, q.value.$touch(), q.value.$invalid) {
14810
+ g(), c.value = !1;
14810
14811
  return;
14811
14812
  }
14812
14813
  const X = await kh(i, n.value);
@@ -14887,7 +14888,7 @@ const x7 = /* @__PURE__ */ W({
14887
14888
  modelValue: n.value.name,
14888
14889
  "onUpdate:modelValue": A[0] || (A[0] = (N) => n.value.name = N),
14889
14890
  label: V(v)("common.damImage.author.model.name"),
14890
- v: V(g).author.name,
14891
+ v: V(q).author.name,
14891
14892
  required: "",
14892
14893
  "data-cy": "author-name",
14893
14894
  onKeyup: Pa(F, ["enter"])
@@ -14901,7 +14902,7 @@ const x7 = /* @__PURE__ */ W({
14901
14902
  modelValue: n.value.identifier,
14902
14903
  "onUpdate:modelValue": A[1] || (A[1] = (N) => n.value.identifier = N),
14903
14904
  label: V(v)("common.damImage.author.model.identifier"),
14904
- v: V(g).author.identifier,
14905
+ v: V(q).author.identifier,
14905
14906
  "data-cy": "author-identifier",
14906
14907
  onKeyup: Pa(F, ["enter"])
14907
14908
  }, null, 8, ["modelValue", "label", "v"])
@@ -14995,10 +14996,10 @@ const x7 = /* @__PURE__ */ W({
14995
14996
  }
14996
14997
  }, d = ma(n, { modelValueComputed: i }, { $scope: e.validationScope }), { fetchItemsMinimal: c } = Zu(e.extSystem), u = Ju(), f = async (F) => {
14997
14998
  F && (i.value.includes(F) || (i.value = [...i.value, F]));
14998
- }, g = S(""), v = (F) => {
14999
- F.length > 0 && (g.value = F);
15000
- }, { addManualToCachedAuthors: q } = rr(), h = (F) => {
15001
- if (q(F), We(i.value)) {
14999
+ }, q = S(""), v = (F) => {
15000
+ F.length > 0 && (q.value = F);
15001
+ }, { addManualToCachedAuthors: g } = rr(), h = (F) => {
15002
+ if (g(F), We(i.value)) {
15002
15003
  i.value = [...i.value, F.id];
15003
15004
  return;
15004
15005
  }
@@ -15075,7 +15076,7 @@ const x7 = /* @__PURE__ */ W({
15075
15076
  variant: "icon",
15076
15077
  "ext-system": F.extSystem,
15077
15078
  "data-cy": "add-author",
15078
- "initial-value": g.value,
15079
+ "initial-value": q.value,
15079
15080
  "disable-redirect": "",
15080
15081
  disabled: F.disabled,
15081
15082
  onOnSuccess: h
@@ -15212,11 +15213,11 @@ const E7 = /* @__PURE__ */ W({
15212
15213
  n.value = l(e.extSystem, !0), n.value.name = e.initialValue, d.value = !0;
15213
15214
  }, f = () => {
15214
15215
  d.value = !1;
15215
- }, { v$: g } = T7(n, e.validationScope), { t: v } = ee(), { showValidationError: q, showRecordWas: h, showErrorsDefault: x } = He(), F = async () => {
15216
+ }, { v$: q } = T7(n, e.validationScope), { t: v } = ee(), { showValidationError: g, showRecordWas: h, showErrorsDefault: x } = He(), F = async () => {
15216
15217
  if (!c.value)
15217
15218
  try {
15218
- if (c.value = !0, g.value.$touch(), g.value.$invalid) {
15219
- q(), c.value = !1;
15219
+ if (c.value = !0, q.value.$touch(), q.value.$invalid) {
15220
+ g(), c.value = !1;
15220
15221
  return;
15221
15222
  }
15222
15223
  const y = await yh(i, n.value);
@@ -15297,7 +15298,7 @@ const E7 = /* @__PURE__ */ W({
15297
15298
  modelValue: n.value.name,
15298
15299
  "onUpdate:modelValue": X[0] || (X[0] = (B) => n.value.name = B),
15299
15300
  label: V(v)("common.damImage.keyword.model.name"),
15300
- v: V(g).keyword.name,
15301
+ v: V(q).keyword.name,
15301
15302
  required: "",
15302
15303
  "data-cy": "keyword-name",
15303
15304
  onKeyup: Pa(F, ["enter"])
@@ -15374,13 +15375,13 @@ const E7 = /* @__PURE__ */ W({
15374
15375
  }
15375
15376
  }, n = ma(l, { modelValueComputed: i }, { $scope: e.validationScope }), { fetchItemsMinimal: d } = Hu(e.extSystem), c = xh(), u = S(""), f = (h) => {
15376
15377
  h.length > 0 && (u.value = h);
15377
- }, { addManualToCachedKeywords: g } = _o(), v = (h) => {
15378
- if (g(h), We(i.value)) {
15378
+ }, { addManualToCachedKeywords: q } = _o(), v = (h) => {
15379
+ if (q(h), We(i.value)) {
15379
15380
  i.value = [...i.value, h.id];
15380
15381
  return;
15381
15382
  }
15382
15383
  i.value = h.id;
15383
- }, q = (h) => We(i.value) ? i.value.includes(h) : i.value ? i.value === h : !1;
15384
+ }, g = (h) => We(i.value) ? i.value.includes(h) : i.value ? i.value === h : !1;
15384
15385
  return (h, x) => (Y(), R("div", M7, [
15385
15386
  m(Du, {
15386
15387
  modelValue: i.value,
@@ -15422,7 +15423,7 @@ const E7 = /* @__PURE__ */ W({
15422
15423
  name: "prepend",
15423
15424
  fn: p(() => [
15424
15425
  m(Gi, {
15425
- "model-value": q(y.value),
15426
+ "model-value": g(y.value),
15426
15427
  ripple: !1
15427
15428
  }, null, 8, ["model-value"])
15428
15429
  ]),
@@ -15483,7 +15484,7 @@ const E7 = /* @__PURE__ */ W({
15483
15484
  return ((x = r.value) == null ? void 0 : x.attributes.assetType) || go;
15484
15485
  }), c = _(() => d.value === Xe.Image), u = _(() => r.value && r.value.mainFile ? r.value.mainFile : null), f = () => {
15485
15486
  l.value = !0;
15486
- }, { keywordRequired: g, keywordEnabled: v } = vl(d.value, t.extSystem), { authorRequired: q, authorEnabled: h } = hl(d.value, t.extSystem);
15487
+ }, { keywordRequired: q, keywordEnabled: v } = vl(d.value, t.extSystem), { authorRequired: g, authorEnabled: h } = hl(d.value, t.extSystem);
15487
15488
  return (x, F) => V(r) ? (Y(), T(jn, {
15488
15489
  key: 0,
15489
15490
  modelValue: s.value,
@@ -15533,7 +15534,7 @@ const E7 = /* @__PURE__ */ W({
15533
15534
  "data-cy": "custom-field-keywords",
15534
15535
  clearable: "",
15535
15536
  multiple: "",
15536
- required: V(g),
15537
+ required: V(q),
15537
15538
  "validation-scope": V(za)
15538
15539
  }, null, 8, ["modelValue", "ext-system", "label", "required", "validation-scope"])
15539
15540
  ]),
@@ -15570,7 +15571,7 @@ const E7 = /* @__PURE__ */ W({
15570
15571
  "data-cy": "custom-field-authors",
15571
15572
  clearable: "",
15572
15573
  multiple: "",
15573
- required: V(q),
15574
+ required: V(g),
15574
15575
  "validation-scope": V(za)
15575
15576
  }, null, 8, ["modelValue", "ext-system", "label", "author-conflicts", "required", "validation-scope"])
15576
15577
  ]),
@@ -15766,27 +15767,27 @@ const E7 = /* @__PURE__ */ W({
15766
15767
  extSystem: {}
15767
15768
  },
15768
15769
  setup(a) {
15769
- const t = a, { t: e } = ee(), s = Aa(), { asset: i, updateUploadStore: r, mainFileSingleUse: o } = _t(s), l = ia(), n = S(!1), { showRecordWas: d, showValidationError: c, showErrorsDefault: u } = He(), f = ma({ $scope: za, $stopPropagation: !0 }), { damClient: g } = ot(), v = async () => {
15770
+ const t = a, { t: e } = ee(), s = Aa(), { asset: i, updateUploadStore: r, mainFileSingleUse: o } = _t(s), l = ia(), n = S(!1), { showRecordWas: d, showValidationError: c, showErrorsDefault: u } = He(), f = ma({ $scope: za, $stopPropagation: !0 }), { damClient: q } = ot(), v = async () => {
15770
15771
  if (!te(i.value)) {
15771
15772
  if (n.value = !0, f.value.$touch(), f.value.$invalid) {
15772
15773
  c(), n.value = !1;
15773
15774
  return;
15774
15775
  }
15775
15776
  try {
15776
- await Hv(g, i.value, t.extSystem, o.value), r.value && !te(i.value) && await l.updateFromDetail(i.value), d("updated");
15777
- } catch (q) {
15778
- u(q);
15777
+ await Hv(q, i.value, t.extSystem, o.value), r.value && !te(i.value) && await l.updateFromDetail(i.value), d("updated");
15778
+ } catch (g) {
15779
+ u(g);
15779
15780
  } finally {
15780
15781
  n.value = !1;
15781
15782
  }
15782
15783
  }
15783
15784
  };
15784
- return (q, h) => {
15785
+ return (g, h) => {
15785
15786
  const x = $e("ABtnPrimary");
15786
15787
  return Y(), R(ge, null, [
15787
- q.isActive ? (Y(), T(Vl, {
15788
+ g.isActive ? (Y(), T(Vl, {
15788
15789
  key: 0,
15789
- "queue-key": q.queueKey
15790
+ "queue-key": g.queueKey
15790
15791
  }, {
15791
15792
  default: p(() => [
15792
15793
  m(x, {
@@ -15804,7 +15805,7 @@ const E7 = /* @__PURE__ */ W({
15804
15805
  ]),
15805
15806
  _: 1
15806
15807
  }, 8, ["queue-key"])) : j("", !0),
15807
- m(B7, { "ext-system": q.extSystem }, null, 8, ["ext-system"])
15808
+ m(B7, { "ext-system": g.extSystem }, null, 8, ["ext-system"])
15808
15809
  ], 64);
15809
15810
  };
15810
15811
  }
@@ -15879,7 +15880,7 @@ const E7 = /* @__PURE__ */ W({
15879
15880
  "prepend-icon": "mdi-rotate-right",
15880
15881
  class: "mr-2",
15881
15882
  "data-cy": "button-rotate-right",
15882
- onClick: u[0] || (u[0] = J((g) => n(90), ["stop"]))
15883
+ onClick: u[0] || (u[0] = J((q) => n(90), ["stop"]))
15883
15884
  }, {
15884
15885
  default: p(() => [
15885
15886
  P(k(V(d)("common.damImage.asset.detail.roi.rotate.rotateClockwise")), 1)
@@ -15889,7 +15890,7 @@ const E7 = /* @__PURE__ */ W({
15889
15890
  m(f, {
15890
15891
  "prepend-icon": "mdi-rotate-left",
15891
15892
  "data-cy": "button-rotate-left",
15892
- onClick: u[1] || (u[1] = J((g) => n(270), ["stop"]))
15893
+ onClick: u[1] || (u[1] = J((q) => n(270), ["stop"]))
15893
15894
  }, {
15894
15895
  default: p(() => [
15895
15896
  P(k(V(d)("common.damImage.asset.detail.roi.rotate.rotateCounterclockwise")), 1)
@@ -16543,15 +16544,15 @@ function BY(a) {
16543
16544
  };
16544
16545
  }
16545
16546
  function PY(a, t, e, s) {
16546
- var i = t.aspectRatio, r = t.naturalWidth, o = t.naturalHeight, l = t.rotate, n = l === void 0 ? 0 : l, d = t.scaleX, c = d === void 0 ? 1 : d, u = t.scaleY, f = u === void 0 ? 1 : u, g = e.aspectRatio, v = e.naturalWidth, q = e.naturalHeight, h = s.fillColor, x = h === void 0 ? "transparent" : h, F = s.imageSmoothingEnabled, y = F === void 0 ? !0 : F, X = s.imageSmoothingQuality, A = X === void 0 ? "low" : X, b = s.maxWidth, B = b === void 0 ? 1 / 0 : b, N = s.maxHeight, z = N === void 0 ? 1 / 0 : N, M = s.minWidth, O = M === void 0 ? 0 : M, K = s.minHeight, E = K === void 0 ? 0 : K, I = document.createElement("canvas"), w = I.getContext("2d"), C = ms({
16547
- aspectRatio: g,
16547
+ var i = t.aspectRatio, r = t.naturalWidth, o = t.naturalHeight, l = t.rotate, n = l === void 0 ? 0 : l, d = t.scaleX, c = d === void 0 ? 1 : d, u = t.scaleY, f = u === void 0 ? 1 : u, q = e.aspectRatio, v = e.naturalWidth, g = e.naturalHeight, h = s.fillColor, x = h === void 0 ? "transparent" : h, F = s.imageSmoothingEnabled, y = F === void 0 ? !0 : F, X = s.imageSmoothingQuality, A = X === void 0 ? "low" : X, b = s.maxWidth, B = b === void 0 ? 1 / 0 : b, N = s.maxHeight, z = N === void 0 ? 1 / 0 : N, M = s.minWidth, O = M === void 0 ? 0 : M, K = s.minHeight, E = K === void 0 ? 0 : K, I = document.createElement("canvas"), w = I.getContext("2d"), C = ms({
16548
+ aspectRatio: q,
16548
16549
  width: B,
16549
16550
  height: z
16550
16551
  }), D = ms({
16551
- aspectRatio: g,
16552
+ aspectRatio: q,
16552
16553
  width: O,
16553
16554
  height: E
16554
- }, "cover"), $ = Math.min(C.width, Math.max(D.width, v)), H = Math.min(C.height, Math.max(D.height, q)), G = ms({
16555
+ }, "cover"), $ = Math.min(C.width, Math.max(D.width, v)), H = Math.min(C.height, Math.max(D.height, g)), G = ms({
16555
16556
  aspectRatio: i,
16556
16557
  width: B,
16557
16558
  height: z
@@ -16607,10 +16608,10 @@ function UY(a) {
16607
16608
  }
16608
16609
  }
16609
16610
  if (r) {
16610
- var f = t.getUint16(r, s), g, v;
16611
+ var f = t.getUint16(r, s), q, v;
16611
16612
  for (v = 0; v < f; v += 1)
16612
- if (g = r + v * 12 + 2, t.getUint16(g, s) === 274) {
16613
- g += 8, e = t.getUint16(g, s), t.setUint16(g, 1, s);
16613
+ if (q = r + v * 12 + 2, t.getUint16(q, s) === 274) {
16614
+ q += 8, e = t.getUint16(q, s), t.setUint16(q, 1, s);
16614
16615
  break;
16615
16616
  }
16616
16617
  }
@@ -16693,8 +16694,8 @@ var jY = {
16693
16694
  }
16694
16695
  if (e)
16695
16696
  if (l > (d ? 0 : 1)) {
16696
- var g = i.width - r.width, v = i.height - r.height;
16697
- r.minLeft = Math.min(0, g), r.minTop = Math.min(0, v), r.maxLeft = Math.max(0, g), r.maxTop = Math.max(0, v), d && this.limited && (r.minLeft = Math.min(o.left, o.left + (o.width - r.width)), r.minTop = Math.min(o.top, o.top + (o.height - r.height)), r.maxLeft = o.left, r.maxTop = o.top, l === 2 && (r.width >= i.width && (r.minLeft = Math.min(0, g), r.maxLeft = Math.max(0, g)), r.height >= i.height && (r.minTop = Math.min(0, v), r.maxTop = Math.max(0, v))));
16697
+ var q = i.width - r.width, v = i.height - r.height;
16698
+ r.minLeft = Math.min(0, q), r.minTop = Math.min(0, v), r.maxLeft = Math.max(0, q), r.maxTop = Math.max(0, v), d && this.limited && (r.minLeft = Math.min(o.left, o.left + (o.width - r.width)), r.minTop = Math.min(o.top, o.top + (o.height - r.height)), r.maxLeft = o.left, r.maxTop = o.top, l === 2 && (r.width >= i.width && (r.minLeft = Math.min(0, q), r.maxLeft = Math.max(0, q)), r.height >= i.height && (r.minTop = Math.min(0, v), r.maxTop = Math.max(0, v))));
16698
16699
  } else
16699
16700
  r.minLeft = -r.width, r.minTop = -r.height, r.maxLeft = i.width, r.maxTop = i.height;
16700
16701
  },
@@ -16792,10 +16793,10 @@ var jY = {
16792
16793
  translateX: -n,
16793
16794
  translateY: -d
16794
16795
  }, t)))), ft(this.previews, function(c) {
16795
- var u = On(c, Cr), f = u.width, g = u.height, v = f, q = g, h = 1;
16796
- i && (h = f / i, q = r * h), r && q > g && (h = g / r, v = i * h, q = g), cs(c, {
16796
+ var u = On(c, Cr), f = u.width, q = u.height, v = f, g = q, h = 1;
16797
+ i && (h = f / i, g = r * h), r && g > q && (h = q / r, v = i * h, g = q), cs(c, {
16797
16798
  width: v,
16798
- height: q
16799
+ height: g
16799
16800
  }), cs(c.getElementsByTagName("img")[0], et({
16800
16801
  width: o * h,
16801
16802
  height: l * h
@@ -16881,18 +16882,18 @@ var jY = {
16881
16882
  }
16882
16883
  }, ZY = {
16883
16884
  change: function(t) {
16884
- var e = this.options, s = this.canvasData, i = this.containerData, r = this.cropBoxData, o = this.pointers, l = this.action, n = e.aspectRatio, d = r.left, c = r.top, u = r.width, f = r.height, g = d + u, v = c + f, q = 0, h = 0, x = i.width, F = i.height, y = !0, X;
16885
- !n && t.shiftKey && (n = u && f ? u / f : 1), this.limited && (q = r.minLeft, h = r.minTop, x = q + Math.min(i.width, s.width, s.left + s.width), F = h + Math.min(i.height, s.height, s.top + s.height));
16885
+ var e = this.options, s = this.canvasData, i = this.containerData, r = this.cropBoxData, o = this.pointers, l = this.action, n = e.aspectRatio, d = r.left, c = r.top, u = r.width, f = r.height, q = d + u, v = c + f, g = 0, h = 0, x = i.width, F = i.height, y = !0, X;
16886
+ !n && t.shiftKey && (n = u && f ? u / f : 1), this.limited && (g = r.minLeft, h = r.minTop, x = g + Math.min(i.width, s.width, s.left + s.width), F = h + Math.min(i.height, s.height, s.top + s.height));
16886
16887
  var A = o[Object.keys(o)[0]], b = {
16887
16888
  x: A.endX - A.startX,
16888
16889
  y: A.endY - A.startY
16889
16890
  }, B = function(z) {
16890
16891
  switch (z) {
16891
16892
  case Cs:
16892
- g + b.x > x && (b.x = x - g);
16893
+ q + b.x > x && (b.x = x - q);
16893
16894
  break;
16894
16895
  case xs:
16895
- d + b.x < q && (b.x = q - d);
16896
+ d + b.x < g && (b.x = g - d);
16896
16897
  break;
16897
16898
  case ts:
16898
16899
  c + b.y < h && (b.y = h - c);
@@ -16907,28 +16908,28 @@ var jY = {
16907
16908
  d += b.x, c += b.y;
16908
16909
  break;
16909
16910
  case Cs:
16910
- if (b.x >= 0 && (g >= x || n && (c <= h || v >= F))) {
16911
+ if (b.x >= 0 && (q >= x || n && (c <= h || v >= F))) {
16911
16912
  y = !1;
16912
16913
  break;
16913
16914
  }
16914
16915
  B(Cs), u += b.x, u < 0 && (l = xs, u = -u, d -= u), n && (f = u / n, c += (r.height - f) / 2);
16915
16916
  break;
16916
16917
  case ts:
16917
- if (b.y <= 0 && (c <= h || n && (d <= q || g >= x))) {
16918
+ if (b.y <= 0 && (c <= h || n && (d <= g || q >= x))) {
16918
16919
  y = !1;
16919
16920
  break;
16920
16921
  }
16921
16922
  B(ts), f -= b.y, c += b.y, f < 0 && (l = js, f = -f, c -= f), n && (u = f * n, d += (r.width - u) / 2);
16922
16923
  break;
16923
16924
  case xs:
16924
- if (b.x <= 0 && (d <= q || n && (c <= h || v >= F))) {
16925
+ if (b.x <= 0 && (d <= g || n && (c <= h || v >= F))) {
16925
16926
  y = !1;
16926
16927
  break;
16927
16928
  }
16928
16929
  B(xs), u -= b.x, d += b.x, u < 0 && (l = Cs, u = -u, d -= u), n && (f = u / n, c += (r.height - f) / 2);
16929
16930
  break;
16930
16931
  case js:
16931
- if (b.y >= 0 && (v >= F || n && (d <= q || g >= x))) {
16932
+ if (b.y >= 0 && (v >= F || n && (d <= g || q >= x))) {
16932
16933
  y = !1;
16933
16934
  break;
16934
16935
  }
@@ -16936,46 +16937,46 @@ var jY = {
16936
16937
  break;
16937
16938
  case Ci:
16938
16939
  if (n) {
16939
- if (b.y <= 0 && (c <= h || g >= x)) {
16940
+ if (b.y <= 0 && (c <= h || q >= x)) {
16940
16941
  y = !1;
16941
16942
  break;
16942
16943
  }
16943
16944
  B(ts), f -= b.y, c += b.y, u = f * n;
16944
16945
  } else
16945
- B(ts), B(Cs), b.x >= 0 ? g < x ? u += b.x : b.y <= 0 && c <= h && (y = !1) : u += b.x, b.y <= 0 ? c > h && (f -= b.y, c += b.y) : (f -= b.y, c += b.y);
16946
+ B(ts), B(Cs), b.x >= 0 ? q < x ? u += b.x : b.y <= 0 && c <= h && (y = !1) : u += b.x, b.y <= 0 ? c > h && (f -= b.y, c += b.y) : (f -= b.y, c += b.y);
16946
16947
  u < 0 && f < 0 ? (l = ki, f = -f, u = -u, c -= f, d -= u) : u < 0 ? (l = xi, u = -u, d -= u) : f < 0 && (l = wi, f = -f, c -= f);
16947
16948
  break;
16948
16949
  case xi:
16949
16950
  if (n) {
16950
- if (b.y <= 0 && (c <= h || d <= q)) {
16951
+ if (b.y <= 0 && (c <= h || d <= g)) {
16951
16952
  y = !1;
16952
16953
  break;
16953
16954
  }
16954
16955
  B(ts), f -= b.y, c += b.y, u = f * n, d += r.width - u;
16955
16956
  } else
16956
- B(ts), B(xs), b.x <= 0 ? d > q ? (u -= b.x, d += b.x) : b.y <= 0 && c <= h && (y = !1) : (u -= b.x, d += b.x), b.y <= 0 ? c > h && (f -= b.y, c += b.y) : (f -= b.y, c += b.y);
16957
+ B(ts), B(xs), b.x <= 0 ? d > g ? (u -= b.x, d += b.x) : b.y <= 0 && c <= h && (y = !1) : (u -= b.x, d += b.x), b.y <= 0 ? c > h && (f -= b.y, c += b.y) : (f -= b.y, c += b.y);
16957
16958
  u < 0 && f < 0 ? (l = wi, f = -f, u = -u, c -= f, d -= u) : u < 0 ? (l = Ci, u = -u, d -= u) : f < 0 && (l = ki, f = -f, c -= f);
16958
16959
  break;
16959
16960
  case ki:
16960
16961
  if (n) {
16961
- if (b.x <= 0 && (d <= q || v >= F)) {
16962
+ if (b.x <= 0 && (d <= g || v >= F)) {
16962
16963
  y = !1;
16963
16964
  break;
16964
16965
  }
16965
16966
  B(xs), u -= b.x, d += b.x, f = u / n;
16966
16967
  } else
16967
- B(js), B(xs), b.x <= 0 ? d > q ? (u -= b.x, d += b.x) : b.y >= 0 && v >= F && (y = !1) : (u -= b.x, d += b.x), b.y >= 0 ? v < F && (f += b.y) : f += b.y;
16968
+ B(js), B(xs), b.x <= 0 ? d > g ? (u -= b.x, d += b.x) : b.y >= 0 && v >= F && (y = !1) : (u -= b.x, d += b.x), b.y >= 0 ? v < F && (f += b.y) : f += b.y;
16968
16969
  u < 0 && f < 0 ? (l = Ci, f = -f, u = -u, c -= f, d -= u) : u < 0 ? (l = wi, u = -u, d -= u) : f < 0 && (l = xi, f = -f, c -= f);
16969
16970
  break;
16970
16971
  case wi:
16971
16972
  if (n) {
16972
- if (b.x >= 0 && (g >= x || v >= F)) {
16973
+ if (b.x >= 0 && (q >= x || v >= F)) {
16973
16974
  y = !1;
16974
16975
  break;
16975
16976
  }
16976
16977
  B(Cs), u += b.x, f = u / n;
16977
16978
  } else
16978
- B(js), B(Cs), b.x >= 0 ? g < x ? u += b.x : b.y >= 0 && v >= F && (y = !1) : u += b.x, b.y >= 0 ? v < F && (f += b.y) : f += b.y;
16979
+ B(js), B(Cs), b.x >= 0 ? q < x ? u += b.x : b.y >= 0 && v >= F && (y = !1) : u += b.x, b.y >= 0 ? v < F && (f += b.y) : f += b.y;
16979
16980
  u < 0 && f < 0 ? (l = xi, f = -f, u = -u, c -= f, d -= u) : u < 0 ? (l = ki, u = -u, d -= u) : f < 0 && (l = Ci, f = -f, c -= f);
16980
16981
  break;
16981
16982
  case Qc:
@@ -17090,11 +17091,11 @@ var jY = {
17090
17091
  }) === !1)
17091
17092
  return this;
17092
17093
  if (s) {
17093
- var f = this.pointers, g = lm(this.cropper), v = f && Object.keys(f).length ? $Y(f) : {
17094
+ var f = this.pointers, q = lm(this.cropper), v = f && Object.keys(f).length ? $Y(f) : {
17094
17095
  pageX: s.pageX,
17095
17096
  pageY: s.pageY
17096
17097
  };
17097
- r.left -= (c - o) * ((v.pageX - g.left - r.left) / o), r.top -= (u - l) * ((v.pageY - g.top - r.top) / l);
17098
+ r.left -= (c - o) * ((v.pageX - q.left - r.left) / o), r.top -= (u - l) * ((v.pageY - q.top - r.top) / l);
17098
17099
  } else ei(e) && Ee(e.x) && Ee(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);
17099
17100
  r.width = c, r.height = u, this.renderCanvas(!0);
17100
17101
  }
@@ -17266,14 +17267,14 @@ var jY = {
17266
17267
  aspectRatio: c,
17267
17268
  width: t.minWidth || 0,
17268
17269
  height: t.minHeight || 0
17269
- }, "cover"), g = ms({
17270
+ }, "cover"), q = ms({
17270
17271
  aspectRatio: c,
17271
17272
  width: t.width || (d !== 1 ? s.width : l),
17272
17273
  height: t.height || (d !== 1 ? s.height : n)
17273
- }), v = g.width, q = g.height;
17274
- v = Math.min(u.width, Math.max(f.width, v)), q = Math.min(u.height, Math.max(f.height, q));
17274
+ }), v = q.width, g = q.height;
17275
+ v = Math.min(u.width, Math.max(f.width, v)), g = Math.min(u.height, Math.max(f.height, g));
17275
17276
  var h = document.createElement("canvas"), x = h.getContext("2d");
17276
- h.width = ii(v), h.height = ii(q), x.fillStyle = t.fillColor || "transparent", x.fillRect(0, 0, v, q);
17277
+ h.width = ii(v), h.height = ii(g), x.fillStyle = t.fillColor || "transparent", x.fillRect(0, 0, v, g);
17277
17278
  var F = t.imageSmoothingEnabled, y = F === void 0 ? !0 : F, X = t.imageSmoothingQuality;
17278
17279
  x.imageSmoothingEnabled = y, X && (x.imageSmoothingQuality = X);
17279
17280
  var A = s.width, b = s.height, B = r, N = o, z, M, O, K, E, I;
@@ -17521,11 +17522,11 @@ const eX = { class: "d-flex flex-column" }, tX = {
17521
17522
  return (f = s.value) == null ? void 0 : f.getData();
17522
17523
  },
17523
17524
  setData: (f) => {
17524
- var g;
17525
- return (g = s.value) == null ? void 0 : g.setData(f);
17525
+ var q;
17526
+ return (q = s.value) == null ? void 0 : q.setData(f);
17526
17527
  }
17527
17528
  }), Yt(() => {
17528
- const { containerStyle: f, src: g, alt: v, imgStyle: q, ...h } = e, x = h, F = {};
17529
+ const { containerStyle: f, src: q, alt: v, imgStyle: g, ...h } = e, x = h, F = {};
17529
17530
  for (const y in h)
17530
17531
  Object.prototype.hasOwnProperty.call(x, y) && x[y] !== void 0 && (F[y] = x[y]);
17531
17532
  Jt(() => {
@@ -17535,7 +17536,7 @@ const eX = { class: "d-flex flex-column" }, tX = {
17535
17536
  });
17536
17537
  }), so(() => {
17537
17538
  n();
17538
- }), (f, g) => (Y(), R("div", eX, [
17539
+ }), (f, q) => (Y(), R("div", eX, [
17539
17540
  r.value ? (Y(), R("div", tX, [
17540
17541
  m(tt, { indeterminate: "" })
17541
17542
  ])) : j("", !0),
@@ -17556,8 +17557,8 @@ const eX = { class: "d-flex flex-column" }, tX = {
17556
17557
  __name: "AssetImageRoiSelect",
17557
17558
  setup(a) {
17558
17559
  const { showRecordWas: t, showErrorsDefault: e } = He(), s = { overflow: "hidden", maxHeight: "calc(100vh - 160px)" }, i = Uc(), { damClient: r } = ot(), o = S(null), l = _(() => {
17559
- var q;
17560
- return i.imageFile && ((q = i.imageFile.links) != null && q.image_detail) ? i.imageFile.links.image_detail.url : "";
17560
+ var g;
17561
+ return i.imageFile && ((g = i.imageFile.links) != null && g.image_detail) ? i.imageFile.links.image_detail.url : "";
17561
17562
  }), n = () => {
17562
17563
  o.value && o.value.enable();
17563
17564
  }, d = () => {
@@ -17565,24 +17566,24 @@ const eX = { class: "d-flex flex-column" }, tX = {
17565
17566
  }, c = () => {
17566
17567
  if (o.value && i.roi && i.imageFile) {
17567
17568
  n();
17568
- const q = dY(
17569
+ const g = dY(
17569
17570
  o.value,
17570
17571
  i.roi,
17571
17572
  i.imageFile.imageAttributes.width,
17572
17573
  i.imageFile.imageAttributes.height
17573
17574
  );
17574
- o.value.setData(q), d();
17575
+ o.value.setData(g), d();
17575
17576
  }
17576
17577
  }, u = async () => {
17577
17578
  if (o.value && i.roi && i.imageFile) {
17578
- const q = uY(
17579
+ const g = uY(
17579
17580
  o.value,
17580
17581
  i.roi,
17581
17582
  i.imageFile.imageAttributes.width,
17582
17583
  i.imageFile.imageAttributes.height
17583
17584
  );
17584
17585
  try {
17585
- i.showLoader(), await j7(r, q.id, q), t("updated"), setTimeout(() => {
17586
+ i.showLoader(), await j7(r, g.id, g), t("updated"), setTimeout(() => {
17586
17587
  i.forceReloadRoiPreviews();
17587
17588
  }, 2e3);
17588
17589
  } catch (h) {
@@ -17593,12 +17594,12 @@ const eX = { class: "d-flex flex-column" }, tX = {
17593
17594
  }
17594
17595
  }, f = () => {
17595
17596
  c(), n();
17596
- }, g = () => {
17597
+ }, q = () => {
17597
17598
  u();
17598
17599
  }, v = _(() => !!(i.imageFile && l.value.length > 0 && !i.loader));
17599
17600
  return so(() => {
17600
17601
  o.value && (o.value.destroy(), o.value = null);
17601
- }), (q, h) => v.value ? (Y(), T(sX, {
17602
+ }), (g, h) => v.value ? (Y(), T(sX, {
17602
17603
  key: V(i).timestampCropper,
17603
17604
  ref_key: "cropper",
17604
17605
  ref: o,
@@ -17607,7 +17608,7 @@ const eX = { class: "d-flex flex-column" }, tX = {
17607
17608
  "check-cross-origin": !1,
17608
17609
  "container-style": s,
17609
17610
  ready: f,
17610
- cropend: g,
17611
+ cropend: q,
17611
17612
  src: l.value,
17612
17613
  "view-mode": 1,
17613
17614
  "zoom-on-wheel": !1,
@@ -17635,7 +17636,7 @@ const eX = { class: "d-flex flex-column" }, tX = {
17635
17636
  }, f = _(() => {
17636
17637
  var A;
17637
17638
  return ((A = i.value) == null ? void 0 : A.attributes.assetType) || go;
17638
- }), g = _(() => i.value ? i.value.attributes.assetStatus : Fo), v = _(() => f.value === Xe.Image), q = _(() => f.value === Xe.Video), h = _(() => f.value === Xe.Audio), x = _(() => f.value === Xe.Document), F = _(() => {
17639
+ }), q = _(() => i.value ? i.value.attributes.assetStatus : Fo), v = _(() => f.value === Xe.Image), g = _(() => f.value === Xe.Video), h = _(() => f.value === Xe.Audio), x = _(() => f.value === Xe.Document), F = _(() => {
17639
17640
  var A;
17640
17641
  return (A = i.value) != null && A.mainFile && i.value.mainFile.links && i.value.mainFile.links.image_detail ? {
17641
17642
  url: i.value.mainFile.links.image_detail.url + "?random=" + Date.now(),
@@ -17736,7 +17737,7 @@ const eX = { class: "d-flex flex-column" }, tX = {
17736
17737
  ])) : (Y(), R("div", cX, [
17737
17738
  m(ml, {
17738
17739
  "asset-type": f.value,
17739
- "asset-status": g.value,
17740
+ "asset-status": q.value,
17740
17741
  src: F.value.url,
17741
17742
  "background-color": F.value.bgColor,
17742
17743
  width: F.value.width,
@@ -17753,11 +17754,11 @@ const eX = { class: "d-flex flex-column" }, tX = {
17753
17754
  "queue-key": A.queueKey,
17754
17755
  "ext-system": A.extSystem,
17755
17756
  "asset-id": V(i).id,
17756
- "is-video": q.value,
17757
+ "is-video": g.value,
17757
17758
  "is-audio": h.value,
17758
17759
  "is-image": v.value,
17759
17760
  "is-document": x.value,
17760
- "asset-status": g.value,
17761
+ "asset-status": q.value,
17761
17762
  "asset-type": f.value,
17762
17763
  "asset-main-file-status": X.value ? X.value.fileAttributes.status : void 0,
17763
17764
  "asset-main-file-fail-reason": X.value ? X.value.fileAttributes.failReason : void 0
@@ -17789,7 +17790,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
17789
17790
  extSystem: {}
17790
17791
  },
17791
17792
  setup(a) {
17792
- const t = a, { t: e } = ee(), s = S(["metadata", "file"]), i = Aa(), { asset: r, authorConflicts: o, metadataAreTouched: l, mainFileSingleUse: n } = _t(i), d = ia(), c = _(() => d.getQueueItems(t.queueKey)), u = _(() => c.value[0] ?? null), f = _(() => Xe.Image), g = _(() => f.value === Xe.Image), v = _(() => r.value && r.value.mainFile ? r.value.mainFile : null), q = () => {
17793
+ const t = a, { t: e } = ee(), s = S(["metadata", "file"]), i = Aa(), { asset: r, authorConflicts: o, metadataAreTouched: l, mainFileSingleUse: n } = _t(i), d = ia(), c = _(() => d.getQueueItems(t.queueKey)), u = _(() => c.value[0] ?? null), f = _(() => Xe.Image), q = _(() => f.value === Xe.Image), v = _(() => r.value && r.value.mainFile ? r.value.mainFile : null), g = () => {
17793
17794
  l.value = !0;
17794
17795
  }, { keywordRequired: h, keywordEnabled: x } = vl(f.value, t.extSystem), { authorRequired: F, authorEnabled: y } = hl(f.value, t.extSystem);
17795
17796
  return (X, A) => u.value ? (Y(), T(jn, {
@@ -17818,7 +17819,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
17818
17819
  "onUpdate:modelValue": A[3] || (A[3] = (b) => u.value.customData = b),
17819
17820
  "ext-system": X.extSystem,
17820
17821
  "asset-type": f.value,
17821
- onAnyChange: q
17822
+ onAnyChange: g
17822
17823
  }, {
17823
17824
  "after-pinned": p(() => [
17824
17825
  V(x) ? (Y(), T(ve, {
@@ -17838,7 +17839,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
17838
17839
  modelValue: u.value.keywords,
17839
17840
  "onUpdate:modelValue": [
17840
17841
  A[0] || (A[0] = (b) => u.value.keywords = b),
17841
- q
17842
+ g
17842
17843
  ],
17843
17844
  label: V(e)("common.damImage.asset.model.keywords"),
17844
17845
  "data-cy": "custom-field-keywords",
@@ -17875,7 +17876,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
17875
17876
  modelValue: u.value.authors,
17876
17877
  "onUpdate:modelValue": [
17877
17878
  A[1] || (A[1] = (b) => u.value.authors = b),
17878
- q
17879
+ g
17879
17880
  ],
17880
17881
  label: V(e)("common.damImage.asset.model.authors"),
17881
17882
  "author-conflicts": V(o),
@@ -18059,7 +18060,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
18059
18060
  ]),
18060
18061
  _: 1
18061
18062
  }),
18062
- g.value && V(or)(v.value) ? (Y(), T(Lc, {
18063
+ q.value && V(or)(v.value) ? (Y(), T(Lc, {
18063
18064
  key: 0,
18064
18065
  file: v.value
18065
18066
  }, null, 8, ["file"])) : j("", !0)
@@ -18269,7 +18270,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
18269
18270
  }, 8, ["data-cy", "width", "height"]),
18270
18271
  m(Vt, {
18271
18272
  modelValue: i.value,
18272
- "onUpdate:modelValue": c[0] || (c[0] = (g) => i.value = g),
18273
+ "onUpdate:modelValue": c[0] || (c[0] = (q) => i.value = q),
18273
18274
  width: 500
18274
18275
  }, {
18275
18276
  default: p(() => [
@@ -18356,7 +18357,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
18356
18357
  },
18357
18358
  emits: ["onApply"],
18358
18359
  setup(a, { emit: t }) {
18359
- const e = a, s = t, { showErrorsDefault: i, showRecordWas: r } = He(), { t: o } = ee(), { toolbarColor: l } = er(), n = Aa(), { activeTab: d, loading: c, asset: u } = _t(n), f = S(!1), g = ia(), { uploadQueueDialog: v } = To(), q = _(() => g.getQueueItems(e.queueKey)), h = _(() => q.value[0] ?? null), x = _(() => !h.value || !h.value.assetId ? null : C.value && u.value ? u.value : {
18360
+ const e = a, s = t, { showErrorsDefault: i, showRecordWas: r } = He(), { t: o } = ee(), { toolbarColor: l } = er(), n = Aa(), { activeTab: d, loading: c, asset: u } = _t(n), f = S(!1), q = ia(), { uploadQueueDialog: v } = To(), g = _(() => q.getQueueItems(e.queueKey)), h = _(() => g.value[0] ?? null), x = _(() => !h.value || !h.value.assetId ? null : C.value && u.value ? u.value : {
18360
18361
  id: h.value.assetId,
18361
18362
  texts: {
18362
18363
  displayTitle: ""
@@ -18423,27 +18424,27 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
18423
18424
  var Ae;
18424
18425
  return (Ae = h.value) == null ? void 0 : Ae.progress.progressPercent;
18425
18426
  }), { damClient: G } = ot(), Z = async () => {
18426
- g.stopUpload(e.queueKey), n.setAsset(null), v.value = null;
18427
- }, ae = _(() => g.getQueueTotalCount(e.queueKey)), fe = _(() => g.getQueueProcessedCount(e.queueKey)), Ve = _(() => ae.value > fe.value), Ke = async () => {
18428
- if (q.value.length !== 0)
18427
+ q.stopUpload(e.queueKey), n.setAsset(null), v.value = null;
18428
+ }, ae = _(() => q.getQueueTotalCount(e.queueKey)), fe = _(() => q.getQueueProcessedCount(e.queueKey)), Ve = _(() => ae.value > fe.value), Ke = async () => {
18429
+ if (g.value.length !== 0)
18429
18430
  try {
18430
- await Wr(G, q.value), r("updated");
18431
+ await Wr(G, g.value), r("updated");
18431
18432
  } catch (Ae) {
18432
18433
  i(Ae);
18433
18434
  } finally {
18434
18435
  }
18435
18436
  }, Re = async () => {
18436
18437
  var ue;
18437
- if (q.value.length === 0) return;
18438
+ if (g.value.length === 0) return;
18438
18439
  let Ae = "", Q = "";
18439
18440
  try {
18440
- console.log(q.value);
18441
- const ce = await Wr(G, q.value, n.mainFileSingleUse);
18441
+ console.log(g.value);
18442
+ const ce = await Wr(G, g.value, n.mainFileSingleUse);
18442
18443
  if (!ce[0])
18443
18444
  throw new Error("Fatal error updating asset metadata");
18444
18445
  r("updated"), Ut((ue = ce[0].customData) == null ? void 0 : ue.description) && (Ae = ce[0].customData.description.trim()), ce[0].authors.length > 0 && (Q = (await gi(G, e.extSystem, ce[0].authors)).map((Oe) => Oe.name).join(", ")), s(
18445
18446
  "onApply",
18446
- q.value.map((we) => ({
18447
+ g.value.map((we) => ({
18447
18448
  texts: {
18448
18449
  description: Ae,
18449
18450
  source: Q
@@ -18646,15 +18647,15 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
18646
18647
  i("filesInput", h);
18647
18648
  return;
18648
18649
  }
18649
- const q = d(v);
18650
- i("filesInput", q);
18650
+ const g = d(v);
18651
+ i("filesInput", g);
18651
18652
  }, u = (v) => {
18652
18653
  c(v);
18653
18654
  }, f = (v) => {
18654
18655
  var h;
18655
- const q = v;
18656
- i("change", q), c(Array.from(((h = q.target) == null ? void 0 : h.files) ?? []));
18657
- }, g = () => {
18656
+ const g = v;
18657
+ i("change", g), c(Array.from(((h = g.target) == null ? void 0 : h.files) ?? []));
18658
+ }, q = () => {
18658
18659
  if (!gn(s.onDropzoneClickCallback)) {
18659
18660
  if (L(s.onDropzoneClickCallback)) {
18660
18661
  n();
@@ -18665,16 +18666,16 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
18665
18666
  };
18666
18667
  return qe(
18667
18668
  () => s.fileInputKey,
18668
- (v, q) => {
18669
- v === q || L(v) || (o.value = v);
18669
+ (v, g) => {
18670
+ v === g || L(v) || (o.value = v);
18670
18671
  }
18671
18672
  ), t({
18672
18673
  activate: n
18673
- }), (v, q) => (Y(), R(ge, null, [
18674
+ }), (v, g) => (Y(), R(ge, null, [
18674
18675
  v.useDropzone ? (Y(), T(ko, {
18675
18676
  key: 0,
18676
18677
  variant: v.dropzoneVariant,
18677
- onOnClick: g,
18678
+ onOnClick: q,
18678
18679
  onOnDrop: u
18679
18680
  }, null, 8, ["variant"])) : de(v.$slots, "activator", {
18680
18681
  key: 1,
@@ -18722,11 +18723,11 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
18722
18723
  "model-value": i.value,
18723
18724
  persistent: "",
18724
18725
  "max-width": 500,
18725
- "onUpdate:modelValue": u[1] || (u[1] = (g) => i.value = g)
18726
+ "onUpdate:modelValue": u[1] || (u[1] = (q) => i.value = q)
18726
18727
  }, {
18727
- activator: p(({ props: g }) => [
18728
- de(c.$slots, "activator", { props: g }, () => [
18729
- m(ie, Et(g, {
18728
+ activator: p(({ props: q }) => [
18729
+ de(c.$slots, "activator", { props: q }, () => [
18730
+ m(ie, Et(q, {
18730
18731
  text: V(o)("common.button.open")
18731
18732
  }), null, 16, ["text"])
18732
18733
  ])
@@ -18757,7 +18758,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
18757
18758
  multiple: c.multiple,
18758
18759
  "use-dropzone": "",
18759
18760
  onFilesInput: n,
18760
- onChange: u[0] || (u[0] = (g) => s("change", g))
18761
+ onChange: u[0] || (u[0] = (q) => s("change", q))
18761
18762
  }, null, 8, ["file-input-key", "accept", "max-sizes", "multiple"])
18762
18763
  ]),
18763
18764
  _: 1
@@ -18848,13 +18849,13 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
18848
18849
  c.value === !0 || s.collabStatus === Ct.Inactive || (n.value(), c.value = !0);
18849
18850
  }, f = (le) => {
18850
18851
  c.value === !1 || s.collabStatus === Ct.Inactive || (l.value(le), c.value = !1);
18851
- }, g = at(
18852
+ }, q = at(
18852
18853
  ur,
18853
18854
  void 0
18854
18855
  );
18855
- if (L(g) || L(g.value))
18856
+ if (L(q) || L(q.value))
18856
18857
  throw new Error("Fatal error, parent component doesn't provide necessary config ext system config.");
18857
- const { t: v } = ee(), { showErrorsDefault: q, showError: h } = He(), x = ir(s.configName), { imageClient: F } = x, { widgetImageToDamImageUrl: y } = dl(x), X = ia(), A = dr(), { uploadQueueDialog: b } = To(), B = S(null), N = S(!1), z = S(!1), M = S(!1), O = S(!1), K = S(!1), E = S(!1), I = _(() => te(r.value)), w = S(""), C = _(() => X.getQueue(s.queueKey)), D = _(() => !te(B.value)), $ = () => {
18858
+ const { t: v } = ee(), { showErrorsDefault: g, showError: h } = He(), x = ir(s.configName), { imageClient: F } = x, { widgetImageToDamImageUrl: y } = dl(x), X = ia(), A = dr(), { uploadQueueDialog: b } = To(), B = S(null), N = S(!1), z = S(!1), M = S(!1), O = S(!1), K = S(!1), E = S(!1), I = _(() => te(r.value)), w = S(""), C = _(() => X.getQueue(s.queueKey)), D = _(() => !te(B.value)), $ = () => {
18858
18859
  A.setImageDetail(ht(B.value)), M.value = !0;
18859
18860
  }, H = () => {
18860
18861
  z.value = !0;
@@ -18866,7 +18867,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
18866
18867
  return ke();
18867
18868
  }, fe = async (le) => {
18868
18869
  u();
18869
- const ke = g.value;
18870
+ const ke = q.value;
18870
18871
  if (!L(ke))
18871
18872
  try {
18872
18873
  await ae(), G.value = ke.extSystem, X.addByFiles(s.queueKey, ke.extSystem, ke.licence, le), b.value = s.queueKey;
@@ -18874,11 +18875,11 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
18874
18875
  h("Unable to lock image widget by current user.");
18875
18876
  }
18876
18877
  }, Ve = (le) => {
18877
- const ke = g.value;
18878
+ const ke = q.value;
18878
18879
  L(ke) || (G.value = ke.extSystem, X.addByFiles(s.queueKey, ke.extSystem, ke.licence, le), b.value = s.queueKey);
18879
18880
  }, { uploadSizes: Ke, uploadAccept: Re } = Xc(
18880
18881
  Xe.Image,
18881
- g.value.extSystemConfig
18882
+ q.value.extSystemConfig
18882
18883
  ), Ae = async (le, ke, Xt = !1) => {
18883
18884
  if (w.value = Ks, le && te(B.value) || le && Xt) {
18884
18885
  B.value = ye(le), B.value && (Ya(s.damWidth) && Ya(s.damHeight) ? w.value = y(ht(B.value), s.damWidth, s.damHeight) : w.value = y(ht(B.value)), s.expandMetadata && A.setImageDetail(ht(B.value)));
@@ -18888,7 +18889,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
18888
18889
  try {
18889
18890
  B.value = await ul(F, ke);
18890
18891
  } catch (Va) {
18891
- q(Va);
18892
+ g(Va);
18892
18893
  }
18893
18894
  te(B.value) || (Ya(s.damWidth) && Ya(s.damHeight) ? w.value = y(ht(B.value), s.damWidth, s.damHeight) : w.value = y(ht(B.value)), s.expandMetadata && A.setImageDetail(ht(B.value)));
18894
18895
  return;
@@ -18919,7 +18920,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
18919
18920
  pa.authors
18920
18921
  )).map((me) => me.name).join(", "));
18921
18922
  } catch (pa) {
18922
- q(pa);
18923
+ g(pa);
18923
18924
  }
18924
18925
  const es = {
18925
18926
  texts: {
@@ -18941,7 +18942,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
18941
18942
  const ke = await Xo(pe, le), Xt = await el(pe, ke.licence);
18942
18943
  Xt.extSystem && (G.value = Xt.extSystem), ce.setAsset(ke);
18943
18944
  } catch (ke) {
18944
- q(ke);
18945
+ g(ke);
18945
18946
  } finally {
18946
18947
  we.value = !1;
18947
18948
  }
@@ -18954,7 +18955,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
18954
18955
  const le = A.imageDetail.id ? await $c(F, A.imageDetail.id, A.imageDetail) : await Mc(F, A.imageDetail);
18955
18956
  M.value = !1, r.value = le.id, A.setImageDetail(null), await Ae(le, le.id, !0), i("afterMetadataSaveSuccess"), l.value(le.id);
18956
18957
  } catch (le) {
18957
- q(le);
18958
+ g(le);
18958
18959
  } finally {
18959
18960
  O.value = !1;
18960
18961
  }
@@ -18965,7 +18966,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
18965
18966
  try {
18966
18967
  await Bc(F, r.value), Q();
18967
18968
  } catch (le) {
18968
- q(le);
18969
+ g(le);
18969
18970
  }
18970
18971
  return;
18971
18972
  }
@@ -19235,11 +19236,11 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
19235
19236
  "queue-key": le.queueKey,
19236
19237
  "ext-system": V(G)
19237
19238
  }, null, 8, ["queue-key", "ext-system"])) : j("", !0),
19238
- V(b) === le.queueKey && V(g) ? (Y(), T(zX, {
19239
+ V(b) === le.queueKey && V(q) ? (Y(), T(zX, {
19239
19240
  key: 1,
19240
19241
  "queue-key": le.queueKey,
19241
- "ext-system": V(g).extSystem,
19242
- "licence-id": V(g).licence,
19242
+ "ext-system": V(q).extSystem,
19243
+ "licence-id": V(q).licence,
19243
19244
  "file-input-key": ((Va = C.value) == null ? void 0 : Va.fileInputKey) ?? -1,
19244
19245
  accept: V(Re),
19245
19246
  "max-sizes": V(Ke),
@@ -19289,7 +19290,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
19289
19290
  getOrLoadDamConfigExtSystemByLicences: u
19290
19291
  } = sa(o), f = Ft(void 0);
19291
19292
  Yt(async () => {
19292
- const q = Rs();
19293
+ const g = Rs();
19293
19294
  if (f.value = await c(s.uploadLicence), L(f.value)) {
19294
19295
  r.value = "error";
19295
19296
  return;
@@ -19299,7 +19300,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
19299
19300
  return;
19300
19301
  }
19301
19302
  const h = [];
19302
- q.initialized.damPrvConfig || h.push(l()), h.push(u(s.selectLicences));
19303
+ g.initialized.damPrvConfig || h.push(l()), h.push(u(s.selectLicences));
19303
19304
  const x = d(f.value.extSystem);
19304
19305
  L(x) && h.push(n(f.value.extSystem));
19305
19306
  try {
@@ -19309,22 +19310,22 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
19309
19310
  }
19310
19311
  r.value !== "error" && (r.value = "ready");
19311
19312
  }), Li(ur, f);
19312
- const g = S(null);
19313
+ const q = S(null);
19313
19314
  return t({
19314
19315
  metadataConfirm: () => {
19315
- var q;
19316
- (q = g.value) == null || q.metadataConfirm();
19316
+ var g;
19317
+ (g = q.value) == null || g.metadataConfirm();
19317
19318
  }
19318
- }), (q, h) => r.value === "ready" ? (Y(), T(rA, Et({
19319
+ }), (g, h) => r.value === "ready" ? (Y(), T(rA, Et({
19319
19320
  key: 0,
19320
19321
  ref_key: "innerComponent",
19321
- ref: g
19322
+ ref: q
19322
19323
  }, s, {
19323
19324
  "onUpdate:modelValue": h[0] || (h[0] = (x) => i("update:modelValue", x)),
19324
19325
  onAfterMetadataSaveSuccess: h[1] || (h[1] = (x) => i("afterMetadataSaveSuccess"))
19325
19326
  }), {
19326
19327
  append: p(({ image: x }) => [
19327
- de(q.$slots, "append", { image: x })
19328
+ de(g.$slots, "append", { image: x })
19328
19329
  ]),
19329
19330
  _: 3
19330
19331
  }, 16)) : r.value === "error" ? (Y(), R("div", oA, " Loading DAM config error ")) : r.value === "uploadNotAllowed" ? (Y(), R("div", nA, " DAM access rights error ")) : (Y(), T(tt, {
@@ -19480,7 +19481,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
19480
19481
  }), { t: n } = ee(), d = [
19481
19482
  Ne.Processing,
19482
19483
  Ne.Loading
19483
- ], c = _(() => d.includes(e.item.status)), u = _(() => e.item.status === Ne.Waiting), f = _(() => !e.disableDoneAnimation && e.item.status === Ne.Uploaded), g = _(() => e.item.status === Ne.Uploading), v = _(() => e.item.progress.progressPercent), q = _(() => e.item.imagePreview ? e.item.imagePreview.url : void 0), h = _(() => e.item.assetType), x = _(() => e.item ? e.item.assetStatus : Fo), F = () => {
19484
+ ], c = _(() => d.includes(e.item.status)), u = _(() => e.item.status === Ne.Waiting), f = _(() => !e.disableDoneAnimation && e.item.status === Ne.Uploaded), q = _(() => e.item.status === Ne.Uploading), v = _(() => e.item.progress.progressPercent), g = _(() => e.item.imagePreview ? e.item.imagePreview.url : void 0), h = _(() => e.item.assetType), x = _(() => e.item ? e.item.assetStatus : Fo), F = () => {
19484
19485
  s("cancelItem", { index: e.index, item: e.item, queueKey: e.queueKey });
19485
19486
  }, y = [
19486
19487
  Ne.Loading,
@@ -19503,9 +19504,9 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
19503
19504
  m(ml, {
19504
19505
  "asset-type": h.value,
19505
19506
  "asset-status": x.value,
19506
- src: q.value,
19507
+ src: g.value,
19507
19508
  "background-color": "#ccc",
19508
- "show-uploading": g.value,
19509
+ "show-uploading": q.value,
19509
19510
  "show-processing": c.value,
19510
19511
  "show-waiting": u.value,
19511
19512
  "show-done": f.value,
@@ -19760,18 +19761,18 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
19760
19761
  throw new Error("Custom form elements must be initialised.");
19761
19762
  const c = _(() => d[e.assetType]);
19762
19763
  return (u, f) => (Y(), R("div", CA, [
19763
- (Y(!0), R(ge, null, je(c.value, (g) => (Y(), T(ve, {
19764
- key: g.id,
19764
+ (Y(!0), R(ge, null, je(c.value, (q) => (Y(), T(ve, {
19765
+ key: q.id,
19765
19766
  dense: "",
19766
19767
  class: "mt-1"
19767
19768
  }, {
19768
19769
  default: p(() => [
19769
19770
  m(oe, null, {
19770
19771
  default: p(() => [
19771
- g.attributes.readonly ? (Y(), R("div", xA)) : (Y(), R("div", wA, [
19772
+ q.attributes.readonly ? (Y(), R("div", xA)) : (Y(), R("div", wA, [
19772
19773
  m(Sn, {
19773
- config: g,
19774
- "model-value": u.modelValue[g.property],
19774
+ config: q,
19775
+ "model-value": u.modelValue[q.property],
19775
19776
  "onUpdate:modelValue": r
19776
19777
  }, null, 8, ["config", "model-value"]),
19777
19778
  m(ie, {
@@ -19779,7 +19780,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
19779
19780
  size: "small",
19780
19781
  variant: "text",
19781
19782
  class: "mr-1",
19782
- onClick: J((v) => o(g.property, u.modelValue[g.property]), ["stop"])
19783
+ onClick: J((v) => o(q.property, u.modelValue[q.property]), ["stop"])
19783
19784
  }, {
19784
19785
  default: p(() => [
19785
19786
  m(re, { icon: "mdi-file-arrow-left-right-outline" }),
@@ -19799,7 +19800,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
19799
19800
  icon: "",
19800
19801
  size: "small",
19801
19802
  variant: "text",
19802
- onClick: J((v) => l(g.property, u.modelValue[g.property]), ["stop"])
19803
+ onClick: J((v) => l(q.property, u.modelValue[q.property]), ["stop"])
19803
19804
  }, {
19804
19805
  default: p(() => [
19805
19806
  m(re, { icon: "mdi-file-replace-outline" }),
@@ -19864,11 +19865,11 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
19864
19865
  n(X);
19865
19866
  }, f = (X) => {
19866
19867
  n(X, !0);
19867
- }, g = () => {
19868
+ }, q = () => {
19868
19869
  c(s.value);
19869
19870
  }, v = () => {
19870
19871
  c(s.value, !0);
19871
- }, q = () => {
19872
+ }, g = () => {
19872
19873
  d(i.value);
19873
19874
  }, h = () => {
19874
19875
  d(i.value, !0);
@@ -19913,7 +19914,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
19913
19914
  h(), v();
19914
19915
  return;
19915
19916
  }
19916
- q(), g();
19917
+ g(), q();
19917
19918
  }, F = () => {
19918
19919
  e.value = { image: {}, video: {}, audio: {}, document: {} }, i.value = [], s.value = [];
19919
19920
  }, y = _(() => l.getQueueItemsTypes(t.queueKey));
@@ -19978,7 +19979,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
19978
19979
  size: "small",
19979
19980
  variant: "text",
19980
19981
  class: "mr-1",
19981
- onClick: J(g, ["stop"])
19982
+ onClick: J(q, ["stop"])
19982
19983
  }, {
19983
19984
  default: p(() => [
19984
19985
  m(re, { icon: "mdi-file-arrow-left-right-outline" }),
@@ -20053,7 +20054,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
20053
20054
  size: "small",
20054
20055
  variant: "text",
20055
20056
  class: "mr-1",
20056
- onClick: J(q, ["stop"])
20057
+ onClick: J(g, ["stop"])
20057
20058
  }, {
20058
20059
  default: p(() => [
20059
20060
  m(re, { icon: "mdi-file-arrow-left-right-outline" }),
@@ -20191,14 +20192,14 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
20191
20192
  r.value.forEach((f) => {
20192
20193
  n(f.keywords), c(f.authors);
20193
20194
  }), d(), u();
20194
- }), (f, g) => (Y(), R("div", {
20195
+ }), (f, q) => (Y(), R("div", {
20195
20196
  class: Fe(["asset-queue-editable", { "asset-queue-editable--sidebar-active": f.massOperations }])
20196
20197
  }, [
20197
20198
  U("div", RA, [
20198
20199
  U("div", OA, [
20199
20200
  m(ve, { class: "dam-upload-queue dam-upload-queue--editable pa-2 mb-5" }, {
20200
20201
  default: p(() => [
20201
- (Y(!0), R(ge, null, je(r.value, (v, q) => (Y(), T(bA, {
20202
+ (Y(!0), R(ge, null, je(r.value, (v, g) => (Y(), T(bA, {
20202
20203
  key: v.key,
20203
20204
  "custom-data": v.customData,
20204
20205
  "onUpdate:customData": (h) => v.customData = h,
@@ -20210,12 +20211,12 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
20210
20211
  "onUpdate:mainFileSingleUse": (h) => v.mainFileSingleUse = h,
20211
20212
  "ext-system": f.extSystem,
20212
20213
  item: v,
20213
- index: q,
20214
+ index: g,
20214
20215
  "queue-key": f.queueKey,
20215
20216
  "disable-done-animation": f.disableDoneAnimation,
20216
20217
  onCancelItem: o,
20217
20218
  onRemoveItem: l,
20218
- onShowDetail: g[0] || (g[0] = (h) => s("showDetail", h))
20219
+ onShowDetail: q[0] || (q[0] = (h) => s("showDetail", h))
20219
20220
  }, null, 8, ["custom-data", "onUpdate:customData", "keywords", "onUpdate:keywords", "authors", "onUpdate:authors", "main-file-single-use", "onUpdate:mainFileSingleUse", "ext-system", "item", "index", "queue-key", "disable-done-animation"]))), 128))
20220
20221
  ]),
20221
20222
  _: 1
@@ -20251,7 +20252,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
20251
20252
  },
20252
20253
  emits: ["onDrop", "onFilesInput", "onApply"],
20253
20254
  setup(a, { emit: t }) {
20254
- const e = a, s = t, { uploadQueueDialog: i, uploadQueueSidebar: r, toggleUploadQueueSidebar: o } = To(), l = dr(), { maxPosition: n } = _t(l), d = ia(), c = _(() => d.getQueueTotalCount(e.queueKey)), u = _(() => d.getQueueItems(e.queueKey)), f = _(() => d.getQueueProcessedCount(e.queueKey)), g = _(() => c.value > f.value), v = _(() => c.value === f.value), { t: q } = ee(), { toolbarColor: h } = er(), x = ma({ $stopPropagation: !0 }), { showRecordWas: F, showValidationError: y, showErrorsDefault: X } = He(), { damClient: A } = ot(), b = S(!1), B = S(!1), N = async () => {
20255
+ const e = a, s = t, { uploadQueueDialog: i, uploadQueueSidebar: r, toggleUploadQueueSidebar: o } = To(), l = dr(), { maxPosition: n } = _t(l), d = ia(), c = _(() => d.getQueueTotalCount(e.queueKey)), u = _(() => d.getQueueItems(e.queueKey)), f = _(() => d.getQueueProcessedCount(e.queueKey)), q = _(() => c.value > f.value), v = _(() => c.value === f.value), { t: g } = ee(), { toolbarColor: h } = er(), x = ma({ $stopPropagation: !0 }), { showRecordWas: F, showValidationError: y, showErrorsDefault: X } = He(), { damClient: A } = ot(), b = S(!1), B = S(!1), N = async () => {
20255
20256
  d.stopUpload(e.queueKey), i.value = null;
20256
20257
  }, z = async () => {
20257
20258
  const D = ht(u.value);
@@ -20356,11 +20357,11 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
20356
20357
  default: p(() => [
20357
20358
  U("div", jA, [
20358
20359
  U("div", null, [
20359
- g.value ? (Y(), R("div", HA, k(V(q)("common.damImage.upload.title")), 1)) : (Y(), R("div", WA, k(V(q)("common.damImage.upload.titleDone")), 1))
20360
+ q.value ? (Y(), R("div", HA, k(V(g)("common.damImage.upload.title")), 1)) : (Y(), R("div", WA, k(V(g)("common.damImage.upload.titleDone")), 1))
20360
20361
  ])
20361
20362
  ]),
20362
20363
  m(it),
20363
- g.value ? (Y(), R("div", GA, [
20364
+ q.value ? (Y(), R("div", GA, [
20364
20365
  m(tt, {
20365
20366
  indeterminate: "",
20366
20367
  color: "primary",
@@ -20368,14 +20369,14 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
20368
20369
  width: "2",
20369
20370
  class: "mr-1"
20370
20371
  }),
20371
- U("div", null, k(V(q)("common.damImage.upload.uploading")) + " " + k(f.value + 1) + "/" + k(c.value), 1)
20372
+ U("div", null, k(V(g)("common.damImage.upload.uploading")) + " " + k(f.value + 1) + "/" + k(c.value), 1)
20372
20373
  ])) : j("", !0),
20373
20374
  U("div", ZA, [
20374
20375
  da(m(Ui, {
20375
20376
  vertical: "",
20376
20377
  class: "mx-4 my-2"
20377
20378
  }, null, 512), [
20378
- [ps, g.value]
20379
+ [ps, q.value]
20379
20380
  ]),
20380
20381
  v.value ? (Y(), T(H, {
20381
20382
  key: 0,
@@ -20387,7 +20388,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
20387
20388
  onClick: J(O, ["stop"])
20388
20389
  }, {
20389
20390
  default: p(() => [
20390
- P(k(V(q)("common.damImage.upload.saveAndApply")), 1)
20391
+ P(k(V(g)("common.damImage.upload.saveAndApply")), 1)
20391
20392
  ]),
20392
20393
  _: 1
20393
20394
  }, 8, ["loading", "disabled"])) : j("", !0),
@@ -20408,7 +20409,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
20408
20409
  location: "bottom"
20409
20410
  }, {
20410
20411
  default: p(() => [
20411
- P(k(V(q)("common.damImage.upload.save")), 1)
20412
+ P(k(V(g)("common.damImage.upload.save")), 1)
20412
20413
  ]),
20413
20414
  _: 1
20414
20415
  })
@@ -20437,7 +20438,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
20437
20438
  location: "bottom"
20438
20439
  }, {
20439
20440
  default: p(() => [
20440
- P(k(V(q)("common.damImage.upload.add")), 1)
20441
+ P(k(V(g)("common.damImage.upload.add")), 1)
20441
20442
  ]),
20442
20443
  _: 1
20443
20444
  })
@@ -20468,7 +20469,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
20468
20469
  location: "bottom"
20469
20470
  }, {
20470
20471
  default: p(() => [
20471
- P(k(V(q)("common.damImage.asset.massOperations.title")), 1)
20472
+ P(k(V(g)("common.damImage.asset.massOperations.title")), 1)
20472
20473
  ]),
20473
20474
  _: 1
20474
20475
  })
@@ -20478,7 +20479,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
20478
20479
  m(fm, {
20479
20480
  "data-cy": "button-close",
20480
20481
  "button-size": 36,
20481
- "is-uploading": g.value,
20482
+ "is-uploading": q.value,
20482
20483
  onConfirm: N
20483
20484
  }, null, 8, ["is-uploading"])
20484
20485
  ])
@@ -20522,7 +20523,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
20522
20523
  );
20523
20524
  if (L(d) || L(d.value))
20524
20525
  throw new Error("Fatal error, parent component doesn't provide necessary config ext system config.");
20525
- const c = ia(), u = _(() => c.getQueueTotalCount(s.queueKey)), f = _(() => u.value === ws), g = () => {
20526
+ const c = ia(), u = _(() => c.getQueueTotalCount(s.queueKey)), f = _(() => u.value === ws), q = () => {
20526
20527
  r.value = !0;
20527
20528
  }, v = async () => {
20528
20529
  if (L(d) || L(d.value))
@@ -20535,13 +20536,13 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
20535
20536
  d.value.licence,
20536
20537
  x
20537
20538
  ), l.value = [], o.value = !1, r.value = !1, i("afterAdd");
20538
- }, q = () => {
20539
+ }, g = () => {
20539
20540
  l.value = [], c.forceReloadFileInput(s.queueKey), r.value = !1;
20540
20541
  };
20541
20542
  return t({
20542
20543
  check: (x) => {
20543
20544
  if (l.value = x, x.length + u.value > ws) {
20544
- g();
20545
+ q();
20545
20546
  return;
20546
20547
  }
20547
20548
  v();
@@ -20559,7 +20560,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
20559
20560
  "data-cy": "delete-panel"
20560
20561
  }, {
20561
20562
  default: p(() => [
20562
- m(It, { onOnCancel: q }, {
20563
+ m(It, { onOnCancel: g }, {
20563
20564
  default: p(() => [
20564
20565
  P(k(V(n)("common.damImage.upload.limits.uploadWarning")), 1)
20565
20566
  ]),
@@ -20582,7 +20583,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
20582
20583
  default: p(() => [
20583
20584
  m(it),
20584
20585
  m(y, {
20585
- onClick: J(q, ["stop"])
20586
+ onClick: J(g, ["stop"])
20586
20587
  }, {
20587
20588
  default: p(() => [
20588
20589
  P(k(V(n)("common.button.cancel")), 1)
@@ -20640,12 +20641,12 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
20640
20641
  );
20641
20642
  if (L(o) || L(o.value))
20642
20643
  throw new Error("Fatal error, parent component doesn't provide necessary config ext system config.");
20643
- const l = ir(s.configName), { imageClient: n } = l, { showErrorsDefault: d, showValidationError: c } = He(), u = S(null), { uploadSizes: f, uploadAccept: g } = Xc(
20644
+ const l = ir(s.configName), { imageClient: n } = l, { showErrorsDefault: d, showValidationError: c } = He(), u = S(null), { uploadSizes: f, uploadAccept: q } = Xc(
20644
20645
  Xe.Image,
20645
20646
  o.value.extSystemConfig
20646
- ), { t: v } = ee(), q = S(!1), h = dr(), { images: x, maxPosition: F } = _t(h), y = async () => {
20647
+ ), { t: v } = ee(), g = S(!1), h = dr(), { images: x, maxPosition: F } = _t(h), y = async () => {
20647
20648
  try {
20648
- q.value = !0;
20649
+ g.value = !0;
20649
20650
  const pe = await Ec(n, s.modelValue);
20650
20651
  h.setImages(
20651
20652
  pe.map((se) => {
@@ -20659,7 +20660,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
20659
20660
  } catch (pe) {
20660
20661
  d(pe);
20661
20662
  } finally {
20662
- q.value = !1;
20663
+ g.value = !1;
20663
20664
  }
20664
20665
  }, X = ia(), A = _(() => X.getQueue(s.queueKey)), { cachedExtSystemId: b } = Io(), { uploadQueueDialog: B } = To(), N = (pe) => {
20665
20666
  var Ye;
@@ -20808,7 +20809,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
20808
20809
  U("div", ry, [
20809
20810
  m(yl, {
20810
20811
  "file-input-key": (Ye = A.value) == null ? void 0 : Ye.fileInputKey,
20811
- accept: V(g),
20812
+ accept: V(q),
20812
20813
  "max-sizes": V(f),
20813
20814
  multiple: "",
20814
20815
  onFilesInput: N
@@ -20862,7 +20863,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
20862
20863
  m(ko, {
20863
20864
  variant: "fill",
20864
20865
  "hover-only": pe.modelValue.length > 0 || V(x).length > 0,
20865
- accept: V(g),
20866
+ accept: V(q),
20866
20867
  "max-sizes": V(f),
20867
20868
  onOnDrop: z,
20868
20869
  onOnClick: se[1] || (se[1] = (lt) => {
@@ -20877,7 +20878,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
20877
20878
  "ext-system": V(o).extSystem,
20878
20879
  "licence-id": V(o).licence,
20879
20880
  "file-input-key": ((nt = A.value) == null ? void 0 : nt.fileInputKey) ?? -1,
20880
- accept: V(g),
20881
+ accept: V(q),
20881
20882
  "max-sizes": V(f),
20882
20883
  multiple: "",
20883
20884
  onOnApply: $
@@ -20926,7 +20927,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
20926
20927
  getOrLoadDamConfigExtSystemByLicences: u
20927
20928
  } = sa(o), f = Ft(void 0);
20928
20929
  Yt(async () => {
20929
- const q = Rs();
20930
+ const g = Rs();
20930
20931
  if (f.value = await c(s.uploadLicence), L(f.value)) {
20931
20932
  r.value = "error";
20932
20933
  return;
@@ -20936,7 +20937,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
20936
20937
  return;
20937
20938
  }
20938
20939
  const h = [];
20939
- q.initialized.damPrvConfig || h.push(l()), h.push(u(s.selectLicences));
20940
+ g.initialized.damPrvConfig || h.push(l()), h.push(u(s.selectLicences));
20940
20941
  const x = d(f.value.extSystem);
20941
20942
  L(x) && h.push(n(f.value.extSystem));
20942
20943
  try {
@@ -20946,13 +20947,13 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
20946
20947
  }
20947
20948
  r.value !== "error" && (r.value = "ready");
20948
20949
  });
20949
- const g = S(null), v = async () => g.value ? await g.value.saveImages() : !1;
20950
+ const q = S(null), v = async () => q.value ? await q.value.saveImages() : !1;
20950
20951
  return Li(ur, f), t({
20951
20952
  saveImages: v
20952
- }), (q, h) => r.value === "ready" ? (Y(), T(ny, Et({
20953
+ }), (g, h) => r.value === "ready" ? (Y(), T(ny, Et({
20953
20954
  key: 0,
20954
20955
  ref_key: "innerComponent",
20955
- ref: g
20956
+ ref: q
20956
20957
  }, s, {
20957
20958
  "onUpdate:modelValue": h[0] || (h[0] = (x) => i("update:modelValue", x))
20958
20959
  }), null, 16)) : r.value === "error" ? (Y(), R("div", ly, " Loading DAM config error ")) : r.value === "uploadNotAllowed" ? (Y(), R("div", dy, " DAM access rights error ")) : (Y(), T(tt, {
@@ -21028,7 +21029,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
21028
21029
  }),
21029
21030
  emits: ["update:modelValue"],
21030
21031
  setup(a, { expose: t }) {
21031
- const e = a, s = Tt(a, "modelValue"), i = S(""), r = S({ description: "", source: "" }), o = S(""), l = S(null), n = S(!0), d = S(!1), c = ir(e.configName), { imageClient: u } = c, { damClient: f } = ot(), { widgetImageToDamImageOriginalUrl: g } = dl(c), { showErrorsDefault: v, showValidationError: q } = He(), { t: h } = ee(), x = (E) => {
21032
+ const e = a, s = Tt(a, "modelValue"), i = S(""), r = S({ description: "", source: "" }), o = S(""), l = S(null), n = S(!0), d = S(!1), c = ir(e.configName), { imageClient: u } = c, { damClient: f } = ot(), { widgetImageToDamImageOriginalUrl: q } = dl(c), { showErrorsDefault: v, showValidationError: g } = He(), { t: h } = ee(), x = (E) => {
21032
21033
  const I = /\/image\/original\/([0-9a-fA-F-]+)\.jpg/, w = E.match(I);
21033
21034
  return w ? w[1] : void 0;
21034
21035
  }, F = (E, I) => I.some((w) => w === E.licence), { required: y, maxLength: X } = Ys(), A = {
@@ -21059,7 +21060,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
21059
21060
  try {
21060
21061
  const w = await B();
21061
21062
  if (b.value.$touch(), b.value.$invalid)
21062
- return q(), Promise.reject("Invalid source or description");
21063
+ return g(), Promise.reject("Invalid source or description");
21063
21064
  const C = {
21064
21065
  texts: {
21065
21066
  description: r.value.description.trim(),
@@ -21079,7 +21080,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
21079
21080
  v(w);
21080
21081
  }
21081
21082
  }, z = () => {
21082
- o.value = g({
21083
+ o.value = q({
21083
21084
  texts: {
21084
21085
  description: "",
21085
21086
  source: ""
@@ -21097,7 +21098,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
21097
21098
  }
21098
21099
  }, O = async (E, I, w = !1) => {
21099
21100
  if (o.value = "", E && te(l.value) || E && w) {
21100
- l.value = ye(E), l.value && (i.value = l.value.dam.damId, o.value = g(ht(l.value)), r.value.description = l.value.texts.description, r.value.source = l.value.texts.source, M());
21101
+ l.value = ye(E), l.value && (i.value = l.value.dam.damId, o.value = q(ht(l.value)), r.value.description = l.value.texts.description, r.value.source = l.value.texts.source, M());
21101
21102
  return;
21102
21103
  }
21103
21104
  if (I) {
@@ -21106,7 +21107,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
21106
21107
  } catch (C) {
21107
21108
  v(C);
21108
21109
  }
21109
- te(l.value) || (i.value = l.value.dam.damId, o.value = g(ht(l.value)), r.value.description = l.value.texts.description, r.value.source = l.value.texts.source, M());
21110
+ te(l.value) || (i.value = l.value.dam.damId, o.value = q(ht(l.value)), r.value.description = l.value.texts.description, r.value.source = l.value.texts.source, M());
21110
21111
  return;
21111
21112
  }
21112
21113
  l.value = null, r.value.description = "", r.value.source = "";
@@ -21255,12 +21256,12 @@ function qy(a, t, e = void 0, s = void 0, i = !1, r = void 0, o = void 0, l = vo
21255
21256
  for (const v of Object.keys(c))
21256
21257
  v in r && (c[v] = r[v]);
21257
21258
  const u = a.map((v) => {
21258
- const q = { ...gy, ...v };
21259
- return L(q.title) && (L(q.title) && Fy.includes(q.key) ? q.title = d("common.model.tracking." + q.key) : L(q.title) && e && s ? q.title = d(e + "." + s + ".model." + q.key) : q.title = ""), q;
21259
+ const g = { ...gy, ...v };
21260
+ return L(g.title) && (L(g.title) && Fy.includes(g.key) ? g.title = d("common.model.tracking." + g.key) : L(g.title) && e && s ? g.title = d(e + "." + s + ".model." + g.key) : g.title = ""), g;
21260
21261
  }), f = _(() => {
21261
21262
  const v = [];
21262
- return l && v.push({ key: "data-table-expand", sortable: !1 }), u.forEach((q) => {
21263
- t.value.includes(q.key) || v.push(q);
21263
+ return l && v.push({ key: "data-table-expand", sortable: !1 }), u.forEach((g) => {
21264
+ t.value.includes(g.key) || v.push(g);
21264
21265
  }), i || v.push({ key: "actions", sortable: !1, fixed: !0 }), v;
21265
21266
  });
21266
21267
  return {
@@ -21278,7 +21279,7 @@ function qy(a, t, e = void 0, s = void 0, i = !1, r = void 0, o = void 0, l = vo
21278
21279
  };
21279
21280
  }
21280
21281
  function pK(a, t, e, s, i, r) {
21281
- const o = S(!1), l = S([]), n = S([]), d = S(!1), { resetFilter: c, submitFilter: u } = pi(), { showErrorsDefault: f } = He(), { columnsVisible: g, pagination: v, updateSortBy: q, columnsAll: h, columnsHidden: x } = qy(
21282
+ const o = S(!1), l = S([]), n = S([]), d = S(!1), { resetFilter: c, submitFilter: u } = pi(), { showErrorsDefault: f } = He(), { columnsVisible: q, pagination: v, updateSortBy: g, columnsAll: h, columnsHidden: x } = qy(
21282
21283
  a,
21283
21284
  t,
21284
21285
  e,
@@ -21286,7 +21287,7 @@ function pK(a, t, e, s, i, r) {
21286
21287
  ), F = () => {
21287
21288
  A(), b();
21288
21289
  }, y = (N) => {
21289
- q(N.sortBy), b();
21290
+ g(N.sortBy), b();
21290
21291
  }, X = async () => {
21291
21292
  d.value = !0, v.page++;
21292
21293
  try {
@@ -21312,7 +21313,7 @@ function pK(a, t, e, s, i, r) {
21312
21313
  items: l,
21313
21314
  selected: n,
21314
21315
  pagination: v,
21315
- columnsVisible: g,
21316
+ columnsVisible: q,
21316
21317
  columnsHidden: x,
21317
21318
  columnsAll: h,
21318
21319
  filterTouched: o,
@@ -21438,18 +21439,18 @@ const XK = (a, t, e = "", s = {}, i = null, r, o, l = {}) => new Promise((n, d)
21438
21439
  }, AK = async (a, t, e = {}, s = "id", i = !0, r = void 0, o = 100, l, n, d = !1, c = {}) => {
21439
21440
  const u = he(r == null ? void 0 : r._elastic) || d ? "/search" : "", f = Ps(s);
21440
21441
  f.rowsPerPage = o, f.sortBy = s, f.descending = i;
21441
- const g = gs(t, e) + u, v = [];
21442
+ const q = gs(t, e) + u, v = [];
21442
21443
  try {
21443
- const q = await a().get(g + Md(f, r), c);
21444
- if (!qs(q.status))
21445
- return Promise.reject(new Ha(q.status));
21446
- if (q.data) {
21447
- const h = q.data;
21444
+ const g = await a().get(q + Md(f, r), c);
21445
+ if (!qs(g.status))
21446
+ return Promise.reject(new Ha(g.status));
21447
+ if (g.data) {
21448
+ const h = g.data;
21448
21449
  if (v.push(...h.data), Mu(h)) {
21449
- if (f.hasNextPage = q.data.hasNextPage, f.hasNextPage)
21450
+ if (f.hasNextPage = g.data.hasNextPage, f.hasNextPage)
21450
21451
  for (; f.hasNextPage; ) {
21451
21452
  f.page++;
21452
- const F = (await a().get(g + Md(f, r), c)).data;
21453
+ const F = (await a().get(q + Md(f, r), c)).data;
21453
21454
  v.push(...F.data), f.hasNextPage = F.hasNextPage;
21454
21455
  }
21455
21456
  } else if (Eu(h)) {
@@ -21459,7 +21460,7 @@ const XK = (a, t, e = "", s = {}, i = null, r, o, l = {}) => new Promise((n, d)
21459
21460
  for (let X = 0; X < F; X++)
21460
21461
  x.push(
21461
21462
  a().get(
21462
- g + Yy(
21463
+ q + Yy(
21463
21464
  f.rowsPerPage,
21464
21465
  X,
21465
21466
  f.sortBy,
@@ -21473,11 +21474,11 @@ const XK = (a, t, e = "", s = {}, i = null, r, o, l = {}) => new Promise((n, d)
21473
21474
  v.push(...X.data.data);
21474
21475
  });
21475
21476
  }
21476
- return f.currentViewCount = q.data.data.length, Promise.resolve(v);
21477
+ return f.currentViewCount = g.data.data.length, Promise.resolve(v);
21477
21478
  }
21478
- return q.status === Na ? Promise.resolve([]) : v;
21479
- } catch (q) {
21480
- return ja(q) ? Promise.reject(new Da(q)) : Ka(q) ? Promise.reject(new Ta(q, l, n, q)) : Wa(q) ? Promise.reject(new Ea(q, q)) : Promise.reject(new xt(q));
21479
+ return g.status === Na ? Promise.resolve([]) : v;
21480
+ } catch (g) {
21481
+ return ja(g) ? Promise.reject(new Da(g)) : Ka(g) ? Promise.reject(new Ta(g, l, n, g)) : Wa(g) ? Promise.reject(new Ea(g, g)) : Promise.reject(new xt(g));
21481
21482
  }
21482
21483
  };
21483
21484
  function yK() {
@@ -23836,7 +23837,7 @@ function $K(a) {
23836
23837
  return a;
23837
23838
  }
23838
23839
  async function BK() {
23839
- (await import("./webfontloader-DIFkx8BO.js").then((t) => t.w)).load({
23840
+ (await import("./webfontloader-DmhUkT6T.js").then((t) => t.w)).load({
23840
23841
  google: {
23841
23842
  families: ["Roboto:100,300,400,500,700,900&display=swap"]
23842
23843
  }
@@ -23894,7 +23895,7 @@ function zK() {
23894
23895
  return {
23895
23896
  initCollab: () => {
23896
23897
  var F, y, X, A, b, B, N, z, M;
23897
- const n = Wn(), d = Qd(), c = eu(), u = iu(), f = au(), g = su(), v = nu(), q = ru(), h = ou(), x = lu();
23898
+ const n = Wn(), d = Qd(), c = eu(), u = iu(), f = au(), q = su(), v = nu(), g = ru(), h = ou(), x = lu();
23898
23899
  i.value || !a.value.enabled || (i.value = ef(a.value.socketUrl, {
23899
23900
  transports: ["websocket"],
23900
23901
  path: "/ws",
@@ -23925,11 +23926,11 @@ function zK() {
23925
23926
  }), (y = i.value) == null || y.on("approvedRequestToJoin", (O) => {
23926
23927
  f.emit({ room: O });
23927
23928
  }), (X = i.value) == null || X.on("rejectedRequestToJoin", (O) => {
23928
- g.emit({ room: O });
23929
+ q.emit({ room: O });
23929
23930
  }), (A = i.value) == null || A.on("requestToTakeModeration", (O, K, E) => {
23930
23931
  v.emit({ room: O, userId: K, timestamp: E });
23931
23932
  }), (b = i.value) == null || b.on("approvedRequestToTakeModeration", (O) => {
23932
- q.emit({ room: O });
23933
+ g.emit({ room: O });
23933
23934
  }), (B = i.value) == null || B.on("rejectedRequestToTakeModeration", (O) => {
23934
23935
  h.emit({ room: O });
23935
23936
  }), (N = i.value) == null || N.on("transferredModeration", () => {
@@ -23967,7 +23968,7 @@ function UK(a, t = !1) {
23967
23968
  x.room !== a || L(F) || L(d.value) || d.value(x.field, F);
23968
23969
  }, f = (x) => {
23969
23970
  d.value = x, c.value = l.on(u);
23970
- }, g = (x, F, y = void 0) => {
23971
+ }, q = (x, F, y = void 0) => {
23971
23972
  !e.value.enabled || L(s.value) || s.value.emit("changeFieldData", a, x, F, () => {
23972
23973
  L(y) || y();
23973
23974
  });
@@ -23986,7 +23987,7 @@ function UK(a, t = !1) {
23986
23987
  }), {
23987
23988
  addCollabAnyDataChangeListener: f,
23988
23989
  unsubscribeCollabAnyDataChangeListener: c,
23989
- changeCollabAnyData: g,
23990
+ changeCollabAnyData: q,
23990
23991
  objectSetDataByField: v,
23991
23992
  acquireCollabAnyLock: (x, F = {}) => {
23992
23993
  var X;
@@ -24689,4 +24690,4 @@ export {
24689
24690
  pD as y,
24690
24691
  ai as z
24691
24692
  };
24692
- //# sourceMappingURL=lib-BG7fcgx4.js.map
24693
+ //# sourceMappingURL=lib-BLpyb9oT.js.map