@anzusystems/common-admin 1.47.0-beta.dev-1784059862 → 1.47.0-beta.dev-1784059865

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,52 +1,56 @@
1
- import { aG as Oo, aH as Uo, d as fe, bT as jo, bU as qo, bV as Da, j as Ve, k as Go, a1 as Wo, h as ht, i as Kt, aj as Ia, ak as Ta, al as Ba, am as Fa, ag as Lt, a_ as Ra, aa as Ka, ab as La, ac as Va, ad as za, an as Ma, ao as Na, ae as Oa, af as Ua, bW as ja, bX as qa, be as Ga, bY as Ho, as as Wa, bZ as ta, ap as Jo, aq as Xo, aV as Yo, b2 as Qo, ar as Zo, E as _o, a8 as en, a2 as tn, b_ as an, q as on, p as nn, x as ln, a7 as sn, aI as rn, m as Ha, b$ as dn, l as cn, c0 as un, c1 as fn, c2 as Ja, c3 as Xa, c4 as Ya, c5 as Qa, c6 as Za, c7 as _a, c8 as eo, c9 as to, ca as ao, cb as oo, cc as no, cd as mn, _ as lo, ce as vn, cf as yn, cg as hn, ch as gn, ci as pn, cj as bn, ck as kn, g as wn, aU as Cn, cl as xn, cm as Sn, cn as An, z as En, co as Pn, cp as $n } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-Ckt9odt5.mjs";
2
- import { aE as Ji, cq as Xi, cr as Yi, aA as Qi, aB as Zi, aD as _i, aF as es, aC as ts, aS as as, aJ as os, bb as ns, aO as ls, aX as is, ay as ss, az as rs, cs as ds, ct as cs, cu as us, cv as fs, cw as ms, cx as vs, cy as ys, ai as hs, ah as gs, cz as ps, cA as bs, cB as ks, cC as ws, cD as Cs, cE as xs, cF as Ss, cG as As } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-Ckt9odt5.mjs";
3
- import { defineComponent as ze, inject as Vt, provide as oa, ref as _, openBlock as g, createBlock as U, withModifiers as J, withCtx as r, renderSlot as L, useModel as it, computed as b, watch as ue, createElementBlock as F, createElementVNode as K, toDisplayString as P, unref as c, createVNode as s, createTextVNode as N, Fragment as ne, renderList as Ze, normalizeClass as we, mergeModels as Te, createCommentVNode as M, onMounted as la, toRaw as wa, resolveComponent as Ca, mergeProps as Q, withDirectives as Dn, vShow as In, useSlots as io, useTemplateRef as zt, isRef as so, normalizeProps as De, guardReactiveProps as Ie, normalizeStyle as gt, shallowRef as aa, nextTick as Le, onBeforeUnmount as na, getCurrentInstance as xa } from "vue";
4
- import { VForm as Tn } from "vuetify/components/VForm";
1
+ import { aG as Oo, aH as Uo, d as fe, bT as jo, bU as qo, au as Go, bV as Da, j as Ve, k as Ho, a1 as Wo, h as ht, i as Kt, aj as Ia, ak as Ta, al as Fa, am as Ba, ag as Lt, a_ as Ra, aa as Ka, ab as La, ac as Va, ad as za, an as Ma, ao as Na, ae as Oa, af as Ua, bW as ja, bX as qa, be as Ga, bY as Jo, as as Ha, bZ as ta, ap as Xo, aq as Yo, aV as Qo, b2 as Zo, ar as _o, E as en, a8 as tn, a2 as an, b_ as on, q as nn, p as ln, x as sn, a7 as rn, aI as dn, m as Wa, b$ as cn, l as un, c0 as fn, c1 as mn, c2 as Ja, c3 as Xa, c4 as Ya, c5 as Qa, c6 as Za, c7 as _a, c8 as eo, c9 as to, ca as ao, cb as oo, cc as no, cd as vn, _ as lo, ce as yn, cf as hn, cg as pn, ch as gn, ci as bn, cj as kn, ck as wn, g as Cn, aU as xn, cl as Sn, cm as An, cn as En, z as Pn, co as $n, cp as Dn } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-BbBijPbh.mjs";
2
+ import { aE as Xi, cq as Yi, cr as Qi, aA as Zi, aB as _i, aD as es, aF as ts, aC as as, aS as os, aJ as ns, bb as ls, aO as is, aX as ss, ay as rs, az as ds, cs, ct as us, cu as fs, cv as ms, cw as vs, cx as ys, cy as hs, cz as ps, ai as gs, ah as bs, cA as ks, cB as ws, cC as Cs, cD as xs, cE as Ss, cF as As, cG as Es, cH as Ps } from "./AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-BbBijPbh.mjs";
3
+ import { defineComponent as ze, inject as Vt, provide as oa, ref as _, openBlock as g, createBlock as U, withModifiers as J, withCtx as r, renderSlot as L, useModel as it, computed as b, watch as ue, createElementBlock as B, createElementVNode as K, toDisplayString as $, unref as c, createVNode as s, createTextVNode as N, Fragment as ne, renderList as Ze, normalizeClass as we, mergeModels as Te, createCommentVNode as M, onMounted as la, toRaw as wa, resolveComponent as Ca, mergeProps as Q, withDirectives as In, vShow as Tn, useSlots as io, useTemplateRef as zt, isRef as so, normalizeProps as De, guardReactiveProps as Ie, normalizeStyle as pt, shallowRef as aa, nextTick as Le, onBeforeUnmount as na, getCurrentInstance as xa } from "vue";
4
+ import { VForm as Fn } from "vuetify/components/VForm";
5
5
  import { useI18n as je } from "vue-i18n";
6
6
  import { VBtn as q } from "vuetify/components/VBtn";
7
- import { VList as pt, VListItem as xe, VListItemTitle as Pe } from "vuetify/components/VList";
7
+ import { VList as gt, VListItem as xe, VListItemTitle as Pe } from "vuetify/components/VList";
8
8
  import { VMenu as Mt } from "vuetify/components/VMenu";
9
9
  import { useThrottleFn as It, useDebounceFn as Bn } from "@vueuse/core";
10
- import { VBtnToggle as Fn } from "vuetify/components/VBtnToggle";
10
+ import { VBtnToggle as Rn } from "vuetify/components/VBtnToggle";
11
11
  import ro from "axios";
12
12
  import { useDisplay as co } from "vuetify";
13
13
  import { VCard as ia, VCardTitle as uo, VCardText as Rt, VCardActions as fo } from "vuetify/components/VCard";
14
14
  import { VDialog as sa } from "vuetify/components/VDialog";
15
15
  import { VSpacer as ra } from "vuetify/components/VGrid";
16
- import { VIcon as H } from "vuetify/components/VIcon";
17
- import { VToolbar as Rn } from "vuetify/components/VToolbar";
16
+ import { VIcon as W } from "vuetify/components/VIcon";
17
+ import { VToolbar as Kn } from "vuetify/components/VToolbar";
18
18
  import { VTooltip as Se } from "vuetify/components/VTooltip";
19
- import { Intersect as Kn } from "vuetify/directives";
19
+ import { Intersect as Ln } from "vuetify/directives";
20
20
  import { VAlert as da } from "vuetify/components/VAlert";
21
21
  import { VProgressCircular as mo } from "vuetify/components/VProgressCircular";
22
22
  import { VRadio as Sa } from "vuetify/components/VRadio";
23
- import { VRadioGroup as Ln } from "vuetify/components/VRadioGroup";
24
- import { onBeforeRouteLeave as Vn } from "vue-router";
23
+ import { VRadioGroup as Vn } from "vuetify/components/VRadioGroup";
24
+ import { onBeforeRouteLeave as zn } from "vue-router";
25
25
  const Bi = /* @__PURE__ */ ze({
26
26
  __name: "AFilterWrapperSidebar",
27
27
  props: {
28
28
  formName: { default: "search" }
29
29
  },
30
30
  emits: ["submit"],
31
- setup(t, { emit: C }) {
32
- const u = C, a = Vt(Oo), v = Vt(Uo);
33
- if (fe(a) || fe(v))
31
+ setup(t, { expose: C, emit: u }) {
32
+ const a = u, m = Vt(Oo), h = Vt(Uo);
33
+ if (fe(m) || fe(h))
34
34
  throw new Error("Incorrect provide/inject config.");
35
- oa(jo, _(0)), oa(qo, _(/* @__PURE__ */ new Map()));
36
- const h = () => {
37
- u("submit");
35
+ oa(jo, _(0));
36
+ const y = _(/* @__PURE__ */ new Map());
37
+ oa(qo, y);
38
+ const { clearAll: x, clearAllFilterSelected: k } = Go(), p = () => {
39
+ a("submit");
38
40
  };
39
- return (y, x) => (g(), U(Tn, {
41
+ return C({ resetFilter: () => {
42
+ x(h, m), k(h, m, y);
43
+ } }), (I, R) => (g(), U(Fn, {
40
44
  name: t.formName,
41
- onSubmit: J(h, ["prevent"])
45
+ onSubmit: J(p, ["prevent"])
42
46
  }, {
43
47
  default: r(() => [
44
- L(y.$slots, "default")
48
+ L(I.$slots, "default")
45
49
  ]),
46
50
  _: 3
47
51
  }, 8, ["name"]));
48
52
  }
49
- }), zn = { class: "d-flex align-center justify-center" }, Mn = { class: "text-body-small mr-1" }, Fi = /* @__PURE__ */ ze({
53
+ }), Mn = { class: "d-flex align-center justify-center" }, Nn = { class: "text-body-small mr-1" }, Ri = /* @__PURE__ */ ze({
50
54
  __name: "ADatatableOrdering",
51
55
  props: /* @__PURE__ */ Te({
52
56
  variant: { default: "id" },
@@ -61,7 +65,7 @@ const Bi = /* @__PURE__ */ ze({
61
65
  }),
62
66
  emits: /* @__PURE__ */ Te(["sortByChange"], ["update:modelValue"]),
63
67
  setup(t, { emit: C }) {
64
- const u = t, a = C, v = it(t, "modelValue"), h = Vt(Da);
68
+ const u = t, a = C, m = it(t, "modelValue"), h = Vt(Da);
65
69
  if (fe(h))
66
70
  throw new Error("Incorrect provide/inject config.");
67
71
  const { t: y } = je(), x = [
@@ -90,7 +94,7 @@ const Bi = /* @__PURE__ */ ze({
90
94
  {
91
95
  id: 3,
92
96
  titleT: "common.system.datatable.ordering.mostRelevant",
93
- sortBy: { key: Go, order: Ve.Desc }
97
+ sortBy: { key: Ho, order: Ve.Desc }
94
98
  },
95
99
  {
96
100
  id: 1,
@@ -102,20 +106,20 @@ const Bi = /* @__PURE__ */ ze({
102
106
  titleT: "common.system.datatable.ordering.oldest",
103
107
  sortBy: { key: "createdAt", order: Ve.Asc }
104
108
  }
105
- ], $ = b(() => {
106
- const m = I.value.find((T) => T.id === v.value);
107
- return m ? y(m.titleT) : "";
108
- }), I = b(() => u.customOptions ? u.customOptions : u.variant === "most-relevant" ? p : u.variant === "id" ? k : x), R = (m) => {
109
- v.value = m.id;
110
- }, S = (m) => {
111
- m.sortBy || (h.value = {
109
+ ], P = b(() => {
110
+ const v = I.value.find((T) => T.id === m.value);
111
+ return v ? y(v.titleT) : "";
112
+ }), I = b(() => u.customOptions ? u.customOptions : u.variant === "most-relevant" ? p : u.variant === "id" ? k : x), R = (v) => {
113
+ m.value = v.id;
114
+ }, S = (v) => {
115
+ v.sortBy || (h.value = {
112
116
  ...h.value,
113
117
  sortBy: null
114
- }, a("sortByChange", m)), h.value.sortBy = m.sortBy, a("sortByChange", m);
118
+ }, a("sortByChange", v)), h.value.sortBy = v.sortBy, a("sortByChange", v);
115
119
  };
116
- return ue(v, (m, T) => {
117
- if (m === T) return;
118
- const z = I.value.find((B) => B.id === m);
120
+ return ue(m, (v, T) => {
121
+ if (v === T) return;
122
+ const z = I.value.find((F) => F.id === v);
119
123
  if (!fe(z)) {
120
124
  if (fe(u.paginationUpdateCustomCb)) {
121
125
  S(z);
@@ -125,15 +129,15 @@ const Bi = /* @__PURE__ */ ze({
125
129
  }
126
130
  }), ue(
127
131
  h,
128
- (m, T) => {
129
- if (m.sortBy?.key === T?.sortBy?.key && m.sortBy?.order === T?.sortBy?.order)
132
+ (v, T) => {
133
+ if (v.sortBy?.key === T?.sortBy?.key && v.sortBy?.order === T?.sortBy?.order)
130
134
  return;
131
- const z = I.value.find((B) => m.sortBy?.key === B.sortBy?.key && m.sortBy?.order === B.sortBy?.order);
132
- fe(z) || (v.value = z.id);
135
+ const z = I.value.find((F) => v.sortBy?.key === F.sortBy?.key && v.sortBy?.order === F.sortBy?.order);
136
+ fe(z) || (m.value = z.id);
133
137
  },
134
138
  { immediate: !0 }
135
- ), (m, T) => (g(), F("div", zn, [
136
- K("div", Mn, P(c(y)("common.system.datatable.ordering.title")) + ": ", 1),
139
+ ), (v, T) => (g(), B("div", Mn, [
140
+ K("div", Nn, $(c(y)("common.system.datatable.ordering.title")) + ": ", 1),
137
141
  s(q, {
138
142
  variant: "text",
139
143
  rounded: "xl",
@@ -142,28 +146,28 @@ const Bi = /* @__PURE__ */ ze({
142
146
  "append-icon": "mdi-chevron-down"
143
147
  }, {
144
148
  default: r(() => [
145
- N(P($.value) + " ", 1),
149
+ N($(P.value) + " ", 1),
146
150
  s(Mt, {
147
151
  activator: "parent",
148
152
  location: "bottom",
149
153
  "close-on-content-click": ""
150
154
  }, {
151
155
  default: r(() => [
152
- s(pt, {
156
+ s(gt, {
153
157
  density: "compact",
154
158
  class: "pa-0"
155
159
  }, {
156
160
  default: r(() => [
157
- (g(!0), F(ne, null, Ze(I.value, (z) => (g(), U(xe, {
161
+ (g(!0), B(ne, null, Ze(I.value, (z) => (g(), U(xe, {
158
162
  key: z.id,
159
- onClick: (B) => R(z)
163
+ onClick: (F) => R(z)
160
164
  }, {
161
165
  default: r(() => [
162
166
  s(Pe, {
163
- class: we({ "font-weight-bold": z.id === v.value })
167
+ class: we({ "font-weight-bold": z.id === m.value })
164
168
  }, {
165
169
  default: r(() => [
166
- N(P(c(y)(z.titleT)), 1)
170
+ N($(c(y)(z.titleT)), 1)
167
171
  ]),
168
172
  _: 2
169
173
  }, 1032, ["class"])
@@ -181,10 +185,10 @@ const Bi = /* @__PURE__ */ ze({
181
185
  })
182
186
  ]));
183
187
  }
184
- }), Nn = { class: "anzu-data-footer" }, On = {
188
+ }), On = { class: "anzu-data-footer" }, Un = {
185
189
  key: 0,
186
190
  class: "anzu-data-footer__page-limit"
187
- }, Un = { class: "anzu-data-footer__pagination" }, jn = { class: "anzu-data-footer__icons-before" }, qn = { class: "current-page" }, Gn = { class: "anzu-data-footer__icons-after" }, Wn = /* @__PURE__ */ ze({
191
+ }, jn = { class: "anzu-data-footer__pagination" }, qn = { class: "anzu-data-footer__icons-before" }, Gn = { class: "current-page" }, Hn = { class: "anzu-data-footer__icons-after" }, Wn = /* @__PURE__ */ ze({
188
192
  __name: "ADatatablePagination",
189
193
  props: {
190
194
  itemsPerPageOptions: { default: () => [10, 25, 50] },
@@ -195,31 +199,31 @@ const Bi = /* @__PURE__ */ ze({
195
199
  const u = C, a = Vt(Da);
196
200
  if (fe(a))
197
201
  throw new Error("Incorrect provide/inject config.");
198
- const { t: v } = je(), { setStoredPage: h } = Wo(), y = b(() => Math.ceil(a.value.totalCount / a.value.rowsPerPage)), x = b(() => a.value.page * a.value.rowsPerPage - a.value.rowsPerPage + 1), k = b(() => a.value.page * a.value.rowsPerPage - a.value.rowsPerPage + a.value.currentViewCount), p = b(() => a.value.page === 1), $ = b(() => !ht(a.value.hasNextPage) || a.value.page === y.value), I = b(() => ht(a.value.hasNextPage) && a.value.page === y.value || a.value.hasNextPage === !1), R = b(() => ht(a.value.hasNextPage) ? a.value.totalCount : a.value.hasNextPage ? k.value + 1 + "+" : k.value);
202
+ const { t: m } = je(), { setStoredPage: h } = Wo(), y = b(() => Math.ceil(a.value.totalCount / a.value.rowsPerPage)), x = b(() => a.value.page * a.value.rowsPerPage - a.value.rowsPerPage + 1), k = b(() => a.value.page * a.value.rowsPerPage - a.value.rowsPerPage + a.value.currentViewCount), p = b(() => a.value.page === 1), P = b(() => !ht(a.value.hasNextPage) || a.value.page === y.value), I = b(() => ht(a.value.hasNextPage) && a.value.page === y.value || a.value.hasNextPage === !1), R = b(() => ht(a.value.hasNextPage) ? a.value.totalCount : a.value.hasNextPage ? k.value + 1 + "+" : k.value);
199
203
  ue(
200
204
  () => a.value.rowsPerPage,
201
- (B, O) => {
202
- B !== O && (a.value.page = 1, u("change"));
205
+ (F, O) => {
206
+ F !== O && (a.value.page = 1, u("change"));
203
207
  }
204
208
  ), ue(
205
209
  () => a.value.page,
206
- (B, O) => {
207
- B !== O && (h(B), u("change"));
210
+ (F, O) => {
211
+ F !== O && (h(F), u("change"));
208
212
  }
209
213
  );
210
214
  const S = It(() => {
211
215
  a.value.page = 1;
212
- }, 300), m = It(() => {
216
+ }, 300), v = It(() => {
213
217
  a.value.page = y.value;
214
218
  }, 300), T = It(() => {
215
219
  a.value.page = a.value.page - 1;
216
220
  }, 300), z = It(() => {
217
221
  a.value.page = a.value.page + 1;
218
222
  }, 300);
219
- return (B, O) => (g(), F("div", Nn, [
220
- t.hideRecordsPerPage ? M("", !0) : (g(), F("div", On, [
221
- N(P(c(v)("common.system.datatable.itemsPerPage")) + ": ", 1),
222
- s(Fn, {
223
+ return (F, O) => (g(), B("div", On, [
224
+ t.hideRecordsPerPage ? M("", !0) : (g(), B("div", Un, [
225
+ N($(c(m)("common.system.datatable.itemsPerPage")) + ": ", 1),
226
+ s(Rn, {
223
227
  modelValue: c(a).rowsPerPage,
224
228
  "onUpdate:modelValue": O[0] || (O[0] = (E) => c(a).rowsPerPage = E),
225
229
  class: "ml-2",
@@ -228,7 +232,7 @@ const Bi = /* @__PURE__ */ ze({
228
232
  "data-cy": "table-size"
229
233
  }, {
230
234
  default: r(() => [
231
- (g(!0), F(ne, null, Ze(t.itemsPerPageOptions, (E) => (g(), U(q, {
235
+ (g(!0), B(ne, null, Ze(t.itemsPerPageOptions, (E) => (g(), U(q, {
232
236
  key: E,
233
237
  color: E === c(a).rowsPerPage ? "secondary" : "",
234
238
  value: E,
@@ -237,7 +241,7 @@ const Bi = /* @__PURE__ */ ze({
237
241
  variant: "text"
238
242
  }, {
239
243
  default: r(() => [
240
- N(P(E), 1)
244
+ N($(E), 1)
241
245
  ]),
242
246
  _: 2
243
247
  }, 1032, ["color", "value"]))), 128))
@@ -245,8 +249,8 @@ const Bi = /* @__PURE__ */ ze({
245
249
  _: 1
246
250
  }, 8, ["modelValue"])
247
251
  ])),
248
- K("div", Un, P(x.value) + " - " + P(k.value) + " " + P(c(v)("common.system.datatable.from")) + " " + P(R.value), 1),
249
- K("div", jn, [
252
+ K("div", jn, $(x.value) + " - " + $(k.value) + " " + $(c(m)("common.system.datatable.from")) + " " + $(R.value), 1),
253
+ K("div", qn, [
250
254
  s(q, {
251
255
  disabled: p.value,
252
256
  icon: "mdi-page-first",
@@ -262,10 +266,10 @@ const Bi = /* @__PURE__ */ ze({
262
266
  onClick: J(c(T), ["stop"])
263
267
  }, null, 8, ["disabled", "onClick"])
264
268
  ]),
265
- K("div", qn, [
266
- K("span", null, P(c(a).page), 1)
267
- ]),
268
269
  K("div", Gn, [
270
+ K("span", null, $(c(a).page), 1)
271
+ ]),
272
+ K("div", Hn, [
269
273
  s(q, {
270
274
  disabled: I.value,
271
275
  icon: "mdi-chevron-right",
@@ -274,67 +278,67 @@ const Bi = /* @__PURE__ */ ze({
274
278
  onClick: J(c(z), ["stop"])
275
279
  }, null, 8, ["disabled", "onClick"]),
276
280
  s(q, {
277
- disabled: $.value,
281
+ disabled: P.value,
278
282
  icon: "mdi-page-last",
279
283
  size: "small",
280
284
  variant: "text",
281
- onClick: J(c(m), ["stop"])
285
+ onClick: J(c(v), ["stop"])
282
286
  }, null, 8, ["disabled", "onClick"])
283
287
  ])
284
288
  ]));
285
289
  }
286
- }), Hn = (t, C, u = "id") => {
287
- const { querySetLimit: a, querySetOffset: v, querySetOrder: h, queryBuild: y, queryAddFilter: x, queryAdd: k } = Ho(), p = t.length;
288
- return a(p), v(1, p), h(u, !1), C ? k(u, t.join(",")) : x("in", u, t.join(",")), y();
289
- }, Ri = (t) => {
290
+ }), Jn = (t, C, u = "id") => {
291
+ const { querySetLimit: a, querySetOffset: m, querySetOrder: h, queryBuild: y, queryAddFilter: x, queryAdd: k } = Jo(), p = t.length;
292
+ return a(p), m(1, p), h(u, !1), C ? k(u, t.join(",")) : x("in", u, t.join(",")), y();
293
+ }, Ki = (t) => {
290
294
  const {
291
295
  client: C,
292
296
  system: u,
293
297
  entity: a,
294
- urlTemplate: v,
298
+ urlTemplate: m,
295
299
  urlParams: h,
296
300
  options: y = {},
297
301
  isSearchApi: x = !1,
298
302
  field: k = "id",
299
303
  silentConsoleError: p = !1
300
304
  } = t;
301
- let $ = null;
305
+ let P = null;
302
306
  return {
303
- executeFetch: async (S, m = {}) => {
304
- $ = new AbortController();
305
- const { urlTemplate: T, urlParams: z } = m;
307
+ executeFetch: async (S, v = {}) => {
308
+ P = new AbortController();
309
+ const { urlTemplate: T, urlParams: z } = v;
306
310
  try {
307
- const B = Kt(z) ? z : h, O = Kt(T) ? T : v;
311
+ const F = Kt(z) ? z : h, O = Kt(T) ? T : m;
308
312
  if (fe(O)) throw new Error("Url template is undefined");
309
- const E = (fe(B) ? O : Ia(O, B)) + Hn(S, x, k), d = await C().get(E, {
313
+ const E = (fe(F) ? O : Ia(O, F)) + Jn(S, x, k), d = await C().get(E, {
310
314
  ...y,
311
- signal: $.signal
315
+ signal: P.signal
312
316
  });
313
317
  if (!Ta(d.status))
314
- throw new Ba(d.status);
318
+ throw new Fa(d.status);
315
319
  if (d.data?.data)
316
320
  return d.data.data;
317
- if (d.status === Fa)
321
+ if (d.status === Ba)
318
322
  return [];
319
323
  throw new Lt();
320
- } catch (B) {
321
- if (B instanceof DOMException && B.name === "AbortError")
324
+ } catch (F) {
325
+ if (F instanceof DOMException && F.name === "AbortError")
322
326
  return [];
323
- throw Ra(B) ? B : Ka(B) ? new La(B, B.config?.url) : Va(B) ? new za(B, u, a, B) : Ma(B) ? new Na(B, u, a, B) : Oa(B) ? new Ua(B, B) : ja(B) ? new qa(B) : ro.isAxiosError(B) ? (p || console.error("Axios error: " + v, ...B.cause ? [B.cause] : []), new Ga(B)) : (p || console.error("AnzuFatalError: ", B), new Lt(B));
327
+ throw Ra(F) ? F : Ka(F) ? new La(F, F.config?.url) : Va(F) ? new za(F, u, a, F) : Ma(F) ? new Na(F, u, a, F) : Oa(F) ? new Ua(F, F) : ja(F) ? new qa(F) : ro.isAxiosError(F) ? (p || console.error("Axios error: " + m, ...F.cause ? [F.cause] : []), new Ga(F)) : (p || console.error("AnzuFatalError: ", F), new Lt(F));
324
328
  } finally {
325
- $ = null;
329
+ P = null;
326
330
  }
327
331
  },
328
332
  abortFetch: () => {
329
- $ && $.abort();
333
+ P && P.abort();
330
334
  }
331
335
  };
332
- }, Ki = (t) => {
336
+ }, Li = (t) => {
333
337
  const {
334
338
  client: C,
335
339
  system: u,
336
340
  entity: a,
337
- urlTemplate: v,
341
+ urlTemplate: m,
338
342
  urlParams: h,
339
343
  options: y = {},
340
344
  silentConsoleError: x = !1
@@ -344,17 +348,17 @@ const Bi = /* @__PURE__ */ ze({
344
348
  executeFetch: async (I, R, S = {}) => {
345
349
  k = new AbortController();
346
350
  const {
347
- urlTemplate: m,
351
+ urlTemplate: v,
348
352
  urlParams: T,
349
353
  sortBy: z = "id",
350
- sortDesc: B = !0,
354
+ sortDesc: F = !0,
351
355
  batchSize: O = 100,
352
356
  forceElastic: E = !1
353
357
  } = S;
354
358
  try {
355
- const d = R.general.elastic || E ? "/search" : "", D = Kt(T) ? T : h, w = Kt(m) ? m : v;
359
+ const d = R.general.elastic || E ? "/search" : "", D = Kt(T) ? T : h, w = Kt(v) ? v : m;
356
360
  if (fe(w)) throw new Error("Url template is undefined");
357
- const { pagination: i } = Wa(z, B ? Ve.Desc : Ve.Asc, {
361
+ const { pagination: i } = Ha(z, F ? Ve.Desc : Ve.Asc, {
358
362
  rowsPerPage: O
359
363
  }), G = (fe(D) ? w : Ia(w, D)) + d, X = [], ee = await C().get(
360
364
  G + ta(i, I, R),
@@ -364,11 +368,11 @@ const Bi = /* @__PURE__ */ ze({
364
368
  }
365
369
  );
366
370
  if (!Ta(ee.status))
367
- throw new Ba(ee.status);
371
+ throw new Fa(ee.status);
368
372
  if (ee.data) {
369
- const W = ee.data;
370
- if (X.push(...W.data), Jo(W))
371
- for (i.value.hasNextPage = W.hasNextPage; i.value.hasNextPage; ) {
373
+ const H = ee.data;
374
+ if (X.push(...H.data), Xo(H))
375
+ for (i.value.hasNextPage = H.hasNextPage; i.value.hasNextPage; ) {
372
376
  i.value.page++;
373
377
  const me = (await C().get(
374
378
  G + ta(i, I, R),
@@ -379,8 +383,8 @@ const Bi = /* @__PURE__ */ ze({
379
383
  )).data;
380
384
  X.push(...me.data), i.value.hasNextPage = me.hasNextPage;
381
385
  }
382
- else if (Xo(W)) {
383
- if (i.value.totalCount = W.totalCount, i.value.totalCount <= i.value.rowsPerPage)
386
+ else if (Yo(H)) {
387
+ if (i.value.totalCount = H.totalCount, i.value.totalCount <= i.value.rowsPerPage)
384
388
  return X;
385
389
  const Y = [], me = Math.ceil(i.value.totalCount / i.value.rowsPerPage);
386
390
  for (let ae = 1; ae < me; ae++) {
@@ -398,13 +402,13 @@ const Bi = /* @__PURE__ */ ze({
398
402
  }
399
403
  return X;
400
404
  }
401
- if (ee.status === Fa)
405
+ if (ee.status === Ba)
402
406
  return [];
403
407
  throw new Lt();
404
408
  } catch (d) {
405
409
  if (d instanceof DOMException && d.name === "AbortError")
406
410
  return [];
407
- throw Ra(d) ? d : Ka(d) ? new La(d, d.config?.url) : Va(d) ? new za(d, u, a, d) : Ma(d) ? new Na(d, u, a, d) : Oa(d) ? new Ua(d, d) : ja(d) ? new qa(d) : ro.isAxiosError(d) ? (x || console.error("Axios error: " + v, ...d.cause ? [d.cause] : []), new Ga(d)) : (x || console.error("AnzuFatalError: ", d), new Lt(d));
411
+ throw Ra(d) ? d : Ka(d) ? new La(d, d.config?.url) : Va(d) ? new za(d, u, a, d) : Ma(d) ? new Na(d, u, a, d) : Oa(d) ? new Ua(d, d) : ja(d) ? new qa(d) : ro.isAxiosError(d) ? (x || console.error("Axios error: " + m, ...d.cause ? [d.cause] : []), new Ga(d)) : (x || console.error("AnzuFatalError: ", d), new Lt(d));
408
412
  } finally {
409
413
  k = null;
410
414
  }
@@ -413,47 +417,47 @@ const Bi = /* @__PURE__ */ ze({
413
417
  k && k.abort();
414
418
  }
415
419
  };
416
- }, Tt = "/adm/v1/job", Bt = "job";
417
- function Li(t, C) {
420
+ }, Tt = "/adm/v1/job", Ft = "job";
421
+ function Vi(t, C) {
418
422
  return {
419
- useFetchJobList: () => en({ client: t, system: C, entity: Bt, urlTemplate: Tt }),
420
- fetchJob: (y) => _o(t, Tt + "/:id", { id: y }, C, Bt),
423
+ useFetchJobList: () => tn({ client: t, system: C, entity: Ft, urlTemplate: Tt }),
424
+ fetchJob: (y) => en(t, Tt + "/:id", { id: y }, C, Ft),
421
425
  createJob: (y) => {
422
- const x = Qo(y._resourceName).slice(4).replace("-kind-", "-kind/");
423
- return Zo(t, y, Tt + "/:type", { type: x }, C, Bt);
426
+ const x = Zo(y._resourceName).slice(4).replace("-kind-", "-kind/");
427
+ return _o(t, y, Tt + "/:type", { type: x }, C, Ft);
424
428
  },
425
- deleteJob: (y) => Yo(t, Tt + "/:id", { id: y }, C, Bt)
429
+ deleteJob: (y) => Qo(t, Tt + "/:id", { id: y }, C, Ft)
426
430
  };
427
431
  }
428
- const Jn = {
432
+ const Xn = {
429
433
  key: "",
430
434
  title: void 0,
431
435
  sortable: !1,
432
436
  fixed: !1
433
- }, Xn = {
437
+ }, Yn = {
434
438
  storeColumnsLocalStorage: !0,
435
439
  disableActions: !1,
436
440
  customI18n: void 0,
437
441
  showExpand: !1
438
442
  };
439
- function Yn(t, C, u, a, v = {}) {
440
- const h = { ...Xn, ...v }, y = h.customI18n ?? tn, { t: x } = y.global || y;
443
+ function Qn(t, C, u, a, m = {}) {
444
+ const h = { ...Yn, ...m }, y = h.customI18n ?? an, { t: x } = y.global || y;
441
445
  let k;
442
- ln(h.storeColumnsLocalStorage) ? k = h.storeColumnsLocalStorage : sn(h.storeColumnsLocalStorage) && h.storeColumnsLocalStorage === !0 && (k = "table_" + u + "_" + a);
446
+ sn(h.storeColumnsLocalStorage) ? k = h.storeColumnsLocalStorage : rn(h.storeColumnsLocalStorage) && h.storeColumnsLocalStorage === !0 && (k = "table_" + u + "_" + a);
443
447
  const p = t.map((S) => {
444
- const m = { ...Jn, ...S };
445
- return fe(m.title) && (fe(m.title) && an.includes(m.key) ? m.title = x("common.model.tracking." + m.key) : fe(m.title) && u && a ? m.title = x(u + "." + a + ".model." + m.key) : m.title = ""), m;
446
- }), $ = b(() => {
448
+ const v = { ...Xn, ...S };
449
+ return fe(v.title) && (fe(v.title) && on.includes(v.key) ? v.title = x("common.model.tracking." + v.key) : fe(v.title) && u && a ? v.title = x(u + "." + a + ".model." + v.key) : v.title = ""), v;
450
+ }), P = b(() => {
447
451
  const S = [];
448
- return h.showExpand && S.push({ key: "data-table-expand", sortable: !1 }), p.forEach((m) => {
449
- C.value.includes(m.key) || S.push(m);
452
+ return h.showExpand && S.push({ key: "data-table-expand", sortable: !1 }), p.forEach((v) => {
453
+ C.value.includes(v.key) || S.push(v);
450
454
  }), h.disableActions || S.push({ key: "actions", sortable: !1, fixed: "end" }), S;
451
455
  }), I = () => {
452
456
  if (!k || !localStorage) return;
453
457
  const S = localStorage.getItem(k);
454
458
  if (!S) return;
455
- const m = JSON.parse(S);
456
- on(m) && nn(m.hidden) && (C.value = m.hidden);
459
+ const v = JSON.parse(S);
460
+ nn(v) && ln(v.hidden) && (C.value = v.hidden);
457
461
  }, R = (S) => {
458
462
  !k || !localStorage || localStorage.setItem(k, JSON.stringify({ hidden: S }));
459
463
  };
@@ -463,18 +467,18 @@ function Yn(t, C, u, a, v = {}) {
463
467
  R(S);
464
468
  }), {
465
469
  columnsAll: p,
466
- columnsVisible: $,
470
+ columnsVisible: P,
467
471
  columnsHidden: C
468
472
  };
469
473
  }
470
- function Vi(t, C, u, a, v, h, y, x = null, k = void 0, p = !1) {
471
- const $ = _(!1), I = _([]), R = _([]), S = _(!1), { pagination: m, setSortBy: T, incrementPage: z } = Wa(
474
+ function zi(t, C, u, a, m, h, y, x = null, k = void 0, p = !1) {
475
+ const P = _(!1), I = _([]), R = _([]), S = _(!1), { pagination: v, setSortBy: T, incrementPage: z } = Ha(
472
476
  ht(x) ? null : x.key,
473
477
  x?.order
474
- ), { resetFilter: B, submitFilter: O } = rn(h, y, {
478
+ ), { resetFilter: F, submitFilter: O } = dn(h, y, {
475
479
  storeFiltersLocalStorage: !1,
476
480
  populateUrlParams: !1
477
- }), { showErrorsDefault: E } = Ha(), { columnsVisible: d, columnsAll: D, columnsHidden: w } = Yn(
481
+ }), { showErrorsDefault: E } = Wa(), { columnsVisible: d, columnsAll: D, columnsHidden: w } = Qn(
478
482
  t,
479
483
  C,
480
484
  u,
@@ -487,7 +491,7 @@ function Vi(t, C, u, a, v, h, y, x = null, k = void 0, p = !1) {
487
491
  }, X = async () => {
488
492
  S.value = !0, z();
489
493
  try {
490
- const ve = await v(m, h, y, k);
494
+ const ve = await m(v, h, y, k);
491
495
  I.value.push(...ve);
492
496
  } catch (ve) {
493
497
  E(ve);
@@ -496,11 +500,11 @@ function Vi(t, C, u, a, v, h, y, x = null, k = void 0, p = !1) {
496
500
  }
497
501
  }, ee = () => {
498
502
  I.value = [], R.value = [];
499
- }, W = async () => {
503
+ }, H = async () => {
500
504
  S.value = !0;
501
505
  try {
502
- I.value = await v(
503
- m,
506
+ I.value = await m(
507
+ v,
504
508
  h,
505
509
  y,
506
510
  k
@@ -511,16 +515,16 @@ function Vi(t, C, u, a, v, h, y, x = null, k = void 0, p = !1) {
511
515
  S.value = !1;
512
516
  }
513
517
  }, Y = Bn(async () => {
514
- await W();
518
+ await H();
515
519
  });
516
520
  return {
517
521
  items: I,
518
522
  selected: R,
519
- pagination: m,
523
+ pagination: v,
520
524
  columnsVisible: d,
521
525
  columnsHidden: w,
522
526
  columnsAll: D,
523
- filterTouched: $,
527
+ filterTouched: P,
524
528
  loading: S,
525
529
  onRowClick: (ve) => {
526
530
  const ae = ve.target;
@@ -537,14 +541,14 @@ function Vi(t, C, u, a, v, h, y, x = null, k = void 0, p = !1) {
537
541
  onOpen: i,
538
542
  sortByChange: G,
539
543
  getList: Y,
540
- resetFilter: () => B(m, Y),
541
- submitFilter: () => O(m, Y)
544
+ resetFilter: () => F(v, Y),
545
+ submitFilter: () => O(v, Y)
542
546
  };
543
547
  }
544
- const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class: "d-flex justify-space-between w-100 align-center" }, _n = { class: "d-flex align-center" }, el = { class: "d-flex align-center" }, tl = { class: "subject-select__sidebar system-border-r" }, al = { class: "subject-select-filter" }, ol = { class: "subject-select__content" }, nl = {
548
+ const Zn = { class: "d-flex flex-column w-100 px-1 align-center" }, _n = { class: "d-flex justify-space-between w-100 align-center" }, el = { class: "d-flex align-center" }, tl = { class: "d-flex align-center" }, al = { class: "subject-select__sidebar system-border-r" }, ol = { class: "subject-select-filter" }, nl = { class: "subject-select__content" }, ll = {
545
549
  key: 0,
546
550
  class: "d-flex w-100 align-center justify-center pa-4"
547
- }, ll = { class: "subject-select__actions system-border-t" }, il = { key: 0 }, sl = { key: 1 }, zi = /* @__PURE__ */ ze({
551
+ }, il = { class: "subject-select__actions system-border-t" }, sl = { key: 0 }, rl = { key: 1 }, Mi = /* @__PURE__ */ ze({
548
552
  __name: "ASubjectSelect",
549
553
  props: {
550
554
  selectedItems: {},
@@ -559,56 +563,56 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
559
563
  },
560
564
  emits: ["update:modelValue", "update:pagination", "onOpen", "onPageChange", "onConfirm", "onFetchNextPage"],
561
565
  setup(t, { expose: C, emit: u }) {
562
- const a = t, v = u, h = _(!1), y = b({
566
+ const a = t, m = u, h = _(!1), y = b({
563
567
  get() {
564
568
  return fe(a.modelValue) ? h.value : a.modelValue;
565
569
  },
566
570
  set(i) {
567
- h.value = i, v("update:modelValue", i);
571
+ h.value = i, m("update:modelValue", i);
568
572
  }
569
573
  }), x = b({
570
574
  get: () => a.pagination,
571
575
  set: (i) => {
572
- v("update:pagination", { ...wa(i) });
576
+ m("update:pagination", { ...wa(i) });
573
577
  }
574
- }), { mdAndDown: k } = co(), p = _(!k.value), $ = () => {
578
+ }), { mdAndDown: k } = co(), p = _(!k.value), P = () => {
575
579
  k.value && (p.value = !1);
576
580
  };
577
- oa(dn, $);
578
- const { t: I } = je(), R = b(() => a.selectedItems.length), S = b(() => R.value < a.minCount || R.value > a.maxCount), m = () => {
579
- v("onOpen"), p.value = !k.value, y.value = !0;
581
+ oa(cn, P);
582
+ const { t: I } = je(), R = b(() => a.selectedItems.length), S = b(() => R.value < a.minCount || R.value > a.maxCount), v = () => {
583
+ m("onOpen"), p.value = !k.value, y.value = !0;
580
584
  }, T = () => {
581
585
  p.value = !p.value;
582
586
  }, z = () => {
583
587
  y.value = !1;
584
- }, B = () => {
585
- v(
588
+ }, F = () => {
589
+ m(
586
590
  "onConfirm",
587
591
  a.selectedItems.map((i) => wa(i))
588
592
  ), z();
589
593
  }, O = () => {
590
- v("onFetchNextPage");
594
+ m("onFetchNextPage");
591
595
  }, E = () => {
592
- v("onPageChange");
596
+ m("onPageChange");
593
597
  }, d = b(() => Math.ceil(x.value.totalCount / x.value.rowsPerPage)), D = b(() => !(ht(x.value.hasNextPage) && x.value.page === d.value || x.value.hasNextPage === !1)), w = (i) => {
594
598
  i && D.value && !a.loading && O();
595
599
  };
596
600
  return la(() => {
597
- a.autoOpen && m();
601
+ a.autoOpen && v();
598
602
  }), C({
599
- open: m,
600
- closeSidebarOnMobile: $
603
+ open: v,
604
+ closeSidebarOnMobile: P
601
605
  }), (i, G) => {
602
606
  const X = Ca("ABtnSecondary"), ee = Ca("ABtnPrimary");
603
- return g(), F(ne, null, [
607
+ return g(), B(ne, null, [
604
608
  L(i.$slots, "activator", {
605
- props: { onClick: J(() => m(), ["stop"]) }
609
+ props: { onClick: J(() => v(), ["stop"]) }
606
610
  }),
607
611
  s(sa, Q(i.$attrs, {
608
612
  "model-value": y.value,
609
613
  fullscreen: "",
610
614
  class: "subject-select",
611
- "onUpdate:modelValue": G[1] || (G[1] = (W) => v("update:modelValue", W))
615
+ "onUpdate:modelValue": G[1] || (G[1] = (H) => m("update:modelValue", H))
612
616
  }), {
613
617
  default: r(() => [
614
618
  y.value ? (g(), U(ia, {
@@ -616,18 +620,18 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
616
620
  class: "subject-select__card"
617
621
  }, {
618
622
  default: r(() => [
619
- s(cn, {
623
+ s(un, {
620
624
  class: "subject-select__toolbar system-border-b",
621
625
  onOnCancel: z
622
626
  }, {
623
627
  default: r(() => [
624
628
  L(i.$slots, "title", {}, () => [
625
- N(P(c(I)(t.dialogTitleT)), 1)
629
+ N($(c(I)(t.dialogTitleT)), 1)
626
630
  ])
627
631
  ]),
628
632
  _: 3
629
633
  }),
630
- s(Rn, {
634
+ s(Kn, {
631
635
  density: "compact",
632
636
  color: "transparent",
633
637
  height: 46,
@@ -636,9 +640,9 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
636
640
  }, {
637
641
  default: r(() => [
638
642
  L(i.$slots, "second-bar", {}, () => [
639
- K("div", Qn, [
640
- K("div", Zn, [
641
- K("div", _n, [
643
+ K("div", Zn, [
644
+ K("div", _n, [
645
+ K("div", el, [
642
646
  s(q, {
643
647
  icon: "",
644
648
  width: 30,
@@ -646,7 +650,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
646
650
  onClick: T
647
651
  }, {
648
652
  default: r(() => [
649
- s(H, {
653
+ s(W, {
650
654
  icon: "mdi-tune",
651
655
  size: 16
652
656
  }),
@@ -655,7 +659,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
655
659
  location: "bottom"
656
660
  }, {
657
661
  default: r(() => [
658
- N(P(c(I)("common.subjectSelect.filter.toggle")), 1)
662
+ N($(c(I)("common.subjectSelect.filter.toggle")), 1)
659
663
  ]),
660
664
  _: 1
661
665
  })
@@ -664,7 +668,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
664
668
  }),
665
669
  L(i.$slots, "second-bar-left")
666
670
  ]),
667
- K("div", el, [
671
+ K("div", tl, [
668
672
  L(i.$slots, "second-bar-right")
669
673
  ])
670
674
  ])
@@ -676,29 +680,29 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
676
680
  K("div", {
677
681
  class: we(["subject-select__main", { "subject-select__main--sidebar-active": p.value }])
678
682
  }, [
679
- K("div", tl, [
680
- K("div", al, [
683
+ K("div", al, [
684
+ K("div", ol, [
681
685
  L(i.$slots, "filter")
682
686
  ])
683
687
  ]),
684
- K("div", ol, [
688
+ K("div", nl, [
685
689
  L(i.$slots, "content"),
686
- t.paginationMode === "more" ? (g(), F("div", nl, [
687
- Dn((g(), U(X, {
690
+ t.paginationMode === "more" ? (g(), B("div", ll, [
691
+ In((g(), U(X, {
688
692
  loading: t.loading,
689
693
  size: "small",
690
694
  onClick: O
691
695
  }, {
692
696
  default: r(() => [
693
697
  L(i.$slots, "button-confirm-title", {}, () => [
694
- N(P(c(I)("common.button.loadMore")), 1)
698
+ N($(c(I)("common.button.loadMore")), 1)
695
699
  ])
696
700
  ]),
697
701
  _: 3
698
702
  }, 8, ["loading"])), [
699
- [In, D.value || t.loading],
703
+ [Tn, D.value || t.loading],
700
704
  [
701
- Kn,
705
+ Ln,
702
706
  w,
703
707
  void 0,
704
708
  { quiet: !0 }
@@ -707,16 +711,16 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
707
711
  ])) : (g(), U(Wn, {
708
712
  key: 1,
709
713
  modelValue: x.value,
710
- "onUpdate:modelValue": G[0] || (G[0] = (W) => x.value = W),
714
+ "onUpdate:modelValue": G[0] || (G[0] = (H) => x.value = H),
711
715
  onChange: E
712
716
  }, null, 8, ["modelValue"]))
713
717
  ])
714
718
  ], 2),
715
- K("div", ll, [
716
- t.minCount === t.maxCount ? (g(), F("div", il, P(c(I)("common.subjectSelect.texts.pickExactCount", {
719
+ K("div", il, [
720
+ t.minCount === t.maxCount ? (g(), B("div", sl, $(c(I)("common.subjectSelect.texts.pickExactCount", {
717
721
  count: t.minCount,
718
722
  selected: R.value
719
- })), 1)) : (g(), F("div", sl, P(c(I)("common.subjectSelect.texts.pickRangeCount", {
723
+ })), 1)) : (g(), B("div", rl, $(c(I)("common.subjectSelect.texts.pickRangeCount", {
720
724
  minCount: t.minCount,
721
725
  maxCount: t.maxCount,
722
726
  selected: R.value
@@ -724,11 +728,11 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
724
728
  s(ra),
725
729
  s(ee, {
726
730
  disabled: S.value,
727
- onClick: J(B, ["stop"])
731
+ onClick: J(F, ["stop"])
728
732
  }, {
729
733
  default: r(() => [
730
734
  L(i.$slots, "button-confirm-title", {}, () => [
731
- N(P(c(I)("common.button.confirm")), 1)
735
+ N($(c(I)("common.button.confirm")), 1)
732
736
  ])
733
737
  ]),
734
738
  _: 3
@@ -743,38 +747,38 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
743
747
  ], 64);
744
748
  };
745
749
  }
746
- }), rl = {
750
+ }), dl = {
747
751
  key: 0,
748
752
  class: "a-le-header"
749
- }, dl = {
753
+ }, cl = {
750
754
  key: 0,
751
755
  class: "a-le-title-heading"
752
- }, cl = ["data-unsaved-count"], ul = {
756
+ }, ul = ["data-unsaved-count"], fl = {
753
757
  key: 1,
754
758
  class: "a-le-state a-le-state--loading"
755
- }, fl = {
759
+ }, ml = {
756
760
  key: 2,
757
761
  class: "a-le-state a-le-state--error"
758
- }, ml = {
762
+ }, vl = {
759
763
  key: 3,
760
764
  class: "a-le-state a-le-state--empty"
761
- }, vl = ["data-id", "tabindex", "onKeydown"], yl = ["onClick"], hl = { class: "a-le-row-main" }, gl = { class: "a-le-title" }, pl = {
765
+ }, yl = ["data-id", "tabindex", "onKeydown"], hl = ["onClick"], pl = { class: "a-le-row-main" }, gl = { class: "a-le-title" }, bl = {
762
766
  key: 0,
763
767
  class: "a-le-status"
764
- }, bl = {
768
+ }, kl = {
765
769
  key: 0,
766
770
  class: "a-le-status-badge"
767
- }, kl = { class: "a-le-actions" }, wl = { class: "a-le-row-body" }, Cl = { class: "a-le-form" }, xl = {
771
+ }, wl = { class: "a-le-actions" }, Cl = { class: "a-le-row-body" }, xl = { class: "a-le-form" }, Sl = {
768
772
  key: 0,
769
773
  class: "a-le-row-footer"
770
- }, Sl = {
774
+ }, Al = {
771
775
  key: 1,
772
776
  class: "a-le-row-body"
773
- }, Al = { class: "a-le-form" }, El = {
777
+ }, El = { class: "a-le-form" }, Pl = {
774
778
  class: "a-le-sr-only",
775
779
  "aria-live": "polite",
776
780
  role: "status"
777
- }, Mi = /* @__PURE__ */ ze({
781
+ }, Ni = /* @__PURE__ */ ze({
778
782
  __name: "AListEditor",
779
783
  props: /* @__PURE__ */ Te({
780
784
  factory: { type: Function, default: void 0 },
@@ -819,7 +823,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
819
823
  }),
820
824
  emits: /* @__PURE__ */ Te(["edit", "deleted", "close", "item-saved", "item-expand"], ["update:modelValue"]),
821
825
  setup(t, { expose: C, emit: u }) {
822
- const a = t, v = u, h = it(t, "modelValue"), { t: y } = je(), x = io(), k = co(), p = zt("rootEl"), $ = b(() => k.platform.value.touch), I = {
826
+ const a = t, m = u, h = it(t, "modelValue"), { t: y } = je(), x = io(), k = co(), p = zt("rootEl"), P = b(() => k.platform.value.touch), I = {
823
827
  get: () => h.value,
824
828
  set: (o) => h.value = o,
825
829
  factory: a.factory,
@@ -827,8 +831,8 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
827
831
  position: a.position,
828
832
  dirtyExclude: () => a.dirtyExclude ?? [],
829
833
  validate: a.validate
830
- }, R = a.editor ? null : un(a.stateKey, I), S = a.editor ?? R?.handle ?? fn(I), m = a.getKey ?? "id", T = Ja(R?.childScope ?? null), z = (o) => typeof m == "function" ? m(o) : o[m], B = b(
831
- () => typeof m == "function" ? "(fn)" : m
834
+ }, R = a.editor ? null : fn(a.stateKey, I), S = a.editor ?? R?.handle ?? mn(I), v = a.getKey ?? "id", T = Ja(R?.childScope ?? null), z = (o) => typeof v == "function" ? v(o) : o[v], F = b(
835
+ () => typeof v == "function" ? "(fn)" : v
832
836
  ), O = b(() => {
833
837
  const o = a.position;
834
838
  return o === void 0 || o === !1 ? "position" : typeof o == "object" ? o.field : o;
@@ -852,9 +856,9 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
852
856
  if (oe === 0 && f.size === 0) return;
853
857
  const Re = `${oe}|${[...f].sort().join(",")}`;
854
858
  d.has(Re) || (d.add(Re), oe > 0 && console.warn(
855
- `[list-editor] ${oe} row(s) resolve to an undefined key (key-field "${B.value}"). Point get-key at a field every item has, or give new items unique temp ids (see nextListEditorTempId).`
859
+ `[list-editor] ${oe} row(s) resolve to an undefined key (key-field "${F.value}"). Point get-key at a field every item has, or give new items unique temp ids (see nextListEditorTempId).`
856
860
  ), f.size > 0 && console.warn(
857
- `[list-editor] duplicate row keys (key-field "${B.value}"): ${[...f].join(", ")}. Row keys must be unique — dirty tracking and validation rails target rows by key.`
861
+ `[list-editor] duplicate row keys (key-field "${F.value}"): ${[...f].join(", ")}. Row keys must be unique — dirty tracking and validation rails target rows by key.`
858
862
  ));
859
863
  };
860
864
  ue(E, (o) => D(o), { immediate: !0 }), ue(
@@ -864,7 +868,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
864
868
  );
865
869
  const w = _(/* @__PURE__ */ new Set()), i = zt("rowsContainer"), G = b(() => !a.chips && !!x.item), X = b(() => !a.chips && !!x["item-readonly"]), {
866
870
  editingKeys: ee,
867
- editingSnapshots: W,
871
+ editingSnapshots: H,
868
872
  beginEdit: Y,
869
873
  cancelEdit: me,
870
874
  commitEdit: ve,
@@ -891,12 +895,12 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
891
895
  () => a.deleteConfirmText ?? (a.deleteMode === "immediate" ? y("common.sortable.deleteConfirmText") : y("common.sortable.deleteConfirmTextDeferred"))
892
896
  ), le = b(() => !a.readonly && !a.disabled && !a.loading), Me = b(() => le.value && a.showAddButton), _e = S.unsavedCount, kt = b(
893
897
  () => !a.readonly && !a.disableUnsaved && _e.value > 0
894
- ), Ot = b(() => !!(a.title || x.header) || kt.value), Ne = b(() => !!a.onItemSave), Ge = /* @__PURE__ */ new Map(), Be = b(() => {
898
+ ), Ot = b(() => !!(a.title || x.header) || kt.value), Ne = b(() => !!a.onItemSave), Ge = /* @__PURE__ */ new Map(), Fe = b(() => {
895
899
  const o = [], V = /* @__PURE__ */ new Set();
896
900
  for (const f of E.value) {
897
901
  V.add(f.key);
898
- const oe = ee.value.has(f.key), Re = w.value.has(f.key), Ce = a.loadingKeys?.has(f.key) ?? !1, Ke = a.disableUnsaved || a.readonly ? !1 : S.isUnsaved(f.key), ge = Ke, At = S.rowState(f.raw, f.key, oe), de = Ge.get(f.key);
899
- if (de && de.raw === f.raw && de.index === f.index && de.position === f.position && de.editing === oe && de.expanded === Re && de.loading === Ce && de.dirty === ge && de.unsaved === Ke && de.validationState === At) {
902
+ const oe = ee.value.has(f.key), Re = w.value.has(f.key), Ce = a.loadingKeys?.has(f.key) ?? !1, Ke = a.disableUnsaved || a.readonly ? !1 : S.isUnsaved(f.key), pe = Ke, At = S.rowState(f.raw, f.key, oe), de = Ge.get(f.key);
903
+ if (de && de.raw === f.raw && de.index === f.index && de.position === f.position && de.editing === oe && de.expanded === Re && de.loading === Ce && de.dirty === pe && de.unsaved === Ke && de.validationState === At) {
900
904
  o.push(de);
901
905
  continue;
902
906
  }
@@ -905,7 +909,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
905
909
  editing: oe,
906
910
  expanded: Re,
907
911
  loading: Ce,
908
- dirty: ge,
912
+ dirty: pe,
909
913
  unsaved: Ke,
910
914
  validationState: At
911
915
  };
@@ -914,8 +918,8 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
914
918
  for (const f of Ge.keys())
915
919
  V.has(f) || Ge.delete(f);
916
920
  return o;
917
- }), st = b(() => Be.value.length === 0), Ae = (o) => Be.value.find((V) => V.key === o), We = Ya({
918
- viewItems: b(() => Be.value.map((o) => ({ key: o.key }))),
921
+ }), st = b(() => Fe.value.length === 0), Ae = (o) => Fe.value.find((V) => V.key === o), He = Ya({
922
+ viewItems: b(() => Fe.value.map((o) => ({ key: o.key }))),
919
923
  variant: "flat",
920
924
  isReorderMode: _(!1),
921
925
  disabled: b(() => !le.value),
@@ -928,9 +932,9 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
928
932
  const V = Ae(o);
929
933
  V && tt(V);
930
934
  }
931
- }), Ut = (o) => oo(o, { compactField: a.compactField }), Fe = () => {
935
+ }), Ut = (o) => oo(o, { compactField: a.compactField }), Be = () => {
932
936
  Me.value && (be(), S.addItem(void 0, void 0));
933
- }, He = (o) => {
937
+ }, We = (o) => {
934
938
  le.value && (be(), S.addItem(void 0, { afterId: o.key }));
935
939
  }, Je = (o) => {
936
940
  if (le.value) {
@@ -938,7 +942,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
938
942
  tt(o);
939
943
  return;
940
944
  }
941
- G.value && (Y(o), w.value.delete(o.key)), v("edit", o);
945
+ G.value && (Y(o), w.value.delete(o.key)), m("edit", o);
942
946
  }
943
947
  }, rt = (o) => {
944
948
  if (a.disabled || a.loading) return;
@@ -949,7 +953,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
949
953
  for (const oe of w.value) w.value.delete(oe);
950
954
  w.value.add(V);
951
955
  }
952
- v("item-expand", o, !f);
956
+ m("item-expand", o, !f);
953
957
  }, wt = (o) => a.chips || a.disableRowClick || a.defaultExpanded || a.disabled || a.loading ? !1 : !!(o.editing || o.expanded || !a.readonly && a.showEditButton), he = (o) => {
954
958
  if (wt(o)) {
955
959
  if (o.editing || o.expanded) {
@@ -969,17 +973,17 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
969
973
  onDeleteConfirm: (o) => a.onDeleteConfirm ? a.onDeleteConfirm(o) : !0,
970
974
  onDelete: (o) => a.onDelete?.(o),
971
975
  onDeleted: (o) => {
972
- ee.value.delete(o.key), W.value.delete(o.key), w.value.delete(o.key), S.deleteItem(o.key, { trackDeleted: a.deleteMode === "deferred" }), v("deleted", o);
976
+ ee.value.delete(o.key), H.value.delete(o.key), w.value.delete(o.key), S.deleteItem(o.key, { trackDeleted: a.deleteMode === "deferred" }), m("deleted", o);
973
977
  },
974
978
  disableDeleteConfirm: () => a.disableDeleteConfirm || a.chips
975
979
  }), ke = async (o) => {
976
980
  le.value && await Ct(o);
977
981
  }, ut = async (o) => {
978
- a.onItemSave && await a.onItemSave(o.raw), ve(o), v("item-saved", o);
982
+ a.onItemSave && await a.onItemSave(o.raw), ve(o), m("item-saved", o);
979
983
  }, xt = (o) => {
980
984
  me(o);
981
985
  }, tt = (o) => {
982
- ae(o), w.value.delete(o.key), v("close", o);
986
+ ae(o), w.value.delete(o.key), m("close", o);
983
987
  }, Ye = /* @__PURE__ */ new Map(), St = (o) => {
984
988
  let V = Ye.get(o);
985
989
  return V || (V = {
@@ -1005,7 +1009,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1005
1009
  },
1006
1010
  addAfter: () => {
1007
1011
  const f = Ae(o);
1008
- f && He(f);
1012
+ f && We(f);
1009
1013
  },
1010
1014
  toggleExpand: () => {
1011
1015
  const f = Ae(o);
@@ -1015,7 +1019,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1015
1019
  }, Ye.set(o, V)), V;
1016
1020
  };
1017
1021
  ue(
1018
- () => Be.value,
1022
+ () => Fe.value,
1019
1023
  (o) => {
1020
1024
  if (Ye.size === 0) return;
1021
1025
  const V = new Set(o.map((f) => f.key));
@@ -1034,7 +1038,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1034
1038
  editing: o.editing || a.defaultExpanded,
1035
1039
  dirty: o.dirty,
1036
1040
  unsaved: o.unsaved,
1037
- touch: $.value,
1041
+ touch: P.value,
1038
1042
  stateKeyPrefix: T.prefixFor(o.key),
1039
1043
  actions: St(o.key)
1040
1044
  });
@@ -1053,7 +1057,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1053
1057
  }), C({
1054
1058
  ...S,
1055
1059
  validateAll: $e
1056
- }), (o, V) => (g(), F("div", {
1060
+ }), (o, V) => (g(), B("div", {
1057
1061
  ref_key: "rootEl",
1058
1062
  ref: p,
1059
1063
  class: we(["a-list-editor", [
@@ -1061,7 +1065,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1061
1065
  {
1062
1066
  "a-list-editor--readonly": t.readonly,
1063
1067
  "a-list-editor--disabled": t.disabled,
1064
- "a-list-editor--touch": $.value,
1068
+ "a-list-editor--touch": P.value,
1065
1069
  "a-list-editor--chips": t.chips
1066
1070
  }
1067
1071
  ]])
@@ -1071,23 +1075,23 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1071
1075
  ref: i,
1072
1076
  class: "a-le-card"
1073
1077
  }, [
1074
- Ot.value ? (g(), F("div", rl, [
1078
+ Ot.value ? (g(), B("div", dl, [
1075
1079
  L(o.$slots, "header", { title: t.title }, () => [
1076
- t.title ? (g(), F("h3", dl, P(t.title), 1)) : M("", !0)
1080
+ t.title ? (g(), B("h3", cl, $(t.title), 1)) : M("", !0)
1077
1081
  ]),
1078
- kt.value ? (g(), F("span", {
1082
+ kt.value ? (g(), B("span", {
1079
1083
  key: 0,
1080
1084
  class: "a-le-unsaved-count",
1081
1085
  "data-unsaved-count": c(_e)
1082
- }, P(c(y)("common.sortable.pendingChanges", { count: c(_e) })), 9, cl)) : M("", !0)
1086
+ }, $(c(y)("common.sortable.pendingChanges", { count: c(_e) })), 9, ul)) : M("", !0)
1083
1087
  ])) : M("", !0),
1084
- t.loading ? (g(), F("div", ul, [
1088
+ t.loading ? (g(), B("div", fl, [
1085
1089
  s(mo, {
1086
1090
  indeterminate: "",
1087
1091
  color: "primary",
1088
1092
  size: "32"
1089
1093
  })
1090
- ])) : t.error ? (g(), F("div", fl, [
1094
+ ])) : t.error ? (g(), B("div", ml, [
1091
1095
  s(da, {
1092
1096
  type: "error",
1093
1097
  variant: "tonal",
@@ -1095,24 +1099,24 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1095
1099
  border: "start"
1096
1100
  }, {
1097
1101
  default: r(() => [
1098
- N(P(t.error), 1)
1102
+ N($(t.error), 1)
1099
1103
  ]),
1100
1104
  _: 1
1101
1105
  })
1102
- ])) : st.value ? (g(), F("div", ml, [
1106
+ ])) : st.value ? (g(), B("div", vl, [
1103
1107
  L(o.$slots, "empty", {
1104
1108
  readonly: t.readonly,
1105
1109
  disabled: t.disabled,
1106
- actions: { add: Fe }
1110
+ actions: { add: Be }
1107
1111
  }, () => [
1108
1112
  s(eo, {
1109
1113
  title: qe.value,
1110
1114
  "add-label": ie.value,
1111
1115
  "can-add": Me.value,
1112
- onAdd: Fe
1116
+ onAdd: Be
1113
1117
  }, null, 8, ["title", "add-label", "can-add"])
1114
1118
  ])
1115
- ])) : (g(!0), F(ne, { key: 4 }, Ze(Be.value, (f) => (g(), F("div", {
1119
+ ])) : (g(!0), B(ne, { key: 4 }, Ze(Fe.value, (f) => (g(), B("div", {
1116
1120
  key: String(f.key),
1117
1121
  class: "a-le-row-wrapper"
1118
1122
  }, [
@@ -1120,7 +1124,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1120
1124
  K("div", {
1121
1125
  "data-id": String(f.key),
1122
1126
  role: "listitem",
1123
- tabindex: c(We).rowTabindex(f.key),
1127
+ tabindex: c(He).rowTabindex(f.key),
1124
1128
  class: we(["a-le-row", {
1125
1129
  "a-le-row--two-rows": t.twoRows === "always",
1126
1130
  "a-le-row--editing": f.editing,
@@ -1129,27 +1133,27 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1129
1133
  "a-le-row--clickable": wt(f),
1130
1134
  [`a-le-row--validation-${f.validationState}`]: f.validationState !== null
1131
1135
  }]),
1132
- onKeydown: (oe) => c(We).handleKeydown(f.key, oe)
1136
+ onKeydown: (oe) => c(He).handleKeydown(f.key, oe)
1133
1137
  }, [
1134
1138
  K("div", {
1135
1139
  class: "a-le-row-header",
1136
1140
  onClick: (oe) => he(f)
1137
1141
  }, [
1138
- K("div", hl, [
1142
+ K("div", pl, [
1139
1143
  L(o.$slots, "item-compact", Q({ ref_for: !0 }, Ee(f)), () => [
1140
- K("span", gl, P(Ut(f.raw)), 1)
1144
+ K("span", gl, $(Ut(f.raw)), 1)
1141
1145
  ]),
1142
1146
  f.unsaved ? (g(), U(to, {
1143
1147
  key: 0,
1144
1148
  "dot-only": t.chips
1145
1149
  }, null, 8, ["dot-only"])) : M("", !0)
1146
1150
  ]),
1147
- t.chips ? M("", !0) : (g(), F("div", pl, [
1151
+ t.chips ? M("", !0) : (g(), B("div", bl, [
1148
1152
  L(o.$slots, "item-status", Q({ ref_for: !0 }, Ee(f)), () => [
1149
- t.statusField && f.raw[t.statusField] != null && f.raw[t.statusField] !== "" ? (g(), F("span", bl, P(f.raw[t.statusField]), 1)) : M("", !0)
1153
+ t.statusField && f.raw[t.statusField] != null && f.raw[t.statusField] !== "" ? (g(), B("span", kl, $(f.raw[t.statusField]), 1)) : M("", !0)
1150
1154
  ])
1151
1155
  ])),
1152
- K("div", kl, [
1156
+ K("div", wl, [
1153
1157
  L(o.$slots, "item-actions", Q({ ref_for: !0 }, Ee(f)), () => [
1154
1158
  t.chips && t.showDeleteButton && le.value ? (g(), U(q, {
1155
1159
  key: 0,
@@ -1162,13 +1166,13 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1162
1166
  onClick: J((oe) => ke(f), ["stop"])
1163
1167
  }, {
1164
1168
  default: r(() => [
1165
- s(H, {
1169
+ s(W, {
1166
1170
  icon: "mdi-close",
1167
1171
  size: "14"
1168
1172
  })
1169
1173
  ]),
1170
1174
  _: 1
1171
- }, 8, ["onClick"])) : (g(), F(ne, { key: 1 }, [
1175
+ }, 8, ["onClick"])) : (g(), B(ne, { key: 1 }, [
1172
1176
  t.showEditButton && le.value && !t.defaultExpanded ? (g(), U(q, {
1173
1177
  key: 0,
1174
1178
  icon: "",
@@ -1180,7 +1184,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1180
1184
  onClick: J((oe) => Je(f), ["stop"])
1181
1185
  }, {
1182
1186
  default: r(() => [
1183
- s(H, {
1187
+ s(W, {
1184
1188
  icon: "mdi-pencil-outline",
1185
1189
  size: "18"
1186
1190
  }),
@@ -1202,7 +1206,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1202
1206
  onClick: J((oe) => ke(f), ["stop"])
1203
1207
  }, {
1204
1208
  default: r(() => [
1205
- s(H, {
1209
+ s(W, {
1206
1210
  icon: "mdi-trash-can-outline",
1207
1211
  size: "18"
1208
1212
  }),
@@ -1224,7 +1228,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1224
1228
  class: "mx-1 a-le-action a-le-action--menu"
1225
1229
  }, {
1226
1230
  default: r(() => [
1227
- s(H, {
1231
+ s(W, {
1228
1232
  icon: "mdi-dots-vertical",
1229
1233
  size: "18"
1230
1234
  }),
@@ -1235,18 +1239,18 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1235
1239
  }, null, 8, ["text"]),
1236
1240
  s(Mt, { activator: "parent" }, {
1237
1241
  default: r(() => [
1238
- s(pt, { density: "compact" }, {
1242
+ s(gt, { density: "compact" }, {
1239
1243
  default: r(() => [
1240
1244
  s(xe, {
1241
- onClick: (oe) => He(f)
1245
+ onClick: (oe) => We(f)
1242
1246
  }, {
1243
1247
  prepend: r(() => [
1244
- s(H, { icon: "mdi-plus" })
1248
+ s(W, { icon: "mdi-plus" })
1245
1249
  ]),
1246
1250
  default: r(() => [
1247
1251
  s(Pe, null, {
1248
1252
  default: r(() => [
1249
- N(P(c(y)("common.sortable.addAfter")), 1)
1253
+ N($(c(y)("common.sortable.addAfter")), 1)
1250
1254
  ]),
1251
1255
  _: 1
1252
1256
  })
@@ -1265,15 +1269,15 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1265
1269
  ], 64))
1266
1270
  ])
1267
1271
  ])
1268
- ], 8, yl),
1269
- (f.editing || t.defaultExpanded) && o.$slots.item ? (g(), F(ne, { key: 0 }, [
1270
- K("div", wl, [
1271
- K("div", Cl, [
1272
+ ], 8, hl),
1273
+ (f.editing || t.defaultExpanded) && o.$slots.item ? (g(), B(ne, { key: 0 }, [
1274
+ K("div", Cl, [
1275
+ K("div", xl, [
1272
1276
  L(o.$slots, "item", Q({ ref_for: !0 }, Ee(f)))
1273
1277
  ])
1274
1278
  ]),
1275
1279
  L(o.$slots, "item-footer", Q({ ref_for: !0 }, Ee(f)), () => [
1276
- Ne.value && !t.defaultExpanded ? (g(), F("div", xl, [
1280
+ Ne.value && !t.defaultExpanded ? (g(), B("div", Sl, [
1277
1281
  V[1] || (V[1] = K("div", { class: "a-le-row-footer-spacer" }, null, -1)),
1278
1282
  s(q, {
1279
1283
  variant: "text",
@@ -1281,7 +1285,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1281
1285
  onClick: J((oe) => xt(f), ["stop"])
1282
1286
  }, {
1283
1287
  default: r(() => [
1284
- N(P(c(y)("common.button.cancel")), 1)
1288
+ N($(c(y)("common.button.cancel")), 1)
1285
1289
  ]),
1286
1290
  _: 1
1287
1291
  }, 8, ["disabled", "onClick"]),
@@ -1293,36 +1297,36 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1293
1297
  onClick: J((oe) => ut(f), ["stop"])
1294
1298
  }, {
1295
1299
  default: r(() => [
1296
- N(P(c(y)("common.button.save")), 1)
1300
+ N($(c(y)("common.button.save")), 1)
1297
1301
  ]),
1298
1302
  _: 1
1299
1303
  }, 8, ["disabled", "onClick"])
1300
1304
  ])) : M("", !0)
1301
1305
  ])
1302
- ], 64)) : o.$slots["item-readonly"] && (t.readonly || f.expanded) ? (g(), F("div", Sl, [
1303
- K("div", Al, [
1306
+ ], 64)) : o.$slots["item-readonly"] && (t.readonly || f.expanded) ? (g(), B("div", Al, [
1307
+ K("div", El, [
1304
1308
  L(o.$slots, "item-readonly", Q({ ref_for: !0 }, Ee(f)))
1305
1309
  ])
1306
1310
  ])) : M("", !0)
1307
- ], 42, vl),
1311
+ ], 42, yl),
1308
1312
  L(o.$slots, "after-item", Q({ ref_for: !0 }, Ee(f)))
1309
1313
  ]))), 128)),
1310
1314
  Me.value && !t.loading && !t.error && !st.value ? L(o.$slots, "add-button", {
1311
1315
  readonly: t.readonly,
1312
1316
  disabled: t.disabled,
1313
- props: { onClick: Fe },
1314
- actions: { add: Fe }
1317
+ props: { onClick: Be },
1318
+ actions: { add: Be }
1315
1319
  }, () => [
1316
1320
  K("button", {
1317
1321
  type: "button",
1318
1322
  class: "a-le-row-add",
1319
- onClick: Fe
1323
+ onClick: Be
1320
1324
  }, [
1321
- s(H, {
1325
+ s(W, {
1322
1326
  icon: "mdi-plus",
1323
1327
  size: "18"
1324
1328
  }),
1325
- K("span", null, P(ie.value), 1)
1329
+ K("span", null, $(ie.value), 1)
1326
1330
  ])
1327
1331
  ], void 0, 5) : M("", !0)
1328
1332
  ], 512),
@@ -1338,9 +1342,9 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1338
1342
  onConfirm: c(et),
1339
1343
  onCancel: c(ct)
1340
1344
  }, null, 8, ["modelValue", "title", "text", "confirm-label", "cancel-label", "error", "in-flight", "onConfirm", "onCancel"]),
1341
- K("div", El, P(c(We).grabbedKey.value !== null ? c(y)("common.sortable.keyboardGrab.status", {
1342
- n: c(We).grabbedIndex.value + 1,
1343
- total: c(We).totalCount.value
1345
+ K("div", Pl, $(c(He).grabbedKey.value !== null ? c(y)("common.sortable.keyboardGrab.status", {
1346
+ n: c(He).grabbedIndex.value + 1,
1347
+ total: c(He).totalCount.value
1344
1348
  }) : ""), 1)
1345
1349
  ], 2));
1346
1350
  }
@@ -1351,25 +1355,25 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1351
1355
  a = Nt(t, a.parentKey);
1352
1356
  }
1353
1357
  return !1;
1354
- }, Pl = (t, C, u) => {
1358
+ }, $l = (t, C, u) => {
1355
1359
  let a = Nt(t, C);
1356
1360
  for (; a && a.depth > u; ) {
1357
1361
  if (a.parentKey === null) return null;
1358
1362
  a = Nt(t, a.parentKey);
1359
1363
  }
1360
1364
  return a && a.depth === u ? a : null;
1361
- }, $l = (t, C, u) => u === C || vo(t, C, u), Ft = (t, C, u, a) => {
1362
- for (let v = C; v >= 0 && v < t.length; v += u) {
1363
- const h = t[v];
1364
- if (!$l(t, a, h.key)) return h;
1365
+ }, Dl = (t, C, u) => u === C || vo(t, C, u), Bt = (t, C, u, a) => {
1366
+ for (let m = C; m >= 0 && m < t.length; m += u) {
1367
+ const h = t[m];
1368
+ if (!Dl(t, a, h.key)) return h;
1365
1369
  }
1366
1370
  return null;
1367
- }, Dl = (t) => {
1371
+ }, Il = (t) => {
1368
1372
  const {
1369
1373
  pointer: C,
1370
1374
  hoveredRow: u,
1371
1375
  sourceKey: a,
1372
- sourceSubtreeDepth: v,
1376
+ sourceSubtreeDepth: m,
1373
1377
  viewItems: h,
1374
1378
  maxDepth: y,
1375
1379
  indentPx: x,
@@ -1377,7 +1381,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1377
1381
  containerPaddingLeft: p
1378
1382
  } = t;
1379
1383
  if (u.key === a || vo(h, a, u.key)) return null;
1380
- const $ = C.y - u.rect.top, I = u.rect.height, R = $ < I / 2, S = R ? "top" : "bottom", m = h.findIndex((i) => i.key === u.key), T = R ? Ft(h, m - 1, -1, a) : Ft(h, m, -1, a), z = R ? Ft(h, m, 1, a) : Ft(h, m + 1, 1, a), B = C.x - k - p, O = Math.round(B / x), E = T ? T.depth + 1 : 0, d = z ? z.depth : 0, D = Math.max(d, Math.min(O, E));
1384
+ const P = C.y - u.rect.top, I = u.rect.height, R = P < I / 2, S = R ? "top" : "bottom", v = h.findIndex((i) => i.key === u.key), T = R ? Bt(h, v - 1, -1, a) : Bt(h, v, -1, a), z = R ? Bt(h, v, 1, a) : Bt(h, v + 1, 1, a), F = C.x - k - p, O = Math.round(F / x), E = T ? T.depth + 1 : 0, d = z ? z.depth : 0, D = Math.max(d, Math.min(O, E));
1381
1385
  let w;
1382
1386
  if (!T)
1383
1387
  w = {
@@ -1413,7 +1417,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1413
1417
  levelRowKey: T.key
1414
1418
  };
1415
1419
  else {
1416
- const i = Pl(h, T.key, D);
1420
+ const i = $l(h, T.key, D);
1417
1421
  i ? w = {
1418
1422
  type: "insert",
1419
1423
  refKey: u.key,
@@ -1434,28 +1438,28 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1434
1438
  levelRowKey: T.key
1435
1439
  };
1436
1440
  }
1437
- return w.depth + v - 1 >= y ? { type: "blocked", desired: w, reason: "maxDepth" } : w;
1438
- }, Il = ["data-id", "aria-level", "tabindex"], Tl = ["aria-label"], Bl = {
1441
+ return w.depth + m - 1 >= y ? { type: "blocked", desired: w, reason: "maxDepth" } : w;
1442
+ }, Tl = ["data-id", "aria-level", "tabindex"], Fl = ["aria-label"], Bl = {
1439
1443
  key: 2,
1440
1444
  class: "a-nested-list-editor__tree-toggle a-nested-list-editor__tree-toggle--spacer",
1441
1445
  "aria-hidden": "true"
1442
- }, Fl = { class: "a-le-row-main" }, Rl = { class: "a-le-title" }, Kl = {
1446
+ }, Rl = { class: "a-le-row-main" }, Kl = { class: "a-le-title" }, Ll = {
1443
1447
  key: 0,
1444
1448
  class: "a-nested-list-editor__drag-count",
1445
1449
  "aria-hidden": "true"
1446
- }, Ll = {
1450
+ }, Vl = {
1447
1451
  key: 3,
1448
1452
  class: "a-le-status"
1449
- }, Vl = {
1453
+ }, zl = {
1450
1454
  key: 0,
1451
1455
  class: "a-le-status-badge"
1452
- }, zl = { class: "a-le-actions" }, Ml = { class: "a-le-row-body" }, Nl = { class: "a-le-form" }, Ol = {
1456
+ }, Ml = { class: "a-le-actions" }, Nl = { class: "a-le-row-body" }, Ol = { class: "a-le-form" }, Ul = {
1453
1457
  key: 0,
1454
1458
  class: "a-le-row-footer"
1455
- }, Ul = {
1459
+ }, jl = {
1456
1460
  key: 1,
1457
1461
  class: "a-le-row-body"
1458
- }, jl = { class: "a-le-form" }, ql = ["data-parent-id"], Gl = "a-nested-list-editor__group", Wl = "a-le-drag-handle", yo = /* @__PURE__ */ ze({
1462
+ }, ql = { class: "a-le-form" }, Gl = ["data-parent-id"], Hl = "a-nested-list-editor__group", Wl = "a-le-drag-handle", yo = /* @__PURE__ */ ze({
1459
1463
  __name: "LeNestedRow",
1460
1464
  props: {
1461
1465
  vi: {},
@@ -1465,13 +1469,13 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1465
1469
  callbacks: {}
1466
1470
  },
1467
1471
  setup(t) {
1468
- const C = t, u = yo, { t: a } = je(), v = (k) => `--row-${String(k).replace(/\W/g, "_")}`, h = (k) => {
1472
+ const C = t, u = yo, { t: a } = je(), m = (k) => `--row-${String(k).replace(/\W/g, "_")}`, h = (k) => {
1469
1473
  if (typeof C.context.resolveValidation == "function")
1470
1474
  return C.context.resolveValidation(k, C.vi.key, C.vi.index);
1471
1475
  const p = k.validationState;
1472
1476
  return p === "valid" || p === "invalid" || p === "warning" ? p : null;
1473
1477
  }, y = () => C.context.buildSlotProps(C.vi), x = () => C.viewItems.filter((k) => k.parentKey === C.vi.key);
1474
- return (k, p) => (g(), F("div", {
1478
+ return (k, p) => (g(), B("div", {
1475
1479
  class: we([
1476
1480
  "a-le-row-wrapper",
1477
1481
  {
@@ -1482,7 +1486,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1482
1486
  role: "treeitem",
1483
1487
  "aria-level": t.vi.depth + 1,
1484
1488
  tabindex: t.context.keyboardNav ? t.context.keyboardNav.rowTabindex(t.vi.key) : void 0,
1485
- onKeydown: p[17] || (p[17] = ($) => t.context.keyboardNav ? t.context.keyboardNav.handleKeydown(t.vi.key, $) : void 0)
1489
+ onKeydown: p[17] || (p[17] = (P) => t.context.keyboardNav ? t.context.keyboardNav.handleKeydown(t.vi.key, P) : void 0)
1486
1490
  }, [
1487
1491
  L(k.$slots, "before-item", De(Ie(y()))),
1488
1492
  K("div", {
@@ -1500,21 +1504,21 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1500
1504
  [`a-le-row--validation-${h(t.vi.raw)}`]: h(t.vi.raw) !== null
1501
1505
  }
1502
1506
  ]),
1503
- style: gt({
1507
+ style: pt({
1504
1508
  "--nested-depth": t.vi.depth,
1505
- "anchor-name": v(t.vi.key),
1506
- "--parent-anchor": t.vi.parentKey !== null ? v(t.vi.parentKey) : "none"
1509
+ "anchor-name": m(t.vi.key),
1510
+ "--parent-anchor": t.vi.parentKey !== null ? m(t.vi.parentKey) : "none"
1507
1511
  })
1508
1512
  }, [
1509
1513
  K("div", {
1510
1514
  class: "a-le-row-header",
1511
- onClick: p[14] || (p[14] = ($) => t.callbacks.onRowClick(t.vi))
1515
+ onClick: p[14] || (p[14] = (P) => t.callbacks.onRowClick(t.vi))
1512
1516
  }, [
1513
- t.context.dragEnabled ? (g(), U(mn, {
1517
+ t.context.dragEnabled ? (g(), U(vn, {
1514
1518
  key: 0,
1515
1519
  class: we(Wl)
1516
1520
  })) : M("", !0),
1517
- t.context.showExpandToggle && t.vi.childrenAllowed ? (g(), F("button", {
1521
+ t.context.showExpandToggle && t.vi.childrenAllowed ? (g(), B("button", {
1518
1522
  key: 1,
1519
1523
  type: "button",
1520
1524
  class: we([
@@ -1525,31 +1529,31 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1525
1529
  }
1526
1530
  ]),
1527
1531
  "aria-label": t.vi.childrenExpanded ? c(a)("common.sortable.close") : c(a)("common.sortable.edit"),
1528
- onClick: p[0] || (p[0] = J(($) => t.vi.hasChildren && t.callbacks.onChevronClick(t.vi), ["stop"]))
1532
+ onClick: p[0] || (p[0] = J((P) => t.vi.hasChildren && t.callbacks.onChevronClick(t.vi), ["stop"]))
1529
1533
  }, [...p[18] || (p[18] = [
1530
1534
  K("span", { class: "a-nested-list-editor__tree-toggle-caret" }, null, -1)
1531
- ])], 10, Tl)) : t.context.showExpandToggle ? (g(), F("span", Bl)) : M("", !0),
1532
- K("div", Fl, [
1535
+ ])], 10, Fl)) : t.context.showExpandToggle ? (g(), B("span", Bl)) : M("", !0),
1536
+ K("div", Rl, [
1533
1537
  L(k.$slots, "item-compact", De(Ie(y())), () => [
1534
- K("span", Rl, P(t.context.resolveCompactText(t.vi.raw, t.vi.key)), 1)
1538
+ K("span", Kl, $(t.context.resolveCompactText(t.vi.raw, t.vi.key)), 1)
1535
1539
  ]),
1536
- t.vi.hasChildren ? (g(), F("span", Kl, [
1537
- s(H, {
1540
+ t.vi.hasChildren ? (g(), B("span", Ll, [
1541
+ s(W, {
1538
1542
  icon: "mdi-file-tree",
1539
1543
  size: "14"
1540
1544
  }),
1541
- N(" +" + P(t.vi.childrenCount), 1)
1545
+ N(" +" + $(t.vi.childrenCount), 1)
1542
1546
  ])) : M("", !0),
1543
1547
  t.vi.unsaved ? (g(), U(to, { key: 1 })) : M("", !0)
1544
1548
  ]),
1545
- t.context.reorderMode ? M("", !0) : (g(), F("div", Ll, [
1549
+ t.context.reorderMode ? M("", !0) : (g(), B("div", Vl, [
1546
1550
  L(k.$slots, "item-status", De(Ie(y())), () => [
1547
- t.context.statusField && t.vi.raw[t.context.statusField] != null && t.vi.raw[t.context.statusField] !== "" ? (g(), F("span", Vl, P(t.vi.raw[t.context.statusField]), 1)) : M("", !0)
1551
+ t.context.statusField && t.vi.raw[t.context.statusField] != null && t.vi.raw[t.context.statusField] !== "" ? (g(), B("span", zl, $(t.vi.raw[t.context.statusField]), 1)) : M("", !0)
1548
1552
  ])
1549
1553
  ])),
1550
- K("div", zl, [
1554
+ K("div", Ml, [
1551
1555
  L(k.$slots, "item-actions", De(Ie(y())), () => [
1552
- t.context.reorderMode ? (g(), F(ne, { key: 0 }, [
1556
+ t.context.reorderMode ? (g(), B(ne, { key: 0 }, [
1553
1557
  s(q, {
1554
1558
  icon: "",
1555
1559
  size: "small",
@@ -1557,10 +1561,10 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1557
1561
  density: "comfortable",
1558
1562
  disabled: t.vi.firstInParent,
1559
1563
  class: "mx-1 a-le-action a-le-action--up",
1560
- onClick: p[1] || (p[1] = J(($) => t.callbacks.moveUp(t.vi.key), ["stop"]))
1564
+ onClick: p[1] || (p[1] = J((P) => t.callbacks.moveUp(t.vi.key), ["stop"]))
1561
1565
  }, {
1562
1566
  default: r(() => [
1563
- s(H, {
1567
+ s(W, {
1564
1568
  icon: "mdi-arrow-up",
1565
1569
  size: "18"
1566
1570
  }),
@@ -1579,10 +1583,10 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1579
1583
  density: "comfortable",
1580
1584
  disabled: t.vi.lastInParent,
1581
1585
  class: "mx-1 a-le-action a-le-action--down",
1582
- onClick: p[2] || (p[2] = J(($) => t.callbacks.moveDown(t.vi.key), ["stop"]))
1586
+ onClick: p[2] || (p[2] = J((P) => t.callbacks.moveDown(t.vi.key), ["stop"]))
1583
1587
  }, {
1584
1588
  default: r(() => [
1585
- s(H, {
1589
+ s(W, {
1586
1590
  icon: "mdi-arrow-down",
1587
1591
  size: "18"
1588
1592
  }),
@@ -1603,7 +1607,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1603
1607
  class: "mx-1 a-le-action a-le-action--menu"
1604
1608
  }, {
1605
1609
  default: r(() => [
1606
- s(H, {
1610
+ s(W, {
1607
1611
  icon: "mdi-dots-vertical",
1608
1612
  size: "18"
1609
1613
  }),
@@ -1614,19 +1618,19 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1614
1618
  }, null, 8, ["text"]),
1615
1619
  s(Mt, { activator: "parent" }, {
1616
1620
  default: r(() => [
1617
- s(pt, { density: "compact" }, {
1621
+ s(gt, { density: "compact" }, {
1618
1622
  default: r(() => [
1619
1623
  s(xe, {
1620
1624
  disabled: t.vi.firstInParent,
1621
- onClick: p[3] || (p[3] = J(($) => t.callbacks.moveTop(t.vi.key), ["stop"]))
1625
+ onClick: p[3] || (p[3] = J((P) => t.callbacks.moveTop(t.vi.key), ["stop"]))
1622
1626
  }, {
1623
1627
  prepend: r(() => [
1624
- s(H, { icon: "mdi-arrow-collapse-up" })
1628
+ s(W, { icon: "mdi-arrow-collapse-up" })
1625
1629
  ]),
1626
1630
  default: r(() => [
1627
1631
  s(Pe, null, {
1628
1632
  default: r(() => [
1629
- N(P(c(a)("common.sortable.moveToTop")), 1)
1633
+ N($(c(a)("common.sortable.moveToTop")), 1)
1630
1634
  ]),
1631
1635
  _: 1
1632
1636
  })
@@ -1635,15 +1639,15 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1635
1639
  }, 8, ["disabled"]),
1636
1640
  s(xe, {
1637
1641
  disabled: t.vi.lastInParent,
1638
- onClick: p[4] || (p[4] = J(($) => t.callbacks.moveBottom(t.vi.key), ["stop"]))
1642
+ onClick: p[4] || (p[4] = J((P) => t.callbacks.moveBottom(t.vi.key), ["stop"]))
1639
1643
  }, {
1640
1644
  prepend: r(() => [
1641
- s(H, { icon: "mdi-arrow-collapse-down" })
1645
+ s(W, { icon: "mdi-arrow-collapse-down" })
1642
1646
  ]),
1643
1647
  default: r(() => [
1644
1648
  s(Pe, null, {
1645
1649
  default: r(() => [
1646
- N(P(c(a)("common.sortable.moveToBottom")), 1)
1650
+ N($(c(a)("common.sortable.moveToBottom")), 1)
1647
1651
  ]),
1648
1652
  _: 1
1649
1653
  })
@@ -1652,15 +1656,15 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1652
1656
  }, 8, ["disabled"]),
1653
1657
  t.context.showMoveToPosition && (!t.vi.firstInParent || !t.vi.lastInParent) ? (g(), U(xe, {
1654
1658
  key: 0,
1655
- onClick: p[5] || (p[5] = J(($) => t.callbacks.openMoveToPosition(t.vi), ["stop"]))
1659
+ onClick: p[5] || (p[5] = J((P) => t.callbacks.openMoveToPosition(t.vi), ["stop"]))
1656
1660
  }, {
1657
1661
  prepend: r(() => [
1658
- s(H, { icon: "mdi-target" })
1662
+ s(W, { icon: "mdi-target" })
1659
1663
  ]),
1660
1664
  default: r(() => [
1661
1665
  s(Pe, null, {
1662
1666
  default: r(() => [
1663
- N(P(c(a)("common.sortable.moveToPosition.action")), 1)
1667
+ N($(c(a)("common.sortable.moveToPosition.action")), 1)
1664
1668
  ]),
1665
1669
  _: 1
1666
1670
  })
@@ -1669,15 +1673,15 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1669
1673
  })) : M("", !0),
1670
1674
  t.context.showChangeParent ? (g(), U(xe, {
1671
1675
  key: 1,
1672
- onClick: p[6] || (p[6] = J(($) => t.callbacks.openChangeParent(t.vi), ["stop"]))
1676
+ onClick: p[6] || (p[6] = J((P) => t.callbacks.openChangeParent(t.vi), ["stop"]))
1673
1677
  }, {
1674
1678
  prepend: r(() => [
1675
- s(H, { icon: "mdi-folder-move-outline" })
1679
+ s(W, { icon: "mdi-folder-move-outline" })
1676
1680
  ]),
1677
1681
  default: r(() => [
1678
1682
  s(Pe, null, {
1679
1683
  default: r(() => [
1680
- N(P(c(a)("common.sortable.changeParent.action")), 1)
1684
+ N($(c(a)("common.sortable.changeParent.action")), 1)
1681
1685
  ]),
1682
1686
  _: 1
1683
1687
  })
@@ -1686,15 +1690,15 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1686
1690
  })) : M("", !0),
1687
1691
  s(xe, {
1688
1692
  disabled: !t.vi.canIndent,
1689
- onClick: p[7] || (p[7] = J(($) => t.callbacks.indent(t.vi), ["stop"]))
1693
+ onClick: p[7] || (p[7] = J((P) => t.callbacks.indent(t.vi), ["stop"]))
1690
1694
  }, {
1691
1695
  prepend: r(() => [
1692
- s(H, { icon: "mdi-format-indent-increase" })
1696
+ s(W, { icon: "mdi-format-indent-increase" })
1693
1697
  ]),
1694
1698
  default: r(() => [
1695
1699
  s(Pe, null, {
1696
1700
  default: r(() => [
1697
- N(P(c(a)("common.sortable.indent")), 1)
1701
+ N($(c(a)("common.sortable.indent")), 1)
1698
1702
  ]),
1699
1703
  _: 1
1700
1704
  })
@@ -1703,15 +1707,15 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1703
1707
  }, 8, ["disabled"]),
1704
1708
  s(xe, {
1705
1709
  disabled: !t.vi.canOutdent,
1706
- onClick: p[8] || (p[8] = J(($) => t.callbacks.outdent(t.vi), ["stop"]))
1710
+ onClick: p[8] || (p[8] = J((P) => t.callbacks.outdent(t.vi), ["stop"]))
1707
1711
  }, {
1708
1712
  prepend: r(() => [
1709
- s(H, { icon: "mdi-format-indent-decrease" })
1713
+ s(W, { icon: "mdi-format-indent-decrease" })
1710
1714
  ]),
1711
1715
  default: r(() => [
1712
1716
  s(Pe, null, {
1713
1717
  default: r(() => [
1714
- N(P(c(a)("common.sortable.outdent")), 1)
1718
+ N($(c(a)("common.sortable.outdent")), 1)
1715
1719
  ]),
1716
1720
  _: 1
1717
1721
  })
@@ -1720,10 +1724,10 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1720
1724
  }, 8, ["disabled"]),
1721
1725
  t.context.showDeleteButton && t.context.canInteract ? (g(), U(xe, {
1722
1726
  key: 2,
1723
- onClick: p[9] || (p[9] = J(($) => t.callbacks.onDeleteClick(t.vi), ["stop"]))
1727
+ onClick: p[9] || (p[9] = J((P) => t.callbacks.onDeleteClick(t.vi), ["stop"]))
1724
1728
  }, {
1725
1729
  prepend: r(() => [
1726
- s(H, {
1730
+ s(W, {
1727
1731
  icon: "mdi-trash-can-outline",
1728
1732
  color: "error"
1729
1733
  })
@@ -1731,7 +1735,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1731
1735
  default: r(() => [
1732
1736
  s(Pe, { class: "text-error" }, {
1733
1737
  default: r(() => [
1734
- N(P(c(a)("common.sortable.delete")), 1)
1738
+ N($(c(a)("common.sortable.delete")), 1)
1735
1739
  ]),
1736
1740
  _: 1
1737
1741
  })
@@ -1747,7 +1751,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1747
1751
  ]),
1748
1752
  _: 1
1749
1753
  })
1750
- ], 64)) : (g(), F(ne, { key: 1 }, [
1754
+ ], 64)) : (g(), B(ne, { key: 1 }, [
1751
1755
  t.context.showEditButton && t.context.canInteract ? (g(), U(q, {
1752
1756
  key: 0,
1753
1757
  icon: "",
@@ -1756,10 +1760,10 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1756
1760
  color: "primary",
1757
1761
  density: "comfortable",
1758
1762
  class: "mx-1 a-le-action a-le-action--edit",
1759
- onClick: p[10] || (p[10] = J(($) => t.callbacks.onEditClick(t.vi), ["stop"]))
1763
+ onClick: p[10] || (p[10] = J((P) => t.callbacks.onEditClick(t.vi), ["stop"]))
1760
1764
  }, {
1761
1765
  default: r(() => [
1762
- s(H, {
1766
+ s(W, {
1763
1767
  icon: "mdi-pencil-outline",
1764
1768
  size: "18"
1765
1769
  }),
@@ -1778,10 +1782,10 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1778
1782
  variant: "text",
1779
1783
  density: "comfortable",
1780
1784
  class: "mx-1 a-le-action a-le-action--delete",
1781
- onClick: p[11] || (p[11] = J(($) => t.callbacks.onDeleteClick(t.vi), ["stop"]))
1785
+ onClick: p[11] || (p[11] = J((P) => t.callbacks.onDeleteClick(t.vi), ["stop"]))
1782
1786
  }, {
1783
1787
  default: r(() => [
1784
- s(H, {
1788
+ s(W, {
1785
1789
  icon: "mdi-trash-can-outline",
1786
1790
  size: "18"
1787
1791
  }),
@@ -1803,7 +1807,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1803
1807
  class: "mx-1 a-le-action a-le-action--menu"
1804
1808
  }, {
1805
1809
  default: r(() => [
1806
- s(H, {
1810
+ s(W, {
1807
1811
  icon: "mdi-dots-vertical",
1808
1812
  size: "18"
1809
1813
  }),
@@ -1814,19 +1818,19 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1814
1818
  }, null, 8, ["text"]),
1815
1819
  s(Mt, { activator: "parent" }, {
1816
1820
  default: r(() => [
1817
- s(pt, { density: "compact" }, {
1821
+ s(gt, { density: "compact" }, {
1818
1822
  default: r(() => [
1819
1823
  t.context.showAddAfterAction ? (g(), U(xe, {
1820
1824
  key: 0,
1821
- onClick: p[12] || (p[12] = J(($) => t.callbacks.onAddAfterClick(t.vi), ["stop"]))
1825
+ onClick: p[12] || (p[12] = J((P) => t.callbacks.onAddAfterClick(t.vi), ["stop"]))
1822
1826
  }, {
1823
1827
  prepend: r(() => [
1824
- s(H, { icon: "mdi-playlist-plus" })
1828
+ s(W, { icon: "mdi-playlist-plus" })
1825
1829
  ]),
1826
1830
  default: r(() => [
1827
1831
  s(Pe, null, {
1828
1832
  default: r(() => [
1829
- N(P(c(a)("common.sortable.addAfter")), 1)
1833
+ N($(c(a)("common.sortable.addAfter")), 1)
1830
1834
  ]),
1831
1835
  _: 1
1832
1836
  })
@@ -1835,15 +1839,15 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1835
1839
  })) : M("", !0),
1836
1840
  t.context.showAddChildButton && t.vi.canAddChild ? (g(), U(xe, {
1837
1841
  key: 1,
1838
- onClick: p[13] || (p[13] = J(($) => t.callbacks.onAddChildClick(t.vi), ["stop"]))
1842
+ onClick: p[13] || (p[13] = J((P) => t.callbacks.onAddChildClick(t.vi), ["stop"]))
1839
1843
  }, {
1840
1844
  prepend: r(() => [
1841
- s(H, { icon: "mdi-subdirectory-arrow-right" })
1845
+ s(W, { icon: "mdi-subdirectory-arrow-right" })
1842
1846
  ]),
1843
1847
  default: r(() => [
1844
1848
  s(Pe, null, {
1845
1849
  default: r(() => [
1846
- N(P(c(a)("common.sortable.addChild")), 1)
1850
+ N($(c(a)("common.sortable.addChild")), 1)
1847
1851
  ]),
1848
1852
  _: 1
1849
1853
  })
@@ -1863,22 +1867,22 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1863
1867
  ])
1864
1868
  ])
1865
1869
  ]),
1866
- t.vi.editing && !t.context.reorderMode && k.$slots.item ? (g(), F(ne, { key: 0 }, [
1867
- K("div", Ml, [
1868
- K("div", Nl, [
1870
+ t.vi.editing && !t.context.reorderMode && k.$slots.item ? (g(), B(ne, { key: 0 }, [
1871
+ K("div", Nl, [
1872
+ K("div", Ol, [
1869
1873
  L(k.$slots, "item", De(Ie(y())))
1870
1874
  ])
1871
1875
  ]),
1872
1876
  L(k.$slots, "item-footer", De(Ie(y())), () => [
1873
- t.context.showInlineSaveFooter ? (g(), F("div", Ol, [
1877
+ t.context.showInlineSaveFooter ? (g(), B("div", Ul, [
1874
1878
  p[19] || (p[19] = K("div", { class: "a-le-row-footer-spacer" }, null, -1)),
1875
1879
  s(q, {
1876
1880
  variant: "text",
1877
1881
  disabled: t.vi.loading,
1878
- onClick: p[15] || (p[15] = J(($) => t.callbacks.onCancelClick(t.vi), ["stop"]))
1882
+ onClick: p[15] || (p[15] = J((P) => t.callbacks.onCancelClick(t.vi), ["stop"]))
1879
1883
  }, {
1880
1884
  default: r(() => [
1881
- N(P(c(a)("common.button.cancel")), 1)
1885
+ N($(c(a)("common.button.cancel")), 1)
1882
1886
  ]),
1883
1887
  _: 1
1884
1888
  }, 8, ["disabled"]),
@@ -1887,34 +1891,34 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1887
1891
  variant: "flat",
1888
1892
  "prepend-icon": "mdi-check",
1889
1893
  disabled: t.vi.loading,
1890
- onClick: p[16] || (p[16] = J(($) => t.callbacks.onSaveClick(t.vi), ["stop"]))
1894
+ onClick: p[16] || (p[16] = J((P) => t.callbacks.onSaveClick(t.vi), ["stop"]))
1891
1895
  }, {
1892
1896
  default: r(() => [
1893
- N(P(c(a)("common.button.save")), 1)
1897
+ N($(c(a)("common.button.save")), 1)
1894
1898
  ]),
1895
1899
  _: 1
1896
1900
  }, 8, ["disabled"])
1897
1901
  ])) : M("", !0)
1898
1902
  ])
1899
- ], 64)) : k.$slots["item-readonly"] && (t.context.readonly || t.vi.expanded) && !t.context.reorderMode ? (g(), F("div", Ul, [
1900
- K("div", jl, [
1903
+ ], 64)) : k.$slots["item-readonly"] && (t.context.readonly || t.vi.expanded) && !t.context.reorderMode ? (g(), B("div", jl, [
1904
+ K("div", ql, [
1901
1905
  L(k.$slots, "item-readonly", De(Ie(y())))
1902
1906
  ])
1903
1907
  ])) : M("", !0)
1904
1908
  ], 6),
1905
1909
  L(k.$slots, "after-item", De(Ie(y()))),
1906
- t.vi.hasChildren && t.vi.childrenExpanded ? (g(), F("div", {
1910
+ t.vi.hasChildren && t.vi.childrenExpanded ? (g(), B("div", {
1907
1911
  key: 0,
1908
1912
  class: "a-nested-list-editor__children",
1909
- style: gt({ "--parent-depth": t.vi.depth })
1913
+ style: pt({ "--parent-depth": t.vi.depth })
1910
1914
  }, [
1911
1915
  K("div", {
1912
- class: we([Gl]),
1916
+ class: we([Hl]),
1913
1917
  "data-parent-id": String(t.vi.key)
1914
1918
  }, [
1915
- (g(!0), F(ne, null, Ze(x(), ($) => (g(), U(c(u), {
1916
- key: String($.key),
1917
- vi: $,
1919
+ (g(!0), B(ne, null, Ze(x(), (P) => (g(), U(c(u), {
1920
+ key: String(P.key),
1921
+ vi: P,
1918
1922
  "view-items": t.viewItems,
1919
1923
  "drag-state": t.dragState,
1920
1924
  context: t.context,
@@ -1946,11 +1950,11 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1946
1950
  ]),
1947
1951
  _: 3
1948
1952
  }, 8, ["vi", "view-items", "drag-state", "context", "callbacks"]))), 128))
1949
- ], 10, ql)
1953
+ ], 10, Gl)
1950
1954
  ], 4)) : M("", !0)
1951
- ], 42, Il));
1955
+ ], 42, Tl));
1952
1956
  }
1953
- }), Hl = { class: "text-body-medium mb-2" }, Jl = /* @__PURE__ */ ze({
1957
+ }), Jl = { class: "text-body-medium mb-2" }, Xl = /* @__PURE__ */ ze({
1954
1958
  __name: "LeChangeParentDialog",
1955
1959
  props: /* @__PURE__ */ Te({
1956
1960
  tree: {},
@@ -1965,8 +1969,8 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1965
1969
  }),
1966
1970
  emits: /* @__PURE__ */ Te(["confirm"], ["update:modelValue"]),
1967
1971
  setup(t, { emit: C }) {
1968
- const u = t, a = C, v = it(t, "modelValue"), { t: h } = je(), y = _(void 0), x = _("last");
1969
- ue(v, (d) => {
1972
+ const u = t, a = C, m = it(t, "modelValue"), { t: h } = je(), y = _(void 0), x = _("last");
1973
+ ue(m, (d) => {
1970
1974
  d && (y.value = void 0, x.value = "last");
1971
1975
  });
1972
1976
  const k = b(() => {
@@ -1976,8 +1980,8 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1976
1980
  for (const i of w) {
1977
1981
  if (i.data[u.keyField] === u.sourceKey) {
1978
1982
  const X = (ee) => {
1979
- for (const W of ee)
1980
- d.add(W.data[u.keyField]), W.children?.length && X(W.children);
1983
+ for (const H of ee)
1984
+ d.add(H.data[u.keyField]), H.children?.length && X(H.children);
1981
1985
  };
1982
1986
  return i.children?.length && X(i.children), !0;
1983
1987
  }
@@ -1999,7 +2003,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
1999
2003
  return null;
2000
2004
  };
2001
2005
  return d(u.tree.children);
2002
- }), $ = b(() => {
2006
+ }), P = b(() => {
2003
2007
  if (u.sourceKey === null) return;
2004
2008
  const d = (D, w) => {
2005
2009
  for (const i of D) {
@@ -2018,19 +2022,19 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2018
2022
  depth: 0,
2019
2023
  label: h("common.sortable.changeParent.rootLabel"),
2020
2024
  hasChildren: u.tree.children.length > 0,
2021
- disallowed: $.value === null,
2022
- reason: $.value === null ? "currentParent" : null
2025
+ disallowed: P.value === null,
2026
+ reason: P.value === null ? "currentParent" : null
2023
2027
  });
2024
2028
  const w = (i, G) => {
2025
2029
  for (const X of i) {
2026
2030
  const ee = X.data[u.keyField];
2027
- let W = !1, Y = null;
2028
- ee === u.sourceKey ? (W = !0, Y = "self") : k.value.has(ee) ? (W = !0, Y = "descendant") : $.value !== void 0 && $.value === ee ? (W = !0, Y = "currentParent") : G + 1 + D > u.maxDepth && (W = !0, Y = "maxDepth"), d.push({
2031
+ let H = !1, Y = null;
2032
+ ee === u.sourceKey ? (H = !0, Y = "self") : k.value.has(ee) ? (H = !0, Y = "descendant") : P.value !== void 0 && P.value === ee ? (H = !0, Y = "currentParent") : G + 1 + D > u.maxDepth && (H = !0, Y = "maxDepth"), d.push({
2029
2033
  key: ee,
2030
2034
  depth: G + 1,
2031
2035
  label: u.resolveLabel(X.data, ee),
2032
2036
  hasChildren: !!(X.children && X.children.length > 0),
2033
- disallowed: W,
2037
+ disallowed: H,
2034
2038
  reason: Y
2035
2039
  }), X.children?.length && w(X.children, G + 1);
2036
2040
  }
@@ -2038,18 +2042,18 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2038
2042
  return w(u.tree.children, 0), d;
2039
2043
  }), R = b(() => I.value.filter((d) => !d.disallowed)), S = b(
2040
2044
  () => y.value === void 0 ? null : I.value.find((d) => d.key === y.value) ?? null
2041
- ), m = b(
2045
+ ), v = b(
2042
2046
  () => !!S.value && S.value.hasChildren
2043
2047
  ), T = (d) => {
2044
2048
  d.disallowed || (y.value = d.key);
2045
2049
  }, z = () => {
2046
- S.value && (a("confirm", S.value.key, x.value), v.value = !1);
2047
- }, B = () => {
2048
- v.value = !1;
2050
+ S.value && (a("confirm", S.value.key, x.value), m.value = !1);
2051
+ }, F = () => {
2052
+ m.value = !1;
2049
2053
  }, O = (d) => `${d * 16}px`, E = (d) => d === "maxDepth" ? h("common.sortable.changeParent.errorMaxDepth") : "";
2050
2054
  return (d, D) => (g(), U(sa, {
2051
- modelValue: v.value,
2052
- "onUpdate:modelValue": D[1] || (D[1] = (w) => v.value = w),
2055
+ modelValue: m.value,
2056
+ "onUpdate:modelValue": D[1] || (D[1] = (w) => m.value = w),
2053
2057
  "max-width": "540",
2054
2058
  persistent: ""
2055
2059
  }, {
@@ -2058,7 +2062,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2058
2062
  default: r(() => [
2059
2063
  s(uo, null, {
2060
2064
  default: r(() => [
2061
- N(P(c(h)("common.sortable.changeParent.title")), 1)
2065
+ N($(c(h)("common.sortable.changeParent.title")), 1)
2062
2066
  ]),
2063
2067
  _: 1
2064
2068
  }),
@@ -2073,42 +2077,42 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2073
2077
  density: "compact"
2074
2078
  }, {
2075
2079
  default: r(() => [
2076
- K("strong", null, P(c(h)("common.sortable.changeParent.noTargetsTitle")), 1),
2077
- K("div", null, P(c(h)("common.sortable.changeParent.noTargetsText")), 1)
2080
+ K("strong", null, $(c(h)("common.sortable.changeParent.noTargetsTitle")), 1),
2081
+ K("div", null, $(c(h)("common.sortable.changeParent.noTargetsText")), 1)
2078
2082
  ]),
2079
2083
  _: 1
2080
2084
  })
2081
2085
  ]),
2082
2086
  _: 1
2083
- })) : (g(), F(ne, { key: 1 }, [
2087
+ })) : (g(), B(ne, { key: 1 }, [
2084
2088
  s(Rt, { class: "pb-1" }, {
2085
2089
  default: r(() => [
2086
- s(pt, {
2090
+ s(gt, {
2087
2091
  density: "compact",
2088
2092
  class: "le-change-parent__list"
2089
2093
  }, {
2090
2094
  default: r(() => [
2091
- (g(!0), F(ne, null, Ze(I.value, (w) => (g(), U(xe, {
2095
+ (g(!0), B(ne, null, Ze(I.value, (w) => (g(), U(xe, {
2092
2096
  key: w.key === null ? "__root__" : String(w.key),
2093
2097
  disabled: w.disallowed,
2094
2098
  active: y.value === w.key,
2095
2099
  title: w.label,
2096
2100
  subtitle: E(w.reason),
2097
- style: gt({ paddingInlineStart: O(w.depth) }),
2101
+ style: pt({ paddingInlineStart: O(w.depth) }),
2098
2102
  "data-disallowed": w.disallowed ? "true" : "false",
2099
2103
  "data-reason": w.reason ?? "",
2100
2104
  onClick: (i) => T(w)
2101
2105
  }, {
2102
2106
  prepend: r(() => [
2103
- w.key === null ? (g(), U(H, {
2107
+ w.key === null ? (g(), U(W, {
2104
2108
  key: 0,
2105
2109
  icon: "mdi-folder-home-outline",
2106
2110
  size: "18"
2107
- })) : w.hasChildren ? (g(), U(H, {
2111
+ })) : w.hasChildren ? (g(), U(W, {
2108
2112
  key: 1,
2109
2113
  icon: "mdi-folder-outline",
2110
2114
  size: "18"
2111
- })) : (g(), U(H, {
2115
+ })) : (g(), U(W, {
2112
2116
  key: 2,
2113
2117
  icon: "mdi-file-outline",
2114
2118
  size: "18"
@@ -2122,15 +2126,15 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2122
2126
  ]),
2123
2127
  _: 1
2124
2128
  }),
2125
- m.value ? (g(), U(Rt, {
2129
+ v.value ? (g(), U(Rt, {
2126
2130
  key: 0,
2127
2131
  class: "pt-0"
2128
2132
  }, {
2129
2133
  default: r(() => [
2130
- K("div", Hl, P(c(h)("common.sortable.changeParent.placementHeading", {
2134
+ K("div", Jl, $(c(h)("common.sortable.changeParent.placementHeading", {
2131
2135
  label: S.value?.label ?? ""
2132
2136
  })), 1),
2133
- s(Ln, {
2137
+ s(Vn, {
2134
2138
  modelValue: x.value,
2135
2139
  "onUpdate:modelValue": D[0] || (D[0] = (w) => x.value = w),
2136
2140
  density: "compact",
@@ -2157,10 +2161,10 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2157
2161
  s(ra),
2158
2162
  s(q, {
2159
2163
  variant: "text",
2160
- onClick: B
2164
+ onClick: F
2161
2165
  }, {
2162
2166
  default: r(() => [
2163
- N(P(c(h)("common.sortable.reorderCancel")), 1)
2167
+ N($(c(h)("common.sortable.reorderCancel")), 1)
2164
2168
  ]),
2165
2169
  _: 1
2166
2170
  }),
@@ -2171,7 +2175,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2171
2175
  onClick: z
2172
2176
  }, {
2173
2177
  default: r(() => [
2174
- N(P(c(h)("common.sortable.changeParent.confirm")), 1)
2178
+ N($(c(h)("common.sortable.changeParent.confirm")), 1)
2175
2179
  ]),
2176
2180
  _: 1
2177
2181
  }, 8, ["disabled"])
@@ -2185,26 +2189,26 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2185
2189
  _: 1
2186
2190
  }, 8, ["modelValue"]));
2187
2191
  }
2188
- }), Xl = /* @__PURE__ */ lo(Jl, [["__scopeId", "data-v-0058f5cc"]]), Yl = { class: "a-le-card" }, Ql = {
2192
+ }), Yl = /* @__PURE__ */ lo(Xl, [["__scopeId", "data-v-0058f5cc"]]), Ql = { class: "a-le-card" }, Zl = {
2189
2193
  key: 0,
2190
2194
  class: "a-le-header"
2191
- }, Zl = {
2195
+ }, _l = {
2192
2196
  key: 0,
2193
2197
  class: "a-le-title-heading"
2194
- }, _l = { class: "a-le-header-actions" }, ei = {
2198
+ }, ei = { class: "a-le-header-actions" }, ti = {
2195
2199
  key: 1,
2196
2200
  class: "a-le-state a-le-state--loading"
2197
- }, ti = {
2201
+ }, ai = {
2198
2202
  key: 2,
2199
2203
  class: "a-le-state a-le-state--error"
2200
- }, ai = {
2204
+ }, oi = {
2201
2205
  key: 3,
2202
2206
  class: "a-le-state a-le-state--empty"
2203
- }, oi = {
2207
+ }, ni = {
2204
2208
  class: "a-le-sr-only",
2205
2209
  "aria-live": "polite",
2206
2210
  role: "status"
2207
- }, Aa = "a-nested-list-editor__group", ni = "a-le-drag-handle", Ea = 24, Pa = 22, Ni = /* @__PURE__ */ ze({
2211
+ }, Aa = "a-nested-list-editor__group", li = "a-le-drag-handle", Ea = 24, Pa = 22, Oi = /* @__PURE__ */ ze({
2208
2212
  __name: "ANestedSortableListEditor",
2209
2213
  props: /* @__PURE__ */ Te({
2210
2214
  maxDepth: {},
@@ -2257,14 +2261,14 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2257
2261
  }),
2258
2262
  emits: /* @__PURE__ */ Te(["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"]),
2259
2263
  setup(t, { expose: C, emit: u }) {
2260
- const a = t, v = u, h = it(t, "modelValue"), y = it(t, "mode"), { t: x } = je(), k = io(), { showWarningT: p } = Ha(), $ = zt("rootEl"), { isNarrow: I } = vn($), R = yn(), S = b(() => a.closeVariant === "icon" ? "icon" : a.closeVariant === "labeled" ? "labeled" : I.value ? "icon" : "labeled"), m = _(/* @__PURE__ */ new Set()), T = _(/* @__PURE__ */ new Set()), z = a.getKey ?? "id", B = typeof z == "function" ? "id" : z, O = (e) => typeof z == "function" ? z(e) : e[z], E = (() => {
2264
+ const a = t, m = u, h = it(t, "modelValue"), y = it(t, "mode"), { t: x } = je(), k = io(), { showWarningT: p } = Wa(), P = zt("rootEl"), { isNarrow: I } = yn(P), R = hn(), S = b(() => a.closeVariant === "icon" ? "icon" : a.closeVariant === "labeled" ? "labeled" : I.value ? "icon" : "labeled"), v = _(/* @__PURE__ */ new Set()), T = _(/* @__PURE__ */ new Set()), z = a.getKey ?? "id", F = typeof z == "function" ? "id" : z, O = (e) => typeof z == "function" ? z(e) : e[z], E = (() => {
2261
2265
  const e = a.position;
2262
2266
  return e === void 0 || e === !1 ? "position" : typeof e == "object" ? e.field : e;
2263
2267
  })();
2264
2268
  ((e) => {
2265
2269
  const l = (n) => {
2266
2270
  for (const A of n)
2267
- A.children && A.children.length > 0 && (m.value.add(O(A.data)), l(A.children));
2271
+ A.children && A.children.length > 0 && (v.value.add(O(A.data)), l(A.children));
2268
2272
  };
2269
2273
  l(e.children);
2270
2274
  })(h.value);
@@ -2278,10 +2282,10 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2278
2282
  maxDepth: a.maxDepth,
2279
2283
  dirtyExclude: () => a.dirtyExclude ?? [],
2280
2284
  validate: a.validate
2281
- }, w = a.editor ? null : hn(a.stateKey, D), i = a.editor ?? w?.handle ?? gn(D), G = Ja(w?.childScope ?? null), X = b(() => {
2285
+ }, w = a.editor ? null : pn(a.stateKey, D), i = a.editor ?? w?.handle ?? gn(D), G = Ja(w?.childScope ?? null), X = b(() => {
2282
2286
  const e = [];
2283
2287
  let l = 0;
2284
- const n = a.maxDepth, A = (j, te, pe) => {
2288
+ const n = a.maxDepth, A = (j, te, ge) => {
2285
2289
  for (let se = 0; se < j.length; se++) {
2286
2290
  const ce = j[se], Qe = O(ce.data), Z = ce.children !== void 0, lt = Z && (ce.children?.length ?? 0) > 0, Dt = ce.children?.length ?? 0, yt = n - (te + 1);
2287
2291
  e.push({
@@ -2291,8 +2295,8 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2291
2295
  position: ce.data[E],
2292
2296
  node: ce,
2293
2297
  depth: te,
2294
- parent: pe?.data ?? null,
2295
- parentKey: pe ? O(pe.data) : null,
2298
+ parent: ge?.data ?? null,
2299
+ parentKey: ge ? O(ge.data) : null,
2296
2300
  childrenCount: Dt,
2297
2301
  hasChildren: lt,
2298
2302
  childrenAllowed: Z,
@@ -2313,24 +2317,24 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2313
2317
  () => G.retainOwners(X.value.map((e) => e.key)),
2314
2318
  { flush: "post" }
2315
2319
  );
2316
- const ee = aa(null), W = _(/* @__PURE__ */ new Set()), Y = _(/* @__PURE__ */ new Set()), me = _(/* @__PURE__ */ new Set()), ve = () => {
2317
- i.commit(), W.value = /* @__PURE__ */ new Set();
2320
+ const ee = aa(null), H = _(/* @__PURE__ */ new Set()), Y = _(/* @__PURE__ */ new Set()), me = _(/* @__PURE__ */ new Set()), ve = () => {
2321
+ i.commit(), H.value = /* @__PURE__ */ new Set();
2318
2322
  }, ae = (e) => {
2319
2323
  const { node: l } = i.findNode(e);
2320
2324
  if (!l) {
2321
- W.value.add(e);
2325
+ H.value.add(e);
2322
2326
  return;
2323
2327
  }
2324
2328
  const n = (A) => {
2325
- W.value.add(O(A.data)), A.children && A.children.forEach(n);
2329
+ H.value.add(O(A.data)), A.children && A.children.forEach(n);
2326
2330
  };
2327
2331
  n(l);
2328
2332
  }, be = /* @__PURE__ */ new Map(), ie = b(() => {
2329
2333
  const e = [], l = /* @__PURE__ */ new Set();
2330
2334
  for (const n of X.value) {
2331
2335
  l.add(n.key);
2332
- const A = Ne.value.has(n.key), j = T.value.has(n.key), te = m.value.has(n.key), pe = a.loadingKeys?.has(n.key) ?? !1, se = W.value.has(n.key), ce = a.readonly ? !1 : i.isUnsaved(n.key), Qe = a.readonly ? !1 : ce || se, Z = be.get(n.key);
2333
- if (Z && Z.raw === n.raw && Z.index === n.index && Z.position === n.position && Z.depth === n.depth && Z.parentKey === n.parentKey && Z.childrenCount === n.childrenCount && Z.firstInParent === n.firstInParent && Z.lastInParent === n.lastInParent && Z.editing === A && Z.expanded === j && Z.childrenExpanded === te && Z.loading === pe && Z.dirty === ce && Z.moved === se && Z.unsaved === Qe) {
2336
+ const A = Ne.value.has(n.key), j = T.value.has(n.key), te = v.value.has(n.key), ge = a.loadingKeys?.has(n.key) ?? !1, se = H.value.has(n.key), ce = a.readonly ? !1 : i.isUnsaved(n.key), Qe = a.readonly ? !1 : ce || se, Z = be.get(n.key);
2337
+ if (Z && Z.raw === n.raw && Z.index === n.index && Z.position === n.position && Z.depth === n.depth && Z.parentKey === n.parentKey && Z.childrenCount === n.childrenCount && Z.firstInParent === n.firstInParent && Z.lastInParent === n.lastInParent && Z.editing === A && Z.expanded === j && Z.childrenExpanded === te && Z.loading === ge && Z.dirty === ce && Z.moved === se && Z.unsaved === Qe) {
2334
2338
  e.push(Z);
2335
2339
  continue;
2336
2340
  }
@@ -2339,7 +2343,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2339
2343
  editing: A,
2340
2344
  expanded: j,
2341
2345
  childrenExpanded: te,
2342
- loading: pe,
2346
+ loading: ge,
2343
2347
  dirty: ce,
2344
2348
  moved: se,
2345
2349
  unsaved: Qe
@@ -2354,12 +2358,12 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2354
2358
  ), _e = b(() => !!k.item), kt = b(() => !!k["item-readonly"]), Ot = b(() => !!a.onItemSave), {
2355
2359
  editingKeys: Ne,
2356
2360
  editingSnapshots: Ge,
2357
- clearEditing: Be,
2361
+ clearEditing: Fe,
2358
2362
  beginEdit: st,
2359
2363
  cancelEdit: Ae,
2360
- commitEdit: We,
2364
+ commitEdit: He,
2361
2365
  closeEdit: Ut,
2362
- requestAutoOpen: Fe
2366
+ requestAutoOpen: Be
2363
2367
  } = Xa({
2364
2368
  rowsContainer: ye,
2365
2369
  rowSelector: ".a-le-row-wrapper",
@@ -2380,10 +2384,10 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2380
2384
  },
2381
2385
  afterAutoOpen: (e) => {
2382
2386
  const { parent: l } = i.findNode(e);
2383
- l && m.value.add(O(l.data));
2387
+ l && v.value.add(O(l.data));
2384
2388
  }
2385
2389
  }), {
2386
- applying: He,
2390
+ applying: We,
2387
2391
  applyError: Je,
2388
2392
  hasPendingChanges: rt,
2389
2393
  movedCount: wt,
@@ -2391,25 +2395,25 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2391
2395
  enterReorderMode: Oe,
2392
2396
  cancelReorderMode: Xe,
2393
2397
  applyReorder: dt
2394
- } = pn({
2398
+ } = bn({
2395
2399
  mode: y,
2396
2400
  snapshot: ee,
2397
- movedKeys: W,
2401
+ movedKeys: H,
2398
2402
  modelValue: h,
2399
- cloneModel: (e) => wn(e),
2403
+ cloneModel: (e) => Cn(e),
2400
2404
  applyModel: (e) => {
2401
2405
  h.value = e;
2402
2406
  },
2403
2407
  canEnterReorder: Me,
2404
2408
  onEnter: () => {
2405
- Y.value = /* @__PURE__ */ new Set(), me.value = /* @__PURE__ */ new Set(), Be();
2406
- for (const e of $e.value) m.value.add(e);
2409
+ Y.value = /* @__PURE__ */ new Set(), me.value = /* @__PURE__ */ new Set(), Fe();
2410
+ for (const e of $e.value) v.value.add(e);
2407
2411
  Le(() => {
2408
2412
  ke.value && ot();
2409
2413
  });
2410
2414
  },
2411
2415
  onExternalEnter: () => {
2412
- Y.value = /* @__PURE__ */ new Set(), me.value = /* @__PURE__ */ new Set(), Be();
2416
+ Y.value = /* @__PURE__ */ new Set(), me.value = /* @__PURE__ */ new Set(), Fe();
2413
2417
  },
2414
2418
  // Cancel: the snapshot-restore has brought every deleted row back; reconcile the controller so a
2415
2419
  // deferred delete truly reverts (clear tombstone, row stays) and an immediate delete stays gone (row
@@ -2425,11 +2429,11 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2425
2429
  },
2426
2430
  onReorderApply: (e) => a.onReorderApply?.(e),
2427
2431
  emit: {
2428
- reorderStart: () => v("reorder-start"),
2429
- reorderCancel: () => v("reorder-cancel"),
2430
- reorderApplied: (e) => v("reorder-applied", e),
2431
- reorderApplyError: (e) => v("reorder-apply-error", e),
2432
- reorderEnd: () => v("reorder-end")
2432
+ reorderStart: () => m("reorder-start"),
2433
+ reorderCancel: () => m("reorder-cancel"),
2434
+ reorderApplied: (e) => m("reorder-applied", e),
2435
+ reorderApplyError: (e) => m("reorder-apply-error", e),
2436
+ reorderEnd: () => m("reorder-end")
2433
2437
  }
2434
2438
  }), Ct = b(
2435
2439
  () => wt.value + Y.value.size
@@ -2450,14 +2454,14 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2450
2454
  };
2451
2455
  return l(h.value.children), e;
2452
2456
  }), o = b(
2453
- () => $e.value.length > 0 && $e.value.every((e) => m.value.has(e))
2457
+ () => $e.value.length > 0 && $e.value.every((e) => v.value.has(e))
2454
2458
  ), V = b(
2455
2459
  () => !he.value && $e.value.length > 0
2456
2460
  ), f = () => {
2457
2461
  if (o.value)
2458
- for (const e of $e.value) m.value.delete(e);
2462
+ for (const e of $e.value) v.value.delete(e);
2459
2463
  else
2460
- for (const e of $e.value) m.value.add(e);
2464
+ for (const e of $e.value) v.value.add(e);
2461
2465
  }, oe = b(
2462
2466
  () => !!(a.title || k.header || k["reorder-toggle"] || St.value || V.value || he.value)
2463
2467
  ), Re = _([]), Ce = _(0), Ke = () => {
@@ -2467,24 +2471,24 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2467
2471
  } catch {
2468
2472
  }
2469
2473
  Re.value = [];
2470
- }, ge = _(null), At = (e, l) => {
2474
+ }, pe = _(null), At = (e, l) => {
2471
2475
  const n = document.elementFromPoint(e, l);
2472
2476
  if (!n) return null;
2473
2477
  const A = n.closest(".a-le-row-wrapper");
2474
2478
  if (!A || !ye.value || !ye.value.contains(A)) return null;
2475
2479
  const j = ca(A.getAttribute("data-id"));
2476
2480
  if (j === null) return null;
2477
- const te = ie.value.find((pe) => pe.key === j);
2481
+ const te = ie.value.find((ge) => ge.key === j);
2478
2482
  return te ? { el: A, viewItem: te } : null;
2479
2483
  }, de = (e, l) => {
2480
- if (!ge.value || !ye.value) return;
2484
+ if (!pe.value || !ye.value) return;
2481
2485
  const n = At(e, l);
2482
2486
  if (!n) {
2483
- ge.value.instruction = null;
2487
+ pe.value.instruction = null;
2484
2488
  return;
2485
2489
  }
2486
2490
  const A = ye.value.getBoundingClientRect(), te = (n.el.querySelector(":scope > .a-le-row") ?? n.el).getBoundingClientRect();
2487
- ge.value.instruction = Dl({
2491
+ pe.value.instruction = Il({
2488
2492
  pointer: { x: e, y: l },
2489
2493
  hoveredRow: {
2490
2494
  key: n.viewItem.key,
@@ -2494,8 +2498,8 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2494
2498
  siblingIndex: n.viewItem.siblingIndex,
2495
2499
  siblingCount: n.viewItem.siblingCount
2496
2500
  },
2497
- sourceKey: ge.value.sourceKey,
2498
- sourceSubtreeDepth: ge.value.sourceSubtreeDepth,
2501
+ sourceKey: pe.value.sourceKey,
2502
+ sourceSubtreeDepth: pe.value.sourceSubtreeDepth,
2499
2503
  viewItems: ie.value,
2500
2504
  maxDepth: a.maxDepth,
2501
2505
  indentPx: Ea,
@@ -2509,26 +2513,26 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2509
2513
  p("common.sortable.error.maxDeepExceed"), Ce.value++, Le(() => ot());
2510
2514
  return;
2511
2515
  }
2512
- ae(l), e.makeChild && e.parentKey !== null && m.value.add(e.parentKey);
2516
+ ae(l), e.makeChild && e.parentKey !== null && v.value.add(e.parentKey);
2513
2517
  }, ot = () => {
2514
2518
  if (Ke(), !ke.value || !ye.value) return;
2515
2519
  const e = Array.from(ye.value.querySelectorAll("." + Aa));
2516
2520
  for (const l of e) {
2517
- const n = Cn(l, [], {
2521
+ const n = xn(l, [], {
2518
2522
  group: { name: "a-nested", pull: !0, put: !0 },
2519
- handle: "." + ni,
2523
+ handle: "." + li,
2520
2524
  animation: 0,
2521
- ghostClass: An,
2522
- chosenClass: Sn,
2523
- dragClass: xn,
2525
+ ghostClass: En,
2526
+ chosenClass: An,
2527
+ dragClass: Sn,
2524
2528
  fallbackOnBody: !0,
2525
2529
  forceFallback: !0,
2526
2530
  fallbackTolerance: 3,
2527
2531
  onStart: (A) => {
2528
2532
  const j = A.item, te = ca(j.getAttribute("data-id"));
2529
2533
  if (te === null) return;
2530
- const pe = i.findNode(te).node, se = pe ? i.calculateSubtreeDepth(pe) : 1;
2531
- ge.value = {
2534
+ const ge = i.findNode(te).node, se = ge ? i.calculateSubtreeDepth(ge) : 1;
2535
+ pe.value = {
2532
2536
  sourceKey: te,
2533
2537
  sourceSubtreeDepth: se,
2534
2538
  instruction: null
@@ -2548,8 +2552,8 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2548
2552
  },
2549
2553
  onEnd: () => {
2550
2554
  document.removeEventListener("pointermove", at);
2551
- const A = ge.value;
2552
- if (ge.value = null, !A) return;
2555
+ const A = pe.value;
2556
+ if (pe.value = null, !A) return;
2553
2557
  const j = A.instruction;
2554
2558
  j !== null && j.type !== "blocked" && ho(j, A.sourceKey);
2555
2559
  }
@@ -2558,7 +2562,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2558
2562
  }
2559
2563
  }, ca = (e) => {
2560
2564
  if (e === null || e === "") return null;
2561
- const l = En(e);
2565
+ const l = Pn(e);
2562
2566
  return String(l) === e ? l : e;
2563
2567
  };
2564
2568
  ue(
@@ -2582,7 +2586,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2582
2586
  Ke(), document.removeEventListener("pointermove", at);
2583
2587
  });
2584
2588
  const Ue = b(() => {
2585
- const e = ge.value;
2589
+ const e = pe.value;
2586
2590
  if (!e || e.instruction === null || !ye.value) return null;
2587
2591
  const l = e.instruction;
2588
2592
  if (l.type === "blocked") return null;
@@ -2590,7 +2594,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2590
2594
  `.a-le-row-wrapper[data-id="${CSS.escape(String(l.refKey))}"]`
2591
2595
  );
2592
2596
  if (!n) return null;
2593
- const A = n.querySelector(":scope > .a-le-row"), j = ye.value.getBoundingClientRect(), te = (A ?? n).getBoundingClientRect(), pe = Pa + l.depth * Ea, se = l.refEdge === "top" ? te.top - j.top : te.bottom - j.top, ce = { top: se, left: pe, right: 16 };
2597
+ const A = n.querySelector(":scope > .a-le-row"), j = ye.value.getBoundingClientRect(), te = (A ?? n).getBoundingClientRect(), ge = Pa + l.depth * Ea, se = l.refEdge === "top" ? te.top - j.top : te.bottom - j.top, ce = { top: se, left: ge, right: 16 };
2594
2598
  let Qe = null;
2595
2599
  if (l.levelRowKey !== null) {
2596
2600
  const Z = ye.value.querySelector(
@@ -2601,34 +2605,34 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2601
2605
  yt < se && (Qe = {
2602
2606
  top: yt,
2603
2607
  height: se - yt,
2604
- left: pe
2608
+ left: ge
2605
2609
  });
2606
2610
  }
2607
2611
  }
2608
2612
  return { line: ce, connector: Qe };
2609
2613
  }), ft = () => {
2610
- ct.value && (Fe(), a.factory && i.addItem(), v("add", void 0));
2614
+ ct.value && (Be(), a.factory && i.addItem(), m("add", void 0));
2611
2615
  }, ua = (e) => {
2612
- le.value && (Fe(), a.factory && i.addAfter(e.key, void 0, e.childrenAllowed), v("add", { afterId: e.key, childrenAllowed: e.childrenAllowed }));
2616
+ le.value && (Be(), a.factory && i.addAfter(e.key, void 0, e.childrenAllowed), m("add", { afterId: e.key, childrenAllowed: e.childrenAllowed }));
2613
2617
  }, fa = (e) => {
2614
- le.value && e.canAddChild && (Fe(), m.value.add(e.key), v("add-child", e), a.factory && i.addChild(e.key, void 0, !0), v("add", { parentId: e.key, childrenAllowed: !0 }));
2618
+ le.value && e.canAddChild && (Be(), v.value.add(e.key), m("add-child", e), a.factory && i.addChild(e.key, void 0, !0), m("add", { parentId: e.key, childrenAllowed: !0 }));
2615
2619
  }, Et = (e) => {
2616
2620
  if (!(!le.value || he.value)) {
2617
2621
  if (Ne.value.has(e.key)) {
2618
2622
  mt(e);
2619
2623
  return;
2620
2624
  }
2621
- _e.value && st(e), v("edit", e);
2625
+ _e.value && st(e), m("edit", e);
2622
2626
  }
2623
2627
  }, jt = (e) => {
2624
2628
  if (a.disabled || a.loading) return;
2625
- const l = e.key, n = m.value.has(l);
2626
- n ? m.value.delete(l) : m.value.add(l), v("item-expand", e, !n);
2629
+ const l = e.key, n = v.value.has(l);
2630
+ n ? v.value.delete(l) : v.value.add(l), m("item-expand", e, !n);
2627
2631
  }, ma = (e) => {
2628
2632
  if (a.disabled || a.loading) return;
2629
2633
  const l = e.key, n = T.value.has(l);
2630
- n ? T.value.delete(l) : T.value.add(l), v("item-expand", e, !n);
2631
- }, va = (e) => a.disableRowClick || a.disabled || a.loading || he.value ? !1 : !!(e.editing || e.expanded || !a.readonly && a.showEditButton), go = (e) => {
2634
+ n ? T.value.delete(l) : T.value.add(l), m("item-expand", e, !n);
2635
+ }, va = (e) => a.disableRowClick || a.disabled || a.loading || he.value ? !1 : !!(e.editing || e.expanded || !a.readonly && a.showEditButton), po = (e) => {
2632
2636
  if (va(e)) {
2633
2637
  if (e.editing || e.expanded) {
2634
2638
  mt(e);
@@ -2638,7 +2642,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2638
2642
  }
2639
2643
  }, {
2640
2644
  deleteDialog: qt,
2641
- deleteInFlight: po,
2645
+ deleteInFlight: go,
2642
2646
  deleteError: bo,
2643
2647
  onDeleteClick: ko,
2644
2648
  onDeleteDialogConfirm: wo,
@@ -2647,24 +2651,24 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2647
2651
  onDeleteConfirm: (e) => a.onDeleteConfirm ? a.onDeleteConfirm(e) : !0,
2648
2652
  onDelete: (e) => a.onDelete?.(e),
2649
2653
  onDeleted: (e) => {
2650
- Ne.value.delete(e.key), Ge.value.delete(e.key), T.value.delete(e.key), m.value.delete(e.key);
2654
+ Ne.value.delete(e.key), Ge.value.delete(e.key), T.value.delete(e.key), v.value.delete(e.key);
2651
2655
  const l = a.deleteMode === "deferred";
2652
- he.value && (l ? Y.value.add(e.key) : me.value.add(e.key)), i.deleteItem(e.key, { trackDeleted: l }), v("deleted", e);
2656
+ he.value && (l ? Y.value.add(e.key) : me.value.add(e.key)), i.deleteItem(e.key, { trackDeleted: l }), m("deleted", e);
2653
2657
  },
2654
2658
  disableDeleteConfirm: () => a.disableDeleteConfirm
2655
2659
  }), ya = async (e) => {
2656
2660
  le.value && await ko(e);
2657
2661
  }, ha = async (e) => {
2658
- a.onItemSave && await a.onItemSave(e.raw), We(e), v("item-saved", e);
2659
- }, ga = (e) => {
2662
+ a.onItemSave && await a.onItemSave(e.raw), He(e), m("item-saved", e);
2663
+ }, pa = (e) => {
2660
2664
  Ae(e);
2661
2665
  }, mt = (e) => {
2662
- Ut(e), v("close", e);
2666
+ Ut(e), m("close", e);
2663
2667
  }, Gt = (e) => {
2664
2668
  i.moveUp(e) && ae(e);
2665
- }, Wt = (e) => {
2666
- i.moveDown(e) && ae(e);
2667
2669
  }, Ht = (e) => {
2670
+ i.moveDown(e) && ae(e);
2671
+ }, Wt = (e) => {
2668
2672
  i.moveTop(e) && ae(e);
2669
2673
  }, Jt = (e) => {
2670
2674
  i.moveBottom(e) && ae(e);
@@ -2673,10 +2677,10 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2673
2677
  p("common.sortable.error.maxDeepExceed");
2674
2678
  return;
2675
2679
  }
2676
- ae(e.key), v("indent", e);
2680
+ ae(e.key), m("indent", e);
2677
2681
  }, Yt = (e) => {
2678
- i.outdent(e.key) && (ae(e.key), v("outdent", e));
2679
- }, Qt = (e) => oo(e, { compactField: a.compactField }), pa = (e, l) => l === void 0 ? null : i.rowState(e, l, Ne.value.has(l)), vt = /* @__PURE__ */ new Map(), xo = (e) => {
2682
+ i.outdent(e.key) && (ae(e.key), m("outdent", e));
2683
+ }, Qt = (e) => oo(e, { compactField: a.compactField }), ga = (e, l) => l === void 0 ? null : i.rowState(e, l, Ne.value.has(l)), vt = /* @__PURE__ */ new Map(), xo = (e) => {
2680
2684
  let l = vt.get(e);
2681
2685
  return l || (l = {
2682
2686
  edit: () => {
@@ -2689,7 +2693,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2689
2693
  },
2690
2694
  cancel: () => {
2691
2695
  const n = re(e);
2692
- n && ga(n);
2696
+ n && pa(n);
2693
2697
  },
2694
2698
  close: () => {
2695
2699
  const n = re(e);
@@ -2716,8 +2720,8 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2716
2720
  n && ma(n);
2717
2721
  },
2718
2722
  moveUp: () => Gt(e),
2719
- moveDown: () => Wt(e),
2720
- moveTop: () => Ht(e),
2723
+ moveDown: () => Ht(e),
2724
+ moveTop: () => Wt(e),
2721
2725
  moveBottom: () => Jt(e),
2722
2726
  indent: () => {
2723
2727
  const n = re(e);
@@ -2740,7 +2744,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2740
2744
  }
2741
2745
  );
2742
2746
  const So = (e) => ({
2743
- item: { ...e, validationState: pa(e.raw, e.key) },
2747
+ item: { ...e, validationState: ga(e.raw, e.key) },
2744
2748
  raw: e.raw,
2745
2749
  index: e.index,
2746
2750
  key: e.key,
@@ -2770,7 +2774,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2770
2774
  stateKeyPrefix: G.prefixFor(e.key),
2771
2775
  actions: xo(e.key)
2772
2776
  }), Ao = b(() => ({
2773
- applying: He.value,
2777
+ applying: We.value,
2774
2778
  hasPendingChanges: et.value,
2775
2779
  movedCount: Ct.value,
2776
2780
  error: Je.value,
@@ -2809,8 +2813,8 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2809
2813
  l && mt(l);
2810
2814
  },
2811
2815
  onMoveUp: (e) => Gt(e),
2812
- onMoveDown: (e) => Wt(e),
2813
- onMoveTop: (e) => Ht(e),
2816
+ onMoveDown: (e) => Ht(e),
2817
+ onMoveTop: (e) => Wt(e),
2814
2818
  onMoveBottom: (e) => Jt(e),
2815
2819
  onIndent: (e) => {
2816
2820
  const l = re(e);
@@ -2849,8 +2853,8 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2849
2853
  let A = 0;
2850
2854
  e === null ? A = h.value.children.length : A = i.findNode(e).node?.children?.length ?? 0;
2851
2855
  const j = l === "first" ? 0 : A;
2852
- i.moveTo(n.key, e, j) && (ae(n.key), e !== null && m.value.add(e));
2853
- }, Bo = b(() => ({
2856
+ i.moveTo(n.key, e, j) && (ae(n.key), e !== null && v.value.add(e));
2857
+ }, Fo = b(() => ({
2854
2858
  reorderMode: he.value,
2855
2859
  readonly: a.readonly,
2856
2860
  canInteract: le.value,
@@ -2868,32 +2872,32 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2868
2872
  keyboardNav: Pt,
2869
2873
  isRowClickable: va,
2870
2874
  resolveCompactText: Qt,
2871
- resolveValidation: (e, l) => pa(e, l),
2875
+ resolveValidation: (e, l) => ga(e, l),
2872
2876
  buildSlotProps: So
2873
- })), Fo = {
2874
- onRowClick: go,
2877
+ })), Bo = {
2878
+ onRowClick: po,
2875
2879
  onChevronClick: jt,
2876
2880
  onEditClick: Et,
2877
2881
  onDeleteClick: ya,
2878
2882
  onCloseClick: mt,
2879
2883
  onSaveClick: ha,
2880
- onCancelClick: ga,
2884
+ onCancelClick: pa,
2881
2885
  onAddAfterClick: ua,
2882
2886
  onAddChildClick: fa,
2883
2887
  moveUp: (e) => Gt(e),
2884
- moveDown: (e) => Wt(e),
2885
- moveTop: (e) => Ht(e),
2888
+ moveDown: (e) => Ht(e),
2889
+ moveTop: (e) => Wt(e),
2886
2890
  moveBottom: (e) => Jt(e),
2887
2891
  indent: Xt,
2888
2892
  outdent: Yt,
2889
2893
  openMoveToPosition: $o,
2890
2894
  openChangeParent: Io
2891
- }, Ro = b(() => ie.value.filter((e) => e.parentKey === null)), Ko = (e, l, n) => (i.addItem(l, { afterId: e ?? void 0, childrenAllowed: n }), Le(() => i.commit()), h.value), Lo = (e, l, n) => (m.value.add(e), i.addItem(l, { parentId: e, asFirstChild: !0, childrenAllowed: n }), Le(() => i.commit()), h.value), Vo = (e) => {
2892
- i.deleteItem(e), Ne.value.delete(e), Ge.value.delete(e), T.value.delete(e), m.value.delete(e), Le(() => i.commit());
2895
+ }, Ro = b(() => ie.value.filter((e) => e.parentKey === null)), Ko = (e, l, n) => (i.addItem(l, { afterId: e ?? void 0, childrenAllowed: n }), Le(() => i.commit()), h.value), Lo = (e, l, n) => (v.value.add(e), i.addItem(l, { parentId: e, asFirstChild: !0, childrenAllowed: n }), Le(() => i.commit()), h.value), Vo = (e) => {
2896
+ i.deleteItem(e), Ne.value.delete(e), Ge.value.delete(e), T.value.delete(e), v.value.delete(e), Le(() => i.commit());
2893
2897
  }, zo = (e, l, n = null, A = null, j = null) => {
2894
2898
  i.updateItem(e, l), Le(() => i.commit());
2895
2899
  }, Mo = i.unsavedCount, No = () => {
2896
- i.commit(), W.value = /* @__PURE__ */ new Set(), Be();
2900
+ i.commit(), H.value = /* @__PURE__ */ new Set(), Fe();
2897
2901
  };
2898
2902
  Za(
2899
2903
  () => a.unsavedSectionLabel ? { label: a.unsavedSectionLabel, dirty: i.hasUnsaved.value } : []
@@ -2901,7 +2905,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2901
2905
  const ka = () => no(i, (e) => {
2902
2906
  let l = i.findNode(e).parent;
2903
2907
  for (; l; )
2904
- m.value.add(O(l.data)), l = i.findNode(O(l.data)).parent;
2908
+ v.value.add(O(l.data)), l = i.findNode(O(l.data)).parent;
2905
2909
  const n = i.viewItems.value.find((A) => A.key === e);
2906
2910
  n && st(n);
2907
2911
  });
@@ -2927,16 +2931,16 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2927
2931
  enterReorderMode: Oe,
2928
2932
  cancelReorderMode: Xe,
2929
2933
  applyReorder: dt,
2930
- expand: (e) => m.value.add(e),
2931
- collapse: (e) => m.value.delete(e),
2934
+ expand: (e) => v.value.add(e),
2935
+ collapse: (e) => v.value.delete(e),
2932
2936
  toggleExpand: (e) => {
2933
- m.value.has(e) ? m.value.delete(e) : m.value.add(e);
2937
+ v.value.has(e) ? v.value.delete(e) : v.value.add(e);
2934
2938
  },
2935
2939
  expandDetail: (e) => T.value.add(e),
2936
2940
  collapseDetail: (e) => T.value.delete(e)
2937
- }), (e, l) => (g(), F("div", {
2941
+ }), (e, l) => (g(), B("div", {
2938
2942
  ref_key: "rootEl",
2939
- ref: $,
2943
+ ref: P,
2940
2944
  class: we(["a-nested-list-editor", [
2941
2945
  `a-nested-list-editor--mode-${y.value}`,
2942
2946
  {
@@ -2947,13 +2951,13 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2947
2951
  }
2948
2952
  ]])
2949
2953
  }, [
2950
- K("div", Yl, [
2951
- oe.value ? (g(), F("div", Ql, [
2954
+ K("div", Ql, [
2955
+ oe.value ? (g(), B("div", Zl, [
2952
2956
  L(e.$slots, "header", Q({ title: t.title }, ba.value), () => [
2953
- t.title ? (g(), F("h3", Zl, P(t.title), 1)) : M("", !0),
2954
- K("div", _l, [
2957
+ t.title ? (g(), B("h3", _l, $(t.title), 1)) : M("", !0),
2958
+ K("div", ei, [
2955
2959
  c(he) ? L(e.$slots, "reorder-toolbar", De(Ie(Ao.value)), () => [
2956
- s(bn, {
2960
+ s(kn, {
2957
2961
  class: we({ "a-le-toolbar-status--pending": et.value }),
2958
2962
  "has-pending-changes": et.value,
2959
2963
  "pending-count": Ct.value,
@@ -2962,11 +2966,11 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2962
2966
  s(q, {
2963
2967
  variant: "text",
2964
2968
  size: "small",
2965
- disabled: c(He),
2969
+ disabled: c(We),
2966
2970
  onClick: c(Xe)
2967
2971
  }, {
2968
2972
  default: r(() => [
2969
- N(P(c(x)("common.sortable.reorderCancel")), 1)
2973
+ N($(c(x)("common.sortable.reorderCancel")), 1)
2970
2974
  ]),
2971
2975
  _: 1
2972
2976
  }, 8, ["disabled", "onClick"]),
@@ -2975,16 +2979,16 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2975
2979
  variant: "flat",
2976
2980
  size: "small",
2977
2981
  "prepend-icon": "mdi-check",
2978
- loading: c(He),
2979
- disabled: c(He) || !et.value,
2982
+ loading: c(We),
2983
+ disabled: c(We) || !et.value,
2980
2984
  onClick: c(dt)
2981
2985
  }, {
2982
2986
  default: r(() => [
2983
- N(P(c(x)("common.sortable.reorderApply")), 1)
2987
+ N($(c(x)("common.sortable.reorderApply")), 1)
2984
2988
  ]),
2985
2989
  _: 1
2986
2990
  }, 8, ["loading", "disabled", "onClick"])
2987
- ], void 0, 0) : (g(), F(ne, { key: 1 }, [
2991
+ ], void 0, 0) : (g(), B(ne, { key: 1 }, [
2988
2992
  V.value && Ee.value ? (g(), U(q, {
2989
2993
  key: 0,
2990
2994
  variant: "tonal",
@@ -2994,7 +2998,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
2994
2998
  onClick: f
2995
2999
  }, {
2996
3000
  default: r(() => [
2997
- s(H, {
3001
+ s(W, {
2998
3002
  icon: o.value ? "mdi-unfold-less-horizontal" : "mdi-unfold-more-horizontal",
2999
3003
  size: "18"
3000
3004
  }, null, 8, ["icon"]),
@@ -3014,7 +3018,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
3014
3018
  onClick: f
3015
3019
  }, {
3016
3020
  default: r(() => [
3017
- N(P(o.value ? c(x)("common.sortable.collapseAll") : c(x)("common.sortable.expandAll")), 1)
3021
+ N($(o.value ? c(x)("common.sortable.collapseAll") : c(x)("common.sortable.expandAll")), 1)
3018
3022
  ]),
3019
3023
  _: 1
3020
3024
  }, 8, ["prepend-icon"])) : M("", !0),
@@ -3029,7 +3033,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
3029
3033
  onClick: c(Oe)
3030
3034
  }, {
3031
3035
  default: r(() => [
3032
- s(H, {
3036
+ s(W, {
3033
3037
  icon: "mdi-sort",
3034
3038
  size: "18"
3035
3039
  }),
@@ -3050,7 +3054,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
3050
3054
  onClick: c(Oe)
3051
3055
  }, {
3052
3056
  default: r(() => [
3053
- N(P(c(x)("common.sortable.reorder")), 1)
3057
+ N($(c(x)("common.sortable.reorder")), 1)
3054
3058
  ]),
3055
3059
  _: 1
3056
3060
  }, 8, ["disabled", "onClick"]))
@@ -3059,13 +3063,13 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
3059
3063
  ])
3060
3064
  ])
3061
3065
  ])) : M("", !0),
3062
- t.loading ? (g(), F("div", ei, [
3066
+ t.loading ? (g(), B("div", ti, [
3063
3067
  s(mo, {
3064
3068
  indeterminate: "",
3065
3069
  color: "primary",
3066
3070
  size: "32"
3067
3071
  })
3068
- ])) : t.error ? (g(), F("div", ti, [
3072
+ ])) : t.error ? (g(), B("div", ai, [
3069
3073
  s(da, {
3070
3074
  type: "error",
3071
3075
  variant: "tonal",
@@ -3073,11 +3077,11 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
3073
3077
  border: "start"
3074
3078
  }, {
3075
3079
  default: r(() => [
3076
- N(P(t.error), 1)
3080
+ N($(t.error), 1)
3077
3081
  ]),
3078
3082
  _: 1
3079
3083
  })
3080
- ])) : qe.value ? (g(), F("div", ai, [
3084
+ ])) : qe.value ? (g(), B("div", oi, [
3081
3085
  L(e.$slots, "empty", {
3082
3086
  readonly: t.readonly,
3083
3087
  disabled: t.disabled,
@@ -3090,23 +3094,23 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
3090
3094
  onAdd: ft
3091
3095
  }, null, 8, ["title", "add-label", "can-add"])
3092
3096
  ])
3093
- ])) : (g(), F("div", {
3097
+ ])) : (g(), B("div", {
3094
3098
  key: Ce.value,
3095
3099
  ref_key: "rowsContainer",
3096
3100
  ref: ye,
3097
- class: we(["a-nested-list-editor__rows", { "a-nested-list-editor__rows--dragging": ge.value !== null }])
3101
+ class: we(["a-nested-list-editor__rows", { "a-nested-list-editor__rows--dragging": pe.value !== null }])
3098
3102
  }, [
3099
3103
  K("div", {
3100
3104
  class: we([Aa, "a-nested-list-editor__group--root"]),
3101
3105
  "data-parent-id": ""
3102
3106
  }, [
3103
- (g(!0), F(ne, null, Ze(Ro.value, (n) => (g(), U(yo, {
3107
+ (g(!0), B(ne, null, Ze(Ro.value, (n) => (g(), U(yo, {
3104
3108
  key: String(n.key),
3105
3109
  vi: n,
3106
3110
  "view-items": ie.value,
3107
- "drag-state": ge.value,
3108
- context: Bo.value,
3109
- callbacks: Fo
3111
+ "drag-state": pe.value,
3112
+ context: Fo.value,
3113
+ callbacks: Bo
3110
3114
  }, {
3111
3115
  item: r((A) => [
3112
3116
  L(e.$slots, "item", Q({ ref_for: !0 }, A))
@@ -3135,11 +3139,11 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
3135
3139
  _: 3
3136
3140
  }, 8, ["vi", "view-items", "drag-state", "context"]))), 128))
3137
3141
  ], 2),
3138
- Ue.value !== null ? (g(), F(ne, { key: 0 }, [
3139
- Ue.value.connector !== null ? (g(), F("div", {
3142
+ Ue.value !== null ? (g(), B(ne, { key: 0 }, [
3143
+ Ue.value.connector !== null ? (g(), B("div", {
3140
3144
  key: 0,
3141
3145
  class: "a-nested-list-editor__drop-connector",
3142
- style: gt({
3146
+ style: pt({
3143
3147
  left: `${Ue.value.connector.left}px`,
3144
3148
  top: `${Ue.value.connector.top}px`,
3145
3149
  height: `${Ue.value.connector.height}px`
@@ -3147,7 +3151,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
3147
3151
  }, null, 4)) : M("", !0),
3148
3152
  K("div", {
3149
3153
  class: "a-nested-list-editor__drop-line",
3150
- style: gt({
3154
+ style: pt({
3151
3155
  top: `${Ue.value.line.top}px`,
3152
3156
  left: `${Ue.value.line.left}px`,
3153
3157
  right: `${Ue.value.line.right}px`
@@ -3168,15 +3172,15 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
3168
3172
  class: "a-le-row-add",
3169
3173
  onClick: ft
3170
3174
  }, [
3171
- s(H, {
3175
+ s(W, {
3172
3176
  icon: "mdi-plus",
3173
3177
  size: "18"
3174
3178
  }),
3175
- K("span", null, P(ut.value), 1)
3179
+ K("span", null, $(ut.value), 1)
3176
3180
  ])
3177
3181
  ], void 0, 5) : M("", !0)
3178
3182
  ]),
3179
- s(kn, {
3183
+ s(wn, {
3180
3184
  modelValue: Zt.value,
3181
3185
  "onUpdate:modelValue": l[0] || (l[0] = (n) => Zt.value = n),
3182
3186
  total: _t.value?.total ?? 0,
@@ -3184,12 +3188,12 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
3184
3188
  "item-label": Po.value,
3185
3189
  onConfirm: Do
3186
3190
  }, null, 8, ["modelValue", "total", "current-index", "item-label"]),
3187
- s(Xl, {
3191
+ s(Yl, {
3188
3192
  modelValue: ea.value,
3189
3193
  "onUpdate:modelValue": l[1] || (l[1] = (n) => ea.value = n),
3190
3194
  tree: h.value,
3191
3195
  "source-key": $t.value?.key ?? null,
3192
- "key-field": c(B),
3196
+ "key-field": c(F),
3193
3197
  "max-depth": t.maxDepth,
3194
3198
  "resolve-label": Qt,
3195
3199
  "calculate-subtree-depth": c(i).calculateSubtreeDepth,
@@ -3203,17 +3207,17 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
3203
3207
  "confirm-label": c(x)("common.sortable.delete"),
3204
3208
  "cancel-label": c(x)("common.button.cancel"),
3205
3209
  error: c(bo),
3206
- "in-flight": c(po),
3210
+ "in-flight": c(go),
3207
3211
  onConfirm: c(wo),
3208
3212
  onCancel: c(Co)
3209
3213
  }, null, 8, ["modelValue", "title", "text", "confirm-label", "cancel-label", "error", "in-flight", "onConfirm", "onCancel"]),
3210
- K("div", oi, P(c(Pt).grabbedKey.value !== null ? c(x)("common.sortable.keyboardGrab.status", {
3214
+ K("div", ni, $(c(Pt).grabbedKey.value !== null ? c(x)("common.sortable.keyboardGrab.status", {
3211
3215
  n: c(Pt).grabbedIndex.value + 1,
3212
3216
  total: c(Pt).totalCount.value
3213
3217
  }) : ""), 1)
3214
3218
  ], 2));
3215
3219
  }
3216
- }), li = { class: "a-unsaved-sections" }, ii = /* @__PURE__ */ ze({
3220
+ }), ii = { class: "a-unsaved-sections" }, si = /* @__PURE__ */ ze({
3217
3221
  __name: "AUnsavedConfirmDialog",
3218
3222
  props: /* @__PURE__ */ Te({
3219
3223
  title: { default: void 0 },
@@ -3227,7 +3231,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
3227
3231
  }),
3228
3232
  emits: /* @__PURE__ */ Te(["resolve"], ["update:modelValue"]),
3229
3233
  setup(t, { emit: C }) {
3230
- const u = C, a = it(t, "modelValue"), { t: v } = je(), h = () => {
3234
+ const u = C, a = it(t, "modelValue"), { t: m } = je(), h = () => {
3231
3235
  u("resolve", !1);
3232
3236
  }, y = () => {
3233
3237
  u("resolve", !0);
@@ -3243,22 +3247,22 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
3243
3247
  default: r(() => [
3244
3248
  s(uo, null, {
3245
3249
  default: r(() => [
3246
- N(P(t.title ?? c(v)("common.sortable.unsavedChanges.title")), 1)
3250
+ N($(t.title ?? c(m)("common.sortable.unsavedChanges.title")), 1)
3247
3251
  ]),
3248
3252
  _: 1
3249
3253
  }),
3250
3254
  s(Rt, null, {
3251
3255
  default: r(() => [
3252
- t.body ? (g(), F(ne, { key: 0 }, [
3253
- N(P(t.body), 1)
3254
- ], 64)) : t.dirtyLabels.length ? (g(), F(ne, { key: 1 }, [
3255
- N(P(c(v)("common.sortable.unsavedChanges.sectionsIntro")) + " ", 1),
3256
- K("ul", li, [
3257
- (g(!0), F(ne, null, Ze(t.dirtyLabels, (p, $) => (g(), F("li", { key: $ }, P(p), 1))), 128))
3256
+ t.body ? (g(), B(ne, { key: 0 }, [
3257
+ N($(t.body), 1)
3258
+ ], 64)) : t.dirtyLabels.length ? (g(), B(ne, { key: 1 }, [
3259
+ N($(c(m)("common.sortable.unsavedChanges.sectionsIntro")) + " ", 1),
3260
+ K("ul", ii, [
3261
+ (g(!0), B(ne, null, Ze(t.dirtyLabels, (p, P) => (g(), B("li", { key: P }, $(p), 1))), 128))
3258
3262
  ]),
3259
- N(" " + P(c(v)("common.sortable.unsavedChanges.leaveQuestion")), 1)
3260
- ], 64)) : (g(), F(ne, { key: 2 }, [
3261
- N(P(c(v)("common.sortable.unsavedChanges.body")), 1)
3263
+ N(" " + $(c(m)("common.sortable.unsavedChanges.leaveQuestion")), 1)
3264
+ ], 64)) : (g(), B(ne, { key: 2 }, [
3265
+ N($(c(m)("common.sortable.unsavedChanges.body")), 1)
3262
3266
  ], 64))
3263
3267
  ]),
3264
3268
  _: 1
@@ -3271,7 +3275,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
3271
3275
  onClick: h
3272
3276
  }, {
3273
3277
  default: r(() => [
3274
- N(P(t.stayLabel ?? c(v)("common.sortable.unsavedChanges.stay")), 1)
3278
+ N($(t.stayLabel ?? c(m)("common.sortable.unsavedChanges.stay")), 1)
3275
3279
  ]),
3276
3280
  _: 1
3277
3281
  }),
@@ -3281,7 +3285,7 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
3281
3285
  onClick: y
3282
3286
  }, {
3283
3287
  default: r(() => [
3284
- N(P(t.discardLabel ?? c(v)("common.sortable.unsavedChanges.discard")), 1)
3288
+ N($(t.discardLabel ?? c(m)("common.sortable.unsavedChanges.discard")), 1)
3285
3289
  ]),
3286
3290
  _: 1
3287
3291
  })
@@ -3295,36 +3299,36 @@ const Qn = { class: "d-flex flex-column w-100 px-1 align-center" }, Zn = { class
3295
3299
  _: 1
3296
3300
  }, 8, ["modelValue"]));
3297
3301
  }
3298
- }), Oi = /* @__PURE__ */ lo(ii, [["__scopeId", "data-v-8342a164"]]), si = 8e3, ri = (t) => t == null ? !1 : typeof t == "boolean" ? t : t instanceof Set ? t.size > 0 : Array.isArray(t) ? t.length > 0 : !!t, $a = (t, C) => t === void 0 ? C : typeof t == "boolean" ? t : t.value;
3299
- function Ui(t) {
3300
- const C = Pn();
3302
+ }), Ui = /* @__PURE__ */ lo(si, [["__scopeId", "data-v-8342a164"]]), ri = 8e3, di = (t) => t == null ? !1 : typeof t == "boolean" ? t : t instanceof Set ? t.size > 0 : Array.isArray(t) ? t.length > 0 : !!t, $a = (t, C) => t === void 0 ? C : typeof t == "boolean" ? t : t.value;
3303
+ function ji(t) {
3304
+ const C = $n();
3301
3305
  if (t.ownSections) {
3302
- const R = t.ownSections, S = /* @__PURE__ */ Symbol("unsaved.section.own"), m = b(() => {
3306
+ const R = t.ownSections, S = /* @__PURE__ */ Symbol("unsaved.section.own"), v = b(() => {
3303
3307
  const T = R();
3304
3308
  return Array.isArray(T) ? T : [T];
3305
3309
  });
3306
- C.register(S, m);
3310
+ C.register(S, v);
3307
3311
  }
3308
3312
  const u = b(
3309
- () => t.sources.some((R) => ri(R.value)) || C.dirtyLabels.value.length > 0
3313
+ () => t.sources.some((R) => di(R.value)) || C.dirtyLabels.value.length > 0
3310
3314
  ), a = _(!1);
3311
- let v = null, h = !1, y = null;
3315
+ let m = null, h = !1, y = null;
3312
3316
  const x = () => {
3313
3317
  y !== null && (clearTimeout(y), y = null);
3314
3318
  }, k = () => h ? (h = !1, x(), Promise.resolve(!0)) : new Promise((R) => {
3315
- v = R, a.value = !0;
3319
+ m = R, a.value = !0;
3316
3320
  }), p = (R) => {
3317
- a.value = !1, v && (v(R), v = null);
3318
- }, $ = () => {
3321
+ a.value = !1, m && (m(R), m = null);
3322
+ }, P = () => {
3319
3323
  h = !0, x(), y = setTimeout(() => {
3320
3324
  h = !1, y = null;
3321
- }, si);
3325
+ }, ri);
3322
3326
  }, I = () => {
3323
3327
  h = !1, x();
3324
3328
  };
3325
3329
  if ($a(t.guardRoute, !0) && xa())
3326
3330
  try {
3327
- Vn(async () => u.value ? await k() : !0);
3331
+ zn(async () => u.value ? await k() : !0);
3328
3332
  } catch {
3329
3333
  }
3330
3334
  if ($a(t.guardWindowUnload, !0)) {
@@ -3338,12 +3342,12 @@ function Ui(t) {
3338
3342
  if (t.guardDialogModel) {
3339
3343
  const R = t.guardDialogModel;
3340
3344
  let S = !1;
3341
- ue(R, async (m, T) => {
3345
+ ue(R, async (v, T) => {
3342
3346
  if (S) {
3343
3347
  S = !1;
3344
3348
  return;
3345
3349
  }
3346
- T === !0 && m === !1 && u.value && (S = !0, R.value = !0, await k() && (S = !0, R.value = !1));
3350
+ T === !0 && v === !1 && u.value && (S = !0, R.value = !0, await k() && (S = !0, R.value = !1));
3347
3351
  });
3348
3352
  }
3349
3353
  return xa() && na(x), {
@@ -3351,26 +3355,26 @@ function Ui(t) {
3351
3355
  dirtyLabels: C.dirtyLabels,
3352
3356
  promptOpen: a,
3353
3357
  resolvePrompt: p,
3354
- acknowledge: $,
3358
+ acknowledge: P,
3355
3359
  unacknowledge: I
3356
3360
  };
3357
3361
  }
3358
- function ji(t, C) {
3362
+ function qi(t, C) {
3359
3363
  return (...u) => {
3360
3364
  t.acknowledge();
3361
3365
  let a;
3362
3366
  try {
3363
3367
  a = C(...u);
3364
- } catch (v) {
3365
- throw t.unacknowledge(), v;
3368
+ } catch (m) {
3369
+ throw t.unacknowledge(), m;
3366
3370
  }
3367
- return a instanceof Promise ? a.catch((v) => {
3368
- throw t.unacknowledge(), v;
3371
+ return a instanceof Promise ? a.catch((m) => {
3372
+ throw t.unacknowledge(), m;
3369
3373
  }) : a;
3370
3374
  };
3371
3375
  }
3372
- function qi(t, C = {}) {
3373
- const u = C.keyField ?? "id", a = C.positionField ?? "position", v = C.positionMultiplier ?? 1, h = C.updatePosition === !0;
3376
+ function Gi(t, C = {}) {
3377
+ const u = C.keyField ?? "id", a = C.positionField ?? "position", m = C.positionMultiplier ?? 1, h = C.updatePosition === !0;
3374
3378
  h && u === a && console.warn(
3375
3379
  `[list-editor] key-field === position-field ("${u}") 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").`
3376
3380
  );
@@ -3399,13 +3403,13 @@ function qi(t, C = {}) {
3399
3403
  position: d[a]
3400
3404
  }));
3401
3405
  return x(E), E;
3402
- }), p = (E) => $n(E, { positionField: a, positionMultiplier: v }), $ = (E) => {
3406
+ }), p = (E) => Dn(E, { positionField: a, positionMultiplier: m }), P = (E) => {
3403
3407
  const d = h ? p(E) : E;
3404
3408
  return t.value = d, d;
3405
3409
  }, I = (E) => E !== null && typeof E == "object", R = (E, d) => E.findIndex((D) => D[u] === d), S = (E, d) => {
3406
3410
  const D = I(d) ? d[u] : d;
3407
3411
  return R(E, D);
3408
- }, m = (E, d) => {
3412
+ }, v = (E, d) => {
3409
3413
  if (!d) return E.length;
3410
3414
  if (d.afterId !== void 0) {
3411
3415
  const D = R(E, d.afterId);
@@ -3416,105 +3420,106 @@ function qi(t, C = {}) {
3416
3420
  return {
3417
3421
  viewItems: k,
3418
3422
  addItem: (E, d) => {
3419
- const D = [...t.value], w = m(D, d);
3420
- return D.splice(w, 0, E), $(D);
3423
+ const D = [...t.value], w = v(D, d);
3424
+ return D.splice(w, 0, E), P(D);
3421
3425
  },
3422
3426
  deleteItem: (E) => {
3423
3427
  const d = S(t.value, E);
3424
3428
  if (d === -1) return t.value;
3425
3429
  const D = [...t.value];
3426
- return D.splice(d, 1), $(D);
3430
+ return D.splice(d, 1), P(D);
3427
3431
  },
3428
3432
  updateItem: (E, d) => {
3429
3433
  const D = S(t.value, E);
3430
3434
  if (D === -1) return t.value;
3431
3435
  const w = [...t.value];
3432
- return w[D] = d, $(w);
3436
+ return w[D] = d, P(w);
3433
3437
  },
3434
3438
  moveItem: (E, d) => {
3435
3439
  const D = t.value.length;
3436
3440
  if (E === d || E < 0 || E >= D || d < 0 || d >= D) return t.value;
3437
3441
  const w = [...t.value], [i] = w.splice(E, 1);
3438
- return w.splice(d, 0, i), $(w);
3442
+ return w.splice(d, 0, i), P(w);
3439
3443
  },
3440
3444
  recalculatePositions: p
3441
3445
  };
3442
3446
  }
3443
- function Gi() {
3447
+ function Hi() {
3444
3448
  const t = _(/* @__PURE__ */ new Map()), C = /* @__PURE__ */ new Set(), u = (y) => t.value.get(y) ?? C, a = (y, x) => {
3445
3449
  x.size === 0 ? t.value.delete(y) : t.value.set(y, x), t.value = new Map(t.value);
3446
- }, v = b(() => {
3450
+ }, m = b(() => {
3447
3451
  const y = /* @__PURE__ */ new Set();
3448
3452
  for (const [x, k] of t.value.entries())
3449
3453
  for (const p of k)
3450
3454
  y.add(`${String(x)}:${String(p)}`);
3451
3455
  return y;
3452
- }), h = b(() => v.value.size);
3453
- return { getForParent: u, setForParent: a, merged: v, count: h };
3456
+ }), h = b(() => m.value.size);
3457
+ return { getForParent: u, setForParent: a, merged: m, count: h };
3454
3458
  }
3455
3459
  export {
3456
- Fi as ADatatableOrdering,
3460
+ Ri as ADatatableOrdering,
3457
3461
  Wn as ADatatablePagination,
3458
- Ji as AFilterBooleanSelect,
3459
- Xi as AFilterDatetimePicker,
3460
- Yi as AFilterInteger,
3461
- Qi as AFilterRemoteAutocomplete,
3462
- Zi as AFilterRemoteAutocompleteWithMinimal,
3463
- _i as AFilterString,
3464
- es as AFilterTimeInterval,
3465
- ts as AFilterValueObjectOptionsSelect,
3466
- as as AFilterWrapper,
3462
+ Xi as AFilterBooleanSelect,
3463
+ Yi as AFilterDatetimePicker,
3464
+ Qi as AFilterInteger,
3465
+ Zi as AFilterRemoteAutocomplete,
3466
+ _i as AFilterRemoteAutocompleteWithMinimal,
3467
+ es as AFilterString,
3468
+ ts as AFilterTimeInterval,
3469
+ as as AFilterValueObjectOptionsSelect,
3470
+ os as AFilterWrapper,
3467
3471
  Bi as AFilterWrapperSidebar,
3468
- os as AFilterWrapperSubjectSelect,
3469
- ns as AFormRemoteAutocomplete,
3470
- ls as AFormRemoteAutocompleteWithCached,
3471
- Mi as AListEditor,
3472
- Ni as ANestedSortableListEditor,
3473
- is as ASortableListEditor,
3474
- zi as ASubjectSelect,
3475
- Oi as AUnsavedConfirmDialog,
3472
+ ns as AFilterWrapperSubjectSelect,
3473
+ ls as AFormRemoteAutocomplete,
3474
+ is as AFormRemoteAutocompleteWithCached,
3475
+ Ni as AListEditor,
3476
+ Oi as ANestedSortableListEditor,
3477
+ ss as ASortableListEditor,
3478
+ Mi as ASubjectSelect,
3479
+ Ui as AUnsavedConfirmDialog,
3476
3480
  Da as DatatablePaginationKey,
3477
3481
  Oo as FilterConfigKey,
3478
3482
  Uo as FilterDataKey,
3479
- ss as FilterInnerConfigKey,
3480
- rs as FilterInnerDataKey,
3481
- ds as ListEditorStateScopeKey,
3482
- cs as SharedReorderRegistryKey,
3483
- us as TimeIntervalSpecialOptions,
3484
- fs as UserAdminConfigLayoutType,
3485
- ms as UserAdminConfigLayoutTypeDefault,
3486
- vs as UserAdminConfigType,
3487
- ys as UserAdminConfigTypeDefault,
3488
- Yn as createDatatableColumnsConfig,
3489
- hs as createFilter,
3490
- gs as createFilterStore,
3491
- ps as createListEditorStateScope,
3483
+ rs as FilterInnerConfigKey,
3484
+ ds as FilterInnerDataKey,
3485
+ cs as FiltersSelected,
3486
+ us as ListEditorStateScopeKey,
3487
+ fs as SharedReorderRegistryKey,
3488
+ ms as TimeIntervalSpecialOptions,
3489
+ vs as UserAdminConfigLayoutType,
3490
+ ys as UserAdminConfigLayoutTypeDefault,
3491
+ hs as UserAdminConfigType,
3492
+ ps as UserAdminConfigTypeDefault,
3493
+ Qn as createDatatableColumnsConfig,
3494
+ gs as createFilter,
3495
+ bs as createFilterStore,
3496
+ ks as createListEditorStateScope,
3492
3497
  ta as generateListQuery,
3493
- bs as nextListEditorTempId,
3498
+ ws as nextListEditorTempId,
3494
3499
  Ja as provideListEditorStateScope,
3495
- $n as renumberPositions,
3496
- ks as sortByPosition,
3497
- ws as sortByPositionDeep,
3498
- Ri as useApiFetchByIds,
3499
- en as useApiFetchList,
3500
- Ki as useApiFetchListBatch,
3501
- Ho as useApiQueryBuilder,
3502
- Cs as useApiRequest,
3503
- rn as useFilterHelpers,
3504
- ji as useGuardedDelete,
3505
- Li as useJobApi,
3506
- qi as useListEditor,
3507
- fn as useListEditorController,
3508
- un as useListEditorStateEntry,
3509
- xs as useNestedListEditor,
3500
+ Dn as renumberPositions,
3501
+ Cs as sortByPosition,
3502
+ xs as sortByPositionDeep,
3503
+ Ki as useApiFetchByIds,
3504
+ tn as useApiFetchList,
3505
+ Li as useApiFetchListBatch,
3506
+ Jo as useApiQueryBuilder,
3507
+ Ss as useApiRequest,
3508
+ dn as useFilterHelpers,
3509
+ qi as useGuardedDelete,
3510
+ Vi as useJobApi,
3511
+ Gi as useListEditor,
3512
+ mn as useListEditorController,
3513
+ fn as useListEditorStateEntry,
3514
+ As as useNestedListEditor,
3510
3515
  gn as useNestedListEditorController,
3511
- hn as useNestedListEditorStateEntry,
3512
- Gi as useNestedUnsavedKeys,
3513
- Wa as usePagination,
3514
- Vi as useSubjectSelect,
3515
- Ui as useUnsavedChangesGuard,
3516
+ pn as useNestedListEditorStateEntry,
3517
+ Hi as useNestedUnsavedKeys,
3518
+ Ha as usePagination,
3519
+ zi as useSubjectSelect,
3520
+ ji as useUnsavedChangesGuard,
3516
3521
  Za as useUnsavedSection,
3517
- Ss as useUserAdminConfigApi,
3518
- As as useUserAdminConfigFactory
3522
+ Es as useUserAdminConfigApi,
3523
+ Ps as useUserAdminConfigFactory
3519
3524
  };
3520
3525
  //# sourceMappingURL=labs.js.map