@anzusystems/common-admin 1.47.0-beta.dev-1782072299 → 1.47.0-beta.dev-1782072499

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.
package/dist/labs.js CHANGED
@@ -1,12 +1,12 @@
1
- import { aG as Ka, aH as Ba, d as Ie, bT as Ra, bU as La, bV as An, j as Ze, k as Va, a1 as Ma, h as kt, i as Bt, aj as In, ak as Pn, al as En, am as Dn, ag as Rt, a_ as $n, aa as Tn, ab as Fn, ac as Kn, ad as Bn, an as Rn, ao as Ln, ae as Vn, af as Mn, bW as zn, bX as Nn, be as On, bY as za, as as Un, bZ as Qt, ap as Na, aq as Oa, aV as Ua, b2 as ja, ar as qa, E as Ha, a8 as Ga, a2 as Ja, b_ as Wa, q as Xa, p as Ya, x as Qa, a7 as Za, aI as _a, m as jn, b$ as eo, l as to, c0 as no, c1 as qn, c2 as Hn, c3 as Gn, c4 as Jn, c5 as Wn, c6 as Xn, c7 as Yn, c8 as Qn, c9 as Zn, g as Be, ca as ao, cb as oo, _ as _n, cc as lo, cd as io, ce as so, cf as ro, cg as co, aU as uo, ch as fo, ci as vo, cj as mo, z as yo, ck as ho, cl as go } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-CDFIJFqU.mjs";
2
- import { aE as Gi, cm as Ji, cn as Wi, aA as Xi, aB as Yi, aD as Qi, aF as Zi, aC as _i, aS as es, aJ as ts, bb as ns, aO as as, aX as os, ay as ls, az as is, co as ss, cp as rs, cq as ds, cr as cs, cs as us, ct as fs, ai as vs, ah as ms, cu as ys, cv as hs, cw as gs, cx as ps } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-CDFIJFqU.mjs";
1
+ import { aG as Ka, aH as Ba, d as Ie, bT as Ra, bU as La, bV as An, j as Ze, k as Va, a1 as Ma, h as kt, i as Bt, aj as In, ak as Pn, al as Dn, am as En, ag as Rt, a_ as $n, aa as Tn, ab as Fn, ac as Kn, ad as Bn, an as Rn, ao as Ln, ae as Vn, af as Mn, bW as zn, bX as Nn, be as On, bY as za, as as Un, bZ as Qt, ap as Na, aq as Oa, aV as Ua, b2 as ja, ar as qa, E as Ha, a8 as Ga, a2 as Ja, b_ as Wa, q as Xa, p as Ya, x as Qa, a7 as Za, aI as _a, m as jn, b$ as eo, l as to, c0 as no, c1 as qn, c2 as Hn, c3 as Gn, c4 as Jn, c5 as Wn, c6 as Xn, c7 as Yn, c8 as Qn, c9 as Zn, g as Be, ca as ao, cb as oo, _ as _n, cc as lo, cd as io, ce as so, cf as ro, cg as co, aU as uo, ch as fo, ci as vo, cj as mo, z as yo, ck as ho, cl as go } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-WyveKd3t.mjs";
2
+ import { aE as Gi, cm as Ji, cn as Wi, aA as Xi, aB as Yi, aD as Qi, aF as Zi, aC as _i, aS as es, aJ as ts, bb as ns, aO as as, aX as os, ay as ls, az as is, co as ss, cp as rs, cq as ds, cr as cs, cs as us, ct as fs, ai as vs, ah as ms, cu as ys, cv as hs, cw as gs, cx as ps, cy as bs } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-WyveKd3t.mjs";
3
3
  import { defineComponent as _e, inject as mt, provide as _t, ref as de, openBlock as x, createBlock as te, withModifiers as fe, withCtx as u, renderSlot as O, useModel as yt, computed as S, watch as $e, createElementBlock as N, createElementVNode as U, toDisplayString as V, unref as y, createVNode as r, createTextVNode as Q, Fragment as xe, renderList as st, normalizeClass as Ue, mergeModels as We, createCommentVNode as _, onMounted as en, toRaw as pn, resolveComponent as bn, mergeProps as ve, withDirectives as po, vShow as bo, useSlots as ea, useTemplateRef as Lt, isRef as ta, toValue as ko, reactive as wo, normalizeStyle as wt, normalizeProps as Je, guardReactiveProps as at, shallowRef as Zt, nextTick as Qe, onBeforeUnmount as tn, getCurrentInstance as na } from "vue";
4
4
  import { VForm as Co } from "vuetify/components/VForm";
5
5
  import { useI18n as lt } from "vue-i18n";
6
6
  import { VBtn as se } from "vuetify/components/VBtn";
7
7
  import { VList as Ct, VListItem as je, VListItemTitle as He } from "vuetify/components/VList";
8
8
  import { VMenu as Vt } from "vuetify/components/VMenu";
9
- import { useThrottleFn as Dt, useDebounceFn as xo } from "@vueuse/core";
9
+ import { useThrottleFn as Et, useDebounceFn as xo } from "@vueuse/core";
10
10
  import { VBtnToggle as So } from "vuetify/components/VBtnToggle";
11
11
  import aa from "axios";
12
12
  import { useDisplay as oa } from "vuetify";
@@ -21,7 +21,7 @@ import { VAlert as ln } from "vuetify/components/VAlert";
21
21
  import { VProgressCircular as sa } from "vuetify/components/VProgressCircular";
22
22
  import { VRadio as kn } from "vuetify/components/VRadio";
23
23
  import { VRadioGroup as Po } from "vuetify/components/VRadioGroup";
24
- import { onBeforeRouteLeave as Eo } from "vue-router";
24
+ import { onBeforeRouteLeave as Do } from "vue-router";
25
25
  const $i = /* @__PURE__ */ _e({
26
26
  __name: "AFilterWrapperSidebar",
27
27
  props: {
@@ -36,7 +36,7 @@ const $i = /* @__PURE__ */ _e({
36
36
  const m = () => {
37
37
  l("submit");
38
38
  };
39
- return (w, E) => (x(), te(Co, {
39
+ return (w, D) => (x(), te(Co, {
40
40
  name: e.formName,
41
41
  onSubmit: fe(m, ["prevent"])
42
42
  }, {
@@ -46,7 +46,7 @@ const $i = /* @__PURE__ */ _e({
46
46
  _: 3
47
47
  }, 8, ["name"]));
48
48
  }
49
- }), Do = { class: "d-flex align-center justify-center" }, $o = { class: "text-body-small mr-1" }, Ti = /* @__PURE__ */ _e({
49
+ }), Eo = { class: "d-flex align-center justify-center" }, $o = { class: "text-body-small mr-1" }, Ti = /* @__PURE__ */ _e({
50
50
  __name: "ADatatableOrdering",
51
51
  props: /* @__PURE__ */ We({
52
52
  variant: { default: "id" },
@@ -64,7 +64,7 @@ const $i = /* @__PURE__ */ _e({
64
64
  const l = e, n = k, i = yt(e, "modelValue"), m = mt(An);
65
65
  if (Ie(m))
66
66
  throw new Error("Incorrect provide/inject config.");
67
- const { t: w } = lt(), E = [
67
+ const { t: w } = lt(), D = [
68
68
  {
69
69
  id: 1,
70
70
  titleT: "common.system.datatable.ordering.mostRecent",
@@ -105,7 +105,7 @@ const $i = /* @__PURE__ */ _e({
105
105
  ], h = S(() => {
106
106
  const g = I.value.find((z) => z.id === i.value);
107
107
  return g ? w(g.titleT) : "";
108
- }), I = S(() => l.customOptions ? l.customOptions : l.variant === "most-relevant" ? c : l.variant === "id" ? b : E), j = (g) => {
108
+ }), I = S(() => l.customOptions ? l.customOptions : l.variant === "most-relevant" ? c : l.variant === "id" ? b : D), j = (g) => {
109
109
  i.value = g.id;
110
110
  }, M = (g) => {
111
111
  g.sortBy || (m.value = {
@@ -132,7 +132,7 @@ const $i = /* @__PURE__ */ _e({
132
132
  Ie(q) || (i.value = q.id);
133
133
  },
134
134
  { immediate: !0 }
135
- ), (g, z) => (x(), N("div", Do, [
135
+ ), (g, z) => (x(), N("div", Eo, [
136
136
  U("div", $o, V(y(w)("common.system.datatable.ordering.title")) + ": ", 1),
137
137
  r(se, {
138
138
  variant: "text",
@@ -195,7 +195,7 @@ const $i = /* @__PURE__ */ _e({
195
195
  const l = k, n = mt(An);
196
196
  if (Ie(n))
197
197
  throw new Error("Incorrect provide/inject config.");
198
- const { t: i } = lt(), { setStoredPage: m } = Ma(), w = S(() => Math.ceil(n.value.totalCount / n.value.rowsPerPage)), E = S(() => n.value.page * n.value.rowsPerPage - n.value.rowsPerPage + 1), b = S(() => n.value.page * n.value.rowsPerPage - n.value.rowsPerPage + n.value.currentViewCount), c = S(() => n.value.page === 1), h = S(() => !kt(n.value.hasNextPage) || n.value.page === w.value), I = S(() => kt(n.value.hasNextPage) && n.value.page === w.value || n.value.hasNextPage === !1), j = S(() => kt(n.value.hasNextPage) ? n.value.totalCount : n.value.hasNextPage ? b.value + 1 + "+" : b.value);
198
+ const { t: i } = lt(), { setStoredPage: m } = Ma(), w = S(() => Math.ceil(n.value.totalCount / n.value.rowsPerPage)), D = S(() => n.value.page * n.value.rowsPerPage - n.value.rowsPerPage + 1), b = S(() => n.value.page * n.value.rowsPerPage - n.value.rowsPerPage + n.value.currentViewCount), c = S(() => n.value.page === 1), h = S(() => !kt(n.value.hasNextPage) || n.value.page === w.value), I = S(() => kt(n.value.hasNextPage) && n.value.page === w.value || n.value.hasNextPage === !1), j = S(() => kt(n.value.hasNextPage) ? n.value.totalCount : n.value.hasNextPage ? b.value + 1 + "+" : b.value);
199
199
  $e(
200
200
  () => n.value.rowsPerPage,
201
201
  (B, X) => {
@@ -207,13 +207,13 @@ const $i = /* @__PURE__ */ _e({
207
207
  B !== X && (m(B), l("change"));
208
208
  }
209
209
  );
210
- const M = Dt(() => {
210
+ const M = Et(() => {
211
211
  n.value.page = 1;
212
- }, 300), g = Dt(() => {
212
+ }, 300), g = Et(() => {
213
213
  n.value.page = w.value;
214
- }, 300), z = Dt(() => {
214
+ }, 300), z = Et(() => {
215
215
  n.value.page = n.value.page - 1;
216
- }, 300), q = Dt(() => {
216
+ }, 300), q = Et(() => {
217
217
  n.value.page = n.value.page + 1;
218
218
  }, 300);
219
219
  return (B, X) => (x(), N("div", To, [
@@ -221,23 +221,23 @@ const $i = /* @__PURE__ */ _e({
221
221
  Q(V(y(i)("common.system.datatable.itemsPerPage")) + ": ", 1),
222
222
  r(So, {
223
223
  modelValue: y(n).rowsPerPage,
224
- "onUpdate:modelValue": X[0] || (X[0] = (D) => y(n).rowsPerPage = D),
224
+ "onUpdate:modelValue": X[0] || (X[0] = (E) => y(n).rowsPerPage = E),
225
225
  class: "ml-2",
226
226
  density: "compact",
227
227
  mandatory: "",
228
228
  "data-cy": "table-size"
229
229
  }, {
230
230
  default: u(() => [
231
- (x(!0), N(xe, null, st(e.itemsPerPageOptions, (D) => (x(), te(se, {
232
- key: D,
233
- color: D === y(n).rowsPerPage ? "secondary" : "",
234
- value: D,
231
+ (x(!0), N(xe, null, st(e.itemsPerPageOptions, (E) => (x(), te(se, {
232
+ key: E,
233
+ color: E === y(n).rowsPerPage ? "secondary" : "",
234
+ value: E,
235
235
  density: "compact",
236
236
  size: "small",
237
237
  variant: "text"
238
238
  }, {
239
239
  default: u(() => [
240
- Q(V(D), 1)
240
+ Q(V(E), 1)
241
241
  ]),
242
242
  _: 2
243
243
  }, 1032, ["color", "value"]))), 128))
@@ -245,7 +245,7 @@ const $i = /* @__PURE__ */ _e({
245
245
  _: 1
246
246
  }, 8, ["modelValue"])
247
247
  ])),
248
- U("div", Ko, V(E.value) + " - " + V(b.value) + " " + V(y(i)("common.system.datatable.from")) + " " + V(j.value), 1),
248
+ U("div", Ko, V(D.value) + " - " + V(b.value) + " " + V(y(i)("common.system.datatable.from")) + " " + V(j.value), 1),
249
249
  U("div", Bo, [
250
250
  r(se, {
251
251
  disabled: c.value,
@@ -284,8 +284,8 @@ const $i = /* @__PURE__ */ _e({
284
284
  ]));
285
285
  }
286
286
  }), Mo = (e, k, l = "id") => {
287
- const { querySetLimit: n, querySetOffset: i, querySetOrder: m, queryBuild: w, queryAddFilter: E, queryAdd: b } = za(), c = e.length;
288
- return n(c), i(1, c), m(l, !1), k ? b(l, e.join(",")) : E("in", l, e.join(",")), w();
287
+ const { querySetLimit: n, querySetOffset: i, querySetOrder: m, queryBuild: w, queryAddFilter: D, queryAdd: b } = za(), c = e.length;
288
+ return n(c), i(1, c), m(l, !1), k ? b(l, e.join(",")) : D("in", l, e.join(",")), w();
289
289
  }, Fi = (e) => {
290
290
  const {
291
291
  client: k,
@@ -294,7 +294,7 @@ const $i = /* @__PURE__ */ _e({
294
294
  urlTemplate: i,
295
295
  urlParams: m,
296
296
  options: w = {},
297
- isSearchApi: E = !1,
297
+ isSearchApi: D = !1,
298
298
  field: b = "id",
299
299
  silentConsoleError: c = !1
300
300
  } = e;
@@ -306,15 +306,15 @@ const $i = /* @__PURE__ */ _e({
306
306
  try {
307
307
  const B = Bt(q) ? q : m, X = Bt(z) ? z : i;
308
308
  if (Ie(X)) throw new Error("Url template is undefined");
309
- const D = (Ie(B) ? X : In(X, B)) + Mo(M, E, b), s = await k().get(D, {
309
+ const E = (Ie(B) ? X : In(X, B)) + Mo(M, D, b), s = await k().get(E, {
310
310
  ...w,
311
311
  signal: h.signal
312
312
  });
313
313
  if (!Pn(s.status))
314
- throw new En(s.status);
314
+ throw new Dn(s.status);
315
315
  if (s.data?.data)
316
316
  return s.data.data;
317
- if (s.status === Dn)
317
+ if (s.status === En)
318
318
  return [];
319
319
  throw new Rt();
320
320
  } catch (B) {
@@ -337,7 +337,7 @@ const $i = /* @__PURE__ */ _e({
337
337
  urlTemplate: i,
338
338
  urlParams: m,
339
339
  options: w = {},
340
- silentConsoleError: E = !1
340
+ silentConsoleError: D = !1
341
341
  } = e;
342
342
  let b = null;
343
343
  return {
@@ -349,10 +349,10 @@ const $i = /* @__PURE__ */ _e({
349
349
  sortBy: q = "id",
350
350
  sortDesc: B = !0,
351
351
  batchSize: X = 100,
352
- forceElastic: D = !1
352
+ forceElastic: E = !1
353
353
  } = M;
354
354
  try {
355
- const s = j.general.elastic || D ? "/search" : "", f = Bt(z) ? z : m, T = Bt(g) ? g : i;
355
+ const s = j.general.elastic || E ? "/search" : "", f = Bt(z) ? z : m, T = Bt(g) ? g : i;
356
356
  if (Ie(T)) throw new Error("Url template is undefined");
357
357
  const { pagination: P } = Un(q, B ? Ze.Desc : Ze.Asc, {
358
358
  rowsPerPage: X
@@ -364,7 +364,7 @@ const $i = /* @__PURE__ */ _e({
364
364
  }
365
365
  );
366
366
  if (!Pn(ne.status))
367
- throw new En(ne.status);
367
+ throw new Dn(ne.status);
368
368
  if (ne.data) {
369
369
  const le = ne.data;
370
370
  if (ce.push(...le.data), Na(le))
@@ -398,13 +398,13 @@ const $i = /* @__PURE__ */ _e({
398
398
  }
399
399
  return ce;
400
400
  }
401
- if (ne.status === Dn)
401
+ if (ne.status === En)
402
402
  return [];
403
403
  throw new Rt();
404
404
  } catch (s) {
405
405
  if (s instanceof DOMException && s.name === "AbortError")
406
406
  return [];
407
- throw $n(s) ? s : Tn(s) ? new Fn(s, s.config?.url) : Kn(s) ? new Bn(s, l, n, s) : Rn(s) ? new Ln(s, l, n, s) : Vn(s) ? new Mn(s, s) : zn(s) ? new Nn(s) : aa.isAxiosError(s) ? (E || console.error("Axios error: " + i, ...s.cause ? [s.cause] : []), new On(s)) : (E || console.error("AnzuFatalError: ", s), new Rt(s));
407
+ throw $n(s) ? s : Tn(s) ? new Fn(s, s.config?.url) : Kn(s) ? new Bn(s, l, n, s) : Rn(s) ? new Ln(s, l, n, s) : Vn(s) ? new Mn(s, s) : zn(s) ? new Nn(s) : aa.isAxiosError(s) ? (D || console.error("Axios error: " + i, ...s.cause ? [s.cause] : []), new On(s)) : (D || console.error("AnzuFatalError: ", s), new Rt(s));
408
408
  } finally {
409
409
  b = null;
410
410
  }
@@ -419,8 +419,8 @@ function Bi(e, k) {
419
419
  useFetchJobList: () => Ga({ client: e, system: k, entity: Tt, urlTemplate: $t }),
420
420
  fetchJob: (w) => Ha(e, $t + "/:id", { id: w }, k, Tt),
421
421
  createJob: (w) => {
422
- const E = ja(w._resourceName).slice(4).replace("-kind-", "-kind/");
423
- return qa(e, w, $t + "/:type", { type: E }, k, Tt);
422
+ const D = ja(w._resourceName).slice(4).replace("-kind-", "-kind/");
423
+ return qa(e, w, $t + "/:type", { type: D }, k, Tt);
424
424
  },
425
425
  deleteJob: (w) => Ua(e, $t + "/:id", { id: w }, k, Tt)
426
426
  };
@@ -437,12 +437,12 @@ const zo = {
437
437
  showExpand: !1
438
438
  };
439
439
  function Oo(e, k, l, n, i = {}) {
440
- const m = { ...No, ...i }, w = m.customI18n ?? Ja, { t: E } = w.global || w;
440
+ const m = { ...No, ...i }, w = m.customI18n ?? Ja, { t: D } = w.global || w;
441
441
  let b;
442
442
  Qa(m.storeColumnsLocalStorage) ? b = m.storeColumnsLocalStorage : Za(m.storeColumnsLocalStorage) && m.storeColumnsLocalStorage === !0 && (b = "table_" + l + "_" + n);
443
443
  const c = e.map((M) => {
444
444
  const g = { ...zo, ...M };
445
- return Ie(g.title) && (Ie(g.title) && Wa.includes(g.key) ? g.title = E("common.model.tracking." + g.key) : Ie(g.title) && l && n ? g.title = E(l + "." + n + ".model." + g.key) : g.title = ""), g;
445
+ return Ie(g.title) && (Ie(g.title) && Wa.includes(g.key) ? g.title = D("common.model.tracking." + g.key) : Ie(g.title) && l && n ? g.title = D(l + "." + n + ".model." + g.key) : g.title = ""), g;
446
446
  }), h = S(() => {
447
447
  const M = [];
448
448
  return m.showExpand && M.push({ key: "data-table-expand", sortable: !1 }), c.forEach((g) => {
@@ -467,14 +467,14 @@ function Oo(e, k, l, n, i = {}) {
467
467
  columnsHidden: k
468
468
  };
469
469
  }
470
- function Ri(e, k, l, n, i, m, w, E = null, b = void 0, c = !1) {
470
+ function Ri(e, k, l, n, i, m, w, D = null, b = void 0, c = !1) {
471
471
  const h = de(!1), I = de([]), j = de([]), M = de(!1), { pagination: g, setSortBy: z, incrementPage: q } = Un(
472
- kt(E) ? null : E.key,
473
- E?.order
472
+ kt(D) ? null : D.key,
473
+ D?.order
474
474
  ), { resetFilter: B, submitFilter: X } = _a(m, w, {
475
475
  storeFiltersLocalStorage: !1,
476
476
  populateUrlParams: !1
477
- }), { showErrorsDefault: D } = jn(), { columnsVisible: s, columnsAll: f, columnsHidden: T } = Oo(
477
+ }), { showErrorsDefault: E } = jn(), { columnsVisible: s, columnsAll: f, columnsHidden: T } = Oo(
478
478
  e,
479
479
  k,
480
480
  l,
@@ -490,7 +490,7 @@ function Ri(e, k, l, n, i, m, w, E = null, b = void 0, c = !1) {
490
490
  const $ = await i(g, m, w, b);
491
491
  I.value.push(...$);
492
492
  } catch ($) {
493
- D($);
493
+ E($);
494
494
  } finally {
495
495
  M.value = !1;
496
496
  }
@@ -506,7 +506,7 @@ function Ri(e, k, l, n, i, m, w, E = null, b = void 0, c = !1) {
506
506
  b
507
507
  );
508
508
  } catch ($) {
509
- D($);
509
+ E($);
510
510
  } finally {
511
511
  M.value = !1;
512
512
  }
@@ -566,7 +566,7 @@ const Uo = { class: "d-flex flex-column w-100 px-1 align-center" }, jo = { class
566
566
  set(P) {
567
567
  m.value = P, i("update:modelValue", P);
568
568
  }
569
- }), E = S({
569
+ }), D = S({
570
570
  get: () => n.pagination,
571
571
  set: (P) => {
572
572
  i("update:pagination", { ...pn(P) });
@@ -588,9 +588,9 @@ const Uo = { class: "d-flex flex-column w-100 px-1 align-center" }, jo = { class
588
588
  ), q();
589
589
  }, X = () => {
590
590
  i("onFetchNextPage");
591
- }, D = () => {
591
+ }, E = () => {
592
592
  i("onPageChange");
593
- }, s = S(() => Math.ceil(E.value.totalCount / E.value.rowsPerPage)), f = S(() => !(kt(E.value.hasNextPage) && E.value.page === s.value || E.value.hasNextPage === !1)), T = (P) => {
593
+ }, s = S(() => Math.ceil(D.value.totalCount / D.value.rowsPerPage)), f = S(() => !(kt(D.value.hasNextPage) && D.value.page === s.value || D.value.hasNextPage === !1)), T = (P) => {
594
594
  P && f.value && !n.loading && X();
595
595
  };
596
596
  return en(() => {
@@ -706,9 +706,9 @@ const Uo = { class: "d-flex flex-column w-100 px-1 align-center" }, jo = { class
706
706
  ])
707
707
  ])) : (x(), te(Vo, {
708
708
  key: 1,
709
- modelValue: E.value,
710
- "onUpdate:modelValue": Y[0] || (Y[0] = (le) => E.value = le),
711
- onChange: D
709
+ modelValue: D.value,
710
+ "onUpdate:modelValue": Y[0] || (Y[0] = (le) => D.value = le),
711
+ onChange: E
712
712
  }, null, 8, ["modelValue"]))
713
713
  ])
714
714
  ], 2),
@@ -816,7 +816,7 @@ const Uo = { class: "d-flex flex-column w-100 px-1 align-center" }, jo = { class
816
816
  }),
817
817
  emits: /* @__PURE__ */ We(["edit", "deleted", "close", "item-saved", "item-expand"], ["update:modelValue"]),
818
818
  setup(e, { expose: k, emit: l }) {
819
- const n = e, i = l, m = yt(e, "modelValue"), { t: w } = lt(), E = ea(), b = oa(), c = Lt("rootEl"), h = S(() => b.platform.value.touch), I = n.editor ?? no({
819
+ const n = e, i = l, m = yt(e, "modelValue"), { t: w } = lt(), D = ea(), b = oa(), c = Lt("rootEl"), h = S(() => b.platform.value.touch), I = n.editor ?? no({
820
820
  get: () => m.value,
821
821
  set: (a) => m.value = a,
822
822
  factory: n.factory,
@@ -855,7 +855,7 @@ const Uo = { class: "d-flex flex-column w-100 px-1 align-center" }, jo = { class
855
855
  ));
856
856
  };
857
857
  $e(q, (a) => X(a), { immediate: !0 });
858
- const D = de(/* @__PURE__ */ new Set()), s = Lt("rowsContainer"), f = S(() => !n.chips && !!E.item), T = S(() => !n.chips && !!E["item-readonly"]), {
858
+ const E = de(/* @__PURE__ */ new Set()), s = Lt("rowsContainer"), f = S(() => !n.chips && !!D.item), T = S(() => !n.chips && !!D["item-readonly"]), {
859
859
  editingKeys: P,
860
860
  editingSnapshots: Y,
861
861
  beginEdit: ce,
@@ -874,7 +874,7 @@ const Uo = { class: "d-flex flex-column w-100 px-1 align-center" }, jo = { class
874
874
  return H ? { data: H } : null;
875
875
  },
876
876
  afterAutoOpen: (a) => {
877
- D.value.delete(a);
877
+ E.value.delete(a);
878
878
  }
879
879
  }), $ = S(
880
880
  () => n.addLabel ? w(n.addLabel) : w("common.sortable.add")
@@ -882,11 +882,11 @@ const Uo = { class: "d-flex flex-column w-100 px-1 align-center" }, jo = { class
882
882
  () => n.deleteConfirmTitle ?? w("common.sortable.deleteConfirmTitle")
883
883
  ), F = S(
884
884
  () => n.deleteConfirmText ?? w("common.sortable.deleteConfirmText")
885
- ), K = S(() => !n.readonly && !n.disabled && !n.loading), J = S(() => K.value && n.showAddButton), ee = S(() => !!(n.title || E.header)), ue = S(() => !!n.onItemSave), ae = /* @__PURE__ */ new Map(), me = S(() => {
885
+ ), K = S(() => !n.readonly && !n.disabled && !n.loading), J = S(() => K.value && n.showAddButton), ee = S(() => !!(n.title || D.header)), ue = S(() => !!n.onItemSave), ae = /* @__PURE__ */ new Map(), me = S(() => {
886
886
  const a = [], H = /* @__PURE__ */ new Set();
887
887
  for (const p of q.value) {
888
888
  H.add(p.key);
889
- const he = P.value.has(p.key), Ye = D.value.has(p.key), ze = n.loadingKeys?.has(p.key) ?? !1, Te = n.disableUnsaved || n.readonly ? !1 : I.isUnsaved(p.key), xt = Te, ct = I.rowState(p.raw, p.key), Fe = ae.get(p.key);
889
+ const he = P.value.has(p.key), Ye = E.value.has(p.key), ze = n.loadingKeys?.has(p.key) ?? !1, Te = n.disableUnsaved || n.readonly ? !1 : I.isUnsaved(p.key), xt = Te, ct = I.rowState(p.raw, p.key), Fe = ae.get(p.key);
890
890
  if (Fe && Fe.raw === p.raw && Fe.index === p.index && Fe.position === p.position && Fe.editing === he && Fe.expanded === Ye && Fe.loading === ze && Fe.dirty === xt && Fe.unsaved === Te && Fe.validationState === ct) {
891
891
  a.push(Fe);
892
892
  continue;
@@ -929,16 +929,16 @@ const Uo = { class: "d-flex flex-column w-100 px-1 align-center" }, jo = { class
929
929
  pe(a);
930
930
  return;
931
931
  }
932
- f.value && (ce(a), D.value.delete(a.key)), i("edit", a);
932
+ f.value && (ce(a), E.value.delete(a.key)), i("edit", a);
933
933
  }
934
934
  }, Ve = (a) => {
935
935
  if (n.disabled || n.loading) return;
936
- const H = a.key, p = D.value.has(H);
936
+ const H = a.key, p = E.value.has(H);
937
937
  if (p)
938
- D.value.delete(H);
938
+ E.value.delete(H);
939
939
  else {
940
- for (const he of D.value) D.value.delete(he);
941
- D.value.add(H);
940
+ for (const he of E.value) E.value.delete(he);
941
+ E.value.add(H);
942
942
  }
943
943
  i("item-expand", a, !p);
944
944
  }, et = (a) => n.chips || n.disableRowClick || n.defaultExpanded || n.disabled || n.loading ? !1 : !!(a.editing || a.expanded || !n.readonly && n.showEditButton), Me = (a) => {
@@ -960,7 +960,7 @@ const Uo = { class: "d-flex flex-column w-100 px-1 align-center" }, jo = { class
960
960
  onDeleteConfirm: (a) => n.onDeleteConfirm ? n.onDeleteConfirm(a) : !0,
961
961
  onDelete: (a) => n.onDelete?.(a),
962
962
  onDeleted: (a) => {
963
- P.value.delete(a.key), Y.value.delete(a.key), D.value.delete(a.key), I.deleteItem(a.key), i("deleted", a);
963
+ P.value.delete(a.key), Y.value.delete(a.key), E.value.delete(a.key), I.deleteItem(a.key), i("deleted", a);
964
964
  },
965
965
  disableDeleteConfirm: () => n.disableDeleteConfirm || n.chips
966
966
  }), G = async (a) => {
@@ -970,7 +970,7 @@ const Uo = { class: "d-flex flex-column w-100 px-1 align-center" }, jo = { class
970
970
  }, Z = (a) => {
971
971
  ne(a);
972
972
  }, pe = (a) => {
973
- ie(a), D.value.delete(a.key), i("close", a);
973
+ ie(a), E.value.delete(a.key), i("close", a);
974
974
  }, Ce = /* @__PURE__ */ new Map(), ye = (a) => {
975
975
  let H = Ce.get(a);
976
976
  return H || (H = {
@@ -1324,7 +1324,7 @@ const Uo = { class: "d-flex flex-column w-100 px-1 align-center" }, jo = { class
1324
1324
  }
1325
1325
  }), gl = "id", pl = "position", bl = "parent";
1326
1326
  function kl(e, k) {
1327
- const l = k.keyField ?? gl, n = k.getKey, i = k.positionField ?? pl, m = k.parentField ?? bl, w = k.positionMultiplier ?? 1, E = k.maxDepth, b = ($) => n ? n($) : $[l], c = ($) => {
1327
+ const l = k.keyField ?? gl, n = k.getKey, i = k.positionField ?? pl, m = k.parentField ?? bl, w = k.positionMultiplier ?? 1, D = k.maxDepth, b = ($) => n ? n($) : $[l], c = ($) => {
1328
1328
  if (!$.children || $.children.length === 0) return 1;
1329
1329
  let v = 0;
1330
1330
  for (const C of $.children) {
@@ -1359,7 +1359,7 @@ function kl(e, k) {
1359
1359
  let F = 0;
1360
1360
  const K = (J, ee, ue) => {
1361
1361
  for (let ae = 0; ae < J.length; ae++) {
1362
- const me = J[ae], Se = b(me.data), we = !Ie(me.children), Le = we && (me.children?.length ?? 0) > 0, Ge = me.children?.length ?? 0, Pe = C ? C.has(Se) : !0, Ae = E - (ee + 1), Oe = we && Ae > 0, Ve = ee > 0, et = ae > 0;
1362
+ const me = J[ae], Se = b(me.data), we = !Ie(me.children), Le = we && (me.children?.length ?? 0) > 0, Ge = me.children?.length ?? 0, Pe = C ? C.has(Se) : !0, Ae = D - (ee + 1), Oe = we && Ae > 0, Ve = ee > 0, et = ae > 0;
1363
1363
  v.push({
1364
1364
  key: Se,
1365
1365
  index: F++,
@@ -1413,7 +1413,7 @@ function kl(e, k) {
1413
1413
  }
1414
1414
  const ue = v?.asFirstChild ? 0 : B(J, v);
1415
1415
  return J.splice(ue, 0, K), K.data[m] = ee ? b(ee.data) : null, I(J), e.value = C, C;
1416
- }, D = ($) => {
1416
+ }, E = ($) => {
1417
1417
  const v = Be(e.value), { node: C, parent: F } = h($, v.children);
1418
1418
  if (!C) return v;
1419
1419
  const K = F ? F.children : v.children, J = K.indexOf(C);
@@ -1450,7 +1450,7 @@ function kl(e, k) {
1450
1450
  const ee = K[J - 1];
1451
1451
  if (Ie(ee.children)) return null;
1452
1452
  const ue = c(C);
1453
- return ie(v, b(ee.data)) + 1 + ue > E ? null : (K.splice(J, 1), ee.children.push(C), C.data[m] = b(ee.data), C.meta.dirty = !0, I(K), I(ee.children), e.value = v, v);
1453
+ return ie(v, b(ee.data)) + 1 + ue > D ? null : (K.splice(J, 1), ee.children.push(C), C.data[m] = b(ee.data), C.meta.dirty = !0, I(K), I(ee.children), e.value = v, v);
1454
1454
  }, le = ($) => {
1455
1455
  const v = Be(e.value), { node: C, parent: F } = h($, v.children);
1456
1456
  if (!C || !F) return null;
@@ -1475,7 +1475,7 @@ function kl(e, k) {
1475
1475
  viewItems: z,
1476
1476
  findNode: h,
1477
1477
  addItem: X,
1478
- deleteItem: D,
1478
+ deleteItem: E,
1479
1479
  updateItem: s,
1480
1480
  moveUp: T,
1481
1481
  moveDown: P,
@@ -1504,7 +1504,7 @@ function kl(e, k) {
1504
1504
  ee = Ae.children, ue = Ae, ae = ie(F, v) + 1;
1505
1505
  }
1506
1506
  const me = c(K);
1507
- if (ae + me > E) return null;
1507
+ if (ae + me > D) return null;
1508
1508
  const Se = J ? J.children : F.children, we = Se.indexOf(K);
1509
1509
  if (we === -1) return null;
1510
1510
  const Le = Se === ee, [Ge] = Se.splice(we, 1);
@@ -1529,7 +1529,7 @@ const wl = (e) => {
1529
1529
  l(e.children);
1530
1530
  };
1531
1531
  function Cl(e) {
1532
- const k = typeof e.getKey == "function" ? null : e.getKey ?? "id", l = (A) => typeof e.getKey == "function" ? e.getKey(A) : A[k], n = k ?? "id", i = e.position ?? "position", m = i !== !1, w = typeof i == "object" ? i.field : i === !1 ? "position" : i, E = typeof i == "object" && i.multiplier ? i.multiplier : 1, b = e.parentField ?? "parent", c = S({
1532
+ const k = typeof e.getKey == "function" ? null : e.getKey ?? "id", l = (A) => typeof e.getKey == "function" ? e.getKey(A) : A[k], n = k ?? "id", i = e.position ?? "position", m = i !== !1, w = typeof i == "object" ? i.field : i === !1 ? "position" : i, D = typeof i == "object" && i.multiplier ? i.multiplier : 1, b = e.parentField ?? "parent", c = S({
1533
1533
  get: () => e.get(),
1534
1534
  set: (A) => e.set(A)
1535
1535
  }), h = kl(c, {
@@ -1539,14 +1539,14 @@ function Cl(e) {
1539
1539
  getKey: l,
1540
1540
  positionField: w,
1541
1541
  parentField: b,
1542
- positionMultiplier: E,
1542
+ positionMultiplier: D,
1543
1543
  maxDepth: e.maxDepth
1544
1544
  }), I = S(() => wl(e.get())), j = h.viewItems, M = S(() => ko(e.dirtyExclude) ?? []), g = (A) => {
1545
1545
  const L = { ...A };
1546
1546
  m && delete L[w], delete L[b];
1547
1547
  for (const G of M.value) delete L[G];
1548
1548
  return JSON.stringify(L);
1549
- }, z = de(/* @__PURE__ */ new Map()), q = de(/* @__PURE__ */ new Map()), B = de(null), X = (A) => Be(A), D = (A) => {
1549
+ }, z = de(/* @__PURE__ */ new Map()), q = de(/* @__PURE__ */ new Map()), B = de(null), X = (A) => Be(A), E = (A) => {
1550
1550
  const L = /* @__PURE__ */ new Map(), G = /* @__PURE__ */ new Map(), W = (Z, pe) => {
1551
1551
  for (const Ce of Z) {
1552
1552
  const ye = l(Ce.data);
@@ -1555,7 +1555,7 @@ function Cl(e) {
1555
1555
  };
1556
1556
  W(A.children, null), z.value = L, q.value = G, B.value = X(A);
1557
1557
  };
1558
- D(e.get()), $e(
1558
+ E(e.get()), $e(
1559
1559
  M,
1560
1560
  () => {
1561
1561
  if (!B.value) return;
@@ -1661,7 +1661,7 @@ function Cl(e) {
1661
1661
  ot(W, (Z) => {
1662
1662
  const pe = ne(l(Z.data)), Ce = e.commitKey ? e.commitKey(Z.data, pe) : l(Z.data);
1663
1663
  Ce == null && k && (Z.data[n] = ao()), Z.meta.dirty = !1;
1664
- }), e.set(W), D(W), P.value = /* @__PURE__ */ new Map(), Y.value = /* @__PURE__ */ new Set(), s.value = !1;
1664
+ }), e.set(W), E(W), P.value = /* @__PURE__ */ new Map(), Y.value = /* @__PURE__ */ new Set(), s.value = !1;
1665
1665
  },
1666
1666
  reset: (A) => {
1667
1667
  const L = A ?? (B.value ? X(B.value) : e.get());
@@ -1728,12 +1728,12 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
1728
1728
  sourceSubtreeDepth: i,
1729
1729
  viewItems: m,
1730
1730
  maxDepth: w,
1731
- indentPx: E,
1731
+ indentPx: D,
1732
1732
  containerLeft: b,
1733
1733
  containerPaddingLeft: c
1734
1734
  } = e;
1735
1735
  if (l.key === n || ra(m, n, l.key)) return null;
1736
- const h = k.y - l.rect.top, I = l.rect.height, j = h < I / 2, M = j ? "top" : "bottom", g = m.findIndex((P) => P.key === l.key), z = j ? Ft(m, g - 1, -1, n) : Ft(m, g, -1, n), q = j ? Ft(m, g, 1, n) : Ft(m, g + 1, 1, n), B = k.x - b - c, X = Math.round(B / E), D = z ? z.depth + 1 : 0, s = q ? q.depth : 0, f = Math.max(s, Math.min(X, D));
1736
+ const h = k.y - l.rect.top, I = l.rect.height, j = h < I / 2, M = j ? "top" : "bottom", g = m.findIndex((P) => P.key === l.key), z = j ? Ft(m, g - 1, -1, n) : Ft(m, g, -1, n), q = j ? Ft(m, g, 1, n) : Ft(m, g + 1, 1, n), B = k.x - b - c, X = Math.round(B / D), E = z ? z.depth + 1 : 0, s = q ? q.depth : 0, f = Math.max(s, Math.min(X, E));
1737
1737
  let T;
1738
1738
  if (!z)
1739
1739
  T = {
@@ -1791,11 +1791,11 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
1791
1791
  };
1792
1792
  }
1793
1793
  return T.depth + i - 1 >= w ? { type: "blocked", desired: T, reason: "maxDepth" } : T;
1794
- }, Il = ["data-id", "aria-level", "tabindex"], Pl = ["aria-label"], El = {
1794
+ }, Il = ["data-id", "aria-level", "tabindex"], Pl = ["aria-label"], Dl = {
1795
1795
  key: 2,
1796
1796
  class: "a-nested-list-editor__tree-toggle a-nested-list-editor__tree-toggle--spacer",
1797
1797
  "aria-hidden": "true"
1798
- }, Dl = { class: "a-le-row-main" }, $l = { class: "a-le-title" }, Tl = {
1798
+ }, El = { class: "a-le-row-main" }, $l = { class: "a-le-title" }, Tl = {
1799
1799
  key: 0,
1800
1800
  class: "a-nested-list-editor__drag-count",
1801
1801
  "aria-hidden": "true"
@@ -1826,7 +1826,7 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
1826
1826
  return k.context.resolveValidation(b, k.vi.key, k.vi.index);
1827
1827
  const c = b.validationState;
1828
1828
  return c === "valid" || c === "invalid" || c === "warning" ? c : null;
1829
- }, w = () => k.context.buildSlotProps(k.vi), E = () => k.viewItems.filter((b) => b.parentKey === k.vi.key);
1829
+ }, w = () => k.context.buildSlotProps(k.vi), D = () => k.viewItems.filter((b) => b.parentKey === k.vi.key);
1830
1830
  return (b, c) => (x(), N("div", {
1831
1831
  class: Ue([
1832
1832
  "a-le-row-wrapper",
@@ -1884,8 +1884,8 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
1884
1884
  onClick: c[0] || (c[0] = fe((h) => e.vi.hasChildren && e.callbacks.onChevronClick(e.vi), ["stop"]))
1885
1885
  }, [...c[18] || (c[18] = [
1886
1886
  U("span", { class: "a-nested-list-editor__tree-toggle-caret" }, null, -1)
1887
- ])], 10, Pl)) : e.context.showExpandToggle ? (x(), N("span", El)) : _("", !0),
1888
- U("div", Dl, [
1887
+ ])], 10, Pl)) : e.context.showExpandToggle ? (x(), N("span", Dl)) : _("", !0),
1888
+ U("div", El, [
1889
1889
  O(b.$slots, "item-compact", Je(at(w())), () => [
1890
1890
  U("span", $l, V(e.context.resolveCompactText(e.vi.raw, e.vi.key)), 1)
1891
1891
  ]),
@@ -2268,7 +2268,7 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
2268
2268
  class: Ue([Ol]),
2269
2269
  "data-parent-id": String(e.vi.key)
2270
2270
  }, [
2271
- (x(!0), N(xe, null, st(E(), (h) => (x(), te(y(l), {
2271
+ (x(!0), N(xe, null, st(D(), (h) => (x(), te(y(l), {
2272
2272
  key: String(h.key),
2273
2273
  vi: h,
2274
2274
  "view-items": e.viewItems,
@@ -2321,9 +2321,9 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
2321
2321
  }),
2322
2322
  emits: /* @__PURE__ */ We(["confirm"], ["update:modelValue"]),
2323
2323
  setup(e, { emit: k }) {
2324
- const l = e, n = k, i = yt(e, "modelValue"), { t: m } = lt(), w = de(void 0), E = de("last");
2324
+ const l = e, n = k, i = yt(e, "modelValue"), { t: m } = lt(), w = de(void 0), D = de("last");
2325
2325
  $e(i, (s) => {
2326
- s && (w.value = void 0, E.value = "last");
2326
+ s && (w.value = void 0, D.value = "last");
2327
2327
  });
2328
2328
  const b = S(() => {
2329
2329
  const s = /* @__PURE__ */ new Set();
@@ -2399,10 +2399,10 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
2399
2399
  ), z = (s) => {
2400
2400
  s.disallowed || (w.value = s.key);
2401
2401
  }, q = () => {
2402
- M.value && (n("confirm", M.value.key, E.value), i.value = !1);
2402
+ M.value && (n("confirm", M.value.key, D.value), i.value = !1);
2403
2403
  }, B = () => {
2404
2404
  i.value = !1;
2405
- }, X = (s) => `${s * 16}px`, D = (s) => s === "maxDepth" ? m("common.sortable.changeParent.errorMaxDepth") : "";
2405
+ }, X = (s) => `${s * 16}px`, E = (s) => s === "maxDepth" ? m("common.sortable.changeParent.errorMaxDepth") : "";
2406
2406
  return (s, f) => (x(), te(an, {
2407
2407
  modelValue: i.value,
2408
2408
  "onUpdate:modelValue": f[1] || (f[1] = (T) => i.value = T),
@@ -2449,7 +2449,7 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
2449
2449
  disabled: T.disallowed,
2450
2450
  active: w.value === T.key,
2451
2451
  title: T.label,
2452
- subtitle: D(T.reason),
2452
+ subtitle: E(T.reason),
2453
2453
  style: wt({ paddingInlineStart: X(T.depth) }),
2454
2454
  "data-disallowed": T.disallowed ? "true" : "false",
2455
2455
  "data-reason": T.reason ?? "",
@@ -2487,8 +2487,8 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
2487
2487
  label: M.value?.label ?? ""
2488
2488
  })), 1),
2489
2489
  r(Po, {
2490
- modelValue: E.value,
2491
- "onUpdate:modelValue": f[0] || (f[0] = (T) => E.value = T),
2490
+ modelValue: D.value,
2491
+ "onUpdate:modelValue": f[0] || (f[0] = (T) => D.value = T),
2492
2492
  density: "compact",
2493
2493
  "hide-details": ""
2494
2494
  }, {
@@ -2610,7 +2610,7 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
2610
2610
  }),
2611
2611
  emits: /* @__PURE__ */ We(["add", "add-child", "edit", "deleted", "close", "item-saved", "item-expand", "reorder-start", "reorder-cancel", "reorder-applied", "reorder-apply-error", "reorder-end", "indent", "outdent"], ["update:modelValue", "update:mode"]),
2612
2612
  setup(e, { expose: k, emit: l }) {
2613
- const n = e, i = l, m = yt(e, "modelValue"), w = yt(e, "mode"), { t: E } = lt(), b = ea(), { showWarningT: c } = jn(), h = Lt("rootEl"), { isNarrow: I } = lo(h), j = io(), M = S(() => n.closeVariant === "icon" ? "icon" : n.closeVariant === "labeled" ? "labeled" : I.value ? "icon" : "labeled"), g = de(/* @__PURE__ */ new Set()), z = de(/* @__PURE__ */ new Set()), q = n.getKey ?? "id", B = typeof q == "function" ? "id" : q, X = (t) => typeof q == "function" ? q(t) : t[q], D = (() => {
2613
+ const n = e, i = l, m = yt(e, "modelValue"), w = yt(e, "mode"), { t: D } = lt(), b = ea(), { showWarningT: c } = jn(), h = Lt("rootEl"), { isNarrow: I } = lo(h), j = io(), M = S(() => n.closeVariant === "icon" ? "icon" : n.closeVariant === "labeled" ? "labeled" : I.value ? "icon" : "labeled"), g = de(/* @__PURE__ */ new Set()), z = de(/* @__PURE__ */ new Set()), q = n.getKey ?? "id", B = typeof q == "function" ? "id" : q, X = (t) => typeof q == "function" ? q(t) : t[q], E = (() => {
2614
2614
  const t = n.position;
2615
2615
  return t === void 0 || t === !1 ? "position" : typeof t == "object" ? t.field : t;
2616
2616
  })();
@@ -2635,26 +2635,26 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
2635
2635
  const t = [];
2636
2636
  let d = 0;
2637
2637
  const o = n.maxDepth, R = (oe, ke, Ne) => {
2638
- for (let Ee = 0; Ee < oe.length; Ee++) {
2639
- const Ke = oe[Ee], it = X(Ke.data), ge = Ke.children !== void 0, vt = ge && (Ke.children?.length ?? 0) > 0, Et = Ke.children?.length ?? 0, bt = o - (ke + 1);
2638
+ for (let De = 0; De < oe.length; De++) {
2639
+ const Ke = oe[De], it = X(Ke.data), ge = Ke.children !== void 0, vt = ge && (Ke.children?.length ?? 0) > 0, Dt = Ke.children?.length ?? 0, bt = o - (ke + 1);
2640
2640
  t.push({
2641
2641
  key: it,
2642
2642
  index: d++,
2643
2643
  raw: Ke.data,
2644
- position: Ke.data[D],
2644
+ position: Ke.data[E],
2645
2645
  node: Ke,
2646
2646
  depth: ke,
2647
2647
  parent: Ne?.data ?? null,
2648
2648
  parentKey: Ne ? X(Ne.data) : null,
2649
- childrenCount: Et,
2649
+ childrenCount: Dt,
2650
2650
  hasChildren: vt,
2651
2651
  childrenAllowed: ge,
2652
- siblingIndex: Ee,
2652
+ siblingIndex: De,
2653
2653
  siblingCount: oe.length,
2654
- firstInParent: Ee === 0,
2655
- lastInParent: Ee === oe.length - 1,
2654
+ firstInParent: De === 0,
2655
+ lastInParent: De === oe.length - 1,
2656
2656
  canAddChild: ge && bt > 0,
2657
- canIndent: Ee > 0,
2657
+ canIndent: De > 0,
2658
2658
  canOutdent: ke > 0
2659
2659
  }), vt && R(Ke.children, ke + 1, Ke);
2660
2660
  }
@@ -2676,8 +2676,8 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
2676
2676
  const t = [], d = /* @__PURE__ */ new Set();
2677
2677
  for (const o of T.value) {
2678
2678
  d.add(o.key);
2679
- const R = ue.value.has(o.key), oe = z.value.has(o.key), ke = g.value.has(o.key), Ne = n.loadingKeys?.has(o.key) ?? !1, Ee = Y.value.has(o.key), Ke = n.readonly ? !1 : f.isUnsaved(o.key), it = n.readonly ? !1 : Ke || Ee, ge = le.get(o.key);
2680
- if (ge && ge.raw === o.raw && ge.index === o.index && ge.position === o.position && ge.depth === o.depth && ge.parentKey === o.parentKey && ge.childrenCount === o.childrenCount && ge.firstInParent === o.firstInParent && ge.lastInParent === o.lastInParent && ge.editing === R && ge.expanded === oe && ge.childrenExpanded === ke && ge.loading === Ne && ge.dirty === Ke && ge.moved === Ee && ge.unsaved === it) {
2679
+ const R = ue.value.has(o.key), oe = z.value.has(o.key), ke = g.value.has(o.key), Ne = n.loadingKeys?.has(o.key) ?? !1, De = Y.value.has(o.key), Ke = n.readonly ? !1 : f.isUnsaved(o.key), it = n.readonly ? !1 : Ke || De, ge = le.get(o.key);
2680
+ if (ge && ge.raw === o.raw && ge.index === o.index && ge.position === o.position && ge.depth === o.depth && ge.parentKey === o.parentKey && ge.childrenCount === o.childrenCount && ge.firstInParent === o.firstInParent && ge.lastInParent === o.lastInParent && ge.editing === R && ge.expanded === oe && ge.childrenExpanded === ke && ge.loading === Ne && ge.dirty === Ke && ge.moved === De && ge.unsaved === it) {
2681
2681
  t.push(ge);
2682
2682
  continue;
2683
2683
  }
@@ -2688,7 +2688,7 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
2688
2688
  childrenExpanded: ke,
2689
2689
  loading: Ne,
2690
2690
  dirty: Ke,
2691
- moved: Ee,
2691
+ moved: De,
2692
2692
  unsaved: it
2693
2693
  };
2694
2694
  le.set(o.key, vt), t.push(vt);
@@ -2773,11 +2773,11 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
2773
2773
  reorderEnd: () => i("reorder-end")
2774
2774
  }
2775
2775
  }), dt = S(() => C.value && n.showAddButton && !Me.value), A = S(() => Me.value && !j.value && !n.disableDrag), L = S(
2776
- () => n.addLabel ? E(n.addLabel) : E("common.sortable.add")
2777
- ), G = S(() => n.emptyTitle ?? E("common.sortable.emptyTitle")), W = S(
2778
- () => n.deleteConfirmTitle ?? E("common.sortable.deleteConfirmTitle")
2776
+ () => n.addLabel ? D(n.addLabel) : D("common.sortable.add")
2777
+ ), G = S(() => n.emptyTitle ?? D("common.sortable.emptyTitle")), W = S(
2778
+ () => n.deleteConfirmTitle ?? D("common.sortable.deleteConfirmTitle")
2779
2779
  ), Z = S(
2780
- () => n.deleteConfirmText ?? E("common.sortable.deleteConfirmText")
2780
+ () => n.deleteConfirmText ?? D("common.sortable.deleteConfirmText")
2781
2781
  ), pe = S(
2782
2782
  () => !n.readonly && n.showReorderToggle && !Me.value && $.value > 0
2783
2783
  ), Ce = S(() => !!n.title && I.value), ye = S(() => {
@@ -2864,10 +2864,10 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
2864
2864
  onStart: (R) => {
2865
2865
  const oe = R.item, ke = sn(oe.getAttribute("data-id"));
2866
2866
  if (ke === null) return;
2867
- const Ne = f.findNode(ke).node, Ee = Ne ? f.calculateSubtreeDepth(Ne) : 1;
2867
+ const Ne = f.findNode(ke).node, De = Ne ? f.calculateSubtreeDepth(Ne) : 1;
2868
2868
  Te.value = {
2869
2869
  sourceKey: ke,
2870
- sourceSubtreeDepth: Ee,
2870
+ sourceSubtreeDepth: De,
2871
2871
  instruction: null
2872
2872
  }, document.addEventListener("pointermove", Fe, { passive: !0 });
2873
2873
  },
@@ -2927,17 +2927,17 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
2927
2927
  `.a-le-row-wrapper[data-id="${CSS.escape(String(d.refKey))}"]`
2928
2928
  );
2929
2929
  if (!o) return null;
2930
- const R = o.querySelector(":scope > .a-le-row"), oe = v.value.getBoundingClientRect(), ke = (R ?? o).getBoundingClientRect(), Ne = xn + d.depth * Cn, Ee = d.refEdge === "top" ? ke.top - oe.top : ke.bottom - oe.top, Ke = { top: Ee, left: Ne, right: 16 };
2930
+ const R = o.querySelector(":scope > .a-le-row"), oe = v.value.getBoundingClientRect(), ke = (R ?? o).getBoundingClientRect(), Ne = xn + d.depth * Cn, De = d.refEdge === "top" ? ke.top - oe.top : ke.bottom - oe.top, Ke = { top: De, left: Ne, right: 16 };
2931
2931
  let it = null;
2932
2932
  if (d.levelRowKey !== null) {
2933
2933
  const ge = v.value.querySelector(
2934
2934
  `.a-le-row-wrapper[data-id="${CSS.escape(String(d.levelRowKey))}"]`
2935
2935
  );
2936
2936
  if (ge) {
2937
- const Et = (ge.querySelector(":scope > .a-le-row") ?? ge).getBoundingClientRect(), bt = Et.top - oe.top + Et.height / 2;
2938
- bt < Ee && (it = {
2937
+ const Dt = (ge.querySelector(":scope > .a-le-row") ?? ge).getBoundingClientRect(), bt = Dt.top - oe.top + Dt.height / 2;
2938
+ bt < De && (it = {
2939
2939
  top: bt,
2940
- height: Ee - bt,
2940
+ height: De - bt,
2941
2941
  left: Ne
2942
2942
  });
2943
2943
  }
@@ -3015,39 +3015,39 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
3015
3015
  let d = pt.get(t);
3016
3016
  return d || (d = {
3017
3017
  edit: () => {
3018
- const o = De(t);
3018
+ const o = Ee(t);
3019
3019
  o && At(o);
3020
3020
  },
3021
3021
  save: () => {
3022
- const o = De(t);
3022
+ const o = Ee(t);
3023
3023
  if (o) return vn(o);
3024
3024
  },
3025
3025
  cancel: () => {
3026
- const o = De(t);
3026
+ const o = Ee(t);
3027
3027
  o && mn(o);
3028
3028
  },
3029
3029
  close: () => {
3030
- const o = De(t);
3030
+ const o = Ee(t);
3031
3031
  o && gt(o);
3032
3032
  },
3033
3033
  delete: async () => {
3034
- const o = De(t);
3034
+ const o = Ee(t);
3035
3035
  o && await fn(o);
3036
3036
  },
3037
3037
  addAfter: () => {
3038
- const o = De(t);
3038
+ const o = Ee(t);
3039
3039
  o && rn(o);
3040
3040
  },
3041
3041
  addChild: () => {
3042
- const o = De(t);
3042
+ const o = Ee(t);
3043
3043
  o && dn(o);
3044
3044
  },
3045
3045
  toggleExpand: () => {
3046
- const o = De(t);
3046
+ const o = Ee(t);
3047
3047
  o && zt(o);
3048
3048
  },
3049
3049
  toggleDetail: () => {
3050
- const o = De(t);
3050
+ const o = Ee(t);
3051
3051
  o && cn(o);
3052
3052
  },
3053
3053
  moveUp: () => Ot(t),
@@ -3055,11 +3055,11 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
3055
3055
  moveTop: () => jt(t),
3056
3056
  moveBottom: () => qt(t),
3057
3057
  indent: () => {
3058
- const o = De(t);
3058
+ const o = Ee(t);
3059
3059
  o && Ht(o);
3060
3060
  },
3061
3061
  outdent: () => {
3062
- const o = De(t);
3062
+ const o = Ee(t);
3063
3063
  o && Gt(o);
3064
3064
  },
3065
3065
  update: (o) => f.updateItem(t, o)
@@ -3120,7 +3120,7 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
3120
3120
  enterReorderMode: Xe,
3121
3121
  exitReorderMode: tt
3122
3122
  }
3123
- })), ba = S(() => new Set(ye.value)), De = (t) => ie.value.find((d) => d.key === t), It = Hn({
3123
+ })), ba = S(() => new Set(ye.value)), Ee = (t) => ie.value.find((d) => d.key === t), It = Hn({
3124
3124
  viewItems: S(
3125
3125
  () => ie.value.map((t) => ({
3126
3126
  key: t.key,
@@ -3135,11 +3135,11 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
3135
3135
  disabled: S(() => !C.value),
3136
3136
  isEditing: (t) => ue.value.has(t),
3137
3137
  onToggleEdit: (t) => {
3138
- const d = De(t);
3138
+ const d = Ee(t);
3139
3139
  d && At(d);
3140
3140
  },
3141
3141
  onCancelEdit: (t) => {
3142
- const d = De(t);
3142
+ const d = Ee(t);
3143
3143
  d && gt(d);
3144
3144
  },
3145
3145
  onMoveUp: (t) => Ot(t),
@@ -3147,15 +3147,15 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
3147
3147
  onMoveTop: (t) => jt(t),
3148
3148
  onMoveBottom: (t) => qt(t),
3149
3149
  onIndent: (t) => {
3150
- const d = De(t);
3150
+ const d = Ee(t);
3151
3151
  d && Ht(d);
3152
3152
  },
3153
3153
  onOutdent: (t) => {
3154
- const d = De(t);
3154
+ const d = Ee(t);
3155
3155
  d && Gt(d);
3156
3156
  },
3157
3157
  onToggleChildren: (t) => {
3158
- const d = De(t);
3158
+ const d = Ee(t);
3159
3159
  d && zt(d);
3160
3160
  },
3161
3161
  onCancelReorder: () => tt()
@@ -3222,7 +3222,7 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
3222
3222
  outdent: Gt,
3223
3223
  openMoveToPosition: wa,
3224
3224
  openChangeParent: xa
3225
- }, Pa = S(() => ie.value.filter((t) => t.parentKey === null)), Ea = (t, d, o) => (f.addItem(d, { afterId: t ?? void 0, childrenAllowed: o }), Qe(() => f.commit()), m.value), Da = (t, d, o) => (g.value.add(t), f.addItem(d, { parentId: t, asFirstChild: !0, childrenAllowed: o }), Qe(() => f.commit()), m.value), $a = (t) => {
3225
+ }, Pa = S(() => ie.value.filter((t) => t.parentKey === null)), Da = (t, d, o) => (f.addItem(d, { afterId: t ?? void 0, childrenAllowed: o }), Qe(() => f.commit()), m.value), Ea = (t, d, o) => (g.value.add(t), f.addItem(d, { parentId: t, asFirstChild: !0, childrenAllowed: o }), Qe(() => f.commit()), m.value), $a = (t) => {
3226
3226
  f.deleteItem(t), ue.value.delete(t), ae.value.delete(t), z.value.delete(t), g.value.delete(t), Qe(() => f.commit());
3227
3227
  }, Ta = (t, d, o = null, R = null, oe = null) => {
3228
3228
  f.updateItem(t, d), Qe(() => f.commit());
@@ -3246,8 +3246,8 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
3246
3246
  o && Se(o);
3247
3247
  }),
3248
3248
  // Legacy aliases (pre-v2 ASortableNested API).
3249
- addAfterId: Ea,
3250
- addChildToId: Da,
3249
+ addAfterId: Da,
3250
+ addChildToId: Ea,
3251
3251
  removeById: $a,
3252
3252
  updateData: Ta,
3253
3253
  resetDirtyBaseline: ce,
@@ -3298,7 +3298,7 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
3298
3298
  onClick: y(tt)
3299
3299
  }, {
3300
3300
  default: u(() => [
3301
- Q(V(y(E)("common.sortable.reorderCancel")), 1)
3301
+ Q(V(y(D)("common.sortable.reorderCancel")), 1)
3302
3302
  ]),
3303
3303
  _: 1
3304
3304
  }, 8, ["disabled", "onClick"]),
@@ -3312,7 +3312,7 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
3312
3312
  onClick: y(rt)
3313
3313
  }, {
3314
3314
  default: u(() => [
3315
- Q(V(y(E)("common.sortable.reorderApply")), 1)
3315
+ Q(V(y(D)("common.sortable.reorderApply")), 1)
3316
3316
  ]),
3317
3317
  _: 1
3318
3318
  }, 8, ["loading", "disabled", "onClick"])
@@ -3333,7 +3333,7 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
3333
3333
  r(qe, {
3334
3334
  activator: "parent",
3335
3335
  location: "bottom",
3336
- text: be.value ? y(E)("common.sortable.collapseAll") : y(E)("common.sortable.expandAll")
3336
+ text: be.value ? y(D)("common.sortable.collapseAll") : y(D)("common.sortable.expandAll")
3337
3337
  }, null, 8, ["text"])
3338
3338
  ]),
3339
3339
  _: 1
@@ -3346,7 +3346,7 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
3346
3346
  onClick: H
3347
3347
  }, {
3348
3348
  default: u(() => [
3349
- Q(V(be.value ? y(E)("common.sortable.collapseAll") : y(E)("common.sortable.expandAll")), 1)
3349
+ Q(V(be.value ? y(D)("common.sortable.collapseAll") : y(D)("common.sortable.expandAll")), 1)
3350
3350
  ]),
3351
3351
  _: 1
3352
3352
  }, 8, ["prepend-icon"])) : _("", !0),
@@ -3368,7 +3368,7 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
3368
3368
  r(qe, {
3369
3369
  activator: "parent",
3370
3370
  location: "bottom",
3371
- text: y(E)("common.sortable.reorder")
3371
+ text: y(D)("common.sortable.reorder")
3372
3372
  }, null, 8, ["text"])
3373
3373
  ]),
3374
3374
  _: 1
@@ -3382,7 +3382,7 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
3382
3382
  onClick: y(Xe)
3383
3383
  }, {
3384
3384
  default: u(() => [
3385
- Q(V(y(E)("common.sortable.reorder")), 1)
3385
+ Q(V(y(D)("common.sortable.reorder")), 1)
3386
3386
  ]),
3387
3387
  _: 1
3388
3388
  }, 8, ["disabled", "onClick"]))
@@ -3533,14 +3533,14 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
3533
3533
  "onUpdate:modelValue": d[2] || (d[2] = (o) => ta(Nt) ? Nt.value = o : null),
3534
3534
  title: W.value,
3535
3535
  text: Z.value,
3536
- "confirm-label": y(E)("common.sortable.delete"),
3537
- "cancel-label": y(E)("common.button.cancel"),
3536
+ "confirm-label": y(D)("common.sortable.delete"),
3537
+ "cancel-label": y(D)("common.button.cancel"),
3538
3538
  error: y(fa),
3539
3539
  "in-flight": y(ua),
3540
3540
  onConfirm: y(ma),
3541
3541
  onCancel: y(ya)
3542
3542
  }, null, 8, ["modelValue", "title", "text", "confirm-label", "cancel-label", "error", "in-flight", "onConfirm", "onCancel"]),
3543
- U("div", _l, V(y(It).grabbedKey.value !== null ? y(E)("common.sortable.keyboardGrab.status", {
3543
+ U("div", _l, V(y(It).grabbedKey.value !== null ? y(D)("common.sortable.keyboardGrab.status", {
3544
3544
  n: y(It).grabbedIndex.value + 1,
3545
3545
  total: y(It).totalCount.value
3546
3546
  }) : ""), 1)
@@ -3565,7 +3565,7 @@ const Mt = (e, k) => e.find((l) => l.key === k) ?? null, ra = (e, k, l) => {
3565
3565
  }, w = () => {
3566
3566
  l("resolve", !0);
3567
3567
  };
3568
- return (E, b) => (x(), te(an, {
3568
+ return (D, b) => (x(), te(an, {
3569
3569
  modelValue: n.value,
3570
3570
  "onUpdate:modelValue": b[0] || (b[0] = (c) => n.value = c),
3571
3571
  "max-width": "480",
@@ -3644,14 +3644,14 @@ function Ni(e) {
3644
3644
  let i = null, m = !1;
3645
3645
  const w = () => m ? (m = !1, Promise.resolve(!0)) : new Promise((c) => {
3646
3646
  i = c, n.value = !0;
3647
- }), E = (c) => {
3647
+ }), D = (c) => {
3648
3648
  n.value = !1, i && (i(c), i = null);
3649
3649
  }, b = () => {
3650
3650
  m = !0;
3651
3651
  };
3652
3652
  if (Sn(e.guardRoute, !0) && na())
3653
3653
  try {
3654
- Eo(async () => l.value ? await w() : !0);
3654
+ Do(async () => l.value ? await w() : !0);
3655
3655
  } catch {
3656
3656
  }
3657
3657
  if (Sn(e.guardWindowUnload, !0)) {
@@ -3677,7 +3677,7 @@ function Ni(e) {
3677
3677
  hasUnsavedChanges: l,
3678
3678
  dirtyLabels: k.dirtyLabels,
3679
3679
  promptOpen: n,
3680
- resolvePrompt: E,
3680
+ resolvePrompt: D,
3681
3681
  acknowledge: b
3682
3682
  };
3683
3683
  }
@@ -3686,10 +3686,10 @@ function Oi(e, k = {}) {
3686
3686
  m && l === n && console.warn(
3687
3687
  `[list-editor] key-field === position-field ("${l}") with update-position enabled. Reordering renumbers positions and thus changes row keys, breaking dirty/validity tracking. Point key-field at a stable identity field (e.g. "id").`
3688
3688
  );
3689
- const w = /* @__PURE__ */ new Set(), E = (D) => {
3689
+ const w = /* @__PURE__ */ new Set(), D = (E) => {
3690
3690
  const s = /* @__PURE__ */ new Set(), f = /* @__PURE__ */ new Set();
3691
3691
  let T = 0;
3692
- for (const Y of D) {
3692
+ for (const Y of E) {
3693
3693
  if (Y.key === void 0 || Y.key === null) {
3694
3694
  T++;
3695
3695
  continue;
@@ -3704,49 +3704,49 @@ function Oi(e, k = {}) {
3704
3704
  `[list-editor] duplicate row keys (key-field "${l}"): ${[...f].join(", ")}. Row keys must be unique — dirty tracking and validation rails target rows by key.`
3705
3705
  ));
3706
3706
  }, b = S(() => {
3707
- const D = e.value.map((s, f) => ({
3707
+ const E = e.value.map((s, f) => ({
3708
3708
  key: s[l],
3709
3709
  index: f,
3710
3710
  raw: s,
3711
3711
  position: s[n]
3712
3712
  }));
3713
- return E(D), D;
3714
- }), c = (D) => go(D, { positionField: n, positionMultiplier: i }), h = (D) => {
3715
- const s = m ? c(D) : D;
3713
+ return D(E), E;
3714
+ }), c = (E) => go(E, { positionField: n, positionMultiplier: i }), h = (E) => {
3715
+ const s = m ? c(E) : E;
3716
3716
  return e.value = s, s;
3717
- }, I = (D) => D !== null && typeof D == "object", j = (D, s) => D.findIndex((f) => f[l] === s), M = (D, s) => {
3717
+ }, I = (E) => E !== null && typeof E == "object", j = (E, s) => E.findIndex((f) => f[l] === s), M = (E, s) => {
3718
3718
  const f = I(s) ? s[l] : s;
3719
- return j(D, f);
3720
- }, g = (D, s) => {
3721
- if (!s) return D.length;
3719
+ return j(E, f);
3720
+ }, g = (E, s) => {
3721
+ if (!s) return E.length;
3722
3722
  if (s.afterId !== void 0) {
3723
- const f = j(D, s.afterId);
3724
- return f === -1 ? D.length : f + 1;
3723
+ const f = j(E, s.afterId);
3724
+ return f === -1 ? E.length : f + 1;
3725
3725
  }
3726
- return s.afterIndex !== void 0 ? s.afterIndex < 0 ? D.length : Math.min(s.afterIndex + 1, D.length) : s.index !== void 0 ? Math.max(0, Math.min(s.index, D.length)) : D.length;
3726
+ return s.afterIndex !== void 0 ? s.afterIndex < 0 ? E.length : Math.min(s.afterIndex + 1, E.length) : s.index !== void 0 ? Math.max(0, Math.min(s.index, E.length)) : E.length;
3727
3727
  };
3728
3728
  return {
3729
3729
  viewItems: b,
3730
- addItem: (D, s) => {
3730
+ addItem: (E, s) => {
3731
3731
  const f = [...e.value], T = g(f, s);
3732
- return f.splice(T, 0, D), h(f);
3732
+ return f.splice(T, 0, E), h(f);
3733
3733
  },
3734
- deleteItem: (D) => {
3735
- const s = M(e.value, D);
3734
+ deleteItem: (E) => {
3735
+ const s = M(e.value, E);
3736
3736
  if (s === -1) return e.value;
3737
3737
  const f = [...e.value];
3738
3738
  return f.splice(s, 1), h(f);
3739
3739
  },
3740
- updateItem: (D, s) => {
3741
- const f = M(e.value, D);
3740
+ updateItem: (E, s) => {
3741
+ const f = M(e.value, E);
3742
3742
  if (f === -1) return e.value;
3743
3743
  const T = [...e.value];
3744
3744
  return T[f] = s, h(T);
3745
3745
  },
3746
- moveItem: (D, s) => {
3746
+ moveItem: (E, s) => {
3747
3747
  const f = e.value.length;
3748
- if (D === s || D < 0 || D >= f || s < 0 || s >= f) return e.value;
3749
- const T = [...e.value], [P] = T.splice(D, 1);
3748
+ if (E === s || E < 0 || E >= f || s < 0 || s >= f) return e.value;
3749
+ const T = [...e.value], [P] = T.splice(E, 1);
3750
3750
  return T.splice(s, 0, P), h(T);
3751
3751
  },
3752
3752
  recalculatePositions: c
@@ -3783,13 +3783,13 @@ function Ui(e, k) {
3783
3783
  });
3784
3784
  }
3785
3785
  function ji() {
3786
- const e = de(/* @__PURE__ */ new Map()), k = /* @__PURE__ */ new Set(), l = (w) => e.value.get(w) ?? k, n = (w, E) => {
3787
- E.size === 0 ? e.value.delete(w) : e.value.set(w, E), e.value = new Map(e.value);
3786
+ const e = de(/* @__PURE__ */ new Map()), k = /* @__PURE__ */ new Set(), l = (w) => e.value.get(w) ?? k, n = (w, D) => {
3787
+ D.size === 0 ? e.value.delete(w) : e.value.set(w, D), e.value = new Map(e.value);
3788
3788
  }, i = S(() => {
3789
3789
  const w = /* @__PURE__ */ new Set();
3790
- for (const [E, b] of e.value.entries())
3790
+ for (const [D, b] of e.value.entries())
3791
3791
  for (const c of b)
3792
- w.add(`${String(E)}:${String(c)}`);
3792
+ w.add(`${String(D)}:${String(c)}`);
3793
3793
  return w;
3794
3794
  }), m = S(() => i.value.size);
3795
3795
  return { getForParent: l, setForParent: n, merged: i, count: m };
@@ -3834,11 +3834,12 @@ export {
3834
3834
  ao as nextListEditorTempId,
3835
3835
  go as renumberPositions,
3836
3836
  ys as sortByPosition,
3837
+ hs as sortByPositionDeep,
3837
3838
  Fi as useApiFetchByIds,
3838
3839
  Ga as useApiFetchList,
3839
3840
  Ki as useApiFetchListBatch,
3840
3841
  za as useApiQueryBuilder,
3841
- hs as useApiRequest,
3842
+ gs as useApiRequest,
3842
3843
  _a as useFilterHelpers,
3843
3844
  Bi as useJobApi,
3844
3845
  Oi as useListEditor,
@@ -3852,7 +3853,7 @@ export {
3852
3853
  Ri as useSubjectSelect,
3853
3854
  Ni as useUnsavedChangesGuard,
3854
3855
  Jn as useUnsavedSection,
3855
- gs as useUserAdminConfigApi,
3856
- ps as useUserAdminConfigFactory
3856
+ ps as useUserAdminConfigApi,
3857
+ bs as useUserAdminConfigFactory
3857
3858
  };
3858
3859
  //# sourceMappingURL=labs.js.map