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