aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/twbs/bootstrap/dist/js/bootstrap.js
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-11-27 08:04:00 +0000
committerMario <mario@mariovavti.com>2020-11-27 08:04:00 +0000
commitf4bb7bcbff3770387c2fecfa91ce4a60b916a474 (patch)
treeea007e664d435f1f3d63c87bfe1600484d2bd46c /vendor/twbs/bootstrap/dist/js/bootstrap.js
parent07e5b8295ea9d342f66d8119d88bd58124b548e6 (diff)
downloadvolse-hubzilla-f4bb7bcbff3770387c2fecfa91ce4a60b916a474.tar.gz
volse-hubzilla-f4bb7bcbff3770387c2fecfa91ce4a60b916a474.tar.bz2
volse-hubzilla-f4bb7bcbff3770387c2fecfa91ce4a60b916a474.zip
update composer libs
Diffstat (limited to 'vendor/twbs/bootstrap/dist/js/bootstrap.js')
-rw-r--r--vendor/twbs/bootstrap/dist/js/bootstrap.js820
1 files changed, 414 insertions, 406 deletions
diff --git a/vendor/twbs/bootstrap/dist/js/bootstrap.js b/vendor/twbs/bootstrap/dist/js/bootstrap.js
index 0fb3f46e8..8b95e652f 100644
--- a/vendor/twbs/bootstrap/dist/js/bootstrap.js
+++ b/vendor/twbs/bootstrap/dist/js/bootstrap.js
@@ -1,5 +1,5 @@
/*!
- * Bootstrap v4.5.2 (https://getbootstrap.com/)
+ * Bootstrap v4.5.3 (https://getbootstrap.com/)
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/
@@ -9,8 +9,10 @@
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.bootstrap = {}, global.jQuery, global.Popper));
}(this, (function (exports, $, Popper) { 'use strict';
- $ = $ && Object.prototype.hasOwnProperty.call($, 'default') ? $['default'] : $;
- Popper = Popper && Object.prototype.hasOwnProperty.call(Popper, 'default') ? Popper['default'] : Popper;
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
+
+ var $__default = /*#__PURE__*/_interopDefaultLegacy($);
+ var Popper__default = /*#__PURE__*/_interopDefaultLegacy(Popper);
function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
@@ -54,7 +56,7 @@
/**
* --------------------------------------------------------------------------
- * Bootstrap (v4.5.2): util.js
+ * Bootstrap (v4.5.3): util.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
* --------------------------------------------------------------------------
*/
@@ -81,7 +83,7 @@
bindType: TRANSITION_END,
delegateType: TRANSITION_END,
handle: function handle(event) {
- if ($(event.target).is(this)) {
+ if ($__default['default'](event.target).is(this)) {
return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params
}
@@ -94,7 +96,7 @@
var _this = this;
var called = false;
- $(this).one(Util.TRANSITION_END, function () {
+ $__default['default'](this).one(Util.TRANSITION_END, function () {
called = true;
});
setTimeout(function () {
@@ -106,8 +108,8 @@
}
function setTransitionEndSupport() {
- $.fn.emulateTransitionEnd = transitionEndEmulator;
- $.event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
+ $__default['default'].fn.emulateTransitionEnd = transitionEndEmulator;
+ $__default['default'].event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
}
/**
* --------------------------------------------------------------------------
@@ -120,7 +122,6 @@
TRANSITION_END: 'bsTransitionEnd',
getUID: function getUID(prefix) {
do {
- // eslint-disable-next-line no-bitwise
prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
} while (document.getElementById(prefix));
@@ -136,7 +137,7 @@
try {
return document.querySelector(selector) ? selector : null;
- } catch (err) {
+ } catch (_) {
return null;
}
},
@@ -146,8 +147,8 @@
} // Get transition-duration of the element
- var transitionDuration = $(element).css('transition-duration');
- var transitionDelay = $(element).css('transition-delay');
+ var transitionDuration = $__default['default'](element).css('transition-duration');
+ var transitionDelay = $__default['default'](element).css('transition-delay');
var floatTransitionDuration = parseFloat(transitionDuration);
var floatTransitionDelay = parseFloat(transitionDelay); // Return 0 if element or transition duration is not found
@@ -164,9 +165,8 @@
return element.offsetHeight;
},
triggerTransitionEnd: function triggerTransitionEnd(element) {
- $(element).trigger(TRANSITION_END);
+ $__default['default'](element).trigger(TRANSITION_END);
},
- // TODO: Remove in v5
supportsTransitionEnd: function supportsTransitionEnd() {
return Boolean(TRANSITION_END);
},
@@ -209,11 +209,11 @@
return Util.findShadowRoot(element.parentNode);
},
jQueryDetection: function jQueryDetection() {
- if (typeof $ === 'undefined') {
+ if (typeof $__default['default'] === 'undefined') {
throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.');
}
- var version = $.fn.jquery.split(' ')[0].split('.');
+ var version = $__default['default'].fn.jquery.split(' ')[0].split('.');
var minMajor = 1;
var ltMajor = 2;
var minMinor = 9;
@@ -235,11 +235,11 @@
*/
var NAME = 'alert';
- var VERSION = '4.5.2';
+ var VERSION = '4.5.3';
var DATA_KEY = 'bs.alert';
var EVENT_KEY = "." + DATA_KEY;
var DATA_API_KEY = '.data-api';
- var JQUERY_NO_CONFLICT = $.fn[NAME];
+ var JQUERY_NO_CONFLICT = $__default['default'].fn[NAME];
var SELECTOR_DISMISS = '[data-dismiss="alert"]';
var EVENT_CLOSE = "close" + EVENT_KEY;
var EVENT_CLOSED = "closed" + EVENT_KEY;
@@ -279,7 +279,7 @@
};
_proto.dispose = function dispose() {
- $.removeData(this._element, DATA_KEY);
+ $__default['default'].removeData(this._element, DATA_KEY);
this._element = null;
} // Private
;
@@ -293,43 +293,43 @@
}
if (!parent) {
- parent = $(element).closest("." + CLASS_NAME_ALERT)[0];
+ parent = $__default['default'](element).closest("." + CLASS_NAME_ALERT)[0];
}
return parent;
};
_proto._triggerCloseEvent = function _triggerCloseEvent(element) {
- var closeEvent = $.Event(EVENT_CLOSE);
- $(element).trigger(closeEvent);
+ var closeEvent = $__default['default'].Event(EVENT_CLOSE);
+ $__default['default'](element).trigger(closeEvent);
return closeEvent;
};
_proto._removeElement = function _removeElement(element) {
var _this = this;
- $(element).removeClass(CLASS_NAME_SHOW);
+ $__default['default'](element).removeClass(CLASS_NAME_SHOW);
- if (!$(element).hasClass(CLASS_NAME_FADE)) {
+ if (!$__default['default'](element).hasClass(CLASS_NAME_FADE)) {
this._destroyElement(element);
return;
}
var transitionDuration = Util.getTransitionDurationFromElement(element);
- $(element).one(Util.TRANSITION_END, function (event) {
+ $__default['default'](element).one(Util.TRANSITION_END, function (event) {
return _this._destroyElement(element, event);
}).emulateTransitionEnd(transitionDuration);
};
_proto._destroyElement = function _destroyElement(element) {
- $(element).detach().trigger(EVENT_CLOSED).remove();
+ $__default['default'](element).detach().trigger(EVENT_CLOSED).remove();
} // Static
;
Alert._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
- var $element = $(this);
+ var $element = $__default['default'](this);
var data = $element.data(DATA_KEY);
if (!data) {
@@ -369,18 +369,18 @@
*/
- $(document).on(EVENT_CLICK_DATA_API, SELECTOR_DISMISS, Alert._handleDismiss(new Alert()));
+ $__default['default'](document).on(EVENT_CLICK_DATA_API, SELECTOR_DISMISS, Alert._handleDismiss(new Alert()));
/**
* ------------------------------------------------------------------------
* jQuery
* ------------------------------------------------------------------------
*/
- $.fn[NAME] = Alert._jQueryInterface;
- $.fn[NAME].Constructor = Alert;
+ $__default['default'].fn[NAME] = Alert._jQueryInterface;
+ $__default['default'].fn[NAME].Constructor = Alert;
- $.fn[NAME].noConflict = function () {
- $.fn[NAME] = JQUERY_NO_CONFLICT;
+ $__default['default'].fn[NAME].noConflict = function () {
+ $__default['default'].fn[NAME] = JQUERY_NO_CONFLICT;
return Alert._jQueryInterface;
};
@@ -391,11 +391,11 @@
*/
var NAME$1 = 'button';
- var VERSION$1 = '4.5.2';
+ var VERSION$1 = '4.5.3';
var DATA_KEY$1 = 'bs.button';
var EVENT_KEY$1 = "." + DATA_KEY$1;
var DATA_API_KEY$1 = '.data-api';
- var JQUERY_NO_CONFLICT$1 = $.fn[NAME$1];
+ var JQUERY_NO_CONFLICT$1 = $__default['default'].fn[NAME$1];
var CLASS_NAME_ACTIVE = 'active';
var CLASS_NAME_BUTTON = 'btn';
var CLASS_NAME_FOCUS = 'focus';
@@ -418,6 +418,7 @@
var Button = /*#__PURE__*/function () {
function Button(element) {
this._element = element;
+ this.shouldAvoidTriggerChange = false;
} // Getters
@@ -427,7 +428,7 @@
_proto.toggle = function toggle() {
var triggerChangeEvent = true;
var addAriaPressed = true;
- var rootElement = $(this._element).closest(SELECTOR_DATA_TOGGLES)[0];
+ var rootElement = $__default['default'](this._element).closest(SELECTOR_DATA_TOGGLES)[0];
if (rootElement) {
var input = this._element.querySelector(SELECTOR_INPUT);
@@ -440,7 +441,7 @@
var activeElement = rootElement.querySelector(SELECTOR_ACTIVE);
if (activeElement) {
- $(activeElement).removeClass(CLASS_NAME_ACTIVE);
+ $__default['default'](activeElement).removeClass(CLASS_NAME_ACTIVE);
}
}
}
@@ -451,7 +452,9 @@
input.checked = !this._element.classList.contains(CLASS_NAME_ACTIVE);
}
- $(input).trigger('change');
+ if (!this.shouldAvoidTriggerChange) {
+ $__default['default'](input).trigger('change');
+ }
}
input.focus();
@@ -465,26 +468,29 @@
}
if (triggerChangeEvent) {
- $(this._element).toggleClass(CLASS_NAME_ACTIVE);
+ $__default['default'](this._element).toggleClass(CLASS_NAME_ACTIVE);
}
}
};
_proto.dispose = function dispose() {
- $.removeData(this._element, DATA_KEY$1);
+ $__default['default'].removeData(this._element, DATA_KEY$1);
this._element = null;
} // Static
;
- Button._jQueryInterface = function _jQueryInterface(config) {
+ Button._jQueryInterface = function _jQueryInterface(config, avoidTriggerChange) {
return this.each(function () {
- var data = $(this).data(DATA_KEY$1);
+ var $element = $__default['default'](this);
+ var data = $element.data(DATA_KEY$1);
if (!data) {
data = new Button(this);
- $(this).data(DATA_KEY$1, data);
+ $element.data(DATA_KEY$1, data);
}
+ data.shouldAvoidTriggerChange = avoidTriggerChange;
+
if (config === 'toggle') {
data[config]();
}
@@ -507,12 +513,12 @@
*/
- $(document).on(EVENT_CLICK_DATA_API$1, SELECTOR_DATA_TOGGLE_CARROT, function (event) {
+ $__default['default'](document).on(EVENT_CLICK_DATA_API$1, SELECTOR_DATA_TOGGLE_CARROT, function (event) {
var button = event.target;
var initialButton = button;
- if (!$(button).hasClass(CLASS_NAME_BUTTON)) {
- button = $(button).closest(SELECTOR_BUTTON)[0];
+ if (!$__default['default'](button).hasClass(CLASS_NAME_BUTTON)) {
+ button = $__default['default'](button).closest(SELECTOR_BUTTON)[0];
}
if (!button || button.hasAttribute('disabled') || button.classList.contains('disabled')) {
@@ -526,15 +532,15 @@
return;
}
- if (initialButton.tagName !== 'LABEL' || inputBtn && inputBtn.type !== 'checkbox') {
- Button._jQueryInterface.call($(button), 'toggle');
+ if (initialButton.tagName === 'INPUT' || button.tagName !== 'LABEL') {
+ Button._jQueryInterface.call($__default['default'](button), 'toggle', initialButton.tagName === 'INPUT');
}
}
}).on(EVENT_FOCUS_BLUR_DATA_API, SELECTOR_DATA_TOGGLE_CARROT, function (event) {
- var button = $(event.target).closest(SELECTOR_BUTTON)[0];
- $(button).toggleClass(CLASS_NAME_FOCUS, /^focus(in)?$/.test(event.type));
+ var button = $__default['default'](event.target).closest(SELECTOR_BUTTON)[0];
+ $__default['default'](button).toggleClass(CLASS_NAME_FOCUS, /^focus(in)?$/.test(event.type));
});
- $(window).on(EVENT_LOAD_DATA_API, function () {
+ $__default['default'](window).on(EVENT_LOAD_DATA_API, function () {
// ensure correct active class is set to match the controls' actual values/states
// find all checkboxes/readio buttons inside data-toggle groups
var buttons = [].slice.call(document.querySelectorAll(SELECTOR_DATA_TOGGLES_BUTTONS));
@@ -569,11 +575,11 @@
* ------------------------------------------------------------------------
*/
- $.fn[NAME$1] = Button._jQueryInterface;
- $.fn[NAME$1].Constructor = Button;
+ $__default['default'].fn[NAME$1] = Button._jQueryInterface;
+ $__default['default'].fn[NAME$1].Constructor = Button;
- $.fn[NAME$1].noConflict = function () {
- $.fn[NAME$1] = JQUERY_NO_CONFLICT$1;
+ $__default['default'].fn[NAME$1].noConflict = function () {
+ $__default['default'].fn[NAME$1] = JQUERY_NO_CONFLICT$1;
return Button._jQueryInterface;
};
@@ -584,11 +590,11 @@
*/
var NAME$2 = 'carousel';
- var VERSION$2 = '4.5.2';
+ var VERSION$2 = '4.5.3';
var DATA_KEY$2 = 'bs.carousel';
var EVENT_KEY$2 = "." + DATA_KEY$2;
var DATA_API_KEY$2 = '.data-api';
- var JQUERY_NO_CONFLICT$2 = $.fn[NAME$2];
+ var JQUERY_NO_CONFLICT$2 = $__default['default'].fn[NAME$2];
var ARROW_LEFT_KEYCODE = 37; // KeyboardEvent.which value for left arrow key
var ARROW_RIGHT_KEYCODE = 39; // KeyboardEvent.which value for right arrow key
@@ -685,9 +691,10 @@
};
_proto.nextWhenVisible = function nextWhenVisible() {
- // Don't call next when the page isn't visible
+ var $element = $__default['default'](this._element); // Don't call next when the page isn't visible
// or the carousel or its parent isn't visible
- if (!document.hidden && $(this._element).is(':visible') && $(this._element).css('visibility') !== 'hidden') {
+
+ if (!document.hidden && $element.is(':visible') && $element.css('visibility') !== 'hidden') {
this.next();
}
};
@@ -739,7 +746,7 @@
}
if (this._isSliding) {
- $(this._element).one(EVENT_SLID, function () {
+ $__default['default'](this._element).one(EVENT_SLID, function () {
return _this.to(index);
});
return;
@@ -757,8 +764,8 @@
};
_proto.dispose = function dispose() {
- $(this._element).off(EVENT_KEY$2);
- $.removeData(this._element, DATA_KEY$2);
+ $__default['default'](this._element).off(EVENT_KEY$2);
+ $__default['default'].removeData(this._element, DATA_KEY$2);
this._items = null;
this._config = null;
this._element = null;
@@ -800,13 +807,13 @@
var _this2 = this;
if (this._config.keyboard) {
- $(this._element).on(EVENT_KEYDOWN, function (event) {
+ $__default['default'](this._element).on(EVENT_KEYDOWN, function (event) {
return _this2._keydown(event);
});
}
if (this._config.pause === 'hover') {
- $(this._element).on(EVENT_MOUSEENTER, function (event) {
+ $__default['default'](this._element).on(EVENT_MOUSEENTER, function (event) {
return _this2.pause(event);
}).on(EVENT_MOUSELEAVE, function (event) {
return _this2.cycle(event);
@@ -869,27 +876,27 @@
}
};
- $(this._element.querySelectorAll(SELECTOR_ITEM_IMG)).on(EVENT_DRAG_START, function (e) {
+ $__default['default'](this._element.querySelectorAll(SELECTOR_ITEM_IMG)).on(EVENT_DRAG_START, function (e) {
return e.preventDefault();
});
if (this._pointerEvent) {
- $(this._element).on(EVENT_POINTERDOWN, function (event) {
+ $__default['default'](this._element).on(EVENT_POINTERDOWN, function (event) {
return start(event);
});
- $(this._element).on(EVENT_POINTERUP, function (event) {
+ $__default['default'](this._element).on(EVENT_POINTERUP, function (event) {
return end(event);
});
this._element.classList.add(CLASS_NAME_POINTER_EVENT);
} else {
- $(this._element).on(EVENT_TOUCHSTART, function (event) {
+ $__default['default'](this._element).on(EVENT_TOUCHSTART, function (event) {
return start(event);
});
- $(this._element).on(EVENT_TOUCHMOVE, function (event) {
+ $__default['default'](this._element).on(EVENT_TOUCHMOVE, function (event) {
return move(event);
});
- $(this._element).on(EVENT_TOUCHEND, function (event) {
+ $__default['default'](this._element).on(EVENT_TOUCHEND, function (event) {
return end(event);
});
}
@@ -941,25 +948,25 @@
var fromIndex = this._getItemIndex(this._element.querySelector(SELECTOR_ACTIVE_ITEM));
- var slideEvent = $.Event(EVENT_SLIDE, {
+ var slideEvent = $__default['default'].Event(EVENT_SLIDE, {
relatedTarget: relatedTarget,
direction: eventDirectionName,
from: fromIndex,
to: targetIndex
});
- $(this._element).trigger(slideEvent);
+ $__default['default'](this._element).trigger(slideEvent);
return slideEvent;
};
_proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) {
if (this._indicatorsElement) {
var indicators = [].slice.call(this._indicatorsElement.querySelectorAll(SELECTOR_ACTIVE$1));
- $(indicators).removeClass(CLASS_NAME_ACTIVE$1);
+ $__default['default'](indicators).removeClass(CLASS_NAME_ACTIVE$1);
var nextIndicator = this._indicatorsElement.children[this._getItemIndex(element)];
if (nextIndicator) {
- $(nextIndicator).addClass(CLASS_NAME_ACTIVE$1);
+ $__default['default'](nextIndicator).addClass(CLASS_NAME_ACTIVE$1);
}
}
};
@@ -990,7 +997,7 @@
eventDirectionName = DIRECTION_RIGHT;
}
- if (nextElement && $(nextElement).hasClass(CLASS_NAME_ACTIVE$1)) {
+ if (nextElement && $__default['default'](nextElement).hasClass(CLASS_NAME_ACTIVE$1)) {
this._isSliding = false;
return;
}
@@ -1014,18 +1021,18 @@
this._setActiveIndicatorElement(nextElement);
- var slidEvent = $.Event(EVENT_SLID, {
+ var slidEvent = $__default['default'].Event(EVENT_SLID, {
relatedTarget: nextElement,
direction: eventDirectionName,
from: activeElementIndex,
to: nextElementIndex
});
- if ($(this._element).hasClass(CLASS_NAME_SLIDE)) {
- $(nextElement).addClass(orderClassName);
+ if ($__default['default'](this._element).hasClass(CLASS_NAME_SLIDE)) {
+ $__default['default'](nextElement).addClass(orderClassName);
Util.reflow(nextElement);
- $(activeElement).addClass(directionalClassName);
- $(nextElement).addClass(directionalClassName);
+ $__default['default'](activeElement).addClass(directionalClassName);
+ $__default['default'](nextElement).addClass(directionalClassName);
var nextElementInterval = parseInt(nextElement.getAttribute('data-interval'), 10);
if (nextElementInterval) {
@@ -1036,19 +1043,19 @@
}
var transitionDuration = Util.getTransitionDurationFromElement(activeElement);
- $(activeElement).one(Util.TRANSITION_END, function () {
- $(nextElement).removeClass(directionalClassName + " " + orderClassName).addClass(CLASS_NAME_ACTIVE$1);
- $(activeElement).removeClass(CLASS_NAME_ACTIVE$1 + " " + orderClassName + " " + directionalClassName);
+ $__default['default'](activeElement).one(Util.TRANSITION_END, function () {
+ $__default['default'](nextElement).removeClass(directionalClassName + " " + orderClassName).addClass(CLASS_NAME_ACTIVE$1);
+ $__default['default'](activeElement).removeClass(CLASS_NAME_ACTIVE$1 + " " + orderClassName + " " + directionalClassName);
_this4._isSliding = false;
setTimeout(function () {
- return $(_this4._element).trigger(slidEvent);
+ return $__default['default'](_this4._element).trigger(slidEvent);
}, 0);
}).emulateTransitionEnd(transitionDuration);
} else {
- $(activeElement).removeClass(CLASS_NAME_ACTIVE$1);
- $(nextElement).addClass(CLASS_NAME_ACTIVE$1);
+ $__default['default'](activeElement).removeClass(CLASS_NAME_ACTIVE$1);
+ $__default['default'](nextElement).addClass(CLASS_NAME_ACTIVE$1);
this._isSliding = false;
- $(this._element).trigger(slidEvent);
+ $__default['default'](this._element).trigger(slidEvent);
}
if (isCycling) {
@@ -1059,9 +1066,9 @@
Carousel._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
- var data = $(this).data(DATA_KEY$2);
+ var data = $__default['default'](this).data(DATA_KEY$2);
- var _config = _extends({}, Default, $(this).data());
+ var _config = _extends({}, Default, $__default['default'](this).data());
if (typeof config === 'object') {
_config = _extends({}, _config, config);
@@ -1071,7 +1078,7 @@
if (!data) {
data = new Carousel(this, _config);
- $(this).data(DATA_KEY$2, data);
+ $__default['default'](this).data(DATA_KEY$2, data);
}
if (typeof config === 'number') {
@@ -1096,13 +1103,13 @@
return;
}
- var target = $(selector)[0];
+ var target = $__default['default'](selector)[0];
- if (!target || !$(target).hasClass(CLASS_NAME_CAROUSEL)) {
+ if (!target || !$__default['default'](target).hasClass(CLASS_NAME_CAROUSEL)) {
return;
}
- var config = _extends({}, $(target).data(), $(this).data());
+ var config = _extends({}, $__default['default'](target).data(), $__default['default'](this).data());
var slideIndex = this.getAttribute('data-slide-to');
@@ -1110,10 +1117,10 @@
config.interval = false;
}
- Carousel._jQueryInterface.call($(target), config);
+ Carousel._jQueryInterface.call($__default['default'](target), config);
if (slideIndex) {
- $(target).data(DATA_KEY$2).to(slideIndex);
+ $__default['default'](target).data(DATA_KEY$2).to(slideIndex);
}
event.preventDefault();
@@ -1140,12 +1147,12 @@
*/
- $(document).on(EVENT_CLICK_DATA_API$2, SELECTOR_DATA_SLIDE, Carousel._dataApiClickHandler);
- $(window).on(EVENT_LOAD_DATA_API$1, function () {
+ $__default['default'](document).on(EVENT_CLICK_DATA_API$2, SELECTOR_DATA_SLIDE, Carousel._dataApiClickHandler);
+ $__default['default'](window).on(EVENT_LOAD_DATA_API$1, function () {
var carousels = [].slice.call(document.querySelectorAll(SELECTOR_DATA_RIDE));
for (var i = 0, len = carousels.length; i < len; i++) {
- var $carousel = $(carousels[i]);
+ var $carousel = $__default['default'](carousels[i]);
Carousel._jQueryInterface.call($carousel, $carousel.data());
}
@@ -1156,11 +1163,11 @@
* ------------------------------------------------------------------------
*/
- $.fn[NAME$2] = Carousel._jQueryInterface;
- $.fn[NAME$2].Constructor = Carousel;
+ $__default['default'].fn[NAME$2] = Carousel._jQueryInterface;
+ $__default['default'].fn[NAME$2].Constructor = Carousel;
- $.fn[NAME$2].noConflict = function () {
- $.fn[NAME$2] = JQUERY_NO_CONFLICT$2;
+ $__default['default'].fn[NAME$2].noConflict = function () {
+ $__default['default'].fn[NAME$2] = JQUERY_NO_CONFLICT$2;
return Carousel._jQueryInterface;
};
@@ -1171,11 +1178,11 @@
*/
var NAME$3 = 'collapse';
- var VERSION$3 = '4.5.2';
+ var VERSION$3 = '4.5.3';
var DATA_KEY$3 = 'bs.collapse';
var EVENT_KEY$3 = "." + DATA_KEY$3;
var DATA_API_KEY$3 = '.data-api';
- var JQUERY_NO_CONFLICT$3 = $.fn[NAME$3];
+ var JQUERY_NO_CONFLICT$3 = $__default['default'].fn[NAME$3];
var Default$1 = {
toggle: true,
parent: ''
@@ -1241,7 +1248,7 @@
// Public
_proto.toggle = function toggle() {
- if ($(this._element).hasClass(CLASS_NAME_SHOW$1)) {
+ if ($__default['default'](this._element).hasClass(CLASS_NAME_SHOW$1)) {
this.hide();
} else {
this.show();
@@ -1251,7 +1258,7 @@
_proto.show = function show() {
var _this = this;
- if (this._isTransitioning || $(this._element).hasClass(CLASS_NAME_SHOW$1)) {
+ if (this._isTransitioning || $__default['default'](this._element).hasClass(CLASS_NAME_SHOW$1)) {
return;
}
@@ -1273,64 +1280,64 @@
}
if (actives) {
- activesData = $(actives).not(this._selector).data(DATA_KEY$3);
+ activesData = $__default['default'](actives).not(this._selector).data(DATA_KEY$3);
if (activesData && activesData._isTransitioning) {
return;
}
}
- var startEvent = $.Event(EVENT_SHOW);
- $(this._element).trigger(startEvent);
+ var startEvent = $__default['default'].Event(EVENT_SHOW);
+ $__default['default'](this._element).trigger(startEvent);
if (startEvent.isDefaultPrevented()) {
return;
}
if (actives) {
- Collapse._jQueryInterface.call($(actives).not(this._selector), 'hide');
+ Collapse._jQueryInterface.call($__default['default'](actives).not(this._selector), 'hide');
if (!activesData) {
- $(actives).data(DATA_KEY$3, null);
+ $__default['default'](actives).data(DATA_KEY$3, null);
}
}
var dimension = this._getDimension();
- $(this._element).removeClass(CLASS_NAME_COLLAPSE).addClass(CLASS_NAME_COLLAPSING);
+ $__default['default'](this._element).removeClass(CLASS_NAME_COLLAPSE).addClass(CLASS_NAME_COLLAPSING);
this._element.style[dimension] = 0;
if (this._triggerArray.length) {
- $(this._triggerArray).removeClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', true);
+ $__default['default'](this._triggerArray).removeClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', true);
}
this.setTransitioning(true);
var complete = function complete() {
- $(_this._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW$1);
+ $__default['default'](_this._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW$1);
_this._element.style[dimension] = '';
_this.setTransitioning(false);
- $(_this._element).trigger(EVENT_SHOWN);
+ $__default['default'](_this._element).trigger(EVENT_SHOWN);
};
var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
var scrollSize = "scroll" + capitalizedDimension;
var transitionDuration = Util.getTransitionDurationFromElement(this._element);
- $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
+ $__default['default'](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
this._element.style[dimension] = this._element[scrollSize] + "px";
};
_proto.hide = function hide() {
var _this2 = this;
- if (this._isTransitioning || !$(this._element).hasClass(CLASS_NAME_SHOW$1)) {
+ if (this._isTransitioning || !$__default['default'](this._element).hasClass(CLASS_NAME_SHOW$1)) {
return;
}
- var startEvent = $.Event(EVENT_HIDE);
- $(this._element).trigger(startEvent);
+ var startEvent = $__default['default'].Event(EVENT_HIDE);
+ $__default['default'](this._element).trigger(startEvent);
if (startEvent.isDefaultPrevented()) {
return;
@@ -1340,7 +1347,7 @@
this._element.style[dimension] = this._element.getBoundingClientRect()[dimension] + "px";
Util.reflow(this._element);
- $(this._element).addClass(CLASS_NAME_COLLAPSING).removeClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW$1);
+ $__default['default'](this._element).addClass(CLASS_NAME_COLLAPSING).removeClass(CLASS_NAME_COLLAPSE + " " + CLASS_NAME_SHOW$1);
var triggerArrayLength = this._triggerArray.length;
if (triggerArrayLength > 0) {
@@ -1349,10 +1356,10 @@
var selector = Util.getSelectorFromElement(trigger);
if (selector !== null) {
- var $elem = $([].slice.call(document.querySelectorAll(selector)));
+ var $elem = $__default['default']([].slice.call(document.querySelectorAll(selector)));
if (!$elem.hasClass(CLASS_NAME_SHOW$1)) {
- $(trigger).addClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', false);
+ $__default['default'](trigger).addClass(CLASS_NAME_COLLAPSED).attr('aria-expanded', false);
}
}
}
@@ -1363,12 +1370,12 @@
var complete = function complete() {
_this2.setTransitioning(false);
- $(_this2._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE).trigger(EVENT_HIDDEN);
+ $__default['default'](_this2._element).removeClass(CLASS_NAME_COLLAPSING).addClass(CLASS_NAME_COLLAPSE).trigger(EVENT_HIDDEN);
};
this._element.style[dimension] = '';
var transitionDuration = Util.getTransitionDurationFromElement(this._element);
- $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
+ $__default['default'](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
};
_proto.setTransitioning = function setTransitioning(isTransitioning) {
@@ -1376,7 +1383,7 @@
};
_proto.dispose = function dispose() {
- $.removeData(this._element, DATA_KEY$3);
+ $__default['default'].removeData(this._element, DATA_KEY$3);
this._config = null;
this._parent = null;
this._element = null;
@@ -1394,7 +1401,7 @@
};
_proto._getDimension = function _getDimension() {
- var hasWidth = $(this._element).hasClass(DIMENSION_WIDTH);
+ var hasWidth = $__default['default'](this._element).hasClass(DIMENSION_WIDTH);
return hasWidth ? DIMENSION_WIDTH : DIMENSION_HEIGHT;
};
@@ -1415,17 +1422,17 @@
var selector = "[data-toggle=\"collapse\"][data-parent=\"" + this._config.parent + "\"]";
var children = [].slice.call(parent.querySelectorAll(selector));
- $(children).each(function (i, element) {
+ $__default['default'](children).each(function (i, element) {
_this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]);
});
return parent;
};
_proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) {
- var isOpen = $(element).hasClass(CLASS_NAME_SHOW$1);
+ var isOpen = $__default['default'](element).hasClass(CLASS_NAME_SHOW$1);
if (triggerArray.length) {
- $(triggerArray).toggleClass(CLASS_NAME_COLLAPSED, !isOpen).attr('aria-expanded', isOpen);
+ $__default['default'](triggerArray).toggleClass(CLASS_NAME_COLLAPSED, !isOpen).attr('aria-expanded', isOpen);
}
} // Static
;
@@ -1437,10 +1444,10 @@
Collapse._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
- var $this = $(this);
- var data = $this.data(DATA_KEY$3);
+ var $element = $__default['default'](this);
+ var data = $element.data(DATA_KEY$3);
- var _config = _extends({}, Default$1, $this.data(), typeof config === 'object' && config ? config : {});
+ var _config = _extends({}, Default$1, $element.data(), typeof config === 'object' && config ? config : {});
if (!data && _config.toggle && typeof config === 'string' && /show|hide/.test(config)) {
_config.toggle = false;
@@ -1448,7 +1455,7 @@
if (!data) {
data = new Collapse(this, _config);
- $this.data(DATA_KEY$3, data);
+ $element.data(DATA_KEY$3, data);
}
if (typeof config === 'string') {
@@ -1482,17 +1489,17 @@
*/
- $(document).on(EVENT_CLICK_DATA_API$3, SELECTOR_DATA_TOGGLE$1, function (event) {
+ $__default['default'](document).on(EVENT_CLICK_DATA_API$3, SELECTOR_DATA_TOGGLE$1, function (event) {
// preventDefault only for <a> elements (which change the URL) not inside the collapsible element
if (event.currentTarget.tagName === 'A') {
event.preventDefault();
}
- var $trigger = $(this);
+ var $trigger = $__default['default'](this);
var selector = Util.getSelectorFromElement(this);
var selectors = [].slice.call(document.querySelectorAll(selector));
- $(selectors).each(function () {
- var $target = $(this);
+ $__default['default'](selectors).each(function () {
+ var $target = $__default['default'](this);
var data = $target.data(DATA_KEY$3);
var config = data ? 'toggle' : $trigger.data();
@@ -1505,11 +1512,11 @@
* ------------------------------------------------------------------------
*/
- $.fn[NAME$3] = Collapse._jQueryInterface;
- $.fn[NAME$3].Constructor = Collapse;
+ $__default['default'].fn[NAME$3] = Collapse._jQueryInterface;
+ $__default['default'].fn[NAME$3].Constructor = Collapse;
- $.fn[NAME$3].noConflict = function () {
- $.fn[NAME$3] = JQUERY_NO_CONFLICT$3;
+ $__default['default'].fn[NAME$3].noConflict = function () {
+ $__default['default'].fn[NAME$3] = JQUERY_NO_CONFLICT$3;
return Collapse._jQueryInterface;
};
@@ -1520,11 +1527,11 @@
*/
var NAME$4 = 'dropdown';
- var VERSION$4 = '4.5.2';
+ var VERSION$4 = '4.5.3';
var DATA_KEY$4 = 'bs.dropdown';
var EVENT_KEY$4 = "." + DATA_KEY$4;
var DATA_API_KEY$4 = '.data-api';
- var JQUERY_NO_CONFLICT$4 = $.fn[NAME$4];
+ var JQUERY_NO_CONFLICT$4 = $__default['default'].fn[NAME$4];
var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key
var SPACE_KEYCODE = 32; // KeyboardEvent.which value for space key
@@ -1602,11 +1609,11 @@
// Public
_proto.toggle = function toggle() {
- if (this._element.disabled || $(this._element).hasClass(CLASS_NAME_DISABLED)) {
+ if (this._element.disabled || $__default['default'](this._element).hasClass(CLASS_NAME_DISABLED)) {
return;
}
- var isActive = $(this._menu).hasClass(CLASS_NAME_SHOW$2);
+ var isActive = $__default['default'](this._menu).hasClass(CLASS_NAME_SHOW$2);
Dropdown._clearMenus();
@@ -1622,18 +1629,18 @@
usePopper = false;
}
- if (this._element.disabled || $(this._element).hasClass(CLASS_NAME_DISABLED) || $(this._menu).hasClass(CLASS_NAME_SHOW$2)) {
+ if (this._element.disabled || $__default['default'](this._element).hasClass(CLASS_NAME_DISABLED) || $__default['default'](this._menu).hasClass(CLASS_NAME_SHOW$2)) {
return;
}
var relatedTarget = {
relatedTarget: this._element
};
- var showEvent = $.Event(EVENT_SHOW$1, relatedTarget);
+ var showEvent = $__default['default'].Event(EVENT_SHOW$1, relatedTarget);
var parent = Dropdown._getParentFromElement(this._element);
- $(parent).trigger(showEvent);
+ $__default['default'](parent).trigger(showEvent);
if (showEvent.isDefaultPrevented()) {
return;
@@ -1645,7 +1652,7 @@
* Check for Popper dependency
* Popper - https://popper.js.org
*/
- if (typeof Popper === 'undefined') {
+ if (typeof Popper__default['default'] === 'undefined') {
throw new TypeError('Bootstrap\'s dropdowns require Popper.js (https://popper.js.org/)');
}
@@ -1665,41 +1672,41 @@
if (this._config.boundary !== 'scrollParent') {
- $(parent).addClass(CLASS_NAME_POSITION_STATIC);
+ $__default['default'](parent).addClass(CLASS_NAME_POSITION_STATIC);
}
- this._popper = new Popper(referenceElement, this._menu, this._getPopperConfig());
+ this._popper = new Popper__default['default'](referenceElement, this._menu, this._getPopperConfig());
} // If this is a touch-enabled device we add extra
// empty mouseover listeners to the body's immediate children;
// only needed because of broken event delegation on iOS
// https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
- if ('ontouchstart' in document.documentElement && $(parent).closest(SELECTOR_NAVBAR_NAV).length === 0) {
- $(document.body).children().on('mouseover', null, $.noop);
+ if ('ontouchstart' in document.documentElement && $__default['default'](parent).closest(SELECTOR_NAVBAR_NAV).length === 0) {
+ $__default['default'](document.body).children().on('mouseover', null, $__default['default'].noop);
}
this._element.focus();
this._element.setAttribute('aria-expanded', true);
- $(this._menu).toggleClass(CLASS_NAME_SHOW$2);
- $(parent).toggleClass(CLASS_NAME_SHOW$2).trigger($.Event(EVENT_SHOWN$1, relatedTarget));
+ $__default['default'](this._menu).toggleClass(CLASS_NAME_SHOW$2);
+ $__default['default'](parent).toggleClass(CLASS_NAME_SHOW$2).trigger($__default['default'].Event(EVENT_SHOWN$1, relatedTarget));
};
_proto.hide = function hide() {
- if (this._element.disabled || $(this._element).hasClass(CLASS_NAME_DISABLED) || !$(this._menu).hasClass(CLASS_NAME_SHOW$2)) {
+ if (this._element.disabled || $__default['default'](this._element).hasClass(CLASS_NAME_DISABLED) || !$__default['default'](this._menu).hasClass(CLASS_NAME_SHOW$2)) {
return;
}
var relatedTarget = {
relatedTarget: this._element
};
- var hideEvent = $.Event(EVENT_HIDE$1, relatedTarget);
+ var hideEvent = $__default['default'].Event(EVENT_HIDE$1, relatedTarget);
var parent = Dropdown._getParentFromElement(this._element);
- $(parent).trigger(hideEvent);
+ $__default['default'](parent).trigger(hideEvent);
if (hideEvent.isDefaultPrevented()) {
return;
@@ -1709,13 +1716,13 @@
this._popper.destroy();
}
- $(this._menu).toggleClass(CLASS_NAME_SHOW$2);
- $(parent).toggleClass(CLASS_NAME_SHOW$2).trigger($.Event(EVENT_HIDDEN$1, relatedTarget));
+ $__default['default'](this._menu).toggleClass(CLASS_NAME_SHOW$2);
+ $__default['default'](parent).toggleClass(CLASS_NAME_SHOW$2).trigger($__default['default'].Event(EVENT_HIDDEN$1, relatedTarget));
};
_proto.dispose = function dispose() {
- $.removeData(this._element, DATA_KEY$4);
- $(this._element).off(EVENT_KEY$4);
+ $__default['default'].removeData(this._element, DATA_KEY$4);
+ $__default['default'](this._element).off(EVENT_KEY$4);
this._element = null;
this._menu = null;
@@ -1738,7 +1745,7 @@
_proto._addEventListeners = function _addEventListeners() {
var _this = this;
- $(this._element).on(EVENT_CLICK, function (event) {
+ $__default['default'](this._element).on(EVENT_CLICK, function (event) {
event.preventDefault();
event.stopPropagation();
@@ -1747,7 +1754,7 @@
};
_proto._getConfig = function _getConfig(config) {
- config = _extends({}, this.constructor.Default, $(this._element).data(), config);
+ config = _extends({}, this.constructor.Default, $__default['default'](this._element).data(), config);
Util.typeCheckConfig(NAME$4, config, this.constructor.DefaultType);
return config;
};
@@ -1765,16 +1772,16 @@
};
_proto._getPlacement = function _getPlacement() {
- var $parentDropdown = $(this._element.parentNode);
+ var $parentDropdown = $__default['default'](this._element.parentNode);
var placement = PLACEMENT_BOTTOM; // Handle dropup
if ($parentDropdown.hasClass(CLASS_NAME_DROPUP)) {
- placement = $(this._menu).hasClass(CLASS_NAME_MENURIGHT) ? PLACEMENT_TOPEND : PLACEMENT_TOP;
+ placement = $__default['default'](this._menu).hasClass(CLASS_NAME_MENURIGHT) ? PLACEMENT_TOPEND : PLACEMENT_TOP;
} else if ($parentDropdown.hasClass(CLASS_NAME_DROPRIGHT)) {
placement = PLACEMENT_RIGHT;
} else if ($parentDropdown.hasClass(CLASS_NAME_DROPLEFT)) {
placement = PLACEMENT_LEFT;
- } else if ($(this._menu).hasClass(CLASS_NAME_MENURIGHT)) {
+ } else if ($__default['default'](this._menu).hasClass(CLASS_NAME_MENURIGHT)) {
placement = PLACEMENT_BOTTOMEND;
}
@@ -1782,7 +1789,7 @@
};
_proto._detectNavbar = function _detectNavbar() {
- return $(this._element).closest('.navbar').length > 0;
+ return $__default['default'](this._element).closest('.navbar').length > 0;
};
_proto._getOffset = function _getOffset() {
@@ -1828,13 +1835,13 @@
Dropdown._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
- var data = $(this).data(DATA_KEY$4);
+ var data = $__default['default'](this).data(DATA_KEY$4);
var _config = typeof config === 'object' ? config : null;
if (!data) {
data = new Dropdown(this, _config);
- $(this).data(DATA_KEY$4, data);
+ $__default['default'](this).data(DATA_KEY$4, data);
}
if (typeof config === 'string') {
@@ -1857,7 +1864,7 @@
for (var i = 0, len = toggles.length; i < len; i++) {
var parent = Dropdown._getParentFromElement(toggles[i]);
- var context = $(toggles[i]).data(DATA_KEY$4);
+ var context = $__default['default'](toggles[i]).data(DATA_KEY$4);
var relatedTarget = {
relatedTarget: toggles[i]
};
@@ -1872,16 +1879,16 @@
var dropdownMenu = context._menu;
- if (!$(parent).hasClass(CLASS_NAME_SHOW$2)) {
+ if (!$__default['default'](parent).hasClass(CLASS_NAME_SHOW$2)) {
continue;
}
- if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'keyup' && event.which === TAB_KEYCODE) && $.contains(parent, event.target)) {
+ if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'keyup' && event.which === TAB_KEYCODE) && $__default['default'].contains(parent, event.target)) {
continue;
}
- var hideEvent = $.Event(EVENT_HIDE$1, relatedTarget);
- $(parent).trigger(hideEvent);
+ var hideEvent = $__default['default'].Event(EVENT_HIDE$1, relatedTarget);
+ $__default['default'](parent).trigger(hideEvent);
if (hideEvent.isDefaultPrevented()) {
continue;
@@ -1890,7 +1897,7 @@
if ('ontouchstart' in document.documentElement) {
- $(document.body).children().off('mouseover', null, $.noop);
+ $__default['default'](document.body).children().off('mouseover', null, $__default['default'].noop);
}
toggles[i].setAttribute('aria-expanded', 'false');
@@ -1899,8 +1906,8 @@
context._popper.destroy();
}
- $(dropdownMenu).removeClass(CLASS_NAME_SHOW$2);
- $(parent).removeClass(CLASS_NAME_SHOW$2).trigger($.Event(EVENT_HIDDEN$1, relatedTarget));
+ $__default['default'](dropdownMenu).removeClass(CLASS_NAME_SHOW$2);
+ $__default['default'](parent).removeClass(CLASS_NAME_SHOW$2).trigger($__default['default'].Event(EVENT_HIDDEN$1, relatedTarget));
}
};
@@ -1924,17 +1931,17 @@
// - If key is other than escape
// - If key is not up or down => not a dropdown command
// - If trigger inside the menu => not a dropdown command
- if (/input|textarea/i.test(event.target.tagName) ? event.which === SPACE_KEYCODE || event.which !== ESCAPE_KEYCODE && (event.which !== ARROW_DOWN_KEYCODE && event.which !== ARROW_UP_KEYCODE || $(event.target).closest(SELECTOR_MENU).length) : !REGEXP_KEYDOWN.test(event.which)) {
+ if (/input|textarea/i.test(event.target.tagName) ? event.which === SPACE_KEYCODE || event.which !== ESCAPE_KEYCODE && (event.which !== ARROW_DOWN_KEYCODE && event.which !== ARROW_UP_KEYCODE || $__default['default'](event.target).closest(SELECTOR_MENU).length) : !REGEXP_KEYDOWN.test(event.which)) {
return;
}
- if (this.disabled || $(this).hasClass(CLASS_NAME_DISABLED)) {
+ if (this.disabled || $__default['default'](this).hasClass(CLASS_NAME_DISABLED)) {
return;
}
var parent = Dropdown._getParentFromElement(this);
- var isActive = $(parent).hasClass(CLASS_NAME_SHOW$2);
+ var isActive = $__default['default'](parent).hasClass(CLASS_NAME_SHOW$2);
if (!isActive && event.which === ESCAPE_KEYCODE) {
return;
@@ -1943,17 +1950,17 @@
event.preventDefault();
event.stopPropagation();
- if (!isActive || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {
+ if (!isActive || event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE) {
if (event.which === ESCAPE_KEYCODE) {
- $(parent.querySelector(SELECTOR_DATA_TOGGLE$2)).trigger('focus');
+ $__default['default'](parent.querySelector(SELECTOR_DATA_TOGGLE$2)).trigger('focus');
}
- $(this).trigger('click');
+ $__default['default'](this).trigger('click');
return;
}
var items = [].slice.call(parent.querySelectorAll(SELECTOR_VISIBLE_ITEMS)).filter(function (item) {
- return $(item).is(':visible');
+ return $__default['default'](item).is(':visible');
});
if (items.length === 0) {
@@ -2005,11 +2012,11 @@
*/
- $(document).on(EVENT_KEYDOWN_DATA_API, SELECTOR_DATA_TOGGLE$2, Dropdown._dataApiKeydownHandler).on(EVENT_KEYDOWN_DATA_API, SELECTOR_MENU, Dropdown._dataApiKeydownHandler).on(EVENT_CLICK_DATA_API$4 + " " + EVENT_KEYUP_DATA_API, Dropdown._clearMenus).on(EVENT_CLICK_DATA_API$4, SELECTOR_DATA_TOGGLE$2, function (event) {
+ $__default['default'](document).on(EVENT_KEYDOWN_DATA_API, SELECTOR_DATA_TOGGLE$2, Dropdown._dataApiKeydownHandler).on(EVENT_KEYDOWN_DATA_API, SELECTOR_MENU, Dropdown._dataApiKeydownHandler).on(EVENT_CLICK_DATA_API$4 + " " + EVENT_KEYUP_DATA_API, Dropdown._clearMenus).on(EVENT_CLICK_DATA_API$4, SELECTOR_DATA_TOGGLE$2, function (event) {
event.preventDefault();
event.stopPropagation();
- Dropdown._jQueryInterface.call($(this), 'toggle');
+ Dropdown._jQueryInterface.call($__default['default'](this), 'toggle');
}).on(EVENT_CLICK_DATA_API$4, SELECTOR_FORM_CHILD, function (e) {
e.stopPropagation();
});
@@ -2019,11 +2026,11 @@
* ------------------------------------------------------------------------
*/
- $.fn[NAME$4] = Dropdown._jQueryInterface;
- $.fn[NAME$4].Constructor = Dropdown;
+ $__default['default'].fn[NAME$4] = Dropdown._jQueryInterface;
+ $__default['default'].fn[NAME$4].Constructor = Dropdown;
- $.fn[NAME$4].noConflict = function () {
- $.fn[NAME$4] = JQUERY_NO_CONFLICT$4;
+ $__default['default'].fn[NAME$4].noConflict = function () {
+ $__default['default'].fn[NAME$4] = JQUERY_NO_CONFLICT$4;
return Dropdown._jQueryInterface;
};
@@ -2034,11 +2041,11 @@
*/
var NAME$5 = 'modal';
- var VERSION$5 = '4.5.2';
+ var VERSION$5 = '4.5.3';
var DATA_KEY$5 = 'bs.modal';
var EVENT_KEY$5 = "." + DATA_KEY$5;
var DATA_API_KEY$5 = '.data-api';
- var JQUERY_NO_CONFLICT$5 = $.fn[NAME$5];
+ var JQUERY_NO_CONFLICT$5 = $__default['default'].fn[NAME$5];
var ESCAPE_KEYCODE$1 = 27; // KeyboardEvent.which value for Escape (Esc) key
var Default$3 = {
@@ -2112,14 +2119,14 @@
return;
}
- if ($(this._element).hasClass(CLASS_NAME_FADE$1)) {
+ if ($__default['default'](this._element).hasClass(CLASS_NAME_FADE$1)) {
this._isTransitioning = true;
}
- var showEvent = $.Event(EVENT_SHOW$2, {
+ var showEvent = $__default['default'].Event(EVENT_SHOW$2, {
relatedTarget: relatedTarget
});
- $(this._element).trigger(showEvent);
+ $__default['default'](this._element).trigger(showEvent);
if (this._isShown || showEvent.isDefaultPrevented()) {
return;
@@ -2137,12 +2144,12 @@
this._setResizeEvent();
- $(this._element).on(EVENT_CLICK_DISMISS, SELECTOR_DATA_DISMISS, function (event) {
+ $__default['default'](this._element).on(EVENT_CLICK_DISMISS, SELECTOR_DATA_DISMISS, function (event) {
return _this.hide(event);
});
- $(this._dialog).on(EVENT_MOUSEDOWN_DISMISS, function () {
- $(_this._element).one(EVENT_MOUSEUP_DISMISS, function (event) {
- if ($(event.target).is(_this._element)) {
+ $__default['default'](this._dialog).on(EVENT_MOUSEDOWN_DISMISS, function () {
+ $__default['default'](_this._element).one(EVENT_MOUSEUP_DISMISS, function (event) {
+ if ($__default['default'](event.target).is(_this._element)) {
_this._ignoreBackdropClick = true;
}
});
@@ -2164,15 +2171,15 @@
return;
}
- var hideEvent = $.Event(EVENT_HIDE$2);
- $(this._element).trigger(hideEvent);
+ var hideEvent = $__default['default'].Event(EVENT_HIDE$2);
+ $__default['default'](this._element).trigger(hideEvent);
if (!this._isShown || hideEvent.isDefaultPrevented()) {
return;
}
this._isShown = false;
- var transition = $(this._element).hasClass(CLASS_NAME_FADE$1);
+ var transition = $__default['default'](this._element).hasClass(CLASS_NAME_FADE$1);
if (transition) {
this._isTransitioning = true;
@@ -2182,14 +2189,14 @@
this._setResizeEvent();
- $(document).off(EVENT_FOCUSIN);
- $(this._element).removeClass(CLASS_NAME_SHOW$3);
- $(this._element).off(EVENT_CLICK_DISMISS);
- $(this._dialog).off(EVENT_MOUSEDOWN_DISMISS);
+ $__default['default'](document).off(EVENT_FOCUSIN);
+ $__default['default'](this._element).removeClass(CLASS_NAME_SHOW$3);
+ $__default['default'](this._element).off(EVENT_CLICK_DISMISS);
+ $__default['default'](this._dialog).off(EVENT_MOUSEDOWN_DISMISS);
if (transition) {
var transitionDuration = Util.getTransitionDurationFromElement(this._element);
- $(this._element).one(Util.TRANSITION_END, function (event) {
+ $__default['default'](this._element).one(Util.TRANSITION_END, function (event) {
return _this2._hideModal(event);
}).emulateTransitionEnd(transitionDuration);
} else {
@@ -2199,7 +2206,7 @@
_proto.dispose = function dispose() {
[window, this._element, this._dialog].forEach(function (htmlElement) {
- return $(htmlElement).off(EVENT_KEY$5);
+ return $__default['default'](htmlElement).off(EVENT_KEY$5);
});
/**
* `document` has 2 events `EVENT_FOCUSIN` and `EVENT_CLICK_DATA_API`
@@ -2207,8 +2214,8 @@
* It will remove `EVENT_CLICK_DATA_API` event that should remain
*/
- $(document).off(EVENT_FOCUSIN);
- $.removeData(this._element, DATA_KEY$5);
+ $__default['default'](document).off(EVENT_FOCUSIN);
+ $__default['default'].removeData(this._element, DATA_KEY$5);
this._config = null;
this._element = null;
this._dialog = null;
@@ -2235,10 +2242,10 @@
var _this3 = this;
if (this._config.backdrop === 'static') {
- var hideEventPrevented = $.Event(EVENT_HIDE_PREVENTED);
- $(this._element).trigger(hideEventPrevented);
+ var hideEventPrevented = $__default['default'].Event(EVENT_HIDE_PREVENTED);
+ $__default['default'](this._element).trigger(hideEventPrevented);
- if (hideEventPrevented.defaultPrevented) {
+ if (hideEventPrevented.isDefaultPrevented()) {
return;
}
@@ -2251,12 +2258,12 @@
this._element.classList.add(CLASS_NAME_STATIC);
var modalTransitionDuration = Util.getTransitionDurationFromElement(this._dialog);
- $(this._element).off(Util.TRANSITION_END);
- $(this._element).one(Util.TRANSITION_END, function () {
+ $__default['default'](this._element).off(Util.TRANSITION_END);
+ $__default['default'](this._element).one(Util.TRANSITION_END, function () {
_this3._element.classList.remove(CLASS_NAME_STATIC);
if (!isModalOverflowing) {
- $(_this3._element).one(Util.TRANSITION_END, function () {
+ $__default['default'](_this3._element).one(Util.TRANSITION_END, function () {
_this3._element.style.overflowY = '';
}).emulateTransitionEnd(_this3._element, modalTransitionDuration);
}
@@ -2271,7 +2278,7 @@
_proto._showElement = function _showElement(relatedTarget) {
var _this4 = this;
- var transition = $(this._element).hasClass(CLASS_NAME_FADE$1);
+ var transition = $__default['default'](this._element).hasClass(CLASS_NAME_FADE$1);
var modalBody = this._dialog ? this._dialog.querySelector(SELECTOR_MODAL_BODY) : null;
if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {
@@ -2287,7 +2294,7 @@
this._element.setAttribute('role', 'dialog');
- if ($(this._dialog).hasClass(CLASS_NAME_SCROLLABLE) && modalBody) {
+ if ($__default['default'](this._dialog).hasClass(CLASS_NAME_SCROLLABLE) && modalBody) {
modalBody.scrollTop = 0;
} else {
this._element.scrollTop = 0;
@@ -2297,13 +2304,13 @@
Util.reflow(this._element);
}
- $(this._element).addClass(CLASS_NAME_SHOW$3);
+ $__default['default'](this._element).addClass(CLASS_NAME_SHOW$3);
if (this._config.focus) {
this._enforceFocus();
}
- var shownEvent = $.Event(EVENT_SHOWN$2, {
+ var shownEvent = $__default['default'].Event(EVENT_SHOWN$2, {
relatedTarget: relatedTarget
});
@@ -2313,12 +2320,12 @@
}
_this4._isTransitioning = false;
- $(_this4._element).trigger(shownEvent);
+ $__default['default'](_this4._element).trigger(shownEvent);
};
if (transition) {
var transitionDuration = Util.getTransitionDurationFromElement(this._dialog);
- $(this._dialog).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(transitionDuration);
+ $__default['default'](this._dialog).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(transitionDuration);
} else {
transitionComplete();
}
@@ -2327,9 +2334,9 @@
_proto._enforceFocus = function _enforceFocus() {
var _this5 = this;
- $(document).off(EVENT_FOCUSIN) // Guard against infinite focus loop
+ $__default['default'](document).off(EVENT_FOCUSIN) // Guard against infinite focus loop
.on(EVENT_FOCUSIN, function (event) {
- if (document !== event.target && _this5._element !== event.target && $(_this5._element).has(event.target).length === 0) {
+ if (document !== event.target && _this5._element !== event.target && $__default['default'](_this5._element).has(event.target).length === 0) {
_this5._element.focus();
}
});
@@ -2339,7 +2346,7 @@
var _this6 = this;
if (this._isShown) {
- $(this._element).on(EVENT_KEYDOWN_DISMISS, function (event) {
+ $__default['default'](this._element).on(EVENT_KEYDOWN_DISMISS, function (event) {
if (_this6._config.keyboard && event.which === ESCAPE_KEYCODE$1) {
event.preventDefault();
@@ -2349,7 +2356,7 @@
}
});
} else if (!this._isShown) {
- $(this._element).off(EVENT_KEYDOWN_DISMISS);
+ $__default['default'](this._element).off(EVENT_KEYDOWN_DISMISS);
}
};
@@ -2357,11 +2364,11 @@
var _this7 = this;
if (this._isShown) {
- $(window).on(EVENT_RESIZE, function (event) {
+ $__default['default'](window).on(EVENT_RESIZE, function (event) {
return _this7.handleUpdate(event);
});
} else {
- $(window).off(EVENT_RESIZE);
+ $__default['default'](window).off(EVENT_RESIZE);
}
};
@@ -2379,19 +2386,19 @@
this._isTransitioning = false;
this._showBackdrop(function () {
- $(document.body).removeClass(CLASS_NAME_OPEN);
+ $__default['default'](document.body).removeClass(CLASS_NAME_OPEN);
_this8._resetAdjustments();
_this8._resetScrollbar();
- $(_this8._element).trigger(EVENT_HIDDEN$2);
+ $__default['default'](_this8._element).trigger(EVENT_HIDDEN$2);
});
};
_proto._removeBackdrop = function _removeBackdrop() {
if (this._backdrop) {
- $(this._backdrop).remove();
+ $__default['default'](this._backdrop).remove();
this._backdrop = null;
}
};
@@ -2399,7 +2406,7 @@
_proto._showBackdrop = function _showBackdrop(callback) {
var _this9 = this;
- var animate = $(this._element).hasClass(CLASS_NAME_FADE$1) ? CLASS_NAME_FADE$1 : '';
+ var animate = $__default['default'](this._element).hasClass(CLASS_NAME_FADE$1) ? CLASS_NAME_FADE$1 : '';
if (this._isShown && this._config.backdrop) {
this._backdrop = document.createElement('div');
@@ -2409,8 +2416,8 @@
this._backdrop.classList.add(animate);
}
- $(this._backdrop).appendTo(document.body);
- $(this._element).on(EVENT_CLICK_DISMISS, function (event) {
+ $__default['default'](this._backdrop).appendTo(document.body);
+ $__default['default'](this._element).on(EVENT_CLICK_DISMISS, function (event) {
if (_this9._ignoreBackdropClick) {
_this9._ignoreBackdropClick = false;
return;
@@ -2427,7 +2434,7 @@
Util.reflow(this._backdrop);
}
- $(this._backdrop).addClass(CLASS_NAME_SHOW$3);
+ $__default['default'](this._backdrop).addClass(CLASS_NAME_SHOW$3);
if (!callback) {
return;
@@ -2439,9 +2446,9 @@
}
var backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop);
- $(this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(backdropTransitionDuration);
+ $__default['default'](this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(backdropTransitionDuration);
} else if (!this._isShown && this._backdrop) {
- $(this._backdrop).removeClass(CLASS_NAME_SHOW$3);
+ $__default['default'](this._backdrop).removeClass(CLASS_NAME_SHOW$3);
var callbackRemove = function callbackRemove() {
_this9._removeBackdrop();
@@ -2451,10 +2458,10 @@
}
};
- if ($(this._element).hasClass(CLASS_NAME_FADE$1)) {
+ if ($__default['default'](this._element).hasClass(CLASS_NAME_FADE$1)) {
var _backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop);
- $(this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(_backdropTransitionDuration);
+ $__default['default'](this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(_backdropTransitionDuration);
} else {
callbackRemove();
}
@@ -2499,46 +2506,46 @@
var fixedContent = [].slice.call(document.querySelectorAll(SELECTOR_FIXED_CONTENT));
var stickyContent = [].slice.call(document.querySelectorAll(SELECTOR_STICKY_CONTENT)); // Adjust fixed content padding
- $(fixedContent).each(function (index, element) {
+ $__default['default'](fixedContent).each(function (index, element) {
var actualPadding = element.style.paddingRight;
- var calculatedPadding = $(element).css('padding-right');
- $(element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this10._scrollbarWidth + "px");
+ var calculatedPadding = $__default['default'](element).css('padding-right');
+ $__default['default'](element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this10._scrollbarWidth + "px");
}); // Adjust sticky content margin
- $(stickyContent).each(function (index, element) {
+ $__default['default'](stickyContent).each(function (index, element) {
var actualMargin = element.style.marginRight;
- var calculatedMargin = $(element).css('margin-right');
- $(element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this10._scrollbarWidth + "px");
+ var calculatedMargin = $__default['default'](element).css('margin-right');
+ $__default['default'](element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this10._scrollbarWidth + "px");
}); // Adjust body padding
var actualPadding = document.body.style.paddingRight;
- var calculatedPadding = $(document.body).css('padding-right');
- $(document.body).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px");
+ var calculatedPadding = $__default['default'](document.body).css('padding-right');
+ $__default['default'](document.body).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px");
}
- $(document.body).addClass(CLASS_NAME_OPEN);
+ $__default['default'](document.body).addClass(CLASS_NAME_OPEN);
};
_proto._resetScrollbar = function _resetScrollbar() {
// Restore fixed content padding
var fixedContent = [].slice.call(document.querySelectorAll(SELECTOR_FIXED_CONTENT));
- $(fixedContent).each(function (index, element) {
- var padding = $(element).data('padding-right');
- $(element).removeData('padding-right');
+ $__default['default'](fixedContent).each(function (index, element) {
+ var padding = $__default['default'](element).data('padding-right');
+ $__default['default'](element).removeData('padding-right');
element.style.paddingRight = padding ? padding : '';
}); // Restore sticky content
var elements = [].slice.call(document.querySelectorAll("" + SELECTOR_STICKY_CONTENT));
- $(elements).each(function (index, element) {
- var margin = $(element).data('margin-right');
+ $__default['default'](elements).each(function (index, element) {
+ var margin = $__default['default'](element).data('margin-right');
if (typeof margin !== 'undefined') {
- $(element).css('margin-right', margin).removeData('margin-right');
+ $__default['default'](element).css('margin-right', margin).removeData('margin-right');
}
}); // Restore body padding
- var padding = $(document.body).data('padding-right');
- $(document.body).removeData('padding-right');
+ var padding = $__default['default'](document.body).data('padding-right');
+ $__default['default'](document.body).removeData('padding-right');
document.body.style.paddingRight = padding ? padding : '';
};
@@ -2555,13 +2562,13 @@
Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) {
return this.each(function () {
- var data = $(this).data(DATA_KEY$5);
+ var data = $__default['default'](this).data(DATA_KEY$5);
- var _config = _extends({}, Default$3, $(this).data(), typeof config === 'object' && config ? config : {});
+ var _config = _extends({}, Default$3, $__default['default'](this).data(), typeof config === 'object' && config ? config : {});
if (!data) {
data = new Modal(this, _config);
- $(this).data(DATA_KEY$5, data);
+ $__default['default'](this).data(DATA_KEY$5, data);
}
if (typeof config === 'string') {
@@ -2597,7 +2604,7 @@
*/
- $(document).on(EVENT_CLICK_DATA_API$5, SELECTOR_DATA_TOGGLE$3, function (event) {
+ $__default['default'](document).on(EVENT_CLICK_DATA_API$5, SELECTOR_DATA_TOGGLE$3, function (event) {
var _this11 = this;
var target;
@@ -2607,26 +2614,26 @@
target = document.querySelector(selector);
}
- var config = $(target).data(DATA_KEY$5) ? 'toggle' : _extends({}, $(target).data(), $(this).data());
+ var config = $__default['default'](target).data(DATA_KEY$5) ? 'toggle' : _extends({}, $__default['default'](target).data(), $__default['default'](this).data());
if (this.tagName === 'A' || this.tagName === 'AREA') {
event.preventDefault();
}
- var $target = $(target).one(EVENT_SHOW$2, function (showEvent) {
+ var $target = $__default['default'](target).one(EVENT_SHOW$2, function (showEvent) {
if (showEvent.isDefaultPrevented()) {
// Only register focus restorer if modal will actually get shown
return;
}
$target.one(EVENT_HIDDEN$2, function () {
- if ($(_this11).is(':visible')) {
+ if ($__default['default'](_this11).is(':visible')) {
_this11.focus();
}
});
});
- Modal._jQueryInterface.call($(target), config, this);
+ Modal._jQueryInterface.call($__default['default'](target), config, this);
});
/**
* ------------------------------------------------------------------------
@@ -2634,17 +2641,17 @@
* ------------------------------------------------------------------------
*/
- $.fn[NAME$5] = Modal._jQueryInterface;
- $.fn[NAME$5].Constructor = Modal;
+ $__default['default'].fn[NAME$5] = Modal._jQueryInterface;
+ $__default['default'].fn[NAME$5].Constructor = Modal;
- $.fn[NAME$5].noConflict = function () {
- $.fn[NAME$5] = JQUERY_NO_CONFLICT$5;
+ $__default['default'].fn[NAME$5].noConflict = function () {
+ $__default['default'].fn[NAME$5] = JQUERY_NO_CONFLICT$5;
return Modal._jQueryInterface;
};
/**
* --------------------------------------------------------------------------
- * Bootstrap (v4.5.2): tools/sanitizer.js
+ * Bootstrap (v4.5.3): tools/sanitizer.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
* --------------------------------------------------------------------------
*/
@@ -2770,10 +2777,10 @@
*/
var NAME$6 = 'tooltip';
- var VERSION$6 = '4.5.2';
+ var VERSION$6 = '4.5.3';
var DATA_KEY$6 = 'bs.tooltip';
var EVENT_KEY$6 = "." + DATA_KEY$6;
- var JQUERY_NO_CONFLICT$6 = $.fn[NAME$6];
+ var JQUERY_NO_CONFLICT$6 = $__default['default'].fn[NAME$6];
var CLASS_PREFIX = 'bs-tooltip';
var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
var DISALLOWED_ATTRIBUTES = ['sanitize', 'whiteList', 'sanitizeFn'];
@@ -2850,7 +2857,7 @@
var Tooltip = /*#__PURE__*/function () {
function Tooltip(element, config) {
- if (typeof Popper === 'undefined') {
+ if (typeof Popper__default['default'] === 'undefined') {
throw new TypeError('Bootstrap\'s tooltips require Popper.js (https://popper.js.org/)');
} // private
@@ -2891,11 +2898,11 @@
if (event) {
var dataKey = this.constructor.DATA_KEY;
- var context = $(event.currentTarget).data(dataKey);
+ var context = $__default['default'](event.currentTarget).data(dataKey);
if (!context) {
context = new this.constructor(event.currentTarget, this._getDelegateConfig());
- $(event.currentTarget).data(dataKey, context);
+ $__default['default'](event.currentTarget).data(dataKey, context);
}
context._activeTrigger.click = !context._activeTrigger.click;
@@ -2906,7 +2913,7 @@
context._leave(null, context);
}
} else {
- if ($(this.getTipElement()).hasClass(CLASS_NAME_SHOW$4)) {
+ if ($__default['default'](this.getTipElement()).hasClass(CLASS_NAME_SHOW$4)) {
this._leave(null, this);
return;
@@ -2918,12 +2925,12 @@
_proto.dispose = function dispose() {
clearTimeout(this._timeout);
- $.removeData(this.element, this.constructor.DATA_KEY);
- $(this.element).off(this.constructor.EVENT_KEY);
- $(this.element).closest('.modal').off('hide.bs.modal', this._hideModalHandler);
+ $__default['default'].removeData(this.element, this.constructor.DATA_KEY);
+ $__default['default'](this.element).off(this.constructor.EVENT_KEY);
+ $__default['default'](this.element).closest('.modal').off('hide.bs.modal', this._hideModalHandler);
if (this.tip) {
- $(this.tip).remove();
+ $__default['default'](this.tip).remove();
}
this._isEnabled = null;
@@ -2944,16 +2951,16 @@
_proto.show = function show() {
var _this = this;
- if ($(this.element).css('display') === 'none') {
+ if ($__default['default'](this.element).css('display') === 'none') {
throw new Error('Please use show on visible elements');
}
- var showEvent = $.Event(this.constructor.Event.SHOW);
+ var showEvent = $__default['default'].Event(this.constructor.Event.SHOW);
if (this.isWithContent() && this._isEnabled) {
- $(this.element).trigger(showEvent);
+ $__default['default'](this.element).trigger(showEvent);
var shadowRoot = Util.findShadowRoot(this.element);
- var isInTheDom = $.contains(shadowRoot !== null ? shadowRoot : this.element.ownerDocument.documentElement, this.element);
+ var isInTheDom = $__default['default'].contains(shadowRoot !== null ? shadowRoot : this.element.ownerDocument.documentElement, this.element);
if (showEvent.isDefaultPrevented() || !isInTheDom) {
return;
@@ -2966,7 +2973,7 @@
this.setContent();
if (this.config.animation) {
- $(tip).addClass(CLASS_NAME_FADE$2);
+ $__default['default'](tip).addClass(CLASS_NAME_FADE$2);
}
var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this.element) : this.config.placement;
@@ -2977,21 +2984,21 @@
var container = this._getContainer();
- $(tip).data(this.constructor.DATA_KEY, this);
+ $__default['default'](tip).data(this.constructor.DATA_KEY, this);
- if (!$.contains(this.element.ownerDocument.documentElement, this.tip)) {
- $(tip).appendTo(container);
+ if (!$__default['default'].contains(this.element.ownerDocument.documentElement, this.tip)) {
+ $__default['default'](tip).appendTo(container);
}
- $(this.element).trigger(this.constructor.Event.INSERTED);
- this._popper = new Popper(this.element, tip, this._getPopperConfig(attachment));
- $(tip).addClass(CLASS_NAME_SHOW$4); // If this is a touch-enabled device we add extra
+ $__default['default'](this.element).trigger(this.constructor.Event.INSERTED);
+ this._popper = new Popper__default['default'](this.element, tip, this._getPopperConfig(attachment));
+ $__default['default'](tip).addClass(CLASS_NAME_SHOW$4); // If this is a touch-enabled device we add extra
// empty mouseover listeners to the body's immediate children;
// only needed because of broken event delegation on iOS
// https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
if ('ontouchstart' in document.documentElement) {
- $(document.body).children().on('mouseover', null, $.noop);
+ $__default['default'](document.body).children().on('mouseover', null, $__default['default'].noop);
}
var complete = function complete() {
@@ -3001,16 +3008,16 @@
var prevHoverState = _this._hoverState;
_this._hoverState = null;
- $(_this.element).trigger(_this.constructor.Event.SHOWN);
+ $__default['default'](_this.element).trigger(_this.constructor.Event.SHOWN);
if (prevHoverState === HOVER_STATE_OUT) {
_this._leave(null, _this);
}
};
- if ($(this.tip).hasClass(CLASS_NAME_FADE$2)) {
+ if ($__default['default'](this.tip).hasClass(CLASS_NAME_FADE$2)) {
var transitionDuration = Util.getTransitionDurationFromElement(this.tip);
- $(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
+ $__default['default'](this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
} else {
complete();
}
@@ -3021,7 +3028,7 @@
var _this2 = this;
var tip = this.getTipElement();
- var hideEvent = $.Event(this.constructor.Event.HIDE);
+ var hideEvent = $__default['default'].Event(this.constructor.Event.HIDE);
var complete = function complete() {
if (_this2._hoverState !== HOVER_STATE_SHOW && tip.parentNode) {
@@ -3032,7 +3039,7 @@
_this2.element.removeAttribute('aria-describedby');
- $(_this2.element).trigger(_this2.constructor.Event.HIDDEN);
+ $__default['default'](_this2.element).trigger(_this2.constructor.Event.HIDDEN);
if (_this2._popper !== null) {
_this2._popper.destroy();
@@ -3043,26 +3050,26 @@
}
};
- $(this.element).trigger(hideEvent);
+ $__default['default'](this.element).trigger(hideEvent);
if (hideEvent.isDefaultPrevented()) {
return;
}
- $(tip).removeClass(CLASS_NAME_SHOW$4); // If this is a touch-enabled device we remove the extra
+ $__default['default'](tip).removeClass(CLASS_NAME_SHOW$4); // If this is a touch-enabled device we remove the extra
// empty mouseover listeners we added for iOS support
if ('ontouchstart' in document.documentElement) {
- $(document.body).children().off('mouseover', null, $.noop);
+ $__default['default'](document.body).children().off('mouseover', null, $__default['default'].noop);
}
this._activeTrigger[TRIGGER_CLICK] = false;
this._activeTrigger[TRIGGER_FOCUS] = false;
this._activeTrigger[TRIGGER_HOVER] = false;
- if ($(this.tip).hasClass(CLASS_NAME_FADE$2)) {
+ if ($__default['default'](this.tip).hasClass(CLASS_NAME_FADE$2)) {
var transitionDuration = Util.getTransitionDurationFromElement(tip);
- $(tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
+ $__default['default'](tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
} else {
complete();
}
@@ -3082,29 +3089,29 @@
};
_proto.addAttachmentClass = function addAttachmentClass(attachment) {
- $(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
+ $__default['default'](this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
};
_proto.getTipElement = function getTipElement() {
- this.tip = this.tip || $(this.config.template)[0];
+ this.tip = this.tip || $__default['default'](this.config.template)[0];
return this.tip;
};
_proto.setContent = function setContent() {
var tip = this.getTipElement();
- this.setElementContent($(tip.querySelectorAll(SELECTOR_TOOLTIP_INNER)), this.getTitle());
- $(tip).removeClass(CLASS_NAME_FADE$2 + " " + CLASS_NAME_SHOW$4);
+ this.setElementContent($__default['default'](tip.querySelectorAll(SELECTOR_TOOLTIP_INNER)), this.getTitle());
+ $__default['default'](tip).removeClass(CLASS_NAME_FADE$2 + " " + CLASS_NAME_SHOW$4);
};
_proto.setElementContent = function setElementContent($element, content) {
if (typeof content === 'object' && (content.nodeType || content.jquery)) {
// Content is a DOM node or a jQuery
if (this.config.html) {
- if (!$(content).parent().is($element)) {
+ if (!$__default['default'](content).parent().is($element)) {
$element.empty().append(content);
}
} else {
- $element.text($(content).text());
+ $element.text($__default['default'](content).text());
}
return;
@@ -3184,10 +3191,10 @@
}
if (Util.isElement(this.config.container)) {
- return $(this.config.container);
+ return $__default['default'](this.config.container);
}
- return $(document).find(this.config.container);
+ return $__default['default'](document).find(this.config.container);
};
_proto._getAttachment = function _getAttachment(placement) {
@@ -3200,13 +3207,13 @@
var triggers = this.config.trigger.split(' ');
triggers.forEach(function (trigger) {
if (trigger === 'click') {
- $(_this5.element).on(_this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
+ $__default['default'](_this5.element).on(_this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
return _this5.toggle(event);
});
} else if (trigger !== TRIGGER_MANUAL) {
var eventIn = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSEENTER : _this5.constructor.Event.FOCUSIN;
var eventOut = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSELEAVE : _this5.constructor.Event.FOCUSOUT;
- $(_this5.element).on(eventIn, _this5.config.selector, function (event) {
+ $__default['default'](_this5.element).on(eventIn, _this5.config.selector, function (event) {
return _this5._enter(event);
}).on(eventOut, _this5.config.selector, function (event) {
return _this5._leave(event);
@@ -3220,7 +3227,7 @@
}
};
- $(this.element).closest('.modal').on('hide.bs.modal', this._hideModalHandler);
+ $__default['default'](this.element).closest('.modal').on('hide.bs.modal', this._hideModalHandler);
if (this.config.selector) {
this.config = _extends({}, this.config, {
@@ -3243,18 +3250,18 @@
_proto._enter = function _enter(event, context) {
var dataKey = this.constructor.DATA_KEY;
- context = context || $(event.currentTarget).data(dataKey);
+ context = context || $__default['default'](event.currentTarget).data(dataKey);
if (!context) {
context = new this.constructor(event.currentTarget, this._getDelegateConfig());
- $(event.currentTarget).data(dataKey, context);
+ $__default['default'](event.currentTarget).data(dataKey, context);
}
if (event) {
context._activeTrigger[event.type === 'focusin' ? TRIGGER_FOCUS : TRIGGER_HOVER] = true;
}
- if ($(context.getTipElement()).hasClass(CLASS_NAME_SHOW$4) || context._hoverState === HOVER_STATE_SHOW) {
+ if ($__default['default'](context.getTipElement()).hasClass(CLASS_NAME_SHOW$4) || context._hoverState === HOVER_STATE_SHOW) {
context._hoverState = HOVER_STATE_SHOW;
return;
}
@@ -3276,11 +3283,11 @@
_proto._leave = function _leave(event, context) {
var dataKey = this.constructor.DATA_KEY;
- context = context || $(event.currentTarget).data(dataKey);
+ context = context || $__default['default'](event.currentTarget).data(dataKey);
if (!context) {
context = new this.constructor(event.currentTarget, this._getDelegateConfig());
- $(event.currentTarget).data(dataKey, context);
+ $__default['default'](event.currentTarget).data(dataKey, context);
}
if (event) {
@@ -3317,7 +3324,7 @@
};
_proto._getConfig = function _getConfig(config) {
- var dataAttributes = $(this.element).data();
+ var dataAttributes = $__default['default'](this.element).data();
Object.keys(dataAttributes).forEach(function (dataAttr) {
if (DISALLOWED_ATTRIBUTES.indexOf(dataAttr) !== -1) {
delete dataAttributes[dataAttr];
@@ -3364,7 +3371,7 @@
};
_proto._cleanTipClass = function _cleanTipClass() {
- var $tip = $(this.getTipElement());
+ var $tip = $__default['default'](this.getTipElement());
var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX);
if (tabClass !== null && tabClass.length) {
@@ -3388,7 +3395,7 @@
return;
}
- $(tip).removeClass(CLASS_NAME_FADE$2);
+ $__default['default'](tip).removeClass(CLASS_NAME_FADE$2);
this.config.animation = false;
this.hide();
this.show();
@@ -3398,7 +3405,8 @@
Tooltip._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
- var data = $(this).data(DATA_KEY$6);
+ var $element = $__default['default'](this);
+ var data = $element.data(DATA_KEY$6);
var _config = typeof config === 'object' && config;
@@ -3408,7 +3416,7 @@
if (!data) {
data = new Tooltip(this, _config);
- $(this).data(DATA_KEY$6, data);
+ $element.data(DATA_KEY$6, data);
}
if (typeof config === 'string') {
@@ -3467,11 +3475,11 @@
*/
- $.fn[NAME$6] = Tooltip._jQueryInterface;
- $.fn[NAME$6].Constructor = Tooltip;
+ $__default['default'].fn[NAME$6] = Tooltip._jQueryInterface;
+ $__default['default'].fn[NAME$6].Constructor = Tooltip;
- $.fn[NAME$6].noConflict = function () {
- $.fn[NAME$6] = JQUERY_NO_CONFLICT$6;
+ $__default['default'].fn[NAME$6].noConflict = function () {
+ $__default['default'].fn[NAME$6] = JQUERY_NO_CONFLICT$6;
return Tooltip._jQueryInterface;
};
@@ -3482,10 +3490,10 @@
*/
var NAME$7 = 'popover';
- var VERSION$7 = '4.5.2';
+ var VERSION$7 = '4.5.3';
var DATA_KEY$7 = 'bs.popover';
var EVENT_KEY$7 = "." + DATA_KEY$7;
- var JQUERY_NO_CONFLICT$7 = $.fn[NAME$7];
+ var JQUERY_NO_CONFLICT$7 = $__default['default'].fn[NAME$7];
var CLASS_PREFIX$1 = 'bs-popover';
var BSCLS_PREFIX_REGEX$1 = new RegExp("(^|\\s)" + CLASS_PREFIX$1 + "\\S+", 'g');
@@ -3537,16 +3545,16 @@
};
_proto.addAttachmentClass = function addAttachmentClass(attachment) {
- $(this.getTipElement()).addClass(CLASS_PREFIX$1 + "-" + attachment);
+ $__default['default'](this.getTipElement()).addClass(CLASS_PREFIX$1 + "-" + attachment);
};
_proto.getTipElement = function getTipElement() {
- this.tip = this.tip || $(this.config.template)[0];
+ this.tip = this.tip || $__default['default'](this.config.template)[0];
return this.tip;
};
_proto.setContent = function setContent() {
- var $tip = $(this.getTipElement()); // We use append for html objects to maintain js events
+ var $tip = $__default['default'](this.getTipElement()); // We use append for html objects to maintain js events
this.setElementContent($tip.find(SELECTOR_TITLE), this.getTitle());
@@ -3566,7 +3574,7 @@
};
_proto._cleanTipClass = function _cleanTipClass() {
- var $tip = $(this.getTipElement());
+ var $tip = $__default['default'](this.getTipElement());
var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX$1);
if (tabClass !== null && tabClass.length > 0) {
@@ -3577,7 +3585,7 @@
Popover._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
- var data = $(this).data(DATA_KEY$7);
+ var data = $__default['default'](this).data(DATA_KEY$7);
var _config = typeof config === 'object' ? config : null;
@@ -3587,7 +3595,7 @@
if (!data) {
data = new Popover(this, _config);
- $(this).data(DATA_KEY$7, data);
+ $__default['default'](this).data(DATA_KEY$7, data);
}
if (typeof config === 'string') {
@@ -3647,11 +3655,11 @@
*/
- $.fn[NAME$7] = Popover._jQueryInterface;
- $.fn[NAME$7].Constructor = Popover;
+ $__default['default'].fn[NAME$7] = Popover._jQueryInterface;
+ $__default['default'].fn[NAME$7].Constructor = Popover;
- $.fn[NAME$7].noConflict = function () {
- $.fn[NAME$7] = JQUERY_NO_CONFLICT$7;
+ $__default['default'].fn[NAME$7].noConflict = function () {
+ $__default['default'].fn[NAME$7] = JQUERY_NO_CONFLICT$7;
return Popover._jQueryInterface;
};
@@ -3662,11 +3670,11 @@
*/
var NAME$8 = 'scrollspy';
- var VERSION$8 = '4.5.2';
+ var VERSION$8 = '4.5.3';
var DATA_KEY$8 = 'bs.scrollspy';
var EVENT_KEY$8 = "." + DATA_KEY$8;
var DATA_API_KEY$6 = '.data-api';
- var JQUERY_NO_CONFLICT$8 = $.fn[NAME$8];
+ var JQUERY_NO_CONFLICT$8 = $__default['default'].fn[NAME$8];
var Default$6 = {
offset: 10,
method: 'auto',
@@ -3710,7 +3718,7 @@
this._targets = [];
this._activeTarget = null;
this._scrollHeight = 0;
- $(this._scrollElement).on(EVENT_SCROLL, function (event) {
+ $__default['default'](this._scrollElement).on(EVENT_SCROLL, function (event) {
return _this._process(event);
});
this.refresh();
@@ -3745,7 +3753,7 @@
if (targetBCR.width || targetBCR.height) {
// TODO (fat): remove sketch reliance on jQuery position/offset
- return [$(target)[offsetMethod]().top + offsetBase, targetSelector];
+ return [$__default['default'](target)[offsetMethod]().top + offsetBase, targetSelector];
}
}
@@ -3762,8 +3770,8 @@
};
_proto.dispose = function dispose() {
- $.removeData(this._element, DATA_KEY$8);
- $(this._scrollElement).off(EVENT_KEY$8);
+ $__default['default'].removeData(this._element, DATA_KEY$8);
+ $__default['default'](this._scrollElement).off(EVENT_KEY$8);
this._element = null;
this._scrollElement = null;
this._config = null;
@@ -3779,11 +3787,11 @@
config = _extends({}, Default$6, typeof config === 'object' && config ? config : {});
if (typeof config.target !== 'string' && Util.isElement(config.target)) {
- var id = $(config.target).attr('id');
+ var id = $__default['default'](config.target).attr('id');
if (!id) {
id = Util.getUID(NAME$8);
- $(config.target).attr('id', id);
+ $__default['default'](config.target).attr('id', id);
}
config.target = "#" + id;
@@ -3852,7 +3860,7 @@
return selector + "[data-target=\"" + target + "\"]," + selector + "[href=\"" + target + "\"]";
});
- var $link = $([].slice.call(document.querySelectorAll(queries.join(','))));
+ var $link = $__default['default']([].slice.call(document.querySelectorAll(queries.join(','))));
if ($link.hasClass(CLASS_NAME_DROPDOWN_ITEM)) {
$link.closest(SELECTOR_DROPDOWN).find(SELECTOR_DROPDOWN_TOGGLE).addClass(CLASS_NAME_ACTIVE$2);
@@ -3867,7 +3875,7 @@
$link.parents(SELECTOR_NAV_LIST_GROUP).prev(SELECTOR_NAV_ITEMS).children(SELECTOR_NAV_LINKS).addClass(CLASS_NAME_ACTIVE$2);
}
- $(this._scrollElement).trigger(EVENT_ACTIVATE, {
+ $__default['default'](this._scrollElement).trigger(EVENT_ACTIVATE, {
relatedTarget: target
});
};
@@ -3883,13 +3891,13 @@
ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
- var data = $(this).data(DATA_KEY$8);
+ var data = $__default['default'](this).data(DATA_KEY$8);
var _config = typeof config === 'object' && config;
if (!data) {
data = new ScrollSpy(this, _config);
- $(this).data(DATA_KEY$8, data);
+ $__default['default'](this).data(DATA_KEY$8, data);
}
if (typeof config === 'string') {
@@ -3923,12 +3931,12 @@
*/
- $(window).on(EVENT_LOAD_DATA_API$2, function () {
+ $__default['default'](window).on(EVENT_LOAD_DATA_API$2, function () {
var scrollSpys = [].slice.call(document.querySelectorAll(SELECTOR_DATA_SPY));
var scrollSpysLength = scrollSpys.length;
for (var i = scrollSpysLength; i--;) {
- var $spy = $(scrollSpys[i]);
+ var $spy = $__default['default'](scrollSpys[i]);
ScrollSpy._jQueryInterface.call($spy, $spy.data());
}
@@ -3939,11 +3947,11 @@
* ------------------------------------------------------------------------
*/
- $.fn[NAME$8] = ScrollSpy._jQueryInterface;
- $.fn[NAME$8].Constructor = ScrollSpy;
+ $__default['default'].fn[NAME$8] = ScrollSpy._jQueryInterface;
+ $__default['default'].fn[NAME$8].Constructor = ScrollSpy;
- $.fn[NAME$8].noConflict = function () {
- $.fn[NAME$8] = JQUERY_NO_CONFLICT$8;
+ $__default['default'].fn[NAME$8].noConflict = function () {
+ $__default['default'].fn[NAME$8] = JQUERY_NO_CONFLICT$8;
return ScrollSpy._jQueryInterface;
};
@@ -3954,11 +3962,11 @@
*/
var NAME$9 = 'tab';
- var VERSION$9 = '4.5.2';
+ var VERSION$9 = '4.5.3';
var DATA_KEY$9 = 'bs.tab';
var EVENT_KEY$9 = "." + DATA_KEY$9;
var DATA_API_KEY$7 = '.data-api';
- var JQUERY_NO_CONFLICT$9 = $.fn[NAME$9];
+ var JQUERY_NO_CONFLICT$9 = $__default['default'].fn[NAME$9];
var EVENT_HIDE$3 = "hide" + EVENT_KEY$9;
var EVENT_HIDDEN$3 = "hidden" + EVENT_KEY$9;
var EVENT_SHOW$3 = "show" + EVENT_KEY$9;
@@ -3994,33 +4002,33 @@
_proto.show = function show() {
var _this = this;
- if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $(this._element).hasClass(CLASS_NAME_ACTIVE$3) || $(this._element).hasClass(CLASS_NAME_DISABLED$1)) {
+ if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $__default['default'](this._element).hasClass(CLASS_NAME_ACTIVE$3) || $__default['default'](this._element).hasClass(CLASS_NAME_DISABLED$1)) {
return;
}
var target;
var previous;
- var listElement = $(this._element).closest(SELECTOR_NAV_LIST_GROUP$1)[0];
+ var listElement = $__default['default'](this._element).closest(SELECTOR_NAV_LIST_GROUP$1)[0];
var selector = Util.getSelectorFromElement(this._element);
if (listElement) {
var itemSelector = listElement.nodeName === 'UL' || listElement.nodeName === 'OL' ? SELECTOR_ACTIVE_UL : SELECTOR_ACTIVE$2;
- previous = $.makeArray($(listElement).find(itemSelector));
+ previous = $__default['default'].makeArray($__default['default'](listElement).find(itemSelector));
previous = previous[previous.length - 1];
}
- var hideEvent = $.Event(EVENT_HIDE$3, {
+ var hideEvent = $__default['default'].Event(EVENT_HIDE$3, {
relatedTarget: this._element
});
- var showEvent = $.Event(EVENT_SHOW$3, {
+ var showEvent = $__default['default'].Event(EVENT_SHOW$3, {
relatedTarget: previous
});
if (previous) {
- $(previous).trigger(hideEvent);
+ $__default['default'](previous).trigger(hideEvent);
}
- $(this._element).trigger(showEvent);
+ $__default['default'](this._element).trigger(showEvent);
if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) {
return;
@@ -4033,14 +4041,14 @@
this._activate(this._element, listElement);
var complete = function complete() {
- var hiddenEvent = $.Event(EVENT_HIDDEN$3, {
+ var hiddenEvent = $__default['default'].Event(EVENT_HIDDEN$3, {
relatedTarget: _this._element
});
- var shownEvent = $.Event(EVENT_SHOWN$3, {
+ var shownEvent = $__default['default'].Event(EVENT_SHOWN$3, {
relatedTarget: previous
});
- $(previous).trigger(hiddenEvent);
- $(_this._element).trigger(shownEvent);
+ $__default['default'](previous).trigger(hiddenEvent);
+ $__default['default'](_this._element).trigger(shownEvent);
};
if (target) {
@@ -4051,7 +4059,7 @@
};
_proto.dispose = function dispose() {
- $.removeData(this._element, DATA_KEY$9);
+ $__default['default'].removeData(this._element, DATA_KEY$9);
this._element = null;
} // Private
;
@@ -4059,9 +4067,9 @@
_proto._activate = function _activate(element, container, callback) {
var _this2 = this;
- var activeElements = container && (container.nodeName === 'UL' || container.nodeName === 'OL') ? $(container).find(SELECTOR_ACTIVE_UL) : $(container).children(SELECTOR_ACTIVE$2);
+ var activeElements = container && (container.nodeName === 'UL' || container.nodeName === 'OL') ? $__default['default'](container).find(SELECTOR_ACTIVE_UL) : $__default['default'](container).children(SELECTOR_ACTIVE$2);
var active = activeElements[0];
- var isTransitioning = callback && active && $(active).hasClass(CLASS_NAME_FADE$4);
+ var isTransitioning = callback && active && $__default['default'](active).hasClass(CLASS_NAME_FADE$4);
var complete = function complete() {
return _this2._transitionComplete(element, active, callback);
@@ -4069,7 +4077,7 @@
if (active && isTransitioning) {
var transitionDuration = Util.getTransitionDurationFromElement(active);
- $(active).removeClass(CLASS_NAME_SHOW$6).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
+ $__default['default'](active).removeClass(CLASS_NAME_SHOW$6).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
} else {
complete();
}
@@ -4077,11 +4085,11 @@
_proto._transitionComplete = function _transitionComplete(element, active, callback) {
if (active) {
- $(active).removeClass(CLASS_NAME_ACTIVE$3);
- var dropdownChild = $(active.parentNode).find(SELECTOR_DROPDOWN_ACTIVE_CHILD)[0];
+ $__default['default'](active).removeClass(CLASS_NAME_ACTIVE$3);
+ var dropdownChild = $__default['default'](active.parentNode).find(SELECTOR_DROPDOWN_ACTIVE_CHILD)[0];
if (dropdownChild) {
- $(dropdownChild).removeClass(CLASS_NAME_ACTIVE$3);
+ $__default['default'](dropdownChild).removeClass(CLASS_NAME_ACTIVE$3);
}
if (active.getAttribute('role') === 'tab') {
@@ -4089,7 +4097,7 @@
}
}
- $(element).addClass(CLASS_NAME_ACTIVE$3);
+ $__default['default'](element).addClass(CLASS_NAME_ACTIVE$3);
if (element.getAttribute('role') === 'tab') {
element.setAttribute('aria-selected', true);
@@ -4101,12 +4109,12 @@
element.classList.add(CLASS_NAME_SHOW$6);
}
- if (element.parentNode && $(element.parentNode).hasClass(CLASS_NAME_DROPDOWN_MENU)) {
- var dropdownElement = $(element).closest(SELECTOR_DROPDOWN$1)[0];
+ if (element.parentNode && $__default['default'](element.parentNode).hasClass(CLASS_NAME_DROPDOWN_MENU)) {
+ var dropdownElement = $__default['default'](element).closest(SELECTOR_DROPDOWN$1)[0];
if (dropdownElement) {
var dropdownToggleList = [].slice.call(dropdownElement.querySelectorAll(SELECTOR_DROPDOWN_TOGGLE$1));
- $(dropdownToggleList).addClass(CLASS_NAME_ACTIVE$3);
+ $__default['default'](dropdownToggleList).addClass(CLASS_NAME_ACTIVE$3);
}
element.setAttribute('aria-expanded', true);
@@ -4120,7 +4128,7 @@
Tab._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
- var $this = $(this);
+ var $this = $__default['default'](this);
var data = $this.data(DATA_KEY$9);
if (!data) {
@@ -4154,10 +4162,10 @@
*/
- $(document).on(EVENT_CLICK_DATA_API$6, SELECTOR_DATA_TOGGLE$4, function (event) {
+ $__default['default'](document).on(EVENT_CLICK_DATA_API$6, SELECTOR_DATA_TOGGLE$4, function (event) {
event.preventDefault();
- Tab._jQueryInterface.call($(this), 'show');
+ Tab._jQueryInterface.call($__default['default'](this), 'show');
});
/**
* ------------------------------------------------------------------------
@@ -4165,11 +4173,11 @@
* ------------------------------------------------------------------------
*/
- $.fn[NAME$9] = Tab._jQueryInterface;
- $.fn[NAME$9].Constructor = Tab;
+ $__default['default'].fn[NAME$9] = Tab._jQueryInterface;
+ $__default['default'].fn[NAME$9].Constructor = Tab;
- $.fn[NAME$9].noConflict = function () {
- $.fn[NAME$9] = JQUERY_NO_CONFLICT$9;
+ $__default['default'].fn[NAME$9].noConflict = function () {
+ $__default['default'].fn[NAME$9] = JQUERY_NO_CONFLICT$9;
return Tab._jQueryInterface;
};
@@ -4180,10 +4188,10 @@
*/
var NAME$a = 'toast';
- var VERSION$a = '4.5.2';
+ var VERSION$a = '4.5.3';
var DATA_KEY$a = 'bs.toast';
var EVENT_KEY$a = "." + DATA_KEY$a;
- var JQUERY_NO_CONFLICT$a = $.fn[NAME$a];
+ var JQUERY_NO_CONFLICT$a = $__default['default'].fn[NAME$a];
var EVENT_CLICK_DISMISS$1 = "click.dismiss" + EVENT_KEY$a;
var EVENT_HIDE$4 = "hide" + EVENT_KEY$a;
var EVENT_HIDDEN$4 = "hidden" + EVENT_KEY$a;
@@ -4226,8 +4234,8 @@
_proto.show = function show() {
var _this = this;
- var showEvent = $.Event(EVENT_SHOW$4);
- $(this._element).trigger(showEvent);
+ var showEvent = $__default['default'].Event(EVENT_SHOW$4);
+ $__default['default'](this._element).trigger(showEvent);
if (showEvent.isDefaultPrevented()) {
return;
@@ -4244,7 +4252,7 @@
_this._element.classList.add(CLASS_NAME_SHOW$7);
- $(_this._element).trigger(EVENT_SHOWN$4);
+ $__default['default'](_this._element).trigger(EVENT_SHOWN$4);
if (_this._config.autohide) {
_this._timeout = setTimeout(function () {
@@ -4261,7 +4269,7 @@
if (this._config.animation) {
var transitionDuration = Util.getTransitionDurationFromElement(this._element);
- $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
+ $__default['default'](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
} else {
complete();
}
@@ -4272,8 +4280,8 @@
return;
}
- var hideEvent = $.Event(EVENT_HIDE$4);
- $(this._element).trigger(hideEvent);
+ var hideEvent = $__default['default'].Event(EVENT_HIDE$4);
+ $__default['default'](this._element).trigger(hideEvent);
if (hideEvent.isDefaultPrevented()) {
return;
@@ -4289,15 +4297,15 @@
this._element.classList.remove(CLASS_NAME_SHOW$7);
}
- $(this._element).off(EVENT_CLICK_DISMISS$1);
- $.removeData(this._element, DATA_KEY$a);
+ $__default['default'](this._element).off(EVENT_CLICK_DISMISS$1);
+ $__default['default'].removeData(this._element, DATA_KEY$a);
this._element = null;
this._config = null;
} // Private
;
_proto._getConfig = function _getConfig(config) {
- config = _extends({}, Default$7, $(this._element).data(), typeof config === 'object' && config ? config : {});
+ config = _extends({}, Default$7, $__default['default'](this._element).data(), typeof config === 'object' && config ? config : {});
Util.typeCheckConfig(NAME$a, config, this.constructor.DefaultType);
return config;
};
@@ -4305,7 +4313,7 @@
_proto._setListeners = function _setListeners() {
var _this2 = this;
- $(this._element).on(EVENT_CLICK_DISMISS$1, SELECTOR_DATA_DISMISS$1, function () {
+ $__default['default'](this._element).on(EVENT_CLICK_DISMISS$1, SELECTOR_DATA_DISMISS$1, function () {
return _this2.hide();
});
};
@@ -4316,14 +4324,14 @@
var complete = function complete() {
_this3._element.classList.add(CLASS_NAME_HIDE);
- $(_this3._element).trigger(EVENT_HIDDEN$4);
+ $__default['default'](_this3._element).trigger(EVENT_HIDDEN$4);
};
this._element.classList.remove(CLASS_NAME_SHOW$7);
if (this._config.animation) {
var transitionDuration = Util.getTransitionDurationFromElement(this._element);
- $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
+ $__default['default'](this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
} else {
complete();
}
@@ -4337,7 +4345,7 @@
Toast._jQueryInterface = function _jQueryInterface(config) {
return this.each(function () {
- var $element = $(this);
+ var $element = $__default['default'](this);
var data = $element.data(DATA_KEY$a);
var _config = typeof config === 'object' && config;
@@ -4383,11 +4391,11 @@
*/
- $.fn[NAME$a] = Toast._jQueryInterface;
- $.fn[NAME$a].Constructor = Toast;
+ $__default['default'].fn[NAME$a] = Toast._jQueryInterface;
+ $__default['default'].fn[NAME$a].Constructor = Toast;
- $.fn[NAME$a].noConflict = function () {
- $.fn[NAME$a] = JQUERY_NO_CONFLICT$a;
+ $__default['default'].fn[NAME$a].noConflict = function () {
+ $__default['default'].fn[NAME$a] = JQUERY_NO_CONFLICT$a;
return Toast._jQueryInterface;
};