@dcrackel/hematournamentui 1.0.64 → 1.0.65
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/HemaTouranmentUI-lib.es.js +149 -148
- package/dist/HemaTouranmentUI-lib.umd.js +1 -1
- package/package.json +1 -1
- package/src/stories/Templates/EventManagement/EventAttendance/EventAttendance.stories.js +3 -4
- package/src/stories/Templates/EventManagement/EventAttendance/EventAttendance.vue +7 -9
- package/src/stories/Templates/EventManagement/ListEvents/ListEvents.vue +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as S, createElementBlock as J, normalizeClass as Se, ref as se, watch as
|
|
1
|
+
import { openBlock as S, createElementBlock as J, normalizeClass as Se, ref as se, watch as sr, computed as te, withDirectives as Ni, createElementVNode as j, vModelText as kd, Fragment as ye, renderList as Ue, withKeys as ke, withModifiers as Ke, toDisplayString as $e, reactive as gi, resolveComponent as Ee, createBlock as xe, createCommentVNode as _, withCtx as Te, createVNode as X, normalizeStyle as on, Transition as fi, renderSlot as me, defineComponent as it, useSlots as pi, toRef as ba, onMounted as yt, nextTick as lr, onUnmounted as iA, mergeProps as Mt, unref as O, isRef as ou, createSlots as zt, normalizeProps as ct, guardReactiveProps as Jt, Teleport as xd, h as wr, render as au, resolveDynamicComponent as Xa, createTextVNode as jn, onBeforeUpdate as Kp, vShow as Ea, getCurrentScope as Hp, onScopeDispose as Vp, onBeforeUnmount as _a, getCurrentInstance as jp, watchEffect as Yp, shallowRef as Wp, markRaw as qp, customRef as Zp } from "vue";
|
|
2
2
|
const Ye = (n, e) => {
|
|
3
3
|
const t = n.__vccOpts || n;
|
|
4
4
|
for (const [r, i] of e)
|
|
@@ -101,7 +101,7 @@ const ro = /* @__PURE__ */ Ye(Gp, [["render", Xp]]), _p = {
|
|
|
101
101
|
},
|
|
102
102
|
setup(n, { emit: e }) {
|
|
103
103
|
const t = se(n.value), r = se(null);
|
|
104
|
-
|
|
104
|
+
sr(() => n.value, (a) => {
|
|
105
105
|
t.value = a;
|
|
106
106
|
});
|
|
107
107
|
const i = te(() => {
|
|
@@ -1362,7 +1362,7 @@ function Ie(n) {
|
|
|
1362
1362
|
var e = Object.prototype.toString.call(n);
|
|
1363
1363
|
return n instanceof Date || hn(n) === "object" && e === "[object Date]" ? new Date(n.getTime()) : typeof n == "number" || e === "[object Number]" ? new Date(n) : ((typeof n == "string" || e === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
|
|
1364
1364
|
}
|
|
1365
|
-
function
|
|
1365
|
+
function rr(n, e) {
|
|
1366
1366
|
fe(2, arguments);
|
|
1367
1367
|
var t = Ie(n), r = ve(e);
|
|
1368
1368
|
return isNaN(r) ? /* @__PURE__ */ new Date(NaN) : (r && t.setDate(t.getDate() + r), t);
|
|
@@ -1382,7 +1382,7 @@ function bn(n, e) {
|
|
|
1382
1382
|
function Od(n, e) {
|
|
1383
1383
|
if (fe(2, arguments), !e || hn(e) !== "object")
|
|
1384
1384
|
return /* @__PURE__ */ new Date(NaN);
|
|
1385
|
-
var t = e.years ? ve(e.years) : 0, r = e.months ? ve(e.months) : 0, i = e.weeks ? ve(e.weeks) : 0, o = e.days ? ve(e.days) : 0, a = e.hours ? ve(e.hours) : 0, s = e.minutes ? ve(e.minutes) : 0, l = e.seconds ? ve(e.seconds) : 0, A = Ie(n), u = r || t ? bn(A, r + t * 12) : A, c = o || i ?
|
|
1385
|
+
var t = e.years ? ve(e.years) : 0, r = e.months ? ve(e.months) : 0, i = e.weeks ? ve(e.weeks) : 0, o = e.days ? ve(e.days) : 0, a = e.hours ? ve(e.hours) : 0, s = e.minutes ? ve(e.minutes) : 0, l = e.seconds ? ve(e.seconds) : 0, A = Ie(n), u = r || t ? bn(A, r + t * 12) : A, c = o || i ? rr(u, o + i * 7) : u, d = s + a * 60, g = l + d * 60, f = g * 1e3, h = new Date(c.getTime() + f);
|
|
1386
1386
|
return h;
|
|
1387
1387
|
}
|
|
1388
1388
|
function um(n, e) {
|
|
@@ -1391,13 +1391,13 @@ function um(n, e) {
|
|
|
1391
1391
|
return new Date(t + r);
|
|
1392
1392
|
}
|
|
1393
1393
|
var cm = {};
|
|
1394
|
-
function
|
|
1394
|
+
function Gn() {
|
|
1395
1395
|
return cm;
|
|
1396
1396
|
}
|
|
1397
1397
|
function ii(n, e) {
|
|
1398
1398
|
var t, r, i, o, a, s, l, A;
|
|
1399
1399
|
fe(1, arguments);
|
|
1400
|
-
var u =
|
|
1400
|
+
var u = Gn(), c = ve((t = (r = (i = (o = e == null ? void 0 : e.weekStartsOn) !== null && o !== void 0 ? o : e == null || (a = e.locale) === null || a === void 0 || (s = a.options) === null || s === void 0 ? void 0 : s.weekStartsOn) !== null && i !== void 0 ? i : u.weekStartsOn) !== null && r !== void 0 ? r : (l = u.locale) === null || l === void 0 || (A = l.options) === null || A === void 0 ? void 0 : A.weekStartsOn) !== null && t !== void 0 ? t : 0);
|
|
1401
1401
|
if (!(c >= 0 && c <= 6))
|
|
1402
1402
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
1403
1403
|
var d = Ie(n), g = d.getDay(), f = (g < c ? 7 : 0) + g - c;
|
|
@@ -1508,7 +1508,7 @@ function Im(n) {
|
|
|
1508
1508
|
function Bm(n, e) {
|
|
1509
1509
|
var t, r, i, o, a, s, l, A;
|
|
1510
1510
|
fe(1, arguments);
|
|
1511
|
-
var u =
|
|
1511
|
+
var u = Gn(), c = ve((t = (r = (i = (o = e == null ? void 0 : e.weekStartsOn) !== null && o !== void 0 ? o : e == null || (a = e.locale) === null || a === void 0 || (s = a.options) === null || s === void 0 ? void 0 : s.weekStartsOn) !== null && i !== void 0 ? i : u.weekStartsOn) !== null && r !== void 0 ? r : (l = u.locale) === null || l === void 0 || (A = l.options) === null || A === void 0 ? void 0 : A.weekStartsOn) !== null && t !== void 0 ? t : 0);
|
|
1512
1512
|
if (!(c >= 0 && c <= 6))
|
|
1513
1513
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
1514
1514
|
var d = Ie(n), g = d.getDay(), f = (g < c ? -7 : 0) + 6 - (g - c);
|
|
@@ -1562,7 +1562,7 @@ function Ld(n) {
|
|
|
1562
1562
|
function oi(n, e) {
|
|
1563
1563
|
var t, r, i, o, a, s, l, A;
|
|
1564
1564
|
fe(1, arguments);
|
|
1565
|
-
var u =
|
|
1565
|
+
var u = Gn(), c = ve((t = (r = (i = (o = e == null ? void 0 : e.weekStartsOn) !== null && o !== void 0 ? o : e == null || (a = e.locale) === null || a === void 0 || (s = a.options) === null || s === void 0 ? void 0 : s.weekStartsOn) !== null && i !== void 0 ? i : u.weekStartsOn) !== null && r !== void 0 ? r : (l = u.locale) === null || l === void 0 || (A = l.options) === null || A === void 0 ? void 0 : A.weekStartsOn) !== null && t !== void 0 ? t : 0);
|
|
1566
1566
|
if (!(c >= 0 && c <= 6))
|
|
1567
1567
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
1568
1568
|
var d = Ie(n), g = d.getUTCDay(), f = (g < c ? 7 : 0) + g - c;
|
|
@@ -1571,7 +1571,7 @@ function oi(n, e) {
|
|
|
1571
1571
|
function lA(n, e) {
|
|
1572
1572
|
var t, r, i, o, a, s, l, A;
|
|
1573
1573
|
fe(1, arguments);
|
|
1574
|
-
var u = Ie(n), c = u.getUTCFullYear(), d =
|
|
1574
|
+
var u = Ie(n), c = u.getUTCFullYear(), d = Gn(), g = ve((t = (r = (i = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (a = e.locale) === null || a === void 0 || (s = a.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && i !== void 0 ? i : d.firstWeekContainsDate) !== null && r !== void 0 ? r : (l = d.locale) === null || l === void 0 || (A = l.options) === null || A === void 0 ? void 0 : A.firstWeekContainsDate) !== null && t !== void 0 ? t : 1);
|
|
1575
1575
|
if (!(g >= 1 && g <= 7))
|
|
1576
1576
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
1577
1577
|
var f = /* @__PURE__ */ new Date(0);
|
|
@@ -1584,7 +1584,7 @@ function lA(n, e) {
|
|
|
1584
1584
|
function bm(n, e) {
|
|
1585
1585
|
var t, r, i, o, a, s, l, A;
|
|
1586
1586
|
fe(1, arguments);
|
|
1587
|
-
var u =
|
|
1587
|
+
var u = Gn(), c = ve((t = (r = (i = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (a = e.locale) === null || a === void 0 || (s = a.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && i !== void 0 ? i : u.firstWeekContainsDate) !== null && r !== void 0 ? r : (l = u.locale) === null || l === void 0 || (A = l.options) === null || A === void 0 ? void 0 : A.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), d = lA(n, e), g = /* @__PURE__ */ new Date(0);
|
|
1588
1588
|
g.setUTCFullYear(d, 0, c), g.setUTCHours(0, 0, 0, 0);
|
|
1589
1589
|
var f = oi(g, e);
|
|
1590
1590
|
return f;
|
|
@@ -2689,7 +2689,7 @@ var Xm = /^(\d+)(th|st|nd|rd)?/i, _m = /\d+/i, $m = {
|
|
|
2689
2689
|
function br(n, e, t) {
|
|
2690
2690
|
var r, i, o, a, s, l, A, u, c, d, g, f, h, C, B, Q, M, m;
|
|
2691
2691
|
fe(2, arguments);
|
|
2692
|
-
var D = String(e), I =
|
|
2692
|
+
var D = String(e), I = Gn(), x = (r = (i = t == null ? void 0 : t.locale) !== null && i !== void 0 ? i : I.locale) !== null && r !== void 0 ? r : Hd, q = ve((o = (a = (s = (l = t == null ? void 0 : t.firstWeekContainsDate) !== null && l !== void 0 ? l : t == null || (A = t.locale) === null || A === void 0 || (u = A.options) === null || u === void 0 ? void 0 : u.firstWeekContainsDate) !== null && s !== void 0 ? s : I.firstWeekContainsDate) !== null && a !== void 0 ? a : (c = I.locale) === null || c === void 0 || (d = c.options) === null || d === void 0 ? void 0 : d.firstWeekContainsDate) !== null && o !== void 0 ? o : 1);
|
|
2693
2693
|
if (!(q >= 1 && q <= 7))
|
|
2694
2694
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
2695
2695
|
var P = ve((g = (f = (h = (C = t == null ? void 0 : t.weekStartsOn) !== null && C !== void 0 ? C : t == null || (B = t.locale) === null || B === void 0 || (Q = B.options) === null || Q === void 0 ? void 0 : Q.weekStartsOn) !== null && h !== void 0 ? h : I.weekStartsOn) !== null && f !== void 0 ? f : (M = I.locale) === null || M === void 0 || (m = M.options) === null || m === void 0 ? void 0 : m.weekStartsOn) !== null && g !== void 0 ? g : 0);
|
|
@@ -2779,7 +2779,7 @@ function Vi(n) {
|
|
|
2779
2779
|
function BE(n, e) {
|
|
2780
2780
|
var t, r, i, o, a, s, l, A;
|
|
2781
2781
|
fe(1, arguments);
|
|
2782
|
-
var u = Ie(n), c = u.getFullYear(), d =
|
|
2782
|
+
var u = Ie(n), c = u.getFullYear(), d = Gn(), g = ve((t = (r = (i = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (a = e.locale) === null || a === void 0 || (s = a.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && i !== void 0 ? i : d.firstWeekContainsDate) !== null && r !== void 0 ? r : (l = d.locale) === null || l === void 0 || (A = l.options) === null || A === void 0 ? void 0 : A.firstWeekContainsDate) !== null && t !== void 0 ? t : 1);
|
|
2783
2783
|
if (!(g >= 1 && g <= 7))
|
|
2784
2784
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
2785
2785
|
var f = /* @__PURE__ */ new Date(0);
|
|
@@ -2792,7 +2792,7 @@ function BE(n, e) {
|
|
|
2792
2792
|
function QE(n, e) {
|
|
2793
2793
|
var t, r, i, o, a, s, l, A;
|
|
2794
2794
|
fe(1, arguments);
|
|
2795
|
-
var u =
|
|
2795
|
+
var u = Gn(), c = ve((t = (r = (i = (o = e == null ? void 0 : e.firstWeekContainsDate) !== null && o !== void 0 ? o : e == null || (a = e.locale) === null || a === void 0 || (s = a.options) === null || s === void 0 ? void 0 : s.firstWeekContainsDate) !== null && i !== void 0 ? i : u.firstWeekContainsDate) !== null && r !== void 0 ? r : (l = u.locale) === null || l === void 0 || (A = l.options) === null || A === void 0 ? void 0 : A.firstWeekContainsDate) !== null && t !== void 0 ? t : 1), d = BE(n, e), g = /* @__PURE__ */ new Date(0);
|
|
2796
2796
|
g.setFullYear(d, 0, c), g.setHours(0, 0, 0, 0);
|
|
2797
2797
|
var f = ii(g, e);
|
|
2798
2798
|
return f;
|
|
@@ -3762,7 +3762,7 @@ var HE = /* @__PURE__ */ function(n) {
|
|
|
3762
3762
|
function uA(n, e, t) {
|
|
3763
3763
|
var r, i, o, a, s, l, A, u;
|
|
3764
3764
|
fe(2, arguments);
|
|
3765
|
-
var c =
|
|
3765
|
+
var c = Gn(), d = ve((r = (i = (o = (a = t == null ? void 0 : t.weekStartsOn) !== null && a !== void 0 ? a : t == null || (s = t.locale) === null || s === void 0 || (l = s.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && o !== void 0 ? o : c.weekStartsOn) !== null && i !== void 0 ? i : (A = c.locale) === null || A === void 0 || (u = A.options) === null || u === void 0 ? void 0 : u.weekStartsOn) !== null && r !== void 0 ? r : 0);
|
|
3766
3766
|
if (!(d >= 0 && d <= 6))
|
|
3767
3767
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
3768
3768
|
var g = Ie(n), f = ve(e), h = g.getUTCDay(), C = f % 7, B = (C + 7) % 7, Q = (B < d ? 7 : 0) + f - h;
|
|
@@ -4606,7 +4606,7 @@ var _E = /* @__PURE__ */ function(n) {
|
|
|
4606
4606
|
function fl(n, e, t, r) {
|
|
4607
4607
|
var i, o, a, s, l, A, u, c, d, g, f, h, C, B;
|
|
4608
4608
|
fe(3, arguments);
|
|
4609
|
-
var Q = String(n), M = String(e), m =
|
|
4609
|
+
var Q = String(n), M = String(e), m = Gn(), D = (i = (o = void 0) !== null && o !== void 0 ? o : m.locale) !== null && i !== void 0 ? i : Hd;
|
|
4610
4610
|
if (!D.match)
|
|
4611
4611
|
throw new RangeError("locale must contain match property");
|
|
4612
4612
|
var I = ve((a = (s = (l = (A = void 0) !== null && A !== void 0 ? A : void 0) !== null && l !== void 0 ? l : m.firstWeekContainsDate) !== null && s !== void 0 ? s : (u = m.locale) === null || u === void 0 || (c = u.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && a !== void 0 ? a : 1);
|
|
@@ -4721,7 +4721,7 @@ function mu(n, e) {
|
|
|
4721
4721
|
function BC(n, e) {
|
|
4722
4722
|
fe(2, arguments);
|
|
4723
4723
|
var t = ve(e);
|
|
4724
|
-
return
|
|
4724
|
+
return rr(n, -t);
|
|
4725
4725
|
}
|
|
4726
4726
|
function QC(n, e) {
|
|
4727
4727
|
var t;
|
|
@@ -5637,7 +5637,7 @@ const CI = (n, e) => {
|
|
|
5637
5637
|
seconds: e ? Vi($()) : 0
|
|
5638
5638
|
};
|
|
5639
5639
|
return Object.assign(t, n);
|
|
5640
|
-
}, Cr = (n, e, t) => [et($(n), { date: 1 }), et($(), { month: e, year: t, date: 1 })],
|
|
5640
|
+
}, Cr = (n, e, t) => [et($(n), { date: 1 }), et($(), { month: e, year: t, date: 1 })], ir = (n, e, t) => {
|
|
5641
5641
|
let r = n ? $(n) : $();
|
|
5642
5642
|
return (e || e === 0) && (r = _d(r, e)), t && (r = Jn(r, t)), r;
|
|
5643
5643
|
}, gg = (n, e, t, r, i) => {
|
|
@@ -5869,9 +5869,9 @@ const CI = (n, e) => {
|
|
|
5869
5869
|
};
|
|
5870
5870
|
}, JI = (n, e, t) => {
|
|
5871
5871
|
const r = se(), { defaultedTextInput: i, getDefaultPattern: o } = At(e), a = se(""), s = ba(e, "format");
|
|
5872
|
-
|
|
5872
|
+
sr(r, () => {
|
|
5873
5873
|
n("internal-model-change", r.value);
|
|
5874
|
-
}),
|
|
5874
|
+
}), sr(s, () => {
|
|
5875
5875
|
F();
|
|
5876
5876
|
});
|
|
5877
5877
|
const l = (p) => ug(p, e.timezone), A = (p) => kn(p, e.timezone), u = (p, w, T = !1) => fg(
|
|
@@ -5901,16 +5901,16 @@ const CI = (n, e) => {
|
|
|
5901
5901
|
p[1],
|
|
5902
5902
|
kr(null, +p[1].hours, +p[1].minutes, p[1].seconds)
|
|
5903
5903
|
)
|
|
5904
|
-
] : f(p, kr(null, p.hours, p.minutes, p.seconds)), C = (p) => Array.isArray(p) ? e.multiDates ? p.map((w) => f(w,
|
|
5904
|
+
] : f(p, kr(null, p.hours, p.minutes, p.seconds)), C = (p) => Array.isArray(p) ? e.multiDates ? p.map((w) => f(w, ir(null, +w.month, +w.year))) : sa(
|
|
5905
5905
|
() => [
|
|
5906
|
-
f(p[0],
|
|
5906
|
+
f(p[0], ir(null, +p[0].month, +p[0].year)),
|
|
5907
5907
|
f(
|
|
5908
5908
|
p[1],
|
|
5909
|
-
p[1] ?
|
|
5909
|
+
p[1] ? ir(null, +p[1].month, +p[1].year) : Bi(e.partialRange)
|
|
5910
5910
|
)
|
|
5911
5911
|
],
|
|
5912
5912
|
e.range
|
|
5913
|
-
) : f(p,
|
|
5913
|
+
) : f(p, ir(null, +p.month, +p.year)), B = (p) => {
|
|
5914
5914
|
if (Array.isArray(p))
|
|
5915
5915
|
return p.map((w) => b(w));
|
|
5916
5916
|
throw new Error(Da.dateArr("multi-dates"));
|
|
@@ -6005,7 +6005,7 @@ const zI = ({
|
|
|
6005
6005
|
top: "0",
|
|
6006
6006
|
left: "0"
|
|
6007
6007
|
}), c = se(!1), d = ba(a, "teleportCenter");
|
|
6008
|
-
|
|
6008
|
+
sr(d, () => {
|
|
6009
6009
|
u.value = JSON.parse(JSON.stringify({})), m();
|
|
6010
6010
|
});
|
|
6011
6011
|
const g = (b) => {
|
|
@@ -6215,7 +6215,7 @@ const zI = ({
|
|
|
6215
6215
|
if (a.value) {
|
|
6216
6216
|
if (e.hideOffsetDates && !E.current)
|
|
6217
6217
|
return !1;
|
|
6218
|
-
const p =
|
|
6218
|
+
const p = rr(a.value, +e.autoRange), w = Ca($(a.value), e.timezone, e.weekStart);
|
|
6219
6219
|
return e.weekPicker ? je(w[1], $(E.value)) : je(p, $(E.value));
|
|
6220
6220
|
}
|
|
6221
6221
|
return !1;
|
|
@@ -6224,7 +6224,7 @@ const zI = ({
|
|
|
6224
6224
|
}, B = (E) => {
|
|
6225
6225
|
if (e.autoRange || e.weekPicker) {
|
|
6226
6226
|
if (a.value) {
|
|
6227
|
-
const p =
|
|
6227
|
+
const p = rr(a.value, +e.autoRange);
|
|
6228
6228
|
if (e.hideOffsetDates && !E.current)
|
|
6229
6229
|
return !1;
|
|
6230
6230
|
const w = Ca($(a.value), e.timezone, e.weekStart);
|
|
@@ -6826,7 +6826,7 @@ const zI = ({
|
|
|
6826
6826
|
value: v.internalModelValue
|
|
6827
6827
|
}) : _("", !0),
|
|
6828
6828
|
v.$slots["action-preview"] ? _("", !0) : (S(), J(ye, { key: 1 }, [
|
|
6829
|
-
|
|
6829
|
+
jn($e(x.value), 1)
|
|
6830
6830
|
], 64))
|
|
6831
6831
|
], 8, GI)) : _("", !0),
|
|
6832
6832
|
j("div", XI, [
|
|
@@ -6903,7 +6903,7 @@ const zI = ({
|
|
|
6903
6903
|
Kp(() => {
|
|
6904
6904
|
g.value = null;
|
|
6905
6905
|
}), yt(() => {
|
|
6906
|
-
|
|
6906
|
+
lr().then(() => R()), s.noOverlayFocus || D(), m(!0);
|
|
6907
6907
|
}), iA(() => m(!1));
|
|
6908
6908
|
const m = (E) => {
|
|
6909
6909
|
var p;
|
|
@@ -6938,13 +6938,13 @@ const zI = ({
|
|
|
6938
6938
|
dp__container_block: ((p = s.items) == null ? void 0 : p.length) > 6
|
|
6939
6939
|
};
|
|
6940
6940
|
});
|
|
6941
|
-
|
|
6941
|
+
sr(
|
|
6942
6942
|
() => s.items,
|
|
6943
6943
|
() => R(),
|
|
6944
6944
|
{ deep: !0 }
|
|
6945
6945
|
);
|
|
6946
6946
|
const R = () => {
|
|
6947
|
-
|
|
6947
|
+
lr().then(() => {
|
|
6948
6948
|
const E = ht(g), p = ht(f), w = ht(B), T = ht(M), K = w ? w.getBoundingClientRect().height : 0;
|
|
6949
6949
|
p && (p.getBoundingClientRect().height ? Q.value = p.getBoundingClientRect().height - K : Q.value = u.value.modeHeight - K), E && T && (T.scrollTop = E.offsetTop - T.offsetTop - (Q.value / 2 - E.getBoundingClientRect().height) - K);
|
|
6950
6950
|
});
|
|
@@ -7021,7 +7021,7 @@ const zI = ({
|
|
|
7021
7021
|
item: z
|
|
7022
7022
|
}) : _("", !0),
|
|
7023
7023
|
E.$slots.item ? _("", !0) : (S(), J(ye, { key: 1 }, [
|
|
7024
|
-
|
|
7024
|
+
jn($e(z.text), 1)
|
|
7025
7025
|
], 64))
|
|
7026
7026
|
], 2)
|
|
7027
7027
|
], 42, nB))), 128))
|
|
@@ -7159,7 +7159,7 @@ const zI = ({
|
|
|
7159
7159
|
year: n.year
|
|
7160
7160
|
}) : _("", !0),
|
|
7161
7161
|
h.$slots.year ? _("", !0) : (S(), J(ye, { key: 1 }, [
|
|
7162
|
-
|
|
7162
|
+
jn($e(n.year), 1)
|
|
7163
7163
|
], 64))
|
|
7164
7164
|
], 40, aB),
|
|
7165
7165
|
O(i)(O(s), n.instance) ? (S(), xe(vo, {
|
|
@@ -7326,7 +7326,7 @@ const zI = ({
|
|
|
7326
7326
|
if (n.range) {
|
|
7327
7327
|
const E = D();
|
|
7328
7328
|
if (Array.isArray(s.value) && Array.isArray(E)) {
|
|
7329
|
-
const p = x(U, Y, 0) || x(U, Y, 1), w =
|
|
7329
|
+
const p = x(U, Y, 0) || x(U, Y, 1), w = ir(yn($()), U, l.value(Y));
|
|
7330
7330
|
return $a(s.value, d.value, w) && !p;
|
|
7331
7331
|
}
|
|
7332
7332
|
return !1;
|
|
@@ -7339,9 +7339,9 @@ const zI = ({
|
|
|
7339
7339
|
Ag(l.value(U), n.maxDate)
|
|
7340
7340
|
) || SI(n.disabledDates, l.value(U)).includes(Y.value), w = q(Y.value, U), T = pg(a.value, Y.value, l.value(U));
|
|
7341
7341
|
return { active: E, disabled: p, isBetween: w, highlighted: T };
|
|
7342
|
-
})), v = (U, Y) =>
|
|
7342
|
+
})), v = (U, Y) => ir(yn($()), U, l.value(Y)), R = (U, Y) => {
|
|
7343
7343
|
const E = s.value ? s.value : yn(/* @__PURE__ */ new Date());
|
|
7344
|
-
s.value =
|
|
7344
|
+
s.value = ir(E, U, l.value(Y)), e("auto-apply");
|
|
7345
7345
|
}, H = (U, Y) => {
|
|
7346
7346
|
const E = yA(s, v(U, Y), e);
|
|
7347
7347
|
rs(E, e, n.autoApply, n.modelAuto);
|
|
@@ -7667,7 +7667,7 @@ const zI = ({
|
|
|
7667
7667
|
class: Se(v.value)
|
|
7668
7668
|
}, [
|
|
7669
7669
|
ie.separator ? (S(), J(ye, { key: 0 }, [
|
|
7670
|
-
|
|
7670
|
+
jn(" : ")
|
|
7671
7671
|
], 64)) : (S(), J(ye, { key: 1 }, [
|
|
7672
7672
|
j("button", {
|
|
7673
7673
|
ref_for: !0,
|
|
@@ -7722,7 +7722,7 @@ const zI = ({
|
|
|
7722
7722
|
value: G.value(ie.type).value
|
|
7723
7723
|
}) : _("", !0),
|
|
7724
7724
|
y.$slots[ie.type] ? _("", !0) : (S(), J(ye, { key: 1 }, [
|
|
7725
|
-
|
|
7725
|
+
jn($e(G.value(ie.type).text), 1)
|
|
7726
7726
|
], 64))
|
|
7727
7727
|
], 42, pB),
|
|
7728
7728
|
j("button", {
|
|
@@ -7863,7 +7863,7 @@ const zI = ({
|
|
|
7863
7863
|
b.push(D(0));
|
|
7864
7864
|
return b;
|
|
7865
7865
|
}), x = (b, L = !1, U = "") => {
|
|
7866
|
-
L || r("reset-flow"), m.value = b, r(b ? "overlay-opened" : "overlay-closed"), i.arrowNavigation && a(b),
|
|
7866
|
+
L || r("reset-flow"), m.value = b, r(b ? "overlay-opened" : "overlay-closed"), i.arrowNavigation && a(b), lr(() => {
|
|
7867
7867
|
U !== "" && B.value[0] && B.value[0].openChildCmp(U);
|
|
7868
7868
|
});
|
|
7869
7869
|
}, q = te(() => ({
|
|
@@ -8286,7 +8286,7 @@ const zI = ({
|
|
|
8286
8286
|
value: i[k.type]
|
|
8287
8287
|
}) : _("", !0),
|
|
8288
8288
|
p.$slots[k.type] ? _("", !0) : (S(), J(ye, { key: 1 }, [
|
|
8289
|
-
|
|
8289
|
+
jn($e(k.text), 1)
|
|
8290
8290
|
], 64))
|
|
8291
8291
|
], 40, xB),
|
|
8292
8292
|
X(fi, {
|
|
@@ -8427,8 +8427,8 @@ const zI = ({
|
|
|
8427
8427
|
});
|
|
8428
8428
|
const I = (k) => k ? i.vertical ? "vNext" : "next" : i.vertical ? "vPrevious" : "previous", x = (k, y) => {
|
|
8429
8429
|
if (i.transitions) {
|
|
8430
|
-
const ae = Rt(
|
|
8431
|
-
C.value = Ot(Rt(
|
|
8430
|
+
const ae = Rt(ir($(), i.month, i.year));
|
|
8431
|
+
C.value = Ot(Rt(ir($(), k, y)), ae) ? a.value[I(!0)] : a.value[I(!1)], h.value = !1, lr(() => {
|
|
8432
8432
|
h.value = !0;
|
|
8433
8433
|
});
|
|
8434
8434
|
}
|
|
@@ -8453,7 +8453,7 @@ const zI = ({
|
|
|
8453
8453
|
const { width: ge, height: Z } = Ce.getBoundingClientRect();
|
|
8454
8454
|
c.value = k.value;
|
|
8455
8455
|
let oe = { left: `${ge / 2}px` }, we = -50;
|
|
8456
|
-
if (await
|
|
8456
|
+
if (await lr(), Q.value[0]) {
|
|
8457
8457
|
const { left: le, width: Fe } = Q.value[0].getBoundingClientRect();
|
|
8458
8458
|
le < 0 && (oe = { left: "0" }, we = 0, M.value.left = `${ge / 2}px`), window.innerWidth < le + Fe && (oe = { right: "0" }, we = 0, M.value.left = `${Fe - ge / 2}px`);
|
|
8459
8459
|
}
|
|
@@ -8513,7 +8513,7 @@ const zI = ({
|
|
|
8513
8513
|
index: ie
|
|
8514
8514
|
}) : _("", !0),
|
|
8515
8515
|
k.$slots["calendar-header"] ? _("", !0) : (S(), J(ye, { key: 1 }, [
|
|
8516
|
-
|
|
8516
|
+
jn($e(pe), 1)
|
|
8517
8517
|
], 64))
|
|
8518
8518
|
]))), 128))
|
|
8519
8519
|
]),
|
|
@@ -8569,7 +8569,7 @@ const zI = ({
|
|
|
8569
8569
|
date: ge.value
|
|
8570
8570
|
}) : _("", !0),
|
|
8571
8571
|
k.$slots.day ? _("", !0) : (S(), J(ye, { key: 1 }, [
|
|
8572
|
-
|
|
8572
|
+
jn($e(ge.text), 1)
|
|
8573
8573
|
], 64)),
|
|
8574
8574
|
ge.marker && H.value(ge) ? (S(), J(ye, { key: 2 }, [
|
|
8575
8575
|
k.$slots.marker ? me(k.$slots, "marker", {
|
|
@@ -8644,7 +8644,7 @@ const zI = ({
|
|
|
8644
8644
|
}, x = () => {
|
|
8645
8645
|
n.autoApply && e("select-date");
|
|
8646
8646
|
};
|
|
8647
|
-
|
|
8647
|
+
sr(o, (N, ne) => {
|
|
8648
8648
|
JSON.stringify(N) !== JSON.stringify(ne) && v();
|
|
8649
8649
|
}), yt(() => {
|
|
8650
8650
|
n.shadow || (o.value || (p(), A.value && B(A.value)), v(!0), n.focusStartDate && n.startDate && p());
|
|
@@ -8740,10 +8740,10 @@ const zI = ({
|
|
|
8740
8740
|
const Ge = 6 - N.length, An = (ne.getDay() + 7 - Re) % 7, W = 6 - (Be.getDay() + 7 - Re) % 7, [V, re] = k(An, W);
|
|
8741
8741
|
for (let Ae = 1; Ae <= Ge; Ae++)
|
|
8742
8742
|
if (re ? !!(Ae % 2) == V : V) {
|
|
8743
|
-
const be = N[0].days[0], Xe = ae(
|
|
8743
|
+
const be = N[0].days[0], Xe = ae(rr(be.value, -7), ze(ne));
|
|
8744
8744
|
N.unshift({ days: Xe });
|
|
8745
8745
|
} else {
|
|
8746
|
-
const be = N[N.length - 1], Xe = be.days[be.days.length - 1], Tt = ae(
|
|
8746
|
+
const be = N[N.length - 1], Xe = be.days[be.days.length - 1], Tt = ae(rr(Xe.value, 1), ze(ne));
|
|
8747
8747
|
N.push({ days: Tt });
|
|
8748
8748
|
}
|
|
8749
8749
|
}
|
|
@@ -8751,7 +8751,7 @@ const zI = ({
|
|
|
8751
8751
|
}, ae = (N, ne) => {
|
|
8752
8752
|
const Be = $(N), Re = [];
|
|
8753
8753
|
for (let Ge = 0; Ge < 7; Ge++) {
|
|
8754
|
-
const An =
|
|
8754
|
+
const An = rr(Be, Ge), W = ze(An) !== ne;
|
|
8755
8755
|
Re.push({
|
|
8756
8756
|
text: n.hideOffsetDates && W ? "" : An.getDate(),
|
|
8757
8757
|
value: An,
|
|
@@ -8766,20 +8766,20 @@ const zI = ({
|
|
|
8766
8766
|
if (Be.push({ days: Ae }), !Be[Be.length - 1].days.some(
|
|
8767
8767
|
(be) => je(Rt(be.value), Rt(Ge))
|
|
8768
8768
|
)) {
|
|
8769
|
-
const be =
|
|
8769
|
+
const be = rr(re, 7);
|
|
8770
8770
|
V(be);
|
|
8771
8771
|
}
|
|
8772
8772
|
};
|
|
8773
8773
|
return V(W), y(Be, Re, Ge, An);
|
|
8774
8774
|
}, ie = (N) => (o.value = Ca($(N.value), n.timezone, n.weekStart), e("date-update", N.value), P()), Ce = (N) => {
|
|
8775
8775
|
const ne = kr($(N.value), s.hours, s.minutes, In());
|
|
8776
|
-
e("date-update", ne), n.multiDates ? vA(ne, o, n.multiDatesLimit) : o.value = ne, r(),
|
|
8776
|
+
e("date-update", ne), n.multiDates ? vA(ne, o, n.multiDatesLimit) : o.value = ne, r(), lr().then(() => {
|
|
8777
8777
|
P();
|
|
8778
8778
|
});
|
|
8779
8779
|
}, ge = (N) => n.noDisabledRange ? cg(i.value[0], N).some((ne) => c(ne)) : !1, Z = () => {
|
|
8780
8780
|
i.value = o.value ? o.value.slice() : [], i.value.length === 2 && !(n.fixedStart || n.fixedEnd) && (i.value = []);
|
|
8781
8781
|
}, oe = (N, ne) => {
|
|
8782
|
-
const Be = [$(N.value),
|
|
8782
|
+
const Be = [$(N.value), rr($(N.value), +n.autoRange)];
|
|
8783
8783
|
d(Be) ? (ne && we(N.value), i.value = Be) : e("invalid-date", N.value);
|
|
8784
8784
|
}, we = (N) => {
|
|
8785
8785
|
const ne = ze($(N)), Be = Pe($(N));
|
|
@@ -8812,7 +8812,7 @@ const zI = ({
|
|
|
8812
8812
|
i.value[0] && i.value[1] && +((N = i.value) == null ? void 0 : N[0]) > +((ne = i.value) == null ? void 0 : ne[1]) && (i.value.reverse(), e("range-start", i.value[0]), e("range-end", i.value[1]));
|
|
8813
8813
|
}, en = () => {
|
|
8814
8814
|
i.value.length && (i.value[0] && !i.value[1] ? $t(0) : ($t(0), $t(1), r()), Yt(), o.value = i.value.slice(), rs(i.value, e, n.autoApply, n.modelAuto));
|
|
8815
|
-
},
|
|
8815
|
+
}, _n = (N, ne = !1) => {
|
|
8816
8816
|
if (c(N.value) || !N.current && n.hideOffsetDates)
|
|
8817
8817
|
return e("invalid-date", N.value);
|
|
8818
8818
|
if (n.weekPicker)
|
|
@@ -8826,20 +8826,20 @@ const zI = ({
|
|
|
8826
8826
|
const Re = (Be = n.flow) != null && Be.length ? n.flow[n.flowStep] : void 0;
|
|
8827
8827
|
!ne.fromNav && (Re === Rn.month || Re === Rn.year) && r();
|
|
8828
8828
|
}, mt = (N, ne) => {
|
|
8829
|
-
Eg({ value: N, modelValue: o, range: n.range, timezone: ne ? void 0 : n.timezone }), x(), n.multiCalendars &&
|
|
8829
|
+
Eg({ value: N, modelValue: o, range: n.range, timezone: ne ? void 0 : n.timezone }), x(), n.multiCalendars && lr().then(() => v(!0));
|
|
8830
8830
|
}, ur = () => {
|
|
8831
8831
|
n.range ? o.value && Array.isArray(o.value) && o.value[0] ? o.value = xt($(), o.value[0]) ? [$(), o.value[0]] : [o.value[0], $()] : o.value = [$()] : o.value = $(), x();
|
|
8832
8832
|
}, cr = () => {
|
|
8833
8833
|
if (Array.isArray(o.value))
|
|
8834
8834
|
if (n.multiDates) {
|
|
8835
|
-
const N =
|
|
8835
|
+
const N = $n();
|
|
8836
8836
|
o.value[o.value.length - 1] = h(N);
|
|
8837
8837
|
} else
|
|
8838
8838
|
o.value = o.value.map((N, ne) => N && h(N, ne));
|
|
8839
8839
|
else
|
|
8840
8840
|
o.value = h(o.value);
|
|
8841
8841
|
e("time-update");
|
|
8842
|
-
},
|
|
8842
|
+
}, $n = () => Array.isArray(o.value) && o.value.length ? o.value[o.value.length - 1] : null;
|
|
8843
8843
|
return {
|
|
8844
8844
|
calendars: a,
|
|
8845
8845
|
modelValue: o,
|
|
@@ -8853,7 +8853,7 @@ const zI = ({
|
|
|
8853
8853
|
handleScroll: w,
|
|
8854
8854
|
handleSwipe: K,
|
|
8855
8855
|
handleArrow: T,
|
|
8856
|
-
selectDate:
|
|
8856
|
+
selectDate: _n,
|
|
8857
8857
|
updateMonthYear: tn,
|
|
8858
8858
|
presetDate: mt,
|
|
8859
8859
|
selectCurrentDate: ur,
|
|
@@ -8911,7 +8911,7 @@ const zI = ({
|
|
|
8911
8911
|
} = FB(i, r, E, p), I = pi(), { setHoverDate: x, getDayClassData: q, clearHoverDate: P } = VI(l, i), { defaultedMultiCalendars: v } = At(i), R = se([]), H = se([]), G = se(null), F = an(I, "calendar"), b = an(I, "monthYear"), L = an(I, "timePicker"), U = (T) => {
|
|
8912
8912
|
i.shadow || r("mount", T);
|
|
8913
8913
|
};
|
|
8914
|
-
|
|
8914
|
+
sr(
|
|
8915
8915
|
o,
|
|
8916
8916
|
() => {
|
|
8917
8917
|
i.shadow || setTimeout(() => {
|
|
@@ -9201,7 +9201,7 @@ const zI = ({
|
|
|
9201
9201
|
value: x.value,
|
|
9202
9202
|
text: x.text
|
|
9203
9203
|
}) : (S(), J(ye, { key: 1 }, [
|
|
9204
|
-
|
|
9204
|
+
jn($e(x.text), 1)
|
|
9205
9205
|
], 64))
|
|
9206
9206
|
], 42, jB)
|
|
9207
9207
|
]))), 128))
|
|
@@ -9478,7 +9478,7 @@ const zI = ({
|
|
|
9478
9478
|
if (!n)
|
|
9479
9479
|
return Us;
|
|
9480
9480
|
let i = Us;
|
|
9481
|
-
const o =
|
|
9481
|
+
const o = sr(
|
|
9482
9482
|
() => O(n),
|
|
9483
9483
|
(s) => {
|
|
9484
9484
|
i(), s && (s.addEventListener(e, t, r), i = () => {
|
|
@@ -9532,7 +9532,7 @@ const zI = ({
|
|
|
9532
9532
|
setup(n, { expose: e, emit: t }) {
|
|
9533
9533
|
const r = t, i = n, o = pi(), a = se(!1), s = ba(i, "modelValue"), l = ba(i, "timezone"), A = se(null), u = se(null), c = se(null), d = se(!1), g = se(null), f = se(!1), h = se(!1), { setMenuFocused: C, setShiftKey: B } = hg(), { clearArrowNav: Q } = Or(), { mapDatesArrToMap: M, validateDate: m, isValidTime: D } = mi(i), { defaultedTransitions: I, defaultedTextInput: x, defaultedInline: q, defaultedConfig: P } = At(i), { menuTransition: v, showTransition: R } = Go(I);
|
|
9534
9534
|
yt(() => {
|
|
9535
|
-
K(i.modelValue),
|
|
9535
|
+
K(i.modelValue), lr().then(() => {
|
|
9536
9536
|
if (!q.value.enabled) {
|
|
9537
9537
|
const V = E(g.value);
|
|
9538
9538
|
V == null || V.addEventListener("scroll", Z), window == null || window.addEventListener("resize", oe);
|
|
@@ -9548,7 +9548,7 @@ const zI = ({
|
|
|
9548
9548
|
window == null || window.removeEventListener("keyup", we), window == null || window.removeEventListener("keydown", le);
|
|
9549
9549
|
});
|
|
9550
9550
|
const G = an(o, "all", i.presetDates), F = an(o, "input");
|
|
9551
|
-
|
|
9551
|
+
sr(
|
|
9552
9552
|
[s, l],
|
|
9553
9553
|
() => {
|
|
9554
9554
|
K(s.value);
|
|
@@ -9604,7 +9604,7 @@ const zI = ({
|
|
|
9604
9604
|
en(), z(), P.value.closeOnAutoApply && !V && mt();
|
|
9605
9605
|
}, en = () => {
|
|
9606
9606
|
c.value && x.value.enabled && c.value.setParsedDate(T.value);
|
|
9607
|
-
},
|
|
9607
|
+
}, _n = (V = !1) => {
|
|
9608
9608
|
i.autoApply && D(T.value) && In() && (i.range && Array.isArray(T.value) ? (i.partialRange || T.value.length === 2) && Yt(V) : Yt(V));
|
|
9609
9609
|
}, tn = () => {
|
|
9610
9610
|
x.value.enabled || (T.value = null);
|
|
@@ -9619,7 +9619,7 @@ const zI = ({
|
|
|
9619
9619
|
be && Xe && (T.value = V, re && (f.value = Ae, $t(), r("text-submit")));
|
|
9620
9620
|
}, cr = () => {
|
|
9621
9621
|
i.autoApply && D(T.value) && z(), en();
|
|
9622
|
-
},
|
|
9622
|
+
}, $n = () => a.value ? mt() : Fe(), N = (V) => {
|
|
9623
9623
|
T.value = V;
|
|
9624
9624
|
}, ne = () => {
|
|
9625
9625
|
x.value.enabled && (d.value = !0, k()), r("focus");
|
|
@@ -9653,7 +9653,7 @@ const zI = ({
|
|
|
9653
9653
|
setMonthYear: Re,
|
|
9654
9654
|
parseModel: Ge,
|
|
9655
9655
|
switchView: An,
|
|
9656
|
-
toggleMenu:
|
|
9656
|
+
toggleMenu: $n
|
|
9657
9657
|
}), (V, re) => (S(), J("div", {
|
|
9658
9658
|
ref_key: "pickerWrapperRef",
|
|
9659
9659
|
ref: g,
|
|
@@ -9672,7 +9672,7 @@ const zI = ({
|
|
|
9672
9672
|
onSetInputDate: ur,
|
|
9673
9673
|
onSetEmptyDate: O(z),
|
|
9674
9674
|
onSelectDate: $t,
|
|
9675
|
-
onToggle:
|
|
9675
|
+
onToggle: $n,
|
|
9676
9676
|
onClose: mt,
|
|
9677
9677
|
onFocus: ne,
|
|
9678
9678
|
onBlur: Be,
|
|
@@ -9712,7 +9712,7 @@ const zI = ({
|
|
|
9712
9712
|
"no-overlay-focus": ge.value,
|
|
9713
9713
|
onClosePicker: mt,
|
|
9714
9714
|
onSelectDate: $t,
|
|
9715
|
-
onAutoApply:
|
|
9715
|
+
onAutoApply: _n,
|
|
9716
9716
|
onTimeUpdate: cr,
|
|
9717
9717
|
onFlowStep: re[3] || (re[3] = (Ae) => V.$emit("flow-step", Ae)),
|
|
9718
9718
|
onUpdateMonthYear: re[4] || (re[4] = (Ae) => V.$emit("update-month-year", Ae)),
|
|
@@ -10476,7 +10476,7 @@ function OQ() {
|
|
|
10476
10476
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
10477
10477
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
10478
10478
|
}
|
|
10479
|
-
var is = typeof window < "u" && typeof window.document < "u",
|
|
10479
|
+
var is = typeof window < "u" && typeof window.document < "u", Yn = is ? window : {}, bA = is && Yn.document.documentElement ? "ontouchstart" in Yn.document.documentElement : !1, SA = is ? "PointerEvent" in Yn : !1, tt = "cropper", kA = "all", Sg = "crop", kg = "move", xg = "zoom", Jr = "e", Fr = "w", Qi = "s", fr = "n", co = "ne", go = "nw", fo = "se", po = "sw", yl = "".concat(tt, "-crop"), Ju = "".concat(tt, "-disabled"), qt = "".concat(tt, "-hidden"), Fu = "".concat(tt, "-hide"), RQ = "".concat(tt, "-invisible"), Oa = "".concat(tt, "-modal"), wl = "".concat(tt, "-move"), No = "".concat(tt, "Action"), Aa = "".concat(tt, "Preview"), xA = "crop", Mg = "move", Tg = "none", bl = "crop", Sl = "cropend", kl = "cropmove", xl = "cropstart", zu = "dblclick", PQ = bA ? "touchstart" : "mousedown", NQ = bA ? "touchmove" : "mousemove", UQ = bA ? "touchend touchcancel" : "mouseup", Ku = SA ? "pointerdown" : PQ, Hu = SA ? "pointermove" : NQ, Vu = SA ? "pointerup pointercancel" : UQ, ju = "ready", Yu = "resize", Wu = "wheel", Ml = "zoom", qu = "image/jpeg", LQ = /^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/, JQ = /^data:/, FQ = /^data:image\/jpeg;base64,/, zQ = /^img|canvas$/i, Dg = 200, Og = 100, Zu = {
|
|
10480
10480
|
// Define the view mode of the cropper
|
|
10481
10481
|
viewMode: 0,
|
|
10482
10482
|
// 0, 1, 2, 3
|
|
@@ -10547,7 +10547,7 @@ var is = typeof window < "u" && typeof window.document < "u", jn = is ? window :
|
|
|
10547
10547
|
cropend: null,
|
|
10548
10548
|
crop: null,
|
|
10549
10549
|
zoom: null
|
|
10550
|
-
}, KQ = '<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>', HQ = Number.isNaN ||
|
|
10550
|
+
}, KQ = '<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>', HQ = Number.isNaN || Yn.isNaN;
|
|
10551
10551
|
function Ne(n) {
|
|
10552
10552
|
return typeof n == "number" && !HQ(n);
|
|
10553
10553
|
}
|
|
@@ -10693,7 +10693,7 @@ var Pg = /\s\s*/, Ng = function() {
|
|
|
10693
10693
|
e = o;
|
|
10694
10694
|
}
|
|
10695
10695
|
});
|
|
10696
|
-
|
|
10696
|
+
Yn.addEventListener("test", t, r), Yn.removeEventListener("test", t, r);
|
|
10697
10697
|
}
|
|
10698
10698
|
return n;
|
|
10699
10699
|
}();
|
|
@@ -10737,7 +10737,7 @@ function Ug(n) {
|
|
|
10737
10737
|
top: e.top + (window.pageYOffset - document.documentElement.clientTop)
|
|
10738
10738
|
};
|
|
10739
10739
|
}
|
|
10740
|
-
var Js =
|
|
10740
|
+
var Js = Yn.location, XQ = /^(\w+:)\/\/([^:/?#]*):?(\d*)/i;
|
|
10741
10741
|
function Xu(n) {
|
|
10742
10742
|
var e = n.match(XQ);
|
|
10743
10743
|
return e !== null && (e[1] !== Js.protocol || e[2] !== Js.hostname || e[3] !== Js.port);
|
|
@@ -11581,7 +11581,7 @@ var lv = {
|
|
|
11581
11581
|
}
|
|
11582
11582
|
return this;
|
|
11583
11583
|
}
|
|
11584
|
-
}, fv =
|
|
11584
|
+
}, fv = Yn.Cropper, Jg = /* @__PURE__ */ function() {
|
|
11585
11585
|
function n(e) {
|
|
11586
11586
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
11587
11587
|
if (SQ(this, n), !e || !zQ.test(e.tagName))
|
|
@@ -11651,7 +11651,7 @@ var lv = {
|
|
|
11651
11651
|
value: function() {
|
|
11652
11652
|
var t = this, r = this.image;
|
|
11653
11653
|
r.onload = null, r.onerror = null, this.sizing = !0;
|
|
11654
|
-
var i =
|
|
11654
|
+
var i = Yn.navigator && /(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(Yn.navigator.userAgent), o = function(A, u) {
|
|
11655
11655
|
nt(t.imageData, {
|
|
11656
11656
|
naturalWidth: A,
|
|
11657
11657
|
naturalHeight: u,
|
|
@@ -17054,7 +17054,7 @@ const Zs = /* @__PURE__ */ Object.create(null);
|
|
|
17054
17054
|
function mf(n) {
|
|
17055
17055
|
return n in Zs ? n + "$" + ++Zs[n] : (Zs[n] = 0, n + "$");
|
|
17056
17056
|
}
|
|
17057
|
-
class
|
|
17057
|
+
class Xn {
|
|
17058
17058
|
/**
|
|
17059
17059
|
Create a plugin key.
|
|
17060
17060
|
*/
|
|
@@ -17084,7 +17084,7 @@ const St = function(n) {
|
|
|
17084
17084
|
return e && e.nodeType == 11 ? e.host : e;
|
|
17085
17085
|
};
|
|
17086
17086
|
let Ul = null;
|
|
17087
|
-
const
|
|
17087
|
+
const tr = function(n, e, t) {
|
|
17088
17088
|
let r = Ul || (Ul = document.createRange());
|
|
17089
17089
|
return r.setEnd(n, t ?? n.nodeValue.length), r.setStart(n, e || 0), r;
|
|
17090
17090
|
}, Sy = function() {
|
|
@@ -17183,9 +17183,9 @@ function Oy(n, e, t) {
|
|
|
17183
17183
|
return { node: r.startContainer, offset: r.startOffset };
|
|
17184
17184
|
}
|
|
17185
17185
|
}
|
|
17186
|
-
const
|
|
17186
|
+
const Wn = typeof navigator < "u" ? navigator : null, hc = typeof document < "u" ? document : null, Pr = Wn && Wn.userAgent || "", Ll = /Edge\/(\d+)/.exec(Pr), Ef = /MSIE \d/.exec(Pr), Jl = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Pr), Zt = !!(Ef || Jl || Ll), xr = Ef ? document.documentMode : Jl ? +Jl[1] : Ll ? +Ll[1] : 0, Mn = !Zt && /gecko\/(\d+)/i.test(Pr);
|
|
17187
17187
|
Mn && +(/Firefox\/(\d+)/.exec(Pr) || [0, 0])[1];
|
|
17188
|
-
const Fl = !Zt && /Chrome\/(\d+)/.exec(Pr), Ft = !!Fl, Ry = Fl ? +Fl[1] : 0, Kt = !Zt && !!
|
|
17188
|
+
const Fl = !Zt && /Chrome\/(\d+)/.exec(Pr), Ft = !!Fl, Ry = Fl ? +Fl[1] : 0, Kt = !Zt && !!Wn && /Apple Computer/.test(Wn.vendor), Xi = Kt && (/Mobile\/\w+/.test(Pr) || !!Wn && Wn.maxTouchPoints > 2), dn = Xi || (Wn ? /Mac/.test(Wn.platform) : !1), Py = Wn ? /Win/.test(Wn.platform) : !1, vn = /Android \d/.test(Pr), ea = !!hc && "webkitFontSmoothing" in hc.documentElement.style, Ny = ea ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
|
|
17189
17189
|
function Uy(n) {
|
|
17190
17190
|
let e = n.defaultView && n.defaultView.visualViewport;
|
|
17191
17191
|
return e ? {
|
|
@@ -17200,7 +17200,7 @@ function Uy(n) {
|
|
|
17200
17200
|
bottom: n.documentElement.clientHeight
|
|
17201
17201
|
};
|
|
17202
17202
|
}
|
|
17203
|
-
function
|
|
17203
|
+
function er(n, e) {
|
|
17204
17204
|
return typeof n == "number" ? n : n[e];
|
|
17205
17205
|
}
|
|
17206
17206
|
function Ly(n) {
|
|
@@ -17218,7 +17218,7 @@ function mc(n, e, t) {
|
|
|
17218
17218
|
if (a.nodeType != 1)
|
|
17219
17219
|
continue;
|
|
17220
17220
|
let s = a, l = s == o.body, A = l ? Uy(o) : Ly(s), u = 0, c = 0;
|
|
17221
|
-
if (e.top < A.top +
|
|
17221
|
+
if (e.top < A.top + er(r, "top") ? c = -(A.top - e.top + er(i, "top")) : e.bottom > A.bottom - er(r, "bottom") && (c = e.bottom - e.top > A.bottom - A.top ? e.top + er(i, "top") - A.top : e.bottom - A.bottom + er(i, "bottom")), e.left < A.left + er(r, "left") ? u = -(A.left - e.left + er(i, "left")) : e.right > A.right - er(r, "right") && (u = e.right - A.right + er(i, "right")), u || c)
|
|
17222
17222
|
if (l)
|
|
17223
17223
|
o.defaultView.scrollBy(u, c);
|
|
17224
17224
|
else {
|
|
@@ -17281,7 +17281,7 @@ function Bf(n, e) {
|
|
|
17281
17281
|
if (u.nodeType == 1)
|
|
17282
17282
|
d = u.getClientRects();
|
|
17283
17283
|
else if (u.nodeType == 3)
|
|
17284
|
-
d =
|
|
17284
|
+
d = tr(u).getClientRects();
|
|
17285
17285
|
else
|
|
17286
17286
|
continue;
|
|
17287
17287
|
for (let g = 0; g < d.length; g++) {
|
|
@@ -17402,11 +17402,11 @@ function vf(n, e, t) {
|
|
|
17402
17402
|
let { node: r, offset: i, atom: o } = n.docView.domFromPos(e, t < 0 ? -1 : 1), a = ea || Mn;
|
|
17403
17403
|
if (r.nodeType == 3)
|
|
17404
17404
|
if (a && (Wy.test(r.nodeValue) || (t < 0 ? !i : i == r.nodeValue.length))) {
|
|
17405
|
-
let l = pr(
|
|
17405
|
+
let l = pr(tr(r, i, i), t);
|
|
17406
17406
|
if (Mn && i && /\s/.test(r.nodeValue[i - 1]) && i < r.nodeValue.length) {
|
|
17407
|
-
let A = pr(
|
|
17407
|
+
let A = pr(tr(r, i - 1, i - 1), -1);
|
|
17408
17408
|
if (A.top == l.top) {
|
|
17409
|
-
let u = pr(
|
|
17409
|
+
let u = pr(tr(r, i, i + 1), -1);
|
|
17410
17410
|
if (u.top != l.top)
|
|
17411
17411
|
return ho(u, u.left < A.left);
|
|
17412
17412
|
}
|
|
@@ -17414,7 +17414,7 @@ function vf(n, e, t) {
|
|
|
17414
17414
|
return l;
|
|
17415
17415
|
} else {
|
|
17416
17416
|
let l = i, A = i, u = t < 0 ? 1 : -1;
|
|
17417
|
-
return t < 0 && !i ? (A++, u = -1) : t >= 0 && i == r.nodeValue.length ? (l--, u = 1) : t < 0 ? l-- : A++, ho(pr(
|
|
17417
|
+
return t < 0 && !i ? (A++, u = -1) : t >= 0 && i == r.nodeValue.length ? (l--, u = 1) : t < 0 ? l-- : A++, ho(pr(tr(r, l, A), u), u < 0);
|
|
17418
17418
|
}
|
|
17419
17419
|
if (!n.state.doc.resolve(e - (o || 0)).parent.inlineContent) {
|
|
17420
17420
|
if (o == null && i && (t < 0 || i == Ln(r))) {
|
|
@@ -17430,7 +17430,7 @@ function vf(n, e, t) {
|
|
|
17430
17430
|
return Gs(r.getBoundingClientRect(), t >= 0);
|
|
17431
17431
|
}
|
|
17432
17432
|
if (o == null && i && (t < 0 || i == Ln(r))) {
|
|
17433
|
-
let l = r.childNodes[i - 1], A = l.nodeType == 3 ?
|
|
17433
|
+
let l = r.childNodes[i - 1], A = l.nodeType == 3 ? tr(l, Ln(l) - (a ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
|
|
17434
17434
|
if (A)
|
|
17435
17435
|
return ho(pr(A, 1), !1);
|
|
17436
17436
|
}
|
|
@@ -17438,11 +17438,11 @@ function vf(n, e, t) {
|
|
|
17438
17438
|
let l = r.childNodes[i];
|
|
17439
17439
|
for (; l.pmViewDesc && l.pmViewDesc.ignoreForCoords; )
|
|
17440
17440
|
l = l.nextSibling;
|
|
17441
|
-
let A = l ? l.nodeType == 3 ?
|
|
17441
|
+
let A = l ? l.nodeType == 3 ? tr(l, 0, a ? 0 : 1) : l.nodeType == 1 ? l : null : null;
|
|
17442
17442
|
if (A)
|
|
17443
17443
|
return ho(pr(A, -1), !0);
|
|
17444
17444
|
}
|
|
17445
|
-
return ho(pr(r.nodeType == 3 ?
|
|
17445
|
+
return ho(pr(r.nodeType == 3 ? tr(r) : r, -t), t >= 0);
|
|
17446
17446
|
}
|
|
17447
17447
|
function ho(n, e) {
|
|
17448
17448
|
if (n.width == 0)
|
|
@@ -17485,7 +17485,7 @@ function qy(n, e, t) {
|
|
|
17485
17485
|
if (s.nodeType == 1)
|
|
17486
17486
|
l = s.getClientRects();
|
|
17487
17487
|
else if (s.nodeType == 3)
|
|
17488
|
-
l =
|
|
17488
|
+
l = tr(s, 0, s.nodeValue.length).getClientRects();
|
|
17489
17489
|
else
|
|
17490
17490
|
continue;
|
|
17491
17491
|
for (let A = 0; A < l.length; A++) {
|
|
@@ -17518,7 +17518,7 @@ let Cc = null, Ic = null, Bc = !1;
|
|
|
17518
17518
|
function Xy(n, e, t) {
|
|
17519
17519
|
return Cc == e && Ic == t ? Bc : (Cc = e, Ic = t, Bc = t == "up" || t == "down" ? qy(n, e, t) : Gy(n, e, t));
|
|
17520
17520
|
}
|
|
17521
|
-
const fn = 0, Qc = 1, Wr = 2,
|
|
17521
|
+
const fn = 0, Qc = 1, Wr = 2, qn = 3;
|
|
17522
17522
|
class ta {
|
|
17523
17523
|
constructor(e, t, r, i) {
|
|
17524
17524
|
this.parent = e, this.children = t, this.dom = r, this.contentDOM = i, this.dirty = fn, r.pmViewDesc = this;
|
|
@@ -17828,10 +17828,10 @@ class ta {
|
|
|
17828
17828
|
if (r == a ? e <= a && t >= r : e < a && t > r) {
|
|
17829
17829
|
let s = r + o.border, l = a - o.border;
|
|
17830
17830
|
if (e >= s && t <= l) {
|
|
17831
|
-
this.dirty = e == r || t == a ? Wr : Qc, e == s && t == l && (o.contentLost || o.dom.parentNode != this.contentDOM) ? o.dirty =
|
|
17831
|
+
this.dirty = e == r || t == a ? Wr : Qc, e == s && t == l && (o.contentLost || o.dom.parentNode != this.contentDOM) ? o.dirty = qn : o.markDirty(e - s, t - s);
|
|
17832
17832
|
return;
|
|
17833
17833
|
} else
|
|
17834
|
-
o.dirty = o.dom == o.contentDOM && o.dom.parentNode == this.contentDOM && !o.children.length ? Wr :
|
|
17834
|
+
o.dirty = o.dom == o.contentDOM && o.dom.parentNode == this.contentDOM && !o.children.length ? Wr : qn;
|
|
17835
17835
|
}
|
|
17836
17836
|
r = a;
|
|
17837
17837
|
}
|
|
@@ -17920,10 +17920,10 @@ class Ai extends ta {
|
|
|
17920
17920
|
return (!a || !a.dom) && (a = Fn.renderSpec(document, t.type.spec.toDOM(t, r))), new Ai(e, t, a.dom, a.contentDOM || a.dom);
|
|
17921
17921
|
}
|
|
17922
17922
|
parseRule() {
|
|
17923
|
-
return this.dirty &
|
|
17923
|
+
return this.dirty & qn || this.mark.type.spec.reparseInView ? null : { mark: this.mark.type.name, attrs: this.mark.attrs, contentElement: this.contentDOM };
|
|
17924
17924
|
}
|
|
17925
17925
|
matchesMark(e) {
|
|
17926
|
-
return this.dirty !=
|
|
17926
|
+
return this.dirty != qn && this.mark.eq(e);
|
|
17927
17927
|
}
|
|
17928
17928
|
markDirty(e, t) {
|
|
17929
17929
|
if (super.markDirty(e, t), this.dirty != fn) {
|
|
@@ -18045,7 +18045,7 @@ class Mr extends ta {
|
|
|
18045
18045
|
// If this desc must be updated to match the given node decoration,
|
|
18046
18046
|
// do so and return true.
|
|
18047
18047
|
update(e, t, r, i) {
|
|
18048
|
-
return this.dirty ==
|
|
18048
|
+
return this.dirty == qn || !e.sameMarkup(this.node) ? !1 : (this.updateInner(e, t, r, i), !0);
|
|
18049
18049
|
}
|
|
18050
18050
|
updateInner(e, t, r, i) {
|
|
18051
18051
|
this.updateOuterDeco(t), this.node = e, this.innerDeco = r, this.contentDOM && this.updateChildren(i, this.posAtStart), this.dirty = fn;
|
|
@@ -18084,7 +18084,7 @@ class cs extends Mr {
|
|
|
18084
18084
|
return { skip: e || !0 };
|
|
18085
18085
|
}
|
|
18086
18086
|
update(e, t, r, i) {
|
|
18087
|
-
return this.dirty ==
|
|
18087
|
+
return this.dirty == qn || this.dirty != fn && !this.inParent() || !e.sameMarkup(this.node) ? !1 : (this.updateOuterDeco(t), (this.dirty != fn || e.text != this.node.text) && e.text != this.nodeDOM.nodeValue && (this.nodeDOM.nodeValue = e.text, i.trackWrites == this.nodeDOM && (i.trackWrites = null)), this.node = e, this.dirty = fn, !0);
|
|
18088
18088
|
}
|
|
18089
18089
|
inParent() {
|
|
18090
18090
|
let e = this.parent.contentDOM;
|
|
@@ -18107,7 +18107,7 @@ class cs extends Mr {
|
|
|
18107
18107
|
return new cs(this.parent, i, this.outerDeco, this.innerDeco, o, o, r);
|
|
18108
18108
|
}
|
|
18109
18109
|
markDirty(e, t) {
|
|
18110
|
-
super.markDirty(e, t), this.dom != this.nodeDOM && (e == 0 || t == this.nodeDOM.nodeValue.length) && (this.dirty =
|
|
18110
|
+
super.markDirty(e, t), this.dom != this.nodeDOM && (e == 0 || t == this.nodeDOM.nodeValue.length) && (this.dirty = qn);
|
|
18111
18111
|
}
|
|
18112
18112
|
get domAtom() {
|
|
18113
18113
|
return !1;
|
|
@@ -18138,7 +18138,7 @@ class $y extends Mr {
|
|
|
18138
18138
|
// through. If it does, and there's a `contentDOM` node, our logic
|
|
18139
18139
|
// updates the children.
|
|
18140
18140
|
update(e, t, r, i) {
|
|
18141
|
-
if (this.dirty ==
|
|
18141
|
+
if (this.dirty == qn)
|
|
18142
18142
|
return !1;
|
|
18143
18143
|
if (this.spec.update) {
|
|
18144
18144
|
let o = this.spec.update(e, t, r);
|
|
@@ -18318,7 +18318,7 @@ class t0 {
|
|
|
18318
18318
|
}
|
|
18319
18319
|
updateNodeAt(e, t, r, i, o) {
|
|
18320
18320
|
let a = this.top.children[i];
|
|
18321
|
-
return a.dirty ==
|
|
18321
|
+
return a.dirty == qn && a.dom == a.contentDOM && (a.dirty = Wr), a.update(e, t, r, o) ? (this.destroyBetween(this.index, i), this.index++, !0) : !1;
|
|
18322
18322
|
}
|
|
18323
18323
|
findIndexWithChild(e) {
|
|
18324
18324
|
for (; ; ) {
|
|
@@ -18346,7 +18346,7 @@ class t0 {
|
|
|
18346
18346
|
let A = this.preMatch.matched.get(l);
|
|
18347
18347
|
if (A != null && A != o)
|
|
18348
18348
|
return !1;
|
|
18349
|
-
let u = l.dom, c, d = this.isLocked(u) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty !=
|
|
18349
|
+
let u = l.dom, c, d = this.isLocked(u) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty != qn && Kl(t, l.outerDeco));
|
|
18350
18350
|
if (!d && l.update(e, t, r, i))
|
|
18351
18351
|
return this.destroyBetween(this.index, s), l.dom != u && (this.changed = !0), this.index++, !0;
|
|
18352
18352
|
if (!d && (c = this.recreateWrapper(l, e, t, r, i, a)))
|
|
@@ -18554,7 +18554,7 @@ function PA(n, e = null) {
|
|
|
18554
18554
|
function Mf(n) {
|
|
18555
18555
|
return n.editable ? n.hasFocus() : Df(n) && document.activeElement && document.activeElement.contains(n.dom);
|
|
18556
18556
|
}
|
|
18557
|
-
function
|
|
18557
|
+
function ar(n, e = !1) {
|
|
18558
18558
|
let t = n.state.selection;
|
|
18559
18559
|
if (Tf(n, t), !!Mf(n)) {
|
|
18560
18560
|
if (!e && n.input.mouseDown && n.input.mouseDown.allowDefault && Ft) {
|
|
@@ -18793,7 +18793,7 @@ function jl(n, e, t) {
|
|
|
18793
18793
|
n.domObserver.setCurSelection();
|
|
18794
18794
|
let { state: i } = n;
|
|
18795
18795
|
setTimeout(() => {
|
|
18796
|
-
n.state == i &&
|
|
18796
|
+
n.state == i && ar(n);
|
|
18797
18797
|
}, 50);
|
|
18798
18798
|
}
|
|
18799
18799
|
function Tc(n, e) {
|
|
@@ -19251,7 +19251,7 @@ class P0 {
|
|
|
19251
19251
|
}, 20), this.view.domObserver.start()), e.root.addEventListener("mouseup", this.up = this.up.bind(this)), e.root.addEventListener("mousemove", this.move = this.move.bind(this)), yr(e, "pointer");
|
|
19252
19252
|
}
|
|
19253
19253
|
done() {
|
|
19254
|
-
this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() =>
|
|
19254
|
+
this.view.root.removeEventListener("mouseup", this.up), this.view.root.removeEventListener("mousemove", this.move), this.mightDrag && this.target && (this.view.domObserver.stop(), this.mightDrag.addAttr && this.target.removeAttribute("draggable"), this.mightDrag.setUneditable && this.target.removeAttribute("contentEditable"), this.view.domObserver.start()), this.delayedSelectionSync && setTimeout(() => ar(this.view)), this.view.input.mouseDown = null;
|
|
19255
19255
|
}
|
|
19256
19256
|
up(e) {
|
|
19257
19257
|
if (this.done(), !this.view.dom.contains(e.target))
|
|
@@ -19471,7 +19471,7 @@ Vt.drop = (n, e) => {
|
|
|
19471
19471
|
};
|
|
19472
19472
|
Ht.focus = (n) => {
|
|
19473
19473
|
n.input.lastFocus = Date.now(), n.focused || (n.domObserver.stop(), n.dom.classList.add("ProseMirror-focused"), n.domObserver.start(), n.focused = !0, setTimeout(() => {
|
|
19474
|
-
n.docView && n.hasFocus() && !n.domObserver.currentSelection.eq(n.domSelectionRange()) &&
|
|
19474
|
+
n.docView && n.hasFocus() && !n.domObserver.currentSelection.eq(n.domSelectionRange()) && ar(n);
|
|
19475
19475
|
}, 20));
|
|
19476
19476
|
};
|
|
19477
19477
|
Ht.blur = (n, e) => {
|
|
@@ -20060,7 +20060,7 @@ class W0 {
|
|
|
20060
20060
|
onSelectionChange() {
|
|
20061
20061
|
if (xc(this.view)) {
|
|
20062
20062
|
if (this.suppressingSelectionUpdates)
|
|
20063
|
-
return
|
|
20063
|
+
return ar(this.view);
|
|
20064
20064
|
if (Zt && xr <= 11 && !this.view.state.selection.empty) {
|
|
20065
20065
|
let e = this.view.domSelectionRange();
|
|
20066
20066
|
if (e.focusNode && li(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset))
|
|
@@ -20116,7 +20116,7 @@ class W0 {
|
|
|
20116
20116
|
}
|
|
20117
20117
|
}
|
|
20118
20118
|
let A = null;
|
|
20119
|
-
o < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && us(r) && (A = PA(e)) && A.eq(Oe.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0,
|
|
20119
|
+
o < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && us(r) && (A = PA(e)) && A.eq(Oe.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, ar(e), this.currentSelection.set(r), e.scrollToSelection()) : (o > -1 || i) && (o > -1 && (e.docView.markDirty(o, a), q0(e)), this.handleDOMChange(o, a, s, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || ar(e), this.currentSelection.set(r));
|
|
20120
20120
|
}
|
|
20121
20121
|
registerMutation(e, t) {
|
|
20122
20122
|
if (t.indexOf(e.target) > -1)
|
|
@@ -20270,7 +20270,7 @@ function $0(n, e, t, r, i) {
|
|
|
20270
20270
|
let m = f.start, D = f.endA, I, x, q;
|
|
20271
20271
|
if (Q) {
|
|
20272
20272
|
if (h.pos == C.pos)
|
|
20273
|
-
Zt && xr <= 11 && h.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() =>
|
|
20273
|
+
Zt && xr <= 11 && h.parentOffset == 0 && (n.domObserver.suppressSelectionUpdates(), setTimeout(() => ar(n), 20)), I = n.state.tr.delete(m, D), x = u.resolve(f.start).marksAcross(u.resolve(f.endA));
|
|
20274
20274
|
else if (
|
|
20275
20275
|
// Adding or removing a mark
|
|
20276
20276
|
f.endA == f.endB && (q = ew(h.parent.content.cut(h.parentOffset, C.parentOffset), B.parent.content.cut(B.parentOffset, f.endA - B.start())))
|
|
@@ -20444,7 +20444,7 @@ class rw {
|
|
|
20444
20444
|
let f = Ft ? this.trackWrites = this.domSelectionRange().focusNode : null;
|
|
20445
20445
|
this.composing && (this.input.compositionNode = U0(this)), (o || !this.docView.update(e.doc, A, l, this)) && (this.docView.updateOuterDeco(A), this.docView.destroy(), this.docView = vc(e.doc, A, l, this.dom, this)), f && !this.trackWrites && (g = !0);
|
|
20446
20446
|
}
|
|
20447
|
-
g || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && A0(this)) ?
|
|
20447
|
+
g || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && A0(this)) ? ar(this, g) : (Tf(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
|
|
20448
20448
|
}
|
|
20449
20449
|
this.updatePluginViews(i), !((r = this.dragging) === null || r === void 0) && r.node && !i.doc.eq(e.doc) && this.updateDraggedNode(this.dragging, i), u == "reset" ? this.dom.scrollTop = 0 : u == "to selection" ? this.scrollToSelection() : d && Fy(d);
|
|
20450
20450
|
}
|
|
@@ -20532,7 +20532,7 @@ class rw {
|
|
|
20532
20532
|
Focus the editor.
|
|
20533
20533
|
*/
|
|
20534
20534
|
focus() {
|
|
20535
|
-
this.domObserver.stop(), this.editable && zy(this.dom),
|
|
20535
|
+
this.domObserver.stop(), this.editable && zy(this.dom), ar(this), this.domObserver.start();
|
|
20536
20536
|
}
|
|
20537
20537
|
/**
|
|
20538
20538
|
Get the document root in which the editor exists. This will
|
|
@@ -22108,7 +22108,7 @@ const $w = Pt.create({
|
|
|
22108
22108
|
addProseMirrorPlugins() {
|
|
22109
22109
|
return [
|
|
22110
22110
|
new _t({
|
|
22111
|
-
key: new
|
|
22111
|
+
key: new Xn("clipboardTextSerializer"),
|
|
22112
22112
|
props: {
|
|
22113
22113
|
clipboardTextSerializer: () => {
|
|
22114
22114
|
const { editor: n } = this, { state: e, schema: t } = n, { doc: r, selection: i } = e, { ranges: o } = i, a = Math.min(...o.map((u) => u.$from.pos)), s = Math.max(...o.map((u) => u.$to.pos)), l = sp(t);
|
|
@@ -22232,7 +22232,7 @@ const gb = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
|
|
|
22232
22232
|
function YA(n) {
|
|
22233
22233
|
return n instanceof Me;
|
|
22234
22234
|
}
|
|
22235
|
-
function
|
|
22235
|
+
function or(n = 0, e = 0, t = 0) {
|
|
22236
22236
|
return Math.min(Math.max(n, e), t);
|
|
22237
22237
|
}
|
|
22238
22238
|
function lp(n, e = null) {
|
|
@@ -22244,7 +22244,7 @@ function lp(n, e = null) {
|
|
|
22244
22244
|
if (e === "end")
|
|
22245
22245
|
return r;
|
|
22246
22246
|
const i = t.from, o = r.to;
|
|
22247
|
-
return e === "all" ? Me.create(n,
|
|
22247
|
+
return e === "all" ? Me.create(n, or(0, i, o), or(n.content.size, i, o)) : Me.create(n, or(e, i, o), or(e, i, o));
|
|
22248
22248
|
}
|
|
22249
22249
|
function WA() {
|
|
22250
22250
|
return [
|
|
@@ -22576,7 +22576,7 @@ function _b(n) {
|
|
|
22576
22576
|
return n instanceof Qe;
|
|
22577
22577
|
}
|
|
22578
22578
|
function gp(n, e, t) {
|
|
22579
|
-
const i = n.state.doc.content.size, o =
|
|
22579
|
+
const i = n.state.doc.content.size, o = or(e, 0, i), a = or(t, 0, i), s = n.coordsAtPos(o), l = n.coordsAtPos(a, -1), A = Math.min(s.top, l.top), u = Math.max(s.bottom, l.bottom), c = Math.min(s.left, l.left), d = Math.max(s.right, l.right), g = d - c, f = u - A, B = {
|
|
22580
22580
|
top: A,
|
|
22581
22581
|
bottom: u,
|
|
22582
22582
|
left: c,
|
|
@@ -22641,13 +22641,13 @@ const eS = (n, e = {}) => ({ tr: t, state: r, dispatch: i }) => {
|
|
|
22641
22641
|
return o.isTextblock ? i().command(({ commands: a }) => qc(o, e)(t) ? !0 : a.clearNodes()).command(({ state: a }) => qc(o, e)(a, r)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
|
|
22642
22642
|
}, rS = (n) => ({ tr: e, dispatch: t }) => {
|
|
22643
22643
|
if (t) {
|
|
22644
|
-
const { doc: r } = e, i =
|
|
22644
|
+
const { doc: r } = e, i = or(n, 0, r.content.size), o = Qe.create(r, i);
|
|
22645
22645
|
e.setSelection(o);
|
|
22646
22646
|
}
|
|
22647
22647
|
return !0;
|
|
22648
22648
|
}, iS = (n) => ({ tr: e, dispatch: t }) => {
|
|
22649
22649
|
if (t) {
|
|
22650
|
-
const { doc: r } = e, { from: i, to: o } = typeof n == "number" ? { from: n, to: n } : n, a = Me.atStart(r).from, s = Me.atEnd(r).to, l =
|
|
22650
|
+
const { doc: r } = e, { from: i, to: o } = typeof n == "number" ? { from: n, to: n } : n, a = Me.atStart(r).from, s = Me.atEnd(r).to, l = or(i, a, s), A = or(o, a, s), u = Me.create(r, l, A);
|
|
22651
22651
|
e.setSelection(u);
|
|
22652
22652
|
}
|
|
22653
22653
|
return !0;
|
|
@@ -22917,7 +22917,7 @@ const CS = Pt.create({
|
|
|
22917
22917
|
addProseMirrorPlugins() {
|
|
22918
22918
|
return [
|
|
22919
22919
|
new _t({
|
|
22920
|
-
key: new
|
|
22920
|
+
key: new Xn("editable"),
|
|
22921
22921
|
props: {
|
|
22922
22922
|
editable: () => this.editor.options.editable
|
|
22923
22923
|
}
|
|
@@ -22930,7 +22930,7 @@ const CS = Pt.create({
|
|
|
22930
22930
|
const { editor: n } = this;
|
|
22931
22931
|
return [
|
|
22932
22932
|
new _t({
|
|
22933
|
-
key: new
|
|
22933
|
+
key: new Xn("focusEvents"),
|
|
22934
22934
|
props: {
|
|
22935
22935
|
handleDOMEvents: {
|
|
22936
22936
|
focus: (e, t) => {
|
|
@@ -23003,7 +23003,7 @@ const CS = Pt.create({
|
|
|
23003
23003
|
// This is an alternative to ProseMirror's `AllSelection`, which doesn’t work well
|
|
23004
23004
|
// with many other commands.
|
|
23005
23005
|
new _t({
|
|
23006
|
-
key: new
|
|
23006
|
+
key: new Xn("clearDocument"),
|
|
23007
23007
|
appendTransaction: (n, e, t) => {
|
|
23008
23008
|
if (!(n.some((f) => f.docChanged) && !e.doc.eq(t.doc)))
|
|
23009
23009
|
return;
|
|
@@ -23028,7 +23028,7 @@ const CS = Pt.create({
|
|
|
23028
23028
|
addProseMirrorPlugins() {
|
|
23029
23029
|
return [
|
|
23030
23030
|
new _t({
|
|
23031
|
-
key: new
|
|
23031
|
+
key: new Xn("tabindex"),
|
|
23032
23032
|
props: {
|
|
23033
23033
|
attributes: this.editor.isEditable ? { tabindex: "0" } : {}
|
|
23034
23034
|
}
|
|
@@ -23716,7 +23716,7 @@ var Gt = "top", mn = "bottom", En = "right", Xt = "left", ZA = "auto", na = [Gt,
|
|
|
23716
23716
|
}, []), pp = /* @__PURE__ */ [].concat(na, [ZA]).reduce(function(n, e) {
|
|
23717
23717
|
return n.concat([e, e + "-" + $i, e + "-" + Yo]);
|
|
23718
23718
|
}, []), MS = "beforeRead", TS = "read", DS = "afterRead", OS = "beforeMain", RS = "main", PS = "afterMain", NS = "beforeWrite", US = "write", LS = "afterWrite", JS = [MS, TS, DS, OS, RS, PS, NS, US, LS];
|
|
23719
|
-
function
|
|
23719
|
+
function Zn(n) {
|
|
23720
23720
|
return n ? (n.nodeName || "").toLowerCase() : null;
|
|
23721
23721
|
}
|
|
23722
23722
|
function sn(n) {
|
|
@@ -23746,7 +23746,7 @@ function FS(n) {
|
|
|
23746
23746
|
var e = n.state;
|
|
23747
23747
|
Object.keys(e.elements).forEach(function(t) {
|
|
23748
23748
|
var r = e.styles[t] || {}, i = e.attributes[t] || {}, o = e.elements[t];
|
|
23749
|
-
!pn(o) || !
|
|
23749
|
+
!pn(o) || !Zn(o) || (Object.assign(o.style, r), Object.keys(i).forEach(function(a) {
|
|
23750
23750
|
var s = i[a];
|
|
23751
23751
|
s === !1 ? o.removeAttribute(a) : o.setAttribute(a, s === !0 ? "" : s);
|
|
23752
23752
|
}));
|
|
@@ -23770,7 +23770,7 @@ function zS(n) {
|
|
|
23770
23770
|
var i = e.elements[r], o = e.attributes[r] || {}, a = Object.keys(e.styles.hasOwnProperty(r) ? e.styles[r] : t[r]), s = a.reduce(function(l, A) {
|
|
23771
23771
|
return l[A] = "", l;
|
|
23772
23772
|
}, {});
|
|
23773
|
-
!pn(i) || !
|
|
23773
|
+
!pn(i) || !Zn(i) || (Object.assign(i.style, s), Object.keys(o).forEach(function(l) {
|
|
23774
23774
|
i.removeAttribute(l);
|
|
23775
23775
|
}));
|
|
23776
23776
|
});
|
|
@@ -23840,7 +23840,7 @@ function Ar(n) {
|
|
|
23840
23840
|
return sn(n).getComputedStyle(n);
|
|
23841
23841
|
}
|
|
23842
23842
|
function KS(n) {
|
|
23843
|
-
return ["table", "td", "th"].indexOf(
|
|
23843
|
+
return ["table", "td", "th"].indexOf(Zn(n)) >= 0;
|
|
23844
23844
|
}
|
|
23845
23845
|
function Ur(n) {
|
|
23846
23846
|
return ((di(n) ? n.ownerDocument : (
|
|
@@ -23849,7 +23849,7 @@ function Ur(n) {
|
|
|
23849
23849
|
)) || window.document).documentElement;
|
|
23850
23850
|
}
|
|
23851
23851
|
function Is(n) {
|
|
23852
|
-
return
|
|
23852
|
+
return Zn(n) === "html" ? n : (
|
|
23853
23853
|
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
23854
23854
|
// $FlowFixMe[incompatible-return]
|
|
23855
23855
|
// $FlowFixMe[prop-missing]
|
|
@@ -23872,7 +23872,7 @@ function HS(n) {
|
|
|
23872
23872
|
return null;
|
|
23873
23873
|
}
|
|
23874
23874
|
var i = Is(n);
|
|
23875
|
-
for (GA(i) && (i = i.host); pn(i) && ["html", "body"].indexOf(
|
|
23875
|
+
for (GA(i) && (i = i.host); pn(i) && ["html", "body"].indexOf(Zn(i)) < 0; ) {
|
|
23876
23876
|
var o = Ar(i);
|
|
23877
23877
|
if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || e && o.willChange === "filter" || e && o.filter && o.filter !== "none")
|
|
23878
23878
|
return i;
|
|
@@ -23883,7 +23883,7 @@ function HS(n) {
|
|
|
23883
23883
|
function ra(n) {
|
|
23884
23884
|
for (var e = sn(n), t = rd(n); t && KS(t) && Ar(t).position === "static"; )
|
|
23885
23885
|
t = rd(t);
|
|
23886
|
-
return t && (
|
|
23886
|
+
return t && (Zn(t) === "html" || Zn(t) === "body" && Ar(t).position === "static") ? e : t || HS(n) || e;
|
|
23887
23887
|
}
|
|
23888
23888
|
function _A(n) {
|
|
23889
23889
|
return ["top", "bottom"].indexOf(n) >= 0 ? "x" : "y";
|
|
@@ -24106,7 +24106,7 @@ function tu(n) {
|
|
|
24106
24106
|
return /auto|scroll|overlay|hidden/.test(t + i + r);
|
|
24107
24107
|
}
|
|
24108
24108
|
function Qp(n) {
|
|
24109
|
-
return ["html", "body", "#document"].indexOf(
|
|
24109
|
+
return ["html", "body", "#document"].indexOf(Zn(n)) >= 0 ? n.ownerDocument.body : pn(n) && tu(n) ? n : Qp(Is(n));
|
|
24110
24110
|
}
|
|
24111
24111
|
function Mo(n, e) {
|
|
24112
24112
|
var t;
|
|
@@ -24135,7 +24135,7 @@ function ad(n, e, t) {
|
|
|
24135
24135
|
function ak(n) {
|
|
24136
24136
|
var e = Mo(Is(n)), t = ["absolute", "fixed"].indexOf(Ar(n).position) >= 0, r = t && pn(n) ? ra(n) : n;
|
|
24137
24137
|
return di(r) ? e.filter(function(i) {
|
|
24138
|
-
return di(i) && Ep(i, r) &&
|
|
24138
|
+
return di(i) && Ep(i, r) && Zn(i) !== "body";
|
|
24139
24139
|
}) : [];
|
|
24140
24140
|
}
|
|
24141
24141
|
function sk(n, e, t, r) {
|
|
@@ -24409,7 +24409,7 @@ function Ik(n) {
|
|
|
24409
24409
|
I[m] = Fe, H[m] = Fe - U;
|
|
24410
24410
|
}
|
|
24411
24411
|
if (s) {
|
|
24412
|
-
var ft, In = m === "x" ? Gt : Xt, $t = m === "x" ? mn : En, Yt = I[D], en = D === "y" ? "height" : "width",
|
|
24412
|
+
var ft, In = m === "x" ? Gt : Xt, $t = m === "x" ? mn : En, Yt = I[D], en = D === "y" ? "height" : "width", _n = Yt + C[In], tn = Yt - C[$t], mt = [Gt, Xt].indexOf(B) !== -1, ur = (ft = R == null ? void 0 : R[D]) != null ? ft : 0, cr = mt ? _n : Yt - x[en] - q[en] - ur + v.altAxis, $n = mt ? Yt + x[en] + q[en] - ur - v.altAxis : tn, N = g && mt ? VS(cr, Yt, $n) : xo(g ? cr : _n, Yt, g ? $n : tn);
|
|
24413
24413
|
I[D] = N, H[D] = N - Yt;
|
|
24414
24414
|
}
|
|
24415
24415
|
e.modifiersData[r] = H;
|
|
@@ -24444,7 +24444,7 @@ function wk(n, e, t) {
|
|
|
24444
24444
|
x: 0,
|
|
24445
24445
|
y: 0
|
|
24446
24446
|
};
|
|
24447
|
-
return (r || !r && !t) && ((
|
|
24447
|
+
return (r || !r && !t) && ((Zn(e) !== "body" || // https://github.com/popperjs/popper-core/issues/1078
|
|
24448
24448
|
tu(o)) && (s = vk(e)), pn(e) ? (l = to(e, !0), l.x += e.clientLeft, l.y += e.clientTop) : o && (l.x = eu(o))), {
|
|
24449
24449
|
x: a.left + s.scrollLeft - l.x,
|
|
24450
24450
|
y: a.top + s.scrollTop - l.y,
|
|
@@ -24794,7 +24794,7 @@ process.env.NODE_ENV !== "production" && _k();
|
|
|
24794
24794
|
function _k() {
|
|
24795
24795
|
Zo = /* @__PURE__ */ new Set();
|
|
24796
24796
|
}
|
|
24797
|
-
function
|
|
24797
|
+
function nr(n, e) {
|
|
24798
24798
|
if (n && !Zo.has(e)) {
|
|
24799
24799
|
var t;
|
|
24800
24800
|
Zo.add(e), (t = console).warn.apply(t, Mp(e));
|
|
@@ -24926,7 +24926,7 @@ function Op(n, e) {
|
|
|
24926
24926
|
var i = Nk(rn, Object.keys(Tp)), o = !Pk(i, r);
|
|
24927
24927
|
o && (o = e.filter(function(a) {
|
|
24928
24928
|
return a.name === r;
|
|
24929
|
-
}).length === 0),
|
|
24929
|
+
}).length === 0), nr(o, ["`" + r + "`", "is not a valid prop. You may have spelled it incorrectly, or if it's", "a plugin, forgot to pass it in an array as props.plugins.", `
|
|
24930
24930
|
|
|
24931
24931
|
`, `All props: https://atomiks.github.io/tippyjs/v6/all-props/
|
|
24932
24932
|
`, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
|
|
@@ -24999,7 +24999,7 @@ function ax(n, e) {
|
|
|
24999
24999
|
plugins: Q,
|
|
25000
25000
|
// methods
|
|
25001
25001
|
clearDelayTimeouts: cr,
|
|
25002
|
-
setProps:
|
|
25002
|
+
setProps: $n,
|
|
25003
25003
|
setContent: N,
|
|
25004
25004
|
show: ne,
|
|
25005
25005
|
hide: Be,
|
|
@@ -25016,7 +25016,7 @@ function ax(n, e) {
|
|
|
25016
25016
|
var q = Q.map(function(W) {
|
|
25017
25017
|
return W.fn(m);
|
|
25018
25018
|
}), P = n.hasAttribute("aria-expanded");
|
|
25019
|
-
return ge(), p(), U(), Y("onCreate", [m]), t.showOnCreate &&
|
|
25019
|
+
return ge(), p(), U(), Y("onCreate", [m]), t.showOnCreate && _n(), I.addEventListener("mouseenter", function() {
|
|
25020
25020
|
m.props.interactive && m.state.isVisible && m.clearDelayTimeouts();
|
|
25021
25021
|
}), I.addEventListener("mouseleave", function() {
|
|
25022
25022
|
m.props.interactive && m.props.trigger.indexOf("mouseenter") >= 0 && F().addEventListener("mousemove", f);
|
|
@@ -25176,7 +25176,7 @@ function ax(n, e) {
|
|
|
25176
25176
|
var Ae = ((V = u) == null ? void 0 : V.type) === "focus";
|
|
25177
25177
|
u = W, h = W.currentTarget, p(), !m.state.isVisible && zk(W) && ha.forEach(function(be) {
|
|
25178
25178
|
return be(W);
|
|
25179
|
-
}), W.type === "click" && (m.props.trigger.indexOf("mouseenter") < 0 || a) && m.props.hideOnClick !== !1 && m.state.isVisible ? re = !0 :
|
|
25179
|
+
}), W.type === "click" && (m.props.trigger.indexOf("mouseenter") < 0 || a) && m.props.hideOnClick !== !1 && m.state.isVisible ? re = !0 : _n(W), W.type === "click" && (a = !re), re && !Ae && tn(W);
|
|
25180
25180
|
}
|
|
25181
25181
|
}
|
|
25182
25182
|
function we(W) {
|
|
@@ -25271,7 +25271,7 @@ function ax(n, e) {
|
|
|
25271
25271
|
}
|
|
25272
25272
|
function Yt() {
|
|
25273
25273
|
var W = m.props.appendTo, V, re = G();
|
|
25274
|
-
m.props.interactive && W === Sp || W === "parent" ? V = re.parentNode : V = kp(W, [re]), V.contains(I) || V.appendChild(I), m.state.isMounted = !0, In(), process.env.NODE_ENV !== "production" &&
|
|
25274
|
+
m.props.interactive && W === Sp || W === "parent" ? V = re.parentNode : V = kp(W, [re]), V.contains(I) || V.appendChild(I), m.state.isMounted = !0, In(), process.env.NODE_ENV !== "production" && nr(m.props.interactive && W === rn.appendTo && re.nextElementSibling !== I, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
|
25275
25275
|
|
|
25276
25276
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
25277
25277
|
|
|
@@ -25282,7 +25282,7 @@ function ax(n, e) {
|
|
|
25282
25282
|
function en() {
|
|
25283
25283
|
return Za(I.querySelectorAll("[data-tippy-root]"));
|
|
25284
25284
|
}
|
|
25285
|
-
function
|
|
25285
|
+
function _n(W) {
|
|
25286
25286
|
m.clearDelayTimeouts(), W && Y("onTrigger", [m, W]), k();
|
|
25287
25287
|
var V = L(!0), re = v(), Ae = re[0], be = re[1];
|
|
25288
25288
|
Pn.isTouch && Ae === "hold" && be && (V = be), V ? r = setTimeout(function() {
|
|
@@ -25312,8 +25312,8 @@ function ax(n, e) {
|
|
|
25312
25312
|
function cr() {
|
|
25313
25313
|
clearTimeout(r), clearTimeout(i), cancelAnimationFrame(o);
|
|
25314
25314
|
}
|
|
25315
|
-
function
|
|
25316
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
25315
|
+
function $n(W) {
|
|
25316
|
+
if (process.env.NODE_ENV !== "production" && nr(m.state.isDestroyed, wi("setProps")), !m.state.isDestroyed) {
|
|
25317
25317
|
Y("onBeforeUpdate", [m, W]), Z();
|
|
25318
25318
|
var V = m.props, re = Ed(n, Object.assign({}, V, gd(W), {
|
|
25319
25319
|
ignoreAttributes: !0
|
|
@@ -25331,7 +25331,7 @@ function ax(n, e) {
|
|
|
25331
25331
|
});
|
|
25332
25332
|
}
|
|
25333
25333
|
function ne() {
|
|
25334
|
-
process.env.NODE_ENV !== "production" &&
|
|
25334
|
+
process.env.NODE_ENV !== "production" && nr(m.state.isDestroyed, wi("show"));
|
|
25335
25335
|
var W = m.state.isVisible, V = m.state.isDestroyed, re = !m.state.isEnabled, Ae = Pn.isTouch && !m.props.touch, be = al(m.props.duration, 0, rn.duration);
|
|
25336
25336
|
if (!(W || V || re || Ae) && !G().hasAttribute("disabled") && (Y("onShow", [m], !1), m.props.onShow(m) !== !1)) {
|
|
25337
25337
|
if (m.state.isVisible = !0, H() && (I.style.visibility = "visible"), U(), k(), m.state.isMounted || (I.style.transition = "none"), H()) {
|
|
@@ -25353,7 +25353,7 @@ function ax(n, e) {
|
|
|
25353
25353
|
}
|
|
25354
25354
|
}
|
|
25355
25355
|
function Be() {
|
|
25356
|
-
process.env.NODE_ENV !== "production" &&
|
|
25356
|
+
process.env.NODE_ENV !== "production" && nr(m.state.isDestroyed, wi("hide"));
|
|
25357
25357
|
var W = !m.state.isVisible, V = m.state.isDestroyed, re = !m.state.isEnabled, Ae = al(m.props.duration, 1, rn.duration);
|
|
25358
25358
|
if (!(W || V || re) && (Y("onHide", [m], !1), m.props.onHide(m) !== !1)) {
|
|
25359
25359
|
if (m.state.isVisible = !1, m.state.isShown = !1, A = !1, a = !1, H() && (I.style.visibility = "hidden"), w(), y(), U(!0), H()) {
|
|
@@ -25364,17 +25364,17 @@ function ax(n, e) {
|
|
|
25364
25364
|
}
|
|
25365
25365
|
}
|
|
25366
25366
|
function Re(W) {
|
|
25367
|
-
process.env.NODE_ENV !== "production" &&
|
|
25367
|
+
process.env.NODE_ENV !== "production" && nr(m.state.isDestroyed, wi("hideWithInteractivity")), F().addEventListener("mousemove", f), dd(ha, f), f(W);
|
|
25368
25368
|
}
|
|
25369
25369
|
function Ge() {
|
|
25370
|
-
process.env.NODE_ENV !== "production" &&
|
|
25370
|
+
process.env.NODE_ENV !== "production" && nr(m.state.isDestroyed, wi("unmount")), m.state.isVisible && m.hide(), m.state.isMounted && ($t(), en().forEach(function(W) {
|
|
25371
25371
|
W._tippy.unmount();
|
|
25372
25372
|
}), I.parentNode && I.parentNode.removeChild(I), Al = Al.filter(function(W) {
|
|
25373
25373
|
return W !== m;
|
|
25374
25374
|
}), m.state.isMounted = !1, Y("onHidden", [m]));
|
|
25375
25375
|
}
|
|
25376
25376
|
function An() {
|
|
25377
|
-
process.env.NODE_ENV !== "production" &&
|
|
25377
|
+
process.env.NODE_ENV !== "production" && nr(m.state.isDestroyed, wi("destroy")), !m.state.isDestroyed && (m.clearDelayTimeouts(), m.unmount(), Z(), delete n._tippy, m.state.isDestroyed = !0, Y("onDestroy", [m]));
|
|
25378
25378
|
}
|
|
25379
25379
|
}
|
|
25380
25380
|
function ao(n, e) {
|
|
@@ -25386,7 +25386,7 @@ function ao(n, e) {
|
|
|
25386
25386
|
}), i = Hk(n);
|
|
25387
25387
|
if (process.env.NODE_ENV !== "production") {
|
|
25388
25388
|
var o = qo(r.content), a = i.length > 1;
|
|
25389
|
-
|
|
25389
|
+
nr(o && a, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", `
|
|
25390
25390
|
|
|
25391
25391
|
`, "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", `
|
|
25392
25392
|
|
|
@@ -25514,7 +25514,7 @@ class sx {
|
|
|
25514
25514
|
}
|
|
25515
25515
|
}
|
|
25516
25516
|
const Pp = (n) => new _t({
|
|
25517
|
-
key: typeof n.pluginKey == "string" ? new
|
|
25517
|
+
key: typeof n.pluginKey == "string" ? new Xn(n.pluginKey) : n.pluginKey,
|
|
25518
25518
|
view: (e) => new sx({ view: e, ...n })
|
|
25519
25519
|
});
|
|
25520
25520
|
Pt.create({
|
|
@@ -25606,7 +25606,7 @@ class lx {
|
|
|
25606
25606
|
}
|
|
25607
25607
|
}
|
|
25608
25608
|
const Np = (n) => new _t({
|
|
25609
|
-
key: typeof n.pluginKey == "string" ? new
|
|
25609
|
+
key: typeof n.pluginKey == "string" ? new Xn(n.pluginKey) : n.pluginKey,
|
|
25610
25610
|
view: (e) => new lx({ view: e, ...n })
|
|
25611
25611
|
});
|
|
25612
25612
|
Pt.create({
|
|
@@ -25727,7 +25727,7 @@ const ux = it({
|
|
|
25727
25727
|
const e = se(), t = jp();
|
|
25728
25728
|
return Yp(() => {
|
|
25729
25729
|
const r = n.editor;
|
|
25730
|
-
r && r.options.element && e.value &&
|
|
25730
|
+
r && r.options.element && e.value && lr(() => {
|
|
25731
25731
|
if (!e.value || !r.options.element.firstChild)
|
|
25732
25732
|
return;
|
|
25733
25733
|
const i = O(e.value);
|
|
@@ -26213,7 +26213,7 @@ const cx = (n = {}) => {
|
|
|
26213
26213
|
// this plugin creates a code block for pasted content from VS Code
|
|
26214
26214
|
// we can also detect the copied code language
|
|
26215
26215
|
new _t({
|
|
26216
|
-
key: new
|
|
26216
|
+
key: new Xn("codeBlockVSCodeHandler"),
|
|
26217
26217
|
props: {
|
|
26218
26218
|
handlePaste: (n, e) => {
|
|
26219
26219
|
if (!e.clipboardData || this.editor.isActive(this.type.name))
|
|
@@ -26937,7 +26937,7 @@ function wa(n) {
|
|
|
26937
26937
|
}
|
|
26938
26938
|
return cl;
|
|
26939
26939
|
}
|
|
26940
|
-
const ri = new
|
|
26940
|
+
const ri = new Xn("history"), qx = new Xn("closeHistory");
|
|
26941
26941
|
function Zx(n = {}) {
|
|
26942
26942
|
return n = {
|
|
26943
26943
|
depth: n.depth || 100,
|
|
@@ -28630,6 +28630,7 @@ function oT(n, e, t, r, i, o) {
|
|
|
28630
28630
|
"data-testid": "text-num-events"
|
|
28631
28631
|
})
|
|
28632
28632
|
])) : _("", !0),
|
|
28633
|
+
jn(" 545 "),
|
|
28633
28634
|
(S(!0), J(ye, null, Ue(t.events, (u) => (S(), J("section", nT, [
|
|
28634
28635
|
X(l, {
|
|
28635
28636
|
event: u,
|