pangea-lib 4.0.51 → 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 -172
- 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,94 +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
|
-
|
|
13393
|
-
|
|
13394
|
-
if (C !== z && M.push(z), o.value = M, console.log("refreshList"), !r.value || (console.log("searchRange"), b >= r.value.start && x <= r.value.end))
|
|
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)
|
|
13395
13396
|
return;
|
|
13396
|
-
|
|
13397
|
-
|
|
13398
|
-
r.value = w, i("refreshList", w);
|
|
13397
|
+
const z = { start: g, end: y };
|
|
13398
|
+
r.value = z, i("refreshList", z);
|
|
13399
13399
|
}
|
|
13400
|
-
function v
|
|
13401
|
-
|
|
13402
|
-
return;
|
|
13403
|
-
const b = be.getConfig().delayTime, x = Date.now();
|
|
13404
|
-
if (x - l.value < b) {
|
|
13405
|
-
f.value && clearTimeout(f.value);
|
|
13406
|
-
return;
|
|
13407
|
-
}
|
|
13408
|
-
l.value = x, f.value = setTimeout(() => i("createEvent", p(y)), b);
|
|
13400
|
+
function p(v) {
|
|
13401
|
+
s.value !== "month" && i("createEvent", h(v));
|
|
13409
13402
|
}
|
|
13410
|
-
async function
|
|
13411
|
-
const
|
|
13412
|
-
|
|
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;
|
|
13413
13406
|
try {
|
|
13414
|
-
await n.updateDatesFn(
|
|
13407
|
+
await n.updateDatesFn(g);
|
|
13415
13408
|
} catch {
|
|
13416
|
-
|
|
13409
|
+
g.start = new Date(v.originalEvent.start), g.end = new Date(v.originalEvent.end);
|
|
13417
13410
|
}
|
|
13418
13411
|
}
|
|
13419
|
-
return (
|
|
13412
|
+
return (v, g) => (q(), w1(X(I$), {
|
|
13420
13413
|
activeView: s.value,
|
|
13421
|
-
"onUpdate:activeView":
|
|
13414
|
+
"onUpdate:activeView": g[0] || (g[0] = (y) => s.value = y),
|
|
13422
13415
|
events: a.value,
|
|
13423
13416
|
locale: X(pt)().language,
|
|
13424
|
-
disableViews:
|
|
13425
|
-
disableDays:
|
|
13426
|
-
hideWeekends:
|
|
13417
|
+
disableViews: l.value,
|
|
13418
|
+
disableDays: f.value,
|
|
13419
|
+
hideWeekends: v.hideWeekends,
|
|
13427
13420
|
showTimeInCells: "",
|
|
13428
13421
|
watchRealTime: "",
|
|
13429
|
-
timeFrom:
|
|
13430
|
-
timeTo:
|
|
13431
|
-
timeStep:
|
|
13422
|
+
timeFrom: v.timeFrom,
|
|
13423
|
+
timeTo: v.timeTo,
|
|
13424
|
+
timeStep: v.timeStep,
|
|
13432
13425
|
timeCellHeight: $$,
|
|
13433
|
-
editableEvents: { drag: !!
|
|
13426
|
+
editableEvents: { drag: !!v.updateDatesFn },
|
|
13434
13427
|
style: { "min-height": "30rem" },
|
|
13435
|
-
onReady:
|
|
13436
|
-
onViewChange:
|
|
13437
|
-
onCellClick:
|
|
13438
|
-
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))
|
|
13439
13432
|
}, Ge({
|
|
13440
|
-
event: F1(({ event:
|
|
13441
|
-
S1(
|
|
13433
|
+
event: F1(({ event: y }) => [
|
|
13434
|
+
S1(v.$slots, "event", { event: y })
|
|
13442
13435
|
]),
|
|
13443
13436
|
_: 2
|
|
13444
13437
|
}, [
|
|
13445
|
-
|
|
13438
|
+
v.isLoading ? {
|
|
13446
13439
|
name: "title",
|
|
13447
13440
|
fn: F1(() => [
|
|
13448
13441
|
$1(c0, { size: "m" })
|
|
13449
13442
|
]),
|
|
13450
13443
|
key: "0"
|
|
13451
13444
|
} : void 0,
|
|
13452
|
-
|
|
13445
|
+
v.noEventsLabel ? {
|
|
13453
13446
|
name: "no-event",
|
|
13454
13447
|
fn: F1(() => [
|
|
13455
|
-
$1(re, { text:
|
|
13448
|
+
$1(re, { text: v.noEventsLabel }, null, 8, ["text"])
|
|
13456
13449
|
]),
|
|
13457
13450
|
key: "1"
|
|
13458
13451
|
} : void 0
|
|
@@ -13554,7 +13547,7 @@ const Py = /* @__PURE__ */ e2(q$, [["__scopeId", "data-v-8bb66f04"]]), j$ = { cl
|
|
|
13554
13547
|
a || (r.value = !0);
|
|
13555
13548
|
}
|
|
13556
13549
|
function i() {
|
|
13557
|
-
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);
|
|
13558
13551
|
}
|
|
13559
13552
|
function c(s) {
|
|
13560
13553
|
s.handleClickFn(), r.value = !1;
|
|
@@ -21112,7 +21105,7 @@ const Sl = /* @__PURE__ */ e2(nU, [["__scopeId", "data-v-dac00e3f"]]), iU = { cl
|
|
|
21112
21105
|
}),
|
|
21113
21106
|
emits: ["update:modelValue"],
|
|
21114
21107
|
setup(e) {
|
|
21115
|
-
const t = T2(e, "modelValue"), a = e, r =
|
|
21108
|
+
const t = T2(e, "modelValue"), a = e, r = we.getConfig(), n = W2("pgaEditor"), i = {
|
|
21116
21109
|
placeholder: "",
|
|
21117
21110
|
modules: {
|
|
21118
21111
|
toolbar: [
|
|
@@ -21585,7 +21578,7 @@ const i8 = /* @__PURE__ */ e2(DU, [["__scopeId", "data-v-56d8036a"]]), OU = { cl
|
|
|
21585
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(() => {
|
|
21586
21579
|
const u = [];
|
|
21587
21580
|
for (const h of t.value)
|
|
21588
|
-
typeof h == "string" ? u.push(`${
|
|
21581
|
+
typeof h == "string" ? u.push(`${we.getConfig().file.dynamicUrl}/${h}`) : h instanceof File && u.push(URL.createObjectURL(h));
|
|
21589
21582
|
return u;
|
|
21590
21583
|
});
|
|
21591
21584
|
async function l(u) {
|
|
@@ -33302,7 +33295,7 @@ const bi = /* @__PURE__ */ e2(p21, [["__scopeId", "data-v-9041b6d0"]]), v21 = {
|
|
|
33302
33295
|
b1(this, "password", "");
|
|
33303
33296
|
}
|
|
33304
33297
|
}
|
|
33305
|
-
const a =
|
|
33298
|
+
const a = we.getConfig(), r = W2("pgaForm"), n = tE(), i = {
|
|
33306
33299
|
username: {
|
|
33307
33300
|
requiredRule: Am,
|
|
33308
33301
|
minLengthRule: Sm(8),
|
|
@@ -34911,7 +34904,7 @@ function Ue(e, t) {
|
|
|
34911
34904
|
rest: e.rest
|
|
34912
34905
|
};
|
|
34913
34906
|
}
|
|
34914
|
-
function
|
|
34907
|
+
function _e(e, t) {
|
|
34915
34908
|
const a = t.match(e);
|
|
34916
34909
|
return a ? {
|
|
34917
34910
|
value: parseInt(a[0], 10),
|
|
@@ -34934,34 +34927,34 @@ function nt(e, t) {
|
|
|
34934
34927
|
};
|
|
34935
34928
|
}
|
|
34936
34929
|
function Tb(e) {
|
|
34937
|
-
return
|
|
34930
|
+
return _e($e.anyDigitsSigned, e);
|
|
34938
34931
|
}
|
|
34939
34932
|
function Te(e, t) {
|
|
34940
34933
|
switch (e) {
|
|
34941
34934
|
case 1:
|
|
34942
|
-
return
|
|
34935
|
+
return _e($e.singleDigit, t);
|
|
34943
34936
|
case 2:
|
|
34944
|
-
return
|
|
34937
|
+
return _e($e.twoDigits, t);
|
|
34945
34938
|
case 3:
|
|
34946
|
-
return
|
|
34939
|
+
return _e($e.threeDigits, t);
|
|
34947
34940
|
case 4:
|
|
34948
|
-
return
|
|
34941
|
+
return _e($e.fourDigits, t);
|
|
34949
34942
|
default:
|
|
34950
|
-
return
|
|
34943
|
+
return _e(new RegExp("^\\d{1," + e + "}"), t);
|
|
34951
34944
|
}
|
|
34952
34945
|
}
|
|
34953
34946
|
function Mi(e, t) {
|
|
34954
34947
|
switch (e) {
|
|
34955
34948
|
case 1:
|
|
34956
|
-
return
|
|
34949
|
+
return _e($e.singleDigitSigned, t);
|
|
34957
34950
|
case 2:
|
|
34958
|
-
return
|
|
34951
|
+
return _e($e.twoDigitsSigned, t);
|
|
34959
34952
|
case 3:
|
|
34960
|
-
return
|
|
34953
|
+
return _e($e.threeDigitsSigned, t);
|
|
34961
34954
|
case 4:
|
|
34962
|
-
return
|
|
34955
|
+
return _e($e.fourDigitsSigned, t);
|
|
34963
34956
|
default:
|
|
34964
|
-
return
|
|
34957
|
+
return _e(new RegExp("^-?\\d{1," + e + "}"), t);
|
|
34965
34958
|
}
|
|
34966
34959
|
}
|
|
34967
34960
|
function l9(e) {
|
|
@@ -35287,7 +35280,7 @@ class $e1 extends q2 {
|
|
|
35287
35280
|
switch (r) {
|
|
35288
35281
|
case "M":
|
|
35289
35282
|
return Ue(
|
|
35290
|
-
|
|
35283
|
+
_e($e.month, a),
|
|
35291
35284
|
i
|
|
35292
35285
|
);
|
|
35293
35286
|
case "MM":
|
|
@@ -35349,7 +35342,7 @@ class Ue1 extends q2 {
|
|
|
35349
35342
|
switch (r) {
|
|
35350
35343
|
case "L":
|
|
35351
35344
|
return Ue(
|
|
35352
|
-
|
|
35345
|
+
_e($e.month, a),
|
|
35353
35346
|
i
|
|
35354
35347
|
);
|
|
35355
35348
|
case "LL":
|
|
@@ -35413,7 +35406,7 @@ class qe1 extends q2 {
|
|
|
35413
35406
|
parse(a, r, n) {
|
|
35414
35407
|
switch (r) {
|
|
35415
35408
|
case "w":
|
|
35416
|
-
return
|
|
35409
|
+
return _e($e.week, a);
|
|
35417
35410
|
case "wo":
|
|
35418
35411
|
return n.ordinalNumber(a, { unit: "week" });
|
|
35419
35412
|
default:
|
|
@@ -35455,7 +35448,7 @@ class Ye1 extends q2 {
|
|
|
35455
35448
|
parse(a, r, n) {
|
|
35456
35449
|
switch (r) {
|
|
35457
35450
|
case "I":
|
|
35458
|
-
return
|
|
35451
|
+
return _e($e.week, a);
|
|
35459
35452
|
case "Io":
|
|
35460
35453
|
return n.ordinalNumber(a, { unit: "week" });
|
|
35461
35454
|
default:
|
|
@@ -35506,7 +35499,7 @@ class Ke1 extends q2 {
|
|
|
35506
35499
|
parse(a, r, n) {
|
|
35507
35500
|
switch (r) {
|
|
35508
35501
|
case "d":
|
|
35509
|
-
return
|
|
35502
|
+
return _e($e.date, a);
|
|
35510
35503
|
case "do":
|
|
35511
35504
|
return n.ordinalNumber(a, { unit: "date" });
|
|
35512
35505
|
default:
|
|
@@ -35548,7 +35541,7 @@ class Ze1 extends q2 {
|
|
|
35548
35541
|
switch (r) {
|
|
35549
35542
|
case "D":
|
|
35550
35543
|
case "DD":
|
|
35551
|
-
return
|
|
35544
|
+
return _e($e.dayOfYear, a);
|
|
35552
35545
|
case "Do":
|
|
35553
35546
|
return n.ordinalNumber(a, { unit: "date" });
|
|
35554
35547
|
default:
|
|
@@ -35961,7 +35954,7 @@ class c31 extends q2 {
|
|
|
35961
35954
|
parse(a, r, n) {
|
|
35962
35955
|
switch (r) {
|
|
35963
35956
|
case "h":
|
|
35964
|
-
return
|
|
35957
|
+
return _e($e.hour12h, a);
|
|
35965
35958
|
case "ho":
|
|
35966
35959
|
return n.ordinalNumber(a, { unit: "hour" });
|
|
35967
35960
|
default:
|
|
@@ -35985,7 +35978,7 @@ class s31 extends q2 {
|
|
|
35985
35978
|
parse(a, r, n) {
|
|
35986
35979
|
switch (r) {
|
|
35987
35980
|
case "H":
|
|
35988
|
-
return
|
|
35981
|
+
return _e($e.hour23h, a);
|
|
35989
35982
|
case "Ho":
|
|
35990
35983
|
return n.ordinalNumber(a, { unit: "hour" });
|
|
35991
35984
|
default:
|
|
@@ -36008,7 +36001,7 @@ class o31 extends q2 {
|
|
|
36008
36001
|
parse(a, r, n) {
|
|
36009
36002
|
switch (r) {
|
|
36010
36003
|
case "K":
|
|
36011
|
-
return
|
|
36004
|
+
return _e($e.hour11h, a);
|
|
36012
36005
|
case "Ko":
|
|
36013
36006
|
return n.ordinalNumber(a, { unit: "hour" });
|
|
36014
36007
|
default:
|
|
@@ -36031,7 +36024,7 @@ class l31 extends q2 {
|
|
|
36031
36024
|
parse(a, r, n) {
|
|
36032
36025
|
switch (r) {
|
|
36033
36026
|
case "k":
|
|
36034
|
-
return
|
|
36027
|
+
return _e($e.hour24h, a);
|
|
36035
36028
|
case "ko":
|
|
36036
36029
|
return n.ordinalNumber(a, { unit: "hour" });
|
|
36037
36030
|
default:
|
|
@@ -36055,7 +36048,7 @@ class f31 extends q2 {
|
|
|
36055
36048
|
parse(a, r, n) {
|
|
36056
36049
|
switch (r) {
|
|
36057
36050
|
case "m":
|
|
36058
|
-
return
|
|
36051
|
+
return _e($e.minute, a);
|
|
36059
36052
|
case "mo":
|
|
36060
36053
|
return n.ordinalNumber(a, { unit: "minute" });
|
|
36061
36054
|
default:
|
|
@@ -36078,7 +36071,7 @@ class u31 extends q2 {
|
|
|
36078
36071
|
parse(a, r, n) {
|
|
36079
36072
|
switch (r) {
|
|
36080
36073
|
case "s":
|
|
36081
|
-
return
|
|
36074
|
+
return _e($e.second, a);
|
|
36082
36075
|
case "so":
|
|
36083
36076
|
return n.ordinalNumber(a, { unit: "second" });
|
|
36084
36077
|
default:
|
|
@@ -36539,7 +36532,7 @@ const dt = (e, t) => t ? new Date(e.toLocaleString("en-US", { timeZone: t })) :
|
|
|
36539
36532
|
};
|
|
36540
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 || {});
|
|
36541
36534
|
const k31 = ["timestamp", "date", "iso"];
|
|
36542
|
-
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 || {});
|
|
36543
36536
|
function Im(e) {
|
|
36544
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);
|
|
36545
36538
|
}
|
|
@@ -36647,7 +36640,7 @@ function O31(e, t) {
|
|
|
36647
36640
|
return a[r + (t ? -1 : 1)];
|
|
36648
36641
|
}
|
|
36649
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) => {
|
|
36650
|
-
if (e.key ===
|
|
36643
|
+
if (e.key === ze.enter || e.key === ze.space)
|
|
36651
36644
|
return a && e.preventDefault(), t();
|
|
36652
36645
|
}, Wm = (e, t, a, r, n, i) => {
|
|
36653
36646
|
const c = po(e, t.slice(0, e.length), /* @__PURE__ */ new Date(), { locale: i });
|
|
@@ -38228,23 +38221,23 @@ const f41 = ({
|
|
|
38228
38221
|
}
|
|
38229
38222
|
}, G = (A) => {
|
|
38230
38223
|
switch (A.key) {
|
|
38231
|
-
case
|
|
38224
|
+
case ze.esc:
|
|
38232
38225
|
return Y();
|
|
38233
|
-
case
|
|
38226
|
+
case ze.arrowLeft:
|
|
38234
38227
|
return F(A);
|
|
38235
|
-
case
|
|
38228
|
+
case ze.arrowRight:
|
|
38236
38229
|
return F(A);
|
|
38237
|
-
case
|
|
38230
|
+
case ze.arrowUp:
|
|
38238
38231
|
return F(A);
|
|
38239
|
-
case
|
|
38232
|
+
case ze.arrowDown:
|
|
38240
38233
|
return F(A);
|
|
38241
38234
|
default:
|
|
38242
38235
|
return;
|
|
38243
38236
|
}
|
|
38244
38237
|
}, E = (A) => {
|
|
38245
|
-
if (A.key ===
|
|
38238
|
+
if (A.key === ze.enter)
|
|
38246
38239
|
return T();
|
|
38247
|
-
if (A.key ===
|
|
38240
|
+
if (A.key === ze.tab)
|
|
38248
38241
|
return W();
|
|
38249
38242
|
};
|
|
38250
38243
|
return t({ focusGrid: C }), (A, L) => {
|
|
@@ -40053,8 +40046,8 @@ const f41 = ({
|
|
|
40053
40046
|
), T = o1(
|
|
40054
40047
|
() => (z1) => o.value[z1] ? o.value[z1].year : 0
|
|
40055
40048
|
), Y = (z1) => !p.value.keepViewOnOffsetClick || z1 ? !0 : !c.value, O = (z1, y1, B1, U1 = !1) => {
|
|
40056
|
-
var d2,
|
|
40057
|
-
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);
|
|
40058
40051
|
}, D = () => {
|
|
40059
40052
|
e.autoApply && t("select-date");
|
|
40060
40053
|
};
|
|
@@ -40160,7 +40153,7 @@ const f41 = ({
|
|
|
40160
40153
|
}
|
|
40161
40154
|
}, h1 = (z1, y1, B1, U1) => {
|
|
40162
40155
|
if (e.sixWeeks && z1.length < 6) {
|
|
40163
|
-
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);
|
|
40164
40157
|
for (let j2 = 1; j2 <= d2; j2++)
|
|
40165
40158
|
if (M4 ? !!(j2 % 2) == U3 : U3) {
|
|
40166
40159
|
const We = z1[0].days[0], Ht = m1(k4(We.value, -7), _2(y1));
|
|
@@ -40174,17 +40167,17 @@ const f41 = ({
|
|
|
40174
40167
|
}, m1 = (z1, y1) => {
|
|
40175
40168
|
const B1 = I1(z1), U1 = [];
|
|
40176
40169
|
for (let d2 = 0; d2 < 7; d2++) {
|
|
40177
|
-
const
|
|
40170
|
+
const be = k4(B1, d2), Ze = _2(be) !== y1;
|
|
40178
40171
|
U1.push({
|
|
40179
|
-
text: e.hideOffsetDates && Ze ? "" :
|
|
40180
|
-
value:
|
|
40172
|
+
text: e.hideOffsetDates && Ze ? "" : be.getDate(),
|
|
40173
|
+
value: be,
|
|
40181
40174
|
current: !Ze,
|
|
40182
40175
|
classData: {}
|
|
40183
40176
|
});
|
|
40184
40177
|
}
|
|
40185
40178
|
return U1;
|
|
40186
40179
|
}, p1 = (z1, y1) => {
|
|
40187
|
-
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) => {
|
|
40188
40181
|
const j2 = m1(M4, z1);
|
|
40189
40182
|
if (B1.push({ days: j2 }), !B1[B1.length - 1].days.some(
|
|
40190
40183
|
(We) => w2(r4(We.value), r4(d2))
|
|
@@ -40193,7 +40186,7 @@ const f41 = ({
|
|
|
40193
40186
|
U3(We);
|
|
40194
40187
|
}
|
|
40195
40188
|
};
|
|
40196
|
-
return U3(Ze), h1(B1, U1, d2,
|
|
40189
|
+
return U3(Ze), h1(B1, U1, d2, be);
|
|
40197
40190
|
}, C1 = (z1) => {
|
|
40198
40191
|
const y1 = D0(I1(z1.value), l.hours, l.minutes, u2());
|
|
40199
40192
|
t("date-update", y1), g.value.enabled ? M9(y1, s, g.value.limit) : s.value = y1, r(), R3().then(() => {
|
|
@@ -40803,7 +40796,7 @@ const f41 = ({
|
|
|
40803
40796
|
} else
|
|
40804
40797
|
h1 === E3.right || h1 === E3.up ? c1("handleArrow", E3.left, 0, h1 === E3.up) : c1("handleArrow", E3.right, 0, h1 === E3.down);
|
|
40805
40798
|
}, j = (h1) => {
|
|
40806
|
-
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"));
|
|
40807
40800
|
}, S = () => {
|
|
40808
40801
|
Y(), r("time-picker-close");
|
|
40809
40802
|
}, B = (h1) => {
|
|
@@ -40826,20 +40819,20 @@ const f41 = ({
|
|
|
40826
40819
|
}, A1 = (h1, m1) => {
|
|
40827
40820
|
h1.preventDefault(), U(m1);
|
|
40828
40821
|
}, g1 = (h1) => {
|
|
40829
|
-
if (j(h1), h1.key ===
|
|
40830
|
-
return c1("selectWeekDate", h1.key ===
|
|
40831
|
-
if (h1.key ===
|
|
40832
|
-
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);
|
|
40833
40826
|
switch (h1.key) {
|
|
40834
|
-
case
|
|
40827
|
+
case ze.esc:
|
|
40835
40828
|
return L();
|
|
40836
|
-
case
|
|
40829
|
+
case ze.arrowLeft:
|
|
40837
40830
|
return A1(h1, E3.left);
|
|
40838
|
-
case
|
|
40831
|
+
case ze.arrowRight:
|
|
40839
40832
|
return A1(h1, E3.right);
|
|
40840
|
-
case
|
|
40833
|
+
case ze.arrowUp:
|
|
40841
40834
|
return A1(h1, E3.up);
|
|
40842
|
-
case
|
|
40835
|
+
case ze.arrowDown:
|
|
40843
40836
|
return A1(h1, E3.down);
|
|
40844
40837
|
default:
|
|
40845
40838
|
return;
|
|
@@ -41133,8 +41126,8 @@ const f41 = ({
|
|
|
41133
41126
|
L.value = null;
|
|
41134
41127
|
return;
|
|
41135
41128
|
}
|
|
41136
|
-
const d2 = Array.isArray(y1) ? !y1.some((Ze) => !x(Ze)) : x(y1),
|
|
41137
|
-
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")));
|
|
41138
41131
|
}, l2 = () => {
|
|
41139
41132
|
n.autoApply && C(L.value) && j(), J1();
|
|
41140
41133
|
}, me = () => c.value ? u2() : p1(), X1 = (y1) => {
|
|
@@ -41198,8 +41191,8 @@ const f41 = ({
|
|
|
41198
41191
|
}), Ge({ _: 2 }, [
|
|
41199
41192
|
i2(X(O), (U1, d2) => ({
|
|
41200
41193
|
name: U1,
|
|
41201
|
-
fn: F1((
|
|
41202
|
-
S1(y1.$slots, U1, Be(O3(
|
|
41194
|
+
fn: F1((be) => [
|
|
41195
|
+
S1(y1.$slots, U1, Be(O3(be)))
|
|
41203
41196
|
])
|
|
41204
41197
|
}))
|
|
41205
41198
|
]), 1040, ["input-value", "is-menu-open", "onSetEmptyDate"]),
|
|
@@ -41252,8 +41245,8 @@ const f41 = ({
|
|
|
41252
41245
|
}), Ge({ _: 2 }, [
|
|
41253
41246
|
i2(X(Y), (U1, d2) => ({
|
|
41254
41247
|
name: U1,
|
|
41255
|
-
fn: F1((
|
|
41256
|
-
S1(y1.$slots, U1, Be(O3({ ...
|
|
41248
|
+
fn: F1((be) => [
|
|
41249
|
+
S1(y1.$slots, U1, Be(O3({ ...be })))
|
|
41257
41250
|
])
|
|
41258
41251
|
}))
|
|
41259
41252
|
]), 1040, ["internal-model-value", "class", "open-on-top", "no-overlay-focus", "collapse", "onRecalculatePosition"])
|
|
@@ -43732,11 +43725,11 @@ var d01 = /* @__PURE__ */ function() {
|
|
|
43732
43725
|
);
|
|
43733
43726
|
t1.l += Z + J + u1;
|
|
43734
43727
|
var P1 = t1.l;
|
|
43735
|
-
t1.l = f1 + 4,
|
|
43728
|
+
t1.l = f1 + 4, be(t1, I, P, l1, _1), t1.l = P1;
|
|
43736
43729
|
}
|
|
43737
43730
|
return l1;
|
|
43738
43731
|
}
|
|
43739
|
-
function
|
|
43732
|
+
function be(K, i1, t1, a1, s1) {
|
|
43740
43733
|
K.l += 2;
|
|
43741
43734
|
var l1 = K.read_shift(2), V1 = K.read_shift(2), k1 = c(K);
|
|
43742
43735
|
if (l1 & 8257)
|
|
@@ -63901,7 +63894,7 @@ const ms1 = /* @__PURE__ */ e2(ds1, [["__scopeId", "data-v-ceac8d0d"]]), ps1 = /
|
|
|
63901
63894
|
Z2((C) => ({
|
|
63902
63895
|
"66462eee": s.value
|
|
63903
63896
|
}));
|
|
63904
|
-
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(() => {
|
|
63905
63898
|
const C = [];
|
|
63906
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;
|
|
63907
63900
|
}), m = o1(() => {
|
|
@@ -64088,7 +64081,7 @@ const Ms1 = /* @__PURE__ */ e2(Cs1, [["__scopeId", "data-v-87259aa3"]]), zs1 = {
|
|
|
64088
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(() => {
|
|
64089
64082
|
const d = [];
|
|
64090
64083
|
for (const p of t.value)
|
|
64091
|
-
typeof p == "string" ? d.push(`${
|
|
64084
|
+
typeof p == "string" ? d.push(`${we.getConfig().file.dynamicUrl}/${p}`) : p instanceof File && d.push(URL.createObjectURL(p));
|
|
64092
64085
|
return d;
|
|
64093
64086
|
});
|
|
64094
64087
|
async function f(d) {
|
|
@@ -64290,7 +64283,7 @@ const qs1 = /* @__PURE__ */ e2(Ws1, [["__scopeId", "data-v-0070c1b2"]]), js1 = (
|
|
|
64290
64283
|
H1("div", Gs1, [
|
|
64291
64284
|
H1("div", {
|
|
64292
64285
|
class: "footer__rights",
|
|
64293
|
-
textContent: K1(`${X(t)("allRightsReserved")} ® ${X(
|
|
64286
|
+
textContent: K1(`${X(t)("allRightsReserved")} ® ${X(we).getConfig().appName} ${X(a)}`)
|
|
64294
64287
|
}, null, 8, Xs1),
|
|
64295
64288
|
H1("div", Ks1, [
|
|
64296
64289
|
H1("span", null, [
|
|
@@ -64312,7 +64305,7 @@ const qs1 = /* @__PURE__ */ e2(Ws1, [["__scopeId", "data-v-0070c1b2"]]), js1 = (
|
|
|
64312
64305
|
const a71 = /* @__PURE__ */ e2(t71, [["__scopeId", "data-v-ad6fade9"]]), r71 = /* @__PURE__ */ D1({
|
|
64313
64306
|
__name: "PgaLogo",
|
|
64314
64307
|
setup(e) {
|
|
64315
|
-
const t =
|
|
64308
|
+
const t = we.getConfig(), { layout: a } = $3();
|
|
64316
64309
|
return (r, n) => (q(), w1(fc, {
|
|
64317
64310
|
name: X(t).routerHelpers.getDefaultRouteName()
|
|
64318
64311
|
}, {
|
|
@@ -64423,7 +64416,7 @@ const x71 = /* @__PURE__ */ e2(y71, [["__scopeId", "data-v-3d8a1110"]]), b71 = {
|
|
|
64423
64416
|
navigationSections: {}
|
|
64424
64417
|
},
|
|
64425
64418
|
setup(e) {
|
|
64426
|
-
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`]);
|
|
64427
64420
|
function f() {
|
|
64428
64421
|
X5() && setTimeout(() => n.value = !1, a.delayTime);
|
|
64429
64422
|
}
|
|
@@ -77896,7 +77889,7 @@ function zG1(e) {
|
|
|
77896
77889
|
ct("danger", () => y5("INTERNAL_SERVER_ERROR"));
|
|
77897
77890
|
return;
|
|
77898
77891
|
}
|
|
77899
|
-
const a =
|
|
77892
|
+
const a = we.getConfig();
|
|
77900
77893
|
if (a.i18n.apiConnectionsError(t)) {
|
|
77901
77894
|
ct("danger", () => a.i18n.apiConnectionsError(t));
|
|
77902
77895
|
return;
|
|
@@ -77909,7 +77902,7 @@ function zG1(e) {
|
|
|
77909
77902
|
}
|
|
77910
77903
|
const mv = W2("apiConnectionsSuccess");
|
|
77911
77904
|
function _G1(e) {
|
|
77912
|
-
const t =
|
|
77905
|
+
const t = we.getConfig();
|
|
77913
77906
|
if (t.i18n.apiConnectionsSuccess(e)) {
|
|
77914
77907
|
ct("success", () => t.i18n.apiConnectionsSuccess(e));
|
|
77915
77908
|
return;
|
|
@@ -77938,7 +77931,7 @@ async function m0(e, t, a, r, n, i, c = {}) {
|
|
|
77938
77931
|
const { getCustomHeaders: s } = i || {}, { success: o, error: l, preventDisplayError: f, preventThrowError: u, isLoadingRef: h, basicAuth: d } = c;
|
|
77939
77932
|
try {
|
|
77940
77933
|
h && (h.value = !0);
|
|
77941
|
-
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);
|
|
77942
77935
|
return e !== "get" && _G1(C.data.successCode), o && o(z, C.data.totalCount), { data: z, totalCount: C.data.totalCount };
|
|
77943
77936
|
} catch (y) {
|
|
77944
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)
|
|
@@ -78114,7 +78107,7 @@ async function VG1(e, t, a) {
|
|
|
78114
78107
|
a();
|
|
78115
78108
|
return;
|
|
78116
78109
|
}
|
|
78117
|
-
const r =
|
|
78110
|
+
const r = we.getConfig().routerHelpers;
|
|
78118
78111
|
if (!r.validateRouteAccess(e.meta.access)) {
|
|
78119
78112
|
a({ name: r.getDefaultRouteName(e) });
|
|
78120
78113
|
return;
|
|
@@ -78126,10 +78119,10 @@ async function kG1(e) {
|
|
|
78126
78119
|
}
|
|
78127
78120
|
function AG1(e) {
|
|
78128
78121
|
const t = bt().routeType;
|
|
78129
|
-
document.title = `${Qi(t, e)} | ${
|
|
78122
|
+
document.title = `${Qi(t, e)} | ${we.getConfig().appName}`;
|
|
78130
78123
|
}
|
|
78131
78124
|
async function SG1() {
|
|
78132
|
-
const e =
|
|
78125
|
+
const e = we.getConfig(), t = e.routerHelpers;
|
|
78133
78126
|
if (await lE(), !t.validateRouteAccess(bt().routeAccess)) {
|
|
78134
78127
|
e.router.push({ name: t.getDefaultRouteName() });
|
|
78135
78128
|
return;
|
|
@@ -78143,7 +78136,7 @@ function cX1(e, t, a) {
|
|
|
78143
78136
|
const r = nE();
|
|
78144
78137
|
r.use(gB({ storage: localStorage })), e.use(r), e.use(t.router), e.use(sy), e.use(xI, {
|
|
78145
78138
|
themes: { tooltip: { triggers: ["hover", "focus", "touch"], hideTriggers: (i) => [...i] } }
|
|
78146
|
-
}),
|
|
78139
|
+
}), we.init(t), ZP(a == null ? void 0 : a.appOptions), pt().init(a == null ? void 0 : a.appOptionsStore);
|
|
78147
78140
|
const n = { ...co1, ...a == null ? void 0 : a.components };
|
|
78148
78141
|
Object.entries(n).forEach(([i, c]) => e.component(i, c));
|
|
78149
78142
|
}
|