@anzusystems/common-admin 0.0.13 → 0.0.14
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 +22 -2
- package/dist/common-admin.es.js +580 -524
- package/dist/common-admin.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/common-admin.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Pr = Object.defineProperty;
|
|
2
2
|
var Ir = (e, n, t) => n in e ? Pr(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
3
|
var hn = (e, n, t) => (Ir(e, typeof n != "symbol" ? n + "" : n, t), t);
|
|
4
|
-
import { defineComponent as B, computed as A, openBlock as _, createBlock as j, unref as h, withCtx as k, createTextVNode as Z, toDisplayString as L, createElementBlock as U, createVNode as M, createCommentVNode as re, renderSlot as $e, createElementVNode as ie, resolveComponent as Er, normalizeClass as De, withModifiers as se, withDirectives as Ka, vShow as Za, isProxy as
|
|
4
|
+
import { defineComponent as B, computed as A, openBlock as _, createBlock as j, unref as h, withCtx as k, createTextVNode as Z, toDisplayString as L, createElementBlock as U, createVNode as M, createCommentVNode as re, renderSlot as $e, createElementVNode as ie, resolveComponent as Er, normalizeClass as De, withModifiers as se, withDirectives as Ka, vShow as Za, isProxy as Nr, toRaw as Fr, isRef as Ue, inject as ze, createSlots as xn, Fragment as Je, provide as xa, ref as te, renderList as dt, watch as ct, TransitionGroup as Qa, normalizeStyle as Oa, resolveDynamicComponent as ea, h as Lr, nextTick as Vr, onMounted as jr, withKeys as Br, reactive as Rr, toRefs as Xa, mergeProps as ta, readonly as Et, createStaticVNode as er, setBlockTracking as $a, onBeforeUnmount as Yr } from "vue";
|
|
5
5
|
import { useI18n as X, createI18n as Hr } from "vue-i18n";
|
|
6
6
|
import { useI18n as wc } from "vue-i18n";
|
|
7
7
|
import { VChip as Rt } from "vuetify/lib/components/VChip/index.mjs";
|
|
@@ -23,8 +23,8 @@ import { watchDebounced as nr, useClipboard as ar, useStorage as rr, useInterval
|
|
|
23
23
|
import { VAutocomplete as In } from "vuetify/lib/components/VAutocomplete/index.mjs";
|
|
24
24
|
import { VDialog as so } from "vuetify/lib/components/VDialog/index.mjs";
|
|
25
25
|
import { VToolbar as uo, VToolbarItems as co } from "vuetify/lib/components/VToolbar/index.mjs";
|
|
26
|
-
import { useRouter as
|
|
27
|
-
import { VList as or, VListItem as _n, VListItemTitle as
|
|
26
|
+
import { useRouter as mo } from "vue-router";
|
|
27
|
+
import { VList as or, VListItem as _n, VListItemTitle as fo } from "vuetify/lib/components/VList/index.mjs";
|
|
28
28
|
import { VMenu as ir } from "vuetify/lib/components/VMenu/index.mjs";
|
|
29
29
|
import { useLocale as po } from "vuetify";
|
|
30
30
|
import { VAvatar as Ia } from "vuetify/lib/components/VAvatar/index.mjs";
|
|
@@ -77,7 +77,7 @@ const vo = { key: 1 }, yo = /* @__PURE__ */ B({
|
|
|
77
77
|
_: 3
|
|
78
78
|
}));
|
|
79
79
|
}
|
|
80
|
-
}), _o = ["textContent"],
|
|
80
|
+
}), _o = ["textContent"], Fu = /* @__PURE__ */ B({
|
|
81
81
|
__name: "AAlerts",
|
|
82
82
|
props: {
|
|
83
83
|
max: { default: 5 },
|
|
@@ -151,18 +151,18 @@ const vo = { key: 1 }, yo = /* @__PURE__ */ B({
|
|
|
151
151
|
}, 8, ["title", "variant", "loading"]));
|
|
152
152
|
}
|
|
153
153
|
});
|
|
154
|
-
const
|
|
154
|
+
const ft = (e, n) => {
|
|
155
155
|
const t = e.__vccOpts || e;
|
|
156
156
|
for (const [a, o] of n)
|
|
157
157
|
t[a] = o;
|
|
158
158
|
return t;
|
|
159
|
-
}, Lu = /* @__PURE__ */
|
|
159
|
+
}, Lu = /* @__PURE__ */ ft(ko, [["__scopeId", "data-v-4efd8dab"]]), x = (e) => typeof e > "u", Na = (e) => !x(e), _e = (e) => e === null, na = (e) => typeof e == "number", nt = (e) => typeof e == "string", Xe = (e) => Array.isArray(e), Fa = (e) => typeof e == "boolean", Vu = (e) => nt(e) && /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(e), ju = (e) => {
|
|
160
160
|
const n = parseFloat(e);
|
|
161
161
|
return !isNaN(e) && (n | 0) === n;
|
|
162
|
-
}, lr = (e) => typeof e == "object" && !Xe(e) && !_e(e), sr = (e) => lr(e) ? Object.keys(e).length === 0 : !1, ur = (e) => Xe(e) && e.length === 0, Do = (e) => _e(e) ||
|
|
162
|
+
}, lr = (e) => typeof e == "object" && !Xe(e) && !_e(e), sr = (e) => lr(e) ? Object.keys(e).length === 0 : !1, ur = (e) => Xe(e) && e.length === 0, Do = (e) => _e(e) || x(e) || e === "" || e === 0 || ur(e) || sr(e), jt = (e) => {
|
|
163
163
|
if (typeof structuredClone == "function")
|
|
164
164
|
try {
|
|
165
|
-
return
|
|
165
|
+
return Nr(e) ? structuredClone(Fr(e)) : Ue(e) ? structuredClone(h(e)) : structuredClone(e);
|
|
166
166
|
} catch {
|
|
167
167
|
return JSON.parse(JSON.stringify(e));
|
|
168
168
|
}
|
|
@@ -197,7 +197,7 @@ const mt = (e, n) => {
|
|
|
197
197
|
if (t[l] = o, !o.startsWith(":"))
|
|
198
198
|
return;
|
|
199
199
|
const s = o.substring(1);
|
|
200
|
-
|
|
200
|
+
x(n[s]) || (t[l] = n[o.substring(1)] + "");
|
|
201
201
|
}), t.join("/");
|
|
202
202
|
}, qn = (e) => e.replace(".", "-"), at = Symbol.for("anzu:system-scope"), rt = Symbol.for("anzu:subject-scope"), So = {
|
|
203
203
|
key: 0,
|
|
@@ -219,27 +219,27 @@ const mt = (e, n) => {
|
|
|
219
219
|
},
|
|
220
220
|
emits: ["update:modelValue", "click:append", "blur"],
|
|
221
221
|
setup(e, { emit: n }) {
|
|
222
|
-
const t = e, { t: a } = X(), o = ze(at, void 0), l = ze(rt, void 0), s = (
|
|
223
|
-
n("update:modelValue",
|
|
222
|
+
const t = e, { t: a } = X(), o = ze(at, void 0), l = ze(rt, void 0), s = (m) => {
|
|
223
|
+
n("update:modelValue", m);
|
|
224
224
|
}, c = () => {
|
|
225
|
-
var
|
|
226
|
-
n("blur", t.modelValue), (
|
|
225
|
+
var m;
|
|
226
|
+
n("blur", t.modelValue), (m = t.v) == null || m.$touch();
|
|
227
227
|
}, d = A(() => {
|
|
228
|
-
var
|
|
229
|
-
return
|
|
228
|
+
var m, f;
|
|
229
|
+
return x(t.errorMessage) ? (f = (m = t.v) == null ? void 0 : m.$errors) != null && f.length ? [t.v.$errors.map((w) => w.$message).join(" ")] : [] : [t.errorMessage];
|
|
230
230
|
}), y = A(() => {
|
|
231
|
-
var
|
|
232
|
-
if (
|
|
231
|
+
var f, w;
|
|
232
|
+
if (!x(t.label))
|
|
233
233
|
return t.label;
|
|
234
|
-
if (
|
|
234
|
+
if (x(o) || x(l) || x((f = t.v) == null ? void 0 : f.$path))
|
|
235
235
|
return "";
|
|
236
|
-
const { end:
|
|
237
|
-
return a(o + "." + l + ".model." +
|
|
236
|
+
const { end: m } = Ct((w = t.v) == null ? void 0 : w.$path, ".");
|
|
237
|
+
return a(o + "." + l + ".model." + m);
|
|
238
238
|
}), p = A(() => {
|
|
239
|
-
var
|
|
240
|
-
return
|
|
239
|
+
var m, f;
|
|
240
|
+
return x(t.required) ? !!((m = t.v) != null && m.required && ((f = t.v) == null ? void 0 : f.required.$params.type) === "required") : t.required;
|
|
241
241
|
});
|
|
242
|
-
return (
|
|
242
|
+
return (m, f) => (_(), j($n, {
|
|
243
243
|
"prepend-icon": e.prependIcon,
|
|
244
244
|
"data-cy": e.dataCy,
|
|
245
245
|
"error-messages": h(d),
|
|
@@ -249,9 +249,9 @@ const mt = (e, n) => {
|
|
|
249
249
|
step: e.step,
|
|
250
250
|
"append-icon": e.appendIcon,
|
|
251
251
|
trim: "",
|
|
252
|
-
"onClick:append":
|
|
252
|
+
"onClick:append": f[0] || (f[0] = (w) => n("click:append", w)),
|
|
253
253
|
onBlur: c,
|
|
254
|
-
"onUpdate:modelValue":
|
|
254
|
+
"onUpdate:modelValue": f[1] || (f[1] = (w) => s(w))
|
|
255
255
|
}, xn({ _: 2 }, [
|
|
256
256
|
e.hideLabel ? void 0 : {
|
|
257
257
|
name: "label",
|
|
@@ -282,27 +282,27 @@ const mt = (e, n) => {
|
|
|
282
282
|
},
|
|
283
283
|
emits: ["update:modelValue", "click:append", "blur"],
|
|
284
284
|
setup(e, { emit: n }) {
|
|
285
|
-
const t = e, { t: a } = X(), o = ze(at, void 0), l = ze(rt, void 0), s = (
|
|
286
|
-
n("update:modelValue",
|
|
285
|
+
const t = e, { t: a } = X(), o = ze(at, void 0), l = ze(rt, void 0), s = (m) => {
|
|
286
|
+
n("update:modelValue", m);
|
|
287
287
|
}, c = () => {
|
|
288
|
-
var
|
|
289
|
-
n("blur", t.modelValue), (
|
|
288
|
+
var m;
|
|
289
|
+
n("blur", t.modelValue), (m = t.v) == null || m.$touch();
|
|
290
290
|
}, d = A(() => {
|
|
291
|
-
var
|
|
292
|
-
return
|
|
291
|
+
var m, f;
|
|
292
|
+
return x(t.errorMessage) ? (f = (m = t.v) == null ? void 0 : m.$errors) != null && f.length ? [t.v.$errors.map((w) => w.$message).join(" ")] : [] : [t.errorMessage];
|
|
293
293
|
}), y = A(() => {
|
|
294
|
-
var
|
|
295
|
-
if (
|
|
294
|
+
var f, w;
|
|
295
|
+
if (!x(t.label))
|
|
296
296
|
return t.label;
|
|
297
|
-
if (
|
|
297
|
+
if (x(o) || x(l) || x((f = t.v) == null ? void 0 : f.$path))
|
|
298
298
|
return "";
|
|
299
|
-
const { end:
|
|
300
|
-
return a(o + "." + l + ".model." +
|
|
299
|
+
const { end: m } = Ct((w = t.v) == null ? void 0 : w.$path, ".");
|
|
300
|
+
return a(o + "." + l + ".model." + m);
|
|
301
301
|
}), p = A(() => {
|
|
302
|
-
var
|
|
303
|
-
return
|
|
302
|
+
var m, f;
|
|
303
|
+
return x(t.required) ? !!((m = t.v) != null && m.required && ((f = t.v) == null ? void 0 : f.required.$params.type) === "required") : t.required;
|
|
304
304
|
});
|
|
305
|
-
return (
|
|
305
|
+
return (m, f) => (_(), j(Wr, {
|
|
306
306
|
"prepend-icon": e.prependIcon,
|
|
307
307
|
"data-cy": e.dataCy,
|
|
308
308
|
"error-messages": h(d),
|
|
@@ -312,9 +312,9 @@ const mt = (e, n) => {
|
|
|
312
312
|
"auto-grow": "",
|
|
313
313
|
"append-icon": e.appendIcon,
|
|
314
314
|
trim: "",
|
|
315
|
-
"onClick:append":
|
|
315
|
+
"onClick:append": f[0] || (f[0] = (w) => n("click:append", w)),
|
|
316
316
|
onBlur: c,
|
|
317
|
-
"onUpdate:modelValue":
|
|
317
|
+
"onUpdate:modelValue": f[1] || (f[1] = (w) => s(w))
|
|
318
318
|
}, xn({ _: 2 }, [
|
|
319
319
|
e.hideLabel ? void 0 : {
|
|
320
320
|
name: "label",
|
|
@@ -348,16 +348,16 @@ const mt = (e, n) => {
|
|
|
348
348
|
n("update:modelValue", y);
|
|
349
349
|
}
|
|
350
350
|
}), { t: s } = X(), c = A(() => {
|
|
351
|
-
var p,
|
|
352
|
-
if (
|
|
351
|
+
var p, m;
|
|
352
|
+
if (!x(t.label))
|
|
353
353
|
return t.label;
|
|
354
|
-
if (
|
|
354
|
+
if (x(a) || x(o) || x((p = t.v) == null ? void 0 : p.$path))
|
|
355
355
|
return "";
|
|
356
|
-
const { end: y } = Ct((
|
|
356
|
+
const { end: y } = Ct((m = t.v) == null ? void 0 : m.$path, ".");
|
|
357
357
|
return s(a + "." + o + ".model." + y);
|
|
358
358
|
}), d = A(() => {
|
|
359
359
|
var y, p;
|
|
360
|
-
return
|
|
360
|
+
return x(t.required) ? !!((y = t.v) != null && y.required && ((p = t.v) == null ? void 0 : p.required.$params.type) === "required") : t.required;
|
|
361
361
|
});
|
|
362
362
|
return (y, p) => (_(), U(Je, null, [
|
|
363
363
|
e.label ? (_(), j(tr, {
|
|
@@ -372,7 +372,7 @@ const mt = (e, n) => {
|
|
|
372
372
|
})) : re("", !0),
|
|
373
373
|
M(Pn, {
|
|
374
374
|
modelValue: h(l),
|
|
375
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
375
|
+
"onUpdate:modelValue": p[0] || (p[0] = (m) => Ue(l) ? l.value = m : null),
|
|
376
376
|
mandatory: h(d)
|
|
377
377
|
}, {
|
|
378
378
|
default: k(() => [
|
|
@@ -421,7 +421,7 @@ const mt = (e, n) => {
|
|
|
421
421
|
let o = e;
|
|
422
422
|
for (; a.length; ) {
|
|
423
423
|
const l = a.shift();
|
|
424
|
-
if (
|
|
424
|
+
if (x(l) || !(l in o))
|
|
425
425
|
return;
|
|
426
426
|
o = o[l];
|
|
427
427
|
}
|
|
@@ -431,7 +431,7 @@ const mt = (e, n) => {
|
|
|
431
431
|
let l = e;
|
|
432
432
|
for (; o.length - 1; ) {
|
|
433
433
|
const s = o.shift();
|
|
434
|
-
if (
|
|
434
|
+
if (x(s))
|
|
435
435
|
return;
|
|
436
436
|
s in l || (l[s] = {}), l = l[s];
|
|
437
437
|
}
|
|
@@ -459,11 +459,11 @@ const La = ["en", "sk"], Q = Hr({
|
|
|
459
459
|
}
|
|
460
460
|
}), $o = ["createdAt", "modifiedAt"], Po = ["createdAt", "modifiedAt"], { t: Va } = Q.global, Io = (e, n = "", t = "") => {
|
|
461
461
|
if (e) {
|
|
462
|
-
if (
|
|
462
|
+
if (!x(e.label))
|
|
463
463
|
return e.label;
|
|
464
464
|
if (Po.includes(e.name))
|
|
465
465
|
return Va("common.model.tracking." + e.name);
|
|
466
|
-
if (
|
|
466
|
+
if (!x(n) && !x(t))
|
|
467
467
|
return Va(n + "." + t + ".model." + e.name);
|
|
468
468
|
}
|
|
469
469
|
}, Eo = {
|
|
@@ -480,7 +480,7 @@ function Zu(e) {
|
|
|
480
480
|
availableColumns: t,
|
|
481
481
|
get: (l) => {
|
|
482
482
|
const s = a(l);
|
|
483
|
-
return
|
|
483
|
+
return x(s) ? Eo : s;
|
|
484
484
|
}
|
|
485
485
|
};
|
|
486
486
|
}
|
|
@@ -488,7 +488,7 @@ var aa = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
488
488
|
function cr(e) {
|
|
489
489
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
490
490
|
}
|
|
491
|
-
var Gn = {},
|
|
491
|
+
var Gn = {}, No = {
|
|
492
492
|
get exports() {
|
|
493
493
|
return Gn;
|
|
494
494
|
},
|
|
@@ -500,24 +500,24 @@ var Gn = {}, Fo = {
|
|
|
500
500
|
(function(t, a) {
|
|
501
501
|
e.exports = a();
|
|
502
502
|
})(aa, function() {
|
|
503
|
-
var t = 1e3, a = 6e4, o = 36e5, l = "millisecond", s = "second", c = "minute", d = "hour", y = "day", p = "week",
|
|
503
|
+
var t = 1e3, a = 6e4, o = 36e5, l = "millisecond", s = "second", c = "minute", d = "hour", y = "day", p = "week", m = "month", f = "quarter", w = "year", V = "date", z = "Invalid Date", N = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, $ = /\[([^\]]+)]|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, P = { 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(T) {
|
|
504
504
|
var g = ["th", "st", "nd", "rd"], b = T % 100;
|
|
505
505
|
return "[" + T + (g[(b - 20) % 10] || g[b] || g[0]) + "]";
|
|
506
|
-
} },
|
|
506
|
+
} }, F = function(T, g, b) {
|
|
507
507
|
var S = String(T);
|
|
508
508
|
return !S || S.length >= g ? T : "" + Array(g + 1 - S.length).join(b) + T;
|
|
509
|
-
}, H = { s:
|
|
509
|
+
}, H = { s: F, z: function(T) {
|
|
510
510
|
var g = -T.utcOffset(), b = Math.abs(g), S = Math.floor(b / 60), D = b % 60;
|
|
511
|
-
return (g <= 0 ? "+" : "-") +
|
|
511
|
+
return (g <= 0 ? "+" : "-") + F(S, 2, "0") + ":" + F(D, 2, "0");
|
|
512
512
|
}, m: function T(g, b) {
|
|
513
513
|
if (g.date() < b.date())
|
|
514
514
|
return -T(b, g);
|
|
515
|
-
var S = 12 * (b.year() - g.year()) + (b.month() - g.month()), D = g.clone().add(S,
|
|
515
|
+
var S = 12 * (b.year() - g.year()) + (b.month() - g.month()), D = g.clone().add(S, m), R = b - D < 0, J = g.clone().add(S + (R ? -1 : 1), m);
|
|
516
516
|
return +(-(S + (b - D) / (R ? D - J : J - D)) || 0);
|
|
517
517
|
}, a: function(T) {
|
|
518
518
|
return T < 0 ? Math.ceil(T) || 0 : Math.floor(T);
|
|
519
519
|
}, p: function(T) {
|
|
520
|
-
return { M:
|
|
520
|
+
return { M: m, y: w, w: p, d: y, D: V, h: d, m: c, s, ms: l, Q: f }[T] || String(T || "").toLowerCase().replace(/s$/, "");
|
|
521
521
|
}, u: function(T) {
|
|
522
522
|
return T === void 0;
|
|
523
523
|
} }, le = "en", ue = {};
|
|
@@ -563,7 +563,7 @@ var Gn = {}, Fo = {
|
|
|
563
563
|
if (D instanceof Date)
|
|
564
564
|
return new Date(D);
|
|
565
565
|
if (typeof D == "string" && !/Z$/i.test(D)) {
|
|
566
|
-
var J = D.match(
|
|
566
|
+
var J = D.match(N);
|
|
567
567
|
if (J) {
|
|
568
568
|
var K = J[2] - 1 || 0, ce = (J[7] || "0").substring(0, 3);
|
|
569
569
|
return R ? new Date(Date.UTC(J[1], K, J[3] || 1, J[4] || 0, J[5] || 0, J[6] || 0, ce)) : new Date(J[1], K, J[3] || 1, J[4] || 0, J[5] || 0, J[6] || 0, ce);
|
|
@@ -593,18 +593,18 @@ var Gn = {}, Fo = {
|
|
|
593
593
|
return this.$d.getTime();
|
|
594
594
|
}, g.startOf = function(b, S) {
|
|
595
595
|
var D = this, R = !!G.u(S) || S, J = G.p(b), K = function(Ce, pe) {
|
|
596
|
-
var
|
|
597
|
-
return R ?
|
|
596
|
+
var Ne = G.w(D.$u ? Date.UTC(D.$y, pe, Ce) : new Date(D.$y, pe, Ce), D);
|
|
597
|
+
return R ? Ne : Ne.endOf(y);
|
|
598
598
|
}, ce = function(Ce, pe) {
|
|
599
599
|
return G.w(D.toDate()[Ce].apply(D.toDate("s"), (R ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(pe)), D);
|
|
600
|
-
},
|
|
600
|
+
}, me = this.$W, ve = this.$M, Ie = this.$D, ke = "set" + (this.$u ? "UTC" : "");
|
|
601
601
|
switch (J) {
|
|
602
602
|
case w:
|
|
603
603
|
return R ? K(1, 0) : K(31, 11);
|
|
604
|
-
case
|
|
604
|
+
case m:
|
|
605
605
|
return R ? K(1, ve) : K(0, ve + 1);
|
|
606
606
|
case p:
|
|
607
|
-
var je = this.$locale().weekStart || 0, Ee = (
|
|
607
|
+
var je = this.$locale().weekStart || 0, Ee = (me < je ? me + 7 : me) - je;
|
|
608
608
|
return K(R ? Ie - Ee : Ie + (6 - Ee), ve);
|
|
609
609
|
case y:
|
|
610
610
|
case V:
|
|
@@ -621,10 +621,10 @@ var Gn = {}, Fo = {
|
|
|
621
621
|
}, g.endOf = function(b) {
|
|
622
622
|
return this.startOf(b, !1);
|
|
623
623
|
}, g.$set = function(b, S) {
|
|
624
|
-
var D, R = G.p(b), J = "set" + (this.$u ? "UTC" : ""), K = (D = {}, D[y] = J + "Date", D[V] = J + "Date", D[
|
|
625
|
-
if (R ===
|
|
626
|
-
var
|
|
627
|
-
|
|
624
|
+
var D, R = G.p(b), J = "set" + (this.$u ? "UTC" : ""), K = (D = {}, D[y] = J + "Date", D[V] = J + "Date", D[m] = J + "Month", D[w] = J + "FullYear", D[d] = J + "Hours", D[c] = J + "Minutes", D[s] = J + "Seconds", D[l] = J + "Milliseconds", D)[R], ce = R === y ? this.$D + (S - this.$W) : S;
|
|
625
|
+
if (R === m || R === w) {
|
|
626
|
+
var me = this.clone().set(V, 1);
|
|
627
|
+
me.$d[K](ce), me.init(), this.$d = me.set(V, Math.min(this.$D, me.daysInMonth())).$d;
|
|
628
628
|
} else
|
|
629
629
|
K && this.$d[K](ce);
|
|
630
630
|
return this.init(), this;
|
|
@@ -639,40 +639,40 @@ var Gn = {}, Fo = {
|
|
|
639
639
|
var Ie = ee(R);
|
|
640
640
|
return G.w(Ie.date(Ie.date() + Math.round(ve * b)), R);
|
|
641
641
|
};
|
|
642
|
-
if (J ===
|
|
643
|
-
return this.set(
|
|
642
|
+
if (J === m)
|
|
643
|
+
return this.set(m, this.$M + b);
|
|
644
644
|
if (J === w)
|
|
645
645
|
return this.set(w, this.$y + b);
|
|
646
646
|
if (J === y)
|
|
647
647
|
return K(1);
|
|
648
648
|
if (J === p)
|
|
649
649
|
return K(7);
|
|
650
|
-
var ce = (D = {}, D[c] = a, D[d] = o, D[s] = t, D)[J] || 1,
|
|
651
|
-
return G.w(
|
|
650
|
+
var ce = (D = {}, D[c] = a, D[d] = o, D[s] = t, D)[J] || 1, me = this.$d.getTime() + b * ce;
|
|
651
|
+
return G.w(me, this);
|
|
652
652
|
}, g.subtract = function(b, S) {
|
|
653
653
|
return this.add(-1 * b, S);
|
|
654
654
|
}, g.format = function(b) {
|
|
655
655
|
var S = this, D = this.$locale();
|
|
656
656
|
if (!this.isValid())
|
|
657
657
|
return D.invalidDate || z;
|
|
658
|
-
var R = b || "YYYY-MM-DDTHH:mm:ssZ", J = G.z(this), K = this.$H, ce = this.$m,
|
|
659
|
-
return pe && (pe[
|
|
658
|
+
var R = b || "YYYY-MM-DDTHH:mm:ssZ", J = G.z(this), K = this.$H, ce = this.$m, me = this.$M, ve = D.weekdays, Ie = D.months, ke = function(pe, Ne, Ze, Be) {
|
|
659
|
+
return pe && (pe[Ne] || pe(S, R)) || Ze[Ne].slice(0, Be);
|
|
660
660
|
}, je = function(pe) {
|
|
661
661
|
return G.s(K % 12 || 12, pe, "0");
|
|
662
|
-
}, Ee = D.meridiem || function(pe,
|
|
662
|
+
}, Ee = D.meridiem || function(pe, Ne, Ze) {
|
|
663
663
|
var Be = pe < 12 ? "AM" : "PM";
|
|
664
664
|
return Ze ? Be.toLowerCase() : Be;
|
|
665
|
-
}, Ce = { YY: String(this.$y).slice(-2), YYYY: this.$y, M:
|
|
666
|
-
return R.replace(
|
|
667
|
-
return
|
|
665
|
+
}, Ce = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: me + 1, MM: G.s(me + 1, 2, "0"), MMM: ke(D.monthsShort, me, Ie, 3), MMMM: ke(Ie, me), D: this.$D, DD: G.s(this.$D, 2, "0"), d: String(this.$W), dd: ke(D.weekdaysMin, this.$W, ve, 2), ddd: ke(D.weekdaysShort, this.$W, ve, 3), dddd: ve[this.$W], H: String(K), HH: G.s(K, 2, "0"), h: je(1), hh: je(2), a: Ee(K, ce, !0), A: Ee(K, ce, !1), m: String(ce), mm: G.s(ce, 2, "0"), s: String(this.$s), ss: G.s(this.$s, 2, "0"), SSS: G.s(this.$ms, 3, "0"), Z: J };
|
|
666
|
+
return R.replace($, function(pe, Ne) {
|
|
667
|
+
return Ne || Ce[pe] || J.replace(":", "");
|
|
668
668
|
});
|
|
669
669
|
}, g.utcOffset = function() {
|
|
670
670
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
671
671
|
}, g.diff = function(b, S, D) {
|
|
672
|
-
var R, J = G.p(S), K = ee(b), ce = (K.utcOffset() - this.utcOffset()) * a,
|
|
673
|
-
return ve = (R = {}, R[w] = ve / 12, R[
|
|
672
|
+
var R, J = G.p(S), K = ee(b), ce = (K.utcOffset() - this.utcOffset()) * a, me = this - K, ve = G.m(this, K);
|
|
673
|
+
return ve = (R = {}, R[w] = ve / 12, R[m] = ve, R[f] = ve / 3, R[p] = (me - ce) / 6048e5, R[y] = (me - ce) / 864e5, R[d] = me / o, R[c] = me / a, R[s] = me / t, R)[J] || me, D ? ve : G.a(ve);
|
|
674
674
|
}, g.daysInMonth = function() {
|
|
675
|
-
return this.endOf(
|
|
675
|
+
return this.endOf(m).$D;
|
|
676
676
|
}, g.$locale = function() {
|
|
677
677
|
return ue[this.$L];
|
|
678
678
|
}, g.locale = function(b, S) {
|
|
@@ -692,7 +692,7 @@ var Gn = {}, Fo = {
|
|
|
692
692
|
return this.$d.toUTCString();
|
|
693
693
|
}, T;
|
|
694
694
|
}(), Se = Ae.prototype;
|
|
695
|
-
return ee.prototype = Se, [["$ms", l], ["$s", s], ["$m", c], ["$H", d], ["$W", y], ["$M",
|
|
695
|
+
return ee.prototype = Se, [["$ms", l], ["$s", s], ["$m", c], ["$H", d], ["$W", y], ["$M", m], ["$y", w], ["$D", V]].forEach(function(T) {
|
|
696
696
|
Se[T[1]] = function(g) {
|
|
697
697
|
return this.$g(g, T[0], T[1]);
|
|
698
698
|
};
|
|
@@ -702,9 +702,9 @@ var Gn = {}, Fo = {
|
|
|
702
702
|
return ee(1e3 * T);
|
|
703
703
|
}, ee.en = ue[le], ee.Ls = ue, ee.p = {}, ee;
|
|
704
704
|
});
|
|
705
|
-
})(
|
|
705
|
+
})(No);
|
|
706
706
|
const be = Gn;
|
|
707
|
-
var Kn = {},
|
|
707
|
+
var Kn = {}, Fo = {
|
|
708
708
|
get exports() {
|
|
709
709
|
return Kn;
|
|
710
710
|
},
|
|
@@ -720,11 +720,11 @@ var Kn = {}, No = {
|
|
|
720
720
|
return function(l, s, c) {
|
|
721
721
|
var d = s.prototype;
|
|
722
722
|
c.utc = function(z) {
|
|
723
|
-
var
|
|
724
|
-
return new s(
|
|
723
|
+
var N = { date: z, utc: !0, args: arguments };
|
|
724
|
+
return new s(N);
|
|
725
725
|
}, d.utc = function(z) {
|
|
726
|
-
var
|
|
727
|
-
return z ?
|
|
726
|
+
var N = c(this.toDate(), { locale: this.$L, utc: !0 });
|
|
727
|
+
return z ? N.add(this.utcOffset(), t) : N;
|
|
728
728
|
}, d.local = function() {
|
|
729
729
|
return c(this.toDate(), { locale: this.$L, utc: !1 });
|
|
730
730
|
};
|
|
@@ -740,11 +740,11 @@ var Kn = {}, No = {
|
|
|
740
740
|
} else
|
|
741
741
|
p.call(this);
|
|
742
742
|
};
|
|
743
|
-
var
|
|
744
|
-
d.utcOffset = function(z,
|
|
745
|
-
var
|
|
746
|
-
if (
|
|
747
|
-
return this.$u ? 0 :
|
|
743
|
+
var m = d.utcOffset;
|
|
744
|
+
d.utcOffset = function(z, N) {
|
|
745
|
+
var $ = this.$utils().u;
|
|
746
|
+
if ($(z))
|
|
747
|
+
return this.$u ? 0 : $(this.$offset) ? m.call(this) : this.$offset;
|
|
748
748
|
if (typeof z == "string" && (z = function(le) {
|
|
749
749
|
le === void 0 && (le = "");
|
|
750
750
|
var ue = le.match(a);
|
|
@@ -754,20 +754,20 @@ var Kn = {}, No = {
|
|
|
754
754
|
return ee === 0 ? 0 : we === "+" ? ee : -ee;
|
|
755
755
|
}(z), z === null))
|
|
756
756
|
return this;
|
|
757
|
-
var P = Math.abs(z) <= 16 ? 60 * z : z,
|
|
758
|
-
if (
|
|
759
|
-
return
|
|
757
|
+
var P = Math.abs(z) <= 16 ? 60 * z : z, F = this;
|
|
758
|
+
if (N)
|
|
759
|
+
return F.$offset = P, F.$u = z === 0, F;
|
|
760
760
|
if (z !== 0) {
|
|
761
761
|
var H = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
762
|
-
(
|
|
762
|
+
(F = this.local().add(P + H, t)).$offset = P, F.$x.$localOffset = H;
|
|
763
763
|
} else
|
|
764
|
-
|
|
765
|
-
return
|
|
764
|
+
F = this.utc();
|
|
765
|
+
return F;
|
|
766
766
|
};
|
|
767
|
-
var
|
|
767
|
+
var f = d.format;
|
|
768
768
|
d.format = function(z) {
|
|
769
|
-
var
|
|
770
|
-
return
|
|
769
|
+
var N = z || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
770
|
+
return f.call(this, N);
|
|
771
771
|
}, d.valueOf = function() {
|
|
772
772
|
var z = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
773
773
|
return this.$d.valueOf() - 6e4 * z;
|
|
@@ -783,26 +783,26 @@ var Kn = {}, No = {
|
|
|
783
783
|
return z === "s" && this.$offset ? c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : w.call(this);
|
|
784
784
|
};
|
|
785
785
|
var V = d.diff;
|
|
786
|
-
d.diff = function(z,
|
|
786
|
+
d.diff = function(z, N, $) {
|
|
787
787
|
if (z && this.$u === z.$u)
|
|
788
|
-
return V.call(this, z,
|
|
789
|
-
var P = this.local(),
|
|
790
|
-
return V.call(P,
|
|
788
|
+
return V.call(this, z, N, $);
|
|
789
|
+
var P = this.local(), F = c(z).local();
|
|
790
|
+
return V.call(P, F, N, $);
|
|
791
791
|
};
|
|
792
792
|
};
|
|
793
793
|
});
|
|
794
|
-
})(
|
|
794
|
+
})(Fo);
|
|
795
795
|
const Lo = Kn;
|
|
796
796
|
be.extend(Lo);
|
|
797
|
-
const
|
|
797
|
+
const mt = ".000000Z", Dn = "YYYY-MM-DDTHH:mm:ss", mr = "1970-01-01T00:00:00.000000Z", fr = "2100-01-01T00:00:00.000000Z", Vo = () => be().utc().toDate(), Qu = () => Co(be().utc().unix()), Cn = (e = !0, n = !1) => e && !n ? be().utc().format("YYYY-MM-DDTHH:mm:ss") + mt : e && n ? be().utc().format("YYYY-MM-DDTHH:mm:00") + mt : !e && n ? be().utc().format("YYYY-MM-DDTHH:mm:00.SSSSSS") + "Z" : be().utc().format("YYYY-MM-DDTHH:mm:ss.SSSSSS") + "Z", Xu = (e = 0) => e === 0 ? be().startOf("day").utc().format(Dn) + mt : be().add(e, "days").startOf("day").utc().format(Dn) + mt, ed = (e = 0) => e === 0 ? be().endOf("day").utc().format(Dn) + mt : be().add(e, "days").endOf("day").utc().format(Dn) + mt, td = (e = 0, n = null) => {
|
|
798
798
|
if (n === null && (n = new Date()), e === 0)
|
|
799
799
|
return n;
|
|
800
800
|
if (e > 0)
|
|
801
801
|
return be(n).add(e, "minutes").toDate();
|
|
802
802
|
if (e < 0)
|
|
803
803
|
return be(n).subtract(e, "minutes").toDate();
|
|
804
|
-
}, jo = (e) => be(e).utc().format("YYYY-MM-DDTHH:mm:ss") +
|
|
805
|
-
if (e ===
|
|
804
|
+
}, jo = (e) => be(e).utc().format("YYYY-MM-DDTHH:mm:ss") + mt, nd = () => be().utc().format("YYYY"), Bo = (e, n = "") => e === fr || e === mr || e === "" || _e(e) || x(e) ? n : be(e).format("DD.MM.YYYY HH:mm"), Ro = (e, n = "") => {
|
|
805
|
+
if (e === fr || e === mr || e === "" || _e(e) || x(e))
|
|
806
806
|
return n;
|
|
807
807
|
let t = !0, a = !0;
|
|
808
808
|
const o = be(e), l = be();
|
|
@@ -840,38 +840,38 @@ const ft = ".000000Z", Dn = "YYYY-MM-DDTHH:mm:ss", fr = "1970-01-01T00:00:00.000
|
|
|
840
840
|
let p = t.columns.availableColumns.value.length;
|
|
841
841
|
return t.actions && ++p, p;
|
|
842
842
|
}), { t: y } = X();
|
|
843
|
-
return (p,
|
|
843
|
+
return (p, m) => (_(), j(qr, { class: "anzu-data-table" }, {
|
|
844
844
|
default: k(() => [
|
|
845
845
|
ie("thead", null, [
|
|
846
846
|
ie("tr", null, [
|
|
847
|
-
(_(!0), U(Je, null, dt(h(a), (
|
|
848
|
-
key:
|
|
847
|
+
(_(!0), U(Je, null, dt(h(a), (f) => (_(), U("th", {
|
|
848
|
+
key: f.name,
|
|
849
849
|
class: "text-left"
|
|
850
|
-
}, L(
|
|
850
|
+
}, L(f.getLabel ? f.getLabel(h(l), h(s)) : ""), 1))), 128)),
|
|
851
851
|
e.actions ? (_(), U("th", Jo)) : re("", !0)
|
|
852
852
|
])
|
|
853
853
|
]),
|
|
854
854
|
ie("tbody", null, [
|
|
855
|
-
h(c) ? (_(!0), U(Je, { key: 0 }, dt(t.data, (
|
|
855
|
+
h(c) ? (_(!0), U(Je, { key: 0 }, dt(t.data, (f, w) => (_(), U("tr", {
|
|
856
856
|
key: w,
|
|
857
|
-
onClick: (V) => o(
|
|
857
|
+
onClick: (V) => o(f)
|
|
858
858
|
}, [
|
|
859
859
|
(_(!0), U(Je, null, dt(h(a), (V) => (_(), j(Ho, {
|
|
860
860
|
key: V.name,
|
|
861
|
-
"row-data":
|
|
861
|
+
"row-data": f,
|
|
862
862
|
column: V
|
|
863
863
|
}, {
|
|
864
864
|
[h(qn)(V.name)]: k(({ data: z }) => [
|
|
865
865
|
$e(p.$slots, h(qn)(V.name), {
|
|
866
866
|
data: z,
|
|
867
|
-
rowData:
|
|
867
|
+
rowData: f
|
|
868
868
|
})
|
|
869
869
|
]),
|
|
870
870
|
_: 2
|
|
871
871
|
}, 1032, ["row-data", "column"]))), 128)),
|
|
872
872
|
e.actions ? (_(), U("td", Wo, [
|
|
873
873
|
ie("div", qo, [
|
|
874
|
-
$e(p.$slots, "actions", { data:
|
|
874
|
+
$e(p.$slots, "actions", { data: f })
|
|
875
875
|
])
|
|
876
876
|
])) : re("", !0)
|
|
877
877
|
], 8, Uo))), 128)) : (_(), U("tr", Go, [
|
|
@@ -904,29 +904,29 @@ const ft = ".000000Z", Dn = "YYYY-MM-DDTHH:mm:ss", fr = "1970-01-01T00:00:00.000
|
|
|
904
904
|
set(P) {
|
|
905
905
|
n("update:modelValue", jt(P));
|
|
906
906
|
}
|
|
907
|
-
}), { t: o } = X(), l = A(() => Math.ceil(a.value.totalCount / a.value.rowsPerPage)), s = A(() => a.value.page * a.value.rowsPerPage - a.value.rowsPerPage + 1), c = A(() => a.value.page * a.value.rowsPerPage - a.value.rowsPerPage + a.value.currentViewCount), d = A(() => a.value.page === 1), y = A(() => !_e(a.value.hasNextPage) || a.value.page === l.value), p = A(() => _e(a.value.hasNextPage) && a.value.page === l.value || a.value.hasNextPage === !1),
|
|
908
|
-
ct(
|
|
909
|
-
P !==
|
|
907
|
+
}), { t: o } = X(), l = A(() => Math.ceil(a.value.totalCount / a.value.rowsPerPage)), s = A(() => a.value.page * a.value.rowsPerPage - a.value.rowsPerPage + 1), c = A(() => a.value.page * a.value.rowsPerPage - a.value.rowsPerPage + a.value.currentViewCount), d = A(() => a.value.page === 1), y = A(() => !_e(a.value.hasNextPage) || a.value.page === l.value), p = A(() => _e(a.value.hasNextPage) && a.value.page === l.value || a.value.hasNextPage === !1), m = A(() => _e(a.value.hasNextPage) ? a.value.totalCount : a.value.hasNextPage ? c.value + 1 + "+" : c.value), f = A(() => a.value.rowsPerPage);
|
|
908
|
+
ct(f, (P, F) => {
|
|
909
|
+
P !== F && (a.value.page = 1, n("change"));
|
|
910
910
|
});
|
|
911
911
|
const w = A(() => a.value.page);
|
|
912
|
-
ct(w, (P,
|
|
913
|
-
P !==
|
|
912
|
+
ct(w, (P, F) => {
|
|
913
|
+
P !== F && n("change");
|
|
914
914
|
});
|
|
915
915
|
const V = () => {
|
|
916
916
|
a.value.page = 1;
|
|
917
917
|
}, z = () => {
|
|
918
918
|
a.value.page = l.value;
|
|
919
|
-
},
|
|
919
|
+
}, N = () => {
|
|
920
920
|
a.value.page = a.value.page - 1;
|
|
921
|
-
},
|
|
921
|
+
}, $ = () => {
|
|
922
922
|
a.value.page = a.value.page + 1;
|
|
923
923
|
};
|
|
924
|
-
return (P,
|
|
924
|
+
return (P, F) => (_(), U("div", Zo, [
|
|
925
925
|
e.hideRecordsPerPage ? re("", !0) : (_(), U("div", Qo, [
|
|
926
926
|
Z(L(h(o)("common.system.datatable.itemsPerPage")) + ": ", 1),
|
|
927
927
|
M(Pn, {
|
|
928
928
|
modelValue: h(a).rowsPerPage,
|
|
929
|
-
"onUpdate:modelValue":
|
|
929
|
+
"onUpdate:modelValue": F[0] || (F[0] = (H) => h(a).rowsPerPage = H),
|
|
930
930
|
class: "ml-2",
|
|
931
931
|
density: "compact",
|
|
932
932
|
mandatory: "",
|
|
@@ -950,7 +950,7 @@ const ft = ".000000Z", Dn = "YYYY-MM-DDTHH:mm:ss", fr = "1970-01-01T00:00:00.000
|
|
|
950
950
|
_: 1
|
|
951
951
|
}, 8, ["modelValue"])
|
|
952
952
|
])),
|
|
953
|
-
ie("div", Xo, L(h(s)) + " - " + L(h(c)) + " " + L(h(o)("common.system.datatable.from")) + " " + L(h(
|
|
953
|
+
ie("div", Xo, L(h(s)) + " - " + L(h(c)) + " " + L(h(o)("common.system.datatable.from")) + " " + L(h(m)), 1),
|
|
954
954
|
ie("div", ei, [
|
|
955
955
|
M(de, {
|
|
956
956
|
disabled: h(d),
|
|
@@ -964,7 +964,7 @@ const ft = ".000000Z", Dn = "YYYY-MM-DDTHH:mm:ss", fr = "1970-01-01T00:00:00.000
|
|
|
964
964
|
icon: "mdi-chevron-left",
|
|
965
965
|
size: "small",
|
|
966
966
|
variant: "text",
|
|
967
|
-
onClick: se(
|
|
967
|
+
onClick: se(N, ["stop"])
|
|
968
968
|
}, null, 8, ["disabled", "onClick"])
|
|
969
969
|
]),
|
|
970
970
|
ie("div", ti, [
|
|
@@ -976,7 +976,7 @@ const ft = ".000000Z", Dn = "YYYY-MM-DDTHH:mm:ss", fr = "1970-01-01T00:00:00.000
|
|
|
976
976
|
icon: "mdi-chevron-right",
|
|
977
977
|
size: "small",
|
|
978
978
|
variant: "text",
|
|
979
|
-
onClick: se(
|
|
979
|
+
onClick: se($, ["stop"])
|
|
980
980
|
}, null, 8, ["disabled", "onClick"]),
|
|
981
981
|
M(de, {
|
|
982
982
|
disabled: h(y),
|
|
@@ -991,18 +991,18 @@ const ft = ".000000Z", Dn = "YYYY-MM-DDTHH:mm:ss", fr = "1970-01-01T00:00:00.000
|
|
|
991
991
|
});
|
|
992
992
|
function od(e, n) {
|
|
993
993
|
return (t = {}) => {
|
|
994
|
-
const a =
|
|
995
|
-
let o =
|
|
996
|
-
|
|
994
|
+
const a = x(t.variant) ? "eq" : t.variant;
|
|
995
|
+
let o = x(t.default) ? null : t.default;
|
|
996
|
+
x(t.default) && a === "in" && (o = []);
|
|
997
997
|
let l = t.titleT;
|
|
998
|
-
return
|
|
998
|
+
return x(l) && e && n && t.name && (l = e + "." + n + ".filter." + t.name), {
|
|
999
999
|
variant: a,
|
|
1000
1000
|
titleT: l,
|
|
1001
1001
|
default: o,
|
|
1002
|
-
field:
|
|
1002
|
+
field: x(t.field) ? "" : t.field,
|
|
1003
1003
|
multiple: Xe(o),
|
|
1004
|
-
mandatory:
|
|
1005
|
-
exclude:
|
|
1004
|
+
mandatory: x(t.mandatory) ? !1 : t.mandatory,
|
|
1005
|
+
exclude: x(t.exclude) ? !1 : t.exclude,
|
|
1006
1006
|
model: jt(o),
|
|
1007
1007
|
error: ""
|
|
1008
1008
|
};
|
|
@@ -1405,8 +1405,8 @@ function di(e) {
|
|
|
1405
1405
|
const Mn = di(), gr = /* @__PURE__ */ new Map(), ja = {
|
|
1406
1406
|
x: ["left", "center", "right"],
|
|
1407
1407
|
y: ["top", "bottom"]
|
|
1408
|
-
}, ci = ((e) => () => e++)(0),
|
|
1409
|
-
typeof e == "string" && (e =
|
|
1408
|
+
}, ci = ((e) => () => e++)(0), mi = (e) => typeof e != "string" ? [] : e.split(/\s+/gi).filter((n) => n), fi = (e) => {
|
|
1409
|
+
typeof e == "string" && (e = mi(e));
|
|
1410
1410
|
let n = null, t = null;
|
|
1411
1411
|
return e.forEach((a) => {
|
|
1412
1412
|
ja.y.indexOf(a) !== -1 && (t = a), ja.x.indexOf(a) !== -1 && (n = a);
|
|
@@ -1627,7 +1627,7 @@ const wi = /* @__PURE__ */ oa(yi, [["render", bi]]), Vn = "[-+]?[0-9]*.?[0-9]+",
|
|
|
1627
1627
|
return this.isVA ? "velocity-group" : "css-group";
|
|
1628
1628
|
},
|
|
1629
1629
|
styles() {
|
|
1630
|
-
const { x: e, y: n } =
|
|
1630
|
+
const { x: e, y: n } = fi(this.position), t = this.actualWidth.value, a = this.actualWidth.type, o = {
|
|
1631
1631
|
width: t + a
|
|
1632
1632
|
};
|
|
1633
1633
|
return n && (o[n] = "0px"), e && (e === "center" ? o.left = `calc(50% - ${+t / 2}${a})` : o[e] = "0px"), o;
|
|
@@ -1673,9 +1673,9 @@ const wi = /* @__PURE__ */ oa(yi, [["render", bi]]), Vn = "[-+]?[0-9]*.?[0-9]+",
|
|
|
1673
1673
|
};
|
|
1674
1674
|
n >= 0 && (this.timerControl = new pi(() => this.destroy(y), y.length, y));
|
|
1675
1675
|
const p = this.reverse ? !this.botToTop : this.botToTop;
|
|
1676
|
-
let
|
|
1677
|
-
const
|
|
1678
|
-
(!a || !
|
|
1676
|
+
let m = -1;
|
|
1677
|
+
const f = this.active.some((w) => w.title === e.title && w.text === e.text);
|
|
1678
|
+
(!a || !f) && (p ? (this.list.push(y), this.$emit("start", y), this.active.length > this.max && (m = 0)) : (this.list.unshift(y), this.$emit("start", y), this.active.length > this.max && (m = this.active.length - 1)), m !== -1 && this.destroy(this.active[m]));
|
|
1679
1679
|
},
|
|
1680
1680
|
closeItem(e) {
|
|
1681
1681
|
this.destroyById(e);
|
|
@@ -1805,17 +1805,17 @@ const En = Symbol("currentUser"), vr = Symbol("customAclResolver"), yr = Symbol(
|
|
|
1805
1805
|
}
|
|
1806
1806
|
}, wr = "ROLE_ADMIN";
|
|
1807
1807
|
function $i(e) {
|
|
1808
|
-
const n =
|
|
1809
|
-
if (
|
|
1808
|
+
const n = x(e) || x(e.disableInject), t = (e == null ? void 0 : e.currentUser) ?? (n ? ze(En, void 0) : void 0), a = (e == null ? void 0 : e.customAclProvider) ?? (n ? ze(vr, void 0) : void 0), o = (d, y) => {
|
|
1809
|
+
if (x(t))
|
|
1810
1810
|
throw new Error("Composable useAcl can be used as a global state without providing current user as a parameter.");
|
|
1811
|
-
if (
|
|
1811
|
+
if (Na(a) && Na(a.can))
|
|
1812
1812
|
return a.can(d, y);
|
|
1813
|
-
if (
|
|
1813
|
+
if (x(t.value) || t.value.id === 0)
|
|
1814
1814
|
return !1;
|
|
1815
1815
|
if (t.value.roles.includes(wr))
|
|
1816
1816
|
return !0;
|
|
1817
1817
|
const p = dr(t.value, "resolvedPermissions." + d);
|
|
1818
|
-
if (
|
|
1818
|
+
if (x(p))
|
|
1819
1819
|
return !1;
|
|
1820
1820
|
switch (p) {
|
|
1821
1821
|
case zn.Allow:
|
|
@@ -1823,7 +1823,7 @@ function $i(e) {
|
|
|
1823
1823
|
case zn.Deny:
|
|
1824
1824
|
return !1;
|
|
1825
1825
|
case zn.AllowOwner:
|
|
1826
|
-
if (
|
|
1826
|
+
if (x(y))
|
|
1827
1827
|
throw new Error(`Required subject for acl "${d}" to determine an ability to access the resource.`);
|
|
1828
1828
|
return l(y);
|
|
1829
1829
|
default:
|
|
@@ -1831,9 +1831,9 @@ function $i(e) {
|
|
|
1831
1831
|
}
|
|
1832
1832
|
};
|
|
1833
1833
|
function l(d) {
|
|
1834
|
-
if (
|
|
1834
|
+
if (x(t))
|
|
1835
1835
|
throw new Error("Composable useAcl can be used as a global state without providing current user as a parameter.");
|
|
1836
|
-
if (
|
|
1836
|
+
if (!x(a) && !x(a.canOwner))
|
|
1837
1837
|
return a.canOwner(d);
|
|
1838
1838
|
if (t.value) {
|
|
1839
1839
|
if (si(d))
|
|
@@ -2163,18 +2163,18 @@ var Rn = function() {
|
|
|
2163
2163
|
u: "(.+)",
|
|
2164
2164
|
w: "(\\d\\d|\\d)",
|
|
2165
2165
|
y: "(\\d{2})"
|
|
2166
|
-
},
|
|
2166
|
+
}, Nt = {
|
|
2167
2167
|
Z: function(e) {
|
|
2168
2168
|
return e.toISOString();
|
|
2169
2169
|
},
|
|
2170
2170
|
D: function(e, n, t) {
|
|
2171
|
-
return n.weekdays.shorthand[
|
|
2171
|
+
return n.weekdays.shorthand[Nt.w(e, n, t)];
|
|
2172
2172
|
},
|
|
2173
2173
|
F: function(e, n, t) {
|
|
2174
|
-
return An(
|
|
2174
|
+
return An(Nt.n(e, n, t) - 1, !1, n);
|
|
2175
2175
|
},
|
|
2176
2176
|
G: function(e, n, t) {
|
|
2177
|
-
return Pe(
|
|
2177
|
+
return Pe(Nt.h(e, n, t));
|
|
2178
2178
|
},
|
|
2179
2179
|
H: function(e) {
|
|
2180
2180
|
return Pe(e.getHours());
|
|
@@ -2237,36 +2237,36 @@ var Rn = function() {
|
|
|
2237
2237
|
var n = e.config, t = n === void 0 ? kt : n, a = e.l10n, o = a === void 0 ? Bt : a, l = e.isMobile, s = l === void 0 ? !1 : l;
|
|
2238
2238
|
return function(c, d, y) {
|
|
2239
2239
|
var p = y || o;
|
|
2240
|
-
return t.formatDate !== void 0 && !s ? t.formatDate(c, d, p) : d.split("").map(function(
|
|
2241
|
-
return
|
|
2240
|
+
return t.formatDate !== void 0 && !s ? t.formatDate(c, d, p) : d.split("").map(function(m, f, w) {
|
|
2241
|
+
return Nt[m] && w[f - 1] !== "\\" ? Nt[m](c, p, t) : m !== "\\" ? m : "";
|
|
2242
2242
|
}).join("");
|
|
2243
2243
|
};
|
|
2244
2244
|
}, Zn = function(e) {
|
|
2245
2245
|
var n = e.config, t = n === void 0 ? kt : n, a = e.l10n, o = a === void 0 ? Bt : a;
|
|
2246
2246
|
return function(l, s, c, d) {
|
|
2247
2247
|
if (!(l !== 0 && !l)) {
|
|
2248
|
-
var y = d || o, p,
|
|
2248
|
+
var y = d || o, p, m = l;
|
|
2249
2249
|
if (l instanceof Date)
|
|
2250
2250
|
p = new Date(l.getTime());
|
|
2251
2251
|
else if (typeof l != "string" && l.toFixed !== void 0)
|
|
2252
2252
|
p = new Date(l);
|
|
2253
2253
|
else if (typeof l == "string") {
|
|
2254
|
-
var
|
|
2254
|
+
var f = s || (t || kt).dateFormat, w = String(l).trim();
|
|
2255
2255
|
if (w === "today")
|
|
2256
2256
|
p = new Date(), c = !0;
|
|
2257
2257
|
else if (t && t.parseDate)
|
|
2258
|
-
p = t.parseDate(l,
|
|
2258
|
+
p = t.parseDate(l, f);
|
|
2259
2259
|
else if (/Z$/.test(w) || /GMT$/.test(w))
|
|
2260
2260
|
p = new Date(l);
|
|
2261
2261
|
else {
|
|
2262
|
-
for (var V = void 0, z = [],
|
|
2263
|
-
var
|
|
2264
|
-
if (ut[
|
|
2265
|
-
P += ut[
|
|
2262
|
+
for (var V = void 0, z = [], N = 0, $ = 0, P = ""; N < f.length; N++) {
|
|
2263
|
+
var F = f[N], H = F === "\\", le = f[N - 1] === "\\" || H;
|
|
2264
|
+
if (ut[F] && !le) {
|
|
2265
|
+
P += ut[F];
|
|
2266
2266
|
var ue = new RegExp(P).exec(l);
|
|
2267
|
-
ue && (V = !0) && z[
|
|
2268
|
-
fn: Ii[
|
|
2269
|
-
val: ue[
|
|
2267
|
+
ue && (V = !0) && z[F !== "Y" ? "push" : "unshift"]({
|
|
2268
|
+
fn: Ii[F],
|
|
2269
|
+
val: ue[++$]
|
|
2270
2270
|
});
|
|
2271
2271
|
} else
|
|
2272
2272
|
H || (P += ".");
|
|
@@ -2278,7 +2278,7 @@ var Rn = function() {
|
|
|
2278
2278
|
}
|
|
2279
2279
|
}
|
|
2280
2280
|
if (!(p instanceof Date && !isNaN(p.getTime()))) {
|
|
2281
|
-
t.errorHandler(new Error("Invalid date provided: " +
|
|
2281
|
+
t.errorHandler(new Error("Invalid date provided: " + m));
|
|
2282
2282
|
return;
|
|
2283
2283
|
}
|
|
2284
2284
|
return c === !0 && p.setHours(0, 0, 0, 0), p;
|
|
@@ -2292,10 +2292,10 @@ var Ei = function(e, n, t) {
|
|
|
2292
2292
|
return e > Math.min(n, t) && e < Math.max(n, t);
|
|
2293
2293
|
}, Yn = function(e, n, t) {
|
|
2294
2294
|
return e * 3600 + n * 60 + t;
|
|
2295
|
-
},
|
|
2295
|
+
}, Ni = function(e) {
|
|
2296
2296
|
var n = Math.floor(e / 3600), t = (e - n * 3600) / 60;
|
|
2297
2297
|
return [n, t, e - n * 3600 - t * 60];
|
|
2298
|
-
},
|
|
2298
|
+
}, Fi = {
|
|
2299
2299
|
DAY: 864e5
|
|
2300
2300
|
};
|
|
2301
2301
|
function Hn(e) {
|
|
@@ -2347,7 +2347,7 @@ function Vi(e, n) {
|
|
|
2347
2347
|
config: xe(xe({}, kt), ye.defaultConfig),
|
|
2348
2348
|
l10n: Bt
|
|
2349
2349
|
};
|
|
2350
|
-
t.parseDate = Zn({ config: t.config, l10n: t.l10n }), t._handlers = [], t.pluginElements = [], t.loadedPlugins = [], t._bind = z, t._setHoursFromDate =
|
|
2350
|
+
t.parseDate = Zn({ config: t.config, l10n: t.l10n }), t._handlers = [], t.pluginElements = [], t.loadedPlugins = [], t._bind = z, t._setHoursFromDate = f, t._positionCalendar = it, t.changeMonth = ce, t.changeYear = Ee, t.clear = me, t.close = ve, t.onMouseOver = Be, t._createElement = ae, t.createDay = ue, t.destroy = Ie, t.isEnabled = Ce, t.jumpToDate = P, t.updateValue = Re, t.open = Jt, t.redraw = Tt, t.set = Gt, t.setDate = Kt, t.toggle = en;
|
|
2351
2351
|
function a() {
|
|
2352
2352
|
t.utils = {
|
|
2353
2353
|
getDaysInMonth: function(r, i) {
|
|
@@ -2356,9 +2356,9 @@ function Vi(e, n) {
|
|
|
2356
2356
|
};
|
|
2357
2357
|
}
|
|
2358
2358
|
function o() {
|
|
2359
|
-
t.element = t.input = e, t.isOpen = !1, Ut(), St(), Qt(), Zt(), a(), t.isMobile || le(),
|
|
2359
|
+
t.element = t.input = e, t.isOpen = !1, Ut(), St(), Qt(), Zt(), a(), t.isMobile || le(), $(), (t.selectedDates.length || t.config.noCalendar) && (t.config.enableTime && f(t.config.noCalendar ? t.latestSelectedDateObj : void 0), Re(!1)), c();
|
|
2360
2360
|
var r = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
2361
|
-
!t.isMobile && r && it(),
|
|
2361
|
+
!t.isMobile && r && it(), fe("onReady");
|
|
2362
2362
|
}
|
|
2363
2363
|
function l() {
|
|
2364
2364
|
var r;
|
|
@@ -2383,7 +2383,7 @@ function Vi(e, n) {
|
|
|
2383
2383
|
}
|
|
2384
2384
|
r !== void 0 && r.type !== "blur" && an(r);
|
|
2385
2385
|
var v = t._input.value;
|
|
2386
|
-
|
|
2386
|
+
m(), Re(), t._input.value !== v && t._debouncedChange();
|
|
2387
2387
|
}
|
|
2388
2388
|
function y(r, i) {
|
|
2389
2389
|
return r % 12 + 12 * Ye(i === t.l10n.amPM[1]);
|
|
@@ -2397,15 +2397,15 @@ function Vi(e, n) {
|
|
|
2397
2397
|
return r % 12;
|
|
2398
2398
|
}
|
|
2399
2399
|
}
|
|
2400
|
-
function
|
|
2400
|
+
function m() {
|
|
2401
2401
|
if (!(t.hourElement === void 0 || t.minuteElement === void 0)) {
|
|
2402
2402
|
var r = (parseInt(t.hourElement.value.slice(-2), 10) || 0) % 24, i = (parseInt(t.minuteElement.value, 10) || 0) % 60, u = t.secondElement !== void 0 ? (parseInt(t.secondElement.value, 10) || 0) % 60 : 0;
|
|
2403
2403
|
t.amPM !== void 0 && (r = y(r, t.amPM.textContent));
|
|
2404
2404
|
var v = t.config.minTime !== void 0 || t.config.minDate && t.minDateHasTime && t.latestSelectedDateObj && Ve(t.latestSelectedDateObj, t.config.minDate, !0) === 0, C = t.config.maxTime !== void 0 || t.config.maxDate && t.maxDateHasTime && t.latestSelectedDateObj && Ve(t.latestSelectedDateObj, t.config.maxDate, !0) === 0;
|
|
2405
2405
|
if (t.config.maxTime !== void 0 && t.config.minTime !== void 0 && t.config.minTime > t.config.maxTime) {
|
|
2406
|
-
var
|
|
2407
|
-
if (E > W && E <
|
|
2408
|
-
var q =
|
|
2406
|
+
var O = Yn(t.config.minTime.getHours(), t.config.minTime.getMinutes(), t.config.minTime.getSeconds()), W = Yn(t.config.maxTime.getHours(), t.config.maxTime.getMinutes(), t.config.maxTime.getSeconds()), E = Yn(r, i, u);
|
|
2407
|
+
if (E > W && E < O) {
|
|
2408
|
+
var q = Ni(O);
|
|
2409
2409
|
r = q[0], i = q[1], u = q[2];
|
|
2410
2410
|
}
|
|
2411
2411
|
} else {
|
|
@@ -2421,7 +2421,7 @@ function Vi(e, n) {
|
|
|
2421
2421
|
w(r, i, u);
|
|
2422
2422
|
}
|
|
2423
2423
|
}
|
|
2424
|
-
function
|
|
2424
|
+
function f(r) {
|
|
2425
2425
|
var i = r || t.latestSelectedDateObj;
|
|
2426
2426
|
i && i instanceof Date && w(i.getHours(), i.getMinutes(), i.getSeconds());
|
|
2427
2427
|
}
|
|
@@ -2447,10 +2447,10 @@ function Vi(e, n) {
|
|
|
2447
2447
|
}
|
|
2448
2448
|
});
|
|
2449
2449
|
}
|
|
2450
|
-
function
|
|
2451
|
-
|
|
2450
|
+
function N() {
|
|
2451
|
+
fe("onChange");
|
|
2452
2452
|
}
|
|
2453
|
-
function
|
|
2453
|
+
function $() {
|
|
2454
2454
|
if (t.config.wrap && ["open", "close", "toggle", "clear"].forEach(function(u) {
|
|
2455
2455
|
Array.prototype.forEach.call(t.element.querySelectorAll("[data-" + u + "]"), function(v) {
|
|
2456
2456
|
return z(v, "click", t[u]);
|
|
@@ -2460,36 +2460,36 @@ function Vi(e, n) {
|
|
|
2460
2460
|
return;
|
|
2461
2461
|
}
|
|
2462
2462
|
var r = Ya(Ht, 50);
|
|
2463
|
-
if (t._debouncedChange = Ya(
|
|
2463
|
+
if (t._debouncedChange = Ya(N, Li), t.daysContainer && !/iPhone|iPad|iPod/i.test(navigator.userAgent) && z(t.daysContainer, "mouseover", function(u) {
|
|
2464
2464
|
t.config.mode === "range" && Be(Le(u));
|
|
2465
2465
|
}), z(t._input, "keydown", Ze), t.calendarContainer !== void 0 && z(t.calendarContainer, "keydown", Ze), !t.config.inline && !t.config.static && z(window, "resize", r), window.ontouchstart !== void 0 ? z(window.document, "touchstart", je) : z(window.document, "mousedown", je), z(window.document, "focus", je, { capture: !0 }), t.config.clickOpens === !0 && (z(t._input, "focus", t.open), z(t._input, "click", t.open)), t.daysContainer !== void 0 && (z(t.monthNav, "click", nn), z(t.monthNav, ["keyup", "increment"], V), z(t.daysContainer, "click", xt)), t.timeContainer !== void 0 && t.minuteElement !== void 0 && t.hourElement !== void 0) {
|
|
2466
2466
|
var i = function(u) {
|
|
2467
2467
|
return Le(u).select();
|
|
2468
2468
|
};
|
|
2469
|
-
z(t.timeContainer, ["increment"], d), z(t.timeContainer, "blur", d, { capture: !0 }), z(t.timeContainer, "click",
|
|
2469
|
+
z(t.timeContainer, ["increment"], d), z(t.timeContainer, "blur", d, { capture: !0 }), z(t.timeContainer, "click", F), z([t.hourElement, t.minuteElement], ["focus", "click"], i), t.secondElement !== void 0 && z(t.secondElement, "focus", function() {
|
|
2470
2470
|
return t.secondElement && t.secondElement.select();
|
|
2471
2471
|
}), t.amPM !== void 0 && z(t.amPM, "click", function(u) {
|
|
2472
2472
|
d(u);
|
|
2473
2473
|
});
|
|
2474
2474
|
}
|
|
2475
|
-
t.config.allowInput && z(t._input, "blur",
|
|
2475
|
+
t.config.allowInput && z(t._input, "blur", Ne);
|
|
2476
2476
|
}
|
|
2477
2477
|
function P(r, i) {
|
|
2478
2478
|
var u = r !== void 0 ? t.parseDate(r) : t.latestSelectedDateObj || (t.config.minDate && t.config.minDate > t.now ? t.config.minDate : t.config.maxDate && t.config.maxDate < t.now ? t.config.maxDate : t.now), v = t.currentYear, C = t.currentMonth;
|
|
2479
2479
|
try {
|
|
2480
2480
|
u !== void 0 && (t.currentYear = u.getFullYear(), t.currentMonth = u.getMonth());
|
|
2481
|
-
} catch (
|
|
2482
|
-
|
|
2481
|
+
} catch (O) {
|
|
2482
|
+
O.message = "Invalid date supplied: " + u, t.config.errorHandler(O);
|
|
2483
2483
|
}
|
|
2484
|
-
i && t.currentYear !== v && (
|
|
2484
|
+
i && t.currentYear !== v && (fe("onYearChange"), T()), i && (t.currentYear !== v || t.currentMonth !== C) && fe("onMonthChange"), t.redraw();
|
|
2485
2485
|
}
|
|
2486
|
-
function
|
|
2486
|
+
function F(r) {
|
|
2487
2487
|
var i = Le(r);
|
|
2488
2488
|
~i.className.indexOf("arrow") && H(r, i.classList.contains("arrowUp") ? 1 : -1);
|
|
2489
2489
|
}
|
|
2490
2490
|
function H(r, i, u) {
|
|
2491
|
-
var v = r && Le(r), C = u || v && v.parentNode && v.parentNode.firstChild,
|
|
2492
|
-
|
|
2491
|
+
var v = r && Le(r), C = u || v && v.parentNode && v.parentNode.firstChild, O = bt("increment");
|
|
2492
|
+
O.delta = i, C && C.dispatchEvent(O);
|
|
2493
2493
|
}
|
|
2494
2494
|
function le() {
|
|
2495
2495
|
var r = window.document.createDocumentFragment();
|
|
@@ -2503,29 +2503,29 @@ function Vi(e, n) {
|
|
|
2503
2503
|
t.config.enableTime && r.appendChild(D()), Oe(t.calendarContainer, "rangeMode", t.config.mode === "range"), Oe(t.calendarContainer, "animate", t.config.animate === !0), Oe(t.calendarContainer, "multiMonth", t.config.showMonths > 1), t.calendarContainer.appendChild(r);
|
|
2504
2504
|
var C = t.config.appendTo !== void 0 && t.config.appendTo.nodeType !== void 0;
|
|
2505
2505
|
if ((t.config.inline || t.config.static) && (t.calendarContainer.classList.add(t.config.inline ? "inline" : "static"), t.config.inline && (!C && t.element.parentNode ? t.element.parentNode.insertBefore(t.calendarContainer, t._input.nextSibling) : t.config.appendTo !== void 0 && t.config.appendTo.appendChild(t.calendarContainer)), t.config.static)) {
|
|
2506
|
-
var
|
|
2507
|
-
t.element.parentNode && t.element.parentNode.insertBefore(
|
|
2506
|
+
var O = ae("div", "flatpickr-wrapper");
|
|
2507
|
+
t.element.parentNode && t.element.parentNode.insertBefore(O, t.element), O.appendChild(t.element), t.altInput && O.appendChild(t.altInput), O.appendChild(t.calendarContainer);
|
|
2508
2508
|
}
|
|
2509
2509
|
!t.config.static && !t.config.inline && (t.config.appendTo !== void 0 ? t.config.appendTo : window.document.body).appendChild(t.calendarContainer);
|
|
2510
2510
|
}
|
|
2511
2511
|
function ue(r, i, u, v) {
|
|
2512
|
-
var C = Ce(i, !0),
|
|
2513
|
-
return
|
|
2512
|
+
var C = Ce(i, !0), O = ae("span", r, i.getDate().toString());
|
|
2513
|
+
return O.dateObj = i, O.$i = v, O.setAttribute("aria-label", t.formatDate(i, t.config.ariaDateFormat)), r.indexOf("hidden") === -1 && Ve(i, t.now) === 0 && (t.todayDateElem = O, O.classList.add("today"), O.setAttribute("aria-current", "date")), C ? (O.tabIndex = -1, wt(i) && (O.classList.add("selected"), t.selectedDateElem = O, t.config.mode === "range" && (Oe(O, "startRange", t.selectedDates[0] && Ve(i, t.selectedDates[0], !0) === 0), Oe(O, "endRange", t.selectedDates[1] && Ve(i, t.selectedDates[1], !0) === 0), r === "nextMonthDay" && O.classList.add("inRange")))) : O.classList.add("flatpickr-disabled"), t.config.mode === "range" && tn(i) && !wt(i) && O.classList.add("inRange"), t.weekNumbers && t.config.showMonths === 1 && r !== "prevMonthDay" && v % 7 === 6 && t.weekNumbers.insertAdjacentHTML("beforeend", "<span class='flatpickr-day'>" + t.config.getWeek(i) + "</span>"), fe("onDayCreate", O), O;
|
|
2514
2514
|
}
|
|
2515
2515
|
function ge(r) {
|
|
2516
2516
|
r.focus(), t.config.mode === "range" && Be(r);
|
|
2517
2517
|
}
|
|
2518
2518
|
function we(r) {
|
|
2519
2519
|
for (var i = r > 0 ? 0 : t.config.showMonths - 1, u = r > 0 ? t.config.showMonths : -1, v = i; v != u; v += r)
|
|
2520
|
-
for (var C = t.daysContainer.children[v],
|
|
2520
|
+
for (var C = t.daysContainer.children[v], O = r > 0 ? 0 : C.children.length - 1, W = r > 0 ? C.children.length : -1, E = O; E != W; E += r) {
|
|
2521
2521
|
var q = C.children[E];
|
|
2522
2522
|
if (q.className.indexOf("hidden") === -1 && Ce(q.dateObj))
|
|
2523
2523
|
return q;
|
|
2524
2524
|
}
|
|
2525
2525
|
}
|
|
2526
2526
|
function ee(r, i) {
|
|
2527
|
-
for (var u = r.className.indexOf("Month") === -1 ? r.dateObj.getMonth() : t.currentMonth, v = i > 0 ? t.config.showMonths : -1, C = i > 0 ? 1 : -1,
|
|
2528
|
-
for (var W = t.daysContainer.children[
|
|
2527
|
+
for (var u = r.className.indexOf("Month") === -1 ? r.dateObj.getMonth() : t.currentMonth, v = i > 0 ? t.config.showMonths : -1, C = i > 0 ? 1 : -1, O = u - t.currentMonth; O != v; O += C)
|
|
2528
|
+
for (var W = t.daysContainer.children[O], E = u - t.currentMonth === O ? r.$i + i : i < 0 ? W.children.length - 1 : 0, q = W.children.length, I = E; I >= 0 && I < q && I != (i > 0 ? q : -1); I += C) {
|
|
2529
2529
|
var Y = W.children[I];
|
|
2530
2530
|
if (Y.className.indexOf("hidden") === -1 && Ce(Y.dateObj) && Math.abs(r.$i - I) >= Math.abs(i))
|
|
2531
2531
|
return ge(Y);
|
|
@@ -2537,14 +2537,14 @@ function Vi(e, n) {
|
|
|
2537
2537
|
C === void 0 ? t._input.focus() : v ? ee(C, i) : ge(C);
|
|
2538
2538
|
}
|
|
2539
2539
|
function Ae(r, i) {
|
|
2540
|
-
for (var u = (new Date(r, i, 1).getDay() - t.l10n.firstDayOfWeek + 7) % 7, v = t.utils.getDaysInMonth((i - 1 + 12) % 12, r), C = t.utils.getDaysInMonth(i, r),
|
|
2541
|
-
|
|
2540
|
+
for (var u = (new Date(r, i, 1).getDay() - t.l10n.firstDayOfWeek + 7) % 7, v = t.utils.getDaysInMonth((i - 1 + 12) % 12, r), C = t.utils.getDaysInMonth(i, r), O = window.document.createDocumentFragment(), W = t.config.showMonths > 1, E = W ? "prevMonthDay hidden" : "prevMonthDay", q = W ? "nextMonthDay hidden" : "nextMonthDay", I = v + 1 - u, Y = 0; I <= v; I++, Y++)
|
|
2541
|
+
O.appendChild(ue("flatpickr-day " + E, new Date(r, i - 1, I), I, Y));
|
|
2542
2542
|
for (I = 1; I <= C; I++, Y++)
|
|
2543
|
-
|
|
2543
|
+
O.appendChild(ue("flatpickr-day", new Date(r, i, I), I, Y));
|
|
2544
2544
|
for (var oe = C + 1; oe <= 42 - u && (t.config.showMonths === 1 || Y % 7 !== 0); oe++, Y++)
|
|
2545
|
-
|
|
2546
|
-
var
|
|
2547
|
-
return
|
|
2545
|
+
O.appendChild(ue("flatpickr-day " + q, new Date(r, i + 1, oe % C), oe, Y));
|
|
2546
|
+
var Fe = ae("div", "dayContainer");
|
|
2547
|
+
return Fe.appendChild(O), Fe;
|
|
2548
2548
|
}
|
|
2549
2549
|
function Se() {
|
|
2550
2550
|
if (t.daysContainer !== void 0) {
|
|
@@ -2573,12 +2573,12 @@ function Vi(e, n) {
|
|
|
2573
2573
|
var r = ae("div", "flatpickr-month"), i = window.document.createDocumentFragment(), u;
|
|
2574
2574
|
t.config.showMonths > 1 || t.config.monthSelectorType === "static" ? u = ae("span", "cur-month") : (t.monthsDropdownContainer = ae("select", "flatpickr-monthDropdown-months"), t.monthsDropdownContainer.setAttribute("aria-label", t.l10n.monthAriaLabel), z(t.monthsDropdownContainer, "change", function(W) {
|
|
2575
2575
|
var E = Le(W), q = parseInt(E.value, 10);
|
|
2576
|
-
t.changeMonth(q - t.currentMonth),
|
|
2576
|
+
t.changeMonth(q - t.currentMonth), fe("onMonthChange");
|
|
2577
2577
|
}), T(), u = t.monthsDropdownContainer);
|
|
2578
2578
|
var v = yn("cur-year", { tabindex: "-1" }), C = v.getElementsByTagName("input")[0];
|
|
2579
2579
|
C.setAttribute("aria-label", t.l10n.yearAriaLabel), t.config.minDate && C.setAttribute("min", t.config.minDate.getFullYear().toString()), t.config.maxDate && (C.setAttribute("max", t.config.maxDate.getFullYear().toString()), C.disabled = !!t.config.minDate && t.config.minDate.getFullYear() === t.config.maxDate.getFullYear());
|
|
2580
|
-
var
|
|
2581
|
-
return
|
|
2580
|
+
var O = ae("div", "flatpickr-current-month");
|
|
2581
|
+
return O.appendChild(u), O.appendChild(v), i.appendChild(O), r.appendChild(i), {
|
|
2582
2582
|
container: r,
|
|
2583
2583
|
yearElement: C,
|
|
2584
2584
|
monthElement: u
|
|
@@ -2660,20 +2660,20 @@ function Vi(e, n) {
|
|
|
2660
2660
|
function ce(r, i) {
|
|
2661
2661
|
i === void 0 && (i = !0);
|
|
2662
2662
|
var u = i ? r : r - t.currentMonth;
|
|
2663
|
-
u < 0 && t._hidePrevMonthArrow === !0 || u > 0 && t._hideNextMonthArrow === !0 || (t.currentMonth += u, (t.currentMonth < 0 || t.currentMonth > 11) && (t.currentYear += t.currentMonth > 11 ? 1 : -1, t.currentMonth = (t.currentMonth + 12) % 12,
|
|
2663
|
+
u < 0 && t._hidePrevMonthArrow === !0 || u > 0 && t._hideNextMonthArrow === !0 || (t.currentMonth += u, (t.currentMonth < 0 || t.currentMonth > 11) && (t.currentYear += t.currentMonth > 11 ? 1 : -1, t.currentMonth = (t.currentMonth + 12) % 12, fe("onYearChange"), T()), Se(), fe("onMonthChange"), st());
|
|
2664
2664
|
}
|
|
2665
|
-
function
|
|
2665
|
+
function me(r, i) {
|
|
2666
2666
|
if (r === void 0 && (r = !0), i === void 0 && (i = !0), t.input.value = "", t.altInput !== void 0 && (t.altInput.value = ""), t.mobileInput !== void 0 && (t.mobileInput.value = ""), t.selectedDates = [], t.latestSelectedDateObj = void 0, i === !0 && (t.currentYear = t._initialDate.getFullYear(), t.currentMonth = t._initialDate.getMonth()), t.config.enableTime === !0) {
|
|
2667
|
-
var u = Hn(t.config), v = u.hours, C = u.minutes,
|
|
2668
|
-
w(v, C,
|
|
2667
|
+
var u = Hn(t.config), v = u.hours, C = u.minutes, O = u.seconds;
|
|
2668
|
+
w(v, C, O);
|
|
2669
2669
|
}
|
|
2670
|
-
t.redraw(), r &&
|
|
2670
|
+
t.redraw(), r && fe("onChange");
|
|
2671
2671
|
}
|
|
2672
2672
|
function ve() {
|
|
2673
|
-
t.isOpen = !1, t.isMobile || (t.calendarContainer !== void 0 && t.calendarContainer.classList.remove("open"), t._input !== void 0 && t._input.classList.remove("active")),
|
|
2673
|
+
t.isOpen = !1, t.isMobile || (t.calendarContainer !== void 0 && t.calendarContainer.classList.remove("open"), t._input !== void 0 && t._input.classList.remove("active")), fe("onClose");
|
|
2674
2674
|
}
|
|
2675
2675
|
function Ie() {
|
|
2676
|
-
t.config !== void 0 &&
|
|
2676
|
+
t.config !== void 0 && fe("onDestroy");
|
|
2677
2677
|
for (var r = t._handlers.length; r--; )
|
|
2678
2678
|
t._handlers[r].remove();
|
|
2679
2679
|
if (t._handlers = [], t.mobileInput)
|
|
@@ -2730,16 +2730,16 @@ function Vi(e, n) {
|
|
|
2730
2730
|
}
|
|
2731
2731
|
function je(r) {
|
|
2732
2732
|
if (t.isOpen && !t.config.inline) {
|
|
2733
|
-
var i = Le(r), u = ke(i), v = i === t.input || i === t.altInput || t.element.contains(i) || r.path && r.path.indexOf && (~r.path.indexOf(t.input) || ~r.path.indexOf(t.altInput)), C = !v && !u && !ke(r.relatedTarget),
|
|
2733
|
+
var i = Le(r), u = ke(i), v = i === t.input || i === t.altInput || t.element.contains(i) || r.path && r.path.indexOf && (~r.path.indexOf(t.input) || ~r.path.indexOf(t.altInput)), C = !v && !u && !ke(r.relatedTarget), O = !t.config.ignoredFocusElements.some(function(W) {
|
|
2734
2734
|
return W.contains(i);
|
|
2735
2735
|
});
|
|
2736
|
-
C &&
|
|
2736
|
+
C && O && (t.config.allowInput && t.setDate(t._input.value, !1, t.config.altInput ? t.config.altFormat : t.config.dateFormat), t.timeContainer !== void 0 && t.minuteElement !== void 0 && t.hourElement !== void 0 && t.input.value !== "" && t.input.value !== void 0 && d(), t.close(), t.config && t.config.mode === "range" && t.selectedDates.length === 1 && t.clear(!1));
|
|
2737
2737
|
}
|
|
2738
2738
|
}
|
|
2739
2739
|
function Ee(r) {
|
|
2740
2740
|
if (!(!r || t.config.minDate && r < t.config.minDate.getFullYear() || t.config.maxDate && r > t.config.maxDate.getFullYear())) {
|
|
2741
2741
|
var i = r, u = t.currentYear !== i;
|
|
2742
|
-
t.currentYear = i || t.currentYear, t.config.maxDate && t.currentYear === t.config.maxDate.getFullYear() ? t.currentMonth = Math.min(t.config.maxDate.getMonth(), t.currentMonth) : t.config.minDate && t.currentYear === t.config.minDate.getFullYear() && (t.currentMonth = Math.max(t.config.minDate.getMonth(), t.currentMonth)), u && (t.redraw(),
|
|
2742
|
+
t.currentYear = i || t.currentYear, t.config.maxDate && t.currentYear === t.config.maxDate.getFullYear() ? t.currentMonth = Math.min(t.config.maxDate.getMonth(), t.currentMonth) : t.config.minDate && t.currentYear === t.config.minDate.getFullYear() && (t.currentMonth = Math.max(t.config.minDate.getMonth(), t.currentMonth)), u && (t.redraw(), fe("onYearChange"), T());
|
|
2743
2743
|
}
|
|
2744
2744
|
}
|
|
2745
2745
|
function Ce(r, i) {
|
|
@@ -2752,8 +2752,8 @@ function Vi(e, n) {
|
|
|
2752
2752
|
return !0;
|
|
2753
2753
|
if (v === void 0)
|
|
2754
2754
|
return !1;
|
|
2755
|
-
for (var C = !!t.config.enable,
|
|
2756
|
-
if (E =
|
|
2755
|
+
for (var C = !!t.config.enable, O = (u = t.config.enable) !== null && u !== void 0 ? u : t.config.disable, W = 0, E = void 0; W < O.length; W++) {
|
|
2756
|
+
if (E = O[W], typeof E == "function" && E(v))
|
|
2757
2757
|
return C;
|
|
2758
2758
|
if (E instanceof Date && v !== void 0 && E.getTime() === v.getTime())
|
|
2759
2759
|
return C;
|
|
@@ -2768,17 +2768,17 @@ function Vi(e, n) {
|
|
|
2768
2768
|
function pe(r) {
|
|
2769
2769
|
return t.daysContainer !== void 0 ? r.className.indexOf("hidden") === -1 && r.className.indexOf("flatpickr-disabled") === -1 && t.daysContainer.contains(r) : !1;
|
|
2770
2770
|
}
|
|
2771
|
-
function
|
|
2771
|
+
function Ne(r) {
|
|
2772
2772
|
var i = r.target === t._input, u = t._input.value.trimEnd() !== _t();
|
|
2773
2773
|
i && u && !(r.relatedTarget && ke(r.relatedTarget)) && t.setDate(t._input.value, !0, r.target === t.altInput ? t.config.altFormat : t.config.dateFormat);
|
|
2774
2774
|
}
|
|
2775
2775
|
function Ze(r) {
|
|
2776
|
-
var i = Le(r), u = t.config.wrap ? e.contains(i) : i === t._input, v = t.config.allowInput, C = t.isOpen && (!v || !u),
|
|
2776
|
+
var i = Le(r), u = t.config.wrap ? e.contains(i) : i === t._input, v = t.config.allowInput, C = t.isOpen && (!v || !u), O = t.config.inline && u && !v;
|
|
2777
2777
|
if (r.keyCode === 13 && u) {
|
|
2778
2778
|
if (v)
|
|
2779
2779
|
return t.setDate(t._input.value, !0, i === t.altInput ? t.config.altFormat : t.config.dateFormat), t.close(), i.blur();
|
|
2780
2780
|
t.open();
|
|
2781
|
-
} else if (ke(i) || C ||
|
|
2781
|
+
} else if (ke(i) || C || O) {
|
|
2782
2782
|
var W = !!t.timeContainer && t.timeContainer.contains(i);
|
|
2783
2783
|
switch (r.keyCode) {
|
|
2784
2784
|
case 13:
|
|
@@ -2820,8 +2820,8 @@ function Vi(e, n) {
|
|
|
2820
2820
|
return Te;
|
|
2821
2821
|
}), oe = Y.indexOf(i);
|
|
2822
2822
|
if (oe !== -1) {
|
|
2823
|
-
var
|
|
2824
|
-
r.preventDefault(), (
|
|
2823
|
+
var Fe = Y[oe + (r.shiftKey ? -1 : 1)];
|
|
2824
|
+
r.preventDefault(), (Fe || t._input).focus();
|
|
2825
2825
|
}
|
|
2826
2826
|
} else
|
|
2827
2827
|
!t.config.noCalendar && t.daysContainer && t.daysContainer.contains(i) && r.shiftKey && (r.preventDefault(), t._input.focus());
|
|
@@ -2832,22 +2832,22 @@ function Vi(e, n) {
|
|
|
2832
2832
|
switch (r.key) {
|
|
2833
2833
|
case t.l10n.amPM[0].charAt(0):
|
|
2834
2834
|
case t.l10n.amPM[0].charAt(0).toLowerCase():
|
|
2835
|
-
t.amPM.textContent = t.l10n.amPM[0],
|
|
2835
|
+
t.amPM.textContent = t.l10n.amPM[0], m(), Re();
|
|
2836
2836
|
break;
|
|
2837
2837
|
case t.l10n.amPM[1].charAt(0):
|
|
2838
2838
|
case t.l10n.amPM[1].charAt(0).toLowerCase():
|
|
2839
|
-
t.amPM.textContent = t.l10n.amPM[1],
|
|
2839
|
+
t.amPM.textContent = t.l10n.amPM[1], m(), Re();
|
|
2840
2840
|
break;
|
|
2841
2841
|
}
|
|
2842
|
-
(u || ke(i)) &&
|
|
2842
|
+
(u || ke(i)) && fe("onKeyDown", r);
|
|
2843
2843
|
}
|
|
2844
2844
|
function Be(r, i) {
|
|
2845
2845
|
if (i === void 0 && (i = "flatpickr-day"), !(t.selectedDates.length !== 1 || r && (!r.classList.contains(i) || r.classList.contains("flatpickr-disabled")))) {
|
|
2846
|
-
for (var u = r ? r.dateObj.getTime() : t.days.firstElementChild.dateObj.getTime(), v = t.parseDate(t.selectedDates[0], void 0, !0).getTime(), C = Math.min(u, t.selectedDates[0].getTime()),
|
|
2847
|
-
Ce(new Date(I), !0) || (W = W || I > C && I <
|
|
2846
|
+
for (var u = r ? r.dateObj.getTime() : t.days.firstElementChild.dateObj.getTime(), v = t.parseDate(t.selectedDates[0], void 0, !0).getTime(), C = Math.min(u, t.selectedDates[0].getTime()), O = Math.max(u, t.selectedDates[0].getTime()), W = !1, E = 0, q = 0, I = C; I < O; I += Fi.DAY)
|
|
2847
|
+
Ce(new Date(I), !0) || (W = W || I > C && I < O, I < v && (!E || I > E) ? E = I : I > v && (!q || I < q) && (q = I));
|
|
2848
2848
|
var Y = Array.from(t.rContainer.querySelectorAll("*:nth-child(-n+" + t.config.showMonths + ") > ." + i));
|
|
2849
2849
|
Y.forEach(function(oe) {
|
|
2850
|
-
var
|
|
2850
|
+
var Fe = oe.dateObj, Te = Fe.getTime(), tt = E > 0 && Te < E || q > 0 && Te > q;
|
|
2851
2851
|
if (tt) {
|
|
2852
2852
|
oe.classList.add("notAllowed"), ["inRange", "startRange", "endRange"].forEach(function(Qe) {
|
|
2853
2853
|
oe.classList.remove(Qe);
|
|
@@ -2871,12 +2871,12 @@ function Vi(e, n) {
|
|
|
2871
2871
|
var u = Le(r);
|
|
2872
2872
|
u && u.blur();
|
|
2873
2873
|
}
|
|
2874
|
-
t.mobileInput !== void 0 && (t.mobileInput.focus(), t.mobileInput.click()),
|
|
2874
|
+
t.mobileInput !== void 0 && (t.mobileInput.focus(), t.mobileInput.click()), fe("onOpen");
|
|
2875
2875
|
return;
|
|
2876
2876
|
} else if (t._input.disabled || t.config.inline)
|
|
2877
2877
|
return;
|
|
2878
2878
|
var v = t.isOpen;
|
|
2879
|
-
t.isOpen = !0, v || (t.calendarContainer.classList.add("open"), t._input.classList.add("active"),
|
|
2879
|
+
t.isOpen = !0, v || (t.calendarContainer.classList.add("open"), t._input.classList.add("active"), fe("onOpen"), it(i)), t.config.enableTime === !0 && t.config.noCalendar === !0 && t.config.allowInput === !1 && (r === void 0 || !t.timeContainer.contains(r.relatedTarget)) && setTimeout(function() {
|
|
2880
2880
|
return t.hourElement.select();
|
|
2881
2881
|
}, 50);
|
|
2882
2882
|
}
|
|
@@ -2885,7 +2885,7 @@ function Vi(e, n) {
|
|
|
2885
2885
|
var u = t.config["_" + r + "Date"] = t.parseDate(i, t.config.dateFormat), v = t.config["_" + (r === "min" ? "max" : "min") + "Date"];
|
|
2886
2886
|
u !== void 0 && (t[r === "min" ? "minDateHasTime" : "maxDateHasTime"] = u.getHours() > 0 || u.getMinutes() > 0 || u.getSeconds() > 0), t.selectedDates && (t.selectedDates = t.selectedDates.filter(function(C) {
|
|
2887
2887
|
return Ce(C);
|
|
2888
|
-
}), !t.selectedDates.length && r === "min" &&
|
|
2888
|
+
}), !t.selectedDates.length && r === "min" && f(u), Re()), t.daysContainer && (Tt(), u !== void 0 ? t.currentYearElement[r] = u.getFullYear().toString() : t.currentYearElement.removeAttribute(r), t.currentYearElement.disabled = !!v && u !== void 0 && v.getFullYear() === u.getFullYear());
|
|
2889
2889
|
};
|
|
2890
2890
|
}
|
|
2891
2891
|
function Ut() {
|
|
@@ -2926,8 +2926,8 @@ function Vi(e, n) {
|
|
|
2926
2926
|
u.dateFormat = i.noCalendar || v ? "H:i" + (i.enableSeconds ? ":S" : "") : C + " H:i" + (i.enableSeconds ? ":S" : "");
|
|
2927
2927
|
}
|
|
2928
2928
|
if (i.altInput && (i.enableTime || v) && !i.altFormat) {
|
|
2929
|
-
var
|
|
2930
|
-
u.altFormat = i.noCalendar || v ? "h:i" + (i.enableSeconds ? ":S K" : " K") :
|
|
2929
|
+
var O = ye.defaultConfig.altFormat || kt.altFormat;
|
|
2930
|
+
u.altFormat = i.noCalendar || v ? "h:i" + (i.enableSeconds ? ":S K" : " K") : O + (" h:i" + (i.enableSeconds ? ":S" : "") + " K");
|
|
2931
2931
|
}
|
|
2932
2932
|
Object.defineProperty(t.config, "minDate", {
|
|
2933
2933
|
get: function() {
|
|
@@ -2968,7 +2968,7 @@ function Vi(e, n) {
|
|
|
2968
2968
|
for (var I in q)
|
|
2969
2969
|
jn.indexOf(I) > -1 ? t.config[I] = Bn(q[I]).map(s).concat(t.config[I]) : typeof i[I] > "u" && (t.config[I] = q[I]);
|
|
2970
2970
|
}
|
|
2971
|
-
i.altInputClass || (t.config.altInputClass = At().className + " " + t.config.altInputClass),
|
|
2971
|
+
i.altInputClass || (t.config.altInputClass = At().className + " " + t.config.altInputClass), fe("onParseConfig");
|
|
2972
2972
|
}
|
|
2973
2973
|
function At() {
|
|
2974
2974
|
return t.config.wrap ? e.querySelector("[data-input]") : e;
|
|
@@ -2982,13 +2982,13 @@ function Vi(e, n) {
|
|
|
2982
2982
|
if (typeof t.config.position == "function")
|
|
2983
2983
|
return void t.config.position(t, r);
|
|
2984
2984
|
if (t.calendarContainer !== void 0) {
|
|
2985
|
-
|
|
2986
|
-
var i = r || t._positionElement, u = Array.prototype.reduce.call(t.calendarContainer.children, function(
|
|
2987
|
-
return
|
|
2988
|
-
}, 0), v = t.calendarContainer.offsetWidth, C = t.config.position.split(" "),
|
|
2985
|
+
fe("onPreCalendarPosition");
|
|
2986
|
+
var i = r || t._positionElement, u = Array.prototype.reduce.call(t.calendarContainer.children, function(mn, fn) {
|
|
2987
|
+
return mn + fn.offsetHeight;
|
|
2988
|
+
}, 0), v = t.calendarContainer.offsetWidth, C = t.config.position.split(" "), O = C[0], W = C.length > 1 ? C[1] : null, E = i.getBoundingClientRect(), q = window.innerHeight - E.bottom, I = O === "above" || O !== "below" && q < u && E.top > u, Y = window.pageYOffset + E.top + (I ? -u - 2 : i.offsetHeight + 2);
|
|
2989
2989
|
if (Oe(t.calendarContainer, "arrowTop", !I), Oe(t.calendarContainer, "arrowBottom", I), !t.config.inline) {
|
|
2990
|
-
var oe = window.pageXOffset + E.left,
|
|
2991
|
-
W === "center" ? (oe -= (v - E.width) / 2,
|
|
2990
|
+
var oe = window.pageXOffset + E.left, Fe = !1, Te = !1;
|
|
2991
|
+
W === "center" ? (oe -= (v - E.width) / 2, Fe = !0) : W === "right" && (oe -= v - E.width, Te = !0), Oe(t.calendarContainer, "arrowLeft", !Fe && !Te), Oe(t.calendarContainer, "arrowCenter", Fe), Oe(t.calendarContainer, "arrowRight", Te);
|
|
2992
2992
|
var tt = window.document.body.offsetWidth - (window.pageXOffset + E.right), Qe = oe + v > window.document.body.offsetWidth, rn = tt + v > window.document.body.offsetWidth;
|
|
2993
2993
|
if (Oe(t.calendarContainer, "rightMost", Qe), !t.config.static)
|
|
2994
2994
|
if (t.calendarContainer.style.top = Y + "px", !Qe)
|
|
@@ -3036,7 +3036,7 @@ function Vi(e, n) {
|
|
|
3036
3036
|
return Y.classList && Y.classList.contains("flatpickr-day") && !Y.classList.contains("flatpickr-disabled") && !Y.classList.contains("notAllowed");
|
|
3037
3037
|
}, u = _r(Le(r), i);
|
|
3038
3038
|
if (u !== void 0) {
|
|
3039
|
-
var v = u, C = t.latestSelectedDateObj = new Date(v.dateObj.getTime()),
|
|
3039
|
+
var v = u, C = t.latestSelectedDateObj = new Date(v.dateObj.getTime()), O = (C.getMonth() < t.currentMonth || C.getMonth() > t.currentMonth + t.config.showMonths - 1) && t.config.mode !== "range";
|
|
3040
3040
|
if (t.selectedDateElem = v, t.config.mode === "single")
|
|
3041
3041
|
t.selectedDates = [C];
|
|
3042
3042
|
else if (t.config.mode === "multiple") {
|
|
@@ -3046,15 +3046,15 @@ function Vi(e, n) {
|
|
|
3046
3046
|
t.config.mode === "range" && (t.selectedDates.length === 2 && t.clear(!1, !1), t.latestSelectedDateObj = C, t.selectedDates.push(C), Ve(C, t.selectedDates[0], !0) !== 0 && t.selectedDates.sort(function(Y, oe) {
|
|
3047
3047
|
return Y.getTime() - oe.getTime();
|
|
3048
3048
|
}));
|
|
3049
|
-
if (
|
|
3049
|
+
if (m(), O) {
|
|
3050
3050
|
var E = t.currentYear !== C.getFullYear();
|
|
3051
|
-
t.currentYear = C.getFullYear(), t.currentMonth = C.getMonth(), E && (
|
|
3051
|
+
t.currentYear = C.getFullYear(), t.currentMonth = C.getMonth(), E && (fe("onYearChange"), T()), fe("onMonthChange");
|
|
3052
3052
|
}
|
|
3053
|
-
if (st(), Se(), Re(), !
|
|
3053
|
+
if (st(), Se(), Re(), !O && t.config.mode !== "range" && t.config.showMonths === 1 ? ge(v) : t.selectedDateElem !== void 0 && t.hourElement === void 0 && t.selectedDateElem && t.selectedDateElem.focus(), t.hourElement !== void 0 && t.hourElement !== void 0 && t.hourElement.focus(), t.config.closeOnSelect) {
|
|
3054
3054
|
var q = t.config.mode === "single" && !t.config.enableTime, I = t.config.mode === "range" && t.selectedDates.length === 2 && !t.config.enableTime;
|
|
3055
3055
|
(q || I) && yt();
|
|
3056
3056
|
}
|
|
3057
|
-
|
|
3057
|
+
N();
|
|
3058
3058
|
}
|
|
3059
3059
|
}
|
|
3060
3060
|
var lt = {
|
|
@@ -3118,7 +3118,7 @@ function Vi(e, n) {
|
|
|
3118
3118
|
function Kt(r, i, u) {
|
|
3119
3119
|
if (i === void 0 && (i = !1), u === void 0 && (u = t.config.dateFormat), r !== 0 && !r || r instanceof Array && r.length === 0)
|
|
3120
3120
|
return t.clear(i);
|
|
3121
|
-
Ot(r, u), t.latestSelectedDateObj = t.selectedDates[t.selectedDates.length - 1], t.redraw(), P(void 0, i),
|
|
3121
|
+
Ot(r, u), t.latestSelectedDateObj = t.selectedDates[t.selectedDates.length - 1], t.redraw(), P(void 0, i), f(), t.selectedDates.length === 0 && t.clear(!1), Re(i), i && fe("onChange");
|
|
3122
3122
|
}
|
|
3123
3123
|
function $t(r) {
|
|
3124
3124
|
return r.slice().map(function(i) {
|
|
@@ -3153,7 +3153,7 @@ function Vi(e, n) {
|
|
|
3153
3153
|
} catch {
|
|
3154
3154
|
}
|
|
3155
3155
|
z(t.mobileInput, "change", function(i) {
|
|
3156
|
-
t.setDate(Le(i).value, !1, t.mobileFormatStr),
|
|
3156
|
+
t.setDate(Le(i).value, !1, t.mobileFormatStr), fe("onChange"), fe("onClose");
|
|
3157
3157
|
});
|
|
3158
3158
|
}
|
|
3159
3159
|
function en(r) {
|
|
@@ -3161,7 +3161,7 @@ function Vi(e, n) {
|
|
|
3161
3161
|
return t.close();
|
|
3162
3162
|
t.open(r);
|
|
3163
3163
|
}
|
|
3164
|
-
function
|
|
3164
|
+
function fe(r, i) {
|
|
3165
3165
|
if (t.config !== void 0) {
|
|
3166
3166
|
var u = t.config[r];
|
|
3167
3167
|
if (u !== void 0 && u.length > 0)
|
|
@@ -3200,7 +3200,7 @@ function Vi(e, n) {
|
|
|
3200
3200
|
}).join(t.config.mode !== "range" ? t.config.conjunction : t.l10n.rangeSeparator);
|
|
3201
3201
|
}
|
|
3202
3202
|
function Re(r) {
|
|
3203
|
-
r === void 0 && (r = !0), t.mobileInput !== void 0 && t.mobileFormatStr && (t.mobileInput.value = t.latestSelectedDateObj !== void 0 ? t.formatDate(t.latestSelectedDateObj, t.mobileFormatStr) : ""), t.input.value = _t(t.config.dateFormat), t.altInput !== void 0 && (t.altInput.value = _t(t.config.altFormat)), r !== !1 &&
|
|
3203
|
+
r === void 0 && (r = !0), t.mobileInput !== void 0 && t.mobileFormatStr && (t.mobileInput.value = t.latestSelectedDateObj !== void 0 ? t.formatDate(t.latestSelectedDateObj, t.mobileFormatStr) : ""), t.input.value = _t(t.config.dateFormat), t.altInput !== void 0 && (t.altInput.value = _t(t.config.altFormat)), r !== !1 && fe("onValueUpdate");
|
|
3204
3204
|
}
|
|
3205
3205
|
function nn(r) {
|
|
3206
3206
|
var i = Le(r), u = t.prevMonthNav.contains(i), v = t.nextMonthNav.contains(i);
|
|
@@ -3210,10 +3210,10 @@ function Vi(e, n) {
|
|
|
3210
3210
|
r.preventDefault();
|
|
3211
3211
|
var i = r.type === "keydown", u = Le(r), v = u;
|
|
3212
3212
|
t.amPM !== void 0 && u === t.amPM && (t.amPM.textContent = t.l10n.amPM[Ye(t.amPM.textContent === t.l10n.amPM[0])]);
|
|
3213
|
-
var C = parseFloat(v.getAttribute("min")),
|
|
3213
|
+
var C = parseFloat(v.getAttribute("min")), O = parseFloat(v.getAttribute("max")), W = parseFloat(v.getAttribute("step")), E = parseInt(v.value, 10), q = r.delta || (i ? r.which === 38 ? 1 : -1 : 0), I = E + W * q;
|
|
3214
3214
|
if (typeof v.value < "u" && v.value.length === 2) {
|
|
3215
3215
|
var Y = v === t.hourElement, oe = v === t.minuteElement;
|
|
3216
|
-
I < C ? (I =
|
|
3216
|
+
I < C ? (I = O + I + Ye(!Y) + (Ye(Y) && Ye(!t.amPM)), oe && H(void 0, -1, t.hourElement)) : I > O && (I = v === t.hourElement ? I - O - Ye(!t.amPM) : C, oe && H(void 0, 1, t.hourElement)), t.amPM && Y && (W === 1 ? I + E === 23 : Math.abs(I - E) > W) && (t.amPM.textContent = t.l10n.amPM[Ye(t.amPM.textContent === t.l10n.amPM[0])]), v.value = Pe(I);
|
|
3217
3217
|
}
|
|
3218
3218
|
}
|
|
3219
3219
|
return o(), t;
|
|
@@ -3487,8 +3487,8 @@ var Qn = {}, Yi = {
|
|
|
3487
3487
|
function(t, a, o) {
|
|
3488
3488
|
var l = this && this.__assign || function() {
|
|
3489
3489
|
return l = Object.assign || function(y) {
|
|
3490
|
-
for (var p,
|
|
3491
|
-
p = arguments[
|
|
3490
|
+
for (var p, m = 1, f = arguments.length; m < f; m++) {
|
|
3491
|
+
p = arguments[m];
|
|
3492
3492
|
for (var w in p)
|
|
3493
3493
|
Object.prototype.hasOwnProperty.call(p, w) && (y[w] = p[w]);
|
|
3494
3494
|
}
|
|
@@ -3506,31 +3506,31 @@ var Qn = {}, Yi = {
|
|
|
3506
3506
|
]);
|
|
3507
3507
|
function d(y) {
|
|
3508
3508
|
var p = l(l({}, s), y);
|
|
3509
|
-
return function(
|
|
3510
|
-
var
|
|
3511
|
-
function w(
|
|
3512
|
-
|
|
3513
|
-
var
|
|
3514
|
-
if (!(
|
|
3515
|
-
for (var P = parseInt(
|
|
3509
|
+
return function(m) {
|
|
3510
|
+
var f;
|
|
3511
|
+
function w(N) {
|
|
3512
|
+
N.stopPropagation(), N.preventDefault();
|
|
3513
|
+
var $ = N.target;
|
|
3514
|
+
if (!($.tagName.toLowerCase() !== "button" || typeof p.onClick > "u"))
|
|
3515
|
+
for (var P = parseInt($.dataset.index, 10), F = Array.isArray(p.onClick) ? p.onClick : [p.onClick], H = 0, le = F; H < le.length; H++) {
|
|
3516
3516
|
var ue = le[H];
|
|
3517
|
-
typeof ue == "function" && ue(P,
|
|
3517
|
+
typeof ue == "function" && ue(P, m);
|
|
3518
3518
|
}
|
|
3519
3519
|
}
|
|
3520
|
-
function V(
|
|
3521
|
-
var
|
|
3522
|
-
|
|
3520
|
+
function V(N) {
|
|
3521
|
+
var $ = N.target;
|
|
3522
|
+
N.key !== "Tab" || $.tagName.toLowerCase() !== "button" || (N.shiftKey && !$.previousSibling || !N.shiftKey && !$.nextSibling) && (N.preventDefault(), m.element.focus());
|
|
3523
3523
|
}
|
|
3524
|
-
function z(
|
|
3525
|
-
Object.keys(
|
|
3524
|
+
function z(N, $) {
|
|
3525
|
+
Object.keys($).filter(function(P) {
|
|
3526
3526
|
return c.has(P);
|
|
3527
3527
|
}).forEach(function(P) {
|
|
3528
|
-
var
|
|
3528
|
+
var F;
|
|
3529
3529
|
if (P === "class") {
|
|
3530
|
-
(
|
|
3530
|
+
(F = N.classList).add.apply(F, $[P].split(" "));
|
|
3531
3531
|
return;
|
|
3532
3532
|
}
|
|
3533
|
-
|
|
3533
|
+
N.setAttribute(P, $[P]);
|
|
3534
3534
|
});
|
|
3535
3535
|
}
|
|
3536
3536
|
return {
|
|
@@ -3538,21 +3538,21 @@ var Qn = {}, Yi = {
|
|
|
3538
3538
|
* Initialize plugin.
|
|
3539
3539
|
*/
|
|
3540
3540
|
onReady: function() {
|
|
3541
|
-
if (
|
|
3542
|
-
var
|
|
3543
|
-
|
|
3541
|
+
if (f = document.createElement("div"), f.classList.add("shortcut-buttons-flatpickr-wrapper", p.theme), typeof p.label < "u" && p.label.length) {
|
|
3542
|
+
var N = document.createElement("div");
|
|
3543
|
+
N.classList.add("shortcut-buttons-flatpickr-label"), N.textContent = p.label, f.appendChild(N);
|
|
3544
3544
|
}
|
|
3545
|
-
var
|
|
3546
|
-
|
|
3545
|
+
var $ = document.createElement("div");
|
|
3546
|
+
$.classList.add("shortcut-buttons-flatpickr-buttons"), (Array.isArray(p.button) ? p.button : [p.button]).forEach(function(P, F) {
|
|
3547
3547
|
var H = document.createElement("button");
|
|
3548
|
-
H.type = "button", H.classList.add("shortcut-buttons-flatpickr-button"), H.textContent = P.label, H.dataset.index = String(
|
|
3549
|
-
}),
|
|
3548
|
+
H.type = "button", H.classList.add("shortcut-buttons-flatpickr-button"), H.textContent = P.label, H.dataset.index = String(F), typeof P.attributes < "u" && z(H, P.attributes), $.appendChild(H), m.pluginElements.push(H);
|
|
3549
|
+
}), f.appendChild($), m.calendarContainer.appendChild(f), f.addEventListener("click", w), f.addEventListener("keydown", V);
|
|
3550
3550
|
},
|
|
3551
3551
|
/**
|
|
3552
3552
|
* Clean up before flatpickr is destroyed.
|
|
3553
3553
|
*/
|
|
3554
3554
|
onDestroy: function() {
|
|
3555
|
-
|
|
3555
|
+
f.removeEventListener("keydown", V), f.removeEventListener("click", w), f = void 0;
|
|
3556
3556
|
}
|
|
3557
3557
|
};
|
|
3558
3558
|
};
|
|
@@ -3594,10 +3594,10 @@ var Sn = {}, Ji = {
|
|
|
3594
3594
|
***************************************************************************** */
|
|
3595
3595
|
var a = function() {
|
|
3596
3596
|
return a = Object.assign || function(We) {
|
|
3597
|
-
for (var pn,
|
|
3598
|
-
pn = arguments[
|
|
3599
|
-
for (var
|
|
3600
|
-
Object.prototype.hasOwnProperty.call(pn,
|
|
3597
|
+
for (var pn, Nn = 1, $r = arguments.length; Nn < $r; Nn++) {
|
|
3598
|
+
pn = arguments[Nn];
|
|
3599
|
+
for (var Fn in pn)
|
|
3600
|
+
Object.prototype.hasOwnProperty.call(pn, Fn) && (We[Fn] = pn[Fn]);
|
|
3601
3601
|
}
|
|
3602
3602
|
return We;
|
|
3603
3603
|
}, a.apply(this, arguments);
|
|
@@ -3758,7 +3758,7 @@ var Sn = {}, Ji = {
|
|
|
3758
3758
|
d.l10ns.az = y, d.l10ns;
|
|
3759
3759
|
var p = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
3760
3760
|
l10ns: {}
|
|
3761
|
-
},
|
|
3761
|
+
}, m = {
|
|
3762
3762
|
weekdays: {
|
|
3763
3763
|
shorthand: ["Нд", "Пн", "Аў", "Ср", "Чц", "Пт", "Сб"],
|
|
3764
3764
|
longhand: [
|
|
@@ -3813,8 +3813,8 @@ var Sn = {}, Ji = {
|
|
|
3813
3813
|
yearAriaLabel: "Год",
|
|
3814
3814
|
time_24hr: !0
|
|
3815
3815
|
};
|
|
3816
|
-
p.l10ns.be =
|
|
3817
|
-
var
|
|
3816
|
+
p.l10ns.be = m, p.l10ns;
|
|
3817
|
+
var f = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
3818
3818
|
l10ns: {}
|
|
3819
3819
|
}, w = {
|
|
3820
3820
|
firstDayOfWeek: 1,
|
|
@@ -3862,7 +3862,7 @@ var Sn = {}, Ji = {
|
|
|
3862
3862
|
},
|
|
3863
3863
|
time_24hr: !0
|
|
3864
3864
|
};
|
|
3865
|
-
|
|
3865
|
+
f.l10ns.bs = w, f.l10ns;
|
|
3866
3866
|
var V = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
3867
3867
|
l10ns: {}
|
|
3868
3868
|
}, z = {
|
|
@@ -3912,9 +3912,9 @@ var Sn = {}, Ji = {
|
|
|
3912
3912
|
firstDayOfWeek: 1
|
|
3913
3913
|
};
|
|
3914
3914
|
V.l10ns.bg = z, V.l10ns;
|
|
3915
|
-
var
|
|
3915
|
+
var N = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
3916
3916
|
l10ns: {}
|
|
3917
|
-
},
|
|
3917
|
+
}, $ = {
|
|
3918
3918
|
weekdays: {
|
|
3919
3919
|
shorthand: ["রবি", "সোম", "মঙ্গল", "বুধ", "বৃহস্পতি", "শুক্র", "শনি"],
|
|
3920
3920
|
longhand: [
|
|
@@ -3958,10 +3958,10 @@ var Sn = {}, Ji = {
|
|
|
3958
3958
|
]
|
|
3959
3959
|
}
|
|
3960
3960
|
};
|
|
3961
|
-
|
|
3961
|
+
N.l10ns.bn = $, N.l10ns;
|
|
3962
3962
|
var P = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
3963
3963
|
l10ns: {}
|
|
3964
|
-
},
|
|
3964
|
+
}, F = {
|
|
3965
3965
|
weekdays: {
|
|
3966
3966
|
shorthand: ["Dg", "Dl", "Dt", "Dc", "Dj", "Dv", "Ds"],
|
|
3967
3967
|
longhand: [
|
|
@@ -4025,7 +4025,7 @@ var Sn = {}, Ji = {
|
|
|
4025
4025
|
rangeSeparator: " a ",
|
|
4026
4026
|
time_24hr: !0
|
|
4027
4027
|
};
|
|
4028
|
-
P.l10ns.cat = P.l10ns.ca =
|
|
4028
|
+
P.l10ns.cat = P.l10ns.ca = F, P.l10ns;
|
|
4029
4029
|
var H = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
4030
4030
|
l10ns: {}
|
|
4031
4031
|
}, le = {
|
|
@@ -4539,7 +4539,7 @@ var Sn = {}, Ji = {
|
|
|
4539
4539
|
J.l10ns.et = K, J.l10ns;
|
|
4540
4540
|
var ce = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
4541
4541
|
l10ns: {}
|
|
4542
|
-
},
|
|
4542
|
+
}, me = {
|
|
4543
4543
|
weekdays: {
|
|
4544
4544
|
shorthand: ["یک", "دو", "سه", "چهار", "پنج", "جمعه", "شنبه"],
|
|
4545
4545
|
longhand: [
|
|
@@ -4587,7 +4587,7 @@ var Sn = {}, Ji = {
|
|
|
4587
4587
|
return "";
|
|
4588
4588
|
}
|
|
4589
4589
|
};
|
|
4590
|
-
ce.l10ns.fa =
|
|
4590
|
+
ce.l10ns.fa = me, ce.l10ns;
|
|
4591
4591
|
var ve = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
4592
4592
|
l10ns: {}
|
|
4593
4593
|
}, Ie = {
|
|
@@ -4755,7 +4755,7 @@ var Sn = {}, Ji = {
|
|
|
4755
4755
|
Ee.l10ns.fr = Ce, Ee.l10ns;
|
|
4756
4756
|
var pe = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
4757
4757
|
l10ns: {}
|
|
4758
|
-
},
|
|
4758
|
+
}, Ne = {
|
|
4759
4759
|
weekdays: {
|
|
4760
4760
|
shorthand: ["Κυ", "Δε", "Τρ", "Τε", "Πέ", "Πα", "Σά"],
|
|
4761
4761
|
longhand: [
|
|
@@ -4812,7 +4812,7 @@ var Sn = {}, Ji = {
|
|
|
4812
4812
|
hourAriaLabel: "ώρα",
|
|
4813
4813
|
minuteAriaLabel: "λεπτό"
|
|
4814
4814
|
};
|
|
4815
|
-
pe.l10ns.gr =
|
|
4815
|
+
pe.l10ns.gr = Ne, pe.l10ns;
|
|
4816
4816
|
var Ze = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
4817
4817
|
l10ns: {}
|
|
4818
4818
|
}, Be = {
|
|
@@ -5444,7 +5444,7 @@ var Sn = {}, Ji = {
|
|
|
5444
5444
|
time_24hr: !0
|
|
5445
5445
|
};
|
|
5446
5446
|
Xt.l10ns.km = en, Xt.l10ns;
|
|
5447
|
-
var
|
|
5447
|
+
var fe = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
5448
5448
|
l10ns: {}
|
|
5449
5449
|
}, bt = {
|
|
5450
5450
|
weekdays: {
|
|
@@ -5500,7 +5500,7 @@ var Sn = {}, Ji = {
|
|
|
5500
5500
|
amPM: ["ТД", "ТК"],
|
|
5501
5501
|
yearAriaLabel: "Жыл"
|
|
5502
5502
|
};
|
|
5503
|
-
|
|
5503
|
+
fe.l10ns.kz = bt, fe.l10ns;
|
|
5504
5504
|
var wt = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
5505
5505
|
l10ns: {}
|
|
5506
5506
|
}, tn = {
|
|
@@ -5795,7 +5795,7 @@ var Sn = {}, Ji = {
|
|
|
5795
5795
|
time_24hr: !0
|
|
5796
5796
|
};
|
|
5797
5797
|
v.l10ns.my = C, v.l10ns;
|
|
5798
|
-
var
|
|
5798
|
+
var O = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
5799
5799
|
l10ns: {}
|
|
5800
5800
|
}, W = {
|
|
5801
5801
|
weekdays: {
|
|
@@ -5850,7 +5850,7 @@ var Sn = {}, Ji = {
|
|
|
5850
5850
|
return ne === 1 || ne === 8 || ne >= 20 ? "ste" : "de";
|
|
5851
5851
|
}
|
|
5852
5852
|
};
|
|
5853
|
-
|
|
5853
|
+
O.l10ns.nl = W, O.l10ns;
|
|
5854
5854
|
var E = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
5855
5855
|
l10ns: {}
|
|
5856
5856
|
}, q = {
|
|
@@ -5965,7 +5965,7 @@ var Sn = {}, Ji = {
|
|
|
5965
5965
|
I.l10ns.no = Y, I.l10ns;
|
|
5966
5966
|
var oe = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
5967
5967
|
l10ns: {}
|
|
5968
|
-
},
|
|
5968
|
+
}, Fe = {
|
|
5969
5969
|
weekdays: {
|
|
5970
5970
|
shorthand: ["ਐਤ", "ਸੋਮ", "ਮੰਗਲ", "ਬੁੱਧ", "ਵੀਰ", "ਸ਼ੁੱਕਰ", "ਸ਼ਨਿੱਚਰ"],
|
|
5971
5971
|
longhand: [
|
|
@@ -6010,7 +6010,7 @@ var Sn = {}, Ji = {
|
|
|
6010
6010
|
},
|
|
6011
6011
|
time_24hr: !0
|
|
6012
6012
|
};
|
|
6013
|
-
oe.l10ns.pa =
|
|
6013
|
+
oe.l10ns.pa = Fe, oe.l10ns;
|
|
6014
6014
|
var Te = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
6015
6015
|
l10ns: {}
|
|
6016
6016
|
}, tt = {
|
|
@@ -6276,7 +6276,7 @@ var Sn = {}, Ji = {
|
|
|
6276
6276
|
un.l10ns.si = dn, un.l10ns;
|
|
6277
6277
|
var cn = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
6278
6278
|
l10ns: {}
|
|
6279
|
-
},
|
|
6279
|
+
}, mn = {
|
|
6280
6280
|
weekdays: {
|
|
6281
6281
|
shorthand: ["Ned", "Pon", "Ut", "Str", "Štv", "Pia", "Sob"],
|
|
6282
6282
|
longhand: [
|
|
@@ -6326,8 +6326,8 @@ var Sn = {}, Ji = {
|
|
|
6326
6326
|
return ".";
|
|
6327
6327
|
}
|
|
6328
6328
|
};
|
|
6329
|
-
cn.l10ns.sk =
|
|
6330
|
-
var
|
|
6329
|
+
cn.l10ns.sk = mn, cn.l10ns;
|
|
6330
|
+
var fn = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
6331
6331
|
l10ns: {}
|
|
6332
6332
|
}, la = {
|
|
6333
6333
|
weekdays: {
|
|
@@ -6379,7 +6379,7 @@ var Sn = {}, Ji = {
|
|
|
6379
6379
|
return ".";
|
|
6380
6380
|
}
|
|
6381
6381
|
};
|
|
6382
|
-
|
|
6382
|
+
fn.l10ns.sl = la, fn.l10ns;
|
|
6383
6383
|
var sa = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
6384
6384
|
l10ns: {}
|
|
6385
6385
|
}, ua = {
|
|
@@ -6486,9 +6486,9 @@ var Sn = {}, Ji = {
|
|
|
6486
6486
|
time_24hr: !0
|
|
6487
6487
|
};
|
|
6488
6488
|
da.l10ns.sr = ca, da.l10ns;
|
|
6489
|
-
var
|
|
6489
|
+
var ma = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
6490
6490
|
l10ns: {}
|
|
6491
|
-
},
|
|
6491
|
+
}, fa = {
|
|
6492
6492
|
firstDayOfWeek: 1,
|
|
6493
6493
|
weekAbbreviation: "v",
|
|
6494
6494
|
weekdays: {
|
|
@@ -6539,7 +6539,7 @@ var Sn = {}, Ji = {
|
|
|
6539
6539
|
return ".";
|
|
6540
6540
|
}
|
|
6541
6541
|
};
|
|
6542
|
-
|
|
6542
|
+
ma.l10ns.sv = fa, ma.l10ns;
|
|
6543
6543
|
var pa = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
6544
6544
|
l10ns: {}
|
|
6545
6545
|
}, ha = {
|
|
@@ -6972,13 +6972,13 @@ var Sn = {}, Ji = {
|
|
|
6972
6972
|
ar: l,
|
|
6973
6973
|
at: c,
|
|
6974
6974
|
az: y,
|
|
6975
|
-
be:
|
|
6975
|
+
be: m,
|
|
6976
6976
|
bg: z,
|
|
6977
|
-
bn:
|
|
6977
|
+
bn: $,
|
|
6978
6978
|
bs: w,
|
|
6979
|
-
ca:
|
|
6979
|
+
ca: F,
|
|
6980
6980
|
ckb: le,
|
|
6981
|
-
cat:
|
|
6981
|
+
cat: F,
|
|
6982
6982
|
cs: ge,
|
|
6983
6983
|
cy: ee,
|
|
6984
6984
|
da: Ae,
|
|
@@ -6988,11 +6988,11 @@ var Sn = {}, Ji = {
|
|
|
6988
6988
|
eo: S,
|
|
6989
6989
|
es: R,
|
|
6990
6990
|
et: K,
|
|
6991
|
-
fa:
|
|
6991
|
+
fa: me,
|
|
6992
6992
|
fi: Ie,
|
|
6993
6993
|
fo: je,
|
|
6994
6994
|
fr: Ce,
|
|
6995
|
-
gr:
|
|
6995
|
+
gr: Ne,
|
|
6996
6996
|
he: Be,
|
|
6997
6997
|
hi: Jt,
|
|
6998
6998
|
hr: Ut,
|
|
@@ -7015,17 +7015,17 @@ var Sn = {}, Ji = {
|
|
|
7015
7015
|
nl: W,
|
|
7016
7016
|
nn: q,
|
|
7017
7017
|
no: Y,
|
|
7018
|
-
pa:
|
|
7018
|
+
pa: Fe,
|
|
7019
7019
|
pl: tt,
|
|
7020
7020
|
pt: rn,
|
|
7021
7021
|
ro: on,
|
|
7022
7022
|
ru: sn,
|
|
7023
7023
|
si: dn,
|
|
7024
|
-
sk:
|
|
7024
|
+
sk: mn,
|
|
7025
7025
|
sl: la,
|
|
7026
7026
|
sq: ua,
|
|
7027
7027
|
sr: ca,
|
|
7028
|
-
sv:
|
|
7028
|
+
sv: fa,
|
|
7029
7029
|
th: ha,
|
|
7030
7030
|
tr: va,
|
|
7031
7031
|
uk: ba,
|
|
@@ -7071,35 +7071,35 @@ const Gi = {
|
|
|
7071
7071
|
},
|
|
7072
7072
|
emits: ["change", "blur", "update:modelValue", "onOpen", "onClose"],
|
|
7073
7073
|
setup(e, { emit: n }) {
|
|
7074
|
-
const t = e, a = (T) => T !== null && typeof T.fp < "u", o = te(null), l = te(null), s = te(!1), c = te("sk"), d = te(""), y = te(null), { t: p } = X(),
|
|
7075
|
-
if (T === null) {
|
|
7074
|
+
const t = e, a = (T) => T !== null && typeof T.fp < "u", o = te(null), l = te(null), s = te(!1), c = te("sk"), d = te(""), y = te(null), { t: p } = X(), m = (T) => T.replace("Z", "000Z"), f = (T) => {
|
|
7075
|
+
if (T === null || x(T)) {
|
|
7076
7076
|
n("update:modelValue", null), n("change");
|
|
7077
7077
|
return;
|
|
7078
7078
|
}
|
|
7079
7079
|
if (T && T.date) {
|
|
7080
|
-
n("update:modelValue",
|
|
7080
|
+
n("update:modelValue", m(T.date + "")), n("change");
|
|
7081
7081
|
return;
|
|
7082
7082
|
}
|
|
7083
|
-
n("update:modelValue",
|
|
7083
|
+
n("update:modelValue", m(T + "")), n("change");
|
|
7084
7084
|
}, w = () => {
|
|
7085
|
-
|
|
7085
|
+
N(), s.value = !0, n("onOpen");
|
|
7086
7086
|
}, V = () => {
|
|
7087
7087
|
s.value = !1, n("onClose");
|
|
7088
7088
|
}, z = () => {
|
|
7089
7089
|
a(o.value) && (d.value = o.value.fpInput().value);
|
|
7090
|
-
},
|
|
7090
|
+
}, N = () => {
|
|
7091
7091
|
var b, S, D;
|
|
7092
7092
|
if (!a(o.value))
|
|
7093
7093
|
return;
|
|
7094
7094
|
const T = d.value.replace(/[^\s\d.:]/g, ""), g = o.value.fp.parseDate(T, P.value);
|
|
7095
|
-
if (
|
|
7095
|
+
if (x(g)) {
|
|
7096
7096
|
_e(t.defaultValue) ? (b = o.value) == null || b.fp.clear(!0) : (S = o.value) == null || S.fp.setDate(t.defaultValue, !0), Ae.value.textFieldValue.$touch(), n("blur");
|
|
7097
7097
|
return;
|
|
7098
7098
|
}
|
|
7099
7099
|
(D = o.value) == null || D.fp.setDate(g, !0), Ae.value.textFieldValue.$touch(), n("blur");
|
|
7100
|
-
},
|
|
7100
|
+
}, $ = () => {
|
|
7101
7101
|
y.value = t.defaultValue, n("update:modelValue", h(t.defaultValue));
|
|
7102
|
-
}, P = A(() => t.type === "datetime" ? "d.m.Y H:i" : "d.m.Y"),
|
|
7102
|
+
}, P = A(() => t.type === "datetime" ? "d.m.Y H:i" : "d.m.Y"), F = A(() => t.type === "datetime" ? "dd.mm.yyyy hh:mm" : "dd.mm.yyyy"), H = A(() => t.enable && t.enable.length > 0 ? t.enable : [
|
|
7103
7103
|
{
|
|
7104
7104
|
from: new Date(1901, 1),
|
|
7105
7105
|
to: new Date(2099, 12)
|
|
@@ -7113,7 +7113,7 @@ const Gi = {
|
|
|
7113
7113
|
],
|
|
7114
7114
|
onClick: (T, g) => {
|
|
7115
7115
|
const b = Vo();
|
|
7116
|
-
g.setDate(b, !0),
|
|
7116
|
+
g.setDate(b, !0), f(jo(b));
|
|
7117
7117
|
}
|
|
7118
7118
|
})
|
|
7119
7119
|
]), ge = A(() => {
|
|
@@ -7149,22 +7149,22 @@ const Gi = {
|
|
|
7149
7149
|
o.value.fp.close();
|
|
7150
7150
|
return;
|
|
7151
7151
|
}
|
|
7152
|
-
|
|
7152
|
+
N(), o.value.fp.open(), o.value.fpInput().focus();
|
|
7153
7153
|
}
|
|
7154
7154
|
}, 0);
|
|
7155
7155
|
};
|
|
7156
7156
|
jr(() => {
|
|
7157
|
-
if (_e(t.modelValue) && !_e(t.defaultValue)) {
|
|
7157
|
+
if ((_e(t.modelValue) || x(t.modelValue)) && !_e(t.defaultValue)) {
|
|
7158
7158
|
y.value = t.defaultValue;
|
|
7159
7159
|
return;
|
|
7160
7160
|
}
|
|
7161
|
-
y.value = t.modelValue;
|
|
7161
|
+
y.value = x(t.modelValue) ? null : t.modelValue;
|
|
7162
7162
|
});
|
|
7163
7163
|
const ee = qi(), G = A(() => ({
|
|
7164
7164
|
textFieldValue: {
|
|
7165
7165
|
required: ee(t.required)
|
|
7166
7166
|
}
|
|
7167
|
-
})), Ae = Kr(G, { textFieldValue: d }), Se = A(() =>
|
|
7167
|
+
})), Ae = Kr(G, { textFieldValue: d }), Se = A(() => x(t.errorMessages) ? Ae.value.textFieldValue.$errors.length ? [Ae.value.textFieldValue.$errors.map((T) => T.$message).join(" ")] : [] : t.errorMessages);
|
|
7168
7168
|
return (T, g) => (_(), j($n, {
|
|
7169
7169
|
ref_key: "textFieldRef",
|
|
7170
7170
|
ref: l,
|
|
@@ -7172,17 +7172,17 @@ const Gi = {
|
|
|
7172
7172
|
"onUpdate:modelValue": g[0] || (g[0] = (b) => d.value = b),
|
|
7173
7173
|
"error-messages": h(Se),
|
|
7174
7174
|
"persistent-placeholder": !0,
|
|
7175
|
-
placeholder: h(
|
|
7175
|
+
placeholder: h(F),
|
|
7176
7176
|
class: "a-datetime-picker",
|
|
7177
|
-
onBlur:
|
|
7178
|
-
onKeyup: Br(
|
|
7177
|
+
onBlur: N,
|
|
7178
|
+
onKeyup: Br(N, ["enter"])
|
|
7179
7179
|
}, xn({
|
|
7180
7180
|
"append-inner": k(() => [
|
|
7181
7181
|
e.clearable && e.defaultValue !== e.modelValue ? (_(), j(he, {
|
|
7182
7182
|
key: 0,
|
|
7183
7183
|
class: "a-datetime-picker__clearable",
|
|
7184
7184
|
icon: "mdi-close-circle",
|
|
7185
|
-
onClick: se(
|
|
7185
|
+
onClick: se($, ["stop"])
|
|
7186
7186
|
}, null, 8, ["onClick"])) : re("", !0),
|
|
7187
7187
|
ie("div", null, [
|
|
7188
7188
|
M(h(Ri), {
|
|
@@ -7191,7 +7191,7 @@ const Gi = {
|
|
|
7191
7191
|
config: h(ge),
|
|
7192
7192
|
disabled: e.disabled,
|
|
7193
7193
|
"model-value": y.value,
|
|
7194
|
-
"onUpdate:modelValue":
|
|
7194
|
+
"onUpdate:modelValue": f,
|
|
7195
7195
|
onOnClose: V,
|
|
7196
7196
|
onOnOpen: w,
|
|
7197
7197
|
onOnChange: z
|
|
@@ -7216,7 +7216,7 @@ const Gi = {
|
|
|
7216
7216
|
]), 1032, ["modelValue", "error-messages", "placeholder", "onKeyup"]));
|
|
7217
7217
|
}
|
|
7218
7218
|
});
|
|
7219
|
-
const Dr = /* @__PURE__ */
|
|
7219
|
+
const Dr = /* @__PURE__ */ ft(Ki, [["__scopeId", "data-v-59e27a40"]]), md = /* @__PURE__ */ B({
|
|
7220
7220
|
__name: "AFormDatetimePicker",
|
|
7221
7221
|
props: {
|
|
7222
7222
|
modelValue: null,
|
|
@@ -7233,36 +7233,36 @@ const Dr = /* @__PURE__ */ mt(Ki, [["__scopeId", "data-v-a4d64495"]]), fd = /* @
|
|
|
7233
7233
|
},
|
|
7234
7234
|
emits: ["update:modelValue", "click:append", "blur"],
|
|
7235
7235
|
setup(e, { emit: n }) {
|
|
7236
|
-
const t = e, { t: a } = X(), o = ze(at, void 0), l = ze(rt, void 0), s = (
|
|
7237
|
-
n("update:modelValue",
|
|
7236
|
+
const t = e, { t: a } = X(), o = ze(at, void 0), l = ze(rt, void 0), s = (m) => {
|
|
7237
|
+
n("update:modelValue", m);
|
|
7238
7238
|
}, c = () => {
|
|
7239
|
-
var
|
|
7240
|
-
n("blur", t.modelValue), (
|
|
7239
|
+
var m;
|
|
7240
|
+
n("blur", x(t.modelValue) ? null : t.modelValue), (m = t.v) == null || m.$touch();
|
|
7241
7241
|
}, d = A(() => {
|
|
7242
|
-
var
|
|
7243
|
-
return
|
|
7242
|
+
var m, f;
|
|
7243
|
+
return x(t.errorMessage) ? (f = (m = t.v) == null ? void 0 : m.$errors) != null && f.length ? [t.v.$errors.map((w) => w.$message).join(" ")] : [] : [t.errorMessage];
|
|
7244
7244
|
}), y = A(() => {
|
|
7245
|
-
var
|
|
7246
|
-
if (
|
|
7245
|
+
var f, w;
|
|
7246
|
+
if (!x(t.label))
|
|
7247
7247
|
return t.label;
|
|
7248
|
-
if (
|
|
7248
|
+
if (x(o) || x(l) || x((f = t.v) == null ? void 0 : f.$path))
|
|
7249
7249
|
return "";
|
|
7250
|
-
const { end:
|
|
7251
|
-
return a(o + "." + l + ".model." +
|
|
7250
|
+
const { end: m } = Ct((w = t.v) == null ? void 0 : w.$path, ".");
|
|
7251
|
+
return a(o + "." + l + ".model." + m);
|
|
7252
7252
|
}), p = A(() => {
|
|
7253
|
-
var
|
|
7254
|
-
return
|
|
7253
|
+
var m, f;
|
|
7254
|
+
return x(t.required) ? !!((m = t.v) != null && m.required && ((f = t.v) == null ? void 0 : f.required.$params.type) === "required") : t.required;
|
|
7255
7255
|
});
|
|
7256
|
-
return (
|
|
7256
|
+
return (m, f) => (_(), j(Dr, {
|
|
7257
7257
|
"model-value": e.modelValue,
|
|
7258
7258
|
"error-messages": h(d),
|
|
7259
7259
|
required: h(p),
|
|
7260
7260
|
label: h(y),
|
|
7261
7261
|
onBlur: c,
|
|
7262
|
-
"onUpdate:modelValue":
|
|
7262
|
+
"onUpdate:modelValue": f[0] || (f[0] = (w) => s(w))
|
|
7263
7263
|
}, null, 8, ["model-value", "error-messages", "required", "label"]));
|
|
7264
7264
|
}
|
|
7265
|
-
}),
|
|
7265
|
+
}), fd = /* @__PURE__ */ B({
|
|
7266
7266
|
__name: "AFilterDatetimePicker",
|
|
7267
7267
|
props: {
|
|
7268
7268
|
modelValue: null
|
|
@@ -7348,29 +7348,29 @@ const Zi = {
|
|
|
7348
7348
|
}, p = () => {
|
|
7349
7349
|
var g;
|
|
7350
7350
|
d.value = !1, (g = t.v) == null || g.$touch(), n("blur", a.value);
|
|
7351
|
-
},
|
|
7351
|
+
}, m = A(() => {
|
|
7352
7352
|
var g, b;
|
|
7353
|
-
return
|
|
7354
|
-
}),
|
|
7353
|
+
return x(t.errorMessage) ? (b = (g = t.v) == null ? void 0 : g.$errors) != null && b.length ? t.v.$errors.map((S) => S.$message) : [] : [t.errorMessage];
|
|
7354
|
+
}), f = A(() => {
|
|
7355
7355
|
var b, S;
|
|
7356
|
-
if (
|
|
7356
|
+
if (!x(t.label))
|
|
7357
7357
|
return t.label;
|
|
7358
|
-
if (
|
|
7358
|
+
if (x(s) || x(c) || x((b = t.v) == null ? void 0 : b.$path))
|
|
7359
7359
|
return "";
|
|
7360
7360
|
const { end: g } = Ct((S = t.v) == null ? void 0 : S.$path, ".");
|
|
7361
7361
|
return l(s + "." + c + ".model." + g);
|
|
7362
7362
|
}), w = A(() => {
|
|
7363
7363
|
var g, b;
|
|
7364
|
-
return
|
|
7365
|
-
}), V = A(() => t.multiple !== !1), z = (g, b) => [...new Map([...g, ...b].map((S) => [S.value, S])).values()],
|
|
7366
|
-
|
|
7367
|
-
const b =
|
|
7368
|
-
b.model = g, H.value = await t.fetchItems(P,
|
|
7364
|
+
return x(t.required) ? ((g = t.v) == null ? void 0 : g.required) && ((b = t.v) == null ? void 0 : b.required.$params.type) === "required" : t.required;
|
|
7365
|
+
}), V = A(() => t.multiple !== !1), z = (g, b) => [...new Map([...g, ...b].map((S) => [S.value, S])).values()], N = te(!1), { innerFilter: $ } = Xa(t), P = Cr(), F = te([]), H = te([]), le = te([]), ue = A(() => z(le.value, H.value)), ge = async (g) => {
|
|
7366
|
+
N.value = !0;
|
|
7367
|
+
const b = $.value[t.filterByField];
|
|
7368
|
+
b.model = g, H.value = await t.fetchItems(P, $.value), N.value = !1;
|
|
7369
7369
|
};
|
|
7370
7370
|
if (t.lazyLoader) {
|
|
7371
7371
|
const { allValues: g, loadedAll: b } = t.lazyLoader();
|
|
7372
7372
|
ct(b, (S) => {
|
|
7373
|
-
S &&
|
|
7373
|
+
S && F.value.length > 0 && (le.value = g.value.filter((D) => F.value.includes(D.value)));
|
|
7374
7374
|
});
|
|
7375
7375
|
}
|
|
7376
7376
|
const we = (g) => {
|
|
@@ -7385,16 +7385,16 @@ const Zi = {
|
|
|
7385
7385
|
if (!t.lazyLoader)
|
|
7386
7386
|
return b(!1);
|
|
7387
7387
|
const { hasId: S, allValues: D, loadedAll: R } = t.lazyLoader();
|
|
7388
|
-
return g.every((K) => S(K)) ? R.value ? (le.value = jt(D.value.filter((K) => g.includes(K.value))), b(!0)) : (g.forEach((K) =>
|
|
7388
|
+
return g.every((K) => S(K)) ? R.value ? (le.value = jt(D.value.filter((K) => g.includes(K.value))), b(!0)) : (g.forEach((K) => F.value.push(K)), b(!0)) : b(!1);
|
|
7389
7389
|
}), Ae = async (g) => {
|
|
7390
|
-
!t.disableInitFetch && (ur(g) || _e(g)) && (
|
|
7390
|
+
!t.disableInitFetch && (ur(g) || _e(g)) && (N.value = !0, H.value = await t.fetchItems(P, $.value), N.value = !1);
|
|
7391
7391
|
};
|
|
7392
7392
|
ct(
|
|
7393
7393
|
a,
|
|
7394
7394
|
async (g, b) => {
|
|
7395
7395
|
if (g === b)
|
|
7396
7396
|
return;
|
|
7397
|
-
if (_e(g) ||
|
|
7397
|
+
if (_e(g) || x(g) || Xe(g) && g.length === 0) {
|
|
7398
7398
|
le.value = [], await Ae(g);
|
|
7399
7399
|
return;
|
|
7400
7400
|
}
|
|
@@ -7424,8 +7424,8 @@ const Zi = {
|
|
|
7424
7424
|
"no-filter": "",
|
|
7425
7425
|
multiple: h(V),
|
|
7426
7426
|
clearable: e.clearable,
|
|
7427
|
-
"error-messages": h(
|
|
7428
|
-
loading:
|
|
7427
|
+
"error-messages": h(m),
|
|
7428
|
+
loading: N.value,
|
|
7429
7429
|
dirty: "",
|
|
7430
7430
|
onBlur: p,
|
|
7431
7431
|
onFocus: y,
|
|
@@ -7435,7 +7435,7 @@ const Zi = {
|
|
|
7435
7435
|
e.hideLabel ? re("", !0) : (_(), U("span", {
|
|
7436
7436
|
key: h(w) + ""
|
|
7437
7437
|
}, [
|
|
7438
|
-
Z(L(h(
|
|
7438
|
+
Z(L(h(f)), 1),
|
|
7439
7439
|
h(w) ? (_(), U("span", Zi)) : re("", !0)
|
|
7440
7440
|
]))
|
|
7441
7441
|
]),
|
|
@@ -7481,34 +7481,34 @@ const Zi = {
|
|
|
7481
7481
|
get() {
|
|
7482
7482
|
return t.modelValue;
|
|
7483
7483
|
},
|
|
7484
|
-
set(
|
|
7485
|
-
n("update:modelValue", jt(
|
|
7484
|
+
set(f) {
|
|
7485
|
+
n("update:modelValue", jt(f));
|
|
7486
7486
|
}
|
|
7487
7487
|
}), o = ze(at, void 0), l = ze(rt, void 0), { t: s } = X(), c = () => {
|
|
7488
|
-
var
|
|
7489
|
-
n("blur", t.modelValue), (
|
|
7488
|
+
var f;
|
|
7489
|
+
n("blur", t.modelValue), (f = t.v) == null || f.$touch();
|
|
7490
7490
|
}, d = A(() => {
|
|
7491
|
-
var
|
|
7492
|
-
return
|
|
7491
|
+
var f, w;
|
|
7492
|
+
return x(t.errorMessage) ? (w = (f = t.v) == null ? void 0 : f.$errors) != null && w.length ? t.v.$errors.map((V) => V.$message) : [] : [t.errorMessage];
|
|
7493
7493
|
}), y = A(() => {
|
|
7494
7494
|
var w, V;
|
|
7495
|
-
if (
|
|
7495
|
+
if (!x(t.label))
|
|
7496
7496
|
return t.label;
|
|
7497
|
-
if (
|
|
7497
|
+
if (x(o) || x(l) || x((w = t.v) == null ? void 0 : w.$path))
|
|
7498
7498
|
return "";
|
|
7499
|
-
const { end:
|
|
7500
|
-
return s(o + "." + l + ".model." +
|
|
7499
|
+
const { end: f } = Ct((V = t.v) == null ? void 0 : V.$path, ".");
|
|
7500
|
+
return s(o + "." + l + ".model." + f);
|
|
7501
7501
|
}), p = A(() => {
|
|
7502
|
-
var
|
|
7503
|
-
return
|
|
7504
|
-
}),
|
|
7505
|
-
return (
|
|
7502
|
+
var f, w;
|
|
7503
|
+
return x(t.required) ? !!((f = t.v) != null && f.required && ((w = t.v) == null ? void 0 : w.required.$params.type) === "required") : t.required;
|
|
7504
|
+
}), m = A(() => t.multiple !== !1);
|
|
7505
|
+
return (f, w) => (_(), j(In, {
|
|
7506
7506
|
modelValue: h(a),
|
|
7507
7507
|
"onUpdate:modelValue": w[0] || (w[0] = (V) => Ue(a) ? a.value = V : null),
|
|
7508
7508
|
items: e.items,
|
|
7509
7509
|
"item-title": "title",
|
|
7510
7510
|
"item-value": "value",
|
|
7511
|
-
multiple: h(
|
|
7511
|
+
multiple: h(m),
|
|
7512
7512
|
clearable: e.clearable,
|
|
7513
7513
|
"error-messages": h(d),
|
|
7514
7514
|
"data-cy": e.dataCy,
|
|
@@ -7566,59 +7566,59 @@ const Zi = {
|
|
|
7566
7566
|
get() {
|
|
7567
7567
|
return t.modelValue.model;
|
|
7568
7568
|
},
|
|
7569
|
-
set(
|
|
7570
|
-
n("update:modelValue", { ...t.modelValue, model:
|
|
7569
|
+
set($) {
|
|
7570
|
+
n("update:modelValue", { ...t.modelValue, model: $ });
|
|
7571
7571
|
}
|
|
7572
|
-
}), o = te(), { innerFilter: l } = Xa(t), s = (
|
|
7572
|
+
}), o = te(), { innerFilter: l } = Xa(t), s = ($) => {
|
|
7573
7573
|
const P = /* @__PURE__ */ new Map();
|
|
7574
|
-
for (let
|
|
7575
|
-
const H =
|
|
7574
|
+
for (let F = 0; F < $.length; ++F) {
|
|
7575
|
+
const H = $[F];
|
|
7576
7576
|
H != null && !P.has(H.value) && P.set(H.value, H);
|
|
7577
7577
|
}
|
|
7578
7578
|
return Array.from(P.values());
|
|
7579
|
-
}, c = Cr(), d = te([]), y = te([]), p = A(() => s(y.value.concat(d.value))),
|
|
7580
|
-
if (
|
|
7581
|
-
|
|
7579
|
+
}, c = Cr(), d = te([]), y = te([]), p = A(() => s(y.value.concat(d.value))), m = te(!1), f = async ($) => {
|
|
7580
|
+
if ($.length > 0) {
|
|
7581
|
+
m.value = !0;
|
|
7582
7582
|
const P = l.value[t.filterByField];
|
|
7583
|
-
P.model =
|
|
7583
|
+
P.model = $, d.value = await t.fetchItems(c, l.value), m.value = !1;
|
|
7584
7584
|
}
|
|
7585
|
-
}, w = (
|
|
7585
|
+
}, w = ($) => {
|
|
7586
7586
|
const P = y.value.filter(
|
|
7587
|
-
(H) =>
|
|
7588
|
-
),
|
|
7589
|
-
return s([].concat(P,
|
|
7590
|
-
}, V = async (
|
|
7591
|
-
let P = 1,
|
|
7592
|
-
return Xe(
|
|
7593
|
-
}, { t: z } = X(),
|
|
7587
|
+
(H) => $.includes(H.value)
|
|
7588
|
+
), F = d.value.filter((H) => $.includes(H.value));
|
|
7589
|
+
return s([].concat(P, F));
|
|
7590
|
+
}, V = async ($) => {
|
|
7591
|
+
let P = 1, F = [];
|
|
7592
|
+
return Xe($) ? (P = $.length, F = w($)) : F = w([$]), y.value = F, F.length === P;
|
|
7593
|
+
}, { t: z } = X(), N = A(() => t.modelValue.titleT ? z(t.modelValue.titleT) : void 0);
|
|
7594
7594
|
return ct(
|
|
7595
7595
|
a,
|
|
7596
|
-
async (
|
|
7597
|
-
if (_e(
|
|
7596
|
+
async ($) => {
|
|
7597
|
+
if (_e($) || Xe($) && $.length === 0) {
|
|
7598
7598
|
y.value = [];
|
|
7599
7599
|
return;
|
|
7600
7600
|
}
|
|
7601
|
-
await V(
|
|
7602
|
-
Xe(
|
|
7601
|
+
await V($) || (y.value = await t.fetchItemsByIds(
|
|
7602
|
+
Xe($) ? $ : [$]
|
|
7603
7603
|
));
|
|
7604
7604
|
},
|
|
7605
7605
|
{ immediate: !0 }
|
|
7606
7606
|
), nr(
|
|
7607
7607
|
o,
|
|
7608
|
-
(
|
|
7609
|
-
|
|
7608
|
+
($) => {
|
|
7609
|
+
f($);
|
|
7610
7610
|
},
|
|
7611
7611
|
{ debounce: 300, maxWait: 1e3 }
|
|
7612
|
-
), (
|
|
7612
|
+
), ($, P) => (_(), j(In, {
|
|
7613
7613
|
modelValue: h(a),
|
|
7614
|
-
"onUpdate:modelValue": P[0] || (P[0] = (
|
|
7614
|
+
"onUpdate:modelValue": P[0] || (P[0] = (F) => Ue(a) ? a.value = F : null),
|
|
7615
7615
|
search: o.value,
|
|
7616
|
-
"onUpdate:search": P[1] || (P[1] = (
|
|
7616
|
+
"onUpdate:search": P[1] || (P[1] = (F) => o.value = F),
|
|
7617
7617
|
items: h(p),
|
|
7618
7618
|
"item-title": "title",
|
|
7619
7619
|
"item-value": "value",
|
|
7620
7620
|
"no-filter": "",
|
|
7621
|
-
label: h(
|
|
7621
|
+
label: h(N),
|
|
7622
7622
|
multiple: e.modelValue.multiple,
|
|
7623
7623
|
clearable: !e.modelValue.mandatory
|
|
7624
7624
|
}, null, 8, ["modelValue", "search", "items", "label", "multiple", "clearable"]));
|
|
@@ -7677,7 +7677,7 @@ const Zi = {
|
|
|
7677
7677
|
]));
|
|
7678
7678
|
}
|
|
7679
7679
|
});
|
|
7680
|
-
const bd = /* @__PURE__ */
|
|
7680
|
+
const bd = /* @__PURE__ */ ft(tl, [["__scopeId", "data-v-7001c25d"]]);
|
|
7681
7681
|
var nl = /* @__PURE__ */ ((e) => (e.Waiting = "waiting", e.Processing = "processing", e.AwaitingBatchProcess = "awaiting_batch_process", e.Done = "done", e.Error = "error", e.Default = "waiting", e))(nl || {});
|
|
7682
7682
|
function al() {
|
|
7683
7683
|
const { t: e } = X(), n = te([
|
|
@@ -7802,40 +7802,40 @@ const _d = /* @__PURE__ */ B({
|
|
|
7802
7802
|
}), qe = 3, qa = `
|
|
7803
7803
|
`;
|
|
7804
7804
|
function ia() {
|
|
7805
|
-
const e = (
|
|
7805
|
+
const e = (f, w = qe) => {
|
|
7806
7806
|
Ge({
|
|
7807
7807
|
group: "alerts",
|
|
7808
|
-
text:
|
|
7808
|
+
text: f,
|
|
7809
7809
|
duration: w * 1e3,
|
|
7810
7810
|
type: "success"
|
|
7811
7811
|
});
|
|
7812
|
-
}, n = (
|
|
7812
|
+
}, n = (f, w = qe) => {
|
|
7813
7813
|
const { t: V } = Q.global;
|
|
7814
|
-
e(V(
|
|
7815
|
-
}, t = (
|
|
7814
|
+
e(V(f), w);
|
|
7815
|
+
}, t = (f, w = qe) => {
|
|
7816
7816
|
Ge({
|
|
7817
7817
|
group: "alerts",
|
|
7818
|
-
text:
|
|
7818
|
+
text: f,
|
|
7819
7819
|
duration: w * 1e3,
|
|
7820
7820
|
type: "error"
|
|
7821
7821
|
});
|
|
7822
|
-
}, a = (
|
|
7822
|
+
}, a = (f, w = qe) => {
|
|
7823
7823
|
const { t: V } = Q.global;
|
|
7824
|
-
t(V(
|
|
7825
|
-
}, o = (
|
|
7824
|
+
t(V(f), w);
|
|
7825
|
+
}, o = (f, w = qe) => {
|
|
7826
7826
|
Ge({
|
|
7827
7827
|
group: "alerts",
|
|
7828
|
-
text:
|
|
7828
|
+
text: f,
|
|
7829
7829
|
duration: w * 1e3,
|
|
7830
7830
|
type: "info"
|
|
7831
7831
|
});
|
|
7832
|
-
}, l = (
|
|
7832
|
+
}, l = (f, w = qe) => {
|
|
7833
7833
|
const { t: V } = Q.global;
|
|
7834
|
-
o(V(
|
|
7835
|
-
}, s = (
|
|
7834
|
+
o(V(f), w);
|
|
7835
|
+
}, s = (f, w = qe) => {
|
|
7836
7836
|
Ge({
|
|
7837
7837
|
group: "alerts",
|
|
7838
|
-
text:
|
|
7838
|
+
text: f,
|
|
7839
7839
|
duration: w * 1e3,
|
|
7840
7840
|
type: "warning"
|
|
7841
7841
|
});
|
|
@@ -7848,49 +7848,49 @@ function ia() {
|
|
|
7848
7848
|
showInfo: o,
|
|
7849
7849
|
showInfoT: l,
|
|
7850
7850
|
showWarning: s,
|
|
7851
|
-
showWarningT: (
|
|
7851
|
+
showWarningT: (f, w = qe) => {
|
|
7852
7852
|
const { t: V } = Q.global;
|
|
7853
|
-
s(V(
|
|
7853
|
+
s(V(f), w);
|
|
7854
7854
|
},
|
|
7855
|
-
showValidationError: (
|
|
7855
|
+
showValidationError: (f = qe) => {
|
|
7856
7856
|
const { t: w } = Q.global;
|
|
7857
7857
|
Ge({
|
|
7858
7858
|
group: "alerts",
|
|
7859
7859
|
text: w("common.alert.fixValidationErrors"),
|
|
7860
|
-
duration:
|
|
7860
|
+
duration: f * 1e3,
|
|
7861
7861
|
type: "error"
|
|
7862
7862
|
});
|
|
7863
7863
|
},
|
|
7864
|
-
showRecordWas: (
|
|
7864
|
+
showRecordWas: (f, w = qe) => {
|
|
7865
7865
|
const { t: V } = Q.global;
|
|
7866
7866
|
Ge({
|
|
7867
7867
|
group: "alerts",
|
|
7868
|
-
text: V("common.alert.recordWas." +
|
|
7868
|
+
text: V("common.alert.recordWas." + f),
|
|
7869
7869
|
duration: w * 1e3,
|
|
7870
7870
|
type: "success"
|
|
7871
7871
|
});
|
|
7872
7872
|
},
|
|
7873
|
-
showApiError: (
|
|
7873
|
+
showApiError: (f, w = -1, V = !1) => {
|
|
7874
7874
|
const { t: z } = Q.global;
|
|
7875
|
-
let
|
|
7876
|
-
for (let
|
|
7877
|
-
|
|
7878
|
-
for (let P = 0; P <
|
|
7879
|
-
|
|
7875
|
+
let N = z("common.alert.fixApiValidationErrors") + qa;
|
|
7876
|
+
for (let $ = 0; $ < f.length; $++) {
|
|
7877
|
+
N += V ? f[$].field + ": " : z(f[$].field) + ": ";
|
|
7878
|
+
for (let P = 0; P < f[$].errors.length; P++)
|
|
7879
|
+
N += z("validations.api." + f[$].errors[P]) + qa;
|
|
7880
7880
|
}
|
|
7881
7881
|
Ge({
|
|
7882
7882
|
group: "alerts",
|
|
7883
|
-
text:
|
|
7883
|
+
text: N,
|
|
7884
7884
|
duration: w * 1e3,
|
|
7885
7885
|
type: "error"
|
|
7886
7886
|
});
|
|
7887
7887
|
},
|
|
7888
|
-
showUnknownError: (
|
|
7888
|
+
showUnknownError: (f = -1) => {
|
|
7889
7889
|
const { t: w } = Q.global;
|
|
7890
7890
|
Ge({
|
|
7891
7891
|
group: "alerts",
|
|
7892
7892
|
text: w("common.alert.unknownError"),
|
|
7893
|
-
duration:
|
|
7893
|
+
duration: f * 1e3,
|
|
7894
7894
|
type: "error"
|
|
7895
7895
|
});
|
|
7896
7896
|
}
|
|
@@ -7977,7 +7977,7 @@ const ll = {
|
|
|
7977
7977
|
const dl = { class: "app-page-title-wrapper" }, cl = {
|
|
7978
7978
|
key: 0,
|
|
7979
7979
|
class: "app-page-title-icon"
|
|
7980
|
-
},
|
|
7980
|
+
}, ml = ["data-cy"], fl = { class: "text-subtitle-1 font-weight-bold pl-2" }, kd = /* @__PURE__ */ B({
|
|
7981
7981
|
__name: "APageTitle",
|
|
7982
7982
|
props: {
|
|
7983
7983
|
heading: { default: "" },
|
|
@@ -7997,8 +7997,8 @@ const dl = { class: "app-page-title-wrapper" }, cl = {
|
|
|
7997
7997
|
class: "app-page-title-texts",
|
|
7998
7998
|
"data-cy": e.dataCy
|
|
7999
7999
|
}, [
|
|
8000
|
-
ie("h1",
|
|
8001
|
-
], 8,
|
|
8000
|
+
ie("h1", fl, L(e.heading), 1)
|
|
8001
|
+
], 8, ml)
|
|
8002
8002
|
]));
|
|
8003
8003
|
}
|
|
8004
8004
|
}), Dd = /* @__PURE__ */ B({
|
|
@@ -8129,7 +8129,7 @@ const dl = { class: "app-page-title-wrapper" }, cl = {
|
|
|
8129
8129
|
}, { t: y } = X();
|
|
8130
8130
|
return n({
|
|
8131
8131
|
closeDialog: c
|
|
8132
|
-
}), (p,
|
|
8132
|
+
}), (p, m) => (_(), U(Je, null, [
|
|
8133
8133
|
M(de, {
|
|
8134
8134
|
class: De(e.buttonClass),
|
|
8135
8135
|
"data-cy": e.dataCy,
|
|
@@ -8159,7 +8159,7 @@ const dl = { class: "app-page-title-wrapper" }, cl = {
|
|
|
8159
8159
|
}, 8, ["class", "data-cy", "variant", "disabled", "color", "loading", "width", "height", "onClick"]),
|
|
8160
8160
|
M(so, {
|
|
8161
8161
|
modelValue: o.value,
|
|
8162
|
-
"onUpdate:modelValue":
|
|
8162
|
+
"onUpdate:modelValue": m[0] || (m[0] = (f) => o.value = f),
|
|
8163
8163
|
persistent: "",
|
|
8164
8164
|
width: 500,
|
|
8165
8165
|
"no-click-animation": ""
|
|
@@ -8245,7 +8245,7 @@ const dl = { class: "app-page-title-wrapper" }, cl = {
|
|
|
8245
8245
|
},
|
|
8246
8246
|
emits: ["editRecord"],
|
|
8247
8247
|
setup(e, { emit: n }) {
|
|
8248
|
-
const t = e, { t: a } = X(), o =
|
|
8248
|
+
const t = e, { t: a } = X(), o = mo(), l = (s) => {
|
|
8249
8249
|
et(s), n("editRecord"), o.push({ name: t.routeName, params: { id: t.recordId } });
|
|
8250
8250
|
};
|
|
8251
8251
|
return (s, c) => (_(), j(de, {
|
|
@@ -8485,13 +8485,13 @@ const dl = { class: "app-page-title-wrapper" }, cl = {
|
|
|
8485
8485
|
}, 8, ["class", "data-cy", "target", "to"]));
|
|
8486
8486
|
}
|
|
8487
8487
|
});
|
|
8488
|
-
var
|
|
8488
|
+
var Ft = /* @__PURE__ */ ((e) => (e.Light = "light", e.Dark = "dark", e.Auto = "auto", e))(Ft || {});
|
|
8489
8489
|
const Xn = rr(
|
|
8490
8490
|
"theme",
|
|
8491
8491
|
"light"
|
|
8492
8492
|
/* Light */
|
|
8493
8493
|
), Sr = "(prefers-color-scheme: dark)", Tn = te(
|
|
8494
|
-
Object.values(
|
|
8494
|
+
Object.values(Ft).some((e) => e === Xn.value) ? Xn.value : "light"
|
|
8495
8495
|
/* Light */
|
|
8496
8496
|
), Lt = te(
|
|
8497
8497
|
"light"
|
|
@@ -8574,21 +8574,21 @@ const yl = { key: 0 }, bl = { key: 1 }, wl = { key: 2 }, Id = /* @__PURE__ */ B(
|
|
|
8574
8574
|
"data-cy": "settings-theme"
|
|
8575
8575
|
}), {
|
|
8576
8576
|
default: k(() => [
|
|
8577
|
-
h(o) === h(
|
|
8577
|
+
h(o) === h(Ft).Auto ? (_(), U("div", yl, [
|
|
8578
8578
|
M(he, {
|
|
8579
8579
|
class: "mr-1",
|
|
8580
8580
|
icon: "mdi-brightness-auto",
|
|
8581
8581
|
size: 32
|
|
8582
8582
|
}),
|
|
8583
8583
|
Z(L(h(l)("common.system.theme.auto")), 1)
|
|
8584
|
-
])) : h(o) === h(
|
|
8584
|
+
])) : h(o) === h(Ft).Light ? (_(), U("div", bl, [
|
|
8585
8585
|
M(he, {
|
|
8586
8586
|
class: "mr-1",
|
|
8587
8587
|
icon: "mdi-brightness-7",
|
|
8588
8588
|
size: 32
|
|
8589
8589
|
}),
|
|
8590
8590
|
Z(L(h(l)("common.system.theme.light")), 1)
|
|
8591
|
-
])) : h(o) === h(
|
|
8591
|
+
])) : h(o) === h(Ft).Dark ? (_(), U("div", wl, [
|
|
8592
8592
|
M(he, {
|
|
8593
8593
|
class: "mr-1",
|
|
8594
8594
|
icon: "mdi-brightness-4",
|
|
@@ -8707,7 +8707,7 @@ const kl = {}, Dl = {
|
|
|
8707
8707
|
function Al(e, n) {
|
|
8708
8708
|
return _(), U("svg", Dl, Ml);
|
|
8709
8709
|
}
|
|
8710
|
-
const Sl = /* @__PURE__ */
|
|
8710
|
+
const Sl = /* @__PURE__ */ ft(kl, [["render", Al]]), Tl = {}, xl = {
|
|
8711
8711
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8712
8712
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
8713
8713
|
viewBox: "0 0 7410 3900"
|
|
@@ -8717,20 +8717,20 @@ const Sl = /* @__PURE__ */ mt(kl, [["render", Al]]), Tl = {}, xl = {
|
|
|
8717
8717
|
function Pl(e, n) {
|
|
8718
8718
|
return _(), U("svg", xl, $l);
|
|
8719
8719
|
}
|
|
8720
|
-
const Il = /* @__PURE__ */
|
|
8720
|
+
const Il = /* @__PURE__ */ ft(Tl, [["render", Pl]]), El = {}, Nl = {
|
|
8721
8721
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8722
8722
|
viewBox: "0 0 900 600"
|
|
8723
|
-
},
|
|
8723
|
+
}, Fl = /* @__PURE__ */ ie("rect", {
|
|
8724
8724
|
width: "900",
|
|
8725
8725
|
height: "600",
|
|
8726
8726
|
fill: "#cccccc"
|
|
8727
8727
|
}, null, -1), Ll = [
|
|
8728
|
-
|
|
8728
|
+
Fl
|
|
8729
8729
|
];
|
|
8730
8730
|
function Vl(e, n) {
|
|
8731
|
-
return _(), U("svg",
|
|
8731
|
+
return _(), U("svg", Nl, Ll);
|
|
8732
8732
|
}
|
|
8733
|
-
const jl = /* @__PURE__ */
|
|
8733
|
+
const jl = /* @__PURE__ */ ft(El, [["render", Vl]]), Bl = { class: "flag" }, Ga = /* @__PURE__ */ B({
|
|
8734
8734
|
__name: "FlagCountry",
|
|
8735
8735
|
props: {
|
|
8736
8736
|
code: { default: "xx" }
|
|
@@ -8757,20 +8757,20 @@ const jl = /* @__PURE__ */ mt(El, [["render", Vl]]), Bl = { class: "flag" }, Ga
|
|
|
8757
8757
|
const t = ze(En), a = ze(yr), o = ze(br), { setLanguage: l } = _l(a, o), { currentLanguageCode: s } = zl(), c = (p) => {
|
|
8758
8758
|
l(p) && n("afterChange", p);
|
|
8759
8759
|
}, d = A(() => {
|
|
8760
|
-
const p = kn.find((
|
|
8761
|
-
return
|
|
8760
|
+
const p = kn.find((m) => m.code === s.value);
|
|
8761
|
+
return x(p) ? kn[0] : p;
|
|
8762
8762
|
}), y = A(() => kn.filter(
|
|
8763
8763
|
(p) => {
|
|
8764
|
-
var
|
|
8765
|
-
return (a.includes(p.code) || p.code === "xx") && (!p.adminOnly || ((
|
|
8764
|
+
var m;
|
|
8765
|
+
return (a.includes(p.code) || p.code === "xx") && (!p.adminOnly || ((m = t.value) == null ? void 0 : m.roles.includes(wr)));
|
|
8766
8766
|
}
|
|
8767
8767
|
));
|
|
8768
|
-
return (p,
|
|
8769
|
-
activator: k(({ props:
|
|
8768
|
+
return (p, m) => (_(), j(ir, null, {
|
|
8769
|
+
activator: k(({ props: f }) => [
|
|
8770
8770
|
M(de, ta({
|
|
8771
8771
|
class: "pl-1",
|
|
8772
8772
|
rounded: "pill"
|
|
8773
|
-
},
|
|
8773
|
+
}, f, {
|
|
8774
8774
|
variant: "text",
|
|
8775
8775
|
"data-cy": "settings-language"
|
|
8776
8776
|
}), {
|
|
@@ -8799,12 +8799,12 @@ const jl = /* @__PURE__ */ mt(El, [["render", Vl]]), Bl = { class: "flag" }, Ga
|
|
|
8799
8799
|
default: k(() => [
|
|
8800
8800
|
M(or, { dense: "" }, {
|
|
8801
8801
|
default: k(() => [
|
|
8802
|
-
(_(!0), U(Je, null, dt(h(y), (
|
|
8803
|
-
key:
|
|
8804
|
-
onClick: se((w) => c(
|
|
8802
|
+
(_(!0), U(Je, null, dt(h(y), (f) => (_(), j(_n, {
|
|
8803
|
+
key: f.code,
|
|
8804
|
+
onClick: se((w) => c(f.code), ["stop"])
|
|
8805
8805
|
}, {
|
|
8806
8806
|
default: k(() => [
|
|
8807
|
-
M(
|
|
8807
|
+
M(fo, null, {
|
|
8808
8808
|
default: k(() => [
|
|
8809
8809
|
M(Ia, {
|
|
8810
8810
|
class: "mr-1",
|
|
@@ -8812,12 +8812,12 @@ const jl = /* @__PURE__ */ mt(El, [["render", Vl]]), Bl = { class: "flag" }, Ga
|
|
|
8812
8812
|
}, {
|
|
8813
8813
|
default: k(() => [
|
|
8814
8814
|
M(Ga, {
|
|
8815
|
-
code:
|
|
8815
|
+
code: f.code
|
|
8816
8816
|
}, null, 8, ["code"])
|
|
8817
8817
|
]),
|
|
8818
8818
|
_: 2
|
|
8819
8819
|
}, 1024),
|
|
8820
|
-
Z(" " + L(
|
|
8820
|
+
Z(" " + L(f.title), 1)
|
|
8821
8821
|
]),
|
|
8822
8822
|
_: 2
|
|
8823
8823
|
}, 1024)
|
|
@@ -8835,7 +8835,7 @@ const jl = /* @__PURE__ */ mt(El, [["render", Vl]]), Bl = { class: "flag" }, Ga
|
|
|
8835
8835
|
}));
|
|
8836
8836
|
}
|
|
8837
8837
|
});
|
|
8838
|
-
const Ed = /* @__PURE__ */
|
|
8838
|
+
const Ed = /* @__PURE__ */ ft(Rl, [["__scopeId", "data-v-15db4aa2"]]), Yl = ["onClick"], Hl = /* @__PURE__ */ B({
|
|
8839
8839
|
__name: "ASystemBarNewVersion",
|
|
8840
8840
|
setup(e) {
|
|
8841
8841
|
const { t: n } = X(), t = () => {
|
|
@@ -8849,7 +8849,7 @@ const Ed = /* @__PURE__ */ mt(Rl, [["__scopeId", "data-v-15db4aa2"]]), Yl = ["on
|
|
|
8849
8849
|
}, L(h(n)("common.system.newVersionReload")), 9, Yl)
|
|
8850
8850
|
]), $a(1), o[0]);
|
|
8851
8851
|
}
|
|
8852
|
-
}), Jl = { class: "text-center w-100 text-caption pb-1" },
|
|
8852
|
+
}), Jl = { class: "text-center w-100 text-caption pb-1" }, Nd = /* @__PURE__ */ B({
|
|
8853
8853
|
__name: "ASystemBar",
|
|
8854
8854
|
props: {
|
|
8855
8855
|
currentVersion: null,
|
|
@@ -8869,7 +8869,7 @@ const Ed = /* @__PURE__ */ mt(Rl, [["__scopeId", "data-v-15db4aa2"]]), Yl = ["on
|
|
|
8869
8869
|
}).then((s) => {
|
|
8870
8870
|
if (Object.keys(s).length < 1)
|
|
8871
8871
|
throw new Error("Unable to load env config. Incorrect response body.");
|
|
8872
|
-
t.value =
|
|
8872
|
+
t.value = !x(s.appVersion) && s.appVersion !== n.currentVersion;
|
|
8873
8873
|
}).catch((s) => {
|
|
8874
8874
|
console.error(s);
|
|
8875
8875
|
});
|
|
@@ -8893,7 +8893,7 @@ const Ed = /* @__PURE__ */ mt(Rl, [["__scopeId", "data-v-15db4aa2"]]), Yl = ["on
|
|
|
8893
8893
|
_: 1
|
|
8894
8894
|
})) : re("", !0);
|
|
8895
8895
|
}
|
|
8896
|
-
}),
|
|
8896
|
+
}), Fd = (e) => e ? 1 : 0;
|
|
8897
8897
|
function Ld(e = "", n = "user") {
|
|
8898
8898
|
let t = e, a = n;
|
|
8899
8899
|
return {
|
|
@@ -9002,12 +9002,12 @@ function gt() {
|
|
|
9002
9002
|
}
|
|
9003
9003
|
const vt = (e, n, t = "") => sr(n) ? e : Ao(t === "" ? e : t, n), { isValidationError: es, handleValidationError: ts } = gt(), Jd = (e, n, t = "", a = {}, o = null, l, s, c = {}) => new Promise((d, y) => {
|
|
9004
9004
|
const p = { method: n };
|
|
9005
|
-
t !== "" && (p.url = vt(t, a)), _e(o) || (p.data = JSON.stringify(o)), e().request({ ...c, ...p }).then((
|
|
9006
|
-
if (!pt(
|
|
9005
|
+
t !== "" && (p.url = vt(t, a)), _e(o) || (p.data = JSON.stringify(o)), e().request({ ...c, ...p }).then((m) => {
|
|
9006
|
+
if (!pt(m.status))
|
|
9007
9007
|
throw new ht();
|
|
9008
|
-
|
|
9009
|
-
}).catch((
|
|
9010
|
-
es(
|
|
9008
|
+
m.data.data ? d(m.data.data) : m.data && d(m.data);
|
|
9009
|
+
}).catch((m) => {
|
|
9010
|
+
es(m) && (ts(m, l, s), y(new ot())), y(m);
|
|
9011
9011
|
});
|
|
9012
9012
|
}), { isValidationError: ns, handleValidationError: as } = gt(), rs = (e, n = {}, t, a = {}, o, l, s = {}) => new Promise((c, d) => {
|
|
9013
9013
|
e().post(vt(t, a), JSON.stringify(n), s).then((y) => {
|
|
@@ -9029,17 +9029,17 @@ const vt = (e, n, t = "") => sr(n) ? e : Ao(t === "" ? e : t, n), { isValidation
|
|
|
9029
9029
|
function xr() {
|
|
9030
9030
|
const e = te([]), n = (p) => {
|
|
9031
9031
|
c("limit", p);
|
|
9032
|
-
}, t = (p,
|
|
9033
|
-
c("offset", p *
|
|
9034
|
-
}, a = (p,
|
|
9035
|
-
_e(p) || c("order[" + p + "]",
|
|
9036
|
-
}, o = (p) =>
|
|
9037
|
-
nt(
|
|
9032
|
+
}, t = (p, m) => {
|
|
9033
|
+
c("offset", p * m - m);
|
|
9034
|
+
}, a = (p, m) => {
|
|
9035
|
+
_e(p) || c("order[" + p + "]", m ? "desc" : "asc");
|
|
9036
|
+
}, o = (p) => Fa(p) ? p ? "1" : "0" : p, l = (p, m, f) => {
|
|
9037
|
+
nt(f) && f.length === 0 || e.value.push("filter_" + p + "[" + m + "]=" + o(f));
|
|
9038
9038
|
}, s = (p) => {
|
|
9039
|
-
const
|
|
9040
|
-
return _e(
|
|
9041
|
-
}, c = (p,
|
|
9042
|
-
e.value.push(p + "=" +
|
|
9039
|
+
const m = p.model;
|
|
9040
|
+
return _e(m) ? p.mandatory ? (p.model = p.default, p.default) : null : nt(m) ? m.length === 0 ? p.mandatory ? (p.model = p.default, p.default) : null : encodeURIComponent(m) : Xe(m) ? m.length === 0 ? p.mandatory ? (p.model = p.default, p.default) : null : m.map((f) => nt(f) ? encodeURIComponent(f) : f).join(",") : na(m) || Fa(m) ? m : null;
|
|
9041
|
+
}, c = (p, m) => {
|
|
9042
|
+
e.value.push(p + "=" + m);
|
|
9043
9043
|
};
|
|
9044
9044
|
return {
|
|
9045
9045
|
querySetLimit: n,
|
|
@@ -9047,14 +9047,14 @@ function xr() {
|
|
|
9047
9047
|
querySetOrder: a,
|
|
9048
9048
|
queryAddFilter: l,
|
|
9049
9049
|
querySetFilters: (p) => {
|
|
9050
|
-
const
|
|
9051
|
-
for (const
|
|
9052
|
-
const w = p[
|
|
9050
|
+
const m = !x(p._elastic);
|
|
9051
|
+
for (const f in p) {
|
|
9052
|
+
const w = p[f], V = w.field || f;
|
|
9053
9053
|
if (w.exclude)
|
|
9054
9054
|
continue;
|
|
9055
9055
|
const z = s(w);
|
|
9056
9056
|
if (!_e(z)) {
|
|
9057
|
-
if (
|
|
9057
|
+
if (m) {
|
|
9058
9058
|
c(V, z);
|
|
9059
9059
|
continue;
|
|
9060
9060
|
}
|
|
@@ -9077,20 +9077,20 @@ const { isValidationError: ss, handleValidationError: us } = gt(), ds = (e, n) =
|
|
|
9077
9077
|
}).catch((p) => {
|
|
9078
9078
|
ss(p) && (us(p, o, l), y(new ot())), y(p);
|
|
9079
9079
|
});
|
|
9080
|
-
}), { isValidationError: cs, handleValidationError:
|
|
9080
|
+
}), { isValidationError: cs, handleValidationError: ms } = gt(), fs = (e, n) => {
|
|
9081
9081
|
const { querySetLimit: t, querySetOffset: a, querySetOrder: o, queryBuild: l, querySetFilters: s } = xr();
|
|
9082
9082
|
return t(e.rowsPerPage), a(e.page, e.rowsPerPage), o(e.sortBy, e.descending), s(n), l();
|
|
9083
9083
|
}, ps = (e, n, t = {}, a, o, l, s, c = {}) => new Promise((d, y) => {
|
|
9084
|
-
const p =
|
|
9084
|
+
const p = x(o._elastic) ? "" : "/search";
|
|
9085
9085
|
e().get(
|
|
9086
|
-
vt(n, t) + p +
|
|
9086
|
+
vt(n, t) + p + fs(a, o),
|
|
9087
9087
|
c
|
|
9088
|
-
).then((
|
|
9089
|
-
if (!pt(
|
|
9088
|
+
).then((m) => {
|
|
9089
|
+
if (!pt(m.status))
|
|
9090
9090
|
throw new ht();
|
|
9091
|
-
a.totalCount =
|
|
9092
|
-
}).catch((
|
|
9093
|
-
cs(
|
|
9091
|
+
a.totalCount = m.data.totalCount, a.currentViewCount = m.data.data.length, x(m.data.hasNextPage) || (a.hasNextPage = m.data.hasNextPage), d(m.data.data);
|
|
9092
|
+
}).catch((m) => {
|
|
9093
|
+
cs(m) && (ms(m, l, s), y(new ot())), y(m);
|
|
9094
9094
|
});
|
|
9095
9095
|
}), { isValidationError: hs, handleValidationError: gs } = gt(), vs = (e, n, t = {}, a, o, l = {}) => new Promise((s, c) => {
|
|
9096
9096
|
e().get(vt(n, t), l).then((d) => {
|
|
@@ -9244,27 +9244,27 @@ function cc() {
|
|
|
9244
9244
|
});
|
|
9245
9245
|
}
|
|
9246
9246
|
const { t: Is } = Q.global;
|
|
9247
|
-
function
|
|
9247
|
+
function mc() {
|
|
9248
9248
|
return Me({ t: Is })(oo, {
|
|
9249
9249
|
withArguments: !0,
|
|
9250
9250
|
messagePath: () => "validations.js.minValue"
|
|
9251
9251
|
});
|
|
9252
9252
|
}
|
|
9253
9253
|
const { t: Es } = Q.global;
|
|
9254
|
-
function
|
|
9254
|
+
function fc() {
|
|
9255
9255
|
return Me({ t: Es })(io, {
|
|
9256
9256
|
messagePath: () => "validations.js.numeric"
|
|
9257
9257
|
});
|
|
9258
9258
|
}
|
|
9259
|
-
const { t:
|
|
9259
|
+
const { t: Ns } = Q.global;
|
|
9260
9260
|
function pc() {
|
|
9261
|
-
return Me({ t:
|
|
9261
|
+
return Me({ t: Ns })(Yt.regex(/^\+4219[0-9]{8}$/), {
|
|
9262
9262
|
messagePath: () => "validations.js.phoneNumber"
|
|
9263
9263
|
});
|
|
9264
9264
|
}
|
|
9265
|
-
const { t:
|
|
9265
|
+
const { t: Fs } = Q.global;
|
|
9266
9266
|
function hc() {
|
|
9267
|
-
return Me({ t:
|
|
9267
|
+
return Me({ t: Fs })(
|
|
9268
9268
|
(n, t, a) => a.required ? !(parseFloat(n) === 0 && parseFloat(t.latitudeText.value) === 0) : !0,
|
|
9269
9269
|
{
|
|
9270
9270
|
messagePath: () => "validations.js.required"
|
|
@@ -9556,6 +9556,10 @@ const Ls = {
|
|
|
9556
9556
|
const { normalize: n } = e;
|
|
9557
9557
|
return n(["Edit"]);
|
|
9558
9558
|
},
|
|
9559
|
+
detail: (e) => {
|
|
9560
|
+
const { normalize: n } = e;
|
|
9561
|
+
return n(["Detail"]);
|
|
9562
|
+
},
|
|
9559
9563
|
submitFilter: (e) => {
|
|
9560
9564
|
const { normalize: n } = e;
|
|
9561
9565
|
return n(["Apply Filter"]);
|
|
@@ -9739,6 +9743,30 @@ const Ls = {
|
|
|
9739
9743
|
permissions: (e) => {
|
|
9740
9744
|
const { normalize: n } = e;
|
|
9741
9745
|
return n(["Permissions"]);
|
|
9746
|
+
},
|
|
9747
|
+
person: {
|
|
9748
|
+
firstName: (e) => {
|
|
9749
|
+
const { normalize: n } = e;
|
|
9750
|
+
return n(["Firstname"]);
|
|
9751
|
+
},
|
|
9752
|
+
lastName: (e) => {
|
|
9753
|
+
const { normalize: n } = e;
|
|
9754
|
+
return n(["Lastname"]);
|
|
9755
|
+
},
|
|
9756
|
+
fullName: (e) => {
|
|
9757
|
+
const { normalize: n } = e;
|
|
9758
|
+
return n(["Full name"]);
|
|
9759
|
+
}
|
|
9760
|
+
},
|
|
9761
|
+
avatar: {
|
|
9762
|
+
color: (e) => {
|
|
9763
|
+
const { normalize: n } = e;
|
|
9764
|
+
return n(["Avatar color"]);
|
|
9765
|
+
},
|
|
9766
|
+
text: (e) => {
|
|
9767
|
+
const { normalize: n } = e;
|
|
9768
|
+
return n(["Avatar text"]);
|
|
9769
|
+
}
|
|
9742
9770
|
}
|
|
9743
9771
|
},
|
|
9744
9772
|
filter: {
|
|
@@ -10194,6 +10222,10 @@ const Ls = {
|
|
|
10194
10222
|
const { normalize: n } = e;
|
|
10195
10223
|
return n(["Editovať"]);
|
|
10196
10224
|
},
|
|
10225
|
+
detail: (e) => {
|
|
10226
|
+
const { normalize: n } = e;
|
|
10227
|
+
return n(["Detail"]);
|
|
10228
|
+
},
|
|
10197
10229
|
submitFilter: (e) => {
|
|
10198
10230
|
const { normalize: n } = e;
|
|
10199
10231
|
return n(["Hľadať"]);
|
|
@@ -10377,6 +10409,30 @@ const Ls = {
|
|
|
10377
10409
|
permissions: (e) => {
|
|
10378
10410
|
const { normalize: n } = e;
|
|
10379
10411
|
return n(["Permissions"]);
|
|
10412
|
+
},
|
|
10413
|
+
person: {
|
|
10414
|
+
firstName: (e) => {
|
|
10415
|
+
const { normalize: n } = e;
|
|
10416
|
+
return n(["Meno"]);
|
|
10417
|
+
},
|
|
10418
|
+
lastName: (e) => {
|
|
10419
|
+
const { normalize: n } = e;
|
|
10420
|
+
return n(["Priezvisko"]);
|
|
10421
|
+
},
|
|
10422
|
+
fullName: (e) => {
|
|
10423
|
+
const { normalize: n } = e;
|
|
10424
|
+
return n(["Celé meno"]);
|
|
10425
|
+
}
|
|
10426
|
+
},
|
|
10427
|
+
avatar: {
|
|
10428
|
+
color: (e) => {
|
|
10429
|
+
const { normalize: n } = e;
|
|
10430
|
+
return n(["Avatar farba"]);
|
|
10431
|
+
},
|
|
10432
|
+
text: (e) => {
|
|
10433
|
+
const { normalize: n } = e;
|
|
10434
|
+
return n(["Avatar text"]);
|
|
10435
|
+
}
|
|
10380
10436
|
}
|
|
10381
10437
|
},
|
|
10382
10438
|
filter: {
|
|
@@ -10973,7 +11029,7 @@ export {
|
|
|
10973
11029
|
Sd as AActionEditButton,
|
|
10974
11030
|
Td as AActionSaveAndCloseButton,
|
|
10975
11031
|
xd as AActionSaveButton,
|
|
10976
|
-
|
|
11032
|
+
Fu as AAlerts,
|
|
10977
11033
|
yo as ABooleanValue,
|
|
10978
11034
|
Lu as ACard,
|
|
10979
11035
|
zd as ACopyText,
|
|
@@ -10982,7 +11038,7 @@ export {
|
|
|
10982
11038
|
Ra as ADatetime,
|
|
10983
11039
|
oi as AFilterAdvancedButton,
|
|
10984
11040
|
bd as AFilterBooleanGroup,
|
|
10985
|
-
|
|
11041
|
+
fd as AFilterDatetimePicker,
|
|
10986
11042
|
ld as AFilterInteger,
|
|
10987
11043
|
yd as AFilterRemoteAutocomplete,
|
|
10988
11044
|
ri as AFilterResetButton,
|
|
@@ -10991,7 +11047,7 @@ export {
|
|
|
10991
11047
|
vd as AFilterValueObjectOptionsSelect,
|
|
10992
11048
|
sd as AFilterWrapper,
|
|
10993
11049
|
Uu as AFormBooleanToggle,
|
|
10994
|
-
|
|
11050
|
+
md as AFormDatetimePicker,
|
|
10995
11051
|
hd as AFormRemoteAutocomplete,
|
|
10996
11052
|
Hu as AFormTextField,
|
|
10997
11053
|
Ju as AFormTextarea,
|
|
@@ -11004,7 +11060,7 @@ export {
|
|
|
11004
11060
|
ud as APermissionGrantEditor,
|
|
11005
11061
|
dd as APermissionValueChip,
|
|
11006
11062
|
Ea as ARow,
|
|
11007
|
-
|
|
11063
|
+
Nd as ASystemBar,
|
|
11008
11064
|
Wu as ASystemEntityScope,
|
|
11009
11065
|
Od as ATableCopyIdButton,
|
|
11010
11066
|
$d as ATableDetailButton,
|
|
@@ -11017,8 +11073,8 @@ export {
|
|
|
11017
11073
|
Hd as AnzuFatalError,
|
|
11018
11074
|
cd as AnzuSystemsCommonAdmin,
|
|
11019
11075
|
yr as AvailableLanguagesSymbol,
|
|
11020
|
-
|
|
11021
|
-
|
|
11076
|
+
fr as DATETIME_MAX,
|
|
11077
|
+
mr as DATETIME_MIN,
|
|
11022
11078
|
br as DefaultLanguageSymbol,
|
|
11023
11079
|
zn as Grant,
|
|
11024
11080
|
hr as GrantOrigin,
|
|
@@ -11045,7 +11101,7 @@ export {
|
|
|
11045
11101
|
Qd as arrayFromArgs,
|
|
11046
11102
|
Kd as arrayItemToggle,
|
|
11047
11103
|
Zd as arrayToString,
|
|
11048
|
-
|
|
11104
|
+
Fd as booleanToInteger,
|
|
11049
11105
|
Xd as browserHistoryReplaceUrlByRouter,
|
|
11050
11106
|
_s as browserHistoryReplaceUrlByString,
|
|
11051
11107
|
jt as cloneDeep,
|
|
@@ -11060,9 +11116,9 @@ export {
|
|
|
11060
11116
|
et as eventClickBlur,
|
|
11061
11117
|
Q as i18n,
|
|
11062
11118
|
Xe as isArray,
|
|
11063
|
-
|
|
11119
|
+
Fa as isBoolean,
|
|
11064
11120
|
ui as isCreatedByAware,
|
|
11065
|
-
|
|
11121
|
+
Na as isDefined,
|
|
11066
11122
|
Vu as isDocId,
|
|
11067
11123
|
Do as isEmpty,
|
|
11068
11124
|
ur as isEmptyArray,
|
|
@@ -11073,7 +11129,7 @@ export {
|
|
|
11073
11129
|
lr as isObject,
|
|
11074
11130
|
si as isOwnerAware,
|
|
11075
11131
|
nt as isString,
|
|
11076
|
-
|
|
11132
|
+
x as isUndefined,
|
|
11077
11133
|
pt as isValidHTTPStatus,
|
|
11078
11134
|
od as makeFilterHelper,
|
|
11079
11135
|
gc as messagesEn,
|
|
@@ -11124,8 +11180,8 @@ export {
|
|
|
11124
11180
|
uc as useValidateMaxLength,
|
|
11125
11181
|
dc as useValidateMaxValue,
|
|
11126
11182
|
cc as useValidateMinLength,
|
|
11127
|
-
|
|
11128
|
-
|
|
11183
|
+
mc as useValidateMinValue,
|
|
11184
|
+
fc as useValidateNumeric,
|
|
11129
11185
|
pc as useValidatePhoneNumber,
|
|
11130
11186
|
ec as useValidateRequired,
|
|
11131
11187
|
qi as useValidateRequiredIf,
|