@anzusystems/common-admin 1.47.0-beta.dev-1778753798 → 1.47.0-beta.dev-1778753799

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