@anzusystems/common-admin 1.47.0-beta.dev-1778754000 → 1.47.0-beta.dev-1778754001

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 { defineComponent as De, openBlock as I, createBlock as K, withCtx as x, createVNode as S, createElementBlock as ne, normalizeClass as Ze, toDisplayString as ee, createCommentVNode as oe, renderSlot as me, createElementVNode as Se, isProxy as Zr, toRaw as Pa, isRef as La, unref as _, computed as P, Fragment as Ye, normalizeStyle as Jr, createTextVNode as ie, shallowRef as xa, watch as ke, ref as N, reactive as Xt, inject as ae, createSlots as Ut, withDirectives as Hn, onMounted as _o, withModifiers as de, onUnmounted as Qr, TransitionGroup as es, mergeProps as Ne, isVNode as ts, useModel as et, useTemplateRef as Tt, nextTick as qe, withKeys as Ta, vModelText as sl, mergeModels as Ke, getCurrentInstance as vn, resolveComponent as sn, resolveDynamicComponent as Nl, renderList as Vt, toValue as il, toRef as ns, onBeforeUnmount as Oo, provide as un, vShow as as, useSlots as os, shallowReactive as ls, normalizeProps as ul } from "vue";
1
+ import { defineComponent as De, openBlock as I, createBlock as K, withCtx as x, createVNode as S, createElementBlock as ne, normalizeClass as Ze, toDisplayString as ee, createCommentVNode as oe, renderSlot as me, createElementVNode as Se, isProxy as Zr, toRaw as Pa, isRef as La, unref as _, computed as P, Fragment as Ye, normalizeStyle as Jr, createTextVNode as ie, shallowRef as xa, watch as ke, ref as N, reactive as Xt, inject as ae, createSlots as Ut, withDirectives as Hn, onMounted as _o, withModifiers as de, onUnmounted as Qr, TransitionGroup as es, mergeProps as Ne, isVNode as ts, useModel as et, useTemplateRef as Tt, nextTick as ze, withKeys as Ta, vModelText as sl, mergeModels as Ke, getCurrentInstance as vn, resolveComponent as sn, resolveDynamicComponent as Nl, renderList as Vt, toValue as il, toRef as ns, onBeforeUnmount as Oo, provide as un, vShow as as, useSlots as os, shallowReactive as ls, normalizeProps as ul } from "vue";
2
2
  import { useEventBus as ct, tryOnBeforeUnmount as rs, watchDebounced as Va, useResizeObserver as ss, watchThrottled as is, defaultDocument as us, unrefElement as cs, tryOnMounted as ds, tryOnScopeDispose as fs, useElementSize as ms, useMediaQuery as vs } from "@vueuse/core";
3
3
  import { useI18n as Oe, createI18n as ps } from "vue-i18n";
4
4
  import { VAutocomplete as qn } from "vuetify/components/VAutocomplete";
@@ -1368,15 +1368,15 @@ function Yi() {
1368
1368
  return U ? te : te.endOf(u);
1369
1369
  }, fe = function(J, xe) {
1370
1370
  return z.w(R.toDate()[J].apply(R.toDate("s"), (U ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(xe)), R);
1371
- }, Ee = this.$W, ve = this.$M, Fe = this.$D, X = "set" + (this.$u ? "UTC" : "");
1371
+ }, Ee = this.$W, pe = this.$M, Fe = this.$D, X = "set" + (this.$u ? "UTC" : "");
1372
1372
  switch (W) {
1373
1373
  case p:
1374
1374
  return U ? le(1, 0) : le(31, 11);
1375
1375
  case c:
1376
- return U ? le(1, ve) : le(0, ve + 1);
1376
+ return U ? le(1, pe) : le(0, pe + 1);
1377
1377
  case m:
1378
1378
  var se = this.$locale().weekStart || 0, q = (Ee < se ? Ee + 7 : Ee) - se;
1379
- return le(U ? Fe - q : Fe + (6 - q), ve);
1379
+ return le(U ? Fe - q : Fe + (6 - q), pe);
1380
1380
  case u:
1381
1381
  case D:
1382
1382
  return fe(X + "Hours", 0);
@@ -1405,9 +1405,9 @@ function Yi() {
1405
1405
  }, k.add = function(y, E) {
1406
1406
  var R, U = this;
1407
1407
  y = Number(y);
1408
- var W = z.p(E), le = function(ve) {
1408
+ var W = z.p(E), le = function(pe) {
1409
1409
  var Fe = L(U);
1410
- return z.w(Fe.date(Fe.date() + Math.round(ve * y)), U);
1410
+ return z.w(Fe.date(Fe.date() + Math.round(pe * y)), U);
1411
1411
  };
1412
1412
  if (W === c) return this.set(c, this.$M + y);
1413
1413
  if (W === p) return this.set(p, this.$y + y);
@@ -1420,13 +1420,13 @@ function Yi() {
1420
1420
  }, k.format = function(y) {
1421
1421
  var E = this, R = this.$locale();
1422
1422
  if (!this.isValid()) return R.invalidDate || g;
1423
- var U = y || "YYYY-MM-DDTHH:mm:ssZ", W = z.z(this), le = this.$H, fe = this.$m, Ee = this.$M, ve = R.weekdays, Fe = R.months, X = R.meridiem, se = function(xe, te, re, pe) {
1424
- return xe && (xe[te] || xe(E, U)) || re[te].slice(0, pe);
1423
+ var U = y || "YYYY-MM-DDTHH:mm:ssZ", W = z.z(this), le = this.$H, fe = this.$m, Ee = this.$M, pe = R.weekdays, Fe = R.months, X = R.meridiem, se = function(xe, te, re, he) {
1424
+ return xe && (xe[te] || xe(E, U)) || re[te].slice(0, he);
1425
1425
  }, q = function(xe) {
1426
1426
  return z.s(le % 12 || 12, xe, "0");
1427
1427
  }, J = X || function(xe, te, re) {
1428
- var pe = xe < 12 ? "AM" : "PM";
1429
- return re ? pe.toLowerCase() : pe;
1428
+ var he = xe < 12 ? "AM" : "PM";
1429
+ return re ? he.toLowerCase() : he;
1430
1430
  };
1431
1431
  return U.replace(d, (function(xe, te) {
1432
1432
  return te || (function(re) {
@@ -1450,11 +1450,11 @@ function Yi() {
1450
1450
  case "d":
1451
1451
  return String(E.$W);
1452
1452
  case "dd":
1453
- return se(R.weekdaysMin, E.$W, ve, 2);
1453
+ return se(R.weekdaysMin, E.$W, pe, 2);
1454
1454
  case "ddd":
1455
- return se(R.weekdaysShort, E.$W, ve, 3);
1455
+ return se(R.weekdaysShort, E.$W, pe, 3);
1456
1456
  case "dddd":
1457
- return ve[E.$W];
1457
+ return pe[E.$W];
1458
1458
  case "H":
1459
1459
  return String(le);
1460
1460
  case "HH":
@@ -1486,7 +1486,7 @@ function Yi() {
1486
1486
  }, k.utcOffset = function() {
1487
1487
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1488
1488
  }, k.diff = function(y, E, R) {
1489
- var U, W = this, le = z.p(E), fe = L(y), Ee = (fe.utcOffset() - this.utcOffset()) * a, ve = this - fe, Fe = function() {
1489
+ var U, W = this, le = z.p(E), fe = L(y), Ee = (fe.utcOffset() - this.utcOffset()) * a, pe = this - fe, Fe = function() {
1490
1490
  return z.m(W, fe);
1491
1491
  };
1492
1492
  switch (le) {
@@ -1500,22 +1500,22 @@ function Yi() {
1500
1500
  U = Fe() / 3;
1501
1501
  break;
1502
1502
  case m:
1503
- U = (ve - Ee) / 6048e5;
1503
+ U = (pe - Ee) / 6048e5;
1504
1504
  break;
1505
1505
  case u:
1506
- U = (ve - Ee) / 864e5;
1506
+ U = (pe - Ee) / 864e5;
1507
1507
  break;
1508
1508
  case i:
1509
- U = ve / l;
1509
+ U = pe / l;
1510
1510
  break;
1511
1511
  case r:
1512
- U = ve / a;
1512
+ U = pe / a;
1513
1513
  break;
1514
1514
  case s:
1515
- U = ve / t;
1515
+ U = pe / t;
1516
1516
  break;
1517
1517
  default:
1518
- U = ve;
1518
+ U = pe;
1519
1519
  }
1520
1520
  return R ? U : z.a(U);
1521
1521
  }, k.daysInMonth = function() {
@@ -1729,10 +1729,10 @@ function Wi() {
1729
1729
  z && (B = H[2]), i = this.$locale(), !L && B && (i = v.Ls[B]), this.$d = (function(E, R, U, W) {
1730
1730
  try {
1731
1731
  if (["x", "X"].indexOf(R) > -1) return new Date((R === "X" ? 1e3 : 1) * E);
1732
- var le = g(R)(E), fe = le.year, Ee = le.month, ve = le.day, Fe = le.hours, X = le.minutes, se = le.seconds, q = le.milliseconds, J = le.zone, xe = le.week, te = /* @__PURE__ */ new Date(), re = ve || (fe || Ee ? 1 : te.getDate()), pe = fe || te.getFullYear(), Re = 0;
1732
+ var le = g(R)(E), fe = le.year, Ee = le.month, pe = le.day, Fe = le.hours, X = le.minutes, se = le.seconds, q = le.milliseconds, J = le.zone, xe = le.week, te = /* @__PURE__ */ new Date(), re = pe || (fe || Ee ? 1 : te.getDate()), he = fe || te.getFullYear(), Re = 0;
1733
1733
  fe && !Ee || (Re = Ee > 0 ? Ee - 1 : te.getMonth());
1734
1734
  var Ft, Z = Fe || 0, ye = X || 0, Be = se || 0, Me = q || 0;
1735
- return J ? new Date(Date.UTC(pe, Re, re, Z, ye, Be, Me + 60 * J.offset * 1e3)) : U ? new Date(Date.UTC(pe, Re, re, Z, ye, Be, Me)) : (Ft = new Date(pe, Re, re, Z, ye, Be, Me), xe && (Ft = W(Ft).week(xe).toDate()), Ft);
1735
+ return J ? new Date(Date.UTC(he, Re, re, Z, ye, Be, Me + 60 * J.offset * 1e3)) : U ? new Date(Date.UTC(he, Re, re, Z, ye, Be, Me)) : (Ft = new Date(he, Re, re, Z, ye, Be, Me), xe && (Ft = W(Ft).week(xe).toDate()), Ft);
1736
1736
  } catch {
1737
1737
  return /* @__PURE__ */ new Date("");
1738
1738
  }
@@ -2044,10 +2044,10 @@ const Tu = { class: "a-datetime-picker-time" }, Au = { class: "a-datetime-picker
2044
2044
  set: (A) => {
2045
2045
  let b = String(A).replace(/[^0-9]/g, "");
2046
2046
  if (b && parseInt(b) > 23) {
2047
- o.value = "23", qe(() => i.value?.focus());
2047
+ o.value = "23", ze(() => i.value?.focus());
2048
2048
  return;
2049
2049
  }
2050
- b.length > 2 && (b = b.slice(0, 2)), o.value = b, b.length === 2 && qe(() => i.value?.focus());
2050
+ b.length > 2 && (b = b.slice(0, 2)), o.value = b, b.length === 2 && ze(() => i.value?.focus());
2051
2051
  }
2052
2052
  }), m = P({
2053
2053
  get: () => s.value,
@@ -2061,7 +2061,7 @@ const Tu = { class: "a-datetime-picker-time" }, Au = { class: "a-datetime-picker
2061
2061
  }
2062
2062
  }), c = async (A) => {
2063
2063
  const b = A.target;
2064
- await qe(), b?.select();
2064
+ await ze(), b?.select();
2065
2065
  }, h = () => {
2066
2066
  const A = parseInt(o.value || "0");
2067
2067
  o.value = A >= 0 && A <= 23 ? String(A).padStart(2, "0") : "00";
@@ -2271,7 +2271,7 @@ const Tu = { class: "a-datetime-picker-time" }, Au = { class: "a-datetime-picker
2271
2271
  { immediate: !0 }
2272
2272
  ), ke(l, (E) => {
2273
2273
  if (E) {
2274
- $(), Q(p.value) && (Q(t.defaultValue) || M(t.defaultValue)) && (t.lastMinuteMoment ? p.value = be().second(59).millisecond(999) : p.value = be().second(0).millisecond(0)), qe(() => {
2274
+ $(), Q(p.value) && (Q(t.defaultValue) || M(t.defaultValue)) && (t.lastMinuteMoment ? p.value = be().second(59).millisecond(999) : p.value = be().second(0).millisecond(0)), ze(() => {
2275
2275
  o.value++;
2276
2276
  }), a("onOpen");
2277
2277
  return;
@@ -2312,7 +2312,7 @@ const Tu = { class: "a-datetime-picker-time" }, Au = { class: "a-datetime-picker
2312
2312
  }, k = () => {
2313
2313
  r.value?.focusHour();
2314
2314
  }, y = () => {
2315
- t.lastMinuteMoment ? p.value = be().second(59).millisecond(999) : p.value = be().second(0).millisecond(0), qe(() => {
2315
+ t.lastMinuteMoment ? p.value = be().second(59).millisecond(999) : p.value = be().second(0).millisecond(0), ze(() => {
2316
2316
  o.value++, s.value++;
2317
2317
  });
2318
2318
  };
@@ -3203,8 +3203,8 @@ const Zm = (e, n = {}, t, a = {}, l, o, s = {}) => new Promise((r, i) => {
3203
3203
  Q(h) ? null : h.key,
3204
3204
  h?.order
3205
3205
  ), O = N([]), H = N([]), $ = N(!0), L = N(!1), z = P(() => {
3206
- const te = /* @__PURE__ */ new Map(), re = (pe) => {
3207
- pe.forEach((Re) => {
3206
+ const te = /* @__PURE__ */ new Map(), re = (he) => {
3207
+ he.forEach((Re) => {
3208
3208
  te.set(Re.value, {
3209
3209
  value: Re.value,
3210
3210
  title: Re.title,
@@ -3216,7 +3216,7 @@ const Zm = (e, n = {}, t, a = {}, l, o, s = {}) => new Promise((r, i) => {
3216
3216
  }), V = N(!1), B = (te) => {
3217
3217
  H.value = [], D.value = Ce(te) ? [] : null, d.value = Ce(te) ? [] : null, xe(D.value);
3218
3218
  }, T = (te) => {
3219
- const re = (pe) => z.value.find((Re) => Re.value === pe) ?? { title: `${pe}`, value: pe };
3219
+ const re = (he) => z.value.find((Re) => Re.value === he) ?? { title: `${he}`, value: he };
3220
3220
  return Ce(te) ? te.map(re) : re(te);
3221
3221
  }, k = async (te) => {
3222
3222
  V.value = !0;
@@ -3224,10 +3224,10 @@ const Zm = (e, n = {}, t, a = {}, l, o, s = {}) => new Promise((r, i) => {
3224
3224
  const re = Ce(te) ? te : [te];
3225
3225
  try {
3226
3226
  H.value = await t.fetchItemsByIds(re);
3227
- const pe = T(te);
3228
- D.value = pe, d.value = pe, xe(D.value);
3229
- } catch (pe) {
3230
- y(pe);
3227
+ const he = T(te);
3228
+ D.value = he, d.value = he, xe(D.value);
3229
+ } catch (he) {
3230
+ y(he);
3231
3231
  }
3232
3232
  return H.value;
3233
3233
  } finally {
@@ -3236,10 +3236,10 @@ const Zm = (e, n = {}, t, a = {}, l, o, s = {}) => new Promise((r, i) => {
3236
3236
  }, { showErrorsDefault: y } = Dn(), E = async (te, re) => {
3237
3237
  V.value = !0, u[c] = te;
3238
3238
  try {
3239
- const pe = await t.fetchItems(b, u, i);
3240
- re === v.value && (O.value = pe);
3241
- } catch (pe) {
3242
- y(pe);
3239
+ const he = await t.fetchItems(b, u, i);
3240
+ re === v.value && (O.value = he);
3241
+ } catch (he) {
3242
+ y(he);
3243
3243
  } finally {
3244
3244
  V.value = !1;
3245
3245
  }
@@ -3262,7 +3262,7 @@ const Zm = (e, n = {}, t, a = {}, l, o, s = {}) => new Promise((r, i) => {
3262
3262
  return H.value[0].title;
3263
3263
  }), fe = (te) => {
3264
3264
  !p.value.multiple && !f.value && te.length === 0 || le.value !== te && (g.value = te);
3265
- }, { clearOne: Ee } = Ct(), ve = () => {
3265
+ }, { clearOne: Ee } = Ct(), pe = () => {
3266
3266
  Ee(t.name, r, s), o.value.delete(t.name);
3267
3267
  }, Fe = async () => {
3268
3268
  try {
@@ -3270,7 +3270,7 @@ const Zm = (e, n = {}, t, a = {}, l, o, s = {}) => new Promise((r, i) => {
3270
3270
  } catch (te) {
3271
3271
  y(te);
3272
3272
  }
3273
- ve();
3273
+ pe();
3274
3274
  };
3275
3275
  Va(
3276
3276
  g,
@@ -3295,7 +3295,7 @@ const Zm = (e, n = {}, t, a = {}, l, o, s = {}) => new Promise((r, i) => {
3295
3295
  }), J = (te) => {
3296
3296
  s.touched = !0;
3297
3297
  let re = null;
3298
- Ce(te) ? re = te.map((pe) => pe.value) : Q(te) || (re = te.value), r[t.name] = re, a("change");
3298
+ Ce(te) ? re = te.map((he) => he.value) : Q(te) || (re = te.value), r[t.name] = re, a("change");
3299
3299
  }, xe = (te) => {
3300
3300
  if (o.value.delete(t.name), Ce(te) && te.length === 0 || Q(te)) {
3301
3301
  o.value.delete(t.name);
@@ -3314,18 +3314,18 @@ const Zm = (e, n = {}, t, a = {}, l, o, s = {}) => new Promise((r, i) => {
3314
3314
  () => r[t.name],
3315
3315
  async (te, re) => {
3316
3316
  if (te === re || ut(te)) return;
3317
- const pe = te;
3318
- if ($.value && ($.value = !1, await X()), Kl(pe)) {
3319
- B(pe), M(re) || (v.value++, await E("", v.value));
3317
+ const he = te;
3318
+ if ($.value && ($.value = !1, await X()), Kl(he)) {
3319
+ B(he), M(re) || (v.value++, await E("", v.value));
3320
3320
  return;
3321
3321
  }
3322
- await k(pe);
3322
+ await k(he);
3323
3323
  },
3324
3324
  { immediate: !0 }
3325
3325
  ), (te, re) => (I(), K(qn, {
3326
3326
  modelValue: D.value,
3327
3327
  "onUpdate:modelValue": [
3328
- re[0] || (re[0] = (pe) => D.value = pe),
3328
+ re[0] || (re[0] = (he) => D.value = he),
3329
3329
  J
3330
3330
  ],
3331
3331
  items: z.value,
@@ -3346,15 +3346,15 @@ const Zm = (e, n = {}, t, a = {}, l, o, s = {}) => new Promise((r, i) => {
3346
3346
  onMouseenter: W,
3347
3347
  "onClick:clear": Fe
3348
3348
  }, Ut({
3349
- item: x(({ props: pe, internalItem: Re }) => [
3350
- S(at, Ne(pe, {
3349
+ item: x(({ props: he, internalItem: Re }) => [
3350
+ S(at, Ne(he, {
3351
3351
  title: Re.raw.title,
3352
3352
  subtitle: Re.raw.subtitle
3353
3353
  }), null, 16, ["title", "subtitle"])
3354
3354
  ]),
3355
- chip: x(({ props: pe, internalItem: Re }) => [
3355
+ chip: x(({ props: he, internalItem: Re }) => [
3356
3356
  S(Gt, {
3357
- closable: pe.closable,
3357
+ closable: he.closable,
3358
3358
  size: "small",
3359
3359
  text: `${Re.title} (${Re.raw.subtitle})`,
3360
3360
  disabled: Re.props.disabled
@@ -3486,8 +3486,8 @@ const Qm = /* @__PURE__ */ De({
3486
3486
  } catch (X) {
3487
3487
  $(X);
3488
3488
  }
3489
- ve();
3490
- }, fe = P(() => M(t.placeholder) ? d.value.variant === "startsWith" ? f("common.model.filterPlaceholder.startsWith") : d.value.variant === "eq" ? f("common.model.filterPlaceholder.eq") : d.value.variant === "search" ? f("common.model.filterPlaceholder.contains") : "" : t.placeholder), { clearOne: Ee } = Ct(), ve = () => {
3489
+ pe();
3490
+ }, fe = P(() => M(t.placeholder) ? d.value.variant === "startsWith" ? f("common.model.filterPlaceholder.startsWith") : d.value.variant === "eq" ? f("common.model.filterPlaceholder.eq") : d.value.variant === "search" ? f("common.model.filterPlaceholder.contains") : "" : t.placeholder), { clearOne: Ee } = Ct(), pe = () => {
3491
3491
  Ee(t.name, r, s), o.value.delete(t.name);
3492
3492
  }, Fe = (X) => {
3493
3493
  if (o.value.delete(t.name), Ce(X) && X.length === 0 || Q(X)) {
@@ -3691,7 +3691,7 @@ const Qm = /* @__PURE__ */ De({
3691
3691
  return r[t.nameFrom];
3692
3692
  },
3693
3693
  set(V) {
3694
- r[t.nameFrom] = V, $(V), s.touched = !0, qe(() => {
3694
+ r[t.nameFrom] = V, $(V), s.touched = !0, ze(() => {
3695
3695
  a("change");
3696
3696
  });
3697
3697
  }
@@ -4244,7 +4244,7 @@ const cc = { key: 0 }, dc = 32, vr = /* @__PURE__ */ De({
4244
4244
  }, C = async (b) => {
4245
4245
  const O = m.value;
4246
4246
  if (Q(O)) return;
4247
- h.value = 1e3, await qe();
4247
+ h.value = 1e3, await ze();
4248
4248
  let H = 0, $ = 0;
4249
4249
  for (let L = 0; L < O.children.length; L++) {
4250
4250
  const V = O.children[L].offsetWidth;
@@ -4274,7 +4274,7 @@ const cc = { key: 0 }, dc = 32, vr = /* @__PURE__ */ De({
4274
4274
  };
4275
4275
  });
4276
4276
  return ke([u, () => F.value.length], ([b]) => {
4277
- b === !0 || Q(m.value) || (c.value = m.value.clientWidth, qe(() => {
4277
+ b === !0 || Q(m.value) || (c.value = m.value.clientWidth, ze(() => {
4278
4278
  C(c.value);
4279
4279
  }));
4280
4280
  }), _o(() => {
@@ -4508,7 +4508,7 @@ function St() {
4508
4508
  var e = document.scrollingElement;
4509
4509
  return e || document.documentElement;
4510
4510
  }
4511
- function je(e, n, t, a, l) {
4511
+ function qe(e, n, t, a, l) {
4512
4512
  if (!(!e.getBoundingClientRect && e !== window)) {
4513
4513
  var o, s, r, i, u, m, c;
4514
4514
  if (e !== window && e.parentNode && e !== St() ? (o = e.getBoundingClientRect(), s = o.top, r = o.left, i = o.bottom, u = o.right, m = o.height, c = o.width) : (s = 0, r = 0, i = window.innerHeight, u = window.innerWidth, m = window.innerHeight, c = window.innerWidth), (n || t) && e !== window && (l = l || e.parentNode, !$t))
@@ -4534,8 +4534,8 @@ function je(e, n, t, a, l) {
4534
4534
  }
4535
4535
  }
4536
4536
  function Fl(e, n, t) {
4537
- for (var a = Lt(e, !0), l = je(e)[n]; a; ) {
4538
- var o = je(a)[t], s = void 0;
4537
+ for (var a = Lt(e, !0), l = qe(e)[n]; a; ) {
4538
+ var o = qe(a)[t], s = void 0;
4539
4539
  if (s = l >= o, !s) return a;
4540
4540
  if (a === St()) break;
4541
4541
  a = Lt(a, !1);
@@ -4633,7 +4633,7 @@ function Sr(e, n, t) {
4633
4633
  return Array.from(e.children).forEach(function(l) {
4634
4634
  var o, s, r, i;
4635
4635
  if (!(!yt(l, n.draggable, e, !1) || l.animated || l === t)) {
4636
- var u = je(l);
4636
+ var u = qe(l);
4637
4637
  a.left = Math.min((o = a.left) !== null && o !== void 0 ? o : 1 / 0, u.left), a.top = Math.min((s = a.top) !== null && s !== void 0 ? s : 1 / 0, u.top), a.right = Math.max((r = a.right) !== null && r !== void 0 ? r : -1 / 0, u.right), a.bottom = Math.max((i = a.bottom) !== null && i !== void 0 ? i : -1 / 0, u.bottom);
4638
4638
  }
4639
4639
  }), a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
@@ -4649,7 +4649,7 @@ function wc() {
4649
4649
  if (!(ue(l, "display") === "none" || l === ce.ghost)) {
4650
4650
  e.push({
4651
4651
  target: l,
4652
- rect: je(l)
4652
+ rect: qe(l)
4653
4653
  });
4654
4654
  var o = kt({}, e[e.length - 1].rect);
4655
4655
  if (l.thisAnimationDuration) {
@@ -4677,7 +4677,7 @@ function wc() {
4677
4677
  }
4678
4678
  var o = !1, s = 0;
4679
4679
  e.forEach(function(r) {
4680
- var i = 0, u = r.target, m = u.fromRect, c = je(u), h = u.prevFromRect, p = u.prevToRect, D = r.rect, g = rn(u, !0);
4680
+ var i = 0, u = r.target, m = u.fromRect, c = qe(u), h = u.prevFromRect, p = u.prevToRect, D = r.rect, g = rn(u, !0);
4681
4681
  g && (c.top -= g.f, c.left -= g.e), u.toRect = c, u.thisAnimationDuration && po(h, c) && !po(m, c) && // Make sure animatingRect is on line between toRect & fromRect
4682
4682
  (D.top - c.top) / (D.left - c.left) === (m.top - c.top) / (m.left - c.left) && (i = kc(D, h, p, l.options)), po(c, m) || (u.prevFromRect = m, u.prevToRect = c, i || (i = l.options.animation), l.animate(u, D, c, i)), i && (o = !0, s = Math.max(s, i), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
4683
4683
  u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
@@ -4825,7 +4825,7 @@ var G, Ue, ge, Le, jt, Sa, Ve, Pt, ln, it, Nn, Rt, pa, Xe, an = !1, Ba = !1, _a
4825
4825
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
4826
4826
  }
4827
4827
  })(), Dr = function(n, t) {
4828
- var a = ue(n), l = parseInt(a.width) - parseInt(a.paddingLeft) - parseInt(a.paddingRight) - parseInt(a.borderLeftWidth) - parseInt(a.borderRightWidth), o = mn(n, 0, t), s = mn(n, 1, t), r = o && ue(o), i = s && ue(s), u = r && parseInt(r.marginLeft) + parseInt(r.marginRight) + je(o).width, m = i && parseInt(i.marginLeft) + parseInt(i.marginRight) + je(s).width;
4828
+ var a = ue(n), l = parseInt(a.width) - parseInt(a.paddingLeft) - parseInt(a.paddingRight) - parseInt(a.borderLeftWidth) - parseInt(a.borderRightWidth), o = mn(n, 0, t), s = mn(n, 1, t), r = o && ue(o), i = s && ue(s), u = r && parseInt(r.marginLeft) + parseInt(r.marginRight) + qe(o).width, m = i && parseInt(i.marginLeft) + parseInt(i.marginRight) + qe(s).width;
4829
4829
  if (a.display === "flex")
4830
4830
  return a.flexDirection === "column" || a.flexDirection === "column-reverse" ? "vertical" : "horizontal";
4831
4831
  if (a.display === "grid")
@@ -4843,7 +4843,7 @@ var G, Ue, ge, Le, jt, Sa, Ve, Pt, ln, it, Nn, Rt, pa, Xe, an = !1, Ba = !1, _a
4843
4843
  return _a.some(function(l) {
4844
4844
  var o = l[ot].options.emptyInsertThreshold;
4845
4845
  if (!(!o || qo(l))) {
4846
- var s = je(l), r = n >= s.left - o && n <= s.right + o, i = t >= s.top - o && t <= s.bottom + o;
4846
+ var s = qe(l), r = n >= s.left - o && n <= s.right + o, i = t >= s.top - o && t <= s.bottom + o;
4847
4847
  if (r && i)
4848
4848
  return a = l;
4849
4849
  }
@@ -4999,7 +4999,7 @@ ce.prototype = /** @lends Sortable.prototype */
4999
4999
  _prepareDragStart: function(n, t, a) {
5000
5000
  var l = this, o = l.el, s = l.options, r = o.ownerDocument, i;
5001
5001
  if (a && !G && a.parentNode === o) {
5002
- var u = je(a);
5002
+ var u = qe(a);
5003
5003
  if (Le = o, G = a, Ue = G.parentNode, jt = G.nextSibling, Sa = a, pa = s.group, ce.dragged = G, Yt = {
5004
5004
  target: G,
5005
5005
  clientX: (t || n).clientX,
@@ -5111,7 +5111,7 @@ ce.prototype = /** @lends Sortable.prototype */
5111
5111
  },
5112
5112
  _appendGhost: function() {
5113
5113
  if (!ge) {
5114
- var n = this.options.fallbackOnBody ? document.body : Le, t = je(G, !0, ga, !0, n), a = this.options;
5114
+ var n = this.options.fallbackOnBody ? document.body : Le, t = qe(G, !0, ga, !0, n), a = this.options;
5115
5115
  if (ga) {
5116
5116
  for (Je = n; ue(Je, "position") === "static" && ue(Je, "transform") === "none" && Je !== document; )
5117
5117
  Je = Je.parentNode;
@@ -5152,7 +5152,7 @@ ce.prototype = /** @lends Sortable.prototype */
5152
5152
  target: a,
5153
5153
  completed: v,
5154
5154
  onMove: function(le, fe) {
5155
- return ya(Le, t, G, l, le, je(le), n, fe);
5155
+ return ya(Le, t, G, l, le, qe(le), n, fe);
5156
5156
  },
5157
5157
  changed: C
5158
5158
  }, U));
@@ -5181,23 +5181,23 @@ ce.prototype = /** @lends Sortable.prototype */
5181
5181
  if (G.contains(n.target) || a.animated && a.animatingX && a.animatingY || D._ignoreWhileAnimating === a)
5182
5182
  return v(!1);
5183
5183
  if (Ba = !1, u && !r.disabled && (m ? c || (s = Ue !== Le) : Xe === this || (this.lastPutMode = pa.checkPull(this, u, G, n)) && i.checkPut(this, u, G, n))) {
5184
- if (p = this._getDirection(n, a) === "vertical", l = je(G), f("dragOverValid"), ce.eventCanceled) return g;
5184
+ if (p = this._getDirection(n, a) === "vertical", l = qe(G), f("dragOverValid"), ce.eventCanceled) return g;
5185
5185
  if (s)
5186
5186
  return Ue = Le, d(), this._hideClone(), f("revert"), ce.eventCanceled || (jt ? Le.insertBefore(G, jt) : Le.appendChild(G)), v(!0);
5187
5187
  var F = qo(t, r.draggable);
5188
5188
  if (!F || Bc(n, p, this) && !F.animated) {
5189
5189
  if (F === G)
5190
5190
  return v(!1);
5191
- if (F && t === n.target && (a = F), a && (o = je(a)), ya(Le, t, G, l, a, o, n, !!a) !== !1)
5191
+ if (F && t === n.target && (a = F), a && (o = qe(a)), ya(Le, t, G, l, a, o, n, !!a) !== !1)
5192
5192
  return d(), F && F.nextSibling ? t.insertBefore(G, F.nextSibling) : t.appendChild(G), Ue = t, C(), v(!0);
5193
5193
  } else if (F && Fc(n, p, this)) {
5194
5194
  var A = mn(t, 0, r, !0);
5195
5195
  if (A === G)
5196
5196
  return v(!1);
5197
- if (a = A, o = je(a), ya(Le, t, G, l, a, o, n, !1) !== !1)
5197
+ if (a = A, o = qe(a), ya(Le, t, G, l, a, o, n, !1) !== !1)
5198
5198
  return d(), t.insertBefore(G, A), Ue = t, C(), v(!0);
5199
5199
  } else if (a.parentNode === t) {
5200
- o = je(a);
5200
+ o = qe(a);
5201
5201
  var b = 0, O, H = G.parentNode !== t, $ = !Tc(G.animated && G.toRect || l, a.animated && a.toRect || o, p), L = p ? "top" : "left", z = Fl(a, "top", "top") || Fl(G, "top", "top"), V = z ? z.scrollTop : void 0;
5202
5202
  nn !== a && (O = o[L], Yn = !1, ha = !$ && r.invertSwap || H), b = _c(n, a, o, p, $ ? 1 : r.swapThreshold, r.invertedSwapThreshold == null ? r.swapThreshold : r.invertedSwapThreshold, ha, nn === a);
5203
5203
  var B;
@@ -5214,7 +5214,7 @@ ce.prototype = /** @lends Sortable.prototype */
5214
5214
  y = b === 1;
5215
5215
  var E = ya(Le, t, G, l, a, o, n, y);
5216
5216
  if (E !== !1)
5217
- return (E === 1 || E === -1) && (y = E === 1), Io = !0, setTimeout($c, 30), d(), y && !k ? t.appendChild(G) : a.parentNode.insertBefore(G, y ? k : a), z && Cr(z, 0, V - z.scrollTop), Ue = G.parentNode, O !== void 0 && !ha && (ka = Math.abs(O - je(a)[L])), C(), v(!0);
5217
+ return (E === 1 || E === -1) && (y = E === 1), Io = !0, setTimeout($c, 30), d(), y && !k ? t.appendChild(G) : a.parentNode.insertBefore(G, y ? k : a), z && Cr(z, 0, V - z.scrollTop), Ue = G.parentNode, O !== void 0 && !ha && (ka = Math.abs(O - qe(a)[L])), C(), v(!0);
5218
5218
  }
5219
5219
  if (t.contains(G))
5220
5220
  return v(!1);
@@ -5391,7 +5391,7 @@ function ya(e, n, t, a, l, o, s, r) {
5391
5391
  return window.CustomEvent && !$t && !aa ? i = new CustomEvent("move", {
5392
5392
  bubbles: !0,
5393
5393
  cancelable: !0
5394
- }) : (i = document.createEvent("Event"), i.initEvent("move", !0, !0)), i.to = n, i.from = e, i.dragged = t, i.draggedRect = a, i.related = l || n, i.relatedRect = o || je(n), i.willInsertAfter = r, i.originalEvent = s, e.dispatchEvent(i), m && (c = m.call(u, i, s)), c;
5394
+ }) : (i = document.createEvent("Event"), i.initEvent("move", !0, !0)), i.to = n, i.from = e, i.dragged = t, i.draggedRect = a, i.related = l || n, i.relatedRect = o || qe(n), i.willInsertAfter = r, i.originalEvent = s, e.dispatchEvent(i), m && (c = m.call(u, i, s)), c;
5395
5395
  }
5396
5396
  function Co(e) {
5397
5397
  e.draggable = !1;
@@ -5400,11 +5400,11 @@ function $c() {
5400
5400
  Io = !1;
5401
5401
  }
5402
5402
  function Fc(e, n, t) {
5403
- var a = je(mn(t.el, 0, t.options, !0)), l = Sr(t.el, t.options, ge), o = 10;
5403
+ var a = qe(mn(t.el, 0, t.options, !0)), l = Sr(t.el, t.options, ge), o = 10;
5404
5404
  return n ? e.clientX < l.left - o || e.clientY < a.top && e.clientX < a.right : e.clientY < l.top - o || e.clientY < a.bottom && e.clientX < a.left;
5405
5405
  }
5406
5406
  function Bc(e, n, t) {
5407
- var a = je(qo(t.el, t.options.draggable)), l = Sr(t.el, t.options, ge), o = 10;
5407
+ var a = qe(qo(t.el, t.options.draggable)), l = Sr(t.el, t.options, ge), o = 10;
5408
5408
  return n ? e.clientX > l.right + o || e.clientY > a.bottom && e.clientX > a.left : e.clientY > l.bottom + o || e.clientX > a.right && e.clientY > a.top;
5409
5409
  }
5410
5410
  function _c(e, n, t, a, l, o, s, r) {
@@ -5480,7 +5480,7 @@ ce.create = function(e, n) {
5480
5480
  return new ce(e, n);
5481
5481
  };
5482
5482
  ce.version = gc;
5483
- var ze = [], On, Fo, Bo = !1, wo, So, Ra, Rn;
5483
+ var je = [], On, Fo, Bo = !1, wo, So, Ra, Rn;
5484
5484
  function Lc() {
5485
5485
  function e() {
5486
5486
  this.defaults = {
@@ -5506,7 +5506,7 @@ function Lc() {
5506
5506
  this.sortable.nativeDraggable ? Ae(document, "dragover", this._handleAutoScroll) : (Ae(document, "pointermove", this._handleFallbackAutoScroll), Ae(document, "touchmove", this._handleFallbackAutoScroll), Ae(document, "mousemove", this._handleFallbackAutoScroll)), Pl(), Ea(), Cc();
5507
5507
  },
5508
5508
  nulling: function() {
5509
- Ra = Fo = On = Bo = Rn = wo = So = null, ze.length = 0;
5509
+ Ra = Fo = On = Bo = Rn = wo = So = null, je.length = 0;
5510
5510
  },
5511
5511
  _handleFallbackAutoScroll: function(t) {
5512
5512
  this._handleAutoScroll(t, !0);
@@ -5534,9 +5534,9 @@ function Lc() {
5534
5534
  });
5535
5535
  }
5536
5536
  function Ea() {
5537
- ze.forEach(function(e) {
5537
+ je.forEach(function(e) {
5538
5538
  clearInterval(e.pid);
5539
- }), ze = [];
5539
+ }), je = [];
5540
5540
  }
5541
5541
  function Pl() {
5542
5542
  clearInterval(Rn);
@@ -5547,16 +5547,16 @@ var ko = br(function(e, n, t, a) {
5547
5547
  Fo !== t && (Fo = t, Ea(), On = n.scroll, m = n.scrollFn, On === !0 && (On = Lt(t, !0)));
5548
5548
  var c = 0, h = On;
5549
5549
  do {
5550
- var p = h, D = je(p), g = D.top, f = D.bottom, d = D.left, v = D.right, C = D.width, F = D.height, A = void 0, b = void 0, O = p.scrollWidth, H = p.scrollHeight, $ = ue(p), L = p.scrollLeft, z = p.scrollTop;
5550
+ var p = h, D = qe(p), g = D.top, f = D.bottom, d = D.left, v = D.right, C = D.width, F = D.height, A = void 0, b = void 0, O = p.scrollWidth, H = p.scrollHeight, $ = ue(p), L = p.scrollLeft, z = p.scrollTop;
5551
5551
  p === i ? (A = C < O && ($.overflowX === "auto" || $.overflowX === "scroll" || $.overflowX === "visible"), b = F < H && ($.overflowY === "auto" || $.overflowY === "scroll" || $.overflowY === "visible")) : (A = C < O && ($.overflowX === "auto" || $.overflowX === "scroll"), b = F < H && ($.overflowY === "auto" || $.overflowY === "scroll"));
5552
5552
  var V = A && (Math.abs(v - l) <= s && L + C < O) - (Math.abs(d - l) <= s && !!L), B = b && (Math.abs(f - o) <= s && z + F < H) - (Math.abs(g - o) <= s && !!z);
5553
- if (!ze[c])
5553
+ if (!je[c])
5554
5554
  for (var T = 0; T <= c; T++)
5555
- ze[T] || (ze[T] = {});
5556
- (ze[c].vx != V || ze[c].vy != B || ze[c].el !== p) && (ze[c].el = p, ze[c].vx = V, ze[c].vy = B, clearInterval(ze[c].pid), (V != 0 || B != 0) && (u = !0, ze[c].pid = setInterval((function() {
5555
+ je[T] || (je[T] = {});
5556
+ (je[c].vx != V || je[c].vy != B || je[c].el !== p) && (je[c].el = p, je[c].vx = V, je[c].vy = B, clearInterval(je[c].pid), (V != 0 || B != 0) && (u = !0, je[c].pid = setInterval((function() {
5557
5557
  a && this.layer === 0 && ce.active._onTouchMove(Ra);
5558
- var k = ze[this.layer].vy ? ze[this.layer].vy * r : 0, y = ze[this.layer].vx ? ze[this.layer].vx * r : 0;
5559
- typeof m == "function" && m.call(ce.dragged.parentNode[ot], y, k, e, Ra, ze[this.layer].el) !== "continue" || Cr(ze[this.layer].el, y, k);
5558
+ var k = je[this.layer].vy ? je[this.layer].vy * r : 0, y = je[this.layer].vx ? je[this.layer].vx * r : 0;
5559
+ typeof m == "function" && m.call(ce.dragged.parentNode[ot], y, k, e, Ra, je[this.layer].el) !== "continue" || Cr(je[this.layer].el, y, k);
5560
5560
  }).bind({
5561
5561
  layer: c
5562
5562
  }), 24))), c++;
@@ -5656,7 +5656,7 @@ function Uc(e, n, t, a = null) {
5656
5656
  const l = La(e), o = l ? [...il(e)] : il(e);
5657
5657
  if (t >= 0 && t < o.length) {
5658
5658
  const s = o.splice(n, 1)[0];
5659
- qe(() => {
5659
+ ze(() => {
5660
5660
  o.splice(t, 0, s), l && (e.value = o);
5661
5661
  });
5662
5662
  }
@@ -5720,7 +5720,7 @@ function Jc(e, n, t, a) {
5720
5720
  };
5721
5721
  }
5722
5722
  const h = P(() => e.value.map((B, T) => c(B, T))), p = (B = void 0) => {
5723
- u.value++, M(B) || a("update:modelValue", B), qe(() => {
5723
+ u.value++, M(B) || a("update:modelValue", B), ze(() => {
5724
5724
  n();
5725
5725
  });
5726
5726
  }, D = (B) => {
@@ -5886,7 +5886,7 @@ const Qc = "a-sortable-", ed = ["id"], td = { key: 1 }, nd = { class: "a-sortabl
5886
5886
  } = Jc(o, p, a, l);
5887
5887
  return Oo(() => {
5888
5888
  F();
5889
- }), qe(() => {
5889
+ }), ze(() => {
5890
5890
  H.value = document.querySelector("#" + c.value), p();
5891
5891
  }), ke(
5892
5892
  () => a.disableDraggable,
@@ -6260,8 +6260,8 @@ const sd = {
6260
6260
  } finally {
6261
6261
  h.value = !1;
6262
6262
  }
6263
- }, Ee = Tt("inputRef"), ve = async (q) => {
6264
- g.value = { id: q.raw.id, customName: q.raw.customName }, await qe(), Ee.value?.focus();
6263
+ }, Ee = Tt("inputRef"), pe = async (q) => {
6264
+ g.value = { id: q.raw.id, customName: q.raw.customName }, await ze(), Ee.value?.focus();
6265
6265
  }, Fe = async (q) => {
6266
6266
  if (Q(g.value)) return;
6267
6267
  h.value = !0;
@@ -6388,7 +6388,7 @@ const sd = {
6388
6388
  "show-delete-button": "",
6389
6389
  "permanent-buttons": "",
6390
6390
  onOnDelete: fe,
6391
- onOnEdit: ve
6391
+ onOnEdit: pe
6392
6392
  }, Ut({
6393
6393
  item: x(({ item: re }) => [
6394
6394
  g.value && g.value.id === re.raw.id ? (I(), K(hl, {
@@ -6396,7 +6396,7 @@ const sd = {
6396
6396
  ref_key: "inputRef",
6397
6397
  ref: Ee,
6398
6398
  modelValue: g.value.customName,
6399
- "onUpdate:modelValue": J[5] || (J[5] = (pe) => g.value.customName = pe),
6399
+ "onUpdate:modelValue": J[5] || (J[5] = (he) => g.value.customName = he),
6400
6400
  "hide-details": "auto",
6401
6401
  v: _(A)
6402
6402
  }, null, 8, ["modelValue", "v"])) : (I(), ne("div", cd, ee(re.raw.customName), 1))
@@ -6412,7 +6412,7 @@ const sd = {
6412
6412
  size: "x-small",
6413
6413
  variant: "text",
6414
6414
  class: "mx-1",
6415
- onClick: de((pe) => Fe(re), ["stop"])
6415
+ onClick: de((he) => Fe(re), ["stop"])
6416
6416
  }, {
6417
6417
  default: x(() => [
6418
6418
  S(we, { icon: "mdi-check" }),
@@ -6429,7 +6429,7 @@ const sd = {
6429
6429
  size: "x-small",
6430
6430
  variant: "text",
6431
6431
  class: "mx-1",
6432
- onClick: J[6] || (J[6] = de((pe) => X(), ["stop"]))
6432
+ onClick: J[6] || (J[6] = de((he) => X(), ["stop"]))
6433
6433
  }, {
6434
6434
  default: x(() => [
6435
6435
  S(we, { icon: "mdi-close" }),
@@ -6575,15 +6575,15 @@ const sd = {
6575
6575
  const c = N(/* @__PURE__ */ new Map());
6576
6576
  un(pt, c);
6577
6577
  const h = () => {
6578
- m.value++, qe(() => {
6578
+ m.value++, ze(() => {
6579
6579
  l("submit"), s();
6580
6580
  });
6581
6581
  }, { clearAll: p, clearAllFilterSelected: D } = Ct(), g = () => {
6582
- qe(() => {
6582
+ ze(() => {
6583
6583
  m.value++, l("bookmarkLoadAfter"), s();
6584
6584
  });
6585
6585
  }, f = () => {
6586
- p(i, r), D(i, r, c), qe(() => {
6586
+ p(i, r), D(i, r, c), ze(() => {
6587
6587
  m.value++, l("reset"), s();
6588
6588
  });
6589
6589
  }, d = P(() => r.touched), v = P(() => Object.entries(r.fields).filter(([, C]) => !C.render.skip).map(([C]) => C));
@@ -6970,15 +6970,15 @@ const sd = {
6970
6970
  const c = N(/* @__PURE__ */ new Map());
6971
6971
  un(pt, c);
6972
6972
  const h = () => {
6973
- m.value++, qe(() => {
6973
+ m.value++, ze(() => {
6974
6974
  l("submit");
6975
6975
  });
6976
6976
  }, { clearAll: p, clearAllFilterSelected: D } = Ct(), g = () => {
6977
- qe(() => {
6977
+ ze(() => {
6978
6978
  m.value++, l("bookmarkLoadAfter");
6979
6979
  });
6980
6980
  }, f = () => {
6981
- p(i, r), D(i, r, c), qe(() => {
6981
+ p(i, r), D(i, r, c), ze(() => {
6982
6982
  m.value++, l("reset");
6983
6983
  });
6984
6984
  }, d = () => {
@@ -7471,8 +7471,8 @@ function _d(e) {
7471
7471
  const h = new Set(c ?? []), p = m.find((g) => !h.has(g));
7472
7472
  if (p === void 0 || !e.isInlineEdit.value) return;
7473
7473
  const D = e.findEntry(p);
7474
- D && (t.value.has(p) || t.value.set(p, _e(D.data)), n.value.add(p), e.afterAutoOpen?.(p), qe(() => {
7475
- qe(() => {
7474
+ D && (t.value.has(p) || t.value.set(p, _e(D.data)), n.value.add(p), e.afterAutoOpen?.(p), ze(() => {
7475
+ ze(() => {
7476
7476
  e.rowsContainer.value?.querySelector(
7477
7477
  `${e.rowSelector}[data-id="${CSS.escape(String(p))}"]`
7478
7478
  )?.scrollIntoView({ block: "center", behavior: "smooth" });
@@ -7925,7 +7925,7 @@ const Rd = /* @__PURE__ */ De({
7925
7925
  applyError: le,
7926
7926
  hasPendingChanges: fe,
7927
7927
  movedCount: Ee,
7928
- reorderMode: ve,
7928
+ reorderMode: pe,
7929
7929
  enterReorderMode: Fe,
7930
7930
  cancelReorderMode: X,
7931
7931
  applyReorder: se
@@ -7958,8 +7958,8 @@ const Rd = /* @__PURE__ */ De({
7958
7958
  /* @__PURE__ */ new Map()
7959
7959
  );
7960
7960
  if (q && un(Vl, {
7961
- register: (j, Y, he) => {
7962
- q.set(j, { count: Y, hasChanges: he });
7961
+ register: (j, Y, ve) => {
7962
+ q.set(j, { count: Y, hasChanges: ve });
7963
7963
  },
7964
7964
  unregister: (j) => {
7965
7965
  q.delete(j);
@@ -7983,18 +7983,18 @@ const Rd = /* @__PURE__ */ De({
7983
7983
  if (w.hasChanges.value) return !0;
7984
7984
  }
7985
7985
  return !1;
7986
- }), te = P(() => y.value && a.showAddButton && !ve.value), re = P(
7987
- () => y.value && (ve.value || a.chips) && !c.value && !a.disableDrag
7988
- ), pe = P(
7986
+ }), te = P(() => y.value && a.showAddButton && !pe.value), re = P(
7987
+ () => y.value && (pe.value || a.chips) && !c.value && !a.disableDrag
7988
+ ), he = P(
7989
7989
  () => a.addLabel ? r(a.addLabel) : r("common.sortable.add")
7990
7990
  ), Re = P(() => a.emptyTitle ?? r("common.sortable.emptyTitle")), Ft = P(
7991
7991
  () => a.deleteConfirmTitle ?? r("common.sortable.deleteConfirmTitle")
7992
7992
  ), Z = P(
7993
7993
  () => a.deleteConfirmText ?? r("common.sortable.deleteConfirmText")
7994
7994
  ), ye = P(
7995
- () => !a.chips && !a.embedded && a.showReorderToggle && !ve.value && o.value.length > 0
7995
+ () => !a.chips && !a.embedded && a.showReorderToggle && !pe.value && o.value.length > 0
7996
7996
  ), Be = P(() => !!a.title && m.value), Me = P(
7997
- () => !!(a.title || i.header || i["reorder-toggle"] || ye.value || ve.value && !a.embedded)
7997
+ () => !!(a.title || i.header || i["reorder-toggle"] || ye.value || pe.value && !a.embedded)
7998
7998
  ), Bt = P(
7999
7999
  () => !!(a.title || i.header || i["reorder-toggle"] || i["view-body"])
8000
8000
  ), Za = P(() => !!a.onItemSave), Jt = (w) => {
@@ -8008,15 +8008,15 @@ const Rd = /* @__PURE__ */ De({
8008
8008
  return w;
8009
8009
  }), la = /* @__PURE__ */ new Map(), _t = P(() => {
8010
8010
  const w = o.value.length, j = [], Y = /* @__PURE__ */ new Set();
8011
- for (const he of h.viewItems.value) {
8012
- Y.add(he.key);
8013
- const Tn = H.value.has(he.key), fa = p.value.has(he.key), nl = a.loadingKeys?.has(he.key) ?? !1, oo = a.disableUnsaved ? !1 : v.value.has(he.key), lo = a.disableUnsaved ? !1 : _r.value.has(he.key), al = lo || oo, ol = he.index > 0, ll = he.index < w - 1, rt = la.get(he.key);
8014
- if (rt && rt.raw === he.raw && rt.index === he.index && rt.position === he.position && rt.editing === Tn && rt.expanded === fa && rt.loading === nl && rt.dirty === lo && rt.moved === oo && rt.unsaved === al && rt.canMoveUp === ol && rt.canMoveDown === ll) {
8011
+ for (const ve of h.viewItems.value) {
8012
+ Y.add(ve.key);
8013
+ const Tn = H.value.has(ve.key), fa = p.value.has(ve.key), nl = a.loadingKeys?.has(ve.key) ?? !1, oo = a.disableUnsaved ? !1 : v.value.has(ve.key), lo = a.disableUnsaved ? !1 : _r.value.has(ve.key), al = lo || oo, ol = ve.index > 0, ll = ve.index < w - 1, rt = la.get(ve.key);
8014
+ if (rt && rt.raw === ve.raw && rt.index === ve.index && rt.position === ve.position && rt.editing === Tn && rt.expanded === fa && rt.loading === nl && rt.dirty === lo && rt.moved === oo && rt.unsaved === al && rt.canMoveUp === ol && rt.canMoveDown === ll) {
8015
8015
  j.push(rt);
8016
8016
  continue;
8017
8017
  }
8018
8018
  const rl = {
8019
- ...he,
8019
+ ...ve,
8020
8020
  editing: Tn,
8021
8021
  expanded: fa,
8022
8022
  loading: nl,
@@ -8026,15 +8026,15 @@ const Rd = /* @__PURE__ */ De({
8026
8026
  canMoveUp: ol,
8027
8027
  canMoveDown: ll
8028
8028
  };
8029
- la.set(he.key, rl), j.push(rl);
8029
+ la.set(ve.key, rl), j.push(rl);
8030
8030
  }
8031
- for (const he of la.keys())
8032
- Y.has(he) || la.delete(he);
8031
+ for (const ve of la.keys())
8032
+ Y.has(ve) || la.delete(ve);
8033
8033
  return j;
8034
8034
  }), Go = P(() => _t.value.length === 0), We = (w) => _t.value.find((j) => j.key === w), Qt = xd({
8035
8035
  viewItems: P(() => _t.value.map((w) => ({ key: w.key }))),
8036
8036
  variant: "sortable",
8037
- isReorderMode: ve,
8037
+ isReorderMode: pe,
8038
8038
  disabled: P(() => !y.value),
8039
8039
  isEditing: (w) => H.value.has(w),
8040
8040
  onToggleEdit: (w) => {
@@ -8094,12 +8094,14 @@ const Rd = /* @__PURE__ */ De({
8094
8094
  dragClass: Jd,
8095
8095
  disabled: !re.value,
8096
8096
  onEnd: (j) => {
8097
- const he = j.item.getAttribute("data-id");
8098
- if (he !== null && he !== "") {
8099
- const Tn = Wl(he), fa = Tn > 0 ? Tn : he;
8097
+ const ve = j.item.getAttribute("data-id");
8098
+ if (ve !== null && ve !== "") {
8099
+ const Tn = Wl(ve), fa = String(Tn) === ve ? Tn : ve;
8100
8100
  Jt(fa);
8101
8101
  }
8102
- a.updatePosition && (o.value = h.recalculatePositions(o.value));
8102
+ a.updatePosition && ze(() => {
8103
+ o.value = h.recalculatePositions(o.value);
8104
+ });
8103
8105
  }
8104
8106
  });
8105
8107
  ke(re, (j) => {
@@ -8111,7 +8113,7 @@ const Rd = /* @__PURE__ */ De({
8111
8113
  }, eo = (w) => {
8112
8114
  y.value && (k(), l("add", { afterId: w.key }));
8113
8115
  }, ra = (w) => {
8114
- if (y.value && !(ve.value && !a.allowEditInReorder)) {
8116
+ if (y.value && !(pe.value && !a.allowEditInReorder)) {
8115
8117
  if (H.value.has(w.key)) {
8116
8118
  ia(w);
8117
8119
  return;
@@ -8119,16 +8121,16 @@ const Rd = /* @__PURE__ */ De({
8119
8121
  b.value && (z(w), p.value.delete(w.key)), l("edit", w);
8120
8122
  }
8121
8123
  }, Zo = (w) => {
8122
- if (a.disabled || a.loading || ve.value && !a.allowEditInReorder) return;
8124
+ if (a.disabled || a.loading || pe.value && !a.allowEditInReorder) return;
8123
8125
  const j = w.key, Y = p.value.has(j);
8124
8126
  if (Y)
8125
8127
  p.value.delete(j);
8126
8128
  else {
8127
- for (const he of p.value) p.value.delete(he);
8129
+ for (const ve of p.value) p.value.delete(ve);
8128
8130
  p.value.add(j);
8129
8131
  }
8130
8132
  l("item-expand", w, !Y);
8131
- }, Jo = (w) => a.chips || a.disableRowClick || a.disabled || a.loading || ve.value && !a.allowEditInReorder ? !1 : !!(w.editing || w.expanded || !a.readonly && a.showEditButton), Lr = (w) => {
8133
+ }, Jo = (w) => a.chips || a.disableRowClick || a.disabled || a.loading || pe.value && !a.allowEditInReorder ? !1 : !!(w.editing || w.expanded || !a.readonly && a.showEditButton), Lr = (w) => {
8132
8134
  if (Jo(w)) {
8133
8135
  if (w.editing || w.expanded) {
8134
8136
  ia(w);
@@ -8247,7 +8249,7 @@ const Rd = /* @__PURE__ */ De({
8247
8249
  editing: w.editing,
8248
8250
  dirty: w.dirty,
8249
8251
  unsaved: w.unsaved,
8250
- reorderMode: ve.value,
8252
+ reorderMode: pe.value,
8251
8253
  moved: w.moved,
8252
8254
  canMoveUp: w.canMoveUp,
8253
8255
  canMoveDown: w.canMoveDown,
@@ -8321,7 +8323,7 @@ const Rd = /* @__PURE__ */ De({
8321
8323
  me(w.$slots, "header", Ne({ title: e.title }, tl.value), () => [
8322
8324
  e.title ? (I(), ne("h3", tf, ee(e.title), 1)) : oe("", !0),
8323
8325
  Se("div", nf, [
8324
- _(ve) && !e.embedded ? me(w.$slots, "reorder-toolbar", ul(Ne({ key: 0 }, jr.value)), () => [
8326
+ _(pe) && !e.embedded ? me(w.$slots, "reorder-toolbar", ul(Ne({ key: 0 }, jr.value)), () => [
8325
8327
  S(qd, {
8326
8328
  class: Ze({ "a-le-toolbar-status--pending": xe.value }),
8327
8329
  "has-pending-changes": xe.value,
@@ -8411,7 +8413,7 @@ const Rd = /* @__PURE__ */ De({
8411
8413
  ]),
8412
8414
  _: 1
8413
8415
  })
8414
- ])) : !_(ve) && w.$slots["view-body"] ? (I(), ne("div", lf, [
8416
+ ])) : !_(pe) && w.$slots["view-body"] ? (I(), ne("div", lf, [
8415
8417
  me(w.$slots, "view-body", {
8416
8418
  items: o.value,
8417
8419
  mode: s.value,
@@ -8425,7 +8427,7 @@ const Rd = /* @__PURE__ */ De({
8425
8427
  }, () => [
8426
8428
  S(Ud, {
8427
8429
  title: Re.value,
8428
- "add-label": pe.value,
8430
+ "add-label": he.value,
8429
8431
  "can-add": te.value,
8430
8432
  onAdd: En
8431
8433
  }, null, 8, ["title", "add-label", "can-add"])
@@ -8446,17 +8448,17 @@ const Rd = /* @__PURE__ */ De({
8446
8448
  "a-le-row--editing": Y.editing,
8447
8449
  "a-le-row--expanded": Y.expanded,
8448
8450
  "a-le-row--unsaved": Y.unsaved,
8449
- "a-le-row--reorder": _(ve),
8451
+ "a-le-row--reorder": _(pe),
8450
8452
  "a-le-row--grabbed": _(Qt).isGrabbed(Y.key),
8451
8453
  "a-le-row--clickable": Jo(Y),
8452
8454
  [`a-le-row--validation-${_(Qa)(Y.raw, Y.key, Y.index)}`]: _(Qa)(Y.raw, Y.key, Y.index) !== null
8453
8455
  }]),
8454
- onKeydown: (he) => _(Qt).handleKeydown(Y.key, he)
8456
+ onKeydown: (ve) => _(Qt).handleKeydown(Y.key, ve)
8455
8457
  }, [
8456
8458
  me(w.$slots, "before-item", Ne({ ref_for: !0 }, Ot(Y))),
8457
8459
  Se("div", {
8458
8460
  class: "a-le-row-header",
8459
- onClick: (he) => Lr(Y)
8461
+ onClick: (ve) => Lr(Y)
8460
8462
  }, [
8461
8463
  re.value ? (I(), K(Gd, { key: 0 })) : oe("", !0),
8462
8464
  Se("div", cf, [
@@ -8468,7 +8470,7 @@ const Rd = /* @__PURE__ */ De({
8468
8470
  "dot-only": e.chips
8469
8471
  }, null, 8, ["dot-only"])) : oe("", !0)
8470
8472
  ]),
8471
- !e.chips && !_(ve) ? (I(), ne("div", ff, [
8473
+ !e.chips && !_(pe) ? (I(), ne("div", ff, [
8472
8474
  me(w.$slots, "item-status", Ne({ ref_for: !0 }, Ot(Y)), () => [
8473
8475
  e.statusField && Y.raw[e.statusField] != null && Y.raw[e.statusField] !== "" ? (I(), ne("span", mf, ee(Y.raw[e.statusField]), 1)) : oe("", !0)
8474
8476
  ])
@@ -8485,7 +8487,7 @@ const Rd = /* @__PURE__ */ De({
8485
8487
  active: !1,
8486
8488
  disabled: !Y.canMoveUp,
8487
8489
  class: "a-le-action a-le-action--up",
8488
- onClick: de((he) => ca(Y.index), ["stop"])
8490
+ onClick: de((ve) => ca(Y.index), ["stop"])
8489
8491
  }, {
8490
8492
  default: x(() => [
8491
8493
  S(we, {
@@ -8503,7 +8505,7 @@ const Rd = /* @__PURE__ */ De({
8503
8505
  active: !1,
8504
8506
  disabled: !Y.canMoveDown,
8505
8507
  class: "a-le-action a-le-action--down",
8506
- onClick: de((he) => da(Y.index), ["stop"])
8508
+ onClick: de((ve) => da(Y.index), ["stop"])
8507
8509
  }, {
8508
8510
  default: x(() => [
8509
8511
  S(we, {
@@ -8522,7 +8524,7 @@ const Rd = /* @__PURE__ */ De({
8522
8524
  density: "compact",
8523
8525
  active: !1,
8524
8526
  class: "a-le-action a-le-action--chip-close",
8525
- onClick: de((he) => sa(Y), ["stop"])
8527
+ onClick: de((ve) => sa(Y), ["stop"])
8526
8528
  }, {
8527
8529
  default: x(() => [
8528
8530
  S(we, {
@@ -8532,7 +8534,7 @@ const Rd = /* @__PURE__ */ De({
8532
8534
  ]),
8533
8535
  _: 1
8534
8536
  }, 8, ["onClick"])) : oe("", !0)
8535
- ], 64)) : _(ve) ? (I(), ne(Ye, { key: 1 }, [
8537
+ ], 64)) : _(pe) ? (I(), ne(Ye, { key: 1 }, [
8536
8538
  S(Te, {
8537
8539
  icon: "",
8538
8540
  size: "small",
@@ -8540,7 +8542,7 @@ const Rd = /* @__PURE__ */ De({
8540
8542
  density: "comfortable",
8541
8543
  disabled: !Y.canMoveUp,
8542
8544
  class: "mx-1 a-le-action a-le-action--up",
8543
- onClick: de((he) => ca(Y.index), ["stop"])
8545
+ onClick: de((ve) => ca(Y.index), ["stop"])
8544
8546
  }, {
8545
8547
  default: x(() => [
8546
8548
  S(we, {
@@ -8562,7 +8564,7 @@ const Rd = /* @__PURE__ */ De({
8562
8564
  density: "comfortable",
8563
8565
  disabled: !Y.canMoveDown,
8564
8566
  class: "mx-1 a-le-action a-le-action--down",
8565
- onClick: de((he) => da(Y.index), ["stop"])
8567
+ onClick: de((ve) => da(Y.index), ["stop"])
8566
8568
  }, {
8567
8569
  default: x(() => [
8568
8570
  S(we, {
@@ -8601,7 +8603,7 @@ const Rd = /* @__PURE__ */ De({
8601
8603
  default: x(() => [
8602
8604
  S(at, {
8603
8605
  disabled: !Y.canMoveUp,
8604
- onClick: de((he) => no(Y.index), ["stop"])
8606
+ onClick: de((ve) => no(Y.index), ["stop"])
8605
8607
  }, {
8606
8608
  prepend: x(() => [
8607
8609
  S(we, { icon: "mdi-arrow-collapse-up" })
@@ -8618,7 +8620,7 @@ const Rd = /* @__PURE__ */ De({
8618
8620
  }, 8, ["disabled", "onClick"]),
8619
8621
  S(at, {
8620
8622
  disabled: !Y.canMoveDown,
8621
- onClick: de((he) => ao(Y.index), ["stop"])
8623
+ onClick: de((ve) => ao(Y.index), ["stop"])
8622
8624
  }, {
8623
8625
  prepend: x(() => [
8624
8626
  S(we, { icon: "mdi-arrow-collapse-down" })
@@ -8635,7 +8637,7 @@ const Rd = /* @__PURE__ */ De({
8635
8637
  }, 8, ["disabled", "onClick"]),
8636
8638
  e.showMoveToPosition && _t.value.length > 1 ? (I(), K(at, {
8637
8639
  key: 0,
8638
- onClick: de((he) => Rr(Y), ["stop"])
8640
+ onClick: de((ve) => Rr(Y), ["stop"])
8639
8641
  }, {
8640
8642
  prepend: x(() => [
8641
8643
  S(we, { icon: "mdi-target" })
@@ -8652,7 +8654,7 @@ const Rd = /* @__PURE__ */ De({
8652
8654
  }, 8, ["onClick"])) : oe("", !0),
8653
8655
  e.showAddAfterAction && y.value ? (I(), K(at, {
8654
8656
  key: 1,
8655
- onClick: de((he) => eo(Y), ["stop"])
8657
+ onClick: de((ve) => eo(Y), ["stop"])
8656
8658
  }, {
8657
8659
  prepend: x(() => [
8658
8660
  S(we, { icon: "mdi-plus" })
@@ -8669,7 +8671,7 @@ const Rd = /* @__PURE__ */ De({
8669
8671
  }, 8, ["onClick"])) : oe("", !0),
8670
8672
  e.showDeleteButton && y.value ? (I(), K(at, {
8671
8673
  key: 2,
8672
- onClick: de((he) => sa(Y), ["stop"])
8674
+ onClick: de((ve) => sa(Y), ["stop"])
8673
8675
  }, {
8674
8676
  prepend: x(() => [
8675
8677
  S(we, { icon: "mdi-trash-can-outline" })
@@ -8702,7 +8704,7 @@ const Rd = /* @__PURE__ */ De({
8702
8704
  color: "primary",
8703
8705
  density: "comfortable",
8704
8706
  class: "mx-1 a-le-action a-le-action--edit",
8705
- onClick: de((he) => ra(Y), ["stop"])
8707
+ onClick: de((ve) => ra(Y), ["stop"])
8706
8708
  }, {
8707
8709
  default: x(() => [
8708
8710
  S(we, {
@@ -8724,7 +8726,7 @@ const Rd = /* @__PURE__ */ De({
8724
8726
  variant: "text",
8725
8727
  density: "comfortable",
8726
8728
  class: "mx-1 a-le-action a-le-action--delete",
8727
- onClick: de((he) => sa(Y), ["stop"])
8729
+ onClick: de((ve) => sa(Y), ["stop"])
8728
8730
  }, {
8729
8731
  default: x(() => [
8730
8732
  S(we, {
@@ -8763,7 +8765,7 @@ const Rd = /* @__PURE__ */ De({
8763
8765
  S(Aa, { density: "compact" }, {
8764
8766
  default: x(() => [
8765
8767
  S(at, {
8766
- onClick: de((he) => eo(Y), ["stop"])
8768
+ onClick: de((ve) => eo(Y), ["stop"])
8767
8769
  }, {
8768
8770
  prepend: x(() => [
8769
8771
  S(we, { icon: "mdi-plus" })
@@ -8791,19 +8793,19 @@ const Rd = /* @__PURE__ */ De({
8791
8793
  ])
8792
8794
  ])
8793
8795
  ], 8, uf),
8794
- Y.editing && (e.allowEditInReorder || !_(ve)) && w.$slots.item ? (I(), ne(Ye, { key: 0 }, [
8796
+ Y.editing && (e.allowEditInReorder || !_(pe)) && w.$slots.item ? (I(), ne(Ye, { key: 0 }, [
8795
8797
  Se("div", pf, [
8796
8798
  Se("div", hf, [
8797
8799
  me(w.$slots, "item", Ne({ ref_for: !0 }, Ot(Y)))
8798
8800
  ])
8799
8801
  ]),
8800
8802
  me(w.$slots, "item-footer", Ne({ ref_for: !0 }, Ot(Y)), () => [
8801
- Za.value && !_(ve) ? (I(), ne("div", gf, [
8803
+ Za.value && !_(pe) ? (I(), ne("div", gf, [
8802
8804
  j[2] || (j[2] = Se("div", { class: "a-le-row-footer-spacer" }, null, -1)),
8803
8805
  S(Te, {
8804
8806
  variant: "text",
8805
8807
  disabled: Y.loading,
8806
- onClick: de((he) => el(Y), ["stop"])
8808
+ onClick: de((ve) => el(Y), ["stop"])
8807
8809
  }, {
8808
8810
  default: x(() => [
8809
8811
  ie(ee(_(r)("common.button.cancel")), 1)
@@ -8815,7 +8817,7 @@ const Rd = /* @__PURE__ */ De({
8815
8817
  variant: "flat",
8816
8818
  "prepend-icon": "mdi-check",
8817
8819
  disabled: Y.loading,
8818
- onClick: de((he) => Qo(Y), ["stop"])
8820
+ onClick: de((ve) => Qo(Y), ["stop"])
8819
8821
  }, {
8820
8822
  default: x(() => [
8821
8823
  ie(ee(_(r)("common.button.save")), 1)
@@ -8824,7 +8826,7 @@ const Rd = /* @__PURE__ */ De({
8824
8826
  }, 8, ["disabled", "onClick"])
8825
8827
  ])) : oe("", !0)
8826
8828
  ])
8827
- ], 64)) : w.$slots["item-readonly"] && (e.readonly || Y.expanded) && (e.allowEditInReorder || !_(ve)) ? (I(), ne("div", yf, [
8829
+ ], 64)) : w.$slots["item-readonly"] && (e.readonly || Y.expanded) && (e.allowEditInReorder || !_(pe)) ? (I(), ne("div", yf, [
8828
8830
  Se("div", bf, [
8829
8831
  me(w.$slots, "item-readonly", Ne({ ref_for: !0 }, Ot(Y)))
8830
8832
  ])
@@ -8848,7 +8850,7 @@ const Rd = /* @__PURE__ */ De({
8848
8850
  icon: "mdi-plus",
8849
8851
  size: "18"
8850
8852
  }),
8851
- Se("span", null, ee(pe.value), 1)
8853
+ Se("span", null, ee(he.value), 1)
8852
8854
  ])
8853
8855
  ]) : oe("", !0)
8854
8856
  ]),
@@ -8992,7 +8994,7 @@ const Rd = /* @__PURE__ */ De({
8992
8994
  } finally {
8993
8995
  U.value = !1;
8994
8996
  }
8995
- }, ve = async (Z, ye = !1) => {
8997
+ }, pe = async (Z, ye = !1) => {
8996
8998
  const Be = Ce(Z) ? Z : [Z];
8997
8999
  U.value = !0;
8998
9000
  try {
@@ -9048,7 +9050,7 @@ const Rd = /* @__PURE__ */ De({
9048
9050
  return;
9049
9051
  }
9050
9052
  m.value = null;
9051
- }, pe = (Z) => {
9053
+ }, he = (Z) => {
9052
9054
  if (Ce(m.value)) {
9053
9055
  m.value = m.value.filter((ye) => ye !== Z.value);
9054
9056
  return;
@@ -9100,7 +9102,7 @@ const Rd = /* @__PURE__ */ De({
9100
9102
  },
9101
9103
  { immediate: !0 }
9102
9104
  ), n({
9103
- tryLoadModelValue: ve
9105
+ tryLoadModelValue: pe
9104
9106
  }), (Z, ye) => (I(), K(qn, {
9105
9107
  "model-value": C.value,
9106
9108
  items: R.value,
@@ -9137,7 +9139,7 @@ const Rd = /* @__PURE__ */ De({
9137
9139
  size: "small",
9138
9140
  text: `${Me.title} (${Me.raw.subtitle})`,
9139
9141
  disabled: Me.props.disabled,
9140
- "onClick:close": (Bt) => pe(Me.raw)
9142
+ "onClick:close": (Bt) => he(Me.raw)
9141
9143
  }, {
9142
9144
  default: x(() => [
9143
9145
  ie(ee(Me.raw.title) + " ", 1),
@@ -9396,4 +9398,4 @@ export {
9396
9398
  Kl as y,
9397
9399
  Wl as z
9398
9400
  };
9399
- //# sourceMappingURL=AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DxRqoX6k.mjs.map
9401
+ //# sourceMappingURL=AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-BU0cp-8J.mjs.map