@quoreadmin/ui 0.22.11 → 0.22.12
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/index.js +589 -585
- package/dist/index.umd.cjs +34 -34
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -606,21 +606,21 @@ class Ib {
|
|
|
606
606
|
} = this.state, c = this.getInternalMovement(e, this.state), d = this.transform(r).map(Math.abs), f = a[0] === !1 ? d1(c[0], d[0]) : a[0], h = a[1] === !1 ? d1(c[1], d[1]) : a[1], p = this.checkIntentionality([f, h], c);
|
|
607
607
|
if (p._blocked)
|
|
608
608
|
return { ...p, _movement: c, delta: [0, 0] };
|
|
609
|
-
const
|
|
610
|
-
let
|
|
611
|
-
|
|
612
|
-
|
|
609
|
+
const g = p._intentional, m = c;
|
|
610
|
+
let y = [
|
|
611
|
+
g[0] !== !1 ? c[0] - g[0] : 0,
|
|
612
|
+
g[1] !== !1 ? c[1] - g[1] : 0
|
|
613
613
|
];
|
|
614
|
-
const v = zu(
|
|
615
|
-
return
|
|
614
|
+
const v = zu(y, l), S = s ? n : [0, 0];
|
|
615
|
+
return y = f1(i, zu(y, o), S), {
|
|
616
616
|
...p,
|
|
617
|
-
intentional:
|
|
617
|
+
intentional: g[0] !== !1 || g[1] !== !1,
|
|
618
618
|
_initial: o,
|
|
619
619
|
_movement: m,
|
|
620
|
-
movement:
|
|
620
|
+
movement: y,
|
|
621
621
|
values: e,
|
|
622
622
|
offset: f1(i, v, S),
|
|
623
|
-
delta: Hg(
|
|
623
|
+
delta: Hg(y, u)
|
|
624
624
|
};
|
|
625
625
|
}
|
|
626
626
|
// Cleans the gesture. Can be overriden by gestures.
|
|
@@ -788,8 +788,8 @@ class $b extends Db {
|
|
|
788
788
|
const n = this.state._dragIsTap, [r, i] = this.state.velocities, [o, s] = this.state.movement, [a, l] = this.state._intentional, [u, c] = this.config.swipeVelocity, [d, f] = this.config.swipeDistance, h = this.config.swipeDuration, p = {
|
|
789
789
|
...$2(this, e),
|
|
790
790
|
...this.getMovement(this.state.values)
|
|
791
|
-
},
|
|
792
|
-
p.elapsedTime < h && (a !== !1 && Math.abs(r) > u && Math.abs(o) > d && (
|
|
791
|
+
}, g = [0, 0];
|
|
792
|
+
p.elapsedTime < h && (a !== !1 && Math.abs(r) > u && Math.abs(o) > d && (g[0] = Zu(r)), l !== !1 && Math.abs(i) > c && Math.abs(s) > f && (g[1] = Zu(i))), this.updateSharedState({ buttons: 0 }), this.updateGestureState({ ...p, tap: n, swipe: g }), this.fireGestureHandler(this.config.filterTaps && n === !0);
|
|
793
793
|
}), dt(this, "clean", () => {
|
|
794
794
|
super.clean(), this.state._dragStarted = !1, this.releasePointerCapture(), wb(this.controller, this.stateKey);
|
|
795
795
|
}), dt(this, "onCancel", () => {
|
|
@@ -1104,13 +1104,13 @@ function F2({ props: t, attrs: e, slots: n, slot: r, name: i }) {
|
|
|
1104
1104
|
if (u = Zg(u ?? []), Object.keys(l).length > 0 || Object.keys(e).length > 0) {
|
|
1105
1105
|
let [d, ...f] = u ?? [];
|
|
1106
1106
|
if (!a6(d) || f.length > 0)
|
|
1107
|
-
throw new Error(['Passing props on "template"!', "", `The current component <${i} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(l).concat(Object.keys(e)).map((
|
|
1108
|
-
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((
|
|
1107
|
+
throw new Error(['Passing props on "template"!', "", `The current component <${i} /> is rendering a "template".`, "However we need to passthrough the following props:", Object.keys(l).concat(Object.keys(e)).map((g) => g.trim()).filter((g, m, y) => y.indexOf(g) === m).sort((g, m) => g.localeCompare(m)).map((g) => ` - ${g}`).join(`
|
|
1108
|
+
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((g) => ` - ${g}`).join(`
|
|
1109
1109
|
`)].join(`
|
|
1110
1110
|
`));
|
|
1111
1111
|
let h = Wg((s = d.props) != null ? s : {}, l, c), p = H4(d, h, !0);
|
|
1112
|
-
for (let
|
|
1113
|
-
|
|
1112
|
+
for (let g in h)
|
|
1113
|
+
g.startsWith("on") && (p.props || (p.props = {}), p.props[g] = h[g]);
|
|
1114
1114
|
return p;
|
|
1115
1115
|
}
|
|
1116
1116
|
return Array.isArray(u) && u.length === 1 ? u[0] : u;
|
|
@@ -1298,8 +1298,8 @@ let Yg = zg.RenderStrategy, y6 = ce({ props: { as: { type: [Object, String], def
|
|
|
1298
1298
|
return () => Ot(Jg, { ...t, onBeforeEnter: s, onAfterEnter: a, onBeforeLeave: l, onAfterLeave: u }, r);
|
|
1299
1299
|
let c = _(null), d = U(() => t.unmount ? jr.Unmount : jr.Hidden);
|
|
1300
1300
|
i({ el: c, $el: c });
|
|
1301
|
-
let { show: f, appear: h } = m6(), { register: p, unregister:
|
|
1302
|
-
!S.value && m.value !== "hidden" && (m.value = "hidden",
|
|
1301
|
+
let { show: f, appear: h } = m6(), { register: p, unregister: g } = g6(), m = _(f.value ? "visible" : "hidden"), y = { value: !0 }, v = n6(), S = { value: !1 }, w = qg(() => {
|
|
1302
|
+
!S.value && m.value !== "hidden" && (m.value = "hidden", g(v), u());
|
|
1303
1303
|
});
|
|
1304
1304
|
Je(() => {
|
|
1305
1305
|
let te = p(v);
|
|
@@ -1310,7 +1310,7 @@ let Yg = zg.RenderStrategy, y6 = ce({ props: { as: { type: [Object, String], def
|
|
|
1310
1310
|
m.value = "visible";
|
|
1311
1311
|
return;
|
|
1312
1312
|
}
|
|
1313
|
-
zs(m.value, { hidden: () =>
|
|
1313
|
+
zs(m.value, { hidden: () => g(v), visible: () => p(v) });
|
|
1314
1314
|
}
|
|
1315
1315
|
});
|
|
1316
1316
|
let T = wi(t.enter), C = wi(t.enterFrom), E = wi(t.enterTo), A = wi(t.entered), $ = wi(t.leave), z = wi(t.leaveFrom), j = wi(t.leaveTo);
|
|
@@ -1324,16 +1324,16 @@ let Yg = zg.RenderStrategy, y6 = ce({ props: { as: { type: [Object, String], def
|
|
|
1324
1324
|
});
|
|
1325
1325
|
});
|
|
1326
1326
|
function q(te) {
|
|
1327
|
-
let me =
|
|
1327
|
+
let me = y.value && !h.value, Y = p1(c);
|
|
1328
1328
|
!Y || !(Y instanceof HTMLElement) || me || (S.value = !0, f.value && s(), f.value || l(), te(f.value ? g1(Y, T, C, E, A, (oe) => {
|
|
1329
1329
|
S.value = !1, oe === Wu.Finished && a();
|
|
1330
1330
|
}) : g1(Y, $, z, j, A, (oe) => {
|
|
1331
|
-
S.value = !1, oe === Wu.Finished && (e2(w) || (m.value = "hidden",
|
|
1331
|
+
S.value = !1, oe === Wu.Finished && (e2(w) || (m.value = "hidden", g(v), u()));
|
|
1332
1332
|
})));
|
|
1333
1333
|
}
|
|
1334
1334
|
return Je(() => {
|
|
1335
1335
|
Qe([f], (te, me, Y) => {
|
|
1336
|
-
q(Y),
|
|
1336
|
+
q(Y), y.value = !1;
|
|
1337
1337
|
}, { immediate: !0 });
|
|
1338
1338
|
}), ti(wd, w), u6(U(() => zs(m.value, { visible: ar.Open, hidden: ar.Closed }) | o.value)), () => {
|
|
1339
1339
|
let { appear: te, show: me, enter: Y, enterFrom: oe, enterTo: ge, entered: be, leave: ct, leaveFrom: xt, leaveTo: vt, ...bt } = t, Cn = { ref: c }, Kt = { ...bt, ...h.value && f.value && s6.isServer ? { class: B([n.class, bt.class, ...T, ...C]) } : {} };
|
|
@@ -1542,18 +1542,18 @@ function x6(t, e, n = {}) {
|
|
|
1542
1542
|
let c = Vi;
|
|
1543
1543
|
const d = _(a), f = l.value ? Qe(
|
|
1544
1544
|
() => [u.value, ur(r), d.value],
|
|
1545
|
-
([p,
|
|
1545
|
+
([p, g]) => {
|
|
1546
1546
|
if (c(), !d.value || !p.length)
|
|
1547
1547
|
return;
|
|
1548
1548
|
const m = new IntersectionObserver(
|
|
1549
1549
|
e,
|
|
1550
1550
|
{
|
|
1551
|
-
root: ur(
|
|
1551
|
+
root: ur(g),
|
|
1552
1552
|
rootMargin: i,
|
|
1553
1553
|
threshold: o
|
|
1554
1554
|
}
|
|
1555
1555
|
);
|
|
1556
|
-
p.forEach((
|
|
1556
|
+
p.forEach((y) => y && m.observe(y)), c = () => {
|
|
1557
1557
|
m.disconnect(), c = Vi;
|
|
1558
1558
|
};
|
|
1559
1559
|
},
|
|
@@ -1648,8 +1648,8 @@ function B6({ duration: t = 800, bounce: e = 0.25, velocity: n = 0, mass: r = 1
|
|
|
1648
1648
|
const c = u * s, d = c * t, f = c - n, h = Yu(u, s), p = Math.exp(-d);
|
|
1649
1649
|
return V2 - f / h * p;
|
|
1650
1650
|
}, o = (u) => {
|
|
1651
|
-
const d = u * s * t, f = d * n + n, h = Math.pow(s, 2) * Math.pow(u, 2) * t, p = Math.exp(-d),
|
|
1652
|
-
return (-i(u) + V2 > 0 ? -1 : 1) * ((f - h) * p) /
|
|
1651
|
+
const d = u * s * t, f = d * n + n, h = Math.pow(s, 2) * Math.pow(u, 2) * t, p = Math.exp(-d), g = Yu(Math.pow(u, 2), s);
|
|
1652
|
+
return (-i(u) + V2 > 0 ? -1 : 1) * ((f - h) * p) / g;
|
|
1653
1653
|
}) : (i = (u) => {
|
|
1654
1654
|
const c = Math.exp(-u * t), d = (u - n) * t + 1;
|
|
1655
1655
|
return -V2 + c * d;
|
|
@@ -1699,40 +1699,40 @@ function kd(t) {
|
|
|
1699
1699
|
var { from: e = 0, to: n = 1, restSpeed: r = 2, restDelta: i } = t, o = o5(t, ["from", "to", "restSpeed", "restDelta"]);
|
|
1700
1700
|
const s = { done: !1, value: e };
|
|
1701
1701
|
let { stiffness: a, damping: l, mass: u, velocity: c, duration: d, isResolvedFromDuration: f } = j6(o), h = S1, p = S1;
|
|
1702
|
-
function
|
|
1703
|
-
const m = c ? -(c / 1e3) : 0,
|
|
1702
|
+
function g() {
|
|
1703
|
+
const m = c ? -(c / 1e3) : 0, y = n - e, v = l / (2 * Math.sqrt(a * u)), S = Math.sqrt(a / u) / 1e3;
|
|
1704
1704
|
if (i === void 0 && (i = Math.min(Math.abs(n - e) / 100, 0.4)), v < 1) {
|
|
1705
1705
|
const w = Yu(S, v);
|
|
1706
1706
|
h = (T) => {
|
|
1707
1707
|
const C = Math.exp(-v * S * T);
|
|
1708
|
-
return n - C * ((m + v * S *
|
|
1708
|
+
return n - C * ((m + v * S * y) / w * Math.sin(w * T) + y * Math.cos(w * T));
|
|
1709
1709
|
}, p = (T) => {
|
|
1710
1710
|
const C = Math.exp(-v * S * T);
|
|
1711
|
-
return v * S * C * (Math.sin(w * T) * (m + v * S *
|
|
1711
|
+
return v * S * C * (Math.sin(w * T) * (m + v * S * y) / w + y * Math.cos(w * T)) - C * (Math.cos(w * T) * (m + v * S * y) - w * y * Math.sin(w * T));
|
|
1712
1712
|
};
|
|
1713
1713
|
} else if (v === 1)
|
|
1714
|
-
h = (w) => n - Math.exp(-S * w) * (
|
|
1714
|
+
h = (w) => n - Math.exp(-S * w) * (y + (m + S * y) * w);
|
|
1715
1715
|
else {
|
|
1716
1716
|
const w = S * Math.sqrt(v * v - 1);
|
|
1717
1717
|
h = (T) => {
|
|
1718
1718
|
const C = Math.exp(-v * S * T), E = Math.min(w * T, 300);
|
|
1719
|
-
return n - C * ((m + v * S *
|
|
1719
|
+
return n - C * ((m + v * S * y) * Math.sinh(E) + w * y * Math.cosh(E)) / w;
|
|
1720
1720
|
};
|
|
1721
1721
|
}
|
|
1722
1722
|
}
|
|
1723
|
-
return
|
|
1723
|
+
return g(), {
|
|
1724
1724
|
next: (m) => {
|
|
1725
|
-
const
|
|
1725
|
+
const y = h(m);
|
|
1726
1726
|
if (f)
|
|
1727
1727
|
s.done = m >= d;
|
|
1728
1728
|
else {
|
|
1729
|
-
const v = p(m) * 1e3, S = Math.abs(v) <= r, w = Math.abs(n -
|
|
1729
|
+
const v = p(m) * 1e3, S = Math.abs(v) <= r, w = Math.abs(n - y) <= i;
|
|
1730
1730
|
s.done = S && w;
|
|
1731
1731
|
}
|
|
1732
|
-
return s.value = s.done ? n :
|
|
1732
|
+
return s.value = s.done ? n : y, s;
|
|
1733
1733
|
},
|
|
1734
1734
|
flipTarget: () => {
|
|
1735
|
-
c = -c, [e, n] = [n, e],
|
|
1735
|
+
c = -c, [e, n] = [n, e], g();
|
|
1736
1736
|
}
|
|
1737
1737
|
};
|
|
1738
1738
|
}
|
|
@@ -2018,18 +2018,18 @@ const P8 = (t) => {
|
|
|
2018
2018
|
};
|
|
2019
2019
|
};
|
|
2020
2020
|
function M5(t) {
|
|
2021
|
-
var e, n, { from: r, autoplay: i = !0, driver: o = P8, elapsed: s = 0, repeat: a = 0, repeatType: l = "loop", repeatDelay: u = 0, onPlay: c, onStop: d, onComplete: f, onRepeat: h, onUpdate: p } = t,
|
|
2022
|
-
let { to: m } =
|
|
2023
|
-
const A = x8(
|
|
2021
|
+
var e, n, { from: r, autoplay: i = !0, driver: o = P8, elapsed: s = 0, repeat: a = 0, repeatType: l = "loop", repeatDelay: u = 0, onPlay: c, onStop: d, onComplete: f, onRepeat: h, onUpdate: p } = t, g = o5(t, ["from", "autoplay", "driver", "elapsed", "repeat", "repeatType", "repeatDelay", "onPlay", "onStop", "onComplete", "onRepeat", "onUpdate"]);
|
|
2022
|
+
let { to: m } = g, y, v = 0, S = g.duration, w, T = !1, C = !0, E;
|
|
2023
|
+
const A = x8(g);
|
|
2024
2024
|
!((n = (e = A).needsInterpolation) === null || n === void 0) && n.call(e, r, m) && (E = b5([0, 100], [r, m], {
|
|
2025
2025
|
clamp: !1
|
|
2026
2026
|
}), r = 0, m = 100);
|
|
2027
|
-
const $ = A(Object.assign(Object.assign({},
|
|
2027
|
+
const $ = A(Object.assign(Object.assign({}, g), { from: r, to: m }));
|
|
2028
2028
|
function z() {
|
|
2029
2029
|
v++, l === "reverse" ? (C = v % 2 === 0, s = A8(s, S, u, C)) : (s = E5(s, S, u), l === "mirror" && $.flipTarget()), T = !1, h && h();
|
|
2030
2030
|
}
|
|
2031
2031
|
function j() {
|
|
2032
|
-
|
|
2032
|
+
y.stop(), f && f();
|
|
2033
2033
|
}
|
|
2034
2034
|
function q(me) {
|
|
2035
2035
|
if (C || (me = -me), s += me, !T) {
|
|
@@ -2039,11 +2039,11 @@ function M5(t) {
|
|
|
2039
2039
|
p == null || p(w), T && (v === 0 && (S ?? (S = s)), v < a ? I8(s, S, u, C) && z() : j());
|
|
2040
2040
|
}
|
|
2041
2041
|
function te() {
|
|
2042
|
-
c == null || c(),
|
|
2042
|
+
c == null || c(), y = o(q), y.start();
|
|
2043
2043
|
}
|
|
2044
2044
|
return i && te(), {
|
|
2045
2045
|
stop: () => {
|
|
2046
|
-
d == null || d(),
|
|
2046
|
+
d == null || d(), y.stop();
|
|
2047
2047
|
}
|
|
2048
2048
|
};
|
|
2049
2049
|
}
|
|
@@ -2052,13 +2052,13 @@ function x5(t, e) {
|
|
|
2052
2052
|
}
|
|
2053
2053
|
function D8({ from: t = 0, velocity: e = 0, min: n, max: r, power: i = 0.8, timeConstant: o = 750, bounceStiffness: s = 500, bounceDamping: a = 10, restDelta: l = 1, modifyTarget: u, driver: c, onUpdate: d, onComplete: f, onStop: h }) {
|
|
2054
2054
|
let p;
|
|
2055
|
-
function
|
|
2055
|
+
function g(S) {
|
|
2056
2056
|
return n !== void 0 && S < n || r !== void 0 && S > r;
|
|
2057
2057
|
}
|
|
2058
2058
|
function m(S) {
|
|
2059
2059
|
return n === void 0 ? r : r === void 0 || Math.abs(n - S) < Math.abs(r - S) ? n : r;
|
|
2060
2060
|
}
|
|
2061
|
-
function
|
|
2061
|
+
function y(S) {
|
|
2062
2062
|
p == null || p.stop(), p = M5(Object.assign(Object.assign({}, S), {
|
|
2063
2063
|
driver: c,
|
|
2064
2064
|
onUpdate: (w) => {
|
|
@@ -2070,9 +2070,9 @@ function D8({ from: t = 0, velocity: e = 0, min: n, max: r, power: i = 0.8, time
|
|
|
2070
2070
|
}));
|
|
2071
2071
|
}
|
|
2072
2072
|
function v(S) {
|
|
2073
|
-
|
|
2073
|
+
y(Object.assign({ type: "spring", stiffness: s, damping: a, restDelta: l }, S));
|
|
2074
2074
|
}
|
|
2075
|
-
if (
|
|
2075
|
+
if (g(t))
|
|
2076
2076
|
v({ from: t, velocity: e, to: m(t) });
|
|
2077
2077
|
else {
|
|
2078
2078
|
let S = i * e + t;
|
|
@@ -2082,7 +2082,7 @@ function D8({ from: t = 0, velocity: e = 0, min: n, max: r, power: i = 0.8, time
|
|
|
2082
2082
|
const A = ($) => {
|
|
2083
2083
|
C = E, E = $, e = x5($ - C, i5().delta), (T === 1 && $ > w || T === -1 && $ < w) && v({ from: $, to: w, velocity: e });
|
|
2084
2084
|
};
|
|
2085
|
-
|
|
2085
|
+
y({
|
|
2086
2086
|
type: "decay",
|
|
2087
2087
|
from: t,
|
|
2088
2088
|
velocity: e,
|
|
@@ -2090,7 +2090,7 @@ function D8({ from: t = 0, velocity: e = 0, min: n, max: r, power: i = 0.8, time
|
|
|
2090
2090
|
power: i,
|
|
2091
2091
|
restDelta: l,
|
|
2092
2092
|
modifyTarget: u,
|
|
2093
|
-
onUpdate:
|
|
2093
|
+
onUpdate: g(S) ? A : void 0
|
|
2094
2094
|
});
|
|
2095
2095
|
}
|
|
2096
2096
|
return {
|
|
@@ -3341,11 +3341,11 @@ const c9 = ce({
|
|
|
3341
3341
|
set: (T) => e("update:model-value", T)
|
|
3342
3342
|
}), f = U(() => t.modelValue ? "z-[201]" : "-z-40"), h = U(() => !!(n != null && n.headerAction)), p = () => {
|
|
3343
3343
|
o.value = window.innerHeight;
|
|
3344
|
-
},
|
|
3345
|
-
t.allowOnClickOutside &&
|
|
3344
|
+
}, g = () => {
|
|
3345
|
+
t.allowOnClickOutside && y({ clickOutside: !0 });
|
|
3346
3346
|
}, m = () => {
|
|
3347
3347
|
d.value = !0;
|
|
3348
|
-
},
|
|
3348
|
+
}, y = async (T = { clickOutside: !1 }) => {
|
|
3349
3349
|
if (d.value = !1, await lr(), T.clickOutside) {
|
|
3350
3350
|
d.value = !1;
|
|
3351
3351
|
return;
|
|
@@ -3373,7 +3373,7 @@ const c9 = ce({
|
|
|
3373
3373
|
movement: [, E]
|
|
3374
3374
|
} = T;
|
|
3375
3375
|
if (C > 0) {
|
|
3376
|
-
|
|
3376
|
+
y();
|
|
3377
3377
|
return;
|
|
3378
3378
|
} else if (C < 0) {
|
|
3379
3379
|
m();
|
|
@@ -3383,12 +3383,12 @@ const c9 = ce({
|
|
|
3383
3383
|
m();
|
|
3384
3384
|
return;
|
|
3385
3385
|
} else {
|
|
3386
|
-
|
|
3386
|
+
y();
|
|
3387
3387
|
return;
|
|
3388
3388
|
}
|
|
3389
3389
|
};
|
|
3390
3390
|
return vr(() => {
|
|
3391
|
-
document.body.classList.remove("scroll-disabled"),
|
|
3391
|
+
document.body.classList.remove("scroll-disabled"), y();
|
|
3392
3392
|
}), Je(() => {
|
|
3393
3393
|
m(), document.body.classList.add("scroll-disabled"), window.addEventListener("resize", p);
|
|
3394
3394
|
}), Xb(v, {
|
|
@@ -3408,8 +3408,8 @@ const c9 = ce({
|
|
|
3408
3408
|
show: d,
|
|
3409
3409
|
hasHeaderAction: h,
|
|
3410
3410
|
// methods
|
|
3411
|
-
onClickOutside:
|
|
3412
|
-
onClose:
|
|
3411
|
+
onClickOutside: g,
|
|
3412
|
+
onClose: y,
|
|
3413
3413
|
onOpen: m,
|
|
3414
3414
|
dragHandler: v,
|
|
3415
3415
|
handleDrag: S,
|
|
@@ -3828,12 +3828,12 @@ var M = {
|
|
|
3828
3828
|
if (h === "string" || h === "number")
|
|
3829
3829
|
d.push(f);
|
|
3830
3830
|
else if (h === "object") {
|
|
3831
|
-
var p = Array.isArray(f) ? o(s, f) : Object.entries(f).map(function(
|
|
3832
|
-
var m = W2(
|
|
3833
|
-
return s === "style" && (v || v === 0) ? "".concat(
|
|
3831
|
+
var p = Array.isArray(f) ? o(s, f) : Object.entries(f).map(function(g) {
|
|
3832
|
+
var m = W2(g, 2), y = m[0], v = m[1];
|
|
3833
|
+
return s === "style" && (v || v === 0) ? "".concat(y.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase(), ":").concat(v) : v ? y : void 0;
|
|
3834
3834
|
});
|
|
3835
|
-
d = p.length ? d.concat(p.filter(function(
|
|
3836
|
-
return !!
|
|
3835
|
+
d = p.length ? d.concat(p.filter(function(g) {
|
|
3836
|
+
return !!g;
|
|
3837
3837
|
})) : d;
|
|
3838
3838
|
}
|
|
3839
3839
|
}
|
|
@@ -3881,8 +3881,8 @@ var M = {
|
|
|
3881
3881
|
var i = e.offsetParent ? {
|
|
3882
3882
|
width: e.offsetWidth,
|
|
3883
3883
|
height: e.offsetHeight
|
|
3884
|
-
} : this.getHiddenElementDimensions(e), o = i.height, s = i.width, a = n.offsetHeight, l = n.offsetWidth, u = n.getBoundingClientRect(), c = this.getWindowScrollTop(), d = this.getWindowScrollLeft(), f = this.getViewport(), h, p,
|
|
3885
|
-
u.top + a + o > f.height ? (h = u.top + c - o,
|
|
3884
|
+
} : this.getHiddenElementDimensions(e), o = i.height, s = i.width, a = n.offsetHeight, l = n.offsetWidth, u = n.getBoundingClientRect(), c = this.getWindowScrollTop(), d = this.getWindowScrollLeft(), f = this.getViewport(), h, p, g = "top";
|
|
3885
|
+
u.top + a + o > f.height ? (h = u.top + c - o, g = "bottom", h < 0 && (h = c)) : h = a + u.top + c, u.left + s > f.width ? p = Math.max(0, u.left + d + l - s) : p = u.left + d, e.style.top = h + "px", e.style.left = p + "px", e.style.transformOrigin = g, r && (e.style.marginTop = g === "bottom" ? "calc(var(--p-anchor-gutter) * -1)" : "calc(var(--p-anchor-gutter))");
|
|
3886
3886
|
}
|
|
3887
3887
|
},
|
|
3888
3888
|
relativePosition: function(e, n) {
|
|
@@ -3914,8 +3914,8 @@ var M = {
|
|
|
3914
3914
|
if (e) {
|
|
3915
3915
|
var r = this.getParents(e), i = /(auto|scroll)/, o = function(m) {
|
|
3916
3916
|
try {
|
|
3917
|
-
var
|
|
3918
|
-
return i.test(
|
|
3917
|
+
var y = window.getComputedStyle(m, null);
|
|
3918
|
+
return i.test(y.getPropertyValue("overflow")) || i.test(y.getPropertyValue("overflowX")) || i.test(y.getPropertyValue("overflowY"));
|
|
3919
3919
|
} catch {
|
|
3920
3920
|
return !1;
|
|
3921
3921
|
}
|
|
@@ -3930,16 +3930,16 @@ var M = {
|
|
|
3930
3930
|
var h = f.value, p = this.findSingle(l, h);
|
|
3931
3931
|
p && o(p) && n.push(p);
|
|
3932
3932
|
}
|
|
3933
|
-
} catch (
|
|
3934
|
-
d.e(
|
|
3933
|
+
} catch (g) {
|
|
3934
|
+
d.e(g);
|
|
3935
3935
|
} finally {
|
|
3936
3936
|
d.f();
|
|
3937
3937
|
}
|
|
3938
3938
|
}
|
|
3939
3939
|
l.nodeType !== 9 && o(l) && n.push(l);
|
|
3940
3940
|
}
|
|
3941
|
-
} catch (
|
|
3942
|
-
s.e(
|
|
3941
|
+
} catch (g) {
|
|
3942
|
+
s.e(g);
|
|
3943
3943
|
} finally {
|
|
3944
3944
|
s.f();
|
|
3945
3945
|
}
|
|
@@ -4884,15 +4884,15 @@ function uS(t) {
|
|
|
4884
4884
|
}
|
|
4885
4885
|
var cS = 0;
|
|
4886
4886
|
function Z5(t) {
|
|
4887
|
-
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = _(!1), r = _(t), i = _(null), o = M.isClient() ? window.document : void 0, s = e.document, a = s === void 0 ? o : s, l = e.immediate, u = l === void 0 ? !0 : l, c = e.manual, d = c === void 0 ? !1 : c, f = e.name, h = f === void 0 ? "style_".concat(++cS) : f, p = e.id,
|
|
4887
|
+
var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = _(!1), r = _(t), i = _(null), o = M.isClient() ? window.document : void 0, s = e.document, a = s === void 0 ? o : s, l = e.immediate, u = l === void 0 ? !0 : l, c = e.manual, d = c === void 0 ? !1 : c, f = e.name, h = f === void 0 ? "style_".concat(++cS) : f, p = e.id, g = p === void 0 ? void 0 : p, m = e.media, y = m === void 0 ? void 0 : m, v = e.nonce, S = v === void 0 ? void 0 : v, w = e.props, T = w === void 0 ? {} : w, C = function() {
|
|
4888
4888
|
}, E = function(z) {
|
|
4889
4889
|
var j = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
4890
4890
|
if (a) {
|
|
4891
|
-
var q = H1(H1({}, T), j), te = q.name || h, me = q.id ||
|
|
4891
|
+
var q = H1(H1({}, T), j), te = q.name || h, me = q.id || g, Y = q.nonce || S;
|
|
4892
4892
|
i.value = a.querySelector('style[data-primevue-style-id="'.concat(te, '"]')) || a.getElementById(me) || a.createElement("style"), i.value.isConnected || (r.value = z || t, M.setAttributes(i.value, {
|
|
4893
4893
|
type: "text/css",
|
|
4894
4894
|
id: me,
|
|
4895
|
-
media:
|
|
4895
|
+
media: y,
|
|
4896
4896
|
nonce: Y
|
|
4897
4897
|
}), a.head.appendChild(i.value), M.setAttribute(i.value, "data-primevue-style-id", h), M.setAttributes(i.value, q)), !n.value && (C = Qe(r, function(oe) {
|
|
4898
4898
|
i.value.textContent = oe;
|
|
@@ -4904,7 +4904,7 @@ function Z5(t) {
|
|
|
4904
4904
|
!a || !n.value || (C(), M.isExist(i.value) && a.head.removeChild(i.value), n.value = !1);
|
|
4905
4905
|
};
|
|
4906
4906
|
return u && !d && uS(E), {
|
|
4907
|
-
id:
|
|
4907
|
+
id: g,
|
|
4908
4908
|
name: h,
|
|
4909
4909
|
css: r,
|
|
4910
4910
|
unload: A,
|
|
@@ -5185,10 +5185,10 @@ var Se = {
|
|
|
5185
5185
|
return D.isString(v) || D.isArray(v) ? {
|
|
5186
5186
|
class: v
|
|
5187
5187
|
} : v;
|
|
5188
|
-
}, u = ((e = r.binding) === null || e === void 0 || (e = e.value) === null || e === void 0 ? void 0 : e.ptOptions) || ((n = r.$config) === null || n === void 0 ? void 0 : n.ptOptions) || {}, c = u.mergeSections, d = c === void 0 ? !0 : c, f = u.mergeProps, h = f === void 0 ? !1 : f, p = a ? Se._useDefaultPT(r, r.defaultPT(), l, o, s) : void 0,
|
|
5188
|
+
}, u = ((e = r.binding) === null || e === void 0 || (e = e.value) === null || e === void 0 ? void 0 : e.ptOptions) || ((n = r.$config) === null || n === void 0 ? void 0 : n.ptOptions) || {}, c = u.mergeSections, d = c === void 0 ? !0 : c, f = u.mergeProps, h = f === void 0 ? !1 : f, p = a ? Se._useDefaultPT(r, r.defaultPT(), l, o, s) : void 0, g = Se._usePT(r, Se._getPT(i, r.$name), l, o, Be(Be({}, s), {}, {
|
|
5189
5189
|
global: p || {}
|
|
5190
5190
|
})), m = Se._getPTDatasets(r, o);
|
|
5191
|
-
return d || !d &&
|
|
5191
|
+
return d || !d && g ? h ? Se._mergeProps(r, h, p, g, m) : Be(Be(Be({}, p), g), m) : Be(Be({}, g), m);
|
|
5192
5192
|
},
|
|
5193
5193
|
_getPTDatasets: function() {
|
|
5194
5194
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", r = "data-pc-";
|
|
@@ -5256,30 +5256,30 @@ var Se = {
|
|
|
5256
5256
|
/* computed instance variables */
|
|
5257
5257
|
defaultPT: function() {
|
|
5258
5258
|
return Se._getPT(f == null ? void 0 : f.pt, void 0, function(m) {
|
|
5259
|
-
var
|
|
5260
|
-
return m == null || (
|
|
5259
|
+
var y;
|
|
5260
|
+
return m == null || (y = m.directives) === null || y === void 0 ? void 0 : y[e];
|
|
5261
5261
|
});
|
|
5262
5262
|
},
|
|
5263
5263
|
isUnstyled: function() {
|
|
5264
|
-
var m,
|
|
5265
|
-
return ((m = s.$instance) === null || m === void 0 || (m = m.$binding) === null || m === void 0 || (m = m.value) === null || m === void 0 ? void 0 : m.unstyled) !== void 0 ? (
|
|
5264
|
+
var m, y;
|
|
5265
|
+
return ((m = s.$instance) === null || m === void 0 || (m = m.$binding) === null || m === void 0 || (m = m.value) === null || m === void 0 ? void 0 : m.unstyled) !== void 0 ? (y = s.$instance) === null || y === void 0 || (y = y.$binding) === null || y === void 0 || (y = y.value) === null || y === void 0 ? void 0 : y.unstyled : f == null ? void 0 : f.unstyled;
|
|
5266
5266
|
},
|
|
5267
5267
|
/* instance's methods */
|
|
5268
5268
|
ptm: function() {
|
|
5269
|
-
var m,
|
|
5270
|
-
return Se._getPTValue(s.$instance, (m = s.$instance) === null || m === void 0 || (m = m.$binding) === null || m === void 0 || (m = m.value) === null || m === void 0 ? void 0 : m.pt,
|
|
5269
|
+
var m, y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", v = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5270
|
+
return Se._getPTValue(s.$instance, (m = s.$instance) === null || m === void 0 || (m = m.$binding) === null || m === void 0 || (m = m.value) === null || m === void 0 ? void 0 : m.pt, y, Be({}, v));
|
|
5271
5271
|
},
|
|
5272
5272
|
ptmo: function() {
|
|
5273
|
-
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
5274
|
-
return Se._getPTValue(s.$instance, m,
|
|
5273
|
+
var m = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "", v = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
5274
|
+
return Se._getPTValue(s.$instance, m, y, v, !1);
|
|
5275
5275
|
},
|
|
5276
5276
|
cx: function() {
|
|
5277
|
-
var m,
|
|
5278
|
-
return (m = s.$instance) !== null && m !== void 0 && m.isUnstyled() ? void 0 : Se._getOptionValue((
|
|
5277
|
+
var m, y, v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", S = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
5278
|
+
return (m = s.$instance) !== null && m !== void 0 && m.isUnstyled() ? void 0 : Se._getOptionValue((y = s.$instance) === null || y === void 0 || (y = y.$style) === null || y === void 0 ? void 0 : y.classes, v, Be({}, S));
|
|
5279
5279
|
},
|
|
5280
5280
|
sx: function() {
|
|
5281
|
-
var m,
|
|
5282
|
-
return v ? Se._getOptionValue((m = s.$instance) === null || m === void 0 || (m = m.$style) === null || m === void 0 ? void 0 : m.inlineStyles,
|
|
5281
|
+
var m, y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", v = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, S = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
5282
|
+
return v ? Se._getOptionValue((m = s.$instance) === null || m === void 0 || (m = m.$style) === null || m === void 0 ? void 0 : m.inlineStyles, y, Be({}, S)) : void 0;
|
|
5283
5283
|
}
|
|
5284
5284
|
}, p), s.$instance = s._$instances[e], (c = (d = s.$instance)[o]) === null || c === void 0 || c.call(d, s, a, l, u), s["$".concat(e)] = s.$instance, Se._hook(e, o, s, a, l, u);
|
|
5285
5285
|
};
|
|
@@ -5626,8 +5626,8 @@ var ve = {
|
|
|
5626
5626
|
beforeCreate: function() {
|
|
5627
5627
|
var e, n, r, i, o, s, a, l, u, c, d, f = (e = this.pt) === null || e === void 0 ? void 0 : e._usept, h = f ? (n = this.pt) === null || n === void 0 || (n = n.originalValue) === null || n === void 0 ? void 0 : n[this.$.type.name] : void 0, p = f ? (r = this.pt) === null || r === void 0 || (r = r.value) === null || r === void 0 ? void 0 : r[this.$.type.name] : this.pt;
|
|
5628
5628
|
(i = p || h) === null || i === void 0 || (i = i.hooks) === null || i === void 0 || (o = i.onBeforeCreate) === null || o === void 0 || o.call(i);
|
|
5629
|
-
var
|
|
5630
|
-
(c =
|
|
5629
|
+
var g = (s = this.$config) === null || s === void 0 || (s = s.pt) === null || s === void 0 ? void 0 : s._usept, m = g ? (a = this.$primevue) === null || a === void 0 || (a = a.config) === null || a === void 0 || (a = a.pt) === null || a === void 0 ? void 0 : a.originalValue : void 0, y = g ? (l = this.$primevue) === null || l === void 0 || (l = l.config) === null || l === void 0 || (l = l.pt) === null || l === void 0 ? void 0 : l.value : (u = this.$primevue) === null || u === void 0 || (u = u.config) === null || u === void 0 ? void 0 : u.pt;
|
|
5630
|
+
(c = y || m) === null || c === void 0 || (c = c[this.$.type.name]) === null || c === void 0 || (c = c.hooks) === null || c === void 0 || (d = c.onBeforeCreate) === null || d === void 0 || d.call(c);
|
|
5631
5631
|
},
|
|
5632
5632
|
created: function() {
|
|
5633
5633
|
this._hook("onCreated");
|
|
@@ -5722,8 +5722,8 @@ var ve = {
|
|
|
5722
5722
|
} : o(e, !0);
|
|
5723
5723
|
},
|
|
5724
5724
|
_usePT: function(e, n, r, i) {
|
|
5725
|
-
var o = function(
|
|
5726
|
-
return n(
|
|
5725
|
+
var o = function(g) {
|
|
5726
|
+
return n(g, r, i);
|
|
5727
5727
|
};
|
|
5728
5728
|
if (e != null && e.hasOwnProperty("_usept")) {
|
|
5729
5729
|
var s, a = e._usept || ((s = this.$config) === null || s === void 0 ? void 0 : s.ptOptions) || {}, l = a.mergeSections, u = l === void 0 ? !0 : l, c = a.mergeProps, d = c === void 0 ? !1 : c, f = o(e.originalValue), h = o(e.value);
|
|
@@ -9650,7 +9650,7 @@ function eO(t) {
|
|
|
9650
9650
|
return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
|
|
9651
9651
|
}
|
|
9652
9652
|
function tO(t, e) {
|
|
9653
|
-
const n = En(e), r = En(e, "{2}"), i = En(e, "{3}"), o = En(e, "{4}"), s = En(e, "{6}"), a = En(e, "{1,2}"), l = En(e, "{1,3}"), u = En(e, "{1,6}"), c = En(e, "{1,9}"), d = En(e, "{2,4}"), f = En(e, "{4,6}"), h = (m) => ({ regex: RegExp(eO(m.val)), deser: ([
|
|
9653
|
+
const n = En(e), r = En(e, "{2}"), i = En(e, "{3}"), o = En(e, "{4}"), s = En(e, "{6}"), a = En(e, "{1,2}"), l = En(e, "{1,3}"), u = En(e, "{1,6}"), c = En(e, "{1,9}"), d = En(e, "{2,4}"), f = En(e, "{4,6}"), h = (m) => ({ regex: RegExp(eO(m.val)), deser: ([y]) => y, literal: !0 }), g = ((m) => {
|
|
9654
9654
|
if (t.literal)
|
|
9655
9655
|
return h(m);
|
|
9656
9656
|
switch (m.val) {
|
|
@@ -9758,7 +9758,7 @@ function tO(t, e) {
|
|
|
9758
9758
|
})(t) || {
|
|
9759
9759
|
invalidReason: Jk
|
|
9760
9760
|
};
|
|
9761
|
-
return
|
|
9761
|
+
return g.token = t, g;
|
|
9762
9762
|
}
|
|
9763
9763
|
const nO = {
|
|
9764
9764
|
year: {
|
|
@@ -10303,18 +10303,18 @@ let _e = class je {
|
|
|
10303
10303
|
);
|
|
10304
10304
|
if (f && c)
|
|
10305
10305
|
throw new Oo("Can't mix ordinal dates with month/day");
|
|
10306
|
-
const
|
|
10307
|
-
let m,
|
|
10308
|
-
|
|
10306
|
+
const g = p || o.weekday && !h;
|
|
10307
|
+
let m, y, v = y0(l, u);
|
|
10308
|
+
g ? (m = fO, y = cO, v = J0(v, s, a)) : c ? (m = hO, y = dO, v = J2(v)) : (m = q3, y = G3);
|
|
10309
10309
|
let S = !1;
|
|
10310
10310
|
for (const z of m) {
|
|
10311
10311
|
const j = o[z];
|
|
10312
|
-
le(j) ? S ? o[z] =
|
|
10312
|
+
le(j) ? S ? o[z] = y[z] : o[z] = v[z] : S = !0;
|
|
10313
10313
|
}
|
|
10314
|
-
const w =
|
|
10314
|
+
const w = g ? HC(o, s, a) : c ? _C(o) : S3(o), T = w || C3(o);
|
|
10315
10315
|
if (T)
|
|
10316
10316
|
return je.invalid(T);
|
|
10317
|
-
const C =
|
|
10317
|
+
const C = g ? oh(o, s, a) : c ? sh(o) : o, [E, A] = H0(C, u, r), $ = new je({
|
|
10318
10318
|
ts: E,
|
|
10319
10319
|
zone: r,
|
|
10320
10320
|
o: A,
|
|
@@ -12174,11 +12174,11 @@ function rT(t, e, n) {
|
|
|
12174
12174
|
function iT(t, e) {
|
|
12175
12175
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
12176
12176
|
try {
|
|
12177
|
-
var r = n.locale, i = r === void 0 ? Wd : r, o = n.backupDate, s = o === void 0 ? /* @__PURE__ */ new Date() : o, a = rT(t, e, i), l = a.year, u = a.month, c = a.day, d = a.hour, f = a.minute, h = a.second, p = a.millisecond,
|
|
12177
|
+
var r = n.locale, i = r === void 0 ? Wd : r, o = n.backupDate, s = o === void 0 ? /* @__PURE__ */ new Date() : o, a = rT(t, e, i), l = a.year, u = a.month, c = a.day, d = a.hour, f = a.minute, h = a.second, p = a.millisecond, g = a.isPM, m = a.date, y = a.offset, v = a.weekday, S = a.week;
|
|
12178
12178
|
if (m)
|
|
12179
12179
|
return m;
|
|
12180
12180
|
var w = [l, u, c, d, f, h, p];
|
|
12181
|
-
if (w[3] = XO(w[3],
|
|
12181
|
+
if (w[3] = XO(w[3], g), S !== void 0 && u === void 0 && c === void 0) {
|
|
12182
12182
|
var T = Q3(l === void 0 ? s : new Date(l, 3), {
|
|
12183
12183
|
firstDayOfWeek: i.firstDayOfWeek,
|
|
12184
12184
|
firstWeekContainsDate: i.firstWeekContainsDate
|
|
@@ -12186,7 +12186,7 @@ function iT(t, e) {
|
|
|
12186
12186
|
return new Date(T.getTime() + (S - 1) * 7 * 24 * 3600 * 1e3);
|
|
12187
12187
|
}
|
|
12188
12188
|
var C, E = eT(w, s);
|
|
12189
|
-
return
|
|
12189
|
+
return y !== void 0 ? (E[6] += y * 60 * 1e3, C = nT.apply(void 0, xh(E))) : C = tT.apply(void 0, xh(E)), v !== void 0 && C.getDay() !== v ? /* @__PURE__ */ new Date(NaN) : C;
|
|
12190
12190
|
} catch {
|
|
12191
12191
|
return /* @__PURE__ */ new Date(NaN);
|
|
12192
12192
|
}
|
|
@@ -12533,13 +12533,13 @@ function HT(t, {
|
|
|
12533
12533
|
u();
|
|
12534
12534
|
return;
|
|
12535
12535
|
}
|
|
12536
|
-
let
|
|
12536
|
+
let g;
|
|
12537
12537
|
if (n.range) {
|
|
12538
12538
|
let m = p.split(o.value);
|
|
12539
|
-
m.length !== 2 && (m = p.split(o.value.trim())),
|
|
12539
|
+
m.length !== 2 && (m = p.split(o.value.trim())), g = m.map((y) => n.parseDate(y.trim()));
|
|
12540
12540
|
} else
|
|
12541
|
-
n.multiple ?
|
|
12542
|
-
s(
|
|
12541
|
+
n.multiple ? g = p.split(o.value).map((m) => n.parseDate(m.trim())) : g = n.parseDate(p);
|
|
12542
|
+
s(g) && !a(g) ? n.onChange(g) : (h = n.onInputError) == null || h.call(n, p);
|
|
12543
12543
|
}, d = (h) => {
|
|
12544
12544
|
i.value = typeof h == "string" ? h : h.target.value;
|
|
12545
12545
|
}, f = (h) => {
|
|
@@ -12549,8 +12549,8 @@ function HT(t, {
|
|
|
12549
12549
|
p === 9 ? n.onBlur() : p === 13 && c();
|
|
12550
12550
|
};
|
|
12551
12551
|
return () => {
|
|
12552
|
-
var h, p,
|
|
12553
|
-
const m = !n.disabled && n.clearable && l.value,
|
|
12552
|
+
var h, p, g;
|
|
12553
|
+
const m = !n.disabled && n.clearable && l.value, y = vn(it({
|
|
12554
12554
|
name: "date",
|
|
12555
12555
|
type: "text",
|
|
12556
12556
|
autocomplete: "off",
|
|
@@ -12568,12 +12568,12 @@ function HT(t, {
|
|
|
12568
12568
|
return x("div", {
|
|
12569
12569
|
class: `${r}-input-wrapper`,
|
|
12570
12570
|
onClick: n.onClick
|
|
12571
|
-
}, [((h = e.input) == null ? void 0 : h.call(e,
|
|
12571
|
+
}, [((h = e.input) == null ? void 0 : h.call(e, y)) || x("input", y, null), m ? x("i", {
|
|
12572
12572
|
class: `${r}-icon-clear`,
|
|
12573
12573
|
onClick: u
|
|
12574
12574
|
}, [((p = e["icon-clear"]) == null ? void 0 : p.call(e)) || x(AT, null, null)]) : null, x("i", {
|
|
12575
12575
|
class: `${r}-icon-calendar`
|
|
12576
|
-
}, [((
|
|
12576
|
+
}, [((g = e["icon-calendar"]) == null ? void 0 : g.call(e)) || x(hy, null, null)])]);
|
|
12577
12577
|
};
|
|
12578
12578
|
}
|
|
12579
12579
|
const Qd = li()(["placeholder", "editable", "disabled", "clearable", "inputClass", "inputAttr", "range", "multiple", "separator", "renderInputText", "onInputError", "onClear"]), _T = li()(["value", "formatDate", "parseDate", "disabledDate", "onChange", "onFocus", "onBlur", "onClick", ...Qd]);
|
|
@@ -12632,22 +12632,22 @@ function jT(t, {
|
|
|
12632
12632
|
default:
|
|
12633
12633
|
return d(C, r.valueType);
|
|
12634
12634
|
}
|
|
12635
|
-
},
|
|
12635
|
+
}, g = U(() => {
|
|
12636
12636
|
const C = r.value;
|
|
12637
12637
|
return r.range ? (Array.isArray(C) ? C.slice(0, 2) : [null, null]).map(h) : r.multiple ? (Array.isArray(C) ? C : []).map(h) : h(C);
|
|
12638
12638
|
}), m = (C, E, A = !0) => {
|
|
12639
12639
|
var $, z;
|
|
12640
12640
|
const j = Array.isArray(C) ? C.map(p) : p(C);
|
|
12641
12641
|
return ($ = r["onUpdate:value"]) == null || $.call(r, j), (z = r.onChange) == null || z.call(r, j, E), A && c(), j;
|
|
12642
|
-
},
|
|
12642
|
+
}, y = _(/* @__PURE__ */ new Date());
|
|
12643
12643
|
nt(() => {
|
|
12644
|
-
l.value && (
|
|
12644
|
+
l.value && (y.value = g.value);
|
|
12645
12645
|
});
|
|
12646
12646
|
const v = (C, E) => {
|
|
12647
|
-
r.confirm ?
|
|
12647
|
+
r.confirm ? y.value = C : m(C, E, !r.multiple && (E === r.type || E === "time"));
|
|
12648
12648
|
}, S = () => {
|
|
12649
12649
|
var C;
|
|
12650
|
-
const E = m(
|
|
12650
|
+
const E = m(y.value);
|
|
12651
12651
|
(C = r.onConfirm) == null || C.call(r, E);
|
|
12652
12652
|
}, w = (C) => r.disabledDate(C) || r.disabledTime(C), T = (C) => {
|
|
12653
12653
|
var E;
|
|
@@ -12679,7 +12679,7 @@ function jT(t, {
|
|
|
12679
12679
|
popupStyle: te,
|
|
12680
12680
|
appendToBody: me
|
|
12681
12681
|
} = r, Y = {
|
|
12682
|
-
value:
|
|
12682
|
+
value: y.value,
|
|
12683
12683
|
"onUpdate:value": v,
|
|
12684
12684
|
emit: m
|
|
12685
12685
|
}, oe = e.header && x("div", {
|
|
@@ -12699,7 +12699,7 @@ function jT(t, {
|
|
|
12699
12699
|
disabled: $
|
|
12700
12700
|
}
|
|
12701
12701
|
}, [x(zT, vn(it({}, fr(r, Qd)), {
|
|
12702
|
-
value:
|
|
12702
|
+
value: g.value,
|
|
12703
12703
|
formatDate: d,
|
|
12704
12704
|
parseDate: f,
|
|
12705
12705
|
disabledDate: w,
|
|
@@ -12791,11 +12791,11 @@ function UT({
|
|
|
12791
12791
|
}) {
|
|
12792
12792
|
const d = $t(), f = pT(), h = Yd().value, {
|
|
12793
12793
|
yearFormat: p,
|
|
12794
|
-
monthBeforeYear:
|
|
12794
|
+
monthBeforeYear: g,
|
|
12795
12795
|
monthFormat: m = "MMM",
|
|
12796
|
-
formatLocale:
|
|
12797
|
-
} = h, v =
|
|
12798
|
-
let S = h.days ||
|
|
12796
|
+
formatLocale: y
|
|
12797
|
+
} = h, v = y.firstDayOfWeek || 0;
|
|
12798
|
+
let S = h.days || y.weekdaysMin;
|
|
12799
12799
|
S = S.concat(S).slice(v, v + 7);
|
|
12800
12800
|
const w = t.getFullYear(), T = t.getMonth(), C = qd(BT({
|
|
12801
12801
|
firstDayOfWeek: v,
|
|
@@ -12832,7 +12832,7 @@ function UT({
|
|
|
12832
12832
|
calendar: t,
|
|
12833
12833
|
onUpdateCalendar: l
|
|
12834
12834
|
}, {
|
|
12835
|
-
default: () => [
|
|
12835
|
+
default: () => [g ? [me, te] : [te, me]]
|
|
12836
12836
|
}), x("div", {
|
|
12837
12837
|
class: `${d}-calendar-content`
|
|
12838
12838
|
}, [x("table", {
|
|
@@ -12948,58 +12948,58 @@ function YT(t) {
|
|
|
12948
12948
|
titleFormat: "YYYY-MM-DD"
|
|
12949
12949
|
}), n = U(() => (Array.isArray(e.value) ? e.value : [e.value]).filter(mr).map((v) => e.type === "year" ? FT(v) : e.type === "month" ? Rh(v) : ri(v))), r = _(/* @__PURE__ */ new Date());
|
|
12950
12950
|
nt(() => {
|
|
12951
|
-
let
|
|
12952
|
-
if (!mr(
|
|
12951
|
+
let y = e.calendar;
|
|
12952
|
+
if (!mr(y)) {
|
|
12953
12953
|
const {
|
|
12954
12954
|
length: v
|
|
12955
12955
|
} = n.value;
|
|
12956
|
-
|
|
12956
|
+
y = c2(v > 0 ? n.value[v - 1] : e.defaultValue);
|
|
12957
12957
|
}
|
|
12958
|
-
r.value = Rh(
|
|
12958
|
+
r.value = Rh(y);
|
|
12959
12959
|
});
|
|
12960
|
-
const i = (
|
|
12960
|
+
const i = (y) => {
|
|
12961
12961
|
var v;
|
|
12962
|
-
r.value =
|
|
12962
|
+
r.value = y, (v = e.onCalendarChange) == null || v.call(e, y);
|
|
12963
12963
|
}, o = _("date");
|
|
12964
12964
|
nt(() => {
|
|
12965
|
-
const
|
|
12966
|
-
o.value = v !== -1 ?
|
|
12965
|
+
const y = ["date", "month", "year"], v = Math.max(y.indexOf(e.type), y.indexOf(e.defaultPanel));
|
|
12966
|
+
o.value = v !== -1 ? y[v] : "date";
|
|
12967
12967
|
});
|
|
12968
|
-
const s = (
|
|
12968
|
+
const s = (y) => {
|
|
12969
12969
|
var v;
|
|
12970
12970
|
const S = o.value;
|
|
12971
|
-
o.value =
|
|
12972
|
-
}, a = (
|
|
12971
|
+
o.value = y, (v = e.onPanelChange) == null || v.call(e, y, S);
|
|
12972
|
+
}, a = (y) => e.disabledDate(new Date(y), n.value), l = (y, v) => {
|
|
12973
12973
|
var S, w, T;
|
|
12974
|
-
if (!a(
|
|
12975
|
-
if ((S = e.onPick) == null || S.call(e,
|
|
12976
|
-
const C = n.value.filter((E) => E.getTime() !==
|
|
12977
|
-
C.length === n.value.length && C.push(
|
|
12974
|
+
if (!a(y))
|
|
12975
|
+
if ((S = e.onPick) == null || S.call(e, y), e.multiple === !0) {
|
|
12976
|
+
const C = n.value.filter((E) => E.getTime() !== y.getTime());
|
|
12977
|
+
C.length === n.value.length && C.push(y), (w = e["onUpdate:value"]) == null || w.call(e, C, v);
|
|
12978
12978
|
} else
|
|
12979
|
-
(T = e["onUpdate:value"]) == null || T.call(e,
|
|
12980
|
-
}, u = (
|
|
12981
|
-
l(
|
|
12982
|
-
}, c = (
|
|
12979
|
+
(T = e["onUpdate:value"]) == null || T.call(e, y, v);
|
|
12980
|
+
}, u = (y) => {
|
|
12981
|
+
l(y, e.type === "week" ? "week" : "date");
|
|
12982
|
+
}, c = (y) => {
|
|
12983
12983
|
if (e.type === "year")
|
|
12984
|
-
l(
|
|
12985
|
-
else if (i(
|
|
12986
|
-
const v = To(n.value[0],
|
|
12984
|
+
l(y, "year");
|
|
12985
|
+
else if (i(y), s("month"), e.partialUpdate && n.value.length === 1) {
|
|
12986
|
+
const v = To(n.value[0], y.getFullYear());
|
|
12987
12987
|
l(v, "year");
|
|
12988
12988
|
}
|
|
12989
|
-
}, d = (
|
|
12989
|
+
}, d = (y) => {
|
|
12990
12990
|
if (e.type === "month")
|
|
12991
|
-
l(
|
|
12992
|
-
else if (i(
|
|
12993
|
-
const v = tl(To(n.value[0],
|
|
12991
|
+
l(y, "month");
|
|
12992
|
+
else if (i(y), s("date"), e.partialUpdate && n.value.length === 1) {
|
|
12993
|
+
const v = tl(To(n.value[0], y.getFullYear()), y.getMonth());
|
|
12994
12994
|
l(v, "month");
|
|
12995
12995
|
}
|
|
12996
|
-
}, f = (
|
|
12997
|
-
const v =
|
|
12998
|
-
return
|
|
12999
|
-
}, p = (
|
|
12996
|
+
}, f = (y, v = []) => (a(y) ? v.push("disabled") : n.value.some((S) => S.getTime() === y.getTime()) && v.push("active"), v.concat(e.getClasses(y, n.value, v.join(" ")))), h = (y) => {
|
|
12997
|
+
const v = y.getMonth() !== r.value.getMonth(), S = [];
|
|
12998
|
+
return y.getTime() === (/* @__PURE__ */ new Date()).setHours(0, 0, 0, 0) && S.push("today"), v && S.push("not-current-month"), f(y, S);
|
|
12999
|
+
}, p = (y) => e.type !== "month" ? r.value.getMonth() === y.getMonth() ? "active" : "" : f(y), g = (y) => e.type !== "year" ? r.value.getFullYear() === y.getFullYear() ? "active" : "" : f(y), m = (y) => {
|
|
13000
13000
|
if (e.type !== "week")
|
|
13001
13001
|
return !1;
|
|
13002
|
-
const v =
|
|
13002
|
+
const v = y[0].getTime(), S = y[6].getTime();
|
|
13003
13003
|
return n.value.some((w) => {
|
|
13004
13004
|
const T = w.getTime();
|
|
13005
13005
|
return T >= v && T <= S;
|
|
@@ -13007,7 +13007,7 @@ function YT(t) {
|
|
|
13007
13007
|
};
|
|
13008
13008
|
return () => o.value === "year" ? x(qT, {
|
|
13009
13009
|
calendar: r.value,
|
|
13010
|
-
getCellClasses:
|
|
13010
|
+
getCellClasses: g,
|
|
13011
13011
|
getYearPanel: e.getYearPanel,
|
|
13012
13012
|
onSelect: c,
|
|
13013
13013
|
onUpdateCalendar: i
|
|
@@ -13044,23 +13044,23 @@ function JT(t) {
|
|
|
13044
13044
|
type: "date"
|
|
13045
13045
|
}), n = $t(), r = U(() => {
|
|
13046
13046
|
let m = Array.isArray(e.defaultValue) ? e.defaultValue : [e.defaultValue, e.defaultValue];
|
|
13047
|
-
return m = m.map((
|
|
13047
|
+
return m = m.map((y) => ri(y)), Ni(m) ? m : [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()].map((y) => ri(y));
|
|
13048
13048
|
}), i = _([/* @__PURE__ */ new Date(NaN), /* @__PURE__ */ new Date(NaN)]);
|
|
13049
13049
|
nt(() => {
|
|
13050
13050
|
Ni(e.value) && (i.value = e.value);
|
|
13051
13051
|
});
|
|
13052
|
-
const o = (m,
|
|
13052
|
+
const o = (m, y) => {
|
|
13053
13053
|
var v;
|
|
13054
13054
|
const [S, w] = i.value;
|
|
13055
|
-
mr(S) && !mr(w) ? (S.getTime() > m.getTime() ? i.value = [m, S] : i.value = [S, m], (v = e["onUpdate:value"]) == null || v.call(e, i.value,
|
|
13056
|
-
}, s = _([/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()]), a = U(() => Ni(e.calendar) ? e.calendar : s.value), l = U(() => e.type === "year" ? 10 * 12 : e.type === "month" ? 1 * 12 : 1), u = (m,
|
|
13055
|
+
mr(S) && !mr(w) ? (S.getTime() > m.getTime() ? i.value = [m, S] : i.value = [S, m], (v = e["onUpdate:value"]) == null || v.call(e, i.value, y)) : i.value = [m, /* @__PURE__ */ new Date(NaN)];
|
|
13056
|
+
}, s = _([/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()]), a = U(() => Ni(e.calendar) ? e.calendar : s.value), l = U(() => e.type === "year" ? 10 * 12 : e.type === "month" ? 1 * 12 : 1), u = (m, y) => {
|
|
13057
13057
|
var v;
|
|
13058
13058
|
const S = VT(m[0], m[1]), w = l.value - S;
|
|
13059
13059
|
if (w > 0) {
|
|
13060
|
-
const T =
|
|
13060
|
+
const T = y === 1 ? 0 : 1;
|
|
13061
13061
|
m[T] = tl(m[T], (C) => C + (T === 0 ? -w : w));
|
|
13062
13062
|
}
|
|
13063
|
-
s.value = m, (v = e.onCalendarChange) == null || v.call(e, m,
|
|
13063
|
+
s.value = m, (v = e.onCalendarChange) == null || v.call(e, m, y);
|
|
13064
13064
|
}, c = (m) => {
|
|
13065
13065
|
u([m, a.value[1]], 0);
|
|
13066
13066
|
}, d = (m) => {
|
|
@@ -13070,17 +13070,17 @@ function JT(t) {
|
|
|
13070
13070
|
const m = Ni(e.value) ? e.value : r.value;
|
|
13071
13071
|
u(m.slice(0, 2));
|
|
13072
13072
|
});
|
|
13073
|
-
const f = _(null), h = (m) => f.value = m, p = () => f.value = null,
|
|
13074
|
-
const S = e.getClasses ? e.getClasses(m,
|
|
13075
|
-
return /disabled|active/.test(v) ? w : (
|
|
13073
|
+
const f = _(null), h = (m) => f.value = m, p = () => f.value = null, g = (m, y, v) => {
|
|
13074
|
+
const S = e.getClasses ? e.getClasses(m, y, v) : [], w = Array.isArray(S) ? S : [S];
|
|
13075
|
+
return /disabled|active/.test(v) ? w : (y.length === 2 && Nh(m, y) && w.push("in-range"), y.length === 1 && f.value && Nh(m, [y[0], f.value]) ? w.concat("hover-in-range") : w);
|
|
13076
13076
|
};
|
|
13077
13077
|
return () => {
|
|
13078
|
-
const m = a.value.map((
|
|
13078
|
+
const m = a.value.map((y, v) => {
|
|
13079
13079
|
const S = vn(it({}, e), {
|
|
13080
|
-
calendar:
|
|
13080
|
+
calendar: y,
|
|
13081
13081
|
value: i.value,
|
|
13082
13082
|
defaultValue: r.value[v],
|
|
13083
|
-
getClasses:
|
|
13083
|
+
getClasses: g,
|
|
13084
13084
|
partialUpdate: !1,
|
|
13085
13085
|
multiple: !1,
|
|
13086
13086
|
"onUpdate:value": o,
|
|
@@ -13105,32 +13105,32 @@ const py = ce({
|
|
|
13105
13105
|
Je(() => {
|
|
13106
13106
|
if (!r.value)
|
|
13107
13107
|
return;
|
|
13108
|
-
const p = r.value,
|
|
13109
|
-
i.value =
|
|
13108
|
+
const p = r.value, g = p.clientHeight * 100 / p.scrollHeight;
|
|
13109
|
+
i.value = g < 100 ? `${g}%` : "";
|
|
13110
13110
|
});
|
|
13111
13111
|
const a = yT(), l = (p) => {
|
|
13112
|
-
const
|
|
13112
|
+
const g = p.currentTarget, {
|
|
13113
13113
|
scrollHeight: m,
|
|
13114
|
-
scrollTop:
|
|
13115
|
-
} =
|
|
13116
|
-
o.value = `${
|
|
13114
|
+
scrollTop: y
|
|
13115
|
+
} = g;
|
|
13116
|
+
o.value = `${y * 100 / m}%`;
|
|
13117
13117
|
};
|
|
13118
13118
|
let u = !1, c = 0;
|
|
13119
13119
|
const d = (p) => {
|
|
13120
13120
|
p.stopImmediatePropagation();
|
|
13121
|
-
const
|
|
13121
|
+
const g = p.currentTarget, {
|
|
13122
13122
|
offsetTop: m
|
|
13123
|
-
} =
|
|
13123
|
+
} = g;
|
|
13124
13124
|
u = !0, c = p.clientY - m;
|
|
13125
13125
|
}, f = (p) => {
|
|
13126
13126
|
if (!u || !r.value)
|
|
13127
13127
|
return;
|
|
13128
13128
|
const {
|
|
13129
|
-
clientY:
|
|
13129
|
+
clientY: g
|
|
13130
13130
|
} = p, {
|
|
13131
13131
|
scrollHeight: m,
|
|
13132
|
-
clientHeight:
|
|
13133
|
-
} = r.value, S = (
|
|
13132
|
+
clientHeight: y
|
|
13133
|
+
} = r.value, S = (g - c) * m / y;
|
|
13134
13134
|
r.value.scrollTop = S;
|
|
13135
13135
|
}, h = () => {
|
|
13136
13136
|
u = !1;
|
|
@@ -13291,10 +13291,10 @@ function nE({
|
|
|
13291
13291
|
if (o && s && a) {
|
|
13292
13292
|
const u = o.minutes + o.hours * 60, c = s.minutes + s.hours * 60, d = a.minutes + a.hours * 60, f = Math.floor((c - u) / d);
|
|
13293
13293
|
for (let h = 0; h <= f; h++) {
|
|
13294
|
-
const p = u + h * d,
|
|
13295
|
-
|
|
13296
|
-
value:
|
|
13297
|
-
text: r(
|
|
13294
|
+
const p = u + h * d, g = Math.floor(p / 60), m = p % 60, y = new Date(t);
|
|
13295
|
+
y.setHours(g, m, 0), i.push({
|
|
13296
|
+
value: y,
|
|
13297
|
+
text: r(y, l)
|
|
13298
13298
|
});
|
|
13299
13299
|
}
|
|
13300
13300
|
}
|
|
@@ -13324,44 +13324,44 @@ function rE(t) {
|
|
|
13324
13324
|
timeTitleFormat: "YYYY-MM-DD",
|
|
13325
13325
|
disabledTime: () => !1,
|
|
13326
13326
|
scrollDuration: 100
|
|
13327
|
-
}), n = $t(), r = Yd(), i = (
|
|
13327
|
+
}), n = $t(), r = Yd(), i = (g, m) => Ud(g, m, {
|
|
13328
13328
|
locale: r.value.formatLocale
|
|
13329
13329
|
}), o = _(/* @__PURE__ */ new Date());
|
|
13330
13330
|
nt(() => {
|
|
13331
13331
|
o.value = c2(e.value, e.defaultValue);
|
|
13332
13332
|
});
|
|
13333
|
-
const s = (
|
|
13334
|
-
const m = new Date(
|
|
13333
|
+
const s = (g) => Array.isArray(g) ? g.every((m) => e.disabledTime(new Date(m))) : e.disabledTime(new Date(g)), a = (g) => {
|
|
13334
|
+
const m = new Date(g);
|
|
13335
13335
|
return s([m.getTime(), m.setMinutes(0, 0, 0), m.setMinutes(59, 59, 999)]);
|
|
13336
|
-
}, l = (
|
|
13337
|
-
const m = new Date(
|
|
13336
|
+
}, l = (g) => {
|
|
13337
|
+
const m = new Date(g);
|
|
13338
13338
|
return s([m.getTime(), m.setSeconds(0, 0), m.setSeconds(59, 999)]);
|
|
13339
|
-
}, u = (
|
|
13340
|
-
const m = new Date(
|
|
13341
|
-
return s([m.getTime(), m.setHours(
|
|
13342
|
-
}, c = (
|
|
13343
|
-
var
|
|
13344
|
-
if (!c(
|
|
13345
|
-
const v = new Date(
|
|
13346
|
-
o.value = v, s(v) || (
|
|
13347
|
-
}
|
|
13348
|
-
}, f = (
|
|
13339
|
+
}, u = (g) => {
|
|
13340
|
+
const m = new Date(g), y = m.getHours() < 12 ? 0 : 12, v = y + 11;
|
|
13341
|
+
return s([m.getTime(), m.setHours(y, 0, 0, 0), m.setHours(v, 59, 59, 999)]);
|
|
13342
|
+
}, c = (g, m) => m === "hour" ? a(g) : m === "minute" ? l(g) : m === "ampm" ? u(g) : s(g), d = (g, m) => {
|
|
13343
|
+
var y;
|
|
13344
|
+
if (!c(g, m)) {
|
|
13345
|
+
const v = new Date(g);
|
|
13346
|
+
o.value = v, s(v) || (y = e["onUpdate:value"]) == null || y.call(e, v, m);
|
|
13347
|
+
}
|
|
13348
|
+
}, f = (g, m) => c(g, m) ? "disabled" : g.getTime() === o.value.getTime() ? "active" : "", h = _(), p = (g) => {
|
|
13349
13349
|
if (!h.value)
|
|
13350
13350
|
return;
|
|
13351
13351
|
const m = h.value.querySelectorAll(".active");
|
|
13352
|
-
for (let
|
|
13353
|
-
const v = m[
|
|
13352
|
+
for (let y = 0; y < m.length; y++) {
|
|
13353
|
+
const v = m[y], S = Jd(v, h.value);
|
|
13354
13354
|
if (S) {
|
|
13355
13355
|
const w = v.offsetTop;
|
|
13356
|
-
my(S, w,
|
|
13356
|
+
my(S, w, g);
|
|
13357
13357
|
}
|
|
13358
13358
|
}
|
|
13359
13359
|
};
|
|
13360
13360
|
return Je(() => p(0)), Qe(o, () => p(e.scrollDuration), {
|
|
13361
13361
|
flush: "post"
|
|
13362
13362
|
}), () => {
|
|
13363
|
-
let
|
|
13364
|
-
return e.timePickerOptions ?
|
|
13363
|
+
let g;
|
|
13364
|
+
return e.timePickerOptions ? g = x(eE, {
|
|
13365
13365
|
onSelect: d,
|
|
13366
13366
|
getClasses: f,
|
|
13367
13367
|
options: nE({
|
|
@@ -13370,7 +13370,7 @@ function rE(t) {
|
|
|
13370
13370
|
option: e.timePickerOptions,
|
|
13371
13371
|
formatDate: i
|
|
13372
13372
|
})
|
|
13373
|
-
}, null) :
|
|
13373
|
+
}, null) : g = x(QT, {
|
|
13374
13374
|
options: tE(o.value, e),
|
|
13375
13375
|
onSelect: d,
|
|
13376
13376
|
getClasses: f
|
|
@@ -13385,7 +13385,7 @@ function rE(t) {
|
|
|
13385
13385
|
onClick: e.onClickTitle
|
|
13386
13386
|
}, [i(o.value, e.timeTitleFormat)])]), x("div", {
|
|
13387
13387
|
class: `${n}-time-content`
|
|
13388
|
-
}, [
|
|
13388
|
+
}, [g])]);
|
|
13389
13389
|
};
|
|
13390
13390
|
}
|
|
13391
13391
|
const h2 = li()(["value", "defaultValue", "format", "timeTitleFormat", "showTimeHeader", "disabledTime", "timePickerOptions", "hourOptions", "minuteOptions", "secondOptions", "hourStep", "minuteStep", "secondStep", "showHour", "showMinute", "showSecond", "use12h", "scrollDuration", "onClickTitle", "onUpdate:value"]);
|
|
@@ -13904,25 +13904,29 @@ const jj = /* @__PURE__ */ Ee(IE, [["render", NE], ["__scopeId", "data-v-f2d32e2
|
|
|
13904
13904
|
const l = [];
|
|
13905
13905
|
n.forEach((c) => {
|
|
13906
13906
|
let d = c.selected;
|
|
13907
|
+
if (!d)
|
|
13908
|
+
return;
|
|
13907
13909
|
const f = c.key;
|
|
13908
|
-
Array.isArray(d) || (d = [d])
|
|
13909
|
-
|
|
13910
|
-
|
|
13911
|
-
|
|
13912
|
-
|
|
13910
|
+
Array.isArray(d) || (d = [d]);
|
|
13911
|
+
let h = !1;
|
|
13912
|
+
d.forEach((p) => {
|
|
13913
|
+
const g = p && p.key ? p.key : f, m = p && g;
|
|
13914
|
+
let y, v = "", S = null;
|
|
13915
|
+
m && (y = g.split(/\./), v = y[0], S = y[1] || null, // If only a key, check the value of that key.
|
|
13916
|
+
!S && // If the selected value is a string,
|
|
13913
13917
|
// compare it to the row value.
|
|
13914
|
-
(typeof
|
|
13918
|
+
(typeof p.value != "boolean" && a[v] !== p.value || // This checks if there's an object when
|
|
13915
13919
|
// the selected value is a boolean.
|
|
13916
|
-
typeof
|
|
13917
|
-
typeof
|
|
13920
|
+
typeof p.value == "boolean" && typeof a[v] != "boolean" && !!a[v] !== p.value || // This checks a boolean against a boolean
|
|
13921
|
+
typeof p.value == "boolean" && typeof a[v] == "boolean" && a[v] !== p.value) || // If there is a key/attribute combo, need to
|
|
13918
13922
|
// dig down to check the attribute value.
|
|
13919
|
-
|
|
13923
|
+
S && // If the selected value is a string,
|
|
13920
13924
|
// compare it to the row value.
|
|
13921
|
-
(typeof
|
|
13925
|
+
(typeof p.value != "boolean" && a[v][S] !== p.value || // This checks if there's an object when
|
|
13922
13926
|
// the selected value is a boolean.
|
|
13923
|
-
typeof
|
|
13924
|
-
typeof
|
|
13925
|
-
});
|
|
13927
|
+
typeof p.value == "boolean" && typeof a[v][S] != "boolean" && !!a[v][S] !== p.value || // This checks a boolean against a boolean
|
|
13928
|
+
typeof p.value == "boolean" && typeof a[v][S] == "boolean" && a[v][S] !== p.value) || (h = !0));
|
|
13929
|
+
}), l.push(h);
|
|
13926
13930
|
});
|
|
13927
13931
|
const u = l.filter((c) => !!c).length;
|
|
13928
13932
|
if (l.length > 0 && u !== l.length)
|
|
@@ -14415,22 +14419,22 @@ function fM(t, e) {
|
|
|
14415
14419
|
e.count || (e.count = t), e.n || (e.n = t);
|
|
14416
14420
|
}
|
|
14417
14421
|
function hM(t = {}) {
|
|
14418
|
-
const e = t.locale, n = dM(t), r = Te(t.pluralRules) && ee(e) && He(t.pluralRules[e]) ? t.pluralRules[e] : zh, i = Te(t.pluralRules) && ee(e) && He(t.pluralRules[e]) ? zh : void 0, o = (
|
|
14422
|
+
const e = t.locale, n = dM(t), r = Te(t.pluralRules) && ee(e) && He(t.pluralRules[e]) ? t.pluralRules[e] : zh, i = Te(t.pluralRules) && ee(e) && He(t.pluralRules[e]) ? zh : void 0, o = (y) => y[r(n, y.length, i)], s = t.list || [], a = (y) => s[y], l = t.named || {};
|
|
14419
14423
|
Ct(t.pluralIndex) && fM(n, l);
|
|
14420
|
-
const u = (
|
|
14421
|
-
function c(
|
|
14422
|
-
const v = He(t.messages) ? t.messages(
|
|
14423
|
-
return v || (t.parent ? t.parent.message(
|
|
14424
|
+
const u = (y) => l[y];
|
|
14425
|
+
function c(y) {
|
|
14426
|
+
const v = He(t.messages) ? t.messages(y) : Te(t.messages) ? t.messages[y] : !1;
|
|
14427
|
+
return v || (t.parent ? t.parent.message(y) : aM);
|
|
14424
14428
|
}
|
|
14425
|
-
const d = (
|
|
14429
|
+
const d = (y) => t.modifiers ? t.modifiers[y] : sM, f = ke(t.processor) && He(t.processor.normalize) ? t.processor.normalize : uM, h = ke(t.processor) && He(t.processor.interpolate) ? t.processor.interpolate : cM, p = ke(t.processor) && ee(t.processor.type) ? t.processor.type : lM, m = {
|
|
14426
14430
|
list: a,
|
|
14427
14431
|
named: u,
|
|
14428
14432
|
plural: o,
|
|
14429
|
-
linked: (
|
|
14433
|
+
linked: (y, ...v) => {
|
|
14430
14434
|
const [S, w] = v;
|
|
14431
14435
|
let T = "text", C = "";
|
|
14432
14436
|
v.length === 1 ? Te(S) ? (C = S.modifier || C, T = S.type || T) : ee(S) && (C = S || C) : v.length === 2 && (ee(S) && (C = S || C), ee(w) && (T = w || T));
|
|
14433
|
-
const E = c(
|
|
14437
|
+
const E = c(y)(m), A = (
|
|
14434
14438
|
// The message in vnode resolved with linked are returned as an array by processor.nomalize
|
|
14435
14439
|
T === "vnode" && tt(E) && C ? E[0] : E
|
|
14436
14440
|
);
|
|
@@ -14599,7 +14603,7 @@ const Uh = (t) => {
|
|
|
14599
14603
|
}, IM = () => Py;
|
|
14600
14604
|
let Kh = 0;
|
|
14601
14605
|
function PM(t = {}) {
|
|
14602
|
-
const e = He(t.onWarn) ? t.onWarn : is, n = ee(t.version) ? t.version : kM, r = ee(t.locale) || He(t.locale) ? t.locale : ol, i = He(r) ? ol : r, o = tt(t.fallbackLocale) || ke(t.fallbackLocale) || ee(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : i, s = ke(t.messages) ? t.messages : { [i]: {} }, a = ke(t.datetimeFormats) ? t.datetimeFormats : { [i]: {} }, l = ke(t.numberFormats) ? t.numberFormats : { [i]: {} }, u = Tt({}, t.modifiers || {}, OM()), c = t.pluralRules || {}, d = He(t.missing) ? t.missing : null, f = qe(t.missingWarn) || rl(t.missingWarn) ? t.missingWarn : !0, h = qe(t.fallbackWarn) || rl(t.fallbackWarn) ? t.fallbackWarn : !0, p = !!t.fallbackFormat,
|
|
14606
|
+
const e = He(t.onWarn) ? t.onWarn : is, n = ee(t.version) ? t.version : kM, r = ee(t.locale) || He(t.locale) ? t.locale : ol, i = He(r) ? ol : r, o = tt(t.fallbackLocale) || ke(t.fallbackLocale) || ee(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : i, s = ke(t.messages) ? t.messages : { [i]: {} }, a = ke(t.datetimeFormats) ? t.datetimeFormats : { [i]: {} }, l = ke(t.numberFormats) ? t.numberFormats : { [i]: {} }, u = Tt({}, t.modifiers || {}, OM()), c = t.pluralRules || {}, d = He(t.missing) ? t.missing : null, f = qe(t.missingWarn) || rl(t.missingWarn) ? t.missingWarn : !0, h = qe(t.fallbackWarn) || rl(t.fallbackWarn) ? t.fallbackWarn : !0, p = !!t.fallbackFormat, g = !!t.unresolving, m = He(t.postTranslation) ? t.postTranslation : null, y = ke(t.processor) ? t.processor : null, v = qe(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, S = !!t.escapeParameter, w = He(t.messageCompiler) ? t.messageCompiler : TM;
|
|
14603
14607
|
process.env.NODE_ENV !== "production" && He(t.messageCompiler) && WE(Gi(It.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER));
|
|
14604
14608
|
const T = He(t.messageResolver) ? t.messageResolver : xy || iM, C = He(t.localeFallbacker) ? t.localeFallbacker : Ay || wM, E = Te(t.fallbackContext) ? t.fallbackContext : void 0, A = t, $ = Te(A.__datetimeFormatters) ? A.__datetimeFormatters : /* @__PURE__ */ new Map(), z = Te(A.__numberFormatters) ? A.__numberFormatters : /* @__PURE__ */ new Map(), j = Te(A.__meta) ? A.__meta : {};
|
|
14605
14609
|
Kh++;
|
|
@@ -14615,9 +14619,9 @@ function PM(t = {}) {
|
|
|
14615
14619
|
missingWarn: f,
|
|
14616
14620
|
fallbackWarn: h,
|
|
14617
14621
|
fallbackFormat: p,
|
|
14618
|
-
unresolving:
|
|
14622
|
+
unresolving: g,
|
|
14619
14623
|
postTranslation: m,
|
|
14620
|
-
processor:
|
|
14624
|
+
processor: y,
|
|
14621
14625
|
warnHtmlMessage: v,
|
|
14622
14626
|
escapeParameter: S,
|
|
14623
14627
|
messageCompiler: w,
|
|
@@ -14658,14 +14662,14 @@ function ps(t, e, n) {
|
|
|
14658
14662
|
}
|
|
14659
14663
|
const Vo = (t) => Te(t) && (t.t === 0 || t.type === 0) && ("b" in t || "body" in t), Gh = () => "", fn = (t) => He(t);
|
|
14660
14664
|
function qh(t, ...e) {
|
|
14661
|
-
const { fallbackFormat: n, postTranslation: r, unresolving: i, messageCompiler: o, fallbackLocale: s, messages: a } = t, [l, u] = pc(...e), c = qe(u.missingWarn) ? u.missingWarn : t.missingWarn, d = qe(u.fallbackWarn) ? u.fallbackWarn : t.fallbackWarn, f = qe(u.escapeParameter) ? u.escapeParameter : t.escapeParameter, h = !!u.resolvedMessage, p = ee(u.default) || qe(u.default) ? qe(u.default) ? o ? l : () => l : u.default : n ? o ? l : () => l : "",
|
|
14665
|
+
const { fallbackFormat: n, postTranslation: r, unresolving: i, messageCompiler: o, fallbackLocale: s, messages: a } = t, [l, u] = pc(...e), c = qe(u.missingWarn) ? u.missingWarn : t.missingWarn, d = qe(u.fallbackWarn) ? u.fallbackWarn : t.fallbackWarn, f = qe(u.escapeParameter) ? u.escapeParameter : t.escapeParameter, h = !!u.resolvedMessage, p = ee(u.default) || qe(u.default) ? qe(u.default) ? o ? l : () => l : u.default : n ? o ? l : () => l : "", g = n || p !== "", m = af(t, u);
|
|
14662
14666
|
f && DM(u);
|
|
14663
|
-
let [
|
|
14667
|
+
let [y, v, S] = h ? [
|
|
14664
14668
|
l,
|
|
14665
14669
|
m,
|
|
14666
14670
|
a[m] || {}
|
|
14667
|
-
] : Ry(t, l, m, s, d, c), w =
|
|
14668
|
-
if (!h && !(ee(w) || Vo(w) || fn(w)) &&
|
|
14671
|
+
] : Ry(t, l, m, s, d, c), w = y, T = l;
|
|
14672
|
+
if (!h && !(ee(w) || Vo(w) || fn(w)) && g && (w = p, T = w), !h && (!(ee(w) || Vo(w) || fn(w)) || !ee(v)))
|
|
14669
14673
|
return i ? m2 : l;
|
|
14670
14674
|
if (process.env.NODE_ENV !== "production" && ee(w) && t.messageCompiler == null)
|
|
14671
14675
|
return is(`The message format compilation is not supported in this build. Because message compiler isn't included. You need to pre-compilation all message format. So translate function return '${l}'.`), l;
|
|
@@ -14695,10 +14699,10 @@ function DM(t) {
|
|
|
14695
14699
|
}
|
|
14696
14700
|
function Ry(t, e, n, r, i, o) {
|
|
14697
14701
|
const { messages: s, onWarn: a, messageResolver: l, localeFallbacker: u } = t, c = u(t, r, n);
|
|
14698
|
-
let d = {}, f, h = null, p = n,
|
|
14702
|
+
let d = {}, f, h = null, p = n, g = null;
|
|
14699
14703
|
const m = "translate";
|
|
14700
|
-
for (let
|
|
14701
|
-
if (f =
|
|
14704
|
+
for (let y = 0; y < c.length; y++) {
|
|
14705
|
+
if (f = g = c[y], process.env.NODE_ENV !== "production" && n !== f && g2(i, e) && a(Gi(It.FALLBACK_TO_TRANSLATE, {
|
|
14702
14706
|
key: e,
|
|
14703
14707
|
target: f
|
|
14704
14708
|
})), process.env.NODE_ENV !== "production" && n !== f) {
|
|
@@ -14707,7 +14711,7 @@ function Ry(t, e, n, r, i, o) {
|
|
|
14707
14711
|
type: m,
|
|
14708
14712
|
key: e,
|
|
14709
14713
|
from: p,
|
|
14710
|
-
to:
|
|
14714
|
+
to: g,
|
|
14711
14715
|
groupId: `${m}:${e}`
|
|
14712
14716
|
});
|
|
14713
14717
|
}
|
|
@@ -14733,7 +14737,7 @@ function Ry(t, e, n, r, i, o) {
|
|
|
14733
14737
|
o,
|
|
14734
14738
|
m
|
|
14735
14739
|
);
|
|
14736
|
-
T !== e && (h = T), p =
|
|
14740
|
+
T !== e && (h = T), p = g;
|
|
14737
14741
|
}
|
|
14738
14742
|
return [h, f, d];
|
|
14739
14743
|
}
|
|
@@ -14819,15 +14823,15 @@ function $M(t, e, n, r) {
|
|
|
14819
14823
|
messages: (h) => {
|
|
14820
14824
|
let p = s(n, h);
|
|
14821
14825
|
if (p == null && c) {
|
|
14822
|
-
const [, ,
|
|
14823
|
-
p = s(
|
|
14826
|
+
const [, , g] = Ry(c, h, e, a, l, u);
|
|
14827
|
+
p = s(g, h);
|
|
14824
14828
|
}
|
|
14825
14829
|
if (ee(p) || Vo(p)) {
|
|
14826
|
-
let
|
|
14827
|
-
const
|
|
14828
|
-
|
|
14830
|
+
let g = !1;
|
|
14831
|
+
const y = Ly(t, h, e, p, h, () => {
|
|
14832
|
+
g = !0;
|
|
14829
14833
|
});
|
|
14830
|
-
return
|
|
14834
|
+
return g ? Gh : y;
|
|
14831
14835
|
} else
|
|
14832
14836
|
return fn(p) ? p : Gh;
|
|
14833
14837
|
}
|
|
@@ -14842,21 +14846,21 @@ function Jh(t, ...e) {
|
|
|
14842
14846
|
const { datetimeFormats: n, unresolving: r, fallbackLocale: i, onWarn: o, localeFallbacker: s } = t, { __datetimeFormatters: a } = t;
|
|
14843
14847
|
if (process.env.NODE_ENV !== "production" && !Ny.dateTimeFormat)
|
|
14844
14848
|
return o(Gi(It.CANNOT_FORMAT_DATE)), sl;
|
|
14845
|
-
const [l, u, c, d] = mc(...e), f = qe(c.missingWarn) ? c.missingWarn : t.missingWarn, h = qe(c.fallbackWarn) ? c.fallbackWarn : t.fallbackWarn, p = !!c.part,
|
|
14849
|
+
const [l, u, c, d] = mc(...e), f = qe(c.missingWarn) ? c.missingWarn : t.missingWarn, h = qe(c.fallbackWarn) ? c.fallbackWarn : t.fallbackWarn, p = !!c.part, g = af(t, c), m = s(
|
|
14846
14850
|
t,
|
|
14847
14851
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
14848
14852
|
i,
|
|
14849
|
-
|
|
14853
|
+
g
|
|
14850
14854
|
);
|
|
14851
14855
|
if (!ee(l) || l === "")
|
|
14852
|
-
return new Intl.DateTimeFormat(
|
|
14853
|
-
let
|
|
14856
|
+
return new Intl.DateTimeFormat(g, d).format(u);
|
|
14857
|
+
let y = {}, v, S = null, w = g, T = null;
|
|
14854
14858
|
const C = "datetime format";
|
|
14855
14859
|
for (let $ = 0; $ < m.length; $++) {
|
|
14856
|
-
if (v = T = m[$], process.env.NODE_ENV !== "production" &&
|
|
14860
|
+
if (v = T = m[$], process.env.NODE_ENV !== "production" && g !== v && g2(h, l) && o(Gi(It.FALLBACK_TO_DATE_FORMAT, {
|
|
14857
14861
|
key: l,
|
|
14858
14862
|
target: v
|
|
14859
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
14863
|
+
})), process.env.NODE_ENV !== "production" && g !== v) {
|
|
14860
14864
|
const z = t.__v_emitter;
|
|
14861
14865
|
z && z.emit("fallback", {
|
|
14862
14866
|
type: C,
|
|
@@ -14866,7 +14870,7 @@ function Jh(t, ...e) {
|
|
|
14866
14870
|
groupId: `${C}:${l}`
|
|
14867
14871
|
});
|
|
14868
14872
|
}
|
|
14869
|
-
if (
|
|
14873
|
+
if (y = n[v] || {}, S = y[l], ke(S))
|
|
14870
14874
|
break;
|
|
14871
14875
|
lf(t, l, v, f, C), w = T;
|
|
14872
14876
|
}
|
|
@@ -14936,21 +14940,21 @@ function Xh(t, ...e) {
|
|
|
14936
14940
|
const { numberFormats: n, unresolving: r, fallbackLocale: i, onWarn: o, localeFallbacker: s } = t, { __numberFormatters: a } = t;
|
|
14937
14941
|
if (process.env.NODE_ENV !== "production" && !Ny.numberFormat)
|
|
14938
14942
|
return o(Gi(It.CANNOT_FORMAT_NUMBER)), sl;
|
|
14939
|
-
const [l, u, c, d] = gc(...e), f = qe(c.missingWarn) ? c.missingWarn : t.missingWarn, h = qe(c.fallbackWarn) ? c.fallbackWarn : t.fallbackWarn, p = !!c.part,
|
|
14943
|
+
const [l, u, c, d] = gc(...e), f = qe(c.missingWarn) ? c.missingWarn : t.missingWarn, h = qe(c.fallbackWarn) ? c.fallbackWarn : t.fallbackWarn, p = !!c.part, g = af(t, c), m = s(
|
|
14940
14944
|
t,
|
|
14941
14945
|
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
14942
14946
|
i,
|
|
14943
|
-
|
|
14947
|
+
g
|
|
14944
14948
|
);
|
|
14945
14949
|
if (!ee(l) || l === "")
|
|
14946
|
-
return new Intl.NumberFormat(
|
|
14947
|
-
let
|
|
14950
|
+
return new Intl.NumberFormat(g, d).format(u);
|
|
14951
|
+
let y = {}, v, S = null, w = g, T = null;
|
|
14948
14952
|
const C = "number format";
|
|
14949
14953
|
for (let $ = 0; $ < m.length; $++) {
|
|
14950
|
-
if (v = T = m[$], process.env.NODE_ENV !== "production" &&
|
|
14954
|
+
if (v = T = m[$], process.env.NODE_ENV !== "production" && g !== v && g2(h, l) && o(Gi(It.FALLBACK_TO_NUMBER_FORMAT, {
|
|
14951
14955
|
key: l,
|
|
14952
14956
|
target: v
|
|
14953
|
-
})), process.env.NODE_ENV !== "production" &&
|
|
14957
|
+
})), process.env.NODE_ENV !== "production" && g !== v) {
|
|
14954
14958
|
const z = t.__v_emitter;
|
|
14955
14959
|
z && z.emit("fallback", {
|
|
14956
14960
|
type: C,
|
|
@@ -14960,7 +14964,7 @@ function Xh(t, ...e) {
|
|
|
14960
14964
|
groupId: `${C}:${l}`
|
|
14961
14965
|
});
|
|
14962
14966
|
}
|
|
14963
|
-
if (
|
|
14967
|
+
if (y = n[v] || {}, S = y[l], ke(S))
|
|
14964
14968
|
break;
|
|
14965
14969
|
lf(t, l, v, f, C), w = T;
|
|
14966
14970
|
}
|
|
@@ -15180,7 +15184,7 @@ function UM(t = {}, e) {
|
|
|
15180
15184
|
// prettier-ignore
|
|
15181
15185
|
n && a ? n.fallbackLocale.value : ee(t.fallbackLocale) || tt(t.fallbackLocale) || ke(t.fallbackLocale) || t.fallbackLocale === !1 ? t.fallbackLocale : l.value
|
|
15182
15186
|
), c = s(Hy(l.value, t)), d = s(ke(t.datetimeFormats) ? t.datetimeFormats : { [l.value]: {} }), f = s(ke(t.numberFormats) ? t.numberFormats : { [l.value]: {} });
|
|
15183
|
-
let h = n ? n.missingWarn : qe(t.missingWarn) || rl(t.missingWarn) ? t.missingWarn : !0, p = n ? n.fallbackWarn : qe(t.fallbackWarn) || rl(t.fallbackWarn) ? t.fallbackWarn : !0,
|
|
15187
|
+
let h = n ? n.missingWarn : qe(t.missingWarn) || rl(t.missingWarn) ? t.missingWarn : !0, p = n ? n.fallbackWarn : qe(t.fallbackWarn) || rl(t.fallbackWarn) ? t.fallbackWarn : !0, g = n ? n.fallbackRoot : qe(t.fallbackRoot) ? t.fallbackRoot : !0, m = !!t.fallbackFormat, y = He(t.missing) ? t.missing : null, v = He(t.missing) ? op(t.missing) : null, S = He(t.postTranslation) ? t.postTranslation : null, w = n ? n.warnHtmlMessage : qe(t.warnHtmlMessage) ? t.warnHtmlMessage : !0, T = !!t.escapeParameter;
|
|
15184
15188
|
const C = n ? n.modifiers : ke(t.modifiers) ? t.modifiers : {};
|
|
15185
15189
|
let E = t.pluralRules || n && n.pluralRules, A;
|
|
15186
15190
|
A = (() => {
|
|
@@ -15235,10 +15239,10 @@ function UM(t = {}, e) {
|
|
|
15235
15239
|
S = L, A.postTranslation = L;
|
|
15236
15240
|
}
|
|
15237
15241
|
function be() {
|
|
15238
|
-
return
|
|
15242
|
+
return y;
|
|
15239
15243
|
}
|
|
15240
15244
|
function ct(L) {
|
|
15241
|
-
L !== null && (v = op(L)),
|
|
15245
|
+
L !== null && (v = op(L)), y = L, A.missing = v;
|
|
15242
15246
|
}
|
|
15243
15247
|
function xt(L, H) {
|
|
15244
15248
|
return L !== "translate" || !H.resolvedMessage;
|
|
@@ -15254,19 +15258,19 @@ function UM(t = {}, e) {
|
|
|
15254
15258
|
if (ye !== "translate exists" && // for not `te` (e.g `t`)
|
|
15255
15259
|
Ct(Er) && Er === m2 || ye === "translate exists" && !Er) {
|
|
15256
15260
|
const [nr, N] = H();
|
|
15257
|
-
if (process.env.NODE_ENV !== "production" && n && ee(nr) && xt(ye, N) && (
|
|
15261
|
+
if (process.env.NODE_ENV !== "production" && n && ee(nr) && xt(ye, N) && (g && (g2(p, nr) || Dy(h, nr)) && is(uf(cn.FALLBACK_TO_ROOT, {
|
|
15258
15262
|
key: nr,
|
|
15259
15263
|
type: ye
|
|
15260
15264
|
})), process.env.NODE_ENV !== "production")) {
|
|
15261
15265
|
const { __v_emitter: J } = A;
|
|
15262
|
-
J &&
|
|
15266
|
+
J && g && J.emit("fallback", {
|
|
15263
15267
|
type: ye,
|
|
15264
15268
|
key: nr,
|
|
15265
15269
|
to: "global",
|
|
15266
15270
|
groupId: `${ye}:${nr}`
|
|
15267
15271
|
});
|
|
15268
15272
|
}
|
|
15269
|
-
return n &&
|
|
15273
|
+
return n && g ? Fe(n) : tr(nr);
|
|
15270
15274
|
} else {
|
|
15271
15275
|
if (ao(Er))
|
|
15272
15276
|
return Er;
|
|
@@ -15444,10 +15448,10 @@ function UM(t = {}, e) {
|
|
|
15444
15448
|
p = L, A.fallbackWarn = p;
|
|
15445
15449
|
},
|
|
15446
15450
|
get fallbackRoot() {
|
|
15447
|
-
return
|
|
15451
|
+
return g;
|
|
15448
15452
|
},
|
|
15449
15453
|
set fallbackRoot(L) {
|
|
15450
|
-
|
|
15454
|
+
g = L;
|
|
15451
15455
|
},
|
|
15452
15456
|
get fallbackFormat() {
|
|
15453
15457
|
return m;
|
|
@@ -15537,8 +15541,8 @@ function jy(t, e, n, r) {
|
|
|
15537
15541
|
const l = r(t.value, s, a);
|
|
15538
15542
|
let u = [s.key];
|
|
15539
15543
|
tt(l) ? u = l.map((f, h) => {
|
|
15540
|
-
const p = i[f.type],
|
|
15541
|
-
return GM(
|
|
15544
|
+
const p = i[f.type], g = p ? p({ [f.type]: f.value, index: h, parts: l }) : [f.value];
|
|
15545
|
+
return GM(g) && (g[0].key = `${f.type}-${h}`), g;
|
|
15542
15546
|
}) : ee(l) && (u = [l]);
|
|
15543
15547
|
const c = Tt({}, o), d = ee(t.tag) || Te(t.tag) ? t.tag : zy();
|
|
15544
15548
|
return Ot(d, c, u);
|
|
@@ -15994,16 +15998,16 @@ const Zy = {
|
|
|
15994
15998
|
getCellClasses: (d) => {
|
|
15995
15999
|
const f = i.value.length ? i.value : l.value, h = Math.ceil(
|
|
15996
16000
|
f.length / t.columns
|
|
15997
|
-
), p = Math.floor(d / t.columns),
|
|
16001
|
+
), p = Math.floor(d / t.columns), g = p === 0, m = p === h - 1, y = d === f.length - 1, v = p === h - 2, S = d + t.columns >= f.length;
|
|
15998
16002
|
return {
|
|
15999
|
-
"!border-t-[0.09375rem]":
|
|
16003
|
+
"!border-t-[0.09375rem]": g,
|
|
16000
16004
|
"!border-b-[0.09375rem]": m || S && v,
|
|
16001
16005
|
"!border-l-[0.09375rem]": d % t.columns === 0,
|
|
16002
|
-
"!border-r-[0.09375rem]": d % t.columns === t.columns - 1 ||
|
|
16003
|
-
"!rounded-tl-md":
|
|
16004
|
-
"!rounded-tr-md":
|
|
16006
|
+
"!border-r-[0.09375rem]": d % t.columns === t.columns - 1 || y,
|
|
16007
|
+
"!rounded-tl-md": g && d % t.columns === 0,
|
|
16008
|
+
"!rounded-tr-md": g && (d % t.columns === t.columns - 1 || y),
|
|
16005
16009
|
"!rounded-bl-md": m && d % t.columns === 0,
|
|
16006
|
-
"!rounded-br-md":
|
|
16010
|
+
"!rounded-br-md": y || v && f.length % t.columns !== 0 && d % t.columns === t.columns - 1
|
|
16007
16011
|
};
|
|
16008
16012
|
},
|
|
16009
16013
|
selectGridItem: (d) => {
|
|
@@ -16190,8 +16194,8 @@ const Zj = /* @__PURE__ */ Ee(rx, [["render", fx], ["__scopeId", "data-v-d37c3c4
|
|
|
16190
16194
|
{ [t.inputClass]: !!t.inputClass },
|
|
16191
16195
|
{ populated: !!t.modelValue }
|
|
16192
16196
|
]), c = U(() => !!(n != null && n.default)), d = () => {
|
|
16193
|
-
const p = t.type === "password",
|
|
16194
|
-
(p ||
|
|
16197
|
+
const p = t.type === "password", g = t.type === "text" && o.value === lp;
|
|
16198
|
+
(p || g) && f();
|
|
16195
16199
|
}, f = () => {
|
|
16196
16200
|
const p = t.type === "text" ? "password" : "text";
|
|
16197
16201
|
o.value = p === "text" ? lp : ap, e("update-type", p);
|
|
@@ -16791,28 +16795,28 @@ const Yj = /* @__PURE__ */ Ee(qx, [["render", Jx], ["__scopeId", "data-v-bddbe9b
|
|
|
16791
16795
|
const n = _(!1), r = _(""), i = _(null), o = U(() => n.value === !0 && t.reposition === !0 ? a(t.align) : t.align), s = U(() => n.value === !0 && t.reposition === !0 ? l(t.position) : t.position), a = (m) => {
|
|
16792
16796
|
if (!i.value || u(i.value.children[1]))
|
|
16793
16797
|
return m;
|
|
16794
|
-
const
|
|
16798
|
+
const y = i.value.children[0].getBoundingClientRect(), v = i.value.children[1].getBoundingClientRect();
|
|
16795
16799
|
if (m === "left" || m === "right" || m === "center") {
|
|
16796
|
-
const S =
|
|
16800
|
+
const S = y.left;
|
|
16797
16801
|
return window.innerWidth - S < v.width ? "right" : "left";
|
|
16798
16802
|
} else {
|
|
16799
|
-
const S =
|
|
16803
|
+
const S = y.top;
|
|
16800
16804
|
return window.innerHeight - S < v.height ? "bottom" : "top";
|
|
16801
16805
|
}
|
|
16802
16806
|
}, l = (m) => {
|
|
16803
16807
|
if (!i.value || u(i.value.children[1]))
|
|
16804
16808
|
return m;
|
|
16805
|
-
const
|
|
16809
|
+
const y = i.value.children[0].getBoundingClientRect(), v = i.value.children[1].getBoundingClientRect();
|
|
16806
16810
|
if (m === "top" || m === "bottom") {
|
|
16807
|
-
const S =
|
|
16811
|
+
const S = y.top;
|
|
16808
16812
|
return window.innerHeight - S < v.height ? "top" : "bottom";
|
|
16809
16813
|
} else {
|
|
16810
|
-
const S =
|
|
16814
|
+
const S = y.left;
|
|
16811
16815
|
return window.innerWidth - S < v.width ? "left" : "right";
|
|
16812
16816
|
}
|
|
16813
16817
|
}, u = (m) => {
|
|
16814
|
-
const
|
|
16815
|
-
return
|
|
16818
|
+
const y = m.getBoundingClientRect();
|
|
16819
|
+
return y ? y.top >= 0 && y.left >= 0 && y.bottom <= (window.innerHeight || document.documentElement.clientHeight) && y.right <= (window.innerWidth || document.documentElement.clientWidth) : !1;
|
|
16816
16820
|
}, c = () => {
|
|
16817
16821
|
(t.trigger === "click" || t.trigger === "both") && e("update:modelValue", !t.modelValue);
|
|
16818
16822
|
}, d = () => {
|
|
@@ -16820,8 +16824,8 @@ const Yj = /* @__PURE__ */ Ee(qx, [["render", Jx], ["__scopeId", "data-v-bddbe9b
|
|
|
16820
16824
|
}, f = () => {
|
|
16821
16825
|
t.trigger !== "click" && e("update:modelValue", !0);
|
|
16822
16826
|
}, h = () => {
|
|
16823
|
-
var
|
|
16824
|
-
const m = (
|
|
16827
|
+
var y;
|
|
16828
|
+
const m = (y = i.value) == null ? void 0 : y.children[0];
|
|
16825
16829
|
if (m) {
|
|
16826
16830
|
const v = m.clientWidth, S = m.clientHeight;
|
|
16827
16831
|
switch (o.value) {
|
|
@@ -16846,7 +16850,7 @@ const Yj = /* @__PURE__ */ Ee(qx, [["render", Jx], ["__scopeId", "data-v-bddbe9b
|
|
|
16846
16850
|
function p() {
|
|
16847
16851
|
n.value = !1;
|
|
16848
16852
|
}
|
|
16849
|
-
function
|
|
16853
|
+
function g() {
|
|
16850
16854
|
var m;
|
|
16851
16855
|
n.value = !0, !u((m = i.value) == null ? void 0 : m.children[1]) && t.reposition === !0 && h();
|
|
16852
16856
|
}
|
|
@@ -16865,7 +16869,7 @@ const Yj = /* @__PURE__ */ Ee(qx, [["render", Jx], ["__scopeId", "data-v-bddbe9b
|
|
|
16865
16869
|
onAfterLeave: p,
|
|
16866
16870
|
onClick: c,
|
|
16867
16871
|
onClickOutside: v1,
|
|
16868
|
-
onEnter:
|
|
16872
|
+
onEnter: g,
|
|
16869
16873
|
onMouseLeave: d,
|
|
16870
16874
|
onMouseOver: f
|
|
16871
16875
|
};
|
|
@@ -18183,7 +18187,7 @@ const gA = ce({
|
|
|
18183
18187
|
await lr(), i.value.search = v;
|
|
18184
18188
|
return;
|
|
18185
18189
|
}
|
|
18186
|
-
},
|
|
18190
|
+
}, g = (v) => {
|
|
18187
18191
|
typeof v == "number" && v >= 0 ? s.value.splice(v, 1) : s.value = [], lr(() => {
|
|
18188
18192
|
n("update:model-value", s.value);
|
|
18189
18193
|
});
|
|
@@ -18191,7 +18195,7 @@ const gA = ce({
|
|
|
18191
18195
|
t.multiple && s.value && v.length === s.value.length && lr(() => {
|
|
18192
18196
|
s.value = [], n("update:model-value", s.value);
|
|
18193
18197
|
});
|
|
18194
|
-
},
|
|
18198
|
+
}, y = async () => {
|
|
18195
18199
|
if (o.value && t.searchable) {
|
|
18196
18200
|
await lr();
|
|
18197
18201
|
const v = o.value.querySelector(
|
|
@@ -18213,10 +18217,10 @@ const gA = ce({
|
|
|
18213
18217
|
noTagFound: u,
|
|
18214
18218
|
useTags: d,
|
|
18215
18219
|
addTag: p,
|
|
18216
|
-
onOpen:
|
|
18220
|
+
onOpen: y,
|
|
18217
18221
|
onRemove: m,
|
|
18218
18222
|
onUpdateValue: f,
|
|
18219
|
-
removeElement:
|
|
18223
|
+
removeElement: g,
|
|
18220
18224
|
searchChange: h
|
|
18221
18225
|
};
|
|
18222
18226
|
}
|
|
@@ -18380,7 +18384,7 @@ function DA(t, e, n, r, i, o) {
|
|
|
18380
18384
|
P("span", {
|
|
18381
18385
|
class: "tag-remove cursor-pointer shrink",
|
|
18382
18386
|
tabindex: "1",
|
|
18383
|
-
onClick: (
|
|
18387
|
+
onClick: (g) => t.removeElement(p)
|
|
18384
18388
|
}, [
|
|
18385
18389
|
x(s, {
|
|
18386
18390
|
icon: "close-thick",
|
|
@@ -19365,7 +19369,7 @@ var pf = {
|
|
|
19365
19369
|
return E > -1;
|
|
19366
19370
|
}) : e > -1;
|
|
19367
19371
|
if (s) {
|
|
19368
|
-
var a = this.first, l = this.element, u = l.scrollTop, c = u === void 0 ? 0 : u, d = l.scrollLeft, f = d === void 0 ? 0 : d, h = this.calculateNumItems(), p = h.numToleratedItems,
|
|
19372
|
+
var a = this.first, l = this.element, u = l.scrollTop, c = u === void 0 ? 0 : u, d = l.scrollLeft, f = d === void 0 ? 0 : d, h = this.calculateNumItems(), p = h.numToleratedItems, g = this.getContentPosition(), m = this.itemSize, y = function() {
|
|
19369
19373
|
var A = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, $ = arguments.length > 1 ? arguments[1] : void 0;
|
|
19370
19374
|
return A <= $ ? 0 : A;
|
|
19371
19375
|
}, v = function(A, $, z) {
|
|
@@ -19382,9 +19386,9 @@ var pf = {
|
|
|
19382
19386
|
cols: 0
|
|
19383
19387
|
} : 0, T = !1, C = !1;
|
|
19384
19388
|
i ? (w = {
|
|
19385
|
-
rows:
|
|
19386
|
-
cols:
|
|
19387
|
-
}, S(v(w.cols, m[1],
|
|
19389
|
+
rows: y(e[0], p[0]),
|
|
19390
|
+
cols: y(e[1], p[1])
|
|
19391
|
+
}, S(v(w.cols, m[1], g.left), v(w.rows, m[0], g.top)), C = this.lastScrollPos.top !== c || this.lastScrollPos.left !== f, T = w.rows !== a.rows || w.cols !== a.cols) : (w = y(e, p), o ? S(v(w, m, g.left), c) : S(f, v(w, m, g.top)), C = this.lastScrollPos !== (o ? f : c), T = w !== a), this.isRangeChanged = T, C && (this.first = w);
|
|
19388
19392
|
}
|
|
19389
19393
|
},
|
|
19390
19394
|
scrollInView: function(e, n) {
|
|
@@ -19395,9 +19399,9 @@ var pf = {
|
|
|
19395
19399
|
}) : e > -1;
|
|
19396
19400
|
if (a) {
|
|
19397
19401
|
var l = this.getRenderedRange(), u = l.first, c = l.viewport, d = function() {
|
|
19398
|
-
var
|
|
19402
|
+
var y = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0, v = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
19399
19403
|
return r.scrollTo({
|
|
19400
|
-
left:
|
|
19404
|
+
left: y,
|
|
19401
19405
|
top: v,
|
|
19402
19406
|
behavior: i
|
|
19403
19407
|
});
|
|
@@ -19413,8 +19417,8 @@ var pf = {
|
|
|
19413
19417
|
if (o)
|
|
19414
19418
|
c.last.rows - u.rows <= e[0] + 1 ? d(c.first.cols * this.itemSize[1], (c.first.rows + 1) * this.itemSize[0]) : c.last.cols - u.cols <= e[1] + 1 && d((c.first.cols + 1) * this.itemSize[1], c.first.rows * this.itemSize[0]);
|
|
19415
19419
|
else if (c.last - u <= e + 1) {
|
|
19416
|
-
var
|
|
19417
|
-
s ? d(
|
|
19420
|
+
var g = (c.first + 1) * this.itemSize;
|
|
19421
|
+
s ? d(g, 0) : d(0, g);
|
|
19418
19422
|
}
|
|
19419
19423
|
}
|
|
19420
19424
|
}
|
|
@@ -19579,7 +19583,7 @@ var pf = {
|
|
|
19579
19583
|
}, f = a(r.scrollTop, s.top), h = a(r.scrollLeft, s.left), p = i ? {
|
|
19580
19584
|
rows: 0,
|
|
19581
19585
|
cols: 0
|
|
19582
|
-
} : 0,
|
|
19586
|
+
} : 0, g = this.last, m = !1, y = this.lastScrollPos;
|
|
19583
19587
|
if (i) {
|
|
19584
19588
|
var v = this.lastScrollPos.top <= f, S = this.lastScrollPos.left <= h;
|
|
19585
19589
|
if (!this.appendOnly || this.appendOnly && (v || S)) {
|
|
@@ -19593,10 +19597,10 @@ var pf = {
|
|
|
19593
19597
|
p = {
|
|
19594
19598
|
rows: c(w.rows, T.rows, this.first.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0], v),
|
|
19595
19599
|
cols: c(w.cols, T.cols, this.first.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], S)
|
|
19596
|
-
},
|
|
19600
|
+
}, g = {
|
|
19597
19601
|
rows: d(w.rows, p.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0]),
|
|
19598
19602
|
cols: d(w.cols, p.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], !0)
|
|
19599
|
-
}, m = p.rows !== this.first.rows ||
|
|
19603
|
+
}, m = p.rows !== this.first.rows || g.rows !== this.last.rows || p.cols !== this.first.cols || g.cols !== this.last.cols || this.isRangeChanged, y = {
|
|
19600
19604
|
top: f,
|
|
19601
19605
|
left: h
|
|
19602
19606
|
};
|
|
@@ -19605,14 +19609,14 @@ var pf = {
|
|
|
19605
19609
|
var C = o ? h : f, E = this.lastScrollPos <= C;
|
|
19606
19610
|
if (!this.appendOnly || this.appendOnly && E) {
|
|
19607
19611
|
var A = l(C, this.itemSize), $ = u(A, this.first, this.last, this.numItemsInViewport, this.d_numToleratedItems, E);
|
|
19608
|
-
p = c(A, $, this.first, this.last, this.numItemsInViewport, this.d_numToleratedItems, E),
|
|
19612
|
+
p = c(A, $, this.first, this.last, this.numItemsInViewport, this.d_numToleratedItems, E), g = d(A, p, this.last, this.numItemsInViewport, this.d_numToleratedItems), m = p !== this.first || g !== this.last || this.isRangeChanged, y = C;
|
|
19609
19613
|
}
|
|
19610
19614
|
}
|
|
19611
19615
|
return {
|
|
19612
19616
|
first: p,
|
|
19613
|
-
last:
|
|
19617
|
+
last: g,
|
|
19614
19618
|
isRangeChanged: m,
|
|
19615
|
-
scrollPos:
|
|
19619
|
+
scrollPos: y
|
|
19616
19620
|
};
|
|
19617
19621
|
},
|
|
19618
19622
|
onScrollChange: function(e) {
|
|
@@ -20945,16 +20949,16 @@ function ZI(t, e, n, r, i, o) {
|
|
|
20945
20949
|
pt: t.ptm("virtualScroller")
|
|
20946
20950
|
}), _s({
|
|
20947
20951
|
content: ne(function(f) {
|
|
20948
|
-
var h = f.styleClass, p = f.contentRef,
|
|
20952
|
+
var h = f.styleClass, p = f.contentRef, g = f.items, m = f.getItemOptions, y = f.contentStyle, v = f.itemSize;
|
|
20949
20953
|
return [P("ul", O({
|
|
20950
20954
|
ref: function(w) {
|
|
20951
20955
|
return o.listRef(w, p);
|
|
20952
20956
|
},
|
|
20953
20957
|
id: i.id + "_list",
|
|
20954
20958
|
class: [t.cx("list"), h],
|
|
20955
|
-
style:
|
|
20959
|
+
style: y,
|
|
20956
20960
|
role: "listbox"
|
|
20957
|
-
}, t.ptm("list")), [(b(!0), k(ie, null, Pe(
|
|
20961
|
+
}, t.ptm("list")), [(b(!0), k(ie, null, Pe(g, function(S, w) {
|
|
20958
20962
|
return b(), k(ie, {
|
|
20959
20963
|
key: o.getOptionRenderKey(S, o.getOptionIndex(w, m))
|
|
20960
20964
|
}, [o.isOptionGroup(S) ? (b(), k("li", O({
|
|
@@ -21013,7 +21017,7 @@ function ZI(t, e, n, r, i, o) {
|
|
|
21013
21017
|
class: t.cx("itemLabel")
|
|
21014
21018
|
}, t.ptm("itemLabel")), X(o.getOptionLabel(S)), 17)];
|
|
21015
21019
|
})], 16, jI)), [[d]])], 64);
|
|
21016
|
-
}), 128)), i.filterValue && (!
|
|
21020
|
+
}), 128)), i.filterValue && (!g || g && g.length === 0) ? (b(), k("li", O({
|
|
21017
21021
|
key: 0,
|
|
21018
21022
|
class: t.cx("emptyMessage"),
|
|
21019
21023
|
role: "option"
|
|
@@ -21996,7 +22000,7 @@ var iv = {
|
|
|
21996
22000
|
}
|
|
21997
22001
|
case "Delete":
|
|
21998
22002
|
if (e.preventDefault(), n === r) {
|
|
21999
|
-
var f = i.charAt(n), h = this.getDecimalCharIndexes(i), p = h.decimalCharIndex,
|
|
22003
|
+
var f = i.charAt(n), h = this.getDecimalCharIndexes(i), p = h.decimalCharIndex, g = h.decimalCharIndexWithoutPrefix;
|
|
22000
22004
|
if (this.isNumeralChar(f)) {
|
|
22001
22005
|
var m = this.getDecimalLength(i);
|
|
22002
22006
|
if (this._group.test(f))
|
|
@@ -22004,10 +22008,10 @@ var iv = {
|
|
|
22004
22008
|
else if (this._decimal.test(f))
|
|
22005
22009
|
this._decimal.lastIndex = 0, m ? this.$refs.input.$el.setSelectionRange(n + 1, n + 1) : o = i.slice(0, n) + i.slice(n + 1);
|
|
22006
22010
|
else if (p > 0 && n > p) {
|
|
22007
|
-
var
|
|
22008
|
-
o = i.slice(0, n) +
|
|
22011
|
+
var y = this.isDecimalMode() && (this.minFractionDigits || 0) < m ? "" : "0";
|
|
22012
|
+
o = i.slice(0, n) + y + i.slice(n + 1);
|
|
22009
22013
|
} else
|
|
22010
|
-
|
|
22014
|
+
g === 1 ? (o = i.slice(0, n) + "0" + i.slice(n + 1), o = this.parseValue(o) > 0 ? o : "") : o = i.slice(0, n) + i.slice(n + 1);
|
|
22011
22015
|
}
|
|
22012
22016
|
this.updateValue(e, o, null, "delete-back-single");
|
|
22013
22017
|
} else
|
|
@@ -22088,14 +22092,14 @@ var iv = {
|
|
|
22088
22092
|
else if (r.isDecimalSign)
|
|
22089
22093
|
u > 0 && o === u ? this.updateValue(e, a, n, "insert") : u > o && u < s ? (h = this.insertText(a, n, o, s), this.updateValue(e, h, n, "insert")) : u === -1 && this.maxFractionDigits && (h = this.insertText(a, n, o, s), this.updateValue(e, h, n, "insert"));
|
|
22090
22094
|
else {
|
|
22091
|
-
var p = this.numberFormat.resolvedOptions().maximumFractionDigits,
|
|
22095
|
+
var p = this.numberFormat.resolvedOptions().maximumFractionDigits, g = o !== s ? "range-insert" : "insert";
|
|
22092
22096
|
if (u > 0 && o > u) {
|
|
22093
22097
|
if (o + n.length - (u + 1) <= p) {
|
|
22094
22098
|
var m = f >= o ? f - 1 : d >= o ? d : a.length;
|
|
22095
|
-
h = a.slice(0, o) + n + a.slice(o + n.length, m) + a.slice(m), this.updateValue(e, h, n,
|
|
22099
|
+
h = a.slice(0, o) + n + a.slice(o + n.length, m) + a.slice(m), this.updateValue(e, h, n, g);
|
|
22096
22100
|
}
|
|
22097
22101
|
} else
|
|
22098
|
-
h = this.insertText(a, n, o, s), this.updateValue(e, h, n,
|
|
22102
|
+
h = this.insertText(a, n, o, s), this.updateValue(e, h, n, g);
|
|
22099
22103
|
}
|
|
22100
22104
|
}
|
|
22101
22105
|
},
|
|
@@ -22181,9 +22185,9 @@ var iv = {
|
|
|
22181
22185
|
this.$refs.input.$el.value = s;
|
|
22182
22186
|
var f = s.length;
|
|
22183
22187
|
if (r === "range-insert") {
|
|
22184
|
-
var h = this.parseValue((o || "").slice(0, c)), p = h !== null ? h.toString() : "",
|
|
22188
|
+
var h = this.parseValue((o || "").slice(0, c)), p = h !== null ? h.toString() : "", g = p.split("").join("(".concat(this.groupChar, ")?")), m = new RegExp(g, "g");
|
|
22185
22189
|
m.test(s);
|
|
22186
|
-
var
|
|
22190
|
+
var y = n.split("").join("(".concat(this.groupChar, ")?")), v = new RegExp(y, "g");
|
|
22187
22191
|
v.test(s.slice(m.lastIndex)), d = m.lastIndex + v.lastIndex, this.$refs.input.$el.setSelectionRange(d, d);
|
|
22188
22192
|
} else if (f === a)
|
|
22189
22193
|
if (r === "insert" || r === "delete-back-single") {
|
|
@@ -23075,8 +23079,8 @@ var vv = {
|
|
|
23075
23079
|
var n;
|
|
23076
23080
|
this.styleElement = document.createElement("style"), this.styleElement.type = "text/css", M.setAttribute(this.styleElement, "nonce", (n = this.$primevue) === null || n === void 0 || (n = n.config) === null || n === void 0 || (n = n.csp) === null || n === void 0 ? void 0 : n.nonce), document.head.appendChild(this.styleElement);
|
|
23077
23081
|
var r = "", i = Object.keys(this.template), o = {};
|
|
23078
|
-
i.sort(function(p,
|
|
23079
|
-
return parseInt(p) - parseInt(
|
|
23082
|
+
i.sort(function(p, g) {
|
|
23083
|
+
return parseInt(p) - parseInt(g);
|
|
23080
23084
|
}).forEach(function(p) {
|
|
23081
23085
|
o[p] = e.template[p];
|
|
23082
23086
|
});
|
|
@@ -23189,7 +23193,7 @@ function QP(t, e, n, r, i, o) {
|
|
|
23189
23193
|
var s = Z("FirstPageLink"), a = Z("PrevPageLink"), l = Z("NextPageLink"), u = Z("LastPageLink"), c = Z("PageLinks"), d = Z("CurrentPageReport"), f = Z("RowsPerPageDropdown"), h = Z("JumpToPageDropdown"), p = Z("JumpToPageInput");
|
|
23190
23194
|
return t.alwaysShow || o.pageLinks && o.pageLinks.length > 1 ? (b(), k("nav", Xt(O({
|
|
23191
23195
|
key: 0
|
|
23192
|
-
}, t.ptmi("paginatorWrapper"))), [(b(!0), k(ie, null, Pe(o.templateItems, function(
|
|
23196
|
+
}, t.ptmi("paginatorWrapper"))), [(b(!0), k(ie, null, Pe(o.templateItems, function(g, m) {
|
|
23193
23197
|
return b(), k("div", O({
|
|
23194
23198
|
key: m,
|
|
23195
23199
|
ref_for: !0,
|
|
@@ -23202,10 +23206,10 @@ function QP(t, e, n, r, i, o) {
|
|
|
23202
23206
|
class: t.cx("start")
|
|
23203
23207
|
}, t.ptm("start")), [F(t.$slots, "start", {
|
|
23204
23208
|
state: o.currentState
|
|
23205
|
-
})], 16)) : I("", !0), (b(!0), k(ie, null, Pe(
|
|
23209
|
+
})], 16)) : I("", !0), (b(!0), k(ie, null, Pe(g, function(y) {
|
|
23206
23210
|
return b(), k(ie, {
|
|
23207
|
-
key:
|
|
23208
|
-
}, [
|
|
23211
|
+
key: y
|
|
23212
|
+
}, [y === "FirstPageLink" ? (b(), R(s, {
|
|
23209
23213
|
key: 0,
|
|
23210
23214
|
"aria-label": o.getAriaLabel("firstPageLabel"),
|
|
23211
23215
|
template: t.$slots.firstpagelinkicon,
|
|
@@ -23215,7 +23219,7 @@ function QP(t, e, n, r, i, o) {
|
|
|
23215
23219
|
disabled: o.isFirstPage || o.empty,
|
|
23216
23220
|
unstyled: t.unstyled,
|
|
23217
23221
|
pt: t.pt
|
|
23218
|
-
}, null, 8, ["aria-label", "template", "disabled", "unstyled", "pt"])) :
|
|
23222
|
+
}, null, 8, ["aria-label", "template", "disabled", "unstyled", "pt"])) : y === "PrevPageLink" ? (b(), R(a, {
|
|
23219
23223
|
key: 1,
|
|
23220
23224
|
"aria-label": o.getAriaLabel("prevPageLabel"),
|
|
23221
23225
|
template: t.$slots.prevpagelinkicon,
|
|
@@ -23225,7 +23229,7 @@ function QP(t, e, n, r, i, o) {
|
|
|
23225
23229
|
disabled: o.isFirstPage || o.empty,
|
|
23226
23230
|
unstyled: t.unstyled,
|
|
23227
23231
|
pt: t.pt
|
|
23228
|
-
}, null, 8, ["aria-label", "template", "disabled", "unstyled", "pt"])) :
|
|
23232
|
+
}, null, 8, ["aria-label", "template", "disabled", "unstyled", "pt"])) : y === "NextPageLink" ? (b(), R(l, {
|
|
23229
23233
|
key: 2,
|
|
23230
23234
|
"aria-label": o.getAriaLabel("nextPageLabel"),
|
|
23231
23235
|
template: t.$slots.nextpagelinkicon,
|
|
@@ -23235,7 +23239,7 @@ function QP(t, e, n, r, i, o) {
|
|
|
23235
23239
|
disabled: o.isLastPage || o.empty,
|
|
23236
23240
|
unstyled: t.unstyled,
|
|
23237
23241
|
pt: t.pt
|
|
23238
|
-
}, null, 8, ["aria-label", "template", "disabled", "unstyled", "pt"])) :
|
|
23242
|
+
}, null, 8, ["aria-label", "template", "disabled", "unstyled", "pt"])) : y === "LastPageLink" ? (b(), R(u, {
|
|
23239
23243
|
key: 3,
|
|
23240
23244
|
"aria-label": o.getAriaLabel("lastPageLabel"),
|
|
23241
23245
|
template: t.$slots.lastpagelinkicon,
|
|
@@ -23245,7 +23249,7 @@ function QP(t, e, n, r, i, o) {
|
|
|
23245
23249
|
disabled: o.isLastPage || o.empty,
|
|
23246
23250
|
unstyled: t.unstyled,
|
|
23247
23251
|
pt: t.pt
|
|
23248
|
-
}, null, 8, ["aria-label", "template", "disabled", "unstyled", "pt"])) :
|
|
23252
|
+
}, null, 8, ["aria-label", "template", "disabled", "unstyled", "pt"])) : y === "PageLinks" ? (b(), R(c, {
|
|
23249
23253
|
key: 4,
|
|
23250
23254
|
"aria-label": o.getAriaLabel("pageLabel"),
|
|
23251
23255
|
value: o.pageLinks,
|
|
@@ -23254,7 +23258,7 @@ function QP(t, e, n, r, i, o) {
|
|
|
23254
23258
|
return o.changePageLink(v);
|
|
23255
23259
|
}),
|
|
23256
23260
|
pt: t.pt
|
|
23257
|
-
}, null, 8, ["aria-label", "value", "page", "pt"])) :
|
|
23261
|
+
}, null, 8, ["aria-label", "value", "page", "pt"])) : y === "CurrentPageReport" ? (b(), R(d, {
|
|
23258
23262
|
key: 5,
|
|
23259
23263
|
"aria-live": "polite",
|
|
23260
23264
|
template: t.currentPageReportTemplate,
|
|
@@ -23266,7 +23270,7 @@ function QP(t, e, n, r, i, o) {
|
|
|
23266
23270
|
totalRecords: t.totalRecords,
|
|
23267
23271
|
unstyled: t.unstyled,
|
|
23268
23272
|
pt: t.pt
|
|
23269
|
-
}, null, 8, ["template", "currentPage", "page", "pageCount", "first", "rows", "totalRecords", "unstyled", "pt"])) :
|
|
23273
|
+
}, null, 8, ["template", "currentPage", "page", "pageCount", "first", "rows", "totalRecords", "unstyled", "pt"])) : y === "RowsPerPageDropdown" && t.rowsPerPageOptions ? (b(), R(f, {
|
|
23270
23274
|
key: 6,
|
|
23271
23275
|
"aria-label": o.getAriaLabel("rowsPerPageLabel"),
|
|
23272
23276
|
rows: i.d_rows,
|
|
@@ -23278,7 +23282,7 @@ function QP(t, e, n, r, i, o) {
|
|
|
23278
23282
|
templates: t.$slots,
|
|
23279
23283
|
unstyled: t.unstyled,
|
|
23280
23284
|
pt: t.pt
|
|
23281
|
-
}, null, 8, ["aria-label", "rows", "options", "disabled", "templates", "unstyled", "pt"])) :
|
|
23285
|
+
}, null, 8, ["aria-label", "rows", "options", "disabled", "templates", "unstyled", "pt"])) : y === "JumpToPageDropdown" ? (b(), R(h, {
|
|
23282
23286
|
key: 7,
|
|
23283
23287
|
"aria-label": o.getAriaLabel("jumpToPageDropdownLabel"),
|
|
23284
23288
|
page: o.page,
|
|
@@ -23290,7 +23294,7 @@ function QP(t, e, n, r, i, o) {
|
|
|
23290
23294
|
templates: t.$slots,
|
|
23291
23295
|
unstyled: t.unstyled,
|
|
23292
23296
|
pt: t.pt
|
|
23293
|
-
}, null, 8, ["aria-label", "page", "pageCount", "disabled", "templates", "unstyled", "pt"])) :
|
|
23297
|
+
}, null, 8, ["aria-label", "page", "pageCount", "disabled", "templates", "unstyled", "pt"])) : y === "JumpToPageInput" ? (b(), R(p, {
|
|
23294
23298
|
key: 8,
|
|
23295
23299
|
page: o.currentPage,
|
|
23296
23300
|
onPageChange: e[7] || (e[7] = function(v) {
|
|
@@ -23992,7 +23996,7 @@ var RD = AD.extend("focustrap", {
|
|
|
23992
23996
|
M.focus(o);
|
|
23993
23997
|
},
|
|
23994
23998
|
createHiddenFocusableElements: function(e, n) {
|
|
23995
|
-
var r = this, i = n.value || {}, o = i.tabIndex, s = o === void 0 ? 0 : o, a = i.firstFocusableSelector, l = a === void 0 ? "" : a, u = i.lastFocusableSelector, c = u === void 0 ? "" : u, d = function(
|
|
23999
|
+
var r = this, i = n.value || {}, o = i.tabIndex, s = o === void 0 ? 0 : o, a = i.firstFocusableSelector, l = a === void 0 ? "" : a, u = i.lastFocusableSelector, c = u === void 0 ? "" : u, d = function(g) {
|
|
23996
24000
|
return M.createElement("span", {
|
|
23997
24001
|
class: "p-hidden-accessible p-hidden-focusable",
|
|
23998
24002
|
tabIndex: s,
|
|
@@ -24000,7 +24004,7 @@ var RD = AD.extend("focustrap", {
|
|
|
24000
24004
|
"aria-hidden": !0,
|
|
24001
24005
|
"data-p-hidden-accessible": !0,
|
|
24002
24006
|
"data-p-hidden-focusable": !0,
|
|
24003
|
-
onFocus:
|
|
24007
|
+
onFocus: g == null ? void 0 : g.bind(r)
|
|
24004
24008
|
});
|
|
24005
24009
|
}, f = d(this.onFirstHiddenElementFocus), h = d(this.onLastHiddenElementFocus);
|
|
24006
24010
|
f.$_pfocustrap_lasthiddenfocusableelement = h, f.$_pfocustrap_focusableselector = l, f.setAttribute("data-pc-section", "firstfocusableelement"), h.$_pfocustrap_firsthiddenfocusableelement = f, h.$_pfocustrap_focusableselector = c, h.setAttribute("data-pc-section", "lastfocusableelement"), e.prepend(f), e.append(h);
|
|
@@ -28685,8 +28689,8 @@ var Nv = {
|
|
|
28685
28689
|
var h = gs(f.constraints), p;
|
|
28686
28690
|
try {
|
|
28687
28691
|
for (h.s(); !(p = h.n()).done; ) {
|
|
28688
|
-
var
|
|
28689
|
-
if (a = this.executeLocalFilter(d, e[s],
|
|
28692
|
+
var g = p.value;
|
|
28693
|
+
if (a = this.executeLocalFilter(d, e[s], g), f.operator === al.OR && a || f.operator === al.AND && !a)
|
|
28690
28694
|
break;
|
|
28691
28695
|
}
|
|
28692
28696
|
} catch (w) {
|
|
@@ -28701,8 +28705,8 @@ var Nv = {
|
|
|
28701
28705
|
}
|
|
28702
28706
|
if (a && r.global && !l && i)
|
|
28703
28707
|
for (var m = 0; m < i.length; m++) {
|
|
28704
|
-
var
|
|
28705
|
-
if (l = kc.filters[r.global.matchMode || Xe.CONTAINS](D.resolveFieldData(e[s],
|
|
28708
|
+
var y = i[m];
|
|
28709
|
+
if (l = kc.filters[r.global.matchMode || Xe.CONTAINS](D.resolveFieldData(e[s], y), r.global.value, this.filterLocale), l)
|
|
28706
28710
|
break;
|
|
28707
28711
|
}
|
|
28708
28712
|
var v = void 0;
|
|
@@ -28783,8 +28787,8 @@ var Nv = {
|
|
|
28783
28787
|
type: "row"
|
|
28784
28788
|
});
|
|
28785
28789
|
} else {
|
|
28786
|
-
var
|
|
28787
|
-
this.$emit("update:selection",
|
|
28790
|
+
var g = this.selection ? [].concat(Ne(this.selection), [o]) : [o];
|
|
28791
|
+
this.$emit("update:selection", g), this.$emit("row-select", {
|
|
28788
28792
|
originalEvent: n,
|
|
28789
28793
|
data: o,
|
|
28790
28794
|
index: s,
|
|
@@ -28794,8 +28798,8 @@ var Nv = {
|
|
|
28794
28798
|
}
|
|
28795
28799
|
}
|
|
28796
28800
|
if (this.rowTouched = !1, i) {
|
|
28797
|
-
var m,
|
|
28798
|
-
if (((m = n.target) === null || m === void 0 ? void 0 : m.getAttribute("data-pc-section")) === "rowtogglericon" || ((
|
|
28801
|
+
var m, y, v;
|
|
28802
|
+
if (((m = n.target) === null || m === void 0 ? void 0 : m.getAttribute("data-pc-section")) === "rowtogglericon" || ((y = n.target) === null || y === void 0 || (y = y.parentElement) === null || y === void 0 ? void 0 : y.getAttribute("data-pc-section")) === "rowtogglericon")
|
|
28799
28803
|
return;
|
|
28800
28804
|
var S = (v = n.target) === null || v === void 0 ? void 0 : v.closest('tr[data-p-selectable-row="true"]');
|
|
28801
28805
|
i.tabIndex = "-1", S.tabIndex = "0";
|
|
@@ -29069,11 +29073,11 @@ var Nv = {
|
|
|
29069
29073
|
var p = r.columns[h];
|
|
29070
29074
|
if (r.columnProp(p, "exportable") !== !1 && r.columnProp(p, "field")) {
|
|
29071
29075
|
f ? i += r.csvSeparator : f = !0;
|
|
29072
|
-
var
|
|
29073
|
-
|
|
29074
|
-
data:
|
|
29076
|
+
var g = D.resolveFieldData(d, r.columnProp(p, "field"));
|
|
29077
|
+
g != null ? r.exportFunction ? g = r.exportFunction({
|
|
29078
|
+
data: g,
|
|
29075
29079
|
field: r.columnProp(p, "field")
|
|
29076
|
-
}) :
|
|
29080
|
+
}) : g = String(g).replace(/"/g, '""') : g = "", i += '"' + g + '"';
|
|
29077
29081
|
}
|
|
29078
29082
|
}
|
|
29079
29083
|
});
|
|
@@ -29177,8 +29181,8 @@ var Nv = {
|
|
|
29177
29181
|
if (r.preventDefault(), this.draggedColumnElement) {
|
|
29178
29182
|
var o = M.index(this.draggedColumnElement), s = M.index(this.findParentHeader(r.target)), a = o !== s;
|
|
29179
29183
|
if (a && (s - o === 1 && this.dropPosition === -1 || s - o === -1 && this.dropPosition === 1) && (a = !1), a) {
|
|
29180
|
-
var l = function(
|
|
29181
|
-
return n.columnProp(
|
|
29184
|
+
var l = function(y, v) {
|
|
29185
|
+
return n.columnProp(y, "columnKey") || n.columnProp(v, "columnKey") ? n.columnProp(y, "columnKey") === n.columnProp(v, "columnKey") : n.columnProp(y, "field") === n.columnProp(v, "field");
|
|
29182
29186
|
}, u = this.columns.findIndex(function(m) {
|
|
29183
29187
|
return l(m, n.draggedColumn);
|
|
29184
29188
|
}), c = this.columns.findIndex(function(m) {
|
|
@@ -29187,12 +29191,12 @@ var Nv = {
|
|
|
29187
29191
|
f.forEach(function(m) {
|
|
29188
29192
|
return d.push(M.getOuterWidth(m));
|
|
29189
29193
|
});
|
|
29190
|
-
var h = d.find(function(m,
|
|
29191
|
-
return
|
|
29192
|
-
}), p = d.filter(function(m,
|
|
29193
|
-
return
|
|
29194
|
-
}),
|
|
29195
|
-
this.addColumnWidthStyles(
|
|
29194
|
+
var h = d.find(function(m, y) {
|
|
29195
|
+
return y === u;
|
|
29196
|
+
}), p = d.filter(function(m, y) {
|
|
29197
|
+
return y !== u;
|
|
29198
|
+
}), g = [].concat(Ne(p.slice(0, c)), [h], Ne(p.slice(c)));
|
|
29199
|
+
this.addColumnWidthStyles(g), c < u && this.dropPosition === 1 && c++, c > u && this.dropPosition === -1 && c--, D.reorderArray(this.columns, u, c), this.updateReorderableColumns(), this.$emit("column-reorder", {
|
|
29196
29200
|
originalEvent: r,
|
|
29197
29201
|
dragIndex: u,
|
|
29198
29202
|
dropIndex: c
|
|
@@ -30461,23 +30465,23 @@ const DL = "data:image/svg+xml,%3csvg%20width='118'%20height='99'%20viewBox='0%2
|
|
|
30461
30465
|
// Merge any other filters passed in via prop.
|
|
30462
30466
|
...t.filters
|
|
30463
30467
|
}), c = U(() => {
|
|
30464
|
-
const
|
|
30468
|
+
const y = [], v = {};
|
|
30465
30469
|
return t.columns.forEach((S) => {
|
|
30466
30470
|
v[S.key] = "";
|
|
30467
30471
|
}), [...Array(t.skeletonRows)].forEach(() => {
|
|
30468
|
-
|
|
30469
|
-
}),
|
|
30472
|
+
y.push(v);
|
|
30473
|
+
}), y;
|
|
30470
30474
|
}), d = () => {
|
|
30471
|
-
var
|
|
30472
|
-
i.value.scrollWidth > i.value.clientWidth ? (e.value = !0, (
|
|
30473
|
-
}, f = (
|
|
30474
|
-
t.rowSelect(
|
|
30475
|
-
}, h = (
|
|
30476
|
-
t.rowUnselect(
|
|
30475
|
+
var y, v;
|
|
30476
|
+
i.value.scrollWidth > i.value.clientWidth ? (e.value = !0, (y = i.value) == null || y.classList.add("is-scrolled")) : (e.value = !1, (v = i.value) == null || v.classList.remove("is-scrolled")), m();
|
|
30477
|
+
}, f = (y) => {
|
|
30478
|
+
t.rowSelect(y);
|
|
30479
|
+
}, h = (y) => {
|
|
30480
|
+
t.rowUnselect(y);
|
|
30477
30481
|
}, p = () => {
|
|
30478
30482
|
var w, T;
|
|
30479
|
-
const
|
|
30480
|
-
if (n.value = !!t.fixedTopOffset && a.value && window.scrollY >=
|
|
30483
|
+
const y = a.value.offsetTop - t.fixedTopOffset, v = document.querySelector('div[data-pc-section="header"]'), S = (w = i.value) == null ? void 0 : w.querySelector("thead");
|
|
30484
|
+
if (n.value = !!t.fixedTopOffset && a.value && window.scrollY >= y, n.value) {
|
|
30481
30485
|
if (v.style.top = t.fixedTopOffset + "px", !e.value) {
|
|
30482
30486
|
const C = t.fixedTopOffset + v.clientHeight + 1;
|
|
30483
30487
|
S.style.top = C + "px";
|
|
@@ -30497,12 +30501,12 @@ const DL = "data:image/svg+xml,%3csvg%20width='118'%20height='99'%20viewBox='0%2
|
|
|
30497
30501
|
});
|
|
30498
30502
|
}
|
|
30499
30503
|
m();
|
|
30500
|
-
},
|
|
30504
|
+
}, g = () => {
|
|
30501
30505
|
var v, S, w, T;
|
|
30502
|
-
const
|
|
30503
|
-
if (
|
|
30506
|
+
const y = (v = i.value) == null ? void 0 : v.cloneNode(!0);
|
|
30507
|
+
if (y) {
|
|
30504
30508
|
const C = document.querySelector('div[data-pc-section="header"]');
|
|
30505
|
-
C == null || C.append(
|
|
30509
|
+
C == null || C.append(y);
|
|
30506
30510
|
const E = C == null ? void 0 : C.querySelector('div[data-pc-section="wrapper"]');
|
|
30507
30511
|
(S = E == null ? void 0 : E.querySelector("tbody")) == null || S.remove(), E == null || E.addEventListener("scroll", () => {
|
|
30508
30512
|
i.value.scrollLeft = E.scrollLeft;
|
|
@@ -30521,11 +30525,11 @@ const DL = "data:image/svg+xml,%3csvg%20width='118'%20height='99'%20viewBox='0%2
|
|
|
30521
30525
|
});
|
|
30522
30526
|
}
|
|
30523
30527
|
}, m = () => {
|
|
30524
|
-
const
|
|
30525
|
-
v.style.width =
|
|
30528
|
+
const y = i.value.clientWidth + "px", v = document.querySelector('div[data-pc-section="header"]'), S = v.querySelector('div[data-pc-section="wrapper"] thead');
|
|
30529
|
+
v.style.width = y, i.value.querySelector("thead").style.width = y, S && (S.style.width = y);
|
|
30526
30530
|
};
|
|
30527
30531
|
return Je(() => {
|
|
30528
|
-
i.value = document.querySelector('div[data-pc-section="wrapper"]'), d(), window.addEventListener("resize", d), window.addEventListener("scroll", p),
|
|
30532
|
+
i.value = document.querySelector('div[data-pc-section="wrapper"]'), d(), window.addEventListener("resize", d), window.addEventListener("scroll", p), g();
|
|
30529
30533
|
}), vr(() => {
|
|
30530
30534
|
window.removeEventListener("resize", d), window.removeEventListener("scroll", p);
|
|
30531
30535
|
}), {
|
|
@@ -33872,8 +33876,8 @@ class Yt {
|
|
|
33872
33876
|
let f = u ? e == l ? -1 : e == d ? 1 : n : n, h = l + i + (f < 0 ? 0 : c);
|
|
33873
33877
|
if (r)
|
|
33874
33878
|
return h;
|
|
33875
|
-
let p = e == (n < 0 ? l : d) ? null : AN(a / 3, e - l),
|
|
33876
|
-
return (n < 0 ? e != l : e != d) && (
|
|
33879
|
+
let p = e == (n < 0 ? l : d) ? null : AN(a / 3, e - l), g = e == l ? t7 : e == d ? e7 : z0;
|
|
33880
|
+
return (n < 0 ? e != l : e != d) && (g |= n7), new $c(h, g, p);
|
|
33877
33881
|
}
|
|
33878
33882
|
i += c - u;
|
|
33879
33883
|
}
|
|
@@ -34409,8 +34413,8 @@ function PN(t, e, n, r) {
|
|
|
34409
34413
|
let d = l.marks;
|
|
34410
34414
|
if (!r.isInSet(d) && c.type.allowsMarkType(r.type)) {
|
|
34411
34415
|
let f = Math.max(u, e), h = Math.min(u + l.nodeSize, n), p = r.addToSet(d);
|
|
34412
|
-
for (let
|
|
34413
|
-
d[
|
|
34416
|
+
for (let g = 0; g < d.length; g++)
|
|
34417
|
+
d[g].isInSet(p) || (s && s.to == f && s.mark.eq(d[g]) ? s.to = h : i.push(s = new Un(f, h, d[g])));
|
|
34414
34418
|
a && a.to == f ? a.to = h : o.push(a = new Kr(f, h, r));
|
|
34415
34419
|
}
|
|
34416
34420
|
}), i.forEach((l) => t.step(l)), o.forEach((l) => t.step(l));
|
|
@@ -34482,11 +34486,11 @@ function as(t) {
|
|
|
34482
34486
|
}
|
|
34483
34487
|
function NN(t, e, n) {
|
|
34484
34488
|
let { $from: r, $to: i, depth: o } = e, s = r.before(o + 1), a = i.after(o + 1), l = s, u = a, c = V.empty, d = 0;
|
|
34485
|
-
for (let p = o,
|
|
34486
|
-
|
|
34489
|
+
for (let p = o, g = !1; p > n; p--)
|
|
34490
|
+
g || r.index(p) > 0 ? (g = !0, c = V.from(r.node(p).copy(c)), d++) : l--;
|
|
34487
34491
|
let f = V.empty, h = 0;
|
|
34488
|
-
for (let p = o,
|
|
34489
|
-
|
|
34492
|
+
for (let p = o, g = !1; p > n; p--)
|
|
34493
|
+
g || i.after(p + 1) < i.end(p) ? (g = !0, f = V.from(i.node(p).copy(f)), h++) : u++;
|
|
34490
34494
|
t.step(new at(l, u, s, a, new G(c.append(f), d, h), c.size - d, !0));
|
|
34491
34495
|
}
|
|
34492
34496
|
function Cf(t, e, n = null, r = t) {
|
|
@@ -34563,8 +34567,8 @@ function Ro(t, e, n = 1, r) {
|
|
|
34563
34567
|
return !1;
|
|
34564
34568
|
let h = d.content.cutByIndex(f, d.childCount), p = r && r[c + 1];
|
|
34565
34569
|
p && (h = h.replaceChild(0, p.type.create(p.attrs)));
|
|
34566
|
-
let
|
|
34567
|
-
if (!d.canReplace(f + 1, d.childCount) || !
|
|
34570
|
+
let g = r && r[c] || d;
|
|
34571
|
+
if (!d.canReplace(f + 1, d.childCount) || !g.type.validContent(h))
|
|
34568
34572
|
return !1;
|
|
34569
34573
|
}
|
|
34570
34574
|
let a = i.indexAfter(o), l = r && r[0];
|
|
@@ -34731,26 +34735,26 @@ class WN {
|
|
|
34731
34735
|
for (; this.depth > n; )
|
|
34732
34736
|
this.closeFrontierNode();
|
|
34733
34737
|
if (o)
|
|
34734
|
-
for (let
|
|
34735
|
-
this.openFrontierNode(o[
|
|
34738
|
+
for (let g = 0; g < o.length; g++)
|
|
34739
|
+
this.openFrontierNode(o[g]);
|
|
34736
34740
|
let s = this.unplaced, a = r ? r.content : s.content, l = s.openStart - e, u = 0, c = [], { match: d, type: f } = this.frontier[n];
|
|
34737
34741
|
if (i) {
|
|
34738
|
-
for (let
|
|
34739
|
-
c.push(i.child(
|
|
34742
|
+
for (let g = 0; g < i.childCount; g++)
|
|
34743
|
+
c.push(i.child(g));
|
|
34740
34744
|
d = d.matchFragment(i);
|
|
34741
34745
|
}
|
|
34742
34746
|
let h = a.size + e - (s.content.size - s.openEnd);
|
|
34743
34747
|
for (; u < a.childCount; ) {
|
|
34744
|
-
let
|
|
34748
|
+
let g = a.child(u), m = d.matchType(g.type);
|
|
34745
34749
|
if (!m)
|
|
34746
34750
|
break;
|
|
34747
|
-
u++, (u > 1 || l == 0 ||
|
|
34751
|
+
u++, (u > 1 || l == 0 || g.content.size) && (d = m, c.push(s7(g.mark(f.allowedMarks(g.marks)), u == 1 ? l : 0, u == a.childCount ? h : -1)));
|
|
34748
34752
|
}
|
|
34749
34753
|
let p = u == a.childCount;
|
|
34750
34754
|
p || (h = -1), this.placed = Cs(this.placed, n, V.from(c)), this.frontier[n].match = d, p && h < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
|
|
34751
|
-
for (let
|
|
34752
|
-
let
|
|
34753
|
-
this.frontier.push({ type:
|
|
34755
|
+
for (let g = 0, m = a; g < h; g++) {
|
|
34756
|
+
let y = m.lastChild;
|
|
34757
|
+
this.frontier.push({ type: y.type, match: y.contentMatchAt(y.childCount) }), m = y.content;
|
|
34754
34758
|
}
|
|
34755
34759
|
this.unplaced = p ? e == 0 ? G.empty : new G(Ss(s.content, e - 1, 1), e - 1, h < 0 ? s.openEnd : e - 1) : new G(Ss(s.content, e, u), s.openStart, s.openEnd);
|
|
34756
34760
|
}
|
|
@@ -34867,12 +34871,12 @@ function GN(t, e, n, r) {
|
|
|
34867
34871
|
for (let f = r.openStart; f >= 0; f--) {
|
|
34868
34872
|
let h = (f + c + 1) % (r.openStart + 1), p = u[h];
|
|
34869
34873
|
if (p)
|
|
34870
|
-
for (let
|
|
34871
|
-
let m = s[(
|
|
34872
|
-
m < 0 && (
|
|
34874
|
+
for (let g = 0; g < s.length; g++) {
|
|
34875
|
+
let m = s[(g + l) % s.length], y = !0;
|
|
34876
|
+
m < 0 && (y = !1, m = -m);
|
|
34873
34877
|
let v = i.node(m - 1), S = i.index(m - 1);
|
|
34874
34878
|
if (v.canReplaceWith(S, S, p.type, p.marks))
|
|
34875
|
-
return t.replace(i.before(m),
|
|
34879
|
+
return t.replace(i.before(m), y ? o.after(m) : n, new G(a7(r.content, 0, r.openStart, h), h, r.openEnd));
|
|
34876
34880
|
}
|
|
34877
34881
|
}
|
|
34878
34882
|
let d = t.steps.length;
|
|
@@ -36146,8 +36150,8 @@ function dm(t, e, n) {
|
|
|
36146
36150
|
else {
|
|
36147
36151
|
let f = a.scrollLeft, h = a.scrollTop;
|
|
36148
36152
|
d && (a.scrollTop += d), c && (a.scrollLeft += c);
|
|
36149
|
-
let p = a.scrollLeft - f,
|
|
36150
|
-
e = { left: e.left - p, top: e.top -
|
|
36153
|
+
let p = a.scrollLeft - f, g = a.scrollTop - h;
|
|
36154
|
+
e = { left: e.left - p, top: e.top - g, right: e.right - p, bottom: e.bottom - g };
|
|
36151
36155
|
}
|
|
36152
36156
|
if (l || /^(fixed|sticky)$/.test(getComputedStyle(s).position))
|
|
36153
36157
|
break;
|
|
@@ -36210,12 +36214,12 @@ function m7(t, e) {
|
|
|
36210
36214
|
let p = f[h];
|
|
36211
36215
|
if (p.top <= s && p.bottom >= a) {
|
|
36212
36216
|
s = Math.max(p.bottom, s), a = Math.min(p.top, a);
|
|
36213
|
-
let
|
|
36214
|
-
if (
|
|
36215
|
-
n = c, r =
|
|
36217
|
+
let g = p.left > e.left ? p.left - e.left : p.right < e.left ? e.left - p.right : 0;
|
|
36218
|
+
if (g < r) {
|
|
36219
|
+
n = c, r = g, i = g && n.nodeType == 3 ? {
|
|
36216
36220
|
left: p.right < e.left ? p.right : p.left,
|
|
36217
36221
|
top: e.top
|
|
36218
|
-
} : e, c.nodeType == 1 &&
|
|
36222
|
+
} : e, c.nodeType == 1 && g && (o = d + (e.left >= (p.left + p.right) / 2 ? 1 : 0));
|
|
36219
36223
|
continue;
|
|
36220
36224
|
}
|
|
36221
36225
|
} else
|
|
@@ -36428,7 +36432,7 @@ function S$(t, e, n) {
|
|
|
36428
36432
|
return !w$.test(r.parent.textContent) || !a.modify ? n == "left" || n == "backward" ? o : s : v7(t, e, () => {
|
|
36429
36433
|
let { focusNode: l, focusOffset: u, anchorNode: c, anchorOffset: d } = t.domSelectionRange(), f = a.caretBidiLevel;
|
|
36430
36434
|
a.modify("move", n, "character");
|
|
36431
|
-
let h = r.depth ? t.docView.domAfterPos(r.before()) : t.dom, { focusNode: p, focusOffset:
|
|
36435
|
+
let h = r.depth ? t.docView.domAfterPos(r.before()) : t.dom, { focusNode: p, focusOffset: g } = t.domSelectionRange(), m = p && !h.contains(p.nodeType == 1 ? p : p.parentNode) || l == p && u == g;
|
|
36432
36436
|
try {
|
|
36433
36437
|
a.collapse(c, d), l && (l != c || u != d) && a.extend && a.extend(l, u);
|
|
36434
36438
|
} catch {
|
|
@@ -36688,10 +36692,10 @@ class e0 {
|
|
|
36688
36692
|
setSelection(e, n, r, i = !1) {
|
|
36689
36693
|
let o = Math.min(e, n), s = Math.max(e, n);
|
|
36690
36694
|
for (let f = 0, h = 0; f < this.children.length; f++) {
|
|
36691
|
-
let p = this.children[f],
|
|
36692
|
-
if (o > h && s <
|
|
36695
|
+
let p = this.children[f], g = h + p.size;
|
|
36696
|
+
if (o > h && s < g)
|
|
36693
36697
|
return p.setSelection(e - h - p.border, n - h - p.border, r, i);
|
|
36694
|
-
h =
|
|
36698
|
+
h = g;
|
|
36695
36699
|
}
|
|
36696
36700
|
let a = this.domFromPos(e, e ? -1 : 1), l = n == e ? a : this.domFromPos(n, n ? -1 : 1), u = r.getSelection(), c = !1;
|
|
36697
36701
|
if ((Rn || Rt) && e == n) {
|
|
@@ -36699,9 +36703,9 @@ class e0 {
|
|
|
36699
36703
|
if (f.nodeType == 3) {
|
|
36700
36704
|
if (c = !!(h && f.nodeValue[h - 1] == `
|
|
36701
36705
|
`), c && h == f.nodeValue.length)
|
|
36702
|
-
for (let p = f,
|
|
36703
|
-
if (
|
|
36704
|
-
|
|
36706
|
+
for (let p = f, g; p; p = p.parentNode) {
|
|
36707
|
+
if (g = p.nextSibling) {
|
|
36708
|
+
g.nodeName == "BR" && (a = l = { node: g.parentNode, offset: Pt(g) + 1 });
|
|
36705
36709
|
break;
|
|
36706
36710
|
}
|
|
36707
36711
|
let m = p.pmViewDesc;
|
|
@@ -37391,14 +37395,14 @@ function A$(t, e, n, r) {
|
|
|
37391
37395
|
if (f.isText) {
|
|
37392
37396
|
let m = p;
|
|
37393
37397
|
s < i.length && i[s].from < m && (m = i[s].from);
|
|
37394
|
-
for (let
|
|
37395
|
-
a[
|
|
37398
|
+
for (let y = 0; y < a.length; y++)
|
|
37399
|
+
a[y].to < m && (m = a[y].to);
|
|
37396
37400
|
m < p && (l = f.cut(m - o), f = f.cut(0, m - o), p = m, h = -1);
|
|
37397
37401
|
} else
|
|
37398
37402
|
for (; s < i.length && i[s].to < p; )
|
|
37399
37403
|
s++;
|
|
37400
|
-
let
|
|
37401
|
-
r(f,
|
|
37404
|
+
let g = f.isInline && !f.isLeaf ? a.filter((m) => !m.inline) : a.slice();
|
|
37405
|
+
r(f, g, e.forChild(o, f), h), o = p;
|
|
37402
37406
|
}
|
|
37403
37407
|
}
|
|
37404
37408
|
function I$(t) {
|
|
@@ -37861,9 +37865,9 @@ function A7(t, e, n, r, i) {
|
|
|
37861
37865
|
a = d;
|
|
37862
37866
|
else {
|
|
37863
37867
|
let f = i.marks(), { schema: h } = t.state, p = Wn.fromSchema(h);
|
|
37864
|
-
s = document.createElement("div"), e.split(/(?:\r\n?|\n)+/).forEach((
|
|
37868
|
+
s = document.createElement("div"), e.split(/(?:\r\n?|\n)+/).forEach((g) => {
|
|
37865
37869
|
let m = s.appendChild(document.createElement("p"));
|
|
37866
|
-
|
|
37870
|
+
g && m.appendChild(p.serializeNode(h.text(g, f)));
|
|
37867
37871
|
});
|
|
37868
37872
|
}
|
|
37869
37873
|
} else
|
|
@@ -38378,7 +38382,7 @@ Nt.drop = (t, e) => {
|
|
|
38378
38382
|
u.setSelection(new re(h));
|
|
38379
38383
|
else {
|
|
38380
38384
|
let p = u.mapping.map(l);
|
|
38381
|
-
u.mapping.maps[u.mapping.maps.length - 1].forEach((
|
|
38385
|
+
u.mapping.maps[u.mapping.maps.length - 1].forEach((g, m, y, v) => p = v), u.setSelection(Mf(t, h, u.doc.resolve(p)));
|
|
38382
38386
|
}
|
|
38383
38387
|
t.focus(), t.dispatch(u.setMeta("uiEvent", "drop"));
|
|
38384
38388
|
};
|
|
@@ -38776,14 +38780,14 @@ function hF(t, e, n, r, i, o, s) {
|
|
|
38776
38780
|
let a = t.slice();
|
|
38777
38781
|
for (let u = 0, c = o; u < n.maps.length; u++) {
|
|
38778
38782
|
let d = 0;
|
|
38779
|
-
n.maps[u].forEach((f, h, p,
|
|
38780
|
-
let m =
|
|
38781
|
-
for (let
|
|
38782
|
-
let v = a[
|
|
38783
|
+
n.maps[u].forEach((f, h, p, g) => {
|
|
38784
|
+
let m = g - p - (h - f);
|
|
38785
|
+
for (let y = 0; y < a.length; y += 3) {
|
|
38786
|
+
let v = a[y + 1];
|
|
38783
38787
|
if (v < 0 || f > v + c - d)
|
|
38784
38788
|
continue;
|
|
38785
|
-
let S = a[
|
|
38786
|
-
h >= S ? a[
|
|
38789
|
+
let S = a[y] + c - d;
|
|
38790
|
+
h >= S ? a[y + 1] = f <= S ? -2 : -1 : f >= c && m && (a[y] += m, a[y + 1] += m);
|
|
38787
38791
|
}
|
|
38788
38792
|
d += m;
|
|
38789
38793
|
}), c = n.maps[u].map(c, -1);
|
|
@@ -38800,10 +38804,10 @@ function hF(t, e, n, r, i, o, s) {
|
|
|
38800
38804
|
l = !0;
|
|
38801
38805
|
continue;
|
|
38802
38806
|
}
|
|
38803
|
-
let f = n.map(t[u + 1] + o, -1), h = f - i, { index: p, offset:
|
|
38804
|
-
if (m &&
|
|
38805
|
-
let
|
|
38806
|
-
|
|
38807
|
+
let f = n.map(t[u + 1] + o, -1), h = f - i, { index: p, offset: g } = r.content.findIndex(d), m = r.maybeChild(p);
|
|
38808
|
+
if (m && g == d && g + m.nodeSize == h) {
|
|
38809
|
+
let y = a[u + 2].mapInner(n, m, c + 1, t[u] + o + 1, s);
|
|
38810
|
+
y != wt ? (a[u] = d, a[u + 1] = h, a[u + 2] = y) : (a[u + 1] = -2, l = !0);
|
|
38807
38811
|
} else
|
|
38808
38812
|
l = !0;
|
|
38809
38813
|
}
|
|
@@ -39084,15 +39088,15 @@ function SF(t, e, n) {
|
|
|
39084
39088
|
let { node: r, fromOffset: i, toOffset: o, from: s, to: a } = t.docView.parseRange(e, n), l = t.domSelectionRange(), u, c = l.anchorNode;
|
|
39085
39089
|
if (c && t.dom.contains(c.nodeType == 1 ? c : c.parentNode) && (u = [{ node: c, offset: l.anchorOffset }], k2(l) || u.push({ node: l.focusNode, offset: l.focusOffset })), kt && t.input.lastKeyCode === 8)
|
|
39086
39090
|
for (let m = o; m > i; m--) {
|
|
39087
|
-
let
|
|
39088
|
-
if (
|
|
39091
|
+
let y = r.childNodes[m - 1], v = y.pmViewDesc;
|
|
39092
|
+
if (y.nodeName == "BR" && !v) {
|
|
39089
39093
|
o = m;
|
|
39090
39094
|
break;
|
|
39091
39095
|
}
|
|
39092
39096
|
if (!v || v.size)
|
|
39093
39097
|
break;
|
|
39094
39098
|
}
|
|
39095
|
-
let d = t.state.doc, f = t.someProp("domParser") || Ho.fromSchema(t.state.schema), h = d.resolve(s), p = null,
|
|
39099
|
+
let d = t.state.doc, f = t.someProp("domParser") || Ho.fromSchema(t.state.schema), h = d.resolve(s), p = null, g = f.parse(r, {
|
|
39096
39100
|
topNode: h.parent,
|
|
39097
39101
|
topMatch: h.parent.contentMatchAt(h.index()),
|
|
39098
39102
|
topOpen: !0,
|
|
@@ -39104,10 +39108,10 @@ function SF(t, e, n) {
|
|
|
39104
39108
|
context: h
|
|
39105
39109
|
});
|
|
39106
39110
|
if (u && u[0].pos != null) {
|
|
39107
|
-
let m = u[0].pos,
|
|
39108
|
-
|
|
39111
|
+
let m = u[0].pos, y = u[1] && u[1].pos;
|
|
39112
|
+
y == null && (y = m), p = { anchor: m + s, head: y + s };
|
|
39109
39113
|
}
|
|
39110
|
-
return { doc:
|
|
39114
|
+
return { doc: g, sel: p, from: s, to: a };
|
|
39111
39115
|
}
|
|
39112
39116
|
function CF(t) {
|
|
39113
39117
|
let e = t.pmViewDesc;
|
|
@@ -39163,31 +39167,31 @@ function OF(t, e, n, r, i) {
|
|
|
39163
39167
|
u.sel = { anchor: u.sel.anchor + $, head: u.sel.anchor + $ };
|
|
39164
39168
|
}
|
|
39165
39169
|
t.input.domChangeCount++, t.state.selection.from < t.state.selection.to && p.start == p.endB && t.state.selection instanceof ue && (p.start > t.state.selection.from && p.start <= t.state.selection.from + 2 && t.state.selection.from >= u.from ? p.start = t.state.selection.from : p.endA < t.state.selection.to && p.endA >= t.state.selection.to - 2 && t.state.selection.to <= u.to && (p.endB += t.state.selection.to - p.endA, p.endA = t.state.selection.to)), Zt && Yr <= 11 && p.endB == p.start + 1 && p.endA == p.start && p.start > u.from && u.doc.textBetween(p.start - u.from - 1, p.start - u.from + 1) == " " && (p.start--, p.endA--, p.endB--);
|
|
39166
|
-
let
|
|
39167
|
-
if ((jo && t.input.lastIOSEnter > Date.now() - 225 && (!v || i.some(($) => $.nodeName == "DIV" || $.nodeName == "P")) || !v &&
|
|
39170
|
+
let g = u.doc.resolveNoCache(p.start - u.from), m = u.doc.resolveNoCache(p.endB - u.from), y = c.resolve(p.start), v = g.sameParent(m) && g.parent.inlineContent && y.end() >= p.endA, S;
|
|
39171
|
+
if ((jo && t.input.lastIOSEnter > Date.now() - 225 && (!v || i.some(($) => $.nodeName == "DIV" || $.nodeName == "P")) || !v && g.pos < u.doc.content.size && !g.sameParent(m) && (S = pe.findFrom(u.doc.resolve(g.pos + 1), 1, !0)) && S.head == m.pos) && t.someProp("handleKeyDown", ($) => $(t, Ii(13, "Enter")))) {
|
|
39168
39172
|
t.input.lastIOSEnter = 0;
|
|
39169
39173
|
return;
|
|
39170
39174
|
}
|
|
39171
|
-
if (t.state.selection.anchor > p.start && EF(c, p.start, p.endA,
|
|
39175
|
+
if (t.state.selection.anchor > p.start && EF(c, p.start, p.endA, g, m) && t.someProp("handleKeyDown", ($) => $(t, Ii(8, "Backspace")))) {
|
|
39172
39176
|
xn && kt && t.domObserver.suppressSelectionUpdates();
|
|
39173
39177
|
return;
|
|
39174
39178
|
}
|
|
39175
|
-
kt && xn && p.endB == p.start && (t.input.lastAndroidDelete = Date.now()), xn && !v &&
|
|
39179
|
+
kt && xn && p.endB == p.start && (t.input.lastAndroidDelete = Date.now()), xn && !v && g.start() != m.start() && m.parentOffset == 0 && g.depth == m.depth && u.sel && u.sel.anchor == u.sel.head && u.sel.head == p.endA && (p.endB -= 2, m = u.doc.resolveNoCache(p.endB - u.from), setTimeout(() => {
|
|
39176
39180
|
t.someProp("handleKeyDown", function($) {
|
|
39177
39181
|
return $(t, Ii(13, "Enter"));
|
|
39178
39182
|
});
|
|
39179
39183
|
}, 20));
|
|
39180
39184
|
let w = p.start, T = p.endA, C, E, A;
|
|
39181
39185
|
if (v) {
|
|
39182
|
-
if (
|
|
39183
|
-
Zt && Yr <= 11 &&
|
|
39186
|
+
if (g.pos == m.pos)
|
|
39187
|
+
Zt && Yr <= 11 && g.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => hr(t), 20)), C = t.state.tr.delete(w, T), E = c.resolve(p.start).marksAcross(c.resolve(p.endA));
|
|
39184
39188
|
else if (
|
|
39185
39189
|
// Adding or removing a mark
|
|
39186
|
-
p.endA == p.endB && (A = TF(
|
|
39190
|
+
p.endA == p.endB && (A = TF(g.parent.content.cut(g.parentOffset, m.parentOffset), y.parent.content.cut(y.parentOffset, p.endA - y.start())))
|
|
39187
39191
|
)
|
|
39188
39192
|
C = t.state.tr, A.type == "add" ? C.addMark(w, T, A.mark) : C.removeMark(w, T, A.mark);
|
|
39189
|
-
else if (
|
|
39190
|
-
let $ =
|
|
39193
|
+
else if (g.parent.child(g.index()).isText && g.index() == m.index() - (m.textOffset ? 0 : 1)) {
|
|
39194
|
+
let $ = g.parent.textBetween(g.parentOffset, m.parentOffset);
|
|
39191
39195
|
if (t.someProp("handleTextInput", (z) => z(t, w, T, $)))
|
|
39192
39196
|
return;
|
|
39193
39197
|
C = t.state.tr.insertText($, w, T);
|
|
@@ -40028,8 +40032,8 @@ function Y7(t, e, n) {
|
|
|
40028
40032
|
if (a && (o = (s = r.contentMatchAt(r.childCount)).findWrapping(i.type)) && s.matchType(o[0] || i.type).validEnd) {
|
|
40029
40033
|
if (n) {
|
|
40030
40034
|
let d = e.pos + i.nodeSize, f = V.empty;
|
|
40031
|
-
for (let
|
|
40032
|
-
f = V.from(o[
|
|
40035
|
+
for (let g = o.length - 1; g >= 0; g--)
|
|
40036
|
+
f = V.from(o[g].create(null, f));
|
|
40033
40037
|
f = V.from(r.copy(f));
|
|
40034
40038
|
let h = t.tr.step(new at(e.pos - 1, d, e.pos, d, new G(f, 1, 0), o.length, !0)), p = d + 2 * o.length;
|
|
40035
40039
|
ci(h.doc, p) && h.join(p), n(h.scrollIntoView());
|
|
@@ -40048,10 +40052,10 @@ function Y7(t, e, n) {
|
|
|
40048
40052
|
p++;
|
|
40049
40053
|
if (d.canReplace(d.childCount, d.childCount, h.content)) {
|
|
40050
40054
|
if (n) {
|
|
40051
|
-
let
|
|
40052
|
-
for (let
|
|
40053
|
-
|
|
40054
|
-
let m = t.tr.step(new at(e.pos - f.length, e.pos + i.nodeSize, e.pos + p, e.pos + i.nodeSize - p, new G(
|
|
40055
|
+
let g = V.empty;
|
|
40056
|
+
for (let y = f.length - 1; y >= 0; y--)
|
|
40057
|
+
g = V.from(f[y].copy(g));
|
|
40058
|
+
let m = t.tr.step(new at(e.pos - f.length, e.pos + i.nodeSize, e.pos + p, e.pos + i.nodeSize - p, new G(g, f.length, 0), 0, !0));
|
|
40055
40059
|
n(m.scrollIntoView());
|
|
40056
40060
|
}
|
|
40057
40061
|
return !0;
|
|
@@ -40154,7 +40158,7 @@ function sB(t, e, n, r) {
|
|
|
40154
40158
|
}
|
|
40155
40159
|
function aB(t, e, n) {
|
|
40156
40160
|
let r = t.tr, i = n.parent;
|
|
40157
|
-
for (let h = n.end, p = n.endIndex - 1,
|
|
40161
|
+
for (let h = n.end, p = n.endIndex - 1, g = n.startIndex; p > g; p--)
|
|
40158
40162
|
h -= i.child(p).nodeSize, r.delete(h - 1, h + 1);
|
|
40159
40163
|
let o = r.doc.resolve(n.start), s = o.nodeAfter;
|
|
40160
40164
|
if (r.mapping.map(n.end) != n.start + o.nodeAfter.nodeSize)
|
|
@@ -40233,9 +40237,9 @@ class M2 {
|
|
|
40233
40237
|
}
|
|
40234
40238
|
createChain(e, n = !0) {
|
|
40235
40239
|
const { rawCommands: r, editor: i, state: o } = this, { view: s } = i, a = [], l = !!e, u = e || o.tr, c = () => (!l && n && !u.getMeta("preventDispatch") && !this.hasCustomState && s.dispatch(u), a.every((f) => f === !0)), d = {
|
|
40236
|
-
...Object.fromEntries(Object.entries(r).map(([f, h]) => [f, (...
|
|
40237
|
-
const m = this.buildProps(u, n),
|
|
40238
|
-
return a.push(
|
|
40240
|
+
...Object.fromEntries(Object.entries(r).map(([f, h]) => [f, (...g) => {
|
|
40241
|
+
const m = this.buildProps(u, n), y = h(...g)(m);
|
|
40242
|
+
return a.push(y), d;
|
|
40239
40243
|
}])),
|
|
40240
40244
|
run: c
|
|
40241
40245
|
};
|
|
@@ -40422,15 +40426,15 @@ function jm(t) {
|
|
|
40422
40426
|
function fB(t, e) {
|
|
40423
40427
|
var n;
|
|
40424
40428
|
const r = Q7(t), { nodeExtensions: i, markExtensions: o } = x2(t), s = (n = i.find((u) => Q(u, "topNode"))) === null || n === void 0 ? void 0 : n.name, a = Object.fromEntries(i.map((u) => {
|
|
40425
|
-
const c = r.filter((
|
|
40429
|
+
const c = r.filter((y) => y.type === u.name), d = {
|
|
40426
40430
|
name: u.name,
|
|
40427
40431
|
options: u.options,
|
|
40428
40432
|
storage: u.storage,
|
|
40429
40433
|
editor: e
|
|
40430
|
-
}, f = t.reduce((
|
|
40434
|
+
}, f = t.reduce((y, v) => {
|
|
40431
40435
|
const S = Q(v, "extendNodeSchema", d);
|
|
40432
40436
|
return {
|
|
40433
|
-
...
|
|
40437
|
+
...y,
|
|
40434
40438
|
...S ? S(u) : {}
|
|
40435
40439
|
};
|
|
40436
40440
|
}, {}), h = jm({
|
|
@@ -40445,16 +40449,16 @@ function fB(t, e) {
|
|
|
40445
40449
|
code: he(Q(u, "code", d)),
|
|
40446
40450
|
defining: he(Q(u, "defining", d)),
|
|
40447
40451
|
isolating: he(Q(u, "isolating", d)),
|
|
40448
|
-
attrs: Object.fromEntries(c.map((
|
|
40452
|
+
attrs: Object.fromEntries(c.map((y) => {
|
|
40449
40453
|
var v;
|
|
40450
|
-
return [
|
|
40454
|
+
return [y.name, { default: (v = y == null ? void 0 : y.attribute) === null || v === void 0 ? void 0 : v.default }];
|
|
40451
40455
|
}))
|
|
40452
40456
|
}), p = he(Q(u, "parseHTML", d));
|
|
40453
|
-
p && (h.parseDOM = p.map((
|
|
40454
|
-
const
|
|
40455
|
-
|
|
40456
|
-
node:
|
|
40457
|
-
HTMLAttributes: Gc(
|
|
40457
|
+
p && (h.parseDOM = p.map((y) => zm(y, c)));
|
|
40458
|
+
const g = Q(u, "renderHTML", d);
|
|
40459
|
+
g && (h.toDOM = (y) => g({
|
|
40460
|
+
node: y,
|
|
40461
|
+
HTMLAttributes: Gc(y, c)
|
|
40458
40462
|
}));
|
|
40459
40463
|
const m = Q(u, "renderText", d);
|
|
40460
40464
|
return m && (h.toText = m), [u.name, h];
|
|
@@ -40464,8 +40468,8 @@ function fB(t, e) {
|
|
|
40464
40468
|
options: u.options,
|
|
40465
40469
|
storage: u.storage,
|
|
40466
40470
|
editor: e
|
|
40467
|
-
}, f = t.reduce((m,
|
|
40468
|
-
const v = Q(
|
|
40471
|
+
}, f = t.reduce((m, y) => {
|
|
40472
|
+
const v = Q(y, "extendMarkSchema", d);
|
|
40469
40473
|
return {
|
|
40470
40474
|
...m,
|
|
40471
40475
|
...v ? v(u) : {}
|
|
@@ -40478,13 +40482,13 @@ function fB(t, e) {
|
|
|
40478
40482
|
spanning: he(Q(u, "spanning", d)),
|
|
40479
40483
|
code: he(Q(u, "code", d)),
|
|
40480
40484
|
attrs: Object.fromEntries(c.map((m) => {
|
|
40481
|
-
var
|
|
40482
|
-
return [m.name, { default: (
|
|
40485
|
+
var y;
|
|
40486
|
+
return [m.name, { default: (y = m == null ? void 0 : m.attribute) === null || y === void 0 ? void 0 : y.default }];
|
|
40483
40487
|
}))
|
|
40484
40488
|
}), p = he(Q(u, "parseHTML", d));
|
|
40485
40489
|
p && (h.parseDOM = p.map((m) => zm(m, c)));
|
|
40486
|
-
const
|
|
40487
|
-
return
|
|
40490
|
+
const g = Q(u, "renderHTML", d);
|
|
40491
|
+
return g && (h.toDOM = (m) => g({
|
|
40488
40492
|
mark: m,
|
|
40489
40493
|
HTMLAttributes: Gc(m, c)
|
|
40490
40494
|
})), [u.name, h];
|
|
@@ -40551,21 +40555,21 @@ function Eu(t) {
|
|
|
40551
40555
|
const h = pB(d, f.find);
|
|
40552
40556
|
if (!h)
|
|
40553
40557
|
return;
|
|
40554
|
-
const p = l.state.tr,
|
|
40558
|
+
const p = l.state.tr, g = E2({
|
|
40555
40559
|
state: l.state,
|
|
40556
40560
|
transaction: p
|
|
40557
40561
|
}), m = {
|
|
40558
40562
|
from: r - (h[0].length - o.length),
|
|
40559
40563
|
to: i
|
|
40560
|
-
}, { commands:
|
|
40564
|
+
}, { commands: y, chain: v, can: S } = new M2({
|
|
40561
40565
|
editor: n,
|
|
40562
|
-
state:
|
|
40566
|
+
state: g
|
|
40563
40567
|
});
|
|
40564
40568
|
f.handler({
|
|
40565
|
-
state:
|
|
40569
|
+
state: g,
|
|
40566
40570
|
range: m,
|
|
40567
40571
|
match: h,
|
|
40568
|
-
commands:
|
|
40572
|
+
commands: y,
|
|
40569
40573
|
chain: v,
|
|
40570
40574
|
can: S
|
|
40571
40575
|
}) === null || !p.steps.length || (p.setMeta(a, {
|
|
@@ -40658,11 +40662,11 @@ function bB(t) {
|
|
|
40658
40662
|
return n.doc.nodesBetween(r, i, (h, p) => {
|
|
40659
40663
|
if (!h.isTextblock || h.type.spec.code)
|
|
40660
40664
|
return;
|
|
40661
|
-
const
|
|
40662
|
-
vB(
|
|
40665
|
+
const g = Math.max(r, p), m = Math.min(i, p + h.content.size), y = h.textBetween(g - p, m - p, void 0, "");
|
|
40666
|
+
vB(y, o.find, s).forEach((S) => {
|
|
40663
40667
|
if (S.index === void 0)
|
|
40664
40668
|
return;
|
|
40665
|
-
const w =
|
|
40669
|
+
const w = g + S.index + 1, T = w + S[0].length, C = {
|
|
40666
40670
|
from: n.tr.mapping.map(w),
|
|
40667
40671
|
to: n.tr.mapping.map(T)
|
|
40668
40672
|
}, E = o.handler({
|
|
@@ -40706,11 +40710,11 @@ function wB(t) {
|
|
|
40706
40710
|
}
|
|
40707
40711
|
},
|
|
40708
40712
|
appendTransaction: (c, d, f) => {
|
|
40709
|
-
const h = c[0], p = h.getMeta("uiEvent") === "paste" && !i,
|
|
40710
|
-
if (!p && !
|
|
40713
|
+
const h = c[0], p = h.getMeta("uiEvent") === "paste" && !i, g = h.getMeta("uiEvent") === "drop" && !o;
|
|
40714
|
+
if (!p && !g)
|
|
40711
40715
|
return;
|
|
40712
|
-
const m = d.doc.content.findDiffStart(f.doc.content),
|
|
40713
|
-
if (!gB(m) || !
|
|
40716
|
+
const m = d.doc.content.findDiffStart(f.doc.content), y = d.doc.content.findDiffEnd(f.doc.content);
|
|
40717
|
+
if (!gB(m) || !y || m === y.b)
|
|
40714
40718
|
return;
|
|
40715
40719
|
const v = f.tr, S = E2({
|
|
40716
40720
|
state: f,
|
|
@@ -40720,7 +40724,7 @@ function wB(t) {
|
|
|
40720
40724
|
editor: e,
|
|
40721
40725
|
state: S,
|
|
40722
40726
|
from: Math.max(m - 1, 0),
|
|
40723
|
-
to:
|
|
40727
|
+
to: y.b - 1,
|
|
40724
40728
|
rule: u,
|
|
40725
40729
|
pasteEvent: s,
|
|
40726
40730
|
dropEvent: a
|
|
@@ -40810,8 +40814,8 @@ class Mo {
|
|
|
40810
40814
|
}, l = [], u = Q(s, "addKeyboardShortcuts", a);
|
|
40811
40815
|
let c = {};
|
|
40812
40816
|
if (s.type === "mark" && s.config.exitable && (c.ArrowRight = () => tn.handleExit({ editor: e, mark: s })), u) {
|
|
40813
|
-
const
|
|
40814
|
-
c = { ...c, ...
|
|
40817
|
+
const g = Object.fromEntries(Object.entries(u()).map(([m, y]) => [m, () => y({ editor: e })]));
|
|
40818
|
+
c = { ...c, ...g };
|
|
40815
40819
|
}
|
|
40816
40820
|
const d = FF(c);
|
|
40817
40821
|
l.push(d);
|
|
@@ -40821,8 +40825,8 @@ class Mo {
|
|
|
40821
40825
|
Zm(s, e.options.enablePasteRules) && h && i.push(...h());
|
|
40822
40826
|
const p = Q(s, "addProseMirrorPlugins", a);
|
|
40823
40827
|
if (p) {
|
|
40824
|
-
const
|
|
40825
|
-
l.push(...
|
|
40828
|
+
const g = p();
|
|
40829
|
+
l.push(...g);
|
|
40826
40830
|
}
|
|
40827
40831
|
return l;
|
|
40828
40832
|
}).flat();
|
|
@@ -40966,8 +40970,8 @@ const kB = Et.create({
|
|
|
40966
40970
|
return;
|
|
40967
40971
|
const p = as(h);
|
|
40968
40972
|
if (a.type.isTextblock) {
|
|
40969
|
-
const { defaultType:
|
|
40970
|
-
e.setNodeMarkup(h.start,
|
|
40973
|
+
const { defaultType: g } = d.parent.contentMatchAt(d.index());
|
|
40974
|
+
e.setNodeMarkup(h.start, g);
|
|
40971
40975
|
}
|
|
40972
40976
|
(p || p === 0) && e.lift(h, p);
|
|
40973
40977
|
});
|
|
@@ -41418,13 +41422,13 @@ function Yc(t, e, n = {}) {
|
|
|
41418
41422
|
const a = [];
|
|
41419
41423
|
if (i.forEach(({ $from: d, $to: f }) => {
|
|
41420
41424
|
const h = d.pos, p = f.pos;
|
|
41421
|
-
t.doc.nodesBetween(h, p, (
|
|
41422
|
-
if (!
|
|
41425
|
+
t.doc.nodesBetween(h, p, (g, m) => {
|
|
41426
|
+
if (!g.isText && !g.marks.length)
|
|
41423
41427
|
return;
|
|
41424
|
-
const
|
|
41425
|
-
s += S, a.push(...
|
|
41428
|
+
const y = Math.max(h, m), v = Math.min(p, m + g.nodeSize), S = v - y;
|
|
41429
|
+
s += S, a.push(...g.marks.map((w) => ({
|
|
41426
41430
|
mark: w,
|
|
41427
|
-
from:
|
|
41431
|
+
from: y,
|
|
41428
41432
|
to: v
|
|
41429
41433
|
})));
|
|
41430
41434
|
});
|
|
@@ -41459,7 +41463,7 @@ function EV(t) {
|
|
|
41459
41463
|
return t instanceof re;
|
|
41460
41464
|
}
|
|
41461
41465
|
function s4(t, e, n) {
|
|
41462
|
-
const i = t.state.doc.content.size, o = dr(e, 0, i), s = dr(n, 0, i), a = t.coordsAtPos(o), l = t.coordsAtPos(s, -1), u = Math.min(a.top, l.top), c = Math.max(a.bottom, l.bottom), d = Math.min(a.left, l.left), f = Math.max(a.right, l.right), h = f - d, p = c - u,
|
|
41466
|
+
const i = t.state.doc.content.size, o = dr(e, 0, i), s = dr(n, 0, i), a = t.coordsAtPos(o), l = t.coordsAtPos(s, -1), u = Math.min(a.top, l.top), c = Math.max(a.bottom, l.bottom), d = Math.min(a.left, l.left), f = Math.max(a.right, l.right), h = f - d, p = c - u, y = {
|
|
41463
41467
|
top: u,
|
|
41464
41468
|
bottom: c,
|
|
41465
41469
|
left: d,
|
|
@@ -41470,8 +41474,8 @@ function s4(t, e, n) {
|
|
|
41470
41474
|
y: u
|
|
41471
41475
|
};
|
|
41472
41476
|
return {
|
|
41473
|
-
...
|
|
41474
|
-
toJSON: () =>
|
|
41477
|
+
...y,
|
|
41478
|
+
toJSON: () => y
|
|
41475
41479
|
};
|
|
41476
41480
|
}
|
|
41477
41481
|
function MV(t, e, n) {
|
|
@@ -41489,7 +41493,7 @@ function MV(t, e, n) {
|
|
|
41489
41493
|
if (u)
|
|
41490
41494
|
return !1;
|
|
41491
41495
|
if (c.isInline) {
|
|
41492
|
-
const h = !f || f.type.allowsMarkType(n), p = !!n.isInSet(c.marks) || !c.marks.some((
|
|
41496
|
+
const h = !f || f.type.allowsMarkType(n), p = !!n.isInSet(c.marks) || !c.marks.some((g) => g.type.excludes(n));
|
|
41493
41497
|
u = h && p;
|
|
41494
41498
|
}
|
|
41495
41499
|
return !u;
|
|
@@ -41509,13 +41513,13 @@ const xV = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
|
41509
41513
|
a.forEach((u) => {
|
|
41510
41514
|
const c = u.$from.pos, d = u.$to.pos;
|
|
41511
41515
|
r.doc.nodesBetween(c, d, (f, h) => {
|
|
41512
|
-
const p = Math.max(h, c),
|
|
41513
|
-
f.marks.find((
|
|
41514
|
-
l ===
|
|
41515
|
-
...
|
|
41516
|
+
const p = Math.max(h, c), g = Math.min(h + f.nodeSize, d);
|
|
41517
|
+
f.marks.find((y) => y.type === l) ? f.marks.forEach((y) => {
|
|
41518
|
+
l === y.type && n.addMark(p, g, l.create({
|
|
41519
|
+
...y.attrs,
|
|
41516
41520
|
...e
|
|
41517
41521
|
}));
|
|
41518
|
-
}) : n.addMark(p,
|
|
41522
|
+
}) : n.addMark(p, g, l.create(e));
|
|
41519
41523
|
});
|
|
41520
41524
|
});
|
|
41521
41525
|
return MV(r, n, l);
|
|
@@ -41567,7 +41571,7 @@ const LV = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
41567
41571
|
attrs: c
|
|
41568
41572
|
}
|
|
41569
41573
|
] : void 0), p && (e.split(e.mapping.map(a.pos), 1, h), f && !d && !a.parentOffset && a.parent.type !== f)) {
|
|
41570
|
-
const
|
|
41574
|
+
const g = e.mapping.map(a.before()), m = e.doc.resolve(g);
|
|
41571
41575
|
a.node(-1).canReplaceWith(m.index(), m.index() + 1, f) && e.setNodeMarkup(e.mapping.map(a.before()), f);
|
|
41572
41576
|
}
|
|
41573
41577
|
t && Gm(n, i.extensionManager.splittableMarks), e.scrollIntoView();
|
|
@@ -41587,13 +41591,13 @@ const LV = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
41587
41591
|
return !1;
|
|
41588
41592
|
if (r) {
|
|
41589
41593
|
let m = V.empty;
|
|
41590
|
-
const
|
|
41591
|
-
for (let E = a.depth -
|
|
41594
|
+
const y = a.index(-1) ? 1 : a.index(-2) ? 2 : 3;
|
|
41595
|
+
for (let E = a.depth - y; E >= a.depth - 3; E -= 1)
|
|
41592
41596
|
m = V.from(a.node(E).copy(m));
|
|
41593
41597
|
const v = a.indexAfter(-1) < a.node(-2).childCount ? 1 : a.indexAfter(-2) < a.node(-3).childCount ? 2 : 3, S = j0(d, a.node().type.name, a.node().attrs), w = ((o = s.contentMatch.defaultType) === null || o === void 0 ? void 0 : o.createAndFill(S)) || void 0;
|
|
41594
41598
|
m = m.append(V.from(s.createAndFill(null, w) || void 0));
|
|
41595
|
-
const T = a.before(a.depth - (
|
|
41596
|
-
e.replace(T, a.after(-v), new G(m, 4 -
|
|
41599
|
+
const T = a.before(a.depth - (y - 1));
|
|
41600
|
+
e.replace(T, a.after(-v), new G(m, 4 - y, 0));
|
|
41597
41601
|
let C = -1;
|
|
41598
41602
|
e.doc.nodesBetween(T, e.doc.content.size, (E, A) => {
|
|
41599
41603
|
if (C > -1)
|
|
@@ -41605,15 +41609,15 @@ const LV = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
41605
41609
|
}
|
|
41606
41610
|
const f = l.pos === a.end() ? c.contentMatchAt(0).defaultType : null, h = j0(d, c.type.name, c.attrs), p = j0(d, a.node().type.name, a.node().attrs);
|
|
41607
41611
|
e.delete(a.pos, l.pos);
|
|
41608
|
-
const
|
|
41612
|
+
const g = f ? [
|
|
41609
41613
|
{ type: s, attrs: h },
|
|
41610
41614
|
{ type: f, attrs: p }
|
|
41611
41615
|
] : [{ type: s, attrs: h }];
|
|
41612
41616
|
if (!Ro(e.doc, a.pos, 2))
|
|
41613
41617
|
return !1;
|
|
41614
41618
|
if (r) {
|
|
41615
|
-
const { selection: m, storedMarks:
|
|
41616
|
-
if (e.split(a.pos, 2,
|
|
41619
|
+
const { selection: m, storedMarks: y } = n, { splittableMarks: v } = i.extensionManager, S = y || m.$to.parentOffset && m.$from.marks();
|
|
41620
|
+
if (e.split(a.pos, 2, g).scrollIntoView(), !S || !r)
|
|
41617
41621
|
return !0;
|
|
41618
41622
|
const w = S.filter((T) => v.includes(T.type.name));
|
|
41619
41623
|
e.ensureMarks(w);
|
|
@@ -41638,10 +41642,10 @@ const LV = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
41638
41642
|
const i = t.doc.nodeAt(r);
|
|
41639
41643
|
return n.node.type === (i == null ? void 0 : i.type) && ci(t.doc, r) && t.join(r), !0;
|
|
41640
41644
|
}, $V = (t, e, n, r = {}) => ({ editor: i, tr: o, state: s, dispatch: a, chain: l, commands: u, can: c }) => {
|
|
41641
|
-
const { extensions: d, splittableMarks: f } = i.extensionManager, h = ut(t, s.schema), p = ut(e, s.schema), { selection:
|
|
41645
|
+
const { extensions: d, splittableMarks: f } = i.extensionManager, h = ut(t, s.schema), p = ut(e, s.schema), { selection: g, storedMarks: m } = s, { $from: y, $to: v } = g, S = y.blockRange(v), w = m || g.$to.parentOffset && g.$from.marks();
|
|
41642
41646
|
if (!S)
|
|
41643
41647
|
return !1;
|
|
41644
|
-
const T = Hf((C) => Km(C.type.name, d))(
|
|
41648
|
+
const T = Hf((C) => Km(C.type.name, d))(g);
|
|
41645
41649
|
if (S.depth >= 1 && T && S.depth - T.depth <= 1) {
|
|
41646
41650
|
if (T.node.type === h)
|
|
41647
41651
|
return u.liftListItem(p);
|
|
@@ -41693,8 +41697,8 @@ const LV = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
41693
41697
|
return !0;
|
|
41694
41698
|
if (c && s) {
|
|
41695
41699
|
let { from: f, to: h } = a;
|
|
41696
|
-
const p = (o = u.marks().find((m) => m.type === l)) === null || o === void 0 ? void 0 : o.attrs,
|
|
41697
|
-
|
|
41700
|
+
const p = (o = u.marks().find((m) => m.type === l)) === null || o === void 0 ? void 0 : o.attrs, g = $f(u, l, p);
|
|
41701
|
+
g && (f = g.from, h = g.to), n.removeMark(f, h, l);
|
|
41698
41702
|
} else
|
|
41699
41703
|
d.forEach((f) => {
|
|
41700
41704
|
n.removeMark(f.$from.pos, f.$to.pos, l);
|
|
@@ -41711,8 +41715,8 @@ const LV = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
41711
41715
|
...e
|
|
41712
41716
|
}), s && d.marks.length && d.marks.forEach((h) => {
|
|
41713
41717
|
if (s === h.type) {
|
|
41714
|
-
const p = Math.max(f, u),
|
|
41715
|
-
n.addMark(p,
|
|
41718
|
+
const p = Math.max(f, u), g = Math.min(f + d.nodeSize, c);
|
|
41719
|
+
n.addMark(p, g, s.create({
|
|
41716
41720
|
...h.attrs,
|
|
41717
41721
|
...e
|
|
41718
41722
|
}));
|
|
@@ -41838,8 +41842,8 @@ const KV = Et.create({
|
|
|
41838
41842
|
() => s.undoInputRule(),
|
|
41839
41843
|
// maybe convert first text block node to default node
|
|
41840
41844
|
() => s.command(({ tr: a }) => {
|
|
41841
|
-
const { selection: l, doc: u } = a, { empty: c, $anchor: d } = l, { pos: f, parent: h } = d, p = d.parent.isTextblock ? a.doc.resolve(f - 1) : d,
|
|
41842
|
-
return !c || !
|
|
41845
|
+
const { selection: l, doc: u } = a, { empty: c, $anchor: d } = l, { pos: f, parent: h } = d, p = d.parent.isTextblock ? a.doc.resolve(f - 1) : d, g = p.parent.type.spec.isolating, m = d.pos - d.parentOffset, y = g && p.parent.childCount === 1 ? m === d.pos : pe.atStart(u).from === f;
|
|
41846
|
+
return !c || !y || !h.type.isTextblock || h.textContent.length ? !1 : s.clearNodes();
|
|
41843
41847
|
}),
|
|
41844
41848
|
() => s.deleteSelection(),
|
|
41845
41849
|
() => s.joinBackward(),
|
|
@@ -42440,7 +42444,7 @@ function Wo(t) {
|
|
|
42440
42444
|
const { tr: o } = e, s = r[r.length - 1], a = r[0];
|
|
42441
42445
|
if (s) {
|
|
42442
42446
|
const l = a.search(/\S/), u = n.from + a.indexOf(s), c = u + s.length;
|
|
42443
|
-
if (_f(n.from, n.to, e.doc).filter((h) => h.mark.type.excluded.find((
|
|
42447
|
+
if (_f(n.from, n.to, e.doc).filter((h) => h.mark.type.excluded.find((g) => g === t.type && g !== h.mark.type)).filter((h) => h.to > u).length)
|
|
42444
42448
|
return null;
|
|
42445
42449
|
c < n.to && o.delete(c, n.to), u > n.from && o.delete(n.from + l, u);
|
|
42446
42450
|
const f = n.from + l + s.length;
|
|
@@ -42489,8 +42493,8 @@ function Ia(t) {
|
|
|
42489
42493
|
if (s.wrap(l, u), t.keepMarks && t.editor) {
|
|
42490
42494
|
const { selection: d, storedMarks: f } = e, { splittableMarks: h } = t.editor.extensionManager, p = f || d.$to.parentOffset && d.$from.marks();
|
|
42491
42495
|
if (p) {
|
|
42492
|
-
const
|
|
42493
|
-
s.ensureMarks(
|
|
42496
|
+
const g = p.filter((m) => h.includes(m.type.name));
|
|
42497
|
+
s.ensureMarks(g);
|
|
42494
42498
|
}
|
|
42495
42499
|
}
|
|
42496
42500
|
if (t.keepAttributes) {
|
|
@@ -42809,7 +42813,7 @@ var wH = function(e, n) {
|
|
|
42809
42813
|
function SH(t) {
|
|
42810
42814
|
var e, n = t.state, r = t.name, i = t.options, o = n.elements.arrow, s = n.modifiersData.popperOffsets, a = Gn(n.placement), l = Wf(a), u = [Ut, wn].indexOf(a) >= 0, c = u ? "height" : "width";
|
|
42811
42815
|
if (!(!o || !s)) {
|
|
42812
|
-
var d = wH(i.padding, n), f = Zf(o), h = l === "y" ? Wt : Ut, p = l === "y" ? bn : wn,
|
|
42816
|
+
var d = wH(i.padding, n), f = Zf(o), h = l === "y" ? Wt : Ut, p = l === "y" ? bn : wn, g = n.rects.reference[c] + n.rects.reference[l] - s[l] - n.rects.popper[c], m = s[l] - n.rects.reference[l], y = r0(o), v = y ? l === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, S = g / 2 - m / 2, w = d[h], T = v - f[c] - d[p], C = v / 2 - f[c] / 2 + S, E = Ns(w, C, T), A = l;
|
|
42813
42817
|
n.modifiersData[r] = (e = {}, e[A] = E, e.centerOffset = E - C, e);
|
|
42814
42818
|
}
|
|
42815
42819
|
}
|
|
@@ -42843,15 +42847,15 @@ function TH(t, e) {
|
|
|
42843
42847
|
};
|
|
42844
42848
|
}
|
|
42845
42849
|
function Jm(t) {
|
|
42846
|
-
var e, n = t.popper, r = t.popperRect, i = t.placement, o = t.variation, s = t.offsets, a = t.position, l = t.gpuAcceleration, u = t.adaptive, c = t.roundOffsets, d = t.isFixed, f = s.x, h = f === void 0 ? 0 : f, p = s.y,
|
|
42850
|
+
var e, n = t.popper, r = t.popperRect, i = t.placement, o = t.variation, s = t.offsets, a = t.position, l = t.gpuAcceleration, u = t.adaptive, c = t.roundOffsets, d = t.isFixed, f = s.x, h = f === void 0 ? 0 : f, p = s.y, g = p === void 0 ? 0 : p, m = typeof c == "function" ? c({
|
|
42847
42851
|
x: h,
|
|
42848
|
-
y
|
|
42852
|
+
y: g
|
|
42849
42853
|
}) : {
|
|
42850
42854
|
x: h,
|
|
42851
|
-
y
|
|
42855
|
+
y: g
|
|
42852
42856
|
};
|
|
42853
|
-
h = m.x,
|
|
42854
|
-
var
|
|
42857
|
+
h = m.x, g = m.y;
|
|
42858
|
+
var y = s.hasOwnProperty("x"), v = s.hasOwnProperty("y"), S = Ut, w = Wt, T = window;
|
|
42855
42859
|
if (u) {
|
|
42856
42860
|
var C = r0(n), E = "clientHeight", A = "clientWidth";
|
|
42857
42861
|
if (C === nn(n) && (C = hi(n), yr(C).position !== "static" && a === "absolute" && (E = "scrollHeight", A = "scrollWidth")), C = C, i === Wt || (i === Ut || i === wn) && o === Pa) {
|
|
@@ -42860,7 +42864,7 @@ function Jm(t) {
|
|
|
42860
42864
|
// $FlowFixMe[prop-missing]
|
|
42861
42865
|
C[E]
|
|
42862
42866
|
);
|
|
42863
|
-
|
|
42867
|
+
g -= $ - r.height, g *= l ? 1 : -1;
|
|
42864
42868
|
}
|
|
42865
42869
|
if (i === Ut || (i === Wt || i === bn) && o === Pa) {
|
|
42866
42870
|
S = wn;
|
|
@@ -42875,16 +42879,16 @@ function Jm(t) {
|
|
|
42875
42879
|
position: a
|
|
42876
42880
|
}, u && OH), q = c === !0 ? TH({
|
|
42877
42881
|
x: h,
|
|
42878
|
-
y
|
|
42882
|
+
y: g
|
|
42879
42883
|
}, nn(n)) : {
|
|
42880
42884
|
x: h,
|
|
42881
|
-
y
|
|
42885
|
+
y: g
|
|
42882
42886
|
};
|
|
42883
|
-
if (h = q.x,
|
|
42887
|
+
if (h = q.x, g = q.y, l) {
|
|
42884
42888
|
var te;
|
|
42885
|
-
return Object.assign({}, j, (te = {}, te[w] = v ? "0" : "", te[S] =
|
|
42889
|
+
return Object.assign({}, j, (te = {}, te[w] = v ? "0" : "", te[S] = y ? "0" : "", te.transform = (T.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + g + "px)" : "translate3d(" + h + "px, " + g + "px, 0)", te));
|
|
42886
42890
|
}
|
|
42887
|
-
return Object.assign({}, j, (e = {}, e[w] = v ?
|
|
42891
|
+
return Object.assign({}, j, (e = {}, e[w] = v ? g + "px" : "", e[S] = y ? h + "px" : "", e.transform = "", e));
|
|
42888
42892
|
}
|
|
42889
42893
|
function EH(t) {
|
|
42890
42894
|
var e = t.state, n = t.options, r = n.gpuAcceleration, i = r === void 0 ? !0 : r, o = n.adaptive, s = o === void 0 ? !0 : o, a = n.roundOffsets, l = a === void 0 ? !0 : a, u = {
|
|
@@ -43084,16 +43088,16 @@ function g4(t) {
|
|
|
43084
43088
|
}
|
|
43085
43089
|
function Da(t, e) {
|
|
43086
43090
|
e === void 0 && (e = {});
|
|
43087
|
-
var n = e, r = n.placement, i = r === void 0 ? t.placement : r, o = n.strategy, s = o === void 0 ? t.strategy : o, a = n.boundary, l = a === void 0 ? rH : a, u = n.rootBoundary, c = u === void 0 ? a4 : u, d = n.elementContext, f = d === void 0 ? vs : d, h = n.altBoundary, p = h === void 0 ? !1 : h,
|
|
43091
|
+
var n = e, r = n.placement, i = r === void 0 ? t.placement : r, o = n.strategy, s = o === void 0 ? t.strategy : o, a = n.boundary, l = a === void 0 ? rH : a, u = n.rootBoundary, c = u === void 0 ? a4 : u, d = n.elementContext, f = d === void 0 ? vs : d, h = n.altBoundary, p = h === void 0 ? !1 : h, g = n.padding, m = g === void 0 ? 0 : g, y = h4(typeof m != "number" ? m : p4(m, n0)), v = f === vs ? iH : vs, S = t.rects.popper, w = t.elements[p ? v : f], T = $H(Xi(w) ? w : w.contextElement || hi(t.elements.popper), l, c, s), C = Go(t.elements.reference), E = g4({
|
|
43088
43092
|
reference: C,
|
|
43089
43093
|
element: S,
|
|
43090
43094
|
strategy: "absolute",
|
|
43091
43095
|
placement: i
|
|
43092
43096
|
}), A = ed(Object.assign({}, S, E)), $ = f === vs ? A : C, z = {
|
|
43093
|
-
top: T.top - $.top +
|
|
43094
|
-
bottom: $.bottom - T.bottom +
|
|
43095
|
-
left: T.left - $.left +
|
|
43096
|
-
right: $.right - T.right +
|
|
43097
|
+
top: T.top - $.top + y.top,
|
|
43098
|
+
bottom: $.bottom - T.bottom + y.bottom,
|
|
43099
|
+
left: T.left - $.left + y.left,
|
|
43100
|
+
right: $.right - T.right + y.right
|
|
43097
43101
|
}, j = t.modifiersData.offset;
|
|
43098
43102
|
if (f === vs && j) {
|
|
43099
43103
|
var q = j[i];
|
|
@@ -43112,16 +43116,16 @@ function FH(t, e) {
|
|
|
43112
43116
|
return u.indexOf(p) >= 0;
|
|
43113
43117
|
});
|
|
43114
43118
|
f.length === 0 && (f = d);
|
|
43115
|
-
var h = f.reduce(function(p,
|
|
43116
|
-
return p[
|
|
43117
|
-
placement:
|
|
43119
|
+
var h = f.reduce(function(p, g) {
|
|
43120
|
+
return p[g] = Da(t, {
|
|
43121
|
+
placement: g,
|
|
43118
43122
|
boundary: i,
|
|
43119
43123
|
rootBoundary: o,
|
|
43120
43124
|
padding: s
|
|
43121
|
-
})[Gn(
|
|
43125
|
+
})[Gn(g)], p;
|
|
43122
43126
|
}, {});
|
|
43123
|
-
return Object.keys(h).sort(function(p,
|
|
43124
|
-
return h[p] - h[
|
|
43127
|
+
return Object.keys(h).sort(function(p, g) {
|
|
43128
|
+
return h[p] - h[g];
|
|
43125
43129
|
});
|
|
43126
43130
|
}
|
|
43127
43131
|
function BH(t) {
|
|
@@ -43133,14 +43137,14 @@ function BH(t) {
|
|
|
43133
43137
|
function VH(t) {
|
|
43134
43138
|
var e = t.state, n = t.options, r = t.name;
|
|
43135
43139
|
if (!e.modifiersData[r]._skip) {
|
|
43136
|
-
for (var i = n.mainAxis, o = i === void 0 ? !0 : i, s = n.altAxis, a = s === void 0 ? !0 : s, l = n.fallbackPlacements, u = n.padding, c = n.boundary, d = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, p = h === void 0 ? !0 : h,
|
|
43140
|
+
for (var i = n.mainAxis, o = i === void 0 ? !0 : i, s = n.altAxis, a = s === void 0 ? !0 : s, l = n.fallbackPlacements, u = n.padding, c = n.boundary, d = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, p = h === void 0 ? !0 : h, g = n.allowedAutoPlacements, m = e.options.placement, y = Gn(m), v = y === m, S = l || (v || !p ? [Z0(m)] : BH(m)), w = [m].concat(S).reduce(function(Kt, Gt) {
|
|
43137
43141
|
return Kt.concat(Gn(Gt) === zf ? FH(e, {
|
|
43138
43142
|
placement: Gt,
|
|
43139
43143
|
boundary: c,
|
|
43140
43144
|
rootBoundary: d,
|
|
43141
43145
|
padding: u,
|
|
43142
43146
|
flipVariations: p,
|
|
43143
|
-
allowedAutoPlacements:
|
|
43147
|
+
allowedAutoPlacements: g
|
|
43144
43148
|
}) : Gt);
|
|
43145
43149
|
}, []), T = e.rects.reference, C = e.rects.popper, E = /* @__PURE__ */ new Map(), A = !0, $ = w[0], z = 0; z < w.length; z++) {
|
|
43146
43150
|
var j = w[z], q = Gn(j), te = qo(j) === Uo, me = [Wt, bn].indexOf(q) >= 0, Y = me ? "width" : "height", oe = Da(e, {
|
|
@@ -43273,14 +43277,14 @@ function GH(t) {
|
|
|
43273
43277
|
return t === "x" ? "y" : "x";
|
|
43274
43278
|
}
|
|
43275
43279
|
function qH(t) {
|
|
43276
|
-
var e = t.state, n = t.options, r = t.name, i = n.mainAxis, o = i === void 0 ? !0 : i, s = n.altAxis, a = s === void 0 ? !1 : s, l = n.boundary, u = n.rootBoundary, c = n.altBoundary, d = n.padding, f = n.tether, h = f === void 0 ? !0 : f, p = n.tetherOffset,
|
|
43280
|
+
var e = t.state, n = t.options, r = t.name, i = n.mainAxis, o = i === void 0 ? !0 : i, s = n.altAxis, a = s === void 0 ? !1 : s, l = n.boundary, u = n.rootBoundary, c = n.altBoundary, d = n.padding, f = n.tether, h = f === void 0 ? !0 : f, p = n.tetherOffset, g = p === void 0 ? 0 : p, m = Da(e, {
|
|
43277
43281
|
boundary: l,
|
|
43278
43282
|
rootBoundary: u,
|
|
43279
43283
|
padding: d,
|
|
43280
43284
|
altBoundary: c
|
|
43281
|
-
}),
|
|
43285
|
+
}), y = Gn(e.placement), v = qo(e.placement), S = !v, w = Wf(y), T = GH(w), C = e.modifiersData.popperOffsets, E = e.rects.reference, A = e.rects.popper, $ = typeof g == "function" ? g(Object.assign({}, e.rects, {
|
|
43282
43286
|
placement: e.placement
|
|
43283
|
-
})) :
|
|
43287
|
+
})) : g, z = typeof $ == "number" ? {
|
|
43284
43288
|
mainAxis: $,
|
|
43285
43289
|
altAxis: $
|
|
43286
43290
|
} : Object.assign({
|
|
@@ -43299,7 +43303,7 @@ function qH(t) {
|
|
|
43299
43303
|
C[w] = Tr, q[w] = Tr - ge;
|
|
43300
43304
|
}
|
|
43301
43305
|
if (a) {
|
|
43302
|
-
var gi, oo = w === "x" ? Wt : Ut, so = w === "x" ? bn : wn, Tn = C[T], Nn = T === "y" ? "height" : "width", yi = Tn + m[oo], er = Tn - m[so], vi = [Wt, Ut].indexOf(
|
|
43306
|
+
var gi, oo = w === "x" ? Wt : Ut, so = w === "x" ? bn : wn, Tn = C[T], Nn = T === "y" ? "height" : "width", yi = Tn + m[oo], er = Tn - m[so], vi = [Wt, Ut].indexOf(y) !== -1, Re = (gi = j == null ? void 0 : j[T]) != null ? gi : 0, L = vi ? yi : Tn - E[Nn] - A[Nn] - Re + z.altAxis, H = vi ? Tn + E[Nn] + A[Nn] - Re - z.altAxis : er, ye = h && vi ? bH(L, Tn, H) : Ns(h ? L : yi, Tn, h ? H : er);
|
|
43303
43307
|
C[T] = ye, q[T] = ye - Tn;
|
|
43304
43308
|
}
|
|
43305
43309
|
e.modifiersData[r] = q;
|
|
@@ -43421,9 +43425,9 @@ function o_(t) {
|
|
|
43421
43425
|
styles: {}
|
|
43422
43426
|
}, d = [], f = !1, h = {
|
|
43423
43427
|
state: c,
|
|
43424
|
-
setOptions: function(
|
|
43425
|
-
var v = typeof
|
|
43426
|
-
|
|
43428
|
+
setOptions: function(y) {
|
|
43429
|
+
var v = typeof y == "function" ? y(c.options) : y;
|
|
43430
|
+
g(), c.options = Object.assign({}, o, c.options, v), c.scrollParents = {
|
|
43427
43431
|
reference: Xi(a) ? $s(a) : a.contextElement ? $s(a.contextElement) : [],
|
|
43428
43432
|
popper: $s(l)
|
|
43429
43433
|
};
|
|
@@ -43439,7 +43443,7 @@ function o_(t) {
|
|
|
43439
43443
|
// prefer the async Popper#update method
|
|
43440
43444
|
forceUpdate: function() {
|
|
43441
43445
|
if (!f) {
|
|
43442
|
-
var
|
|
43446
|
+
var y = c.elements, v = y.reference, S = y.popper;
|
|
43443
43447
|
if (rg(v, S)) {
|
|
43444
43448
|
c.rects = {
|
|
43445
43449
|
reference: e_(v, r0(S), c.options.strategy === "fixed"),
|
|
@@ -43471,7 +43475,7 @@ function o_(t) {
|
|
|
43471
43475
|
});
|
|
43472
43476
|
}),
|
|
43473
43477
|
destroy: function() {
|
|
43474
|
-
|
|
43478
|
+
g(), f = !0;
|
|
43475
43479
|
}
|
|
43476
43480
|
};
|
|
43477
43481
|
if (!rg(a, l))
|
|
@@ -43481,11 +43485,11 @@ function o_(t) {
|
|
|
43481
43485
|
});
|
|
43482
43486
|
function p() {
|
|
43483
43487
|
c.orderedModifiers.forEach(function(m) {
|
|
43484
|
-
var
|
|
43488
|
+
var y = m.name, v = m.options, S = v === void 0 ? {} : v, w = m.effect;
|
|
43485
43489
|
if (typeof w == "function") {
|
|
43486
43490
|
var T = w({
|
|
43487
43491
|
state: c,
|
|
43488
|
-
name:
|
|
43492
|
+
name: y,
|
|
43489
43493
|
instance: h,
|
|
43490
43494
|
options: S
|
|
43491
43495
|
}), C = function() {
|
|
@@ -43494,7 +43498,7 @@ function o_(t) {
|
|
|
43494
43498
|
}
|
|
43495
43499
|
});
|
|
43496
43500
|
}
|
|
43497
|
-
function
|
|
43501
|
+
function g() {
|
|
43498
43502
|
d.forEach(function(m) {
|
|
43499
43503
|
return m();
|
|
43500
43504
|
}), d = [];
|
|
@@ -43608,8 +43612,8 @@ function w_(t, e) {
|
|
|
43608
43612
|
var o = i.popperRect, s = i.popperState, a = i.props, l = a.interactiveBorder, u = p_(s.placement), c = s.modifiersData.offset;
|
|
43609
43613
|
if (!c)
|
|
43610
43614
|
return !0;
|
|
43611
|
-
var d = u === "bottom" ? c.top.y : 0, f = u === "top" ? c.bottom.y : 0, h = u === "right" ? c.left.x : 0, p = u === "left" ? c.right.x : 0,
|
|
43612
|
-
return
|
|
43615
|
+
var d = u === "bottom" ? c.top.y : 0, f = u === "top" ? c.bottom.y : 0, h = u === "right" ? c.left.x : 0, p = u === "left" ? c.right.x : 0, g = o.top - r + d > l, m = r - o.bottom - f > l, y = o.left - n + h > l, v = n - o.right - p > l;
|
|
43616
|
+
return g || m || y || v;
|
|
43613
43617
|
});
|
|
43614
43618
|
}
|
|
43615
43619
|
function Du(t, e, n) {
|
|
@@ -43867,7 +43871,7 @@ function M4(t) {
|
|
|
43867
43871
|
M4.$$tippy = !0;
|
|
43868
43872
|
var L_ = 1, A0 = [], Ru = [];
|
|
43869
43873
|
function N_(t, e) {
|
|
43870
|
-
var n = dg(t, Object.assign({}, Jt, T4(sg(e)))), r, i, o, s = !1, a = !1, l = !1, u = !1, c, d, f, h = [], p = ig(ro, n.interactiveDebounce),
|
|
43874
|
+
var n = dg(t, Object.assign({}, Jt, T4(sg(e)))), r, i, o, s = !1, a = !1, l = !1, u = !1, c, d, f, h = [], p = ig(ro, n.interactiveDebounce), g, m = L_++, y = null, v = h_(n.plugins), S = {
|
|
43871
43875
|
// Is the instance currently enabled?
|
|
43872
43876
|
isEnabled: !0,
|
|
43873
43877
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -43883,7 +43887,7 @@ function N_(t, e) {
|
|
|
43883
43887
|
id: m,
|
|
43884
43888
|
reference: t,
|
|
43885
43889
|
popper: Fs(),
|
|
43886
|
-
popperInstance:
|
|
43890
|
+
popperInstance: y,
|
|
43887
43891
|
props: n,
|
|
43888
43892
|
state: S,
|
|
43889
43893
|
plugins: v,
|
|
@@ -43923,7 +43927,7 @@ function N_(t, e) {
|
|
|
43923
43927
|
return !!((N = w.props.render) != null && N.$$tippy);
|
|
43924
43928
|
}
|
|
43925
43929
|
function te() {
|
|
43926
|
-
return
|
|
43930
|
+
return g || t;
|
|
43927
43931
|
}
|
|
43928
43932
|
function me() {
|
|
43929
43933
|
var N = te().parentNode;
|
|
@@ -44064,7 +44068,7 @@ function N_(t, e) {
|
|
|
44064
44068
|
var J, se = !1;
|
|
44065
44069
|
if (!(!w.state.isEnabled || gi(N) || a)) {
|
|
44066
44070
|
var Me = ((J = c) == null ? void 0 : J.type) === "focus";
|
|
44067
|
-
c = N,
|
|
44071
|
+
c = N, g = N.currentTarget, xt(), !w.state.isVisible && g_(N) && A0.forEach(function(we) {
|
|
44068
44072
|
return we(N);
|
|
44069
44073
|
}), N.type === "click" && (w.props.trigger.indexOf("mouseenter") < 0 || s) && w.props.hideOnClick !== !1 && w.state.isVisible ? se = !0 : yi(N), N.type === "click" && (s = !se), se && !Me && er(N);
|
|
44070
44074
|
}
|
|
@@ -44315,8 +44319,8 @@ ls.setDefaultProps({
|
|
|
44315
44319
|
class $_ {
|
|
44316
44320
|
constructor({ editor: e, element: n, view: r, tippyOptions: i = {}, updateDelay: o = 250, shouldShow: s }) {
|
|
44317
44321
|
this.preventHide = !1, this.shouldShow = ({ view: a, state: l, from: u, to: c }) => {
|
|
44318
|
-
const { doc: d, selection: f } = l, { empty: h } = f, p = !d.textBetween(u, c).length && Ff(l.selection),
|
|
44319
|
-
return !(!(a.hasFocus() ||
|
|
44322
|
+
const { doc: d, selection: f } = l, { empty: h } = f, p = !d.textBetween(u, c).length && Ff(l.selection), g = this.element.contains(document.activeElement);
|
|
44323
|
+
return !(!(a.hasFocus() || g) || h || p || !this.editor.isEditable);
|
|
44320
44324
|
}, this.mousedownHandler = () => {
|
|
44321
44325
|
this.preventHide = !0;
|
|
44322
44326
|
}, this.dragstartHandler = () => {
|
|
@@ -44339,8 +44343,8 @@ class $_ {
|
|
|
44339
44343
|
}, this.updateDelay));
|
|
44340
44344
|
}, this.updateHandler = (a, l, u, c) => {
|
|
44341
44345
|
var d, f, h;
|
|
44342
|
-
const { state: p, composing:
|
|
44343
|
-
if (
|
|
44346
|
+
const { state: p, composing: g } = a, { selection: m } = p;
|
|
44347
|
+
if (g || !l && !u)
|
|
44344
44348
|
return;
|
|
44345
44349
|
this.createTooltip();
|
|
44346
44350
|
const { ranges: v } = m, S = Math.min(...v.map((C) => C.$from.pos)), w = Math.max(...v.map((C) => C.$to.pos));
|
|
@@ -45699,8 +45703,8 @@ class An {
|
|
|
45699
45703
|
s = Math.min(s, h);
|
|
45700
45704
|
let p = o.maps[h];
|
|
45701
45705
|
if (f.step) {
|
|
45702
|
-
let
|
|
45703
|
-
m && a++, r.push(new Vn(p,
|
|
45706
|
+
let g = e.steps[h].invert(e.docs[h]), m = f.selection && f.selection.map(o.slice(l + 1, h));
|
|
45707
|
+
m && a++, r.push(new Vn(p, g, m));
|
|
45704
45708
|
} else
|
|
45705
45709
|
r.push(new Vn(p));
|
|
45706
45710
|
}, i);
|
|
@@ -46225,9 +46229,9 @@ const D4 = (t, e) => {
|
|
|
46225
46229
|
}), Vz = Et.create({
|
|
46226
46230
|
name: "starterKit",
|
|
46227
46231
|
addExtensions() {
|
|
46228
|
-
var t, e, n, r, i, o, s, a, l, u, c, d, f, h, p,
|
|
46232
|
+
var t, e, n, r, i, o, s, a, l, u, c, d, f, h, p, g, m, y;
|
|
46229
46233
|
const v = [];
|
|
46230
|
-
return this.options.blockquote !== !1 && v.push(z_.configure((t = this.options) === null || t === void 0 ? void 0 : t.blockquote)), this.options.bold !== !1 && v.push(K_.configure((e = this.options) === null || e === void 0 ? void 0 : e.bold)), this.options.bulletList !== !1 && v.push(q_.configure((n = this.options) === null || n === void 0 ? void 0 : n.bulletList)), this.options.code !== !1 && v.push(Q_.configure((r = this.options) === null || r === void 0 ? void 0 : r.code)), this.options.codeBlock !== !1 && v.push(tz.configure((i = this.options) === null || i === void 0 ? void 0 : i.codeBlock)), this.options.document !== !1 && v.push(nz.configure((o = this.options) === null || o === void 0 ? void 0 : o.document)), this.options.dropcursor !== !1 && v.push(oz.configure((s = this.options) === null || s === void 0 ? void 0 : s.dropcursor)), this.options.gapcursor !== !1 && v.push(hz.configure((a = this.options) === null || a === void 0 ? void 0 : a.gapcursor)), this.options.hardBreak !== !1 && v.push(pz.configure((l = this.options) === null || l === void 0 ? void 0 : l.hardBreak)), this.options.heading !== !1 && v.push(mz.configure((u = this.options) === null || u === void 0 ? void 0 : u.heading)), this.options.history !== !1 && v.push(Oz.configure((c = this.options) === null || c === void 0 ? void 0 : c.history)), this.options.horizontalRule !== !1 && v.push(Tz.configure((d = this.options) === null || d === void 0 ? void 0 : d.horizontalRule)), this.options.italic !== !1 && v.push(Iz.configure((f = this.options) === null || f === void 0 ? void 0 : f.italic)), this.options.listItem !== !1 && v.push(Pz.configure((h = this.options) === null || h === void 0 ? void 0 : h.listItem)), this.options.orderedList !== !1 && v.push(Rz.configure((p = this.options) === null || p === void 0 ? void 0 : p.orderedList)), this.options.paragraph !== !1 && v.push(Lz.configure((
|
|
46234
|
+
return this.options.blockquote !== !1 && v.push(z_.configure((t = this.options) === null || t === void 0 ? void 0 : t.blockquote)), this.options.bold !== !1 && v.push(K_.configure((e = this.options) === null || e === void 0 ? void 0 : e.bold)), this.options.bulletList !== !1 && v.push(q_.configure((n = this.options) === null || n === void 0 ? void 0 : n.bulletList)), this.options.code !== !1 && v.push(Q_.configure((r = this.options) === null || r === void 0 ? void 0 : r.code)), this.options.codeBlock !== !1 && v.push(tz.configure((i = this.options) === null || i === void 0 ? void 0 : i.codeBlock)), this.options.document !== !1 && v.push(nz.configure((o = this.options) === null || o === void 0 ? void 0 : o.document)), this.options.dropcursor !== !1 && v.push(oz.configure((s = this.options) === null || s === void 0 ? void 0 : s.dropcursor)), this.options.gapcursor !== !1 && v.push(hz.configure((a = this.options) === null || a === void 0 ? void 0 : a.gapcursor)), this.options.hardBreak !== !1 && v.push(pz.configure((l = this.options) === null || l === void 0 ? void 0 : l.hardBreak)), this.options.heading !== !1 && v.push(mz.configure((u = this.options) === null || u === void 0 ? void 0 : u.heading)), this.options.history !== !1 && v.push(Oz.configure((c = this.options) === null || c === void 0 ? void 0 : c.history)), this.options.horizontalRule !== !1 && v.push(Tz.configure((d = this.options) === null || d === void 0 ? void 0 : d.horizontalRule)), this.options.italic !== !1 && v.push(Iz.configure((f = this.options) === null || f === void 0 ? void 0 : f.italic)), this.options.listItem !== !1 && v.push(Pz.configure((h = this.options) === null || h === void 0 ? void 0 : h.listItem)), this.options.orderedList !== !1 && v.push(Rz.configure((p = this.options) === null || p === void 0 ? void 0 : p.orderedList)), this.options.paragraph !== !1 && v.push(Lz.configure((g = this.options) === null || g === void 0 ? void 0 : g.paragraph)), this.options.strike !== !1 && v.push(Fz.configure((m = this.options) === null || m === void 0 ? void 0 : m.strike)), this.options.text !== !1 && v.push(Bz.configure((y = this.options) === null || y === void 0 ? void 0 : y.text)), v;
|
|
46231
46235
|
}
|
|
46232
46236
|
}), Hz = tn.create({
|
|
46233
46237
|
name: "underline",
|
|
@@ -46898,20 +46902,20 @@ function tj(t) {
|
|
|
46898
46902
|
fe(h, e.domain, f);
|
|
46899
46903
|
const p = un(Mg);
|
|
46900
46904
|
fe(h, e.tld, p), fe(h, e.utld, p), W(c, Na, p);
|
|
46901
|
-
const
|
|
46902
|
-
fe(
|
|
46905
|
+
const g = W(f, _n);
|
|
46906
|
+
fe(g, e.domain, f), fe(p, e.domain, f), W(p, Hn, h), W(p, _n, g);
|
|
46903
46907
|
const m = W(p, zr);
|
|
46904
46908
|
fe(m, e.numeric, Mg);
|
|
46905
|
-
const
|
|
46906
|
-
fe(
|
|
46909
|
+
const y = W(a, _n), v = W(a, Hn);
|
|
46910
|
+
fe(y, e.domain, a), fe(v, i, s), fe(v, e.domain, a);
|
|
46907
46911
|
const S = un(L0);
|
|
46908
|
-
fe(v, e.tld, S), fe(v, e.utld, S), fe(S, e.domain, a), fe(S, i, s), W(S, Hn, v), W(S, _n,
|
|
46912
|
+
fe(v, e.tld, S), fe(v, e.utld, S), fe(S, e.domain, a), fe(S, i, s), W(S, Hn, v), W(S, _n, y), W(S, Br, c);
|
|
46909
46913
|
const w = W(S, zr), T = un(L0);
|
|
46910
46914
|
fe(w, e.numeric, T);
|
|
46911
46915
|
const C = un(L0), E = un();
|
|
46912
46916
|
fe(C, n, C), fe(C, r, E), fe(E, n, C), fe(E, r, E), W(S, zn, C), W(T, zn, C);
|
|
46913
46917
|
const A = W(l, zr), $ = W(u, zr), z = W($, zn), j = W(z, zn);
|
|
46914
|
-
fe(l, e.domain, a), W(l, Hn, v), W(l, _n,
|
|
46918
|
+
fe(l, e.domain, a), W(l, Hn, v), W(l, _n, y), fe(u, e.domain, a), W(u, Hn, v), W(u, _n, y), fe(A, e.domain, C), W(A, zn, C), fe(j, e.domain, C), fe(j, n, C), W(j, zn, C);
|
|
46915
46919
|
const q = [
|
|
46916
46920
|
[Bs, Vs],
|
|
46917
46921
|
// {}
|
|
@@ -47030,15 +47034,15 @@ function lj(t) {
|
|
|
47030
47034
|
const h = f.split(" ").filter((m) => m !== "");
|
|
47031
47035
|
if (h.length <= 0)
|
|
47032
47036
|
return !1;
|
|
47033
|
-
const p = h[h.length - 1],
|
|
47037
|
+
const p = h[h.length - 1], g = d.pos + f.lastIndexOf(p);
|
|
47034
47038
|
if (!p)
|
|
47035
47039
|
return !1;
|
|
47036
47040
|
i1(p).filter((m) => m.isLink).map((m) => ({
|
|
47037
47041
|
...m,
|
|
47038
|
-
from:
|
|
47039
|
-
to:
|
|
47042
|
+
from: g + m.start + 1,
|
|
47043
|
+
to: g + m.end + 1
|
|
47040
47044
|
})).filter((m) => r.schema.marks.code ? !r.doc.rangeHasMark(m.from, m.to, r.schema.marks.code) : !0).filter((m) => t.validate ? t.validate(m.value) : !0).forEach((m) => {
|
|
47041
|
-
_f(m.from, m.to, r.doc).some((
|
|
47045
|
+
_f(m.from, m.to, r.doc).some((y) => y.mark.type === t.type) || s.addMark(m.from, m.to, t.type.create({
|
|
47042
47046
|
href: m.href
|
|
47043
47047
|
}));
|
|
47044
47048
|
});
|
|
@@ -47243,11 +47247,11 @@ const dj = tn.create({
|
|
|
47243
47247
|
s.value = !s.value;
|
|
47244
47248
|
}, p = () => {
|
|
47245
47249
|
s.value = !1;
|
|
47246
|
-
},
|
|
47250
|
+
}, g = () => {
|
|
47247
47251
|
}, m = (S) => {
|
|
47248
47252
|
v.value.chain().focus().insertContent(S).run(), i.value.$el.click();
|
|
47249
47253
|
};
|
|
47250
|
-
function
|
|
47254
|
+
function y(S) {
|
|
47251
47255
|
v.value.chain().focus().insertContent(S.i).run(), i.value.$el.click();
|
|
47252
47256
|
}
|
|
47253
47257
|
const v = _(
|
|
@@ -47317,9 +47321,9 @@ const dj = tn.create({
|
|
|
47317
47321
|
selectColor: f,
|
|
47318
47322
|
showColors: h,
|
|
47319
47323
|
onClickOutColors: p,
|
|
47320
|
-
attachFiles:
|
|
47324
|
+
attachFiles: g,
|
|
47321
47325
|
appendEmoji: m,
|
|
47322
|
-
onSelectEmoji:
|
|
47326
|
+
onSelectEmoji: y
|
|
47323
47327
|
};
|
|
47324
47328
|
}
|
|
47325
47329
|
}), hj = {
|