@anzusystems/common-admin 0.0.43 → 0.0.45
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/common-admin.es.d.ts +53 -39
- package/dist/common-admin.es.js +624 -614
- package/dist/common-admin.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +7 -7
package/dist/common-admin.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var io = Object.defineProperty;
|
|
2
2
|
var lo = (t, n, e) => n in t ? io(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e;
|
|
3
3
|
var Sn = (t, n, e) => (lo(t, typeof n != "symbol" ? n + "" : n, e), e);
|
|
4
|
-
import { defineComponent as L, computed as T, openBlock as k, createBlock as E, unref as f, withCtx as y, createTextVNode as B, toDisplayString as $, createElementBlock as H, createVNode as w, createCommentVNode as Z, renderSlot as Ae, createElementVNode as te, resolveComponent as Et, normalizeClass as ke, withModifiers as re, withDirectives as vr, vShow as yr, isProxy as so, toRaw as uo, isRef as ze, inject as be, createSlots as tn, Fragment as Ue, provide as Xa, watch as
|
|
4
|
+
import { defineComponent as L, computed as T, openBlock as k, createBlock as E, unref as f, withCtx as y, createTextVNode as B, toDisplayString as $, createElementBlock as H, createVNode as w, createCommentVNode as Z, renderSlot as Ae, createElementVNode as te, resolveComponent as Et, normalizeClass as ke, withModifiers as re, withDirectives as vr, vShow as yr, isProxy as so, toRaw as uo, isRef as ze, inject as be, createSlots as tn, Fragment as Ue, provide as Xa, watch as Ie, renderList as Ct, ref as J, TransitionGroup as br, normalizeStyle as sa, resolveDynamicComponent as va, onMounted as Nt, h as co, nextTick as fo, withKeys as wr, reactive as mo, toRefs as ya, shallowRef as er, readonly as Wt, mergeProps as ba, createStaticVNode as kr, setBlockTracking as tr, onBeforeUnmount as po } from "vue";
|
|
5
5
|
import { useI18n as G, createI18n as ho } from "vue-i18n";
|
|
6
|
-
import { useI18n as
|
|
6
|
+
import { useI18n as ug } from "vue-i18n";
|
|
7
7
|
import { VChip as dt } from "vuetify/lib/components/VChip/index.mjs";
|
|
8
8
|
import { VRow as ua, VCol as Jt, VSpacer as Qt } from "vuetify/lib/components/VGrid/index.mjs";
|
|
9
9
|
import { VAlert as go } from "vuetify/lib/components/VAlert/index.mjs";
|
|
@@ -24,10 +24,10 @@ import { VDialog as _a } from "vuetify/lib/components/VDialog/index.mjs";
|
|
|
24
24
|
import { useFetch as bo, watchDebounced as Da, useClipboard as Mr, useStorage as xr, useIntervalFn as wo, useDebounceFn as ko } from "@vueuse/core";
|
|
25
25
|
import { VExpandTransition as Co } from "vuetify/lib/components/transitions/index.mjs";
|
|
26
26
|
import _o from "@vuelidate/core";
|
|
27
|
-
import { createI18nMessage as Ke, requiredIf as Do, between as Ao, email as Mo, maxLength as xo, maxValue as To, minLength as So, minValue as $o, numeric as Oo, required as
|
|
27
|
+
import { createI18nMessage as Ke, requiredIf as Do, between as Ao, email as Mo, maxLength as xo, maxValue as To, minLength as So, minValue as $o, numeric as Oo, required as Po, helpers as Tr, url as Io } from "@vuelidate/validators";
|
|
28
28
|
import { VAutocomplete as an } from "vuetify/lib/components/VAutocomplete/index.mjs";
|
|
29
|
-
import { VCheckboxBtn as
|
|
30
|
-
import { VSwitch as
|
|
29
|
+
import { VCheckboxBtn as Vo } from "vuetify/lib/components/VCheckbox/index.mjs";
|
|
30
|
+
import { VSwitch as Fo } from "vuetify/lib/components/VSwitch/index.mjs";
|
|
31
31
|
import { VSelect as Eo } from "vuetify/lib/components/VSelect/index.mjs";
|
|
32
32
|
import { VProgressCircular as Qn } from "vuetify/lib/components/VProgressCircular/index.mjs";
|
|
33
33
|
import { VAvatar as da } from "vuetify/lib/components/VAvatar/index.mjs";
|
|
@@ -159,10 +159,10 @@ const yp = /* @__PURE__ */ L({
|
|
|
159
159
|
_: 3
|
|
160
160
|
}, 8, ["title", "loading"]));
|
|
161
161
|
}
|
|
162
|
-
}), S = (t) => typeof t > "u", nr = (t) => !S(t),
|
|
162
|
+
}), S = (t) => typeof t > "u", nr = (t) => !S(t), ve = (t) => t === null, Aa = (t) => typeof t == "number", ut = (t) => typeof t == "string", Oe = (t) => Array.isArray(t), ar = (t) => typeof t == "boolean", bp = (t) => ut(t) && /^[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(t), wp = (t) => {
|
|
163
163
|
const n = parseFloat(t);
|
|
164
164
|
return !isNaN(t) && (n | 0) === n;
|
|
165
|
-
}, Wn = (t) => typeof t == "object" && !Oe(t) && !
|
|
165
|
+
}, Wn = (t) => typeof t == "object" && !Oe(t) && !ve(t), Sr = (t) => Wn(t) ? Object.keys(t).length === 0 : !1, Wo = (t) => Oe(t) && t.length === 0, kp = (t) => ve(t) || S(t) || t === "" || t === 0 || Wo(t) || Sr(t), ct = (t) => {
|
|
166
166
|
if (typeof structuredClone == "function")
|
|
167
167
|
try {
|
|
168
168
|
return so(t) ? structuredClone(uo(t)) : ze(t) ? structuredClone(f(t)) : structuredClone(t);
|
|
@@ -202,10 +202,21 @@ const yp = /* @__PURE__ */ L({
|
|
|
202
202
|
const s = r.substring(1);
|
|
203
203
|
S(n[s]) || (e[o] = n[r.substring(1)] + "");
|
|
204
204
|
}), e.join("/");
|
|
205
|
-
}, Ap = (t
|
|
205
|
+
}, Ap = (t, n) => {
|
|
206
|
+
if (t.indexOf(":") === -1)
|
|
207
|
+
return t;
|
|
208
|
+
const e = [], a = t.split("/");
|
|
209
|
+
return console.log(a), a.forEach((r, o) => {
|
|
210
|
+
if (e[o] = r, !r.startsWith(":"))
|
|
211
|
+
return;
|
|
212
|
+
e[o] = r.substring(1);
|
|
213
|
+
const s = /^:([a-zA-Z0-9_-]+).*/, c = r.match(s);
|
|
214
|
+
ve(c) || !c[1] || S(n[c[1]]) || (e[o] = n[c[1]] + "");
|
|
215
|
+
}), e.join("/");
|
|
216
|
+
}, Mp = (t) => t.replace(".", "-"), nt = Symbol.for("anzu:system-scope"), at = Symbol.for("anzu:subject-scope"), Zo = {
|
|
206
217
|
key: 0,
|
|
207
218
|
class: "required"
|
|
208
|
-
},
|
|
219
|
+
}, xp = /* @__PURE__ */ L({
|
|
209
220
|
__name: "AFormTextField",
|
|
210
221
|
props: {
|
|
211
222
|
modelValue: null,
|
|
@@ -271,7 +282,7 @@ const yp = /* @__PURE__ */ L({
|
|
|
271
282
|
}), Qo = {
|
|
272
283
|
key: 0,
|
|
273
284
|
class: "required"
|
|
274
|
-
},
|
|
285
|
+
}, Tp = /* @__PURE__ */ L({
|
|
275
286
|
__name: "AFormTextarea",
|
|
276
287
|
props: {
|
|
277
288
|
modelValue: null,
|
|
@@ -334,7 +345,7 @@ const yp = /* @__PURE__ */ L({
|
|
|
334
345
|
}), Xo = {
|
|
335
346
|
key: 0,
|
|
336
347
|
class: "required"
|
|
337
|
-
},
|
|
348
|
+
}, Sp = /* @__PURE__ */ L({
|
|
338
349
|
__name: "AFormBooleanToggle",
|
|
339
350
|
props: {
|
|
340
351
|
modelValue: { default: null },
|
|
@@ -404,7 +415,7 @@ const yp = /* @__PURE__ */ L({
|
|
|
404
415
|
}, 8, ["modelValue", "mandatory"])
|
|
405
416
|
], 64));
|
|
406
417
|
}
|
|
407
|
-
}),
|
|
418
|
+
}), $p = /* @__PURE__ */ L({
|
|
408
419
|
__name: "ASystemEntityScope",
|
|
409
420
|
props: {
|
|
410
421
|
system: null,
|
|
@@ -417,7 +428,7 @@ const yp = /* @__PURE__ */ L({
|
|
|
417
428
|
}), ei = { class: "anzu-data-footer" }, ti = {
|
|
418
429
|
key: 0,
|
|
419
430
|
class: "anzu-data-footer__page-limit"
|
|
420
|
-
}, ni = { class: "anzu-data-footer__pagination" }, ai = { class: "anzu-data-footer__icons-before" }, ri = { class: "current-page" }, oi = { class: "anzu-data-footer__icons-after" },
|
|
431
|
+
}, ni = { class: "anzu-data-footer__pagination" }, ai = { class: "anzu-data-footer__icons-before" }, ri = { class: "current-page" }, oi = { class: "anzu-data-footer__icons-after" }, Op = /* @__PURE__ */ L({
|
|
421
432
|
__name: "ADatatablePagination",
|
|
422
433
|
props: {
|
|
423
434
|
modelValue: null,
|
|
@@ -430,27 +441,27 @@ const yp = /* @__PURE__ */ L({
|
|
|
430
441
|
get() {
|
|
431
442
|
return e.modelValue;
|
|
432
443
|
},
|
|
433
|
-
set(
|
|
434
|
-
n("update:modelValue", ct(
|
|
444
|
+
set(F) {
|
|
445
|
+
n("update:modelValue", ct(F));
|
|
435
446
|
}
|
|
436
|
-
}), { t: r } = G(), o = T(() => Math.ceil(a.value.totalCount / a.value.rowsPerPage)), s = T(() => a.value.page * a.value.rowsPerPage - a.value.rowsPerPage + 1), c = T(() => a.value.page * a.value.rowsPerPage - a.value.rowsPerPage + a.value.currentViewCount), u = T(() => a.value.page === 1), p = T(() => !
|
|
437
|
-
|
|
438
|
-
|
|
447
|
+
}), { t: r } = G(), o = T(() => Math.ceil(a.value.totalCount / a.value.rowsPerPage)), s = T(() => a.value.page * a.value.rowsPerPage - a.value.rowsPerPage + 1), c = T(() => a.value.page * a.value.rowsPerPage - a.value.rowsPerPage + a.value.currentViewCount), u = T(() => a.value.page === 1), p = T(() => !ve(a.value.hasNextPage) || a.value.page === o.value), m = T(() => ve(a.value.hasNextPage) && a.value.page === o.value || a.value.hasNextPage === !1), d = T(() => ve(a.value.hasNextPage) ? a.value.totalCount : a.value.hasNextPage ? c.value + 1 + "+" : c.value), g = T(() => a.value.rowsPerPage);
|
|
448
|
+
Ie(g, (F, z) => {
|
|
449
|
+
F !== z && (a.value.page = 1, n("change"));
|
|
439
450
|
});
|
|
440
451
|
const b = T(() => a.value.page);
|
|
441
|
-
|
|
442
|
-
|
|
452
|
+
Ie(b, (F, z) => {
|
|
453
|
+
F !== z && n("change");
|
|
443
454
|
});
|
|
444
|
-
const
|
|
455
|
+
const V = () => {
|
|
445
456
|
a.value.page = 1;
|
|
446
457
|
}, v = () => {
|
|
447
458
|
a.value.page = o.value;
|
|
448
459
|
}, O = () => {
|
|
449
460
|
a.value.page = a.value.page - 1;
|
|
450
|
-
},
|
|
461
|
+
}, P = () => {
|
|
451
462
|
a.value.page = a.value.page + 1;
|
|
452
463
|
};
|
|
453
|
-
return (
|
|
464
|
+
return (F, z) => (k(), H("div", ei, [
|
|
454
465
|
t.hideRecordsPerPage ? Z("", !0) : (k(), H("div", ti, [
|
|
455
466
|
B($(f(r)("common.system.datatable.itemsPerPage")) + ": ", 1),
|
|
456
467
|
w(Jn, {
|
|
@@ -486,7 +497,7 @@ const yp = /* @__PURE__ */ L({
|
|
|
486
497
|
icon: "mdi-page-first",
|
|
487
498
|
size: "small",
|
|
488
499
|
variant: "text",
|
|
489
|
-
onClick: re(
|
|
500
|
+
onClick: re(V, ["stop"])
|
|
490
501
|
}, null, 8, ["disabled", "onClick"]),
|
|
491
502
|
w(ie, {
|
|
492
503
|
disabled: f(u),
|
|
@@ -505,7 +516,7 @@ const yp = /* @__PURE__ */ L({
|
|
|
505
516
|
icon: "mdi-chevron-right",
|
|
506
517
|
size: "small",
|
|
507
518
|
variant: "text",
|
|
508
|
-
onClick: re(
|
|
519
|
+
onClick: re(P, ["stop"])
|
|
509
520
|
}, null, 8, ["disabled", "onClick"]),
|
|
510
521
|
w(ie, {
|
|
511
522
|
disabled: f(p),
|
|
@@ -518,7 +529,7 @@ const yp = /* @__PURE__ */ L({
|
|
|
518
529
|
]));
|
|
519
530
|
}
|
|
520
531
|
});
|
|
521
|
-
const
|
|
532
|
+
const Pp = /* @__PURE__ */ L({
|
|
522
533
|
__name: "ADatatableConfigButton",
|
|
523
534
|
props: {
|
|
524
535
|
columnsAll: null,
|
|
@@ -638,16 +649,16 @@ const Op = /* @__PURE__ */ L({
|
|
|
638
649
|
}), p = T(() => e.customOptions ? e.customOptions : e.variant === "most-relevant" ? c : s), m = (d) => {
|
|
639
650
|
o.value = d.id;
|
|
640
651
|
};
|
|
641
|
-
return
|
|
652
|
+
return Ie(
|
|
642
653
|
r,
|
|
643
654
|
(d, g) => {
|
|
644
655
|
if (S(g) || d === g)
|
|
645
656
|
return;
|
|
646
|
-
const b = p.value.find((
|
|
657
|
+
const b = p.value.find((V) => V.id === d);
|
|
647
658
|
b && n("sortByChange", b);
|
|
648
659
|
},
|
|
649
660
|
{ immediate: !0 }
|
|
650
|
-
),
|
|
661
|
+
), Ie(
|
|
651
662
|
o,
|
|
652
663
|
(d, g) => {
|
|
653
664
|
S(g) || d === g || (r.value = d);
|
|
@@ -676,7 +687,7 @@ const Op = /* @__PURE__ */ L({
|
|
|
676
687
|
default: y(() => [
|
|
677
688
|
(k(!0), H(Ue, null, Ct(f(p), (b) => (k(), E(Qe, {
|
|
678
689
|
key: b.id,
|
|
679
|
-
onClick: (
|
|
690
|
+
onClick: (V) => m(b)
|
|
680
691
|
}, {
|
|
681
692
|
default: y(() => [
|
|
682
693
|
w(Xt, {
|
|
@@ -739,7 +750,7 @@ const Op = /* @__PURE__ */ L({
|
|
|
739
750
|
},
|
|
740
751
|
setup(t) {
|
|
741
752
|
const n = t, e = T(() => n.data);
|
|
742
|
-
return
|
|
753
|
+
return Ie(
|
|
743
754
|
e,
|
|
744
755
|
(a) => {
|
|
745
756
|
console.log(a);
|
|
@@ -1169,25 +1180,25 @@ const ir = ["en", "sk"], le = ho({
|
|
|
1169
1180
|
missing: (t, n) => {
|
|
1170
1181
|
ir.includes(t) && console.warn(`Missing ${t} translation: ${n}`);
|
|
1171
1182
|
}
|
|
1172
|
-
}),
|
|
1173
|
-
class
|
|
1183
|
+
}), Pr = (t) => t instanceof Ve;
|
|
1184
|
+
class Ve extends Error {
|
|
1174
1185
|
constructor(n, e = "") {
|
|
1175
1186
|
super(e), this.name = "AnzuFatalError", this.cause = n, this.message = e;
|
|
1176
1187
|
}
|
|
1177
1188
|
}
|
|
1178
|
-
const $i = 200, Oi = 201,
|
|
1189
|
+
const $i = 200, Oi = 201, Pi = 204, Fp = 400, Ep = 401, Ii = 403, Ir = 422, Vi = [$i, Oi, Pi], Dt = (t) => {
|
|
1179
1190
|
var n;
|
|
1180
|
-
return Ca.isAxiosError(t) && ((n = t.response) == null ? void 0 : n.status) ===
|
|
1181
|
-
},
|
|
1191
|
+
return Ca.isAxiosError(t) && ((n = t.response) == null ? void 0 : n.status) === Ii;
|
|
1192
|
+
}, Vr = (t) => t instanceof ft;
|
|
1182
1193
|
class ft extends Error {
|
|
1183
1194
|
constructor(n, e = "") {
|
|
1184
1195
|
super(e), this.name = "AnzuApiForbiddenError", this.cause = n, this.message = e;
|
|
1185
1196
|
}
|
|
1186
1197
|
}
|
|
1187
|
-
const
|
|
1198
|
+
const Fi = "validation_failed", At = (t) => {
|
|
1188
1199
|
var n, e, a;
|
|
1189
|
-
return Ca.isAxiosError(t) && ((n = t.response) == null ? void 0 : n.status) ===
|
|
1190
|
-
},
|
|
1200
|
+
return Ca.isAxiosError(t) && ((n = t.response) == null ? void 0 : n.status) === Ir && ((e = t.response.data) == null ? void 0 : e.error) === Fi && ((a = t.response.data) == null ? void 0 : a.fields);
|
|
1201
|
+
}, Fr = (t) => t instanceof mt;
|
|
1191
1202
|
function Ei(t, n, e) {
|
|
1192
1203
|
var o;
|
|
1193
1204
|
const a = (o = t.response) == null ? void 0 : o.data, r = [];
|
|
@@ -1215,7 +1226,7 @@ class pt extends Error {
|
|
|
1215
1226
|
}
|
|
1216
1227
|
const Ni = "forbidden_operation_error", Mt = (t) => {
|
|
1217
1228
|
var n, e, a;
|
|
1218
|
-
return Ca.isAxiosError(t) && ((n = t.response) == null ? void 0 : n.status) ===
|
|
1229
|
+
return Ca.isAxiosError(t) && ((n = t.response) == null ? void 0 : n.status) === Ir && ((e = t.response.data) == null ? void 0 : e.error) === Ni && ((a = t.response.data) == null ? void 0 : a.detail);
|
|
1219
1230
|
}, Li = (t) => t instanceof ht;
|
|
1220
1231
|
function Bi(t) {
|
|
1221
1232
|
var e;
|
|
@@ -1239,8 +1250,8 @@ function xa() {
|
|
|
1239
1250
|
type: "success"
|
|
1240
1251
|
});
|
|
1241
1252
|
}, n = (v, O = Ze) => {
|
|
1242
|
-
const { t:
|
|
1243
|
-
t(
|
|
1253
|
+
const { t: P } = le.global;
|
|
1254
|
+
t(P(v), O);
|
|
1244
1255
|
}, e = (v, O = Ze) => {
|
|
1245
1256
|
qe({
|
|
1246
1257
|
group: "alerts",
|
|
@@ -1249,8 +1260,8 @@ function xa() {
|
|
|
1249
1260
|
type: "error"
|
|
1250
1261
|
});
|
|
1251
1262
|
}, a = (v, O = Ze) => {
|
|
1252
|
-
const { t:
|
|
1253
|
-
e(
|
|
1263
|
+
const { t: P } = le.global;
|
|
1264
|
+
e(P(v), O);
|
|
1254
1265
|
}, r = (v, O = Ze) => {
|
|
1255
1266
|
qe({
|
|
1256
1267
|
group: "alerts",
|
|
@@ -1259,8 +1270,8 @@ function xa() {
|
|
|
1259
1270
|
type: "info"
|
|
1260
1271
|
});
|
|
1261
1272
|
}, o = (v, O = Ze) => {
|
|
1262
|
-
const { t:
|
|
1263
|
-
r(
|
|
1273
|
+
const { t: P } = le.global;
|
|
1274
|
+
r(P(v), O);
|
|
1264
1275
|
}, s = (v, O = Ze) => {
|
|
1265
1276
|
qe({
|
|
1266
1277
|
group: "alerts",
|
|
@@ -1269,8 +1280,8 @@ function xa() {
|
|
|
1269
1280
|
type: "warning"
|
|
1270
1281
|
});
|
|
1271
1282
|
}, c = (v, O = Ze) => {
|
|
1272
|
-
const { t:
|
|
1273
|
-
s(
|
|
1283
|
+
const { t: P } = le.global;
|
|
1284
|
+
s(P(v), O);
|
|
1274
1285
|
}, u = (v = Ze) => {
|
|
1275
1286
|
const { t: O } = le.global;
|
|
1276
1287
|
qe({
|
|
@@ -1280,25 +1291,25 @@ function xa() {
|
|
|
1280
1291
|
type: "error"
|
|
1281
1292
|
});
|
|
1282
1293
|
}, p = (v, O = Ze) => {
|
|
1283
|
-
const { t:
|
|
1294
|
+
const { t: P } = le.global;
|
|
1284
1295
|
qe({
|
|
1285
1296
|
group: "alerts",
|
|
1286
|
-
text:
|
|
1297
|
+
text: P("common.alert.recordWas." + v),
|
|
1287
1298
|
duration: O * 1e3,
|
|
1288
1299
|
type: "success"
|
|
1289
1300
|
});
|
|
1290
|
-
}, m = (v, O = -1,
|
|
1291
|
-
const { t:
|
|
1301
|
+
}, m = (v, O = -1, P = !1) => {
|
|
1302
|
+
const { t: F, te: z } = le.global, U = [F("common.alert.fixApiValidationErrors")];
|
|
1292
1303
|
for (let ne = 0; ne < v.length; ne++) {
|
|
1293
1304
|
let ee = "";
|
|
1294
|
-
|
|
1305
|
+
P ? ee += v[ne].field : z(v[ne].field) && (ee += F(v[ne].field));
|
|
1295
1306
|
const ue = /* @__PURE__ */ new Set();
|
|
1296
1307
|
for (let me = 0; me < v[ne].errors.length; me++) {
|
|
1297
1308
|
if (z("error.apiValidation." + v[ne].errors[me])) {
|
|
1298
|
-
ue.add(
|
|
1309
|
+
ue.add(F("error.apiValidation." + v[ne].errors[me]));
|
|
1299
1310
|
continue;
|
|
1300
1311
|
}
|
|
1301
|
-
ue.add(
|
|
1312
|
+
ue.add(F("error.apiValidation.noTranslation"));
|
|
1302
1313
|
}
|
|
1303
1314
|
ee.length > 0 && U.push(ee + ": " + Array.from(ue).join(", "));
|
|
1304
1315
|
}
|
|
@@ -1309,9 +1320,9 @@ function xa() {
|
|
|
1309
1320
|
type: "error"
|
|
1310
1321
|
});
|
|
1311
1322
|
}, d = (v, O = -1) => {
|
|
1312
|
-
const { t:
|
|
1313
|
-
let z =
|
|
1314
|
-
|
|
1323
|
+
const { t: P, te: F } = le.global;
|
|
1324
|
+
let z = P("error.apiForbiddenOperation.noTranslation");
|
|
1325
|
+
F("error.apiForbiddenOperation." + v) && (z = P("error.apiForbiddenOperation." + v)), qe({
|
|
1315
1326
|
group: "alerts",
|
|
1316
1327
|
text: z,
|
|
1317
1328
|
duration: O * 1e3,
|
|
@@ -1349,10 +1360,10 @@ function xa() {
|
|
|
1349
1360
|
showApiForbiddenOperationError: d,
|
|
1350
1361
|
showUnknownError: g,
|
|
1351
1362
|
showForbiddenError: b,
|
|
1352
|
-
showErrorsDefault: (v) =>
|
|
1363
|
+
showErrorsDefault: (v) => Vr(v) ? (b(), !0) : Fr(v) ? (m(v.fields), !0) : Li(v) ? (d(v.detail), !0) : Pr(v) || Er(v) ? (g(), !0) : !1
|
|
1353
1364
|
};
|
|
1354
1365
|
}
|
|
1355
|
-
const
|
|
1366
|
+
const Np = /* @__PURE__ */ L({
|
|
1356
1367
|
__name: "ACreateDialog",
|
|
1357
1368
|
props: {
|
|
1358
1369
|
modelValue: { type: Boolean },
|
|
@@ -1391,7 +1402,7 @@ const Ep = /* @__PURE__ */ L({
|
|
|
1391
1402
|
}
|
|
1392
1403
|
};
|
|
1393
1404
|
return (g, b) => {
|
|
1394
|
-
const
|
|
1405
|
+
const V = Et("ABtnTertiary"), v = Et("ABtnPrimary");
|
|
1395
1406
|
return k(), E(v, {
|
|
1396
1407
|
class: ke(t.buttonClass),
|
|
1397
1408
|
rounded: "pill",
|
|
@@ -1431,7 +1442,7 @@ const Ep = /* @__PURE__ */ L({
|
|
|
1431
1442
|
w(wa, null, {
|
|
1432
1443
|
default: y(() => [
|
|
1433
1444
|
w(Qt),
|
|
1434
|
-
w(
|
|
1445
|
+
w(V, {
|
|
1435
1446
|
"data-cy": "button-cancel",
|
|
1436
1447
|
onClick: re(s, ["stop"])
|
|
1437
1448
|
}, {
|
|
@@ -1466,7 +1477,7 @@ const Ep = /* @__PURE__ */ L({
|
|
|
1466
1477
|
}, 8, ["class", "data-cy", "onClick"]);
|
|
1467
1478
|
};
|
|
1468
1479
|
}
|
|
1469
|
-
}), Ri = { class: "a-admin-switcher__content" }, zi = ["href"], Ui = ["src", "alt"], Yi = { class: "a-admin-switcher__item-title" },
|
|
1480
|
+
}), Ri = { class: "a-admin-switcher__content" }, zi = ["href"], Ui = ["src", "alt"], Yi = { class: "a-admin-switcher__item-title" }, Lp = /* @__PURE__ */ L({
|
|
1470
1481
|
__name: "AAdminSwitcher",
|
|
1471
1482
|
props: {
|
|
1472
1483
|
configUrl: { default: "" }
|
|
@@ -1537,7 +1548,7 @@ function Ji(t, n) {
|
|
|
1537
1548
|
const e = Et("RouterView");
|
|
1538
1549
|
return k(), E(e);
|
|
1539
1550
|
}
|
|
1540
|
-
const
|
|
1551
|
+
const Bp = /* @__PURE__ */ gt(Hi, [["render", Ji]]);
|
|
1541
1552
|
var Ta = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1542
1553
|
function Nr(t) {
|
|
1543
1554
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
@@ -1554,7 +1565,7 @@ var ca = {}, Wi = {
|
|
|
1554
1565
|
(function(e, a) {
|
|
1555
1566
|
t.exports = a();
|
|
1556
1567
|
})(Ta, function() {
|
|
1557
|
-
var e = 1e3, a = 6e4, r = 36e5, o = "millisecond", s = "second", c = "minute", u = "hour", p = "day", m = "week", d = "month", g = "quarter", b = "year",
|
|
1568
|
+
var e = 1e3, a = 6e4, r = 36e5, o = "millisecond", s = "second", c = "minute", u = "hour", p = "day", m = "week", d = "month", g = "quarter", b = "year", V = "date", v = "Invalid Date", O = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, P = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, F = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(D) {
|
|
1558
1569
|
var C = ["th", "st", "nd", "rd"], A = D % 100;
|
|
1559
1570
|
return "[" + D + (C[(A - 20) % 10] || C[A] || C[0]) + "]";
|
|
1560
1571
|
} }, z = function(D, C, A) {
|
|
@@ -1571,11 +1582,11 @@ var ca = {}, Wi = {
|
|
|
1571
1582
|
}, a: function(D) {
|
|
1572
1583
|
return D < 0 ? Math.ceil(D) || 0 : Math.floor(D);
|
|
1573
1584
|
}, p: function(D) {
|
|
1574
|
-
return { M: d, y: b, w: m, d: p, D:
|
|
1585
|
+
return { M: d, y: b, w: m, d: p, D: V, h: u, m: c, s, ms: o, Q: g }[D] || String(D || "").toLowerCase().replace(/s$/, "");
|
|
1575
1586
|
}, u: function(D) {
|
|
1576
1587
|
return D === void 0;
|
|
1577
1588
|
} }, ne = "en", ee = {};
|
|
1578
|
-
ee[ne] =
|
|
1589
|
+
ee[ne] = F;
|
|
1579
1590
|
var ue = function(D) {
|
|
1580
1591
|
return D instanceof Me;
|
|
1581
1592
|
}, me = function D(C, A, M) {
|
|
@@ -1661,7 +1672,7 @@ var ca = {}, Wi = {
|
|
|
1661
1672
|
var He = this.$locale().weekStart || 0, Ne = (ge < He ? ge + 7 : ge) - He;
|
|
1662
1673
|
return se(j ? Ee - Ne : Ee + (6 - Ne), Ce);
|
|
1663
1674
|
case p:
|
|
1664
|
-
case
|
|
1675
|
+
case V:
|
|
1665
1676
|
return he(xe + "Hours", 0);
|
|
1666
1677
|
case u:
|
|
1667
1678
|
return he(xe + "Minutes", 1);
|
|
@@ -1675,10 +1686,10 @@ var ca = {}, Wi = {
|
|
|
1675
1686
|
}, C.endOf = function(A) {
|
|
1676
1687
|
return this.startOf(A, !1);
|
|
1677
1688
|
}, C.$set = function(A, M) {
|
|
1678
|
-
var x, j = Q.p(A), K = "set" + (this.$u ? "UTC" : ""), se = (x = {}, x[p] = K + "Date", x[
|
|
1689
|
+
var x, j = Q.p(A), K = "set" + (this.$u ? "UTC" : ""), se = (x = {}, x[p] = K + "Date", x[V] = K + "Date", x[d] = K + "Month", x[b] = K + "FullYear", x[u] = K + "Hours", x[c] = K + "Minutes", x[s] = K + "Seconds", x[o] = K + "Milliseconds", x)[j], he = j === p ? this.$D + (M - this.$W) : M;
|
|
1679
1690
|
if (j === d || j === b) {
|
|
1680
|
-
var ge = this.clone().set(
|
|
1681
|
-
ge.$d[se](he), ge.init(), this.$d = ge.set(
|
|
1691
|
+
var ge = this.clone().set(V, 1);
|
|
1692
|
+
ge.$d[se](he), ge.init(), this.$d = ge.set(V, Math.min(this.$D, ge.daysInMonth())).$d;
|
|
1682
1693
|
} else
|
|
1683
1694
|
se && this.$d[se](he);
|
|
1684
1695
|
return this.init(), this;
|
|
@@ -1717,7 +1728,7 @@ var ca = {}, Wi = {
|
|
|
1717
1728
|
var Je = we < 12 ? "AM" : "PM";
|
|
1718
1729
|
return rt ? Je.toLowerCase() : Je;
|
|
1719
1730
|
}, Te = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: ge + 1, MM: Q.s(ge + 1, 2, "0"), MMM: xe(x.monthsShort, ge, Ee, 3), MMMM: xe(Ee, ge), D: this.$D, DD: Q.s(this.$D, 2, "0"), d: String(this.$W), dd: xe(x.weekdaysMin, this.$W, Ce, 2), ddd: xe(x.weekdaysShort, this.$W, Ce, 3), dddd: Ce[this.$W], H: String(se), HH: Q.s(se, 2, "0"), h: He(1), hh: He(2), a: Ne(se, he, !0), A: Ne(se, he, !1), m: String(he), mm: Q.s(he, 2, "0"), s: String(this.$s), ss: Q.s(this.$s, 2, "0"), SSS: Q.s(this.$ms, 3, "0"), Z: K };
|
|
1720
|
-
return j.replace(
|
|
1731
|
+
return j.replace(P, function(we, Le) {
|
|
1721
1732
|
return Le || Te[we] || K.replace(":", "");
|
|
1722
1733
|
});
|
|
1723
1734
|
}, C.utcOffset = function() {
|
|
@@ -1746,7 +1757,7 @@ var ca = {}, Wi = {
|
|
|
1746
1757
|
return this.$d.toUTCString();
|
|
1747
1758
|
}, D;
|
|
1748
1759
|
}(), W = Me.prototype;
|
|
1749
|
-
return oe.prototype = W, [["$ms", o], ["$s", s], ["$m", c], ["$H", u], ["$W", p], ["$M", d], ["$y", b], ["$D",
|
|
1760
|
+
return oe.prototype = W, [["$ms", o], ["$s", s], ["$m", c], ["$H", u], ["$W", p], ["$M", d], ["$y", b], ["$D", V]].forEach(function(D) {
|
|
1750
1761
|
W[D[1]] = function(C) {
|
|
1751
1762
|
return this.$g(C, D[0], D[1]);
|
|
1752
1763
|
};
|
|
@@ -1796,9 +1807,9 @@ var fa = {}, qi = {
|
|
|
1796
1807
|
};
|
|
1797
1808
|
var d = u.utcOffset;
|
|
1798
1809
|
u.utcOffset = function(v, O) {
|
|
1799
|
-
var
|
|
1800
|
-
if (
|
|
1801
|
-
return this.$u ? 0 :
|
|
1810
|
+
var P = this.$utils().u;
|
|
1811
|
+
if (P(v))
|
|
1812
|
+
return this.$u ? 0 : P(this.$offset) ? d.call(this) : this.$offset;
|
|
1802
1813
|
if (typeof v == "string" && (v = function(ne) {
|
|
1803
1814
|
ne === void 0 && (ne = "");
|
|
1804
1815
|
var ee = ne.match(a);
|
|
@@ -1808,12 +1819,12 @@ var fa = {}, qi = {
|
|
|
1808
1819
|
return oe === 0 ? 0 : me === "+" ? oe : -oe;
|
|
1809
1820
|
}(v), v === null))
|
|
1810
1821
|
return this;
|
|
1811
|
-
var
|
|
1822
|
+
var F = Math.abs(v) <= 16 ? 60 * v : v, z = this;
|
|
1812
1823
|
if (O)
|
|
1813
|
-
return z.$offset =
|
|
1824
|
+
return z.$offset = F, z.$u = v === 0, z;
|
|
1814
1825
|
if (v !== 0) {
|
|
1815
1826
|
var U = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
1816
|
-
(z = this.local().add(
|
|
1827
|
+
(z = this.local().add(F + U, e)).$offset = F, z.$x.$localOffset = U;
|
|
1817
1828
|
} else
|
|
1818
1829
|
z = this.utc();
|
|
1819
1830
|
return z;
|
|
@@ -1836,27 +1847,27 @@ var fa = {}, qi = {
|
|
|
1836
1847
|
u.toDate = function(v) {
|
|
1837
1848
|
return v === "s" && this.$offset ? c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : b.call(this);
|
|
1838
1849
|
};
|
|
1839
|
-
var
|
|
1840
|
-
u.diff = function(v, O,
|
|
1850
|
+
var V = u.diff;
|
|
1851
|
+
u.diff = function(v, O, P) {
|
|
1841
1852
|
if (v && this.$u === v.$u)
|
|
1842
|
-
return
|
|
1843
|
-
var
|
|
1844
|
-
return
|
|
1853
|
+
return V.call(this, v, O, P);
|
|
1854
|
+
var F = this.local(), z = c(v).local();
|
|
1855
|
+
return V.call(F, z, O, P);
|
|
1845
1856
|
};
|
|
1846
1857
|
};
|
|
1847
1858
|
});
|
|
1848
1859
|
})(qi);
|
|
1849
1860
|
const Gi = fa;
|
|
1850
1861
|
De.extend(Gi);
|
|
1851
|
-
const kt = ".000000Z", jn = "YYYY-MM-DDTHH:mm:ss", Lr = "1970-01-01T00:00:00.000000Z", Br = "2100-01-01T00:00:00.000000Z", Ki = () => De().utc().toDate(),
|
|
1862
|
+
const kt = ".000000Z", jn = "YYYY-MM-DDTHH:mm:ss", Lr = "1970-01-01T00:00:00.000000Z", Br = "2100-01-01T00:00:00.000000Z", Ki = () => De().utc().toDate(), jp = () => qo(De().utc().unix()), Rn = (t = !0, n = !1) => t && !n ? De().utc().format("YYYY-MM-DDTHH:mm:ss") + kt : t && n ? De().utc().format("YYYY-MM-DDTHH:mm:00") + kt : !t && n ? De().utc().format("YYYY-MM-DDTHH:mm:00.SSSSSS") + "Z" : De().utc().format("YYYY-MM-DDTHH:mm:ss.SSSSSS") + "Z", Rp = (t = 0) => t === 0 ? De().startOf("day").utc().format(jn) + kt : De().add(t, "days").startOf("day").utc().format(jn) + kt, zp = (t = 0) => t === 0 ? De().endOf("day").utc().format(jn) + kt : De().add(t, "days").endOf("day").utc().format(jn) + kt, Up = (t = 0, n = null) => {
|
|
1852
1863
|
if (n === null && (n = /* @__PURE__ */ new Date()), t === 0)
|
|
1853
1864
|
return n;
|
|
1854
1865
|
if (t > 0)
|
|
1855
1866
|
return De(n).add(t, "minutes").toDate();
|
|
1856
1867
|
if (t < 0)
|
|
1857
1868
|
return De(n).subtract(t, "minutes").toDate();
|
|
1858
|
-
}, Zi = (t) => De(t).utc().format("YYYY-MM-DDTHH:mm:ss") + kt,
|
|
1859
|
-
if (t === Br || t === Lr || t === "" ||
|
|
1869
|
+
}, Zi = (t) => De(t).utc().format("YYYY-MM-DDTHH:mm:ss") + kt, Yp = () => De().utc().format("YYYY"), ma = (t, n = "") => t === Br || t === Lr || t === "" || ve(t) || S(t) ? n : De(t).format("DD.MM.YYYY HH:mm"), Hp = (t, n = "") => {
|
|
1870
|
+
if (t === Br || t === Lr || t === "" || ve(t) || S(t))
|
|
1860
1871
|
return n;
|
|
1861
1872
|
let e = !0, a = !0;
|
|
1862
1873
|
const r = De(t), o = De();
|
|
@@ -1867,7 +1878,7 @@ const kt = ".000000Z", jn = "YYYY-MM-DDTHH:mm:ss", Lr = "1970-01-01T00:00:00.000
|
|
|
1867
1878
|
}, el = { class: "d-flex align-center" }, tl = {
|
|
1868
1879
|
key: 0,
|
|
1869
1880
|
class: "mr-2"
|
|
1870
|
-
},
|
|
1881
|
+
}, Jp = /* @__PURE__ */ L({
|
|
1871
1882
|
__name: "ATimeTrackingFields",
|
|
1872
1883
|
props: {
|
|
1873
1884
|
data: null,
|
|
@@ -1900,7 +1911,7 @@ const kt = ".000000Z", jn = "YYYY-MM-DDTHH:mm:ss", Lr = "1970-01-01T00:00:00.000
|
|
|
1900
1911
|
], 64));
|
|
1901
1912
|
}
|
|
1902
1913
|
});
|
|
1903
|
-
function
|
|
1914
|
+
function Wp(t, n) {
|
|
1904
1915
|
return (e = {}) => {
|
|
1905
1916
|
const a = S(e.variant) ? "eq" : e.variant;
|
|
1906
1917
|
let r = S(e.default) ? null : e.default;
|
|
@@ -1941,7 +1952,7 @@ function Sa() {
|
|
|
1941
1952
|
}
|
|
1942
1953
|
};
|
|
1943
1954
|
}
|
|
1944
|
-
const
|
|
1955
|
+
const qp = /* @__PURE__ */ L({
|
|
1945
1956
|
__name: "AFilterString",
|
|
1946
1957
|
props: {
|
|
1947
1958
|
modelValue: null,
|
|
@@ -1968,7 +1979,7 @@ const Wp = /* @__PURE__ */ L({
|
|
|
1968
1979
|
"onClick:clear": p[1] || (p[1] = re((m) => f(r)(t.modelValue), ["stop"]))
|
|
1969
1980
|
}, null, 8, ["modelValue", "label", "placeholder", "clearable", "data-cy"]));
|
|
1970
1981
|
}
|
|
1971
|
-
}),
|
|
1982
|
+
}), Gp = /* @__PURE__ */ L({
|
|
1972
1983
|
__name: "AFilterInteger",
|
|
1973
1984
|
props: {
|
|
1974
1985
|
modelValue: null,
|
|
@@ -2095,7 +2106,7 @@ const Wp = /* @__PURE__ */ L({
|
|
|
2095
2106
|
_: 1
|
|
2096
2107
|
}, 8, ["class", "data-cy", "onClick"]));
|
|
2097
2108
|
}
|
|
2098
|
-
}),
|
|
2109
|
+
}), Kp = /* @__PURE__ */ L({
|
|
2099
2110
|
__name: "AFilterWrapper",
|
|
2100
2111
|
props: {
|
|
2101
2112
|
enableAdvanced: { type: Boolean, default: !1 },
|
|
@@ -2202,7 +2213,7 @@ function jr() {
|
|
|
2202
2213
|
getGrantOption: (a) => n.value.find((r) => r.value === a)
|
|
2203
2214
|
};
|
|
2204
2215
|
}
|
|
2205
|
-
const
|
|
2216
|
+
const Zp = /* @__PURE__ */ L({
|
|
2206
2217
|
__name: "APermissionGrantEditor",
|
|
2207
2218
|
props: {
|
|
2208
2219
|
availableGrants: null,
|
|
@@ -2276,7 +2287,7 @@ function ol() {
|
|
|
2276
2287
|
const il = {
|
|
2277
2288
|
key: 0,
|
|
2278
2289
|
class: "ml-1"
|
|
2279
|
-
},
|
|
2290
|
+
}, Qp = /* @__PURE__ */ L({
|
|
2280
2291
|
__name: "APermissionValueChip",
|
|
2281
2292
|
props: {
|
|
2282
2293
|
grant: null,
|
|
@@ -2307,7 +2318,7 @@ const il = {
|
|
|
2307
2318
|
a && typeof a == "object" && zr(a);
|
|
2308
2319
|
}
|
|
2309
2320
|
return Object.freeze(t);
|
|
2310
|
-
},
|
|
2321
|
+
}, Xp = (t) => Object.keys(t).map((n) => t[n]), Ur = (t, n, e = ".") => {
|
|
2311
2322
|
const a = n.split(e);
|
|
2312
2323
|
let r = t;
|
|
2313
2324
|
for (; a.length; ) {
|
|
@@ -2317,7 +2328,7 @@ const il = {
|
|
|
2317
2328
|
r = r[o];
|
|
2318
2329
|
}
|
|
2319
2330
|
return r;
|
|
2320
|
-
},
|
|
2331
|
+
}, eh = (t, n, e, a = ".") => {
|
|
2321
2332
|
const r = n.split(a);
|
|
2322
2333
|
let o = t;
|
|
2323
2334
|
for (; r.length - 1; ) {
|
|
@@ -2328,7 +2339,7 @@ const il = {
|
|
|
2328
2339
|
}
|
|
2329
2340
|
o[r[0]] = e;
|
|
2330
2341
|
};
|
|
2331
|
-
function
|
|
2342
|
+
function th(t, n, e = ".") {
|
|
2332
2343
|
const a = n.split(e), r = a.length - 1;
|
|
2333
2344
|
function o(s, c = 0) {
|
|
2334
2345
|
const u = a[c];
|
|
@@ -2340,7 +2351,7 @@ function eh(t, n, e = ".") {
|
|
|
2340
2351
|
}
|
|
2341
2352
|
return o(t), t;
|
|
2342
2353
|
}
|
|
2343
|
-
const ll = (t) => Wn(t) && Object.hasOwn(t, "owners"), sl = (t) => Object.hasOwn(t, "createdBy"), qn = Symbol("currentUser"), Yr = Symbol("customAclResolver"), Hr = Symbol("availableLanguages"), Jr = Symbol("defaultLanguage"),
|
|
2354
|
+
const ll = (t) => Wn(t) && Object.hasOwn(t, "owners"), sl = (t) => Object.hasOwn(t, "createdBy"), qn = Symbol("currentUser"), Yr = Symbol("customAclResolver"), Hr = Symbol("availableLanguages"), Jr = Symbol("defaultLanguage"), nh = {
|
|
2344
2355
|
install(t, n) {
|
|
2345
2356
|
t.provide(qn, n.currentUser), t.provide(Yr, n.customAclResolver), t.provide(Hr, n.languages.available), t.provide(Jr, n.languages.default), t.component("Acl", dl), t.use(Si, { componentName: "Notifications" });
|
|
2346
2357
|
}
|
|
@@ -2398,7 +2409,7 @@ const dl = /* @__PURE__ */ L({
|
|
|
2398
2409
|
},
|
|
2399
2410
|
setup(t) {
|
|
2400
2411
|
const n = t, e = be(qn), { can: a } = ul(), r = J(a(n.permission, n.subject));
|
|
2401
|
-
return
|
|
2412
|
+
return Ie(e, () => {
|
|
2402
2413
|
r.value = a(n.permission, n.subject);
|
|
2403
2414
|
}), (o, s) => r.value ? Ae(o.$slots, "default", { key: 0 }) : Z("", !0);
|
|
2404
2415
|
}
|
|
@@ -2426,7 +2437,7 @@ var ta = [
|
|
|
2426
2437
|
"onValueUpdate",
|
|
2427
2438
|
"onYearChange",
|
|
2428
2439
|
"onPreCalendarPosition"
|
|
2429
|
-
],
|
|
2440
|
+
], Vt = {
|
|
2430
2441
|
_disable: [],
|
|
2431
2442
|
allowInput: !1,
|
|
2432
2443
|
allowInvalidPreload: !1,
|
|
@@ -2558,7 +2569,7 @@ var ta = [
|
|
|
2558
2569
|
hourAriaLabel: "Hour",
|
|
2559
2570
|
minuteAriaLabel: "Minute",
|
|
2560
2571
|
time_24hr: !1
|
|
2561
|
-
},
|
|
2572
|
+
}, Fe = function(t, n) {
|
|
2562
2573
|
return n === void 0 && (n = 2), ("000" + t).slice(n * -1);
|
|
2563
2574
|
}, Ge = function(t) {
|
|
2564
2575
|
return t === !0 ? 1 : 0;
|
|
@@ -2575,7 +2586,7 @@ function sr(t, n) {
|
|
|
2575
2586
|
var na = function(t) {
|
|
2576
2587
|
return t instanceof Array ? t : [t];
|
|
2577
2588
|
};
|
|
2578
|
-
function
|
|
2589
|
+
function Pe(t, n, e) {
|
|
2579
2590
|
if (e === !0)
|
|
2580
2591
|
return t.classList.add(n);
|
|
2581
2592
|
t.classList.remove(n);
|
|
@@ -2584,7 +2595,7 @@ function ce(t, n, e) {
|
|
|
2584
2595
|
var a = window.document.createElement(t);
|
|
2585
2596
|
return n = n || "", e = e || "", a.className = n, e !== void 0 && (a.textContent = e), a;
|
|
2586
2597
|
}
|
|
2587
|
-
function
|
|
2598
|
+
function Pn(t) {
|
|
2588
2599
|
for (; t.firstChild; )
|
|
2589
2600
|
t.removeChild(t.firstChild);
|
|
2590
2601
|
}
|
|
@@ -2594,7 +2605,7 @@ function qr(t, n) {
|
|
|
2594
2605
|
if (t.parentNode)
|
|
2595
2606
|
return qr(t.parentNode, n);
|
|
2596
2607
|
}
|
|
2597
|
-
function
|
|
2608
|
+
function In(t, n) {
|
|
2598
2609
|
var e = ce("div", "numInputWrapper"), a = ce("input", "numInput " + t), r = ce("span", "arrowUp"), o = ce("span", "arrowDown");
|
|
2599
2610
|
if (navigator.userAgent.indexOf("MSIE 9.0") === -1 ? a.type = "number" : (a.type = "text", a.pattern = "\\d*"), n !== void 0)
|
|
2600
2611
|
for (var s in n)
|
|
@@ -2715,10 +2726,10 @@ var aa = function() {
|
|
|
2715
2726
|
return zn(qt.n(t, n, e) - 1, !1, n);
|
|
2716
2727
|
},
|
|
2717
2728
|
G: function(t, n, e) {
|
|
2718
|
-
return
|
|
2729
|
+
return Fe(qt.h(t, n, e));
|
|
2719
2730
|
},
|
|
2720
2731
|
H: function(t) {
|
|
2721
|
-
return
|
|
2732
|
+
return Fe(t.getHours());
|
|
2722
2733
|
},
|
|
2723
2734
|
J: function(t, n) {
|
|
2724
2735
|
return n.ordinal !== void 0 ? t.getDate() + n.ordinal(t.getDate()) : t.getDate();
|
|
@@ -2730,7 +2741,7 @@ var aa = function() {
|
|
|
2730
2741
|
return zn(t.getMonth(), !0, n);
|
|
2731
2742
|
},
|
|
2732
2743
|
S: function(t) {
|
|
2733
|
-
return
|
|
2744
|
+
return Fe(t.getSeconds());
|
|
2734
2745
|
},
|
|
2735
2746
|
U: function(t) {
|
|
2736
2747
|
return t.getTime() / 1e3;
|
|
@@ -2739,16 +2750,16 @@ var aa = function() {
|
|
|
2739
2750
|
return e.getWeek(t);
|
|
2740
2751
|
},
|
|
2741
2752
|
Y: function(t) {
|
|
2742
|
-
return
|
|
2753
|
+
return Fe(t.getFullYear(), 4);
|
|
2743
2754
|
},
|
|
2744
2755
|
d: function(t) {
|
|
2745
|
-
return
|
|
2756
|
+
return Fe(t.getDate());
|
|
2746
2757
|
},
|
|
2747
2758
|
h: function(t) {
|
|
2748
2759
|
return t.getHours() % 12 ? t.getHours() % 12 : 12;
|
|
2749
2760
|
},
|
|
2750
2761
|
i: function(t) {
|
|
2751
|
-
return
|
|
2762
|
+
return Fe(t.getMinutes());
|
|
2752
2763
|
},
|
|
2753
2764
|
j: function(t) {
|
|
2754
2765
|
return t.getDate();
|
|
@@ -2757,7 +2768,7 @@ var aa = function() {
|
|
|
2757
2768
|
return n.weekdays.longhand[t.getDay()];
|
|
2758
2769
|
},
|
|
2759
2770
|
m: function(t) {
|
|
2760
|
-
return
|
|
2771
|
+
return Fe(t.getMonth() + 1);
|
|
2761
2772
|
},
|
|
2762
2773
|
n: function(t) {
|
|
2763
2774
|
return t.getMonth() + 1;
|
|
@@ -2775,7 +2786,7 @@ var aa = function() {
|
|
|
2775
2786
|
return String(t.getFullYear()).substring(2);
|
|
2776
2787
|
}
|
|
2777
2788
|
}, Gr = function(t) {
|
|
2778
|
-
var n = t.config, e = n === void 0 ?
|
|
2789
|
+
var n = t.config, e = n === void 0 ? Vt : n, a = t.l10n, r = a === void 0 ? en : a, o = t.isMobile, s = o === void 0 ? !1 : o;
|
|
2779
2790
|
return function(c, u, p) {
|
|
2780
2791
|
var m = p || r;
|
|
2781
2792
|
return e.formatDate !== void 0 && !s ? e.formatDate(c, u, m) : u.split("").map(function(d, g, b) {
|
|
@@ -2783,7 +2794,7 @@ var aa = function() {
|
|
|
2783
2794
|
}).join("");
|
|
2784
2795
|
};
|
|
2785
2796
|
}, pa = function(t) {
|
|
2786
|
-
var n = t.config, e = n === void 0 ?
|
|
2797
|
+
var n = t.config, e = n === void 0 ? Vt : n, a = t.l10n, r = a === void 0 ? en : a;
|
|
2787
2798
|
return function(o, s, c, u) {
|
|
2788
2799
|
if (!(o !== 0 && !o)) {
|
|
2789
2800
|
var p = u || r, m, d = o;
|
|
@@ -2792,7 +2803,7 @@ var aa = function() {
|
|
|
2792
2803
|
else if (typeof o != "string" && o.toFixed !== void 0)
|
|
2793
2804
|
m = new Date(o);
|
|
2794
2805
|
else if (typeof o == "string") {
|
|
2795
|
-
var g = s || (e ||
|
|
2806
|
+
var g = s || (e || Vt).dateFormat, b = String(o).trim();
|
|
2796
2807
|
if (b === "today")
|
|
2797
2808
|
m = /* @__PURE__ */ new Date(), c = !0;
|
|
2798
2809
|
else if (e && e.parseDate)
|
|
@@ -2800,22 +2811,22 @@ var aa = function() {
|
|
|
2800
2811
|
else if (/Z$/.test(b) || /GMT$/.test(b))
|
|
2801
2812
|
m = new Date(o);
|
|
2802
2813
|
else {
|
|
2803
|
-
for (var
|
|
2814
|
+
for (var V = void 0, v = [], O = 0, P = 0, F = ""; O < g.length; O++) {
|
|
2804
2815
|
var z = g[O], U = z === "\\", ne = g[O - 1] === "\\" || U;
|
|
2805
2816
|
if (wt[z] && !ne) {
|
|
2806
|
-
|
|
2807
|
-
var ee = new RegExp(
|
|
2808
|
-
ee && (
|
|
2817
|
+
F += wt[z];
|
|
2818
|
+
var ee = new RegExp(F).exec(o);
|
|
2819
|
+
ee && (V = !0) && v[z !== "Y" ? "push" : "unshift"]({
|
|
2809
2820
|
fn: cl[z],
|
|
2810
|
-
val: ee[++
|
|
2821
|
+
val: ee[++P]
|
|
2811
2822
|
});
|
|
2812
2823
|
} else
|
|
2813
|
-
U || (
|
|
2824
|
+
U || (F += ".");
|
|
2814
2825
|
}
|
|
2815
2826
|
m = !e || !e.noCalendar ? new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1, 0, 0, 0, 0) : new Date((/* @__PURE__ */ new Date()).setHours(0, 0, 0, 0)), v.forEach(function(ue) {
|
|
2816
2827
|
var me = ue.fn, oe = ue.val;
|
|
2817
2828
|
return m = me(m, oe, p) || m;
|
|
2818
|
-
}), m =
|
|
2829
|
+
}), m = V ? m : void 0;
|
|
2819
2830
|
}
|
|
2820
2831
|
}
|
|
2821
2832
|
if (!(m instanceof Date && !isNaN(m.getTime()))) {
|
|
@@ -2885,10 +2896,10 @@ var $e = globalThis && globalThis.__assign || function() {
|
|
|
2885
2896
|
}, hl = 300;
|
|
2886
2897
|
function gl(t, n) {
|
|
2887
2898
|
var e = {
|
|
2888
|
-
config: $e($e({},
|
|
2899
|
+
config: $e($e({}, Vt), _e.defaultConfig),
|
|
2889
2900
|
l10n: en
|
|
2890
2901
|
};
|
|
2891
|
-
e.parseDate = pa({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = v, e._setHoursFromDate = g, e._positionCalendar = vt, e.changeMonth = he, e.changeYear = Ne, e.clear = ge, e.close = Ce, e.onMouseOver = Je, e._createElement = ce, e.createDay = ee, e.destroy = Ee, e.isEnabled = Te, e.jumpToDate =
|
|
2902
|
+
e.parseDate = pa({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = v, e._setHoursFromDate = g, e._positionCalendar = vt, e.changeMonth = he, e.changeYear = Ne, e.clear = ge, e.close = Ce, e.onMouseOver = Je, e._createElement = ce, e.createDay = ee, e.destroy = Ee, e.isEnabled = Te, e.jumpToDate = F, e.updateValue = We, e.open = on, e.redraw = Rt, e.set = dn, e.setDate = cn, e.toggle = hn;
|
|
2892
2903
|
function a() {
|
|
2893
2904
|
e.utils = {
|
|
2894
2905
|
getDaysInMonth: function(i, l) {
|
|
@@ -2897,9 +2908,9 @@ function gl(t, n) {
|
|
|
2897
2908
|
};
|
|
2898
2909
|
}
|
|
2899
2910
|
function r() {
|
|
2900
|
-
e.element = e.input = t, e.isOpen = !1, ln(), jt(), mn(), fn(), a(), e.isMobile || ne(),
|
|
2911
|
+
e.element = e.input = t, e.isOpen = !1, ln(), jt(), mn(), fn(), a(), e.isMobile || ne(), P(), (e.selectedDates.length || e.config.noCalendar) && (e.config.enableTime && g(e.config.noCalendar ? e.latestSelectedDateObj : void 0), We(!1)), c();
|
|
2901
2912
|
var i = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
2902
|
-
!e.isMobile && i && vt(),
|
|
2913
|
+
!e.isMobile && i && vt(), ye("onReady");
|
|
2903
2914
|
}
|
|
2904
2915
|
function o() {
|
|
2905
2916
|
var i;
|
|
@@ -2942,7 +2953,7 @@ function gl(t, n) {
|
|
|
2942
2953
|
if (!(e.hourElement === void 0 || e.minuteElement === void 0)) {
|
|
2943
2954
|
var i = (parseInt(e.hourElement.value.slice(-2), 10) || 0) % 24, l = (parseInt(e.minuteElement.value, 10) || 0) % 60, h = e.secondElement !== void 0 ? (parseInt(e.secondElement.value, 10) || 0) % 60 : 0;
|
|
2944
2955
|
e.amPM !== void 0 && (i = p(i, e.amPM.textContent));
|
|
2945
|
-
var _ = e.config.minTime !== void 0 || e.config.minDate && e.minDateHasTime && e.latestSelectedDateObj && Re(e.latestSelectedDateObj, e.config.minDate, !0) === 0,
|
|
2956
|
+
var _ = e.config.minTime !== void 0 || e.config.minDate && e.minDateHasTime && e.latestSelectedDateObj && Re(e.latestSelectedDateObj, e.config.minDate, !0) === 0, I = e.config.maxTime !== void 0 || e.config.maxDate && e.maxDateHasTime && e.latestSelectedDateObj && Re(e.latestSelectedDateObj, e.config.maxDate, !0) === 0;
|
|
2946
2957
|
if (e.config.maxTime !== void 0 && e.config.minTime !== void 0 && e.config.minTime > e.config.maxTime) {
|
|
2947
2958
|
var N = ra(e.config.minTime.getHours(), e.config.minTime.getMinutes(), e.config.minTime.getSeconds()), X = ra(e.config.maxTime.getHours(), e.config.maxTime.getMinutes(), e.config.maxTime.getSeconds()), Y = ra(i, l, h);
|
|
2948
2959
|
if (Y > X && Y < N) {
|
|
@@ -2950,7 +2961,7 @@ function gl(t, n) {
|
|
|
2950
2961
|
i = ae[0], l = ae[1], h = ae[2];
|
|
2951
2962
|
}
|
|
2952
2963
|
} else {
|
|
2953
|
-
if (
|
|
2964
|
+
if (I) {
|
|
2954
2965
|
var R = e.config.maxTime !== void 0 ? e.config.maxTime : e.config.maxDate;
|
|
2955
2966
|
i = Math.min(i, R.getHours()), i === R.getHours() && (l = Math.min(l, R.getMinutes())), l === R.getMinutes() && (h = Math.min(h, R.getSeconds()));
|
|
2956
2967
|
}
|
|
@@ -2967,20 +2978,20 @@ function gl(t, n) {
|
|
|
2967
2978
|
l && l instanceof Date && b(l.getHours(), l.getMinutes(), l.getSeconds());
|
|
2968
2979
|
}
|
|
2969
2980
|
function b(i, l, h) {
|
|
2970
|
-
e.latestSelectedDateObj !== void 0 && e.latestSelectedDateObj.setHours(i % 24, l, h || 0, 0), !(!e.hourElement || !e.minuteElement || e.isMobile) && (e.hourElement.value =
|
|
2981
|
+
e.latestSelectedDateObj !== void 0 && e.latestSelectedDateObj.setHours(i % 24, l, h || 0, 0), !(!e.hourElement || !e.minuteElement || e.isMobile) && (e.hourElement.value = Fe(e.config.time_24hr ? i : (12 + i) % 12 + 12 * Ge(i % 12 === 0)), e.minuteElement.value = Fe(l), e.amPM !== void 0 && (e.amPM.textContent = e.l10n.amPM[Ge(i >= 12)]), e.secondElement !== void 0 && (e.secondElement.value = Fe(h)));
|
|
2971
2982
|
}
|
|
2972
|
-
function
|
|
2983
|
+
function V(i) {
|
|
2973
2984
|
var l = je(i), h = parseInt(l.value) + (i.delta || 0);
|
|
2974
2985
|
(h / 1e3 > 1 || i.key === "Enter" && !/[^\d]/.test(h.toString())) && Ne(h);
|
|
2975
2986
|
}
|
|
2976
2987
|
function v(i, l, h, _) {
|
|
2977
2988
|
if (l instanceof Array)
|
|
2978
|
-
return l.forEach(function(
|
|
2979
|
-
return v(i,
|
|
2989
|
+
return l.forEach(function(I) {
|
|
2990
|
+
return v(i, I, h, _);
|
|
2980
2991
|
});
|
|
2981
2992
|
if (i instanceof Array)
|
|
2982
|
-
return i.forEach(function(
|
|
2983
|
-
return v(
|
|
2993
|
+
return i.forEach(function(I) {
|
|
2994
|
+
return v(I, l, h, _);
|
|
2984
2995
|
});
|
|
2985
2996
|
i.addEventListener(l, h, _), e._handlers.push({
|
|
2986
2997
|
remove: function() {
|
|
@@ -2989,9 +3000,9 @@ function gl(t, n) {
|
|
|
2989
3000
|
});
|
|
2990
3001
|
}
|
|
2991
3002
|
function O() {
|
|
2992
|
-
|
|
3003
|
+
ye("onChange");
|
|
2993
3004
|
}
|
|
2994
|
-
function
|
|
3005
|
+
function P() {
|
|
2995
3006
|
if (e.config.wrap && ["open", "close", "toggle", "clear"].forEach(function(h) {
|
|
2996
3007
|
Array.prototype.forEach.call(e.element.querySelectorAll("[data-" + h + "]"), function(_) {
|
|
2997
3008
|
return v(_, "click", e[h]);
|
|
@@ -3003,7 +3014,7 @@ function gl(t, n) {
|
|
|
3003
3014
|
var i = sr(rn, 50);
|
|
3004
3015
|
if (e._debouncedChange = sr(O, hl), e.daysContainer && !/iPhone|iPad|iPod/i.test(navigator.userAgent) && v(e.daysContainer, "mouseover", function(h) {
|
|
3005
3016
|
e.config.mode === "range" && Je(je(h));
|
|
3006
|
-
}), v(e._input, "keydown", rt), e.calendarContainer !== void 0 && v(e.calendarContainer, "keydown", rt), !e.config.inline && !e.config.static && v(window, "resize", i), window.ontouchstart !== void 0 ? v(window.document, "touchstart", He) : v(window.document, "mousedown", He), v(window.document, "focus", He, { capture: !0 }), e.config.clickOpens === !0 && (v(e._input, "focus", e.open), v(e._input, "click", e.open)), e.daysContainer !== void 0 && (v(e.monthNav, "click", vn), v(e.monthNav, ["keyup", "increment"],
|
|
3017
|
+
}), v(e._input, "keydown", rt), e.calendarContainer !== void 0 && v(e.calendarContainer, "keydown", rt), !e.config.inline && !e.config.static && v(window, "resize", i), window.ontouchstart !== void 0 ? v(window.document, "touchstart", He) : v(window.document, "mousedown", He), v(window.document, "focus", He, { capture: !0 }), e.config.clickOpens === !0 && (v(e._input, "focus", e.open), v(e._input, "click", e.open)), e.daysContainer !== void 0 && (v(e.monthNav, "click", vn), v(e.monthNav, ["keyup", "increment"], V), v(e.daysContainer, "click", zt)), e.timeContainer !== void 0 && e.minuteElement !== void 0 && e.hourElement !== void 0) {
|
|
3007
3018
|
var l = function(h) {
|
|
3008
3019
|
return je(h).select();
|
|
3009
3020
|
};
|
|
@@ -3015,22 +3026,22 @@ function gl(t, n) {
|
|
|
3015
3026
|
}
|
|
3016
3027
|
e.config.allowInput && v(e._input, "blur", Le);
|
|
3017
3028
|
}
|
|
3018
|
-
function
|
|
3019
|
-
var h = i !== void 0 ? e.parseDate(i) : e.latestSelectedDateObj || (e.config.minDate && e.config.minDate > e.now ? e.config.minDate : e.config.maxDate && e.config.maxDate < e.now ? e.config.maxDate : e.now), _ = e.currentYear,
|
|
3029
|
+
function F(i, l) {
|
|
3030
|
+
var h = i !== void 0 ? e.parseDate(i) : e.latestSelectedDateObj || (e.config.minDate && e.config.minDate > e.now ? e.config.minDate : e.config.maxDate && e.config.maxDate < e.now ? e.config.maxDate : e.now), _ = e.currentYear, I = e.currentMonth;
|
|
3020
3031
|
try {
|
|
3021
3032
|
h !== void 0 && (e.currentYear = h.getFullYear(), e.currentMonth = h.getMonth());
|
|
3022
3033
|
} catch (N) {
|
|
3023
3034
|
N.message = "Invalid date supplied: " + h, e.config.errorHandler(N);
|
|
3024
3035
|
}
|
|
3025
|
-
l && e.currentYear !== _ && (
|
|
3036
|
+
l && e.currentYear !== _ && (ye("onYearChange"), D()), l && (e.currentYear !== _ || e.currentMonth !== I) && ye("onMonthChange"), e.redraw();
|
|
3026
3037
|
}
|
|
3027
3038
|
function z(i) {
|
|
3028
3039
|
var l = je(i);
|
|
3029
3040
|
~l.className.indexOf("arrow") && U(i, l.classList.contains("arrowUp") ? 1 : -1);
|
|
3030
3041
|
}
|
|
3031
3042
|
function U(i, l, h) {
|
|
3032
|
-
var _ = i && je(i),
|
|
3033
|
-
N.delta = l,
|
|
3043
|
+
var _ = i && je(i), I = h || _ && _.parentNode && _.parentNode.firstChild, N = $t("increment");
|
|
3044
|
+
N.delta = l, I && I.dispatchEvent(N);
|
|
3034
3045
|
}
|
|
3035
3046
|
function ne() {
|
|
3036
3047
|
var i = window.document.createDocumentFragment();
|
|
@@ -3041,55 +3052,55 @@ function gl(t, n) {
|
|
|
3041
3052
|
}
|
|
3042
3053
|
e.rContainer = ce("div", "flatpickr-rContainer"), e.rContainer.appendChild(j()), e.daysContainer || (e.daysContainer = ce("div", "flatpickr-days"), e.daysContainer.tabIndex = -1), W(), e.rContainer.appendChild(e.daysContainer), e.innerContainer.appendChild(e.rContainer), i.appendChild(e.innerContainer);
|
|
3043
3054
|
}
|
|
3044
|
-
e.config.enableTime && i.appendChild(x()),
|
|
3045
|
-
var
|
|
3046
|
-
if ((e.config.inline || e.config.static) && (e.calendarContainer.classList.add(e.config.inline ? "inline" : "static"), e.config.inline && (!
|
|
3055
|
+
e.config.enableTime && i.appendChild(x()), Pe(e.calendarContainer, "rangeMode", e.config.mode === "range"), Pe(e.calendarContainer, "animate", e.config.animate === !0), Pe(e.calendarContainer, "multiMonth", e.config.showMonths > 1), e.calendarContainer.appendChild(i);
|
|
3056
|
+
var I = e.config.appendTo !== void 0 && e.config.appendTo.nodeType !== void 0;
|
|
3057
|
+
if ((e.config.inline || e.config.static) && (e.calendarContainer.classList.add(e.config.inline ? "inline" : "static"), e.config.inline && (!I && e.element.parentNode ? e.element.parentNode.insertBefore(e.calendarContainer, e._input.nextSibling) : e.config.appendTo !== void 0 && e.config.appendTo.appendChild(e.calendarContainer)), e.config.static)) {
|
|
3047
3058
|
var N = ce("div", "flatpickr-wrapper");
|
|
3048
3059
|
e.element.parentNode && e.element.parentNode.insertBefore(N, e.element), N.appendChild(e.element), e.altInput && N.appendChild(e.altInput), N.appendChild(e.calendarContainer);
|
|
3049
3060
|
}
|
|
3050
3061
|
!e.config.static && !e.config.inline && (e.config.appendTo !== void 0 ? e.config.appendTo : window.document.body).appendChild(e.calendarContainer);
|
|
3051
3062
|
}
|
|
3052
3063
|
function ee(i, l, h, _) {
|
|
3053
|
-
var
|
|
3054
|
-
return N.dateObj = l, N.$i = _, N.setAttribute("aria-label", e.formatDate(l, e.config.ariaDateFormat)), i.indexOf("hidden") === -1 && Re(l, e.now) === 0 && (e.todayDateElem = N, N.classList.add("today"), N.setAttribute("aria-current", "date")),
|
|
3064
|
+
var I = Te(l, !0), N = ce("span", i, l.getDate().toString());
|
|
3065
|
+
return N.dateObj = l, N.$i = _, N.setAttribute("aria-label", e.formatDate(l, e.config.ariaDateFormat)), i.indexOf("hidden") === -1 && Re(l, e.now) === 0 && (e.todayDateElem = N, N.classList.add("today"), N.setAttribute("aria-current", "date")), I ? (N.tabIndex = -1, Ot(l) && (N.classList.add("selected"), e.selectedDateElem = N, e.config.mode === "range" && (Pe(N, "startRange", e.selectedDates[0] && Re(l, e.selectedDates[0], !0) === 0), Pe(N, "endRange", e.selectedDates[1] && Re(l, e.selectedDates[1], !0) === 0), i === "nextMonthDay" && N.classList.add("inRange")))) : N.classList.add("flatpickr-disabled"), e.config.mode === "range" && gn(l) && !Ot(l) && N.classList.add("inRange"), e.weekNumbers && e.config.showMonths === 1 && i !== "prevMonthDay" && _ % 7 === 6 && e.weekNumbers.insertAdjacentHTML("beforeend", "<span class='flatpickr-day'>" + e.config.getWeek(l) + "</span>"), ye("onDayCreate", N), N;
|
|
3055
3066
|
}
|
|
3056
3067
|
function ue(i) {
|
|
3057
3068
|
i.focus(), e.config.mode === "range" && Je(i);
|
|
3058
3069
|
}
|
|
3059
3070
|
function me(i) {
|
|
3060
3071
|
for (var l = i > 0 ? 0 : e.config.showMonths - 1, h = i > 0 ? e.config.showMonths : -1, _ = l; _ != h; _ += i)
|
|
3061
|
-
for (var
|
|
3062
|
-
var ae =
|
|
3072
|
+
for (var I = e.daysContainer.children[_], N = i > 0 ? 0 : I.children.length - 1, X = i > 0 ? I.children.length : -1, Y = N; Y != X; Y += i) {
|
|
3073
|
+
var ae = I.children[Y];
|
|
3063
3074
|
if (ae.className.indexOf("hidden") === -1 && Te(ae.dateObj))
|
|
3064
3075
|
return ae;
|
|
3065
3076
|
}
|
|
3066
3077
|
}
|
|
3067
3078
|
function oe(i, l) {
|
|
3068
|
-
for (var h = i.className.indexOf("Month") === -1 ? i.dateObj.getMonth() : e.currentMonth, _ = l > 0 ? e.config.showMonths : -1,
|
|
3069
|
-
for (var X = e.daysContainer.children[N], Y = h - e.currentMonth === N ? i.$i + l : l < 0 ? X.children.length - 1 : 0, ae = X.children.length, R = Y; R >= 0 && R < ae && R != (l > 0 ? ae : -1); R +=
|
|
3079
|
+
for (var h = i.className.indexOf("Month") === -1 ? i.dateObj.getMonth() : e.currentMonth, _ = l > 0 ? e.config.showMonths : -1, I = l > 0 ? 1 : -1, N = h - e.currentMonth; N != _; N += I)
|
|
3080
|
+
for (var X = e.daysContainer.children[N], Y = h - e.currentMonth === N ? i.$i + l : l < 0 ? X.children.length - 1 : 0, ae = X.children.length, R = Y; R >= 0 && R < ae && R != (l > 0 ? ae : -1); R += I) {
|
|
3070
3081
|
var q = X.children[R];
|
|
3071
3082
|
if (q.className.indexOf("hidden") === -1 && Te(q.dateObj) && Math.abs(i.$i - R) >= Math.abs(l))
|
|
3072
3083
|
return ue(q);
|
|
3073
3084
|
}
|
|
3074
|
-
e.changeMonth(
|
|
3085
|
+
e.changeMonth(I), Q(me(I), 0);
|
|
3075
3086
|
}
|
|
3076
3087
|
function Q(i, l) {
|
|
3077
|
-
var h = o(), _ = we(h || document.body),
|
|
3078
|
-
|
|
3088
|
+
var h = o(), _ = we(h || document.body), I = i !== void 0 ? i : _ ? h : e.selectedDateElem !== void 0 && we(e.selectedDateElem) ? e.selectedDateElem : e.todayDateElem !== void 0 && we(e.todayDateElem) ? e.todayDateElem : me(l > 0 ? 1 : -1);
|
|
3089
|
+
I === void 0 ? e._input.focus() : _ ? oe(I, l) : ue(I);
|
|
3079
3090
|
}
|
|
3080
3091
|
function Me(i, l) {
|
|
3081
|
-
for (var h = (new Date(i, l, 1).getDay() - e.l10n.firstDayOfWeek + 7) % 7, _ = e.utils.getDaysInMonth((l - 1 + 12) % 12, i),
|
|
3092
|
+
for (var h = (new Date(i, l, 1).getDay() - e.l10n.firstDayOfWeek + 7) % 7, _ = e.utils.getDaysInMonth((l - 1 + 12) % 12, i), I = e.utils.getDaysInMonth(l, i), N = window.document.createDocumentFragment(), X = e.config.showMonths > 1, Y = X ? "prevMonthDay hidden" : "prevMonthDay", ae = X ? "nextMonthDay hidden" : "nextMonthDay", R = _ + 1 - h, q = 0; R <= _; R++, q++)
|
|
3082
3093
|
N.appendChild(ee("flatpickr-day " + Y, new Date(i, l - 1, R), R, q));
|
|
3083
|
-
for (R = 1; R <=
|
|
3094
|
+
for (R = 1; R <= I; R++, q++)
|
|
3084
3095
|
N.appendChild(ee("flatpickr-day", new Date(i, l, R), R, q));
|
|
3085
|
-
for (var fe =
|
|
3086
|
-
N.appendChild(ee("flatpickr-day " + ae, new Date(i, l + 1, fe %
|
|
3096
|
+
for (var fe = I + 1; fe <= 42 - h && (e.config.showMonths === 1 || q % 7 !== 0); fe++, q++)
|
|
3097
|
+
N.appendChild(ee("flatpickr-day " + ae, new Date(i, l + 1, fe % I), fe, q));
|
|
3087
3098
|
var Be = ce("div", "dayContainer");
|
|
3088
3099
|
return Be.appendChild(N), Be;
|
|
3089
3100
|
}
|
|
3090
3101
|
function W() {
|
|
3091
3102
|
if (e.daysContainer !== void 0) {
|
|
3092
|
-
|
|
3103
|
+
Pn(e.daysContainer), e.weekNumbers && Pn(e.weekNumbers);
|
|
3093
3104
|
for (var i = document.createDocumentFragment(), l = 0; l < e.config.showMonths; l++) {
|
|
3094
3105
|
var h = new Date(e.currentYear, e.currentMonth, 1);
|
|
3095
3106
|
h.setMonth(e.currentMonth + l), i.appendChild(Me(h.getFullYear(), h.getMonth()));
|
|
@@ -3114,19 +3125,19 @@ function gl(t, n) {
|
|
|
3114
3125
|
var i = ce("div", "flatpickr-month"), l = window.document.createDocumentFragment(), h;
|
|
3115
3126
|
e.config.showMonths > 1 || e.config.monthSelectorType === "static" ? h = ce("span", "cur-month") : (e.monthsDropdownContainer = ce("select", "flatpickr-monthDropdown-months"), e.monthsDropdownContainer.setAttribute("aria-label", e.l10n.monthAriaLabel), v(e.monthsDropdownContainer, "change", function(X) {
|
|
3116
3127
|
var Y = je(X), ae = parseInt(Y.value, 10);
|
|
3117
|
-
e.changeMonth(ae - e.currentMonth),
|
|
3128
|
+
e.changeMonth(ae - e.currentMonth), ye("onMonthChange");
|
|
3118
3129
|
}), D(), h = e.monthsDropdownContainer);
|
|
3119
|
-
var _ =
|
|
3120
|
-
|
|
3130
|
+
var _ = In("cur-year", { tabindex: "-1" }), I = _.getElementsByTagName("input")[0];
|
|
3131
|
+
I.setAttribute("aria-label", e.l10n.yearAriaLabel), e.config.minDate && I.setAttribute("min", e.config.minDate.getFullYear().toString()), e.config.maxDate && (I.setAttribute("max", e.config.maxDate.getFullYear().toString()), I.disabled = !!e.config.minDate && e.config.minDate.getFullYear() === e.config.maxDate.getFullYear());
|
|
3121
3132
|
var N = ce("div", "flatpickr-current-month");
|
|
3122
3133
|
return N.appendChild(h), N.appendChild(_), l.appendChild(N), i.appendChild(l), {
|
|
3123
3134
|
container: i,
|
|
3124
|
-
yearElement:
|
|
3135
|
+
yearElement: I,
|
|
3125
3136
|
monthElement: h
|
|
3126
3137
|
};
|
|
3127
3138
|
}
|
|
3128
3139
|
function A() {
|
|
3129
|
-
|
|
3140
|
+
Pn(e.monthNav), e.monthNav.appendChild(e.prevMonthNav), e.config.showMonths && (e.yearElements = [], e.monthElements = []);
|
|
3130
3141
|
for (var i = e.config.showMonths; i--; ) {
|
|
3131
3142
|
var l = C();
|
|
3132
3143
|
e.yearElements.push(l.yearElement), e.monthElements.push(l.monthElement), e.monthNav.appendChild(l.container);
|
|
@@ -3139,14 +3150,14 @@ function gl(t, n) {
|
|
|
3139
3150
|
return e.__hidePrevMonthArrow;
|
|
3140
3151
|
},
|
|
3141
3152
|
set: function(i) {
|
|
3142
|
-
e.__hidePrevMonthArrow !== i && (
|
|
3153
|
+
e.__hidePrevMonthArrow !== i && (Pe(e.prevMonthNav, "flatpickr-disabled", i), e.__hidePrevMonthArrow = i);
|
|
3143
3154
|
}
|
|
3144
3155
|
}), Object.defineProperty(e, "_hideNextMonthArrow", {
|
|
3145
3156
|
get: function() {
|
|
3146
3157
|
return e.__hideNextMonthArrow;
|
|
3147
3158
|
},
|
|
3148
3159
|
set: function(i) {
|
|
3149
|
-
e.__hideNextMonthArrow !== i && (
|
|
3160
|
+
e.__hideNextMonthArrow !== i && (Pe(e.nextMonthNav, "flatpickr-disabled", i), e.__hideNextMonthArrow = i);
|
|
3150
3161
|
}
|
|
3151
3162
|
}), e.currentYearElement = e.yearElements[0], bt(), e.monthNav;
|
|
3152
3163
|
}
|
|
@@ -3154,22 +3165,22 @@ function gl(t, n) {
|
|
|
3154
3165
|
e.calendarContainer.classList.add("hasTime"), e.config.noCalendar && e.calendarContainer.classList.add("noCalendar");
|
|
3155
3166
|
var i = oa(e.config);
|
|
3156
3167
|
e.timeContainer = ce("div", "flatpickr-time"), e.timeContainer.tabIndex = -1;
|
|
3157
|
-
var l = ce("span", "flatpickr-time-separator", ":"), h =
|
|
3168
|
+
var l = ce("span", "flatpickr-time-separator", ":"), h = In("flatpickr-hour", {
|
|
3158
3169
|
"aria-label": e.l10n.hourAriaLabel
|
|
3159
3170
|
});
|
|
3160
3171
|
e.hourElement = h.getElementsByTagName("input")[0];
|
|
3161
|
-
var _ =
|
|
3172
|
+
var _ = In("flatpickr-minute", {
|
|
3162
3173
|
"aria-label": e.l10n.minuteAriaLabel
|
|
3163
3174
|
});
|
|
3164
|
-
if (e.minuteElement = _.getElementsByTagName("input")[0], e.hourElement.tabIndex = e.minuteElement.tabIndex = -1, e.hourElement.value =
|
|
3175
|
+
if (e.minuteElement = _.getElementsByTagName("input")[0], e.hourElement.tabIndex = e.minuteElement.tabIndex = -1, e.hourElement.value = Fe(e.latestSelectedDateObj ? e.latestSelectedDateObj.getHours() : e.config.time_24hr ? i.hours : m(i.hours)), e.minuteElement.value = Fe(e.latestSelectedDateObj ? e.latestSelectedDateObj.getMinutes() : i.minutes), e.hourElement.setAttribute("step", e.config.hourIncrement.toString()), e.minuteElement.setAttribute("step", e.config.minuteIncrement.toString()), e.hourElement.setAttribute("min", e.config.time_24hr ? "0" : "1"), e.hourElement.setAttribute("max", e.config.time_24hr ? "23" : "12"), e.hourElement.setAttribute("maxlength", "2"), e.minuteElement.setAttribute("min", "0"), e.minuteElement.setAttribute("max", "59"), e.minuteElement.setAttribute("maxlength", "2"), e.timeContainer.appendChild(h), e.timeContainer.appendChild(l), e.timeContainer.appendChild(_), e.config.time_24hr && e.timeContainer.classList.add("time24hr"), e.config.enableSeconds) {
|
|
3165
3176
|
e.timeContainer.classList.add("hasSeconds");
|
|
3166
|
-
var
|
|
3167
|
-
e.secondElement =
|
|
3177
|
+
var I = In("flatpickr-second");
|
|
3178
|
+
e.secondElement = I.getElementsByTagName("input")[0], e.secondElement.value = Fe(e.latestSelectedDateObj ? e.latestSelectedDateObj.getSeconds() : i.seconds), e.secondElement.setAttribute("step", e.minuteElement.getAttribute("step")), e.secondElement.setAttribute("min", "0"), e.secondElement.setAttribute("max", "59"), e.secondElement.setAttribute("maxlength", "2"), e.timeContainer.appendChild(ce("span", "flatpickr-time-separator", ":")), e.timeContainer.appendChild(I);
|
|
3168
3179
|
}
|
|
3169
3180
|
return e.config.time_24hr || (e.amPM = ce("span", "flatpickr-am-pm", e.l10n.amPM[Ge((e.latestSelectedDateObj ? e.hourElement.value : e.config.defaultHour) > 11)]), e.amPM.title = e.l10n.toggleTitle, e.amPM.tabIndex = -1, e.timeContainer.appendChild(e.amPM)), e.timeContainer;
|
|
3170
3181
|
}
|
|
3171
3182
|
function j() {
|
|
3172
|
-
e.weekdayContainer ?
|
|
3183
|
+
e.weekdayContainer ? Pn(e.weekdayContainer) : e.weekdayContainer = ce("div", "flatpickr-weekdays");
|
|
3173
3184
|
for (var i = e.config.showMonths; i--; ) {
|
|
3174
3185
|
var l = ce("div", "flatpickr-weekdaycontainer");
|
|
3175
3186
|
e.weekdayContainer.appendChild(l);
|
|
@@ -3201,20 +3212,20 @@ function gl(t, n) {
|
|
|
3201
3212
|
function he(i, l) {
|
|
3202
3213
|
l === void 0 && (l = !0);
|
|
3203
3214
|
var h = l ? i : i - e.currentMonth;
|
|
3204
|
-
h < 0 && e._hidePrevMonthArrow === !0 || h > 0 && e._hideNextMonthArrow === !0 || (e.currentMonth += h, (e.currentMonth < 0 || e.currentMonth > 11) && (e.currentYear += e.currentMonth > 11 ? 1 : -1, e.currentMonth = (e.currentMonth + 12) % 12,
|
|
3215
|
+
h < 0 && e._hidePrevMonthArrow === !0 || h > 0 && e._hideNextMonthArrow === !0 || (e.currentMonth += h, (e.currentMonth < 0 || e.currentMonth > 11) && (e.currentYear += e.currentMonth > 11 ? 1 : -1, e.currentMonth = (e.currentMonth + 12) % 12, ye("onYearChange"), D()), W(), ye("onMonthChange"), bt());
|
|
3205
3216
|
}
|
|
3206
3217
|
function ge(i, l) {
|
|
3207
3218
|
if (i === void 0 && (i = !0), l === void 0 && (l = !0), e.input.value = "", e.altInput !== void 0 && (e.altInput.value = ""), e.mobileInput !== void 0 && (e.mobileInput.value = ""), e.selectedDates = [], e.latestSelectedDateObj = void 0, l === !0 && (e.currentYear = e._initialDate.getFullYear(), e.currentMonth = e._initialDate.getMonth()), e.config.enableTime === !0) {
|
|
3208
|
-
var h = oa(e.config), _ = h.hours,
|
|
3209
|
-
b(_,
|
|
3219
|
+
var h = oa(e.config), _ = h.hours, I = h.minutes, N = h.seconds;
|
|
3220
|
+
b(_, I, N);
|
|
3210
3221
|
}
|
|
3211
|
-
e.redraw(), i &&
|
|
3222
|
+
e.redraw(), i && ye("onChange");
|
|
3212
3223
|
}
|
|
3213
3224
|
function Ce() {
|
|
3214
|
-
e.isOpen = !1, e.isMobile || (e.calendarContainer !== void 0 && e.calendarContainer.classList.remove("open"), e._input !== void 0 && e._input.classList.remove("active")),
|
|
3225
|
+
e.isOpen = !1, e.isMobile || (e.calendarContainer !== void 0 && e.calendarContainer.classList.remove("open"), e._input !== void 0 && e._input.classList.remove("active")), ye("onClose");
|
|
3215
3226
|
}
|
|
3216
3227
|
function Ee() {
|
|
3217
|
-
e.config !== void 0 &&
|
|
3228
|
+
e.config !== void 0 && ye("onDestroy");
|
|
3218
3229
|
for (var i = e._handlers.length; i--; )
|
|
3219
3230
|
e._handlers[i].remove();
|
|
3220
3231
|
if (e._handlers = [], e.mobileInput)
|
|
@@ -3271,16 +3282,16 @@ function gl(t, n) {
|
|
|
3271
3282
|
}
|
|
3272
3283
|
function He(i) {
|
|
3273
3284
|
if (e.isOpen && !e.config.inline) {
|
|
3274
|
-
var l = je(i), h = xe(l), _ = l === e.input || l === e.altInput || e.element.contains(l) || i.path && i.path.indexOf && (~i.path.indexOf(e.input) || ~i.path.indexOf(e.altInput)),
|
|
3285
|
+
var l = je(i), h = xe(l), _ = l === e.input || l === e.altInput || e.element.contains(l) || i.path && i.path.indexOf && (~i.path.indexOf(e.input) || ~i.path.indexOf(e.altInput)), I = !_ && !h && !xe(i.relatedTarget), N = !e.config.ignoredFocusElements.some(function(X) {
|
|
3275
3286
|
return X.contains(l);
|
|
3276
3287
|
});
|
|
3277
|
-
|
|
3288
|
+
I && N && (e.config.allowInput && e.setDate(e._input.value, !1, e.config.altInput ? e.config.altFormat : e.config.dateFormat), e.timeContainer !== void 0 && e.minuteElement !== void 0 && e.hourElement !== void 0 && e.input.value !== "" && e.input.value !== void 0 && u(), e.close(), e.config && e.config.mode === "range" && e.selectedDates.length === 1 && e.clear(!1));
|
|
3278
3289
|
}
|
|
3279
3290
|
}
|
|
3280
3291
|
function Ne(i) {
|
|
3281
3292
|
if (!(!i || e.config.minDate && i < e.config.minDate.getFullYear() || e.config.maxDate && i > e.config.maxDate.getFullYear())) {
|
|
3282
3293
|
var l = i, h = e.currentYear !== l;
|
|
3283
|
-
e.currentYear = l || e.currentYear, e.config.maxDate && e.currentYear === e.config.maxDate.getFullYear() ? e.currentMonth = Math.min(e.config.maxDate.getMonth(), e.currentMonth) : e.config.minDate && e.currentYear === e.config.minDate.getFullYear() && (e.currentMonth = Math.max(e.config.minDate.getMonth(), e.currentMonth)), h && (e.redraw(),
|
|
3294
|
+
e.currentYear = l || e.currentYear, e.config.maxDate && e.currentYear === e.config.maxDate.getFullYear() ? e.currentMonth = Math.min(e.config.maxDate.getMonth(), e.currentMonth) : e.config.minDate && e.currentYear === e.config.minDate.getFullYear() && (e.currentMonth = Math.max(e.config.minDate.getMonth(), e.currentMonth)), h && (e.redraw(), ye("onYearChange"), D());
|
|
3284
3295
|
}
|
|
3285
3296
|
}
|
|
3286
3297
|
function Te(i, l) {
|
|
@@ -3293,33 +3304,33 @@ function gl(t, n) {
|
|
|
3293
3304
|
return !0;
|
|
3294
3305
|
if (_ === void 0)
|
|
3295
3306
|
return !1;
|
|
3296
|
-
for (var
|
|
3307
|
+
for (var I = !!e.config.enable, N = (h = e.config.enable) !== null && h !== void 0 ? h : e.config.disable, X = 0, Y = void 0; X < N.length; X++) {
|
|
3297
3308
|
if (Y = N[X], typeof Y == "function" && Y(_))
|
|
3298
|
-
return
|
|
3309
|
+
return I;
|
|
3299
3310
|
if (Y instanceof Date && _ !== void 0 && Y.getTime() === _.getTime())
|
|
3300
|
-
return
|
|
3311
|
+
return I;
|
|
3301
3312
|
if (typeof Y == "string") {
|
|
3302
3313
|
var ae = e.parseDate(Y, void 0, !0);
|
|
3303
|
-
return ae && ae.getTime() === _.getTime() ?
|
|
3314
|
+
return ae && ae.getTime() === _.getTime() ? I : !I;
|
|
3304
3315
|
} else if (typeof Y == "object" && _ !== void 0 && Y.from && Y.to && _.getTime() >= Y.from.getTime() && _.getTime() <= Y.to.getTime())
|
|
3305
|
-
return
|
|
3316
|
+
return I;
|
|
3306
3317
|
}
|
|
3307
|
-
return !
|
|
3318
|
+
return !I;
|
|
3308
3319
|
}
|
|
3309
3320
|
function we(i) {
|
|
3310
3321
|
return e.daysContainer !== void 0 ? i.className.indexOf("hidden") === -1 && i.className.indexOf("flatpickr-disabled") === -1 && e.daysContainer.contains(i) : !1;
|
|
3311
3322
|
}
|
|
3312
3323
|
function Le(i) {
|
|
3313
|
-
var l = i.target === e._input, h = e._input.value.trimEnd() !==
|
|
3324
|
+
var l = i.target === e._input, h = e._input.value.trimEnd() !== Pt();
|
|
3314
3325
|
l && h && !(i.relatedTarget && xe(i.relatedTarget)) && e.setDate(e._input.value, !0, i.target === e.altInput ? e.config.altFormat : e.config.dateFormat);
|
|
3315
3326
|
}
|
|
3316
3327
|
function rt(i) {
|
|
3317
|
-
var l = je(i), h = e.config.wrap ? t.contains(l) : l === e._input, _ = e.config.allowInput,
|
|
3328
|
+
var l = je(i), h = e.config.wrap ? t.contains(l) : l === e._input, _ = e.config.allowInput, I = e.isOpen && (!_ || !h), N = e.config.inline && h && !_;
|
|
3318
3329
|
if (i.keyCode === 13 && h) {
|
|
3319
3330
|
if (_)
|
|
3320
3331
|
return e.setDate(e._input.value, !0, l === e.altInput ? e.config.altFormat : e.config.dateFormat), e.close(), l.blur();
|
|
3321
3332
|
e.open();
|
|
3322
|
-
} else if (xe(l) ||
|
|
3333
|
+
} else if (xe(l) || I || N) {
|
|
3323
3334
|
var X = !!e.timeContainer && e.timeContainer.contains(l);
|
|
3324
3335
|
switch (i.keyCode) {
|
|
3325
3336
|
case 13:
|
|
@@ -3380,12 +3391,12 @@ function gl(t, n) {
|
|
|
3380
3391
|
e.amPM.textContent = e.l10n.amPM[1], d(), We();
|
|
3381
3392
|
break;
|
|
3382
3393
|
}
|
|
3383
|
-
(h || xe(l)) &&
|
|
3394
|
+
(h || xe(l)) && ye("onKeyDown", i);
|
|
3384
3395
|
}
|
|
3385
3396
|
function Je(i, l) {
|
|
3386
3397
|
if (l === void 0 && (l = "flatpickr-day"), !(e.selectedDates.length !== 1 || i && (!i.classList.contains(l) || i.classList.contains("flatpickr-disabled")))) {
|
|
3387
|
-
for (var h = i ? i.dateObj.getTime() : e.days.firstElementChild.dateObj.getTime(), _ = e.parseDate(e.selectedDates[0], void 0, !0).getTime(),
|
|
3388
|
-
Te(new Date(R), !0) || (X = X || R >
|
|
3398
|
+
for (var h = i ? i.dateObj.getTime() : e.days.firstElementChild.dateObj.getTime(), _ = e.parseDate(e.selectedDates[0], void 0, !0).getTime(), I = Math.min(h, e.selectedDates[0].getTime()), N = Math.max(h, e.selectedDates[0].getTime()), X = !1, Y = 0, ae = 0, R = I; R < N; R += pl.DAY)
|
|
3399
|
+
Te(new Date(R), !0) || (X = X || R > I && R < N, R < _ && (!Y || R > Y) ? Y = R : R > _ && (!ae || R < ae) && (ae = R));
|
|
3389
3400
|
var q = Array.from(e.rContainer.querySelectorAll("*:nth-child(-n+" + e.config.showMonths + ") > ." + l));
|
|
3390
3401
|
q.forEach(function(fe) {
|
|
3391
3402
|
var Be = fe.dateObj, Se = Be.getTime(), st = Y > 0 && Se < Y || ae > 0 && Se > ae;
|
|
@@ -3412,20 +3423,20 @@ function gl(t, n) {
|
|
|
3412
3423
|
var h = je(i);
|
|
3413
3424
|
h && h.blur();
|
|
3414
3425
|
}
|
|
3415
|
-
e.mobileInput !== void 0 && (e.mobileInput.focus(), e.mobileInput.click()),
|
|
3426
|
+
e.mobileInput !== void 0 && (e.mobileInput.focus(), e.mobileInput.click()), ye("onOpen");
|
|
3416
3427
|
return;
|
|
3417
3428
|
} else if (e._input.disabled || e.config.inline)
|
|
3418
3429
|
return;
|
|
3419
3430
|
var _ = e.isOpen;
|
|
3420
|
-
e.isOpen = !0, _ || (e.calendarContainer.classList.add("open"), e._input.classList.add("active"),
|
|
3431
|
+
e.isOpen = !0, _ || (e.calendarContainer.classList.add("open"), e._input.classList.add("active"), ye("onOpen"), vt(l)), e.config.enableTime === !0 && e.config.noCalendar === !0 && e.config.allowInput === !1 && (i === void 0 || !e.timeContainer.contains(i.relatedTarget)) && setTimeout(function() {
|
|
3421
3432
|
return e.hourElement.select();
|
|
3422
3433
|
}, 50);
|
|
3423
3434
|
}
|
|
3424
3435
|
function Lt(i) {
|
|
3425
3436
|
return function(l) {
|
|
3426
3437
|
var h = e.config["_" + i + "Date"] = e.parseDate(l, e.config.dateFormat), _ = e.config["_" + (i === "min" ? "max" : "min") + "Date"];
|
|
3427
|
-
h !== void 0 && (e[i === "min" ? "minDateHasTime" : "maxDateHasTime"] = h.getHours() > 0 || h.getMinutes() > 0 || h.getSeconds() > 0), e.selectedDates && (e.selectedDates = e.selectedDates.filter(function(
|
|
3428
|
-
return Te(
|
|
3438
|
+
h !== void 0 && (e[i === "min" ? "minDateHasTime" : "maxDateHasTime"] = h.getHours() > 0 || h.getMinutes() > 0 || h.getSeconds() > 0), e.selectedDates && (e.selectedDates = e.selectedDates.filter(function(I) {
|
|
3439
|
+
return Te(I);
|
|
3429
3440
|
}), !e.selectedDates.length && i === "min" && g(h), We()), e.daysContainer && (Rt(), h !== void 0 ? e.currentYearElement[i] = h.getFullYear().toString() : e.currentYearElement.removeAttribute(i), e.currentYearElement.disabled = !!_ && h !== void 0 && _.getFullYear() === h.getFullYear());
|
|
3430
3441
|
};
|
|
3431
3442
|
}
|
|
@@ -3463,11 +3474,11 @@ function gl(t, n) {
|
|
|
3463
3474
|
});
|
|
3464
3475
|
var _ = l.mode === "time";
|
|
3465
3476
|
if (!l.dateFormat && (l.enableTime || _)) {
|
|
3466
|
-
var
|
|
3467
|
-
h.dateFormat = l.noCalendar || _ ? "H:i" + (l.enableSeconds ? ":S" : "") :
|
|
3477
|
+
var I = _e.defaultConfig.dateFormat || Vt.dateFormat;
|
|
3478
|
+
h.dateFormat = l.noCalendar || _ ? "H:i" + (l.enableSeconds ? ":S" : "") : I + " H:i" + (l.enableSeconds ? ":S" : "");
|
|
3468
3479
|
}
|
|
3469
3480
|
if (l.altInput && (l.enableTime || _) && !l.altFormat) {
|
|
3470
|
-
var N = _e.defaultConfig.altFormat ||
|
|
3481
|
+
var N = _e.defaultConfig.altFormat || Vt.altFormat;
|
|
3471
3482
|
h.altFormat = l.noCalendar || _ ? "h:i" + (l.enableSeconds ? ":S K" : " K") : N + (" h:i" + (l.enableSeconds ? ":S" : "") + " K");
|
|
3472
3483
|
}
|
|
3473
3484
|
Object.defineProperty(e.config, "minDate", {
|
|
@@ -3509,7 +3520,7 @@ function gl(t, n) {
|
|
|
3509
3520
|
for (var R in ae)
|
|
3510
3521
|
ta.indexOf(R) > -1 ? e.config[R] = na(ae[R]).map(s).concat(e.config[R]) : typeof l[R] > "u" && (e.config[R] = ae[R]);
|
|
3511
3522
|
}
|
|
3512
|
-
l.altInputClass || (e.config.altInputClass = Bt().className + " " + e.config.altInputClass),
|
|
3523
|
+
l.altInputClass || (e.config.altInputClass = Bt().className + " " + e.config.altInputClass), ye("onParseConfig");
|
|
3513
3524
|
}
|
|
3514
3525
|
function Bt() {
|
|
3515
3526
|
return e.config.wrap ? t.querySelector("[data-input]") : t;
|
|
@@ -3523,25 +3534,25 @@ function gl(t, n) {
|
|
|
3523
3534
|
if (typeof e.config.position == "function")
|
|
3524
3535
|
return void e.config.position(e, i);
|
|
3525
3536
|
if (e.calendarContainer !== void 0) {
|
|
3526
|
-
|
|
3537
|
+
ye("onPreCalendarPosition");
|
|
3527
3538
|
var l = i || e._positionElement, h = Array.prototype.reduce.call(e.calendarContainer.children, function(Mn, xn) {
|
|
3528
3539
|
return Mn + xn.offsetHeight;
|
|
3529
|
-
}, 0), _ = e.calendarContainer.offsetWidth,
|
|
3530
|
-
if (
|
|
3540
|
+
}, 0), _ = e.calendarContainer.offsetWidth, I = e.config.position.split(" "), N = I[0], X = I.length > 1 ? I[1] : null, Y = l.getBoundingClientRect(), ae = window.innerHeight - Y.bottom, R = N === "above" || N !== "below" && ae < h && Y.top > h, q = window.pageYOffset + Y.top + (R ? -h - 2 : l.offsetHeight + 2);
|
|
3541
|
+
if (Pe(e.calendarContainer, "arrowTop", !R), Pe(e.calendarContainer, "arrowBottom", R), !e.config.inline) {
|
|
3531
3542
|
var fe = window.pageXOffset + Y.left, Be = !1, Se = !1;
|
|
3532
|
-
X === "center" ? (fe -= (_ - Y.width) / 2, Be = !0) : X === "right" && (fe -= _ - Y.width, Se = !0),
|
|
3543
|
+
X === "center" ? (fe -= (_ - Y.width) / 2, Be = !0) : X === "right" && (fe -= _ - Y.width, Se = !0), Pe(e.calendarContainer, "arrowLeft", !Be && !Se), Pe(e.calendarContainer, "arrowCenter", Be), Pe(e.calendarContainer, "arrowRight", Se);
|
|
3533
3544
|
var st = window.document.body.offsetWidth - (window.pageXOffset + Y.right), ot = fe + _ > window.document.body.offsetWidth, bn = st + _ > window.document.body.offsetWidth;
|
|
3534
|
-
if (
|
|
3545
|
+
if (Pe(e.calendarContainer, "rightMost", ot), !e.config.static)
|
|
3535
3546
|
if (e.calendarContainer.style.top = q + "px", !ot)
|
|
3536
3547
|
e.calendarContainer.style.left = fe + "px", e.calendarContainer.style.right = "auto";
|
|
3537
3548
|
else if (!bn)
|
|
3538
3549
|
e.calendarContainer.style.left = "auto", e.calendarContainer.style.right = st + "px";
|
|
3539
3550
|
else {
|
|
3540
|
-
var
|
|
3541
|
-
if (
|
|
3551
|
+
var It = sn();
|
|
3552
|
+
if (It === void 0)
|
|
3542
3553
|
return;
|
|
3543
|
-
var wn = window.document.body.offsetWidth, kn = Math.max(0, wn / 2 - _ / 2), Cn = ".flatpickr-calendar.centerMost:before", _n = ".flatpickr-calendar.centerMost:after", Dn =
|
|
3544
|
-
|
|
3554
|
+
var wn = window.document.body.offsetWidth, kn = Math.max(0, wn / 2 - _ / 2), Cn = ".flatpickr-calendar.centerMost:before", _n = ".flatpickr-calendar.centerMost:after", Dn = It.cssRules.length, An = "{left:" + Y.left + "px;right:auto;}";
|
|
3555
|
+
Pe(e.calendarContainer, "rightMost", !1), Pe(e.calendarContainer, "centerMost", !0), It.insertRule(Cn + "," + _n + An, Dn), e.calendarContainer.style.left = kn + "px", e.calendarContainer.style.right = "auto";
|
|
3545
3556
|
}
|
|
3546
3557
|
}
|
|
3547
3558
|
}
|
|
@@ -3577,19 +3588,19 @@ function gl(t, n) {
|
|
|
3577
3588
|
return q.classList && q.classList.contains("flatpickr-day") && !q.classList.contains("flatpickr-disabled") && !q.classList.contains("notAllowed");
|
|
3578
3589
|
}, h = qr(je(i), l);
|
|
3579
3590
|
if (h !== void 0) {
|
|
3580
|
-
var _ = h,
|
|
3591
|
+
var _ = h, I = e.latestSelectedDateObj = new Date(_.dateObj.getTime()), N = (I.getMonth() < e.currentMonth || I.getMonth() > e.currentMonth + e.config.showMonths - 1) && e.config.mode !== "range";
|
|
3581
3592
|
if (e.selectedDateElem = _, e.config.mode === "single")
|
|
3582
|
-
e.selectedDates = [
|
|
3593
|
+
e.selectedDates = [I];
|
|
3583
3594
|
else if (e.config.mode === "multiple") {
|
|
3584
|
-
var X = Ot(
|
|
3585
|
-
X ? e.selectedDates.splice(parseInt(X), 1) : e.selectedDates.push(
|
|
3595
|
+
var X = Ot(I);
|
|
3596
|
+
X ? e.selectedDates.splice(parseInt(X), 1) : e.selectedDates.push(I);
|
|
3586
3597
|
} else
|
|
3587
|
-
e.config.mode === "range" && (e.selectedDates.length === 2 && e.clear(!1, !1), e.latestSelectedDateObj =
|
|
3598
|
+
e.config.mode === "range" && (e.selectedDates.length === 2 && e.clear(!1, !1), e.latestSelectedDateObj = I, e.selectedDates.push(I), Re(I, e.selectedDates[0], !0) !== 0 && e.selectedDates.sort(function(q, fe) {
|
|
3588
3599
|
return q.getTime() - fe.getTime();
|
|
3589
3600
|
}));
|
|
3590
3601
|
if (d(), N) {
|
|
3591
|
-
var Y = e.currentYear !==
|
|
3592
|
-
e.currentYear =
|
|
3602
|
+
var Y = e.currentYear !== I.getFullYear();
|
|
3603
|
+
e.currentYear = I.getFullYear(), e.currentMonth = I.getMonth(), Y && (ye("onYearChange"), D()), ye("onMonthChange");
|
|
3593
3604
|
}
|
|
3594
3605
|
if (bt(), W(), We(), !N && e.config.mode !== "range" && e.config.showMonths === 1 ? ue(_) : e.selectedDateElem !== void 0 && e.hourElement === void 0 && e.selectedDateElem && e.selectedDateElem.focus(), e.hourElement !== void 0 && e.hourElement !== void 0 && e.hourElement.focus(), e.config.closeOnSelect) {
|
|
3595
3606
|
var ae = e.config.mode === "single" && !e.config.enableTime, R = e.config.mode === "range" && e.selectedDates.length === 2 && !e.config.enableTime;
|
|
@@ -3601,8 +3612,8 @@ function gl(t, n) {
|
|
|
3601
3612
|
var yt = {
|
|
3602
3613
|
locale: [jt, K],
|
|
3603
3614
|
showMonths: [A, c, j],
|
|
3604
|
-
minDate: [
|
|
3605
|
-
maxDate: [
|
|
3615
|
+
minDate: [F],
|
|
3616
|
+
maxDate: [F],
|
|
3606
3617
|
positionElement: [Ht],
|
|
3607
3618
|
clickOpens: [
|
|
3608
3619
|
function() {
|
|
@@ -3652,14 +3663,14 @@ function gl(t, n) {
|
|
|
3652
3663
|
e.config.errorHandler(new Error("Invalid date supplied: " + JSON.stringify(i)));
|
|
3653
3664
|
e.selectedDates = e.config.allowInvalidPreload ? h : h.filter(function(_) {
|
|
3654
3665
|
return _ instanceof Date && Te(_, !1);
|
|
3655
|
-
}), e.config.mode === "range" && e.selectedDates.sort(function(_,
|
|
3656
|
-
return _.getTime() -
|
|
3666
|
+
}), e.config.mode === "range" && e.selectedDates.sort(function(_, I) {
|
|
3667
|
+
return _.getTime() - I.getTime();
|
|
3657
3668
|
});
|
|
3658
3669
|
}
|
|
3659
3670
|
function cn(i, l, h) {
|
|
3660
3671
|
if (l === void 0 && (l = !1), h === void 0 && (h = e.config.dateFormat), i !== 0 && !i || i instanceof Array && i.length === 0)
|
|
3661
3672
|
return e.clear(l);
|
|
3662
|
-
Ut(i, h), e.latestSelectedDateObj = e.selectedDates[e.selectedDates.length - 1], e.redraw(),
|
|
3673
|
+
Ut(i, h), e.latestSelectedDateObj = e.selectedDates[e.selectedDates.length - 1], e.redraw(), F(void 0, l), g(), e.selectedDates.length === 0 && e.clear(!1), We(l), l && ye("onChange");
|
|
3663
3674
|
}
|
|
3664
3675
|
function Yt(i) {
|
|
3665
3676
|
return i.slice().map(function(l) {
|
|
@@ -3694,7 +3705,7 @@ function gl(t, n) {
|
|
|
3694
3705
|
} catch {
|
|
3695
3706
|
}
|
|
3696
3707
|
v(e.mobileInput, "change", function(l) {
|
|
3697
|
-
e.setDate(je(l).value, !1, e.mobileFormatStr),
|
|
3708
|
+
e.setDate(je(l).value, !1, e.mobileFormatStr), ye("onChange"), ye("onClose");
|
|
3698
3709
|
});
|
|
3699
3710
|
}
|
|
3700
3711
|
function hn(i) {
|
|
@@ -3702,7 +3713,7 @@ function gl(t, n) {
|
|
|
3702
3713
|
return e.close();
|
|
3703
3714
|
e.open(i);
|
|
3704
3715
|
}
|
|
3705
|
-
function
|
|
3716
|
+
function ye(i, l) {
|
|
3706
3717
|
if (e.config !== void 0) {
|
|
3707
3718
|
var h = e.config[i];
|
|
3708
3719
|
if (h !== void 0 && h.length > 0)
|
|
@@ -3732,16 +3743,16 @@ function gl(t, n) {
|
|
|
3732
3743
|
h.setMonth(e.currentMonth + l), e.config.showMonths > 1 || e.config.monthSelectorType === "static" ? e.monthElements[l].textContent = zn(h.getMonth(), e.config.shorthandCurrentMonth, e.l10n) + " " : e.monthsDropdownContainer.value = h.getMonth().toString(), i.value = h.getFullYear().toString();
|
|
3733
3744
|
}), e._hidePrevMonthArrow = e.config.minDate !== void 0 && (e.currentYear === e.config.minDate.getFullYear() ? e.currentMonth <= e.config.minDate.getMonth() : e.currentYear < e.config.minDate.getFullYear()), e._hideNextMonthArrow = e.config.maxDate !== void 0 && (e.currentYear === e.config.maxDate.getFullYear() ? e.currentMonth + 1 > e.config.maxDate.getMonth() : e.currentYear > e.config.maxDate.getFullYear()));
|
|
3734
3745
|
}
|
|
3735
|
-
function
|
|
3746
|
+
function Pt(i) {
|
|
3736
3747
|
var l = i || (e.config.altInput ? e.config.altFormat : e.config.dateFormat);
|
|
3737
3748
|
return e.selectedDates.map(function(h) {
|
|
3738
3749
|
return e.formatDate(h, l);
|
|
3739
|
-
}).filter(function(h, _,
|
|
3740
|
-
return e.config.mode !== "range" || e.config.enableTime ||
|
|
3750
|
+
}).filter(function(h, _, I) {
|
|
3751
|
+
return e.config.mode !== "range" || e.config.enableTime || I.indexOf(h) === _;
|
|
3741
3752
|
}).join(e.config.mode !== "range" ? e.config.conjunction : e.l10n.rangeSeparator);
|
|
3742
3753
|
}
|
|
3743
3754
|
function We(i) {
|
|
3744
|
-
i === void 0 && (i = !0), e.mobileInput !== void 0 && e.mobileFormatStr && (e.mobileInput.value = e.latestSelectedDateObj !== void 0 ? e.formatDate(e.latestSelectedDateObj, e.mobileFormatStr) : ""), e.input.value =
|
|
3755
|
+
i === void 0 && (i = !0), e.mobileInput !== void 0 && e.mobileFormatStr && (e.mobileInput.value = e.latestSelectedDateObj !== void 0 ? e.formatDate(e.latestSelectedDateObj, e.mobileFormatStr) : ""), e.input.value = Pt(e.config.dateFormat), e.altInput !== void 0 && (e.altInput.value = Pt(e.config.altFormat)), i !== !1 && ye("onValueUpdate");
|
|
3745
3756
|
}
|
|
3746
3757
|
function vn(i) {
|
|
3747
3758
|
var l = je(i), h = e.prevMonthNav.contains(l), _ = e.nextMonthNav.contains(l);
|
|
@@ -3751,15 +3762,15 @@ function gl(t, n) {
|
|
|
3751
3762
|
i.preventDefault();
|
|
3752
3763
|
var l = i.type === "keydown", h = je(i), _ = h;
|
|
3753
3764
|
e.amPM !== void 0 && h === e.amPM && (e.amPM.textContent = e.l10n.amPM[Ge(e.amPM.textContent === e.l10n.amPM[0])]);
|
|
3754
|
-
var
|
|
3765
|
+
var I = parseFloat(_.getAttribute("min")), N = parseFloat(_.getAttribute("max")), X = parseFloat(_.getAttribute("step")), Y = parseInt(_.value, 10), ae = i.delta || (l ? i.which === 38 ? 1 : -1 : 0), R = Y + X * ae;
|
|
3755
3766
|
if (typeof _.value < "u" && _.value.length === 2) {
|
|
3756
3767
|
var q = _ === e.hourElement, fe = _ === e.minuteElement;
|
|
3757
|
-
R <
|
|
3768
|
+
R < I ? (R = N + R + Ge(!q) + (Ge(q) && Ge(!e.amPM)), fe && U(void 0, -1, e.hourElement)) : R > N && (R = _ === e.hourElement ? R - N - Ge(!e.amPM) : I, fe && U(void 0, 1, e.hourElement)), e.amPM && q && (X === 1 ? R + Y === 23 : Math.abs(R - Y) > X) && (e.amPM.textContent = e.l10n.amPM[Ge(e.amPM.textContent === e.l10n.amPM[0])]), _.value = Fe(R);
|
|
3758
3769
|
}
|
|
3759
3770
|
}
|
|
3760
3771
|
return r(), e;
|
|
3761
3772
|
}
|
|
3762
|
-
function
|
|
3773
|
+
function Ft(t, n) {
|
|
3763
3774
|
for (var e = Array.prototype.slice.call(t).filter(function(s) {
|
|
3764
3775
|
return s instanceof HTMLElement;
|
|
3765
3776
|
}), a = [], r = 0; r < e.length; r++) {
|
|
@@ -3775,12 +3786,12 @@ function Pt(t, n) {
|
|
|
3775
3786
|
return a.length === 1 ? a[0] : a;
|
|
3776
3787
|
}
|
|
3777
3788
|
typeof HTMLElement < "u" && typeof HTMLCollection < "u" && typeof NodeList < "u" && (HTMLCollection.prototype.flatpickr = NodeList.prototype.flatpickr = function(t) {
|
|
3778
|
-
return
|
|
3789
|
+
return Ft(this, t);
|
|
3779
3790
|
}, HTMLElement.prototype.flatpickr = function(t) {
|
|
3780
|
-
return
|
|
3791
|
+
return Ft([this], t);
|
|
3781
3792
|
});
|
|
3782
3793
|
var _e = function(t, n) {
|
|
3783
|
-
return typeof t == "string" ?
|
|
3794
|
+
return typeof t == "string" ? Ft(window.document.querySelectorAll(t), n) : t instanceof Node ? Ft([t], n) : Ft(t, n);
|
|
3784
3795
|
};
|
|
3785
3796
|
_e.defaultConfig = {};
|
|
3786
3797
|
_e.l10ns = {
|
|
@@ -3797,7 +3808,7 @@ _e.parseDate = pa({});
|
|
|
3797
3808
|
_e.formatDate = Gr({});
|
|
3798
3809
|
_e.compareDates = Re;
|
|
3799
3810
|
typeof jQuery < "u" && typeof jQuery.fn < "u" && (jQuery.fn.flatpickr = function(t) {
|
|
3800
|
-
return
|
|
3811
|
+
return Ft(this, t);
|
|
3801
3812
|
});
|
|
3802
3813
|
Date.prototype.fp_incr = function(t) {
|
|
3803
3814
|
return new Date(this.getFullYear(), this.getMonth(), this.getDate() + (typeof t == "string" ? parseInt(t, 10) : t));
|
|
@@ -4051,27 +4062,27 @@ var ha = {}, wl = {
|
|
|
4051
4062
|
var g;
|
|
4052
4063
|
function b(O) {
|
|
4053
4064
|
O.stopPropagation(), O.preventDefault();
|
|
4054
|
-
var
|
|
4055
|
-
if (!(
|
|
4056
|
-
for (var
|
|
4065
|
+
var P = O.target;
|
|
4066
|
+
if (!(P.tagName.toLowerCase() !== "button" || typeof m.onClick > "u"))
|
|
4067
|
+
for (var F = parseInt(P.dataset.index, 10), z = Array.isArray(m.onClick) ? m.onClick : [m.onClick], U = 0, ne = z; U < ne.length; U++) {
|
|
4057
4068
|
var ee = ne[U];
|
|
4058
|
-
typeof ee == "function" && ee(
|
|
4069
|
+
typeof ee == "function" && ee(F, d);
|
|
4059
4070
|
}
|
|
4060
4071
|
}
|
|
4061
|
-
function
|
|
4062
|
-
var
|
|
4063
|
-
O.key !== "Tab" ||
|
|
4072
|
+
function V(O) {
|
|
4073
|
+
var P = O.target;
|
|
4074
|
+
O.key !== "Tab" || P.tagName.toLowerCase() !== "button" || (O.shiftKey && !P.previousSibling || !O.shiftKey && !P.nextSibling) && (O.preventDefault(), d.element.focus());
|
|
4064
4075
|
}
|
|
4065
|
-
function v(O,
|
|
4066
|
-
Object.keys(
|
|
4067
|
-
return c.has(
|
|
4068
|
-
}).forEach(function(
|
|
4076
|
+
function v(O, P) {
|
|
4077
|
+
Object.keys(P).filter(function(F) {
|
|
4078
|
+
return c.has(F);
|
|
4079
|
+
}).forEach(function(F) {
|
|
4069
4080
|
var z;
|
|
4070
|
-
if (
|
|
4071
|
-
(z = O.classList).add.apply(z,
|
|
4081
|
+
if (F === "class") {
|
|
4082
|
+
(z = O.classList).add.apply(z, P[F].split(" "));
|
|
4072
4083
|
return;
|
|
4073
4084
|
}
|
|
4074
|
-
O.setAttribute(
|
|
4085
|
+
O.setAttribute(F, P[F]);
|
|
4075
4086
|
});
|
|
4076
4087
|
}
|
|
4077
4088
|
return {
|
|
@@ -4083,17 +4094,17 @@ var ha = {}, wl = {
|
|
|
4083
4094
|
var O = document.createElement("div");
|
|
4084
4095
|
O.classList.add("shortcut-buttons-flatpickr-label"), O.textContent = m.label, g.appendChild(O);
|
|
4085
4096
|
}
|
|
4086
|
-
var
|
|
4087
|
-
|
|
4097
|
+
var P = document.createElement("div");
|
|
4098
|
+
P.classList.add("shortcut-buttons-flatpickr-buttons"), (Array.isArray(m.button) ? m.button : [m.button]).forEach(function(F, z) {
|
|
4088
4099
|
var U = document.createElement("button");
|
|
4089
|
-
U.type = "button", U.classList.add("shortcut-buttons-flatpickr-button"), U.textContent =
|
|
4090
|
-
}), g.appendChild(
|
|
4100
|
+
U.type = "button", U.classList.add("shortcut-buttons-flatpickr-button"), U.textContent = F.label, U.dataset.index = String(z), typeof F.attributes < "u" && v(U, F.attributes), P.appendChild(U), d.pluginElements.push(U);
|
|
4101
|
+
}), g.appendChild(P), d.calendarContainer.appendChild(g), g.addEventListener("click", b), g.addEventListener("keydown", V);
|
|
4091
4102
|
},
|
|
4092
4103
|
/**
|
|
4093
4104
|
* Clean up before flatpickr is destroyed.
|
|
4094
4105
|
*/
|
|
4095
4106
|
onDestroy: function() {
|
|
4096
|
-
g.removeEventListener("keydown",
|
|
4107
|
+
g.removeEventListener("keydown", V), g.removeEventListener("click", b), g = void 0;
|
|
4097
4108
|
}
|
|
4098
4109
|
};
|
|
4099
4110
|
};
|
|
@@ -4404,7 +4415,7 @@ var Un = {}, Cl = {
|
|
|
4404
4415
|
time_24hr: !0
|
|
4405
4416
|
};
|
|
4406
4417
|
g.l10ns.bs = b, g.l10ns;
|
|
4407
|
-
var
|
|
4418
|
+
var V = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
4408
4419
|
l10ns: {}
|
|
4409
4420
|
}, v = {
|
|
4410
4421
|
weekdays: {
|
|
@@ -4452,10 +4463,10 @@ var Un = {}, Cl = {
|
|
|
4452
4463
|
time_24hr: !0,
|
|
4453
4464
|
firstDayOfWeek: 1
|
|
4454
4465
|
};
|
|
4455
|
-
|
|
4466
|
+
V.l10ns.bg = v, V.l10ns;
|
|
4456
4467
|
var O = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
4457
4468
|
l10ns: {}
|
|
4458
|
-
},
|
|
4469
|
+
}, P = {
|
|
4459
4470
|
weekdays: {
|
|
4460
4471
|
shorthand: ["রবি", "সোম", "মঙ্গল", "বুধ", "বৃহস্পতি", "শুক্র", "শনি"],
|
|
4461
4472
|
longhand: [
|
|
@@ -4499,8 +4510,8 @@ var Un = {}, Cl = {
|
|
|
4499
4510
|
]
|
|
4500
4511
|
}
|
|
4501
4512
|
};
|
|
4502
|
-
O.l10ns.bn =
|
|
4503
|
-
var
|
|
4513
|
+
O.l10ns.bn = P, O.l10ns;
|
|
4514
|
+
var F = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
4504
4515
|
l10ns: {}
|
|
4505
4516
|
}, z = {
|
|
4506
4517
|
weekdays: {
|
|
@@ -4566,7 +4577,7 @@ var Un = {}, Cl = {
|
|
|
4566
4577
|
rangeSeparator: " a ",
|
|
4567
4578
|
time_24hr: !0
|
|
4568
4579
|
};
|
|
4569
|
-
|
|
4580
|
+
F.l10ns.cat = F.l10ns.ca = z, F.l10ns;
|
|
4570
4581
|
var U = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
4571
4582
|
l10ns: {}
|
|
4572
4583
|
}, ne = {
|
|
@@ -5985,7 +5996,7 @@ var Un = {}, Cl = {
|
|
|
5985
5996
|
time_24hr: !0
|
|
5986
5997
|
};
|
|
5987
5998
|
pn.l10ns.km = hn, pn.l10ns;
|
|
5988
|
-
var
|
|
5999
|
+
var ye = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
5989
6000
|
l10ns: {}
|
|
5990
6001
|
}, $t = {
|
|
5991
6002
|
weekdays: {
|
|
@@ -6041,7 +6052,7 @@ var Un = {}, Cl = {
|
|
|
6041
6052
|
amPM: ["ТД", "ТК"],
|
|
6042
6053
|
yearAriaLabel: "Жыл"
|
|
6043
6054
|
};
|
|
6044
|
-
|
|
6055
|
+
ye.l10ns.kz = $t, ye.l10ns;
|
|
6045
6056
|
var Ot = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
6046
6057
|
l10ns: {}
|
|
6047
6058
|
}, gn = {
|
|
@@ -6100,7 +6111,7 @@ var Un = {}, Cl = {
|
|
|
6100
6111
|
Ot.l10ns.lt = gn, Ot.l10ns;
|
|
6101
6112
|
var bt = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
6102
6113
|
l10ns: {}
|
|
6103
|
-
},
|
|
6114
|
+
}, Pt = {
|
|
6104
6115
|
firstDayOfWeek: 1,
|
|
6105
6116
|
weekdays: {
|
|
6106
6117
|
shorthand: ["Sv", "Pr", "Ot", "Tr", "Ce", "Pk", "Se"],
|
|
@@ -6147,7 +6158,7 @@ var Un = {}, Cl = {
|
|
|
6147
6158
|
rangeSeparator: " līdz ",
|
|
6148
6159
|
time_24hr: !0
|
|
6149
6160
|
};
|
|
6150
|
-
bt.l10ns.lv =
|
|
6161
|
+
bt.l10ns.lv = Pt, bt.l10ns;
|
|
6151
6162
|
var We = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
6152
6163
|
l10ns: {}
|
|
6153
6164
|
}, vn = {
|
|
@@ -6286,7 +6297,7 @@ var Un = {}, Cl = {
|
|
|
6286
6297
|
l.l10ns;
|
|
6287
6298
|
var _ = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
6288
6299
|
l10ns: {}
|
|
6289
|
-
},
|
|
6300
|
+
}, I = {
|
|
6290
6301
|
weekdays: {
|
|
6291
6302
|
shorthand: ["နွေ", "လာ", "ဂါ", "ဟူး", "ကြာ", "သော", "နေ"],
|
|
6292
6303
|
longhand: [
|
|
@@ -6335,7 +6346,7 @@ var Un = {}, Cl = {
|
|
|
6335
6346
|
},
|
|
6336
6347
|
time_24hr: !0
|
|
6337
6348
|
};
|
|
6338
|
-
_.l10ns.my =
|
|
6349
|
+
_.l10ns.my = I, _.l10ns;
|
|
6339
6350
|
var N = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
6340
6351
|
l10ns: {}
|
|
6341
6352
|
}, X = {
|
|
@@ -6657,7 +6668,7 @@ var Un = {}, Cl = {
|
|
|
6657
6668
|
time_24hr: !0
|
|
6658
6669
|
};
|
|
6659
6670
|
ot.l10ns.pt = bn, ot.l10ns;
|
|
6660
|
-
var
|
|
6671
|
+
var It = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
6661
6672
|
l10ns: {}
|
|
6662
6673
|
}, wn = {
|
|
6663
6674
|
weekdays: {
|
|
@@ -6708,7 +6719,7 @@ var Un = {}, Cl = {
|
|
|
6708
6719
|
return "";
|
|
6709
6720
|
}
|
|
6710
6721
|
};
|
|
6711
|
-
|
|
6722
|
+
It.l10ns.ro = wn, It.l10ns;
|
|
6712
6723
|
var kn = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
6713
6724
|
l10ns: {}
|
|
6714
6725
|
}, Cn = {
|
|
@@ -6923,7 +6934,7 @@ var Un = {}, Cl = {
|
|
|
6923
6934
|
xn.l10ns.sl = $a, xn.l10ns;
|
|
6924
6935
|
var Oa = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
6925
6936
|
l10ns: {}
|
|
6926
|
-
},
|
|
6937
|
+
}, Pa = {
|
|
6927
6938
|
weekdays: {
|
|
6928
6939
|
shorthand: ["Di", "Hë", "Ma", "Më", "En", "Pr", "Sh"],
|
|
6929
6940
|
longhand: [
|
|
@@ -6975,10 +6986,10 @@ var Un = {}, Cl = {
|
|
|
6975
6986
|
minuteAriaLabel: "Minuta",
|
|
6976
6987
|
time_24hr: !0
|
|
6977
6988
|
};
|
|
6978
|
-
Oa.l10ns.sq =
|
|
6979
|
-
var
|
|
6989
|
+
Oa.l10ns.sq = Pa, Oa.l10ns;
|
|
6990
|
+
var Ia = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
6980
6991
|
l10ns: {}
|
|
6981
|
-
},
|
|
6992
|
+
}, Va = {
|
|
6982
6993
|
weekdays: {
|
|
6983
6994
|
shorthand: ["Ned", "Pon", "Uto", "Sre", "Čet", "Pet", "Sub"],
|
|
6984
6995
|
longhand: [
|
|
@@ -7026,8 +7037,8 @@ var Un = {}, Cl = {
|
|
|
7026
7037
|
rangeSeparator: " do ",
|
|
7027
7038
|
time_24hr: !0
|
|
7028
7039
|
};
|
|
7029
|
-
|
|
7030
|
-
var
|
|
7040
|
+
Ia.l10ns.sr = Va, Ia.l10ns;
|
|
7041
|
+
var Fa = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
7031
7042
|
l10ns: {}
|
|
7032
7043
|
}, Ea = {
|
|
7033
7044
|
firstDayOfWeek: 1,
|
|
@@ -7080,7 +7091,7 @@ var Un = {}, Cl = {
|
|
|
7080
7091
|
return ".";
|
|
7081
7092
|
}
|
|
7082
7093
|
};
|
|
7083
|
-
|
|
7094
|
+
Fa.l10ns.sv = Ea, Fa.l10ns;
|
|
7084
7095
|
var Na = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
7085
7096
|
l10ns: {}
|
|
7086
7097
|
}, La = {
|
|
@@ -7515,7 +7526,7 @@ var Un = {}, Cl = {
|
|
|
7515
7526
|
az: p,
|
|
7516
7527
|
be: d,
|
|
7517
7528
|
bg: v,
|
|
7518
|
-
bn:
|
|
7529
|
+
bn: P,
|
|
7519
7530
|
bs: b,
|
|
7520
7531
|
ca: z,
|
|
7521
7532
|
ckb: ne,
|
|
@@ -7548,11 +7559,11 @@ var Un = {}, Cl = {
|
|
|
7548
7559
|
km: hn,
|
|
7549
7560
|
kz: $t,
|
|
7550
7561
|
lt: gn,
|
|
7551
|
-
lv:
|
|
7562
|
+
lv: Pt,
|
|
7552
7563
|
mk: vn,
|
|
7553
7564
|
mn: i,
|
|
7554
7565
|
ms: h,
|
|
7555
|
-
my:
|
|
7566
|
+
my: I,
|
|
7556
7567
|
nl: X,
|
|
7557
7568
|
nn: ae,
|
|
7558
7569
|
no: q,
|
|
@@ -7564,8 +7575,8 @@ var Un = {}, Cl = {
|
|
|
7564
7575
|
si: Dn,
|
|
7565
7576
|
sk: Mn,
|
|
7566
7577
|
sl: $a,
|
|
7567
|
-
sq:
|
|
7568
|
-
sr:
|
|
7578
|
+
sq: Pa,
|
|
7579
|
+
sr: Va,
|
|
7569
7580
|
sv: Ea,
|
|
7570
7581
|
th: La,
|
|
7571
7582
|
tr: ja,
|
|
@@ -7624,30 +7635,30 @@ const Al = {
|
|
|
7624
7635
|
return;
|
|
7625
7636
|
}
|
|
7626
7637
|
g(d(C + ""));
|
|
7627
|
-
},
|
|
7628
|
-
|
|
7638
|
+
}, V = () => {
|
|
7639
|
+
P(), s.value = !0, n("onOpen");
|
|
7629
7640
|
}, v = () => {
|
|
7630
7641
|
s.value = !1, n("onClose");
|
|
7631
7642
|
}, O = () => {
|
|
7632
7643
|
a(r.value) && (u.value = r.value.fpInput().value);
|
|
7633
|
-
},
|
|
7644
|
+
}, P = () => {
|
|
7634
7645
|
var M, x, j;
|
|
7635
7646
|
if (!a(r.value))
|
|
7636
7647
|
return;
|
|
7637
7648
|
const C = u.value.replace(/[^\s\d.:]/g, ""), A = r.value.fp.parseDate(C, z.value);
|
|
7638
7649
|
if (S(A)) {
|
|
7639
|
-
|
|
7650
|
+
ve(e.defaultValue) ? (M = r.value) == null || M.fp.clear(!0) : (x = r.value) == null || x.fp.setDate(e.defaultValue, !0), W.value.textFieldValue.$touch(), n("blur");
|
|
7640
7651
|
return;
|
|
7641
7652
|
}
|
|
7642
7653
|
(j = r.value) == null || j.fp.setDate(A, !0), W.value.textFieldValue.$touch(), n("blur");
|
|
7643
|
-
},
|
|
7654
|
+
}, F = () => {
|
|
7644
7655
|
p.value = e.defaultValue, n("update:modelValue", f(e.defaultValue));
|
|
7645
7656
|
}, z = T(() => e.type === "datetime" ? "d.m.Y H:i" : "d.m.Y"), U = T(() => e.type === "datetime" ? "dd.mm.yyyy hh:mm" : "dd.mm.yyyy"), ne = T(() => e.enable && e.enable.length > 0 ? e.enable : [
|
|
7646
7657
|
{
|
|
7647
7658
|
from: new Date(1901, 1),
|
|
7648
7659
|
to: new Date(2099, 12)
|
|
7649
7660
|
}
|
|
7650
|
-
]), ee = T(() =>
|
|
7661
|
+
]), ee = T(() => ve(e.defaultValue) ? void 0 : e.defaultValue), ue = T(() => e.hideSetToNow ? [] : [
|
|
7651
7662
|
kl({
|
|
7652
7663
|
button: [
|
|
7653
7664
|
{
|
|
@@ -7692,12 +7703,12 @@ const Al = {
|
|
|
7692
7703
|
r.value.fp.close();
|
|
7693
7704
|
return;
|
|
7694
7705
|
}
|
|
7695
|
-
|
|
7706
|
+
P(), r.value.fp.open(), r.value.fpInput().focus();
|
|
7696
7707
|
}
|
|
7697
7708
|
}, 0);
|
|
7698
7709
|
};
|
|
7699
7710
|
Nt(() => {
|
|
7700
|
-
if ((
|
|
7711
|
+
if ((ve(e.modelValue) || S(e.modelValue)) && !ve(e.defaultValue)) {
|
|
7701
7712
|
p.value = e.defaultValue;
|
|
7702
7713
|
return;
|
|
7703
7714
|
}
|
|
@@ -7717,15 +7728,15 @@ const Al = {
|
|
|
7717
7728
|
"persistent-placeholder": !0,
|
|
7718
7729
|
placeholder: f(U),
|
|
7719
7730
|
class: "a-datetime-picker",
|
|
7720
|
-
onBlur:
|
|
7721
|
-
onKeyup: wr(
|
|
7731
|
+
onBlur: P,
|
|
7732
|
+
onKeyup: wr(P, ["enter"])
|
|
7722
7733
|
}, tn({
|
|
7723
7734
|
"append-inner": y(() => [
|
|
7724
7735
|
t.clearable && t.defaultValue !== t.modelValue ? (k(), E(pe, {
|
|
7725
7736
|
key: 0,
|
|
7726
7737
|
class: "a-datetime-picker__clearable",
|
|
7727
7738
|
icon: "mdi-close-circle",
|
|
7728
|
-
onClick: re(
|
|
7739
|
+
onClick: re(F, ["stop"])
|
|
7729
7740
|
}, null, 8, ["onClick"])) : Z("", !0),
|
|
7730
7741
|
te("div", null, [
|
|
7731
7742
|
w(f(bl), {
|
|
@@ -7736,7 +7747,7 @@ const Al = {
|
|
|
7736
7747
|
"model-value": p.value,
|
|
7737
7748
|
"onUpdate:modelValue": b,
|
|
7738
7749
|
onOnClose: v,
|
|
7739
|
-
onOnOpen:
|
|
7750
|
+
onOnOpen: V,
|
|
7740
7751
|
onOnChange: O
|
|
7741
7752
|
}, null, 8, ["config", "disabled", "model-value"]),
|
|
7742
7753
|
w(pe, {
|
|
@@ -7759,7 +7770,7 @@ const Al = {
|
|
|
7759
7770
|
]), 1032, ["modelValue", "error-messages", "placeholder", "onKeyup"]));
|
|
7760
7771
|
}
|
|
7761
7772
|
});
|
|
7762
|
-
const Qr = /* @__PURE__ */ gt(Ml, [["__scopeId", "data-v-6a404d76"]]),
|
|
7773
|
+
const Qr = /* @__PURE__ */ gt(Ml, [["__scopeId", "data-v-6a404d76"]]), ah = /* @__PURE__ */ L({
|
|
7763
7774
|
__name: "AFormDatetimePicker",
|
|
7764
7775
|
props: {
|
|
7765
7776
|
modelValue: null,
|
|
@@ -7803,7 +7814,7 @@ const Qr = /* @__PURE__ */ gt(Ml, [["__scopeId", "data-v-6a404d76"]]), nh = /* @
|
|
|
7803
7814
|
"onUpdate:modelValue": g[0] || (g[0] = (b) => s(b))
|
|
7804
7815
|
}, null, 8, ["model-value", "data-cy", "error-messages", "required", "label", "clearable"]));
|
|
7805
7816
|
}
|
|
7806
|
-
}),
|
|
7817
|
+
}), rh = /* @__PURE__ */ L({
|
|
7807
7818
|
__name: "AFilterDatetimePicker",
|
|
7808
7819
|
props: {
|
|
7809
7820
|
modelValue: null
|
|
@@ -7839,7 +7850,7 @@ function Gn() {
|
|
|
7839
7850
|
totalCount: 0
|
|
7840
7851
|
});
|
|
7841
7852
|
}
|
|
7842
|
-
function
|
|
7853
|
+
function oh(t) {
|
|
7843
7854
|
return {
|
|
7844
7855
|
showPagination: T(() => !(t.page === 1 && t.currentViewCount < t.rowsPerPage))
|
|
7845
7856
|
};
|
|
@@ -7847,7 +7858,7 @@ function rh(t) {
|
|
|
7847
7858
|
const xl = {
|
|
7848
7859
|
key: 0,
|
|
7849
7860
|
class: "required"
|
|
7850
|
-
},
|
|
7861
|
+
}, ih = /* @__PURE__ */ L({
|
|
7851
7862
|
__name: "AFormRemoteAutocomplete",
|
|
7852
7863
|
props: {
|
|
7853
7864
|
modelValue: null,
|
|
@@ -7889,51 +7900,51 @@ const xl = {
|
|
|
7889
7900
|
return "";
|
|
7890
7901
|
const { end: M } = it((j = e.v) == null ? void 0 : j.$path, ".");
|
|
7891
7902
|
return c(p + "." + m + ".model." + M);
|
|
7892
|
-
}),
|
|
7903
|
+
}), V = T(() => {
|
|
7893
7904
|
var M, x;
|
|
7894
7905
|
return S(e.required) ? ((M = e.v) == null ? void 0 : M.required) && ((x = e.v) == null ? void 0 : x.required.$params.type) === "required" : e.required;
|
|
7895
|
-
}), v = T(() => e.multiple !== !1), O = Gn(),
|
|
7906
|
+
}), v = T(() => e.multiple !== !1), O = Gn(), P = J([]), F = J([]), z = T(() => {
|
|
7896
7907
|
const M = /* @__PURE__ */ new Map();
|
|
7897
|
-
return
|
|
7908
|
+
return F.value.forEach((x) => {
|
|
7898
7909
|
M.set(x.value, { value: x.value, title: x.title });
|
|
7899
|
-
}),
|
|
7910
|
+
}), P.value.forEach((x) => {
|
|
7900
7911
|
M.set(x.value, { value: x.value, title: x.title });
|
|
7901
7912
|
}), Array.from(M, ([x, j]) => ({ value: x, title: j.title }));
|
|
7902
7913
|
}), U = J(!1), ne = T(() => U.value ? !0 : e.loading), ee = async (M) => {
|
|
7903
7914
|
U.value = !0;
|
|
7904
7915
|
const x = u.value[e.filterByField];
|
|
7905
|
-
x.model = M,
|
|
7916
|
+
x.model = M, P.value = await e.fetchItems(O, u.value), U.value = !1;
|
|
7906
7917
|
}, ue = (M) => {
|
|
7907
7918
|
const x = z.value.filter((j) => M.includes(j.value));
|
|
7908
7919
|
return [].concat(x);
|
|
7909
7920
|
}, me = async (M) => {
|
|
7910
7921
|
let x = 1, j = [];
|
|
7911
|
-
return Oe(M) ? (x = M.length, j = ue(M)) : j = ue([M]),
|
|
7922
|
+
return Oe(M) ? (x = M.length, j = ue(M)) : j = ue([M]), F.value = j, j.length === x;
|
|
7912
7923
|
}, oe = J(!1), Q = () => {
|
|
7913
7924
|
clearTimeout(s.value), s.value = void 0;
|
|
7914
7925
|
}, Me = async () => {
|
|
7915
|
-
Q(), oe.value !== !0 && (oe.value = !0, (
|
|
7926
|
+
Q(), oe.value !== !0 && (oe.value = !0, (ve(a.value) || S(a.value) || Oe(a.value) && a.value.length === 0) && (U.value = !0, P.value = await e.fetchItems(O, u.value), U.value = !1));
|
|
7916
7927
|
}, W = () => {
|
|
7917
7928
|
o.value = !0, Q(), Me();
|
|
7918
7929
|
}, D = T(() => {
|
|
7919
|
-
if (!e.multiple &&
|
|
7920
|
-
return
|
|
7930
|
+
if (!e.multiple && F.value[0])
|
|
7931
|
+
return F.value[0].title;
|
|
7921
7932
|
}), C = (M) => {
|
|
7922
7933
|
!e.multiple && !o.value && M.length === 0 || D.value !== M && (r.value = M);
|
|
7923
7934
|
}, A = async () => {
|
|
7924
|
-
if (
|
|
7935
|
+
if (P.value = await e.fetchItems(O, u.value), e.multiple) {
|
|
7925
7936
|
a.value = [];
|
|
7926
7937
|
return;
|
|
7927
7938
|
}
|
|
7928
7939
|
a.value = null;
|
|
7929
7940
|
};
|
|
7930
|
-
return
|
|
7941
|
+
return Ie(
|
|
7931
7942
|
a,
|
|
7932
7943
|
async (M, x) => {
|
|
7933
7944
|
if (M === x)
|
|
7934
7945
|
return;
|
|
7935
|
-
if (
|
|
7936
|
-
if (
|
|
7946
|
+
if (ve(M) || S(M) || Oe(M) && M.length === 0) {
|
|
7947
|
+
if (F.value = [], e.disableInitFetch || oe.value === !0)
|
|
7937
7948
|
return;
|
|
7938
7949
|
s.value = setTimeout(() => {
|
|
7939
7950
|
Me();
|
|
@@ -7942,10 +7953,10 @@ const xl = {
|
|
|
7942
7953
|
}
|
|
7943
7954
|
if (!await me(M)) {
|
|
7944
7955
|
if (Oe(M)) {
|
|
7945
|
-
U.value = !0,
|
|
7956
|
+
U.value = !0, F.value = await e.fetchItemsByIds(M), U.value = !1;
|
|
7946
7957
|
return;
|
|
7947
7958
|
}
|
|
7948
|
-
U.value = !0,
|
|
7959
|
+
U.value = !0, F.value = await e.fetchItemsByIds([M]), U.value = !1;
|
|
7949
7960
|
}
|
|
7950
7961
|
},
|
|
7951
7962
|
{ immediate: !0 }
|
|
@@ -7955,7 +7966,7 @@ const xl = {
|
|
|
7955
7966
|
M !== x && (ee(M), n("searchChangeDebounced", M));
|
|
7956
7967
|
},
|
|
7957
7968
|
{ debounce: 300, maxWait: 1e3 }
|
|
7958
|
-
),
|
|
7969
|
+
), Ie(r, (M, x) => {
|
|
7959
7970
|
M !== x && n("searchChange", M);
|
|
7960
7971
|
}), (M, x) => (k(), E(an, {
|
|
7961
7972
|
modelValue: f(a),
|
|
@@ -7975,16 +7986,16 @@ const xl = {
|
|
|
7975
7986
|
}, {
|
|
7976
7987
|
label: y(() => [
|
|
7977
7988
|
t.hideLabel ? Z("", !0) : (k(), H("span", {
|
|
7978
|
-
key: f(
|
|
7989
|
+
key: f(V) + ""
|
|
7979
7990
|
}, [
|
|
7980
7991
|
B($(f(b)) + " ", 1),
|
|
7981
|
-
f(
|
|
7992
|
+
f(V) ? (k(), H("span", xl)) : Z("", !0)
|
|
7982
7993
|
]))
|
|
7983
7994
|
]),
|
|
7984
7995
|
_: 1
|
|
7985
7996
|
}, 8, ["modelValue", "items", "multiple", "clearable", "error-messages", "chips", "hide-details", "loading"]));
|
|
7986
7997
|
}
|
|
7987
|
-
}), Tl = { class: "d-flex" }, Sl = ["for"],
|
|
7998
|
+
}), Tl = { class: "d-flex" }, Sl = ["for"], lh = /* @__PURE__ */ L({
|
|
7988
7999
|
__name: "AFormRemoteCheckbox",
|
|
7989
8000
|
props: {
|
|
7990
8001
|
modelValue: { type: Boolean },
|
|
@@ -7998,10 +8009,10 @@ const xl = {
|
|
|
7998
8009
|
emits: ["update:modelValue"],
|
|
7999
8010
|
setup(t, { emit: n }) {
|
|
8000
8011
|
const e = t, { t: a } = G(), r = be(nt, void 0), o = be(at, void 0), s = T(() => {
|
|
8001
|
-
var
|
|
8012
|
+
var V, v;
|
|
8002
8013
|
if (!S(e.label))
|
|
8003
8014
|
return e.label;
|
|
8004
|
-
if (S(r) || S(o) || S((
|
|
8015
|
+
if (S(r) || S(o) || S((V = e.v) == null ? void 0 : V.$path))
|
|
8005
8016
|
return "";
|
|
8006
8017
|
const { end: b } = it((v = e.v) == null ? void 0 : v.$path, ".");
|
|
8007
8018
|
return a(r + "." + o + ".model." + b);
|
|
@@ -8009,22 +8020,22 @@ const xl = {
|
|
|
8009
8020
|
if (c.value)
|
|
8010
8021
|
return;
|
|
8011
8022
|
if (c.value = !0, u.value = !1, d.value === !0) {
|
|
8012
|
-
const
|
|
8013
|
-
n("update:modelValue", !
|
|
8023
|
+
const V = await e.callbackToFalse();
|
|
8024
|
+
n("update:modelValue", !V), d.value = !V, V || (u.value = !0), c.value = !1;
|
|
8014
8025
|
return;
|
|
8015
8026
|
}
|
|
8016
8027
|
const b = await e.callbackToTrue();
|
|
8017
8028
|
n("update:modelValue", b), d.value = b, b || (u.value = !0), c.value = !1;
|
|
8018
8029
|
};
|
|
8019
|
-
return
|
|
8020
|
-
b !==
|
|
8030
|
+
return Ie(m, (b, V) => {
|
|
8031
|
+
b !== V && (d.value = b, u.value = !1);
|
|
8021
8032
|
}), Nt(() => {
|
|
8022
8033
|
p.value = "remote-switch-" + Date.now();
|
|
8023
|
-
}), (b,
|
|
8024
|
-
w(
|
|
8034
|
+
}), (b, V) => (k(), H("div", Tl, [
|
|
8035
|
+
w(Vo, {
|
|
8025
8036
|
id: p.value,
|
|
8026
8037
|
modelValue: d.value,
|
|
8027
|
-
"onUpdate:modelValue":
|
|
8038
|
+
"onUpdate:modelValue": V[0] || (V[0] = (v) => d.value = v),
|
|
8028
8039
|
loading: c.value,
|
|
8029
8040
|
disabled: c.value,
|
|
8030
8041
|
onClick: re(g, ["stop"])
|
|
@@ -8036,7 +8047,7 @@ const xl = {
|
|
|
8036
8047
|
}, $(f(s)), 9, Sl))
|
|
8037
8048
|
]));
|
|
8038
8049
|
}
|
|
8039
|
-
}), $l = { class: "d-flex" }, Ol = ["for"],
|
|
8050
|
+
}), $l = { class: "d-flex" }, Ol = ["for"], sh = /* @__PURE__ */ L({
|
|
8040
8051
|
__name: "AFormRemoteSwitch",
|
|
8041
8052
|
props: {
|
|
8042
8053
|
modelValue: { type: Boolean },
|
|
@@ -8050,10 +8061,10 @@ const xl = {
|
|
|
8050
8061
|
emits: ["update:modelValue"],
|
|
8051
8062
|
setup(t, { emit: n }) {
|
|
8052
8063
|
const e = t, { t: a } = G(), r = be(nt, void 0), o = be(at, void 0), s = T(() => {
|
|
8053
|
-
var
|
|
8064
|
+
var V, v;
|
|
8054
8065
|
if (!S(e.label))
|
|
8055
8066
|
return e.label;
|
|
8056
|
-
if (S(r) || S(o) || S((
|
|
8067
|
+
if (S(r) || S(o) || S((V = e.v) == null ? void 0 : V.$path))
|
|
8057
8068
|
return "";
|
|
8058
8069
|
const { end: b } = it((v = e.v) == null ? void 0 : v.$path, ".");
|
|
8059
8070
|
return a(r + "." + o + ".model." + b);
|
|
@@ -8061,18 +8072,18 @@ const xl = {
|
|
|
8061
8072
|
if (c.value)
|
|
8062
8073
|
return;
|
|
8063
8074
|
if (c.value = !0, u.value = !1, d.value === !0) {
|
|
8064
|
-
const
|
|
8065
|
-
n("update:modelValue", !
|
|
8075
|
+
const V = await e.callbackToFalse();
|
|
8076
|
+
n("update:modelValue", !V), d.value = !V, V || (u.value = !0), c.value = !1;
|
|
8066
8077
|
return;
|
|
8067
8078
|
}
|
|
8068
8079
|
const b = await e.callbackToTrue();
|
|
8069
8080
|
n("update:modelValue", b), d.value = b, b || (u.value = !0), c.value = !1;
|
|
8070
8081
|
};
|
|
8071
|
-
return
|
|
8072
|
-
b !==
|
|
8082
|
+
return Ie(m, (b, V) => {
|
|
8083
|
+
b !== V && (d.value = b, u.value = !1);
|
|
8073
8084
|
}), Nt(() => {
|
|
8074
8085
|
p.value = "a-remote-switch-" + Date.now();
|
|
8075
|
-
}), (b,
|
|
8086
|
+
}), (b, V) => (k(), H("div", $l, [
|
|
8076
8087
|
w(ie, {
|
|
8077
8088
|
id: p.value,
|
|
8078
8089
|
icon: "",
|
|
@@ -8084,9 +8095,9 @@ const xl = {
|
|
|
8084
8095
|
onClick: re(g, ["stop"])
|
|
8085
8096
|
}, {
|
|
8086
8097
|
default: y(() => [
|
|
8087
|
-
w(
|
|
8098
|
+
w(Fo, {
|
|
8088
8099
|
modelValue: d.value,
|
|
8089
|
-
"onUpdate:modelValue":
|
|
8100
|
+
"onUpdate:modelValue": V[0] || (V[0] = (v) => d.value = v),
|
|
8090
8101
|
loading: c.value,
|
|
8091
8102
|
disabled: c.value,
|
|
8092
8103
|
"hide-details": t.hideDetails,
|
|
@@ -8117,10 +8128,10 @@ const xl = {
|
|
|
8117
8128
|
]));
|
|
8118
8129
|
}
|
|
8119
8130
|
});
|
|
8120
|
-
const
|
|
8131
|
+
const Pl = { key: 0 }, Il = {
|
|
8121
8132
|
key: 0,
|
|
8122
8133
|
class: "required"
|
|
8123
|
-
},
|
|
8134
|
+
}, uh = /* @__PURE__ */ L({
|
|
8124
8135
|
__name: "AFormValueObjectOptionsSelect",
|
|
8125
8136
|
props: {
|
|
8126
8137
|
modelValue: null,
|
|
@@ -8149,14 +8160,14 @@ const Il = { key: 0 }, Vl = {
|
|
|
8149
8160
|
n("blur", e.modelValue), (g = e.v) == null || g.$touch();
|
|
8150
8161
|
}, u = T(() => {
|
|
8151
8162
|
var g, b;
|
|
8152
|
-
return S(e.errorMessage) ? (b = (g = e.v) == null ? void 0 : g.$errors) != null && b.length ? e.v.$errors.map((
|
|
8163
|
+
return S(e.errorMessage) ? (b = (g = e.v) == null ? void 0 : g.$errors) != null && b.length ? e.v.$errors.map((V) => V.$message) : [] : [e.errorMessage];
|
|
8153
8164
|
}), p = T(() => {
|
|
8154
|
-
var b,
|
|
8165
|
+
var b, V;
|
|
8155
8166
|
if (!S(e.label))
|
|
8156
8167
|
return e.label;
|
|
8157
8168
|
if (S(r) || S(o) || S((b = e.v) == null ? void 0 : b.$path))
|
|
8158
8169
|
return "";
|
|
8159
|
-
const { end: g } = it((
|
|
8170
|
+
const { end: g } = it((V = e.v) == null ? void 0 : V.$path, ".");
|
|
8160
8171
|
return s(r + "." + o + ".model." + g);
|
|
8161
8172
|
}), m = T(() => {
|
|
8162
8173
|
var g, b;
|
|
@@ -8164,7 +8175,7 @@ const Il = { key: 0 }, Vl = {
|
|
|
8164
8175
|
}), d = T(() => e.multiple !== !1);
|
|
8165
8176
|
return (g, b) => (k(), E(an, {
|
|
8166
8177
|
modelValue: f(a),
|
|
8167
|
-
"onUpdate:modelValue": b[0] || (b[0] = (
|
|
8178
|
+
"onUpdate:modelValue": b[0] || (b[0] = (V) => ze(a) ? a.value = V : null),
|
|
8168
8179
|
items: t.items,
|
|
8169
8180
|
"item-title": "title",
|
|
8170
8181
|
"item-value": "value",
|
|
@@ -8175,15 +8186,15 @@ const Il = { key: 0 }, Vl = {
|
|
|
8175
8186
|
onBlur: c
|
|
8176
8187
|
}, {
|
|
8177
8188
|
label: y(() => [
|
|
8178
|
-
t.hideLabel ? Z("", !0) : (k(), H("span",
|
|
8189
|
+
t.hideLabel ? Z("", !0) : (k(), H("span", Pl, [
|
|
8179
8190
|
B($(f(p)), 1),
|
|
8180
|
-
f(m) ? (k(), H("span",
|
|
8191
|
+
f(m) ? (k(), H("span", Il)) : Z("", !0)
|
|
8181
8192
|
]))
|
|
8182
8193
|
]),
|
|
8183
8194
|
_: 1
|
|
8184
8195
|
}, 8, ["modelValue", "items", "multiple", "clearable", "error-messages", "data-cy"]));
|
|
8185
8196
|
}
|
|
8186
|
-
}),
|
|
8197
|
+
}), dh = /* @__PURE__ */ L({
|
|
8187
8198
|
__name: "AFilterValueObjectOptionsSelect",
|
|
8188
8199
|
props: {
|
|
8189
8200
|
modelValue: null,
|
|
@@ -8211,7 +8222,7 @@ const Il = { key: 0 }, Vl = {
|
|
|
8211
8222
|
onChange: u[2] || (u[2] = (p) => n("change"))
|
|
8212
8223
|
}, null, 8, ["modelValue", "items", "label", "multiple", "clearable"]));
|
|
8213
8224
|
}
|
|
8214
|
-
}),
|
|
8225
|
+
}), ch = /* @__PURE__ */ L({
|
|
8215
8226
|
__name: "AFilterRemoteAutocomplete",
|
|
8216
8227
|
props: {
|
|
8217
8228
|
modelValue: null,
|
|
@@ -8233,32 +8244,32 @@ const Il = { key: 0 }, Vl = {
|
|
|
8233
8244
|
}
|
|
8234
8245
|
}), r = J(""), o = J(!1), s = J(void 0), { t: c } = G({ useScope: "global" }), { innerFilter: u } = ya(e), p = () => {
|
|
8235
8246
|
o.value = !0;
|
|
8236
|
-
}, m = T(() => e.modelValue.titleT ? c(e.modelValue.titleT) : void 0), d = T(() => e.modelValue.multiple !== !1), g = Gn(), b = J([]),
|
|
8247
|
+
}, m = T(() => e.modelValue.titleT ? c(e.modelValue.titleT) : void 0), d = T(() => e.modelValue.multiple !== !1), g = Gn(), b = J([]), V = J([]), v = T(() => {
|
|
8237
8248
|
const W = /* @__PURE__ */ new Map();
|
|
8238
|
-
return
|
|
8249
|
+
return V.value.forEach((D) => {
|
|
8239
8250
|
W.set(D.value, { value: D.value, title: D.title });
|
|
8240
8251
|
}), b.value.forEach((D) => {
|
|
8241
8252
|
W.set(D.value, { value: D.value, title: D.title });
|
|
8242
8253
|
}), Array.from(W, ([D, C]) => ({ value: D, title: C.title }));
|
|
8243
|
-
}), O = J(!1),
|
|
8254
|
+
}), O = J(!1), P = async (W) => {
|
|
8244
8255
|
O.value = !0;
|
|
8245
8256
|
const D = u.value[e.filterByField];
|
|
8246
8257
|
D.model = W, b.value = await e.fetchItems(g, u.value), O.value = !1;
|
|
8247
|
-
},
|
|
8258
|
+
}, F = (W) => {
|
|
8248
8259
|
const D = v.value.filter((C) => W.includes(C.value));
|
|
8249
8260
|
return [].concat(D);
|
|
8250
8261
|
}, z = async (W) => {
|
|
8251
8262
|
let D = 1, C = [];
|
|
8252
|
-
return Oe(W) ? (D = W.length, C =
|
|
8263
|
+
return Oe(W) ? (D = W.length, C = F(W)) : C = F([W]), V.value = C, C.length === D;
|
|
8253
8264
|
}, U = J(!1), ne = () => {
|
|
8254
8265
|
clearTimeout(s.value), s.value = void 0;
|
|
8255
8266
|
}, ee = async () => {
|
|
8256
|
-
ne(), U.value !== !0 && (U.value = !0, (
|
|
8267
|
+
ne(), U.value !== !0 && (U.value = !0, (ve(a.value) || S(a.value) || Oe(a.value) && a.value.length === 0) && (O.value = !0, b.value = await e.fetchItems(g, u.value), O.value = !1));
|
|
8257
8268
|
}, ue = () => {
|
|
8258
8269
|
o.value = !0, ne(), ee();
|
|
8259
8270
|
}, me = T(() => {
|
|
8260
|
-
if (!e.modelValue.multiple &&
|
|
8261
|
-
return
|
|
8271
|
+
if (!e.modelValue.multiple && V.value[0])
|
|
8272
|
+
return V.value[0].title;
|
|
8262
8273
|
}), oe = (W) => {
|
|
8263
8274
|
!e.modelValue.multiple && !o.value && W.length === 0 || me.value !== W && (r.value = W);
|
|
8264
8275
|
}, Q = async () => {
|
|
@@ -8268,13 +8279,13 @@ const Il = { key: 0 }, Vl = {
|
|
|
8268
8279
|
}
|
|
8269
8280
|
a.value = null;
|
|
8270
8281
|
}, Me = T(() => S(e.placeholder) ? e.modelValue.variant === "startsWith" ? c("common.model.filterPlaceholder.startsWith") : e.modelValue.variant === "eq" ? c("common.model.filterPlaceholder.eq") : e.modelValue.variant === "contains" ? c("common.model.filterPlaceholder.contains") : "" : e.placeholder);
|
|
8271
|
-
return
|
|
8282
|
+
return Ie(
|
|
8272
8283
|
a,
|
|
8273
8284
|
async (W, D) => {
|
|
8274
8285
|
if (W === D)
|
|
8275
8286
|
return;
|
|
8276
|
-
if (
|
|
8277
|
-
if (
|
|
8287
|
+
if (ve(W) || S(W) || Oe(W) && W.length === 0) {
|
|
8288
|
+
if (V.value = [], e.disableInitFetch || U.value === !0)
|
|
8278
8289
|
return;
|
|
8279
8290
|
s.value = setTimeout(() => {
|
|
8280
8291
|
ee();
|
|
@@ -8283,17 +8294,17 @@ const Il = { key: 0 }, Vl = {
|
|
|
8283
8294
|
}
|
|
8284
8295
|
if (!await z(W)) {
|
|
8285
8296
|
if (Oe(W)) {
|
|
8286
|
-
O.value = !0,
|
|
8297
|
+
O.value = !0, V.value = await e.fetchItemsByIds(W), O.value = !1;
|
|
8287
8298
|
return;
|
|
8288
8299
|
}
|
|
8289
|
-
O.value = !0,
|
|
8300
|
+
O.value = !0, V.value = await e.fetchItemsByIds([W]), O.value = !1;
|
|
8290
8301
|
}
|
|
8291
8302
|
},
|
|
8292
8303
|
{ immediate: !0 }
|
|
8293
8304
|
), Da(
|
|
8294
8305
|
r,
|
|
8295
8306
|
(W, D) => {
|
|
8296
|
-
W !== D &&
|
|
8307
|
+
W !== D && P(W);
|
|
8297
8308
|
},
|
|
8298
8309
|
{ debounce: 300, maxWait: 1e3 }
|
|
8299
8310
|
), (W, D) => (k(), E(an, {
|
|
@@ -8313,7 +8324,7 @@ const Il = { key: 0 }, Vl = {
|
|
|
8313
8324
|
"onClick:clear": Q
|
|
8314
8325
|
}, null, 8, ["modelValue", "items", "placeholder", "multiple", "clearable", "label", "chips", "loading"]));
|
|
8315
8326
|
}
|
|
8316
|
-
}),
|
|
8327
|
+
}), Vl = { class: "a-filter-boolean-group d-flex flex-column align-left justify-center mb-2" }, Fl = /* @__PURE__ */ L({
|
|
8317
8328
|
__name: "AFilterBooleanGroup",
|
|
8318
8329
|
props: {
|
|
8319
8330
|
modelValue: null
|
|
@@ -8328,7 +8339,7 @@ const Il = { key: 0 }, Vl = {
|
|
|
8328
8339
|
n("update:modelValue", { ...e.modelValue, model: s });
|
|
8329
8340
|
}
|
|
8330
8341
|
}), { t: r } = G(), o = T(() => e.modelValue.titleT ? r(e.modelValue.titleT) : void 0);
|
|
8331
|
-
return (s, c) => (k(), H("div",
|
|
8342
|
+
return (s, c) => (k(), H("div", Vl, [
|
|
8332
8343
|
w(_r, { class: "pr-1" }, {
|
|
8333
8344
|
default: y(() => [
|
|
8334
8345
|
te("span", null, $(f(o)), 1)
|
|
@@ -8367,7 +8378,7 @@ const Il = { key: 0 }, Vl = {
|
|
|
8367
8378
|
]));
|
|
8368
8379
|
}
|
|
8369
8380
|
});
|
|
8370
|
-
const
|
|
8381
|
+
const fh = /* @__PURE__ */ gt(Fl, [["__scopeId", "data-v-2ee04bbf"]]), mh = /* @__PURE__ */ L({
|
|
8371
8382
|
__name: "AFilterBooleanSelect",
|
|
8372
8383
|
props: {
|
|
8373
8384
|
modelValue: null
|
|
@@ -8376,7 +8387,7 @@ const ch = /* @__PURE__ */ gt(Pl, [["__scopeId", "data-v-2ee04bbf"]]), fh = /* @
|
|
|
8376
8387
|
setup(t, { emit: n }) {
|
|
8377
8388
|
const e = t, a = T({
|
|
8378
8389
|
get() {
|
|
8379
|
-
return S(e.modelValue.model) ||
|
|
8390
|
+
return S(e.modelValue.model) || ve(e.modelValue.model) ? -1 : e.modelValue.model ? 1 : 0;
|
|
8380
8391
|
},
|
|
8381
8392
|
set(c) {
|
|
8382
8393
|
let u = null;
|
|
@@ -8429,7 +8440,7 @@ function Nl() {
|
|
|
8429
8440
|
getJobStatusOption: (a) => n.value.find((r) => r.value === a)
|
|
8430
8441
|
};
|
|
8431
8442
|
}
|
|
8432
|
-
const
|
|
8443
|
+
const ph = /* @__PURE__ */ L({
|
|
8433
8444
|
__name: "AJobStatusChip",
|
|
8434
8445
|
props: {
|
|
8435
8446
|
value: null
|
|
@@ -8457,7 +8468,7 @@ const mh = /* @__PURE__ */ L({
|
|
|
8457
8468
|
LINK_EXTERNAL: "mdi-open-in-new"
|
|
8458
8469
|
}
|
|
8459
8470
|
}
|
|
8460
|
-
}, mr = zr(Ll), Bl = { key: 1 },
|
|
8471
|
+
}, mr = zr(Ll), Bl = { key: 1 }, hh = /* @__PURE__ */ L({
|
|
8461
8472
|
__name: "ACachedChip",
|
|
8462
8473
|
props: {
|
|
8463
8474
|
id: { default: null },
|
|
@@ -8477,7 +8488,7 @@ const mh = /* @__PURE__ */ L({
|
|
|
8477
8488
|
const n = t, e = ka(), a = er(void 0), r = er(!1), o = T(() => n.getCachedFn(n.id)), s = T(() => n.title.length > 0 ? n.title : a.value ? Ur(a.value, n.displayTextPath) : n.fallbackIdText ? n.id : ""), c = () => {
|
|
8478
8489
|
e.push({ name: n.route, params: { id: n.id } });
|
|
8479
8490
|
};
|
|
8480
|
-
return
|
|
8491
|
+
return Ie(
|
|
8481
8492
|
o,
|
|
8482
8493
|
async (u) => {
|
|
8483
8494
|
r.value || S(u) || u._loaded === !1 || (a.value = u, r.value = !0);
|
|
@@ -8486,7 +8497,7 @@ const mh = /* @__PURE__ */ L({
|
|
|
8486
8497
|
), (u, p) => (k(), H("div", {
|
|
8487
8498
|
class: ke(t.containerClass)
|
|
8488
8499
|
}, [
|
|
8489
|
-
f(
|
|
8500
|
+
f(ve)(t.id) || f(S)(t.id) ? Ae(u.$slots, "empty", { key: 0 }, () => [
|
|
8490
8501
|
B(" - ")
|
|
8491
8502
|
]) : t.textOnly ? (k(), H("div", Bl, [
|
|
8492
8503
|
B($(f(s)) + " ", 1),
|
|
@@ -8584,7 +8595,7 @@ function Rl() {
|
|
|
8584
8595
|
getLogLevelOption: (e) => t.value.find((a) => a.value === e)
|
|
8585
8596
|
};
|
|
8586
8597
|
}
|
|
8587
|
-
const
|
|
8598
|
+
const gh = /* @__PURE__ */ L({
|
|
8588
8599
|
__name: "ALogLevelChip",
|
|
8589
8600
|
props: {
|
|
8590
8601
|
level: null
|
|
@@ -8603,7 +8614,7 @@ const hh = /* @__PURE__ */ L({
|
|
|
8603
8614
|
_: 1
|
|
8604
8615
|
}, 8, ["color"])) : Z("", !0);
|
|
8605
8616
|
}
|
|
8606
|
-
}), Xr = (t) => "" + t, zl = ["data-cy", "onClick"],
|
|
8617
|
+
}), Xr = (t) => "" + t, zl = ["data-cy", "onClick"], vh = /* @__PURE__ */ L({
|
|
8607
8618
|
__name: "ACopyText",
|
|
8608
8619
|
props: {
|
|
8609
8620
|
value: null,
|
|
@@ -8657,7 +8668,7 @@ const Ul = {
|
|
|
8657
8668
|
size: { default: "default" }
|
|
8658
8669
|
},
|
|
8659
8670
|
setup(t) {
|
|
8660
|
-
return (n, e) => f(
|
|
8671
|
+
return (n, e) => f(ve)(t.secondaryIcon) ? f(ve)(t.secondaryText) ? (k(), E(pe, {
|
|
8661
8672
|
key: 2,
|
|
8662
8673
|
icon: t.mainIcon
|
|
8663
8674
|
}, null, 8, ["icon"])) : (k(), H("div", Yl, [
|
|
@@ -8694,7 +8705,7 @@ function Wl(t, n) {
|
|
|
8694
8705
|
_: 3
|
|
8695
8706
|
});
|
|
8696
8707
|
}
|
|
8697
|
-
const
|
|
8708
|
+
const yh = /* @__PURE__ */ gt(Jl, [["render", Wl]]), bh = /* @__PURE__ */ L({
|
|
8698
8709
|
__name: "AUserAndTimeTrackingFields",
|
|
8699
8710
|
props: {
|
|
8700
8711
|
data: null,
|
|
@@ -8730,7 +8741,7 @@ const vh = /* @__PURE__ */ gt(Jl, [["render", Wl]]), yh = /* @__PURE__ */ L({
|
|
|
8730
8741
|
}, 8, ["title"]))
|
|
8731
8742
|
], 64));
|
|
8732
8743
|
}
|
|
8733
|
-
}),
|
|
8744
|
+
}), wh = /* @__PURE__ */ L({
|
|
8734
8745
|
__name: "AActionCloseButton",
|
|
8735
8746
|
props: {
|
|
8736
8747
|
routeName: null,
|
|
@@ -8766,7 +8777,7 @@ const vh = /* @__PURE__ */ gt(Jl, [["render", Wl]]), yh = /* @__PURE__ */ L({
|
|
|
8766
8777
|
_: 1
|
|
8767
8778
|
}, 8, ["class", "data-cy", "to"]));
|
|
8768
8779
|
}
|
|
8769
|
-
}),
|
|
8780
|
+
}), kh = /* @__PURE__ */ L({
|
|
8770
8781
|
__name: "AActionCreateButton",
|
|
8771
8782
|
props: {
|
|
8772
8783
|
routeName: null,
|
|
@@ -8789,7 +8800,7 @@ const vh = /* @__PURE__ */ gt(Jl, [["render", Wl]]), yh = /* @__PURE__ */ L({
|
|
|
8789
8800
|
_: 1
|
|
8790
8801
|
}, 8, ["class", "data-cy", "to"]));
|
|
8791
8802
|
}
|
|
8792
|
-
}),
|
|
8803
|
+
}), Ch = /* @__PURE__ */ L({
|
|
8793
8804
|
__name: "AActionDeleteButton",
|
|
8794
8805
|
props: {
|
|
8795
8806
|
variant: { default: "text" },
|
|
@@ -8854,7 +8865,7 @@ const vh = /* @__PURE__ */ gt(Jl, [["render", Wl]]), yh = /* @__PURE__ */ L({
|
|
|
8854
8865
|
}, 8, ["class", "data-cy", "variant", "disabled", "color", "loading", "width", "height", "onClick"]),
|
|
8855
8866
|
w(_a, {
|
|
8856
8867
|
modelValue: r.value,
|
|
8857
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
8868
|
+
"onUpdate:modelValue": d[0] || (d[0] = (V) => r.value = V),
|
|
8858
8869
|
persistent: "",
|
|
8859
8870
|
width: 500,
|
|
8860
8871
|
"no-click-animation": ""
|
|
@@ -8907,7 +8918,7 @@ const vh = /* @__PURE__ */ gt(Jl, [["render", Wl]]), yh = /* @__PURE__ */ L({
|
|
|
8907
8918
|
], 64);
|
|
8908
8919
|
};
|
|
8909
8920
|
}
|
|
8910
|
-
}),
|
|
8921
|
+
}), _h = /* @__PURE__ */ L({
|
|
8911
8922
|
__name: "AActionEditButton",
|
|
8912
8923
|
props: {
|
|
8913
8924
|
routeName: null,
|
|
@@ -8936,7 +8947,7 @@ const vh = /* @__PURE__ */ gt(Jl, [["render", Wl]]), yh = /* @__PURE__ */ L({
|
|
|
8936
8947
|
_: 1
|
|
8937
8948
|
}, 8, ["class", "data-cy", "loading", "onClick"]));
|
|
8938
8949
|
}
|
|
8939
|
-
}),
|
|
8950
|
+
}), Dh = /* @__PURE__ */ L({
|
|
8940
8951
|
__name: "AActionSaveAndCloseButton",
|
|
8941
8952
|
props: {
|
|
8942
8953
|
buttonT: { default: "common.button.saveAndClose" },
|
|
@@ -8980,7 +8991,7 @@ const vh = /* @__PURE__ */ gt(Jl, [["render", Wl]]), yh = /* @__PURE__ */ L({
|
|
|
8980
8991
|
_: 1
|
|
8981
8992
|
}, 8, ["class", "data-cy", "loading", "disabled", "onClick"]));
|
|
8982
8993
|
}
|
|
8983
|
-
}),
|
|
8994
|
+
}), Ah = /* @__PURE__ */ L({
|
|
8984
8995
|
__name: "AActionSaveButton",
|
|
8985
8996
|
props: {
|
|
8986
8997
|
buttonT: { default: "common.button.save" },
|
|
@@ -9035,7 +9046,7 @@ const vh = /* @__PURE__ */ gt(Jl, [["render", Wl]]), yh = /* @__PURE__ */ L({
|
|
|
9035
9046
|
_: 1
|
|
9036
9047
|
}, 8, ["class", "data-cy", "loading", "disabled", "onClick"]));
|
|
9037
9048
|
}
|
|
9038
|
-
}),
|
|
9049
|
+
}), Mh = /* @__PURE__ */ L({
|
|
9039
9050
|
__name: "ATableCopyIdButton",
|
|
9040
9051
|
props: {
|
|
9041
9052
|
id: null,
|
|
@@ -9082,27 +9093,26 @@ const vh = /* @__PURE__ */ gt(Jl, [["render", Wl]]), yh = /* @__PURE__ */ L({
|
|
|
9082
9093
|
_: 1
|
|
9083
9094
|
}, 8, ["class", "data-cy", "size", "onClick"])) : Z("", !0);
|
|
9084
9095
|
}
|
|
9085
|
-
}),
|
|
9096
|
+
}), xh = /* @__PURE__ */ L({
|
|
9086
9097
|
__name: "ATableDetailButton",
|
|
9087
9098
|
props: {
|
|
9088
|
-
recordId: null,
|
|
9089
9099
|
routeName: null,
|
|
9100
|
+
recordId: { default: void 0 },
|
|
9101
|
+
routeParams: { default: void 0 },
|
|
9090
9102
|
buttonT: { default: "common.button.detail" },
|
|
9091
9103
|
buttonClass: { default: "ml-1" },
|
|
9092
|
-
target: { default: "_self" },
|
|
9093
9104
|
dataCy: { default: "table-detail" }
|
|
9094
9105
|
},
|
|
9095
9106
|
setup(t) {
|
|
9096
|
-
const { t:
|
|
9097
|
-
return (
|
|
9107
|
+
const n = t, { t: e } = G(), a = T(() => S(n.routeParams) ? { name: n.routeName, params: { id: n.recordId } } : { name: n.routeName, params: { ...n.routeParams } });
|
|
9108
|
+
return (r, o) => (k(), E(ie, {
|
|
9098
9109
|
class: ke(t.buttonClass),
|
|
9099
9110
|
"data-cy": t.dataCy,
|
|
9100
|
-
|
|
9101
|
-
to: { name: t.routeName, params: { id: t.recordId } },
|
|
9111
|
+
to: f(a),
|
|
9102
9112
|
icon: "",
|
|
9103
9113
|
size: "x-small",
|
|
9104
9114
|
variant: "text",
|
|
9105
|
-
onClick:
|
|
9115
|
+
onClick: o[0] || (o[0] = re(() => {
|
|
9106
9116
|
}, ["stop"]))
|
|
9107
9117
|
}, {
|
|
9108
9118
|
default: y(() => [
|
|
@@ -9112,35 +9122,34 @@ const vh = /* @__PURE__ */ gt(Jl, [["render", Wl]]), yh = /* @__PURE__ */ L({
|
|
|
9112
9122
|
location: "bottom"
|
|
9113
9123
|
}, {
|
|
9114
9124
|
default: y(() => [
|
|
9115
|
-
B($(f(
|
|
9125
|
+
B($(f(e)(t.buttonT)), 1)
|
|
9116
9126
|
]),
|
|
9117
9127
|
_: 1
|
|
9118
9128
|
})
|
|
9119
9129
|
]),
|
|
9120
9130
|
_: 1
|
|
9121
|
-
}, 8, ["class", "data-cy", "
|
|
9131
|
+
}, 8, ["class", "data-cy", "to"]));
|
|
9122
9132
|
}
|
|
9123
|
-
}),
|
|
9133
|
+
}), Th = /* @__PURE__ */ L({
|
|
9124
9134
|
__name: "ATableEditButton",
|
|
9125
9135
|
props: {
|
|
9126
|
-
recordId: null,
|
|
9127
9136
|
routeName: null,
|
|
9137
|
+
recordId: { default: void 0 },
|
|
9138
|
+
routeParams: { default: void 0 },
|
|
9128
9139
|
buttonT: { default: "common.button.edit" },
|
|
9129
9140
|
buttonClass: { default: "ml-1" },
|
|
9130
|
-
target: { default: "_self" },
|
|
9131
9141
|
dataCy: { default: "table-edit" }
|
|
9132
9142
|
},
|
|
9133
9143
|
setup(t) {
|
|
9134
|
-
const { t:
|
|
9135
|
-
return (
|
|
9144
|
+
const n = t, { t: e } = G(), a = T(() => S(n.routeParams) ? { name: n.routeName, params: { id: n.recordId } } : { name: n.routeName, params: { ...n.routeParams } });
|
|
9145
|
+
return (r, o) => (k(), E(ie, {
|
|
9136
9146
|
class: ke(t.buttonClass),
|
|
9137
9147
|
"data-cy": t.dataCy,
|
|
9138
|
-
|
|
9139
|
-
to: { name: t.routeName, params: { id: t.recordId } },
|
|
9148
|
+
to: f(a),
|
|
9140
9149
|
icon: "",
|
|
9141
9150
|
size: "x-small",
|
|
9142
9151
|
variant: "text",
|
|
9143
|
-
onClick:
|
|
9152
|
+
onClick: o[0] || (o[0] = re(() => {
|
|
9144
9153
|
}, ["stop"]))
|
|
9145
9154
|
}, {
|
|
9146
9155
|
default: y(() => [
|
|
@@ -9150,13 +9159,13 @@ const vh = /* @__PURE__ */ gt(Jl, [["render", Wl]]), yh = /* @__PURE__ */ L({
|
|
|
9150
9159
|
location: "bottom"
|
|
9151
9160
|
}, {
|
|
9152
9161
|
default: y(() => [
|
|
9153
|
-
B($(f(
|
|
9162
|
+
B($(f(e)(t.buttonT)), 1)
|
|
9154
9163
|
]),
|
|
9155
9164
|
_: 1
|
|
9156
9165
|
})
|
|
9157
9166
|
]),
|
|
9158
9167
|
_: 1
|
|
9159
|
-
}, 8, ["class", "data-cy", "
|
|
9168
|
+
}, 8, ["class", "data-cy", "to"]));
|
|
9160
9169
|
}
|
|
9161
9170
|
});
|
|
9162
9171
|
var Gt = /* @__PURE__ */ ((t) => (t.Light = "light", t.Dark = "dark", t.Auto = "auto", t))(Gt || {}), ql = /* @__PURE__ */ ((t) => (t.Light = "light", t.Dark = "dark", t))(ql || {});
|
|
@@ -9230,7 +9239,7 @@ function Kl() {
|
|
|
9230
9239
|
setThemeLight: e
|
|
9231
9240
|
};
|
|
9232
9241
|
}
|
|
9233
|
-
const Zl = { key: 0 }, Ql = { key: 1 }, Xl = { key: 2 },
|
|
9242
|
+
const Zl = { key: 0 }, Ql = { key: 1 }, Xl = { key: 2 }, Sh = /* @__PURE__ */ L({
|
|
9234
9243
|
__name: "AThemeSelect",
|
|
9235
9244
|
setup(t) {
|
|
9236
9245
|
const { setThemeDark: n, setThemeAuto: e, setThemeLight: a, settings: r } = Kl(), { t: o } = G(), s = J(!1);
|
|
@@ -9509,7 +9518,7 @@ const vs = /* @__PURE__ */ gt(fs, [["render", gs]]), ys = { class: "flag" }, pr
|
|
|
9509
9518
|
}));
|
|
9510
9519
|
}
|
|
9511
9520
|
});
|
|
9512
|
-
const
|
|
9521
|
+
const $h = /* @__PURE__ */ gt(bs, [["__scopeId", "data-v-a2015e08"]]), ws = ["onClick"], ks = /* @__PURE__ */ L({
|
|
9513
9522
|
__name: "ASystemBarNewVersion",
|
|
9514
9523
|
setup(t) {
|
|
9515
9524
|
const { t: n } = G(), e = () => {
|
|
@@ -9523,7 +9532,7 @@ const Sh = /* @__PURE__ */ gt(bs, [["__scopeId", "data-v-a2015e08"]]), ws = ["on
|
|
|
9523
9532
|
}, $(f(n)("common.system.newVersionReload")), 9, ws)
|
|
9524
9533
|
]), tr(1), r[0]);
|
|
9525
9534
|
}
|
|
9526
|
-
}), Cs = { class: "text-center w-100 text-caption pb-1" },
|
|
9535
|
+
}), Cs = { class: "text-center w-100 text-caption pb-1" }, Oh = /* @__PURE__ */ L({
|
|
9527
9536
|
__name: "ASystemBar",
|
|
9528
9537
|
props: {
|
|
9529
9538
|
currentVersion: null,
|
|
@@ -9609,7 +9618,7 @@ const Sh = /* @__PURE__ */ gt(bs, [["__scopeId", "data-v-a2015e08"]]), ws = ["on
|
|
|
9609
9618
|
}, As = {
|
|
9610
9619
|
key: 0,
|
|
9611
9620
|
class: "required"
|
|
9612
|
-
},
|
|
9621
|
+
}, Ph = /* @__PURE__ */ L({
|
|
9613
9622
|
__name: "AAvatarColorPicker",
|
|
9614
9623
|
props: {
|
|
9615
9624
|
modelValue: null,
|
|
@@ -9634,7 +9643,7 @@ const Sh = /* @__PURE__ */ gt(bs, [["__scopeId", "data-v-a2015e08"]]), ws = ["on
|
|
|
9634
9643
|
}, s = T(() => e.modelValue.length > 0 ? "flat" : "tonal"), c = T(() => e.modelValue.length > 0 ? e.modelValue : void 0), u = (p) => {
|
|
9635
9644
|
n("update:modelValue", p);
|
|
9636
9645
|
};
|
|
9637
|
-
return
|
|
9646
|
+
return Ie(
|
|
9638
9647
|
() => e.modelValue,
|
|
9639
9648
|
(p, m) => {
|
|
9640
9649
|
if (p !== m && p.length !== 7 && p.length !== 7 && e.randomColor) {
|
|
@@ -9886,12 +9895,12 @@ const Ms = /* @__PURE__ */ te("br", null, null, -1), Ih = /* @__PURE__ */ L({
|
|
|
9886
9895
|
set(D) {
|
|
9887
9896
|
n("update:modelValue", ct(D));
|
|
9888
9897
|
}
|
|
9889
|
-
}), { t: c } = G(), u = be(nt, void 0), p = be(at, void 0), m = J(!1), d = J(""), g = J(!1), { innerFilter: b } = ya(e),
|
|
9898
|
+
}), { t: c } = G(), u = be(nt, void 0), p = be(at, void 0), m = J(!1), d = J(""), g = J(!1), { innerFilter: b } = ya(e), V = Gn(), v = J(/* @__PURE__ */ new Map()), O = () => {
|
|
9890
9899
|
m.value = !0, n("focus", s.value);
|
|
9891
|
-
},
|
|
9900
|
+
}, P = () => {
|
|
9892
9901
|
var D;
|
|
9893
9902
|
m.value = !1, (D = e.v) == null || D.$touch(), n("blur", s.value);
|
|
9894
|
-
},
|
|
9903
|
+
}, F = T(() => {
|
|
9895
9904
|
var D, C;
|
|
9896
9905
|
return S(e.errorMessage) ? (C = (D = e.v) == null ? void 0 : D.$errors) != null && C.length ? e.v.$errors.map((A) => A.$message) : [] : [e.errorMessage];
|
|
9897
9906
|
}), z = T(() => {
|
|
@@ -9910,7 +9919,7 @@ const Ms = /* @__PURE__ */ te("br", null, null, -1), Ih = /* @__PURE__ */ L({
|
|
|
9910
9919
|
}, ue = async (D) => {
|
|
9911
9920
|
g.value = !0;
|
|
9912
9921
|
const C = b.value[e.filterByField];
|
|
9913
|
-
C.model = D, v.value.clear(), (await e.fetchItemsMinimal(
|
|
9922
|
+
C.model = D, v.value.clear(), (await e.fetchItemsMinimal(V, b.value)).forEach((M) => {
|
|
9914
9923
|
v.value.set(M[e.itemValue], M);
|
|
9915
9924
|
}), g.value = !1;
|
|
9916
9925
|
}, me = T(() => {
|
|
@@ -9937,16 +9946,16 @@ const Ms = /* @__PURE__ */ te("br", null, null, -1), Ih = /* @__PURE__ */ L({
|
|
|
9937
9946
|
D !== C && (ue(D), n("searchChangeDebounced", D));
|
|
9938
9947
|
},
|
|
9939
9948
|
{ debounce: 300, maxWait: 1e3 }
|
|
9940
|
-
),
|
|
9949
|
+
), Ie(d, (D, C) => {
|
|
9941
9950
|
if (D.length === 0 && m.value === !0 && Date.now() - Me.value > 200) {
|
|
9942
9951
|
d.value = C;
|
|
9943
9952
|
return;
|
|
9944
9953
|
}
|
|
9945
9954
|
D !== C && n("searchChange", D);
|
|
9946
|
-
}),
|
|
9955
|
+
}), Ie(
|
|
9947
9956
|
s,
|
|
9948
9957
|
async (D) => {
|
|
9949
|
-
if (
|
|
9958
|
+
if (ve(D) || S(D) || Oe(D) && D.length === 0)
|
|
9950
9959
|
return;
|
|
9951
9960
|
const C = Oe(D) ? D : [D], A = new Set(C);
|
|
9952
9961
|
await oe(A), A.size > 0 && (r(Array.from(A)), a());
|
|
@@ -9961,9 +9970,9 @@ const Ms = /* @__PURE__ */ te("br", null, null, -1), Ih = /* @__PURE__ */ L({
|
|
|
9961
9970
|
"no-filter": "",
|
|
9962
9971
|
multiple: f(ne),
|
|
9963
9972
|
clearable: t.clearable,
|
|
9964
|
-
"error-messages": f(
|
|
9973
|
+
"error-messages": f(F),
|
|
9965
9974
|
loading: g.value,
|
|
9966
|
-
onBlur:
|
|
9975
|
+
onBlur: P,
|
|
9967
9976
|
onFocus: O,
|
|
9968
9977
|
"onUpdate:search": ee,
|
|
9969
9978
|
"onClick:clear": Q,
|
|
@@ -10007,7 +10016,7 @@ const Ms = /* @__PURE__ */ te("br", null, null, -1), Ih = /* @__PURE__ */ L({
|
|
|
10007
10016
|
}), Ts = { class: "d-flex justify-center align-center fill-height" }, Ss = { class: "d-flex justify-center align-center flex-column" }, $s = ["src"], Os = {
|
|
10008
10017
|
key: 0,
|
|
10009
10018
|
class: "display-1 my-3"
|
|
10010
|
-
},
|
|
10019
|
+
}, Ps = { class: "mb-3 body-1" }, Is = { class: "py-5" }, Vs = /* @__PURE__ */ L({
|
|
10011
10020
|
__name: "ALoginView",
|
|
10012
10021
|
props: {
|
|
10013
10022
|
title: { default: void 0 },
|
|
@@ -10026,10 +10035,10 @@ const Ms = /* @__PURE__ */ te("br", null, null, -1), Ih = /* @__PURE__ */ L({
|
|
|
10026
10035
|
alt: ""
|
|
10027
10036
|
}, null, 8, $s),
|
|
10028
10037
|
t.title ? (k(), H("h1", Os, $(t.title), 1)) : Z("", !0),
|
|
10029
|
-
te("h4",
|
|
10038
|
+
te("h4", Ps, [
|
|
10030
10039
|
te("span", null, $(f(e)("common.system.login.text")), 1)
|
|
10031
10040
|
]),
|
|
10032
|
-
te("div",
|
|
10041
|
+
te("div", Is, [
|
|
10033
10042
|
t.loginUrl ? (k(), E(ie, {
|
|
10034
10043
|
key: 0,
|
|
10035
10044
|
href: t.loginUrl(),
|
|
@@ -10046,7 +10055,7 @@ const Ms = /* @__PURE__ */ te("br", null, null, -1), Ih = /* @__PURE__ */ L({
|
|
|
10046
10055
|
]));
|
|
10047
10056
|
}
|
|
10048
10057
|
});
|
|
10049
|
-
const Fh = /* @__PURE__ */ gt(
|
|
10058
|
+
const Fh = /* @__PURE__ */ gt(Vs, [["__scopeId", "data-v-d02b0927"]]), Eh = /* @__PURE__ */ L({
|
|
10050
10059
|
__name: "ALogoutView",
|
|
10051
10060
|
props: {
|
|
10052
10061
|
logoutUrl: { type: [null, Function], default: void 0 }
|
|
@@ -10057,14 +10066,14 @@ const Fh = /* @__PURE__ */ gt(Fs, [["__scopeId", "data-v-d02b0927"]]), Ph = /* @
|
|
|
10057
10066
|
n.logoutUrl && (window.location.href = n.logoutUrl());
|
|
10058
10067
|
}), (e, a) => (k(), H("div"));
|
|
10059
10068
|
}
|
|
10060
|
-
}),
|
|
10069
|
+
}), Fs = { class: "d-flex justify-center align-center fill-height" }, Es = { class: "d-flex flex-column align-center" }, Ns = { class: "d-flex justify-center align-center text-primary" }, Ls = { class: "pa-4" }, Nh = /* @__PURE__ */ L({
|
|
10061
10070
|
__name: "AUnauthorizedView",
|
|
10062
10071
|
props: {
|
|
10063
10072
|
returnRouteName: null
|
|
10064
10073
|
},
|
|
10065
10074
|
setup(t) {
|
|
10066
10075
|
const { t: n } = G();
|
|
10067
|
-
return (e, a) => (k(), H("div",
|
|
10076
|
+
return (e, a) => (k(), H("div", Fs, [
|
|
10068
10077
|
te("div", Es, [
|
|
10069
10078
|
te("h1", Ns, [
|
|
10070
10079
|
w(pe, {
|
|
@@ -10087,7 +10096,7 @@ const Fh = /* @__PURE__ */ gt(Fs, [["__scopeId", "data-v-d02b0927"]]), Ph = /* @
|
|
|
10087
10096
|
])
|
|
10088
10097
|
]));
|
|
10089
10098
|
}
|
|
10090
|
-
}), Bs = { class: "d-flex justify-center align-center fill-height" }, js = { class: "d-flex flex-column align-center" }, Rs = { class: "d-flex justify-center align-center text-primary" }, zs = { class: "pa-4" },
|
|
10099
|
+
}), Bs = { class: "d-flex justify-center align-center fill-height" }, js = { class: "d-flex flex-column align-center" }, Rs = { class: "d-flex justify-center align-center text-primary" }, zs = { class: "pa-4" }, Lh = /* @__PURE__ */ L({
|
|
10091
10100
|
__name: "ANotFoundView",
|
|
10092
10101
|
props: {
|
|
10093
10102
|
returnRouteName: null
|
|
@@ -10117,8 +10126,8 @@ const Fh = /* @__PURE__ */ gt(Fs, [["__scopeId", "data-v-d02b0927"]]), Ph = /* @
|
|
|
10117
10126
|
])
|
|
10118
10127
|
]));
|
|
10119
10128
|
}
|
|
10120
|
-
}),
|
|
10121
|
-
function
|
|
10129
|
+
}), Bh = (t) => t ? 1 : 0;
|
|
10130
|
+
function jh(t = "", n = "user") {
|
|
10122
10131
|
let e = t, a = n;
|
|
10123
10132
|
return {
|
|
10124
10133
|
createAnzuUser: (o, s) => (ut(o) && (e = o), ut(s) && (a = s), {
|
|
@@ -10147,7 +10156,7 @@ function Bh(t = "", n = "user") {
|
|
|
10147
10156
|
})
|
|
10148
10157
|
};
|
|
10149
10158
|
}
|
|
10150
|
-
function
|
|
10159
|
+
function Rh() {
|
|
10151
10160
|
return {
|
|
10152
10161
|
createPermissionConfig: () => ({
|
|
10153
10162
|
config: {},
|
|
@@ -10161,7 +10170,7 @@ function jh() {
|
|
|
10161
10170
|
})
|
|
10162
10171
|
};
|
|
10163
10172
|
}
|
|
10164
|
-
function
|
|
10173
|
+
function zh() {
|
|
10165
10174
|
return {
|
|
10166
10175
|
createPermissionGroup: () => ({
|
|
10167
10176
|
id: 0,
|
|
@@ -10177,18 +10186,18 @@ function Rh() {
|
|
|
10177
10186
|
})
|
|
10178
10187
|
};
|
|
10179
10188
|
}
|
|
10180
|
-
const
|
|
10189
|
+
const Uh = (t, n = 2) => {
|
|
10181
10190
|
if (t === 0)
|
|
10182
10191
|
return "0 Bytes";
|
|
10183
10192
|
const e = 1024, a = n < 0 ? 0 : n, r = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], o = Math.floor(Math.log(t) / Math.log(e));
|
|
10184
10193
|
return parseFloat((t / Math.pow(e, o)).toFixed(a)) + " " + r[o];
|
|
10185
|
-
}, xt = (t) =>
|
|
10194
|
+
}, xt = (t) => Vi.includes(t), Tt = (t, n, e = "") => Sr(n) ? t : Ko(e === "" ? t : e, n), Yh = (t, n, e = "", a = {}, r = null, o, s, c = {}) => new Promise((u, p) => {
|
|
10186
10195
|
const m = { method: n };
|
|
10187
|
-
e !== "" && (m.url = Tt(e, a)),
|
|
10196
|
+
e !== "" && (m.url = Tt(e, a)), ve(r) || (m.data = JSON.stringify(r)), t().request({ ...c, ...m }).then((d) => xt(d.status) ? d.data ? u(d.data) : p(new Ve()) : p(new pt(d.status))).catch((d) => Dt(d) ? p(new ft(d)) : At(d) ? p(new mt(d, o, s, d)) : Mt(d) ? p(new ht(d, d)) : p(new Ve(d)));
|
|
10188
10197
|
}), Us = (t, n = {}, e, a = {}, r, o, s = {}) => new Promise((c, u) => {
|
|
10189
|
-
t().post(Tt(e, a), JSON.stringify(n), s).then((p) => xt(p.status) ? p.data ? c(p.data) : u(new
|
|
10198
|
+
t().post(Tt(e, a), JSON.stringify(n), s).then((p) => xt(p.status) ? p.data ? c(p.data) : u(new Ve()) : u(new pt(p.status))).catch((p) => Dt(p) ? u(new ft(p)) : At(p) ? u(new mt(p, r, o, p)) : Mt(p) ? u(new ht(p, p)) : u(new Ve(p)));
|
|
10190
10199
|
}), Ys = (t, n, e = {}, a, r, o = {}) => new Promise((s, c) => {
|
|
10191
|
-
t().delete(Tt(n, e), o).then((u) => xt(u.status) ? u.data ? s(u.data) : c(new
|
|
10200
|
+
t().delete(Tt(n, e), o).then((u) => xt(u.status) ? u.data ? s(u.data) : c(new Ve()) : c(new pt(u.status))).catch((u) => Dt(u) ? c(new ft(u)) : At(u) ? c(new mt(u, a, r, u)) : Mt(u) ? c(new ht(u, u)) : c(new Ve(u)));
|
|
10192
10201
|
});
|
|
10193
10202
|
function ao() {
|
|
10194
10203
|
const t = J([]), n = (m) => {
|
|
@@ -10196,12 +10205,12 @@ function ao() {
|
|
|
10196
10205
|
}, e = (m, d) => {
|
|
10197
10206
|
c("offset", m * d - d);
|
|
10198
10207
|
}, a = (m, d) => {
|
|
10199
|
-
!
|
|
10208
|
+
!ve(m) && m.length > 0 && c("order[" + m + "]", d ? "desc" : "asc");
|
|
10200
10209
|
}, r = (m) => ar(m) ? m ? "1" : "0" : m, o = (m, d, g) => {
|
|
10201
10210
|
ut(g) && g.length === 0 || t.value.push("filter_" + m + "[" + d + "]=" + r(g));
|
|
10202
10211
|
}, s = (m) => {
|
|
10203
10212
|
const d = m.model;
|
|
10204
|
-
return
|
|
10213
|
+
return ve(d) ? m.mandatory ? (m.model = m.default, m.default) : null : ut(d) ? d.length === 0 ? m.mandatory ? (m.model = m.default, m.default) : null : encodeURIComponent(d) : Oe(d) ? d.length === 0 ? m.mandatory ? (m.model = m.default, m.default) : null : d.map((g) => ut(g) ? encodeURIComponent(g) : g).join(",") : Aa(d) || ar(d) ? d : null;
|
|
10205
10214
|
}, c = (m, d) => {
|
|
10206
10215
|
t.value.push(m + "=" + d);
|
|
10207
10216
|
};
|
|
@@ -10213,16 +10222,16 @@ function ao() {
|
|
|
10213
10222
|
querySetFilters: (m) => {
|
|
10214
10223
|
const d = !S(m._elastic);
|
|
10215
10224
|
for (const g in m) {
|
|
10216
|
-
const b = m[g],
|
|
10225
|
+
const b = m[g], V = b.field || g;
|
|
10217
10226
|
if (b.exclude)
|
|
10218
10227
|
continue;
|
|
10219
10228
|
const v = s(b);
|
|
10220
|
-
if (!
|
|
10229
|
+
if (!ve(v)) {
|
|
10221
10230
|
if (d) {
|
|
10222
|
-
c(
|
|
10231
|
+
c(V, v);
|
|
10223
10232
|
continue;
|
|
10224
10233
|
}
|
|
10225
|
-
o(b.variant,
|
|
10234
|
+
o(b.variant, V, v);
|
|
10226
10235
|
}
|
|
10227
10236
|
}
|
|
10228
10237
|
},
|
|
@@ -10233,11 +10242,11 @@ function ao() {
|
|
|
10233
10242
|
const Hs = (t, n) => {
|
|
10234
10243
|
const { querySetLimit: e, querySetOffset: a, querySetOrder: r, queryBuild: o, queryAddFilter: s, queryAdd: c } = ao(), u = t.length;
|
|
10235
10244
|
return e(u), a(1, u), r("id", !1), n ? c("id", t.join(",")) : s("in", "id", t.join(",")), o();
|
|
10236
|
-
},
|
|
10245
|
+
}, Hh = (t, n, e, a = {}, r, o, s = {}, c = !1) => new Promise((u, p) => {
|
|
10237
10246
|
t().get(Tt(e, a) + Hs(n, c), s).then((m) => {
|
|
10238
10247
|
var d;
|
|
10239
|
-
return xt(m.status) ? (d = m.data) != null && d.data ? u(m.data.data) : p(new
|
|
10240
|
-
}).catch((m) => Dt(m) ? p(new ft(m)) : At(m) ? p(new mt(m, r, o, m)) : Mt(m) ? p(new ht(m, m)) : p(new
|
|
10248
|
+
return xt(m.status) ? (d = m.data) != null && d.data ? u(m.data.data) : p(new Ve()) : p(new pt(m.status));
|
|
10249
|
+
}).catch((m) => Dt(m) ? p(new ft(m)) : At(m) ? p(new mt(m, r, o, m)) : Mt(m) ? p(new ht(m, m)) : p(new Ve(m)));
|
|
10241
10250
|
}), Js = (t) => Wn(t) && Object.hasOwn(t, "totalCount"), Ws = (t) => Wn(t) && Object.hasOwn(t, "hasNextPage"), qs = (t, n) => {
|
|
10242
10251
|
const { querySetLimit: e, querySetOffset: a, querySetOrder: r, queryBuild: o, querySetFilters: s } = ao();
|
|
10243
10252
|
return e(t.rowsPerPage), a(t.page, t.rowsPerPage), r(t.sortBy, t.descending), s(n), o();
|
|
@@ -10253,34 +10262,34 @@ const Hs = (t, n) => {
|
|
|
10253
10262
|
const g = d.data;
|
|
10254
10263
|
return Ws(g) ? a.hasNextPage = d.data.hasNextPage : Js(g) && (a.totalCount = g.totalCount), a.currentViewCount = d.data.data.length, u(d.data.data);
|
|
10255
10264
|
}
|
|
10256
|
-
return p(new
|
|
10257
|
-
}).catch((d) => Dt(d) ? p(new ft(d)) : At(d) ? p(new mt(d, o, s, d)) : Mt(d) ? p(new ht(d, d)) : p(new
|
|
10265
|
+
return p(new Ve());
|
|
10266
|
+
}).catch((d) => Dt(d) ? p(new ft(d)) : At(d) ? p(new mt(d, o, s, d)) : Mt(d) ? p(new ht(d, d)) : p(new Ve(d)));
|
|
10258
10267
|
}), Ks = (t, n, e = {}, a, r, o = {}) => new Promise((s, c) => {
|
|
10259
|
-
t().get(Tt(n, e), o).then((u) => xt(u.status) ? u.data ? s(u.data) : c(new
|
|
10260
|
-
}),
|
|
10261
|
-
t().put(Tt(e, a), JSON.stringify(n), s).then((p) => xt(p.status) ? p.data ? c(p.data) : u(new
|
|
10268
|
+
t().get(Tt(n, e), o).then((u) => xt(u.status) ? u.data ? s(u.data) : c(new Ve()) : c(new pt(u.status))).catch((u) => Dt(u) ? c(new ft(u)) : At(u) ? c(new mt(u, a, r, u)) : Mt(u) ? c(new ht(u, u)) : c(new Ve(u)));
|
|
10269
|
+
}), Jh = (t, n = {}, e, a = {}, r, o, s = {}) => new Promise((c, u) => {
|
|
10270
|
+
t().put(Tt(e, a), JSON.stringify(n), s).then((p) => xt(p.status) ? p.data ? c(p.data) : u(new Ve()) : u(new pt(p.status))).catch((p) => Dt(p) ? u(new ft(p)) : At(p) ? u(new mt(p, r, o, p)) : Mt(p) ? u(new ht(p, p)) : u(new Ve(p)));
|
|
10262
10271
|
});
|
|
10263
|
-
function
|
|
10272
|
+
function Wh() {
|
|
10264
10273
|
return {
|
|
10265
|
-
isAnzuFatalError:
|
|
10266
|
-
isAnzuApiForbiddenError:
|
|
10267
|
-
isAnzuApiValidationError:
|
|
10274
|
+
isAnzuFatalError: Pr,
|
|
10275
|
+
isAnzuApiForbiddenError: Vr,
|
|
10276
|
+
isAnzuApiValidationError: Fr,
|
|
10268
10277
|
isAnzuApiResponseCodeError: Er
|
|
10269
10278
|
};
|
|
10270
10279
|
}
|
|
10271
|
-
const
|
|
10272
|
-
function
|
|
10280
|
+
const Vn = "/adm/v1/job", Fn = "job";
|
|
10281
|
+
function qh(t, n) {
|
|
10273
10282
|
return {
|
|
10274
|
-
fetchJobList: (s, c) => Gs(t,
|
|
10275
|
-
fetchJob: (s) => Ks(t,
|
|
10283
|
+
fetchJobList: (s, c) => Gs(t, Vn, {}, s, c, n, Fn),
|
|
10284
|
+
fetchJob: (s) => Ks(t, Vn + "/:id", { id: s }, n, Fn),
|
|
10276
10285
|
createJob: (s) => {
|
|
10277
10286
|
const c = Go(s._resourceName).slice(4);
|
|
10278
|
-
return Us(t, s,
|
|
10287
|
+
return Us(t, s, Vn + "/:type", { type: c }, n, Fn);
|
|
10279
10288
|
},
|
|
10280
|
-
deleteJob: (s) => Ys(t,
|
|
10289
|
+
deleteJob: (s) => Ys(t, Vn + "/:id", { id: s }, n, Fn)
|
|
10281
10290
|
};
|
|
10282
10291
|
}
|
|
10283
|
-
function
|
|
10292
|
+
function Gh(t = []) {
|
|
10284
10293
|
const { t: n } = G(), e = J([
|
|
10285
10294
|
{
|
|
10286
10295
|
value: "jobUserDataDelete",
|
|
@@ -10293,16 +10302,16 @@ function qh(t = []) {
|
|
|
10293
10302
|
getJobResourceOption: (r) => e.value.find((o) => o.value === r)
|
|
10294
10303
|
};
|
|
10295
10304
|
}
|
|
10296
|
-
const
|
|
10305
|
+
const Kh = (t, n) => {
|
|
10297
10306
|
const e = t.indexOf(n);
|
|
10298
10307
|
if (e === -1) {
|
|
10299
10308
|
t.push(n);
|
|
10300
10309
|
return;
|
|
10301
10310
|
}
|
|
10302
10311
|
t.splice(e, 1);
|
|
10303
|
-
},
|
|
10312
|
+
}, Zh = (t, n = ", ") => t.join(n), Qh = (...t) => Array.from(...t), Zs = (t, n = []) => t.reduce((e, a) => Array.isArray(a) ? Zs(a, n) : (n.push(a), n), []), Qs = (t) => {
|
|
10304
10313
|
history.replaceState(history.state, "", t);
|
|
10305
|
-
},
|
|
10314
|
+
}, Xh = (t, n) => {
|
|
10306
10315
|
const e = t.resolve(n);
|
|
10307
10316
|
Qs(e.href);
|
|
10308
10317
|
}, Xs = "Badge", eu = "Close", tu = {
|
|
@@ -10396,7 +10405,7 @@ const Gh = (t, n) => {
|
|
|
10396
10405
|
recordWas: yu,
|
|
10397
10406
|
idWasCopied: bu,
|
|
10398
10407
|
textWasCopied: wu
|
|
10399
|
-
}, Cu = "Create", _u = "Create And Close", Du = "Save", Au = "Save And Close", Mu = "Close", xu = "Edit", Tu = "Detail", Su = "Apply Filter", $u = "Reset Filter", Ou = "More filters",
|
|
10408
|
+
}, Cu = "Create", _u = "Create And Close", Du = "Save", Au = "Save And Close", Mu = "Close", xu = "Edit", Tu = "Detail", Su = "Apply Filter", $u = "Reset Filter", Ou = "More filters", Pu = "Cancel", Iu = "Id", Vu = "Now", Fu = "Logout", Eu = "Confirm", Nu = "Copy ID", Lu = "Add", Bu = "Download", ju = "Upload", Ru = {
|
|
10400
10409
|
create: Cu,
|
|
10401
10410
|
createAndClose: _u,
|
|
10402
10411
|
save: Du,
|
|
@@ -10407,11 +10416,11 @@ const Gh = (t, n) => {
|
|
|
10407
10416
|
submitFilter: Su,
|
|
10408
10417
|
resetFilter: $u,
|
|
10409
10418
|
advancedFilters: Ou,
|
|
10410
|
-
cancel:
|
|
10419
|
+
cancel: Pu,
|
|
10411
10420
|
delete: "Delete",
|
|
10412
|
-
id:
|
|
10413
|
-
now:
|
|
10414
|
-
logout:
|
|
10421
|
+
id: Iu,
|
|
10422
|
+
now: Vu,
|
|
10423
|
+
logout: Fu,
|
|
10415
10424
|
confirm: Eu,
|
|
10416
10425
|
copyId: Nu,
|
|
10417
10426
|
add: Lu,
|
|
@@ -10623,12 +10632,12 @@ const Gh = (t, n) => {
|
|
|
10623
10632
|
model: xd,
|
|
10624
10633
|
filter: Td,
|
|
10625
10634
|
button: Sd
|
|
10626
|
-
}, Od = "Invalid",
|
|
10635
|
+
}, Od = "Invalid", Pd = "todo trans error_id_mismatch", Id = "todo trans error_field_empty", Vd = "todo trans error_field_length_min", Fd = "todo trans error_field_length_max", Ed = "todo trans error_field_invalid", Nd = "todo trans error_field_not_unique", Ld = "todo trans error_field_value_not_found", Bd = "todo trans error_field_range_min", jd = "todo trans error_field_range_max", Rd = "todo trans error_field_regex", zd = "todo trans error_field_url", Ud = "todo trans error_already_exists", Yd = {
|
|
10627
10636
|
noTranslation: Od,
|
|
10628
|
-
error_id_mismatch:
|
|
10629
|
-
error_field_empty:
|
|
10630
|
-
error_field_length_min:
|
|
10631
|
-
error_field_length_max:
|
|
10637
|
+
error_id_mismatch: Pd,
|
|
10638
|
+
error_field_empty: Id,
|
|
10639
|
+
error_field_length_min: Vd,
|
|
10640
|
+
error_field_length_max: Fd,
|
|
10632
10641
|
error_field_invalid: Ed,
|
|
10633
10642
|
error_field_not_unique: Nd,
|
|
10634
10643
|
error_field_value_not_found: Ld,
|
|
@@ -10651,7 +10660,7 @@ const Gh = (t, n) => {
|
|
|
10651
10660
|
stringArrayItemLength: tc
|
|
10652
10661
|
}, ac = "Chyba", rc = {
|
|
10653
10662
|
noTranslation: ac
|
|
10654
|
-
},
|
|
10663
|
+
}, eg = {
|
|
10655
10664
|
common: {
|
|
10656
10665
|
alert: ku,
|
|
10657
10666
|
button: Ru,
|
|
@@ -10692,7 +10701,7 @@ const Gh = (t, n) => {
|
|
|
10692
10701
|
recordWas: dc,
|
|
10693
10702
|
idWasCopied: cc,
|
|
10694
10703
|
textWasCopied: fc
|
|
10695
|
-
}, pc = "Vytvoriť", hc = "Vytvoriť a zatvoriť", gc = "Uložiť", vc = "Uložiť a zatvoriť", yc = "Zatvoriť", bc = "Editovať", wc = "Detail", kc = "Hľadať", Cc = "Zrušiť filter", _c = "More filters", Dc = "Zrušiť", Ac = "ID", Mc = "Teraz", xc = "Potvrď", Tc = "Copy ID", Sc = "Pridať", $c = "Download", Oc = "Upload",
|
|
10704
|
+
}, pc = "Vytvoriť", hc = "Vytvoriť a zatvoriť", gc = "Uložiť", vc = "Uložiť a zatvoriť", yc = "Zatvoriť", bc = "Editovať", wc = "Detail", kc = "Hľadať", Cc = "Zrušiť filter", _c = "More filters", Dc = "Zrušiť", Ac = "ID", Mc = "Teraz", xc = "Potvrď", Tc = "Copy ID", Sc = "Pridať", $c = "Download", Oc = "Upload", Pc = {
|
|
10696
10705
|
create: pc,
|
|
10697
10706
|
createAndClose: hc,
|
|
10698
10707
|
save: gc,
|
|
@@ -10712,7 +10721,7 @@ const Gh = (t, n) => {
|
|
|
10712
10721
|
add: Sc,
|
|
10713
10722
|
download: $c,
|
|
10714
10723
|
Upload: Oc
|
|
10715
|
-
},
|
|
10724
|
+
}, Ic = "System", Vc = "Nevybrané", Fc = {
|
|
10716
10725
|
true: "áno",
|
|
10717
10726
|
false: "nie"
|
|
10718
10727
|
}, Ec = {
|
|
@@ -10725,9 +10734,9 @@ const Gh = (t, n) => {
|
|
|
10725
10734
|
contains: "Kdekoľvek vo výraze",
|
|
10726
10735
|
startsWith: "Začiatok výrazu"
|
|
10727
10736
|
}, Lc = {
|
|
10728
|
-
system:
|
|
10729
|
-
notSelected:
|
|
10730
|
-
boolean:
|
|
10737
|
+
system: Ic,
|
|
10738
|
+
notSelected: Vc,
|
|
10739
|
+
boolean: Fc,
|
|
10731
10740
|
tracking: Ec,
|
|
10732
10741
|
filterPlaceholder: Nc
|
|
10733
10742
|
}, Bc = "version", jc = "New version of admin is available. For proper functioning, latest version is required.", Rc = "Reload new version", zc = {
|
|
@@ -10954,17 +10963,17 @@ const Gh = (t, n) => {
|
|
|
10954
10963
|
}
|
|
10955
10964
|
}, Of = {
|
|
10956
10965
|
moreEvents: "{0} more"
|
|
10957
|
-
},
|
|
10966
|
+
}, Pf = {
|
|
10958
10967
|
clear: "Clear {0}",
|
|
10959
10968
|
prependAction: "{0} prepended action",
|
|
10960
10969
|
appendAction: "{0} appended action"
|
|
10961
|
-
},
|
|
10970
|
+
}, If = {
|
|
10962
10971
|
counter: "{0} files",
|
|
10963
10972
|
counterSize: "{0} files ({1} in total)"
|
|
10964
|
-
},
|
|
10973
|
+
}, Vf = {
|
|
10965
10974
|
am: "AM",
|
|
10966
10975
|
pm: "PM"
|
|
10967
|
-
},
|
|
10976
|
+
}, Ff = {
|
|
10968
10977
|
ariaLabel: {
|
|
10969
10978
|
root: "Navigácia stránkovania",
|
|
10970
10979
|
next: "Ďalšia stránka",
|
|
@@ -10988,10 +10997,10 @@ const Gh = (t, n) => {
|
|
|
10988
10997
|
noDataText: Sf,
|
|
10989
10998
|
carousel: $f,
|
|
10990
10999
|
calendar: Of,
|
|
10991
|
-
input:
|
|
10992
|
-
fileInput:
|
|
10993
|
-
timePicker:
|
|
10994
|
-
pagination:
|
|
11000
|
+
input: Pf,
|
|
11001
|
+
fileInput: If,
|
|
11002
|
+
timePicker: Vf,
|
|
11003
|
+
pagination: Ff,
|
|
10995
11004
|
rating: Ef
|
|
10996
11005
|
}, Lf = "Invalid", Bf = "todo trans error_id_mismatch", jf = "todo trans error_field_empty", Rf = "todo trans error_field_length_min", zf = "todo trans error_field_length_max", Uf = "todo trans error_field_invalid", Yf = "todo trans error_field_not_unique", Hf = "todo trans error_field_value_not_found", Jf = "todo trans error_field_range_min", Wf = "todo trans error_field_range_max", qf = "todo trans error_field_regex", Gf = "todo trans error_field_url", Kf = "todo trans error_already_exists", Zf = {
|
|
10997
11006
|
noTranslation: Lf,
|
|
@@ -11021,10 +11030,10 @@ const Gh = (t, n) => {
|
|
|
11021
11030
|
numeric: sm,
|
|
11022
11031
|
slug: um,
|
|
11023
11032
|
stringArrayItemLength: dm
|
|
11024
|
-
},
|
|
11033
|
+
}, tg = {
|
|
11025
11034
|
common: {
|
|
11026
11035
|
alert: mc,
|
|
11027
|
-
button:
|
|
11036
|
+
button: Pc,
|
|
11028
11037
|
model: Lc,
|
|
11029
11038
|
system: Zc,
|
|
11030
11039
|
anzuUser: nf,
|
|
@@ -11095,7 +11104,7 @@ function Am() {
|
|
|
11095
11104
|
}
|
|
11096
11105
|
const { t: Mm } = le.global;
|
|
11097
11106
|
function xm() {
|
|
11098
|
-
return Ke({ t: Mm })(
|
|
11107
|
+
return Ke({ t: Mm })(Po, {
|
|
11099
11108
|
messagePath: () => "error.jsValidation.required"
|
|
11100
11109
|
});
|
|
11101
11110
|
}
|
|
@@ -11125,13 +11134,13 @@ function Om() {
|
|
|
11125
11134
|
messagePath: () => "error.jsValidation.stringArrayItemLength"
|
|
11126
11135
|
});
|
|
11127
11136
|
}
|
|
11128
|
-
const { t:
|
|
11129
|
-
function
|
|
11130
|
-
return Ke({ t:
|
|
11137
|
+
const { t: Pm } = le.global;
|
|
11138
|
+
function Im() {
|
|
11139
|
+
return Ke({ t: Pm })(Io, {
|
|
11131
11140
|
messagePath: () => "error.jsValidation.url"
|
|
11132
11141
|
});
|
|
11133
11142
|
}
|
|
11134
|
-
function
|
|
11143
|
+
function ng() {
|
|
11135
11144
|
return {
|
|
11136
11145
|
required: xm(),
|
|
11137
11146
|
requiredIf: Zr(),
|
|
@@ -11143,24 +11152,24 @@ function tg() {
|
|
|
11143
11152
|
email: hm(),
|
|
11144
11153
|
numeric: Am(),
|
|
11145
11154
|
slug: Sm(),
|
|
11146
|
-
url:
|
|
11155
|
+
url: Im(),
|
|
11147
11156
|
stringArrayItemLength: Om()
|
|
11148
11157
|
};
|
|
11149
11158
|
}
|
|
11150
|
-
const
|
|
11159
|
+
const Vm = ["createdAt", "modifiedAt"], { t: gr } = le.global || le, Fm = {
|
|
11151
11160
|
key: "",
|
|
11152
11161
|
title: void 0,
|
|
11153
11162
|
sortable: !1,
|
|
11154
11163
|
fixed: !1
|
|
11155
11164
|
};
|
|
11156
|
-
function
|
|
11165
|
+
function ag(t, n, e = void 0, a = void 0, r = !1, o = void 0) {
|
|
11157
11166
|
const s = Gn();
|
|
11158
11167
|
if (o)
|
|
11159
11168
|
for (const m of Object.keys(s))
|
|
11160
11169
|
m in o && (s[m] = o[m]);
|
|
11161
11170
|
const c = t.map((m) => {
|
|
11162
|
-
const d = { ...
|
|
11163
|
-
return S(d.title) && (S(d.title) &&
|
|
11171
|
+
const d = { ...Fm, ...m };
|
|
11172
|
+
return S(d.title) && (S(d.title) && Vm.includes(d.key) ? d.title = gr("common.model.tracking." + d.key) : S(d.title) && e && a ? d.title = gr(e + "." + a + ".model." + d.key) : d.title = ""), d;
|
|
11164
11173
|
}), u = T(() => {
|
|
11165
11174
|
const m = [];
|
|
11166
11175
|
return c.forEach((d) => {
|
|
@@ -11181,7 +11190,7 @@ function ng(t, n, e = void 0, a = void 0, r = !1, o = void 0) {
|
|
|
11181
11190
|
pagination: s
|
|
11182
11191
|
};
|
|
11183
11192
|
}
|
|
11184
|
-
const
|
|
11193
|
+
const rg = () => ({
|
|
11185
11194
|
commonAliases: () => ({
|
|
11186
11195
|
ABtnPrimary: $n,
|
|
11187
11196
|
ABtnSecondary: $n,
|
|
@@ -11288,40 +11297,40 @@ const ag = () => ({
|
|
|
11288
11297
|
}
|
|
11289
11298
|
})
|
|
11290
11299
|
});
|
|
11291
|
-
function
|
|
11292
|
-
const r = J(/* @__PURE__ */ new Map()), o = J(/* @__PURE__ */ new Set()), s = (...
|
|
11293
|
-
const
|
|
11294
|
-
for (let z = 0; z <
|
|
11295
|
-
const U =
|
|
11296
|
-
if (!(
|
|
11300
|
+
function og(t, n, e, a = "id") {
|
|
11301
|
+
const r = J(/* @__PURE__ */ new Map()), o = J(/* @__PURE__ */ new Set()), s = (...P) => {
|
|
11302
|
+
const F = J(/* @__PURE__ */ new Set());
|
|
11303
|
+
for (let z = 0; z < P.length; z++) {
|
|
11304
|
+
const U = P[z];
|
|
11305
|
+
if (!(ve(U) || S(U))) {
|
|
11297
11306
|
if (Oe(U)) {
|
|
11298
11307
|
for (let ne = 0; ne < U.length; ne++) {
|
|
11299
11308
|
const ee = U[ne];
|
|
11300
|
-
|
|
11309
|
+
ve(ee) || S(ee) || r.value.has(ee) || F.value.add(ee);
|
|
11301
11310
|
}
|
|
11302
11311
|
continue;
|
|
11303
11312
|
}
|
|
11304
|
-
r.value.has(U) ||
|
|
11313
|
+
r.value.has(U) || F.value.add(U);
|
|
11305
11314
|
}
|
|
11306
11315
|
}
|
|
11307
|
-
|
|
11316
|
+
F.value.forEach((z) => {
|
|
11308
11317
|
r.value.set(z, { ...n(z), _loaded: !1 }), o.value.add(z);
|
|
11309
11318
|
});
|
|
11310
|
-
}, c = (
|
|
11311
|
-
|
|
11312
|
-
}, u = (
|
|
11313
|
-
|
|
11314
|
-
}, p = (
|
|
11315
|
-
for (let
|
|
11316
|
-
r.value.set(
|
|
11317
|
-
}, m = (
|
|
11318
|
-
for (let
|
|
11319
|
-
o.value.delete(
|
|
11319
|
+
}, c = (P) => {
|
|
11320
|
+
P[a] && r.value.set(P[a], { ...t(P), _loaded: !0 });
|
|
11321
|
+
}, u = (P) => {
|
|
11322
|
+
P[a] && r.value.set(P[a], { ...P, _loaded: !0 });
|
|
11323
|
+
}, p = (P) => {
|
|
11324
|
+
for (let F = 0; F < P.length; F += 1)
|
|
11325
|
+
r.value.set(P[F][a], { ...t(P[F]), _loaded: !0 });
|
|
11326
|
+
}, m = (P) => {
|
|
11327
|
+
for (let F = 0; F < P.length; F += 1)
|
|
11328
|
+
o.value.delete(P[F]);
|
|
11320
11329
|
};
|
|
11321
11330
|
async function d() {
|
|
11322
11331
|
if (o.value.size > 0) {
|
|
11323
|
-
const
|
|
11324
|
-
m(
|
|
11332
|
+
const P = Array.from(o.value), F = await e(P);
|
|
11333
|
+
m(P), p(F);
|
|
11325
11334
|
}
|
|
11326
11335
|
}
|
|
11327
11336
|
const g = ko(
|
|
@@ -11340,20 +11349,20 @@ function rg(t, n, e, a = "id") {
|
|
|
11340
11349
|
add: s,
|
|
11341
11350
|
addManual: c,
|
|
11342
11351
|
addManualMinimal: u,
|
|
11343
|
-
has: (
|
|
11344
|
-
get: (
|
|
11345
|
-
if (
|
|
11346
|
-
return r.value.get(
|
|
11352
|
+
has: (P) => P ? r.value.has(P) : !1,
|
|
11353
|
+
get: (P) => {
|
|
11354
|
+
if (P)
|
|
11355
|
+
return r.value.get(P);
|
|
11347
11356
|
},
|
|
11348
|
-
isLoaded: (
|
|
11349
|
-
if (!
|
|
11357
|
+
isLoaded: (P) => {
|
|
11358
|
+
if (!P)
|
|
11350
11359
|
return !1;
|
|
11351
|
-
const
|
|
11352
|
-
return
|
|
11360
|
+
const F = r.value.get(P);
|
|
11361
|
+
return F ? F._loaded : !1;
|
|
11353
11362
|
}
|
|
11354
11363
|
};
|
|
11355
11364
|
}
|
|
11356
|
-
async function
|
|
11365
|
+
async function ig() {
|
|
11357
11366
|
(await import("./webfontloader-e9985fe5.js").then((n) => n.w)).load({
|
|
11358
11367
|
google: {
|
|
11359
11368
|
families: ["Roboto:100,300,400,500,700,900&display=swap"]
|
|
@@ -11362,77 +11371,77 @@ async function og() {
|
|
|
11362
11371
|
});
|
|
11363
11372
|
}
|
|
11364
11373
|
export {
|
|
11365
|
-
|
|
11366
|
-
|
|
11367
|
-
|
|
11368
|
-
|
|
11369
|
-
|
|
11370
|
-
|
|
11371
|
-
|
|
11374
|
+
wh as AActionCloseButton,
|
|
11375
|
+
kh as AActionCreateButton,
|
|
11376
|
+
Ch as AActionDeleteButton,
|
|
11377
|
+
_h as AActionEditButton,
|
|
11378
|
+
Dh as AActionSaveAndCloseButton,
|
|
11379
|
+
Ah as AActionSaveButton,
|
|
11380
|
+
Lp as AAdminSwitcher,
|
|
11372
11381
|
vp as AAlerts,
|
|
11373
11382
|
hr as AAnzuUserAvatar,
|
|
11374
|
-
|
|
11383
|
+
Ph as AAvatarColorPicker,
|
|
11375
11384
|
gp as ABooleanValue,
|
|
11376
|
-
|
|
11385
|
+
hh as ACachedChip,
|
|
11377
11386
|
yp as ACard,
|
|
11378
11387
|
Jo as ACardLoader,
|
|
11379
|
-
|
|
11380
|
-
|
|
11381
|
-
|
|
11388
|
+
yh as AChipNoLink,
|
|
11389
|
+
vh as ACopyText,
|
|
11390
|
+
Np as ACreateDialog,
|
|
11382
11391
|
Ih as ACurrentUserDropdown,
|
|
11383
|
-
|
|
11392
|
+
Pp as ADatatableConfigButton,
|
|
11384
11393
|
Ip as ADatatableOrdering,
|
|
11385
|
-
|
|
11394
|
+
Op as ADatatablePagination,
|
|
11386
11395
|
lr as ADatetime,
|
|
11387
11396
|
$r as ADialogToolbar,
|
|
11388
|
-
|
|
11397
|
+
Bp as AEmptyRouterView,
|
|
11389
11398
|
nl as AFilterAdvancedButton,
|
|
11390
|
-
|
|
11391
|
-
|
|
11392
|
-
|
|
11393
|
-
|
|
11394
|
-
|
|
11399
|
+
fh as AFilterBooleanGroup,
|
|
11400
|
+
mh as AFilterBooleanSelect,
|
|
11401
|
+
rh as AFilterDatetimePicker,
|
|
11402
|
+
Gp as AFilterInteger,
|
|
11403
|
+
ch as AFilterRemoteAutocomplete,
|
|
11395
11404
|
rl as AFilterResetButton,
|
|
11396
|
-
|
|
11405
|
+
qp as AFilterString,
|
|
11397
11406
|
al as AFilterSubmitButton,
|
|
11398
|
-
|
|
11399
|
-
|
|
11400
|
-
|
|
11401
|
-
|
|
11402
|
-
|
|
11407
|
+
dh as AFilterValueObjectOptionsSelect,
|
|
11408
|
+
Kp as AFilterWrapper,
|
|
11409
|
+
Sp as AFormBooleanToggle,
|
|
11410
|
+
ah as AFormDatetimePicker,
|
|
11411
|
+
ih as AFormRemoteAutocomplete,
|
|
11403
11412
|
Vh as AFormRemoteAutocompleteWithCached,
|
|
11404
|
-
|
|
11405
|
-
|
|
11406
|
-
|
|
11407
|
-
|
|
11408
|
-
|
|
11413
|
+
lh as AFormRemoteCheckbox,
|
|
11414
|
+
sh as AFormRemoteSwitch,
|
|
11415
|
+
xp as AFormTextField,
|
|
11416
|
+
Tp as AFormTextarea,
|
|
11417
|
+
uh as AFormValueObjectOptionsSelect,
|
|
11409
11418
|
eo as AIconGroup,
|
|
11410
|
-
|
|
11411
|
-
|
|
11419
|
+
ph as AJobStatusChip,
|
|
11420
|
+
$h as ALanguageSelect,
|
|
11412
11421
|
Vp as ALogData,
|
|
11413
|
-
|
|
11422
|
+
gh as ALogLevelChip,
|
|
11414
11423
|
Fh as ALoginView,
|
|
11415
|
-
|
|
11416
|
-
|
|
11417
|
-
|
|
11418
|
-
|
|
11424
|
+
Eh as ALogoutView,
|
|
11425
|
+
Lh as ANotFoundView,
|
|
11426
|
+
Zp as APermissionGrantEditor,
|
|
11427
|
+
Qp as APermissionValueChip,
|
|
11419
11428
|
Ln as ARow,
|
|
11420
|
-
|
|
11421
|
-
|
|
11422
|
-
|
|
11423
|
-
|
|
11424
|
-
|
|
11425
|
-
|
|
11426
|
-
|
|
11427
|
-
|
|
11428
|
-
|
|
11429
|
+
Oh as ASystemBar,
|
|
11430
|
+
$p as ASystemEntityScope,
|
|
11431
|
+
Mh as ATableCopyIdButton,
|
|
11432
|
+
xh as ATableDetailButton,
|
|
11433
|
+
Th as ATableEditButton,
|
|
11434
|
+
Sh as AThemeSelect,
|
|
11435
|
+
Jp as ATimeTrackingFields,
|
|
11436
|
+
Nh as AUnauthorizedView,
|
|
11437
|
+
bh as AUserAndTimeTrackingFields,
|
|
11429
11438
|
dl as Acl,
|
|
11430
11439
|
ft as AnzuApiForbiddenError,
|
|
11431
11440
|
ht as AnzuApiForbiddenOperationError,
|
|
11432
11441
|
pt as AnzuApiResponseCodeError,
|
|
11433
11442
|
mt as AnzuApiValidationError,
|
|
11434
|
-
|
|
11435
|
-
|
|
11443
|
+
Ve as AnzuFatalError,
|
|
11444
|
+
nh as AnzuSystemsCommonAdmin,
|
|
11436
11445
|
Hr as AvailableLanguagesSymbol,
|
|
11437
11446
|
mr as COMMON_CONFIG,
|
|
11438
11447
|
Br as DATETIME_MAX,
|
|
@@ -11442,11 +11451,11 @@ export {
|
|
|
11442
11451
|
Rr as GrantOrigin,
|
|
11443
11452
|
Fp as HTTP_STATUS_BAD_REQUEST,
|
|
11444
11453
|
Oi as HTTP_STATUS_CREATED,
|
|
11445
|
-
|
|
11446
|
-
|
|
11454
|
+
Ii as HTTP_STATUS_FORBIDDEN,
|
|
11455
|
+
Pi as HTTP_STATUS_NO_CONTENT,
|
|
11447
11456
|
$i as HTTP_STATUS_OK,
|
|
11448
|
-
|
|
11449
|
-
|
|
11457
|
+
Ep as HTTP_STATUS_UNAUTHORIZED,
|
|
11458
|
+
Ir as HTTP_STATUS_UNPROCESSABLE_ENTITY,
|
|
11450
11459
|
El as JobStatus,
|
|
11451
11460
|
jl as LogLevel,
|
|
11452
11461
|
ji as NEW_LINE_MARK,
|
|
@@ -11454,41 +11463,41 @@ export {
|
|
|
11454
11463
|
at as SubjectScopeSymbol,
|
|
11455
11464
|
nt as SystemScopeSymbol,
|
|
11456
11465
|
ql as Theme,
|
|
11457
|
-
|
|
11466
|
+
Yh as apiAnyRequest,
|
|
11458
11467
|
Us as apiCreateOne,
|
|
11459
11468
|
Ys as apiDeleteOne,
|
|
11460
|
-
|
|
11469
|
+
Hh as apiFetchByIds,
|
|
11461
11470
|
Gs as apiFetchList,
|
|
11462
11471
|
Ks as apiFetchOne,
|
|
11463
|
-
|
|
11472
|
+
Jh as apiUpdateOne,
|
|
11464
11473
|
Zs as arrayFlatten,
|
|
11465
|
-
|
|
11466
|
-
|
|
11467
|
-
|
|
11474
|
+
Qh as arrayFromArgs,
|
|
11475
|
+
Kh as arrayItemToggle,
|
|
11476
|
+
Zh as arrayToString,
|
|
11468
11477
|
Mt as axiosErrorResponseHasForbiddenOperationData,
|
|
11469
11478
|
At as axiosErrorResponseHasValidationData,
|
|
11470
11479
|
Dt as axiosErrorResponseIsForbidden,
|
|
11471
|
-
|
|
11472
|
-
|
|
11480
|
+
Bh as booleanToInteger,
|
|
11481
|
+
Xh as browserHistoryReplaceUrlByRouter,
|
|
11473
11482
|
Qs as browserHistoryReplaceUrlByString,
|
|
11474
11483
|
ct as cloneDeep,
|
|
11475
|
-
|
|
11476
|
-
|
|
11484
|
+
ag as createDatatableColumnsConfig,
|
|
11485
|
+
Up as dateModifyMinutes,
|
|
11477
11486
|
Ki as dateNow,
|
|
11478
|
-
|
|
11479
|
-
|
|
11487
|
+
zp as dateTimeEndOfDay,
|
|
11488
|
+
Hp as dateTimeFriendly,
|
|
11480
11489
|
Rn as dateTimeNow,
|
|
11481
11490
|
ma as dateTimePretty,
|
|
11482
|
-
|
|
11491
|
+
Rp as dateTimeStartOfDay,
|
|
11483
11492
|
Zi as dateToUtc,
|
|
11484
|
-
|
|
11493
|
+
og as defineCached,
|
|
11485
11494
|
lt as eventClickBlur,
|
|
11486
11495
|
le as i18n,
|
|
11487
|
-
|
|
11496
|
+
Vr as isAnzuApiForbiddenError,
|
|
11488
11497
|
Li as isAnzuApiForbiddenOperationError,
|
|
11489
11498
|
Er as isAnzuApiResponseCodeError,
|
|
11490
|
-
|
|
11491
|
-
|
|
11499
|
+
Fr as isAnzuApiValidationError,
|
|
11500
|
+
Pr as isAnzuFatalError,
|
|
11492
11501
|
Oe as isArray,
|
|
11493
11502
|
ar as isBoolean,
|
|
11494
11503
|
sl as isCreatedByAware,
|
|
@@ -11498,26 +11507,26 @@ export {
|
|
|
11498
11507
|
Wo as isEmptyArray,
|
|
11499
11508
|
Sr as isEmptyObject,
|
|
11500
11509
|
wp as isInt,
|
|
11501
|
-
|
|
11510
|
+
ve as isNull,
|
|
11502
11511
|
Aa as isNumber,
|
|
11503
11512
|
Wn as isObject,
|
|
11504
11513
|
ll as isOwnerAware,
|
|
11505
11514
|
ut as isString,
|
|
11506
11515
|
S as isUndefined,
|
|
11507
11516
|
xt as isValidHTTPStatus,
|
|
11508
|
-
|
|
11509
|
-
|
|
11510
|
-
|
|
11511
|
-
|
|
11517
|
+
ig as loadCommonFonts,
|
|
11518
|
+
Wp as makeFilterHelper,
|
|
11519
|
+
eg as messagesEn,
|
|
11520
|
+
tg as messagesSk,
|
|
11512
11521
|
es as modifyLanguageSettings,
|
|
11513
11522
|
Xr as numberToString,
|
|
11514
11523
|
zr as objectDeepFreeze,
|
|
11515
|
-
|
|
11524
|
+
th as objectDeletePropertyByPath,
|
|
11516
11525
|
Ur as objectGetValueByPath,
|
|
11517
|
-
|
|
11518
|
-
|
|
11519
|
-
|
|
11520
|
-
|
|
11526
|
+
Xp as objectGetValues,
|
|
11527
|
+
eh as objectSetValueByPath,
|
|
11528
|
+
Uh as prettyBytes,
|
|
11529
|
+
Mp as stringNormalizeForSlotName,
|
|
11521
11530
|
it as stringSplitOnFirstOccurrence,
|
|
11522
11531
|
Cp as stringToFloat,
|
|
11523
11532
|
qo as stringToInt,
|
|
@@ -11525,28 +11534,29 @@ export {
|
|
|
11525
11534
|
_p as stringToSlug,
|
|
11526
11535
|
Dp as stringTrimLength,
|
|
11527
11536
|
Ko as stringUrlTemplateReplace,
|
|
11528
|
-
|
|
11537
|
+
Ap as stringUrlTemplateReplaceVueRouter,
|
|
11538
|
+
jp as timestampCurrent,
|
|
11529
11539
|
ul as useAcl,
|
|
11530
11540
|
xa as useAlerts,
|
|
11531
|
-
|
|
11541
|
+
jh as useAnzuUserFactory,
|
|
11532
11542
|
ao as useApiQueryBuilder,
|
|
11533
|
-
|
|
11534
|
-
|
|
11543
|
+
rg as useCommonVuetifyConfig,
|
|
11544
|
+
Wh as useErrors,
|
|
11535
11545
|
Sa as useFilterHelpers,
|
|
11536
11546
|
jr as useGrant,
|
|
11537
11547
|
ol as useGrantOrigin,
|
|
11538
|
-
|
|
11539
|
-
|
|
11540
|
-
|
|
11548
|
+
ug as useI18n,
|
|
11549
|
+
qh as useJobApi,
|
|
11550
|
+
Gh as useJobResource,
|
|
11541
11551
|
Nl as useJobStatus,
|
|
11542
11552
|
ts as useLanguageSettings,
|
|
11543
11553
|
Rl as useLogLevel,
|
|
11544
11554
|
Gn as usePagination,
|
|
11545
|
-
|
|
11546
|
-
|
|
11547
|
-
|
|
11555
|
+
oh as usePaginationAutoHide,
|
|
11556
|
+
Rh as usePermissionConfigFactory,
|
|
11557
|
+
zh as usePermissionGroupFactory,
|
|
11548
11558
|
Kl as useTheme,
|
|
11549
|
-
|
|
11550
|
-
|
|
11559
|
+
ng as useValidate,
|
|
11560
|
+
Yp as yearNow
|
|
11551
11561
|
};
|
|
11552
11562
|
//# sourceMappingURL=common-admin.es.js.map
|