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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { R as s, S as t, T as o, U as i, V as r, W as l, K as n, d as u, a8 as c, at as A, a9 as m, av as d, e as b, a3 as p, J as D, _ as S, a as T, c as C, ar as F, aq as g, as as y, O as E, G as R, ap as B, aa as L, ai as h, aj as f, au as I, D as U, E as O, C as P, z as _, B as v, F as k, L as N, X as M, A as V, x as w, y as H, u as z, $ as G, v as j, Y as x, t as J, Z as q, w as W, s as K, l as Q, m as X, n as Y, ab as Z, o as $, p as aa, q as ea, j as sa, k as ta, r as oa, P as ia, ao as ra, ak as la, am as na, an as ua, al as ca, ae as Aa, ac as ma, ad as da, I as ba, a5 as pa, H as Da, a7 as Sa, aE as Ta, aF as Ca, aH as Fa, f as ga, h as ya, b as Ea, af as Ra, ag as Ba, ah as La, a6 as ha, i as fa, a0 as Ia, a1 as Ua, a2 as Oa, a4 as Pa, M as _a, aG as va, Q as ka, N as Na, ec as Ma, eh as Va, ee as wa, ek as Ha, em as za, en as Ga, bv as ja, bx as xa, bw as Ja, by as qa, bz as Wa, dp as Ka, e7 as Qa, e6 as Xa, dB as Ya, d$ as Za, e0 as $a, dX as ae, dW as ee, e5 as se, e4 as te, e3 as oe, d_ as ie, bG as re, bH as le, ct as ne, cs as ue, aA as ce, az as Ae, bK as me, bL as de, bI as be, bJ as pe, aB as De, bU as Se, bV as Te, bM as Ce, bN as Fe, ay as ge, bO as ye, bP as Ee, bQ as Re, aw as Be, ax as Le, aC as he, bT as fe, aD as Ie, dq as Ue, bf as Oe, bg as Pe, bi as _e, bj as ve, du as ke, ds as Ne, dw as Me, dx as Ve, dt as we, dr as He, dv as ze, dy as Ge, bq as je, br as xe, bs as Je, bl as qe, bm as We, dA as Ke, dz as Qe, dn as Xe, dm as Ye, aS as Ze, bE as $e, bF as as, bR as es, bS as ss, cW as ts, cX as os, cY as is, cZ as rs, c_ as ls, c$ as ns, d0 as us, d3 as cs, d1 as As, cP as ms, cO as ds, cM as bs, cN as ps, cQ as Ds, bC as Ss, bD as Ts, bA as Cs, bB as Fs, eg as gs, ej as ys, eb as Es, cL as Rs, cS as Bs, cR as Ls, b_ as hs, aP as fs, dY as Is, d8 as Us, er as Os, cH as Ps, cA as _s, cC as vs, cF as ks, cv as Ns, cy as Ms, cx as Vs, cz as ws, cw as Hs, cD as zs, cB as Gs, bd as js, be as xs, aR as Js, bu as qs, cT as Ws, dc as Ks, db as Qs, da as Xs, d9 as Ys, es as Zs, de as $s, dd as at, di as et, dg as st, df as tt, aX as ot, cU as it, cV as rt, eq as lt, e9 as nt, b3 as ut, ea as ct, ef as At, ed as mt, ei as dt, el as bt, c3 as pt, c5 as Dt, e2 as St, e1 as Tt, bp as Ct, c9 as Ft, c6 as gt, b$ as yt, c2 as Et, c0 as Rt, c4 as Bt, ca as Lt, c7 as ht, cc as ft, c1 as It, bo as Ut, cb as Ot, c8 as Pt, cJ as _t, ep as vt, aL as kt, dj as Nt, dk as Mt, dl as Vt, aU as wt, cK as Ht, ch as zt, cg as Gt, ce as jt, cd as xt, cf as Jt, cI as qt, d7 as Wt, cp as Kt, co as Qt, cl as Xt, cj as Yt, ci as Zt, cn as $t, ck as ao, cm as eo, cq as so, cr as to, cG as oo, cu as io, dh as ro, aN as lo, bW as no, d2 as uo, b2 as co, bX as Ao, dK as mo, dP as bo, dS as po, dF as Do, dH as So, dZ as To, dO as Co, dJ as Fo, dD as go, dR as yo, dV as Eo, dM as Ro, dQ as Bo, dT as Lo, dU as ho, dI as fo, dL as Io, dN as Uo, dG as Oo, dE as Po, bc as _o, bt as vo, eo as ko, aY as No, aZ as Mo, b1 as Vo, ba as wo, b7 as Ho, b8 as zo, a_ as Go, e8 as jo, b9 as xo, b6 as Jo, b4 as qo, b0 as Wo, b5 as Ko, aO as Qo, aK as Xo, bh as Yo, bk as Zo, bb as $o, d4 as ai, d5 as ei, d6 as si, aT as ti, bn as oi, aV as ii, aI as ri, aJ as li, bY as ni, bZ as ui, aM as ci, aW as Ai, aQ as mi, a$ as di, dC as bi, cE as pi } from "./lib-BLpyb9oT.js";
1
+ import { R as s, S as t, T as o, U as i, V as r, W as l, K as n, d as u, a8 as c, at as A, a9 as m, av as d, e as b, a3 as p, J as D, _ as S, a as T, c as C, ar as F, aq as g, as as y, O as E, G as R, ap as B, aa as L, ai as h, aj as f, au as I, D as U, E as O, C as P, z as _, B as v, F as k, L as N, X as M, A as V, x as w, y as H, u as z, $ as G, v as j, Y as x, t as J, Z as q, w as W, s as K, l as Q, m as X, n as Y, ab as Z, o as $, p as aa, q as ea, j as sa, k as ta, r as oa, P as ia, ao as ra, ak as la, am as na, an as ua, al as ca, ae as Aa, ac as ma, ad as da, I as ba, a5 as pa, H as Da, a7 as Sa, aE as Ta, aF as Ca, aH as Fa, f as ga, h as ya, b as Ea, af as Ra, ag as Ba, ah as La, a6 as ha, i as fa, a0 as Ia, a1 as Ua, a2 as Oa, a4 as Pa, M as _a, aG as va, Q as ka, N as Na, ec as Ma, eh as Va, ee as wa, ek as Ha, em as za, en as Ga, bv as ja, bx as xa, bw as Ja, by as qa, bz as Wa, dp as Ka, e7 as Qa, e6 as Xa, dB as Ya, d$ as Za, e0 as $a, dX as ae, dW as ee, e5 as se, e4 as te, e3 as oe, d_ as ie, bG as re, bH as le, ct as ne, cs as ue, aA as ce, az as Ae, bK as me, bL as de, bI as be, bJ as pe, aB as De, bU as Se, bV as Te, bM as Ce, bN as Fe, ay as ge, bO as ye, bP as Ee, bQ as Re, aw as Be, ax as Le, aC as he, bT as fe, aD as Ie, dq as Ue, bf as Oe, bg as Pe, bi as _e, bj as ve, du as ke, ds as Ne, dw as Me, dx as Ve, dt as we, dr as He, dv as ze, dy as Ge, bq as je, br as xe, bs as Je, bl as qe, bm as We, dA as Ke, dz as Qe, dn as Xe, dm as Ye, aS as Ze, bE as $e, bF as as, bR as es, bS as ss, cW as ts, cX as os, cY as is, cZ as rs, c_ as ls, c$ as ns, d0 as us, d3 as cs, d1 as As, cP as ms, cO as ds, cM as bs, cN as ps, cQ as Ds, bC as Ss, bD as Ts, bA as Cs, bB as Fs, eg as gs, ej as ys, eb as Es, cL as Rs, cS as Bs, cR as Ls, b_ as hs, aP as fs, dY as Is, d8 as Us, er as Os, cH as Ps, cA as _s, cC as vs, cF as ks, cv as Ns, cy as Ms, cx as Vs, cz as ws, cw as Hs, cD as zs, cB as Gs, bd as js, be as xs, aR as Js, bu as qs, cT as Ws, dc as Ks, db as Qs, da as Xs, d9 as Ys, es as Zs, de as $s, dd as at, di as et, dg as st, df as tt, aX as ot, cU as it, cV as rt, eq as lt, e9 as nt, b3 as ut, ea as ct, ef as At, ed as mt, ei as dt, el as bt, c3 as pt, c5 as Dt, e2 as St, e1 as Tt, bp as Ct, c9 as Ft, c6 as gt, b$ as yt, c2 as Et, c0 as Rt, c4 as Bt, ca as Lt, c7 as ht, cc as ft, c1 as It, bo as Ut, cb as Ot, c8 as Pt, cJ as _t, ep as vt, aL as kt, dj as Nt, dk as Mt, dl as Vt, aU as wt, cK as Ht, ch as zt, cg as Gt, ce as jt, cd as xt, cf as Jt, cI as qt, d7 as Wt, cp as Kt, co as Qt, cl as Xt, cj as Yt, ci as Zt, cn as $t, ck as ao, cm as eo, cq as so, cr as to, cG as oo, cu as io, dh as ro, aN as lo, bW as no, d2 as uo, b2 as co, bX as Ao, dK as mo, dP as bo, dS as po, dF as Do, dH as So, dZ as To, dO as Co, dJ as Fo, dD as go, dR as yo, dV as Eo, dM as Ro, dQ as Bo, dT as Lo, dU as ho, dI as fo, dL as Io, dN as Uo, dG as Oo, dE as Po, bc as _o, bt as vo, eo as ko, aY as No, aZ as Mo, b1 as Vo, ba as wo, b7 as Ho, b8 as zo, a_ as Go, e8 as jo, b9 as xo, b6 as Jo, b4 as qo, b0 as Wo, b5 as Ko, aO as Qo, aK as Xo, bh as Yo, bk as Zo, bb as $o, d4 as ai, d5 as ei, d6 as si, aT as ti, bn as oi, aV as ii, aI as ri, aJ as li, bY as ni, bZ as ui, aM as ci, aW as Ai, aQ as mi, a$ as di, dC as bi, cE as pi } from "./lib-DPp4Rq_S.js";
2
2
  import { useI18n as Si } from "vue-i18n";
3
3
  export {
4
4
  s as AActionCloseButton,
@@ -1,7 +1,7 @@
1
1
  var hm = Object.defineProperty;
2
2
  var Fm = (a, t, e) => t in a ? hm(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
3
3
  var cr = (a, t, e) => Fm(a, typeof t != "symbol" ? t + "" : t, e);
4
- import { defineComponent as W, computed as _, openBlock as Y, createBlock as T, withCtx as p, createTextVNode as P, toDisplayString as k, createElementBlock as R, createVNode as m, normalizeClass as Fe, createCommentVNode as j, renderSlot as de, createElementVNode as U, resolveComponent as $e, withModifiers as J, withDirectives as da, vShow as ps, isProxy as $d, toRaw as ht, isRef as La, unref as V, Fragment as ge, normalizeStyle as Dt, shallowRef as Ft, watch as qe, ref as S, reactive as ea, inject as at, createSlots as ua, provide as Li, renderList as je, onMounted as Yt, TransitionGroup as gm, mergeProps as Et, isVNode as qm, mergeModels as pt, useModel as Tt, toRefs as ci, vModelText as kl, nextTick as Jt, withKeys as Pa, onUnmounted as so, readonly as Ss, createStaticVNode as Bd, resolveDynamicComponent as io, setBlockTracking as Il, onBeforeUnmount as ro, toRef as oo, Teleport as Ym, normalizeProps as Xm, guardReactiveProps as Am } from "vue";
4
+ import { defineComponent as W, computed as _, openBlock as Y, createBlock as T, withCtx as p, createTextVNode as P, toDisplayString as k, createElementBlock as R, createVNode as m, normalizeClass as Fe, createCommentVNode as j, renderSlot as de, createElementVNode as U, resolveComponent as $e, withModifiers as J, withDirectives as da, vShow as ps, isProxy as $d, toRaw as ht, isRef as La, unref as V, Fragment as ge, normalizeStyle as Dt, shallowRef as Ft, watch as qe, ref as S, reactive as ea, inject as at, createSlots as ua, provide as Li, renderList as je, onMounted as gt, TransitionGroup as gm, mergeProps as Et, isVNode as qm, mergeModels as pt, useModel as Tt, toRefs as ci, vModelText as kl, nextTick as Jt, withKeys as Pa, onUnmounted as so, readonly as Ss, createStaticVNode as Bd, resolveDynamicComponent as io, setBlockTracking as Il, onBeforeUnmount as ro, toRef as oo, Teleport as Ym, normalizeProps as Xm, guardReactiveProps as Am } from "vue";
5
5
  import { useI18n as ee, createI18n as ym } from "vue-i18n";
6
6
  import { VChip as Qt } from "vuetify/lib/components/VChip/index.mjs";
7
7
  import { VRow as ve, VCol as oe, VSpacer as it } from "vuetify/lib/components/VGrid/index.mjs";
@@ -1430,7 +1430,7 @@ const fr = {
1430
1430
  function N() {
1431
1431
  i.value = i.value.filter((z) => z.state !== fr.DESTROYED);
1432
1432
  }
1433
- return Yt(() => {
1433
+ return gt(() => {
1434
1434
  Lr.on("add", v), Lr.on("close", g);
1435
1435
  }), () => {
1436
1436
  let z;
@@ -1798,7 +1798,7 @@ const LS = /* @__PURE__ */ W({
1798
1798
  },
1799
1799
  setup(a) {
1800
1800
  const t = a, { t: e } = ee(), s = S([]);
1801
- return Yt(async () => {
1801
+ return gt(async () => {
1802
1802
  if (t.configUrl && t.configUrl.length > 0)
1803
1803
  try {
1804
1804
  const { data: i } = await bm(t.configUrl).get().json();
@@ -3063,7 +3063,7 @@ const kV = /* @__PURE__ */ W({
3063
3063
  },
3064
3064
  setup(a) {
3065
3065
  const t = a, e = S(!1), s = _(() => t.permission.split("_")[0] || "");
3066
- return Yt(() => {
3066
+ return gt(() => {
3067
3067
  const { can: i, useCurrentUser: r } = ho(s.value), { currentUser: o } = r(s.value);
3068
3068
  qe(
3069
3069
  o,
@@ -4028,7 +4028,7 @@ const fp = {
4028
4028
  };
4029
4029
  return qe(u, (v, g) => {
4030
4030
  v !== g && (f.value = v, d.value = !1);
4031
- }), Yt(() => {
4031
+ }), gt(() => {
4032
4032
  c.value = "remote-switch-" + Date.now();
4033
4033
  }), (v, g) => (Y(), R("div", pp, [
4034
4034
  m(Gi, {
@@ -4147,7 +4147,7 @@ const fp = {
4147
4147
  };
4148
4148
  return qe(u, (v, g) => {
4149
4149
  v !== g && (f.value = v, d.value = !1);
4150
- }), Yt(() => {
4150
+ }), gt(() => {
4151
4151
  c.value = "a-remote-switch-" + Date.now();
4152
4152
  }), (v, g) => (Y(), R("div", hp, [
4153
4153
  m(ie, {
@@ -4902,7 +4902,7 @@ const yD = /* @__PURE__ */ W({
4902
4902
  o > 0 ? r.value = setTimeout(() => i.value--, 1e3) : s("done");
4903
4903
  },
4904
4904
  { immediate: !0 }
4905
- ), Yt(() => {
4905
+ ), gt(() => {
4906
4906
  i.value = e.seconds;
4907
4907
  }), so(() => {
4908
4908
  clearTimeout(r.value), r.value = void 0;
@@ -7120,7 +7120,7 @@ const lv = { class: "text-center w-100 text-caption pb-1" }, MD = /* @__PURE__ *
7120
7120
  },
7121
7121
  setup(a) {
7122
7122
  const t = a;
7123
- return Yt(() => {
7123
+ return gt(() => {
7124
7124
  t.logoutUrl && (window.location.href = t.logoutUrl());
7125
7125
  }), (e, s) => (Y(), R("div"));
7126
7126
  }
@@ -9114,7 +9114,7 @@ const Lh = {
9114
9114
  return Xh;
9115
9115
  }
9116
9116
  }), O = _(() => d.value < s.minCount || d.value > s.maxCount);
9117
- return Yt(async () => {
9117
+ return gt(async () => {
9118
9118
  o.value = !0, x.value = await h(s.selectLicences), o.value = !1;
9119
9119
  }), so(() => {
9120
9120
  x.value = [];
@@ -11789,34 +11789,34 @@ function dg() {
11789
11789
  }
11790
11790
  };
11791
11791
  }
11792
- const gt = {
11792
+ const qt = {
11793
11793
  String: "string",
11794
11794
  Integer: "integer",
11795
11795
  StringArray: "stringArray",
11796
11796
  StringArrayLegacy: "string_array",
11797
11797
  // todo: remove
11798
11798
  Boolean: "boolean"
11799
- }, aK = gt.String;
11799
+ }, aK = qt.String;
11800
11800
  function sK() {
11801
11801
  const { t: a } = ee(), t = S([
11802
11802
  {
11803
- value: gt.String,
11803
+ value: qt.String,
11804
11804
  title: a("common.customFormElement.type.string")
11805
11805
  },
11806
11806
  {
11807
- value: gt.Integer,
11807
+ value: qt.Integer,
11808
11808
  title: a("common.customFormElement.type.integer")
11809
11809
  },
11810
11810
  {
11811
- value: gt.StringArray,
11811
+ value: qt.StringArray,
11812
11812
  title: a("common.customFormElement.type.C")
11813
11813
  },
11814
11814
  {
11815
- value: gt.StringArrayLegacy,
11815
+ value: qt.StringArrayLegacy,
11816
11816
  title: a("common.customFormElement.type.stringArrayLegacy")
11817
11817
  },
11818
11818
  {
11819
- value: gt.Boolean,
11819
+ value: qt.Boolean,
11820
11820
  title: a("common.customFormElement.type.boolean")
11821
11821
  }
11822
11822
  ]);
@@ -11876,11 +11876,11 @@ const ug = /* @__PURE__ */ W({
11876
11876
  },
11877
11877
  emits: ["update:modelValue", "blur"],
11878
11878
  setup(a, { emit: t }) {
11879
- const e = a, s = t, i = (F) => e.config.attributes.type === gt.Integer ? parseInt(F) : F, r = (F) => {
11879
+ const e = a, s = t, i = (F) => e.config.attributes.type === qt.Integer ? parseInt(F) : F, r = (F) => {
11880
11880
  s("update:modelValue", { property: e.config.property, value: i(F) });
11881
11881
  }, o = _(() => {
11882
11882
  const F = $d(e.modelValue) ? ht(e.modelValue) : e.modelValue;
11883
- return (e.config.attributes.type === gt.StringArray || e.config.attributes.type === gt.StringArrayLegacy) && li(F) ? [] : F;
11883
+ return (e.config.attributes.type === qt.StringArray || e.config.attributes.type === qt.StringArrayLegacy) && li(F) ? [] : F;
11884
11884
  }), { maxLength: l, minLength: n, requiredIf: d, minValue: c, maxValue: u, stringArrayItemLength: f } = Ys(), q = _(() => {
11885
11885
  const F = {
11886
11886
  modelValueComputed: {
@@ -11888,21 +11888,21 @@ const ug = /* @__PURE__ */ W({
11888
11888
  }
11889
11889
  };
11890
11890
  switch (e.config.attributes.type) {
11891
- case gt.String:
11891
+ case qt.String:
11892
11892
  F.modelValueComputed.minLength = n(
11893
11893
  e.config.attributes.minValue ? e.config.attributes.minValue : 0
11894
11894
  ), F.modelValueComputed.maxLength = l(
11895
11895
  e.config.attributes.maxValue ? e.config.attributes.maxValue : 256
11896
11896
  );
11897
11897
  break;
11898
- case gt.Integer:
11898
+ case qt.Integer:
11899
11899
  F.modelValueComputed.minValue = c(
11900
11900
  e.config.attributes.minValue ? e.config.attributes.minValue : 0
11901
11901
  ), F.modelValueComputed.maxValue = u(
11902
11902
  e.config.attributes.maxValue ? e.config.attributes.maxValue : 9999
11903
11903
  );
11904
11904
  break;
11905
- case gt.StringArray:
11905
+ case qt.StringArray:
11906
11906
  F.modelValueComputed.minLength = n(
11907
11907
  e.config.attributes.minCount ? e.config.attributes.minCount : 0
11908
11908
  ), F.modelValueComputed.maxLength = l(
@@ -11920,7 +11920,7 @@ const ug = /* @__PURE__ */ W({
11920
11920
  s("blur", e.modelValue), v.value.$touch();
11921
11921
  };
11922
11922
  return (F, y) => (Y(), R(ge, null, [
11923
- F.config.attributes.type === V(gt).String ? (Y(), T(Ld, {
11923
+ F.config.attributes.type === V(qt).String ? (Y(), T(Ld, {
11924
11924
  key: 0,
11925
11925
  "model-value": F.modelValue,
11926
11926
  "auto-grow": "",
@@ -11938,7 +11938,7 @@ const ug = /* @__PURE__ */ W({
11938
11938
  F.config.attributes.required ? (Y(), R("span", cg)) : j("", !0)
11939
11939
  ]),
11940
11940
  _: 1
11941
- }, 8, ["model-value", "label", "error-messages", "counter", "readonly", "data-cy"])) : F.config.attributes.type === V(gt).Integer ? (Y(), T(mi, {
11941
+ }, 8, ["model-value", "label", "error-messages", "counter", "readonly", "data-cy"])) : F.config.attributes.type === V(qt).Integer ? (Y(), T(mi, {
11942
11942
  key: 1,
11943
11943
  "model-value": o.value,
11944
11944
  type: "number",
@@ -11954,7 +11954,7 @@ const ug = /* @__PURE__ */ W({
11954
11954
  F.config.attributes.required ? (Y(), R("span", mg)) : j("", !0)
11955
11955
  ]),
11956
11956
  _: 1
11957
- }, 8, ["model-value", "label", "error-messages", "readonly", "data-cy"])) : F.config.attributes.type === V(gt).StringArray || F.config.attributes.type === V(gt).StringArrayLegacy ? (Y(), T(Jm, {
11957
+ }, 8, ["model-value", "label", "error-messages", "readonly", "data-cy"])) : F.config.attributes.type === V(qt).StringArray || F.config.attributes.type === V(qt).StringArrayLegacy ? (Y(), T(Jm, {
11958
11958
  key: 2,
11959
11959
  "model-value": o.value,
11960
11960
  label: F.config.name,
@@ -11972,7 +11972,7 @@ const ug = /* @__PURE__ */ W({
11972
11972
  ]),
11973
11973
  _: 1
11974
11974
  }, 8, ["model-value", "label", "readonly", "error-messages", "data-cy"])) : j("", !0),
11975
- F.config.attributes.type === V(gt).Boolean && F.config.attributes.required === !0 ? (Y(), T(fi, {
11975
+ F.config.attributes.type === V(qt).Boolean && F.config.attributes.required === !0 ? (Y(), T(fi, {
11976
11976
  key: 3,
11977
11977
  label: F.config.name,
11978
11978
  "model-value": o.value,
@@ -11980,7 +11980,7 @@ const ug = /* @__PURE__ */ W({
11980
11980
  "data-cy": "custom-field-" + F.config.property,
11981
11981
  "onUpdate:modelValue": r
11982
11982
  }, null, 8, ["label", "model-value", "readonly", "data-cy"])) : j("", !0),
11983
- F.config.attributes.type === V(gt).Boolean && F.config.attributes.required === !1 ? (Y(), T(ug, {
11983
+ F.config.attributes.type === V(qt).Boolean && F.config.attributes.required === !1 ? (Y(), T(ug, {
11984
11984
  key: 4,
11985
11985
  "model-value": o.value,
11986
11986
  label: F.config.name,
@@ -15005,7 +15005,7 @@ const x7 = /* @__PURE__ */ W({
15005
15005
  }
15006
15006
  i.value = F.id;
15007
15007
  }, x = (F) => We(i.value) ? i.value.includes(F) : i.value ? i.value === F : !1;
15008
- return Yt(() => {
15008
+ return gt(() => {
15009
15009
  }), (F, y) => (Y(), R(ge, null, [
15010
15010
  U("div", w7, [
15011
15011
  m(Du, {
@@ -15930,7 +15930,7 @@ const E7 = /* @__PURE__ */ W({
15930
15930
  }, l = async () => {
15931
15931
  await o(), e.forceReloadRoiPreviews(), e.forceReloadCropper();
15932
15932
  };
15933
- return Yt(async () => {
15933
+ return gt(async () => {
15934
15934
  e.reset(), e.showLoader(), s.asset && s.asset.mainFile && or(s.asset.mainFile) && (e.setImageFile(ye(s.asset.mainFile)), await o()), e.hideLoader();
15935
15935
  }), (n, d) => {
15936
15936
  var u;
@@ -15992,7 +15992,7 @@ const E7 = /* @__PURE__ */ W({
15992
15992
  },
15993
15993
  setup(a) {
15994
15994
  const t = a, { mounted: e, unMounted: s, divClassName: i } = zc(t.queueKey);
15995
- return Yt(async () => {
15995
+ return gt(async () => {
15996
15996
  await Jt(), e();
15997
15997
  }), ro(() => {
15998
15998
  s();
@@ -16339,11 +16339,11 @@ function cs(a, t) {
16339
16339
  function DY(a, t) {
16340
16340
  return a.classList ? a.classList.contains(t) : a.className.indexOf(t) > -1;
16341
16341
  }
16342
- function qt(a, t) {
16342
+ function Yt(a, t) {
16343
16343
  if (t) {
16344
16344
  if (Ee(a.length)) {
16345
16345
  ft(a, function(s) {
16346
- qt(s, t);
16346
+ Yt(s, t);
16347
16347
  });
16348
16348
  return;
16349
16349
  }
@@ -16378,7 +16378,7 @@ function ti(a, t, e) {
16378
16378
  });
16379
16379
  return;
16380
16380
  }
16381
- e ? qt(a, t) : xa(a, t);
16381
+ e ? Yt(a, t) : xa(a, t);
16382
16382
  }
16383
16383
  }
16384
16384
  var KY = /([a-z\d])([A-Z])/g;
@@ -16657,7 +16657,7 @@ var jY = {
16657
16657
  },
16658
16658
  initContainer: function() {
16659
16659
  var t = this.element, e = this.options, s = this.container, i = this.cropper, r = Number(e.minContainerWidth), o = Number(e.minContainerHeight);
16660
- qt(i, Pt), xa(t, Pt);
16660
+ Yt(i, Pt), xa(t, Pt);
16661
16661
  var l = {
16662
16662
  width: Math.max(s.offsetWidth, r >= 0 ? r : sm),
16663
16663
  height: Math.max(s.offsetHeight, o >= 0 ? o : im)
@@ -16665,7 +16665,7 @@ var jY = {
16665
16665
  this.containerData = l, cs(i, {
16666
16666
  width: l.width,
16667
16667
  height: l.height
16668
- }), qt(t, Pt), xa(i, Pt);
16668
+ }), Yt(t, Pt), xa(i, Pt);
16669
16669
  },
16670
16670
  // Canvas (image wrapper)
16671
16671
  initCanvas: function() {
@@ -16854,7 +16854,7 @@ var jY = {
16854
16854
  }) : r[t.pointerId || 0] = xr(t), Object.keys(r).length > 1 && i.zoomable && i.zoomOnTouch ? o = em : o = On(t.target, Hi), AY.test(o) && ri(this.element, Pn, {
16855
16855
  originalEvent: t,
16856
16856
  action: o
16857
- }) !== !1 && (t.preventDefault(), this.action = o, this.cropping = !1, o === Jc && (this.cropping = !0, qt(this.dragBox, ao)));
16857
+ }) !== !1 && (t.preventDefault(), this.action = o, this.cropping = !1, o === Jc && (this.cropping = !0, Yt(this.dragBox, ao)));
16858
16858
  }
16859
16859
  },
16860
16860
  cropMove: function(t) {
@@ -17000,7 +17000,7 @@ var jY = {
17000
17000
  }, JY = {
17001
17001
  // Show the crop box manually
17002
17002
  crop: function() {
17003
- return this.ready && !this.cropped && !this.disabled && (this.cropped = !0, this.limitCropBox(!0, !0), this.options.modal && qt(this.dragBox, ao), xa(this.cropBox, Pt), this.setCropBoxData(this.initialCropBoxData)), this;
17003
+ return this.ready && !this.cropped && !this.disabled && (this.cropped = !0, this.limitCropBox(!0, !0), this.options.modal && Yt(this.dragBox, ao), xa(this.cropBox, Pt), this.setCropBoxData(this.initialCropBoxData)), this;
17004
17004
  },
17005
17005
  // Reset the image and crop box to their initial states
17006
17006
  reset: function() {
@@ -17013,7 +17013,7 @@ var jY = {
17013
17013
  top: 0,
17014
17014
  width: 0,
17015
17015
  height: 0
17016
- }), this.cropped = !1, this.renderCropBox(), this.limitCanvas(!0, !0), this.renderCanvas(), xa(this.dragBox, ao), qt(this.cropBox, Pt)), this;
17016
+ }), this.cropped = !1, this.renderCropBox(), this.limitCanvas(!0, !0), this.renderCanvas(), xa(this.dragBox, ao), Yt(this.cropBox, Pt)), this;
17017
17017
  },
17018
17018
  /**
17019
17019
  * Replace the image's src and rebuild the cropper
@@ -17033,7 +17033,7 @@ var jY = {
17033
17033
  },
17034
17034
  // Disable (freeze) the cropper
17035
17035
  disable: function() {
17036
- return this.ready && !this.disabled && (this.disabled = !0, qt(this.cropper, Xd)), this;
17036
+ return this.ready && !this.disabled && (this.disabled = !0, Yt(this.cropper, Xd)), this;
17037
17037
  },
17038
17038
  /**
17039
17039
  * Destroy the cropper and remove the instance from the image
@@ -17372,7 +17372,7 @@ var jY = {
17372
17372
  var e = this.element, s = this.url, i = e.crossOrigin, r = s;
17373
17373
  this.options.checkCrossOrigin && Kd(s) && (i || (i = "anonymous"), r = Td(s)), this.crossOrigin = i, this.crossOriginUrl = r;
17374
17374
  var o = document.createElement("img");
17375
- i && (o.crossOrigin = i), o.src = r || s, o.alt = e.alt || "The image to crop", this.image = o, o.onload = this.start.bind(this), o.onerror = this.stop.bind(this), qt(o, Ad), e.parentNode.insertBefore(o, e.nextSibling);
17375
+ i && (o.crossOrigin = i), o.src = r || s, o.alt = e.alt || "The image to crop", this.image = o, o.onload = this.start.bind(this), o.onerror = this.stop.bind(this), Yt(o, Ad), e.parentNode.insertBefore(o, e.nextSibling);
17376
17376
  }
17377
17377
  }, {
17378
17378
  key: "start",
@@ -17408,7 +17408,7 @@ var jY = {
17408
17408
  var e = this.element, s = this.options, i = this.image, r = e.parentNode, o = document.createElement("div");
17409
17409
  o.innerHTML = xY;
17410
17410
  var l = o.querySelector(".".concat(Qe, "-container")), n = l.querySelector(".".concat(Qe, "-canvas")), d = l.querySelector(".".concat(Qe, "-drag-box")), c = l.querySelector(".".concat(Qe, "-crop-box")), u = c.querySelector(".".concat(Qe, "-face"));
17411
- this.container = r, this.cropper = l, this.canvas = n, this.dragBox = d, this.cropBox = c, this.viewBox = l.querySelector(".".concat(Qe, "-view-box")), this.face = u, n.appendChild(i), qt(e, Pt), r.insertBefore(l, e.nextSibling), xa(i, Ad), this.initPreview(), this.bind(), s.initialAspectRatio = Math.max(0, s.initialAspectRatio) || NaN, s.aspectRatio = Math.max(0, s.aspectRatio) || NaN, s.viewMode = Math.max(0, Math.min(3, Math.round(s.viewMode))) || 0, qt(c, Pt), s.guides || qt(c.getElementsByClassName("".concat(Qe, "-dashed")), Pt), s.center || qt(c.getElementsByClassName("".concat(Qe, "-center")), Pt), s.background && qt(l, "".concat(Qe, "-bg")), s.highlight || qt(u, gY), s.cropBoxMovable && (qt(u, En), Wi(u, Hi, Yl)), s.cropBoxResizable || (qt(c.getElementsByClassName("".concat(Qe, "-line")), Pt), qt(c.getElementsByClassName("".concat(Qe, "-point")), Pt)), this.render(), this.ready = !0, this.setDragMode(s.dragMode), s.autoCrop && this.crop(), this.setData(s.data), Bt(s.ready) && ra(e, wd, s.ready, {
17411
+ this.container = r, this.cropper = l, this.canvas = n, this.dragBox = d, this.cropBox = c, this.viewBox = l.querySelector(".".concat(Qe, "-view-box")), this.face = u, n.appendChild(i), Yt(e, Pt), r.insertBefore(l, e.nextSibling), xa(i, Ad), this.initPreview(), this.bind(), s.initialAspectRatio = Math.max(0, s.initialAspectRatio) || NaN, s.aspectRatio = Math.max(0, s.aspectRatio) || NaN, s.viewMode = Math.max(0, Math.min(3, Math.round(s.viewMode))) || 0, Yt(c, Pt), s.guides || Yt(c.getElementsByClassName("".concat(Qe, "-dashed")), Pt), s.center || Yt(c.getElementsByClassName("".concat(Qe, "-center")), Pt), s.background && Yt(l, "".concat(Qe, "-bg")), s.highlight || Yt(u, gY), s.cropBoxMovable && (Yt(u, En), Wi(u, Hi, Yl)), s.cropBoxResizable || (Yt(c.getElementsByClassName("".concat(Qe, "-line")), Pt), Yt(c.getElementsByClassName("".concat(Qe, "-point")), Pt)), this.render(), this.ready = !0, this.setDragMode(s.dragMode), s.autoCrop && this.crop(), this.setData(s.data), Bt(s.ready) && ra(e, wd, s.ready, {
17412
17412
  once: !0
17413
17413
  }), ri(e, wd);
17414
17414
  }
@@ -17525,7 +17525,7 @@ const eX = { class: "d-flex flex-column" }, tX = {
17525
17525
  var q;
17526
17526
  return (q = s.value) == null ? void 0 : q.setData(f);
17527
17527
  }
17528
- }), Yt(() => {
17528
+ }), gt(() => {
17529
17529
  const { containerStyle: f, src: q, alt: v, imgStyle: g, ...h } = e, x = h, F = {};
17530
17530
  for (const y in h)
17531
17531
  Object.prototype.hasOwnProperty.call(x, y) && x[y] !== void 0 && (F[y] = x[y]);
@@ -18438,7 +18438,6 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
18438
18438
  if (g.value.length === 0) return;
18439
18439
  let Ae = "", Q = "";
18440
18440
  try {
18441
- console.log(g.value);
18442
18441
  const ce = await Wr(G, g.value, n.mainFileSingleUse);
18443
18442
  if (!ce[0])
18444
18443
  throw new Error("Fatal error updating asset metadata");
@@ -18475,7 +18474,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
18475
18474
  }
18476
18475
  },
18477
18476
  { immediate: !0 }
18478
- ), Yt(() => {
18477
+ ), gt(() => {
18479
18478
  d.value = kt.Info;
18480
18479
  }), (Ae, Q) => (Y(), T(Vt, {
18481
18480
  "model-value": !0,
@@ -19004,7 +19003,9 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
19004
19003
  le === ke || le || f(r.value);
19005
19004
  },
19006
19005
  { immediate: !1 }
19007
- ), t({
19006
+ ), gt(() => {
19007
+ A.reset();
19008
+ }), t({
19008
19009
  metadataConfirm: zs
19009
19010
  }), (le, ke) => {
19010
19011
  var Xt, Va;
@@ -19289,7 +19290,7 @@ const VX = { key: 0 }, pX = /* @__PURE__ */ W({
19289
19290
  getOrLoadDamConfigExtSystemByLicence: c,
19290
19291
  getOrLoadDamConfigExtSystemByLicences: u
19291
19292
  } = sa(o), f = Ft(void 0);
19292
- Yt(async () => {
19293
+ gt(async () => {
19293
19294
  const g = Rs();
19294
19295
  if (f.value = await c(s.uploadLicence), L(f.value)) {
19295
19296
  r.value = "error";
@@ -19918,7 +19919,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
19918
19919
  }, F = () => {
19919
19920
  e.value = { image: {}, video: {}, audio: {}, document: {} }, i.value = [], s.value = [];
19920
19921
  }, y = _(() => l.getQueueItemsTypes(t.queueKey));
19921
- return Yt(() => {
19922
+ return gt(() => {
19922
19923
  y.value[0] && o.value.push(y.value[0]);
19923
19924
  }), (X, A) => (Y(), R("div", _A, [
19924
19925
  U("div", SA, [
@@ -20188,7 +20189,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
20188
20189
  }, l = (f) => {
20189
20190
  i.removeByIndex(e.queueKey, f);
20190
20191
  }, { addToCachedKeywords: n, fetchCachedKeywords: d } = _o(), { addToCachedAuthors: c, fetchCachedAuthors: u } = rr();
20191
- return Yt(() => {
20192
+ return gt(() => {
20192
20193
  r.value.forEach((f) => {
20193
20194
  n(f.keywords), c(f.authors);
20194
20195
  }), d(), u();
@@ -20800,7 +20801,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
20800
20801
  fe.value = document.querySelector("#" + Q.value), Oe();
20801
20802
  }), t({
20802
20803
  saveImages: Z
20803
- }), Yt(() => {
20804
+ }), gt(() => {
20804
20805
  y();
20805
20806
  }), (pe, se) => {
20806
20807
  var Ye, nt;
@@ -20926,7 +20927,7 @@ const _A = { class: "sidebar-info d-flex w-100 h-100 flex-column" }, SA = { clas
20926
20927
  getOrLoadDamConfigExtSystemByLicence: c,
20927
20928
  getOrLoadDamConfigExtSystemByLicences: u
20928
20929
  } = sa(o), f = Ft(void 0);
20929
- Yt(async () => {
20930
+ gt(async () => {
20930
20931
  const g = Rs();
20931
20932
  if (f.value = await c(s.uploadLicence), L(f.value)) {
20932
20933
  r.value = "error";
@@ -23837,7 +23838,7 @@ function $K(a) {
23837
23838
  return a;
23838
23839
  }
23839
23840
  async function BK() {
23840
- (await import("./webfontloader-DmhUkT6T.js").then((t) => t.w)).load({
23841
+ (await import("./webfontloader-B9HB8WIB.js").then((t) => t.w)).load({
23841
23842
  google: {
23842
23843
  families: ["Roboto:100,300,400,500,700,900&display=swap"]
23843
23844
  }
@@ -24462,7 +24463,7 @@ export {
24462
24463
  lK as bD,
24463
24464
  Ne as bE,
24464
24465
  wc as bF,
24465
- gt as bG,
24466
+ qt as bG,
24466
24467
  aK as bH,
24467
24468
  Xe as bI,
24468
24469
  go as bJ,
@@ -24690,4 +24691,4 @@ export {
24690
24691
  pD as y,
24691
24692
  ai as z
24692
24693
  };
24693
- //# sourceMappingURL=lib-BLpyb9oT.js.map
24694
+ //# sourceMappingURL=lib-DPp4Rq_S.js.map