@romainbx/wpic-components 0.0.13 → 0.0.15
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/components/date/Calendar.vue.d.ts +2 -0
- package/dist/components/date/DateField.vue.d.ts +2 -0
- package/dist/components/form/ChoiceList.vue.d.ts +3 -0
- package/dist/components/form/FormField.vue.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/wpic-components.js +623 -609
- package/dist/wpic-components.umd.cjs +12 -12
- package/package.json +1 -1
package/dist/wpic-components.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject as Hl, computed as ie, toValue as he, getCurrentInstance as Hn, defineComponent as gr, toRef as Tr, resolveDynamicComponent as Ds, h as It, unref as V, onMounted as qr, provide as Yl, isRef as fo, watch as Rt, onBeforeUnmount as Kr, ref as De, reactive as us, nextTick as Et, warn as Ym, readonly as Um, watchEffect as of, onUnmounted as af, shallowRef as lf, openBlock as T, createElementBlock as
|
|
1
|
+
import { inject as Hl, computed as ie, toValue as he, getCurrentInstance as Hn, defineComponent as gr, toRef as Tr, resolveDynamicComponent as Ds, h as It, unref as V, onMounted as qr, provide as Yl, isRef as fo, watch as Rt, onBeforeUnmount as Kr, ref as De, reactive as us, nextTick as Et, warn as Ym, readonly as Um, watchEffect as of, onUnmounted as af, shallowRef as lf, openBlock as T, createElementBlock as _, createElementVNode as B, createVNode as pe, normalizeClass as ne, createBlock as $e, withCtx as Pe, createCommentVNode as ye, renderSlot as Ie, createTextVNode as nt, toDisplayString as Oe, Fragment as rt, Teleport as uf, resolveComponent as cf, withModifiers as Ul, withDirectives as Xu, vShow as Qu, renderList as At, normalizeStyle as ql, useSlots as qm, markRaw as Km, customRef as Jm } from "vue";
|
|
2
2
|
function Gm() {
|
|
3
3
|
return df().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
4
4
|
}
|
|
@@ -1062,18 +1062,18 @@ function Yg(t, e, n) {
|
|
|
1062
1062
|
return As(n == null ? void 0 : n.type) ? qg(t, e, n) : Of(t, e, n);
|
|
1063
1063
|
}
|
|
1064
1064
|
function Of(t, e, n) {
|
|
1065
|
-
const { initialValue: r, validateOnMount: i, bails: s, type: o, checkedValue: a, label: l, validateOnValueUpdate: u, uncheckedValue: c, controlled: d, keepValueOnUnmount: f, syncVModel: h, form: p } = Ug(n), g = d ? Zl(Es) : void 0, m = p || g, v = ie(() => Ki(he(t))),
|
|
1065
|
+
const { initialValue: r, validateOnMount: i, bails: s, type: o, checkedValue: a, label: l, validateOnValueUpdate: u, uncheckedValue: c, controlled: d, keepValueOnUnmount: f, syncVModel: h, form: p } = Ug(n), g = d ? Zl(Es) : void 0, m = p || g, v = ie(() => Ki(he(t))), w = ie(() => {
|
|
1066
1066
|
if (he(m == null ? void 0 : m.schema))
|
|
1067
1067
|
return;
|
|
1068
1068
|
const re = V(e);
|
|
1069
1069
|
return po(re) || Qt(re) || Ke(re) || Array.isArray(re) ? re : vf(re);
|
|
1070
|
-
}), O = !Ke(
|
|
1070
|
+
}), O = !Ke(w.value) && Qt(he(e)), { id: y, value: D, initialValue: b, meta: N, setState: F, errors: $, flags: H } = _g(v, {
|
|
1071
1071
|
modelValue: r,
|
|
1072
1072
|
form: m,
|
|
1073
1073
|
bails: s,
|
|
1074
1074
|
label: l,
|
|
1075
1075
|
type: o,
|
|
1076
|
-
validate:
|
|
1076
|
+
validate: w.value ? C : void 0,
|
|
1077
1077
|
schema: O ? e : void 0
|
|
1078
1078
|
}), oe = ie(() => $.value[0]);
|
|
1079
1079
|
h && Kg({
|
|
@@ -1091,7 +1091,7 @@ function Of(t, e, n) {
|
|
|
1091
1091
|
const { results: fe } = await m.validateSchema(L);
|
|
1092
1092
|
return (re = fe[he(v)]) !== null && re !== void 0 ? re : { valid: !0, errors: [] };
|
|
1093
1093
|
}
|
|
1094
|
-
return
|
|
1094
|
+
return w.value ? bf(D.value, w.value, {
|
|
1095
1095
|
name: he(v),
|
|
1096
1096
|
label: he(l),
|
|
1097
1097
|
values: (ke = m == null ? void 0 : m.values) !== null && ke !== void 0 ? ke : {},
|
|
@@ -1124,9 +1124,9 @@ function Of(t, e, n) {
|
|
|
1124
1124
|
errors: (L == null ? void 0 : L.errors) || []
|
|
1125
1125
|
}), N.pending = !1, N.validated = !1, Z();
|
|
1126
1126
|
}
|
|
1127
|
-
const
|
|
1127
|
+
const lt = Hn();
|
|
1128
1128
|
function yt(L, re = !0) {
|
|
1129
|
-
D.value =
|
|
1129
|
+
D.value = lt && h ? gg(L, lt.props.modelModifiers) : L, (re ? q : Z)();
|
|
1130
1130
|
}
|
|
1131
1131
|
function Ct(L) {
|
|
1132
1132
|
F({ errors: Array.isArray(L) ? L : [L] });
|
|
@@ -1169,8 +1169,8 @@ function Of(t, e, n) {
|
|
|
1169
1169
|
deep: !0
|
|
1170
1170
|
}), m || Bg(Te)), !m)
|
|
1171
1171
|
return Te;
|
|
1172
|
-
const
|
|
1173
|
-
const L =
|
|
1172
|
+
const ut = ie(() => {
|
|
1173
|
+
const L = w.value;
|
|
1174
1174
|
return !L || Ke(L) || po(L) || Qt(L) || Array.isArray(L) ? {} : Object.keys(L).reduce((re, ke) => {
|
|
1175
1175
|
const fe = xg(L[ke]).map((Ye) => Ye.__locatorRef).reduce((Ye, Ue) => {
|
|
1176
1176
|
const vt = xt(m.values, Ue) || m.values[Ue];
|
|
@@ -1179,7 +1179,7 @@ function Of(t, e, n) {
|
|
|
1179
1179
|
return Object.assign(re, fe), re;
|
|
1180
1180
|
}, {});
|
|
1181
1181
|
});
|
|
1182
|
-
return Rt(
|
|
1182
|
+
return Rt(ut, (L, re) => {
|
|
1183
1183
|
if (!Object.keys(L).length)
|
|
1184
1184
|
return;
|
|
1185
1185
|
!ft(L, re) && (N.validated ? q() : Z());
|
|
@@ -1241,8 +1241,8 @@ function qg(t, e, n) {
|
|
|
1241
1241
|
return;
|
|
1242
1242
|
}
|
|
1243
1243
|
const g = he(t), m = r == null ? void 0 : r.getPathState(g), v = mo(d);
|
|
1244
|
-
let
|
|
1245
|
-
r && (m != null && m.multiple) && m.type === "checkbox" ?
|
|
1244
|
+
let w = (p = he(i)) !== null && p !== void 0 ? p : v;
|
|
1245
|
+
r && (m != null && m.multiple) && m.type === "checkbox" ? w = sc(xt(r.values, g) || [], w, void 0) : (n == null ? void 0 : n.type) === "checkbox" && (w = sc(he(a.value), w, he(s))), l(w, f);
|
|
1246
1246
|
}
|
|
1247
1247
|
return Object.assign(Object.assign({}, a), {
|
|
1248
1248
|
checked: u,
|
|
@@ -1343,7 +1343,7 @@ const Jg = /* @__PURE__ */ gr({
|
|
|
1343
1343
|
}
|
|
1344
1344
|
},
|
|
1345
1345
|
setup(t, e) {
|
|
1346
|
-
const n = Tr(t, "rules"), r = Tr(t, "name"), i = Tr(t, "label"), s = Tr(t, "uncheckedValue"), o = Tr(t, "keepValue"), { errors: a, value: l, errorMessage: u, validate: c, handleChange: d, handleBlur: f, setTouched: h, resetField: p, handleReset: g, meta: m, checked: v, setErrors:
|
|
1346
|
+
const n = Tr(t, "rules"), r = Tr(t, "name"), i = Tr(t, "label"), s = Tr(t, "uncheckedValue"), o = Tr(t, "keepValue"), { errors: a, value: l, errorMessage: u, validate: c, handleChange: d, handleBlur: f, setTouched: h, resetField: p, handleReset: g, meta: m, checked: v, setErrors: w } = Yg(r, n, {
|
|
1347
1347
|
validateOnMount: t.validateOnMount,
|
|
1348
1348
|
bails: t.bails,
|
|
1349
1349
|
standalone: t.standalone,
|
|
@@ -1397,7 +1397,7 @@ const Jg = /* @__PURE__ */ gr({
|
|
|
1397
1397
|
handleReset: g,
|
|
1398
1398
|
handleBlur: y.value.onBlur,
|
|
1399
1399
|
setTouched: h,
|
|
1400
|
-
setErrors:
|
|
1400
|
+
setErrors: w
|
|
1401
1401
|
};
|
|
1402
1402
|
}
|
|
1403
1403
|
return e.expose({
|
|
@@ -1405,7 +1405,7 @@ const Jg = /* @__PURE__ */ gr({
|
|
|
1405
1405
|
meta: m,
|
|
1406
1406
|
errors: a,
|
|
1407
1407
|
errorMessage: u,
|
|
1408
|
-
setErrors:
|
|
1408
|
+
setErrors: w,
|
|
1409
1409
|
setTouched: h,
|
|
1410
1410
|
reset: p,
|
|
1411
1411
|
validate: c,
|
|
@@ -1471,7 +1471,7 @@ function Qg(t) {
|
|
|
1471
1471
|
}), m = ie(() => wt(g.value).reduce((S, x) => {
|
|
1472
1472
|
const A = g.value[x];
|
|
1473
1473
|
return A != null && A.length && (S[x] = A[0]), S;
|
|
1474
|
-
}, {})), v = ie(() => u.value.reduce((S, x) => (S[x.path] = { name: x.path || "", label: x.label || "" }, S), {})),
|
|
1474
|
+
}, {})), v = ie(() => u.value.reduce((S, x) => (S[x.path] = { name: x.path || "", label: x.label || "" }, S), {})), w = ie(() => u.value.reduce((S, x) => {
|
|
1475
1475
|
var A;
|
|
1476
1476
|
return S[x.path] = (A = x.bails) !== null && A !== void 0 ? A : !0, S;
|
|
1477
1477
|
}, {})), O = Object.assign({}, (t == null ? void 0 : t.initialErrors) || {}), y = (e = t == null ? void 0 : t.keepValuesOnUnmount) !== null && e !== void 0 ? e : !1, { initialValues: D, originalInitialValues: b, setInitialValues: N } = t0(u, l, t), F = e0(u, l, b, m), $ = ie(() => u.value.reduce((S, x) => {
|
|
@@ -1480,19 +1480,19 @@ function Qg(t) {
|
|
|
1480
1480
|
}, {})), H = t == null ? void 0 : t.validationSchema;
|
|
1481
1481
|
function oe(S, x) {
|
|
1482
1482
|
var A, W;
|
|
1483
|
-
const ee = ie(() => xt(D.value, he(S))),
|
|
1484
|
-
if (
|
|
1485
|
-
|
|
1486
|
-
const
|
|
1487
|
-
return Array.isArray(
|
|
1483
|
+
const ee = ie(() => xt(D.value, he(S))), k = d.value[he(S)], I = (x == null ? void 0 : x.type) === "checkbox" || (x == null ? void 0 : x.type) === "radio";
|
|
1484
|
+
if (k && I) {
|
|
1485
|
+
k.multiple = !0;
|
|
1486
|
+
const ct = r++;
|
|
1487
|
+
return Array.isArray(k.id) ? k.id.push(ct) : k.id = [k.id, ct], k.fieldsCount++, k.__flags.pendingUnmount[ct] = !1, k;
|
|
1488
1488
|
}
|
|
1489
|
-
const Y = ie(() => xt(l, he(S))), Q = he(S), te = ae.findIndex((
|
|
1489
|
+
const Y = ie(() => xt(l, he(S))), Q = he(S), te = ae.findIndex((ct) => ct === Q);
|
|
1490
1490
|
te !== -1 && ae.splice(te, 1);
|
|
1491
1491
|
const le = ie(() => {
|
|
1492
|
-
var
|
|
1492
|
+
var ct, Dt, Mr, Xn;
|
|
1493
1493
|
const fn = he(H);
|
|
1494
1494
|
if (Qt(fn))
|
|
1495
|
-
return (Dt = (
|
|
1495
|
+
return (Dt = (ct = fn.describe) === null || ct === void 0 ? void 0 : ct.call(fn, he(S)).required) !== null && Dt !== void 0 ? Dt : !1;
|
|
1496
1496
|
const zi = he(x == null ? void 0 : x.schema);
|
|
1497
1497
|
return Qt(zi) && (Xn = (Mr = zi.describe) === null || Mr === void 0 ? void 0 : Mr.call(zi).required) !== null && Xn !== void 0 ? Xn : !1;
|
|
1498
1498
|
}), xe = r++, Ve = us({
|
|
@@ -1520,26 +1520,26 @@ function Qg(t) {
|
|
|
1520
1520
|
});
|
|
1521
1521
|
return u.value.push(Ve), d.value[Q] = Ve, f(), m.value[Q] && !O[Q] && Et(() => {
|
|
1522
1522
|
Ft(Q, { mode: "silent" });
|
|
1523
|
-
}), fo(S) && Rt(S, (
|
|
1523
|
+
}), fo(S) && Rt(S, (ct) => {
|
|
1524
1524
|
f();
|
|
1525
1525
|
const Dt = Se(Y.value);
|
|
1526
|
-
d.value[
|
|
1527
|
-
Pn(l,
|
|
1526
|
+
d.value[ct] = Ve, Et(() => {
|
|
1527
|
+
Pn(l, ct, Dt);
|
|
1528
1528
|
});
|
|
1529
1529
|
}), Ve;
|
|
1530
1530
|
}
|
|
1531
1531
|
const E = oc(dn, 5), j = oc(dn, 5), q = il(async (S) => await (S === "silent" ? E() : j()), (S, [x]) => {
|
|
1532
1532
|
const A = wt(L.errorBag.value), ee = [
|
|
1533
|
-
.../* @__PURE__ */ new Set([...wt(S.results), ...u.value.map((
|
|
1534
|
-
].sort().reduce((
|
|
1533
|
+
.../* @__PURE__ */ new Set([...wt(S.results), ...u.value.map((k) => k.path), ...A])
|
|
1534
|
+
].sort().reduce((k, I) => {
|
|
1535
1535
|
var Y;
|
|
1536
|
-
const Q = I, te = C(Q) || J(Q), le = ((Y = S.results[Q]) === null || Y === void 0 ? void 0 : Y.errors) || [], xe = he(te == null ? void 0 : te.path) || Q, Ve = n0({ errors: le, valid: !le.length },
|
|
1537
|
-
return
|
|
1536
|
+
const Q = I, te = C(Q) || J(Q), le = ((Y = S.results[Q]) === null || Y === void 0 ? void 0 : Y.errors) || [], xe = he(te == null ? void 0 : te.path) || Q, Ve = n0({ errors: le, valid: !le.length }, k.results[xe]);
|
|
1537
|
+
return k.results[xe] = Ve, Ve.valid || (k.errors[xe] = Ve.errors[0]), te && c.value[xe] && delete c.value[xe], te ? (te.valid = Ve.valid, x === "silent" || x === "validated-only" && !te.validated || h(te, Ve.errors), k) : (h(xe, le), k);
|
|
1538
1538
|
}, { valid: S.valid, results: {}, errors: {} });
|
|
1539
|
-
return S.values && (ee.values = S.values), wt(ee.results).forEach((
|
|
1539
|
+
return S.values && (ee.values = S.values), wt(ee.results).forEach((k) => {
|
|
1540
1540
|
var I;
|
|
1541
|
-
const Y = C(
|
|
1542
|
-
Y && x !== "silent" && (x === "validated-only" && !Y.validated || h(Y, (I = ee.results[
|
|
1541
|
+
const Y = C(k);
|
|
1542
|
+
Y && x !== "silent" && (x === "validated-only" && !Y.validated || h(Y, (I = ee.results[k]) === null || I === void 0 ? void 0 : I.errors));
|
|
1543
1543
|
}), ee;
|
|
1544
1544
|
});
|
|
1545
1545
|
function Z(S) {
|
|
@@ -1553,7 +1553,7 @@ function Qg(t) {
|
|
|
1553
1553
|
return u.value.filter((A) => S.startsWith(A.path)).reduce((A, W) => A ? W.path.length > A.path.length ? W : A : W, void 0);
|
|
1554
1554
|
}
|
|
1555
1555
|
let ae = [], je;
|
|
1556
|
-
function
|
|
1556
|
+
function lt(S) {
|
|
1557
1557
|
return ae.push(S), je || (je = Et(() => {
|
|
1558
1558
|
[...ae].sort().reverse().forEach((A) => {
|
|
1559
1559
|
ic(l, A);
|
|
@@ -1562,14 +1562,14 @@ function Qg(t) {
|
|
|
1562
1562
|
}
|
|
1563
1563
|
function yt(S) {
|
|
1564
1564
|
return function(A, W) {
|
|
1565
|
-
return function(
|
|
1566
|
-
return
|
|
1565
|
+
return function(k) {
|
|
1566
|
+
return k instanceof Event && (k.preventDefault(), k.stopPropagation()), Z((I) => I.touched = !0), i.value = !0, o.value++, Gt().then((I) => {
|
|
1567
1567
|
const Y = Se(l);
|
|
1568
1568
|
if (I.valid && typeof A == "function") {
|
|
1569
1569
|
const Q = Se($.value);
|
|
1570
1570
|
let te = S ? Q : Y;
|
|
1571
1571
|
return I.values && (te = I.values), A(te, {
|
|
1572
|
-
evt:
|
|
1572
|
+
evt: k,
|
|
1573
1573
|
controlledValues: Q,
|
|
1574
1574
|
setErrors: p,
|
|
1575
1575
|
setFieldError: h,
|
|
@@ -1583,7 +1583,7 @@ function Qg(t) {
|
|
|
1583
1583
|
}
|
|
1584
1584
|
!I.valid && typeof W == "function" && W({
|
|
1585
1585
|
values: Y,
|
|
1586
|
-
evt:
|
|
1586
|
+
evt: k,
|
|
1587
1587
|
errors: I.errors,
|
|
1588
1588
|
results: I.results
|
|
1589
1589
|
});
|
|
@@ -1607,7 +1607,7 @@ function Qg(t) {
|
|
|
1607
1607
|
(!W.multiple || W.fieldsCount <= 0) && (u.value.splice(A, 1), zt(S), f(), delete d.value[S]);
|
|
1608
1608
|
}
|
|
1609
1609
|
}
|
|
1610
|
-
function
|
|
1610
|
+
function ut(S) {
|
|
1611
1611
|
wt(d.value).forEach((x) => {
|
|
1612
1612
|
x.startsWith(S) && delete d.value[x];
|
|
1613
1613
|
}), u.value = u.value.filter((x) => !x.path.startsWith(S)), Et(() => {
|
|
@@ -1648,11 +1648,11 @@ function Qg(t) {
|
|
|
1648
1648
|
setFieldInitialValue: An,
|
|
1649
1649
|
createPathState: oe,
|
|
1650
1650
|
getPathState: C,
|
|
1651
|
-
unsetPathValue:
|
|
1651
|
+
unsetPathValue: lt,
|
|
1652
1652
|
removePathState: Te,
|
|
1653
1653
|
initialValues: D,
|
|
1654
1654
|
getAllPathStates: () => u.value,
|
|
1655
|
-
destroyPath:
|
|
1655
|
+
destroyPath: ut,
|
|
1656
1656
|
isFieldTouched: vt,
|
|
1657
1657
|
isFieldDirty: xr,
|
|
1658
1658
|
isFieldValid: Gr
|
|
@@ -1679,8 +1679,8 @@ function Qg(t) {
|
|
|
1679
1679
|
},
|
|
1680
1680
|
set(W) {
|
|
1681
1681
|
var ee;
|
|
1682
|
-
const
|
|
1683
|
-
re(
|
|
1682
|
+
const k = he(S);
|
|
1683
|
+
re(k, W, (ee = he(x)) !== null && ee !== void 0 ? ee : !1);
|
|
1684
1684
|
}
|
|
1685
1685
|
});
|
|
1686
1686
|
}
|
|
@@ -1731,27 +1731,27 @@ function Qg(t) {
|
|
|
1731
1731
|
}
|
|
1732
1732
|
async function Gt(S) {
|
|
1733
1733
|
const x = (S == null ? void 0 : S.mode) || "force";
|
|
1734
|
-
if (x === "force" && Z((
|
|
1734
|
+
if (x === "force" && Z((k) => k.validated = !0), L.validateSchema)
|
|
1735
1735
|
return L.validateSchema(x);
|
|
1736
1736
|
s.value = !0;
|
|
1737
|
-
const A = await Promise.all(u.value.map((
|
|
1738
|
-
key:
|
|
1737
|
+
const A = await Promise.all(u.value.map((k) => k.validate ? k.validate(S).then((I) => ({
|
|
1738
|
+
key: k.path,
|
|
1739
1739
|
valid: I.valid,
|
|
1740
1740
|
errors: I.errors
|
|
1741
1741
|
})) : Promise.resolve({
|
|
1742
|
-
key:
|
|
1742
|
+
key: k.path,
|
|
1743
1743
|
valid: !0,
|
|
1744
1744
|
errors: []
|
|
1745
1745
|
})));
|
|
1746
1746
|
s.value = !1;
|
|
1747
1747
|
const W = {}, ee = {};
|
|
1748
|
-
for (const
|
|
1749
|
-
W[
|
|
1750
|
-
valid:
|
|
1751
|
-
errors:
|
|
1752
|
-
},
|
|
1748
|
+
for (const k of A)
|
|
1749
|
+
W[k.key] = {
|
|
1750
|
+
valid: k.valid,
|
|
1751
|
+
errors: k.errors
|
|
1752
|
+
}, k.errors.length && (ee[k.key] = k.errors[0]);
|
|
1753
1753
|
return {
|
|
1754
|
-
valid: A.every((
|
|
1754
|
+
valid: A.every((k) => k.valid),
|
|
1755
1755
|
results: W,
|
|
1756
1756
|
errors: ee
|
|
1757
1757
|
};
|
|
@@ -1760,8 +1760,8 @@ function Qg(t) {
|
|
|
1760
1760
|
var A;
|
|
1761
1761
|
const W = C(S);
|
|
1762
1762
|
if (W && (x == null ? void 0 : x.mode) !== "silent" && (W.validated = !0), H) {
|
|
1763
|
-
const { results:
|
|
1764
|
-
return
|
|
1763
|
+
const { results: k } = await q((x == null ? void 0 : x.mode) || "validated-only");
|
|
1764
|
+
return k[S] || { errors: [], valid: !0 };
|
|
1765
1765
|
}
|
|
1766
1766
|
return W != null && W.validate ? W.validate(x) : (!W && ((A = x == null ? void 0 : x.warn) !== null && A !== void 0 ? A : !0) && process.env.NODE_ENV !== "production" && Ym(`field with path ${S} was not found`), Promise.resolve({ errors: [], valid: !0 }));
|
|
1767
1767
|
}
|
|
@@ -1781,7 +1781,7 @@ function Qg(t) {
|
|
|
1781
1781
|
s.value = !0;
|
|
1782
1782
|
const x = po(S) || Qt(S) ? await Ag(S, l) : await Ng(S, l, {
|
|
1783
1783
|
names: v.value,
|
|
1784
|
-
bailsMap:
|
|
1784
|
+
bailsMap: w.value
|
|
1785
1785
|
});
|
|
1786
1786
|
return s.value = !1, x;
|
|
1787
1787
|
}
|
|
@@ -1802,7 +1802,7 @@ function Qg(t) {
|
|
|
1802
1802
|
}));
|
|
1803
1803
|
function Zn(S, x) {
|
|
1804
1804
|
const A = Ke(x) || x == null ? void 0 : x.label, W = C(he(S)) || oe(S, { label: A }), ee = () => Ke(x) ? x(Hs(W, Us)) : x || {};
|
|
1805
|
-
function
|
|
1805
|
+
function k() {
|
|
1806
1806
|
var le;
|
|
1807
1807
|
W.touched = !0, ((le = ee().validateOnBlur) !== null && le !== void 0 ? le : Ar().validateOnBlur) && Ft(W.path);
|
|
1808
1808
|
}
|
|
@@ -1822,7 +1822,7 @@ function Qg(t) {
|
|
|
1822
1822
|
const le = {
|
|
1823
1823
|
onChange: Y,
|
|
1824
1824
|
onInput: I,
|
|
1825
|
-
onBlur:
|
|
1825
|
+
onBlur: k
|
|
1826
1826
|
};
|
|
1827
1827
|
return Ke(x) ? Object.assign(Object.assign({}, le), x(Hs(W, Us)).props || {}) : x != null && x.props ? Object.assign(Object.assign({}, le), x.props(Hs(W, Us))) : le;
|
|
1828
1828
|
});
|
|
@@ -1839,7 +1839,7 @@ function Qg(t) {
|
|
|
1839
1839
|
function ee() {
|
|
1840
1840
|
W.value.onBlur();
|
|
1841
1841
|
}
|
|
1842
|
-
function
|
|
1842
|
+
function k(Y) {
|
|
1843
1843
|
const Q = mo(Y);
|
|
1844
1844
|
re(he(S), Q, !1), W.value.onInput();
|
|
1845
1845
|
}
|
|
@@ -1849,19 +1849,19 @@ function Qg(t) {
|
|
|
1849
1849
|
}
|
|
1850
1850
|
return ie(() => Object.assign(Object.assign({}, W.value), {
|
|
1851
1851
|
onBlur: ee,
|
|
1852
|
-
onInput:
|
|
1852
|
+
onInput: k,
|
|
1853
1853
|
onChange: I,
|
|
1854
1854
|
value: A.value
|
|
1855
1855
|
}));
|
|
1856
1856
|
}
|
|
1857
1857
|
function Qr(S, x) {
|
|
1858
1858
|
const [A, W] = Zn(S, x), ee = C(he(S));
|
|
1859
|
-
function
|
|
1859
|
+
function k(I) {
|
|
1860
1860
|
A.value = I;
|
|
1861
1861
|
}
|
|
1862
1862
|
return ie(() => {
|
|
1863
1863
|
const I = Ke(x) ? x(Hs(ee, Us)) : x || {};
|
|
1864
|
-
return Object.assign({ [I.model || "modelValue"]: A.value, [`onUpdate:${I.model || "modelValue"}`]:
|
|
1864
|
+
return Object.assign({ [I.model || "modelValue"]: A.value, [`onUpdate:${I.model || "modelValue"}`]: k }, W.value);
|
|
1865
1865
|
});
|
|
1866
1866
|
}
|
|
1867
1867
|
return Object.assign(Object.assign({}, L), { values: Um(l), handleReset: () => En(), submitForm: Sr });
|
|
@@ -1949,7 +1949,7 @@ const r0 = /* @__PURE__ */ gr({
|
|
|
1949
1949
|
}
|
|
1950
1950
|
},
|
|
1951
1951
|
setup(t, e) {
|
|
1952
|
-
const n = Tr(t, "validationSchema"), r = Tr(t, "keepValues"), { errors: i, errorBag: s, values: o, meta: a, isSubmitting: l, isValidating: u, submitCount: c, controlledValues: d, validate: f, validateField: h, handleReset: p, resetForm: g, handleSubmit: m, setErrors: v, setFieldError:
|
|
1952
|
+
const n = Tr(t, "validationSchema"), r = Tr(t, "keepValues"), { errors: i, errorBag: s, values: o, meta: a, isSubmitting: l, isValidating: u, submitCount: c, controlledValues: d, validate: f, validateField: h, handleReset: p, resetForm: g, handleSubmit: m, setErrors: v, setFieldError: w, setFieldValue: O, setValues: y, setFieldTouched: D, setTouched: b, resetField: N } = Qg({
|
|
1953
1953
|
validationSchema: n.value ? n : void 0,
|
|
1954
1954
|
initialValues: t.initialValues,
|
|
1955
1955
|
initialErrors: t.initialErrors,
|
|
@@ -1990,7 +1990,7 @@ const r0 = /* @__PURE__ */ gr({
|
|
|
1990
1990
|
handleReset: p,
|
|
1991
1991
|
submitForm: F,
|
|
1992
1992
|
setErrors: v,
|
|
1993
|
-
setFieldError:
|
|
1993
|
+
setFieldError: w,
|
|
1994
1994
|
setFieldValue: O,
|
|
1995
1995
|
setValues: y,
|
|
1996
1996
|
setFieldTouched: D,
|
|
@@ -2003,7 +2003,7 @@ const r0 = /* @__PURE__ */ gr({
|
|
|
2003
2003
|
};
|
|
2004
2004
|
}
|
|
2005
2005
|
return e.expose({
|
|
2006
|
-
setFieldError:
|
|
2006
|
+
setFieldError: w,
|
|
2007
2007
|
setErrors: v,
|
|
2008
2008
|
setFieldValue: O,
|
|
2009
2009
|
setValues: y,
|
|
@@ -2088,7 +2088,7 @@ const Ae = (t, e) => {
|
|
|
2088
2088
|
c0
|
|
2089
2089
|
];
|
|
2090
2090
|
function f0(t, e) {
|
|
2091
|
-
return T(),
|
|
2091
|
+
return T(), _("svg", u0, d0);
|
|
2092
2092
|
}
|
|
2093
2093
|
const h0 = /* @__PURE__ */ Ae(l0, [["render", f0]]), p0 = {}, m0 = {
|
|
2094
2094
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2098,7 +2098,7 @@ const h0 = /* @__PURE__ */ Ae(l0, [["render", f0]]), p0 = {}, m0 = {
|
|
|
2098
2098
|
g0
|
|
2099
2099
|
];
|
|
2100
2100
|
function v0(t, e) {
|
|
2101
|
-
return T(),
|
|
2101
|
+
return T(), _("svg", m0, y0);
|
|
2102
2102
|
}
|
|
2103
2103
|
const b0 = /* @__PURE__ */ Ae(p0, [["render", v0]]), w0 = { class: "relative" }, k0 = {
|
|
2104
2104
|
name: "WpicSpinner"
|
|
@@ -2110,7 +2110,7 @@ const b0 = /* @__PURE__ */ Ae(p0, [["render", v0]]), w0 = { class: "relative" },
|
|
|
2110
2110
|
}
|
|
2111
2111
|
},
|
|
2112
2112
|
setup(t) {
|
|
2113
|
-
return (e, n) => (T(),
|
|
2113
|
+
return (e, n) => (T(), _("div", w0, [
|
|
2114
2114
|
pe(h0, { class: "absolute opacity-25" }),
|
|
2115
2115
|
pe(b0, {
|
|
2116
2116
|
class: ne(["animate-spin", { [`${t.color}`]: !0 }])
|
|
@@ -2194,14 +2194,14 @@ const x0 = {
|
|
|
2194
2194
|
}, "wpic-button leading-none font-medium no-underline appearance-none outline-zinc-600 focus:outline-none relative inline-flex justify-center items-center"])
|
|
2195
2195
|
}, {
|
|
2196
2196
|
default: Pe(() => [
|
|
2197
|
-
t.loading ? (T(),
|
|
2197
|
+
t.loading ? (T(), _("div", x0, [
|
|
2198
2198
|
pe(Ns, { class: "w-6 h-6" })
|
|
2199
2199
|
])) : ye("", !0),
|
|
2200
2200
|
B("span", {
|
|
2201
2201
|
class: ne(["flex items-center select-none whitespace-nowrap", { "opacity-0": t.loading }])
|
|
2202
2202
|
}, [
|
|
2203
2203
|
Ie(l.$slots, "default", {}, () => [
|
|
2204
|
-
|
|
2204
|
+
nt(Oe(t.label), 1)
|
|
2205
2205
|
])
|
|
2206
2206
|
], 2)
|
|
2207
2207
|
]),
|
|
@@ -2214,10 +2214,10 @@ const x0 = {
|
|
|
2214
2214
|
setup(t) {
|
|
2215
2215
|
const e = {
|
|
2216
2216
|
pmi: "border",
|
|
2217
|
-
"wpic-tools": "border
|
|
2217
|
+
"wpic-tools": "border-slate-300"
|
|
2218
2218
|
};
|
|
2219
|
-
return (n, r) => (T(),
|
|
2220
|
-
class: ne(["wpic-button-group flex flex-wrap", [e[V(ve).theme]]])
|
|
2219
|
+
return (n, r) => (T(), _("div", {
|
|
2220
|
+
class: ne(["wpic-button-group flex flex-wrap h-10", [e[V(ve).theme]]])
|
|
2221
2221
|
}, [
|
|
2222
2222
|
Ie(n.$slots, "default")
|
|
2223
2223
|
], 2));
|
|
@@ -2226,7 +2226,7 @@ const x0 = {
|
|
|
2226
2226
|
name: "WpicInputGroup"
|
|
2227
2227
|
}, D0 = { class: "wpic-input-group flex w-full" };
|
|
2228
2228
|
function E0(t, e, n, r, i, s) {
|
|
2229
|
-
return T(),
|
|
2229
|
+
return T(), _("div", D0, [
|
|
2230
2230
|
Ie(t.$slots, "default")
|
|
2231
2231
|
]);
|
|
2232
2232
|
}
|
|
@@ -2414,7 +2414,7 @@ const z0 = async (t, e, n) => {
|
|
|
2414
2414
|
name: m,
|
|
2415
2415
|
fn: v
|
|
2416
2416
|
} = a[g], {
|
|
2417
|
-
x:
|
|
2417
|
+
x: w,
|
|
2418
2418
|
y: O,
|
|
2419
2419
|
data: y,
|
|
2420
2420
|
reset: D
|
|
@@ -2432,7 +2432,7 @@ const z0 = async (t, e, n) => {
|
|
|
2432
2432
|
floating: e
|
|
2433
2433
|
}
|
|
2434
2434
|
});
|
|
2435
|
-
c =
|
|
2435
|
+
c = w ?? c, d = O ?? d, h = {
|
|
2436
2436
|
...h,
|
|
2437
2437
|
[m]: {
|
|
2438
2438
|
...h[m],
|
|
@@ -2476,7 +2476,7 @@ async function Af(t, e) {
|
|
|
2476
2476
|
boundary: u,
|
|
2477
2477
|
rootBoundary: c,
|
|
2478
2478
|
strategy: l
|
|
2479
|
-
})),
|
|
2479
|
+
})), w = d === "floating" ? {
|
|
2480
2480
|
x: r,
|
|
2481
2481
|
y: i,
|
|
2482
2482
|
width: o.floating.width,
|
|
@@ -2489,10 +2489,10 @@ async function Af(t, e) {
|
|
|
2489
2489
|
y: 1
|
|
2490
2490
|
}, D = vo(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
2491
2491
|
elements: a,
|
|
2492
|
-
rect:
|
|
2492
|
+
rect: w,
|
|
2493
2493
|
offsetParent: O,
|
|
2494
2494
|
strategy: l
|
|
2495
|
-
}) :
|
|
2495
|
+
}) : w);
|
|
2496
2496
|
return {
|
|
2497
2497
|
top: (v.top - D.top + p.top) / y.y,
|
|
2498
2498
|
bottom: (D.bottom - v.bottom + p.bottom) / y.y,
|
|
@@ -2524,7 +2524,7 @@ const j0 = function(t) {
|
|
|
2524
2524
|
} = jo(t, e);
|
|
2525
2525
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
2526
2526
|
return {};
|
|
2527
|
-
const v = jr(i),
|
|
2527
|
+
const v = jr(i), w = jr(a) === a, O = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), y = f || (w || !g ? [yo(a)] : $0(a));
|
|
2528
2528
|
!f && p !== "none" && y.push(...B0(a, g, p, O));
|
|
2529
2529
|
const D = [a, ...y], b = await Af(e, m), N = [];
|
|
2530
2530
|
let F = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
@@ -2638,11 +2638,11 @@ const H0 = function(t) {
|
|
|
2638
2638
|
fn: (m) => {
|
|
2639
2639
|
let {
|
|
2640
2640
|
x: v,
|
|
2641
|
-
y:
|
|
2641
|
+
y: w
|
|
2642
2642
|
} = m;
|
|
2643
2643
|
return {
|
|
2644
2644
|
x: v,
|
|
2645
|
-
y:
|
|
2645
|
+
y: w
|
|
2646
2646
|
};
|
|
2647
2647
|
}
|
|
2648
2648
|
},
|
|
@@ -2653,12 +2653,12 @@ const H0 = function(t) {
|
|
|
2653
2653
|
}, c = await Af(e, l), d = Ho(jr(i)), f = Tf(d);
|
|
2654
2654
|
let h = u[f], p = u[d];
|
|
2655
2655
|
if (s) {
|
|
2656
|
-
const m = f === "y" ? "top" : "left", v = f === "y" ? "bottom" : "right",
|
|
2657
|
-
h = dc(
|
|
2656
|
+
const m = f === "y" ? "top" : "left", v = f === "y" ? "bottom" : "right", w = h + c[m], O = h - c[v];
|
|
2657
|
+
h = dc(w, h, O);
|
|
2658
2658
|
}
|
|
2659
2659
|
if (o) {
|
|
2660
|
-
const m = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right",
|
|
2661
|
-
p = dc(
|
|
2660
|
+
const m = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right", w = p + c[m], O = p - c[v];
|
|
2661
|
+
p = dc(w, p, O);
|
|
2662
2662
|
}
|
|
2663
2663
|
const g = a.fn({
|
|
2664
2664
|
...e,
|
|
@@ -2813,7 +2813,7 @@ function ds(t, e, n, r) {
|
|
|
2813
2813
|
const f = $t(s), h = r && wn(r) ? $t(r) : r;
|
|
2814
2814
|
let p = f, g = p.frameElement;
|
|
2815
2815
|
for (; g && r && h !== p; ) {
|
|
2816
|
-
const m = pi(g), v = g.getBoundingClientRect(),
|
|
2816
|
+
const m = pi(g), v = g.getBoundingClientRect(), w = nn(g), O = v.left + (g.clientLeft + parseFloat(w.paddingLeft)) * m.x, y = v.top + (g.clientTop + parseFloat(w.paddingTop)) * m.y;
|
|
2817
2817
|
l *= m.x, u *= m.y, c *= m.x, d *= m.y, l += O, u += y, p = $t(g), g = p.frameElement;
|
|
2818
2818
|
}
|
|
2819
2819
|
}
|
|
@@ -3076,7 +3076,7 @@ const py = {}, my = {
|
|
|
3076
3076
|
gy
|
|
3077
3077
|
];
|
|
3078
3078
|
function vy(t, e) {
|
|
3079
|
-
return T(),
|
|
3079
|
+
return T(), _("svg", my, yy);
|
|
3080
3080
|
}
|
|
3081
3081
|
const Uo = /* @__PURE__ */ Ae(py, [["render", vy]]);
|
|
3082
3082
|
let qs;
|
|
@@ -3168,8 +3168,8 @@ const Sy = { class: "bg-white rounded-t-lg w-full" }, My = { class: "flex justif
|
|
|
3168
3168
|
function h() {
|
|
3169
3169
|
r.hover && c();
|
|
3170
3170
|
}
|
|
3171
|
-
return e({ hide: c }), (p, g) => (T(),
|
|
3172
|
-
(T(),
|
|
3171
|
+
return e({ hide: c }), (p, g) => (T(), _(rt, null, [
|
|
3172
|
+
(T(), _("div", {
|
|
3173
3173
|
class: "flex-1",
|
|
3174
3174
|
key: `reference_${V(n)}`,
|
|
3175
3175
|
ref_key: "reference",
|
|
@@ -3181,7 +3181,7 @@ const Sy = { class: "bg-white rounded-t-lg w-full" }, My = { class: "flex justif
|
|
|
3181
3181
|
Ie(p.$slots, "default", { isHidden: l.value })
|
|
3182
3182
|
], 32)),
|
|
3183
3183
|
(T(), $e(uf, { to: "body" }, [
|
|
3184
|
-
(T(),
|
|
3184
|
+
(T(), _("div", {
|
|
3185
3185
|
key: `floating_${V(n)}`,
|
|
3186
3186
|
ref_key: "floating",
|
|
3187
3187
|
ref: a,
|
|
@@ -3195,7 +3195,7 @@ const Sy = { class: "bg-white rounded-t-lg w-full" }, My = { class: "flex justif
|
|
|
3195
3195
|
}, [
|
|
3196
3196
|
B("div", Sy, [
|
|
3197
3197
|
B("div", My, [
|
|
3198
|
-
B("span", null,
|
|
3198
|
+
B("span", null, Oe(t.label), 1),
|
|
3199
3199
|
pe(Uo, {
|
|
3200
3200
|
onClick: c,
|
|
3201
3201
|
class: "w-4 h-4"
|
|
@@ -3220,7 +3220,7 @@ const Sy = { class: "bg-white rounded-t-lg w-full" }, My = { class: "flex justif
|
|
|
3220
3220
|
Ey
|
|
3221
3221
|
];
|
|
3222
3222
|
function Ny(t, e) {
|
|
3223
|
-
return T(),
|
|
3223
|
+
return T(), _("svg", Ty, Ay);
|
|
3224
3224
|
}
|
|
3225
3225
|
const _y = /* @__PURE__ */ Ae(Cy, [["render", Ny]]), Py = {}, Iy = {
|
|
3226
3226
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3232,7 +3232,7 @@ const _y = /* @__PURE__ */ Ae(Cy, [["render", Ny]]), Py = {}, Iy = {
|
|
|
3232
3232
|
Vy
|
|
3233
3233
|
];
|
|
3234
3234
|
function Ly(t, e) {
|
|
3235
|
-
return T(),
|
|
3235
|
+
return T(), _("svg", Iy, By);
|
|
3236
3236
|
}
|
|
3237
3237
|
const Fy = /* @__PURE__ */ Ae(Py, [["render", Ly]]), zy = {}, jy = {
|
|
3238
3238
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3248,7 +3248,7 @@ const Fy = /* @__PURE__ */ Ae(Py, [["render", Ly]]), zy = {}, jy = {
|
|
|
3248
3248
|
Wy
|
|
3249
3249
|
];
|
|
3250
3250
|
function Yy(t, e) {
|
|
3251
|
-
return T(),
|
|
3251
|
+
return T(), _("svg", jy, Hy);
|
|
3252
3252
|
}
|
|
3253
3253
|
const Ff = /* @__PURE__ */ Ae(zy, [["render", Yy]]), Uy = {}, qy = {
|
|
3254
3254
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3262,7 +3262,7 @@ const Ff = /* @__PURE__ */ Ae(zy, [["render", Yy]]), Uy = {}, qy = {
|
|
|
3262
3262
|
Ky
|
|
3263
3263
|
];
|
|
3264
3264
|
function Gy(t, e) {
|
|
3265
|
-
return T(),
|
|
3265
|
+
return T(), _("svg", qy, Jy);
|
|
3266
3266
|
}
|
|
3267
3267
|
const zf = /* @__PURE__ */ Ae(Uy, [["render", Gy]]);
|
|
3268
3268
|
var Ks = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -3352,17 +3352,17 @@ function Jv(t, e, n) {
|
|
|
3352
3352
|
function v() {
|
|
3353
3353
|
var b = Sa();
|
|
3354
3354
|
if (m(b))
|
|
3355
|
-
return
|
|
3355
|
+
return w(b);
|
|
3356
3356
|
a = setTimeout(v, g(b));
|
|
3357
3357
|
}
|
|
3358
|
-
function
|
|
3358
|
+
function w(b) {
|
|
3359
3359
|
return a = void 0, f && r ? h(b) : (r = i = void 0, o);
|
|
3360
3360
|
}
|
|
3361
3361
|
function O() {
|
|
3362
3362
|
a !== void 0 && clearTimeout(a), u = 0, r = l = i = a = void 0;
|
|
3363
3363
|
}
|
|
3364
3364
|
function y() {
|
|
3365
|
-
return a === void 0 ? o :
|
|
3365
|
+
return a === void 0 ? o : w(Sa());
|
|
3366
3366
|
}
|
|
3367
3367
|
function D() {
|
|
3368
3368
|
var b = Sa(), N = m(b);
|
|
@@ -3490,7 +3490,10 @@ const Zv = /* @__PURE__ */ Zy(Gv), Xv = {
|
|
|
3490
3490
|
info: {
|
|
3491
3491
|
type: String
|
|
3492
3492
|
},
|
|
3493
|
-
small: Boolean
|
|
3493
|
+
small: Boolean,
|
|
3494
|
+
maxDisplay: {
|
|
3495
|
+
type: Number
|
|
3496
|
+
}
|
|
3494
3497
|
},
|
|
3495
3498
|
emits: ["onChange", "update:modelValue", "onClear"],
|
|
3496
3499
|
setup(t, { expose: e, emit: n }) {
|
|
@@ -3533,42 +3536,42 @@ const Zv = /* @__PURE__ */ Zy(Gv), Xv = {
|
|
|
3533
3536
|
}
|
|
3534
3537
|
const v = Zv(function(b) {
|
|
3535
3538
|
h("update:modelValue", b), h("onChange", b);
|
|
3536
|
-
}, i.debounce),
|
|
3539
|
+
}, i.debounce), w = De(null), O = De(!1);
|
|
3537
3540
|
Rt(
|
|
3538
3541
|
() => i.modelValue,
|
|
3539
3542
|
(b) => {
|
|
3540
|
-
i.tag == "textarea" && (
|
|
3541
|
-
i.minHeight && (
|
|
3543
|
+
i.tag == "textarea" && (w.value.$el.style.height = "auto", Et(() => {
|
|
3544
|
+
i.minHeight && (w.value.$el.style.height = `${w.value.$el.scrollHeight < i.minHeight ? i.minHeight : w.value.$el.scrollHeight}px`), i.maxHeight && (w.value.$el.scrollHeight > i.maxHeight ? (w.value.$el.style.height = `${i.maxHeight}px`, O.value = !0) : O.value = !1);
|
|
3542
3545
|
}));
|
|
3543
3546
|
},
|
|
3544
3547
|
{ deep: !0 }
|
|
3545
3548
|
);
|
|
3546
3549
|
function y() {
|
|
3547
3550
|
var b;
|
|
3548
|
-
i.tag == "textarea" ?
|
|
3551
|
+
i.tag == "textarea" ? w.value.$el.focus() : (b = w.value) == null || b.$el.focus();
|
|
3549
3552
|
}
|
|
3550
3553
|
function D() {
|
|
3551
|
-
return
|
|
3554
|
+
return w.value.meta.valid;
|
|
3552
3555
|
}
|
|
3553
3556
|
return e({
|
|
3554
3557
|
focus: y,
|
|
3555
3558
|
isValid: D
|
|
3556
3559
|
}), (b, N) => {
|
|
3557
3560
|
const F = cf("wpic-choice-list");
|
|
3558
|
-
return T(),
|
|
3561
|
+
return T(), _("div", {
|
|
3559
3562
|
class: ne(["wpic-form-field", {
|
|
3560
3563
|
"mb-6": !t.slim
|
|
3561
3564
|
}])
|
|
3562
3565
|
}, [
|
|
3563
|
-
a.value && !t.checkbox && !t.radio ? (T(),
|
|
3564
|
-
|
|
3566
|
+
a.value && !t.checkbox && !t.radio ? (T(), _("div", Xv, [
|
|
3567
|
+
nt(Oe(a.value) + " ", 1),
|
|
3565
3568
|
B("div", Qv, [
|
|
3566
3569
|
t.info ? (T(), $e(Ps, {
|
|
3567
3570
|
key: 0,
|
|
3568
3571
|
hover: ""
|
|
3569
3572
|
}, {
|
|
3570
3573
|
content: Pe(() => [
|
|
3571
|
-
|
|
3574
|
+
nt(Oe(t.info), 1)
|
|
3572
3575
|
]),
|
|
3573
3576
|
default: Pe(() => [
|
|
3574
3577
|
pe(zf, { class: "w-4 h-4 text-zinc-600" })
|
|
@@ -3580,7 +3583,7 @@ const Zv = /* @__PURE__ */ Zy(Gv), Xv = {
|
|
|
3580
3583
|
t.checkbox ? (T(), $e(V(Ys), {
|
|
3581
3584
|
key: 1,
|
|
3582
3585
|
ref_key: "myInput",
|
|
3583
|
-
ref:
|
|
3586
|
+
ref: w,
|
|
3584
3587
|
name: s.value,
|
|
3585
3588
|
rules: d.value,
|
|
3586
3589
|
value: t.checkboxValue,
|
|
@@ -3606,7 +3609,7 @@ const Zv = /* @__PURE__ */ Zy(Gv), Xv = {
|
|
|
3606
3609
|
class: ne(["text-base cursor-pointer select-none", { "opacity-50": t.disabled }])
|
|
3607
3610
|
}, [
|
|
3608
3611
|
Ie(b.$slots, "default", {}, () => [
|
|
3609
|
-
|
|
3612
|
+
nt(Oe(a.value), 1)
|
|
3610
3613
|
])
|
|
3611
3614
|
], 2)
|
|
3612
3615
|
])
|
|
@@ -3615,7 +3618,7 @@ const Zv = /* @__PURE__ */ Zy(Gv), Xv = {
|
|
|
3615
3618
|
}, 8, ["name", "rules", "value", "unchecked-value", "modelValue"])) : t.radio ? (T(), $e(V(Ys), {
|
|
3616
3619
|
key: 2,
|
|
3617
3620
|
ref_key: "myInput",
|
|
3618
|
-
ref:
|
|
3621
|
+
ref: w,
|
|
3619
3622
|
name: s.value,
|
|
3620
3623
|
value: t.radioValue,
|
|
3621
3624
|
modelValue: t.modelValue
|
|
@@ -3630,7 +3633,7 @@ const Zv = /* @__PURE__ */ Zy(Gv), Xv = {
|
|
|
3630
3633
|
B("span", {
|
|
3631
3634
|
class: ne(["h-4 w-4 border border-zinc-400 rounded-full p-[2px]", { "border-opacity-50": t.disabled }])
|
|
3632
3635
|
}, [
|
|
3633
|
-
t.radioValue == t.modelValue ? (T(),
|
|
3636
|
+
t.radioValue == t.modelValue ? (T(), _("span", {
|
|
3634
3637
|
key: 0,
|
|
3635
3638
|
class: ne(["flex rounded-full h-full w-full bg-violet-800", { "bg-opacity-50": t.disabled }])
|
|
3636
3639
|
}, null, 2)) : ye("", !0)
|
|
@@ -3643,17 +3646,17 @@ const Zv = /* @__PURE__ */ Zy(Gv), Xv = {
|
|
|
3643
3646
|
onChange: N[1] || (N[1] = (...H) => b.onChange && b.onChange(...H)),
|
|
3644
3647
|
checked: t.radioValue == t.modelValue
|
|
3645
3648
|
}, null, 40, eb),
|
|
3646
|
-
a.value ? (T(),
|
|
3649
|
+
a.value ? (T(), _("span", {
|
|
3647
3650
|
key: 0,
|
|
3648
3651
|
class: ne(["text-base", { "opacity-50": t.disabled }])
|
|
3649
|
-
},
|
|
3652
|
+
}, Oe(a.value), 3)) : ye("", !0)
|
|
3650
3653
|
], 2)
|
|
3651
3654
|
]),
|
|
3652
3655
|
_: 1
|
|
3653
3656
|
}, 8, ["name", "value", "modelValue"])) : t.select ? (T(), $e(V(Ys), {
|
|
3654
3657
|
key: 3,
|
|
3655
3658
|
ref_key: "myInput",
|
|
3656
|
-
ref:
|
|
3659
|
+
ref: w,
|
|
3657
3660
|
modelValue: t.modelValue,
|
|
3658
3661
|
rules: d.value,
|
|
3659
3662
|
name: s.value
|
|
@@ -3669,15 +3672,16 @@ const Zv = /* @__PURE__ */ Zy(Gv), Xv = {
|
|
|
3669
3672
|
small: t.small,
|
|
3670
3673
|
hideSelect: t.hideSelect,
|
|
3671
3674
|
multiple: t.multiple,
|
|
3675
|
+
maxDisplay: t.maxDisplay,
|
|
3672
3676
|
isInvalid: !!(t.error && V(o)),
|
|
3673
3677
|
required: t.required || ((H = d.value) == null ? void 0 : H.indexOf("required")) >= 0,
|
|
3674
3678
|
label: a.value,
|
|
3675
3679
|
placeholder: "Select..."
|
|
3676
|
-
}, null, 8, ["modelValue", "disabled", "options", "small", "hideSelect", "multiple", "isInvalid", "required", "label"])
|
|
3680
|
+
}, null, 8, ["modelValue", "disabled", "options", "small", "hideSelect", "multiple", "maxDisplay", "isInvalid", "required", "label"])
|
|
3677
3681
|
];
|
|
3678
3682
|
}),
|
|
3679
3683
|
_: 1
|
|
3680
|
-
}, 8, ["modelValue", "rules", "name"])) : (T(),
|
|
3684
|
+
}, 8, ["modelValue", "rules", "name"])) : (T(), _("div", {
|
|
3681
3685
|
key: 4,
|
|
3682
3686
|
class: ne(["wpic-input rounded flex relative border", {
|
|
3683
3687
|
[`${r[V(ve).theme]}`]: !0,
|
|
@@ -3687,14 +3691,14 @@ const Zv = /* @__PURE__ */ Zy(Gv), Xv = {
|
|
|
3687
3691
|
"!border-red-600 focus-within:outline-red-600": V(o)
|
|
3688
3692
|
}])
|
|
3689
3693
|
}, [
|
|
3690
|
-
b.$slots.prepend ? (T(),
|
|
3694
|
+
b.$slots.prepend ? (T(), _("div", tb, [
|
|
3691
3695
|
B("div", nb, [
|
|
3692
3696
|
Ie(b.$slots, "prepend")
|
|
3693
3697
|
])
|
|
3694
3698
|
])) : ye("", !0),
|
|
3695
3699
|
pe(V(Ys), {
|
|
3696
3700
|
ref_key: "myInput",
|
|
3697
|
-
ref:
|
|
3701
|
+
ref: w,
|
|
3698
3702
|
as: t.textarea ? "textarea" : void 0,
|
|
3699
3703
|
autocomplete: "off",
|
|
3700
3704
|
style: { "z-index": "1" },
|
|
@@ -3711,13 +3715,13 @@ const Zv = /* @__PURE__ */ Zy(Gv), Xv = {
|
|
|
3711
3715
|
validateOnInput: !!V(o),
|
|
3712
3716
|
rules: d.value
|
|
3713
3717
|
}, null, 8, ["as", "class", "type", "min", "max", "rows", "name", "disabled", "modelValue", "placeholder", "validateOnInput", "rules"]),
|
|
3714
|
-
t.loading ? (T(),
|
|
3718
|
+
t.loading ? (T(), _("div", {
|
|
3715
3719
|
key: 1,
|
|
3716
3720
|
onClick: m,
|
|
3717
3721
|
class: "absolute right-0 mr-3 h-full flex items-center cursor-pointer opacity-75 hover:opacity-100"
|
|
3718
3722
|
}, [
|
|
3719
3723
|
pe(Ns, { class: "w-6 h-6 opacity-50" })
|
|
3720
|
-
])) : t.clearable && t.modelValue ? (T(),
|
|
3724
|
+
])) : t.clearable && t.modelValue ? (T(), _("div", {
|
|
3721
3725
|
key: 2,
|
|
3722
3726
|
onClick: Ul(m, ["stop"]),
|
|
3723
3727
|
style: { "z-index": "2" },
|
|
@@ -3725,7 +3729,7 @@ const Zv = /* @__PURE__ */ Zy(Gv), Xv = {
|
|
|
3725
3729
|
}, [
|
|
3726
3730
|
pe(Uo, { class: "w-5 h-5 opacity-50" })
|
|
3727
3731
|
])) : ye("", !0),
|
|
3728
|
-
b.$slots.append || t.password || t.type == "password" ? (T(),
|
|
3732
|
+
b.$slots.append || t.password || t.type == "password" ? (T(), _("div", rb, [
|
|
3729
3733
|
B("div", ib, [
|
|
3730
3734
|
Ie(b.$slots, "append", {}, () => [
|
|
3731
3735
|
Xu(pe(_y, {
|
|
@@ -3744,20 +3748,20 @@ const Zv = /* @__PURE__ */ Zy(Gv), Xv = {
|
|
|
3744
3748
|
])
|
|
3745
3749
|
])) : ye("", !0)
|
|
3746
3750
|
], 2)),
|
|
3747
|
-
t.error && V(o) ? (T(),
|
|
3751
|
+
t.error && V(o) ? (T(), _("div", sb, [
|
|
3748
3752
|
pe(V(o0), { name: s.value }, {
|
|
3749
3753
|
default: Pe(($) => [
|
|
3750
|
-
|
|
3754
|
+
nt(Oe($.message), 1)
|
|
3751
3755
|
]),
|
|
3752
3756
|
_: 1
|
|
3753
3757
|
}, 8, ["name"])
|
|
3754
3758
|
])) : ye("", !0),
|
|
3755
|
-
b.$slots.help || t.help ? (T(),
|
|
3759
|
+
b.$slots.help || t.help ? (T(), _("div", {
|
|
3756
3760
|
key: 6,
|
|
3757
3761
|
class: ne(["text-base mt-1", { "ml-7": t.type == "checkbox", "opacity-50": t.disabled }])
|
|
3758
3762
|
}, [
|
|
3759
3763
|
Ie(b.$slots, "help", {}, () => [
|
|
3760
|
-
|
|
3764
|
+
nt(Oe(t.help), 1)
|
|
3761
3765
|
])
|
|
3762
3766
|
], 2)) : ye("", !0)
|
|
3763
3767
|
], 2);
|
|
@@ -3794,16 +3798,16 @@ const Zv = /* @__PURE__ */ Zy(Gv), Xv = {
|
|
|
3794
3798
|
}
|
|
3795
3799
|
return (o, a) => {
|
|
3796
3800
|
const l = cf("wpic-spinner");
|
|
3797
|
-
return T(),
|
|
3798
|
-
t.label ? (T(),
|
|
3799
|
-
|
|
3801
|
+
return T(), _(rt, null, [
|
|
3802
|
+
t.label ? (T(), _("div", lb, [
|
|
3803
|
+
nt(Oe(t.label) + " ", 1),
|
|
3800
3804
|
B("div", ub, [
|
|
3801
3805
|
t.info ? (T(), $e(Ps, {
|
|
3802
3806
|
key: 0,
|
|
3803
3807
|
hover: ""
|
|
3804
3808
|
}, {
|
|
3805
3809
|
content: Pe(() => [
|
|
3806
|
-
|
|
3810
|
+
nt(Oe(t.info), 1)
|
|
3807
3811
|
]),
|
|
3808
3812
|
default: Pe(() => [
|
|
3809
3813
|
pe(zf, { class: "w-4 h-4 text-zinc-600" })
|
|
@@ -3823,19 +3827,19 @@ const Zv = /* @__PURE__ */ Zy(Gv), Xv = {
|
|
|
3823
3827
|
"cursor-pointer": !t.disabled
|
|
3824
3828
|
}])
|
|
3825
3829
|
}, [
|
|
3826
|
-
o.$slots.prepend ? (T(),
|
|
3830
|
+
o.$slots.prepend ? (T(), _("div", cb, [
|
|
3827
3831
|
B("div", db, [
|
|
3828
3832
|
Ie(o.$slots, "prepend")
|
|
3829
3833
|
])
|
|
3830
3834
|
])) : ye("", !0),
|
|
3831
3835
|
Ie(o.$slots, "default"),
|
|
3832
|
-
t.loading ? (T(),
|
|
3836
|
+
t.loading ? (T(), _("div", {
|
|
3833
3837
|
key: 1,
|
|
3834
3838
|
onClick: s,
|
|
3835
3839
|
class: "absolute right-0 mr-3 h-full flex items-center cursor-pointer opacity-75 hover:opacity-100"
|
|
3836
3840
|
}, [
|
|
3837
3841
|
pe(l, { class: "w-6 h-6 opacity-50" })
|
|
3838
|
-
])) : t.clearable ? (T(),
|
|
3842
|
+
])) : t.clearable ? (T(), _("div", {
|
|
3839
3843
|
key: 2,
|
|
3840
3844
|
onClick: Ul(s, ["stop"]),
|
|
3841
3845
|
style: { "z-index": "2" },
|
|
@@ -3861,7 +3865,7 @@ const Zv = /* @__PURE__ */ Zy(Gv), Xv = {
|
|
|
3861
3865
|
mb
|
|
3862
3866
|
];
|
|
3863
3867
|
function yb(t, e) {
|
|
3864
|
-
return T(),
|
|
3868
|
+
return T(), _("svg", pb, gb);
|
|
3865
3869
|
}
|
|
3866
3870
|
const vb = /* @__PURE__ */ Ae(hb, [["render", yb]]), bb = ["disabled"], wb = {
|
|
3867
3871
|
key: 0,
|
|
@@ -3893,51 +3897,46 @@ const vb = /* @__PURE__ */ Ae(hb, [["render", yb]]), bb = ["disabled"], wb = {
|
|
|
3893
3897
|
},
|
|
3894
3898
|
batchSelect: {
|
|
3895
3899
|
type: Boolean,
|
|
3896
|
-
default: !
|
|
3897
|
-
}
|
|
3900
|
+
default: !1
|
|
3901
|
+
},
|
|
3902
|
+
allSelectedText: String
|
|
3898
3903
|
},
|
|
3899
3904
|
emits: ["blur", "input", "change", "update:modelValue"],
|
|
3900
|
-
setup(t, {
|
|
3901
|
-
const
|
|
3902
|
-
function
|
|
3903
|
-
if (
|
|
3904
|
-
if (
|
|
3905
|
-
let
|
|
3906
|
-
|
|
3905
|
+
setup(t, { expose: e, emit: n }) {
|
|
3906
|
+
const r = t, i = n, s = De();
|
|
3907
|
+
function o(h) {
|
|
3908
|
+
if (r.multiple) {
|
|
3909
|
+
if (h) {
|
|
3910
|
+
let p = r.modelValue || [];
|
|
3911
|
+
p.indexOf(h) >= 0 ? p.splice(p.indexOf(h), 1) : p.push(h), i("update:modelValue", p);
|
|
3907
3912
|
}
|
|
3908
3913
|
} else
|
|
3909
|
-
|
|
3910
|
-
}
|
|
3911
|
-
function
|
|
3912
|
-
|
|
3913
|
-
}
|
|
3914
|
-
const
|
|
3915
|
-
var
|
|
3916
|
-
if (
|
|
3917
|
-
if (
|
|
3918
|
-
let
|
|
3919
|
-
var
|
|
3920
|
-
return ((
|
|
3921
|
-
}).map((
|
|
3922
|
-
return
|
|
3914
|
+
i("update:modelValue", h), s.value.hide();
|
|
3915
|
+
}
|
|
3916
|
+
function a(h) {
|
|
3917
|
+
i("update:modelValue", h);
|
|
3918
|
+
}
|
|
3919
|
+
const l = ie(() => {
|
|
3920
|
+
var h, p, g, m;
|
|
3921
|
+
if (r.multiple)
|
|
3922
|
+
if (r.maxDisplay) {
|
|
3923
|
+
let v = (p = r.options) == null ? void 0 : p.filter((O) => {
|
|
3924
|
+
var y;
|
|
3925
|
+
return ((y = r.modelValue) == null ? void 0 : y.indexOf(O.value)) >= 0;
|
|
3926
|
+
}).map((O) => O.label), w = v == null ? void 0 : v.slice(0, r.maxDisplay);
|
|
3927
|
+
return v.length - w.length > 0 ? (w == null ? void 0 : w.join(", ")) + ` (+${v.length - w.length})` : w == null ? void 0 : w.join(", ");
|
|
3923
3928
|
} else
|
|
3924
|
-
return (
|
|
3925
|
-
var
|
|
3926
|
-
return ((
|
|
3927
|
-
}).map((
|
|
3929
|
+
return (h = r.options) == null ? void 0 : h.filter((v) => {
|
|
3930
|
+
var w;
|
|
3931
|
+
return ((w = r.modelValue) == null ? void 0 : w.indexOf(v.value)) >= 0;
|
|
3932
|
+
}).map((v) => v.label).join(", ");
|
|
3928
3933
|
else
|
|
3929
|
-
return ((
|
|
3930
|
-
}), l = ie(() => {
|
|
3931
|
-
if (n.required)
|
|
3932
|
-
return n.options;
|
|
3933
|
-
{
|
|
3934
|
-
let f = n.options;
|
|
3935
|
-
return f == null || f.unshift({ label: n.placeholder || "-", value: null }), f;
|
|
3936
|
-
}
|
|
3934
|
+
return ((m = (g = r.options) == null ? void 0 : g.find((v) => v.value === r.modelValue)) == null ? void 0 : m.label) || r.modelValue;
|
|
3937
3935
|
});
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3936
|
+
ie(() => (r.required, r.options));
|
|
3937
|
+
function u(h) {
|
|
3938
|
+
var p;
|
|
3939
|
+
return r.multiple ? r.modelValue !== null && ((p = r.modelValue) == null ? void 0 : p.indexOf(h)) >= 0 : r.modelValue !== null && h === r.modelValue;
|
|
3941
3940
|
}
|
|
3942
3941
|
const c = {
|
|
3943
3942
|
pmi: "text-zinc-800 dark:text-zinc-300 disabled:bg-zinc-50 disabled:border-zinc-300 disabled:text-zinc-400 enabled:bg-zinc-100 enabled:border-zinc-400 enabled:text-zinc-500 enabled:dark:bg-zinc-700/25 enabled:dark:border-zinc-700/50 enabled:dark:text-zinc-300",
|
|
@@ -3945,16 +3944,21 @@ const vb = /* @__PURE__ */ Ae(hb, [["render", yb]]), bb = ["disabled"], wb = {
|
|
|
3945
3944
|
}, d = {
|
|
3946
3945
|
pmi: "group-[.is-selected]:bg-violet-50 group-[.is-selected]:hover:bg-violet-100",
|
|
3947
3946
|
"wpic-tools": "hover:bg-slate-50 group-[.is-selected]:text-lime-500 group-[.is-selected]:font-medium text-slate-600"
|
|
3948
|
-
}
|
|
3949
|
-
|
|
3947
|
+
}, f = ie(() => {
|
|
3948
|
+
var h, p;
|
|
3949
|
+
return ((h = r.modelValue) == null ? void 0 : h.length) === ((p = r.options) == null ? void 0 : p.length);
|
|
3950
|
+
});
|
|
3951
|
+
return e({
|
|
3952
|
+
isAllSelected: f
|
|
3953
|
+
}), (h, p) => (T(), $e(Ps, {
|
|
3950
3954
|
custom: "",
|
|
3951
3955
|
ref_key: "myPopover",
|
|
3952
|
-
ref:
|
|
3956
|
+
ref: s,
|
|
3953
3957
|
label: t.label,
|
|
3954
3958
|
disabled: t.disabled
|
|
3955
3959
|
}, {
|
|
3956
|
-
default: Pe(({ isHidden:
|
|
3957
|
-
var
|
|
3960
|
+
default: Pe(({ isHidden: g }) => {
|
|
3961
|
+
var m, v;
|
|
3958
3962
|
return [
|
|
3959
3963
|
B("button", {
|
|
3960
3964
|
class: ne(["flex appearance-none w-full items-center gap-2 px-3 lg:text-base rounded border overflow-hidden leading-none", {
|
|
@@ -3969,48 +3973,54 @@ const vb = /* @__PURE__ */ Ae(hb, [["render", yb]]), bb = ["disabled"], wb = {
|
|
|
3969
3973
|
B("span", {
|
|
3970
3974
|
class: ne(["select-none w-full text-left flex-1", { "whitespace-pre": !t.multiple }])
|
|
3971
3975
|
}, [
|
|
3972
|
-
t.modelValue && ((
|
|
3973
|
-
|
|
3976
|
+
t.modelValue && ((m = t.modelValue) == null ? void 0 : m.length) > 0 && !t.hideSelect ? (T(), _("span", wb, [
|
|
3977
|
+
f.value && ((v = t.allSelectedText) != null && v.length) ? (T(), _(rt, { key: 0 }, [
|
|
3978
|
+
nt(Oe(t.allSelectedText), 1)
|
|
3979
|
+
], 64)) : (T(), _(rt, { key: 1 }, [
|
|
3980
|
+
nt(Oe(l.value), 1)
|
|
3981
|
+
], 64))
|
|
3982
|
+
])) : Ie(h.$slots, "default", { key: 1 }, () => [
|
|
3983
|
+
nt(Oe(t.placeholder), 1)
|
|
3974
3984
|
])
|
|
3975
3985
|
], 2),
|
|
3976
3986
|
pe(vb, {
|
|
3977
|
-
class: ne(["h-4 w-4 transition-all transform", { "rotate-180": !
|
|
3987
|
+
class: ne(["h-4 w-4 transition-all transform", { "rotate-180": !g }])
|
|
3978
3988
|
}, null, 8, ["class"])
|
|
3979
3989
|
], 10, bb)
|
|
3980
3990
|
];
|
|
3981
3991
|
}),
|
|
3982
3992
|
content: Pe(() => {
|
|
3983
|
-
var
|
|
3993
|
+
var g;
|
|
3984
3994
|
return [
|
|
3985
|
-
!t.options && ((
|
|
3986
|
-
t.multiple && t.batchSelect ? (T(),
|
|
3995
|
+
!t.options && ((g = t.options) == null ? void 0 : g.length) == 0 ? (T(), _("span", kb, "No data.")) : (T(), _("div", xb, [
|
|
3996
|
+
t.multiple && t.batchSelect ? (T(), _("div", Sb, [
|
|
3987
3997
|
B("span", {
|
|
3988
3998
|
class: "cursor-pointer opacity-50 hover:opacity-100",
|
|
3989
|
-
onClick:
|
|
3990
|
-
var
|
|
3991
|
-
return
|
|
3999
|
+
onClick: p[0] || (p[0] = (m) => {
|
|
4000
|
+
var v;
|
|
4001
|
+
return a((v = t.options) == null ? void 0 : v.filter((w) => w.value).map((w) => w.value));
|
|
3992
4002
|
})
|
|
3993
4003
|
}, "Select all"),
|
|
3994
4004
|
B("span", {
|
|
3995
4005
|
class: "cursor-pointer opacity-50 hover:opacity-100",
|
|
3996
|
-
onClick:
|
|
4006
|
+
onClick: p[1] || (p[1] = (m) => a([]))
|
|
3997
4007
|
}, "Select none")
|
|
3998
4008
|
])) : ye("", !0),
|
|
3999
|
-
(T(!0),
|
|
4000
|
-
class: ne(["group", { "is-selected": !!u(
|
|
4009
|
+
(T(!0), _(rt, null, At(r.options, (m) => (T(), _("div", {
|
|
4010
|
+
class: ne(["group", { "is-selected": !!u(m.value) }])
|
|
4001
4011
|
}, [
|
|
4002
4012
|
B("div", {
|
|
4003
4013
|
class: ne(["flex items-center py-2 px-4 min-w-64 text-base", {
|
|
4004
|
-
"cursor-pointer": !t.multiple ||
|
|
4014
|
+
"cursor-pointer": !t.multiple || m.value,
|
|
4005
4015
|
[`${d[V(ve).theme]}`]: !0
|
|
4006
4016
|
}]),
|
|
4007
|
-
onClick: (
|
|
4017
|
+
onClick: (v) => m.disabled ? null : o(m.value)
|
|
4008
4018
|
}, [
|
|
4009
4019
|
B("div", Ob, [
|
|
4010
4020
|
B("span", {
|
|
4011
|
-
class: ne(["", { "opacity-25":
|
|
4012
|
-
},
|
|
4013
|
-
u(
|
|
4021
|
+
class: ne(["", { "opacity-25": m.disabled }])
|
|
4022
|
+
}, Oe(m.label || m.value), 3),
|
|
4023
|
+
u(m.value) ? (T(), $e(Ff, {
|
|
4014
4024
|
key: 0,
|
|
4015
4025
|
class: "w-4 h-4"
|
|
4016
4026
|
})) : ye("", !0)
|
|
@@ -4043,17 +4053,17 @@ const vb = /* @__PURE__ */ Ae(hb, [["render", yb]]), bb = ["disabled"], wb = {
|
|
|
4043
4053
|
pmi: "shadow-[0_4px_16px_0px_rgba(0,0,0,0.1)]",
|
|
4044
4054
|
"wpic-tools": "border border-slate-300"
|
|
4045
4055
|
};
|
|
4046
|
-
return (n, r) => (T(),
|
|
4056
|
+
return (n, r) => (T(), _("div", {
|
|
4047
4057
|
class: ne(["bg-white dark:bg-zinc-800/50 rounded-lg wpic-card", [e[V(ve).theme]]])
|
|
4048
4058
|
}, [
|
|
4049
|
-
t.title || n.$slots.actions ? (T(),
|
|
4050
|
-
t.title ? (T(),
|
|
4059
|
+
t.title || n.$slots.actions ? (T(), _("div", Db, [
|
|
4060
|
+
t.title ? (T(), _("div", Eb, Oe(t.title), 1)) : ye("", !0),
|
|
4051
4061
|
B("div", Ab, [
|
|
4052
4062
|
Ie(n.$slots, "actions")
|
|
4053
4063
|
])
|
|
4054
4064
|
])) : ye("", !0),
|
|
4055
4065
|
Ie(n.$slots, "default"),
|
|
4056
|
-
n.$slots.buttons ? (T(),
|
|
4066
|
+
n.$slots.buttons ? (T(), _("div", Nb, [
|
|
4057
4067
|
Ie(n.$slots, "buttons")
|
|
4058
4068
|
])) : ye("", !0)
|
|
4059
4069
|
], 2));
|
|
@@ -4062,7 +4072,7 @@ const vb = /* @__PURE__ */ Ae(hb, [["render", yb]]), bb = ["disabled"], wb = {
|
|
|
4062
4072
|
name: "WpicCardSection"
|
|
4063
4073
|
}, Rb = { class: "py-6 border-b last:border-0 mx-6" };
|
|
4064
4074
|
function $b(t, e, n, r, i, s) {
|
|
4065
|
-
return T(),
|
|
4075
|
+
return T(), _("div", Rb, [
|
|
4066
4076
|
Ie(t.$slots, "default")
|
|
4067
4077
|
]);
|
|
4068
4078
|
}
|
|
@@ -4073,8 +4083,8 @@ const Vb = /* @__PURE__ */ Ae(Ib, [["render", $b]]), Bb = { class: "flex h-2 rou
|
|
|
4073
4083
|
value: Number
|
|
4074
4084
|
},
|
|
4075
4085
|
setup(t) {
|
|
4076
|
-
return (e, n) => (T(),
|
|
4077
|
-
t.value > 0 ? (T(),
|
|
4086
|
+
return (e, n) => (T(), _("div", Bb, [
|
|
4087
|
+
t.value > 0 ? (T(), _("div", {
|
|
4078
4088
|
key: 0,
|
|
4079
4089
|
style: ql({ width: `${t.value}%` }),
|
|
4080
4090
|
class: "flex h-full bg-cyan-400 ring-1 ring-cyan-400 rounded-full"
|
|
@@ -4096,13 +4106,13 @@ const Vb = /* @__PURE__ */ Ae(Ib, [["render", $b]]), Bb = { class: "flex h-2 rou
|
|
|
4096
4106
|
function i() {
|
|
4097
4107
|
r("clear");
|
|
4098
4108
|
}
|
|
4099
|
-
return (s, o) => (T(),
|
|
4109
|
+
return (s, o) => (T(), _("div", {
|
|
4100
4110
|
class: ne(["wpic-tag select-none border inline-flex rounded h-8 items-center justify-center pl-3 py-1", { "pr-3": !t.clearable, "pr-2": t.clearable, [n[V(ve).theme]]: !0 }])
|
|
4101
4111
|
}, [
|
|
4102
4112
|
B("span", zb, [
|
|
4103
4113
|
Ie(s.$slots, "default")
|
|
4104
4114
|
]),
|
|
4105
|
-
t.clearable ? (T(),
|
|
4115
|
+
t.clearable ? (T(), _("span", {
|
|
4106
4116
|
key: 0,
|
|
4107
4117
|
onClick: i,
|
|
4108
4118
|
class: "ml-1 cursor-pointer opacity-75 hover:opacity-100"
|
|
@@ -4118,7 +4128,7 @@ const Vb = /* @__PURE__ */ Ae(Ib, [["render", $b]]), Bb = { class: "flex h-2 rou
|
|
|
4118
4128
|
full: Boolean
|
|
4119
4129
|
},
|
|
4120
4130
|
setup(t) {
|
|
4121
|
-
return (e, n) => (T(),
|
|
4131
|
+
return (e, n) => (T(), _("div", {
|
|
4122
4132
|
class: ne({ "w-full": t.full })
|
|
4123
4133
|
}, [
|
|
4124
4134
|
B("div", {
|
|
@@ -4138,7 +4148,7 @@ const Vb = /* @__PURE__ */ Ae(Ib, [["render", $b]]), Bb = { class: "flex h-2 rou
|
|
|
4138
4148
|
}
|
|
4139
4149
|
},
|
|
4140
4150
|
setup(t) {
|
|
4141
|
-
return (e, n) => (T(),
|
|
4151
|
+
return (e, n) => (T(), _("div", Ub, [
|
|
4142
4152
|
pe(Ns, {
|
|
4143
4153
|
color: t.color,
|
|
4144
4154
|
class: "w-10 h-10"
|
|
@@ -4159,7 +4169,7 @@ const Vb = /* @__PURE__ */ Ae(Ib, [["render", $b]]), Bb = { class: "flex h-2 rou
|
|
|
4159
4169
|
pmi: "bg-violet-800 border-violet-800 hover:bg-violet-900 hover:border-violet-900 text-white",
|
|
4160
4170
|
"wpic-tools": "bg-lime-500 border-lime-500 text-white"
|
|
4161
4171
|
};
|
|
4162
|
-
return (r, i) => (T(),
|
|
4172
|
+
return (r, i) => (T(), _("div", {
|
|
4163
4173
|
class: ne(["border rounded flex items-center justify-center w-10 h-10 cursor-pointer", {
|
|
4164
4174
|
[e[V(ve).theme]]: !t.active,
|
|
4165
4175
|
[n[V(ve).theme]]: t.active
|
|
@@ -4182,7 +4192,7 @@ const Vb = /* @__PURE__ */ Ae(Ib, [["render", $b]]), Bb = { class: "flex h-2 rou
|
|
|
4182
4192
|
Qb
|
|
4183
4193
|
];
|
|
4184
4194
|
function t1(t, e) {
|
|
4185
|
-
return T(),
|
|
4195
|
+
return T(), _("svg", Xb, e1);
|
|
4186
4196
|
}
|
|
4187
4197
|
const qf = /* @__PURE__ */ Ae(Zb, [["render", t1]]), n1 = {}, r1 = {
|
|
4188
4198
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4196,7 +4206,7 @@ const qf = /* @__PURE__ */ Ae(Zb, [["render", t1]]), n1 = {}, r1 = {
|
|
|
4196
4206
|
i1
|
|
4197
4207
|
];
|
|
4198
4208
|
function o1(t, e) {
|
|
4199
|
-
return T(),
|
|
4209
|
+
return T(), _("svg", r1, s1);
|
|
4200
4210
|
}
|
|
4201
4211
|
const Kf = /* @__PURE__ */ Ae(n1, [["render", o1]]), a1 = {}, l1 = {
|
|
4202
4212
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4210,7 +4220,7 @@ const Kf = /* @__PURE__ */ Ae(n1, [["render", o1]]), a1 = {}, l1 = {
|
|
|
4210
4220
|
u1
|
|
4211
4221
|
];
|
|
4212
4222
|
function d1(t, e) {
|
|
4213
|
-
return T(),
|
|
4223
|
+
return T(), _("svg", l1, c1);
|
|
4214
4224
|
}
|
|
4215
4225
|
const Jf = /* @__PURE__ */ Ae(a1, [["render", d1]]), f1 = {}, h1 = {
|
|
4216
4226
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4224,7 +4234,7 @@ const Jf = /* @__PURE__ */ Ae(a1, [["render", d1]]), f1 = {}, h1 = {
|
|
|
4224
4234
|
p1
|
|
4225
4235
|
];
|
|
4226
4236
|
function g1(t, e) {
|
|
4227
|
-
return T(),
|
|
4237
|
+
return T(), _("svg", h1, m1);
|
|
4228
4238
|
}
|
|
4229
4239
|
const Gf = /* @__PURE__ */ Ae(f1, [["render", g1]]), y1 = { class: "wpic-pagination flex justify-between" }, v1 = {
|
|
4230
4240
|
key: 0,
|
|
@@ -4275,9 +4285,9 @@ const Gf = /* @__PURE__ */ Ae(f1, [["render", g1]]), y1 = { class: "wpic-paginat
|
|
|
4275
4285
|
return e({
|
|
4276
4286
|
getStart: l,
|
|
4277
4287
|
getEnd: u
|
|
4278
|
-
}), (c, d) => (T(),
|
|
4279
|
-
t.info ? (T(),
|
|
4280
|
-
t.pages ? (T(),
|
|
4288
|
+
}), (c, d) => (T(), _("div", y1, [
|
|
4289
|
+
t.info ? (T(), _("div", v1, Oe(l()) + " - " + Oe(u()) + " / " + Oe(t.total), 1)) : ye("", !0),
|
|
4290
|
+
t.pages ? (T(), _("div", b1, [
|
|
4281
4291
|
pe(Wi, {
|
|
4282
4292
|
onClick: d[0] || (d[0] = (f) => a(1)),
|
|
4283
4293
|
disabled: t.currentPage === 1
|
|
@@ -4296,13 +4306,13 @@ const Gf = /* @__PURE__ */ Ae(f1, [["render", g1]]), y1 = { class: "wpic-paginat
|
|
|
4296
4306
|
]),
|
|
4297
4307
|
_: 1
|
|
4298
4308
|
}, 8, ["disabled"]),
|
|
4299
|
-
(T(!0),
|
|
4309
|
+
(T(!0), _(rt, null, At(o.value, (f) => (T(), $e(Wi, {
|
|
4300
4310
|
key: f,
|
|
4301
4311
|
onClick: (h) => a(f),
|
|
4302
4312
|
active: f === t.currentPage
|
|
4303
4313
|
}, {
|
|
4304
4314
|
default: Pe(() => [
|
|
4305
|
-
|
|
4315
|
+
nt(Oe(f), 1)
|
|
4306
4316
|
]),
|
|
4307
4317
|
_: 2
|
|
4308
4318
|
}, 1032, ["onClick", "active"]))), 128)),
|
|
@@ -4347,7 +4357,7 @@ const Xf = Zf, x1 = {}, S1 = {
|
|
|
4347
4357
|
M1
|
|
4348
4358
|
];
|
|
4349
4359
|
function C1(t, e) {
|
|
4350
|
-
return T(),
|
|
4360
|
+
return T(), _("svg", S1, O1);
|
|
4351
4361
|
}
|
|
4352
4362
|
const T1 = /* @__PURE__ */ Ae(x1, [["render", C1]]), D1 = { class: "font-semibold" }, Sc = {
|
|
4353
4363
|
__name: "TotalRow",
|
|
@@ -4362,8 +4372,8 @@ const T1 = /* @__PURE__ */ Ae(x1, [["render", C1]]), D1 = { class: "font-semibol
|
|
|
4362
4372
|
pmi: "bg-white dark:text-zinc-300 dark:border-zinc-900 dark:bg-zinc-800",
|
|
4363
4373
|
"wpic-tools": "bg-slate-50 border-slate-200 dark:border-slate-900 dark:bg-slate-800"
|
|
4364
4374
|
};
|
|
4365
|
-
return (n, r) => (T(),
|
|
4366
|
-
(T(!0),
|
|
4375
|
+
return (n, r) => (T(), _("tr", D1, [
|
|
4376
|
+
(T(!0), _(rt, null, At(t.columns, (i, s) => (T(), $e(Xf, {
|
|
4367
4377
|
class: ne(["py-3 first:pl-6 pr-6 border-t", {
|
|
4368
4378
|
[`${e[V(ve).theme]}`]: !0,
|
|
4369
4379
|
"sticky left-0": s === 0,
|
|
@@ -4424,15 +4434,15 @@ const T1 = /* @__PURE__ */ Ae(x1, [["render", C1]]), D1 = { class: "font-semibol
|
|
|
4424
4434
|
Yl("wtable", u == null ? void 0 : u.proxy);
|
|
4425
4435
|
const c = qm(), d = De([]);
|
|
4426
4436
|
function f() {
|
|
4427
|
-
const p = (v,
|
|
4437
|
+
const p = (v, w) => {
|
|
4428
4438
|
let O = {};
|
|
4429
4439
|
for (let y in v) {
|
|
4430
|
-
if (typeof v[y].default == "boolean" &&
|
|
4431
|
-
O[y] =
|
|
4440
|
+
if (typeof v[y].default == "boolean" && w[y] !== void 0) {
|
|
4441
|
+
O[y] = w[y] !== !1;
|
|
4432
4442
|
continue;
|
|
4433
4443
|
}
|
|
4434
|
-
if (
|
|
4435
|
-
O[y] =
|
|
4444
|
+
if (w[y] !== void 0) {
|
|
4445
|
+
O[y] = w[y];
|
|
4436
4446
|
continue;
|
|
4437
4447
|
}
|
|
4438
4448
|
if (typeof v[y].default == "function") {
|
|
@@ -4445,13 +4455,13 @@ const T1 = /* @__PURE__ */ Ae(x1, [["render", C1]]), D1 = { class: "font-semibol
|
|
|
4445
4455
|
};
|
|
4446
4456
|
let g = [];
|
|
4447
4457
|
(c.default && c.default() || []).forEach((v) => {
|
|
4448
|
-
var
|
|
4449
|
-
((
|
|
4458
|
+
var w, O;
|
|
4459
|
+
((w = v.type) == null ? void 0 : w.name) === "WpicTableColumn" ? g.push(v) : (O = v.children) != null && O.length && v.children.forEach((y) => {
|
|
4450
4460
|
var D;
|
|
4451
4461
|
((D = y.type) == null ? void 0 : D.name) === "WpicTableColumn" && g.push(y);
|
|
4452
4462
|
});
|
|
4453
4463
|
}), d.value = g.map((v) => {
|
|
4454
|
-
let
|
|
4464
|
+
let w = v.children, O = v.props || {}, { field: y, label: D, help: b, width: N, minWidth: F, maxWidth: $, sortable: H, selectable: oe, render: E, type: j, align: q, visible: Z } = p(v.type.props, O);
|
|
4455
4465
|
return {
|
|
4456
4466
|
label: D,
|
|
4457
4467
|
help: b,
|
|
@@ -4464,7 +4474,7 @@ const T1 = /* @__PURE__ */ Ae(x1, [["render", C1]]), D1 = { class: "font-semibol
|
|
|
4464
4474
|
selectable: oe,
|
|
4465
4475
|
field: y,
|
|
4466
4476
|
render: E,
|
|
4467
|
-
children:
|
|
4477
|
+
children: w,
|
|
4468
4478
|
visible: Z
|
|
4469
4479
|
};
|
|
4470
4480
|
}).filter((v) => v.visible || v.selectable);
|
|
@@ -4480,13 +4490,13 @@ const T1 = /* @__PURE__ */ Ae(x1, [["render", C1]]), D1 = { class: "font-semibol
|
|
|
4480
4490
|
deep: !0
|
|
4481
4491
|
}), e({
|
|
4482
4492
|
buildColumns: f
|
|
4483
|
-
}), (p, g) => (T(),
|
|
4493
|
+
}), (p, g) => (T(), _("div", {
|
|
4484
4494
|
class: ne(["relative w-full rounded-lg overflow-hidden", {
|
|
4485
4495
|
border: t.border,
|
|
4486
4496
|
[`${i[V(ve).theme]}`]: !0
|
|
4487
4497
|
}])
|
|
4488
4498
|
}, [
|
|
4489
|
-
t.loading ? (T(),
|
|
4499
|
+
t.loading ? (T(), _("div", {
|
|
4490
4500
|
key: 0,
|
|
4491
4501
|
class: ne(["inset-0 z-10 absolute flex items-center justify-center", [a[V(ve).theme]]])
|
|
4492
4502
|
}, [
|
|
@@ -4495,18 +4505,18 @@ const T1 = /* @__PURE__ */ Ae(x1, [["render", C1]]), D1 = { class: "font-semibol
|
|
|
4495
4505
|
B("div", E1, [
|
|
4496
4506
|
B("table", A1, [
|
|
4497
4507
|
B("colgroup", null, [
|
|
4498
|
-
(T(!0),
|
|
4508
|
+
(T(!0), _(rt, null, At(d.value, (m, v) => (T(), _("col", {
|
|
4499
4509
|
style: ql({ minWidth: `${m.minWidth}px` }),
|
|
4500
4510
|
width: m.width,
|
|
4501
4511
|
"max-width": m.maxWidth,
|
|
4502
4512
|
key: v
|
|
4503
4513
|
}, null, 12, N1))), 128))
|
|
4504
4514
|
]),
|
|
4505
|
-
t.hideHeaders ? ye("", !0) : (T(),
|
|
4515
|
+
t.hideHeaders ? ye("", !0) : (T(), _("thead", _1, [
|
|
4506
4516
|
B("tr", null, [
|
|
4507
|
-
(T(!0),
|
|
4508
|
-
var
|
|
4509
|
-
return T(),
|
|
4517
|
+
(T(!0), _(rt, null, At(d.value, (m, v) => {
|
|
4518
|
+
var w, O;
|
|
4519
|
+
return T(), _("th", {
|
|
4510
4520
|
class: ne(["first:rounded-tl-lg last:rounded-tr-lg py-0border-b first:pl-6 pr-6", {
|
|
4511
4521
|
[`${s[V(ve).theme]}`]: !0,
|
|
4512
4522
|
"sticky left-0": v === 0
|
|
@@ -4524,10 +4534,10 @@ const T1 = /* @__PURE__ */ Ae(x1, [["render", C1]]), D1 = { class: "font-semibol
|
|
|
4524
4534
|
}, [
|
|
4525
4535
|
B("span", {
|
|
4526
4536
|
class: ne(["select-none font-medium", { "text-right": m.align == "right" }])
|
|
4527
|
-
},
|
|
4528
|
-
m.sortable && m.field ? (T(),
|
|
4537
|
+
}, Oe(m.label), 3),
|
|
4538
|
+
m.sortable && m.field ? (T(), _("span", {
|
|
4529
4539
|
key: 0,
|
|
4530
|
-
class: ne(["ml-1", { "opacity-25": m.field != ((
|
|
4540
|
+
class: ne(["ml-1", { "opacity-25": m.field != ((w = t.sortOptions) == null ? void 0 : w.sortBy) }])
|
|
4531
4541
|
}, [
|
|
4532
4542
|
pe(T1, {
|
|
4533
4543
|
class: ne(["w-4 h-4", { "rotate-180": ((O = t.sortOptions) == null ? void 0 : O.sortDirection) === "asc" }])
|
|
@@ -4546,11 +4556,11 @@ const T1 = /* @__PURE__ */ Ae(x1, [["render", C1]]), D1 = { class: "font-semibol
|
|
|
4546
4556
|
noXPadding: t.noXPadding,
|
|
4547
4557
|
totalItem: t.totalItem
|
|
4548
4558
|
}, null, 8, ["columns", "noXPadding", "totalItem"])) : ye("", !0),
|
|
4549
|
-
(T(!0),
|
|
4559
|
+
(T(!0), _(rt, null, At(t.data, (m, v) => (T(), _("tr", {
|
|
4550
4560
|
class: "tr border-b last:border-b-0 overflow-hidden",
|
|
4551
4561
|
key: `tr_${v}`
|
|
4552
4562
|
}, [
|
|
4553
|
-
(T(!0),
|
|
4563
|
+
(T(!0), _(rt, null, At(d.value, (w, O) => {
|
|
4554
4564
|
var y, D;
|
|
4555
4565
|
return T(), $e(Xf, {
|
|
4556
4566
|
class: ne(["py-3 first:pl-6 pr-6 lg:text-base", {
|
|
@@ -4559,11 +4569,11 @@ const T1 = /* @__PURE__ */ Ae(x1, [["render", C1]]), D1 = { class: "font-semibol
|
|
|
4559
4569
|
"first:pl-0 last:pr-0": t.noXPadding,
|
|
4560
4570
|
"last:rounded-br-lg": v === ((y = t.data) == null ? void 0 : y.length) - 1 && !t.totalItem,
|
|
4561
4571
|
"first:rounded-bl-lg": v === ((D = t.data) == null ? void 0 : D.length) - 1 && !t.totalItem,
|
|
4562
|
-
"text-center":
|
|
4563
|
-
"text-right":
|
|
4572
|
+
"text-center": w.align == "center",
|
|
4573
|
+
"text-right": w.align == "right"
|
|
4564
4574
|
}]),
|
|
4565
4575
|
id: `${v}_${O}`,
|
|
4566
|
-
column:
|
|
4576
|
+
column: w,
|
|
4567
4577
|
item: m,
|
|
4568
4578
|
rowIndex: v,
|
|
4569
4579
|
key: O
|
|
@@ -4571,7 +4581,7 @@ const T1 = /* @__PURE__ */ Ae(x1, [["render", C1]]), D1 = { class: "font-semibol
|
|
|
4571
4581
|
}), 128))
|
|
4572
4582
|
]))), 128))
|
|
4573
4583
|
]),
|
|
4574
|
-
t.totalItem && t.totalOnBottom ? (T(),
|
|
4584
|
+
t.totalItem && t.totalOnBottom ? (T(), _("tfoot", R1, [
|
|
4575
4585
|
pe(Sc, {
|
|
4576
4586
|
position: "footer",
|
|
4577
4587
|
columns: d.value,
|
|
@@ -4792,7 +4802,7 @@ function eh(t, e, n, r) {
|
|
|
4792
4802
|
n -= l, r -= l;
|
|
4793
4803
|
}
|
|
4794
4804
|
}
|
|
4795
|
-
class
|
|
4805
|
+
class P {
|
|
4796
4806
|
/**
|
|
4797
4807
|
@internal
|
|
4798
4808
|
*/
|
|
@@ -4847,7 +4857,7 @@ class _ {
|
|
|
4847
4857
|
let n = this.lastChild, r = e.firstChild, i = this.content.slice(), s = 0;
|
|
4848
4858
|
for (n.isText && n.sameMarkup(r) && (i[i.length - 1] = n.withText(n.text + r.text), s = 1); s < e.content.length; s++)
|
|
4849
4859
|
i.push(e.content[s]);
|
|
4850
|
-
return new
|
|
4860
|
+
return new P(i, this.size + e.size);
|
|
4851
4861
|
}
|
|
4852
4862
|
/**
|
|
4853
4863
|
Cut out the sub-fragment between the two given positions.
|
|
@@ -4861,13 +4871,13 @@ class _ {
|
|
|
4861
4871
|
let a = this.content[s], l = o + a.nodeSize;
|
|
4862
4872
|
l > e && ((o < e || l > n) && (a.isText ? a = a.cut(Math.max(0, e - o), Math.min(a.text.length, n - o)) : a = a.cut(Math.max(0, e - o - 1), Math.min(a.content.size, n - o - 1))), r.push(a), i += a.nodeSize), o = l;
|
|
4863
4873
|
}
|
|
4864
|
-
return new
|
|
4874
|
+
return new P(r, i);
|
|
4865
4875
|
}
|
|
4866
4876
|
/**
|
|
4867
4877
|
@internal
|
|
4868
4878
|
*/
|
|
4869
4879
|
cutByIndex(e, n) {
|
|
4870
|
-
return e == n ?
|
|
4880
|
+
return e == n ? P.empty : e == 0 && n == this.content.length ? this : new P(this.content.slice(e, n));
|
|
4871
4881
|
}
|
|
4872
4882
|
/**
|
|
4873
4883
|
Create a new fragment in which the node at the given index is
|
|
@@ -4878,21 +4888,21 @@ class _ {
|
|
|
4878
4888
|
if (r == n)
|
|
4879
4889
|
return this;
|
|
4880
4890
|
let i = this.content.slice(), s = this.size + n.nodeSize - r.nodeSize;
|
|
4881
|
-
return i[e] = n, new
|
|
4891
|
+
return i[e] = n, new P(i, s);
|
|
4882
4892
|
}
|
|
4883
4893
|
/**
|
|
4884
4894
|
Create a new fragment by prepending the given node to this
|
|
4885
4895
|
fragment.
|
|
4886
4896
|
*/
|
|
4887
4897
|
addToStart(e) {
|
|
4888
|
-
return new
|
|
4898
|
+
return new P([e].concat(this.content), this.size + e.nodeSize);
|
|
4889
4899
|
}
|
|
4890
4900
|
/**
|
|
4891
4901
|
Create a new fragment by appending the given node to this
|
|
4892
4902
|
fragment.
|
|
4893
4903
|
*/
|
|
4894
4904
|
addToEnd(e) {
|
|
4895
|
-
return new
|
|
4905
|
+
return new P(this.content.concat(e), this.size + e.nodeSize);
|
|
4896
4906
|
}
|
|
4897
4907
|
/**
|
|
4898
4908
|
Compare this fragment to another one.
|
|
@@ -5007,10 +5017,10 @@ class _ {
|
|
|
5007
5017
|
*/
|
|
5008
5018
|
static fromJSON(e, n) {
|
|
5009
5019
|
if (!n)
|
|
5010
|
-
return
|
|
5020
|
+
return P.empty;
|
|
5011
5021
|
if (!Array.isArray(n))
|
|
5012
5022
|
throw new RangeError("Invalid input for Fragment.fromJSON");
|
|
5013
|
-
return new
|
|
5023
|
+
return new P(n.map(e.nodeFromJSON));
|
|
5014
5024
|
}
|
|
5015
5025
|
/**
|
|
5016
5026
|
Build a fragment from an array of nodes. Ensures that adjacent
|
|
@@ -5018,13 +5028,13 @@ class _ {
|
|
|
5018
5028
|
*/
|
|
5019
5029
|
static fromArray(e) {
|
|
5020
5030
|
if (!e.length)
|
|
5021
|
-
return
|
|
5031
|
+
return P.empty;
|
|
5022
5032
|
let n, r = 0;
|
|
5023
5033
|
for (let i = 0; i < e.length; i++) {
|
|
5024
5034
|
let s = e[i];
|
|
5025
5035
|
r += s.nodeSize, i && s.isText && e[i - 1].sameMarkup(s) ? (n || (n = e.slice(0, i)), n[n.length - 1] = s.withText(n[n.length - 1].text + s.text)) : n && n.push(s);
|
|
5026
5036
|
}
|
|
5027
|
-
return new
|
|
5037
|
+
return new P(n || e, r);
|
|
5028
5038
|
}
|
|
5029
5039
|
/**
|
|
5030
5040
|
Create a fragment from something that can be interpreted as a
|
|
@@ -5034,17 +5044,17 @@ class _ {
|
|
|
5034
5044
|
*/
|
|
5035
5045
|
static from(e) {
|
|
5036
5046
|
if (!e)
|
|
5037
|
-
return
|
|
5038
|
-
if (e instanceof
|
|
5047
|
+
return P.empty;
|
|
5048
|
+
if (e instanceof P)
|
|
5039
5049
|
return e;
|
|
5040
5050
|
if (Array.isArray(e))
|
|
5041
5051
|
return this.fromArray(e);
|
|
5042
5052
|
if (e.attrs)
|
|
5043
|
-
return new
|
|
5053
|
+
return new P([e], e.nodeSize);
|
|
5044
5054
|
throw new RangeError("Can not convert " + e + " to a Fragment" + (e.nodesBetween ? " (looks like multiple versions of prosemirror-model were loaded)" : ""));
|
|
5045
5055
|
}
|
|
5046
5056
|
}
|
|
5047
|
-
|
|
5057
|
+
P.empty = new P([], 0);
|
|
5048
5058
|
const Ma = { index: 0, offset: 0 };
|
|
5049
5059
|
function Js(t, e) {
|
|
5050
5060
|
return Ma.index = t, Ma.offset = e, Ma;
|
|
@@ -5245,7 +5255,7 @@ class z {
|
|
|
5245
5255
|
let r = n.openStart || 0, i = n.openEnd || 0;
|
|
5246
5256
|
if (typeof r != "number" || typeof i != "number")
|
|
5247
5257
|
throw new RangeError("Invalid input for Slice.fromJSON");
|
|
5248
|
-
return new z(
|
|
5258
|
+
return new z(P.fromJSON(e, n.content), r, i);
|
|
5249
5259
|
}
|
|
5250
5260
|
/**
|
|
5251
5261
|
Create a slice from a fragment by taking the maximum possible
|
|
@@ -5260,7 +5270,7 @@ class z {
|
|
|
5260
5270
|
return new z(e, r, i);
|
|
5261
5271
|
}
|
|
5262
5272
|
}
|
|
5263
|
-
z.empty = new z(
|
|
5273
|
+
z.empty = new z(P.empty, 0, 0);
|
|
5264
5274
|
function th(t, e, n) {
|
|
5265
5275
|
let { index: r, offset: i } = t.findIndex(e), s = t.maybeChild(r), { index: o, offset: a } = t.findIndex(n);
|
|
5266
5276
|
if (i == e || s.isText) {
|
|
@@ -5326,7 +5336,7 @@ function Rr(t, e) {
|
|
|
5326
5336
|
}
|
|
5327
5337
|
function sh(t, e, n, r, i) {
|
|
5328
5338
|
let s = t.depth > i && fl(t, e, i + 1), o = r.depth > i && fl(n, r, i + 1), a = [];
|
|
5329
|
-
return es(null, t, i, a), s && o && e.index(i) == n.index(i) ? (ih(s, o), Ir(Rr(s, sh(t, e, n, r, i + 1)), a)) : (s && Ir(Rr(s, ko(t, e, i + 1)), a), es(e, n, i, a), o && Ir(Rr(o, ko(n, r, i + 1)), a)), es(r, null, i, a), new
|
|
5339
|
+
return es(null, t, i, a), s && o && e.index(i) == n.index(i) ? (ih(s, o), Ir(Rr(s, sh(t, e, n, r, i + 1)), a)) : (s && Ir(Rr(s, ko(t, e, i + 1)), a), es(e, n, i, a), o && Ir(Rr(o, ko(n, r, i + 1)), a)), es(r, null, i, a), new P(a);
|
|
5330
5340
|
}
|
|
5331
5341
|
function ko(t, e, n) {
|
|
5332
5342
|
let r = [];
|
|
@@ -5334,12 +5344,12 @@ function ko(t, e, n) {
|
|
|
5334
5344
|
let i = fl(t, e, n + 1);
|
|
5335
5345
|
Ir(Rr(i, ko(t, e, n + 1)), r);
|
|
5336
5346
|
}
|
|
5337
|
-
return es(e, null, n, r), new
|
|
5347
|
+
return es(e, null, n, r), new P(r);
|
|
5338
5348
|
}
|
|
5339
5349
|
function F1(t, e) {
|
|
5340
5350
|
let n = e.depth - t.openStart, i = e.node(n).copy(t.content);
|
|
5341
5351
|
for (let s = n - 1; s >= 0; s--)
|
|
5342
|
-
i = e.node(s).copy(
|
|
5352
|
+
i = e.node(s).copy(P.from(i));
|
|
5343
5353
|
return {
|
|
5344
5354
|
start: i.resolveNoCache(t.openStart + n),
|
|
5345
5355
|
end: i.resolveNoCache(i.content.size - t.openEnd - n)
|
|
@@ -5635,7 +5645,7 @@ let $r = class hl {
|
|
|
5635
5645
|
@internal
|
|
5636
5646
|
*/
|
|
5637
5647
|
constructor(e, n, r, i = Me.none) {
|
|
5638
|
-
this.type = e, this.attrs = n, this.marks = i, this.content = r ||
|
|
5648
|
+
this.type = e, this.attrs = n, this.marks = i, this.content = r || P.empty;
|
|
5639
5649
|
}
|
|
5640
5650
|
/**
|
|
5641
5651
|
The size of this node, as defined by the integer-based [indexing
|
|
@@ -5918,7 +5928,7 @@ let $r = class hl {
|
|
|
5918
5928
|
can optionally pass `start` and `end` indices into the
|
|
5919
5929
|
replacement fragment.
|
|
5920
5930
|
*/
|
|
5921
|
-
canReplace(e, n, r =
|
|
5931
|
+
canReplace(e, n, r = P.empty, i = 0, s = r.childCount) {
|
|
5922
5932
|
let o = this.contentMatchAt(e).matchFragment(r, i, s), a = o && o.matchFragment(this.content, n);
|
|
5923
5933
|
if (!a || !a.validEnd)
|
|
5924
5934
|
return !1;
|
|
@@ -5987,7 +5997,7 @@ let $r = class hl {
|
|
|
5987
5997
|
throw new RangeError("Invalid text node in JSON");
|
|
5988
5998
|
return e.text(n.text, r);
|
|
5989
5999
|
}
|
|
5990
|
-
let i =
|
|
6000
|
+
let i = P.fromJSON(e, n.content);
|
|
5991
6001
|
return e.nodeType(n.type).create(n.attrs, i, r);
|
|
5992
6002
|
}
|
|
5993
6003
|
};
|
|
@@ -6115,7 +6125,7 @@ class Wr {
|
|
|
6115
6125
|
function s(o, a) {
|
|
6116
6126
|
let l = o.matchFragment(e, r);
|
|
6117
6127
|
if (l && (!n || l.validEnd))
|
|
6118
|
-
return
|
|
6128
|
+
return P.from(a.map((u) => u.createAndFill()));
|
|
6119
6129
|
for (let u = 0; u < o.next.length; u++) {
|
|
6120
6130
|
let { type: c, next: d } = o.next[u];
|
|
6121
6131
|
if (!(c.isText || c.hasRequiredAttrs()) && i.indexOf(d) == -1) {
|
|
@@ -6482,7 +6492,7 @@ let Cc = class fh {
|
|
|
6482
6492
|
create(e = null, n, r) {
|
|
6483
6493
|
if (this.isText)
|
|
6484
6494
|
throw new Error("NodeType.create can't construct text nodes");
|
|
6485
|
-
return new $r(this, this.computeAttrs(e),
|
|
6495
|
+
return new $r(this, this.computeAttrs(e), P.from(n), Me.setFrom(r));
|
|
6486
6496
|
}
|
|
6487
6497
|
/**
|
|
6488
6498
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but check the given content
|
|
@@ -6490,7 +6500,7 @@ let Cc = class fh {
|
|
|
6490
6500
|
if it doesn't match.
|
|
6491
6501
|
*/
|
|
6492
6502
|
createChecked(e = null, n, r) {
|
|
6493
|
-
return n =
|
|
6503
|
+
return n = P.from(n), this.checkContent(n), new $r(this, this.computeAttrs(e), n, Me.setFrom(r));
|
|
6494
6504
|
}
|
|
6495
6505
|
/**
|
|
6496
6506
|
Like [`create`](https://prosemirror.net/docs/ref/#model.NodeType.create), but see if it is
|
|
@@ -6501,13 +6511,13 @@ let Cc = class fh {
|
|
|
6501
6511
|
`Fragment.empty` as content.
|
|
6502
6512
|
*/
|
|
6503
6513
|
createAndFill(e = null, n, r) {
|
|
6504
|
-
if (e = this.computeAttrs(e), n =
|
|
6514
|
+
if (e = this.computeAttrs(e), n = P.from(n), n.size) {
|
|
6505
6515
|
let o = this.contentMatch.fillBefore(n);
|
|
6506
6516
|
if (!o)
|
|
6507
6517
|
return null;
|
|
6508
6518
|
n = o.append(n);
|
|
6509
6519
|
}
|
|
6510
|
-
let i = this.contentMatch.matchFragment(n), s = i && i.fillBefore(
|
|
6520
|
+
let i = this.contentMatch.matchFragment(n), s = i && i.fillBefore(P.empty, !0);
|
|
6511
6521
|
return s ? new $r(this, e, n.append(s), Me.setFrom(r)) : null;
|
|
6512
6522
|
}
|
|
6513
6523
|
/**
|
|
@@ -6899,7 +6909,7 @@ class Gs {
|
|
|
6899
6909
|
if (!this.match) {
|
|
6900
6910
|
if (!this.type)
|
|
6901
6911
|
return [];
|
|
6902
|
-
let n = this.type.contentMatch.fillBefore(
|
|
6912
|
+
let n = this.type.contentMatch.fillBefore(P.from(e));
|
|
6903
6913
|
if (n)
|
|
6904
6914
|
this.match = this.type.contentMatch.matchFragment(n);
|
|
6905
6915
|
else {
|
|
@@ -6917,8 +6927,8 @@ class Gs {
|
|
|
6917
6927
|
r.text.length == i[0].length ? this.content.pop() : this.content[this.content.length - 1] = s.withText(s.text.slice(0, s.text.length - i[0].length));
|
|
6918
6928
|
}
|
|
6919
6929
|
}
|
|
6920
|
-
let n =
|
|
6921
|
-
return !e && this.match && (n = n.append(this.match.fillBefore(
|
|
6930
|
+
let n = P.from(this.content);
|
|
6931
|
+
return !e && this.match && (n = n.append(this.match.fillBefore(P.empty, !0))), this.type ? this.type.create(this.attrs, n, this.marks) : n;
|
|
6922
6932
|
}
|
|
6923
6933
|
popFromStashMark(e) {
|
|
6924
6934
|
for (let n = this.stashMarks.length - 1; n >= 0; n--)
|
|
@@ -7663,7 +7673,7 @@ class mi {
|
|
|
7663
7673
|
}
|
|
7664
7674
|
}
|
|
7665
7675
|
const Da = /* @__PURE__ */ Object.create(null);
|
|
7666
|
-
class
|
|
7676
|
+
class at {
|
|
7667
7677
|
/**
|
|
7668
7678
|
Get the step map that represents the changes made by this step,
|
|
7669
7679
|
and which can be used to transform between positions in the old
|
|
@@ -7744,9 +7754,9 @@ function ru(t, e, n) {
|
|
|
7744
7754
|
let s = t.child(i);
|
|
7745
7755
|
s.content.size && (s = s.copy(ru(s.content, e, s))), s.isInline && (s = e(s, n, i)), r.push(s);
|
|
7746
7756
|
}
|
|
7747
|
-
return
|
|
7757
|
+
return P.fromArray(r);
|
|
7748
7758
|
}
|
|
7749
|
-
class rr extends
|
|
7759
|
+
class rr extends at {
|
|
7750
7760
|
/**
|
|
7751
7761
|
Create a mark step.
|
|
7752
7762
|
*/
|
|
@@ -7784,8 +7794,8 @@ class rr extends st {
|
|
|
7784
7794
|
return new rr(n.from, n.to, e.markFromJSON(n.mark));
|
|
7785
7795
|
}
|
|
7786
7796
|
}
|
|
7787
|
-
|
|
7788
|
-
class vn extends
|
|
7797
|
+
at.jsonID("addMark", rr);
|
|
7798
|
+
class vn extends at {
|
|
7789
7799
|
/**
|
|
7790
7800
|
Create a mark-removing step.
|
|
7791
7801
|
*/
|
|
@@ -7823,8 +7833,8 @@ class vn extends st {
|
|
|
7823
7833
|
return new vn(n.from, n.to, e.markFromJSON(n.mark));
|
|
7824
7834
|
}
|
|
7825
7835
|
}
|
|
7826
|
-
|
|
7827
|
-
class ir extends
|
|
7836
|
+
at.jsonID("removeMark", vn);
|
|
7837
|
+
class ir extends at {
|
|
7828
7838
|
/**
|
|
7829
7839
|
Create a node mark step.
|
|
7830
7840
|
*/
|
|
@@ -7836,7 +7846,7 @@ class ir extends st {
|
|
|
7836
7846
|
if (!n)
|
|
7837
7847
|
return ze.fail("No node at mark step's position");
|
|
7838
7848
|
let r = n.type.create(n.attrs, null, this.mark.addToSet(n.marks));
|
|
7839
|
-
return ze.fromReplace(e, this.pos, this.pos + 1, new z(
|
|
7849
|
+
return ze.fromReplace(e, this.pos, this.pos + 1, new z(P.from(r), 0, n.isLeaf ? 0 : 1));
|
|
7840
7850
|
}
|
|
7841
7851
|
invert(e) {
|
|
7842
7852
|
let n = e.nodeAt(this.pos);
|
|
@@ -7867,8 +7877,8 @@ class ir extends st {
|
|
|
7867
7877
|
return new ir(n.pos, e.markFromJSON(n.mark));
|
|
7868
7878
|
}
|
|
7869
7879
|
}
|
|
7870
|
-
|
|
7871
|
-
class Oi extends
|
|
7880
|
+
at.jsonID("addNodeMark", ir);
|
|
7881
|
+
class Oi extends at {
|
|
7872
7882
|
/**
|
|
7873
7883
|
Create a mark-removing step.
|
|
7874
7884
|
*/
|
|
@@ -7880,7 +7890,7 @@ class Oi extends st {
|
|
|
7880
7890
|
if (!n)
|
|
7881
7891
|
return ze.fail("No node at mark step's position");
|
|
7882
7892
|
let r = n.type.create(n.attrs, null, this.mark.removeFromSet(n.marks));
|
|
7883
|
-
return ze.fromReplace(e, this.pos, this.pos + 1, new z(
|
|
7893
|
+
return ze.fromReplace(e, this.pos, this.pos + 1, new z(P.from(r), 0, n.isLeaf ? 0 : 1));
|
|
7884
7894
|
}
|
|
7885
7895
|
invert(e) {
|
|
7886
7896
|
let n = e.nodeAt(this.pos);
|
|
@@ -7902,8 +7912,8 @@ class Oi extends st {
|
|
|
7902
7912
|
return new Oi(n.pos, e.markFromJSON(n.mark));
|
|
7903
7913
|
}
|
|
7904
7914
|
}
|
|
7905
|
-
|
|
7906
|
-
class qe extends
|
|
7915
|
+
at.jsonID("removeNodeMark", Oi);
|
|
7916
|
+
class qe extends at {
|
|
7907
7917
|
/**
|
|
7908
7918
|
The given `slice` should fit the 'gap' between `from` and
|
|
7909
7919
|
`to`—the depths must line up, and the surrounding nodes must be
|
|
@@ -7954,8 +7964,8 @@ class qe extends st {
|
|
|
7954
7964
|
return new qe(n.from, n.to, z.fromJSON(e, n.slice), !!n.structure);
|
|
7955
7965
|
}
|
|
7956
7966
|
}
|
|
7957
|
-
|
|
7958
|
-
class Je extends
|
|
7967
|
+
at.jsonID("replace", qe);
|
|
7968
|
+
class Je extends at {
|
|
7959
7969
|
/**
|
|
7960
7970
|
Create a replace-around step with the given range and gap.
|
|
7961
7971
|
`insert` should be the point in the slice into which the content
|
|
@@ -8012,7 +8022,7 @@ class Je extends st {
|
|
|
8012
8022
|
return new Je(n.from, n.to, n.gapFrom, n.gapTo, z.fromJSON(e, n.slice), n.insert, !!n.structure);
|
|
8013
8023
|
}
|
|
8014
8024
|
}
|
|
8015
|
-
|
|
8025
|
+
at.jsonID("replaceAround", Je);
|
|
8016
8026
|
function ml(t, e, n) {
|
|
8017
8027
|
let r = t.resolve(e), i = n - e, s = r.depth;
|
|
8018
8028
|
for (; i > 0 && s > 0 && r.indexAfter(s) == r.node(s).childCount; )
|
|
@@ -8080,13 +8090,13 @@ function wh(t, e, n, r = n.contentMatch, i = !0) {
|
|
|
8080
8090
|
if (i && u.isText && n.whitespace != "pre") {
|
|
8081
8091
|
let f, h = /\r?\n|\r/g, p;
|
|
8082
8092
|
for (; f = h.exec(u.text); )
|
|
8083
|
-
p || (p = new z(
|
|
8093
|
+
p || (p = new z(P.from(n.schema.text(" ", n.allowedMarks(u.marks))), 0, 0)), o.push(new qe(a + f.index, a + f.index + f[0].length, p));
|
|
8084
8094
|
}
|
|
8085
8095
|
}
|
|
8086
8096
|
a = c;
|
|
8087
8097
|
}
|
|
8088
8098
|
if (!r.validEnd) {
|
|
8089
|
-
let l = r.fillBefore(
|
|
8099
|
+
let l = r.fillBefore(P.empty, !0);
|
|
8090
8100
|
t.replace(a, a, new z(l, 0, 0));
|
|
8091
8101
|
}
|
|
8092
8102
|
for (let l = o.length - 1; l >= 0; l--)
|
|
@@ -8107,12 +8117,12 @@ function $i(t) {
|
|
|
8107
8117
|
return null;
|
|
8108
8118
|
}
|
|
8109
8119
|
function fw(t, e, n) {
|
|
8110
|
-
let { $from: r, $to: i, depth: s } = e, o = r.before(s + 1), a = i.after(s + 1), l = o, u = a, c =
|
|
8120
|
+
let { $from: r, $to: i, depth: s } = e, o = r.before(s + 1), a = i.after(s + 1), l = o, u = a, c = P.empty, d = 0;
|
|
8111
8121
|
for (let p = s, g = !1; p > n; p--)
|
|
8112
|
-
g || r.index(p) > 0 ? (g = !0, c =
|
|
8113
|
-
let f =
|
|
8122
|
+
g || r.index(p) > 0 ? (g = !0, c = P.from(r.node(p).copy(c)), d++) : l--;
|
|
8123
|
+
let f = P.empty, h = 0;
|
|
8114
8124
|
for (let p = s, g = !1; p > n; p--)
|
|
8115
|
-
g || i.after(p + 1) < i.end(p) ? (g = !0, f =
|
|
8125
|
+
g || i.after(p + 1) < i.end(p) ? (g = !0, f = P.from(i.node(p).copy(f)), h++) : u++;
|
|
8116
8126
|
t.step(new Je(l, u, o, a, new z(c.append(f), d, h), c.size - d, !0));
|
|
8117
8127
|
}
|
|
8118
8128
|
function iu(t, e, n = null, r = t) {
|
|
@@ -8139,14 +8149,14 @@ function pw(t, e) {
|
|
|
8139
8149
|
return !l || !l.validEnd ? null : o;
|
|
8140
8150
|
}
|
|
8141
8151
|
function mw(t, e, n) {
|
|
8142
|
-
let r =
|
|
8152
|
+
let r = P.empty;
|
|
8143
8153
|
for (let o = n.length - 1; o >= 0; o--) {
|
|
8144
8154
|
if (r.size) {
|
|
8145
8155
|
let a = n[o].type.contentMatch.matchFragment(r);
|
|
8146
8156
|
if (!a || !a.validEnd)
|
|
8147
8157
|
throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper");
|
|
8148
8158
|
}
|
|
8149
|
-
r =
|
|
8159
|
+
r = P.from(n[o].type.create(n[o].attrs, r));
|
|
8150
8160
|
}
|
|
8151
8161
|
let i = e.start, s = e.end;
|
|
8152
8162
|
t.step(new Je(i, s, i, s, new z(r, 0, 0), n.length, !0));
|
|
@@ -8164,7 +8174,7 @@ function gw(t, e, n, r, i) {
|
|
|
8164
8174
|
}
|
|
8165
8175
|
l === !1 && vw(t, o, a, s), wh(t, t.mapping.slice(s).map(a, 1), r, void 0, l === null);
|
|
8166
8176
|
let u = t.mapping.slice(s), c = u.map(a, 1), d = u.map(a + o.nodeSize, 1);
|
|
8167
|
-
return t.step(new Je(c, d, c + 1, d - 1, new z(
|
|
8177
|
+
return t.step(new Je(c, d, c + 1, d - 1, new z(P.from(r.create(i, null, o.marks)), 0, 0), 1, !0)), l === !0 && yw(t, o, a, s), !1;
|
|
8168
8178
|
}
|
|
8169
8179
|
});
|
|
8170
8180
|
}
|
|
@@ -8202,7 +8212,7 @@ function ww(t, e, n, r, i) {
|
|
|
8202
8212
|
return t.replaceWith(e, e + s.nodeSize, o);
|
|
8203
8213
|
if (!n.validContent(s.content))
|
|
8204
8214
|
throw new RangeError("Invalid content for node type " + n.name);
|
|
8205
|
-
t.step(new Je(e, e + s.nodeSize, e + 1, e + s.nodeSize - 1, new z(
|
|
8215
|
+
t.step(new Je(e, e + s.nodeSize, e + 1, e + s.nodeSize - 1, new z(P.from(o), 0, 0), 1, !0));
|
|
8206
8216
|
}
|
|
8207
8217
|
function gi(t, e, n = 1, r) {
|
|
8208
8218
|
let i = t.resolve(e), s = i.depth - n, o = r && r[r.length - 1] || i.parent;
|
|
@@ -8222,11 +8232,11 @@ function gi(t, e, n = 1, r) {
|
|
|
8222
8232
|
return i.node(s).canReplaceWith(a, a, l ? l.type : i.node(s + 1).type);
|
|
8223
8233
|
}
|
|
8224
8234
|
function kw(t, e, n = 1, r) {
|
|
8225
|
-
let i = t.doc.resolve(e), s =
|
|
8235
|
+
let i = t.doc.resolve(e), s = P.empty, o = P.empty;
|
|
8226
8236
|
for (let a = i.depth, l = i.depth - n, u = n - 1; a > l; a--, u--) {
|
|
8227
|
-
s =
|
|
8237
|
+
s = P.from(i.node(a).copy(s));
|
|
8228
8238
|
let c = r && r[u];
|
|
8229
|
-
o =
|
|
8239
|
+
o = P.from(c ? c.type.create(c.attrs, o) : i.node(a).copy(o));
|
|
8230
8240
|
}
|
|
8231
8241
|
t.step(new qe(e, e, new z(s.append(o), n, n), !0));
|
|
8232
8242
|
}
|
|
@@ -8306,7 +8316,7 @@ function Sh(t, e, n) {
|
|
|
8306
8316
|
}
|
|
8307
8317
|
class Mw {
|
|
8308
8318
|
constructor(e, n, r) {
|
|
8309
|
-
this.$from = e, this.$to = n, this.unplaced = r, this.frontier = [], this.placed =
|
|
8319
|
+
this.$from = e, this.$to = n, this.unplaced = r, this.frontier = [], this.placed = P.empty;
|
|
8310
8320
|
for (let i = 0; i <= e.depth; i++) {
|
|
8311
8321
|
let s = e.node(i);
|
|
8312
8322
|
this.frontier.push({
|
|
@@ -8315,7 +8325,7 @@ class Mw {
|
|
|
8315
8325
|
});
|
|
8316
8326
|
}
|
|
8317
8327
|
for (let i = e.depth; i > 0; i--)
|
|
8318
|
-
this.placed =
|
|
8328
|
+
this.placed = P.from(e.node(i).copy(this.placed));
|
|
8319
8329
|
}
|
|
8320
8330
|
get depth() {
|
|
8321
8331
|
return this.frontier.length - 1;
|
|
@@ -8354,7 +8364,7 @@ class Mw {
|
|
|
8354
8364
|
let o = i.firstChild;
|
|
8355
8365
|
for (let a = this.depth; a >= 0; a--) {
|
|
8356
8366
|
let { type: l, match: u } = this.frontier[a], c, d = null;
|
|
8357
|
-
if (n == 1 && (o ? u.matchType(o.type) || (d = u.fillBefore(
|
|
8367
|
+
if (n == 1 && (o ? u.matchType(o.type) || (d = u.fillBefore(P.from(o), !1)) : s && l.compatibleContent(s.type)))
|
|
8358
8368
|
return { sliceDepth: r, frontierDepth: a, parent: s, inject: d };
|
|
8359
8369
|
if (n == 2 && o && (c = u.findWrapping(o.type)))
|
|
8360
8370
|
return { sliceDepth: r, frontierDepth: a, parent: s, wrap: c };
|
|
@@ -8398,7 +8408,7 @@ class Mw {
|
|
|
8398
8408
|
u++, (u > 1 || l == 0 || g.content.size) && (d = m, c.push(Mh(g.mark(f.allowedMarks(g.marks)), u == 1 ? l : 0, u == a.childCount ? h : -1)));
|
|
8399
8409
|
}
|
|
8400
8410
|
let p = u == a.childCount;
|
|
8401
|
-
p || (h = -1), this.placed = Gi(this.placed, n,
|
|
8411
|
+
p || (h = -1), this.placed = Gi(this.placed, n, P.from(c)), this.frontier[n].match = d, p && h < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
|
|
8402
8412
|
for (let g = 0, m = a; g < h; g++) {
|
|
8403
8413
|
let v = m.lastChild;
|
|
8404
8414
|
this.frontier.push({ type: v.type, match: v.contentMatchAt(v.childCount) }), m = v.content;
|
|
@@ -8445,10 +8455,10 @@ class Mw {
|
|
|
8445
8455
|
}
|
|
8446
8456
|
openFrontierNode(e, n = null, r) {
|
|
8447
8457
|
let i = this.frontier[this.depth];
|
|
8448
|
-
i.match = i.match.matchType(e), this.placed = Gi(this.placed, this.depth,
|
|
8458
|
+
i.match = i.match.matchType(e), this.placed = Gi(this.placed, this.depth, P.from(e.create(n, r))), this.frontier.push({ type: e, match: e.contentMatch });
|
|
8449
8459
|
}
|
|
8450
8460
|
closeFrontierNode() {
|
|
8451
|
-
let n = this.frontier.pop().match.fillBefore(
|
|
8461
|
+
let n = this.frontier.pop().match.fillBefore(P.empty, !0);
|
|
8452
8462
|
n.childCount && (this.placed = Gi(this.placed, this.frontier.length, n));
|
|
8453
8463
|
}
|
|
8454
8464
|
}
|
|
@@ -8467,7 +8477,7 @@ function Mh(t, e, n) {
|
|
|
8467
8477
|
if (e <= 0)
|
|
8468
8478
|
return t;
|
|
8469
8479
|
let r = t.content;
|
|
8470
|
-
return e > 1 && (r = r.replaceChild(0, Mh(r.firstChild, e - 1, r.childCount == 1 ? n - 1 : 0))), e > 0 && (r = t.type.contentMatch.fillBefore(r).append(r), n <= 0 && (r = r.append(t.type.contentMatch.matchFragment(r).fillBefore(
|
|
8480
|
+
return e > 1 && (r = r.replaceChild(0, Mh(r.firstChild, e - 1, r.childCount == 1 ? n - 1 : 0))), e > 0 && (r = t.type.contentMatch.fillBefore(r).append(r), n <= 0 && (r = r.append(t.type.contentMatch.matchFragment(r).fillBefore(P.empty, !0)))), t.copy(r);
|
|
8471
8481
|
}
|
|
8472
8482
|
function Aa(t, e, n, r, i) {
|
|
8473
8483
|
let s = t.node(e), o = i ? t.indexAfter(e) : t.index(e);
|
|
@@ -8521,8 +8531,8 @@ function Tw(t, e, n, r) {
|
|
|
8521
8531
|
for (let g = 0; g < o.length; g++) {
|
|
8522
8532
|
let m = o[(g + l) % o.length], v = !0;
|
|
8523
8533
|
m < 0 && (v = !1, m = -m);
|
|
8524
|
-
let
|
|
8525
|
-
if (
|
|
8534
|
+
let w = i.node(m - 1), O = i.index(m - 1);
|
|
8535
|
+
if (w.canReplaceWith(O, O, p.type, p.marks))
|
|
8526
8536
|
return t.replace(i.before(m), v ? s.after(m) : n, new z(Oh(r.content, 0, r.openStart, h), h, r.openEnd));
|
|
8527
8537
|
}
|
|
8528
8538
|
}
|
|
@@ -8539,7 +8549,7 @@ function Oh(t, e, n, r, i) {
|
|
|
8539
8549
|
}
|
|
8540
8550
|
if (e > r) {
|
|
8541
8551
|
let s = i.contentMatchAt(0), o = s.fillBefore(t).append(t);
|
|
8542
|
-
t = o.append(s.matchFragment(o).fillBefore(
|
|
8552
|
+
t = o.append(s.matchFragment(o).fillBefore(P.empty, !0));
|
|
8543
8553
|
}
|
|
8544
8554
|
return t;
|
|
8545
8555
|
}
|
|
@@ -8548,7 +8558,7 @@ function Dw(t, e, n, r) {
|
|
|
8548
8558
|
let i = Sw(t.doc, e, r.type);
|
|
8549
8559
|
i != null && (e = n = i);
|
|
8550
8560
|
}
|
|
8551
|
-
t.replaceRange(e, n, new z(
|
|
8561
|
+
t.replaceRange(e, n, new z(P.from(r), 0, 0));
|
|
8552
8562
|
}
|
|
8553
8563
|
function Ew(t, e, n) {
|
|
8554
8564
|
let r = t.doc.resolve(e), i = t.doc.resolve(n), s = Ch(r, i);
|
|
@@ -8574,7 +8584,7 @@ function Ch(t, e) {
|
|
|
8574
8584
|
}
|
|
8575
8585
|
return n;
|
|
8576
8586
|
}
|
|
8577
|
-
class yi extends
|
|
8587
|
+
class yi extends at {
|
|
8578
8588
|
/**
|
|
8579
8589
|
Construct an attribute step.
|
|
8580
8590
|
*/
|
|
@@ -8590,7 +8600,7 @@ class yi extends st {
|
|
|
8590
8600
|
r[s] = n.attrs[s];
|
|
8591
8601
|
r[this.attr] = this.value;
|
|
8592
8602
|
let i = n.type.create(r, null, n.marks);
|
|
8593
|
-
return ze.fromReplace(e, this.pos, this.pos + 1, new z(
|
|
8603
|
+
return ze.fromReplace(e, this.pos, this.pos + 1, new z(P.from(i), 0, n.isLeaf ? 0 : 1));
|
|
8594
8604
|
}
|
|
8595
8605
|
getMap() {
|
|
8596
8606
|
return Nt.empty;
|
|
@@ -8611,8 +8621,8 @@ class yi extends st {
|
|
|
8611
8621
|
return new yi(n.pos, n.attr, n.value);
|
|
8612
8622
|
}
|
|
8613
8623
|
}
|
|
8614
|
-
|
|
8615
|
-
class hs extends
|
|
8624
|
+
at.jsonID("attr", yi);
|
|
8625
|
+
class hs extends at {
|
|
8616
8626
|
/**
|
|
8617
8627
|
Construct an attribute step.
|
|
8618
8628
|
*/
|
|
@@ -8645,7 +8655,7 @@ class hs extends st {
|
|
|
8645
8655
|
return new hs(n.attr, n.value);
|
|
8646
8656
|
}
|
|
8647
8657
|
}
|
|
8648
|
-
|
|
8658
|
+
at.jsonID("docAttr", hs);
|
|
8649
8659
|
let Ci = class extends Error {
|
|
8650
8660
|
};
|
|
8651
8661
|
Ci = function t(e) {
|
|
@@ -8712,7 +8722,7 @@ class Aw {
|
|
|
8712
8722
|
fragment, node, or array of nodes.
|
|
8713
8723
|
*/
|
|
8714
8724
|
replaceWith(e, n, r) {
|
|
8715
|
-
return this.replace(e, n, new z(
|
|
8725
|
+
return this.replace(e, n, new z(P.from(r), 0, 0));
|
|
8716
8726
|
}
|
|
8717
8727
|
/**
|
|
8718
8728
|
Delete the content between the given positions.
|
|
@@ -9150,7 +9160,7 @@ class X extends de {
|
|
|
9150
9160
|
return r ? de.near(s) : new X(s);
|
|
9151
9161
|
}
|
|
9152
9162
|
content() {
|
|
9153
|
-
return new z(
|
|
9163
|
+
return new z(P.from(this.node), 0, 0);
|
|
9154
9164
|
}
|
|
9155
9165
|
eq(e) {
|
|
9156
9166
|
return e instanceof X && e.anchor == this.anchor;
|
|
@@ -10597,7 +10607,7 @@ class ur extends $s {
|
|
|
10597
10607
|
break;
|
|
10598
10608
|
}
|
|
10599
10609
|
}
|
|
10600
|
-
e.contentElement || (e.getContent = () =>
|
|
10610
|
+
e.contentElement || (e.getContent = () => P.empty);
|
|
10601
10611
|
}
|
|
10602
10612
|
return e;
|
|
10603
10613
|
}
|
|
@@ -11533,7 +11543,7 @@ function Uh(t, e, n, r, i) {
|
|
|
11533
11543
|
if (t.someProp("transformPastedText", (f) => {
|
|
11534
11544
|
e = f(e, s || r, t);
|
|
11535
11545
|
}), s)
|
|
11536
|
-
return e ? new z(
|
|
11546
|
+
return e ? new z(P.from(t.state.schema.text(e.replace(/\r\n?/g, `
|
|
11537
11547
|
`))), 0, 0) : z.empty;
|
|
11538
11548
|
let d = t.someProp("clipboardTextParser", (f) => f(e, i, r, t));
|
|
11539
11549
|
if (d)
|
|
@@ -11599,13 +11609,13 @@ function Ck(t, e) {
|
|
|
11599
11609
|
o.push(c), i = i.matchType(c.type), s = l;
|
|
11600
11610
|
}
|
|
11601
11611
|
}), o)
|
|
11602
|
-
return
|
|
11612
|
+
return P.from(o);
|
|
11603
11613
|
}
|
|
11604
11614
|
return t;
|
|
11605
11615
|
}
|
|
11606
11616
|
function qh(t, e, n = 0) {
|
|
11607
11617
|
for (let r = e.length - 1; r >= n; r--)
|
|
11608
|
-
t = e[r].create(null,
|
|
11618
|
+
t = e[r].create(null, P.from(t));
|
|
11609
11619
|
return t;
|
|
11610
11620
|
}
|
|
11611
11621
|
function Kh(t, e, n, r, i) {
|
|
@@ -11614,18 +11624,18 @@ function Kh(t, e, n, r, i) {
|
|
|
11614
11624
|
if (s)
|
|
11615
11625
|
return r.copy(r.content.replaceChild(r.childCount - 1, s));
|
|
11616
11626
|
if (r.contentMatchAt(r.childCount).matchType(i == t.length - 1 ? n.type : t[i + 1]))
|
|
11617
|
-
return r.copy(r.content.append(
|
|
11627
|
+
return r.copy(r.content.append(P.from(qh(n, t, i + 1))));
|
|
11618
11628
|
}
|
|
11619
11629
|
}
|
|
11620
11630
|
function Jh(t, e) {
|
|
11621
11631
|
if (e == 0)
|
|
11622
11632
|
return t;
|
|
11623
|
-
let n = t.content.replaceChild(t.childCount - 1, Jh(t.lastChild, e - 1)), r = t.contentMatchAt(t.childCount).fillBefore(
|
|
11633
|
+
let n = t.content.replaceChild(t.childCount - 1, Jh(t.lastChild, e - 1)), r = t.contentMatchAt(t.childCount).fillBefore(P.empty, !0);
|
|
11624
11634
|
return t.copy(n.append(r));
|
|
11625
11635
|
}
|
|
11626
11636
|
function Ol(t, e, n, r, i, s) {
|
|
11627
11637
|
let o = e < 0 ? t.firstChild : t.lastChild, a = o.content;
|
|
11628
|
-
return t.childCount > 1 && (s = 0), i < r - 1 && (a = Ol(a, e, n, r, i + 1, s)), i >= n && (a = e < 0 ? o.contentMatchAt(0).fillBefore(a, s <= i).append(a) : a.append(o.contentMatchAt(o.childCount).fillBefore(
|
|
11638
|
+
return t.childCount > 1 && (s = 0), i < r - 1 && (a = Ol(a, e, n, r, i + 1, s)), i >= n && (a = e < 0 ? o.contentMatchAt(0).fillBefore(a, s <= i).append(a) : a.append(o.contentMatchAt(o.childCount).fillBefore(P.empty, !0))), t.replaceChild(e < 0 ? 0 : t.childCount - 1, o.copy(a));
|
|
11629
11639
|
}
|
|
11630
11640
|
function od(t, e, n) {
|
|
11631
11641
|
return e < t.openStart && (t = new z(Ol(t.content, -1, e, t.openStart, 0, t.openEnd), e, t.openEnd)), n < t.openEnd && (t = new z(Ol(t.content, 1, n, t.openEnd, 0, 0), t.openStart, n)), t;
|
|
@@ -11675,7 +11685,7 @@ function Ek(t, e) {
|
|
|
11675
11685
|
let l = n.nodes[r[a]];
|
|
11676
11686
|
if (!l || l.hasRequiredAttrs())
|
|
11677
11687
|
break;
|
|
11678
|
-
i =
|
|
11688
|
+
i = P.from(l.create(r[a + 1], i)), s++, o++;
|
|
11679
11689
|
}
|
|
11680
11690
|
return new z(i, s, o);
|
|
11681
11691
|
}
|
|
@@ -12076,7 +12086,7 @@ mt.drop = (t, e) => {
|
|
|
12076
12086
|
u.setSelection(new X(h));
|
|
12077
12087
|
else {
|
|
12078
12088
|
let p = u.mapping.map(l);
|
|
12079
|
-
u.mapping.maps[u.mapping.maps.length - 1].forEach((g, m, v,
|
|
12089
|
+
u.mapping.maps[u.mapping.maps.length - 1].forEach((g, m, v, w) => p = w), u.setSelection(lu(t, h, u.doc.resolve(p)));
|
|
12080
12090
|
}
|
|
12081
12091
|
t.focus(), t.dispatch(u.setMeta("uiEvent", "drop"));
|
|
12082
12092
|
};
|
|
@@ -12258,7 +12268,7 @@ class Fe {
|
|
|
12258
12268
|
you must make a copy if you want need to preserve that.
|
|
12259
12269
|
*/
|
|
12260
12270
|
static create(e, n) {
|
|
12261
|
-
return n.length ? Eo(n, e, 0, Vr) :
|
|
12271
|
+
return n.length ? Eo(n, e, 0, Vr) : it;
|
|
12262
12272
|
}
|
|
12263
12273
|
/**
|
|
12264
12274
|
Find all decorations in this set which touch the given range
|
|
@@ -12288,7 +12298,7 @@ class Fe {
|
|
|
12288
12298
|
document.
|
|
12289
12299
|
*/
|
|
12290
12300
|
map(e, n, r) {
|
|
12291
|
-
return this ==
|
|
12301
|
+
return this == it || e.maps.length == 0 ? this : this.mapInner(e, n, 0, 0, r || Vr);
|
|
12292
12302
|
}
|
|
12293
12303
|
/**
|
|
12294
12304
|
@internal
|
|
@@ -12299,7 +12309,7 @@ class Fe {
|
|
|
12299
12309
|
let l = this.local[a].map(e, r, i);
|
|
12300
12310
|
l && l.type.valid(n, l) ? (o || (o = [])).push(l) : s.onRemove && s.onRemove(this.local[a].spec);
|
|
12301
12311
|
}
|
|
12302
|
-
return this.children.length ? Gk(this.children, o || [], e, n, r, i, s) : o ? new Fe(o.sort(Br), oi) :
|
|
12312
|
+
return this.children.length ? Gk(this.children, o || [], e, n, r, i, s) : o ? new Fe(o.sort(Br), oi) : it;
|
|
12303
12313
|
}
|
|
12304
12314
|
/**
|
|
12305
12315
|
Add the given array of decorations to the ones in the set,
|
|
@@ -12308,7 +12318,7 @@ class Fe {
|
|
|
12308
12318
|
structure.
|
|
12309
12319
|
*/
|
|
12310
12320
|
add(e, n) {
|
|
12311
|
-
return n.length ? this ==
|
|
12321
|
+
return n.length ? this == it ? Fe.create(e, n) : this.addInner(e, n, 0) : this;
|
|
12312
12322
|
}
|
|
12313
12323
|
addInner(e, n, r) {
|
|
12314
12324
|
let i, s = 0;
|
|
@@ -12330,7 +12340,7 @@ class Fe {
|
|
|
12330
12340
|
the ones in the given array.
|
|
12331
12341
|
*/
|
|
12332
12342
|
remove(e) {
|
|
12333
|
-
return e.length == 0 || this ==
|
|
12343
|
+
return e.length == 0 || this == it ? this : this.removeInner(e, 0);
|
|
12334
12344
|
}
|
|
12335
12345
|
removeInner(e, n) {
|
|
12336
12346
|
let r = this.children, i = this.local;
|
|
@@ -12342,7 +12352,7 @@ class Fe {
|
|
|
12342
12352
|
continue;
|
|
12343
12353
|
r == this.children && (r = this.children.slice());
|
|
12344
12354
|
let u = r[s + 2].removeInner(o, a + 1);
|
|
12345
|
-
u !=
|
|
12355
|
+
u != it ? r[s + 2] = u : (r.splice(s, 3), s -= 3);
|
|
12346
12356
|
}
|
|
12347
12357
|
if (i.length) {
|
|
12348
12358
|
for (let s = 0, o; s < e.length; s++)
|
|
@@ -12350,10 +12360,10 @@ class Fe {
|
|
|
12350
12360
|
for (let a = 0; a < i.length; a++)
|
|
12351
12361
|
i[a].eq(o, n) && (i == this.local && (i = this.local.slice()), i.splice(a--, 1));
|
|
12352
12362
|
}
|
|
12353
|
-
return r == this.children && i == this.local ? this : i.length || r.length ? new Fe(i, r) :
|
|
12363
|
+
return r == this.children && i == this.local ? this : i.length || r.length ? new Fe(i, r) : it;
|
|
12354
12364
|
}
|
|
12355
12365
|
forChild(e, n) {
|
|
12356
|
-
if (this ==
|
|
12366
|
+
if (this == it)
|
|
12357
12367
|
return this;
|
|
12358
12368
|
if (n.isLeaf)
|
|
12359
12369
|
return Fe.empty;
|
|
@@ -12375,7 +12385,7 @@ class Fe {
|
|
|
12375
12385
|
let a = new Fe(i.sort(Br), oi);
|
|
12376
12386
|
return r ? new nr([a, r]) : a;
|
|
12377
12387
|
}
|
|
12378
|
-
return r ||
|
|
12388
|
+
return r || it;
|
|
12379
12389
|
}
|
|
12380
12390
|
/**
|
|
12381
12391
|
@internal
|
|
@@ -12403,7 +12413,7 @@ class Fe {
|
|
|
12403
12413
|
@internal
|
|
12404
12414
|
*/
|
|
12405
12415
|
localsInner(e) {
|
|
12406
|
-
if (this ==
|
|
12416
|
+
if (this == it)
|
|
12407
12417
|
return oi;
|
|
12408
12418
|
if (e.inlineContent || !this.local.some(cr.is))
|
|
12409
12419
|
return this.local;
|
|
@@ -12415,7 +12425,7 @@ class Fe {
|
|
|
12415
12425
|
}
|
|
12416
12426
|
Fe.empty = new Fe([], []);
|
|
12417
12427
|
Fe.removeOverlap = hu;
|
|
12418
|
-
const
|
|
12428
|
+
const it = Fe.empty;
|
|
12419
12429
|
class nr {
|
|
12420
12430
|
constructor(e) {
|
|
12421
12431
|
this.members = e;
|
|
@@ -12430,7 +12440,7 @@ class nr {
|
|
|
12430
12440
|
let r = [];
|
|
12431
12441
|
for (let i = 0; i < this.members.length; i++) {
|
|
12432
12442
|
let s = this.members[i].forChild(e, n);
|
|
12433
|
-
s !=
|
|
12443
|
+
s != it && (s instanceof nr ? r = r.concat(s.members) : r.push(s));
|
|
12434
12444
|
}
|
|
12435
12445
|
return nr.from(r);
|
|
12436
12446
|
}
|
|
@@ -12462,7 +12472,7 @@ class nr {
|
|
|
12462
12472
|
static from(e) {
|
|
12463
12473
|
switch (e.length) {
|
|
12464
12474
|
case 0:
|
|
12465
|
-
return
|
|
12475
|
+
return it;
|
|
12466
12476
|
case 1:
|
|
12467
12477
|
return e[0];
|
|
12468
12478
|
default:
|
|
@@ -12477,8 +12487,8 @@ function Gk(t, e, n, r, i, s, o) {
|
|
|
12477
12487
|
n.maps[u].forEach((f, h, p, g) => {
|
|
12478
12488
|
let m = g - p - (h - f);
|
|
12479
12489
|
for (let v = 0; v < a.length; v += 3) {
|
|
12480
|
-
let
|
|
12481
|
-
if (
|
|
12490
|
+
let w = a[v + 1];
|
|
12491
|
+
if (w < 0 || f > w + c - d)
|
|
12482
12492
|
continue;
|
|
12483
12493
|
let O = a[v] + c - d;
|
|
12484
12494
|
h >= O ? a[v + 1] = f <= O ? -2 : -1 : f >= c && m && (a[v] += m, a[v + 1] += m);
|
|
@@ -12501,7 +12511,7 @@ function Gk(t, e, n, r, i, s, o) {
|
|
|
12501
12511
|
let f = n.map(t[u + 1] + s, -1), h = f - i, { index: p, offset: g } = r.content.findIndex(d), m = r.maybeChild(p);
|
|
12502
12512
|
if (m && g == d && g + m.nodeSize == h) {
|
|
12503
12513
|
let v = a[u + 2].mapInner(n, m, c + 1, t[u] + s + 1, o);
|
|
12504
|
-
v !=
|
|
12514
|
+
v != it ? (a[u] = d, a[u + 1] = h, a[u + 2] = v) : (a[u + 1] = -2, l = !0);
|
|
12505
12515
|
} else
|
|
12506
12516
|
l = !0;
|
|
12507
12517
|
}
|
|
@@ -12563,13 +12573,13 @@ function Eo(t, e, n, r) {
|
|
|
12563
12573
|
if (u) {
|
|
12564
12574
|
s = !0;
|
|
12565
12575
|
let c = Eo(u, a, n + l + 1, r);
|
|
12566
|
-
c !=
|
|
12576
|
+
c != it && i.push(l, l + a.nodeSize, c);
|
|
12567
12577
|
}
|
|
12568
12578
|
});
|
|
12569
12579
|
let o = sp(s ? ap(t) : t, -n).sort(Br);
|
|
12570
12580
|
for (let a = 0; a < o.length; a++)
|
|
12571
12581
|
o[a].type.valid(e, o[a]) || (r.onRemove && r.onRemove(o[a].spec), o.splice(a--, 1));
|
|
12572
|
-
return o.length || i.length ? new Fe(o, i) :
|
|
12582
|
+
return o.length || i.length ? new Fe(o, i) : it;
|
|
12573
12583
|
}
|
|
12574
12584
|
function Br(t, e) {
|
|
12575
12585
|
return t.from - e.from || t.to - e.to;
|
|
@@ -12601,7 +12611,7 @@ function $a(t) {
|
|
|
12601
12611
|
let e = [];
|
|
12602
12612
|
return t.someProp("decorations", (n) => {
|
|
12603
12613
|
let r = n(t.state);
|
|
12604
|
-
r && r !=
|
|
12614
|
+
r && r != it && e.push(r);
|
|
12605
12615
|
}), t.cursorWrapper && e.push(Fe.create(t.state.doc, [t.cursorWrapper.deco])), nr.from(e);
|
|
12606
12616
|
}
|
|
12607
12617
|
const Xk = {
|
|
@@ -12805,12 +12815,12 @@ function sx(t, e, n) {
|
|
|
12805
12815
|
let { node: r, fromOffset: i, toOffset: s, from: o, to: a } = t.docView.parseRange(e, n), l = t.domSelectionRange(), u, c = l.anchorNode;
|
|
12806
12816
|
if (c && t.dom.contains(c.nodeType == 1 ? c : c.parentNode) && (u = [{ node: c, offset: l.anchorOffset }], Zo(l) || u.push({ node: l.focusNode, offset: l.focusOffset })), dt && t.input.lastKeyCode === 8)
|
|
12807
12817
|
for (let m = s; m > i; m--) {
|
|
12808
|
-
let v = r.childNodes[m - 1],
|
|
12809
|
-
if (v.nodeName == "BR" && !
|
|
12818
|
+
let v = r.childNodes[m - 1], w = v.pmViewDesc;
|
|
12819
|
+
if (v.nodeName == "BR" && !w) {
|
|
12810
12820
|
s = m;
|
|
12811
12821
|
break;
|
|
12812
12822
|
}
|
|
12813
|
-
if (!
|
|
12823
|
+
if (!w || w.size)
|
|
12814
12824
|
break;
|
|
12815
12825
|
}
|
|
12816
12826
|
let d = t.state.doc, f = t.someProp("domParser") || Mi.fromSchema(t.state.schema), h = d.resolve(o), p = null, g = f.parse(r, {
|
|
@@ -12880,8 +12890,8 @@ function lx(t, e, n, r, i) {
|
|
|
12880
12890
|
return;
|
|
12881
12891
|
}
|
|
12882
12892
|
t.input.domChangeCount++, t.state.selection.from < t.state.selection.to && p.start == p.endB && t.state.selection instanceof se && (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)), St && lr <= 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--);
|
|
12883
|
-
let g = u.doc.resolveNoCache(p.start - u.from), m = u.doc.resolveNoCache(p.endB - u.from), v = c.resolve(p.start),
|
|
12884
|
-
if ((Ti && t.input.lastIOSEnter > Date.now() - 225 && (!
|
|
12893
|
+
let g = u.doc.resolveNoCache(p.start - u.from), m = u.doc.resolveNoCache(p.endB - u.from), v = c.resolve(p.start), w = g.sameParent(m) && g.parent.inlineContent && v.end() >= p.endA, O;
|
|
12894
|
+
if ((Ti && t.input.lastIOSEnter > Date.now() - 225 && (!w || i.some(($) => $.nodeName == "DIV" || $.nodeName == "P")) || !w && g.pos < u.doc.content.size && !g.sameParent(m) && (O = de.findFrom(u.doc.resolve(g.pos + 1), 1, !0)) && O.head == m.pos) && t.someProp("handleKeyDown", ($) => $(t, Dr(13, "Enter")))) {
|
|
12885
12895
|
t.input.lastIOSEnter = 0;
|
|
12886
12896
|
return;
|
|
12887
12897
|
}
|
|
@@ -12889,13 +12899,13 @@ function lx(t, e, n, r, i) {
|
|
|
12889
12899
|
Zt && dt && t.domObserver.suppressSelectionUpdates();
|
|
12890
12900
|
return;
|
|
12891
12901
|
}
|
|
12892
|
-
dt && Zt && p.endB == p.start && (t.input.lastAndroidDelete = Date.now()), Zt && !
|
|
12902
|
+
dt && Zt && p.endB == p.start && (t.input.lastAndroidDelete = Date.now()), Zt && !w && 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(() => {
|
|
12893
12903
|
t.someProp("handleKeyDown", function($) {
|
|
12894
12904
|
return $(t, Dr(13, "Enter"));
|
|
12895
12905
|
});
|
|
12896
12906
|
}, 20));
|
|
12897
12907
|
let y = p.start, D = p.endA, b, N, F;
|
|
12898
|
-
if (
|
|
12908
|
+
if (w) {
|
|
12899
12909
|
if (g.pos == m.pos)
|
|
12900
12910
|
St && lr <= 11 && g.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => zn(t), 20)), b = t.state.tr.delete(y, D), N = c.resolve(p.start).marksAcross(c.resolve(p.endA));
|
|
12901
12911
|
else if (
|
|
@@ -12934,7 +12944,7 @@ function ux(t, e) {
|
|
|
12934
12944
|
let u = [];
|
|
12935
12945
|
for (let c = 0; c < e.childCount; c++)
|
|
12936
12946
|
u.push(l(e.child(c)));
|
|
12937
|
-
if (
|
|
12947
|
+
if (P.from(u).eq(t))
|
|
12938
12948
|
return { mark: a, type: o };
|
|
12939
12949
|
}
|
|
12940
12950
|
function cx(t, e, n, r, i) {
|
|
@@ -13751,10 +13761,10 @@ function hp(t, e, n) {
|
|
|
13751
13761
|
let a = e.parent.canReplace(e.index(), e.index() + 1);
|
|
13752
13762
|
if (a && (s = (o = r.contentMatchAt(r.childCount)).findWrapping(i.type)) && o.matchType(s[0] || i.type).validEnd) {
|
|
13753
13763
|
if (n) {
|
|
13754
|
-
let d = e.pos + i.nodeSize, f =
|
|
13764
|
+
let d = e.pos + i.nodeSize, f = P.empty;
|
|
13755
13765
|
for (let g = s.length - 1; g >= 0; g--)
|
|
13756
|
-
f =
|
|
13757
|
-
f =
|
|
13766
|
+
f = P.from(s[g].create(null, f));
|
|
13767
|
+
f = P.from(r.copy(f));
|
|
13758
13768
|
let h = t.tr.step(new Je(e.pos - 1, d, e.pos, d, new z(f, 1, 0), s.length, !0)), p = d + 2 * s.length;
|
|
13759
13769
|
vr(h.doc, p) && h.join(p), n(h.scrollIntoView());
|
|
13760
13770
|
}
|
|
@@ -13772,9 +13782,9 @@ function hp(t, e, n) {
|
|
|
13772
13782
|
p++;
|
|
13773
13783
|
if (d.canReplace(d.childCount, d.childCount, h.content)) {
|
|
13774
13784
|
if (n) {
|
|
13775
|
-
let g =
|
|
13785
|
+
let g = P.empty;
|
|
13776
13786
|
for (let v = f.length - 1; v >= 0; v--)
|
|
13777
|
-
g =
|
|
13787
|
+
g = P.from(f[v].copy(g));
|
|
13778
13788
|
let m = t.tr.step(new Je(e.pos - f.length, e.pos + i.nodeSize, e.pos + p, e.pos + i.nodeSize - p, new z(g, f.length, 0), 0, !0));
|
|
13779
13789
|
n(m.scrollIntoView());
|
|
13780
13790
|
}
|
|
@@ -13848,9 +13858,9 @@ function zx(t, e = null) {
|
|
|
13848
13858
|
};
|
|
13849
13859
|
}
|
|
13850
13860
|
function jx(t, e, n, r, i) {
|
|
13851
|
-
let s =
|
|
13861
|
+
let s = P.empty;
|
|
13852
13862
|
for (let c = n.length - 1; c >= 0; c--)
|
|
13853
|
-
s =
|
|
13863
|
+
s = P.from(n[c].type.create(n[c].attrs, s));
|
|
13854
13864
|
t.step(new Je(e.start - (r ? 2 : 0), e.end, e.start, e.end, new z(s, 0, 0), n.length, !0));
|
|
13855
13865
|
let o = 0;
|
|
13856
13866
|
for (let c = 0; c < n.length; c++)
|
|
@@ -13868,7 +13878,7 @@ function Wx(t) {
|
|
|
13868
13878
|
}
|
|
13869
13879
|
function Hx(t, e, n, r) {
|
|
13870
13880
|
let i = t.tr, s = r.end, o = r.$to.end(r.depth);
|
|
13871
|
-
s < o && (i.step(new Je(s - 1, o, s, o, new z(
|
|
13881
|
+
s < o && (i.step(new Je(s - 1, o, s, o, new z(P.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new xo(i.doc.resolve(r.$from.pos), i.doc.resolve(o), r.depth));
|
|
13872
13882
|
const a = $i(r);
|
|
13873
13883
|
if (a == null)
|
|
13874
13884
|
return !1;
|
|
@@ -13884,10 +13894,10 @@ function Yx(t, e, n) {
|
|
|
13884
13894
|
if (r.mapping.map(n.end) != n.start + s.nodeAfter.nodeSize)
|
|
13885
13895
|
return !1;
|
|
13886
13896
|
let a = n.startIndex == 0, l = n.endIndex == i.childCount, u = s.node(-1), c = s.index(-1);
|
|
13887
|
-
if (!u.canReplace(c + (a ? 0 : 1), c + 1, o.content.append(l ?
|
|
13897
|
+
if (!u.canReplace(c + (a ? 0 : 1), c + 1, o.content.append(l ? P.empty : P.from(i))))
|
|
13888
13898
|
return !1;
|
|
13889
13899
|
let d = s.pos, f = d + o.nodeSize;
|
|
13890
|
-
return r.step(new Je(d - (a ? 1 : 0), f + (l ? 1 : 0), d + 1, f - 1, new z((a ?
|
|
13900
|
+
return r.step(new Je(d - (a ? 1 : 0), f + (l ? 1 : 0), d + 1, f - 1, new z((a ? P.empty : P.from(i.copy(P.empty))).append(l ? P.empty : P.from(i.copy(P.empty))), a ? 0 : 1, l ? 0 : 1), a ? 0 : 1)), e(r.scrollIntoView()), !0;
|
|
13891
13901
|
}
|
|
13892
13902
|
function Ux(t) {
|
|
13893
13903
|
return function(e, n) {
|
|
@@ -13901,7 +13911,7 @@ function Ux(t) {
|
|
|
13901
13911
|
if (l.type != t)
|
|
13902
13912
|
return !1;
|
|
13903
13913
|
if (n) {
|
|
13904
|
-
let u = l.lastChild && l.lastChild.type == a.type, c =
|
|
13914
|
+
let u = l.lastChild && l.lastChild.type == a.type, c = P.from(u ? t.create() : null), d = new z(P.from(t.create(null, P.from(a.type.create(null, c)))), u ? 3 : 1, 0), f = s.start, h = s.end;
|
|
13905
13915
|
n(e.tr.step(new Je(f - (u ? 3 : 1), h, f, h, d, 1, !0)).scrollIntoView());
|
|
13906
13916
|
}
|
|
13907
13917
|
return !0;
|
|
@@ -14151,8 +14161,8 @@ function Gx(t, e) {
|
|
|
14151
14161
|
options: u.options,
|
|
14152
14162
|
storage: u.storage,
|
|
14153
14163
|
editor: e
|
|
14154
|
-
}, f = t.reduce((v,
|
|
14155
|
-
const O = K(
|
|
14164
|
+
}, f = t.reduce((v, w) => {
|
|
14165
|
+
const O = K(w, "extendNodeSchema", d);
|
|
14156
14166
|
return {
|
|
14157
14167
|
...v,
|
|
14158
14168
|
...O ? O(u) : {}
|
|
@@ -14170,8 +14180,8 @@ function Gx(t, e) {
|
|
|
14170
14180
|
defining: ce(K(u, "defining", d)),
|
|
14171
14181
|
isolating: ce(K(u, "isolating", d)),
|
|
14172
14182
|
attrs: Object.fromEntries(c.map((v) => {
|
|
14173
|
-
var
|
|
14174
|
-
return [v.name, { default: (
|
|
14183
|
+
var w;
|
|
14184
|
+
return [v.name, { default: (w = v == null ? void 0 : v.attribute) === null || w === void 0 ? void 0 : w.default }];
|
|
14175
14185
|
}))
|
|
14176
14186
|
}), p = ce(K(u, "parseHTML", d));
|
|
14177
14187
|
p && (h.parseDOM = p.map((v) => wd(v, c)));
|
|
@@ -14189,10 +14199,10 @@ function Gx(t, e) {
|
|
|
14189
14199
|
storage: u.storage,
|
|
14190
14200
|
editor: e
|
|
14191
14201
|
}, f = t.reduce((m, v) => {
|
|
14192
|
-
const
|
|
14202
|
+
const w = K(v, "extendMarkSchema", d);
|
|
14193
14203
|
return {
|
|
14194
14204
|
...m,
|
|
14195
|
-
...
|
|
14205
|
+
...w ? w(u) : {}
|
|
14196
14206
|
};
|
|
14197
14207
|
}, {}), h = kd({
|
|
14198
14208
|
...f,
|
|
@@ -14281,7 +14291,7 @@ function Xs(t) {
|
|
|
14281
14291
|
}), m = {
|
|
14282
14292
|
from: r - (h[0].length - s.length),
|
|
14283
14293
|
to: i
|
|
14284
|
-
}, { commands: v, chain:
|
|
14294
|
+
}, { commands: v, chain: w, can: O } = new ta({
|
|
14285
14295
|
editor: n,
|
|
14286
14296
|
state: g
|
|
14287
14297
|
});
|
|
@@ -14290,7 +14300,7 @@ function Xs(t) {
|
|
|
14290
14300
|
range: m,
|
|
14291
14301
|
match: h,
|
|
14292
14302
|
commands: v,
|
|
14293
|
-
chain:
|
|
14303
|
+
chain: w,
|
|
14294
14304
|
can: O
|
|
14295
14305
|
}) === null || !p.steps.length || (p.setMeta(a, {
|
|
14296
14306
|
transform: p,
|
|
@@ -14466,10 +14476,10 @@ function sS(t) {
|
|
|
14466
14476
|
}
|
|
14467
14477
|
},
|
|
14468
14478
|
appendTransaction: (d, f, h) => {
|
|
14469
|
-
const p = d[0], g = p.getMeta("uiEvent") === "paste" && !i, m = p.getMeta("uiEvent") === "drop" && !s, v = p.getMeta("applyPasteRules"),
|
|
14470
|
-
if (!g && !m && !
|
|
14479
|
+
const p = d[0], g = p.getMeta("uiEvent") === "paste" && !i, m = p.getMeta("uiEvent") === "drop" && !s, v = p.getMeta("applyPasteRules"), w = !!v;
|
|
14480
|
+
if (!g && !m && !w)
|
|
14471
14481
|
return;
|
|
14472
|
-
if (
|
|
14482
|
+
if (w) {
|
|
14473
14483
|
const { from: D, text: b } = v, N = D + b.length, F = iS(b);
|
|
14474
14484
|
return l({
|
|
14475
14485
|
rule: c,
|
|
@@ -14667,7 +14677,7 @@ function ia(t, e) {
|
|
|
14667
14677
|
za(e[r]) ? r in t ? n[r] = ia(t[r], e[r]) : Object.assign(n, { [r]: e[r] }) : Object.assign(n, { [r]: e[r] });
|
|
14668
14678
|
}), n;
|
|
14669
14679
|
}
|
|
14670
|
-
class
|
|
14680
|
+
class ot {
|
|
14671
14681
|
constructor(e = {}) {
|
|
14672
14682
|
this.type = "extension", this.name = "extension", this.parent = null, this.child = null, this.config = {
|
|
14673
14683
|
name: this.name,
|
|
@@ -14683,7 +14693,7 @@ class it {
|
|
|
14683
14693
|
})) || {};
|
|
14684
14694
|
}
|
|
14685
14695
|
static create(e = {}) {
|
|
14686
|
-
return new
|
|
14696
|
+
return new ot(e);
|
|
14687
14697
|
}
|
|
14688
14698
|
configure(e = {}) {
|
|
14689
14699
|
const n = this.extend();
|
|
@@ -14693,7 +14703,7 @@ class it {
|
|
|
14693
14703
|
})), n;
|
|
14694
14704
|
}
|
|
14695
14705
|
extend(e = {}) {
|
|
14696
|
-
const n = new
|
|
14706
|
+
const n = new ot({ ...this.config, ...e });
|
|
14697
14707
|
return n.parent = this, this.child = n, n.name = e.name ? e.name : n.parent.name, e.defaultOptions && console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${n.name}".`), n.options = ce(K(n, "addOptions", {
|
|
14698
14708
|
name: n.name
|
|
14699
14709
|
})), n.storage = ce(K(n, "addStorage", {
|
|
@@ -14725,7 +14735,7 @@ function yp(t, e, n) {
|
|
|
14725
14735
|
function vp(t) {
|
|
14726
14736
|
return Object.fromEntries(Object.entries(t.nodes).filter(([, e]) => e.spec.toText).map(([e, n]) => [e, n.spec.toText]));
|
|
14727
14737
|
}
|
|
14728
|
-
const lS =
|
|
14738
|
+
const lS = ot.create({
|
|
14729
14739
|
name: "clipboardTextSerializer",
|
|
14730
14740
|
addOptions() {
|
|
14731
14741
|
return {
|
|
@@ -14920,7 +14930,7 @@ function _o(t, e, n) {
|
|
|
14920
14930
|
const r = typeof t == "object" && t !== null, i = typeof t == "string";
|
|
14921
14931
|
if (r)
|
|
14922
14932
|
try {
|
|
14923
|
-
return Array.isArray(t) && t.length > 0 ?
|
|
14933
|
+
return Array.isArray(t) && t.length > 0 ? P.fromArray(t.map((o) => e.nodeFromJSON(o))) : e.nodeFromJSON(t);
|
|
14924
14934
|
} catch (s) {
|
|
14925
14935
|
return console.warn("[tiptap warn]: Invalid content.", "Passed value:", t, "Error:", s), _o("", e, n);
|
|
14926
14936
|
}
|
|
@@ -15165,11 +15175,11 @@ function El(t, e, n = {}) {
|
|
|
15165
15175
|
t.doc.nodesBetween(h, p, (g, m) => {
|
|
15166
15176
|
if (!g.isText && !g.marks.length)
|
|
15167
15177
|
return;
|
|
15168
|
-
const v = Math.max(h, m),
|
|
15178
|
+
const v = Math.max(h, m), w = Math.min(p, m + g.nodeSize), O = w - v;
|
|
15169
15179
|
o += O, a.push(...g.marks.map((y) => ({
|
|
15170
15180
|
mark: y,
|
|
15171
15181
|
from: v,
|
|
15172
|
-
to:
|
|
15182
|
+
to: w
|
|
15173
15183
|
})));
|
|
15174
15184
|
});
|
|
15175
15185
|
}), o === 0)
|
|
@@ -15330,14 +15340,14 @@ const mM = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
15330
15340
|
if (a.depth === 2 || a.node(-3).type !== o || a.index(-2) !== a.node(-2).childCount - 1)
|
|
15331
15341
|
return !1;
|
|
15332
15342
|
if (r) {
|
|
15333
|
-
let m =
|
|
15343
|
+
let m = P.empty;
|
|
15334
15344
|
const v = a.index(-1) ? 1 : a.index(-2) ? 2 : 3;
|
|
15335
15345
|
for (let N = a.depth - v; N >= a.depth - 3; N -= 1)
|
|
15336
|
-
m =
|
|
15337
|
-
const
|
|
15338
|
-
m = m.append(
|
|
15346
|
+
m = P.from(a.node(N).copy(m));
|
|
15347
|
+
const w = a.indexAfter(-1) < a.node(-2).childCount ? 1 : a.indexAfter(-2) < a.node(-3).childCount ? 2 : 3, O = so(d, a.node().type.name, a.node().attrs), y = ((s = o.contentMatch.defaultType) === null || s === void 0 ? void 0 : s.createAndFill(O)) || void 0;
|
|
15348
|
+
m = m.append(P.from(o.createAndFill(null, y) || void 0));
|
|
15339
15349
|
const D = a.before(a.depth - (v - 1));
|
|
15340
|
-
e.replace(D, a.after(-
|
|
15350
|
+
e.replace(D, a.after(-w), new z(m, 4 - v, 0));
|
|
15341
15351
|
let b = -1;
|
|
15342
15352
|
e.doc.nodesBetween(D, e.doc.content.size, (N, F) => {
|
|
15343
15353
|
if (b > -1)
|
|
@@ -15356,10 +15366,10 @@ const mM = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
15356
15366
|
if (!gi(e.doc, a.pos, 2))
|
|
15357
15367
|
return !1;
|
|
15358
15368
|
if (r) {
|
|
15359
|
-
const { selection: m, storedMarks: v } = n, { splittableMarks:
|
|
15369
|
+
const { selection: m, storedMarks: v } = n, { splittableMarks: w } = i.extensionManager, O = v || m.$to.parentOffset && m.$from.marks();
|
|
15360
15370
|
if (e.split(a.pos, 2, g).scrollIntoView(), !O || !r)
|
|
15361
15371
|
return !0;
|
|
15362
|
-
const y = O.filter((D) =>
|
|
15372
|
+
const y = O.filter((D) => w.includes(D.type.name));
|
|
15363
15373
|
e.ensureMarks(y);
|
|
15364
15374
|
}
|
|
15365
15375
|
return !0;
|
|
@@ -15382,7 +15392,7 @@ const mM = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
15382
15392
|
const i = t.doc.nodeAt(r);
|
|
15383
15393
|
return n.node.type === (i == null ? void 0 : i.type) && vr(t.doc, r) && t.join(r), !0;
|
|
15384
15394
|
}, yM = (t, e, n, r = {}) => ({ editor: i, tr: s, state: o, dispatch: a, chain: l, commands: u, can: c }) => {
|
|
15385
|
-
const { extensions: d, splittableMarks: f } = i.extensionManager, h = Ze(t, o.schema), p = Ze(e, o.schema), { selection: g, storedMarks: m } = o, { $from: v, $to:
|
|
15395
|
+
const { extensions: d, splittableMarks: f } = i.extensionManager, h = Ze(t, o.schema), p = Ze(e, o.schema), { selection: g, storedMarks: m } = o, { $from: v, $to: w } = g, O = v.blockRange(w), y = m || g.$to.parentOffset && g.$from.marks();
|
|
15386
15396
|
if (!O)
|
|
15387
15397
|
return !1;
|
|
15388
15398
|
const D = wu((b) => Od(b.type.name, d))(g);
|
|
@@ -15532,14 +15542,14 @@ var TM = /* @__PURE__ */ Object.freeze({
|
|
|
15532
15542
|
wrapIn: OM,
|
|
15533
15543
|
wrapInList: CM
|
|
15534
15544
|
});
|
|
15535
|
-
const DM =
|
|
15545
|
+
const DM = ot.create({
|
|
15536
15546
|
name: "commands",
|
|
15537
15547
|
addCommands() {
|
|
15538
15548
|
return {
|
|
15539
15549
|
...TM
|
|
15540
15550
|
};
|
|
15541
15551
|
}
|
|
15542
|
-
}), EM =
|
|
15552
|
+
}), EM = ot.create({
|
|
15543
15553
|
name: "editable",
|
|
15544
15554
|
addProseMirrorPlugins() {
|
|
15545
15555
|
return [
|
|
@@ -15551,7 +15561,7 @@ const DM = it.create({
|
|
|
15551
15561
|
})
|
|
15552
15562
|
];
|
|
15553
15563
|
}
|
|
15554
|
-
}), AM =
|
|
15564
|
+
}), AM = ot.create({
|
|
15555
15565
|
name: "focusEvents",
|
|
15556
15566
|
addProseMirrorPlugins() {
|
|
15557
15567
|
const { editor: t } = this;
|
|
@@ -15575,7 +15585,7 @@ const DM = it.create({
|
|
|
15575
15585
|
})
|
|
15576
15586
|
];
|
|
15577
15587
|
}
|
|
15578
|
-
}), NM =
|
|
15588
|
+
}), NM = ot.create({
|
|
15579
15589
|
name: "keymap",
|
|
15580
15590
|
addKeyboardShortcuts() {
|
|
15581
15591
|
const t = () => this.editor.commands.first(({ commands: o }) => [
|
|
@@ -15650,7 +15660,7 @@ const DM = it.create({
|
|
|
15650
15660
|
})
|
|
15651
15661
|
];
|
|
15652
15662
|
}
|
|
15653
|
-
}), _M =
|
|
15663
|
+
}), _M = ot.create({
|
|
15654
15664
|
name: "tabindex",
|
|
15655
15665
|
addProseMirrorPlugins() {
|
|
15656
15666
|
return [
|
|
@@ -16546,7 +16556,7 @@ var eO = function(e, n) {
|
|
|
16546
16556
|
function tO(t) {
|
|
16547
16557
|
var e, n = t.state, r = t.name, i = t.options, s = n.elements.arrow, o = n.modifiersData.popperOffsets, a = bn(n.placement), l = Mu(a), u = [Ot, qt].indexOf(a) >= 0, c = u ? "height" : "width";
|
|
16548
16558
|
if (!(!s || !o)) {
|
|
16549
|
-
var d = eO(i.padding, n), f = Su(s), h = l === "y" ? Mt : Ot, p = l === "y" ? Ut : qt, g = n.rects.reference[c] + n.rects.reference[l] - o[l] - n.rects.popper[c], m = o[l] - n.rects.reference[l], v = Bs(s),
|
|
16559
|
+
var d = eO(i.padding, n), f = Su(s), h = l === "y" ? Mt : Ot, p = l === "y" ? Ut : qt, g = n.rects.reference[c] + n.rects.reference[l] - o[l] - n.rects.popper[c], m = o[l] - n.rects.reference[l], v = Bs(s), w = v ? l === "y" ? v.clientHeight || 0 : v.clientWidth || 0 : 0, O = g / 2 - m / 2, y = d[h], D = w - f[c] - d[p], b = w / 2 - f[c] / 2 + O, N = is(y, b, D), F = l;
|
|
16550
16560
|
n.modifiersData[r] = (e = {}, e[F] = N, e.centerOffset = N - b, e);
|
|
16551
16561
|
}
|
|
16552
16562
|
}
|
|
@@ -16588,7 +16598,7 @@ function Ed(t) {
|
|
|
16588
16598
|
y: g
|
|
16589
16599
|
};
|
|
16590
16600
|
h = m.x, g = m.y;
|
|
16591
|
-
var v = o.hasOwnProperty("x"),
|
|
16601
|
+
var v = o.hasOwnProperty("x"), w = o.hasOwnProperty("y"), O = Ot, y = Mt, D = window;
|
|
16592
16602
|
if (u) {
|
|
16593
16603
|
var b = Bs(n), N = "clientHeight", F = "clientWidth";
|
|
16594
16604
|
if (b === Vt(n) && (b = kr(n), Yn(b).position !== "static" && a === "absolute" && (N = "scrollHeight", F = "scrollWidth")), b = b, i === Mt || (i === Ot || i === qt) && s === ws) {
|
|
@@ -16619,9 +16629,9 @@ function Ed(t) {
|
|
|
16619
16629
|
};
|
|
16620
16630
|
if (h = E.x, g = E.y, l) {
|
|
16621
16631
|
var j;
|
|
16622
|
-
return Object.assign({}, oe, (j = {}, j[y] =
|
|
16632
|
+
return Object.assign({}, oe, (j = {}, j[y] = w ? "0" : "", j[O] = v ? "0" : "", j.transform = (D.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + g + "px)" : "translate3d(" + h + "px, " + g + "px, 0)", j));
|
|
16623
16633
|
}
|
|
16624
|
-
return Object.assign({}, oe, (e = {}, e[y] =
|
|
16634
|
+
return Object.assign({}, oe, (e = {}, e[y] = w ? g + "px" : "", e[O] = v ? h + "px" : "", e.transform = "", e));
|
|
16625
16635
|
}
|
|
16626
16636
|
function oO(t) {
|
|
16627
16637
|
var e = t.state, n = t.options, r = n.gpuAcceleration, i = r === void 0 ? !0 : r, s = n.adaptive, o = s === void 0 ? !0 : s, a = n.roundOffsets, l = a === void 0 ? !0 : a, u = {
|
|
@@ -16821,7 +16831,7 @@ function Ip(t) {
|
|
|
16821
16831
|
}
|
|
16822
16832
|
function ks(t, e) {
|
|
16823
16833
|
e === void 0 && (e = {});
|
|
16824
|
-
var n = e, r = n.placement, i = r === void 0 ? t.placement : r, s = n.strategy, o = s === void 0 ? t.strategy : s, a = n.boundary, l = a === void 0 ? VM : a, u = n.rootBoundary, c = u === void 0 ? Op : u, d = n.elementContext, f = d === void 0 ? Yi : d, h = n.altBoundary, p = h === void 0 ? !1 : h, g = n.padding, m = g === void 0 ? 0 : g, v = Np(typeof m != "number" ? m : _p(m, Vs)),
|
|
16834
|
+
var n = e, r = n.placement, i = r === void 0 ? t.placement : r, s = n.strategy, o = s === void 0 ? t.strategy : s, a = n.boundary, l = a === void 0 ? VM : a, u = n.rootBoundary, c = u === void 0 ? Op : u, d = n.elementContext, f = d === void 0 ? Yi : d, h = n.altBoundary, p = h === void 0 ? !1 : h, g = n.padding, m = g === void 0 ? 0 : g, v = Np(typeof m != "number" ? m : _p(m, Vs)), w = f === Yi ? BM : Yi, O = t.rects.popper, y = t.elements[p ? w : f], D = gO(Ur(y) ? y : y.contextElement || kr(t.elements.popper), l, c, o), b = Pi(t.elements.reference), N = Ip({
|
|
16825
16835
|
reference: b,
|
|
16826
16836
|
element: O,
|
|
16827
16837
|
strategy: "absolute",
|
|
@@ -16870,15 +16880,15 @@ function vO(t) {
|
|
|
16870
16880
|
function bO(t) {
|
|
16871
16881
|
var e = t.state, n = t.options, r = t.name;
|
|
16872
16882
|
if (!e.modifiersData[r]._skip) {
|
|
16873
|
-
for (var i = n.mainAxis, s = i === void 0 ? !0 : i, o = n.altAxis, a = o === void 0 ? !0 : o, 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, v = bn(m),
|
|
16874
|
-
return Te.concat(bn(
|
|
16875
|
-
placement:
|
|
16883
|
+
for (var i = n.mainAxis, s = i === void 0 ? !0 : i, o = n.altAxis, a = o === void 0 ? !0 : o, 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, v = bn(m), w = v === m, O = l || (w || !p ? [oo(m)] : vO(m)), y = [m].concat(O).reduce(function(Te, ut) {
|
|
16884
|
+
return Te.concat(bn(ut) === ku ? yO(e, {
|
|
16885
|
+
placement: ut,
|
|
16876
16886
|
boundary: c,
|
|
16877
16887
|
rootBoundary: d,
|
|
16878
16888
|
padding: u,
|
|
16879
16889
|
flipVariations: p,
|
|
16880
16890
|
allowedAutoPlacements: g
|
|
16881
|
-
}) :
|
|
16891
|
+
}) : ut);
|
|
16882
16892
|
}, []), D = e.rects.reference, b = e.rects.popper, N = /* @__PURE__ */ new Map(), F = !0, $ = y[0], H = 0; H < y.length; H++) {
|
|
16883
16893
|
var oe = y[H], E = bn(oe), j = Ii(oe) === Ni, q = [Mt, Ut].indexOf(E) >= 0, Z = q ? "width" : "height", C = ks(e, {
|
|
16884
16894
|
placement: oe,
|
|
@@ -16898,17 +16908,17 @@ function bO(t) {
|
|
|
16898
16908
|
N.set(oe, je);
|
|
16899
16909
|
}
|
|
16900
16910
|
if (F)
|
|
16901
|
-
for (var
|
|
16911
|
+
for (var lt = p ? 3 : 1, yt = function(ut) {
|
|
16902
16912
|
var L = y.find(function(re) {
|
|
16903
16913
|
var ke = N.get(re);
|
|
16904
16914
|
if (ke)
|
|
16905
|
-
return ke.slice(0,
|
|
16915
|
+
return ke.slice(0, ut).every(function(fe) {
|
|
16906
16916
|
return fe;
|
|
16907
16917
|
});
|
|
16908
16918
|
});
|
|
16909
16919
|
if (L)
|
|
16910
16920
|
return $ = L, "break";
|
|
16911
|
-
}, Ct =
|
|
16921
|
+
}, Ct = lt; Ct > 0; Ct--) {
|
|
16912
16922
|
var Tt = yt(Ct);
|
|
16913
16923
|
if (Tt === "break")
|
|
16914
16924
|
break;
|
|
@@ -17015,7 +17025,7 @@ function EO(t) {
|
|
|
17015
17025
|
rootBoundary: u,
|
|
17016
17026
|
padding: d,
|
|
17017
17027
|
altBoundary: c
|
|
17018
|
-
}), v = bn(e.placement),
|
|
17028
|
+
}), v = bn(e.placement), w = Ii(e.placement), O = !w, y = Mu(v), D = DO(y), b = e.modifiersData.popperOffsets, N = e.rects.reference, F = e.rects.popper, $ = typeof g == "function" ? g(Object.assign({}, e.rects, {
|
|
17019
17029
|
placement: e.placement
|
|
17020
17030
|
})) : g, H = typeof $ == "number" ? {
|
|
17021
17031
|
mainAxis: $,
|
|
@@ -17029,10 +17039,10 @@ function EO(t) {
|
|
|
17029
17039
|
};
|
|
17030
17040
|
if (b) {
|
|
17031
17041
|
if (s) {
|
|
17032
|
-
var j, q = y === "y" ? Mt : Ot, Z = y === "y" ? Ut : qt, C = y === "y" ? "height" : "width", J = b[y], ae = J + m[q], je = J - m[Z],
|
|
17042
|
+
var j, q = y === "y" ? Mt : Ot, Z = y === "y" ? Ut : qt, C = y === "y" ? "height" : "width", J = b[y], ae = J + m[q], je = J - m[Z], lt = h ? -F[C] / 2 : 0, yt = w === Ni ? N[C] : F[C], Ct = w === Ni ? -F[C] : -N[C], Tt = e.elements.arrow, Te = h && Tt ? Su(Tt) : {
|
|
17033
17043
|
width: 0,
|
|
17034
17044
|
height: 0
|
|
17035
|
-
},
|
|
17045
|
+
}, ut = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : Ap(), L = ut[q], re = ut[Z], ke = is(0, N[C], Te[C]), fe = O ? N[C] / 2 - lt - ke - L - H.mainAxis : yt - ke - L - H.mainAxis, Ye = O ? -N[C] / 2 + lt + ke + re + H.mainAxis : Ct + ke + re + H.mainAxis, Ue = e.elements.arrow && Bs(e.elements.arrow), vt = Ue ? y === "y" ? Ue.clientTop || 0 : Ue.clientLeft || 0 : 0, xr = (j = oe == null ? void 0 : oe[y]) != null ? j : 0, Gr = J + fe - xr - vt, Jn = J + Ye - xr, Gn = is(h ? Po(ae, Gr) : ae, J, h ? Lr(je, Jn) : je);
|
|
17036
17046
|
b[y] = Gn, E[y] = Gn - J;
|
|
17037
17047
|
}
|
|
17038
17048
|
if (a) {
|
|
@@ -17159,8 +17169,8 @@ function LO(t) {
|
|
|
17159
17169
|
}, d = [], f = !1, h = {
|
|
17160
17170
|
state: c,
|
|
17161
17171
|
setOptions: function(v) {
|
|
17162
|
-
var
|
|
17163
|
-
g(), c.options = Object.assign({}, s, c.options,
|
|
17172
|
+
var w = typeof v == "function" ? v(c.options) : v;
|
|
17173
|
+
g(), c.options = Object.assign({}, s, c.options, w), c.scrollParents = {
|
|
17164
17174
|
reference: Ur(a) ? ss(a) : a.contextElement ? ss(a.contextElement) : [],
|
|
17165
17175
|
popper: ss(l)
|
|
17166
17176
|
};
|
|
@@ -17176,10 +17186,10 @@ function LO(t) {
|
|
|
17176
17186
|
// prefer the async Popper#update method
|
|
17177
17187
|
forceUpdate: function() {
|
|
17178
17188
|
if (!f) {
|
|
17179
|
-
var v = c.elements,
|
|
17180
|
-
if (Rd(
|
|
17189
|
+
var v = c.elements, w = v.reference, O = v.popper;
|
|
17190
|
+
if (Rd(w, O)) {
|
|
17181
17191
|
c.rects = {
|
|
17182
|
-
reference: IO(
|
|
17192
|
+
reference: IO(w, Bs(O), c.options.strategy === "fixed"),
|
|
17183
17193
|
popper: Su(O)
|
|
17184
17194
|
}, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(H) {
|
|
17185
17195
|
return c.modifiersData[H.name] = Object.assign({}, H.data);
|
|
@@ -17218,7 +17228,7 @@ function LO(t) {
|
|
|
17218
17228
|
});
|
|
17219
17229
|
function p() {
|
|
17220
17230
|
c.orderedModifiers.forEach(function(m) {
|
|
17221
|
-
var v = m.name,
|
|
17231
|
+
var v = m.name, w = m.options, O = w === void 0 ? {} : w, y = m.effect;
|
|
17222
17232
|
if (typeof y == "function") {
|
|
17223
17233
|
var D = y({
|
|
17224
17234
|
state: c,
|
|
@@ -17345,8 +17355,8 @@ function eC(t, e) {
|
|
|
17345
17355
|
var s = i.popperRect, o = i.popperState, a = i.props, l = a.interactiveBorder, u = KO(o.placement), c = o.modifiersData.offset;
|
|
17346
17356
|
if (!c)
|
|
17347
17357
|
return !0;
|
|
17348
|
-
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 = s.top - r + d > l, m = r - s.bottom - f > l, v = s.left - n + h > l,
|
|
17349
|
-
return g || m || v ||
|
|
17358
|
+
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 = s.top - r + d > l, m = r - s.bottom - f > l, v = s.left - n + h > l, w = n - s.right - p > l;
|
|
17359
|
+
return g || m || v || w;
|
|
17350
17360
|
});
|
|
17351
17361
|
}
|
|
17352
17362
|
function Ua(t, e, n) {
|
|
@@ -17604,7 +17614,7 @@ function Yp(t) {
|
|
|
17604
17614
|
Yp.$$tippy = !0;
|
|
17605
17615
|
var pC = 1, eo = [], qa = [];
|
|
17606
17616
|
function mC(t, e) {
|
|
17607
|
-
var n = Wd(t, Object.assign({}, _t, Wp(Bd(e)))), r, i, s, o = !1, a = !1, l = !1, u = !1, c, d, f, h = [], p = $d(Gr, n.interactiveDebounce), g, m = pC++, v = null,
|
|
17617
|
+
var n = Wd(t, Object.assign({}, _t, Wp(Bd(e)))), r, i, s, o = !1, a = !1, l = !1, u = !1, c, d, f, h = [], p = $d(Gr, n.interactiveDebounce), g, m = pC++, v = null, w = qO(n.plugins), O = {
|
|
17608
17618
|
// Is the instance currently enabled?
|
|
17609
17619
|
isEnabled: !0,
|
|
17610
17620
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -17623,7 +17633,7 @@ function mC(t, e) {
|
|
|
17623
17633
|
popperInstance: v,
|
|
17624
17634
|
props: n,
|
|
17625
17635
|
state: O,
|
|
17626
|
-
plugins:
|
|
17636
|
+
plugins: w,
|
|
17627
17637
|
// methods
|
|
17628
17638
|
clearDelayTimeouts: Zr,
|
|
17629
17639
|
setProps: Xr,
|
|
@@ -17640,53 +17650,53 @@ function mC(t, e) {
|
|
|
17640
17650
|
return process.env.NODE_ENV !== "production" && Il(!0, "render() function has not been supplied."), y;
|
|
17641
17651
|
var D = n.render(y), b = D.popper, N = D.onUpdate;
|
|
17642
17652
|
b.setAttribute("data-tippy-root", ""), b.id = "tippy-" + y.id, y.popper = b, t._tippy = y, b._tippy = y;
|
|
17643
|
-
var F =
|
|
17644
|
-
return
|
|
17653
|
+
var F = w.map(function(k) {
|
|
17654
|
+
return k.fn(y);
|
|
17645
17655
|
}), $ = t.hasAttribute("aria-expanded");
|
|
17646
|
-
return Ue(),
|
|
17656
|
+
return Ue(), lt(), J(), ae("onCreate", [y]), n.showOnCreate && An(), b.addEventListener("mouseenter", function() {
|
|
17647
17657
|
y.props.interactive && y.state.isVisible && y.clearDelayTimeouts();
|
|
17648
17658
|
}), b.addEventListener("mouseleave", function() {
|
|
17649
17659
|
y.props.interactive && y.props.trigger.indexOf("mouseenter") >= 0 && q().addEventListener("mousemove", p);
|
|
17650
17660
|
}), y;
|
|
17651
17661
|
function H() {
|
|
17652
|
-
var
|
|
17653
|
-
return Array.isArray(
|
|
17662
|
+
var k = y.props.touch;
|
|
17663
|
+
return Array.isArray(k) ? k : [k, 0];
|
|
17654
17664
|
}
|
|
17655
17665
|
function oe() {
|
|
17656
17666
|
return H()[0] === "hold";
|
|
17657
17667
|
}
|
|
17658
17668
|
function E() {
|
|
17659
|
-
var
|
|
17660
|
-
return !!((
|
|
17669
|
+
var k;
|
|
17670
|
+
return !!((k = y.props.render) != null && k.$$tippy);
|
|
17661
17671
|
}
|
|
17662
17672
|
function j() {
|
|
17663
17673
|
return g || t;
|
|
17664
17674
|
}
|
|
17665
17675
|
function q() {
|
|
17666
|
-
var
|
|
17667
|
-
return
|
|
17676
|
+
var k = j().parentNode;
|
|
17677
|
+
return k ? QO(k) : document;
|
|
17668
17678
|
}
|
|
17669
17679
|
function Z() {
|
|
17670
17680
|
return $l(b);
|
|
17671
17681
|
}
|
|
17672
|
-
function C(
|
|
17673
|
-
return y.state.isMounted && !y.state.isVisible || pn.isTouch || c && c.type === "focus" ? 0 : Ha(y.props.delay,
|
|
17682
|
+
function C(k) {
|
|
17683
|
+
return y.state.isMounted && !y.state.isVisible || pn.isTouch || c && c.type === "focus" ? 0 : Ha(y.props.delay, k ? 0 : 1, _t.delay);
|
|
17674
17684
|
}
|
|
17675
|
-
function J(
|
|
17676
|
-
|
|
17685
|
+
function J(k) {
|
|
17686
|
+
k === void 0 && (k = !1), b.style.pointerEvents = y.props.interactive && !k ? "" : "none", b.style.zIndex = "" + y.props.zIndex;
|
|
17677
17687
|
}
|
|
17678
|
-
function ae(
|
|
17688
|
+
function ae(k, I, Y) {
|
|
17679
17689
|
if (Y === void 0 && (Y = !0), F.forEach(function(te) {
|
|
17680
|
-
te[
|
|
17690
|
+
te[k] && te[k].apply(te, I);
|
|
17681
17691
|
}), Y) {
|
|
17682
17692
|
var Q;
|
|
17683
|
-
(Q = y.props)[
|
|
17693
|
+
(Q = y.props)[k].apply(Q, I);
|
|
17684
17694
|
}
|
|
17685
17695
|
}
|
|
17686
17696
|
function je() {
|
|
17687
|
-
var
|
|
17688
|
-
if (
|
|
17689
|
-
var I = "aria-" +
|
|
17697
|
+
var k = y.props.aria;
|
|
17698
|
+
if (k.content) {
|
|
17699
|
+
var I = "aria-" + k.content, Y = b.id, Q = ai(y.props.triggerTarget || t);
|
|
17690
17700
|
Q.forEach(function(te) {
|
|
17691
17701
|
var le = te.getAttribute(I);
|
|
17692
17702
|
if (y.state.isVisible)
|
|
@@ -17698,22 +17708,22 @@ function mC(t, e) {
|
|
|
17698
17708
|
});
|
|
17699
17709
|
}
|
|
17700
17710
|
}
|
|
17701
|
-
function
|
|
17711
|
+
function lt() {
|
|
17702
17712
|
if (!($ || !y.props.aria.expanded)) {
|
|
17703
|
-
var
|
|
17704
|
-
|
|
17713
|
+
var k = ai(y.props.triggerTarget || t);
|
|
17714
|
+
k.forEach(function(I) {
|
|
17705
17715
|
y.props.interactive ? I.setAttribute("aria-expanded", y.state.isVisible && I === j() ? "true" : "false") : I.removeAttribute("aria-expanded");
|
|
17706
17716
|
});
|
|
17707
17717
|
}
|
|
17708
17718
|
}
|
|
17709
17719
|
function yt() {
|
|
17710
|
-
q().removeEventListener("mousemove", p), eo = eo.filter(function(
|
|
17711
|
-
return
|
|
17720
|
+
q().removeEventListener("mousemove", p), eo = eo.filter(function(k) {
|
|
17721
|
+
return k !== p;
|
|
17712
17722
|
});
|
|
17713
17723
|
}
|
|
17714
|
-
function Ct(
|
|
17715
|
-
if (!(pn.isTouch && (l ||
|
|
17716
|
-
var I =
|
|
17724
|
+
function Ct(k) {
|
|
17725
|
+
if (!(pn.isTouch && (l || k.type === "mousedown"))) {
|
|
17726
|
+
var I = k.composedPath && k.composedPath()[0] || k.target;
|
|
17717
17727
|
if (!(y.props.interactive && Fd(b, I))) {
|
|
17718
17728
|
if (ai(y.props.triggerTarget || t).some(function(Y) {
|
|
17719
17729
|
return Fd(Y, I);
|
|
@@ -17721,7 +17731,7 @@ function mC(t, e) {
|
|
|
17721
17731
|
if (pn.isTouch || y.state.isVisible && y.props.trigger.indexOf("click") >= 0)
|
|
17722
17732
|
return;
|
|
17723
17733
|
} else
|
|
17724
|
-
ae("onClickOutside", [y,
|
|
17734
|
+
ae("onClickOutside", [y, k]);
|
|
17725
17735
|
y.props.hideOnClick === !0 && (y.clearDelayTimeouts(), y.hide(), a = !0, setTimeout(function() {
|
|
17726
17736
|
a = !1;
|
|
17727
17737
|
}), y.state.isMounted || L());
|
|
@@ -17734,38 +17744,38 @@ function mC(t, e) {
|
|
|
17734
17744
|
function Te() {
|
|
17735
17745
|
l = !1;
|
|
17736
17746
|
}
|
|
17737
|
-
function
|
|
17738
|
-
var
|
|
17739
|
-
|
|
17747
|
+
function ut() {
|
|
17748
|
+
var k = q();
|
|
17749
|
+
k.addEventListener("mousedown", Ct, !0), k.addEventListener("touchend", Ct, Cr), k.addEventListener("touchstart", Te, Cr), k.addEventListener("touchmove", Tt, Cr);
|
|
17740
17750
|
}
|
|
17741
17751
|
function L() {
|
|
17742
|
-
var
|
|
17743
|
-
|
|
17752
|
+
var k = q();
|
|
17753
|
+
k.removeEventListener("mousedown", Ct, !0), k.removeEventListener("touchend", Ct, Cr), k.removeEventListener("touchstart", Te, Cr), k.removeEventListener("touchmove", Tt, Cr);
|
|
17744
17754
|
}
|
|
17745
|
-
function re(
|
|
17746
|
-
fe(
|
|
17755
|
+
function re(k, I) {
|
|
17756
|
+
fe(k, function() {
|
|
17747
17757
|
!y.state.isVisible && b.parentNode && b.parentNode.contains(b) && I();
|
|
17748
17758
|
});
|
|
17749
17759
|
}
|
|
17750
|
-
function ke(
|
|
17751
|
-
fe(
|
|
17760
|
+
function ke(k, I) {
|
|
17761
|
+
fe(k, I);
|
|
17752
17762
|
}
|
|
17753
|
-
function fe(
|
|
17763
|
+
function fe(k, I) {
|
|
17754
17764
|
var Y = Z().box;
|
|
17755
17765
|
function Q(te) {
|
|
17756
17766
|
te.target === Y && (Ua(Y, "remove", Q), I());
|
|
17757
17767
|
}
|
|
17758
|
-
if (
|
|
17768
|
+
if (k === 0)
|
|
17759
17769
|
return I();
|
|
17760
17770
|
Ua(Y, "remove", d), Ua(Y, "add", Q), d = Q;
|
|
17761
17771
|
}
|
|
17762
|
-
function Ye(
|
|
17772
|
+
function Ye(k, I, Y) {
|
|
17763
17773
|
Y === void 0 && (Y = !1);
|
|
17764
17774
|
var Q = ai(y.props.triggerTarget || t);
|
|
17765
17775
|
Q.forEach(function(te) {
|
|
17766
|
-
te.addEventListener(
|
|
17776
|
+
te.addEventListener(k, I, Y), h.push({
|
|
17767
17777
|
node: te,
|
|
17768
|
-
eventType:
|
|
17778
|
+
eventType: k,
|
|
17769
17779
|
handler: I,
|
|
17770
17780
|
options: Y
|
|
17771
17781
|
});
|
|
@@ -17776,9 +17786,9 @@ function mC(t, e) {
|
|
|
17776
17786
|
passive: !0
|
|
17777
17787
|
}), Ye("touchend", Jn, {
|
|
17778
17788
|
passive: !0
|
|
17779
|
-
})), UO(y.props.trigger).forEach(function(
|
|
17780
|
-
if (
|
|
17781
|
-
switch (Ye(
|
|
17789
|
+
})), UO(y.props.trigger).forEach(function(k) {
|
|
17790
|
+
if (k !== "manual")
|
|
17791
|
+
switch (Ye(k, xr), k) {
|
|
17782
17792
|
case "mouseenter":
|
|
17783
17793
|
Ye("mouseleave", Jn);
|
|
17784
17794
|
break;
|
|
@@ -17792,23 +17802,23 @@ function mC(t, e) {
|
|
|
17792
17802
|
});
|
|
17793
17803
|
}
|
|
17794
17804
|
function vt() {
|
|
17795
|
-
h.forEach(function(
|
|
17796
|
-
var I =
|
|
17805
|
+
h.forEach(function(k) {
|
|
17806
|
+
var I = k.node, Y = k.eventType, Q = k.handler, te = k.options;
|
|
17797
17807
|
I.removeEventListener(Y, Q, te);
|
|
17798
17808
|
}), h = [];
|
|
17799
17809
|
}
|
|
17800
|
-
function xr(
|
|
17810
|
+
function xr(k) {
|
|
17801
17811
|
var I, Y = !1;
|
|
17802
|
-
if (!(!y.state.isEnabled || En(
|
|
17812
|
+
if (!(!y.state.isEnabled || En(k) || a)) {
|
|
17803
17813
|
var Q = ((I = c) == null ? void 0 : I.type) === "focus";
|
|
17804
|
-
c =
|
|
17805
|
-
return te(
|
|
17806
|
-
}),
|
|
17814
|
+
c = k, g = k.currentTarget, lt(), !y.state.isVisible && GO(k) && eo.forEach(function(te) {
|
|
17815
|
+
return te(k);
|
|
17816
|
+
}), k.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || o) && y.props.hideOnClick !== !1 && y.state.isVisible ? Y = !0 : An(k), k.type === "click" && (o = !Y), Y && !Q && dn(k);
|
|
17807
17817
|
}
|
|
17808
17818
|
}
|
|
17809
|
-
function Gr(
|
|
17810
|
-
var I =
|
|
17811
|
-
if (!(
|
|
17819
|
+
function Gr(k) {
|
|
17820
|
+
var I = k.target, Y = j().contains(I) || b.contains(I);
|
|
17821
|
+
if (!(k.type === "mousemove" && Y)) {
|
|
17812
17822
|
var Q = cn().concat(b).map(function(te) {
|
|
17813
17823
|
var le, xe = te._tippy, Ve = (le = xe.popperInstance) == null ? void 0 : le.state;
|
|
17814
17824
|
return Ve ? {
|
|
@@ -17817,31 +17827,31 @@ function mC(t, e) {
|
|
|
17817
17827
|
props: n
|
|
17818
17828
|
} : null;
|
|
17819
17829
|
}).filter(Boolean);
|
|
17820
|
-
eC(Q,
|
|
17830
|
+
eC(Q, k) && (yt(), dn(k));
|
|
17821
17831
|
}
|
|
17822
17832
|
}
|
|
17823
|
-
function Jn(
|
|
17824
|
-
var I = En(
|
|
17833
|
+
function Jn(k) {
|
|
17834
|
+
var I = En(k) || y.props.trigger.indexOf("click") >= 0 && o;
|
|
17825
17835
|
if (!I) {
|
|
17826
17836
|
if (y.props.interactive) {
|
|
17827
|
-
y.hideWithInteractivity(
|
|
17837
|
+
y.hideWithInteractivity(k);
|
|
17828
17838
|
return;
|
|
17829
17839
|
}
|
|
17830
|
-
dn(
|
|
17840
|
+
dn(k);
|
|
17831
17841
|
}
|
|
17832
17842
|
}
|
|
17833
|
-
function Gn(
|
|
17834
|
-
y.props.trigger.indexOf("focusin") < 0 &&
|
|
17843
|
+
function Gn(k) {
|
|
17844
|
+
y.props.trigger.indexOf("focusin") < 0 && k.target !== j() || y.props.interactive && k.relatedTarget && b.contains(k.relatedTarget) || dn(k);
|
|
17835
17845
|
}
|
|
17836
|
-
function En(
|
|
17837
|
-
return pn.isTouch ? oe() !==
|
|
17846
|
+
function En(k) {
|
|
17847
|
+
return pn.isTouch ? oe() !== k.type.indexOf("touch") >= 0 : !1;
|
|
17838
17848
|
}
|
|
17839
17849
|
function Gt() {
|
|
17840
17850
|
Ft();
|
|
17841
|
-
var
|
|
17851
|
+
var k = y.props, I = k.popperOptions, Y = k.placement, Q = k.offset, te = k.getReferenceClientRect, le = k.moveTransition, xe = E() ? $l(b).arrow : null, Ve = te ? {
|
|
17842
17852
|
getBoundingClientRect: te,
|
|
17843
17853
|
contextElement: te.contextElement || j()
|
|
17844
|
-
} : t,
|
|
17854
|
+
} : t, ct = {
|
|
17845
17855
|
name: "$$tippy",
|
|
17846
17856
|
enabled: !0,
|
|
17847
17857
|
phase: "beforeWrite",
|
|
@@ -17880,7 +17890,7 @@ function mC(t, e) {
|
|
|
17880
17890
|
options: {
|
|
17881
17891
|
adaptive: !le
|
|
17882
17892
|
}
|
|
17883
|
-
},
|
|
17893
|
+
}, ct];
|
|
17884
17894
|
E() && xe && Dt.push({
|
|
17885
17895
|
name: "arrow",
|
|
17886
17896
|
options: {
|
|
@@ -17897,8 +17907,8 @@ function mC(t, e) {
|
|
|
17897
17907
|
y.popperInstance && (y.popperInstance.destroy(), y.popperInstance = null);
|
|
17898
17908
|
}
|
|
17899
17909
|
function zt() {
|
|
17900
|
-
var
|
|
17901
|
-
y.props.interactive &&
|
|
17910
|
+
var k = y.props.appendTo, I, Y = j();
|
|
17911
|
+
y.props.interactive && k === Bp || k === "parent" ? I = Y.parentNode : I = Lp(k, [Y]), I.contains(b) || I.appendChild(b), y.state.isMounted = !0, Gt(), process.env.NODE_ENV !== "production" && Rn(y.props.interactive && k === _t.appendTo && Y.nextElementSibling !== b, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
|
17902
17912
|
|
|
17903
17913
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
17904
17914
|
|
|
@@ -17909,19 +17919,19 @@ function mC(t, e) {
|
|
|
17909
17919
|
function cn() {
|
|
17910
17920
|
return Io(b.querySelectorAll("[data-tippy-root]"));
|
|
17911
17921
|
}
|
|
17912
|
-
function An(
|
|
17913
|
-
y.clearDelayTimeouts(),
|
|
17922
|
+
function An(k) {
|
|
17923
|
+
y.clearDelayTimeouts(), k && ae("onTrigger", [y, k]), ut();
|
|
17914
17924
|
var I = C(!0), Y = H(), Q = Y[0], te = Y[1];
|
|
17915
17925
|
pn.isTouch && Q === "hold" && te && (I = te), I ? r = setTimeout(function() {
|
|
17916
17926
|
y.show();
|
|
17917
17927
|
}, I) : y.show();
|
|
17918
17928
|
}
|
|
17919
|
-
function dn(
|
|
17920
|
-
if (y.clearDelayTimeouts(), ae("onUntrigger", [y,
|
|
17929
|
+
function dn(k) {
|
|
17930
|
+
if (y.clearDelayTimeouts(), ae("onUntrigger", [y, k]), !y.state.isVisible) {
|
|
17921
17931
|
L();
|
|
17922
17932
|
return;
|
|
17923
17933
|
}
|
|
17924
|
-
if (!(y.props.trigger.indexOf("mouseenter") >= 0 && y.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(
|
|
17934
|
+
if (!(y.props.trigger.indexOf("mouseenter") >= 0 && y.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(k.type) >= 0 && o)) {
|
|
17925
17935
|
var I = C(!1);
|
|
17926
17936
|
I ? i = setTimeout(function() {
|
|
17927
17937
|
y.state.isVisible && y.hide();
|
|
@@ -17939,29 +17949,29 @@ function mC(t, e) {
|
|
|
17939
17949
|
function Zr() {
|
|
17940
17950
|
clearTimeout(r), clearTimeout(i), cancelAnimationFrame(s);
|
|
17941
17951
|
}
|
|
17942
|
-
function Xr(
|
|
17952
|
+
function Xr(k) {
|
|
17943
17953
|
if (process.env.NODE_ENV !== "production" && Rn(y.state.isDestroyed, ri("setProps")), !y.state.isDestroyed) {
|
|
17944
|
-
ae("onBeforeUpdate", [y,
|
|
17945
|
-
var I = y.props, Y = Wd(t, Object.assign({}, I, Bd(
|
|
17954
|
+
ae("onBeforeUpdate", [y, k]), vt();
|
|
17955
|
+
var I = y.props, Y = Wd(t, Object.assign({}, I, Bd(k), {
|
|
17946
17956
|
ignoreAttributes: !0
|
|
17947
17957
|
}));
|
|
17948
17958
|
y.props = Y, Ue(), I.interactiveDebounce !== Y.interactiveDebounce && (yt(), p = $d(Gr, Y.interactiveDebounce)), I.triggerTarget && !Y.triggerTarget ? ai(I.triggerTarget).forEach(function(Q) {
|
|
17949
17959
|
Q.removeAttribute("aria-expanded");
|
|
17950
|
-
}) : Y.triggerTarget && t.removeAttribute("aria-expanded"),
|
|
17960
|
+
}) : Y.triggerTarget && t.removeAttribute("aria-expanded"), lt(), J(), N && N(I, Y), y.popperInstance && (Gt(), cn().forEach(function(Q) {
|
|
17951
17961
|
requestAnimationFrame(Q._tippy.popperInstance.forceUpdate);
|
|
17952
|
-
})), ae("onAfterUpdate", [y,
|
|
17962
|
+
})), ae("onAfterUpdate", [y, k]);
|
|
17953
17963
|
}
|
|
17954
17964
|
}
|
|
17955
|
-
function Qr(
|
|
17965
|
+
function Qr(k) {
|
|
17956
17966
|
y.setProps({
|
|
17957
|
-
content:
|
|
17967
|
+
content: k
|
|
17958
17968
|
});
|
|
17959
17969
|
}
|
|
17960
17970
|
function S() {
|
|
17961
17971
|
process.env.NODE_ENV !== "production" && Rn(y.state.isDestroyed, ri("show"));
|
|
17962
|
-
var
|
|
17963
|
-
if (!(
|
|
17964
|
-
if (y.state.isVisible = !0, E() && (b.style.visibility = "visible"), J(),
|
|
17972
|
+
var k = y.state.isVisible, I = y.state.isDestroyed, Y = !y.state.isEnabled, Q = pn.isTouch && !y.props.touch, te = Ha(y.props.duration, 0, _t.duration);
|
|
17973
|
+
if (!(k || I || Y || Q) && !j().hasAttribute("disabled") && (ae("onShow", [y], !1), y.props.onShow(y) !== !1)) {
|
|
17974
|
+
if (y.state.isVisible = !0, E() && (b.style.visibility = "visible"), J(), ut(), y.state.isMounted || (b.style.transition = "none"), E()) {
|
|
17965
17975
|
var le = Z(), xe = le.box, Ve = le.content;
|
|
17966
17976
|
Ya([xe, Ve], 0);
|
|
17967
17977
|
}
|
|
@@ -17972,7 +17982,7 @@ function mC(t, e) {
|
|
|
17972
17982
|
var Mr = Z(), Xn = Mr.box, fn = Mr.content;
|
|
17973
17983
|
Ya([Xn, fn], te), Ld([Xn, fn], "visible");
|
|
17974
17984
|
}
|
|
17975
|
-
je(),
|
|
17985
|
+
je(), lt(), Vd(qa, y), (Dt = y.popperInstance) == null || Dt.forceUpdate(), ae("onMount", [y]), y.props.animation && E() && ke(te, function() {
|
|
17976
17986
|
y.state.isShown = !0, ae("onShown", [y]);
|
|
17977
17987
|
});
|
|
17978
17988
|
}
|
|
@@ -17981,23 +17991,23 @@ function mC(t, e) {
|
|
|
17981
17991
|
}
|
|
17982
17992
|
function x() {
|
|
17983
17993
|
process.env.NODE_ENV !== "production" && Rn(y.state.isDestroyed, ri("hide"));
|
|
17984
|
-
var
|
|
17985
|
-
if (!(
|
|
17994
|
+
var k = !y.state.isVisible, I = y.state.isDestroyed, Y = !y.state.isEnabled, Q = Ha(y.props.duration, 1, _t.duration);
|
|
17995
|
+
if (!(k || I || Y) && (ae("onHide", [y], !1), y.props.onHide(y) !== !1)) {
|
|
17986
17996
|
if (y.state.isVisible = !1, y.state.isShown = !1, u = !1, o = !1, E() && (b.style.visibility = "hidden"), yt(), L(), J(!0), E()) {
|
|
17987
17997
|
var te = Z(), le = te.box, xe = te.content;
|
|
17988
17998
|
y.props.animation && (Ya([le, xe], Q), Ld([le, xe], "hidden"));
|
|
17989
17999
|
}
|
|
17990
|
-
je(),
|
|
18000
|
+
je(), lt(), y.props.animation ? E() && re(Q, y.unmount) : y.unmount();
|
|
17991
18001
|
}
|
|
17992
18002
|
}
|
|
17993
|
-
function A(
|
|
17994
|
-
process.env.NODE_ENV !== "production" && Rn(y.state.isDestroyed, ri("hideWithInteractivity")), q().addEventListener("mousemove", p), Vd(eo, p), p(
|
|
18003
|
+
function A(k) {
|
|
18004
|
+
process.env.NODE_ENV !== "production" && Rn(y.state.isDestroyed, ri("hideWithInteractivity")), q().addEventListener("mousemove", p), Vd(eo, p), p(k);
|
|
17995
18005
|
}
|
|
17996
18006
|
function W() {
|
|
17997
|
-
process.env.NODE_ENV !== "production" && Rn(y.state.isDestroyed, ri("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (Ft(), cn().forEach(function(
|
|
17998
|
-
|
|
17999
|
-
}), b.parentNode && b.parentNode.removeChild(b), qa = qa.filter(function(
|
|
18000
|
-
return
|
|
18007
|
+
process.env.NODE_ENV !== "production" && Rn(y.state.isDestroyed, ri("unmount")), y.state.isVisible && y.hide(), y.state.isMounted && (Ft(), cn().forEach(function(k) {
|
|
18008
|
+
k._tippy.unmount();
|
|
18009
|
+
}), b.parentNode && b.parentNode.removeChild(b), qa = qa.filter(function(k) {
|
|
18010
|
+
return k !== y;
|
|
18001
18011
|
}), y.state.isMounted = !1, ae("onHidden", [y]));
|
|
18002
18012
|
}
|
|
18003
18013
|
function ee() {
|
|
@@ -18080,7 +18090,7 @@ class gC {
|
|
|
18080
18090
|
if (g || !l && !u)
|
|
18081
18091
|
return;
|
|
18082
18092
|
this.createTooltip();
|
|
18083
|
-
const { ranges:
|
|
18093
|
+
const { ranges: w } = m, O = Math.min(...w.map((b) => b.$from.pos)), y = Math.max(...w.map((b) => b.$to.pos));
|
|
18084
18094
|
if (!((d = this.shouldShow) === null || d === void 0 ? void 0 : d.call(this, {
|
|
18085
18095
|
editor: this.editor,
|
|
18086
18096
|
view: a,
|
|
@@ -18144,7 +18154,7 @@ const Up = (t) => new gt({
|
|
|
18144
18154
|
key: typeof t.pluginKey == "string" ? new ln(t.pluginKey) : t.pluginKey,
|
|
18145
18155
|
view: (e) => new gC({ view: e, ...t })
|
|
18146
18156
|
});
|
|
18147
|
-
|
|
18157
|
+
ot.create({
|
|
18148
18158
|
name: "bubbleMenu",
|
|
18149
18159
|
addOptions() {
|
|
18150
18160
|
return {
|
|
@@ -18236,7 +18246,7 @@ const qp = (t) => new gt({
|
|
|
18236
18246
|
key: typeof t.pluginKey == "string" ? new ln(t.pluginKey) : t.pluginKey,
|
|
18237
18247
|
view: (e) => new yC({ view: e, ...t })
|
|
18238
18248
|
});
|
|
18239
|
-
|
|
18249
|
+
ot.create({
|
|
18240
18250
|
name: "floatingMenu",
|
|
18241
18251
|
addOptions() {
|
|
18242
18252
|
return {
|
|
@@ -18940,7 +18950,7 @@ class BC {
|
|
|
18940
18950
|
(e.target == this.editorView.dom || !this.editorView.dom.contains(e.relatedTarget)) && this.setCursor(null);
|
|
18941
18951
|
}
|
|
18942
18952
|
}
|
|
18943
|
-
const LC =
|
|
18953
|
+
const LC = ot.create({
|
|
18944
18954
|
name: "dropCursor",
|
|
18945
18955
|
addOptions() {
|
|
18946
18956
|
return {
|
|
@@ -19137,9 +19147,9 @@ function YC(t, e) {
|
|
|
19137
19147
|
let { $from: n } = t.state.selection, r = n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);
|
|
19138
19148
|
if (!r)
|
|
19139
19149
|
return !1;
|
|
19140
|
-
let i =
|
|
19150
|
+
let i = P.empty;
|
|
19141
19151
|
for (let o = r.length - 1; o >= 0; o--)
|
|
19142
|
-
i =
|
|
19152
|
+
i = P.from(r[o].createAndFill(null, i));
|
|
19143
19153
|
let s = t.state.tr.replace(n.pos, n.pos, new z(i, 0, 0));
|
|
19144
19154
|
return s.setSelection(se.near(s.doc.resolve(n.pos + 1))), t.dispatch(s), !1;
|
|
19145
19155
|
}
|
|
@@ -19149,7 +19159,7 @@ function UC(t) {
|
|
|
19149
19159
|
let e = document.createElement("div");
|
|
19150
19160
|
return e.className = "ProseMirror-gapcursor", Fe.create(t.doc, [Pt.widget(t.selection.head, e, { key: "gapcursor" })]);
|
|
19151
19161
|
}
|
|
19152
|
-
const qC =
|
|
19162
|
+
const qC = ot.create({
|
|
19153
19163
|
name: "gapCursor",
|
|
19154
19164
|
addProseMirrorPlugins() {
|
|
19155
19165
|
return [
|
|
@@ -19602,7 +19612,7 @@ function Jp(t, e) {
|
|
|
19602
19612
|
return !0;
|
|
19603
19613
|
};
|
|
19604
19614
|
}
|
|
19605
|
-
const Gp = Jp(!1, !0), Zp = Jp(!0, !0), sT =
|
|
19615
|
+
const Gp = Jp(!1, !0), Zp = Jp(!0, !0), sT = ot.create({
|
|
19606
19616
|
name: "history",
|
|
19607
19617
|
addOptions() {
|
|
19608
19618
|
return {
|
|
@@ -19966,14 +19976,14 @@ const Gp = Jp(!1, !0), Zp = Jp(!0, !0), sT = it.create({
|
|
|
19966
19976
|
}), bT = Bt.create({
|
|
19967
19977
|
name: "text",
|
|
19968
19978
|
group: "inline"
|
|
19969
|
-
}), wT =
|
|
19979
|
+
}), wT = ot.create({
|
|
19970
19980
|
name: "starterKit",
|
|
19971
19981
|
addExtensions() {
|
|
19972
19982
|
var t, e, n, r, i, s, o, a, l, u, c, d, f, h, p, g, m, v;
|
|
19973
|
-
const
|
|
19974
|
-
return this.options.blockquote !== !1 &&
|
|
19983
|
+
const w = [];
|
|
19984
|
+
return this.options.blockquote !== !1 && w.push(xC.configure((t = this.options) === null || t === void 0 ? void 0 : t.blockquote)), this.options.bold !== !1 && w.push(TC.configure((e = this.options) === null || e === void 0 ? void 0 : e.bold)), this.options.bulletList !== !1 && w.push(EC.configure((n = this.options) === null || n === void 0 ? void 0 : n.bulletList)), this.options.code !== !1 && w.push(_C.configure((r = this.options) === null || r === void 0 ? void 0 : r.code)), this.options.codeBlock !== !1 && w.push(RC.configure((i = this.options) === null || i === void 0 ? void 0 : i.codeBlock)), this.options.document !== !1 && w.push($C.configure((s = this.options) === null || s === void 0 ? void 0 : s.document)), this.options.dropcursor !== !1 && w.push(LC.configure((o = this.options) === null || o === void 0 ? void 0 : o.dropcursor)), this.options.gapcursor !== !1 && w.push(qC.configure((a = this.options) === null || a === void 0 ? void 0 : a.gapcursor)), this.options.hardBreak !== !1 && w.push(KC.configure((l = this.options) === null || l === void 0 ? void 0 : l.hardBreak)), this.options.heading !== !1 && w.push(JC.configure((u = this.options) === null || u === void 0 ? void 0 : u.heading)), this.options.history !== !1 && w.push(sT.configure((c = this.options) === null || c === void 0 ? void 0 : c.history)), this.options.horizontalRule !== !1 && w.push(oT.configure((d = this.options) === null || d === void 0 ? void 0 : d.horizontalRule)), this.options.italic !== !1 && w.push(dT.configure((f = this.options) === null || f === void 0 ? void 0 : f.italic)), this.options.listItem !== !1 && w.push(fT.configure((h = this.options) === null || h === void 0 ? void 0 : h.listItem)), this.options.orderedList !== !1 && w.push(pT.configure((p = this.options) === null || p === void 0 ? void 0 : p.orderedList)), this.options.paragraph !== !1 && w.push(mT.configure((g = this.options) === null || g === void 0 ? void 0 : g.paragraph)), this.options.strike !== !1 && w.push(vT.configure((m = this.options) === null || m === void 0 ? void 0 : m.strike)), this.options.text !== !1 && w.push(bT.configure((v = this.options) === null || v === void 0 ? void 0 : v.text)), w;
|
|
19975
19985
|
}
|
|
19976
|
-
}), kT =
|
|
19986
|
+
}), kT = ot.create({
|
|
19977
19987
|
name: "placeholder",
|
|
19978
19988
|
addOptions() {
|
|
19979
19989
|
return {
|
|
@@ -20028,7 +20038,7 @@ const Gp = Jp(!1, !0), Zp = Jp(!0, !0), sT = it.create({
|
|
|
20028
20038
|
MT
|
|
20029
20039
|
];
|
|
20030
20040
|
function CT(t, e) {
|
|
20031
|
-
return T(),
|
|
20041
|
+
return T(), _("svg", ST, OT);
|
|
20032
20042
|
}
|
|
20033
20043
|
const TT = /* @__PURE__ */ Ae(xT, [["render", CT]]), DT = {}, ET = {
|
|
20034
20044
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -20038,7 +20048,7 @@ const TT = /* @__PURE__ */ Ae(xT, [["render", CT]]), DT = {}, ET = {
|
|
|
20038
20048
|
AT
|
|
20039
20049
|
];
|
|
20040
20050
|
function _T(t, e) {
|
|
20041
|
-
return T(),
|
|
20051
|
+
return T(), _("svg", ET, NT);
|
|
20042
20052
|
}
|
|
20043
20053
|
const PT = /* @__PURE__ */ Ae(DT, [["render", _T]]), IT = {}, RT = {
|
|
20044
20054
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -20052,7 +20062,7 @@ const PT = /* @__PURE__ */ Ae(DT, [["render", _T]]), IT = {}, RT = {
|
|
|
20052
20062
|
$T
|
|
20053
20063
|
];
|
|
20054
20064
|
function BT(t, e) {
|
|
20055
|
-
return T(),
|
|
20065
|
+
return T(), _("svg", RT, VT);
|
|
20056
20066
|
}
|
|
20057
20067
|
const LT = /* @__PURE__ */ Ae(IT, [["render", BT]]), FT = {}, zT = {
|
|
20058
20068
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -20066,7 +20076,7 @@ const LT = /* @__PURE__ */ Ae(IT, [["render", BT]]), FT = {}, zT = {
|
|
|
20066
20076
|
jT
|
|
20067
20077
|
];
|
|
20068
20078
|
function HT(t, e) {
|
|
20069
|
-
return T(),
|
|
20079
|
+
return T(), _("svg", zT, WT);
|
|
20070
20080
|
}
|
|
20071
20081
|
const YT = /* @__PURE__ */ Ae(FT, [["render", HT]]), UT = {}, qT = {
|
|
20072
20082
|
fill: "#000000",
|
|
@@ -20081,7 +20091,7 @@ const YT = /* @__PURE__ */ Ae(FT, [["render", HT]]), UT = {}, qT = {
|
|
|
20081
20091
|
KT
|
|
20082
20092
|
];
|
|
20083
20093
|
function GT(t, e) {
|
|
20084
|
-
return T(),
|
|
20094
|
+
return T(), _("svg", qT, JT);
|
|
20085
20095
|
}
|
|
20086
20096
|
const ZT = /* @__PURE__ */ Ae(UT, [["render", GT]]), XT = {}, QT = {
|
|
20087
20097
|
fill: "#000000",
|
|
@@ -20094,7 +20104,7 @@ const ZT = /* @__PURE__ */ Ae(UT, [["render", GT]]), XT = {}, QT = {
|
|
|
20094
20104
|
e2
|
|
20095
20105
|
];
|
|
20096
20106
|
function n2(t, e) {
|
|
20097
|
-
return T(),
|
|
20107
|
+
return T(), _("svg", QT, t2);
|
|
20098
20108
|
}
|
|
20099
20109
|
const r2 = /* @__PURE__ */ Ae(XT, [["render", n2]]), i2 = {}, s2 = {
|
|
20100
20110
|
fill: "#000000",
|
|
@@ -20117,7 +20127,7 @@ const r2 = /* @__PURE__ */ Ae(XT, [["render", n2]]), i2 = {}, s2 = {
|
|
|
20117
20127
|
o2
|
|
20118
20128
|
];
|
|
20119
20129
|
function l2(t, e) {
|
|
20120
|
-
return T(),
|
|
20130
|
+
return T(), _("svg", s2, a2);
|
|
20121
20131
|
}
|
|
20122
20132
|
const u2 = /* @__PURE__ */ Ae(i2, [["render", l2]]), c2 = {}, d2 = {
|
|
20123
20133
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -20133,7 +20143,7 @@ const u2 = /* @__PURE__ */ Ae(i2, [["render", l2]]), c2 = {}, d2 = {
|
|
|
20133
20143
|
f2
|
|
20134
20144
|
];
|
|
20135
20145
|
function p2(t, e) {
|
|
20136
|
-
return T(),
|
|
20146
|
+
return T(), _("svg", d2, h2);
|
|
20137
20147
|
}
|
|
20138
20148
|
const m2 = /* @__PURE__ */ Ae(c2, [["render", p2]]), g2 = { class: "py-1 px-1 border-b" }, y2 = { class: "flex gap-px" }, v2 = ["onClick"], b2 = {
|
|
20139
20149
|
key: 1,
|
|
@@ -20187,13 +20197,13 @@ const m2 = /* @__PURE__ */ Ae(c2, [["render", p2]]), g2 = { class: "py-1 px-1 bo
|
|
|
20187
20197
|
function l(u, c, d, f) {
|
|
20188
20198
|
return f ? c === "chain" ? d ? !o.value.can().chain().focus()[u](d).run() : !o.value.can().chain().focus()[u]().run() : !o.value.can()[u]().run() : !1;
|
|
20189
20199
|
}
|
|
20190
|
-
return (u, c) => V(o) ? (T(),
|
|
20200
|
+
return (u, c) => V(o) ? (T(), _("div", {
|
|
20191
20201
|
key: 0,
|
|
20192
20202
|
class: ne(["pt-px relative flex flex-col rounded border", r[V(ve).theme]])
|
|
20193
20203
|
}, [
|
|
20194
20204
|
B("div", g2, [
|
|
20195
20205
|
B("div", y2, [
|
|
20196
|
-
(T(),
|
|
20206
|
+
(T(), _(rt, null, At(i, (d) => B("div", {
|
|
20197
20207
|
key: d.method,
|
|
20198
20208
|
class: ne(["w-8 h-8 flex items-center justify-center text-xs rounded", {
|
|
20199
20209
|
"cursor-pointer": !l(d.method, d.type, d.params, d.disableCheck),
|
|
@@ -20204,7 +20214,7 @@ const m2 = /* @__PURE__ */ Ae(c2, [["render", p2]]), g2 = { class: "py-1 px-1 bo
|
|
|
20204
20214
|
d.icon ? (T(), $e(Ds(d.icon), {
|
|
20205
20215
|
key: 0,
|
|
20206
20216
|
class: ne(["", { "w-3 h-3": d.smallIcon, "w-4 h-4": !d.smallIcon }])
|
|
20207
|
-
}, null, 8, ["class"])) : (T(),
|
|
20217
|
+
}, null, 8, ["class"])) : (T(), _("span", b2, Oe(V(cl).capitalize(d.label)), 1))
|
|
20208
20218
|
], 10, v2)), 64))
|
|
20209
20219
|
])
|
|
20210
20220
|
]),
|
|
@@ -20222,7 +20232,7 @@ const m2 = /* @__PURE__ */ Ae(c2, [["render", p2]]), g2 = { class: "py-1 px-1 bo
|
|
|
20222
20232
|
error: Boolean
|
|
20223
20233
|
},
|
|
20224
20234
|
setup(t) {
|
|
20225
|
-
return (e, n) => (T(),
|
|
20235
|
+
return (e, n) => (T(), _("span", {
|
|
20226
20236
|
class: ne(["inline-flex items-center justify-center border font-medium rounded-md h-6 text-xs px-2", {
|
|
20227
20237
|
"bg-green-50 border-green-200 text-green-700 dark:border-green-600/30 dark:bg-green-800 dark:bg-opacity-20 dark:text-opacity-85 dark:text-green-500": t.success,
|
|
20228
20238
|
"bg-yellow-50 border-yellow-200 text-yellow-700 dark:border-yellow-600/30 dark:bg-yellow-800 dark:bg-opacity-10 dark:text-opacity-85 dark:text-yellow-500": t.warning,
|
|
@@ -20632,7 +20642,7 @@ function me(t) {
|
|
|
20632
20642
|
return e !== 0 && isFinite(e) && (n = Wt(e)), n;
|
|
20633
20643
|
}
|
|
20634
20644
|
var Fl = {};
|
|
20635
|
-
function
|
|
20645
|
+
function Ce(t, e) {
|
|
20636
20646
|
var n, r = e, i;
|
|
20637
20647
|
for (typeof t == "string" && (t = [t]), Un(e) && (r = function(s, o) {
|
|
20638
20648
|
o[e] = me(s);
|
|
@@ -20640,7 +20650,7 @@ function Oe(t, e) {
|
|
|
20640
20650
|
Fl[t[n]] = r;
|
|
20641
20651
|
}
|
|
20642
20652
|
function js(t, e) {
|
|
20643
|
-
|
|
20653
|
+
Ce(t, function(n, r, i, s) {
|
|
20644
20654
|
i._w = i._w || {}, e(n, i._w, i, s);
|
|
20645
20655
|
});
|
|
20646
20656
|
}
|
|
@@ -20650,7 +20660,7 @@ function K2(t, e, n) {
|
|
|
20650
20660
|
function pa(t) {
|
|
20651
20661
|
return t % 4 === 0 && t % 100 !== 0 || t % 400 === 0;
|
|
20652
20662
|
}
|
|
20653
|
-
var
|
|
20663
|
+
var st = 0, Ln = 1, gn = 2, We = 3, en = 4, Fn = 5, Pr = 6, J2 = 7, G2 = 8;
|
|
20654
20664
|
G("Y", 0, 0, function() {
|
|
20655
20665
|
var t = this.year();
|
|
20656
20666
|
return t <= 9999 ? Cn(t, 4) : "+" + t;
|
|
@@ -20666,15 +20676,15 @@ U("YY", Ne, Lt);
|
|
|
20666
20676
|
U("YYYY", Vu, $u);
|
|
20667
20677
|
U("YYYYY", da, ua);
|
|
20668
20678
|
U("YYYYYY", da, ua);
|
|
20669
|
-
|
|
20670
|
-
|
|
20671
|
-
e[
|
|
20679
|
+
Ce(["YYYYY", "YYYYYY"], st);
|
|
20680
|
+
Ce("YYYY", function(t, e) {
|
|
20681
|
+
e[st] = t.length === 2 ? M.parseTwoDigitYear(t) : me(t);
|
|
20672
20682
|
});
|
|
20673
|
-
|
|
20674
|
-
e[
|
|
20683
|
+
Ce("YY", function(t, e) {
|
|
20684
|
+
e[st] = M.parseTwoDigitYear(t);
|
|
20675
20685
|
});
|
|
20676
|
-
|
|
20677
|
-
e[
|
|
20686
|
+
Ce("Y", function(t, e) {
|
|
20687
|
+
e[st] = parseInt(t, 10);
|
|
20678
20688
|
});
|
|
20679
20689
|
function ls(t) {
|
|
20680
20690
|
return pa(t) ? 366 : 365;
|
|
@@ -20785,10 +20795,10 @@ U("MMM", function(t, e) {
|
|
|
20785
20795
|
U("MMMM", function(t, e) {
|
|
20786
20796
|
return e.monthsRegex(t);
|
|
20787
20797
|
});
|
|
20788
|
-
|
|
20798
|
+
Ce(["M", "MM"], function(t, e) {
|
|
20789
20799
|
e[Ln] = me(t) - 1;
|
|
20790
20800
|
});
|
|
20791
|
-
|
|
20801
|
+
Ce(["MMM", "MMMM"], function(t, e, n, r) {
|
|
20792
20802
|
var i = n._locale.monthsParse(t, r, n._strict);
|
|
20793
20803
|
i != null ? e[Ln] = i : ue(n).invalidMonth = t;
|
|
20794
20804
|
});
|
|
@@ -21117,30 +21127,30 @@ U("hmm", sm);
|
|
|
21117
21127
|
U("hmmss", om);
|
|
21118
21128
|
U("Hmm", sm);
|
|
21119
21129
|
U("Hmmss", om);
|
|
21120
|
-
|
|
21121
|
-
|
|
21130
|
+
Ce(["H", "HH"], We);
|
|
21131
|
+
Ce(["k", "kk"], function(t, e, n) {
|
|
21122
21132
|
var r = me(t);
|
|
21123
21133
|
e[We] = r === 24 ? 0 : r;
|
|
21124
21134
|
});
|
|
21125
|
-
|
|
21135
|
+
Ce(["a", "A"], function(t, e, n) {
|
|
21126
21136
|
n._isPm = n._locale.isPM(t), n._meridiem = t;
|
|
21127
21137
|
});
|
|
21128
|
-
|
|
21138
|
+
Ce(["h", "hh"], function(t, e, n) {
|
|
21129
21139
|
e[We] = me(t), ue(n).bigHour = !0;
|
|
21130
21140
|
});
|
|
21131
|
-
|
|
21141
|
+
Ce("hmm", function(t, e, n) {
|
|
21132
21142
|
var r = t.length - 2;
|
|
21133
21143
|
e[We] = me(t.substr(0, r)), e[en] = me(t.substr(r)), ue(n).bigHour = !0;
|
|
21134
21144
|
});
|
|
21135
|
-
|
|
21145
|
+
Ce("hmmss", function(t, e, n) {
|
|
21136
21146
|
var r = t.length - 4, i = t.length - 2;
|
|
21137
21147
|
e[We] = me(t.substr(0, r)), e[en] = me(t.substr(r, 2)), e[Fn] = me(t.substr(i)), ue(n).bigHour = !0;
|
|
21138
21148
|
});
|
|
21139
|
-
|
|
21149
|
+
Ce("Hmm", function(t, e, n) {
|
|
21140
21150
|
var r = t.length - 2;
|
|
21141
21151
|
e[We] = me(t.substr(0, r)), e[en] = me(t.substr(r));
|
|
21142
21152
|
});
|
|
21143
|
-
|
|
21153
|
+
Ce("Hmmss", function(t, e, n) {
|
|
21144
21154
|
var r = t.length - 4, i = t.length - 2;
|
|
21145
21155
|
e[We] = me(t.substr(0, r)), e[en] = me(t.substr(r, 2)), e[Fn] = me(t.substr(i));
|
|
21146
21156
|
});
|
|
@@ -21256,7 +21266,7 @@ function YD() {
|
|
|
21256
21266
|
}
|
|
21257
21267
|
function Hu(t) {
|
|
21258
21268
|
var e, n = t._a;
|
|
21259
|
-
return n && ue(t).overflow === -2 && (e = n[Ln] < 0 || n[Ln] > 11 ? Ln : n[gn] < 1 || n[gn] > Lu(n[
|
|
21269
|
+
return n && ue(t).overflow === -2 && (e = n[Ln] < 0 || n[Ln] > 11 ? Ln : n[gn] < 1 || n[gn] > Lu(n[st], n[Ln]) ? gn : n[We] < 0 || n[We] > 24 || n[We] === 24 && (n[en] !== 0 || n[Fn] !== 0 || n[Pr] !== 0) ? We : n[en] < 0 || n[en] > 59 ? en : n[Fn] < 0 || n[Fn] > 59 ? Fn : n[Pr] < 0 || n[Pr] > 999 ? Pr : -1, ue(t)._overflowDayOfYear && (e < st || e > gn) && (e = gn), ue(t)._overflowWeeks && e === -1 && (e = J2), ue(t)._overflowWeekday && e === -1 && (e = G2), ue(t).overflow = e), t;
|
|
21260
21270
|
}
|
|
21261
21271
|
var UD = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, qD = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, KD = /Z|[+-]\d\d(?::?\d\d)?/, ro = [
|
|
21262
21272
|
["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
|
|
@@ -21421,7 +21431,7 @@ function iE(t) {
|
|
|
21421
21431
|
function Yu(t) {
|
|
21422
21432
|
var e, n, r = [], i, s, o;
|
|
21423
21433
|
if (!t._d) {
|
|
21424
|
-
for (i = iE(t), t._w && t._a[gn] == null && t._a[Ln] == null && sE(t), t._dayOfYear != null && (o = li(t._a[
|
|
21434
|
+
for (i = iE(t), t._w && t._a[gn] == null && t._a[Ln] == null && sE(t), t._dayOfYear != null && (o = li(t._a[st], i[st]), (t._dayOfYear > ls(o) || t._dayOfYear === 0) && (ue(t)._overflowDayOfYear = !0), n = Os(o, 0, t._dayOfYear), t._a[Ln] = n.getUTCMonth(), t._a[gn] = n.getUTCDate()), e = 0; e < 3 && t._a[e] == null; ++e)
|
|
21425
21435
|
t._a[e] = r[e] = i[e];
|
|
21426
21436
|
for (; e < 7; e++)
|
|
21427
21437
|
t._a[e] = r[e] = t._a[e] == null ? e === 2 ? 1 : 0 : t._a[e];
|
|
@@ -21435,9 +21445,9 @@ function sE(t) {
|
|
|
21435
21445
|
var e, n, r, i, s, o, a, l, u;
|
|
21436
21446
|
e = t._w, e.GG != null || e.W != null || e.E != null ? (s = 1, o = 4, n = li(
|
|
21437
21447
|
e.GG,
|
|
21438
|
-
t._a[
|
|
21448
|
+
t._a[st],
|
|
21439
21449
|
Cs(Ee(), 1, 4).year
|
|
21440
|
-
), r = li(e.W, 1), i = li(e.E, 1), (i < 1 || i > 7) && (l = !0)) : (s = t._locale._week.dow, o = t._locale._week.doy, u = Cs(Ee(), s, o), n = li(e.gg, t._a[
|
|
21450
|
+
), r = li(e.W, 1), i = li(e.E, 1), (i < 1 || i > 7) && (l = !0)) : (s = t._locale._week.dow, o = t._locale._week.doy, u = Cs(Ee(), s, o), n = li(e.gg, t._a[st], u.year), r = li(e.w, u.week), e.d != null ? (i = e.d, (i < 0 || i > 6) && (l = !0)) : e.e != null ? (i = e.e + s, (e.e < 0 || e.e > 6) && (l = !0)) : i = s), r < 1 || r > Wn(n, s, o) ? ue(t)._overflowWeeks = !0 : l != null ? ue(t)._overflowWeekday = !0 : (a = pm(n, r, i, s, o), t._a[st] = a.year, t._dayOfYear = a.dayOfYear);
|
|
21441
21451
|
}
|
|
21442
21452
|
M.ISO_8601 = function() {
|
|
21443
21453
|
};
|
|
@@ -21462,7 +21472,7 @@ function Uu(t) {
|
|
|
21462
21472
|
t._locale,
|
|
21463
21473
|
t._a[We],
|
|
21464
21474
|
t._meridiem
|
|
21465
|
-
), u = ue(t).era, u !== null && (t._a[
|
|
21475
|
+
), u = ue(t).era, u !== null && (t._a[st] = t._locale.erasConvertYear(u, t._a[st])), Yu(t), Hu(t);
|
|
21466
21476
|
}
|
|
21467
21477
|
function oE(t, e, n) {
|
|
21468
21478
|
var r;
|
|
@@ -21599,7 +21609,7 @@ Mm("Z", ":");
|
|
|
21599
21609
|
Mm("ZZ", "");
|
|
21600
21610
|
U("Z", ha);
|
|
21601
21611
|
U("ZZ", ha);
|
|
21602
|
-
|
|
21612
|
+
Ce(["Z", "ZZ"], function(t, e, n) {
|
|
21603
21613
|
n._useUTC = !0, n._tzm = qu(ha, t);
|
|
21604
21614
|
});
|
|
21605
21615
|
var wE = /([\+\-]|\d\d)/gi;
|
|
@@ -22097,7 +22107,7 @@ U("NN", Ju);
|
|
|
22097
22107
|
U("NNN", Ju);
|
|
22098
22108
|
U("NNNN", CA);
|
|
22099
22109
|
U("NNNNN", TA);
|
|
22100
|
-
|
|
22110
|
+
Ce(
|
|
22101
22111
|
["N", "NN", "NNN", "NNNN", "NNNNN"],
|
|
22102
22112
|
function(t, e, n, r) {
|
|
22103
22113
|
var i = n._locale.erasParse(t, r, n._strict);
|
|
@@ -22109,10 +22119,10 @@ U("yy", Bi);
|
|
|
22109
22119
|
U("yyy", Bi);
|
|
22110
22120
|
U("yyyy", Bi);
|
|
22111
22121
|
U("yo", DA);
|
|
22112
|
-
|
|
22113
|
-
|
|
22122
|
+
Ce(["y", "yy", "yyy", "yyyy"], st);
|
|
22123
|
+
Ce(["yo"], function(t, e, n, r) {
|
|
22114
22124
|
var i;
|
|
22115
|
-
n._locale._eraYearOrdinalRegex && (i = t.match(n._locale._eraYearOrdinalRegex)), n._locale.eraYearOrdinalParse ? e[
|
|
22125
|
+
n._locale._eraYearOrdinalRegex && (i = t.match(n._locale._eraYearOrdinalRegex)), n._locale.eraYearOrdinalParse ? e[st] = n._locale.eraYearOrdinalParse(t, i) : e[st] = parseInt(t, 10);
|
|
22116
22126
|
});
|
|
22117
22127
|
function gA(t, e) {
|
|
22118
22128
|
var n, r, i, s = this._eras || qn("en")._eras;
|
|
@@ -22292,7 +22302,7 @@ function RA(t, e, n, r, i) {
|
|
|
22292
22302
|
}
|
|
22293
22303
|
G("Q", 0, "Qo", "quarter");
|
|
22294
22304
|
U("Q", rm);
|
|
22295
|
-
|
|
22305
|
+
Ce("Q", function(t, e) {
|
|
22296
22306
|
e[Ln] = (me(t) - 1) * 3;
|
|
22297
22307
|
});
|
|
22298
22308
|
function $A(t) {
|
|
@@ -22304,15 +22314,15 @@ U("DD", Ne, Lt);
|
|
|
22304
22314
|
U("Do", function(t, e) {
|
|
22305
22315
|
return t ? e._dayOfMonthOrdinalParse || e._ordinalParse : e._dayOfMonthOrdinalParseLenient;
|
|
22306
22316
|
});
|
|
22307
|
-
|
|
22308
|
-
|
|
22317
|
+
Ce(["D", "DD"], gn);
|
|
22318
|
+
Ce("Do", function(t, e) {
|
|
22309
22319
|
e[gn] = me(t.match(Ne)[0]);
|
|
22310
22320
|
});
|
|
22311
22321
|
var $m = Fi("Date", !0);
|
|
22312
22322
|
G("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
|
|
22313
22323
|
U("DDD", ca);
|
|
22314
22324
|
U("DDDD", im);
|
|
22315
|
-
|
|
22325
|
+
Ce(["DDD", "DDDD"], function(t, e, n) {
|
|
22316
22326
|
n._dayOfYear = me(t);
|
|
22317
22327
|
});
|
|
22318
22328
|
function VA(t) {
|
|
@@ -22324,12 +22334,12 @@ function VA(t) {
|
|
|
22324
22334
|
G("m", ["mm", 2], 0, "minute");
|
|
22325
22335
|
U("m", Ne, Bu);
|
|
22326
22336
|
U("mm", Ne, Lt);
|
|
22327
|
-
|
|
22337
|
+
Ce(["m", "mm"], en);
|
|
22328
22338
|
var BA = Fi("Minutes", !1);
|
|
22329
22339
|
G("s", ["ss", 2], 0, "second");
|
|
22330
22340
|
U("s", Ne, Bu);
|
|
22331
22341
|
U("ss", Ne, Lt);
|
|
22332
|
-
|
|
22342
|
+
Ce(["s", "ss"], Fn);
|
|
22333
22343
|
var LA = Fi("Seconds", !1);
|
|
22334
22344
|
G("S", 0, 0, function() {
|
|
22335
22345
|
return ~~(this.millisecond() / 100);
|
|
@@ -22366,7 +22376,7 @@ function FA(t, e) {
|
|
|
22366
22376
|
e[Pr] = me(("0." + t) * 1e3);
|
|
22367
22377
|
}
|
|
22368
22378
|
for (ar = "S"; ar.length <= 9; ar += "S")
|
|
22369
|
-
|
|
22379
|
+
Ce(ar, FA);
|
|
22370
22380
|
Vm = Fi("Milliseconds", !1);
|
|
22371
22381
|
G("z", 0, 0, "zoneAbbr");
|
|
22372
22382
|
G("zz", 0, 0, "zoneName");
|
|
@@ -22754,10 +22764,10 @@ G("X", 0, 0, "unix");
|
|
|
22754
22764
|
G("x", 0, 0, "valueOf");
|
|
22755
22765
|
U("x", fa);
|
|
22756
22766
|
U("X", Y2);
|
|
22757
|
-
|
|
22767
|
+
Ce("X", function(t, e, n) {
|
|
22758
22768
|
n._d = new Date(parseFloat(t) * 1e3);
|
|
22759
22769
|
});
|
|
22760
|
-
|
|
22770
|
+
Ce("x", function(t, e, n) {
|
|
22761
22771
|
n._d = new Date(me(t));
|
|
22762
22772
|
});
|
|
22763
22773
|
//! moment.js
|
|
@@ -22843,7 +22853,7 @@ const el = {
|
|
|
22843
22853
|
pmi: "",
|
|
22844
22854
|
"wpic-tools": "bg-slate-200"
|
|
22845
22855
|
};
|
|
22846
|
-
return (a, l) => (T(),
|
|
22856
|
+
return (a, l) => (T(), _("div", {
|
|
22847
22857
|
class: ne(["relative flex items-center justify-center text-sm py-2 group", { "is-today": t.today && !t.selected, "is-selected": t.selected, "is-off": t.off, "is-highlight": t.highlight, "cursor-pointer": !t.disabled }])
|
|
22848
22858
|
}, [
|
|
22849
22859
|
B("div", {
|
|
@@ -22863,7 +22873,7 @@ const el = {
|
|
|
22863
22873
|
style: { left: "50%", transform: "translateX(-50%)" }
|
|
22864
22874
|
}, [
|
|
22865
22875
|
Ie(a.$slots, "default", {}, () => [
|
|
22866
|
-
|
|
22876
|
+
nt(Oe(t.day), 1)
|
|
22867
22877
|
])
|
|
22868
22878
|
], 2)
|
|
22869
22879
|
], 6)
|
|
@@ -22877,16 +22887,18 @@ const el = {
|
|
|
22877
22887
|
range: Boolean,
|
|
22878
22888
|
doubleMonths: Boolean,
|
|
22879
22889
|
maxDate: {},
|
|
22880
|
-
week: Boolean
|
|
22890
|
+
week: Boolean,
|
|
22891
|
+
initDates: {}
|
|
22881
22892
|
},
|
|
22882
22893
|
emits: ["update:modelValue"],
|
|
22883
22894
|
setup(t, { emit: e }) {
|
|
22884
22895
|
const n = t, r = De([M(/* @__PURE__ */ new Date()).subtract(1, "month"), M(/* @__PURE__ */ new Date())]);
|
|
22885
|
-
Rt(() => n.
|
|
22896
|
+
Rt(() => n.initDates, () => {
|
|
22886
22897
|
var E;
|
|
22887
|
-
!n.range && n.
|
|
22898
|
+
!n.range && n.initDates ? r.value[0] = M(n.initDates) : n.range && ((E = n.initDates) == null ? void 0 : E.length) == 2 && (r.value[0] = M(n.initDates[0]), r.value[1] = M(n.initDates[1]));
|
|
22888
22899
|
}, {
|
|
22889
|
-
immediate: !0
|
|
22900
|
+
immediate: !0,
|
|
22901
|
+
once: !0
|
|
22890
22902
|
});
|
|
22891
22903
|
const i = e, s = ie(() => n.doubleMonths ? [0, 1] : [0]);
|
|
22892
22904
|
function o(E) {
|
|
@@ -22967,7 +22979,7 @@ const el = {
|
|
|
22967
22979
|
function v(E) {
|
|
22968
22980
|
D(E, r.value[E].subtract(1, "month"));
|
|
22969
22981
|
}
|
|
22970
|
-
function
|
|
22982
|
+
function w(E) {
|
|
22971
22983
|
D(E, r.value[E].add(1, "month"));
|
|
22972
22984
|
}
|
|
22973
22985
|
function O(E) {
|
|
@@ -22995,12 +23007,12 @@ const el = {
|
|
|
22995
23007
|
function oe() {
|
|
22996
23008
|
b.value = null;
|
|
22997
23009
|
}
|
|
22998
|
-
return (E, j) => (T(),
|
|
23010
|
+
return (E, j) => (T(), _("div", {
|
|
22999
23011
|
class: ne(["flex-shrink-0 flex gap-6", { "min-w-96": s.value.length === 1, "min-w-192": s.value.length === 2 }])
|
|
23000
23012
|
}, [
|
|
23001
|
-
(T(!0),
|
|
23013
|
+
(T(!0), _(rt, null, At(s.value, (q) => {
|
|
23002
23014
|
var Z;
|
|
23003
|
-
return T(),
|
|
23015
|
+
return T(), _("div", ON, [
|
|
23004
23016
|
B("div", CN, [
|
|
23005
23017
|
B("div", TN, [
|
|
23006
23018
|
pe(qf, {
|
|
@@ -23012,11 +23024,11 @@ const el = {
|
|
|
23012
23024
|
onClick: (C) => v(q)
|
|
23013
23025
|
}, null, 8, ["onClick"])
|
|
23014
23026
|
]),
|
|
23015
|
-
B("div", DN,
|
|
23027
|
+
B("div", DN, Oe(r.value[q].format("YYYY MMMM")), 1),
|
|
23016
23028
|
B("div", EN, [
|
|
23017
23029
|
pe(Gf, {
|
|
23018
23030
|
class: "w-5 h-5 cursor-pointer select-none opacity-50 hover:opacity-100",
|
|
23019
|
-
onClick: (C) =>
|
|
23031
|
+
onClick: (C) => w(q)
|
|
23020
23032
|
}, null, 8, ["onClick"]),
|
|
23021
23033
|
pe(Jf, {
|
|
23022
23034
|
class: "w-5 h-5 cursor-pointer select-none opacity-50 hover:opacity-100",
|
|
@@ -23025,16 +23037,16 @@ const el = {
|
|
|
23025
23037
|
])
|
|
23026
23038
|
]),
|
|
23027
23039
|
B("div", AN, [
|
|
23028
|
-
(T(),
|
|
23040
|
+
(T(), _(rt, null, At(7, (C) => {
|
|
23029
23041
|
var J;
|
|
23030
|
-
return B("div", NN,
|
|
23042
|
+
return B("div", NN, Oe((J = r.value[q]) == null ? void 0 : J.clone().startOf("week").subtract(1, "days").add(C, "days").format("ddd")), 1);
|
|
23031
23043
|
}), 64))
|
|
23032
23044
|
]),
|
|
23033
23045
|
B("div", {
|
|
23034
23046
|
class: "grid grid-cols-7",
|
|
23035
23047
|
onMouseout: oe
|
|
23036
23048
|
}, [
|
|
23037
|
-
l(r.value[q]) > 0 ? (T(!0),
|
|
23049
|
+
l(r.value[q]) > 0 ? (T(!0), _(rt, { key: 0 }, At(u(V(M)(r.value[q]).year(), V(M)(r.value[q]).month() + 1), (C) => (T(), $e(el, {
|
|
23038
23050
|
onClick: (J) => m(C) ? null : o(C),
|
|
23039
23051
|
onMouseover: (J) => N(C),
|
|
23040
23052
|
today: d(C),
|
|
@@ -23046,11 +23058,11 @@ const el = {
|
|
|
23046
23058
|
off: ""
|
|
23047
23059
|
}, {
|
|
23048
23060
|
default: Pe(() => [
|
|
23049
|
-
|
|
23061
|
+
nt(Oe(V(M)(C).format("D")), 1)
|
|
23050
23062
|
]),
|
|
23051
23063
|
_: 2
|
|
23052
23064
|
}, 1032, ["onClick", "onMouseover", "today", "selected", "firstDay", "lastDay", "between", "highlight"]))), 256)) : ye("", !0),
|
|
23053
|
-
(T(!0),
|
|
23065
|
+
(T(!0), _(rt, null, At(a(r.value[q].clone()), (C) => (T(), $e(el, {
|
|
23054
23066
|
onMouseover: (J) => N(C),
|
|
23055
23067
|
onClick: (J) => m(C) ? null : o(C),
|
|
23056
23068
|
today: d(C),
|
|
@@ -23063,11 +23075,11 @@ const el = {
|
|
|
23063
23075
|
highlight: F(C)
|
|
23064
23076
|
}, {
|
|
23065
23077
|
default: Pe(() => [
|
|
23066
|
-
|
|
23078
|
+
nt(Oe(V(M)(C).format("D")), 1)
|
|
23067
23079
|
]),
|
|
23068
23080
|
_: 2
|
|
23069
23081
|
}, 1032, ["onMouseover", "onClick", "today", "selected", "firstDay", "lastDay", "between", "disabled", "off", "highlight"]))), 256)),
|
|
23070
|
-
((Z = c(V(M)(r.value[q]).year(), V(M)(r.value[q]).month() + 1)) == null ? void 0 : Z.length) > 0 ? (T(!0),
|
|
23082
|
+
((Z = c(V(M)(r.value[q]).year(), V(M)(r.value[q]).month() + 1)) == null ? void 0 : Z.length) > 0 ? (T(!0), _(rt, { key: 1 }, At(c(V(M)(r.value[q]).year(), V(M)(r.value[q]).month() + 1), (C) => (T(), $e(el, {
|
|
23071
23083
|
onClick: (J) => m(C) ? null : o(C),
|
|
23072
23084
|
onMouseover: (J) => N(C),
|
|
23073
23085
|
today: d(C),
|
|
@@ -23079,7 +23091,7 @@ const el = {
|
|
|
23079
23091
|
off: ""
|
|
23080
23092
|
}, {
|
|
23081
23093
|
default: Pe(() => [
|
|
23082
|
-
|
|
23094
|
+
nt(Oe(V(M)(C).format("D")), 1)
|
|
23083
23095
|
]),
|
|
23084
23096
|
_: 2
|
|
23085
23097
|
}, 1032, ["onClick", "onMouseover", "today", "selected", "firstDay", "lastDay", "between", "highlight"]))), 256)) : ye("", !0)
|
|
@@ -23102,7 +23114,7 @@ const el = {
|
|
|
23102
23114
|
RN
|
|
23103
23115
|
];
|
|
23104
23116
|
function VN(t, e) {
|
|
23105
|
-
return T(),
|
|
23117
|
+
return T(), _("svg", IN, $N);
|
|
23106
23118
|
}
|
|
23107
23119
|
const BN = /* @__PURE__ */ Ae(PN, [["render", VN]]), LN = {}, FN = {
|
|
23108
23120
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -23118,7 +23130,7 @@ const BN = /* @__PURE__ */ Ae(PN, [["render", VN]]), LN = {}, FN = {
|
|
|
23118
23130
|
zN
|
|
23119
23131
|
];
|
|
23120
23132
|
function WN(t, e) {
|
|
23121
|
-
return T(),
|
|
23133
|
+
return T(), _("svg", FN, jN);
|
|
23122
23134
|
}
|
|
23123
23135
|
const HN = /* @__PURE__ */ Ae(LN, [["render", WN]]), YN = {
|
|
23124
23136
|
name: "WpicDateField"
|
|
@@ -23137,7 +23149,8 @@ const HN = /* @__PURE__ */ Ae(LN, [["render", WN]]), YN = {
|
|
|
23137
23149
|
info: String,
|
|
23138
23150
|
doubleMonths: Boolean,
|
|
23139
23151
|
clearable: Boolean,
|
|
23140
|
-
maxDate: {}
|
|
23152
|
+
maxDate: {},
|
|
23153
|
+
initDates: {}
|
|
23141
23154
|
},
|
|
23142
23155
|
emits: ["update:modelValue"],
|
|
23143
23156
|
setup(t, { emit: e }) {
|
|
@@ -23156,12 +23169,13 @@ const HN = /* @__PURE__ */ Ae(LN, [["render", WN]]), YN = {
|
|
|
23156
23169
|
content: Pe(() => [
|
|
23157
23170
|
pe(Wm, {
|
|
23158
23171
|
doubleMonths: t.doubleMonths,
|
|
23172
|
+
initDates: t.initDates,
|
|
23159
23173
|
week: t.week,
|
|
23160
23174
|
"max-date": t.maxDate,
|
|
23161
23175
|
modelValue: t.modelValue,
|
|
23162
23176
|
"onUpdate:modelValue": i,
|
|
23163
23177
|
range: t.range
|
|
23164
|
-
}, null, 8, ["doubleMonths", "week", "max-date", "modelValue", "range"])
|
|
23178
|
+
}, null, 8, ["doubleMonths", "initDates", "week", "max-date", "modelValue", "range"])
|
|
23165
23179
|
]),
|
|
23166
23180
|
default: Pe(() => {
|
|
23167
23181
|
var l;
|
|
@@ -23178,7 +23192,7 @@ const HN = /* @__PURE__ */ Ae(LN, [["render", WN]]), YN = {
|
|
|
23178
23192
|
t.range ? (T(), $e(BN, { key: 0 })) : (T(), $e(HN, { key: 1 }))
|
|
23179
23193
|
]),
|
|
23180
23194
|
default: Pe(() => [
|
|
23181
|
-
|
|
23195
|
+
nt(" " + Oe(s.value || t.placeholder), 1)
|
|
23182
23196
|
]),
|
|
23183
23197
|
_: 1
|
|
23184
23198
|
}, 8, ["label", "disabled", "large", "info", "clearable"])
|
|
@@ -23227,7 +23241,7 @@ const HN = /* @__PURE__ */ Ae(LN, [["render", WN]]), YN = {
|
|
|
23227
23241
|
function l() {
|
|
23228
23242
|
o.value.scrollTop = o.value.scrollHeight;
|
|
23229
23243
|
}
|
|
23230
|
-
return (u, c) => (T(),
|
|
23244
|
+
return (u, c) => (T(), _("div", {
|
|
23231
23245
|
class: ne(["fixed inset-0 h-full flex justify-end bg-black/50 backdrop-blur-sm transition-opacity", {
|
|
23232
23246
|
"p-4": t.island,
|
|
23233
23247
|
"opacity-0 pointer-events-none": !t.visible,
|