@anzusystems/common-admin 0.0.48 → 0.0.49
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 +1 -1
- package/dist/common-admin.es.js +250 -250
- package/dist/common-admin.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/common-admin.es.js
CHANGED
|
@@ -16,7 +16,7 @@ import { VBtnToggle as Wn } from "vuetify/lib/components/VBtnToggle/index.mjs";
|
|
|
16
16
|
import { VLabel as Ar } from "vuetify/lib/components/VLabel/index.mjs";
|
|
17
17
|
import { VList as rn, VListItem as Qe, VListItemTitle as tn, VListItemSubtitle as bo } from "vuetify/lib/components/VList/index.mjs";
|
|
18
18
|
import { VMenu as Dt } from "vuetify/lib/components/VMenu/index.mjs";
|
|
19
|
-
import { VTooltip as
|
|
19
|
+
import { VTooltip as Ve } from "vuetify/lib/components/VTooltip/index.mjs";
|
|
20
20
|
import { VToolbar as Dr, VToolbarTitle as _r } from "vuetify/lib/components/VToolbar/index.mjs";
|
|
21
21
|
import { useRouter as Ca } from "vue-router";
|
|
22
22
|
import Aa from "axios";
|
|
@@ -24,9 +24,9 @@ import { VDialog as Da } from "vuetify/lib/components/VDialog/index.mjs";
|
|
|
24
24
|
import { useFetch as wo, watchDebounced as _a, useClipboard as Mr, useStorage as xr, useIntervalFn as ko, useDebounceFn as Co } from "@vueuse/core";
|
|
25
25
|
import { VExpandTransition as Ao } from "vuetify/lib/components/transitions/index.mjs";
|
|
26
26
|
import Do from "@vuelidate/core";
|
|
27
|
-
import { createI18nMessage as Ke, requiredIf as _o, between as Mo, email as xo, maxLength as To, maxValue as So, minLength as $o, minValue as Oo, numeric as Po, required as Io, helpers as Tr, url as
|
|
27
|
+
import { createI18nMessage as Ke, requiredIf as _o, between as Mo, email as xo, maxLength as To, maxValue as So, minLength as $o, minValue as Oo, numeric as Po, required as Io, helpers as Tr, url as Fo } from "@vuelidate/validators";
|
|
28
28
|
import { VAutocomplete as on } from "vuetify/lib/components/VAutocomplete/index.mjs";
|
|
29
|
-
import { VCheckboxBtn as
|
|
29
|
+
import { VCheckboxBtn as Vo } from "vuetify/lib/components/VCheckbox/index.mjs";
|
|
30
30
|
import { VSwitch as Eo } from "vuetify/lib/components/VSwitch/index.mjs";
|
|
31
31
|
import { VSelect as No } from "vuetify/lib/components/VSelect/index.mjs";
|
|
32
32
|
import { VProgressCircular as Xn } from "vuetify/lib/components/VProgressCircular/index.mjs";
|
|
@@ -428,7 +428,7 @@ const kp = /* @__PURE__ */ L({
|
|
|
428
428
|
}), ti = { class: "anzu-data-footer" }, ni = {
|
|
429
429
|
key: 0,
|
|
430
430
|
class: "anzu-data-footer__page-limit"
|
|
431
|
-
}, ai = { class: "anzu-data-footer__pagination" }, ri = { class: "anzu-data-footer__icons-before" }, oi = { class: "current-page" }, ii = { class: "anzu-data-footer__icons-after" },
|
|
431
|
+
}, ai = { class: "anzu-data-footer__pagination" }, ri = { class: "anzu-data-footer__icons-before" }, oi = { class: "current-page" }, ii = { class: "anzu-data-footer__icons-after" }, Fp = /* @__PURE__ */ L({
|
|
432
432
|
__name: "ADatatablePagination",
|
|
433
433
|
props: {
|
|
434
434
|
modelValue: null,
|
|
@@ -441,18 +441,18 @@ const kp = /* @__PURE__ */ L({
|
|
|
441
441
|
get() {
|
|
442
442
|
return e.modelValue;
|
|
443
443
|
},
|
|
444
|
-
set(
|
|
445
|
-
n("update:modelValue", ft(
|
|
444
|
+
set(V) {
|
|
445
|
+
n("update:modelValue", ft(V));
|
|
446
446
|
}
|
|
447
447
|
}), { t: r } = G(), o = x(() => Math.ceil(a.value.totalCount / a.value.rowsPerPage)), s = x(() => a.value.page * a.value.rowsPerPage - a.value.rowsPerPage + 1), c = x(() => a.value.page * a.value.rowsPerPage - a.value.rowsPerPage + a.value.currentViewCount), u = x(() => a.value.page === 1), p = x(() => !ve(a.value.hasNextPage) || a.value.page === o.value), m = x(() => ve(a.value.hasNextPage) && a.value.page === o.value || a.value.hasNextPage === !1), d = x(() => ve(a.value.hasNextPage) ? a.value.totalCount : a.value.hasNextPage ? c.value + 1 + "+" : c.value), v = x(() => a.value.rowsPerPage);
|
|
448
|
-
Ie(v, (
|
|
449
|
-
|
|
448
|
+
Ie(v, (V, R) => {
|
|
449
|
+
V !== R && (a.value.page = 1, n("change"));
|
|
450
450
|
});
|
|
451
451
|
const k = x(() => a.value.page);
|
|
452
|
-
Ie(k, (
|
|
453
|
-
|
|
452
|
+
Ie(k, (V, R) => {
|
|
453
|
+
V !== R && n("change");
|
|
454
454
|
});
|
|
455
|
-
const
|
|
455
|
+
const F = () => {
|
|
456
456
|
a.value.page = 1;
|
|
457
457
|
}, y = () => {
|
|
458
458
|
a.value.page = o.value;
|
|
@@ -461,7 +461,7 @@ const kp = /* @__PURE__ */ L({
|
|
|
461
461
|
}, P = () => {
|
|
462
462
|
a.value.page = a.value.page + 1;
|
|
463
463
|
};
|
|
464
|
-
return (
|
|
464
|
+
return (V, R) => (w(), H("div", ti, [
|
|
465
465
|
t.hideRecordsPerPage ? Z("", !0) : (w(), H("div", ni, [
|
|
466
466
|
B($(f(r)("common.system.datatable.itemsPerPage")) + ": ", 1),
|
|
467
467
|
b(Wn, {
|
|
@@ -497,7 +497,7 @@ const kp = /* @__PURE__ */ L({
|
|
|
497
497
|
icon: "mdi-page-first",
|
|
498
498
|
size: "small",
|
|
499
499
|
variant: "text",
|
|
500
|
-
onClick: ne(
|
|
500
|
+
onClick: ne(F, ["stop"])
|
|
501
501
|
}, null, 8, ["disabled", "onClick"]),
|
|
502
502
|
b(oe, {
|
|
503
503
|
disabled: f(u),
|
|
@@ -529,7 +529,7 @@ const kp = /* @__PURE__ */ L({
|
|
|
529
529
|
]));
|
|
530
530
|
}
|
|
531
531
|
});
|
|
532
|
-
const
|
|
532
|
+
const Vp = /* @__PURE__ */ L({
|
|
533
533
|
__name: "ADatatableConfigButton",
|
|
534
534
|
props: {
|
|
535
535
|
columnsAll: null,
|
|
@@ -558,7 +558,7 @@ const Fp = /* @__PURE__ */ L({
|
|
|
558
558
|
}, {
|
|
559
559
|
default: g(() => [
|
|
560
560
|
b(me, { icon: "mdi-cog" }),
|
|
561
|
-
b(
|
|
561
|
+
b(Ve, {
|
|
562
562
|
activator: "parent",
|
|
563
563
|
location: "bottom"
|
|
564
564
|
}, {
|
|
@@ -654,7 +654,7 @@ const Fp = /* @__PURE__ */ L({
|
|
|
654
654
|
(d, v) => {
|
|
655
655
|
if (S(v) || d === v)
|
|
656
656
|
return;
|
|
657
|
-
const k = p.value.find((
|
|
657
|
+
const k = p.value.find((F) => F.id === d);
|
|
658
658
|
k && n("sortByChange", k);
|
|
659
659
|
},
|
|
660
660
|
{ immediate: !0 }
|
|
@@ -687,7 +687,7 @@ const Fp = /* @__PURE__ */ L({
|
|
|
687
687
|
default: g(() => [
|
|
688
688
|
(w(!0), H(Ye, null, At(f(p), (k) => (w(), E(Qe, {
|
|
689
689
|
key: k.id,
|
|
690
|
-
onClick: (
|
|
690
|
+
onClick: (F) => m(k)
|
|
691
691
|
}, {
|
|
692
692
|
default: g(() => [
|
|
693
693
|
b(tn, {
|
|
@@ -1180,16 +1180,16 @@ const lr = ["en", "sk"], le = go({
|
|
|
1180
1180
|
missing: (t, n) => {
|
|
1181
1181
|
lr.includes(t) && console.warn(`Missing ${t} translation: ${n}`);
|
|
1182
1182
|
}
|
|
1183
|
-
}), Pr = (t) => t instanceof
|
|
1184
|
-
class
|
|
1183
|
+
}), Pr = (t) => t instanceof Fe;
|
|
1184
|
+
class Fe extends Error {
|
|
1185
1185
|
constructor(n, e = "") {
|
|
1186
1186
|
super(e), this.name = "AnzuFatalError", this.cause = n, this.message = e;
|
|
1187
1187
|
}
|
|
1188
1188
|
}
|
|
1189
|
-
const Oi = 200, Pi = 201, Ii = 204, Lp = 400, Bp = 401,
|
|
1189
|
+
const Oi = 200, Pi = 201, Ii = 204, Lp = 400, Bp = 401, Fi = 403, Ir = 422, Vi = [Oi, Pi, Ii], _t = (t) => {
|
|
1190
1190
|
var n;
|
|
1191
|
-
return Aa.isAxiosError(t) && ((n = t.response) == null ? void 0 : n.status) ===
|
|
1192
|
-
},
|
|
1191
|
+
return Aa.isAxiosError(t) && ((n = t.response) == null ? void 0 : n.status) === Fi;
|
|
1192
|
+
}, Fr = (t) => t instanceof mt;
|
|
1193
1193
|
class mt extends Error {
|
|
1194
1194
|
constructor(n, e = "") {
|
|
1195
1195
|
super(e), this.name = "AnzuApiForbiddenError", this.cause = n, this.message = e;
|
|
@@ -1198,7 +1198,7 @@ class mt extends Error {
|
|
|
1198
1198
|
const Ei = "validation_failed", Mt = (t) => {
|
|
1199
1199
|
var n, e, a;
|
|
1200
1200
|
return Aa.isAxiosError(t) && ((n = t.response) == null ? void 0 : n.status) === Ir && ((e = t.response.data) == null ? void 0 : e.error) === Ei && ((a = t.response.data) == null ? void 0 : a.fields);
|
|
1201
|
-
},
|
|
1201
|
+
}, Vr = (t) => t instanceof pt;
|
|
1202
1202
|
function Ni(t, n, e) {
|
|
1203
1203
|
var o;
|
|
1204
1204
|
const a = (o = t.response) == null ? void 0 : o.data, r = [];
|
|
@@ -1299,17 +1299,17 @@ function Ta() {
|
|
|
1299
1299
|
type: "success"
|
|
1300
1300
|
});
|
|
1301
1301
|
}, m = (y, O = -1, P = !1) => {
|
|
1302
|
-
const { t:
|
|
1302
|
+
const { t: V, te: R } = le.global, U = [V("common.alert.fixApiValidationErrors")];
|
|
1303
1303
|
for (let ae = 0; ae < y.length; ae++) {
|
|
1304
1304
|
let ee = "";
|
|
1305
|
-
P ? ee += y[ae].field : R(y[ae].field) && (ee +=
|
|
1305
|
+
P ? ee += y[ae].field : R(y[ae].field) && (ee += V(y[ae].field));
|
|
1306
1306
|
const ue = /* @__PURE__ */ new Set();
|
|
1307
1307
|
for (let pe = 0; pe < y[ae].errors.length; pe++) {
|
|
1308
1308
|
if (R("error.apiValidation." + y[ae].errors[pe])) {
|
|
1309
|
-
ue.add(
|
|
1309
|
+
ue.add(V("error.apiValidation." + y[ae].errors[pe]));
|
|
1310
1310
|
continue;
|
|
1311
1311
|
}
|
|
1312
|
-
ue.add(
|
|
1312
|
+
ue.add(V("error.apiValidation.noTranslation"));
|
|
1313
1313
|
}
|
|
1314
1314
|
ee.length > 0 && U.push(ee + ": " + Array.from(ue).join(", "));
|
|
1315
1315
|
}
|
|
@@ -1320,9 +1320,9 @@ function Ta() {
|
|
|
1320
1320
|
type: "error"
|
|
1321
1321
|
});
|
|
1322
1322
|
}, d = (y, O = -1) => {
|
|
1323
|
-
const { t: P, te:
|
|
1323
|
+
const { t: P, te: V } = le.global;
|
|
1324
1324
|
let R = P("error.apiForbiddenOperation.noTranslation");
|
|
1325
|
-
|
|
1325
|
+
V("error.apiForbiddenOperation." + y) && (R = P("error.apiForbiddenOperation." + y)), qe({
|
|
1326
1326
|
group: "alerts",
|
|
1327
1327
|
text: R,
|
|
1328
1328
|
duration: O * 1e3,
|
|
@@ -1360,7 +1360,7 @@ function Ta() {
|
|
|
1360
1360
|
showApiForbiddenOperationError: d,
|
|
1361
1361
|
showUnknownError: v,
|
|
1362
1362
|
showForbiddenError: k,
|
|
1363
|
-
showErrorsDefault: (y) =>
|
|
1363
|
+
showErrorsDefault: (y) => Fr(y) ? (k(), !0) : Vr(y) ? (m(y.fields), !0) : Bi(y) ? (d(y.detail), !0) : Pr(y) || Er(y) ? (v(), !0) : !1
|
|
1364
1364
|
};
|
|
1365
1365
|
}
|
|
1366
1366
|
const jp = /* @__PURE__ */ L({
|
|
@@ -1402,7 +1402,7 @@ const jp = /* @__PURE__ */ L({
|
|
|
1402
1402
|
}
|
|
1403
1403
|
};
|
|
1404
1404
|
return (v, k) => {
|
|
1405
|
-
const
|
|
1405
|
+
const F = Nt("ABtnTertiary"), y = Nt("ABtnPrimary");
|
|
1406
1406
|
return w(), E(y, {
|
|
1407
1407
|
class: be(t.buttonClass),
|
|
1408
1408
|
rounded: "pill",
|
|
@@ -1442,7 +1442,7 @@ const jp = /* @__PURE__ */ L({
|
|
|
1442
1442
|
b(ka, null, {
|
|
1443
1443
|
default: g(() => [
|
|
1444
1444
|
b(en),
|
|
1445
|
-
b(
|
|
1445
|
+
b(F, {
|
|
1446
1446
|
"data-cy": "button-cancel",
|
|
1447
1447
|
onClick: ne(s, ["stop"])
|
|
1448
1448
|
}, {
|
|
@@ -1499,7 +1499,7 @@ const jp = /* @__PURE__ */ L({
|
|
|
1499
1499
|
}, {
|
|
1500
1500
|
default: g(() => [
|
|
1501
1501
|
b(me, { icon: "mdi-dots-grid" }),
|
|
1502
|
-
b(
|
|
1502
|
+
b(Ve, {
|
|
1503
1503
|
activator: "parent",
|
|
1504
1504
|
location: "top"
|
|
1505
1505
|
}, {
|
|
@@ -1565,7 +1565,7 @@ var fa = {}, qi = {
|
|
|
1565
1565
|
(function(e, a) {
|
|
1566
1566
|
t.exports = a();
|
|
1567
1567
|
})(Sa, function() {
|
|
1568
|
-
var e = 1e3, a = 6e4, r = 36e5, o = "millisecond", s = "second", c = "minute", u = "hour", p = "day", m = "week", d = "month", v = "quarter", k = "year",
|
|
1568
|
+
var e = 1e3, a = 6e4, r = 36e5, o = "millisecond", s = "second", c = "minute", u = "hour", p = "day", m = "week", d = "month", v = "quarter", k = "year", F = "date", y = "Invalid Date", O = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, P = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, V = { 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) {
|
|
1569
1569
|
var C = ["th", "st", "nd", "rd"], _ = D % 100;
|
|
1570
1570
|
return "[" + D + (C[(_ - 20) % 10] || C[_] || C[0]) + "]";
|
|
1571
1571
|
} }, R = function(D, C, _) {
|
|
@@ -1582,11 +1582,11 @@ var fa = {}, qi = {
|
|
|
1582
1582
|
}, a: function(D) {
|
|
1583
1583
|
return D < 0 ? Math.ceil(D) || 0 : Math.floor(D);
|
|
1584
1584
|
}, p: function(D) {
|
|
1585
|
-
return { M: d, y: k, w: m, d: p, D:
|
|
1585
|
+
return { M: d, y: k, w: m, d: p, D: F, h: u, m: c, s, ms: o, Q: v }[D] || String(D || "").toLowerCase().replace(/s$/, "");
|
|
1586
1586
|
}, u: function(D) {
|
|
1587
1587
|
return D === void 0;
|
|
1588
1588
|
} }, ae = "en", ee = {};
|
|
1589
|
-
ee[ae] =
|
|
1589
|
+
ee[ae] = V;
|
|
1590
1590
|
var ue = function(D) {
|
|
1591
1591
|
return D instanceof Me;
|
|
1592
1592
|
}, pe = function D(C, _, M) {
|
|
@@ -1672,7 +1672,7 @@ var fa = {}, qi = {
|
|
|
1672
1672
|
var He = this.$locale().weekStart || 0, Le = (ge < He ? ge + 7 : ge) - He;
|
|
1673
1673
|
return se(j ? Ne - Le : Ne + (6 - Le), Ce);
|
|
1674
1674
|
case p:
|
|
1675
|
-
case
|
|
1675
|
+
case F:
|
|
1676
1676
|
return he(xe + "Hours", 0);
|
|
1677
1677
|
case u:
|
|
1678
1678
|
return he(xe + "Minutes", 1);
|
|
@@ -1686,10 +1686,10 @@ var fa = {}, qi = {
|
|
|
1686
1686
|
}, C.endOf = function(_) {
|
|
1687
1687
|
return this.startOf(_, !1);
|
|
1688
1688
|
}, C.$set = function(_, M) {
|
|
1689
|
-
var T, j = Q.p(_), K = "set" + (this.$u ? "UTC" : ""), se = (T = {}, T[p] = K + "Date", T[
|
|
1689
|
+
var T, j = Q.p(_), K = "set" + (this.$u ? "UTC" : ""), se = (T = {}, T[p] = K + "Date", T[F] = K + "Date", T[d] = K + "Month", T[k] = K + "FullYear", T[u] = K + "Hours", T[c] = K + "Minutes", T[s] = K + "Seconds", T[o] = K + "Milliseconds", T)[j], he = j === p ? this.$D + (M - this.$W) : M;
|
|
1690
1690
|
if (j === d || j === k) {
|
|
1691
|
-
var ge = this.clone().set(
|
|
1692
|
-
ge.$d[se](he), ge.init(), this.$d = ge.set(
|
|
1691
|
+
var ge = this.clone().set(F, 1);
|
|
1692
|
+
ge.$d[se](he), ge.init(), this.$d = ge.set(F, Math.min(this.$D, ge.daysInMonth())).$d;
|
|
1693
1693
|
} else
|
|
1694
1694
|
se && this.$d[se](he);
|
|
1695
1695
|
return this.init(), this;
|
|
@@ -1757,7 +1757,7 @@ var fa = {}, qi = {
|
|
|
1757
1757
|
return this.$d.toUTCString();
|
|
1758
1758
|
}, D;
|
|
1759
1759
|
}(), W = Me.prototype;
|
|
1760
|
-
return ie.prototype = W, [["$ms", o], ["$s", s], ["$m", c], ["$H", u], ["$W", p], ["$M", d], ["$y", k], ["$D",
|
|
1760
|
+
return ie.prototype = W, [["$ms", o], ["$s", s], ["$m", c], ["$H", u], ["$W", p], ["$M", d], ["$y", k], ["$D", F]].forEach(function(D) {
|
|
1761
1761
|
W[D[1]] = function(C) {
|
|
1762
1762
|
return this.$g(C, D[0], D[1]);
|
|
1763
1763
|
};
|
|
@@ -1819,12 +1819,12 @@ var ma = {}, Gi = {
|
|
|
1819
1819
|
return ie === 0 ? 0 : pe === "+" ? ie : -ie;
|
|
1820
1820
|
}(y), y === null))
|
|
1821
1821
|
return this;
|
|
1822
|
-
var
|
|
1822
|
+
var V = Math.abs(y) <= 16 ? 60 * y : y, R = this;
|
|
1823
1823
|
if (O)
|
|
1824
|
-
return R.$offset =
|
|
1824
|
+
return R.$offset = V, R.$u = y === 0, R;
|
|
1825
1825
|
if (y !== 0) {
|
|
1826
1826
|
var U = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
1827
|
-
(R = this.local().add(
|
|
1827
|
+
(R = this.local().add(V + U, e)).$offset = V, R.$x.$localOffset = U;
|
|
1828
1828
|
} else
|
|
1829
1829
|
R = this.utc();
|
|
1830
1830
|
return R;
|
|
@@ -1847,12 +1847,12 @@ var ma = {}, Gi = {
|
|
|
1847
1847
|
u.toDate = function(y) {
|
|
1848
1848
|
return y === "s" && this.$offset ? c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : k.call(this);
|
|
1849
1849
|
};
|
|
1850
|
-
var
|
|
1850
|
+
var F = u.diff;
|
|
1851
1851
|
u.diff = function(y, O, P) {
|
|
1852
1852
|
if (y && this.$u === y.$u)
|
|
1853
|
-
return
|
|
1854
|
-
var
|
|
1855
|
-
return
|
|
1853
|
+
return F.call(this, y, O, P);
|
|
1854
|
+
var V = this.local(), R = c(y).local();
|
|
1855
|
+
return F.call(V, R, O, P);
|
|
1856
1856
|
};
|
|
1857
1857
|
};
|
|
1858
1858
|
});
|
|
@@ -2028,7 +2028,7 @@ const Zp = /* @__PURE__ */ L({
|
|
|
2028
2028
|
}, {
|
|
2029
2029
|
default: g(() => [
|
|
2030
2030
|
b(me, { icon: f(r) }, null, 8, ["icon"]),
|
|
2031
|
-
b(
|
|
2031
|
+
b(Ve, {
|
|
2032
2032
|
activator: "parent",
|
|
2033
2033
|
location: "bottom"
|
|
2034
2034
|
}, {
|
|
@@ -2093,7 +2093,7 @@ const Zp = /* @__PURE__ */ L({
|
|
|
2093
2093
|
color: "grey darken-1",
|
|
2094
2094
|
icon: "mdi-filter-remove-outline"
|
|
2095
2095
|
}),
|
|
2096
|
-
b(
|
|
2096
|
+
b(Ve, {
|
|
2097
2097
|
activator: "parent",
|
|
2098
2098
|
location: "bottom"
|
|
2099
2099
|
}, {
|
|
@@ -2437,7 +2437,7 @@ var na = [
|
|
|
2437
2437
|
"onValueUpdate",
|
|
2438
2438
|
"onYearChange",
|
|
2439
2439
|
"onPreCalendarPosition"
|
|
2440
|
-
],
|
|
2440
|
+
], Vt = {
|
|
2441
2441
|
_disable: [],
|
|
2442
2442
|
allowInput: !1,
|
|
2443
2443
|
allowInvalidPreload: !1,
|
|
@@ -2595,7 +2595,7 @@ function ce(t, n, e) {
|
|
|
2595
2595
|
var a = window.document.createElement(t);
|
|
2596
2596
|
return n = n || "", e = e || "", a.className = n, e !== void 0 && (a.textContent = e), a;
|
|
2597
2597
|
}
|
|
2598
|
-
function
|
|
2598
|
+
function Fn(t) {
|
|
2599
2599
|
for (; t.firstChild; )
|
|
2600
2600
|
t.removeChild(t.firstChild);
|
|
2601
2601
|
}
|
|
@@ -2605,7 +2605,7 @@ function qr(t, n) {
|
|
|
2605
2605
|
if (t.parentNode)
|
|
2606
2606
|
return qr(t.parentNode, n);
|
|
2607
2607
|
}
|
|
2608
|
-
function
|
|
2608
|
+
function Vn(t, n) {
|
|
2609
2609
|
var e = ce("div", "numInputWrapper"), a = ce("input", "numInput " + t), r = ce("span", "arrowUp"), o = ce("span", "arrowDown");
|
|
2610
2610
|
if (navigator.userAgent.indexOf("MSIE 9.0") === -1 ? a.type = "number" : (a.type = "text", a.pattern = "\\d*"), n !== void 0)
|
|
2611
2611
|
for (var s in n)
|
|
@@ -2786,7 +2786,7 @@ var ra = function() {
|
|
|
2786
2786
|
return String(t.getFullYear()).substring(2);
|
|
2787
2787
|
}
|
|
2788
2788
|
}, Gr = function(t) {
|
|
2789
|
-
var n = t.config, e = n === void 0 ?
|
|
2789
|
+
var n = t.config, e = n === void 0 ? Vt : n, a = t.l10n, r = a === void 0 ? nn : a, o = t.isMobile, s = o === void 0 ? !1 : o;
|
|
2790
2790
|
return function(c, u, p) {
|
|
2791
2791
|
var m = p || r;
|
|
2792
2792
|
return e.formatDate !== void 0 && !s ? e.formatDate(c, u, m) : u.split("").map(function(d, v, k) {
|
|
@@ -2794,7 +2794,7 @@ var ra = function() {
|
|
|
2794
2794
|
}).join("");
|
|
2795
2795
|
};
|
|
2796
2796
|
}, ha = function(t) {
|
|
2797
|
-
var n = t.config, e = n === void 0 ?
|
|
2797
|
+
var n = t.config, e = n === void 0 ? Vt : n, a = t.l10n, r = a === void 0 ? nn : a;
|
|
2798
2798
|
return function(o, s, c, u) {
|
|
2799
2799
|
if (!(o !== 0 && !o)) {
|
|
2800
2800
|
var p = u || r, m, d = o;
|
|
@@ -2803,7 +2803,7 @@ var ra = function() {
|
|
|
2803
2803
|
else if (typeof o != "string" && o.toFixed !== void 0)
|
|
2804
2804
|
m = new Date(o);
|
|
2805
2805
|
else if (typeof o == "string") {
|
|
2806
|
-
var v = s || (e ||
|
|
2806
|
+
var v = s || (e || Vt).dateFormat, k = String(o).trim();
|
|
2807
2807
|
if (k === "today")
|
|
2808
2808
|
m = /* @__PURE__ */ new Date(), c = !0;
|
|
2809
2809
|
else if (e && e.parseDate)
|
|
@@ -2811,22 +2811,22 @@ var ra = function() {
|
|
|
2811
2811
|
else if (/Z$/.test(k) || /GMT$/.test(k))
|
|
2812
2812
|
m = new Date(o);
|
|
2813
2813
|
else {
|
|
2814
|
-
for (var
|
|
2814
|
+
for (var F = void 0, y = [], O = 0, P = 0, V = ""; O < v.length; O++) {
|
|
2815
2815
|
var R = v[O], U = R === "\\", ae = v[O - 1] === "\\" || U;
|
|
2816
2816
|
if (kt[R] && !ae) {
|
|
2817
|
-
|
|
2818
|
-
var ee = new RegExp(
|
|
2819
|
-
ee && (
|
|
2817
|
+
V += kt[R];
|
|
2818
|
+
var ee = new RegExp(V).exec(o);
|
|
2819
|
+
ee && (F = !0) && y[R !== "Y" ? "push" : "unshift"]({
|
|
2820
2820
|
fn: fl[R],
|
|
2821
2821
|
val: ee[++P]
|
|
2822
2822
|
});
|
|
2823
2823
|
} else
|
|
2824
|
-
U || (
|
|
2824
|
+
U || (V += ".");
|
|
2825
2825
|
}
|
|
2826
2826
|
m = !e || !e.noCalendar ? new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1, 0, 0, 0, 0) : new Date((/* @__PURE__ */ new Date()).setHours(0, 0, 0, 0)), y.forEach(function(ue) {
|
|
2827
2827
|
var pe = ue.fn, ie = ue.val;
|
|
2828
2828
|
return m = pe(m, ie, p) || m;
|
|
2829
|
-
}), m =
|
|
2829
|
+
}), m = F ? m : void 0;
|
|
2830
2830
|
}
|
|
2831
2831
|
}
|
|
2832
2832
|
if (!(m instanceof Date && !isNaN(m.getTime()))) {
|
|
@@ -2896,10 +2896,10 @@ var $e = globalThis && globalThis.__assign || function() {
|
|
|
2896
2896
|
}, gl = 300;
|
|
2897
2897
|
function vl(t, n) {
|
|
2898
2898
|
var e = {
|
|
2899
|
-
config: $e($e({},
|
|
2899
|
+
config: $e($e({}, Vt), Ae.defaultConfig),
|
|
2900
2900
|
l10n: nn
|
|
2901
2901
|
};
|
|
2902
|
-
e.parseDate = ha({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = y, e._setHoursFromDate = v, e._positionCalendar = yt, e.changeMonth = he, e.changeYear = Le, e.clear = ge, e.close = Ce, e.onMouseOver = Je, e._createElement = ce, e.createDay = ee, e.destroy = Ne, e.isEnabled = Te, e.jumpToDate =
|
|
2902
|
+
e.parseDate = ha({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = y, e._setHoursFromDate = v, e._positionCalendar = yt, e.changeMonth = he, e.changeYear = Le, e.clear = ge, e.close = Ce, e.onMouseOver = Je, e._createElement = ce, e.createDay = ee, e.destroy = Ne, e.isEnabled = Te, e.jumpToDate = V, e.updateValue = We, e.open = sn, e.redraw = Ut, e.set = fn, e.setDate = mn, e.toggle = vn;
|
|
2903
2903
|
function a() {
|
|
2904
2904
|
e.utils = {
|
|
2905
2905
|
getDaysInMonth: function(i, l) {
|
|
@@ -2980,7 +2980,7 @@ function vl(t, n) {
|
|
|
2980
2980
|
function k(i, l, h) {
|
|
2981
2981
|
e.latestSelectedDateObj !== void 0 && e.latestSelectedDateObj.setHours(i % 24, l, h || 0, 0), !(!e.hourElement || !e.minuteElement || e.isMobile) && (e.hourElement.value = Ee(e.config.time_24hr ? i : (12 + i) % 12 + 12 * Ge(i % 12 === 0)), e.minuteElement.value = Ee(l), e.amPM !== void 0 && (e.amPM.textContent = e.l10n.amPM[Ge(i >= 12)]), e.secondElement !== void 0 && (e.secondElement.value = Ee(h)));
|
|
2982
2982
|
}
|
|
2983
|
-
function
|
|
2983
|
+
function F(i) {
|
|
2984
2984
|
var l = ze(i), h = parseInt(l.value) + (i.delta || 0);
|
|
2985
2985
|
(h / 1e3 > 1 || i.key === "Enter" && !/[^\d]/.test(h.toString())) && Le(h);
|
|
2986
2986
|
}
|
|
@@ -3014,7 +3014,7 @@ function vl(t, n) {
|
|
|
3014
3014
|
var i = sr(ln, 50);
|
|
3015
3015
|
if (e._debouncedChange = sr(O, gl), e.daysContainer && !/iPhone|iPad|iPod/i.test(navigator.userAgent) && y(e.daysContainer, "mouseover", function(h) {
|
|
3016
3016
|
e.config.mode === "range" && Je(ze(h));
|
|
3017
|
-
}), y(e._input, "keydown", ot), e.calendarContainer !== void 0 && y(e.calendarContainer, "keydown", ot), !e.config.inline && !e.config.static && y(window, "resize", i), window.ontouchstart !== void 0 ? y(window.document, "touchstart", He) : y(window.document, "mousedown", He), y(window.document, "focus", He, { capture: !0 }), e.config.clickOpens === !0 && (y(e._input, "focus", e.open), y(e._input, "click", e.open)), e.daysContainer !== void 0 && (y(e.monthNav, "click", bn), y(e.monthNav, ["keyup", "increment"],
|
|
3017
|
+
}), y(e._input, "keydown", ot), e.calendarContainer !== void 0 && y(e.calendarContainer, "keydown", ot), !e.config.inline && !e.config.static && y(window, "resize", i), window.ontouchstart !== void 0 ? y(window.document, "touchstart", He) : y(window.document, "mousedown", He), y(window.document, "focus", He, { capture: !0 }), e.config.clickOpens === !0 && (y(e._input, "focus", e.open), y(e._input, "click", e.open)), e.daysContainer !== void 0 && (y(e.monthNav, "click", bn), y(e.monthNav, ["keyup", "increment"], F), y(e.daysContainer, "click", Yt)), e.timeContainer !== void 0 && e.minuteElement !== void 0 && e.hourElement !== void 0) {
|
|
3018
3018
|
var l = function(h) {
|
|
3019
3019
|
return ze(h).select();
|
|
3020
3020
|
};
|
|
@@ -3026,7 +3026,7 @@ function vl(t, n) {
|
|
|
3026
3026
|
}
|
|
3027
3027
|
e.config.allowInput && y(e._input, "blur", Be);
|
|
3028
3028
|
}
|
|
3029
|
-
function
|
|
3029
|
+
function V(i, l) {
|
|
3030
3030
|
var h = i !== void 0 ? e.parseDate(i) : e.latestSelectedDateObj || (e.config.minDate && e.config.minDate > e.now ? e.config.minDate : e.config.maxDate && e.config.maxDate < e.now ? e.config.maxDate : e.now), A = e.currentYear, I = e.currentMonth;
|
|
3031
3031
|
try {
|
|
3032
3032
|
h !== void 0 && (e.currentYear = h.getFullYear(), e.currentMonth = h.getMonth());
|
|
@@ -3100,7 +3100,7 @@ function vl(t, n) {
|
|
|
3100
3100
|
}
|
|
3101
3101
|
function W() {
|
|
3102
3102
|
if (e.daysContainer !== void 0) {
|
|
3103
|
-
|
|
3103
|
+
Fn(e.daysContainer), e.weekNumbers && Fn(e.weekNumbers);
|
|
3104
3104
|
for (var i = document.createDocumentFragment(), l = 0; l < e.config.showMonths; l++) {
|
|
3105
3105
|
var h = new Date(e.currentYear, e.currentMonth, 1);
|
|
3106
3106
|
h.setMonth(e.currentMonth + l), i.appendChild(Me(h.getFullYear(), h.getMonth()));
|
|
@@ -3127,7 +3127,7 @@ function vl(t, n) {
|
|
|
3127
3127
|
var Y = ze(X), re = parseInt(Y.value, 10);
|
|
3128
3128
|
e.changeMonth(re - e.currentMonth), ye("onMonthChange");
|
|
3129
3129
|
}), D(), h = e.monthsDropdownContainer);
|
|
3130
|
-
var A =
|
|
3130
|
+
var A = Vn("cur-year", { tabindex: "-1" }), I = A.getElementsByTagName("input")[0];
|
|
3131
3131
|
I.setAttribute("aria-label", e.l10n.yearAriaLabel), e.config.minDate && I.setAttribute("min", e.config.minDate.getFullYear().toString()), e.config.maxDate && (I.setAttribute("max", e.config.maxDate.getFullYear().toString()), I.disabled = !!e.config.minDate && e.config.minDate.getFullYear() === e.config.maxDate.getFullYear());
|
|
3132
3132
|
var N = ce("div", "flatpickr-current-month");
|
|
3133
3133
|
return N.appendChild(h), N.appendChild(A), l.appendChild(N), i.appendChild(l), {
|
|
@@ -3137,7 +3137,7 @@ function vl(t, n) {
|
|
|
3137
3137
|
};
|
|
3138
3138
|
}
|
|
3139
3139
|
function _() {
|
|
3140
|
-
|
|
3140
|
+
Fn(e.monthNav), e.monthNav.appendChild(e.prevMonthNav), e.config.showMonths && (e.yearElements = [], e.monthElements = []);
|
|
3141
3141
|
for (var i = e.config.showMonths; i--; ) {
|
|
3142
3142
|
var l = C();
|
|
3143
3143
|
e.yearElements.push(l.yearElement), e.monthElements.push(l.monthElement), e.monthNav.appendChild(l.container);
|
|
@@ -3165,22 +3165,22 @@ function vl(t, n) {
|
|
|
3165
3165
|
e.calendarContainer.classList.add("hasTime"), e.config.noCalendar && e.calendarContainer.classList.add("noCalendar");
|
|
3166
3166
|
var i = ia(e.config);
|
|
3167
3167
|
e.timeContainer = ce("div", "flatpickr-time"), e.timeContainer.tabIndex = -1;
|
|
3168
|
-
var l = ce("span", "flatpickr-time-separator", ":"), h =
|
|
3168
|
+
var l = ce("span", "flatpickr-time-separator", ":"), h = Vn("flatpickr-hour", {
|
|
3169
3169
|
"aria-label": e.l10n.hourAriaLabel
|
|
3170
3170
|
});
|
|
3171
3171
|
e.hourElement = h.getElementsByTagName("input")[0];
|
|
3172
|
-
var A =
|
|
3172
|
+
var A = Vn("flatpickr-minute", {
|
|
3173
3173
|
"aria-label": e.l10n.minuteAriaLabel
|
|
3174
3174
|
});
|
|
3175
3175
|
if (e.minuteElement = A.getElementsByTagName("input")[0], e.hourElement.tabIndex = e.minuteElement.tabIndex = -1, e.hourElement.value = Ee(e.latestSelectedDateObj ? e.latestSelectedDateObj.getHours() : e.config.time_24hr ? i.hours : m(i.hours)), e.minuteElement.value = Ee(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(A), e.config.time_24hr && e.timeContainer.classList.add("time24hr"), e.config.enableSeconds) {
|
|
3176
3176
|
e.timeContainer.classList.add("hasSeconds");
|
|
3177
|
-
var I =
|
|
3177
|
+
var I = Vn("flatpickr-second");
|
|
3178
3178
|
e.secondElement = I.getElementsByTagName("input")[0], e.secondElement.value = Ee(e.latestSelectedDateObj ? e.latestSelectedDateObj.getSeconds() : i.seconds), e.secondElement.setAttribute("step", e.minuteElement.getAttribute("step")), e.secondElement.setAttribute("min", "0"), e.secondElement.setAttribute("max", "59"), e.secondElement.setAttribute("maxlength", "2"), e.timeContainer.appendChild(ce("span", "flatpickr-time-separator", ":")), e.timeContainer.appendChild(I);
|
|
3179
3179
|
}
|
|
3180
3180
|
return e.config.time_24hr || (e.amPM = ce("span", "flatpickr-am-pm", e.l10n.amPM[Ge((e.latestSelectedDateObj ? e.hourElement.value : e.config.defaultHour) > 11)]), e.amPM.title = e.l10n.toggleTitle, e.amPM.tabIndex = -1, e.timeContainer.appendChild(e.amPM)), e.timeContainer;
|
|
3181
3181
|
}
|
|
3182
3182
|
function j() {
|
|
3183
|
-
e.weekdayContainer ?
|
|
3183
|
+
e.weekdayContainer ? Fn(e.weekdayContainer) : e.weekdayContainer = ce("div", "flatpickr-weekdays");
|
|
3184
3184
|
for (var i = e.config.showMonths; i--; ) {
|
|
3185
3185
|
var l = ce("div", "flatpickr-weekdaycontainer");
|
|
3186
3186
|
e.weekdayContainer.appendChild(l);
|
|
@@ -3474,11 +3474,11 @@ function vl(t, n) {
|
|
|
3474
3474
|
});
|
|
3475
3475
|
var A = l.mode === "time";
|
|
3476
3476
|
if (!l.dateFormat && (l.enableTime || A)) {
|
|
3477
|
-
var I = Ae.defaultConfig.dateFormat ||
|
|
3477
|
+
var I = Ae.defaultConfig.dateFormat || Vt.dateFormat;
|
|
3478
3478
|
h.dateFormat = l.noCalendar || A ? "H:i" + (l.enableSeconds ? ":S" : "") : I + " H:i" + (l.enableSeconds ? ":S" : "");
|
|
3479
3479
|
}
|
|
3480
3480
|
if (l.altInput && (l.enableTime || A) && !l.altFormat) {
|
|
3481
|
-
var N = Ae.defaultConfig.altFormat ||
|
|
3481
|
+
var N = Ae.defaultConfig.altFormat || Vt.altFormat;
|
|
3482
3482
|
h.altFormat = l.noCalendar || A ? "h:i" + (l.enableSeconds ? ":S K" : " K") : N + (" h:i" + (l.enableSeconds ? ":S" : "") + " K");
|
|
3483
3483
|
}
|
|
3484
3484
|
Object.defineProperty(e.config, "minDate", {
|
|
@@ -3548,11 +3548,11 @@ function vl(t, n) {
|
|
|
3548
3548
|
else if (!kn)
|
|
3549
3549
|
e.calendarContainer.style.left = "auto", e.calendarContainer.style.right = ut + "px";
|
|
3550
3550
|
else {
|
|
3551
|
-
var
|
|
3552
|
-
if (
|
|
3551
|
+
var Ft = dn();
|
|
3552
|
+
if (Ft === void 0)
|
|
3553
3553
|
return;
|
|
3554
|
-
var Cn = window.document.body.offsetWidth, An = Math.max(0, Cn / 2 - A / 2), Dn = ".flatpickr-calendar.centerMost:before", _n = ".flatpickr-calendar.centerMost:after", Mn =
|
|
3555
|
-
Pe(e.calendarContainer, "rightMost", !1), Pe(e.calendarContainer, "centerMost", !0),
|
|
3554
|
+
var Cn = window.document.body.offsetWidth, An = Math.max(0, Cn / 2 - A / 2), Dn = ".flatpickr-calendar.centerMost:before", _n = ".flatpickr-calendar.centerMost:after", Mn = Ft.cssRules.length, xn = "{left:" + Y.left + "px;right:auto;}";
|
|
3555
|
+
Pe(e.calendarContainer, "rightMost", !1), Pe(e.calendarContainer, "centerMost", !0), Ft.insertRule(Dn + "," + _n + xn, Mn), e.calendarContainer.style.left = An + "px", e.calendarContainer.style.right = "auto";
|
|
3556
3556
|
}
|
|
3557
3557
|
}
|
|
3558
3558
|
}
|
|
@@ -3612,8 +3612,8 @@ function vl(t, n) {
|
|
|
3612
3612
|
var bt = {
|
|
3613
3613
|
locale: [Rt, K],
|
|
3614
3614
|
showMonths: [_, c, j],
|
|
3615
|
-
minDate: [
|
|
3616
|
-
maxDate: [
|
|
3615
|
+
minDate: [V],
|
|
3616
|
+
maxDate: [V],
|
|
3617
3617
|
positionElement: [Wt],
|
|
3618
3618
|
clickOpens: [
|
|
3619
3619
|
function() {
|
|
@@ -3670,7 +3670,7 @@ function vl(t, n) {
|
|
|
3670
3670
|
function mn(i, l, h) {
|
|
3671
3671
|
if (l === void 0 && (l = !1), h === void 0 && (h = e.config.dateFormat), i !== 0 && !i || i instanceof Array && i.length === 0)
|
|
3672
3672
|
return e.clear(l);
|
|
3673
|
-
Ht(i, h), e.latestSelectedDateObj = e.selectedDates[e.selectedDates.length - 1], e.redraw(),
|
|
3673
|
+
Ht(i, h), e.latestSelectedDateObj = e.selectedDates[e.selectedDates.length - 1], e.redraw(), V(void 0, l), v(), e.selectedDates.length === 0 && e.clear(!1), We(l), l && ye("onChange");
|
|
3674
3674
|
}
|
|
3675
3675
|
function Jt(i) {
|
|
3676
3676
|
return i.slice().map(function(l) {
|
|
@@ -4064,25 +4064,25 @@ var ga = {}, kl = {
|
|
|
4064
4064
|
O.stopPropagation(), O.preventDefault();
|
|
4065
4065
|
var P = O.target;
|
|
4066
4066
|
if (!(P.tagName.toLowerCase() !== "button" || typeof m.onClick > "u"))
|
|
4067
|
-
for (var
|
|
4067
|
+
for (var V = parseInt(P.dataset.index, 10), R = Array.isArray(m.onClick) ? m.onClick : [m.onClick], U = 0, ae = R; U < ae.length; U++) {
|
|
4068
4068
|
var ee = ae[U];
|
|
4069
|
-
typeof ee == "function" && ee(
|
|
4069
|
+
typeof ee == "function" && ee(V, d);
|
|
4070
4070
|
}
|
|
4071
4071
|
}
|
|
4072
|
-
function
|
|
4072
|
+
function F(O) {
|
|
4073
4073
|
var P = O.target;
|
|
4074
4074
|
O.key !== "Tab" || P.tagName.toLowerCase() !== "button" || (O.shiftKey && !P.previousSibling || !O.shiftKey && !P.nextSibling) && (O.preventDefault(), d.element.focus());
|
|
4075
4075
|
}
|
|
4076
4076
|
function y(O, P) {
|
|
4077
|
-
Object.keys(P).filter(function(
|
|
4078
|
-
return c.has(
|
|
4079
|
-
}).forEach(function(
|
|
4077
|
+
Object.keys(P).filter(function(V) {
|
|
4078
|
+
return c.has(V);
|
|
4079
|
+
}).forEach(function(V) {
|
|
4080
4080
|
var R;
|
|
4081
|
-
if (
|
|
4082
|
-
(R = O.classList).add.apply(R, P[
|
|
4081
|
+
if (V === "class") {
|
|
4082
|
+
(R = O.classList).add.apply(R, P[V].split(" "));
|
|
4083
4083
|
return;
|
|
4084
4084
|
}
|
|
4085
|
-
O.setAttribute(
|
|
4085
|
+
O.setAttribute(V, P[V]);
|
|
4086
4086
|
});
|
|
4087
4087
|
}
|
|
4088
4088
|
return {
|
|
@@ -4095,16 +4095,16 @@ var ga = {}, kl = {
|
|
|
4095
4095
|
O.classList.add("shortcut-buttons-flatpickr-label"), O.textContent = m.label, v.appendChild(O);
|
|
4096
4096
|
}
|
|
4097
4097
|
var P = document.createElement("div");
|
|
4098
|
-
P.classList.add("shortcut-buttons-flatpickr-buttons"), (Array.isArray(m.button) ? m.button : [m.button]).forEach(function(
|
|
4098
|
+
P.classList.add("shortcut-buttons-flatpickr-buttons"), (Array.isArray(m.button) ? m.button : [m.button]).forEach(function(V, R) {
|
|
4099
4099
|
var U = document.createElement("button");
|
|
4100
|
-
U.type = "button", U.classList.add("shortcut-buttons-flatpickr-button"), U.textContent =
|
|
4101
|
-
}), v.appendChild(P), d.calendarContainer.appendChild(v), v.addEventListener("click", k), v.addEventListener("keydown",
|
|
4100
|
+
U.type = "button", U.classList.add("shortcut-buttons-flatpickr-button"), U.textContent = V.label, U.dataset.index = String(R), typeof V.attributes < "u" && y(U, V.attributes), P.appendChild(U), d.pluginElements.push(U);
|
|
4101
|
+
}), v.appendChild(P), d.calendarContainer.appendChild(v), v.addEventListener("click", k), v.addEventListener("keydown", F);
|
|
4102
4102
|
},
|
|
4103
4103
|
/**
|
|
4104
4104
|
* Clean up before flatpickr is destroyed.
|
|
4105
4105
|
*/
|
|
4106
4106
|
onDestroy: function() {
|
|
4107
|
-
v.removeEventListener("keydown",
|
|
4107
|
+
v.removeEventListener("keydown", F), v.removeEventListener("click", k), v = void 0;
|
|
4108
4108
|
}
|
|
4109
4109
|
};
|
|
4110
4110
|
};
|
|
@@ -4415,7 +4415,7 @@ var Yn = {}, Al = {
|
|
|
4415
4415
|
time_24hr: !0
|
|
4416
4416
|
};
|
|
4417
4417
|
v.l10ns.bs = k, v.l10ns;
|
|
4418
|
-
var
|
|
4418
|
+
var F = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
4419
4419
|
l10ns: {}
|
|
4420
4420
|
}, y = {
|
|
4421
4421
|
weekdays: {
|
|
@@ -4463,7 +4463,7 @@ var Yn = {}, Al = {
|
|
|
4463
4463
|
time_24hr: !0,
|
|
4464
4464
|
firstDayOfWeek: 1
|
|
4465
4465
|
};
|
|
4466
|
-
|
|
4466
|
+
F.l10ns.bg = y, F.l10ns;
|
|
4467
4467
|
var O = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
4468
4468
|
l10ns: {}
|
|
4469
4469
|
}, P = {
|
|
@@ -4511,7 +4511,7 @@ var Yn = {}, Al = {
|
|
|
4511
4511
|
}
|
|
4512
4512
|
};
|
|
4513
4513
|
O.l10ns.bn = P, O.l10ns;
|
|
4514
|
-
var
|
|
4514
|
+
var V = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
4515
4515
|
l10ns: {}
|
|
4516
4516
|
}, R = {
|
|
4517
4517
|
weekdays: {
|
|
@@ -4577,7 +4577,7 @@ var Yn = {}, Al = {
|
|
|
4577
4577
|
rangeSeparator: " a ",
|
|
4578
4578
|
time_24hr: !0
|
|
4579
4579
|
};
|
|
4580
|
-
|
|
4580
|
+
V.l10ns.cat = V.l10ns.ca = R, V.l10ns;
|
|
4581
4581
|
var U = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
4582
4582
|
l10ns: {}
|
|
4583
4583
|
}, ae = {
|
|
@@ -6668,7 +6668,7 @@ var Yn = {}, Al = {
|
|
|
6668
6668
|
time_24hr: !0
|
|
6669
6669
|
};
|
|
6670
6670
|
it.l10ns.pt = kn, it.l10ns;
|
|
6671
|
-
var
|
|
6671
|
+
var Ft = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
6672
6672
|
l10ns: {}
|
|
6673
6673
|
}, Cn = {
|
|
6674
6674
|
weekdays: {
|
|
@@ -6719,7 +6719,7 @@ var Yn = {}, Al = {
|
|
|
6719
6719
|
return "";
|
|
6720
6720
|
}
|
|
6721
6721
|
};
|
|
6722
|
-
|
|
6722
|
+
Ft.l10ns.ro = Cn, Ft.l10ns;
|
|
6723
6723
|
var An = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
6724
6724
|
l10ns: {}
|
|
6725
6725
|
}, Dn = {
|
|
@@ -6987,9 +6987,9 @@ var Yn = {}, Al = {
|
|
|
6987
6987
|
time_24hr: !0
|
|
6988
6988
|
};
|
|
6989
6989
|
Pa.l10ns.sq = Ia, Pa.l10ns;
|
|
6990
|
-
var
|
|
6990
|
+
var Fa = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
6991
6991
|
l10ns: {}
|
|
6992
|
-
},
|
|
6992
|
+
}, Va = {
|
|
6993
6993
|
weekdays: {
|
|
6994
6994
|
shorthand: ["Ned", "Pon", "Uto", "Sre", "Čet", "Pet", "Sub"],
|
|
6995
6995
|
longhand: [
|
|
@@ -7037,7 +7037,7 @@ var Yn = {}, Al = {
|
|
|
7037
7037
|
rangeSeparator: " do ",
|
|
7038
7038
|
time_24hr: !0
|
|
7039
7039
|
};
|
|
7040
|
-
|
|
7040
|
+
Fa.l10ns.sr = Va, Fa.l10ns;
|
|
7041
7041
|
var Ea = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
7042
7042
|
l10ns: {}
|
|
7043
7043
|
}, Na = {
|
|
@@ -7576,7 +7576,7 @@ var Yn = {}, Al = {
|
|
|
7576
7576
|
sk: Tn,
|
|
7577
7577
|
sl: Oa,
|
|
7578
7578
|
sq: Ia,
|
|
7579
|
-
sr:
|
|
7579
|
+
sr: Va,
|
|
7580
7580
|
sv: Na,
|
|
7581
7581
|
th: Ba,
|
|
7582
7582
|
tr: za,
|
|
@@ -7635,7 +7635,7 @@ const Ml = {
|
|
|
7635
7635
|
return;
|
|
7636
7636
|
}
|
|
7637
7637
|
v(d(C + ""));
|
|
7638
|
-
},
|
|
7638
|
+
}, F = () => {
|
|
7639
7639
|
P(), s.value = !0, n("onOpen");
|
|
7640
7640
|
}, y = () => {
|
|
7641
7641
|
s.value = !1, n("onClose");
|
|
@@ -7651,7 +7651,7 @@ const Ml = {
|
|
|
7651
7651
|
return;
|
|
7652
7652
|
}
|
|
7653
7653
|
(j = r.value) == null || j.fp.setDate(_, !0), W.value.textFieldValue.$touch(), n("blur");
|
|
7654
|
-
},
|
|
7654
|
+
}, V = () => {
|
|
7655
7655
|
p.value = e.defaultValue, n("update:modelValue", f(e.defaultValue));
|
|
7656
7656
|
}, R = x(() => e.type === "datetime" ? "d.m.Y H:i" : "d.m.Y"), U = x(() => e.type === "datetime" ? "dd.mm.yyyy hh:mm" : "dd.mm.yyyy"), ae = x(() => e.enable && e.enable.length > 0 ? e.enable : [
|
|
7657
7657
|
{
|
|
@@ -7736,7 +7736,7 @@ const Ml = {
|
|
|
7736
7736
|
key: 0,
|
|
7737
7737
|
class: "a-datetime-picker__clearable",
|
|
7738
7738
|
icon: "mdi-close-circle",
|
|
7739
|
-
onClick: ne(
|
|
7739
|
+
onClick: ne(V, ["stop"])
|
|
7740
7740
|
}, null, 8, ["onClick"])) : Z("", !0),
|
|
7741
7741
|
te("div", null, [
|
|
7742
7742
|
b(f(wl), {
|
|
@@ -7747,7 +7747,7 @@ const Ml = {
|
|
|
7747
7747
|
"model-value": p.value,
|
|
7748
7748
|
"onUpdate:modelValue": k,
|
|
7749
7749
|
onOnClose: y,
|
|
7750
|
-
onOnOpen:
|
|
7750
|
+
onOnOpen: F,
|
|
7751
7751
|
onOnChange: O
|
|
7752
7752
|
}, null, 8, ["config", "disabled", "model-value"]),
|
|
7753
7753
|
b(me, {
|
|
@@ -7770,7 +7770,7 @@ const Ml = {
|
|
|
7770
7770
|
]), 1032, ["modelValue", "error-messages", "placeholder", "onKeyup"]));
|
|
7771
7771
|
}
|
|
7772
7772
|
});
|
|
7773
|
-
const Qr = /* @__PURE__ */ vt(xl, [["__scopeId", "data-v-
|
|
7773
|
+
const Qr = /* @__PURE__ */ vt(xl, [["__scopeId", "data-v-476a45eb"]]), ih = /* @__PURE__ */ L({
|
|
7774
7774
|
__name: "AFormDatetimePicker",
|
|
7775
7775
|
props: {
|
|
7776
7776
|
modelValue: null,
|
|
@@ -7900,12 +7900,12 @@ const Tl = {
|
|
|
7900
7900
|
return "";
|
|
7901
7901
|
const { end: M } = lt((j = e.v) == null ? void 0 : j.$path, ".");
|
|
7902
7902
|
return c(p + "." + m + ".model." + M);
|
|
7903
|
-
}),
|
|
7903
|
+
}), F = x(() => {
|
|
7904
7904
|
var M, T;
|
|
7905
7905
|
return S(e.required) ? ((M = e.v) == null ? void 0 : M.required) && ((T = e.v) == null ? void 0 : T.required.$params.type) === "required" : e.required;
|
|
7906
|
-
}), y = x(() => e.multiple !== !1), O = Kn(), P = J([]),
|
|
7906
|
+
}), y = x(() => e.multiple !== !1), O = Kn(), P = J([]), V = J([]), R = x(() => {
|
|
7907
7907
|
const M = /* @__PURE__ */ new Map();
|
|
7908
|
-
return
|
|
7908
|
+
return V.value.forEach((T) => {
|
|
7909
7909
|
M.set(T.value, { value: T.value, title: T.title });
|
|
7910
7910
|
}), P.value.forEach((T) => {
|
|
7911
7911
|
M.set(T.value, { value: T.value, title: T.title });
|
|
@@ -7919,7 +7919,7 @@ const Tl = {
|
|
|
7919
7919
|
return [].concat(T);
|
|
7920
7920
|
}, pe = async (M) => {
|
|
7921
7921
|
let T = 1, j = [];
|
|
7922
|
-
return Oe(M) ? (T = M.length, j = ue(M)) : j = ue([M]),
|
|
7922
|
+
return Oe(M) ? (T = M.length, j = ue(M)) : j = ue([M]), V.value = j, j.length === T;
|
|
7923
7923
|
}, ie = J(!1), Q = () => {
|
|
7924
7924
|
clearTimeout(s.value), s.value = void 0;
|
|
7925
7925
|
}, Me = async () => {
|
|
@@ -7927,8 +7927,8 @@ const Tl = {
|
|
|
7927
7927
|
}, W = () => {
|
|
7928
7928
|
o.value = !0, Q(), Me();
|
|
7929
7929
|
}, D = x(() => {
|
|
7930
|
-
if (!e.multiple &&
|
|
7931
|
-
return
|
|
7930
|
+
if (!e.multiple && V.value[0])
|
|
7931
|
+
return V.value[0].title;
|
|
7932
7932
|
}), C = (M) => {
|
|
7933
7933
|
!e.multiple && !o.value && M.length === 0 || D.value !== M && (r.value = M);
|
|
7934
7934
|
}, _ = async () => {
|
|
@@ -7944,7 +7944,7 @@ const Tl = {
|
|
|
7944
7944
|
if (M === T)
|
|
7945
7945
|
return;
|
|
7946
7946
|
if (ve(M) || S(M) || Oe(M) && M.length === 0) {
|
|
7947
|
-
if (
|
|
7947
|
+
if (V.value = [], e.disableInitFetch || ie.value === !0)
|
|
7948
7948
|
return;
|
|
7949
7949
|
s.value = setTimeout(() => {
|
|
7950
7950
|
Me();
|
|
@@ -7953,10 +7953,10 @@ const Tl = {
|
|
|
7953
7953
|
}
|
|
7954
7954
|
if (!await pe(M)) {
|
|
7955
7955
|
if (Oe(M)) {
|
|
7956
|
-
U.value = !0,
|
|
7956
|
+
U.value = !0, V.value = await e.fetchItemsByIds(M), U.value = !1;
|
|
7957
7957
|
return;
|
|
7958
7958
|
}
|
|
7959
|
-
U.value = !0,
|
|
7959
|
+
U.value = !0, V.value = await e.fetchItemsByIds([M]), U.value = !1;
|
|
7960
7960
|
}
|
|
7961
7961
|
},
|
|
7962
7962
|
{ immediate: !0 }
|
|
@@ -7986,10 +7986,10 @@ const Tl = {
|
|
|
7986
7986
|
}, {
|
|
7987
7987
|
label: g(() => [
|
|
7988
7988
|
t.hideLabel ? Z("", !0) : (w(), H("span", {
|
|
7989
|
-
key: f(
|
|
7989
|
+
key: f(F) + ""
|
|
7990
7990
|
}, [
|
|
7991
7991
|
B($(f(k)) + " ", 1),
|
|
7992
|
-
f(
|
|
7992
|
+
f(F) ? (w(), H("span", Tl)) : Z("", !0)
|
|
7993
7993
|
]))
|
|
7994
7994
|
]),
|
|
7995
7995
|
_: 1
|
|
@@ -8009,10 +8009,10 @@ const Tl = {
|
|
|
8009
8009
|
emits: ["update:modelValue"],
|
|
8010
8010
|
setup(t, { emit: n }) {
|
|
8011
8011
|
const e = t, { t: a } = G(), r = we(at, void 0), o = we(rt, void 0), s = x(() => {
|
|
8012
|
-
var
|
|
8012
|
+
var F, y;
|
|
8013
8013
|
if (!S(e.label))
|
|
8014
8014
|
return e.label;
|
|
8015
|
-
if (S(r) || S(o) || S((
|
|
8015
|
+
if (S(r) || S(o) || S((F = e.v) == null ? void 0 : F.$path))
|
|
8016
8016
|
return "";
|
|
8017
8017
|
const { end: k } = lt((y = e.v) == null ? void 0 : y.$path, ".");
|
|
8018
8018
|
return a(r + "." + o + ".model." + k);
|
|
@@ -8020,22 +8020,22 @@ const Tl = {
|
|
|
8020
8020
|
if (c.value)
|
|
8021
8021
|
return;
|
|
8022
8022
|
if (c.value = !0, u.value = !1, d.value === !0) {
|
|
8023
|
-
const
|
|
8024
|
-
n("update:modelValue", !
|
|
8023
|
+
const F = await e.callbackToFalse();
|
|
8024
|
+
n("update:modelValue", !F), d.value = !F, F || (u.value = !0), c.value = !1;
|
|
8025
8025
|
return;
|
|
8026
8026
|
}
|
|
8027
8027
|
const k = await e.callbackToTrue();
|
|
8028
8028
|
n("update:modelValue", k), d.value = k, k || (u.value = !0), c.value = !1;
|
|
8029
8029
|
};
|
|
8030
|
-
return Ie(m, (k,
|
|
8031
|
-
k !==
|
|
8030
|
+
return Ie(m, (k, F) => {
|
|
8031
|
+
k !== F && (d.value = k, u.value = !1);
|
|
8032
8032
|
}), Bt(() => {
|
|
8033
8033
|
p.value = "remote-switch-" + Date.now();
|
|
8034
|
-
}), (k,
|
|
8035
|
-
b(
|
|
8034
|
+
}), (k, F) => (w(), H("div", Sl, [
|
|
8035
|
+
b(Vo, {
|
|
8036
8036
|
id: p.value,
|
|
8037
8037
|
modelValue: d.value,
|
|
8038
|
-
"onUpdate:modelValue":
|
|
8038
|
+
"onUpdate:modelValue": F[0] || (F[0] = (y) => d.value = y),
|
|
8039
8039
|
loading: c.value,
|
|
8040
8040
|
disabled: c.value,
|
|
8041
8041
|
onClick: ne(v, ["stop"])
|
|
@@ -8061,10 +8061,10 @@ const Tl = {
|
|
|
8061
8061
|
emits: ["update:modelValue"],
|
|
8062
8062
|
setup(t, { emit: n }) {
|
|
8063
8063
|
const e = t, { t: a } = G(), r = we(at, void 0), o = we(rt, void 0), s = x(() => {
|
|
8064
|
-
var
|
|
8064
|
+
var F, y;
|
|
8065
8065
|
if (!S(e.label))
|
|
8066
8066
|
return e.label;
|
|
8067
|
-
if (S(r) || S(o) || S((
|
|
8067
|
+
if (S(r) || S(o) || S((F = e.v) == null ? void 0 : F.$path))
|
|
8068
8068
|
return "";
|
|
8069
8069
|
const { end: k } = lt((y = e.v) == null ? void 0 : y.$path, ".");
|
|
8070
8070
|
return a(r + "." + o + ".model." + k);
|
|
@@ -8072,18 +8072,18 @@ const Tl = {
|
|
|
8072
8072
|
if (c.value)
|
|
8073
8073
|
return;
|
|
8074
8074
|
if (c.value = !0, u.value = !1, d.value === !0) {
|
|
8075
|
-
const
|
|
8076
|
-
n("update:modelValue", !
|
|
8075
|
+
const F = await e.callbackToFalse();
|
|
8076
|
+
n("update:modelValue", !F), d.value = !F, F || (u.value = !0), c.value = !1;
|
|
8077
8077
|
return;
|
|
8078
8078
|
}
|
|
8079
8079
|
const k = await e.callbackToTrue();
|
|
8080
8080
|
n("update:modelValue", k), d.value = k, k || (u.value = !0), c.value = !1;
|
|
8081
8081
|
};
|
|
8082
|
-
return Ie(m, (k,
|
|
8083
|
-
k !==
|
|
8082
|
+
return Ie(m, (k, F) => {
|
|
8083
|
+
k !== F && (d.value = k, u.value = !1);
|
|
8084
8084
|
}), Bt(() => {
|
|
8085
8085
|
p.value = "a-remote-switch-" + Date.now();
|
|
8086
|
-
}), (k,
|
|
8086
|
+
}), (k, F) => (w(), H("div", Ol, [
|
|
8087
8087
|
b(oe, {
|
|
8088
8088
|
id: p.value,
|
|
8089
8089
|
icon: "",
|
|
@@ -8097,7 +8097,7 @@ const Tl = {
|
|
|
8097
8097
|
default: g(() => [
|
|
8098
8098
|
b(Eo, {
|
|
8099
8099
|
modelValue: d.value,
|
|
8100
|
-
"onUpdate:modelValue":
|
|
8100
|
+
"onUpdate:modelValue": F[0] || (F[0] = (y) => d.value = y),
|
|
8101
8101
|
loading: c.value,
|
|
8102
8102
|
disabled: c.value,
|
|
8103
8103
|
"hide-details": t.hideDetails,
|
|
@@ -8128,7 +8128,7 @@ const Tl = {
|
|
|
8128
8128
|
]));
|
|
8129
8129
|
}
|
|
8130
8130
|
});
|
|
8131
|
-
const Il = { key: 0 },
|
|
8131
|
+
const Il = { key: 0 }, Fl = {
|
|
8132
8132
|
key: 0,
|
|
8133
8133
|
class: "required"
|
|
8134
8134
|
}, fh = /* @__PURE__ */ L({
|
|
@@ -8160,14 +8160,14 @@ const Il = { key: 0 }, Vl = {
|
|
|
8160
8160
|
n("blur", e.modelValue), (v = e.v) == null || v.$touch();
|
|
8161
8161
|
}, u = x(() => {
|
|
8162
8162
|
var v, k;
|
|
8163
|
-
return S(e.errorMessage) ? (k = (v = e.v) == null ? void 0 : v.$errors) != null && k.length ? e.v.$errors.map((
|
|
8163
|
+
return S(e.errorMessage) ? (k = (v = e.v) == null ? void 0 : v.$errors) != null && k.length ? e.v.$errors.map((F) => F.$message) : [] : [e.errorMessage];
|
|
8164
8164
|
}), p = x(() => {
|
|
8165
|
-
var k,
|
|
8165
|
+
var k, F;
|
|
8166
8166
|
if (!S(e.label))
|
|
8167
8167
|
return e.label;
|
|
8168
8168
|
if (S(r) || S(o) || S((k = e.v) == null ? void 0 : k.$path))
|
|
8169
8169
|
return "";
|
|
8170
|
-
const { end: v } = lt((
|
|
8170
|
+
const { end: v } = lt((F = e.v) == null ? void 0 : F.$path, ".");
|
|
8171
8171
|
return s(r + "." + o + ".model." + v);
|
|
8172
8172
|
}), m = x(() => {
|
|
8173
8173
|
var v, k;
|
|
@@ -8175,7 +8175,7 @@ const Il = { key: 0 }, Vl = {
|
|
|
8175
8175
|
}), d = x(() => e.multiple !== !1);
|
|
8176
8176
|
return (v, k) => (w(), E(on, {
|
|
8177
8177
|
modelValue: f(a),
|
|
8178
|
-
"onUpdate:modelValue": k[0] || (k[0] = (
|
|
8178
|
+
"onUpdate:modelValue": k[0] || (k[0] = (F) => Ue(a) ? a.value = F : null),
|
|
8179
8179
|
items: t.items,
|
|
8180
8180
|
"item-title": "title",
|
|
8181
8181
|
"item-value": "value",
|
|
@@ -8188,7 +8188,7 @@ const Il = { key: 0 }, Vl = {
|
|
|
8188
8188
|
label: g(() => [
|
|
8189
8189
|
t.hideLabel ? Z("", !0) : (w(), H("span", Il, [
|
|
8190
8190
|
B($(f(p)), 1),
|
|
8191
|
-
f(m) ? (w(), H("span",
|
|
8191
|
+
f(m) ? (w(), H("span", Fl)) : Z("", !0)
|
|
8192
8192
|
]))
|
|
8193
8193
|
]),
|
|
8194
8194
|
_: 1
|
|
@@ -8245,9 +8245,9 @@ const Il = { key: 0 }, Vl = {
|
|
|
8245
8245
|
}
|
|
8246
8246
|
}), r = J(""), o = J(!1), s = J(void 0), { t: c } = G({ useScope: "global" }), { innerFilter: u } = ba(e), p = () => {
|
|
8247
8247
|
o.value = !0;
|
|
8248
|
-
}, m = x(() => e.modelValue.titleT ? c(e.modelValue.titleT) : void 0), d = x(() => e.modelValue.multiple !== !1), v = Kn(), k = J([]),
|
|
8248
|
+
}, m = x(() => e.modelValue.titleT ? c(e.modelValue.titleT) : void 0), d = x(() => e.modelValue.multiple !== !1), v = Kn(), k = J([]), F = J([]), y = x(() => {
|
|
8249
8249
|
const W = /* @__PURE__ */ new Map();
|
|
8250
|
-
return
|
|
8250
|
+
return F.value.forEach((D) => {
|
|
8251
8251
|
W.set(D.value, { value: D.value, title: D.title });
|
|
8252
8252
|
}), k.value.forEach((D) => {
|
|
8253
8253
|
W.set(D.value, { value: D.value, title: D.title });
|
|
@@ -8256,12 +8256,12 @@ const Il = { key: 0 }, Vl = {
|
|
|
8256
8256
|
O.value = !0;
|
|
8257
8257
|
const D = u.value[e.filterByField];
|
|
8258
8258
|
D.model = W, k.value = await e.fetchItems(v, u.value), O.value = !1;
|
|
8259
|
-
},
|
|
8259
|
+
}, V = (W) => {
|
|
8260
8260
|
const D = y.value.filter((C) => W.includes(C.value));
|
|
8261
8261
|
return [].concat(D);
|
|
8262
8262
|
}, R = async (W) => {
|
|
8263
8263
|
let D = 1, C = [];
|
|
8264
|
-
return Oe(W) ? (D = W.length, C =
|
|
8264
|
+
return Oe(W) ? (D = W.length, C = V(W)) : C = V([W]), F.value = C, C.length === D;
|
|
8265
8265
|
}, U = J(!1), ae = () => {
|
|
8266
8266
|
clearTimeout(s.value), s.value = void 0;
|
|
8267
8267
|
}, ee = async () => {
|
|
@@ -8269,8 +8269,8 @@ const Il = { key: 0 }, Vl = {
|
|
|
8269
8269
|
}, ue = () => {
|
|
8270
8270
|
o.value = !0, ae(), ee();
|
|
8271
8271
|
}, pe = x(() => {
|
|
8272
|
-
if (!e.modelValue.multiple &&
|
|
8273
|
-
return
|
|
8272
|
+
if (!e.modelValue.multiple && F.value[0])
|
|
8273
|
+
return F.value[0].title;
|
|
8274
8274
|
}), ie = (W) => {
|
|
8275
8275
|
!e.modelValue.multiple && !o.value && W.length === 0 || pe.value !== W && (r.value = W);
|
|
8276
8276
|
}, Q = async () => {
|
|
@@ -8286,7 +8286,7 @@ const Il = { key: 0 }, Vl = {
|
|
|
8286
8286
|
if (W === D)
|
|
8287
8287
|
return;
|
|
8288
8288
|
if (ve(W) || S(W) || Oe(W) && W.length === 0) {
|
|
8289
|
-
if (
|
|
8289
|
+
if (F.value = [], e.disableInitFetch || U.value === !0)
|
|
8290
8290
|
return;
|
|
8291
8291
|
s.value = setTimeout(() => {
|
|
8292
8292
|
ee();
|
|
@@ -8295,10 +8295,10 @@ const Il = { key: 0 }, Vl = {
|
|
|
8295
8295
|
}
|
|
8296
8296
|
if (!await R(W)) {
|
|
8297
8297
|
if (Oe(W)) {
|
|
8298
|
-
O.value = !0,
|
|
8298
|
+
O.value = !0, F.value = await e.fetchItemsByIds(W), O.value = !1;
|
|
8299
8299
|
return;
|
|
8300
8300
|
}
|
|
8301
|
-
O.value = !0,
|
|
8301
|
+
O.value = !0, F.value = await e.fetchItemsByIds([W]), O.value = !1;
|
|
8302
8302
|
}
|
|
8303
8303
|
},
|
|
8304
8304
|
{ immediate: !0 }
|
|
@@ -8325,7 +8325,7 @@ const Il = { key: 0 }, Vl = {
|
|
|
8325
8325
|
"onClick:clear": Q
|
|
8326
8326
|
}, null, 8, ["modelValue", "items", "placeholder", "multiple", "clearable", "label", "chips", "loading"]));
|
|
8327
8327
|
}
|
|
8328
|
-
}),
|
|
8328
|
+
}), Vl = { class: "a-filter-boolean-group d-flex flex-column align-left justify-center mb-2" }, El = /* @__PURE__ */ L({
|
|
8329
8329
|
__name: "AFilterBooleanGroup",
|
|
8330
8330
|
props: {
|
|
8331
8331
|
modelValue: null
|
|
@@ -8340,7 +8340,7 @@ const Il = { key: 0 }, Vl = {
|
|
|
8340
8340
|
n("update:modelValue", { ...e.modelValue, model: s });
|
|
8341
8341
|
}
|
|
8342
8342
|
}), { t: r } = G(), o = x(() => e.modelValue.titleT ? r(e.modelValue.titleT) : void 0);
|
|
8343
|
-
return (s, c) => (w(), H("div",
|
|
8343
|
+
return (s, c) => (w(), H("div", Vl, [
|
|
8344
8344
|
b(Ar, { class: "pr-1" }, {
|
|
8345
8345
|
default: g(() => [
|
|
8346
8346
|
te("span", null, $(f(o)), 1)
|
|
@@ -8648,7 +8648,7 @@ const yh = /* @__PURE__ */ L({
|
|
|
8648
8648
|
size: "x-small",
|
|
8649
8649
|
icon: "mdi-content-copy"
|
|
8650
8650
|
})) : Z("", !0),
|
|
8651
|
-
b(
|
|
8651
|
+
b(Ve, {
|
|
8652
8652
|
activator: "parent",
|
|
8653
8653
|
location: "bottom"
|
|
8654
8654
|
}, {
|
|
@@ -8773,7 +8773,7 @@ const wh = /* @__PURE__ */ vt(Wl, [["render", ql]]), kh = /* @__PURE__ */ L({
|
|
|
8773
8773
|
}, {
|
|
8774
8774
|
default: g(() => [
|
|
8775
8775
|
b(me, { icon: "mdi-close" }),
|
|
8776
|
-
b(
|
|
8776
|
+
b(Ve, {
|
|
8777
8777
|
activator: "parent",
|
|
8778
8778
|
location: "bottom"
|
|
8779
8779
|
}, {
|
|
@@ -8820,7 +8820,7 @@ const wh = /* @__PURE__ */ vt(Wl, [["render", ql]]), kh = /* @__PURE__ */ L({
|
|
|
8820
8820
|
}, {
|
|
8821
8821
|
default: g(() => [
|
|
8822
8822
|
b(me, { icon: "mdi-content-save" }),
|
|
8823
|
-
b(
|
|
8823
|
+
b(Ve, {
|
|
8824
8824
|
activator: "parent",
|
|
8825
8825
|
location: "bottom"
|
|
8826
8826
|
}, {
|
|
@@ -8892,7 +8892,7 @@ const wh = /* @__PURE__ */ vt(Wl, [["render", ql]]), kh = /* @__PURE__ */ L({
|
|
|
8892
8892
|
}
|
|
8893
8893
|
});
|
|
8894
8894
|
return (d, v) => {
|
|
8895
|
-
const k = Nt("ABtnTertiary"),
|
|
8895
|
+
const k = Nt("ABtnTertiary"), F = Nt("ABtnPrimary");
|
|
8896
8896
|
return w(), H(Ye, null, [
|
|
8897
8897
|
t.variant === "icon" ? (w(), E(oe, {
|
|
8898
8898
|
key: 0,
|
|
@@ -8910,7 +8910,7 @@ const wh = /* @__PURE__ */ vt(Wl, [["render", ql]]), kh = /* @__PURE__ */ L({
|
|
|
8910
8910
|
}, {
|
|
8911
8911
|
default: g(() => [
|
|
8912
8912
|
b(me, { icon: "mdi-trash-can-outline" }),
|
|
8913
|
-
b(
|
|
8913
|
+
b(Ve, {
|
|
8914
8914
|
activator: "parent",
|
|
8915
8915
|
location: "bottom"
|
|
8916
8916
|
}, {
|
|
@@ -8968,7 +8968,7 @@ const wh = /* @__PURE__ */ vt(Wl, [["render", ql]]), kh = /* @__PURE__ */ L({
|
|
|
8968
8968
|
]),
|
|
8969
8969
|
_: 1
|
|
8970
8970
|
}, 8, ["disabled", "onClick"]),
|
|
8971
|
-
b(
|
|
8971
|
+
b(F, {
|
|
8972
8972
|
color: t.dialogConfirmColor,
|
|
8973
8973
|
loading: t.loading,
|
|
8974
8974
|
"data-cy": "button-confirm",
|
|
@@ -9032,7 +9032,7 @@ const wh = /* @__PURE__ */ vt(Wl, [["render", ql]]), kh = /* @__PURE__ */ L({
|
|
|
9032
9032
|
}, {
|
|
9033
9033
|
default: g(() => [
|
|
9034
9034
|
b(me, { icon: "mdi-content-save" }),
|
|
9035
|
-
b(
|
|
9035
|
+
b(Ve, {
|
|
9036
9036
|
activator: "parent",
|
|
9037
9037
|
location: "bottom"
|
|
9038
9038
|
}, {
|
|
@@ -9091,7 +9091,7 @@ const wh = /* @__PURE__ */ vt(Wl, [["render", ql]]), kh = /* @__PURE__ */ L({
|
|
|
9091
9091
|
"main-icon": "mdi-content-save",
|
|
9092
9092
|
"secondary-icon": "mdi-close"
|
|
9093
9093
|
}),
|
|
9094
|
-
b(
|
|
9094
|
+
b(Ve, {
|
|
9095
9095
|
activator: "parent",
|
|
9096
9096
|
location: "bottom"
|
|
9097
9097
|
}, {
|
|
@@ -9144,7 +9144,7 @@ const wh = /* @__PURE__ */ vt(Wl, [["render", ql]]), kh = /* @__PURE__ */ L({
|
|
|
9144
9144
|
}, {
|
|
9145
9145
|
default: g(() => [
|
|
9146
9146
|
b(me, { icon: "mdi-content-save" }),
|
|
9147
|
-
b(
|
|
9147
|
+
b(Ve, {
|
|
9148
9148
|
activator: "parent",
|
|
9149
9149
|
location: "bottom"
|
|
9150
9150
|
}, {
|
|
@@ -9207,7 +9207,7 @@ const wh = /* @__PURE__ */ vt(Wl, [["render", ql]]), kh = /* @__PURE__ */ L({
|
|
|
9207
9207
|
"main-icon": "mdi-content-copy",
|
|
9208
9208
|
size: "small"
|
|
9209
9209
|
}, null, 8, ["secondary-text"]),
|
|
9210
|
-
b(
|
|
9210
|
+
b(Ve, {
|
|
9211
9211
|
activator: "parent",
|
|
9212
9212
|
location: "bottom"
|
|
9213
9213
|
}, {
|
|
@@ -9244,7 +9244,7 @@ const wh = /* @__PURE__ */ vt(Wl, [["render", ql]]), kh = /* @__PURE__ */ L({
|
|
|
9244
9244
|
}, {
|
|
9245
9245
|
default: g(() => [
|
|
9246
9246
|
b(me, { icon: "mdi-information-outline" }),
|
|
9247
|
-
b(
|
|
9247
|
+
b(Ve, {
|
|
9248
9248
|
activator: "parent",
|
|
9249
9249
|
location: "bottom"
|
|
9250
9250
|
}, {
|
|
@@ -9281,7 +9281,7 @@ const wh = /* @__PURE__ */ vt(Wl, [["render", ql]]), kh = /* @__PURE__ */ L({
|
|
|
9281
9281
|
}, {
|
|
9282
9282
|
default: g(() => [
|
|
9283
9283
|
b(me, { icon: "mdi-pencil" }),
|
|
9284
|
-
b(
|
|
9284
|
+
b(Ve, {
|
|
9285
9285
|
activator: "parent",
|
|
9286
9286
|
location: "bottom"
|
|
9287
9287
|
}, {
|
|
@@ -9745,7 +9745,7 @@ const Ph = /* @__PURE__ */ vt(ws, [["__scopeId", "data-v-a2015e08"]]), ks = ["on
|
|
|
9745
9745
|
}, Ms = {
|
|
9746
9746
|
key: 0,
|
|
9747
9747
|
class: "required"
|
|
9748
|
-
},
|
|
9748
|
+
}, Fh = /* @__PURE__ */ L({
|
|
9749
9749
|
__name: "AAvatarColorPicker",
|
|
9750
9750
|
props: {
|
|
9751
9751
|
modelValue: null,
|
|
@@ -9822,7 +9822,7 @@ const Ph = /* @__PURE__ */ vt(ws, [["__scopeId", "data-v-a2015e08"]]), ks = ["on
|
|
|
9822
9822
|
]));
|
|
9823
9823
|
}
|
|
9824
9824
|
});
|
|
9825
|
-
const xs = /* @__PURE__ */ te("br", null, null, -1),
|
|
9825
|
+
const xs = /* @__PURE__ */ te("br", null, null, -1), Vh = /* @__PURE__ */ L({
|
|
9826
9826
|
__name: "ACurrentUserDropdown",
|
|
9827
9827
|
props: {
|
|
9828
9828
|
currentUser: null,
|
|
@@ -9842,7 +9842,7 @@ const xs = /* @__PURE__ */ te("br", null, null, -1), Fh = /* @__PURE__ */ L({
|
|
|
9842
9842
|
size: 32,
|
|
9843
9843
|
user: t.currentUser
|
|
9844
9844
|
}, null, 8, ["user"]),
|
|
9845
|
-
b(
|
|
9845
|
+
b(Ve, {
|
|
9846
9846
|
activator: "parent",
|
|
9847
9847
|
location: "top"
|
|
9848
9848
|
}, {
|
|
@@ -10022,12 +10022,12 @@ const xs = /* @__PURE__ */ te("br", null, null, -1), Fh = /* @__PURE__ */ L({
|
|
|
10022
10022
|
set(D) {
|
|
10023
10023
|
n("update:modelValue", ft(D));
|
|
10024
10024
|
}
|
|
10025
|
-
}), { t: c } = G(), u = we(at, void 0), p = we(rt, void 0), m = J(!1), d = J(""), v = J(!1), { innerFilter: k } = ba(e),
|
|
10025
|
+
}), { t: c } = G(), u = we(at, void 0), p = we(rt, void 0), m = J(!1), d = J(""), v = J(!1), { innerFilter: k } = ba(e), F = Kn(), y = J(/* @__PURE__ */ new Map()), O = () => {
|
|
10026
10026
|
m.value = !0, n("focus", s.value);
|
|
10027
10027
|
}, P = () => {
|
|
10028
10028
|
var D;
|
|
10029
10029
|
m.value = !1, (D = e.v) == null || D.$touch(), n("blur", s.value);
|
|
10030
|
-
},
|
|
10030
|
+
}, V = x(() => {
|
|
10031
10031
|
var D, C;
|
|
10032
10032
|
return S(e.errorMessage) ? (C = (D = e.v) == null ? void 0 : D.$errors) != null && C.length ? e.v.$errors.map((_) => _.$message) : [] : [e.errorMessage];
|
|
10033
10033
|
}), R = x(() => {
|
|
@@ -10046,7 +10046,7 @@ const xs = /* @__PURE__ */ te("br", null, null, -1), Fh = /* @__PURE__ */ L({
|
|
|
10046
10046
|
}, ue = async (D) => {
|
|
10047
10047
|
v.value = !0;
|
|
10048
10048
|
const C = k.value[e.filterByField];
|
|
10049
|
-
C.model = D, y.value.clear(), (await e.fetchItemsMinimal(
|
|
10049
|
+
C.model = D, y.value.clear(), (await e.fetchItemsMinimal(F, k.value)).forEach((M) => {
|
|
10050
10050
|
y.value.set(M[e.itemValue], M);
|
|
10051
10051
|
}), v.value = !1;
|
|
10052
10052
|
}, pe = x(() => {
|
|
@@ -10097,7 +10097,7 @@ const xs = /* @__PURE__ */ te("br", null, null, -1), Fh = /* @__PURE__ */ L({
|
|
|
10097
10097
|
"no-filter": "",
|
|
10098
10098
|
multiple: f(ae),
|
|
10099
10099
|
clearable: t.clearable,
|
|
10100
|
-
"error-messages": f(
|
|
10100
|
+
"error-messages": f(V),
|
|
10101
10101
|
loading: v.value,
|
|
10102
10102
|
onBlur: P,
|
|
10103
10103
|
onFocus: O,
|
|
@@ -10143,7 +10143,7 @@ const xs = /* @__PURE__ */ te("br", null, null, -1), Fh = /* @__PURE__ */ L({
|
|
|
10143
10143
|
}), Ss = { class: "d-flex justify-center align-center fill-height" }, $s = { class: "d-flex justify-center align-center flex-column" }, Os = ["src"], Ps = {
|
|
10144
10144
|
key: 0,
|
|
10145
10145
|
class: "display-1 my-3"
|
|
10146
|
-
}, Is = { class: "mb-3 body-1" },
|
|
10146
|
+
}, Is = { class: "mb-3 body-1" }, Fs = { class: "py-5" }, Vs = /* @__PURE__ */ L({
|
|
10147
10147
|
__name: "ALoginView",
|
|
10148
10148
|
props: {
|
|
10149
10149
|
title: { default: void 0 },
|
|
@@ -10165,7 +10165,7 @@ const xs = /* @__PURE__ */ te("br", null, null, -1), Fh = /* @__PURE__ */ L({
|
|
|
10165
10165
|
te("h4", Is, [
|
|
10166
10166
|
te("span", null, $(f(e)("common.system.login.text")), 1)
|
|
10167
10167
|
]),
|
|
10168
|
-
te("div",
|
|
10168
|
+
te("div", Fs, [
|
|
10169
10169
|
t.loginUrl ? (w(), E(oe, {
|
|
10170
10170
|
key: 0,
|
|
10171
10171
|
href: t.loginUrl(),
|
|
@@ -10182,7 +10182,7 @@ const xs = /* @__PURE__ */ te("br", null, null, -1), Fh = /* @__PURE__ */ L({
|
|
|
10182
10182
|
]));
|
|
10183
10183
|
}
|
|
10184
10184
|
});
|
|
10185
|
-
const Nh = /* @__PURE__ */ vt(
|
|
10185
|
+
const Nh = /* @__PURE__ */ vt(Vs, [["__scopeId", "data-v-d02b0927"]]), Lh = /* @__PURE__ */ L({
|
|
10186
10186
|
__name: "ALogoutView",
|
|
10187
10187
|
props: {
|
|
10188
10188
|
logoutUrl: { type: [null, Function], default: void 0 }
|
|
@@ -10377,13 +10377,13 @@ const Jh = (t, n = 2) => {
|
|
|
10377
10377
|
return "0 Bytes";
|
|
10378
10378
|
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));
|
|
10379
10379
|
return parseFloat((t / Math.pow(e, o)).toFixed(a)) + " " + r[o];
|
|
10380
|
-
}, Tt = (t) =>
|
|
10380
|
+
}, Tt = (t) => Vi.includes(t), St = (t, n, e = "") => Sr(n) ? t : Zo(e === "" ? t : e, n), Wh = (t, n, e = "", a = {}, r = null, o, s, c = {}) => new Promise((u, p) => {
|
|
10381
10381
|
const m = { method: n };
|
|
10382
|
-
e !== "" && (m.url = St(e, a)), ve(r) || (m.data = JSON.stringify(r)), t().request({ ...c, ...m }).then((d) => Tt(d.status) ? d.data ? u(d.data) : p(new
|
|
10382
|
+
e !== "" && (m.url = St(e, a)), ve(r) || (m.data = JSON.stringify(r)), t().request({ ...c, ...m }).then((d) => Tt(d.status) ? d.data ? u(d.data) : p(new Fe()) : p(new ht(d.status))).catch((d) => _t(d) ? p(new mt(d)) : Mt(d) ? p(new pt(d, o, s, d)) : xt(d) ? p(new gt(d, d)) : p(new Fe(d)));
|
|
10383
10383
|
}), Ys = (t, n = {}, e, a = {}, r, o, s = {}) => new Promise((c, u) => {
|
|
10384
|
-
t().post(St(e, a), JSON.stringify(n), s).then((p) => Tt(p.status) ? p.data ? c(p.data) : u(new
|
|
10384
|
+
t().post(St(e, a), JSON.stringify(n), s).then((p) => Tt(p.status) ? p.data ? c(p.data) : u(new Fe()) : u(new ht(p.status))).catch((p) => _t(p) ? u(new mt(p)) : Mt(p) ? u(new pt(p, r, o, p)) : xt(p) ? u(new gt(p, p)) : u(new Fe(p)));
|
|
10385
10385
|
}), Hs = (t, n, e = {}, a, r, o = {}) => new Promise((s, c) => {
|
|
10386
|
-
t().delete(St(n, e), o).then((u) => Tt(u.status) ? u.data ? s(u.data) : c(new
|
|
10386
|
+
t().delete(St(n, e), o).then((u) => Tt(u.status) ? u.data ? s(u.data) : c(new Fe()) : c(new ht(u.status))).catch((u) => _t(u) ? c(new mt(u)) : Mt(u) ? c(new pt(u, a, r, u)) : xt(u) ? c(new gt(u, u)) : c(new Fe(u)));
|
|
10387
10387
|
});
|
|
10388
10388
|
function ro() {
|
|
10389
10389
|
const t = J([]), n = (m) => {
|
|
@@ -10408,16 +10408,16 @@ function ro() {
|
|
|
10408
10408
|
querySetFilters: (m) => {
|
|
10409
10409
|
const d = !S(m._elastic);
|
|
10410
10410
|
for (const v in m) {
|
|
10411
|
-
const k = m[v],
|
|
10411
|
+
const k = m[v], F = k.field || v;
|
|
10412
10412
|
if (k.exclude)
|
|
10413
10413
|
continue;
|
|
10414
10414
|
const y = s(k);
|
|
10415
10415
|
if (!ve(y)) {
|
|
10416
10416
|
if (d) {
|
|
10417
|
-
c(
|
|
10417
|
+
c(F, y);
|
|
10418
10418
|
continue;
|
|
10419
10419
|
}
|
|
10420
|
-
o(k.variant,
|
|
10420
|
+
o(k.variant, F, y);
|
|
10421
10421
|
}
|
|
10422
10422
|
}
|
|
10423
10423
|
},
|
|
@@ -10431,8 +10431,8 @@ const Js = (t, n) => {
|
|
|
10431
10431
|
}, qh = (t, n, e, a = {}, r, o, s = {}, c = !1) => new Promise((u, p) => {
|
|
10432
10432
|
t().get(St(e, a) + Js(n, c), s).then((m) => {
|
|
10433
10433
|
var d;
|
|
10434
|
-
return Tt(m.status) ? (d = m.data) != null && d.data ? u(m.data.data) : p(new
|
|
10435
|
-
}).catch((m) => _t(m) ? p(new mt(m)) : Mt(m) ? p(new pt(m, r, o, m)) : xt(m) ? p(new gt(m, m)) : p(new
|
|
10434
|
+
return Tt(m.status) ? (d = m.data) != null && d.data ? u(m.data.data) : p(new Fe()) : p(new ht(m.status));
|
|
10435
|
+
}).catch((m) => _t(m) ? p(new mt(m)) : Mt(m) ? p(new pt(m, r, o, m)) : xt(m) ? p(new gt(m, m)) : p(new Fe(m)));
|
|
10436
10436
|
}), Ws = (t) => qn(t) && Object.hasOwn(t, "totalCount"), qs = (t) => qn(t) && Object.hasOwn(t, "hasNextPage"), Gs = (t, n) => {
|
|
10437
10437
|
const { querySetLimit: e, querySetOffset: a, querySetOrder: r, queryBuild: o, querySetFilters: s } = ro();
|
|
10438
10438
|
return e(t.rowsPerPage), a(t.page, t.rowsPerPage), r(t.sortBy, t.descending), s(n), o();
|
|
@@ -10448,18 +10448,18 @@ const Js = (t, n) => {
|
|
|
10448
10448
|
const v = d.data;
|
|
10449
10449
|
return qs(v) ? a.hasNextPage = d.data.hasNextPage : Ws(v) && (a.totalCount = v.totalCount), a.currentViewCount = d.data.data.length, u(d.data.data);
|
|
10450
10450
|
}
|
|
10451
|
-
return p(new
|
|
10452
|
-
}).catch((d) => _t(d) ? p(new mt(d)) : Mt(d) ? p(new pt(d, o, s, d)) : xt(d) ? p(new gt(d, d)) : p(new
|
|
10451
|
+
return p(new Fe());
|
|
10452
|
+
}).catch((d) => _t(d) ? p(new mt(d)) : Mt(d) ? p(new pt(d, o, s, d)) : xt(d) ? p(new gt(d, d)) : p(new Fe(d)));
|
|
10453
10453
|
}), Zs = (t, n, e = {}, a, r, o = {}) => new Promise((s, c) => {
|
|
10454
|
-
t().get(St(n, e), o).then((u) => Tt(u.status) ? u.data ? s(u.data) : c(new
|
|
10454
|
+
t().get(St(n, e), o).then((u) => Tt(u.status) ? u.data ? s(u.data) : c(new Fe()) : c(new ht(u.status))).catch((u) => _t(u) ? c(new mt(u)) : Mt(u) ? c(new pt(u, a, r, u)) : xt(u) ? c(new gt(u, u)) : c(new Fe(u)));
|
|
10455
10455
|
}), Gh = (t, n = {}, e, a = {}, r, o, s = {}) => new Promise((c, u) => {
|
|
10456
|
-
t().put(St(e, a), JSON.stringify(n), s).then((p) => Tt(p.status) ? p.data ? c(p.data) : u(new
|
|
10456
|
+
t().put(St(e, a), JSON.stringify(n), s).then((p) => Tt(p.status) ? p.data ? c(p.data) : u(new Fe()) : u(new ht(p.status))).catch((p) => _t(p) ? u(new mt(p)) : Mt(p) ? u(new pt(p, r, o, p)) : xt(p) ? u(new gt(p, p)) : u(new Fe(p)));
|
|
10457
10457
|
});
|
|
10458
10458
|
function Kh() {
|
|
10459
10459
|
return {
|
|
10460
10460
|
isAnzuFatalError: Pr,
|
|
10461
|
-
isAnzuApiForbiddenError:
|
|
10462
|
-
isAnzuApiValidationError:
|
|
10461
|
+
isAnzuApiForbiddenError: Fr,
|
|
10462
|
+
isAnzuApiValidationError: Vr,
|
|
10463
10463
|
isAnzuApiResponseCodeError: Er
|
|
10464
10464
|
};
|
|
10465
10465
|
}
|
|
@@ -10576,7 +10576,7 @@ const eg = (t, n) => {
|
|
|
10576
10576
|
timePicker: cu,
|
|
10577
10577
|
pagination: fu,
|
|
10578
10578
|
rating: mu
|
|
10579
|
-
}, hu = "System error, try again later or contact administrator", gu = "Access denied, you dont have correct rights for this action", vu = "Please fill all required fields and fix problems", yu = "Please, fix these errors", bu = {
|
|
10579
|
+
}, hu = "System error, try again later or contact administrator", gu = "Access denied, you dont have correct rights for this action", vu = "Please fill all required fields and fix problems", yu = "Please, fix these errors", bu = "Forbidden operation", wu = {
|
|
10580
10580
|
created: "Record was created",
|
|
10581
10581
|
updated: "Record was updated",
|
|
10582
10582
|
deleted: "Record was removed",
|
|
@@ -10584,30 +10584,30 @@ const eg = (t, n) => {
|
|
|
10584
10584
|
unpublished: "Record was unpublished",
|
|
10585
10585
|
enabled: "Record was enabled",
|
|
10586
10586
|
disabled: "Record was disabled"
|
|
10587
|
-
},
|
|
10587
|
+
}, ku = "ID was copied to clipboard", Cu = "Text was copied to clipboard", Au = {
|
|
10588
10588
|
unknownError: hu,
|
|
10589
10589
|
forbiddenError: gu,
|
|
10590
10590
|
fixValidationErrors: vu,
|
|
10591
10591
|
fixApiValidationErrors: yu,
|
|
10592
|
-
|
|
10593
|
-
|
|
10594
|
-
|
|
10595
|
-
|
|
10596
|
-
|
|
10597
|
-
|
|
10598
|
-
|
|
10599
|
-
|
|
10600
|
-
|
|
10601
|
-
|
|
10602
|
-
|
|
10603
|
-
|
|
10604
|
-
|
|
10605
|
-
|
|
10606
|
-
|
|
10592
|
+
apiForbiddenOperationError: bu,
|
|
10593
|
+
recordWas: wu,
|
|
10594
|
+
idWasCopied: ku,
|
|
10595
|
+
textWasCopied: Cu
|
|
10596
|
+
}, Du = "Create", _u = "Create And Close", Mu = "Save", xu = "Save And Close", Tu = "Close", Su = "Edit", $u = "Detail", Ou = "Apply Filter", Pu = "Reset Filter", Iu = "More filters", Fu = "Cancel", Vu = "Id", Eu = "Now", Nu = "Confirm", Lu = "Copy ID", Bu = "Add", ju = "Download", zu = "Upload", Ru = {
|
|
10597
|
+
create: Du,
|
|
10598
|
+
createAndClose: _u,
|
|
10599
|
+
save: Mu,
|
|
10600
|
+
saveAndClose: xu,
|
|
10601
|
+
close: Tu,
|
|
10602
|
+
edit: Su,
|
|
10603
|
+
detail: $u,
|
|
10604
|
+
submitFilter: Ou,
|
|
10605
|
+
resetFilter: Pu,
|
|
10606
|
+
advancedFilters: Iu,
|
|
10607
|
+
cancel: Fu,
|
|
10607
10608
|
delete: "Delete",
|
|
10608
10609
|
id: Vu,
|
|
10609
|
-
now:
|
|
10610
|
-
logout: Eu,
|
|
10610
|
+
now: Eu,
|
|
10611
10611
|
confirm: Nu,
|
|
10612
10612
|
copyId: Lu,
|
|
10613
10613
|
add: Bu,
|
|
@@ -10823,10 +10823,10 @@ const eg = (t, n) => {
|
|
|
10823
10823
|
model: Sd,
|
|
10824
10824
|
filter: $d,
|
|
10825
10825
|
button: Od
|
|
10826
|
-
}, Id = "Invalid",
|
|
10826
|
+
}, Id = "Invalid", Fd = "todo trans error_id_mismatch", Vd = "todo trans error_field_empty", Ed = "todo trans error_field_length_min", Nd = "todo trans error_field_length_max", Ld = "todo trans error_field_invalid", Bd = "todo trans error_field_not_unique", jd = "todo trans error_field_value_not_found", zd = "todo trans error_field_range_min", Rd = "todo trans error_field_range_max", Ud = "todo trans error_field_regex", Yd = "todo trans error_field_url", Hd = "todo trans error_already_exists", Jd = {
|
|
10827
10827
|
noTranslation: Id,
|
|
10828
|
-
error_id_mismatch:
|
|
10829
|
-
error_field_empty:
|
|
10828
|
+
error_id_mismatch: Fd,
|
|
10829
|
+
error_field_empty: Vd,
|
|
10830
10830
|
error_field_length_min: Ed,
|
|
10831
10831
|
error_field_length_max: Nd,
|
|
10832
10832
|
error_field_invalid: Ld,
|
|
@@ -10837,7 +10837,7 @@ const eg = (t, n) => {
|
|
|
10837
10837
|
error_field_regex: Ud,
|
|
10838
10838
|
error_field_url: Yd,
|
|
10839
10839
|
error_already_exists: Hd
|
|
10840
|
-
}, Wd = "Required.", qd = "todo translate between", Gd = "Minimal length is {min}.", Kd = "Maximal length is {max}.", Zd = "todo translate maxValue", Qd = "todo translate minValue", Xd = "Incorrect email format", ec = "Incorrect url format", tc = "todo translate numeric", nc = "todo translate slug", ac = "Item length in list must have between {min} and {max} characters.", rc = {
|
|
10840
|
+
}, Wd = "Required.", qd = "todo translate between numeric values {min} and {max}", Gd = "Minimal length is {min}.", Kd = "Maximal length is {max}.", Zd = "todo translate maxValue {max}", Qd = "todo translate minValue {min}", Xd = "Incorrect email format", ec = "Incorrect url format", tc = "todo translate numeric", nc = "todo translate slug", ac = "Item length in list must have between {min} and {max} characters.", rc = {
|
|
10841
10841
|
required: Wd,
|
|
10842
10842
|
between: qd,
|
|
10843
10843
|
minLength: Gd,
|
|
@@ -10853,7 +10853,7 @@ const eg = (t, n) => {
|
|
|
10853
10853
|
noTranslation: oc
|
|
10854
10854
|
}, rg = {
|
|
10855
10855
|
common: {
|
|
10856
|
-
alert:
|
|
10856
|
+
alert: Au,
|
|
10857
10857
|
button: Ru,
|
|
10858
10858
|
model: qu,
|
|
10859
10859
|
system: ld,
|
|
@@ -10892,7 +10892,7 @@ const eg = (t, n) => {
|
|
|
10892
10892
|
recordWas: fc,
|
|
10893
10893
|
idWasCopied: mc,
|
|
10894
10894
|
textWasCopied: pc
|
|
10895
|
-
}, gc = "Vytvoriť", vc = "Vytvoriť a zatvoriť", yc = "Uložiť", bc = "Uložiť a zatvoriť", wc = "Zatvoriť", kc = "Editovať", Cc = "Detail", Ac = "Hľadať", Dc = "Zrušiť filter", _c = "More filters", Mc = "Zrušiť", xc = "ID", Tc = "Teraz", Sc = "Potvrď", $c = "Copy ID", Oc = "Pridať", Pc = "Download", Ic = "Upload",
|
|
10895
|
+
}, gc = "Vytvoriť", vc = "Vytvoriť a zatvoriť", yc = "Uložiť", bc = "Uložiť a zatvoriť", wc = "Zatvoriť", kc = "Editovať", Cc = "Detail", Ac = "Hľadať", Dc = "Zrušiť filter", _c = "More filters", Mc = "Zrušiť", xc = "ID", Tc = "Teraz", Sc = "Potvrď", $c = "Copy ID", Oc = "Pridať", Pc = "Download", Ic = "Upload", Fc = {
|
|
10896
10896
|
create: gc,
|
|
10897
10897
|
createAndClose: vc,
|
|
10898
10898
|
save: yc,
|
|
@@ -10912,7 +10912,7 @@ const eg = (t, n) => {
|
|
|
10912
10912
|
add: Oc,
|
|
10913
10913
|
download: Pc,
|
|
10914
10914
|
Upload: Ic
|
|
10915
|
-
},
|
|
10915
|
+
}, Vc = "System", Ec = "Nevybrané", Nc = {
|
|
10916
10916
|
true: "áno",
|
|
10917
10917
|
false: "nie"
|
|
10918
10918
|
}, Lc = {
|
|
@@ -10925,7 +10925,7 @@ const eg = (t, n) => {
|
|
|
10925
10925
|
contains: "Kdekoľvek vo výraze",
|
|
10926
10926
|
startsWith: "Začiatok výrazu"
|
|
10927
10927
|
}, jc = {
|
|
10928
|
-
system:
|
|
10928
|
+
system: Vc,
|
|
10929
10929
|
notSelected: Ec,
|
|
10930
10930
|
boolean: Nc,
|
|
10931
10931
|
tracking: Lc,
|
|
@@ -11156,9 +11156,9 @@ const eg = (t, n) => {
|
|
|
11156
11156
|
ariaLabel: {
|
|
11157
11157
|
delimiter: "Carousel slide {0} of {1}"
|
|
11158
11158
|
}
|
|
11159
|
-
}, Vf = {
|
|
11160
|
-
moreEvents: "{0} more"
|
|
11161
11159
|
}, Ff = {
|
|
11160
|
+
moreEvents: "{0} more"
|
|
11161
|
+
}, Vf = {
|
|
11162
11162
|
clear: "Clear {0}",
|
|
11163
11163
|
prependAction: "{0} prepended action",
|
|
11164
11164
|
appendAction: "{0} appended action"
|
|
@@ -11191,8 +11191,8 @@ const eg = (t, n) => {
|
|
|
11191
11191
|
datePicker: Of,
|
|
11192
11192
|
noDataText: Pf,
|
|
11193
11193
|
carousel: If,
|
|
11194
|
-
calendar:
|
|
11195
|
-
input:
|
|
11194
|
+
calendar: Ff,
|
|
11195
|
+
input: Vf,
|
|
11196
11196
|
fileInput: Ef,
|
|
11197
11197
|
timePicker: Nf,
|
|
11198
11198
|
pagination: Lf,
|
|
@@ -11213,7 +11213,7 @@ const eg = (t, n) => {
|
|
|
11213
11213
|
error_already_exists: Xf
|
|
11214
11214
|
}, tm = "Error", nm = {
|
|
11215
11215
|
noTranslation: tm
|
|
11216
|
-
}, am = "Required.", rm = "todo translate between numeric values", om = "Minimal length is {min}.", im = "Maximal length is {max}.", lm = "todo translate maxValue", sm = "todo translate minValue", um = "Incorrect email format", dm = "Incorrect url format", cm = "todo translate numeric", fm = "todo translate slug", mm = "Item length in list must have between {min} and {max} characters.", pm = {
|
|
11216
|
+
}, am = "Required.", rm = "todo translate between numeric values {min} and {max}", om = "Minimal length is {min}.", im = "Maximal length is {max}.", lm = "todo translate maxValue {max}", sm = "todo translate minValue {min}", um = "Incorrect email format", dm = "Incorrect url format", cm = "todo translate numeric", fm = "todo translate slug", mm = "Item length in list must have between {min} and {max} characters.", pm = {
|
|
11217
11217
|
required: am,
|
|
11218
11218
|
between: rm,
|
|
11219
11219
|
minLength: om,
|
|
@@ -11228,7 +11228,7 @@ const eg = (t, n) => {
|
|
|
11228
11228
|
}, og = {
|
|
11229
11229
|
common: {
|
|
11230
11230
|
alert: hc,
|
|
11231
|
-
button:
|
|
11231
|
+
button: Fc,
|
|
11232
11232
|
model: jc,
|
|
11233
11233
|
system: Xc,
|
|
11234
11234
|
anzuUser: rf,
|
|
@@ -11310,7 +11310,7 @@ function Pm() {
|
|
|
11310
11310
|
});
|
|
11311
11311
|
}
|
|
11312
11312
|
const { t: Im } = le.global;
|
|
11313
|
-
function
|
|
11313
|
+
function Fm() {
|
|
11314
11314
|
const t = Ke({ t: Im }), n = (a, r) => (o) => !Tr.req(o) || o.every((s) => s.length >= f(a) && s.length <= f(r));
|
|
11315
11315
|
return t((a, r) => ({
|
|
11316
11316
|
$validator: n(a, r),
|
|
@@ -11329,9 +11329,9 @@ function Vm() {
|
|
|
11329
11329
|
messagePath: () => "error.jsValidation.stringArrayItemLength"
|
|
11330
11330
|
});
|
|
11331
11331
|
}
|
|
11332
|
-
const { t:
|
|
11332
|
+
const { t: Vm } = le.global;
|
|
11333
11333
|
function Em() {
|
|
11334
|
-
return Ke({ t:
|
|
11334
|
+
return Ke({ t: Vm })(Fo, {
|
|
11335
11335
|
messagePath: () => "error.jsValidation.url"
|
|
11336
11336
|
});
|
|
11337
11337
|
}
|
|
@@ -11348,7 +11348,7 @@ function ig() {
|
|
|
11348
11348
|
numeric: Tm(),
|
|
11349
11349
|
slug: Pm(),
|
|
11350
11350
|
url: Em(),
|
|
11351
|
-
stringArrayItemLength:
|
|
11351
|
+
stringArrayItemLength: Fm()
|
|
11352
11352
|
};
|
|
11353
11353
|
}
|
|
11354
11354
|
const Nm = ["createdAt", "modifiedAt"], { t: gr } = le.global || le, Lm = {
|
|
@@ -11498,21 +11498,21 @@ const sg = () => ({
|
|
|
11498
11498
|
});
|
|
11499
11499
|
function ug(t, n, e, a = "id") {
|
|
11500
11500
|
const r = J(/* @__PURE__ */ new Map()), o = J(/* @__PURE__ */ new Set()), s = (...P) => {
|
|
11501
|
-
const
|
|
11501
|
+
const V = J(/* @__PURE__ */ new Set());
|
|
11502
11502
|
for (let R = 0; R < P.length; R++) {
|
|
11503
11503
|
const U = P[R];
|
|
11504
11504
|
if (!(ve(U) || S(U))) {
|
|
11505
11505
|
if (Oe(U)) {
|
|
11506
11506
|
for (let ae = 0; ae < U.length; ae++) {
|
|
11507
11507
|
const ee = U[ae];
|
|
11508
|
-
ve(ee) || S(ee) || r.value.has(ee) ||
|
|
11508
|
+
ve(ee) || S(ee) || r.value.has(ee) || V.value.add(ee);
|
|
11509
11509
|
}
|
|
11510
11510
|
continue;
|
|
11511
11511
|
}
|
|
11512
|
-
r.value.has(U) ||
|
|
11512
|
+
r.value.has(U) || V.value.add(U);
|
|
11513
11513
|
}
|
|
11514
11514
|
}
|
|
11515
|
-
|
|
11515
|
+
V.value.forEach((R) => {
|
|
11516
11516
|
r.value.set(R, { ...n(R), _loaded: !1 }), o.value.add(R);
|
|
11517
11517
|
});
|
|
11518
11518
|
}, c = (P) => {
|
|
@@ -11520,16 +11520,16 @@ function ug(t, n, e, a = "id") {
|
|
|
11520
11520
|
}, u = (P) => {
|
|
11521
11521
|
P[a] && r.value.set(P[a], { ...P, _loaded: !0 });
|
|
11522
11522
|
}, p = (P) => {
|
|
11523
|
-
for (let
|
|
11524
|
-
r.value.set(P[
|
|
11523
|
+
for (let V = 0; V < P.length; V += 1)
|
|
11524
|
+
r.value.set(P[V][a], { ...t(P[V]), _loaded: !0 });
|
|
11525
11525
|
}, m = (P) => {
|
|
11526
|
-
for (let
|
|
11527
|
-
o.value.delete(P[
|
|
11526
|
+
for (let V = 0; V < P.length; V += 1)
|
|
11527
|
+
o.value.delete(P[V]);
|
|
11528
11528
|
};
|
|
11529
11529
|
async function d() {
|
|
11530
11530
|
if (o.value.size > 0) {
|
|
11531
|
-
const P = Array.from(o.value),
|
|
11532
|
-
m(P), p(
|
|
11531
|
+
const P = Array.from(o.value), V = await e(P);
|
|
11532
|
+
m(P), p(V);
|
|
11533
11533
|
}
|
|
11534
11534
|
}
|
|
11535
11535
|
const v = Co(
|
|
@@ -11556,8 +11556,8 @@ function ug(t, n, e, a = "id") {
|
|
|
11556
11556
|
isLoaded: (P) => {
|
|
11557
11557
|
if (!P)
|
|
11558
11558
|
return !1;
|
|
11559
|
-
const
|
|
11560
|
-
return
|
|
11559
|
+
const V = r.value.get(P);
|
|
11560
|
+
return V ? V._loaded : !1;
|
|
11561
11561
|
}
|
|
11562
11562
|
};
|
|
11563
11563
|
}
|
|
@@ -11604,7 +11604,7 @@ export {
|
|
|
11604
11604
|
zp as AAdminSwitcher,
|
|
11605
11605
|
wp as AAlerts,
|
|
11606
11606
|
hr as AAnzuUserAvatar,
|
|
11607
|
-
|
|
11607
|
+
Fh as AAvatarColorPicker,
|
|
11608
11608
|
bp as ABooleanValue,
|
|
11609
11609
|
vh as ACachedChip,
|
|
11610
11610
|
kp as ACard,
|
|
@@ -11612,10 +11612,10 @@ export {
|
|
|
11612
11612
|
wh as AChipNoLink,
|
|
11613
11613
|
bh as ACopyText,
|
|
11614
11614
|
jp as ACreateDialog,
|
|
11615
|
-
|
|
11616
|
-
|
|
11615
|
+
Vh as ACurrentUserDropdown,
|
|
11616
|
+
Vp as ADatatableConfigButton,
|
|
11617
11617
|
Ep as ADatatableOrdering,
|
|
11618
|
-
|
|
11618
|
+
Fp as ADatatablePagination,
|
|
11619
11619
|
Rn as ADatetime,
|
|
11620
11620
|
$r as ADialogToolbar,
|
|
11621
11621
|
Rp as AEmptyRouterView,
|
|
@@ -11665,7 +11665,7 @@ export {
|
|
|
11665
11665
|
gt as AnzuApiForbiddenOperationError,
|
|
11666
11666
|
ht as AnzuApiResponseCodeError,
|
|
11667
11667
|
pt as AnzuApiValidationError,
|
|
11668
|
-
|
|
11668
|
+
Fe as AnzuFatalError,
|
|
11669
11669
|
oh as AnzuSystemsCommonAdmin,
|
|
11670
11670
|
Hr as AvailableLanguagesSymbol,
|
|
11671
11671
|
mr as COMMON_CONFIG,
|
|
@@ -11676,7 +11676,7 @@ export {
|
|
|
11676
11676
|
zr as GrantOrigin,
|
|
11677
11677
|
Lp as HTTP_STATUS_BAD_REQUEST,
|
|
11678
11678
|
Pi as HTTP_STATUS_CREATED,
|
|
11679
|
-
|
|
11679
|
+
Fi as HTTP_STATUS_FORBIDDEN,
|
|
11680
11680
|
Ii as HTTP_STATUS_NO_CONTENT,
|
|
11681
11681
|
Oi as HTTP_STATUS_OK,
|
|
11682
11682
|
Bp as HTTP_STATUS_UNAUTHORIZED,
|
|
@@ -11719,10 +11719,10 @@ export {
|
|
|
11719
11719
|
ug as defineCached,
|
|
11720
11720
|
st as eventClickBlur,
|
|
11721
11721
|
le as i18n,
|
|
11722
|
-
|
|
11722
|
+
Fr as isAnzuApiForbiddenError,
|
|
11723
11723
|
Bi as isAnzuApiForbiddenOperationError,
|
|
11724
11724
|
Er as isAnzuApiResponseCodeError,
|
|
11725
|
-
|
|
11725
|
+
Vr as isAnzuApiValidationError,
|
|
11726
11726
|
Pr as isAnzuFatalError,
|
|
11727
11727
|
Oe as isArray,
|
|
11728
11728
|
rr as isBoolean,
|