@romainbx/wpic-components 0.0.71 → 0.0.72
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/wpic-components.js +688 -685
- package/dist/wpic-components.umd.cjs +15 -15
- package/package.json +1 -1
package/dist/wpic-components.js
CHANGED
|
@@ -1061,14 +1061,14 @@ function Ym(t, e, n) {
|
|
|
1061
1061
|
return Fi(n == null ? void 0 : n.type) ? Gm(t, e, n) : jd(t, e, n);
|
|
1062
1062
|
}
|
|
1063
1063
|
function jd(t, e, n) {
|
|
1064
|
-
const { initialValue: r, validateOnMount: i, bails: o, type: s, checkedValue: a, label: l, validateOnValueUpdate: c, uncheckedValue: u, controlled: d, keepValueOnUnmount: f, syncVModel: h, form: p } = Jm(n),
|
|
1065
|
-
if (Ce(
|
|
1064
|
+
const { initialValue: r, validateOnMount: i, bails: o, type: s, checkedValue: a, label: l, validateOnValueUpdate: c, uncheckedValue: u, controlled: d, keepValueOnUnmount: f, syncVModel: h, form: p } = Jm(n), m = d ? Ga(zi) : void 0, g = p || m, y = de(() => ui(Ce(t))), S = de(() => {
|
|
1065
|
+
if (Ce(g == null ? void 0 : g.schema))
|
|
1066
1066
|
return;
|
|
1067
1067
|
const oe = B(e);
|
|
1068
1068
|
return Oo(oe) || Rt(oe) || Ue(oe) || Array.isArray(oe) ? oe : Ld(oe);
|
|
1069
|
-
}), $ = !Ue(S.value) && Rt(Ce(e)), { id:
|
|
1069
|
+
}), $ = !Ue(S.value) && Rt(Ce(e)), { id: v, value: w, initialValue: b, meta: E, setState: I, errors: N, flags: D } = Bm(y, {
|
|
1070
1070
|
modelValue: r,
|
|
1071
|
-
form:
|
|
1071
|
+
form: g,
|
|
1072
1072
|
bails: o,
|
|
1073
1073
|
label: l,
|
|
1074
1074
|
type: s,
|
|
@@ -1086,14 +1086,14 @@ function jd(t, e, n) {
|
|
|
1086
1086
|
};
|
|
1087
1087
|
async function se(j) {
|
|
1088
1088
|
var oe, Oe;
|
|
1089
|
-
if (
|
|
1090
|
-
const { results: ge } = await
|
|
1091
|
-
return (oe = ge[Ce(
|
|
1089
|
+
if (g != null && g.validateSchema) {
|
|
1090
|
+
const { results: ge } = await g.validateSchema(j);
|
|
1091
|
+
return (oe = ge[Ce(y)]) !== null && oe !== void 0 ? oe : { valid: !0, errors: [] };
|
|
1092
1092
|
}
|
|
1093
1093
|
return S.value ? Id(w.value, S.value, {
|
|
1094
|
-
name: Ce(
|
|
1094
|
+
name: Ce(y),
|
|
1095
1095
|
label: Ce(l),
|
|
1096
|
-
values: (Oe =
|
|
1096
|
+
values: (Oe = g == null ? void 0 : g.values) !== null && Oe !== void 0 ? Oe : {},
|
|
1097
1097
|
bails: o
|
|
1098
1098
|
}) : { valid: !0, errors: [] };
|
|
1099
1099
|
}
|
|
@@ -1108,7 +1108,7 @@ function jd(t, e, n) {
|
|
|
1108
1108
|
en(() => {
|
|
1109
1109
|
if (i)
|
|
1110
1110
|
return U();
|
|
1111
|
-
(!
|
|
1111
|
+
(!g || !g.validateSchema) && P();
|
|
1112
1112
|
});
|
|
1113
1113
|
function _(j) {
|
|
1114
1114
|
E.touched = j;
|
|
@@ -1138,8 +1138,8 @@ function jd(t, e, n) {
|
|
|
1138
1138
|
L(j, c);
|
|
1139
1139
|
}
|
|
1140
1140
|
}), ae = {
|
|
1141
|
-
id:
|
|
1142
|
-
name:
|
|
1141
|
+
id: v,
|
|
1142
|
+
name: y,
|
|
1143
1143
|
label: l,
|
|
1144
1144
|
value: q,
|
|
1145
1145
|
meta: E,
|
|
@@ -1166,13 +1166,13 @@ function jd(t, e, n) {
|
|
|
1166
1166
|
deep: !0
|
|
1167
1167
|
}), process.env.NODE_ENV !== "production" && (ae._vm = mn(), Pe(() => Object.assign(Object.assign({ errors: N.value }, E), { value: w.value }), Rr, {
|
|
1168
1168
|
deep: !0
|
|
1169
|
-
}),
|
|
1169
|
+
}), g || zm(ae)), !g)
|
|
1170
1170
|
return ae;
|
|
1171
1171
|
const J = de(() => {
|
|
1172
1172
|
const j = S.value;
|
|
1173
1173
|
return !j || Ue(j) || Oo(j) || Rt(j) || Array.isArray(j) ? {} : Object.keys(j).reduce((oe, Oe) => {
|
|
1174
1174
|
const ge = Om(j[Oe]).map((Te) => Te.__locatorRef).reduce((Te, De) => {
|
|
1175
|
-
const _e = ft(
|
|
1175
|
+
const _e = ft(g.values, De) || g.values[De];
|
|
1176
1176
|
return _e !== void 0 && (Te[De] = _e), Te;
|
|
1177
1177
|
}, {});
|
|
1178
1178
|
return Object.assign(oe, ge), oe;
|
|
@@ -1184,24 +1184,24 @@ function jd(t, e, n) {
|
|
|
1184
1184
|
!st(j, oe) && (E.validated ? U() : P());
|
|
1185
1185
|
}), hr(() => {
|
|
1186
1186
|
var j;
|
|
1187
|
-
const oe = (j = Ce(ae.keepValueOnUnmount)) !== null && j !== void 0 ? j : Ce(
|
|
1188
|
-
if (oe || !
|
|
1189
|
-
|
|
1187
|
+
const oe = (j = Ce(ae.keepValueOnUnmount)) !== null && j !== void 0 ? j : Ce(g.keepValuesOnUnmount), Oe = Ce(y);
|
|
1188
|
+
if (oe || !g || D.pendingUnmount[ae.id]) {
|
|
1189
|
+
g == null || g.removePathState(Oe, v);
|
|
1190
1190
|
return;
|
|
1191
1191
|
}
|
|
1192
1192
|
D.pendingUnmount[ae.id] = !0;
|
|
1193
|
-
const ge =
|
|
1193
|
+
const ge = g.getPathState(Oe);
|
|
1194
1194
|
if (Array.isArray(ge == null ? void 0 : ge.id) && (ge != null && ge.multiple) ? ge != null && ge.id.includes(ae.id) : (ge == null ? void 0 : ge.id) === ae.id) {
|
|
1195
1195
|
if (ge != null && ge.multiple && Array.isArray(ge.value)) {
|
|
1196
1196
|
const De = ge.value.findIndex((_e) => st(_e, Ce(ae.checkedValue)));
|
|
1197
1197
|
if (De > -1) {
|
|
1198
1198
|
const _e = [...ge.value];
|
|
1199
|
-
_e.splice(De, 1),
|
|
1199
|
+
_e.splice(De, 1), g.setFieldValue(Oe, _e);
|
|
1200
1200
|
}
|
|
1201
1201
|
Array.isArray(ge.id) && ge.id.splice(ge.id.indexOf(ae.id), 1);
|
|
1202
1202
|
} else
|
|
1203
|
-
|
|
1204
|
-
|
|
1203
|
+
g.unsetPathValue(Ce(y));
|
|
1204
|
+
g.removePathState(Oe, v);
|
|
1205
1205
|
}
|
|
1206
1206
|
}), ae;
|
|
1207
1207
|
}
|
|
@@ -1239,9 +1239,9 @@ function Gm(t, e, n) {
|
|
|
1239
1239
|
f && a.validate();
|
|
1240
1240
|
return;
|
|
1241
1241
|
}
|
|
1242
|
-
const
|
|
1243
|
-
let S = (p = Ce(i)) !== null && p !== void 0 ? p :
|
|
1244
|
-
r && (
|
|
1242
|
+
const m = Ce(t), g = r == null ? void 0 : r.getPathState(m), y = Mo(d);
|
|
1243
|
+
let S = (p = Ce(i)) !== null && p !== void 0 ? p : y;
|
|
1244
|
+
r && (g != null && g.multiple) && g.type === "checkbox" ? S = Gl(ft(r.values, m) || [], S, void 0) : (n == null ? void 0 : n.type) === "checkbox" && (S = Gl(Ce(a.value), S, Ce(o))), l(S, f);
|
|
1245
1245
|
}
|
|
1246
1246
|
return Object.assign(Object.assign({}, a), {
|
|
1247
1247
|
checked: c,
|
|
@@ -1342,7 +1342,7 @@ const Xm = /* @__PURE__ */ Rn({
|
|
|
1342
1342
|
}
|
|
1343
1343
|
},
|
|
1344
1344
|
setup(t, e) {
|
|
1345
|
-
const n = Jn(t, "rules"), r = Jn(t, "name"), i = Jn(t, "label"), o = Jn(t, "uncheckedValue"), s = Jn(t, "keepValue"), { errors: a, value: l, errorMessage: c, validate: u, handleChange: d, handleBlur: f, setTouched: h, resetField: p, handleReset:
|
|
1345
|
+
const n = Jn(t, "rules"), r = Jn(t, "name"), i = Jn(t, "label"), o = Jn(t, "uncheckedValue"), s = Jn(t, "keepValue"), { errors: a, value: l, errorMessage: c, validate: u, handleChange: d, handleBlur: f, setTouched: h, resetField: p, handleReset: m, meta: g, checked: y, setErrors: S } = Ym(r, n, {
|
|
1346
1346
|
validateOnMount: t.validateOnMount,
|
|
1347
1347
|
bails: t.bails,
|
|
1348
1348
|
standalone: t.standalone,
|
|
@@ -1357,7 +1357,7 @@ const Xm = /* @__PURE__ */ Rn({
|
|
|
1357
1357
|
syncVModel: !0
|
|
1358
1358
|
}), $ = function(N, D = !0) {
|
|
1359
1359
|
d(N, D);
|
|
1360
|
-
},
|
|
1360
|
+
}, v = de(() => {
|
|
1361
1361
|
const { validateOnInput: I, validateOnChange: N, validateOnBlur: D, validateOnModelUpdate: V } = Qm(t);
|
|
1362
1362
|
function Y(A) {
|
|
1363
1363
|
f(A, D), Ue(e.attrs.onBlur) && e.attrs.onBlur(A);
|
|
@@ -1376,32 +1376,32 @@ const Xm = /* @__PURE__ */ Rn({
|
|
|
1376
1376
|
};
|
|
1377
1377
|
return P["onUpdate:modelValue"] = (A) => $(A, V), P;
|
|
1378
1378
|
}), w = de(() => {
|
|
1379
|
-
const I = Object.assign({},
|
|
1380
|
-
Fi(e.attrs.type) &&
|
|
1379
|
+
const I = Object.assign({}, v.value);
|
|
1380
|
+
Fi(e.attrs.type) && y && (I.checked = y.value);
|
|
1381
1381
|
const N = tc(t, e);
|
|
1382
1382
|
return ym(N, e.attrs) && (I.value = l.value), I;
|
|
1383
|
-
}), b = de(() => Object.assign(Object.assign({},
|
|
1383
|
+
}), b = de(() => Object.assign(Object.assign({}, v.value), { modelValue: l.value }));
|
|
1384
1384
|
function E() {
|
|
1385
1385
|
return {
|
|
1386
1386
|
field: w.value,
|
|
1387
1387
|
componentField: b.value,
|
|
1388
1388
|
value: l.value,
|
|
1389
|
-
meta:
|
|
1389
|
+
meta: g,
|
|
1390
1390
|
errors: a.value,
|
|
1391
1391
|
errorMessage: c.value,
|
|
1392
1392
|
validate: u,
|
|
1393
1393
|
resetField: p,
|
|
1394
1394
|
handleChange: $,
|
|
1395
1395
|
handleInput: (I) => $(I, !1),
|
|
1396
|
-
handleReset:
|
|
1397
|
-
handleBlur:
|
|
1396
|
+
handleReset: m,
|
|
1397
|
+
handleBlur: v.value.onBlur,
|
|
1398
1398
|
setTouched: h,
|
|
1399
1399
|
setErrors: S
|
|
1400
1400
|
};
|
|
1401
1401
|
}
|
|
1402
1402
|
return e.expose({
|
|
1403
1403
|
value: l,
|
|
1404
|
-
meta:
|
|
1404
|
+
meta: g,
|
|
1405
1405
|
errors: a,
|
|
1406
1406
|
errorMessage: c,
|
|
1407
1407
|
setErrors: S,
|
|
@@ -1464,16 +1464,16 @@ function ng(t) {
|
|
|
1464
1464
|
});
|
|
1465
1465
|
}
|
|
1466
1466
|
t != null && t.initialErrors && p(t.initialErrors);
|
|
1467
|
-
const
|
|
1467
|
+
const m = de(() => {
|
|
1468
1468
|
const M = c.value.reduce((O, R) => (R.errors.length && (O[R.path] = R.errors), O), {});
|
|
1469
1469
|
return Object.assign(Object.assign({}, u.value), M);
|
|
1470
|
-
}),
|
|
1471
|
-
const R =
|
|
1470
|
+
}), g = de(() => ut(m.value).reduce((M, O) => {
|
|
1471
|
+
const R = m.value[O];
|
|
1472
1472
|
return R != null && R.length && (M[O] = R[0]), M;
|
|
1473
|
-
}, {})),
|
|
1473
|
+
}, {})), y = de(() => c.value.reduce((M, O) => (M[O.path] = { name: O.path || "", label: O.label || "" }, M), {})), S = de(() => c.value.reduce((M, O) => {
|
|
1474
1474
|
var R;
|
|
1475
1475
|
return M[O.path] = (R = O.bails) !== null && R !== void 0 ? R : !0, M;
|
|
1476
|
-
}, {})), $ = Object.assign({}, (t == null ? void 0 : t.initialErrors) || {}),
|
|
1476
|
+
}, {})), $ = Object.assign({}, (t == null ? void 0 : t.initialErrors) || {}), v = (e = t == null ? void 0 : t.keepValuesOnUnmount) !== null && e !== void 0 ? e : !1, { initialValues: w, originalInitialValues: b, setInitialValues: E } = ig(c, l, t), I = rg(c, l, b, g), N = de(() => c.value.reduce((M, O) => {
|
|
1477
1477
|
const R = ft(l, O.path);
|
|
1478
1478
|
return sn(M, O.path, R), M;
|
|
1479
1479
|
}, {})), D = t == null ? void 0 : t.validationSchema;
|
|
@@ -1517,7 +1517,7 @@ function ng(t) {
|
|
|
1517
1517
|
validate: O == null ? void 0 : O.validate,
|
|
1518
1518
|
dirty: de(() => !st(B(Q), B(fe)))
|
|
1519
1519
|
});
|
|
1520
|
-
return c.value.push(Re), d.value[ue] = Re, f(),
|
|
1520
|
+
return c.value.push(Re), d.value[ue] = Re, f(), g.value[ue] && !$[ue] && nt(() => {
|
|
1521
1521
|
Mt(ue, { mode: "silent" });
|
|
1522
1522
|
}), So(M) && Pe(M, (ot) => {
|
|
1523
1523
|
f();
|
|
@@ -1617,15 +1617,15 @@ function ng(t) {
|
|
|
1617
1617
|
formId: n,
|
|
1618
1618
|
values: l,
|
|
1619
1619
|
controlledValues: N,
|
|
1620
|
-
errorBag:
|
|
1621
|
-
errors:
|
|
1620
|
+
errorBag: m,
|
|
1621
|
+
errors: g,
|
|
1622
1622
|
schema: D,
|
|
1623
1623
|
submitCount: s,
|
|
1624
1624
|
meta: I,
|
|
1625
1625
|
isSubmitting: i,
|
|
1626
1626
|
isValidating: o,
|
|
1627
1627
|
fieldArrays: a,
|
|
1628
|
-
keepValuesOnUnmount:
|
|
1628
|
+
keepValuesOnUnmount: v,
|
|
1629
1629
|
validateSchema: B(D) ? U : void 0,
|
|
1630
1630
|
validate: Pt,
|
|
1631
1631
|
setFieldError: h,
|
|
@@ -1779,7 +1779,7 @@ function ng(t) {
|
|
|
1779
1779
|
return { valid: !0, results: {}, errors: {} };
|
|
1780
1780
|
o.value = !0;
|
|
1781
1781
|
const O = Oo(M) || Rt(M) ? await Lm(M, l) : await Im(M, l, {
|
|
1782
|
-
names:
|
|
1782
|
+
names: y.value,
|
|
1783
1783
|
bailsMap: S.value
|
|
1784
1784
|
});
|
|
1785
1785
|
return o.value = !1, O;
|
|
@@ -1796,7 +1796,7 @@ function ng(t) {
|
|
|
1796
1796
|
}), So(D) && Pe(D, () => {
|
|
1797
1797
|
var M;
|
|
1798
1798
|
(M = j.validateSchema) === null || M === void 0 || M.call(j, "validated-only");
|
|
1799
|
-
}), Si(zi, j), process.env.NODE_ENV !== "production" && (jm(j), Pe(() => Object.assign(Object.assign({ errors:
|
|
1799
|
+
}), Si(zi, j), process.env.NODE_ENV !== "production" && (jm(j), Pe(() => Object.assign(Object.assign({ errors: m.value }, I.value), { values: l, isSubmitting: i.value, isValidating: o.value, submitCount: s.value }), Rr, {
|
|
1800
1800
|
deep: !0
|
|
1801
1801
|
}));
|
|
1802
1802
|
function bn(M, O) {
|
|
@@ -1948,21 +1948,21 @@ const sg = /* @__PURE__ */ Rn({
|
|
|
1948
1948
|
}
|
|
1949
1949
|
},
|
|
1950
1950
|
setup(t, e) {
|
|
1951
|
-
const n = Jn(t, "validationSchema"), r = Jn(t, "keepValues"), { errors: i, errorBag: o, values: s, meta: a, isSubmitting: l, isValidating: c, submitCount: u, controlledValues: d, validate: f, validateField: h, handleReset: p, resetForm:
|
|
1951
|
+
const n = Jn(t, "validationSchema"), r = Jn(t, "keepValues"), { errors: i, errorBag: o, values: s, meta: a, isSubmitting: l, isValidating: c, submitCount: u, controlledValues: d, validate: f, validateField: h, handleReset: p, resetForm: m, handleSubmit: g, setErrors: y, setFieldError: S, setFieldValue: $, setValues: v, setFieldTouched: w, setTouched: b, resetField: E } = ng({
|
|
1952
1952
|
validationSchema: n.value ? n : void 0,
|
|
1953
1953
|
initialValues: t.initialValues,
|
|
1954
1954
|
initialErrors: t.initialErrors,
|
|
1955
1955
|
initialTouched: t.initialTouched,
|
|
1956
1956
|
validateOnMount: t.validateOnMount,
|
|
1957
1957
|
keepValuesOnUnmount: r
|
|
1958
|
-
}), I =
|
|
1958
|
+
}), I = g((A, { evt: z }) => {
|
|
1959
1959
|
Dd(z) && z.target.submit();
|
|
1960
|
-
}, t.onInvalidSubmit), N = t.onSubmit ?
|
|
1960
|
+
}, t.onInvalidSubmit), N = t.onSubmit ? g(t.onSubmit, t.onInvalidSubmit) : I;
|
|
1961
1961
|
function D(A) {
|
|
1962
1962
|
Ya(A) && A.preventDefault(), p(), typeof e.attrs.onReset == "function" && e.attrs.onReset();
|
|
1963
1963
|
}
|
|
1964
1964
|
function V(A, z) {
|
|
1965
|
-
return
|
|
1965
|
+
return g(typeof A == "function" && !z ? A : z, t.onInvalidSubmit)(A);
|
|
1966
1966
|
}
|
|
1967
1967
|
function Y() {
|
|
1968
1968
|
return Ee(s);
|
|
@@ -1988,13 +1988,13 @@ const sg = /* @__PURE__ */ Rn({
|
|
|
1988
1988
|
handleSubmit: V,
|
|
1989
1989
|
handleReset: p,
|
|
1990
1990
|
submitForm: I,
|
|
1991
|
-
setErrors:
|
|
1991
|
+
setErrors: y,
|
|
1992
1992
|
setFieldError: S,
|
|
1993
1993
|
setFieldValue: $,
|
|
1994
|
-
setValues:
|
|
1994
|
+
setValues: v,
|
|
1995
1995
|
setFieldTouched: w,
|
|
1996
1996
|
setTouched: b,
|
|
1997
|
-
resetForm:
|
|
1997
|
+
resetForm: m,
|
|
1998
1998
|
resetField: E,
|
|
1999
1999
|
getValues: Y,
|
|
2000
2000
|
getMeta: se,
|
|
@@ -2003,12 +2003,12 @@ const sg = /* @__PURE__ */ Rn({
|
|
|
2003
2003
|
}
|
|
2004
2004
|
return e.expose({
|
|
2005
2005
|
setFieldError: S,
|
|
2006
|
-
setErrors:
|
|
2006
|
+
setErrors: y,
|
|
2007
2007
|
setFieldValue: $,
|
|
2008
|
-
setValues:
|
|
2008
|
+
setValues: v,
|
|
2009
2009
|
setFieldTouched: w,
|
|
2010
2010
|
setTouched: b,
|
|
2011
|
-
resetForm:
|
|
2011
|
+
resetForm: m,
|
|
2012
2012
|
validate: f,
|
|
2013
2013
|
validateField: h,
|
|
2014
2014
|
resetField: E,
|
|
@@ -2154,8 +2154,8 @@ const Og = ["is", "type", "disabled"], Mg = {
|
|
|
2154
2154
|
actions: {}
|
|
2155
2155
|
},
|
|
2156
2156
|
setup(t) {
|
|
2157
|
-
const e = t, n = te(null), r = te(null), i = te(!1), o = de(() => e.to ? "router-link" : "div"), s = (
|
|
2158
|
-
r.value && !r.value.contains(
|
|
2157
|
+
const e = t, n = te(null), r = te(null), i = te(!1), o = de(() => e.to ? "router-link" : "div"), s = (y) => {
|
|
2158
|
+
r.value && !r.value.contains(y.target) && n.value && !n.value.contains(y.target) && (i.value = !1);
|
|
2159
2159
|
};
|
|
2160
2160
|
en(() => {
|
|
2161
2161
|
document.addEventListener("click", s);
|
|
@@ -2189,14 +2189,14 @@ const Og = ["is", "type", "disabled"], Mg = {
|
|
|
2189
2189
|
}, p = {
|
|
2190
2190
|
pmi: "text-violet-800 hover:underline",
|
|
2191
2191
|
"wpic-tools": "text-lime-800 hover:underline"
|
|
2192
|
-
},
|
|
2192
|
+
}, m = {
|
|
2193
2193
|
pmi: "text-red-600 hover:text-red-500 hover:underline",
|
|
2194
2194
|
"wpic-tools": "text-red-600 disabled:text-red-600/50 hover:text-red-500 dark:text-red-400 dark:hover:text-red-500 hover:underline"
|
|
2195
|
-
},
|
|
2195
|
+
}, g = {
|
|
2196
2196
|
pmi: "hover:text-violet-800 hover:underline",
|
|
2197
2197
|
"wpic-tools": "dark:text-gray-200 hover:text-lime-800 hover:underline"
|
|
2198
2198
|
};
|
|
2199
|
-
return (
|
|
2199
|
+
return (y, S) => {
|
|
2200
2200
|
var $;
|
|
2201
2201
|
return x(), C("button", {
|
|
2202
2202
|
ref_key: "reference",
|
|
@@ -2204,7 +2204,7 @@ const Og = ["is", "type", "disabled"], Mg = {
|
|
|
2204
2204
|
is: o.value,
|
|
2205
2205
|
type: t.type,
|
|
2206
2206
|
disabled: t.disabled,
|
|
2207
|
-
onClick: S[0] || (S[0] = (
|
|
2207
|
+
onClick: S[0] || (S[0] = (v) => {
|
|
2208
2208
|
var w;
|
|
2209
2209
|
return (w = t.actions) != null && w.length ? i.value = !i.value : null;
|
|
2210
2210
|
}),
|
|
@@ -2218,10 +2218,10 @@ const Og = ["is", "type", "disabled"], Mg = {
|
|
|
2218
2218
|
[`${d[B(pe).theme]}`]: t.secondary,
|
|
2219
2219
|
[`${h[B(pe).theme]}`]: !t.primary && !t.secondary && !t.plain && !t.colorless && !t.destructive,
|
|
2220
2220
|
[`${p[B(pe).theme]}`]: t.primary && t.plain,
|
|
2221
|
-
[`${
|
|
2221
|
+
[`${g[B(pe).theme]}`]: !t.primary && !t.destructive && t.plain,
|
|
2222
2222
|
[`${l[B(pe).theme]}`]: t.colorless,
|
|
2223
2223
|
[`${f[B(pe).theme]}`]: t.destructive && !t.plain && !t.colorless,
|
|
2224
|
-
[`${
|
|
2224
|
+
[`${m[B(pe).theme]}`]: t.destructive && t.plain,
|
|
2225
2225
|
[`${c[B(pe).theme]}`]: t.destructive && t.colorless,
|
|
2226
2226
|
"bg-zinc-50 border-violet-800 text-violet-800": t.primary && t.inverse,
|
|
2227
2227
|
"hover:bg-white": t.primary && t.inverse && !t.disabled && !t.loading,
|
|
@@ -2248,7 +2248,7 @@ const Og = ["is", "type", "disabled"], Mg = {
|
|
|
2248
2248
|
}])
|
|
2249
2249
|
}, {
|
|
2250
2250
|
default: Se(() => [
|
|
2251
|
-
Me(
|
|
2251
|
+
Me(y.$slots, "default", {}, () => [
|
|
2252
2252
|
Ie(be(t.label), 1)
|
|
2253
2253
|
])
|
|
2254
2254
|
]),
|
|
@@ -2261,10 +2261,10 @@ const Og = ["is", "type", "disabled"], Mg = {
|
|
|
2261
2261
|
class: "absolute z-30 top-12 left-0"
|
|
2262
2262
|
}, [
|
|
2263
2263
|
T("div", Tg, [
|
|
2264
|
-
(x(!0), C($e, null, We(t.actions, (
|
|
2265
|
-
onClick:
|
|
2264
|
+
(x(!0), C($e, null, We(t.actions, (v) => (x(), C("div", {
|
|
2265
|
+
onClick: v.value,
|
|
2266
2266
|
class: "font-normal h-10 flex items-center px-4 hover:bg-gray-100 dark:hover:bg-white/5"
|
|
2267
|
-
}, be(
|
|
2267
|
+
}, be(v.label), 9, $g))), 256))
|
|
2268
2268
|
])
|
|
2269
2269
|
], 512)) : re("", !0)
|
|
2270
2270
|
], 10, Og);
|
|
@@ -2492,16 +2492,16 @@ const qg = async (t, e, n) => {
|
|
|
2492
2492
|
x: u,
|
|
2493
2493
|
y: d
|
|
2494
2494
|
} = nc(c, r, l), f = r, h = {}, p = 0;
|
|
2495
|
-
for (let
|
|
2495
|
+
for (let m = 0; m < a.length; m++) {
|
|
2496
2496
|
const {
|
|
2497
|
-
name:
|
|
2498
|
-
fn:
|
|
2499
|
-
} = a[
|
|
2497
|
+
name: g,
|
|
2498
|
+
fn: y
|
|
2499
|
+
} = a[m], {
|
|
2500
2500
|
x: S,
|
|
2501
2501
|
y: $,
|
|
2502
|
-
data:
|
|
2502
|
+
data: v,
|
|
2503
2503
|
reset: w
|
|
2504
|
-
} = await
|
|
2504
|
+
} = await y({
|
|
2505
2505
|
x: u,
|
|
2506
2506
|
y: d,
|
|
2507
2507
|
initialPlacement: r,
|
|
@@ -2517,9 +2517,9 @@ const qg = async (t, e, n) => {
|
|
|
2517
2517
|
});
|
|
2518
2518
|
u = S ?? u, d = $ ?? d, h = {
|
|
2519
2519
|
...h,
|
|
2520
|
-
[
|
|
2521
|
-
...h[
|
|
2522
|
-
...
|
|
2520
|
+
[g]: {
|
|
2521
|
+
...h[g],
|
|
2522
|
+
...v
|
|
2523
2523
|
}
|
|
2524
2524
|
}, w && p <= 50 && (p++, typeof w == "object" && (w.placement && (f = w.placement), w.rects && (c = w.rects === !0 ? await s.getElementRects({
|
|
2525
2525
|
reference: t,
|
|
@@ -2528,7 +2528,7 @@ const qg = async (t, e, n) => {
|
|
|
2528
2528
|
}) : w.rects), {
|
|
2529
2529
|
x: u,
|
|
2530
2530
|
y: d
|
|
2531
|
-
} = nc(c, f, l)),
|
|
2531
|
+
} = nc(c, f, l)), m = -1);
|
|
2532
2532
|
}
|
|
2533
2533
|
return {
|
|
2534
2534
|
x: u,
|
|
@@ -2554,8 +2554,8 @@ async function Wd(t, e) {
|
|
|
2554
2554
|
elementContext: d = "floating",
|
|
2555
2555
|
altBoundary: f = !1,
|
|
2556
2556
|
padding: h = 0
|
|
2557
|
-
} = Hi(e, t), p = Hd(h),
|
|
2558
|
-
element: (n = await (o.isElement == null ? void 0 : o.isElement(
|
|
2557
|
+
} = Hi(e, t), p = Hd(h), g = a[f ? d === "floating" ? "reference" : "floating" : d], y = Eo(await o.getClippingRect({
|
|
2558
|
+
element: (n = await (o.isElement == null ? void 0 : o.isElement(g))) == null || n ? g : g.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(a.floating)),
|
|
2559
2559
|
boundary: c,
|
|
2560
2560
|
rootBoundary: u,
|
|
2561
2561
|
strategy: l
|
|
@@ -2564,7 +2564,7 @@ async function Wd(t, e) {
|
|
|
2564
2564
|
y: i,
|
|
2565
2565
|
width: s.floating.width,
|
|
2566
2566
|
height: s.floating.height
|
|
2567
|
-
} : s.reference, $ = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(a.floating)),
|
|
2567
|
+
} : s.reference, $ = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(a.floating)), v = await (o.isElement == null ? void 0 : o.isElement($)) ? await (o.getScale == null ? void 0 : o.getScale($)) || {
|
|
2568
2568
|
x: 1,
|
|
2569
2569
|
y: 1
|
|
2570
2570
|
} : {
|
|
@@ -2577,10 +2577,10 @@ async function Wd(t, e) {
|
|
|
2577
2577
|
strategy: l
|
|
2578
2578
|
}) : S);
|
|
2579
2579
|
return {
|
|
2580
|
-
top: (
|
|
2581
|
-
bottom: (w.bottom -
|
|
2582
|
-
left: (
|
|
2583
|
-
right: (w.right -
|
|
2580
|
+
top: (y.top - w.top + p.top) / v.y,
|
|
2581
|
+
bottom: (w.bottom - y.bottom + p.bottom) / v.y,
|
|
2582
|
+
left: (y.left - w.left + p.left) / v.x,
|
|
2583
|
+
right: (w.right - y.right + p.right) / v.x
|
|
2584
2584
|
};
|
|
2585
2585
|
}
|
|
2586
2586
|
const Ug = (t) => ({
|
|
@@ -2604,10 +2604,10 @@ const Ug = (t) => ({
|
|
|
2604
2604
|
const d = Hd(u), f = {
|
|
2605
2605
|
x: n,
|
|
2606
2606
|
y: r
|
|
2607
|
-
}, h = el(i), p = Qa(h),
|
|
2607
|
+
}, h = el(i), p = Qa(h), m = await s.getDimensions(c), g = h === "y", y = g ? "top" : "left", S = g ? "bottom" : "right", $ = g ? "clientHeight" : "clientWidth", v = o.reference[p] + o.reference[h] - f[h] - o.floating[p], w = f[h] - o.reference[h], b = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
|
|
2608
2608
|
let E = b ? b[$] : 0;
|
|
2609
2609
|
(!E || !await (s.isElement == null ? void 0 : s.isElement(b))) && (E = a.floating[$] || o.floating[p]);
|
|
2610
|
-
const I =
|
|
2610
|
+
const I = v / 2 - w / 2, N = E / 2 - m[p] / 2 - 1, D = Oi(d[y], N), V = Oi(d[S], N), Y = D, se = E - m[p] - V, U = E / 2 - m[p] / 2 + I, P = fa(Y, U, se), A = !l.arrow && Wi(i) != null && U !== P && o.reference[p] / 2 - (U < Y ? D : V) - m[p] / 2 < 0, z = A ? U < Y ? U - Y : U - se : 0;
|
|
2611
2611
|
return {
|
|
2612
2612
|
[h]: f[h] + z,
|
|
2613
2613
|
data: {
|
|
@@ -2639,16 +2639,16 @@ const Ug = (t) => ({
|
|
|
2639
2639
|
fallbackPlacements: f,
|
|
2640
2640
|
fallbackStrategy: h = "bestFit",
|
|
2641
2641
|
fallbackAxisSideDirection: p = "none",
|
|
2642
|
-
flipAlignment:
|
|
2643
|
-
...
|
|
2642
|
+
flipAlignment: m = !0,
|
|
2643
|
+
...g
|
|
2644
2644
|
} = Hi(t, e);
|
|
2645
2645
|
if ((n = o.arrow) != null && n.alignmentOffset)
|
|
2646
2646
|
return {};
|
|
2647
|
-
const
|
|
2648
|
-
!f && p !== "none" &&
|
|
2649
|
-
const w = [a, ...
|
|
2647
|
+
const y = lr(i), S = lr(a) === a, $ = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), v = f || (S || !m ? [Ao(a)] : zg(a));
|
|
2648
|
+
!f && p !== "none" && v.push(...Hg(a, m, p, $));
|
|
2649
|
+
const w = [a, ...v], b = await Wd(e, g), E = [];
|
|
2650
2650
|
let I = ((r = o.flip) == null ? void 0 : r.overflows) || [];
|
|
2651
|
-
if (u && E.push(b[
|
|
2651
|
+
if (u && E.push(b[y]), d) {
|
|
2652
2652
|
const Y = jg(i, s, $);
|
|
2653
2653
|
E.push(b[Y[0]], b[Y[1]]);
|
|
2654
2654
|
}
|
|
@@ -2755,13 +2755,13 @@ const Jg = function(t) {
|
|
|
2755
2755
|
mainAxis: o = !0,
|
|
2756
2756
|
crossAxis: s = !1,
|
|
2757
2757
|
limiter: a = {
|
|
2758
|
-
fn: (
|
|
2758
|
+
fn: (g) => {
|
|
2759
2759
|
let {
|
|
2760
|
-
x:
|
|
2760
|
+
x: y,
|
|
2761
2761
|
y: S
|
|
2762
|
-
} =
|
|
2762
|
+
} = g;
|
|
2763
2763
|
return {
|
|
2764
|
-
x:
|
|
2764
|
+
x: y,
|
|
2765
2765
|
y: S
|
|
2766
2766
|
};
|
|
2767
2767
|
}
|
|
@@ -2773,23 +2773,23 @@ const Jg = function(t) {
|
|
|
2773
2773
|
}, u = await Wd(e, l), d = Qo(lr(i)), f = Fd(d);
|
|
2774
2774
|
let h = c[f], p = c[d];
|
|
2775
2775
|
if (o) {
|
|
2776
|
-
const
|
|
2776
|
+
const g = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", S = h + u[g], $ = h - u[y];
|
|
2777
2777
|
h = fa(S, h, $);
|
|
2778
2778
|
}
|
|
2779
2779
|
if (s) {
|
|
2780
|
-
const
|
|
2780
|
+
const g = d === "y" ? "top" : "left", y = d === "y" ? "bottom" : "right", S = p + u[g], $ = p - u[y];
|
|
2781
2781
|
p = fa(S, p, $);
|
|
2782
2782
|
}
|
|
2783
|
-
const
|
|
2783
|
+
const m = a.fn({
|
|
2784
2784
|
...e,
|
|
2785
2785
|
[f]: h,
|
|
2786
2786
|
[d]: p
|
|
2787
2787
|
});
|
|
2788
2788
|
return {
|
|
2789
|
-
...
|
|
2789
|
+
...m,
|
|
2790
2790
|
data: {
|
|
2791
|
-
x:
|
|
2792
|
-
y:
|
|
2791
|
+
x: m.x - n,
|
|
2792
|
+
y: m.y - r
|
|
2793
2793
|
}
|
|
2794
2794
|
};
|
|
2795
2795
|
}
|
|
@@ -2931,10 +2931,10 @@ function Mi(t, e, n, r) {
|
|
|
2931
2931
|
let l = (i.left + a.x) / s.x, c = (i.top + a.y) / s.y, u = i.width / s.x, d = i.height / s.y;
|
|
2932
2932
|
if (o) {
|
|
2933
2933
|
const f = wt(o), h = r && Jt(r) ? wt(r) : r;
|
|
2934
|
-
let p = f,
|
|
2935
|
-
for (;
|
|
2936
|
-
const
|
|
2937
|
-
l *=
|
|
2934
|
+
let p = f, m = p.frameElement;
|
|
2935
|
+
for (; m && r && h !== p; ) {
|
|
2936
|
+
const g = Nr(m), y = m.getBoundingClientRect(), S = _t(m), $ = y.left + (m.clientLeft + parseFloat(S.paddingLeft)) * g.x, v = y.top + (m.clientTop + parseFloat(S.paddingTop)) * g.y;
|
|
2937
|
+
l *= g.x, c *= g.y, u *= g.x, d *= g.y, l += $, c += v, p = wt(m), m = p.frameElement;
|
|
2938
2938
|
}
|
|
2939
2939
|
}
|
|
2940
2940
|
return Eo({
|
|
@@ -3273,11 +3273,11 @@ const $0 = {
|
|
|
3273
3273
|
function u() {
|
|
3274
3274
|
o.disabled || (c.value = !1, h()), i("show"), document.dispatchEvent(new CustomEvent("submenu-open", { detail: { uuid: r } }));
|
|
3275
3275
|
}
|
|
3276
|
-
function d(
|
|
3276
|
+
function d(y) {
|
|
3277
3277
|
if (c.value)
|
|
3278
3278
|
u();
|
|
3279
3279
|
else {
|
|
3280
|
-
if (o.noCloseClasses.some((S) =>
|
|
3280
|
+
if (o.noCloseClasses.some((S) => y.target.closest(`.${S}`)))
|
|
3281
3281
|
return;
|
|
3282
3282
|
f();
|
|
3283
3283
|
}
|
|
@@ -3286,7 +3286,7 @@ const $0 = {
|
|
|
3286
3286
|
i("hide"), document.documentElement.style.overflow = null, document.querySelector("#app").style.overflow = null, c.value = !0;
|
|
3287
3287
|
}
|
|
3288
3288
|
async function h() {
|
|
3289
|
-
const
|
|
3289
|
+
const y = await tf(
|
|
3290
3290
|
a.value,
|
|
3291
3291
|
l.value,
|
|
3292
3292
|
{
|
|
@@ -3294,35 +3294,35 @@ const $0 = {
|
|
|
3294
3294
|
middleware: [ef(), Qd(), Xd(o.offset)]
|
|
3295
3295
|
}
|
|
3296
3296
|
);
|
|
3297
|
-
l.value.style.left = `${
|
|
3297
|
+
l.value.style.left = `${y.x}px`, l.value.style.top = `${y.y}px`;
|
|
3298
3298
|
}
|
|
3299
|
-
const p = (
|
|
3300
|
-
l.value && !l.value.contains(
|
|
3299
|
+
const p = (y) => {
|
|
3300
|
+
l.value && !l.value.contains(y.target) && a.value && !a.value.contains(y.target) && f();
|
|
3301
3301
|
};
|
|
3302
3302
|
en(() => {
|
|
3303
|
-
document.addEventListener("click", p), document.addEventListener("submenu-open", (
|
|
3304
|
-
|
|
3303
|
+
document.addEventListener("click", p), document.addEventListener("submenu-open", (y) => {
|
|
3304
|
+
y.detail.uuid !== r && f();
|
|
3305
3305
|
});
|
|
3306
3306
|
}), Go(() => {
|
|
3307
3307
|
document.removeEventListener("click", p), document.removeEventListener("submenu-open", f);
|
|
3308
3308
|
});
|
|
3309
|
-
function
|
|
3309
|
+
function m() {
|
|
3310
3310
|
o.hover && u();
|
|
3311
3311
|
}
|
|
3312
|
-
function
|
|
3312
|
+
function g() {
|
|
3313
3313
|
o.hover && f();
|
|
3314
3314
|
}
|
|
3315
|
-
return e({ hide: f }), (
|
|
3315
|
+
return e({ hide: f }), (y, S) => (x(), C($e, null, [
|
|
3316
3316
|
(x(), C("div", {
|
|
3317
3317
|
class: "flex-1",
|
|
3318
3318
|
key: `reference_${B(r)}`,
|
|
3319
3319
|
ref_key: "reference",
|
|
3320
3320
|
ref: a,
|
|
3321
|
-
onMouseenter:
|
|
3322
|
-
onMouseleave:
|
|
3321
|
+
onMouseenter: m,
|
|
3322
|
+
onMouseleave: g,
|
|
3323
3323
|
onClick: S[0] || (S[0] = Pr(($) => d($), ["stop"]))
|
|
3324
3324
|
}, [
|
|
3325
|
-
Me(
|
|
3325
|
+
Me(y.$slots, "default", { isHidden: c.value })
|
|
3326
3326
|
], 32)),
|
|
3327
3327
|
(x(), ve(Od, {
|
|
3328
3328
|
to: B(pe).popoverTarget
|
|
@@ -3340,7 +3340,7 @@ const $0 = {
|
|
|
3340
3340
|
"px-3 py-2": !t.custom && !t.expand
|
|
3341
3341
|
}])
|
|
3342
3342
|
}, [
|
|
3343
|
-
Me(
|
|
3343
|
+
Me(y.$slots, "content")
|
|
3344
3344
|
], 6))
|
|
3345
3345
|
], 8, ["to"]))
|
|
3346
3346
|
], 64));
|
|
@@ -3564,21 +3564,21 @@ function Yy(t, e, n) {
|
|
|
3564
3564
|
return r = i = void 0, c = b, s = t.apply(I, E), s;
|
|
3565
3565
|
}
|
|
3566
3566
|
function p(b) {
|
|
3567
|
-
return c = b, a = setTimeout(
|
|
3567
|
+
return c = b, a = setTimeout(y, e), u ? h(b) : s;
|
|
3568
3568
|
}
|
|
3569
|
-
function
|
|
3569
|
+
function m(b) {
|
|
3570
3570
|
var E = b - l, I = b - c, N = e - E;
|
|
3571
3571
|
return d ? Ky(N, o - I) : N;
|
|
3572
3572
|
}
|
|
3573
|
-
function
|
|
3573
|
+
function g(b) {
|
|
3574
3574
|
var E = b - l, I = b - c;
|
|
3575
3575
|
return l === void 0 || E >= e || E < 0 || d && I >= o;
|
|
3576
3576
|
}
|
|
3577
|
-
function
|
|
3577
|
+
function y() {
|
|
3578
3578
|
var b = Ms();
|
|
3579
|
-
if (
|
|
3579
|
+
if (g(b))
|
|
3580
3580
|
return S(b);
|
|
3581
|
-
a = setTimeout(
|
|
3581
|
+
a = setTimeout(y, m(b));
|
|
3582
3582
|
}
|
|
3583
3583
|
function S(b) {
|
|
3584
3584
|
return a = void 0, f && r ? h(b) : (r = i = void 0, s);
|
|
@@ -3586,20 +3586,20 @@ function Yy(t, e, n) {
|
|
|
3586
3586
|
function $() {
|
|
3587
3587
|
a !== void 0 && clearTimeout(a), c = 0, r = l = i = a = void 0;
|
|
3588
3588
|
}
|
|
3589
|
-
function
|
|
3589
|
+
function v() {
|
|
3590
3590
|
return a === void 0 ? s : S(Ms());
|
|
3591
3591
|
}
|
|
3592
3592
|
function w() {
|
|
3593
|
-
var b = Ms(), E =
|
|
3593
|
+
var b = Ms(), E = g(b);
|
|
3594
3594
|
if (r = arguments, i = this, l = b, E) {
|
|
3595
3595
|
if (a === void 0)
|
|
3596
3596
|
return p(l);
|
|
3597
3597
|
if (d)
|
|
3598
|
-
return clearTimeout(a), a = setTimeout(
|
|
3598
|
+
return clearTimeout(a), a = setTimeout(y, e), h(l);
|
|
3599
3599
|
}
|
|
3600
|
-
return a === void 0 && (a = setTimeout(
|
|
3600
|
+
return a === void 0 && (a = setTimeout(y, e)), s;
|
|
3601
3601
|
}
|
|
3602
|
-
return w.cancel = $, w.flush =
|
|
3602
|
+
return w.cancel = $, w.flush = v, w;
|
|
3603
3603
|
}
|
|
3604
3604
|
var Jy = Yy;
|
|
3605
3605
|
const sf = /* @__PURE__ */ Yi(Jy);
|
|
@@ -3863,24 +3863,24 @@ function jb(t, e, n, r, i, o) {
|
|
|
3863
3863
|
return c == e && u == t;
|
|
3864
3864
|
var d = -1, f = !0, h = n & _b ? new Bb() : void 0;
|
|
3865
3865
|
for (o.set(t, e), o.set(e, t); ++d < a; ) {
|
|
3866
|
-
var p = t[d],
|
|
3866
|
+
var p = t[d], m = e[d];
|
|
3867
3867
|
if (r)
|
|
3868
|
-
var
|
|
3869
|
-
if (
|
|
3870
|
-
if (
|
|
3868
|
+
var g = s ? r(m, p, d, e, t, o) : r(p, m, d, t, e, o);
|
|
3869
|
+
if (g !== void 0) {
|
|
3870
|
+
if (g)
|
|
3871
3871
|
continue;
|
|
3872
3872
|
f = !1;
|
|
3873
3873
|
break;
|
|
3874
3874
|
}
|
|
3875
3875
|
if (h) {
|
|
3876
|
-
if (!Pb(e, function(
|
|
3877
|
-
if (!Vb(h, S) && (p ===
|
|
3876
|
+
if (!Pb(e, function(y, S) {
|
|
3877
|
+
if (!Vb(h, S) && (p === y || i(p, y, n, r, o)))
|
|
3878
3878
|
return h.push(S);
|
|
3879
3879
|
})) {
|
|
3880
3880
|
f = !1;
|
|
3881
3881
|
break;
|
|
3882
3882
|
}
|
|
3883
|
-
} else if (!(p ===
|
|
3883
|
+
} else if (!(p === m || i(p, m, n, r, o))) {
|
|
3884
3884
|
f = !1;
|
|
3885
3885
|
break;
|
|
3886
3886
|
}
|
|
@@ -4077,24 +4077,24 @@ function vw(t, e, n, r, i, o) {
|
|
|
4077
4077
|
var h = o.get(t), p = o.get(e);
|
|
4078
4078
|
if (h && p)
|
|
4079
4079
|
return h == e && p == t;
|
|
4080
|
-
var
|
|
4080
|
+
var m = !0;
|
|
4081
4081
|
o.set(t, e), o.set(e, t);
|
|
4082
|
-
for (var
|
|
4082
|
+
for (var g = s; ++d < l; ) {
|
|
4083
4083
|
f = a[d];
|
|
4084
|
-
var
|
|
4084
|
+
var y = t[f], S = e[f];
|
|
4085
4085
|
if (r)
|
|
4086
|
-
var $ = s ? r(S,
|
|
4087
|
-
if (!($ === void 0 ?
|
|
4088
|
-
|
|
4086
|
+
var $ = s ? r(S, y, f, e, t, o) : r(y, S, f, t, e, o);
|
|
4087
|
+
if (!($ === void 0 ? y === S || i(y, S, n, r, o) : $)) {
|
|
4088
|
+
m = !1;
|
|
4089
4089
|
break;
|
|
4090
4090
|
}
|
|
4091
|
-
|
|
4091
|
+
g || (g = f == "constructor");
|
|
4092
4092
|
}
|
|
4093
|
-
if (
|
|
4094
|
-
var
|
|
4095
|
-
|
|
4093
|
+
if (m && !g) {
|
|
4094
|
+
var v = t.constructor, w = e.constructor;
|
|
4095
|
+
v != w && "constructor" in t && "constructor" in e && !(typeof v == "function" && v instanceof v && typeof w == "function" && w instanceof w) && (m = !1);
|
|
4096
4096
|
}
|
|
4097
|
-
return o.delete(t), o.delete(e),
|
|
4097
|
+
return o.delete(t), o.delete(e), m;
|
|
4098
4098
|
}
|
|
4099
4099
|
var bw = vw, xw = Xr, ww = tn, kw = xw(ww, "DataView"), Sw = kw, Cw = Xr, Ow = tn, Mw = Cw(Ow, "Promise"), Tw = Mw, $w = Xr, Aw = tn, Ew = $w(Aw, "Set"), Dw = Ew, Nw = Xr, Lw = tn, Iw = Nw(Lw, "WeakMap"), Bw = Iw, ma = Sw, ga = ll, ya = Tw, va = Dw, ba = Bw, gf = Ji, ni = cf, Cc = "[object Map]", Pw = "[object Object]", Oc = "[object Promise]", Mc = "[object Set]", Tc = "[object WeakMap]", $c = "[object DataView]", Vw = ni(ma), Rw = ni(ga), _w = ni(ya), jw = ni(va), zw = ni(ba), Kn = gf;
|
|
4100
4100
|
(ma && Kn(new ma(new ArrayBuffer(1))) != $c || ga && Kn(new ga()) != Cc || ya && Kn(ya.resolve()) != Oc || va && Kn(new va()) != Mc || ba && Kn(new ba()) != Tc) && (Kn = function(t) {
|
|
@@ -4129,8 +4129,8 @@ function Jw(t, e, n, r, i, o) {
|
|
|
4129
4129
|
if (!(n & Kw)) {
|
|
4130
4130
|
var h = u && Ic.call(t, "__wrapped__"), p = d && Ic.call(e, "__wrapped__");
|
|
4131
4131
|
if (h || p) {
|
|
4132
|
-
var
|
|
4133
|
-
return o || (o = new As()), i(
|
|
4132
|
+
var m = h ? t.value() : t, g = p ? e.value() : e;
|
|
4133
|
+
return o || (o = new As()), i(m, g, n, r, o);
|
|
4134
4134
|
}
|
|
4135
4135
|
}
|
|
4136
4136
|
return f ? (o || (o = new As()), qw(t, e, n, r, i, o)) : !1;
|
|
@@ -4196,37 +4196,37 @@ const Pc = /* @__PURE__ */ Yi(tk), nk = {
|
|
|
4196
4196
|
setup(t, { expose: e, emit: n }) {
|
|
4197
4197
|
const r = t, i = te(!1), o = te(r.options);
|
|
4198
4198
|
Pe(() => r.options, () => {
|
|
4199
|
-
var
|
|
4200
|
-
(
|
|
4199
|
+
var v;
|
|
4200
|
+
(v = r.options) != null && v.length && (o.value = [...r.options]);
|
|
4201
4201
|
}, {
|
|
4202
4202
|
immediate: !0,
|
|
4203
4203
|
deep: !0
|
|
4204
4204
|
});
|
|
4205
4205
|
const s = n, a = te(), l = te();
|
|
4206
|
-
function c(
|
|
4206
|
+
function c(v) {
|
|
4207
4207
|
var w, b;
|
|
4208
4208
|
if (r.multiple) {
|
|
4209
|
-
if (
|
|
4209
|
+
if (v) {
|
|
4210
4210
|
let E = r.modelValue || [];
|
|
4211
|
-
E.indexOf(
|
|
4211
|
+
E.indexOf(v) >= 0 ? E.splice(E.indexOf(v), 1) : E.push(v), s("update:modelValue", E), h(E), ((w = r.modelValue) == null ? void 0 : w.length) === ((b = r.options) == null ? void 0 : b.length) ? i.value = !0 : i.value = !1;
|
|
4212
4212
|
}
|
|
4213
4213
|
} else
|
|
4214
|
-
s("update:modelValue",
|
|
4214
|
+
s("update:modelValue", v), h(v), a.value = null, l.value.hide();
|
|
4215
4215
|
}
|
|
4216
|
-
async function u(
|
|
4216
|
+
async function u(v) {
|
|
4217
4217
|
var w, b;
|
|
4218
|
-
s("update:modelValue",
|
|
4218
|
+
s("update:modelValue", v), h(v), await nt(), ((w = r.modelValue) == null ? void 0 : w.length) === ((b = r.options) == null ? void 0 : b.length) && (i.value = !0);
|
|
4219
4219
|
}
|
|
4220
|
-
function d(
|
|
4221
|
-
s("update:modelValue",
|
|
4220
|
+
function d(v) {
|
|
4221
|
+
s("update:modelValue", v), i.value = !1, h(v);
|
|
4222
4222
|
}
|
|
4223
4223
|
function f() {
|
|
4224
4224
|
i.value = !1, r.multiple ? (s("update:modelValue", []), h([])) : (s("update:modelValue", null), h(null));
|
|
4225
4225
|
}
|
|
4226
|
-
const h = sf(function(
|
|
4227
|
-
s("change",
|
|
4226
|
+
const h = sf(function(v) {
|
|
4227
|
+
s("change", v);
|
|
4228
4228
|
}, r.debounce), p = de(() => {
|
|
4229
|
-
var
|
|
4229
|
+
var v, w, b, E;
|
|
4230
4230
|
if (r.multiple)
|
|
4231
4231
|
if (r.maxDisplay) {
|
|
4232
4232
|
let I = (w = o.value) == null ? void 0 : w.filter((D) => {
|
|
@@ -4235,30 +4235,30 @@ const Pc = /* @__PURE__ */ Yi(tk), nk = {
|
|
|
4235
4235
|
}).map((D) => D.label), N = I == null ? void 0 : I.slice(0, r.maxDisplay);
|
|
4236
4236
|
return (I == null ? void 0 : I.length) - (N == null ? void 0 : N.length) > 0 ? (N == null ? void 0 : N.join(", ")) + ` (+${(I == null ? void 0 : I.length) - N.length})` : N == null ? void 0 : N.join(", ");
|
|
4237
4237
|
} else
|
|
4238
|
-
return (
|
|
4238
|
+
return (v = o.value) == null ? void 0 : v.filter((I) => {
|
|
4239
4239
|
var N;
|
|
4240
4240
|
return ((N = r.modelValue) == null ? void 0 : N.indexOf(I.value)) >= 0;
|
|
4241
4241
|
}).map((I) => I.label).join(", ");
|
|
4242
4242
|
else
|
|
4243
4243
|
return ((E = (b = o.value) == null ? void 0 : b.find((I) => I.value === r.modelValue)) == null ? void 0 : E.label) || r.modelValue;
|
|
4244
4244
|
});
|
|
4245
|
-
function
|
|
4245
|
+
function m(v) {
|
|
4246
4246
|
var w;
|
|
4247
4247
|
try {
|
|
4248
|
-
return r.multiple ? r.modelValue !== null && ((w = r.modelValue) == null ? void 0 : w.some((b) => Pc(b,
|
|
4248
|
+
return r.multiple ? r.modelValue !== null && ((w = r.modelValue) == null ? void 0 : w.some((b) => Pc(b, v))) : r.modelValue !== null && Pc(v, r.modelValue);
|
|
4249
4249
|
} catch (b) {
|
|
4250
4250
|
return console.log(b), !1;
|
|
4251
4251
|
}
|
|
4252
4252
|
}
|
|
4253
|
-
const
|
|
4253
|
+
const g = {
|
|
4254
4254
|
pmi: "group-[.is-selected]:bg-violet-50 hover:group-[.is-selected]:bg-violet-100",
|
|
4255
4255
|
"wpic-tools": "hover:bg-gray-50 group-[.is-selected]:text-lime-500 group-[.is-selected]:font-medium text-gray-600 dark:hover:bg-white/5 dark:text-gray-400 dark:group-[.is-selected]:text-lime-700"
|
|
4256
|
-
},
|
|
4257
|
-
var
|
|
4258
|
-
return ((
|
|
4256
|
+
}, y = de(() => {
|
|
4257
|
+
var v, w;
|
|
4258
|
+
return ((v = r.modelValue) == null ? void 0 : v.length) === ((w = r.options) == null ? void 0 : w.length);
|
|
4259
4259
|
}), S = de(() => {
|
|
4260
|
-
var
|
|
4261
|
-
if (r.filterable && !r.remoteMethod && ((
|
|
4260
|
+
var v;
|
|
4261
|
+
if (r.filterable && !r.remoteMethod && ((v = a.value) != null && v.trim().length)) {
|
|
4262
4262
|
const w = a.value.trim().toLowerCase();
|
|
4263
4263
|
return r.options.filter(
|
|
4264
4264
|
(b) => {
|
|
@@ -4274,8 +4274,8 @@ const Pc = /* @__PURE__ */ Yi(tk), nk = {
|
|
|
4274
4274
|
}
|
|
4275
4275
|
return e({
|
|
4276
4276
|
allSelected: i,
|
|
4277
|
-
isAllSelected:
|
|
4278
|
-
}), (
|
|
4277
|
+
isAllSelected: y
|
|
4278
|
+
}), (v, w) => (x(), ve(mr, {
|
|
4279
4279
|
custom: "",
|
|
4280
4280
|
ref_key: "myPopover",
|
|
4281
4281
|
ref: l,
|
|
@@ -4298,12 +4298,12 @@ const Pc = /* @__PURE__ */ Yi(tk), nk = {
|
|
|
4298
4298
|
class: G(["select-none w-full text-left flex-1", { "whitespace-pre": !t.multiple }])
|
|
4299
4299
|
}, [
|
|
4300
4300
|
t.modelValue && (!t.multiple || t.multiple && ((E = t.modelValue) == null ? void 0 : E.length) > 0) && !t.hideSelect ? (x(), C("span", nk, [
|
|
4301
|
-
|
|
4301
|
+
y.value && ((I = t.allSelectedText) != null && I.length) ? (x(), C($e, { key: 0 }, [
|
|
4302
4302
|
Ie(be(t.allSelectedText) + " (" + be((N = t.options) == null ? void 0 : N.length) + ")", 1)
|
|
4303
4303
|
], 64)) : (x(), C($e, { key: 1 }, [
|
|
4304
4304
|
Ie(be(p.value), 1)
|
|
4305
4305
|
], 64))
|
|
4306
|
-
])) : !t.multiple && ((D = t.options) != null && D.find((se) => se.value === null)) ? (x(), C("span", rk, be((Y = (V = t.options) == null ? void 0 : V.find((se) => se.value === null)) == null ? void 0 : Y.label), 1)) : Me(
|
|
4306
|
+
])) : !t.multiple && ((D = t.options) != null && D.find((se) => se.value === null)) ? (x(), C("span", rk, be((Y = (V = t.options) == null ? void 0 : V.find((se) => se.value === null)) == null ? void 0 : Y.label), 1)) : Me(v.$slots, "default", { key: 2 }, () => [
|
|
4307
4307
|
Ie(be(t.placeholder), 1)
|
|
4308
4308
|
])
|
|
4309
4309
|
], 2),
|
|
@@ -4354,12 +4354,12 @@ const Pc = /* @__PURE__ */ Yi(tk), nk = {
|
|
|
4354
4354
|
}, "Select none")
|
|
4355
4355
|
])) : re("", !0),
|
|
4356
4356
|
(x(!0), C($e, null, We(S.value, (E) => (x(), C("div", {
|
|
4357
|
-
class: G(["group", { "is-selected": !!
|
|
4357
|
+
class: G(["group", { "is-selected": !!m(E.value) }])
|
|
4358
4358
|
}, [
|
|
4359
4359
|
T("div", {
|
|
4360
4360
|
class: G(["flex items-center py-2 px-4 min-w-64 text-base", {
|
|
4361
4361
|
"cursor-pointer": !t.multiple || E.value,
|
|
4362
|
-
[`${
|
|
4362
|
+
[`${g[B(pe).theme]}`]: !0
|
|
4363
4363
|
}]),
|
|
4364
4364
|
onClick: (I) => E.disabled ? null : c(E.value)
|
|
4365
4365
|
}, [
|
|
@@ -4367,7 +4367,7 @@ const Pc = /* @__PURE__ */ Yi(tk), nk = {
|
|
|
4367
4367
|
T("span", {
|
|
4368
4368
|
class: G(["", { "opacity-25": E.disabled }])
|
|
4369
4369
|
}, be(E.label || E.value), 3),
|
|
4370
|
-
t.multiple &&
|
|
4370
|
+
t.multiple && m(E.value) ? (x(), ve(nf, {
|
|
4371
4371
|
key: 0,
|
|
4372
4372
|
class: "w-4 h-4"
|
|
4373
4373
|
})) : re("", !0)
|
|
@@ -4753,22 +4753,22 @@ const Vk = /* @__PURE__ */ ye(Nk, [["render", Pk]]), Rk = { class: "flex items-c
|
|
|
4753
4753
|
S(V);
|
|
4754
4754
|
}
|
|
4755
4755
|
const p = n;
|
|
4756
|
-
function
|
|
4756
|
+
function m(D) {
|
|
4757
4757
|
D === !0 || D === !1 ? p("update:modelValue", !D) : p("update:modelValue", D);
|
|
4758
4758
|
}
|
|
4759
|
-
function
|
|
4759
|
+
function g(D) {
|
|
4760
4760
|
let V = D && D.target ? D.target.value : D;
|
|
4761
4761
|
p("update:modelValue", V), p("onChange", V);
|
|
4762
4762
|
}
|
|
4763
|
-
function
|
|
4763
|
+
function y() {
|
|
4764
4764
|
p("update:modelValue", null), p("onChange", null), p("onClear");
|
|
4765
4765
|
}
|
|
4766
4766
|
const S = sf(function(D) {
|
|
4767
4767
|
p("update:modelValue", D), p("onChange", D);
|
|
4768
|
-
}, o.debounce), $ = te(null),
|
|
4768
|
+
}, o.debounce), $ = te(null), v = te();
|
|
4769
4769
|
function w() {
|
|
4770
4770
|
var D, V;
|
|
4771
|
-
o.textarea ? (D =
|
|
4771
|
+
o.textarea ? (D = v.value) == null || D.focus() : (V = $.value) == null || V.$el.focus();
|
|
4772
4772
|
}
|
|
4773
4773
|
function b() {
|
|
4774
4774
|
return $.value.meta.valid;
|
|
@@ -4830,7 +4830,7 @@ const Vk = /* @__PURE__ */ ye(Nk, [["render", Pk]]), Rk = { class: "flex items-c
|
|
|
4830
4830
|
"is-active": !t.disabled && !t.modelValue,
|
|
4831
4831
|
"is-selected": t.modelValue === !0
|
|
4832
4832
|
}]),
|
|
4833
|
-
onClick: V[0] || (V[0] = (se) => t.disabled ? void 0 :
|
|
4833
|
+
onClick: V[0] || (V[0] = (se) => t.disabled ? void 0 : m(t.modelValue))
|
|
4834
4834
|
}, [
|
|
4835
4835
|
T("div", {
|
|
4836
4836
|
class: G(["w-4 h-4 border dark:border-gray-800 cursor-pointer", {
|
|
@@ -4860,7 +4860,7 @@ const Vk = /* @__PURE__ */ ye(Nk, [["render", Pk]]), Rk = { class: "flex items-c
|
|
|
4860
4860
|
default: Se(({ field: Y }) => [
|
|
4861
4861
|
T("div", {
|
|
4862
4862
|
onClick: V[2] || (V[2] = () => {
|
|
4863
|
-
t.disabled ||
|
|
4863
|
+
t.disabled || g(t.radioValue);
|
|
4864
4864
|
}),
|
|
4865
4865
|
class: G([{ "cursor-pointer": !t.disabled }, "inline-flex items-center gap-2 select-none"])
|
|
4866
4866
|
}, [
|
|
@@ -4902,7 +4902,7 @@ const Vk = /* @__PURE__ */ ye(Nk, [["render", Pk]]), Rk = { class: "flex items-c
|
|
|
4902
4902
|
ref_key: "myChoiceList",
|
|
4903
4903
|
ref: E,
|
|
4904
4904
|
modelValue: t.modelValue,
|
|
4905
|
-
"onUpdate:modelValue":
|
|
4905
|
+
"onUpdate:modelValue": g,
|
|
4906
4906
|
disabled: t.disabled,
|
|
4907
4907
|
options: t.options,
|
|
4908
4908
|
small: t.small,
|
|
@@ -4937,7 +4937,7 @@ const Vk = /* @__PURE__ */ ye(Nk, [["render", Pk]]), Rk = { class: "flex items-c
|
|
|
4937
4937
|
le(wf, {
|
|
4938
4938
|
placeholder: t.placeholder,
|
|
4939
4939
|
modelValue: t.modelValue,
|
|
4940
|
-
"onUpdate:modelValue":
|
|
4940
|
+
"onUpdate:modelValue": g
|
|
4941
4941
|
}, null, 8, ["placeholder", "modelValue"])
|
|
4942
4942
|
]),
|
|
4943
4943
|
_: 1
|
|
@@ -4952,7 +4952,7 @@ const Vk = /* @__PURE__ */ ye(Nk, [["render", Pk]]), Rk = { class: "flex items-c
|
|
|
4952
4952
|
default: Se(({ field: Y }) => [
|
|
4953
4953
|
le(bf, {
|
|
4954
4954
|
modelValue: t.modelValue,
|
|
4955
|
-
"onUpdate:modelValue":
|
|
4955
|
+
"onUpdate:modelValue": g,
|
|
4956
4956
|
label: l.value,
|
|
4957
4957
|
disabled: t.disabled
|
|
4958
4958
|
}, null, 8, ["modelValue", "label", "disabled"])
|
|
@@ -4993,7 +4993,7 @@ const Vk = /* @__PURE__ */ ye(Nk, [["render", Pk]]), Rk = { class: "flex items-c
|
|
|
4993
4993
|
return [
|
|
4994
4994
|
le(xf, {
|
|
4995
4995
|
ref_key: "myTextarea",
|
|
4996
|
-
ref:
|
|
4996
|
+
ref: v,
|
|
4997
4997
|
modelValue: t.modelValue,
|
|
4998
4998
|
"onUpdate:modelValue": h,
|
|
4999
4999
|
rows: t.rows,
|
|
@@ -5038,13 +5038,13 @@ const Vk = /* @__PURE__ */ ye(Nk, [["render", Pk]]), Rk = { class: "flex items-c
|
|
|
5038
5038
|
}, null, 8, ["class", "type", "min", "max", "rows", "name", "disabled", "modelValue", "no-data-text", "placeholder", "validateOnInput", "rules"])),
|
|
5039
5039
|
t.loading ? (x(), C("div", {
|
|
5040
5040
|
key: 3,
|
|
5041
|
-
onClick: Pr(
|
|
5041
|
+
onClick: Pr(y, ["stop"]),
|
|
5042
5042
|
class: "absolute right-0 mr-3 h-full flex items-center cursor-pointer opacity-75 hover:opacity-100"
|
|
5043
5043
|
}, [
|
|
5044
5044
|
le(Gr, { class: "w-6 h-6 opacity-50" })
|
|
5045
5045
|
])) : t.clearable && t.modelValue ? (x(), C("div", {
|
|
5046
5046
|
key: 4,
|
|
5047
|
-
onClick: Pr(
|
|
5047
|
+
onClick: Pr(y, ["stop"]),
|
|
5048
5048
|
style: { "z-index": "2" },
|
|
5049
5049
|
class: "absolute right-0 mr-3 h-full flex items-center cursor-pointer opacity-75 hover:opacity-100"
|
|
5050
5050
|
}, [
|
|
@@ -5510,10 +5510,10 @@ const Tf = /* @__PURE__ */ ye(_5, [["render", H5]]), W5 = { class: "wpic-paginat
|
|
|
5510
5510
|
const d = r.currentPage, f = 1;
|
|
5511
5511
|
let h = Math.max(2, d - f), p = Math.min(u - 1, d + f);
|
|
5512
5512
|
d <= f + 2 && (h = 2, p = Math.min(2 * f + 2, u - 1)), d >= u - f - 1 && (h = Math.max(2, u - 2 * f - 1), p = u - 1);
|
|
5513
|
-
const
|
|
5514
|
-
for (let
|
|
5515
|
-
|
|
5516
|
-
return h > 2 &&
|
|
5513
|
+
const m = [];
|
|
5514
|
+
for (let g = h; g <= p; g++)
|
|
5515
|
+
m.push(g);
|
|
5516
|
+
return h > 2 && m.unshift("..."), p < u - 1 && m.push("..."), [1, ...m, u];
|
|
5517
5517
|
});
|
|
5518
5518
|
function a(u) {
|
|
5519
5519
|
u >= 1 && u <= o.value && i("update:currentPage", u);
|
|
@@ -5712,12 +5712,12 @@ const lS = /* @__PURE__ */ ye(rS, [["render", aS]]), cS = { class: "overflow-aut
|
|
|
5712
5712
|
"wpic-tools": "bg-gray-900/10"
|
|
5713
5713
|
}, d = n;
|
|
5714
5714
|
en(() => {
|
|
5715
|
-
|
|
5715
|
+
m();
|
|
5716
5716
|
});
|
|
5717
5717
|
const f = mn();
|
|
5718
5718
|
Si("wtable", f == null ? void 0 : f.proxy);
|
|
5719
5719
|
const h = Gp(), p = te([]);
|
|
5720
|
-
function
|
|
5720
|
+
function m() {
|
|
5721
5721
|
const $ = (b, E) => {
|
|
5722
5722
|
let I = {};
|
|
5723
5723
|
for (let N in b) {
|
|
@@ -5737,14 +5737,14 @@ const lS = /* @__PURE__ */ ye(rS, [["render", aS]]), cS = { class: "overflow-aut
|
|
|
5737
5737
|
}
|
|
5738
5738
|
return I;
|
|
5739
5739
|
};
|
|
5740
|
-
let
|
|
5740
|
+
let v = [];
|
|
5741
5741
|
(h.default && h.default() || []).forEach((b) => {
|
|
5742
5742
|
var E, I;
|
|
5743
|
-
((E = b.type) == null ? void 0 : E.name) === "WpicTableColumn" ?
|
|
5743
|
+
((E = b.type) == null ? void 0 : E.name) === "WpicTableColumn" ? v.push(b) : (I = b.children) != null && I.length && b.children.forEach((N) => {
|
|
5744
5744
|
var D;
|
|
5745
|
-
((D = N.type) == null ? void 0 : D.name) === "WpicTableColumn" &&
|
|
5745
|
+
((D = N.type) == null ? void 0 : D.name) === "WpicTableColumn" && v.push(N);
|
|
5746
5746
|
});
|
|
5747
|
-
}), p.value =
|
|
5747
|
+
}), p.value = v.map((b) => {
|
|
5748
5748
|
let E = b.children, I = b.props || {}, { field: N, label: D, help: V, width: Y, minWidth: se, maxWidth: U, sortable: P, selectable: A, render: z, type: _, align: ee, visible: ie, noPadding: L } = $(b.type.props, I);
|
|
5749
5749
|
return {
|
|
5750
5750
|
label: D,
|
|
@@ -5764,23 +5764,23 @@ const lS = /* @__PURE__ */ ye(rS, [["render", aS]]), cS = { class: "overflow-aut
|
|
|
5764
5764
|
};
|
|
5765
5765
|
}).filter((b) => b.visible || b.selectable);
|
|
5766
5766
|
}
|
|
5767
|
-
function
|
|
5767
|
+
function g($) {
|
|
5768
5768
|
var w, b;
|
|
5769
|
-
let
|
|
5770
|
-
((b = r.sortOptions) == null ? void 0 : b.sortBy) === $ && (
|
|
5769
|
+
let v = (w = r.sortOptions) == null ? void 0 : w.sortDirection;
|
|
5770
|
+
((b = r.sortOptions) == null ? void 0 : b.sortBy) === $ && (v = v === "asc" ? "desc" : "asc"), d("changeSort", { sortDirection: v, sortBy: $ });
|
|
5771
5771
|
}
|
|
5772
5772
|
Pe(() => h.default, ($) => {
|
|
5773
|
-
|
|
5773
|
+
m();
|
|
5774
5774
|
}, {
|
|
5775
5775
|
deep: !0
|
|
5776
5776
|
}), e({
|
|
5777
|
-
buildColumns:
|
|
5777
|
+
buildColumns: m
|
|
5778
5778
|
});
|
|
5779
|
-
const
|
|
5780
|
-
function S({ index: $, item:
|
|
5781
|
-
|
|
5779
|
+
const y = Ln({});
|
|
5780
|
+
function S({ index: $, item: v }) {
|
|
5781
|
+
y[$] ? y[$] = null : (y[$] = !0, d("expandRow", { index: $, item: v }));
|
|
5782
5782
|
}
|
|
5783
|
-
return ($,
|
|
5783
|
+
return ($, v) => (x(), C("div", {
|
|
5784
5784
|
class: G(["wpic-table relative w-full rounded-lg overflow-hidden", {
|
|
5785
5785
|
"no-radius rounded-none": t.noRadius,
|
|
5786
5786
|
border: t.border,
|
|
@@ -5819,7 +5819,7 @@ const lS = /* @__PURE__ */ ye(rS, [["render", aS]]), cS = { class: "overflow-aut
|
|
|
5819
5819
|
}, [
|
|
5820
5820
|
T("div", {
|
|
5821
5821
|
onClick: () => {
|
|
5822
|
-
w.sortable &&
|
|
5822
|
+
w.sortable && g(w.field);
|
|
5823
5823
|
},
|
|
5824
5824
|
class: G(["flex items-center lg:text-base rounded-lg", {
|
|
5825
5825
|
"py-3": !t.small,
|
|
@@ -5890,7 +5890,7 @@ const lS = /* @__PURE__ */ ye(rS, [["render", aS]]), cS = { class: "overflow-aut
|
|
|
5890
5890
|
onClick: (Y) => S({ item: w, index: b })
|
|
5891
5891
|
}, {
|
|
5892
5892
|
default: Se(() => [
|
|
5893
|
-
|
|
5893
|
+
y[b] ? (x(), ve(Vk, {
|
|
5894
5894
|
key: 0,
|
|
5895
5895
|
class: "w-4 h-4"
|
|
5896
5896
|
})) : (x(), ve(lS, {
|
|
@@ -5950,7 +5950,7 @@ const lS = /* @__PURE__ */ ye(rS, [["render", aS]]), cS = { class: "overflow-aut
|
|
|
5950
5950
|
item: w
|
|
5951
5951
|
}, null, 8, ["class", "column", "rowIndex", "colspan", "item"])
|
|
5952
5952
|
], 2)), [
|
|
5953
|
-
[sa,
|
|
5953
|
+
[sa, y[b]]
|
|
5954
5954
|
]) : re("", !0)
|
|
5955
5955
|
], 64);
|
|
5956
5956
|
}), 128))
|
|
@@ -8932,8 +8932,8 @@ class vt {
|
|
|
8932
8932
|
let f = c ? e == l ? -1 : e == d ? 1 : n : n, h = l + i + (f < 0 ? 0 : u);
|
|
8933
8933
|
if (r)
|
|
8934
8934
|
return h;
|
|
8935
|
-
let p = e == (n < 0 ? l : d) ? null : KS(a / 3, e - l),
|
|
8936
|
-
return (n < 0 ? e != l : e != d) && (
|
|
8935
|
+
let p = e == (n < 0 ? l : d) ? null : KS(a / 3, e - l), m = e == l ? Gf : e == d ? Jf : bo;
|
|
8936
|
+
return (n < 0 ? e != l : e != d) && (m |= Zf), new Oa(h, m, p);
|
|
8937
8937
|
}
|
|
8938
8938
|
i += u - c;
|
|
8939
8939
|
}
|
|
@@ -9469,8 +9469,8 @@ function JS(t, e, n, r) {
|
|
|
9469
9469
|
let d = l.marks;
|
|
9470
9470
|
if (!r.isInSet(d) && u.type.allowsMarkType(r.type)) {
|
|
9471
9471
|
let f = Math.max(c, e), h = Math.min(c + l.nodeSize, n), p = r.addToSet(d);
|
|
9472
|
-
for (let
|
|
9473
|
-
d[
|
|
9472
|
+
for (let m = 0; m < d.length; m++)
|
|
9473
|
+
d[m].isInSet(p) || (s && s.to == f && s.mark.eq(d[m]) ? s.to = h : i.push(s = new Kt(f, h, d[m])));
|
|
9474
9474
|
a && a.to == f ? a.to = h : o.push(a = new On(f, h, r));
|
|
9475
9475
|
}
|
|
9476
9476
|
}), i.forEach((l) => t.step(l)), o.forEach((l) => t.step(l));
|
|
@@ -9541,11 +9541,11 @@ function ri(t) {
|
|
|
9541
9541
|
}
|
|
9542
9542
|
function XS(t, e, n) {
|
|
9543
9543
|
let { $from: r, $to: i, depth: o } = e, s = r.before(o + 1), a = i.after(o + 1), l = s, c = a, u = H.empty, d = 0;
|
|
9544
|
-
for (let p = o,
|
|
9545
|
-
|
|
9544
|
+
for (let p = o, m = !1; p > n; p--)
|
|
9545
|
+
m || r.index(p) > 0 ? (m = !0, u = H.from(r.node(p).copy(u)), d++) : l--;
|
|
9546
9546
|
let f = H.empty, h = 0;
|
|
9547
|
-
for (let p = o,
|
|
9548
|
-
|
|
9547
|
+
for (let p = o, m = !1; p > n; p--)
|
|
9548
|
+
m || i.after(p + 1) < i.end(p) ? (m = !0, f = H.from(i.node(p).copy(f)), h++) : c++;
|
|
9549
9549
|
t.step(new Ke(l, c, s, a, new Z(u.append(f), d, h), u.size - d, !0));
|
|
9550
9550
|
}
|
|
9551
9551
|
function fl(t, e, n = null, r = t) {
|
|
@@ -9648,8 +9648,8 @@ function hn(t, e, n = 1, r) {
|
|
|
9648
9648
|
return !1;
|
|
9649
9649
|
let h = d.content.cutByIndex(f, d.childCount), p = r && r[u + 1];
|
|
9650
9650
|
p && (h = h.replaceChild(0, p.type.create(p.attrs)));
|
|
9651
|
-
let
|
|
9652
|
-
if (!d.canReplace(f + 1, d.childCount) || !
|
|
9651
|
+
let m = r && r[u] || d;
|
|
9652
|
+
if (!d.canReplace(f + 1, d.childCount) || !m.type.validContent(h))
|
|
9653
9653
|
return !1;
|
|
9654
9654
|
}
|
|
9655
9655
|
let a = i.indexAfter(o), l = r && r[0];
|
|
@@ -9841,26 +9841,26 @@ class cC {
|
|
|
9841
9841
|
for (; this.depth > n; )
|
|
9842
9842
|
this.closeFrontierNode();
|
|
9843
9843
|
if (o)
|
|
9844
|
-
for (let
|
|
9845
|
-
this.openFrontierNode(o[
|
|
9844
|
+
for (let m = 0; m < o.length; m++)
|
|
9845
|
+
this.openFrontierNode(o[m]);
|
|
9846
9846
|
let s = this.unplaced, a = r ? r.content : s.content, l = s.openStart - e, c = 0, u = [], { match: d, type: f } = this.frontier[n];
|
|
9847
9847
|
if (i) {
|
|
9848
|
-
for (let
|
|
9849
|
-
u.push(i.child(
|
|
9848
|
+
for (let m = 0; m < i.childCount; m++)
|
|
9849
|
+
u.push(i.child(m));
|
|
9850
9850
|
d = d.matchFragment(i);
|
|
9851
9851
|
}
|
|
9852
9852
|
let h = a.size + e - (s.content.size - s.openEnd);
|
|
9853
9853
|
for (; c < a.childCount; ) {
|
|
9854
|
-
let
|
|
9855
|
-
if (!
|
|
9854
|
+
let m = a.child(c), g = d.matchType(m.type);
|
|
9855
|
+
if (!g)
|
|
9856
9856
|
break;
|
|
9857
|
-
c++, (c > 1 || l == 0 ||
|
|
9857
|
+
c++, (c > 1 || l == 0 || m.content.size) && (d = g, u.push(rh(m.mark(f.allowedMarks(m.marks)), c == 1 ? l : 0, c == a.childCount ? h : -1)));
|
|
9858
9858
|
}
|
|
9859
9859
|
let p = c == a.childCount;
|
|
9860
9860
|
p || (h = -1), this.placed = fi(this.placed, n, H.from(u)), this.frontier[n].match = d, p && h < 0 && r && r.type == this.frontier[this.depth].type && this.frontier.length > 1 && this.closeFrontierNode();
|
|
9861
|
-
for (let
|
|
9862
|
-
let
|
|
9863
|
-
this.frontier.push({ type:
|
|
9861
|
+
for (let m = 0, g = a; m < h; m++) {
|
|
9862
|
+
let y = g.lastChild;
|
|
9863
|
+
this.frontier.push({ type: y.type, match: y.contentMatchAt(y.childCount) }), g = y.content;
|
|
9864
9864
|
}
|
|
9865
9865
|
this.unplaced = p ? e == 0 ? Z.empty : new Z(di(s.content, e - 1, 1), e - 1, h < 0 ? s.openEnd : e - 1) : new Z(di(s.content, e, c), s.openStart, s.openEnd);
|
|
9866
9866
|
}
|
|
@@ -9976,12 +9976,12 @@ function fC(t, e, n, r) {
|
|
|
9976
9976
|
for (let f = r.openStart; f >= 0; f--) {
|
|
9977
9977
|
let h = (f + u + 1) % (r.openStart + 1), p = c[h];
|
|
9978
9978
|
if (p)
|
|
9979
|
-
for (let
|
|
9980
|
-
let
|
|
9981
|
-
|
|
9982
|
-
let S = i.node(
|
|
9979
|
+
for (let m = 0; m < s.length; m++) {
|
|
9980
|
+
let g = s[(m + l) % s.length], y = !0;
|
|
9981
|
+
g < 0 && (y = !1, g = -g);
|
|
9982
|
+
let S = i.node(g - 1), $ = i.index(g - 1);
|
|
9983
9983
|
if (S.canReplaceWith($, $, p.type, p.marks))
|
|
9984
|
-
return t.replace(i.before(
|
|
9984
|
+
return t.replace(i.before(g), y ? o.after(g) : n, new Z(ih(r.content, 0, r.openStart, h), h, r.openEnd));
|
|
9985
9985
|
}
|
|
9986
9986
|
}
|
|
9987
9987
|
let d = t.steps.length;
|
|
@@ -11291,8 +11291,8 @@ function su(t, e, n) {
|
|
|
11291
11291
|
else {
|
|
11292
11292
|
let f = a.scrollLeft, h = a.scrollTop;
|
|
11293
11293
|
d && (a.scrollTop += d), u && (a.scrollLeft += u);
|
|
11294
|
-
let p = a.scrollLeft - f,
|
|
11295
|
-
e = { left: e.left - p, top: e.top -
|
|
11294
|
+
let p = a.scrollLeft - f, m = a.scrollTop - h;
|
|
11295
|
+
e = { left: e.left - p, top: e.top - m, right: e.right - p, bottom: e.bottom - m };
|
|
11296
11296
|
}
|
|
11297
11297
|
if (l || /^(fixed|sticky)$/.test(getComputedStyle(s).position))
|
|
11298
11298
|
break;
|
|
@@ -11355,12 +11355,12 @@ function fh(t, e) {
|
|
|
11355
11355
|
let p = f[h];
|
|
11356
11356
|
if (p.top <= s && p.bottom >= a) {
|
|
11357
11357
|
s = Math.max(p.bottom, s), a = Math.min(p.top, a);
|
|
11358
|
-
let
|
|
11359
|
-
if (
|
|
11360
|
-
n = u, r =
|
|
11358
|
+
let m = p.left > e.left ? p.left - e.left : p.right < e.left ? e.left - p.right : 0;
|
|
11359
|
+
if (m < r) {
|
|
11360
|
+
n = u, r = m, i = m && n.nodeType == 3 ? {
|
|
11361
11361
|
left: p.right < e.left ? p.right : p.left,
|
|
11362
11362
|
top: e.top
|
|
11363
|
-
} : e, u.nodeType == 1 &&
|
|
11363
|
+
} : e, u.nodeType == 1 && m && (o = d + (e.left >= (p.left + p.right) / 2 ? 1 : 0));
|
|
11364
11364
|
continue;
|
|
11365
11365
|
}
|
|
11366
11366
|
} else p.top > e.top && !l && p.left <= e.left && p.right >= e.left && (l = u, c = { left: Math.max(p.left, Math.min(p.right, e.left)), top: p.top });
|
|
@@ -11570,12 +11570,12 @@ function FC(t, e, n) {
|
|
|
11570
11570
|
return a ? !zC.test(r.parent.textContent) || !a.modify ? n == "left" || n == "backward" ? o : s : mh(t, e, () => {
|
|
11571
11571
|
let { focusNode: l, focusOffset: c, anchorNode: u, anchorOffset: d } = t.domSelectionRange(), f = a.caretBidiLevel;
|
|
11572
11572
|
a.modify("move", n, "character");
|
|
11573
|
-
let h = r.depth ? t.docView.domAfterPos(r.before()) : t.dom, { focusNode: p, focusOffset:
|
|
11573
|
+
let h = r.depth ? t.docView.domAfterPos(r.before()) : t.dom, { focusNode: p, focusOffset: m } = t.domSelectionRange(), g = p && !h.contains(p.nodeType == 1 ? p : p.parentNode) || l == p && c == m;
|
|
11574
11574
|
try {
|
|
11575
11575
|
a.collapse(u, d), l && (l != u || c != d) && a.extend && a.extend(l, c);
|
|
11576
11576
|
} catch {
|
|
11577
11577
|
}
|
|
11578
|
-
return f != null && (a.caretBidiLevel = f),
|
|
11578
|
+
return f != null && (a.caretBidiLevel = f), g;
|
|
11579
11579
|
}) : r.pos == r.start() || r.pos == r.end();
|
|
11580
11580
|
}
|
|
11581
11581
|
let lu = null, cu = null, uu = !1;
|
|
@@ -11836,10 +11836,10 @@ class Qi {
|
|
|
11836
11836
|
setSelection(e, n, r, i = !1) {
|
|
11837
11837
|
let o = Math.min(e, n), s = Math.max(e, n);
|
|
11838
11838
|
for (let h = 0, p = 0; h < this.children.length; h++) {
|
|
11839
|
-
let
|
|
11840
|
-
if (o > p && s <
|
|
11841
|
-
return
|
|
11842
|
-
p =
|
|
11839
|
+
let m = this.children[h], g = p + m.size;
|
|
11840
|
+
if (o > p && s < g)
|
|
11841
|
+
return m.setSelection(e - p - m.border, n - p - m.border, r, i);
|
|
11842
|
+
p = g;
|
|
11843
11843
|
}
|
|
11844
11844
|
let a = this.domFromPos(e, e ? -1 : 1), l = n == e ? a : this.domFromPos(n, n ? -1 : 1), c = r.root.getSelection(), u = r.domSelectionRange(), d = !1;
|
|
11845
11845
|
if ((jt || at) && e == n) {
|
|
@@ -11847,18 +11847,18 @@ class Qi {
|
|
|
11847
11847
|
if (h.nodeType == 3) {
|
|
11848
11848
|
if (d = !!(p && h.nodeValue[p - 1] == `
|
|
11849
11849
|
`), d && p == h.nodeValue.length)
|
|
11850
|
-
for (let
|
|
11851
|
-
if (
|
|
11852
|
-
|
|
11850
|
+
for (let m = h, g; m; m = m.parentNode) {
|
|
11851
|
+
if (g = m.nextSibling) {
|
|
11852
|
+
g.nodeName == "BR" && (a = l = { node: g.parentNode, offset: Xe(g) + 1 });
|
|
11853
11853
|
break;
|
|
11854
11854
|
}
|
|
11855
|
-
let
|
|
11856
|
-
if (
|
|
11855
|
+
let y = m.pmViewDesc;
|
|
11856
|
+
if (y && y.node && y.node.isBlock)
|
|
11857
11857
|
break;
|
|
11858
11858
|
}
|
|
11859
11859
|
} else {
|
|
11860
|
-
let
|
|
11861
|
-
d =
|
|
11860
|
+
let m = h.childNodes[p - 1];
|
|
11861
|
+
d = m && (m.nodeName == "BR" || m.contentEditable == "false");
|
|
11862
11862
|
}
|
|
11863
11863
|
}
|
|
11864
11864
|
if (jt && u.focusNode && u.focusNode != l.node && u.focusNode.nodeType == 1) {
|
|
@@ -12523,14 +12523,14 @@ function GC(t, e, n, r) {
|
|
|
12523
12523
|
for (let c = 0; ; ) {
|
|
12524
12524
|
let u, d;
|
|
12525
12525
|
for (; s < i.length && i[s].to == o; ) {
|
|
12526
|
-
let
|
|
12527
|
-
|
|
12526
|
+
let g = i[s++];
|
|
12527
|
+
g.widget && (u ? (d || (d = [u])).push(g) : u = g);
|
|
12528
12528
|
}
|
|
12529
12529
|
if (u)
|
|
12530
12530
|
if (d) {
|
|
12531
12531
|
d.sort(JC);
|
|
12532
|
-
for (let
|
|
12533
|
-
n(d[
|
|
12532
|
+
for (let g = 0; g < d.length; g++)
|
|
12533
|
+
n(d[g], c, !!l);
|
|
12534
12534
|
} else
|
|
12535
12535
|
n(u, c, !!l);
|
|
12536
12536
|
let f, h;
|
|
@@ -12540,22 +12540,22 @@ function GC(t, e, n, r) {
|
|
|
12540
12540
|
h = c, f = t.child(c++);
|
|
12541
12541
|
else
|
|
12542
12542
|
break;
|
|
12543
|
-
for (let
|
|
12544
|
-
a[
|
|
12543
|
+
for (let g = 0; g < a.length; g++)
|
|
12544
|
+
a[g].to <= o && a.splice(g--, 1);
|
|
12545
12545
|
for (; s < i.length && i[s].from <= o && i[s].to > o; )
|
|
12546
12546
|
a.push(i[s++]);
|
|
12547
12547
|
let p = o + f.nodeSize;
|
|
12548
12548
|
if (f.isText) {
|
|
12549
|
-
let
|
|
12550
|
-
s < i.length && i[s].from <
|
|
12551
|
-
for (let
|
|
12552
|
-
a[
|
|
12553
|
-
|
|
12549
|
+
let g = p;
|
|
12550
|
+
s < i.length && i[s].from < g && (g = i[s].from);
|
|
12551
|
+
for (let y = 0; y < a.length; y++)
|
|
12552
|
+
a[y].to < g && (g = a[y].to);
|
|
12553
|
+
g < p && (l = f.cut(g - o), f = f.cut(0, g - o), p = g, h = -1);
|
|
12554
12554
|
} else
|
|
12555
12555
|
for (; s < i.length && i[s].to < p; )
|
|
12556
12556
|
s++;
|
|
12557
|
-
let
|
|
12558
|
-
r(f,
|
|
12557
|
+
let m = f.isInline && !f.isLeaf ? a.filter((g) => !g.inline) : a.slice();
|
|
12558
|
+
r(f, m, e.forChild(o, f), h), o = p;
|
|
12559
12559
|
}
|
|
12560
12560
|
}
|
|
12561
12561
|
function ZC(t) {
|
|
@@ -13017,9 +13017,9 @@ function Oh(t, e, n, r, i) {
|
|
|
13017
13017
|
a = d;
|
|
13018
13018
|
else {
|
|
13019
13019
|
let f = i.marks(), { schema: h } = t.state, p = gr.fromSchema(h);
|
|
13020
|
-
s = document.createElement("div"), e.split(/(?:\r\n?|\n)+/).forEach((
|
|
13021
|
-
let
|
|
13022
|
-
|
|
13020
|
+
s = document.createElement("div"), e.split(/(?:\r\n?|\n)+/).forEach((m) => {
|
|
13021
|
+
let g = s.appendChild(document.createElement("p"));
|
|
13022
|
+
m && g.appendChild(p.serializeNode(h.text(m, f)));
|
|
13023
13023
|
});
|
|
13024
13024
|
}
|
|
13025
13025
|
} else
|
|
@@ -13559,7 +13559,7 @@ ct.drop = (t, e) => {
|
|
|
13559
13559
|
c.setSelection(new ce(h));
|
|
13560
13560
|
else {
|
|
13561
13561
|
let p = c.mapping.map(l);
|
|
13562
|
-
c.mapping.maps[c.mapping.maps.length - 1].forEach((
|
|
13562
|
+
c.mapping.maps[c.mapping.maps.length - 1].forEach((m, g, y, S) => p = S), c.setSelection(gl(t, h, c.doc.resolve(p)));
|
|
13563
13563
|
}
|
|
13564
13564
|
t.focus(), t.dispatch(c.setMeta("uiEvent", "drop"));
|
|
13565
13565
|
};
|
|
@@ -13964,16 +13964,16 @@ function BO(t, e, n, r, i, o, s) {
|
|
|
13964
13964
|
let a = t.slice();
|
|
13965
13965
|
for (let c = 0, u = o; c < n.maps.length; c++) {
|
|
13966
13966
|
let d = 0;
|
|
13967
|
-
n.maps[c].forEach((f, h, p,
|
|
13968
|
-
let
|
|
13969
|
-
for (let
|
|
13970
|
-
let S = a[
|
|
13967
|
+
n.maps[c].forEach((f, h, p, m) => {
|
|
13968
|
+
let g = m - p - (h - f);
|
|
13969
|
+
for (let y = 0; y < a.length; y += 3) {
|
|
13970
|
+
let S = a[y + 1];
|
|
13971
13971
|
if (S < 0 || f > S + u - d)
|
|
13972
13972
|
continue;
|
|
13973
|
-
let $ = a[
|
|
13974
|
-
h >= $ ? a[
|
|
13973
|
+
let $ = a[y] + u - d;
|
|
13974
|
+
h >= $ ? a[y + 1] = f <= $ ? -2 : -1 : f >= u && g && (a[y] += g, a[y + 1] += g);
|
|
13975
13975
|
}
|
|
13976
|
-
d +=
|
|
13976
|
+
d += g;
|
|
13977
13977
|
}), u = n.maps[c].map(u, -1);
|
|
13978
13978
|
}
|
|
13979
13979
|
let l = !1;
|
|
@@ -13988,10 +13988,10 @@ function BO(t, e, n, r, i, o, s) {
|
|
|
13988
13988
|
l = !0;
|
|
13989
13989
|
continue;
|
|
13990
13990
|
}
|
|
13991
|
-
let f = n.map(t[c + 1] + o, -1), h = f - i, { index: p, offset:
|
|
13992
|
-
if (
|
|
13993
|
-
let
|
|
13994
|
-
|
|
13991
|
+
let f = n.map(t[c + 1] + o, -1), h = f - i, { index: p, offset: m } = r.content.findIndex(d), g = r.maybeChild(p);
|
|
13992
|
+
if (g && m == d && m + g.nodeSize == h) {
|
|
13993
|
+
let y = a[c + 2].mapInner(n, g, u + 1, t[c] + o + 1, s);
|
|
13994
|
+
y != tt ? (a[c] = d, a[c + 1] = h, a[c + 2] = y) : (a[c + 1] = -2, l = !0);
|
|
13995
13995
|
} else
|
|
13996
13996
|
l = !0;
|
|
13997
13997
|
}
|
|
@@ -14293,16 +14293,16 @@ function HO(t, e) {
|
|
|
14293
14293
|
function WO(t, e, n) {
|
|
14294
14294
|
let { node: r, fromOffset: i, toOffset: o, from: s, to: a } = t.docView.parseRange(e, n), l = t.domSelectionRange(), c, u = l.anchorNode;
|
|
14295
14295
|
if (u && t.dom.contains(u.nodeType == 1 ? u : u.parentNode) && (c = [{ node: u, offset: l.anchorOffset }], ds(l) || c.push({ node: l.focusNode, offset: l.focusOffset })), rt && t.input.lastKeyCode === 8)
|
|
14296
|
-
for (let
|
|
14297
|
-
let
|
|
14298
|
-
if (
|
|
14299
|
-
o =
|
|
14296
|
+
for (let g = o; g > i; g--) {
|
|
14297
|
+
let y = r.childNodes[g - 1], S = y.pmViewDesc;
|
|
14298
|
+
if (y.nodeName == "BR" && !S) {
|
|
14299
|
+
o = g;
|
|
14300
14300
|
break;
|
|
14301
14301
|
}
|
|
14302
14302
|
if (!S || S.size)
|
|
14303
14303
|
break;
|
|
14304
14304
|
}
|
|
14305
|
-
let d = t.state.doc, f = t.someProp("domParser") || An.fromSchema(t.state.schema), h = d.resolve(s), p = null,
|
|
14305
|
+
let d = t.state.doc, f = t.someProp("domParser") || An.fromSchema(t.state.schema), h = d.resolve(s), p = null, m = f.parse(r, {
|
|
14306
14306
|
topNode: h.parent,
|
|
14307
14307
|
topMatch: h.parent.contentMatchAt(h.index()),
|
|
14308
14308
|
topOpen: !0,
|
|
@@ -14314,10 +14314,10 @@ function WO(t, e, n) {
|
|
|
14314
14314
|
context: h
|
|
14315
14315
|
});
|
|
14316
14316
|
if (c && c[0].pos != null) {
|
|
14317
|
-
let
|
|
14318
|
-
|
|
14317
|
+
let g = c[0].pos, y = c[1] && c[1].pos;
|
|
14318
|
+
y == null && (y = g), p = { anchor: g + s, head: y + s };
|
|
14319
14319
|
}
|
|
14320
|
-
return { doc:
|
|
14320
|
+
return { doc: m, sel: p, from: s, to: a };
|
|
14321
14321
|
}
|
|
14322
14322
|
function qO(t) {
|
|
14323
14323
|
let e = t.pmViewDesc;
|
|
@@ -14369,39 +14369,39 @@ function KO(t, e, n, r, i) {
|
|
|
14369
14369
|
return;
|
|
14370
14370
|
}
|
|
14371
14371
|
t.state.selection.from < t.state.selection.to && p.start == p.endB && t.state.selection instanceof me && (p.start > t.state.selection.from && p.start <= t.state.selection.from + 2 && t.state.selection.from >= c.from ? p.start = t.state.selection.from : p.endA < t.state.selection.to && p.endA >= t.state.selection.to - 2 && t.state.selection.to <= c.to && (p.endB += t.state.selection.to - p.endA, p.endA = t.state.selection.to)), ht && En <= 11 && p.endB == p.start + 1 && p.endA == p.start && p.start > c.from && c.doc.textBetween(p.start - c.from - 1, p.start - c.from + 1) == " " && (p.start--, p.endA--, p.endB--);
|
|
14372
|
-
let
|
|
14373
|
-
if ((Fr && t.input.lastIOSEnter > Date.now() - 225 && (!S || i.some((N) => N.nodeName == "DIV" || N.nodeName == "P")) || !S &&
|
|
14372
|
+
let m = c.doc.resolveNoCache(p.start - c.from), g = c.doc.resolveNoCache(p.endB - c.from), y = u.resolve(p.start), S = m.sameParent(g) && m.parent.inlineContent && y.end() >= p.endA, $;
|
|
14373
|
+
if ((Fr && t.input.lastIOSEnter > Date.now() - 225 && (!S || i.some((N) => N.nodeName == "DIV" || N.nodeName == "P")) || !S && m.pos < c.doc.content.size && !m.sameParent(g) && ($ = we.findFrom(c.doc.resolve(m.pos + 1), 1, !0)) && $.head == g.pos) && t.someProp("handleKeyDown", (N) => N(t, Gn(13, "Enter")))) {
|
|
14374
14374
|
t.input.lastIOSEnter = 0;
|
|
14375
14375
|
return;
|
|
14376
14376
|
}
|
|
14377
|
-
if (t.state.selection.anchor > p.start && JO(u, p.start, p.endA,
|
|
14377
|
+
if (t.state.selection.anchor > p.start && JO(u, p.start, p.endA, m, g) && t.someProp("handleKeyDown", (N) => N(t, Gn(8, "Backspace")))) {
|
|
14378
14378
|
dn && rt && t.domObserver.suppressSelectionUpdates();
|
|
14379
14379
|
return;
|
|
14380
14380
|
}
|
|
14381
|
-
rt && p.endB == p.start && (t.input.lastChromeDelete = Date.now()), dn && !S &&
|
|
14381
|
+
rt && p.endB == p.start && (t.input.lastChromeDelete = Date.now()), dn && !S && m.start() != g.start() && g.parentOffset == 0 && m.depth == g.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == p.endA && (p.endB -= 2, g = c.doc.resolveNoCache(p.endB - c.from), setTimeout(() => {
|
|
14382
14382
|
t.someProp("handleKeyDown", function(N) {
|
|
14383
14383
|
return N(t, Gn(13, "Enter"));
|
|
14384
14384
|
});
|
|
14385
14385
|
}, 20));
|
|
14386
|
-
let
|
|
14386
|
+
let v = p.start, w = p.endA, b, E, I;
|
|
14387
14387
|
if (S) {
|
|
14388
|
-
if (
|
|
14389
|
-
ht && En <= 11 &&
|
|
14388
|
+
if (m.pos == g.pos)
|
|
14389
|
+
ht && En <= 11 && m.parentOffset == 0 && (t.domObserver.suppressSelectionUpdates(), setTimeout(() => pn(t), 20)), b = t.state.tr.delete(v, w), E = u.resolve(p.start).marksAcross(u.resolve(p.endA));
|
|
14390
14390
|
else if (
|
|
14391
14391
|
// Adding or removing a mark
|
|
14392
|
-
p.endA == p.endB && (I = YO(
|
|
14392
|
+
p.endA == p.endB && (I = YO(m.parent.content.cut(m.parentOffset, g.parentOffset), y.parent.content.cut(y.parentOffset, p.endA - y.start())))
|
|
14393
14393
|
)
|
|
14394
|
-
b = t.state.tr, I.type == "add" ? b.addMark(
|
|
14395
|
-
else if (
|
|
14396
|
-
let N =
|
|
14397
|
-
if (t.someProp("handleTextInput", (D) => D(t,
|
|
14394
|
+
b = t.state.tr, I.type == "add" ? b.addMark(v, w, I.mark) : b.removeMark(v, w, I.mark);
|
|
14395
|
+
else if (m.parent.child(m.index()).isText && m.index() == g.index() - (g.textOffset ? 0 : 1)) {
|
|
14396
|
+
let N = m.parent.textBetween(m.parentOffset, g.parentOffset);
|
|
14397
|
+
if (t.someProp("handleTextInput", (D) => D(t, v, w, N)))
|
|
14398
14398
|
return;
|
|
14399
|
-
b = t.state.tr.insertText(N,
|
|
14399
|
+
b = t.state.tr.insertText(N, v, w);
|
|
14400
14400
|
}
|
|
14401
14401
|
}
|
|
14402
|
-
if (b || (b = t.state.tr.replace(
|
|
14402
|
+
if (b || (b = t.state.tr.replace(v, w, c.doc.slice(p.start - c.from, p.endB - c.from))), c.sel) {
|
|
14403
14403
|
let N = Eu(t, b.doc, c.sel);
|
|
14404
|
-
N && !(rt && t.composing && N.empty && (p.start != p.endB || t.input.lastChromeDelete < Date.now() - 100) && (N.head ==
|
|
14404
|
+
N && !(rt && t.composing && N.empty && (p.start != p.endB || t.input.lastChromeDelete < Date.now() - 100) && (N.head == v || N.head == b.mapping.map(w) - 1) || ht && N.empty && N.head == v) && b.setSelection(N);
|
|
14405
14405
|
}
|
|
14406
14406
|
E && b.ensureMarks(E), o && b.setMeta("composition", o), t.dispatch(b.scrollIntoView());
|
|
14407
14407
|
}
|
|
@@ -15279,11 +15279,11 @@ function Xh(t, e, n, r) {
|
|
|
15279
15279
|
if (c && (s = (a = i.contentMatchAt(i.childCount)).findWrapping(o.type)) && a.matchType(s[0] || o.type).validEnd) {
|
|
15280
15280
|
if (n) {
|
|
15281
15281
|
let h = e.pos + o.nodeSize, p = H.empty;
|
|
15282
|
-
for (let
|
|
15283
|
-
p = H.from(s[
|
|
15282
|
+
for (let y = s.length - 1; y >= 0; y--)
|
|
15283
|
+
p = H.from(s[y].create(null, p));
|
|
15284
15284
|
p = H.from(i.copy(p));
|
|
15285
|
-
let
|
|
15286
|
-
|
|
15285
|
+
let m = t.tr.step(new Ke(e.pos - 1, h, e.pos, h, new Z(p, 1, 0), s.length, !0)), g = m.doc.resolve(h + 2 * s.length);
|
|
15286
|
+
g.nodeAfter && g.nodeAfter.type == i.type && jn(m.doc, g.pos) && m.join(g.pos), n(m.scrollIntoView());
|
|
15287
15287
|
}
|
|
15288
15288
|
return !0;
|
|
15289
15289
|
}
|
|
@@ -15294,15 +15294,15 @@ function Xh(t, e, n, r) {
|
|
|
15294
15294
|
let h = i, p = [];
|
|
15295
15295
|
for (; p.push(h), !h.isTextblock; )
|
|
15296
15296
|
h = h.lastChild;
|
|
15297
|
-
let
|
|
15298
|
-
for (; !
|
|
15299
|
-
|
|
15300
|
-
if (h.canReplace(h.childCount, h.childCount,
|
|
15297
|
+
let m = o, g = 1;
|
|
15298
|
+
for (; !m.isTextblock; m = m.firstChild)
|
|
15299
|
+
g++;
|
|
15300
|
+
if (h.canReplace(h.childCount, h.childCount, m.content)) {
|
|
15301
15301
|
if (n) {
|
|
15302
|
-
let
|
|
15302
|
+
let y = H.empty;
|
|
15303
15303
|
for (let $ = p.length - 1; $ >= 0; $--)
|
|
15304
|
-
|
|
15305
|
-
let S = t.tr.step(new Ke(e.pos - p.length, e.pos + o.nodeSize, e.pos +
|
|
15304
|
+
y = H.from(p[$].copy(y));
|
|
15305
|
+
let S = t.tr.step(new Ke(e.pos - p.length, e.pos + o.nodeSize, e.pos + g, e.pos + o.nodeSize - g, new Z(y, p.length, 0), 0, !0));
|
|
15306
15306
|
n(S.scrollIntoView());
|
|
15307
15307
|
}
|
|
15308
15308
|
return !0;
|
|
@@ -15421,7 +15421,7 @@ function C3(t, e, n, r) {
|
|
|
15421
15421
|
}
|
|
15422
15422
|
function O3(t, e, n) {
|
|
15423
15423
|
let r = t.tr, i = n.parent;
|
|
15424
|
-
for (let h = n.end, p = n.endIndex - 1,
|
|
15424
|
+
for (let h = n.end, p = n.endIndex - 1, m = n.startIndex; p > m; p--)
|
|
15425
15425
|
h -= i.child(p).nodeSize, r.delete(h - 1, h + 1);
|
|
15426
15426
|
let o = r.doc.resolve(n.start), s = o.nodeAfter;
|
|
15427
15427
|
if (r.mapping.map(n.end) != n.start + o.nodeAfter.nodeSize)
|
|
@@ -15500,9 +15500,9 @@ class ms {
|
|
|
15500
15500
|
}
|
|
15501
15501
|
createChain(e, n = !0) {
|
|
15502
15502
|
const { rawCommands: r, editor: i, state: o } = this, { view: s } = i, a = [], l = !!e, c = e || o.tr, u = () => (!l && n && !c.getMeta("preventDispatch") && !this.hasCustomState && s.dispatch(c), a.every((f) => f === !0)), d = {
|
|
15503
|
-
...Object.fromEntries(Object.entries(r).map(([f, h]) => [f, (...
|
|
15504
|
-
const
|
|
15505
|
-
return a.push(
|
|
15503
|
+
...Object.fromEntries(Object.entries(r).map(([f, h]) => [f, (...m) => {
|
|
15504
|
+
const g = this.buildProps(c, n), y = h(...m)(g);
|
|
15505
|
+
return a.push(y), d;
|
|
15506
15506
|
}])),
|
|
15507
15507
|
run: u
|
|
15508
15508
|
};
|
|
@@ -15705,15 +15705,15 @@ function _u(t) {
|
|
|
15705
15705
|
function E3(t, e) {
|
|
15706
15706
|
var n;
|
|
15707
15707
|
const r = ep(t), { nodeExtensions: i, markExtensions: o } = gs(t), s = (n = i.find((c) => ne(c, "topNode"))) === null || n === void 0 ? void 0 : n.name, a = Object.fromEntries(i.map((c) => {
|
|
15708
|
-
const u = r.filter((
|
|
15708
|
+
const u = r.filter((y) => y.type === c.name), d = {
|
|
15709
15709
|
name: c.name,
|
|
15710
15710
|
options: c.options,
|
|
15711
15711
|
storage: c.storage,
|
|
15712
15712
|
editor: e
|
|
15713
|
-
}, f = t.reduce((
|
|
15713
|
+
}, f = t.reduce((y, S) => {
|
|
15714
15714
|
const $ = ne(S, "extendNodeSchema", d);
|
|
15715
15715
|
return {
|
|
15716
|
-
...
|
|
15716
|
+
...y,
|
|
15717
15717
|
...$ ? $(c) : {}
|
|
15718
15718
|
};
|
|
15719
15719
|
}, {}), h = _u({
|
|
@@ -15730,29 +15730,29 @@ function E3(t, e) {
|
|
|
15730
15730
|
linebreakReplacement: ke(ne(c, "linebreakReplacement", d)),
|
|
15731
15731
|
defining: ke(ne(c, "defining", d)),
|
|
15732
15732
|
isolating: ke(ne(c, "isolating", d)),
|
|
15733
|
-
attrs: Object.fromEntries(u.map((
|
|
15733
|
+
attrs: Object.fromEntries(u.map((y) => {
|
|
15734
15734
|
var S;
|
|
15735
|
-
return [
|
|
15735
|
+
return [y.name, { default: (S = y == null ? void 0 : y.attribute) === null || S === void 0 ? void 0 : S.default }];
|
|
15736
15736
|
}))
|
|
15737
15737
|
}), p = ke(ne(c, "parseHTML", d));
|
|
15738
|
-
p && (h.parseDOM = p.map((
|
|
15739
|
-
const
|
|
15740
|
-
|
|
15741
|
-
node:
|
|
15742
|
-
HTMLAttributes: Va(
|
|
15738
|
+
p && (h.parseDOM = p.map((y) => Ru(y, u)));
|
|
15739
|
+
const m = ne(c, "renderHTML", d);
|
|
15740
|
+
m && (h.toDOM = (y) => m({
|
|
15741
|
+
node: y,
|
|
15742
|
+
HTMLAttributes: Va(y, u)
|
|
15743
15743
|
}));
|
|
15744
|
-
const
|
|
15745
|
-
return
|
|
15744
|
+
const g = ne(c, "renderText", d);
|
|
15745
|
+
return g && (h.toText = g), [c.name, h];
|
|
15746
15746
|
})), l = Object.fromEntries(o.map((c) => {
|
|
15747
|
-
const u = r.filter((
|
|
15747
|
+
const u = r.filter((g) => g.type === c.name), d = {
|
|
15748
15748
|
name: c.name,
|
|
15749
15749
|
options: c.options,
|
|
15750
15750
|
storage: c.storage,
|
|
15751
15751
|
editor: e
|
|
15752
|
-
}, f = t.reduce((
|
|
15753
|
-
const S = ne(
|
|
15752
|
+
}, f = t.reduce((g, y) => {
|
|
15753
|
+
const S = ne(y, "extendMarkSchema", d);
|
|
15754
15754
|
return {
|
|
15755
|
-
...
|
|
15755
|
+
...g,
|
|
15756
15756
|
...S ? S(c) : {}
|
|
15757
15757
|
};
|
|
15758
15758
|
}, {}), h = _u({
|
|
@@ -15762,16 +15762,16 @@ function E3(t, e) {
|
|
|
15762
15762
|
group: ke(ne(c, "group", d)),
|
|
15763
15763
|
spanning: ke(ne(c, "spanning", d)),
|
|
15764
15764
|
code: ke(ne(c, "code", d)),
|
|
15765
|
-
attrs: Object.fromEntries(u.map((
|
|
15766
|
-
var
|
|
15767
|
-
return [
|
|
15765
|
+
attrs: Object.fromEntries(u.map((g) => {
|
|
15766
|
+
var y;
|
|
15767
|
+
return [g.name, { default: (y = g == null ? void 0 : g.attribute) === null || y === void 0 ? void 0 : y.default }];
|
|
15768
15768
|
}))
|
|
15769
15769
|
}), p = ke(ne(c, "parseHTML", d));
|
|
15770
|
-
p && (h.parseDOM = p.map((
|
|
15771
|
-
const
|
|
15772
|
-
return
|
|
15773
|
-
mark:
|
|
15774
|
-
HTMLAttributes: Va(
|
|
15770
|
+
p && (h.parseDOM = p.map((g) => Ru(g, u)));
|
|
15771
|
+
const m = ne(c, "renderHTML", d);
|
|
15772
|
+
return m && (h.toDOM = (g) => m({
|
|
15773
|
+
mark: g,
|
|
15774
|
+
HTMLAttributes: Va(g, u)
|
|
15775
15775
|
})), [c.name, h];
|
|
15776
15776
|
}));
|
|
15777
15777
|
return new Wf({
|
|
@@ -15840,21 +15840,21 @@ function co(t) {
|
|
|
15840
15840
|
const h = N3(d, f.find);
|
|
15841
15841
|
if (!h)
|
|
15842
15842
|
return;
|
|
15843
|
-
const p = l.state.tr,
|
|
15843
|
+
const p = l.state.tr, m = ps({
|
|
15844
15844
|
state: l.state,
|
|
15845
15845
|
transaction: p
|
|
15846
|
-
}),
|
|
15846
|
+
}), g = {
|
|
15847
15847
|
from: r - (h[0].length - o.length),
|
|
15848
15848
|
to: i
|
|
15849
|
-
}, { commands:
|
|
15849
|
+
}, { commands: y, chain: S, can: $ } = new ms({
|
|
15850
15850
|
editor: n,
|
|
15851
|
-
state:
|
|
15851
|
+
state: m
|
|
15852
15852
|
});
|
|
15853
15853
|
f.handler({
|
|
15854
|
-
state:
|
|
15855
|
-
range:
|
|
15854
|
+
state: m,
|
|
15855
|
+
range: g,
|
|
15856
15856
|
match: h,
|
|
15857
|
-
commands:
|
|
15857
|
+
commands: y,
|
|
15858
15858
|
chain: S,
|
|
15859
15859
|
can: $
|
|
15860
15860
|
}) === null || !p.steps.length || (p.setMeta(a, {
|
|
@@ -16020,12 +16020,12 @@ function R3(t) {
|
|
|
16020
16020
|
return n.doc.nodesBetween(r, i, (h, p) => {
|
|
16021
16021
|
if (!h.isTextblock || h.type.spec.code)
|
|
16022
16022
|
return;
|
|
16023
|
-
const
|
|
16024
|
-
V3(
|
|
16023
|
+
const m = Math.max(r, p), g = Math.min(i, p + h.content.size), y = h.textBetween(m - p, g - p, void 0, "");
|
|
16024
|
+
V3(y, o.find, s).forEach(($) => {
|
|
16025
16025
|
if ($.index === void 0)
|
|
16026
16026
|
return;
|
|
16027
|
-
const
|
|
16028
|
-
from: n.tr.mapping.map(
|
|
16027
|
+
const v = m + $.index + 1, w = v + $[0].length, b = {
|
|
16028
|
+
from: n.tr.mapping.map(v),
|
|
16029
16029
|
to: n.tr.mapping.map(w)
|
|
16030
16030
|
}, E = o.handler({
|
|
16031
16031
|
state: n,
|
|
@@ -16058,33 +16058,33 @@ function j3(t) {
|
|
|
16058
16058
|
a = null;
|
|
16059
16059
|
}
|
|
16060
16060
|
const l = ({ state: u, from: d, to: f, rule: h, pasteEvt: p }) => {
|
|
16061
|
-
const
|
|
16061
|
+
const m = u.tr, g = ps({
|
|
16062
16062
|
state: u,
|
|
16063
|
-
transaction:
|
|
16063
|
+
transaction: m
|
|
16064
16064
|
});
|
|
16065
16065
|
if (!(!R3({
|
|
16066
16066
|
editor: e,
|
|
16067
|
-
state:
|
|
16067
|
+
state: g,
|
|
16068
16068
|
from: Math.max(d - 1, 0),
|
|
16069
16069
|
to: f.b - 1,
|
|
16070
16070
|
rule: h,
|
|
16071
16071
|
pasteEvent: p,
|
|
16072
16072
|
dropEvent: a
|
|
16073
|
-
}) || !
|
|
16073
|
+
}) || !m.steps.length)) {
|
|
16074
16074
|
try {
|
|
16075
16075
|
a = typeof DragEvent < "u" ? new DragEvent("drop") : null;
|
|
16076
16076
|
} catch {
|
|
16077
16077
|
a = null;
|
|
16078
16078
|
}
|
|
16079
|
-
return s = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null,
|
|
16079
|
+
return s = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, m;
|
|
16080
16080
|
}
|
|
16081
16081
|
};
|
|
16082
16082
|
return n.map((u) => new et({
|
|
16083
16083
|
// we register a global drag handler to track the current drag source element
|
|
16084
16084
|
view(d) {
|
|
16085
16085
|
const f = (p) => {
|
|
16086
|
-
var
|
|
16087
|
-
r = !((
|
|
16086
|
+
var m;
|
|
16087
|
+
r = !((m = d.dom.parentElement) === null || m === void 0) && m.contains(p.target) ? d.dom.parentElement : null, r && (fo = e);
|
|
16088
16088
|
}, h = () => {
|
|
16089
16089
|
fo && (fo = null);
|
|
16090
16090
|
};
|
|
@@ -16114,13 +16114,13 @@ function j3(t) {
|
|
|
16114
16114
|
}
|
|
16115
16115
|
},
|
|
16116
16116
|
appendTransaction: (d, f, h) => {
|
|
16117
|
-
const p = d[0],
|
|
16118
|
-
if (!
|
|
16117
|
+
const p = d[0], m = p.getMeta("uiEvent") === "paste" && !i, g = p.getMeta("uiEvent") === "drop" && !o, y = p.getMeta("applyPasteRules"), S = !!y;
|
|
16118
|
+
if (!m && !g && !S)
|
|
16119
16119
|
return;
|
|
16120
16120
|
if (S) {
|
|
16121
|
-
let { text: w } =
|
|
16121
|
+
let { text: w } = y;
|
|
16122
16122
|
typeof w == "string" ? w = w : w = $l(H.from(w), h.schema);
|
|
16123
|
-
const { from: b } =
|
|
16123
|
+
const { from: b } = y, E = b + w.length, I = _3(w);
|
|
16124
16124
|
return l({
|
|
16125
16125
|
rule: u,
|
|
16126
16126
|
state: h,
|
|
@@ -16129,13 +16129,13 @@ function j3(t) {
|
|
|
16129
16129
|
pasteEvt: I
|
|
16130
16130
|
});
|
|
16131
16131
|
}
|
|
16132
|
-
const $ = f.doc.content.findDiffStart(h.doc.content),
|
|
16133
|
-
if (!(!B3($) || !
|
|
16132
|
+
const $ = f.doc.content.findDiffStart(h.doc.content), v = f.doc.content.findDiffEnd(h.doc.content);
|
|
16133
|
+
if (!(!B3($) || !v || $ === v.b))
|
|
16134
16134
|
return l({
|
|
16135
16135
|
rule: u,
|
|
16136
16136
|
state: h,
|
|
16137
16137
|
from: $,
|
|
16138
|
-
to:
|
|
16138
|
+
to: v,
|
|
16139
16139
|
pasteEvt: s
|
|
16140
16140
|
});
|
|
16141
16141
|
}
|
|
@@ -16219,8 +16219,8 @@ class Er {
|
|
|
16219
16219
|
}, l = [], c = ne(s, "addKeyboardShortcuts", a);
|
|
16220
16220
|
let u = {};
|
|
16221
16221
|
if (s.type === "mark" && ne(s, "exitable", a) && (u.ArrowRight = () => Lt.handleExit({ editor: e, mark: s })), c) {
|
|
16222
|
-
const
|
|
16223
|
-
u = { ...u, ...
|
|
16222
|
+
const m = Object.fromEntries(Object.entries(c()).map(([g, y]) => [g, () => y({ editor: e })]));
|
|
16223
|
+
u = { ...u, ...m };
|
|
16224
16224
|
}
|
|
16225
16225
|
const d = s3(u);
|
|
16226
16226
|
l.push(d);
|
|
@@ -16230,8 +16230,8 @@ class Er {
|
|
|
16230
16230
|
ju(s, e.options.enablePasteRules) && h && i.push(...h());
|
|
16231
16231
|
const p = ne(s, "addProseMirrorPlugins", a);
|
|
16232
16232
|
if (p) {
|
|
16233
|
-
const
|
|
16234
|
-
l.push(...
|
|
16233
|
+
const m = p();
|
|
16234
|
+
l.push(...m);
|
|
16235
16235
|
}
|
|
16236
16236
|
return l;
|
|
16237
16237
|
}).flat();
|
|
@@ -16404,8 +16404,8 @@ const F3 = He.create({
|
|
|
16404
16404
|
return;
|
|
16405
16405
|
const p = ri(h);
|
|
16406
16406
|
if (a.type.isTextblock) {
|
|
16407
|
-
const { defaultType:
|
|
16408
|
-
e.setNodeMarkup(h.start,
|
|
16407
|
+
const { defaultType: m } = d.parent.contentMatchAt(d.index());
|
|
16408
|
+
e.setNodeMarkup(h.start, m);
|
|
16409
16409
|
}
|
|
16410
16410
|
(p || p === 0) && e.lift(h, p);
|
|
16411
16411
|
});
|
|
@@ -16661,8 +16661,8 @@ const lM = (t) => !("type" in t), cM = (t, e, n) => ({ tr: r, dispatch: i, edito
|
|
|
16661
16661
|
h = e.map((p) => p.text || "").join("");
|
|
16662
16662
|
else if (e instanceof H) {
|
|
16663
16663
|
let p = "";
|
|
16664
|
-
e.forEach((
|
|
16665
|
-
|
|
16664
|
+
e.forEach((m) => {
|
|
16665
|
+
m.text && (p += m.text);
|
|
16666
16666
|
}), h = p;
|
|
16667
16667
|
} else typeof e == "object" && e && e.text ? h = e.text : h = e;
|
|
16668
16668
|
r.insertText(h, l, c);
|
|
@@ -16875,13 +16875,13 @@ function _a(t, e, n = {}) {
|
|
|
16875
16875
|
const a = [];
|
|
16876
16876
|
if (i.forEach(({ $from: d, $to: f }) => {
|
|
16877
16877
|
const h = d.pos, p = f.pos;
|
|
16878
|
-
t.doc.nodesBetween(h, p, (
|
|
16879
|
-
if (!
|
|
16878
|
+
t.doc.nodesBetween(h, p, (m, g) => {
|
|
16879
|
+
if (!m.isText && !m.marks.length)
|
|
16880
16880
|
return;
|
|
16881
|
-
const
|
|
16882
|
-
s += $, a.push(...
|
|
16883
|
-
mark:
|
|
16884
|
-
from:
|
|
16881
|
+
const y = Math.max(h, g), S = Math.min(p, g + m.nodeSize), $ = S - y;
|
|
16882
|
+
s += $, a.push(...m.marks.map((v) => ({
|
|
16883
|
+
mark: v,
|
|
16884
|
+
from: y,
|
|
16885
16885
|
to: S
|
|
16886
16886
|
})));
|
|
16887
16887
|
});
|
|
@@ -16933,7 +16933,7 @@ function _M(t) {
|
|
|
16933
16933
|
return t instanceof ce;
|
|
16934
16934
|
}
|
|
16935
16935
|
function cp(t, e, n) {
|
|
16936
|
-
const i = t.state.doc.content.size, o = fn(e, 0, i), s = fn(n, 0, i), a = t.coordsAtPos(o), l = t.coordsAtPos(s, -1), c = Math.min(a.top, l.top), u = Math.max(a.bottom, l.bottom), d = Math.min(a.left, l.left), f = Math.max(a.right, l.right), h = f - d, p = u - c,
|
|
16936
|
+
const i = t.state.doc.content.size, o = fn(e, 0, i), s = fn(n, 0, i), a = t.coordsAtPos(o), l = t.coordsAtPos(s, -1), c = Math.min(a.top, l.top), u = Math.max(a.bottom, l.bottom), d = Math.min(a.left, l.left), f = Math.max(a.right, l.right), h = f - d, p = u - c, y = {
|
|
16937
16937
|
top: c,
|
|
16938
16938
|
bottom: u,
|
|
16939
16939
|
left: d,
|
|
@@ -16944,8 +16944,8 @@ function cp(t, e, n) {
|
|
|
16944
16944
|
y: c
|
|
16945
16945
|
};
|
|
16946
16946
|
return {
|
|
16947
|
-
...
|
|
16948
|
-
toJSON: () =>
|
|
16947
|
+
...y,
|
|
16948
|
+
toJSON: () => y
|
|
16949
16949
|
};
|
|
16950
16950
|
}
|
|
16951
16951
|
function jM(t, e, n) {
|
|
@@ -16963,7 +16963,7 @@ function jM(t, e, n) {
|
|
|
16963
16963
|
if (c)
|
|
16964
16964
|
return !1;
|
|
16965
16965
|
if (u.isInline) {
|
|
16966
|
-
const h = !f || f.type.allowsMarkType(n), p = !!n.isInSet(u.marks) || !u.marks.some((
|
|
16966
|
+
const h = !f || f.type.allowsMarkType(n), p = !!n.isInSet(u.marks) || !u.marks.some((m) => m.type.excludes(n));
|
|
16967
16967
|
c = h && p;
|
|
16968
16968
|
}
|
|
16969
16969
|
return !c;
|
|
@@ -16983,13 +16983,13 @@ const zM = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
|
16983
16983
|
a.forEach((c) => {
|
|
16984
16984
|
const u = c.$from.pos, d = c.$to.pos;
|
|
16985
16985
|
r.doc.nodesBetween(u, d, (f, h) => {
|
|
16986
|
-
const p = Math.max(h, u),
|
|
16987
|
-
f.marks.find((
|
|
16988
|
-
l ===
|
|
16989
|
-
...
|
|
16986
|
+
const p = Math.max(h, u), m = Math.min(h + f.nodeSize, d);
|
|
16987
|
+
f.marks.find((y) => y.type === l) ? f.marks.forEach((y) => {
|
|
16988
|
+
l === y.type && n.addMark(p, m, l.create({
|
|
16989
|
+
...y.attrs,
|
|
16990
16990
|
...e
|
|
16991
16991
|
}));
|
|
16992
|
-
}) : n.addMark(p,
|
|
16992
|
+
}) : n.addMark(p, m, l.create(e));
|
|
16993
16993
|
});
|
|
16994
16994
|
});
|
|
16995
16995
|
return jM(r, n, l);
|
|
@@ -17040,8 +17040,8 @@ const KM = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
17040
17040
|
}
|
|
17041
17041
|
] : void 0), r) {
|
|
17042
17042
|
if (p && (o instanceof me && e.deleteSelection(), e.split(e.mapping.map(a.pos), 1, h), f && !d && !a.parentOffset && a.parent.type !== f)) {
|
|
17043
|
-
const
|
|
17044
|
-
a.node(-1).canReplaceWith(
|
|
17043
|
+
const m = e.mapping.map(a.before()), g = e.doc.resolve(m);
|
|
17044
|
+
a.node(-1).canReplaceWith(g.index(), g.index() + 1, f) && e.setNodeMarkup(e.mapping.map(a.before()), f);
|
|
17045
17045
|
}
|
|
17046
17046
|
t && Wu(n, i.extensionManager.splittableMarks), e.scrollIntoView();
|
|
17047
17047
|
}
|
|
@@ -17059,17 +17059,17 @@ const KM = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
17059
17059
|
if (l.depth === 2 || l.node(-3).type !== a || l.index(-2) !== l.node(-2).childCount - 1)
|
|
17060
17060
|
return !1;
|
|
17061
17061
|
if (i) {
|
|
17062
|
-
let
|
|
17062
|
+
let y = H.empty;
|
|
17063
17063
|
const S = l.index(-1) ? 1 : l.index(-2) ? 2 : 3;
|
|
17064
17064
|
for (let I = l.depth - S; I >= l.depth - 3; I -= 1)
|
|
17065
|
-
|
|
17066
|
-
const $ = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3,
|
|
17065
|
+
y = H.from(l.node(I).copy(y));
|
|
17066
|
+
const $ = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, v = {
|
|
17067
17067
|
...xo(f, l.node().type.name, l.node().attrs),
|
|
17068
17068
|
...e
|
|
17069
|
-
}, w = ((s = a.contentMatch.defaultType) === null || s === void 0 ? void 0 : s.createAndFill(
|
|
17070
|
-
|
|
17069
|
+
}, w = ((s = a.contentMatch.defaultType) === null || s === void 0 ? void 0 : s.createAndFill(v)) || void 0;
|
|
17070
|
+
y = y.append(H.from(a.createAndFill(null, w) || void 0));
|
|
17071
17071
|
const b = l.before(l.depth - (S - 1));
|
|
17072
|
-
n.replace(b, l.after(-$), new Z(
|
|
17072
|
+
n.replace(b, l.after(-$), new Z(y, 4 - S, 0));
|
|
17073
17073
|
let E = -1;
|
|
17074
17074
|
n.doc.nodesBetween(b, n.doc.content.size, (I, N) => {
|
|
17075
17075
|
if (E > -1)
|
|
@@ -17082,22 +17082,22 @@ const KM = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
17082
17082
|
const h = c.pos === l.end() ? d.contentMatchAt(0).defaultType : null, p = {
|
|
17083
17083
|
...xo(f, d.type.name, d.attrs),
|
|
17084
17084
|
...e
|
|
17085
|
-
},
|
|
17085
|
+
}, m = {
|
|
17086
17086
|
...xo(f, l.node().type.name, l.node().attrs),
|
|
17087
17087
|
...e
|
|
17088
17088
|
};
|
|
17089
17089
|
n.delete(l.pos, c.pos);
|
|
17090
|
-
const
|
|
17090
|
+
const g = h ? [
|
|
17091
17091
|
{ type: a, attrs: p },
|
|
17092
|
-
{ type: h, attrs:
|
|
17092
|
+
{ type: h, attrs: m }
|
|
17093
17093
|
] : [{ type: a, attrs: p }];
|
|
17094
17094
|
if (!hn(n.doc, l.pos, 2))
|
|
17095
17095
|
return !1;
|
|
17096
17096
|
if (i) {
|
|
17097
|
-
const { selection:
|
|
17098
|
-
if (n.split(l.pos, 2,
|
|
17097
|
+
const { selection: y, storedMarks: S } = r, { splittableMarks: $ } = o.extensionManager, v = S || y.$to.parentOffset && y.$from.marks();
|
|
17098
|
+
if (n.split(l.pos, 2, g).scrollIntoView(), !v || !i)
|
|
17099
17099
|
return !0;
|
|
17100
|
-
const w =
|
|
17100
|
+
const w = v.filter((b) => $.includes(b.type.name));
|
|
17101
17101
|
n.ensureMarks(w);
|
|
17102
17102
|
}
|
|
17103
17103
|
return !0;
|
|
@@ -17120,18 +17120,18 @@ const KM = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
17120
17120
|
const i = t.doc.nodeAt(r);
|
|
17121
17121
|
return n.node.type === (i == null ? void 0 : i.type) && jn(t.doc, r) && t.join(r), !0;
|
|
17122
17122
|
}, JM = (t, e, n, r = {}) => ({ editor: i, tr: o, state: s, dispatch: a, chain: l, commands: c, can: u }) => {
|
|
17123
|
-
const { extensions: d, splittableMarks: f } = i.extensionManager, h = Je(t, s.schema), p = Je(e, s.schema), { selection:
|
|
17123
|
+
const { extensions: d, splittableMarks: f } = i.extensionManager, h = Je(t, s.schema), p = Je(e, s.schema), { selection: m, storedMarks: g } = s, { $from: y, $to: S } = m, $ = y.blockRange(S), v = g || m.$to.parentOffset && m.$from.marks();
|
|
17124
17124
|
if (!$)
|
|
17125
17125
|
return !1;
|
|
17126
|
-
const w = Ll((b) => Hu(b.type.name, d))(
|
|
17126
|
+
const w = Ll((b) => Hu(b.type.name, d))(m);
|
|
17127
17127
|
if ($.depth >= 1 && w && $.depth - w.depth <= 1) {
|
|
17128
17128
|
if (w.node.type === h)
|
|
17129
17129
|
return c.liftListItem(p);
|
|
17130
17130
|
if (Hu(w.node.type.name, d) && h.validContent(w.node.content) && a)
|
|
17131
17131
|
return l().command(() => (o.setNodeMarkup(w.pos, h), !0)).command(() => Us(o, h)).command(() => Ks(o, h)).run();
|
|
17132
17132
|
}
|
|
17133
|
-
return !n || !
|
|
17134
|
-
const b = u().wrapInList(h, r), E =
|
|
17133
|
+
return !n || !v || !a ? l().command(() => u().wrapInList(h, r) ? !0 : c.clearNodes()).wrapInList(h, r).command(() => Us(o, h)).command(() => Ks(o, h)).run() : l().command(() => {
|
|
17134
|
+
const b = u().wrapInList(h, r), E = v.filter((I) => f.includes(I.type.name));
|
|
17135
17135
|
return o.ensureMarks(E), b ? !0 : c.clearNodes();
|
|
17136
17136
|
}).wrapInList(h, r).command(() => Us(o, h)).command(() => Ks(o, h)).run();
|
|
17137
17137
|
}, GM = (t, e = {}, n = {}) => ({ state: r, commands: i }) => {
|
|
@@ -17176,8 +17176,8 @@ const KM = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
17176
17176
|
return !0;
|
|
17177
17177
|
if (u && s) {
|
|
17178
17178
|
let { from: f, to: h } = a;
|
|
17179
|
-
const p = (o = c.marks().find((
|
|
17180
|
-
|
|
17179
|
+
const p = (o = c.marks().find((g) => g.type === l)) === null || o === void 0 ? void 0 : o.attrs, m = El(c, l, p);
|
|
17180
|
+
m && (f = m.from, h = m.to), n.removeMark(f, h, l);
|
|
17181
17181
|
} else
|
|
17182
17182
|
d.forEach((f) => {
|
|
17183
17183
|
n.removeMark(f.$from.pos, f.$to.pos, l);
|
|
@@ -17189,17 +17189,17 @@ const KM = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
17189
17189
|
return a ? (a === "node" && (o = Je(t, r.schema)), a === "mark" && (s = Fn(t, r.schema)), i && n.selection.ranges.forEach((l) => {
|
|
17190
17190
|
const c = l.$from.pos, u = l.$to.pos;
|
|
17191
17191
|
let d, f, h, p;
|
|
17192
|
-
n.selection.empty ? r.doc.nodesBetween(c, u, (
|
|
17193
|
-
o && o ===
|
|
17194
|
-
}) : r.doc.nodesBetween(c, u, (
|
|
17195
|
-
|
|
17196
|
-
...
|
|
17192
|
+
n.selection.empty ? r.doc.nodesBetween(c, u, (m, g) => {
|
|
17193
|
+
o && o === m.type && (h = Math.max(g, c), p = Math.min(g + m.nodeSize, u), d = g, f = m);
|
|
17194
|
+
}) : r.doc.nodesBetween(c, u, (m, g) => {
|
|
17195
|
+
g < c && o && o === m.type && (h = Math.max(g, c), p = Math.min(g + m.nodeSize, u), d = g, f = m), g >= c && g <= u && (o && o === m.type && n.setNodeMarkup(g, void 0, {
|
|
17196
|
+
...m.attrs,
|
|
17197
17197
|
...e
|
|
17198
|
-
}), s &&
|
|
17199
|
-
if (s ===
|
|
17200
|
-
const S = Math.max(
|
|
17198
|
+
}), s && m.marks.length && m.marks.forEach((y) => {
|
|
17199
|
+
if (s === y.type) {
|
|
17200
|
+
const S = Math.max(g, c), $ = Math.min(g + m.nodeSize, u);
|
|
17201
17201
|
n.addMark(S, $, s.create({
|
|
17202
|
-
...
|
|
17202
|
+
...y.attrs,
|
|
17203
17203
|
...e
|
|
17204
17204
|
}));
|
|
17205
17205
|
}
|
|
@@ -17207,9 +17207,9 @@ const KM = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
17207
17207
|
}), f && (d !== void 0 && n.setNodeMarkup(d, void 0, {
|
|
17208
17208
|
...f.attrs,
|
|
17209
17209
|
...e
|
|
17210
|
-
}), s && f.marks.length && f.marks.forEach((
|
|
17211
|
-
s ===
|
|
17212
|
-
...
|
|
17210
|
+
}), s && f.marks.length && f.marks.forEach((m) => {
|
|
17211
|
+
s === m.type && n.addMark(h, p, s.create({
|
|
17212
|
+
...m.attrs,
|
|
17213
17213
|
...e
|
|
17214
17214
|
}));
|
|
17215
17215
|
}));
|
|
@@ -17351,8 +17351,8 @@ const sT = He.create({
|
|
|
17351
17351
|
() => s.undoInputRule(),
|
|
17352
17352
|
// maybe convert first text block node to default node
|
|
17353
17353
|
() => s.command(({ tr: a }) => {
|
|
17354
|
-
const { selection: l, doc: c } = a, { empty: u, $anchor: d } = l, { pos: f, parent: h } = d, p = d.parent.isTextblock && f > 0 ? a.doc.resolve(f - 1) : d,
|
|
17355
|
-
return !u || !h.type.isTextblock || h.textContent.length || !
|
|
17354
|
+
const { selection: l, doc: c } = a, { empty: u, $anchor: d } = l, { pos: f, parent: h } = d, p = d.parent.isTextblock && f > 0 ? a.doc.resolve(f - 1) : d, m = p.parent.type.spec.isolating, g = d.pos - d.parentOffset, y = m && p.parent.childCount === 1 ? g === d.pos : we.atStart(c).from === f;
|
|
17355
|
+
return !u || !h.type.isTextblock || h.textContent.length || !y || y && d.parent.type.name === "paragraph" ? !1 : s.clearNodes();
|
|
17356
17356
|
}),
|
|
17357
17357
|
() => s.deleteSelection(),
|
|
17358
17358
|
() => s.joinBackward(),
|
|
@@ -17401,9 +17401,9 @@ const sT = He.create({
|
|
|
17401
17401
|
new et({
|
|
17402
17402
|
key: new Ct("clearDocument"),
|
|
17403
17403
|
appendTransaction: (t, e, n) => {
|
|
17404
|
-
if (t.some((
|
|
17404
|
+
if (t.some((m) => m.getMeta("composition")))
|
|
17405
17405
|
return;
|
|
17406
|
-
const r = t.some((
|
|
17406
|
+
const r = t.some((m) => m.docChanged) && !e.doc.eq(n.doc), i = t.some((m) => m.getMeta("preventClearDocument"));
|
|
17407
17407
|
if (!r || i)
|
|
17408
17408
|
return;
|
|
17409
17409
|
const { empty: o, from: s, to: a } = e.selection, l = we.atStart(e.doc).from, c = we.atEnd(e.doc).to;
|
|
@@ -18014,7 +18014,7 @@ function Wr(t) {
|
|
|
18014
18014
|
const { tr: o } = e, s = r[r.length - 1], a = r[0];
|
|
18015
18015
|
if (s) {
|
|
18016
18016
|
const l = a.search(/\S/), c = n.from + a.indexOf(s), u = c + s.length;
|
|
18017
|
-
if (lp(n.from, n.to, e.doc).filter((h) => h.mark.type.excluded.find((
|
|
18017
|
+
if (lp(n.from, n.to, e.doc).filter((h) => h.mark.type.excluded.find((m) => m === t.type && m !== h.mark.type)).filter((h) => h.to > c).length)
|
|
18018
18018
|
return null;
|
|
18019
18019
|
u < n.to && o.delete(u, n.to), c > n.from && o.delete(n.from + l, c);
|
|
18020
18020
|
const f = n.from + l + s.length;
|
|
@@ -18065,8 +18065,8 @@ function Bi(t) {
|
|
|
18065
18065
|
if (s.wrap(l, c), t.keepMarks && t.editor) {
|
|
18066
18066
|
const { selection: d, storedMarks: f } = e, { splittableMarks: h } = t.editor.extensionManager, p = f || d.$to.parentOffset && d.$from.marks();
|
|
18067
18067
|
if (p) {
|
|
18068
|
-
const
|
|
18069
|
-
s.ensureMarks(
|
|
18068
|
+
const m = p.filter((g) => h.includes(g.type.name));
|
|
18069
|
+
s.ensureMarks(m);
|
|
18070
18070
|
}
|
|
18071
18071
|
}
|
|
18072
18072
|
if (t.keepAttributes) {
|
|
@@ -18124,7 +18124,7 @@ function qr(t) {
|
|
|
18124
18124
|
let c = n.to;
|
|
18125
18125
|
if (a) {
|
|
18126
18126
|
const u = l.search(/\S/), d = n.from + l.indexOf(a), f = d + a.length;
|
|
18127
|
-
if (lp(n.from, n.to, e.doc).filter((p) => p.mark.type.excluded.find((
|
|
18127
|
+
if (lp(n.from, n.to, e.doc).filter((p) => p.mark.type.excluded.find((g) => g === t.type && g !== p.mark.type)).filter((p) => p.to > d).length)
|
|
18128
18128
|
return null;
|
|
18129
18129
|
f < n.to && s.delete(f, n.to), d > n.from && s.delete(n.from + u, d), c = n.from + u + a.length, s.addMark(n.from + u, c, t.type.create(o || {})), s.removeStoredMark(t.type);
|
|
18130
18130
|
}
|
|
@@ -18339,7 +18339,7 @@ var LT = function(e, n) {
|
|
|
18339
18339
|
function IT(t) {
|
|
18340
18340
|
var e, n = t.state, r = t.name, i = t.options, o = n.elements.arrow, s = n.modifiersData.popperOffsets, a = Yt(n.placement), l = Rl(a), c = [mt, Bt].indexOf(a) >= 0, u = c ? "height" : "width";
|
|
18341
18341
|
if (!(!o || !s)) {
|
|
18342
|
-
var d = LT(i.padding, n), f = Vl(o), h = l === "y" ? pt : mt, p = l === "y" ? It : Bt,
|
|
18342
|
+
var d = LT(i.padding, n), f = Vl(o), h = l === "y" ? pt : mt, p = l === "y" ? It : Bt, m = n.rects.reference[u] + n.rects.reference[l] - s[l] - n.rects.popper[u], g = s[l] - n.rects.reference[l], y = to(o), S = y ? l === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, $ = m / 2 - g / 2, v = d[h], w = S - f[u] - d[p], b = S / 2 - f[u] / 2 + $, E = bi(v, b, w), I = l;
|
|
18343
18343
|
n.modifiersData[r] = (e = {}, e[I] = E, e.centerOffset = E - b, e);
|
|
18344
18344
|
}
|
|
18345
18345
|
}
|
|
@@ -18373,24 +18373,24 @@ function RT(t, e) {
|
|
|
18373
18373
|
};
|
|
18374
18374
|
}
|
|
18375
18375
|
function Ku(t) {
|
|
18376
|
-
var e, n = t.popper, r = t.popperRect, i = t.placement, o = t.variation, s = t.offsets, a = t.position, l = t.gpuAcceleration, c = t.adaptive, u = t.roundOffsets, d = t.isFixed, f = s.x, h = f === void 0 ? 0 : f, p = s.y,
|
|
18376
|
+
var e, n = t.popper, r = t.popperRect, i = t.placement, o = t.variation, s = t.offsets, a = t.position, l = t.gpuAcceleration, c = t.adaptive, u = t.roundOffsets, d = t.isFixed, f = s.x, h = f === void 0 ? 0 : f, p = s.y, m = p === void 0 ? 0 : p, g = typeof u == "function" ? u({
|
|
18377
18377
|
x: h,
|
|
18378
|
-
y:
|
|
18378
|
+
y: m
|
|
18379
18379
|
}) : {
|
|
18380
18380
|
x: h,
|
|
18381
|
-
y:
|
|
18381
|
+
y: m
|
|
18382
18382
|
};
|
|
18383
|
-
h =
|
|
18384
|
-
var
|
|
18383
|
+
h = g.x, m = g.y;
|
|
18384
|
+
var y = s.hasOwnProperty("x"), S = s.hasOwnProperty("y"), $ = mt, v = pt, w = window;
|
|
18385
18385
|
if (c) {
|
|
18386
18386
|
var b = to(n), E = "clientHeight", I = "clientWidth";
|
|
18387
18387
|
if (b === St(n) && (b = Hn(n), gn(b).position !== "static" && a === "absolute" && (E = "scrollHeight", I = "scrollWidth")), b = b, i === pt || (i === mt || i === Bt) && o === Pi) {
|
|
18388
|
-
|
|
18388
|
+
v = It;
|
|
18389
18389
|
var N = d && b === w && w.visualViewport ? w.visualViewport.height : (
|
|
18390
18390
|
// $FlowFixMe[prop-missing]
|
|
18391
18391
|
b[E]
|
|
18392
18392
|
);
|
|
18393
|
-
|
|
18393
|
+
m -= N - r.height, m *= l ? 1 : -1;
|
|
18394
18394
|
}
|
|
18395
18395
|
if (i === mt || (i === pt || i === It) && o === Pi) {
|
|
18396
18396
|
$ = Bt;
|
|
@@ -18405,16 +18405,16 @@ function Ku(t) {
|
|
|
18405
18405
|
position: a
|
|
18406
18406
|
}, c && VT), Y = u === !0 ? RT({
|
|
18407
18407
|
x: h,
|
|
18408
|
-
y:
|
|
18408
|
+
y: m
|
|
18409
18409
|
}, St(n)) : {
|
|
18410
18410
|
x: h,
|
|
18411
|
-
y:
|
|
18411
|
+
y: m
|
|
18412
18412
|
};
|
|
18413
|
-
if (h = Y.x,
|
|
18413
|
+
if (h = Y.x, m = Y.y, l) {
|
|
18414
18414
|
var se;
|
|
18415
|
-
return Object.assign({}, V, (se = {}, se[
|
|
18415
|
+
return Object.assign({}, V, (se = {}, se[v] = S ? "0" : "", se[$] = y ? "0" : "", se.transform = (w.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + m + "px)" : "translate3d(" + h + "px, " + m + "px, 0)", se));
|
|
18416
18416
|
}
|
|
18417
|
-
return Object.assign({}, V, (e = {}, e[
|
|
18417
|
+
return Object.assign({}, V, (e = {}, e[v] = S ? m + "px" : "", e[$] = y ? h + "px" : "", e.transform = "", e));
|
|
18418
18418
|
}
|
|
18419
18419
|
function _T(t) {
|
|
18420
18420
|
var e = t.state, n = t.options, r = n.gpuAcceleration, i = r === void 0 ? !0 : r, o = n.adaptive, s = o === void 0 ? !0 : o, a = n.roundOffsets, l = a === void 0 ? !0 : a, c = {
|
|
@@ -18614,15 +18614,15 @@ function xp(t) {
|
|
|
18614
18614
|
}
|
|
18615
18615
|
function Vi(t, e) {
|
|
18616
18616
|
e === void 0 && (e = {});
|
|
18617
|
-
var n = e, r = n.placement, i = r === void 0 ? t.placement : r, o = n.strategy, s = o === void 0 ? t.strategy : o, a = n.boundary, l = a === void 0 ? gT : a, c = n.rootBoundary, u = c === void 0 ? dp : c, d = n.elementContext, f = d === void 0 ? ci : d, h = n.altBoundary, p = h === void 0 ? !1 : h,
|
|
18617
|
+
var n = e, r = n.placement, i = r === void 0 ? t.placement : r, o = n.strategy, s = o === void 0 ? t.strategy : o, a = n.boundary, l = a === void 0 ? gT : a, c = n.rootBoundary, u = c === void 0 ? dp : c, d = n.elementContext, f = d === void 0 ? ci : d, h = n.altBoundary, p = h === void 0 ? !1 : h, m = n.padding, g = m === void 0 ? 0 : m, y = yp(typeof g != "number" ? g : vp(g, eo)), S = f === ci ? yT : ci, $ = t.rects.popper, v = t.elements[p ? S : f], w = JT(fr(v) ? v : v.contextElement || Hn(t.elements.popper), l, u, s), b = Yr(t.elements.reference), E = xp({
|
|
18618
18618
|
reference: b,
|
|
18619
18619
|
element: $,
|
|
18620
18620
|
placement: i
|
|
18621
18621
|
}), I = Ha(Object.assign({}, $, E)), N = f === ci ? I : b, D = {
|
|
18622
|
-
top: w.top - N.top +
|
|
18623
|
-
bottom: N.bottom - w.bottom +
|
|
18624
|
-
left: w.left - N.left +
|
|
18625
|
-
right: N.right - w.right +
|
|
18622
|
+
top: w.top - N.top + y.top,
|
|
18623
|
+
bottom: N.bottom - w.bottom + y.bottom,
|
|
18624
|
+
left: w.left - N.left + y.left,
|
|
18625
|
+
right: N.right - w.right + y.right
|
|
18626
18626
|
}, V = t.modifiersData.offset;
|
|
18627
18627
|
if (f === ci && V) {
|
|
18628
18628
|
var Y = V[i];
|
|
@@ -18641,16 +18641,16 @@ function GT(t, e) {
|
|
|
18641
18641
|
return c.indexOf(p) >= 0;
|
|
18642
18642
|
});
|
|
18643
18643
|
f.length === 0 && (f = d);
|
|
18644
|
-
var h = f.reduce(function(p,
|
|
18645
|
-
return p[
|
|
18646
|
-
placement:
|
|
18644
|
+
var h = f.reduce(function(p, m) {
|
|
18645
|
+
return p[m] = Vi(t, {
|
|
18646
|
+
placement: m,
|
|
18647
18647
|
boundary: i,
|
|
18648
18648
|
rootBoundary: o,
|
|
18649
18649
|
padding: s
|
|
18650
|
-
})[Yt(
|
|
18650
|
+
})[Yt(m)], p;
|
|
18651
18651
|
}, {});
|
|
18652
|
-
return Object.keys(h).sort(function(p,
|
|
18653
|
-
return h[p] - h[
|
|
18652
|
+
return Object.keys(h).sort(function(p, m) {
|
|
18653
|
+
return h[p] - h[m];
|
|
18654
18654
|
});
|
|
18655
18655
|
}
|
|
18656
18656
|
function ZT(t) {
|
|
@@ -18662,17 +18662,17 @@ function ZT(t) {
|
|
|
18662
18662
|
function XT(t) {
|
|
18663
18663
|
var e = t.state, n = t.options, r = t.name;
|
|
18664
18664
|
if (!e.modifiersData[r]._skip) {
|
|
18665
|
-
for (var i = n.mainAxis, o = i === void 0 ? !0 : i, s = n.altAxis, a = s === void 0 ? !0 : s, l = n.fallbackPlacements, c = n.padding, u = n.boundary, d = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, p = h === void 0 ? !0 : h,
|
|
18665
|
+
for (var i = n.mainAxis, o = i === void 0 ? !0 : i, s = n.altAxis, a = s === void 0 ? !0 : s, l = n.fallbackPlacements, c = n.padding, u = n.boundary, d = n.rootBoundary, f = n.altBoundary, h = n.flipVariations, p = h === void 0 ? !0 : h, m = n.allowedAutoPlacements, g = e.options.placement, y = Yt(g), S = y === g, $ = l || (S || !p ? [wo(g)] : ZT(g)), v = [g].concat($).reduce(function(ae, J) {
|
|
18666
18666
|
return ae.concat(Yt(J) === Bl ? GT(e, {
|
|
18667
18667
|
placement: J,
|
|
18668
18668
|
boundary: u,
|
|
18669
18669
|
rootBoundary: d,
|
|
18670
18670
|
padding: c,
|
|
18671
18671
|
flipVariations: p,
|
|
18672
|
-
allowedAutoPlacements:
|
|
18672
|
+
allowedAutoPlacements: m
|
|
18673
18673
|
}) : J);
|
|
18674
|
-
}, []), w = e.rects.reference, b = e.rects.popper, E = /* @__PURE__ */ new Map(), I = !0, N =
|
|
18675
|
-
var V =
|
|
18674
|
+
}, []), w = e.rects.reference, b = e.rects.popper, E = /* @__PURE__ */ new Map(), I = !0, N = v[0], D = 0; D < v.length; D++) {
|
|
18675
|
+
var V = v[D], Y = Yt(V), se = Jr(V) === Ur, U = [pt, It].indexOf(Y) >= 0, P = U ? "width" : "height", A = Vi(e, {
|
|
18676
18676
|
placement: V,
|
|
18677
18677
|
boundary: u,
|
|
18678
18678
|
rootBoundary: d,
|
|
@@ -18691,7 +18691,7 @@ function XT(t) {
|
|
|
18691
18691
|
}
|
|
18692
18692
|
if (I)
|
|
18693
18693
|
for (var ie = p ? 3 : 1, L = function(J) {
|
|
18694
|
-
var j =
|
|
18694
|
+
var j = v.find(function(oe) {
|
|
18695
18695
|
var Oe = E.get(oe);
|
|
18696
18696
|
if (Oe)
|
|
18697
18697
|
return Oe.slice(0, J).every(function(ge) {
|
|
@@ -18800,14 +18800,14 @@ function a$(t) {
|
|
|
18800
18800
|
return t === "x" ? "y" : "x";
|
|
18801
18801
|
}
|
|
18802
18802
|
function l$(t) {
|
|
18803
|
-
var e = t.state, n = t.options, r = t.name, i = n.mainAxis, o = i === void 0 ? !0 : i, s = n.altAxis, a = s === void 0 ? !1 : s, l = n.boundary, c = n.rootBoundary, u = n.altBoundary, d = n.padding, f = n.tether, h = f === void 0 ? !0 : f, p = n.tetherOffset,
|
|
18803
|
+
var e = t.state, n = t.options, r = t.name, i = n.mainAxis, o = i === void 0 ? !0 : i, s = n.altAxis, a = s === void 0 ? !1 : s, l = n.boundary, c = n.rootBoundary, u = n.altBoundary, d = n.padding, f = n.tether, h = f === void 0 ? !0 : f, p = n.tetherOffset, m = p === void 0 ? 0 : p, g = Vi(e, {
|
|
18804
18804
|
boundary: l,
|
|
18805
18805
|
rootBoundary: c,
|
|
18806
18806
|
padding: d,
|
|
18807
18807
|
altBoundary: u
|
|
18808
|
-
}),
|
|
18808
|
+
}), y = Yt(e.placement), S = Jr(e.placement), $ = !S, v = Rl(y), w = a$(v), b = e.modifiersData.popperOffsets, E = e.rects.reference, I = e.rects.popper, N = typeof m == "function" ? m(Object.assign({}, e.rects, {
|
|
18809
18809
|
placement: e.placement
|
|
18810
|
-
})) :
|
|
18810
|
+
})) : m, D = typeof N == "number" ? {
|
|
18811
18811
|
mainAxis: N,
|
|
18812
18812
|
altAxis: N
|
|
18813
18813
|
} : Object.assign({
|
|
@@ -18819,14 +18819,14 @@ function l$(t) {
|
|
|
18819
18819
|
};
|
|
18820
18820
|
if (b) {
|
|
18821
18821
|
if (o) {
|
|
18822
|
-
var se, U =
|
|
18822
|
+
var se, U = v === "y" ? pt : mt, P = v === "y" ? It : Bt, A = v === "y" ? "height" : "width", z = b[v], _ = z + g[U], ee = z - g[P], ie = h ? -I[A] / 2 : 0, L = S === Ur ? E[A] : I[A], W = S === Ur ? -I[A] : -E[A], q = e.elements.arrow, ae = h && q ? Vl(q) : {
|
|
18823
18823
|
width: 0,
|
|
18824
18824
|
height: 0
|
|
18825
|
-
}, J = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : gp(), j = J[U], oe = J[P], Oe = bi(0, E[A], ae[A]), ge = $ ? E[A] / 2 - ie - Oe - j - D.mainAxis : L - Oe - j - D.mainAxis, Te = $ ? -E[A] / 2 + ie + Oe + oe + D.mainAxis : W + Oe + oe + D.mainAxis, De = e.elements.arrow && to(e.elements.arrow), _e = De ?
|
|
18826
|
-
b[
|
|
18825
|
+
}, J = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : gp(), j = J[U], oe = J[P], Oe = bi(0, E[A], ae[A]), ge = $ ? E[A] / 2 - ie - Oe - j - D.mainAxis : L - Oe - j - D.mainAxis, Te = $ ? -E[A] / 2 + ie + Oe + oe + D.mainAxis : W + Oe + oe + D.mainAxis, De = e.elements.arrow && to(e.elements.arrow), _e = De ? v === "y" ? De.clientTop || 0 : De.clientLeft || 0 : 0, Ot = (se = V == null ? void 0 : V[v]) != null ? se : 0, yr = z + ge - Ot - _e, yn = z + Te - Ot, vn = bi(h ? Ko(_, yr) : _, z, h ? sr(ee, yn) : ee);
|
|
18826
|
+
b[v] = vn, Y[v] = vn - z;
|
|
18827
18827
|
}
|
|
18828
18828
|
if (a) {
|
|
18829
|
-
var nn, Pt =
|
|
18829
|
+
var nn, Pt = v === "x" ? pt : mt, Mt = v === "x" ? It : Bt, Tt = b[w], Ft = w === "y" ? "height" : "width", rn = Tt + g[Pt], Ht = Tt - g[Mt], Wn = [pt, mt].indexOf(y) !== -1, bn = (nn = V == null ? void 0 : V[w]) != null ? nn : 0, vr = Wn ? rn : Tt - E[Ft] - I[Ft] - bn + D.altAxis, br = Wn ? Tt + E[Ft] + I[Ft] - bn - D.altAxis : Ht, xr = h && Wn ? NT(vr, Tt, br) : bi(h ? vr : rn, Tt, h ? br : Ht);
|
|
18830
18830
|
b[w] = xr, Y[w] = xr - Tt;
|
|
18831
18831
|
}
|
|
18832
18832
|
e.modifiersData[r] = Y;
|
|
@@ -18948,15 +18948,15 @@ function v$(t) {
|
|
|
18948
18948
|
styles: {}
|
|
18949
18949
|
}, d = [], f = !1, h = {
|
|
18950
18950
|
state: u,
|
|
18951
|
-
setOptions: function(
|
|
18952
|
-
var S = typeof
|
|
18953
|
-
|
|
18951
|
+
setOptions: function(y) {
|
|
18952
|
+
var S = typeof y == "function" ? y(u.options) : y;
|
|
18953
|
+
m(), u.options = Object.assign({}, o, u.options, S), u.scrollParents = {
|
|
18954
18954
|
reference: fr(a) ? xi(a) : a.contextElement ? xi(a.contextElement) : [],
|
|
18955
18955
|
popper: xi(l)
|
|
18956
18956
|
};
|
|
18957
18957
|
var $ = m$(y$([].concat(r, u.options.modifiers)));
|
|
18958
|
-
return u.orderedModifiers = $.filter(function(
|
|
18959
|
-
return
|
|
18958
|
+
return u.orderedModifiers = $.filter(function(v) {
|
|
18959
|
+
return v.enabled;
|
|
18960
18960
|
}), p(), h.update();
|
|
18961
18961
|
},
|
|
18962
18962
|
// Sync update – it will always be executed, even if not necessary. This
|
|
@@ -18966,7 +18966,7 @@ function v$(t) {
|
|
|
18966
18966
|
// prefer the async Popper#update method
|
|
18967
18967
|
forceUpdate: function() {
|
|
18968
18968
|
if (!f) {
|
|
18969
|
-
var
|
|
18969
|
+
var y = u.elements, S = y.reference, $ = y.popper;
|
|
18970
18970
|
if (Qu(S, $)) {
|
|
18971
18971
|
u.rects = {
|
|
18972
18972
|
reference: h$(S, to($), u.options.strategy === "fixed"),
|
|
@@ -18974,12 +18974,12 @@ function v$(t) {
|
|
|
18974
18974
|
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(D) {
|
|
18975
18975
|
return u.modifiersData[D.name] = Object.assign({}, D.data);
|
|
18976
18976
|
});
|
|
18977
|
-
for (var
|
|
18977
|
+
for (var v = 0; v < u.orderedModifiers.length; v++) {
|
|
18978
18978
|
if (u.reset === !0) {
|
|
18979
|
-
u.reset = !1,
|
|
18979
|
+
u.reset = !1, v = -1;
|
|
18980
18980
|
continue;
|
|
18981
18981
|
}
|
|
18982
|
-
var w = u.orderedModifiers[
|
|
18982
|
+
var w = u.orderedModifiers[v], b = w.fn, E = w.options, I = E === void 0 ? {} : E, N = w.name;
|
|
18983
18983
|
typeof b == "function" && (u = b({
|
|
18984
18984
|
state: u,
|
|
18985
18985
|
options: I,
|
|
@@ -18993,26 +18993,26 @@ function v$(t) {
|
|
|
18993
18993
|
// Async and optimistically optimized update – it will not be executed if
|
|
18994
18994
|
// not necessary (debounced to run at most once-per-tick)
|
|
18995
18995
|
update: g$(function() {
|
|
18996
|
-
return new Promise(function(
|
|
18997
|
-
h.forceUpdate(),
|
|
18996
|
+
return new Promise(function(g) {
|
|
18997
|
+
h.forceUpdate(), g(u);
|
|
18998
18998
|
});
|
|
18999
18999
|
}),
|
|
19000
19000
|
destroy: function() {
|
|
19001
|
-
|
|
19001
|
+
m(), f = !0;
|
|
19002
19002
|
}
|
|
19003
19003
|
};
|
|
19004
19004
|
if (!Qu(a, l))
|
|
19005
19005
|
return h;
|
|
19006
|
-
h.setOptions(c).then(function(
|
|
19007
|
-
!f && c.onFirstUpdate && c.onFirstUpdate(
|
|
19006
|
+
h.setOptions(c).then(function(g) {
|
|
19007
|
+
!f && c.onFirstUpdate && c.onFirstUpdate(g);
|
|
19008
19008
|
});
|
|
19009
19009
|
function p() {
|
|
19010
|
-
u.orderedModifiers.forEach(function(
|
|
19011
|
-
var
|
|
19012
|
-
if (typeof
|
|
19013
|
-
var w =
|
|
19010
|
+
u.orderedModifiers.forEach(function(g) {
|
|
19011
|
+
var y = g.name, S = g.options, $ = S === void 0 ? {} : S, v = g.effect;
|
|
19012
|
+
if (typeof v == "function") {
|
|
19013
|
+
var w = v({
|
|
19014
19014
|
state: u,
|
|
19015
|
-
name:
|
|
19015
|
+
name: y,
|
|
19016
19016
|
instance: h,
|
|
19017
19017
|
options: $
|
|
19018
19018
|
}), b = function() {
|
|
@@ -19021,9 +19021,9 @@ function v$(t) {
|
|
|
19021
19021
|
}
|
|
19022
19022
|
});
|
|
19023
19023
|
}
|
|
19024
|
-
function
|
|
19025
|
-
d.forEach(function(
|
|
19026
|
-
return
|
|
19024
|
+
function m() {
|
|
19025
|
+
d.forEach(function(g) {
|
|
19026
|
+
return g();
|
|
19027
19027
|
}), d = [];
|
|
19028
19028
|
}
|
|
19029
19029
|
return h;
|
|
@@ -19135,8 +19135,8 @@ function L$(t, e) {
|
|
|
19135
19135
|
var o = i.popperRect, s = i.popperState, a = i.props, l = a.interactiveBorder, c = T$(s.placement), u = s.modifiersData.offset;
|
|
19136
19136
|
if (!u)
|
|
19137
19137
|
return !0;
|
|
19138
|
-
var d = c === "bottom" ? u.top.y : 0, f = c === "top" ? u.bottom.y : 0, h = c === "right" ? u.left.x : 0, p = c === "left" ? u.right.x : 0,
|
|
19139
|
-
return
|
|
19138
|
+
var d = c === "bottom" ? u.top.y : 0, f = c === "top" ? u.bottom.y : 0, h = c === "right" ? u.left.x : 0, p = c === "left" ? u.right.x : 0, m = o.top - r + d > l, g = r - o.bottom - f > l, y = o.left - n + h > l, S = n - o.right - p > l;
|
|
19139
|
+
return m || g || y || S;
|
|
19140
19140
|
});
|
|
19141
19141
|
}
|
|
19142
19142
|
function Gs(t, e, n) {
|
|
@@ -19394,7 +19394,7 @@ function Dp(t) {
|
|
|
19394
19394
|
Dp.$$tippy = !0;
|
|
19395
19395
|
var K$ = 1, mo = [], Zs = [];
|
|
19396
19396
|
function Y$(t, e) {
|
|
19397
|
-
var n = ad(t, Object.assign({}, bt, Ap(nd(e)))), r, i, o, s = !1, a = !1, l = !1, c = !1, u, d, f, h = [], p = ed(yr, n.interactiveDebounce),
|
|
19397
|
+
var n = ad(t, Object.assign({}, bt, Ap(nd(e)))), r, i, o, s = !1, a = !1, l = !1, c = !1, u, d, f, h = [], p = ed(yr, n.interactiveDebounce), m, g = K$++, y = null, S = M$(n.plugins), $ = {
|
|
19398
19398
|
// Is the instance currently enabled?
|
|
19399
19399
|
isEnabled: !0,
|
|
19400
19400
|
// Is the tippy currently showing and not transitioning out?
|
|
@@ -19405,12 +19405,12 @@ function Y$(t, e) {
|
|
|
19405
19405
|
isMounted: !1,
|
|
19406
19406
|
// Has the tippy finished transitioning in?
|
|
19407
19407
|
isShown: !1
|
|
19408
|
-
},
|
|
19408
|
+
}, v = {
|
|
19409
19409
|
// properties
|
|
19410
|
-
id:
|
|
19410
|
+
id: g,
|
|
19411
19411
|
reference: t,
|
|
19412
19412
|
popper: wi(),
|
|
19413
|
-
popperInstance:
|
|
19413
|
+
popperInstance: y,
|
|
19414
19414
|
props: n,
|
|
19415
19415
|
state: $,
|
|
19416
19416
|
plugins: S,
|
|
@@ -19427,19 +19427,19 @@ function Y$(t, e) {
|
|
|
19427
19427
|
destroy: fe
|
|
19428
19428
|
};
|
|
19429
19429
|
if (!n.render)
|
|
19430
|
-
return process.env.NODE_ENV !== "production" && Wa(!0, "render() function has not been supplied."),
|
|
19431
|
-
var w = n.render(
|
|
19432
|
-
b.setAttribute("data-tippy-root", ""), b.id = "tippy-" +
|
|
19430
|
+
return process.env.NODE_ENV !== "production" && Wa(!0, "render() function has not been supplied."), v;
|
|
19431
|
+
var w = n.render(v), b = w.popper, E = w.onUpdate;
|
|
19432
|
+
b.setAttribute("data-tippy-root", ""), b.id = "tippy-" + v.id, v.popper = b, t._tippy = v, b._tippy = v;
|
|
19433
19433
|
var I = S.map(function(k) {
|
|
19434
|
-
return k.fn(
|
|
19434
|
+
return k.fn(v);
|
|
19435
19435
|
}), N = t.hasAttribute("aria-expanded");
|
|
19436
|
-
return De(), ie(), z(), _("onCreate", [
|
|
19437
|
-
|
|
19436
|
+
return De(), ie(), z(), _("onCreate", [v]), n.showOnCreate && rn(), b.addEventListener("mouseenter", function() {
|
|
19437
|
+
v.props.interactive && v.state.isVisible && v.clearDelayTimeouts();
|
|
19438
19438
|
}), b.addEventListener("mouseleave", function() {
|
|
19439
|
-
|
|
19440
|
-
}),
|
|
19439
|
+
v.props.interactive && v.props.trigger.indexOf("mouseenter") >= 0 && U().addEventListener("mousemove", p);
|
|
19440
|
+
}), v;
|
|
19441
19441
|
function D() {
|
|
19442
|
-
var k =
|
|
19442
|
+
var k = v.props.touch;
|
|
19443
19443
|
return Array.isArray(k) ? k : [k, 0];
|
|
19444
19444
|
}
|
|
19445
19445
|
function V() {
|
|
@@ -19447,10 +19447,10 @@ function Y$(t, e) {
|
|
|
19447
19447
|
}
|
|
19448
19448
|
function Y() {
|
|
19449
19449
|
var k;
|
|
19450
|
-
return !!((k =
|
|
19450
|
+
return !!((k = v.props.render) != null && k.$$tippy);
|
|
19451
19451
|
}
|
|
19452
19452
|
function se() {
|
|
19453
|
-
return
|
|
19453
|
+
return m || t;
|
|
19454
19454
|
}
|
|
19455
19455
|
function U() {
|
|
19456
19456
|
var k = se().parentNode;
|
|
@@ -19460,26 +19460,26 @@ function Y$(t, e) {
|
|
|
19460
19460
|
return Ua(b);
|
|
19461
19461
|
}
|
|
19462
19462
|
function A(k) {
|
|
19463
|
-
return
|
|
19463
|
+
return v.state.isMounted && !v.state.isVisible || Ut.isTouch || u && u.type === "focus" ? 0 : Ys(v.props.delay, k ? 0 : 1, bt.delay);
|
|
19464
19464
|
}
|
|
19465
19465
|
function z(k) {
|
|
19466
|
-
k === void 0 && (k = !1), b.style.pointerEvents =
|
|
19466
|
+
k === void 0 && (k = !1), b.style.pointerEvents = v.props.interactive && !k ? "" : "none", b.style.zIndex = "" + v.props.zIndex;
|
|
19467
19467
|
}
|
|
19468
19468
|
function _(k, K, Q) {
|
|
19469
19469
|
if (Q === void 0 && (Q = !0), I.forEach(function(he) {
|
|
19470
19470
|
he[k] && he[k].apply(he, K);
|
|
19471
19471
|
}), Q) {
|
|
19472
19472
|
var ue;
|
|
19473
|
-
(ue =
|
|
19473
|
+
(ue = v.props)[k].apply(ue, K);
|
|
19474
19474
|
}
|
|
19475
19475
|
}
|
|
19476
19476
|
function ee() {
|
|
19477
|
-
var k =
|
|
19477
|
+
var k = v.props.aria;
|
|
19478
19478
|
if (k.content) {
|
|
19479
|
-
var K = "aria-" + k.content, Q = b.id, ue = Tr(
|
|
19479
|
+
var K = "aria-" + k.content, Q = b.id, ue = Tr(v.props.triggerTarget || t);
|
|
19480
19480
|
ue.forEach(function(he) {
|
|
19481
19481
|
var xe = he.getAttribute(K);
|
|
19482
|
-
if (
|
|
19482
|
+
if (v.state.isVisible)
|
|
19483
19483
|
he.setAttribute(K, xe ? xe + " " + Q : Q);
|
|
19484
19484
|
else {
|
|
19485
19485
|
var Ae = xe && xe.replace(Q, "").trim();
|
|
@@ -19489,10 +19489,10 @@ function Y$(t, e) {
|
|
|
19489
19489
|
}
|
|
19490
19490
|
}
|
|
19491
19491
|
function ie() {
|
|
19492
|
-
if (!(N || !
|
|
19493
|
-
var k = Tr(
|
|
19492
|
+
if (!(N || !v.props.aria.expanded)) {
|
|
19493
|
+
var k = Tr(v.props.triggerTarget || t);
|
|
19494
19494
|
k.forEach(function(K) {
|
|
19495
|
-
|
|
19495
|
+
v.props.interactive ? K.setAttribute("aria-expanded", v.state.isVisible && K === se() ? "true" : "false") : K.removeAttribute("aria-expanded");
|
|
19496
19496
|
});
|
|
19497
19497
|
}
|
|
19498
19498
|
}
|
|
@@ -19504,17 +19504,17 @@ function Y$(t, e) {
|
|
|
19504
19504
|
function W(k) {
|
|
19505
19505
|
if (!(Ut.isTouch && (l || k.type === "mousedown"))) {
|
|
19506
19506
|
var K = k.composedPath && k.composedPath()[0] || k.target;
|
|
19507
|
-
if (!(
|
|
19508
|
-
if (Tr(
|
|
19507
|
+
if (!(v.props.interactive && id(b, K))) {
|
|
19508
|
+
if (Tr(v.props.triggerTarget || t).some(function(Q) {
|
|
19509
19509
|
return id(Q, K);
|
|
19510
19510
|
})) {
|
|
19511
|
-
if (Ut.isTouch ||
|
|
19511
|
+
if (Ut.isTouch || v.state.isVisible && v.props.trigger.indexOf("click") >= 0)
|
|
19512
19512
|
return;
|
|
19513
19513
|
} else
|
|
19514
|
-
_("onClickOutside", [
|
|
19515
|
-
|
|
19514
|
+
_("onClickOutside", [v, k]);
|
|
19515
|
+
v.props.hideOnClick === !0 && (v.clearDelayTimeouts(), v.hide(), a = !0, setTimeout(function() {
|
|
19516
19516
|
a = !1;
|
|
19517
|
-
}),
|
|
19517
|
+
}), v.state.isMounted || j());
|
|
19518
19518
|
}
|
|
19519
19519
|
}
|
|
19520
19520
|
}
|
|
@@ -19534,7 +19534,7 @@ function Y$(t, e) {
|
|
|
19534
19534
|
}
|
|
19535
19535
|
function oe(k, K) {
|
|
19536
19536
|
ge(k, function() {
|
|
19537
|
-
!
|
|
19537
|
+
!v.state.isVisible && b.parentNode && b.parentNode.contains(b) && K();
|
|
19538
19538
|
});
|
|
19539
19539
|
}
|
|
19540
19540
|
function Oe(k, K) {
|
|
@@ -19551,7 +19551,7 @@ function Y$(t, e) {
|
|
|
19551
19551
|
}
|
|
19552
19552
|
function Te(k, K, Q) {
|
|
19553
19553
|
Q === void 0 && (Q = !1);
|
|
19554
|
-
var ue = Tr(
|
|
19554
|
+
var ue = Tr(v.props.triggerTarget || t);
|
|
19555
19555
|
ue.forEach(function(he) {
|
|
19556
19556
|
he.addEventListener(k, K, Q), h.push({
|
|
19557
19557
|
node: he,
|
|
@@ -19566,7 +19566,7 @@ function Y$(t, e) {
|
|
|
19566
19566
|
passive: !0
|
|
19567
19567
|
}), Te("touchend", yn, {
|
|
19568
19568
|
passive: !0
|
|
19569
|
-
})), O$(
|
|
19569
|
+
})), O$(v.props.trigger).forEach(function(k) {
|
|
19570
19570
|
if (k !== "manual")
|
|
19571
19571
|
switch (Te(k, Ot), k) {
|
|
19572
19572
|
case "mouseenter":
|
|
@@ -19589,11 +19589,11 @@ function Y$(t, e) {
|
|
|
19589
19589
|
}
|
|
19590
19590
|
function Ot(k) {
|
|
19591
19591
|
var K, Q = !1;
|
|
19592
|
-
if (!(!
|
|
19592
|
+
if (!(!v.state.isEnabled || nn(k) || a)) {
|
|
19593
19593
|
var ue = ((K = u) == null ? void 0 : K.type) === "focus";
|
|
19594
|
-
u = k,
|
|
19594
|
+
u = k, m = k.currentTarget, ie(), !v.state.isVisible && A$(k) && mo.forEach(function(he) {
|
|
19595
19595
|
return he(k);
|
|
19596
|
-
}), k.type === "click" && (
|
|
19596
|
+
}), k.type === "click" && (v.props.trigger.indexOf("mouseenter") < 0 || s) && v.props.hideOnClick !== !1 && v.state.isVisible ? Q = !0 : rn(k), k.type === "click" && (s = !Q), Q && !ue && Ht(k);
|
|
19597
19597
|
}
|
|
19598
19598
|
}
|
|
19599
19599
|
function yr(k) {
|
|
@@ -19611,24 +19611,24 @@ function Y$(t, e) {
|
|
|
19611
19611
|
}
|
|
19612
19612
|
}
|
|
19613
19613
|
function yn(k) {
|
|
19614
|
-
var K = nn(k) ||
|
|
19614
|
+
var K = nn(k) || v.props.trigger.indexOf("click") >= 0 && s;
|
|
19615
19615
|
if (!K) {
|
|
19616
|
-
if (
|
|
19617
|
-
|
|
19616
|
+
if (v.props.interactive) {
|
|
19617
|
+
v.hideWithInteractivity(k);
|
|
19618
19618
|
return;
|
|
19619
19619
|
}
|
|
19620
19620
|
Ht(k);
|
|
19621
19621
|
}
|
|
19622
19622
|
}
|
|
19623
19623
|
function vn(k) {
|
|
19624
|
-
|
|
19624
|
+
v.props.trigger.indexOf("focusin") < 0 && k.target !== se() || v.props.interactive && k.relatedTarget && b.contains(k.relatedTarget) || Ht(k);
|
|
19625
19625
|
}
|
|
19626
19626
|
function nn(k) {
|
|
19627
19627
|
return Ut.isTouch ? V() !== k.type.indexOf("touch") >= 0 : !1;
|
|
19628
19628
|
}
|
|
19629
19629
|
function Pt() {
|
|
19630
19630
|
Mt();
|
|
19631
|
-
var k =
|
|
19631
|
+
var k = v.props, K = k.popperOptions, Q = k.placement, ue = k.offset, he = k.getReferenceClientRect, xe = k.moveTransition, Ae = Y() ? Ua(b).arrow : null, Re = he ? {
|
|
19632
19632
|
getBoundingClientRect: he,
|
|
19633
19633
|
contextElement: he.contextElement || se()
|
|
19634
19634
|
} : t, ot = {
|
|
@@ -19677,18 +19677,18 @@ function Y$(t, e) {
|
|
|
19677
19677
|
element: Ae,
|
|
19678
19678
|
padding: 3
|
|
19679
19679
|
}
|
|
19680
|
-
}), yt.push.apply(yt, (K == null ? void 0 : K.modifiers) || []),
|
|
19680
|
+
}), yt.push.apply(yt, (K == null ? void 0 : K.modifiers) || []), v.popperInstance = x$(Re, b, Object.assign({}, K, {
|
|
19681
19681
|
placement: Q,
|
|
19682
19682
|
onFirstUpdate: f,
|
|
19683
19683
|
modifiers: yt
|
|
19684
19684
|
}));
|
|
19685
19685
|
}
|
|
19686
19686
|
function Mt() {
|
|
19687
|
-
|
|
19687
|
+
v.popperInstance && (v.popperInstance.destroy(), v.popperInstance = null);
|
|
19688
19688
|
}
|
|
19689
19689
|
function Tt() {
|
|
19690
|
-
var k =
|
|
19691
|
-
|
|
19690
|
+
var k = v.props.appendTo, K, Q = se();
|
|
19691
|
+
v.props.interactive && k === Cp || k === "parent" ? K = Q.parentNode : K = Op(k, [Q]), K.contains(b) || K.appendChild(b), v.state.isMounted = !0, Pt(), process.env.NODE_ENV !== "production" && ln(v.props.interactive && k === bt.appendTo && Q.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.", `
|
|
19692
19692
|
|
|
19693
19693
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
19694
19694
|
|
|
@@ -19700,98 +19700,98 @@ function Y$(t, e) {
|
|
|
19700
19700
|
return Yo(b.querySelectorAll("[data-tippy-root]"));
|
|
19701
19701
|
}
|
|
19702
19702
|
function rn(k) {
|
|
19703
|
-
|
|
19703
|
+
v.clearDelayTimeouts(), k && _("onTrigger", [v, k]), J();
|
|
19704
19704
|
var K = A(!0), Q = D(), ue = Q[0], he = Q[1];
|
|
19705
19705
|
Ut.isTouch && ue === "hold" && he && (K = he), K ? r = setTimeout(function() {
|
|
19706
|
-
|
|
19707
|
-
}, K) :
|
|
19706
|
+
v.show();
|
|
19707
|
+
}, K) : v.show();
|
|
19708
19708
|
}
|
|
19709
19709
|
function Ht(k) {
|
|
19710
|
-
if (
|
|
19710
|
+
if (v.clearDelayTimeouts(), _("onUntrigger", [v, k]), !v.state.isVisible) {
|
|
19711
19711
|
j();
|
|
19712
19712
|
return;
|
|
19713
19713
|
}
|
|
19714
|
-
if (!(
|
|
19714
|
+
if (!(v.props.trigger.indexOf("mouseenter") >= 0 && v.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(k.type) >= 0 && s)) {
|
|
19715
19715
|
var K = A(!1);
|
|
19716
19716
|
K ? i = setTimeout(function() {
|
|
19717
|
-
|
|
19717
|
+
v.state.isVisible && v.hide();
|
|
19718
19718
|
}, K) : o = requestAnimationFrame(function() {
|
|
19719
|
-
|
|
19719
|
+
v.hide();
|
|
19720
19720
|
});
|
|
19721
19721
|
}
|
|
19722
19722
|
}
|
|
19723
19723
|
function Wn() {
|
|
19724
|
-
|
|
19724
|
+
v.state.isEnabled = !0;
|
|
19725
19725
|
}
|
|
19726
19726
|
function bn() {
|
|
19727
|
-
|
|
19727
|
+
v.hide(), v.state.isEnabled = !1;
|
|
19728
19728
|
}
|
|
19729
19729
|
function vr() {
|
|
19730
19730
|
clearTimeout(r), clearTimeout(i), cancelAnimationFrame(o);
|
|
19731
19731
|
}
|
|
19732
19732
|
function br(k) {
|
|
19733
|
-
if (process.env.NODE_ENV !== "production" && ln(
|
|
19734
|
-
_("onBeforeUpdate", [
|
|
19735
|
-
var K =
|
|
19733
|
+
if (process.env.NODE_ENV !== "production" && ln(v.state.isDestroyed, Cr("setProps")), !v.state.isDestroyed) {
|
|
19734
|
+
_("onBeforeUpdate", [v, k]), _e();
|
|
19735
|
+
var K = v.props, Q = ad(t, Object.assign({}, K, nd(k), {
|
|
19736
19736
|
ignoreAttributes: !0
|
|
19737
19737
|
}));
|
|
19738
|
-
|
|
19738
|
+
v.props = Q, De(), K.interactiveDebounce !== Q.interactiveDebounce && (L(), p = ed(yr, Q.interactiveDebounce)), K.triggerTarget && !Q.triggerTarget ? Tr(K.triggerTarget).forEach(function(ue) {
|
|
19739
19739
|
ue.removeAttribute("aria-expanded");
|
|
19740
|
-
}) : Q.triggerTarget && t.removeAttribute("aria-expanded"), ie(), z(), E && E(K, Q),
|
|
19740
|
+
}) : Q.triggerTarget && t.removeAttribute("aria-expanded"), ie(), z(), E && E(K, Q), v.popperInstance && (Pt(), Ft().forEach(function(ue) {
|
|
19741
19741
|
requestAnimationFrame(ue._tippy.popperInstance.forceUpdate);
|
|
19742
|
-
})), _("onAfterUpdate", [
|
|
19742
|
+
})), _("onAfterUpdate", [v, k]);
|
|
19743
19743
|
}
|
|
19744
19744
|
}
|
|
19745
19745
|
function xr(k) {
|
|
19746
|
-
|
|
19746
|
+
v.setProps({
|
|
19747
19747
|
content: k
|
|
19748
19748
|
});
|
|
19749
19749
|
}
|
|
19750
19750
|
function M() {
|
|
19751
|
-
process.env.NODE_ENV !== "production" && ln(
|
|
19752
|
-
var k =
|
|
19753
|
-
if (!(k || K || Q || ue) && !se().hasAttribute("disabled") && (_("onShow", [
|
|
19754
|
-
if (
|
|
19751
|
+
process.env.NODE_ENV !== "production" && ln(v.state.isDestroyed, Cr("show"));
|
|
19752
|
+
var k = v.state.isVisible, K = v.state.isDestroyed, Q = !v.state.isEnabled, ue = Ut.isTouch && !v.props.touch, he = Ys(v.props.duration, 0, bt.duration);
|
|
19753
|
+
if (!(k || K || Q || ue) && !se().hasAttribute("disabled") && (_("onShow", [v], !1), v.props.onShow(v) !== !1)) {
|
|
19754
|
+
if (v.state.isVisible = !0, Y() && (b.style.visibility = "visible"), z(), J(), v.state.isMounted || (b.style.transition = "none"), Y()) {
|
|
19755
19755
|
var xe = P(), Ae = xe.box, Re = xe.content;
|
|
19756
19756
|
Js([Ae, Re], 0);
|
|
19757
19757
|
}
|
|
19758
19758
|
f = function() {
|
|
19759
19759
|
var yt;
|
|
19760
|
-
if (!(!
|
|
19761
|
-
if (c = !0, b.offsetHeight, b.style.transition =
|
|
19760
|
+
if (!(!v.state.isVisible || c)) {
|
|
19761
|
+
if (c = !0, b.offsetHeight, b.style.transition = v.props.moveTransition, Y() && v.props.animation) {
|
|
19762
19762
|
var qn = P(), xn = qn.box, Wt = qn.content;
|
|
19763
19763
|
Js([xn, Wt], he), rd([xn, Wt], "visible");
|
|
19764
19764
|
}
|
|
19765
|
-
ee(), ie(), td(Zs,
|
|
19766
|
-
|
|
19765
|
+
ee(), ie(), td(Zs, v), (yt = v.popperInstance) == null || yt.forceUpdate(), _("onMount", [v]), v.props.animation && Y() && Oe(he, function() {
|
|
19766
|
+
v.state.isShown = !0, _("onShown", [v]);
|
|
19767
19767
|
});
|
|
19768
19768
|
}
|
|
19769
19769
|
}, Tt();
|
|
19770
19770
|
}
|
|
19771
19771
|
}
|
|
19772
19772
|
function O() {
|
|
19773
|
-
process.env.NODE_ENV !== "production" && ln(
|
|
19774
|
-
var k = !
|
|
19775
|
-
if (!(k || K || Q) && (_("onHide", [
|
|
19776
|
-
if (
|
|
19773
|
+
process.env.NODE_ENV !== "production" && ln(v.state.isDestroyed, Cr("hide"));
|
|
19774
|
+
var k = !v.state.isVisible, K = v.state.isDestroyed, Q = !v.state.isEnabled, ue = Ys(v.props.duration, 1, bt.duration);
|
|
19775
|
+
if (!(k || K || Q) && (_("onHide", [v], !1), v.props.onHide(v) !== !1)) {
|
|
19776
|
+
if (v.state.isVisible = !1, v.state.isShown = !1, c = !1, s = !1, Y() && (b.style.visibility = "hidden"), L(), j(), z(!0), Y()) {
|
|
19777
19777
|
var he = P(), xe = he.box, Ae = he.content;
|
|
19778
|
-
|
|
19778
|
+
v.props.animation && (Js([xe, Ae], ue), rd([xe, Ae], "hidden"));
|
|
19779
19779
|
}
|
|
19780
|
-
ee(), ie(),
|
|
19780
|
+
ee(), ie(), v.props.animation ? Y() && oe(ue, v.unmount) : v.unmount();
|
|
19781
19781
|
}
|
|
19782
19782
|
}
|
|
19783
19783
|
function R(k) {
|
|
19784
|
-
process.env.NODE_ENV !== "production" && ln(
|
|
19784
|
+
process.env.NODE_ENV !== "production" && ln(v.state.isDestroyed, Cr("hideWithInteractivity")), U().addEventListener("mousemove", p), td(mo, p), p(k);
|
|
19785
19785
|
}
|
|
19786
19786
|
function X() {
|
|
19787
|
-
process.env.NODE_ENV !== "production" && ln(
|
|
19787
|
+
process.env.NODE_ENV !== "production" && ln(v.state.isDestroyed, Cr("unmount")), v.state.isVisible && v.hide(), v.state.isMounted && (Mt(), Ft().forEach(function(k) {
|
|
19788
19788
|
k._tippy.unmount();
|
|
19789
19789
|
}), b.parentNode && b.parentNode.removeChild(b), Zs = Zs.filter(function(k) {
|
|
19790
|
-
return k !==
|
|
19791
|
-
}),
|
|
19790
|
+
return k !== v;
|
|
19791
|
+
}), v.state.isMounted = !1, _("onHidden", [v]));
|
|
19792
19792
|
}
|
|
19793
19793
|
function fe() {
|
|
19794
|
-
process.env.NODE_ENV !== "production" && ln(
|
|
19794
|
+
process.env.NODE_ENV !== "production" && ln(v.state.isDestroyed, Cr("destroy")), !v.state.isDestroyed && (v.clearDelayTimeouts(), v.unmount(), _e(), delete t._tippy, v.state.isDestroyed = !0, _("onDestroy", [v]));
|
|
19795
19795
|
}
|
|
19796
19796
|
}
|
|
19797
19797
|
function ii(t, e) {
|
|
@@ -19842,8 +19842,8 @@ ii.setDefaultProps({
|
|
|
19842
19842
|
class J$ {
|
|
19843
19843
|
constructor({ editor: e, element: n, view: r, tippyOptions: i = {}, updateDelay: o = 250, shouldShow: s }) {
|
|
19844
19844
|
this.preventHide = !1, this.shouldShow = ({ view: a, state: l, from: c, to: u }) => {
|
|
19845
|
-
const { doc: d, selection: f } = l, { empty: h } = f, p = !d.textBetween(c, u).length && Dl(l.selection),
|
|
19846
|
-
return !(!(a.hasFocus() ||
|
|
19845
|
+
const { doc: d, selection: f } = l, { empty: h } = f, p = !d.textBetween(c, u).length && Dl(l.selection), m = this.element.contains(document.activeElement);
|
|
19846
|
+
return !(!(a.hasFocus() || m) || h || p || !this.editor.isEditable);
|
|
19847
19847
|
}, this.mousedownHandler = () => {
|
|
19848
19848
|
this.preventHide = !0;
|
|
19849
19849
|
}, this.dragstartHandler = () => {
|
|
@@ -19866,18 +19866,18 @@ class J$ {
|
|
|
19866
19866
|
}, this.updateDelay));
|
|
19867
19867
|
}, this.updateHandler = (a, l, c, u) => {
|
|
19868
19868
|
var d, f, h;
|
|
19869
|
-
const { state: p, composing:
|
|
19870
|
-
if (
|
|
19869
|
+
const { state: p, composing: m } = a, { selection: g } = p;
|
|
19870
|
+
if (m || !l && !c)
|
|
19871
19871
|
return;
|
|
19872
19872
|
this.createTooltip();
|
|
19873
|
-
const { ranges: S } =
|
|
19873
|
+
const { ranges: S } = g, $ = Math.min(...S.map((b) => b.$from.pos)), v = Math.max(...S.map((b) => b.$to.pos));
|
|
19874
19874
|
if (!((d = this.shouldShow) === null || d === void 0 ? void 0 : d.call(this, {
|
|
19875
19875
|
editor: this.editor,
|
|
19876
19876
|
view: a,
|
|
19877
19877
|
state: p,
|
|
19878
19878
|
oldState: u,
|
|
19879
19879
|
from: $,
|
|
19880
|
-
to:
|
|
19880
|
+
to: v
|
|
19881
19881
|
}))) {
|
|
19882
19882
|
this.hide();
|
|
19883
19883
|
return;
|
|
@@ -19890,7 +19890,7 @@ class J$ {
|
|
|
19890
19890
|
if (E && (b = E.firstChild), b)
|
|
19891
19891
|
return b.getBoundingClientRect();
|
|
19892
19892
|
}
|
|
19893
|
-
return cp(a, $,
|
|
19893
|
+
return cp(a, $, v);
|
|
19894
19894
|
})
|
|
19895
19895
|
}), this.show();
|
|
19896
19896
|
}, this.editor = e, this.element = n, this.view = r, this.updateDelay = o, s && (this.shouldShow = s), this.element.addEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.addEventListener("dragstart", this.dragstartHandler), this.editor.on("focus", this.focusHandler), this.editor.on("blur", this.blurHandler), this.tippyOptions = i, this.element.remove(), this.element.style.visibility = "visible";
|
|
@@ -21225,8 +21225,8 @@ class Vt {
|
|
|
21225
21225
|
s = Math.min(s, h);
|
|
21226
21226
|
let p = o.maps[h];
|
|
21227
21227
|
if (f.step) {
|
|
21228
|
-
let
|
|
21229
|
-
|
|
21228
|
+
let m = e.steps[h].invert(e.docs[h]), g = f.selection && f.selection.map(o.slice(l + 1, h));
|
|
21229
|
+
g && a++, r.push(new qt(p, m, g));
|
|
21230
21230
|
} else
|
|
21231
21231
|
r.push(new qt(p));
|
|
21232
21232
|
}, i);
|
|
@@ -21758,9 +21758,9 @@ const Pp = Bp(!1, !0), Vp = Bp(!0, !0), R7 = He.create({
|
|
|
21758
21758
|
}), Q7 = He.create({
|
|
21759
21759
|
name: "starterKit",
|
|
21760
21760
|
addExtensions() {
|
|
21761
|
-
var t, e, n, r, i, o, s, a, l, c, u, d, f, h, p,
|
|
21761
|
+
var t, e, n, r, i, o, s, a, l, c, u, d, f, h, p, m, g, y;
|
|
21762
21762
|
const S = [];
|
|
21763
|
-
return this.options.blockquote !== !1 && S.push(t7.configure((t = this.options) === null || t === void 0 ? void 0 : t.blockquote)), this.options.bold !== !1 && S.push(s7.configure((e = this.options) === null || e === void 0 ? void 0 : e.bold)), this.options.bulletList !== !1 && S.push(l7.configure((n = this.options) === null || n === void 0 ? void 0 : n.bulletList)), this.options.code !== !1 && S.push(d7.configure((r = this.options) === null || r === void 0 ? void 0 : r.code)), this.options.codeBlock !== !1 && S.push(p7.configure((i = this.options) === null || i === void 0 ? void 0 : i.codeBlock)), this.options.document !== !1 && S.push(m7.configure((o = this.options) === null || o === void 0 ? void 0 : o.document)), this.options.dropcursor !== !1 && S.push(v7.configure((s = this.options) === null || s === void 0 ? void 0 : s.dropcursor)), this.options.gapcursor !== !1 && S.push(M7.configure((a = this.options) === null || a === void 0 ? void 0 : a.gapcursor)), this.options.hardBreak !== !1 && S.push(T7.configure((l = this.options) === null || l === void 0 ? void 0 : l.hardBreak)), this.options.heading !== !1 && S.push($7.configure((c = this.options) === null || c === void 0 ? void 0 : c.heading)), this.options.history !== !1 && S.push(R7.configure((u = this.options) === null || u === void 0 ? void 0 : u.history)), this.options.horizontalRule !== !1 && S.push(_7.configure((d = this.options) === null || d === void 0 ? void 0 : d.horizontalRule)), this.options.italic !== !1 && S.push(W7.configure((f = this.options) === null || f === void 0 ? void 0 : f.italic)), this.options.listItem !== !1 && S.push(q7.configure((h = this.options) === null || h === void 0 ? void 0 : h.listItem)), this.options.orderedList !== !1 && S.push(K7.configure((p = this.options) === null || p === void 0 ? void 0 : p.orderedList)), this.options.paragraph !== !1 && S.push(Y7.configure((
|
|
21763
|
+
return this.options.blockquote !== !1 && S.push(t7.configure((t = this.options) === null || t === void 0 ? void 0 : t.blockquote)), this.options.bold !== !1 && S.push(s7.configure((e = this.options) === null || e === void 0 ? void 0 : e.bold)), this.options.bulletList !== !1 && S.push(l7.configure((n = this.options) === null || n === void 0 ? void 0 : n.bulletList)), this.options.code !== !1 && S.push(d7.configure((r = this.options) === null || r === void 0 ? void 0 : r.code)), this.options.codeBlock !== !1 && S.push(p7.configure((i = this.options) === null || i === void 0 ? void 0 : i.codeBlock)), this.options.document !== !1 && S.push(m7.configure((o = this.options) === null || o === void 0 ? void 0 : o.document)), this.options.dropcursor !== !1 && S.push(v7.configure((s = this.options) === null || s === void 0 ? void 0 : s.dropcursor)), this.options.gapcursor !== !1 && S.push(M7.configure((a = this.options) === null || a === void 0 ? void 0 : a.gapcursor)), this.options.hardBreak !== !1 && S.push(T7.configure((l = this.options) === null || l === void 0 ? void 0 : l.hardBreak)), this.options.heading !== !1 && S.push($7.configure((c = this.options) === null || c === void 0 ? void 0 : c.heading)), this.options.history !== !1 && S.push(R7.configure((u = this.options) === null || u === void 0 ? void 0 : u.history)), this.options.horizontalRule !== !1 && S.push(_7.configure((d = this.options) === null || d === void 0 ? void 0 : d.horizontalRule)), this.options.italic !== !1 && S.push(W7.configure((f = this.options) === null || f === void 0 ? void 0 : f.italic)), this.options.listItem !== !1 && S.push(q7.configure((h = this.options) === null || h === void 0 ? void 0 : h.listItem)), this.options.orderedList !== !1 && S.push(K7.configure((p = this.options) === null || p === void 0 ? void 0 : p.orderedList)), this.options.paragraph !== !1 && S.push(Y7.configure((m = this.options) === null || m === void 0 ? void 0 : m.paragraph)), this.options.strike !== !1 && S.push(Z7.configure((g = this.options) === null || g === void 0 ? void 0 : g.strike)), this.options.text !== !1 && S.push(X7.configure((y = this.options) === null || y === void 0 ? void 0 : y.text)), S;
|
|
21764
21764
|
}
|
|
21765
21765
|
}), eA = He.create({
|
|
21766
21766
|
name: "placeholder",
|
|
@@ -21789,10 +21789,10 @@ const Pp = Bp(!1, !0), Vp = Bp(!0, !0), R7 = He.create({
|
|
|
21789
21789
|
return t.descendants((d, f) => {
|
|
21790
21790
|
const h = i >= f && i <= f + d.nodeSize, p = !d.isLeaf && !d.childCount;
|
|
21791
21791
|
if ((h || !this.options.showOnlyCurrent) && p) {
|
|
21792
|
-
const
|
|
21793
|
-
u &&
|
|
21794
|
-
const
|
|
21795
|
-
class:
|
|
21792
|
+
const m = [this.options.emptyNodeClass];
|
|
21793
|
+
u && m.push(this.options.emptyEditorClass);
|
|
21794
|
+
const g = xt.node(f, f + d.nodeSize, {
|
|
21795
|
+
class: m.join(" "),
|
|
21796
21796
|
"data-placeholder": typeof this.options.placeholder == "function" ? this.options.placeholder({
|
|
21797
21797
|
editor: this.editor,
|
|
21798
21798
|
node: d,
|
|
@@ -21800,7 +21800,7 @@ const Pp = Bp(!1, !0), Vp = Bp(!0, !0), R7 = He.create({
|
|
|
21800
21800
|
hasAnchor: h
|
|
21801
21801
|
}) : this.options.placeholder
|
|
21802
21802
|
});
|
|
21803
|
-
o.push(
|
|
21803
|
+
o.push(g);
|
|
21804
21804
|
}
|
|
21805
21805
|
return this.options.includeChildren;
|
|
21806
21806
|
}), ze.create(t, o);
|
|
@@ -22326,73 +22326,76 @@ const n4 = /* @__PURE__ */ ye(JE, [["render", t4]]), r4 = { class: "py-1 px-1 bo
|
|
|
22326
22326
|
}), Pe(() => n.modelValue, (p) => {
|
|
22327
22327
|
p !== c.value.getHTML() && c.value.commands.setContent(p, !1);
|
|
22328
22328
|
});
|
|
22329
|
-
function u(p,
|
|
22329
|
+
function u(p, m, g) {
|
|
22330
22330
|
if (p === "setTextAlign") {
|
|
22331
|
-
c.value.isActive({ textAlign:
|
|
22331
|
+
c.value.isActive({ textAlign: g }) ? c.value.chain().focus().unsetTextAlign().run() : c.value.chain().focus().setTextAlign(g).run();
|
|
22332
22332
|
return;
|
|
22333
22333
|
}
|
|
22334
|
-
|
|
22334
|
+
m === "chain" ? g ? c.value.chain().focus()[p](g).run() : c.value.chain().focus()[p]().run() : c.value[p]()();
|
|
22335
22335
|
}
|
|
22336
|
-
function d(p,
|
|
22337
|
-
return
|
|
22336
|
+
function d(p, m, g, y) {
|
|
22337
|
+
return y ? m === "chain" ? g ? !c.value.can().chain().focus()[p](g).run() : !c.value.can().chain().focus()[p]().run() : !c.value.can()[p]().run() : !1;
|
|
22338
22338
|
}
|
|
22339
22339
|
const f = () => {
|
|
22340
22340
|
c.value.chain().focus().setColor(r.value).run(), i.value = !1;
|
|
22341
22341
|
}, h = () => {
|
|
22342
22342
|
o.value.click();
|
|
22343
22343
|
};
|
|
22344
|
-
return (p,
|
|
22345
|
-
|
|
22346
|
-
|
|
22347
|
-
|
|
22348
|
-
|
|
22349
|
-
T("div", i4, [
|
|
22350
|
-
t.color ? (x(), C("div", {
|
|
22351
|
-
key: 0,
|
|
22352
|
-
onClick: h,
|
|
22353
|
-
class: "w-8 h-8 relative flex cursor-pointer items-center justify-center text-xs rounded-sm text-gray-800 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-white/10"
|
|
22354
|
-
}, [
|
|
22355
|
-
le(n4, {
|
|
22356
|
-
class: "w-5 h-5",
|
|
22357
|
-
style: {
|
|
22358
|
-
// color: `${editor.getAttributes('textStyle').color}`,
|
|
22359
|
-
}
|
|
22360
|
-
}),
|
|
22361
|
-
Vr(T("input", {
|
|
22362
|
-
ref_key: "myColorPicker",
|
|
22363
|
-
ref: o,
|
|
22364
|
-
type: "color",
|
|
22365
|
-
"onUpdate:modelValue": g[0] || (g[0] = (m) => r.value = m),
|
|
22366
|
-
class: "w-0",
|
|
22367
|
-
onInput: f
|
|
22368
|
-
}, null, 544), [
|
|
22369
|
-
[oa, r.value]
|
|
22370
|
-
])
|
|
22371
|
-
])) : re("", !0),
|
|
22372
|
-
(x(!0), C($e, null, We(a.filter((m) => m.active), (m) => (x(), C("div", {
|
|
22373
|
-
key: m.method,
|
|
22374
|
-
class: G(["w-8 h-8 flex items-center justify-center text-xs rounded-sm text-gray-800 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-white/10", {
|
|
22375
|
-
"cursor-pointer": !d(m.method, m.type, m.params, m.disableCheck),
|
|
22376
|
-
"is-active text-gray-800 bg-gray-200 dark:text-white dark:bg-white/10": m.label.startsWith("h") ? B(c).isActive("heading", { level: m.params.level }) : m.method === "setTextAlign" ? B(c).isActive({ textAlign: m.params }) : B(c).isActive(m.label)
|
|
22377
|
-
}]),
|
|
22378
|
-
onClick: (v) => u(m.method, m.type, m.params)
|
|
22379
|
-
}, [
|
|
22380
|
-
m.icon ? (x(), ve(ji(m.icon), {
|
|
22381
|
-
key: 0,
|
|
22382
|
-
class: G(["", { "w-3 h-3": m.smallIcon, "w-4 h-4": !m.smallIcon && !m.largeIcon, "w-5 h-5": m.largeIcon }])
|
|
22383
|
-
}, null, 8, ["class"])) : (x(), C("span", s4, be(B(T0).capitalize(m.label)), 1))
|
|
22384
|
-
], 10, o4))), 128))
|
|
22385
|
-
])
|
|
22386
|
-
]),
|
|
22387
|
-
T("div", {
|
|
22388
|
-
class: "max-h-72 w-full overflow-auto px-4 py-3 rounded-b-sm",
|
|
22389
|
-
style: un({
|
|
22390
|
-
backgroundColor: t.customStyles.backgroundColor
|
|
22391
|
-
})
|
|
22344
|
+
return (p, m) => {
|
|
22345
|
+
var g;
|
|
22346
|
+
return B(c) ? (x(), C("div", {
|
|
22347
|
+
key: 0,
|
|
22348
|
+
class: G(["pt-px relative flex flex-col rounded-sm border", s[B(pe).theme]])
|
|
22392
22349
|
}, [
|
|
22393
|
-
|
|
22394
|
-
|
|
22395
|
-
|
|
22350
|
+
T("div", r4, [
|
|
22351
|
+
T("div", i4, [
|
|
22352
|
+
t.color ? (x(), C("div", {
|
|
22353
|
+
key: 0,
|
|
22354
|
+
onClick: h,
|
|
22355
|
+
class: "w-8 h-8 relative flex cursor-pointer items-center justify-center text-xs rounded-sm text-gray-800 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-white/10"
|
|
22356
|
+
}, [
|
|
22357
|
+
le(n4, {
|
|
22358
|
+
class: "w-5 h-5",
|
|
22359
|
+
style: {
|
|
22360
|
+
// color: `${editor.getAttributes('textStyle').color}`,
|
|
22361
|
+
}
|
|
22362
|
+
}),
|
|
22363
|
+
Vr(T("input", {
|
|
22364
|
+
ref_key: "myColorPicker",
|
|
22365
|
+
ref: o,
|
|
22366
|
+
type: "color",
|
|
22367
|
+
"onUpdate:modelValue": m[0] || (m[0] = (y) => r.value = y),
|
|
22368
|
+
class: "w-0",
|
|
22369
|
+
onInput: f
|
|
22370
|
+
}, null, 544), [
|
|
22371
|
+
[oa, r.value]
|
|
22372
|
+
])
|
|
22373
|
+
])) : re("", !0),
|
|
22374
|
+
(x(!0), C($e, null, We(a.filter((y) => y.active), (y) => (x(), C("div", {
|
|
22375
|
+
key: y.method,
|
|
22376
|
+
class: G(["w-8 h-8 flex items-center justify-center text-xs rounded-sm text-gray-800 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-white/10", {
|
|
22377
|
+
"cursor-pointer": !d(y.method, y.type, y.params, y.disableCheck),
|
|
22378
|
+
"is-active text-gray-800 bg-gray-200 dark:text-white dark:bg-white/10": y.label.startsWith("h") ? B(c).isActive("heading", { level: y.params.level }) : y.method === "setTextAlign" ? B(c).isActive({ textAlign: y.params }) : B(c).isActive(y.label)
|
|
22379
|
+
}]),
|
|
22380
|
+
onClick: (S) => u(y.method, y.type, y.params)
|
|
22381
|
+
}, [
|
|
22382
|
+
y.icon ? (x(), ve(ji(y.icon), {
|
|
22383
|
+
key: 0,
|
|
22384
|
+
class: G(["", { "w-3 h-3": y.smallIcon, "w-4 h-4": !y.smallIcon && !y.largeIcon, "w-5 h-5": y.largeIcon }])
|
|
22385
|
+
}, null, 8, ["class"])) : (x(), C("span", s4, be(B(T0).capitalize(y.label)), 1))
|
|
22386
|
+
], 10, o4))), 128))
|
|
22387
|
+
])
|
|
22388
|
+
]),
|
|
22389
|
+
T("div", {
|
|
22390
|
+
class: "max-h-72 w-full overflow-auto px-4 py-3 rounded-b-sm",
|
|
22391
|
+
style: un({
|
|
22392
|
+
backgroundColor: (g = t.customStyles) == null ? void 0 : g.backgroundColor
|
|
22393
|
+
})
|
|
22394
|
+
}, [
|
|
22395
|
+
le(B(X$), { editor: B(c) }, null, 8, ["editor"])
|
|
22396
|
+
], 4)
|
|
22397
|
+
], 2)) : re("", !0);
|
|
22398
|
+
};
|
|
22396
22399
|
}
|
|
22397
22400
|
}), c4 = {}, u4 = {
|
|
22398
22401
|
viewBox: "0 0 24 24",
|
|
@@ -22582,13 +22585,13 @@ var Rp = { exports: {} };
|
|
|
22582
22585
|
(function(n, r) {
|
|
22583
22586
|
t.exports = r();
|
|
22584
22587
|
})(Qn, function() {
|
|
22585
|
-
var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", s = "second", a = "minute", l = "hour", c = "day", u = "week", d = "month", f = "quarter", h = "year", p = "date",
|
|
22588
|
+
var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", s = "second", a = "minute", l = "hour", c = "day", u = "week", d = "month", f = "quarter", h = "year", p = "date", m = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, S = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(U) {
|
|
22586
22589
|
var P = ["th", "st", "nd", "rd"], A = U % 100;
|
|
22587
22590
|
return "[" + U + (P[(A - 20) % 10] || P[A] || P[0]) + "]";
|
|
22588
22591
|
} }, $ = function(U, P, A) {
|
|
22589
22592
|
var z = String(U);
|
|
22590
22593
|
return !z || z.length >= P ? U : "" + Array(P + 1 - z.length).join(A) + U;
|
|
22591
|
-
},
|
|
22594
|
+
}, v = { s: $, z: function(U) {
|
|
22592
22595
|
var P = -U.utcOffset(), A = Math.abs(P), z = Math.floor(A / 60), _ = A % 60;
|
|
22593
22596
|
return (P <= 0 ? "+" : "-") + $(z, 2, "0") + ":" + $(_, 2, "0");
|
|
22594
22597
|
}, m: function U(P, A) {
|
|
@@ -22622,7 +22625,7 @@ var Rp = { exports: {} };
|
|
|
22622
22625
|
if (I(U)) return U.clone();
|
|
22623
22626
|
var A = typeof P == "object" ? P : {};
|
|
22624
22627
|
return A.date = U, A.args = arguments, new Y(A);
|
|
22625
|
-
}, V =
|
|
22628
|
+
}, V = v;
|
|
22626
22629
|
V.l = N, V.i = I, V.w = function(U, P) {
|
|
22627
22630
|
return D(U, { locale: P.$L, utc: P.$u, x: P.$x, $offset: P.$offset });
|
|
22628
22631
|
};
|
|
@@ -22638,7 +22641,7 @@ var Rp = { exports: {} };
|
|
|
22638
22641
|
if (V.u(_)) return /* @__PURE__ */ new Date();
|
|
22639
22642
|
if (_ instanceof Date) return new Date(_);
|
|
22640
22643
|
if (typeof _ == "string" && !/Z$/i.test(_)) {
|
|
22641
|
-
var ie = _.match(
|
|
22644
|
+
var ie = _.match(g);
|
|
22642
22645
|
if (ie) {
|
|
22643
22646
|
var L = ie[2] - 1 || 0, W = (ie[7] || "0").substring(0, 3);
|
|
22644
22647
|
return ee ? new Date(Date.UTC(ie[1], L, ie[3] || 1, ie[4] || 0, ie[5] || 0, ie[6] || 0, W)) : new Date(ie[1], L, ie[3] || 1, ie[4] || 0, ie[5] || 0, ie[6] || 0, W);
|
|
@@ -22652,7 +22655,7 @@ var Rp = { exports: {} };
|
|
|
22652
22655
|
}, P.$utils = function() {
|
|
22653
22656
|
return V;
|
|
22654
22657
|
}, P.isValid = function() {
|
|
22655
|
-
return this.$d.toString() !==
|
|
22658
|
+
return this.$d.toString() !== m;
|
|
22656
22659
|
}, P.isSame = function(A, z) {
|
|
22657
22660
|
var _ = D(A);
|
|
22658
22661
|
return this.startOf(z) <= _ && _ <= this.endOf(z);
|
|
@@ -22723,7 +22726,7 @@ var Rp = { exports: {} };
|
|
|
22723
22726
|
return this.add(-1 * A, z);
|
|
22724
22727
|
}, P.format = function(A) {
|
|
22725
22728
|
var z = this, _ = this.$locale();
|
|
22726
|
-
if (!this.isValid()) return _.invalidDate ||
|
|
22729
|
+
if (!this.isValid()) return _.invalidDate || m;
|
|
22727
22730
|
var ee = A || "YYYY-MM-DDTHH:mm:ssZ", ie = V.z(this), L = this.$H, W = this.$m, q = this.$M, ae = _.weekdays, J = _.months, j = _.meridiem, oe = function(Te, De, _e, Ot) {
|
|
22728
22731
|
return Te && (Te[De] || Te(z, ee)) || _e[De].slice(0, Ot);
|
|
22729
22732
|
}, Oe = function(Te) {
|
|
@@ -22732,7 +22735,7 @@ var Rp = { exports: {} };
|
|
|
22732
22735
|
var Ot = Te < 12 ? "AM" : "PM";
|
|
22733
22736
|
return _e ? Ot.toLowerCase() : Ot;
|
|
22734
22737
|
};
|
|
22735
|
-
return ee.replace(
|
|
22738
|
+
return ee.replace(y, function(Te, De) {
|
|
22736
22739
|
return De || function(_e) {
|
|
22737
22740
|
switch (_e) {
|
|
22738
22741
|
case "YY":
|
|
@@ -23012,19 +23015,19 @@ const B4 = /* @__PURE__ */ Yi(I4), P4 = { class: "w-full dark:text-gray-400" },
|
|
|
23012
23015
|
if (n.range && ((W = n.modelValue) == null ? void 0 : W.length) == 2)
|
|
23013
23016
|
return F(L).isSame(F(n.modelValue[0]), "day");
|
|
23014
23017
|
}
|
|
23015
|
-
function
|
|
23018
|
+
function m(L) {
|
|
23016
23019
|
var W;
|
|
23017
23020
|
if (n.range && ((W = n.modelValue) == null ? void 0 : W.length) == 2)
|
|
23018
23021
|
return F(L).isSame(F(n.modelValue[1]), "day");
|
|
23019
23022
|
}
|
|
23020
|
-
function
|
|
23023
|
+
function g(L) {
|
|
23021
23024
|
try {
|
|
23022
23025
|
return n.minDate ? F(L).isBefore(F(n.minDate)) : !1;
|
|
23023
23026
|
} catch (W) {
|
|
23024
23027
|
return console.log(W), !1;
|
|
23025
23028
|
}
|
|
23026
23029
|
}
|
|
23027
|
-
function
|
|
23030
|
+
function y(L) {
|
|
23028
23031
|
try {
|
|
23029
23032
|
return n.maxDate ? F(L).isAfter(F(n.maxDate)) : !1;
|
|
23030
23033
|
} catch (W) {
|
|
@@ -23037,7 +23040,7 @@ const B4 = /* @__PURE__ */ Yi(I4), P4 = { class: "w-full dark:text-gray-400" },
|
|
|
23037
23040
|
function $(L) {
|
|
23038
23041
|
D(L, r.value[L].add(1, "month"));
|
|
23039
23042
|
}
|
|
23040
|
-
function
|
|
23043
|
+
function v(L) {
|
|
23041
23044
|
D(L, r.value[L].subtract(1, "year"));
|
|
23042
23045
|
}
|
|
23043
23046
|
function w(L) {
|
|
@@ -23108,7 +23111,7 @@ const B4 = /* @__PURE__ */ Yi(I4), P4 = { class: "w-full dark:text-gray-400" },
|
|
|
23108
23111
|
T("div", R4, [
|
|
23109
23112
|
le(Cf, {
|
|
23110
23113
|
class: G(["w-5 h-5 cursor-pointer select-none", { "opacity-25 cursor-not-allowed": !I(q), "hover:opacity-100": I(q) }]),
|
|
23111
|
-
onClick: (J) => I(q) ?
|
|
23114
|
+
onClick: (J) => I(q) ? v(q) : null
|
|
23112
23115
|
}, null, 8, ["class", "onClick"]),
|
|
23113
23116
|
le(Of, {
|
|
23114
23117
|
class: G(["w-5 h-5 cursor-pointer select-none", { "opacity-25 cursor-not-allowed": !b(q), "hover:opacity-100": b(q) }]),
|
|
@@ -23159,7 +23162,7 @@ const B4 = /* @__PURE__ */ Yi(I4), P4 = { class: "w-full dark:text-gray-400" },
|
|
|
23159
23162
|
onMouseout: A
|
|
23160
23163
|
}, [
|
|
23161
23164
|
l(r.value[q]) > 0 ? (x(!0), C($e, { key: 0 }, We(c(B(F)(r.value[q]).year(), B(F)(r.value[q]).month() + 1), (J) => (x(), ve(ea, {
|
|
23162
|
-
onClick: (j) => !
|
|
23165
|
+
onClick: (j) => !y(J) && !g(J) ? s(J) : null,
|
|
23163
23166
|
off: ""
|
|
23164
23167
|
}, {
|
|
23165
23168
|
default: Se(() => [
|
|
@@ -23169,14 +23172,14 @@ const B4 = /* @__PURE__ */ Yi(I4), P4 = { class: "w-full dark:text-gray-400" },
|
|
|
23169
23172
|
}, 1032, ["onClick"]))), 256)) : re("", !0),
|
|
23170
23173
|
(x(!0), C($e, null, We(a(r.value[q].clone()), (J) => (x(), ve(ea, {
|
|
23171
23174
|
onMouseover: (j) => Y(J),
|
|
23172
|
-
onClick: (j) => !
|
|
23175
|
+
onClick: (j) => !y(J) && !g(J) ? s(J) : null,
|
|
23173
23176
|
today: d(J),
|
|
23174
23177
|
selected: f(J),
|
|
23175
23178
|
firstDay: p(J) || U(J),
|
|
23176
|
-
lastDay:
|
|
23179
|
+
lastDay: m(J) || P(J),
|
|
23177
23180
|
between: h(J),
|
|
23178
|
-
disabled:
|
|
23179
|
-
off:
|
|
23181
|
+
disabled: y(J) || g(J),
|
|
23182
|
+
off: y(J) || g(J),
|
|
23180
23183
|
highlight: se(J)
|
|
23181
23184
|
}, {
|
|
23182
23185
|
default: Se(() => [
|
|
@@ -23185,7 +23188,7 @@ const B4 = /* @__PURE__ */ Yi(I4), P4 = { class: "w-full dark:text-gray-400" },
|
|
|
23185
23188
|
_: 2
|
|
23186
23189
|
}, 1032, ["onMouseover", "onClick", "today", "selected", "firstDay", "lastDay", "between", "disabled", "off", "highlight"]))), 256)),
|
|
23187
23190
|
((ae = u(B(F)(r.value[q]).year(), B(F)(r.value[q]).month() + 1)) == null ? void 0 : ae.length) > 0 ? (x(!0), C($e, { key: 1 }, We(u(B(F)(r.value[q]).year(), B(F)(r.value[q]).month() + 1), (J) => (x(), ve(ea, {
|
|
23188
|
-
onClick: (j) => !
|
|
23191
|
+
onClick: (j) => !y(J) && !g(J) ? s(J) : null,
|
|
23189
23192
|
off: ""
|
|
23190
23193
|
}, {
|
|
23191
23194
|
default: Se(() => [
|
|
@@ -23401,31 +23404,31 @@ const Fp = /* @__PURE__ */ ye(Q4, [["render", rD]]), iD = { class: "flex gap-3"
|
|
|
23401
23404
|
],
|
|
23402
23405
|
setup(t, { emit: e }) {
|
|
23403
23406
|
const n = t, r = e, i = te(""), o = te(""), s = te(""), a = te(null), l = te(null), c = te(null);
|
|
23404
|
-
Pe(() => n.modelValue, (
|
|
23405
|
-
n.range ? Array.isArray(
|
|
23407
|
+
Pe(() => n.modelValue, (y) => {
|
|
23408
|
+
n.range ? Array.isArray(y) && y.length === 2 ? (yearStart.value = y[0] ? F(y[0]).format("YYYY") : "", monthStart.value = y[0] ? F(y[0]).format("MM") : "", dayStart.value = y[0] ? F(y[0]).format("DD") : "", yearEnd.value = y[1] ? F(y[1]).format("YYYY") : "", monthEnd.value = y[1] ? F(y[1]).format("MM") : "", dayEnd.value = y[1] ? F(y[1]).format("DD") : "") : (yearStart.value = monthStart.value = dayStart.value = "", yearEnd.value = monthEnd.value = dayEnd.value = "") : y ? (i.value = F(y).format("YYYY"), o.value = F(y).format("MM"), s.value = F(y).format("DD")) : i.value = o.value = s.value = "";
|
|
23406
23409
|
}, { immediate: !0 });
|
|
23407
23410
|
function u() {
|
|
23408
23411
|
i.value.length === 4 && o.value.length === 2 && s.value.length === 2 && r("update:modelValue", `${i.value}-${o.value}-${s.value}`);
|
|
23409
23412
|
}
|
|
23410
|
-
function d(
|
|
23411
|
-
|
|
23413
|
+
function d(y) {
|
|
23414
|
+
y.length === 4 && r("update:displayYear", Number(y)), u();
|
|
23412
23415
|
}
|
|
23413
|
-
function f(
|
|
23414
|
-
|
|
23416
|
+
function f(y) {
|
|
23417
|
+
y.length === 2 && r("update:displayMonth", Number(y) - 1), u();
|
|
23415
23418
|
}
|
|
23416
|
-
function h(
|
|
23417
|
-
s.value =
|
|
23419
|
+
function h(y) {
|
|
23420
|
+
s.value = y, u();
|
|
23418
23421
|
}
|
|
23419
23422
|
function p() {
|
|
23420
23423
|
i.value || (i.value = F().format("YYYY")), u();
|
|
23421
23424
|
}
|
|
23422
|
-
function
|
|
23425
|
+
function m() {
|
|
23423
23426
|
o.value || (o.value = F().format("MM")), u();
|
|
23424
23427
|
}
|
|
23425
|
-
function
|
|
23428
|
+
function g() {
|
|
23426
23429
|
s.value || (s.value = F().format("DD")), u();
|
|
23427
23430
|
}
|
|
23428
|
-
return (
|
|
23431
|
+
return (y, S) => (x(), C("div", dD, [
|
|
23429
23432
|
le(ta, {
|
|
23430
23433
|
modelValue: i.value,
|
|
23431
23434
|
"onUpdate:modelValue": [
|
|
@@ -23449,7 +23452,7 @@ const Fp = /* @__PURE__ */ ye(Q4, [["render", rD]]), iD = { class: "flex gap-3"
|
|
|
23449
23452
|
segment: "monthOrDay",
|
|
23450
23453
|
disabled: t.disabled,
|
|
23451
23454
|
placeholder: "••",
|
|
23452
|
-
onBlur:
|
|
23455
|
+
onBlur: m,
|
|
23453
23456
|
ref_key: "monthRef",
|
|
23454
23457
|
ref: l
|
|
23455
23458
|
}, null, 8, ["modelValue", "disabled"]),
|
|
@@ -23463,7 +23466,7 @@ const Fp = /* @__PURE__ */ ye(Q4, [["render", rD]]), iD = { class: "flex gap-3"
|
|
|
23463
23466
|
segment: "monthOrDay",
|
|
23464
23467
|
disabled: t.disabled,
|
|
23465
23468
|
placeholder: "••",
|
|
23466
|
-
onBlur:
|
|
23469
|
+
onBlur: g,
|
|
23467
23470
|
ref_key: "dayRef",
|
|
23468
23471
|
ref: c
|
|
23469
23472
|
}, null, 8, ["modelValue", "disabled"])
|
|
@@ -23521,11 +23524,11 @@ const Fp = /* @__PURE__ */ ye(Q4, [["render", rD]]), iD = { class: "flex gap-3"
|
|
|
23521
23524
|
}, { immediate: !0 }), Pe(() => c.value, (f) => {
|
|
23522
23525
|
var h, p;
|
|
23523
23526
|
if (n.range) {
|
|
23524
|
-
const
|
|
23525
|
-
(!((h = n.modelValue) != null && h[0]) || n.modelValue[0] !==
|
|
23527
|
+
const m = f[0] && f[0].length === 10 ? F(f[0]).toDate() : null, g = f[1] && f[1].length === 10 ? F(f[1]).toDate() : null;
|
|
23528
|
+
(!((h = n.modelValue) != null && h[0]) || n.modelValue[0] !== m || !((p = n.modelValue) != null && p[1]) || n.modelValue[1] !== g) && r("update:modelValue", [m, g]);
|
|
23526
23529
|
} else if (f && f.length === 10) {
|
|
23527
|
-
const
|
|
23528
|
-
|
|
23530
|
+
const m = F(f, "YYYY-MM-DD", !0);
|
|
23531
|
+
m.isValid() && n.modelValue !== m.toDate() && r("update:modelValue", m.toDate());
|
|
23529
23532
|
}
|
|
23530
23533
|
}, { deep: !0 });
|
|
23531
23534
|
function u(f) {
|
|
@@ -23560,7 +23563,7 @@ const Fp = /* @__PURE__ */ ye(Q4, [["render", rD]]), iD = { class: "flex gap-3"
|
|
|
23560
23563
|
t.shortcuts ? (x(), C("div", vD, [
|
|
23561
23564
|
(x(!0), C($e, null, We(d, (p) => (x(), C("div", {
|
|
23562
23565
|
class: "opacity-50 hover:opacity-100 dark:text-gray-300 cursor-pointer",
|
|
23563
|
-
onClick: (
|
|
23566
|
+
onClick: (m) => p.onClick()
|
|
23564
23567
|
}, be(p.text), 9, bD))), 256))
|
|
23565
23568
|
])) : re("", !0),
|
|
23566
23569
|
le(Wl, {
|