@anzusystems/common-admin 1.49.0 → 1.50.0
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/{AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DAnD88NB.mjs → AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-BwQ3zfkc.mjs} +388 -385
- package/dist/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-BwQ3zfkc.mjs.map +1 -0
- package/dist/common-admin.css +1 -1
- package/dist/common-admin.d.ts +172 -75
- package/dist/common-admin.js +9168 -8853
- package/dist/common-admin.js.map +1 -1
- package/dist/labs.d.ts +1 -1
- package/dist/labs.js +89 -89
- package/dist/{webfontloader-CZqOgyx0.mjs → webfontloader-Dmhv_cAW.mjs} +2 -2
- package/dist/{webfontloader-CZqOgyx0.mjs.map → webfontloader-Dmhv_cAW.mjs.map} +1 -1
- package/package.json +3 -3
- package/dist/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DAnD88NB.mjs.map +0 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { defineComponent as Re, openBlock as _, createBlock as te, withCtx as M, createVNode as x, createElementBlock as de, normalizeClass as rt, toDisplayString as ie, createCommentVNode as ve, renderSlot as ke, createElementVNode as Ie, isProxy as
|
|
2
|
-
import { useEventBus as bt, tryOnBeforeUnmount as
|
|
3
|
-
import { useI18n as Ye, createI18n as
|
|
1
|
+
import { defineComponent as Re, openBlock as _, createBlock as te, withCtx as M, createVNode as x, createElementBlock as de, normalizeClass as rt, toDisplayString as ie, createCommentVNode as ve, renderSlot as ke, createElementVNode as Ie, isProxy as gs, toRaw as aa, isRef as Za, unref as L, computed as R, Fragment as We, normalizeStyle as ys, createTextVNode as ge, shallowRef as oa, watch as _e, ref as U, reactive as Kt, inject as me, createSlots as nn, withDirectives as la, onMounted as Ko, withModifiers as De, onUnmounted as bs, TransitionGroup as ws, mergeProps as Xe, isVNode as Cs, useModel as ct, useTemplateRef as zt, nextTick as Ze, withKeys as Ya, vModelText as kl, mergeModels as tt, getCurrentInstance as $t, resolveComponent as Dn, resolveDynamicComponent as lr, renderList as en, toValue as En, toRef as Ss, onBeforeUnmount as ua, provide as fn, vShow as ks, effectScope as bo, getCurrentScope as Ds, onScopeDispose as Es, useSlots as xs, shallowReactive as Ts, normalizeProps as Dl, guardReactiveProps as El } from "vue";
|
|
2
|
+
import { useEventBus as bt, tryOnBeforeUnmount as As, watchDebounced as Ja, useResizeObserver as Ms, watchThrottled as Is, defaultDocument as $s, unrefElement as xl, tryOnMounted as Fs, tryOnScopeDispose as Bs, useElementSize as Os, useMediaQuery as rr } from "@vueuse/core";
|
|
3
|
+
import { useI18n as Ye, createI18n as _s } from "vue-i18n";
|
|
4
4
|
import { VAutocomplete as ca } from "vuetify/components/VAutocomplete";
|
|
5
5
|
import { VChip as mn } from "vuetify/components/VChip";
|
|
6
6
|
import { VListItem as mt, VList as za, VListItemTitle as rn } from "vuetify/components/VList";
|
|
7
|
-
import { VCard as In, VCardText as Qa, VCardActions as da, VCardTitle as
|
|
7
|
+
import { VCard as In, VCardText as Qa, VCardActions as da, VCardTitle as sr } from "vuetify/components/VCard";
|
|
8
8
|
import { VDialog as fa } from "vuetify/components/VDialog";
|
|
9
9
|
import { VRow as cn, VCol as Yt, VSpacer as $n } from "vuetify/components/VGrid";
|
|
10
|
-
import { VSelect as
|
|
11
|
-
import { VTextarea as
|
|
12
|
-
import { VForm as
|
|
10
|
+
import { VSelect as ir } from "vuetify/components/VSelect";
|
|
11
|
+
import { VTextarea as Rs } from "vuetify/components/VTextarea";
|
|
12
|
+
import { VForm as ur } from "vuetify/components/VForm";
|
|
13
13
|
import { VBtn as Pe } from "vuetify/components/VBtn";
|
|
14
14
|
import { VIcon as Oe } from "vuetify/components/VIcon";
|
|
15
15
|
import { VTooltip as it } from "vuetify/components/VTooltip";
|
|
16
16
|
import { VTextField as ma } from "vuetify/components/VTextField";
|
|
17
17
|
import ra from "@vuelidate/core";
|
|
18
|
-
import { createI18nMessage as wt, between as
|
|
19
|
-
import { VDatePicker as
|
|
18
|
+
import { createI18nMessage as wt, between as Ps, email as Ls, maxLength as Ns, maxValue as Vs, minLength as Us, minValue as Ys, numeric as zs, required as Hs, requiredIf as js, helpers as cr, url as qs } from "@vuelidate/validators";
|
|
19
|
+
import { VDatePicker as Ks } from "vuetify/components/VDatePicker";
|
|
20
20
|
import { VMenu as sa } from "vuetify/components/VMenu";
|
|
21
|
-
import { Tooltip as
|
|
22
|
-
import { VToolbar as
|
|
23
|
-
import { VSwitch as
|
|
24
|
-
import { defineStore as
|
|
21
|
+
import { Tooltip as dr } from "vuetify/directives";
|
|
22
|
+
import { VToolbar as Ws, VToolbarTitle as Gs } from "vuetify/components/VToolbar";
|
|
23
|
+
import { VSwitch as Xs } from "vuetify/components/VSwitch";
|
|
24
|
+
import { defineStore as Zs } from "pinia";
|
|
25
25
|
import vn from "axios";
|
|
26
26
|
import { VProgressCircular as Wo } from "vuetify/components/VProgressCircular";
|
|
27
|
-
import { VTabs as
|
|
28
|
-
import { VAlert as
|
|
29
|
-
import { VAvatar as
|
|
30
|
-
import { VBadge as
|
|
31
|
-
const
|
|
27
|
+
import { VTabs as Js, VTab as Tl } from "vuetify/components/VTabs";
|
|
28
|
+
import { VAlert as fr } from "vuetify/components/VAlert";
|
|
29
|
+
import { VAvatar as Qs } from "vuetify/components/VAvatar";
|
|
30
|
+
import { VBadge as ei } from "vuetify/components/VBadge";
|
|
31
|
+
const ti = { class: "text-high-emphasis" }, un = /* @__PURE__ */ Re({
|
|
32
32
|
__name: "ARow",
|
|
33
33
|
props: {
|
|
34
34
|
title: { default: "" },
|
|
@@ -46,7 +46,7 @@ const ei = { class: "text-high-emphasis" }, un = /* @__PURE__ */ Re({
|
|
|
46
46
|
class: rt(e.titleClass)
|
|
47
47
|
}, ie(e.title), 3)) : ve("", !0),
|
|
48
48
|
ke(n.$slots, "default", {}, () => [
|
|
49
|
-
Ie("span",
|
|
49
|
+
Ie("span", ti, ie(e.value), 1)
|
|
50
50
|
])
|
|
51
51
|
]),
|
|
52
52
|
_: 3
|
|
@@ -63,15 +63,15 @@ const ei = { class: "text-high-emphasis" }, un = /* @__PURE__ */ Re({
|
|
|
63
63
|
}, F = (e) => typeof e > "u", Ue = (e) => !F(e), se = (e) => e === null, xn = (e) => typeof e == "number", Ge = (e) => typeof e == "string", $e = (e) => Array.isArray(e), Om = (e) => typeof e == "function", yt = (e) => typeof e == "boolean", _m = (e) => Ge(e) && /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(e), Rm = (e) => {
|
|
64
64
|
const n = parseFloat(e);
|
|
65
65
|
return !isNaN(e) && (n | 0) === n;
|
|
66
|
-
}, va = (e) => typeof e == "object" && !$e(e) && !se(e), Zn = (e) => va(e) ? Object.keys(e).length === 0 : !1, Po = (e) => $e(e) && e.length === 0,
|
|
66
|
+
}, va = (e) => typeof e == "object" && !$e(e) && !se(e), Zn = (e) => va(e) ? Object.keys(e).length === 0 : !1, Po = (e) => $e(e) && e.length === 0, mr = (e) => se(e) || F(e) || e === "" || e === 0 || Po(e) || Zn(e), Ee = (e) => {
|
|
67
67
|
if (typeof structuredClone == "function")
|
|
68
68
|
try {
|
|
69
|
-
return
|
|
69
|
+
return gs(e) ? structuredClone(aa(e)) : Za(e) ? structuredClone(L(e)) : structuredClone(e);
|
|
70
70
|
} catch {
|
|
71
71
|
return JSON.parse(JSON.stringify(e));
|
|
72
72
|
}
|
|
73
73
|
return JSON.parse(JSON.stringify(e));
|
|
74
|
-
},
|
|
74
|
+
}, vr = (e, n = 0) => {
|
|
75
75
|
let t = n;
|
|
76
76
|
try {
|
|
77
77
|
t = Number.parseInt(e, 10);
|
|
@@ -87,13 +87,13 @@ const ei = { class: "text-high-emphasis" }, un = /* @__PURE__ */ Re({
|
|
|
87
87
|
return n;
|
|
88
88
|
}
|
|
89
89
|
return Number.isNaN(t) ? n : t;
|
|
90
|
-
},
|
|
90
|
+
}, hr = (e, n) => {
|
|
91
91
|
const t = e.trim();
|
|
92
92
|
if (t === "")
|
|
93
93
|
return null;
|
|
94
94
|
const a = Number(t);
|
|
95
95
|
return !Number.isNaN(a) && Number.isFinite(a) ? a : null;
|
|
96
|
-
},
|
|
96
|
+
}, pr = (e) => {
|
|
97
97
|
const n = e.trim();
|
|
98
98
|
return n === "true" ? !0 : n === "false" ? !1 : null;
|
|
99
99
|
}, Tn = (e, n = "") => {
|
|
@@ -102,7 +102,7 @@ const ei = { class: "text-high-emphasis" }, un = /* @__PURE__ */ Re({
|
|
|
102
102
|
start: e.slice(0, t),
|
|
103
103
|
end: e.slice(t + n.length)
|
|
104
104
|
};
|
|
105
|
-
}, Lm = (e) => e.toString().toLowerCase().trim().normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/\s+/g, "-").replace(/&/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, ""), Nm = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Vm = (e, n = 80) => e.length > n ? e.substring(1, n) + "..." : e,
|
|
105
|
+
}, Lm = (e) => e.toString().toLowerCase().trim().normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/\s+/g, "-").replace(/&/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, ""), Nm = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Vm = (e, n = 80) => e.length > n ? e.substring(1, n) + "..." : e, ni = (e, n) => {
|
|
106
106
|
if (e.indexOf(":") === -1) return e;
|
|
107
107
|
const t = [], [a, l] = e.split("?");
|
|
108
108
|
return a.split("/").forEach((r, s) => {
|
|
@@ -135,7 +135,7 @@ const ei = { class: "text-high-emphasis" }, un = /* @__PURE__ */ Re({
|
|
|
135
135
|
return o.length > 0 ? o : n.user.email.slice(0, 2);
|
|
136
136
|
});
|
|
137
137
|
return (o, r) => (_(), de(We, null, [
|
|
138
|
-
x(
|
|
138
|
+
x(Qs, {
|
|
139
139
|
color: t.value,
|
|
140
140
|
class: rt(["text-uppercase", e.containerClass]),
|
|
141
141
|
size: e.size
|
|
@@ -143,7 +143,7 @@ const ei = { class: "text-high-emphasis" }, un = /* @__PURE__ */ Re({
|
|
|
143
143
|
default: M(() => [
|
|
144
144
|
Ie("div", {
|
|
145
145
|
class: "d-inline-flex text-white font-weight-light",
|
|
146
|
-
style:
|
|
146
|
+
style: ys({ fontSize: a.value })
|
|
147
147
|
}, ie(l.value), 5),
|
|
148
148
|
e.tooltip ? (_(), te(it, {
|
|
149
149
|
key: 0,
|
|
@@ -160,7 +160,7 @@ const ei = { class: "text-high-emphasis" }, un = /* @__PURE__ */ Re({
|
|
|
160
160
|
r[0] || (r[0] = Ie("div", null, null, -1))
|
|
161
161
|
], 64));
|
|
162
162
|
}
|
|
163
|
-
}),
|
|
163
|
+
}), ai = { class: "d-inline-flex" }, oi = { key: 0 }, no = /* @__PURE__ */ Re({
|
|
164
164
|
__name: "ACollabLockedByUser",
|
|
165
165
|
props: {
|
|
166
166
|
id: {},
|
|
@@ -182,9 +182,9 @@ const ei = { class: "text-high-emphasis" }, un = /* @__PURE__ */ Re({
|
|
|
182
182
|
a.value || F(i) || !i._loaded || (t.value = i, a.value = !0);
|
|
183
183
|
},
|
|
184
184
|
{ immediate: !0 }
|
|
185
|
-
), (i, u) => (_(), de("div",
|
|
186
|
-
L(se)(e.id) || L(F)(e.id) ? (_(), de("span",
|
|
187
|
-
e.isModerator ? (_(), te(
|
|
185
|
+
), (i, u) => (_(), de("div", ai, [
|
|
186
|
+
L(se)(e.id) || L(F)(e.id) ? (_(), de("span", oi)) : a.value ? (_(), de(We, { key: 1 }, [
|
|
187
|
+
e.isModerator ? (_(), te(ei, {
|
|
188
188
|
key: 0,
|
|
189
189
|
location: "top right",
|
|
190
190
|
color: "white",
|
|
@@ -224,54 +224,54 @@ const ei = { class: "text-high-emphasis" }, un = /* @__PURE__ */ Re({
|
|
|
224
224
|
}))
|
|
225
225
|
]));
|
|
226
226
|
}
|
|
227
|
-
}),
|
|
227
|
+
}), li = /* @__PURE__ */ Symbol(
|
|
228
228
|
"anzu:collabRoomDataChanged"
|
|
229
|
-
),
|
|
229
|
+
), ri = /* @__PURE__ */ Symbol("anzu:collabReconnect"), si = /* @__PURE__ */ Symbol("anzu:collabStarting"), ii = /* @__PURE__ */ Symbol("anzu:collabGatheringBufferData"), ui = /* @__PURE__ */ Symbol("anzu:collabApprovedJoinRequest"), ci = /* @__PURE__ */ Symbol("anzu:collabRejectedJoinRequest"), di = /* @__PURE__ */ Symbol("anzu:collabJoinRequest"), fi = /* @__PURE__ */ Symbol("anzu:collabApprovedRequestToTakeModeration"), mi = /* @__PURE__ */ Symbol("anzu:collabRejectedRequestToTakeModeration"), vi = /* @__PURE__ */ Symbol("anzu:collabRequestToTakeModeration"), hi = /* @__PURE__ */ Symbol(
|
|
230
230
|
"anzu:collabKickedFromRoom"
|
|
231
|
-
),
|
|
232
|
-
function
|
|
231
|
+
), pi = /* @__PURE__ */ Symbol("anzu:collabPurgeRoom");
|
|
232
|
+
function gi() {
|
|
233
233
|
return bt(
|
|
234
|
-
|
|
234
|
+
li
|
|
235
235
|
);
|
|
236
236
|
}
|
|
237
237
|
function qm() {
|
|
238
|
-
return bt(
|
|
238
|
+
return bt(ri);
|
|
239
239
|
}
|
|
240
240
|
function Km() {
|
|
241
241
|
return bt(
|
|
242
|
-
|
|
242
|
+
si
|
|
243
243
|
);
|
|
244
244
|
}
|
|
245
|
-
function
|
|
246
|
-
return bt(
|
|
245
|
+
function gr() {
|
|
246
|
+
return bt(ii);
|
|
247
247
|
}
|
|
248
248
|
function Wm() {
|
|
249
|
-
return bt(
|
|
249
|
+
return bt(ui);
|
|
250
250
|
}
|
|
251
251
|
function Gm() {
|
|
252
|
-
return bt(
|
|
252
|
+
return bt(ci);
|
|
253
253
|
}
|
|
254
254
|
function Xm() {
|
|
255
|
-
return bt(
|
|
255
|
+
return bt(di);
|
|
256
256
|
}
|
|
257
257
|
function Zm() {
|
|
258
258
|
return bt(
|
|
259
|
-
|
|
259
|
+
fi
|
|
260
260
|
);
|
|
261
261
|
}
|
|
262
262
|
function Jm() {
|
|
263
263
|
return bt(
|
|
264
|
-
|
|
264
|
+
mi
|
|
265
265
|
);
|
|
266
266
|
}
|
|
267
267
|
function Qm() {
|
|
268
|
-
return bt(
|
|
268
|
+
return bt(vi);
|
|
269
269
|
}
|
|
270
270
|
function ev() {
|
|
271
|
-
return bt(
|
|
271
|
+
return bt(hi);
|
|
272
272
|
}
|
|
273
273
|
function tv() {
|
|
274
|
-
return bt(
|
|
274
|
+
return bt(pi);
|
|
275
275
|
}
|
|
276
276
|
const jn = {
|
|
277
277
|
Acquire: "acquire",
|
|
@@ -282,34 +282,34 @@ const jn = {
|
|
|
282
282
|
}, Ma = (e, n) => ({
|
|
283
283
|
type: e,
|
|
284
284
|
status: n
|
|
285
|
-
}),
|
|
285
|
+
}), yi = /* @__PURE__ */ Symbol(
|
|
286
286
|
"anzu:collabFieldLockStatus"
|
|
287
287
|
);
|
|
288
|
-
function
|
|
288
|
+
function bi() {
|
|
289
289
|
return bt(
|
|
290
|
-
|
|
290
|
+
yi
|
|
291
291
|
);
|
|
292
292
|
}
|
|
293
293
|
const wo = {
|
|
294
294
|
Inactive: "inactive",
|
|
295
295
|
Active: "active"
|
|
296
|
-
},
|
|
296
|
+
}, wi = {
|
|
297
297
|
Ok: "ok",
|
|
298
298
|
Occupied: "occupied",
|
|
299
299
|
Failed: "failed"
|
|
300
300
|
};
|
|
301
301
|
function nv(e) {
|
|
302
|
-
return e.status ===
|
|
302
|
+
return e.status === wi.Ok;
|
|
303
303
|
}
|
|
304
|
-
const
|
|
304
|
+
const yr = {
|
|
305
305
|
Ok: "ok",
|
|
306
306
|
Failed: "failed"
|
|
307
307
|
};
|
|
308
308
|
function Ml(e) {
|
|
309
|
-
return e.status ===
|
|
309
|
+
return e.status === yr.Ok;
|
|
310
310
|
}
|
|
311
311
|
function Il(e) {
|
|
312
|
-
return e.status ===
|
|
312
|
+
return e.status === yr.Failed;
|
|
313
313
|
}
|
|
314
314
|
const av = {
|
|
315
315
|
Free: "free",
|
|
@@ -337,26 +337,26 @@ function Fn() {
|
|
|
337
337
|
collabOptions: Lo
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
|
-
const $l = U(!0),
|
|
341
|
-
let
|
|
342
|
-
const Fl = /* @__PURE__ */ new Map(),
|
|
340
|
+
const $l = U(!0), Ci = U(), Si = Kt(/* @__PURE__ */ new Map());
|
|
341
|
+
let ki = 0;
|
|
342
|
+
const Fl = /* @__PURE__ */ new Map(), Di = Kt(/* @__PURE__ */ new Map()), Co = Kt(
|
|
343
343
|
/* @__PURE__ */ new Map()
|
|
344
344
|
);
|
|
345
|
-
function
|
|
345
|
+
function Ei() {
|
|
346
346
|
const { collabOptions: e } = Fn();
|
|
347
347
|
return {
|
|
348
348
|
collabReconnecting: R(() => e.value.enabled && !$l.value),
|
|
349
349
|
collabConnected: $l,
|
|
350
|
-
collabSocket:
|
|
351
|
-
collabRoomInfoState:
|
|
350
|
+
collabSocket: Ci,
|
|
351
|
+
collabRoomInfoState: Si,
|
|
352
352
|
claimRoomInfoWrite: (l) => {
|
|
353
|
-
const o = ++
|
|
353
|
+
const o = ++ki;
|
|
354
354
|
return Fl.set(l, o), () => Fl.get(l) === o;
|
|
355
355
|
},
|
|
356
|
-
collabFieldLocksState:
|
|
356
|
+
collabFieldLocksState: Di,
|
|
357
357
|
collabFieldDataBufferState: Co,
|
|
358
358
|
gatherBufferData: (l) => {
|
|
359
|
-
|
|
359
|
+
gr().emit({ room: l });
|
|
360
360
|
let r = {};
|
|
361
361
|
const s = Co.get(l);
|
|
362
362
|
return s && (r = aa(Object.fromEntries(s.entries())), Co.delete(l)), r;
|
|
@@ -364,7 +364,7 @@ function Di() {
|
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
366
|
const Bl = U(null);
|
|
367
|
-
function
|
|
367
|
+
function xi() {
|
|
368
368
|
function e(n) {
|
|
369
369
|
Bl.value = n;
|
|
370
370
|
}
|
|
@@ -374,7 +374,7 @@ function Ei() {
|
|
|
374
374
|
};
|
|
375
375
|
}
|
|
376
376
|
function ao(e, n, t = !1) {
|
|
377
|
-
const { collabOptions: a } = Fn(), { currentUserId: l } =
|
|
377
|
+
const { collabOptions: a } = Fn(), { currentUserId: l } = xi(), { collabSocket: o, collabFieldLocksState: r, collabFieldDataBufferState: s, collabRoomInfoState: i } = Ei(), u = gi(), c = U(), d = U(), C = bi(), y = U(), E = U(), p = gr(), f = U(), m = U(), g = (V, O) => {
|
|
378
378
|
V.room !== e || V.field !== n || F(O) || F(d.value) || d.value(O);
|
|
379
379
|
}, T = (V, O) => {
|
|
380
380
|
V.room !== e || V.field !== n || F(O) || F(E.value) || E.value(O);
|
|
@@ -391,7 +391,7 @@ function ao(e, n, t = !1) {
|
|
|
391
391
|
P
|
|
392
392
|
);
|
|
393
393
|
};
|
|
394
|
-
|
|
394
|
+
As(() => {
|
|
395
395
|
t || (Ue(c.value) && c.value(), Ue(y.value) && y.value(), Ue(f.value) && f.value());
|
|
396
396
|
});
|
|
397
397
|
const H = R(() => {
|
|
@@ -492,7 +492,7 @@ function ao(e, n, t = !1) {
|
|
|
492
492
|
unsubscribeCollabGatheringBufferData: f
|
|
493
493
|
};
|
|
494
494
|
}
|
|
495
|
-
const
|
|
495
|
+
const Ti = {
|
|
496
496
|
key: 0,
|
|
497
497
|
class: "required"
|
|
498
498
|
}, Ol = /* @__PURE__ */ Re({
|
|
@@ -585,7 +585,7 @@ const xi = {
|
|
|
585
585
|
name: "label",
|
|
586
586
|
fn: M(() => [
|
|
587
587
|
ge(ie(m.value), 1),
|
|
588
|
-
g.value ? (_(), de("span",
|
|
588
|
+
g.value ? (_(), de("span", Ti)) : ve("", !0)
|
|
589
589
|
]),
|
|
590
590
|
key: "0"
|
|
591
591
|
},
|
|
@@ -613,19 +613,22 @@ const xi = {
|
|
|
613
613
|
name: "append",
|
|
614
614
|
fn: M(() => [
|
|
615
615
|
la(x(Oe, { icon: "mdi-help-circle-outline" }, null, 512), [
|
|
616
|
-
[
|
|
616
|
+
[dr, e.help]
|
|
617
617
|
])
|
|
618
618
|
]),
|
|
619
619
|
key: "3"
|
|
620
620
|
} : void 0
|
|
621
621
|
]), 1032, ["prepend-icon", "data-cy", "error-messages", "model-value", "required", "type", "step", "append-icon", "maxlength", "disabled", "placeholder", "persistent-placeholder"]));
|
|
622
622
|
}
|
|
623
|
-
}), _l = ["en", "sk"],
|
|
623
|
+
}), _l = ["en", "sk"], Rl = (e, n) => n === 4 ? e === 0 ? 0 : e === 1 ? 1 : e >= 2 && e <= 4 ? 2 : 3 : n === 3 ? e === 1 ? 0 : e >= 2 && e <= 4 ? 1 : 2 : e === 1 ? 0 : 1, He = _s({
|
|
624
624
|
globalInjection: !1,
|
|
625
625
|
locale: _l[0],
|
|
626
626
|
fallbackLocale: !1,
|
|
627
627
|
pluralRules: {
|
|
628
|
-
sk:
|
|
628
|
+
sk: Rl,
|
|
629
|
+
// Czech splits plurals the same way Slovak does (1 / 2-4 / 5+), so it needs the same rule; the
|
|
630
|
+
// vue-i18n default would pick the second form for one item.
|
|
631
|
+
cs: Rl
|
|
629
632
|
},
|
|
630
633
|
missing: (e, n) => {
|
|
631
634
|
_l.includes(e) && !n.startsWith("system.subject.") && console.warn(`Missing ${e} translation: ${n}`);
|
|
@@ -704,12 +707,12 @@ const Xo = /* @__PURE__ */ Re({
|
|
|
704
707
|
const t = n, a = () => {
|
|
705
708
|
t("onCancel");
|
|
706
709
|
};
|
|
707
|
-
return (l, o) => (_(), te(
|
|
710
|
+
return (l, o) => (_(), te(Ws, {
|
|
708
711
|
density: "compact",
|
|
709
712
|
color: "transparent"
|
|
710
713
|
}, {
|
|
711
714
|
default: M(() => [
|
|
712
|
-
x(
|
|
715
|
+
x(Gs, { class: "flex-fill" }, {
|
|
713
716
|
default: M(() => [
|
|
714
717
|
ke(l.$slots, "default")
|
|
715
718
|
]),
|
|
@@ -740,7 +743,7 @@ const Xo = /* @__PURE__ */ Re({
|
|
|
740
743
|
console.error("vite-plugin-css-injected-by-js", t);
|
|
741
744
|
}
|
|
742
745
|
})();
|
|
743
|
-
const
|
|
746
|
+
const br = /* @__PURE__ */ new Map();
|
|
744
747
|
function $i(e) {
|
|
745
748
|
return { all: e = e || /* @__PURE__ */ new Map(), on: function(n, t) {
|
|
746
749
|
var a = e.get(n);
|
|
@@ -757,7 +760,7 @@ function $i(e) {
|
|
|
757
760
|
});
|
|
758
761
|
} };
|
|
759
762
|
}
|
|
760
|
-
const Cn = $i(), So = "[-+]?[0-9]*.?[0-9]+",
|
|
763
|
+
const Cn = $i(), So = "[-+]?[0-9]*.?[0-9]+", Pl = [
|
|
761
764
|
{
|
|
762
765
|
name: "px",
|
|
763
766
|
regexp: new RegExp(`^${So}px$`)
|
|
@@ -780,8 +783,8 @@ const Cn = $i(), So = "[-+]?[0-9]*.?[0-9]+", Rl = [
|
|
|
780
783
|
type: e,
|
|
781
784
|
value: 0
|
|
782
785
|
};
|
|
783
|
-
for (let n = 0; n <
|
|
784
|
-
const t =
|
|
786
|
+
for (let n = 0; n < Pl.length; n++) {
|
|
787
|
+
const t = Pl[n];
|
|
785
788
|
if (t.regexp.test(e))
|
|
786
789
|
return {
|
|
787
790
|
type: t.name,
|
|
@@ -801,14 +804,14 @@ const Cn = $i(), So = "[-+]?[0-9]*.?[0-9]+", Rl = [
|
|
|
801
804
|
default:
|
|
802
805
|
return { type: "", value: e };
|
|
803
806
|
}
|
|
804
|
-
},
|
|
807
|
+
}, Ll = {
|
|
805
808
|
x: /* @__PURE__ */ new Set(["left", "center", "right"]),
|
|
806
809
|
y: /* @__PURE__ */ new Set(["top", "bottom"])
|
|
807
810
|
}, Oi = /* @__PURE__ */ ((e) => () => e++)(0), _i = (e) => typeof e != "string" ? [] : e.split(/\s+/gi).filter(Boolean), Ri = (e) => {
|
|
808
811
|
typeof e == "string" && (e = _i(e));
|
|
809
812
|
let n = null, t = null;
|
|
810
813
|
return e.forEach((a) => {
|
|
811
|
-
|
|
814
|
+
Ll.y.has(a) && (t = a), Ll.x.has(a) && (n = a);
|
|
812
815
|
}), { x: n, y: t };
|
|
813
816
|
}, ko = {
|
|
814
817
|
position: ["top", "right"],
|
|
@@ -836,7 +839,7 @@ const Cn = $i(), So = "[-+]?[0-9]*.?[0-9]+", Rl = [
|
|
|
836
839
|
};
|
|
837
840
|
};
|
|
838
841
|
function Li(e) {
|
|
839
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
842
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Cs(e);
|
|
840
843
|
}
|
|
841
844
|
const Ia = {
|
|
842
845
|
IDLE: 0,
|
|
@@ -934,7 +937,7 @@ const Ia = {
|
|
|
934
937
|
slots: t,
|
|
935
938
|
expose: a
|
|
936
939
|
}) => {
|
|
937
|
-
const l = U([]), o =
|
|
940
|
+
const l = U([]), o = br.get("velocity"), r = R(() => e.animationType === "velocity"), s = R(() => l.value.filter((I) => I.state !== Ia.DESTROYED)), i = R(() => Bi(e.width)), u = R(() => {
|
|
938
941
|
const {
|
|
939
942
|
x: I,
|
|
940
943
|
y: N
|
|
@@ -1021,14 +1024,14 @@ const Ia = {
|
|
|
1021
1024
|
}
|
|
1022
1025
|
return Ko(() => {
|
|
1023
1026
|
Cn.on("add", E), Cn.on("close", p);
|
|
1024
|
-
}),
|
|
1027
|
+
}), bs(() => {
|
|
1025
1028
|
Cn.off("add", E), Cn.off("close", p);
|
|
1026
1029
|
}), () => {
|
|
1027
1030
|
let I;
|
|
1028
1031
|
return x("div", {
|
|
1029
1032
|
class: "vue-notification-group",
|
|
1030
1033
|
style: u.value
|
|
1031
|
-
}, [x(
|
|
1034
|
+
}, [x(ws, Xe(c.value, {
|
|
1032
1035
|
tag: "div",
|
|
1033
1036
|
css: !r.value,
|
|
1034
1037
|
name: e.animationName
|
|
@@ -1069,7 +1072,7 @@ St.close = (e) => {
|
|
|
1069
1072
|
};
|
|
1070
1073
|
const Vi = "Notifications";
|
|
1071
1074
|
function Ui(e, n = {}) {
|
|
1072
|
-
Object.entries(n).forEach((a) =>
|
|
1075
|
+
Object.entries(n).forEach((a) => br.set(...a));
|
|
1073
1076
|
const t = n.name || "notify";
|
|
1074
1077
|
e.config.globalProperties["$" + t] = St, e.component(n.componentName || Vi, Ni);
|
|
1075
1078
|
}
|
|
@@ -1082,10 +1085,10 @@ class Ft extends Error {
|
|
|
1082
1085
|
super(a), this.name = "AnzuFatalError", this.cause = n, this.message = a;
|
|
1083
1086
|
}
|
|
1084
1087
|
}
|
|
1085
|
-
const zi = 200, Hi = 201,
|
|
1088
|
+
const zi = 200, Hi = 201, wr = 202, Bn = 204, vv = 400, hv = 401, ji = 403, pv = 404, Zo = 422, qi = [
|
|
1086
1089
|
zi,
|
|
1087
1090
|
Hi,
|
|
1088
|
-
|
|
1091
|
+
wr,
|
|
1089
1092
|
Bn
|
|
1090
1093
|
], ha = (e) => vn.isAxiosError(e) && e.response?.status === ji, Ki = (e) => e instanceof On;
|
|
1091
1094
|
class On extends Error {
|
|
@@ -1093,7 +1096,7 @@ class On extends Error {
|
|
|
1093
1096
|
super(t), this.name = "AnzuApiForbiddenError", this.cause = n, this.message = t;
|
|
1094
1097
|
}
|
|
1095
1098
|
}
|
|
1096
|
-
const Wi = "validation_failed", pa = (e) => vn.isAxiosError(e) && e.response?.status === Zo && e.response.data?.error === Wi && e.response.data?.fields,
|
|
1099
|
+
const Wi = "validation_failed", pa = (e) => vn.isAxiosError(e) && e.response?.status === Zo && e.response.data?.error === Wi && e.response.data?.fields, Cr = (e) => e instanceof _n, Gi = (e, n, t) => e.fields.some((a) => a.field === t && a.errors.includes(n));
|
|
1097
1100
|
function Xi(e, n, t) {
|
|
1098
1101
|
const a = e.response?.data, l = [];
|
|
1099
1102
|
for (const [o, r] of Object.entries(a.fields))
|
|
@@ -1138,7 +1141,7 @@ class Ln extends Error {
|
|
|
1138
1141
|
super(o), this.name = "AnzuApiDependencyExistsError", this.cause = l, this.message = o, this.dependencies = nu(n);
|
|
1139
1142
|
}
|
|
1140
1143
|
}
|
|
1141
|
-
const au = (e) => e instanceof Qo,
|
|
1144
|
+
const au = (e) => e instanceof Qo, Sr = (e) => vn.isAxiosError(e) && (e.code === "ECONNABORTED" || e.message.includes("timeout") || e.cause instanceof Error && e.cause.message.includes("timeout"));
|
|
1142
1145
|
class Qo extends Error {
|
|
1143
1146
|
constructor(n = void 0) {
|
|
1144
1147
|
super("API request timed out"), this.name = "AnzuApiTimeoutError", this.cause = n;
|
|
@@ -1255,7 +1258,7 @@ function Nn() {
|
|
|
1255
1258
|
duration: f * 1e3,
|
|
1256
1259
|
type: "error"
|
|
1257
1260
|
});
|
|
1258
|
-
}, E = (f, m = -1) => Ki(f) ? (y(m), !0) :
|
|
1261
|
+
}, E = (f, m = -1) => Ki(f) ? (y(m), !0) : Cr(f) ? (c(f.fields, m), !0) : tu(f) ? (a("error.apiDependencyExists.message", m), !0) : Ji(f) ? (d(f.detail, m), !0) : au(f) ? (a("error.apiTimedOut.message", m), !0) : ou(f) || Yi(f) || Jo(f) ? (C(m), !0) : !1, p = (f) => {
|
|
1259
1262
|
const { t: m } = He.global, g = f.split("["), T = g[0].trim(), P = g[1].split("]"), A = P[0], k = P[1] ?? "";
|
|
1260
1263
|
return m(T) + "[" + A + "]: " + m(T.slice(0, -1) + k);
|
|
1261
1264
|
};
|
|
@@ -1280,9 +1283,9 @@ function Nn() {
|
|
|
1280
1283
|
function tl(e) {
|
|
1281
1284
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1282
1285
|
}
|
|
1283
|
-
var _a = { exports: {} }, ru = _a.exports,
|
|
1286
|
+
var _a = { exports: {} }, ru = _a.exports, Nl;
|
|
1284
1287
|
function su() {
|
|
1285
|
-
return
|
|
1288
|
+
return Nl || (Nl = 1, (function(e, n) {
|
|
1286
1289
|
(function(t, a) {
|
|
1287
1290
|
e.exports = a();
|
|
1288
1291
|
})(ru, (function() {
|
|
@@ -1560,9 +1563,9 @@ function su() {
|
|
|
1560
1563
|
}
|
|
1561
1564
|
var iu = su();
|
|
1562
1565
|
const Me = /* @__PURE__ */ tl(iu);
|
|
1563
|
-
var Ra = { exports: {} }, uu = Ra.exports,
|
|
1566
|
+
var Ra = { exports: {} }, uu = Ra.exports, Vl;
|
|
1564
1567
|
function cu() {
|
|
1565
|
-
return
|
|
1568
|
+
return Vl || (Vl = 1, (function(e, n) {
|
|
1566
1569
|
(function(t, a) {
|
|
1567
1570
|
e.exports = a();
|
|
1568
1571
|
})(uu, (function() {
|
|
@@ -1636,10 +1639,10 @@ function cu() {
|
|
|
1636
1639
|
})(Ra)), Ra.exports;
|
|
1637
1640
|
}
|
|
1638
1641
|
var du = cu();
|
|
1639
|
-
const
|
|
1640
|
-
var Pa = { exports: {} }, fu = Pa.exports,
|
|
1642
|
+
const kr = /* @__PURE__ */ tl(du);
|
|
1643
|
+
var Pa = { exports: {} }, fu = Pa.exports, Ul;
|
|
1641
1644
|
function mu() {
|
|
1642
|
-
return
|
|
1645
|
+
return Ul || (Ul = 1, (function(e, n) {
|
|
1643
1646
|
(function(t, a) {
|
|
1644
1647
|
e.exports = a();
|
|
1645
1648
|
})(fu, (function() {
|
|
@@ -1761,10 +1764,10 @@ function mu() {
|
|
|
1761
1764
|
})(Pa)), Pa.exports;
|
|
1762
1765
|
}
|
|
1763
1766
|
var vu = mu();
|
|
1764
|
-
const
|
|
1765
|
-
Me.extend(Sr);
|
|
1767
|
+
const Dr = /* @__PURE__ */ tl(vu);
|
|
1766
1768
|
Me.extend(kr);
|
|
1767
|
-
|
|
1769
|
+
Me.extend(Dr);
|
|
1770
|
+
const tn = ".000000Z", Ha = "YYYY-MM-DDTHH:mm:ss", oo = "1970-01-01T00:00:00.000000Z", lo = "2100-01-01T00:00:00.000000Z", gv = () => Me().utc().toDate(), hu = (e) => Me(e).toDate(), yv = () => vr(Me().utc().unix()), ia = (e = !0, n = !1) => e && !n ? Me().utc().format("YYYY-MM-DDTHH:mm:ss") + tn : e && n ? Me().utc().format("YYYY-MM-DDTHH:mm:00") + tn : !e && n ? Me().utc().format("YYYY-MM-DDTHH:mm:00.SSSSSS") + "Z" : Me().utc().format("YYYY-MM-DDTHH:mm:ss.SSSSSS") + "Z", bv = (e = 0) => e === 0 ? Me().startOf("day").utc().format(Ha) + tn : Me().add(e, "days").startOf("day").utc().format(Ha) + tn, wv = (e = 0) => e === 0 ? Me().endOf("day").utc().format(Ha) + tn : Me().add(e, "days").endOf("day").utc().format(Ha) + tn, pu = (e = 0, n = null) => (n === null && (n = /* @__PURE__ */ new Date()), e === 0 ? n : e > 0 ? Me(n).add(e, "minutes").toDate() : e < 0 ? Me(n).subtract(Math.abs(e), "minutes").toDate() : n), No = (e, n = tn) => Me(e).utc().format("YYYY-MM-DDTHH:mm:ss") + n, Cv = () => Me().utc().format("YYYY"), Kn = (e, n = "", t = !1) => e === lo || e === oo || e === "" || se(e) || F(e) ? n : Me(e).format(t ? "DD.MM.YYYY HH:mm:ss" : "DD.MM.YYYY HH:mm"), Sv = (e, n = "", t = !1) => {
|
|
1768
1771
|
if (e === lo || e === oo || e === "" || se(e) || F(e))
|
|
1769
1772
|
return n;
|
|
1770
1773
|
let a = !0, l = !0;
|
|
@@ -1783,7 +1786,7 @@ const tn = ".000000Z", Ha = "YYYY-MM-DDTHH:mm:ss", oo = "1970-01-01T00:00:00.000
|
|
|
1783
1786
|
} : { from: l, until: o };
|
|
1784
1787
|
}, Eo = gu, ro = (e) => {
|
|
1785
1788
|
e?.currentTarget instanceof HTMLElement && e.currentTarget.blur();
|
|
1786
|
-
},
|
|
1789
|
+
}, Er = /* @__PURE__ */ Re({
|
|
1787
1790
|
__name: "AFilterSubmitButton",
|
|
1788
1791
|
props: {
|
|
1789
1792
|
buttonT: { default: "common.button.submitFilter" },
|
|
@@ -1810,7 +1813,7 @@ const tn = ".000000Z", Ha = "YYYY-MM-DDTHH:mm:ss", oo = "1970-01-01T00:00:00.000
|
|
|
1810
1813
|
_: 1
|
|
1811
1814
|
}, 8, ["class", "data-cy", "variant"]));
|
|
1812
1815
|
}
|
|
1813
|
-
}),
|
|
1816
|
+
}), xr = /* @__PURE__ */ Re({
|
|
1814
1817
|
__name: "AFilterResetButton",
|
|
1815
1818
|
props: {
|
|
1816
1819
|
tooltipT: { default: "common.button.resetFilter" },
|
|
@@ -1885,80 +1888,80 @@ function Av(e, n, t = ".") {
|
|
|
1885
1888
|
}
|
|
1886
1889
|
return o(e), e;
|
|
1887
1890
|
}
|
|
1888
|
-
const ba = (e, n, t = "") => Zn(n) ? e :
|
|
1891
|
+
const ba = (e, n, t = "") => Zn(n) ? e : ni(
|
|
1889
1892
|
t === "" ? e : t,
|
|
1890
1893
|
n
|
|
1891
1894
|
), wa = (e) => qi.includes(e), Mv = (e, n, t = {}, a, l, o = {}) => new Promise((r, s) => {
|
|
1892
1895
|
e().get(ba(n, t), o).then((i) => wa(i.status) ? i.data ? r(i.data) : i.status === Bn ? r(null) : s(new Ft()) : s(new Rn(i.status))).catch((i) => ha(i) ? s(new On(i, i.config?.url)) : pa(i) ? s(new _n(i, a, l, i)) : ya(i) ? s(new Ln(i, a, l, i)) : ga(i) ? s(new Pn(i, i)) : s(new Ft(i)));
|
|
1893
1896
|
}), { t: wu } = He.global;
|
|
1894
1897
|
function Cu() {
|
|
1895
|
-
return wt({ t: wu })(
|
|
1898
|
+
return wt({ t: wu })(Ps, {
|
|
1896
1899
|
withArguments: !0,
|
|
1897
1900
|
messagePath: () => "error.jsValidation.between"
|
|
1898
1901
|
});
|
|
1899
1902
|
}
|
|
1900
1903
|
const { t: Su } = He.global;
|
|
1901
1904
|
function ku() {
|
|
1902
|
-
return wt({ t: Su })(
|
|
1905
|
+
return wt({ t: Su })(Ls, {
|
|
1903
1906
|
messagePath: () => "error.jsValidation.email"
|
|
1904
1907
|
});
|
|
1905
1908
|
}
|
|
1906
1909
|
const { t: Du } = He.global;
|
|
1907
1910
|
function Eu() {
|
|
1908
|
-
return wt({ t: Du })(
|
|
1911
|
+
return wt({ t: Du })(Ns, {
|
|
1909
1912
|
withArguments: !0,
|
|
1910
1913
|
messagePath: () => "error.jsValidation.maxLength"
|
|
1911
1914
|
});
|
|
1912
1915
|
}
|
|
1913
1916
|
const { t: xu } = He.global;
|
|
1914
1917
|
function Tu() {
|
|
1915
|
-
return wt({ t: xu })(
|
|
1918
|
+
return wt({ t: xu })(Vs, {
|
|
1916
1919
|
withArguments: !0,
|
|
1917
1920
|
messagePath: () => "error.jsValidation.maxValue"
|
|
1918
1921
|
});
|
|
1919
1922
|
}
|
|
1920
1923
|
const { t: Au } = He.global;
|
|
1921
1924
|
function Mu() {
|
|
1922
|
-
return wt({ t: Au })(
|
|
1925
|
+
return wt({ t: Au })(Us, {
|
|
1923
1926
|
withArguments: !0,
|
|
1924
1927
|
messagePath: () => "error.jsValidation.minLength"
|
|
1925
1928
|
});
|
|
1926
1929
|
}
|
|
1927
1930
|
const { t: Iu } = He.global;
|
|
1928
1931
|
function $u() {
|
|
1929
|
-
return wt({ t: Iu })(
|
|
1932
|
+
return wt({ t: Iu })(Ys, {
|
|
1930
1933
|
withArguments: !0,
|
|
1931
1934
|
messagePath: () => "error.jsValidation.minValue"
|
|
1932
1935
|
});
|
|
1933
1936
|
}
|
|
1934
1937
|
const { t: Fu } = He.global;
|
|
1935
1938
|
function Bu() {
|
|
1936
|
-
return wt({ t: Fu })(
|
|
1939
|
+
return wt({ t: Fu })(zs, {
|
|
1937
1940
|
messagePath: () => "error.jsValidation.numeric"
|
|
1938
1941
|
});
|
|
1939
1942
|
}
|
|
1940
1943
|
const { t: Ou } = He.global;
|
|
1941
1944
|
function _u() {
|
|
1942
|
-
return wt({ t: Ou })(
|
|
1945
|
+
return wt({ t: Ou })(Hs, {
|
|
1943
1946
|
messagePath: () => "error.jsValidation.required"
|
|
1944
1947
|
});
|
|
1945
1948
|
}
|
|
1946
1949
|
const { t: Ru } = He.global;
|
|
1947
1950
|
function Pu() {
|
|
1948
|
-
return wt({ t: Ru })(
|
|
1951
|
+
return wt({ t: Ru })(js, {
|
|
1949
1952
|
withArguments: !0,
|
|
1950
1953
|
messagePath: () => "error.jsValidation.required"
|
|
1951
1954
|
});
|
|
1952
1955
|
}
|
|
1953
1956
|
const { t: Lu } = He.global;
|
|
1954
1957
|
function Nu() {
|
|
1955
|
-
return wt({ t: Lu })(
|
|
1958
|
+
return wt({ t: Lu })(cr.regex(/^[a-z\-0-9]+$/), {
|
|
1956
1959
|
messagePath: () => "error.jsValidation.slug"
|
|
1957
1960
|
});
|
|
1958
1961
|
}
|
|
1959
1962
|
const { t: Vu } = He.global;
|
|
1960
1963
|
function Uu() {
|
|
1961
|
-
const e = wt({ t: Vu }), n = (a, l) => (o) => !
|
|
1964
|
+
const e = wt({ t: Vu }), n = (a, l) => (o) => !cr.req(o) || o.every((r) => r.length >= L(a) && r.length <= L(l));
|
|
1962
1965
|
return e((a, l) => ({
|
|
1963
1966
|
$validator: n(a, l),
|
|
1964
1967
|
// $message not required when using i18n
|
|
@@ -1978,7 +1981,7 @@ function Uu() {
|
|
|
1978
1981
|
}
|
|
1979
1982
|
const { t: Yu } = He.global;
|
|
1980
1983
|
function zu() {
|
|
1981
|
-
return wt({ t: Yu })(
|
|
1984
|
+
return wt({ t: Yu })(qs, {
|
|
1982
1985
|
messagePath: () => "error.jsValidation.url"
|
|
1983
1986
|
});
|
|
1984
1987
|
}
|
|
@@ -2239,7 +2242,7 @@ const qu = { class: "a-datetime-picker-time" }, Ku = { class: "a-datetime-picker
|
|
|
2239
2242
|
emits: ["blur", "focus", "update:modelValue", "onOpen", "onClose", "afterClear"],
|
|
2240
2243
|
setup(e, { emit: n }) {
|
|
2241
2244
|
const t = e, a = n;
|
|
2242
|
-
Me.extend(
|
|
2245
|
+
Me.extend(kr), Me.extend(Dr);
|
|
2243
2246
|
const l = U(!1), o = U(0), r = U(0), s = zt("timePickerInstance"), i = zt("inputInstance"), u = zt("confirmRefButton"), c = U(""), d = U(null), C = U(null), y = U(null), { t: E } = Ye(), p = R(() => t.type === "datetime" ? "dd.mm.yyyy hh:mm" : "dd.mm.yyyy"), { requiredIf: f } = nl(), m = R(() => ({
|
|
2244
2247
|
textFieldValue: {
|
|
2245
2248
|
required: f(t.required)
|
|
@@ -2382,9 +2385,9 @@ const qu = { class: "a-datetime-picker-time" }, Ku = { class: "a-datetime-picker
|
|
|
2382
2385
|
]),
|
|
2383
2386
|
_: 1
|
|
2384
2387
|
})), [
|
|
2385
|
-
[
|
|
2388
|
+
[dr, L(E)("common.button.close")]
|
|
2386
2389
|
]),
|
|
2387
|
-
(_(), te(
|
|
2390
|
+
(_(), te(Ks, Xe({
|
|
2388
2391
|
key: o.value,
|
|
2389
2392
|
modelValue: d.value,
|
|
2390
2393
|
"onUpdate:modelValue": D[0] || (D[0] = (B) => d.value = B),
|
|
@@ -2439,7 +2442,7 @@ const qu = { class: "a-datetime-picker-time" }, Ku = { class: "a-datetime-picker
|
|
|
2439
2442
|
}
|
|
2440
2443
|
]), 1032, ["modelValue", "error-messages", "placeholder", "disabled"]));
|
|
2441
2444
|
}
|
|
2442
|
-
}),
|
|
2445
|
+
}), Tr = /* @__PURE__ */ Go(nc, [["__scopeId", "data-v-2afc2324"]]), Yl = /* @__PURE__ */ Re({
|
|
2443
2446
|
__name: "AFormDatetimePicker",
|
|
2444
2447
|
props: {
|
|
2445
2448
|
modelValue: {},
|
|
@@ -2491,7 +2494,7 @@ const qu = { class: "a-datetime-picker-time" }, Ku = { class: "a-datetime-picker
|
|
|
2491
2494
|
}), A = R(() => Ue(t.required) ? t.required : !!(t.v?.required && t.v?.required.$params.type === "required")), k = R(() => Ue(t.disabled) ? t.disabled : !!u.value);
|
|
2492
2495
|
return _e(l, ($, H) => {
|
|
2493
2496
|
$ !== H && o.value.enabled && (d.value || c.value) && s.value($);
|
|
2494
|
-
}), ($, H) => (_(), te(
|
|
2497
|
+
}), ($, H) => (_(), te(Tr, Xe({
|
|
2495
2498
|
modelValue: l.value,
|
|
2496
2499
|
"onUpdate:modelValue": H[0] || (H[0] = (I) => l.value = I),
|
|
2497
2500
|
"data-cy": e.dataCy,
|
|
@@ -2518,7 +2521,7 @@ const qu = { class: "a-datetime-picker-time" }, Ku = { class: "a-datetime-picker
|
|
|
2518
2521
|
_: 3
|
|
2519
2522
|
}, 16, ["modelValue", "data-cy", "error-messages", "required", "disabled", "label", "clearable"]));
|
|
2520
2523
|
}
|
|
2521
|
-
}),
|
|
2524
|
+
}), zl = /* @__PURE__ */ Re({
|
|
2522
2525
|
__name: "AFormSwitch",
|
|
2523
2526
|
props: {
|
|
2524
2527
|
modelValue: { type: Boolean },
|
|
@@ -2557,7 +2560,7 @@ const qu = { class: "a-datetime-picker-time" }, Ku = { class: "a-datetime-picker
|
|
|
2557
2560
|
}, d = () => {
|
|
2558
2561
|
a("focus", t.modelValue), r.value();
|
|
2559
2562
|
}, C = R(() => Ue(t.disabled) ? t.disabled : !!s.value);
|
|
2560
|
-
return (y, E) => (_(), te(
|
|
2563
|
+
return (y, E) => (_(), te(Xs, {
|
|
2561
2564
|
"data-cy": e.dataCy,
|
|
2562
2565
|
"model-value": e.modelValue,
|
|
2563
2566
|
disabled: C.value,
|
|
@@ -2588,16 +2591,16 @@ const qu = { class: "a-datetime-picker-time" }, Ku = { class: "a-datetime-picker
|
|
|
2588
2591
|
} : void 0
|
|
2589
2592
|
]), 1032, ["data-cy", "model-value", "disabled"]));
|
|
2590
2593
|
}
|
|
2591
|
-
}),
|
|
2594
|
+
}), Hl = U(1), xo = U(!1);
|
|
2592
2595
|
function ac() {
|
|
2593
2596
|
return {
|
|
2594
2597
|
setStoredPage: (a) => {
|
|
2595
|
-
|
|
2598
|
+
Hl.value = a;
|
|
2596
2599
|
},
|
|
2597
2600
|
setPreservePage: () => {
|
|
2598
2601
|
xo.value = !0;
|
|
2599
2602
|
},
|
|
2600
|
-
consumeStoredPage: () => xo.value ? (xo.value = !1,
|
|
2603
|
+
consumeStoredPage: () => xo.value ? (xo.value = !1, Hl.value) : null
|
|
2601
2604
|
};
|
|
2602
2605
|
}
|
|
2603
2606
|
const To = "_sort", oc = {
|
|
@@ -2702,7 +2705,7 @@ const sc = {
|
|
|
2702
2705
|
storeFiltersLocalStorage: !0,
|
|
2703
2706
|
populateUrlParams: !0
|
|
2704
2707
|
};
|
|
2705
|
-
function
|
|
2708
|
+
function Ar(e, n, t = {}) {
|
|
2706
2709
|
const a = { ...sc, ...t }, l = "~";
|
|
2707
2710
|
let o;
|
|
2708
2711
|
Ge(a.storeFiltersLocalStorage) ? o = a.storeFiltersLocalStorage : yt(a.storeFiltersLocalStorage) && a.storeFiltersLocalStorage === !0 && Ge(n.general.system) && Ge(n.general.subject) && (o = "tableFilter_" + n.general.system + "_" + n.general.subject);
|
|
@@ -2777,11 +2780,11 @@ function Tr(e, n, t = {}) {
|
|
|
2777
2780
|
let I = A.filters[H];
|
|
2778
2781
|
if (!F(I)) {
|
|
2779
2782
|
if (Ge(I)) {
|
|
2780
|
-
const N =
|
|
2783
|
+
const N = hr(I);
|
|
2781
2784
|
if (!se(N))
|
|
2782
2785
|
I = N;
|
|
2783
2786
|
else {
|
|
2784
|
-
const K =
|
|
2787
|
+
const K = pr(I);
|
|
2785
2788
|
se(K) || (I = K);
|
|
2786
2789
|
}
|
|
2787
2790
|
}
|
|
@@ -3013,7 +3016,7 @@ const dc = (e) => va(e) && Object.hasOwn(e, "totalCount"), fc = (e) => va(e) &&
|
|
|
3013
3016
|
} catch (g) {
|
|
3014
3017
|
if (g instanceof DOMException && g.name === "AbortError")
|
|
3015
3018
|
return [];
|
|
3016
|
-
throw Jo(g) ? g : ha(g) ? new On(g, g.config?.url) : pa(g) ? new _n(g, t, a, g) : ya(g) ? new Ln(g, t, a, g) : ga(g) ? new Pn(g, g) :
|
|
3019
|
+
throw Jo(g) ? g : ha(g) ? new On(g, g.config?.url) : pa(g) ? new _n(g, t, a, g) : ya(g) ? new Ln(g, t, a, g) : ga(g) ? new Pn(g, g) : Sr(g) ? new Qo(g) : vn.isAxiosError(g) ? (s || console.error("Axios error: " + l, ...g.cause ? [g.cause] : []), new el(g)) : (s || console.error("AnzuFatalError: ", g), new Ft(g));
|
|
3017
3020
|
} finally {
|
|
3018
3021
|
i = null;
|
|
3019
3022
|
}
|
|
@@ -3065,7 +3068,7 @@ const Iv = (e, n = {}, t, a = {}, l, o, r = {}) => new Promise((s, i) => {
|
|
|
3065
3068
|
"anzu:FilterInnerConfigKey"
|
|
3066
3069
|
), Lt = /* @__PURE__ */ Symbol.for(
|
|
3067
3070
|
"anzu:FilterSubmitResetCounterKey"
|
|
3068
|
-
), Dt = /* @__PURE__ */ Symbol.for("anzu:FilterSelectedKey"),
|
|
3071
|
+
), Dt = /* @__PURE__ */ Symbol.for("anzu:FilterSelectedKey"), Mr = /* @__PURE__ */ Symbol.for(
|
|
3069
3072
|
"anzu:DatatablePaginationKey"
|
|
3070
3073
|
), pc = /* @__PURE__ */ Symbol.for(
|
|
3071
3074
|
"anzu:SubjectSelectCloseSidebarKey"
|
|
@@ -3111,7 +3114,7 @@ const Iv = (e, n = {}, t, a = {}, l, o, r = {}) => new Promise((s, i) => {
|
|
|
3111
3114
|
{ title: i.value.title, value: i.value.value }
|
|
3112
3115
|
]);
|
|
3113
3116
|
};
|
|
3114
|
-
return (f, m) => (_(), te(
|
|
3117
|
+
return (f, m) => (_(), te(ir, {
|
|
3115
3118
|
modelValue: i.value,
|
|
3116
3119
|
"onUpdate:modelValue": m[0] || (m[0] = (g) => i.value = g),
|
|
3117
3120
|
"data-cy": e.dataCy,
|
|
@@ -3327,7 +3330,7 @@ const Iv = (e, n = {}, t, a = {}, l, o, r = {}) => new Promise((s, i) => {
|
|
|
3327
3330
|
async (X, fe) => {
|
|
3328
3331
|
if (X === fe || yt(X)) return;
|
|
3329
3332
|
const z = X;
|
|
3330
|
-
if (I.value && (I.value = !1, await ne()),
|
|
3333
|
+
if (I.value && (I.value = !1, await ne()), mr(z)) {
|
|
3331
3334
|
O(z), F(fe) || (g.value++, await w("", g.value));
|
|
3332
3335
|
return;
|
|
3333
3336
|
}
|
|
@@ -3775,7 +3778,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3775
3778
|
return (V, O) => {
|
|
3776
3779
|
const b = Dn("ABtnTertiary"), h = Dn("ABtnPrimary");
|
|
3777
3780
|
return _(), de(We, null, [
|
|
3778
|
-
E.value ? (_(), te(
|
|
3781
|
+
E.value ? (_(), te(Rs, {
|
|
3779
3782
|
key: 0,
|
|
3780
3783
|
label: g.value,
|
|
3781
3784
|
"model-value": L(Kn)(y.value.from) + " - " + L(Kn)(y.value.until),
|
|
@@ -3788,7 +3791,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3788
3791
|
class: "cursor-pointer",
|
|
3789
3792
|
"onClick:clear": De(A, ["stop"]),
|
|
3790
3793
|
onClick: O[0] || (O[0] = De((v) => N(), ["stop"]))
|
|
3791
|
-
}, null, 8, ["label", "model-value"])) : (_(), te(
|
|
3794
|
+
}, null, 8, ["label", "model-value"])) : (_(), te(ir, {
|
|
3792
3795
|
key: 1,
|
|
3793
3796
|
modelValue: d.value,
|
|
3794
3797
|
"onUpdate:modelValue": O[1] || (O[1] = (v) => d.value = v),
|
|
@@ -3831,7 +3834,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3831
3834
|
default: M(() => [
|
|
3832
3835
|
x(un, null, {
|
|
3833
3836
|
default: M(() => [
|
|
3834
|
-
x(
|
|
3837
|
+
x(Yl, {
|
|
3835
3838
|
modelValue: y.value.from,
|
|
3836
3839
|
"onUpdate:modelValue": O[2] || (O[2] = (v) => y.value.from = v),
|
|
3837
3840
|
v: L(p).dialogData.from,
|
|
@@ -3843,7 +3846,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3843
3846
|
}),
|
|
3844
3847
|
x(un, null, {
|
|
3845
3848
|
default: M(() => [
|
|
3846
|
-
x(
|
|
3849
|
+
x(Yl, {
|
|
3847
3850
|
modelValue: y.value.until,
|
|
3848
3851
|
"onUpdate:modelValue": O[3] || (O[3] = (v) => y.value.until = v),
|
|
3849
3852
|
v: L(p).dialogData.until,
|
|
@@ -3889,7 +3892,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3889
3892
|
], 64);
|
|
3890
3893
|
};
|
|
3891
3894
|
}
|
|
3892
|
-
}), Ov = /* @__PURE__ */ Go(Sc, [["__scopeId", "data-v-845cd41b"]]),
|
|
3895
|
+
}), Ov = /* @__PURE__ */ Go(Sc, [["__scopeId", "data-v-845cd41b"]]), Ir = (e, n = "item") => n + "." + e, jl = /* @__PURE__ */ Re({
|
|
3893
3896
|
__name: "AFilterEmpty",
|
|
3894
3897
|
props: {
|
|
3895
3898
|
name: {}
|
|
@@ -3925,7 +3928,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3925
3928
|
{ title: Kn(i.value), value: i.value }
|
|
3926
3929
|
]);
|
|
3927
3930
|
};
|
|
3928
|
-
return (p, f) => (_(), te(
|
|
3931
|
+
return (p, f) => (_(), te(Tr, Xe({
|
|
3929
3932
|
modelValue: i.value,
|
|
3930
3933
|
"onUpdate:modelValue": f[0] || (f[0] = (m) => i.value = m),
|
|
3931
3934
|
"data-cy": e.dataCy,
|
|
@@ -3991,7 +3994,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3991
3994
|
"onClick:clear": De(E, ["stop"])
|
|
3992
3995
|
}, null, 8, ["modelValue", "label", "placeholder", "clearable", "data-cy"]));
|
|
3993
3996
|
}
|
|
3994
|
-
}),
|
|
3997
|
+
}), $r = /* @__PURE__ */ Re({
|
|
3995
3998
|
__name: "FilterDetailItem",
|
|
3996
3999
|
props: {
|
|
3997
4000
|
name: {}
|
|
@@ -4002,7 +4005,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
4002
4005
|
F(t.fields[n.name]))
|
|
4003
4006
|
throw new Error("Incorrect provide/inject config.");
|
|
4004
4007
|
const a = R(() => t.fields[n.name]), l = R(() => {
|
|
4005
|
-
if (a.value.render.skip) return
|
|
4008
|
+
if (a.value.render.skip) return jl;
|
|
4006
4009
|
switch (a.value.type) {
|
|
4007
4010
|
case "string":
|
|
4008
4011
|
return yc;
|
|
@@ -4013,13 +4016,13 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
4013
4016
|
case "integer":
|
|
4014
4017
|
return Dc;
|
|
4015
4018
|
default:
|
|
4016
|
-
return
|
|
4019
|
+
return jl;
|
|
4017
4020
|
}
|
|
4018
4021
|
});
|
|
4019
|
-
return (o, r) => (_(), te(
|
|
4022
|
+
return (o, r) => (_(), te(lr(l.value), { name: e.name }, null, 8, ["name"]));
|
|
4020
4023
|
}
|
|
4021
4024
|
});
|
|
4022
|
-
function
|
|
4025
|
+
function ql(e, n = "userAdminConfig") {
|
|
4023
4026
|
const t = [
|
|
4024
4027
|
{ name: "user", default: null },
|
|
4025
4028
|
{ name: "configType", default: null },
|
|
@@ -4042,7 +4045,7 @@ const ja = {
|
|
|
4042
4045
|
}, Ec = ja.PinnedWidgets, dn = {
|
|
4043
4046
|
Desktop: "desktop",
|
|
4044
4047
|
Mobile: "mobile"
|
|
4045
|
-
}, xc = dn.Desktop, Tc = 3, Vo = 8,
|
|
4048
|
+
}, xc = dn.Desktop, Tc = 3, Vo = 8, Fr = Zs("filterBookmarkStore", () => {
|
|
4046
4049
|
const e = U(/* @__PURE__ */ new Map()), n = U(!1);
|
|
4047
4050
|
function t(s, i) {
|
|
4048
4051
|
return `userAdminConfig/${i}/${s}/`;
|
|
@@ -4066,7 +4069,7 @@ const ja = {
|
|
|
4066
4069
|
}), { start: y, end: E } = Tn(
|
|
4067
4070
|
s.systemResource,
|
|
4068
4071
|
"_"
|
|
4069
|
-
), { filterConfig: p, filterData: f } =
|
|
4072
|
+
), { filterConfig: p, filterData: f } = ql(y, E);
|
|
4070
4073
|
f.configType = ja.FilterBookmark, f.layoutType = s.layoutType, f.systemResource = s.systemResource, f.user = s.user;
|
|
4071
4074
|
let m = [];
|
|
4072
4075
|
try {
|
|
@@ -4084,7 +4087,7 @@ const ja = {
|
|
|
4084
4087
|
}), { start: c, end: d } = Tn(
|
|
4085
4088
|
s.systemResource,
|
|
4086
4089
|
"_"
|
|
4087
|
-
), { filterConfig: C, filterData: y } =
|
|
4090
|
+
), { filterConfig: C, filterData: y } = ql(c, d);
|
|
4088
4091
|
y.configType = ja.FilterBookmark, y.layoutType = s.layoutType, y.systemResource = s.systemResource, y.user = s.user;
|
|
4089
4092
|
let E = 1 / 0;
|
|
4090
4093
|
try {
|
|
@@ -4135,13 +4138,13 @@ const ja = {
|
|
|
4135
4138
|
throw new Rn(T.status);
|
|
4136
4139
|
if (T.data)
|
|
4137
4140
|
return T.data;
|
|
4138
|
-
if (T.status === Bn || T.status ===
|
|
4141
|
+
if (T.status === Bn || T.status === wr)
|
|
4139
4142
|
return;
|
|
4140
4143
|
throw new Ft();
|
|
4141
4144
|
} catch (f) {
|
|
4142
4145
|
if (f instanceof DOMException && f.name === "AbortError")
|
|
4143
4146
|
return [];
|
|
4144
|
-
throw Jo(f) ? f : ha(f) ? new On(f, f.config?.url) : pa(f) ? new _n(f, a, l, f) : ya(f) ? new Ln(f, a, l, f) : ga(f) ? new Pn(f, f) :
|
|
4147
|
+
throw Jo(f) ? f : ha(f) ? new On(f, f.config?.url) : pa(f) ? new _n(f, a, l, f) : ya(f) ? new Ln(f, a, l, f) : ga(f) ? new Pn(f, f) : Sr(f) ? new Qo(f) : vn.isAxiosError(f) ? (i || console.error("Axios error: " + o, ...f.cause ? [f.cause] : []), new el(f)) : (i || console.error("AnzuFatalError: ", f), new Ft(f));
|
|
4145
4148
|
} finally {
|
|
4146
4149
|
u = null;
|
|
4147
4150
|
}
|
|
@@ -4150,10 +4153,10 @@ const ja = {
|
|
|
4150
4153
|
u && u.abort();
|
|
4151
4154
|
}
|
|
4152
4155
|
};
|
|
4153
|
-
},
|
|
4154
|
-
function
|
|
4156
|
+
}, Kl = "/adm/v1/user-admin-config", Ac = "userAdminConfig";
|
|
4157
|
+
function Br(e, n, t = Ac, a = Kl) {
|
|
4155
4158
|
return {
|
|
4156
|
-
useFetchUserAdminConfigList: () => vc({ client: e, system: n, entity: t, urlTemplate:
|
|
4159
|
+
useFetchUserAdminConfigList: () => vc({ client: e, system: n, entity: t, urlTemplate: Kl }),
|
|
4157
4160
|
fetchUserAdminConfig: (c) => {
|
|
4158
4161
|
const { executeRequest: d } = Yn({
|
|
4159
4162
|
client: e,
|
|
@@ -4199,7 +4202,7 @@ function Fr(e, n, t = Ac, a = ql) {
|
|
|
4199
4202
|
}
|
|
4200
4203
|
};
|
|
4201
4204
|
}
|
|
4202
|
-
const Mc = { key: 0 }, Ic = 32,
|
|
4205
|
+
const Mc = { key: 0 }, Ic = 32, Or = /* @__PURE__ */ Re({
|
|
4203
4206
|
__name: "FilterBookmarks",
|
|
4204
4207
|
props: /* @__PURE__ */ tt({
|
|
4205
4208
|
client: {},
|
|
@@ -4215,10 +4218,10 @@ const Mc = { key: 0 }, Ic = 32, Br = /* @__PURE__ */ Re({
|
|
|
4215
4218
|
}),
|
|
4216
4219
|
emits: /* @__PURE__ */ tt(["submit"], ["update:datatableHiddenColumns"]),
|
|
4217
4220
|
setup(e, { emit: n }) {
|
|
4218
|
-
const t = e, a = n, l = ct(e, "datatableHiddenColumns"), o = me(ht), r = me(Ct), s = me(
|
|
4221
|
+
const t = e, a = n, l = ct(e, "datatableHiddenColumns"), o = me(ht), r = me(Ct), s = me(Mr), i = me(Dt);
|
|
4219
4222
|
if (F(s) || F(o) || F(r) || F(i))
|
|
4220
4223
|
throw new Error("Incorrect provide/inject config.");
|
|
4221
|
-
const u = U(!1), c = zt("toolbar"), d = U(300), C = U(1e3), y =
|
|
4224
|
+
const u = U(!1), c = zt("toolbar"), d = U(300), C = U(1e3), y = Fr(), { useFetchUserAdminConfigList: E } = Br(t.client, t.system), p = t.system + "_" + t.subject, f = async (k = !1) => {
|
|
4222
4225
|
u.value = !0, await y.getBookmarks(
|
|
4223
4226
|
{
|
|
4224
4227
|
user: t.userId,
|
|
@@ -4228,7 +4231,7 @@ const Mc = { key: 0 }, Ic = 32, Br = /* @__PURE__ */ Re({
|
|
|
4228
4231
|
E,
|
|
4229
4232
|
k
|
|
4230
4233
|
), u.value = !1;
|
|
4231
|
-
}, { deserializeFilters: m } =
|
|
4234
|
+
}, { deserializeFilters: m } = Ar(r, o), g = (k) => {
|
|
4232
4235
|
const $ = k.data;
|
|
4233
4236
|
Ue($.datatableHiddenColumns) && Ue(l.value) && (l.value = $.datatableHiddenColumns), Ue($.sortBy) && (s.value = {
|
|
4234
4237
|
...s.value,
|
|
@@ -4244,11 +4247,11 @@ const Mc = { key: 0 }, Ic = 32, Br = /* @__PURE__ */ Re({
|
|
|
4244
4247
|
continue;
|
|
4245
4248
|
}
|
|
4246
4249
|
if (Ge(K)) {
|
|
4247
|
-
const V =
|
|
4250
|
+
const V = hr(K);
|
|
4248
4251
|
if (!se(V))
|
|
4249
4252
|
K = V;
|
|
4250
4253
|
else {
|
|
4251
|
-
const O =
|
|
4254
|
+
const O = pr(K);
|
|
4252
4255
|
se(O) || (K = O);
|
|
4253
4256
|
}
|
|
4254
4257
|
}
|
|
@@ -4269,9 +4272,9 @@ const Mc = { key: 0 }, Ic = 32, Br = /* @__PURE__ */ Re({
|
|
|
4269
4272
|
}
|
|
4270
4273
|
C.value = I;
|
|
4271
4274
|
};
|
|
4272
|
-
|
|
4275
|
+
Ms(c, (k) => {
|
|
4273
4276
|
k[0] && (d.value = k[0].contentRect.width);
|
|
4274
|
-
}),
|
|
4277
|
+
}), Is(
|
|
4275
4278
|
d,
|
|
4276
4279
|
(k, $) => {
|
|
4277
4280
|
k !== $ && T(k);
|
|
@@ -4373,7 +4376,7 @@ function qt() {
|
|
|
4373
4376
|
return e;
|
|
4374
4377
|
}, qt.apply(null, arguments);
|
|
4375
4378
|
}
|
|
4376
|
-
function
|
|
4379
|
+
function Wl(e, n) {
|
|
4377
4380
|
var t = Object.keys(e);
|
|
4378
4381
|
if (Object.getOwnPropertySymbols) {
|
|
4379
4382
|
var a = Object.getOwnPropertySymbols(e);
|
|
@@ -4386,9 +4389,9 @@ function Kl(e, n) {
|
|
|
4386
4389
|
function Pt(e) {
|
|
4387
4390
|
for (var n = 1; n < arguments.length; n++) {
|
|
4388
4391
|
var t = arguments[n] != null ? arguments[n] : {};
|
|
4389
|
-
n % 2 ?
|
|
4392
|
+
n % 2 ? Wl(Object(t), !0).forEach(function(a) {
|
|
4390
4393
|
$c(e, a, t[a]);
|
|
4391
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
4394
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Wl(Object(t)).forEach(function(a) {
|
|
4392
4395
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(t, a));
|
|
4393
4396
|
});
|
|
4394
4397
|
}
|
|
@@ -4439,15 +4442,15 @@ function Ht(e) {
|
|
|
4439
4442
|
if (typeof window < "u" && window.navigator)
|
|
4440
4443
|
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
4441
4444
|
}
|
|
4442
|
-
var Wt = Ht(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ca = Ht(/Edge/i),
|
|
4445
|
+
var Wt = Ht(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ca = Ht(/Edge/i), Gl = Ht(/firefox/i), Jn = Ht(/safari/i) && !Ht(/chrome/i) && !Ht(/android/i), al = Ht(/iP(ad|od|hone)/i), _r = Ht(/chrome/i) && Ht(/android/i), Rr = {
|
|
4443
4446
|
capture: !1,
|
|
4444
4447
|
passive: !1
|
|
4445
4448
|
};
|
|
4446
4449
|
function Ve(e, n, t) {
|
|
4447
|
-
e.addEventListener(n, t, !Wt &&
|
|
4450
|
+
e.addEventListener(n, t, !Wt && Rr);
|
|
4448
4451
|
}
|
|
4449
4452
|
function Ne(e, n, t) {
|
|
4450
|
-
e.removeEventListener(n, t, !Wt &&
|
|
4453
|
+
e.removeEventListener(n, t, !Wt && Rr);
|
|
4451
4454
|
}
|
|
4452
4455
|
function qa(e, n) {
|
|
4453
4456
|
if (n) {
|
|
@@ -4465,7 +4468,7 @@ function qa(e, n) {
|
|
|
4465
4468
|
return !1;
|
|
4466
4469
|
}
|
|
4467
4470
|
}
|
|
4468
|
-
function
|
|
4471
|
+
function Pr(e) {
|
|
4469
4472
|
return e.host && e !== document && e.host.nodeType && e.host !== e ? e.host : e.parentNode;
|
|
4470
4473
|
}
|
|
4471
4474
|
function It(e, n, t, a) {
|
|
@@ -4475,18 +4478,18 @@ function It(e, n, t, a) {
|
|
|
4475
4478
|
if (n != null && (n[0] === ">" ? e.parentNode === t && qa(e, n) : qa(e, n)) || a && e === t)
|
|
4476
4479
|
return e;
|
|
4477
4480
|
if (e === t) break;
|
|
4478
|
-
} while (e =
|
|
4481
|
+
} while (e = Pr(e));
|
|
4479
4482
|
}
|
|
4480
4483
|
return null;
|
|
4481
4484
|
}
|
|
4482
|
-
var
|
|
4485
|
+
var Xl = /\s+/g;
|
|
4483
4486
|
function pt(e, n, t) {
|
|
4484
4487
|
if (e && n)
|
|
4485
4488
|
if (e.classList)
|
|
4486
4489
|
e.classList[t ? "add" : "remove"](n);
|
|
4487
4490
|
else {
|
|
4488
|
-
var a = (" " + e.className + " ").replace(
|
|
4489
|
-
e.className = (a + (t ? " " + n : "")).replace(
|
|
4491
|
+
var a = (" " + e.className + " ").replace(Xl, " ").replace(" " + n + " ", " ");
|
|
4492
|
+
e.className = (a + (t ? " " + n : "")).replace(Xl, " ");
|
|
4490
4493
|
}
|
|
4491
4494
|
}
|
|
4492
4495
|
function be(e, n, t) {
|
|
@@ -4509,7 +4512,7 @@ function kn(e, n) {
|
|
|
4509
4512
|
var l = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
4510
4513
|
return l && new l(t);
|
|
4511
4514
|
}
|
|
4512
|
-
function
|
|
4515
|
+
function Lr(e, n, t) {
|
|
4513
4516
|
if (e) {
|
|
4514
4517
|
var a = e.getElementsByTagName(n), l = 0, o = a.length;
|
|
4515
4518
|
if (t)
|
|
@@ -4548,7 +4551,7 @@ function Qe(e, n, t, a, l) {
|
|
|
4548
4551
|
};
|
|
4549
4552
|
}
|
|
4550
4553
|
}
|
|
4551
|
-
function
|
|
4554
|
+
function Zl(e, n, t) {
|
|
4552
4555
|
for (var a = Qt(e, !0), l = Qe(e)[n]; a; ) {
|
|
4553
4556
|
var o = Qe(a)[t], r = void 0;
|
|
4554
4557
|
if (r = l >= o, !r) return a;
|
|
@@ -4581,7 +4584,7 @@ function kt(e, n) {
|
|
|
4581
4584
|
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== we.clone && (!n || qa(e, n)) && t++;
|
|
4582
4585
|
return t;
|
|
4583
4586
|
}
|
|
4584
|
-
function
|
|
4587
|
+
function Jl(e) {
|
|
4585
4588
|
var n = 0, t = 0, a = Rt();
|
|
4586
4589
|
if (e)
|
|
4587
4590
|
do {
|
|
@@ -4623,7 +4626,7 @@ function Ao(e, n) {
|
|
|
4623
4626
|
return Math.round(e.top) === Math.round(n.top) && Math.round(e.left) === Math.round(n.left) && Math.round(e.height) === Math.round(n.height) && Math.round(e.width) === Math.round(n.width);
|
|
4624
4627
|
}
|
|
4625
4628
|
var Qn;
|
|
4626
|
-
function
|
|
4629
|
+
function Nr(e, n) {
|
|
4627
4630
|
return function() {
|
|
4628
4631
|
if (!Qn) {
|
|
4629
4632
|
var t = arguments, a = this;
|
|
@@ -4636,14 +4639,14 @@ function Lr(e, n) {
|
|
|
4636
4639
|
function Nc() {
|
|
4637
4640
|
clearTimeout(Qn), Qn = void 0;
|
|
4638
4641
|
}
|
|
4639
|
-
function
|
|
4642
|
+
function Vr(e, n, t) {
|
|
4640
4643
|
e.scrollLeft += n, e.scrollTop += t;
|
|
4641
4644
|
}
|
|
4642
|
-
function
|
|
4645
|
+
function Ur(e) {
|
|
4643
4646
|
var n = window.Polymer, t = window.jQuery || window.Zepto;
|
|
4644
4647
|
return n && n.dom ? n.dom(e).cloneNode(!0) : t ? t(e).clone(!0)[0] : e.cloneNode(!0);
|
|
4645
4648
|
}
|
|
4646
|
-
function
|
|
4649
|
+
function Yr(e, n, t) {
|
|
4647
4650
|
var a = {};
|
|
4648
4651
|
return Array.from(e.children).forEach(function(l) {
|
|
4649
4652
|
var o, r, s, i;
|
|
@@ -4803,8 +4806,8 @@ var Hc = ["evt"], ft = function(n, t) {
|
|
|
4803
4806
|
oldDraggableIndex: ea,
|
|
4804
4807
|
newIndex: gt,
|
|
4805
4808
|
newDraggableIndex: Zt,
|
|
4806
|
-
hideGhostForTarget:
|
|
4807
|
-
unhideGhostForTarget:
|
|
4809
|
+
hideGhostForTarget: qr,
|
|
4810
|
+
unhideGhostForTarget: Kr,
|
|
4808
4811
|
cloneNowHidden: function() {
|
|
4809
4812
|
Jt = !0;
|
|
4810
4813
|
},
|
|
@@ -4832,14 +4835,14 @@ function ut(e) {
|
|
|
4832
4835
|
newDraggableIndex: Zt
|
|
4833
4836
|
}, e));
|
|
4834
4837
|
}
|
|
4835
|
-
var ae, Ke, Te, je, sn, La, qe, Jt, Sn, gt, ea, Zt, $a, lt, wn = !1, Ka = !1, Wa = [], on, Mt, Io, $o,
|
|
4838
|
+
var ae, Ke, Te, je, sn, La, qe, Jt, Sn, gt, ea, Zt, $a, lt, wn = !1, Ka = !1, Wa = [], on, Mt, Io, $o, Ql, er, Wn, bn, ta, na = !1, Fa = !1, Na, st, Fo = [], Yo = !1, Ga = [], uo = typeof document < "u", Ba = al, tr = Ca || Wt ? "cssFloat" : "float", jc = uo && !_r && !al && "draggable" in document.createElement("div"), zr = (function() {
|
|
4836
4839
|
if (uo) {
|
|
4837
4840
|
if (Wt)
|
|
4838
4841
|
return !1;
|
|
4839
4842
|
var e = document.createElement("x");
|
|
4840
4843
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
4841
4844
|
}
|
|
4842
|
-
})(),
|
|
4845
|
+
})(), Hr = function(n, t) {
|
|
4843
4846
|
var a = be(n), l = parseInt(a.width) - parseInt(a.paddingLeft) - parseInt(a.paddingRight) - parseInt(a.borderLeftWidth) - parseInt(a.borderRightWidth), o = Mn(n, 0, t), r = Mn(n, 1, t), s = o && be(o), i = r && be(r), u = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + Qe(o).width, c = i && parseInt(i.marginLeft) + parseInt(i.marginRight) + Qe(r).width;
|
|
4844
4847
|
if (a.display === "flex")
|
|
4845
4848
|
return a.flexDirection === "column" || a.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
@@ -4849,7 +4852,7 @@ var ae, Ke, Te, je, sn, La, qe, Jt, Sn, gt, ea, Zt, $a, lt, wn = !1, Ka = !1, Wa
|
|
|
4849
4852
|
var d = s.float === "left" ? "left" : "right";
|
|
4850
4853
|
return r && (i.clear === "both" || i.clear === d) ? "vertical" : "horizontal";
|
|
4851
4854
|
}
|
|
4852
|
-
return o && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || u >= l && a[
|
|
4855
|
+
return o && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || u >= l && a[tr] === "none" || r && a[tr] === "none" && u + c > l) ? "vertical" : "horizontal";
|
|
4853
4856
|
}, qc = function(n, t, a) {
|
|
4854
4857
|
var l = a ? n.left : n.top, o = a ? n.right : n.bottom, r = a ? n.width : n.height, s = a ? t.left : t.top, i = a ? t.right : t.bottom, u = a ? t.width : t.height;
|
|
4855
4858
|
return l === s || o === i || l + r / 2 === s + u / 2;
|
|
@@ -4863,7 +4866,7 @@ var ae, Ke, Te, je, sn, La, qe, Jt, Sn, gt, ea, Zt, $a, lt, wn = !1, Ka = !1, Wa
|
|
|
4863
4866
|
return a = l;
|
|
4864
4867
|
}
|
|
4865
4868
|
}), a;
|
|
4866
|
-
},
|
|
4869
|
+
}, jr = function(n) {
|
|
4867
4870
|
function t(o, r) {
|
|
4868
4871
|
return function(s, i, u, c) {
|
|
4869
4872
|
var d = s.options.group.name && i.options.group.name && s.options.group.name === i.options.group.name;
|
|
@@ -4883,12 +4886,12 @@ var ae, Ke, Te, je, sn, La, qe, Jt, Sn, gt, ea, Zt, $a, lt, wn = !1, Ka = !1, Wa
|
|
|
4883
4886
|
(!l || Uo(l) != "object") && (l = {
|
|
4884
4887
|
name: l
|
|
4885
4888
|
}), a.name = l.name, a.checkPull = t(l.pull, !0), a.checkPut = t(l.put), a.revertClone = l.revertClone, n.group = a;
|
|
4886
|
-
}, jr = function() {
|
|
4887
|
-
!Yr && Te && be(Te, "display", "none");
|
|
4888
4889
|
}, qr = function() {
|
|
4889
|
-
!
|
|
4890
|
+
!zr && Te && be(Te, "display", "none");
|
|
4891
|
+
}, Kr = function() {
|
|
4892
|
+
!zr && Te && be(Te, "display", "");
|
|
4890
4893
|
};
|
|
4891
|
-
uo && !
|
|
4894
|
+
uo && !_r && document.addEventListener("click", function(e) {
|
|
4892
4895
|
if (Ka)
|
|
4893
4896
|
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Ka = !1, !1;
|
|
4894
4897
|
}, !0);
|
|
@@ -4925,7 +4928,7 @@ function we(e, n) {
|
|
|
4925
4928
|
// will be set to same as swapThreshold if default
|
|
4926
4929
|
removeCloneOnHide: !0,
|
|
4927
4930
|
direction: function() {
|
|
4928
|
-
return
|
|
4931
|
+
return Hr(e, this.options);
|
|
4929
4932
|
},
|
|
4930
4933
|
ghostClass: "sortable-ghost",
|
|
4931
4934
|
chosenClass: "sortable-chosen",
|
|
@@ -4959,7 +4962,7 @@ function we(e, n) {
|
|
|
4959
4962
|
Sa.initializePlugins(this, e, t);
|
|
4960
4963
|
for (var a in t)
|
|
4961
4964
|
!(a in n) && (n[a] = t[a]);
|
|
4962
|
-
|
|
4965
|
+
jr(n);
|
|
4963
4966
|
for (var l in this)
|
|
4964
4967
|
l.charAt(0) === "_" && typeof this[l] == "function" && (this[l] = this[l].bind(this));
|
|
4965
4968
|
this.nativeDraggable = n.forceFallback ? !1 : jc, this.nativeDraggable && (this.options.touchStartThreshold = 1), n.supportPointer ? Ve(e, "pointerdown", this._onTapStart) : (Ve(e, "mousedown", this._onTapStart), Ve(e, "touchstart", this._onTapStart)), this.nativeDraggable && (Ve(e, "dragover", this), Ve(e, "dragenter", this)), Wa.push(this.el), n.store && n.store.get && this.sort(n.store.get(this) || []), qt(this, Vc());
|
|
@@ -5019,21 +5022,21 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5019
5022
|
target: ae,
|
|
5020
5023
|
clientX: (t || n).clientX,
|
|
5021
5024
|
clientY: (t || n).clientY
|
|
5022
|
-
},
|
|
5025
|
+
}, Ql = on.clientX - u.left, er = on.clientY - u.top, this._lastX = (t || n).clientX, this._lastY = (t || n).clientY, ae.style["will-change"] = "all", i = function() {
|
|
5023
5026
|
if (ft("delayEnded", l, {
|
|
5024
5027
|
evt: n
|
|
5025
5028
|
}), we.eventCanceled) {
|
|
5026
5029
|
l._onDrop();
|
|
5027
5030
|
return;
|
|
5028
5031
|
}
|
|
5029
|
-
l._disableDelayedDragEvents(), !
|
|
5032
|
+
l._disableDelayedDragEvents(), !Gl && l.nativeDraggable && (ae.draggable = !0), l._triggerDragStart(n, t), ut({
|
|
5030
5033
|
sortable: l,
|
|
5031
5034
|
name: "choose",
|
|
5032
5035
|
originalEvent: n
|
|
5033
5036
|
}), pt(ae, r.chosenClass, !0);
|
|
5034
5037
|
}, r.ignore.split(",").forEach(function(c) {
|
|
5035
|
-
|
|
5036
|
-
}), Ve(s, "dragover", ln), Ve(s, "mousemove", ln), Ve(s, "touchmove", ln), r.supportPointer ? (Ve(s, "pointerup", l._onDrop), !this.nativeDraggable && Ve(s, "pointercancel", l._onDrop)) : (Ve(s, "mouseup", l._onDrop), Ve(s, "touchend", l._onDrop), Ve(s, "touchcancel", l._onDrop)),
|
|
5038
|
+
Lr(ae, c.trim(), Bo);
|
|
5039
|
+
}), Ve(s, "dragover", ln), Ve(s, "mousemove", ln), Ve(s, "touchmove", ln), r.supportPointer ? (Ve(s, "pointerup", l._onDrop), !this.nativeDraggable && Ve(s, "pointercancel", l._onDrop)) : (Ve(s, "mouseup", l._onDrop), Ve(s, "touchend", l._onDrop), Ve(s, "touchcancel", l._onDrop)), Gl && this.nativeDraggable && (this.options.touchStartThreshold = 4, ae.draggable = !0), ft("delayStart", this, {
|
|
5037
5040
|
evt: n
|
|
5038
5041
|
}), r.delay && (!r.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Ca || Wt))) {
|
|
5039
5042
|
if (we.eventCanceled) {
|
|
@@ -5081,7 +5084,7 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5081
5084
|
},
|
|
5082
5085
|
_emulateDragOver: function() {
|
|
5083
5086
|
if (Mt) {
|
|
5084
|
-
this._lastX = Mt.clientX, this._lastY = Mt.clientY,
|
|
5087
|
+
this._lastX = Mt.clientX, this._lastY = Mt.clientY, qr();
|
|
5085
5088
|
for (var n = document.elementFromPoint(Mt.clientX, Mt.clientY), t = n; n && n.shadowRoot && (n = n.shadowRoot.elementFromPoint(Mt.clientX, Mt.clientY), n !== t); )
|
|
5086
5089
|
t = n;
|
|
5087
5090
|
if (ae.parentNode[vt]._isOutsideThisEl(n), t)
|
|
@@ -5097,13 +5100,13 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5097
5100
|
break;
|
|
5098
5101
|
}
|
|
5099
5102
|
n = t;
|
|
5100
|
-
} while (t =
|
|
5101
|
-
|
|
5103
|
+
} while (t = Pr(t));
|
|
5104
|
+
Kr();
|
|
5102
5105
|
}
|
|
5103
5106
|
},
|
|
5104
5107
|
_onTouchMove: function(n) {
|
|
5105
5108
|
if (on) {
|
|
5106
|
-
var t = this.options, a = t.fallbackTolerance, l = t.fallbackOffset, o = n.touches ? n.touches[0] : n, r = Te && kn(Te, !0), s = Te && r && r.a, i = Te && r && r.d, u = Ba && st &&
|
|
5109
|
+
var t = this.options, a = t.fallbackTolerance, l = t.fallbackOffset, o = n.touches ? n.touches[0] : n, r = Te && kn(Te, !0), s = Te && r && r.a, i = Te && r && r.d, u = Ba && st && Jl(st), c = (o.clientX - on.clientX + l.x) / (s || 1) + (u ? u[0] - Fo[0] : 0) / (s || 1), d = (o.clientY - on.clientY + l.y) / (i || 1) + (u ? u[1] - Fo[1] : 0) / (i || 1);
|
|
5107
5110
|
if (!we.active && !wn) {
|
|
5108
5111
|
if (a && Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) < a)
|
|
5109
5112
|
return;
|
|
@@ -5130,9 +5133,9 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5130
5133
|
if (Ba) {
|
|
5131
5134
|
for (st = n; be(st, "position") === "static" && be(st, "transform") === "none" && st !== document; )
|
|
5132
5135
|
st = st.parentNode;
|
|
5133
|
-
st !== document.body && st !== document.documentElement ? (st === document && (st = Rt()), t.top += st.scrollTop, t.left += st.scrollLeft) : st = Rt(), Fo =
|
|
5136
|
+
st !== document.body && st !== document.documentElement ? (st === document && (st = Rt()), t.top += st.scrollTop, t.left += st.scrollLeft) : st = Rt(), Fo = Jl(st);
|
|
5134
5137
|
}
|
|
5135
|
-
Te = ae.cloneNode(!0), pt(Te, a.ghostClass, !1), pt(Te, a.fallbackClass, !0), pt(Te, a.dragClass, !0), be(Te, "transition", ""), be(Te, "transform", ""), be(Te, "box-sizing", "border-box"), be(Te, "margin", 0), be(Te, "top", t.top), be(Te, "left", t.left), be(Te, "width", t.width), be(Te, "height", t.height), be(Te, "opacity", "0.8"), be(Te, "position", Ba ? "absolute" : "fixed"), be(Te, "zIndex", "100000"), be(Te, "pointerEvents", "none"), we.ghost = Te, n.appendChild(Te), be(Te, "transform-origin",
|
|
5138
|
+
Te = ae.cloneNode(!0), pt(Te, a.ghostClass, !1), pt(Te, a.fallbackClass, !0), pt(Te, a.dragClass, !0), be(Te, "transition", ""), be(Te, "transform", ""), be(Te, "box-sizing", "border-box"), be(Te, "margin", 0), be(Te, "top", t.top), be(Te, "left", t.left), be(Te, "width", t.width), be(Te, "height", t.height), be(Te, "opacity", "0.8"), be(Te, "position", Ba ? "absolute" : "fixed"), be(Te, "zIndex", "100000"), be(Te, "pointerEvents", "none"), we.ghost = Te, n.appendChild(Te), be(Te, "transform-origin", Ql / parseInt(Te.style.width) * 100 + "% " + er / parseInt(Te.style.height) * 100 + "%");
|
|
5136
5139
|
}
|
|
5137
5140
|
},
|
|
5138
5141
|
_onDragStart: function(n, t) {
|
|
@@ -5143,7 +5146,7 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5143
5146
|
this._onDrop();
|
|
5144
5147
|
return;
|
|
5145
5148
|
}
|
|
5146
|
-
ft("setupClone", this), we.eventCanceled || (qe =
|
|
5149
|
+
ft("setupClone", this), we.eventCanceled || (qe = Ur(ae), qe.removeAttribute("id"), qe.draggable = !1, qe.style["will-change"] = "", this._hideClone(), pt(qe, this.options.chosenClass, !1), we.clone = qe), a.cloneId = Va(function() {
|
|
5147
5150
|
ft("clone", a), !we.eventCanceled && (a.options.removeCloneOnHide || je.insertBefore(qe, ae), a._hideClone(), ut({
|
|
5148
5151
|
sortable: a,
|
|
5149
5152
|
name: "clone"
|
|
@@ -5213,7 +5216,7 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5213
5216
|
return m(), t.insertBefore(ae, A), Ke = t, T(), g(!0);
|
|
5214
5217
|
} else if (a.parentNode === t) {
|
|
5215
5218
|
o = Qe(a);
|
|
5216
|
-
var k = 0, $, H = ae.parentNode !== t, I = !qc(ae.animated && ae.toRect || l, a.animated && a.toRect || o, y), N = y ? "top" : "left", K =
|
|
5219
|
+
var k = 0, $, H = ae.parentNode !== t, I = !qc(ae.animated && ae.toRect || l, a.animated && a.toRect || o, y), N = y ? "top" : "left", K = Zl(a, "top", "top") || Zl(ae, "top", "top"), V = K ? K.scrollTop : void 0;
|
|
5217
5220
|
bn !== a && ($ = o[N], na = !1, Fa = !I && s.invertSwap || H), k = Qc(n, a, o, y, I ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, Fa, bn === a);
|
|
5218
5221
|
var O;
|
|
5219
5222
|
if (k !== 0) {
|
|
@@ -5229,7 +5232,7 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5229
5232
|
v = k === 1;
|
|
5230
5233
|
var w = Oa(je, t, ae, l, a, o, n, v);
|
|
5231
5234
|
if (w !== !1)
|
|
5232
|
-
return (w === 1 || w === -1) && (v = w === 1), Yo = !0, setTimeout(Xc, 30), m(), v && !h ? t.appendChild(ae) : a.parentNode.insertBefore(ae, v ? h : a), K &&
|
|
5235
|
+
return (w === 1 || w === -1) && (v = w === 1), Yo = !0, setTimeout(Xc, 30), m(), v && !h ? t.appendChild(ae) : a.parentNode.insertBefore(ae, v ? h : a), K && Vr(K, 0, V - K.scrollTop), Ke = ae.parentNode, $ !== void 0 && !Fa && (Na = Math.abs($ - Qe(a)[N])), T(), g(!0);
|
|
5233
5236
|
}
|
|
5234
5237
|
if (t.contains(ae))
|
|
5235
5238
|
return g(!1);
|
|
@@ -5369,7 +5372,7 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5369
5372
|
if (t === void 0)
|
|
5370
5373
|
return a[n];
|
|
5371
5374
|
var l = Sa.modifyOption(this, n, t);
|
|
5372
|
-
typeof l < "u" ? a[n] = l : a[n] = t, n === "group" &&
|
|
5375
|
+
typeof l < "u" ? a[n] = l : a[n] = t, n === "group" && jr(a);
|
|
5373
5376
|
},
|
|
5374
5377
|
/**
|
|
5375
5378
|
* Destroy
|
|
@@ -5415,11 +5418,11 @@ function Xc() {
|
|
|
5415
5418
|
Yo = !1;
|
|
5416
5419
|
}
|
|
5417
5420
|
function Zc(e, n, t) {
|
|
5418
|
-
var a = Qe(Mn(t.el, 0, t.options, !0)), l =
|
|
5421
|
+
var a = Qe(Mn(t.el, 0, t.options, !0)), l = Yr(t.el, t.options, Te), o = 10;
|
|
5419
5422
|
return n ? e.clientX < l.left - o || e.clientY < a.top && e.clientX < a.right : e.clientY < l.top - o || e.clientY < a.bottom && e.clientX < a.left;
|
|
5420
5423
|
}
|
|
5421
5424
|
function Jc(e, n, t) {
|
|
5422
|
-
var a = Qe(ol(t.el, t.options.draggable)), l =
|
|
5425
|
+
var a = Qe(ol(t.el, t.options.draggable)), l = Yr(t.el, t.options, Te), o = 10;
|
|
5423
5426
|
return n ? e.clientX > l.right + o || e.clientY > a.bottom && e.clientX > a.left : e.clientY > l.bottom + o || e.clientX > a.right && e.clientY > a.top;
|
|
5424
5427
|
}
|
|
5425
5428
|
function Qc(e, n, t, a, l, o, r, s) {
|
|
@@ -5463,19 +5466,19 @@ we.utils = {
|
|
|
5463
5466
|
on: Ve,
|
|
5464
5467
|
off: Ne,
|
|
5465
5468
|
css: be,
|
|
5466
|
-
find:
|
|
5469
|
+
find: Lr,
|
|
5467
5470
|
is: function(n, t) {
|
|
5468
5471
|
return !!It(n, t, n, !1);
|
|
5469
5472
|
},
|
|
5470
5473
|
extend: Lc,
|
|
5471
|
-
throttle:
|
|
5474
|
+
throttle: Nr,
|
|
5472
5475
|
closest: It,
|
|
5473
5476
|
toggleClass: pt,
|
|
5474
|
-
clone:
|
|
5477
|
+
clone: Ur,
|
|
5475
5478
|
index: kt,
|
|
5476
5479
|
nextTick: Va,
|
|
5477
5480
|
cancelNextTick: zo,
|
|
5478
|
-
detectDirection:
|
|
5481
|
+
detectDirection: Hr,
|
|
5479
5482
|
getChild: Mn,
|
|
5480
5483
|
expando: vt
|
|
5481
5484
|
};
|
|
@@ -5518,7 +5521,7 @@ function ad() {
|
|
|
5518
5521
|
!this.options.dragOverBubble && !a.rootEl && this._handleAutoScroll(a);
|
|
5519
5522
|
},
|
|
5520
5523
|
drop: function() {
|
|
5521
|
-
this.sortable.nativeDraggable ? Ne(document, "dragover", this._handleAutoScroll) : (Ne(document, "pointermove", this._handleFallbackAutoScroll), Ne(document, "touchmove", this._handleFallbackAutoScroll), Ne(document, "mousemove", this._handleFallbackAutoScroll)),
|
|
5524
|
+
this.sortable.nativeDraggable ? Ne(document, "dragover", this._handleAutoScroll) : (Ne(document, "pointermove", this._handleFallbackAutoScroll), Ne(document, "touchmove", this._handleFallbackAutoScroll), Ne(document, "mousemove", this._handleFallbackAutoScroll)), nr(), Ua(), Nc();
|
|
5522
5525
|
},
|
|
5523
5526
|
nulling: function() {
|
|
5524
5527
|
Xa = Ho = Gn = jo = Xn = Oo = _o = null, Je.length = 0;
|
|
@@ -5531,7 +5534,7 @@ function ad() {
|
|
|
5531
5534
|
if (Xa = t, a || this.options.forceAutoScrollFallback || Ca || Wt || Jn) {
|
|
5532
5535
|
Ro(t, this.options, s, a);
|
|
5533
5536
|
var i = Qt(s, !0);
|
|
5534
|
-
jo && (!Xn || o !== Oo || r !== _o) && (Xn &&
|
|
5537
|
+
jo && (!Xn || o !== Oo || r !== _o) && (Xn && nr(), Xn = setInterval(function() {
|
|
5535
5538
|
var u = Qt(document.elementFromPoint(o, r), !0);
|
|
5536
5539
|
u !== i && (i = u, Ua()), Ro(t, l.options, u, a);
|
|
5537
5540
|
}, 10), Oo = o, _o = r);
|
|
@@ -5553,10 +5556,10 @@ function Ua() {
|
|
|
5553
5556
|
clearInterval(e.pid);
|
|
5554
5557
|
}), Je = [];
|
|
5555
5558
|
}
|
|
5556
|
-
function
|
|
5559
|
+
function nr() {
|
|
5557
5560
|
clearInterval(Xn);
|
|
5558
5561
|
}
|
|
5559
|
-
var Ro =
|
|
5562
|
+
var Ro = Nr(function(e, n, t, a) {
|
|
5560
5563
|
if (n.scroll) {
|
|
5561
5564
|
var l = (e.touches ? e.touches[0] : e).clientX, o = (e.touches ? e.touches[0] : e).clientY, r = n.scrollSensitivity, s = n.scrollSpeed, i = Rt(), u = !1, c;
|
|
5562
5565
|
Ho !== t && (Ho = t, Ua(), Gn = n.scroll, c = n.scrollFn, Gn === !0 && (Gn = Qt(t, !0)));
|
|
@@ -5571,14 +5574,14 @@ var Ro = Lr(function(e, n, t, a) {
|
|
|
5571
5574
|
(Je[d].vx != V || Je[d].vy != O || Je[d].el !== y) && (Je[d].el = y, Je[d].vx = V, Je[d].vy = O, clearInterval(Je[d].pid), (V != 0 || O != 0) && (u = !0, Je[d].pid = setInterval((function() {
|
|
5572
5575
|
a && this.layer === 0 && we.active._onTouchMove(Xa);
|
|
5573
5576
|
var h = Je[this.layer].vy ? Je[this.layer].vy * s : 0, v = Je[this.layer].vx ? Je[this.layer].vx * s : 0;
|
|
5574
|
-
typeof c == "function" && c.call(we.dragged.parentNode[vt], v, h, e, Xa, Je[this.layer].el) !== "continue" ||
|
|
5577
|
+
typeof c == "function" && c.call(we.dragged.parentNode[vt], v, h, e, Xa, Je[this.layer].el) !== "continue" || Vr(Je[this.layer].el, v, h);
|
|
5575
5578
|
}).bind({
|
|
5576
5579
|
layer: d
|
|
5577
5580
|
}), 24))), d++;
|
|
5578
5581
|
} while (n.bubbleScroll && C !== i && (C = Qt(C, !1)));
|
|
5579
5582
|
jo = u;
|
|
5580
5583
|
}
|
|
5581
|
-
}, 30),
|
|
5584
|
+
}, 30), Wr = function(n) {
|
|
5582
5585
|
var t = n.originalEvent, a = n.putSortable, l = n.dragEl, o = n.activeSortable, r = n.dispatchSortableEvent, s = n.hideGhostForTarget, i = n.unhideGhostForTarget;
|
|
5583
5586
|
if (t) {
|
|
5584
5587
|
var u = a || o;
|
|
@@ -5604,7 +5607,7 @@ ll.prototype = {
|
|
|
5604
5607
|
var l = Mn(this.sortable.el, this.startIndex, this.options);
|
|
5605
5608
|
l ? this.sortable.el.insertBefore(t, l) : this.sortable.el.appendChild(t), this.sortable.animateAll(), a && a.animateAll();
|
|
5606
5609
|
},
|
|
5607
|
-
drop:
|
|
5610
|
+
drop: Wr
|
|
5608
5611
|
};
|
|
5609
5612
|
qt(ll, {
|
|
5610
5613
|
pluginName: "revertOnSpill"
|
|
@@ -5616,16 +5619,16 @@ rl.prototype = {
|
|
|
5616
5619
|
var t = n.dragEl, a = n.putSortable, l = a || this.sortable;
|
|
5617
5620
|
l.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), l.animateAll();
|
|
5618
5621
|
},
|
|
5619
|
-
drop:
|
|
5622
|
+
drop: Wr
|
|
5620
5623
|
};
|
|
5621
5624
|
qt(rl, {
|
|
5622
5625
|
pluginName: "removeOnSpill"
|
|
5623
5626
|
});
|
|
5624
5627
|
we.mount(new ad());
|
|
5625
5628
|
we.mount(rl, ll);
|
|
5626
|
-
function
|
|
5629
|
+
function Gr(e, n, t = {}) {
|
|
5627
5630
|
let a;
|
|
5628
|
-
const { document: l =
|
|
5631
|
+
const { document: l = $s, watchElement: o = !1, ...r } = t, s = { onUpdate: (E) => {
|
|
5629
5632
|
rd(n, E.oldIndex, E.newIndex, E);
|
|
5630
5633
|
} }, i = () => {
|
|
5631
5634
|
a?.destroy(), a = void 0;
|
|
@@ -5647,11 +5650,11 @@ function Wr(e, n, t = {}) {
|
|
|
5647
5650
|
}, {
|
|
5648
5651
|
immediate: !0,
|
|
5649
5652
|
flush: "post"
|
|
5650
|
-
}) :
|
|
5653
|
+
}) : Fs(c);
|
|
5651
5654
|
const y = () => {
|
|
5652
5655
|
i();
|
|
5653
5656
|
};
|
|
5654
|
-
return
|
|
5657
|
+
return Bs(() => {
|
|
5655
5658
|
C?.(), i();
|
|
5656
5659
|
}), {
|
|
5657
5660
|
stop: y,
|
|
@@ -5679,21 +5682,21 @@ function rd(e, n, t, a = null) {
|
|
|
5679
5682
|
const ot = [];
|
|
5680
5683
|
for (let e = 0; e < 256; ++e)
|
|
5681
5684
|
ot.push((e + 256).toString(16).slice(1));
|
|
5682
|
-
function
|
|
5685
|
+
function Xr(e, n = 0) {
|
|
5683
5686
|
return (ot[e[n + 0]] + ot[e[n + 1]] + ot[e[n + 2]] + ot[e[n + 3]] + "-" + ot[e[n + 4]] + ot[e[n + 5]] + "-" + ot[e[n + 6]] + ot[e[n + 7]] + "-" + ot[e[n + 8]] + ot[e[n + 9]] + "-" + ot[e[n + 10]] + ot[e[n + 11]] + ot[e[n + 12]] + ot[e[n + 13]] + ot[e[n + 14]] + ot[e[n + 15]]).toLowerCase();
|
|
5684
5687
|
}
|
|
5685
5688
|
const sd = new Uint8Array(16);
|
|
5686
|
-
function
|
|
5689
|
+
function Zr() {
|
|
5687
5690
|
return crypto.getRandomValues(sd);
|
|
5688
5691
|
}
|
|
5689
5692
|
const zn = {};
|
|
5690
5693
|
function id(e, n, t) {
|
|
5691
5694
|
let a;
|
|
5692
5695
|
{
|
|
5693
|
-
const l = Date.now(), o =
|
|
5696
|
+
const l = Date.now(), o = Zr();
|
|
5694
5697
|
ud(zn, l, o), a = cd(o, zn.msecs, zn.nsecs, zn.clockseq, zn.node, n, t);
|
|
5695
5698
|
}
|
|
5696
|
-
return n ??
|
|
5699
|
+
return n ?? Xr(a);
|
|
5697
5700
|
}
|
|
5698
5701
|
function ud(e, n, t) {
|
|
5699
5702
|
return e.msecs ??= -1 / 0, e.nsecs ??= 0, n === e.msecs ? (e.nsecs++, e.nsecs >= 1e4 && (e.node = void 0, e.nsecs = 0)) : n > e.msecs ? e.nsecs = 0 : n < e.msecs && (e.node = void 0), e.node || (e.node = t.slice(10, 16), e.node[0] |= 1, e.clockseq = (t[8] << 8 | t[9]) & 16383), e.msecs = n, e;
|
|
@@ -5719,12 +5722,12 @@ function dd(e, n, t) {
|
|
|
5719
5722
|
}
|
|
5720
5723
|
function fd(e, n, t) {
|
|
5721
5724
|
e = e || {};
|
|
5722
|
-
const a = e.random ?? e.rng?.() ??
|
|
5725
|
+
const a = e.random ?? e.rng?.() ?? Zr();
|
|
5723
5726
|
if (a.length < 16)
|
|
5724
5727
|
throw new Error("Random bytes length must be >= 16");
|
|
5725
|
-
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128,
|
|
5728
|
+
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Xr(a);
|
|
5726
5729
|
}
|
|
5727
|
-
const md = () => id(), _v = () => dd(), Hn = "a-sortable-widget__handle", vd = "a-sortable-widget__ghost", hd = "a-sortable-widget__drag", pd = "a-sortable-widget__chosen",
|
|
5730
|
+
const md = () => id(), _v = () => dd(), Hn = "a-sortable-widget__handle", vd = "a-sortable-widget__ghost", hd = "a-sortable-widget__drag", pd = "a-sortable-widget__chosen", ar = "a-sortable-widget__group";
|
|
5728
5731
|
function gd(e, n, t, a) {
|
|
5729
5732
|
const l = U(!1), o = U(null), r = U(null), s = U(md()), i = U(null), u = U(0), c = U(t.dirty);
|
|
5730
5733
|
function d(O, b) {
|
|
@@ -5845,7 +5848,7 @@ const yd = "a-sortable-", bd = ["id"], wd = { key: 1 }, Cd = { class: "a-sortabl
|
|
|
5845
5848
|
},
|
|
5846
5849
|
emits: ["update:modelValue", "update:dirty", "onStart", "onEnd", "onAddAfter", "onAddLast", "onEdit", "onDelete"],
|
|
5847
5850
|
setup(e, { expose: n, emit: t }) {
|
|
5848
|
-
const a = e, l = t, o =
|
|
5851
|
+
const a = e, l = t, o = Ss(() => a.modelValue), { t: r } = Ye(), s = (v) => {
|
|
5849
5852
|
l("onAddAfter", v);
|
|
5850
5853
|
}, i = (v) => {
|
|
5851
5854
|
if (g.value = v, a.disableDeleteDialog) {
|
|
@@ -5863,8 +5866,8 @@ const yd = "a-sortable-", bd = ["id"], wd = { key: 1 }, Cd = { class: "a-sortabl
|
|
|
5863
5866
|
l("onAddLast", null);
|
|
5864
5867
|
}, d = R(() => F(a.widgetIdentifierId) ? yd + I.value : a.widgetIdentifierId), C = R(() => a.rootClassName + " " + (a.chips ? a.rootClassName + "--chips" : "")), y = () => {
|
|
5865
5868
|
if (a.disableDraggable || !H.value) return;
|
|
5866
|
-
const v = H.value.querySelector("." +
|
|
5867
|
-
v && ($.value =
|
|
5869
|
+
const v = H.value.querySelector("." + ar);
|
|
5870
|
+
v && ($.value = Gr(v, [], {
|
|
5868
5871
|
handle: "." + Hn,
|
|
5869
5872
|
ghostClass: vd,
|
|
5870
5873
|
dragClass: hd,
|
|
@@ -5930,7 +5933,7 @@ const yd = "a-sortable-", bd = ["id"], wd = { key: 1 }, Cd = { class: "a-sortabl
|
|
|
5930
5933
|
}, [
|
|
5931
5934
|
(_(), de("div", {
|
|
5932
5935
|
key: L(p),
|
|
5933
|
-
class: rt(L(
|
|
5936
|
+
class: rt(L(ar))
|
|
5934
5937
|
}, [
|
|
5935
5938
|
(_(!0), de(We, null, en(L(E), (j, J) => (_(), de(We, {
|
|
5936
5939
|
key: j.key
|
|
@@ -6188,7 +6191,7 @@ const xd = {
|
|
|
6188
6191
|
},
|
|
6189
6192
|
emits: ["onClose"],
|
|
6190
6193
|
setup(e, { emit: n }) {
|
|
6191
|
-
const t = e, a = n, l = me(ht), o = me(Ct), r = me(
|
|
6194
|
+
const t = e, a = n, l = me(ht), o = me(Ct), r = me(Mr);
|
|
6192
6195
|
if (F(r) || F(l) || F(o))
|
|
6193
6196
|
throw new Error("Incorrect provide/inject config.");
|
|
6194
6197
|
const s = U("add"), i = U(""), u = U(!1), c = U(!1), d = U(!1), C = U(!1), y = U(!1), E = U([]), p = U(null), { required: f, maxLength: m } = nl(), g = {
|
|
@@ -6201,7 +6204,7 @@ const xd = {
|
|
|
6201
6204
|
required: f,
|
|
6202
6205
|
maxLength: m(100)
|
|
6203
6206
|
}
|
|
6204
|
-
}, A = ra(P, { itemEdit: p }, { $stopPropagation: !0 }), k =
|
|
6207
|
+
}, A = ra(P, { itemEdit: p }, { $stopPropagation: !0 }), k = Fr(), {
|
|
6205
6208
|
createUserAdminConfig: $,
|
|
6206
6209
|
useFetchUserAdminConfigList: H,
|
|
6207
6210
|
updateUserAdminConfigPositions: I,
|
|
@@ -6209,7 +6212,7 @@ const xd = {
|
|
|
6209
6212
|
updateUserAdminConfig: K
|
|
6210
6213
|
} = (
|
|
6211
6214
|
// eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
6212
|
-
|
|
6215
|
+
Br(t.client, t.system)
|
|
6213
6216
|
), { t: V } = Ye(), { showErrorsDefault: O, showValidationError: b, showWarningT: h } = Nn(), { createDefaultUserAdminConfig: v } = Ed(), w = async () => {
|
|
6214
6217
|
d.value = !0;
|
|
6215
6218
|
const ee = E.value.map((Fe) => Fe.id);
|
|
@@ -6218,7 +6221,7 @@ const xd = {
|
|
|
6218
6221
|
} catch (Fe) {
|
|
6219
6222
|
O(Fe), d.value = !1;
|
|
6220
6223
|
}
|
|
6221
|
-
}, { serializeFilters: D } =
|
|
6224
|
+
}, { serializeFilters: D } = Ar(o, l), B = t.system + "_" + t.subject, j = async () => {
|
|
6222
6225
|
d.value = !0, y.value = !1;
|
|
6223
6226
|
const Z = v(t.system);
|
|
6224
6227
|
Z.user = t.user, Z.configType = ja.FilterBookmark, Z.layoutType = dn.Desktop, Z.systemResource = B, Z.customName = i.value, Z.data = {
|
|
@@ -6246,7 +6249,7 @@ const xd = {
|
|
|
6246
6249
|
Fe
|
|
6247
6250
|
), a("onClose");
|
|
6248
6251
|
} catch (ee) {
|
|
6249
|
-
if (
|
|
6252
|
+
if (Cr(ee) && Gi(
|
|
6250
6253
|
ee,
|
|
6251
6254
|
"error_field_not_unique",
|
|
6252
6255
|
"cms.userAdminConfig.model.systemResource"
|
|
@@ -6330,7 +6333,7 @@ const xd = {
|
|
|
6330
6333
|
}),
|
|
6331
6334
|
x(Qa, { class: "pt-0" }, {
|
|
6332
6335
|
default: M(() => [
|
|
6333
|
-
x(
|
|
6336
|
+
x(Js, {
|
|
6334
6337
|
modelValue: s.value,
|
|
6335
6338
|
"onUpdate:modelValue": ee[1] || (ee[1] = (fe) => s.value = fe),
|
|
6336
6339
|
"fixed-tabs": ""
|
|
@@ -6374,7 +6377,7 @@ const xd = {
|
|
|
6374
6377
|
}),
|
|
6375
6378
|
x(un, null, {
|
|
6376
6379
|
default: M(() => [
|
|
6377
|
-
x(
|
|
6380
|
+
x(zl, {
|
|
6378
6381
|
modelValue: u.value,
|
|
6379
6382
|
"onUpdate:modelValue": ee[3] || (ee[3] = (fe) => u.value = fe),
|
|
6380
6383
|
label: L(V)("common.filter.bookmark.storeTableColumns")
|
|
@@ -6384,7 +6387,7 @@ const xd = {
|
|
|
6384
6387
|
}),
|
|
6385
6388
|
x(un, null, {
|
|
6386
6389
|
default: M(() => [
|
|
6387
|
-
x(
|
|
6390
|
+
x(zl, {
|
|
6388
6391
|
modelValue: c.value,
|
|
6389
6392
|
"onUpdate:modelValue": ee[4] || (ee[4] = (fe) => c.value = fe),
|
|
6390
6393
|
label: L(V)("common.filter.bookmark.storeTableOrder")
|
|
@@ -6498,7 +6501,7 @@ const xd = {
|
|
|
6498
6501
|
});
|
|
6499
6502
|
};
|
|
6500
6503
|
}
|
|
6501
|
-
}),
|
|
6504
|
+
}), Jr = /* @__PURE__ */ Re({
|
|
6502
6505
|
__name: "AFilterBookmarkButton",
|
|
6503
6506
|
props: /* @__PURE__ */ tt({
|
|
6504
6507
|
client: {},
|
|
@@ -6605,7 +6608,7 @@ const xd = {
|
|
|
6605
6608
|
return n({
|
|
6606
6609
|
submit: C,
|
|
6607
6610
|
reset: f
|
|
6608
|
-
}), (T, P) => (_(), te(
|
|
6611
|
+
}), (T, P) => (_(), te(ur, {
|
|
6609
6612
|
name: e.formName,
|
|
6610
6613
|
onSubmit: De(C, ["prevent"])
|
|
6611
6614
|
}, {
|
|
@@ -6617,7 +6620,7 @@ const xd = {
|
|
|
6617
6620
|
e.store && e.userId && L(Ue)(e.client) ? (_(), te(Yt, { key: 0 }, {
|
|
6618
6621
|
default: M(() => [
|
|
6619
6622
|
Ie("div", Bd, [
|
|
6620
|
-
u.value.system && u.value.subject && e.userId && L(Ue)(e.client) ? (_(), te(
|
|
6623
|
+
u.value.system && u.value.subject && e.userId && L(Ue)(e.client) ? (_(), te(Or, {
|
|
6621
6624
|
key: 0,
|
|
6622
6625
|
"datatable-hidden-columns": o.value,
|
|
6623
6626
|
"onUpdate:datatableHiddenColumns": P[0] || (P[0] = (A) => o.value = A),
|
|
@@ -6647,10 +6650,10 @@ const xd = {
|
|
|
6647
6650
|
xl: L(s).fields[A].render.xl || 12
|
|
6648
6651
|
}, {
|
|
6649
6652
|
default: M(() => [
|
|
6650
|
-
ke(T.$slots, L(
|
|
6653
|
+
ke(T.$slots, L(Ir)(A), {
|
|
6651
6654
|
itemConfig: L(s).fields[A]
|
|
6652
6655
|
}, () => [
|
|
6653
|
-
x(
|
|
6656
|
+
x($r, { name: A }, null, 8, ["name"])
|
|
6654
6657
|
])
|
|
6655
6658
|
]),
|
|
6656
6659
|
_: 2
|
|
@@ -6662,9 +6665,9 @@ const xd = {
|
|
|
6662
6665
|
]),
|
|
6663
6666
|
e.hideButtons ? ve("", !0) : (_(), de("div", Od, [
|
|
6664
6667
|
ke(T.$slots, "buttons", {}, () => [
|
|
6665
|
-
x(
|
|
6666
|
-
x(
|
|
6667
|
-
u.value.system && u.value.subject && e.userId && L(Ue)(e.client) ? (_(), te(
|
|
6668
|
+
x(Er, { touched: m.value }, null, 8, ["touched"]),
|
|
6669
|
+
x(xr, { onReset: f }),
|
|
6670
|
+
u.value.system && u.value.subject && e.userId && L(Ue)(e.client) ? (_(), te(Jr, {
|
|
6668
6671
|
key: 0,
|
|
6669
6672
|
client: e.client,
|
|
6670
6673
|
user: e.userId,
|
|
@@ -7002,7 +7005,7 @@ const xd = {
|
|
|
7002
7005
|
return a.alwaysVisible && (r.value = !0), n({
|
|
7003
7006
|
submit: C,
|
|
7004
7007
|
reset: f
|
|
7005
|
-
}), (P, A) => (_(), te(
|
|
7008
|
+
}), (P, A) => (_(), te(ur, {
|
|
7006
7009
|
name: e.formName,
|
|
7007
7010
|
onSubmit: De(C, ["prevent"])
|
|
7008
7011
|
}, {
|
|
@@ -7027,7 +7030,7 @@ const xd = {
|
|
|
7027
7030
|
default: M(() => [
|
|
7028
7031
|
ke(P.$slots, "bookmarks", {}, () => [
|
|
7029
7032
|
Ie("div", Nd, [
|
|
7030
|
-
u.value.system && u.value.subject && e.userId && L(Ue)(e.client) ? (_(), te(
|
|
7033
|
+
u.value.system && u.value.subject && e.userId && L(Ue)(e.client) ? (_(), te(Or, {
|
|
7031
7034
|
key: 0,
|
|
7032
7035
|
"datatable-hidden-columns": o.value,
|
|
7033
7036
|
"onUpdate:datatableHiddenColumns": A[0] || (A[0] = (k) => o.value = k),
|
|
@@ -7080,9 +7083,9 @@ const xd = {
|
|
|
7080
7083
|
}, {
|
|
7081
7084
|
default: M(() => [
|
|
7082
7085
|
ke(P.$slots, "buttons", {}, () => [
|
|
7083
|
-
x(
|
|
7084
|
-
x(
|
|
7085
|
-
u.value.system && u.value.subject && e.userId && L(Ue)(e.client) ? (_(), te(
|
|
7086
|
+
x(Er, { touched: g.value }, null, 8, ["touched"]),
|
|
7087
|
+
x(xr, { onReset: f }),
|
|
7088
|
+
u.value.system && u.value.subject && e.userId && L(Ue)(e.client) ? (_(), te(Jr, {
|
|
7086
7089
|
key: 0,
|
|
7087
7090
|
client: e.client,
|
|
7088
7091
|
user: e.userId,
|
|
@@ -7098,7 +7101,7 @@ const xd = {
|
|
|
7098
7101
|
_: 3
|
|
7099
7102
|
})),
|
|
7100
7103
|
e.hideMore ? ve("", !0) : (_(), de("div", Yd, [
|
|
7101
|
-
(_(), te(
|
|
7104
|
+
(_(), te(lr(e.alwaysVisible ? "div" : "VSlideYTransition"), null, {
|
|
7102
7105
|
default: M(() => [
|
|
7103
7106
|
la(Ie("div", {
|
|
7104
7107
|
class: rt({ "mt-6 pa-4 system-border-a": !e.alwaysVisible })
|
|
@@ -7115,10 +7118,10 @@ const xd = {
|
|
|
7115
7118
|
xl: L(s).fields[k].render.xl || 2
|
|
7116
7119
|
}, {
|
|
7117
7120
|
default: M(() => [
|
|
7118
|
-
ke(P.$slots, L(
|
|
7121
|
+
ke(P.$slots, L(Ir)(k), {
|
|
7119
7122
|
itemConfig: L(s).fields[k]
|
|
7120
7123
|
}, () => [
|
|
7121
|
-
x(
|
|
7124
|
+
x($r, { name: k }, null, 8, ["name"])
|
|
7122
7125
|
])
|
|
7123
7126
|
]),
|
|
7124
7127
|
_: 2
|
|
@@ -7128,7 +7131,7 @@ const xd = {
|
|
|
7128
7131
|
})
|
|
7129
7132
|
])
|
|
7130
7133
|
], 2), [
|
|
7131
|
-
[
|
|
7134
|
+
[ks, r.value]
|
|
7132
7135
|
])
|
|
7133
7136
|
]),
|
|
7134
7137
|
_: 3
|
|
@@ -7142,15 +7145,15 @@ const xd = {
|
|
|
7142
7145
|
e().delete(ba(n, t), o).then((i) => wa(i.status) ? i.data ? r(i.data) : i.status === Bn ? r(null) : s(new Ft()) : s(new Rn(i.status))).catch((i) => ha(i) ? s(new On(i, i.config?.url)) : pa(i) ? s(new _n(i, a, l, i)) : ya(i) ? s(new Ln(i, a, l, i)) : ga(i) ? s(new Pn(i, i)) : s(new Ft(i)));
|
|
7143
7146
|
});
|
|
7144
7147
|
function zd(e, n = 769) {
|
|
7145
|
-
const { width: t } =
|
|
7148
|
+
const { width: t } = Os(e), a = R(() => t.value > 0 && t.value < n);
|
|
7146
7149
|
return { width: t, isNarrow: a };
|
|
7147
7150
|
}
|
|
7148
7151
|
function Hd() {
|
|
7149
|
-
const e =
|
|
7152
|
+
const e = rr("(any-pointer: fine)");
|
|
7150
7153
|
return R(() => !e.value);
|
|
7151
7154
|
}
|
|
7152
7155
|
function jd() {
|
|
7153
|
-
const e =
|
|
7156
|
+
const e = rr("(any-pointer: coarse)");
|
|
7154
7157
|
return R(() => e.value);
|
|
7155
7158
|
}
|
|
7156
7159
|
function qd(e) {
|
|
@@ -7287,7 +7290,7 @@ const Kd = (e) => [...e].sort((n, t) => n.position - t.position), Wd = (e, n = [
|
|
|
7287
7290
|
};
|
|
7288
7291
|
let Zd = 0;
|
|
7289
7292
|
const qo = () => --Zd;
|
|
7290
|
-
function
|
|
7293
|
+
function Qr(e) {
|
|
7291
7294
|
const n = typeof e.getKey == "function" ? null : e.getKey ?? "id", t = (z) => typeof e.getKey == "function" ? e.getKey(z) : z[n], a = e.position ?? "position", l = a !== !1, o = typeof a == "object" ? a.field : a === !1 ? "position" : a, r = typeof a == "object" && a.multiplier ? a.multiplier : 1, s = typeof a == "object" && a.strategy || "renumber", i = typeof a == "object" && a.strategyOverrides || {}, u = R(() => e.get()), c = R(() => En(e.dirtyExclude) ?? []), d = (z, W) => z === "id" && typeof W == "number" && W < 0 ? void 0 : W, C = (z) => {
|
|
7292
7295
|
const W = { ...z };
|
|
7293
7296
|
l && delete W[o];
|
|
@@ -7850,7 +7853,7 @@ const sl = /* @__PURE__ */ Symbol(
|
|
|
7850
7853
|
"le.stateScope"
|
|
7851
7854
|
);
|
|
7852
7855
|
let of = 0;
|
|
7853
|
-
function
|
|
7856
|
+
function es() {
|
|
7854
7857
|
const e = `les${++of}`, n = /* @__PURE__ */ new Map(), t = bo(), a = (o, r) => {
|
|
7855
7858
|
r.children?.dispose(), r.scope.stop(), n.delete(o);
|
|
7856
7859
|
}, l = {
|
|
@@ -7870,7 +7873,7 @@ function Qr() {
|
|
|
7870
7873
|
},
|
|
7871
7874
|
childScope(o) {
|
|
7872
7875
|
const r = n.get(o);
|
|
7873
|
-
return r ? (r.children || (r.children = r.scope.run(() =>
|
|
7876
|
+
return r ? (r.children || (r.children = r.scope.run(() => es()) ?? null), r.children) : null;
|
|
7874
7877
|
},
|
|
7875
7878
|
prefixFor(o) {
|
|
7876
7879
|
return `${e}:${String(o)}`;
|
|
@@ -7896,13 +7899,13 @@ function Qr() {
|
|
|
7896
7899
|
n.clear(), t.stop();
|
|
7897
7900
|
}
|
|
7898
7901
|
};
|
|
7899
|
-
return
|
|
7902
|
+
return Ds() && Es(() => l.dispose()), l;
|
|
7900
7903
|
}
|
|
7901
7904
|
function lf(e) {
|
|
7902
|
-
const n = e ??
|
|
7905
|
+
const n = e ?? es();
|
|
7903
7906
|
return fn(sl, n), n;
|
|
7904
7907
|
}
|
|
7905
|
-
const
|
|
7908
|
+
const ts = (e) => {
|
|
7906
7909
|
const n = e.get();
|
|
7907
7910
|
return { ...e, get: () => n, set: () => {
|
|
7908
7911
|
} };
|
|
@@ -7913,7 +7916,7 @@ function rf(e, n) {
|
|
|
7913
7916
|
const a = $t()?.uid ?? null, l = t.resolve(
|
|
7914
7917
|
e,
|
|
7915
7918
|
n,
|
|
7916
|
-
(o) =>
|
|
7919
|
+
(o) => Qr({
|
|
7917
7920
|
get: () => o.value.get(),
|
|
7918
7921
|
set: (r) => o.value.set(r),
|
|
7919
7922
|
// `factory?.()` → undefined reproduces the "no factory" no-op of `addItem` exactly.
|
|
@@ -7927,7 +7930,7 @@ function rf(e, n) {
|
|
|
7927
7930
|
a
|
|
7928
7931
|
);
|
|
7929
7932
|
return $t() && ua(
|
|
7930
|
-
() => t.release(e, a,
|
|
7933
|
+
() => t.release(e, a, ts)
|
|
7931
7934
|
), { handle: l, childScope: t.childScope(e) };
|
|
7932
7935
|
}
|
|
7933
7936
|
function Vv(e, n) {
|
|
@@ -7950,7 +7953,7 @@ function Vv(e, n) {
|
|
|
7950
7953
|
a
|
|
7951
7954
|
);
|
|
7952
7955
|
return $t() && ua(
|
|
7953
|
-
() => t.release(e, a,
|
|
7956
|
+
() => t.release(e, a, ts)
|
|
7954
7957
|
), { handle: l, childScope: t.childScope(e) };
|
|
7955
7958
|
}
|
|
7956
7959
|
function sf(e, n) {
|
|
@@ -7958,7 +7961,7 @@ function sf(e, n) {
|
|
|
7958
7961
|
const t = e[n.compactField];
|
|
7959
7962
|
return t == null || t === "" ? "" : String(t);
|
|
7960
7963
|
}
|
|
7961
|
-
const
|
|
7964
|
+
const ns = /* @__PURE__ */ Symbol("unsaved.sections");
|
|
7962
7965
|
function uf() {
|
|
7963
7966
|
const e = Kt(/* @__PURE__ */ new Map()), n = R(() => {
|
|
7964
7967
|
const t = [];
|
|
@@ -7979,10 +7982,10 @@ function uf() {
|
|
|
7979
7982
|
}
|
|
7980
7983
|
function Uv() {
|
|
7981
7984
|
const e = uf();
|
|
7982
|
-
return $t() && fn(
|
|
7985
|
+
return $t() && fn(ns, e), e;
|
|
7983
7986
|
}
|
|
7984
7987
|
function cf(e) {
|
|
7985
|
-
const n = me(
|
|
7988
|
+
const n = me(ns, null);
|
|
7986
7989
|
if (!n || !$t()) return;
|
|
7987
7990
|
const t = /* @__PURE__ */ Symbol("unsaved.section"), a = R(() => {
|
|
7988
7991
|
const l = e();
|
|
@@ -8093,7 +8096,7 @@ function vf(e) {
|
|
|
8093
8096
|
}
|
|
8094
8097
|
);
|
|
8095
8098
|
}
|
|
8096
|
-
const
|
|
8099
|
+
const or = /* @__PURE__ */ Symbol(
|
|
8097
8100
|
"le.sharedReorderRegistry"
|
|
8098
8101
|
);
|
|
8099
8102
|
function hf(e) {
|
|
@@ -8154,7 +8157,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8154
8157
|
default: M(() => [
|
|
8155
8158
|
x(In, null, {
|
|
8156
8159
|
default: M(() => [
|
|
8157
|
-
x(
|
|
8160
|
+
x(sr, { class: "text-headline-small" }, {
|
|
8158
8161
|
default: M(() => [
|
|
8159
8162
|
ge(ie(e.title), 1)
|
|
8160
8163
|
]),
|
|
@@ -8163,7 +8166,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8163
8166
|
x(Qa, null, {
|
|
8164
8167
|
default: M(() => [
|
|
8165
8168
|
ge(ie(e.text) + " ", 1),
|
|
8166
|
-
e.error ? (_(), te(
|
|
8169
|
+
e.error ? (_(), te(fr, {
|
|
8167
8170
|
key: 0,
|
|
8168
8171
|
type: "error",
|
|
8169
8172
|
variant: "tonal",
|
|
@@ -8250,7 +8253,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8250
8253
|
default: M(() => [
|
|
8251
8254
|
x(In, null, {
|
|
8252
8255
|
default: M(() => [
|
|
8253
|
-
x(
|
|
8256
|
+
x(sr, null, {
|
|
8254
8257
|
default: M(() => [
|
|
8255
8258
|
ge(ie(L(o)("common.sortable.moveToPosition.title")), 1)
|
|
8256
8259
|
]),
|
|
@@ -8483,7 +8486,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8483
8486
|
}),
|
|
8484
8487
|
emits: /* @__PURE__ */ tt(["edit", "deleted", "close", "item-saved", "item-expand", "reorder-start", "reorder-cancel", "reorder-applied", "reorder-apply-error", "reorder-end"], ["update:modelValue", "update:mode"]),
|
|
8485
8488
|
setup(e, { expose: n, emit: t }) {
|
|
8486
|
-
const a = e, l = t, o = ct(e, "modelValue"), r = ct(e, "mode"), { t: s } = Ye(), i =
|
|
8489
|
+
const a = e, l = t, o = ct(e, "modelValue"), r = ct(e, "mode"), { t: s } = Ye(), i = xs(), u = zt("rootEl"), { isNarrow: c } = zd(u), d = Hd(), C = jd(), y = {
|
|
8487
8490
|
get: () => o.value,
|
|
8488
8491
|
set: (S) => o.value = S,
|
|
8489
8492
|
factory: a.factory,
|
|
@@ -8491,7 +8494,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8491
8494
|
position: a.position,
|
|
8492
8495
|
dirtyExclude: () => a.dirtyExclude ?? [],
|
|
8493
8496
|
validate: a.validate
|
|
8494
|
-
}, E = a.editor ? null : rf(a.stateKey, y), p = a.editor ?? E?.handle ??
|
|
8497
|
+
}, E = a.editor ? null : rf(a.stateKey, y), p = a.editor ?? E?.handle ?? Qr(y), f = a.getKey ?? "id", m = lf(E?.childScope ?? null), g = (S) => typeof f == "function" ? f(S) : S[f], T = R(() => {
|
|
8495
8498
|
const S = a.position;
|
|
8496
8499
|
return S === void 0 || S === !1 ? "position" : typeof S == "object" ? S.field : S;
|
|
8497
8500
|
}), P = R(
|
|
@@ -8589,10 +8592,10 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8589
8592
|
reorderApplyError: (S) => l("reorder-apply-error", S),
|
|
8590
8593
|
reorderEnd: () => l("reorder-end")
|
|
8591
8594
|
}
|
|
8592
|
-
}), ue = a.embedded ? null :
|
|
8595
|
+
}), ue = a.embedded ? null : Ts(
|
|
8593
8596
|
/* @__PURE__ */ new Map()
|
|
8594
8597
|
);
|
|
8595
|
-
ue && fn(
|
|
8598
|
+
ue && fn(or, {
|
|
8596
8599
|
register: (G, q, ye, Tt) => {
|
|
8597
8600
|
ue.set(G, { count: q, hasChanges: ye, validateAll: Tt });
|
|
8598
8601
|
},
|
|
@@ -8618,7 +8621,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8618
8621
|
() => oe.value || $.value.size > 0 || I.value.size > 0
|
|
8619
8622
|
);
|
|
8620
8623
|
if (a.embedded) {
|
|
8621
|
-
const S = me(
|
|
8624
|
+
const S = me(or, null);
|
|
8622
8625
|
if (S) {
|
|
8623
8626
|
const G = /* @__PURE__ */ Symbol("le.embedded");
|
|
8624
8627
|
S.register(G, pe, Be, () => fo()), ua(() => S.unregister(G));
|
|
@@ -8666,11 +8669,11 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8666
8669
|
for (const ye of hn.keys())
|
|
8667
8670
|
q.has(ye) || hn.delete(ye);
|
|
8668
8671
|
return G;
|
|
8669
|
-
}), il = R(() => Ot.value.length === 0), et = (S) => Ot.value.find((G) => G.key === S),
|
|
8672
|
+
}), il = R(() => Ot.value.length === 0), et = (S) => Ot.value.find((G) => G.key === S), as = (S) => {
|
|
8670
8673
|
if (!O.value) return;
|
|
8671
8674
|
const G = et(S);
|
|
8672
8675
|
G && D(G);
|
|
8673
|
-
},
|
|
8676
|
+
}, os = () => {
|
|
8674
8677
|
if (O.value)
|
|
8675
8678
|
for (const S of Ot.value) D(S);
|
|
8676
8679
|
}, fo = () => mf(p, (S) => {
|
|
@@ -8714,14 +8717,14 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8714
8717
|
G && go(G.index);
|
|
8715
8718
|
},
|
|
8716
8719
|
onCancelReorder: () => z()
|
|
8717
|
-
}), mo = U(!1), gn = oa(null),
|
|
8720
|
+
}), mo = U(!1), gn = oa(null), ls = R(
|
|
8718
8721
|
() => gn.value ? ul(gn.value.raw) : ""
|
|
8719
|
-
),
|
|
8722
|
+
), rs = (S) => {
|
|
8720
8723
|
a.showMoveToPosition && (gn.value = S, mo.value = !0);
|
|
8721
|
-
},
|
|
8724
|
+
}, ss = (S) => {
|
|
8722
8725
|
const G = gn.value;
|
|
8723
8726
|
gn.value = null, G && S !== G.index && (p.moveItem(G.index, S), xt(G.key));
|
|
8724
|
-
}, ul = (S) => sf(S, { compactField: a.compactField }),
|
|
8727
|
+
}, ul = (S) => sf(S, { compactField: a.compactField }), is = Gr(V, o, {
|
|
8725
8728
|
// The rows container can mount/unmount across mode flips (e.g. a `#view-body`
|
|
8726
8729
|
// slot in view mode, rows only in reorder mode). vueuse's default
|
|
8727
8730
|
// `tryOnMounted` fires once and would bind to a null ref, leaving SortableJS
|
|
@@ -8751,7 +8754,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8751
8754
|
onEnd: (S) => {
|
|
8752
8755
|
const G = S.item, q = (G.querySelector(":scope > .a-le-row") ?? G).getAttribute("data-id");
|
|
8753
8756
|
if (q !== null && q !== "") {
|
|
8754
|
-
const ye =
|
|
8757
|
+
const ye = vr(q), Tt = String(ye) === q ? ye : q;
|
|
8755
8758
|
xt(Tt);
|
|
8756
8759
|
}
|
|
8757
8760
|
}
|
|
@@ -8759,7 +8762,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8759
8762
|
_e(
|
|
8760
8763
|
[Nt, V],
|
|
8761
8764
|
async () => {
|
|
8762
|
-
await Ze(),
|
|
8765
|
+
await Ze(), is.option("disabled", !Nt.value);
|
|
8763
8766
|
},
|
|
8764
8767
|
{ flush: "post" }
|
|
8765
8768
|
);
|
|
@@ -8788,7 +8791,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8788
8791
|
A.value.add(G);
|
|
8789
8792
|
}
|
|
8790
8793
|
l("item-expand", S, !q);
|
|
8791
|
-
}, dl = (S) => a.chips || a.disableRowClick || a.disabled || a.loading || X.value && !a.allowEditInReorder ? !1 : !!(S.editing || S.expanded || !a.readonly && a.showEditButton),
|
|
8794
|
+
}, dl = (S) => a.chips || a.disableRowClick || a.disabled || a.loading || X.value && !a.allowEditInReorder ? !1 : !!(S.editing || S.expanded || !a.readonly && a.showEditButton), us = (S) => {
|
|
8792
8795
|
if (dl(S)) {
|
|
8793
8796
|
if (S.editing || S.expanded) {
|
|
8794
8797
|
Ea(S);
|
|
@@ -8798,11 +8801,11 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8798
8801
|
}
|
|
8799
8802
|
}, {
|
|
8800
8803
|
deleteDialog: ho,
|
|
8801
|
-
deleteInFlight:
|
|
8802
|
-
deleteError:
|
|
8803
|
-
onDeleteClick:
|
|
8804
|
-
onDeleteDialogConfirm:
|
|
8805
|
-
onDeleteDialogCancel:
|
|
8804
|
+
deleteInFlight: cs,
|
|
8805
|
+
deleteError: ds,
|
|
8806
|
+
onDeleteClick: fs,
|
|
8807
|
+
onDeleteDialogConfirm: ms,
|
|
8808
|
+
onDeleteDialogCancel: vs
|
|
8806
8809
|
} = df({
|
|
8807
8810
|
onDeleteConfirm: (S) => a.onDeleteConfirm ? a.onDeleteConfirm(S) : !0,
|
|
8808
8811
|
onDelete: (S) => a.onDelete?.(S),
|
|
@@ -8813,7 +8816,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8813
8816
|
},
|
|
8814
8817
|
disableDeleteConfirm: () => a.disableDeleteConfirm || a.chips
|
|
8815
8818
|
}), Da = async (S) => {
|
|
8816
|
-
re.value && await
|
|
8819
|
+
re.value && await fs(S);
|
|
8817
8820
|
}, fl = async (S) => {
|
|
8818
8821
|
a.onItemSave && await a.onItemSave(S.raw), j(S), l("item-saved", S);
|
|
8819
8822
|
}, ml = (S) => {
|
|
@@ -8839,7 +8842,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8839
8842
|
if (S >= o.value.length - 1) return;
|
|
8840
8843
|
const G = xa(S);
|
|
8841
8844
|
p.moveItem(S, o.value.length - 1), G !== null && xt(G);
|
|
8842
|
-
}, Un = /* @__PURE__ */ new Map(),
|
|
8845
|
+
}, Un = /* @__PURE__ */ new Map(), hs = (S) => {
|
|
8843
8846
|
let G = Un.get(S);
|
|
8844
8847
|
return G || (G = {
|
|
8845
8848
|
edit: () => {
|
|
@@ -8915,8 +8918,8 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8915
8918
|
canMoveDown: S.canMoveDown,
|
|
8916
8919
|
touch: d.value,
|
|
8917
8920
|
stateKeyPrefix: m.prefixFor(S.key),
|
|
8918
|
-
actions:
|
|
8919
|
-
}),
|
|
8921
|
+
actions: hs(S.key)
|
|
8922
|
+
}), ps = R(() => ({
|
|
8920
8923
|
applying: he.value,
|
|
8921
8924
|
hasPendingChanges: Be.value,
|
|
8922
8925
|
movedCount: pe.value,
|
|
@@ -8938,8 +8941,8 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8938
8941
|
() => a.unsavedSectionLabel ? { label: a.unsavedSectionLabel, dirty: p.hasUnsaved.value } : []
|
|
8939
8942
|
), n({
|
|
8940
8943
|
...p,
|
|
8941
|
-
openRow:
|
|
8942
|
-
openAll:
|
|
8944
|
+
openRow: as,
|
|
8945
|
+
openAll: os,
|
|
8943
8946
|
// Saving is separate from the editor's "Apply", so a consumer can commit while still in
|
|
8944
8947
|
// reorder mode with an unapplied move. The reorder session (component-level `movedKeys` +
|
|
8945
8948
|
// snapshot) is NOT controller state, so re-baseline it here too — otherwise the "N pending
|
|
@@ -8989,7 +8992,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8989
8992
|
"data-unsaved-count": L(ze)
|
|
8990
8993
|
}, ie(L(s)("common.sortable.pendingChanges", { count: L(ze) })), 9, Rf)) : ve("", !0),
|
|
8991
8994
|
Ie("div", Pf, [
|
|
8992
|
-
L(X) && !e.embedded ? ke(S.$slots, "reorder-toolbar", Dl(El(
|
|
8995
|
+
L(X) && !e.embedded ? ke(S.$slots, "reorder-toolbar", Dl(El(ps.value)), () => [
|
|
8993
8996
|
x(xf, {
|
|
8994
8997
|
class: rt({ "a-le-toolbar-status--pending": Be.value }),
|
|
8995
8998
|
"has-pending-changes": Be.value,
|
|
@@ -9068,7 +9071,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9068
9071
|
size: "32"
|
|
9069
9072
|
})
|
|
9070
9073
|
])) : e.error ? (_(), de("div", Nf, [
|
|
9071
|
-
x(
|
|
9074
|
+
x(fr, {
|
|
9072
9075
|
type: "error",
|
|
9073
9076
|
variant: "tonal",
|
|
9074
9077
|
density: "compact",
|
|
@@ -9127,7 +9130,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9127
9130
|
}, [
|
|
9128
9131
|
Ie("div", {
|
|
9129
9132
|
class: "a-le-row-header",
|
|
9130
|
-
onClick: (ye) =>
|
|
9133
|
+
onClick: (ye) => us(q)
|
|
9131
9134
|
}, [
|
|
9132
9135
|
Nt.value ? (_(), te(Mf, { key: 0 })) : ve("", !0),
|
|
9133
9136
|
Ie("div", Hf, [
|
|
@@ -9306,7 +9309,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9306
9309
|
}, 8, ["disabled", "onClick"]),
|
|
9307
9310
|
e.showMoveToPosition && Ot.value.length > 1 ? (_(), te(mt, {
|
|
9308
9311
|
key: 0,
|
|
9309
|
-
onClick: De((ye) =>
|
|
9312
|
+
onClick: De((ye) => rs(q), ["stop"])
|
|
9310
9313
|
}, {
|
|
9311
9314
|
prepend: M(() => [
|
|
9312
9315
|
x(Oe, { icon: "mdi-target" })
|
|
@@ -9528,8 +9531,8 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9528
9531
|
"onUpdate:modelValue": G[0] || (G[0] = (q) => mo.value = q),
|
|
9529
9532
|
total: Ot.value.length,
|
|
9530
9533
|
"current-index": gn.value?.index ?? 0,
|
|
9531
|
-
"item-label":
|
|
9532
|
-
onConfirm:
|
|
9534
|
+
"item-label": ls.value,
|
|
9535
|
+
onConfirm: ss
|
|
9533
9536
|
}, null, 8, ["modelValue", "total", "current-index", "item-label"]),
|
|
9534
9537
|
x(pf, {
|
|
9535
9538
|
modelValue: L(ho),
|
|
@@ -9538,10 +9541,10 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9538
9541
|
text: xe.value,
|
|
9539
9542
|
"confirm-label": L(s)("common.sortable.delete"),
|
|
9540
9543
|
"cancel-label": L(s)("common.button.cancel"),
|
|
9541
|
-
error: L(
|
|
9542
|
-
"in-flight": L(
|
|
9543
|
-
onConfirm: L(
|
|
9544
|
-
onCancel: L(
|
|
9544
|
+
error: L(ds),
|
|
9545
|
+
"in-flight": L(cs),
|
|
9546
|
+
onConfirm: L(ms),
|
|
9547
|
+
onCancel: L(vs)
|
|
9545
9548
|
}, null, 8, ["modelValue", "title", "text", "confirm-label", "cancel-label", "error", "in-flight", "onConfirm", "onCancel"]),
|
|
9546
9549
|
Ie("div", em, ie(L(pn).grabbedKey.value !== null ? L(s)("common.sortable.keyboardGrab.status", {
|
|
9547
9550
|
n: L(pn).grabbedIndex.value + 1,
|
|
@@ -9766,7 +9769,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9766
9769
|
c,
|
|
9767
9770
|
async (Y, oe) => {
|
|
9768
9771
|
if (Y !== oe) {
|
|
9769
|
-
if (v.value && (v.value = !1, await he("mounted", Y)), C.value.enabled && g.value && E.value(Y),
|
|
9772
|
+
if (v.value && (v.value = !1, await he("mounted", Y)), C.value.enabled && g.value && E.value(Y), mr(Y)) {
|
|
9770
9773
|
J(Y);
|
|
9771
9774
|
return;
|
|
9772
9775
|
}
|
|
@@ -9855,19 +9858,19 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9855
9858
|
}
|
|
9856
9859
|
});
|
|
9857
9860
|
export {
|
|
9858
|
-
|
|
9861
|
+
wi as $,
|
|
9859
9862
|
ro as A,
|
|
9860
|
-
|
|
9863
|
+
Er as B,
|
|
9861
9864
|
qn as C,
|
|
9862
|
-
|
|
9865
|
+
xr as D,
|
|
9863
9866
|
Mv as E,
|
|
9864
9867
|
Tv as F,
|
|
9865
|
-
|
|
9868
|
+
Tr as G,
|
|
9866
9869
|
ia as H,
|
|
9867
9870
|
Om as I,
|
|
9868
9871
|
Ai as J,
|
|
9869
9872
|
yu as K,
|
|
9870
|
-
|
|
9873
|
+
Ei as L,
|
|
9871
9874
|
qm as M,
|
|
9872
9875
|
Xm as N,
|
|
9873
9876
|
Wm as O,
|
|
@@ -9884,17 +9887,17 @@ export {
|
|
|
9884
9887
|
nv as Z,
|
|
9885
9888
|
Go as _,
|
|
9886
9889
|
ao as a,
|
|
9887
|
-
|
|
9888
|
-
|
|
9890
|
+
Gr as a$,
|
|
9891
|
+
xi as a0,
|
|
9889
9892
|
ac as a1,
|
|
9890
9893
|
He as a2,
|
|
9891
9894
|
Hm as a3,
|
|
9892
9895
|
jm as a4,
|
|
9893
9896
|
Al as a5,
|
|
9894
|
-
|
|
9897
|
+
Yl as a6,
|
|
9895
9898
|
yt as a7,
|
|
9896
|
-
|
|
9897
|
-
|
|
9899
|
+
zi as a8,
|
|
9900
|
+
ha as a9,
|
|
9898
9901
|
Me as aA,
|
|
9899
9902
|
dv as aB,
|
|
9900
9903
|
io as aC,
|
|
@@ -9907,28 +9910,28 @@ export {
|
|
|
9907
9910
|
Ov as aJ,
|
|
9908
9911
|
ht as aK,
|
|
9909
9912
|
Ct as aL,
|
|
9910
|
-
|
|
9913
|
+
Ar as aM,
|
|
9911
9914
|
Rv as aN,
|
|
9912
9915
|
nl as aO,
|
|
9913
9916
|
Hi as aP,
|
|
9914
9917
|
lu as aQ,
|
|
9915
9918
|
Ol as aR,
|
|
9916
9919
|
Pv as aS,
|
|
9917
|
-
|
|
9918
|
-
|
|
9919
|
-
|
|
9920
|
-
|
|
9921
|
-
|
|
9922
|
-
|
|
9923
|
-
|
|
9924
|
-
|
|
9925
|
-
|
|
9926
|
-
|
|
9927
|
-
|
|
9928
|
-
|
|
9929
|
-
|
|
9930
|
-
|
|
9931
|
-
|
|
9920
|
+
Ev as aT,
|
|
9921
|
+
gv as aU,
|
|
9922
|
+
hu as aV,
|
|
9923
|
+
uv as aW,
|
|
9924
|
+
Pm as aX,
|
|
9925
|
+
md as aY,
|
|
9926
|
+
Lv as aZ,
|
|
9927
|
+
yd as a_,
|
|
9928
|
+
On as aa,
|
|
9929
|
+
pa as ab,
|
|
9930
|
+
_n as ac,
|
|
9931
|
+
ga as ad,
|
|
9932
|
+
Pn as ae,
|
|
9933
|
+
Ft as af,
|
|
9934
|
+
vc as ag,
|
|
9932
9935
|
lc as ah,
|
|
9933
9936
|
rc as ai,
|
|
9934
9937
|
ba as aj,
|
|
@@ -9938,7 +9941,7 @@ export {
|
|
|
9938
9941
|
Jo as an,
|
|
9939
9942
|
ya as ao,
|
|
9940
9943
|
Ln as ap,
|
|
9941
|
-
|
|
9944
|
+
Sr as aq,
|
|
9942
9945
|
Qo as ar,
|
|
9943
9946
|
el as as,
|
|
9944
9947
|
fc as at,
|
|
@@ -9950,71 +9953,71 @@ export {
|
|
|
9950
9953
|
tl as az,
|
|
9951
9954
|
jn as b,
|
|
9952
9955
|
rf as b$,
|
|
9953
|
-
|
|
9954
|
-
|
|
9955
|
-
|
|
9956
|
-
|
|
9957
|
-
|
|
9958
|
-
|
|
9959
|
-
|
|
9960
|
-
|
|
9961
|
-
|
|
9962
|
-
|
|
9956
|
+
Nv as b0,
|
|
9957
|
+
Yv as b1,
|
|
9958
|
+
Ir as b2,
|
|
9959
|
+
fv as b3,
|
|
9960
|
+
Cr as b4,
|
|
9961
|
+
Ki as b5,
|
|
9962
|
+
Yi as b6,
|
|
9963
|
+
Nm as b7,
|
|
9964
|
+
mv as b8,
|
|
9965
|
+
rv as b9,
|
|
9963
9966
|
ou as bA,
|
|
9964
9967
|
tu as bB,
|
|
9965
9968
|
Ji as bC,
|
|
9966
9969
|
Cc as bD,
|
|
9967
9970
|
Av as bE,
|
|
9968
9971
|
xv as bF,
|
|
9969
|
-
|
|
9972
|
+
Rl as bG,
|
|
9970
9973
|
zm as bH,
|
|
9971
9974
|
Ym as bI,
|
|
9972
|
-
|
|
9975
|
+
pr as bJ,
|
|
9973
9976
|
Lm as bK,
|
|
9974
9977
|
Vm as bL,
|
|
9975
|
-
|
|
9978
|
+
ni as bM,
|
|
9976
9979
|
Um as bN,
|
|
9977
9980
|
Dv as bO,
|
|
9978
9981
|
yv as bP,
|
|
9979
|
-
|
|
9982
|
+
gr as bQ,
|
|
9980
9983
|
tv as bR,
|
|
9981
9984
|
sv as bS,
|
|
9982
9985
|
Cv as bT,
|
|
9983
9986
|
Lt as bU,
|
|
9984
9987
|
Dt as bV,
|
|
9985
|
-
|
|
9988
|
+
Mr as bW,
|
|
9986
9989
|
cc as bX,
|
|
9987
9990
|
mc as bY,
|
|
9988
9991
|
Mi as bZ,
|
|
9989
9992
|
pc as b_,
|
|
9990
|
-
|
|
9991
|
-
|
|
9992
|
-
|
|
9993
|
-
|
|
9994
|
-
|
|
9995
|
-
|
|
9996
|
-
|
|
9997
|
-
|
|
9998
|
-
|
|
9999
|
-
|
|
10000
|
-
|
|
10001
|
-
|
|
10002
|
-
|
|
10003
|
-
|
|
10004
|
-
|
|
10005
|
-
|
|
10006
|
-
|
|
10007
|
-
|
|
10008
|
-
|
|
10009
|
-
|
|
10010
|
-
|
|
10011
|
-
bv,
|
|
10012
|
-
|
|
9993
|
+
gi as ba,
|
|
9994
|
+
bi as bb,
|
|
9995
|
+
Il as bc,
|
|
9996
|
+
Ma as bd,
|
|
9997
|
+
Ml as be,
|
|
9998
|
+
bu as bf,
|
|
9999
|
+
zv as bg,
|
|
10000
|
+
zl as bh,
|
|
10001
|
+
Dd as bi,
|
|
10002
|
+
yr as bj,
|
|
10003
|
+
av as bk,
|
|
10004
|
+
lo as bl,
|
|
10005
|
+
oo as bm,
|
|
10006
|
+
vv as bn,
|
|
10007
|
+
ji as bo,
|
|
10008
|
+
pv as bp,
|
|
10009
|
+
hv as bq,
|
|
10010
|
+
Zo as br,
|
|
10011
|
+
pu as bs,
|
|
10012
|
+
kv as bt,
|
|
10013
|
+
wv as bu,
|
|
10014
|
+
Sv as bv,
|
|
10015
|
+
bv as bw,
|
|
10013
10016
|
No as bx,
|
|
10014
10017
|
_v as by,
|
|
10015
10018
|
Gi as bz,
|
|
10016
10019
|
to as c,
|
|
10017
|
-
|
|
10020
|
+
Qr as c0,
|
|
10018
10021
|
lf as c1,
|
|
10019
10022
|
ff as c2,
|
|
10020
10023
|
qd as c3,
|
|
@@ -10029,7 +10032,7 @@ export {
|
|
|
10029
10032
|
Wd as cC,
|
|
10030
10033
|
Yn as cD,
|
|
10031
10034
|
tf as cE,
|
|
10032
|
-
|
|
10035
|
+
Br as cF,
|
|
10033
10036
|
Ed as cG,
|
|
10034
10037
|
sf as ca,
|
|
10035
10038
|
mf as cb,
|
|
@@ -10050,13 +10053,13 @@ export {
|
|
|
10050
10053
|
Dc as cq,
|
|
10051
10054
|
Ld as cr,
|
|
10052
10055
|
sl as cs,
|
|
10053
|
-
|
|
10056
|
+
or as ct,
|
|
10054
10057
|
_t as cu,
|
|
10055
10058
|
dn as cv,
|
|
10056
10059
|
xc as cw,
|
|
10057
10060
|
ja as cx,
|
|
10058
10061
|
Ec as cy,
|
|
10059
|
-
|
|
10062
|
+
es as cz,
|
|
10060
10063
|
F as d,
|
|
10061
10064
|
no as e,
|
|
10062
10065
|
xn as f,
|
|
@@ -10078,7 +10081,7 @@ export {
|
|
|
10078
10081
|
Rm as v,
|
|
10079
10082
|
_m as w,
|
|
10080
10083
|
Ge as x,
|
|
10081
|
-
|
|
10082
|
-
|
|
10084
|
+
mr as y,
|
|
10085
|
+
vr as z
|
|
10083
10086
|
};
|
|
10084
|
-
//# sourceMappingURL=AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-
|
|
10087
|
+
//# sourceMappingURL=AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-BwQ3zfkc.mjs.map
|