@anzusystems/common-admin 0.0.40 → 0.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common-admin.es.d.ts +1 -1
- package/dist/common-admin.es.js +232 -231
- package/dist/common-admin.es.js.map +1 -1
- package/package.json +7 -7
package/dist/common-admin.es.js
CHANGED
|
@@ -231,7 +231,7 @@ const yp = /* @__PURE__ */ L({
|
|
|
231
231
|
}, u = T(() => {
|
|
232
232
|
var d, g;
|
|
233
233
|
return S(e.errorMessage) ? (g = (d = e.v) == null ? void 0 : d.$errors) != null && g.length ? [e.v.$errors.map((b) => b.$message).join(" ")] : [] : [e.errorMessage];
|
|
234
|
-
}),
|
|
234
|
+
}), p = T(() => {
|
|
235
235
|
var g, b;
|
|
236
236
|
if (!S(e.label))
|
|
237
237
|
return e.label;
|
|
@@ -239,7 +239,7 @@ const yp = /* @__PURE__ */ L({
|
|
|
239
239
|
return "";
|
|
240
240
|
const { end: d } = it((b = e.v) == null ? void 0 : b.$path, ".");
|
|
241
241
|
return a(r + "." + o + ".model." + d);
|
|
242
|
-
}),
|
|
242
|
+
}), m = T(() => {
|
|
243
243
|
var d, g;
|
|
244
244
|
return S(e.required) ? !!((d = e.v) != null && d.required && ((g = e.v) == null ? void 0 : g.required.$params.type) === "required") : e.required;
|
|
245
245
|
});
|
|
@@ -248,7 +248,7 @@ const yp = /* @__PURE__ */ L({
|
|
|
248
248
|
"data-cy": t.dataCy,
|
|
249
249
|
"error-messages": f(u),
|
|
250
250
|
"model-value": t.modelValue,
|
|
251
|
-
required: f(
|
|
251
|
+
required: f(m),
|
|
252
252
|
type: t.type,
|
|
253
253
|
step: t.step,
|
|
254
254
|
"append-icon": t.appendIcon,
|
|
@@ -261,8 +261,8 @@ const yp = /* @__PURE__ */ L({
|
|
|
261
261
|
t.hideLabel ? void 0 : {
|
|
262
262
|
name: "label",
|
|
263
263
|
fn: y(() => [
|
|
264
|
-
B($(f(
|
|
265
|
-
f(
|
|
264
|
+
B($(f(p)), 1),
|
|
265
|
+
f(m) ? (k(), H("span", Zo)) : Z("", !0)
|
|
266
266
|
]),
|
|
267
267
|
key: "0"
|
|
268
268
|
}
|
|
@@ -295,7 +295,7 @@ const yp = /* @__PURE__ */ L({
|
|
|
295
295
|
}, u = T(() => {
|
|
296
296
|
var d, g;
|
|
297
297
|
return S(e.errorMessage) ? (g = (d = e.v) == null ? void 0 : d.$errors) != null && g.length ? [e.v.$errors.map((b) => b.$message).join(" ")] : [] : [e.errorMessage];
|
|
298
|
-
}),
|
|
298
|
+
}), p = T(() => {
|
|
299
299
|
var g, b;
|
|
300
300
|
if (!S(e.label))
|
|
301
301
|
return e.label;
|
|
@@ -303,7 +303,7 @@ const yp = /* @__PURE__ */ L({
|
|
|
303
303
|
return "";
|
|
304
304
|
const { end: d } = it((b = e.v) == null ? void 0 : b.$path, ".");
|
|
305
305
|
return a(r + "." + o + ".model." + d);
|
|
306
|
-
}),
|
|
306
|
+
}), m = T(() => {
|
|
307
307
|
var d, g;
|
|
308
308
|
return S(e.required) ? !!((d = e.v) != null && d.required && ((g = e.v) == null ? void 0 : g.required.$params.type) === "required") : e.required;
|
|
309
309
|
});
|
|
@@ -312,7 +312,7 @@ const yp = /* @__PURE__ */ L({
|
|
|
312
312
|
"data-cy": t.dataCy,
|
|
313
313
|
"error-messages": f(u),
|
|
314
314
|
"model-value": t.modelValue,
|
|
315
|
-
required: f(
|
|
315
|
+
required: f(m),
|
|
316
316
|
rows: t.rows,
|
|
317
317
|
"auto-grow": "",
|
|
318
318
|
"append-icon": t.appendIcon,
|
|
@@ -324,8 +324,8 @@ const yp = /* @__PURE__ */ L({
|
|
|
324
324
|
t.hideLabel ? void 0 : {
|
|
325
325
|
name: "label",
|
|
326
326
|
fn: y(() => [
|
|
327
|
-
B($(f(
|
|
328
|
-
f(
|
|
327
|
+
B($(f(p)), 1),
|
|
328
|
+
f(m) ? (k(), H("span", Qo)) : Z("", !0)
|
|
329
329
|
]),
|
|
330
330
|
key: "0"
|
|
331
331
|
}
|
|
@@ -349,22 +349,22 @@ const yp = /* @__PURE__ */ L({
|
|
|
349
349
|
get() {
|
|
350
350
|
return e.modelValue;
|
|
351
351
|
},
|
|
352
|
-
set(
|
|
353
|
-
n("update:modelValue",
|
|
352
|
+
set(p) {
|
|
353
|
+
n("update:modelValue", p);
|
|
354
354
|
}
|
|
355
355
|
}), { t: s } = G(), c = T(() => {
|
|
356
|
-
var
|
|
356
|
+
var m, d;
|
|
357
357
|
if (!S(e.label))
|
|
358
358
|
return e.label;
|
|
359
|
-
if (S(a) || S(r) || S((
|
|
359
|
+
if (S(a) || S(r) || S((m = e.v) == null ? void 0 : m.$path))
|
|
360
360
|
return "";
|
|
361
|
-
const { end:
|
|
362
|
-
return s(a + "." + r + ".model." +
|
|
361
|
+
const { end: p } = it((d = e.v) == null ? void 0 : d.$path, ".");
|
|
362
|
+
return s(a + "." + r + ".model." + p);
|
|
363
363
|
}), u = T(() => {
|
|
364
|
-
var
|
|
365
|
-
return S(e.required) ? !!((
|
|
364
|
+
var p, m;
|
|
365
|
+
return S(e.required) ? !!((p = e.v) != null && p.required && ((m = e.v) == null ? void 0 : m.required.$params.type) === "required") : e.required;
|
|
366
366
|
});
|
|
367
|
-
return (
|
|
367
|
+
return (p, m) => (k(), H(Ue, null, [
|
|
368
368
|
t.label ? (k(), E(_r, {
|
|
369
369
|
key: 0,
|
|
370
370
|
class: "pr-1"
|
|
@@ -377,7 +377,7 @@ const yp = /* @__PURE__ */ L({
|
|
|
377
377
|
})) : Z("", !0),
|
|
378
378
|
w(Jn, {
|
|
379
379
|
modelValue: f(o),
|
|
380
|
-
"onUpdate:modelValue":
|
|
380
|
+
"onUpdate:modelValue": m[0] || (m[0] = (d) => ze(o) ? o.value = d : null),
|
|
381
381
|
mandatory: f(u)
|
|
382
382
|
}, {
|
|
383
383
|
default: y(() => [
|
|
@@ -433,7 +433,7 @@ const yp = /* @__PURE__ */ L({
|
|
|
433
433
|
set(P) {
|
|
434
434
|
n("update:modelValue", ct(P));
|
|
435
435
|
}
|
|
436
|
-
}), { t: r } = G(), o = T(() => Math.ceil(a.value.totalCount / a.value.rowsPerPage)), s = T(() => a.value.page * a.value.rowsPerPage - a.value.rowsPerPage + 1), c = T(() => a.value.page * a.value.rowsPerPage - a.value.rowsPerPage + a.value.currentViewCount), u = T(() => a.value.page === 1),
|
|
436
|
+
}), { t: r } = G(), o = T(() => Math.ceil(a.value.totalCount / a.value.rowsPerPage)), s = T(() => a.value.page * a.value.rowsPerPage - a.value.rowsPerPage + 1), c = T(() => a.value.page * a.value.rowsPerPage - a.value.rowsPerPage + a.value.currentViewCount), u = T(() => a.value.page === 1), p = T(() => !ye(a.value.hasNextPage) || a.value.page === o.value), m = T(() => ye(a.value.hasNextPage) && a.value.page === o.value || a.value.hasNextPage === !1), d = T(() => ye(a.value.hasNextPage) ? a.value.totalCount : a.value.hasNextPage ? c.value + 1 + "+" : c.value), g = T(() => a.value.rowsPerPage);
|
|
437
437
|
Ve(g, (P, z) => {
|
|
438
438
|
P !== z && (a.value.page = 1, n("change"));
|
|
439
439
|
});
|
|
@@ -501,14 +501,14 @@ const yp = /* @__PURE__ */ L({
|
|
|
501
501
|
]),
|
|
502
502
|
te("div", oi, [
|
|
503
503
|
w(ie, {
|
|
504
|
-
disabled: f(
|
|
504
|
+
disabled: f(m),
|
|
505
505
|
icon: "mdi-chevron-right",
|
|
506
506
|
size: "small",
|
|
507
507
|
variant: "text",
|
|
508
508
|
onClick: re(I, ["stop"])
|
|
509
509
|
}, null, 8, ["disabled", "onClick"]),
|
|
510
510
|
w(ie, {
|
|
511
|
-
disabled: f(
|
|
511
|
+
disabled: f(p),
|
|
512
512
|
icon: "mdi-page-last",
|
|
513
513
|
size: "small",
|
|
514
514
|
variant: "text",
|
|
@@ -575,7 +575,7 @@ const Op = /* @__PURE__ */ L({
|
|
|
575
575
|
}),
|
|
576
576
|
(k(!0), H(Ue, null, Ct(t.columnsAll, (u) => (k(), E(Qe, {
|
|
577
577
|
key: u.key,
|
|
578
|
-
onClick: re((
|
|
578
|
+
onClick: re((p) => o(u.key), ["stop"])
|
|
579
579
|
}, {
|
|
580
580
|
default: y(() => [
|
|
581
581
|
w(Xt, null, {
|
|
@@ -633,9 +633,9 @@ const Op = /* @__PURE__ */ L({
|
|
|
633
633
|
{ id: 1, titleT: "common.system.datatable.ordering.mostRecent", sortBy: { key: "createdAt", order: "desc" } },
|
|
634
634
|
{ id: 2, titleT: "common.system.datatable.ordering.oldest", sortBy: { key: "createdAt", order: "asc" } }
|
|
635
635
|
], u = T(() => {
|
|
636
|
-
const d =
|
|
636
|
+
const d = p.value.find((g) => g.id === r.value);
|
|
637
637
|
return d ? a(d.titleT) : "";
|
|
638
|
-
}),
|
|
638
|
+
}), p = T(() => e.customOptions ? e.customOptions : e.variant === "most-relevant" ? c : s), m = (d) => {
|
|
639
639
|
o.value = d.id;
|
|
640
640
|
};
|
|
641
641
|
return Ve(
|
|
@@ -643,7 +643,7 @@ const Op = /* @__PURE__ */ L({
|
|
|
643
643
|
(d, g) => {
|
|
644
644
|
if (S(g) || d === g)
|
|
645
645
|
return;
|
|
646
|
-
const b =
|
|
646
|
+
const b = p.value.find((F) => F.id === d);
|
|
647
647
|
b && n("sortByChange", b);
|
|
648
648
|
},
|
|
649
649
|
{ immediate: !0 }
|
|
@@ -674,9 +674,9 @@ const Op = /* @__PURE__ */ L({
|
|
|
674
674
|
class: "pa-0"
|
|
675
675
|
}, {
|
|
676
676
|
default: y(() => [
|
|
677
|
-
(k(!0), H(Ue, null, Ct(f(
|
|
677
|
+
(k(!0), H(Ue, null, Ct(f(p), (b) => (k(), E(Qe, {
|
|
678
678
|
key: b.id,
|
|
679
|
-
onClick: (F) =>
|
|
679
|
+
onClick: (F) => m(b)
|
|
680
680
|
}, {
|
|
681
681
|
default: y(() => [
|
|
682
682
|
w(Xt, {
|
|
@@ -1023,7 +1023,7 @@ const yi = /* @__PURE__ */ Ma(gi, [["render", vi]]), ea = "[-+]?[0-9]*.?[0-9]+",
|
|
|
1023
1023
|
this.destroyAll();
|
|
1024
1024
|
return;
|
|
1025
1025
|
}
|
|
1026
|
-
const n = typeof t.duration == "number" ? t.duration : this.duration, e = typeof t.speed == "number" ? t.speed : this.speed, a = typeof t.ignoreDuplicates == "boolean" ? t.ignoreDuplicates : this.ignoreDuplicates, { title: r, text: o, type: s, data: c, id: u } = t,
|
|
1026
|
+
const n = typeof t.duration == "number" ? t.duration : this.duration, e = typeof t.speed == "number" ? t.speed : this.speed, a = typeof t.ignoreDuplicates == "boolean" ? t.ignoreDuplicates : this.ignoreDuplicates, { title: r, text: o, type: s, data: c, id: u } = t, p = {
|
|
1027
1027
|
id: u || ui(),
|
|
1028
1028
|
title: r,
|
|
1029
1029
|
text: o,
|
|
@@ -1033,11 +1033,11 @@ const yi = /* @__PURE__ */ Ma(gi, [["render", vi]]), ea = "[-+]?[0-9]*.?[0-9]+",
|
|
|
1033
1033
|
length: n + 2 * e,
|
|
1034
1034
|
data: c
|
|
1035
1035
|
};
|
|
1036
|
-
n >= 0 && (this.timerControl = new fi(() => this.destroy(
|
|
1037
|
-
const
|
|
1036
|
+
n >= 0 && (this.timerControl = new fi(() => this.destroy(p), p.length, p));
|
|
1037
|
+
const m = this.reverse ? !this.botToTop : this.botToTop;
|
|
1038
1038
|
let d = -1;
|
|
1039
1039
|
const g = this.active.some((b) => b.title === t.title && b.text === t.text);
|
|
1040
|
-
(!a || !g) && (
|
|
1040
|
+
(!a || !g) && (m ? (this.list.push(p), this.$emit("start", p), this.active.length > this.max && (d = 0)) : (this.list.unshift(p), this.$emit("start", p), this.active.length > this.max && (d = this.active.length - 1)), d !== -1 && this.destroy(this.active[d]));
|
|
1041
1041
|
},
|
|
1042
1042
|
closeItem(t) {
|
|
1043
1043
|
this.destroyById(t);
|
|
@@ -1279,7 +1279,7 @@ function xa() {
|
|
|
1279
1279
|
duration: v * 1e3,
|
|
1280
1280
|
type: "error"
|
|
1281
1281
|
});
|
|
1282
|
-
},
|
|
1282
|
+
}, p = (v, O = Ze) => {
|
|
1283
1283
|
const { t: I } = le.global;
|
|
1284
1284
|
qe({
|
|
1285
1285
|
group: "alerts",
|
|
@@ -1287,7 +1287,7 @@ function xa() {
|
|
|
1287
1287
|
duration: O * 1e3,
|
|
1288
1288
|
type: "success"
|
|
1289
1289
|
});
|
|
1290
|
-
},
|
|
1290
|
+
}, m = (v, O = -1, I = !1) => {
|
|
1291
1291
|
const { t: P, te: z } = le.global, U = [P("common.alert.fixApiValidationErrors")];
|
|
1292
1292
|
for (let ne = 0; ne < v.length; ne++) {
|
|
1293
1293
|
let ee = "";
|
|
@@ -1344,12 +1344,12 @@ function xa() {
|
|
|
1344
1344
|
showWarning: s,
|
|
1345
1345
|
showWarningT: c,
|
|
1346
1346
|
showValidationError: u,
|
|
1347
|
-
showRecordWas:
|
|
1348
|
-
showApiValidationError:
|
|
1347
|
+
showRecordWas: p,
|
|
1348
|
+
showApiValidationError: m,
|
|
1349
1349
|
showApiForbiddenOperationError: d,
|
|
1350
1350
|
showUnknownError: g,
|
|
1351
1351
|
showForbiddenError: b,
|
|
1352
|
-
showErrorsDefault: (v) => Fr(v) ? (b(), !0) : Pr(v) ? (
|
|
1352
|
+
showErrorsDefault: (v) => Fr(v) ? (b(), !0) : Pr(v) ? (m(v.fields), !0) : Li(v) ? (d(v.detail), !0) : Ir(v) || Er(v) ? (g(), !0) : !1
|
|
1353
1353
|
};
|
|
1354
1354
|
}
|
|
1355
1355
|
const Ep = /* @__PURE__ */ L({
|
|
@@ -1371,7 +1371,7 @@ const Ep = /* @__PURE__ */ L({
|
|
|
1371
1371
|
n("update:modelValue", !0), n("onOpen");
|
|
1372
1372
|
}, s = () => {
|
|
1373
1373
|
n("update:modelValue", !1), n("onClose");
|
|
1374
|
-
}, c = ka(), { showValidationError: u, showRecordWas:
|
|
1374
|
+
}, c = ka(), { showValidationError: u, showRecordWas: p, showErrorsDefault: m } = xa(), d = async () => {
|
|
1375
1375
|
var g;
|
|
1376
1376
|
n("onConfirm");
|
|
1377
1377
|
try {
|
|
@@ -1380,12 +1380,12 @@ const Ep = /* @__PURE__ */ L({
|
|
|
1380
1380
|
return;
|
|
1381
1381
|
}
|
|
1382
1382
|
const b = await e.callCreate();
|
|
1383
|
-
n("onSuccess", b),
|
|
1383
|
+
n("onSuccess", b), p("created"), s(), !S(b.id) && !e.disableRedirect && e.redirectRouteName && c.push({
|
|
1384
1384
|
name: e.redirectRouteName,
|
|
1385
1385
|
params: { [e.redirectParamName]: b[e.redirectParamName] }
|
|
1386
1386
|
});
|
|
1387
1387
|
} catch (b) {
|
|
1388
|
-
|
|
1388
|
+
m(b), n("onError", b);
|
|
1389
1389
|
} finally {
|
|
1390
1390
|
r.value = !1;
|
|
1391
1391
|
}
|
|
@@ -1505,6 +1505,7 @@ const Ep = /* @__PURE__ */ L({
|
|
|
1505
1505
|
(k(!0), H(Ue, null, Ct(a.value, (s) => (k(), H("a", {
|
|
1506
1506
|
key: s.id,
|
|
1507
1507
|
href: s.url,
|
|
1508
|
+
rel: "noopener noreferrer",
|
|
1508
1509
|
target: "_blank",
|
|
1509
1510
|
class: "a-admin-switcher__item"
|
|
1510
1511
|
}, [
|
|
@@ -1553,7 +1554,7 @@ var ca = {}, Wi = {
|
|
|
1553
1554
|
(function(e, a) {
|
|
1554
1555
|
t.exports = a();
|
|
1555
1556
|
})(Ta, function() {
|
|
1556
|
-
var e = 1e3, a = 6e4, r = 36e5, o = "millisecond", s = "second", c = "minute", u = "hour",
|
|
1557
|
+
var e = 1e3, a = 6e4, r = 36e5, o = "millisecond", s = "second", c = "minute", u = "hour", p = "day", m = "week", d = "month", g = "quarter", b = "year", F = "date", v = "Invalid Date", O = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, I = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, 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(D) {
|
|
1557
1558
|
var C = ["th", "st", "nd", "rd"], A = D % 100;
|
|
1558
1559
|
return "[" + D + (C[(A - 20) % 10] || C[A] || C[0]) + "]";
|
|
1559
1560
|
} }, z = function(D, C, A) {
|
|
@@ -1570,7 +1571,7 @@ var ca = {}, Wi = {
|
|
|
1570
1571
|
}, a: function(D) {
|
|
1571
1572
|
return D < 0 ? Math.ceil(D) || 0 : Math.floor(D);
|
|
1572
1573
|
}, p: function(D) {
|
|
1573
|
-
return { M: d, y: b, w:
|
|
1574
|
+
return { M: d, y: b, w: m, d: p, D: F, h: u, m: c, s, ms: o, Q: g }[D] || String(D || "").toLowerCase().replace(/s$/, "");
|
|
1574
1575
|
}, u: function(D) {
|
|
1575
1576
|
return D === void 0;
|
|
1576
1577
|
} }, ne = "en", ee = {};
|
|
@@ -1647,7 +1648,7 @@ var ca = {}, Wi = {
|
|
|
1647
1648
|
}, C.startOf = function(A, M) {
|
|
1648
1649
|
var x = this, j = !!Q.u(M) || M, K = Q.p(A), se = function(Te, we) {
|
|
1649
1650
|
var Le = Q.w(x.$u ? Date.UTC(x.$y, we, Te) : new Date(x.$y, we, Te), x);
|
|
1650
|
-
return j ? Le : Le.endOf(
|
|
1651
|
+
return j ? Le : Le.endOf(p);
|
|
1651
1652
|
}, he = function(Te, we) {
|
|
1652
1653
|
return Q.w(x.toDate()[Te].apply(x.toDate("s"), (j ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(we)), x);
|
|
1653
1654
|
}, ge = this.$W, Ce = this.$M, Ee = this.$D, xe = "set" + (this.$u ? "UTC" : "");
|
|
@@ -1656,10 +1657,10 @@ var ca = {}, Wi = {
|
|
|
1656
1657
|
return j ? se(1, 0) : se(31, 11);
|
|
1657
1658
|
case d:
|
|
1658
1659
|
return j ? se(1, Ce) : se(0, Ce + 1);
|
|
1659
|
-
case
|
|
1660
|
+
case m:
|
|
1660
1661
|
var He = this.$locale().weekStart || 0, Ne = (ge < He ? ge + 7 : ge) - He;
|
|
1661
1662
|
return se(j ? Ee - Ne : Ee + (6 - Ne), Ce);
|
|
1662
|
-
case
|
|
1663
|
+
case p:
|
|
1663
1664
|
case F:
|
|
1664
1665
|
return he(xe + "Hours", 0);
|
|
1665
1666
|
case u:
|
|
@@ -1674,7 +1675,7 @@ var ca = {}, Wi = {
|
|
|
1674
1675
|
}, C.endOf = function(A) {
|
|
1675
1676
|
return this.startOf(A, !1);
|
|
1676
1677
|
}, C.$set = function(A, M) {
|
|
1677
|
-
var x, j = Q.p(A), K = "set" + (this.$u ? "UTC" : ""), se = (x = {}, x[
|
|
1678
|
+
var x, j = Q.p(A), K = "set" + (this.$u ? "UTC" : ""), se = (x = {}, x[p] = K + "Date", x[F] = K + "Date", x[d] = K + "Month", x[b] = K + "FullYear", x[u] = K + "Hours", x[c] = K + "Minutes", x[s] = K + "Seconds", x[o] = K + "Milliseconds", x)[j], he = j === p ? this.$D + (M - this.$W) : M;
|
|
1678
1679
|
if (j === d || j === b) {
|
|
1679
1680
|
var ge = this.clone().set(F, 1);
|
|
1680
1681
|
ge.$d[se](he), ge.init(), this.$d = ge.set(F, Math.min(this.$D, ge.daysInMonth())).$d;
|
|
@@ -1696,9 +1697,9 @@ var ca = {}, Wi = {
|
|
|
1696
1697
|
return this.set(d, this.$M + A);
|
|
1697
1698
|
if (K === b)
|
|
1698
1699
|
return this.set(b, this.$y + A);
|
|
1699
|
-
if (K === m)
|
|
1700
|
-
return se(1);
|
|
1701
1700
|
if (K === p)
|
|
1701
|
+
return se(1);
|
|
1702
|
+
if (K === m)
|
|
1702
1703
|
return se(7);
|
|
1703
1704
|
var he = (x = {}, x[c] = a, x[u] = r, x[s] = e, x)[K] || 1, ge = this.$d.getTime() + A * he;
|
|
1704
1705
|
return Q.w(ge, this);
|
|
@@ -1723,7 +1724,7 @@ var ca = {}, Wi = {
|
|
|
1723
1724
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1724
1725
|
}, C.diff = function(A, M, x) {
|
|
1725
1726
|
var j, K = Q.p(M), se = oe(A), he = (se.utcOffset() - this.utcOffset()) * a, ge = this - se, Ce = Q.m(this, se);
|
|
1726
|
-
return Ce = (j = {}, j[b] = Ce / 12, j[d] = Ce, j[g] = Ce / 3, j[
|
|
1727
|
+
return Ce = (j = {}, j[b] = Ce / 12, j[d] = Ce, j[g] = Ce / 3, j[m] = (ge - he) / 6048e5, j[p] = (ge - he) / 864e5, j[u] = ge / r, j[c] = ge / a, j[s] = ge / e, j)[K] || ge, x ? Ce : Q.a(Ce);
|
|
1727
1728
|
}, C.daysInMonth = function() {
|
|
1728
1729
|
return this.endOf(d).$D;
|
|
1729
1730
|
}, C.$locale = function() {
|
|
@@ -1745,7 +1746,7 @@ var ca = {}, Wi = {
|
|
|
1745
1746
|
return this.$d.toUTCString();
|
|
1746
1747
|
}, D;
|
|
1747
1748
|
}(), W = Me.prototype;
|
|
1748
|
-
return oe.prototype = W, [["$ms", o], ["$s", s], ["$m", c], ["$H", u], ["$W",
|
|
1749
|
+
return oe.prototype = W, [["$ms", o], ["$s", s], ["$m", c], ["$H", u], ["$W", p], ["$M", d], ["$y", b], ["$D", F]].forEach(function(D) {
|
|
1749
1750
|
W[D[1]] = function(C) {
|
|
1750
1751
|
return this.$g(C, D[0], D[1]);
|
|
1751
1752
|
};
|
|
@@ -1781,17 +1782,17 @@ var fa = {}, qi = {
|
|
|
1781
1782
|
}, u.local = function() {
|
|
1782
1783
|
return c(this.toDate(), { locale: this.$L, utc: !1 });
|
|
1783
1784
|
};
|
|
1784
|
-
var
|
|
1785
|
+
var p = u.parse;
|
|
1785
1786
|
u.parse = function(v) {
|
|
1786
|
-
v.utc && (this.$u = !0), this.$utils().u(v.$offset) || (this.$offset = v.$offset),
|
|
1787
|
+
v.utc && (this.$u = !0), this.$utils().u(v.$offset) || (this.$offset = v.$offset), p.call(this, v);
|
|
1787
1788
|
};
|
|
1788
|
-
var
|
|
1789
|
+
var m = u.init;
|
|
1789
1790
|
u.init = function() {
|
|
1790
1791
|
if (this.$u) {
|
|
1791
1792
|
var v = this.$d;
|
|
1792
1793
|
this.$y = v.getUTCFullYear(), this.$M = v.getUTCMonth(), this.$D = v.getUTCDate(), this.$W = v.getUTCDay(), this.$H = v.getUTCHours(), this.$m = v.getUTCMinutes(), this.$s = v.getUTCSeconds(), this.$ms = v.getUTCMilliseconds();
|
|
1793
1794
|
} else
|
|
1794
|
-
|
|
1795
|
+
m.call(this);
|
|
1795
1796
|
};
|
|
1796
1797
|
var d = u.utcOffset;
|
|
1797
1798
|
u.utcOffset = function(v, O) {
|
|
@@ -1957,14 +1958,14 @@ const Wp = /* @__PURE__ */ L({
|
|
|
1957
1958
|
n("update:modelValue", { ...e.modelValue, model: u });
|
|
1958
1959
|
}
|
|
1959
1960
|
}), { clearOne: r } = Sa(), { t: o } = G(), s = T(() => e.modelValue.titleT ? o(e.modelValue.titleT) : void 0), c = T(() => S(e.placeholder) ? e.modelValue.variant === "startsWith" ? o("common.model.filterPlaceholder.startsWith") : e.modelValue.variant === "eq" ? o("common.model.filterPlaceholder.eq") : e.modelValue.variant === "contains" ? o("common.model.filterPlaceholder.contains") : "" : e.placeholder);
|
|
1960
|
-
return (u,
|
|
1961
|
+
return (u, p) => (k(), E(Hn, {
|
|
1961
1962
|
modelValue: f(a),
|
|
1962
|
-
"onUpdate:modelValue":
|
|
1963
|
+
"onUpdate:modelValue": p[0] || (p[0] = (m) => ze(a) ? a.value = m : null),
|
|
1963
1964
|
label: f(s),
|
|
1964
1965
|
placeholder: f(c),
|
|
1965
1966
|
clearable: !t.modelValue.mandatory,
|
|
1966
1967
|
"data-cy": t.dataCy,
|
|
1967
|
-
"onClick:clear":
|
|
1968
|
+
"onClick:clear": p[1] || (p[1] = re((m) => f(r)(t.modelValue), ["stop"]))
|
|
1968
1969
|
}, null, 8, ["modelValue", "label", "placeholder", "clearable", "data-cy"]));
|
|
1969
1970
|
}
|
|
1970
1971
|
}), qp = /* @__PURE__ */ L({
|
|
@@ -1985,11 +1986,11 @@ const Wp = /* @__PURE__ */ L({
|
|
|
1985
1986
|
}), { clearOne: r } = Sa(), { t: o } = G(), s = T(() => e.modelValue.titleT ? o(e.modelValue.titleT) : void 0);
|
|
1986
1987
|
return (c, u) => (k(), E(Hn, {
|
|
1987
1988
|
modelValue: f(a),
|
|
1988
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
1989
|
+
"onUpdate:modelValue": u[0] || (u[0] = (p) => ze(a) ? a.value = p : null),
|
|
1989
1990
|
label: f(s),
|
|
1990
1991
|
clearable: !t.modelValue.mandatory,
|
|
1991
1992
|
"data-cy": t.dataCy,
|
|
1992
|
-
"onClick:clear": u[1] || (u[1] = re((
|
|
1993
|
+
"onClick:clear": u[1] || (u[1] = re((p) => f(r)(t.modelValue), ["stop"]))
|
|
1993
1994
|
}, null, 8, ["modelValue", "label", "clearable", "data-cy"]));
|
|
1994
1995
|
}
|
|
1995
1996
|
}), lt = (t) => {
|
|
@@ -2234,9 +2235,9 @@ const Kp = /* @__PURE__ */ L({
|
|
|
2234
2235
|
color: (u = f(r)(c)) == null ? void 0 : u.color
|
|
2235
2236
|
}, {
|
|
2236
2237
|
default: y(() => {
|
|
2237
|
-
var
|
|
2238
|
+
var p;
|
|
2238
2239
|
return [
|
|
2239
|
-
B($((
|
|
2240
|
+
B($((p = f(r)(c)) == null ? void 0 : p.title), 1)
|
|
2240
2241
|
];
|
|
2241
2242
|
}),
|
|
2242
2243
|
_: 2
|
|
@@ -2345,27 +2346,27 @@ const ll = (t) => Wn(t) && Object.hasOwn(t, "owners"), sl = (t) => Object.hasOwn
|
|
|
2345
2346
|
}
|
|
2346
2347
|
}, Wr = "ROLE_ADMIN";
|
|
2347
2348
|
function ul(t) {
|
|
2348
|
-
const n = S(t) || S(t.disableInject), e = (t == null ? void 0 : t.currentUser) ?? (n ? be(qn, void 0) : void 0), a = (t == null ? void 0 : t.customAclProvider) ?? (n ? be(Yr, void 0) : void 0), r = (u,
|
|
2349
|
+
const n = S(t) || S(t.disableInject), e = (t == null ? void 0 : t.currentUser) ?? (n ? be(qn, void 0) : void 0), a = (t == null ? void 0 : t.customAclProvider) ?? (n ? be(Yr, void 0) : void 0), r = (u, p) => {
|
|
2349
2350
|
if (S(e))
|
|
2350
2351
|
throw new Error("Composable useAcl can be used as a global state without providing current user as a parameter.");
|
|
2351
2352
|
if (nr(a) && nr(a.can))
|
|
2352
|
-
return a.can(u,
|
|
2353
|
+
return a.can(u, p);
|
|
2353
2354
|
if (S(e.value) || e.value.id === 0)
|
|
2354
2355
|
return !1;
|
|
2355
2356
|
if (e.value.roles.includes(Wr))
|
|
2356
2357
|
return !0;
|
|
2357
|
-
const
|
|
2358
|
-
if (S(
|
|
2358
|
+
const m = Ur(e.value, "resolvedPermissions." + u);
|
|
2359
|
+
if (S(m))
|
|
2359
2360
|
return !1;
|
|
2360
|
-
switch (
|
|
2361
|
+
switch (m) {
|
|
2361
2362
|
case En.Allow:
|
|
2362
2363
|
return !0;
|
|
2363
2364
|
case En.Deny:
|
|
2364
2365
|
return !1;
|
|
2365
2366
|
case En.AllowOwner:
|
|
2366
|
-
if (S(
|
|
2367
|
+
if (S(p))
|
|
2367
2368
|
throw new Error(`Required subject for acl "${u}" to determine an ability to access the resource.`);
|
|
2368
|
-
return o(
|
|
2369
|
+
return o(p);
|
|
2369
2370
|
default:
|
|
2370
2371
|
return !1;
|
|
2371
2372
|
}
|
|
@@ -2385,8 +2386,8 @@ function ul(t) {
|
|
|
2385
2386
|
}
|
|
2386
2387
|
return {
|
|
2387
2388
|
can: r,
|
|
2388
|
-
canForAll: (u,
|
|
2389
|
-
canForSome: (u,
|
|
2389
|
+
canForAll: (u, p) => u.length === 0 ? !0 : u.every((m) => r(m, p)),
|
|
2390
|
+
canForSome: (u, p) => u.length === 0 ? !0 : u.some((m) => r(m, p))
|
|
2390
2391
|
};
|
|
2391
2392
|
}
|
|
2392
2393
|
const dl = /* @__PURE__ */ L({
|
|
@@ -2775,29 +2776,29 @@ var aa = function() {
|
|
|
2775
2776
|
}
|
|
2776
2777
|
}, Gr = function(t) {
|
|
2777
2778
|
var n = t.config, e = n === void 0 ? Ft : n, a = t.l10n, r = a === void 0 ? en : a, o = t.isMobile, s = o === void 0 ? !1 : o;
|
|
2778
|
-
return function(c, u,
|
|
2779
|
-
var
|
|
2780
|
-
return e.formatDate !== void 0 && !s ? e.formatDate(c, u,
|
|
2781
|
-
return qt[d] && b[g - 1] !== "\\" ? qt[d](c,
|
|
2779
|
+
return function(c, u, p) {
|
|
2780
|
+
var m = p || r;
|
|
2781
|
+
return e.formatDate !== void 0 && !s ? e.formatDate(c, u, m) : u.split("").map(function(d, g, b) {
|
|
2782
|
+
return qt[d] && b[g - 1] !== "\\" ? qt[d](c, m, e) : d !== "\\" ? d : "";
|
|
2782
2783
|
}).join("");
|
|
2783
2784
|
};
|
|
2784
2785
|
}, pa = function(t) {
|
|
2785
2786
|
var n = t.config, e = n === void 0 ? Ft : n, a = t.l10n, r = a === void 0 ? en : a;
|
|
2786
2787
|
return function(o, s, c, u) {
|
|
2787
2788
|
if (!(o !== 0 && !o)) {
|
|
2788
|
-
var
|
|
2789
|
+
var p = u || r, m, d = o;
|
|
2789
2790
|
if (o instanceof Date)
|
|
2790
|
-
|
|
2791
|
+
m = new Date(o.getTime());
|
|
2791
2792
|
else if (typeof o != "string" && o.toFixed !== void 0)
|
|
2792
|
-
|
|
2793
|
+
m = new Date(o);
|
|
2793
2794
|
else if (typeof o == "string") {
|
|
2794
2795
|
var g = s || (e || Ft).dateFormat, b = String(o).trim();
|
|
2795
2796
|
if (b === "today")
|
|
2796
|
-
|
|
2797
|
+
m = /* @__PURE__ */ new Date(), c = !0;
|
|
2797
2798
|
else if (e && e.parseDate)
|
|
2798
|
-
|
|
2799
|
+
m = e.parseDate(o, g);
|
|
2799
2800
|
else if (/Z$/.test(b) || /GMT$/.test(b))
|
|
2800
|
-
|
|
2801
|
+
m = new Date(o);
|
|
2801
2802
|
else {
|
|
2802
2803
|
for (var F = void 0, v = [], O = 0, I = 0, P = ""; O < g.length; O++) {
|
|
2803
2804
|
var z = g[O], U = z === "\\", ne = g[O - 1] === "\\" || U;
|
|
@@ -2811,17 +2812,17 @@ var aa = function() {
|
|
|
2811
2812
|
} else
|
|
2812
2813
|
U || (P += ".");
|
|
2813
2814
|
}
|
|
2814
|
-
|
|
2815
|
+
m = !e || !e.noCalendar ? new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1, 0, 0, 0, 0) : new Date((/* @__PURE__ */ new Date()).setHours(0, 0, 0, 0)), v.forEach(function(ue) {
|
|
2815
2816
|
var me = ue.fn, oe = ue.val;
|
|
2816
|
-
return
|
|
2817
|
-
}),
|
|
2817
|
+
return m = me(m, oe, p) || m;
|
|
2818
|
+
}), m = F ? m : void 0;
|
|
2818
2819
|
}
|
|
2819
2820
|
}
|
|
2820
|
-
if (!(
|
|
2821
|
+
if (!(m instanceof Date && !isNaN(m.getTime()))) {
|
|
2821
2822
|
e.errorHandler(new Error("Invalid date provided: " + d));
|
|
2822
2823
|
return;
|
|
2823
2824
|
}
|
|
2824
|
-
return c === !0 &&
|
|
2825
|
+
return c === !0 && m.setHours(0, 0, 0, 0), m;
|
|
2825
2826
|
}
|
|
2826
2827
|
};
|
|
2827
2828
|
};
|
|
@@ -2925,10 +2926,10 @@ function gl(t, n) {
|
|
|
2925
2926
|
var _ = e._input.value;
|
|
2926
2927
|
d(), We(), e._input.value !== _ && e._debouncedChange();
|
|
2927
2928
|
}
|
|
2928
|
-
function
|
|
2929
|
+
function p(i, l) {
|
|
2929
2930
|
return i % 12 + 12 * Ge(l === e.l10n.amPM[1]);
|
|
2930
2931
|
}
|
|
2931
|
-
function
|
|
2932
|
+
function m(i) {
|
|
2932
2933
|
switch (i % 24) {
|
|
2933
2934
|
case 0:
|
|
2934
2935
|
case 12:
|
|
@@ -2940,7 +2941,7 @@ function gl(t, n) {
|
|
|
2940
2941
|
function d() {
|
|
2941
2942
|
if (!(e.hourElement === void 0 || e.minuteElement === void 0)) {
|
|
2942
2943
|
var i = (parseInt(e.hourElement.value.slice(-2), 10) || 0) % 24, l = (parseInt(e.minuteElement.value, 10) || 0) % 60, h = e.secondElement !== void 0 ? (parseInt(e.secondElement.value, 10) || 0) % 60 : 0;
|
|
2943
|
-
e.amPM !== void 0 && (i =
|
|
2944
|
+
e.amPM !== void 0 && (i = p(i, e.amPM.textContent));
|
|
2944
2945
|
var _ = e.config.minTime !== void 0 || e.config.minDate && e.minDateHasTime && e.latestSelectedDateObj && Re(e.latestSelectedDateObj, e.config.minDate, !0) === 0, V = e.config.maxTime !== void 0 || e.config.maxDate && e.maxDateHasTime && e.latestSelectedDateObj && Re(e.latestSelectedDateObj, e.config.maxDate, !0) === 0;
|
|
2945
2946
|
if (e.config.maxTime !== void 0 && e.config.minTime !== void 0 && e.config.minTime > e.config.maxTime) {
|
|
2946
2947
|
var N = ra(e.config.minTime.getHours(), e.config.minTime.getMinutes(), e.config.minTime.getSeconds()), X = ra(e.config.maxTime.getHours(), e.config.maxTime.getMinutes(), e.config.maxTime.getSeconds()), Y = ra(i, l, h);
|
|
@@ -3160,7 +3161,7 @@ function gl(t, n) {
|
|
|
3160
3161
|
var _ = Vn("flatpickr-minute", {
|
|
3161
3162
|
"aria-label": e.l10n.minuteAriaLabel
|
|
3162
3163
|
});
|
|
3163
|
-
if (e.minuteElement = _.getElementsByTagName("input")[0], e.hourElement.tabIndex = e.minuteElement.tabIndex = -1, e.hourElement.value = Pe(e.latestSelectedDateObj ? e.latestSelectedDateObj.getHours() : e.config.time_24hr ? i.hours :
|
|
3164
|
+
if (e.minuteElement = _.getElementsByTagName("input")[0], e.hourElement.tabIndex = e.minuteElement.tabIndex = -1, e.hourElement.value = Pe(e.latestSelectedDateObj ? e.latestSelectedDateObj.getHours() : e.config.time_24hr ? i.hours : m(i.hours)), e.minuteElement.value = Pe(e.latestSelectedDateObj ? e.latestSelectedDateObj.getMinutes() : i.minutes), e.hourElement.setAttribute("step", e.config.hourIncrement.toString()), e.minuteElement.setAttribute("step", e.config.minuteIncrement.toString()), e.hourElement.setAttribute("min", e.config.time_24hr ? "0" : "1"), e.hourElement.setAttribute("max", e.config.time_24hr ? "23" : "12"), e.hourElement.setAttribute("maxlength", "2"), e.minuteElement.setAttribute("min", "0"), e.minuteElement.setAttribute("max", "59"), e.minuteElement.setAttribute("maxlength", "2"), e.timeContainer.appendChild(h), e.timeContainer.appendChild(l), e.timeContainer.appendChild(_), e.config.time_24hr && e.timeContainer.classList.add("time24hr"), e.config.enableSeconds) {
|
|
3164
3165
|
e.timeContainer.classList.add("hasSeconds");
|
|
3165
3166
|
var V = Vn("flatpickr-second");
|
|
3166
3167
|
e.secondElement = V.getElementsByTagName("input")[0], e.secondElement.value = Pe(e.latestSelectedDateObj ? e.latestSelectedDateObj.getSeconds() : i.seconds), e.secondElement.setAttribute("step", e.minuteElement.getAttribute("step")), e.secondElement.setAttribute("min", "0"), e.secondElement.setAttribute("max", "59"), e.secondElement.setAttribute("maxlength", "2"), e.timeContainer.appendChild(ce("span", "flatpickr-time-separator", ":")), e.timeContainer.appendChild(V);
|
|
@@ -3996,8 +3997,8 @@ var ha = {}, wl = {
|
|
|
3996
3997
|
var c = /* @__PURE__ */ Object.create(null);
|
|
3997
3998
|
if (r.r(c), Object.defineProperty(c, "default", { enumerable: !0, value: o }), s & 2 && typeof o != "string")
|
|
3998
3999
|
for (var u in o)
|
|
3999
|
-
r.d(c, u, function(
|
|
4000
|
-
return o[
|
|
4000
|
+
r.d(c, u, function(p) {
|
|
4001
|
+
return o[p];
|
|
4001
4002
|
}.bind(null, u));
|
|
4002
4003
|
return c;
|
|
4003
4004
|
}, r.n = function(o) {
|
|
@@ -4026,13 +4027,13 @@ var ha = {}, wl = {
|
|
|
4026
4027
|
/***/
|
|
4027
4028
|
function(e, a, r) {
|
|
4028
4029
|
var o = this && this.__assign || function() {
|
|
4029
|
-
return o = Object.assign || function(
|
|
4030
|
-
for (var
|
|
4031
|
-
|
|
4032
|
-
for (var b in
|
|
4033
|
-
Object.prototype.hasOwnProperty.call(
|
|
4030
|
+
return o = Object.assign || function(p) {
|
|
4031
|
+
for (var m, d = 1, g = arguments.length; d < g; d++) {
|
|
4032
|
+
m = arguments[d];
|
|
4033
|
+
for (var b in m)
|
|
4034
|
+
Object.prototype.hasOwnProperty.call(m, b) && (p[b] = m[b]);
|
|
4034
4035
|
}
|
|
4035
|
-
return
|
|
4036
|
+
return p;
|
|
4036
4037
|
}, o.apply(this, arguments);
|
|
4037
4038
|
};
|
|
4038
4039
|
Object.defineProperty(a, "__esModule", { value: !0 }), a.ShortcutButtonsPlugin = void 0;
|
|
@@ -4044,15 +4045,15 @@ var ha = {}, wl = {
|
|
|
4044
4045
|
"class",
|
|
4045
4046
|
"tabindex"
|
|
4046
4047
|
]);
|
|
4047
|
-
function u(
|
|
4048
|
-
var
|
|
4048
|
+
function u(p) {
|
|
4049
|
+
var m = o(o({}, s), p);
|
|
4049
4050
|
return function(d) {
|
|
4050
4051
|
var g;
|
|
4051
4052
|
function b(O) {
|
|
4052
4053
|
O.stopPropagation(), O.preventDefault();
|
|
4053
4054
|
var I = O.target;
|
|
4054
|
-
if (!(I.tagName.toLowerCase() !== "button" || typeof
|
|
4055
|
-
for (var P = parseInt(I.dataset.index, 10), z = Array.isArray(
|
|
4055
|
+
if (!(I.tagName.toLowerCase() !== "button" || typeof m.onClick > "u"))
|
|
4056
|
+
for (var P = parseInt(I.dataset.index, 10), z = Array.isArray(m.onClick) ? m.onClick : [m.onClick], U = 0, ne = z; U < ne.length; U++) {
|
|
4056
4057
|
var ee = ne[U];
|
|
4057
4058
|
typeof ee == "function" && ee(P, d);
|
|
4058
4059
|
}
|
|
@@ -4078,12 +4079,12 @@ var ha = {}, wl = {
|
|
|
4078
4079
|
* Initialize plugin.
|
|
4079
4080
|
*/
|
|
4080
4081
|
onReady: function() {
|
|
4081
|
-
if (g = document.createElement("div"), g.classList.add("shortcut-buttons-flatpickr-wrapper",
|
|
4082
|
+
if (g = document.createElement("div"), g.classList.add("shortcut-buttons-flatpickr-wrapper", m.theme), typeof m.label < "u" && m.label.length) {
|
|
4082
4083
|
var O = document.createElement("div");
|
|
4083
|
-
O.classList.add("shortcut-buttons-flatpickr-label"), O.textContent =
|
|
4084
|
+
O.classList.add("shortcut-buttons-flatpickr-label"), O.textContent = m.label, g.appendChild(O);
|
|
4084
4085
|
}
|
|
4085
4086
|
var I = document.createElement("div");
|
|
4086
|
-
I.classList.add("shortcut-buttons-flatpickr-buttons"), (Array.isArray(
|
|
4087
|
+
I.classList.add("shortcut-buttons-flatpickr-buttons"), (Array.isArray(m.button) ? m.button : [m.button]).forEach(function(P, z) {
|
|
4087
4088
|
var U = document.createElement("button");
|
|
4088
4089
|
U.type = "button", U.classList.add("shortcut-buttons-flatpickr-button"), U.textContent = P.label, U.dataset.index = String(z), typeof P.attributes < "u" && v(U, P.attributes), I.appendChild(U), d.pluginElements.push(U);
|
|
4089
4090
|
}), g.appendChild(I), d.calendarContainer.appendChild(g), g.addEventListener("click", b), g.addEventListener("keydown", F);
|
|
@@ -4241,7 +4242,7 @@ var Un = {}, Cl = {
|
|
|
4241
4242
|
s.l10ns.at = c, s.l10ns;
|
|
4242
4243
|
var u = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
4243
4244
|
l10ns: {}
|
|
4244
|
-
},
|
|
4245
|
+
}, p = {
|
|
4245
4246
|
weekdays: {
|
|
4246
4247
|
shorthand: ["B.", "B.e.", "Ç.a.", "Ç.", "C.a.", "C.", "Ş."],
|
|
4247
4248
|
longhand: [
|
|
@@ -4295,8 +4296,8 @@ var Un = {}, Cl = {
|
|
|
4295
4296
|
amPM: ["GƏ", "GS"],
|
|
4296
4297
|
time_24hr: !0
|
|
4297
4298
|
};
|
|
4298
|
-
u.l10ns.az =
|
|
4299
|
-
var
|
|
4299
|
+
u.l10ns.az = p, u.l10ns;
|
|
4300
|
+
var m = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
4300
4301
|
l10ns: {}
|
|
4301
4302
|
}, d = {
|
|
4302
4303
|
weekdays: {
|
|
@@ -4353,7 +4354,7 @@ var Un = {}, Cl = {
|
|
|
4353
4354
|
yearAriaLabel: "Год",
|
|
4354
4355
|
time_24hr: !0
|
|
4355
4356
|
};
|
|
4356
|
-
|
|
4357
|
+
m.l10ns.be = d, m.l10ns;
|
|
4357
4358
|
var g = typeof window < "u" && window.flatpickr !== void 0 ? window.flatpickr : {
|
|
4358
4359
|
l10ns: {}
|
|
4359
4360
|
}, b = {
|
|
@@ -7511,7 +7512,7 @@ var Un = {}, Cl = {
|
|
|
7511
7512
|
var ro = {
|
|
7512
7513
|
ar: o,
|
|
7513
7514
|
at: c,
|
|
7514
|
-
az:
|
|
7515
|
+
az: p,
|
|
7515
7516
|
be: d,
|
|
7516
7517
|
bg: v,
|
|
7517
7518
|
bn: I,
|
|
@@ -7611,7 +7612,7 @@ const Al = {
|
|
|
7611
7612
|
},
|
|
7612
7613
|
emits: ["change", "blur", "update:modelValue", "onOpen", "onClose"],
|
|
7613
7614
|
setup(t, { emit: n }) {
|
|
7614
|
-
const e = t, a = (C) => C !== null && typeof C.fp < "u", r = J(null), o = J(null), s = J(!1), c = J("sk"), u = J(""),
|
|
7615
|
+
const e = t, a = (C) => C !== null && typeof C.fp < "u", r = J(null), o = J(null), s = J(!1), c = J("sk"), u = J(""), p = J(null), { t: m } = G(), d = (C) => C.replace("Z", "000Z"), g = (C) => {
|
|
7615
7616
|
C !== e.modelValue && (n("update:modelValue", C), n("change"));
|
|
7616
7617
|
}, b = (C) => {
|
|
7617
7618
|
if (C === null || S(C)) {
|
|
@@ -7640,7 +7641,7 @@ const Al = {
|
|
|
7640
7641
|
}
|
|
7641
7642
|
(j = r.value) == null || j.fp.setDate(A, !0), W.value.textFieldValue.$touch(), n("blur");
|
|
7642
7643
|
}, P = () => {
|
|
7643
|
-
|
|
7644
|
+
p.value = e.defaultValue, n("update:modelValue", f(e.defaultValue));
|
|
7644
7645
|
}, z = T(() => e.type === "datetime" ? "d.m.Y H:i" : "d.m.Y"), U = T(() => e.type === "datetime" ? "dd.mm.yyyy hh:mm" : "dd.mm.yyyy"), ne = T(() => e.enable && e.enable.length > 0 ? e.enable : [
|
|
7645
7646
|
{
|
|
7646
7647
|
from: new Date(1901, 1),
|
|
@@ -7650,7 +7651,7 @@ const Al = {
|
|
|
7650
7651
|
kl({
|
|
7651
7652
|
button: [
|
|
7652
7653
|
{
|
|
7653
|
-
label:
|
|
7654
|
+
label: m("common.button.now")
|
|
7654
7655
|
}
|
|
7655
7656
|
],
|
|
7656
7657
|
onClick: (C, A) => {
|
|
@@ -7697,10 +7698,10 @@ const Al = {
|
|
|
7697
7698
|
};
|
|
7698
7699
|
Nt(() => {
|
|
7699
7700
|
if ((ye(e.modelValue) || S(e.modelValue)) && !ye(e.defaultValue)) {
|
|
7700
|
-
|
|
7701
|
+
p.value = e.defaultValue;
|
|
7701
7702
|
return;
|
|
7702
7703
|
}
|
|
7703
|
-
|
|
7704
|
+
p.value = S(e.modelValue) ? null : e.modelValue;
|
|
7704
7705
|
});
|
|
7705
7706
|
const Q = Zr(), Me = T(() => ({
|
|
7706
7707
|
textFieldValue: {
|
|
@@ -7732,7 +7733,7 @@ const Al = {
|
|
|
7732
7733
|
ref: r,
|
|
7733
7734
|
config: f(me),
|
|
7734
7735
|
disabled: t.disabled,
|
|
7735
|
-
"model-value":
|
|
7736
|
+
"model-value": p.value,
|
|
7736
7737
|
"onUpdate:modelValue": b,
|
|
7737
7738
|
onOnClose: v,
|
|
7738
7739
|
onOnOpen: F,
|
|
@@ -7779,7 +7780,7 @@ const Qr = /* @__PURE__ */ gt(Ml, [["__scopeId", "data-v-6a404d76"]]), nh = /* @
|
|
|
7779
7780
|
}, u = T(() => {
|
|
7780
7781
|
var d, g;
|
|
7781
7782
|
return S(e.errorMessage) ? (g = (d = e.v) == null ? void 0 : d.$errors) != null && g.length ? [e.v.$errors.map((b) => b.$message).join(" ")] : [] : [e.errorMessage];
|
|
7782
|
-
}),
|
|
7783
|
+
}), p = T(() => {
|
|
7783
7784
|
var g, b;
|
|
7784
7785
|
if (!S(e.label))
|
|
7785
7786
|
return e.label;
|
|
@@ -7787,7 +7788,7 @@ const Qr = /* @__PURE__ */ gt(Ml, [["__scopeId", "data-v-6a404d76"]]), nh = /* @
|
|
|
7787
7788
|
return "";
|
|
7788
7789
|
const { end: d } = it((b = e.v) == null ? void 0 : b.$path, ".");
|
|
7789
7790
|
return a(r + "." + o + ".model." + d);
|
|
7790
|
-
}),
|
|
7791
|
+
}), m = T(() => {
|
|
7791
7792
|
var d, g;
|
|
7792
7793
|
return S(e.required) ? !!((d = e.v) != null && d.required && ((g = e.v) == null ? void 0 : g.required.$params.type) === "required") : e.required;
|
|
7793
7794
|
});
|
|
@@ -7795,8 +7796,8 @@ const Qr = /* @__PURE__ */ gt(Ml, [["__scopeId", "data-v-6a404d76"]]), nh = /* @
|
|
|
7795
7796
|
"model-value": t.modelValue,
|
|
7796
7797
|
"data-cy": t.dataCy,
|
|
7797
7798
|
"error-messages": f(u),
|
|
7798
|
-
required: f(
|
|
7799
|
-
label: f(
|
|
7799
|
+
required: f(m),
|
|
7800
|
+
label: f(p),
|
|
7800
7801
|
clearable: t.clearable,
|
|
7801
7802
|
onBlur: c,
|
|
7802
7803
|
"onUpdate:modelValue": g[0] || (g[0] = (b) => s(b))
|
|
@@ -7874,7 +7875,7 @@ const xl = {
|
|
|
7874
7875
|
set(M) {
|
|
7875
7876
|
n("update:modelValue", ct(M));
|
|
7876
7877
|
}
|
|
7877
|
-
}), r = J(""), o = J(!1), s = J(void 0), { t: c } = G({ useScope: "global" }), { innerFilter: u } = ya(e),
|
|
7878
|
+
}), r = J(""), o = J(!1), s = J(void 0), { t: c } = G({ useScope: "global" }), { innerFilter: u } = ya(e), p = be(nt, void 0), m = be(at, void 0), d = () => {
|
|
7878
7879
|
var M;
|
|
7879
7880
|
o.value = !0, n("blur", e.modelValue), (M = e.v) == null || M.$touch();
|
|
7880
7881
|
}, g = T(() => {
|
|
@@ -7884,10 +7885,10 @@ const xl = {
|
|
|
7884
7885
|
var x, j;
|
|
7885
7886
|
if (!S(e.label))
|
|
7886
7887
|
return e.label;
|
|
7887
|
-
if (S(
|
|
7888
|
+
if (S(p) || S(m) || S((x = e.v) == null ? void 0 : x.$path))
|
|
7888
7889
|
return "";
|
|
7889
7890
|
const { end: M } = it((j = e.v) == null ? void 0 : j.$path, ".");
|
|
7890
|
-
return c(
|
|
7891
|
+
return c(p + "." + m + ".model." + M);
|
|
7891
7892
|
}), F = T(() => {
|
|
7892
7893
|
var M, x;
|
|
7893
7894
|
return S(e.required) ? ((M = e.v) == null ? void 0 : M.required) && ((x = e.v) == null ? void 0 : x.required.$params.type) === "required" : e.required;
|
|
@@ -8004,7 +8005,7 @@ const xl = {
|
|
|
8004
8005
|
return "";
|
|
8005
8006
|
const { end: b } = it((v = e.v) == null ? void 0 : v.$path, ".");
|
|
8006
8007
|
return a(r + "." + o + ".model." + b);
|
|
8007
|
-
}), c = J(!1), u = J(!1),
|
|
8008
|
+
}), c = J(!1), u = J(!1), p = J(""), m = T(() => e.modelValue), d = J(e.modelValue), g = async () => {
|
|
8008
8009
|
if (c.value)
|
|
8009
8010
|
return;
|
|
8010
8011
|
if (c.value = !0, u.value = !1, d.value === !0) {
|
|
@@ -8015,13 +8016,13 @@ const xl = {
|
|
|
8015
8016
|
const b = await e.callbackToTrue();
|
|
8016
8017
|
n("update:modelValue", b), d.value = b, b || (u.value = !0), c.value = !1;
|
|
8017
8018
|
};
|
|
8018
|
-
return Ve(
|
|
8019
|
+
return Ve(m, (b, F) => {
|
|
8019
8020
|
b !== F && (d.value = b, u.value = !1);
|
|
8020
8021
|
}), Nt(() => {
|
|
8021
|
-
|
|
8022
|
+
p.value = "remote-switch-" + Date.now();
|
|
8022
8023
|
}), (b, F) => (k(), H("div", Tl, [
|
|
8023
8024
|
w(Fo, {
|
|
8024
|
-
id:
|
|
8025
|
+
id: p.value,
|
|
8025
8026
|
modelValue: d.value,
|
|
8026
8027
|
"onUpdate:modelValue": F[0] || (F[0] = (v) => d.value = v),
|
|
8027
8028
|
loading: c.value,
|
|
@@ -8030,7 +8031,7 @@ const xl = {
|
|
|
8030
8031
|
}, null, 8, ["id", "modelValue", "loading", "disabled", "onClick"]),
|
|
8031
8032
|
t.hideLabel ? Z("", !0) : (k(), H("label", {
|
|
8032
8033
|
key: 0,
|
|
8033
|
-
for:
|
|
8034
|
+
for: p.value,
|
|
8034
8035
|
class: "v-label v-label--clickable"
|
|
8035
8036
|
}, $(f(s)), 9, Sl))
|
|
8036
8037
|
]));
|
|
@@ -8056,7 +8057,7 @@ const xl = {
|
|
|
8056
8057
|
return "";
|
|
8057
8058
|
const { end: b } = it((v = e.v) == null ? void 0 : v.$path, ".");
|
|
8058
8059
|
return a(r + "." + o + ".model." + b);
|
|
8059
|
-
}), c = J(!1), u = J(!1),
|
|
8060
|
+
}), c = J(!1), u = J(!1), p = J(""), m = T(() => e.modelValue), d = J(e.modelValue), g = async () => {
|
|
8060
8061
|
if (c.value)
|
|
8061
8062
|
return;
|
|
8062
8063
|
if (c.value = !0, u.value = !1, d.value === !0) {
|
|
@@ -8067,13 +8068,13 @@ const xl = {
|
|
|
8067
8068
|
const b = await e.callbackToTrue();
|
|
8068
8069
|
n("update:modelValue", b), d.value = b, b || (u.value = !0), c.value = !1;
|
|
8069
8070
|
};
|
|
8070
|
-
return Ve(
|
|
8071
|
+
return Ve(m, (b, F) => {
|
|
8071
8072
|
b !== F && (d.value = b, u.value = !1);
|
|
8072
8073
|
}), Nt(() => {
|
|
8073
|
-
|
|
8074
|
+
p.value = "a-remote-switch-" + Date.now();
|
|
8074
8075
|
}), (b, F) => (k(), H("div", $l, [
|
|
8075
8076
|
w(ie, {
|
|
8076
|
-
id:
|
|
8077
|
+
id: p.value,
|
|
8077
8078
|
icon: "",
|
|
8078
8079
|
class: "a-switch-fix-click",
|
|
8079
8080
|
color: "transparent",
|
|
@@ -8110,7 +8111,7 @@ const xl = {
|
|
|
8110
8111
|
}, 8, ["id", "width", "onClick"]),
|
|
8111
8112
|
t.hideLabel ? Z("", !0) : (k(), H("label", {
|
|
8112
8113
|
key: 0,
|
|
8113
|
-
for:
|
|
8114
|
+
for: p.value,
|
|
8114
8115
|
class: "v-label v-label--clickable"
|
|
8115
8116
|
}, $(f(s)), 9, Ol))
|
|
8116
8117
|
]));
|
|
@@ -8149,7 +8150,7 @@ const Il = { key: 0 }, Vl = {
|
|
|
8149
8150
|
}, u = T(() => {
|
|
8150
8151
|
var g, b;
|
|
8151
8152
|
return S(e.errorMessage) ? (b = (g = e.v) == null ? void 0 : g.$errors) != null && b.length ? e.v.$errors.map((F) => F.$message) : [] : [e.errorMessage];
|
|
8152
|
-
}),
|
|
8153
|
+
}), p = T(() => {
|
|
8153
8154
|
var b, F;
|
|
8154
8155
|
if (!S(e.label))
|
|
8155
8156
|
return e.label;
|
|
@@ -8157,7 +8158,7 @@ const Il = { key: 0 }, Vl = {
|
|
|
8157
8158
|
return "";
|
|
8158
8159
|
const { end: g } = it((F = e.v) == null ? void 0 : F.$path, ".");
|
|
8159
8160
|
return s(r + "." + o + ".model." + g);
|
|
8160
|
-
}),
|
|
8161
|
+
}), m = T(() => {
|
|
8161
8162
|
var g, b;
|
|
8162
8163
|
return S(e.required) ? !!((g = e.v) != null && g.required && ((b = e.v) == null ? void 0 : b.required.$params.type) === "required") : e.required;
|
|
8163
8164
|
}), d = T(() => e.multiple !== !1);
|
|
@@ -8175,8 +8176,8 @@ const Il = { key: 0 }, Vl = {
|
|
|
8175
8176
|
}, {
|
|
8176
8177
|
label: y(() => [
|
|
8177
8178
|
t.hideLabel ? Z("", !0) : (k(), H("span", Il, [
|
|
8178
|
-
B($(f(
|
|
8179
|
-
f(
|
|
8179
|
+
B($(f(p)), 1),
|
|
8180
|
+
f(m) ? (k(), H("span", Vl)) : Z("", !0)
|
|
8180
8181
|
]))
|
|
8181
8182
|
]),
|
|
8182
8183
|
_: 1
|
|
@@ -8200,14 +8201,14 @@ const Il = { key: 0 }, Vl = {
|
|
|
8200
8201
|
}), { t: o } = G(), s = T(() => e.modelValue.titleT ? o(e.modelValue.titleT) : void 0);
|
|
8201
8202
|
return (c, u) => (k(), E(an, {
|
|
8202
8203
|
modelValue: f(r),
|
|
8203
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
8204
|
+
"onUpdate:modelValue": u[0] || (u[0] = (p) => ze(r) ? r.value = p : null),
|
|
8204
8205
|
items: t.items,
|
|
8205
8206
|
label: f(s),
|
|
8206
8207
|
multiple: t.modelValue.multiple,
|
|
8207
8208
|
clearable: !t.modelValue.mandatory,
|
|
8208
8209
|
"data-cy": "filter-value",
|
|
8209
|
-
onClear: u[1] || (u[1] = (
|
|
8210
|
-
onChange: u[2] || (u[2] = (
|
|
8210
|
+
onClear: u[1] || (u[1] = (p) => f(a)(t.modelValue)),
|
|
8211
|
+
onChange: u[2] || (u[2] = (p) => n("change"))
|
|
8211
8212
|
}, null, 8, ["modelValue", "items", "label", "multiple", "clearable"]));
|
|
8212
8213
|
}
|
|
8213
8214
|
}), dh = /* @__PURE__ */ L({
|
|
@@ -8230,9 +8231,9 @@ const Il = { key: 0 }, Vl = {
|
|
|
8230
8231
|
set(W) {
|
|
8231
8232
|
n("update:modelValue", { ...e.modelValue, model: ct(W) });
|
|
8232
8233
|
}
|
|
8233
|
-
}), r = J(""), o = J(!1), s = J(void 0), { t: c } = G({ useScope: "global" }), { innerFilter: u } = ya(e),
|
|
8234
|
+
}), r = J(""), o = J(!1), s = J(void 0), { t: c } = G({ useScope: "global" }), { innerFilter: u } = ya(e), p = () => {
|
|
8234
8235
|
o.value = !0;
|
|
8235
|
-
},
|
|
8236
|
+
}, m = T(() => e.modelValue.titleT ? c(e.modelValue.titleT) : void 0), d = T(() => e.modelValue.multiple !== !1), g = Gn(), b = J([]), F = J([]), v = T(() => {
|
|
8236
8237
|
const W = /* @__PURE__ */ new Map();
|
|
8237
8238
|
return F.value.forEach((D) => {
|
|
8238
8239
|
W.set(D.value, { value: D.value, title: D.title });
|
|
@@ -8303,11 +8304,11 @@ const Il = { key: 0 }, Vl = {
|
|
|
8303
8304
|
placeholder: f(Me),
|
|
8304
8305
|
multiple: f(d),
|
|
8305
8306
|
clearable: !t.modelValue.mandatory,
|
|
8306
|
-
label: f(
|
|
8307
|
+
label: f(m),
|
|
8307
8308
|
chips: t.modelValue.multiple,
|
|
8308
8309
|
loading: O.value,
|
|
8309
8310
|
"onUpdate:search": oe,
|
|
8310
|
-
onBlur:
|
|
8311
|
+
onBlur: p,
|
|
8311
8312
|
onFocus: ue,
|
|
8312
8313
|
"onClick:clear": Q
|
|
8313
8314
|
}, null, 8, ["modelValue", "items", "placeholder", "multiple", "clearable", "label", "chips", "loading"]));
|
|
@@ -8388,7 +8389,7 @@ const ch = /* @__PURE__ */ gt(Pl, [["__scopeId", "data-v-2ee04bbf"]]), fh = /* @
|
|
|
8388
8389
|
]);
|
|
8389
8390
|
return (c, u) => (k(), E(Eo, {
|
|
8390
8391
|
modelValue: f(a),
|
|
8391
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
8392
|
+
"onUpdate:modelValue": u[0] || (u[0] = (p) => ze(a) ? a.value = p : null),
|
|
8392
8393
|
label: f(o),
|
|
8393
8394
|
items: f(s)
|
|
8394
8395
|
}, null, 8, ["modelValue", "label", "items"]));
|
|
@@ -8482,7 +8483,7 @@ const mh = /* @__PURE__ */ L({
|
|
|
8482
8483
|
r.value || S(u) || u._loaded === !1 || (a.value = u, r.value = !0);
|
|
8483
8484
|
},
|
|
8484
8485
|
{ immediate: !0 }
|
|
8485
|
-
), (u,
|
|
8486
|
+
), (u, p) => (k(), H("div", {
|
|
8486
8487
|
class: ke(t.containerClass)
|
|
8487
8488
|
}, [
|
|
8488
8489
|
f(ye)(t.id) || f(S)(t.id) ? Ae(u.$slots, "empty", { key: 0 }, () => [
|
|
@@ -8810,18 +8811,18 @@ const vh = /* @__PURE__ */ gt(Jl, [["render", Wl]]), yh = /* @__PURE__ */ L({
|
|
|
8810
8811
|
},
|
|
8811
8812
|
emits: ["deleteRecord"],
|
|
8812
8813
|
setup(t, { expose: n, emit: e }) {
|
|
8813
|
-
const a = t, r = J(!1), o = (
|
|
8814
|
-
lt(
|
|
8814
|
+
const a = t, r = J(!1), o = (m) => {
|
|
8815
|
+
lt(m), r.value = !0;
|
|
8815
8816
|
}, s = () => {
|
|
8816
8817
|
e("deleteRecord"), a.disableCloseAfterConfirm || c();
|
|
8817
8818
|
}, c = () => {
|
|
8818
8819
|
r.value = !1;
|
|
8819
8820
|
}, u = () => {
|
|
8820
8821
|
c();
|
|
8821
|
-
}, { t:
|
|
8822
|
+
}, { t: p } = G();
|
|
8822
8823
|
return n({
|
|
8823
8824
|
closeDialog: c
|
|
8824
|
-
}), (
|
|
8825
|
+
}), (m, d) => {
|
|
8825
8826
|
const g = Et("ABtnTertiary"), b = Et("ABtnPrimary");
|
|
8826
8827
|
return k(), H(Ue, null, [
|
|
8827
8828
|
w(ie, {
|
|
@@ -8844,7 +8845,7 @@ const vh = /* @__PURE__ */ gt(Jl, [["render", Wl]]), yh = /* @__PURE__ */ L({
|
|
|
8844
8845
|
location: "bottom"
|
|
8845
8846
|
}, {
|
|
8846
8847
|
default: y(() => [
|
|
8847
|
-
B($(f(
|
|
8848
|
+
B($(f(p)(t.buttonT)), 1)
|
|
8848
8849
|
]),
|
|
8849
8850
|
_: 1
|
|
8850
8851
|
})
|
|
@@ -8866,7 +8867,7 @@ const vh = /* @__PURE__ */ gt(Jl, [["render", Wl]]), yh = /* @__PURE__ */ L({
|
|
|
8866
8867
|
default: y(() => [
|
|
8867
8868
|
w($r, { onOnCancel: u }, {
|
|
8868
8869
|
default: y(() => [
|
|
8869
|
-
B($(f(
|
|
8870
|
+
B($(f(p)(t.dialogMessageT)), 1)
|
|
8870
8871
|
]),
|
|
8871
8872
|
_: 1
|
|
8872
8873
|
}),
|
|
@@ -8879,7 +8880,7 @@ const vh = /* @__PURE__ */ gt(Jl, [["render", Wl]]), yh = /* @__PURE__ */ L({
|
|
|
8879
8880
|
onClick: re(u, ["stop"])
|
|
8880
8881
|
}, {
|
|
8881
8882
|
default: y(() => [
|
|
8882
|
-
B($(f(
|
|
8883
|
+
B($(f(p)(t.dialogCancelButtonT)), 1)
|
|
8883
8884
|
]),
|
|
8884
8885
|
_: 1
|
|
8885
8886
|
}, 8, ["disabled", "onClick"]),
|
|
@@ -8890,7 +8891,7 @@ const vh = /* @__PURE__ */ gt(Jl, [["render", Wl]]), yh = /* @__PURE__ */ L({
|
|
|
8890
8891
|
onClick: re(s, ["stop"])
|
|
8891
8892
|
}, {
|
|
8892
8893
|
default: y(() => [
|
|
8893
|
-
B($(f(
|
|
8894
|
+
B($(f(p)(t.dialogConfirmButtonT)), 1)
|
|
8894
8895
|
]),
|
|
8895
8896
|
_: 1
|
|
8896
8897
|
}, 8, ["color", "loading", "onClick"])
|
|
@@ -9235,14 +9236,14 @@ const Zl = { key: 0 }, Ql = { key: 1 }, Xl = { key: 2 }, Th = /* @__PURE__ */ L(
|
|
|
9235
9236
|
const { setThemeDark: n, setThemeAuto: e, setThemeLight: a, settings: r } = Kl(), { t: o } = G(), s = J(!1);
|
|
9236
9237
|
return (c, u) => (k(), E(_t, {
|
|
9237
9238
|
modelValue: s.value,
|
|
9238
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
9239
|
+
"onUpdate:modelValue": u[0] || (u[0] = (p) => s.value = p),
|
|
9239
9240
|
"close-on-content-click": ""
|
|
9240
9241
|
}, {
|
|
9241
|
-
activator: y(({ props:
|
|
9242
|
+
activator: y(({ props: p }) => [
|
|
9242
9243
|
w(ie, ba({
|
|
9243
9244
|
class: "pl-1",
|
|
9244
9245
|
rounded: "pill"
|
|
9245
|
-
},
|
|
9246
|
+
}, p, {
|
|
9246
9247
|
variant: "text",
|
|
9247
9248
|
"data-cy": "settings-theme"
|
|
9248
9249
|
}), {
|
|
@@ -9427,18 +9428,18 @@ const vs = /* @__PURE__ */ gt(fs, [["render", gs]]), ys = { class: "flag" }, pr
|
|
|
9427
9428
|
__name: "ALanguageSelect",
|
|
9428
9429
|
emits: ["afterChange"],
|
|
9429
9430
|
setup(t, { emit: n }) {
|
|
9430
|
-
const e = be(qn), a = be(Hr), r = be(Jr), { setLanguage: o } = es(a, r), { currentLanguageCode: s } = ts(), c = (
|
|
9431
|
-
o(
|
|
9431
|
+
const e = be(qn), a = be(Hr), r = be(Jr), { setLanguage: o } = es(a, r), { currentLanguageCode: s } = ts(), c = (m) => {
|
|
9432
|
+
o(m) && n("afterChange", m);
|
|
9432
9433
|
}, u = T(() => {
|
|
9433
|
-
const
|
|
9434
|
-
return S(
|
|
9435
|
-
}),
|
|
9436
|
-
(
|
|
9434
|
+
const m = Nn.find((d) => d.code === s.value);
|
|
9435
|
+
return S(m) ? Nn[0] : m;
|
|
9436
|
+
}), p = T(() => Nn.filter(
|
|
9437
|
+
(m) => {
|
|
9437
9438
|
var d;
|
|
9438
|
-
return (a.includes(
|
|
9439
|
+
return (a.includes(m.code) || m.code === "xx") && (!m.adminOnly || ((d = e.value) == null ? void 0 : d.roles.includes(Wr)));
|
|
9439
9440
|
}
|
|
9440
9441
|
));
|
|
9441
|
-
return (
|
|
9442
|
+
return (m, d) => (k(), E(_t, null, {
|
|
9442
9443
|
activator: y(({ props: g }) => [
|
|
9443
9444
|
w(ie, ba({
|
|
9444
9445
|
class: "pl-1",
|
|
@@ -9472,7 +9473,7 @@ const vs = /* @__PURE__ */ gt(fs, [["render", gs]]), ys = { class: "flag" }, pr
|
|
|
9472
9473
|
default: y(() => [
|
|
9473
9474
|
w(nn, { dense: "" }, {
|
|
9474
9475
|
default: y(() => [
|
|
9475
|
-
(k(!0), H(Ue, null, Ct(f(
|
|
9476
|
+
(k(!0), H(Ue, null, Ct(f(p), (g) => (k(), E(Qe, {
|
|
9476
9477
|
key: g.code,
|
|
9477
9478
|
onClick: re((b) => c(g.code), ["stop"])
|
|
9478
9479
|
}, {
|
|
@@ -9628,15 +9629,15 @@ const Sh = /* @__PURE__ */ gt(bs, [["__scopeId", "data-v-a2015e08"]]), ws = ["on
|
|
|
9628
9629
|
["#FF6F00", "#FF5722", "#795548", "#607D8B"],
|
|
9629
9630
|
["#757575", "#000000", "#3F51B5"]
|
|
9630
9631
|
], r = J(""), o = () => {
|
|
9631
|
-
const
|
|
9632
|
-
return r.value = a[
|
|
9633
|
-
}, s = T(() => e.modelValue.length > 0 ? "flat" : "tonal"), c = T(() => e.modelValue.length > 0 ? e.modelValue : void 0), u = (
|
|
9634
|
-
n("update:modelValue",
|
|
9632
|
+
const p = Math.floor(Math.random() * a.length);
|
|
9633
|
+
return r.value = a[p][Math.floor(Math.random() * a[p].length)], r.value;
|
|
9634
|
+
}, s = T(() => e.modelValue.length > 0 ? "flat" : "tonal"), c = T(() => e.modelValue.length > 0 ? e.modelValue : void 0), u = (p) => {
|
|
9635
|
+
n("update:modelValue", p);
|
|
9635
9636
|
};
|
|
9636
9637
|
return Ve(
|
|
9637
9638
|
() => e.modelValue,
|
|
9638
|
-
(
|
|
9639
|
-
if (
|
|
9639
|
+
(p, m) => {
|
|
9640
|
+
if (p !== m && p.length !== 7 && p.length !== 7 && e.randomColor) {
|
|
9640
9641
|
if (r.value === "") {
|
|
9641
9642
|
n("update:modelValue", o());
|
|
9642
9643
|
return;
|
|
@@ -9645,7 +9646,7 @@ const Sh = /* @__PURE__ */ gt(bs, [["__scopeId", "data-v-a2015e08"]]), ws = ["on
|
|
|
9645
9646
|
}
|
|
9646
9647
|
},
|
|
9647
9648
|
{ immediate: !0 }
|
|
9648
|
-
), (
|
|
9649
|
+
), (p, m) => (k(), H("div", null, [
|
|
9649
9650
|
t.hideLabel ? Z("", !0) : (k(), H("label", Ds, [
|
|
9650
9651
|
B($(t.label) + " ", 1),
|
|
9651
9652
|
t.required ? (k(), H("span", As)) : Z("", !0)
|
|
@@ -9885,11 +9886,11 @@ const Ms = /* @__PURE__ */ te("br", null, null, -1), Ih = /* @__PURE__ */ L({
|
|
|
9885
9886
|
set(D) {
|
|
9886
9887
|
n("update:modelValue", ct(D));
|
|
9887
9888
|
}
|
|
9888
|
-
}), { t: c } = G(), u = be(nt, void 0),
|
|
9889
|
-
|
|
9889
|
+
}), { t: c } = G(), u = be(nt, void 0), p = be(at, void 0), m = J(!1), d = J(""), g = J(!1), { innerFilter: b } = ya(e), F = Gn(), v = J(/* @__PURE__ */ new Map()), O = () => {
|
|
9890
|
+
m.value = !0, n("focus", s.value);
|
|
9890
9891
|
}, I = () => {
|
|
9891
9892
|
var D;
|
|
9892
|
-
|
|
9893
|
+
m.value = !1, (D = e.v) == null || D.$touch(), n("blur", s.value);
|
|
9893
9894
|
}, P = T(() => {
|
|
9894
9895
|
var D, C;
|
|
9895
9896
|
return S(e.errorMessage) ? (C = (D = e.v) == null ? void 0 : D.$errors) != null && C.length ? e.v.$errors.map((A) => A.$message) : [] : [e.errorMessage];
|
|
@@ -9897,15 +9898,15 @@ const Ms = /* @__PURE__ */ te("br", null, null, -1), Ih = /* @__PURE__ */ L({
|
|
|
9897
9898
|
var C, A;
|
|
9898
9899
|
if (!S(e.label))
|
|
9899
9900
|
return e.label;
|
|
9900
|
-
if (S(u) || S(
|
|
9901
|
+
if (S(u) || S(p) || S((C = e.v) == null ? void 0 : C.$path))
|
|
9901
9902
|
return "";
|
|
9902
9903
|
const { end: D } = it((A = e.v) == null ? void 0 : A.$path, ".");
|
|
9903
|
-
return c(u + "." +
|
|
9904
|
+
return c(u + "." + p + ".model." + D);
|
|
9904
9905
|
}), U = T(() => {
|
|
9905
9906
|
var D, C;
|
|
9906
9907
|
return S(e.required) ? ((D = e.v) == null ? void 0 : D.required) && ((C = e.v) == null ? void 0 : C.required.$params.type) === "required" : e.required;
|
|
9907
9908
|
}), ne = T(() => e.multiple !== !1), ee = (D) => {
|
|
9908
|
-
!e.multiple && !
|
|
9909
|
+
!e.multiple && !m.value && D.length === 0 || (d.value = D);
|
|
9909
9910
|
}, ue = async (D) => {
|
|
9910
9911
|
g.value = !0;
|
|
9911
9912
|
const C = b.value[e.filterByField];
|
|
@@ -9937,7 +9938,7 @@ const Ms = /* @__PURE__ */ te("br", null, null, -1), Ih = /* @__PURE__ */ L({
|
|
|
9937
9938
|
},
|
|
9938
9939
|
{ debounce: 300, maxWait: 1e3 }
|
|
9939
9940
|
), Ve(d, (D, C) => {
|
|
9940
|
-
if (D.length === 0 &&
|
|
9941
|
+
if (D.length === 0 && m.value === !0 && Date.now() - Me.value > 200) {
|
|
9941
9942
|
d.value = C;
|
|
9942
9943
|
return;
|
|
9943
9944
|
}
|
|
@@ -10181,38 +10182,38 @@ const zh = (t, n = 2) => {
|
|
|
10181
10182
|
return "0 Bytes";
|
|
10182
10183
|
const e = 1024, a = n < 0 ? 0 : n, r = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], o = Math.floor(Math.log(t) / Math.log(e));
|
|
10183
10184
|
return parseFloat((t / Math.pow(e, o)).toFixed(a)) + " " + r[o];
|
|
10184
|
-
}, xt = (t) => Fi.includes(t), Tt = (t, n, e = "") => Sr(n) ? t : Ko(e === "" ? t : e, n), Uh = (t, n, e = "", a = {}, r = null, o, s, c = {}) => new Promise((u,
|
|
10185
|
-
const
|
|
10186
|
-
e !== "" && (
|
|
10185
|
+
}, xt = (t) => Fi.includes(t), Tt = (t, n, e = "") => Sr(n) ? t : Ko(e === "" ? t : e, n), Uh = (t, n, e = "", a = {}, r = null, o, s, c = {}) => new Promise((u, p) => {
|
|
10186
|
+
const m = { method: n };
|
|
10187
|
+
e !== "" && (m.url = Tt(e, a)), ye(r) || (m.data = JSON.stringify(r)), t().request({ ...c, ...m }).then((d) => xt(d.status) ? d.data ? u(d.data) : p(new Fe()) : p(new pt(d.status))).catch((d) => Dt(d) ? p(new ft(d)) : At(d) ? p(new mt(d, o, s, d)) : Mt(d) ? p(new ht(d, d)) : p(new Fe(d)));
|
|
10187
10188
|
}), Us = (t, n = {}, e, a = {}, r, o, s = {}) => new Promise((c, u) => {
|
|
10188
|
-
t().post(Tt(e, a), JSON.stringify(n), s).then((
|
|
10189
|
+
t().post(Tt(e, a), JSON.stringify(n), s).then((p) => xt(p.status) ? p.data ? c(p.data) : u(new Fe()) : u(new pt(p.status))).catch((p) => Dt(p) ? u(new ft(p)) : At(p) ? u(new mt(p, r, o, p)) : Mt(p) ? u(new ht(p, p)) : u(new Fe(p)));
|
|
10189
10190
|
}), Ys = (t, n, e = {}, a, r, o = {}) => new Promise((s, c) => {
|
|
10190
10191
|
t().delete(Tt(n, e), o).then((u) => xt(u.status) ? u.data ? s(u.data) : c(new Fe()) : c(new pt(u.status))).catch((u) => Dt(u) ? c(new ft(u)) : At(u) ? c(new mt(u, a, r, u)) : Mt(u) ? c(new ht(u, u)) : c(new Fe(u)));
|
|
10191
10192
|
});
|
|
10192
10193
|
function ao() {
|
|
10193
|
-
const t = J([]), n = (
|
|
10194
|
-
c("limit",
|
|
10195
|
-
}, e = (
|
|
10196
|
-
c("offset",
|
|
10197
|
-
}, a = (
|
|
10198
|
-
!ye(
|
|
10199
|
-
}, r = (
|
|
10200
|
-
ut(g) && g.length === 0 || t.value.push("filter_" +
|
|
10201
|
-
}, s = (
|
|
10202
|
-
const d =
|
|
10203
|
-
return ye(d) ?
|
|
10204
|
-
}, c = (
|
|
10205
|
-
t.value.push(
|
|
10194
|
+
const t = J([]), n = (m) => {
|
|
10195
|
+
c("limit", m);
|
|
10196
|
+
}, e = (m, d) => {
|
|
10197
|
+
c("offset", m * d - d);
|
|
10198
|
+
}, a = (m, d) => {
|
|
10199
|
+
!ye(m) && m.length > 0 && c("order[" + m + "]", d ? "desc" : "asc");
|
|
10200
|
+
}, r = (m) => ar(m) ? m ? "1" : "0" : m, o = (m, d, g) => {
|
|
10201
|
+
ut(g) && g.length === 0 || t.value.push("filter_" + m + "[" + d + "]=" + r(g));
|
|
10202
|
+
}, s = (m) => {
|
|
10203
|
+
const d = m.model;
|
|
10204
|
+
return ye(d) ? m.mandatory ? (m.model = m.default, m.default) : null : ut(d) ? d.length === 0 ? m.mandatory ? (m.model = m.default, m.default) : null : encodeURIComponent(d) : Oe(d) ? d.length === 0 ? m.mandatory ? (m.model = m.default, m.default) : null : d.map((g) => ut(g) ? encodeURIComponent(g) : g).join(",") : Aa(d) || ar(d) ? d : null;
|
|
10205
|
+
}, c = (m, d) => {
|
|
10206
|
+
t.value.push(m + "=" + d);
|
|
10206
10207
|
};
|
|
10207
10208
|
return {
|
|
10208
10209
|
querySetLimit: n,
|
|
10209
10210
|
querySetOffset: e,
|
|
10210
10211
|
querySetOrder: a,
|
|
10211
10212
|
queryAddFilter: o,
|
|
10212
|
-
querySetFilters: (
|
|
10213
|
-
const d = !S(
|
|
10214
|
-
for (const g in
|
|
10215
|
-
const b =
|
|
10213
|
+
querySetFilters: (m) => {
|
|
10214
|
+
const d = !S(m._elastic);
|
|
10215
|
+
for (const g in m) {
|
|
10216
|
+
const b = m[g], F = b.field || g;
|
|
10216
10217
|
if (b.exclude)
|
|
10217
10218
|
continue;
|
|
10218
10219
|
const v = s(b);
|
|
@@ -10232,32 +10233,32 @@ function ao() {
|
|
|
10232
10233
|
const Hs = (t, n) => {
|
|
10233
10234
|
const { querySetLimit: e, querySetOffset: a, querySetOrder: r, queryBuild: o, queryAddFilter: s, queryAdd: c } = ao(), u = t.length;
|
|
10234
10235
|
return e(u), a(1, u), r("id", !1), n ? c("id", t.join(",")) : s("in", "id", t.join(",")), o();
|
|
10235
|
-
}, Yh = (t, n, e, a = {}, r, o, s = {}, c = !1) => new Promise((u,
|
|
10236
|
-
t().get(Tt(e, a) + Hs(n, c), s).then((
|
|
10236
|
+
}, Yh = (t, n, e, a = {}, r, o, s = {}, c = !1) => new Promise((u, p) => {
|
|
10237
|
+
t().get(Tt(e, a) + Hs(n, c), s).then((m) => {
|
|
10237
10238
|
var d;
|
|
10238
|
-
return xt(
|
|
10239
|
-
}).catch((
|
|
10239
|
+
return xt(m.status) ? (d = m.data) != null && d.data ? u(m.data.data) : p(new Fe()) : p(new pt(m.status));
|
|
10240
|
+
}).catch((m) => Dt(m) ? p(new ft(m)) : At(m) ? p(new mt(m, r, o, m)) : Mt(m) ? p(new ht(m, m)) : p(new Fe(m)));
|
|
10240
10241
|
}), Js = (t) => Wn(t) && Object.hasOwn(t, "totalCount"), Ws = (t) => Wn(t) && Object.hasOwn(t, "hasNextPage"), qs = (t, n) => {
|
|
10241
10242
|
const { querySetLimit: e, querySetOffset: a, querySetOrder: r, queryBuild: o, querySetFilters: s } = ao();
|
|
10242
10243
|
return e(t.rowsPerPage), a(t.page, t.rowsPerPage), r(t.sortBy, t.descending), s(n), o();
|
|
10243
|
-
}, Gs = (t, n, e = {}, a, r, o, s, c = {}) => new Promise((u,
|
|
10244
|
-
const
|
|
10244
|
+
}, Gs = (t, n, e = {}, a, r, o, s, c = {}) => new Promise((u, p) => {
|
|
10245
|
+
const m = S(r._elastic) ? "" : "/search";
|
|
10245
10246
|
t().get(
|
|
10246
|
-
Tt(n, e) +
|
|
10247
|
+
Tt(n, e) + m + qs(a, r),
|
|
10247
10248
|
c
|
|
10248
10249
|
).then((d) => {
|
|
10249
10250
|
if (!xt(d.status))
|
|
10250
|
-
return
|
|
10251
|
+
return p(new pt(d.status));
|
|
10251
10252
|
if (d.data) {
|
|
10252
10253
|
const g = d.data;
|
|
10253
10254
|
return Ws(g) ? a.hasNextPage = d.data.hasNextPage : Js(g) && (a.totalCount = g.totalCount), a.currentViewCount = d.data.data.length, u(d.data.data);
|
|
10254
10255
|
}
|
|
10255
|
-
return
|
|
10256
|
-
}).catch((d) => Dt(d) ?
|
|
10256
|
+
return p(new Fe());
|
|
10257
|
+
}).catch((d) => Dt(d) ? p(new ft(d)) : At(d) ? p(new mt(d, o, s, d)) : Mt(d) ? p(new ht(d, d)) : p(new Fe(d)));
|
|
10257
10258
|
}), Ks = (t, n, e = {}, a, r, o = {}) => new Promise((s, c) => {
|
|
10258
10259
|
t().get(Tt(n, e), o).then((u) => xt(u.status) ? u.data ? s(u.data) : c(new Fe()) : c(new pt(u.status))).catch((u) => Dt(u) ? c(new ft(u)) : At(u) ? c(new mt(u, a, r, u)) : Mt(u) ? c(new ht(u, u)) : c(new Fe(u)));
|
|
10259
10260
|
}), Hh = (t, n = {}, e, a = {}, r, o, s = {}) => new Promise((c, u) => {
|
|
10260
|
-
t().put(Tt(e, a), JSON.stringify(n), s).then((
|
|
10261
|
+
t().put(Tt(e, a), JSON.stringify(n), s).then((p) => xt(p.status) ? p.data ? c(p.data) : u(new Fe()) : u(new pt(p.status))).catch((p) => Dt(p) ? u(new ft(p)) : At(p) ? u(new mt(p, r, o, p)) : Mt(p) ? u(new ht(p, p)) : u(new Fe(p)));
|
|
10261
10262
|
});
|
|
10262
10263
|
function Jh() {
|
|
10263
10264
|
return {
|
|
@@ -11155,24 +11156,24 @@ const Fm = ["createdAt", "modifiedAt"], { t: gr } = le.global || le, Pm = {
|
|
|
11155
11156
|
function ng(t, n, e = void 0, a = void 0, r = !1, o = void 0) {
|
|
11156
11157
|
const s = Gn();
|
|
11157
11158
|
if (o)
|
|
11158
|
-
for (const
|
|
11159
|
-
|
|
11160
|
-
const c =
|
|
11161
|
-
const
|
|
11162
|
-
return S(
|
|
11163
|
-
}),
|
|
11164
|
-
const
|
|
11165
|
-
return
|
|
11166
|
-
|
|
11167
|
-
}), r ||
|
|
11159
|
+
for (const m of Object.keys(s))
|
|
11160
|
+
m in o && (s[m] = o[m]);
|
|
11161
|
+
const c = t.map((m) => {
|
|
11162
|
+
const d = { ...Pm, ...m };
|
|
11163
|
+
return S(d.title) && (S(d.title) && Fm.includes(d.key) ? d.title = gr("common.model.tracking." + d.key) : S(d.title) && e && a ? d.title = gr(e + "." + a + ".model." + d.key) : d.title = ""), d;
|
|
11164
|
+
}), u = T(() => {
|
|
11165
|
+
const m = [];
|
|
11166
|
+
return c.forEach((d) => {
|
|
11167
|
+
n.value.includes(d.key) || m.push(d);
|
|
11168
|
+
}), r || m.push({ key: "actions", sortable: !1, fixed: !0 }), m;
|
|
11168
11169
|
});
|
|
11169
11170
|
return {
|
|
11170
|
-
columnsAll:
|
|
11171
|
-
columnsVisible:
|
|
11172
|
-
columnsHidden:
|
|
11173
|
-
updateSortBy: (
|
|
11174
|
-
if (
|
|
11175
|
-
s.sortBy =
|
|
11171
|
+
columnsAll: c,
|
|
11172
|
+
columnsVisible: u,
|
|
11173
|
+
columnsHidden: n,
|
|
11174
|
+
updateSortBy: (m) => {
|
|
11175
|
+
if (m) {
|
|
11176
|
+
s.sortBy = m.key, s.descending = m.order === "desc";
|
|
11176
11177
|
return;
|
|
11177
11178
|
}
|
|
11178
11179
|
s.sortBy = null;
|
|
@@ -11310,17 +11311,17 @@ function rg(t, n, e, a = "id") {
|
|
|
11310
11311
|
I[a] && r.value.set(I[a], { ...t(I), _loaded: !0 });
|
|
11311
11312
|
}, u = (I) => {
|
|
11312
11313
|
I[a] && r.value.set(I[a], { ...I, _loaded: !0 });
|
|
11313
|
-
},
|
|
11314
|
+
}, p = (I) => {
|
|
11314
11315
|
for (let P = 0; P < I.length; P += 1)
|
|
11315
11316
|
r.value.set(I[P][a], { ...t(I[P]), _loaded: !0 });
|
|
11316
|
-
},
|
|
11317
|
+
}, m = (I) => {
|
|
11317
11318
|
for (let P = 0; P < I.length; P += 1)
|
|
11318
11319
|
o.value.delete(I[P]);
|
|
11319
11320
|
};
|
|
11320
11321
|
async function d() {
|
|
11321
11322
|
if (o.value.size > 0) {
|
|
11322
11323
|
const I = Array.from(o.value), P = await e(I);
|
|
11323
|
-
|
|
11324
|
+
m(I), p(P);
|
|
11324
11325
|
}
|
|
11325
11326
|
}
|
|
11326
11327
|
const g = ko(
|