@beterdichtbij/component-library 0.31.0 → 0.31.2
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as $e, computed as _e, openBlock as J, createElementBlock as te, normalizeClass as Ke, renderSlot as We, createElementVNode as ee, createStaticVNode as ws, mergeProps as an, resolveComponent as Zm, createBlock as Ye, resolveDynamicComponent as Wo, withCtx as Re, createTextVNode as ct, toDisplayString as Pe, createVNode as Te, unref as Ae, createCommentVNode as
|
|
1
|
+
import { defineComponent as $e, computed as _e, openBlock as J, createElementBlock as te, normalizeClass as Ke, renderSlot as We, createElementVNode as ee, createStaticVNode as ws, mergeProps as an, resolveComponent as Zm, createBlock as Ye, resolveDynamicComponent as Wo, withCtx as Re, createTextVNode as ct, toDisplayString as Pe, createVNode as Te, unref as Ae, createCommentVNode as He, getCurrentScope as Xm, onScopeDispose as Qm, ref as at, watch as Cn, getCurrentInstance as Ff, nextTick as Bf, withDirectives as ls, isRef as rc, vModelText as qm, withKeys as e1, useAttrs as t1, withModifiers as cs, onMounted as ai, vShow as vu, Fragment as rt, renderList as Bt, vModelSelect as n1, vModelCheckbox as r1, normalizeProps as s1, guardReactiveProps as i1, onBeforeUnmount as Ko, h as Qn, watchEffect as o1, Teleport as a1, shallowRef as l1, reactive as c1, markRaw as u1, customRef as d1, createApp as f1 } from "vue";
|
|
2
2
|
const Wr = /* @__PURE__ */ $e({
|
|
3
3
|
__name: "BDCol",
|
|
4
4
|
props: {
|
|
@@ -599,7 +599,7 @@ const qf = /* @__PURE__ */ je(Lv, [["render", $v]]), bu = /^https:/i, Ys = /* @_
|
|
|
599
599
|
ee("span", null, [
|
|
600
600
|
ee("strong", null, Pe(e.title), 1)
|
|
601
601
|
])
|
|
602
|
-
])) :
|
|
602
|
+
])) : He("", !0),
|
|
603
603
|
We(r.$slots, "default")
|
|
604
604
|
], 2));
|
|
605
605
|
}
|
|
@@ -630,7 +630,7 @@ const qf = /* @__PURE__ */ je(Lv, [["render", $v]]), bu = /^https:/i, Ys = /* @_
|
|
|
630
630
|
class: "bd-profile-picture__footer position-absolute bottom-0 start-0",
|
|
631
631
|
onClick: t,
|
|
632
632
|
textContent: Pe(r.linkText)
|
|
633
|
-
}, null, 8, Vv)) :
|
|
633
|
+
}, null, 8, Vv)) : He("", !0)
|
|
634
634
|
], 2));
|
|
635
635
|
}
|
|
636
636
|
});
|
|
@@ -707,7 +707,7 @@ function Zv(n) {
|
|
|
707
707
|
return JSON.parse(JSON.stringify(n));
|
|
708
708
|
}
|
|
709
709
|
function Xv(n, e = {}) {
|
|
710
|
-
const { initialValue: t = !1, focusVisible: r = !1 } = e, s =
|
|
710
|
+
const { initialValue: t = !1, focusVisible: r = !1 } = e, s = at(!1), i = _e(() => eh(n));
|
|
711
711
|
Eu(i, "focus", (l) => {
|
|
712
712
|
var a, c;
|
|
713
713
|
(!r || (c = (a = l.target).matches) != null && c.call(a, ":focus-visible")) && (s.value = !0);
|
|
@@ -743,7 +743,7 @@ function Lr(n, e, t, r = {}) {
|
|
|
743
743
|
f ? f(w) && p(m, w) : p(m, w);
|
|
744
744
|
};
|
|
745
745
|
if (a) {
|
|
746
|
-
const w = E(), y =
|
|
746
|
+
const w = E(), y = at(w);
|
|
747
747
|
let M = !1;
|
|
748
748
|
return Cn(
|
|
749
749
|
() => n[e],
|
|
@@ -844,7 +844,7 @@ function nh(n) {
|
|
|
844
844
|
return bi.substring(gr, gr++ + t);
|
|
845
845
|
}
|
|
846
846
|
function li() {
|
|
847
|
-
return { uniqueIdentifier:
|
|
847
|
+
return { uniqueIdentifier: at(nh()) };
|
|
848
848
|
}
|
|
849
849
|
const i2 = ["id"], o2 = { key: 0 }, oc = /* @__PURE__ */ $e({
|
|
850
850
|
__name: "BDCard",
|
|
@@ -881,10 +881,10 @@ const i2 = ["id"], o2 = { key: 0 }, oc = /* @__PURE__ */ $e({
|
|
|
881
881
|
class: Ke(i.value)
|
|
882
882
|
}, [
|
|
883
883
|
We(l.$slots, "header", {}, () => [
|
|
884
|
-
l.title ? (J(), te("h2", o2, Pe(l.title), 1)) :
|
|
884
|
+
l.title ? (J(), te("h2", o2, Pe(l.title), 1)) : He("", !0)
|
|
885
885
|
])
|
|
886
|
-
], 2)) :
|
|
887
|
-
l.noBody ?
|
|
886
|
+
], 2)) : He("", !0),
|
|
887
|
+
l.noBody ? He("", !0) : (J(), te("div", {
|
|
888
888
|
key: 1,
|
|
889
889
|
class: Ke(o.value)
|
|
890
890
|
}, [
|
|
@@ -934,7 +934,7 @@ const i2 = ["id"], o2 = { key: 0 }, oc = /* @__PURE__ */ $e({
|
|
|
934
934
|
"body-class": l.value
|
|
935
935
|
}, {
|
|
936
936
|
header: Re(() => [
|
|
937
|
-
a.title ? (J(), te("h2", a2, Pe(a.title), 1)) :
|
|
937
|
+
a.title ? (J(), te("h2", a2, Pe(a.title), 1)) : He("", !0),
|
|
938
938
|
ee("div", l2, [
|
|
939
939
|
We(a.$slots, "action"),
|
|
940
940
|
!a.disabled && a.visible ? (J(), te("button", {
|
|
@@ -946,7 +946,7 @@ const i2 = ["id"], o2 = { key: 0 }, oc = /* @__PURE__ */ $e({
|
|
|
946
946
|
"aria-expanded": "true"
|
|
947
947
|
}, [
|
|
948
948
|
Te(Ae(zf))
|
|
949
|
-
], 10, c2)) :
|
|
949
|
+
], 10, c2)) : He("", !0)
|
|
950
950
|
])
|
|
951
951
|
]),
|
|
952
952
|
body: Re(() => [
|
|
@@ -1178,7 +1178,7 @@ const yl = /* @__PURE__ */ new WeakMap(), g2 = (n) => {
|
|
|
1178
1178
|
for: l,
|
|
1179
1179
|
id: i,
|
|
1180
1180
|
class: Ke(["form-label", h.labelClass])
|
|
1181
|
-
}, Pe(h.label), 3)) :
|
|
1181
|
+
}, Pe(h.label), 3)) : He("", !0)
|
|
1182
1182
|
]),
|
|
1183
1183
|
ee("div", {
|
|
1184
1184
|
class: Ke(h.formFieldClass)
|
|
@@ -1220,7 +1220,7 @@ const yl = /* @__PURE__ */ new WeakMap(), g2 = (n) => {
|
|
|
1220
1220
|
key: 0,
|
|
1221
1221
|
for: e.labelForId,
|
|
1222
1222
|
class: "form-label"
|
|
1223
|
-
}, Pe(e.label), 9, E2)) :
|
|
1223
|
+
}, Pe(e.label), 9, E2)) : He("", !0),
|
|
1224
1224
|
ee("div", {
|
|
1225
1225
|
class: Ke(Ae(t).class)
|
|
1226
1226
|
}, [
|
|
@@ -1285,7 +1285,7 @@ const yl = /* @__PURE__ */ new WeakMap(), g2 = (n) => {
|
|
|
1285
1285
|
},
|
|
1286
1286
|
emits: ["click", "update:modelValue"],
|
|
1287
1287
|
setup(n, { emit: e }) {
|
|
1288
|
-
const t = n, r = Lr(t, "modelValue", e), s =
|
|
1288
|
+
const t = n, r = Lr(t, "modelValue", e), s = at(Math.ceil(t.totalRows / t.rowsPerPage)), i = at([]);
|
|
1289
1289
|
Cn([() => t.totalRows, () => t.rowsPerPage], () => {
|
|
1290
1290
|
s.value = Math.ceil(t.totalRows / t.rowsPerPage), i.value = a();
|
|
1291
1291
|
}), ai(() => {
|
|
@@ -1337,7 +1337,7 @@ const yl = /* @__PURE__ */ new WeakMap(), g2 = (n) => {
|
|
|
1337
1337
|
], 512), [
|
|
1338
1338
|
[vu, Ae(r) > 1]
|
|
1339
1339
|
]),
|
|
1340
|
-
(J(!0), te(
|
|
1340
|
+
(J(!0), te(rt, null, Bt(i.value, (d) => (J(), te("li", {
|
|
1341
1341
|
class: Ke(["page-item", { active: Ae(r) === d, disabled: typeof d == "string" }]),
|
|
1342
1342
|
key: d
|
|
1343
1343
|
}, [
|
|
@@ -1374,7 +1374,7 @@ const yl = /* @__PURE__ */ new WeakMap(), g2 = (n) => {
|
|
|
1374
1374
|
},
|
|
1375
1375
|
emits: ["update:modelValue", "change", "input"],
|
|
1376
1376
|
setup(n, { emit: e }) {
|
|
1377
|
-
const t = n, r = Lr(t, "modelValue", e), s =
|
|
1377
|
+
const t = n, r = Lr(t, "modelValue", e), s = at(null), { focused: i } = Xv(s, { initialValue: t.autofocus }), o = _e(() => ({
|
|
1378
1378
|
"form-select": !0,
|
|
1379
1379
|
"bd-form-select": !0,
|
|
1380
1380
|
"is-invalid": t.state === !1,
|
|
@@ -1406,19 +1406,18 @@ const yl = /* @__PURE__ */ new WeakMap(), g2 = (n) => {
|
|
|
1406
1406
|
onInput: l,
|
|
1407
1407
|
onChange: a
|
|
1408
1408
|
}, [
|
|
1409
|
-
We(u.$slots, "first",
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
])
|
|
1409
|
+
We(u.$slots, "first"),
|
|
1410
|
+
t.options && t.options.length > 0 && t.options[0].label && t.options[0].options ? (J(!0), te(rt, { key: 0 }, Bt(t.options, (f) => (J(), te("optgroup", {
|
|
1411
|
+
label: f.label
|
|
1412
|
+
}, [
|
|
1413
|
+
(J(!0), te(rt, null, Bt(f.options, (h) => (J(), te("option", {
|
|
1414
|
+
value: JSON.stringify(h.value),
|
|
1415
|
+
key: h.value
|
|
1416
|
+
}, Pe(h.text), 9, R2))), 128))
|
|
1417
|
+
], 8, L2))), 256)) : (J(!0), te(rt, { key: 1 }, Bt(t.options, (f) => (J(), te("option", {
|
|
1418
|
+
value: f.value,
|
|
1419
|
+
key: f.value
|
|
1420
|
+
}, Pe(f.text), 9, P2))), 128))
|
|
1422
1421
|
], 42, N2)), [
|
|
1423
1422
|
[n1, Ae(r)]
|
|
1424
1423
|
]);
|
|
@@ -1486,12 +1485,12 @@ const yl = /* @__PURE__ */ new WeakMap(), g2 = (n) => {
|
|
|
1486
1485
|
ee("h5", null, Pe(t.title), 1)
|
|
1487
1486
|
])
|
|
1488
1487
|
]),
|
|
1489
|
-
t.hideBody ?
|
|
1488
|
+
t.hideBody ? He("", !0) : (J(), te("div", V2, [
|
|
1490
1489
|
We(s.$slots, "default", {}, () => [
|
|
1491
1490
|
ct(Pe(t.text), 1)
|
|
1492
1491
|
])
|
|
1493
1492
|
])),
|
|
1494
|
-
t.hideFooter ?
|
|
1493
|
+
t.hideFooter ? He("", !0) : (J(), te("footer", H2, [
|
|
1495
1494
|
We(s.$slots, "footer")
|
|
1496
1495
|
]))
|
|
1497
1496
|
]));
|
|
@@ -1785,8 +1784,8 @@ var ih = { exports: {} };
|
|
|
1785
1784
|
var Xe = C(se), Ze = N(Z);
|
|
1786
1785
|
if (Xe + X > Ze.byteLength)
|
|
1787
1786
|
throw ve(Y);
|
|
1788
|
-
for (var Be = N(Ze.buffer).bytes,
|
|
1789
|
-
Be[
|
|
1787
|
+
for (var Be = N(Ze.buffer).bytes, it = Xe + Ze.byteOffset, It = pe(+we), gt = 0; gt < X; gt++)
|
|
1788
|
+
Be[it + gt] = It[Fe ? gt : X - gt - 1];
|
|
1790
1789
|
};
|
|
1791
1790
|
if (!d)
|
|
1792
1791
|
Q = function(X) {
|
|
@@ -3564,7 +3563,7 @@ var ih = { exports: {} };
|
|
|
3564
3563
|
getOwnPropertyDescriptor: G,
|
|
3565
3564
|
defineProperty: K
|
|
3566
3565
|
}), o.exports = function(Z, X, se) {
|
|
3567
|
-
var pe = Z.match(/\d+$/)[0] / 8, we = Z + (se ? "Clamped" : "") + "Array", Fe = "get" + Z, Xe = "set" + Z, Ze = u[we], Be = Ze,
|
|
3566
|
+
var pe = Z.match(/\d+$/)[0] / 8, we = Z + (se ? "Clamped" : "") + "Array", Fe = "get" + Z, Xe = "set" + Z, Ze = u[we], Be = Ze, it = Be && Be.prototype, It = {}, gt = function(fe, he) {
|
|
3568
3567
|
var Me = Q(fe);
|
|
3569
3568
|
return Me.view[Fe](he * pe + Me.byteOffset, !0);
|
|
3570
3569
|
}, Bn = function(fe, he, Me) {
|
|
@@ -3587,7 +3586,7 @@ var ih = { exports: {} };
|
|
|
3587
3586
|
}(), fe, Be);
|
|
3588
3587
|
}), $ && $(Be, k), j(N(Ze), function(fe) {
|
|
3589
3588
|
fe in Be || E(Be, fe, Ze[fe]);
|
|
3590
|
-
}), Be.prototype =
|
|
3589
|
+
}), Be.prototype = it) : (Be = X(function(fe, he, Me, De) {
|
|
3591
3590
|
m(fe, Be, we);
|
|
3592
3591
|
var Qe = 0, tt = 0, St, Ct, ft;
|
|
3593
3592
|
if (!z(he))
|
|
@@ -3611,11 +3610,11 @@ var ih = { exports: {} };
|
|
|
3611
3610
|
view: new Oe(St)
|
|
3612
3611
|
}); Qe < ft; )
|
|
3613
3612
|
q(fe, Qe++);
|
|
3614
|
-
}), $ && $(Be, k),
|
|
3613
|
+
}), $ && $(Be, k), it = Be.prototype = U(S)), it.constructor !== Be && E(it, "constructor", Be), x && E(it, x, we), It[we] = Be, c({
|
|
3615
3614
|
global: !0,
|
|
3616
3615
|
forced: Be != Ze,
|
|
3617
3616
|
sham: !be
|
|
3618
|
-
}, It), b in Be || E(Be, b, pe), b in
|
|
3617
|
+
}, It), b in Be || E(Be, b, pe), b in it || E(it, b, pe), H(we);
|
|
3619
3618
|
}) : o.exports = function() {
|
|
3620
3619
|
};
|
|
3621
3620
|
}
|
|
@@ -4637,38 +4636,38 @@ var ih = { exports: {} };
|
|
|
4637
4636
|
et += oe[ce] * H(256, 3 - ce);
|
|
4638
4637
|
return et;
|
|
4639
4638
|
}, b = function(O) {
|
|
4640
|
-
var ie = [0, 0, 0, 0, 0, 0, 0, 0], ne = 0, oe = null, ce = 0, Ne, Ee, Ge, et, nt, Yt, le,
|
|
4639
|
+
var ie = [0, 0, 0, 0, 0, 0, 0, 0], ne = 0, oe = null, ce = 0, Ne, Ee, Ge, et, nt, Yt, le, lt = function() {
|
|
4641
4640
|
return O.charAt(ce);
|
|
4642
4641
|
};
|
|
4643
|
-
if (
|
|
4642
|
+
if (lt() == ":") {
|
|
4644
4643
|
if (O.charAt(1) != ":")
|
|
4645
4644
|
return;
|
|
4646
4645
|
ce += 2, ne++, oe = ne;
|
|
4647
4646
|
}
|
|
4648
|
-
for (;
|
|
4647
|
+
for (; lt(); ) {
|
|
4649
4648
|
if (ne == 8)
|
|
4650
4649
|
return;
|
|
4651
|
-
if (
|
|
4650
|
+
if (lt() == ":") {
|
|
4652
4651
|
if (oe !== null)
|
|
4653
4652
|
return;
|
|
4654
4653
|
ce++, ne++, oe = ne;
|
|
4655
4654
|
continue;
|
|
4656
4655
|
}
|
|
4657
|
-
for (Ne = Ee = 0; Ee < 4 && xe.test(
|
|
4658
|
-
Ne = Ne * 16 + parseInt(
|
|
4659
|
-
if (
|
|
4656
|
+
for (Ne = Ee = 0; Ee < 4 && xe.test(lt()); )
|
|
4657
|
+
Ne = Ne * 16 + parseInt(lt(), 16), ce++, Ee++;
|
|
4658
|
+
if (lt() == ".") {
|
|
4660
4659
|
if (Ee == 0 || (ce -= Ee, ne > 6))
|
|
4661
4660
|
return;
|
|
4662
|
-
for (Ge = 0;
|
|
4661
|
+
for (Ge = 0; lt(); ) {
|
|
4663
4662
|
if (et = null, Ge > 0)
|
|
4664
|
-
if (
|
|
4663
|
+
if (lt() == "." && Ge < 4)
|
|
4665
4664
|
ce++;
|
|
4666
4665
|
else
|
|
4667
4666
|
return;
|
|
4668
|
-
if (!de.test(
|
|
4667
|
+
if (!de.test(lt()))
|
|
4669
4668
|
return;
|
|
4670
|
-
for (; de.test(
|
|
4671
|
-
if (nt = parseInt(
|
|
4669
|
+
for (; de.test(lt()); ) {
|
|
4670
|
+
if (nt = parseInt(lt(), 10), et === null)
|
|
4672
4671
|
et = nt;
|
|
4673
4672
|
else {
|
|
4674
4673
|
if (et == 0)
|
|
@@ -4684,10 +4683,10 @@ var ih = { exports: {} };
|
|
|
4684
4683
|
if (Ge != 4)
|
|
4685
4684
|
return;
|
|
4686
4685
|
break;
|
|
4687
|
-
} else if (
|
|
4688
|
-
if (ce++, !
|
|
4686
|
+
} else if (lt() == ":") {
|
|
4687
|
+
if (ce++, !lt())
|
|
4689
4688
|
return;
|
|
4690
|
-
} else if (
|
|
4689
|
+
} else if (lt())
|
|
4691
4690
|
return;
|
|
4692
4691
|
ie[ne++] = Ne;
|
|
4693
4692
|
}
|
|
@@ -4764,11 +4763,11 @@ var ih = { exports: {} };
|
|
|
4764
4763
|
return O === "." || O.toLowerCase() === "%2e";
|
|
4765
4764
|
}, Be = function(O) {
|
|
4766
4765
|
return O = O.toLowerCase(), O === ".." || O === "%2e." || O === ".%2e" || O === "%2e%2e";
|
|
4767
|
-
},
|
|
4768
|
-
var ce = ne ||
|
|
4766
|
+
}, it = {}, It = {}, gt = {}, Bn = {}, q = {}, fe = {}, he = {}, Me = {}, De = {}, Qe = {}, tt = {}, St = {}, Ct = {}, ft = {}, fn = {}, Vn = {}, Pt = {}, jt = {}, Fr = {}, Wt = {}, kn = {}, hn = function(O, ie, ne, oe) {
|
|
4767
|
+
var ce = ne || it, Ne = 0, Ee = "", Ge = !1, et = !1, nt = !1, Yt, le, lt, On;
|
|
4769
4768
|
for (ne || (O.scheme = "", O.username = "", O.password = "", O.host = null, O.port = null, O.path = [], O.query = null, O.fragment = null, O.cannotBeABaseURL = !1, ie = ie.replace(x, "")), ie = ie.replace(k, ""), Yt = C(ie); Ne <= Yt.length; ) {
|
|
4770
4769
|
switch (le = Yt[Ne], ce) {
|
|
4771
|
-
case
|
|
4770
|
+
case it:
|
|
4772
4771
|
if (le && Q.test(le))
|
|
4773
4772
|
Ee += le.toLowerCase(), ce = It;
|
|
4774
4773
|
else {
|
|
@@ -4858,9 +4857,9 @@ var ih = { exports: {} };
|
|
|
4858
4857
|
break;
|
|
4859
4858
|
case Qe:
|
|
4860
4859
|
if (le == "@") {
|
|
4861
|
-
Ge && (Ee = "%40" + Ee), Ge = !0,
|
|
4862
|
-
for (var Ea = 0; Ea <
|
|
4863
|
-
var mu =
|
|
4860
|
+
Ge && (Ee = "%40" + Ee), Ge = !0, lt = C(Ee);
|
|
4861
|
+
for (var Ea = 0; Ea < lt.length; Ea++) {
|
|
4862
|
+
var mu = lt[Ea];
|
|
4864
4863
|
if (mu == ":" && !nt) {
|
|
4865
4864
|
nt = !0;
|
|
4866
4865
|
continue;
|
|
@@ -5066,7 +5065,7 @@ var ih = { exports: {} };
|
|
|
5066
5065
|
// https://url.spec.whatwg.org/#dom-url-protocol
|
|
5067
5066
|
protocol: Kt(ru, function(O) {
|
|
5068
5067
|
var ie = B(this);
|
|
5069
|
-
hn(ie, String(O) + ":",
|
|
5068
|
+
hn(ie, String(O) + ":", it);
|
|
5070
5069
|
}),
|
|
5071
5070
|
// `URL.prototype.username` accessors pair
|
|
5072
5071
|
// https://url.spec.whatwg.org/#dom-url-username
|
|
@@ -6984,8 +6983,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6984
6983
|
for (var Ze in Xe) {
|
|
6985
6984
|
var Be = Xe[Ze];
|
|
6986
6985
|
if (Array.isArray(Be))
|
|
6987
|
-
for (var
|
|
6988
|
-
Fe.append(Ze, Be[
|
|
6986
|
+
for (var it = 0; it < Be.length; it++)
|
|
6987
|
+
Fe.append(Ze, Be[it]);
|
|
6989
6988
|
else
|
|
6990
6989
|
Fe.append(Ze, Be);
|
|
6991
6990
|
}
|
|
@@ -7575,7 +7574,7 @@ const xu = /* @__PURE__ */ cc(Y2), G2 = { class: "fallback" }, J2 = /* @__PURE__
|
|
|
7575
7574
|
});
|
|
7576
7575
|
p !== -1 && s.value.splice(p, 1);
|
|
7577
7576
|
}, f = _e(() => t.tag ?? "form");
|
|
7578
|
-
return (h, p) => (J(), te(
|
|
7577
|
+
return (h, p) => (J(), te(rt, null, [
|
|
7579
7578
|
(J(), Ye(Wo(f.value), {
|
|
7580
7579
|
id: "dropzone",
|
|
7581
7580
|
class: "dropzone bd-dropzone",
|
|
@@ -10691,7 +10690,7 @@ class Et {
|
|
|
10691
10690
|
return ka[e] = t, t.prototype.jsonID = e, t;
|
|
10692
10691
|
}
|
|
10693
10692
|
}
|
|
10694
|
-
class
|
|
10693
|
+
class st {
|
|
10695
10694
|
/**
|
|
10696
10695
|
@internal
|
|
10697
10696
|
*/
|
|
@@ -10702,13 +10701,13 @@ class rt {
|
|
|
10702
10701
|
Create a successful step result.
|
|
10703
10702
|
*/
|
|
10704
10703
|
static ok(e) {
|
|
10705
|
-
return new
|
|
10704
|
+
return new st(e, null);
|
|
10706
10705
|
}
|
|
10707
10706
|
/**
|
|
10708
10707
|
Create a failed step result.
|
|
10709
10708
|
*/
|
|
10710
10709
|
static fail(e) {
|
|
10711
|
-
return new
|
|
10710
|
+
return new st(null, e);
|
|
10712
10711
|
}
|
|
10713
10712
|
/**
|
|
10714
10713
|
Call [`Node.replace`](https://prosemirror.net/docs/ref/#model.Node.replace) with the given
|
|
@@ -10717,10 +10716,10 @@ class rt {
|
|
|
10717
10716
|
*/
|
|
10718
10717
|
static fromReplace(e, t, r, s) {
|
|
10719
10718
|
try {
|
|
10720
|
-
return
|
|
10719
|
+
return st.ok(e.replace(t, r, s));
|
|
10721
10720
|
} catch (i) {
|
|
10722
10721
|
if (i instanceof Ki)
|
|
10723
|
-
return
|
|
10722
|
+
return st.fail(i.message);
|
|
10724
10723
|
throw i;
|
|
10725
10724
|
}
|
|
10726
10725
|
}
|
|
@@ -10742,7 +10741,7 @@ class Jn extends Et {
|
|
|
10742
10741
|
}
|
|
10743
10742
|
apply(e) {
|
|
10744
10743
|
let t = e.slice(this.from, this.to), r = e.resolve(this.from), s = r.node(r.sharedDepth(this.to)), i = new ye(uc(t.content, (o, l) => !o.isAtom || !l.type.allowsMarkType(this.mark.type) ? o : o.mark(this.mark.addToSet(o.marks)), s), t.openStart, t.openEnd);
|
|
10745
|
-
return
|
|
10744
|
+
return st.fromReplace(e, this.from, this.to, i);
|
|
10746
10745
|
}
|
|
10747
10746
|
invert() {
|
|
10748
10747
|
return new En(this.from, this.to, this.mark);
|
|
@@ -10781,7 +10780,7 @@ class En extends Et {
|
|
|
10781
10780
|
}
|
|
10782
10781
|
apply(e) {
|
|
10783
10782
|
let t = e.slice(this.from, this.to), r = new ye(uc(t.content, (s) => s.mark(this.mark.removeFromSet(s.marks)), e), t.openStart, t.openEnd);
|
|
10784
|
-
return
|
|
10783
|
+
return st.fromReplace(e, this.from, this.to, r);
|
|
10785
10784
|
}
|
|
10786
10785
|
invert() {
|
|
10787
10786
|
return new Jn(this.from, this.to, this.mark);
|
|
@@ -10821,9 +10820,9 @@ class Zn extends Et {
|
|
|
10821
10820
|
apply(e) {
|
|
10822
10821
|
let t = e.nodeAt(this.pos);
|
|
10823
10822
|
if (!t)
|
|
10824
|
-
return
|
|
10823
|
+
return st.fail("No node at mark step's position");
|
|
10825
10824
|
let r = t.type.create(t.attrs, null, this.mark.addToSet(t.marks));
|
|
10826
|
-
return
|
|
10825
|
+
return st.fromReplace(e, this.pos, this.pos + 1, new ye(ue.from(r), 0, t.isLeaf ? 0 : 1));
|
|
10827
10826
|
}
|
|
10828
10827
|
invert(e) {
|
|
10829
10828
|
let t = e.nodeAt(this.pos);
|
|
@@ -10865,9 +10864,9 @@ class fs extends Et {
|
|
|
10865
10864
|
apply(e) {
|
|
10866
10865
|
let t = e.nodeAt(this.pos);
|
|
10867
10866
|
if (!t)
|
|
10868
|
-
return
|
|
10867
|
+
return st.fail("No node at mark step's position");
|
|
10869
10868
|
let r = t.type.create(t.attrs, null, this.mark.removeFromSet(t.marks));
|
|
10870
|
-
return
|
|
10869
|
+
return st.fromReplace(e, this.pos, this.pos + 1, new ye(ue.from(r), 0, t.isLeaf ? 0 : 1));
|
|
10871
10870
|
}
|
|
10872
10871
|
invert(e) {
|
|
10873
10872
|
let t = e.nodeAt(this.pos);
|
|
@@ -10904,7 +10903,7 @@ class pt extends Et {
|
|
|
10904
10903
|
super(), this.from = e, this.to = t, this.slice = r, this.structure = s;
|
|
10905
10904
|
}
|
|
10906
10905
|
apply(e) {
|
|
10907
|
-
return this.structure && Tl(e, this.from, this.to) ?
|
|
10906
|
+
return this.structure && Tl(e, this.from, this.to) ? st.fail("Structure replace would overwrite content") : st.fromReplace(e, this.from, this.to, this.slice);
|
|
10908
10907
|
}
|
|
10909
10908
|
getMap() {
|
|
10910
10909
|
return new $t([this.from, this.to - this.from, this.slice.size]);
|
|
@@ -10954,12 +10953,12 @@ class ut extends Et {
|
|
|
10954
10953
|
}
|
|
10955
10954
|
apply(e) {
|
|
10956
10955
|
if (this.structure && (Tl(e, this.from, this.gapFrom) || Tl(e, this.gapTo, this.to)))
|
|
10957
|
-
return
|
|
10956
|
+
return st.fail("Structure gap-replace would overwrite content");
|
|
10958
10957
|
let t = e.slice(this.gapFrom, this.gapTo);
|
|
10959
10958
|
if (t.openStart || t.openEnd)
|
|
10960
|
-
return
|
|
10959
|
+
return st.fail("Gap is not a flat range");
|
|
10961
10960
|
let r = this.slice.insertAt(this.insert, t.content);
|
|
10962
|
-
return r ?
|
|
10961
|
+
return r ? st.fromReplace(e, this.from, this.to, r) : st.fail("Content does not fit in gap");
|
|
10963
10962
|
}
|
|
10964
10963
|
getMap() {
|
|
10965
10964
|
return new $t([
|
|
@@ -11546,13 +11545,13 @@ class is extends Et {
|
|
|
11546
11545
|
apply(e) {
|
|
11547
11546
|
let t = e.nodeAt(this.pos);
|
|
11548
11547
|
if (!t)
|
|
11549
|
-
return
|
|
11548
|
+
return st.fail("No node at attribute step's position");
|
|
11550
11549
|
let r = /* @__PURE__ */ Object.create(null);
|
|
11551
11550
|
for (let i in t.attrs)
|
|
11552
11551
|
r[i] = t.attrs[i];
|
|
11553
11552
|
r[this.attr] = this.value;
|
|
11554
11553
|
let s = t.type.create(r, null, t.marks);
|
|
11555
|
-
return
|
|
11554
|
+
return st.fromReplace(e, this.pos, this.pos + 1, new ye(ue.from(s), 0, t.isLeaf ? 0 : 1));
|
|
11556
11555
|
}
|
|
11557
11556
|
getMap() {
|
|
11558
11557
|
return $t.empty;
|
|
@@ -11587,7 +11586,7 @@ class Js extends Et {
|
|
|
11587
11586
|
t[s] = e.attrs[s];
|
|
11588
11587
|
t[this.attr] = this.value;
|
|
11589
11588
|
let r = e.type.create(t, e.content, e.marks);
|
|
11590
|
-
return
|
|
11589
|
+
return st.ok(r);
|
|
11591
11590
|
}
|
|
11592
11591
|
getMap() {
|
|
11593
11592
|
return $t.empty;
|
|
@@ -11838,7 +11837,7 @@ class Dh {
|
|
|
11838
11837
|
}
|
|
11839
11838
|
}
|
|
11840
11839
|
const _a = /* @__PURE__ */ Object.create(null);
|
|
11841
|
-
class
|
|
11840
|
+
class ze {
|
|
11842
11841
|
/**
|
|
11843
11842
|
Initialize a selection with the head and anchor and ranges. If no
|
|
11844
11843
|
ranges are given, constructs a single range across `$anchor` and
|
|
@@ -11932,7 +11931,7 @@ class He {
|
|
|
11932
11931
|
found.
|
|
11933
11932
|
*/
|
|
11934
11933
|
static findFrom(e, t, r = !1) {
|
|
11935
|
-
let s = e.parent.inlineContent ? new
|
|
11934
|
+
let s = e.parent.inlineContent ? new Ue(e) : Yr(e.node(0), e.parent, e.pos, e.index(), t, r);
|
|
11936
11935
|
if (s)
|
|
11937
11936
|
return s;
|
|
11938
11937
|
for (let i = e.depth - 1; i >= 0; i--) {
|
|
@@ -11999,10 +11998,10 @@ class He {
|
|
|
11999
11998
|
returns the bookmark for that.
|
|
12000
11999
|
*/
|
|
12001
12000
|
getBookmark() {
|
|
12002
|
-
return
|
|
12001
|
+
return Ue.between(this.$anchor, this.$head).getBookmark();
|
|
12003
12002
|
}
|
|
12004
12003
|
}
|
|
12005
|
-
|
|
12004
|
+
ze.prototype.visible = !0;
|
|
12006
12005
|
class Qy {
|
|
12007
12006
|
/**
|
|
12008
12007
|
Create a range.
|
|
@@ -12015,7 +12014,7 @@ let Pu = !1;
|
|
|
12015
12014
|
function $u(n) {
|
|
12016
12015
|
!Pu && !n.parent.inlineContent && (Pu = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + n.parent.type.name + ")"));
|
|
12017
12016
|
}
|
|
12018
|
-
class
|
|
12017
|
+
class Ue extends ze {
|
|
12019
12018
|
/**
|
|
12020
12019
|
Construct a text selection between the given points.
|
|
12021
12020
|
*/
|
|
@@ -12032,9 +12031,9 @@ class ze extends He {
|
|
|
12032
12031
|
map(e, t) {
|
|
12033
12032
|
let r = e.resolve(t.map(this.head));
|
|
12034
12033
|
if (!r.parent.inlineContent)
|
|
12035
|
-
return
|
|
12034
|
+
return ze.near(r);
|
|
12036
12035
|
let s = e.resolve(t.map(this.anchor));
|
|
12037
|
-
return new
|
|
12036
|
+
return new Ue(s.parent.inlineContent ? s : r, r);
|
|
12038
12037
|
}
|
|
12039
12038
|
replace(e, t = ye.empty) {
|
|
12040
12039
|
if (super.replace(e, t), t == ye.empty) {
|
|
@@ -12043,7 +12042,7 @@ class ze extends He {
|
|
|
12043
12042
|
}
|
|
12044
12043
|
}
|
|
12045
12044
|
eq(e) {
|
|
12046
|
-
return e instanceof
|
|
12045
|
+
return e instanceof Ue && e.anchor == this.anchor && e.head == this.head;
|
|
12047
12046
|
}
|
|
12048
12047
|
getBookmark() {
|
|
12049
12048
|
return new ea(this.anchor, this.head);
|
|
@@ -12057,7 +12056,7 @@ class ze extends He {
|
|
|
12057
12056
|
static fromJSON(e, t) {
|
|
12058
12057
|
if (typeof t.anchor != "number" || typeof t.head != "number")
|
|
12059
12058
|
throw new RangeError("Invalid input for TextSelection.fromJSON");
|
|
12060
|
-
return new
|
|
12059
|
+
return new Ue(e.resolve(t.anchor), e.resolve(t.head));
|
|
12061
12060
|
}
|
|
12062
12061
|
/**
|
|
12063
12062
|
Create a text selection from non-resolved positions.
|
|
@@ -12077,16 +12076,16 @@ class ze extends He {
|
|
|
12077
12076
|
static between(e, t, r) {
|
|
12078
12077
|
let s = e.pos - t.pos;
|
|
12079
12078
|
if ((!r || s) && (r = s >= 0 ? 1 : -1), !t.parent.inlineContent) {
|
|
12080
|
-
let i =
|
|
12079
|
+
let i = ze.findFrom(t, r, !0) || ze.findFrom(t, -r, !0);
|
|
12081
12080
|
if (i)
|
|
12082
12081
|
t = i.$head;
|
|
12083
12082
|
else
|
|
12084
|
-
return
|
|
12083
|
+
return ze.near(t, r);
|
|
12085
12084
|
}
|
|
12086
|
-
return e.parent.inlineContent || (s == 0 ? e = t : (e = (
|
|
12085
|
+
return e.parent.inlineContent || (s == 0 ? e = t : (e = (ze.findFrom(e, -r, !0) || ze.findFrom(e, r, !0)).$anchor, e.pos < t.pos != s < 0 && (e = t))), new Ue(e, t);
|
|
12087
12086
|
}
|
|
12088
12087
|
}
|
|
12089
|
-
|
|
12088
|
+
ze.jsonID("text", Ue);
|
|
12090
12089
|
class ea {
|
|
12091
12090
|
constructor(e, t) {
|
|
12092
12091
|
this.anchor = e, this.head = t;
|
|
@@ -12095,10 +12094,10 @@ class ea {
|
|
|
12095
12094
|
return new ea(e.map(this.anchor), e.map(this.head));
|
|
12096
12095
|
}
|
|
12097
12096
|
resolve(e) {
|
|
12098
|
-
return
|
|
12097
|
+
return Ue.between(e.resolve(this.anchor), e.resolve(this.head));
|
|
12099
12098
|
}
|
|
12100
12099
|
}
|
|
12101
|
-
class Ie extends
|
|
12100
|
+
class Ie extends ze {
|
|
12102
12101
|
/**
|
|
12103
12102
|
Create a node selection. Does not verify the validity of its
|
|
12104
12103
|
argument.
|
|
@@ -12109,7 +12108,7 @@ class Ie extends He {
|
|
|
12109
12108
|
}
|
|
12110
12109
|
map(e, t) {
|
|
12111
12110
|
let { deleted: r, pos: s } = t.mapResult(this.anchor), i = e.resolve(s);
|
|
12112
|
-
return r ?
|
|
12111
|
+
return r ? ze.near(i) : new Ie(i);
|
|
12113
12112
|
}
|
|
12114
12113
|
content() {
|
|
12115
12114
|
return new ye(ue.from(this.node), 0, 0);
|
|
@@ -12146,7 +12145,7 @@ class Ie extends He {
|
|
|
12146
12145
|
}
|
|
12147
12146
|
}
|
|
12148
12147
|
Ie.prototype.visible = !1;
|
|
12149
|
-
|
|
12148
|
+
ze.jsonID("node", Ie);
|
|
12150
12149
|
class hc {
|
|
12151
12150
|
constructor(e) {
|
|
12152
12151
|
this.anchor = e;
|
|
@@ -12157,10 +12156,10 @@ class hc {
|
|
|
12157
12156
|
}
|
|
12158
12157
|
resolve(e) {
|
|
12159
12158
|
let t = e.resolve(this.anchor), r = t.nodeAfter;
|
|
12160
|
-
return r && Ie.isSelectable(r) ? new Ie(t) :
|
|
12159
|
+
return r && Ie.isSelectable(r) ? new Ie(t) : ze.near(t);
|
|
12161
12160
|
}
|
|
12162
12161
|
}
|
|
12163
|
-
class sn extends
|
|
12162
|
+
class sn extends ze {
|
|
12164
12163
|
/**
|
|
12165
12164
|
Create an all-selection over the given document.
|
|
12166
12165
|
*/
|
|
@@ -12170,7 +12169,7 @@ class sn extends He {
|
|
|
12170
12169
|
replace(e, t = ye.empty) {
|
|
12171
12170
|
if (t == ye.empty) {
|
|
12172
12171
|
e.delete(0, e.doc.content.size);
|
|
12173
|
-
let r =
|
|
12172
|
+
let r = ze.atStart(e.doc);
|
|
12174
12173
|
r.eq(e.selection) || e.setSelection(r);
|
|
12175
12174
|
} else
|
|
12176
12175
|
super.replace(e, t);
|
|
@@ -12194,7 +12193,7 @@ class sn extends He {
|
|
|
12194
12193
|
return qy;
|
|
12195
12194
|
}
|
|
12196
12195
|
}
|
|
12197
|
-
|
|
12196
|
+
ze.jsonID("all", sn);
|
|
12198
12197
|
const qy = {
|
|
12199
12198
|
map() {
|
|
12200
12199
|
return this;
|
|
@@ -12205,7 +12204,7 @@ const qy = {
|
|
|
12205
12204
|
};
|
|
12206
12205
|
function Yr(n, e, t, r, s, i = !1) {
|
|
12207
12206
|
if (e.inlineContent)
|
|
12208
|
-
return
|
|
12207
|
+
return Ue.create(n, t);
|
|
12209
12208
|
for (let o = r - (s > 0 ? 0 : 1); s > 0 ? o < e.childCount : o >= 0; o += s) {
|
|
12210
12209
|
let l = e.child(o);
|
|
12211
12210
|
if (l.isAtom) {
|
|
@@ -12230,7 +12229,7 @@ function Fu(n, e, t) {
|
|
|
12230
12229
|
let i = n.mapping.maps[r], o;
|
|
12231
12230
|
i.forEach((l, a, c, u) => {
|
|
12232
12231
|
o == null && (o = u);
|
|
12233
|
-
}), n.setSelection(
|
|
12232
|
+
}), n.setSelection(ze.near(n.doc.resolve(o), t));
|
|
12234
12233
|
}
|
|
12235
12234
|
const Bu = 1, Ci = 2, Vu = 4;
|
|
12236
12235
|
class e5 extends Dh {
|
|
@@ -12345,7 +12344,7 @@ class e5 extends Dh {
|
|
|
12345
12344
|
let o = this.doc.resolve(t);
|
|
12346
12345
|
i = r == t ? o.marks() : o.marksAcross(this.doc.resolve(r));
|
|
12347
12346
|
}
|
|
12348
|
-
return this.replaceRangeWith(t, r, s.text(e, i)), this.selection.empty || this.setSelection(
|
|
12347
|
+
return this.replaceRangeWith(t, r, s.text(e, i)), this.selection.empty || this.setSelection(ze.near(this.selection.$to)), this;
|
|
12349
12348
|
}
|
|
12350
12349
|
}
|
|
12351
12350
|
/**
|
|
@@ -12403,7 +12402,7 @@ const t5 = [
|
|
|
12403
12402
|
}),
|
|
12404
12403
|
new Ls("selection", {
|
|
12405
12404
|
init(n, e) {
|
|
12406
|
-
return n.selection ||
|
|
12405
|
+
return n.selection || ze.atStart(e.doc);
|
|
12407
12406
|
},
|
|
12408
12407
|
apply(n) {
|
|
12409
12408
|
return n.selection;
|
|
@@ -12583,7 +12582,7 @@ class ts {
|
|
|
12583
12582
|
if (o.name == "doc")
|
|
12584
12583
|
i.doc = Tr.fromJSON(e.schema, t.doc);
|
|
12585
12584
|
else if (o.name == "selection")
|
|
12586
|
-
i.selection =
|
|
12585
|
+
i.selection = ze.fromJSON(i.doc, t.selection);
|
|
12587
12586
|
else if (o.name == "storedMarks")
|
|
12588
12587
|
t.storedMarks && (i.storedMarks = t.storedMarks.map(e.schema.markFromJSON));
|
|
12589
12588
|
else {
|
|
@@ -13549,7 +13548,7 @@ class er extends ui {
|
|
|
13549
13548
|
}
|
|
13550
13549
|
localCompositionInfo(e, t) {
|
|
13551
13550
|
let { from: r, to: s } = e.state.selection;
|
|
13552
|
-
if (!(e.state.selection instanceof
|
|
13551
|
+
if (!(e.state.selection instanceof Ue) || r < t || s > t + this.node.content.size)
|
|
13553
13552
|
return null;
|
|
13554
13553
|
let i = e.domSelectionRange(), o = D5(i.focusNode, i.focusOffset);
|
|
13555
13554
|
if (!o || !this.dom.contains(o.parentNode))
|
|
@@ -14109,7 +14108,7 @@ function Ln(n, e = !1) {
|
|
|
14109
14108
|
R5(n);
|
|
14110
14109
|
else {
|
|
14111
14110
|
let { anchor: r, head: s } = t, i, o;
|
|
14112
|
-
qu && !(t instanceof
|
|
14111
|
+
qu && !(t instanceof Ue) && (t.$from.parent.inlineContent || (i = ed(n, t.from)), !t.empty && !t.$from.parent.inlineContent && (o = ed(n, t.to))), n.docView.setSelection(r, s, n.root, e), qu && (i && td(i), o && td(o)), t.visible ? n.dom.classList.remove("ProseMirror-hideselection") : (n.dom.classList.add("ProseMirror-hideselection"), "onselectionchange" in document && L5(n));
|
|
14113
14112
|
}
|
|
14114
14113
|
n.domObserver.setCurSelection(), n.domObserver.connectSelection();
|
|
14115
14114
|
}
|
|
@@ -14157,7 +14156,7 @@ function nd(n) {
|
|
|
14157
14156
|
n.lastSelectedViewDesc && (n.lastSelectedViewDesc.parent && n.lastSelectedViewDesc.deselectNode(), n.lastSelectedViewDesc = void 0);
|
|
14158
14157
|
}
|
|
14159
14158
|
function vc(n, e, t, r) {
|
|
14160
|
-
return n.someProp("createSelectionBetween", (s) => s(n, e, t)) ||
|
|
14159
|
+
return n.someProp("createSelectionBetween", (s) => s(n, e, t)) || Ue.between(e, t, r);
|
|
14161
14160
|
}
|
|
14162
14161
|
function rd(n) {
|
|
14163
14162
|
return n.editable && !n.hasFocus() ? !1 : Jh(n);
|
|
@@ -14178,20 +14177,20 @@ function P5(n) {
|
|
|
14178
14177
|
}
|
|
14179
14178
|
function Il(n, e) {
|
|
14180
14179
|
let { $anchor: t, $head: r } = n.selection, s = e > 0 ? t.max(r) : t.min(r), i = s.parent.inlineContent ? s.depth ? n.doc.resolve(e > 0 ? s.after() : s.before()) : null : s;
|
|
14181
|
-
return i &&
|
|
14180
|
+
return i && ze.findFrom(i, e);
|
|
14182
14181
|
}
|
|
14183
14182
|
function Wn(n, e) {
|
|
14184
14183
|
return n.dispatch(n.state.tr.setSelection(e).scrollIntoView()), !0;
|
|
14185
14184
|
}
|
|
14186
14185
|
function sd(n, e, t) {
|
|
14187
14186
|
let r = n.state.selection;
|
|
14188
|
-
if (r instanceof
|
|
14187
|
+
if (r instanceof Ue)
|
|
14189
14188
|
if (t.indexOf("s") > -1) {
|
|
14190
14189
|
let { $head: s } = r, i = s.textOffset ? null : e < 0 ? s.nodeBefore : s.nodeAfter;
|
|
14191
14190
|
if (!i || i.isText || !i.isLeaf)
|
|
14192
14191
|
return !1;
|
|
14193
14192
|
let o = n.state.doc.resolve(s.pos + i.nodeSize * (e < 0 ? -1 : 1));
|
|
14194
|
-
return Wn(n, new
|
|
14193
|
+
return Wn(n, new Ue(r.$anchor, o));
|
|
14195
14194
|
} else if (r.empty) {
|
|
14196
14195
|
if (n.endOfTextblock(e > 0 ? "forward" : "backward")) {
|
|
14197
14196
|
let s = Il(n.state, e);
|
|
@@ -14201,13 +14200,13 @@ function sd(n, e, t) {
|
|
|
14201
14200
|
if (!i || i.isText)
|
|
14202
14201
|
return !1;
|
|
14203
14202
|
let l = e < 0 ? s.pos - i.nodeSize : s.pos;
|
|
14204
|
-
return i.isAtom || (o = n.docView.descAt(l)) && !o.contentDOM ? Ie.isSelectable(i) ? Wn(n, new Ie(e < 0 ? n.state.doc.resolve(s.pos - i.nodeSize) : s)) : ci ? Wn(n, new
|
|
14203
|
+
return i.isAtom || (o = n.docView.descAt(l)) && !o.contentDOM ? Ie.isSelectable(i) ? Wn(n, new Ie(e < 0 ? n.state.doc.resolve(s.pos - i.nodeSize) : s)) : ci ? Wn(n, new Ue(n.state.doc.resolve(e < 0 ? l : l + i.nodeSize))) : !1 : !1;
|
|
14205
14204
|
}
|
|
14206
14205
|
} else
|
|
14207
14206
|
return !1;
|
|
14208
14207
|
else {
|
|
14209
14208
|
if (r instanceof Ie && r.node.isInline)
|
|
14210
|
-
return Wn(n, new
|
|
14209
|
+
return Wn(n, new Ue(e > 0 ? r.$to : r.$from));
|
|
14211
14210
|
{
|
|
14212
14211
|
let s = Il(n.state, e);
|
|
14213
14212
|
return s ? Wn(n, s) : !1;
|
|
@@ -14356,7 +14355,7 @@ function id(n, e) {
|
|
|
14356
14355
|
}
|
|
14357
14356
|
function od(n, e, t) {
|
|
14358
14357
|
let r = n.state.selection;
|
|
14359
|
-
if (r instanceof
|
|
14358
|
+
if (r instanceof Ue && !r.empty || t.indexOf("s") > -1 || Zt && t.indexOf("m") > -1)
|
|
14360
14359
|
return !1;
|
|
14361
14360
|
let { $from: s, $to: i } = r;
|
|
14362
14361
|
if (!s.parent.inlineContent || n.endOfTextblock(e < 0 ? "up" : "down")) {
|
|
@@ -14365,13 +14364,13 @@ function od(n, e, t) {
|
|
|
14365
14364
|
return Wn(n, o);
|
|
14366
14365
|
}
|
|
14367
14366
|
if (!s.parent.inlineContent) {
|
|
14368
|
-
let o = e < 0 ? s : i, l = r instanceof sn ?
|
|
14367
|
+
let o = e < 0 ? s : i, l = r instanceof sn ? ze.near(o, e) : ze.findFrom(o, e);
|
|
14369
14368
|
return l ? Wn(n, l) : !1;
|
|
14370
14369
|
}
|
|
14371
14370
|
return !1;
|
|
14372
14371
|
}
|
|
14373
14372
|
function ad(n, e) {
|
|
14374
|
-
if (!(n.state.selection instanceof
|
|
14373
|
+
if (!(n.state.selection instanceof Ue))
|
|
14375
14374
|
return !0;
|
|
14376
14375
|
let { $head: t, $anchor: r, empty: s } = n.state.selection;
|
|
14377
14376
|
if (!t.sameParent(r))
|
|
@@ -14683,7 +14682,7 @@ Mt.keypress = (n, e) => {
|
|
|
14683
14682
|
return;
|
|
14684
14683
|
}
|
|
14685
14684
|
let r = n.state.selection;
|
|
14686
|
-
if (!(r instanceof
|
|
14685
|
+
if (!(r instanceof Ue) || !r.$from.sameParent(r.$to)) {
|
|
14687
14686
|
let s = String.fromCharCode(t.charCode);
|
|
14688
14687
|
!/[\r\n]/.test(s) && !n.someProp("handleTextInput", (i) => i(n, r.$from.pos, r.$to.pos, s)) && n.dispatch(n.state.tr.insertText(s).scrollIntoView()), t.preventDefault();
|
|
14689
14688
|
}
|
|
@@ -14744,12 +14743,12 @@ function a3(n, e, t) {
|
|
|
14744
14743
|
return !1;
|
|
14745
14744
|
let r = n.state.doc;
|
|
14746
14745
|
if (e == -1)
|
|
14747
|
-
return r.inlineContent ? (as(n,
|
|
14746
|
+
return r.inlineContent ? (as(n, Ue.create(r, 0, r.content.size), "pointer"), !0) : !1;
|
|
14748
14747
|
let s = r.resolve(e);
|
|
14749
14748
|
for (let i = s.depth + 1; i > 0; i--) {
|
|
14750
14749
|
let o = i > s.depth ? s.nodeAfter : s.node(i), l = s.before(i);
|
|
14751
14750
|
if (o.inlineContent)
|
|
14752
|
-
as(n,
|
|
14751
|
+
as(n, Ue.create(r, l + 1, l + 1 + o.content.size), "pointer");
|
|
14753
14752
|
else if (Ie.isSelectable(o))
|
|
14754
14753
|
as(n, Ie.create(r, l), "pointer");
|
|
14755
14754
|
else
|
|
@@ -14806,7 +14805,7 @@ class l3 {
|
|
|
14806
14805
|
// (hidden) cursor is doesn't change the selection, and
|
|
14807
14806
|
// thus doesn't get a reaction from ProseMirror. This
|
|
14808
14807
|
// works around that.
|
|
14809
|
-
bt && !this.view.state.selection.visible && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (as(this.view,
|
|
14808
|
+
bt && !this.view.state.selection.visible && Math.min(Math.abs(t.pos - this.view.state.selection.from), Math.abs(t.pos - this.view.state.selection.to)) <= 2) ? (as(this.view, ze.near(this.view.state.doc.resolve(t.pos)), "pointer"), e.preventDefault()) : Xn(this.view, "pointer");
|
|
14810
14809
|
}
|
|
14811
14810
|
move(e) {
|
|
14812
14811
|
this.updateAllowDefault(e), Xn(this.view, "pointer"), e.buttons == 0 && this.done();
|
|
@@ -15158,7 +15157,7 @@ class Xt {
|
|
|
15158
15157
|
}
|
|
15159
15158
|
}
|
|
15160
15159
|
const Gr = [], xr = {};
|
|
15161
|
-
class
|
|
15160
|
+
class ot {
|
|
15162
15161
|
/**
|
|
15163
15162
|
@internal
|
|
15164
15163
|
*/
|
|
@@ -15212,7 +15211,7 @@ class it {
|
|
|
15212
15211
|
let a = this.local[l].map(e, r, s);
|
|
15213
15212
|
a && a.type.valid(t, a) ? (o || (o = [])).push(a) : i.onRemove && i.onRemove(this.local[l].spec);
|
|
15214
15213
|
}
|
|
15215
|
-
return this.children.length ? p3(this.children, o || [], e, t, r, s, i) : o ? new
|
|
15214
|
+
return this.children.length ? p3(this.children, o || [], e, t, r, s, i) : o ? new ot(o.sort(Ar), Gr) : vt;
|
|
15216
15215
|
}
|
|
15217
15216
|
/**
|
|
15218
15217
|
Add the given array of decorations to the ones in the set,
|
|
@@ -15221,7 +15220,7 @@ class it {
|
|
|
15221
15220
|
structure.
|
|
15222
15221
|
*/
|
|
15223
15222
|
add(e, t) {
|
|
15224
|
-
return t.length ? this == vt ?
|
|
15223
|
+
return t.length ? this == vt ? ot.create(e, t) : this.addInner(e, t, 0) : this;
|
|
15225
15224
|
}
|
|
15226
15225
|
addInner(e, t, r) {
|
|
15227
15226
|
let s, i = 0;
|
|
@@ -15236,7 +15235,7 @@ class it {
|
|
|
15236
15235
|
let o = dp(i ? hp(t) : t, -r);
|
|
15237
15236
|
for (let l = 0; l < o.length; l++)
|
|
15238
15237
|
o[l].type.valid(e, o[l]) || o.splice(l--, 1);
|
|
15239
|
-
return new
|
|
15238
|
+
return new ot(o.length ? this.local.concat(o).sort(Ar) : this.local, s || this.children);
|
|
15240
15239
|
}
|
|
15241
15240
|
/**
|
|
15242
15241
|
Create a new set that contains the decorations in this set, minus
|
|
@@ -15263,7 +15262,7 @@ class it {
|
|
|
15263
15262
|
for (let l = 0; l < s.length; l++)
|
|
15264
15263
|
s[l].eq(o, t) && (s == this.local && (s = this.local.slice()), s.splice(l--, 1));
|
|
15265
15264
|
}
|
|
15266
|
-
return r == this.children && s == this.local ? this : s.length || r.length ? new
|
|
15265
|
+
return r == this.children && s == this.local ? this : s.length || r.length ? new ot(s, r) : vt;
|
|
15267
15266
|
}
|
|
15268
15267
|
/**
|
|
15269
15268
|
@internal
|
|
@@ -15272,7 +15271,7 @@ class it {
|
|
|
15272
15271
|
if (this == vt)
|
|
15273
15272
|
return this;
|
|
15274
15273
|
if (t.isLeaf)
|
|
15275
|
-
return
|
|
15274
|
+
return ot.empty;
|
|
15276
15275
|
let r, s;
|
|
15277
15276
|
for (let l = 0; l < this.children.length; l += 3)
|
|
15278
15277
|
if (this.children[l] >= e) {
|
|
@@ -15288,7 +15287,7 @@ class it {
|
|
|
15288
15287
|
}
|
|
15289
15288
|
}
|
|
15290
15289
|
if (s) {
|
|
15291
|
-
let l = new
|
|
15290
|
+
let l = new ot(s.sort(Ar), Gr);
|
|
15292
15291
|
return r ? new Yn([l, r]) : l;
|
|
15293
15292
|
}
|
|
15294
15293
|
return r || vt;
|
|
@@ -15299,7 +15298,7 @@ class it {
|
|
|
15299
15298
|
eq(e) {
|
|
15300
15299
|
if (this == e)
|
|
15301
15300
|
return !0;
|
|
15302
|
-
if (!(e instanceof
|
|
15301
|
+
if (!(e instanceof ot) || this.local.length != e.local.length || this.children.length != e.children.length)
|
|
15303
15302
|
return !1;
|
|
15304
15303
|
for (let t = 0; t < this.local.length; t++)
|
|
15305
15304
|
if (!this.local[t].eq(e.local[t]))
|
|
@@ -15329,9 +15328,9 @@ class it {
|
|
|
15329
15328
|
return t;
|
|
15330
15329
|
}
|
|
15331
15330
|
}
|
|
15332
|
-
|
|
15333
|
-
|
|
15334
|
-
const vt =
|
|
15331
|
+
ot.empty = new ot([], []);
|
|
15332
|
+
ot.removeOverlap = Cc;
|
|
15333
|
+
const vt = ot.empty;
|
|
15335
15334
|
class Yn {
|
|
15336
15335
|
constructor(e) {
|
|
15337
15336
|
this.members = e;
|
|
@@ -15342,7 +15341,7 @@ class Yn {
|
|
|
15342
15341
|
}
|
|
15343
15342
|
forChild(e, t) {
|
|
15344
15343
|
if (t.isLeaf)
|
|
15345
|
-
return
|
|
15344
|
+
return ot.empty;
|
|
15346
15345
|
let r = [];
|
|
15347
15346
|
for (let s = 0; s < this.members.length; s++) {
|
|
15348
15347
|
let i = this.members[s].forChild(e, t);
|
|
@@ -15382,7 +15381,7 @@ class Yn {
|
|
|
15382
15381
|
case 1:
|
|
15383
15382
|
return e[0];
|
|
15384
15383
|
default:
|
|
15385
|
-
return new Yn(e.every((t) => t instanceof
|
|
15384
|
+
return new Yn(e.every((t) => t instanceof ot) ? e : e.reduce((t, r) => t.concat(r instanceof ot ? r : r.members), []));
|
|
15386
15385
|
}
|
|
15387
15386
|
}
|
|
15388
15387
|
}
|
|
@@ -15433,7 +15432,7 @@ function p3(n, e, t, r, s, i, o) {
|
|
|
15433
15432
|
l.splice(f, 0, u.children[d], u.children[d + 1], u.children[d + 2]);
|
|
15434
15433
|
}
|
|
15435
15434
|
}
|
|
15436
|
-
return new
|
|
15435
|
+
return new ot(e.sort(Ar), l);
|
|
15437
15436
|
}
|
|
15438
15437
|
function dp(n, e) {
|
|
15439
15438
|
if (!e || !n.length)
|
|
@@ -15485,7 +15484,7 @@ function to(n, e, t, r) {
|
|
|
15485
15484
|
let o = dp(i ? hp(n) : n, -t).sort(Ar);
|
|
15486
15485
|
for (let l = 0; l < o.length; l++)
|
|
15487
15486
|
o[l].type.valid(e, o[l]) || (r.onRemove && r.onRemove(o[l].spec), o.splice(l--, 1));
|
|
15488
|
-
return o.length || s.length ? new
|
|
15487
|
+
return o.length || s.length ? new ot(o, s) : vt;
|
|
15489
15488
|
}
|
|
15490
15489
|
function Ar(n, e) {
|
|
15491
15490
|
return n.from - e.from || n.to - e.to;
|
|
@@ -15518,7 +15517,7 @@ function Ra(n) {
|
|
|
15518
15517
|
return n.someProp("decorations", (t) => {
|
|
15519
15518
|
let r = t(n.state);
|
|
15520
15519
|
r && r != vt && e.push(r);
|
|
15521
|
-
}), n.cursorWrapper && e.push(
|
|
15520
|
+
}), n.cursorWrapper && e.push(ot.create(n.state.doc, [n.cursorWrapper.deco])), Yn.from(e);
|
|
15522
15521
|
}
|
|
15523
15522
|
const g3 = {
|
|
15524
15523
|
childList: !0,
|
|
@@ -15643,7 +15642,7 @@ class b3 {
|
|
|
15643
15642
|
}
|
|
15644
15643
|
}
|
|
15645
15644
|
let c = null;
|
|
15646
|
-
i < 0 && s && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && ta(r) && (c = gc(e)) && c.eq(
|
|
15645
|
+
i < 0 && s && e.input.lastFocus > Date.now() - 200 && Math.max(e.input.lastTouch, e.input.lastClick.time) < Date.now() - 300 && ta(r) && (c = gc(e)) && c.eq(ze.near(e.state.doc.resolve(0), 1)) ? (e.input.lastFocus = 0, Ln(e), this.currentSelection.set(r), e.scrollToSelection()) : (i > -1 || s) && (i > -1 && (e.docView.markDirty(i, o), E3(e)), this.handleDOMChange(i, o, l, a), e.docView && e.docView.dirty ? e.updateState(e.state) : this.currentSelection.eq(r) || Ln(e), this.currentSelection.set(r));
|
|
15647
15646
|
}
|
|
15648
15647
|
registerMutation(e, t) {
|
|
15649
15648
|
if (t.indexOf(e.target) > -1)
|
|
@@ -15760,7 +15759,7 @@ function x3(n, e, t, r, s) {
|
|
|
15760
15759
|
return;
|
|
15761
15760
|
}
|
|
15762
15761
|
if (!p)
|
|
15763
|
-
if (r && a instanceof
|
|
15762
|
+
if (r && a instanceof Ue && !a.empty && a.$head.sameParent(a.$anchor) && !n.composing && !(c.sel && c.sel.anchor != c.sel.head))
|
|
15764
15763
|
p = { start: a.from, endA: a.to, endB: a.to };
|
|
15765
15764
|
else {
|
|
15766
15765
|
if (c.sel) {
|
|
@@ -15776,9 +15775,9 @@ function x3(n, e, t, r, s) {
|
|
|
15776
15775
|
let U = p.endB - p.start;
|
|
15777
15776
|
c.sel = { anchor: c.sel.anchor + U, head: c.sel.anchor + U };
|
|
15778
15777
|
}
|
|
15779
|
-
n.input.domChangeCount++, n.state.selection.from < n.state.selection.to && p.start == p.endB && n.state.selection instanceof
|
|
15778
|
+
n.input.domChangeCount++, n.state.selection.from < n.state.selection.to && p.start == p.endB && n.state.selection instanceof Ue && (p.start > n.state.selection.from && p.start <= n.state.selection.from + 2 && n.state.selection.from >= c.from ? p.start = n.state.selection.from : p.endA < n.state.selection.to && p.endA >= n.state.selection.to - 2 && n.state.selection.to <= c.to && (p.endB += n.state.selection.to - p.endA, p.endA = n.state.selection.to)), Lt && qn <= 11 && p.endB == p.start + 1 && p.endA == p.start && p.start > c.from && c.doc.textBetween(p.start - c.from - 1, p.start - c.from + 1) == " " && (p.start--, p.endA--, p.endB--);
|
|
15780
15779
|
let m = c.doc.resolveNoCache(p.start - c.from), g = c.doc.resolveNoCache(p.endB - c.from), E = u.resolve(p.start), C = m.sameParent(g) && m.parent.inlineContent && E.end() >= p.endA, w;
|
|
15781
|
-
if ((ps && n.input.lastIOSEnter > Date.now() - 225 && (!C || s.some((U) => U.nodeName == "DIV" || U.nodeName == "P")) || !C && m.pos < c.doc.content.size && !m.sameParent(g) && (w =
|
|
15780
|
+
if ((ps && n.input.lastIOSEnter > Date.now() - 225 && (!C || s.some((U) => U.nodeName == "DIV" || U.nodeName == "P")) || !C && m.pos < c.doc.content.size && !m.sameParent(g) && (w = ze.findFrom(c.doc.resolve(m.pos + 1), 1, !0)) && w.head == g.pos) && n.someProp("handleKeyDown", (U) => U(n, mr(13, "Enter")))) {
|
|
15782
15781
|
n.input.lastIOSEnter = 0;
|
|
15783
15782
|
return;
|
|
15784
15783
|
}
|
|
@@ -16425,7 +16424,7 @@ const z3 = (n, e, t) => {
|
|
|
16425
16424
|
if (o && o.slice.size < o.to - o.from) {
|
|
16426
16425
|
if (e) {
|
|
16427
16426
|
let l = n.tr.step(o);
|
|
16428
|
-
l.setSelection(ms(i, "end") ?
|
|
16427
|
+
l.setSelection(ms(i, "end") ? ze.findFrom(l.doc.resolve(l.mapping.map(s.pos, -1)), -1) : Ie.create(l.doc, s.pos - i.nodeSize)), e(l.scrollIntoView());
|
|
16429
16428
|
}
|
|
16430
16429
|
return !0;
|
|
16431
16430
|
}
|
|
@@ -16482,7 +16481,7 @@ const W3 = (n, e, t) => {
|
|
|
16482
16481
|
if (o && o.slice.size < o.to - o.from) {
|
|
16483
16482
|
if (e) {
|
|
16484
16483
|
let l = n.tr.step(o);
|
|
16485
|
-
l.setSelection(ms(i, "start") ?
|
|
16484
|
+
l.setSelection(ms(i, "start") ? ze.findFrom(l.doc.resolve(l.mapping.map(s.pos)), 1) : Ie.create(l.doc, l.mapping.map(s.pos))), e(l.scrollIntoView());
|
|
16486
16485
|
}
|
|
16487
16486
|
return !0;
|
|
16488
16487
|
}
|
|
@@ -16558,7 +16557,7 @@ const X3 = (n, e) => {
|
|
|
16558
16557
|
return !1;
|
|
16559
16558
|
if (e) {
|
|
16560
16559
|
let l = t.after(), a = n.tr.replaceWith(l, l, o.createAndFill());
|
|
16561
|
-
a.setSelection(
|
|
16560
|
+
a.setSelection(ze.near(a.doc.resolve(l), 1)), e(a.scrollIntoView());
|
|
16562
16561
|
}
|
|
16563
16562
|
return !0;
|
|
16564
16563
|
}, Q3 = (n, e) => {
|
|
@@ -16570,7 +16569,7 @@ const X3 = (n, e) => {
|
|
|
16570
16569
|
return !1;
|
|
16571
16570
|
if (e) {
|
|
16572
16571
|
let o = (!r.parentOffset && s.index() < s.parent.childCount ? r : s).pos, l = n.tr.insert(o, i.createAndFill());
|
|
16573
|
-
l.setSelection(
|
|
16572
|
+
l.setSelection(Ue.create(l.doc, o + 1)), e(l.scrollIntoView());
|
|
16574
16573
|
}
|
|
16575
16574
|
return !0;
|
|
16576
16575
|
}, q3 = (n, e) => {
|
|
@@ -16610,7 +16609,7 @@ function vp(n, e, t) {
|
|
|
16610
16609
|
}
|
|
16611
16610
|
return !0;
|
|
16612
16611
|
}
|
|
16613
|
-
let a =
|
|
16612
|
+
let a = ze.findFrom(e, 1), c = a && a.$from.blockRange(a.$to), u = c && Ts(c);
|
|
16614
16613
|
if (u != null && u >= e.depth)
|
|
16615
16614
|
return t && t(n.tr.lift(c, u).scrollIntoView()), !0;
|
|
16616
16615
|
if (l && ms(s, "start", !0) && ms(r, "end")) {
|
|
@@ -16641,7 +16640,7 @@ function yp(n) {
|
|
|
16641
16640
|
return !1;
|
|
16642
16641
|
i--;
|
|
16643
16642
|
}
|
|
16644
|
-
return s.node(i).isTextblock ? (t && t(e.tr.setSelection(
|
|
16643
|
+
return s.node(i).isTextblock ? (t && t(e.tr.setSelection(Ue.create(e.doc, n < 0 ? s.start(i) : s.end(i)))), !0) : !1;
|
|
16645
16644
|
};
|
|
16646
16645
|
}
|
|
16647
16646
|
const nb = yp(-1), rb = yp(1);
|
|
@@ -17551,7 +17550,7 @@ const xb = qt.create({
|
|
|
17551
17550
|
const { state: s } = t, i = s.doc.slice(n.from, n.to);
|
|
17552
17551
|
r.deleteRange(n.from, n.to);
|
|
17553
17552
|
const o = r.mapping.map(e);
|
|
17554
|
-
return r.insert(o, i.content), r.setSelection(new
|
|
17553
|
+
return r.insert(o, i.content), r.setSelection(new Ue(r.doc.resolve(o - 1))), !0;
|
|
17555
17554
|
}, Db = () => ({ tr: n, dispatch: e }) => {
|
|
17556
17555
|
const { selection: t } = n, r = t.$anchor.node();
|
|
17557
17556
|
if (r.content.size > 0)
|
|
@@ -17623,7 +17622,7 @@ const Bb = (n, e = {}) => ({ tr: t, state: r, dispatch: s }) => {
|
|
|
17623
17622
|
if (s) {
|
|
17624
17623
|
const d = Tc(a, i, e);
|
|
17625
17624
|
if (d && d.from <= c && d.to >= u) {
|
|
17626
|
-
const f =
|
|
17625
|
+
const f = Ue.create(o, d.from, d.to);
|
|
17627
17626
|
t.setSelection(f);
|
|
17628
17627
|
}
|
|
17629
17628
|
}
|
|
@@ -17636,7 +17635,7 @@ const Bb = (n, e = {}) => ({ tr: t, state: r, dispatch: s }) => {
|
|
|
17636
17635
|
return !1;
|
|
17637
17636
|
};
|
|
17638
17637
|
function xc(n) {
|
|
17639
|
-
return n instanceof
|
|
17638
|
+
return n instanceof Ue;
|
|
17640
17639
|
}
|
|
17641
17640
|
function Nn(n = 0, e = 0, t = 0) {
|
|
17642
17641
|
return Math.min(Math.max(n, e), t);
|
|
@@ -17644,13 +17643,13 @@ function Nn(n = 0, e = 0, t = 0) {
|
|
|
17644
17643
|
function Tp(n, e = null) {
|
|
17645
17644
|
if (!e)
|
|
17646
17645
|
return null;
|
|
17647
|
-
const t =
|
|
17646
|
+
const t = ze.atStart(n), r = ze.atEnd(n);
|
|
17648
17647
|
if (e === "start" || e === !0)
|
|
17649
17648
|
return t;
|
|
17650
17649
|
if (e === "end")
|
|
17651
17650
|
return r;
|
|
17652
17651
|
const s = t.from, i = r.to;
|
|
17653
|
-
return e === "all" ?
|
|
17652
|
+
return e === "all" ? Ue.create(n, Nn(0, s, i), Nn(n.content.size, s, i)) : Ue.create(n, Nn(e, s, i), Nn(e, s, i));
|
|
17654
17653
|
}
|
|
17655
17654
|
function Ac() {
|
|
17656
17655
|
return [
|
|
@@ -17711,7 +17710,7 @@ function jb(n, e, t) {
|
|
|
17711
17710
|
let o = 0;
|
|
17712
17711
|
i.forEach((l, a, c, u) => {
|
|
17713
17712
|
o === 0 && (o = u);
|
|
17714
|
-
}), n.setSelection(
|
|
17713
|
+
}), n.setSelection(ze.near(n.doc.resolve(o), t));
|
|
17715
17714
|
}
|
|
17716
17715
|
const Wb = (n) => n.toString().startsWith("<"), Kb = (n, e, t) => ({ tr: r, dispatch: s, editor: i }) => {
|
|
17717
17716
|
if (s) {
|
|
@@ -18098,7 +18097,7 @@ const O7 = (n, e = {}) => ({ tr: t, state: r, dispatch: s }) => {
|
|
|
18098
18097
|
return !0;
|
|
18099
18098
|
}, D7 = (n) => ({ tr: e, dispatch: t }) => {
|
|
18100
18099
|
if (t) {
|
|
18101
|
-
const { doc: r } = e, { from: s, to: i } = typeof n == "number" ? { from: n, to: n } : n, o =
|
|
18100
|
+
const { doc: r } = e, { from: s, to: i } = typeof n == "number" ? { from: n, to: n } : n, o = Ue.atStart(r).from, l = Ue.atEnd(r).to, a = Nn(s, o, l), c = Nn(i, o, l), u = Ue.create(r, a, c);
|
|
18102
18101
|
e.setSelection(u);
|
|
18103
18102
|
}
|
|
18104
18103
|
return !0;
|
|
@@ -18121,7 +18120,7 @@ const L7 = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
|
|
|
18121
18120
|
return !1;
|
|
18122
18121
|
if (r) {
|
|
18123
18122
|
const d = a.parentOffset === a.parent.content.size;
|
|
18124
|
-
i instanceof
|
|
18123
|
+
i instanceof Ue && e.deleteSelection();
|
|
18125
18124
|
const f = l.depth === 0 ? void 0 : m7(l.node(-1).contentMatchAt(l.indexAfter(-1)));
|
|
18126
18125
|
let h = d && f ? [
|
|
18127
18126
|
{
|
|
@@ -18167,7 +18166,7 @@ const L7 = ({ keepMarks: n = !0 } = {}) => ({ tr: e, state: t, dispatch: r, edit
|
|
|
18167
18166
|
if (T > -1)
|
|
18168
18167
|
return !1;
|
|
18169
18168
|
V.isTextblock && V.content.size === 0 && (T = z + 1);
|
|
18170
|
-
}), T > -1 && e.setSelection(
|
|
18169
|
+
}), T > -1 && e.setSelection(Ue.near(e.doc.resolve(T))), e.scrollIntoView();
|
|
18171
18170
|
}
|
|
18172
18171
|
return !0;
|
|
18173
18172
|
}
|
|
@@ -18404,7 +18403,7 @@ const Y7 = qt.create({
|
|
|
18404
18403
|
() => o.undoInputRule(),
|
|
18405
18404
|
// maybe convert first text block node to default node
|
|
18406
18405
|
() => o.command(({ tr: l }) => {
|
|
18407
|
-
const { selection: a, doc: c } = l, { empty: u, $anchor: d } = a, { pos: f, parent: h } = d, p = d.parent.isTextblock ? l.doc.resolve(f - 1) : d, m = p.parent.type.spec.isolating, g = d.pos - d.parentOffset, E = m && p.parent.childCount === 1 ? g === d.pos :
|
|
18406
|
+
const { selection: a, doc: c } = l, { empty: u, $anchor: d } = a, { pos: f, parent: h } = d, p = d.parent.isTextblock ? l.doc.resolve(f - 1) : d, m = p.parent.type.spec.isolating, g = d.pos - d.parentOffset, E = m && p.parent.childCount === 1 ? g === d.pos : ze.atStart(c).from === f;
|
|
18408
18407
|
return !u || !E || !h.type.isTextblock || h.textContent.length ? !1 : o.clearNodes();
|
|
18409
18408
|
}),
|
|
18410
18409
|
() => o.deleteSelection(),
|
|
@@ -18456,7 +18455,7 @@ const Y7 = qt.create({
|
|
|
18456
18455
|
appendTransaction: (n, e, t) => {
|
|
18457
18456
|
if (!(n.some((p) => p.docChanged) && !e.doc.eq(t.doc)))
|
|
18458
18457
|
return;
|
|
18459
|
-
const { empty: s, from: i, to: o } = e.selection, l =
|
|
18458
|
+
const { empty: s, from: i, to: o } = e.selection, l = ze.atStart(e.doc).from, a = ze.atEnd(e.doc).to;
|
|
18460
18459
|
if (s || !(i === l && o === a) || !(t.doc.textBetween(0, t.doc.content.size, " ", " ").length === 0))
|
|
18461
18460
|
return;
|
|
18462
18461
|
const d = t.tr, f = sa({
|
|
@@ -20427,7 +20426,7 @@ function b4(n, e) {
|
|
|
20427
20426
|
setProps: Xe,
|
|
20428
20427
|
setContent: Ze,
|
|
20429
20428
|
show: Be,
|
|
20430
|
-
hide:
|
|
20429
|
+
hide: it,
|
|
20431
20430
|
hideWithInteractivity: It,
|
|
20432
20431
|
enable: pe,
|
|
20433
20432
|
disable: we,
|
|
@@ -20777,7 +20776,7 @@ function b4(n, e) {
|
|
|
20777
20776
|
}, K();
|
|
20778
20777
|
}
|
|
20779
20778
|
}
|
|
20780
|
-
function
|
|
20779
|
+
function it() {
|
|
20781
20780
|
process.env.NODE_ENV !== "production" && Dn(y.state.isDestroyed, Hr("hide"));
|
|
20782
20781
|
var q = !y.state.isVisible, fe = y.state.isDestroyed, he = !y.state.isEnabled, Me = ja(y.props.duration, 1, Ft.duration);
|
|
20783
20782
|
if (!(q || fe || he) && (D("onHide", [y], !1), y.props.onHide(y) !== !1)) {
|
|
@@ -21081,7 +21080,7 @@ $e({
|
|
|
21081
21080
|
}
|
|
21082
21081
|
},
|
|
21083
21082
|
setup(n, { slots: e }) {
|
|
21084
|
-
const t =
|
|
21083
|
+
const t = at(null);
|
|
21085
21084
|
return ai(() => {
|
|
21086
21085
|
const { updateDelay: r, editor: s, pluginKey: i, shouldShow: o, tippyOptions: l } = n;
|
|
21087
21086
|
s.registerPlugin(um({
|
|
@@ -21149,7 +21148,7 @@ const w4 = $e({
|
|
|
21149
21148
|
}
|
|
21150
21149
|
},
|
|
21151
21150
|
setup(n) {
|
|
21152
|
-
const e =
|
|
21151
|
+
const e = at(), t = Ff();
|
|
21153
21152
|
return o1(() => {
|
|
21154
21153
|
const r = n.editor;
|
|
21155
21154
|
r && r.options.element && e.value && Bf(() => {
|
|
@@ -21213,7 +21212,7 @@ $e({
|
|
|
21213
21212
|
}
|
|
21214
21213
|
},
|
|
21215
21214
|
setup(n, { slots: e }) {
|
|
21216
|
-
const t =
|
|
21215
|
+
const t = at(null);
|
|
21217
21216
|
return ai(() => {
|
|
21218
21217
|
const { pluginKey: r, editor: s, tippyOptions: i, shouldShow: o } = n;
|
|
21219
21218
|
s.registerPlugin(dm({
|
|
@@ -22228,7 +22227,7 @@ const Z4 = xn.create({
|
|
|
22228
22227
|
s.push(f);
|
|
22229
22228
|
}
|
|
22230
22229
|
return this.options.includeChildren;
|
|
22231
|
-
}),
|
|
22230
|
+
}), ot.create(n, s);
|
|
22232
22231
|
}
|
|
22233
22232
|
}
|
|
22234
22233
|
})
|
|
@@ -22706,7 +22705,7 @@ const Z4 = xn.create({
|
|
|
22706
22705
|
e("delete", r);
|
|
22707
22706
|
};
|
|
22708
22707
|
return (r, s) => (J(), te("ul", gE, [
|
|
22709
|
-
(J(!0), te(
|
|
22708
|
+
(J(!0), te(rt, null, Bt(r.files, (i) => (J(), te("li", {
|
|
22710
22709
|
class: "attachment-list__item",
|
|
22711
22710
|
key: i.CorrelationId
|
|
22712
22711
|
}, [
|
|
@@ -22721,7 +22720,7 @@ const Z4 = xn.create({
|
|
|
22721
22720
|
Te(Ae(Jo))
|
|
22722
22721
|
]),
|
|
22723
22722
|
_: 2
|
|
22724
|
-
}, 1032, ["onClick"])) :
|
|
22723
|
+
}, 1032, ["onClick"])) : He("", !0),
|
|
22725
22724
|
r.noDownload ? (J(), te("div", yE, [
|
|
22726
22725
|
Te(Ae(us)),
|
|
22727
22726
|
ct(" " + Pe(i.Naam.trim()), 1)
|
|
@@ -22752,7 +22751,7 @@ const Z4 = xn.create({
|
|
|
22752
22751
|
i.target && i.target.className === "img-preview" && e("show", o);
|
|
22753
22752
|
};
|
|
22754
22753
|
return (i, o) => (J(), te("ul", EE, [
|
|
22755
|
-
(J(!0), te(
|
|
22754
|
+
(J(!0), te(rt, null, Bt(i.files, (l) => (J(), te("li", {
|
|
22756
22755
|
class: "attachment-list__item",
|
|
22757
22756
|
key: l.CorrelationId
|
|
22758
22757
|
}, [
|
|
@@ -22767,7 +22766,7 @@ const Z4 = xn.create({
|
|
|
22767
22766
|
Te(Ae(Jo))
|
|
22768
22767
|
]),
|
|
22769
22768
|
_: 2
|
|
22770
|
-
}, 1032, ["onClick"])) :
|
|
22769
|
+
}, 1032, ["onClick"])) : He("", !0),
|
|
22771
22770
|
t.noDownload ? (J(), te("div", {
|
|
22772
22771
|
key: 1,
|
|
22773
22772
|
onClick: (a) => s(a, l)
|
|
@@ -22790,7 +22789,7 @@ const Z4 = xn.create({
|
|
|
22790
22789
|
ee("button", AE, [
|
|
22791
22790
|
Te(Ae(pl))
|
|
22792
22791
|
])
|
|
22793
|
-
], 8, xE)) :
|
|
22792
|
+
], 8, xE)) : He("", !0),
|
|
22794
22793
|
ee("img", {
|
|
22795
22794
|
src: l.previewUrl,
|
|
22796
22795
|
alt: l.altName,
|
|
@@ -22888,7 +22887,7 @@ const Z4 = xn.create({
|
|
|
22888
22887
|
o.value.chain().focus().toggleLink({ href: T }).run();
|
|
22889
22888
|
}
|
|
22890
22889
|
};
|
|
22891
|
-
return (M, T) => (J(), te(
|
|
22890
|
+
return (M, T) => (J(), te(rt, null, [
|
|
22892
22891
|
ee("div", {
|
|
22893
22892
|
class: Ke(["bd-markdown-editor", l.value])
|
|
22894
22893
|
}, [
|
|
@@ -22900,7 +22899,7 @@ const Z4 = xn.create({
|
|
|
22900
22899
|
"no-download": !0,
|
|
22901
22900
|
"show-delete": !0,
|
|
22902
22901
|
onDelete: C
|
|
22903
|
-
}, null, 8, ["files"])) :
|
|
22902
|
+
}, null, 8, ["files"])) : He("", !0),
|
|
22904
22903
|
E.value ? (J(), Ye(Zc, {
|
|
22905
22904
|
key: 1,
|
|
22906
22905
|
files: E.value,
|
|
@@ -22908,7 +22907,7 @@ const Z4 = xn.create({
|
|
|
22908
22907
|
"show-delete": !0,
|
|
22909
22908
|
onDelete: C,
|
|
22910
22909
|
onShow: w
|
|
22911
|
-
}, null, 8, ["files"])) :
|
|
22910
|
+
}, null, 8, ["files"])) : He("", !0),
|
|
22912
22911
|
ee("div", DE, [
|
|
22913
22912
|
Te(yt, {
|
|
22914
22913
|
variant: "light",
|
|
@@ -22920,7 +22919,7 @@ const Z4 = xn.create({
|
|
|
22920
22919
|
]),
|
|
22921
22920
|
_: 1
|
|
22922
22921
|
}),
|
|
22923
|
-
p.value ? (J(), te("div", NE)) :
|
|
22922
|
+
p.value ? (J(), te("div", NE)) : He("", !0),
|
|
22924
22923
|
p.value ? (J(), Ye(yt, {
|
|
22925
22924
|
key: 1,
|
|
22926
22925
|
variant: "light",
|
|
@@ -22932,7 +22931,7 @@ const Z4 = xn.create({
|
|
|
22932
22931
|
Te(Ae(Vf))
|
|
22933
22932
|
]),
|
|
22934
22933
|
_: 1
|
|
22935
|
-
}, 8, ["class"])) :
|
|
22934
|
+
}, 8, ["class"])) : He("", !0),
|
|
22936
22935
|
p.value ? (J(), Ye(yt, {
|
|
22937
22936
|
key: 2,
|
|
22938
22937
|
variant: "light",
|
|
@@ -22944,7 +22943,7 @@ const Z4 = xn.create({
|
|
|
22944
22943
|
Te(Ae(Yf))
|
|
22945
22944
|
]),
|
|
22946
22945
|
_: 1
|
|
22947
|
-
}, 8, ["class"])) :
|
|
22946
|
+
}, 8, ["class"])) : He("", !0),
|
|
22948
22947
|
p.value ? (J(), Ye(yt, {
|
|
22949
22948
|
key: 3,
|
|
22950
22949
|
variant: "light",
|
|
@@ -22956,8 +22955,8 @@ const Z4 = xn.create({
|
|
|
22956
22955
|
Te(Ae(Qf))
|
|
22957
22956
|
]),
|
|
22958
22957
|
_: 1
|
|
22959
|
-
}, 8, ["class"])) :
|
|
22960
|
-
p.value ? (J(), te("div", LE)) :
|
|
22958
|
+
}, 8, ["class"])) : He("", !0),
|
|
22959
|
+
p.value ? (J(), te("div", LE)) : He("", !0),
|
|
22961
22960
|
p.value ? (J(), Ye(yt, {
|
|
22962
22961
|
key: 5,
|
|
22963
22962
|
variant: "light",
|
|
@@ -22969,7 +22968,7 @@ const Z4 = xn.create({
|
|
|
22969
22968
|
Te(Ae(Hf))
|
|
22970
22969
|
]),
|
|
22971
22970
|
_: 1
|
|
22972
|
-
}, 8, ["class"])) :
|
|
22971
|
+
}, 8, ["class"])) : He("", !0),
|
|
22973
22972
|
p.value ? (J(), Ye(yt, {
|
|
22974
22973
|
key: 6,
|
|
22975
22974
|
variant: "light",
|
|
@@ -22981,8 +22980,8 @@ const Z4 = xn.create({
|
|
|
22981
22980
|
Te(Ae(Gf))
|
|
22982
22981
|
]),
|
|
22983
22982
|
_: 1
|
|
22984
|
-
}, 8, ["class"])) :
|
|
22985
|
-
p.value ? (J(), te("div", RE)) :
|
|
22983
|
+
}, 8, ["class"])) : He("", !0),
|
|
22984
|
+
p.value ? (J(), te("div", RE)) : He("", !0),
|
|
22986
22985
|
p.value ? (J(), Ye(yt, {
|
|
22987
22986
|
key: 8,
|
|
22988
22987
|
variant: "light",
|
|
@@ -22994,7 +22993,7 @@ const Z4 = xn.create({
|
|
|
22994
22993
|
Te(Ae(Kf))
|
|
22995
22994
|
]),
|
|
22996
22995
|
_: 1
|
|
22997
|
-
}, 8, ["class"])) :
|
|
22996
|
+
}, 8, ["class"])) : He("", !0)
|
|
22998
22997
|
])
|
|
22999
22998
|
], 2),
|
|
23000
22999
|
Te(Ae(ac), {
|
|
@@ -23026,7 +23025,7 @@ const Z4 = xn.create({
|
|
|
23026
23025
|
]),
|
|
23027
23026
|
ee("nav", VE, [
|
|
23028
23027
|
ee("ul", HE, [
|
|
23029
|
-
(J(!0), te(
|
|
23028
|
+
(J(!0), te(rt, null, Bt(t.options, (a) => (J(), te("li", zE, [
|
|
23030
23029
|
Te(Ys, an({ class: "nav-link" }, a, { onClick: s }), null, 16)
|
|
23031
23030
|
]))), 256)),
|
|
23032
23031
|
We(o.$slots, "special-options"),
|
|
@@ -23055,7 +23054,7 @@ const Z4 = xn.create({
|
|
|
23055
23054
|
return typeof e.details == "string" ? e.details : (r = e.details) == null ? void 0 : r.join(" • ");
|
|
23056
23055
|
});
|
|
23057
23056
|
return (r, s) => (J(), te("div", jE, [
|
|
23058
|
-
e.hideImage ?
|
|
23057
|
+
e.hideImage ? He("", !0) : (J(), Ye(Xo, an({ key: 0 }, e.img, { size: "sm" }), null, 16)),
|
|
23059
23058
|
ee("div", WE, [
|
|
23060
23059
|
ee("header", null, [
|
|
23061
23060
|
ee("h5", KE, Pe(e.name), 1),
|
|
@@ -23119,13 +23118,13 @@ const Z4 = xn.create({
|
|
|
23119
23118
|
s.value ? (J(), Ye(Jc, {
|
|
23120
23119
|
key: 0,
|
|
23121
23120
|
files: s.value
|
|
23122
|
-
}, null, 8, ["files"])) :
|
|
23121
|
+
}, null, 8, ["files"])) : He("", !0),
|
|
23123
23122
|
i.value ? (J(), Ye(Zc, {
|
|
23124
23123
|
key: 1,
|
|
23125
23124
|
files: i.value,
|
|
23126
23125
|
onShow: l,
|
|
23127
23126
|
"fast-download": !0
|
|
23128
|
-
}, null, 8, ["files"])) :
|
|
23127
|
+
}, null, 8, ["files"])) : He("", !0)
|
|
23129
23128
|
])
|
|
23130
23129
|
])
|
|
23131
23130
|
])
|
|
@@ -23136,7 +23135,7 @@ const Z4 = xn.create({
|
|
|
23136
23135
|
props: ["active", "label", "sortDesc"],
|
|
23137
23136
|
emits: ["sortAsc", "sortDesc"],
|
|
23138
23137
|
setup(n, { emit: e }) {
|
|
23139
|
-
const t = n, r =
|
|
23138
|
+
const t = n, r = at(t.sortDesc), s = () => {
|
|
23140
23139
|
t.active && (r.value = !r.value);
|
|
23141
23140
|
}, i = () => {
|
|
23142
23141
|
if (!t.active)
|
|
@@ -23162,15 +23161,15 @@ const Z4 = xn.create({
|
|
|
23162
23161
|
}), n6 = { class: "bd-table" }, r6 = {
|
|
23163
23162
|
key: 0,
|
|
23164
23163
|
class: "table"
|
|
23165
|
-
}, s6 = { key: 1 }, i6 = ["onClick"], o6 = {
|
|
23164
|
+
}, s6 = { key: 1 }, i6 = ["onClick"], o6 = { key: 0 }, a6 = {
|
|
23166
23165
|
key: 1,
|
|
23167
23166
|
class: "empty-text"
|
|
23168
|
-
},
|
|
23167
|
+
}, l6 = /* @__PURE__ */ $e({
|
|
23169
23168
|
__name: "BDTable",
|
|
23170
23169
|
props: ["fields", "items", "sortBy", "sortDesc", "tbodyTrClass", "emptyText"],
|
|
23171
23170
|
emits: ["row-click", "sort-changed"],
|
|
23172
23171
|
setup(n, { expose: e, emit: t }) {
|
|
23173
|
-
const r = n, s =
|
|
23172
|
+
const r = n, s = at(r.items), i = at(r.sortBy), o = (d) => i.value = d, l = (d, f, h) => {
|
|
23174
23173
|
const p = f[d], m = h[d];
|
|
23175
23174
|
if (p == null)
|
|
23176
23175
|
return 1;
|
|
@@ -23199,37 +23198,41 @@ const Z4 = xn.create({
|
|
|
23199
23198
|
r.items && r.items.length > 0 ? (J(), te("table", r6, [
|
|
23200
23199
|
ee("thead", null, [
|
|
23201
23200
|
ee("tr", null, [
|
|
23202
|
-
(J(!0), te(
|
|
23203
|
-
h.
|
|
23204
|
-
|
|
23205
|
-
|
|
23206
|
-
|
|
23207
|
-
|
|
23208
|
-
|
|
23209
|
-
|
|
23210
|
-
|
|
23211
|
-
|
|
23201
|
+
(J(!0), te(rt, null, Bt(r.fields, (h) => (J(), te(rt, null, [
|
|
23202
|
+
h.isVisible ? (J(), te(rt, { key: 0 }, [
|
|
23203
|
+
h.sortable ? (J(), Ye(t6, {
|
|
23204
|
+
key: 0,
|
|
23205
|
+
label: h.label,
|
|
23206
|
+
active: h.key == i.value,
|
|
23207
|
+
sortDesc: r.sortDesc,
|
|
23208
|
+
onClick: (p) => o(h.key),
|
|
23209
|
+
onSortAsc: (p) => a(h.key),
|
|
23210
|
+
onSortDesc: (p) => c(h.key)
|
|
23211
|
+
}, null, 8, ["label", "active", "sortDesc", "onClick", "onSortAsc", "onSortDesc"])) : (J(), te("th", s6, Pe(h.label), 1))
|
|
23212
|
+
], 64)) : He("", !0)
|
|
23212
23213
|
], 64))), 256))
|
|
23213
23214
|
])
|
|
23214
23215
|
]),
|
|
23215
23216
|
ee("tbody", null, [
|
|
23216
|
-
(J(!0), te(
|
|
23217
|
+
(J(!0), te(rt, null, Bt(s.value, (h) => (J(), te("tr", {
|
|
23217
23218
|
class: Ke(r.tbodyTrClass && r.tbodyTrClass(h)),
|
|
23218
23219
|
onClick: (p) => t("row-click", h)
|
|
23219
23220
|
}, [
|
|
23220
|
-
(J(!0), te(
|
|
23221
|
-
|
|
23222
|
-
key
|
|
23223
|
-
|
|
23224
|
-
|
|
23225
|
-
|
|
23226
|
-
|
|
23227
|
-
|
|
23228
|
-
|
|
23229
|
-
|
|
23221
|
+
(J(!0), te(rt, null, Bt(n.fields, (p) => (J(), te(rt, null, [
|
|
23222
|
+
p.isVisible ? (J(), te("td", o6, [
|
|
23223
|
+
d.$slots.hasOwnProperty(p.key) ? We(d.$slots, p.key, {
|
|
23224
|
+
key: 0,
|
|
23225
|
+
row: h,
|
|
23226
|
+
item: h,
|
|
23227
|
+
value: h[p.key]
|
|
23228
|
+
}) : (J(), te(rt, { key: 1 }, [
|
|
23229
|
+
ct(Pe(h[p.key]), 1)
|
|
23230
|
+
], 64))
|
|
23231
|
+
])) : He("", !0)
|
|
23232
|
+
], 64))), 256))
|
|
23230
23233
|
], 10, i6))), 256))
|
|
23231
23234
|
])
|
|
23232
|
-
])) : (J(), te("p",
|
|
23235
|
+
])) : (J(), te("p", a6, Pe(r.emptyText), 1))
|
|
23233
23236
|
]));
|
|
23234
23237
|
}
|
|
23235
23238
|
}), ym = /* @__PURE__ */ $e({
|
|
@@ -23262,7 +23265,7 @@ const Z4 = xn.create({
|
|
|
23262
23265
|
"dropdown-menu-action": e.actionToggle
|
|
23263
23266
|
})), o = _e(() => ({
|
|
23264
23267
|
"aria-labelledby": r
|
|
23265
|
-
})), l =
|
|
23268
|
+
})), l = at(), a = at(), c = () => {
|
|
23266
23269
|
l.value.classList.remove("show"), a.value.classList.remove("show"), a.value.removeAttribute("aria-expanded");
|
|
23267
23270
|
};
|
|
23268
23271
|
return (u, d) => (J(), te("div", {
|
|
@@ -23292,10 +23295,10 @@ const Z4 = xn.create({
|
|
|
23292
23295
|
], 16)
|
|
23293
23296
|
]));
|
|
23294
23297
|
}
|
|
23295
|
-
}),
|
|
23298
|
+
}), c6 = { class: "row bd-header" }, u6 = { class: "col logo-mix" }, d6 = ["src", "alt"], f6 = /* @__PURE__ */ ee("div", null, "Menu", -1), h6 = {
|
|
23296
23299
|
key: 0,
|
|
23297
23300
|
class: "col header-options"
|
|
23298
|
-
},
|
|
23301
|
+
}, p6 = { class: "col bd-btn-settings" }, m6 = "sm", g6 = /* @__PURE__ */ $e({
|
|
23299
23302
|
__name: "BDHeader",
|
|
23300
23303
|
props: {
|
|
23301
23304
|
dropdownMenuTitle: {},
|
|
@@ -23311,10 +23314,10 @@ const Z4 = xn.create({
|
|
|
23311
23314
|
const t = n, r = _e(() => {
|
|
23312
23315
|
let c = [];
|
|
23313
23316
|
return t.headerOptions && (c = c.concat(t.headerOptions)), t.dropdownOptions && (c = c.concat(t.dropdownOptions)), c;
|
|
23314
|
-
}), s =
|
|
23315
|
-
return (c, u) => (J(), te(
|
|
23316
|
-
ee("nav",
|
|
23317
|
-
ee("div",
|
|
23317
|
+
}), s = at(void 0), i = () => e("click"), o = () => e("signout"), l = () => s.value = !0, a = () => s.value = !1;
|
|
23318
|
+
return (c, u) => (J(), te(rt, null, [
|
|
23319
|
+
ee("nav", c6, [
|
|
23320
|
+
ee("div", u6, [
|
|
23318
23321
|
Te(qf, {
|
|
23319
23322
|
viewBox: "0 0 351 61",
|
|
23320
23323
|
class: "logo bd-logo",
|
|
@@ -23325,17 +23328,17 @@ const Z4 = xn.create({
|
|
|
23325
23328
|
class: "logo organization-logo",
|
|
23326
23329
|
src: t.organizationLogoSrc,
|
|
23327
23330
|
alt: t.organizationLogoAlt
|
|
23328
|
-
}, null, 8,
|
|
23331
|
+
}, null, 8, d6)) : He("", !0)
|
|
23329
23332
|
]),
|
|
23330
23333
|
ee("div", {
|
|
23331
23334
|
class: "col bd-hamburger",
|
|
23332
23335
|
onClick: l
|
|
23333
23336
|
}, [
|
|
23334
|
-
|
|
23337
|
+
f6,
|
|
23335
23338
|
Te(ml)
|
|
23336
23339
|
]),
|
|
23337
|
-
t.headerOptions && t.headerOptions.length !== 0 ? (J(), te("div",
|
|
23338
|
-
(J(!0), te(
|
|
23340
|
+
t.headerOptions && t.headerOptions.length !== 0 ? (J(), te("div", h6, [
|
|
23341
|
+
(J(!0), te(rt, null, Bt(t.headerOptions, (d) => (J(), Ye(yt, {
|
|
23339
23342
|
class: "btn-header",
|
|
23340
23343
|
to: d.to
|
|
23341
23344
|
}, {
|
|
@@ -23344,15 +23347,15 @@ const Z4 = xn.create({
|
|
|
23344
23347
|
]),
|
|
23345
23348
|
_: 2
|
|
23346
23349
|
}, 1032, ["to"]))), 256))
|
|
23347
|
-
])) :
|
|
23348
|
-
ee("div",
|
|
23350
|
+
])) : He("", !0),
|
|
23351
|
+
ee("div", p6, [
|
|
23349
23352
|
We(c.$slots, "profile-side"),
|
|
23350
23353
|
t.profileImageSrc ? (J(), Ye(Xo, {
|
|
23351
23354
|
key: 0,
|
|
23352
23355
|
src: t.profileImageSrc,
|
|
23353
23356
|
alt: t.profileImageAlt,
|
|
23354
|
-
size:
|
|
23355
|
-
}, null, 8, ["src", "alt"])) :
|
|
23357
|
+
size: m6
|
|
23358
|
+
}, null, 8, ["src", "alt"])) : He("", !0),
|
|
23356
23359
|
Te(ym, {
|
|
23357
23360
|
text: t.dropdownMenuTitle,
|
|
23358
23361
|
variant: "primary",
|
|
@@ -23360,7 +23363,7 @@ const Z4 = xn.create({
|
|
|
23360
23363
|
right: !0
|
|
23361
23364
|
}, {
|
|
23362
23365
|
default: Re(() => [
|
|
23363
|
-
(J(!0), te(
|
|
23366
|
+
(J(!0), te(rt, null, Bt(t.dropdownOptions, (d, f) => (J(), Ye(bl, an({ key: f }, d), null, 16))), 128)),
|
|
23364
23367
|
Te(bl, {
|
|
23365
23368
|
text: "Uitloggen",
|
|
23366
23369
|
onClick: o
|
|
@@ -23383,13 +23386,13 @@ const Z4 = xn.create({
|
|
|
23383
23386
|
}, 8, ["active", "options"])
|
|
23384
23387
|
], 64));
|
|
23385
23388
|
}
|
|
23386
|
-
}),
|
|
23389
|
+
}), v6 = {
|
|
23387
23390
|
class: "modal bd-modal modal-lg",
|
|
23388
23391
|
tabindex: "-1"
|
|
23389
|
-
},
|
|
23392
|
+
}, y6 = { class: "modal-dialog" }, b6 = { class: "modal-content" }, E6 = { class: "modal-header" }, S6 = { class: "modal-title" }, C6 = /* @__PURE__ */ ee("span", null, "Sluiten", -1), w6 = { class: "modal-body" }, T6 = {
|
|
23390
23393
|
key: 0,
|
|
23391
23394
|
class: "modal-footer"
|
|
23392
|
-
},
|
|
23395
|
+
}, x6 = ["disabled"], A6 = /* @__PURE__ */ $e({
|
|
23393
23396
|
__name: "BDModal",
|
|
23394
23397
|
props: {
|
|
23395
23398
|
title: { default: "" },
|
|
@@ -23407,11 +23410,11 @@ const Z4 = xn.create({
|
|
|
23407
23410
|
}, s = () => {
|
|
23408
23411
|
e("cancel");
|
|
23409
23412
|
};
|
|
23410
|
-
return (i, o) => (J(), te("div",
|
|
23411
|
-
ee("div",
|
|
23412
|
-
ee("div",
|
|
23413
|
-
ee("div",
|
|
23414
|
-
ee("h2",
|
|
23413
|
+
return (i, o) => (J(), te("div", v6, [
|
|
23414
|
+
ee("div", y6, [
|
|
23415
|
+
ee("div", b6, [
|
|
23416
|
+
ee("div", E6, [
|
|
23417
|
+
ee("h2", S6, Pe(t.title), 1),
|
|
23415
23418
|
We(i.$slots, "modal-header-space-between"),
|
|
23416
23419
|
ee("button", {
|
|
23417
23420
|
type: "button",
|
|
@@ -23420,22 +23423,22 @@ const Z4 = xn.create({
|
|
|
23420
23423
|
"aria-label": "Sluiten",
|
|
23421
23424
|
onClick: s
|
|
23422
23425
|
}, [
|
|
23423
|
-
|
|
23426
|
+
C6,
|
|
23424
23427
|
Te(Ae(sc), { class: "bg-primary" })
|
|
23425
23428
|
])
|
|
23426
23429
|
]),
|
|
23427
|
-
ee("div",
|
|
23430
|
+
ee("div", w6, [
|
|
23428
23431
|
We(i.$slots, "default")
|
|
23429
23432
|
]),
|
|
23430
|
-
i.hideFooter ?
|
|
23431
|
-
t.hideFooterSubmitButton ?
|
|
23433
|
+
i.hideFooter ? He("", !0) : (J(), te("div", T6, [
|
|
23434
|
+
t.hideFooterSubmitButton ? He("", !0) : (J(), te("button", {
|
|
23432
23435
|
key: 0,
|
|
23433
23436
|
type: "button",
|
|
23434
23437
|
class: "btn btn-primary",
|
|
23435
23438
|
disabled: t.disableSubmitButton,
|
|
23436
23439
|
onClick: r
|
|
23437
|
-
}, Pe(t.submitButtonTitle), 9,
|
|
23438
|
-
t.hideFooterCancelButton ?
|
|
23440
|
+
}, Pe(t.submitButtonTitle), 9, x6)),
|
|
23441
|
+
t.hideFooterCancelButton ? He("", !0) : (J(), te("button", {
|
|
23439
23442
|
key: 1,
|
|
23440
23443
|
type: "button",
|
|
23441
23444
|
class: "btn btn-link",
|
|
@@ -23448,7 +23451,7 @@ const Z4 = xn.create({
|
|
|
23448
23451
|
])
|
|
23449
23452
|
]));
|
|
23450
23453
|
}
|
|
23451
|
-
}),
|
|
23454
|
+
}), k6 = { class: "template change-password-template" }, O6 = { class: "template-title" }, M6 = { key: 0 }, _6 = { key: 1 }, I6 = ["onSubmit", "onReset"], D6 = { class: "bd-form-field" }, N6 = { class: "bd-form-field" }, L6 = { class: "bd-form-field" }, R6 = { class: "bd-form-buttons" }, P6 = /* @__PURE__ */ $e({
|
|
23452
23455
|
__name: "BDChangePasswordTemplate",
|
|
23453
23456
|
props: {
|
|
23454
23457
|
data: {},
|
|
@@ -23467,7 +23470,7 @@ const Z4 = xn.create({
|
|
|
23467
23470
|
emits: ["submit", "reset"],
|
|
23468
23471
|
setup(n, { emit: e }) {
|
|
23469
23472
|
const t = () => e("submit"), r = () => e("reset");
|
|
23470
|
-
return (s, i) => (J(), te("main",
|
|
23473
|
+
return (s, i) => (J(), te("main", k6, [
|
|
23471
23474
|
Te(hl, { class: "container-xl" }, {
|
|
23472
23475
|
default: Re(() => [
|
|
23473
23476
|
Te(Kr, { class: "justify-content-md-center template-header" }, {
|
|
@@ -23478,7 +23481,7 @@ const Z4 = xn.create({
|
|
|
23478
23481
|
lg: 7
|
|
23479
23482
|
}, {
|
|
23480
23483
|
default: Re(() => [
|
|
23481
|
-
ee("h2",
|
|
23484
|
+
ee("h2", O6, Pe(s.title), 1)
|
|
23482
23485
|
]),
|
|
23483
23486
|
_: 1
|
|
23484
23487
|
})
|
|
@@ -23522,14 +23525,14 @@ const Z4 = xn.create({
|
|
|
23522
23525
|
default: Re(() => [
|
|
23523
23526
|
Te(gl, { variant: "danger" }, {
|
|
23524
23527
|
default: Re(() => [
|
|
23525
|
-
s.errorMessages ? (J(), te("div",
|
|
23528
|
+
s.errorMessages ? (J(), te("div", M6, [
|
|
23526
23529
|
ee("ul", null, [
|
|
23527
|
-
(J(!0), te(
|
|
23530
|
+
(J(!0), te(rt, null, Bt(s.errorMessages, (o, l) => (J(), te("li", { key: l }, [
|
|
23528
23531
|
Te(Go),
|
|
23529
23532
|
ct(" " + Pe(o), 1)
|
|
23530
23533
|
]))), 128))
|
|
23531
23534
|
])
|
|
23532
|
-
])) : (J(), te("div",
|
|
23535
|
+
])) : (J(), te("div", _6, Pe(s.errorMessageText), 1))
|
|
23533
23536
|
]),
|
|
23534
23537
|
_: 1
|
|
23535
23538
|
})
|
|
@@ -23538,7 +23541,7 @@ const Z4 = xn.create({
|
|
|
23538
23541
|
})
|
|
23539
23542
|
]),
|
|
23540
23543
|
_: 1
|
|
23541
|
-
})) :
|
|
23544
|
+
})) : He("", !0),
|
|
23542
23545
|
Te(Kr, null, {
|
|
23543
23546
|
default: Re(() => [
|
|
23544
23547
|
Te(Wr, {
|
|
@@ -23552,7 +23555,7 @@ const Z4 = xn.create({
|
|
|
23552
23555
|
onReset: cs(r, ["prevent"]),
|
|
23553
23556
|
class: "form"
|
|
23554
23557
|
}, [
|
|
23555
|
-
ee("div",
|
|
23558
|
+
ee("div", D6, [
|
|
23556
23559
|
Te(Pi, {
|
|
23557
23560
|
modelValue: s.data.password,
|
|
23558
23561
|
"onUpdate:modelValue": i[0] || (i[0] = (o) => s.data.password = o),
|
|
@@ -23562,7 +23565,7 @@ const Z4 = xn.create({
|
|
|
23562
23565
|
invalidFeedbackText: s.validation.password.errorLabel
|
|
23563
23566
|
}, null, 8, ["modelValue", "label", "state", "invalidFeedbackText"])
|
|
23564
23567
|
]),
|
|
23565
|
-
ee("div",
|
|
23568
|
+
ee("div", N6, [
|
|
23566
23569
|
Te(Pi, {
|
|
23567
23570
|
modelValue: s.data.passwordNew,
|
|
23568
23571
|
"onUpdate:modelValue": i[1] || (i[1] = (o) => s.data.passwordNew = o),
|
|
@@ -23572,7 +23575,7 @@ const Z4 = xn.create({
|
|
|
23572
23575
|
invalidFeedbackText: s.validation.passwordNew.errorLabel
|
|
23573
23576
|
}, null, 8, ["modelValue", "label", "state", "invalidFeedbackText"])
|
|
23574
23577
|
]),
|
|
23575
|
-
ee("div",
|
|
23578
|
+
ee("div", L6, [
|
|
23576
23579
|
Te(Pi, {
|
|
23577
23580
|
modelValue: s.data.passwordRepeat,
|
|
23578
23581
|
"onUpdate:modelValue": i[2] || (i[2] = (o) => s.data.passwordRepeat = o),
|
|
@@ -23582,7 +23585,7 @@ const Z4 = xn.create({
|
|
|
23582
23585
|
invalidFeedbackText: s.validation.passwordRepeat.errorLabel
|
|
23583
23586
|
}, null, 8, ["modelValue", "label", "state", "invalidFeedbackText"])
|
|
23584
23587
|
]),
|
|
23585
|
-
ee("div",
|
|
23588
|
+
ee("div", R6, [
|
|
23586
23589
|
Te(yt, { type: "submit" }, {
|
|
23587
23590
|
default: Re(() => [
|
|
23588
23591
|
ct(Pe(s.submitButtonText), 1)
|
|
@@ -23599,7 +23602,7 @@ const Z4 = xn.create({
|
|
|
23599
23602
|
_: 1
|
|
23600
23603
|
})
|
|
23601
23604
|
])
|
|
23602
|
-
], 40,
|
|
23605
|
+
], 40, I6)
|
|
23603
23606
|
]),
|
|
23604
23607
|
_: 1
|
|
23605
23608
|
})
|
|
@@ -23648,12 +23651,12 @@ const Un = /* @__PURE__ */ new Map(), qa = {
|
|
|
23648
23651
|
const t = Un.get(n);
|
|
23649
23652
|
t.delete(e), t.size === 0 && Un.delete(n);
|
|
23650
23653
|
}
|
|
23651
|
-
},
|
|
23654
|
+
}, $6 = 1e6, F6 = 1e3, ql = "transitionend", bm = (n) => (n && window.CSS && window.CSS.escape && (n = n.replace(/#([^\s"#']+)/g, (e, t) => `#${CSS.escape(t)}`)), n), B6 = (n) => n == null ? `${n}` : Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(), V6 = (n) => {
|
|
23652
23655
|
do
|
|
23653
|
-
n += Math.floor(Math.random() *
|
|
23656
|
+
n += Math.floor(Math.random() * $6);
|
|
23654
23657
|
while (document.getElementById(n));
|
|
23655
23658
|
return n;
|
|
23656
|
-
},
|
|
23659
|
+
}, H6 = (n) => {
|
|
23657
23660
|
if (!n)
|
|
23658
23661
|
return 0;
|
|
23659
23662
|
let {
|
|
@@ -23661,7 +23664,7 @@ const Un = /* @__PURE__ */ new Map(), qa = {
|
|
|
23661
23664
|
transitionDelay: t
|
|
23662
23665
|
} = window.getComputedStyle(n);
|
|
23663
23666
|
const r = Number.parseFloat(e), s = Number.parseFloat(t);
|
|
23664
|
-
return !r && !s ? 0 : (e = e.split(",")[0], t = t.split(",")[0], (Number.parseFloat(e) + Number.parseFloat(t)) *
|
|
23667
|
+
return !r && !s ? 0 : (e = e.split(",")[0], t = t.split(",")[0], (Number.parseFloat(e) + Number.parseFloat(t)) * F6);
|
|
23665
23668
|
}, Em = (n) => {
|
|
23666
23669
|
n.dispatchEvent(new Event(ql));
|
|
23667
23670
|
}, Rn = (n) => !n || typeof n != "object" ? !1 : (typeof n.jquery < "u" && (n = n[0]), typeof n.nodeType < "u"), rr = (n) => Rn(n) ? n.jquery ? n[0] : n : typeof n == "string" && n.length > 0 ? document.querySelector(bm(n)) : null, ks = (n) => {
|
|
@@ -23687,13 +23690,13 @@ const Un = /* @__PURE__ */ new Map(), qa = {
|
|
|
23687
23690
|
}, Ho = () => {
|
|
23688
23691
|
}, hi = (n) => {
|
|
23689
23692
|
n.offsetHeight;
|
|
23690
|
-
}, Cm = () => window.jQuery && !document.body.hasAttribute("data-bs-no-jquery") ? window.jQuery : null, el = [],
|
|
23693
|
+
}, Cm = () => window.jQuery && !document.body.hasAttribute("data-bs-no-jquery") ? window.jQuery : null, el = [], z6 = (n) => {
|
|
23691
23694
|
document.readyState === "loading" ? (el.length || document.addEventListener("DOMContentLoaded", () => {
|
|
23692
23695
|
for (const e of el)
|
|
23693
23696
|
e();
|
|
23694
23697
|
}), el.push(n)) : n();
|
|
23695
23698
|
}, en = () => document.documentElement.dir === "rtl", nn = (n) => {
|
|
23696
|
-
|
|
23699
|
+
z6(() => {
|
|
23697
23700
|
const e = Cm();
|
|
23698
23701
|
if (e) {
|
|
23699
23702
|
const t = n.NAME, r = e.fn[t];
|
|
@@ -23705,7 +23708,7 @@ const Un = /* @__PURE__ */ new Map(), qa = {
|
|
|
23705
23708
|
Nt(n);
|
|
23706
23709
|
return;
|
|
23707
23710
|
}
|
|
23708
|
-
const r = 5, s =
|
|
23711
|
+
const r = 5, s = H6(e) + r;
|
|
23709
23712
|
let i = !1;
|
|
23710
23713
|
const o = ({
|
|
23711
23714
|
target: l
|
|
@@ -23719,12 +23722,12 @@ const Un = /* @__PURE__ */ new Map(), qa = {
|
|
|
23719
23722
|
const s = n.length;
|
|
23720
23723
|
let i = n.indexOf(e);
|
|
23721
23724
|
return i === -1 ? !t && r ? n[s - 1] : n[0] : (i += t ? 1 : -1, r && (i = (i + s) % s), n[Math.max(0, Math.min(i, s - 1))]);
|
|
23722
|
-
},
|
|
23725
|
+
}, U6 = /[^.]*(?=\..*)\.|.*/, j6 = /\..*/, W6 = /::\d+$/, tl = {};
|
|
23723
23726
|
let df = 1;
|
|
23724
23727
|
const Tm = {
|
|
23725
23728
|
mouseenter: "mouseover",
|
|
23726
23729
|
mouseleave: "mouseout"
|
|
23727
|
-
},
|
|
23730
|
+
}, K6 = /* @__PURE__ */ new Set(["click", "dblclick", "mouseup", "mousedown", "contextmenu", "mousewheel", "DOMMouseScroll", "mouseover", "mouseout", "mousemove", "selectstart", "selectend", "keydown", "keypress", "keyup", "orientationchange", "touchstart", "touchmove", "touchend", "touchcancel", "pointerdown", "pointermove", "pointerup", "pointerleave", "pointercancel", "gesturestart", "gesturechange", "gestureend", "focus", "blur", "change", "reset", "select", "submit", "focusin", "focusout", "load", "unload", "beforeunload", "resize", "move", "DOMContentLoaded", "readystatechange", "error", "abort", "scroll"]);
|
|
23728
23731
|
function xm(n, e) {
|
|
23729
23732
|
return e && `${e}::${df++}` || n.uidEvent || df++;
|
|
23730
23733
|
}
|
|
@@ -23732,14 +23735,14 @@ function Am(n) {
|
|
|
23732
23735
|
const e = xm(n);
|
|
23733
23736
|
return n.uidEvent = e, tl[e] = tl[e] || {}, tl[e];
|
|
23734
23737
|
}
|
|
23735
|
-
function
|
|
23738
|
+
function Y6(n, e) {
|
|
23736
23739
|
return function t(r) {
|
|
23737
23740
|
return Qc(r, {
|
|
23738
23741
|
delegateTarget: n
|
|
23739
23742
|
}), t.oneOff && ae.off(n, r.type, e), e.apply(n, [r]);
|
|
23740
23743
|
};
|
|
23741
23744
|
}
|
|
23742
|
-
function
|
|
23745
|
+
function G6(n, e, t) {
|
|
23743
23746
|
return function r(s) {
|
|
23744
23747
|
const i = n.querySelectorAll(e);
|
|
23745
23748
|
for (let {
|
|
@@ -23758,7 +23761,7 @@ function km(n, e, t = null) {
|
|
|
23758
23761
|
function Om(n, e, t) {
|
|
23759
23762
|
const r = typeof e == "string", s = r ? t : e || t;
|
|
23760
23763
|
let i = Mm(n);
|
|
23761
|
-
return
|
|
23764
|
+
return K6.has(i) || (i = n), [r, s, i];
|
|
23762
23765
|
}
|
|
23763
23766
|
function ff(n, e, t, r, s) {
|
|
23764
23767
|
if (typeof e != "string" || !n)
|
|
@@ -23773,20 +23776,20 @@ function ff(n, e, t, r, s) {
|
|
|
23773
23776
|
u.oneOff = u.oneOff && s;
|
|
23774
23777
|
return;
|
|
23775
23778
|
}
|
|
23776
|
-
const d = xm(o, e.replace(
|
|
23779
|
+
const d = xm(o, e.replace(U6, "")), f = i ? G6(n, t, o) : Y6(n, o);
|
|
23777
23780
|
f.delegationSelector = i ? t : null, f.callable = o, f.oneOff = s, f.uidEvent = d, c[d] = f, n.addEventListener(l, f, i);
|
|
23778
23781
|
}
|
|
23779
23782
|
function ec(n, e, t, r, s) {
|
|
23780
23783
|
const i = km(e[t], r, s);
|
|
23781
23784
|
i && (n.removeEventListener(t, i, !!s), delete e[t][i.uidEvent]);
|
|
23782
23785
|
}
|
|
23783
|
-
function
|
|
23786
|
+
function J6(n, e, t, r) {
|
|
23784
23787
|
const s = e[t] || {};
|
|
23785
23788
|
for (const [i, o] of Object.entries(s))
|
|
23786
23789
|
i.includes(r) && ec(n, e, t, o.callable, o.delegationSelector);
|
|
23787
23790
|
}
|
|
23788
23791
|
function Mm(n) {
|
|
23789
|
-
return n = n.replace(
|
|
23792
|
+
return n = n.replace(j6, ""), Tm[n] || n;
|
|
23790
23793
|
}
|
|
23791
23794
|
const ae = {
|
|
23792
23795
|
on(n, e, t, r) {
|
|
@@ -23807,9 +23810,9 @@ const ae = {
|
|
|
23807
23810
|
}
|
|
23808
23811
|
if (u)
|
|
23809
23812
|
for (const d of Object.keys(a))
|
|
23810
|
-
|
|
23813
|
+
J6(n, a, d, e.slice(1));
|
|
23811
23814
|
for (const [d, f] of Object.entries(c)) {
|
|
23812
|
-
const h = d.replace(
|
|
23815
|
+
const h = d.replace(W6, "");
|
|
23813
23816
|
(!l || e.includes(h)) && ec(n, a, o, f.callable, f.delegationSelector);
|
|
23814
23817
|
}
|
|
23815
23818
|
},
|
|
@@ -23909,13 +23912,13 @@ class pi {
|
|
|
23909
23912
|
}
|
|
23910
23913
|
_typeCheckConfig(e, t = this.constructor.DefaultType) {
|
|
23911
23914
|
for (const [r, s] of Object.entries(t)) {
|
|
23912
|
-
const i = e[r], o = Rn(i) ? "element" :
|
|
23915
|
+
const i = e[r], o = Rn(i) ? "element" : B6(i);
|
|
23913
23916
|
if (!new RegExp(s).test(o))
|
|
23914
23917
|
throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${o}" but expected type "${s}".`);
|
|
23915
23918
|
}
|
|
23916
23919
|
}
|
|
23917
23920
|
}
|
|
23918
|
-
const
|
|
23921
|
+
const Z6 = "5.3.0";
|
|
23919
23922
|
class dn extends pi {
|
|
23920
23923
|
constructor(e, t) {
|
|
23921
23924
|
super(), e = rr(e), e && (this._element = e, this._config = this._getConfig(t), qa.set(this._element, this.constructor.DATA_KEY, this));
|
|
@@ -23940,7 +23943,7 @@ class dn extends pi {
|
|
|
23940
23943
|
return this.getInstance(e) || new this(e, typeof t == "object" ? t : null);
|
|
23941
23944
|
}
|
|
23942
23945
|
static get VERSION() {
|
|
23943
|
-
return
|
|
23946
|
+
return Z6;
|
|
23944
23947
|
}
|
|
23945
23948
|
static get DATA_KEY() {
|
|
23946
23949
|
return `bs.${this.NAME}`;
|
|
@@ -24021,23 +24024,23 @@ const rl = (n) => {
|
|
|
24021
24024
|
const i = ke.getElementFromSelector(this) || this.closest(`.${r}`);
|
|
24022
24025
|
n.getOrCreateInstance(i)[e]();
|
|
24023
24026
|
});
|
|
24024
|
-
},
|
|
24027
|
+
}, X6 = "alert", Q6 = "bs.alert", _m = `.${Q6}`, q6 = `close${_m}`, eS = `closed${_m}`, tS = "fade", nS = "show";
|
|
24025
24028
|
class ga extends dn {
|
|
24026
24029
|
// Getters
|
|
24027
24030
|
static get NAME() {
|
|
24028
|
-
return
|
|
24031
|
+
return X6;
|
|
24029
24032
|
}
|
|
24030
24033
|
// Public
|
|
24031
24034
|
close() {
|
|
24032
|
-
if (ae.trigger(this._element,
|
|
24035
|
+
if (ae.trigger(this._element, q6).defaultPrevented)
|
|
24033
24036
|
return;
|
|
24034
|
-
this._element.classList.remove(
|
|
24035
|
-
const t = this._element.classList.contains(
|
|
24037
|
+
this._element.classList.remove(nS);
|
|
24038
|
+
const t = this._element.classList.contains(tS);
|
|
24036
24039
|
this._queueCallback(() => this._destroyElement(), this._element, t);
|
|
24037
24040
|
}
|
|
24038
24041
|
// Private
|
|
24039
24042
|
_destroyElement() {
|
|
24040
|
-
this._element.remove(), ae.trigger(this._element,
|
|
24043
|
+
this._element.remove(), ae.trigger(this._element, eS), this.dispose();
|
|
24041
24044
|
}
|
|
24042
24045
|
// Static
|
|
24043
24046
|
static jQueryInterface(e) {
|
|
@@ -24053,15 +24056,15 @@ class ga extends dn {
|
|
|
24053
24056
|
}
|
|
24054
24057
|
ma(ga, "close");
|
|
24055
24058
|
nn(ga);
|
|
24056
|
-
const
|
|
24059
|
+
const rS = "button", sS = "bs.button", iS = `.${sS}`, oS = ".data-api", aS = "active", pf = '[data-bs-toggle="button"]', lS = `click${iS}${oS}`;
|
|
24057
24060
|
class va extends dn {
|
|
24058
24061
|
// Getters
|
|
24059
24062
|
static get NAME() {
|
|
24060
|
-
return
|
|
24063
|
+
return rS;
|
|
24061
24064
|
}
|
|
24062
24065
|
// Public
|
|
24063
24066
|
toggle() {
|
|
24064
|
-
this._element.setAttribute("aria-pressed", this._element.classList.toggle(
|
|
24067
|
+
this._element.setAttribute("aria-pressed", this._element.classList.toggle(aS));
|
|
24065
24068
|
}
|
|
24066
24069
|
// Static
|
|
24067
24070
|
static jQueryInterface(e) {
|
|
@@ -24071,17 +24074,17 @@ class va extends dn {
|
|
|
24071
24074
|
});
|
|
24072
24075
|
}
|
|
24073
24076
|
}
|
|
24074
|
-
ae.on(document,
|
|
24077
|
+
ae.on(document, lS, pf, (n) => {
|
|
24075
24078
|
n.preventDefault();
|
|
24076
24079
|
const e = n.target.closest(pf);
|
|
24077
24080
|
va.getOrCreateInstance(e).toggle();
|
|
24078
24081
|
});
|
|
24079
24082
|
nn(va);
|
|
24080
|
-
const
|
|
24083
|
+
const cS = "swipe", Os = ".bs.swipe", uS = `touchstart${Os}`, dS = `touchmove${Os}`, fS = `touchend${Os}`, hS = `pointerdown${Os}`, pS = `pointerup${Os}`, mS = "touch", gS = "pen", vS = "pointer-event", yS = 40, bS = {
|
|
24081
24084
|
endCallback: null,
|
|
24082
24085
|
leftCallback: null,
|
|
24083
24086
|
rightCallback: null
|
|
24084
|
-
},
|
|
24087
|
+
}, ES = {
|
|
24085
24088
|
endCallback: "(function|null)",
|
|
24086
24089
|
leftCallback: "(function|null)",
|
|
24087
24090
|
rightCallback: "(function|null)"
|
|
@@ -24092,13 +24095,13 @@ class zo extends pi {
|
|
|
24092
24095
|
}
|
|
24093
24096
|
// Getters
|
|
24094
24097
|
static get Default() {
|
|
24095
|
-
return
|
|
24098
|
+
return bS;
|
|
24096
24099
|
}
|
|
24097
24100
|
static get DefaultType() {
|
|
24098
|
-
return
|
|
24101
|
+
return ES;
|
|
24099
24102
|
}
|
|
24100
24103
|
static get NAME() {
|
|
24101
|
-
return
|
|
24104
|
+
return cS;
|
|
24102
24105
|
}
|
|
24103
24106
|
// Public
|
|
24104
24107
|
dispose() {
|
|
@@ -24120,33 +24123,33 @@ class zo extends pi {
|
|
|
24120
24123
|
}
|
|
24121
24124
|
_handleSwipe() {
|
|
24122
24125
|
const e = Math.abs(this._deltaX);
|
|
24123
|
-
if (e <=
|
|
24126
|
+
if (e <= yS)
|
|
24124
24127
|
return;
|
|
24125
24128
|
const t = e / this._deltaX;
|
|
24126
24129
|
this._deltaX = 0, t && Nt(t > 0 ? this._config.rightCallback : this._config.leftCallback);
|
|
24127
24130
|
}
|
|
24128
24131
|
_initEvents() {
|
|
24129
|
-
this._supportPointerEvents ? (ae.on(this._element,
|
|
24132
|
+
this._supportPointerEvents ? (ae.on(this._element, hS, (e) => this._start(e)), ae.on(this._element, pS, (e) => this._end(e)), this._element.classList.add(vS)) : (ae.on(this._element, uS, (e) => this._start(e)), ae.on(this._element, dS, (e) => this._move(e)), ae.on(this._element, fS, (e) => this._end(e)));
|
|
24130
24133
|
}
|
|
24131
24134
|
_eventIsPointerPenTouch(e) {
|
|
24132
|
-
return this._supportPointerEvents && (e.pointerType ===
|
|
24135
|
+
return this._supportPointerEvents && (e.pointerType === gS || e.pointerType === mS);
|
|
24133
24136
|
}
|
|
24134
24137
|
// Static
|
|
24135
24138
|
static isSupported() {
|
|
24136
24139
|
return "ontouchstart" in document.documentElement || navigator.maxTouchPoints > 0;
|
|
24137
24140
|
}
|
|
24138
24141
|
}
|
|
24139
|
-
const
|
|
24140
|
-
[
|
|
24141
|
-
[
|
|
24142
|
-
},
|
|
24142
|
+
const SS = "carousel", CS = "bs.carousel", ur = `.${CS}`, Im = ".data-api", wS = "ArrowLeft", TS = "ArrowRight", xS = 500, _s = "next", Ur = "prev", Qr = "left", zi = "right", AS = `slide${ur}`, sl = `slid${ur}`, kS = `keydown${ur}`, OS = `mouseenter${ur}`, MS = `mouseleave${ur}`, _S = `dragstart${ur}`, IS = `load${ur}${Im}`, DS = `click${ur}${Im}`, Dm = "carousel", _i = "active", NS = "slide", LS = "carousel-item-end", RS = "carousel-item-start", PS = "carousel-item-next", $S = "carousel-item-prev", Nm = ".active", Lm = ".carousel-item", FS = Nm + Lm, BS = ".carousel-item img", VS = ".carousel-indicators", HS = "[data-bs-slide], [data-bs-slide-to]", zS = '[data-bs-ride="carousel"]', US = {
|
|
24143
|
+
[wS]: zi,
|
|
24144
|
+
[TS]: Qr
|
|
24145
|
+
}, jS = {
|
|
24143
24146
|
interval: 5e3,
|
|
24144
24147
|
keyboard: !0,
|
|
24145
24148
|
pause: "hover",
|
|
24146
24149
|
ride: !1,
|
|
24147
24150
|
touch: !0,
|
|
24148
24151
|
wrap: !0
|
|
24149
|
-
},
|
|
24152
|
+
}, WS = {
|
|
24150
24153
|
interval: "(number|boolean)",
|
|
24151
24154
|
// TODO:v6 remove boolean support
|
|
24152
24155
|
keyboard: "boolean",
|
|
@@ -24157,17 +24160,17 @@ const ES = "carousel", SS = "bs.carousel", ur = `.${SS}`, Im = ".data-api", CS =
|
|
|
24157
24160
|
};
|
|
24158
24161
|
class mi extends dn {
|
|
24159
24162
|
constructor(e, t) {
|
|
24160
|
-
super(e, t), this._interval = null, this._activeElement = null, this._isSliding = !1, this.touchTimeout = null, this._swipeHelper = null, this._indicatorsElement = ke.findOne(
|
|
24163
|
+
super(e, t), this._interval = null, this._activeElement = null, this._isSliding = !1, this.touchTimeout = null, this._swipeHelper = null, this._indicatorsElement = ke.findOne(VS, this._element), this._addEventListeners(), this._config.ride === Dm && this.cycle();
|
|
24161
24164
|
}
|
|
24162
24165
|
// Getters
|
|
24163
24166
|
static get Default() {
|
|
24164
|
-
return
|
|
24167
|
+
return jS;
|
|
24165
24168
|
}
|
|
24166
24169
|
static get DefaultType() {
|
|
24167
|
-
return
|
|
24170
|
+
return WS;
|
|
24168
24171
|
}
|
|
24169
24172
|
static get NAME() {
|
|
24170
|
-
return
|
|
24173
|
+
return SS;
|
|
24171
24174
|
}
|
|
24172
24175
|
// Public
|
|
24173
24176
|
next() {
|
|
@@ -24216,16 +24219,16 @@ class mi extends dn {
|
|
|
24216
24219
|
return e.defaultInterval = e.interval, e;
|
|
24217
24220
|
}
|
|
24218
24221
|
_addEventListeners() {
|
|
24219
|
-
this._config.keyboard && ae.on(this._element,
|
|
24222
|
+
this._config.keyboard && ae.on(this._element, kS, (e) => this._keydown(e)), this._config.pause === "hover" && (ae.on(this._element, OS, () => this.pause()), ae.on(this._element, MS, () => this._maybeEnableCycle())), this._config.touch && zo.isSupported() && this._addTouchEventListeners();
|
|
24220
24223
|
}
|
|
24221
24224
|
_addTouchEventListeners() {
|
|
24222
|
-
for (const r of ke.find(
|
|
24223
|
-
ae.on(r,
|
|
24225
|
+
for (const r of ke.find(BS, this._element))
|
|
24226
|
+
ae.on(r, _S, (s) => s.preventDefault());
|
|
24224
24227
|
const t = {
|
|
24225
24228
|
leftCallback: () => this._slide(this._directionToOrder(Qr)),
|
|
24226
24229
|
rightCallback: () => this._slide(this._directionToOrder(zi)),
|
|
24227
24230
|
endCallback: () => {
|
|
24228
|
-
this._config.pause === "hover" && (this.pause(), this.touchTimeout && clearTimeout(this.touchTimeout), this.touchTimeout = setTimeout(() => this._maybeEnableCycle(),
|
|
24231
|
+
this._config.pause === "hover" && (this.pause(), this.touchTimeout && clearTimeout(this.touchTimeout), this.touchTimeout = setTimeout(() => this._maybeEnableCycle(), xS + this._config.interval));
|
|
24229
24232
|
}
|
|
24230
24233
|
};
|
|
24231
24234
|
this._swipeHelper = new zo(this._element, t);
|
|
@@ -24233,7 +24236,7 @@ class mi extends dn {
|
|
|
24233
24236
|
_keydown(e) {
|
|
24234
24237
|
if (/input|textarea/i.test(e.target.tagName))
|
|
24235
24238
|
return;
|
|
24236
|
-
const t =
|
|
24239
|
+
const t = US[e.key];
|
|
24237
24240
|
t && (e.preventDefault(), this._slide(this._directionToOrder(t)));
|
|
24238
24241
|
}
|
|
24239
24242
|
_getItemIndex(e) {
|
|
@@ -24266,11 +24269,11 @@ class mi extends dn {
|
|
|
24266
24269
|
from: this._getItemIndex(r),
|
|
24267
24270
|
to: o
|
|
24268
24271
|
});
|
|
24269
|
-
if (l(
|
|
24272
|
+
if (l(AS).defaultPrevented || !r || !i)
|
|
24270
24273
|
return;
|
|
24271
24274
|
const c = !!this._interval;
|
|
24272
24275
|
this.pause(), this._isSliding = !0, this._setActiveIndicatorElement(o), this._activeElement = i;
|
|
24273
|
-
const u = s ?
|
|
24276
|
+
const u = s ? RS : LS, d = s ? PS : $S;
|
|
24274
24277
|
i.classList.add(d), hi(i), r.classList.add(u), i.classList.add(u);
|
|
24275
24278
|
const f = () => {
|
|
24276
24279
|
i.classList.remove(u, d), i.classList.add(_i), r.classList.remove(_i, d, u), this._isSliding = !1, l(sl);
|
|
@@ -24278,10 +24281,10 @@ class mi extends dn {
|
|
|
24278
24281
|
this._queueCallback(f, r, this._isAnimated()), c && this.cycle();
|
|
24279
24282
|
}
|
|
24280
24283
|
_isAnimated() {
|
|
24281
|
-
return this._element.classList.contains(
|
|
24284
|
+
return this._element.classList.contains(NS);
|
|
24282
24285
|
}
|
|
24283
24286
|
_getActive() {
|
|
24284
|
-
return ke.findOne(
|
|
24287
|
+
return ke.findOne(FS, this._element);
|
|
24285
24288
|
}
|
|
24286
24289
|
_getItems() {
|
|
24287
24290
|
return ke.find(Lm, this._element);
|
|
@@ -24311,7 +24314,7 @@ class mi extends dn {
|
|
|
24311
24314
|
});
|
|
24312
24315
|
}
|
|
24313
24316
|
}
|
|
24314
|
-
ae.on(document,
|
|
24317
|
+
ae.on(document, DS, HS, function(n) {
|
|
24315
24318
|
const e = ke.getElementFromSelector(this);
|
|
24316
24319
|
if (!e || !e.classList.contains(Dm))
|
|
24317
24320
|
return;
|
|
@@ -24327,16 +24330,16 @@ ae.on(document, IS, VS, function(n) {
|
|
|
24327
24330
|
}
|
|
24328
24331
|
t.prev(), t._maybeEnableCycle();
|
|
24329
24332
|
});
|
|
24330
|
-
ae.on(window,
|
|
24331
|
-
const n = ke.find(
|
|
24333
|
+
ae.on(window, IS, () => {
|
|
24334
|
+
const n = ke.find(zS);
|
|
24332
24335
|
for (const e of n)
|
|
24333
24336
|
mi.getOrCreateInstance(e);
|
|
24334
24337
|
});
|
|
24335
24338
|
nn(mi);
|
|
24336
|
-
const
|
|
24339
|
+
const KS = "collapse", YS = "bs.collapse", gi = `.${YS}`, GS = ".data-api", JS = `show${gi}`, ZS = `shown${gi}`, XS = `hide${gi}`, QS = `hidden${gi}`, qS = `click${gi}${GS}`, il = "show", rs = "collapse", Ii = "collapsing", eC = "collapsed", tC = `:scope .${rs} .${rs}`, nC = "collapse-horizontal", rC = "width", sC = "height", iC = ".collapse.show, .collapse.collapsing", tc = '[data-bs-toggle="collapse"]', oC = {
|
|
24337
24340
|
parent: null,
|
|
24338
24341
|
toggle: !0
|
|
24339
|
-
},
|
|
24342
|
+
}, aC = {
|
|
24340
24343
|
parent: "(null|element)",
|
|
24341
24344
|
toggle: "boolean"
|
|
24342
24345
|
};
|
|
@@ -24352,13 +24355,13 @@ class oi extends dn {
|
|
|
24352
24355
|
}
|
|
24353
24356
|
// Getters
|
|
24354
24357
|
static get Default() {
|
|
24355
|
-
return
|
|
24358
|
+
return oC;
|
|
24356
24359
|
}
|
|
24357
24360
|
static get DefaultType() {
|
|
24358
|
-
return
|
|
24361
|
+
return aC;
|
|
24359
24362
|
}
|
|
24360
24363
|
static get NAME() {
|
|
24361
|
-
return
|
|
24364
|
+
return KS;
|
|
24362
24365
|
}
|
|
24363
24366
|
// Public
|
|
24364
24367
|
toggle() {
|
|
@@ -24368,21 +24371,21 @@ class oi extends dn {
|
|
|
24368
24371
|
if (this._isTransitioning || this._isShown())
|
|
24369
24372
|
return;
|
|
24370
24373
|
let e = [];
|
|
24371
|
-
if (this._config.parent && (e = this._getFirstLevelChildren(
|
|
24374
|
+
if (this._config.parent && (e = this._getFirstLevelChildren(iC).filter((l) => l !== this._element).map((l) => oi.getOrCreateInstance(l, {
|
|
24372
24375
|
toggle: !1
|
|
24373
|
-
}))), e.length && e[0]._isTransitioning || ae.trigger(this._element,
|
|
24376
|
+
}))), e.length && e[0]._isTransitioning || ae.trigger(this._element, JS).defaultPrevented)
|
|
24374
24377
|
return;
|
|
24375
24378
|
for (const l of e)
|
|
24376
24379
|
l.hide();
|
|
24377
24380
|
const r = this._getDimension();
|
|
24378
24381
|
this._element.classList.remove(rs), this._element.classList.add(Ii), this._element.style[r] = 0, this._addAriaAndCollapsedClass(this._triggerArray, !0), this._isTransitioning = !0;
|
|
24379
24382
|
const s = () => {
|
|
24380
|
-
this._isTransitioning = !1, this._element.classList.remove(Ii), this._element.classList.add(rs, il), this._element.style[r] = "", ae.trigger(this._element,
|
|
24383
|
+
this._isTransitioning = !1, this._element.classList.remove(Ii), this._element.classList.add(rs, il), this._element.style[r] = "", ae.trigger(this._element, ZS);
|
|
24381
24384
|
}, o = `scroll${r[0].toUpperCase() + r.slice(1)}`;
|
|
24382
24385
|
this._queueCallback(s, this._element, !0), this._element.style[r] = `${this._element[o]}px`;
|
|
24383
24386
|
}
|
|
24384
24387
|
hide() {
|
|
24385
|
-
if (this._isTransitioning || !this._isShown() || ae.trigger(this._element,
|
|
24388
|
+
if (this._isTransitioning || !this._isShown() || ae.trigger(this._element, XS).defaultPrevented)
|
|
24386
24389
|
return;
|
|
24387
24390
|
const t = this._getDimension();
|
|
24388
24391
|
this._element.style[t] = `${this._element.getBoundingClientRect()[t]}px`, hi(this._element), this._element.classList.add(Ii), this._element.classList.remove(rs, il);
|
|
@@ -24392,7 +24395,7 @@ class oi extends dn {
|
|
|
24392
24395
|
}
|
|
24393
24396
|
this._isTransitioning = !0;
|
|
24394
24397
|
const r = () => {
|
|
24395
|
-
this._isTransitioning = !1, this._element.classList.remove(Ii), this._element.classList.add(rs), ae.trigger(this._element,
|
|
24398
|
+
this._isTransitioning = !1, this._element.classList.remove(Ii), this._element.classList.add(rs), ae.trigger(this._element, QS);
|
|
24396
24399
|
};
|
|
24397
24400
|
this._element.style[t] = "", this._queueCallback(r, this._element, !0);
|
|
24398
24401
|
}
|
|
@@ -24404,7 +24407,7 @@ class oi extends dn {
|
|
|
24404
24407
|
return e.toggle = !!e.toggle, e.parent = rr(e.parent), e;
|
|
24405
24408
|
}
|
|
24406
24409
|
_getDimension() {
|
|
24407
|
-
return this._element.classList.contains(
|
|
24410
|
+
return this._element.classList.contains(nC) ? rC : sC;
|
|
24408
24411
|
}
|
|
24409
24412
|
_initializeChildren() {
|
|
24410
24413
|
if (!this._config.parent)
|
|
@@ -24416,13 +24419,13 @@ class oi extends dn {
|
|
|
24416
24419
|
}
|
|
24417
24420
|
}
|
|
24418
24421
|
_getFirstLevelChildren(e) {
|
|
24419
|
-
const t = ke.find(
|
|
24422
|
+
const t = ke.find(tC, this._config.parent);
|
|
24420
24423
|
return ke.find(e, this._config.parent).filter((r) => !t.includes(r));
|
|
24421
24424
|
}
|
|
24422
24425
|
_addAriaAndCollapsedClass(e, t) {
|
|
24423
24426
|
if (e.length)
|
|
24424
24427
|
for (const r of e)
|
|
24425
|
-
r.classList.toggle(
|
|
24428
|
+
r.classList.toggle(eC, !t), r.setAttribute("aria-expanded", t);
|
|
24426
24429
|
}
|
|
24427
24430
|
// Static
|
|
24428
24431
|
static jQueryInterface(e) {
|
|
@@ -24437,7 +24440,7 @@ class oi extends dn {
|
|
|
24437
24440
|
});
|
|
24438
24441
|
}
|
|
24439
24442
|
}
|
|
24440
|
-
ae.on(document,
|
|
24443
|
+
ae.on(document, qS, tc, function(n) {
|
|
24441
24444
|
(n.target.tagName === "A" || n.delegateTarget && n.delegateTarget.tagName === "A") && n.preventDefault();
|
|
24442
24445
|
for (const e of ke.getMultipleElementsFromSelector(this))
|
|
24443
24446
|
oi.getOrCreateInstance(e, {
|
|
@@ -24445,14 +24448,14 @@ ae.on(document, QS, tc, function(n) {
|
|
|
24445
24448
|
}).toggle();
|
|
24446
24449
|
});
|
|
24447
24450
|
nn(oi);
|
|
24448
|
-
const mf = "dropdown",
|
|
24451
|
+
const mf = "dropdown", lC = "bs.dropdown", Rr = `.${lC}`, qc = ".data-api", cC = "Escape", gf = "Tab", uC = "ArrowUp", vf = "ArrowDown", dC = 2, fC = `hide${Rr}`, hC = `hidden${Rr}`, pC = `show${Rr}`, mC = `shown${Rr}`, Rm = `click${Rr}${qc}`, Pm = `keydown${Rr}${qc}`, gC = `keyup${Rr}${qc}`, qr = "show", vC = "dropup", yC = "dropend", bC = "dropstart", EC = "dropup-center", SC = "dropdown-center", Er = '[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)', CC = `${Er}.${qr}`, Ui = ".dropdown-menu", wC = ".navbar", TC = ".navbar-nav", xC = ".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)", AC = en() ? "top-end" : "top-start", kC = en() ? "top-start" : "top-end", OC = en() ? "bottom-end" : "bottom-start", MC = en() ? "bottom-start" : "bottom-end", _C = en() ? "left-start" : "right-start", IC = en() ? "right-start" : "left-start", DC = "top", NC = "bottom", LC = {
|
|
24449
24452
|
autoClose: !0,
|
|
24450
24453
|
boundary: "clippingParents",
|
|
24451
24454
|
display: "dynamic",
|
|
24452
24455
|
offset: [0, 2],
|
|
24453
24456
|
popperConfig: null,
|
|
24454
24457
|
reference: "toggle"
|
|
24455
|
-
},
|
|
24458
|
+
}, RC = {
|
|
24456
24459
|
autoClose: "(boolean|string)",
|
|
24457
24460
|
boundary: "(string|element)",
|
|
24458
24461
|
display: "string",
|
|
@@ -24466,10 +24469,10 @@ class Sn extends dn {
|
|
|
24466
24469
|
}
|
|
24467
24470
|
// Getters
|
|
24468
24471
|
static get Default() {
|
|
24469
|
-
return
|
|
24472
|
+
return LC;
|
|
24470
24473
|
}
|
|
24471
24474
|
static get DefaultType() {
|
|
24472
|
-
return
|
|
24475
|
+
return RC;
|
|
24473
24476
|
}
|
|
24474
24477
|
static get NAME() {
|
|
24475
24478
|
return mf;
|
|
@@ -24484,11 +24487,11 @@ class Sn extends dn {
|
|
|
24484
24487
|
const e = {
|
|
24485
24488
|
relatedTarget: this._element
|
|
24486
24489
|
};
|
|
24487
|
-
if (!ae.trigger(this._element,
|
|
24488
|
-
if (this._createPopper(), "ontouchstart" in document.documentElement && !this._parent.closest(
|
|
24490
|
+
if (!ae.trigger(this._element, pC, e).defaultPrevented) {
|
|
24491
|
+
if (this._createPopper(), "ontouchstart" in document.documentElement && !this._parent.closest(TC))
|
|
24489
24492
|
for (const r of [].concat(...document.body.children))
|
|
24490
24493
|
ae.on(r, "mouseover", Ho);
|
|
24491
|
-
this._element.focus(), this._element.setAttribute("aria-expanded", !0), this._menu.classList.add(qr), this._element.classList.add(qr), ae.trigger(this._element,
|
|
24494
|
+
this._element.focus(), this._element.setAttribute("aria-expanded", !0), this._menu.classList.add(qr), this._element.classList.add(qr), ae.trigger(this._element, mC, e);
|
|
24492
24495
|
}
|
|
24493
24496
|
}
|
|
24494
24497
|
hide() {
|
|
@@ -24507,11 +24510,11 @@ class Sn extends dn {
|
|
|
24507
24510
|
}
|
|
24508
24511
|
// Private
|
|
24509
24512
|
_completeHide(e) {
|
|
24510
|
-
if (!ae.trigger(this._element,
|
|
24513
|
+
if (!ae.trigger(this._element, fC, e).defaultPrevented) {
|
|
24511
24514
|
if ("ontouchstart" in document.documentElement)
|
|
24512
24515
|
for (const r of [].concat(...document.body.children))
|
|
24513
24516
|
ae.off(r, "mouseover", Ho);
|
|
24514
|
-
this._popper && this._popper.destroy(), this._menu.classList.remove(qr), this._element.classList.remove(qr), this._element.setAttribute("aria-expanded", "false"), Pn.removeDataAttribute(this._menu, "popper"), ae.trigger(this._element,
|
|
24517
|
+
this._popper && this._popper.destroy(), this._menu.classList.remove(qr), this._element.classList.remove(qr), this._element.setAttribute("aria-expanded", "false"), Pn.removeDataAttribute(this._menu, "popper"), ae.trigger(this._element, hC, e);
|
|
24515
24518
|
}
|
|
24516
24519
|
}
|
|
24517
24520
|
_getConfig(e) {
|
|
@@ -24532,19 +24535,19 @@ class Sn extends dn {
|
|
|
24532
24535
|
}
|
|
24533
24536
|
_getPlacement() {
|
|
24534
24537
|
const e = this._parent;
|
|
24535
|
-
if (e.classList.contains(vC))
|
|
24536
|
-
return MC;
|
|
24537
24538
|
if (e.classList.contains(yC))
|
|
24538
24539
|
return _C;
|
|
24539
24540
|
if (e.classList.contains(bC))
|
|
24540
24541
|
return IC;
|
|
24541
24542
|
if (e.classList.contains(EC))
|
|
24542
24543
|
return DC;
|
|
24544
|
+
if (e.classList.contains(SC))
|
|
24545
|
+
return NC;
|
|
24543
24546
|
const t = getComputedStyle(this._menu).getPropertyValue("--bs-position").trim() === "end";
|
|
24544
|
-
return e.classList.contains(
|
|
24547
|
+
return e.classList.contains(vC) ? t ? kC : AC : t ? MC : OC;
|
|
24545
24548
|
}
|
|
24546
24549
|
_detectNavbar() {
|
|
24547
|
-
return this._element.closest(
|
|
24550
|
+
return this._element.closest(wC) !== null;
|
|
24548
24551
|
}
|
|
24549
24552
|
_getOffset() {
|
|
24550
24553
|
const {
|
|
@@ -24579,7 +24582,7 @@ class Sn extends dn {
|
|
|
24579
24582
|
key: e,
|
|
24580
24583
|
target: t
|
|
24581
24584
|
}) {
|
|
24582
|
-
const r = ke.find(
|
|
24585
|
+
const r = ke.find(xC, this._menu).filter((s) => ks(s));
|
|
24583
24586
|
r.length && Xc(r, t, e === vf, !r.includes(t)).focus();
|
|
24584
24587
|
}
|
|
24585
24588
|
// Static
|
|
@@ -24594,9 +24597,9 @@ class Sn extends dn {
|
|
|
24594
24597
|
});
|
|
24595
24598
|
}
|
|
24596
24599
|
static clearMenus(e) {
|
|
24597
|
-
if (e.button ===
|
|
24600
|
+
if (e.button === dC || e.type === "keyup" && e.key !== gf)
|
|
24598
24601
|
return;
|
|
24599
|
-
const t = ke.find(
|
|
24602
|
+
const t = ke.find(CC);
|
|
24600
24603
|
for (const r of t) {
|
|
24601
24604
|
const s = Sn.getInstance(r);
|
|
24602
24605
|
if (!s || s._config.autoClose === !1)
|
|
@@ -24611,7 +24614,7 @@ class Sn extends dn {
|
|
|
24611
24614
|
}
|
|
24612
24615
|
}
|
|
24613
24616
|
static dataApiKeydownHandler(e) {
|
|
24614
|
-
const t = /input|textarea/i.test(e.target.tagName), r = e.key ===
|
|
24617
|
+
const t = /input|textarea/i.test(e.target.tagName), r = e.key === cC, s = [uC, vf].includes(e.key);
|
|
24615
24618
|
if (!s && !r || t && !r)
|
|
24616
24619
|
return;
|
|
24617
24620
|
e.preventDefault();
|
|
@@ -24626,12 +24629,12 @@ class Sn extends dn {
|
|
|
24626
24629
|
ae.on(document, Pm, Er, Sn.dataApiKeydownHandler);
|
|
24627
24630
|
ae.on(document, Pm, Ui, Sn.dataApiKeydownHandler);
|
|
24628
24631
|
ae.on(document, Rm, Sn.clearMenus);
|
|
24629
|
-
ae.on(document,
|
|
24632
|
+
ae.on(document, gC, Sn.clearMenus);
|
|
24630
24633
|
ae.on(document, Rm, Er, function(n) {
|
|
24631
24634
|
n.preventDefault(), Sn.getOrCreateInstance(this).toggle();
|
|
24632
24635
|
});
|
|
24633
24636
|
nn(Sn);
|
|
24634
|
-
const $m = "backdrop",
|
|
24637
|
+
const $m = "backdrop", PC = "fade", yf = "show", bf = `mousedown.bs.${$m}`, $C = {
|
|
24635
24638
|
className: "modal-backdrop",
|
|
24636
24639
|
clickCallback: null,
|
|
24637
24640
|
isAnimated: !1,
|
|
@@ -24639,7 +24642,7 @@ const $m = "backdrop", RC = "fade", yf = "show", bf = `mousedown.bs.${$m}`, PC =
|
|
|
24639
24642
|
// if false, we use the backdrop helper without adding any element to the dom
|
|
24640
24643
|
rootElement: "body"
|
|
24641
24644
|
// give the choice to place backdrop under different elements
|
|
24642
|
-
},
|
|
24645
|
+
}, FC = {
|
|
24643
24646
|
className: "string",
|
|
24644
24647
|
clickCallback: "(function|null)",
|
|
24645
24648
|
isAnimated: "boolean",
|
|
@@ -24652,10 +24655,10 @@ class Fm extends pi {
|
|
|
24652
24655
|
}
|
|
24653
24656
|
// Getters
|
|
24654
24657
|
static get Default() {
|
|
24655
|
-
return
|
|
24658
|
+
return $C;
|
|
24656
24659
|
}
|
|
24657
24660
|
static get DefaultType() {
|
|
24658
|
-
return
|
|
24661
|
+
return FC;
|
|
24659
24662
|
}
|
|
24660
24663
|
static get NAME() {
|
|
24661
24664
|
return $m;
|
|
@@ -24688,7 +24691,7 @@ class Fm extends pi {
|
|
|
24688
24691
|
_getElement() {
|
|
24689
24692
|
if (!this._element) {
|
|
24690
24693
|
const e = document.createElement("div");
|
|
24691
|
-
e.className = this._config.className, this._config.isAnimated && e.classList.add(
|
|
24694
|
+
e.className = this._config.className, this._config.isAnimated && e.classList.add(PC), this._element = e;
|
|
24692
24695
|
}
|
|
24693
24696
|
return this._element;
|
|
24694
24697
|
}
|
|
@@ -24707,11 +24710,11 @@ class Fm extends pi {
|
|
|
24707
24710
|
wm(e, this._getElement(), this._config.isAnimated);
|
|
24708
24711
|
}
|
|
24709
24712
|
}
|
|
24710
|
-
const
|
|
24713
|
+
const BC = "focustrap", VC = "bs.focustrap", Uo = `.${VC}`, HC = `focusin${Uo}`, zC = `keydown.tab${Uo}`, UC = "Tab", jC = "forward", Ef = "backward", WC = {
|
|
24711
24714
|
autofocus: !0,
|
|
24712
24715
|
trapElement: null
|
|
24713
24716
|
// The element to trap focus inside of
|
|
24714
|
-
},
|
|
24717
|
+
}, KC = {
|
|
24715
24718
|
autofocus: "boolean",
|
|
24716
24719
|
trapElement: "element"
|
|
24717
24720
|
};
|
|
@@ -24721,17 +24724,17 @@ class Bm extends pi {
|
|
|
24721
24724
|
}
|
|
24722
24725
|
// Getters
|
|
24723
24726
|
static get Default() {
|
|
24724
|
-
return
|
|
24727
|
+
return WC;
|
|
24725
24728
|
}
|
|
24726
24729
|
static get DefaultType() {
|
|
24727
|
-
return
|
|
24730
|
+
return KC;
|
|
24728
24731
|
}
|
|
24729
24732
|
static get NAME() {
|
|
24730
|
-
return
|
|
24733
|
+
return BC;
|
|
24731
24734
|
}
|
|
24732
24735
|
// Public
|
|
24733
24736
|
activate() {
|
|
24734
|
-
this._isActive || (this._config.autofocus && this._config.trapElement.focus(), ae.off(document, Uo), ae.on(document,
|
|
24737
|
+
this._isActive || (this._config.autofocus && this._config.trapElement.focus(), ae.off(document, Uo), ae.on(document, HC, (e) => this._handleFocusin(e)), ae.on(document, zC, (e) => this._handleKeydown(e)), this._isActive = !0);
|
|
24735
24738
|
}
|
|
24736
24739
|
deactivate() {
|
|
24737
24740
|
this._isActive && (this._isActive = !1, ae.off(document, Uo));
|
|
@@ -24747,7 +24750,7 @@ class Bm extends pi {
|
|
|
24747
24750
|
r.length === 0 ? t.focus() : this._lastTabNavDirection === Ef ? r[r.length - 1].focus() : r[0].focus();
|
|
24748
24751
|
}
|
|
24749
24752
|
_handleKeydown(e) {
|
|
24750
|
-
e.key ===
|
|
24753
|
+
e.key === UC && (this._lastTabNavDirection = e.shiftKey ? Ef : jC);
|
|
24751
24754
|
}
|
|
24752
24755
|
}
|
|
24753
24756
|
const Sf = ".fixed-top, .fixed-bottom, .is-fixed, .sticky-top", Cf = ".sticky-top", Di = "padding-right", wf = "margin-right";
|
|
@@ -24808,28 +24811,28 @@ class nc {
|
|
|
24808
24811
|
t(r);
|
|
24809
24812
|
}
|
|
24810
24813
|
}
|
|
24811
|
-
const
|
|
24814
|
+
const YC = "modal", GC = "bs.modal", tn = `.${GC}`, JC = ".data-api", ZC = "Escape", XC = `hide${tn}`, QC = `hidePrevented${tn}`, Vm = `hidden${tn}`, Hm = `show${tn}`, qC = `shown${tn}`, ew = `resize${tn}`, tw = `click.dismiss${tn}`, nw = `mousedown.dismiss${tn}`, rw = `keydown.dismiss${tn}`, sw = `click${tn}${JC}`, Tf = "modal-open", iw = "fade", xf = "show", ol = "modal-static", ow = ".modal.show", aw = ".modal-dialog", lw = ".modal-body", cw = '[data-bs-toggle="modal"]', uw = {
|
|
24812
24815
|
backdrop: !0,
|
|
24813
24816
|
focus: !0,
|
|
24814
24817
|
keyboard: !0
|
|
24815
|
-
},
|
|
24818
|
+
}, dw = {
|
|
24816
24819
|
backdrop: "(boolean|string)",
|
|
24817
24820
|
focus: "boolean",
|
|
24818
24821
|
keyboard: "boolean"
|
|
24819
24822
|
};
|
|
24820
24823
|
class Nr extends dn {
|
|
24821
24824
|
constructor(e, t) {
|
|
24822
|
-
super(e, t), this._dialog = ke.findOne(
|
|
24825
|
+
super(e, t), this._dialog = ke.findOne(aw, this._element), this._backdrop = this._initializeBackDrop(), this._focustrap = this._initializeFocusTrap(), this._isShown = !1, this._isTransitioning = !1, this._scrollBar = new nc(), this._addEventListeners();
|
|
24823
24826
|
}
|
|
24824
24827
|
// Getters
|
|
24825
24828
|
static get Default() {
|
|
24826
|
-
return
|
|
24829
|
+
return uw;
|
|
24827
24830
|
}
|
|
24828
24831
|
static get DefaultType() {
|
|
24829
|
-
return
|
|
24832
|
+
return dw;
|
|
24830
24833
|
}
|
|
24831
24834
|
static get NAME() {
|
|
24832
|
-
return
|
|
24835
|
+
return YC;
|
|
24833
24836
|
}
|
|
24834
24837
|
// Public
|
|
24835
24838
|
toggle(e) {
|
|
@@ -24841,7 +24844,7 @@ class Nr extends dn {
|
|
|
24841
24844
|
}).defaultPrevented || (this._isShown = !0, this._isTransitioning = !0, this._scrollBar.hide(), document.body.classList.add(Tf), this._adjustDialog(), this._backdrop.show(() => this._showElement(e)));
|
|
24842
24845
|
}
|
|
24843
24846
|
hide() {
|
|
24844
|
-
!this._isShown || this._isTransitioning || ae.trigger(this._element,
|
|
24847
|
+
!this._isShown || this._isTransitioning || ae.trigger(this._element, XC).defaultPrevented || (this._isShown = !1, this._isTransitioning = !0, this._focustrap.deactivate(), this._element.classList.remove(xf), this._queueCallback(() => this._hideModal(), this._element, this._isAnimated()));
|
|
24845
24848
|
}
|
|
24846
24849
|
dispose() {
|
|
24847
24850
|
ae.off(window, tn), ae.off(this._dialog, tn), this._backdrop.dispose(), this._focustrap.deactivate(), super.dispose();
|
|
@@ -24864,28 +24867,28 @@ class Nr extends dn {
|
|
|
24864
24867
|
}
|
|
24865
24868
|
_showElement(e) {
|
|
24866
24869
|
document.body.contains(this._element) || document.body.append(this._element), this._element.style.display = "block", this._element.removeAttribute("aria-hidden"), this._element.setAttribute("aria-modal", !0), this._element.setAttribute("role", "dialog"), this._element.scrollTop = 0;
|
|
24867
|
-
const t = ke.findOne(
|
|
24870
|
+
const t = ke.findOne(lw, this._dialog);
|
|
24868
24871
|
t && (t.scrollTop = 0), hi(this._element), this._element.classList.add(xf);
|
|
24869
24872
|
const r = () => {
|
|
24870
|
-
this._config.focus && this._focustrap.activate(), this._isTransitioning = !1, ae.trigger(this._element,
|
|
24873
|
+
this._config.focus && this._focustrap.activate(), this._isTransitioning = !1, ae.trigger(this._element, qC, {
|
|
24871
24874
|
relatedTarget: e
|
|
24872
24875
|
});
|
|
24873
24876
|
};
|
|
24874
24877
|
this._queueCallback(r, this._dialog, this._isAnimated());
|
|
24875
24878
|
}
|
|
24876
24879
|
_addEventListeners() {
|
|
24877
|
-
ae.on(this._element,
|
|
24878
|
-
if (e.key ===
|
|
24880
|
+
ae.on(this._element, rw, (e) => {
|
|
24881
|
+
if (e.key === ZC) {
|
|
24879
24882
|
if (this._config.keyboard) {
|
|
24880
24883
|
this.hide();
|
|
24881
24884
|
return;
|
|
24882
24885
|
}
|
|
24883
24886
|
this._triggerBackdropTransition();
|
|
24884
24887
|
}
|
|
24885
|
-
}), ae.on(window,
|
|
24888
|
+
}), ae.on(window, ew, () => {
|
|
24886
24889
|
this._isShown && !this._isTransitioning && this._adjustDialog();
|
|
24887
|
-
}), ae.on(this._element,
|
|
24888
|
-
ae.one(this._element,
|
|
24890
|
+
}), ae.on(this._element, nw, (e) => {
|
|
24891
|
+
ae.one(this._element, tw, (t) => {
|
|
24889
24892
|
if (!(this._element !== e.target || this._element !== t.target)) {
|
|
24890
24893
|
if (this._config.backdrop === "static") {
|
|
24891
24894
|
this._triggerBackdropTransition();
|
|
@@ -24902,10 +24905,10 @@ class Nr extends dn {
|
|
|
24902
24905
|
});
|
|
24903
24906
|
}
|
|
24904
24907
|
_isAnimated() {
|
|
24905
|
-
return this._element.classList.contains(
|
|
24908
|
+
return this._element.classList.contains(iw);
|
|
24906
24909
|
}
|
|
24907
24910
|
_triggerBackdropTransition() {
|
|
24908
|
-
if (ae.trigger(this._element,
|
|
24911
|
+
if (ae.trigger(this._element, QC).defaultPrevented)
|
|
24909
24912
|
return;
|
|
24910
24913
|
const t = this._element.scrollHeight > document.documentElement.clientHeight, r = this._element.style.overflowY;
|
|
24911
24914
|
r === "hidden" || this._element.classList.contains(ol) || (t || (this._element.style.overflowY = "hidden"), this._element.classList.add(ol), this._queueCallback(() => {
|
|
@@ -24943,23 +24946,23 @@ class Nr extends dn {
|
|
|
24943
24946
|
});
|
|
24944
24947
|
}
|
|
24945
24948
|
}
|
|
24946
|
-
ae.on(document,
|
|
24949
|
+
ae.on(document, sw, cw, function(n) {
|
|
24947
24950
|
const e = ke.getElementFromSelector(this);
|
|
24948
24951
|
["A", "AREA"].includes(this.tagName) && n.preventDefault(), ae.one(e, Hm, (s) => {
|
|
24949
24952
|
s.defaultPrevented || ae.one(e, Vm, () => {
|
|
24950
24953
|
ks(this) && this.focus();
|
|
24951
24954
|
});
|
|
24952
24955
|
});
|
|
24953
|
-
const t = ke.findOne(
|
|
24956
|
+
const t = ke.findOne(ow);
|
|
24954
24957
|
t && Nr.getInstance(t).hide(), Nr.getOrCreateInstance(e).toggle(this);
|
|
24955
24958
|
});
|
|
24956
24959
|
ma(Nr);
|
|
24957
24960
|
nn(Nr);
|
|
24958
|
-
const
|
|
24961
|
+
const fw = "offcanvas", hw = "bs.offcanvas", Fn = `.${hw}`, zm = ".data-api", pw = `load${Fn}${zm}`, mw = "Escape", Af = "show", kf = "showing", Of = "hiding", gw = "offcanvas-backdrop", Um = ".offcanvas.show", vw = `show${Fn}`, yw = `shown${Fn}`, bw = `hide${Fn}`, Mf = `hidePrevented${Fn}`, jm = `hidden${Fn}`, Ew = `resize${Fn}`, Sw = `click${Fn}${zm}`, Cw = `keydown.dismiss${Fn}`, ww = '[data-bs-toggle="offcanvas"]', Tw = {
|
|
24959
24962
|
backdrop: !0,
|
|
24960
24963
|
keyboard: !0,
|
|
24961
24964
|
scroll: !1
|
|
24962
|
-
},
|
|
24965
|
+
}, xw = {
|
|
24963
24966
|
backdrop: "(boolean|string)",
|
|
24964
24967
|
keyboard: "boolean",
|
|
24965
24968
|
scroll: "boolean"
|
|
@@ -24970,33 +24973,33 @@ class ir extends dn {
|
|
|
24970
24973
|
}
|
|
24971
24974
|
// Getters
|
|
24972
24975
|
static get Default() {
|
|
24973
|
-
return
|
|
24976
|
+
return Tw;
|
|
24974
24977
|
}
|
|
24975
24978
|
static get DefaultType() {
|
|
24976
|
-
return
|
|
24979
|
+
return xw;
|
|
24977
24980
|
}
|
|
24978
24981
|
static get NAME() {
|
|
24979
|
-
return
|
|
24982
|
+
return fw;
|
|
24980
24983
|
}
|
|
24981
24984
|
// Public
|
|
24982
24985
|
toggle(e) {
|
|
24983
24986
|
return this._isShown ? this.hide() : this.show(e);
|
|
24984
24987
|
}
|
|
24985
24988
|
show(e) {
|
|
24986
|
-
if (this._isShown || ae.trigger(this._element,
|
|
24989
|
+
if (this._isShown || ae.trigger(this._element, vw, {
|
|
24987
24990
|
relatedTarget: e
|
|
24988
24991
|
}).defaultPrevented)
|
|
24989
24992
|
return;
|
|
24990
24993
|
this._isShown = !0, this._backdrop.show(), this._config.scroll || new nc().hide(), this._element.setAttribute("aria-modal", !0), this._element.setAttribute("role", "dialog"), this._element.classList.add(kf);
|
|
24991
24994
|
const r = () => {
|
|
24992
|
-
(!this._config.scroll || this._config.backdrop) && this._focustrap.activate(), this._element.classList.add(Af), this._element.classList.remove(kf), ae.trigger(this._element,
|
|
24995
|
+
(!this._config.scroll || this._config.backdrop) && this._focustrap.activate(), this._element.classList.add(Af), this._element.classList.remove(kf), ae.trigger(this._element, yw, {
|
|
24993
24996
|
relatedTarget: e
|
|
24994
24997
|
});
|
|
24995
24998
|
};
|
|
24996
24999
|
this._queueCallback(r, this._element, !0);
|
|
24997
25000
|
}
|
|
24998
25001
|
hide() {
|
|
24999
|
-
if (!this._isShown || ae.trigger(this._element,
|
|
25002
|
+
if (!this._isShown || ae.trigger(this._element, bw).defaultPrevented)
|
|
25000
25003
|
return;
|
|
25001
25004
|
this._focustrap.deactivate(), this._element.blur(), this._isShown = !1, this._element.classList.add(Of), this._backdrop.hide();
|
|
25002
25005
|
const t = () => {
|
|
@@ -25017,7 +25020,7 @@ class ir extends dn {
|
|
|
25017
25020
|
this.hide();
|
|
25018
25021
|
}, t = !!this._config.backdrop;
|
|
25019
25022
|
return new Fm({
|
|
25020
|
-
className:
|
|
25023
|
+
className: gw,
|
|
25021
25024
|
isVisible: t,
|
|
25022
25025
|
isAnimated: !0,
|
|
25023
25026
|
rootElement: this._element.parentNode,
|
|
@@ -25030,8 +25033,8 @@ class ir extends dn {
|
|
|
25030
25033
|
});
|
|
25031
25034
|
}
|
|
25032
25035
|
_addEventListeners() {
|
|
25033
|
-
ae.on(this._element,
|
|
25034
|
-
if (e.key ===
|
|
25036
|
+
ae.on(this._element, Cw, (e) => {
|
|
25037
|
+
if (e.key === mw) {
|
|
25035
25038
|
if (this._config.keyboard) {
|
|
25036
25039
|
this.hide();
|
|
25037
25040
|
return;
|
|
@@ -25052,7 +25055,7 @@ class ir extends dn {
|
|
|
25052
25055
|
});
|
|
25053
25056
|
}
|
|
25054
25057
|
}
|
|
25055
|
-
ae.on(document,
|
|
25058
|
+
ae.on(document, Sw, ww, function(n) {
|
|
25056
25059
|
const e = ke.getElementFromSelector(this);
|
|
25057
25060
|
if (["A", "AREA"].includes(this.tagName) && n.preventDefault(), sr(this))
|
|
25058
25061
|
return;
|
|
@@ -25062,19 +25065,19 @@ ae.on(document, Ew, Cw, function(n) {
|
|
|
25062
25065
|
const t = ke.findOne(Um);
|
|
25063
25066
|
t && t !== e && ir.getInstance(t).hide(), ir.getOrCreateInstance(e).toggle(this);
|
|
25064
25067
|
});
|
|
25065
|
-
ae.on(window,
|
|
25068
|
+
ae.on(window, pw, () => {
|
|
25066
25069
|
for (const n of ke.find(Um))
|
|
25067
25070
|
ir.getOrCreateInstance(n).show();
|
|
25068
25071
|
});
|
|
25069
|
-
ae.on(window,
|
|
25072
|
+
ae.on(window, Ew, () => {
|
|
25070
25073
|
for (const n of ke.find("[aria-modal][class*=show][class*=offcanvas-]"))
|
|
25071
25074
|
getComputedStyle(n).position !== "fixed" && ir.getOrCreateInstance(n).hide();
|
|
25072
25075
|
});
|
|
25073
25076
|
ma(ir);
|
|
25074
25077
|
nn(ir);
|
|
25075
|
-
const
|
|
25078
|
+
const Aw = /^aria-[\w-]*$/i, Wm = {
|
|
25076
25079
|
// Global attributes allowed on any supplied element below.
|
|
25077
|
-
"*": ["class", "dir", "id", "lang", "role",
|
|
25080
|
+
"*": ["class", "dir", "id", "lang", "role", Aw],
|
|
25078
25081
|
a: ["target", "href", "title", "rel"],
|
|
25079
25082
|
area: [],
|
|
25080
25083
|
b: [],
|
|
@@ -25104,11 +25107,11 @@ const xw = /^aria-[\w-]*$/i, Wm = {
|
|
|
25104
25107
|
strong: [],
|
|
25105
25108
|
u: [],
|
|
25106
25109
|
ul: []
|
|
25107
|
-
},
|
|
25110
|
+
}, kw = /* @__PURE__ */ new Set(["background", "cite", "href", "itemtype", "longdesc", "poster", "src", "xlink:href"]), Ow = /^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i, Mw = (n, e) => {
|
|
25108
25111
|
const t = n.nodeName.toLowerCase();
|
|
25109
|
-
return e.includes(t) ?
|
|
25112
|
+
return e.includes(t) ? kw.has(t) ? !!Ow.test(n.nodeValue) : !0 : e.filter((r) => r instanceof RegExp).some((r) => r.test(t));
|
|
25110
25113
|
};
|
|
25111
|
-
function
|
|
25114
|
+
function _w(n, e, t) {
|
|
25112
25115
|
if (!n.length)
|
|
25113
25116
|
return n;
|
|
25114
25117
|
if (t && typeof t == "function")
|
|
@@ -25122,11 +25125,11 @@ function Mw(n, e, t) {
|
|
|
25122
25125
|
}
|
|
25123
25126
|
const a = [].concat(...o.attributes), c = [].concat(e["*"] || [], e[l] || []);
|
|
25124
25127
|
for (const u of a)
|
|
25125
|
-
|
|
25128
|
+
Mw(u, c) || o.removeAttribute(u.nodeName);
|
|
25126
25129
|
}
|
|
25127
25130
|
return s.body.innerHTML;
|
|
25128
25131
|
}
|
|
25129
|
-
const
|
|
25132
|
+
const Iw = "TemplateFactory", Dw = {
|
|
25130
25133
|
allowList: Wm,
|
|
25131
25134
|
content: {},
|
|
25132
25135
|
// { selector : text , selector2 : text2 , }
|
|
@@ -25135,7 +25138,7 @@ const _w = "TemplateFactory", Iw = {
|
|
|
25135
25138
|
sanitize: !0,
|
|
25136
25139
|
sanitizeFn: null,
|
|
25137
25140
|
template: "<div></div>"
|
|
25138
|
-
},
|
|
25141
|
+
}, Nw = {
|
|
25139
25142
|
allowList: "object",
|
|
25140
25143
|
content: "object",
|
|
25141
25144
|
extraClass: "(string|function)",
|
|
@@ -25143,23 +25146,23 @@ const _w = "TemplateFactory", Iw = {
|
|
|
25143
25146
|
sanitize: "boolean",
|
|
25144
25147
|
sanitizeFn: "(null|function)",
|
|
25145
25148
|
template: "string"
|
|
25146
|
-
},
|
|
25149
|
+
}, Lw = {
|
|
25147
25150
|
entry: "(string|element|function|null)",
|
|
25148
25151
|
selector: "(string|element)"
|
|
25149
25152
|
};
|
|
25150
|
-
class
|
|
25153
|
+
class Rw extends pi {
|
|
25151
25154
|
constructor(e) {
|
|
25152
25155
|
super(), this._config = this._getConfig(e);
|
|
25153
25156
|
}
|
|
25154
25157
|
// Getters
|
|
25155
25158
|
static get Default() {
|
|
25156
|
-
return
|
|
25159
|
+
return Dw;
|
|
25157
25160
|
}
|
|
25158
25161
|
static get DefaultType() {
|
|
25159
|
-
return
|
|
25162
|
+
return Nw;
|
|
25160
25163
|
}
|
|
25161
25164
|
static get NAME() {
|
|
25162
|
-
return
|
|
25165
|
+
return Iw;
|
|
25163
25166
|
}
|
|
25164
25167
|
// Public
|
|
25165
25168
|
getContent() {
|
|
@@ -25191,7 +25194,7 @@ class Lw extends pi {
|
|
|
25191
25194
|
super._typeCheckConfig({
|
|
25192
25195
|
selector: t,
|
|
25193
25196
|
entry: r
|
|
25194
|
-
},
|
|
25197
|
+
}, Lw);
|
|
25195
25198
|
}
|
|
25196
25199
|
_setContent(e, t, r) {
|
|
25197
25200
|
const s = ke.findOne(r, e);
|
|
@@ -25212,7 +25215,7 @@ class Lw extends pi {
|
|
|
25212
25215
|
}
|
|
25213
25216
|
}
|
|
25214
25217
|
_maybeSanitize(e) {
|
|
25215
|
-
return this._config.sanitize ?
|
|
25218
|
+
return this._config.sanitize ? _w(e, this._config.allowList, this._config.sanitizeFn) : e;
|
|
25216
25219
|
}
|
|
25217
25220
|
_resolvePossibleFunction(e) {
|
|
25218
25221
|
return Nt(e, [this]);
|
|
@@ -25225,13 +25228,13 @@ class Lw extends pi {
|
|
|
25225
25228
|
t.textContent = e.textContent;
|
|
25226
25229
|
}
|
|
25227
25230
|
}
|
|
25228
|
-
const
|
|
25231
|
+
const Pw = "tooltip", $w = /* @__PURE__ */ new Set(["sanitize", "allowList", "sanitizeFn"]), al = "fade", Fw = "modal", Ni = "show", Bw = ".tooltip-inner", _f = `.${Fw}`, If = "hide.bs.modal", Is = "hover", ll = "focus", Vw = "click", Hw = "manual", zw = "hide", Uw = "hidden", jw = "show", Ww = "shown", Kw = "inserted", Yw = "click", Gw = "focusin", Jw = "focusout", Zw = "mouseenter", Xw = "mouseleave", Qw = {
|
|
25229
25232
|
AUTO: "auto",
|
|
25230
25233
|
TOP: "top",
|
|
25231
25234
|
RIGHT: en() ? "left" : "right",
|
|
25232
25235
|
BOTTOM: "bottom",
|
|
25233
25236
|
LEFT: en() ? "right" : "left"
|
|
25234
|
-
},
|
|
25237
|
+
}, qw = {
|
|
25235
25238
|
allowList: Wm,
|
|
25236
25239
|
animation: !0,
|
|
25237
25240
|
boundary: "clippingParents",
|
|
@@ -25249,7 +25252,7 @@ const Rw = "tooltip", Pw = /* @__PURE__ */ new Set(["sanitize", "allowList", "sa
|
|
|
25249
25252
|
template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',
|
|
25250
25253
|
title: "",
|
|
25251
25254
|
trigger: "hover focus"
|
|
25252
|
-
},
|
|
25255
|
+
}, eT = {
|
|
25253
25256
|
allowList: "object",
|
|
25254
25257
|
animation: "boolean",
|
|
25255
25258
|
boundary: "(string|element)",
|
|
@@ -25276,13 +25279,13 @@ class Pr extends dn {
|
|
|
25276
25279
|
}
|
|
25277
25280
|
// Getters
|
|
25278
25281
|
static get Default() {
|
|
25279
|
-
return
|
|
25282
|
+
return qw;
|
|
25280
25283
|
}
|
|
25281
25284
|
static get DefaultType() {
|
|
25282
|
-
return
|
|
25285
|
+
return eT;
|
|
25283
25286
|
}
|
|
25284
25287
|
static get NAME() {
|
|
25285
|
-
return
|
|
25288
|
+
return Pw;
|
|
25286
25289
|
}
|
|
25287
25290
|
// Public
|
|
25288
25291
|
enable() {
|
|
@@ -25311,7 +25314,7 @@ class Pr extends dn {
|
|
|
25311
25314
|
throw new Error("Please use show on visible elements");
|
|
25312
25315
|
if (!(this._isWithContent() && this._isEnabled))
|
|
25313
25316
|
return;
|
|
25314
|
-
const e = ae.trigger(this._element, this.constructor.eventName(
|
|
25317
|
+
const e = ae.trigger(this._element, this.constructor.eventName(jw)), r = (Sm(this._element) || this._element.ownerDocument.documentElement).contains(this._element);
|
|
25315
25318
|
if (e.defaultPrevented || !r)
|
|
25316
25319
|
return;
|
|
25317
25320
|
this._disposePopper();
|
|
@@ -25320,23 +25323,23 @@ class Pr extends dn {
|
|
|
25320
25323
|
const {
|
|
25321
25324
|
container: i
|
|
25322
25325
|
} = this._config;
|
|
25323
|
-
if (this._element.ownerDocument.documentElement.contains(this.tip) || (i.append(s), ae.trigger(this._element, this.constructor.eventName(
|
|
25326
|
+
if (this._element.ownerDocument.documentElement.contains(this.tip) || (i.append(s), ae.trigger(this._element, this.constructor.eventName(Kw))), this._popper = this._createPopper(s), s.classList.add(Ni), "ontouchstart" in document.documentElement)
|
|
25324
25327
|
for (const l of [].concat(...document.body.children))
|
|
25325
25328
|
ae.on(l, "mouseover", Ho);
|
|
25326
25329
|
const o = () => {
|
|
25327
|
-
ae.trigger(this._element, this.constructor.eventName(
|
|
25330
|
+
ae.trigger(this._element, this.constructor.eventName(Ww)), this._isHovered === !1 && this._leave(), this._isHovered = !1;
|
|
25328
25331
|
};
|
|
25329
25332
|
this._queueCallback(o, this.tip, this._isAnimated());
|
|
25330
25333
|
}
|
|
25331
25334
|
hide() {
|
|
25332
|
-
if (!this._isShown() || ae.trigger(this._element, this.constructor.eventName(
|
|
25335
|
+
if (!this._isShown() || ae.trigger(this._element, this.constructor.eventName(zw)).defaultPrevented)
|
|
25333
25336
|
return;
|
|
25334
25337
|
if (this._getTipElement().classList.remove(Ni), "ontouchstart" in document.documentElement)
|
|
25335
25338
|
for (const s of [].concat(...document.body.children))
|
|
25336
25339
|
ae.off(s, "mouseover", Ho);
|
|
25337
|
-
this._activeTrigger[
|
|
25340
|
+
this._activeTrigger[Vw] = !1, this._activeTrigger[ll] = !1, this._activeTrigger[Is] = !1, this._isHovered = null;
|
|
25338
25341
|
const r = () => {
|
|
25339
|
-
this._isWithActiveTrigger() || (this._isHovered || this._disposePopper(), this._element.removeAttribute("aria-describedby"), ae.trigger(this._element, this.constructor.eventName(
|
|
25342
|
+
this._isWithActiveTrigger() || (this._isHovered || this._disposePopper(), this._element.removeAttribute("aria-describedby"), ae.trigger(this._element, this.constructor.eventName(Uw)));
|
|
25340
25343
|
};
|
|
25341
25344
|
this._queueCallback(r, this.tip, this._isAnimated());
|
|
25342
25345
|
}
|
|
@@ -25355,14 +25358,14 @@ class Pr extends dn {
|
|
|
25355
25358
|
if (!t)
|
|
25356
25359
|
return null;
|
|
25357
25360
|
t.classList.remove(al, Ni), t.classList.add(`bs-${this.constructor.NAME}-auto`);
|
|
25358
|
-
const r =
|
|
25361
|
+
const r = V6(this.constructor.NAME).toString();
|
|
25359
25362
|
return t.setAttribute("id", r), this._isAnimated() && t.classList.add(al), t;
|
|
25360
25363
|
}
|
|
25361
25364
|
setContent(e) {
|
|
25362
25365
|
this._newContent = e, this._isShown() && (this._disposePopper(), this.show());
|
|
25363
25366
|
}
|
|
25364
25367
|
_getTemplateFactory(e) {
|
|
25365
|
-
return this._templateFactory ? this._templateFactory.changeContent(e) : this._templateFactory = new
|
|
25368
|
+
return this._templateFactory ? this._templateFactory.changeContent(e) : this._templateFactory = new Rw({
|
|
25366
25369
|
...this._config,
|
|
25367
25370
|
// the `content` var has to be after `this._config`
|
|
25368
25371
|
// to override config.content in case of popover
|
|
@@ -25372,7 +25375,7 @@ class Pr extends dn {
|
|
|
25372
25375
|
}
|
|
25373
25376
|
_getContentForTemplate() {
|
|
25374
25377
|
return {
|
|
25375
|
-
[
|
|
25378
|
+
[Bw]: this._getTitle()
|
|
25376
25379
|
};
|
|
25377
25380
|
}
|
|
25378
25381
|
_getTitle() {
|
|
@@ -25389,7 +25392,7 @@ class Pr extends dn {
|
|
|
25389
25392
|
return this.tip && this.tip.classList.contains(Ni);
|
|
25390
25393
|
}
|
|
25391
25394
|
_createPopper(e) {
|
|
25392
|
-
const t = Nt(this._config.placement, [this, e, this._element]), r =
|
|
25395
|
+
const t = Nt(this._config.placement, [this, e, this._element]), r = Qw[t.toUpperCase()];
|
|
25393
25396
|
return ha(this._element, e, this._getPopperConfig(r));
|
|
25394
25397
|
}
|
|
25395
25398
|
_getOffset() {
|
|
@@ -25442,11 +25445,11 @@ class Pr extends dn {
|
|
|
25442
25445
|
const e = this._config.trigger.split(" ");
|
|
25443
25446
|
for (const t of e)
|
|
25444
25447
|
if (t === "click")
|
|
25445
|
-
ae.on(this._element, this.constructor.eventName(
|
|
25448
|
+
ae.on(this._element, this.constructor.eventName(Yw), this._config.selector, (r) => {
|
|
25446
25449
|
this._initializeOnDelegatedTarget(r).toggle();
|
|
25447
25450
|
});
|
|
25448
|
-
else if (t !==
|
|
25449
|
-
const r = t === Is ? this.constructor.eventName(
|
|
25451
|
+
else if (t !== Hw) {
|
|
25452
|
+
const r = t === Is ? this.constructor.eventName(Zw) : this.constructor.eventName(Gw), s = t === Is ? this.constructor.eventName(Xw) : this.constructor.eventName(Jw);
|
|
25450
25453
|
ae.on(this._element, r, this._config.selector, (i) => {
|
|
25451
25454
|
const o = this._initializeOnDelegatedTarget(i);
|
|
25452
25455
|
o._activeTrigger[i.type === "focusin" ? ll : Is] = !0, o._enter();
|
|
@@ -25486,7 +25489,7 @@ class Pr extends dn {
|
|
|
25486
25489
|
_getConfig(e) {
|
|
25487
25490
|
const t = Pn.getDataAttributes(this._element);
|
|
25488
25491
|
for (const r of Object.keys(t))
|
|
25489
|
-
|
|
25492
|
+
$w.has(r) && delete t[r];
|
|
25490
25493
|
return e = {
|
|
25491
25494
|
...t,
|
|
25492
25495
|
...typeof e == "object" && e ? e : {}
|
|
@@ -25520,27 +25523,27 @@ class Pr extends dn {
|
|
|
25520
25523
|
}
|
|
25521
25524
|
}
|
|
25522
25525
|
nn(Pr);
|
|
25523
|
-
const
|
|
25526
|
+
const tT = "popover", nT = ".popover-header", rT = ".popover-body", sT = {
|
|
25524
25527
|
...Pr.Default,
|
|
25525
25528
|
content: "",
|
|
25526
25529
|
offset: [0, 8],
|
|
25527
25530
|
placement: "right",
|
|
25528
25531
|
template: '<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',
|
|
25529
25532
|
trigger: "click"
|
|
25530
|
-
},
|
|
25533
|
+
}, iT = {
|
|
25531
25534
|
...Pr.DefaultType,
|
|
25532
25535
|
content: "(null|string|element|function)"
|
|
25533
25536
|
};
|
|
25534
25537
|
class eu extends Pr {
|
|
25535
25538
|
// Getters
|
|
25536
25539
|
static get Default() {
|
|
25537
|
-
return
|
|
25540
|
+
return sT;
|
|
25538
25541
|
}
|
|
25539
25542
|
static get DefaultType() {
|
|
25540
|
-
return
|
|
25543
|
+
return iT;
|
|
25541
25544
|
}
|
|
25542
25545
|
static get NAME() {
|
|
25543
|
-
return
|
|
25546
|
+
return tT;
|
|
25544
25547
|
}
|
|
25545
25548
|
// Overrides
|
|
25546
25549
|
_isWithContent() {
|
|
@@ -25549,8 +25552,8 @@ class eu extends Pr {
|
|
|
25549
25552
|
// Private
|
|
25550
25553
|
_getContentForTemplate() {
|
|
25551
25554
|
return {
|
|
25552
|
-
[
|
|
25553
|
-
[
|
|
25555
|
+
[nT]: this._getTitle(),
|
|
25556
|
+
[rT]: this._getContent()
|
|
25554
25557
|
};
|
|
25555
25558
|
}
|
|
25556
25559
|
_getContent() {
|
|
@@ -25569,14 +25572,14 @@ class eu extends Pr {
|
|
|
25569
25572
|
}
|
|
25570
25573
|
}
|
|
25571
25574
|
nn(eu);
|
|
25572
|
-
const
|
|
25575
|
+
const oT = "scrollspy", aT = "bs.scrollspy", tu = `.${aT}`, lT = ".data-api", cT = `activate${tu}`, Df = `click${tu}`, uT = `load${tu}${lT}`, dT = "dropdown-item", jr = "active", fT = '[data-bs-spy="scroll"]', cl = "[href]", hT = ".nav, .list-group", Nf = ".nav-link", pT = ".nav-item", mT = ".list-group-item", gT = `${Nf}, ${pT} > ${Nf}, ${mT}`, vT = ".dropdown", yT = ".dropdown-toggle", bT = {
|
|
25573
25576
|
offset: null,
|
|
25574
25577
|
// TODO: v6 @deprecated, keep it for backwards compatibility reasons
|
|
25575
25578
|
rootMargin: "0px 0px -25%",
|
|
25576
25579
|
smoothScroll: !1,
|
|
25577
25580
|
target: null,
|
|
25578
25581
|
threshold: [0.1, 0.5, 1]
|
|
25579
|
-
},
|
|
25582
|
+
}, ET = {
|
|
25580
25583
|
offset: "(number|null)",
|
|
25581
25584
|
// TODO v6 @deprecated, keep it for backwards compatibility reasons
|
|
25582
25585
|
rootMargin: "string",
|
|
@@ -25593,13 +25596,13 @@ class ya extends dn {
|
|
|
25593
25596
|
}
|
|
25594
25597
|
// Getters
|
|
25595
25598
|
static get Default() {
|
|
25596
|
-
return
|
|
25599
|
+
return bT;
|
|
25597
25600
|
}
|
|
25598
25601
|
static get DefaultType() {
|
|
25599
|
-
return
|
|
25602
|
+
return ET;
|
|
25600
25603
|
}
|
|
25601
25604
|
static get NAME() {
|
|
25602
|
-
return
|
|
25605
|
+
return oT;
|
|
25603
25606
|
}
|
|
25604
25607
|
// Public
|
|
25605
25608
|
refresh() {
|
|
@@ -25670,17 +25673,17 @@ class ya extends dn {
|
|
|
25670
25673
|
}
|
|
25671
25674
|
}
|
|
25672
25675
|
_process(e) {
|
|
25673
|
-
this._activeTarget !== e && (this._clearActiveClass(this._config.target), this._activeTarget = e, e.classList.add(jr), this._activateParents(e), ae.trigger(this._element,
|
|
25676
|
+
this._activeTarget !== e && (this._clearActiveClass(this._config.target), this._activeTarget = e, e.classList.add(jr), this._activateParents(e), ae.trigger(this._element, cT, {
|
|
25674
25677
|
relatedTarget: e
|
|
25675
25678
|
}));
|
|
25676
25679
|
}
|
|
25677
25680
|
_activateParents(e) {
|
|
25678
|
-
if (e.classList.contains(
|
|
25679
|
-
ke.findOne(
|
|
25681
|
+
if (e.classList.contains(dT)) {
|
|
25682
|
+
ke.findOne(yT, e.closest(vT)).classList.add(jr);
|
|
25680
25683
|
return;
|
|
25681
25684
|
}
|
|
25682
|
-
for (const t of ke.parents(e,
|
|
25683
|
-
for (const r of ke.prev(t,
|
|
25685
|
+
for (const t of ke.parents(e, hT))
|
|
25686
|
+
for (const r of ke.prev(t, gT))
|
|
25684
25687
|
r.classList.add(jr);
|
|
25685
25688
|
}
|
|
25686
25689
|
_clearActiveClass(e) {
|
|
@@ -25701,29 +25704,29 @@ class ya extends dn {
|
|
|
25701
25704
|
});
|
|
25702
25705
|
}
|
|
25703
25706
|
}
|
|
25704
|
-
ae.on(window,
|
|
25705
|
-
for (const n of ke.find(
|
|
25707
|
+
ae.on(window, uT, () => {
|
|
25708
|
+
for (const n of ke.find(fT))
|
|
25706
25709
|
ya.getOrCreateInstance(n);
|
|
25707
25710
|
});
|
|
25708
25711
|
nn(ya);
|
|
25709
|
-
const
|
|
25712
|
+
const ST = "tab", CT = "bs.tab", $r = `.${CT}`, wT = `hide${$r}`, TT = `hidden${$r}`, xT = `show${$r}`, AT = `shown${$r}`, kT = `click${$r}`, OT = `keydown${$r}`, MT = `load${$r}`, _T = "ArrowLeft", Lf = "ArrowRight", IT = "ArrowUp", Rf = "ArrowDown", Sr = "active", Pf = "fade", ul = "show", DT = "dropdown", NT = ".dropdown-toggle", LT = ".dropdown-menu", dl = ":not(.dropdown-toggle)", RT = '.list-group, .nav, [role="tablist"]', PT = ".nav-item, .list-group-item", $T = `.nav-link${dl}, .list-group-item${dl}, [role="tab"]${dl}`, Km = '[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]', fl = `${$T}, ${Km}`, FT = `.${Sr}[data-bs-toggle="tab"], .${Sr}[data-bs-toggle="pill"], .${Sr}[data-bs-toggle="list"]`;
|
|
25710
25713
|
class Cs extends dn {
|
|
25711
25714
|
constructor(e) {
|
|
25712
|
-
super(e), this._parent = this._element.closest(
|
|
25715
|
+
super(e), this._parent = this._element.closest(RT), this._parent && (this._setInitialAttributes(this._parent, this._getChildren()), ae.on(this._element, OT, (t) => this._keydown(t)));
|
|
25713
25716
|
}
|
|
25714
25717
|
// Getters
|
|
25715
25718
|
static get NAME() {
|
|
25716
|
-
return
|
|
25719
|
+
return ST;
|
|
25717
25720
|
}
|
|
25718
25721
|
// Public
|
|
25719
25722
|
show() {
|
|
25720
25723
|
const e = this._element;
|
|
25721
25724
|
if (this._elemIsActive(e))
|
|
25722
25725
|
return;
|
|
25723
|
-
const t = this._getActiveElem(), r = t ? ae.trigger(t,
|
|
25726
|
+
const t = this._getActiveElem(), r = t ? ae.trigger(t, wT, {
|
|
25724
25727
|
relatedTarget: e
|
|
25725
25728
|
}) : null;
|
|
25726
|
-
ae.trigger(e,
|
|
25729
|
+
ae.trigger(e, xT, {
|
|
25727
25730
|
relatedTarget: t
|
|
25728
25731
|
}).defaultPrevented || r && r.defaultPrevented || (this._deactivate(t, e), this._activate(e, t));
|
|
25729
25732
|
}
|
|
@@ -25737,7 +25740,7 @@ class Cs extends dn {
|
|
|
25737
25740
|
e.classList.add(ul);
|
|
25738
25741
|
return;
|
|
25739
25742
|
}
|
|
25740
|
-
e.removeAttribute("tabindex"), e.setAttribute("aria-selected", !0), this._toggleDropDown(e, !0), ae.trigger(e,
|
|
25743
|
+
e.removeAttribute("tabindex"), e.setAttribute("aria-selected", !0), this._toggleDropDown(e, !0), ae.trigger(e, AT, {
|
|
25741
25744
|
relatedTarget: t
|
|
25742
25745
|
});
|
|
25743
25746
|
};
|
|
@@ -25752,14 +25755,14 @@ class Cs extends dn {
|
|
|
25752
25755
|
e.classList.remove(ul);
|
|
25753
25756
|
return;
|
|
25754
25757
|
}
|
|
25755
|
-
e.setAttribute("aria-selected", !1), e.setAttribute("tabindex", "-1"), this._toggleDropDown(e, !1), ae.trigger(e,
|
|
25758
|
+
e.setAttribute("aria-selected", !1), e.setAttribute("tabindex", "-1"), this._toggleDropDown(e, !1), ae.trigger(e, TT, {
|
|
25756
25759
|
relatedTarget: t
|
|
25757
25760
|
});
|
|
25758
25761
|
};
|
|
25759
25762
|
this._queueCallback(r, e, e.classList.contains(Pf));
|
|
25760
25763
|
}
|
|
25761
25764
|
_keydown(e) {
|
|
25762
|
-
if (![
|
|
25765
|
+
if (![_T, Lf, IT, Rf].includes(e.key))
|
|
25763
25766
|
return;
|
|
25764
25767
|
e.stopPropagation(), e.preventDefault();
|
|
25765
25768
|
const t = [Lf, Rf].includes(e.key), r = Xc(this._getChildren().filter((s) => !sr(s)), e.target, t, !0);
|
|
@@ -25789,13 +25792,13 @@ class Cs extends dn {
|
|
|
25789
25792
|
}
|
|
25790
25793
|
_toggleDropDown(e, t) {
|
|
25791
25794
|
const r = this._getOuterElement(e);
|
|
25792
|
-
if (!r.classList.contains(
|
|
25795
|
+
if (!r.classList.contains(DT))
|
|
25793
25796
|
return;
|
|
25794
25797
|
const s = (i, o) => {
|
|
25795
25798
|
const l = ke.findOne(i, r);
|
|
25796
25799
|
l && l.classList.toggle(o, t);
|
|
25797
25800
|
};
|
|
25798
|
-
s(
|
|
25801
|
+
s(NT, Sr), s(LT, ul), r.setAttribute("aria-expanded", t);
|
|
25799
25802
|
}
|
|
25800
25803
|
_setAttributeIfNotExists(e, t, r) {
|
|
25801
25804
|
e.hasAttribute(t) || e.setAttribute(t, r);
|
|
@@ -25809,7 +25812,7 @@ class Cs extends dn {
|
|
|
25809
25812
|
}
|
|
25810
25813
|
// Try to get the outer element (usually the .nav-item)
|
|
25811
25814
|
_getOuterElement(e) {
|
|
25812
|
-
return e.closest(
|
|
25815
|
+
return e.closest(PT) || e;
|
|
25813
25816
|
}
|
|
25814
25817
|
// Static
|
|
25815
25818
|
static jQueryInterface(e) {
|
|
@@ -25823,19 +25826,19 @@ class Cs extends dn {
|
|
|
25823
25826
|
});
|
|
25824
25827
|
}
|
|
25825
25828
|
}
|
|
25826
|
-
ae.on(document,
|
|
25829
|
+
ae.on(document, kT, Km, function(n) {
|
|
25827
25830
|
["A", "AREA"].includes(this.tagName) && n.preventDefault(), !sr(this) && Cs.getOrCreateInstance(this).show();
|
|
25828
25831
|
});
|
|
25829
|
-
ae.on(window,
|
|
25830
|
-
for (const n of ke.find(
|
|
25832
|
+
ae.on(window, MT, () => {
|
|
25833
|
+
for (const n of ke.find(FT))
|
|
25831
25834
|
Cs.getOrCreateInstance(n);
|
|
25832
25835
|
});
|
|
25833
25836
|
nn(Cs);
|
|
25834
|
-
const
|
|
25837
|
+
const BT = "toast", VT = "bs.toast", dr = `.${VT}`, HT = `mouseover${dr}`, zT = `mouseout${dr}`, UT = `focusin${dr}`, jT = `focusout${dr}`, WT = `hide${dr}`, KT = `hidden${dr}`, YT = `show${dr}`, GT = `shown${dr}`, JT = "fade", $f = "hide", Li = "show", Ri = "showing", ZT = {
|
|
25835
25838
|
animation: "boolean",
|
|
25836
25839
|
autohide: "boolean",
|
|
25837
25840
|
delay: "number"
|
|
25838
|
-
},
|
|
25841
|
+
}, XT = {
|
|
25839
25842
|
animation: !0,
|
|
25840
25843
|
autohide: !0,
|
|
25841
25844
|
delay: 5e3
|
|
@@ -25846,29 +25849,29 @@ class vi extends dn {
|
|
|
25846
25849
|
}
|
|
25847
25850
|
// Getters
|
|
25848
25851
|
static get Default() {
|
|
25849
|
-
return
|
|
25852
|
+
return XT;
|
|
25850
25853
|
}
|
|
25851
25854
|
static get DefaultType() {
|
|
25852
|
-
return
|
|
25855
|
+
return ZT;
|
|
25853
25856
|
}
|
|
25854
25857
|
static get NAME() {
|
|
25855
|
-
return
|
|
25858
|
+
return BT;
|
|
25856
25859
|
}
|
|
25857
25860
|
// Public
|
|
25858
25861
|
show() {
|
|
25859
|
-
if (ae.trigger(this._element,
|
|
25862
|
+
if (ae.trigger(this._element, YT).defaultPrevented)
|
|
25860
25863
|
return;
|
|
25861
|
-
this._clearTimeout(), this._config.animation && this._element.classList.add(
|
|
25864
|
+
this._clearTimeout(), this._config.animation && this._element.classList.add(JT);
|
|
25862
25865
|
const t = () => {
|
|
25863
|
-
this._element.classList.remove(Ri), ae.trigger(this._element,
|
|
25866
|
+
this._element.classList.remove(Ri), ae.trigger(this._element, GT), this._maybeScheduleHide();
|
|
25864
25867
|
};
|
|
25865
25868
|
this._element.classList.remove($f), hi(this._element), this._element.classList.add(Li, Ri), this._queueCallback(t, this._element, this._config.animation);
|
|
25866
25869
|
}
|
|
25867
25870
|
hide() {
|
|
25868
|
-
if (!this.isShown() || ae.trigger(this._element,
|
|
25871
|
+
if (!this.isShown() || ae.trigger(this._element, WT).defaultPrevented)
|
|
25869
25872
|
return;
|
|
25870
25873
|
const t = () => {
|
|
25871
|
-
this._element.classList.add($f), this._element.classList.remove(Ri, Li), ae.trigger(this._element,
|
|
25874
|
+
this._element.classList.add($f), this._element.classList.remove(Ri, Li), ae.trigger(this._element, KT);
|
|
25872
25875
|
};
|
|
25873
25876
|
this._element.classList.add(Ri), this._queueCallback(t, this._element, this._config.animation);
|
|
25874
25877
|
}
|
|
@@ -25905,7 +25908,7 @@ class vi extends dn {
|
|
|
25905
25908
|
this._element === r || this._element.contains(r) || this._maybeScheduleHide();
|
|
25906
25909
|
}
|
|
25907
25910
|
_setListeners() {
|
|
25908
|
-
ae.on(this._element,
|
|
25911
|
+
ae.on(this._element, HT, (e) => this._onInteraction(e, !0)), ae.on(this._element, zT, (e) => this._onInteraction(e, !1)), ae.on(this._element, UT, (e) => this._onInteraction(e, !0)), ae.on(this._element, jT, (e) => this._onInteraction(e, !1));
|
|
25909
25912
|
}
|
|
25910
25913
|
_clearTimeout() {
|
|
25911
25914
|
clearTimeout(this._timeout), this._timeout = null;
|
|
@@ -25924,8 +25927,8 @@ class vi extends dn {
|
|
|
25924
25927
|
}
|
|
25925
25928
|
ma(vi);
|
|
25926
25929
|
nn(vi);
|
|
25927
|
-
const
|
|
25928
|
-
const e =
|
|
25930
|
+
const lx = (n) => {
|
|
25931
|
+
const e = at(null);
|
|
25929
25932
|
return { showModal: () => {
|
|
25930
25933
|
const s = document.getElementById(n);
|
|
25931
25934
|
s instanceof HTMLElement ? (e.value = Nr.getOrCreateInstance(s), e.value.show()) : console.error(`Modal '${n}' niet gevonden.`);
|
|
@@ -25933,7 +25936,7 @@ const ax = (n) => {
|
|
|
25933
25936
|
e.value && e.value.hide();
|
|
25934
25937
|
} };
|
|
25935
25938
|
};
|
|
25936
|
-
function
|
|
25939
|
+
function QT(n = void 0) {
|
|
25937
25940
|
const e = (l) => i("Succesvol", l, es.SUCCESS), t = (l) => i("Waarschuwing", l, es.WARNING), r = (l) => i("Informatie", l, es.INFO), s = (l) => i("Mislukt", l, es.DANGER);
|
|
25938
25941
|
function i(l, a, c) {
|
|
25939
25942
|
const u = `toast-${nh()}`, d = {
|
|
@@ -25973,9 +25976,9 @@ function XT(n = void 0) {
|
|
|
25973
25976
|
}
|
|
25974
25977
|
return { showSuccessToast: e, showInformationToast: r, showWarningToast: t, showDangerToast: s };
|
|
25975
25978
|
}
|
|
25976
|
-
const
|
|
25977
|
-
function
|
|
25978
|
-
const e =
|
|
25979
|
+
const qT = (n) => Array.isArray(n) && n.length > 0, { showDangerToast: ex } = QT();
|
|
25980
|
+
function cx(n) {
|
|
25981
|
+
const e = at(null), t = (a, c = "serverErrors") => {
|
|
25979
25982
|
var d;
|
|
25980
25983
|
let u = [];
|
|
25981
25984
|
if (Array.isArray((d = a == null ? void 0 : a.response) == null ? void 0 : d.data) ? u = a.response.data.filter(
|
|
@@ -25992,10 +25995,10 @@ function lx(n) {
|
|
|
25992
25995
|
const u = new URL(a.request.responseURL).pathname;
|
|
25993
25996
|
if (u in n.error) {
|
|
25994
25997
|
const d = n.error[u];
|
|
25995
|
-
d &&
|
|
25998
|
+
d && ex(d);
|
|
25996
25999
|
}
|
|
25997
|
-
}, s =
|
|
25998
|
-
|
|
26000
|
+
}, s = at(null), i = at(""), o = (a) => {
|
|
26001
|
+
qT(a.value) ? s.value = a.value.map((c) => Mi(c) ? c : c.ErrorMessage) : Mi(a.value) && (i.value = a.value);
|
|
25999
26002
|
};
|
|
26000
26003
|
function l() {
|
|
26001
26004
|
e.value = null, s.value = null, i.value = Ql;
|
|
@@ -26009,7 +26012,7 @@ function lx(n) {
|
|
|
26009
26012
|
ResetServerErrors: l
|
|
26010
26013
|
};
|
|
26011
26014
|
}
|
|
26012
|
-
const
|
|
26015
|
+
const ux = () => ({ ResetValidation: (t) => {
|
|
26013
26016
|
for (const r in t.value)
|
|
26014
26017
|
t.value[r].state = null;
|
|
26015
26018
|
}, ValidationObjectIsValid: (t) => {
|
|
@@ -26017,7 +26020,7 @@ const cx = () => ({ ResetValidation: (t) => {
|
|
|
26017
26020
|
if (t[r].state === !1)
|
|
26018
26021
|
return !1;
|
|
26019
26022
|
return !0;
|
|
26020
|
-
} }),
|
|
26023
|
+
} }), tx = {
|
|
26021
26024
|
mounted: (n) => {
|
|
26022
26025
|
new Pr(n);
|
|
26023
26026
|
}
|
|
@@ -26314,7 +26317,7 @@ var Ym = { exports: {} };
|
|
|
26314
26317
|
})(Ym);
|
|
26315
26318
|
var Gm = Ym.exports;
|
|
26316
26319
|
const jo = /* @__PURE__ */ cc(Gm);
|
|
26317
|
-
var
|
|
26320
|
+
var nx = { exports: {} };
|
|
26318
26321
|
(function(n, e) {
|
|
26319
26322
|
(function(t, r) {
|
|
26320
26323
|
n.exports = r(Gm);
|
|
@@ -26327,7 +26330,7 @@ var tx = { exports: {} };
|
|
|
26327
26330
|
}, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD-MM-YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, relativeTime: { future: "over %s", past: "%s geleden", s: "een paar seconden", m: "een minuut", mm: "%d minuten", h: "een uur", hh: "%d uur", d: "een dag", dd: "%d dagen", M: "een maand", MM: "%d maanden", y: "een jaar", yy: "%d jaar" } };
|
|
26328
26331
|
return s.default.locale(i, null, !0), i;
|
|
26329
26332
|
});
|
|
26330
|
-
})(
|
|
26333
|
+
})(nx);
|
|
26331
26334
|
var Jm = { exports: {} };
|
|
26332
26335
|
(function(n, e) {
|
|
26333
26336
|
(function(t, r) {
|
|
@@ -26460,11 +26463,11 @@ var Jm = { exports: {} };
|
|
|
26460
26463
|
};
|
|
26461
26464
|
});
|
|
26462
26465
|
})(Jm);
|
|
26463
|
-
var
|
|
26464
|
-
const
|
|
26465
|
-
jo.extend(
|
|
26466
|
+
var rx = Jm.exports;
|
|
26467
|
+
const sx = /* @__PURE__ */ cc(rx);
|
|
26468
|
+
jo.extend(sx);
|
|
26466
26469
|
jo.locale("nl");
|
|
26467
|
-
function
|
|
26470
|
+
function dx(n, e = jo().startOf("day")) {
|
|
26468
26471
|
const t = "DD-MM-YYYY", r = jo(n, t);
|
|
26469
26472
|
if (r.isSame(e))
|
|
26470
26473
|
return "vandaag";
|
|
@@ -26485,7 +26488,7 @@ function ux(n, e = jo().startOf("day")) {
|
|
|
26485
26488
|
}
|
|
26486
26489
|
return r.format(t);
|
|
26487
26490
|
}
|
|
26488
|
-
const
|
|
26491
|
+
const ix = {
|
|
26489
26492
|
PRIMARY: "primary",
|
|
26490
26493
|
SECONDARY: "secondary",
|
|
26491
26494
|
COLLEAGUE: "colleague",
|
|
@@ -26501,7 +26504,7 @@ const sx = {
|
|
|
26501
26504
|
__name: "BDButton",
|
|
26502
26505
|
props: {
|
|
26503
26506
|
size: { default: wt.MD },
|
|
26504
|
-
variant: { default:
|
|
26507
|
+
variant: { default: ix.PRIMARY },
|
|
26505
26508
|
blockElement: { type: Boolean, default: !1 },
|
|
26506
26509
|
disabled: { type: Boolean, default: !1 },
|
|
26507
26510
|
to: {},
|
|
@@ -26535,9 +26538,9 @@ const sx = {
|
|
|
26535
26538
|
_: 3
|
|
26536
26539
|
}, 16, ["class"]));
|
|
26537
26540
|
}
|
|
26538
|
-
}),
|
|
26541
|
+
}), fx = {
|
|
26539
26542
|
install: (n) => {
|
|
26540
|
-
n.component("BDCol", Wr), n.component("BDContainer", hl), n.component("BDRow", Kr), n.component("BDButton", yt), n.component("BDLogo", qf), n.component("BDLink", Ys), n.component("BDDropdownItem", bl), n.component("BDDropdown", ym), n.component("BDAlert", gl), n.component("BDProfileImage", Xo), n.component("BDZoomslider", s2), n.component("BDCard", oc), n.component("BDCollapsableCard", u2), n.component("BDFormInput", Pi), n.component("BDInputGroup", S2), n.component("BDFormInvalidFeedback", ac), n.component("BDBadge", w2), n.component("BDForm", x2), n.component("BDPagination", D2), n.component("BDDropzone", ay), n.component("BDMarkdownEditor", PE), n.component("BDModal",
|
|
26543
|
+
n.component("BDCol", Wr), n.component("BDContainer", hl), n.component("BDRow", Kr), n.component("BDButton", yt), n.component("BDLogo", qf), n.component("BDLink", Ys), n.component("BDDropdownItem", bl), n.component("BDDropdown", ym), n.component("BDAlert", gl), n.component("BDProfileImage", Xo), n.component("BDZoomslider", s2), n.component("BDCard", oc), n.component("BDCollapsableCard", u2), n.component("BDFormInput", Pi), n.component("BDInputGroup", S2), n.component("BDFormInvalidFeedback", ac), n.component("BDBadge", w2), n.component("BDForm", x2), n.component("BDPagination", D2), n.component("BDDropzone", ay), n.component("BDMarkdownEditor", PE), n.component("BDModal", A6), n.component("BDFormSelect", $2), n.component("BDUser", GE), n.component("BDArticle", z2), n.component("BDFormCheckbox", B2), n.component("BDToast", sh), n.component("BDAttachmentPreviewList", Jc), n.component("BDImageAttachmentPreviewList", Zc), n.component("BDHeader", g6), n.component("BDMobileMenu", vm), n.component("BDChatCloud", e6), n.component("BDTable", l6), n.component("BDChangePasswordTemplate", P6), n.component("IconAcademy", y1), n.component("IconArrowDown", T1), n.component("IconArrowUp", _1), n.component("IconAttachment", us), n.component("IconBold", Vf), n.component("IconBulletList", Hf), n.component("IconCalendar", yu), n.component("IconCalendar", yu), n.component("IconCardView", n0), n.component("IconCaretDown", zf), n.component("IconCaretLeft", Uf), n.component("IconCaretRight", jf), n.component("IconCheck", Yo), n.component("IconClose", sc), n.component("IconDownloadImage", pl), n.component("IconDownloadImage", pl), n.component("IconEdit", F0), n.component("IconError", ic), n.component("IconEyeShow", J0), n.component("IconEyeSlash", tg), n.component("IconFile", Wf), n.component("IconHyperlink", Kf), n.component("IconInfo", Go), n.component("IconItalic", Yf), n.component("IconListView", Og), n.component("IconMenu", ml), n.component("IconMenu", ml), n.component("IconOrderedList", Gf), n.component("IconRemove", Jo), n.component("IconService", Jg), n.component("IconSort", tv), n.component("IconSortAsc", Jf), n.component("IconSortDesc", Zf), n.component("IconSortNone", Xf), n.component("IconTriangleExclamation", Cv), n.component("IconUnderline", Qf), n.component("IconContactPerson", Nv), n.directive("vBDTooltip", tx);
|
|
26541
26544
|
}
|
|
26542
26545
|
};
|
|
26543
26546
|
export {
|
|
@@ -26547,7 +26550,7 @@ export {
|
|
|
26547
26550
|
w2 as BDBadge,
|
|
26548
26551
|
yt as BDButton,
|
|
26549
26552
|
oc as BDCard,
|
|
26550
|
-
|
|
26553
|
+
P6 as BDChangePasswordTemplate,
|
|
26551
26554
|
e6 as BDChatCloud,
|
|
26552
26555
|
Wr as BDCol,
|
|
26553
26556
|
u2 as BDCollapsableCard,
|
|
@@ -26560,18 +26563,18 @@ export {
|
|
|
26560
26563
|
Pi as BDFormInput,
|
|
26561
26564
|
ac as BDFormInvalidFeedback,
|
|
26562
26565
|
$2 as BDFormSelect,
|
|
26563
|
-
|
|
26566
|
+
g6 as BDHeader,
|
|
26564
26567
|
Zc as BDImageAttachmentPreviewList,
|
|
26565
26568
|
S2 as BDInputGroup,
|
|
26566
26569
|
Ys as BDLink,
|
|
26567
26570
|
qf as BDLogo,
|
|
26568
26571
|
PE as BDMarkdownEditor,
|
|
26569
26572
|
vm as BDMobileMenu,
|
|
26570
|
-
|
|
26573
|
+
A6 as BDModal,
|
|
26571
26574
|
D2 as BDPagination,
|
|
26572
26575
|
Xo as BDProfileImage,
|
|
26573
26576
|
Kr as BDRow,
|
|
26574
|
-
|
|
26577
|
+
l6 as BDTable,
|
|
26575
26578
|
sh as BDToast,
|
|
26576
26579
|
GE as BDUser,
|
|
26577
26580
|
s2 as BDZoomslider,
|
|
@@ -26609,11 +26612,11 @@ export {
|
|
|
26609
26612
|
Xf as IconSortNone,
|
|
26610
26613
|
Cv as IconTriangleExclamation,
|
|
26611
26614
|
Qf as IconUnderline,
|
|
26612
|
-
|
|
26613
|
-
|
|
26614
|
-
|
|
26615
|
-
|
|
26616
|
-
|
|
26617
|
-
|
|
26618
|
-
|
|
26615
|
+
fx as default,
|
|
26616
|
+
dx as getDisplayDate,
|
|
26617
|
+
lx as useModal,
|
|
26618
|
+
cx as useServerErrors,
|
|
26619
|
+
QT as useToaster,
|
|
26620
|
+
ux as useValidation,
|
|
26621
|
+
tx as vBdTooltip
|
|
26619
26622
|
};
|