@romainbx/wpic-components 0.0.80 → 0.0.81
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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Rn, inject as Si, computed as ue, toValue as Oe, toRef as Jn, resolveDynamicComponent as Gr, h as Et, getCurrentInstance as mn, ref as ne, reactive as Ln, unref as R, onMounted as en, isRef as Co, watch as Pe, provide as Ci, readonly as Kp, onBeforeUnmount as hr, watchEffect as Cd, nextTick as nt, shallowRef as Od, warn as Yp, onUnmounted as
|
|
1
|
+
import { defineComponent as Rn, inject as Si, computed as ue, toValue as Oe, toRef as Jn, resolveDynamicComponent as Gr, h as Et, getCurrentInstance as mn, ref as ne, reactive as Ln, unref as R, onMounted as en, isRef as Co, watch as Pe, provide as Ci, readonly as Kp, onBeforeUnmount as hr, watchEffect as Cd, nextTick as nt, shallowRef as Od, warn as Yp, onUnmounted as Zo, createElementBlock as S, openBlock as b, createElementVNode as A, createVNode as le, normalizeClass as G, createCommentVNode as Q, createBlock as ge, withCtx as xe, renderSlot as Me, createTextVNode as Ie, toDisplayString as be, Fragment as $e, renderList as We, withModifiers as Pr, Teleport as Md, normalizeStyle as un, withDirectives as Vr, vModelText as sa, vShow as aa, resolveComponent as la, createStaticVNode as Xo, pushScopeId as Jp, popScopeId as Gp, useSlots as Td, markRaw as Zp, customRef as Xp } from "vue";
|
|
2
2
|
function Qp() {
|
|
3
3
|
return $d().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
4
4
|
}
|
|
@@ -6,13 +6,13 @@ function $d() {
|
|
|
6
6
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
7
7
|
}
|
|
8
8
|
const em = typeof Proxy == "function", tm = "devtools-plugin:setup", nm = "plugin:settings:set";
|
|
9
|
-
let wr,
|
|
9
|
+
let wr, ca;
|
|
10
10
|
function rm() {
|
|
11
11
|
var t;
|
|
12
|
-
return wr !== void 0 || (typeof window < "u" && window.performance ? (wr = !0,
|
|
12
|
+
return wr !== void 0 || (typeof window < "u" && window.performance ? (wr = !0, ca = window.performance) : typeof globalThis < "u" && (!((t = globalThis.perf_hooks) === null || t === void 0) && t.performance) ? (wr = !0, ca = globalThis.perf_hooks.performance) : wr = !1), wr;
|
|
13
13
|
}
|
|
14
14
|
function im() {
|
|
15
|
-
return rm() ?
|
|
15
|
+
return rm() ? ca.now() : Date.now();
|
|
16
16
|
}
|
|
17
17
|
class om {
|
|
18
18
|
constructor(e, n) {
|
|
@@ -177,7 +177,7 @@ function Ee(t) {
|
|
|
177
177
|
return i || t;
|
|
178
178
|
}
|
|
179
179
|
const Fi = Symbol("vee-validate-form"), Dd = Symbol("vee-validate-field-instance"), Oo = Symbol("Default empty value"), fm = typeof window < "u";
|
|
180
|
-
function
|
|
180
|
+
function ua(t) {
|
|
181
181
|
return qe(t) && !!t.__locatorRef;
|
|
182
182
|
}
|
|
183
183
|
function Rt(t) {
|
|
@@ -195,7 +195,7 @@ function hm(t) {
|
|
|
195
195
|
function pm(t) {
|
|
196
196
|
return Array.isArray(t) ? t.length === 0 : In(t) && Object.keys(t).length === 0;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Qo(t) {
|
|
199
199
|
return /^\[.+\]$/i.test(t);
|
|
200
200
|
}
|
|
201
201
|
function mm(t) {
|
|
@@ -283,13 +283,13 @@ function Jl(t) {
|
|
|
283
283
|
return fm ? t instanceof File : !1;
|
|
284
284
|
}
|
|
285
285
|
function Ga(t) {
|
|
286
|
-
return
|
|
286
|
+
return Qo(t) ? t.replace(/\[|\]/gi, "") : t;
|
|
287
287
|
}
|
|
288
288
|
function ft(t, e, n) {
|
|
289
|
-
return t ?
|
|
289
|
+
return t ? Qo(e) ? t[Ga(e)] : (e || "").split(/\.|\[(\d+)\]/).filter(Boolean).reduce((i, o) => hm(i) && o in i ? i[o] : n, t) : n;
|
|
290
290
|
}
|
|
291
291
|
function sn(t, e, n) {
|
|
292
|
-
if (
|
|
292
|
+
if (Qo(e)) {
|
|
293
293
|
t[Ga(e)] = n;
|
|
294
294
|
return;
|
|
295
295
|
}
|
|
@@ -303,7 +303,7 @@ function sn(t, e, n) {
|
|
|
303
303
|
(!(r[o] in i) || Ad(i[r[o]])) && (i[r[o]] = Ya(r[o + 1]) ? [] : {}), i = i[r[o]];
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function Cs(t, e) {
|
|
307
307
|
if (Array.isArray(t) && Ya(e)) {
|
|
308
308
|
t.splice(Number(e), 1);
|
|
309
309
|
return;
|
|
@@ -311,7 +311,7 @@ function Ss(t, e) {
|
|
|
311
311
|
In(t) && delete t[e];
|
|
312
312
|
}
|
|
313
313
|
function Gl(t, e) {
|
|
314
|
-
if (
|
|
314
|
+
if (Qo(e)) {
|
|
315
315
|
delete t[Ga(e)];
|
|
316
316
|
return;
|
|
317
317
|
}
|
|
@@ -319,7 +319,7 @@ function Gl(t, e) {
|
|
|
319
319
|
let r = t;
|
|
320
320
|
for (let o = 0; o < n.length; o++) {
|
|
321
321
|
if (o === n.length - 1) {
|
|
322
|
-
|
|
322
|
+
Cs(r, n[o]);
|
|
323
323
|
break;
|
|
324
324
|
}
|
|
325
325
|
if (!(n[o] in r) || Ad(r[n[o]]))
|
|
@@ -330,10 +330,10 @@ function Gl(t, e) {
|
|
|
330
330
|
for (let o = i.length - 1; o >= 0; o--)
|
|
331
331
|
if (pm(i[o])) {
|
|
332
332
|
if (o === 0) {
|
|
333
|
-
|
|
333
|
+
Cs(t, n[0]);
|
|
334
334
|
continue;
|
|
335
335
|
}
|
|
336
|
-
|
|
336
|
+
Cs(i[o - 1], n[o - 1]);
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
function ut(t) {
|
|
@@ -369,7 +369,7 @@ function Xl(t, e = 0) {
|
|
|
369
369
|
function bm(t, e) {
|
|
370
370
|
return In(e) && e.number ? am(t) : t;
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function da(t, e) {
|
|
373
373
|
let n;
|
|
374
374
|
return async function(...i) {
|
|
375
375
|
const o = t(...i);
|
|
@@ -378,7 +378,7 @@ function ua(t, e) {
|
|
|
378
378
|
return o !== n ? s : (n = void 0, e(s, i));
|
|
379
379
|
};
|
|
380
380
|
}
|
|
381
|
-
function
|
|
381
|
+
function fa(t) {
|
|
382
382
|
return Array.isArray(t) ? t : t ? [t] : [];
|
|
383
383
|
}
|
|
384
384
|
function io(t, e) {
|
|
@@ -407,7 +407,7 @@ function Xa(t, e, n) {
|
|
|
407
407
|
}
|
|
408
408
|
} : e.slots.default;
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function Os(t) {
|
|
411
411
|
if (Id(t))
|
|
412
412
|
return t._value;
|
|
413
413
|
}
|
|
@@ -422,16 +422,16 @@ function To(t) {
|
|
|
422
422
|
return t;
|
|
423
423
|
const e = t.target;
|
|
424
424
|
if (Hi(e.type) && Id(e))
|
|
425
|
-
return
|
|
425
|
+
return Os(e);
|
|
426
426
|
if (e.type === "file" && e.files) {
|
|
427
427
|
const n = Array.from(e.files);
|
|
428
428
|
return e.multiple ? n : n[0];
|
|
429
429
|
}
|
|
430
430
|
if (mm(e))
|
|
431
|
-
return Array.from(e.options).filter((n) => n.selected && !n.disabled).map(
|
|
431
|
+
return Array.from(e.options).filter((n) => n.selected && !n.disabled).map(Os);
|
|
432
432
|
if (Nd(e)) {
|
|
433
433
|
const n = Array.from(e.options).find((r) => r.selected);
|
|
434
|
-
return n ?
|
|
434
|
+
return n ? Os(n) : e.value;
|
|
435
435
|
}
|
|
436
436
|
return wm(e);
|
|
437
437
|
}
|
|
@@ -467,7 +467,7 @@ function Cm(t) {
|
|
|
467
467
|
return e.__locatorRef = t, e;
|
|
468
468
|
}
|
|
469
469
|
function Om(t) {
|
|
470
|
-
return Array.isArray(t) ? t.filter(
|
|
470
|
+
return Array.isArray(t) ? t.filter(ua) : ut(t).filter((e) => ua(t[e])).map((e) => t[e]);
|
|
471
471
|
}
|
|
472
472
|
const Mm = {
|
|
473
473
|
generateMessage: ({ field: t }) => `${t} is not valid.`,
|
|
@@ -595,7 +595,7 @@ function Rd(t) {
|
|
|
595
595
|
return e ? e(t) : "Field is invalid";
|
|
596
596
|
}
|
|
597
597
|
function Nm(t, e) {
|
|
598
|
-
const n = (r) =>
|
|
598
|
+
const n = (r) => ua(r) ? r(e) : r;
|
|
599
599
|
return Array.isArray(t) ? t.map(n) : Object.keys(t).reduce((r, i) => (r[i] = n(t[i]), r), {});
|
|
600
600
|
}
|
|
601
601
|
async function Lm(t, e) {
|
|
@@ -738,7 +738,7 @@ function _m() {
|
|
|
738
738
|
return {
|
|
739
739
|
errors: t,
|
|
740
740
|
setErrors: (e) => {
|
|
741
|
-
t.value =
|
|
741
|
+
t.value = fa(e);
|
|
742
742
|
}
|
|
743
743
|
};
|
|
744
744
|
}
|
|
@@ -767,7 +767,7 @@ function jm(t) {
|
|
|
767
767
|
return;
|
|
768
768
|
_d(n);
|
|
769
769
|
}
|
|
770
|
-
mi[t.formId] = Object.assign({}, t), mi[t.formId]._vm = e,
|
|
770
|
+
mi[t.formId] = Object.assign({}, t), mi[t.formId]._vm = e, Zo(() => {
|
|
771
771
|
delete mi[t.formId], Rr();
|
|
772
772
|
}), Rr();
|
|
773
773
|
}
|
|
@@ -779,7 +779,7 @@ function zm(t) {
|
|
|
779
779
|
return;
|
|
780
780
|
_d(n);
|
|
781
781
|
}
|
|
782
|
-
gi[t.id] = Object.assign({}, t), gi[t.id]._vm = e,
|
|
782
|
+
gi[t.id] = Object.assign({}, t), gi[t.id]._vm = e, Zo(() => {
|
|
783
783
|
delete gi[t.id], Rr();
|
|
784
784
|
}), Rr();
|
|
785
785
|
}
|
|
@@ -1097,7 +1097,7 @@ function Fd(t, e, n) {
|
|
|
1097
1097
|
bails: o
|
|
1098
1098
|
}) : { valid: !0, errors: [] };
|
|
1099
1099
|
}
|
|
1100
|
-
const _ =
|
|
1100
|
+
const _ = da(async () => (I.pending = !0, I.validated = !0, oe("validated-only")), (F) => (L.pendingUnmount[ie.id] || (z({ errors: F.errors }), I.pending = !1, I.valid = F.valid), F)), O = da(async () => oe("silent"), (F) => (I.valid = F.valid, F));
|
|
1101
1101
|
function C(F) {
|
|
1102
1102
|
return (F == null ? void 0 : F.mode) === "silent" ? O() : _();
|
|
1103
1103
|
}
|
|
@@ -1113,7 +1113,7 @@ function Fd(t, e, n) {
|
|
|
1113
1113
|
function j(F) {
|
|
1114
1114
|
I.touched = F;
|
|
1115
1115
|
}
|
|
1116
|
-
function
|
|
1116
|
+
function ee(F) {
|
|
1117
1117
|
var se;
|
|
1118
1118
|
const Ce = F && "value" in F ? F.value : w.value;
|
|
1119
1119
|
z({
|
|
@@ -1150,8 +1150,8 @@ function Fd(t, e, n) {
|
|
|
1150
1150
|
uncheckedValue: u,
|
|
1151
1151
|
bails: o,
|
|
1152
1152
|
keepValueOnUnmount: f,
|
|
1153
|
-
resetField:
|
|
1154
|
-
handleReset: () =>
|
|
1153
|
+
resetField: ee,
|
|
1154
|
+
handleReset: () => ee(),
|
|
1155
1155
|
validate: C,
|
|
1156
1156
|
handleChange: B,
|
|
1157
1157
|
handleBlur: J,
|
|
@@ -1215,7 +1215,7 @@ function Jm(t) {
|
|
|
1215
1215
|
keepValueOnUnmount: void 0,
|
|
1216
1216
|
syncVModel: !1,
|
|
1217
1217
|
controlled: !0
|
|
1218
|
-
}), n = !!(t != null && t.syncVModel), r = typeof (t == null ? void 0 : t.syncVModel) == "string" ? t.syncVModel : (t == null ? void 0 : t.modelPropName) || "modelValue", i = n && !("initialValue" in (t || {})) ?
|
|
1218
|
+
}), n = !!(t != null && t.syncVModel), r = typeof (t == null ? void 0 : t.syncVModel) == "string" ? t.syncVModel : (t == null ? void 0 : t.modelPropName) || "modelValue", i = n && !("initialValue" in (t || {})) ? ha(mn(), r) : t == null ? void 0 : t.initialValue;
|
|
1219
1219
|
if (!t)
|
|
1220
1220
|
return Object.assign(Object.assign({}, e()), { initialValue: i });
|
|
1221
1221
|
const o = "valueProp" in t ? t.valueProp : t.checkedValue, s = "standalone" in t ? !t.standalone : t.controlled, a = (t == null ? void 0 : t.modelPropName) || (t == null ? void 0 : t.syncVModel) || !1;
|
|
@@ -1260,15 +1260,15 @@ function Zm({ prop: t, value: e, handleChange: n, shouldValidate: r }) {
|
|
|
1260
1260
|
}
|
|
1261
1261
|
const o = typeof t == "string" ? t : "modelValue", s = `update:${o}`;
|
|
1262
1262
|
o in i.props && (Pe(e, (a) => {
|
|
1263
|
-
st(a,
|
|
1264
|
-
}), Pe(() =>
|
|
1263
|
+
st(a, ha(i, o)) || i.emit(s, a);
|
|
1264
|
+
}), Pe(() => ha(i, o), (a) => {
|
|
1265
1265
|
if (a === Oo && e.value === void 0)
|
|
1266
1266
|
return;
|
|
1267
1267
|
const l = a === Oo ? void 0 : a;
|
|
1268
1268
|
st(l, e.value) || n(l, r());
|
|
1269
1269
|
}));
|
|
1270
1270
|
}
|
|
1271
|
-
function
|
|
1271
|
+
function ha(t, e) {
|
|
1272
1272
|
if (t)
|
|
1273
1273
|
return t.props[e];
|
|
1274
1274
|
}
|
|
@@ -1449,14 +1449,14 @@ function ng(t) {
|
|
|
1449
1449
|
function h(T, M) {
|
|
1450
1450
|
const H = C(T);
|
|
1451
1451
|
if (!H) {
|
|
1452
|
-
typeof T == "string" && (u.value[di(T)] =
|
|
1452
|
+
typeof T == "string" && (u.value[di(T)] = fa(M));
|
|
1453
1453
|
return;
|
|
1454
1454
|
}
|
|
1455
1455
|
if (typeof T == "string") {
|
|
1456
1456
|
const X = di(T);
|
|
1457
1457
|
u.value[X] && delete u.value[X];
|
|
1458
1458
|
}
|
|
1459
|
-
H.errors =
|
|
1459
|
+
H.errors = fa(M), H.valid = !H.errors.length;
|
|
1460
1460
|
}
|
|
1461
1461
|
function p(T) {
|
|
1462
1462
|
ut(T).forEach((M) => {
|
|
@@ -1479,14 +1479,14 @@ function ng(t) {
|
|
|
1479
1479
|
}, {})), L = t == null ? void 0 : t.validationSchema;
|
|
1480
1480
|
function D(T, M) {
|
|
1481
1481
|
var H, X;
|
|
1482
|
-
const
|
|
1482
|
+
const he = ue(() => ft($.value, Oe(T))), x = d.value[Oe(T)], K = (M == null ? void 0 : M.type) === "checkbox" || (M == null ? void 0 : M.type) === "radio";
|
|
1483
1483
|
if (x && K) {
|
|
1484
1484
|
x.multiple = !0;
|
|
1485
1485
|
const ot = r++;
|
|
1486
1486
|
return Array.isArray(x.id) ? x.id.push(ot) : x.id = [x.id, ot], x.fieldsCount++, x.__flags.pendingUnmount[ot] = !1, x;
|
|
1487
1487
|
}
|
|
1488
|
-
const
|
|
1489
|
-
|
|
1488
|
+
const te = ue(() => ft(l, Oe(T))), de = Oe(T), pe = j.findIndex((ot) => ot === de);
|
|
1489
|
+
pe !== -1 && j.splice(pe, 1);
|
|
1490
1490
|
const we = ue(() => {
|
|
1491
1491
|
var ot, yt, Un, xn;
|
|
1492
1492
|
const Wt = Oe(L);
|
|
@@ -1502,12 +1502,12 @@ function ng(t) {
|
|
|
1502
1502
|
valid: !0,
|
|
1503
1503
|
validated: !!(!((H = E[de]) === null || H === void 0) && H.length),
|
|
1504
1504
|
required: we,
|
|
1505
|
-
initialValue:
|
|
1505
|
+
initialValue: he,
|
|
1506
1506
|
errors: Od([]),
|
|
1507
1507
|
bails: (X = M == null ? void 0 : M.bails) !== null && X !== void 0 ? X : !1,
|
|
1508
1508
|
label: M == null ? void 0 : M.label,
|
|
1509
1509
|
type: (M == null ? void 0 : M.type) || "default",
|
|
1510
|
-
value:
|
|
1510
|
+
value: te,
|
|
1511
1511
|
multiple: !1,
|
|
1512
1512
|
__flags: {
|
|
1513
1513
|
pendingUnmount: { [Ae]: !1 },
|
|
@@ -1515,31 +1515,31 @@ function ng(t) {
|
|
|
1515
1515
|
},
|
|
1516
1516
|
fieldsCount: 1,
|
|
1517
1517
|
validate: M == null ? void 0 : M.validate,
|
|
1518
|
-
dirty: ue(() => !st(R(
|
|
1518
|
+
dirty: ue(() => !st(R(te), R(he)))
|
|
1519
1519
|
});
|
|
1520
1520
|
return c.value.push(Re), d.value[de] = Re, f(), m.value[de] && !E[de] && nt(() => {
|
|
1521
1521
|
Mt(de, { mode: "silent" });
|
|
1522
1522
|
}), Co(T) && Pe(T, (ot) => {
|
|
1523
1523
|
f();
|
|
1524
|
-
const yt = Ee(
|
|
1524
|
+
const yt = Ee(te.value);
|
|
1525
1525
|
d.value[ot] = Re, nt(() => {
|
|
1526
1526
|
sn(l, ot, yt);
|
|
1527
1527
|
});
|
|
1528
1528
|
}), Re;
|
|
1529
1529
|
}
|
|
1530
|
-
const J = Xl(Ht, 5), oe = Xl(Ht, 5), _ =
|
|
1531
|
-
const H = ut(F.errorBag.value),
|
|
1530
|
+
const J = Xl(Ht, 5), oe = Xl(Ht, 5), _ = da(async (T) => await (T === "silent" ? J() : oe()), (T, [M]) => {
|
|
1531
|
+
const H = ut(F.errorBag.value), he = [
|
|
1532
1532
|
.../* @__PURE__ */ new Set([...ut(T.results), ...c.value.map((x) => x.path), ...H])
|
|
1533
1533
|
].sort().reduce((x, K) => {
|
|
1534
|
-
var
|
|
1535
|
-
const de = K,
|
|
1536
|
-
return x.results[Ae] = Re, Re.valid || (x.errors[Ae] = Re.errors[0]),
|
|
1534
|
+
var te;
|
|
1535
|
+
const de = K, pe = C(de) || B(de), we = ((te = T.results[de]) === null || te === void 0 ? void 0 : te.errors) || [], Ae = Oe(pe == null ? void 0 : pe.path) || de, Re = og({ errors: we, valid: !we.length }, x.results[Ae]);
|
|
1536
|
+
return x.results[Ae] = Re, Re.valid || (x.errors[Ae] = Re.errors[0]), pe && u.value[Ae] && delete u.value[Ae], pe ? (pe.valid = Re.valid, M === "silent" || M === "validated-only" && !pe.validated || h(pe, Re.errors), x) : (h(Ae, we), x);
|
|
1537
1537
|
}, { valid: T.valid, results: {}, errors: {} });
|
|
1538
|
-
return T.values && (
|
|
1538
|
+
return T.values && (he.values = T.values), ut(he.results).forEach((x) => {
|
|
1539
1539
|
var K;
|
|
1540
|
-
const
|
|
1541
|
-
|
|
1542
|
-
}),
|
|
1540
|
+
const te = C(x);
|
|
1541
|
+
te && M !== "silent" && (M === "validated-only" && !te.validated || h(te, (K = he.results[x]) === null || K === void 0 ? void 0 : K.errors));
|
|
1542
|
+
}), he;
|
|
1543
1543
|
});
|
|
1544
1544
|
function O(T) {
|
|
1545
1545
|
c.value.forEach(T);
|
|
@@ -1551,23 +1551,23 @@ function ng(t) {
|
|
|
1551
1551
|
function B(T) {
|
|
1552
1552
|
return c.value.filter((H) => T.startsWith(H.path)).reduce((H, X) => H ? X.path.length > H.path.length ? X : H : X, void 0);
|
|
1553
1553
|
}
|
|
1554
|
-
let j = [],
|
|
1554
|
+
let j = [], ee;
|
|
1555
1555
|
function re(T) {
|
|
1556
|
-
return j.push(T),
|
|
1556
|
+
return j.push(T), ee || (ee = nt(() => {
|
|
1557
1557
|
[...j].sort().reverse().forEach((H) => {
|
|
1558
1558
|
Gl(l, H);
|
|
1559
|
-
}), j = [],
|
|
1560
|
-
})),
|
|
1559
|
+
}), j = [], ee = null;
|
|
1560
|
+
})), ee;
|
|
1561
1561
|
}
|
|
1562
1562
|
function N(T) {
|
|
1563
1563
|
return function(H, X) {
|
|
1564
1564
|
return function(x) {
|
|
1565
1565
|
return x instanceof Event && (x.preventDefault(), x.stopPropagation()), O((K) => K.touched = !0), i.value = !0, s.value++, Pt().then((K) => {
|
|
1566
|
-
const
|
|
1566
|
+
const te = Ee(l);
|
|
1567
1567
|
if (K.valid && typeof H == "function") {
|
|
1568
1568
|
const de = Ee(V.value);
|
|
1569
|
-
let
|
|
1570
|
-
return K.values && (
|
|
1569
|
+
let pe = T ? de : te;
|
|
1570
|
+
return K.values && (pe = K.values), H(pe, {
|
|
1571
1571
|
evt: x,
|
|
1572
1572
|
controlledValues: de,
|
|
1573
1573
|
setErrors: p,
|
|
@@ -1581,7 +1581,7 @@ function ng(t) {
|
|
|
1581
1581
|
});
|
|
1582
1582
|
}
|
|
1583
1583
|
!K.valid && typeof X == "function" && X({
|
|
1584
|
-
values:
|
|
1584
|
+
values: te,
|
|
1585
1585
|
evt: x,
|
|
1586
1586
|
errors: K.errors,
|
|
1587
1587
|
results: K.results
|
|
@@ -1595,13 +1595,13 @@ function ng(t) {
|
|
|
1595
1595
|
const W = N(!1);
|
|
1596
1596
|
W.withControlled = N(!0);
|
|
1597
1597
|
function ie(T, M) {
|
|
1598
|
-
const H = c.value.findIndex((
|
|
1598
|
+
const H = c.value.findIndex((he) => he.path === T && (Array.isArray(he.id) ? he.id.includes(M) : he.id === M)), X = c.value[H];
|
|
1599
1599
|
if (!(H === -1 || !X)) {
|
|
1600
1600
|
if (nt(() => {
|
|
1601
1601
|
Mt(T, { mode: "silent", warn: !1 });
|
|
1602
1602
|
}), X.multiple && X.fieldsCount && X.fieldsCount--, Array.isArray(X.id)) {
|
|
1603
|
-
const
|
|
1604
|
-
|
|
1603
|
+
const he = X.id.indexOf(M);
|
|
1604
|
+
he >= 0 && X.id.splice(he, 1), delete X.__flags.pendingUnmount[M];
|
|
1605
1605
|
}
|
|
1606
1606
|
(!X.multiple || X.fieldsCount <= 0) && (c.value.splice(H, 1), Tt(T), f(), delete d.value[T]);
|
|
1607
1607
|
}
|
|
@@ -1657,8 +1657,8 @@ function ng(t) {
|
|
|
1657
1657
|
isFieldValid: yr
|
|
1658
1658
|
};
|
|
1659
1659
|
function se(T, M, H = !0) {
|
|
1660
|
-
const X = Ee(M),
|
|
1661
|
-
C(
|
|
1660
|
+
const X = Ee(M), he = typeof T == "string" ? T : T.path;
|
|
1661
|
+
C(he) || D(he), sn(l, he, X), H && Mt(he);
|
|
1662
1662
|
}
|
|
1663
1663
|
function Ce(T, M = !0) {
|
|
1664
1664
|
ut(l).forEach((H) => {
|
|
@@ -1677,9 +1677,9 @@ function ng(t) {
|
|
|
1677
1677
|
return H.value;
|
|
1678
1678
|
},
|
|
1679
1679
|
set(X) {
|
|
1680
|
-
var
|
|
1680
|
+
var he;
|
|
1681
1681
|
const x = Oe(T);
|
|
1682
|
-
se(x, X, (
|
|
1682
|
+
se(x, X, (he = Oe(M)) !== null && he !== void 0 ? he : !1);
|
|
1683
1683
|
}
|
|
1684
1684
|
});
|
|
1685
1685
|
}
|
|
@@ -1712,16 +1712,16 @@ function ng(t) {
|
|
|
1712
1712
|
}
|
|
1713
1713
|
function vn(T, M) {
|
|
1714
1714
|
var H;
|
|
1715
|
-
const X = M && "value" in M ? M.value : ft($.value, T),
|
|
1716
|
-
|
|
1717
|
-
|
|
1715
|
+
const X = M && "value" in M ? M.value : ft($.value, T), he = C(T);
|
|
1716
|
+
he && (he.__flags.pendingReset = !0), rn(T, Ee(X), !0), se(T, X, !1), De(T, (H = M == null ? void 0 : M.touched) !== null && H !== void 0 ? H : !1), h(T, (M == null ? void 0 : M.errors) || []), nt(() => {
|
|
1717
|
+
he && (he.__flags.pendingReset = !1);
|
|
1718
1718
|
});
|
|
1719
1719
|
}
|
|
1720
1720
|
function nn(T, M) {
|
|
1721
1721
|
let H = Ee(T != null && T.values ? T.values : w.value);
|
|
1722
1722
|
H = M != null && M.force ? H : Oi(w.value, H), H = Rt(L) && qe(L.cast) ? L.cast(H) : H, I(H), O((X) => {
|
|
1723
|
-
var
|
|
1724
|
-
X.__flags.pendingReset = !0, X.validated = !1, X.touched = ((
|
|
1723
|
+
var he;
|
|
1724
|
+
X.__flags.pendingReset = !0, X.validated = !1, X.touched = ((he = T == null ? void 0 : T.touched) === null || he === void 0 ? void 0 : he[X.path]) || !1, se(X.path, ft(H, X.path), !1), h(X.path, void 0);
|
|
1725
1725
|
}), M != null && M.force ? Ce(H, !1) : me(H, !1), p((T == null ? void 0 : T.errors) || {}), s.value = (T == null ? void 0 : T.submitCount) || 0, nt(() => {
|
|
1726
1726
|
Pt({ mode: "silent" }), O((X) => {
|
|
1727
1727
|
X.__flags.pendingReset = !1;
|
|
@@ -1743,16 +1743,16 @@ function ng(t) {
|
|
|
1743
1743
|
errors: []
|
|
1744
1744
|
})));
|
|
1745
1745
|
o.value = !1;
|
|
1746
|
-
const X = {},
|
|
1746
|
+
const X = {}, he = {};
|
|
1747
1747
|
for (const x of H)
|
|
1748
1748
|
X[x.key] = {
|
|
1749
1749
|
valid: x.valid,
|
|
1750
1750
|
errors: x.errors
|
|
1751
|
-
}, x.errors.length && (
|
|
1751
|
+
}, x.errors.length && (he[x.key] = x.errors[0]);
|
|
1752
1752
|
return {
|
|
1753
1753
|
valid: H.every((x) => x.valid),
|
|
1754
1754
|
results: X,
|
|
1755
|
-
errors:
|
|
1755
|
+
errors: he
|
|
1756
1756
|
};
|
|
1757
1757
|
}
|
|
1758
1758
|
async function Mt(T, M) {
|
|
@@ -1800,26 +1800,26 @@ function ng(t) {
|
|
|
1800
1800
|
deep: !0
|
|
1801
1801
|
}));
|
|
1802
1802
|
function bn(T, M) {
|
|
1803
|
-
const H = qe(M) || M == null ? void 0 : M.label, X = C(Oe(T)) || D(T, { label: H }),
|
|
1803
|
+
const H = qe(M) || M == null ? void 0 : M.label, X = C(Oe(T)) || D(T, { label: H }), he = () => qe(M) ? M(io(X, oo)) : M || {};
|
|
1804
1804
|
function x() {
|
|
1805
1805
|
var we;
|
|
1806
|
-
X.touched = !0, ((we =
|
|
1806
|
+
X.touched = !0, ((we = he().validateOnBlur) !== null && we !== void 0 ? we : Xn().validateOnBlur) && Mt(X.path);
|
|
1807
1807
|
}
|
|
1808
1808
|
function K() {
|
|
1809
1809
|
var we;
|
|
1810
|
-
((we =
|
|
1810
|
+
((we = he().validateOnInput) !== null && we !== void 0 ? we : Xn().validateOnInput) && nt(() => {
|
|
1811
1811
|
Mt(X.path);
|
|
1812
1812
|
});
|
|
1813
1813
|
}
|
|
1814
|
-
function
|
|
1814
|
+
function te() {
|
|
1815
1815
|
var we;
|
|
1816
|
-
((we =
|
|
1816
|
+
((we = he().validateOnChange) !== null && we !== void 0 ? we : Xn().validateOnChange) && nt(() => {
|
|
1817
1817
|
Mt(X.path);
|
|
1818
1818
|
});
|
|
1819
1819
|
}
|
|
1820
1820
|
const de = ue(() => {
|
|
1821
1821
|
const we = {
|
|
1822
|
-
onChange:
|
|
1822
|
+
onChange: te,
|
|
1823
1823
|
onInput: K,
|
|
1824
1824
|
onBlur: x
|
|
1825
1825
|
};
|
|
@@ -1827,7 +1827,7 @@ function ng(t) {
|
|
|
1827
1827
|
});
|
|
1828
1828
|
return [Te(T, () => {
|
|
1829
1829
|
var we, Ae, Re;
|
|
1830
|
-
return (Re = (we =
|
|
1830
|
+
return (Re = (we = he().validateOnModelUpdate) !== null && we !== void 0 ? we : (Ae = Xn()) === null || Ae === void 0 ? void 0 : Ae.validateOnModelUpdate) !== null && Re !== void 0 ? Re : !0;
|
|
1831
1831
|
}), de];
|
|
1832
1832
|
}
|
|
1833
1833
|
function vr(T) {
|
|
@@ -1835,31 +1835,31 @@ function ng(t) {
|
|
|
1835
1835
|
}
|
|
1836
1836
|
function br(T, M) {
|
|
1837
1837
|
const [H, X] = bn(T, M);
|
|
1838
|
-
function
|
|
1838
|
+
function he() {
|
|
1839
1839
|
X.value.onBlur();
|
|
1840
1840
|
}
|
|
1841
|
-
function x(
|
|
1842
|
-
const de = To(
|
|
1841
|
+
function x(te) {
|
|
1842
|
+
const de = To(te);
|
|
1843
1843
|
se(Oe(T), de, !1), X.value.onInput();
|
|
1844
1844
|
}
|
|
1845
|
-
function K(
|
|
1846
|
-
const de = To(
|
|
1845
|
+
function K(te) {
|
|
1846
|
+
const de = To(te);
|
|
1847
1847
|
se(Oe(T), de, !1), X.value.onChange();
|
|
1848
1848
|
}
|
|
1849
1849
|
return ue(() => Object.assign(Object.assign({}, X.value), {
|
|
1850
|
-
onBlur:
|
|
1850
|
+
onBlur: he,
|
|
1851
1851
|
onInput: x,
|
|
1852
1852
|
onChange: K,
|
|
1853
1853
|
value: H.value
|
|
1854
1854
|
}));
|
|
1855
1855
|
}
|
|
1856
1856
|
function xr(T, M) {
|
|
1857
|
-
const [H, X] = bn(T, M),
|
|
1857
|
+
const [H, X] = bn(T, M), he = C(Oe(T));
|
|
1858
1858
|
function x(K) {
|
|
1859
1859
|
H.value = K;
|
|
1860
1860
|
}
|
|
1861
1861
|
return ue(() => {
|
|
1862
|
-
const K = qe(M) ? M(io(
|
|
1862
|
+
const K = qe(M) ? M(io(he, oo)) : M || {};
|
|
1863
1863
|
return Object.assign({ [K.model || "modelValue"]: H.value, [`onUpdate:${K.model || "modelValue"}`]: x }, X.value);
|
|
1864
1864
|
});
|
|
1865
1865
|
}
|
|
@@ -2117,7 +2117,7 @@ const kg = /* @__PURE__ */ ve(yg, [["render", wg]]), Sg = { class: "relative" },
|
|
|
2117
2117
|
]));
|
|
2118
2118
|
}
|
|
2119
2119
|
});
|
|
2120
|
-
let
|
|
2120
|
+
let fe = {
|
|
2121
2121
|
theme: "wpic-tools",
|
|
2122
2122
|
popoverTarget: "body"
|
|
2123
2123
|
};
|
|
@@ -2159,7 +2159,7 @@ const Og = ["is", "type", "disabled"], Mg = {
|
|
|
2159
2159
|
};
|
|
2160
2160
|
en(() => {
|
|
2161
2161
|
document.addEventListener("click", s);
|
|
2162
|
-
}),
|
|
2162
|
+
}), Zo(() => {
|
|
2163
2163
|
document.removeEventListener("click", s);
|
|
2164
2164
|
});
|
|
2165
2165
|
const a = {
|
|
@@ -2213,16 +2213,16 @@ const Og = ["is", "type", "disabled"], Mg = {
|
|
|
2213
2213
|
"active:outline active:outline-2 active:outline-offset-4": !t.disabled && !t.loading && t.outlining,
|
|
2214
2214
|
"cursor-not-allowed": t.disabled,
|
|
2215
2215
|
border: t.outline && !t.plain,
|
|
2216
|
-
[`${a[R(
|
|
2217
|
-
[`${u[R(
|
|
2218
|
-
[`${d[R(
|
|
2219
|
-
[`${h[R(
|
|
2220
|
-
[`${p[R(
|
|
2221
|
-
[`${m[R(
|
|
2222
|
-
[`${l[R(
|
|
2223
|
-
[`${f[R(
|
|
2224
|
-
[`${g[R(
|
|
2225
|
-
[`${c[R(
|
|
2216
|
+
[`${a[R(fe).theme]}`]: !0,
|
|
2217
|
+
[`${u[R(fe).theme]}`]: t.primary && !t.plain && !t.inverse,
|
|
2218
|
+
[`${d[R(fe).theme]}`]: t.secondary,
|
|
2219
|
+
[`${h[R(fe).theme]}`]: !t.primary && !t.secondary && !t.plain && !t.colorless && !t.destructive,
|
|
2220
|
+
[`${p[R(fe).theme]}`]: t.primary && t.plain,
|
|
2221
|
+
[`${m[R(fe).theme]}`]: !t.primary && !t.destructive && t.plain,
|
|
2222
|
+
[`${l[R(fe).theme]}`]: t.colorless,
|
|
2223
|
+
[`${f[R(fe).theme]}`]: t.destructive && !t.plain && !t.colorless,
|
|
2224
|
+
[`${g[R(fe).theme]}`]: t.destructive && t.plain,
|
|
2225
|
+
[`${c[R(fe).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,
|
|
2228
2228
|
"w-full": t.full,
|
|
@@ -2234,7 +2234,7 @@ const Og = ["is", "type", "disabled"], Mg = {
|
|
|
2234
2234
|
}, [
|
|
2235
2235
|
t.loading ? (b(), S("div", Mg, [
|
|
2236
2236
|
le(Zr, { class: "w-6 h-6" })
|
|
2237
|
-
])) :
|
|
2237
|
+
])) : Q("", !0),
|
|
2238
2238
|
(b(), ge(Gr(o.value), {
|
|
2239
2239
|
to: t.to,
|
|
2240
2240
|
class: G(["flex items-center justify-center select-none whitespace-nowrap py-1 h-full", {
|
|
@@ -2266,7 +2266,7 @@ const Og = ["is", "type", "disabled"], Mg = {
|
|
|
2266
2266
|
class: "font-normal h-10 flex items-center px-4 hover:bg-gray-100 dark:hover:bg-white/5"
|
|
2267
2267
|
}, be(v.label), 9, $g))), 256))
|
|
2268
2268
|
])
|
|
2269
|
-
], 512)) :
|
|
2269
|
+
], 512)) : Q("", !0)
|
|
2270
2270
|
], 10, Og);
|
|
2271
2271
|
};
|
|
2272
2272
|
}
|
|
@@ -2279,7 +2279,7 @@ const Og = ["is", "type", "disabled"], Mg = {
|
|
|
2279
2279
|
"wpic-tools": "border-gray-300"
|
|
2280
2280
|
};
|
|
2281
2281
|
return (n, r) => (b(), S("div", {
|
|
2282
|
-
class: G(["wpic-button-group flex flex-wrap h-10", [e[R(
|
|
2282
|
+
class: G(["wpic-button-group flex flex-wrap h-10", [e[R(fe).theme]]])
|
|
2283
2283
|
}, [
|
|
2284
2284
|
Me(n.$slots, "default")
|
|
2285
2285
|
], 2));
|
|
@@ -2336,7 +2336,7 @@ const Bg = /* @__PURE__ */ ve(Ng, [["render", Ig]]), Pg = {
|
|
|
2336
2336
|
start: "end",
|
|
2337
2337
|
end: "start"
|
|
2338
2338
|
};
|
|
2339
|
-
function
|
|
2339
|
+
function pa(t, e, n) {
|
|
2340
2340
|
return Dr(t, Ti(e, n));
|
|
2341
2341
|
}
|
|
2342
2342
|
function Wi(t, e) {
|
|
@@ -2354,11 +2354,11 @@ function Wd(t) {
|
|
|
2354
2354
|
function el(t) {
|
|
2355
2355
|
return t === "y" ? "height" : "width";
|
|
2356
2356
|
}
|
|
2357
|
-
function
|
|
2357
|
+
function es(t) {
|
|
2358
2358
|
return ["top", "bottom"].includes(lr(t)) ? "y" : "x";
|
|
2359
2359
|
}
|
|
2360
2360
|
function tl(t) {
|
|
2361
|
-
return Wd(
|
|
2361
|
+
return Wd(es(t));
|
|
2362
2362
|
}
|
|
2363
2363
|
function jg(t, e, n) {
|
|
2364
2364
|
n === void 0 && (n = !1);
|
|
@@ -2368,9 +2368,9 @@ function jg(t, e, n) {
|
|
|
2368
2368
|
}
|
|
2369
2369
|
function zg(t) {
|
|
2370
2370
|
const e = Ao(t);
|
|
2371
|
-
return [
|
|
2371
|
+
return [ma(t), e, ma(e)];
|
|
2372
2372
|
}
|
|
2373
|
-
function
|
|
2373
|
+
function ma(t) {
|
|
2374
2374
|
return t.replace(/start|end/g, (e) => _g[e]);
|
|
2375
2375
|
}
|
|
2376
2376
|
function Fg(t, e, n) {
|
|
@@ -2389,7 +2389,7 @@ function Fg(t, e, n) {
|
|
|
2389
2389
|
function Hg(t, e, n, r) {
|
|
2390
2390
|
const i = Ui(t);
|
|
2391
2391
|
let o = Fg(lr(t), n === "start", r);
|
|
2392
|
-
return i && (o = o.map((s) => s + "-" + i), e && (o = o.concat(o.map(
|
|
2392
|
+
return i && (o = o.map((s) => s + "-" + i), e && (o = o.concat(o.map(ma)))), o;
|
|
2393
2393
|
}
|
|
2394
2394
|
function Ao(t) {
|
|
2395
2395
|
return t.replace(/left|right|bottom|top/g, (e) => Rg[e]);
|
|
@@ -2434,7 +2434,7 @@ function rc(t, e, n) {
|
|
|
2434
2434
|
reference: r,
|
|
2435
2435
|
floating: i
|
|
2436
2436
|
} = t;
|
|
2437
|
-
const o =
|
|
2437
|
+
const o = es(e), s = tl(e), a = el(s), l = lr(e), c = o === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[a] / 2 - i[a] / 2;
|
|
2438
2438
|
let h;
|
|
2439
2439
|
switch (l) {
|
|
2440
2440
|
case "top":
|
|
@@ -2607,7 +2607,7 @@ const qg = (t) => ({
|
|
|
2607
2607
|
}, h = tl(i), p = el(h), g = await s.getDimensions(c), m = h === "y", y = m ? "top" : "left", k = m ? "bottom" : "right", E = m ? "clientHeight" : "clientWidth", v = o.reference[p] + o.reference[h] - f[h] - o.floating[p], $ = f[h] - o.reference[h], w = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(c));
|
|
2608
2608
|
let I = w ? w[E] : 0;
|
|
2609
2609
|
(!I || !await (s.isElement == null ? void 0 : s.isElement(w))) && (I = a.floating[E] || o.floating[p]);
|
|
2610
|
-
const z = v / 2 - $ / 2, V = I / 2 - g[p] / 2 - 1, L = Ti(d[y], V), D = Ti(d[k], V), J = L, oe = I - g[p] - D, _ = I / 2 - g[p] / 2 + z, O =
|
|
2610
|
+
const z = v / 2 - $ / 2, V = I / 2 - g[p] / 2 - 1, L = Ti(d[y], V), D = Ti(d[k], V), J = L, oe = I - g[p] - D, _ = I / 2 - g[p] / 2 + z, O = pa(J, _, oe), C = !l.arrow && Ui(i) != null && _ !== O && o.reference[p] / 2 - (_ < J ? L : D) - g[p] / 2 < 0, B = C ? _ < J ? _ - J : _ - oe : 0;
|
|
2611
2611
|
return {
|
|
2612
2612
|
[h]: f[h] + B,
|
|
2613
2613
|
data: {
|
|
@@ -2697,7 +2697,7 @@ async function Yg(t, e) {
|
|
|
2697
2697
|
placement: n,
|
|
2698
2698
|
platform: r,
|
|
2699
2699
|
elements: i
|
|
2700
|
-
} = t, o = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), s = lr(n), a = Ui(n), l =
|
|
2700
|
+
} = t, o = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), s = lr(n), a = Ui(n), l = es(n) === "y", c = ["left", "top"].includes(s) ? -1 : 1, u = o && l ? -1 : 1, d = Wi(e, t);
|
|
2701
2701
|
let {
|
|
2702
2702
|
mainAxis: f,
|
|
2703
2703
|
crossAxis: h,
|
|
@@ -2770,15 +2770,15 @@ const Jg = function(t) {
|
|
|
2770
2770
|
} = Wi(t, e), c = {
|
|
2771
2771
|
x: n,
|
|
2772
2772
|
y: r
|
|
2773
|
-
}, u = await qd(e, l), d =
|
|
2773
|
+
}, u = await qd(e, l), d = es(lr(i)), f = Wd(d);
|
|
2774
2774
|
let h = c[f], p = c[d];
|
|
2775
2775
|
if (o) {
|
|
2776
2776
|
const m = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", k = h + u[m], E = h - u[y];
|
|
2777
|
-
h =
|
|
2777
|
+
h = pa(k, h, E);
|
|
2778
2778
|
}
|
|
2779
2779
|
if (s) {
|
|
2780
2780
|
const m = d === "y" ? "top" : "left", y = d === "y" ? "bottom" : "right", k = p + u[m], E = p - u[y];
|
|
2781
|
-
p =
|
|
2781
|
+
p = pa(k, p, E);
|
|
2782
2782
|
}
|
|
2783
2783
|
const g = a.fn({
|
|
2784
2784
|
...e,
|
|
@@ -2852,7 +2852,7 @@ function _r(t) {
|
|
|
2852
2852
|
function _t(t) {
|
|
2853
2853
|
return wt(t).getComputedStyle(t);
|
|
2854
2854
|
}
|
|
2855
|
-
function
|
|
2855
|
+
function ts(t) {
|
|
2856
2856
|
return Jt(t) ? {
|
|
2857
2857
|
scrollLeft: t.scrollLeft,
|
|
2858
2858
|
scrollTop: t.scrollTop
|
|
@@ -2877,11 +2877,11 @@ function Kd(t) {
|
|
|
2877
2877
|
const e = Pn(t);
|
|
2878
2878
|
return _r(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Gt(e) && qi(e) ? e : Kd(e);
|
|
2879
2879
|
}
|
|
2880
|
-
function
|
|
2880
|
+
function ga(t, e, n) {
|
|
2881
2881
|
var r;
|
|
2882
2882
|
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
2883
2883
|
const i = Kd(t), o = i === ((r = t.ownerDocument) == null ? void 0 : r.body), s = wt(i);
|
|
2884
|
-
return o ? e.concat(s, s.visualViewport || [], qi(i) ? i : [], s.frameElement && n ?
|
|
2884
|
+
return o ? e.concat(s, s.visualViewport || [], qi(i) ? i : [], s.frameElement && n ? ga(s.frameElement) : []) : e.concat(i, ga(i, [], n));
|
|
2885
2885
|
}
|
|
2886
2886
|
function Yd(t) {
|
|
2887
2887
|
const e = _t(t);
|
|
@@ -2969,7 +2969,7 @@ function n0(t) {
|
|
|
2969
2969
|
scrollTop: 0
|
|
2970
2970
|
}, c = Bn(1);
|
|
2971
2971
|
const u = Bn(0), d = Gt(r);
|
|
2972
|
-
if ((d || !d && !o) && ((pr(r) !== "body" || qi(s)) && (l =
|
|
2972
|
+
if ((d || !d && !o) && ((pr(r) !== "body" || qi(s)) && (l = ts(r)), Gt(r))) {
|
|
2973
2973
|
const f = $i(r);
|
|
2974
2974
|
c = Nr(r), u.x = f.x + r.clientLeft, u.y = f.y + r.clientTop;
|
|
2975
2975
|
}
|
|
@@ -2984,10 +2984,10 @@ function r0(t) {
|
|
|
2984
2984
|
return Array.from(t.getClientRects());
|
|
2985
2985
|
}
|
|
2986
2986
|
function Zd(t) {
|
|
2987
|
-
return $i(_n(t)).left +
|
|
2987
|
+
return $i(_n(t)).left + ts(t).scrollLeft;
|
|
2988
2988
|
}
|
|
2989
2989
|
function i0(t) {
|
|
2990
|
-
const e = _n(t), n =
|
|
2990
|
+
const e = _n(t), n = ts(t), r = t.ownerDocument.body, i = Dr(e.scrollWidth, e.clientWidth, r.scrollWidth, r.clientWidth), o = Dr(e.scrollHeight, e.clientHeight, r.scrollHeight, r.clientHeight);
|
|
2991
2991
|
let s = -n.scrollLeft + Zd(t);
|
|
2992
2992
|
const a = -n.scrollTop;
|
|
2993
2993
|
return _t(r).direction === "rtl" && (s += Dr(e.clientWidth, r.clientWidth) - i), {
|
|
@@ -3047,7 +3047,7 @@ function a0(t, e) {
|
|
|
3047
3047
|
const n = e.get(t);
|
|
3048
3048
|
if (n)
|
|
3049
3049
|
return n;
|
|
3050
|
-
let r =
|
|
3050
|
+
let r = ga(t, [], !1).filter((a) => Jt(a) && pr(a) !== "body"), i = null;
|
|
3051
3051
|
const o = _t(t).position === "fixed";
|
|
3052
3052
|
let s = o ? Pn(t) : t;
|
|
3053
3053
|
for (; Jt(s) && !_r(s); ) {
|
|
@@ -3092,7 +3092,7 @@ function u0(t, e, n) {
|
|
|
3092
3092
|
};
|
|
3093
3093
|
const l = Bn(0);
|
|
3094
3094
|
if (r || !r && !o)
|
|
3095
|
-
if ((pr(e) !== "body" || qi(i)) && (a =
|
|
3095
|
+
if ((pr(e) !== "body" || qi(i)) && (a = ts(e)), r) {
|
|
3096
3096
|
const d = $i(e, !0, o, e);
|
|
3097
3097
|
l.x = d.x + e.clientLeft, l.y = d.y + e.clientTop;
|
|
3098
3098
|
} else i && (l.x = Zd(i));
|
|
@@ -3104,7 +3104,7 @@ function u0(t, e, n) {
|
|
|
3104
3104
|
height: s.height
|
|
3105
3105
|
};
|
|
3106
3106
|
}
|
|
3107
|
-
function
|
|
3107
|
+
function Ms(t) {
|
|
3108
3108
|
return _t(t).position === "static";
|
|
3109
3109
|
}
|
|
3110
3110
|
function sc(t, e) {
|
|
@@ -3117,16 +3117,16 @@ function Qd(t, e) {
|
|
|
3117
3117
|
if (!Gt(t)) {
|
|
3118
3118
|
let i = Pn(t);
|
|
3119
3119
|
for (; i && !_r(i); ) {
|
|
3120
|
-
if (Jt(i) && !
|
|
3120
|
+
if (Jt(i) && !Ms(i))
|
|
3121
3121
|
return i;
|
|
3122
3122
|
i = Pn(i);
|
|
3123
3123
|
}
|
|
3124
3124
|
return n;
|
|
3125
3125
|
}
|
|
3126
3126
|
let r = sc(t, e);
|
|
3127
|
-
for (; r && Zg(r) &&
|
|
3127
|
+
for (; r && Zg(r) && Ms(r); )
|
|
3128
3128
|
r = sc(r, e);
|
|
3129
|
-
return r && _r(r) &&
|
|
3129
|
+
return r && _r(r) && Ms(r) && !rl(r) ? n : r || Xg(t) || n;
|
|
3130
3130
|
}
|
|
3131
3131
|
const d0 = async function(t) {
|
|
3132
3132
|
const e = this.getOffsetParent || Qd, n = this.getDimensions, r = await n(t.floating);
|
|
@@ -3316,7 +3316,7 @@ const $0 = {
|
|
|
3316
3316
|
document.addEventListener("click", p), document.addEventListener("submenu-open", (y) => {
|
|
3317
3317
|
y.detail.uuid !== r && f();
|
|
3318
3318
|
});
|
|
3319
|
-
}),
|
|
3319
|
+
}), Zo(() => {
|
|
3320
3320
|
document.removeEventListener("click", p), document.removeEventListener("submenu-open", f);
|
|
3321
3321
|
});
|
|
3322
3322
|
function g() {
|
|
@@ -3338,7 +3338,7 @@ const $0 = {
|
|
|
3338
3338
|
Me(y.$slots, "default", { isHidden: c.value })
|
|
3339
3339
|
], 32)),
|
|
3340
3340
|
(b(), ge(Md, {
|
|
3341
|
-
to: R(
|
|
3341
|
+
to: R(fe).popoverTarget
|
|
3342
3342
|
}, [
|
|
3343
3343
|
(b(), S("div", {
|
|
3344
3344
|
key: `floating_${R(r)}`,
|
|
@@ -3348,7 +3348,7 @@ const $0 = {
|
|
|
3348
3348
|
class: G(["z-30 rounded-md overflow-hidden", {
|
|
3349
3349
|
[`${t.customWidth}`]: !0,
|
|
3350
3350
|
hidden: c.value,
|
|
3351
|
-
[`${s[R(
|
|
3351
|
+
[`${s[R(fe).theme]}`]: !c.value,
|
|
3352
3352
|
"rounded-md": !t.custom,
|
|
3353
3353
|
"px-3 py-2": !t.custom && !t.expand
|
|
3354
3354
|
}])
|
|
@@ -3431,7 +3431,7 @@ const al = /* @__PURE__ */ ve(I0, [["render", R0]]), _0 = {
|
|
|
3431
3431
|
t.label ? (b(), S("div", _0, [
|
|
3432
3432
|
A("div", j0, [
|
|
3433
3433
|
A("span", null, be(t.label), 1),
|
|
3434
|
-
t.required && !t.hideRequired ? (b(), S("span", z0, "*")) :
|
|
3434
|
+
t.required && !t.hideRequired ? (b(), S("span", z0, "*")) : Q("", !0),
|
|
3435
3435
|
A("div", F0, [
|
|
3436
3436
|
t.info ? (b(), ge(mr, {
|
|
3437
3437
|
key: 0,
|
|
@@ -3444,13 +3444,13 @@ const al = /* @__PURE__ */ ve(I0, [["render", R0]]), _0 = {
|
|
|
3444
3444
|
le(al, { class: "w-4 h-4 text-zinc-600" })
|
|
3445
3445
|
]),
|
|
3446
3446
|
_: 1
|
|
3447
|
-
})) :
|
|
3447
|
+
})) : Q("", !0)
|
|
3448
3448
|
])
|
|
3449
3449
|
]),
|
|
3450
3450
|
A("div", H0, [
|
|
3451
3451
|
Me(s.$slots, "more")
|
|
3452
3452
|
])
|
|
3453
|
-
])) :
|
|
3453
|
+
])) : Q("", !0),
|
|
3454
3454
|
A("div", {
|
|
3455
3455
|
class: G(["wpic-input overflow-auto leading-none flex relative items-center", {
|
|
3456
3456
|
"border rounded-sm pr-3": !t.naked,
|
|
@@ -3458,11 +3458,11 @@ const al = /* @__PURE__ */ ve(I0, [["render", R0]]), _0 = {
|
|
|
3458
3458
|
"border-b": t.material,
|
|
3459
3459
|
"pl-4": !s.$slots.prepend,
|
|
3460
3460
|
"pl-8": s.$slots.prepend,
|
|
3461
|
-
[`${n[R(
|
|
3461
|
+
[`${n[R(fe).theme]}`]: !0,
|
|
3462
3462
|
"h-8 text-sm": t.small,
|
|
3463
3463
|
"h-10": !t.large && !t.small,
|
|
3464
3464
|
"h-12": t.large,
|
|
3465
|
-
[`${r[R(
|
|
3465
|
+
[`${r[R(fe).theme]}`]: t.disabled,
|
|
3466
3466
|
"cursor-pointer": !t.disabled,
|
|
3467
3467
|
"border-red-600! focus-within:outline-red-600": t.invalid
|
|
3468
3468
|
}])
|
|
@@ -3471,7 +3471,7 @@ const al = /* @__PURE__ */ ve(I0, [["render", R0]]), _0 = {
|
|
|
3471
3471
|
A("div", U0, [
|
|
3472
3472
|
Me(s.$slots, "prepend")
|
|
3473
3473
|
])
|
|
3474
|
-
])) :
|
|
3474
|
+
])) : Q("", !0),
|
|
3475
3475
|
Me(s.$slots, "default"),
|
|
3476
3476
|
t.loading ? (b(), S("div", q0, [
|
|
3477
3477
|
le(Zr, { class: "w-6 h-6 opacity-50" })
|
|
@@ -3482,7 +3482,7 @@ const al = /* @__PURE__ */ ve(I0, [["render", R0]]), _0 = {
|
|
|
3482
3482
|
class: "absolute right-0 mr-2 h-full flex items-center cursor-pointer opacity-75 hover:opacity-100"
|
|
3483
3483
|
}, [
|
|
3484
3484
|
le(Ki, { class: "w-5 h-5 opacity-50" })
|
|
3485
|
-
])) :
|
|
3485
|
+
])) : Q("", !0)
|
|
3486
3486
|
], 2)
|
|
3487
3487
|
]));
|
|
3488
3488
|
}
|
|
@@ -3495,7 +3495,7 @@ function Y0(t) {
|
|
|
3495
3495
|
var e = typeof t;
|
|
3496
3496
|
return t != null && (e == "object" || e == "function");
|
|
3497
3497
|
}
|
|
3498
|
-
var
|
|
3498
|
+
var ns = Y0, J0 = typeof Qn == "object" && Qn && Qn.Object === Object && Qn, sf = J0, G0 = sf, Z0 = typeof self == "object" && self && self.Object === Object && self, X0 = G0 || Z0 || Function("return this")(), tn = X0, Q0 = tn, ey = function() {
|
|
3499
3499
|
return Q0.Date.now();
|
|
3500
3500
|
}, ty = ey, ny = /\s/;
|
|
3501
3501
|
function ry(t) {
|
|
@@ -3534,7 +3534,7 @@ var Zi = Cy, Oy = Gi, My = Zi, Ty = "[object Symbol]";
|
|
|
3534
3534
|
function $y(t) {
|
|
3535
3535
|
return typeof t == "symbol" || My(t) && Oy(t) == Ty;
|
|
3536
3536
|
}
|
|
3537
|
-
var Ay = $y, Ey = ly, dc =
|
|
3537
|
+
var Ay = $y, Ey = ly, dc = ns, Dy = Ay, fc = NaN, Ny = /^[-+]0x[0-9a-f]+$/i, Ly = /^0b[01]+$/i, Iy = /^0o[0-7]+$/i, By = parseInt;
|
|
3538
3538
|
function Py(t) {
|
|
3539
3539
|
if (typeof t == "number")
|
|
3540
3540
|
return t;
|
|
@@ -3550,7 +3550,7 @@ function Py(t) {
|
|
|
3550
3550
|
var n = Ly.test(t);
|
|
3551
3551
|
return n || Iy.test(t) ? By(t.slice(2), n ? 2 : 8) : Ny.test(t) ? fc : +t;
|
|
3552
3552
|
}
|
|
3553
|
-
var Vy = Py, Ry =
|
|
3553
|
+
var Vy = Py, Ry = ns, Ts = ty, hc = Vy, _y = "Expected a function", jy = Math.max, zy = Math.min;
|
|
3554
3554
|
function Fy(t, e, n) {
|
|
3555
3555
|
var r, i, o, s, a, l, c = 0, u = !1, d = !1, f = !0;
|
|
3556
3556
|
if (typeof t != "function")
|
|
@@ -3572,7 +3572,7 @@ function Fy(t, e, n) {
|
|
|
3572
3572
|
return l === void 0 || I >= e || I < 0 || d && z >= o;
|
|
3573
3573
|
}
|
|
3574
3574
|
function y() {
|
|
3575
|
-
var w =
|
|
3575
|
+
var w = Ts();
|
|
3576
3576
|
if (m(w))
|
|
3577
3577
|
return k(w);
|
|
3578
3578
|
a = setTimeout(y, g(w));
|
|
@@ -3584,10 +3584,10 @@ function Fy(t, e, n) {
|
|
|
3584
3584
|
a !== void 0 && clearTimeout(a), c = 0, r = l = i = a = void 0;
|
|
3585
3585
|
}
|
|
3586
3586
|
function v() {
|
|
3587
|
-
return a === void 0 ? s : k(
|
|
3587
|
+
return a === void 0 ? s : k(Ts());
|
|
3588
3588
|
}
|
|
3589
3589
|
function $() {
|
|
3590
|
-
var w =
|
|
3590
|
+
var w = Ts(), I = m(w);
|
|
3591
3591
|
if (r = arguments, i = this, l = w, I) {
|
|
3592
3592
|
if (a === void 0)
|
|
3593
3593
|
return p(l);
|
|
@@ -3614,7 +3614,7 @@ function Yy(t, e) {
|
|
|
3614
3614
|
return n;
|
|
3615
3615
|
return -1;
|
|
3616
3616
|
}
|
|
3617
|
-
var
|
|
3617
|
+
var rs = Yy, Jy = rs, Gy = Array.prototype, Zy = Gy.splice;
|
|
3618
3618
|
function Xy(t) {
|
|
3619
3619
|
var e = this.__data__, n = Jy(e, t);
|
|
3620
3620
|
if (n < 0)
|
|
@@ -3622,16 +3622,16 @@ function Xy(t) {
|
|
|
3622
3622
|
var r = e.length - 1;
|
|
3623
3623
|
return n == r ? e.pop() : Zy.call(e, n, 1), --this.size, !0;
|
|
3624
3624
|
}
|
|
3625
|
-
var Qy = Xy, e1 =
|
|
3625
|
+
var Qy = Xy, e1 = rs;
|
|
3626
3626
|
function t1(t) {
|
|
3627
3627
|
var e = this.__data__, n = e1(e, t);
|
|
3628
3628
|
return n < 0 ? void 0 : e[n][1];
|
|
3629
3629
|
}
|
|
3630
|
-
var n1 = t1, r1 =
|
|
3630
|
+
var n1 = t1, r1 = rs;
|
|
3631
3631
|
function i1(t) {
|
|
3632
3632
|
return r1(this.__data__, t) > -1;
|
|
3633
3633
|
}
|
|
3634
|
-
var o1 = i1, s1 =
|
|
3634
|
+
var o1 = i1, s1 = rs;
|
|
3635
3635
|
function a1(t, e) {
|
|
3636
3636
|
var n = this.__data__, r = s1(n, t);
|
|
3637
3637
|
return r < 0 ? (++this.size, n.push([t, e])) : n[r][1] = e, this;
|
|
@@ -3649,7 +3649,7 @@ Xr.prototype.delete = u1;
|
|
|
3649
3649
|
Xr.prototype.get = d1;
|
|
3650
3650
|
Xr.prototype.has = f1;
|
|
3651
3651
|
Xr.prototype.set = h1;
|
|
3652
|
-
var
|
|
3652
|
+
var is = Xr, p1 = is;
|
|
3653
3653
|
function m1() {
|
|
3654
3654
|
this.__data__ = new p1(), this.size = 0;
|
|
3655
3655
|
}
|
|
@@ -3666,15 +3666,15 @@ var x1 = b1;
|
|
|
3666
3666
|
function w1(t) {
|
|
3667
3667
|
return this.__data__.has(t);
|
|
3668
3668
|
}
|
|
3669
|
-
var k1 = w1, S1 = Gi, C1 =
|
|
3669
|
+
var k1 = w1, S1 = Gi, C1 = ns, O1 = "[object AsyncFunction]", M1 = "[object Function]", T1 = "[object GeneratorFunction]", $1 = "[object Proxy]";
|
|
3670
3670
|
function A1(t) {
|
|
3671
3671
|
if (!C1(t))
|
|
3672
3672
|
return !1;
|
|
3673
3673
|
var e = S1(t);
|
|
3674
3674
|
return e == M1 || e == T1 || e == O1 || e == $1;
|
|
3675
3675
|
}
|
|
3676
|
-
var uf = A1, E1 = tn, D1 = E1["__core-js_shared__"], N1 = D1,
|
|
3677
|
-
var t = /[^.]+$/.exec(
|
|
3676
|
+
var uf = A1, E1 = tn, D1 = E1["__core-js_shared__"], N1 = D1, $s = N1, pc = function() {
|
|
3677
|
+
var t = /[^.]+$/.exec($s && $s.keys && $s.keys.IE_PROTO || "");
|
|
3678
3678
|
return t ? "Symbol(src)_1." + t : "";
|
|
3679
3679
|
}();
|
|
3680
3680
|
function L1(t) {
|
|
@@ -3694,7 +3694,7 @@ function V1(t) {
|
|
|
3694
3694
|
}
|
|
3695
3695
|
return "";
|
|
3696
3696
|
}
|
|
3697
|
-
var df = V1, R1 = uf, _1 = I1, j1 =
|
|
3697
|
+
var df = V1, R1 = uf, _1 = I1, j1 = ns, z1 = df, F1 = /[\\^$.*+?()[\]{}|]/g, H1 = /^\[object .+?Constructor\]$/, W1 = Function.prototype, U1 = Object.prototype, q1 = W1.toString, K1 = U1.hasOwnProperty, Y1 = RegExp(
|
|
3698
3698
|
"^" + q1.call(K1).replace(F1, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
3699
3699
|
);
|
|
3700
3700
|
function J1(t) {
|
|
@@ -3712,7 +3712,7 @@ function tv(t, e) {
|
|
|
3712
3712
|
var n = ev(t, e);
|
|
3713
3713
|
return Q1(n) ? n : void 0;
|
|
3714
3714
|
}
|
|
3715
|
-
var Qr = tv, nv = Qr, rv = tn, iv = nv(rv, "Map"), cl = iv, ov = Qr, sv = ov(Object, "create"),
|
|
3715
|
+
var Qr = tv, nv = Qr, rv = tn, iv = nv(rv, "Map"), cl = iv, ov = Qr, sv = ov(Object, "create"), ss = sv, mc = ss;
|
|
3716
3716
|
function av() {
|
|
3717
3717
|
this.__data__ = mc ? mc(null) : {}, this.size = 0;
|
|
3718
3718
|
}
|
|
@@ -3721,7 +3721,7 @@ function cv(t) {
|
|
|
3721
3721
|
var e = this.has(t) && delete this.__data__[t];
|
|
3722
3722
|
return this.size -= e ? 1 : 0, e;
|
|
3723
3723
|
}
|
|
3724
|
-
var uv = cv, dv =
|
|
3724
|
+
var uv = cv, dv = ss, fv = "__lodash_hash_undefined__", hv = Object.prototype, pv = hv.hasOwnProperty;
|
|
3725
3725
|
function mv(t) {
|
|
3726
3726
|
var e = this.__data__;
|
|
3727
3727
|
if (dv) {
|
|
@@ -3730,12 +3730,12 @@ function mv(t) {
|
|
|
3730
3730
|
}
|
|
3731
3731
|
return pv.call(e, t) ? e[t] : void 0;
|
|
3732
3732
|
}
|
|
3733
|
-
var gv = mv, yv =
|
|
3733
|
+
var gv = mv, yv = ss, vv = Object.prototype, bv = vv.hasOwnProperty;
|
|
3734
3734
|
function xv(t) {
|
|
3735
3735
|
var e = this.__data__;
|
|
3736
3736
|
return yv ? e[t] !== void 0 : bv.call(e, t);
|
|
3737
3737
|
}
|
|
3738
|
-
var wv = xv, kv =
|
|
3738
|
+
var wv = xv, kv = ss, Sv = "__lodash_hash_undefined__";
|
|
3739
3739
|
function Cv(t, e) {
|
|
3740
3740
|
var n = this.__data__;
|
|
3741
3741
|
return this.size += this.has(t) ? 0 : 1, n[t] = kv && e === void 0 ? Sv : e, this;
|
|
@@ -3753,7 +3753,7 @@ ei.prototype.delete = Tv;
|
|
|
3753
3753
|
ei.prototype.get = $v;
|
|
3754
3754
|
ei.prototype.has = Av;
|
|
3755
3755
|
ei.prototype.set = Ev;
|
|
3756
|
-
var Dv = ei, gc = Dv, Nv =
|
|
3756
|
+
var Dv = ei, gc = Dv, Nv = is, Lv = cl;
|
|
3757
3757
|
function Iv() {
|
|
3758
3758
|
this.size = 0, this.__data__ = {
|
|
3759
3759
|
hash: new gc(),
|
|
@@ -3771,20 +3771,20 @@ function _v(t, e) {
|
|
|
3771
3771
|
var n = t.__data__;
|
|
3772
3772
|
return Rv(e) ? n[typeof e == "string" ? "string" : "hash"] : n.map;
|
|
3773
3773
|
}
|
|
3774
|
-
var
|
|
3774
|
+
var as = _v, jv = as;
|
|
3775
3775
|
function zv(t) {
|
|
3776
3776
|
var e = jv(this, t).delete(t);
|
|
3777
3777
|
return this.size -= e ? 1 : 0, e;
|
|
3778
3778
|
}
|
|
3779
|
-
var Fv = zv, Hv =
|
|
3779
|
+
var Fv = zv, Hv = as;
|
|
3780
3780
|
function Wv(t) {
|
|
3781
3781
|
return Hv(this, t).get(t);
|
|
3782
3782
|
}
|
|
3783
|
-
var Uv = Wv, qv =
|
|
3783
|
+
var Uv = Wv, qv = as;
|
|
3784
3784
|
function Kv(t) {
|
|
3785
3785
|
return qv(this, t).has(t);
|
|
3786
3786
|
}
|
|
3787
|
-
var Yv = Kv, Jv =
|
|
3787
|
+
var Yv = Kv, Jv = as;
|
|
3788
3788
|
function Gv(t, e) {
|
|
3789
3789
|
var n = Jv(this, t), r = n.size;
|
|
3790
3790
|
return n.set(t, e), this.size += n.size == r ? 0 : 1, this;
|
|
@@ -3802,7 +3802,7 @@ ti.prototype.delete = Qv;
|
|
|
3802
3802
|
ti.prototype.get = eb;
|
|
3803
3803
|
ti.prototype.has = tb;
|
|
3804
3804
|
ti.prototype.set = nb;
|
|
3805
|
-
var ff = ti, rb =
|
|
3805
|
+
var ff = ti, rb = is, ib = cl, ob = ff, sb = 200;
|
|
3806
3806
|
function ab(t, e) {
|
|
3807
3807
|
var n = this.__data__;
|
|
3808
3808
|
if (n instanceof rb) {
|
|
@@ -3813,7 +3813,7 @@ function ab(t, e) {
|
|
|
3813
3813
|
}
|
|
3814
3814
|
return n.set(t, e), this.size = n.size, this;
|
|
3815
3815
|
}
|
|
3816
|
-
var lb = ab, cb =
|
|
3816
|
+
var lb = ab, cb = is, ub = g1, db = v1, fb = x1, hb = k1, pb = lb;
|
|
3817
3817
|
function ni(t) {
|
|
3818
3818
|
var e = this.__data__ = new cb(t);
|
|
3819
3819
|
this.size = e.size;
|
|
@@ -3898,7 +3898,7 @@ function jb(t) {
|
|
|
3898
3898
|
n[++e] = r;
|
|
3899
3899
|
}), n;
|
|
3900
3900
|
}
|
|
3901
|
-
var zb = jb, yc = ll, vc = Vb, Fb = cf, Hb = hf, Wb = _b, Ub = zb, qb = 1, Kb = 2, Yb = "[object Boolean]", Jb = "[object Date]", Gb = "[object Error]", Zb = "[object Map]", Xb = "[object Number]", Qb = "[object RegExp]", e2 = "[object Set]", t2 = "[object String]", n2 = "[object Symbol]", r2 = "[object ArrayBuffer]", i2 = "[object DataView]", bc = yc ? yc.prototype : void 0,
|
|
3901
|
+
var zb = jb, yc = ll, vc = Vb, Fb = cf, Hb = hf, Wb = _b, Ub = zb, qb = 1, Kb = 2, Yb = "[object Boolean]", Jb = "[object Date]", Gb = "[object Error]", Zb = "[object Map]", Xb = "[object Number]", Qb = "[object RegExp]", e2 = "[object Set]", t2 = "[object String]", n2 = "[object Symbol]", r2 = "[object ArrayBuffer]", i2 = "[object DataView]", bc = yc ? yc.prototype : void 0, As = bc ? bc.valueOf : void 0;
|
|
3902
3902
|
function o2(t, e, n, r, i, o, s) {
|
|
3903
3903
|
switch (n) {
|
|
3904
3904
|
case i2:
|
|
@@ -3929,8 +3929,8 @@ function o2(t, e, n, r, i, o, s) {
|
|
|
3929
3929
|
var u = Hb(a(t), a(e), r, i, o, s);
|
|
3930
3930
|
return s.delete(t), u;
|
|
3931
3931
|
case n2:
|
|
3932
|
-
if (
|
|
3933
|
-
return
|
|
3932
|
+
if (As)
|
|
3933
|
+
return As.call(t) == As.call(e);
|
|
3934
3934
|
}
|
|
3935
3935
|
return !1;
|
|
3936
3936
|
}
|
|
@@ -4093,8 +4093,8 @@ function fw(t, e, n, r, i, o) {
|
|
|
4093
4093
|
}
|
|
4094
4094
|
return o.delete(t), o.delete(e), g;
|
|
4095
4095
|
}
|
|
4096
|
-
var hw = fw, pw = Qr, mw = tn, gw = pw(mw, "DataView"), yw = gw, vw = Qr, bw = tn, xw = vw(bw, "Promise"), ww = xw, kw = Qr, Sw = tn, Cw = kw(Sw, "Set"), Ow = Cw, Mw = Qr, Tw = tn, $w = Mw(Tw, "WeakMap"), Aw = $w,
|
|
4097
|
-
(
|
|
4096
|
+
var hw = fw, pw = Qr, mw = tn, gw = pw(mw, "DataView"), yw = gw, vw = Qr, bw = tn, xw = vw(bw, "Promise"), ww = xw, kw = Qr, Sw = tn, Cw = kw(Sw, "Set"), Ow = Cw, Mw = Qr, Tw = tn, $w = Mw(Tw, "WeakMap"), Aw = $w, ya = yw, va = cl, ba = ww, xa = Ow, wa = Aw, vf = Gi, ri = df, Oc = "[object Map]", Ew = "[object Object]", Mc = "[object Promise]", Tc = "[object Set]", $c = "[object WeakMap]", Ac = "[object DataView]", Dw = ri(ya), Nw = ri(va), Lw = ri(ba), Iw = ri(xa), Bw = ri(wa), Kn = vf;
|
|
4097
|
+
(ya && Kn(new ya(new ArrayBuffer(1))) != Ac || va && Kn(new va()) != Oc || ba && Kn(ba.resolve()) != Mc || xa && Kn(new xa()) != Tc || wa && Kn(new wa()) != $c) && (Kn = function(t) {
|
|
4098
4098
|
var e = vf(t), n = e == Ew ? t.constructor : void 0, r = n ? ri(n) : "";
|
|
4099
4099
|
if (r)
|
|
4100
4100
|
switch (r) {
|
|
@@ -4111,7 +4111,7 @@ var hw = fw, pw = Qr, mw = tn, gw = pw(mw, "DataView"), yw = gw, vw = Qr, bw = t
|
|
|
4111
4111
|
}
|
|
4112
4112
|
return e;
|
|
4113
4113
|
});
|
|
4114
|
-
var Pw = Kn,
|
|
4114
|
+
var Pw = Kn, Es = mb, Vw = hf, Rw = s2, _w = hw, Ec = Pw, Dc = ul, Nc = mf, jw = yf, zw = 1, Lc = "[object Arguments]", Ic = "[object Array]", ao = "[object Object]", Fw = Object.prototype, Bc = Fw.hasOwnProperty;
|
|
4115
4115
|
function Hw(t, e, n, r, i, o) {
|
|
4116
4116
|
var s = Dc(t), a = Dc(e), l = s ? Ic : Ec(t), c = a ? Ic : Ec(e);
|
|
4117
4117
|
l = l == Lc ? ao : l, c = c == Lc ? ao : c;
|
|
@@ -4122,15 +4122,15 @@ function Hw(t, e, n, r, i, o) {
|
|
|
4122
4122
|
s = !0, u = !1;
|
|
4123
4123
|
}
|
|
4124
4124
|
if (f && !u)
|
|
4125
|
-
return o || (o = new
|
|
4125
|
+
return o || (o = new Es()), s || jw(t) ? Vw(t, e, n, r, i, o) : Rw(t, e, l, n, r, i, o);
|
|
4126
4126
|
if (!(n & zw)) {
|
|
4127
4127
|
var h = u && Bc.call(t, "__wrapped__"), p = d && Bc.call(e, "__wrapped__");
|
|
4128
4128
|
if (h || p) {
|
|
4129
4129
|
var g = h ? t.value() : t, m = p ? e.value() : e;
|
|
4130
|
-
return o || (o = new
|
|
4130
|
+
return o || (o = new Es()), i(g, m, n, r, o);
|
|
4131
4131
|
}
|
|
4132
4132
|
}
|
|
4133
|
-
return f ? (o || (o = new
|
|
4133
|
+
return f ? (o || (o = new Es()), _w(t, e, n, r, i, o)) : !1;
|
|
4134
4134
|
}
|
|
4135
4135
|
var Ww = Hw, Uw = Ww, Pc = Zi;
|
|
4136
4136
|
function bf(t, e, n, r, i) {
|
|
@@ -4328,11 +4328,11 @@ const tk = /* @__PURE__ */ ve(Gw, [["render", ek]]), nk = {
|
|
|
4328
4328
|
class: "absolute right-6 mr-3 h-full flex items-center cursor-pointer opacity-75 hover:opacity-100"
|
|
4329
4329
|
}, [
|
|
4330
4330
|
le(Ki, { class: "w-4 h-4" })
|
|
4331
|
-
])) :
|
|
4331
|
+
])) : Q("", !0),
|
|
4332
4332
|
!t.hideChevron && !t.loading ? (b(), ge(tk, {
|
|
4333
4333
|
key: 1,
|
|
4334
4334
|
class: "h-5 w-5 -mr-[2px]"
|
|
4335
|
-
})) :
|
|
4335
|
+
})) : Q("", !0)
|
|
4336
4336
|
];
|
|
4337
4337
|
}),
|
|
4338
4338
|
_: 3
|
|
@@ -4353,7 +4353,7 @@ const tk = /* @__PURE__ */ ve(Gw, [["render", ek]]), nk = {
|
|
|
4353
4353
|
E
|
|
4354
4354
|
]
|
|
4355
4355
|
}, null, 8, ["modelValue"])
|
|
4356
|
-
])) :
|
|
4356
|
+
])) : Q("", !0),
|
|
4357
4357
|
!t.options && ((w = t.options) == null ? void 0 : w.length) == 0 ? (b(), S("span", sk, "No data.")) : (b(), S($e, { key: 2 }, [
|
|
4358
4358
|
t.multiple && t.batchSelect ? (b(), S("div", ak, [
|
|
4359
4359
|
A("span", {
|
|
@@ -4367,14 +4367,14 @@ const tk = /* @__PURE__ */ ve(Gw, [["render", ek]]), nk = {
|
|
|
4367
4367
|
class: "cursor-pointer opacity-50 hover:opacity-100",
|
|
4368
4368
|
onClick: $[2] || ($[2] = (I) => d([]))
|
|
4369
4369
|
}, "Select none")
|
|
4370
|
-
])) :
|
|
4370
|
+
])) : Q("", !0),
|
|
4371
4371
|
(b(!0), S($e, null, We(k.value, (I) => (b(), S("div", {
|
|
4372
4372
|
class: G(["group", { "is-selected": !!g(I.value) }])
|
|
4373
4373
|
}, [
|
|
4374
4374
|
A("div", {
|
|
4375
4375
|
class: G(["flex items-center py-2 px-4 min-w-64 text-base", {
|
|
4376
4376
|
"cursor-pointer": !t.multiple || I.value,
|
|
4377
|
-
[`${m[R(
|
|
4377
|
+
[`${m[R(fe).theme]}`]: !0
|
|
4378
4378
|
}]),
|
|
4379
4379
|
onClick: (z) => I.disabled ? null : c(I.value)
|
|
4380
4380
|
}, [
|
|
@@ -4385,7 +4385,7 @@ const tk = /* @__PURE__ */ ve(Gw, [["render", ek]]), nk = {
|
|
|
4385
4385
|
t.multiple && g(I.value) ? (b(), ge(of, {
|
|
4386
4386
|
key: 0,
|
|
4387
4387
|
class: "w-4 h-4"
|
|
4388
|
-
})) :
|
|
4388
|
+
})) : Q("", !0)
|
|
4389
4389
|
])
|
|
4390
4390
|
], 10, lk)
|
|
4391
4391
|
], 2))), 256))
|
|
@@ -4490,9 +4490,9 @@ const tk = /* @__PURE__ */ ve(Gw, [["render", ek]]), nk = {
|
|
|
4490
4490
|
le(al, { class: "w-4 h-4 text-zinc-600" })
|
|
4491
4491
|
]),
|
|
4492
4492
|
_: 1
|
|
4493
|
-
})) :
|
|
4493
|
+
})) : Q("", !0)
|
|
4494
4494
|
])
|
|
4495
|
-
])) :
|
|
4495
|
+
])) : Q("", !0),
|
|
4496
4496
|
A("textarea", {
|
|
4497
4497
|
ref_key: "myTextarea",
|
|
4498
4498
|
ref: i,
|
|
@@ -4552,7 +4552,7 @@ const tk = /* @__PURE__ */ ve(Gw, [["render", ek]]), nk = {
|
|
|
4552
4552
|
onInput: o,
|
|
4553
4553
|
class: "w-6 h-6 !rounded-md cursor-pointer outline-hidden appearance-none"
|
|
4554
4554
|
}, null, 544), [
|
|
4555
|
-
[
|
|
4555
|
+
[sa, i.value]
|
|
4556
4556
|
]),
|
|
4557
4557
|
Vr(A("input", {
|
|
4558
4558
|
type: "text",
|
|
@@ -4561,7 +4561,7 @@ const tk = /* @__PURE__ */ ve(Gw, [["render", ek]]), nk = {
|
|
|
4561
4561
|
class: "w-full p-2 outline-hidden appearance-none",
|
|
4562
4562
|
placeholder: t.placeholder
|
|
4563
4563
|
}, null, 40, gk), [
|
|
4564
|
-
[
|
|
4564
|
+
[sa, i.value]
|
|
4565
4565
|
])
|
|
4566
4566
|
]),
|
|
4567
4567
|
_: 1
|
|
@@ -4805,7 +4805,7 @@ const Vk = /* @__PURE__ */ ve(Nk, [["render", Pk]]), Rk = { class: "flex items-c
|
|
|
4805
4805
|
}, [
|
|
4806
4806
|
A("div", Rk, [
|
|
4807
4807
|
A("span", null, be(l.value), 1),
|
|
4808
|
-
t.required && !t.hideRequired ? (b(), S("span", _k, "*")) :
|
|
4808
|
+
t.required && !t.hideRequired ? (b(), S("span", _k, "*")) : Q("", !0),
|
|
4809
4809
|
A("div", jk, [
|
|
4810
4810
|
t.info ? (b(), ge(mr, {
|
|
4811
4811
|
key: 0,
|
|
@@ -4821,13 +4821,13 @@ const Vk = /* @__PURE__ */ ve(Nk, [["render", Pk]]), Rk = { class: "flex items-c
|
|
|
4821
4821
|
le(al, { class: "w-4 h-4 text-zinc-600" })
|
|
4822
4822
|
]),
|
|
4823
4823
|
_: 1
|
|
4824
|
-
})) :
|
|
4824
|
+
})) : Q("", !0)
|
|
4825
4825
|
])
|
|
4826
4826
|
]),
|
|
4827
4827
|
A("div", Fk, [
|
|
4828
4828
|
Me(L.$slots, "more")
|
|
4829
4829
|
])
|
|
4830
|
-
], 2)) :
|
|
4830
|
+
], 2)) : Q("", !0),
|
|
4831
4831
|
t.checkbox ? (b(), ge(R(qn), {
|
|
4832
4832
|
key: 1,
|
|
4833
4833
|
ref_key: "myInput",
|
|
@@ -4849,10 +4849,10 @@ const Vk = /* @__PURE__ */ ve(Nk, [["render", Pk]]), Rk = { class: "flex items-c
|
|
|
4849
4849
|
}, [
|
|
4850
4850
|
A("div", {
|
|
4851
4851
|
class: G(["w-4 h-4 border dark:border-gray-800 cursor-pointer", {
|
|
4852
|
-
[`${i[R(
|
|
4852
|
+
[`${i[R(fe).theme]}`]: !0
|
|
4853
4853
|
}])
|
|
4854
4854
|
}, [
|
|
4855
|
-
t.modelValue === !0 ? (b(), ge(of, { key: 0 })) :
|
|
4855
|
+
t.modelValue === !0 ? (b(), ge(of, { key: 0 })) : Q("", !0)
|
|
4856
4856
|
], 2),
|
|
4857
4857
|
A("span", {
|
|
4858
4858
|
class: G(["text-base cursor-pointer select-none text-gray-600 dark:text-gray-500", { "!text-gray-500/50 dark:text-gray-700/50": t.disabled }])
|
|
@@ -4885,7 +4885,7 @@ const Vk = /* @__PURE__ */ ve(Nk, [["render", Pk]]), Rk = { class: "flex items-c
|
|
|
4885
4885
|
t.radioValue == t.modelValue ? (b(), S("span", {
|
|
4886
4886
|
key: 0,
|
|
4887
4887
|
class: G(["flex rounded-full h-full w-full bg-violet-800", { "bg-opacity-50": t.disabled }])
|
|
4888
|
-
}, null, 2)) :
|
|
4888
|
+
}, null, 2)) : Q("", !0)
|
|
4889
4889
|
], 2),
|
|
4890
4890
|
A("input", {
|
|
4891
4891
|
class: "hidden",
|
|
@@ -4898,7 +4898,7 @@ const Vk = /* @__PURE__ */ ve(Nk, [["render", Pk]]), Rk = { class: "flex items-c
|
|
|
4898
4898
|
l.value ? (b(), S("span", {
|
|
4899
4899
|
key: 0,
|
|
4900
4900
|
class: G(["text-base", { "opacity-50": t.disabled }])
|
|
4901
|
-
}, be(l.value), 3)) :
|
|
4901
|
+
}, be(l.value), 3)) : Q("", !0)
|
|
4902
4902
|
], 2)
|
|
4903
4903
|
]),
|
|
4904
4904
|
_: 1
|
|
@@ -4979,7 +4979,7 @@ const Vk = /* @__PURE__ */ ve(Nk, [["render", Pk]]), Rk = { class: "flex items-c
|
|
|
4979
4979
|
"rounded-sm border": !t.naked,
|
|
4980
4980
|
"border-b": t.material,
|
|
4981
4981
|
"!bg-transparent": t.naked,
|
|
4982
|
-
[`${r[R(
|
|
4982
|
+
[`${r[R(fe).theme]}`]: !0,
|
|
4983
4983
|
"bg-transparent!": t.transparent,
|
|
4984
4984
|
"h-10": !t.textarea && !t.large,
|
|
4985
4985
|
"h-12": !t.textarea && t.large,
|
|
@@ -4994,7 +4994,7 @@ const Vk = /* @__PURE__ */ ve(Nk, [["render", Pk]]), Rk = { class: "flex items-c
|
|
|
4994
4994
|
A("div", Wk, [
|
|
4995
4995
|
Me(L.$slots, "prepend")
|
|
4996
4996
|
])
|
|
4997
|
-
], 2)) :
|
|
4997
|
+
], 2)) : Q("", !0),
|
|
4998
4998
|
t.textarea ? (b(), ge(R(qn), {
|
|
4999
4999
|
key: 1,
|
|
5000
5000
|
ref_key: "myInput",
|
|
@@ -5064,7 +5064,7 @@ const Vk = /* @__PURE__ */ ve(Nk, [["render", Pk]]), Rk = { class: "flex items-c
|
|
|
5064
5064
|
class: "absolute right-0 mr-3 h-full flex items-center cursor-pointer opacity-75 hover:opacity-100"
|
|
5065
5065
|
}, [
|
|
5066
5066
|
le(Ki, { class: "w-5 h-5 opacity-50" })
|
|
5067
|
-
])) :
|
|
5067
|
+
])) : Q("", !0),
|
|
5068
5068
|
L.$slots.append || t.password || t.type == "password" ? (b(), S("div", Uk, [
|
|
5069
5069
|
A("div", qk, [
|
|
5070
5070
|
Me(L.$slots, "append", {}, () => [
|
|
@@ -5072,17 +5072,17 @@ const Vk = /* @__PURE__ */ ve(Nk, [["render", Pk]]), Rk = { class: "flex items-c
|
|
|
5072
5072
|
class: "text-zinc-600 select-none",
|
|
5073
5073
|
onClick: d
|
|
5074
5074
|
}, null, 512), [
|
|
5075
|
-
[
|
|
5075
|
+
[aa, c.value]
|
|
5076
5076
|
]),
|
|
5077
5077
|
Vr(le(Dk, {
|
|
5078
5078
|
class: "text-zinc-600 select-none",
|
|
5079
5079
|
onClick: d
|
|
5080
5080
|
}, null, 512), [
|
|
5081
|
-
[
|
|
5081
|
+
[aa, !c.value]
|
|
5082
5082
|
])
|
|
5083
5083
|
])
|
|
5084
5084
|
])
|
|
5085
|
-
])) :
|
|
5085
|
+
])) : Q("", !0)
|
|
5086
5086
|
], 2)),
|
|
5087
5087
|
t.error && R(a) ? (b(), S("div", Kk, [
|
|
5088
5088
|
le(R(cg), { name: s.value }, {
|
|
@@ -5091,7 +5091,7 @@ const Vk = /* @__PURE__ */ ve(Nk, [["render", Pk]]), Rk = { class: "flex items-c
|
|
|
5091
5091
|
]),
|
|
5092
5092
|
_: 1
|
|
5093
5093
|
}, 8, ["name"])
|
|
5094
|
-
])) :
|
|
5094
|
+
])) : Q("", !0),
|
|
5095
5095
|
L.$slots.help || t.help ? (b(), S("div", {
|
|
5096
5096
|
key: 8,
|
|
5097
5097
|
class: G(["text-base mt-1", { "ml-7": t.type == "checkbox", "opacity-50": t.disabled }])
|
|
@@ -5099,7 +5099,7 @@ const Vk = /* @__PURE__ */ ve(Nk, [["render", Pk]]), Rk = { class: "flex items-c
|
|
|
5099
5099
|
Me(L.$slots, "help", {}, () => [
|
|
5100
5100
|
Ie(be(t.help), 1)
|
|
5101
5101
|
])
|
|
5102
|
-
], 2)) :
|
|
5102
|
+
], 2)) : Q("", !0)
|
|
5103
5103
|
], 2));
|
|
5104
5104
|
}
|
|
5105
5105
|
}), Jk = ["innerHTML"], Gk = {
|
|
@@ -5206,32 +5206,32 @@ const Vk = /* @__PURE__ */ ve(Nk, [["render", Pk]]), Rk = { class: "flex items-c
|
|
|
5206
5206
|
"wpic-tools": "font-medium dark:text-gray-300"
|
|
5207
5207
|
};
|
|
5208
5208
|
return (r, i) => {
|
|
5209
|
-
const o =
|
|
5209
|
+
const o = la("wpic-loading-panel");
|
|
5210
5210
|
return b(), S("div", {
|
|
5211
|
-
class: G(["rounded-lg wpic-card relative", { [e[R(
|
|
5211
|
+
class: G(["rounded-lg wpic-card relative", { [e[R(fe).theme]]: !0, "wpic-card-inline": t.inline, "has-header": t.title || r.$slots.actions || r.$slots.title }])
|
|
5212
5212
|
}, [
|
|
5213
5213
|
t.loading ? (b(), ge(o, {
|
|
5214
5214
|
key: 0,
|
|
5215
5215
|
class: "absolute top-0 left-0 z-10",
|
|
5216
5216
|
wave: ""
|
|
5217
|
-
})) :
|
|
5217
|
+
})) : Q("", !0),
|
|
5218
5218
|
t.title || r.$slots.title || r.$slots.actions ? (b(), S("div", Zk, [
|
|
5219
5219
|
t.title || r.$slots.title || r.$slots.actions ? (b(), S("div", {
|
|
5220
5220
|
key: 0,
|
|
5221
|
-
class: G(["text-lg 2xl:text-xl flex items-center", [n[R(
|
|
5221
|
+
class: G(["text-lg 2xl:text-xl flex items-center", [n[R(fe).theme]]])
|
|
5222
5222
|
}, [
|
|
5223
5223
|
Me(r.$slots, "title", {}, () => [
|
|
5224
5224
|
Ie(be(t.title), 1)
|
|
5225
5225
|
])
|
|
5226
|
-
], 2)) :
|
|
5226
|
+
], 2)) : Q("", !0),
|
|
5227
5227
|
A("div", Xk, [
|
|
5228
5228
|
Me(r.$slots, "actions")
|
|
5229
5229
|
])
|
|
5230
|
-
])) :
|
|
5230
|
+
])) : Q("", !0),
|
|
5231
5231
|
Me(r.$slots, "default"),
|
|
5232
5232
|
r.$slots.buttons ? (b(), S("div", Qk, [
|
|
5233
5233
|
Me(r.$slots, "buttons")
|
|
5234
|
-
])) :
|
|
5234
|
+
])) : Q("", !0)
|
|
5235
5235
|
], 2);
|
|
5236
5236
|
};
|
|
5237
5237
|
}
|
|
@@ -5253,7 +5253,7 @@ const Vk = /* @__PURE__ */ ve(Nk, [["render", Pk]]), Rk = { class: "flex items-c
|
|
|
5253
5253
|
};
|
|
5254
5254
|
return (n, r) => (b(), S("div", {
|
|
5255
5255
|
class: G(["border-b relative dark:border-gray-900 dark:text-gray-300 last:border-0 pb-6", {
|
|
5256
|
-
[`${e[R(
|
|
5256
|
+
[`${e[R(fe).theme]}`]: !0,
|
|
5257
5257
|
"pt-3": !(t.title && n.$slots.actions && n.$slots.title),
|
|
5258
5258
|
"pt-6": !t.title && !n.$slots.actions && !n.$slots.title,
|
|
5259
5259
|
"bg-gray-50 dark:bg-gray-930 last:rounded-b-lg": t.sub,
|
|
@@ -5267,11 +5267,11 @@ const Vk = /* @__PURE__ */ ve(Nk, [["render", Pk]]), Rk = { class: "flex items-c
|
|
|
5267
5267
|
])
|
|
5268
5268
|
]),
|
|
5269
5269
|
Me(n.$slots, "actions")
|
|
5270
|
-
])) :
|
|
5270
|
+
])) : Q("", !0),
|
|
5271
5271
|
Me(n.$slots, "default")
|
|
5272
5272
|
], 2));
|
|
5273
5273
|
}
|
|
5274
|
-
}), s5 = /* @__PURE__ */ A("div", { class: "" }, null, -1), a5 = /* @__PURE__ */
|
|
5274
|
+
}), s5 = /* @__PURE__ */ A("div", { class: "" }, null, -1), a5 = /* @__PURE__ */ Xo('<div class="-mt-2"><div class="absolute left-1/4 h-8 border-r border-gray-100 dark:border-gray-900"></div><div class="absolute left-1/2 h-8 border-r border-gray-100 dark:border-gray-900"></div><div class="absolute left-3/4 h-8 border-r border-gray-100 dark:border-gray-900"></div></div><div class="mt-7 text-gray-500 dark:text-gray-600"><div class="absolute left-0 text-xs">0%</div><div class="absolute left-1/4 -translate-x-1/4 text-xs">25%</div><div class="absolute left-1/2 -translate-x-1/2 text-xs">50%</div><div class="absolute right-1/4 translate-x-3/4 text-xs">75%</div><div class="absolute right-0 text-xs">100%</div></div>', 2), l5 = {
|
|
5275
5275
|
name: "WpicProgressBar"
|
|
5276
5276
|
}, c5 = /* @__PURE__ */ Object.assign(l5, {
|
|
5277
5277
|
props: {
|
|
@@ -5300,7 +5300,7 @@ const Vk = /* @__PURE__ */ ve(Nk, [["render", Pk]]), Rk = { class: "flex items-c
|
|
|
5300
5300
|
class: G(["relative flex", { "mb-4": t.indicators }])
|
|
5301
5301
|
}, [
|
|
5302
5302
|
A("div", {
|
|
5303
|
-
class: G(["flex w-full relative", r[R(
|
|
5303
|
+
class: G(["flex w-full relative", r[R(fe).theme]]),
|
|
5304
5304
|
style: { "z-index": "1" }
|
|
5305
5305
|
}, [
|
|
5306
5306
|
n.value > 0 ? (b(), S("div", {
|
|
@@ -5308,7 +5308,7 @@ const Vk = /* @__PURE__ */ ve(Nk, [["render", Pk]]), Rk = { class: "flex items-c
|
|
|
5308
5308
|
style: un({ width: `${n.value}%` }),
|
|
5309
5309
|
class: G(["flex h-full", {
|
|
5310
5310
|
[`${t.background}`]: !0,
|
|
5311
|
-
[`${i[R(
|
|
5311
|
+
[`${i[R(fe).theme]}`]: !0
|
|
5312
5312
|
}])
|
|
5313
5313
|
}, [
|
|
5314
5314
|
le(Of, {
|
|
@@ -5320,11 +5320,11 @@ const Vk = /* @__PURE__ */ ve(Nk, [["render", Pk]]), Rk = { class: "flex items-c
|
|
|
5320
5320
|
]),
|
|
5321
5321
|
_: 1
|
|
5322
5322
|
}, 8, ["text"])
|
|
5323
|
-
], 6)) :
|
|
5323
|
+
], 6)) : Q("", !0)
|
|
5324
5324
|
], 2),
|
|
5325
5325
|
t.indicators ? (b(), S($e, { key: 0 }, [
|
|
5326
5326
|
a5
|
|
5327
|
-
], 64)) :
|
|
5327
|
+
], 64)) : Q("", !0)
|
|
5328
5328
|
], 2));
|
|
5329
5329
|
}
|
|
5330
5330
|
}), u5 = { class: "leading-none" }, d5 = {
|
|
@@ -5344,7 +5344,7 @@ const Vk = /* @__PURE__ */ ve(Nk, [["render", Pk]]), Rk = { class: "flex items-c
|
|
|
5344
5344
|
r("clear");
|
|
5345
5345
|
}
|
|
5346
5346
|
return (o, s) => (b(), S("div", {
|
|
5347
|
-
class: G(["wpic-tag select-none border inline-flex rounded-sm h-8 items-center justify-center pl-3 py-1", { "pr-3": !t.clearable, "pr-1": t.clearable, [n[R(
|
|
5347
|
+
class: G(["wpic-tag select-none border inline-flex rounded-sm h-8 items-center justify-center pl-3 py-1", { "pr-3": !t.clearable, "pr-1": t.clearable, [n[R(fe).theme]]: !0 }])
|
|
5348
5348
|
}, [
|
|
5349
5349
|
A("span", u5, [
|
|
5350
5350
|
Me(o.$slots, "default")
|
|
@@ -5355,7 +5355,7 @@ const Vk = /* @__PURE__ */ ve(Nk, [["render", Pk]]), Rk = { class: "flex items-c
|
|
|
5355
5355
|
class: "ml-2 mt-px cursor-pointer opacity-75 hover:opacity-100"
|
|
5356
5356
|
}, [
|
|
5357
5357
|
le(Ki, { class: "w-4 h-4" })
|
|
5358
|
-
])) :
|
|
5358
|
+
])) : Q("", !0)
|
|
5359
5359
|
], 2));
|
|
5360
5360
|
}
|
|
5361
5361
|
}), h5 = {
|
|
@@ -5424,9 +5424,9 @@ const Vk = /* @__PURE__ */ ve(Nk, [["render", Pk]]), Rk = { class: "flex items-c
|
|
|
5424
5424
|
};
|
|
5425
5425
|
return (i, o) => (b(), S("div", {
|
|
5426
5426
|
class: G(["border rounded-sm flex items-center justify-center w-10 h-10 cursor-pointer", {
|
|
5427
|
-
[e[R(
|
|
5428
|
-
[n[R(
|
|
5429
|
-
[r[R(
|
|
5427
|
+
[e[R(fe).theme]]: !t.active && !t.disabled,
|
|
5428
|
+
[n[R(fe).theme]]: t.active && !t.disabled,
|
|
5429
|
+
[r[R(fe).theme]]: t.disabled
|
|
5430
5430
|
}])
|
|
5431
5431
|
}, [
|
|
5432
5432
|
A("span", k5, [
|
|
@@ -5548,9 +5548,9 @@ const Af = /* @__PURE__ */ ve(_5, [["render", H5]]), W5 = { class: "wpic-paginat
|
|
|
5548
5548
|
t.info ? (b(), S("div", U5, [
|
|
5549
5549
|
t.total > 0 ? (b(), S($e, { key: 0 }, [
|
|
5550
5550
|
Ie(be(l()) + " - " + be(c()), 1),
|
|
5551
|
-
t.total ? (b(), S("span", q5, " / " + be(t.total), 1)) :
|
|
5552
|
-
], 64)) :
|
|
5553
|
-
])) :
|
|
5551
|
+
t.total ? (b(), S("span", q5, " / " + be(t.total), 1)) : Q("", !0)
|
|
5552
|
+
], 64)) : Q("", !0)
|
|
5553
|
+
])) : Q("", !0),
|
|
5554
5554
|
t.pages ? (b(), S("div", K5, [
|
|
5555
5555
|
le(li, {
|
|
5556
5556
|
onClick: d[0] || (d[0] = (f) => a(1)),
|
|
@@ -5599,8 +5599,8 @@ const Af = /* @__PURE__ */ ve(_5, [["render", H5]]), W5 = { class: "wpic-paginat
|
|
|
5599
5599
|
]),
|
|
5600
5600
|
_: 1
|
|
5601
5601
|
}, 8, ["disabled"])
|
|
5602
|
-
])) :
|
|
5603
|
-
|
|
5602
|
+
])) : Q("", !0),
|
|
5603
|
+
Q("", !0)
|
|
5604
5604
|
]));
|
|
5605
5605
|
}
|
|
5606
5606
|
}), Ef = (t, e) => {
|
|
@@ -5608,7 +5608,7 @@ const Af = /* @__PURE__ */ ve(_5, [["render", H5]]), W5 = { class: "wpic-paginat
|
|
|
5608
5608
|
return Et("td", e.attrs, n);
|
|
5609
5609
|
};
|
|
5610
5610
|
Ef.props = ["column", "item", "rowIndex"];
|
|
5611
|
-
const
|
|
5611
|
+
const Io = Ef, G5 = {}, Z5 = {
|
|
5612
5612
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5613
5613
|
viewBox: "0 0 16 16",
|
|
5614
5614
|
fill: "currentColor"
|
|
@@ -5628,7 +5628,8 @@ const tS = /* @__PURE__ */ ve(G5, [["render", eS]]), nS = { class: "font-semibol
|
|
|
5628
5628
|
columns: Array,
|
|
5629
5629
|
noXPadding: Boolean,
|
|
5630
5630
|
totalItem: {},
|
|
5631
|
-
position: String
|
|
5631
|
+
position: String,
|
|
5632
|
+
checkable: Boolean
|
|
5632
5633
|
},
|
|
5633
5634
|
setup(t) {
|
|
5634
5635
|
const e = {
|
|
@@ -5636,9 +5637,22 @@ const tS = /* @__PURE__ */ ve(G5, [["render", eS]]), nS = { class: "font-semibol
|
|
|
5636
5637
|
"wpic-tools": "bg-gray-50 border-gray-200 dark:text-gray-300 dark:border-gray-900 dark:bg-gray-810/45"
|
|
5637
5638
|
};
|
|
5638
5639
|
return (n, r) => (b(), S("tr", nS, [
|
|
5639
|
-
|
|
5640
|
+
t.checkable ? (b(), ge(Io, {
|
|
5641
|
+
key: 0,
|
|
5640
5642
|
class: G(["py-3 first:pl-6 pr-6 border-t", {
|
|
5641
|
-
[`${e[R(
|
|
5643
|
+
[`${e[R(fe).theme]}`]: !0,
|
|
5644
|
+
"sticky left-0": !0,
|
|
5645
|
+
"border-b": t.position === "header",
|
|
5646
|
+
"border-t": t.position === "footer",
|
|
5647
|
+
"first:pl-0 last:pr-0": t.noXPadding,
|
|
5648
|
+
"last:rounded-br-lg": t.position === "footer",
|
|
5649
|
+
"first:rounded-bl-lg": t.position === "footer"
|
|
5650
|
+
}]),
|
|
5651
|
+
column: {}
|
|
5652
|
+
}, null, 8, ["class"])) : Q("", !0),
|
|
5653
|
+
(b(!0), S($e, null, We(t.columns, (i, o) => (b(), ge(Io, {
|
|
5654
|
+
class: G(["py-3 first:pl-6 pr-6 border-t", {
|
|
5655
|
+
[`${e[R(fe).theme]}`]: !0,
|
|
5642
5656
|
"sticky left-0": o === 0,
|
|
5643
5657
|
"border-b": t.position === "header",
|
|
5644
5658
|
"border-t": t.position === "footer",
|
|
@@ -5788,10 +5802,10 @@ const pS = /* @__PURE__ */ ve(cS, [["render", hS]]), mS = {
|
|
|
5788
5802
|
((j = B.type) == null ? void 0 : j.name) === "WpicTableColumn" && J.push(B);
|
|
5789
5803
|
});
|
|
5790
5804
|
}), p.value = J.map((_) => {
|
|
5791
|
-
let O = _.children, C = _.props || {}, { field: B, label: j, help:
|
|
5805
|
+
let O = _.children, C = _.props || {}, { field: B, label: j, help: ee, width: re, minWidth: N, maxWidth: P, sortable: W, selectable: ie, render: Y, type: F, align: se, visible: Ce, noPadding: me } = D(_.type.props, C);
|
|
5792
5806
|
return B || (B = L(j)), ie && Ce && g.value.push(B), {
|
|
5793
5807
|
label: j,
|
|
5794
|
-
help:
|
|
5808
|
+
help: ee,
|
|
5795
5809
|
width: re,
|
|
5796
5810
|
minWidth: N,
|
|
5797
5811
|
maxWidth: P,
|
|
@@ -5846,7 +5860,7 @@ const pS = /* @__PURE__ */ ve(cS, [["render", hS]]), mS = {
|
|
|
5846
5860
|
return !D || typeof D != "string" ? "" : D.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "_").replace(/^_+|_+$/g, "");
|
|
5847
5861
|
}
|
|
5848
5862
|
return (D, J) => {
|
|
5849
|
-
const oe =
|
|
5863
|
+
const oe = la("wpic-choice-list"), _ = la("wpic-form-field");
|
|
5850
5864
|
return b(), S("div", null, [
|
|
5851
5865
|
t.columnToggleable ? (b(), S("div", mS, [
|
|
5852
5866
|
A("div", null, [
|
|
@@ -5875,38 +5889,38 @@ const pS = /* @__PURE__ */ ve(cS, [["render", hS]]), mS = {
|
|
|
5875
5889
|
_: 1
|
|
5876
5890
|
}, 8, ["modelValue", "options"])
|
|
5877
5891
|
])
|
|
5878
|
-
])) :
|
|
5892
|
+
])) : Q("", !0),
|
|
5879
5893
|
A("div", {
|
|
5880
5894
|
class: G(["wpic-table relative w-full rounded-lg overflow-hidden-", {
|
|
5881
5895
|
"no-radius rounded-none": t.noRadius || t.columnToggleable,
|
|
5882
5896
|
border: t.border,
|
|
5883
|
-
[`${i[R(
|
|
5897
|
+
[`${i[R(fe).theme]}`]: !0
|
|
5884
5898
|
}])
|
|
5885
5899
|
}, [
|
|
5886
5900
|
A("div", gS, [
|
|
5887
5901
|
A("table", yS, [
|
|
5888
5902
|
A("colgroup", null, [
|
|
5889
|
-
t.checkable ? (b(), S("col", vS)) :
|
|
5903
|
+
t.checkable ? (b(), S("col", vS)) : Q("", !0),
|
|
5890
5904
|
m.value.find((O) => O.type == "expand") ? (b(), S("col", {
|
|
5891
5905
|
key: 1,
|
|
5892
5906
|
style: un({ minWidth: `${m.value.find((O) => O.type == "expand").minWidth}px` }),
|
|
5893
5907
|
width: m.value.find((O) => O.type == "expand").width,
|
|
5894
5908
|
class: "w-16"
|
|
5895
|
-
}, null, 12, bS)) :
|
|
5909
|
+
}, null, 12, bS)) : Q("", !0),
|
|
5896
5910
|
(b(!0), S($e, null, We(m.value.filter((O) => O.type != "expand"), (O, C) => (b(), S("col", {
|
|
5897
5911
|
style: un({ minWidth: `${O.minWidth}px`, maxWidth: `${O.maxWidth}px` }),
|
|
5898
5912
|
width: O.width,
|
|
5899
5913
|
key: C
|
|
5900
5914
|
}, null, 12, xS))), 128))
|
|
5901
5915
|
]),
|
|
5902
|
-
t.hideHeaders ?
|
|
5916
|
+
t.hideHeaders ? Q("", !0) : (b(), S("thead", {
|
|
5903
5917
|
key: 0,
|
|
5904
5918
|
class: G(["rounded-t-lg", { "sticky top-0 z-10": t.stickyHeader }])
|
|
5905
5919
|
}, [
|
|
5906
5920
|
A("tr", null, [
|
|
5907
5921
|
t.checkable ? (b(), S("th", {
|
|
5908
5922
|
key: 0,
|
|
5909
|
-
class: G(["first:rounded-tl-lg last:rounded-tr-lg py-0 border-b first:pl-6 pr-6", [`${o[R(
|
|
5923
|
+
class: G(["first:rounded-tl-lg last:rounded-tr-lg py-0 border-b first:pl-6 pr-6", [`${o[R(fe).theme]}`]])
|
|
5910
5924
|
}, [
|
|
5911
5925
|
A("div", wS, [
|
|
5912
5926
|
le(_, {
|
|
@@ -5917,16 +5931,16 @@ const pS = /* @__PURE__ */ ve(cS, [["render", hS]]), mS = {
|
|
|
5917
5931
|
"onUpdate:modelValue": z
|
|
5918
5932
|
}, null, 8, ["modelValue"])
|
|
5919
5933
|
])
|
|
5920
|
-
], 2)) :
|
|
5934
|
+
], 2)) : Q("", !0),
|
|
5921
5935
|
m.value.find((O) => O.type == "expand") ? (b(), S("th", {
|
|
5922
5936
|
key: 1,
|
|
5923
|
-
class: G(["first:rounded-tl-lg last:rounded-tr-lg py-0 border-b first:pl-6 pr-6", [`${o[R(
|
|
5924
|
-
}, null, 2)) :
|
|
5937
|
+
class: G(["first:rounded-tl-lg last:rounded-tr-lg py-0 border-b first:pl-6 pr-6", [`${o[R(fe).theme]}`]])
|
|
5938
|
+
}, null, 2)) : Q("", !0),
|
|
5925
5939
|
(b(!0), S($e, null, We(m.value.filter((O) => O.type != "expand"), (O, C) => {
|
|
5926
5940
|
var B, j;
|
|
5927
5941
|
return b(), S("th", {
|
|
5928
5942
|
class: G(["first:rounded-tl-lg last:rounded-tr-lg py-0 border-b first:pl-6 pr-6", {
|
|
5929
|
-
[`${o[R(
|
|
5943
|
+
[`${o[R(fe).theme]}`]: !0,
|
|
5930
5944
|
"sticky top-0 left-0": C === 0
|
|
5931
5945
|
}]),
|
|
5932
5946
|
style: un({ maxWidth: `${O.maxWidth}px` })
|
|
@@ -5953,7 +5967,7 @@ const pS = /* @__PURE__ */ ve(cS, [["render", hS]]), mS = {
|
|
|
5953
5967
|
le(tS, {
|
|
5954
5968
|
class: G(["w-4 h-4", { "rotate-180": ((j = t.sortOptions) == null ? void 0 : j.sortDirection) === "asc" }])
|
|
5955
5969
|
}, null, 8, ["class"])
|
|
5956
|
-
], 2)) :
|
|
5970
|
+
], 2)) : Q("", !0)
|
|
5957
5971
|
], 10, kS)
|
|
5958
5972
|
], 6);
|
|
5959
5973
|
}), 256))
|
|
@@ -5962,21 +5976,22 @@ const pS = /* @__PURE__ */ ve(cS, [["render", hS]]), mS = {
|
|
|
5962
5976
|
A("tbody", SS, [
|
|
5963
5977
|
t.loading ? (b(), S($e, { key: 0 }, [
|
|
5964
5978
|
A("div", {
|
|
5965
|
-
class: G(["inset-0 z-10 absolute flex items-center justify-center", [u[R(
|
|
5979
|
+
class: G(["inset-0 z-10 absolute flex items-center justify-center", [u[R(fe).theme]]])
|
|
5966
5980
|
}, [
|
|
5967
5981
|
le(Zr, { class: "w-6 h-6" })
|
|
5968
5982
|
], 2),
|
|
5969
|
-
t.data.length ?
|
|
5970
|
-
], 64)) :
|
|
5983
|
+
t.data.length ? Q("", !0) : (b(), S("tr", CS, MS))
|
|
5984
|
+
], 64)) : Q("", !0),
|
|
5971
5985
|
t.totalItem && t.totalOnTop ? (b(), ge(Rc, {
|
|
5972
5986
|
key: 1,
|
|
5987
|
+
checkable: t.checkable,
|
|
5973
5988
|
position: "header",
|
|
5974
5989
|
columns: m.value,
|
|
5975
5990
|
noXPadding: t.noXPadding,
|
|
5976
5991
|
totalItem: t.totalItem
|
|
5977
|
-
}, null, 8, ["columns", "noXPadding", "totalItem"])) :
|
|
5992
|
+
}, null, 8, ["checkable", "columns", "noXPadding", "totalItem"])) : Q("", !0),
|
|
5978
5993
|
(b(!0), S($e, null, We(t.data, (O, C) => {
|
|
5979
|
-
var B, j,
|
|
5994
|
+
var B, j, ee, re, N;
|
|
5980
5995
|
return b(), S($e, {
|
|
5981
5996
|
key: `tr_${C}`
|
|
5982
5997
|
}, [
|
|
@@ -5984,7 +5999,7 @@ const pS = /* @__PURE__ */ ve(cS, [["render", hS]]), mS = {
|
|
|
5984
5999
|
class: G(["tr group border-b last:border-b-0 overflow-hidden", {
|
|
5985
6000
|
"is-odd": C % 2 == 0,
|
|
5986
6001
|
"is-even": C % 2 != 0,
|
|
5987
|
-
[s[R(
|
|
6002
|
+
[s[R(fe).theme]]: !0
|
|
5988
6003
|
// [trStripeColors[config.theme]]: stripe
|
|
5989
6004
|
}])
|
|
5990
6005
|
}, [
|
|
@@ -5999,7 +6014,7 @@ const pS = /* @__PURE__ */ ve(cS, [["render", hS]]), mS = {
|
|
|
5999
6014
|
"onUpdate:modelValue": (P) => w(O)
|
|
6000
6015
|
}, null, 8, ["modelValue", "checkboxValue", "onUpdate:modelValue"])
|
|
6001
6016
|
])
|
|
6002
|
-
])) :
|
|
6017
|
+
])) : Q("", !0),
|
|
6003
6018
|
m.value.find((P) => P.type == "expand") ? (b(), S("td", {
|
|
6004
6019
|
key: 1,
|
|
6005
6020
|
class: G([[
|
|
@@ -6026,15 +6041,15 @@ const pS = /* @__PURE__ */ ve(cS, [["render", hS]]), mS = {
|
|
|
6026
6041
|
]),
|
|
6027
6042
|
_: 2
|
|
6028
6043
|
}, 1032, ["onClick"])
|
|
6029
|
-
], 2)) :
|
|
6044
|
+
], 2)) : Q("", !0),
|
|
6030
6045
|
(b(!0), S($e, null, We(m.value.filter((P) => P.type != "expand"), (P, W) => {
|
|
6031
6046
|
var ie, Y;
|
|
6032
|
-
return b(), ge(
|
|
6047
|
+
return b(), ge(Io, {
|
|
6033
6048
|
class: G(["lg:text-base h-full table-cell", {
|
|
6034
6049
|
"text-sm lg:text-sm py-1!": t.small,
|
|
6035
6050
|
"sticky left-0 shadow-sm": W === 0,
|
|
6036
|
-
[`${l[R(
|
|
6037
|
-
[`${c[R(
|
|
6051
|
+
[`${l[R(fe).theme]}`]: !0,
|
|
6052
|
+
[`${c[R(fe).theme]}`]: t.stripe,
|
|
6038
6053
|
"py-3 first:pl-6 pr-6": !P.noPadding,
|
|
6039
6054
|
"first:pl-0 last:pr-0": t.noXPadding,
|
|
6040
6055
|
"last:rounded-br-lg": C === ((ie = t.data) == null ? void 0 : ie.length) - 1 && !t.totalItem && !m.value.find((F) => F.type == "expand") && !t.noRadius,
|
|
@@ -6055,17 +6070,17 @@ const pS = /* @__PURE__ */ ve(cS, [["render", hS]]), mS = {
|
|
|
6055
6070
|
m.value.find((P) => P.type == "expand") ? Vr((b(), S("tr", {
|
|
6056
6071
|
key: 0,
|
|
6057
6072
|
class: G([{
|
|
6058
|
-
[s[R(
|
|
6059
|
-
[a[R(
|
|
6073
|
+
[s[R(fe).theme]]: !t.stripe,
|
|
6074
|
+
[a[R(fe).theme]]: t.stripe
|
|
6060
6075
|
}, "tr border-b last:border-b-0 overflow-hidden"])
|
|
6061
6076
|
}, [
|
|
6062
|
-
le(
|
|
6077
|
+
le(Io, {
|
|
6063
6078
|
class: G(["lg:text-base bg-gray-50! dark:bg-gray-940!", {
|
|
6064
|
-
[`${l[R(
|
|
6079
|
+
[`${l[R(fe).theme]}`]: !0,
|
|
6065
6080
|
"py-3 first:pl-6 pr-6": !((B = m.value.find((P) => P.type == "expand")) != null && B.noPadding),
|
|
6066
6081
|
"p-0": (j = m.value.find((P) => P.type == "expand")) == null ? void 0 : j.noPadding,
|
|
6067
6082
|
"first:pl-0 last:pr-0": t.noXPadding,
|
|
6068
|
-
"last:rounded-br-lg": C === ((
|
|
6083
|
+
"last:rounded-br-lg": C === ((ee = t.data) == null ? void 0 : ee.length) - 1 && !t.totalItem,
|
|
6069
6084
|
"first:rounded-bl-lg": C === ((re = t.data) == null ? void 0 : re.length) - 1 && !t.totalItem,
|
|
6070
6085
|
"text-center": m.value.find((P) => P.type == "expand").align == "center",
|
|
6071
6086
|
"text-right": m.value.find((P) => P.type == "expand").align == "right"
|
|
@@ -6076,22 +6091,23 @@ const pS = /* @__PURE__ */ ve(cS, [["render", hS]]), mS = {
|
|
|
6076
6091
|
item: O
|
|
6077
6092
|
}, null, 8, ["class", "column", "rowIndex", "colspan", "item"])
|
|
6078
6093
|
], 2)), [
|
|
6079
|
-
[
|
|
6080
|
-
]) :
|
|
6094
|
+
[aa, E[C]]
|
|
6095
|
+
]) : Q("", !0)
|
|
6081
6096
|
], 64);
|
|
6082
6097
|
}), 128))
|
|
6083
6098
|
]),
|
|
6084
6099
|
t.totalItem && t.totalOnBottom ? (b(), S("tfoot", AS, [
|
|
6085
6100
|
le(Rc, {
|
|
6101
|
+
checkable: t.checkable,
|
|
6086
6102
|
position: "footer",
|
|
6087
6103
|
columns: m.value,
|
|
6088
6104
|
noXPadding: t.noXPadding,
|
|
6089
6105
|
totalItem: t.totalItem
|
|
6090
|
-
}, null, 8, ["columns", "noXPadding", "totalItem"])
|
|
6091
|
-
])) :
|
|
6106
|
+
}, null, 8, ["checkable", "columns", "noXPadding", "totalItem"])
|
|
6107
|
+
])) : Q("", !0)
|
|
6092
6108
|
])
|
|
6093
6109
|
]),
|
|
6094
|
-
!t.loading && !t.data.length ? (b(), S("div", ES, " No Data ")) :
|
|
6110
|
+
!t.loading && !t.data.length ? (b(), S("div", ES, " No Data ")) : Q("", !0)
|
|
6095
6111
|
], 2)
|
|
6096
6112
|
]);
|
|
6097
6113
|
};
|
|
@@ -6557,11 +6573,11 @@ class q {
|
|
|
6557
6573
|
}
|
|
6558
6574
|
}
|
|
6559
6575
|
q.empty = new q([], 0);
|
|
6560
|
-
const
|
|
6576
|
+
const Ds = { index: 0, offset: 0 };
|
|
6561
6577
|
function lo(t, e) {
|
|
6562
|
-
return
|
|
6578
|
+
return Ds.index = t, Ds.offset = e, Ds;
|
|
6563
6579
|
}
|
|
6564
|
-
function
|
|
6580
|
+
function Bo(t, e) {
|
|
6565
6581
|
if (t === e)
|
|
6566
6582
|
return !0;
|
|
6567
6583
|
if (!(t && typeof t == "object") || !(e && typeof e == "object"))
|
|
@@ -6573,11 +6589,11 @@ function Io(t, e) {
|
|
|
6573
6589
|
if (t.length != e.length)
|
|
6574
6590
|
return !1;
|
|
6575
6591
|
for (let r = 0; r < t.length; r++)
|
|
6576
|
-
if (!
|
|
6592
|
+
if (!Bo(t[r], e[r]))
|
|
6577
6593
|
return !1;
|
|
6578
6594
|
} else {
|
|
6579
6595
|
for (let r in t)
|
|
6580
|
-
if (!(r in e) || !
|
|
6596
|
+
if (!(r in e) || !Bo(t[r], e[r]))
|
|
6581
6597
|
return !1;
|
|
6582
6598
|
for (let r in e)
|
|
6583
6599
|
if (!(r in t))
|
|
@@ -6639,7 +6655,7 @@ let Ne = class ka {
|
|
|
6639
6655
|
another mark.
|
|
6640
6656
|
*/
|
|
6641
6657
|
eq(e) {
|
|
6642
|
-
return this == e || this.type == e.type &&
|
|
6658
|
+
return this == e || this.type == e.type && Bo(this.attrs, e.attrs);
|
|
6643
6659
|
}
|
|
6644
6660
|
/**
|
|
6645
6661
|
Convert this mark to a JSON-serializeable representation.
|
|
@@ -6691,7 +6707,7 @@ let Ne = class ka {
|
|
|
6691
6707
|
}
|
|
6692
6708
|
};
|
|
6693
6709
|
Ne.none = [];
|
|
6694
|
-
class
|
|
6710
|
+
class Po extends Error {
|
|
6695
6711
|
}
|
|
6696
6712
|
class Z {
|
|
6697
6713
|
/**
|
|
@@ -6794,9 +6810,9 @@ function If(t, e, n, r) {
|
|
|
6794
6810
|
}
|
|
6795
6811
|
function IS(t, e, n) {
|
|
6796
6812
|
if (n.openStart > t.depth)
|
|
6797
|
-
throw new
|
|
6813
|
+
throw new Po("Inserted content deeper than insertion position");
|
|
6798
6814
|
if (t.depth - n.openStart != e.depth - n.openEnd)
|
|
6799
|
-
throw new
|
|
6815
|
+
throw new Po("Inconsistent open depths");
|
|
6800
6816
|
return Bf(t, e, n, 0);
|
|
6801
6817
|
}
|
|
6802
6818
|
function Bf(t, e, n, r) {
|
|
@@ -6812,11 +6828,11 @@ function Bf(t, e, n, r) {
|
|
|
6812
6828
|
let { start: s, end: a } = BS(n, t);
|
|
6813
6829
|
return rr(o, Vf(t, s, a, e, r));
|
|
6814
6830
|
}
|
|
6815
|
-
else return rr(o,
|
|
6831
|
+
else return rr(o, Vo(t, e, r));
|
|
6816
6832
|
}
|
|
6817
6833
|
function Pf(t, e) {
|
|
6818
6834
|
if (!e.type.compatibleContent(t.type))
|
|
6819
|
-
throw new
|
|
6835
|
+
throw new Po("Cannot join " + e.type.name + " onto " + t.type.name);
|
|
6820
6836
|
}
|
|
6821
6837
|
function Sa(t, e, n) {
|
|
6822
6838
|
let r = t.node(n);
|
|
@@ -6838,13 +6854,13 @@ function rr(t, e) {
|
|
|
6838
6854
|
}
|
|
6839
6855
|
function Vf(t, e, n, r, i) {
|
|
6840
6856
|
let o = t.depth > i && Sa(t, e, i + 1), s = r.depth > i && Sa(n, r, i + 1), a = [];
|
|
6841
|
-
return yi(null, t, i, a), o && s && e.index(i) == n.index(i) ? (Pf(o, s), nr(rr(o, Vf(t, e, n, r, i + 1)), a)) : (o && nr(rr(o,
|
|
6857
|
+
return yi(null, t, i, a), o && s && e.index(i) == n.index(i) ? (Pf(o, s), nr(rr(o, Vf(t, e, n, r, i + 1)), a)) : (o && nr(rr(o, Vo(t, e, i + 1)), a), yi(e, n, i, a), s && nr(rr(s, Vo(n, r, i + 1)), a)), yi(r, null, i, a), new q(a);
|
|
6842
6858
|
}
|
|
6843
|
-
function
|
|
6859
|
+
function Vo(t, e, n) {
|
|
6844
6860
|
let r = [];
|
|
6845
6861
|
if (yi(null, t, n, r), t.depth > n) {
|
|
6846
6862
|
let i = Sa(t, e, n + 1);
|
|
6847
|
-
nr(rr(i,
|
|
6863
|
+
nr(rr(i, Vo(t, e, n + 1)), r);
|
|
6848
6864
|
}
|
|
6849
6865
|
return yi(e, null, n, r), new q(r);
|
|
6850
6866
|
}
|
|
@@ -7042,7 +7058,7 @@ class Ai {
|
|
|
7042
7058
|
return e.blockRange(this);
|
|
7043
7059
|
for (let r = this.depth - (this.parent.inlineContent || this.pos == e.pos ? 1 : 0); r >= 0; r--)
|
|
7044
7060
|
if (e.pos <= this.end(r) && (!n || n(this.node(r))))
|
|
7045
|
-
return new
|
|
7061
|
+
return new Ro(this, e, r);
|
|
7046
7062
|
return null;
|
|
7047
7063
|
}
|
|
7048
7064
|
/**
|
|
@@ -7110,7 +7126,7 @@ class PS {
|
|
|
7110
7126
|
}
|
|
7111
7127
|
}
|
|
7112
7128
|
const VS = 12, _c = /* @__PURE__ */ new WeakMap();
|
|
7113
|
-
class
|
|
7129
|
+
class Ro {
|
|
7114
7130
|
/**
|
|
7115
7131
|
Construct a node range. `$from` and `$to` should point into the
|
|
7116
7132
|
same node until at least the given `depth`, since a node range
|
|
@@ -7269,7 +7285,7 @@ let $n = class Ca {
|
|
|
7269
7285
|
attributes, and marks.
|
|
7270
7286
|
*/
|
|
7271
7287
|
hasMarkup(e, n, r) {
|
|
7272
|
-
return this.type == e &&
|
|
7288
|
+
return this.type == e && Bo(this.attrs, n || e.defaultAttrs || RS) && Ne.sameSet(this.marks, r || Ne.none);
|
|
7273
7289
|
}
|
|
7274
7290
|
/**
|
|
7275
7291
|
Create a new node with the same markup as this node, containing
|
|
@@ -7521,7 +7537,7 @@ let $n = class Ca {
|
|
|
7521
7537
|
}
|
|
7522
7538
|
};
|
|
7523
7539
|
$n.prototype.text = void 0;
|
|
7524
|
-
class
|
|
7540
|
+
class _o extends $n {
|
|
7525
7541
|
/**
|
|
7526
7542
|
@internal
|
|
7527
7543
|
*/
|
|
@@ -7543,10 +7559,10 @@ class Ro extends $n {
|
|
|
7543
7559
|
return this.text.length;
|
|
7544
7560
|
}
|
|
7545
7561
|
mark(e) {
|
|
7546
|
-
return e == this.marks ? this : new
|
|
7562
|
+
return e == this.marks ? this : new _o(this.type, this.attrs, this.text, e);
|
|
7547
7563
|
}
|
|
7548
7564
|
withText(e) {
|
|
7549
|
-
return e == this.text ? this : new
|
|
7565
|
+
return e == this.text ? this : new _o(this.type, this.attrs, e, this.marks);
|
|
7550
7566
|
}
|
|
7551
7567
|
cut(e = 0, n = this.text.length) {
|
|
7552
7568
|
return e == 0 && n == this.text.length ? this : this.withText(this.text.slice(e, n));
|
|
@@ -8143,7 +8159,7 @@ class JS {
|
|
|
8143
8159
|
return !this.hasDefault;
|
|
8144
8160
|
}
|
|
8145
8161
|
}
|
|
8146
|
-
class
|
|
8162
|
+
class ls {
|
|
8147
8163
|
/**
|
|
8148
8164
|
@internal
|
|
8149
8165
|
*/
|
|
@@ -8165,7 +8181,7 @@ class as {
|
|
|
8165
8181
|
*/
|
|
8166
8182
|
static compile(e, n) {
|
|
8167
8183
|
let r = /* @__PURE__ */ Object.create(null), i = 0;
|
|
8168
|
-
return e.forEach((o, s) => r[o] = new
|
|
8184
|
+
return e.forEach((o, s) => r[o] = new ls(o, i++, n, s)), r;
|
|
8169
8185
|
}
|
|
8170
8186
|
/**
|
|
8171
8187
|
When there is a mark of this type in the given set, a new set
|
|
@@ -8207,7 +8223,7 @@ class qf {
|
|
|
8207
8223
|
let n = this.spec = {};
|
|
8208
8224
|
for (let i in e)
|
|
8209
8225
|
n[i] = e[i];
|
|
8210
|
-
n.nodes = Ze.from(e.nodes), n.marks = Ze.from(e.marks || {}), this.nodes = Fc.compile(this.spec.nodes, this), this.marks =
|
|
8226
|
+
n.nodes = Ze.from(e.nodes), n.marks = Ze.from(e.marks || {}), this.nodes = Fc.compile(this.spec.nodes, this), this.marks = ls.compile(this.spec.marks, this);
|
|
8211
8227
|
let r = /* @__PURE__ */ Object.create(null);
|
|
8212
8228
|
for (let i in this.nodes) {
|
|
8213
8229
|
if (i in this.marks)
|
|
@@ -8249,7 +8265,7 @@ class qf {
|
|
|
8249
8265
|
*/
|
|
8250
8266
|
text(e, n) {
|
|
8251
8267
|
let r = this.nodes.text;
|
|
8252
|
-
return new
|
|
8268
|
+
return new _o(r, r.defaultAttrs, e, Ne.setFrom(n));
|
|
8253
8269
|
}
|
|
8254
8270
|
/**
|
|
8255
8271
|
Create a mark with the given type and attributes.
|
|
@@ -8817,7 +8833,7 @@ class gr {
|
|
|
8817
8833
|
nodes.
|
|
8818
8834
|
*/
|
|
8819
8835
|
serializeFragment(e, n = {}, r) {
|
|
8820
|
-
r || (r =
|
|
8836
|
+
r || (r = Ns(n).createDocumentFragment());
|
|
8821
8837
|
let i = r, o = [];
|
|
8822
8838
|
return e.forEach((s) => {
|
|
8823
8839
|
if (o.length || s.marks.length) {
|
|
@@ -8846,7 +8862,7 @@ class gr {
|
|
|
8846
8862
|
@internal
|
|
8847
8863
|
*/
|
|
8848
8864
|
serializeNodeInner(e, n) {
|
|
8849
|
-
let { dom: r, contentDOM: i } = bo(
|
|
8865
|
+
let { dom: r, contentDOM: i } = bo(Ns(n), this.nodes[e.type.name](e), null, e.attrs);
|
|
8850
8866
|
if (i) {
|
|
8851
8867
|
if (e.isLeaf)
|
|
8852
8868
|
throw new RangeError("Content hole not allowed in a leaf node spec");
|
|
@@ -8874,7 +8890,7 @@ class gr {
|
|
|
8874
8890
|
*/
|
|
8875
8891
|
serializeMark(e, n, r = {}) {
|
|
8876
8892
|
let i = this.marks[e.type.name];
|
|
8877
|
-
return i && bo(
|
|
8893
|
+
return i && bo(Ns(r), i(e, n), null, e.attrs);
|
|
8878
8894
|
}
|
|
8879
8895
|
static renderSpec(e, n, r = null, i) {
|
|
8880
8896
|
return bo(e, n, r, i);
|
|
@@ -8909,7 +8925,7 @@ function Yc(t) {
|
|
|
8909
8925
|
}
|
|
8910
8926
|
return e;
|
|
8911
8927
|
}
|
|
8912
|
-
function
|
|
8928
|
+
function Ns(t) {
|
|
8913
8929
|
return t.document || window.document;
|
|
8914
8930
|
}
|
|
8915
8931
|
const Jc = /* @__PURE__ */ new WeakMap();
|
|
@@ -9224,7 +9240,7 @@ class Lr {
|
|
|
9224
9240
|
return r ? e : new Ma(e, i, null);
|
|
9225
9241
|
}
|
|
9226
9242
|
}
|
|
9227
|
-
const
|
|
9243
|
+
const Ls = /* @__PURE__ */ Object.create(null);
|
|
9228
9244
|
class it {
|
|
9229
9245
|
/**
|
|
9230
9246
|
Get the step map that represents the changes made by this step,
|
|
@@ -9249,7 +9265,7 @@ class it {
|
|
|
9249
9265
|
static fromJSON(e, n) {
|
|
9250
9266
|
if (!n || !n.stepType)
|
|
9251
9267
|
throw new RangeError("Invalid input for Step.fromJSON");
|
|
9252
|
-
let r =
|
|
9268
|
+
let r = Ls[n.stepType];
|
|
9253
9269
|
if (!r)
|
|
9254
9270
|
throw new RangeError(`No step type ${n.stepType} defined`);
|
|
9255
9271
|
return r.fromJSON(e, n);
|
|
@@ -9261,9 +9277,9 @@ class it {
|
|
|
9261
9277
|
that's unlikely to clash with steps from other modules.
|
|
9262
9278
|
*/
|
|
9263
9279
|
static jsonID(e, n) {
|
|
9264
|
-
if (e in
|
|
9280
|
+
if (e in Ls)
|
|
9265
9281
|
throw new RangeError("Duplicate use of step JSON ID " + e);
|
|
9266
|
-
return
|
|
9282
|
+
return Ls[e] = n, n.prototype.jsonID = e, n;
|
|
9267
9283
|
}
|
|
9268
9284
|
}
|
|
9269
9285
|
class Fe {
|
|
@@ -9294,7 +9310,7 @@ class Fe {
|
|
|
9294
9310
|
try {
|
|
9295
9311
|
return Fe.ok(e.replace(n, r, i));
|
|
9296
9312
|
} catch (o) {
|
|
9297
|
-
if (o instanceof
|
|
9313
|
+
if (o instanceof Po)
|
|
9298
9314
|
return Fe.fail(o.message);
|
|
9299
9315
|
throw o;
|
|
9300
9316
|
}
|
|
@@ -9610,7 +9626,7 @@ function sC(t, e, n, r) {
|
|
|
9610
9626
|
return;
|
|
9611
9627
|
o++;
|
|
9612
9628
|
let l = null;
|
|
9613
|
-
if (r instanceof
|
|
9629
|
+
if (r instanceof ls) {
|
|
9614
9630
|
let c = s.marks, u;
|
|
9615
9631
|
for (; u = r.isInSet(c); )
|
|
9616
9632
|
(l || (l = [])).push(u), c = u.removeFromSet(c);
|
|
@@ -9809,7 +9825,7 @@ function gC(t, e) {
|
|
|
9809
9825
|
function nh(t, e) {
|
|
9810
9826
|
return !!(t && e && !t.isLeaf && gC(t, e));
|
|
9811
9827
|
}
|
|
9812
|
-
function
|
|
9828
|
+
function cs(t, e, n = -1) {
|
|
9813
9829
|
let r = t.resolve(e);
|
|
9814
9830
|
for (let i = r.depth; ; i--) {
|
|
9815
9831
|
let o, s, a = r.index(i);
|
|
@@ -9882,7 +9898,7 @@ function rh(t, e, n) {
|
|
|
9882
9898
|
}
|
|
9883
9899
|
return null;
|
|
9884
9900
|
}
|
|
9885
|
-
function
|
|
9901
|
+
function us(t, e, n = e, r = Z.empty) {
|
|
9886
9902
|
if (e == n && !r.size)
|
|
9887
9903
|
return null;
|
|
9888
9904
|
let i = t.resolve(e), o = t.resolve(n);
|
|
@@ -9937,7 +9953,7 @@ class bC {
|
|
|
9937
9953
|
for (let n = 1; n <= 2; n++)
|
|
9938
9954
|
for (let r = n == 1 ? e : this.unplaced.openStart; r >= 0; r--) {
|
|
9939
9955
|
let i, o = null;
|
|
9940
|
-
r ? (o =
|
|
9956
|
+
r ? (o = Is(this.unplaced.content, r - 1).firstChild, i = o.content) : i = this.unplaced.content;
|
|
9941
9957
|
let s = i.firstChild;
|
|
9942
9958
|
for (let a = this.depth; a >= 0; a--) {
|
|
9943
9959
|
let { type: l, match: c } = this.frontier[a], u, d = null;
|
|
@@ -9951,11 +9967,11 @@ class bC {
|
|
|
9951
9967
|
}
|
|
9952
9968
|
}
|
|
9953
9969
|
openMore() {
|
|
9954
|
-
let { content: e, openStart: n, openEnd: r } = this.unplaced, i =
|
|
9970
|
+
let { content: e, openStart: n, openEnd: r } = this.unplaced, i = Is(e, n);
|
|
9955
9971
|
return !i.childCount || i.firstChild.isLeaf ? !1 : (this.unplaced = new Z(e, n + 1, Math.max(r, i.size + n >= e.size - r ? n + 1 : 0)), !0);
|
|
9956
9972
|
}
|
|
9957
9973
|
dropNode() {
|
|
9958
|
-
let { content: e, openStart: n, openEnd: r } = this.unplaced, i =
|
|
9974
|
+
let { content: e, openStart: n, openEnd: r } = this.unplaced, i = Is(e, n);
|
|
9959
9975
|
if (i.childCount <= 1 && n > 0) {
|
|
9960
9976
|
let o = e.size - n <= n + i.size;
|
|
9961
9977
|
this.unplaced = new Z(fi(e, n - 1, 1), n - 1, o ? n - 1 : r);
|
|
@@ -9996,7 +10012,7 @@ class bC {
|
|
|
9996
10012
|
if (!this.$to.parent.isTextblock)
|
|
9997
10013
|
return -1;
|
|
9998
10014
|
let e = this.frontier[this.depth], n;
|
|
9999
|
-
if (!e.type.isTextblock || !
|
|
10015
|
+
if (!e.type.isTextblock || !Bs(this.$to, this.$to.depth, e.type, e.match, !1) || this.$to.depth == this.depth && (n = this.findCloseLevel(this.$to)) && n.depth == this.depth)
|
|
10000
10016
|
return -1;
|
|
10001
10017
|
let { depth: r } = this.$to, i = this.$to.after(r);
|
|
10002
10018
|
for (; r > 1 && i == this.$to.end(--r); )
|
|
@@ -10005,10 +10021,10 @@ class bC {
|
|
|
10005
10021
|
}
|
|
10006
10022
|
findCloseLevel(e) {
|
|
10007
10023
|
e: for (let n = Math.min(this.depth, e.depth); n >= 0; n--) {
|
|
10008
|
-
let { match: r, type: i } = this.frontier[n], o = n < e.depth && e.end(n + 1) == e.pos + (e.depth - (n + 1)), s =
|
|
10024
|
+
let { match: r, type: i } = this.frontier[n], o = n < e.depth && e.end(n + 1) == e.pos + (e.depth - (n + 1)), s = Bs(e, n, i, r, o);
|
|
10009
10025
|
if (s) {
|
|
10010
10026
|
for (let a = n - 1; a >= 0; a--) {
|
|
10011
|
-
let { match: l, type: c } = this.frontier[a], u =
|
|
10027
|
+
let { match: l, type: c } = this.frontier[a], u = Bs(e, a, c, l, !0);
|
|
10012
10028
|
if (!u || u.childCount)
|
|
10013
10029
|
continue e;
|
|
10014
10030
|
}
|
|
@@ -10044,7 +10060,7 @@ function fi(t, e, n) {
|
|
|
10044
10060
|
function hi(t, e, n) {
|
|
10045
10061
|
return e == 0 ? t.append(n) : t.replaceChild(t.childCount - 1, t.lastChild.copy(hi(t.lastChild.content, e - 1, n)));
|
|
10046
10062
|
}
|
|
10047
|
-
function
|
|
10063
|
+
function Is(t, e) {
|
|
10048
10064
|
for (let n = 0; n < e; n++)
|
|
10049
10065
|
t = t.firstChild.content;
|
|
10050
10066
|
return t;
|
|
@@ -10055,7 +10071,7 @@ function oh(t, e, n) {
|
|
|
10055
10071
|
let r = t.content;
|
|
10056
10072
|
return e > 1 && (r = r.replaceChild(0, oh(r.firstChild, e - 1, r.childCount == 1 ? n - 1 : 0))), e > 0 && (r = t.type.contentMatch.fillBefore(r).append(r), n <= 0 && (r = r.append(t.type.contentMatch.matchFragment(r).fillBefore(q.empty, !0)))), t.copy(r);
|
|
10057
10073
|
}
|
|
10058
|
-
function
|
|
10074
|
+
function Bs(t, e, n, r, i) {
|
|
10059
10075
|
let o = t.node(e), s = i ? t.indexAfter(e) : t.index(e);
|
|
10060
10076
|
if (s == o.childCount && !n.compatibleContent(o.type))
|
|
10061
10077
|
return null;
|
|
@@ -10290,7 +10306,7 @@ class OC {
|
|
|
10290
10306
|
given `slice`.
|
|
10291
10307
|
*/
|
|
10292
10308
|
replace(e, n = e, r = Z.empty) {
|
|
10293
|
-
let i =
|
|
10309
|
+
let i = us(this.doc, e, n, r);
|
|
10294
10310
|
return i && this.step(i), this;
|
|
10295
10311
|
}
|
|
10296
10312
|
/**
|
|
@@ -10461,7 +10477,7 @@ class OC {
|
|
|
10461
10477
|
return fl(this, e, n, r), this;
|
|
10462
10478
|
}
|
|
10463
10479
|
}
|
|
10464
|
-
const
|
|
10480
|
+
const Ps = /* @__PURE__ */ Object.create(null);
|
|
10465
10481
|
class ke {
|
|
10466
10482
|
/**
|
|
10467
10483
|
Initialize a selection with the head and anchor and ranges. If no
|
|
@@ -10597,7 +10613,7 @@ class ke {
|
|
|
10597
10613
|
static fromJSON(e, n) {
|
|
10598
10614
|
if (!n || !n.type)
|
|
10599
10615
|
throw new RangeError("Invalid input for Selection.fromJSON");
|
|
10600
|
-
let r =
|
|
10616
|
+
let r = Ps[n.type];
|
|
10601
10617
|
if (!r)
|
|
10602
10618
|
throw new RangeError(`No selection type ${n.type} defined`);
|
|
10603
10619
|
return r.fromJSON(e, n);
|
|
@@ -10609,9 +10625,9 @@ class ke {
|
|
|
10609
10625
|
clash with classes from other modules.
|
|
10610
10626
|
*/
|
|
10611
10627
|
static jsonID(e, n) {
|
|
10612
|
-
if (e in
|
|
10628
|
+
if (e in Ps)
|
|
10613
10629
|
throw new RangeError("Duplicate use of selection JSON ID " + e);
|
|
10614
|
-
return
|
|
10630
|
+
return Ps[e] = n, n.prototype.jsonID = e, n;
|
|
10615
10631
|
}
|
|
10616
10632
|
/**
|
|
10617
10633
|
Get a [bookmark](https://prosemirror.net/docs/ref/#state.SelectionBookmark) for this selection,
|
|
@@ -10670,7 +10686,7 @@ class ye extends ke {
|
|
|
10670
10686
|
return e instanceof ye && e.anchor == this.anchor && e.head == this.head;
|
|
10671
10687
|
}
|
|
10672
10688
|
getBookmark() {
|
|
10673
|
-
return new
|
|
10689
|
+
return new ds(this.anchor, this.head);
|
|
10674
10690
|
}
|
|
10675
10691
|
toJSON() {
|
|
10676
10692
|
return { type: "text", anchor: this.anchor, head: this.head };
|
|
@@ -10711,12 +10727,12 @@ class ye extends ke {
|
|
|
10711
10727
|
}
|
|
10712
10728
|
}
|
|
10713
10729
|
ke.jsonID("text", ye);
|
|
10714
|
-
class
|
|
10730
|
+
class ds {
|
|
10715
10731
|
constructor(e, n) {
|
|
10716
10732
|
this.anchor = e, this.head = n;
|
|
10717
10733
|
}
|
|
10718
10734
|
map(e) {
|
|
10719
|
-
return new
|
|
10735
|
+
return new ds(e.map(this.anchor), e.map(this.head));
|
|
10720
10736
|
}
|
|
10721
10737
|
resolve(e) {
|
|
10722
10738
|
return ye.between(e.resolve(this.anchor), e.resolve(this.head));
|
|
@@ -10777,7 +10793,7 @@ class pl {
|
|
|
10777
10793
|
}
|
|
10778
10794
|
map(e) {
|
|
10779
10795
|
let { deleted: n, pos: r } = e.mapResult(this.anchor);
|
|
10780
|
-
return n ? new
|
|
10796
|
+
return n ? new ds(r, r) : new pl(r);
|
|
10781
10797
|
}
|
|
10782
10798
|
resolve(e) {
|
|
10783
10799
|
let n = e.resolve(this.anchor), r = n.nodeAfter;
|
|
@@ -11050,7 +11066,7 @@ const AC = [
|
|
|
11050
11066
|
}
|
|
11051
11067
|
})
|
|
11052
11068
|
];
|
|
11053
|
-
class
|
|
11069
|
+
class Vs {
|
|
11054
11070
|
constructor(e, n) {
|
|
11055
11071
|
this.schema = e, this.plugins = [], this.pluginsByKey = /* @__PURE__ */ Object.create(null), this.fields = AC.slice(), n && n.forEach((r) => {
|
|
11056
11072
|
if (this.pluginsByKey[r.key])
|
|
@@ -11151,7 +11167,7 @@ class Ar {
|
|
|
11151
11167
|
Create a new state.
|
|
11152
11168
|
*/
|
|
11153
11169
|
static create(e) {
|
|
11154
|
-
let n = new
|
|
11170
|
+
let n = new Vs(e.doc ? e.doc.type.schema : e.schema, e.plugins), r = new Ar(n);
|
|
11155
11171
|
for (let i = 0; i < n.fields.length; i++)
|
|
11156
11172
|
r[n.fields[i].name] = n.fields[i].init(e, r);
|
|
11157
11173
|
return r;
|
|
@@ -11165,7 +11181,7 @@ class Ar {
|
|
|
11165
11181
|
configuration object..
|
|
11166
11182
|
*/
|
|
11167
11183
|
reconfigure(e) {
|
|
11168
|
-
let n = new
|
|
11184
|
+
let n = new Vs(this.schema, e.plugins), r = n.fields, i = new Ar(n);
|
|
11169
11185
|
for (let o = 0; o < r.length; o++) {
|
|
11170
11186
|
let s = r[o].name;
|
|
11171
11187
|
i[s] = this.hasOwnProperty(s) ? this[s] : r[o].init(e, i);
|
|
@@ -11202,7 +11218,7 @@ class Ar {
|
|
|
11202
11218
|
throw new RangeError("Invalid input for EditorState.fromJSON");
|
|
11203
11219
|
if (!e.schema)
|
|
11204
11220
|
throw new RangeError("Required config field 'schema' missing");
|
|
11205
|
-
let i = new
|
|
11221
|
+
let i = new Vs(e.schema, e.plugins), o = new Ar(i);
|
|
11206
11222
|
return i.fields.forEach((s) => {
|
|
11207
11223
|
if (s.name == "doc")
|
|
11208
11224
|
o.doc = $n.fromJSON(e.schema, n.doc);
|
|
@@ -11245,9 +11261,9 @@ class et {
|
|
|
11245
11261
|
return e[this.key];
|
|
11246
11262
|
}
|
|
11247
11263
|
}
|
|
11248
|
-
const
|
|
11264
|
+
const Rs = /* @__PURE__ */ Object.create(null);
|
|
11249
11265
|
function ch(t) {
|
|
11250
|
-
return t in
|
|
11266
|
+
return t in Rs ? t + "$" + ++Rs[t] : (Rs[t] = 0, t + "$");
|
|
11251
11267
|
}
|
|
11252
11268
|
class Ct {
|
|
11253
11269
|
/**
|
|
@@ -11351,7 +11367,7 @@ function Xi(t) {
|
|
|
11351
11367
|
;
|
|
11352
11368
|
return e && e.node && e.node.isBlock && (e.dom == t || e.contentDOM == t);
|
|
11353
11369
|
}
|
|
11354
|
-
const
|
|
11370
|
+
const fs = function(t) {
|
|
11355
11371
|
return t.focusNode && ur(t.focusNode, t.focusOffset, t.anchorNode, t.anchorOffset);
|
|
11356
11372
|
};
|
|
11357
11373
|
function Gn(t, e) {
|
|
@@ -11612,14 +11628,14 @@ function gh(t, e, n) {
|
|
|
11612
11628
|
if (o == null && i && (n < 0 || i == At(r))) {
|
|
11613
11629
|
let l = r.childNodes[i - 1];
|
|
11614
11630
|
if (l.nodeType == 1)
|
|
11615
|
-
return
|
|
11631
|
+
return _s(l.getBoundingClientRect(), !1);
|
|
11616
11632
|
}
|
|
11617
11633
|
if (o == null && i < At(r)) {
|
|
11618
11634
|
let l = r.childNodes[i];
|
|
11619
11635
|
if (l.nodeType == 1)
|
|
11620
|
-
return
|
|
11636
|
+
return _s(l.getBoundingClientRect(), !0);
|
|
11621
11637
|
}
|
|
11622
|
-
return
|
|
11638
|
+
return _s(r.getBoundingClientRect(), n >= 0);
|
|
11623
11639
|
}
|
|
11624
11640
|
if (o == null && i && (n < 0 || i == At(r))) {
|
|
11625
11641
|
let l = r.childNodes[i - 1], c = l.nodeType == 3 ? an(l, At(l) - (s ? 0 : 1)) : l.nodeType == 1 && (l.nodeName != "BR" || !l.nextSibling) ? l : null;
|
|
@@ -11642,7 +11658,7 @@ function ci(t, e) {
|
|
|
11642
11658
|
let n = e ? t.left : t.right;
|
|
11643
11659
|
return { top: t.top, bottom: t.bottom, left: n, right: n };
|
|
11644
11660
|
}
|
|
11645
|
-
function
|
|
11661
|
+
function _s(t, e) {
|
|
11646
11662
|
if (t.height == 0)
|
|
11647
11663
|
return t;
|
|
11648
11664
|
let n = e ? t.top : t.bottom;
|
|
@@ -12173,7 +12189,7 @@ class Dn extends eo {
|
|
|
12173
12189
|
} else u || ({ dom: u, contentDOM: d } = gr.renderSpec(document, n.type.spec.toDOM(n), null, n.attrs));
|
|
12174
12190
|
!d && !n.isText && u.nodeName != "BR" && (u.hasAttribute("contenteditable") || (u.contentEditable = "false"), n.type.spec.draggable && (u.draggable = !0));
|
|
12175
12191
|
let f = u;
|
|
12176
|
-
return u = kh(u, r, n), c ? l = new tO(e, n, r, i, u, d || null, f, c, o, s + 1) : n.isText ? new
|
|
12192
|
+
return u = kh(u, r, n), c ? l = new tO(e, n, r, i, u, d || null, f, c, o, s + 1) : n.isText ? new hs(e, n, r, i, u, f, o) : new Dn(e, n, r, i, u, d || null, f, o, s + 1);
|
|
12177
12193
|
}
|
|
12178
12194
|
parseRule() {
|
|
12179
12195
|
if (this.node.type.spec.reparseInView)
|
|
@@ -12196,7 +12212,7 @@ class Dn extends eo {
|
|
|
12196
12212
|
return e;
|
|
12197
12213
|
}
|
|
12198
12214
|
matchesNode(e, n, r) {
|
|
12199
|
-
return this.dirty == Dt && e.eq(this.node) &&
|
|
12215
|
+
return this.dirty == Dt && e.eq(this.node) && jo(n, this.outerDeco) && r.eq(this.innerDeco);
|
|
12200
12216
|
}
|
|
12201
12217
|
get size() {
|
|
12202
12218
|
return this.node.nodeSize;
|
|
@@ -12254,7 +12270,7 @@ class Dn extends eo {
|
|
|
12254
12270
|
this.updateOuterDeco(n), this.node = e, this.innerDeco = r, this.contentDOM && this.updateChildren(i, this.posAtStart), this.dirty = Dt;
|
|
12255
12271
|
}
|
|
12256
12272
|
updateOuterDeco(e) {
|
|
12257
|
-
if (
|
|
12273
|
+
if (jo(e, this.outerDeco))
|
|
12258
12274
|
return;
|
|
12259
12275
|
let n = this.nodeDOM.nodeType != 1, r = this.dom;
|
|
12260
12276
|
this.dom = wh(this.dom, this.nodeDOM, Na(this.outerDeco, this.node, n), Na(e, this.node, n)), this.dom != r && (r.pmViewDesc = void 0, this.dom.pmViewDesc = this), this.outerDeco = e;
|
|
@@ -12276,7 +12292,7 @@ function hu(t, e, n, r, i) {
|
|
|
12276
12292
|
let o = new Dn(void 0, t, e, n, r, r, r, i, 0);
|
|
12277
12293
|
return o.contentDOM && o.updateChildren(i, 0), o;
|
|
12278
12294
|
}
|
|
12279
|
-
class
|
|
12295
|
+
class hs extends Dn {
|
|
12280
12296
|
constructor(e, n, r, i, o, s, a) {
|
|
12281
12297
|
super(e, n, r, i, o, null, s, a, 0);
|
|
12282
12298
|
}
|
|
@@ -12307,7 +12323,7 @@ class fs extends Dn {
|
|
|
12307
12323
|
}
|
|
12308
12324
|
slice(e, n, r) {
|
|
12309
12325
|
let i = this.node.cut(e, n), o = document.createTextNode(i.text);
|
|
12310
|
-
return new
|
|
12326
|
+
return new hs(this.parent, i, this.outerDeco, this.innerDeco, o, o, r);
|
|
12311
12327
|
}
|
|
12312
12328
|
markDirty(e, n) {
|
|
12313
12329
|
super.markDirty(e, n), this.dom != this.nodeDOM && (e == 0 || n == this.nodeDOM.nodeValue.length) && (this.dirty = Xt);
|
|
@@ -12446,7 +12462,7 @@ function nO(t, e, n) {
|
|
|
12446
12462
|
function kh(t, e, n) {
|
|
12447
12463
|
return wh(t, t, tr, Na(e, n, t.nodeType != 1));
|
|
12448
12464
|
}
|
|
12449
|
-
function
|
|
12465
|
+
function jo(t, e) {
|
|
12450
12466
|
if (t.length != e.length)
|
|
12451
12467
|
return !1;
|
|
12452
12468
|
for (let n = 0; n < t.length; n++)
|
|
@@ -12548,7 +12564,7 @@ class rO {
|
|
|
12548
12564
|
let c = this.preMatch.matched.get(l);
|
|
12549
12565
|
if (c != null && c != o)
|
|
12550
12566
|
return !1;
|
|
12551
|
-
let u = l.dom, d, f = this.isLocked(u) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty != Xt &&
|
|
12567
|
+
let u = l.dom, d, f = this.isLocked(u) && !(e.isText && l.node && l.node.isText && l.nodeDOM.nodeValue == e.text && l.dirty != Xt && jo(n, l.outerDeco));
|
|
12552
12568
|
if (!f && l.update(e, n, r, i))
|
|
12553
12569
|
return this.destroyBetween(this.index, a), l.dom != u && (this.changed = !0), this.index++, !0;
|
|
12554
12570
|
if (!f && (d = this.recreateWrapper(l, e, n, r, i, s)))
|
|
@@ -12561,7 +12577,7 @@ class rO {
|
|
|
12561
12577
|
// When a node with content is replaced by a different node with
|
|
12562
12578
|
// identical content, move over its children.
|
|
12563
12579
|
recreateWrapper(e, n, r, i, o, s) {
|
|
12564
|
-
if (e.dirty || n.isAtom || !e.children.length || !e.node.content.eq(n.content) || !
|
|
12580
|
+
if (e.dirty || n.isAtom || !e.children.length || !e.node.content.eq(n.content) || !jo(r, e.outerDeco) || !i.eq(e.innerDeco))
|
|
12565
12581
|
return null;
|
|
12566
12582
|
let a = Dn.create(this.top, n, r, i, o, s);
|
|
12567
12583
|
if (a.contentDOM) {
|
|
@@ -12592,7 +12608,7 @@ class rO {
|
|
|
12592
12608
|
for (; e instanceof dr; )
|
|
12593
12609
|
n = e, e = n.children[n.children.length - 1];
|
|
12594
12610
|
(!e || // Empty textblock
|
|
12595
|
-
!(e instanceof
|
|
12611
|
+
!(e instanceof hs) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((at || rt) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
|
|
12596
12612
|
}
|
|
12597
12613
|
addHackNode(e, n) {
|
|
12598
12614
|
if (n == this.top && this.index < n.children.length && n.children[this.index].matchesHack(e))
|
|
@@ -12732,7 +12748,7 @@ function gl(t, e = null) {
|
|
|
12732
12748
|
if (s < 0)
|
|
12733
12749
|
return null;
|
|
12734
12750
|
let a = r.resolve(s), l, c;
|
|
12735
|
-
if (
|
|
12751
|
+
if (fs(n)) {
|
|
12736
12752
|
for (l = s; i && !i.node; )
|
|
12737
12753
|
i = i.parent;
|
|
12738
12754
|
let d = i.node;
|
|
@@ -12788,15 +12804,15 @@ const mu = at || rt && dh < 63;
|
|
|
12788
12804
|
function gu(t, e) {
|
|
12789
12805
|
let { node: n, offset: r } = t.docView.domFromPos(e, 0), i = r < n.childNodes.length ? n.childNodes[r] : null, o = r ? n.childNodes[r - 1] : null;
|
|
12790
12806
|
if (at && i && i.contentEditable == "false")
|
|
12791
|
-
return
|
|
12807
|
+
return js(i);
|
|
12792
12808
|
if ((!i || i.contentEditable == "false") && (!o || o.contentEditable == "false")) {
|
|
12793
12809
|
if (i)
|
|
12794
|
-
return
|
|
12810
|
+
return js(i);
|
|
12795
12811
|
if (o)
|
|
12796
|
-
return
|
|
12812
|
+
return js(o);
|
|
12797
12813
|
}
|
|
12798
12814
|
}
|
|
12799
|
-
function
|
|
12815
|
+
function js(t) {
|
|
12800
12816
|
return t.contentEditable = "true", at && t.draggable && (t.draggable = !1, t.wasDraggable = !0), t;
|
|
12801
12817
|
}
|
|
12802
12818
|
function yu(t) {
|
|
@@ -12886,7 +12902,7 @@ function xu(t, e, n) {
|
|
|
12886
12902
|
}
|
|
12887
12903
|
}
|
|
12888
12904
|
}
|
|
12889
|
-
function
|
|
12905
|
+
function zo(t) {
|
|
12890
12906
|
return t.nodeType == 3 ? t.nodeValue.length : t.childNodes.length;
|
|
12891
12907
|
}
|
|
12892
12908
|
function bi(t, e) {
|
|
@@ -12901,7 +12917,7 @@ function fO(t) {
|
|
|
12901
12917
|
if (!n)
|
|
12902
12918
|
return;
|
|
12903
12919
|
let i, o, s = !1;
|
|
12904
|
-
for (jt && n.nodeType == 1 && r <
|
|
12920
|
+
for (jt && n.nodeType == 1 && r < zo(n) && bi(n.childNodes[r], -1) && (s = !0); ; )
|
|
12905
12921
|
if (r > 0) {
|
|
12906
12922
|
if (n.nodeType != 1)
|
|
12907
12923
|
break;
|
|
@@ -12922,7 +12938,7 @@ function fO(t) {
|
|
|
12922
12938
|
for (; a && bi(a, -1); )
|
|
12923
12939
|
i = n.parentNode, o = Xe(a), a = a.previousSibling;
|
|
12924
12940
|
if (a)
|
|
12925
|
-
n = a, r =
|
|
12941
|
+
n = a, r = zo(n);
|
|
12926
12942
|
else {
|
|
12927
12943
|
if (n = n.parentNode, n == t.dom)
|
|
12928
12944
|
break;
|
|
@@ -12936,7 +12952,7 @@ function hO(t) {
|
|
|
12936
12952
|
let e = t.domSelectionRange(), n = e.focusNode, r = e.focusOffset;
|
|
12937
12953
|
if (!n)
|
|
12938
12954
|
return;
|
|
12939
|
-
let i =
|
|
12955
|
+
let i = zo(n), o, s;
|
|
12940
12956
|
for (; ; )
|
|
12941
12957
|
if (r < i) {
|
|
12942
12958
|
if (n.nodeType != 1)
|
|
@@ -12954,7 +12970,7 @@ function hO(t) {
|
|
|
12954
12970
|
for (; a && bi(a, 1); )
|
|
12955
12971
|
o = a.parentNode, s = Xe(a) + 1, a = a.nextSibling;
|
|
12956
12972
|
if (a)
|
|
12957
|
-
n = a, r = 0, i =
|
|
12973
|
+
n = a, r = 0, i = zo(n);
|
|
12958
12974
|
else {
|
|
12959
12975
|
if (n = n.parentNode, n == t.dom)
|
|
12960
12976
|
break;
|
|
@@ -13000,7 +13016,7 @@ function Ba(t, e, n) {
|
|
|
13000
13016
|
let r = t.domSelection();
|
|
13001
13017
|
if (!r)
|
|
13002
13018
|
return;
|
|
13003
|
-
if (
|
|
13019
|
+
if (fs(r)) {
|
|
13004
13020
|
let o = document.createRange();
|
|
13005
13021
|
o.setEnd(e, n), o.setStart(e, n), r.removeAllRanges(), r.addRange(o);
|
|
13006
13022
|
} else r.extend && r.extend(e, n);
|
|
@@ -13250,10 +13266,10 @@ let Mu = null;
|
|
|
13250
13266
|
function Nh() {
|
|
13251
13267
|
return Mu || (Mu = document.implementation.createHTMLDocument("title"));
|
|
13252
13268
|
}
|
|
13253
|
-
let
|
|
13269
|
+
let zs = null;
|
|
13254
13270
|
function wO(t) {
|
|
13255
13271
|
let e = window.trustedTypes;
|
|
13256
|
-
return e ? (
|
|
13272
|
+
return e ? (zs || (zs = e.createPolicy("ProseMirrorClipboard", { createHTML: (n) => n })), zs.createHTML(t)) : t;
|
|
13257
13273
|
}
|
|
13258
13274
|
function kO(t) {
|
|
13259
13275
|
let e = /^(\s*<meta [^>]*>)*/.exec(t);
|
|
@@ -13365,7 +13381,7 @@ ct.keypress = (t, e) => {
|
|
|
13365
13381
|
!/[\r\n]/.test(i) && !t.someProp("handleTextInput", (o) => o(t, r.$from.pos, r.$to.pos, i)) && t.dispatch(t.state.tr.insertText(i).scrollIntoView()), n.preventDefault();
|
|
13366
13382
|
}
|
|
13367
13383
|
};
|
|
13368
|
-
function
|
|
13384
|
+
function ps(t) {
|
|
13369
13385
|
return { left: t.clientX, top: t.clientY };
|
|
13370
13386
|
}
|
|
13371
13387
|
function DO(t, e) {
|
|
@@ -13436,7 +13452,7 @@ function VO(t, e, n) {
|
|
|
13436
13452
|
}
|
|
13437
13453
|
}
|
|
13438
13454
|
function wl(t) {
|
|
13439
|
-
return
|
|
13455
|
+
return Fo(t);
|
|
13440
13456
|
}
|
|
13441
13457
|
const Lh = $t ? "metaKey" : "ctrlKey";
|
|
13442
13458
|
lt.mousedown = (t, e) => {
|
|
@@ -13444,7 +13460,7 @@ lt.mousedown = (t, e) => {
|
|
|
13444
13460
|
t.input.shiftKey = n.shiftKey;
|
|
13445
13461
|
let r = wl(t), i = Date.now(), o = "singleClick";
|
|
13446
13462
|
i - t.input.lastClick.time < 500 && DO(n, t.input.lastClick) && !n[Lh] && (t.input.lastClick.type == "singleClick" ? o = "doubleClick" : t.input.lastClick.type == "doubleClick" && (o = "tripleClick")), t.input.lastClick = { time: i, x: n.clientX, y: n.clientY, type: o };
|
|
13447
|
-
let s = t.posAtCoords(
|
|
13463
|
+
let s = t.posAtCoords(ps(n));
|
|
13448
13464
|
s && (o == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new RO(t, s, n, !!r)) : (o == "doubleClick" ? BO : PO)(t, s.pos, s.inside, n) ? n.preventDefault() : Tn(t, "pointer"));
|
|
13449
13465
|
};
|
|
13450
13466
|
class RO {
|
|
@@ -13476,7 +13492,7 @@ class RO {
|
|
|
13476
13492
|
if (this.done(), !this.view.dom.contains(e.target))
|
|
13477
13493
|
return;
|
|
13478
13494
|
let n = this.pos;
|
|
13479
|
-
this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(
|
|
13495
|
+
this.view.state.doc != this.startDoc && (n = this.view.posAtCoords(ps(e))), this.updateAllowDefault(e), this.allowDefault || !n ? Tn(this.view, "pointer") : IO(this.view, n.pos, n.inside, e, this.selectNode) ? e.preventDefault() : e.button == 0 && (this.flushed || // Safari ignores clicks on draggable elements
|
|
13480
13496
|
at && this.mightDrag && !this.mightDrag.node.isAtom || // Chrome will sometimes treat a node selection as a
|
|
13481
13497
|
// cursor, but still report that the node is selected
|
|
13482
13498
|
// when asked through getSelection. You'll then get a
|
|
@@ -13509,8 +13525,8 @@ ct.compositionstart = ct.compositionupdate = (t) => {
|
|
|
13509
13525
|
t.domObserver.flush();
|
|
13510
13526
|
let { state: e } = t, n = e.selection.$to;
|
|
13511
13527
|
if (e.selection instanceof ye && (e.storedMarks || !n.textOffset && n.parentOffset && n.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1)))
|
|
13512
|
-
t.markCursor = t.state.storedMarks || n.marks(),
|
|
13513
|
-
else if (
|
|
13528
|
+
t.markCursor = t.state.storedMarks || n.marks(), Fo(t, !0), t.markCursor = null;
|
|
13529
|
+
else if (Fo(t, !e.selection.empty), jt && e.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) {
|
|
13514
13530
|
let r = t.domSelectionRange();
|
|
13515
13531
|
for (let i = r.focusNode, o = r.focusOffset; i && i.nodeType == 1 && o != 0; ) {
|
|
13516
13532
|
let s = o < 0 ? i.lastChild : i.childNodes[o - 1];
|
|
@@ -13532,7 +13548,7 @@ ct.compositionend = (t, e) => {
|
|
|
13532
13548
|
t.composing && (t.input.composing = !1, t.input.compositionEndedAt = e.timeStamp, t.input.compositionPendingChanges = t.domObserver.pendingRecords().length ? t.input.compositionID : 0, t.input.compositionNode = null, t.input.compositionPendingChanges && Promise.resolve().then(() => t.domObserver.flush()), t.input.compositionID++, Bh(t, 20));
|
|
13533
13549
|
};
|
|
13534
13550
|
function Bh(t, e) {
|
|
13535
|
-
clearTimeout(t.input.composingTimeout), e > -1 && (t.input.composingTimeout = setTimeout(() =>
|
|
13551
|
+
clearTimeout(t.input.composingTimeout), e > -1 && (t.input.composingTimeout = setTimeout(() => Fo(t), e));
|
|
13536
13552
|
}
|
|
13537
13553
|
function Ph(t) {
|
|
13538
13554
|
for (t.composing && (t.input.composing = !1, t.input.compositionEndedAt = zO()); t.input.compositionNodes.length > 0; )
|
|
@@ -13561,7 +13577,7 @@ function zO() {
|
|
|
13561
13577
|
let t = document.createEvent("Event");
|
|
13562
13578
|
return t.initEvent("event", !0, !0), t.timeStamp;
|
|
13563
13579
|
}
|
|
13564
|
-
function
|
|
13580
|
+
function Fo(t, e = !1) {
|
|
13565
13581
|
if (!(dn && t.domObserver.flushingSoon >= 0)) {
|
|
13566
13582
|
if (t.domObserver.forceFlush(), Ph(t), e || t.docView && t.docView.dirty) {
|
|
13567
13583
|
let n = gl(t);
|
|
@@ -13634,7 +13650,7 @@ lt.dragstart = (t, e) => {
|
|
|
13634
13650
|
let n = e, r = t.input.mouseDown;
|
|
13635
13651
|
if (r && r.done(), !n.dataTransfer)
|
|
13636
13652
|
return;
|
|
13637
|
-
let i = t.state.selection, o = i.empty ? null : t.posAtCoords(
|
|
13653
|
+
let i = t.state.selection, o = i.empty ? null : t.posAtCoords(ps(n)), s;
|
|
13638
13654
|
if (!(o && o.pos >= i.from && o.pos <= (i instanceof ce ? i.to - 1 : i.to))) {
|
|
13639
13655
|
if (r && r.mightDrag)
|
|
13640
13656
|
s = ce.create(t.state.doc, r.mightDrag.pos);
|
|
@@ -13657,7 +13673,7 @@ ct.drop = (t, e) => {
|
|
|
13657
13673
|
let n = e, r = t.dragging;
|
|
13658
13674
|
if (t.dragging = null, !n.dataTransfer)
|
|
13659
13675
|
return;
|
|
13660
|
-
let i = t.posAtCoords(
|
|
13676
|
+
let i = t.posAtCoords(ps(n));
|
|
13661
13677
|
if (!i)
|
|
13662
13678
|
return;
|
|
13663
13679
|
let o = t.state.doc.resolve(i.pos), s = r && r.slice;
|
|
@@ -13725,7 +13741,7 @@ function Bi(t, e) {
|
|
|
13725
13741
|
return !1;
|
|
13726
13742
|
return !0;
|
|
13727
13743
|
}
|
|
13728
|
-
class
|
|
13744
|
+
class Ho {
|
|
13729
13745
|
constructor(e, n) {
|
|
13730
13746
|
this.toDOM = e, this.spec = n || ir, this.side = this.spec.side || 0;
|
|
13731
13747
|
}
|
|
@@ -13737,7 +13753,7 @@ class Fo {
|
|
|
13737
13753
|
return !0;
|
|
13738
13754
|
}
|
|
13739
13755
|
eq(e) {
|
|
13740
|
-
return this == e || e instanceof
|
|
13756
|
+
return this == e || e instanceof Ho && (this.spec.key && this.spec.key == e.spec.key || this.toDOM == e.toDOM && Bi(this.spec, e.spec));
|
|
13741
13757
|
}
|
|
13742
13758
|
destroy(e) {
|
|
13743
13759
|
this.spec.destroy && this.spec.destroy(e);
|
|
@@ -13818,7 +13834,7 @@ class xt {
|
|
|
13818
13834
|
widget's current document position.
|
|
13819
13835
|
*/
|
|
13820
13836
|
static widget(e, n, r) {
|
|
13821
|
-
return new xt(e, e, new
|
|
13837
|
+
return new xt(e, e, new Ho(n, r));
|
|
13822
13838
|
}
|
|
13823
13839
|
/**
|
|
13824
13840
|
Creates an inline decoration, which adds the given attributes to
|
|
@@ -13852,7 +13868,7 @@ class xt {
|
|
|
13852
13868
|
@internal
|
|
13853
13869
|
*/
|
|
13854
13870
|
get widget() {
|
|
13855
|
-
return this.type instanceof
|
|
13871
|
+
return this.type instanceof Ho;
|
|
13856
13872
|
}
|
|
13857
13873
|
}
|
|
13858
13874
|
const Mr = [], ir = {};
|
|
@@ -13869,7 +13885,7 @@ class ze {
|
|
|
13869
13885
|
you must make a copy if you want need to preserve that.
|
|
13870
13886
|
*/
|
|
13871
13887
|
static create(e, n) {
|
|
13872
|
-
return n.length ?
|
|
13888
|
+
return n.length ? Wo(n, e, 0, ir) : tt;
|
|
13873
13889
|
}
|
|
13874
13890
|
/**
|
|
13875
13891
|
Find all decorations in this set which touch the given range
|
|
@@ -13928,7 +13944,7 @@ class ze {
|
|
|
13928
13944
|
if (u = zh(n, a, c)) {
|
|
13929
13945
|
for (i || (i = this.children.slice()); o < i.length && i[o] < l; )
|
|
13930
13946
|
o += 3;
|
|
13931
|
-
i[o] == l ? i[o + 2] = i[o + 2].addInner(a, u, c + 1) : i.splice(o, 0, l, l + a.nodeSize,
|
|
13947
|
+
i[o] == l ? i[o + 2] = i[o + 2].addInner(a, u, c + 1) : i.splice(o, 0, l, l + a.nodeSize, Wo(u, a, c + 1, ir)), o += 3;
|
|
13932
13948
|
}
|
|
13933
13949
|
});
|
|
13934
13950
|
let s = jh(o ? Fh(n) : n, -r);
|
|
@@ -14124,7 +14140,7 @@ function UO(t, e, n, r, i, o, s) {
|
|
|
14124
14140
|
l = !0;
|
|
14125
14141
|
}
|
|
14126
14142
|
if (l) {
|
|
14127
|
-
let c = qO(a, t, e, n, i, o, s), u =
|
|
14143
|
+
let c = qO(a, t, e, n, i, o, s), u = Wo(c, r, 0, s);
|
|
14128
14144
|
e = u.local;
|
|
14129
14145
|
for (let d = 0; d < a.length; d += 3)
|
|
14130
14146
|
a[d + 1] < 0 && (a.splice(d, 3), d -= 3);
|
|
@@ -14174,13 +14190,13 @@ function Fh(t) {
|
|
|
14174
14190
|
t[n] != null && e.push(t[n]);
|
|
14175
14191
|
return e;
|
|
14176
14192
|
}
|
|
14177
|
-
function
|
|
14193
|
+
function Wo(t, e, n, r) {
|
|
14178
14194
|
let i = [], o = !1;
|
|
14179
14195
|
e.forEach((a, l) => {
|
|
14180
14196
|
let c = zh(t, a, l + n);
|
|
14181
14197
|
if (c) {
|
|
14182
14198
|
o = !0;
|
|
14183
|
-
let u =
|
|
14199
|
+
let u = Wo(c, a, n + l + 1, r);
|
|
14184
14200
|
u != tt && i.push(l, l + a.nodeSize, u);
|
|
14185
14201
|
}
|
|
14186
14202
|
});
|
|
@@ -14215,7 +14231,7 @@ function Tu(t, e, n) {
|
|
|
14215
14231
|
e++;
|
|
14216
14232
|
t.splice(e, 0, n);
|
|
14217
14233
|
}
|
|
14218
|
-
function
|
|
14234
|
+
function Fs(t) {
|
|
14219
14235
|
let e = [];
|
|
14220
14236
|
return t.someProp("decorations", (n) => {
|
|
14221
14237
|
let r = n(t.state);
|
|
@@ -14351,7 +14367,7 @@ class GO {
|
|
|
14351
14367
|
}
|
|
14352
14368
|
}
|
|
14353
14369
|
let c = null;
|
|
14354
|
-
o < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 &&
|
|
14370
|
+
o < 0 && i && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && fs(r) && (c = gl(e)) && c.eq(ke.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, pn(e), this.currentSelection.set(r)) : (o > -1 || i) && (o > -1 && (e.docView.markDirty(o, s), ZO(e)), this.handleDOMChange(o, s, a, l), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || pn(e), this.currentSelection.set(r));
|
|
14355
14371
|
}
|
|
14356
14372
|
registerMutation(e, n) {
|
|
14357
14373
|
if (n.indexOf(e.target) > -1)
|
|
@@ -14420,7 +14436,7 @@ function QO(t, e) {
|
|
|
14420
14436
|
}
|
|
14421
14437
|
function e3(t, e, n) {
|
|
14422
14438
|
let { node: r, fromOffset: i, toOffset: o, from: s, to: a } = t.docView.parseRange(e, n), l = t.domSelectionRange(), c, u = l.anchorNode;
|
|
14423
|
-
if (u && t.dom.contains(u.nodeType == 1 ? u : u.parentNode) && (c = [{ node: u, offset: l.anchorOffset }],
|
|
14439
|
+
if (u && t.dom.contains(u.nodeType == 1 ? u : u.parentNode) && (c = [{ node: u, offset: l.anchorOffset }], fs(l) || c.push({ node: l.focusNode, offset: l.focusOffset })), rt && t.input.lastKeyCode === 8)
|
|
14424
14440
|
for (let m = o; m > i; m--) {
|
|
14425
14441
|
let y = r.childNodes[m - 1], k = y.pmViewDesc;
|
|
14426
14442
|
if (y.nodeName == "BR" && !k) {
|
|
@@ -14558,7 +14574,7 @@ function o3(t, e, n, r, i) {
|
|
|
14558
14574
|
if (
|
|
14559
14575
|
// The content must have shrunk
|
|
14560
14576
|
n - e <= i.pos - r.pos || // newEnd must point directly at or after the end of the block that newStart points into
|
|
14561
|
-
|
|
14577
|
+
Hs(r, !0, !1) < i.pos
|
|
14562
14578
|
)
|
|
14563
14579
|
return !1;
|
|
14564
14580
|
let o = t.resolve(e);
|
|
@@ -14568,10 +14584,10 @@ function o3(t, e, n, r, i) {
|
|
|
14568
14584
|
}
|
|
14569
14585
|
if (o.parentOffset < o.parent.content.size || !o.parent.isTextblock)
|
|
14570
14586
|
return !1;
|
|
14571
|
-
let s = t.resolve(
|
|
14572
|
-
return !s.parent.isTextblock || s.pos > n ||
|
|
14587
|
+
let s = t.resolve(Hs(o, !0, !0));
|
|
14588
|
+
return !s.parent.isTextblock || s.pos > n || Hs(s, !0, !1) < n ? !1 : r.parent.content.cut(r.parentOffset).eq(s.parent.content);
|
|
14573
14589
|
}
|
|
14574
|
-
function
|
|
14590
|
+
function Hs(t, e, n) {
|
|
14575
14591
|
let r = t.depth, i = e ? t.end() : t.pos;
|
|
14576
14592
|
for (; r > 0 && (e || t.indexAfter(r) == t.node(r).childCount); )
|
|
14577
14593
|
r--, i++, e = !1;
|
|
@@ -14615,7 +14631,7 @@ class a3 {
|
|
|
14615
14631
|
added to the document.
|
|
14616
14632
|
*/
|
|
14617
14633
|
constructor(e, n) {
|
|
14618
|
-
this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new MO(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(Vu), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = Bu(this), Iu(this), this.nodeViews = Pu(this), this.docView = hu(this.state.doc, Lu(this),
|
|
14634
|
+
this._root = null, this.focused = !1, this.trackWrites = null, this.mounted = !1, this.markCursor = null, this.cursorWrapper = null, this.lastSelectedViewDesc = void 0, this.input = new MO(), this.prevDirectPlugins = [], this.pluginViews = [], this.requiresGeckoHackNode = !1, this.dragging = null, this._props = n, this.state = n.state, this.directPlugins = n.plugins || [], this.directPlugins.forEach(Vu), this.dispatch = this.dispatch.bind(this), this.dom = e && e.mount || document.createElement("div"), e && (e.appendChild ? e.appendChild(this.dom) : typeof e == "function" ? e(this.dom) : e.mount && (this.mounted = !0)), this.editable = Bu(this), Iu(this), this.nodeViews = Pu(this), this.docView = hu(this.state.doc, Lu(this), Fs(this), this.dom, this), this.domObserver = new GO(this, (r, i, o, s) => r3(this, r, i, o, s)), this.domObserver.start(), TO(this), this.updatePluginViews();
|
|
14619
14635
|
}
|
|
14620
14636
|
/**
|
|
14621
14637
|
Holds `true` when a
|
|
@@ -14678,7 +14694,7 @@ class a3 {
|
|
|
14678
14694
|
c3(h, this.nodeViews) && (this.nodeViews = h, o = !0);
|
|
14679
14695
|
}
|
|
14680
14696
|
(a || n.handleDOMEvents != this._props.handleDOMEvents) && Va(this), this.editable = Bu(this), Iu(this);
|
|
14681
|
-
let l =
|
|
14697
|
+
let l = Fs(this), c = Lu(this), u = i.plugins != e.plugins && !i.doc.eq(e.doc) ? "reset" : e.scrollToSelection > i.scrollToSelection ? "to selection" : "preserve", d = o || !this.docView.matchesNode(e.doc, c, l);
|
|
14682
14698
|
(d || !e.selection.eq(i.selection)) && (s = !0);
|
|
14683
14699
|
let f = u == "preserve" && s && this.dom.style.overflowAnchor == null && zC(this);
|
|
14684
14700
|
if (s) {
|
|
@@ -14908,7 +14924,7 @@ class a3 {
|
|
|
14908
14924
|
views](https://prosemirror.net/docs/ref/#view.NodeView).
|
|
14909
14925
|
*/
|
|
14910
14926
|
destroy() {
|
|
14911
|
-
this.docView && ($O(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [],
|
|
14927
|
+
this.docView && ($O(this), this.destroyPluginViews(), this.mounted ? (this.docView.update(this.state.doc, [], Fs(this), this), this.dom.textContent = "") : this.dom.parentNode && this.dom.parentNode.removeChild(this.dom), this.docView.destroy(), this.docView = null, EC());
|
|
14912
14928
|
}
|
|
14913
14929
|
/**
|
|
14914
14930
|
This is true when the view has been
|
|
@@ -15049,7 +15065,7 @@ var Vn = {
|
|
|
15049
15065
|
220: "\\",
|
|
15050
15066
|
221: "]",
|
|
15051
15067
|
222: "'"
|
|
15052
|
-
},
|
|
15068
|
+
}, Uo = {
|
|
15053
15069
|
48: ")",
|
|
15054
15070
|
49: "!",
|
|
15055
15071
|
50: "@",
|
|
@@ -15078,10 +15094,10 @@ var Vn = {
|
|
|
15078
15094
|
for (var Qe = 0; Qe < 10; Qe++) Vn[48 + Qe] = Vn[96 + Qe] = String(Qe);
|
|
15079
15095
|
for (var Qe = 1; Qe <= 24; Qe++) Vn[Qe + 111] = "F" + Qe;
|
|
15080
15096
|
for (var Qe = 65; Qe <= 90; Qe++)
|
|
15081
|
-
Vn[Qe] = String.fromCharCode(Qe + 32),
|
|
15082
|
-
for (var
|
|
15097
|
+
Vn[Qe] = String.fromCharCode(Qe + 32), Uo[Qe] = String.fromCharCode(Qe);
|
|
15098
|
+
for (var Ws in Vn) Uo.hasOwnProperty(Ws) || (Uo[Ws] = Vn[Ws]);
|
|
15083
15099
|
function f3(t) {
|
|
15084
|
-
var e = u3 && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || d3 && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ?
|
|
15100
|
+
var e = u3 && t.metaKey && t.shiftKey && !t.ctrlKey && !t.altKey || d3 && t.shiftKey && t.key && t.key.length == 1 || t.key == "Unidentified", n = !e && t.key || (t.shiftKey ? Uo : Vn)[t.keyCode] || t.key || "Unidentified";
|
|
15085
15101
|
return n == "Esc" && (n = "Escape"), n == "Del" && (n = "Delete"), n == "Left" && (n = "ArrowLeft"), n == "Up" && (n = "ArrowUp"), n == "Right" && (n = "ArrowRight"), n == "Down" && (n = "ArrowDown"), n;
|
|
15086
15102
|
}
|
|
15087
15103
|
const h3 = typeof navigator < "u" ? /Mac|iP(hone|[oa]d)/.test(navigator.platform) : !1;
|
|
@@ -15112,7 +15128,7 @@ function m3(t) {
|
|
|
15112
15128
|
e[p3(n)] = t[n];
|
|
15113
15129
|
return e;
|
|
15114
15130
|
}
|
|
15115
|
-
function
|
|
15131
|
+
function Us(t, e, n = !0) {
|
|
15116
15132
|
return e.altKey && (t = "Alt-" + t), e.ctrlKey && (t = "Ctrl-" + t), e.metaKey && (t = "Meta-" + t), n && e.shiftKey && (t = "Shift-" + t), t;
|
|
15117
15133
|
}
|
|
15118
15134
|
function g3(t) {
|
|
@@ -15121,17 +15137,17 @@ function g3(t) {
|
|
|
15121
15137
|
function Hh(t) {
|
|
15122
15138
|
let e = m3(t);
|
|
15123
15139
|
return function(n, r) {
|
|
15124
|
-
let i = f3(r), o, s = e[
|
|
15140
|
+
let i = f3(r), o, s = e[Us(i, r)];
|
|
15125
15141
|
if (s && s(n.state, n.dispatch, n))
|
|
15126
15142
|
return !0;
|
|
15127
15143
|
if (i.length == 1 && i != " ") {
|
|
15128
15144
|
if (r.shiftKey) {
|
|
15129
|
-
let a = e[
|
|
15145
|
+
let a = e[Us(i, r, !1)];
|
|
15130
15146
|
if (a && a(n.state, n.dispatch, n))
|
|
15131
15147
|
return !0;
|
|
15132
15148
|
}
|
|
15133
15149
|
if ((r.shiftKey || r.altKey || r.metaKey || i.charCodeAt(0) > 127) && (o = Vn[r.keyCode]) && o != i) {
|
|
15134
|
-
let a = e[
|
|
15150
|
+
let a = e[Us(o, r)];
|
|
15135
15151
|
if (a && a(n.state, n.dispatch, n))
|
|
15136
15152
|
return !0;
|
|
15137
15153
|
}
|
|
@@ -15158,7 +15174,7 @@ const Uh = (t, e, n) => {
|
|
|
15158
15174
|
return !0;
|
|
15159
15175
|
if (r.parent.content.size == 0 && (Hr(o, "end") || ce.isSelectable(o)))
|
|
15160
15176
|
for (let s = r.depth; ; s--) {
|
|
15161
|
-
let a =
|
|
15177
|
+
let a = us(t.doc, r.before(s), r.after(s), Z.empty);
|
|
15162
15178
|
if (a && a.slice.size < a.to - a.from) {
|
|
15163
15179
|
if (e) {
|
|
15164
15180
|
let l = t.tr.step(a);
|
|
@@ -15202,7 +15218,7 @@ function qh(t, e, n) {
|
|
|
15202
15218
|
return !1;
|
|
15203
15219
|
a = u;
|
|
15204
15220
|
}
|
|
15205
|
-
let c =
|
|
15221
|
+
let c = us(t.doc, o, l, Z.empty);
|
|
15206
15222
|
if (!c || c.from != o || c instanceof Ue && c.slice.size >= l - o)
|
|
15207
15223
|
return !1;
|
|
15208
15224
|
if (n) {
|
|
@@ -15257,7 +15273,7 @@ const Jh = (t, e, n) => {
|
|
|
15257
15273
|
if (ep(t, i, e, 1))
|
|
15258
15274
|
return !0;
|
|
15259
15275
|
if (r.parent.content.size == 0 && (Hr(o, "start") || ce.isSelectable(o))) {
|
|
15260
|
-
let s =
|
|
15276
|
+
let s = us(t.doc, r.before(), r.after(), Z.empty);
|
|
15261
15277
|
if (s && s.slice.size < s.to - s.from) {
|
|
15262
15278
|
if (e) {
|
|
15263
15279
|
let a = t.tr.step(s);
|
|
@@ -15296,7 +15312,7 @@ const b3 = (t, e) => {
|
|
|
15296
15312
|
if (n.node.isTextblock || !jn(t.doc, n.from))
|
|
15297
15313
|
return !1;
|
|
15298
15314
|
i = n.from;
|
|
15299
|
-
} else if (i =
|
|
15315
|
+
} else if (i = cs(t.doc, n.from, -1), i == null)
|
|
15300
15316
|
return !1;
|
|
15301
15317
|
if (e) {
|
|
15302
15318
|
let o = t.tr.join(i);
|
|
@@ -15309,7 +15325,7 @@ const b3 = (t, e) => {
|
|
|
15309
15325
|
if (n.node.isTextblock || !jn(t.doc, n.to))
|
|
15310
15326
|
return !1;
|
|
15311
15327
|
r = n.to;
|
|
15312
|
-
} else if (r =
|
|
15328
|
+
} else if (r = cs(t.doc, n.to, 1), r == null)
|
|
15313
15329
|
return !1;
|
|
15314
15330
|
return e && e(t.tr.join(r).scrollIntoView()), !0;
|
|
15315
15331
|
}, w3 = (t, e) => {
|
|
@@ -15513,7 +15529,7 @@ function D3(t, e, n, r = null) {
|
|
|
15513
15529
|
if (e.$from.index(e.depth - 1) == 0)
|
|
15514
15530
|
return !1;
|
|
15515
15531
|
let l = s.resolve(e.start - 2);
|
|
15516
|
-
o = new
|
|
15532
|
+
o = new Ro(l, l, e.depth), e.endIndex < e.parent.childCount && (e = new Ro(e.$from, s.resolve(e.$to.end(e.depth)), e.depth)), i = !0;
|
|
15517
15533
|
}
|
|
15518
15534
|
let a = hl(o, n, r, e);
|
|
15519
15535
|
return a ? (t && N3(t, e, a, i, n), !0) : !1;
|
|
@@ -15539,7 +15555,7 @@ function L3(t) {
|
|
|
15539
15555
|
}
|
|
15540
15556
|
function I3(t, e, n, r) {
|
|
15541
15557
|
let i = t.tr, o = r.end, s = r.$to.end(r.depth);
|
|
15542
|
-
o < s && (i.step(new Ke(o - 1, s, o, s, new Z(q.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new
|
|
15558
|
+
o < s && (i.step(new Ke(o - 1, s, o, s, new Z(q.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new Ro(i.doc.resolve(r.$from.pos), i.doc.resolve(s), r.depth));
|
|
15543
15559
|
const a = ii(r);
|
|
15544
15560
|
if (a == null)
|
|
15545
15561
|
return !1;
|
|
@@ -15578,7 +15594,7 @@ function P3(t) {
|
|
|
15578
15594
|
return !0;
|
|
15579
15595
|
};
|
|
15580
15596
|
}
|
|
15581
|
-
function
|
|
15597
|
+
function ms(t) {
|
|
15582
15598
|
const { state: e, transaction: n } = t;
|
|
15583
15599
|
let { selection: r } = n, { doc: i } = n, { storedMarks: o } = n;
|
|
15584
15600
|
return {
|
|
@@ -15603,7 +15619,7 @@ function ps(t) {
|
|
|
15603
15619
|
}
|
|
15604
15620
|
};
|
|
15605
15621
|
}
|
|
15606
|
-
class
|
|
15622
|
+
class gs {
|
|
15607
15623
|
constructor(e) {
|
|
15608
15624
|
this.editor = e.editor, this.rawCommands = this.editor.extensionManager.commands, this.customState = e.state;
|
|
15609
15625
|
}
|
|
@@ -15648,7 +15664,7 @@ class ms {
|
|
|
15648
15664
|
tr: e,
|
|
15649
15665
|
editor: i,
|
|
15650
15666
|
view: s,
|
|
15651
|
-
state:
|
|
15667
|
+
state: ms({
|
|
15652
15668
|
state: o,
|
|
15653
15669
|
transaction: e
|
|
15654
15670
|
}),
|
|
@@ -15694,7 +15710,7 @@ function ae(t, e, n) {
|
|
|
15694
15710
|
parent: t.parent ? ae(t.parent, e, n) : null
|
|
15695
15711
|
}) : t.config[e];
|
|
15696
15712
|
}
|
|
15697
|
-
function
|
|
15713
|
+
function ys(t) {
|
|
15698
15714
|
const e = t.filter((i) => i.type === "extension"), n = t.filter((i) => i.type === "node"), r = t.filter((i) => i.type === "mark");
|
|
15699
15715
|
return {
|
|
15700
15716
|
baseExtensions: e,
|
|
@@ -15703,7 +15719,7 @@ function gs(t) {
|
|
|
15703
15719
|
};
|
|
15704
15720
|
}
|
|
15705
15721
|
function np(t) {
|
|
15706
|
-
const e = [], { nodeExtensions: n, markExtensions: r } =
|
|
15722
|
+
const e = [], { nodeExtensions: n, markExtensions: r } = ys(t), i = [...n, ...r], o = {
|
|
15707
15723
|
default: null,
|
|
15708
15724
|
rendered: !0,
|
|
15709
15725
|
renderHTML: null,
|
|
@@ -15832,7 +15848,7 @@ function ju(t) {
|
|
|
15832
15848
|
}
|
|
15833
15849
|
function j3(t, e) {
|
|
15834
15850
|
var n;
|
|
15835
|
-
const r = np(t), { nodeExtensions: i, markExtensions: o } =
|
|
15851
|
+
const r = np(t), { nodeExtensions: i, markExtensions: o } = ys(t), s = (n = i.find((c) => ae(c, "topNode"))) === null || n === void 0 ? void 0 : n.name, a = Object.fromEntries(i.map((c) => {
|
|
15836
15852
|
const u = r.filter((y) => y.type === c.name), d = {
|
|
15837
15853
|
name: c.name,
|
|
15838
15854
|
options: c.options,
|
|
@@ -15908,7 +15924,7 @@ function j3(t, e) {
|
|
|
15908
15924
|
marks: l
|
|
15909
15925
|
});
|
|
15910
15926
|
}
|
|
15911
|
-
function
|
|
15927
|
+
function qs(t, e) {
|
|
15912
15928
|
return e.nodes[t] || e.marks[t] || null;
|
|
15913
15929
|
}
|
|
15914
15930
|
function zu(t, e) {
|
|
@@ -15935,7 +15951,7 @@ const z3 = (t, e = 500) => {
|
|
|
15935
15951
|
function El(t) {
|
|
15936
15952
|
return Object.prototype.toString.call(t) === "[object RegExp]";
|
|
15937
15953
|
}
|
|
15938
|
-
class
|
|
15954
|
+
class vs {
|
|
15939
15955
|
constructor(e) {
|
|
15940
15956
|
this.find = e.find, this.handler = e.handler;
|
|
15941
15957
|
}
|
|
@@ -15968,13 +15984,13 @@ function uo(t) {
|
|
|
15968
15984
|
const h = F3(d, f.find);
|
|
15969
15985
|
if (!h)
|
|
15970
15986
|
return;
|
|
15971
|
-
const p = l.state.tr, g =
|
|
15987
|
+
const p = l.state.tr, g = ms({
|
|
15972
15988
|
state: l.state,
|
|
15973
15989
|
transaction: p
|
|
15974
15990
|
}), m = {
|
|
15975
15991
|
from: r - (h[0].length - o.length),
|
|
15976
15992
|
to: i
|
|
15977
|
-
}, { commands: y, chain: k, can: E } = new
|
|
15993
|
+
}, { commands: y, chain: k, can: E } = new gs({
|
|
15978
15994
|
editor: n,
|
|
15979
15995
|
state: g
|
|
15980
15996
|
});
|
|
@@ -16071,10 +16087,10 @@ function W3(t) {
|
|
|
16071
16087
|
function fo(t) {
|
|
16072
16088
|
return W3(t) !== "Object" ? !1 : t.constructor === Object && Object.getPrototypeOf(t) === Object.prototype;
|
|
16073
16089
|
}
|
|
16074
|
-
function
|
|
16090
|
+
function bs(t, e) {
|
|
16075
16091
|
const n = { ...t };
|
|
16076
16092
|
return fo(t) && fo(e) && Object.keys(e).forEach((r) => {
|
|
16077
|
-
fo(e[r]) && fo(t[r]) ? n[r] =
|
|
16093
|
+
fo(e[r]) && fo(t[r]) ? n[r] = bs(t[r], e[r]) : n[r] = e[r];
|
|
16078
16094
|
}), n;
|
|
16079
16095
|
}
|
|
16080
16096
|
class Lt {
|
|
@@ -16098,7 +16114,7 @@ class Lt {
|
|
|
16098
16114
|
configure(e = {}) {
|
|
16099
16115
|
const n = this.extend({
|
|
16100
16116
|
...this.config,
|
|
16101
|
-
addOptions: () =>
|
|
16117
|
+
addOptions: () => bs(this.options, e)
|
|
16102
16118
|
});
|
|
16103
16119
|
return n.name = this.name, n.parent = this.parent, n;
|
|
16104
16120
|
}
|
|
@@ -16141,7 +16157,7 @@ const K3 = (t, e, n) => {
|
|
|
16141
16157
|
}) : [];
|
|
16142
16158
|
};
|
|
16143
16159
|
function Y3(t) {
|
|
16144
|
-
const { editor: e, state: n, from: r, to: i, rule: o, pasteEvent: s, dropEvent: a } = t, { commands: l, chain: c, can: u } = new
|
|
16160
|
+
const { editor: e, state: n, from: r, to: i, rule: o, pasteEvent: s, dropEvent: a } = t, { commands: l, chain: c, can: u } = new gs({
|
|
16145
16161
|
editor: e,
|
|
16146
16162
|
state: n
|
|
16147
16163
|
}), d = [];
|
|
@@ -16186,7 +16202,7 @@ function G3(t) {
|
|
|
16186
16202
|
a = null;
|
|
16187
16203
|
}
|
|
16188
16204
|
const l = ({ state: u, from: d, to: f, rule: h, pasteEvt: p }) => {
|
|
16189
|
-
const g = u.tr, m =
|
|
16205
|
+
const g = u.tr, m = ms({
|
|
16190
16206
|
state: u,
|
|
16191
16207
|
transaction: g
|
|
16192
16208
|
});
|
|
@@ -16324,7 +16340,7 @@ class Er {
|
|
|
16324
16340
|
options: n.options,
|
|
16325
16341
|
storage: n.storage,
|
|
16326
16342
|
editor: this.editor,
|
|
16327
|
-
type:
|
|
16343
|
+
type: qs(n.name, this.schema)
|
|
16328
16344
|
}, i = ae(n, "addCommands", r);
|
|
16329
16345
|
return i ? {
|
|
16330
16346
|
...e,
|
|
@@ -16343,7 +16359,7 @@ class Er {
|
|
|
16343
16359
|
options: s.options,
|
|
16344
16360
|
storage: s.storage,
|
|
16345
16361
|
editor: e,
|
|
16346
|
-
type:
|
|
16362
|
+
type: qs(s.name, this.schema)
|
|
16347
16363
|
}, l = [], c = ae(s, "addKeyboardShortcuts", a);
|
|
16348
16364
|
let u = {};
|
|
16349
16365
|
if (s.type === "mark" && ae(s, "exitable", a) && (u.ArrowRight = () => Lt.handleExit({ editor: e, mark: s })), c) {
|
|
@@ -16387,7 +16403,7 @@ class Er {
|
|
|
16387
16403
|
* @returns An object with all node views where the key is the node name and the value is the node view function
|
|
16388
16404
|
*/
|
|
16389
16405
|
get nodeViews() {
|
|
16390
|
-
const { editor: e } = this, { nodeExtensions: n } =
|
|
16406
|
+
const { editor: e } = this, { nodeExtensions: n } = ys(this.extensions);
|
|
16391
16407
|
return Object.fromEntries(n.filter((r) => !!ae(r, "addNodeView")).map((r) => {
|
|
16392
16408
|
const i = this.attributes.filter((l) => l.type === r.name), o = {
|
|
16393
16409
|
name: r.name,
|
|
@@ -16429,7 +16445,7 @@ class Er {
|
|
|
16429
16445
|
options: e.options,
|
|
16430
16446
|
storage: e.storage,
|
|
16431
16447
|
editor: this.editor,
|
|
16432
|
-
type:
|
|
16448
|
+
type: qs(e.name, this.schema)
|
|
16433
16449
|
};
|
|
16434
16450
|
e.type === "mark" && (!((n = Se(ae(e, "keepOnSplit", r))) !== null && n !== void 0) || n) && this.splittableMarks.push(e.name);
|
|
16435
16451
|
const i = ae(e, "onBeforeCreate", r), o = ae(e, "onCreate", r), s = ae(e, "onUpdate", r), a = ae(e, "onSelectionUpdate", r), l = ae(e, "onTransaction", r), c = ae(e, "onFocus", r), u = ae(e, "onBlur", r), d = ae(e, "onDestroy", r);
|
|
@@ -16458,7 +16474,7 @@ class He {
|
|
|
16458
16474
|
configure(e = {}) {
|
|
16459
16475
|
const n = this.extend({
|
|
16460
16476
|
...this.config,
|
|
16461
|
-
addOptions: () =>
|
|
16477
|
+
addOptions: () => bs(this.options, e)
|
|
16462
16478
|
});
|
|
16463
16479
|
return n.name = this.name, n.parent = this.parent, n;
|
|
16464
16480
|
}
|
|
@@ -16572,12 +16588,12 @@ const X3 = He.create({
|
|
|
16572
16588
|
const { from: r, to: i } = t;
|
|
16573
16589
|
return n && e.delete(r, i), !0;
|
|
16574
16590
|
}, lM = () => ({ state: t, dispatch: e }) => Cl(t, e), cM = () => ({ commands: t }) => t.keyboardShortcut("Enter"), uM = () => ({ state: t, dispatch: e }) => k3(t, e);
|
|
16575
|
-
function
|
|
16591
|
+
function qo(t, e, n = { strict: !0 }) {
|
|
16576
16592
|
const r = Object.keys(e);
|
|
16577
16593
|
return r.length ? r.every((i) => n.strict ? e[i] === t[i] : El(e[i]) ? e[i].test(t[i]) : e[i] === t[i]) : !0;
|
|
16578
16594
|
}
|
|
16579
16595
|
function sp(t, e, n = {}) {
|
|
16580
|
-
return t.find((r) => r.type === e &&
|
|
16596
|
+
return t.find((r) => r.type === e && qo(
|
|
16581
16597
|
// Only check equality for the attributes that are provided
|
|
16582
16598
|
Object.fromEntries(Object.keys(n).map((i) => [i, r.attrs[i]])),
|
|
16583
16599
|
n
|
|
@@ -16686,7 +16702,7 @@ function po(t) {
|
|
|
16686
16702
|
const e = `<body>${t}</body>`, n = new window.DOMParser().parseFromString(e, "text/html").body;
|
|
16687
16703
|
return lp(n);
|
|
16688
16704
|
}
|
|
16689
|
-
function
|
|
16705
|
+
function Ko(t, e, n) {
|
|
16690
16706
|
if (t instanceof $n || t instanceof q)
|
|
16691
16707
|
return t;
|
|
16692
16708
|
n = {
|
|
@@ -16704,7 +16720,7 @@ function qo(t, e, n) {
|
|
|
16704
16720
|
} catch (o) {
|
|
16705
16721
|
if (n.errorOnInvalidContent)
|
|
16706
16722
|
throw new Error("[tiptap error]: Invalid JSON content", { cause: o });
|
|
16707
|
-
return console.warn("[tiptap warn]: Invalid content.", "Passed value:", t, "Error:", o),
|
|
16723
|
+
return console.warn("[tiptap warn]: Invalid content.", "Passed value:", t, "Error:", o), Ko("", e, n);
|
|
16708
16724
|
}
|
|
16709
16725
|
if (i) {
|
|
16710
16726
|
if (n.errorOnInvalidContent) {
|
|
@@ -16733,7 +16749,7 @@ function qo(t, e, n) {
|
|
|
16733
16749
|
const o = An.fromSchema(e);
|
|
16734
16750
|
return n.slice ? o.parseSlice(po(t), n.parseOptions).content : o.parse(po(t), n.parseOptions);
|
|
16735
16751
|
}
|
|
16736
|
-
return
|
|
16752
|
+
return Ko("", e, n);
|
|
16737
16753
|
}
|
|
16738
16754
|
function yM(t, e, n) {
|
|
16739
16755
|
const r = t.steps.length - 1;
|
|
@@ -16760,7 +16776,7 @@ const vM = (t) => !("type" in t), bM = (t, e, n) => ({ tr: r, dispatch: i, edito
|
|
|
16760
16776
|
};
|
|
16761
16777
|
let a;
|
|
16762
16778
|
try {
|
|
16763
|
-
a =
|
|
16779
|
+
a = Ko(e, o.schema, {
|
|
16764
16780
|
parseOptions: {
|
|
16765
16781
|
preserveWhitespace: "full",
|
|
16766
16782
|
...n.parseOptions
|
|
@@ -16801,14 +16817,14 @@ const vM = (t) => !("type" in t), bM = (t, e, n) => ({ tr: r, dispatch: i, edito
|
|
|
16801
16817
|
return !0;
|
|
16802
16818
|
}, xM = () => ({ state: t, dispatch: e }) => b3(t, e), wM = () => ({ state: t, dispatch: e }) => x3(t, e), kM = () => ({ state: t, dispatch: e }) => Uh(t, e), SM = () => ({ state: t, dispatch: e }) => Jh(t, e), CM = () => ({ state: t, dispatch: e, tr: n }) => {
|
|
16803
16819
|
try {
|
|
16804
|
-
const r =
|
|
16820
|
+
const r = cs(t.doc, t.selection.$from.pos, -1);
|
|
16805
16821
|
return r == null ? !1 : (n.join(r, 2), e && e(n), !0);
|
|
16806
16822
|
} catch {
|
|
16807
16823
|
return !1;
|
|
16808
16824
|
}
|
|
16809
16825
|
}, OM = () => ({ state: t, dispatch: e, tr: n }) => {
|
|
16810
16826
|
try {
|
|
16811
|
-
const r =
|
|
16827
|
+
const r = cs(t.doc, t.selection.$from.pos, 1);
|
|
16812
16828
|
return r == null ? !1 : (n.join(r, 2), e && e(n), !0);
|
|
16813
16829
|
} catch {
|
|
16814
16830
|
return !1;
|
|
@@ -16868,7 +16884,7 @@ function Pi(t, e, n = {}) {
|
|
|
16868
16884
|
to: p
|
|
16869
16885
|
});
|
|
16870
16886
|
});
|
|
16871
|
-
const l = i - r, c = a.filter((d) => s ? s.name === d.node.type.name : !0).filter((d) =>
|
|
16887
|
+
const l = i - r, c = a.filter((d) => s ? s.name === d.node.type.name : !0).filter((d) => qo(d.node.attrs, n, { strict: !1 }));
|
|
16872
16888
|
return o ? !!c.length : c.reduce((d, f) => d + f.to - f.from, 0) >= l;
|
|
16873
16889
|
}
|
|
16874
16890
|
const EM = (t, e = {}) => ({ state: n, dispatch: r }) => {
|
|
@@ -16878,7 +16894,7 @@ const EM = (t, e = {}) => ({ state: n, dispatch: r }) => {
|
|
|
16878
16894
|
const r = Je(t, e.schema);
|
|
16879
16895
|
return L3(r)(e, n);
|
|
16880
16896
|
}, LM = () => ({ state: t, dispatch: e }) => Zh(t, e);
|
|
16881
|
-
function
|
|
16897
|
+
function xs(t, e) {
|
|
16882
16898
|
return e.nodes[t] ? "node" : e.marks[t] ? "mark" : null;
|
|
16883
16899
|
}
|
|
16884
16900
|
function Hu(t, e) {
|
|
@@ -16887,7 +16903,7 @@ function Hu(t, e) {
|
|
|
16887
16903
|
}
|
|
16888
16904
|
const IM = (t, e) => ({ tr: n, state: r, dispatch: i }) => {
|
|
16889
16905
|
let o = null, s = null;
|
|
16890
|
-
const a =
|
|
16906
|
+
const a = xs(typeof t == "string" ? t : t.name, r.schema);
|
|
16891
16907
|
return a ? (a === "node" && (o = Je(t, r.schema)), a === "mark" && (s = Fn(t, r.schema)), i && n.selection.ranges.forEach((l) => {
|
|
16892
16908
|
r.doc.nodesBetween(l.$from.pos, l.$to.pos, (c, u) => {
|
|
16893
16909
|
o && o === c.type && n.setNodeMarkup(u, void 0, Hu(c.attrs, e)), s && c.marks.length && c.marks.forEach((d) => {
|
|
@@ -16903,7 +16919,7 @@ const IM = (t, e) => ({ tr: n, state: r, dispatch: i }) => {
|
|
|
16903
16919
|
return !0;
|
|
16904
16920
|
}, VM = () => ({ state: t, dispatch: e }) => Kh(t, e), RM = () => ({ state: t, dispatch: e }) => Gh(t, e), _M = () => ({ state: t, dispatch: e }) => O3(t, e), jM = () => ({ state: t, dispatch: e }) => $3(t, e), zM = () => ({ state: t, dispatch: e }) => T3(t, e);
|
|
16905
16921
|
function _a(t, e, n = {}, r = {}) {
|
|
16906
|
-
return
|
|
16922
|
+
return Ko(t, e, {
|
|
16907
16923
|
slice: !1,
|
|
16908
16924
|
parseOptions: n,
|
|
16909
16925
|
errorOnInvalidContent: r.errorOnInvalidContent
|
|
@@ -16923,7 +16939,7 @@ const FM = (t, e = !1, n = {}, r = {}) => ({ editor: i, tr: o, dispatch: s, comm
|
|
|
16923
16939
|
errorOnInvalidContent: (c = r.errorOnInvalidContent) !== null && c !== void 0 ? c : i.options.enableContentCheck
|
|
16924
16940
|
});
|
|
16925
16941
|
};
|
|
16926
|
-
function
|
|
16942
|
+
function ws(t, e) {
|
|
16927
16943
|
const n = Fn(e, t.schema), { from: r, to: i, empty: o } = t.selection, s = [];
|
|
16928
16944
|
o ? (t.storedMarks && s.push(...t.storedMarks), s.push(...t.selection.$head.marks())) : t.doc.nodesBetween(r, i, (l) => {
|
|
16929
16945
|
s.push(...l.marks);
|
|
@@ -16970,8 +16986,8 @@ function qM(t, e) {
|
|
|
16970
16986
|
return s ? { ...s.attrs } : {};
|
|
16971
16987
|
}
|
|
16972
16988
|
function KM(t, e) {
|
|
16973
|
-
const n =
|
|
16974
|
-
return n === "node" ? qM(t, e) : n === "mark" ?
|
|
16989
|
+
const n = xs(typeof e == "string" ? e : e.name, t.schema);
|
|
16990
|
+
return n === "node" ? qM(t, e) : n === "mark" ? ws(t, e) : {};
|
|
16975
16991
|
}
|
|
16976
16992
|
function up(t, e, n) {
|
|
16977
16993
|
const r = [];
|
|
@@ -16998,7 +17014,7 @@ function wo(t, e, n) {
|
|
|
16998
17014
|
function ja(t, e, n = {}) {
|
|
16999
17015
|
const { empty: r, ranges: i } = t.selection, o = e ? Fn(e, t.schema) : null;
|
|
17000
17016
|
if (r)
|
|
17001
|
-
return !!(t.storedMarks || t.selection.$from.marks()).filter((d) => o ? o.name === d.type.name : !0).find((d) =>
|
|
17017
|
+
return !!(t.storedMarks || t.selection.$from.marks()).filter((d) => o ? o.name === d.type.name : !0).find((d) => qo(d.attrs, n, { strict: !1 }));
|
|
17002
17018
|
let s = 0;
|
|
17003
17019
|
const a = [];
|
|
17004
17020
|
if (i.forEach(({ $from: d, $to: f }) => {
|
|
@@ -17015,17 +17031,17 @@ function ja(t, e, n = {}) {
|
|
|
17015
17031
|
});
|
|
17016
17032
|
}), s === 0)
|
|
17017
17033
|
return !1;
|
|
17018
|
-
const l = a.filter((d) => o ? o.name === d.mark.type.name : !0).filter((d) =>
|
|
17034
|
+
const l = a.filter((d) => o ? o.name === d.mark.type.name : !0).filter((d) => qo(d.mark.attrs, n, { strict: !1 })).reduce((d, f) => d + f.to - f.from, 0), c = a.filter((d) => o ? d.mark.type !== o && d.mark.type.excludes(o) : !0).reduce((d, f) => d + f.to - f.from, 0);
|
|
17019
17035
|
return (l > 0 ? l + c : l) >= s;
|
|
17020
17036
|
}
|
|
17021
17037
|
function YM(t, e, n = {}) {
|
|
17022
17038
|
if (!e)
|
|
17023
17039
|
return Pi(t, null, n) || ja(t, null, n);
|
|
17024
|
-
const r =
|
|
17040
|
+
const r = xs(e, t.schema);
|
|
17025
17041
|
return r === "node" ? Pi(t, e, n) : r === "mark" ? ja(t, e, n) : !1;
|
|
17026
17042
|
}
|
|
17027
17043
|
function Wu(t, e) {
|
|
17028
|
-
const { nodeExtensions: n } =
|
|
17044
|
+
const { nodeExtensions: n } = ys(e), r = n.find((s) => s.name === t);
|
|
17029
17045
|
if (!r)
|
|
17030
17046
|
return !1;
|
|
17031
17047
|
const i = {
|
|
@@ -17102,7 +17118,7 @@ const ZM = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
|
17102
17118
|
const { selection: o } = n, { empty: s, ranges: a } = o, l = Fn(t, r.schema);
|
|
17103
17119
|
if (i)
|
|
17104
17120
|
if (s) {
|
|
17105
|
-
const c =
|
|
17121
|
+
const c = ws(r, l);
|
|
17106
17122
|
n.addStoredMark(l.create({
|
|
17107
17123
|
...c,
|
|
17108
17124
|
...e
|
|
@@ -17229,7 +17245,7 @@ const rT = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
17229
17245
|
n.ensureMarks($);
|
|
17230
17246
|
}
|
|
17231
17247
|
return !0;
|
|
17232
|
-
},
|
|
17248
|
+
}, Ks = (t, e) => {
|
|
17233
17249
|
const n = Il((s) => s.type === e)(t.selection);
|
|
17234
17250
|
if (!n)
|
|
17235
17251
|
return !0;
|
|
@@ -17238,7 +17254,7 @@ const rT = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
17238
17254
|
return !0;
|
|
17239
17255
|
const i = t.doc.nodeAt(r);
|
|
17240
17256
|
return n.node.type === (i == null ? void 0 : i.type) && jn(t.doc, n.pos) && t.join(n.pos), !0;
|
|
17241
|
-
},
|
|
17257
|
+
}, Ys = (t, e) => {
|
|
17242
17258
|
const n = Il((s) => s.type === e)(t.selection);
|
|
17243
17259
|
if (!n)
|
|
17244
17260
|
return !0;
|
|
@@ -17256,12 +17272,12 @@ const rT = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
17256
17272
|
if ($.node.type === h)
|
|
17257
17273
|
return c.liftListItem(p);
|
|
17258
17274
|
if (Wu($.node.type.name, d) && h.validContent($.node.content) && a)
|
|
17259
|
-
return l().command(() => (o.setNodeMarkup($.pos, h), !0)).command(() =>
|
|
17275
|
+
return l().command(() => (o.setNodeMarkup($.pos, h), !0)).command(() => Ks(o, h)).command(() => Ys(o, h)).run();
|
|
17260
17276
|
}
|
|
17261
|
-
return !n || !v || !a ? l().command(() => u().wrapInList(h, r) ? !0 : c.clearNodes()).wrapInList(h, r).command(() =>
|
|
17277
|
+
return !n || !v || !a ? l().command(() => u().wrapInList(h, r) ? !0 : c.clearNodes()).wrapInList(h, r).command(() => Ks(o, h)).command(() => Ys(o, h)).run() : l().command(() => {
|
|
17262
17278
|
const w = u().wrapInList(h, r), I = v.filter((z) => f.includes(z.type.name));
|
|
17263
17279
|
return o.ensureMarks(I), w ? !0 : c.clearNodes();
|
|
17264
|
-
}).wrapInList(h, r).command(() =>
|
|
17280
|
+
}).wrapInList(h, r).command(() => Ks(o, h)).command(() => Ys(o, h)).run();
|
|
17265
17281
|
}, sT = (t, e = {}, n = {}) => ({ state: r, commands: i }) => {
|
|
17266
17282
|
const { extendEmptyMarkRange: o = !1 } = n, s = Fn(t, r.schema);
|
|
17267
17283
|
return ja(r, s, e) ? i.unsetMark(s, { extendEmptyMarkRange: o }) : i.setMark(s, e);
|
|
@@ -17313,7 +17329,7 @@ const rT = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edit
|
|
|
17313
17329
|
return n.removeStoredMark(l), !0;
|
|
17314
17330
|
}, fT = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
|
|
17315
17331
|
let o = null, s = null;
|
|
17316
|
-
const a =
|
|
17332
|
+
const a = xs(typeof t == "string" ? t : t.name, r.schema);
|
|
17317
17333
|
return a ? (a === "node" && (o = Je(t, r.schema)), a === "mark" && (s = Fn(t, r.schema)), i && n.selection.ranges.forEach((l) => {
|
|
17318
17334
|
const c = l.$from.pos, u = l.$to.pos;
|
|
17319
17335
|
let d, f, h, p;
|
|
@@ -17537,10 +17553,10 @@ const gT = He.create({
|
|
|
17537
17553
|
const { empty: o, from: s, to: a } = e.selection, l = ke.atStart(e.doc).from, c = ke.atEnd(e.doc).to;
|
|
17538
17554
|
if (o || !(s === l && a === c) || !Bl(n.doc))
|
|
17539
17555
|
return;
|
|
17540
|
-
const f = n.tr, h =
|
|
17556
|
+
const f = n.tr, h = ms({
|
|
17541
17557
|
state: n,
|
|
17542
17558
|
transaction: f
|
|
17543
|
-
}), { commands: p } = new
|
|
17559
|
+
}), { commands: p } = new gs({
|
|
17544
17560
|
editor: this.editor,
|
|
17545
17561
|
state: h
|
|
17546
17562
|
});
|
|
@@ -17934,7 +17950,7 @@ let OT = class extends V3 {
|
|
|
17934
17950
|
* Creates an command manager.
|
|
17935
17951
|
*/
|
|
17936
17952
|
createCommandManager() {
|
|
17937
|
-
this.commandManager = new
|
|
17953
|
+
this.commandManager = new gs({
|
|
17938
17954
|
editor: this
|
|
17939
17955
|
});
|
|
17940
17956
|
}
|
|
@@ -18133,7 +18149,7 @@ let OT = class extends V3 {
|
|
|
18133
18149
|
}
|
|
18134
18150
|
};
|
|
18135
18151
|
function Wr(t) {
|
|
18136
|
-
return new
|
|
18152
|
+
return new vs({
|
|
18137
18153
|
find: t.find,
|
|
18138
18154
|
handler: ({ state: e, range: n, match: r }) => {
|
|
18139
18155
|
const i = Se(t.getAttributes, void 0, r);
|
|
@@ -18152,7 +18168,7 @@ function Wr(t) {
|
|
|
18152
18168
|
});
|
|
18153
18169
|
}
|
|
18154
18170
|
function fp(t) {
|
|
18155
|
-
return new
|
|
18171
|
+
return new vs({
|
|
18156
18172
|
find: t.find,
|
|
18157
18173
|
handler: ({ state: e, range: n, match: r }) => {
|
|
18158
18174
|
const i = Se(t.getAttributes, void 0, r) || {}, { tr: o } = e, s = n.from;
|
|
@@ -18173,7 +18189,7 @@ function fp(t) {
|
|
|
18173
18189
|
});
|
|
18174
18190
|
}
|
|
18175
18191
|
function za(t) {
|
|
18176
|
-
return new
|
|
18192
|
+
return new vs({
|
|
18177
18193
|
find: t.find,
|
|
18178
18194
|
handler: ({ state: e, range: n, match: r }) => {
|
|
18179
18195
|
const i = e.doc.resolve(n.from), o = Se(t.getAttributes, void 0, r) || {};
|
|
@@ -18184,7 +18200,7 @@ function za(t) {
|
|
|
18184
18200
|
});
|
|
18185
18201
|
}
|
|
18186
18202
|
function Vi(t) {
|
|
18187
|
-
return new
|
|
18203
|
+
return new vs({
|
|
18188
18204
|
find: t.find,
|
|
18189
18205
|
handler: ({ state: e, range: n, match: r, chain: i }) => {
|
|
18190
18206
|
const o = Se(t.getAttributes, void 0, r) || {}, s = e.tr.delete(n.from, n.to), l = s.doc.resolve(n.from).blockRange(), c = l && hl(l, t.type, o);
|
|
@@ -18227,7 +18243,7 @@ let gt = class Fa {
|
|
|
18227
18243
|
configure(e = {}) {
|
|
18228
18244
|
const n = this.extend({
|
|
18229
18245
|
...this.config,
|
|
18230
|
-
addOptions: () =>
|
|
18246
|
+
addOptions: () => bs(this.options, e)
|
|
18231
18247
|
});
|
|
18232
18248
|
return n.name = this.name, n.parent = this.parent, n;
|
|
18233
18249
|
}
|
|
@@ -18335,7 +18351,7 @@ const mp = {
|
|
|
18335
18351
|
function Yt(t) {
|
|
18336
18352
|
return t.split("-")[0];
|
|
18337
18353
|
}
|
|
18338
|
-
var sr = Math.max,
|
|
18354
|
+
var sr = Math.max, Yo = Math.min, Kr = Math.round;
|
|
18339
18355
|
function Ha() {
|
|
18340
18356
|
var t = navigator.userAgentData;
|
|
18341
18357
|
return t != null && t.brands && Array.isArray(t.brands) ? t.brands.map(function(e) {
|
|
@@ -18396,7 +18412,7 @@ function Hn(t) {
|
|
|
18396
18412
|
t.document
|
|
18397
18413
|
)) || window.document).documentElement;
|
|
18398
18414
|
}
|
|
18399
|
-
function
|
|
18415
|
+
function ks(t) {
|
|
18400
18416
|
return Qt(t) === "html" ? t : (
|
|
18401
18417
|
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
18402
18418
|
// $FlowFixMe[incompatible-return]
|
|
@@ -18419,7 +18435,7 @@ function zT(t) {
|
|
|
18419
18435
|
if (r.position === "fixed")
|
|
18420
18436
|
return null;
|
|
18421
18437
|
}
|
|
18422
|
-
var i =
|
|
18438
|
+
var i = ks(t);
|
|
18423
18439
|
for (Vl(i) && (i = i.host); Nt(i) && ["html", "body"].indexOf(Qt(i)) < 0; ) {
|
|
18424
18440
|
var o = gn(i);
|
|
18425
18441
|
if (o.transform !== "none" || o.perspective !== "none" || o.contain === "paint" || ["transform", "perspective"].indexOf(o.willChange) !== -1 || e && o.willChange === "filter" || e && o.filter && o.filter !== "none")
|
|
@@ -18437,7 +18453,7 @@ function _l(t) {
|
|
|
18437
18453
|
return ["top", "bottom"].indexOf(t) >= 0 ? "x" : "y";
|
|
18438
18454
|
}
|
|
18439
18455
|
function xi(t, e, n) {
|
|
18440
|
-
return sr(t,
|
|
18456
|
+
return sr(t, Yo(e, n));
|
|
18441
18457
|
}
|
|
18442
18458
|
function FT(t, e, n) {
|
|
18443
18459
|
var r = xi(t, e, n);
|
|
@@ -18654,7 +18670,7 @@ function Fl(t) {
|
|
|
18654
18670
|
return /auto|scroll|overlay|hidden/.test(n + i + r);
|
|
18655
18671
|
}
|
|
18656
18672
|
function wp(t) {
|
|
18657
|
-
return ["html", "body", "#document"].indexOf(Qt(t)) >= 0 ? t.ownerDocument.body : Nt(t) && Fl(t) ? t : wp(
|
|
18673
|
+
return ["html", "body", "#document"].indexOf(Qt(t)) >= 0 ? t.ownerDocument.body : Nt(t) && Fl(t) ? t : wp(ks(t));
|
|
18658
18674
|
}
|
|
18659
18675
|
function wi(t, e) {
|
|
18660
18676
|
var n;
|
|
@@ -18662,7 +18678,7 @@ function wi(t, e) {
|
|
|
18662
18678
|
var r = wp(t), i = r === ((n = t.ownerDocument) == null ? void 0 : n.body), o = St(r), s = i ? [o].concat(o.visualViewport || [], Fl(r) ? r : []) : r, a = e.concat(s);
|
|
18663
18679
|
return i ? a : (
|
|
18664
18680
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
18665
|
-
a.concat(wi(
|
|
18681
|
+
a.concat(wi(ks(s)))
|
|
18666
18682
|
);
|
|
18667
18683
|
}
|
|
18668
18684
|
function Wa(t) {
|
|
@@ -18681,7 +18697,7 @@ function Gu(t, e, n) {
|
|
|
18681
18697
|
return e === hp ? Wa(t$(t, n)) : fr(e) ? r$(e, n) : Wa(n$(Hn(t)));
|
|
18682
18698
|
}
|
|
18683
18699
|
function i$(t) {
|
|
18684
|
-
var e = wi(
|
|
18700
|
+
var e = wi(ks(t)), n = ["absolute", "fixed"].indexOf(gn(t).position) >= 0, r = n && Nt(t) ? no(t) : t;
|
|
18685
18701
|
return fr(r) ? e.filter(function(i) {
|
|
18686
18702
|
return fr(i) && yp(i, r) && Qt(i) !== "body";
|
|
18687
18703
|
}) : [];
|
|
@@ -18689,7 +18705,7 @@ function i$(t) {
|
|
|
18689
18705
|
function o$(t, e, n, r) {
|
|
18690
18706
|
var i = e === "clippingParents" ? i$(t) : [].concat(e), o = [].concat(i, [n]), s = o[0], a = o.reduce(function(l, c) {
|
|
18691
18707
|
var u = Gu(t, c, r);
|
|
18692
|
-
return l.top = sr(u.top, l.top), l.right =
|
|
18708
|
+
return l.top = sr(u.top, l.top), l.right = Yo(u.right, l.right), l.bottom = Yo(u.bottom, l.bottom), l.left = sr(u.left, l.left), l;
|
|
18693
18709
|
}, Gu(t, s, r));
|
|
18694
18710
|
return a.width = a.right - a.left, a.height = a.bottom - a.top, a.x = a.left, a.y = a.top, a;
|
|
18695
18711
|
}
|
|
@@ -18808,14 +18824,14 @@ function l$(t) {
|
|
|
18808
18824
|
padding: c
|
|
18809
18825
|
}), B = _ ? oe ? Bt : mt : oe ? It : pt;
|
|
18810
18826
|
$[O] > w[O] && (B = ko(B));
|
|
18811
|
-
var j = ko(B),
|
|
18812
|
-
if (o &&
|
|
18827
|
+
var j = ko(B), ee = [];
|
|
18828
|
+
if (o && ee.push(C[J] <= 0), a && ee.push(C[B] <= 0, C[j] <= 0), ee.every(function(ie) {
|
|
18813
18829
|
return ie;
|
|
18814
18830
|
})) {
|
|
18815
18831
|
V = D, z = !1;
|
|
18816
18832
|
break;
|
|
18817
18833
|
}
|
|
18818
|
-
I.set(D,
|
|
18834
|
+
I.set(D, ee);
|
|
18819
18835
|
}
|
|
18820
18836
|
if (z)
|
|
18821
18837
|
for (var re = p ? 3 : 1, N = function(Y) {
|
|
@@ -18947,10 +18963,10 @@ function v$(t) {
|
|
|
18947
18963
|
};
|
|
18948
18964
|
if (w) {
|
|
18949
18965
|
if (o) {
|
|
18950
|
-
var oe, _ = v === "y" ? pt : mt, O = v === "y" ? It : Bt, C = v === "y" ? "height" : "width", B = w[v], j = B + m[_],
|
|
18966
|
+
var oe, _ = v === "y" ? pt : mt, O = v === "y" ? It : Bt, C = v === "y" ? "height" : "width", B = w[v], j = B + m[_], ee = B - m[O], re = h ? -z[C] / 2 : 0, N = k === qr ? I[C] : z[C], P = k === qr ? -z[C] : -I[C], W = e.elements.arrow, ie = h && W ? Rl(W) : {
|
|
18951
18967
|
width: 0,
|
|
18952
18968
|
height: 0
|
|
18953
|
-
}, Y = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : vp(), F = Y[_], se = Y[O], Ce = xi(0, I[C], ie[C]), me = E ? I[C] / 2 - re - Ce - F - L.mainAxis : N - Ce - F - L.mainAxis, Te = E ? -I[C] / 2 + re + Ce + se + L.mainAxis : P + Ce + se + L.mainAxis, De = e.elements.arrow && no(e.elements.arrow), _e = De ? v === "y" ? De.clientTop || 0 : De.clientLeft || 0 : 0, Ot = (oe = D == null ? void 0 : D[v]) != null ? oe : 0, yr = B + me - Ot - _e, yn = B + Te - Ot, vn = xi(h ?
|
|
18969
|
+
}, Y = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : vp(), F = Y[_], se = Y[O], Ce = xi(0, I[C], ie[C]), me = E ? I[C] / 2 - re - Ce - F - L.mainAxis : N - Ce - F - L.mainAxis, Te = E ? -I[C] / 2 + re + Ce + se + L.mainAxis : P + Ce + se + L.mainAxis, De = e.elements.arrow && no(e.elements.arrow), _e = De ? v === "y" ? De.clientTop || 0 : De.clientLeft || 0 : 0, Ot = (oe = D == null ? void 0 : D[v]) != null ? oe : 0, yr = B + me - Ot - _e, yn = B + Te - Ot, vn = xi(h ? Yo(j, yr) : j, B, h ? sr(ee, yn) : ee);
|
|
18954
18970
|
w[v] = vn, J[v] = vn - B;
|
|
18955
18971
|
}
|
|
18956
18972
|
if (a) {
|
|
@@ -19168,7 +19184,7 @@ var A$ = [XT, g$, GT, mp, p$, c$, b$, qT, d$], E$ = /* @__PURE__ */ $$({
|
|
|
19168
19184
|
function L$(t, e) {
|
|
19169
19185
|
return {}.hasOwnProperty.call(t, e);
|
|
19170
19186
|
}
|
|
19171
|
-
function
|
|
19187
|
+
function Js(t, e, n) {
|
|
19172
19188
|
if (Array.isArray(t)) {
|
|
19173
19189
|
var r = t[e];
|
|
19174
19190
|
return r ?? (Array.isArray(n) ? n[e] : n);
|
|
@@ -19215,7 +19231,7 @@ function P$(t) {
|
|
|
19215
19231
|
function V$(t) {
|
|
19216
19232
|
return t.split("-")[0];
|
|
19217
19233
|
}
|
|
19218
|
-
function
|
|
19234
|
+
function Jo(t) {
|
|
19219
19235
|
return [].slice.call(t);
|
|
19220
19236
|
}
|
|
19221
19237
|
function rd(t) {
|
|
@@ -19241,9 +19257,9 @@ function j$(t) {
|
|
|
19241
19257
|
return !!(t && t._tippy && t._tippy.reference === t);
|
|
19242
19258
|
}
|
|
19243
19259
|
function z$(t) {
|
|
19244
|
-
return ji(t) ? [t] : R$(t) ?
|
|
19260
|
+
return ji(t) ? [t] : R$(t) ? Jo(t) : Array.isArray(t) ? t : Jo(document.querySelectorAll(t));
|
|
19245
19261
|
}
|
|
19246
|
-
function
|
|
19262
|
+
function Gs(t, e) {
|
|
19247
19263
|
t.forEach(function(n) {
|
|
19248
19264
|
n && (n.style.transitionDuration = e + "ms");
|
|
19249
19265
|
});
|
|
@@ -19267,7 +19283,7 @@ function H$(t, e) {
|
|
|
19267
19283
|
return g || m || y || k;
|
|
19268
19284
|
});
|
|
19269
19285
|
}
|
|
19270
|
-
function
|
|
19286
|
+
function Zs(t, e, n) {
|
|
19271
19287
|
var r = e + "EventListener";
|
|
19272
19288
|
["transitionend", "webkitTransitionEnd"].forEach(function(i) {
|
|
19273
19289
|
t[r](i, n);
|
|
@@ -19491,7 +19507,7 @@ function ud(t, e) {
|
|
|
19491
19507
|
ji(e.content) ? (qa(t, ""), t.appendChild(e.content)) : typeof e.content != "function" && (e.allowHTML ? qa(t, e.content) : t.textContent = e.content);
|
|
19492
19508
|
}
|
|
19493
19509
|
function Ka(t) {
|
|
19494
|
-
var e = t.firstElementChild, n =
|
|
19510
|
+
var e = t.firstElementChild, n = Jo(e.children);
|
|
19495
19511
|
return {
|
|
19496
19512
|
box: e,
|
|
19497
19513
|
content: n.find(function(r) {
|
|
@@ -19520,7 +19536,7 @@ function Lp(t) {
|
|
|
19520
19536
|
};
|
|
19521
19537
|
}
|
|
19522
19538
|
Lp.$$tippy = !0;
|
|
19523
|
-
var r7 = 1, go = [],
|
|
19539
|
+
var r7 = 1, go = [], Xs = [];
|
|
19524
19540
|
function i7(t, e) {
|
|
19525
19541
|
var n = ld(t, Object.assign({}, bt, Dp(rd(e)))), r, i, o, s = !1, a = !1, l = !1, c = !1, u, d, f, h = [], p = td(yr, n.interactiveDebounce), g, m = r7++, y = null, k = P$(n.plugins), E = {
|
|
19526
19542
|
// Is the instance currently enabled?
|
|
@@ -19552,7 +19568,7 @@ function i7(t, e) {
|
|
|
19552
19568
|
enable: Wn,
|
|
19553
19569
|
disable: bn,
|
|
19554
19570
|
unmount: X,
|
|
19555
|
-
destroy:
|
|
19571
|
+
destroy: he
|
|
19556
19572
|
};
|
|
19557
19573
|
if (!n.render)
|
|
19558
19574
|
return process.env.NODE_ENV !== "production" && Ua(!0, "render() function has not been supplied."), v;
|
|
@@ -19588,30 +19604,30 @@ function i7(t, e) {
|
|
|
19588
19604
|
return Ka(w);
|
|
19589
19605
|
}
|
|
19590
19606
|
function C(x) {
|
|
19591
|
-
return v.state.isMounted && !v.state.isVisible || qt.isTouch || u && u.type === "focus" ? 0 :
|
|
19607
|
+
return v.state.isMounted && !v.state.isVisible || qt.isTouch || u && u.type === "focus" ? 0 : Js(v.props.delay, x ? 0 : 1, bt.delay);
|
|
19592
19608
|
}
|
|
19593
19609
|
function B(x) {
|
|
19594
19610
|
x === void 0 && (x = !1), w.style.pointerEvents = v.props.interactive && !x ? "" : "none", w.style.zIndex = "" + v.props.zIndex;
|
|
19595
19611
|
}
|
|
19596
|
-
function j(x, K,
|
|
19597
|
-
if (
|
|
19598
|
-
|
|
19599
|
-
}),
|
|
19612
|
+
function j(x, K, te) {
|
|
19613
|
+
if (te === void 0 && (te = !0), z.forEach(function(pe) {
|
|
19614
|
+
pe[x] && pe[x].apply(pe, K);
|
|
19615
|
+
}), te) {
|
|
19600
19616
|
var de;
|
|
19601
19617
|
(de = v.props)[x].apply(de, K);
|
|
19602
19618
|
}
|
|
19603
19619
|
}
|
|
19604
|
-
function
|
|
19620
|
+
function ee() {
|
|
19605
19621
|
var x = v.props.aria;
|
|
19606
19622
|
if (x.content) {
|
|
19607
|
-
var K = "aria-" + x.content,
|
|
19608
|
-
de.forEach(function(
|
|
19609
|
-
var we =
|
|
19623
|
+
var K = "aria-" + x.content, te = w.id, de = Tr(v.props.triggerTarget || t);
|
|
19624
|
+
de.forEach(function(pe) {
|
|
19625
|
+
var we = pe.getAttribute(K);
|
|
19610
19626
|
if (v.state.isVisible)
|
|
19611
|
-
|
|
19627
|
+
pe.setAttribute(K, we ? we + " " + te : te);
|
|
19612
19628
|
else {
|
|
19613
|
-
var Ae = we && we.replace(
|
|
19614
|
-
Ae ?
|
|
19629
|
+
var Ae = we && we.replace(te, "").trim();
|
|
19630
|
+
Ae ? pe.setAttribute(K, Ae) : pe.removeAttribute(K);
|
|
19615
19631
|
}
|
|
19616
19632
|
});
|
|
19617
19633
|
}
|
|
@@ -19633,8 +19649,8 @@ function i7(t, e) {
|
|
|
19633
19649
|
if (!(qt.isTouch && (l || x.type === "mousedown"))) {
|
|
19634
19650
|
var K = x.composedPath && x.composedPath()[0] || x.target;
|
|
19635
19651
|
if (!(v.props.interactive && od(w, K))) {
|
|
19636
|
-
if (Tr(v.props.triggerTarget || t).some(function(
|
|
19637
|
-
return od(
|
|
19652
|
+
if (Tr(v.props.triggerTarget || t).some(function(te) {
|
|
19653
|
+
return od(te, K);
|
|
19638
19654
|
})) {
|
|
19639
19655
|
if (qt.isTouch || v.state.isVisible && v.props.trigger.indexOf("click") >= 0)
|
|
19640
19656
|
return;
|
|
@@ -19669,23 +19685,23 @@ function i7(t, e) {
|
|
|
19669
19685
|
me(x, K);
|
|
19670
19686
|
}
|
|
19671
19687
|
function me(x, K) {
|
|
19672
|
-
var
|
|
19673
|
-
function de(
|
|
19674
|
-
|
|
19688
|
+
var te = O().box;
|
|
19689
|
+
function de(pe) {
|
|
19690
|
+
pe.target === te && (Zs(te, "remove", de), K());
|
|
19675
19691
|
}
|
|
19676
19692
|
if (x === 0)
|
|
19677
19693
|
return K();
|
|
19678
|
-
|
|
19694
|
+
Zs(te, "remove", d), Zs(te, "add", de), d = de;
|
|
19679
19695
|
}
|
|
19680
|
-
function Te(x, K,
|
|
19681
|
-
|
|
19696
|
+
function Te(x, K, te) {
|
|
19697
|
+
te === void 0 && (te = !1);
|
|
19682
19698
|
var de = Tr(v.props.triggerTarget || t);
|
|
19683
|
-
de.forEach(function(
|
|
19684
|
-
|
|
19685
|
-
node:
|
|
19699
|
+
de.forEach(function(pe) {
|
|
19700
|
+
pe.addEventListener(x, K, te), h.push({
|
|
19701
|
+
node: pe,
|
|
19686
19702
|
eventType: x,
|
|
19687
19703
|
handler: K,
|
|
19688
|
-
options:
|
|
19704
|
+
options: te
|
|
19689
19705
|
});
|
|
19690
19706
|
});
|
|
19691
19707
|
}
|
|
@@ -19711,26 +19727,26 @@ function i7(t, e) {
|
|
|
19711
19727
|
}
|
|
19712
19728
|
function _e() {
|
|
19713
19729
|
h.forEach(function(x) {
|
|
19714
|
-
var K = x.node,
|
|
19715
|
-
K.removeEventListener(
|
|
19730
|
+
var K = x.node, te = x.eventType, de = x.handler, pe = x.options;
|
|
19731
|
+
K.removeEventListener(te, de, pe);
|
|
19716
19732
|
}), h = [];
|
|
19717
19733
|
}
|
|
19718
19734
|
function Ot(x) {
|
|
19719
|
-
var K,
|
|
19735
|
+
var K, te = !1;
|
|
19720
19736
|
if (!(!v.state.isEnabled || nn(x) || a)) {
|
|
19721
19737
|
var de = ((K = u) == null ? void 0 : K.type) === "focus";
|
|
19722
|
-
u = x, g = x.currentTarget, re(), !v.state.isVisible && _$(x) && go.forEach(function(
|
|
19723
|
-
return
|
|
19724
|
-
}), x.type === "click" && (v.props.trigger.indexOf("mouseenter") < 0 || s) && v.props.hideOnClick !== !1 && v.state.isVisible ?
|
|
19738
|
+
u = x, g = x.currentTarget, re(), !v.state.isVisible && _$(x) && go.forEach(function(pe) {
|
|
19739
|
+
return pe(x);
|
|
19740
|
+
}), x.type === "click" && (v.props.trigger.indexOf("mouseenter") < 0 || s) && v.props.hideOnClick !== !1 && v.state.isVisible ? te = !0 : rn(x), x.type === "click" && (s = !te), te && !de && Ht(x);
|
|
19725
19741
|
}
|
|
19726
19742
|
}
|
|
19727
19743
|
function yr(x) {
|
|
19728
|
-
var K = x.target,
|
|
19729
|
-
if (!(x.type === "mousemove" &&
|
|
19730
|
-
var de = Ft().concat(w).map(function(
|
|
19731
|
-
var we, Ae =
|
|
19744
|
+
var K = x.target, te = oe().contains(K) || w.contains(K);
|
|
19745
|
+
if (!(x.type === "mousemove" && te)) {
|
|
19746
|
+
var de = Ft().concat(w).map(function(pe) {
|
|
19747
|
+
var we, Ae = pe._tippy, Re = (we = Ae.popperInstance) == null ? void 0 : we.state;
|
|
19732
19748
|
return Re ? {
|
|
19733
|
-
popperRect:
|
|
19749
|
+
popperRect: pe.getBoundingClientRect(),
|
|
19734
19750
|
popperState: Re,
|
|
19735
19751
|
props: n
|
|
19736
19752
|
} : null;
|
|
@@ -19756,9 +19772,9 @@ function i7(t, e) {
|
|
|
19756
19772
|
}
|
|
19757
19773
|
function Pt() {
|
|
19758
19774
|
Mt();
|
|
19759
|
-
var x = v.props, K = x.popperOptions,
|
|
19760
|
-
getBoundingClientRect:
|
|
19761
|
-
contextElement:
|
|
19775
|
+
var x = v.props, K = x.popperOptions, te = x.placement, de = x.offset, pe = x.getReferenceClientRect, we = x.moveTransition, Ae = J() ? Ka(w).arrow : null, Re = pe ? {
|
|
19776
|
+
getBoundingClientRect: pe,
|
|
19777
|
+
contextElement: pe.contextElement || oe()
|
|
19762
19778
|
} : t, ot = {
|
|
19763
19779
|
name: "$$tippy",
|
|
19764
19780
|
enabled: !0,
|
|
@@ -19767,9 +19783,9 @@ function i7(t, e) {
|
|
|
19767
19783
|
fn: function(xn) {
|
|
19768
19784
|
var Wt = xn.state;
|
|
19769
19785
|
if (J()) {
|
|
19770
|
-
var si = O(),
|
|
19786
|
+
var si = O(), Ss = si.box;
|
|
19771
19787
|
["placement", "reference-hidden", "escaped"].forEach(function(ro) {
|
|
19772
|
-
ro === "placement" ?
|
|
19788
|
+
ro === "placement" ? Ss.setAttribute("data-placement", Wt.placement) : Wt.attributes.popper["data-popper-" + ro] ? Ss.setAttribute("data-" + ro, "") : Ss.removeAttribute("data-" + ro);
|
|
19773
19789
|
}), Wt.attributes.popper = {};
|
|
19774
19790
|
}
|
|
19775
19791
|
}
|
|
@@ -19806,7 +19822,7 @@ function i7(t, e) {
|
|
|
19806
19822
|
padding: 3
|
|
19807
19823
|
}
|
|
19808
19824
|
}), yt.push.apply(yt, (K == null ? void 0 : K.modifiers) || []), v.popperInstance = E$(Re, w, Object.assign({}, K, {
|
|
19809
|
-
placement:
|
|
19825
|
+
placement: te,
|
|
19810
19826
|
onFirstUpdate: f,
|
|
19811
19827
|
modifiers: yt
|
|
19812
19828
|
}));
|
|
@@ -19815,8 +19831,8 @@ function i7(t, e) {
|
|
|
19815
19831
|
v.popperInstance && (v.popperInstance.destroy(), v.popperInstance = null);
|
|
19816
19832
|
}
|
|
19817
19833
|
function Tt() {
|
|
19818
|
-
var x = v.props.appendTo, K,
|
|
19819
|
-
v.props.interactive && x === Mp || x === "parent" ? K =
|
|
19834
|
+
var x = v.props.appendTo, K, te = oe();
|
|
19835
|
+
v.props.interactive && x === Mp || x === "parent" ? K = te.parentNode : K = Tp(x, [te]), K.contains(w) || K.appendChild(w), v.state.isMounted = !0, Pt(), process.env.NODE_ENV !== "production" && ln(v.props.interactive && x === bt.appendTo && te.nextElementSibling !== w, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
|
19820
19836
|
|
|
19821
19837
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
19822
19838
|
|
|
@@ -19825,12 +19841,12 @@ function i7(t, e) {
|
|
|
19825
19841
|
`, "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
|
|
19826
19842
|
}
|
|
19827
19843
|
function Ft() {
|
|
19828
|
-
return
|
|
19844
|
+
return Jo(w.querySelectorAll("[data-tippy-root]"));
|
|
19829
19845
|
}
|
|
19830
19846
|
function rn(x) {
|
|
19831
19847
|
v.clearDelayTimeouts(), x && j("onTrigger", [v, x]), Y();
|
|
19832
|
-
var K = C(!0),
|
|
19833
|
-
qt.isTouch && de === "hold" &&
|
|
19848
|
+
var K = C(!0), te = L(), de = te[0], pe = te[1];
|
|
19849
|
+
qt.isTouch && de === "hold" && pe && (K = pe), K ? r = setTimeout(function() {
|
|
19834
19850
|
v.show();
|
|
19835
19851
|
}, K) : v.show();
|
|
19836
19852
|
}
|
|
@@ -19860,12 +19876,12 @@ function i7(t, e) {
|
|
|
19860
19876
|
function br(x) {
|
|
19861
19877
|
if (process.env.NODE_ENV !== "production" && ln(v.state.isDestroyed, Cr("setProps")), !v.state.isDestroyed) {
|
|
19862
19878
|
j("onBeforeUpdate", [v, x]), _e();
|
|
19863
|
-
var K = v.props,
|
|
19879
|
+
var K = v.props, te = ld(t, Object.assign({}, K, rd(x), {
|
|
19864
19880
|
ignoreAttributes: !0
|
|
19865
19881
|
}));
|
|
19866
|
-
v.props =
|
|
19882
|
+
v.props = te, De(), K.interactiveDebounce !== te.interactiveDebounce && (N(), p = td(yr, te.interactiveDebounce)), K.triggerTarget && !te.triggerTarget ? Tr(K.triggerTarget).forEach(function(de) {
|
|
19867
19883
|
de.removeAttribute("aria-expanded");
|
|
19868
|
-
}) :
|
|
19884
|
+
}) : te.triggerTarget && t.removeAttribute("aria-expanded"), re(), B(), I && I(K, te), v.popperInstance && (Pt(), Ft().forEach(function(de) {
|
|
19869
19885
|
requestAnimationFrame(de._tippy.popperInstance.forceUpdate);
|
|
19870
19886
|
})), j("onAfterUpdate", [v, x]);
|
|
19871
19887
|
}
|
|
@@ -19877,20 +19893,20 @@ function i7(t, e) {
|
|
|
19877
19893
|
}
|
|
19878
19894
|
function T() {
|
|
19879
19895
|
process.env.NODE_ENV !== "production" && ln(v.state.isDestroyed, Cr("show"));
|
|
19880
|
-
var x = v.state.isVisible, K = v.state.isDestroyed,
|
|
19881
|
-
if (!(x || K ||
|
|
19896
|
+
var x = v.state.isVisible, K = v.state.isDestroyed, te = !v.state.isEnabled, de = qt.isTouch && !v.props.touch, pe = Js(v.props.duration, 0, bt.duration);
|
|
19897
|
+
if (!(x || K || te || de) && !oe().hasAttribute("disabled") && (j("onShow", [v], !1), v.props.onShow(v) !== !1)) {
|
|
19882
19898
|
if (v.state.isVisible = !0, J() && (w.style.visibility = "visible"), B(), Y(), v.state.isMounted || (w.style.transition = "none"), J()) {
|
|
19883
19899
|
var we = O(), Ae = we.box, Re = we.content;
|
|
19884
|
-
|
|
19900
|
+
Gs([Ae, Re], 0);
|
|
19885
19901
|
}
|
|
19886
19902
|
f = function() {
|
|
19887
19903
|
var yt;
|
|
19888
19904
|
if (!(!v.state.isVisible || c)) {
|
|
19889
19905
|
if (c = !0, w.offsetHeight, w.style.transition = v.props.moveTransition, J() && v.props.animation) {
|
|
19890
19906
|
var Un = O(), xn = Un.box, Wt = Un.content;
|
|
19891
|
-
|
|
19907
|
+
Gs([xn, Wt], pe), id([xn, Wt], "visible");
|
|
19892
19908
|
}
|
|
19893
|
-
|
|
19909
|
+
ee(), re(), nd(Xs, v), (yt = v.popperInstance) == null || yt.forceUpdate(), j("onMount", [v]), v.props.animation && J() && Ce(pe, function() {
|
|
19894
19910
|
v.state.isShown = !0, j("onShown", [v]);
|
|
19895
19911
|
});
|
|
19896
19912
|
}
|
|
@@ -19899,13 +19915,13 @@ function i7(t, e) {
|
|
|
19899
19915
|
}
|
|
19900
19916
|
function M() {
|
|
19901
19917
|
process.env.NODE_ENV !== "production" && ln(v.state.isDestroyed, Cr("hide"));
|
|
19902
|
-
var x = !v.state.isVisible, K = v.state.isDestroyed,
|
|
19903
|
-
if (!(x || K ||
|
|
19918
|
+
var x = !v.state.isVisible, K = v.state.isDestroyed, te = !v.state.isEnabled, de = Js(v.props.duration, 1, bt.duration);
|
|
19919
|
+
if (!(x || K || te) && (j("onHide", [v], !1), v.props.onHide(v) !== !1)) {
|
|
19904
19920
|
if (v.state.isVisible = !1, v.state.isShown = !1, c = !1, s = !1, J() && (w.style.visibility = "hidden"), N(), F(), B(!0), J()) {
|
|
19905
|
-
var
|
|
19906
|
-
v.props.animation && (
|
|
19921
|
+
var pe = O(), we = pe.box, Ae = pe.content;
|
|
19922
|
+
v.props.animation && (Gs([we, Ae], de), id([we, Ae], "hidden"));
|
|
19907
19923
|
}
|
|
19908
|
-
|
|
19924
|
+
ee(), re(), v.props.animation ? J() && se(de, v.unmount) : v.unmount();
|
|
19909
19925
|
}
|
|
19910
19926
|
}
|
|
19911
19927
|
function H(x) {
|
|
@@ -19914,11 +19930,11 @@ function i7(t, e) {
|
|
|
19914
19930
|
function X() {
|
|
19915
19931
|
process.env.NODE_ENV !== "production" && ln(v.state.isDestroyed, Cr("unmount")), v.state.isVisible && v.hide(), v.state.isMounted && (Mt(), Ft().forEach(function(x) {
|
|
19916
19932
|
x._tippy.unmount();
|
|
19917
|
-
}), w.parentNode && w.parentNode.removeChild(w),
|
|
19933
|
+
}), w.parentNode && w.parentNode.removeChild(w), Xs = Xs.filter(function(x) {
|
|
19918
19934
|
return x !== v;
|
|
19919
19935
|
}), v.state.isMounted = !1, j("onHidden", [v]));
|
|
19920
19936
|
}
|
|
19921
|
-
function
|
|
19937
|
+
function he() {
|
|
19922
19938
|
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, j("onDestroy", [v]));
|
|
19923
19939
|
}
|
|
19924
19940
|
}
|
|
@@ -20549,7 +20565,7 @@ const c7 = (t = {}) => {
|
|
|
20549
20565
|
addCommands() {
|
|
20550
20566
|
return {
|
|
20551
20567
|
removeEmptyTextStyle: () => ({ state: t, commands: e }) => {
|
|
20552
|
-
const n =
|
|
20568
|
+
const n = ws(t, this.type);
|
|
20553
20569
|
return Object.entries(n).some(([, i]) => !!i) ? !0 : e.unsetMark(this.name);
|
|
20554
20570
|
}
|
|
20555
20571
|
};
|
|
@@ -21183,10 +21199,10 @@ const P7 = He.create({
|
|
|
21183
21199
|
}));
|
|
21184
21200
|
}
|
|
21185
21201
|
});
|
|
21186
|
-
var
|
|
21202
|
+
var Go = 200, Ye = function() {
|
|
21187
21203
|
};
|
|
21188
21204
|
Ye.prototype.append = function(e) {
|
|
21189
|
-
return e.length ? (e = Ye.from(e), !this.length && e || e.length <
|
|
21205
|
+
return e.length ? (e = Ye.from(e), !this.length && e || e.length < Go && this.leafAppend(e) || this.length < Go && e.leafPrepend(this) || this.appendInner(e)) : this;
|
|
21190
21206
|
};
|
|
21191
21207
|
Ye.prototype.prepend = function(e) {
|
|
21192
21208
|
return e.length ? Ye.from(e).append(this) : this;
|
|
@@ -21235,10 +21251,10 @@ var Pp = /* @__PURE__ */ function(t) {
|
|
|
21235
21251
|
if (i(this.values[l], a + l) === !1)
|
|
21236
21252
|
return !1;
|
|
21237
21253
|
}, e.prototype.leafAppend = function(i) {
|
|
21238
|
-
if (this.length + i.length <=
|
|
21254
|
+
if (this.length + i.length <= Go)
|
|
21239
21255
|
return new e(this.values.concat(i.flatten()));
|
|
21240
21256
|
}, e.prototype.leafPrepend = function(i) {
|
|
21241
|
-
if (this.length + i.length <=
|
|
21257
|
+
if (this.length + i.length <= Go)
|
|
21242
21258
|
return new e(i.flatten().concat(this.values));
|
|
21243
21259
|
}, n.length.get = function() {
|
|
21244
21260
|
return this.values.length;
|
|
@@ -21430,9 +21446,9 @@ function H7(t, e, n, r) {
|
|
|
21430
21446
|
if (s && s.getMeta(ar))
|
|
21431
21447
|
return s.getMeta(ar).redo ? new Sn(t.done.addTransform(n, void 0, r, So(e)), t.undone, pd(n.mapping.maps), t.prevTime, t.prevComposition) : new Sn(t.done, t.undone.addTransform(n, void 0, r, So(e)), null, t.prevTime, t.prevComposition);
|
|
21432
21448
|
if (n.getMeta("addToHistory") !== !1 && !(s && s.getMeta("addToHistory") === !1)) {
|
|
21433
|
-
let a = n.getMeta("composition"), l = t.prevTime == 0 || !s && t.prevComposition != a && (t.prevTime < (n.time || 0) - r.newGroupDelay || !W7(n, t.prevRanges)), c = s ?
|
|
21449
|
+
let a = n.getMeta("composition"), l = t.prevTime == 0 || !s && t.prevComposition != a && (t.prevTime < (n.time || 0) - r.newGroupDelay || !W7(n, t.prevRanges)), c = s ? Qs(t.prevRanges, n.mapping) : pd(n.mapping.maps);
|
|
21434
21450
|
return new Sn(t.done.addTransform(n, l ? e.selection.getBookmark() : void 0, r, So(e)), Vt.empty, c, n.time, a ?? t.prevComposition);
|
|
21435
|
-
} else return (o = n.getMeta("rebased")) ? new Sn(t.done.rebased(n, o), t.undone.rebased(n, o),
|
|
21451
|
+
} else return (o = n.getMeta("rebased")) ? new Sn(t.done.rebased(n, o), t.undone.rebased(n, o), Qs(t.prevRanges, n.mapping), t.prevTime, t.prevComposition) : new Sn(t.done.addMaps(n.mapping.maps), t.undone.addMaps(n.mapping.maps), Qs(t.prevRanges, n.mapping), t.prevTime, t.prevComposition);
|
|
21436
21452
|
}
|
|
21437
21453
|
function W7(t, e) {
|
|
21438
21454
|
if (!e)
|
|
@@ -21451,7 +21467,7 @@ function pd(t) {
|
|
|
21451
21467
|
t[n].forEach((r, i, o, s) => e.push(o, s));
|
|
21452
21468
|
return e;
|
|
21453
21469
|
}
|
|
21454
|
-
function
|
|
21470
|
+
function Qs(t, e) {
|
|
21455
21471
|
if (!t)
|
|
21456
21472
|
return null;
|
|
21457
21473
|
let n = [];
|
|
@@ -21468,18 +21484,18 @@ function U7(t, e, n) {
|
|
|
21468
21484
|
let s = o.selection.resolve(o.transform.doc), a = (n ? t.done : t.undone).addTransform(o.transform, e.selection.getBookmark(), i, r), l = new Sn(n ? a : o.remaining, n ? o.remaining : a, null, 0, -1);
|
|
21469
21485
|
return o.transform.setSelection(s).setMeta(ar, { redo: n, historyState: l });
|
|
21470
21486
|
}
|
|
21471
|
-
let
|
|
21487
|
+
let ea = !1, md = null;
|
|
21472
21488
|
function So(t) {
|
|
21473
21489
|
let e = t.plugins;
|
|
21474
21490
|
if (md != e) {
|
|
21475
|
-
|
|
21491
|
+
ea = !1, md = e;
|
|
21476
21492
|
for (let n = 0; n < e.length; n++)
|
|
21477
21493
|
if (e[n].spec.historyPreserveItems) {
|
|
21478
|
-
|
|
21494
|
+
ea = !0;
|
|
21479
21495
|
break;
|
|
21480
21496
|
}
|
|
21481
21497
|
}
|
|
21482
|
-
return
|
|
21498
|
+
return ea;
|
|
21483
21499
|
}
|
|
21484
21500
|
const ar = new Ct("history"), q7 = new Ct("closeHistory");
|
|
21485
21501
|
function K7(t = {}) {
|
|
@@ -21729,7 +21745,7 @@ const Rp = Vp(!1, !0), _p = Vp(!0, !0), Y7 = He.create({
|
|
|
21729
21745
|
addCommands() {
|
|
21730
21746
|
return {
|
|
21731
21747
|
removeEmptyTextStyle: () => ({ state: t, commands: e }) => {
|
|
21732
|
-
const n =
|
|
21748
|
+
const n = ws(t, this.type);
|
|
21733
21749
|
return Object.entries(n).some(([, i]) => !!i) ? !0 : e.unsetMark(this.name);
|
|
21734
21750
|
}
|
|
21735
21751
|
};
|
|
@@ -22251,7 +22267,7 @@ const iE = /* @__PURE__ */ ve(QA, [["render", rE]]), oE = {}, sE = {
|
|
|
22251
22267
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22252
22268
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
22253
22269
|
fill: "currentColor"
|
|
22254
|
-
}, aE = /* @__PURE__ */
|
|
22270
|
+
}, aE = /* @__PURE__ */ Xo('<g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><title>Heading_1_fill</title> <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Editor" transform="translate(-432.000000, -48.000000)" fill-rule="nonzero"><g id="Heading_1_fill" transform="translate(432.000000, 48.000000)"><path d="M24,0 L24,24 L0,24 L0,0 L24,0 Z M12.5934901,23.257841 L12.5819402,23.2595131 L12.5108777,23.2950439 L12.4918791,23.2987469 L12.4918791,23.2987469 L12.4767152,23.2950439 L12.4056548,23.2595131 C12.3958229,23.2563662 12.3870493,23.2590235 12.3821421,23.2649074 L12.3780323,23.275831 L12.360941,23.7031097 L12.3658947,23.7234994 L12.3769048,23.7357139 L12.4804777,23.8096931 L12.4953491,23.8136134 L12.4953491,23.8136134 L12.5071152,23.8096931 L12.6106902,23.7357139 L12.6232938,23.7196733 L12.6232938,23.7196733 L12.6266527,23.7031097 L12.609561,23.275831 C12.6075724,23.2657013 12.6010112,23.2592993 12.5934901,23.257841 L12.5934901,23.257841 Z M12.8583906,23.1452862 L12.8445485,23.1473072 L12.6598443,23.2396597 L12.6498822,23.2499052 L12.6498822,23.2499052 L12.6471943,23.2611114 L12.6650943,23.6906389 L12.6699349,23.7034178 L12.6699349,23.7034178 L12.678386,23.7104931 L12.8793402,23.8032389 C12.8914285,23.8068999 12.9022333,23.8029875 12.9078286,23.7952264 L12.9118235,23.7811639 L12.8776777,23.1665331 C12.8752882,23.1545897 12.8674102,23.1470016 12.8583906,23.1452862 L12.8583906,23.1452862 Z M12.1430473,23.1473072 C12.1332178,23.1423925 12.1221763,23.1452606 12.1156365,23.1525954 L12.1099173,23.1665331 L12.0757714,23.7811639 C12.0751323,23.7926639 12.0828099,23.8018602 12.0926481,23.8045676 L12.108256,23.8032389 L12.3092106,23.7104931 L12.3186497,23.7024347 L12.3186497,23.7024347 L12.3225043,23.6906389 L12.340401,23.2611114 L12.337245,23.2485176 L12.337245,23.2485176 L12.3277531,23.2396597 L12.1430473,23.1473072 Z" id="MingCute" fill-rule="nonzero"></path> <path d="M13,2.5 C13.7796706,2.5 14.4204457,3.09488554 14.4931332,3.85553954 L14.5,4 L14.5,20 C14.5,20.8284 13.8284,21.5 13,21.5 C12.2203294,21.5 11.5795543,20.9050879 11.5068668,20.1444558 L11.5,20 L11.5,13.5 L5.5,13.5 L5.5,20 C5.5,20.8284 4.82843,21.5 4,21.5 C3.22030118,21.5 2.579551,20.9050879 2.50686655,20.1444558 L2.5,20 L2.5,4 C2.5,3.17157 3.17157,2.5 4,2.5 C4.77969882,2.5 5.420449,3.09488554 5.49313345,3.85553954 L5.5,4 L5.5,10.5 L11.5,10.5 L11.5,4 C11.5,3.17157 12.1716,2.5 13,2.5 Z M19.0001,13.5187 L19.0001,20 C19.0001,20.5523 18.5524,21 18.0001,21 C17.4478,21 17.0001,20.5523 17.0001,20 L17.0001,15.366 C16.5471,15.6281 15.9624,15.4962 15.6681,15.0547 C15.3617,14.5951 15.4859,13.9743 15.9454,13.6679 L17.4299,12.6783 C18.101,12.2308 19.0001,12.712 19.0001,13.5187 Z" id="形状" fill="currentColor"></path></g></g></g></g>', 3), lE = [
|
|
22255
22271
|
aE
|
|
22256
22272
|
];
|
|
22257
22273
|
function cE(t, e) {
|
|
@@ -22263,7 +22279,7 @@ const uE = /* @__PURE__ */ ve(oE, [["render", cE]]), dE = {}, fE = {
|
|
|
22263
22279
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22264
22280
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
22265
22281
|
fill: "currentColor"
|
|
22266
|
-
}, hE = /* @__PURE__ */
|
|
22282
|
+
}, hE = /* @__PURE__ */ Xo('<g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><title>Heading_2_fill</title> <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Editor" transform="translate(-480.000000, -48.000000)" fill-rule="nonzero"><g id="Heading_2_fill" transform="translate(480.000000, 48.000000)"><path d="M24,0 L24,24 L0,24 L0,0 L24,0 Z M12.5934901,23.257841 L12.5819402,23.2595131 L12.5108777,23.2950439 L12.4918791,23.2987469 L12.4918791,23.2987469 L12.4767152,23.2950439 L12.4056548,23.2595131 C12.3958229,23.2563662 12.3870493,23.2590235 12.3821421,23.2649074 L12.3780323,23.275831 L12.360941,23.7031097 L12.3658947,23.7234994 L12.3769048,23.7357139 L12.4804777,23.8096931 L12.4953491,23.8136134 L12.4953491,23.8136134 L12.5071152,23.8096931 L12.6106902,23.7357139 L12.6232938,23.7196733 L12.6232938,23.7196733 L12.6266527,23.7031097 L12.609561,23.275831 C12.6075724,23.2657013 12.6010112,23.2592993 12.5934901,23.257841 L12.5934901,23.257841 Z M12.8583906,23.1452862 L12.8445485,23.1473072 L12.6598443,23.2396597 L12.6498822,23.2499052 L12.6498822,23.2499052 L12.6471943,23.2611114 L12.6650943,23.6906389 L12.6699349,23.7034178 L12.6699349,23.7034178 L12.678386,23.7104931 L12.8793402,23.8032389 C12.8914285,23.8068999 12.9022333,23.8029875 12.9078286,23.7952264 L12.9118235,23.7811639 L12.8776777,23.1665331 C12.8752882,23.1545897 12.8674102,23.1470016 12.8583906,23.1452862 L12.8583906,23.1452862 Z M12.1430473,23.1473072 C12.1332178,23.1423925 12.1221763,23.1452606 12.1156365,23.1525954 L12.1099173,23.1665331 L12.0757714,23.7811639 C12.0751323,23.7926639 12.0828099,23.8018602 12.0926481,23.8045676 L12.108256,23.8032389 L12.3092106,23.7104931 L12.3186497,23.7024347 L12.3186497,23.7024347 L12.3225043,23.6906389 L12.340401,23.2611114 L12.337245,23.2485176 L12.337245,23.2485176 L12.3277531,23.2396597 L12.1430473,23.1473072 Z" id="MingCute" fill-rule="nonzero"></path> <path d="M13,2.5 C13.7796706,2.5 14.4204457,3.09488554 14.4931332,3.85553954 L14.5,4 L14.5,20 C14.5,20.8284 13.8284,21.5 13,21.5 C12.2203294,21.5 11.5795543,20.9050879 11.5068668,20.1444558 L11.5,20 L11.5,13.5 L5.5,13.5 L5.5,20 C5.5,20.8284 4.82843,21.5 4,21.5 C3.22030118,21.5 2.579551,20.9050879 2.50686655,20.1444558 L2.5,20 L2.5,4 C2.5,3.17157 3.17157,2.5 4,2.5 C4.77969882,2.5 5.420449,3.09488554 5.49313345,3.85553954 L5.5,4 L5.5,10.5 L11.5,10.5 L11.5,4 C11.5,3.17157 12.1716,2.5 13,2.5 Z M17.6575,12.6792 C18.2901,12.521 18.9499,12.6085 19.5304,12.8987 C20.6957,13.4814 21.2873,14.8195 20.9732,16.0757 C20.8743714,16.4711857 20.6906857,16.8394878 20.4358711,17.1556055 L20.3026,17.3092 L18.7244,19.0001 L20.3542,19.0001 C20.9065,19.0001 21.3542,19.4478 21.3542,20.0001 C21.3542,20.51295 20.968173,20.9356092 20.4708239,20.9933725 L20.3542,21.0001 L16.6492,21.0001 C16.0918,21.0001 15.6399,20.5482 15.6399,19.9908 C15.6399,19.69785 15.6621031,19.4213609 15.830043,19.1827703 L15.9113,19.0829 L18.8405,15.9446 C19.313,15.4383 18.8904,14.4325 18.1425,14.6195 C17.8287222,14.6979889 17.6756556,14.9547296 17.6455145,15.2464465 L17.6399,15.3572 C17.6399,15.9095 17.1922,16.3572 16.6399,16.3572 C16.0876,16.3572 15.6399,15.9095 15.6399,15.3572 C15.6399,14.1109 16.4218,12.9881 17.6575,12.6792 Z" id="形状" fill="currentColor"></path></g></g></g></g>', 3), pE = [
|
|
22267
22283
|
hE
|
|
22268
22284
|
];
|
|
22269
22285
|
function mE(t, e) {
|
|
@@ -22275,7 +22291,7 @@ const gE = /* @__PURE__ */ ve(dE, [["render", mE]]), yE = {}, vE = {
|
|
|
22275
22291
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22276
22292
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
22277
22293
|
fill: "currentColor"
|
|
22278
|
-
}, bE = /* @__PURE__ */
|
|
22294
|
+
}, bE = /* @__PURE__ */ Xo('<g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"><title>Heading_3_fill</title> <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Editor" transform="translate(-528.000000, -48.000000)" fill-rule="nonzero"><g id="Heading_3_fill" transform="translate(528.000000, 48.000000)"><path d="M24,0 L24,24 L0,24 L0,0 L24,0 Z M12.5934901,23.257841 L12.5819402,23.2595131 L12.5108777,23.2950439 L12.4918791,23.2987469 L12.4918791,23.2987469 L12.4767152,23.2950439 L12.4056548,23.2595131 C12.3958229,23.2563662 12.3870493,23.2590235 12.3821421,23.2649074 L12.3780323,23.275831 L12.360941,23.7031097 L12.3658947,23.7234994 L12.3769048,23.7357139 L12.4804777,23.8096931 L12.4953491,23.8136134 L12.4953491,23.8136134 L12.5071152,23.8096931 L12.6106902,23.7357139 L12.6232938,23.7196733 L12.6232938,23.7196733 L12.6266527,23.7031097 L12.609561,23.275831 C12.6075724,23.2657013 12.6010112,23.2592993 12.5934901,23.257841 L12.5934901,23.257841 Z M12.8583906,23.1452862 L12.8445485,23.1473072 L12.6598443,23.2396597 L12.6498822,23.2499052 L12.6498822,23.2499052 L12.6471943,23.2611114 L12.6650943,23.6906389 L12.6699349,23.7034178 L12.6699349,23.7034178 L12.678386,23.7104931 L12.8793402,23.8032389 C12.8914285,23.8068999 12.9022333,23.8029875 12.9078286,23.7952264 L12.9118235,23.7811639 L12.8776777,23.1665331 C12.8752882,23.1545897 12.8674102,23.1470016 12.8583906,23.1452862 L12.8583906,23.1452862 Z M12.1430473,23.1473072 C12.1332178,23.1423925 12.1221763,23.1452606 12.1156365,23.1525954 L12.1099173,23.1665331 L12.0757714,23.7811639 C12.0751323,23.7926639 12.0828099,23.8018602 12.0926481,23.8045676 L12.108256,23.8032389 L12.3092106,23.7104931 L12.3186497,23.7024347 L12.3186497,23.7024347 L12.3225043,23.6906389 L12.340401,23.2611114 L12.337245,23.2485176 L12.337245,23.2485176 L12.3277531,23.2396597 L12.1430473,23.1473072 Z" id="MingCute" fill-rule="nonzero"></path> <path d="M13,2.5 C13.7796706,2.5 14.4204457,3.09488554 14.4931332,3.85553954 L14.5,4 L14.5,20 C14.5,20.8284 13.8284,21.5 13,21.5 C12.2203294,21.5 11.5795543,20.9050879 11.5068668,20.1444558 L11.5,20 L11.5,13.5 L5.5,13.5 L5.5,20 C5.5,20.8284 4.82843,21.5 4,21.5 C3.22030118,21.5 2.579551,20.9050879 2.50686655,20.1444558 L2.5,20 L2.5,4 C2.5,3.17157 3.17157,2.5 4,2.5 C4.77969882,2.5 5.420449,3.09488554 5.49313345,3.85553954 L5.5,4 L5.5,10.5 L11.5,10.5 L11.5,4 C11.5,3.17157 12.1716,2.5 13,2.5 Z M18.3715,12.5 C19.827,12.5 21.0001,13.6854 21.0001,15.1334 C21.0001,15.7245 20.8,16.2932 20.4418,16.7501 C20.7999,17.2069 20.9999,17.7756 20.9999,18.3666 C20.9999,19.8146 19.8268,21 18.3713,21 C17.3195,21 16.332,20.6496 15.8873,19.6016 C15.6461,19.033 15.6582,18.3518 16.3235,18.0694 C16.7955857,17.8691071 17.3354439,18.0594112 17.5829394,18.4946729 L17.6347,18.5994 C17.7727273,18.9247091 17.9135661,18.9858645 18.1765622,18.9973488 L18.3713,19 L18.3713,19 C18.7147,19 18.9999,18.7176 18.9999,18.3666 C18.9999,17.9941455 18.7151893,17.7892942 18.3855875,17.7551267 L18.2856,17.75 C17.7333,17.75 17.2856,17.3023 17.2856,16.75 C17.2856,16.23715 17.6717995,15.8144908 18.1691731,15.7567275 L18.2858,15.75 C18.6556,15.75 19.0001,15.5431 19.0001,15.1334 C19.0001,14.7824 18.7149,14.5 18.3715,14.5 L18.1767622,14.5026512 C17.9429879,14.5128595 17.8057329,14.562314 17.6811769,14.8016529 L17.6349,14.9006 C17.4192,15.409 16.8322,15.6463 16.3238,15.4306 C15.6584,15.1482 15.6463,14.467 15.8876,13.8984 C16.3323,12.8504 17.3197,12.5 18.3715,12.5 Z" id="形状" fill="currentColor"></path></g></g></g></g>', 3), xE = [
|
|
22279
22295
|
bE
|
|
22280
22296
|
];
|
|
22281
22297
|
function wE(t, e) {
|
|
@@ -22473,7 +22489,7 @@ const f4 = /* @__PURE__ */ ve(o4, [["render", d4]]), h4 = { class: "py-1 px-1 bo
|
|
|
22473
22489
|
var m;
|
|
22474
22490
|
return R(c) ? (b(), S("div", {
|
|
22475
22491
|
key: 0,
|
|
22476
|
-
class: G(["pt-px relative flex flex-col rounded-sm border", s[R(
|
|
22492
|
+
class: G(["pt-px relative flex flex-col rounded-sm border", s[R(fe).theme]])
|
|
22477
22493
|
}, [
|
|
22478
22494
|
A("div", h4, [
|
|
22479
22495
|
A("div", p4, [
|
|
@@ -22496,9 +22512,9 @@ const f4 = /* @__PURE__ */ ve(o4, [["render", d4]]), h4 = { class: "py-1 px-1 bo
|
|
|
22496
22512
|
class: "w-0",
|
|
22497
22513
|
onInput: f
|
|
22498
22514
|
}, null, 544), [
|
|
22499
|
-
[
|
|
22515
|
+
[sa, r.value]
|
|
22500
22516
|
])
|
|
22501
|
-
])) :
|
|
22517
|
+
])) : Q("", !0),
|
|
22502
22518
|
(b(!0), S($e, null, We(a.filter((y) => y.active), (y) => (b(), S("div", {
|
|
22503
22519
|
key: y.method,
|
|
22504
22520
|
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", {
|
|
@@ -22522,7 +22538,7 @@ const f4 = /* @__PURE__ */ ve(o4, [["render", d4]]), h4 = { class: "py-1 px-1 bo
|
|
|
22522
22538
|
}, [
|
|
22523
22539
|
le(R(l7), { editor: R(c) }, null, 8, ["editor"])
|
|
22524
22540
|
], 4)
|
|
22525
|
-
], 2)) :
|
|
22541
|
+
], 2)) : Q("", !0);
|
|
22526
22542
|
};
|
|
22527
22543
|
}
|
|
22528
22544
|
}), b4 = {}, x4 = {
|
|
@@ -22623,19 +22639,19 @@ const R4 = /* @__PURE__ */ ve(D4, [["render", V4]]), _4 = {
|
|
|
22623
22639
|
t.complete ? (b(), ge(C4, {
|
|
22624
22640
|
key: 0,
|
|
22625
22641
|
class: "w-2.5 h-2.5"
|
|
22626
|
-
})) :
|
|
22642
|
+
})) : Q("", !0),
|
|
22627
22643
|
t.incomplete ? (b(), ge(E4, {
|
|
22628
22644
|
key: 1,
|
|
22629
22645
|
class: "w-2.5 h-2.5 opacity-80"
|
|
22630
|
-
})) :
|
|
22646
|
+
})) : Q("", !0),
|
|
22631
22647
|
t.partially ? (b(), ge(R4, {
|
|
22632
22648
|
key: 2,
|
|
22633
22649
|
class: "w-2.5 h-2.5 opacity-80"
|
|
22634
|
-
})) :
|
|
22650
|
+
})) : Q("", !0),
|
|
22635
22651
|
Me(e.$slots, "default")
|
|
22636
22652
|
], 2));
|
|
22637
22653
|
}
|
|
22638
|
-
}),
|
|
22654
|
+
}), ta = {
|
|
22639
22655
|
__name: "DayItem",
|
|
22640
22656
|
props: {
|
|
22641
22657
|
day: {},
|
|
@@ -22686,17 +22702,17 @@ const R4 = /* @__PURE__ */ ve(D4, [["render", V4]]), _4 = {
|
|
|
22686
22702
|
}, [
|
|
22687
22703
|
A("div", {
|
|
22688
22704
|
class: G(["h-8 w-full flex justify-center items-center", {
|
|
22689
|
-
[`${r[R(
|
|
22690
|
-
[`${i[R(
|
|
22691
|
-
[`${o[R(
|
|
22692
|
-
[`${s[R(
|
|
22705
|
+
[`${r[R(fe).theme]}`]: t.between,
|
|
22706
|
+
[`${i[R(fe).theme]}`]: t.firstDay,
|
|
22707
|
+
[`${o[R(fe).theme]}`]: t.lastDay,
|
|
22708
|
+
[`${s[R(fe).theme]}`]: t.highlight
|
|
22693
22709
|
}]),
|
|
22694
22710
|
style: un({ marginLeft: t.firstDay ? "50%" : void 0, marginRight: t.lastDay ? "50%" : void 0 })
|
|
22695
22711
|
}, [
|
|
22696
22712
|
A("span", {
|
|
22697
22713
|
class: G(["absolute w-8 h-8 flex items-center justify-center dark:text-gray-400", {
|
|
22698
|
-
[`${e[R(
|
|
22699
|
-
[`${n[R(
|
|
22714
|
+
[`${e[R(fe).theme]}`]: !0,
|
|
22715
|
+
[`${n[R(fe).theme]}`]: t.highlight && (t.firstDay || t.lastDay)
|
|
22700
22716
|
}]),
|
|
22701
22717
|
style: { left: "50%", transform: "translateX(-50%)" }
|
|
22702
22718
|
}, [
|
|
@@ -22724,8 +22740,8 @@ var jp = { exports: {} };
|
|
|
22724
22740
|
return (O <= 0 ? "+" : "-") + E(B, 2, "0") + ":" + E(j, 2, "0");
|
|
22725
22741
|
}, m: function _(O, C) {
|
|
22726
22742
|
if (O.date() < C.date()) return -_(C, O);
|
|
22727
|
-
var B = 12 * (C.year() - O.year()) + (C.month() - O.month()), j = O.clone().add(B, d),
|
|
22728
|
-
return +(-(B + (C - j) / (
|
|
22743
|
+
var B = 12 * (C.year() - O.year()) + (C.month() - O.month()), j = O.clone().add(B, d), ee = C - j < 0, re = O.clone().add(B + (ee ? -1 : 1), d);
|
|
22744
|
+
return +(-(B + (C - j) / (ee ? j - re : re - j)) || 0);
|
|
22729
22745
|
}, a: function(_) {
|
|
22730
22746
|
return _ < 0 ? Math.ceil(_) || 0 : Math.floor(_);
|
|
22731
22747
|
}, p: function(_) {
|
|
@@ -22740,8 +22756,8 @@ var jp = { exports: {} };
|
|
|
22740
22756
|
var j;
|
|
22741
22757
|
if (!O) return $;
|
|
22742
22758
|
if (typeof O == "string") {
|
|
22743
|
-
var
|
|
22744
|
-
w[
|
|
22759
|
+
var ee = O.toLowerCase();
|
|
22760
|
+
w[ee] && (j = ee), C && (w[ee] = C, j = ee);
|
|
22745
22761
|
var re = O.split("-");
|
|
22746
22762
|
if (!j && re.length > 1) return _(re[0]);
|
|
22747
22763
|
} else {
|
|
@@ -22764,7 +22780,7 @@ var jp = { exports: {} };
|
|
|
22764
22780
|
var O = _.prototype;
|
|
22765
22781
|
return O.parse = function(C) {
|
|
22766
22782
|
this.$d = function(B) {
|
|
22767
|
-
var j = B.date,
|
|
22783
|
+
var j = B.date, ee = B.utc;
|
|
22768
22784
|
if (j === null) return /* @__PURE__ */ new Date(NaN);
|
|
22769
22785
|
if (D.u(j)) return /* @__PURE__ */ new Date();
|
|
22770
22786
|
if (j instanceof Date) return new Date(j);
|
|
@@ -22772,7 +22788,7 @@ var jp = { exports: {} };
|
|
|
22772
22788
|
var re = j.match(m);
|
|
22773
22789
|
if (re) {
|
|
22774
22790
|
var N = re[2] - 1 || 0, P = (re[7] || "0").substring(0, 3);
|
|
22775
|
-
return
|
|
22791
|
+
return ee ? new Date(Date.UTC(re[1], N, re[3] || 1, re[4] || 0, re[5] || 0, re[6] || 0, P)) : new Date(re[1], N, re[3] || 1, re[4] || 0, re[5] || 0, re[6] || 0, P);
|
|
22776
22792
|
}
|
|
22777
22793
|
}
|
|
22778
22794
|
return new Date(j);
|
|
@@ -22798,20 +22814,20 @@ var jp = { exports: {} };
|
|
|
22798
22814
|
}, O.valueOf = function() {
|
|
22799
22815
|
return this.$d.getTime();
|
|
22800
22816
|
}, O.startOf = function(C, B) {
|
|
22801
|
-
var j = this,
|
|
22817
|
+
var j = this, ee = !!D.u(B) || B, re = D.p(C), N = function(me, Te) {
|
|
22802
22818
|
var De = D.w(j.$u ? Date.UTC(j.$y, Te, me) : new Date(j.$y, Te, me), j);
|
|
22803
|
-
return
|
|
22819
|
+
return ee ? De : De.endOf(c);
|
|
22804
22820
|
}, P = function(me, Te) {
|
|
22805
|
-
return D.w(j.toDate()[me].apply(j.toDate("s"), (
|
|
22821
|
+
return D.w(j.toDate()[me].apply(j.toDate("s"), (ee ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Te)), j);
|
|
22806
22822
|
}, W = this.$W, ie = this.$M, Y = this.$D, F = "set" + (this.$u ? "UTC" : "");
|
|
22807
22823
|
switch (re) {
|
|
22808
22824
|
case h:
|
|
22809
|
-
return
|
|
22825
|
+
return ee ? N(1, 0) : N(31, 11);
|
|
22810
22826
|
case d:
|
|
22811
|
-
return
|
|
22827
|
+
return ee ? N(1, ie) : N(0, ie + 1);
|
|
22812
22828
|
case u:
|
|
22813
22829
|
var se = this.$locale().weekStart || 0, Ce = (W < se ? W + 7 : W) - se;
|
|
22814
|
-
return N(
|
|
22830
|
+
return N(ee ? Y - Ce : Y + (6 - Ce), ie);
|
|
22815
22831
|
case c:
|
|
22816
22832
|
case p:
|
|
22817
22833
|
return P(F + "Hours", 0);
|
|
@@ -22827,8 +22843,8 @@ var jp = { exports: {} };
|
|
|
22827
22843
|
}, O.endOf = function(C) {
|
|
22828
22844
|
return this.startOf(C, !1);
|
|
22829
22845
|
}, O.$set = function(C, B) {
|
|
22830
|
-
var j,
|
|
22831
|
-
if (
|
|
22846
|
+
var j, ee = D.p(C), re = "set" + (this.$u ? "UTC" : ""), N = (j = {}, j[c] = re + "Date", j[p] = re + "Date", j[d] = re + "Month", j[h] = re + "FullYear", j[l] = re + "Hours", j[a] = re + "Minutes", j[s] = re + "Seconds", j[o] = re + "Milliseconds", j)[ee], P = ee === c ? this.$D + (B - this.$W) : B;
|
|
22847
|
+
if (ee === d || ee === h) {
|
|
22832
22848
|
var W = this.clone().set(p, 1);
|
|
22833
22849
|
W.$d[N](P), W.init(), this.$d = W.set(p, Math.min(this.$D, W.daysInMonth())).$d;
|
|
22834
22850
|
} else N && this.$d[N](P);
|
|
@@ -22838,11 +22854,11 @@ var jp = { exports: {} };
|
|
|
22838
22854
|
}, O.get = function(C) {
|
|
22839
22855
|
return this[D.p(C)]();
|
|
22840
22856
|
}, O.add = function(C, B) {
|
|
22841
|
-
var j,
|
|
22857
|
+
var j, ee = this;
|
|
22842
22858
|
C = Number(C);
|
|
22843
22859
|
var re = D.p(B), N = function(ie) {
|
|
22844
|
-
var Y = L(
|
|
22845
|
-
return D.w(Y.date(Y.date() + Math.round(ie * C)),
|
|
22860
|
+
var Y = L(ee);
|
|
22861
|
+
return D.w(Y.date(Y.date() + Math.round(ie * C)), ee);
|
|
22846
22862
|
};
|
|
22847
22863
|
if (re === d) return this.set(d, this.$M + C);
|
|
22848
22864
|
if (re === h) return this.set(h, this.$y + C);
|
|
@@ -22855,15 +22871,15 @@ var jp = { exports: {} };
|
|
|
22855
22871
|
}, O.format = function(C) {
|
|
22856
22872
|
var B = this, j = this.$locale();
|
|
22857
22873
|
if (!this.isValid()) return j.invalidDate || g;
|
|
22858
|
-
var
|
|
22859
|
-
return Te && (Te[De] || Te(B,
|
|
22874
|
+
var ee = C || "YYYY-MM-DDTHH:mm:ssZ", re = D.z(this), N = this.$H, P = this.$m, W = this.$M, ie = j.weekdays, Y = j.months, F = j.meridiem, se = function(Te, De, _e, Ot) {
|
|
22875
|
+
return Te && (Te[De] || Te(B, ee)) || _e[De].slice(0, Ot);
|
|
22860
22876
|
}, Ce = function(Te) {
|
|
22861
22877
|
return D.s(N % 12 || 12, Te, "0");
|
|
22862
22878
|
}, me = F || function(Te, De, _e) {
|
|
22863
22879
|
var Ot = Te < 12 ? "AM" : "PM";
|
|
22864
22880
|
return _e ? Ot.toLowerCase() : Ot;
|
|
22865
22881
|
};
|
|
22866
|
-
return
|
|
22882
|
+
return ee.replace(y, function(Te, De) {
|
|
22867
22883
|
return De || function(_e) {
|
|
22868
22884
|
switch (_e) {
|
|
22869
22885
|
case "YY":
|
|
@@ -22921,46 +22937,46 @@ var jp = { exports: {} };
|
|
|
22921
22937
|
}, O.utcOffset = function() {
|
|
22922
22938
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
22923
22939
|
}, O.diff = function(C, B, j) {
|
|
22924
|
-
var
|
|
22940
|
+
var ee, re = this, N = D.p(B), P = L(C), W = (P.utcOffset() - this.utcOffset()) * r, ie = this - P, Y = function() {
|
|
22925
22941
|
return D.m(re, P);
|
|
22926
22942
|
};
|
|
22927
22943
|
switch (N) {
|
|
22928
22944
|
case h:
|
|
22929
|
-
|
|
22945
|
+
ee = Y() / 12;
|
|
22930
22946
|
break;
|
|
22931
22947
|
case d:
|
|
22932
|
-
|
|
22948
|
+
ee = Y();
|
|
22933
22949
|
break;
|
|
22934
22950
|
case f:
|
|
22935
|
-
|
|
22951
|
+
ee = Y() / 3;
|
|
22936
22952
|
break;
|
|
22937
22953
|
case u:
|
|
22938
|
-
|
|
22954
|
+
ee = (ie - W) / 6048e5;
|
|
22939
22955
|
break;
|
|
22940
22956
|
case c:
|
|
22941
|
-
|
|
22957
|
+
ee = (ie - W) / 864e5;
|
|
22942
22958
|
break;
|
|
22943
22959
|
case l:
|
|
22944
|
-
|
|
22960
|
+
ee = ie / i;
|
|
22945
22961
|
break;
|
|
22946
22962
|
case a:
|
|
22947
|
-
|
|
22963
|
+
ee = ie / r;
|
|
22948
22964
|
break;
|
|
22949
22965
|
case s:
|
|
22950
|
-
|
|
22966
|
+
ee = ie / n;
|
|
22951
22967
|
break;
|
|
22952
22968
|
default:
|
|
22953
|
-
|
|
22969
|
+
ee = ie;
|
|
22954
22970
|
}
|
|
22955
|
-
return j ?
|
|
22971
|
+
return j ? ee : D.a(ee);
|
|
22956
22972
|
}, O.daysInMonth = function() {
|
|
22957
22973
|
return this.endOf(d).$D;
|
|
22958
22974
|
}, O.$locale = function() {
|
|
22959
22975
|
return w[this.$L];
|
|
22960
22976
|
}, O.locale = function(C, B) {
|
|
22961
22977
|
if (!C) return this.$L;
|
|
22962
|
-
var j = this.clone(),
|
|
22963
|
-
return
|
|
22978
|
+
var j = this.clone(), ee = V(C, B, !0);
|
|
22979
|
+
return ee && (j.$L = ee), j;
|
|
22964
22980
|
}, O.clone = function() {
|
|
22965
22981
|
return D.w(this.$d, this);
|
|
22966
22982
|
}, O.toDate = function() {
|
|
@@ -23210,7 +23226,7 @@ const U4 = /* @__PURE__ */ Ji(W4), q4 = { class: "w-full dark:text-gray-400" },
|
|
|
23210
23226
|
const W = r.value[N].month(Number(P));
|
|
23211
23227
|
L(N, W);
|
|
23212
23228
|
}
|
|
23213
|
-
const
|
|
23229
|
+
const ee = ue(() => {
|
|
23214
23230
|
const N = n.defaultMinYear, P = n.defaultMaxYear, W = [];
|
|
23215
23231
|
for (let ie = N; ie <= P; ie++)
|
|
23216
23232
|
W.push(ie);
|
|
@@ -23252,7 +23268,7 @@ const U4 = /* @__PURE__ */ Ji(W4), q4 = { class: "w-full dark:text-gray-400" },
|
|
|
23252
23268
|
onChange: (Y) => B(W, Y.target.value),
|
|
23253
23269
|
class: "bg-none appearance-none outline-hidden cursor-pointer"
|
|
23254
23270
|
}, [
|
|
23255
|
-
(b(!0), S($e, null, We(
|
|
23271
|
+
(b(!0), S($e, null, We(ee.value, (Y) => (b(), S("option", {
|
|
23256
23272
|
key: Y,
|
|
23257
23273
|
value: Y
|
|
23258
23274
|
}, be(Y), 9, Z4))), 128))
|
|
@@ -23289,7 +23305,7 @@ const U4 = /* @__PURE__ */ Ji(W4), q4 = { class: "w-full dark:text-gray-400" },
|
|
|
23289
23305
|
class: "grid grid-cols-7",
|
|
23290
23306
|
onMouseout: C
|
|
23291
23307
|
}, [
|
|
23292
|
-
l(r.value[W]) > 0 ? (b(!0), S($e, { key: 0 }, We(c(R(U)(r.value[W]).year(), R(U)(r.value[W]).month() + 1), (Y) => (b(), ge(
|
|
23308
|
+
l(r.value[W]) > 0 ? (b(!0), S($e, { key: 0 }, We(c(R(U)(r.value[W]).year(), R(U)(r.value[W]).month() + 1), (Y) => (b(), ge(ta, {
|
|
23293
23309
|
onClick: (F) => !y(Y) && !m(Y) ? s(Y) : null,
|
|
23294
23310
|
off: ""
|
|
23295
23311
|
}, {
|
|
@@ -23297,8 +23313,8 @@ const U4 = /* @__PURE__ */ Ji(W4), q4 = { class: "w-full dark:text-gray-400" },
|
|
|
23297
23313
|
Ie(be(R(U)(Y).format("D")), 1)
|
|
23298
23314
|
]),
|
|
23299
23315
|
_: 2
|
|
23300
|
-
}, 1032, ["onClick"]))), 256)) :
|
|
23301
|
-
(b(!0), S($e, null, We(a(r.value[W].clone()), (Y) => (b(), ge(
|
|
23316
|
+
}, 1032, ["onClick"]))), 256)) : Q("", !0),
|
|
23317
|
+
(b(!0), S($e, null, We(a(r.value[W].clone()), (Y) => (b(), ge(ta, {
|
|
23302
23318
|
onMouseover: (F) => J(Y),
|
|
23303
23319
|
onClick: (F) => !y(Y) && !m(Y) ? s(Y) : null,
|
|
23304
23320
|
today: d(Y),
|
|
@@ -23315,7 +23331,7 @@ const U4 = /* @__PURE__ */ Ji(W4), q4 = { class: "w-full dark:text-gray-400" },
|
|
|
23315
23331
|
]),
|
|
23316
23332
|
_: 2
|
|
23317
23333
|
}, 1032, ["onMouseover", "onClick", "today", "selected", "firstDay", "lastDay", "between", "disabled", "off", "highlight"]))), 256)),
|
|
23318
|
-
((ie = u(R(U)(r.value[W]).year(), R(U)(r.value[W]).month() + 1)) == null ? void 0 : ie.length) > 0 ? (b(!0), S($e, { key: 1 }, We(u(R(U)(r.value[W]).year(), R(U)(r.value[W]).month() + 1), (Y) => (b(), ge(
|
|
23334
|
+
((ie = u(R(U)(r.value[W]).year(), R(U)(r.value[W]).month() + 1)) == null ? void 0 : ie.length) > 0 ? (b(!0), S($e, { key: 1 }, We(u(R(U)(r.value[W]).year(), R(U)(r.value[W]).month() + 1), (Y) => (b(), ge(ta, {
|
|
23319
23335
|
onClick: (F) => !y(Y) && !m(Y) ? s(Y) : null,
|
|
23320
23336
|
off: ""
|
|
23321
23337
|
}, {
|
|
@@ -23323,7 +23339,7 @@ const U4 = /* @__PURE__ */ Ji(W4), q4 = { class: "w-full dark:text-gray-400" },
|
|
|
23323
23339
|
Ie(be(R(U)(Y).format("D")), 1)
|
|
23324
23340
|
]),
|
|
23325
23341
|
_: 2
|
|
23326
|
-
}, 1032, ["onClick"]))), 256)) :
|
|
23342
|
+
}, 1032, ["onClick"]))), 256)) : Q("", !0)
|
|
23327
23343
|
], 32)
|
|
23328
23344
|
]);
|
|
23329
23345
|
}), 256))
|
|
@@ -23431,7 +23447,7 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
|
|
|
23431
23447
|
class: "opacity-50 hover:opacity-100 dark:text-gray-300 cursor-pointer",
|
|
23432
23448
|
onClick: (u) => c.onClick()
|
|
23433
23449
|
}, be(c.text), 9, gD))), 256))
|
|
23434
|
-
])) :
|
|
23450
|
+
])) : Q("", !0),
|
|
23435
23451
|
le(Ul, {
|
|
23436
23452
|
doubleMonths: t.doubleMonths,
|
|
23437
23453
|
initDates: t.initDates,
|
|
@@ -23477,7 +23493,7 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
|
|
|
23477
23493
|
_: 1
|
|
23478
23494
|
}, 8, ["disabled"]));
|
|
23479
23495
|
}
|
|
23480
|
-
}), bD = { class: "relative inline-block tabular-nums" }, xD = ["value", "placeholder", "maxlength"],
|
|
23496
|
+
}), bD = { class: "relative inline-block tabular-nums" }, xD = ["value", "placeholder", "maxlength"], na = {
|
|
23481
23497
|
__name: "DateSegment",
|
|
23482
23498
|
props: {
|
|
23483
23499
|
modelValue: String,
|
|
@@ -23517,7 +23533,7 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
|
|
|
23517
23533
|
}, null, 42, xD)
|
|
23518
23534
|
]));
|
|
23519
23535
|
}
|
|
23520
|
-
}, wD = { class: "flex items-center gap-0" }, kD = /* @__PURE__ */ A("span", { class: "px-px text-gray-400 dark:text-gray-700" }, "/", -1), SD = /* @__PURE__ */ A("span", { class: "px-px text-gray-400 dark:text-gray-600" }, "/", -1),
|
|
23536
|
+
}, wD = { class: "flex items-center gap-0" }, kD = /* @__PURE__ */ A("span", { class: "px-px text-gray-400 dark:text-gray-700" }, "/", -1), SD = /* @__PURE__ */ A("span", { class: "px-px text-gray-400 dark:text-gray-600" }, "/", -1), ra = {
|
|
23521
23537
|
__name: "DateInput",
|
|
23522
23538
|
props: {
|
|
23523
23539
|
modelValue: String,
|
|
@@ -23557,7 +23573,7 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
|
|
|
23557
23573
|
s.value || (s.value = U().format("DD")), u();
|
|
23558
23574
|
}
|
|
23559
23575
|
return (y, k) => (b(), S("div", wD, [
|
|
23560
|
-
le(
|
|
23576
|
+
le(na, {
|
|
23561
23577
|
modelValue: i.value,
|
|
23562
23578
|
"onUpdate:modelValue": [
|
|
23563
23579
|
k[0] || (k[0] = (E) => i.value = E),
|
|
@@ -23571,7 +23587,7 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
|
|
|
23571
23587
|
ref: a
|
|
23572
23588
|
}, null, 8, ["modelValue", "disabled"]),
|
|
23573
23589
|
kD,
|
|
23574
|
-
le(
|
|
23590
|
+
le(na, {
|
|
23575
23591
|
modelValue: o.value,
|
|
23576
23592
|
"onUpdate:modelValue": [
|
|
23577
23593
|
k[1] || (k[1] = (E) => o.value = E),
|
|
@@ -23585,7 +23601,7 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
|
|
|
23585
23601
|
ref: l
|
|
23586
23602
|
}, null, 8, ["modelValue", "disabled"]),
|
|
23587
23603
|
SD,
|
|
23588
|
-
le(
|
|
23604
|
+
le(na, {
|
|
23589
23605
|
modelValue: s.value,
|
|
23590
23606
|
"onUpdate:modelValue": [
|
|
23591
23607
|
k[2] || (k[2] = (E) => s.value = E),
|
|
@@ -23693,7 +23709,7 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
|
|
|
23693
23709
|
class: "opacity-50 hover:opacity-100 dark:text-gray-300 cursor-pointer",
|
|
23694
23710
|
onClick: (g) => p.onClick()
|
|
23695
23711
|
}, be(p.text), 9, AD))), 256))
|
|
23696
|
-
])) :
|
|
23712
|
+
])) : Q("", !0),
|
|
23697
23713
|
le(Ul, {
|
|
23698
23714
|
doubleMonths: t.doubleMonths,
|
|
23699
23715
|
displayYearStart: i.value,
|
|
@@ -23734,7 +23750,7 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
|
|
|
23734
23750
|
default: xe(() => [
|
|
23735
23751
|
A("div", CD, [
|
|
23736
23752
|
t.range ? t.range ? (b(), S("div", OD, [
|
|
23737
|
-
le(
|
|
23753
|
+
le(ra, {
|
|
23738
23754
|
modelValue: c.value[0],
|
|
23739
23755
|
"onUpdate:modelValue": h[3] || (h[3] = (p) => c.value[0] = p),
|
|
23740
23756
|
disabled: t.disabled,
|
|
@@ -23742,7 +23758,7 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
|
|
|
23742
23758
|
"onUpdate:displayMonth": h[5] || (h[5] = (p) => o.value = p)
|
|
23743
23759
|
}, null, 8, ["modelValue", "disabled"]),
|
|
23744
23760
|
MD,
|
|
23745
|
-
le(
|
|
23761
|
+
le(ra, {
|
|
23746
23762
|
modelValue: c.value[1],
|
|
23747
23763
|
"onUpdate:modelValue": h[6] || (h[6] = (p) => c.value[1] = p),
|
|
23748
23764
|
disabled: t.disabled,
|
|
@@ -23755,7 +23771,7 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
|
|
|
23755
23771
|
}, null, 8, ["modelValue", "disabled"])
|
|
23756
23772
|
])) : (b(), S($e, { key: 2 }, [
|
|
23757
23773
|
Ie(be(t.placeholder), 1)
|
|
23758
|
-
], 64)) : (b(), ge(
|
|
23774
|
+
], 64)) : (b(), ge(ra, {
|
|
23759
23775
|
key: 0,
|
|
23760
23776
|
modelValue: c.value,
|
|
23761
23777
|
"onUpdate:modelValue": h[0] || (h[0] = (p) => c.value = p),
|
|
@@ -23831,7 +23847,7 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
|
|
|
23831
23847
|
"translate-x-full": !t.visible,
|
|
23832
23848
|
[t.backgroundColor]: !0,
|
|
23833
23849
|
[t.options.width]: !0,
|
|
23834
|
-
[r[R(
|
|
23850
|
+
[r[R(fe).theme]]: !0
|
|
23835
23851
|
}])
|
|
23836
23852
|
}, [
|
|
23837
23853
|
A("div", {
|
|
@@ -23916,7 +23932,7 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
|
|
|
23916
23932
|
], 2),
|
|
23917
23933
|
d.$slots.buttons ? (b(), S("div", PD, [
|
|
23918
23934
|
Me(d.$slots, "buttons")
|
|
23919
|
-
])) :
|
|
23935
|
+
])) : Q("", !0)
|
|
23920
23936
|
], 2)
|
|
23921
23937
|
])
|
|
23922
23938
|
], 2));
|
|
@@ -23963,7 +23979,7 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
|
|
|
23963
23979
|
class: G({ "whitespace-nowrap text-ellipsis overflow-hidden": t.nowrap })
|
|
23964
23980
|
}, {
|
|
23965
23981
|
default: xe(() => [
|
|
23966
|
-
u.labelSlot ?
|
|
23982
|
+
u.labelSlot ? Q("", !0) : (b(), S($e, { key: 0 }, [
|
|
23967
23983
|
Ie(be(u.label), 1)
|
|
23968
23984
|
], 64))
|
|
23969
23985
|
]),
|
|
@@ -24011,7 +24027,7 @@ const Wp = /* @__PURE__ */ ve(cD, [["render", hD]]), pD = { class: "flex gap-3"
|
|
|
24011
24027
|
class: G(["wpic-tab-pane", { "py-3 px-6": !t.noStyle }])
|
|
24012
24028
|
}, [
|
|
24013
24029
|
Me(s.$slots, "default")
|
|
24014
|
-
], 2)) :
|
|
24030
|
+
], 2)) : Q("", !0);
|
|
24015
24031
|
}
|
|
24016
24032
|
}), WD = {}, UD = {
|
|
24017
24033
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -24114,10 +24130,10 @@ const h6 = /* @__PURE__ */ ve(l6, [["render", f6]]), p6 = { class: "w-6" }, m6 =
|
|
|
24114
24130
|
})) : t.error ? (b(), ge(h6, {
|
|
24115
24131
|
key: 3,
|
|
24116
24132
|
class: "w-full aspect-square"
|
|
24117
|
-
})) :
|
|
24133
|
+
})) : Q("", !0)
|
|
24118
24134
|
]),
|
|
24119
24135
|
A("div", m6, [
|
|
24120
|
-
t.title ? (b(), S("div", g6, be(t.title), 1)) :
|
|
24136
|
+
t.title ? (b(), S("div", g6, be(t.title), 1)) : Q("", !0),
|
|
24121
24137
|
A("span", {
|
|
24122
24138
|
class: G(["", {
|
|
24123
24139
|
"text-gray-950 dark:text-gray-200 text-opacity-75": !t.warning && !t.info && !t.error && !t.success,
|
|
@@ -24134,7 +24150,7 @@ const h6 = /* @__PURE__ */ ve(l6, [["render", f6]]), p6 = { class: "w-6" }, m6 =
|
|
|
24134
24150
|
])
|
|
24135
24151
|
], 2));
|
|
24136
24152
|
}
|
|
24137
|
-
}),
|
|
24153
|
+
}), ia = ne(!1), vd = ne(""), bd = ne(""), xd = ne(!1), wd = ne(!1);
|
|
24138
24154
|
let kd = () => {
|
|
24139
24155
|
}, Sd = () => {
|
|
24140
24156
|
};
|
|
@@ -24142,12 +24158,12 @@ function Up() {
|
|
|
24142
24158
|
const t = ({ title: i, text: o, positive: s = !1, negative: a = !1, onConfirm: l, onCancel: c }) => {
|
|
24143
24159
|
vd.value = i, bd.value = o, xd.value = s, wd.value = a, kd = l || (() => {
|
|
24144
24160
|
}), Sd = c || (() => {
|
|
24145
|
-
}),
|
|
24161
|
+
}), ia.value = !0;
|
|
24146
24162
|
}, e = () => {
|
|
24147
|
-
|
|
24163
|
+
ia.value = !1;
|
|
24148
24164
|
};
|
|
24149
24165
|
return {
|
|
24150
|
-
visible:
|
|
24166
|
+
visible: ia,
|
|
24151
24167
|
title: vd,
|
|
24152
24168
|
text: bd,
|
|
24153
24169
|
positive: xd,
|
|
@@ -24192,9 +24208,9 @@ const b6 = {
|
|
|
24192
24208
|
}, 8, ["primary", "destructive", "onClick"])
|
|
24193
24209
|
])
|
|
24194
24210
|
])
|
|
24195
|
-
])) :
|
|
24211
|
+
])) : Q("", !0);
|
|
24196
24212
|
}
|
|
24197
|
-
}), M6 = /* @__PURE__ */ ve(O6, [["__scopeId", "data-v-613542ab"]]),
|
|
24213
|
+
}), M6 = /* @__PURE__ */ ve(O6, [["__scopeId", "data-v-613542ab"]]), oa = { WpicColorPicker: Sf, WpicAlert: v6, WpicToggleSwitch: wf, WpicAdvDateField: DD, WpicCalendar: Ul, WpicTextarea: kf, WpicDialog: RD, WpicSlidePanel: LD, WpicDateField: vD, WpicFormInput: Yi, WpicButton: Mi, WpicBadge: j4, WpicTextEditor: v4, WpicInputGroup: Bg, WpicButtonGroup: Dg, WpicForm: Vg, WpicFormField: Cf, WpicSpinner: Zr, WpicTooltip: Of, WpicPopover: mr, WpicChoiceList: xf, WpicCard: t5, WpicCardSection: o5, WpicProgressBar: c5, WpicTag: f5, WpicTagGroup: p5, WpicPagination: J5, WpicLoadingPanel: w5, WpicTable: NS, WpicTableColumn: LS, WpicTabs: zD, WpicTabPane: HD, WpicConfirm: M6 };
|
|
24198
24214
|
function qp(t, e) {
|
|
24199
24215
|
for (const n in e)
|
|
24200
24216
|
Object.prototype.hasOwnProperty.call(e, n) && (typeof e[n] == "object" && t[n] ? qp(t[n], e[n]) : t[n] = e[n]);
|
|
@@ -24203,17 +24219,17 @@ const T6 = {
|
|
|
24203
24219
|
useConfirm: Up
|
|
24204
24220
|
};
|
|
24205
24221
|
function $6(t, e) {
|
|
24206
|
-
qp(
|
|
24207
|
-
for (const n in
|
|
24208
|
-
if (
|
|
24209
|
-
const r =
|
|
24222
|
+
qp(fe, e);
|
|
24223
|
+
for (const n in oa)
|
|
24224
|
+
if (oa.hasOwnProperty(n)) {
|
|
24225
|
+
const r = oa[n];
|
|
24210
24226
|
t.component(r.name, r);
|
|
24211
24227
|
}
|
|
24212
24228
|
}
|
|
24213
24229
|
const D6 = {
|
|
24214
24230
|
install: $6,
|
|
24215
24231
|
composables: T6,
|
|
24216
|
-
options:
|
|
24232
|
+
options: fe
|
|
24217
24233
|
};
|
|
24218
24234
|
export {
|
|
24219
24235
|
D6 as default,
|