pangea-lib 4.0.52 → 4.0.54
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/main.cjs.js +9 -9
- package/dist/main.es.js +165 -170
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -728,7 +728,7 @@ var _v = { exports: {} };
|
|
|
728
728
|
B.call(this, N ?? "canceled", B.ERR_CANCELED, I, P), this.name = "CanceledError";
|
|
729
729
|
}
|
|
730
730
|
S.inherits(d2, B, { __CANCEL__: !0 });
|
|
731
|
-
var
|
|
731
|
+
var be = V2.hasStandardBrowserEnv ? { write(N, I, P, Z, J, u1) {
|
|
732
732
|
const f1 = [N + "=" + encodeURIComponent(I)];
|
|
733
733
|
S.isNumber(P) && f1.push("expires=" + new Date(P).toGMTString()), S.isString(Z) && f1.push("path=" + Z), S.isString(J) && f1.push("domain=" + J), u1 === !0 && f1.push("secure"), document.cookie = f1.join("; ");
|
|
734
734
|
}, read(N) {
|
|
@@ -829,7 +829,7 @@ var _v = { exports: {} };
|
|
|
829
829
|
const M2 = N.transitional || L1;
|
|
830
830
|
N.timeoutErrorMessage && (r2 = N.timeoutErrorMessage), P(new B(r2, M2.clarifyTimeoutError ? B.ETIMEDOUT : B.ECONNABORTED, N, T1)), T1 = null;
|
|
831
831
|
}, V2.hasStandardBrowserEnv && (P1 && S.isFunction(P1) && (P1 = P1(N)), P1 || P1 !== !1 && U3(Y1))) {
|
|
832
|
-
const r2 = N.xsrfHeaderName && N.xsrfCookieName &&
|
|
832
|
+
const r2 = N.xsrfHeaderName && N.xsrfCookieName && be.read(N.xsrfCookieName);
|
|
833
833
|
r2 && J.set(N.xsrfHeaderName, r2);
|
|
834
834
|
}
|
|
835
835
|
Z === void 0 && J.setContentType(null), "setRequestHeader" in T1 && S.forEach(J.toJSON(), function(r2, M2) {
|
|
@@ -1115,7 +1115,7 @@ var _v = { exports: {} };
|
|
|
1115
1115
|
})());
|
|
1116
1116
|
})(_v);
|
|
1117
1117
|
var M3 = _v.exports, it;
|
|
1118
|
-
let
|
|
1118
|
+
let we = (it = class {
|
|
1119
1119
|
constructor(t) {
|
|
1120
1120
|
b1(this, "config");
|
|
1121
1121
|
this.config = t;
|
|
@@ -1193,17 +1193,17 @@ const pt = Ro(
|
|
|
1193
1193
|
};
|
|
1194
1194
|
});
|
|
1195
1195
|
function sE() {
|
|
1196
|
-
const e =
|
|
1196
|
+
const e = we.getConfig().stores.useAuthStore(), t = bt().routeType, a = `auth${M3.getFirstChartInUppercase(t)}`;
|
|
1197
1197
|
return e[a].accessToken;
|
|
1198
1198
|
}
|
|
1199
1199
|
async function oE(e, t, a) {
|
|
1200
|
-
const r =
|
|
1200
|
+
const r = we.getConfig(), n = r.stores.useAuthStore(), i = `${e}s/login`, c = { basicAuth: t, isLoadingRef: a == null ? void 0 : a.isLoadingRef }, s = await r.api.postOne(i, void 0, c);
|
|
1201
1201
|
n.setAuthUser(e, s.data);
|
|
1202
1202
|
const o = { name: (a == null ? void 0 : a.redirectToName) || r.defaultRoutes[e].auth };
|
|
1203
1203
|
r.router.push(o);
|
|
1204
1204
|
}
|
|
1205
1205
|
async function lE() {
|
|
1206
|
-
const e =
|
|
1206
|
+
const e = we.getConfig(), t = e.stores.useAuthStore(), a = bt().routeType;
|
|
1207
1207
|
try {
|
|
1208
1208
|
const r = `${a}s/validateAccessToken`, n = await e.api.getOne(r, void 0, void 0, { preventDisplayError: !0 });
|
|
1209
1209
|
t.setAuthUser(a, n.data);
|
|
@@ -1212,7 +1212,7 @@ async function lE() {
|
|
|
1212
1212
|
}
|
|
1213
1213
|
}
|
|
1214
1214
|
function OG1(e) {
|
|
1215
|
-
const t =
|
|
1215
|
+
const t = we.getConfig();
|
|
1216
1216
|
t.stores.useAuthStore().setAuthUser(e, null);
|
|
1217
1217
|
const r = { name: `login${M3.getFirstChartInUppercase(e)}` };
|
|
1218
1218
|
t.router.push(r);
|
|
@@ -1721,7 +1721,7 @@ function kv() {
|
|
|
1721
1721
|
let f3 = Q2, z1 = !1, y1 = null;
|
|
1722
1722
|
const B1 = z2({}, [pe, E2, Q2], as);
|
|
1723
1723
|
let U1 = z2({}, ["mi", "mo", "mn", "ms", "mtext"]), d2 = z2({}, ["annotation-xml"]);
|
|
1724
|
-
const
|
|
1724
|
+
const be = z2({}, ["title", "style", "font", "a", "script"]);
|
|
1725
1725
|
let Ze = null;
|
|
1726
1726
|
const U3 = ["application/xhtml+xml", "text/html"], M4 = "text/html";
|
|
1727
1727
|
let j2 = null, We = null;
|
|
@@ -1748,7 +1748,7 @@ function kv() {
|
|
|
1748
1748
|
tagName: "template"
|
|
1749
1749
|
});
|
|
1750
1750
|
const J = b5(P.tagName), u1 = b5(Z.tagName);
|
|
1751
|
-
return y1[P.namespaceURI] ? P.namespaceURI === E2 ? Z.namespaceURI === Q2 ? J === "svg" : Z.namespaceURI === pe ? J === "svg" && (u1 === "annotation-xml" || U1[u1]) : !!t6[J] : P.namespaceURI === pe ? Z.namespaceURI === Q2 ? J === "math" : Z.namespaceURI === E2 ? J === "math" && d2[u1] : !!a6[J] : P.namespaceURI === Q2 ? Z.namespaceURI === E2 && !d2[u1] || Z.namespaceURI === pe && !U1[u1] ? !1 : !a6[J] && (
|
|
1751
|
+
return y1[P.namespaceURI] ? P.namespaceURI === E2 ? Z.namespaceURI === Q2 ? J === "svg" : Z.namespaceURI === pe ? J === "svg" && (u1 === "annotation-xml" || U1[u1]) : !!t6[J] : P.namespaceURI === pe ? Z.namespaceURI === Q2 ? J === "math" : Z.namespaceURI === E2 ? J === "math" && d2[u1] : !!a6[J] : P.namespaceURI === Q2 ? Z.namespaceURI === E2 && !d2[u1] || Z.namespaceURI === pe && !U1[u1] ? !1 : !a6[J] && (be[J] || !t6[J]) : !!(Ze === "application/xhtml+xml" && y1[P.namespaceURI]) : !1;
|
|
1752
1752
|
}, p3 = function(P) {
|
|
1753
1753
|
nr(t.removed, {
|
|
1754
1754
|
element: P
|
|
@@ -4639,10 +4639,10 @@ function XP(e) {
|
|
|
4639
4639
|
return e.matched[0].name;
|
|
4640
4640
|
}
|
|
4641
4641
|
function Qi(e, t) {
|
|
4642
|
-
return
|
|
4642
|
+
return we.getConfig().i18n[`${e}Routes`](t);
|
|
4643
4643
|
}
|
|
4644
4644
|
function Mg(e, t) {
|
|
4645
|
-
return e.filter((a) => !a.meta.isVisibleInTheSideBar || t && a.meta.preventDisplayInTheBottomBar ? !1 :
|
|
4645
|
+
return e.filter((a) => !a.meta.isVisibleInTheSideBar || t && a.meta.preventDisplayInTheBottomBar ? !1 : we.getConfig().routerHelpers.validateRouteAccess(a.meta.access));
|
|
4646
4646
|
}
|
|
4647
4647
|
function ll(e, t) {
|
|
4648
4648
|
return e.filter((a) => a.meta.isVisibleInTheSideBar ? a.meta.navigationSectionName === t : !1);
|
|
@@ -10847,7 +10847,7 @@ class VI {
|
|
|
10847
10847
|
}
|
|
10848
10848
|
}
|
|
10849
10849
|
const kI = 2, ys = 24 * 60;
|
|
10850
|
-
let
|
|
10850
|
+
let Ce, Me, xs;
|
|
10851
10851
|
class AI {
|
|
10852
10852
|
constructor(t, a) {
|
|
10853
10853
|
Pt(this, "_vuecal", null), Pt(this, "eventDefaults", {
|
|
@@ -10876,7 +10876,7 @@ class AI {
|
|
|
10876
10876
|
// Controls the CSS class of the static clone while dragging.
|
|
10877
10877
|
focused: !1,
|
|
10878
10878
|
class: ""
|
|
10879
|
-
}), this._vuecal = t,
|
|
10879
|
+
}), this._vuecal = t, Ce = a;
|
|
10880
10880
|
}
|
|
10881
10881
|
/**
|
|
10882
10882
|
* Create an event at the given date and time, and allow overriding
|
|
@@ -10887,12 +10887,12 @@ class AI {
|
|
|
10887
10887
|
* @param {Object} eventOptions some options to override the `eventDefaults` - optional.
|
|
10888
10888
|
*/
|
|
10889
10889
|
createAnEvent(t, a, r) {
|
|
10890
|
-
if (typeof t == "string" && (t =
|
|
10890
|
+
if (typeof t == "string" && (t = Ce.stringToDate(t)), !(t instanceof Date))
|
|
10891
10891
|
return !1;
|
|
10892
|
-
const n =
|
|
10892
|
+
const n = Ce.dateToMinutes(t);
|
|
10893
10893
|
a = a * 1 || kI * 60;
|
|
10894
|
-
const i = n + a, c =
|
|
10895
|
-
r.end && (typeof r.end == "string" && (r.end =
|
|
10894
|
+
const i = n + a, c = Ce.addMinutes(new Date(t), a);
|
|
10895
|
+
r.end && (typeof r.end == "string" && (r.end = Ce.stringToDate(r.end)), r.endTimeMinutes = Ce.dateToMinutes(r.end));
|
|
10896
10896
|
const s = {
|
|
10897
10897
|
...this.eventDefaults,
|
|
10898
10898
|
_eid: `${this._vuecal._.uid}_${this._vuecal.eventIdIncrement++}`,
|
|
@@ -10904,7 +10904,7 @@ class AI {
|
|
|
10904
10904
|
...r
|
|
10905
10905
|
};
|
|
10906
10906
|
if (!(typeof this._vuecal.onEventCreate == "function" && !this._vuecal.onEventCreate(s, () => this.deleteAnEvent(s))))
|
|
10907
|
-
return s.startDateF !== s.endDateF && (s.daysCount =
|
|
10907
|
+
return s.startDateF !== s.endDateF && (s.daysCount = Ce.countDays(s.start, s.end)), this._vuecal.mutableEvents.push(s), this._vuecal.addEventsToView([s]), this._vuecal.emitWithEvent("event-create", s), this._vuecal.$emit("event-change", { event: this._vuecal.cleanupEvent(s), originalEvent: null }), s;
|
|
10908
10908
|
}
|
|
10909
10909
|
/**
|
|
10910
10910
|
* Add an event segment (= day) to a multiple-day event.
|
|
@@ -10912,23 +10912,23 @@ class AI {
|
|
|
10912
10912
|
* @param {Object} e the multiple-day event to add segment in.
|
|
10913
10913
|
*/
|
|
10914
10914
|
addEventSegment(t) {
|
|
10915
|
-
t.segments || (t.segments = {}, t.segments[
|
|
10915
|
+
t.segments || (t.segments = {}, t.segments[Ce.formatDateLite(t.start)] = {
|
|
10916
10916
|
start: t.start,
|
|
10917
10917
|
startTimeMinutes: t.startTimeMinutes,
|
|
10918
10918
|
endTimeMinutes: ys,
|
|
10919
10919
|
isFirstDay: !0,
|
|
10920
10920
|
isLastDay: !1
|
|
10921
10921
|
});
|
|
10922
|
-
const a = t.segments[
|
|
10922
|
+
const a = t.segments[Ce.formatDateLite(t.end)];
|
|
10923
10923
|
a && (a.isLastDay = !1, a.endTimeMinutes = ys);
|
|
10924
|
-
const r =
|
|
10924
|
+
const r = Ce.addDays(t.end, 1), n = Ce.formatDateLite(r);
|
|
10925
10925
|
return r.setHours(0, 0, 0, 0), t.segments[n] = {
|
|
10926
10926
|
start: r,
|
|
10927
10927
|
startTimeMinutes: 0,
|
|
10928
10928
|
endTimeMinutes: t.endTimeMinutes,
|
|
10929
10929
|
isFirstDay: !1,
|
|
10930
10930
|
isLastDay: !0
|
|
10931
|
-
}, t.end =
|
|
10931
|
+
}, t.end = Ce.addMinutes(r, t.endTimeMinutes), t.daysCount = Object.keys(t.segments).length, n;
|
|
10932
10932
|
}
|
|
10933
10933
|
/**
|
|
10934
10934
|
* Remove an event segment (= day) from a multiple-day event.
|
|
@@ -10938,9 +10938,9 @@ class AI {
|
|
|
10938
10938
|
removeEventSegment(t) {
|
|
10939
10939
|
let a = Object.keys(t.segments).length;
|
|
10940
10940
|
if (a <= 1)
|
|
10941
|
-
return
|
|
10942
|
-
delete t.segments[
|
|
10943
|
-
const r =
|
|
10941
|
+
return Ce.formatDateLite(t.end);
|
|
10942
|
+
delete t.segments[Ce.formatDateLite(t.end)], a--;
|
|
10943
|
+
const r = Ce.subtractDays(t.end, 1), n = Ce.formatDateLite(r), i = t.segments[n];
|
|
10944
10944
|
return a ? i && (i.isLastDay = !0, i.endTimeMinutes = t.endTimeMinutes) : t.segments = null, t.daysCount = a || 1, t.end = r, n;
|
|
10945
10945
|
}
|
|
10946
10946
|
/**
|
|
@@ -10958,16 +10958,16 @@ class AI {
|
|
|
10958
10958
|
let c = t.start.getTime(), s = t.end.getTime(), o = !1, l, f, u;
|
|
10959
10959
|
for (!t.end.getHours() && !t.end.getMinutes() && (s -= 1e3), t.segments = {}, t.repeat ? (l = n, f = Math.min(
|
|
10960
10960
|
i,
|
|
10961
|
-
t.repeat.until ?
|
|
10961
|
+
t.repeat.until ? Ce.stringToDate(t.repeat.until).getTime() : i
|
|
10962
10962
|
)) : (l = Math.max(n, c), f = Math.min(i, s)); l <= f; ) {
|
|
10963
10963
|
let h = !1;
|
|
10964
|
-
const d =
|
|
10964
|
+
const d = Ce.addDays(new Date(l), 1).setHours(0, 0, 0, 0);
|
|
10965
10965
|
let p, m, v, g;
|
|
10966
10966
|
if (t.repeat) {
|
|
10967
|
-
const y = new Date(l), b =
|
|
10968
|
-
(o || t.occurrences && t.occurrences[b]) && (o || (c = t.occurrences[b].start, u = new Date(c).setHours(0, 0, 0, 0), s = t.occurrences[b].end), o = !0, h = !0), p = l === u, m = b ===
|
|
10967
|
+
const y = new Date(l), b = Ce.formatDateLite(y);
|
|
10968
|
+
(o || t.occurrences && t.occurrences[b]) && (o || (c = t.occurrences[b].start, u = new Date(c).setHours(0, 0, 0, 0), s = t.occurrences[b].end), o = !0, h = !0), p = l === u, m = b === Ce.formatDateLite(new Date(s)), v = new Date(p ? c : l), g = Ce.formatDateLite(v), m && (o = !1);
|
|
10969
10969
|
} else
|
|
10970
|
-
h = !0, p = l === c, m = f === s && d > f, v = p ? t.start : new Date(l), g =
|
|
10970
|
+
h = !0, p = l === c, m = f === s && d > f, v = p ? t.start : new Date(l), g = Ce.formatDateLite(p ? t.start : v);
|
|
10971
10971
|
h && (t.segments[g] = {
|
|
10972
10972
|
start: v,
|
|
10973
10973
|
startTimeMinutes: p ? t.startTimeMinutes : 0,
|
|
@@ -10991,24 +10991,24 @@ class AI {
|
|
|
10991
10991
|
// Will recalculate all the overlaps of the current cell OR split.
|
|
10992
10992
|
// cellEvents will contain only the current split events if in a split.
|
|
10993
10993
|
checkCellOverlappingEvents(t, a) {
|
|
10994
|
-
xs = t.slice(0),
|
|
10995
|
-
xs.shift(),
|
|
10996
|
-
|
|
10997
|
-
const c = this.eventInRange(i, n.start, n.end), s = a.overlapsPerTimeStep ?
|
|
10994
|
+
xs = t.slice(0), Me = {}, t.forEach((n) => {
|
|
10995
|
+
xs.shift(), Me[n._eid] || (Me[n._eid] = { overlaps: [], start: n.start, position: 0 }), Me[n._eid].position = 0, xs.forEach((i) => {
|
|
10996
|
+
Me[i._eid] || (Me[i._eid] = { overlaps: [], start: i.start, position: 0 });
|
|
10997
|
+
const c = this.eventInRange(i, n.start, n.end), s = a.overlapsPerTimeStep ? Ce.datesInSameTimeStep(n.start, i.start, a.timeStep) : 1;
|
|
10998
10998
|
if (!n.background && !n.allDay && !i.background && !i.allDay && c && s)
|
|
10999
|
-
|
|
10999
|
+
Me[n._eid].overlaps.push(i._eid), Me[n._eid].overlaps = [...new Set(Me[n._eid].overlaps)], Me[i._eid].overlaps.push(n._eid), Me[i._eid].overlaps = [...new Set(Me[i._eid].overlaps)], Me[i._eid].position++;
|
|
11000
11000
|
else {
|
|
11001
11001
|
let o, l;
|
|
11002
|
-
(o = (
|
|
11002
|
+
(o = (Me[n._eid] || { overlaps: [] }).overlaps.indexOf(i._eid)) > -1 && Me[n._eid].overlaps.splice(o, 1), (l = (Me[i._eid] || { overlaps: [] }).overlaps.indexOf(n._eid)) > -1 && Me[i._eid].overlaps.splice(l, 1), Me[i._eid].position--;
|
|
11003
11003
|
}
|
|
11004
11004
|
});
|
|
11005
11005
|
});
|
|
11006
11006
|
let r = 0;
|
|
11007
|
-
for (const n in
|
|
11008
|
-
const i =
|
|
11009
|
-
c.push({ id: n, start: i.start }), c.sort((s, o) => s.start < o.start ? -1 : s.start > o.start ? 1 : s.id > o.id ? -1 : 1), i.position = c.findIndex((s) => s.id === n), r = Math.max(this.getOverlapsStreak(i,
|
|
11007
|
+
for (const n in Me) {
|
|
11008
|
+
const i = Me[n], c = i.overlaps.map((s) => ({ id: s, start: Me[s].start }));
|
|
11009
|
+
c.push({ id: n, start: i.start }), c.sort((s, o) => s.start < o.start ? -1 : s.start > o.start ? 1 : s.id > o.id ? -1 : 1), i.position = c.findIndex((s) => s.id === n), r = Math.max(this.getOverlapsStreak(i, Me), r);
|
|
11010
11010
|
}
|
|
11011
|
-
return [
|
|
11011
|
+
return [Me, r];
|
|
11012
11012
|
}
|
|
11013
11013
|
/**
|
|
11014
11014
|
* Overlaps streak is the longest horizontal set of simultaneous events.
|
|
@@ -13365,92 +13365,87 @@ A valid view must be one of: ${wh.join(", ")}.`), e = "week"), this.enabledViews
|
|
|
13365
13365
|
}),
|
|
13366
13366
|
emits: /* @__PURE__ */ m2(["createEvent", "refreshList"], ["update:modelValue", "update:searchRange"]),
|
|
13367
13367
|
setup(e, { emit: t }) {
|
|
13368
|
-
const a = T2(e, "modelValue"), r = T2(e, "searchRange"), n = e, i = t, c = X5(), s = M1(c ? "day" : "week"), o = M1([])
|
|
13369
|
-
|
|
13370
|
-
|
|
13371
|
-
|
|
13372
|
-
|
|
13373
|
-
|
|
13374
|
-
|
|
13375
|
-
|
|
13376
|
-
|
|
13377
|
-
|
|
13378
|
-
|
|
13368
|
+
const a = T2(e, "modelValue"), r = T2(e, "searchRange"), n = e, i = t, c = X5(), s = M1(c ? "day" : "week"), o = M1([]);
|
|
13369
|
+
M1(0), M1();
|
|
13370
|
+
const l = o1(() => ["years", "year", ...c ? ["week"] : []]), f = o1(() => {
|
|
13371
|
+
var y;
|
|
13372
|
+
const v = o.value.flatMap((b) => {
|
|
13373
|
+
var x;
|
|
13374
|
+
return (x = n.holidays) == null ? void 0 : x.map(({ month: C, day: z }) => u(b, C, z));
|
|
13375
|
+
}), g = ((y = n.vacations) == null ? void 0 : y.flatMap(({ start: b, end: x }) => {
|
|
13376
|
+
const C = [];
|
|
13377
|
+
let z = new Date(b), M = new Date(x);
|
|
13378
|
+
for (; z <= M; ) {
|
|
13379
|
+
const w = z.getUTCFullYear(), k = z.getUTCMonth(), V = z.getUTCDate();
|
|
13380
|
+
C.push(u(w, k, V)), z.setUTCDate(z.getUTCDate() + 1);
|
|
13379
13381
|
}
|
|
13380
|
-
return
|
|
13382
|
+
return C;
|
|
13381
13383
|
})) || [];
|
|
13382
|
-
return [...
|
|
13384
|
+
return [...v, ...g];
|
|
13383
13385
|
});
|
|
13384
|
-
function
|
|
13385
|
-
return new Date(Date.UTC(
|
|
13386
|
+
function u(v, g, y) {
|
|
13387
|
+
return new Date(Date.UTC(v, g, y)).toISOString().split("T")[0];
|
|
13386
13388
|
}
|
|
13387
|
-
function
|
|
13388
|
-
const
|
|
13389
|
-
return { start:
|
|
13389
|
+
function h(v) {
|
|
13390
|
+
const g = n.timeStep * 6e4, y = new Date(Math.floor(v.getTime() / g) * g), b = new Date(y.getTime() + g);
|
|
13391
|
+
return { start: y, end: b };
|
|
13390
13392
|
}
|
|
13391
|
-
function
|
|
13392
|
-
const { startDate:
|
|
13393
|
-
if (
|
|
13393
|
+
function d(v) {
|
|
13394
|
+
const { startDate: g, endDate: y } = v, b = g.getFullYear(), x = y.getFullYear(), C = [b];
|
|
13395
|
+
if (b !== x && C.push(x), o.value = C, r.value && g >= r.value.start && y <= r.value.end)
|
|
13394
13396
|
return;
|
|
13395
|
-
const
|
|
13396
|
-
r.value =
|
|
13397
|
+
const z = { start: g, end: y };
|
|
13398
|
+
r.value = z, i("refreshList", z);
|
|
13397
13399
|
}
|
|
13398
|
-
function v
|
|
13399
|
-
|
|
13400
|
-
return;
|
|
13401
|
-
const b = be.getConfig().delayTime, x = Date.now();
|
|
13402
|
-
if (x - l.value < b) {
|
|
13403
|
-
f.value && clearTimeout(f.value);
|
|
13404
|
-
return;
|
|
13405
|
-
}
|
|
13406
|
-
l.value = x, f.value = setTimeout(() => i("createEvent", p(y)), b);
|
|
13400
|
+
function p(v) {
|
|
13401
|
+
s.value !== "month" && i("createEvent", h(v));
|
|
13407
13402
|
}
|
|
13408
|
-
async function
|
|
13409
|
-
const
|
|
13410
|
-
|
|
13403
|
+
async function m(v) {
|
|
13404
|
+
const g = a.value.find((b) => b.id === v.event.id), y = h(v.event.start);
|
|
13405
|
+
g.start = y.start, g.end = y.end;
|
|
13411
13406
|
try {
|
|
13412
|
-
await n.updateDatesFn(
|
|
13407
|
+
await n.updateDatesFn(g);
|
|
13413
13408
|
} catch {
|
|
13414
|
-
|
|
13409
|
+
g.start = new Date(v.originalEvent.start), g.end = new Date(v.originalEvent.end);
|
|
13415
13410
|
}
|
|
13416
13411
|
}
|
|
13417
|
-
return (
|
|
13412
|
+
return (v, g) => (q(), w1(X(I$), {
|
|
13418
13413
|
activeView: s.value,
|
|
13419
|
-
"onUpdate:activeView":
|
|
13414
|
+
"onUpdate:activeView": g[0] || (g[0] = (y) => s.value = y),
|
|
13420
13415
|
events: a.value,
|
|
13421
13416
|
locale: X(pt)().language,
|
|
13422
|
-
disableViews:
|
|
13423
|
-
disableDays:
|
|
13424
|
-
hideWeekends:
|
|
13417
|
+
disableViews: l.value,
|
|
13418
|
+
disableDays: f.value,
|
|
13419
|
+
hideWeekends: v.hideWeekends,
|
|
13425
13420
|
showTimeInCells: "",
|
|
13426
13421
|
watchRealTime: "",
|
|
13427
|
-
timeFrom:
|
|
13428
|
-
timeTo:
|
|
13429
|
-
timeStep:
|
|
13422
|
+
timeFrom: v.timeFrom,
|
|
13423
|
+
timeTo: v.timeTo,
|
|
13424
|
+
timeStep: v.timeStep,
|
|
13430
13425
|
timeCellHeight: $$,
|
|
13431
|
-
editableEvents: { drag: !!
|
|
13426
|
+
editableEvents: { drag: !!v.updateDatesFn },
|
|
13432
13427
|
style: { "min-height": "30rem" },
|
|
13433
|
-
onReady:
|
|
13434
|
-
onViewChange:
|
|
13435
|
-
onCellClick:
|
|
13436
|
-
onEventDrop:
|
|
13428
|
+
onReady: g[1] || (g[1] = (y) => d(y)),
|
|
13429
|
+
onViewChange: g[2] || (g[2] = (y) => d(y)),
|
|
13430
|
+
onCellClick: g[3] || (g[3] = (y) => p(y)),
|
|
13431
|
+
onEventDrop: g[4] || (g[4] = (y) => m(y))
|
|
13437
13432
|
}, Ge({
|
|
13438
|
-
event: F1(({ event:
|
|
13439
|
-
S1(
|
|
13433
|
+
event: F1(({ event: y }) => [
|
|
13434
|
+
S1(v.$slots, "event", { event: y })
|
|
13440
13435
|
]),
|
|
13441
13436
|
_: 2
|
|
13442
13437
|
}, [
|
|
13443
|
-
|
|
13438
|
+
v.isLoading ? {
|
|
13444
13439
|
name: "title",
|
|
13445
13440
|
fn: F1(() => [
|
|
13446
13441
|
$1(c0, { size: "m" })
|
|
13447
13442
|
]),
|
|
13448
13443
|
key: "0"
|
|
13449
13444
|
} : void 0,
|
|
13450
|
-
|
|
13445
|
+
v.noEventsLabel ? {
|
|
13451
13446
|
name: "no-event",
|
|
13452
13447
|
fn: F1(() => [
|
|
13453
|
-
$1(re, { text:
|
|
13448
|
+
$1(re, { text: v.noEventsLabel }, null, 8, ["text"])
|
|
13454
13449
|
]),
|
|
13455
13450
|
key: "1"
|
|
13456
13451
|
} : void 0
|
|
@@ -13552,7 +13547,7 @@ const Py = /* @__PURE__ */ e2(q$, [["__scopeId", "data-v-8bb66f04"]]), j$ = { cl
|
|
|
13552
13547
|
a || (r.value = !0);
|
|
13553
13548
|
}
|
|
13554
13549
|
function i() {
|
|
13555
|
-
clearTimeout(t), a = !0, r.value = !1, t = setTimeout(() => a = !1,
|
|
13550
|
+
clearTimeout(t), a = !0, r.value = !1, t = setTimeout(() => a = !1, we.getConfig().delayTime);
|
|
13556
13551
|
}
|
|
13557
13552
|
function c(s) {
|
|
13558
13553
|
s.handleClickFn(), r.value = !1;
|
|
@@ -21110,7 +21105,7 @@ const Sl = /* @__PURE__ */ e2(nU, [["__scopeId", "data-v-dac00e3f"]]), iU = { cl
|
|
|
21110
21105
|
}),
|
|
21111
21106
|
emits: ["update:modelValue"],
|
|
21112
21107
|
setup(e) {
|
|
21113
|
-
const t = T2(e, "modelValue"), a = e, r =
|
|
21108
|
+
const t = T2(e, "modelValue"), a = e, r = we.getConfig(), n = W2("pgaEditor"), i = {
|
|
21114
21109
|
placeholder: "",
|
|
21115
21110
|
modules: {
|
|
21116
21111
|
toolbar: [
|
|
@@ -21583,7 +21578,7 @@ const i8 = /* @__PURE__ */ e2(DU, [["__scopeId", "data-v-56d8036a"]]), OU = { cl
|
|
|
21583
21578
|
const t = T2(e, "modelValue"), a = e, r = W2("pgaFile"), n = M1(), i = M1(!1), c = M1(-1), s = o1(() => t.value.length), o = o1(() => {
|
|
21584
21579
|
const u = [];
|
|
21585
21580
|
for (const h of t.value)
|
|
21586
|
-
typeof h == "string" ? u.push(`${
|
|
21581
|
+
typeof h == "string" ? u.push(`${we.getConfig().file.dynamicUrl}/${h}`) : h instanceof File && u.push(URL.createObjectURL(h));
|
|
21587
21582
|
return u;
|
|
21588
21583
|
});
|
|
21589
21584
|
async function l(u) {
|
|
@@ -33300,7 +33295,7 @@ const bi = /* @__PURE__ */ e2(p21, [["__scopeId", "data-v-9041b6d0"]]), v21 = {
|
|
|
33300
33295
|
b1(this, "password", "");
|
|
33301
33296
|
}
|
|
33302
33297
|
}
|
|
33303
|
-
const a =
|
|
33298
|
+
const a = we.getConfig(), r = W2("pgaForm"), n = tE(), i = {
|
|
33304
33299
|
username: {
|
|
33305
33300
|
requiredRule: Am,
|
|
33306
33301
|
minLengthRule: Sm(8),
|
|
@@ -34909,7 +34904,7 @@ function Ue(e, t) {
|
|
|
34909
34904
|
rest: e.rest
|
|
34910
34905
|
};
|
|
34911
34906
|
}
|
|
34912
|
-
function
|
|
34907
|
+
function _e(e, t) {
|
|
34913
34908
|
const a = t.match(e);
|
|
34914
34909
|
return a ? {
|
|
34915
34910
|
value: parseInt(a[0], 10),
|
|
@@ -34932,34 +34927,34 @@ function nt(e, t) {
|
|
|
34932
34927
|
};
|
|
34933
34928
|
}
|
|
34934
34929
|
function Tb(e) {
|
|
34935
|
-
return
|
|
34930
|
+
return _e($e.anyDigitsSigned, e);
|
|
34936
34931
|
}
|
|
34937
34932
|
function Te(e, t) {
|
|
34938
34933
|
switch (e) {
|
|
34939
34934
|
case 1:
|
|
34940
|
-
return
|
|
34935
|
+
return _e($e.singleDigit, t);
|
|
34941
34936
|
case 2:
|
|
34942
|
-
return
|
|
34937
|
+
return _e($e.twoDigits, t);
|
|
34943
34938
|
case 3:
|
|
34944
|
-
return
|
|
34939
|
+
return _e($e.threeDigits, t);
|
|
34945
34940
|
case 4:
|
|
34946
|
-
return
|
|
34941
|
+
return _e($e.fourDigits, t);
|
|
34947
34942
|
default:
|
|
34948
|
-
return
|
|
34943
|
+
return _e(new RegExp("^\\d{1," + e + "}"), t);
|
|
34949
34944
|
}
|
|
34950
34945
|
}
|
|
34951
34946
|
function Mi(e, t) {
|
|
34952
34947
|
switch (e) {
|
|
34953
34948
|
case 1:
|
|
34954
|
-
return
|
|
34949
|
+
return _e($e.singleDigitSigned, t);
|
|
34955
34950
|
case 2:
|
|
34956
|
-
return
|
|
34951
|
+
return _e($e.twoDigitsSigned, t);
|
|
34957
34952
|
case 3:
|
|
34958
|
-
return
|
|
34953
|
+
return _e($e.threeDigitsSigned, t);
|
|
34959
34954
|
case 4:
|
|
34960
|
-
return
|
|
34955
|
+
return _e($e.fourDigitsSigned, t);
|
|
34961
34956
|
default:
|
|
34962
|
-
return
|
|
34957
|
+
return _e(new RegExp("^-?\\d{1," + e + "}"), t);
|
|
34963
34958
|
}
|
|
34964
34959
|
}
|
|
34965
34960
|
function l9(e) {
|
|
@@ -35285,7 +35280,7 @@ class $e1 extends q2 {
|
|
|
35285
35280
|
switch (r) {
|
|
35286
35281
|
case "M":
|
|
35287
35282
|
return Ue(
|
|
35288
|
-
|
|
35283
|
+
_e($e.month, a),
|
|
35289
35284
|
i
|
|
35290
35285
|
);
|
|
35291
35286
|
case "MM":
|
|
@@ -35347,7 +35342,7 @@ class Ue1 extends q2 {
|
|
|
35347
35342
|
switch (r) {
|
|
35348
35343
|
case "L":
|
|
35349
35344
|
return Ue(
|
|
35350
|
-
|
|
35345
|
+
_e($e.month, a),
|
|
35351
35346
|
i
|
|
35352
35347
|
);
|
|
35353
35348
|
case "LL":
|
|
@@ -35411,7 +35406,7 @@ class qe1 extends q2 {
|
|
|
35411
35406
|
parse(a, r, n) {
|
|
35412
35407
|
switch (r) {
|
|
35413
35408
|
case "w":
|
|
35414
|
-
return
|
|
35409
|
+
return _e($e.week, a);
|
|
35415
35410
|
case "wo":
|
|
35416
35411
|
return n.ordinalNumber(a, { unit: "week" });
|
|
35417
35412
|
default:
|
|
@@ -35453,7 +35448,7 @@ class Ye1 extends q2 {
|
|
|
35453
35448
|
parse(a, r, n) {
|
|
35454
35449
|
switch (r) {
|
|
35455
35450
|
case "I":
|
|
35456
|
-
return
|
|
35451
|
+
return _e($e.week, a);
|
|
35457
35452
|
case "Io":
|
|
35458
35453
|
return n.ordinalNumber(a, { unit: "week" });
|
|
35459
35454
|
default:
|
|
@@ -35504,7 +35499,7 @@ class Ke1 extends q2 {
|
|
|
35504
35499
|
parse(a, r, n) {
|
|
35505
35500
|
switch (r) {
|
|
35506
35501
|
case "d":
|
|
35507
|
-
return
|
|
35502
|
+
return _e($e.date, a);
|
|
35508
35503
|
case "do":
|
|
35509
35504
|
return n.ordinalNumber(a, { unit: "date" });
|
|
35510
35505
|
default:
|
|
@@ -35546,7 +35541,7 @@ class Ze1 extends q2 {
|
|
|
35546
35541
|
switch (r) {
|
|
35547
35542
|
case "D":
|
|
35548
35543
|
case "DD":
|
|
35549
|
-
return
|
|
35544
|
+
return _e($e.dayOfYear, a);
|
|
35550
35545
|
case "Do":
|
|
35551
35546
|
return n.ordinalNumber(a, { unit: "date" });
|
|
35552
35547
|
default:
|
|
@@ -35959,7 +35954,7 @@ class c31 extends q2 {
|
|
|
35959
35954
|
parse(a, r, n) {
|
|
35960
35955
|
switch (r) {
|
|
35961
35956
|
case "h":
|
|
35962
|
-
return
|
|
35957
|
+
return _e($e.hour12h, a);
|
|
35963
35958
|
case "ho":
|
|
35964
35959
|
return n.ordinalNumber(a, { unit: "hour" });
|
|
35965
35960
|
default:
|
|
@@ -35983,7 +35978,7 @@ class s31 extends q2 {
|
|
|
35983
35978
|
parse(a, r, n) {
|
|
35984
35979
|
switch (r) {
|
|
35985
35980
|
case "H":
|
|
35986
|
-
return
|
|
35981
|
+
return _e($e.hour23h, a);
|
|
35987
35982
|
case "Ho":
|
|
35988
35983
|
return n.ordinalNumber(a, { unit: "hour" });
|
|
35989
35984
|
default:
|
|
@@ -36006,7 +36001,7 @@ class o31 extends q2 {
|
|
|
36006
36001
|
parse(a, r, n) {
|
|
36007
36002
|
switch (r) {
|
|
36008
36003
|
case "K":
|
|
36009
|
-
return
|
|
36004
|
+
return _e($e.hour11h, a);
|
|
36010
36005
|
case "Ko":
|
|
36011
36006
|
return n.ordinalNumber(a, { unit: "hour" });
|
|
36012
36007
|
default:
|
|
@@ -36029,7 +36024,7 @@ class l31 extends q2 {
|
|
|
36029
36024
|
parse(a, r, n) {
|
|
36030
36025
|
switch (r) {
|
|
36031
36026
|
case "k":
|
|
36032
|
-
return
|
|
36027
|
+
return _e($e.hour24h, a);
|
|
36033
36028
|
case "ko":
|
|
36034
36029
|
return n.ordinalNumber(a, { unit: "hour" });
|
|
36035
36030
|
default:
|
|
@@ -36053,7 +36048,7 @@ class f31 extends q2 {
|
|
|
36053
36048
|
parse(a, r, n) {
|
|
36054
36049
|
switch (r) {
|
|
36055
36050
|
case "m":
|
|
36056
|
-
return
|
|
36051
|
+
return _e($e.minute, a);
|
|
36057
36052
|
case "mo":
|
|
36058
36053
|
return n.ordinalNumber(a, { unit: "minute" });
|
|
36059
36054
|
default:
|
|
@@ -36076,7 +36071,7 @@ class u31 extends q2 {
|
|
|
36076
36071
|
parse(a, r, n) {
|
|
36077
36072
|
switch (r) {
|
|
36078
36073
|
case "s":
|
|
36079
|
-
return
|
|
36074
|
+
return _e($e.second, a);
|
|
36080
36075
|
case "so":
|
|
36081
36076
|
return n.ordinalNumber(a, { unit: "second" });
|
|
36082
36077
|
default:
|
|
@@ -36537,7 +36532,7 @@ const dt = (e, t) => t ? new Date(e.toLocaleString("en-US", { timeZone: t })) :
|
|
|
36537
36532
|
};
|
|
36538
36533
|
var w4 = /* @__PURE__ */ ((e) => (e.month = "month", e.year = "year", e))(w4 || {}), p6 = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(p6 || {}), L6 = /* @__PURE__ */ ((e) => (e.header = "header", e.calendar = "calendar", e.timePicker = "timePicker", e))(L6 || {}), x3 = /* @__PURE__ */ ((e) => (e.month = "month", e.year = "year", e.calendar = "calendar", e.time = "time", e.minutes = "minutes", e.hours = "hours", e.seconds = "seconds", e))(x3 || {});
|
|
36539
36534
|
const k31 = ["timestamp", "date", "iso"];
|
|
36540
|
-
var E3 = /* @__PURE__ */ ((e) => (e.up = "up", e.down = "down", e.left = "left", e.right = "right", e))(E3 || {}),
|
|
36535
|
+
var E3 = /* @__PURE__ */ ((e) => (e.up = "up", e.down = "down", e.left = "left", e.right = "right", e))(E3 || {}), ze = /* @__PURE__ */ ((e) => (e.arrowUp = "ArrowUp", e.arrowDown = "ArrowDown", e.arrowLeft = "ArrowLeft", e.arrowRight = "ArrowRight", e.enter = "Enter", e.space = " ", e.esc = "Escape", e.tab = "Tab", e.home = "Home", e.end = "End", e.pageUp = "PageUp", e.pageDown = "PageDown", e))(ze || {});
|
|
36541
36536
|
function Im(e) {
|
|
36542
36537
|
return (t) => new Intl.DateTimeFormat(e, { weekday: "short", timeZone: "UTC" }).format(/* @__PURE__ */ new Date(`2017-01-0${t}T00:00:00+00:00`)).slice(0, 2);
|
|
36543
36538
|
}
|
|
@@ -36645,7 +36640,7 @@ function O31(e, t) {
|
|
|
36645
36640
|
return a[r + (t ? -1 : 1)];
|
|
36646
36641
|
}
|
|
36647
36642
|
const P31 = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t}"]`), Wb = (e, t) => new Intl.NumberFormat(t, { useGrouping: !1, style: "decimal" }).format(e), b9 = (e) => ht(e, "dd-MM-yyyy"), Rs = (e) => Array.isArray(e), zi = (e, t) => t.get(b9(e)), F31 = (e, t) => e ? t ? t instanceof Map ? !!zi(e, t) : t(I1(e)) : !1 : !0, X3 = (e, t, a = !1) => {
|
|
36648
|
-
if (e.key ===
|
|
36643
|
+
if (e.key === ze.enter || e.key === ze.space)
|
|
36649
36644
|
return a && e.preventDefault(), t();
|
|
36650
36645
|
}, Wm = (e, t, a, r, n, i) => {
|
|
36651
36646
|
const c = po(e, t.slice(0, e.length), /* @__PURE__ */ new Date(), { locale: i });
|
|
@@ -38226,23 +38221,23 @@ const f41 = ({
|
|
|
38226
38221
|
}
|
|
38227
38222
|
}, G = (A) => {
|
|
38228
38223
|
switch (A.key) {
|
|
38229
|
-
case
|
|
38224
|
+
case ze.esc:
|
|
38230
38225
|
return Y();
|
|
38231
|
-
case
|
|
38226
|
+
case ze.arrowLeft:
|
|
38232
38227
|
return F(A);
|
|
38233
|
-
case
|
|
38228
|
+
case ze.arrowRight:
|
|
38234
38229
|
return F(A);
|
|
38235
|
-
case
|
|
38230
|
+
case ze.arrowUp:
|
|
38236
38231
|
return F(A);
|
|
38237
|
-
case
|
|
38232
|
+
case ze.arrowDown:
|
|
38238
38233
|
return F(A);
|
|
38239
38234
|
default:
|
|
38240
38235
|
return;
|
|
38241
38236
|
}
|
|
38242
38237
|
}, E = (A) => {
|
|
38243
|
-
if (A.key ===
|
|
38238
|
+
if (A.key === ze.enter)
|
|
38244
38239
|
return T();
|
|
38245
|
-
if (A.key ===
|
|
38240
|
+
if (A.key === ze.tab)
|
|
38246
38241
|
return W();
|
|
38247
38242
|
};
|
|
38248
38243
|
return t({ focusGrid: C }), (A, L) => {
|
|
@@ -40051,8 +40046,8 @@ const f41 = ({
|
|
|
40051
40046
|
), T = o1(
|
|
40052
40047
|
() => (z1) => o.value[z1] ? o.value[z1].year : 0
|
|
40053
40048
|
), Y = (z1) => !p.value.keepViewOnOffsetClick || z1 ? !0 : !c.value, O = (z1, y1, B1, U1 = !1) => {
|
|
40054
|
-
var d2,
|
|
40055
|
-
Y(U1) && (o.value[z1] || (o.value[z1] = { month: 0, year: 0 }), o.value[z1].month = Um(y1) ? (d2 = o.value[z1]) == null ? void 0 : d2.month : y1, o.value[z1].year = Um(B1) ? (
|
|
40049
|
+
var d2, be;
|
|
40050
|
+
Y(U1) && (o.value[z1] || (o.value[z1] = { month: 0, year: 0 }), o.value[z1].month = Um(y1) ? (d2 = o.value[z1]) == null ? void 0 : d2.month : y1, o.value[z1].year = Um(B1) ? (be = o.value[z1]) == null ? void 0 : be.year : B1);
|
|
40056
40051
|
}, D = () => {
|
|
40057
40052
|
e.autoApply && t("select-date");
|
|
40058
40053
|
};
|
|
@@ -40158,7 +40153,7 @@ const f41 = ({
|
|
|
40158
40153
|
}
|
|
40159
40154
|
}, h1 = (z1, y1, B1, U1) => {
|
|
40160
40155
|
if (e.sixWeeks && z1.length < 6) {
|
|
40161
|
-
const d2 = 6 - z1.length,
|
|
40156
|
+
const d2 = 6 - z1.length, be = (y1.getDay() + 7 - U1) % 7, Ze = 6 - (B1.getDay() + 7 - U1) % 7, [U3, M4] = g1(be, Ze);
|
|
40162
40157
|
for (let j2 = 1; j2 <= d2; j2++)
|
|
40163
40158
|
if (M4 ? !!(j2 % 2) == U3 : U3) {
|
|
40164
40159
|
const We = z1[0].days[0], Ht = m1(k4(We.value, -7), _2(y1));
|
|
@@ -40172,17 +40167,17 @@ const f41 = ({
|
|
|
40172
40167
|
}, m1 = (z1, y1) => {
|
|
40173
40168
|
const B1 = I1(z1), U1 = [];
|
|
40174
40169
|
for (let d2 = 0; d2 < 7; d2++) {
|
|
40175
|
-
const
|
|
40170
|
+
const be = k4(B1, d2), Ze = _2(be) !== y1;
|
|
40176
40171
|
U1.push({
|
|
40177
|
-
text: e.hideOffsetDates && Ze ? "" :
|
|
40178
|
-
value:
|
|
40172
|
+
text: e.hideOffsetDates && Ze ? "" : be.getDate(),
|
|
40173
|
+
value: be,
|
|
40179
40174
|
current: !Ze,
|
|
40180
40175
|
classData: {}
|
|
40181
40176
|
});
|
|
40182
40177
|
}
|
|
40183
40178
|
return U1;
|
|
40184
40179
|
}, p1 = (z1, y1) => {
|
|
40185
|
-
const B1 = [], U1 = new Date(y1, z1), d2 = new Date(y1, z1 + 1, 0),
|
|
40180
|
+
const B1 = [], U1 = new Date(y1, z1), d2 = new Date(y1, z1 + 1, 0), be = e.weekStart, Ze = j4(U1, { weekStartsOn: be }), U3 = (M4) => {
|
|
40186
40181
|
const j2 = m1(M4, z1);
|
|
40187
40182
|
if (B1.push({ days: j2 }), !B1[B1.length - 1].days.some(
|
|
40188
40183
|
(We) => w2(r4(We.value), r4(d2))
|
|
@@ -40191,7 +40186,7 @@ const f41 = ({
|
|
|
40191
40186
|
U3(We);
|
|
40192
40187
|
}
|
|
40193
40188
|
};
|
|
40194
|
-
return U3(Ze), h1(B1, U1, d2,
|
|
40189
|
+
return U3(Ze), h1(B1, U1, d2, be);
|
|
40195
40190
|
}, C1 = (z1) => {
|
|
40196
40191
|
const y1 = D0(I1(z1.value), l.hours, l.minutes, u2());
|
|
40197
40192
|
t("date-update", y1), g.value.enabled ? M9(y1, s, g.value.limit) : s.value = y1, r(), R3().then(() => {
|
|
@@ -40801,7 +40796,7 @@ const f41 = ({
|
|
|
40801
40796
|
} else
|
|
40802
40797
|
h1 === E3.right || h1 === E3.up ? c1("handleArrow", E3.left, 0, h1 === E3.up) : c1("handleArrow", E3.right, 0, h1 === E3.down);
|
|
40803
40798
|
}, j = (h1) => {
|
|
40804
|
-
o(h1.shiftKey), !n.disableMonthYearSelect && h1.code ===
|
|
40799
|
+
o(h1.shiftKey), !n.disableMonthYearSelect && h1.code === ze.tab && h1.target.classList.contains("dp__menu") && l.value.shiftKeyInMenu && (h1.preventDefault(), N0(h1, d.value, !0), r("close-picker"));
|
|
40805
40800
|
}, S = () => {
|
|
40806
40801
|
Y(), r("time-picker-close");
|
|
40807
40802
|
}, B = (h1) => {
|
|
@@ -40824,20 +40819,20 @@ const f41 = ({
|
|
|
40824
40819
|
}, A1 = (h1, m1) => {
|
|
40825
40820
|
h1.preventDefault(), U(m1);
|
|
40826
40821
|
}, g1 = (h1) => {
|
|
40827
|
-
if (j(h1), h1.key ===
|
|
40828
|
-
return c1("selectWeekDate", h1.key ===
|
|
40829
|
-
if (h1.key ===
|
|
40830
|
-
return h1.shiftKey ? c1("changeYear", h1.key ===
|
|
40822
|
+
if (j(h1), h1.key === ze.home || h1.key === ze.end)
|
|
40823
|
+
return c1("selectWeekDate", h1.key === ze.home);
|
|
40824
|
+
if (h1.key === ze.pageUp || h1.key === ze.pageDown)
|
|
40825
|
+
return h1.shiftKey ? c1("changeYear", h1.key === ze.pageUp) : c1("changeMonth", h1.key === ze.pageUp);
|
|
40831
40826
|
switch (h1.key) {
|
|
40832
|
-
case
|
|
40827
|
+
case ze.esc:
|
|
40833
40828
|
return L();
|
|
40834
|
-
case
|
|
40829
|
+
case ze.arrowLeft:
|
|
40835
40830
|
return A1(h1, E3.left);
|
|
40836
|
-
case
|
|
40831
|
+
case ze.arrowRight:
|
|
40837
40832
|
return A1(h1, E3.right);
|
|
40838
|
-
case
|
|
40833
|
+
case ze.arrowUp:
|
|
40839
40834
|
return A1(h1, E3.up);
|
|
40840
|
-
case
|
|
40835
|
+
case ze.arrowDown:
|
|
40841
40836
|
return A1(h1, E3.down);
|
|
40842
40837
|
default:
|
|
40843
40838
|
return;
|
|
@@ -41131,8 +41126,8 @@ const f41 = ({
|
|
|
41131
41126
|
L.value = null;
|
|
41132
41127
|
return;
|
|
41133
41128
|
}
|
|
41134
|
-
const d2 = Array.isArray(y1) ? !y1.some((Ze) => !x(Ze)) : x(y1),
|
|
41135
|
-
d2 &&
|
|
41129
|
+
const d2 = Array.isArray(y1) ? !y1.some((Ze) => !x(Ze)) : x(y1), be = C(y1);
|
|
41130
|
+
d2 && be && (L.value = y1, B1 && (p.value = U1, L1(), r("text-submit")));
|
|
41136
41131
|
}, l2 = () => {
|
|
41137
41132
|
n.autoApply && C(L.value) && j(), J1();
|
|
41138
41133
|
}, me = () => c.value ? u2() : p1(), X1 = (y1) => {
|
|
@@ -41196,8 +41191,8 @@ const f41 = ({
|
|
|
41196
41191
|
}), Ge({ _: 2 }, [
|
|
41197
41192
|
i2(X(O), (U1, d2) => ({
|
|
41198
41193
|
name: U1,
|
|
41199
|
-
fn: F1((
|
|
41200
|
-
S1(y1.$slots, U1, Be(O3(
|
|
41194
|
+
fn: F1((be) => [
|
|
41195
|
+
S1(y1.$slots, U1, Be(O3(be)))
|
|
41201
41196
|
])
|
|
41202
41197
|
}))
|
|
41203
41198
|
]), 1040, ["input-value", "is-menu-open", "onSetEmptyDate"]),
|
|
@@ -41250,8 +41245,8 @@ const f41 = ({
|
|
|
41250
41245
|
}), Ge({ _: 2 }, [
|
|
41251
41246
|
i2(X(Y), (U1, d2) => ({
|
|
41252
41247
|
name: U1,
|
|
41253
|
-
fn: F1((
|
|
41254
|
-
S1(y1.$slots, U1, Be(O3({ ...
|
|
41248
|
+
fn: F1((be) => [
|
|
41249
|
+
S1(y1.$slots, U1, Be(O3({ ...be })))
|
|
41255
41250
|
])
|
|
41256
41251
|
}))
|
|
41257
41252
|
]), 1040, ["internal-model-value", "class", "open-on-top", "no-overlay-focus", "collapse", "onRecalculatePosition"])
|
|
@@ -43730,11 +43725,11 @@ var d01 = /* @__PURE__ */ function() {
|
|
|
43730
43725
|
);
|
|
43731
43726
|
t1.l += Z + J + u1;
|
|
43732
43727
|
var P1 = t1.l;
|
|
43733
|
-
t1.l = f1 + 4,
|
|
43728
|
+
t1.l = f1 + 4, be(t1, I, P, l1, _1), t1.l = P1;
|
|
43734
43729
|
}
|
|
43735
43730
|
return l1;
|
|
43736
43731
|
}
|
|
43737
|
-
function
|
|
43732
|
+
function be(K, i1, t1, a1, s1) {
|
|
43738
43733
|
K.l += 2;
|
|
43739
43734
|
var l1 = K.read_shift(2), V1 = K.read_shift(2), k1 = c(K);
|
|
43740
43735
|
if (l1 & 8257)
|
|
@@ -63899,7 +63894,7 @@ const ms1 = /* @__PURE__ */ e2(ds1, [["__scopeId", "data-v-ceac8d0d"]]), ps1 = /
|
|
|
63899
63894
|
Z2((C) => ({
|
|
63900
63895
|
"66462eee": s.value
|
|
63901
63896
|
}));
|
|
63902
|
-
const t = T2(e, "modelValue"), a = e, r = W2("pgaFile"), n = M1(!1), i = M1(), c = M1(), s = M1("0"), o = M1(!1), l = M1(!1), f = o1(() => t.value || a.image), u = o1(() => `${
|
|
63897
|
+
const t = T2(e, "modelValue"), a = e, r = W2("pgaFile"), n = M1(!1), i = M1(), c = M1(), s = M1("0"), o = M1(!1), l = M1(!1), f = o1(() => t.value || a.image), u = o1(() => `${we.getConfig().file[`${a.source}Url`]}/${f.value}`), h = o1(() => !!(!f.value || n.value)), d = o1(() => a.defaultImage ? `${we.getConfig().file.staticUrl}/${a.defaultImage}` : vs1), p = o1(() => {
|
|
63903
63898
|
const C = [];
|
|
63904
63899
|
return a.size ? C.push({ height: a.size, width: a.size }) : (a.height && C.push({ height: a.height, width: "auto" }), a.width && C.push({ height: "auto", width: a.width }), a.height && a.width && C.push({ height: a.height, width: a.width })), C;
|
|
63905
63900
|
}), m = o1(() => {
|
|
@@ -64086,7 +64081,7 @@ const Ms1 = /* @__PURE__ */ e2(Cs1, [["__scopeId", "data-v-87259aa3"]]), zs1 = {
|
|
|
64086
64081
|
const t = T2(e, "modelValue"), a = e, r = W2("pgaFile"), n = M1(), i = M1(!1), c = M1(-1), s = M1({ isActive: !1, indexSelected: 0 }), o = o1(() => t.value.length), l = o1(() => {
|
|
64087
64082
|
const d = [];
|
|
64088
64083
|
for (const p of t.value)
|
|
64089
|
-
typeof p == "string" ? d.push(`${
|
|
64084
|
+
typeof p == "string" ? d.push(`${we.getConfig().file.dynamicUrl}/${p}`) : p instanceof File && d.push(URL.createObjectURL(p));
|
|
64090
64085
|
return d;
|
|
64091
64086
|
});
|
|
64092
64087
|
async function f(d) {
|
|
@@ -64288,7 +64283,7 @@ const qs1 = /* @__PURE__ */ e2(Ws1, [["__scopeId", "data-v-0070c1b2"]]), js1 = (
|
|
|
64288
64283
|
H1("div", Gs1, [
|
|
64289
64284
|
H1("div", {
|
|
64290
64285
|
class: "footer__rights",
|
|
64291
|
-
textContent: K1(`${X(t)("allRightsReserved")} ® ${X(
|
|
64286
|
+
textContent: K1(`${X(t)("allRightsReserved")} ® ${X(we).getConfig().appName} ${X(a)}`)
|
|
64292
64287
|
}, null, 8, Xs1),
|
|
64293
64288
|
H1("div", Ks1, [
|
|
64294
64289
|
H1("span", null, [
|
|
@@ -64310,7 +64305,7 @@ const qs1 = /* @__PURE__ */ e2(Ws1, [["__scopeId", "data-v-0070c1b2"]]), js1 = (
|
|
|
64310
64305
|
const a71 = /* @__PURE__ */ e2(t71, [["__scopeId", "data-v-ad6fade9"]]), r71 = /* @__PURE__ */ D1({
|
|
64311
64306
|
__name: "PgaLogo",
|
|
64312
64307
|
setup(e) {
|
|
64313
|
-
const t =
|
|
64308
|
+
const t = we.getConfig(), { layout: a } = $3();
|
|
64314
64309
|
return (r, n) => (q(), w1(fc, {
|
|
64315
64310
|
name: X(t).routerHelpers.getDefaultRouteName()
|
|
64316
64311
|
}, {
|
|
@@ -64421,7 +64416,7 @@ const x71 = /* @__PURE__ */ e2(y71, [["__scopeId", "data-v-3d8a1110"]]), b71 = {
|
|
|
64421
64416
|
navigationSections: {}
|
|
64422
64417
|
},
|
|
64423
64418
|
setup(e) {
|
|
64424
|
-
const t = e, a =
|
|
64419
|
+
const t = e, a = we.getConfig(), { routeType: r, isSideBarOpen: n, isDisplayingSideBar: i } = ka(bt()), c = X5(), s = o1(() => Mg(t.routes)), o = o1(() => zg(t.navigationSections, s.value)), l = o1(() => a.i18n[`${r.value}NavigationSections`]);
|
|
64425
64420
|
function f() {
|
|
64426
64421
|
X5() && setTimeout(() => n.value = !1, a.delayTime);
|
|
64427
64422
|
}
|
|
@@ -77894,7 +77889,7 @@ function zG1(e) {
|
|
|
77894
77889
|
ct("danger", () => y5("INTERNAL_SERVER_ERROR"));
|
|
77895
77890
|
return;
|
|
77896
77891
|
}
|
|
77897
|
-
const a =
|
|
77892
|
+
const a = we.getConfig();
|
|
77898
77893
|
if (a.i18n.apiConnectionsError(t)) {
|
|
77899
77894
|
ct("danger", () => a.i18n.apiConnectionsError(t));
|
|
77900
77895
|
return;
|
|
@@ -77907,7 +77902,7 @@ function zG1(e) {
|
|
|
77907
77902
|
}
|
|
77908
77903
|
const mv = W2("apiConnectionsSuccess");
|
|
77909
77904
|
function _G1(e) {
|
|
77910
|
-
const t =
|
|
77905
|
+
const t = we.getConfig();
|
|
77911
77906
|
if (t.i18n.apiConnectionsSuccess(e)) {
|
|
77912
77907
|
ct("success", () => t.i18n.apiConnectionsSuccess(e));
|
|
77913
77908
|
return;
|
|
@@ -77936,7 +77931,7 @@ async function m0(e, t, a, r, n, i, c = {}) {
|
|
|
77936
77931
|
const { getCustomHeaders: s } = i || {}, { success: o, error: l, preventDisplayError: f, preventThrowError: u, isLoadingRef: h, basicAuth: d } = c;
|
|
77937
77932
|
try {
|
|
77938
77933
|
h && (h.value = !0);
|
|
77939
|
-
const y =
|
|
77934
|
+
const y = we.getConfig().backendUrl, b = (p = a.meta) != null && p.sendAsFormData ? wG1(r) : r, x = HG1(n, { basicAuth: d, getCustomHeaders: s }), C = await CG1(e, `${y}/${t}`, b, x), z = MG1(a.response, C.data.data);
|
|
77940
77935
|
return e !== "get" && _G1(C.data.successCode), o && o(z, C.data.totalCount), { data: z, totalCount: C.data.totalCount };
|
|
77941
77936
|
} catch (y) {
|
|
77942
77937
|
if (((g = (v = (m = y.response) == null ? void 0 : m.data) == null ? void 0 : v.error) == null ? void 0 : g.errorCode) === "APP_VERSION_MISMATCH" ? window.location.reload() : f || zG1(y), l && l(y), u)
|
|
@@ -78112,7 +78107,7 @@ async function VG1(e, t, a) {
|
|
|
78112
78107
|
a();
|
|
78113
78108
|
return;
|
|
78114
78109
|
}
|
|
78115
|
-
const r =
|
|
78110
|
+
const r = we.getConfig().routerHelpers;
|
|
78116
78111
|
if (!r.validateRouteAccess(e.meta.access)) {
|
|
78117
78112
|
a({ name: r.getDefaultRouteName(e) });
|
|
78118
78113
|
return;
|
|
@@ -78124,10 +78119,10 @@ async function kG1(e) {
|
|
|
78124
78119
|
}
|
|
78125
78120
|
function AG1(e) {
|
|
78126
78121
|
const t = bt().routeType;
|
|
78127
|
-
document.title = `${Qi(t, e)} | ${
|
|
78122
|
+
document.title = `${Qi(t, e)} | ${we.getConfig().appName}`;
|
|
78128
78123
|
}
|
|
78129
78124
|
async function SG1() {
|
|
78130
|
-
const e =
|
|
78125
|
+
const e = we.getConfig(), t = e.routerHelpers;
|
|
78131
78126
|
if (await lE(), !t.validateRouteAccess(bt().routeAccess)) {
|
|
78132
78127
|
e.router.push({ name: t.getDefaultRouteName() });
|
|
78133
78128
|
return;
|
|
@@ -78141,7 +78136,7 @@ function cX1(e, t, a) {
|
|
|
78141
78136
|
const r = nE();
|
|
78142
78137
|
r.use(gB({ storage: localStorage })), e.use(r), e.use(t.router), e.use(sy), e.use(xI, {
|
|
78143
78138
|
themes: { tooltip: { triggers: ["hover", "focus", "touch"], hideTriggers: (i) => [...i] } }
|
|
78144
|
-
}),
|
|
78139
|
+
}), we.init(t), ZP(a == null ? void 0 : a.appOptions), pt().init(a == null ? void 0 : a.appOptionsStore);
|
|
78145
78140
|
const n = { ...co1, ...a == null ? void 0 : a.components };
|
|
78146
78141
|
Object.entries(n).forEach(([i, c]) => e.component(i, c));
|
|
78147
78142
|
}
|