jclib-ui 1.0.178 → 1.0.179
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/jclib-ui.css +1 -1
- package/dist/jclib-ui.es.js +410 -411
- package/dist/jclib-ui.es.js.map +1 -1
- package/dist/jclib-ui.umd.js +1 -1
- package/dist/jclib-ui.umd.js.map +1 -1
- package/package.json +79 -79
package/dist/jclib-ui.es.js
CHANGED
|
@@ -1431,7 +1431,7 @@ const lib = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
1431
1431
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1432
1432
|
const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
1433
1433
|
/*!
|
|
1434
|
-
* Bootstrap v5.3.
|
|
1434
|
+
* Bootstrap v5.3.8 (https://getbootstrap.com/)
|
|
1435
1435
|
* Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
|
1436
1436
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
1437
1437
|
*/
|
|
@@ -1457,10 +1457,10 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
1457
1457
|
if (!s2.has(t3)) return;
|
|
1458
1458
|
const i3 = s2.get(t3);
|
|
1459
1459
|
i3.delete(e2), 0 === i3.size && s2.delete(t3);
|
|
1460
|
-
} }, o2 = "transitionend", r = (t3) => (t3 && window.CSS && window.CSS.escape && (t3 = t3.replace(/#([^\s"#']+)/g, (t4, e2) => `#${CSS.escape(e2)}`)), t3), a2 = (t3) => {
|
|
1460
|
+
} }, o2 = "transitionend", r = (t3) => (t3 && window.CSS && window.CSS.escape && (t3 = t3.replace(/#([^\s"#']+)/g, (t4, e2) => `#${CSS.escape(e2)}`)), t3), a2 = (t3) => null == t3 ? `${t3}` : Object.prototype.toString.call(t3).match(/\s([a-z]+)/i)[1].toLowerCase(), l2 = (t3) => {
|
|
1461
1461
|
t3.dispatchEvent(new Event(o2));
|
|
1462
|
-
},
|
|
1463
|
-
if (!
|
|
1462
|
+
}, c2 = (t3) => !(!t3 || "object" != typeof t3) && (void 0 !== t3.jquery && (t3 = t3[0]), void 0 !== t3.nodeType), h2 = (t3) => c2(t3) ? t3.jquery ? t3[0] : t3 : "string" == typeof t3 && t3.length > 0 ? document.querySelector(r(t3)) : null, d2 = (t3) => {
|
|
1463
|
+
if (!c2(t3) || 0 === t3.getClientRects().length) return false;
|
|
1464
1464
|
const e2 = "visible" === getComputedStyle(t3).getPropertyValue("visibility"), i3 = t3.closest("details:not([open])");
|
|
1465
1465
|
if (!i3) return e2;
|
|
1466
1466
|
if (i3 !== t3) {
|
|
@@ -1469,29 +1469,29 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
1469
1469
|
if (null === e3) return false;
|
|
1470
1470
|
}
|
|
1471
1471
|
return e2;
|
|
1472
|
-
},
|
|
1472
|
+
}, u2 = (t3) => !t3 || t3.nodeType !== Node.ELEMENT_NODE || !!t3.classList.contains("disabled") || (void 0 !== t3.disabled ? t3.disabled : t3.hasAttribute("disabled") && "false" !== t3.getAttribute("disabled")), _2 = (t3) => {
|
|
1473
1473
|
if (!document.documentElement.attachShadow) return null;
|
|
1474
1474
|
if ("function" == typeof t3.getRootNode) {
|
|
1475
1475
|
const e2 = t3.getRootNode();
|
|
1476
1476
|
return e2 instanceof ShadowRoot ? e2 : null;
|
|
1477
1477
|
}
|
|
1478
|
-
return t3 instanceof ShadowRoot ? t3 : t3.parentNode ?
|
|
1479
|
-
},
|
|
1480
|
-
},
|
|
1478
|
+
return t3 instanceof ShadowRoot ? t3 : t3.parentNode ? _2(t3.parentNode) : null;
|
|
1479
|
+
}, g2 = () => {
|
|
1480
|
+
}, f2 = (t3) => {
|
|
1481
1481
|
t3.offsetHeight;
|
|
1482
|
-
},
|
|
1482
|
+
}, m2 = () => window.jQuery && !document.body.hasAttribute("data-bs-no-jquery") ? window.jQuery : null, p2 = [], b2 = () => "rtl" === document.documentElement.dir, v2 = (t3) => {
|
|
1483
1483
|
var e2;
|
|
1484
1484
|
e2 = () => {
|
|
1485
|
-
const e3 =
|
|
1485
|
+
const e3 = m2();
|
|
1486
1486
|
if (e3) {
|
|
1487
1487
|
const i3 = t3.NAME, s3 = e3.fn[i3];
|
|
1488
1488
|
e3.fn[i3] = t3.jQueryInterface, e3.fn[i3].Constructor = t3, e3.fn[i3].noConflict = () => (e3.fn[i3] = s3, t3.jQueryInterface);
|
|
1489
1489
|
}
|
|
1490
|
-
}, "loading" === document.readyState ? (
|
|
1491
|
-
for (const t4 of
|
|
1492
|
-
}),
|
|
1493
|
-
},
|
|
1494
|
-
if (!i3) return void
|
|
1490
|
+
}, "loading" === document.readyState ? (p2.length || document.addEventListener("DOMContentLoaded", () => {
|
|
1491
|
+
for (const t4 of p2) t4();
|
|
1492
|
+
}), p2.push(e2)) : e2();
|
|
1493
|
+
}, y2 = (t3, e2 = [], i3 = t3) => "function" == typeof t3 ? t3.call(...e2) : i3, w2 = (t3, e2, i3 = true) => {
|
|
1494
|
+
if (!i3) return void y2(t3);
|
|
1495
1495
|
const s3 = ((t4) => {
|
|
1496
1496
|
if (!t4) return 0;
|
|
1497
1497
|
let { transitionDuration: e3, transitionDelay: i4 } = window.getComputedStyle(t4);
|
|
@@ -1500,93 +1500,93 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
1500
1500
|
})(e2) + 5;
|
|
1501
1501
|
let n3 = false;
|
|
1502
1502
|
const r2 = ({ target: i4 }) => {
|
|
1503
|
-
i4 === e2 && (n3 = true, e2.removeEventListener(o2, r2),
|
|
1503
|
+
i4 === e2 && (n3 = true, e2.removeEventListener(o2, r2), y2(t3));
|
|
1504
1504
|
};
|
|
1505
1505
|
e2.addEventListener(o2, r2), setTimeout(() => {
|
|
1506
|
-
n3 ||
|
|
1506
|
+
n3 || l2(e2);
|
|
1507
1507
|
}, s3);
|
|
1508
|
-
},
|
|
1508
|
+
}, A2 = (t3, e2, i3, s3) => {
|
|
1509
1509
|
const n3 = t3.length;
|
|
1510
1510
|
let o3 = t3.indexOf(e2);
|
|
1511
1511
|
return -1 === o3 ? !i3 && s3 ? t3[n3 - 1] : t3[0] : (o3 += i3 ? 1 : -1, s3 && (o3 = (o3 + n3) % n3), t3[Math.max(0, Math.min(o3, n3 - 1))]);
|
|
1512
|
-
},
|
|
1513
|
-
let
|
|
1514
|
-
const
|
|
1515
|
-
function
|
|
1516
|
-
return e2 && `${e2}::${
|
|
1512
|
+
}, E2 = /[^.]*(?=\..*)\.|.*/, C2 = /\..*/, T2 = /::\d+$/, k2 = {};
|
|
1513
|
+
let $2 = 1;
|
|
1514
|
+
const S2 = { mouseenter: "mouseover", mouseleave: "mouseout" }, L2 = /* @__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"]);
|
|
1515
|
+
function O2(t3, e2) {
|
|
1516
|
+
return e2 && `${e2}::${$2++}` || t3.uidEvent || $2++;
|
|
1517
1517
|
}
|
|
1518
|
-
function
|
|
1519
|
-
const e2 =
|
|
1520
|
-
return t3.uidEvent = e2,
|
|
1518
|
+
function I2(t3) {
|
|
1519
|
+
const e2 = O2(t3);
|
|
1520
|
+
return t3.uidEvent = e2, k2[e2] = k2[e2] || {}, k2[e2];
|
|
1521
1521
|
}
|
|
1522
|
-
function
|
|
1522
|
+
function D2(t3, e2, i3 = null) {
|
|
1523
1523
|
return Object.values(t3).find((t4) => t4.callable === e2 && t4.delegationSelector === i3);
|
|
1524
1524
|
}
|
|
1525
|
-
function
|
|
1525
|
+
function N2(t3, e2, i3) {
|
|
1526
1526
|
const s3 = "string" == typeof e2, n3 = s3 ? i3 : e2 || i3;
|
|
1527
|
-
let o3 =
|
|
1528
|
-
return
|
|
1527
|
+
let o3 = j2(t3);
|
|
1528
|
+
return L2.has(o3) || (o3 = t3), [s3, n3, o3];
|
|
1529
1529
|
}
|
|
1530
|
-
function
|
|
1530
|
+
function P2(t3, e2, i3, s3, n3) {
|
|
1531
1531
|
if ("string" != typeof e2 || !t3) return;
|
|
1532
|
-
let [o3, r2, a3] =
|
|
1533
|
-
if (e2 in
|
|
1532
|
+
let [o3, r2, a3] = N2(e2, i3, s3);
|
|
1533
|
+
if (e2 in S2) {
|
|
1534
1534
|
const t4 = (t5) => function(e3) {
|
|
1535
1535
|
if (!e3.relatedTarget || e3.relatedTarget !== e3.delegateTarget && !e3.delegateTarget.contains(e3.relatedTarget)) return t5.call(this, e3);
|
|
1536
1536
|
};
|
|
1537
1537
|
r2 = t4(r2);
|
|
1538
1538
|
}
|
|
1539
|
-
const l3 =
|
|
1539
|
+
const l3 = I2(t3), c3 = l3[a3] || (l3[a3] = {}), h3 = D2(c3, r2, o3 ? i3 : null);
|
|
1540
1540
|
if (h3) return void (h3.oneOff = h3.oneOff && n3);
|
|
1541
|
-
const d3 =
|
|
1541
|
+
const d3 = O2(r2, e2.replace(E2, "")), u3 = o3 ? /* @__PURE__ */ function(t4, e3, i4) {
|
|
1542
1542
|
return function s4(n4) {
|
|
1543
1543
|
const o4 = t4.querySelectorAll(e3);
|
|
1544
|
-
for (let { target: r3 } = n4; r3 && r3 !== this; r3 = r3.parentNode) for (const a4 of o4) if (a4 === r3) return
|
|
1544
|
+
for (let { target: r3 } = n4; r3 && r3 !== this; r3 = r3.parentNode) for (const a4 of o4) if (a4 === r3) return z2(n4, { delegateTarget: r3 }), s4.oneOff && F2.off(t4, n4.type, e3, i4), i4.apply(r3, [n4]);
|
|
1545
1545
|
};
|
|
1546
1546
|
}(t3, i3, r2) : /* @__PURE__ */ function(t4, e3) {
|
|
1547
1547
|
return function i4(s4) {
|
|
1548
|
-
return
|
|
1548
|
+
return z2(s4, { delegateTarget: t4 }), i4.oneOff && F2.off(t4, s4.type, e3), e3.apply(t4, [s4]);
|
|
1549
1549
|
};
|
|
1550
1550
|
}(t3, r2);
|
|
1551
1551
|
u3.delegationSelector = o3 ? i3 : null, u3.callable = r2, u3.oneOff = n3, u3.uidEvent = d3, c3[d3] = u3, t3.addEventListener(a3, u3, o3);
|
|
1552
1552
|
}
|
|
1553
|
-
function
|
|
1554
|
-
const o3 =
|
|
1553
|
+
function x2(t3, e2, i3, s3, n3) {
|
|
1554
|
+
const o3 = D2(e2[i3], s3, n3);
|
|
1555
1555
|
o3 && (t3.removeEventListener(i3, o3, Boolean(n3)), delete e2[i3][o3.uidEvent]);
|
|
1556
1556
|
}
|
|
1557
|
-
function
|
|
1557
|
+
function M2(t3, e2, i3, s3) {
|
|
1558
1558
|
const n3 = e2[i3] || {};
|
|
1559
|
-
for (const [o3, r2] of Object.entries(n3)) o3.includes(s3) &&
|
|
1559
|
+
for (const [o3, r2] of Object.entries(n3)) o3.includes(s3) && x2(t3, e2, i3, r2.callable, r2.delegationSelector);
|
|
1560
1560
|
}
|
|
1561
|
-
function
|
|
1562
|
-
return t3 = t3.replace(
|
|
1561
|
+
function j2(t3) {
|
|
1562
|
+
return t3 = t3.replace(C2, ""), S2[t3] || t3;
|
|
1563
1563
|
}
|
|
1564
|
-
const
|
|
1565
|
-
|
|
1564
|
+
const F2 = { on(t3, e2, i3, s3) {
|
|
1565
|
+
P2(t3, e2, i3, s3, false);
|
|
1566
1566
|
}, one(t3, e2, i3, s3) {
|
|
1567
|
-
|
|
1567
|
+
P2(t3, e2, i3, s3, true);
|
|
1568
1568
|
}, off(t3, e2, i3, s3) {
|
|
1569
1569
|
if ("string" != typeof e2 || !t3) return;
|
|
1570
|
-
const [n3, o3, r2] =
|
|
1570
|
+
const [n3, o3, r2] = N2(e2, i3, s3), a3 = r2 !== e2, l3 = I2(t3), c3 = l3[r2] || {}, h3 = e2.startsWith(".");
|
|
1571
1571
|
if (void 0 === o3) {
|
|
1572
|
-
if (h3) for (const i4 of Object.keys(l3))
|
|
1572
|
+
if (h3) for (const i4 of Object.keys(l3)) M2(t3, l3, i4, e2.slice(1));
|
|
1573
1573
|
for (const [i4, s4] of Object.entries(c3)) {
|
|
1574
|
-
const n4 = i4.replace(
|
|
1575
|
-
a3 && !e2.includes(n4) ||
|
|
1574
|
+
const n4 = i4.replace(T2, "");
|
|
1575
|
+
a3 && !e2.includes(n4) || x2(t3, l3, r2, s4.callable, s4.delegationSelector);
|
|
1576
1576
|
}
|
|
1577
1577
|
} else {
|
|
1578
1578
|
if (!Object.keys(c3).length) return;
|
|
1579
|
-
|
|
1579
|
+
x2(t3, l3, r2, o3, n3 ? i3 : null);
|
|
1580
1580
|
}
|
|
1581
1581
|
}, trigger(t3, e2, i3) {
|
|
1582
1582
|
if ("string" != typeof e2 || !t3) return null;
|
|
1583
|
-
const s3 =
|
|
1583
|
+
const s3 = m2();
|
|
1584
1584
|
let n3 = null, o3 = true, r2 = true, a3 = false;
|
|
1585
|
-
e2 !==
|
|
1586
|
-
const l3 =
|
|
1585
|
+
e2 !== j2(e2) && s3 && (n3 = s3.Event(e2, i3), s3(t3).trigger(n3), o3 = !n3.isPropagationStopped(), r2 = !n3.isImmediatePropagationStopped(), a3 = n3.isDefaultPrevented());
|
|
1586
|
+
const l3 = z2(new Event(e2, { bubbles: o3, cancelable: true }), i3);
|
|
1587
1587
|
return a3 && l3.preventDefault(), r2 && t3.dispatchEvent(l3), l3.defaultPrevented && n3 && n3.preventDefault(), l3;
|
|
1588
1588
|
} };
|
|
1589
|
-
function
|
|
1589
|
+
function z2(t3, e2 = {}) {
|
|
1590
1590
|
for (const [i3, s3] of Object.entries(e2)) try {
|
|
1591
1591
|
t3[i3] = s3;
|
|
1592
1592
|
} catch (e3) {
|
|
@@ -1594,7 +1594,7 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
1594
1594
|
}
|
|
1595
1595
|
return t3;
|
|
1596
1596
|
}
|
|
1597
|
-
function
|
|
1597
|
+
function H2(t3) {
|
|
1598
1598
|
if ("true" === t3) return true;
|
|
1599
1599
|
if ("false" === t3) return false;
|
|
1600
1600
|
if (t3 === Number(t3).toString()) return Number(t3);
|
|
@@ -1606,23 +1606,23 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
1606
1606
|
return t3;
|
|
1607
1607
|
}
|
|
1608
1608
|
}
|
|
1609
|
-
function
|
|
1609
|
+
function B2(t3) {
|
|
1610
1610
|
return t3.replace(/[A-Z]/g, (t4) => `-${t4.toLowerCase()}`);
|
|
1611
1611
|
}
|
|
1612
|
-
const
|
|
1613
|
-
t3.setAttribute(`data-bs-${
|
|
1612
|
+
const q2 = { setDataAttribute(t3, e2, i3) {
|
|
1613
|
+
t3.setAttribute(`data-bs-${B2(e2)}`, i3);
|
|
1614
1614
|
}, removeDataAttribute(t3, e2) {
|
|
1615
|
-
t3.removeAttribute(`data-bs-${
|
|
1615
|
+
t3.removeAttribute(`data-bs-${B2(e2)}`);
|
|
1616
1616
|
}, getDataAttributes(t3) {
|
|
1617
1617
|
if (!t3) return {};
|
|
1618
1618
|
const e2 = {}, i3 = Object.keys(t3.dataset).filter((t4) => t4.startsWith("bs") && !t4.startsWith("bsConfig"));
|
|
1619
1619
|
for (const s3 of i3) {
|
|
1620
1620
|
let i4 = s3.replace(/^bs/, "");
|
|
1621
|
-
i4 = i4.charAt(0).toLowerCase() + i4.slice(1), e2[i4] =
|
|
1621
|
+
i4 = i4.charAt(0).toLowerCase() + i4.slice(1), e2[i4] = H2(t3.dataset[s3]);
|
|
1622
1622
|
}
|
|
1623
1623
|
return e2;
|
|
1624
|
-
}, getDataAttribute: (t3, e2) =>
|
|
1625
|
-
class
|
|
1624
|
+
}, getDataAttribute: (t3, e2) => H2(t3.getAttribute(`data-bs-${B2(e2)}`)) };
|
|
1625
|
+
class W2 {
|
|
1626
1626
|
static get Default() {
|
|
1627
1627
|
return {};
|
|
1628
1628
|
}
|
|
@@ -1639,39 +1639,38 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
1639
1639
|
return t3;
|
|
1640
1640
|
}
|
|
1641
1641
|
_mergeConfigObj(t3, e2) {
|
|
1642
|
-
const i3 =
|
|
1643
|
-
return { ...this.constructor.Default, ..."object" == typeof i3 ? i3 : {}, ...
|
|
1642
|
+
const i3 = c2(e2) ? q2.getDataAttribute(e2, "config") : {};
|
|
1643
|
+
return { ...this.constructor.Default, ..."object" == typeof i3 ? i3 : {}, ...c2(e2) ? q2.getDataAttributes(e2) : {}, ..."object" == typeof t3 ? t3 : {} };
|
|
1644
1644
|
}
|
|
1645
1645
|
_typeCheckConfig(t3, e2 = this.constructor.DefaultType) {
|
|
1646
|
-
for (const [
|
|
1647
|
-
const e3 = t3[
|
|
1648
|
-
if (!new RegExp(
|
|
1646
|
+
for (const [i3, s3] of Object.entries(e2)) {
|
|
1647
|
+
const e3 = t3[i3], n3 = c2(e3) ? "element" : a2(e3);
|
|
1648
|
+
if (!new RegExp(s3).test(n3)) throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i3}" provided type "${n3}" but expected type "${s3}".`);
|
|
1649
1649
|
}
|
|
1650
|
-
var i3;
|
|
1651
1650
|
}
|
|
1652
1651
|
}
|
|
1653
|
-
class
|
|
1652
|
+
class R2 extends W2 {
|
|
1654
1653
|
constructor(t3, e2) {
|
|
1655
|
-
super(), (t3 =
|
|
1654
|
+
super(), (t3 = h2(t3)) && (this._element = t3, this._config = this._getConfig(e2), n2.set(this._element, this.constructor.DATA_KEY, this));
|
|
1656
1655
|
}
|
|
1657
1656
|
dispose() {
|
|
1658
|
-
n2.remove(this._element, this.constructor.DATA_KEY),
|
|
1657
|
+
n2.remove(this._element, this.constructor.DATA_KEY), F2.off(this._element, this.constructor.EVENT_KEY);
|
|
1659
1658
|
for (const t3 of Object.getOwnPropertyNames(this)) this[t3] = null;
|
|
1660
1659
|
}
|
|
1661
1660
|
_queueCallback(t3, e2, i3 = true) {
|
|
1662
|
-
|
|
1661
|
+
w2(t3, e2, i3);
|
|
1663
1662
|
}
|
|
1664
1663
|
_getConfig(t3) {
|
|
1665
1664
|
return t3 = this._mergeConfigObj(t3, this._element), t3 = this._configAfterMerge(t3), this._typeCheckConfig(t3), t3;
|
|
1666
1665
|
}
|
|
1667
1666
|
static getInstance(t3) {
|
|
1668
|
-
return n2.get(
|
|
1667
|
+
return n2.get(h2(t3), this.DATA_KEY);
|
|
1669
1668
|
}
|
|
1670
1669
|
static getOrCreateInstance(t3, e2 = {}) {
|
|
1671
1670
|
return this.getInstance(t3) || new this(t3, "object" == typeof e2 ? e2 : null);
|
|
1672
1671
|
}
|
|
1673
1672
|
static get VERSION() {
|
|
1674
|
-
return "5.3.
|
|
1673
|
+
return "5.3.8";
|
|
1675
1674
|
}
|
|
1676
1675
|
static get DATA_KEY() {
|
|
1677
1676
|
return `bs.${this.NAME}`;
|
|
@@ -1683,7 +1682,7 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
1683
1682
|
return `${t3}${this.EVENT_KEY}`;
|
|
1684
1683
|
}
|
|
1685
1684
|
}
|
|
1686
|
-
const
|
|
1685
|
+
const K2 = (t3) => {
|
|
1687
1686
|
let e2 = t3.getAttribute("data-bs-target");
|
|
1688
1687
|
if (!e2 || "#" === e2) {
|
|
1689
1688
|
let i3 = t3.getAttribute("href");
|
|
@@ -1691,7 +1690,7 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
1691
1690
|
i3.includes("#") && !i3.startsWith("#") && (i3 = `#${i3.split("#")[1]}`), e2 = i3 && "#" !== i3 ? i3.trim() : null;
|
|
1692
1691
|
}
|
|
1693
1692
|
return e2 ? e2.split(",").map((t4) => r(t4)).join(",") : null;
|
|
1694
|
-
},
|
|
1693
|
+
}, V2 = { find: (t3, e2 = document.documentElement) => [].concat(...Element.prototype.querySelectorAll.call(e2, t3)), findOne: (t3, e2 = document.documentElement) => Element.prototype.querySelector.call(e2, t3), children: (t3, e2) => [].concat(...t3.children).filter((t4) => t4.matches(e2)), parents(t3, e2) {
|
|
1695
1694
|
const i3 = [];
|
|
1696
1695
|
let s3 = t3.parentNode.closest(e2);
|
|
1697
1696
|
for (; s3; ) i3.push(s3), s3 = s3.parentNode.closest(e2);
|
|
@@ -1712,40 +1711,40 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
1712
1711
|
return [];
|
|
1713
1712
|
}, focusableChildren(t3) {
|
|
1714
1713
|
const e2 = ["a", "button", "input", "textarea", "select", "details", "[tabindex]", '[contenteditable="true"]'].map((t4) => `${t4}:not([tabindex^="-"])`).join(",");
|
|
1715
|
-
return this.find(e2, t3).filter((t4) => !
|
|
1714
|
+
return this.find(e2, t3).filter((t4) => !u2(t4) && d2(t4));
|
|
1716
1715
|
}, getSelectorFromElement(t3) {
|
|
1717
|
-
const e2 =
|
|
1718
|
-
return e2 &&
|
|
1716
|
+
const e2 = K2(t3);
|
|
1717
|
+
return e2 && V2.findOne(e2) ? e2 : null;
|
|
1719
1718
|
}, getElementFromSelector(t3) {
|
|
1720
|
-
const e2 =
|
|
1721
|
-
return e2 ?
|
|
1719
|
+
const e2 = K2(t3);
|
|
1720
|
+
return e2 ? V2.findOne(e2) : null;
|
|
1722
1721
|
}, getMultipleElementsFromSelector(t3) {
|
|
1723
|
-
const e2 =
|
|
1724
|
-
return e2 ?
|
|
1725
|
-
} },
|
|
1722
|
+
const e2 = K2(t3);
|
|
1723
|
+
return e2 ? V2.find(e2) : [];
|
|
1724
|
+
} }, Q2 = (t3, e2 = "hide") => {
|
|
1726
1725
|
const i3 = `click.dismiss${t3.EVENT_KEY}`, s3 = t3.NAME;
|
|
1727
|
-
|
|
1728
|
-
if (["A", "AREA"].includes(this.tagName) && i4.preventDefault(),
|
|
1729
|
-
const n3 =
|
|
1726
|
+
F2.on(document, i3, `[data-bs-dismiss="${s3}"]`, function(i4) {
|
|
1727
|
+
if (["A", "AREA"].includes(this.tagName) && i4.preventDefault(), u2(this)) return;
|
|
1728
|
+
const n3 = V2.getElementFromSelector(this) || this.closest(`.${s3}`);
|
|
1730
1729
|
t3.getOrCreateInstance(n3)[e2]();
|
|
1731
1730
|
});
|
|
1732
|
-
},
|
|
1733
|
-
class
|
|
1731
|
+
}, X2 = ".bs.alert", Y2 = `close${X2}`, U2 = `closed${X2}`;
|
|
1732
|
+
class G2 extends R2 {
|
|
1734
1733
|
static get NAME() {
|
|
1735
1734
|
return "alert";
|
|
1736
1735
|
}
|
|
1737
1736
|
close() {
|
|
1738
|
-
if (
|
|
1737
|
+
if (F2.trigger(this._element, Y2).defaultPrevented) return;
|
|
1739
1738
|
this._element.classList.remove("show");
|
|
1740
1739
|
const t3 = this._element.classList.contains("fade");
|
|
1741
1740
|
this._queueCallback(() => this._destroyElement(), this._element, t3);
|
|
1742
1741
|
}
|
|
1743
1742
|
_destroyElement() {
|
|
1744
|
-
this._element.remove(),
|
|
1743
|
+
this._element.remove(), F2.trigger(this._element, U2), this.dispose();
|
|
1745
1744
|
}
|
|
1746
1745
|
static jQueryInterface(t3) {
|
|
1747
1746
|
return this.each(function() {
|
|
1748
|
-
const e2 =
|
|
1747
|
+
const e2 = G2.getOrCreateInstance(this);
|
|
1749
1748
|
if ("string" == typeof t3) {
|
|
1750
1749
|
if (void 0 === e2[t3] || t3.startsWith("_") || "constructor" === t3) throw new TypeError(`No method named "${t3}"`);
|
|
1751
1750
|
e2[t3](this);
|
|
@@ -1753,9 +1752,9 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
1753
1752
|
});
|
|
1754
1753
|
}
|
|
1755
1754
|
}
|
|
1756
|
-
|
|
1757
|
-
const
|
|
1758
|
-
class
|
|
1755
|
+
Q2(G2, "close"), v2(G2);
|
|
1756
|
+
const J2 = '[data-bs-toggle="button"]';
|
|
1757
|
+
class Z2 extends R2 {
|
|
1759
1758
|
static get NAME() {
|
|
1760
1759
|
return "button";
|
|
1761
1760
|
}
|
|
@@ -1764,38 +1763,38 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
1764
1763
|
}
|
|
1765
1764
|
static jQueryInterface(t3) {
|
|
1766
1765
|
return this.each(function() {
|
|
1767
|
-
const e2 =
|
|
1766
|
+
const e2 = Z2.getOrCreateInstance(this);
|
|
1768
1767
|
"toggle" === t3 && e2[t3]();
|
|
1769
1768
|
});
|
|
1770
1769
|
}
|
|
1771
1770
|
}
|
|
1772
|
-
|
|
1771
|
+
F2.on(document, "click.bs.button.data-api", J2, (t3) => {
|
|
1773
1772
|
t3.preventDefault();
|
|
1774
|
-
const e2 = t3.target.closest(
|
|
1775
|
-
|
|
1776
|
-
}),
|
|
1777
|
-
const
|
|
1778
|
-
class
|
|
1773
|
+
const e2 = t3.target.closest(J2);
|
|
1774
|
+
Z2.getOrCreateInstance(e2).toggle();
|
|
1775
|
+
}), v2(Z2);
|
|
1776
|
+
const tt2 = ".bs.swipe", et2 = `touchstart${tt2}`, it2 = `touchmove${tt2}`, st2 = `touchend${tt2}`, nt2 = `pointerdown${tt2}`, ot2 = `pointerup${tt2}`, rt2 = { endCallback: null, leftCallback: null, rightCallback: null }, at2 = { endCallback: "(function|null)", leftCallback: "(function|null)", rightCallback: "(function|null)" };
|
|
1777
|
+
class lt2 extends W2 {
|
|
1779
1778
|
constructor(t3, e2) {
|
|
1780
|
-
super(), this._element = t3, t3 &&
|
|
1779
|
+
super(), this._element = t3, t3 && lt2.isSupported() && (this._config = this._getConfig(e2), this._deltaX = 0, this._supportPointerEvents = Boolean(window.PointerEvent), this._initEvents());
|
|
1781
1780
|
}
|
|
1782
1781
|
static get Default() {
|
|
1783
|
-
return
|
|
1782
|
+
return rt2;
|
|
1784
1783
|
}
|
|
1785
1784
|
static get DefaultType() {
|
|
1786
|
-
return
|
|
1785
|
+
return at2;
|
|
1787
1786
|
}
|
|
1788
1787
|
static get NAME() {
|
|
1789
1788
|
return "swipe";
|
|
1790
1789
|
}
|
|
1791
1790
|
dispose() {
|
|
1792
|
-
|
|
1791
|
+
F2.off(this._element, tt2);
|
|
1793
1792
|
}
|
|
1794
1793
|
_start(t3) {
|
|
1795
1794
|
this._supportPointerEvents ? this._eventIsPointerPenTouch(t3) && (this._deltaX = t3.clientX) : this._deltaX = t3.touches[0].clientX;
|
|
1796
1795
|
}
|
|
1797
1796
|
_end(t3) {
|
|
1798
|
-
this._eventIsPointerPenTouch(t3) && (this._deltaX = t3.clientX - this._deltaX), this._handleSwipe(),
|
|
1797
|
+
this._eventIsPointerPenTouch(t3) && (this._deltaX = t3.clientX - this._deltaX), this._handleSwipe(), y2(this._config.endCallback);
|
|
1799
1798
|
}
|
|
1800
1799
|
_move(t3) {
|
|
1801
1800
|
this._deltaX = t3.touches && t3.touches.length > 1 ? 0 : t3.touches[0].clientX - this._deltaX;
|
|
@@ -1804,10 +1803,10 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
1804
1803
|
const t3 = Math.abs(this._deltaX);
|
|
1805
1804
|
if (t3 <= 40) return;
|
|
1806
1805
|
const e2 = t3 / this._deltaX;
|
|
1807
|
-
this._deltaX = 0, e2 &&
|
|
1806
|
+
this._deltaX = 0, e2 && y2(e2 > 0 ? this._config.rightCallback : this._config.leftCallback);
|
|
1808
1807
|
}
|
|
1809
1808
|
_initEvents() {
|
|
1810
|
-
this._supportPointerEvents ? (
|
|
1809
|
+
this._supportPointerEvents ? (F2.on(this._element, nt2, (t3) => this._start(t3)), F2.on(this._element, ot2, (t3) => this._end(t3)), this._element.classList.add("pointer-event")) : (F2.on(this._element, et2, (t3) => this._start(t3)), F2.on(this._element, it2, (t3) => this._move(t3)), F2.on(this._element, st2, (t3) => this._end(t3)));
|
|
1811
1810
|
}
|
|
1812
1811
|
_eventIsPointerPenTouch(t3) {
|
|
1813
1812
|
return this._supportPointerEvents && ("pen" === t3.pointerType || "touch" === t3.pointerType);
|
|
@@ -1816,45 +1815,45 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
1816
1815
|
return "ontouchstart" in document.documentElement || navigator.maxTouchPoints > 0;
|
|
1817
1816
|
}
|
|
1818
1817
|
}
|
|
1819
|
-
const
|
|
1820
|
-
class
|
|
1818
|
+
const ct2 = ".bs.carousel", ht2 = ".data-api", dt2 = "ArrowLeft", ut2 = "ArrowRight", _t2 = "next", gt2 = "prev", ft2 = "left", mt2 = "right", pt2 = `slide${ct2}`, bt2 = `slid${ct2}`, vt2 = `keydown${ct2}`, yt2 = `mouseenter${ct2}`, wt2 = `mouseleave${ct2}`, At2 = `dragstart${ct2}`, Et2 = `load${ct2}${ht2}`, Ct2 = `click${ct2}${ht2}`, Tt2 = "carousel", kt2 = "active", $t2 = ".active", St2 = ".carousel-item", Lt2 = $t2 + St2, Ot2 = { [dt2]: mt2, [ut2]: ft2 }, It2 = { interval: 5e3, keyboard: true, pause: "hover", ride: false, touch: true, wrap: true }, Dt2 = { interval: "(number|boolean)", keyboard: "boolean", pause: "(string|boolean)", ride: "(boolean|string)", touch: "boolean", wrap: "boolean" };
|
|
1819
|
+
class Nt2 extends R2 {
|
|
1821
1820
|
constructor(t3, e2) {
|
|
1822
|
-
super(t3, e2), this._interval = null, this._activeElement = null, this._isSliding = false, this.touchTimeout = null, this._swipeHelper = null, this._indicatorsElement =
|
|
1821
|
+
super(t3, e2), this._interval = null, this._activeElement = null, this._isSliding = false, this.touchTimeout = null, this._swipeHelper = null, this._indicatorsElement = V2.findOne(".carousel-indicators", this._element), this._addEventListeners(), this._config.ride === Tt2 && this.cycle();
|
|
1823
1822
|
}
|
|
1824
1823
|
static get Default() {
|
|
1825
|
-
return
|
|
1824
|
+
return It2;
|
|
1826
1825
|
}
|
|
1827
1826
|
static get DefaultType() {
|
|
1828
|
-
return
|
|
1827
|
+
return Dt2;
|
|
1829
1828
|
}
|
|
1830
1829
|
static get NAME() {
|
|
1831
1830
|
return "carousel";
|
|
1832
1831
|
}
|
|
1833
1832
|
next() {
|
|
1834
|
-
this._slide(
|
|
1833
|
+
this._slide(_t2);
|
|
1835
1834
|
}
|
|
1836
1835
|
nextWhenVisible() {
|
|
1837
|
-
!document.hidden &&
|
|
1836
|
+
!document.hidden && d2(this._element) && this.next();
|
|
1838
1837
|
}
|
|
1839
1838
|
prev() {
|
|
1840
|
-
this._slide(
|
|
1839
|
+
this._slide(gt2);
|
|
1841
1840
|
}
|
|
1842
1841
|
pause() {
|
|
1843
|
-
this._isSliding &&
|
|
1842
|
+
this._isSliding && l2(this._element), this._clearInterval();
|
|
1844
1843
|
}
|
|
1845
1844
|
cycle() {
|
|
1846
1845
|
this._clearInterval(), this._updateInterval(), this._interval = setInterval(() => this.nextWhenVisible(), this._config.interval);
|
|
1847
1846
|
}
|
|
1848
1847
|
_maybeEnableCycle() {
|
|
1849
|
-
this._config.ride && (this._isSliding ?
|
|
1848
|
+
this._config.ride && (this._isSliding ? F2.one(this._element, bt2, () => this.cycle()) : this.cycle());
|
|
1850
1849
|
}
|
|
1851
1850
|
to(t3) {
|
|
1852
1851
|
const e2 = this._getItems();
|
|
1853
1852
|
if (t3 > e2.length - 1 || t3 < 0) return;
|
|
1854
|
-
if (this._isSliding) return void
|
|
1853
|
+
if (this._isSliding) return void F2.one(this._element, bt2, () => this.to(t3));
|
|
1855
1854
|
const i3 = this._getItemIndex(this._getActive());
|
|
1856
1855
|
if (i3 === t3) return;
|
|
1857
|
-
const s3 = t3 > i3 ?
|
|
1856
|
+
const s3 = t3 > i3 ? _t2 : gt2;
|
|
1858
1857
|
this._slide(s3, e2[t3]);
|
|
1859
1858
|
}
|
|
1860
1859
|
dispose() {
|
|
@@ -1864,18 +1863,18 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
1864
1863
|
return t3.defaultInterval = t3.interval, t3;
|
|
1865
1864
|
}
|
|
1866
1865
|
_addEventListeners() {
|
|
1867
|
-
this._config.keyboard &&
|
|
1866
|
+
this._config.keyboard && F2.on(this._element, vt2, (t3) => this._keydown(t3)), "hover" === this._config.pause && (F2.on(this._element, yt2, () => this.pause()), F2.on(this._element, wt2, () => this._maybeEnableCycle())), this._config.touch && lt2.isSupported() && this._addTouchEventListeners();
|
|
1868
1867
|
}
|
|
1869
1868
|
_addTouchEventListeners() {
|
|
1870
|
-
for (const t4 of
|
|
1871
|
-
const t3 = { leftCallback: () => this._slide(this._directionToOrder(
|
|
1869
|
+
for (const t4 of V2.find(".carousel-item img", this._element)) F2.on(t4, At2, (t5) => t5.preventDefault());
|
|
1870
|
+
const t3 = { leftCallback: () => this._slide(this._directionToOrder(ft2)), rightCallback: () => this._slide(this._directionToOrder(mt2)), endCallback: () => {
|
|
1872
1871
|
"hover" === this._config.pause && (this.pause(), this.touchTimeout && clearTimeout(this.touchTimeout), this.touchTimeout = setTimeout(() => this._maybeEnableCycle(), 500 + this._config.interval));
|
|
1873
1872
|
} };
|
|
1874
|
-
this._swipeHelper = new
|
|
1873
|
+
this._swipeHelper = new lt2(this._element, t3);
|
|
1875
1874
|
}
|
|
1876
1875
|
_keydown(t3) {
|
|
1877
1876
|
if (/input|textarea/i.test(t3.target.tagName)) return;
|
|
1878
|
-
const e2 =
|
|
1877
|
+
const e2 = Ot2[t3.key];
|
|
1879
1878
|
e2 && (t3.preventDefault(), this._slide(this._directionToOrder(e2)));
|
|
1880
1879
|
}
|
|
1881
1880
|
_getItemIndex(t3) {
|
|
@@ -1883,10 +1882,10 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
1883
1882
|
}
|
|
1884
1883
|
_setActiveIndicatorElement(t3) {
|
|
1885
1884
|
if (!this._indicatorsElement) return;
|
|
1886
|
-
const e2 =
|
|
1887
|
-
e2.classList.remove(
|
|
1888
|
-
const i3 =
|
|
1889
|
-
i3 && (i3.classList.add(
|
|
1885
|
+
const e2 = V2.findOne($t2, this._indicatorsElement);
|
|
1886
|
+
e2.classList.remove(kt2), e2.removeAttribute("aria-current");
|
|
1887
|
+
const i3 = V2.findOne(`[data-bs-slide-to="${t3}"]`, this._indicatorsElement);
|
|
1888
|
+
i3 && (i3.classList.add(kt2), i3.setAttribute("aria-current", "true"));
|
|
1890
1889
|
}
|
|
1891
1890
|
_updateInterval() {
|
|
1892
1891
|
const t3 = this._activeElement || this._getActive();
|
|
@@ -1896,39 +1895,39 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
1896
1895
|
}
|
|
1897
1896
|
_slide(t3, e2 = null) {
|
|
1898
1897
|
if (this._isSliding) return;
|
|
1899
|
-
const i3 = this._getActive(), s3 = t3 ===
|
|
1898
|
+
const i3 = this._getActive(), s3 = t3 === _t2, n3 = e2 || A2(this._getItems(), i3, s3, this._config.wrap);
|
|
1900
1899
|
if (n3 === i3) return;
|
|
1901
|
-
const o3 = this._getItemIndex(n3), r2 = (e3) =>
|
|
1902
|
-
if (r2(
|
|
1900
|
+
const o3 = this._getItemIndex(n3), r2 = (e3) => F2.trigger(this._element, e3, { relatedTarget: n3, direction: this._orderToDirection(t3), from: this._getItemIndex(i3), to: o3 });
|
|
1901
|
+
if (r2(pt2).defaultPrevented) return;
|
|
1903
1902
|
if (!i3 || !n3) return;
|
|
1904
1903
|
const a3 = Boolean(this._interval);
|
|
1905
1904
|
this.pause(), this._isSliding = true, this._setActiveIndicatorElement(o3), this._activeElement = n3;
|
|
1906
1905
|
const l3 = s3 ? "carousel-item-start" : "carousel-item-end", c3 = s3 ? "carousel-item-next" : "carousel-item-prev";
|
|
1907
|
-
n3.classList.add(c3),
|
|
1908
|
-
n3.classList.remove(l3, c3), n3.classList.add(
|
|
1906
|
+
n3.classList.add(c3), f2(n3), i3.classList.add(l3), n3.classList.add(l3), this._queueCallback(() => {
|
|
1907
|
+
n3.classList.remove(l3, c3), n3.classList.add(kt2), i3.classList.remove(kt2, c3, l3), this._isSliding = false, r2(bt2);
|
|
1909
1908
|
}, i3, this._isAnimated()), a3 && this.cycle();
|
|
1910
1909
|
}
|
|
1911
1910
|
_isAnimated() {
|
|
1912
1911
|
return this._element.classList.contains("slide");
|
|
1913
1912
|
}
|
|
1914
1913
|
_getActive() {
|
|
1915
|
-
return
|
|
1914
|
+
return V2.findOne(Lt2, this._element);
|
|
1916
1915
|
}
|
|
1917
1916
|
_getItems() {
|
|
1918
|
-
return
|
|
1917
|
+
return V2.find(St2, this._element);
|
|
1919
1918
|
}
|
|
1920
1919
|
_clearInterval() {
|
|
1921
1920
|
this._interval && (clearInterval(this._interval), this._interval = null);
|
|
1922
1921
|
}
|
|
1923
1922
|
_directionToOrder(t3) {
|
|
1924
|
-
return
|
|
1923
|
+
return b2() ? t3 === ft2 ? gt2 : _t2 : t3 === ft2 ? _t2 : gt2;
|
|
1925
1924
|
}
|
|
1926
1925
|
_orderToDirection(t3) {
|
|
1927
|
-
return
|
|
1926
|
+
return b2() ? t3 === gt2 ? ft2 : mt2 : t3 === gt2 ? mt2 : ft2;
|
|
1928
1927
|
}
|
|
1929
1928
|
static jQueryInterface(t3) {
|
|
1930
1929
|
return this.each(function() {
|
|
1931
|
-
const e2 =
|
|
1930
|
+
const e2 = Nt2.getOrCreateInstance(this, t3);
|
|
1932
1931
|
if ("number" != typeof t3) {
|
|
1933
1932
|
if ("string" == typeof t3) {
|
|
1934
1933
|
if (void 0 === e2[t3] || t3.startsWith("_") || "constructor" === t3) throw new TypeError(`No method named "${t3}"`);
|
|
@@ -1938,32 +1937,32 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
1938
1937
|
});
|
|
1939
1938
|
}
|
|
1940
1939
|
}
|
|
1941
|
-
|
|
1942
|
-
const e2 =
|
|
1943
|
-
if (!e2 || !e2.classList.contains(
|
|
1940
|
+
F2.on(document, Ct2, "[data-bs-slide], [data-bs-slide-to]", function(t3) {
|
|
1941
|
+
const e2 = V2.getElementFromSelector(this);
|
|
1942
|
+
if (!e2 || !e2.classList.contains(Tt2)) return;
|
|
1944
1943
|
t3.preventDefault();
|
|
1945
|
-
const i3 =
|
|
1946
|
-
return s3 ? (i3.to(s3), void i3._maybeEnableCycle()) : "next" ===
|
|
1947
|
-
}),
|
|
1948
|
-
const t3 =
|
|
1949
|
-
for (const e2 of t3)
|
|
1950
|
-
}),
|
|
1951
|
-
const
|
|
1952
|
-
class
|
|
1944
|
+
const i3 = Nt2.getOrCreateInstance(e2), s3 = this.getAttribute("data-bs-slide-to");
|
|
1945
|
+
return s3 ? (i3.to(s3), void i3._maybeEnableCycle()) : "next" === q2.getDataAttribute(this, "slide") ? (i3.next(), void i3._maybeEnableCycle()) : (i3.prev(), void i3._maybeEnableCycle());
|
|
1946
|
+
}), F2.on(window, Et2, () => {
|
|
1947
|
+
const t3 = V2.find('[data-bs-ride="carousel"]');
|
|
1948
|
+
for (const e2 of t3) Nt2.getOrCreateInstance(e2);
|
|
1949
|
+
}), v2(Nt2);
|
|
1950
|
+
const Pt2 = ".bs.collapse", xt2 = `show${Pt2}`, Mt2 = `shown${Pt2}`, jt2 = `hide${Pt2}`, Ft2 = `hidden${Pt2}`, zt2 = `click${Pt2}.data-api`, Ht2 = "show", Bt2 = "collapse", qt2 = "collapsing", Wt2 = `:scope .${Bt2} .${Bt2}`, Rt2 = '[data-bs-toggle="collapse"]', Kt2 = { parent: null, toggle: true }, Vt2 = { parent: "(null|element)", toggle: "boolean" };
|
|
1951
|
+
class Qt2 extends R2 {
|
|
1953
1952
|
constructor(t3, e2) {
|
|
1954
1953
|
super(t3, e2), this._isTransitioning = false, this._triggerArray = [];
|
|
1955
|
-
const i3 =
|
|
1954
|
+
const i3 = V2.find(Rt2);
|
|
1956
1955
|
for (const t4 of i3) {
|
|
1957
|
-
const e3 =
|
|
1956
|
+
const e3 = V2.getSelectorFromElement(t4), i4 = V2.find(e3).filter((t5) => t5 === this._element);
|
|
1958
1957
|
null !== e3 && i4.length && this._triggerArray.push(t4);
|
|
1959
1958
|
}
|
|
1960
1959
|
this._initializeChildren(), this._config.parent || this._addAriaAndCollapsedClass(this._triggerArray, this._isShown()), this._config.toggle && this.toggle();
|
|
1961
1960
|
}
|
|
1962
1961
|
static get Default() {
|
|
1963
|
-
return
|
|
1962
|
+
return Kt2;
|
|
1964
1963
|
}
|
|
1965
1964
|
static get DefaultType() {
|
|
1966
|
-
return
|
|
1965
|
+
return Vt2;
|
|
1967
1966
|
}
|
|
1968
1967
|
static get NAME() {
|
|
1969
1968
|
return "collapse";
|
|
@@ -1974,49 +1973,49 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
1974
1973
|
show() {
|
|
1975
1974
|
if (this._isTransitioning || this._isShown()) return;
|
|
1976
1975
|
let t3 = [];
|
|
1977
|
-
if (this._config.parent && (t3 = this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((t4) => t4 !== this._element).map((t4) =>
|
|
1978
|
-
if (
|
|
1976
|
+
if (this._config.parent && (t3 = this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((t4) => t4 !== this._element).map((t4) => Qt2.getOrCreateInstance(t4, { toggle: false }))), t3.length && t3[0]._isTransitioning) return;
|
|
1977
|
+
if (F2.trigger(this._element, xt2).defaultPrevented) return;
|
|
1979
1978
|
for (const e3 of t3) e3.hide();
|
|
1980
1979
|
const e2 = this._getDimension();
|
|
1981
|
-
this._element.classList.remove(
|
|
1980
|
+
this._element.classList.remove(Bt2), this._element.classList.add(qt2), this._element.style[e2] = 0, this._addAriaAndCollapsedClass(this._triggerArray, true), this._isTransitioning = true;
|
|
1982
1981
|
const i3 = `scroll${e2[0].toUpperCase() + e2.slice(1)}`;
|
|
1983
1982
|
this._queueCallback(() => {
|
|
1984
|
-
this._isTransitioning = false, this._element.classList.remove(
|
|
1983
|
+
this._isTransitioning = false, this._element.classList.remove(qt2), this._element.classList.add(Bt2, Ht2), this._element.style[e2] = "", F2.trigger(this._element, Mt2);
|
|
1985
1984
|
}, this._element, true), this._element.style[e2] = `${this._element[i3]}px`;
|
|
1986
1985
|
}
|
|
1987
1986
|
hide() {
|
|
1988
1987
|
if (this._isTransitioning || !this._isShown()) return;
|
|
1989
|
-
if (
|
|
1988
|
+
if (F2.trigger(this._element, jt2).defaultPrevented) return;
|
|
1990
1989
|
const t3 = this._getDimension();
|
|
1991
|
-
this._element.style[t3] = `${this._element.getBoundingClientRect()[t3]}px`,
|
|
1990
|
+
this._element.style[t3] = `${this._element.getBoundingClientRect()[t3]}px`, f2(this._element), this._element.classList.add(qt2), this._element.classList.remove(Bt2, Ht2);
|
|
1992
1991
|
for (const t4 of this._triggerArray) {
|
|
1993
|
-
const e2 =
|
|
1992
|
+
const e2 = V2.getElementFromSelector(t4);
|
|
1994
1993
|
e2 && !this._isShown(e2) && this._addAriaAndCollapsedClass([t4], false);
|
|
1995
1994
|
}
|
|
1996
1995
|
this._isTransitioning = true, this._element.style[t3] = "", this._queueCallback(() => {
|
|
1997
|
-
this._isTransitioning = false, this._element.classList.remove(
|
|
1996
|
+
this._isTransitioning = false, this._element.classList.remove(qt2), this._element.classList.add(Bt2), F2.trigger(this._element, Ft2);
|
|
1998
1997
|
}, this._element, true);
|
|
1999
1998
|
}
|
|
2000
1999
|
_isShown(t3 = this._element) {
|
|
2001
|
-
return t3.classList.contains(
|
|
2000
|
+
return t3.classList.contains(Ht2);
|
|
2002
2001
|
}
|
|
2003
2002
|
_configAfterMerge(t3) {
|
|
2004
|
-
return t3.toggle = Boolean(t3.toggle), t3.parent =
|
|
2003
|
+
return t3.toggle = Boolean(t3.toggle), t3.parent = h2(t3.parent), t3;
|
|
2005
2004
|
}
|
|
2006
2005
|
_getDimension() {
|
|
2007
2006
|
return this._element.classList.contains("collapse-horizontal") ? "width" : "height";
|
|
2008
2007
|
}
|
|
2009
2008
|
_initializeChildren() {
|
|
2010
2009
|
if (!this._config.parent) return;
|
|
2011
|
-
const t3 = this._getFirstLevelChildren(
|
|
2010
|
+
const t3 = this._getFirstLevelChildren(Rt2);
|
|
2012
2011
|
for (const e2 of t3) {
|
|
2013
|
-
const t4 =
|
|
2012
|
+
const t4 = V2.getElementFromSelector(e2);
|
|
2014
2013
|
t4 && this._addAriaAndCollapsedClass([e2], this._isShown(t4));
|
|
2015
2014
|
}
|
|
2016
2015
|
}
|
|
2017
2016
|
_getFirstLevelChildren(t3) {
|
|
2018
|
-
const e2 =
|
|
2019
|
-
return
|
|
2017
|
+
const e2 = V2.find(Wt2, this._config.parent);
|
|
2018
|
+
return V2.find(t3, this._config.parent).filter((t4) => !e2.includes(t4));
|
|
2020
2019
|
}
|
|
2021
2020
|
_addAriaAndCollapsedClass(t3, e2) {
|
|
2022
2021
|
if (t3.length) for (const i3 of t3) i3.classList.toggle("collapsed", !e2), i3.setAttribute("aria-expanded", e2);
|
|
@@ -2024,7 +2023,7 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2024
2023
|
static jQueryInterface(t3) {
|
|
2025
2024
|
const e2 = {};
|
|
2026
2025
|
return "string" == typeof t3 && /show|hide/.test(t3) && (e2.toggle = false), this.each(function() {
|
|
2027
|
-
const i3 =
|
|
2026
|
+
const i3 = Qt2.getOrCreateInstance(this, e2);
|
|
2028
2027
|
if ("string" == typeof t3) {
|
|
2029
2028
|
if (void 0 === i3[t3]) throw new TypeError(`No method named "${t3}"`);
|
|
2030
2029
|
i3[t3]();
|
|
@@ -2032,37 +2031,37 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2032
2031
|
});
|
|
2033
2032
|
}
|
|
2034
2033
|
}
|
|
2035
|
-
|
|
2034
|
+
F2.on(document, zt2, Rt2, function(t3) {
|
|
2036
2035
|
("A" === t3.target.tagName || t3.delegateTarget && "A" === t3.delegateTarget.tagName) && t3.preventDefault();
|
|
2037
|
-
for (const t4 of
|
|
2038
|
-
}),
|
|
2039
|
-
const
|
|
2040
|
-
class
|
|
2036
|
+
for (const t4 of V2.getMultipleElementsFromSelector(this)) Qt2.getOrCreateInstance(t4, { toggle: false }).toggle();
|
|
2037
|
+
}), v2(Qt2);
|
|
2038
|
+
const Xt2 = "dropdown", Yt2 = ".bs.dropdown", Ut2 = ".data-api", Gt2 = "ArrowUp", Jt2 = "ArrowDown", Zt2 = `hide${Yt2}`, te2 = `hidden${Yt2}`, ee2 = `show${Yt2}`, ie2 = `shown${Yt2}`, se2 = `click${Yt2}${Ut2}`, ne2 = `keydown${Yt2}${Ut2}`, oe2 = `keyup${Yt2}${Ut2}`, re2 = "show", ae2 = '[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)', le2 = `${ae2}.${re2}`, ce2 = ".dropdown-menu", he2 = b2() ? "top-end" : "top-start", de2 = b2() ? "top-start" : "top-end", ue2 = b2() ? "bottom-end" : "bottom-start", _e2 = b2() ? "bottom-start" : "bottom-end", ge2 = b2() ? "left-start" : "right-start", fe2 = b2() ? "right-start" : "left-start", me2 = { autoClose: true, boundary: "clippingParents", display: "dynamic", offset: [0, 2], popperConfig: null, reference: "toggle" }, pe2 = { autoClose: "(boolean|string)", boundary: "(string|element)", display: "string", offset: "(array|string|function)", popperConfig: "(null|object|function)", reference: "(string|element|object)" };
|
|
2039
|
+
class be2 extends R2 {
|
|
2041
2040
|
constructor(t3, e2) {
|
|
2042
|
-
super(t3, e2), this._popper = null, this._parent = this._element.parentNode, this._menu =
|
|
2041
|
+
super(t3, e2), this._popper = null, this._parent = this._element.parentNode, this._menu = V2.next(this._element, ce2)[0] || V2.prev(this._element, ce2)[0] || V2.findOne(ce2, this._parent), this._inNavbar = this._detectNavbar();
|
|
2043
2042
|
}
|
|
2044
2043
|
static get Default() {
|
|
2045
|
-
return
|
|
2044
|
+
return me2;
|
|
2046
2045
|
}
|
|
2047
2046
|
static get DefaultType() {
|
|
2048
|
-
return
|
|
2047
|
+
return pe2;
|
|
2049
2048
|
}
|
|
2050
2049
|
static get NAME() {
|
|
2051
|
-
return
|
|
2050
|
+
return Xt2;
|
|
2052
2051
|
}
|
|
2053
2052
|
toggle() {
|
|
2054
2053
|
return this._isShown() ? this.hide() : this.show();
|
|
2055
2054
|
}
|
|
2056
2055
|
show() {
|
|
2057
|
-
if (
|
|
2056
|
+
if (u2(this._element) || this._isShown()) return;
|
|
2058
2057
|
const t3 = { relatedTarget: this._element };
|
|
2059
|
-
if (!
|
|
2060
|
-
if (this._createPopper(), "ontouchstart" in document.documentElement && !this._parent.closest(".navbar-nav")) for (const t4 of [].concat(...document.body.children))
|
|
2061
|
-
this._element.focus(), this._element.setAttribute("aria-expanded", true), this._menu.classList.add(
|
|
2058
|
+
if (!F2.trigger(this._element, ee2, t3).defaultPrevented) {
|
|
2059
|
+
if (this._createPopper(), "ontouchstart" in document.documentElement && !this._parent.closest(".navbar-nav")) for (const t4 of [].concat(...document.body.children)) F2.on(t4, "mouseover", g2);
|
|
2060
|
+
this._element.focus(), this._element.setAttribute("aria-expanded", true), this._menu.classList.add(re2), this._element.classList.add(re2), F2.trigger(this._element, ie2, t3);
|
|
2062
2061
|
}
|
|
2063
2062
|
}
|
|
2064
2063
|
hide() {
|
|
2065
|
-
if (
|
|
2064
|
+
if (u2(this._element) || !this._isShown()) return;
|
|
2066
2065
|
const t3 = { relatedTarget: this._element };
|
|
2067
2066
|
this._completeHide(t3);
|
|
2068
2067
|
}
|
|
@@ -2073,33 +2072,33 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2073
2072
|
this._inNavbar = this._detectNavbar(), this._popper && this._popper.update();
|
|
2074
2073
|
}
|
|
2075
2074
|
_completeHide(t3) {
|
|
2076
|
-
if (!
|
|
2077
|
-
if ("ontouchstart" in document.documentElement) for (const t4 of [].concat(...document.body.children))
|
|
2078
|
-
this._popper && this._popper.destroy(), this._menu.classList.remove(
|
|
2075
|
+
if (!F2.trigger(this._element, Zt2, t3).defaultPrevented) {
|
|
2076
|
+
if ("ontouchstart" in document.documentElement) for (const t4 of [].concat(...document.body.children)) F2.off(t4, "mouseover", g2);
|
|
2077
|
+
this._popper && this._popper.destroy(), this._menu.classList.remove(re2), this._element.classList.remove(re2), this._element.setAttribute("aria-expanded", "false"), q2.removeDataAttribute(this._menu, "popper"), F2.trigger(this._element, te2, t3);
|
|
2079
2078
|
}
|
|
2080
2079
|
}
|
|
2081
2080
|
_getConfig(t3) {
|
|
2082
|
-
if ("object" == typeof (t3 = super._getConfig(t3)).reference && !
|
|
2081
|
+
if ("object" == typeof (t3 = super._getConfig(t3)).reference && !c2(t3.reference) && "function" != typeof t3.reference.getBoundingClientRect) throw new TypeError(`${Xt2.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);
|
|
2083
2082
|
return t3;
|
|
2084
2083
|
}
|
|
2085
2084
|
_createPopper() {
|
|
2086
2085
|
if (void 0 === i2) throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");
|
|
2087
2086
|
let t3 = this._element;
|
|
2088
|
-
"parent" === this._config.reference ? t3 = this._parent :
|
|
2087
|
+
"parent" === this._config.reference ? t3 = this._parent : c2(this._config.reference) ? t3 = h2(this._config.reference) : "object" == typeof this._config.reference && (t3 = this._config.reference);
|
|
2089
2088
|
const e2 = this._getPopperConfig();
|
|
2090
2089
|
this._popper = i2.createPopper(t3, this._menu, e2);
|
|
2091
2090
|
}
|
|
2092
2091
|
_isShown() {
|
|
2093
|
-
return this._menu.classList.contains(
|
|
2092
|
+
return this._menu.classList.contains(re2);
|
|
2094
2093
|
}
|
|
2095
2094
|
_getPlacement() {
|
|
2096
2095
|
const t3 = this._parent;
|
|
2097
|
-
if (t3.classList.contains("dropend")) return
|
|
2098
|
-
if (t3.classList.contains("dropstart")) return
|
|
2096
|
+
if (t3.classList.contains("dropend")) return ge2;
|
|
2097
|
+
if (t3.classList.contains("dropstart")) return fe2;
|
|
2099
2098
|
if (t3.classList.contains("dropup-center")) return "top";
|
|
2100
2099
|
if (t3.classList.contains("dropdown-center")) return "bottom";
|
|
2101
2100
|
const e2 = "end" === getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();
|
|
2102
|
-
return t3.classList.contains("dropup") ? e2 ?
|
|
2101
|
+
return t3.classList.contains("dropup") ? e2 ? de2 : he2 : e2 ? _e2 : ue2;
|
|
2103
2102
|
}
|
|
2104
2103
|
_detectNavbar() {
|
|
2105
2104
|
return null !== this._element.closest(".navbar");
|
|
@@ -2110,15 +2109,15 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2110
2109
|
}
|
|
2111
2110
|
_getPopperConfig() {
|
|
2112
2111
|
const t3 = { placement: this._getPlacement(), modifiers: [{ name: "preventOverflow", options: { boundary: this._config.boundary } }, { name: "offset", options: { offset: this._getOffset() } }] };
|
|
2113
|
-
return (this._inNavbar || "static" === this._config.display) && (
|
|
2112
|
+
return (this._inNavbar || "static" === this._config.display) && (q2.setDataAttribute(this._menu, "popper", "static"), t3.modifiers = [{ name: "applyStyles", enabled: false }]), { ...t3, ...y2(this._config.popperConfig, [void 0, t3]) };
|
|
2114
2113
|
}
|
|
2115
2114
|
_selectMenuItem({ key: t3, target: e2 }) {
|
|
2116
|
-
const i3 =
|
|
2117
|
-
i3.length &&
|
|
2115
|
+
const i3 = V2.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)", this._menu).filter((t4) => d2(t4));
|
|
2116
|
+
i3.length && A2(i3, e2, t3 === Jt2, !i3.includes(e2)).focus();
|
|
2118
2117
|
}
|
|
2119
2118
|
static jQueryInterface(t3) {
|
|
2120
2119
|
return this.each(function() {
|
|
2121
|
-
const e2 =
|
|
2120
|
+
const e2 = be2.getOrCreateInstance(this, t3);
|
|
2122
2121
|
if ("string" == typeof t3) {
|
|
2123
2122
|
if (void 0 === e2[t3]) throw new TypeError(`No method named "${t3}"`);
|
|
2124
2123
|
e2[t3]();
|
|
@@ -2127,9 +2126,9 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2127
2126
|
}
|
|
2128
2127
|
static clearMenus(t3) {
|
|
2129
2128
|
if (2 === t3.button || "keyup" === t3.type && "Tab" !== t3.key) return;
|
|
2130
|
-
const e2 =
|
|
2129
|
+
const e2 = V2.find(le2);
|
|
2131
2130
|
for (const i3 of e2) {
|
|
2132
|
-
const e3 =
|
|
2131
|
+
const e3 = be2.getInstance(i3);
|
|
2133
2132
|
if (!e3 || false === e3._config.autoClose) continue;
|
|
2134
2133
|
const s3 = t3.composedPath(), n3 = s3.includes(e3._menu);
|
|
2135
2134
|
if (s3.includes(e3._element) || "inside" === e3._config.autoClose && !n3 || "outside" === e3._config.autoClose && n3) continue;
|
|
@@ -2139,47 +2138,47 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2139
2138
|
}
|
|
2140
2139
|
}
|
|
2141
2140
|
static dataApiKeydownHandler(t3) {
|
|
2142
|
-
const e2 = /input|textarea/i.test(t3.target.tagName), i3 = "Escape" === t3.key, s3 = [
|
|
2141
|
+
const e2 = /input|textarea/i.test(t3.target.tagName), i3 = "Escape" === t3.key, s3 = [Gt2, Jt2].includes(t3.key);
|
|
2143
2142
|
if (!s3 && !i3) return;
|
|
2144
2143
|
if (e2 && !i3) return;
|
|
2145
2144
|
t3.preventDefault();
|
|
2146
|
-
const n3 = this.matches(
|
|
2145
|
+
const n3 = this.matches(ae2) ? this : V2.prev(this, ae2)[0] || V2.next(this, ae2)[0] || V2.findOne(ae2, t3.delegateTarget.parentNode), o3 = be2.getOrCreateInstance(n3);
|
|
2147
2146
|
if (s3) return t3.stopPropagation(), o3.show(), void o3._selectMenuItem(t3);
|
|
2148
2147
|
o3._isShown() && (t3.stopPropagation(), o3.hide(), n3.focus());
|
|
2149
2148
|
}
|
|
2150
2149
|
}
|
|
2151
|
-
|
|
2152
|
-
t3.preventDefault(),
|
|
2153
|
-
}),
|
|
2154
|
-
const
|
|
2155
|
-
class
|
|
2150
|
+
F2.on(document, ne2, ae2, be2.dataApiKeydownHandler), F2.on(document, ne2, ce2, be2.dataApiKeydownHandler), F2.on(document, se2, be2.clearMenus), F2.on(document, oe2, be2.clearMenus), F2.on(document, se2, ae2, function(t3) {
|
|
2151
|
+
t3.preventDefault(), be2.getOrCreateInstance(this).toggle();
|
|
2152
|
+
}), v2(be2);
|
|
2153
|
+
const ve2 = "backdrop", ye2 = "show", we2 = `mousedown.bs.${ve2}`, Ae2 = { className: "modal-backdrop", clickCallback: null, isAnimated: false, isVisible: true, rootElement: "body" }, Ee2 = { className: "string", clickCallback: "(function|null)", isAnimated: "boolean", isVisible: "boolean", rootElement: "(element|string)" };
|
|
2154
|
+
class Ce2 extends W2 {
|
|
2156
2155
|
constructor(t3) {
|
|
2157
2156
|
super(), this._config = this._getConfig(t3), this._isAppended = false, this._element = null;
|
|
2158
2157
|
}
|
|
2159
2158
|
static get Default() {
|
|
2160
|
-
return
|
|
2159
|
+
return Ae2;
|
|
2161
2160
|
}
|
|
2162
2161
|
static get DefaultType() {
|
|
2163
|
-
return
|
|
2162
|
+
return Ee2;
|
|
2164
2163
|
}
|
|
2165
2164
|
static get NAME() {
|
|
2166
|
-
return
|
|
2165
|
+
return ve2;
|
|
2167
2166
|
}
|
|
2168
2167
|
show(t3) {
|
|
2169
|
-
if (!this._config.isVisible) return void
|
|
2168
|
+
if (!this._config.isVisible) return void y2(t3);
|
|
2170
2169
|
this._append();
|
|
2171
2170
|
const e2 = this._getElement();
|
|
2172
|
-
this._config.isAnimated &&
|
|
2173
|
-
|
|
2171
|
+
this._config.isAnimated && f2(e2), e2.classList.add(ye2), this._emulateAnimation(() => {
|
|
2172
|
+
y2(t3);
|
|
2174
2173
|
});
|
|
2175
2174
|
}
|
|
2176
2175
|
hide(t3) {
|
|
2177
|
-
this._config.isVisible ? (this._getElement().classList.remove(
|
|
2178
|
-
this.dispose(),
|
|
2179
|
-
})) :
|
|
2176
|
+
this._config.isVisible ? (this._getElement().classList.remove(ye2), this._emulateAnimation(() => {
|
|
2177
|
+
this.dispose(), y2(t3);
|
|
2178
|
+
})) : y2(t3);
|
|
2180
2179
|
}
|
|
2181
2180
|
dispose() {
|
|
2182
|
-
this._isAppended && (
|
|
2181
|
+
this._isAppended && (F2.off(this._element, we2), this._element.remove(), this._isAppended = false);
|
|
2183
2182
|
}
|
|
2184
2183
|
_getElement() {
|
|
2185
2184
|
if (!this._element) {
|
|
@@ -2189,51 +2188,51 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2189
2188
|
return this._element;
|
|
2190
2189
|
}
|
|
2191
2190
|
_configAfterMerge(t3) {
|
|
2192
|
-
return t3.rootElement =
|
|
2191
|
+
return t3.rootElement = h2(t3.rootElement), t3;
|
|
2193
2192
|
}
|
|
2194
2193
|
_append() {
|
|
2195
2194
|
if (this._isAppended) return;
|
|
2196
2195
|
const t3 = this._getElement();
|
|
2197
|
-
this._config.rootElement.append(t3),
|
|
2198
|
-
|
|
2196
|
+
this._config.rootElement.append(t3), F2.on(t3, we2, () => {
|
|
2197
|
+
y2(this._config.clickCallback);
|
|
2199
2198
|
}), this._isAppended = true;
|
|
2200
2199
|
}
|
|
2201
2200
|
_emulateAnimation(t3) {
|
|
2202
|
-
|
|
2201
|
+
w2(t3, this._getElement(), this._config.isAnimated);
|
|
2203
2202
|
}
|
|
2204
2203
|
}
|
|
2205
|
-
const
|
|
2206
|
-
class
|
|
2204
|
+
const Te2 = ".bs.focustrap", ke2 = `focusin${Te2}`, $e2 = `keydown.tab${Te2}`, Se2 = "backward", Le2 = { autofocus: true, trapElement: null }, Oe2 = { autofocus: "boolean", trapElement: "element" };
|
|
2205
|
+
class Ie2 extends W2 {
|
|
2207
2206
|
constructor(t3) {
|
|
2208
2207
|
super(), this._config = this._getConfig(t3), this._isActive = false, this._lastTabNavDirection = null;
|
|
2209
2208
|
}
|
|
2210
2209
|
static get Default() {
|
|
2211
|
-
return
|
|
2210
|
+
return Le2;
|
|
2212
2211
|
}
|
|
2213
2212
|
static get DefaultType() {
|
|
2214
|
-
return
|
|
2213
|
+
return Oe2;
|
|
2215
2214
|
}
|
|
2216
2215
|
static get NAME() {
|
|
2217
2216
|
return "focustrap";
|
|
2218
2217
|
}
|
|
2219
2218
|
activate() {
|
|
2220
|
-
this._isActive || (this._config.autofocus && this._config.trapElement.focus(),
|
|
2219
|
+
this._isActive || (this._config.autofocus && this._config.trapElement.focus(), F2.off(document, Te2), F2.on(document, ke2, (t3) => this._handleFocusin(t3)), F2.on(document, $e2, (t3) => this._handleKeydown(t3)), this._isActive = true);
|
|
2221
2220
|
}
|
|
2222
2221
|
deactivate() {
|
|
2223
|
-
this._isActive && (this._isActive = false,
|
|
2222
|
+
this._isActive && (this._isActive = false, F2.off(document, Te2));
|
|
2224
2223
|
}
|
|
2225
2224
|
_handleFocusin(t3) {
|
|
2226
2225
|
const { trapElement: e2 } = this._config;
|
|
2227
2226
|
if (t3.target === document || t3.target === e2 || e2.contains(t3.target)) return;
|
|
2228
|
-
const i3 =
|
|
2229
|
-
0 === i3.length ? e2.focus() : this._lastTabNavDirection ===
|
|
2227
|
+
const i3 = V2.focusableChildren(e2);
|
|
2228
|
+
0 === i3.length ? e2.focus() : this._lastTabNavDirection === Se2 ? i3[i3.length - 1].focus() : i3[0].focus();
|
|
2230
2229
|
}
|
|
2231
2230
|
_handleKeydown(t3) {
|
|
2232
|
-
"Tab" === t3.key && (this._lastTabNavDirection = t3.shiftKey ?
|
|
2231
|
+
"Tab" === t3.key && (this._lastTabNavDirection = t3.shiftKey ? Se2 : "forward");
|
|
2233
2232
|
}
|
|
2234
2233
|
}
|
|
2235
|
-
const
|
|
2236
|
-
class
|
|
2234
|
+
const De2 = ".fixed-top, .fixed-bottom, .is-fixed, .sticky-top", Ne2 = ".sticky-top", Pe2 = "padding-right", xe2 = "margin-right";
|
|
2235
|
+
class Me2 {
|
|
2237
2236
|
constructor() {
|
|
2238
2237
|
this._element = document.body;
|
|
2239
2238
|
}
|
|
@@ -2243,10 +2242,10 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2243
2242
|
}
|
|
2244
2243
|
hide() {
|
|
2245
2244
|
const t3 = this.getWidth();
|
|
2246
|
-
this._disableOverFlow(), this._setElementAttributes(this._element,
|
|
2245
|
+
this._disableOverFlow(), this._setElementAttributes(this._element, Pe2, (e2) => e2 + t3), this._setElementAttributes(De2, Pe2, (e2) => e2 + t3), this._setElementAttributes(Ne2, xe2, (e2) => e2 - t3);
|
|
2247
2246
|
}
|
|
2248
2247
|
reset() {
|
|
2249
|
-
this._resetElementAttributes(this._element, "overflow"), this._resetElementAttributes(this._element,
|
|
2248
|
+
this._resetElementAttributes(this._element, "overflow"), this._resetElementAttributes(this._element, Pe2), this._resetElementAttributes(De2, Pe2), this._resetElementAttributes(Ne2, xe2);
|
|
2250
2249
|
}
|
|
2251
2250
|
isOverflowing() {
|
|
2252
2251
|
return this.getWidth() > 0;
|
|
@@ -2265,29 +2264,29 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2265
2264
|
}
|
|
2266
2265
|
_saveInitialAttribute(t3, e2) {
|
|
2267
2266
|
const i3 = t3.style.getPropertyValue(e2);
|
|
2268
|
-
i3 &&
|
|
2267
|
+
i3 && q2.setDataAttribute(t3, e2, i3);
|
|
2269
2268
|
}
|
|
2270
2269
|
_resetElementAttributes(t3, e2) {
|
|
2271
2270
|
this._applyManipulationCallback(t3, (t4) => {
|
|
2272
|
-
const i3 =
|
|
2273
|
-
null !== i3 ? (
|
|
2271
|
+
const i3 = q2.getDataAttribute(t4, e2);
|
|
2272
|
+
null !== i3 ? (q2.removeDataAttribute(t4, e2), t4.style.setProperty(e2, i3)) : t4.style.removeProperty(e2);
|
|
2274
2273
|
});
|
|
2275
2274
|
}
|
|
2276
2275
|
_applyManipulationCallback(t3, e2) {
|
|
2277
|
-
if (
|
|
2278
|
-
else for (const i3 of
|
|
2276
|
+
if (c2(t3)) e2(t3);
|
|
2277
|
+
else for (const i3 of V2.find(t3, this._element)) e2(i3);
|
|
2279
2278
|
}
|
|
2280
2279
|
}
|
|
2281
|
-
const
|
|
2282
|
-
class
|
|
2280
|
+
const je2 = ".bs.modal", Fe2 = `hide${je2}`, ze2 = `hidePrevented${je2}`, He2 = `hidden${je2}`, Be2 = `show${je2}`, qe2 = `shown${je2}`, We2 = `resize${je2}`, Re2 = `click.dismiss${je2}`, Ke2 = `mousedown.dismiss${je2}`, Ve2 = `keydown.dismiss${je2}`, Qe2 = `click${je2}.data-api`, Xe2 = "modal-open", Ye2 = "show", Ue2 = "modal-static", Ge2 = { backdrop: true, focus: true, keyboard: true }, Je2 = { backdrop: "(boolean|string)", focus: "boolean", keyboard: "boolean" };
|
|
2281
|
+
class Ze2 extends R2 {
|
|
2283
2282
|
constructor(t3, e2) {
|
|
2284
|
-
super(t3, e2), this._dialog =
|
|
2283
|
+
super(t3, e2), this._dialog = V2.findOne(".modal-dialog", this._element), this._backdrop = this._initializeBackDrop(), this._focustrap = this._initializeFocusTrap(), this._isShown = false, this._isTransitioning = false, this._scrollBar = new Me2(), this._addEventListeners();
|
|
2285
2284
|
}
|
|
2286
2285
|
static get Default() {
|
|
2287
|
-
return
|
|
2286
|
+
return Ge2;
|
|
2288
2287
|
}
|
|
2289
2288
|
static get DefaultType() {
|
|
2290
|
-
return
|
|
2289
|
+
return Je2;
|
|
2291
2290
|
}
|
|
2292
2291
|
static get NAME() {
|
|
2293
2292
|
return "modal";
|
|
@@ -2296,54 +2295,54 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2296
2295
|
return this._isShown ? this.hide() : this.show(t3);
|
|
2297
2296
|
}
|
|
2298
2297
|
show(t3) {
|
|
2299
|
-
this._isShown || this._isTransitioning ||
|
|
2298
|
+
this._isShown || this._isTransitioning || F2.trigger(this._element, Be2, { relatedTarget: t3 }).defaultPrevented || (this._isShown = true, this._isTransitioning = true, this._scrollBar.hide(), document.body.classList.add(Xe2), this._adjustDialog(), this._backdrop.show(() => this._showElement(t3)));
|
|
2300
2299
|
}
|
|
2301
2300
|
hide() {
|
|
2302
|
-
this._isShown && !this._isTransitioning && (
|
|
2301
|
+
this._isShown && !this._isTransitioning && (F2.trigger(this._element, Fe2).defaultPrevented || (this._isShown = false, this._isTransitioning = true, this._focustrap.deactivate(), this._element.classList.remove(Ye2), this._queueCallback(() => this._hideModal(), this._element, this._isAnimated())));
|
|
2303
2302
|
}
|
|
2304
2303
|
dispose() {
|
|
2305
|
-
|
|
2304
|
+
F2.off(window, je2), F2.off(this._dialog, je2), this._backdrop.dispose(), this._focustrap.deactivate(), super.dispose();
|
|
2306
2305
|
}
|
|
2307
2306
|
handleUpdate() {
|
|
2308
2307
|
this._adjustDialog();
|
|
2309
2308
|
}
|
|
2310
2309
|
_initializeBackDrop() {
|
|
2311
|
-
return new
|
|
2310
|
+
return new Ce2({ isVisible: Boolean(this._config.backdrop), isAnimated: this._isAnimated() });
|
|
2312
2311
|
}
|
|
2313
2312
|
_initializeFocusTrap() {
|
|
2314
|
-
return new
|
|
2313
|
+
return new Ie2({ trapElement: this._element });
|
|
2315
2314
|
}
|
|
2316
2315
|
_showElement(t3) {
|
|
2317
2316
|
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", true), this._element.setAttribute("role", "dialog"), this._element.scrollTop = 0;
|
|
2318
|
-
const e2 =
|
|
2319
|
-
e2 && (e2.scrollTop = 0),
|
|
2320
|
-
this._config.focus && this._focustrap.activate(), this._isTransitioning = false,
|
|
2317
|
+
const e2 = V2.findOne(".modal-body", this._dialog);
|
|
2318
|
+
e2 && (e2.scrollTop = 0), f2(this._element), this._element.classList.add(Ye2), this._queueCallback(() => {
|
|
2319
|
+
this._config.focus && this._focustrap.activate(), this._isTransitioning = false, F2.trigger(this._element, qe2, { relatedTarget: t3 });
|
|
2321
2320
|
}, this._dialog, this._isAnimated());
|
|
2322
2321
|
}
|
|
2323
2322
|
_addEventListeners() {
|
|
2324
|
-
|
|
2323
|
+
F2.on(this._element, Ve2, (t3) => {
|
|
2325
2324
|
"Escape" === t3.key && (this._config.keyboard ? this.hide() : this._triggerBackdropTransition());
|
|
2326
|
-
}),
|
|
2325
|
+
}), F2.on(window, We2, () => {
|
|
2327
2326
|
this._isShown && !this._isTransitioning && this._adjustDialog();
|
|
2328
|
-
}),
|
|
2329
|
-
|
|
2327
|
+
}), F2.on(this._element, Ke2, (t3) => {
|
|
2328
|
+
F2.one(this._element, Re2, (e2) => {
|
|
2330
2329
|
this._element === t3.target && this._element === e2.target && ("static" !== this._config.backdrop ? this._config.backdrop && this.hide() : this._triggerBackdropTransition());
|
|
2331
2330
|
});
|
|
2332
2331
|
});
|
|
2333
2332
|
}
|
|
2334
2333
|
_hideModal() {
|
|
2335
2334
|
this._element.style.display = "none", this._element.setAttribute("aria-hidden", true), this._element.removeAttribute("aria-modal"), this._element.removeAttribute("role"), this._isTransitioning = false, this._backdrop.hide(() => {
|
|
2336
|
-
document.body.classList.remove(
|
|
2335
|
+
document.body.classList.remove(Xe2), this._resetAdjustments(), this._scrollBar.reset(), F2.trigger(this._element, He2);
|
|
2337
2336
|
});
|
|
2338
2337
|
}
|
|
2339
2338
|
_isAnimated() {
|
|
2340
2339
|
return this._element.classList.contains("fade");
|
|
2341
2340
|
}
|
|
2342
2341
|
_triggerBackdropTransition() {
|
|
2343
|
-
if (
|
|
2342
|
+
if (F2.trigger(this._element, ze2).defaultPrevented) return;
|
|
2344
2343
|
const t3 = this._element.scrollHeight > document.documentElement.clientHeight, e2 = this._element.style.overflowY;
|
|
2345
|
-
"hidden" === e2 || this._element.classList.contains(
|
|
2346
|
-
this._element.classList.remove(
|
|
2344
|
+
"hidden" === e2 || this._element.classList.contains(Ue2) || (t3 || (this._element.style.overflowY = "hidden"), this._element.classList.add(Ue2), this._queueCallback(() => {
|
|
2345
|
+
this._element.classList.remove(Ue2), this._queueCallback(() => {
|
|
2347
2346
|
this._element.style.overflowY = e2;
|
|
2348
2347
|
}, this._dialog);
|
|
2349
2348
|
}, this._dialog), this._element.focus());
|
|
@@ -2351,11 +2350,11 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2351
2350
|
_adjustDialog() {
|
|
2352
2351
|
const t3 = this._element.scrollHeight > document.documentElement.clientHeight, e2 = this._scrollBar.getWidth(), i3 = e2 > 0;
|
|
2353
2352
|
if (i3 && !t3) {
|
|
2354
|
-
const t4 =
|
|
2353
|
+
const t4 = b2() ? "paddingLeft" : "paddingRight";
|
|
2355
2354
|
this._element.style[t4] = `${e2}px`;
|
|
2356
2355
|
}
|
|
2357
2356
|
if (!i3 && t3) {
|
|
2358
|
-
const t4 =
|
|
2357
|
+
const t4 = b2() ? "paddingRight" : "paddingLeft";
|
|
2359
2358
|
this._element.style[t4] = `${e2}px`;
|
|
2360
2359
|
}
|
|
2361
2360
|
}
|
|
@@ -2364,7 +2363,7 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2364
2363
|
}
|
|
2365
2364
|
static jQueryInterface(t3, e2) {
|
|
2366
2365
|
return this.each(function() {
|
|
2367
|
-
const i3 =
|
|
2366
|
+
const i3 = Ze2.getOrCreateInstance(this, t3);
|
|
2368
2367
|
if ("string" == typeof t3) {
|
|
2369
2368
|
if (void 0 === i3[t3]) throw new TypeError(`No method named "${t3}"`);
|
|
2370
2369
|
i3[t3](e2);
|
|
@@ -2372,26 +2371,26 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2372
2371
|
});
|
|
2373
2372
|
}
|
|
2374
2373
|
}
|
|
2375
|
-
|
|
2376
|
-
const e2 =
|
|
2377
|
-
["A", "AREA"].includes(this.tagName) && t3.preventDefault(),
|
|
2378
|
-
t4.defaultPrevented ||
|
|
2379
|
-
|
|
2374
|
+
F2.on(document, Qe2, '[data-bs-toggle="modal"]', function(t3) {
|
|
2375
|
+
const e2 = V2.getElementFromSelector(this);
|
|
2376
|
+
["A", "AREA"].includes(this.tagName) && t3.preventDefault(), F2.one(e2, Be2, (t4) => {
|
|
2377
|
+
t4.defaultPrevented || F2.one(e2, He2, () => {
|
|
2378
|
+
d2(this) && this.focus();
|
|
2380
2379
|
});
|
|
2381
2380
|
});
|
|
2382
|
-
const i3 =
|
|
2383
|
-
i3 &&
|
|
2384
|
-
}),
|
|
2385
|
-
const
|
|
2386
|
-
class
|
|
2381
|
+
const i3 = V2.findOne(".modal.show");
|
|
2382
|
+
i3 && Ze2.getInstance(i3).hide(), Ze2.getOrCreateInstance(e2).toggle(this);
|
|
2383
|
+
}), Q2(Ze2), v2(Ze2);
|
|
2384
|
+
const ti = ".bs.offcanvas", ei = ".data-api", ii = `load${ti}${ei}`, si = "show", ni = "showing", oi = "hiding", ri = ".offcanvas.show", ai = `show${ti}`, li = `shown${ti}`, ci = `hide${ti}`, hi = `hidePrevented${ti}`, di = `hidden${ti}`, ui = `resize${ti}`, _i = `click${ti}${ei}`, gi = `keydown.dismiss${ti}`, fi = { backdrop: true, keyboard: true, scroll: false }, mi = { backdrop: "(boolean|string)", keyboard: "boolean", scroll: "boolean" };
|
|
2385
|
+
class pi extends R2 {
|
|
2387
2386
|
constructor(t3, e2) {
|
|
2388
2387
|
super(t3, e2), this._isShown = false, this._backdrop = this._initializeBackDrop(), this._focustrap = this._initializeFocusTrap(), this._addEventListeners();
|
|
2389
2388
|
}
|
|
2390
2389
|
static get Default() {
|
|
2391
|
-
return
|
|
2390
|
+
return fi;
|
|
2392
2391
|
}
|
|
2393
2392
|
static get DefaultType() {
|
|
2394
|
-
return
|
|
2393
|
+
return mi;
|
|
2395
2394
|
}
|
|
2396
2395
|
static get NAME() {
|
|
2397
2396
|
return "offcanvas";
|
|
@@ -2400,13 +2399,13 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2400
2399
|
return this._isShown ? this.hide() : this.show(t3);
|
|
2401
2400
|
}
|
|
2402
2401
|
show(t3) {
|
|
2403
|
-
this._isShown ||
|
|
2404
|
-
this._config.scroll && !this._config.backdrop || this._focustrap.activate(), this._element.classList.add(
|
|
2402
|
+
this._isShown || F2.trigger(this._element, ai, { relatedTarget: t3 }).defaultPrevented || (this._isShown = true, this._backdrop.show(), this._config.scroll || new Me2().hide(), this._element.setAttribute("aria-modal", true), this._element.setAttribute("role", "dialog"), this._element.classList.add(ni), this._queueCallback(() => {
|
|
2403
|
+
this._config.scroll && !this._config.backdrop || this._focustrap.activate(), this._element.classList.add(si), this._element.classList.remove(ni), F2.trigger(this._element, li, { relatedTarget: t3 });
|
|
2405
2404
|
}, this._element, true));
|
|
2406
2405
|
}
|
|
2407
2406
|
hide() {
|
|
2408
|
-
this._isShown && (
|
|
2409
|
-
this._element.classList.remove(
|
|
2407
|
+
this._isShown && (F2.trigger(this._element, ci).defaultPrevented || (this._focustrap.deactivate(), this._element.blur(), this._isShown = false, this._element.classList.add(oi), this._backdrop.hide(), this._queueCallback(() => {
|
|
2408
|
+
this._element.classList.remove(si, oi), this._element.removeAttribute("aria-modal"), this._element.removeAttribute("role"), this._config.scroll || new Me2().reset(), F2.trigger(this._element, di);
|
|
2410
2409
|
}, this._element, true)));
|
|
2411
2410
|
}
|
|
2412
2411
|
dispose() {
|
|
@@ -2414,21 +2413,21 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2414
2413
|
}
|
|
2415
2414
|
_initializeBackDrop() {
|
|
2416
2415
|
const t3 = Boolean(this._config.backdrop);
|
|
2417
|
-
return new
|
|
2418
|
-
"static" !== this._config.backdrop ? this.hide() :
|
|
2416
|
+
return new Ce2({ className: "offcanvas-backdrop", isVisible: t3, isAnimated: true, rootElement: this._element.parentNode, clickCallback: t3 ? () => {
|
|
2417
|
+
"static" !== this._config.backdrop ? this.hide() : F2.trigger(this._element, hi);
|
|
2419
2418
|
} : null });
|
|
2420
2419
|
}
|
|
2421
2420
|
_initializeFocusTrap() {
|
|
2422
|
-
return new
|
|
2421
|
+
return new Ie2({ trapElement: this._element });
|
|
2423
2422
|
}
|
|
2424
2423
|
_addEventListeners() {
|
|
2425
|
-
|
|
2426
|
-
"Escape" === t3.key && (this._config.keyboard ? this.hide() :
|
|
2424
|
+
F2.on(this._element, gi, (t3) => {
|
|
2425
|
+
"Escape" === t3.key && (this._config.keyboard ? this.hide() : F2.trigger(this._element, hi));
|
|
2427
2426
|
});
|
|
2428
2427
|
}
|
|
2429
2428
|
static jQueryInterface(t3) {
|
|
2430
2429
|
return this.each(function() {
|
|
2431
|
-
const e2 =
|
|
2430
|
+
const e2 = pi.getOrCreateInstance(this, t3);
|
|
2432
2431
|
if ("string" == typeof t3) {
|
|
2433
2432
|
if (void 0 === e2[t3] || t3.startsWith("_") || "constructor" === t3) throw new TypeError(`No method named "${t3}"`);
|
|
2434
2433
|
e2[t3](this);
|
|
@@ -2436,32 +2435,32 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2436
2435
|
});
|
|
2437
2436
|
}
|
|
2438
2437
|
}
|
|
2439
|
-
|
|
2440
|
-
const e2 =
|
|
2441
|
-
if (["A", "AREA"].includes(this.tagName) && t3.preventDefault(),
|
|
2442
|
-
|
|
2443
|
-
|
|
2438
|
+
F2.on(document, _i, '[data-bs-toggle="offcanvas"]', function(t3) {
|
|
2439
|
+
const e2 = V2.getElementFromSelector(this);
|
|
2440
|
+
if (["A", "AREA"].includes(this.tagName) && t3.preventDefault(), u2(this)) return;
|
|
2441
|
+
F2.one(e2, di, () => {
|
|
2442
|
+
d2(this) && this.focus();
|
|
2444
2443
|
});
|
|
2445
|
-
const i3 =
|
|
2446
|
-
i3 && i3 !== e2 &&
|
|
2447
|
-
}),
|
|
2448
|
-
for (const t3 of
|
|
2449
|
-
}),
|
|
2450
|
-
for (const t3 of
|
|
2451
|
-
}),
|
|
2452
|
-
const
|
|
2444
|
+
const i3 = V2.findOne(ri);
|
|
2445
|
+
i3 && i3 !== e2 && pi.getInstance(i3).hide(), pi.getOrCreateInstance(e2).toggle(this);
|
|
2446
|
+
}), F2.on(window, ii, () => {
|
|
2447
|
+
for (const t3 of V2.find(ri)) pi.getOrCreateInstance(t3).show();
|
|
2448
|
+
}), F2.on(window, ui, () => {
|
|
2449
|
+
for (const t3 of V2.find("[aria-modal][class*=show][class*=offcanvas-]")) "fixed" !== getComputedStyle(t3).position && pi.getOrCreateInstance(t3).hide();
|
|
2450
|
+
}), Q2(pi), v2(pi);
|
|
2451
|
+
const bi = { "*": ["class", "dir", "id", "lang", "role", /^aria-[\w-]*$/i], a: ["target", "href", "title", "rel"], area: [], b: [], br: [], col: [], code: [], dd: [], div: [], dl: [], dt: [], em: [], hr: [], h1: [], h2: [], h3: [], h4: [], h5: [], h6: [], i: [], img: ["src", "srcset", "alt", "title", "width", "height"], li: [], ol: [], p: [], pre: [], s: [], small: [], span: [], sub: [], sup: [], strong: [], u: [], ul: [] }, vi = /* @__PURE__ */ new Set(["background", "cite", "href", "itemtype", "longdesc", "poster", "src", "xlink:href"]), yi = /^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i, wi = (t3, e2) => {
|
|
2453
2452
|
const i3 = t3.nodeName.toLowerCase();
|
|
2454
|
-
return e2.includes(i3) ? !
|
|
2455
|
-
},
|
|
2456
|
-
class
|
|
2453
|
+
return e2.includes(i3) ? !vi.has(i3) || Boolean(yi.test(t3.nodeValue)) : e2.filter((t4) => t4 instanceof RegExp).some((t4) => t4.test(i3));
|
|
2454
|
+
}, Ai = { allowList: bi, content: {}, extraClass: "", html: false, sanitize: true, sanitizeFn: null, template: "<div></div>" }, Ei = { allowList: "object", content: "object", extraClass: "(string|function)", html: "boolean", sanitize: "boolean", sanitizeFn: "(null|function)", template: "string" }, Ci = { entry: "(string|element|function|null)", selector: "(string|element)" };
|
|
2455
|
+
class Ti extends W2 {
|
|
2457
2456
|
constructor(t3) {
|
|
2458
2457
|
super(), this._config = this._getConfig(t3);
|
|
2459
2458
|
}
|
|
2460
2459
|
static get Default() {
|
|
2461
|
-
return
|
|
2460
|
+
return Ai;
|
|
2462
2461
|
}
|
|
2463
2462
|
static get DefaultType() {
|
|
2464
|
-
return
|
|
2463
|
+
return Ei;
|
|
2465
2464
|
}
|
|
2466
2465
|
static get NAME() {
|
|
2467
2466
|
return "TemplateFactory";
|
|
@@ -2486,11 +2485,11 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2486
2485
|
super._typeCheckConfig(t3), this._checkContent(t3.content);
|
|
2487
2486
|
}
|
|
2488
2487
|
_checkContent(t3) {
|
|
2489
|
-
for (const [e2, i3] of Object.entries(t3)) super._typeCheckConfig({ selector: e2, entry: i3 },
|
|
2488
|
+
for (const [e2, i3] of Object.entries(t3)) super._typeCheckConfig({ selector: e2, entry: i3 }, Ci);
|
|
2490
2489
|
}
|
|
2491
2490
|
_setContent(t3, e2, i3) {
|
|
2492
|
-
const s3 =
|
|
2493
|
-
s3 && ((e2 = this._resolvePossibleFunction(e2)) ?
|
|
2491
|
+
const s3 = V2.findOne(i3, t3);
|
|
2492
|
+
s3 && ((e2 = this._resolvePossibleFunction(e2)) ? c2(e2) ? this._putElementInTemplate(h2(e2), s3) : this._config.html ? s3.innerHTML = this._maybeSanitize(e2) : s3.textContent = e2 : s3.remove());
|
|
2494
2493
|
}
|
|
2495
2494
|
_maybeSanitize(t3) {
|
|
2496
2495
|
return this._config.sanitize ? function(t4, e2, i3) {
|
|
@@ -2504,30 +2503,30 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2504
2503
|
continue;
|
|
2505
2504
|
}
|
|
2506
2505
|
const s4 = [].concat(...t5.attributes), n4 = [].concat(e2["*"] || [], e2[i4] || []);
|
|
2507
|
-
for (const e3 of s4)
|
|
2506
|
+
for (const e3 of s4) wi(e3, n4) || t5.removeAttribute(e3.nodeName);
|
|
2508
2507
|
}
|
|
2509
2508
|
return s3.body.innerHTML;
|
|
2510
2509
|
}(t3, this._config.allowList, this._config.sanitizeFn) : t3;
|
|
2511
2510
|
}
|
|
2512
2511
|
_resolvePossibleFunction(t3) {
|
|
2513
|
-
return
|
|
2512
|
+
return y2(t3, [void 0, this]);
|
|
2514
2513
|
}
|
|
2515
2514
|
_putElementInTemplate(t3, e2) {
|
|
2516
2515
|
if (this._config.html) return e2.innerHTML = "", void e2.append(t3);
|
|
2517
2516
|
e2.textContent = t3.textContent;
|
|
2518
2517
|
}
|
|
2519
2518
|
}
|
|
2520
|
-
const
|
|
2521
|
-
class
|
|
2519
|
+
const ki = /* @__PURE__ */ new Set(["sanitize", "allowList", "sanitizeFn"]), $i = "fade", Si = "show", Li = ".tooltip-inner", Oi = ".modal", Ii = "hide.bs.modal", Di = "hover", Ni = "focus", Pi = "click", xi = { AUTO: "auto", TOP: "top", RIGHT: b2() ? "left" : "right", BOTTOM: "bottom", LEFT: b2() ? "right" : "left" }, Mi = { allowList: bi, animation: true, boundary: "clippingParents", container: false, customClass: "", delay: 0, fallbackPlacements: ["top", "right", "bottom", "left"], html: false, offset: [0, 6], placement: "top", popperConfig: null, sanitize: true, sanitizeFn: null, selector: false, template: '<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>', title: "", trigger: "hover focus" }, ji = { allowList: "object", animation: "boolean", boundary: "(string|element)", container: "(string|element|boolean)", customClass: "(string|function)", delay: "(number|object)", fallbackPlacements: "array", html: "boolean", offset: "(array|string|function)", placement: "(string|function)", popperConfig: "(null|object|function)", sanitize: "boolean", sanitizeFn: "(null|function)", selector: "(string|boolean)", template: "string", title: "(string|element|function)", trigger: "string" };
|
|
2520
|
+
class Fi extends R2 {
|
|
2522
2521
|
constructor(t3, e2) {
|
|
2523
2522
|
if (void 0 === i2) throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");
|
|
2524
2523
|
super(t3, e2), this._isEnabled = true, this._timeout = 0, this._isHovered = null, this._activeTrigger = {}, this._popper = null, this._templateFactory = null, this._newContent = null, this.tip = null, this._setListeners(), this._config.selector || this._fixTitle();
|
|
2525
2524
|
}
|
|
2526
2525
|
static get Default() {
|
|
2527
|
-
return
|
|
2526
|
+
return Mi;
|
|
2528
2527
|
}
|
|
2529
2528
|
static get DefaultType() {
|
|
2530
|
-
return
|
|
2529
|
+
return ji;
|
|
2531
2530
|
}
|
|
2532
2531
|
static get NAME() {
|
|
2533
2532
|
return "tooltip";
|
|
@@ -2545,27 +2544,27 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2545
2544
|
this._isEnabled && (this._isShown() ? this._leave() : this._enter());
|
|
2546
2545
|
}
|
|
2547
2546
|
dispose() {
|
|
2548
|
-
clearTimeout(this._timeout),
|
|
2547
|
+
clearTimeout(this._timeout), F2.off(this._element.closest(Oi), Ii, this._hideModalHandler), this._element.getAttribute("data-bs-original-title") && this._element.setAttribute("title", this._element.getAttribute("data-bs-original-title")), this._disposePopper(), super.dispose();
|
|
2549
2548
|
}
|
|
2550
2549
|
show() {
|
|
2551
2550
|
if ("none" === this._element.style.display) throw new Error("Please use show on visible elements");
|
|
2552
2551
|
if (!this._isWithContent() || !this._isEnabled) return;
|
|
2553
|
-
const t3 =
|
|
2552
|
+
const t3 = F2.trigger(this._element, this.constructor.eventName("show")), e2 = (_2(this._element) || this._element.ownerDocument.documentElement).contains(this._element);
|
|
2554
2553
|
if (t3.defaultPrevented || !e2) return;
|
|
2555
2554
|
this._disposePopper();
|
|
2556
2555
|
const i3 = this._getTipElement();
|
|
2557
2556
|
this._element.setAttribute("aria-describedby", i3.getAttribute("id"));
|
|
2558
2557
|
const { container: s3 } = this._config;
|
|
2559
|
-
if (this._element.ownerDocument.documentElement.contains(this.tip) || (s3.append(i3),
|
|
2558
|
+
if (this._element.ownerDocument.documentElement.contains(this.tip) || (s3.append(i3), F2.trigger(this._element, this.constructor.eventName("inserted"))), this._popper = this._createPopper(i3), i3.classList.add(Si), "ontouchstart" in document.documentElement) for (const t4 of [].concat(...document.body.children)) F2.on(t4, "mouseover", g2);
|
|
2560
2559
|
this._queueCallback(() => {
|
|
2561
|
-
|
|
2560
|
+
F2.trigger(this._element, this.constructor.eventName("shown")), false === this._isHovered && this._leave(), this._isHovered = false;
|
|
2562
2561
|
}, this.tip, this._isAnimated());
|
|
2563
2562
|
}
|
|
2564
2563
|
hide() {
|
|
2565
|
-
if (this._isShown() && !
|
|
2566
|
-
if (this._getTipElement().classList.remove(
|
|
2567
|
-
this._activeTrigger[
|
|
2568
|
-
this._isWithActiveTrigger() || (this._isHovered || this._disposePopper(), this._element.removeAttribute("aria-describedby"),
|
|
2564
|
+
if (this._isShown() && !F2.trigger(this._element, this.constructor.eventName("hide")).defaultPrevented) {
|
|
2565
|
+
if (this._getTipElement().classList.remove(Si), "ontouchstart" in document.documentElement) for (const t3 of [].concat(...document.body.children)) F2.off(t3, "mouseover", g2);
|
|
2566
|
+
this._activeTrigger[Pi] = false, this._activeTrigger[Ni] = false, this._activeTrigger[Di] = false, this._isHovered = null, this._queueCallback(() => {
|
|
2567
|
+
this._isWithActiveTrigger() || (this._isHovered || this._disposePopper(), this._element.removeAttribute("aria-describedby"), F2.trigger(this._element, this.constructor.eventName("hidden")));
|
|
2569
2568
|
}, this.tip, this._isAnimated());
|
|
2570
2569
|
}
|
|
2571
2570
|
}
|
|
@@ -2581,23 +2580,23 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2581
2580
|
_createTipElement(t3) {
|
|
2582
2581
|
const e2 = this._getTemplateFactory(t3).toHtml();
|
|
2583
2582
|
if (!e2) return null;
|
|
2584
|
-
e2.classList.remove(
|
|
2583
|
+
e2.classList.remove($i, Si), e2.classList.add(`bs-${this.constructor.NAME}-auto`);
|
|
2585
2584
|
const i3 = ((t4) => {
|
|
2586
2585
|
do {
|
|
2587
2586
|
t4 += Math.floor(1e6 * Math.random());
|
|
2588
2587
|
} while (document.getElementById(t4));
|
|
2589
2588
|
return t4;
|
|
2590
2589
|
})(this.constructor.NAME).toString();
|
|
2591
|
-
return e2.setAttribute("id", i3), this._isAnimated() && e2.classList.add(
|
|
2590
|
+
return e2.setAttribute("id", i3), this._isAnimated() && e2.classList.add($i), e2;
|
|
2592
2591
|
}
|
|
2593
2592
|
setContent(t3) {
|
|
2594
2593
|
this._newContent = t3, this._isShown() && (this._disposePopper(), this.show());
|
|
2595
2594
|
}
|
|
2596
2595
|
_getTemplateFactory(t3) {
|
|
2597
|
-
return this._templateFactory ? this._templateFactory.changeContent(t3) : this._templateFactory = new
|
|
2596
|
+
return this._templateFactory ? this._templateFactory.changeContent(t3) : this._templateFactory = new Ti({ ...this._config, content: t3, extraClass: this._resolvePossibleFunction(this._config.customClass) }), this._templateFactory;
|
|
2598
2597
|
}
|
|
2599
2598
|
_getContentForTemplate() {
|
|
2600
|
-
return { [
|
|
2599
|
+
return { [Li]: this._getTitle() };
|
|
2601
2600
|
}
|
|
2602
2601
|
_getTitle() {
|
|
2603
2602
|
return this._resolvePossibleFunction(this._config.title) || this._element.getAttribute("data-bs-original-title");
|
|
@@ -2606,13 +2605,13 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2606
2605
|
return this.constructor.getOrCreateInstance(t3.delegateTarget, this._getDelegateConfig());
|
|
2607
2606
|
}
|
|
2608
2607
|
_isAnimated() {
|
|
2609
|
-
return this._config.animation || this.tip && this.tip.classList.contains(
|
|
2608
|
+
return this._config.animation || this.tip && this.tip.classList.contains($i);
|
|
2610
2609
|
}
|
|
2611
2610
|
_isShown() {
|
|
2612
|
-
return this.tip && this.tip.classList.contains(
|
|
2611
|
+
return this.tip && this.tip.classList.contains(Si);
|
|
2613
2612
|
}
|
|
2614
2613
|
_createPopper(t3) {
|
|
2615
|
-
const e2 =
|
|
2614
|
+
const e2 = y2(this._config.placement, [this, t3, this._element]), s3 = xi[e2.toUpperCase()];
|
|
2616
2615
|
return i2.createPopper(this._element, t3, this._getPopperConfig(s3));
|
|
2617
2616
|
}
|
|
2618
2617
|
_getOffset() {
|
|
@@ -2620,33 +2619,33 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2620
2619
|
return "string" == typeof t3 ? t3.split(",").map((t4) => Number.parseInt(t4, 10)) : "function" == typeof t3 ? (e2) => t3(e2, this._element) : t3;
|
|
2621
2620
|
}
|
|
2622
2621
|
_resolvePossibleFunction(t3) {
|
|
2623
|
-
return
|
|
2622
|
+
return y2(t3, [this._element, this._element]);
|
|
2624
2623
|
}
|
|
2625
2624
|
_getPopperConfig(t3) {
|
|
2626
2625
|
const e2 = { placement: t3, modifiers: [{ name: "flip", options: { fallbackPlacements: this._config.fallbackPlacements } }, { name: "offset", options: { offset: this._getOffset() } }, { name: "preventOverflow", options: { boundary: this._config.boundary } }, { name: "arrow", options: { element: `.${this.constructor.NAME}-arrow` } }, { name: "preSetPlacement", enabled: true, phase: "beforeMain", fn: (t4) => {
|
|
2627
2626
|
this._getTipElement().setAttribute("data-popper-placement", t4.state.placement);
|
|
2628
2627
|
} }] };
|
|
2629
|
-
return { ...e2, ...
|
|
2628
|
+
return { ...e2, ...y2(this._config.popperConfig, [void 0, e2]) };
|
|
2630
2629
|
}
|
|
2631
2630
|
_setListeners() {
|
|
2632
2631
|
const t3 = this._config.trigger.split(" ");
|
|
2633
|
-
for (const e2 of t3) if ("click" === e2)
|
|
2632
|
+
for (const e2 of t3) if ("click" === e2) F2.on(this._element, this.constructor.eventName("click"), this._config.selector, (t4) => {
|
|
2634
2633
|
const e3 = this._initializeOnDelegatedTarget(t4);
|
|
2635
|
-
e3._activeTrigger[
|
|
2634
|
+
e3._activeTrigger[Pi] = !(e3._isShown() && e3._activeTrigger[Pi]), e3.toggle();
|
|
2636
2635
|
});
|
|
2637
2636
|
else if ("manual" !== e2) {
|
|
2638
|
-
const t4 = e2 ===
|
|
2639
|
-
|
|
2637
|
+
const t4 = e2 === Di ? this.constructor.eventName("mouseenter") : this.constructor.eventName("focusin"), i3 = e2 === Di ? this.constructor.eventName("mouseleave") : this.constructor.eventName("focusout");
|
|
2638
|
+
F2.on(this._element, t4, this._config.selector, (t5) => {
|
|
2640
2639
|
const e3 = this._initializeOnDelegatedTarget(t5);
|
|
2641
|
-
e3._activeTrigger["focusin" === t5.type ?
|
|
2642
|
-
}),
|
|
2640
|
+
e3._activeTrigger["focusin" === t5.type ? Ni : Di] = true, e3._enter();
|
|
2641
|
+
}), F2.on(this._element, i3, this._config.selector, (t5) => {
|
|
2643
2642
|
const e3 = this._initializeOnDelegatedTarget(t5);
|
|
2644
|
-
e3._activeTrigger["focusout" === t5.type ?
|
|
2643
|
+
e3._activeTrigger["focusout" === t5.type ? Ni : Di] = e3._element.contains(t5.relatedTarget), e3._leave();
|
|
2645
2644
|
});
|
|
2646
2645
|
}
|
|
2647
2646
|
this._hideModalHandler = () => {
|
|
2648
2647
|
this._element && this.hide();
|
|
2649
|
-
},
|
|
2648
|
+
}, F2.on(this._element.closest(Oi), Ii, this._hideModalHandler);
|
|
2650
2649
|
}
|
|
2651
2650
|
_fixTitle() {
|
|
2652
2651
|
const t3 = this._element.getAttribute("title");
|
|
@@ -2669,12 +2668,12 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2669
2668
|
return Object.values(this._activeTrigger).includes(true);
|
|
2670
2669
|
}
|
|
2671
2670
|
_getConfig(t3) {
|
|
2672
|
-
const e2 =
|
|
2673
|
-
for (const t4 of Object.keys(e2))
|
|
2671
|
+
const e2 = q2.getDataAttributes(this._element);
|
|
2672
|
+
for (const t4 of Object.keys(e2)) ki.has(t4) && delete e2[t4];
|
|
2674
2673
|
return t3 = { ...e2, ..."object" == typeof t3 && t3 ? t3 : {} }, t3 = this._mergeConfigObj(t3), t3 = this._configAfterMerge(t3), this._typeCheckConfig(t3), t3;
|
|
2675
2674
|
}
|
|
2676
2675
|
_configAfterMerge(t3) {
|
|
2677
|
-
return t3.container = false === t3.container ? document.body :
|
|
2676
|
+
return t3.container = false === t3.container ? document.body : h2(t3.container), "number" == typeof t3.delay && (t3.delay = { show: t3.delay, hide: t3.delay }), "number" == typeof t3.title && (t3.title = t3.title.toString()), "number" == typeof t3.content && (t3.content = t3.content.toString()), t3;
|
|
2678
2677
|
}
|
|
2679
2678
|
_getDelegateConfig() {
|
|
2680
2679
|
const t3 = {};
|
|
@@ -2686,7 +2685,7 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2686
2685
|
}
|
|
2687
2686
|
static jQueryInterface(t3) {
|
|
2688
2687
|
return this.each(function() {
|
|
2689
|
-
const e2 =
|
|
2688
|
+
const e2 = Fi.getOrCreateInstance(this, t3);
|
|
2690
2689
|
if ("string" == typeof t3) {
|
|
2691
2690
|
if (void 0 === e2[t3]) throw new TypeError(`No method named "${t3}"`);
|
|
2692
2691
|
e2[t3]();
|
|
@@ -2694,14 +2693,14 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2694
2693
|
});
|
|
2695
2694
|
}
|
|
2696
2695
|
}
|
|
2697
|
-
|
|
2698
|
-
const
|
|
2699
|
-
class
|
|
2696
|
+
v2(Fi);
|
|
2697
|
+
const zi = ".popover-header", Hi = ".popover-body", Bi = { ...Fi.Default, content: "", offset: [0, 8], placement: "right", template: '<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>', trigger: "click" }, qi = { ...Fi.DefaultType, content: "(null|string|element|function)" };
|
|
2698
|
+
class Wi extends Fi {
|
|
2700
2699
|
static get Default() {
|
|
2701
|
-
return
|
|
2700
|
+
return Bi;
|
|
2702
2701
|
}
|
|
2703
2702
|
static get DefaultType() {
|
|
2704
|
-
return
|
|
2703
|
+
return qi;
|
|
2705
2704
|
}
|
|
2706
2705
|
static get NAME() {
|
|
2707
2706
|
return "popover";
|
|
@@ -2710,14 +2709,14 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2710
2709
|
return this._getTitle() || this._getContent();
|
|
2711
2710
|
}
|
|
2712
2711
|
_getContentForTemplate() {
|
|
2713
|
-
return { [
|
|
2712
|
+
return { [zi]: this._getTitle(), [Hi]: this._getContent() };
|
|
2714
2713
|
}
|
|
2715
2714
|
_getContent() {
|
|
2716
2715
|
return this._resolvePossibleFunction(this._config.content);
|
|
2717
2716
|
}
|
|
2718
2717
|
static jQueryInterface(t3) {
|
|
2719
2718
|
return this.each(function() {
|
|
2720
|
-
const e2 =
|
|
2719
|
+
const e2 = Wi.getOrCreateInstance(this, t3);
|
|
2721
2720
|
if ("string" == typeof t3) {
|
|
2722
2721
|
if (void 0 === e2[t3]) throw new TypeError(`No method named "${t3}"`);
|
|
2723
2722
|
e2[t3]();
|
|
@@ -2725,17 +2724,17 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2725
2724
|
});
|
|
2726
2725
|
}
|
|
2727
2726
|
}
|
|
2728
|
-
|
|
2729
|
-
const
|
|
2730
|
-
class
|
|
2727
|
+
v2(Wi);
|
|
2728
|
+
const Ri = ".bs.scrollspy", Ki = `activate${Ri}`, Vi = `click${Ri}`, Qi = `load${Ri}.data-api`, Xi = "active", Yi = "[href]", Ui = ".nav-link", Gi = `${Ui}, .nav-item > ${Ui}, .list-group-item`, Ji = { offset: null, rootMargin: "0px 0px -25%", smoothScroll: false, target: null, threshold: [0.1, 0.5, 1] }, Zi = { offset: "(number|null)", rootMargin: "string", smoothScroll: "boolean", target: "element", threshold: "array" };
|
|
2729
|
+
class ts extends R2 {
|
|
2731
2730
|
constructor(t3, e2) {
|
|
2732
2731
|
super(t3, e2), this._targetLinks = /* @__PURE__ */ new Map(), this._observableSections = /* @__PURE__ */ new Map(), this._rootElement = "visible" === getComputedStyle(this._element).overflowY ? null : this._element, this._activeTarget = null, this._observer = null, this._previousScrollData = { visibleEntryTop: 0, parentScrollTop: 0 }, this.refresh();
|
|
2733
2732
|
}
|
|
2734
2733
|
static get Default() {
|
|
2735
|
-
return
|
|
2734
|
+
return Ji;
|
|
2736
2735
|
}
|
|
2737
2736
|
static get DefaultType() {
|
|
2738
|
-
return
|
|
2737
|
+
return Zi;
|
|
2739
2738
|
}
|
|
2740
2739
|
static get NAME() {
|
|
2741
2740
|
return "scrollspy";
|
|
@@ -2748,10 +2747,10 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2748
2747
|
this._observer.disconnect(), super.dispose();
|
|
2749
2748
|
}
|
|
2750
2749
|
_configAfterMerge(t3) {
|
|
2751
|
-
return t3.target =
|
|
2750
|
+
return t3.target = h2(t3.target) || document.body, t3.rootMargin = t3.offset ? `${t3.offset}px 0px -30%` : t3.rootMargin, "string" == typeof t3.threshold && (t3.threshold = t3.threshold.split(",").map((t4) => Number.parseFloat(t4))), t3;
|
|
2752
2751
|
}
|
|
2753
2752
|
_maybeEnableSmoothScroll() {
|
|
2754
|
-
this._config.smoothScroll && (
|
|
2753
|
+
this._config.smoothScroll && (F2.off(this._config.target, Vi), F2.on(this._config.target, Vi, Yi, (t3) => {
|
|
2755
2754
|
const e2 = this._observableSections.get(t3.target.hash);
|
|
2756
2755
|
if (e2) {
|
|
2757
2756
|
t3.preventDefault();
|
|
@@ -2783,28 +2782,28 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2783
2782
|
}
|
|
2784
2783
|
_initializeTargetsAndObservables() {
|
|
2785
2784
|
this._targetLinks = /* @__PURE__ */ new Map(), this._observableSections = /* @__PURE__ */ new Map();
|
|
2786
|
-
const t3 =
|
|
2785
|
+
const t3 = V2.find(Yi, this._config.target);
|
|
2787
2786
|
for (const e2 of t3) {
|
|
2788
|
-
if (!e2.hash ||
|
|
2789
|
-
const t4 =
|
|
2790
|
-
|
|
2787
|
+
if (!e2.hash || u2(e2)) continue;
|
|
2788
|
+
const t4 = V2.findOne(decodeURI(e2.hash), this._element);
|
|
2789
|
+
d2(t4) && (this._targetLinks.set(decodeURI(e2.hash), e2), this._observableSections.set(e2.hash, t4));
|
|
2791
2790
|
}
|
|
2792
2791
|
}
|
|
2793
2792
|
_process(t3) {
|
|
2794
|
-
this._activeTarget !== t3 && (this._clearActiveClass(this._config.target), this._activeTarget = t3, t3.classList.add(
|
|
2793
|
+
this._activeTarget !== t3 && (this._clearActiveClass(this._config.target), this._activeTarget = t3, t3.classList.add(Xi), this._activateParents(t3), F2.trigger(this._element, Ki, { relatedTarget: t3 }));
|
|
2795
2794
|
}
|
|
2796
2795
|
_activateParents(t3) {
|
|
2797
|
-
if (t3.classList.contains("dropdown-item"))
|
|
2798
|
-
else for (const e2 of
|
|
2796
|
+
if (t3.classList.contains("dropdown-item")) V2.findOne(".dropdown-toggle", t3.closest(".dropdown")).classList.add(Xi);
|
|
2797
|
+
else for (const e2 of V2.parents(t3, ".nav, .list-group")) for (const t4 of V2.prev(e2, Gi)) t4.classList.add(Xi);
|
|
2799
2798
|
}
|
|
2800
2799
|
_clearActiveClass(t3) {
|
|
2801
|
-
t3.classList.remove(
|
|
2802
|
-
const e2 =
|
|
2803
|
-
for (const t4 of e2) t4.classList.remove(
|
|
2800
|
+
t3.classList.remove(Xi);
|
|
2801
|
+
const e2 = V2.find(`${Yi}.${Xi}`, t3);
|
|
2802
|
+
for (const t4 of e2) t4.classList.remove(Xi);
|
|
2804
2803
|
}
|
|
2805
2804
|
static jQueryInterface(t3) {
|
|
2806
2805
|
return this.each(function() {
|
|
2807
|
-
const e2 =
|
|
2806
|
+
const e2 = ts.getOrCreateInstance(this, t3);
|
|
2808
2807
|
if ("string" == typeof t3) {
|
|
2809
2808
|
if (void 0 === e2[t3] || t3.startsWith("_") || "constructor" === t3) throw new TypeError(`No method named "${t3}"`);
|
|
2810
2809
|
e2[t3]();
|
|
@@ -2812,13 +2811,13 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2812
2811
|
});
|
|
2813
2812
|
}
|
|
2814
2813
|
}
|
|
2815
|
-
|
|
2816
|
-
for (const t3 of
|
|
2817
|
-
}),
|
|
2818
|
-
const
|
|
2819
|
-
class
|
|
2814
|
+
F2.on(window, Qi, () => {
|
|
2815
|
+
for (const t3 of V2.find('[data-bs-spy="scroll"]')) ts.getOrCreateInstance(t3);
|
|
2816
|
+
}), v2(ts);
|
|
2817
|
+
const es = ".bs.tab", is = `hide${es}`, ss = `hidden${es}`, ns = `show${es}`, os = `shown${es}`, rs = `click${es}`, as = `keydown${es}`, ls = `load${es}`, cs = "ArrowLeft", hs = "ArrowRight", ds = "ArrowUp", us = "ArrowDown", _s = "Home", gs = "End", fs = "active", ms = "fade", ps = "show", bs = ".dropdown-toggle", vs = `:not(${bs})`, ys = '[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]', ws = `.nav-link${vs}, .list-group-item${vs}, [role="tab"]${vs}, ${ys}`, As = `.${fs}[data-bs-toggle="tab"], .${fs}[data-bs-toggle="pill"], .${fs}[data-bs-toggle="list"]`;
|
|
2818
|
+
class Es extends R2 {
|
|
2820
2819
|
constructor(t3) {
|
|
2821
|
-
super(t3), this._parent = this._element.closest('.list-group, .nav, [role="tablist"]'), this._parent && (this._setInitialAttributes(this._parent, this._getChildren()),
|
|
2820
|
+
super(t3), this._parent = this._element.closest('.list-group, .nav, [role="tablist"]'), this._parent && (this._setInitialAttributes(this._parent, this._getChildren()), F2.on(this._element, as, (t4) => this._keydown(t4)));
|
|
2822
2821
|
}
|
|
2823
2822
|
static get NAME() {
|
|
2824
2823
|
return "tab";
|
|
@@ -2826,33 +2825,33 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2826
2825
|
show() {
|
|
2827
2826
|
const t3 = this._element;
|
|
2828
2827
|
if (this._elemIsActive(t3)) return;
|
|
2829
|
-
const e2 = this._getActiveElem(), i3 = e2 ?
|
|
2830
|
-
|
|
2828
|
+
const e2 = this._getActiveElem(), i3 = e2 ? F2.trigger(e2, is, { relatedTarget: t3 }) : null;
|
|
2829
|
+
F2.trigger(t3, ns, { relatedTarget: e2 }).defaultPrevented || i3 && i3.defaultPrevented || (this._deactivate(e2, t3), this._activate(t3, e2));
|
|
2831
2830
|
}
|
|
2832
2831
|
_activate(t3, e2) {
|
|
2833
|
-
t3 && (t3.classList.add(
|
|
2834
|
-
"tab" === t3.getAttribute("role") ? (t3.removeAttribute("tabindex"), t3.setAttribute("aria-selected", true), this._toggleDropDown(t3, true),
|
|
2835
|
-
}, t3, t3.classList.contains(
|
|
2832
|
+
t3 && (t3.classList.add(fs), this._activate(V2.getElementFromSelector(t3)), this._queueCallback(() => {
|
|
2833
|
+
"tab" === t3.getAttribute("role") ? (t3.removeAttribute("tabindex"), t3.setAttribute("aria-selected", true), this._toggleDropDown(t3, true), F2.trigger(t3, os, { relatedTarget: e2 })) : t3.classList.add(ps);
|
|
2834
|
+
}, t3, t3.classList.contains(ms)));
|
|
2836
2835
|
}
|
|
2837
2836
|
_deactivate(t3, e2) {
|
|
2838
|
-
t3 && (t3.classList.remove(
|
|
2839
|
-
"tab" === t3.getAttribute("role") ? (t3.setAttribute("aria-selected", false), t3.setAttribute("tabindex", "-1"), this._toggleDropDown(t3, false),
|
|
2840
|
-
}, t3, t3.classList.contains(
|
|
2837
|
+
t3 && (t3.classList.remove(fs), t3.blur(), this._deactivate(V2.getElementFromSelector(t3)), this._queueCallback(() => {
|
|
2838
|
+
"tab" === t3.getAttribute("role") ? (t3.setAttribute("aria-selected", false), t3.setAttribute("tabindex", "-1"), this._toggleDropDown(t3, false), F2.trigger(t3, ss, { relatedTarget: e2 })) : t3.classList.remove(ps);
|
|
2839
|
+
}, t3, t3.classList.contains(ms)));
|
|
2841
2840
|
}
|
|
2842
2841
|
_keydown(t3) {
|
|
2843
|
-
if (![
|
|
2842
|
+
if (![cs, hs, ds, us, _s, gs].includes(t3.key)) return;
|
|
2844
2843
|
t3.stopPropagation(), t3.preventDefault();
|
|
2845
|
-
const e2 = this._getChildren().filter((t4) => !
|
|
2844
|
+
const e2 = this._getChildren().filter((t4) => !u2(t4));
|
|
2846
2845
|
let i3;
|
|
2847
|
-
if ([
|
|
2846
|
+
if ([_s, gs].includes(t3.key)) i3 = e2[t3.key === _s ? 0 : e2.length - 1];
|
|
2848
2847
|
else {
|
|
2849
|
-
const s3 = [
|
|
2850
|
-
i3 =
|
|
2848
|
+
const s3 = [hs, us].includes(t3.key);
|
|
2849
|
+
i3 = A2(e2, t3.target, s3, true);
|
|
2851
2850
|
}
|
|
2852
|
-
i3 && (i3.focus({ preventScroll: true }),
|
|
2851
|
+
i3 && (i3.focus({ preventScroll: true }), Es.getOrCreateInstance(i3).show());
|
|
2853
2852
|
}
|
|
2854
2853
|
_getChildren() {
|
|
2855
|
-
return
|
|
2854
|
+
return V2.find(ws, this._parent);
|
|
2856
2855
|
}
|
|
2857
2856
|
_getActiveElem() {
|
|
2858
2857
|
return this._getChildren().find((t3) => this._elemIsActive(t3)) || null;
|
|
@@ -2867,33 +2866,33 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2867
2866
|
t3.setAttribute("aria-selected", e2), i3 !== t3 && this._setAttributeIfNotExists(i3, "role", "presentation"), e2 || t3.setAttribute("tabindex", "-1"), this._setAttributeIfNotExists(t3, "role", "tab"), this._setInitialAttributesOnTargetPanel(t3);
|
|
2868
2867
|
}
|
|
2869
2868
|
_setInitialAttributesOnTargetPanel(t3) {
|
|
2870
|
-
const e2 =
|
|
2869
|
+
const e2 = V2.getElementFromSelector(t3);
|
|
2871
2870
|
e2 && (this._setAttributeIfNotExists(e2, "role", "tabpanel"), t3.id && this._setAttributeIfNotExists(e2, "aria-labelledby", `${t3.id}`));
|
|
2872
2871
|
}
|
|
2873
2872
|
_toggleDropDown(t3, e2) {
|
|
2874
2873
|
const i3 = this._getOuterElement(t3);
|
|
2875
2874
|
if (!i3.classList.contains("dropdown")) return;
|
|
2876
2875
|
const s3 = (t4, s4) => {
|
|
2877
|
-
const n3 =
|
|
2876
|
+
const n3 = V2.findOne(t4, i3);
|
|
2878
2877
|
n3 && n3.classList.toggle(s4, e2);
|
|
2879
2878
|
};
|
|
2880
|
-
s3(
|
|
2879
|
+
s3(bs, fs), s3(".dropdown-menu", ps), i3.setAttribute("aria-expanded", e2);
|
|
2881
2880
|
}
|
|
2882
2881
|
_setAttributeIfNotExists(t3, e2, i3) {
|
|
2883
2882
|
t3.hasAttribute(e2) || t3.setAttribute(e2, i3);
|
|
2884
2883
|
}
|
|
2885
2884
|
_elemIsActive(t3) {
|
|
2886
|
-
return t3.classList.contains(
|
|
2885
|
+
return t3.classList.contains(fs);
|
|
2887
2886
|
}
|
|
2888
2887
|
_getInnerElement(t3) {
|
|
2889
|
-
return t3.matches(
|
|
2888
|
+
return t3.matches(ws) ? t3 : V2.findOne(ws, t3);
|
|
2890
2889
|
}
|
|
2891
2890
|
_getOuterElement(t3) {
|
|
2892
2891
|
return t3.closest(".nav-item, .list-group-item") || t3;
|
|
2893
2892
|
}
|
|
2894
2893
|
static jQueryInterface(t3) {
|
|
2895
2894
|
return this.each(function() {
|
|
2896
|
-
const e2 =
|
|
2895
|
+
const e2 = Es.getOrCreateInstance(this);
|
|
2897
2896
|
if ("string" == typeof t3) {
|
|
2898
2897
|
if (void 0 === e2[t3] || t3.startsWith("_") || "constructor" === t3) throw new TypeError(`No method named "${t3}"`);
|
|
2899
2898
|
e2[t3]();
|
|
@@ -2901,40 +2900,40 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2901
2900
|
});
|
|
2902
2901
|
}
|
|
2903
2902
|
}
|
|
2904
|
-
|
|
2905
|
-
["A", "AREA"].includes(this.tagName) && t3.preventDefault(),
|
|
2906
|
-
}),
|
|
2907
|
-
for (const t3 of
|
|
2908
|
-
}),
|
|
2909
|
-
const
|
|
2910
|
-
class
|
|
2903
|
+
F2.on(document, rs, ys, function(t3) {
|
|
2904
|
+
["A", "AREA"].includes(this.tagName) && t3.preventDefault(), u2(this) || Es.getOrCreateInstance(this).show();
|
|
2905
|
+
}), F2.on(window, ls, () => {
|
|
2906
|
+
for (const t3 of V2.find(As)) Es.getOrCreateInstance(t3);
|
|
2907
|
+
}), v2(Es);
|
|
2908
|
+
const Cs = ".bs.toast", Ts = `mouseover${Cs}`, ks = `mouseout${Cs}`, $s = `focusin${Cs}`, Ss = `focusout${Cs}`, Ls = `hide${Cs}`, Os = `hidden${Cs}`, Is = `show${Cs}`, Ds = `shown${Cs}`, Ns = "hide", Ps = "show", xs = "showing", Ms = { animation: "boolean", autohide: "boolean", delay: "number" }, js = { animation: true, autohide: true, delay: 5e3 };
|
|
2909
|
+
class Fs extends R2 {
|
|
2911
2910
|
constructor(t3, e2) {
|
|
2912
2911
|
super(t3, e2), this._timeout = null, this._hasMouseInteraction = false, this._hasKeyboardInteraction = false, this._setListeners();
|
|
2913
2912
|
}
|
|
2914
2913
|
static get Default() {
|
|
2915
|
-
return
|
|
2914
|
+
return js;
|
|
2916
2915
|
}
|
|
2917
2916
|
static get DefaultType() {
|
|
2918
|
-
return
|
|
2917
|
+
return Ms;
|
|
2919
2918
|
}
|
|
2920
2919
|
static get NAME() {
|
|
2921
2920
|
return "toast";
|
|
2922
2921
|
}
|
|
2923
2922
|
show() {
|
|
2924
|
-
|
|
2925
|
-
this._element.classList.remove(
|
|
2923
|
+
F2.trigger(this._element, Is).defaultPrevented || (this._clearTimeout(), this._config.animation && this._element.classList.add("fade"), this._element.classList.remove(Ns), f2(this._element), this._element.classList.add(Ps, xs), this._queueCallback(() => {
|
|
2924
|
+
this._element.classList.remove(xs), F2.trigger(this._element, Ds), this._maybeScheduleHide();
|
|
2926
2925
|
}, this._element, this._config.animation));
|
|
2927
2926
|
}
|
|
2928
2927
|
hide() {
|
|
2929
|
-
this.isShown() && (
|
|
2930
|
-
this._element.classList.add(
|
|
2928
|
+
this.isShown() && (F2.trigger(this._element, Ls).defaultPrevented || (this._element.classList.add(xs), this._queueCallback(() => {
|
|
2929
|
+
this._element.classList.add(Ns), this._element.classList.remove(xs, Ps), F2.trigger(this._element, Os);
|
|
2931
2930
|
}, this._element, this._config.animation)));
|
|
2932
2931
|
}
|
|
2933
2932
|
dispose() {
|
|
2934
|
-
this._clearTimeout(), this.isShown() && this._element.classList.remove(
|
|
2933
|
+
this._clearTimeout(), this.isShown() && this._element.classList.remove(Ps), super.dispose();
|
|
2935
2934
|
}
|
|
2936
2935
|
isShown() {
|
|
2937
|
-
return this._element.classList.contains(
|
|
2936
|
+
return this._element.classList.contains(Ps);
|
|
2938
2937
|
}
|
|
2939
2938
|
_maybeScheduleHide() {
|
|
2940
2939
|
this._config.autohide && (this._hasMouseInteraction || this._hasKeyboardInteraction || (this._timeout = setTimeout(() => {
|
|
@@ -2956,14 +2955,14 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2956
2955
|
this._element === i3 || this._element.contains(i3) || this._maybeScheduleHide();
|
|
2957
2956
|
}
|
|
2958
2957
|
_setListeners() {
|
|
2959
|
-
|
|
2958
|
+
F2.on(this._element, Ts, (t3) => this._onInteraction(t3, true)), F2.on(this._element, ks, (t3) => this._onInteraction(t3, false)), F2.on(this._element, $s, (t3) => this._onInteraction(t3, true)), F2.on(this._element, Ss, (t3) => this._onInteraction(t3, false));
|
|
2960
2959
|
}
|
|
2961
2960
|
_clearTimeout() {
|
|
2962
2961
|
clearTimeout(this._timeout), this._timeout = null;
|
|
2963
2962
|
}
|
|
2964
2963
|
static jQueryInterface(t3) {
|
|
2965
2964
|
return this.each(function() {
|
|
2966
|
-
const e2 =
|
|
2965
|
+
const e2 = Fs.getOrCreateInstance(this, t3);
|
|
2967
2966
|
if ("string" == typeof t3) {
|
|
2968
2967
|
if (void 0 === e2[t3]) throw new TypeError(`No method named "${t3}"`);
|
|
2969
2968
|
e2[t3](this);
|
|
@@ -2971,7 +2970,7 @@ const require$$0 = /* @__PURE__ */ getAugmentedNamespace(lib);
|
|
|
2971
2970
|
});
|
|
2972
2971
|
}
|
|
2973
2972
|
}
|
|
2974
|
-
return
|
|
2973
|
+
return Q2(Fs), v2(Fs), { Alert: G2, Button: Z2, Carousel: Nt2, Collapse: Qt2, Dropdown: be2, Modal: Ze2, Offcanvas: pi, Popover: Wi, ScrollSpy: ts, Tab: Es, Toast: Fs, Tooltip: Fi };
|
|
2975
2974
|
});
|
|
2976
2975
|
})(bootstrap_min);
|
|
2977
2976
|
var jsxRuntime = { exports: {} };
|