@anzusystems/common-admin 0.0.43 → 0.0.44
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 +44 -38
- package/dist/common-admin.es.js +336 -338
- 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,7 +1,7 @@
|
|
|
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 Pe, 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
6
|
import { useI18n as sg } from "vue-i18n";
|
|
7
7
|
import { VChip as dt } from "vuetify/lib/components/VChip/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 Io, helpers as Tr, url 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 Io, helpers as Tr, url as Po } 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";
|
|
@@ -430,18 +430,18 @@ const yp = /* @__PURE__ */ L({
|
|
|
430
430
|
get() {
|
|
431
431
|
return e.modelValue;
|
|
432
432
|
},
|
|
433
|
-
set(
|
|
434
|
-
n("update:modelValue", ct(
|
|
433
|
+
set(F) {
|
|
434
|
+
n("update:modelValue", ct(F));
|
|
435
435
|
}
|
|
436
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(() => !ye(a.value.hasNextPage) || a.value.page === o.value), m = T(() => ye(a.value.hasNextPage) && a.value.page === o.value || a.value.hasNextPage === !1), d = T(() => ye(a.value.hasNextPage) ? a.value.totalCount : a.value.hasNextPage ? c.value + 1 + "+" : c.value), g = T(() => a.value.rowsPerPage);
|
|
437
|
-
|
|
438
|
-
|
|
437
|
+
Pe(g, (F, z) => {
|
|
438
|
+
F !== z && (a.value.page = 1, n("change"));
|
|
439
439
|
});
|
|
440
440
|
const b = T(() => a.value.page);
|
|
441
|
-
|
|
442
|
-
|
|
441
|
+
Pe(b, (F, z) => {
|
|
442
|
+
F !== z && n("change");
|
|
443
443
|
});
|
|
444
|
-
const
|
|
444
|
+
const V = () => {
|
|
445
445
|
a.value.page = 1;
|
|
446
446
|
}, v = () => {
|
|
447
447
|
a.value.page = o.value;
|
|
@@ -450,7 +450,7 @@ const yp = /* @__PURE__ */ L({
|
|
|
450
450
|
}, I = () => {
|
|
451
451
|
a.value.page = a.value.page + 1;
|
|
452
452
|
};
|
|
453
|
-
return (
|
|
453
|
+
return (F, z) => (k(), H("div", ei, [
|
|
454
454
|
t.hideRecordsPerPage ? Z("", !0) : (k(), H("div", ti, [
|
|
455
455
|
B($(f(r)("common.system.datatable.itemsPerPage")) + ": ", 1),
|
|
456
456
|
w(Jn, {
|
|
@@ -486,7 +486,7 @@ const yp = /* @__PURE__ */ L({
|
|
|
486
486
|
icon: "mdi-page-first",
|
|
487
487
|
size: "small",
|
|
488
488
|
variant: "text",
|
|
489
|
-
onClick: re(
|
|
489
|
+
onClick: re(V, ["stop"])
|
|
490
490
|
}, null, 8, ["disabled", "onClick"]),
|
|
491
491
|
w(ie, {
|
|
492
492
|
disabled: f(u),
|
|
@@ -638,16 +638,16 @@ const Op = /* @__PURE__ */ L({
|
|
|
638
638
|
}), p = T(() => e.customOptions ? e.customOptions : e.variant === "most-relevant" ? c : s), m = (d) => {
|
|
639
639
|
o.value = d.id;
|
|
640
640
|
};
|
|
641
|
-
return
|
|
641
|
+
return Pe(
|
|
642
642
|
r,
|
|
643
643
|
(d, g) => {
|
|
644
644
|
if (S(g) || d === g)
|
|
645
645
|
return;
|
|
646
|
-
const b = p.value.find((
|
|
646
|
+
const b = p.value.find((V) => V.id === d);
|
|
647
647
|
b && n("sortByChange", b);
|
|
648
648
|
},
|
|
649
649
|
{ immediate: !0 }
|
|
650
|
-
),
|
|
650
|
+
), Pe(
|
|
651
651
|
o,
|
|
652
652
|
(d, g) => {
|
|
653
653
|
S(g) || d === g || (r.value = d);
|
|
@@ -676,7 +676,7 @@ const Op = /* @__PURE__ */ L({
|
|
|
676
676
|
default: y(() => [
|
|
677
677
|
(k(!0), H(Ue, null, Ct(f(p), (b) => (k(), E(Qe, {
|
|
678
678
|
key: b.id,
|
|
679
|
-
onClick: (
|
|
679
|
+
onClick: (V) => m(b)
|
|
680
680
|
}, {
|
|
681
681
|
default: y(() => [
|
|
682
682
|
w(Xt, {
|
|
@@ -732,14 +732,14 @@ const Op = /* @__PURE__ */ L({
|
|
|
732
732
|
_: 3
|
|
733
733
|
}));
|
|
734
734
|
}
|
|
735
|
-
}),
|
|
735
|
+
}), Pp = /* @__PURE__ */ L({
|
|
736
736
|
__name: "ALogData",
|
|
737
737
|
props: {
|
|
738
738
|
data: null
|
|
739
739
|
},
|
|
740
740
|
setup(t) {
|
|
741
741
|
const n = t, e = T(() => n.data);
|
|
742
|
-
return
|
|
742
|
+
return Pe(
|
|
743
743
|
e,
|
|
744
744
|
(a) => {
|
|
745
745
|
console.log(a);
|
|
@@ -1169,25 +1169,25 @@ const ir = ["en", "sk"], le = ho({
|
|
|
1169
1169
|
missing: (t, n) => {
|
|
1170
1170
|
ir.includes(t) && console.warn(`Missing ${t} translation: ${n}`);
|
|
1171
1171
|
}
|
|
1172
|
-
}), Ir = (t) => t instanceof
|
|
1173
|
-
class
|
|
1172
|
+
}), Ir = (t) => t instanceof Ve;
|
|
1173
|
+
class Ve extends Error {
|
|
1174
1174
|
constructor(n, e = "") {
|
|
1175
1175
|
super(e), this.name = "AnzuFatalError", this.cause = n, this.message = e;
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
|
-
const $i = 200, Oi = 201, Ii = 204,
|
|
1178
|
+
const $i = 200, Oi = 201, Ii = 204, Vp = 400, Fp = 401, Pi = 403, Pr = 422, Vi = [$i, Oi, Ii], Dt = (t) => {
|
|
1179
1179
|
var n;
|
|
1180
|
-
return Ca.isAxiosError(t) && ((n = t.response) == null ? void 0 : n.status) ===
|
|
1181
|
-
},
|
|
1180
|
+
return Ca.isAxiosError(t) && ((n = t.response) == null ? void 0 : n.status) === Pi;
|
|
1181
|
+
}, Vr = (t) => t instanceof ft;
|
|
1182
1182
|
class ft extends Error {
|
|
1183
1183
|
constructor(n, e = "") {
|
|
1184
1184
|
super(e), this.name = "AnzuApiForbiddenError", this.cause = n, this.message = e;
|
|
1185
1185
|
}
|
|
1186
1186
|
}
|
|
1187
|
-
const
|
|
1187
|
+
const Fi = "validation_failed", At = (t) => {
|
|
1188
1188
|
var n, e, a;
|
|
1189
|
-
return Ca.isAxiosError(t) && ((n = t.response) == null ? void 0 : n.status) ===
|
|
1190
|
-
},
|
|
1189
|
+
return Ca.isAxiosError(t) && ((n = t.response) == null ? void 0 : n.status) === Pr && ((e = t.response.data) == null ? void 0 : e.error) === Fi && ((a = t.response.data) == null ? void 0 : a.fields);
|
|
1190
|
+
}, Fr = (t) => t instanceof mt;
|
|
1191
1191
|
function Ei(t, n, e) {
|
|
1192
1192
|
var o;
|
|
1193
1193
|
const a = (o = t.response) == null ? void 0 : o.data, r = [];
|
|
@@ -1215,7 +1215,7 @@ class pt extends Error {
|
|
|
1215
1215
|
}
|
|
1216
1216
|
const Ni = "forbidden_operation_error", Mt = (t) => {
|
|
1217
1217
|
var n, e, a;
|
|
1218
|
-
return Ca.isAxiosError(t) && ((n = t.response) == null ? void 0 : n.status) ===
|
|
1218
|
+
return Ca.isAxiosError(t) && ((n = t.response) == null ? void 0 : n.status) === Pr && ((e = t.response.data) == null ? void 0 : e.error) === Ni && ((a = t.response.data) == null ? void 0 : a.detail);
|
|
1219
1219
|
}, Li = (t) => t instanceof ht;
|
|
1220
1220
|
function Bi(t) {
|
|
1221
1221
|
var e;
|
|
@@ -1288,17 +1288,17 @@ function xa() {
|
|
|
1288
1288
|
type: "success"
|
|
1289
1289
|
});
|
|
1290
1290
|
}, m = (v, O = -1, I = !1) => {
|
|
1291
|
-
const { t:
|
|
1291
|
+
const { t: F, te: z } = le.global, U = [F("common.alert.fixApiValidationErrors")];
|
|
1292
1292
|
for (let ne = 0; ne < v.length; ne++) {
|
|
1293
1293
|
let ee = "";
|
|
1294
|
-
I ? ee += v[ne].field : z(v[ne].field) && (ee +=
|
|
1294
|
+
I ? ee += v[ne].field : z(v[ne].field) && (ee += F(v[ne].field));
|
|
1295
1295
|
const ue = /* @__PURE__ */ new Set();
|
|
1296
1296
|
for (let me = 0; me < v[ne].errors.length; me++) {
|
|
1297
1297
|
if (z("error.apiValidation." + v[ne].errors[me])) {
|
|
1298
|
-
ue.add(
|
|
1298
|
+
ue.add(F("error.apiValidation." + v[ne].errors[me]));
|
|
1299
1299
|
continue;
|
|
1300
1300
|
}
|
|
1301
|
-
ue.add(
|
|
1301
|
+
ue.add(F("error.apiValidation.noTranslation"));
|
|
1302
1302
|
}
|
|
1303
1303
|
ee.length > 0 && U.push(ee + ": " + Array.from(ue).join(", "));
|
|
1304
1304
|
}
|
|
@@ -1309,9 +1309,9 @@ function xa() {
|
|
|
1309
1309
|
type: "error"
|
|
1310
1310
|
});
|
|
1311
1311
|
}, d = (v, O = -1) => {
|
|
1312
|
-
const { t: I, te:
|
|
1312
|
+
const { t: I, te: F } = le.global;
|
|
1313
1313
|
let z = I("error.apiForbiddenOperation.noTranslation");
|
|
1314
|
-
|
|
1314
|
+
F("error.apiForbiddenOperation." + v) && (z = I("error.apiForbiddenOperation." + v)), qe({
|
|
1315
1315
|
group: "alerts",
|
|
1316
1316
|
text: z,
|
|
1317
1317
|
duration: O * 1e3,
|
|
@@ -1349,7 +1349,7 @@ function xa() {
|
|
|
1349
1349
|
showApiForbiddenOperationError: d,
|
|
1350
1350
|
showUnknownError: g,
|
|
1351
1351
|
showForbiddenError: b,
|
|
1352
|
-
showErrorsDefault: (v) =>
|
|
1352
|
+
showErrorsDefault: (v) => Vr(v) ? (b(), !0) : Fr(v) ? (m(v.fields), !0) : Li(v) ? (d(v.detail), !0) : Ir(v) || Er(v) ? (g(), !0) : !1
|
|
1353
1353
|
};
|
|
1354
1354
|
}
|
|
1355
1355
|
const Ep = /* @__PURE__ */ L({
|
|
@@ -1391,7 +1391,7 @@ const Ep = /* @__PURE__ */ L({
|
|
|
1391
1391
|
}
|
|
1392
1392
|
};
|
|
1393
1393
|
return (g, b) => {
|
|
1394
|
-
const
|
|
1394
|
+
const V = Et("ABtnTertiary"), v = Et("ABtnPrimary");
|
|
1395
1395
|
return k(), E(v, {
|
|
1396
1396
|
class: ke(t.buttonClass),
|
|
1397
1397
|
rounded: "pill",
|
|
@@ -1431,7 +1431,7 @@ const Ep = /* @__PURE__ */ L({
|
|
|
1431
1431
|
w(wa, null, {
|
|
1432
1432
|
default: y(() => [
|
|
1433
1433
|
w(Qt),
|
|
1434
|
-
w(
|
|
1434
|
+
w(V, {
|
|
1435
1435
|
"data-cy": "button-cancel",
|
|
1436
1436
|
onClick: re(s, ["stop"])
|
|
1437
1437
|
}, {
|
|
@@ -1554,7 +1554,7 @@ var ca = {}, Wi = {
|
|
|
1554
1554
|
(function(e, a) {
|
|
1555
1555
|
t.exports = a();
|
|
1556
1556
|
})(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",
|
|
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", 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+)?$/, I = /\[([^\]]+)]|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
1558
|
var C = ["th", "st", "nd", "rd"], A = D % 100;
|
|
1559
1559
|
return "[" + D + (C[(A - 20) % 10] || C[A] || C[0]) + "]";
|
|
1560
1560
|
} }, z = function(D, C, A) {
|
|
@@ -1571,11 +1571,11 @@ var ca = {}, Wi = {
|
|
|
1571
1571
|
}, a: function(D) {
|
|
1572
1572
|
return D < 0 ? Math.ceil(D) || 0 : Math.floor(D);
|
|
1573
1573
|
}, p: function(D) {
|
|
1574
|
-
return { M: d, y: b, w: m, d: p, D:
|
|
1574
|
+
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
1575
|
}, u: function(D) {
|
|
1576
1576
|
return D === void 0;
|
|
1577
1577
|
} }, ne = "en", ee = {};
|
|
1578
|
-
ee[ne] =
|
|
1578
|
+
ee[ne] = F;
|
|
1579
1579
|
var ue = function(D) {
|
|
1580
1580
|
return D instanceof Me;
|
|
1581
1581
|
}, me = function D(C, A, M) {
|
|
@@ -1661,7 +1661,7 @@ var ca = {}, Wi = {
|
|
|
1661
1661
|
var He = this.$locale().weekStart || 0, Ne = (ge < He ? ge + 7 : ge) - He;
|
|
1662
1662
|
return se(j ? Ee - Ne : Ee + (6 - Ne), Ce);
|
|
1663
1663
|
case p:
|
|
1664
|
-
case
|
|
1664
|
+
case V:
|
|
1665
1665
|
return he(xe + "Hours", 0);
|
|
1666
1666
|
case u:
|
|
1667
1667
|
return he(xe + "Minutes", 1);
|
|
@@ -1675,10 +1675,10 @@ var ca = {}, Wi = {
|
|
|
1675
1675
|
}, C.endOf = function(A) {
|
|
1676
1676
|
return this.startOf(A, !1);
|
|
1677
1677
|
}, C.$set = function(A, M) {
|
|
1678
|
-
var x, j = Q.p(A), K = "set" + (this.$u ? "UTC" : ""), se = (x = {}, x[p] = K + "Date", x[
|
|
1678
|
+
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
1679
|
if (j === d || j === b) {
|
|
1680
|
-
var ge = this.clone().set(
|
|
1681
|
-
ge.$d[se](he), ge.init(), this.$d = ge.set(
|
|
1680
|
+
var ge = this.clone().set(V, 1);
|
|
1681
|
+
ge.$d[se](he), ge.init(), this.$d = ge.set(V, Math.min(this.$D, ge.daysInMonth())).$d;
|
|
1682
1682
|
} else
|
|
1683
1683
|
se && this.$d[se](he);
|
|
1684
1684
|
return this.init(), this;
|
|
@@ -1746,7 +1746,7 @@ var ca = {}, Wi = {
|
|
|
1746
1746
|
return this.$d.toUTCString();
|
|
1747
1747
|
}, D;
|
|
1748
1748
|
}(), W = Me.prototype;
|
|
1749
|
-
return oe.prototype = W, [["$ms", o], ["$s", s], ["$m", c], ["$H", u], ["$W", p], ["$M", d], ["$y", b], ["$D",
|
|
1749
|
+
return oe.prototype = W, [["$ms", o], ["$s", s], ["$m", c], ["$H", u], ["$W", p], ["$M", d], ["$y", b], ["$D", V]].forEach(function(D) {
|
|
1750
1750
|
W[D[1]] = function(C) {
|
|
1751
1751
|
return this.$g(C, D[0], D[1]);
|
|
1752
1752
|
};
|
|
@@ -1808,12 +1808,12 @@ var fa = {}, qi = {
|
|
|
1808
1808
|
return oe === 0 ? 0 : me === "+" ? oe : -oe;
|
|
1809
1809
|
}(v), v === null))
|
|
1810
1810
|
return this;
|
|
1811
|
-
var
|
|
1811
|
+
var F = Math.abs(v) <= 16 ? 60 * v : v, z = this;
|
|
1812
1812
|
if (O)
|
|
1813
|
-
return z.$offset =
|
|
1813
|
+
return z.$offset = F, z.$u = v === 0, z;
|
|
1814
1814
|
if (v !== 0) {
|
|
1815
1815
|
var U = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
1816
|
-
(z = this.local().add(
|
|
1816
|
+
(z = this.local().add(F + U, e)).$offset = F, z.$x.$localOffset = U;
|
|
1817
1817
|
} else
|
|
1818
1818
|
z = this.utc();
|
|
1819
1819
|
return z;
|
|
@@ -1836,12 +1836,12 @@ var fa = {}, qi = {
|
|
|
1836
1836
|
u.toDate = function(v) {
|
|
1837
1837
|
return v === "s" && this.$offset ? c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : b.call(this);
|
|
1838
1838
|
};
|
|
1839
|
-
var
|
|
1839
|
+
var V = u.diff;
|
|
1840
1840
|
u.diff = function(v, O, I) {
|
|
1841
1841
|
if (v && this.$u === v.$u)
|
|
1842
|
-
return
|
|
1843
|
-
var
|
|
1844
|
-
return
|
|
1842
|
+
return V.call(this, v, O, I);
|
|
1843
|
+
var F = this.local(), z = c(v).local();
|
|
1844
|
+
return V.call(F, z, O, I);
|
|
1845
1845
|
};
|
|
1846
1846
|
};
|
|
1847
1847
|
});
|
|
@@ -2398,7 +2398,7 @@ const dl = /* @__PURE__ */ L({
|
|
|
2398
2398
|
},
|
|
2399
2399
|
setup(t) {
|
|
2400
2400
|
const n = t, e = be(qn), { can: a } = ul(), r = J(a(n.permission, n.subject));
|
|
2401
|
-
return
|
|
2401
|
+
return Pe(e, () => {
|
|
2402
2402
|
r.value = a(n.permission, n.subject);
|
|
2403
2403
|
}), (o, s) => r.value ? Ae(o.$slots, "default", { key: 0 }) : Z("", !0);
|
|
2404
2404
|
}
|
|
@@ -2426,7 +2426,7 @@ var ta = [
|
|
|
2426
2426
|
"onValueUpdate",
|
|
2427
2427
|
"onYearChange",
|
|
2428
2428
|
"onPreCalendarPosition"
|
|
2429
|
-
],
|
|
2429
|
+
], Vt = {
|
|
2430
2430
|
_disable: [],
|
|
2431
2431
|
allowInput: !1,
|
|
2432
2432
|
allowInvalidPreload: !1,
|
|
@@ -2558,7 +2558,7 @@ var ta = [
|
|
|
2558
2558
|
hourAriaLabel: "Hour",
|
|
2559
2559
|
minuteAriaLabel: "Minute",
|
|
2560
2560
|
time_24hr: !1
|
|
2561
|
-
},
|
|
2561
|
+
}, Fe = function(t, n) {
|
|
2562
2562
|
return n === void 0 && (n = 2), ("000" + t).slice(n * -1);
|
|
2563
2563
|
}, Ge = function(t) {
|
|
2564
2564
|
return t === !0 ? 1 : 0;
|
|
@@ -2594,7 +2594,7 @@ function qr(t, n) {
|
|
|
2594
2594
|
if (t.parentNode)
|
|
2595
2595
|
return qr(t.parentNode, n);
|
|
2596
2596
|
}
|
|
2597
|
-
function
|
|
2597
|
+
function Pn(t, n) {
|
|
2598
2598
|
var e = ce("div", "numInputWrapper"), a = ce("input", "numInput " + t), r = ce("span", "arrowUp"), o = ce("span", "arrowDown");
|
|
2599
2599
|
if (navigator.userAgent.indexOf("MSIE 9.0") === -1 ? a.type = "number" : (a.type = "text", a.pattern = "\\d*"), n !== void 0)
|
|
2600
2600
|
for (var s in n)
|
|
@@ -2715,10 +2715,10 @@ var aa = function() {
|
|
|
2715
2715
|
return zn(qt.n(t, n, e) - 1, !1, n);
|
|
2716
2716
|
},
|
|
2717
2717
|
G: function(t, n, e) {
|
|
2718
|
-
return
|
|
2718
|
+
return Fe(qt.h(t, n, e));
|
|
2719
2719
|
},
|
|
2720
2720
|
H: function(t) {
|
|
2721
|
-
return
|
|
2721
|
+
return Fe(t.getHours());
|
|
2722
2722
|
},
|
|
2723
2723
|
J: function(t, n) {
|
|
2724
2724
|
return n.ordinal !== void 0 ? t.getDate() + n.ordinal(t.getDate()) : t.getDate();
|
|
@@ -2730,7 +2730,7 @@ var aa = function() {
|
|
|
2730
2730
|
return zn(t.getMonth(), !0, n);
|
|
2731
2731
|
},
|
|
2732
2732
|
S: function(t) {
|
|
2733
|
-
return
|
|
2733
|
+
return Fe(t.getSeconds());
|
|
2734
2734
|
},
|
|
2735
2735
|
U: function(t) {
|
|
2736
2736
|
return t.getTime() / 1e3;
|
|
@@ -2739,16 +2739,16 @@ var aa = function() {
|
|
|
2739
2739
|
return e.getWeek(t);
|
|
2740
2740
|
},
|
|
2741
2741
|
Y: function(t) {
|
|
2742
|
-
return
|
|
2742
|
+
return Fe(t.getFullYear(), 4);
|
|
2743
2743
|
},
|
|
2744
2744
|
d: function(t) {
|
|
2745
|
-
return
|
|
2745
|
+
return Fe(t.getDate());
|
|
2746
2746
|
},
|
|
2747
2747
|
h: function(t) {
|
|
2748
2748
|
return t.getHours() % 12 ? t.getHours() % 12 : 12;
|
|
2749
2749
|
},
|
|
2750
2750
|
i: function(t) {
|
|
2751
|
-
return
|
|
2751
|
+
return Fe(t.getMinutes());
|
|
2752
2752
|
},
|
|
2753
2753
|
j: function(t) {
|
|
2754
2754
|
return t.getDate();
|
|
@@ -2757,7 +2757,7 @@ var aa = function() {
|
|
|
2757
2757
|
return n.weekdays.longhand[t.getDay()];
|
|
2758
2758
|
},
|
|
2759
2759
|
m: function(t) {
|
|
2760
|
-
return
|
|
2760
|
+
return Fe(t.getMonth() + 1);
|
|
2761
2761
|
},
|
|
2762
2762
|
n: function(t) {
|
|
2763
2763
|
return t.getMonth() + 1;
|
|
@@ -2775,7 +2775,7 @@ var aa = function() {
|
|
|
2775
2775
|
return String(t.getFullYear()).substring(2);
|
|
2776
2776
|
}
|
|
2777
2777
|
}, Gr = function(t) {
|
|
2778
|
-
var n = t.config, e = n === void 0 ?
|
|
2778
|
+
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
2779
|
return function(c, u, p) {
|
|
2780
2780
|
var m = p || r;
|
|
2781
2781
|
return e.formatDate !== void 0 && !s ? e.formatDate(c, u, m) : u.split("").map(function(d, g, b) {
|
|
@@ -2783,7 +2783,7 @@ var aa = function() {
|
|
|
2783
2783
|
}).join("");
|
|
2784
2784
|
};
|
|
2785
2785
|
}, pa = function(t) {
|
|
2786
|
-
var n = t.config, e = n === void 0 ?
|
|
2786
|
+
var n = t.config, e = n === void 0 ? Vt : n, a = t.l10n, r = a === void 0 ? en : a;
|
|
2787
2787
|
return function(o, s, c, u) {
|
|
2788
2788
|
if (!(o !== 0 && !o)) {
|
|
2789
2789
|
var p = u || r, m, d = o;
|
|
@@ -2792,7 +2792,7 @@ var aa = function() {
|
|
|
2792
2792
|
else if (typeof o != "string" && o.toFixed !== void 0)
|
|
2793
2793
|
m = new Date(o);
|
|
2794
2794
|
else if (typeof o == "string") {
|
|
2795
|
-
var g = s || (e ||
|
|
2795
|
+
var g = s || (e || Vt).dateFormat, b = String(o).trim();
|
|
2796
2796
|
if (b === "today")
|
|
2797
2797
|
m = /* @__PURE__ */ new Date(), c = !0;
|
|
2798
2798
|
else if (e && e.parseDate)
|
|
@@ -2800,22 +2800,22 @@ var aa = function() {
|
|
|
2800
2800
|
else if (/Z$/.test(b) || /GMT$/.test(b))
|
|
2801
2801
|
m = new Date(o);
|
|
2802
2802
|
else {
|
|
2803
|
-
for (var
|
|
2803
|
+
for (var V = void 0, v = [], O = 0, I = 0, F = ""; O < g.length; O++) {
|
|
2804
2804
|
var z = g[O], U = z === "\\", ne = g[O - 1] === "\\" || U;
|
|
2805
2805
|
if (wt[z] && !ne) {
|
|
2806
|
-
|
|
2807
|
-
var ee = new RegExp(
|
|
2808
|
-
ee && (
|
|
2806
|
+
F += wt[z];
|
|
2807
|
+
var ee = new RegExp(F).exec(o);
|
|
2808
|
+
ee && (V = !0) && v[z !== "Y" ? "push" : "unshift"]({
|
|
2809
2809
|
fn: cl[z],
|
|
2810
2810
|
val: ee[++I]
|
|
2811
2811
|
});
|
|
2812
2812
|
} else
|
|
2813
|
-
U || (
|
|
2813
|
+
U || (F += ".");
|
|
2814
2814
|
}
|
|
2815
2815
|
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
2816
|
var me = ue.fn, oe = ue.val;
|
|
2817
2817
|
return m = me(m, oe, p) || m;
|
|
2818
|
-
}), m =
|
|
2818
|
+
}), m = V ? m : void 0;
|
|
2819
2819
|
}
|
|
2820
2820
|
}
|
|
2821
2821
|
if (!(m instanceof Date && !isNaN(m.getTime()))) {
|
|
@@ -2885,10 +2885,10 @@ var $e = globalThis && globalThis.__assign || function() {
|
|
|
2885
2885
|
}, hl = 300;
|
|
2886
2886
|
function gl(t, n) {
|
|
2887
2887
|
var e = {
|
|
2888
|
-
config: $e($e({},
|
|
2888
|
+
config: $e($e({}, Vt), _e.defaultConfig),
|
|
2889
2889
|
l10n: en
|
|
2890
2890
|
};
|
|
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 =
|
|
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 = F, e.updateValue = We, e.open = on, e.redraw = Rt, e.set = dn, e.setDate = cn, e.toggle = hn;
|
|
2892
2892
|
function a() {
|
|
2893
2893
|
e.utils = {
|
|
2894
2894
|
getDaysInMonth: function(i, l) {
|
|
@@ -2942,7 +2942,7 @@ function gl(t, n) {
|
|
|
2942
2942
|
if (!(e.hourElement === void 0 || e.minuteElement === void 0)) {
|
|
2943
2943
|
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
2944
|
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,
|
|
2945
|
+
var _ = e.config.minTime !== void 0 || e.config.minDate && e.minDateHasTime && e.latestSelectedDateObj && Re(e.latestSelectedDateObj, e.config.minDate, !0) === 0, P = e.config.maxTime !== void 0 || e.config.maxDate && e.maxDateHasTime && e.latestSelectedDateObj && Re(e.latestSelectedDateObj, e.config.maxDate, !0) === 0;
|
|
2946
2946
|
if (e.config.maxTime !== void 0 && e.config.minTime !== void 0 && e.config.minTime > e.config.maxTime) {
|
|
2947
2947
|
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
2948
|
if (Y > X && Y < N) {
|
|
@@ -2950,7 +2950,7 @@ function gl(t, n) {
|
|
|
2950
2950
|
i = ae[0], l = ae[1], h = ae[2];
|
|
2951
2951
|
}
|
|
2952
2952
|
} else {
|
|
2953
|
-
if (
|
|
2953
|
+
if (P) {
|
|
2954
2954
|
var R = e.config.maxTime !== void 0 ? e.config.maxTime : e.config.maxDate;
|
|
2955
2955
|
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
2956
|
}
|
|
@@ -2967,20 +2967,20 @@ function gl(t, n) {
|
|
|
2967
2967
|
l && l instanceof Date && b(l.getHours(), l.getMinutes(), l.getSeconds());
|
|
2968
2968
|
}
|
|
2969
2969
|
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 =
|
|
2970
|
+
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
2971
|
}
|
|
2972
|
-
function
|
|
2972
|
+
function V(i) {
|
|
2973
2973
|
var l = je(i), h = parseInt(l.value) + (i.delta || 0);
|
|
2974
2974
|
(h / 1e3 > 1 || i.key === "Enter" && !/[^\d]/.test(h.toString())) && Ne(h);
|
|
2975
2975
|
}
|
|
2976
2976
|
function v(i, l, h, _) {
|
|
2977
2977
|
if (l instanceof Array)
|
|
2978
|
-
return l.forEach(function(
|
|
2979
|
-
return v(i,
|
|
2978
|
+
return l.forEach(function(P) {
|
|
2979
|
+
return v(i, P, h, _);
|
|
2980
2980
|
});
|
|
2981
2981
|
if (i instanceof Array)
|
|
2982
|
-
return i.forEach(function(
|
|
2983
|
-
return v(
|
|
2982
|
+
return i.forEach(function(P) {
|
|
2983
|
+
return v(P, l, h, _);
|
|
2984
2984
|
});
|
|
2985
2985
|
i.addEventListener(l, h, _), e._handlers.push({
|
|
2986
2986
|
remove: function() {
|
|
@@ -3003,7 +3003,7 @@ function gl(t, n) {
|
|
|
3003
3003
|
var i = sr(rn, 50);
|
|
3004
3004
|
if (e._debouncedChange = sr(O, hl), e.daysContainer && !/iPhone|iPad|iPod/i.test(navigator.userAgent) && v(e.daysContainer, "mouseover", function(h) {
|
|
3005
3005
|
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"],
|
|
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"], V), v(e.daysContainer, "click", zt)), e.timeContainer !== void 0 && e.minuteElement !== void 0 && e.hourElement !== void 0) {
|
|
3007
3007
|
var l = function(h) {
|
|
3008
3008
|
return je(h).select();
|
|
3009
3009
|
};
|
|
@@ -3015,22 +3015,22 @@ function gl(t, n) {
|
|
|
3015
3015
|
}
|
|
3016
3016
|
e.config.allowInput && v(e._input, "blur", Le);
|
|
3017
3017
|
}
|
|
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,
|
|
3018
|
+
function F(i, l) {
|
|
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, P = e.currentMonth;
|
|
3020
3020
|
try {
|
|
3021
3021
|
h !== void 0 && (e.currentYear = h.getFullYear(), e.currentMonth = h.getMonth());
|
|
3022
3022
|
} catch (N) {
|
|
3023
3023
|
N.message = "Invalid date supplied: " + h, e.config.errorHandler(N);
|
|
3024
3024
|
}
|
|
3025
|
-
l && e.currentYear !== _ && (ve("onYearChange"), D()), l && (e.currentYear !== _ || e.currentMonth !==
|
|
3025
|
+
l && e.currentYear !== _ && (ve("onYearChange"), D()), l && (e.currentYear !== _ || e.currentMonth !== P) && ve("onMonthChange"), e.redraw();
|
|
3026
3026
|
}
|
|
3027
3027
|
function z(i) {
|
|
3028
3028
|
var l = je(i);
|
|
3029
3029
|
~l.className.indexOf("arrow") && U(i, l.classList.contains("arrowUp") ? 1 : -1);
|
|
3030
3030
|
}
|
|
3031
3031
|
function U(i, l, h) {
|
|
3032
|
-
var _ = i && je(i),
|
|
3033
|
-
N.delta = l,
|
|
3032
|
+
var _ = i && je(i), P = h || _ && _.parentNode && _.parentNode.firstChild, N = $t("increment");
|
|
3033
|
+
N.delta = l, P && P.dispatchEvent(N);
|
|
3034
3034
|
}
|
|
3035
3035
|
function ne() {
|
|
3036
3036
|
var i = window.document.createDocumentFragment();
|
|
@@ -3042,48 +3042,48 @@ function gl(t, n) {
|
|
|
3042
3042
|
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
3043
|
}
|
|
3044
3044
|
e.config.enableTime && i.appendChild(x()), Ie(e.calendarContainer, "rangeMode", e.config.mode === "range"), Ie(e.calendarContainer, "animate", e.config.animate === !0), Ie(e.calendarContainer, "multiMonth", e.config.showMonths > 1), e.calendarContainer.appendChild(i);
|
|
3045
|
-
var
|
|
3046
|
-
if ((e.config.inline || e.config.static) && (e.calendarContainer.classList.add(e.config.inline ? "inline" : "static"), e.config.inline && (!
|
|
3045
|
+
var P = e.config.appendTo !== void 0 && e.config.appendTo.nodeType !== void 0;
|
|
3046
|
+
if ((e.config.inline || e.config.static) && (e.calendarContainer.classList.add(e.config.inline ? "inline" : "static"), e.config.inline && (!P && 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
3047
|
var N = ce("div", "flatpickr-wrapper");
|
|
3048
3048
|
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
3049
|
}
|
|
3050
3050
|
!e.config.static && !e.config.inline && (e.config.appendTo !== void 0 ? e.config.appendTo : window.document.body).appendChild(e.calendarContainer);
|
|
3051
3051
|
}
|
|
3052
3052
|
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")),
|
|
3053
|
+
var P = Te(l, !0), N = ce("span", i, l.getDate().toString());
|
|
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")), P ? (N.tabIndex = -1, Ot(l) && (N.classList.add("selected"), e.selectedDateElem = N, e.config.mode === "range" && (Ie(N, "startRange", e.selectedDates[0] && Re(l, e.selectedDates[0], !0) === 0), Ie(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>"), ve("onDayCreate", N), N;
|
|
3055
3055
|
}
|
|
3056
3056
|
function ue(i) {
|
|
3057
3057
|
i.focus(), e.config.mode === "range" && Je(i);
|
|
3058
3058
|
}
|
|
3059
3059
|
function me(i) {
|
|
3060
3060
|
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 =
|
|
3061
|
+
for (var P = e.daysContainer.children[_], N = i > 0 ? 0 : P.children.length - 1, X = i > 0 ? P.children.length : -1, Y = N; Y != X; Y += i) {
|
|
3062
|
+
var ae = P.children[Y];
|
|
3063
3063
|
if (ae.className.indexOf("hidden") === -1 && Te(ae.dateObj))
|
|
3064
3064
|
return ae;
|
|
3065
3065
|
}
|
|
3066
3066
|
}
|
|
3067
3067
|
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 +=
|
|
3068
|
+
for (var h = i.className.indexOf("Month") === -1 ? i.dateObj.getMonth() : e.currentMonth, _ = l > 0 ? e.config.showMonths : -1, P = l > 0 ? 1 : -1, N = h - e.currentMonth; N != _; N += P)
|
|
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 += P) {
|
|
3070
3070
|
var q = X.children[R];
|
|
3071
3071
|
if (q.className.indexOf("hidden") === -1 && Te(q.dateObj) && Math.abs(i.$i - R) >= Math.abs(l))
|
|
3072
3072
|
return ue(q);
|
|
3073
3073
|
}
|
|
3074
|
-
e.changeMonth(
|
|
3074
|
+
e.changeMonth(P), Q(me(P), 0);
|
|
3075
3075
|
}
|
|
3076
3076
|
function Q(i, l) {
|
|
3077
|
-
var h = o(), _ = we(h || document.body),
|
|
3078
|
-
|
|
3077
|
+
var h = o(), _ = we(h || document.body), P = 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);
|
|
3078
|
+
P === void 0 ? e._input.focus() : _ ? oe(P, l) : ue(P);
|
|
3079
3079
|
}
|
|
3080
3080
|
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),
|
|
3081
|
+
for (var h = (new Date(i, l, 1).getDay() - e.l10n.firstDayOfWeek + 7) % 7, _ = e.utils.getDaysInMonth((l - 1 + 12) % 12, i), P = 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
3082
|
N.appendChild(ee("flatpickr-day " + Y, new Date(i, l - 1, R), R, q));
|
|
3083
|
-
for (R = 1; R <=
|
|
3083
|
+
for (R = 1; R <= P; R++, q++)
|
|
3084
3084
|
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 %
|
|
3085
|
+
for (var fe = P + 1; fe <= 42 - h && (e.config.showMonths === 1 || q % 7 !== 0); fe++, q++)
|
|
3086
|
+
N.appendChild(ee("flatpickr-day " + ae, new Date(i, l + 1, fe % P), fe, q));
|
|
3087
3087
|
var Be = ce("div", "dayContainer");
|
|
3088
3088
|
return Be.appendChild(N), Be;
|
|
3089
3089
|
}
|
|
@@ -3116,12 +3116,12 @@ function gl(t, n) {
|
|
|
3116
3116
|
var Y = je(X), ae = parseInt(Y.value, 10);
|
|
3117
3117
|
e.changeMonth(ae - e.currentMonth), ve("onMonthChange");
|
|
3118
3118
|
}), D(), h = e.monthsDropdownContainer);
|
|
3119
|
-
var _ =
|
|
3120
|
-
|
|
3119
|
+
var _ = Pn("cur-year", { tabindex: "-1" }), P = _.getElementsByTagName("input")[0];
|
|
3120
|
+
P.setAttribute("aria-label", e.l10n.yearAriaLabel), e.config.minDate && P.setAttribute("min", e.config.minDate.getFullYear().toString()), e.config.maxDate && (P.setAttribute("max", e.config.maxDate.getFullYear().toString()), P.disabled = !!e.config.minDate && e.config.minDate.getFullYear() === e.config.maxDate.getFullYear());
|
|
3121
3121
|
var N = ce("div", "flatpickr-current-month");
|
|
3122
3122
|
return N.appendChild(h), N.appendChild(_), l.appendChild(N), i.appendChild(l), {
|
|
3123
3123
|
container: i,
|
|
3124
|
-
yearElement:
|
|
3124
|
+
yearElement: P,
|
|
3125
3125
|
monthElement: h
|
|
3126
3126
|
};
|
|
3127
3127
|
}
|
|
@@ -3154,17 +3154,17 @@ function gl(t, n) {
|
|
|
3154
3154
|
e.calendarContainer.classList.add("hasTime"), e.config.noCalendar && e.calendarContainer.classList.add("noCalendar");
|
|
3155
3155
|
var i = oa(e.config);
|
|
3156
3156
|
e.timeContainer = ce("div", "flatpickr-time"), e.timeContainer.tabIndex = -1;
|
|
3157
|
-
var l = ce("span", "flatpickr-time-separator", ":"), h =
|
|
3157
|
+
var l = ce("span", "flatpickr-time-separator", ":"), h = Pn("flatpickr-hour", {
|
|
3158
3158
|
"aria-label": e.l10n.hourAriaLabel
|
|
3159
3159
|
});
|
|
3160
3160
|
e.hourElement = h.getElementsByTagName("input")[0];
|
|
3161
|
-
var _ =
|
|
3161
|
+
var _ = Pn("flatpickr-minute", {
|
|
3162
3162
|
"aria-label": e.l10n.minuteAriaLabel
|
|
3163
3163
|
});
|
|
3164
|
-
if (e.minuteElement = _.getElementsByTagName("input")[0], e.hourElement.tabIndex = e.minuteElement.tabIndex = -1, e.hourElement.value =
|
|
3164
|
+
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
3165
|
e.timeContainer.classList.add("hasSeconds");
|
|
3166
|
-
var
|
|
3167
|
-
e.secondElement =
|
|
3166
|
+
var P = Pn("flatpickr-second");
|
|
3167
|
+
e.secondElement = P.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(P);
|
|
3168
3168
|
}
|
|
3169
3169
|
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
3170
|
}
|
|
@@ -3205,8 +3205,8 @@ function gl(t, n) {
|
|
|
3205
3205
|
}
|
|
3206
3206
|
function ge(i, l) {
|
|
3207
3207
|
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(_,
|
|
3208
|
+
var h = oa(e.config), _ = h.hours, P = h.minutes, N = h.seconds;
|
|
3209
|
+
b(_, P, N);
|
|
3210
3210
|
}
|
|
3211
3211
|
e.redraw(), i && ve("onChange");
|
|
3212
3212
|
}
|
|
@@ -3271,10 +3271,10 @@ function gl(t, n) {
|
|
|
3271
3271
|
}
|
|
3272
3272
|
function He(i) {
|
|
3273
3273
|
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)),
|
|
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)), P = !_ && !h && !xe(i.relatedTarget), N = !e.config.ignoredFocusElements.some(function(X) {
|
|
3275
3275
|
return X.contains(l);
|
|
3276
3276
|
});
|
|
3277
|
-
|
|
3277
|
+
P && 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
3278
|
}
|
|
3279
3279
|
}
|
|
3280
3280
|
function Ne(i) {
|
|
@@ -3293,18 +3293,18 @@ function gl(t, n) {
|
|
|
3293
3293
|
return !0;
|
|
3294
3294
|
if (_ === void 0)
|
|
3295
3295
|
return !1;
|
|
3296
|
-
for (var
|
|
3296
|
+
for (var P = !!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
3297
|
if (Y = N[X], typeof Y == "function" && Y(_))
|
|
3298
|
-
return
|
|
3298
|
+
return P;
|
|
3299
3299
|
if (Y instanceof Date && _ !== void 0 && Y.getTime() === _.getTime())
|
|
3300
|
-
return
|
|
3300
|
+
return P;
|
|
3301
3301
|
if (typeof Y == "string") {
|
|
3302
3302
|
var ae = e.parseDate(Y, void 0, !0);
|
|
3303
|
-
return ae && ae.getTime() === _.getTime() ?
|
|
3303
|
+
return ae && ae.getTime() === _.getTime() ? P : !P;
|
|
3304
3304
|
} else if (typeof Y == "object" && _ !== void 0 && Y.from && Y.to && _.getTime() >= Y.from.getTime() && _.getTime() <= Y.to.getTime())
|
|
3305
|
-
return
|
|
3305
|
+
return P;
|
|
3306
3306
|
}
|
|
3307
|
-
return !
|
|
3307
|
+
return !P;
|
|
3308
3308
|
}
|
|
3309
3309
|
function we(i) {
|
|
3310
3310
|
return e.daysContainer !== void 0 ? i.className.indexOf("hidden") === -1 && i.className.indexOf("flatpickr-disabled") === -1 && e.daysContainer.contains(i) : !1;
|
|
@@ -3314,12 +3314,12 @@ function gl(t, n) {
|
|
|
3314
3314
|
l && h && !(i.relatedTarget && xe(i.relatedTarget)) && e.setDate(e._input.value, !0, i.target === e.altInput ? e.config.altFormat : e.config.dateFormat);
|
|
3315
3315
|
}
|
|
3316
3316
|
function rt(i) {
|
|
3317
|
-
var l = je(i), h = e.config.wrap ? t.contains(l) : l === e._input, _ = e.config.allowInput,
|
|
3317
|
+
var l = je(i), h = e.config.wrap ? t.contains(l) : l === e._input, _ = e.config.allowInput, P = e.isOpen && (!_ || !h), N = e.config.inline && h && !_;
|
|
3318
3318
|
if (i.keyCode === 13 && h) {
|
|
3319
3319
|
if (_)
|
|
3320
3320
|
return e.setDate(e._input.value, !0, l === e.altInput ? e.config.altFormat : e.config.dateFormat), e.close(), l.blur();
|
|
3321
3321
|
e.open();
|
|
3322
|
-
} else if (xe(l) ||
|
|
3322
|
+
} else if (xe(l) || P || N) {
|
|
3323
3323
|
var X = !!e.timeContainer && e.timeContainer.contains(l);
|
|
3324
3324
|
switch (i.keyCode) {
|
|
3325
3325
|
case 13:
|
|
@@ -3384,8 +3384,8 @@ function gl(t, n) {
|
|
|
3384
3384
|
}
|
|
3385
3385
|
function Je(i, l) {
|
|
3386
3386
|
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 >
|
|
3387
|
+
for (var h = i ? i.dateObj.getTime() : e.days.firstElementChild.dateObj.getTime(), _ = e.parseDate(e.selectedDates[0], void 0, !0).getTime(), P = Math.min(h, e.selectedDates[0].getTime()), N = Math.max(h, e.selectedDates[0].getTime()), X = !1, Y = 0, ae = 0, R = P; R < N; R += pl.DAY)
|
|
3388
|
+
Te(new Date(R), !0) || (X = X || R > P && R < N, R < _ && (!Y || R > Y) ? Y = R : R > _ && (!ae || R < ae) && (ae = R));
|
|
3389
3389
|
var q = Array.from(e.rContainer.querySelectorAll("*:nth-child(-n+" + e.config.showMonths + ") > ." + l));
|
|
3390
3390
|
q.forEach(function(fe) {
|
|
3391
3391
|
var Be = fe.dateObj, Se = Be.getTime(), st = Y > 0 && Se < Y || ae > 0 && Se > ae;
|
|
@@ -3424,8 +3424,8 @@ function gl(t, n) {
|
|
|
3424
3424
|
function Lt(i) {
|
|
3425
3425
|
return function(l) {
|
|
3426
3426
|
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(
|
|
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(P) {
|
|
3428
|
+
return Te(P);
|
|
3429
3429
|
}), !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
3430
|
};
|
|
3431
3431
|
}
|
|
@@ -3463,11 +3463,11 @@ function gl(t, n) {
|
|
|
3463
3463
|
});
|
|
3464
3464
|
var _ = l.mode === "time";
|
|
3465
3465
|
if (!l.dateFormat && (l.enableTime || _)) {
|
|
3466
|
-
var
|
|
3467
|
-
h.dateFormat = l.noCalendar || _ ? "H:i" + (l.enableSeconds ? ":S" : "") :
|
|
3466
|
+
var P = _e.defaultConfig.dateFormat || Vt.dateFormat;
|
|
3467
|
+
h.dateFormat = l.noCalendar || _ ? "H:i" + (l.enableSeconds ? ":S" : "") : P + " H:i" + (l.enableSeconds ? ":S" : "");
|
|
3468
3468
|
}
|
|
3469
3469
|
if (l.altInput && (l.enableTime || _) && !l.altFormat) {
|
|
3470
|
-
var N = _e.defaultConfig.altFormat ||
|
|
3470
|
+
var N = _e.defaultConfig.altFormat || Vt.altFormat;
|
|
3471
3471
|
h.altFormat = l.noCalendar || _ ? "h:i" + (l.enableSeconds ? ":S K" : " K") : N + (" h:i" + (l.enableSeconds ? ":S" : "") + " K");
|
|
3472
3472
|
}
|
|
3473
3473
|
Object.defineProperty(e.config, "minDate", {
|
|
@@ -3526,7 +3526,7 @@ function gl(t, n) {
|
|
|
3526
3526
|
ve("onPreCalendarPosition");
|
|
3527
3527
|
var l = i || e._positionElement, h = Array.prototype.reduce.call(e.calendarContainer.children, function(Mn, xn) {
|
|
3528
3528
|
return Mn + xn.offsetHeight;
|
|
3529
|
-
}, 0), _ = e.calendarContainer.offsetWidth,
|
|
3529
|
+
}, 0), _ = e.calendarContainer.offsetWidth, P = e.config.position.split(" "), N = P[0], X = P.length > 1 ? P[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);
|
|
3530
3530
|
if (Ie(e.calendarContainer, "arrowTop", !R), Ie(e.calendarContainer, "arrowBottom", R), !e.config.inline) {
|
|
3531
3531
|
var fe = window.pageXOffset + Y.left, Be = !1, Se = !1;
|
|
3532
3532
|
X === "center" ? (fe -= (_ - Y.width) / 2, Be = !0) : X === "right" && (fe -= _ - Y.width, Se = !0), Ie(e.calendarContainer, "arrowLeft", !Be && !Se), Ie(e.calendarContainer, "arrowCenter", Be), Ie(e.calendarContainer, "arrowRight", Se);
|
|
@@ -3537,11 +3537,11 @@ function gl(t, n) {
|
|
|
3537
3537
|
else if (!bn)
|
|
3538
3538
|
e.calendarContainer.style.left = "auto", e.calendarContainer.style.right = st + "px";
|
|
3539
3539
|
else {
|
|
3540
|
-
var
|
|
3541
|
-
if (
|
|
3540
|
+
var Pt = sn();
|
|
3541
|
+
if (Pt === void 0)
|
|
3542
3542
|
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
|
-
Ie(e.calendarContainer, "rightMost", !1), Ie(e.calendarContainer, "centerMost", !0),
|
|
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 = Pt.cssRules.length, An = "{left:" + Y.left + "px;right:auto;}";
|
|
3544
|
+
Ie(e.calendarContainer, "rightMost", !1), Ie(e.calendarContainer, "centerMost", !0), Pt.insertRule(Cn + "," + _n + An, Dn), e.calendarContainer.style.left = kn + "px", e.calendarContainer.style.right = "auto";
|
|
3545
3545
|
}
|
|
3546
3546
|
}
|
|
3547
3547
|
}
|
|
@@ -3577,19 +3577,19 @@ function gl(t, n) {
|
|
|
3577
3577
|
return q.classList && q.classList.contains("flatpickr-day") && !q.classList.contains("flatpickr-disabled") && !q.classList.contains("notAllowed");
|
|
3578
3578
|
}, h = qr(je(i), l);
|
|
3579
3579
|
if (h !== void 0) {
|
|
3580
|
-
var _ = h,
|
|
3580
|
+
var _ = h, P = e.latestSelectedDateObj = new Date(_.dateObj.getTime()), N = (P.getMonth() < e.currentMonth || P.getMonth() > e.currentMonth + e.config.showMonths - 1) && e.config.mode !== "range";
|
|
3581
3581
|
if (e.selectedDateElem = _, e.config.mode === "single")
|
|
3582
|
-
e.selectedDates = [
|
|
3582
|
+
e.selectedDates = [P];
|
|
3583
3583
|
else if (e.config.mode === "multiple") {
|
|
3584
|
-
var X = Ot(
|
|
3585
|
-
X ? e.selectedDates.splice(parseInt(X), 1) : e.selectedDates.push(
|
|
3584
|
+
var X = Ot(P);
|
|
3585
|
+
X ? e.selectedDates.splice(parseInt(X), 1) : e.selectedDates.push(P);
|
|
3586
3586
|
} else
|
|
3587
|
-
e.config.mode === "range" && (e.selectedDates.length === 2 && e.clear(!1, !1), e.latestSelectedDateObj =
|
|
3587
|
+
e.config.mode === "range" && (e.selectedDates.length === 2 && e.clear(!1, !1), e.latestSelectedDateObj = P, e.selectedDates.push(P), Re(P, e.selectedDates[0], !0) !== 0 && e.selectedDates.sort(function(q, fe) {
|
|
3588
3588
|
return q.getTime() - fe.getTime();
|
|
3589
3589
|
}));
|
|
3590
3590
|
if (d(), N) {
|
|
3591
|
-
var Y = e.currentYear !==
|
|
3592
|
-
e.currentYear =
|
|
3591
|
+
var Y = e.currentYear !== P.getFullYear();
|
|
3592
|
+
e.currentYear = P.getFullYear(), e.currentMonth = P.getMonth(), Y && (ve("onYearChange"), D()), ve("onMonthChange");
|
|
3593
3593
|
}
|
|
3594
3594
|
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
3595
|
var ae = e.config.mode === "single" && !e.config.enableTime, R = e.config.mode === "range" && e.selectedDates.length === 2 && !e.config.enableTime;
|
|
@@ -3601,8 +3601,8 @@ function gl(t, n) {
|
|
|
3601
3601
|
var yt = {
|
|
3602
3602
|
locale: [jt, K],
|
|
3603
3603
|
showMonths: [A, c, j],
|
|
3604
|
-
minDate: [
|
|
3605
|
-
maxDate: [
|
|
3604
|
+
minDate: [F],
|
|
3605
|
+
maxDate: [F],
|
|
3606
3606
|
positionElement: [Ht],
|
|
3607
3607
|
clickOpens: [
|
|
3608
3608
|
function() {
|
|
@@ -3652,14 +3652,14 @@ function gl(t, n) {
|
|
|
3652
3652
|
e.config.errorHandler(new Error("Invalid date supplied: " + JSON.stringify(i)));
|
|
3653
3653
|
e.selectedDates = e.config.allowInvalidPreload ? h : h.filter(function(_) {
|
|
3654
3654
|
return _ instanceof Date && Te(_, !1);
|
|
3655
|
-
}), e.config.mode === "range" && e.selectedDates.sort(function(_,
|
|
3656
|
-
return _.getTime() -
|
|
3655
|
+
}), e.config.mode === "range" && e.selectedDates.sort(function(_, P) {
|
|
3656
|
+
return _.getTime() - P.getTime();
|
|
3657
3657
|
});
|
|
3658
3658
|
}
|
|
3659
3659
|
function cn(i, l, h) {
|
|
3660
3660
|
if (l === void 0 && (l = !1), h === void 0 && (h = e.config.dateFormat), i !== 0 && !i || i instanceof Array && i.length === 0)
|
|
3661
3661
|
return e.clear(l);
|
|
3662
|
-
Ut(i, h), e.latestSelectedDateObj = e.selectedDates[e.selectedDates.length - 1], e.redraw(),
|
|
3662
|
+
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 && ve("onChange");
|
|
3663
3663
|
}
|
|
3664
3664
|
function Yt(i) {
|
|
3665
3665
|
return i.slice().map(function(l) {
|
|
@@ -3736,8 +3736,8 @@ function gl(t, n) {
|
|
|
3736
3736
|
var l = i || (e.config.altInput ? e.config.altFormat : e.config.dateFormat);
|
|
3737
3737
|
return e.selectedDates.map(function(h) {
|
|
3738
3738
|
return e.formatDate(h, l);
|
|
3739
|
-
}).filter(function(h, _,
|
|
3740
|
-
return e.config.mode !== "range" || e.config.enableTime ||
|
|
3739
|
+
}).filter(function(h, _, P) {
|
|
3740
|
+
return e.config.mode !== "range" || e.config.enableTime || P.indexOf(h) === _;
|
|
3741
3741
|
}).join(e.config.mode !== "range" ? e.config.conjunction : e.l10n.rangeSeparator);
|
|
3742
3742
|
}
|
|
3743
3743
|
function We(i) {
|
|
@@ -3751,15 +3751,15 @@ function gl(t, n) {
|
|
|
3751
3751
|
i.preventDefault();
|
|
3752
3752
|
var l = i.type === "keydown", h = je(i), _ = h;
|
|
3753
3753
|
e.amPM !== void 0 && h === e.amPM && (e.amPM.textContent = e.l10n.amPM[Ge(e.amPM.textContent === e.l10n.amPM[0])]);
|
|
3754
|
-
var
|
|
3754
|
+
var P = 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
3755
|
if (typeof _.value < "u" && _.value.length === 2) {
|
|
3756
3756
|
var q = _ === e.hourElement, fe = _ === e.minuteElement;
|
|
3757
|
-
R <
|
|
3757
|
+
R < P ? (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) : P, 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
3758
|
}
|
|
3759
3759
|
}
|
|
3760
3760
|
return r(), e;
|
|
3761
3761
|
}
|
|
3762
|
-
function
|
|
3762
|
+
function Ft(t, n) {
|
|
3763
3763
|
for (var e = Array.prototype.slice.call(t).filter(function(s) {
|
|
3764
3764
|
return s instanceof HTMLElement;
|
|
3765
3765
|
}), a = [], r = 0; r < e.length; r++) {
|
|
@@ -3775,12 +3775,12 @@ function Pt(t, n) {
|
|
|
3775
3775
|
return a.length === 1 ? a[0] : a;
|
|
3776
3776
|
}
|
|
3777
3777
|
typeof HTMLElement < "u" && typeof HTMLCollection < "u" && typeof NodeList < "u" && (HTMLCollection.prototype.flatpickr = NodeList.prototype.flatpickr = function(t) {
|
|
3778
|
-
return
|
|
3778
|
+
return Ft(this, t);
|
|
3779
3779
|
}, HTMLElement.prototype.flatpickr = function(t) {
|
|
3780
|
-
return
|
|
3780
|
+
return Ft([this], t);
|
|
3781
3781
|
});
|
|
3782
3782
|
var _e = function(t, n) {
|
|
3783
|
-
return typeof t == "string" ?
|
|
3783
|
+
return typeof t == "string" ? Ft(window.document.querySelectorAll(t), n) : t instanceof Node ? Ft([t], n) : Ft(t, n);
|
|
3784
3784
|
};
|
|
3785
3785
|
_e.defaultConfig = {};
|
|
3786
3786
|
_e.l10ns = {
|
|
@@ -3797,7 +3797,7 @@ _e.parseDate = pa({});
|
|
|
3797
3797
|
_e.formatDate = Gr({});
|
|
3798
3798
|
_e.compareDates = Re;
|
|
3799
3799
|
typeof jQuery < "u" && typeof jQuery.fn < "u" && (jQuery.fn.flatpickr = function(t) {
|
|
3800
|
-
return
|
|
3800
|
+
return Ft(this, t);
|
|
3801
3801
|
});
|
|
3802
3802
|
Date.prototype.fp_incr = function(t) {
|
|
3803
3803
|
return new Date(this.getFullYear(), this.getMonth(), this.getDate() + (typeof t == "string" ? parseInt(t, 10) : t));
|
|
@@ -4053,25 +4053,25 @@ var ha = {}, wl = {
|
|
|
4053
4053
|
O.stopPropagation(), O.preventDefault();
|
|
4054
4054
|
var I = O.target;
|
|
4055
4055
|
if (!(I.tagName.toLowerCase() !== "button" || typeof m.onClick > "u"))
|
|
4056
|
-
for (var
|
|
4056
|
+
for (var F = parseInt(I.dataset.index, 10), z = Array.isArray(m.onClick) ? m.onClick : [m.onClick], U = 0, ne = z; U < ne.length; U++) {
|
|
4057
4057
|
var ee = ne[U];
|
|
4058
|
-
typeof ee == "function" && ee(
|
|
4058
|
+
typeof ee == "function" && ee(F, d);
|
|
4059
4059
|
}
|
|
4060
4060
|
}
|
|
4061
|
-
function
|
|
4061
|
+
function V(O) {
|
|
4062
4062
|
var I = O.target;
|
|
4063
4063
|
O.key !== "Tab" || I.tagName.toLowerCase() !== "button" || (O.shiftKey && !I.previousSibling || !O.shiftKey && !I.nextSibling) && (O.preventDefault(), d.element.focus());
|
|
4064
4064
|
}
|
|
4065
4065
|
function v(O, I) {
|
|
4066
|
-
Object.keys(I).filter(function(
|
|
4067
|
-
return c.has(
|
|
4068
|
-
}).forEach(function(
|
|
4066
|
+
Object.keys(I).filter(function(F) {
|
|
4067
|
+
return c.has(F);
|
|
4068
|
+
}).forEach(function(F) {
|
|
4069
4069
|
var z;
|
|
4070
|
-
if (
|
|
4071
|
-
(z = O.classList).add.apply(z, I[
|
|
4070
|
+
if (F === "class") {
|
|
4071
|
+
(z = O.classList).add.apply(z, I[F].split(" "));
|
|
4072
4072
|
return;
|
|
4073
4073
|
}
|
|
4074
|
-
O.setAttribute(
|
|
4074
|
+
O.setAttribute(F, I[F]);
|
|
4075
4075
|
});
|
|
4076
4076
|
}
|
|
4077
4077
|
return {
|
|
@@ -4084,16 +4084,16 @@ var ha = {}, wl = {
|
|
|
4084
4084
|
O.classList.add("shortcut-buttons-flatpickr-label"), O.textContent = m.label, g.appendChild(O);
|
|
4085
4085
|
}
|
|
4086
4086
|
var I = document.createElement("div");
|
|
4087
|
-
I.classList.add("shortcut-buttons-flatpickr-buttons"), (Array.isArray(m.button) ? m.button : [m.button]).forEach(function(
|
|
4087
|
+
I.classList.add("shortcut-buttons-flatpickr-buttons"), (Array.isArray(m.button) ? m.button : [m.button]).forEach(function(F, z) {
|
|
4088
4088
|
var U = document.createElement("button");
|
|
4089
|
-
U.type = "button", U.classList.add("shortcut-buttons-flatpickr-button"), U.textContent =
|
|
4090
|
-
}), g.appendChild(I), d.calendarContainer.appendChild(g), g.addEventListener("click", b), g.addEventListener("keydown",
|
|
4089
|
+
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), I.appendChild(U), d.pluginElements.push(U);
|
|
4090
|
+
}), g.appendChild(I), d.calendarContainer.appendChild(g), g.addEventListener("click", b), g.addEventListener("keydown", V);
|
|
4091
4091
|
},
|
|
4092
4092
|
/**
|
|
4093
4093
|
* Clean up before flatpickr is destroyed.
|
|
4094
4094
|
*/
|
|
4095
4095
|
onDestroy: function() {
|
|
4096
|
-
g.removeEventListener("keydown",
|
|
4096
|
+
g.removeEventListener("keydown", V), g.removeEventListener("click", b), g = void 0;
|
|
4097
4097
|
}
|
|
4098
4098
|
};
|
|
4099
4099
|
};
|
|
@@ -4404,7 +4404,7 @@ var Un = {}, Cl = {
|
|
|
4404
4404
|
time_24hr: !0
|
|
4405
4405
|
};
|
|
4406
4406
|
g.l10ns.bs = b, g.l10ns;
|
|
4407
|
-
var
|
|
4407
|
+
var V = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
4408
4408
|
l10ns: {}
|
|
4409
4409
|
}, v = {
|
|
4410
4410
|
weekdays: {
|
|
@@ -4452,7 +4452,7 @@ var Un = {}, Cl = {
|
|
|
4452
4452
|
time_24hr: !0,
|
|
4453
4453
|
firstDayOfWeek: 1
|
|
4454
4454
|
};
|
|
4455
|
-
|
|
4455
|
+
V.l10ns.bg = v, V.l10ns;
|
|
4456
4456
|
var O = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
4457
4457
|
l10ns: {}
|
|
4458
4458
|
}, I = {
|
|
@@ -4500,7 +4500,7 @@ var Un = {}, Cl = {
|
|
|
4500
4500
|
}
|
|
4501
4501
|
};
|
|
4502
4502
|
O.l10ns.bn = I, O.l10ns;
|
|
4503
|
-
var
|
|
4503
|
+
var F = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
4504
4504
|
l10ns: {}
|
|
4505
4505
|
}, z = {
|
|
4506
4506
|
weekdays: {
|
|
@@ -4566,7 +4566,7 @@ var Un = {}, Cl = {
|
|
|
4566
4566
|
rangeSeparator: " a ",
|
|
4567
4567
|
time_24hr: !0
|
|
4568
4568
|
};
|
|
4569
|
-
|
|
4569
|
+
F.l10ns.cat = F.l10ns.ca = z, F.l10ns;
|
|
4570
4570
|
var U = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
4571
4571
|
l10ns: {}
|
|
4572
4572
|
}, ne = {
|
|
@@ -6286,7 +6286,7 @@ var Un = {}, Cl = {
|
|
|
6286
6286
|
l.l10ns;
|
|
6287
6287
|
var _ = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
6288
6288
|
l10ns: {}
|
|
6289
|
-
},
|
|
6289
|
+
}, P = {
|
|
6290
6290
|
weekdays: {
|
|
6291
6291
|
shorthand: ["နွေ", "လာ", "ဂါ", "ဟူး", "ကြာ", "သော", "နေ"],
|
|
6292
6292
|
longhand: [
|
|
@@ -6335,7 +6335,7 @@ var Un = {}, Cl = {
|
|
|
6335
6335
|
},
|
|
6336
6336
|
time_24hr: !0
|
|
6337
6337
|
};
|
|
6338
|
-
_.l10ns.my =
|
|
6338
|
+
_.l10ns.my = P, _.l10ns;
|
|
6339
6339
|
var N = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
6340
6340
|
l10ns: {}
|
|
6341
6341
|
}, X = {
|
|
@@ -6657,7 +6657,7 @@ var Un = {}, Cl = {
|
|
|
6657
6657
|
time_24hr: !0
|
|
6658
6658
|
};
|
|
6659
6659
|
ot.l10ns.pt = bn, ot.l10ns;
|
|
6660
|
-
var
|
|
6660
|
+
var Pt = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
6661
6661
|
l10ns: {}
|
|
6662
6662
|
}, wn = {
|
|
6663
6663
|
weekdays: {
|
|
@@ -6708,7 +6708,7 @@ var Un = {}, Cl = {
|
|
|
6708
6708
|
return "";
|
|
6709
6709
|
}
|
|
6710
6710
|
};
|
|
6711
|
-
|
|
6711
|
+
Pt.l10ns.ro = wn, Pt.l10ns;
|
|
6712
6712
|
var kn = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
6713
6713
|
l10ns: {}
|
|
6714
6714
|
}, Cn = {
|
|
@@ -6976,9 +6976,9 @@ var Un = {}, Cl = {
|
|
|
6976
6976
|
time_24hr: !0
|
|
6977
6977
|
};
|
|
6978
6978
|
Oa.l10ns.sq = Ia, Oa.l10ns;
|
|
6979
|
-
var
|
|
6979
|
+
var Pa = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
6980
6980
|
l10ns: {}
|
|
6981
|
-
},
|
|
6981
|
+
}, Va = {
|
|
6982
6982
|
weekdays: {
|
|
6983
6983
|
shorthand: ["Ned", "Pon", "Uto", "Sre", "Čet", "Pet", "Sub"],
|
|
6984
6984
|
longhand: [
|
|
@@ -7026,8 +7026,8 @@ var Un = {}, Cl = {
|
|
|
7026
7026
|
rangeSeparator: " do ",
|
|
7027
7027
|
time_24hr: !0
|
|
7028
7028
|
};
|
|
7029
|
-
|
|
7030
|
-
var
|
|
7029
|
+
Pa.l10ns.sr = Va, Pa.l10ns;
|
|
7030
|
+
var Fa = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
7031
7031
|
l10ns: {}
|
|
7032
7032
|
}, Ea = {
|
|
7033
7033
|
firstDayOfWeek: 1,
|
|
@@ -7080,7 +7080,7 @@ var Un = {}, Cl = {
|
|
|
7080
7080
|
return ".";
|
|
7081
7081
|
}
|
|
7082
7082
|
};
|
|
7083
|
-
|
|
7083
|
+
Fa.l10ns.sv = Ea, Fa.l10ns;
|
|
7084
7084
|
var Na = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
7085
7085
|
l10ns: {}
|
|
7086
7086
|
}, La = {
|
|
@@ -7552,7 +7552,7 @@ var Un = {}, Cl = {
|
|
|
7552
7552
|
mk: vn,
|
|
7553
7553
|
mn: i,
|
|
7554
7554
|
ms: h,
|
|
7555
|
-
my:
|
|
7555
|
+
my: P,
|
|
7556
7556
|
nl: X,
|
|
7557
7557
|
nn: ae,
|
|
7558
7558
|
no: q,
|
|
@@ -7565,7 +7565,7 @@ var Un = {}, Cl = {
|
|
|
7565
7565
|
sk: Mn,
|
|
7566
7566
|
sl: $a,
|
|
7567
7567
|
sq: Ia,
|
|
7568
|
-
sr:
|
|
7568
|
+
sr: Va,
|
|
7569
7569
|
sv: Ea,
|
|
7570
7570
|
th: La,
|
|
7571
7571
|
tr: ja,
|
|
@@ -7624,7 +7624,7 @@ const Al = {
|
|
|
7624
7624
|
return;
|
|
7625
7625
|
}
|
|
7626
7626
|
g(d(C + ""));
|
|
7627
|
-
},
|
|
7627
|
+
}, V = () => {
|
|
7628
7628
|
I(), s.value = !0, n("onOpen");
|
|
7629
7629
|
}, v = () => {
|
|
7630
7630
|
s.value = !1, n("onClose");
|
|
@@ -7640,7 +7640,7 @@ const Al = {
|
|
|
7640
7640
|
return;
|
|
7641
7641
|
}
|
|
7642
7642
|
(j = r.value) == null || j.fp.setDate(A, !0), W.value.textFieldValue.$touch(), n("blur");
|
|
7643
|
-
},
|
|
7643
|
+
}, F = () => {
|
|
7644
7644
|
p.value = e.defaultValue, n("update:modelValue", f(e.defaultValue));
|
|
7645
7645
|
}, 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
7646
|
{
|
|
@@ -7725,7 +7725,7 @@ const Al = {
|
|
|
7725
7725
|
key: 0,
|
|
7726
7726
|
class: "a-datetime-picker__clearable",
|
|
7727
7727
|
icon: "mdi-close-circle",
|
|
7728
|
-
onClick: re(
|
|
7728
|
+
onClick: re(F, ["stop"])
|
|
7729
7729
|
}, null, 8, ["onClick"])) : Z("", !0),
|
|
7730
7730
|
te("div", null, [
|
|
7731
7731
|
w(f(bl), {
|
|
@@ -7736,7 +7736,7 @@ const Al = {
|
|
|
7736
7736
|
"model-value": p.value,
|
|
7737
7737
|
"onUpdate:modelValue": b,
|
|
7738
7738
|
onOnClose: v,
|
|
7739
|
-
onOnOpen:
|
|
7739
|
+
onOnOpen: V,
|
|
7740
7740
|
onOnChange: O
|
|
7741
7741
|
}, null, 8, ["config", "disabled", "model-value"]),
|
|
7742
7742
|
w(pe, {
|
|
@@ -7889,12 +7889,12 @@ const xl = {
|
|
|
7889
7889
|
return "";
|
|
7890
7890
|
const { end: M } = it((j = e.v) == null ? void 0 : j.$path, ".");
|
|
7891
7891
|
return c(p + "." + m + ".model." + M);
|
|
7892
|
-
}),
|
|
7892
|
+
}), V = T(() => {
|
|
7893
7893
|
var M, x;
|
|
7894
7894
|
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(), I = J([]),
|
|
7895
|
+
}), v = T(() => e.multiple !== !1), O = Gn(), I = J([]), F = J([]), z = T(() => {
|
|
7896
7896
|
const M = /* @__PURE__ */ new Map();
|
|
7897
|
-
return
|
|
7897
|
+
return F.value.forEach((x) => {
|
|
7898
7898
|
M.set(x.value, { value: x.value, title: x.title });
|
|
7899
7899
|
}), I.value.forEach((x) => {
|
|
7900
7900
|
M.set(x.value, { value: x.value, title: x.title });
|
|
@@ -7908,7 +7908,7 @@ const xl = {
|
|
|
7908
7908
|
return [].concat(x);
|
|
7909
7909
|
}, me = async (M) => {
|
|
7910
7910
|
let x = 1, j = [];
|
|
7911
|
-
return Oe(M) ? (x = M.length, j = ue(M)) : j = ue([M]),
|
|
7911
|
+
return Oe(M) ? (x = M.length, j = ue(M)) : j = ue([M]), F.value = j, j.length === x;
|
|
7912
7912
|
}, oe = J(!1), Q = () => {
|
|
7913
7913
|
clearTimeout(s.value), s.value = void 0;
|
|
7914
7914
|
}, Me = async () => {
|
|
@@ -7916,8 +7916,8 @@ const xl = {
|
|
|
7916
7916
|
}, W = () => {
|
|
7917
7917
|
o.value = !0, Q(), Me();
|
|
7918
7918
|
}, D = T(() => {
|
|
7919
|
-
if (!e.multiple &&
|
|
7920
|
-
return
|
|
7919
|
+
if (!e.multiple && F.value[0])
|
|
7920
|
+
return F.value[0].title;
|
|
7921
7921
|
}), C = (M) => {
|
|
7922
7922
|
!e.multiple && !o.value && M.length === 0 || D.value !== M && (r.value = M);
|
|
7923
7923
|
}, A = async () => {
|
|
@@ -7927,13 +7927,13 @@ const xl = {
|
|
|
7927
7927
|
}
|
|
7928
7928
|
a.value = null;
|
|
7929
7929
|
};
|
|
7930
|
-
return
|
|
7930
|
+
return Pe(
|
|
7931
7931
|
a,
|
|
7932
7932
|
async (M, x) => {
|
|
7933
7933
|
if (M === x)
|
|
7934
7934
|
return;
|
|
7935
7935
|
if (ye(M) || S(M) || Oe(M) && M.length === 0) {
|
|
7936
|
-
if (
|
|
7936
|
+
if (F.value = [], e.disableInitFetch || oe.value === !0)
|
|
7937
7937
|
return;
|
|
7938
7938
|
s.value = setTimeout(() => {
|
|
7939
7939
|
Me();
|
|
@@ -7942,10 +7942,10 @@ const xl = {
|
|
|
7942
7942
|
}
|
|
7943
7943
|
if (!await me(M)) {
|
|
7944
7944
|
if (Oe(M)) {
|
|
7945
|
-
U.value = !0,
|
|
7945
|
+
U.value = !0, F.value = await e.fetchItemsByIds(M), U.value = !1;
|
|
7946
7946
|
return;
|
|
7947
7947
|
}
|
|
7948
|
-
U.value = !0,
|
|
7948
|
+
U.value = !0, F.value = await e.fetchItemsByIds([M]), U.value = !1;
|
|
7949
7949
|
}
|
|
7950
7950
|
},
|
|
7951
7951
|
{ immediate: !0 }
|
|
@@ -7955,7 +7955,7 @@ const xl = {
|
|
|
7955
7955
|
M !== x && (ee(M), n("searchChangeDebounced", M));
|
|
7956
7956
|
},
|
|
7957
7957
|
{ debounce: 300, maxWait: 1e3 }
|
|
7958
|
-
),
|
|
7958
|
+
), Pe(r, (M, x) => {
|
|
7959
7959
|
M !== x && n("searchChange", M);
|
|
7960
7960
|
}), (M, x) => (k(), E(an, {
|
|
7961
7961
|
modelValue: f(a),
|
|
@@ -7975,10 +7975,10 @@ const xl = {
|
|
|
7975
7975
|
}, {
|
|
7976
7976
|
label: y(() => [
|
|
7977
7977
|
t.hideLabel ? Z("", !0) : (k(), H("span", {
|
|
7978
|
-
key: f(
|
|
7978
|
+
key: f(V) + ""
|
|
7979
7979
|
}, [
|
|
7980
7980
|
B($(f(b)) + " ", 1),
|
|
7981
|
-
f(
|
|
7981
|
+
f(V) ? (k(), H("span", xl)) : Z("", !0)
|
|
7982
7982
|
]))
|
|
7983
7983
|
]),
|
|
7984
7984
|
_: 1
|
|
@@ -7998,10 +7998,10 @@ const xl = {
|
|
|
7998
7998
|
emits: ["update:modelValue"],
|
|
7999
7999
|
setup(t, { emit: n }) {
|
|
8000
8000
|
const e = t, { t: a } = G(), r = be(nt, void 0), o = be(at, void 0), s = T(() => {
|
|
8001
|
-
var
|
|
8001
|
+
var V, v;
|
|
8002
8002
|
if (!S(e.label))
|
|
8003
8003
|
return e.label;
|
|
8004
|
-
if (S(r) || S(o) || S((
|
|
8004
|
+
if (S(r) || S(o) || S((V = e.v) == null ? void 0 : V.$path))
|
|
8005
8005
|
return "";
|
|
8006
8006
|
const { end: b } = it((v = e.v) == null ? void 0 : v.$path, ".");
|
|
8007
8007
|
return a(r + "." + o + ".model." + b);
|
|
@@ -8009,22 +8009,22 @@ const xl = {
|
|
|
8009
8009
|
if (c.value)
|
|
8010
8010
|
return;
|
|
8011
8011
|
if (c.value = !0, u.value = !1, d.value === !0) {
|
|
8012
|
-
const
|
|
8013
|
-
n("update:modelValue", !
|
|
8012
|
+
const V = await e.callbackToFalse();
|
|
8013
|
+
n("update:modelValue", !V), d.value = !V, V || (u.value = !0), c.value = !1;
|
|
8014
8014
|
return;
|
|
8015
8015
|
}
|
|
8016
8016
|
const b = await e.callbackToTrue();
|
|
8017
8017
|
n("update:modelValue", b), d.value = b, b || (u.value = !0), c.value = !1;
|
|
8018
8018
|
};
|
|
8019
|
-
return
|
|
8020
|
-
b !==
|
|
8019
|
+
return Pe(m, (b, V) => {
|
|
8020
|
+
b !== V && (d.value = b, u.value = !1);
|
|
8021
8021
|
}), Nt(() => {
|
|
8022
8022
|
p.value = "remote-switch-" + Date.now();
|
|
8023
|
-
}), (b,
|
|
8024
|
-
w(
|
|
8023
|
+
}), (b, V) => (k(), H("div", Tl, [
|
|
8024
|
+
w(Vo, {
|
|
8025
8025
|
id: p.value,
|
|
8026
8026
|
modelValue: d.value,
|
|
8027
|
-
"onUpdate:modelValue":
|
|
8027
|
+
"onUpdate:modelValue": V[0] || (V[0] = (v) => d.value = v),
|
|
8028
8028
|
loading: c.value,
|
|
8029
8029
|
disabled: c.value,
|
|
8030
8030
|
onClick: re(g, ["stop"])
|
|
@@ -8050,10 +8050,10 @@ const xl = {
|
|
|
8050
8050
|
emits: ["update:modelValue"],
|
|
8051
8051
|
setup(t, { emit: n }) {
|
|
8052
8052
|
const e = t, { t: a } = G(), r = be(nt, void 0), o = be(at, void 0), s = T(() => {
|
|
8053
|
-
var
|
|
8053
|
+
var V, v;
|
|
8054
8054
|
if (!S(e.label))
|
|
8055
8055
|
return e.label;
|
|
8056
|
-
if (S(r) || S(o) || S((
|
|
8056
|
+
if (S(r) || S(o) || S((V = e.v) == null ? void 0 : V.$path))
|
|
8057
8057
|
return "";
|
|
8058
8058
|
const { end: b } = it((v = e.v) == null ? void 0 : v.$path, ".");
|
|
8059
8059
|
return a(r + "." + o + ".model." + b);
|
|
@@ -8061,18 +8061,18 @@ const xl = {
|
|
|
8061
8061
|
if (c.value)
|
|
8062
8062
|
return;
|
|
8063
8063
|
if (c.value = !0, u.value = !1, d.value === !0) {
|
|
8064
|
-
const
|
|
8065
|
-
n("update:modelValue", !
|
|
8064
|
+
const V = await e.callbackToFalse();
|
|
8065
|
+
n("update:modelValue", !V), d.value = !V, V || (u.value = !0), c.value = !1;
|
|
8066
8066
|
return;
|
|
8067
8067
|
}
|
|
8068
8068
|
const b = await e.callbackToTrue();
|
|
8069
8069
|
n("update:modelValue", b), d.value = b, b || (u.value = !0), c.value = !1;
|
|
8070
8070
|
};
|
|
8071
|
-
return
|
|
8072
|
-
b !==
|
|
8071
|
+
return Pe(m, (b, V) => {
|
|
8072
|
+
b !== V && (d.value = b, u.value = !1);
|
|
8073
8073
|
}), Nt(() => {
|
|
8074
8074
|
p.value = "a-remote-switch-" + Date.now();
|
|
8075
|
-
}), (b,
|
|
8075
|
+
}), (b, V) => (k(), H("div", $l, [
|
|
8076
8076
|
w(ie, {
|
|
8077
8077
|
id: p.value,
|
|
8078
8078
|
icon: "",
|
|
@@ -8084,9 +8084,9 @@ const xl = {
|
|
|
8084
8084
|
onClick: re(g, ["stop"])
|
|
8085
8085
|
}, {
|
|
8086
8086
|
default: y(() => [
|
|
8087
|
-
w(
|
|
8087
|
+
w(Fo, {
|
|
8088
8088
|
modelValue: d.value,
|
|
8089
|
-
"onUpdate:modelValue":
|
|
8089
|
+
"onUpdate:modelValue": V[0] || (V[0] = (v) => d.value = v),
|
|
8090
8090
|
loading: c.value,
|
|
8091
8091
|
disabled: c.value,
|
|
8092
8092
|
"hide-details": t.hideDetails,
|
|
@@ -8117,7 +8117,7 @@ const xl = {
|
|
|
8117
8117
|
]));
|
|
8118
8118
|
}
|
|
8119
8119
|
});
|
|
8120
|
-
const Il = { key: 0 },
|
|
8120
|
+
const Il = { key: 0 }, Pl = {
|
|
8121
8121
|
key: 0,
|
|
8122
8122
|
class: "required"
|
|
8123
8123
|
}, sh = /* @__PURE__ */ L({
|
|
@@ -8149,14 +8149,14 @@ const Il = { key: 0 }, Vl = {
|
|
|
8149
8149
|
n("blur", e.modelValue), (g = e.v) == null || g.$touch();
|
|
8150
8150
|
}, u = T(() => {
|
|
8151
8151
|
var g, b;
|
|
8152
|
-
return S(e.errorMessage) ? (b = (g = e.v) == null ? void 0 : g.$errors) != null && b.length ? e.v.$errors.map((
|
|
8152
|
+
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
8153
|
}), p = T(() => {
|
|
8154
|
-
var b,
|
|
8154
|
+
var b, V;
|
|
8155
8155
|
if (!S(e.label))
|
|
8156
8156
|
return e.label;
|
|
8157
8157
|
if (S(r) || S(o) || S((b = e.v) == null ? void 0 : b.$path))
|
|
8158
8158
|
return "";
|
|
8159
|
-
const { end: g } = it((
|
|
8159
|
+
const { end: g } = it((V = e.v) == null ? void 0 : V.$path, ".");
|
|
8160
8160
|
return s(r + "." + o + ".model." + g);
|
|
8161
8161
|
}), m = T(() => {
|
|
8162
8162
|
var g, b;
|
|
@@ -8164,7 +8164,7 @@ const Il = { key: 0 }, Vl = {
|
|
|
8164
8164
|
}), d = T(() => e.multiple !== !1);
|
|
8165
8165
|
return (g, b) => (k(), E(an, {
|
|
8166
8166
|
modelValue: f(a),
|
|
8167
|
-
"onUpdate:modelValue": b[0] || (b[0] = (
|
|
8167
|
+
"onUpdate:modelValue": b[0] || (b[0] = (V) => ze(a) ? a.value = V : null),
|
|
8168
8168
|
items: t.items,
|
|
8169
8169
|
"item-title": "title",
|
|
8170
8170
|
"item-value": "value",
|
|
@@ -8177,7 +8177,7 @@ const Il = { key: 0 }, Vl = {
|
|
|
8177
8177
|
label: y(() => [
|
|
8178
8178
|
t.hideLabel ? Z("", !0) : (k(), H("span", Il, [
|
|
8179
8179
|
B($(f(p)), 1),
|
|
8180
|
-
f(m) ? (k(), H("span",
|
|
8180
|
+
f(m) ? (k(), H("span", Pl)) : Z("", !0)
|
|
8181
8181
|
]))
|
|
8182
8182
|
]),
|
|
8183
8183
|
_: 1
|
|
@@ -8233,9 +8233,9 @@ const Il = { key: 0 }, Vl = {
|
|
|
8233
8233
|
}
|
|
8234
8234
|
}), r = J(""), o = J(!1), s = J(void 0), { t: c } = G({ useScope: "global" }), { innerFilter: u } = ya(e), p = () => {
|
|
8235
8235
|
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([]),
|
|
8236
|
+
}, 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
8237
|
const W = /* @__PURE__ */ new Map();
|
|
8238
|
-
return
|
|
8238
|
+
return V.value.forEach((D) => {
|
|
8239
8239
|
W.set(D.value, { value: D.value, title: D.title });
|
|
8240
8240
|
}), b.value.forEach((D) => {
|
|
8241
8241
|
W.set(D.value, { value: D.value, title: D.title });
|
|
@@ -8244,12 +8244,12 @@ const Il = { key: 0 }, Vl = {
|
|
|
8244
8244
|
O.value = !0;
|
|
8245
8245
|
const D = u.value[e.filterByField];
|
|
8246
8246
|
D.model = W, b.value = await e.fetchItems(g, u.value), O.value = !1;
|
|
8247
|
-
},
|
|
8247
|
+
}, F = (W) => {
|
|
8248
8248
|
const D = v.value.filter((C) => W.includes(C.value));
|
|
8249
8249
|
return [].concat(D);
|
|
8250
8250
|
}, z = async (W) => {
|
|
8251
8251
|
let D = 1, C = [];
|
|
8252
|
-
return Oe(W) ? (D = W.length, C =
|
|
8252
|
+
return Oe(W) ? (D = W.length, C = F(W)) : C = F([W]), V.value = C, C.length === D;
|
|
8253
8253
|
}, U = J(!1), ne = () => {
|
|
8254
8254
|
clearTimeout(s.value), s.value = void 0;
|
|
8255
8255
|
}, ee = async () => {
|
|
@@ -8257,8 +8257,8 @@ const Il = { key: 0 }, Vl = {
|
|
|
8257
8257
|
}, ue = () => {
|
|
8258
8258
|
o.value = !0, ne(), ee();
|
|
8259
8259
|
}, me = T(() => {
|
|
8260
|
-
if (!e.modelValue.multiple &&
|
|
8261
|
-
return
|
|
8260
|
+
if (!e.modelValue.multiple && V.value[0])
|
|
8261
|
+
return V.value[0].title;
|
|
8262
8262
|
}), oe = (W) => {
|
|
8263
8263
|
!e.modelValue.multiple && !o.value && W.length === 0 || me.value !== W && (r.value = W);
|
|
8264
8264
|
}, Q = async () => {
|
|
@@ -8268,13 +8268,13 @@ const Il = { key: 0 }, Vl = {
|
|
|
8268
8268
|
}
|
|
8269
8269
|
a.value = null;
|
|
8270
8270
|
}, 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
|
|
8271
|
+
return Pe(
|
|
8272
8272
|
a,
|
|
8273
8273
|
async (W, D) => {
|
|
8274
8274
|
if (W === D)
|
|
8275
8275
|
return;
|
|
8276
8276
|
if (ye(W) || S(W) || Oe(W) && W.length === 0) {
|
|
8277
|
-
if (
|
|
8277
|
+
if (V.value = [], e.disableInitFetch || U.value === !0)
|
|
8278
8278
|
return;
|
|
8279
8279
|
s.value = setTimeout(() => {
|
|
8280
8280
|
ee();
|
|
@@ -8283,10 +8283,10 @@ const Il = { key: 0 }, Vl = {
|
|
|
8283
8283
|
}
|
|
8284
8284
|
if (!await z(W)) {
|
|
8285
8285
|
if (Oe(W)) {
|
|
8286
|
-
O.value = !0,
|
|
8286
|
+
O.value = !0, V.value = await e.fetchItemsByIds(W), O.value = !1;
|
|
8287
8287
|
return;
|
|
8288
8288
|
}
|
|
8289
|
-
O.value = !0,
|
|
8289
|
+
O.value = !0, V.value = await e.fetchItemsByIds([W]), O.value = !1;
|
|
8290
8290
|
}
|
|
8291
8291
|
},
|
|
8292
8292
|
{ immediate: !0 }
|
|
@@ -8313,7 +8313,7 @@ const Il = { key: 0 }, Vl = {
|
|
|
8313
8313
|
"onClick:clear": Q
|
|
8314
8314
|
}, null, 8, ["modelValue", "items", "placeholder", "multiple", "clearable", "label", "chips", "loading"]));
|
|
8315
8315
|
}
|
|
8316
|
-
}),
|
|
8316
|
+
}), Vl = { class: "a-filter-boolean-group d-flex flex-column align-left justify-center mb-2" }, Fl = /* @__PURE__ */ L({
|
|
8317
8317
|
__name: "AFilterBooleanGroup",
|
|
8318
8318
|
props: {
|
|
8319
8319
|
modelValue: null
|
|
@@ -8328,7 +8328,7 @@ const Il = { key: 0 }, Vl = {
|
|
|
8328
8328
|
n("update:modelValue", { ...e.modelValue, model: s });
|
|
8329
8329
|
}
|
|
8330
8330
|
}), { t: r } = G(), o = T(() => e.modelValue.titleT ? r(e.modelValue.titleT) : void 0);
|
|
8331
|
-
return (s, c) => (k(), H("div",
|
|
8331
|
+
return (s, c) => (k(), H("div", Vl, [
|
|
8332
8332
|
w(_r, { class: "pr-1" }, {
|
|
8333
8333
|
default: y(() => [
|
|
8334
8334
|
te("span", null, $(f(o)), 1)
|
|
@@ -8367,7 +8367,7 @@ const Il = { key: 0 }, Vl = {
|
|
|
8367
8367
|
]));
|
|
8368
8368
|
}
|
|
8369
8369
|
});
|
|
8370
|
-
const ch = /* @__PURE__ */ gt(
|
|
8370
|
+
const ch = /* @__PURE__ */ gt(Fl, [["__scopeId", "data-v-2ee04bbf"]]), fh = /* @__PURE__ */ L({
|
|
8371
8371
|
__name: "AFilterBooleanSelect",
|
|
8372
8372
|
props: {
|
|
8373
8373
|
modelValue: null
|
|
@@ -8477,7 +8477,7 @@ const mh = /* @__PURE__ */ L({
|
|
|
8477
8477
|
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
8478
|
e.push({ name: n.route, params: { id: n.id } });
|
|
8479
8479
|
};
|
|
8480
|
-
return
|
|
8480
|
+
return Pe(
|
|
8481
8481
|
o,
|
|
8482
8482
|
async (u) => {
|
|
8483
8483
|
r.value || S(u) || u._loaded === !1 || (a.value = u, r.value = !0);
|
|
@@ -8854,7 +8854,7 @@ const vh = /* @__PURE__ */ gt(Jl, [["render", Wl]]), yh = /* @__PURE__ */ L({
|
|
|
8854
8854
|
}, 8, ["class", "data-cy", "variant", "disabled", "color", "loading", "width", "height", "onClick"]),
|
|
8855
8855
|
w(_a, {
|
|
8856
8856
|
modelValue: r.value,
|
|
8857
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
8857
|
+
"onUpdate:modelValue": d[0] || (d[0] = (V) => r.value = V),
|
|
8858
8858
|
persistent: "",
|
|
8859
8859
|
width: 500,
|
|
8860
8860
|
"no-click-animation": ""
|
|
@@ -9085,24 +9085,23 @@ const vh = /* @__PURE__ */ gt(Jl, [["render", Wl]]), yh = /* @__PURE__ */ L({
|
|
|
9085
9085
|
}), Mh = /* @__PURE__ */ L({
|
|
9086
9086
|
__name: "ATableDetailButton",
|
|
9087
9087
|
props: {
|
|
9088
|
-
recordId: null,
|
|
9089
9088
|
routeName: null,
|
|
9089
|
+
recordId: { default: void 0 },
|
|
9090
|
+
routeParams: { default: void 0 },
|
|
9090
9091
|
buttonT: { default: "common.button.detail" },
|
|
9091
9092
|
buttonClass: { default: "ml-1" },
|
|
9092
|
-
target: { default: "_self" },
|
|
9093
9093
|
dataCy: { default: "table-detail" }
|
|
9094
9094
|
},
|
|
9095
9095
|
setup(t) {
|
|
9096
|
-
const { t:
|
|
9097
|
-
return (
|
|
9096
|
+
const n = t, { t: e } = G(), a = T(() => S(n.routeParams) ? { name: n.routeName, params: { id: n.recordId } } : { name: n.routeName, params: { ...n.routeParams } });
|
|
9097
|
+
return (r, o) => (k(), E(ie, {
|
|
9098
9098
|
class: ke(t.buttonClass),
|
|
9099
9099
|
"data-cy": t.dataCy,
|
|
9100
|
-
|
|
9101
|
-
to: { name: t.routeName, params: { id: t.recordId } },
|
|
9100
|
+
to: f(a),
|
|
9102
9101
|
icon: "",
|
|
9103
9102
|
size: "x-small",
|
|
9104
9103
|
variant: "text",
|
|
9105
|
-
onClick:
|
|
9104
|
+
onClick: o[0] || (o[0] = re(() => {
|
|
9106
9105
|
}, ["stop"]))
|
|
9107
9106
|
}, {
|
|
9108
9107
|
default: y(() => [
|
|
@@ -9112,35 +9111,34 @@ const vh = /* @__PURE__ */ gt(Jl, [["render", Wl]]), yh = /* @__PURE__ */ L({
|
|
|
9112
9111
|
location: "bottom"
|
|
9113
9112
|
}, {
|
|
9114
9113
|
default: y(() => [
|
|
9115
|
-
B($(f(
|
|
9114
|
+
B($(f(e)(t.buttonT)), 1)
|
|
9116
9115
|
]),
|
|
9117
9116
|
_: 1
|
|
9118
9117
|
})
|
|
9119
9118
|
]),
|
|
9120
9119
|
_: 1
|
|
9121
|
-
}, 8, ["class", "data-cy", "
|
|
9120
|
+
}, 8, ["class", "data-cy", "to"]));
|
|
9122
9121
|
}
|
|
9123
9122
|
}), xh = /* @__PURE__ */ L({
|
|
9124
9123
|
__name: "ATableEditButton",
|
|
9125
9124
|
props: {
|
|
9126
|
-
recordId: null,
|
|
9127
9125
|
routeName: null,
|
|
9126
|
+
recordId: { default: void 0 },
|
|
9127
|
+
routeParams: { default: void 0 },
|
|
9128
9128
|
buttonT: { default: "common.button.edit" },
|
|
9129
9129
|
buttonClass: { default: "ml-1" },
|
|
9130
|
-
target: { default: "_self" },
|
|
9131
9130
|
dataCy: { default: "table-edit" }
|
|
9132
9131
|
},
|
|
9133
9132
|
setup(t) {
|
|
9134
|
-
const { t:
|
|
9135
|
-
return (
|
|
9133
|
+
const n = t, { t: e } = G(), a = T(() => S(n.routeParams) ? { name: n.routeName, params: { id: n.recordId } } : { name: n.routeName, params: { ...n.routeParams } });
|
|
9134
|
+
return (r, o) => (k(), E(ie, {
|
|
9136
9135
|
class: ke(t.buttonClass),
|
|
9137
9136
|
"data-cy": t.dataCy,
|
|
9138
|
-
|
|
9139
|
-
to: { name: t.routeName, params: { id: t.recordId } },
|
|
9137
|
+
to: f(a),
|
|
9140
9138
|
icon: "",
|
|
9141
9139
|
size: "x-small",
|
|
9142
9140
|
variant: "text",
|
|
9143
|
-
onClick:
|
|
9141
|
+
onClick: o[0] || (o[0] = re(() => {
|
|
9144
9142
|
}, ["stop"]))
|
|
9145
9143
|
}, {
|
|
9146
9144
|
default: y(() => [
|
|
@@ -9150,13 +9148,13 @@ const vh = /* @__PURE__ */ gt(Jl, [["render", Wl]]), yh = /* @__PURE__ */ L({
|
|
|
9150
9148
|
location: "bottom"
|
|
9151
9149
|
}, {
|
|
9152
9150
|
default: y(() => [
|
|
9153
|
-
B($(f(
|
|
9151
|
+
B($(f(e)(t.buttonT)), 1)
|
|
9154
9152
|
]),
|
|
9155
9153
|
_: 1
|
|
9156
9154
|
})
|
|
9157
9155
|
]),
|
|
9158
9156
|
_: 1
|
|
9159
|
-
}, 8, ["class", "data-cy", "
|
|
9157
|
+
}, 8, ["class", "data-cy", "to"]));
|
|
9160
9158
|
}
|
|
9161
9159
|
});
|
|
9162
9160
|
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 || {});
|
|
@@ -9634,7 +9632,7 @@ const Sh = /* @__PURE__ */ gt(bs, [["__scopeId", "data-v-a2015e08"]]), ws = ["on
|
|
|
9634
9632
|
}, s = T(() => e.modelValue.length > 0 ? "flat" : "tonal"), c = T(() => e.modelValue.length > 0 ? e.modelValue : void 0), u = (p) => {
|
|
9635
9633
|
n("update:modelValue", p);
|
|
9636
9634
|
};
|
|
9637
|
-
return
|
|
9635
|
+
return Pe(
|
|
9638
9636
|
() => e.modelValue,
|
|
9639
9637
|
(p, m) => {
|
|
9640
9638
|
if (p !== m && p.length !== 7 && p.length !== 7 && e.randomColor) {
|
|
@@ -9858,7 +9856,7 @@ const Ms = /* @__PURE__ */ te("br", null, null, -1), Ih = /* @__PURE__ */ L({
|
|
|
9858
9856
|
}), xs = {
|
|
9859
9857
|
key: 0,
|
|
9860
9858
|
class: "required"
|
|
9861
|
-
},
|
|
9859
|
+
}, Ph = /* @__PURE__ */ L({
|
|
9862
9860
|
__name: "AFormRemoteAutocompleteWithCached",
|
|
9863
9861
|
props: {
|
|
9864
9862
|
modelValue: null,
|
|
@@ -9886,12 +9884,12 @@ const Ms = /* @__PURE__ */ te("br", null, null, -1), Ih = /* @__PURE__ */ L({
|
|
|
9886
9884
|
set(D) {
|
|
9887
9885
|
n("update:modelValue", ct(D));
|
|
9888
9886
|
}
|
|
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),
|
|
9887
|
+
}), { 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
9888
|
m.value = !0, n("focus", s.value);
|
|
9891
9889
|
}, I = () => {
|
|
9892
9890
|
var D;
|
|
9893
9891
|
m.value = !1, (D = e.v) == null || D.$touch(), n("blur", s.value);
|
|
9894
|
-
},
|
|
9892
|
+
}, F = T(() => {
|
|
9895
9893
|
var D, C;
|
|
9896
9894
|
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
9895
|
}), z = T(() => {
|
|
@@ -9910,7 +9908,7 @@ const Ms = /* @__PURE__ */ te("br", null, null, -1), Ih = /* @__PURE__ */ L({
|
|
|
9910
9908
|
}, ue = async (D) => {
|
|
9911
9909
|
g.value = !0;
|
|
9912
9910
|
const C = b.value[e.filterByField];
|
|
9913
|
-
C.model = D, v.value.clear(), (await e.fetchItemsMinimal(
|
|
9911
|
+
C.model = D, v.value.clear(), (await e.fetchItemsMinimal(V, b.value)).forEach((M) => {
|
|
9914
9912
|
v.value.set(M[e.itemValue], M);
|
|
9915
9913
|
}), g.value = !1;
|
|
9916
9914
|
}, me = T(() => {
|
|
@@ -9937,13 +9935,13 @@ const Ms = /* @__PURE__ */ te("br", null, null, -1), Ih = /* @__PURE__ */ L({
|
|
|
9937
9935
|
D !== C && (ue(D), n("searchChangeDebounced", D));
|
|
9938
9936
|
},
|
|
9939
9937
|
{ debounce: 300, maxWait: 1e3 }
|
|
9940
|
-
),
|
|
9938
|
+
), Pe(d, (D, C) => {
|
|
9941
9939
|
if (D.length === 0 && m.value === !0 && Date.now() - Me.value > 200) {
|
|
9942
9940
|
d.value = C;
|
|
9943
9941
|
return;
|
|
9944
9942
|
}
|
|
9945
9943
|
D !== C && n("searchChange", D);
|
|
9946
|
-
}),
|
|
9944
|
+
}), Pe(
|
|
9947
9945
|
s,
|
|
9948
9946
|
async (D) => {
|
|
9949
9947
|
if (ye(D) || S(D) || Oe(D) && D.length === 0)
|
|
@@ -9961,7 +9959,7 @@ const Ms = /* @__PURE__ */ te("br", null, null, -1), Ih = /* @__PURE__ */ L({
|
|
|
9961
9959
|
"no-filter": "",
|
|
9962
9960
|
multiple: f(ne),
|
|
9963
9961
|
clearable: t.clearable,
|
|
9964
|
-
"error-messages": f(
|
|
9962
|
+
"error-messages": f(F),
|
|
9965
9963
|
loading: g.value,
|
|
9966
9964
|
onBlur: I,
|
|
9967
9965
|
onFocus: O,
|
|
@@ -10007,7 +10005,7 @@ const Ms = /* @__PURE__ */ te("br", null, null, -1), Ih = /* @__PURE__ */ L({
|
|
|
10007
10005
|
}), Ts = { class: "d-flex justify-center align-center fill-height" }, Ss = { class: "d-flex justify-center align-center flex-column" }, $s = ["src"], Os = {
|
|
10008
10006
|
key: 0,
|
|
10009
10007
|
class: "display-1 my-3"
|
|
10010
|
-
}, Is = { class: "mb-3 body-1" },
|
|
10008
|
+
}, Is = { class: "mb-3 body-1" }, Ps = { class: "py-5" }, Vs = /* @__PURE__ */ L({
|
|
10011
10009
|
__name: "ALoginView",
|
|
10012
10010
|
props: {
|
|
10013
10011
|
title: { default: void 0 },
|
|
@@ -10029,7 +10027,7 @@ const Ms = /* @__PURE__ */ te("br", null, null, -1), Ih = /* @__PURE__ */ L({
|
|
|
10029
10027
|
te("h4", Is, [
|
|
10030
10028
|
te("span", null, $(f(e)("common.system.login.text")), 1)
|
|
10031
10029
|
]),
|
|
10032
|
-
te("div",
|
|
10030
|
+
te("div", Ps, [
|
|
10033
10031
|
t.loginUrl ? (k(), E(ie, {
|
|
10034
10032
|
key: 0,
|
|
10035
10033
|
href: t.loginUrl(),
|
|
@@ -10046,7 +10044,7 @@ const Ms = /* @__PURE__ */ te("br", null, null, -1), Ih = /* @__PURE__ */ L({
|
|
|
10046
10044
|
]));
|
|
10047
10045
|
}
|
|
10048
10046
|
});
|
|
10049
|
-
const
|
|
10047
|
+
const Vh = /* @__PURE__ */ gt(Vs, [["__scopeId", "data-v-d02b0927"]]), Fh = /* @__PURE__ */ L({
|
|
10050
10048
|
__name: "ALogoutView",
|
|
10051
10049
|
props: {
|
|
10052
10050
|
logoutUrl: { type: [null, Function], default: void 0 }
|
|
@@ -10057,14 +10055,14 @@ const Fh = /* @__PURE__ */ gt(Fs, [["__scopeId", "data-v-d02b0927"]]), Ph = /* @
|
|
|
10057
10055
|
n.logoutUrl && (window.location.href = n.logoutUrl());
|
|
10058
10056
|
}), (e, a) => (k(), H("div"));
|
|
10059
10057
|
}
|
|
10060
|
-
}),
|
|
10058
|
+
}), 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" }, Eh = /* @__PURE__ */ L({
|
|
10061
10059
|
__name: "AUnauthorizedView",
|
|
10062
10060
|
props: {
|
|
10063
10061
|
returnRouteName: null
|
|
10064
10062
|
},
|
|
10065
10063
|
setup(t) {
|
|
10066
10064
|
const { t: n } = G();
|
|
10067
|
-
return (e, a) => (k(), H("div",
|
|
10065
|
+
return (e, a) => (k(), H("div", Fs, [
|
|
10068
10066
|
te("div", Es, [
|
|
10069
10067
|
te("h1", Ns, [
|
|
10070
10068
|
w(pe, {
|
|
@@ -10182,13 +10180,13 @@ const zh = (t, n = 2) => {
|
|
|
10182
10180
|
return "0 Bytes";
|
|
10183
10181
|
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
10182
|
return parseFloat((t / Math.pow(e, o)).toFixed(a)) + " " + r[o];
|
|
10185
|
-
}, xt = (t) =>
|
|
10183
|
+
}, xt = (t) => Vi.includes(t), Tt = (t, n, e = "") => Sr(n) ? t : Ko(e === "" ? t : e, n), Uh = (t, n, e = "", a = {}, r = null, o, s, c = {}) => new Promise((u, p) => {
|
|
10186
10184
|
const m = { method: n };
|
|
10187
|
-
e !== "" && (m.url = Tt(e, a)), ye(r) || (m.data = JSON.stringify(r)), t().request({ ...c, ...m }).then((d) => xt(d.status) ? d.data ? u(d.data) : p(new
|
|
10185
|
+
e !== "" && (m.url = Tt(e, a)), ye(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
10186
|
}), 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
|
|
10187
|
+
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
10188
|
}), 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
|
|
10189
|
+
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
10190
|
});
|
|
10193
10191
|
function ao() {
|
|
10194
10192
|
const t = J([]), n = (m) => {
|
|
@@ -10213,16 +10211,16 @@ function ao() {
|
|
|
10213
10211
|
querySetFilters: (m) => {
|
|
10214
10212
|
const d = !S(m._elastic);
|
|
10215
10213
|
for (const g in m) {
|
|
10216
|
-
const b = m[g],
|
|
10214
|
+
const b = m[g], V = b.field || g;
|
|
10217
10215
|
if (b.exclude)
|
|
10218
10216
|
continue;
|
|
10219
10217
|
const v = s(b);
|
|
10220
10218
|
if (!ye(v)) {
|
|
10221
10219
|
if (d) {
|
|
10222
|
-
c(
|
|
10220
|
+
c(V, v);
|
|
10223
10221
|
continue;
|
|
10224
10222
|
}
|
|
10225
|
-
o(b.variant,
|
|
10223
|
+
o(b.variant, V, v);
|
|
10226
10224
|
}
|
|
10227
10225
|
}
|
|
10228
10226
|
},
|
|
@@ -10236,8 +10234,8 @@ const Hs = (t, n) => {
|
|
|
10236
10234
|
}, Yh = (t, n, e, a = {}, r, o, s = {}, c = !1) => new Promise((u, p) => {
|
|
10237
10235
|
t().get(Tt(e, a) + Hs(n, c), s).then((m) => {
|
|
10238
10236
|
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
|
|
10237
|
+
return xt(m.status) ? (d = m.data) != null && d.data ? u(m.data.data) : p(new Ve()) : p(new pt(m.status));
|
|
10238
|
+
}).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
10239
|
}), Js = (t) => Wn(t) && Object.hasOwn(t, "totalCount"), Ws = (t) => Wn(t) && Object.hasOwn(t, "hasNextPage"), qs = (t, n) => {
|
|
10242
10240
|
const { querySetLimit: e, querySetOffset: a, querySetOrder: r, queryBuild: o, querySetFilters: s } = ao();
|
|
10243
10241
|
return e(t.rowsPerPage), a(t.page, t.rowsPerPage), r(t.sortBy, t.descending), s(n), o();
|
|
@@ -10253,31 +10251,31 @@ const Hs = (t, n) => {
|
|
|
10253
10251
|
const g = d.data;
|
|
10254
10252
|
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
10253
|
}
|
|
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
|
|
10254
|
+
return p(new Ve());
|
|
10255
|
+
}).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
10256
|
}), 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
|
|
10257
|
+
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)));
|
|
10260
10258
|
}), Hh = (t, n = {}, e, a = {}, r, o, s = {}) => new Promise((c, u) => {
|
|
10261
|
-
t().put(Tt(e, a), JSON.stringify(n), s).then((p) => xt(p.status) ? p.data ? c(p.data) : u(new
|
|
10259
|
+
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
10260
|
});
|
|
10263
10261
|
function Jh() {
|
|
10264
10262
|
return {
|
|
10265
10263
|
isAnzuFatalError: Ir,
|
|
10266
|
-
isAnzuApiForbiddenError:
|
|
10267
|
-
isAnzuApiValidationError:
|
|
10264
|
+
isAnzuApiForbiddenError: Vr,
|
|
10265
|
+
isAnzuApiValidationError: Fr,
|
|
10268
10266
|
isAnzuApiResponseCodeError: Er
|
|
10269
10267
|
};
|
|
10270
10268
|
}
|
|
10271
|
-
const
|
|
10269
|
+
const Vn = "/adm/v1/job", Fn = "job";
|
|
10272
10270
|
function Wh(t, n) {
|
|
10273
10271
|
return {
|
|
10274
|
-
fetchJobList: (s, c) => Gs(t,
|
|
10275
|
-
fetchJob: (s) => Ks(t,
|
|
10272
|
+
fetchJobList: (s, c) => Gs(t, Vn, {}, s, c, n, Fn),
|
|
10273
|
+
fetchJob: (s) => Ks(t, Vn + "/:id", { id: s }, n, Fn),
|
|
10276
10274
|
createJob: (s) => {
|
|
10277
10275
|
const c = Go(s._resourceName).slice(4);
|
|
10278
|
-
return Us(t, s,
|
|
10276
|
+
return Us(t, s, Vn + "/:type", { type: c }, n, Fn);
|
|
10279
10277
|
},
|
|
10280
|
-
deleteJob: (s) => Ys(t,
|
|
10278
|
+
deleteJob: (s) => Ys(t, Vn + "/:id", { id: s }, n, Fn)
|
|
10281
10279
|
};
|
|
10282
10280
|
}
|
|
10283
10281
|
function qh(t = []) {
|
|
@@ -10396,7 +10394,7 @@ const Gh = (t, n) => {
|
|
|
10396
10394
|
recordWas: yu,
|
|
10397
10395
|
idWasCopied: bu,
|
|
10398
10396
|
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", Iu = "Cancel",
|
|
10397
|
+
}, 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", Iu = "Cancel", Pu = "Id", Vu = "Now", Fu = "Logout", Eu = "Confirm", Nu = "Copy ID", Lu = "Add", Bu = "Download", ju = "Upload", Ru = {
|
|
10400
10398
|
create: Cu,
|
|
10401
10399
|
createAndClose: _u,
|
|
10402
10400
|
save: Du,
|
|
@@ -10409,9 +10407,9 @@ const Gh = (t, n) => {
|
|
|
10409
10407
|
advancedFilters: Ou,
|
|
10410
10408
|
cancel: Iu,
|
|
10411
10409
|
delete: "Delete",
|
|
10412
|
-
id:
|
|
10413
|
-
now:
|
|
10414
|
-
logout:
|
|
10410
|
+
id: Pu,
|
|
10411
|
+
now: Vu,
|
|
10412
|
+
logout: Fu,
|
|
10415
10413
|
confirm: Eu,
|
|
10416
10414
|
copyId: Nu,
|
|
10417
10415
|
add: Lu,
|
|
@@ -10623,12 +10621,12 @@ const Gh = (t, n) => {
|
|
|
10623
10621
|
model: xd,
|
|
10624
10622
|
filter: Td,
|
|
10625
10623
|
button: Sd
|
|
10626
|
-
}, Od = "Invalid", Id = "todo trans error_id_mismatch",
|
|
10624
|
+
}, Od = "Invalid", Id = "todo trans error_id_mismatch", Pd = "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
10625
|
noTranslation: Od,
|
|
10628
10626
|
error_id_mismatch: Id,
|
|
10629
|
-
error_field_empty:
|
|
10630
|
-
error_field_length_min:
|
|
10631
|
-
error_field_length_max:
|
|
10627
|
+
error_field_empty: Pd,
|
|
10628
|
+
error_field_length_min: Vd,
|
|
10629
|
+
error_field_length_max: Fd,
|
|
10632
10630
|
error_field_invalid: Ed,
|
|
10633
10631
|
error_field_not_unique: Nd,
|
|
10634
10632
|
error_field_value_not_found: Ld,
|
|
@@ -10712,7 +10710,7 @@ const Gh = (t, n) => {
|
|
|
10712
10710
|
add: Sc,
|
|
10713
10711
|
download: $c,
|
|
10714
10712
|
Upload: Oc
|
|
10715
|
-
},
|
|
10713
|
+
}, Pc = "System", Vc = "Nevybrané", Fc = {
|
|
10716
10714
|
true: "áno",
|
|
10717
10715
|
false: "nie"
|
|
10718
10716
|
}, Ec = {
|
|
@@ -10725,9 +10723,9 @@ const Gh = (t, n) => {
|
|
|
10725
10723
|
contains: "Kdekoľvek vo výraze",
|
|
10726
10724
|
startsWith: "Začiatok výrazu"
|
|
10727
10725
|
}, Lc = {
|
|
10728
|
-
system:
|
|
10729
|
-
notSelected:
|
|
10730
|
-
boolean:
|
|
10726
|
+
system: Pc,
|
|
10727
|
+
notSelected: Vc,
|
|
10728
|
+
boolean: Fc,
|
|
10731
10729
|
tracking: Ec,
|
|
10732
10730
|
filterPlaceholder: Nc
|
|
10733
10731
|
}, Bc = "version", jc = "New version of admin is available. For proper functioning, latest version is required.", Rc = "Reload new version", zc = {
|
|
@@ -10958,13 +10956,13 @@ const Gh = (t, n) => {
|
|
|
10958
10956
|
clear: "Clear {0}",
|
|
10959
10957
|
prependAction: "{0} prepended action",
|
|
10960
10958
|
appendAction: "{0} appended action"
|
|
10961
|
-
},
|
|
10959
|
+
}, Pf = {
|
|
10962
10960
|
counter: "{0} files",
|
|
10963
10961
|
counterSize: "{0} files ({1} in total)"
|
|
10964
|
-
},
|
|
10962
|
+
}, Vf = {
|
|
10965
10963
|
am: "AM",
|
|
10966
10964
|
pm: "PM"
|
|
10967
|
-
},
|
|
10965
|
+
}, Ff = {
|
|
10968
10966
|
ariaLabel: {
|
|
10969
10967
|
root: "Navigácia stránkovania",
|
|
10970
10968
|
next: "Ďalšia stránka",
|
|
@@ -10989,9 +10987,9 @@ const Gh = (t, n) => {
|
|
|
10989
10987
|
carousel: $f,
|
|
10990
10988
|
calendar: Of,
|
|
10991
10989
|
input: If,
|
|
10992
|
-
fileInput:
|
|
10993
|
-
timePicker:
|
|
10994
|
-
pagination:
|
|
10990
|
+
fileInput: Pf,
|
|
10991
|
+
timePicker: Vf,
|
|
10992
|
+
pagination: Ff,
|
|
10995
10993
|
rating: Ef
|
|
10996
10994
|
}, 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
10995
|
noTranslation: Lf,
|
|
@@ -11126,8 +11124,8 @@ function Om() {
|
|
|
11126
11124
|
});
|
|
11127
11125
|
}
|
|
11128
11126
|
const { t: Im } = le.global;
|
|
11129
|
-
function
|
|
11130
|
-
return Ke({ t: Im })(
|
|
11127
|
+
function Pm() {
|
|
11128
|
+
return Ke({ t: Im })(Po, {
|
|
11131
11129
|
messagePath: () => "error.jsValidation.url"
|
|
11132
11130
|
});
|
|
11133
11131
|
}
|
|
@@ -11143,11 +11141,11 @@ function tg() {
|
|
|
11143
11141
|
email: hm(),
|
|
11144
11142
|
numeric: Am(),
|
|
11145
11143
|
slug: Sm(),
|
|
11146
|
-
url:
|
|
11144
|
+
url: Pm(),
|
|
11147
11145
|
stringArrayItemLength: Om()
|
|
11148
11146
|
};
|
|
11149
11147
|
}
|
|
11150
|
-
const
|
|
11148
|
+
const Vm = ["createdAt", "modifiedAt"], { t: gr } = le.global || le, Fm = {
|
|
11151
11149
|
key: "",
|
|
11152
11150
|
title: void 0,
|
|
11153
11151
|
sortable: !1,
|
|
@@ -11159,8 +11157,8 @@ function ng(t, n, e = void 0, a = void 0, r = !1, o = void 0) {
|
|
|
11159
11157
|
for (const m of Object.keys(s))
|
|
11160
11158
|
m in o && (s[m] = o[m]);
|
|
11161
11159
|
const c = t.map((m) => {
|
|
11162
|
-
const d = { ...
|
|
11163
|
-
return S(d.title) && (S(d.title) &&
|
|
11160
|
+
const d = { ...Fm, ...m };
|
|
11161
|
+
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
11162
|
}), u = T(() => {
|
|
11165
11163
|
const m = [];
|
|
11166
11164
|
return c.forEach((d) => {
|
|
@@ -11290,21 +11288,21 @@ const ag = () => ({
|
|
|
11290
11288
|
});
|
|
11291
11289
|
function rg(t, n, e, a = "id") {
|
|
11292
11290
|
const r = J(/* @__PURE__ */ new Map()), o = J(/* @__PURE__ */ new Set()), s = (...I) => {
|
|
11293
|
-
const
|
|
11291
|
+
const F = J(/* @__PURE__ */ new Set());
|
|
11294
11292
|
for (let z = 0; z < I.length; z++) {
|
|
11295
11293
|
const U = I[z];
|
|
11296
11294
|
if (!(ye(U) || S(U))) {
|
|
11297
11295
|
if (Oe(U)) {
|
|
11298
11296
|
for (let ne = 0; ne < U.length; ne++) {
|
|
11299
11297
|
const ee = U[ne];
|
|
11300
|
-
ye(ee) || S(ee) || r.value.has(ee) ||
|
|
11298
|
+
ye(ee) || S(ee) || r.value.has(ee) || F.value.add(ee);
|
|
11301
11299
|
}
|
|
11302
11300
|
continue;
|
|
11303
11301
|
}
|
|
11304
|
-
r.value.has(U) ||
|
|
11302
|
+
r.value.has(U) || F.value.add(U);
|
|
11305
11303
|
}
|
|
11306
11304
|
}
|
|
11307
|
-
|
|
11305
|
+
F.value.forEach((z) => {
|
|
11308
11306
|
r.value.set(z, { ...n(z), _loaded: !1 }), o.value.add(z);
|
|
11309
11307
|
});
|
|
11310
11308
|
}, c = (I) => {
|
|
@@ -11312,16 +11310,16 @@ function rg(t, n, e, a = "id") {
|
|
|
11312
11310
|
}, u = (I) => {
|
|
11313
11311
|
I[a] && r.value.set(I[a], { ...I, _loaded: !0 });
|
|
11314
11312
|
}, p = (I) => {
|
|
11315
|
-
for (let
|
|
11316
|
-
r.value.set(I[
|
|
11313
|
+
for (let F = 0; F < I.length; F += 1)
|
|
11314
|
+
r.value.set(I[F][a], { ...t(I[F]), _loaded: !0 });
|
|
11317
11315
|
}, m = (I) => {
|
|
11318
|
-
for (let
|
|
11319
|
-
o.value.delete(I[
|
|
11316
|
+
for (let F = 0; F < I.length; F += 1)
|
|
11317
|
+
o.value.delete(I[F]);
|
|
11320
11318
|
};
|
|
11321
11319
|
async function d() {
|
|
11322
11320
|
if (o.value.size > 0) {
|
|
11323
|
-
const I = Array.from(o.value),
|
|
11324
|
-
m(I), p(
|
|
11321
|
+
const I = Array.from(o.value), F = await e(I);
|
|
11322
|
+
m(I), p(F);
|
|
11325
11323
|
}
|
|
11326
11324
|
}
|
|
11327
11325
|
const g = ko(
|
|
@@ -11348,8 +11346,8 @@ function rg(t, n, e, a = "id") {
|
|
|
11348
11346
|
isLoaded: (I) => {
|
|
11349
11347
|
if (!I)
|
|
11350
11348
|
return !1;
|
|
11351
|
-
const
|
|
11352
|
-
return
|
|
11349
|
+
const F = r.value.get(I);
|
|
11350
|
+
return F ? F._loaded : !1;
|
|
11353
11351
|
}
|
|
11354
11352
|
};
|
|
11355
11353
|
}
|
|
@@ -11400,7 +11398,7 @@ export {
|
|
|
11400
11398
|
Tp as AFormBooleanToggle,
|
|
11401
11399
|
nh as AFormDatetimePicker,
|
|
11402
11400
|
oh as AFormRemoteAutocomplete,
|
|
11403
|
-
|
|
11401
|
+
Ph as AFormRemoteAutocompleteWithCached,
|
|
11404
11402
|
ih as AFormRemoteCheckbox,
|
|
11405
11403
|
lh as AFormRemoteSwitch,
|
|
11406
11404
|
Mp as AFormTextField,
|
|
@@ -11409,10 +11407,10 @@ export {
|
|
|
11409
11407
|
eo as AIconGroup,
|
|
11410
11408
|
mh as AJobStatusChip,
|
|
11411
11409
|
Sh as ALanguageSelect,
|
|
11412
|
-
|
|
11410
|
+
Pp as ALogData,
|
|
11413
11411
|
hh as ALogLevelChip,
|
|
11414
|
-
|
|
11415
|
-
|
|
11412
|
+
Vh as ALoginView,
|
|
11413
|
+
Fh as ALogoutView,
|
|
11416
11414
|
Nh as ANotFoundView,
|
|
11417
11415
|
Kp as APermissionGrantEditor,
|
|
11418
11416
|
Zp as APermissionValueChip,
|
|
@@ -11431,7 +11429,7 @@ export {
|
|
|
11431
11429
|
ht as AnzuApiForbiddenOperationError,
|
|
11432
11430
|
pt as AnzuApiResponseCodeError,
|
|
11433
11431
|
mt as AnzuApiValidationError,
|
|
11434
|
-
|
|
11432
|
+
Ve as AnzuFatalError,
|
|
11435
11433
|
th as AnzuSystemsCommonAdmin,
|
|
11436
11434
|
Hr as AvailableLanguagesSymbol,
|
|
11437
11435
|
mr as COMMON_CONFIG,
|
|
@@ -11440,13 +11438,13 @@ export {
|
|
|
11440
11438
|
Jr as DefaultLanguageSymbol,
|
|
11441
11439
|
En as Grant,
|
|
11442
11440
|
Rr as GrantOrigin,
|
|
11443
|
-
|
|
11441
|
+
Vp as HTTP_STATUS_BAD_REQUEST,
|
|
11444
11442
|
Oi as HTTP_STATUS_CREATED,
|
|
11445
|
-
|
|
11443
|
+
Pi as HTTP_STATUS_FORBIDDEN,
|
|
11446
11444
|
Ii as HTTP_STATUS_NO_CONTENT,
|
|
11447
11445
|
$i as HTTP_STATUS_OK,
|
|
11448
|
-
|
|
11449
|
-
|
|
11446
|
+
Fp as HTTP_STATUS_UNAUTHORIZED,
|
|
11447
|
+
Pr as HTTP_STATUS_UNPROCESSABLE_ENTITY,
|
|
11450
11448
|
El as JobStatus,
|
|
11451
11449
|
jl as LogLevel,
|
|
11452
11450
|
ji as NEW_LINE_MARK,
|
|
@@ -11484,10 +11482,10 @@ export {
|
|
|
11484
11482
|
rg as defineCached,
|
|
11485
11483
|
lt as eventClickBlur,
|
|
11486
11484
|
le as i18n,
|
|
11487
|
-
|
|
11485
|
+
Vr as isAnzuApiForbiddenError,
|
|
11488
11486
|
Li as isAnzuApiForbiddenOperationError,
|
|
11489
11487
|
Er as isAnzuApiResponseCodeError,
|
|
11490
|
-
|
|
11488
|
+
Fr as isAnzuApiValidationError,
|
|
11491
11489
|
Ir as isAnzuFatalError,
|
|
11492
11490
|
Oe as isArray,
|
|
11493
11491
|
ar as isBoolean,
|