@anzusystems/common-admin 1.47.0-beta.296 → 1.47.0-beta.298
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-CHzJB6mo.mjs → AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-8DsCUZHp.mjs} +468 -466
- package/dist/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-8DsCUZHp.mjs.map +1 -0
- package/dist/common-admin.d.ts +3 -12
- package/dist/common-admin.js +6602 -6599
- package/dist/common-admin.js.map +1 -1
- package/dist/labs.js +2 -2
- package/package.json +6 -6
- package/dist/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-CHzJB6mo.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Se, createBlock as ae, openBlock as q, withCtx as G, createVNode as K, createElementBlock as Oe, createCommentVNode as Te, renderSlot as
|
|
1
|
+
import { defineComponent as Se, createBlock as ae, openBlock as q, withCtx as G, createVNode as K, createElementBlock as Oe, createCommentVNode as Te, renderSlot as _e, normalizeClass as et, toDisplayString as $e, createElementVNode as Fe, isProxy as Wr, toRaw as $n, isRef as ya, unref as ie, computed as L, Fragment as Ft, normalizeStyle as Gr, createTextVNode as He, shallowRef as Oa, watch as Me, ref as P, reactive as Rt, inject as ee, createSlots as Pt, withDirectives as ca, onMounted as sr, withModifiers as Pe, TransitionGroup as Kr, mergeProps as ot, isVNode as Xr, useModel as da, vModelText as Ba, nextTick as pt, withKeys as Zr, getCurrentInstance as Fn, resolveDynamicComponent as Jr, provide as Ra, renderList as ur, toValue as Pa, toRef as Qr, onBeforeUnmount as eo, resolveComponent as La, mergeModels as Na } from "vue";
|
|
2
2
|
import { VRow as cr, VCol as dr, VSpacer as fr } from "vuetify/components/VGrid";
|
|
3
3
|
import { useI18n as Ye, createI18n as to } from "vue-i18n";
|
|
4
4
|
import { VIcon as Ue } from "vuetify/components/VIcon";
|
|
@@ -20,9 +20,9 @@ import { VDatePicker as Co } from "vuetify/components/VDatePicker";
|
|
|
20
20
|
import { VMenu as vr } from "vuetify/components/VMenu";
|
|
21
21
|
import { VForm as Eo } from "vuetify/components/VForm";
|
|
22
22
|
import { VToolbar as To, VToolbarTitle as Ao } from "vuetify/components/VToolbar";
|
|
23
|
-
import { VDialog as
|
|
24
|
-
import { VAvatar as
|
|
25
|
-
import { VProgressCircular as
|
|
23
|
+
import { VDialog as _o } from "vuetify/components/VDialog";
|
|
24
|
+
import { VAvatar as xo } from "vuetify/components/VAvatar";
|
|
25
|
+
import { VProgressCircular as Mo } from "vuetify/components/VProgressCircular";
|
|
26
26
|
const ko = { class: "text-high-emphasis" }, Tu = /* @__PURE__ */ Se({
|
|
27
27
|
__name: "ARow",
|
|
28
28
|
props: {
|
|
@@ -40,7 +40,7 @@ const ko = { class: "text-high-emphasis" }, Tu = /* @__PURE__ */ Se({
|
|
|
40
40
|
key: 0,
|
|
41
41
|
class: et(e.titleClass)
|
|
42
42
|
}, $e(e.title), 3)) : Te("", !0),
|
|
43
|
-
|
|
43
|
+
_e(n.$slots, "default", {}, () => [
|
|
44
44
|
Fe("span", ko, $e(e.value), 1)
|
|
45
45
|
])
|
|
46
46
|
]),
|
|
@@ -55,7 +55,7 @@ const ko = { class: "text-high-emphasis" }, Tu = /* @__PURE__ */ Se({
|
|
|
55
55
|
for (const [a, o] of n)
|
|
56
56
|
t[a] = o;
|
|
57
57
|
return t;
|
|
58
|
-
}, T = (e) => typeof e > "u", ye = (e) => !T(e), W = (e) => e === null, Ot = (e) => typeof e == "number",
|
|
58
|
+
}, T = (e) => typeof e > "u", ye = (e) => !T(e), W = (e) => e === null, Ot = (e) => typeof e == "number", xe = (e) => typeof e == "string", oe = (e) => Array.isArray(e), Au = (e) => typeof e == "function", lt = (e) => typeof e == "boolean", _u = (e) => xe(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), xu = (e) => {
|
|
59
59
|
const n = parseFloat(e);
|
|
60
60
|
return !isNaN(e) && (n | 0) === n;
|
|
61
61
|
}, tn = (e) => typeof e == "object" && !oe(e) && !W(e), Gt = (e) => tn(e) ? Object.keys(e).length === 0 : !1, fa = (e) => oe(e) && e.length === 0, br = (e) => W(e) || T(e) || e === "" || e === 0 || fa(e) || Gt(e), Ae = (e) => {
|
|
@@ -74,7 +74,7 @@ const ko = { class: "text-high-emphasis" }, Tu = /* @__PURE__ */ Se({
|
|
|
74
74
|
return n;
|
|
75
75
|
}
|
|
76
76
|
return Number.isNaN(t) ? n : t;
|
|
77
|
-
},
|
|
77
|
+
}, Mu = (e, n = 0) => {
|
|
78
78
|
let t = n;
|
|
79
79
|
try {
|
|
80
80
|
t = Number.parseFloat(e);
|
|
@@ -130,7 +130,7 @@ const ko = { class: "text-high-emphasis" }, Tu = /* @__PURE__ */ Se({
|
|
|
130
130
|
return r.length > 0 ? r : n.user.email.slice(0, 2);
|
|
131
131
|
});
|
|
132
132
|
return (r, l) => (q(), Oe(Ft, null, [
|
|
133
|
-
K(
|
|
133
|
+
K(xo, {
|
|
134
134
|
color: t.value,
|
|
135
135
|
class: et(["text-uppercase", e.containerClass]),
|
|
136
136
|
size: e.size
|
|
@@ -169,7 +169,7 @@ const ko = { class: "text-high-emphasis" }, Tu = /* @__PURE__ */ Se({
|
|
|
169
169
|
if (r.value)
|
|
170
170
|
return r.value.person.fullName.length ? r.value.person.fullName : r.value.email.split("@")[0];
|
|
171
171
|
});
|
|
172
|
-
return
|
|
172
|
+
return Me(
|
|
173
173
|
r,
|
|
174
174
|
async (s) => {
|
|
175
175
|
a.value || T(s) || !s._loaded || (t.value = s, a.value = !0);
|
|
@@ -182,7 +182,7 @@ const ko = { class: "text-high-emphasis" }, Tu = /* @__PURE__ */ Se({
|
|
|
182
182
|
"container-class": "",
|
|
183
183
|
size: 20,
|
|
184
184
|
tooltip: l.value
|
|
185
|
-
}, null, 8, ["user", "tooltip"])) : (q(), ae(
|
|
185
|
+
}, null, 8, ["user", "tooltip"])) : (q(), ae(Mo, {
|
|
186
186
|
key: 2,
|
|
187
187
|
size: 12,
|
|
188
188
|
width: 2,
|
|
@@ -332,7 +332,7 @@ function Ln(e, n, t = !1) {
|
|
|
332
332
|
$.room === e && ye(d.value) && d.value();
|
|
333
333
|
}, O = ($) => {
|
|
334
334
|
f.value = $, m.value = u.on(h);
|
|
335
|
-
},
|
|
335
|
+
}, M = ($) => {
|
|
336
336
|
b.value = $, y.value = S.on(D);
|
|
337
337
|
}, F = ($) => {
|
|
338
338
|
d.value = $, c.value = p.on(
|
|
@@ -353,7 +353,7 @@ function Ln(e, n, t = !1) {
|
|
|
353
353
|
});
|
|
354
354
|
return {
|
|
355
355
|
addCollabFieldDataChangeListener: O,
|
|
356
|
-
addCollabFieldLockStatusListener:
|
|
356
|
+
addCollabFieldLockStatusListener: M,
|
|
357
357
|
addCollabGatheringBufferDataListener: F,
|
|
358
358
|
acquireCollabFieldLock: ($ = {}) => {
|
|
359
359
|
if (!a.value.enabled || T(r.value)) return;
|
|
@@ -367,9 +367,9 @@ function Ln(e, n, t = !1) {
|
|
|
367
367
|
);
|
|
368
368
|
if (Ya(g)) {
|
|
369
369
|
l.has(e) || l.set(e, /* @__PURE__ */ new Map());
|
|
370
|
-
const
|
|
371
|
-
for (const [
|
|
372
|
-
l.get(e)?.set(
|
|
370
|
+
const x = new Map(Object.entries(g.locks));
|
|
371
|
+
for (const [_, B] of x.entries())
|
|
372
|
+
l.get(e)?.set(_, B);
|
|
373
373
|
return void S.emit(
|
|
374
374
|
v,
|
|
375
375
|
dn(Ut.Acquire, Ht.Success)
|
|
@@ -385,18 +385,18 @@ function Ln(e, n, t = !1) {
|
|
|
385
385
|
return;
|
|
386
386
|
}
|
|
387
387
|
r.value?.timeout(1e3).emit("releaseFieldLock", e, n, $, w, (g, v) => {
|
|
388
|
-
const
|
|
388
|
+
const x = { field: n, room: e };
|
|
389
389
|
if (g || Va(v))
|
|
390
390
|
return void S.emit(
|
|
391
|
-
|
|
391
|
+
x,
|
|
392
392
|
dn(Ut.Release, Ht.Failure)
|
|
393
393
|
);
|
|
394
394
|
if (Ya(v)) {
|
|
395
395
|
l.has(e) || l.set(e, /* @__PURE__ */ new Map());
|
|
396
|
-
for (const
|
|
397
|
-
l.get(e)?.delete(
|
|
396
|
+
for (const _ of Object.keys(v.locks))
|
|
397
|
+
l.get(e)?.delete(_);
|
|
398
398
|
return void S.emit(
|
|
399
|
-
|
|
399
|
+
x,
|
|
400
400
|
dn(Ut.Release, Ht.Success)
|
|
401
401
|
);
|
|
402
402
|
}
|
|
@@ -441,18 +441,18 @@ const rl = {
|
|
|
441
441
|
},
|
|
442
442
|
emits: ["update:modelValue", "click:append", "blur", "focus"],
|
|
443
443
|
setup(e, { expose: n, emit: t }) {
|
|
444
|
-
const a = e, o = t, r = P(null), { collabOptions: l } = Nt(), s = P((O,
|
|
444
|
+
const a = e, o = t, r = P(null), { collabOptions: l } = Nt(), s = P((O, M) => {
|
|
445
445
|
}), i = P((O) => {
|
|
446
446
|
}), u = P(null);
|
|
447
447
|
if (l.value.enabled && ye(a.collab)) {
|
|
448
448
|
const {
|
|
449
449
|
releaseCollabFieldLock: O,
|
|
450
|
-
acquireCollabFieldLock:
|
|
450
|
+
acquireCollabFieldLock: M,
|
|
451
451
|
addCollabFieldLockStatusListener: F,
|
|
452
452
|
addCollabGatheringBufferDataListener: N,
|
|
453
453
|
lockedByUser: A
|
|
454
454
|
} = Ln(a.collab.room, a.collab.field);
|
|
455
|
-
s.value = O, i.value =
|
|
455
|
+
s.value = O, i.value = M, Me(
|
|
456
456
|
A,
|
|
457
457
|
(I) => {
|
|
458
458
|
u.value = I;
|
|
@@ -480,7 +480,7 @@ const rl = {
|
|
|
480
480
|
focus: () => {
|
|
481
481
|
r.value?.focus();
|
|
482
482
|
}
|
|
483
|
-
}), (O,
|
|
483
|
+
}), (O, M) => (q(), ae(On, {
|
|
484
484
|
ref_key: "textFieldRef",
|
|
485
485
|
ref: r,
|
|
486
486
|
"prepend-icon": e.prependIcon,
|
|
@@ -497,10 +497,10 @@ const rl = {
|
|
|
497
497
|
"persistent-placeholder": e.persistentPlaceholder,
|
|
498
498
|
trim: "",
|
|
499
499
|
autocomplete: "off",
|
|
500
|
-
"onClick:append":
|
|
500
|
+
"onClick:append": M[0] || (M[0] = (F) => o("click:append", F)),
|
|
501
501
|
onBlur: b,
|
|
502
502
|
onFocus: p,
|
|
503
|
-
"onUpdate:modelValue":
|
|
503
|
+
"onUpdate:modelValue": M[1] || (M[1] = (F) => y(F))
|
|
504
504
|
}, Pt({ _: 2 }, [
|
|
505
505
|
e.hideLabel ? void 0 : {
|
|
506
506
|
name: "label",
|
|
@@ -513,7 +513,7 @@ const rl = {
|
|
|
513
513
|
u.value ? {
|
|
514
514
|
name: "append-inner",
|
|
515
515
|
fn: G(() => [
|
|
516
|
-
|
|
516
|
+
_e(O.$slots, "locked", { userId: u.value }, () => [
|
|
517
517
|
e.collab ? (q(), ae(Pn, {
|
|
518
518
|
key: 0,
|
|
519
519
|
id: u.value,
|
|
@@ -526,7 +526,7 @@ const rl = {
|
|
|
526
526
|
O.$slots.prepend ? {
|
|
527
527
|
name: "prepend",
|
|
528
528
|
fn: G(() => [
|
|
529
|
-
|
|
529
|
+
_e(O.$slots, "prepend")
|
|
530
530
|
]),
|
|
531
531
|
key: "2"
|
|
532
532
|
} : void 0,
|
|
@@ -566,7 +566,7 @@ function Qu(e) {
|
|
|
566
566
|
showPagination: L(() => !(e.page === 1 && e.currentViewCount < e.rowsPerPage))
|
|
567
567
|
};
|
|
568
568
|
}
|
|
569
|
-
const ll = ["createdAt", "modifiedAt"], ec = "_score", tc = "id", Tt = {
|
|
569
|
+
const ll = ["createdAt", "modifiedAt"], ec = "_score", tc = "id", nc = "score_date", ac = "score_best", Tt = {
|
|
570
570
|
Asc: "asc",
|
|
571
571
|
Desc: "desc"
|
|
572
572
|
}, il = {
|
|
@@ -575,7 +575,7 @@ const ll = ["createdAt", "modifiedAt"], ec = "_score", tc = "id", Tt = {
|
|
|
575
575
|
sortable: !1,
|
|
576
576
|
fixed: !1
|
|
577
577
|
};
|
|
578
|
-
function
|
|
578
|
+
function rc(e, n, t = void 0, a = void 0, o = !1, r = void 0, l = void 0, s = void 0, i = void 0) {
|
|
579
579
|
const u = l ?? he, { t: m } = u.global || u, f = ol();
|
|
580
580
|
if (r)
|
|
581
581
|
for (const d of Object.keys(f))
|
|
@@ -605,7 +605,7 @@ function nc(e, n, t = void 0, a = void 0, o = !1, r = void 0, l = void 0, s = vo
|
|
|
605
605
|
};
|
|
606
606
|
return sr(() => {
|
|
607
607
|
p();
|
|
608
|
-
}),
|
|
608
|
+
}), Me(n, (d) => {
|
|
609
609
|
c(d);
|
|
610
610
|
}), {
|
|
611
611
|
columnsAll: S,
|
|
@@ -629,7 +629,7 @@ const sl = /* @__PURE__ */ Se({
|
|
|
629
629
|
default: G(() => [
|
|
630
630
|
K(Ao, { class: "flex-fill" }, {
|
|
631
631
|
default: G(() => [
|
|
632
|
-
|
|
632
|
+
_e(o.$slots, "default")
|
|
633
633
|
]),
|
|
634
634
|
_: 3
|
|
635
635
|
}),
|
|
@@ -861,7 +861,7 @@ const fn = {
|
|
|
861
861
|
};
|
|
862
862
|
return I && (w[I] = "0px"), A && (A === "center" ? w.left = `calc(50% - ${+E / 2}${$})` : w[A] = "0px"), w;
|
|
863
863
|
}), m = L(() => l.value ? {
|
|
864
|
-
onEnter:
|
|
864
|
+
onEnter: M,
|
|
865
865
|
onLeave: F,
|
|
866
866
|
onAfterLeave: N
|
|
867
867
|
} : {}), f = (A) => {
|
|
@@ -884,9 +884,9 @@ const fn = {
|
|
|
884
884
|
text: C,
|
|
885
885
|
type: g,
|
|
886
886
|
data: v,
|
|
887
|
-
id:
|
|
888
|
-
} = A,
|
|
889
|
-
id:
|
|
887
|
+
id: x
|
|
888
|
+
} = A, _ = {
|
|
889
|
+
id: x || fl(),
|
|
890
890
|
title: w,
|
|
891
891
|
text: C,
|
|
892
892
|
type: g,
|
|
@@ -896,7 +896,7 @@ const fn = {
|
|
|
896
896
|
data: v,
|
|
897
897
|
duplicates: 0
|
|
898
898
|
};
|
|
899
|
-
I >= 0 && (
|
|
899
|
+
I >= 0 && (_.timer = hl(() => h(_), _.length));
|
|
900
900
|
const B = "bottom" in u.value, Y = e.reverse ? !B : B;
|
|
901
901
|
let z = -1;
|
|
902
902
|
const te = s.value.find((de) => de.title === A.title && de.text === A.text);
|
|
@@ -904,7 +904,7 @@ const fn = {
|
|
|
904
904
|
te.duplicates++;
|
|
905
905
|
return;
|
|
906
906
|
}
|
|
907
|
-
Y ? (o.value.push(
|
|
907
|
+
Y ? (o.value.push(_), n("start", _), s.value.length > e.max && (z = 0)) : (o.value.unshift(_), n("start", _), s.value.length > e.max && (z = s.value.length - 1)), z !== -1 && h(s.value[z]);
|
|
908
908
|
}, p = (A) => {
|
|
909
909
|
D(A);
|
|
910
910
|
}, c = (A) => ["vue-notification-template", e.classes, A.type || ""], d = (A) => l.value ? void 0 : {
|
|
@@ -921,7 +921,7 @@ const fn = {
|
|
|
921
921
|
var E;
|
|
922
922
|
const $ = (E = e.animation) == null ? void 0 : E[A];
|
|
923
923
|
return typeof $ == "function" ? $(I) : $;
|
|
924
|
-
},
|
|
924
|
+
}, M = (A, I) => {
|
|
925
925
|
const E = O("enter", A);
|
|
926
926
|
r(A, E, {
|
|
927
927
|
duration: e.speed,
|
|
@@ -989,7 +989,7 @@ function yl(e, n = {}) {
|
|
|
989
989
|
const t = n.name || "notify";
|
|
990
990
|
e.config.globalProperties["$" + t] = Ge, e.component(n.componentName || bl, gl);
|
|
991
991
|
}
|
|
992
|
-
const
|
|
992
|
+
const oc = {
|
|
993
993
|
install: yl
|
|
994
994
|
}, Sl = (e) => e instanceof it;
|
|
995
995
|
class it extends Error {
|
|
@@ -997,14 +997,14 @@ class it extends Error {
|
|
|
997
997
|
super(t), this.name = "AnzuFatalError", this.cause = n, this.message = t;
|
|
998
998
|
}
|
|
999
999
|
}
|
|
1000
|
-
const wl = 200, Dl = 201, Cl = 202, nn = 204,
|
|
1000
|
+
const wl = 200, Dl = 201, Cl = 202, nn = 204, lc = 400, ic = 401, El = 403, sc = 404, Ea = 422, Tl = [wl, Dl, Cl, nn], Nn = (e) => Lt.isAxiosError(e) && e.response?.status === El, Al = (e) => e instanceof an;
|
|
1001
1001
|
class an extends Error {
|
|
1002
1002
|
constructor(n, t = "") {
|
|
1003
1003
|
super(t), this.name = "AnzuApiForbiddenError", this.cause = n, this.message = t;
|
|
1004
1004
|
}
|
|
1005
1005
|
}
|
|
1006
|
-
const
|
|
1007
|
-
function
|
|
1006
|
+
const _l = "validation_failed", Yn = (e) => Lt.isAxiosError(e) && e.response?.status === Ea && e.response.data?.error === _l && e.response.data?.fields, xl = (e) => e instanceof rn, uc = (e, n, t) => e.fields.some((a) => a.field === t && a.errors.includes(n));
|
|
1007
|
+
function Ml(e, n, t) {
|
|
1008
1008
|
const a = e.response?.data, o = [];
|
|
1009
1009
|
for (const [r, l] of Object.entries(a.fields))
|
|
1010
1010
|
o.push({
|
|
@@ -1016,7 +1016,7 @@ function _l(e, n, t) {
|
|
|
1016
1016
|
class rn extends Error {
|
|
1017
1017
|
fields;
|
|
1018
1018
|
constructor(n, t, a, o, r = "") {
|
|
1019
|
-
super(r), this.name = "AnzuApiValidationError", this.cause = o, this.message = r, this.fields =
|
|
1019
|
+
super(r), this.name = "AnzuApiValidationError", this.cause = o, this.message = r, this.fields = Ml(n, t, a);
|
|
1020
1020
|
}
|
|
1021
1021
|
}
|
|
1022
1022
|
const Dr = (e) => e instanceof on;
|
|
@@ -1119,13 +1119,13 @@ function Ta() {
|
|
|
1119
1119
|
});
|
|
1120
1120
|
}, m = (c, d = -1, h = !1) => {
|
|
1121
1121
|
const { t: D, te: k } = he.global, O = [D("common.alert.fixApiValidationErrors")];
|
|
1122
|
-
for (let
|
|
1122
|
+
for (let M = 0; M < c.length; M++) {
|
|
1123
1123
|
let F = "";
|
|
1124
|
-
h ? F += c[
|
|
1124
|
+
h ? F += c[M].field : k(c[M].field) ? F += D(c[M].field) : c[M].field.includes("[") ? F += p(c[M].field) : F += c[M].field.split(".").at(-1);
|
|
1125
1125
|
const N = /* @__PURE__ */ new Set();
|
|
1126
|
-
for (let A = 0; A < c[
|
|
1127
|
-
if (k("error.apiValidation." + c[
|
|
1128
|
-
N.add(D("error.apiValidation." + c[
|
|
1126
|
+
for (let A = 0; A < c[M].errors.length; A++) {
|
|
1127
|
+
if (k("error.apiValidation." + c[M].errors[A])) {
|
|
1128
|
+
N.add(D("error.apiValidation." + c[M].errors[A]));
|
|
1129
1129
|
continue;
|
|
1130
1130
|
}
|
|
1131
1131
|
N.add(D("error.apiValidation.noTranslation"));
|
|
@@ -1163,9 +1163,9 @@ function Ta() {
|
|
|
1163
1163
|
duration: c * 1e3,
|
|
1164
1164
|
type: "error"
|
|
1165
1165
|
});
|
|
1166
|
-
}, b = (c, d = -1) => Al(c) ? (y(d), !0) :
|
|
1167
|
-
const { t: d } = he.global, h = c.split("["), D = h[0].trim(), k = h[1].split("]"), O = k[0],
|
|
1168
|
-
return d(D) + "[" + O + "]: " + d(D.slice(0, -1) +
|
|
1166
|
+
}, b = (c, d = -1) => Al(c) ? (y(d), !0) : xl(c) ? (m(c.fields, d), !0) : Ol(c) ? (a("error.apiDependencyExists.message", d), !0) : Il(c) ? (f(c.detail, d), !0) : Rl(c) ? (a("error.apiTimedOut.message", d), !0) : Ll(c) || Sl(c) || Dr(c) ? (S(d), !0) : !1, p = (c) => {
|
|
1167
|
+
const { t: d } = he.global, h = c.split("["), D = h[0].trim(), k = h[1].split("]"), O = k[0], M = k[1] ?? "";
|
|
1168
|
+
return d(D) + "[" + O + "]: " + d(D.slice(0, -1) + M);
|
|
1169
1169
|
};
|
|
1170
1170
|
return {
|
|
1171
1171
|
showSuccess: e,
|
|
@@ -1198,38 +1198,38 @@ function Vl() {
|
|
|
1198
1198
|
var g = ["th", "st", "nd", "rd"], v = C % 100;
|
|
1199
1199
|
return "[" + C + (g[(v - 20) % 10] || g[v] || g[0]) + "]";
|
|
1200
1200
|
} }, D = function(C, g, v) {
|
|
1201
|
-
var
|
|
1202
|
-
return !
|
|
1201
|
+
var x = String(C);
|
|
1202
|
+
return !x || x.length >= g ? C : "" + Array(g + 1 - x.length).join(v) + C;
|
|
1203
1203
|
}, k = { s: D, z: function(C) {
|
|
1204
|
-
var g = -C.utcOffset(), v = Math.abs(g),
|
|
1205
|
-
return (g <= 0 ? "+" : "-") + D(
|
|
1204
|
+
var g = -C.utcOffset(), v = Math.abs(g), x = Math.floor(v / 60), _ = v % 60;
|
|
1205
|
+
return (g <= 0 ? "+" : "-") + D(x, 2, "0") + ":" + D(_, 2, "0");
|
|
1206
1206
|
}, m: function C(g, v) {
|
|
1207
1207
|
if (g.date() < v.date()) return -C(v, g);
|
|
1208
|
-
var
|
|
1209
|
-
return +(-(
|
|
1208
|
+
var x = 12 * (v.year() - g.year()) + (v.month() - g.month()), _ = g.clone().add(x, f), B = v - _ < 0, Y = g.clone().add(x + (B ? -1 : 1), f);
|
|
1209
|
+
return +(-(x + (v - _) / (B ? _ - Y : Y - _)) || 0);
|
|
1210
1210
|
}, a: function(C) {
|
|
1211
1211
|
return C < 0 ? Math.ceil(C) || 0 : Math.floor(C);
|
|
1212
1212
|
}, p: function(C) {
|
|
1213
1213
|
return { M: f, y, w: m, d: u, D: b, h: i, m: s, s: l, ms: r, Q: S }[C] || String(C || "").toLowerCase().replace(/s$/, "");
|
|
1214
1214
|
}, u: function(C) {
|
|
1215
1215
|
return C === void 0;
|
|
1216
|
-
} }, O = "en",
|
|
1217
|
-
|
|
1216
|
+
} }, O = "en", M = {};
|
|
1217
|
+
M[O] = h;
|
|
1218
1218
|
var F = "$isDayjsObject", N = function(C) {
|
|
1219
1219
|
return C instanceof $ || !(!C || !C[F]);
|
|
1220
|
-
}, A = function C(g, v,
|
|
1221
|
-
var
|
|
1220
|
+
}, A = function C(g, v, x) {
|
|
1221
|
+
var _;
|
|
1222
1222
|
if (!g) return O;
|
|
1223
1223
|
if (typeof g == "string") {
|
|
1224
1224
|
var B = g.toLowerCase();
|
|
1225
|
-
|
|
1225
|
+
M[B] && (_ = B), v && (M[B] = v, _ = B);
|
|
1226
1226
|
var Y = g.split("-");
|
|
1227
|
-
if (!
|
|
1227
|
+
if (!_ && Y.length > 1) return C(Y[0]);
|
|
1228
1228
|
} else {
|
|
1229
1229
|
var z = g.name;
|
|
1230
|
-
|
|
1230
|
+
M[z] = g, _ = z;
|
|
1231
1231
|
}
|
|
1232
|
-
return !
|
|
1232
|
+
return !x && _ && (O = _), _ || !x && O;
|
|
1233
1233
|
}, I = function(C, g) {
|
|
1234
1234
|
if (N(C)) return C.clone();
|
|
1235
1235
|
var v = typeof g == "object" ? g : {};
|
|
@@ -1244,19 +1244,19 @@ function Vl() {
|
|
|
1244
1244
|
}
|
|
1245
1245
|
var g = C.prototype;
|
|
1246
1246
|
return g.parse = function(v) {
|
|
1247
|
-
this.$d = (function(
|
|
1248
|
-
var
|
|
1249
|
-
if (
|
|
1250
|
-
if (E.u(
|
|
1251
|
-
if (
|
|
1252
|
-
if (typeof
|
|
1253
|
-
var Y =
|
|
1247
|
+
this.$d = (function(x) {
|
|
1248
|
+
var _ = x.date, B = x.utc;
|
|
1249
|
+
if (_ === null) return /* @__PURE__ */ new Date(NaN);
|
|
1250
|
+
if (E.u(_)) return /* @__PURE__ */ new Date();
|
|
1251
|
+
if (_ instanceof Date) return new Date(_);
|
|
1252
|
+
if (typeof _ == "string" && !/Z$/i.test(_)) {
|
|
1253
|
+
var Y = _.match(c);
|
|
1254
1254
|
if (Y) {
|
|
1255
1255
|
var z = Y[2] - 1 || 0, te = (Y[7] || "0").substring(0, 3);
|
|
1256
1256
|
return B ? new Date(Date.UTC(Y[1], z, Y[3] || 1, Y[4] || 0, Y[5] || 0, Y[6] || 0, te)) : new Date(Y[1], z, Y[3] || 1, Y[4] || 0, Y[5] || 0, Y[6] || 0, te);
|
|
1257
1257
|
}
|
|
1258
1258
|
}
|
|
1259
|
-
return new Date(
|
|
1259
|
+
return new Date(_);
|
|
1260
1260
|
})(v), this.init();
|
|
1261
1261
|
}, g.init = function() {
|
|
1262
1262
|
var v = this.$d;
|
|
@@ -1265,25 +1265,25 @@ function Vl() {
|
|
|
1265
1265
|
return E;
|
|
1266
1266
|
}, g.isValid = function() {
|
|
1267
1267
|
return this.$d.toString() !== p;
|
|
1268
|
-
}, g.isSame = function(v,
|
|
1269
|
-
var
|
|
1270
|
-
return this.startOf(
|
|
1271
|
-
}, g.isAfter = function(v,
|
|
1272
|
-
return I(v) < this.startOf(
|
|
1273
|
-
}, g.isBefore = function(v,
|
|
1274
|
-
return this.endOf(
|
|
1275
|
-
}, g.$g = function(v,
|
|
1276
|
-
return E.u(v) ? this[
|
|
1268
|
+
}, g.isSame = function(v, x) {
|
|
1269
|
+
var _ = I(v);
|
|
1270
|
+
return this.startOf(x) <= _ && _ <= this.endOf(x);
|
|
1271
|
+
}, g.isAfter = function(v, x) {
|
|
1272
|
+
return I(v) < this.startOf(x);
|
|
1273
|
+
}, g.isBefore = function(v, x) {
|
|
1274
|
+
return this.endOf(x) < I(v);
|
|
1275
|
+
}, g.$g = function(v, x, _) {
|
|
1276
|
+
return E.u(v) ? this[x] : this.set(_, v);
|
|
1277
1277
|
}, g.unix = function() {
|
|
1278
1278
|
return Math.floor(this.valueOf() / 1e3);
|
|
1279
1279
|
}, g.valueOf = function() {
|
|
1280
1280
|
return this.$d.getTime();
|
|
1281
|
-
}, g.startOf = function(v,
|
|
1282
|
-
var
|
|
1283
|
-
var H = E.w(
|
|
1281
|
+
}, g.startOf = function(v, x) {
|
|
1282
|
+
var _ = this, B = !!E.u(x) || x, Y = E.p(v), z = function(fe, Ce) {
|
|
1283
|
+
var H = E.w(_.$u ? Date.UTC(_.$y, Ce, fe) : new Date(_.$y, Ce, fe), _);
|
|
1284
1284
|
return B ? H : H.endOf(u);
|
|
1285
1285
|
}, te = function(fe, Ce) {
|
|
1286
|
-
return E.w(
|
|
1286
|
+
return E.w(_.toDate()[fe].apply(_.toDate("s"), (B ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Ce)), _);
|
|
1287
1287
|
}, de = this.$W, ve = this.$M, ge = this.$D, U = "set" + (this.$u ? "UTC" : "");
|
|
1288
1288
|
switch (Y) {
|
|
1289
1289
|
case y:
|
|
@@ -1307,21 +1307,21 @@ function Vl() {
|
|
|
1307
1307
|
}
|
|
1308
1308
|
}, g.endOf = function(v) {
|
|
1309
1309
|
return this.startOf(v, !1);
|
|
1310
|
-
}, g.$set = function(v,
|
|
1311
|
-
var
|
|
1310
|
+
}, g.$set = function(v, x) {
|
|
1311
|
+
var _, B = E.p(v), Y = "set" + (this.$u ? "UTC" : ""), z = (_ = {}, _[u] = Y + "Date", _[b] = Y + "Date", _[f] = Y + "Month", _[y] = Y + "FullYear", _[i] = Y + "Hours", _[s] = Y + "Minutes", _[l] = Y + "Seconds", _[r] = Y + "Milliseconds", _)[B], te = B === u ? this.$D + (x - this.$W) : x;
|
|
1312
1312
|
if (B === f || B === y) {
|
|
1313
1313
|
var de = this.clone().set(b, 1);
|
|
1314
1314
|
de.$d[z](te), de.init(), this.$d = de.set(b, Math.min(this.$D, de.daysInMonth())).$d;
|
|
1315
1315
|
} else z && this.$d[z](te);
|
|
1316
1316
|
return this.init(), this;
|
|
1317
|
-
}, g.set = function(v,
|
|
1318
|
-
return this.clone().$set(v,
|
|
1317
|
+
}, g.set = function(v, x) {
|
|
1318
|
+
return this.clone().$set(v, x);
|
|
1319
1319
|
}, g.get = function(v) {
|
|
1320
1320
|
return this[E.p(v)]();
|
|
1321
|
-
}, g.add = function(v,
|
|
1322
|
-
var
|
|
1321
|
+
}, g.add = function(v, x) {
|
|
1322
|
+
var _, B = this;
|
|
1323
1323
|
v = Number(v);
|
|
1324
|
-
var Y = E.p(
|
|
1324
|
+
var Y = E.p(x), z = function(ve) {
|
|
1325
1325
|
var ge = I(B);
|
|
1326
1326
|
return E.w(ge.date(ge.date() + Math.round(ve * v)), B);
|
|
1327
1327
|
};
|
|
@@ -1329,15 +1329,15 @@ function Vl() {
|
|
|
1329
1329
|
if (Y === y) return this.set(y, this.$y + v);
|
|
1330
1330
|
if (Y === u) return z(1);
|
|
1331
1331
|
if (Y === m) return z(7);
|
|
1332
|
-
var te = (
|
|
1332
|
+
var te = (_ = {}, _[s] = a, _[i] = o, _[l] = t, _)[Y] || 1, de = this.$d.getTime() + v * te;
|
|
1333
1333
|
return E.w(de, this);
|
|
1334
|
-
}, g.subtract = function(v,
|
|
1335
|
-
return this.add(-1 * v,
|
|
1334
|
+
}, g.subtract = function(v, x) {
|
|
1335
|
+
return this.add(-1 * v, x);
|
|
1336
1336
|
}, g.format = function(v) {
|
|
1337
|
-
var
|
|
1338
|
-
if (!this.isValid()) return
|
|
1339
|
-
var B = v || "YYYY-MM-DDTHH:mm:ssZ", Y = E.z(this), z = this.$H, te = this.$m, de = this.$M, ve =
|
|
1340
|
-
return Ce && (Ce[H] || Ce(
|
|
1337
|
+
var x = this, _ = this.$locale();
|
|
1338
|
+
if (!this.isValid()) return _.invalidDate || p;
|
|
1339
|
+
var B = v || "YYYY-MM-DDTHH:mm:ssZ", Y = E.z(this), z = this.$H, te = this.$m, de = this.$M, ve = _.weekdays, ge = _.months, U = _.meridiem, J = function(Ce, H, re, ue) {
|
|
1340
|
+
return Ce && (Ce[H] || Ce(x, B)) || re[H].slice(0, ue);
|
|
1341
1341
|
}, j = function(Ce) {
|
|
1342
1342
|
return E.s(z % 12 || 12, Ce, "0");
|
|
1343
1343
|
}, fe = U || function(Ce, H, re) {
|
|
@@ -1348,29 +1348,29 @@ function Vl() {
|
|
|
1348
1348
|
return H || (function(re) {
|
|
1349
1349
|
switch (re) {
|
|
1350
1350
|
case "YY":
|
|
1351
|
-
return String(
|
|
1351
|
+
return String(x.$y).slice(-2);
|
|
1352
1352
|
case "YYYY":
|
|
1353
|
-
return E.s(
|
|
1353
|
+
return E.s(x.$y, 4, "0");
|
|
1354
1354
|
case "M":
|
|
1355
1355
|
return de + 1;
|
|
1356
1356
|
case "MM":
|
|
1357
1357
|
return E.s(de + 1, 2, "0");
|
|
1358
1358
|
case "MMM":
|
|
1359
|
-
return J(
|
|
1359
|
+
return J(_.monthsShort, de, ge, 3);
|
|
1360
1360
|
case "MMMM":
|
|
1361
1361
|
return J(ge, de);
|
|
1362
1362
|
case "D":
|
|
1363
|
-
return
|
|
1363
|
+
return x.$D;
|
|
1364
1364
|
case "DD":
|
|
1365
|
-
return E.s(
|
|
1365
|
+
return E.s(x.$D, 2, "0");
|
|
1366
1366
|
case "d":
|
|
1367
|
-
return String(
|
|
1367
|
+
return String(x.$W);
|
|
1368
1368
|
case "dd":
|
|
1369
|
-
return J(
|
|
1369
|
+
return J(_.weekdaysMin, x.$W, ve, 2);
|
|
1370
1370
|
case "ddd":
|
|
1371
|
-
return J(
|
|
1371
|
+
return J(_.weekdaysShort, x.$W, ve, 3);
|
|
1372
1372
|
case "dddd":
|
|
1373
|
-
return ve[
|
|
1373
|
+
return ve[x.$W];
|
|
1374
1374
|
case "H":
|
|
1375
1375
|
return String(z);
|
|
1376
1376
|
case "HH":
|
|
@@ -1388,11 +1388,11 @@ function Vl() {
|
|
|
1388
1388
|
case "mm":
|
|
1389
1389
|
return E.s(te, 2, "0");
|
|
1390
1390
|
case "s":
|
|
1391
|
-
return String(
|
|
1391
|
+
return String(x.$s);
|
|
1392
1392
|
case "ss":
|
|
1393
|
-
return E.s(
|
|
1393
|
+
return E.s(x.$s, 2, "0");
|
|
1394
1394
|
case "SSS":
|
|
1395
|
-
return E.s(
|
|
1395
|
+
return E.s(x.$ms, 3, "0");
|
|
1396
1396
|
case "Z":
|
|
1397
1397
|
return Y;
|
|
1398
1398
|
}
|
|
@@ -1401,8 +1401,8 @@ function Vl() {
|
|
|
1401
1401
|
}));
|
|
1402
1402
|
}, g.utcOffset = function() {
|
|
1403
1403
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1404
|
-
}, g.diff = function(v,
|
|
1405
|
-
var B, Y = this, z = E.p(
|
|
1404
|
+
}, g.diff = function(v, x, _) {
|
|
1405
|
+
var B, Y = this, z = E.p(x), te = I(v), de = (te.utcOffset() - this.utcOffset()) * a, ve = this - te, ge = function() {
|
|
1406
1406
|
return E.m(Y, te);
|
|
1407
1407
|
};
|
|
1408
1408
|
switch (z) {
|
|
@@ -1433,15 +1433,15 @@ function Vl() {
|
|
|
1433
1433
|
default:
|
|
1434
1434
|
B = ve;
|
|
1435
1435
|
}
|
|
1436
|
-
return
|
|
1436
|
+
return _ ? B : E.a(B);
|
|
1437
1437
|
}, g.daysInMonth = function() {
|
|
1438
1438
|
return this.endOf(f).$D;
|
|
1439
1439
|
}, g.$locale = function() {
|
|
1440
|
-
return
|
|
1441
|
-
}, g.locale = function(v,
|
|
1440
|
+
return M[this.$L];
|
|
1441
|
+
}, g.locale = function(v, x) {
|
|
1442
1442
|
if (!v) return this.$L;
|
|
1443
|
-
var
|
|
1444
|
-
return B && (
|
|
1443
|
+
var _ = this.clone(), B = A(v, x, !0);
|
|
1444
|
+
return B && (_.$L = B), _;
|
|
1445
1445
|
}, g.clone = function() {
|
|
1446
1446
|
return E.w(this.$d, this);
|
|
1447
1447
|
}, g.toDate = function() {
|
|
@@ -1462,7 +1462,7 @@ function Vl() {
|
|
|
1462
1462
|
return C.$i || (C(g, $, I), C.$i = !0), I;
|
|
1463
1463
|
}, I.locale = A, I.isDayjs = N, I.unix = function(C) {
|
|
1464
1464
|
return I(1e3 * C);
|
|
1465
|
-
}, I.en =
|
|
1465
|
+
}, I.en = M[O], I.Ls = M, I.p = {}, I;
|
|
1466
1466
|
}));
|
|
1467
1467
|
})(gn)), gn.exports;
|
|
1468
1468
|
}
|
|
@@ -1503,9 +1503,9 @@ function ql() {
|
|
|
1503
1503
|
if (d(p)) return this.$u ? 0 : d(this.$offset) ? f.call(this) : this.$offset;
|
|
1504
1504
|
if (typeof p == "string" && (p = (function(O) {
|
|
1505
1505
|
O === void 0 && (O = "");
|
|
1506
|
-
var
|
|
1507
|
-
if (!
|
|
1508
|
-
var F = ("" +
|
|
1506
|
+
var M = O.match(a);
|
|
1507
|
+
if (!M) return null;
|
|
1508
|
+
var F = ("" + M[0]).match(o) || ["-", 0, 0], N = F[0], A = 60 * +F[1] + +F[2];
|
|
1509
1509
|
return A === 0 ? 0 : N === "+" ? A : -A;
|
|
1510
1510
|
})(p), p === null)) return this;
|
|
1511
1511
|
var h = Math.abs(p) <= 16 ? 60 * p : p;
|
|
@@ -1612,16 +1612,16 @@ function Wl() {
|
|
|
1612
1612
|
return g || v.slice(1);
|
|
1613
1613
|
}));
|
|
1614
1614
|
}))).match(a), k = D.length, O = 0; O < k; O += 1) {
|
|
1615
|
-
var
|
|
1616
|
-
D[O] = A ? { regex: N, parser: A } :
|
|
1615
|
+
var M = D[O], F = b[M], N = F && F[0], A = F && F[1];
|
|
1616
|
+
D[O] = A ? { regex: N, parser: A } : M.replace(/^\[|\]$/g, "");
|
|
1617
1617
|
}
|
|
1618
1618
|
return function(I) {
|
|
1619
1619
|
for (var E = {}, $ = 0, w = 0; $ < k; $ += 1) {
|
|
1620
1620
|
var C = D[$];
|
|
1621
1621
|
if (typeof C == "string") w += C.length;
|
|
1622
1622
|
else {
|
|
1623
|
-
var g = C.regex, v = C.parser,
|
|
1624
|
-
v.call(E,
|
|
1623
|
+
var g = C.regex, v = C.parser, x = I.slice(w), _ = g.exec(x)[0];
|
|
1624
|
+
v.call(E, _), I = I.replace(_, "");
|
|
1625
1625
|
}
|
|
1626
1626
|
}
|
|
1627
1627
|
return (function(B) {
|
|
@@ -1637,22 +1637,22 @@ function Wl() {
|
|
|
1637
1637
|
h.p.customParseFormat = !0, c && c.parseTwoDigitYear && (u = c.parseTwoDigitYear);
|
|
1638
1638
|
var D = d.prototype, k = D.parse;
|
|
1639
1639
|
D.parse = function(O) {
|
|
1640
|
-
var
|
|
1640
|
+
var M = O.date, F = O.utc, N = O.args;
|
|
1641
1641
|
this.$u = F;
|
|
1642
1642
|
var A = N[1];
|
|
1643
1643
|
if (typeof A == "string") {
|
|
1644
1644
|
var I = N[2] === !0, E = N[3] === !0, $ = I || E, w = N[2];
|
|
1645
|
-
E && (w = N[2]), i = this.$locale(), !I && w && (i = h.Ls[w]), this.$d = (function(
|
|
1645
|
+
E && (w = N[2]), i = this.$locale(), !I && w && (i = h.Ls[w]), this.$d = (function(x, _, B, Y) {
|
|
1646
1646
|
try {
|
|
1647
|
-
if (["x", "X"].indexOf(
|
|
1648
|
-
var z = p(
|
|
1647
|
+
if (["x", "X"].indexOf(_) > -1) return new Date((_ === "X" ? 1e3 : 1) * x);
|
|
1648
|
+
var z = p(_)(x), te = z.year, de = z.month, ve = z.day, ge = z.hours, U = z.minutes, J = z.seconds, j = z.milliseconds, fe = z.zone, Ce = z.week, H = /* @__PURE__ */ new Date(), re = ve || (te || de ? 1 : H.getDate()), ue = te || H.getFullYear(), we = 0;
|
|
1649
1649
|
te && !de || (we = de > 0 ? de - 1 : H.getMonth());
|
|
1650
1650
|
var At, V = ge || 0, ne = U || 0, pe = J || 0, me = j || 0;
|
|
1651
1651
|
return fe ? new Date(Date.UTC(ue, we, re, V, ne, pe, me + 60 * fe.offset * 1e3)) : B ? new Date(Date.UTC(ue, we, re, V, ne, pe, me)) : (At = new Date(ue, we, re, V, ne, pe, me), Ce && (At = Y(At).week(Ce).toDate()), At);
|
|
1652
1652
|
} catch {
|
|
1653
1653
|
return /* @__PURE__ */ new Date("");
|
|
1654
1654
|
}
|
|
1655
|
-
})(
|
|
1655
|
+
})(M, A, F, h), this.init(), w && w !== !0 && (this.$L = this.locale(w).$L), $ && M != this.format(A) && (this.$d = /* @__PURE__ */ new Date("")), i = {};
|
|
1656
1656
|
} else if (A instanceof Array) for (var C = A.length, g = 1; g <= C; g += 1) {
|
|
1657
1657
|
N[1] = A[g - 1];
|
|
1658
1658
|
var v = h.apply(this, N);
|
|
@@ -1672,16 +1672,16 @@ var Gl = Wl();
|
|
|
1672
1672
|
const Ar = /* @__PURE__ */ Aa(Gl);
|
|
1673
1673
|
se.extend(Tr);
|
|
1674
1674
|
se.extend(Ar);
|
|
1675
|
-
const ht = ".000000Z", An = "YYYY-MM-DDTHH:mm:ss", Hn = "1970-01-01T00:00:00.000000Z", qn = "2100-01-01T00:00:00.000000Z",
|
|
1675
|
+
const ht = ".000000Z", An = "YYYY-MM-DDTHH:mm:ss", Hn = "1970-01-01T00:00:00.000000Z", qn = "2100-01-01T00:00:00.000000Z", cc = () => se().utc().toDate(), Kl = (e) => se(e).toDate(), dc = () => Io(se().utc().unix()), Xl = (e = !0, n = !1) => e && !n ? se().utc().format("YYYY-MM-DDTHH:mm:ss") + ht : e && n ? se().utc().format("YYYY-MM-DDTHH:mm:00") + ht : !e && n ? se().utc().format("YYYY-MM-DDTHH:mm:00.SSSSSS") + "Z" : se().utc().format("YYYY-MM-DDTHH:mm:ss.SSSSSS") + "Z", fc = (e = 0) => e === 0 ? se().startOf("day").utc().format(An) + ht : se().add(e, "days").startOf("day").utc().format(An) + ht, mc = (e = 0) => e === 0 ? se().endOf("day").utc().format(An) + ht : se().add(e, "days").endOf("day").utc().format(An) + ht, Zl = (e = 0, n = null) => (n === null && (n = /* @__PURE__ */ new Date()), e === 0 ? n : e > 0 ? se(n).add(e, "minutes").toDate() : e < 0 ? se(n).subtract(Math.abs(e), "minutes").toDate() : n), pa = (e) => se(e).utc().format("YYYY-MM-DDTHH:mm:ss") + ht, pc = () => se().utc().format("YYYY"), Jl = (e, n = "", t = !1) => e === qn || e === Hn || e === "" || W(e) || T(e) ? n : se(e).format(t ? "DD.MM.YYYY HH:mm:ss" : "DD.MM.YYYY HH:mm"), hc = (e, n = "", t = !1) => {
|
|
1676
1676
|
if (e === qn || e === Hn || e === "" || W(e) || T(e))
|
|
1677
1677
|
return n;
|
|
1678
1678
|
let a = !0, o = !0;
|
|
1679
1679
|
const r = se(e), l = se();
|
|
1680
1680
|
return l.format("YYYY") === r.format("YYYY") && (a = !1), l.format("YYYY-MM-DD") === r.format("YYYY-MM-DD") && (o = !1), !a && !o ? se(r).format(t ? "H:mm:ss" : "H:mm") : a ? se(r).format(t ? "D.M.YYYY H:mm:ss" : "D.M.YYYY H:mm") : se(r).format(t ? "D.M. H:mm:ss" : "D.M. H:mm");
|
|
1681
|
-
},
|
|
1681
|
+
}, vc = (e, n = "") => e === qn || e === Hn || e === "" || W(e) || T(e) ? n : se(e).format("DD.MM.YYYY"), gc = (e, n = "") => e === qn || e === Hn || e === "" || W(e) || T(e) ? n : se(e).format("HH:mm"), bc = (e, n, t = "ms") => {
|
|
1682
1682
|
const a = se(e), o = se(n);
|
|
1683
1683
|
return a.diff(o, t);
|
|
1684
|
-
},
|
|
1684
|
+
}, yc = (e) => typeof e == "string" && /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{3,6})?Z$/.test(e), Ql = (e, n, t = 0, a = !1) => {
|
|
1685
1685
|
const o = new Date(e);
|
|
1686
1686
|
o.setMonth(o.getMonth() + t), o.setDate(1), o.setHours(0, 0, 0, 0);
|
|
1687
1687
|
const r = new Date(e);
|
|
@@ -1689,7 +1689,7 @@ const ht = ".000000Z", An = "YYYY-MM-DDTHH:mm:ss", Hn = "1970-01-01T00:00:00.000
|
|
|
1689
1689
|
from: pa(o),
|
|
1690
1690
|
until: pa(r)
|
|
1691
1691
|
} : { from: o, until: r };
|
|
1692
|
-
}, Jn = Ql,
|
|
1692
|
+
}, Jn = Ql, _r = (e) => {
|
|
1693
1693
|
e?.currentTarget instanceof HTMLElement && e.currentTarget.blur();
|
|
1694
1694
|
}, ei = /* @__PURE__ */ Se({
|
|
1695
1695
|
__name: "AFilterSubmitButton",
|
|
@@ -1702,7 +1702,7 @@ const ht = ".000000Z", An = "YYYY-MM-DDTHH:mm:ss", Hn = "1970-01-01T00:00:00.000
|
|
|
1702
1702
|
emits: ["submit"],
|
|
1703
1703
|
setup(e, { emit: n }) {
|
|
1704
1704
|
const t = n, { t: a } = Ye(), o = (r) => {
|
|
1705
|
-
|
|
1705
|
+
_r(r), t("submit");
|
|
1706
1706
|
};
|
|
1707
1707
|
return (r, l) => (q(), ae(Ct, {
|
|
1708
1708
|
class: et(e.buttonClass),
|
|
@@ -1728,7 +1728,7 @@ const ht = ".000000Z", An = "YYYY-MM-DDTHH:mm:ss", Hn = "1970-01-01T00:00:00.000
|
|
|
1728
1728
|
emits: ["reset"],
|
|
1729
1729
|
setup(e, { emit: n }) {
|
|
1730
1730
|
const t = n, a = (r) => {
|
|
1731
|
-
|
|
1731
|
+
_r(r), t("reset");
|
|
1732
1732
|
}, { t: o } = Ye();
|
|
1733
1733
|
return (r, l) => (q(), ae(Ct, {
|
|
1734
1734
|
class: et([e.buttonClass, "px-2"]),
|
|
@@ -1763,7 +1763,7 @@ const ht = ".000000Z", An = "YYYY-MM-DDTHH:mm:ss", Hn = "1970-01-01T00:00:00.000
|
|
|
1763
1763
|
a && typeof a == "object" && ni(a);
|
|
1764
1764
|
}
|
|
1765
1765
|
return Object.freeze(e);
|
|
1766
|
-
},
|
|
1766
|
+
}, Sc = (e) => Object.keys(e).map((n) => e[n]), wc = (e, n, t = ".") => {
|
|
1767
1767
|
const a = n.split(t);
|
|
1768
1768
|
let o = e;
|
|
1769
1769
|
for (; a.length; ) {
|
|
@@ -1782,7 +1782,7 @@ const ht = ".000000Z", An = "YYYY-MM-DDTHH:mm:ss", Hn = "1970-01-01T00:00:00.000
|
|
|
1782
1782
|
}
|
|
1783
1783
|
r[o[0]] = t;
|
|
1784
1784
|
};
|
|
1785
|
-
function
|
|
1785
|
+
function Dc(e, n, t = ".") {
|
|
1786
1786
|
const a = n.split(t), o = a.length - 1;
|
|
1787
1787
|
function r(l, s = 0) {
|
|
1788
1788
|
const i = a[s];
|
|
@@ -1794,7 +1794,7 @@ function Sc(e, n, t = ".") {
|
|
|
1794
1794
|
}
|
|
1795
1795
|
return r(e), e;
|
|
1796
1796
|
}
|
|
1797
|
-
const zn = (e, n, t = "") => Gt(n) ? e : Oo(t === "" ? e : t, n), jn = (e) => Tl.includes(e),
|
|
1797
|
+
const zn = (e, n, t = "") => Gt(n) ? e : Oo(t === "" ? e : t, n), jn = (e) => Tl.includes(e), Cc = (e, n, t = {}, a, o, r = {}) => new Promise((l, s) => {
|
|
1798
1798
|
e().get(zn(n, t), r).then((i) => jn(i.status) ? i.data ? l(i.data) : i.status === nn ? l(null) : s(new it()) : s(new on(i.status))).catch((i) => Nn(i) ? s(new an(i, i.config?.url)) : Yn(i) ? s(new rn(i, a, o, i)) : Un(i) ? s(new sn(i, a, o, i)) : Vn(i) ? s(new ln(i, i)) : s(new it(i)));
|
|
1799
1799
|
}), { t: ri } = he.global;
|
|
1800
1800
|
function oi() {
|
|
@@ -1883,14 +1883,14 @@ function Ti() {
|
|
|
1883
1883
|
});
|
|
1884
1884
|
}
|
|
1885
1885
|
const { t: Ai } = he.global;
|
|
1886
|
-
function
|
|
1886
|
+
function _i() {
|
|
1887
1887
|
return We({ t: Ai })(wo, {
|
|
1888
1888
|
messagePath: () => "error.jsValidation.url"
|
|
1889
1889
|
});
|
|
1890
1890
|
}
|
|
1891
|
-
const { t:
|
|
1892
|
-
function
|
|
1893
|
-
const e = We({ t:
|
|
1891
|
+
const { t: xi } = he.global;
|
|
1892
|
+
function Mi() {
|
|
1893
|
+
const e = We({ t: xi }), n = (a, o, r) => (l) => {
|
|
1894
1894
|
const s = ie(a);
|
|
1895
1895
|
if (l === null && s === null || l === null || s === null)
|
|
1896
1896
|
return !0;
|
|
@@ -1920,7 +1920,7 @@ function _i() {
|
|
|
1920
1920
|
messagePath: (a) => `error.jsValidation.datesCompare.${a.$params.variant}`
|
|
1921
1921
|
});
|
|
1922
1922
|
}
|
|
1923
|
-
function
|
|
1923
|
+
function xr() {
|
|
1924
1924
|
return {
|
|
1925
1925
|
required: yi(),
|
|
1926
1926
|
requiredIf: wi(),
|
|
@@ -1932,9 +1932,9 @@ function Mr() {
|
|
|
1932
1932
|
email: ii(),
|
|
1933
1933
|
numeric: gi(),
|
|
1934
1934
|
slug: Ci(),
|
|
1935
|
-
url:
|
|
1935
|
+
url: _i(),
|
|
1936
1936
|
stringArrayItemLength: Ti(),
|
|
1937
|
-
datesCompare:
|
|
1937
|
+
datesCompare: Mi()
|
|
1938
1938
|
};
|
|
1939
1939
|
}
|
|
1940
1940
|
const ki = { class: "a-datetime-picker-time" }, Ii = { class: "a-datetime-picker-time__item a-datetime-picker-time__item" }, $i = { class: "a-datetime-picker-time__arrows" }, Fi = { class: "a-datetime-picker-time__item" }, Oi = { class: "a-datetime-picker-time__arrows" }, Bi = /* @__PURE__ */ Se({
|
|
@@ -1977,7 +1977,7 @@ const ki = { class: "a-datetime-picker-time" }, Ii = { class: "a-datetime-picker
|
|
|
1977
1977
|
}, y = () => {
|
|
1978
1978
|
r.value?.focus();
|
|
1979
1979
|
};
|
|
1980
|
-
return
|
|
1980
|
+
return Me([a, o], ([b, p], [c, d]) => {
|
|
1981
1981
|
if (b === c && p === d) return;
|
|
1982
1982
|
const h = parseInt(b ?? (t.value ? t.value.hours.toString() : "12")), D = parseInt(p ?? (t.value ? t.value.minutes.toString() : "0"));
|
|
1983
1983
|
h >= 0 && h <= 23 && D >= 0 && D <= 59 && (t.value = { hours: h, minutes: D });
|
|
@@ -2071,7 +2071,7 @@ const ki = { class: "a-datetime-picker-time" }, Ii = { class: "a-datetime-picker
|
|
|
2071
2071
|
setup(e, { emit: n }) {
|
|
2072
2072
|
const t = e, a = n;
|
|
2073
2073
|
se.extend(Tr), se.extend(Ar);
|
|
2074
|
-
const o = P(!1), r = P(0), l = P(0), s = P(null), i = P(""), u = P(null), m = P(null), f = P(null), { t: S } = Ye(), y = L(() => t.type === "datetime" ? "dd.mm.yyyy hh:mm" : "dd.mm.yyyy"), { requiredIf: b } =
|
|
2074
|
+
const o = P(!1), r = P(0), l = P(0), s = P(null), i = P(""), u = P(null), m = P(null), f = P(null), { t: S } = Ye(), y = L(() => t.type === "datetime" ? "dd.mm.yyyy hh:mm" : "dd.mm.yyyy"), { requiredIf: b } = xr(), p = L(() => ({
|
|
2075
2075
|
textFieldValue: {
|
|
2076
2076
|
required: b(t.required)
|
|
2077
2077
|
}
|
|
@@ -2080,7 +2080,7 @@ const ki = { class: "a-datetime-picker-time" }, Ii = { class: "a-datetime-picker
|
|
|
2080
2080
|
}, D = (E) => {
|
|
2081
2081
|
W(E) || ((W(m.value) || E.hour() !== m.value.hours || E.minute() !== m.value.minutes) && (m.value = { hours: E.hour(), minutes: E.minute() }), (W(u.value) || E.year() !== u.value.getFullYear() || E.month() !== u.value.getMonth() || E.date() !== u.value.getDate()) && (u.value = E.toDate()));
|
|
2082
2082
|
};
|
|
2083
|
-
|
|
2083
|
+
Me(
|
|
2084
2084
|
() => t.modelValue,
|
|
2085
2085
|
(E, $) => {
|
|
2086
2086
|
if (E !== $) {
|
|
@@ -2094,10 +2094,10 @@ const ki = { class: "a-datetime-picker-time" }, Ii = { class: "a-datetime-picker
|
|
|
2094
2094
|
{ immediate: !0 }
|
|
2095
2095
|
);
|
|
2096
2096
|
const k = (E, $) => W(E) ? $ : $.set("date", E.getDate()).set("month", E.getMonth()).set("year", E.getFullYear()), O = (E, $) => W(E) ? $ : $.set("hour", E.hours).set("minute", E.minutes);
|
|
2097
|
-
|
|
2097
|
+
Me([m, u], ([E, $]) => {
|
|
2098
2098
|
let w = null;
|
|
2099
2099
|
W(f.value) ? W(t.modelValue) ? w = se().hour(0).minute(0).second(0).millisecond(0) : w = se(t.modelValue, "YYYY-MM-DDTHH:mm:ss.SSSSSSZ") : w = f.value, w = O(E, w), w = k($, w), !w.isSame($n(f.value)) && (f.value = w);
|
|
2100
|
-
}),
|
|
2100
|
+
}), Me(
|
|
2101
2101
|
f,
|
|
2102
2102
|
(E) => {
|
|
2103
2103
|
if (W(E)) {
|
|
@@ -2108,7 +2108,7 @@ const ki = { class: "a-datetime-picker-time" }, Ii = { class: "a-datetime-picker
|
|
|
2108
2108
|
i.value = E.format(d.value), D(E), h($);
|
|
2109
2109
|
},
|
|
2110
2110
|
{ immediate: !0 }
|
|
2111
|
-
),
|
|
2111
|
+
), Me(o, (E) => {
|
|
2112
2112
|
if (E) {
|
|
2113
2113
|
F(), pt(() => {
|
|
2114
2114
|
r.value++;
|
|
@@ -2117,7 +2117,7 @@ const ki = { class: "a-datetime-picker-time" }, Ii = { class: "a-datetime-picker
|
|
|
2117
2117
|
}
|
|
2118
2118
|
a("onClose");
|
|
2119
2119
|
});
|
|
2120
|
-
const
|
|
2120
|
+
const M = L(() => ye(t.errorMessages) ? t.errorMessages : c.value.textFieldValue.$errors.length ? [c.value.textFieldValue.$errors.map((E) => E.$message).join(" ")] : []), F = () => {
|
|
2121
2121
|
const E = i.value.replace(/[^\s\d.:]/g, "").trim();
|
|
2122
2122
|
if (E.length === 0 && !t.required) {
|
|
2123
2123
|
f.value = null, a("blur");
|
|
@@ -2152,7 +2152,7 @@ const ki = { class: "a-datetime-picker-time" }, Ii = { class: "a-datetime-picker
|
|
|
2152
2152
|
ref: s,
|
|
2153
2153
|
modelValue: i.value,
|
|
2154
2154
|
"onUpdate:modelValue": $[3] || ($[3] = (w) => i.value = w),
|
|
2155
|
-
"error-messages":
|
|
2155
|
+
"error-messages": M.value,
|
|
2156
2156
|
"persistent-placeholder": !0,
|
|
2157
2157
|
placeholder: y.value,
|
|
2158
2158
|
class: "a-datetime-picker",
|
|
@@ -2213,7 +2213,7 @@ const ki = { class: "a-datetime-picker-time" }, Ii = { class: "a-datetime-picker
|
|
|
2213
2213
|
_: 1
|
|
2214
2214
|
})),
|
|
2215
2215
|
Fe("div", Pi, [
|
|
2216
|
-
|
|
2216
|
+
_e(E.$slots, "append-inner", {}, void 0, !0)
|
|
2217
2217
|
])
|
|
2218
2218
|
]),
|
|
2219
2219
|
_: 2
|
|
@@ -2228,7 +2228,7 @@ const ki = { class: "a-datetime-picker-time" }, Ii = { class: "a-datetime-picker
|
|
|
2228
2228
|
}
|
|
2229
2229
|
]), 1032, ["modelValue", "error-messages", "placeholder", "disabled"]));
|
|
2230
2230
|
}
|
|
2231
|
-
}),
|
|
2231
|
+
}), Mr = /* @__PURE__ */ gr(Ni, [["__scopeId", "data-v-73f392a7"]]), Ec = /* @__PURE__ */ Se({
|
|
2232
2232
|
__name: "AFormDatetimePicker",
|
|
2233
2233
|
props: {
|
|
2234
2234
|
modelValue: {},
|
|
@@ -2259,7 +2259,7 @@ const ki = { class: "a-datetime-picker-time" }, Ii = { class: "a-datetime-picker
|
|
|
2259
2259
|
t.collab.room,
|
|
2260
2260
|
t.collab.field
|
|
2261
2261
|
);
|
|
2262
|
-
l.value = F, s.value = N, i.value = A,
|
|
2262
|
+
l.value = F, s.value = N, i.value = A, Me(
|
|
2263
2263
|
I,
|
|
2264
2264
|
(E) => {
|
|
2265
2265
|
u.value = E;
|
|
@@ -2280,16 +2280,16 @@ const ki = { class: "a-datetime-picker-time" }, Ii = { class: "a-datetime-picker
|
|
|
2280
2280
|
if (T(p) || T(c) || T(t.v?.$path)) return "";
|
|
2281
2281
|
const { end: F } = wa(t.v?.$path, ".");
|
|
2282
2282
|
return b(p + "." + c + ".model." + F);
|
|
2283
|
-
}), O = L(() => ye(t.required) ? t.required : !!(t.v?.required && t.v?.required.$params.type === "required")),
|
|
2284
|
-
return
|
|
2283
|
+
}), O = L(() => ye(t.required) ? t.required : !!(t.v?.required && t.v?.required.$params.type === "required")), M = L(() => ye(t.disabled) ? t.disabled : !!u.value);
|
|
2284
|
+
return Me(o, (F, N) => {
|
|
2285
2285
|
F !== N && r.value.enabled && (f.value || m.value) && s.value(F);
|
|
2286
|
-
}), (F, N) => (q(), ae(
|
|
2286
|
+
}), (F, N) => (q(), ae(Mr, ot({
|
|
2287
2287
|
modelValue: o.value,
|
|
2288
2288
|
"onUpdate:modelValue": N[0] || (N[0] = (A) => o.value = A),
|
|
2289
2289
|
"data-cy": e.dataCy,
|
|
2290
2290
|
"error-messages": D.value,
|
|
2291
2291
|
required: O.value,
|
|
2292
|
-
disabled:
|
|
2292
|
+
disabled: M.value,
|
|
2293
2293
|
label: k.value,
|
|
2294
2294
|
clearable: e.clearable
|
|
2295
2295
|
}, F.$attrs, {
|
|
@@ -2299,7 +2299,7 @@ const ki = { class: "a-datetime-picker-time" }, Ii = { class: "a-datetime-picker
|
|
|
2299
2299
|
onOnClose: y
|
|
2300
2300
|
}), {
|
|
2301
2301
|
"append-inner": G(() => [
|
|
2302
|
-
|
|
2302
|
+
_e(F.$slots, "locked", { userId: u.value }, () => [
|
|
2303
2303
|
e.collab ? (q(), ae(Pn, {
|
|
2304
2304
|
key: 0,
|
|
2305
2305
|
id: u.value,
|
|
@@ -2310,7 +2310,7 @@ const ki = { class: "a-datetime-picker-time" }, Ii = { class: "a-datetime-picker
|
|
|
2310
2310
|
_: 3
|
|
2311
2311
|
}, 16, ["modelValue", "data-cy", "error-messages", "required", "disabled", "label", "clearable"]));
|
|
2312
2312
|
}
|
|
2313
|
-
}),
|
|
2313
|
+
}), Tc = /* @__PURE__ */ Se({
|
|
2314
2314
|
__name: "AFormSwitch",
|
|
2315
2315
|
props: {
|
|
2316
2316
|
modelValue: { type: Boolean },
|
|
@@ -2330,7 +2330,7 @@ const ki = { class: "a-datetime-picker-time" }, Ii = { class: "a-datetime-picker
|
|
|
2330
2330
|
t.collab.room,
|
|
2331
2331
|
t.collab.field
|
|
2332
2332
|
);
|
|
2333
|
-
r.value = y, l.value = b,
|
|
2333
|
+
r.value = y, l.value = b, Me(
|
|
2334
2334
|
p,
|
|
2335
2335
|
(c) => {
|
|
2336
2336
|
s.value = c;
|
|
@@ -2368,7 +2368,7 @@ const ki = { class: "a-datetime-picker-time" }, Ii = { class: "a-datetime-picker
|
|
|
2368
2368
|
s.value ? {
|
|
2369
2369
|
name: "append",
|
|
2370
2370
|
fn: G(() => [
|
|
2371
|
-
|
|
2371
|
+
_e(y.$slots, "locked", { userId: s.value }, () => [
|
|
2372
2372
|
e.collab ? (q(), ae(Pn, {
|
|
2373
2373
|
key: 0,
|
|
2374
2374
|
id: s.value,
|
|
@@ -2388,7 +2388,7 @@ const ki = { class: "a-datetime-picker-time" }, Ii = { class: "a-datetime-picker
|
|
|
2388
2388
|
lg: void 0,
|
|
2389
2389
|
xl: void 0
|
|
2390
2390
|
};
|
|
2391
|
-
function
|
|
2391
|
+
function Ac(e) {
|
|
2392
2392
|
return Rt(
|
|
2393
2393
|
e.reduce((n, t) => ({
|
|
2394
2394
|
...n,
|
|
@@ -2396,7 +2396,7 @@ function Ec(e) {
|
|
|
2396
2396
|
}), {})
|
|
2397
2397
|
);
|
|
2398
2398
|
}
|
|
2399
|
-
function
|
|
2399
|
+
function _c(e, n, t) {
|
|
2400
2400
|
const a = e.reduce(
|
|
2401
2401
|
(l, s) => {
|
|
2402
2402
|
const i = s.name, u = Ae(s.default);
|
|
@@ -2458,7 +2458,7 @@ function vt() {
|
|
|
2458
2458
|
else if (oe(s[r]) && s[r].length > 0) {
|
|
2459
2459
|
const S = s[r].findIndex((b) => b === l), y = [...$n(s[r])];
|
|
2460
2460
|
y.splice(S, 1), s[r] = y;
|
|
2461
|
-
} else (
|
|
2461
|
+
} else (xe(s[r]) || Ot(s[r]) || lt(s[r])) && (s[r] = m.default);
|
|
2462
2462
|
}, a = (r, l, s) => {
|
|
2463
2463
|
for (const i of s.value.keys())
|
|
2464
2464
|
o(i, l) && s.value.delete(i);
|
|
@@ -2478,10 +2478,10 @@ const Vi = {
|
|
|
2478
2478
|
storeFiltersLocalStorage: !0,
|
|
2479
2479
|
populateUrlParams: !0
|
|
2480
2480
|
};
|
|
2481
|
-
function
|
|
2481
|
+
function xc(e, n, t = {}) {
|
|
2482
2482
|
const a = { ...Vi, ...t }, o = "~";
|
|
2483
2483
|
let r;
|
|
2484
|
-
|
|
2484
|
+
xe(a.storeFiltersLocalStorage) ? r = a.storeFiltersLocalStorage : lt(a.storeFiltersLocalStorage) && a.storeFiltersLocalStorage === !0 && xe(n.general.system) && xe(n.general.subject) && (r = "tableFilter_" + n.general.system + "_" + n.general.subject);
|
|
2485
2485
|
const l = () => {
|
|
2486
2486
|
const d = {};
|
|
2487
2487
|
for (const h in e)
|
|
@@ -2494,8 +2494,8 @@ function Ac(e, n, t = {}) {
|
|
|
2494
2494
|
}, s = (d, h, D) => {
|
|
2495
2495
|
const k = new URLSearchParams();
|
|
2496
2496
|
for (const O in d) {
|
|
2497
|
-
const
|
|
2498
|
-
T(
|
|
2497
|
+
const M = d[O];
|
|
2498
|
+
T(M) || W(M) || oe(M) && fa(M) || tn(M) && Gt(M) || xe(M) && M.length === 0 || (oe(M) ? k.set(O, M.join(",")) : k.set(O, String(M)));
|
|
2499
2499
|
}
|
|
2500
2500
|
return D && h.value.sortBy && k.set(Qn, `${h.value.sortBy.key},${h.value.sortBy.order}`), k.size === 0 ? "" : k.toString() + o;
|
|
2501
2501
|
}, i = (d) => {
|
|
@@ -2503,9 +2503,9 @@ function Ac(e, n, t = {}) {
|
|
|
2503
2503
|
if (d.startsWith("#") && (d = d.substring(1)), d.endsWith(o))
|
|
2504
2504
|
d = d.slice(0, -1);
|
|
2505
2505
|
else {
|
|
2506
|
-
const
|
|
2507
|
-
if (
|
|
2508
|
-
d = d.substring(0,
|
|
2506
|
+
const M = d.lastIndexOf("&");
|
|
2507
|
+
if (M !== -1)
|
|
2508
|
+
d = d.substring(0, M);
|
|
2509
2509
|
else
|
|
2510
2510
|
return null;
|
|
2511
2511
|
}
|
|
@@ -2513,20 +2513,20 @@ function Ac(e, n, t = {}) {
|
|
|
2513
2513
|
let k = null;
|
|
2514
2514
|
const O = h.get(Qn);
|
|
2515
2515
|
if (O) {
|
|
2516
|
-
const [
|
|
2517
|
-
|
|
2516
|
+
const [M, F] = O.split(",");
|
|
2517
|
+
M && (F === Tt.Asc || F === Tt.Desc) && (k = { key: M, order: F }), h.delete(Qn);
|
|
2518
2518
|
}
|
|
2519
|
-
for (const [
|
|
2520
|
-
const N = n.fields[
|
|
2519
|
+
for (const [M, F] of h.entries()) {
|
|
2520
|
+
const N = n.fields[M];
|
|
2521
2521
|
if (T(N)) {
|
|
2522
|
-
console.error(`Filter config not found for ${
|
|
2522
|
+
console.error(`Filter config not found for ${M}`);
|
|
2523
2523
|
continue;
|
|
2524
2524
|
}
|
|
2525
2525
|
if (N.multiple ?? !1) {
|
|
2526
2526
|
const I = F.split(","), E = I.every(($) => !isNaN(Number($)));
|
|
2527
|
-
D[
|
|
2527
|
+
D[M] = E ? I.map(Number) : I;
|
|
2528
2528
|
} else
|
|
2529
|
-
D[
|
|
2529
|
+
D[M] = F;
|
|
2530
2530
|
}
|
|
2531
2531
|
return { filters: D, sortBy: k };
|
|
2532
2532
|
}, u = (d) => {
|
|
@@ -2538,7 +2538,7 @@ function Ac(e, n, t = {}) {
|
|
|
2538
2538
|
}, y = () => {
|
|
2539
2539
|
if (!r || !localStorage) return null;
|
|
2540
2540
|
const d = localStorage.getItem(r);
|
|
2541
|
-
return !d || !
|
|
2541
|
+
return !d || !xe(d) ? null : i(d);
|
|
2542
2542
|
};
|
|
2543
2543
|
return {
|
|
2544
2544
|
loadStoredFilters: (d, h) => {
|
|
@@ -2546,10 +2546,10 @@ function Ac(e, n, t = {}) {
|
|
|
2546
2546
|
if (W(k) && (D = "localStorage", k = y()), W(k) || Gt(k.filters) && Gt(k.sortBy))
|
|
2547
2547
|
return h && h(), !1;
|
|
2548
2548
|
for (const O in e) {
|
|
2549
|
-
const
|
|
2550
|
-
let F = k.filters[
|
|
2549
|
+
const M = O;
|
|
2550
|
+
let F = k.filters[M];
|
|
2551
2551
|
if (!T(F)) {
|
|
2552
|
-
if (
|
|
2552
|
+
if (xe(F)) {
|
|
2553
2553
|
const N = $o(F);
|
|
2554
2554
|
if (!W(N))
|
|
2555
2555
|
F = N;
|
|
@@ -2558,7 +2558,7 @@ function Ac(e, n, t = {}) {
|
|
|
2558
2558
|
W(A) || (F = A);
|
|
2559
2559
|
}
|
|
2560
2560
|
}
|
|
2561
|
-
e[
|
|
2561
|
+
e[M] = F;
|
|
2562
2562
|
}
|
|
2563
2563
|
}
|
|
2564
2564
|
if (D === "localStorage" && r && localStorage) {
|
|
@@ -2584,7 +2584,7 @@ const Et = {
|
|
|
2584
2584
|
Last3Months: "l3m",
|
|
2585
2585
|
Custom: "custom"
|
|
2586
2586
|
};
|
|
2587
|
-
function
|
|
2587
|
+
function Mc(e = void 0) {
|
|
2588
2588
|
const { t: n } = Ye(), t = L(() => {
|
|
2589
2589
|
const o = [
|
|
2590
2590
|
{
|
|
@@ -2631,8 +2631,8 @@ function xc(e = void 0) {
|
|
|
2631
2631
|
getTimeIntervalOption: (o) => t.value.find((r) => r.value === o)
|
|
2632
2632
|
};
|
|
2633
2633
|
}
|
|
2634
|
-
function
|
|
2635
|
-
const { datesCompare: n, required: t } =
|
|
2634
|
+
function kc(e) {
|
|
2635
|
+
const { datesCompare: n, required: t } = xr(), a = L(() => e.value.from), o = L(() => e.value.until), r = {
|
|
2636
2636
|
dialogData: {
|
|
2637
2637
|
from: {
|
|
2638
2638
|
required: t,
|
|
@@ -2656,10 +2656,10 @@ function Ui() {
|
|
|
2656
2656
|
}, a = (f, S) => {
|
|
2657
2657
|
!W(f) && f.length > 0 && i("order[" + f + "]", S ? Tt.Desc : Tt.Asc);
|
|
2658
2658
|
}, o = (f) => lt(f) ? f ? "1" : "0" : f, r = (f, S, y) => {
|
|
2659
|
-
|
|
2659
|
+
xe(y) && y.length === 0 || e.value.push("filter_" + f + "[" + S + "]=" + o(y));
|
|
2660
2660
|
}, l = (f, S, y, b, p, c) => {
|
|
2661
2661
|
let d = y[f], h = y[S];
|
|
2662
|
-
if (W(d) && p && !c && (d = b.fields[f].default), W(h) && p && !c && (h = b.fields[f].default),
|
|
2662
|
+
if (W(d) && p && !c && (d = b.fields[f].default), W(h) && p && !c && (h = b.fields[f].default), xe(d) && xe(h))
|
|
2663
2663
|
return {
|
|
2664
2664
|
from: d,
|
|
2665
2665
|
until: h
|
|
@@ -2680,7 +2680,7 @@ function Ui() {
|
|
|
2680
2680
|
};
|
|
2681
2681
|
}
|
|
2682
2682
|
return null;
|
|
2683
|
-
}, s = (f, S) => W(f) ? S.mandatory && !S.exclude && !T(S.default) ? oe(S.default) ? S.default.join(",") : S.default : null :
|
|
2683
|
+
}, s = (f, S) => W(f) ? S.mandatory && !S.exclude && !T(S.default) ? oe(S.default) ? S.default.join(",") : S.default : null : xe(f) ? f.length === 0 ? S.mandatory && !S.exclude && !T(S.default) && !W(S.default) ? encodeURIComponent(oe(S.default) ? S.default.join(",") : S.default) : null : encodeURIComponent(f) : oe(f) ? f.length === 0 ? S.mandatory && !S.exclude && oe(S.default) ? S.default.map((y) => xe(y) ? encodeURIComponent(y) : y).join(",") : null : f.map((y) => xe(y) ? encodeURIComponent(y) : y).join(",") : Ot(f) || lt(f) ? f : null, i = (f, S) => {
|
|
2684
2684
|
e.value.push(f + "=" + S);
|
|
2685
2685
|
};
|
|
2686
2686
|
return {
|
|
@@ -2732,7 +2732,7 @@ function Ui() {
|
|
|
2732
2732
|
const Hi = (e) => tn(e) && Object.hasOwn(e, "totalCount"), qi = (e) => tn(e) && Object.hasOwn(e, "hasNextPage"), zi = (e, n, t) => {
|
|
2733
2733
|
const { querySetLimit: a, querySetOffset: o, querySetOrder: r, queryBuild: l, querySetFilters: s } = Ui();
|
|
2734
2734
|
return a(e.value.rowsPerPage), o(e.value.page, e.value.rowsPerPage), e.value.sortBy && r(e.value.sortBy.key, e.value.sortBy.order === Tt.Desc), s(n, t), l();
|
|
2735
|
-
},
|
|
2735
|
+
}, Ic = (e, n, t, a = void 0, o = void 0, r = {}) => {
|
|
2736
2736
|
let l = null;
|
|
2737
2737
|
return {
|
|
2738
2738
|
executeFetch: async (u, m, f, S = void 0, y = void 0, b = !1) => {
|
|
@@ -2776,7 +2776,7 @@ const Hi = (e) => tn(e) && Object.hasOwn(e, "totalCount"), qi = (e) => tn(e) &&
|
|
|
2776
2776
|
}, ji = () => ({
|
|
2777
2777
|
rowsPerPage: 25
|
|
2778
2778
|
});
|
|
2779
|
-
function
|
|
2779
|
+
function _a(e, n = Tt.Desc, t = {}, a) {
|
|
2780
2780
|
const o = { ...ji(), ...t }, r = a ?? P({
|
|
2781
2781
|
sortBy: W(e) ? null : { key: e, order: n },
|
|
2782
2782
|
page: 1,
|
|
@@ -2787,7 +2787,7 @@ function xa(e, n = Tt.Desc, t = {}, a) {
|
|
|
2787
2787
|
totalCount: 0
|
|
2788
2788
|
});
|
|
2789
2789
|
function l(u, m) {
|
|
2790
|
-
if (
|
|
2790
|
+
if (xe(u)) {
|
|
2791
2791
|
r.value = { ...r.value, sortBy: { key: u, order: m } };
|
|
2792
2792
|
return;
|
|
2793
2793
|
}
|
|
@@ -2807,9 +2807,9 @@ function xa(e, n = Tt.Desc, t = {}, a) {
|
|
|
2807
2807
|
incrementPage: () => (r.value = { ...r.value, page: r.value.page + 1 }, r.value.page)
|
|
2808
2808
|
};
|
|
2809
2809
|
}
|
|
2810
|
-
const
|
|
2810
|
+
const $c = (e, n = {}, t, a = {}, o, r, l = {}) => new Promise((s, i) => {
|
|
2811
2811
|
e().post(zn(t, a), JSON.stringify(n), l).then((u) => jn(u.status) ? u.data ? s(u.data) : u.status === nn ? s(null) : i(new it()) : i(new on(u.status))).catch((u) => Nn(u) ? i(new an(u, u.config?.url)) : Yn(u) ? i(new rn(u, o, r, u)) : Un(u) ? i(new sn(u, o, r, u)) : Vn(u) ? i(new ln(u, u)) : i(new it(u)));
|
|
2812
|
-
}), gt = Symbol.for("anzu:FilterDataKey"), ut = Symbol.for("anzu:FilterConfigKey"),
|
|
2812
|
+
}), gt = Symbol.for("anzu:FilterDataKey"), ut = Symbol.for("anzu:FilterConfigKey"), xa = Symbol.for("anzu:FilterInnerDataKey"), Ma = Symbol.for("anzu:FilterInnerConfigKey"), bt = Symbol.for("anzu:FilterSubmitResetCounterKey"), yt = Symbol.for("anzu:FilterSelectedKey"), Fc = Symbol.for("anzu:DatatablePaginationKey"), Wi = /* @__PURE__ */ Se({
|
|
2813
2813
|
__name: "AFilterBooleanSelect",
|
|
2814
2814
|
props: {
|
|
2815
2815
|
name: {},
|
|
@@ -2890,15 +2890,15 @@ const kc = (e, n = {}, t, a = {}, o, r, l = {}) => new Promise((s, i) => {
|
|
|
2890
2890
|
r.value.set(t.name, [{ title: i.value + "", value: i.value }]);
|
|
2891
2891
|
return;
|
|
2892
2892
|
}
|
|
2893
|
-
if (
|
|
2894
|
-
if (
|
|
2893
|
+
if (xe(i.value)) {
|
|
2894
|
+
if (xe(i.value) && i.value.length === 0) {
|
|
2895
2895
|
r.value.delete(t.name);
|
|
2896
2896
|
return;
|
|
2897
2897
|
}
|
|
2898
2898
|
r.value.set(t.name, [{ title: i.value, value: i.value }]);
|
|
2899
2899
|
}
|
|
2900
2900
|
};
|
|
2901
|
-
return
|
|
2901
|
+
return Me(
|
|
2902
2902
|
() => s[t.name],
|
|
2903
2903
|
(c, d) => {
|
|
2904
2904
|
c === d || lt(c) || p();
|
|
@@ -2920,7 +2920,7 @@ const kc = (e, n = {}, t, a = {}, o, r, l = {}) => new Promise((s, i) => {
|
|
|
2920
2920
|
}), Ki = {
|
|
2921
2921
|
key: 0,
|
|
2922
2922
|
class: "font-italic pl-1"
|
|
2923
|
-
}, Xi = 300,
|
|
2923
|
+
}, Xi = 300, Oc = /* @__PURE__ */ Se({
|
|
2924
2924
|
__name: "AFilterRemoteAutocomplete",
|
|
2925
2925
|
props: {
|
|
2926
2926
|
name: {},
|
|
@@ -2935,7 +2935,7 @@ const kc = (e, n = {}, t, a = {}, o, r, l = {}) => new Promise((s, i) => {
|
|
|
2935
2935
|
},
|
|
2936
2936
|
emits: ["change"],
|
|
2937
2937
|
setup(e, { emit: n }) {
|
|
2938
|
-
const t = e, a = n, o = ee(bt), r = ee(yt), l = ee(ut), s = ee(gt), i = ee(
|
|
2938
|
+
const t = e, a = n, o = ee(bt), r = ee(yt), l = ee(ut), s = ee(gt), i = ee(Ma), u = ee(xa), m = Fn()?.type.__name;
|
|
2939
2939
|
if (T(o) || T(r) || T(s) || T(l) || T(i) || T(u))
|
|
2940
2940
|
throw new Error(`[${m}] Incorrect provide/inject config.`);
|
|
2941
2941
|
const f = t.filterByField, S = t.filterSortBy;
|
|
@@ -2945,7 +2945,7 @@ const kc = (e, n = {}, t, a = {}, o, r, l = {}) => new Promise((s, i) => {
|
|
|
2945
2945
|
);
|
|
2946
2946
|
const y = L(() => l.fields[t.name]), b = P([]), p = P(""), c = P(!1), d = P(null), h = P(0), { t: D } = Ye(), k = () => {
|
|
2947
2947
|
c.value = !1;
|
|
2948
|
-
}, O = L(() => y.value.titleT ? D(y.value.titleT) : void 0), { pagination:
|
|
2948
|
+
}, O = L(() => y.value.titleT ? D(y.value.titleT) : void 0), { pagination: M } = _a(W(S) ? null : S.key, S?.order), F = P([]), N = P([]), A = P(!0), I = P(!1), E = L(() => {
|
|
2949
2949
|
const H = /* @__PURE__ */ new Map(), re = (ue) => {
|
|
2950
2950
|
ue.forEach((we) => {
|
|
2951
2951
|
H.set(we.value, {
|
|
@@ -2971,30 +2971,30 @@ const kc = (e, n = {}, t, a = {}, o, r, l = {}) => new Promise((s, i) => {
|
|
|
2971
2971
|
} finally {
|
|
2972
2972
|
$.value = !1;
|
|
2973
2973
|
}
|
|
2974
|
-
}, { showErrorsDefault: v } = Ta(),
|
|
2974
|
+
}, { showErrorsDefault: v } = Ta(), x = async (H, re) => {
|
|
2975
2975
|
$.value = !0, u[f] = H;
|
|
2976
2976
|
try {
|
|
2977
|
-
const ue = await t.fetchItems(
|
|
2977
|
+
const ue = await t.fetchItems(M, u, i);
|
|
2978
2978
|
re === h.value && (F.value = ue);
|
|
2979
2979
|
} catch (ue) {
|
|
2980
2980
|
v(ue);
|
|
2981
2981
|
} finally {
|
|
2982
2982
|
$.value = !1;
|
|
2983
2983
|
}
|
|
2984
|
-
},
|
|
2984
|
+
}, _ = async (H) => {
|
|
2985
2985
|
if (!(t.prefetch === !1 || t.prefetch !== H) && !$.value && !I.value) {
|
|
2986
2986
|
$.value = !0;
|
|
2987
2987
|
try {
|
|
2988
|
-
const re = await t.fetchItems(
|
|
2988
|
+
const re = await t.fetchItems(M, u, i);
|
|
2989
2989
|
h.value === 0 && (F.value = re), I.value = !0;
|
|
2990
2990
|
} finally {
|
|
2991
2991
|
$.value = !1;
|
|
2992
2992
|
}
|
|
2993
2993
|
}
|
|
2994
2994
|
}, B = async () => {
|
|
2995
|
-
c.value = !0, await
|
|
2995
|
+
c.value = !0, await _("focus");
|
|
2996
2996
|
}, Y = async () => {
|
|
2997
|
-
await
|
|
2997
|
+
await _("hover");
|
|
2998
2998
|
}, z = L(() => {
|
|
2999
2999
|
if (!y.value.multiple && N.value[0])
|
|
3000
3000
|
return N.value[0].title;
|
|
@@ -3003,7 +3003,7 @@ const kc = (e, n = {}, t, a = {}, o, r, l = {}) => new Promise((s, i) => {
|
|
|
3003
3003
|
}, { clearOne: de } = vt(), ve = () => {
|
|
3004
3004
|
de(t.name, s, l), r.value.delete(t.name);
|
|
3005
3005
|
}, ge = async () => {
|
|
3006
|
-
F.value = await t.fetchItems(
|
|
3006
|
+
F.value = await t.fetchItems(M, u, i), ve();
|
|
3007
3007
|
};
|
|
3008
3008
|
Sa(
|
|
3009
3009
|
p,
|
|
@@ -3013,13 +3013,13 @@ const kc = (e, n = {}, t, a = {}, o, r, l = {}) => new Promise((s, i) => {
|
|
|
3013
3013
|
F.value = [];
|
|
3014
3014
|
return;
|
|
3015
3015
|
}
|
|
3016
|
-
h.value++,
|
|
3016
|
+
h.value++, x(H, h.value);
|
|
3017
3017
|
}
|
|
3018
3018
|
},
|
|
3019
3019
|
{ debounce: Xi }
|
|
3020
3020
|
);
|
|
3021
3021
|
const U = async () => {
|
|
3022
|
-
await
|
|
3022
|
+
await _("mounted");
|
|
3023
3023
|
}, J = L(() => T(t.placeholder) ? y.value.variant === "startsWith" ? D("common.model.filterPlaceholder.startsWith") : y.value.variant === "eq" ? D("common.model.filterPlaceholder.eq") : y.value.variant === "search" ? D("common.model.filterPlaceholder.contains") : "" : t.placeholder), j = L(() => {
|
|
3024
3024
|
if ($.value)
|
|
3025
3025
|
return "$vuetify.loading";
|
|
@@ -3043,7 +3043,7 @@ const kc = (e, n = {}, t, a = {}, o, r, l = {}) => new Promise((s, i) => {
|
|
|
3043
3043
|
}
|
|
3044
3044
|
r.value.set(t.name, [{ title: H.title, value: H.value }]);
|
|
3045
3045
|
};
|
|
3046
|
-
return
|
|
3046
|
+
return Me(
|
|
3047
3047
|
() => s[t.name],
|
|
3048
3048
|
async (H, re) => {
|
|
3049
3049
|
if (H === re || lt(H)) return;
|
|
@@ -3116,7 +3116,7 @@ const kc = (e, n = {}, t, a = {}, o, r, l = {}) => new Promise((s, i) => {
|
|
|
3116
3116
|
function Zi(e, n) {
|
|
3117
3117
|
return n.includes(e);
|
|
3118
3118
|
}
|
|
3119
|
-
const
|
|
3119
|
+
const Bc = /* @__PURE__ */ Se({
|
|
3120
3120
|
__name: "AFilterRemoteAutocompleteWithMinimal",
|
|
3121
3121
|
props: {
|
|
3122
3122
|
name: {},
|
|
@@ -3132,7 +3132,7 @@ const Fc = /* @__PURE__ */ Se({
|
|
|
3132
3132
|
},
|
|
3133
3133
|
emits: ["change"],
|
|
3134
3134
|
setup(e, { emit: n }) {
|
|
3135
|
-
const t = e, a = n, o = ee(bt), r = ee(yt), l = ee(ut), s = ee(gt), i = ee(
|
|
3135
|
+
const t = e, a = n, o = ee(bt), r = ee(yt), l = ee(ut), s = ee(gt), i = ee(Ma), u = ee(xa), m = Fn()?.type.__name;
|
|
3136
3136
|
if (T(o) || T(r) || T(s) || T(l) || T(i) || T(u))
|
|
3137
3137
|
throw new Error(`[${m}] Incorrect provide/inject config.`);
|
|
3138
3138
|
if (
|
|
@@ -3153,13 +3153,13 @@ const Fc = /* @__PURE__ */ Se({
|
|
|
3153
3153
|
);
|
|
3154
3154
|
const f = P([]), S = P(""), y = P(!1), b = P(void 0), p = P(0), { t: c } = Ye(), d = L(() => l.fields[t.name]), h = () => {
|
|
3155
3155
|
y.value = !1;
|
|
3156
|
-
}, D = L(() => d.value.titleT ? c(d.value.titleT) : void 0), { pagination: k } =
|
|
3156
|
+
}, D = L(() => d.value.titleT ? c(d.value.titleT) : void 0), { pagination: k } = _a(
|
|
3157
3157
|
// eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3158
3158
|
W(t.filterSortBy) ? null : t.filterSortBy.key,
|
|
3159
3159
|
t.filterSortBy?.order
|
|
3160
|
-
), O = P([]),
|
|
3160
|
+
), O = P([]), M = P([]), F = L(() => {
|
|
3161
3161
|
const U = /* @__PURE__ */ new Map(), J = /* @__PURE__ */ new Map();
|
|
3162
|
-
return
|
|
3162
|
+
return M.value.forEach((j) => {
|
|
3163
3163
|
j.raw ? (U.set(j.raw[t.itemValue], j.raw[t.itemTitle]), J.set(j.raw[t.itemValue], Ae(j.raw))) : (U.set(j[t.itemValue], j[t.itemTitle]), J.set(j[t.itemValue], Ae(j)));
|
|
3164
3164
|
}), O.value.forEach((j) => {
|
|
3165
3165
|
j.raw ? (U.set(j.raw[t.itemValue], j.raw[t.itemTitle]), J.set(j.raw[t.itemValue], Ae(j.raw))) : (U.set(j[t.itemValue], j[t.itemTitle]), J.set(j[t.itemValue], Ae(j)));
|
|
@@ -3177,7 +3177,7 @@ const Fc = /* @__PURE__ */ Se({
|
|
|
3177
3177
|
return [].concat(J);
|
|
3178
3178
|
}, $ = async (U) => {
|
|
3179
3179
|
let J = 1, j = [];
|
|
3180
|
-
return oe(U) ? (J = U.length, j = E(U)) : j = E([U]),
|
|
3180
|
+
return oe(U) ? (J = U.length, j = E(U)) : j = E([U]), M.value = j, j.length === J;
|
|
3181
3181
|
}, w = P(!1), C = () => {
|
|
3182
3182
|
clearTimeout(b.value), b.value = void 0;
|
|
3183
3183
|
}, g = async () => {
|
|
@@ -3187,13 +3187,13 @@ const Fc = /* @__PURE__ */ Se({
|
|
|
3187
3187
|
p.value === 0 && (O.value = U), N.value = !1;
|
|
3188
3188
|
}, v = () => {
|
|
3189
3189
|
y.value = !0, t.prefetch !== !1 && (C(), g());
|
|
3190
|
-
},
|
|
3190
|
+
}, x = () => {
|
|
3191
3191
|
t.prefetch === "focus" || t.prefetch === !1 || (C(), g());
|
|
3192
|
-
},
|
|
3193
|
-
if (!d.value.multiple &&
|
|
3194
|
-
return
|
|
3192
|
+
}, _ = L(() => {
|
|
3193
|
+
if (!d.value.multiple && M.value[0])
|
|
3194
|
+
return M.value[0].title;
|
|
3195
3195
|
}), B = (U) => {
|
|
3196
|
-
!d.value.multiple && !y.value && U.length === 0 ||
|
|
3196
|
+
!d.value.multiple && !y.value && U.length === 0 || _.value !== U && (S.value = U);
|
|
3197
3197
|
}, Y = (U) => {
|
|
3198
3198
|
l.touched = !0;
|
|
3199
3199
|
let J = null;
|
|
@@ -3216,26 +3216,26 @@ const Fc = /* @__PURE__ */ Se({
|
|
|
3216
3216
|
}
|
|
3217
3217
|
r.value.set(t.name, [{ title: U.title, value: U.value }]);
|
|
3218
3218
|
};
|
|
3219
|
-
return
|
|
3219
|
+
return Me(
|
|
3220
3220
|
() => s[t.name],
|
|
3221
3221
|
async (U, J) => {
|
|
3222
3222
|
if (U === J || lt(U)) return;
|
|
3223
3223
|
if (W(U) || T(U) || oe(U) && U.length === 0) {
|
|
3224
|
-
if (
|
|
3224
|
+
if (M.value = [], d.value.multiple ? f.value = [] : f.value = null, ge(f.value), w.value === !0 || Zi(t.prefetch, ["hover", "focus", !1])) return;
|
|
3225
3225
|
b.value = setTimeout(() => {
|
|
3226
3226
|
g();
|
|
3227
3227
|
}, 3e3);
|
|
3228
3228
|
return;
|
|
3229
3229
|
}
|
|
3230
3230
|
if (await $(U)) {
|
|
3231
|
-
f.value =
|
|
3231
|
+
f.value = M.value.map((fe) => ({ title: fe.title, value: fe.value })), ge(f.value);
|
|
3232
3232
|
return;
|
|
3233
3233
|
}
|
|
3234
3234
|
if (oe(U)) {
|
|
3235
|
-
N.value = !0,
|
|
3235
|
+
N.value = !0, M.value = await t.fetchItemsMinimalByIds(U), f.value = M.value.map((fe) => ({ title: fe.title, value: fe.value })), ge(f.value), N.value = !1;
|
|
3236
3236
|
return;
|
|
3237
3237
|
}
|
|
3238
|
-
N.value = !0,
|
|
3238
|
+
N.value = !0, M.value = await t.fetchItemsMinimalByIds([U]), f.value = M.value.map((fe) => ({ title: fe.title, value: fe.value }))[0], ge(f.value), N.value = !1;
|
|
3239
3239
|
},
|
|
3240
3240
|
{ immediate: !0 }
|
|
3241
3241
|
), Sa(
|
|
@@ -3264,11 +3264,11 @@ const Fc = /* @__PURE__ */ Se({
|
|
|
3264
3264
|
"onUpdate:search": B,
|
|
3265
3265
|
onBlur: h,
|
|
3266
3266
|
onFocus: v,
|
|
3267
|
-
onMouseenter:
|
|
3267
|
+
onMouseenter: x,
|
|
3268
3268
|
"onClick:clear": z
|
|
3269
3269
|
}, {
|
|
3270
3270
|
item: G(({ props: j, item: fe }) => [
|
|
3271
|
-
|
|
3271
|
+
_e(U.$slots, "item", {
|
|
3272
3272
|
item: fe,
|
|
3273
3273
|
props: j
|
|
3274
3274
|
}, () => [
|
|
@@ -3279,7 +3279,7 @@ const Fc = /* @__PURE__ */ Se({
|
|
|
3279
3279
|
])
|
|
3280
3280
|
]),
|
|
3281
3281
|
chip: G(({ props: j, item: fe }) => [
|
|
3282
|
-
|
|
3282
|
+
_e(U.$slots, "chip", {
|
|
3283
3283
|
props: j,
|
|
3284
3284
|
item: fe
|
|
3285
3285
|
}, () => [
|
|
@@ -3291,7 +3291,7 @@ const Fc = /* @__PURE__ */ Se({
|
|
|
3291
3291
|
_: 3
|
|
3292
3292
|
}, 8, ["modelValue", "items", "placeholder", "multiple", "clearable", "label", "chips", "loading"]));
|
|
3293
3293
|
}
|
|
3294
|
-
}),
|
|
3294
|
+
}), Rc = /* @__PURE__ */ Se({
|
|
3295
3295
|
__name: "AFilterValueObjectOptionsSelect",
|
|
3296
3296
|
props: {
|
|
3297
3297
|
name: {},
|
|
@@ -3334,7 +3334,7 @@ const Fc = /* @__PURE__ */ Se({
|
|
|
3334
3334
|
const d = t.items.find((h) => h.value === c);
|
|
3335
3335
|
d && r.value.set(t.name, [{ title: d.title, value: d.value }]);
|
|
3336
3336
|
};
|
|
3337
|
-
return
|
|
3337
|
+
return Me(
|
|
3338
3338
|
() => s[t.name],
|
|
3339
3339
|
(c, d) => {
|
|
3340
3340
|
c === d || lt(c) || p(c);
|
|
@@ -3386,9 +3386,9 @@ const Fc = /* @__PURE__ */ Se({
|
|
|
3386
3386
|
}), { t: u } = Ye(), m = L(() => l.fields[t.name]), f = L(() => m.value.titleT ? u(m.value.titleT) : void 0), { clearOne: S } = vt(), y = () => {
|
|
3387
3387
|
S(t.name, s, l), r.value.delete(t.name);
|
|
3388
3388
|
}, b = () => {
|
|
3389
|
-
!
|
|
3389
|
+
!xe(i.value) || xe(i.value) && i.value.length === 0 || r.value.set(t.name, [{ title: Jl(i.value), value: i.value }]);
|
|
3390
3390
|
};
|
|
3391
|
-
return (p, c) => (q(), ae(
|
|
3391
|
+
return (p, c) => (q(), ae(Mr, ot({
|
|
3392
3392
|
modelValue: i.value,
|
|
3393
3393
|
"onUpdate:modelValue": c[0] || (c[0] = (d) => i.value = d),
|
|
3394
3394
|
"data-cy": e.dataCy,
|
|
@@ -3425,15 +3425,15 @@ const Fc = /* @__PURE__ */ Se({
|
|
|
3425
3425
|
r.value.set(t.name, [{ title: i.value + "", value: i.value }]);
|
|
3426
3426
|
return;
|
|
3427
3427
|
}
|
|
3428
|
-
if (
|
|
3429
|
-
if (
|
|
3428
|
+
if (xe(i.value)) {
|
|
3429
|
+
if (xe(i.value) && i.value.length === 0) {
|
|
3430
3430
|
r.value.delete(t.name);
|
|
3431
3431
|
return;
|
|
3432
3432
|
}
|
|
3433
3433
|
r.value.set(t.name, [{ title: i.value, value: i.value }]);
|
|
3434
3434
|
}
|
|
3435
3435
|
};
|
|
3436
|
-
return
|
|
3436
|
+
return Me(
|
|
3437
3437
|
() => s[t.name],
|
|
3438
3438
|
(c, d) => {
|
|
3439
3439
|
c === d || lt(c) || p();
|
|
@@ -3482,7 +3482,7 @@ const Fc = /* @__PURE__ */ Se({
|
|
|
3482
3482
|
}), ns = { class: "subject-select-filter__content px-2 py-4" }, as = {
|
|
3483
3483
|
key: 0,
|
|
3484
3484
|
class: "subject-select-filter__actions"
|
|
3485
|
-
},
|
|
3485
|
+
}, Pc = /* @__PURE__ */ Se({
|
|
3486
3486
|
__name: "AFilterWrapperSubjectSelect",
|
|
3487
3487
|
props: {
|
|
3488
3488
|
hideButtons: { type: Boolean, default: !1 },
|
|
@@ -3516,7 +3516,7 @@ const Fc = /* @__PURE__ */ Se({
|
|
|
3516
3516
|
}, {
|
|
3517
3517
|
default: G(() => [
|
|
3518
3518
|
Fe("div", ns, [
|
|
3519
|
-
|
|
3519
|
+
_e(b.$slots, "detail", {}, () => [
|
|
3520
3520
|
K(cr, null, {
|
|
3521
3521
|
default: G(() => [
|
|
3522
3522
|
(q(!0), Oe(Ft, null, ur(y.value, (c) => (q(), ae(dr, {
|
|
@@ -3528,7 +3528,7 @@ const Fc = /* @__PURE__ */ Se({
|
|
|
3528
3528
|
xl: ie(o).fields[c].render.xl || 12
|
|
3529
3529
|
}, {
|
|
3530
3530
|
default: G(() => [
|
|
3531
|
-
|
|
3531
|
+
_e(b.$slots, ie(Ji)(c), {
|
|
3532
3532
|
itemConfig: ie(o).fields[c]
|
|
3533
3533
|
}, () => [
|
|
3534
3534
|
K(ts, { name: c }, null, 8, ["name"])
|
|
@@ -3542,7 +3542,7 @@ const Fc = /* @__PURE__ */ Se({
|
|
|
3542
3542
|
])
|
|
3543
3543
|
]),
|
|
3544
3544
|
e.hideButtons ? Te("", !0) : (q(), Oe("div", as, [
|
|
3545
|
-
|
|
3545
|
+
_e(b.$slots, "buttons", {}, () => [
|
|
3546
3546
|
K(ei, { touched: S.value }, null, 8, ["touched"]),
|
|
3547
3547
|
K(ti, { onReset: f })
|
|
3548
3548
|
])
|
|
@@ -3637,7 +3637,7 @@ function ce(e, n, t) {
|
|
|
3637
3637
|
function le(e, n, t) {
|
|
3638
3638
|
e.removeEventListener(n, t, !ct && Ir);
|
|
3639
3639
|
}
|
|
3640
|
-
function
|
|
3640
|
+
function _n(e, n) {
|
|
3641
3641
|
if (n) {
|
|
3642
3642
|
if (n[0] === ">" && (n = n.substring(1)), e)
|
|
3643
3643
|
try {
|
|
@@ -3660,7 +3660,7 @@ function Qe(e, n, t, a) {
|
|
|
3660
3660
|
if (e) {
|
|
3661
3661
|
t = t || document;
|
|
3662
3662
|
do {
|
|
3663
|
-
if (n != null && (n[0] === ">" ? e.parentNode === t &&
|
|
3663
|
+
if (n != null && (n[0] === ">" ? e.parentNode === t && _n(e, n) : _n(e, n)) || a && e === t)
|
|
3664
3664
|
return e;
|
|
3665
3665
|
if (e === t) break;
|
|
3666
3666
|
} while (e = $r(e));
|
|
@@ -3757,7 +3757,7 @@ function Bt(e, n, t, a) {
|
|
|
3757
3757
|
return null;
|
|
3758
3758
|
}
|
|
3759
3759
|
function Ia(e, n) {
|
|
3760
|
-
for (var t = e.lastElementChild; t && (t === Z.ghost || X(t, "display") === "none" || n && !
|
|
3760
|
+
for (var t = e.lastElementChild; t && (t === Z.ghost || X(t, "display") === "none" || n && !_n(t, n)); )
|
|
3761
3761
|
t = t.previousElementSibling;
|
|
3762
3762
|
return t || null;
|
|
3763
3763
|
}
|
|
@@ -3766,7 +3766,7 @@ function Ke(e, n) {
|
|
|
3766
3766
|
if (!e || !e.parentNode)
|
|
3767
3767
|
return -1;
|
|
3768
3768
|
for (; e = e.previousElementSibling; )
|
|
3769
|
-
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Z.clone && (!n ||
|
|
3769
|
+
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Z.clone && (!n || _n(e, n)) && t++;
|
|
3770
3770
|
return t;
|
|
3771
3771
|
}
|
|
3772
3772
|
function tr(e) {
|
|
@@ -3906,16 +3906,16 @@ function fs(e) {
|
|
|
3906
3906
|
function ms(e, n, t, a) {
|
|
3907
3907
|
return Math.sqrt(Math.pow(n.top - e.top, 2) + Math.pow(n.left - e.left, 2)) / Math.sqrt(Math.pow(n.top - t.top, 2) + Math.pow(n.left - t.left, 2)) * a.animation;
|
|
3908
3908
|
}
|
|
3909
|
-
var
|
|
3909
|
+
var xt = [], ta = {
|
|
3910
3910
|
initializeByDefault: !0
|
|
3911
3911
|
}, cn = {
|
|
3912
3912
|
mount: function(n) {
|
|
3913
3913
|
for (var t in ta)
|
|
3914
3914
|
ta.hasOwnProperty(t) && !(t in n) && (n[t] = ta[t]);
|
|
3915
|
-
|
|
3915
|
+
xt.forEach(function(a) {
|
|
3916
3916
|
if (a.pluginName === n.pluginName)
|
|
3917
3917
|
throw "Sortable: Cannot mount plugin ".concat(n.pluginName, " more than once");
|
|
3918
|
-
}),
|
|
3918
|
+
}), xt.push(n);
|
|
3919
3919
|
},
|
|
3920
3920
|
pluginEvent: function(n, t, a) {
|
|
3921
3921
|
var o = this;
|
|
@@ -3923,7 +3923,7 @@ var Mt = [], ta = {
|
|
|
3923
3923
|
o.eventCanceled = !0;
|
|
3924
3924
|
};
|
|
3925
3925
|
var r = n + "Global";
|
|
3926
|
-
|
|
3926
|
+
xt.forEach(function(l) {
|
|
3927
3927
|
t[l.pluginName] && (t[l.pluginName][r] && t[l.pluginName][r](nt({
|
|
3928
3928
|
sortable: t
|
|
3929
3929
|
}, a)), t.options[l.pluginName] && t[l.pluginName][n] && t[l.pluginName][n](nt({
|
|
@@ -3932,7 +3932,7 @@ var Mt = [], ta = {
|
|
|
3932
3932
|
});
|
|
3933
3933
|
},
|
|
3934
3934
|
initializePlugins: function(n, t, a, o) {
|
|
3935
|
-
|
|
3935
|
+
xt.forEach(function(s) {
|
|
3936
3936
|
var i = s.pluginName;
|
|
3937
3937
|
if (!(!n.options[i] && !s.initializeByDefault)) {
|
|
3938
3938
|
var u = new s(n, t, n.options);
|
|
@@ -3947,13 +3947,13 @@ var Mt = [], ta = {
|
|
|
3947
3947
|
},
|
|
3948
3948
|
getEventProperties: function(n, t) {
|
|
3949
3949
|
var a = {};
|
|
3950
|
-
return
|
|
3950
|
+
return xt.forEach(function(o) {
|
|
3951
3951
|
typeof o.eventProperties == "function" && st(a, o.eventProperties.call(t[o.pluginName], n));
|
|
3952
3952
|
}), a;
|
|
3953
3953
|
},
|
|
3954
3954
|
modifyOption: function(n, t, a) {
|
|
3955
3955
|
var o;
|
|
3956
|
-
return
|
|
3956
|
+
return xt.forEach(function(r) {
|
|
3957
3957
|
n[r.pluginName] && r.optionListeners && typeof r.optionListeners[t] == "function" && (o = r.optionListeners[t].call(n[r.pluginName], a));
|
|
3958
3958
|
}), o;
|
|
3959
3959
|
}
|
|
@@ -4020,7 +4020,7 @@ function Ne(e) {
|
|
|
4020
4020
|
newDraggableIndex: dt
|
|
4021
4021
|
}, e));
|
|
4022
4022
|
}
|
|
4023
|
-
var R, Ee, Q, be, Dt, wn, De, ft, It, je, Zt, dt, mn, Re, kt = !1,
|
|
4023
|
+
var R, Ee, Q, be, Dt, wn, De, ft, It, je, Zt, dt, mn, Re, kt = !1, xn = !1, Mn = [], St, Je, na, aa, nr, ar, qt, Mt, Jt, Qt = !1, pn = !1, Dn, Le, ra = [], ha = !1, kn = [], Wn = typeof document < "u", hn = ka, rr = un || ct ? "cssFloat" : "float", vs = Wn && !kr && !ka && "draggable" in document.createElement("div"), Lr = (function() {
|
|
4024
4024
|
if (Wn) {
|
|
4025
4025
|
if (ct)
|
|
4026
4026
|
return !1;
|
|
@@ -4043,7 +4043,7 @@ var R, Ee, Q, be, Dt, wn, De, ft, It, je, Zt, dt, mn, Re, kt = !1, Mn = !1, _n =
|
|
|
4043
4043
|
return o === s || r === i || o + l / 2 === s + u / 2;
|
|
4044
4044
|
}, bs = function(n, t) {
|
|
4045
4045
|
var a;
|
|
4046
|
-
return
|
|
4046
|
+
return Mn.some(function(o) {
|
|
4047
4047
|
var r = o[qe].options.emptyInsertThreshold;
|
|
4048
4048
|
if (!(!r || Ia(o))) {
|
|
4049
4049
|
var l = Ie(o), s = n >= l.left - r && n <= l.right + r, i = t >= l.top - r && t <= l.bottom + r;
|
|
@@ -4077,8 +4077,8 @@ var R, Ee, Q, be, Dt, wn, De, ft, It, je, Zt, dt, mn, Re, kt = !1, Mn = !1, _n =
|
|
|
4077
4077
|
!Lr && Q && X(Q, "display", "");
|
|
4078
4078
|
};
|
|
4079
4079
|
Wn && !kr && document.addEventListener("click", function(e) {
|
|
4080
|
-
if (
|
|
4081
|
-
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(),
|
|
4080
|
+
if (xn)
|
|
4081
|
+
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), xn = !1, !1;
|
|
4082
4082
|
}, !0);
|
|
4083
4083
|
var wt = function(n) {
|
|
4084
4084
|
if (R) {
|
|
@@ -4150,13 +4150,13 @@ function Z(e, n) {
|
|
|
4150
4150
|
Yr(n);
|
|
4151
4151
|
for (var o in this)
|
|
4152
4152
|
o.charAt(0) === "_" && typeof this[o] == "function" && (this[o] = this[o].bind(this));
|
|
4153
|
-
this.nativeDraggable = n.forceFallback ? !1 : vs, this.nativeDraggable && (this.options.touchStartThreshold = 1), n.supportPointer ? ce(e, "pointerdown", this._onTapStart) : (ce(e, "mousedown", this._onTapStart), ce(e, "touchstart", this._onTapStart)), this.nativeDraggable && (ce(e, "dragover", this), ce(e, "dragenter", this)),
|
|
4153
|
+
this.nativeDraggable = n.forceFallback ? !1 : vs, this.nativeDraggable && (this.options.touchStartThreshold = 1), n.supportPointer ? ce(e, "pointerdown", this._onTapStart) : (ce(e, "mousedown", this._onTapStart), ce(e, "touchstart", this._onTapStart)), this.nativeDraggable && (ce(e, "dragover", this), ce(e, "dragenter", this)), Mn.push(this.el), n.store && n.store.get && this.sort(n.store.get(this) || []), st(this, ds());
|
|
4154
4154
|
}
|
|
4155
4155
|
Z.prototype = /** @lends Sortable.prototype */
|
|
4156
4156
|
{
|
|
4157
4157
|
constructor: Z,
|
|
4158
4158
|
_isOutsideThisEl: function(n) {
|
|
4159
|
-
!this.el.contains(n) && n !== this.el && (
|
|
4159
|
+
!this.el.contains(n) && n !== this.el && (Mt = null);
|
|
4160
4160
|
},
|
|
4161
4161
|
_getDirection: function(n, t) {
|
|
4162
4162
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, n, t, R) : this.options.direction;
|
|
@@ -4164,7 +4164,7 @@ Z.prototype = /** @lends Sortable.prototype */
|
|
|
4164
4164
|
_onTapStart: function(n) {
|
|
4165
4165
|
if (n.cancelable) {
|
|
4166
4166
|
var t = this, a = this.el, o = this.options, r = o.preventOnFilter, l = n.type, s = n.touches && n.touches[0] || n.pointerType && n.pointerType === "touch" && n, i = (s || n).target, u = n.target.shadowRoot && (n.path && n.path[0] || n.composedPath && n.composedPath()[0]) || i, m = o.filter;
|
|
4167
|
-
if (
|
|
4167
|
+
if (_s(a), !R && !(/mousedown|pointerdown/.test(l) && n.button !== 0 || o.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Kt && i && i.tagName.toUpperCase() === "SELECT") && (i = Qe(i, o.draggable, a, !1), !(i && i.animated) && wn !== i)) {
|
|
4168
4168
|
if (It = Ke(i), Zt = Ke(i, o.draggable), typeof m == "function") {
|
|
4169
4169
|
if (m.call(this, n, i, this)) {
|
|
4170
4170
|
Ne({
|
|
@@ -4336,14 +4336,14 @@ Z.prototype = /** @lends Sortable.prototype */
|
|
|
4336
4336
|
sortable: a,
|
|
4337
4337
|
name: "clone"
|
|
4338
4338
|
}));
|
|
4339
|
-
}), !t && ze(R, r.dragClass, !0), t ? (
|
|
4339
|
+
}), !t && ze(R, r.dragClass, !0), t ? (xn = !0, a._loopId = setInterval(a._emulateDragOver, 50)) : (le(document, "mouseup", a._onDrop), le(document, "touchend", a._onDrop), le(document, "touchcancel", a._onDrop), o && (o.effectAllowed = "move", r.setData && r.setData.call(a, o, R)), ce(document, "drop", a), X(R, "transform", "translateZ(0)")), kt = !0, a._dragStartId = Cn(a._dragStarted.bind(a, t, n)), ce(document, "selectstart", a), qt = !0, window.getSelection().removeAllRanges(), Kt && X(document.body, "user-select", "none");
|
|
4340
4340
|
},
|
|
4341
4341
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
4342
4342
|
_onDragOver: function(n) {
|
|
4343
4343
|
var t = this.el, a = n.target, o, r, l, s = this.options, i = s.group, u = Z.active, m = mn === i, f = s.sort, S = Re || u, y, b = this, p = !1;
|
|
4344
4344
|
if (ha) return;
|
|
4345
|
-
function c(
|
|
4346
|
-
Ve(
|
|
4345
|
+
function c(_, B) {
|
|
4346
|
+
Ve(_, b, nt({
|
|
4347
4347
|
evt: n,
|
|
4348
4348
|
isOwner: m,
|
|
4349
4349
|
axis: y ? "vertical" : "horizontal",
|
|
@@ -4363,12 +4363,12 @@ Z.prototype = /** @lends Sortable.prototype */
|
|
|
4363
4363
|
function d() {
|
|
4364
4364
|
c("dragOverAnimationCapture"), b.captureAnimationState(), b !== S && S.captureAnimationState();
|
|
4365
4365
|
}
|
|
4366
|
-
function h(
|
|
4366
|
+
function h(_) {
|
|
4367
4367
|
return c("dragOverCompleted", {
|
|
4368
|
-
insertion:
|
|
4369
|
-
}),
|
|
4368
|
+
insertion: _
|
|
4369
|
+
}), _ && (m ? u._hideClone() : u._showClone(b), b !== S && (ze(R, Re ? Re.options.ghostClass : u.options.ghostClass, !1), ze(R, s.ghostClass, !0)), Re !== b && b !== Z.active ? Re = b : b === Z.active && Re && (Re = null), S === b && (b._ignoreWhileAnimating = a), b.animateAll(function() {
|
|
4370
4370
|
c("dragOverAnimationComplete"), b._ignoreWhileAnimating = null;
|
|
4371
|
-
}), b !== S && (S.animateAll(), S._ignoreWhileAnimating = null)), (a === R && !R.animated || a === t && !a.animated) && (
|
|
4371
|
+
}), b !== S && (S.animateAll(), S._ignoreWhileAnimating = null)), (a === R && !R.animated || a === t && !a.animated) && (Mt = null), !s.dragoverBubble && !n.rootEl && a !== document && (R.parentNode[qe]._isOutsideThisEl(n.target), !_ && wt(n)), !s.dragoverBubble && n.stopPropagation && n.stopPropagation(), p = !0;
|
|
4372
4372
|
}
|
|
4373
4373
|
function D() {
|
|
4374
4374
|
je = Ke(R), dt = Ke(R, s.draggable), Ne({
|
|
@@ -4383,7 +4383,7 @@ Z.prototype = /** @lends Sortable.prototype */
|
|
|
4383
4383
|
if (n.preventDefault !== void 0 && n.cancelable && n.preventDefault(), a = Qe(a, s.draggable, t, !0), c("dragOver"), Z.eventCanceled) return p;
|
|
4384
4384
|
if (R.contains(n.target) || a.animated && a.animatingX && a.animatingY || b._ignoreWhileAnimating === a)
|
|
4385
4385
|
return h(!1);
|
|
4386
|
-
if (
|
|
4386
|
+
if (xn = !1, u && !s.disabled && (m ? f || (l = Ee !== be) : Re === this || (this.lastPutMode = mn.checkPull(this, u, R, n)) && i.checkPut(this, u, R, n))) {
|
|
4387
4387
|
if (y = this._getDirection(n, a) === "vertical", o = Ie(R), c("dragOverValid"), Z.eventCanceled) return p;
|
|
4388
4388
|
if (l)
|
|
4389
4389
|
return Ee = be, d(), this._hideClone(), c("revert"), Z.eventCanceled || (Dt ? be.insertBefore(R, Dt) : be.appendChild(R)), h(!0);
|
|
@@ -4401,23 +4401,23 @@ Z.prototype = /** @lends Sortable.prototype */
|
|
|
4401
4401
|
return d(), t.insertBefore(R, O), Ee = t, D(), h(!0);
|
|
4402
4402
|
} else if (a.parentNode === t) {
|
|
4403
4403
|
r = Ie(a);
|
|
4404
|
-
var
|
|
4405
|
-
|
|
4404
|
+
var M = 0, F, N = R.parentNode !== t, A = !gs(R.animated && R.toRect || o, a.animated && a.toRect || r, y), I = y ? "top" : "left", E = er(a, "top", "top") || er(R, "top", "top"), $ = E ? E.scrollTop : void 0;
|
|
4405
|
+
Mt !== a && (F = r[I], Qt = !1, pn = !A && s.invertSwap || N), M = Es(n, a, r, y, A ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, pn, Mt === a);
|
|
4406
4406
|
var w;
|
|
4407
|
-
if (
|
|
4407
|
+
if (M !== 0) {
|
|
4408
4408
|
var C = Ke(R);
|
|
4409
4409
|
do
|
|
4410
|
-
C -=
|
|
4410
|
+
C -= M, w = Ee.children[C];
|
|
4411
4411
|
while (w && (X(w, "display") === "none" || w === Q));
|
|
4412
4412
|
}
|
|
4413
|
-
if (
|
|
4413
|
+
if (M === 0 || w === a)
|
|
4414
4414
|
return h(!1);
|
|
4415
|
-
|
|
4415
|
+
Mt = a, Jt = M;
|
|
4416
4416
|
var g = a.nextElementSibling, v = !1;
|
|
4417
|
-
v =
|
|
4418
|
-
var
|
|
4419
|
-
if (
|
|
4420
|
-
return (
|
|
4417
|
+
v = M === 1;
|
|
4418
|
+
var x = vn(be, t, R, o, a, r, n, v);
|
|
4419
|
+
if (x !== !1)
|
|
4420
|
+
return (x === 1 || x === -1) && (v = x === 1), ha = !0, setTimeout(ws, 30), d(), v && !g ? t.appendChild(R) : a.parentNode.insertBefore(R, v ? g : a), E && Br(E, 0, $ - E.scrollTop), Ee = R.parentNode, F !== void 0 && !pn && (Dn = Math.abs(F - Ie(a)[I])), D(), h(!0);
|
|
4421
4421
|
}
|
|
4422
4422
|
if (t.contains(R))
|
|
4423
4423
|
return h(!1);
|
|
@@ -4487,7 +4487,7 @@ Z.prototype = /** @lends Sortable.prototype */
|
|
|
4487
4487
|
}), this.save()))), this._nulling();
|
|
4488
4488
|
},
|
|
4489
4489
|
_nulling: function() {
|
|
4490
|
-
Ve("nulling", this), be = R = Ee = Q = Dt = De = wn = ft = St = Je = qt = je = dt = It = Zt =
|
|
4490
|
+
Ve("nulling", this), be = R = Ee = Q = Dt = De = wn = ft = St = Je = qt = je = dt = It = Zt = Mt = Jt = Re = mn = Z.dragged = Z.ghost = Z.clone = Z.active = null, kn.forEach(function(n) {
|
|
4491
4491
|
n.checked = !0;
|
|
4492
4492
|
}), kn.length = na = aa = 0;
|
|
4493
4493
|
},
|
|
@@ -4565,7 +4565,7 @@ Z.prototype = /** @lends Sortable.prototype */
|
|
|
4565
4565
|
var n = this.el;
|
|
4566
4566
|
n[qe] = null, le(n, "mousedown", this._onTapStart), le(n, "touchstart", this._onTapStart), le(n, "pointerdown", this._onTapStart), this.nativeDraggable && (le(n, "dragover", this), le(n, "dragenter", this)), Array.prototype.forEach.call(n.querySelectorAll("[draggable]"), function(t) {
|
|
4567
4567
|
t.removeAttribute("draggable");
|
|
4568
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
4568
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), Mn.splice(Mn.indexOf(this.el), 1), this.el = n = null;
|
|
4569
4569
|
},
|
|
4570
4570
|
_hideClone: function() {
|
|
4571
4571
|
if (!ft) {
|
|
@@ -4629,7 +4629,7 @@ function As(e) {
|
|
|
4629
4629
|
a += n.charCodeAt(t);
|
|
4630
4630
|
return a.toString(36);
|
|
4631
4631
|
}
|
|
4632
|
-
function
|
|
4632
|
+
function _s(e) {
|
|
4633
4633
|
kn.length = 0;
|
|
4634
4634
|
for (var n = e.getElementsByTagName("input"), t = n.length; t--; ) {
|
|
4635
4635
|
var a = n[t];
|
|
@@ -4682,7 +4682,7 @@ Z.create = function(e, n) {
|
|
|
4682
4682
|
};
|
|
4683
4683
|
Z.version = is;
|
|
4684
4684
|
var ke = [], zt, ga, ba = !1, la, ia, In, jt;
|
|
4685
|
-
function
|
|
4685
|
+
function xs() {
|
|
4686
4686
|
function e() {
|
|
4687
4687
|
this.defaults = {
|
|
4688
4688
|
scroll: !0,
|
|
@@ -4748,9 +4748,9 @@ var sa = Or(function(e, n, t, a) {
|
|
|
4748
4748
|
ga !== t && (ga = t, En(), zt = n.scroll, m = n.scrollFn, zt === !0 && (zt = mt(t, !0)));
|
|
4749
4749
|
var f = 0, S = zt;
|
|
4750
4750
|
do {
|
|
4751
|
-
var y = S, b = Ie(y), p = b.top, c = b.bottom, d = b.left, h = b.right, D = b.width, k = b.height, O = void 0,
|
|
4752
|
-
y === i ? (O = D < F && (A.overflowX === "auto" || A.overflowX === "scroll" || A.overflowX === "visible"),
|
|
4753
|
-
var $ = O && (Math.abs(h - o) <= l && I + D < F) - (Math.abs(d - o) <= l && !!I), w =
|
|
4751
|
+
var y = S, b = Ie(y), p = b.top, c = b.bottom, d = b.left, h = b.right, D = b.width, k = b.height, O = void 0, M = void 0, F = y.scrollWidth, N = y.scrollHeight, A = X(y), I = y.scrollLeft, E = y.scrollTop;
|
|
4752
|
+
y === i ? (O = D < F && (A.overflowX === "auto" || A.overflowX === "scroll" || A.overflowX === "visible"), M = k < N && (A.overflowY === "auto" || A.overflowY === "scroll" || A.overflowY === "visible")) : (O = D < F && (A.overflowX === "auto" || A.overflowX === "scroll"), M = k < N && (A.overflowY === "auto" || A.overflowY === "scroll"));
|
|
4753
|
+
var $ = O && (Math.abs(h - o) <= l && I + D < F) - (Math.abs(d - o) <= l && !!I), w = M && (Math.abs(c - r) <= l && E + k < N) - (Math.abs(p - r) <= l && !!E);
|
|
4754
4754
|
if (!ke[f])
|
|
4755
4755
|
for (var C = 0; C <= f; C++)
|
|
4756
4756
|
ke[C] || (ke[C] = {});
|
|
@@ -4807,9 +4807,9 @@ Fa.prototype = {
|
|
|
4807
4807
|
st(Fa, {
|
|
4808
4808
|
pluginName: "removeOnSpill"
|
|
4809
4809
|
});
|
|
4810
|
-
Z.mount(new
|
|
4810
|
+
Z.mount(new xs());
|
|
4811
4811
|
Z.mount(Fa, $a);
|
|
4812
|
-
function
|
|
4812
|
+
function Ms(e, n, t = {}) {
|
|
4813
4813
|
let a;
|
|
4814
4814
|
const { document: o = oo, ...r } = t, l = { onUpdate: (m) => {
|
|
4815
4815
|
$s(n, m.oldIndex, m.newIndex, m);
|
|
@@ -4903,7 +4903,7 @@ function Ls(e, n, t) {
|
|
|
4903
4903
|
function Ns(e, n, t) {
|
|
4904
4904
|
return lr.randomUUID && !e ? lr.randomUUID() : Ls(e);
|
|
4905
4905
|
}
|
|
4906
|
-
const Ys = () => Os(),
|
|
4906
|
+
const Ys = () => Os(), Lc = () => Ns(), Vt = "a-sortable-widget__handle", Vs = "a-sortable-widget__ghost", Us = "a-sortable-widget__drag", Hs = "a-sortable-widget__chosen", ir = "a-sortable-widget__group";
|
|
4907
4907
|
function qs(e, n, t, a) {
|
|
4908
4908
|
const o = P(!1), r = P(null), l = P(null), s = P(Ys()), i = P(null), u = P(0), m = P(t.dirty);
|
|
4909
4909
|
function f(w, C) {
|
|
@@ -4922,10 +4922,10 @@ function qs(e, n, t, a) {
|
|
|
4922
4922
|
}, p = (w) => {
|
|
4923
4923
|
m.value.delete(w);
|
|
4924
4924
|
}, c = (w, C, g, v = []) => {
|
|
4925
|
-
const
|
|
4926
|
-
let
|
|
4927
|
-
for (let B =
|
|
4928
|
-
ai(w[B], t.positionField,
|
|
4925
|
+
const x = C > g ? g : C;
|
|
4926
|
+
let _ = t.positionMultiplier * x + t.positionMultiplier * 1;
|
|
4927
|
+
for (let B = x; B < w.length; B++)
|
|
4928
|
+
ai(w[B], t.positionField, _), b(w[B][t.keyField]), _ = _ + t.positionMultiplier * 1, v.push({
|
|
4929
4929
|
id: w[B].id,
|
|
4930
4930
|
position: w[B].position
|
|
4931
4931
|
});
|
|
@@ -4934,8 +4934,8 @@ function qs(e, n, t, a) {
|
|
|
4934
4934
|
const g = Ae(e.value);
|
|
4935
4935
|
if (C >= 0 && C < g.length) {
|
|
4936
4936
|
let v = [];
|
|
4937
|
-
const
|
|
4938
|
-
return g.splice(C, 0,
|
|
4937
|
+
const x = g.splice(w, 1)[0];
|
|
4938
|
+
return g.splice(C, 0, x), T(t.updatePosition) || (v = c(g, w, C)), y(), a("update:modelValue", g), v;
|
|
4939
4939
|
}
|
|
4940
4940
|
return [];
|
|
4941
4941
|
}, h = (w, C) => {
|
|
@@ -4944,12 +4944,12 @@ function qs(e, n, t, a) {
|
|
|
4944
4944
|
}, D = (w, C, g, v = null) => {
|
|
4945
4945
|
w.data = Ae(C), W(g) || (w.data.position = g), W(v) || b(C.id);
|
|
4946
4946
|
}, k = (w, C, g = null, v = null) => {
|
|
4947
|
-
const
|
|
4948
|
-
!W(
|
|
4947
|
+
const x = Ae(e.value), _ = h(w, x);
|
|
4948
|
+
!W(_) && x[_] && (D(x[_], C, g, v), y(x));
|
|
4949
4949
|
}, O = (w, C, g, v = null) => {
|
|
4950
|
-
const
|
|
4951
|
-
|
|
4952
|
-
},
|
|
4950
|
+
const x = Ae(e.value);
|
|
4951
|
+
x[w] && (D(x[w], C, g, v), y(x));
|
|
4952
|
+
}, M = (w, C) => {
|
|
4953
4953
|
const g = Ae(e.value);
|
|
4954
4954
|
if (W(w) || w < 0)
|
|
4955
4955
|
return g.push(Ae(C)), y(g), [];
|
|
@@ -4959,8 +4959,8 @@ function qs(e, n, t, a) {
|
|
|
4959
4959
|
const g = Ae(e.value);
|
|
4960
4960
|
if (W(w))
|
|
4961
4961
|
return g.push(Ae(C)), y(g), [];
|
|
4962
|
-
const v = h(w, g),
|
|
4963
|
-
return !W(v) && g[v] ? (g.splice(v + 1, 0, C), c(g, v + 1, v + 1,
|
|
4962
|
+
const v = h(w, g), x = [];
|
|
4963
|
+
return !W(v) && g[v] ? (g.splice(v + 1, 0, C), c(g, v + 1, v + 1, x), y(g), x) : [];
|
|
4964
4964
|
}, N = (w) => {
|
|
4965
4965
|
const C = Ae(e.value), g = h(w, C), v = [];
|
|
4966
4966
|
return !W(g) && C[g] ? (C.splice(g, 1), c(C, g, g, v), p(w), y(C), v) : [];
|
|
@@ -4992,14 +4992,14 @@ function qs(e, n, t, a) {
|
|
|
4992
4992
|
destroy: I,
|
|
4993
4993
|
moveArrayElement: d,
|
|
4994
4994
|
addAfterId: F,
|
|
4995
|
-
addAfterIndex:
|
|
4995
|
+
addAfterIndex: M,
|
|
4996
4996
|
removeById: N,
|
|
4997
4997
|
removeByIndex: A,
|
|
4998
4998
|
updateData: k,
|
|
4999
4999
|
updateDataAtIndex: O
|
|
5000
5000
|
};
|
|
5001
5001
|
}
|
|
5002
|
-
const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortable-widget__before" }, Ks = { class: "a-sortable-widget__content" }, Xs = { class: "a-sortable-widget__after" },
|
|
5002
|
+
const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortable-widget__before" }, Ks = { class: "a-sortable-widget__content" }, Xs = { class: "a-sortable-widget__after" }, Nc = /* @__PURE__ */ Se({
|
|
5003
5003
|
__name: "ASortable",
|
|
5004
5004
|
props: {
|
|
5005
5005
|
modelValue: {},
|
|
@@ -5028,7 +5028,7 @@ const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortabl
|
|
|
5028
5028
|
o("onAddAfter", v);
|
|
5029
5029
|
}, i = (v) => {
|
|
5030
5030
|
if (h.value = v, a.disableDeleteDialog) {
|
|
5031
|
-
|
|
5031
|
+
M();
|
|
5032
5032
|
return;
|
|
5033
5033
|
}
|
|
5034
5034
|
D.value = !0;
|
|
@@ -5043,15 +5043,15 @@ const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortabl
|
|
|
5043
5043
|
}, f = L(() => T(a.widgetIdentifierId) ? zs + A.value : a.widgetIdentifierId), S = L(() => a.rootClassName + " " + (a.chips ? a.rootClassName + "--chips" : "")), y = () => {
|
|
5044
5044
|
if (a.disableDraggable || !N.value) return;
|
|
5045
5045
|
const v = N.value.querySelector("." + ir);
|
|
5046
|
-
v && (F.value =
|
|
5046
|
+
v && (F.value = Ms(v, [], {
|
|
5047
5047
|
handle: "." + Vt,
|
|
5048
5048
|
ghostClass: Vs,
|
|
5049
5049
|
dragClass: Us,
|
|
5050
5050
|
chosenClass: Hs,
|
|
5051
|
-
onEnd: async (
|
|
5052
|
-
if (a.disableDefaultSort || T(
|
|
5053
|
-
const
|
|
5054
|
-
o("onEnd",
|
|
5051
|
+
onEnd: async (x) => {
|
|
5052
|
+
if (a.disableDefaultSort || T(x.oldIndex) || T(x.newIndex)) return;
|
|
5053
|
+
const _ = d(x.oldIndex, x.newIndex);
|
|
5054
|
+
o("onEnd", _);
|
|
5055
5055
|
},
|
|
5056
5056
|
onStart() {
|
|
5057
5057
|
o("onStart");
|
|
@@ -5066,7 +5066,7 @@ const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortabl
|
|
|
5066
5066
|
removeDialog: D,
|
|
5067
5067
|
destroy: k,
|
|
5068
5068
|
refresh: O,
|
|
5069
|
-
onRemoveDialogConfirm:
|
|
5069
|
+
onRemoveDialogConfirm: M,
|
|
5070
5070
|
sortableInstance: F,
|
|
5071
5071
|
widgetEl: N,
|
|
5072
5072
|
randomUuid: A,
|
|
@@ -5081,12 +5081,12 @@ const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortabl
|
|
|
5081
5081
|
k();
|
|
5082
5082
|
}), pt(() => {
|
|
5083
5083
|
N.value = document.querySelector("#" + f.value), y();
|
|
5084
|
-
}),
|
|
5084
|
+
}), Me(
|
|
5085
5085
|
() => a.disableDraggable,
|
|
5086
5086
|
async (v) => {
|
|
5087
5087
|
k(), v === !1 && y();
|
|
5088
5088
|
}
|
|
5089
|
-
),
|
|
5089
|
+
), Me(
|
|
5090
5090
|
() => a.dirty,
|
|
5091
5091
|
(v) => {
|
|
5092
5092
|
c.value = v;
|
|
@@ -5099,8 +5099,8 @@ const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortabl
|
|
|
5099
5099
|
removeByIndex: C,
|
|
5100
5100
|
updateData: $,
|
|
5101
5101
|
updateDataAtIndex: g
|
|
5102
|
-
}), (v,
|
|
5103
|
-
const
|
|
5102
|
+
}), (v, x) => {
|
|
5103
|
+
const _ = La("ABtnTertiary"), B = La("ABtnPrimary");
|
|
5104
5104
|
return q(), Oe("div", null, [
|
|
5105
5105
|
Fe("div", {
|
|
5106
5106
|
id: f.value,
|
|
@@ -5122,7 +5122,7 @@ const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortabl
|
|
|
5122
5122
|
"onClick:close": (te) => i(Y)
|
|
5123
5123
|
}, Pt({
|
|
5124
5124
|
default: G(() => [
|
|
5125
|
-
|
|
5125
|
+
_e(v.$slots, "item", { item: Y })
|
|
5126
5126
|
]),
|
|
5127
5127
|
_: 2
|
|
5128
5128
|
}, [
|
|
@@ -5153,7 +5153,7 @@ const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortabl
|
|
|
5153
5153
|
} : void 0
|
|
5154
5154
|
]), 1032, ["size", "prepend-icon", "append-icon", "onClick:close"])) : (q(), Oe("div", Ws, [
|
|
5155
5155
|
Fe("div", Gs, [
|
|
5156
|
-
|
|
5156
|
+
_e(v.$slots, "itemBefore", { item: Y })
|
|
5157
5157
|
]),
|
|
5158
5158
|
Fe("div", {
|
|
5159
5159
|
class: et(["a-sortable-widget__item", {
|
|
@@ -5169,12 +5169,12 @@ const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortabl
|
|
|
5169
5169
|
icon: "mdi-drag"
|
|
5170
5170
|
}, null, 8, ["class"]),
|
|
5171
5171
|
Fe("div", Ks, [
|
|
5172
|
-
|
|
5172
|
+
_e(v.$slots, "item", { item: Y })
|
|
5173
5173
|
]),
|
|
5174
5174
|
Fe("div", {
|
|
5175
5175
|
class: et(["a-sortable-widget__buttons", { "a-sortable-widget__buttons--permanent": e.permanentButtons }])
|
|
5176
5176
|
}, [
|
|
5177
|
-
|
|
5177
|
+
_e(v.$slots, "item-buttons", { item: Y }, () => [
|
|
5178
5178
|
e.showEditButton ? (q(), ae(Ct, {
|
|
5179
5179
|
key: 0,
|
|
5180
5180
|
icon: "",
|
|
@@ -5211,7 +5211,7 @@ const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortabl
|
|
|
5211
5211
|
]),
|
|
5212
5212
|
_: 1
|
|
5213
5213
|
}, 8, ["onClick"])) : Te("", !0),
|
|
5214
|
-
|
|
5214
|
+
_e(v.$slots, "buttons", { item: Y }),
|
|
5215
5215
|
e.showAddAfterButton ? (q(), ae(Ct, {
|
|
5216
5216
|
key: 2,
|
|
5217
5217
|
icon: "",
|
|
@@ -5234,7 +5234,7 @@ const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortabl
|
|
|
5234
5234
|
key: 0,
|
|
5235
5235
|
onClick: Pe((te) => s(Y), ["stop"])
|
|
5236
5236
|
}, {
|
|
5237
|
-
default: G(() => [...
|
|
5237
|
+
default: G(() => [...x[3] || (x[3] = [
|
|
5238
5238
|
He(" Add new item after ", -1)
|
|
5239
5239
|
])]),
|
|
5240
5240
|
_: 1
|
|
@@ -5252,13 +5252,13 @@ const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortabl
|
|
|
5252
5252
|
], 2)
|
|
5253
5253
|
], 2),
|
|
5254
5254
|
Fe("div", Xs, [
|
|
5255
|
-
|
|
5255
|
+
_e(v.$slots, "itemAfter", { item: Y })
|
|
5256
5256
|
])
|
|
5257
5257
|
]))
|
|
5258
5258
|
], 64))), 128))
|
|
5259
5259
|
], 2))
|
|
5260
5260
|
], 10, js),
|
|
5261
|
-
|
|
5261
|
+
_e(v.$slots, "add-last-activator", {
|
|
5262
5262
|
props: { onClick: Pe(() => m(), ["stop"]) }
|
|
5263
5263
|
}, () => [
|
|
5264
5264
|
e.showAddLastButton ? (q(), ae(Ct, {
|
|
@@ -5274,16 +5274,16 @@ const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortabl
|
|
|
5274
5274
|
_: 1
|
|
5275
5275
|
})) : Te("", !0)
|
|
5276
5276
|
]),
|
|
5277
|
-
K(
|
|
5277
|
+
K(_o, {
|
|
5278
5278
|
modelValue: ie(D),
|
|
5279
|
-
"onUpdate:modelValue":
|
|
5279
|
+
"onUpdate:modelValue": x[2] || (x[2] = (Y) => ya(D) ? D.value = Y : null),
|
|
5280
5280
|
width: 500
|
|
5281
5281
|
}, {
|
|
5282
5282
|
default: G(() => [
|
|
5283
5283
|
ie(D) ? (q(), ae(hr, { key: 0 }, {
|
|
5284
5284
|
default: G(() => [
|
|
5285
5285
|
K(sl, {
|
|
5286
|
-
onOnCancel:
|
|
5286
|
+
onOnCancel: x[0] || (x[0] = (Y) => D.value = !1)
|
|
5287
5287
|
}, {
|
|
5288
5288
|
default: G(() => [
|
|
5289
5289
|
He($e(ie(l)("common.system.modal.confirmDelete")), 1)
|
|
@@ -5293,8 +5293,8 @@ const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortabl
|
|
|
5293
5293
|
K(Do, null, {
|
|
5294
5294
|
default: G(() => [
|
|
5295
5295
|
K(fr),
|
|
5296
|
-
K(
|
|
5297
|
-
onClick:
|
|
5296
|
+
K(_, {
|
|
5297
|
+
onClick: x[1] || (x[1] = Pe((Y) => D.value = !1, ["stop"]))
|
|
5298
5298
|
}, {
|
|
5299
5299
|
default: G(() => [
|
|
5300
5300
|
He($e(ie(l)("common.button.cancel")), 1)
|
|
@@ -5302,7 +5302,7 @@ const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortabl
|
|
|
5302
5302
|
_: 1
|
|
5303
5303
|
}),
|
|
5304
5304
|
K(B, {
|
|
5305
|
-
onClick: Pe(ie(
|
|
5305
|
+
onClick: Pe(ie(M), ["stop"])
|
|
5306
5306
|
}, {
|
|
5307
5307
|
default: G(() => [
|
|
5308
5308
|
He($e(ie(l)("common.button.delete")), 1)
|
|
@@ -5321,7 +5321,7 @@ const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortabl
|
|
|
5321
5321
|
]);
|
|
5322
5322
|
};
|
|
5323
5323
|
}
|
|
5324
|
-
}),
|
|
5324
|
+
}), Yc = (e, n, t = {}, a, o, r = {}) => new Promise((l, s) => {
|
|
5325
5325
|
e().delete(zn(n, t), r).then((i) => jn(i.status) ? i.data ? l(i.data) : i.status === nn ? l(null) : s(new it()) : s(new on(i.status))).catch((i) => Nn(i) ? s(new an(i, i.config?.url)) : Yn(i) ? s(new rn(i, a, o, i)) : Un(i) ? s(new sn(i, a, o, i)) : Vn(i) ? s(new ln(i, i)) : s(new it(i)));
|
|
5326
5326
|
}), Zs = {
|
|
5327
5327
|
key: 0,
|
|
@@ -5329,7 +5329,7 @@ const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortabl
|
|
|
5329
5329
|
}, Js = {
|
|
5330
5330
|
key: 0,
|
|
5331
5331
|
class: "required"
|
|
5332
|
-
}, Qs = 300,
|
|
5332
|
+
}, Qs = 300, Vc = /* @__PURE__ */ Se({
|
|
5333
5333
|
__name: "AFormRemoteAutocomplete",
|
|
5334
5334
|
props: /* @__PURE__ */ Na({
|
|
5335
5335
|
label: { default: void 0 },
|
|
@@ -5367,7 +5367,7 @@ const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortabl
|
|
|
5367
5367
|
}),
|
|
5368
5368
|
emits: /* @__PURE__ */ Na(["searchChange", "searchChangeDebounced", "blur", "focus", "click:chipClose"], ["update:modelValue", "update:selected"]),
|
|
5369
5369
|
setup(e, { expose: n, emit: t }) {
|
|
5370
|
-
const a = e, o = t, r = ee(
|
|
5370
|
+
const a = e, o = t, r = ee(Ma), l = ee(xa), s = Fn()?.type.__name;
|
|
5371
5371
|
if (T(r) || T(l))
|
|
5372
5372
|
throw new Error(`[${s}] Incorrect provide/inject config.`);
|
|
5373
5373
|
const i = a.filterByField, u = a.filterSortBy;
|
|
@@ -5392,22 +5392,22 @@ const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortabl
|
|
|
5392
5392
|
a.collab.room,
|
|
5393
5393
|
a.collab.field
|
|
5394
5394
|
);
|
|
5395
|
-
y.value = V, b.value = ne, p.value = pe,
|
|
5395
|
+
y.value = V, b.value = ne, p.value = pe, Me(
|
|
5396
5396
|
me,
|
|
5397
|
-
(
|
|
5398
|
-
c.value =
|
|
5397
|
+
(_t) => {
|
|
5398
|
+
c.value = _t;
|
|
5399
5399
|
},
|
|
5400
5400
|
{ immediate: !0 }
|
|
5401
5401
|
);
|
|
5402
5402
|
}
|
|
5403
|
-
const d = P(""), h = P(!1), D = P(null), k = P(0), { t: O } = Ye(),
|
|
5403
|
+
const d = P(""), h = P(!1), D = P(null), k = P(0), { t: O } = Ye(), M = ee(Da, void 0), F = ee(Ca, void 0), N = () => {
|
|
5404
5404
|
h.value = !1, o("blur", m.value), a.v?.$touch(), y.value(m.value);
|
|
5405
5405
|
}, A = L(() => ye(a.errorMessage) ? [a.errorMessage] : a.v?.$errors?.length ? a.v.$errors.map((V) => V.$message) : []), I = L(() => {
|
|
5406
5406
|
if (ye(a.label)) return a.label;
|
|
5407
|
-
if (T(
|
|
5407
|
+
if (T(M) || T(F) || T(a.v?.$path)) return "";
|
|
5408
5408
|
const { end: V } = wa(a.v?.$path, ".");
|
|
5409
|
-
return O(
|
|
5410
|
-
}), E = L(() => ye(a.required) ? a.required : a.v?.required && a.v?.required.$params.type === "required"), $ = L(() => ye(a.disabled) ? a.disabled : !!c.value), { pagination: w } =
|
|
5409
|
+
return O(M + "." + F + ".model." + V);
|
|
5410
|
+
}), E = L(() => ye(a.required) ? a.required : a.v?.required && a.v?.required.$params.type === "required"), $ = L(() => ye(a.disabled) ? a.disabled : !!c.value), { pagination: w } = _a(W(u) ? null : u.key, u?.order), C = P([]), g = P([]), v = P(!0), x = P(!1), _ = L(() => {
|
|
5411
5411
|
const V = /* @__PURE__ */ new Map(), ne = (pe) => {
|
|
5412
5412
|
pe.forEach((me) => {
|
|
5413
5413
|
V.set(me.value, {
|
|
@@ -5421,7 +5421,7 @@ const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortabl
|
|
|
5421
5421
|
}), B = P(!1), Y = L(() => B.value ? !0 : a.loading), z = (V) => {
|
|
5422
5422
|
g.value = [], f.value = oe(V) ? [] : null, D.value = oe(V) ? [] : null;
|
|
5423
5423
|
}, te = (V) => {
|
|
5424
|
-
const ne = (pe) =>
|
|
5424
|
+
const ne = (pe) => _.value.find((me) => me.value === pe) ?? { title: `${pe}`, value: pe };
|
|
5425
5425
|
return oe(V) ? V.map(ne) : ne(V);
|
|
5426
5426
|
}, de = async (V) => {
|
|
5427
5427
|
B.value = !0;
|
|
@@ -5440,8 +5440,8 @@ const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortabl
|
|
|
5440
5440
|
const me = await a.fetchItemsByIds(pe);
|
|
5441
5441
|
if (oe(me) && me.length > 0) {
|
|
5442
5442
|
if (g.value = me, a.multiple) {
|
|
5443
|
-
const
|
|
5444
|
-
return m.value =
|
|
5443
|
+
const _t = me.map((jr) => jr.value);
|
|
5444
|
+
return m.value = _t, ne && await J("force", _t), B.value = !1, !0;
|
|
5445
5445
|
}
|
|
5446
5446
|
return m.value = me[0].value, ne && await J("force", me[0].value), B.value = !1, !0;
|
|
5447
5447
|
}
|
|
@@ -5460,11 +5460,11 @@ const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortabl
|
|
|
5460
5460
|
B.value = !1;
|
|
5461
5461
|
}
|
|
5462
5462
|
}, J = async (V, ne) => {
|
|
5463
|
-
if (!B.value && !(V !== "force" && (a.prefetch === !1 || a.prefetch !== V ||
|
|
5463
|
+
if (!B.value && !(V !== "force" && (a.prefetch === !1 || a.prefetch !== V || x.value))) {
|
|
5464
5464
|
B.value = !0;
|
|
5465
5465
|
try {
|
|
5466
5466
|
const pe = await a.fetchItems(w, l, r);
|
|
5467
|
-
k.value === 0 && (C.value = pe, !a.disableAutoSingleSelect && pe.length === 1 && (W(ne) || T(ne) || oe(ne) && ne.length === 0) && (m.value = a.multiple ? [pe[0].value] : pe[0].value)),
|
|
5467
|
+
k.value === 0 && (C.value = pe, !a.disableAutoSingleSelect && pe.length === 1 && (W(ne) || T(ne) || oe(ne) && ne.length === 0) && (m.value = a.multiple ? [pe[0].value] : pe[0].value)), x.value = !0;
|
|
5468
5468
|
} finally {
|
|
5469
5469
|
B.value = !1;
|
|
5470
5470
|
}
|
|
@@ -5503,7 +5503,7 @@ const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortabl
|
|
|
5503
5503
|
}
|
|
5504
5504
|
},
|
|
5505
5505
|
{ debounce: Qs }
|
|
5506
|
-
),
|
|
5506
|
+
), Me(d, (V, ne) => {
|
|
5507
5507
|
V !== ne && o("searchChange", V);
|
|
5508
5508
|
});
|
|
5509
5509
|
const we = (V) => {
|
|
@@ -5523,7 +5523,7 @@ const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortabl
|
|
|
5523
5523
|
if (C.value.length === 0 && d.value.length < a.minSearchChars)
|
|
5524
5524
|
return T(a.minSearchText) ? O("common.filter.filterMinChars", { min: a.minSearchChars }) : a.minSearchText;
|
|
5525
5525
|
});
|
|
5526
|
-
return
|
|
5526
|
+
return Me(
|
|
5527
5527
|
m,
|
|
5528
5528
|
async (V, ne) => {
|
|
5529
5529
|
if (V !== ne) {
|
|
@@ -5539,7 +5539,7 @@ const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortabl
|
|
|
5539
5539
|
tryLoadModelValue: ve
|
|
5540
5540
|
}), (V, ne) => (q(), ae(Bn, {
|
|
5541
5541
|
"model-value": D.value,
|
|
5542
|
-
items:
|
|
5542
|
+
items: _.value,
|
|
5543
5543
|
"no-filter": "",
|
|
5544
5544
|
multiple: e.multiple,
|
|
5545
5545
|
clearable: e.clearable,
|
|
@@ -5573,7 +5573,7 @@ const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortabl
|
|
|
5573
5573
|
size: "small",
|
|
5574
5574
|
text: `${me.title} (${me.raw.subtitle})`,
|
|
5575
5575
|
disabled: me.props.disabled,
|
|
5576
|
-
"onClick:close": (
|
|
5576
|
+
"onClick:close": (_t) => ue(me.raw)
|
|
5577
5577
|
}, {
|
|
5578
5578
|
default: G(() => [
|
|
5579
5579
|
He($e(me.raw.title) + " ", 1),
|
|
@@ -5595,7 +5595,7 @@ const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortabl
|
|
|
5595
5595
|
c.value ? {
|
|
5596
5596
|
name: "append-inner",
|
|
5597
5597
|
fn: G(() => [
|
|
5598
|
-
|
|
5598
|
+
_e(V.$slots, "locked", { userId: c.value }, () => [
|
|
5599
5599
|
e.collab ? (q(), ae(Pn, {
|
|
5600
5600
|
key: 0,
|
|
5601
5601
|
id: c.value,
|
|
@@ -5608,7 +5608,7 @@ const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortabl
|
|
|
5608
5608
|
V.$slots.append ? {
|
|
5609
5609
|
name: "append",
|
|
5610
5610
|
fn: G(() => [
|
|
5611
|
-
|
|
5611
|
+
_e(V.$slots, "append")
|
|
5612
5612
|
]),
|
|
5613
5613
|
key: "1"
|
|
5614
5614
|
} : void 0
|
|
@@ -5617,13 +5617,13 @@ const zs = "a-sortable-", js = ["id"], Ws = { key: 1 }, Gs = { class: "a-sortabl
|
|
|
5617
5617
|
});
|
|
5618
5618
|
export {
|
|
5619
5619
|
Jo as $,
|
|
5620
|
-
|
|
5620
|
+
_r as A,
|
|
5621
5621
|
ei as B,
|
|
5622
5622
|
Ht as C,
|
|
5623
5623
|
ti as D,
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5624
|
+
wc as E,
|
|
5625
|
+
Cc as F,
|
|
5626
|
+
Mr as G,
|
|
5627
5627
|
Xl as H,
|
|
5628
5628
|
Au as I,
|
|
5629
5629
|
ol as J,
|
|
@@ -5645,51 +5645,51 @@ export {
|
|
|
5645
5645
|
Wu as Z,
|
|
5646
5646
|
gr as _,
|
|
5647
5647
|
Ln as a,
|
|
5648
|
-
|
|
5648
|
+
Al as a$,
|
|
5649
5649
|
al as a0,
|
|
5650
5650
|
he as a1,
|
|
5651
5651
|
Ru as a2,
|
|
5652
5652
|
Pu as a3,
|
|
5653
5653
|
Bo as a4,
|
|
5654
|
-
|
|
5655
|
-
|
|
5654
|
+
Ec as a5,
|
|
5655
|
+
Ic as a6,
|
|
5656
5656
|
wl as a7,
|
|
5657
5657
|
Nn as a8,
|
|
5658
5658
|
an as a9,
|
|
5659
|
-
|
|
5660
|
-
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5659
|
+
Gi as aA,
|
|
5660
|
+
Wi as aB,
|
|
5661
|
+
ut as aC,
|
|
5662
|
+
gt as aD,
|
|
5663
|
+
xc as aE,
|
|
5664
|
+
Pc as aF,
|
|
5665
|
+
xr as aG,
|
|
5666
|
+
Dl as aH,
|
|
5667
|
+
Nl as aI,
|
|
5668
|
+
Ju as aJ,
|
|
5669
|
+
Ys as aK,
|
|
5670
|
+
zs as aL,
|
|
5671
|
+
Ms as aM,
|
|
5672
|
+
Yc as aN,
|
|
5673
|
+
tc as aO,
|
|
5674
|
+
Mu as aP,
|
|
5675
|
+
Vt as aQ,
|
|
5676
|
+
ir as aR,
|
|
5677
|
+
Hs as aS,
|
|
5678
|
+
Us as aT,
|
|
5679
|
+
Vs as aU,
|
|
5680
|
+
Ji as aV,
|
|
5681
|
+
rc as aW,
|
|
5682
|
+
qi as aX,
|
|
5683
|
+
Hi as aY,
|
|
5684
|
+
Dr as aZ,
|
|
5685
|
+
xl as a_,
|
|
5686
5686
|
Yn as aa,
|
|
5687
5687
|
rn as ab,
|
|
5688
5688
|
Vn as ac,
|
|
5689
5689
|
ln as ad,
|
|
5690
5690
|
it as ae,
|
|
5691
|
-
|
|
5692
|
-
|
|
5691
|
+
Ac as af,
|
|
5692
|
+
_c as ag,
|
|
5693
5693
|
lt as ah,
|
|
5694
5694
|
zn as ai,
|
|
5695
5695
|
jn as aj,
|
|
@@ -5697,83 +5697,85 @@ export {
|
|
|
5697
5697
|
nn as al,
|
|
5698
5698
|
Un as am,
|
|
5699
5699
|
sn as an,
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5704
|
-
|
|
5705
|
-
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5700
|
+
$c as ao,
|
|
5701
|
+
_a as ap,
|
|
5702
|
+
nc as aq,
|
|
5703
|
+
vt as ar,
|
|
5704
|
+
Aa as as,
|
|
5705
|
+
se as at,
|
|
5706
|
+
ac as au,
|
|
5707
|
+
Ma as av,
|
|
5708
|
+
xa as aw,
|
|
5709
5709
|
Oc as ax,
|
|
5710
|
-
|
|
5711
|
-
|
|
5710
|
+
Bc as ay,
|
|
5711
|
+
Rc as az,
|
|
5712
5712
|
Ut as b,
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
lc as
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5713
|
+
Qi as b$,
|
|
5714
|
+
Sl as b0,
|
|
5715
|
+
Iu as b1,
|
|
5716
|
+
oc as b2,
|
|
5717
|
+
Zu as b3,
|
|
5718
|
+
Ko as b4,
|
|
5719
|
+
Zo as b5,
|
|
5720
|
+
Va as b6,
|
|
5721
|
+
dn as b7,
|
|
5722
|
+
Ya as b8,
|
|
5723
|
+
ai as b9,
|
|
5724
|
+
Lc as bA,
|
|
5725
|
+
Zi as bB,
|
|
5726
|
+
lc as bC,
|
|
5727
|
+
ic as bD,
|
|
5728
|
+
El as bE,
|
|
5729
|
+
sc as bF,
|
|
5730
|
+
Ea as bG,
|
|
5731
|
+
yr as bH,
|
|
5732
|
+
Sr as bI,
|
|
5733
|
+
Gu as bJ,
|
|
5734
|
+
Il as bK,
|
|
5735
|
+
uc as bL,
|
|
5736
|
+
Ol as bM,
|
|
5737
|
+
bt as bN,
|
|
5738
|
+
yt as bO,
|
|
5739
|
+
Mc as bP,
|
|
5740
|
+
kc as bQ,
|
|
5741
|
+
yc as bR,
|
|
5742
|
+
Et as bS,
|
|
5743
|
+
Pl as bT,
|
|
5744
|
+
Cr as bU,
|
|
5745
|
+
Er as bV,
|
|
5746
|
+
Fc as bW,
|
|
5747
|
+
ts as bX,
|
|
5748
|
+
Ui as bY,
|
|
5749
|
+
zi as bZ,
|
|
5750
|
+
ll as b_,
|
|
5751
|
+
Vc as ba,
|
|
5752
|
+
Tc as bb,
|
|
5753
|
+
Nc as bc,
|
|
5754
|
+
Qu as bd,
|
|
5755
|
+
Sc as be,
|
|
5756
|
+
Dc as bf,
|
|
5757
|
+
ku as bg,
|
|
5758
|
+
$u as bh,
|
|
5759
|
+
Ou as bi,
|
|
5760
|
+
Bu as bj,
|
|
5761
|
+
Oo as bk,
|
|
5762
|
+
Fu as bl,
|
|
5763
|
+
Hn as bm,
|
|
5764
|
+
qn as bn,
|
|
5765
|
+
dc as bo,
|
|
5765
5766
|
mc as bp,
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5772
|
-
|
|
5767
|
+
fc as bq,
|
|
5768
|
+
hc as br,
|
|
5769
|
+
Zl as bs,
|
|
5770
|
+
pa as bt,
|
|
5771
|
+
cc as bu,
|
|
5772
|
+
Kl as bv,
|
|
5773
|
+
pc as bw,
|
|
5773
5774
|
vc as bx,
|
|
5774
|
-
|
|
5775
|
-
|
|
5775
|
+
gc as by,
|
|
5776
|
+
bc as bz,
|
|
5776
5777
|
Ca as c,
|
|
5778
|
+
es as c0,
|
|
5777
5779
|
T as d,
|
|
5778
5780
|
Pn as e,
|
|
5779
5781
|
Ot as f,
|
|
@@ -5792,10 +5794,10 @@ export {
|
|
|
5792
5794
|
wa as s,
|
|
5793
5795
|
fa as t,
|
|
5794
5796
|
Nt as u,
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5797
|
+
xu as v,
|
|
5798
|
+
_u as w,
|
|
5799
|
+
xe as x,
|
|
5798
5800
|
br as y,
|
|
5799
5801
|
Io as z
|
|
5800
5802
|
};
|
|
5801
|
-
//# sourceMappingURL=AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-
|
|
5803
|
+
//# sourceMappingURL=AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-8DsCUZHp.mjs.map
|