diff options
author | Mark Otto <markdotto@gmail.com> | 2017-10-25 22:31:55 +0300 |
---|---|---|
committer | Mark Otto <markdotto@gmail.com> | 2017-10-25 22:31:55 +0300 |
commit | 8c587d42805af03f2d543ae93cfe05c739feb728 (patch) | |
tree | f3c89c4a6b4ddedaab527961610fcfbaa042ff62 /dist/js/bootstrap.bundle.js | |
parent | 59bf81f649c8cb171a9f9e052eb40032aecbcf11 (diff) |
dist
Diffstat (limited to 'dist/js/bootstrap.bundle.js')
-rw-r--r-- | dist/js/bootstrap.bundle.js | 802 |
1 files changed, 400 insertions, 402 deletions
diff --git a/dist/js/bootstrap.bundle.js b/dist/js/bootstrap.bundle.js index 88494394e4..e1b14ddd03 100644 --- a/dist/js/bootstrap.bundle.js +++ b/dist/js/bootstrap.bundle.js @@ -15,7 +15,7 @@ $ = $ && $.hasOwnProperty('default') ? $['default'] : $; * -------------------------------------------------------------------------- */ -var Util = function () { +var Util = function ($$$1) { /** * ------------------------------------------------------------------------ * Private TransitionEnd Helpers @@ -25,8 +25,6 @@ var Util = function () { var MAX_UID = 1000000; var TransitionEndEvent = { WebkitTransition: 'webkitTransitionEnd', - MozTransition: 'transitionend', - OTransition: 'oTransitionEnd otransitionend', transition: 'transitionend' // shoutout AngusCroll (https://goo.gl/pxwQGp) }; @@ -40,7 +38,7 @@ var Util = function () { bindType: transition.end, delegateType: transition.end, handle: function handle(event) { - if ($(event.target).is(this)) { + if ($$$1(event.target).is(this)) { return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params } @@ -71,7 +69,7 @@ var Util = function () { var _this = this; var called = false; - $(this).one(Util.TRANSITION_END, function () { + $$$1(this).one(Util.TRANSITION_END, function () { called = true; }); setTimeout(function () { @@ -84,10 +82,10 @@ var Util = function () { function setTransitionEndSupport() { transition = transitionEndTest(); - $.fn.emulateTransitionEnd = transitionEndEmulator; + $$$1.fn.emulateTransitionEnd = transitionEndEmulator; if (Util.supportsTransitionEnd()) { - $.event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent(); + $$$1.event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent(); } } /** @@ -115,7 +113,7 @@ var Util = function () { } try { - var $selector = $(document).find(selector); + var $selector = $$$1(document).find(selector); return $selector.length > 0 ? selector : null; } catch (error) { return null; @@ -125,7 +123,7 @@ var Util = function () { return element.offsetHeight; }, triggerTransitionEnd: function triggerTransitionEnd(element) { - $(element).trigger(transition.end); + $$$1(element).trigger(transition.end); }, supportsTransitionEnd: function supportsTransitionEnd() { return Boolean(transition); @@ -184,7 +182,7 @@ var inheritsLoose = _inheritsLoose; * -------------------------------------------------------------------------- */ -var Alert = function () { +var Alert = function ($$$1) { /** * ------------------------------------------------------------------------ * Constants @@ -195,7 +193,7 @@ var Alert = function () { 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 = $$$1.fn[NAME]; var TRANSITION_DURATION = 150; var Selector = { DISMISS: '[data-dismiss="alert"]' @@ -243,7 +241,7 @@ var Alert = function () { }; _proto.dispose = function dispose() { - $.removeData(this._element, DATA_KEY); + $$$1.removeData(this._element, DATA_KEY); this._element = null; }; // private @@ -253,46 +251,46 @@ var Alert = function () { var parent = false; if (selector) { - parent = $(selector)[0]; + parent = $$$1(selector)[0]; } if (!parent) { - parent = $(element).closest("." + ClassName.ALERT)[0]; + parent = $$$1(element).closest("." + ClassName.ALERT)[0]; } return parent; }; _proto._triggerCloseEvent = function _triggerCloseEvent(element) { - var closeEvent = $.Event(Event.CLOSE); - $(element).trigger(closeEvent); + var closeEvent = $$$1.Event(Event.CLOSE); + $$$1(element).trigger(closeEvent); return closeEvent; }; _proto._removeElement = function _removeElement(element) { var _this = this; - $(element).removeClass(ClassName.SHOW); + $$$1(element).removeClass(ClassName.SHOW); - if (!Util.supportsTransitionEnd() || !$(element).hasClass(ClassName.FADE)) { + if (!Util.supportsTransitionEnd() || !$$$1(element).hasClass(ClassName.FADE)) { this._destroyElement(element); return; } - $(element).one(Util.TRANSITION_END, function (event) { + $$$1(element).one(Util.TRANSITION_END, function (event) { return _this._destroyElement(element, event); }).emulateTransitionEnd(TRANSITION_DURATION); }; _proto._destroyElement = function _destroyElement(element) { - $(element).detach().trigger(Event.CLOSED).remove(); + $$$1(element).detach().trigger(Event.CLOSED).remove(); }; // static Alert._jQueryInterface = function _jQueryInterface(config) { return this.each(function () { - var $element = $(this); + var $element = $$$1(this); var data = $element.data(DATA_KEY); if (!data) { @@ -331,18 +329,18 @@ var Alert = function () { */ - $(document).on(Event.CLICK_DATA_API, Selector.DISMISS, Alert._handleDismiss(new Alert())); + $$$1(document).on(Event.CLICK_DATA_API, Selector.DISMISS, Alert._handleDismiss(new Alert())); /** * ------------------------------------------------------------------------ * jQuery * ------------------------------------------------------------------------ */ - $.fn[NAME] = Alert._jQueryInterface; - $.fn[NAME].Constructor = Alert; + $$$1.fn[NAME] = Alert._jQueryInterface; + $$$1.fn[NAME].Constructor = Alert; - $.fn[NAME].noConflict = function () { - $.fn[NAME] = JQUERY_NO_CONFLICT; + $$$1.fn[NAME].noConflict = function () { + $$$1.fn[NAME] = JQUERY_NO_CONFLICT; return Alert._jQueryInterface; }; @@ -356,7 +354,7 @@ var Alert = function () { * -------------------------------------------------------------------------- */ -var Button = function () { +var Button = function ($$$1) { /** * ------------------------------------------------------------------------ * Constants @@ -367,7 +365,7 @@ var Button = function () { var DATA_KEY = 'bs.button'; var EVENT_KEY = "." + DATA_KEY; var DATA_API_KEY = '.data-api'; - var JQUERY_NO_CONFLICT = $.fn[NAME]; + var JQUERY_NO_CONFLICT = $$$1.fn[NAME]; var ClassName = { ACTIVE: 'active', BUTTON: 'btn', @@ -405,20 +403,20 @@ var Button = function () { _proto.toggle = function toggle() { var triggerChangeEvent = true; var addAriaPressed = true; - var rootElement = $(this._element).closest(Selector.DATA_TOGGLE)[0]; + var rootElement = $$$1(this._element).closest(Selector.DATA_TOGGLE)[0]; if (rootElement) { - var input = $(this._element).find(Selector.INPUT)[0]; + var input = $$$1(this._element).find(Selector.INPUT)[0]; if (input) { if (input.type === 'radio') { - if (input.checked && $(this._element).hasClass(ClassName.ACTIVE)) { + if (input.checked && $$$1(this._element).hasClass(ClassName.ACTIVE)) { triggerChangeEvent = false; } else { - var activeElement = $(rootElement).find(Selector.ACTIVE)[0]; + var activeElement = $$$1(rootElement).find(Selector.ACTIVE)[0]; if (activeElement) { - $(activeElement).removeClass(ClassName.ACTIVE); + $$$1(activeElement).removeClass(ClassName.ACTIVE); } } } @@ -428,8 +426,8 @@ var Button = function () { return; } - input.checked = !$(this._element).hasClass(ClassName.ACTIVE); - $(input).trigger('change'); + input.checked = !$$$1(this._element).hasClass(ClassName.ACTIVE); + $$$1(input).trigger('change'); } input.focus(); @@ -438,27 +436,27 @@ var Button = function () { } if (addAriaPressed) { - this._element.setAttribute('aria-pressed', !$(this._element).hasClass(ClassName.ACTIVE)); + this._element.setAttribute('aria-pressed', !$$$1(this._element).hasClass(ClassName.ACTIVE)); } if (triggerChangeEvent) { - $(this._element).toggleClass(ClassName.ACTIVE); + $$$1(this._element).toggleClass(ClassName.ACTIVE); } }; _proto.dispose = function dispose() { - $.removeData(this._element, DATA_KEY); + $$$1.removeData(this._element, DATA_KEY); this._element = null; }; // static Button._jQueryInterface = function _jQueryInterface(config) { return this.each(function () { - var data = $(this).data(DATA_KEY); + var data = $$$1(this).data(DATA_KEY); if (!data) { data = new Button(this); - $(this).data(DATA_KEY, data); + $$$1(this).data(DATA_KEY, data); } if (config === 'toggle') { @@ -482,18 +480,18 @@ var Button = function () { */ - $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE_CARROT, function (event) { + $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE_CARROT, function (event) { event.preventDefault(); var button = event.target; - if (!$(button).hasClass(ClassName.BUTTON)) { - button = $(button).closest(Selector.BUTTON); + if (!$$$1(button).hasClass(ClassName.BUTTON)) { + button = $$$1(button).closest(Selector.BUTTON); } - Button._jQueryInterface.call($(button), 'toggle'); + Button._jQueryInterface.call($$$1(button), 'toggle'); }).on(Event.FOCUS_BLUR_DATA_API, Selector.DATA_TOGGLE_CARROT, function (event) { - var button = $(event.target).closest(Selector.BUTTON)[0]; - $(button).toggleClass(ClassName.FOCUS, /^focus(in)?$/.test(event.type)); + var button = $$$1(event.target).closest(Selector.BUTTON)[0]; + $$$1(button).toggleClass(ClassName.FOCUS, /^focus(in)?$/.test(event.type)); }); /** * ------------------------------------------------------------------------ @@ -501,11 +499,11 @@ var Button = function () { * ------------------------------------------------------------------------ */ - $.fn[NAME] = Button._jQueryInterface; - $.fn[NAME].Constructor = Button; + $$$1.fn[NAME] = Button._jQueryInterface; + $$$1.fn[NAME].Constructor = Button; - $.fn[NAME].noConflict = function () { - $.fn[NAME] = JQUERY_NO_CONFLICT; + $$$1.fn[NAME].noConflict = function () { + $$$1.fn[NAME] = JQUERY_NO_CONFLICT; return Button._jQueryInterface; }; @@ -519,7 +517,7 @@ var Button = function () { * -------------------------------------------------------------------------- */ -var Carousel = function () { +var Carousel = function ($$$1) { /** * ------------------------------------------------------------------------ * Constants @@ -530,7 +528,7 @@ var Carousel = function () { var DATA_KEY = 'bs.carousel'; var EVENT_KEY = "." + DATA_KEY; var DATA_API_KEY = '.data-api'; - var JQUERY_NO_CONFLICT = $.fn[NAME]; + var JQUERY_NO_CONFLICT = $$$1.fn[NAME]; var TRANSITION_DURATION = 600; var ARROW_LEFT_KEYCODE = 37; // KeyboardEvent.which value for left arrow key @@ -605,8 +603,8 @@ var Carousel = function () { this._isSliding = false; this.touchTimeout = null; this._config = this._getConfig(config); - this._element = $(element)[0]; - this._indicatorsElement = $(this._element).find(Selector.INDICATORS)[0]; + this._element = $$$1(element)[0]; + this._indicatorsElement = $$$1(this._element).find(Selector.INDICATORS)[0]; this._addEventListeners(); } // getters @@ -624,7 +622,7 @@ var Carousel = function () { _proto.nextWhenVisible = function nextWhenVisible() { // 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 && $$$1(this._element).is(':visible') && $$$1(this._element).css('visibility') !== 'hidden') { this.next(); } }; @@ -640,7 +638,7 @@ var Carousel = function () { this._isPaused = true; } - if ($(this._element).find(Selector.NEXT_PREV)[0] && Util.supportsTransitionEnd()) { + if ($$$1(this._element).find(Selector.NEXT_PREV)[0] && Util.supportsTransitionEnd()) { Util.triggerTransitionEnd(this._element); this.cycle(true); } @@ -667,7 +665,7 @@ var Carousel = function () { _proto.to = function to(index) { var _this = this; - this._activeElement = $(this._element).find(Selector.ACTIVE_ITEM)[0]; + this._activeElement = $$$1(this._element).find(Selector.ACTIVE_ITEM)[0]; var activeIndex = this._getItemIndex(this._activeElement); @@ -676,7 +674,7 @@ var Carousel = function () { } if (this._isSliding) { - $(this._element).one(Event.SLID, function () { + $$$1(this._element).one(Event.SLID, function () { return _this.to(index); }); return; @@ -694,8 +692,8 @@ var Carousel = function () { }; _proto.dispose = function dispose() { - $(this._element).off(EVENT_KEY); - $.removeData(this._element, DATA_KEY); + $$$1(this._element).off(EVENT_KEY); + $$$1.removeData(this._element, DATA_KEY); this._items = null; this._config = null; this._element = null; @@ -708,7 +706,7 @@ var Carousel = function () { _proto._getConfig = function _getConfig(config) { - config = $.extend({}, Default, config); + config = $$$1.extend({}, Default, config); Util.typeCheckConfig(NAME, config, DefaultType); return config; }; @@ -717,13 +715,13 @@ var Carousel = function () { var _this2 = this; if (this._config.keyboard) { - $(this._element).on(Event.KEYDOWN, function (event) { + $$$1(this._element).on(Event.KEYDOWN, function (event) { return _this2._keydown(event); }); } if (this._config.pause === 'hover') { - $(this._element).on(Event.MOUSEENTER, function (event) { + $$$1(this._element).on(Event.MOUSEENTER, function (event) { return _this2.pause(event); }).on(Event.MOUSELEAVE, function (event) { return _this2.cycle(event); @@ -737,7 +735,7 @@ var Carousel = function () { // (as if it's the second time we tap on it, mouseenter compat event // is NOT fired) and after a timeout (to allow for mouse compatibility // events to fire) we explicitly restart cycling - $(this._element).on(Event.TOUCHEND, function () { + $$$1(this._element).on(Event.TOUCHEND, function () { _this2.pause(); if (_this2.touchTimeout) { @@ -774,7 +772,7 @@ var Carousel = function () { }; _proto._getItemIndex = function _getItemIndex(element) { - this._items = $.makeArray($(element).parent().find(Selector.ITEM)); + this._items = $$$1.makeArray($$$1(element).parent().find(Selector.ITEM)); return this._items.indexOf(element); }; @@ -799,26 +797,26 @@ var Carousel = function () { _proto._triggerSlideEvent = function _triggerSlideEvent(relatedTarget, eventDirectionName) { var targetIndex = this._getItemIndex(relatedTarget); - var fromIndex = this._getItemIndex($(this._element).find(Selector.ACTIVE_ITEM)[0]); + var fromIndex = this._getItemIndex($$$1(this._element).find(Selector.ACTIVE_ITEM)[0]); - var slideEvent = $.Event(Event.SLIDE, { + var slideEvent = $$$1.Event(Event.SLIDE, { relatedTarget: relatedTarget, direction: eventDirectionName, from: fromIndex, to: targetIndex }); - $(this._element).trigger(slideEvent); + $$$1(this._element).trigger(slideEvent); return slideEvent; }; _proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) { if (this._indicatorsElement) { - $(this._indicatorsElement).find(Selector.ACTIVE).removeClass(ClassName.ACTIVE); + $$$1(this._indicatorsElement).find(Selector.ACTIVE).removeClass(ClassName.ACTIVE); var nextIndicator = this._indicatorsElement.children[this._getItemIndex(element)]; if (nextIndicator) { - $(nextIndicator).addClass(ClassName.ACTIVE); + $$$1(nextIndicator).addClass(ClassName.ACTIVE); } } }; @@ -826,7 +824,7 @@ var Carousel = function () { _proto._slide = function _slide(direction, element) { var _this3 = this; - var activeElement = $(this._element).find(Selector.ACTIVE_ITEM)[0]; + var activeElement = $$$1(this._element).find(Selector.ACTIVE_ITEM)[0]; var activeElementIndex = this._getItemIndex(activeElement); @@ -849,7 +847,7 @@ var Carousel = function () { eventDirectionName = Direction.RIGHT; } - if (nextElement && $(nextElement).hasClass(ClassName.ACTIVE)) { + if (nextElement && $$$1(nextElement).hasClass(ClassName.ACTIVE)) { this._isSliding = false; return; } @@ -873,31 +871,31 @@ var Carousel = function () { this._setActiveIndicatorElement(nextElement); - var slidEvent = $.Event(Event.SLID, { + var slidEvent = $$$1.Event(Event.SLID, { relatedTarget: nextElement, direction: eventDirectionName, from: activeElementIndex, to: nextElementIndex }); - if (Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.SLIDE)) { - $(nextElement).addClass(orderClassName); + if (Util.supportsTransitionEnd() && $$$1(this._element).hasClass(ClassName.SLIDE)) { + $$$1(nextElement).addClass(orderClassName); Util.reflow(nextElement); - $(activeElement).addClass(directionalClassName); - $(nextElement).addClass(directionalClassName); - $(activeElement).one(Util.TRANSITION_END, function () { - $(nextElement).removeClass(directionalClassName + " " + orderClassName).addClass(ClassName.ACTIVE); - $(activeElement).removeClass(ClassName.ACTIVE + " " + orderClassName + " " + directionalClassName); + $$$1(activeElement).addClass(directionalClassName); + $$$1(nextElement).addClass(directionalClassName); + $$$1(activeElement).one(Util.TRANSITION_END, function () { + $$$1(nextElement).removeClass(directionalClassName + " " + orderClassName).addClass(ClassName.ACTIVE); + $$$1(activeElement).removeClass(ClassName.ACTIVE + " " + orderClassName + " " + directionalClassName); _this3._isSliding = false; setTimeout(function () { - return $(_this3._element).trigger(slidEvent); + return $$$1(_this3._element).trigger(slidEvent); }, 0); }).emulateTransitionEnd(TRANSITION_DURATION); } else { - $(activeElement).removeClass(ClassName.ACTIVE); - $(nextElement).addClass(ClassName.ACTIVE); + $$$1(activeElement).removeClass(ClassName.ACTIVE); + $$$1(nextElement).addClass(ClassName.ACTIVE); this._isSliding = false; - $(this._element).trigger(slidEvent); + $$$1(this._element).trigger(slidEvent); } if (isCycling) { @@ -908,19 +906,19 @@ var Carousel = function () { Carousel._jQueryInterface = function _jQueryInterface(config) { return this.each(function () { - var data = $(this).data(DATA_KEY); + var data = $$$1(this).data(DATA_KEY); - var _config = $.extend({}, Default, $(this).data()); + var _config = $$$1.extend({}, Default, $$$1(this).data()); if (typeof config === 'object') { - $.extend(_config, config); + $$$1.extend(_config, config); } var action = typeof config === 'string' ? config : _config.slide; if (!data) { data = new Carousel(this, _config); - $(this).data(DATA_KEY, data); + $$$1(this).data(DATA_KEY, data); } if (typeof config === 'number') { @@ -945,23 +943,23 @@ var Carousel = function () { return; } - var target = $(selector)[0]; + var target = $$$1(selector)[0]; - if (!target || !$(target).hasClass(ClassName.CAROUSEL)) { + if (!target || !$$$1(target).hasClass(ClassName.CAROUSEL)) { return; } - var config = $.extend({}, $(target).data(), $(this).data()); + var config = $$$1.extend({}, $$$1(target).data(), $$$1(this).data()); var slideIndex = this.getAttribute('data-slide-to'); if (slideIndex) { config.interval = false; } - Carousel._jQueryInterface.call($(target), config); + Carousel._jQueryInterface.call($$$1(target), config); if (slideIndex) { - $(target).data(DATA_KEY).to(slideIndex); + $$$1(target).data(DATA_KEY).to(slideIndex); } event.preventDefault(); @@ -987,10 +985,10 @@ var Carousel = function () { */ - $(document).on(Event.CLICK_DATA_API, Selector.DATA_SLIDE, Carousel._dataApiClickHandler); - $(window).on(Event.LOAD_DATA_API, function () { - $(Selector.DATA_RIDE).each(function () { - var $carousel = $(this); + $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_SLIDE, Carousel._dataApiClickHandler); + $$$1(window).on(Event.LOAD_DATA_API, function () { + $$$1(Selector.DATA_RIDE).each(function () { + var $carousel = $$$1(this); Carousel._jQueryInterface.call($carousel, $carousel.data()); }); @@ -1001,11 +999,11 @@ var Carousel = function () { * ------------------------------------------------------------------------ */ - $.fn[NAME] = Carousel._jQueryInterface; - $.fn[NAME].Constructor = Carousel; + $$$1.fn[NAME] = Carousel._jQueryInterface; + $$$1.fn[NAME].Constructor = Carousel; - $.fn[NAME].noConflict = function () { - $.fn[NAME] = JQUERY_NO_CONFLICT; + $$$1.fn[NAME].noConflict = function () { + $$$1.fn[NAME] = JQUERY_NO_CONFLICT; return Carousel._jQueryInterface; }; @@ -1019,7 +1017,7 @@ var Carousel = function () { * -------------------------------------------------------------------------- */ -var Collapse = function () { +var Collapse = function ($$$1) { /** * ------------------------------------------------------------------------ * Constants @@ -1030,7 +1028,7 @@ var Collapse = function () { var DATA_KEY = 'bs.collapse'; var EVENT_KEY = "." + DATA_KEY; var DATA_API_KEY = '.data-api'; - var JQUERY_NO_CONFLICT = $.fn[NAME]; + var JQUERY_NO_CONFLICT = $$$1.fn[NAME]; var TRANSITION_DURATION = 600; var Default = { toggle: true, @@ -1075,14 +1073,14 @@ var Collapse = function () { this._isTransitioning = false; this._element = element; this._config = this._getConfig(config); - this._triggerArray = $.makeArray($("[data-toggle=\"collapse\"][href=\"#" + element.id + "\"]," + ("[data-toggle=\"collapse\"][data-target=\"#" + element.id + "\"]"))); - var tabToggles = $(Selector.DATA_TOGGLE); + this._triggerArray = $$$1.makeArray($$$1("[data-toggle=\"collapse\"][href=\"#" + element.id + "\"]," + ("[data-toggle=\"collapse\"][data-target=\"#" + element.id + "\"]"))); + var tabToggles = $$$1(Selector.DATA_TOGGLE); for (var i = 0; i < tabToggles.length; i++) { var elem = tabToggles[i]; var selector = Util.getSelectorFromElement(elem); - if (selector !== null && $(selector).filter(element).length > 0) { + if (selector !== null && $$$1(selector).filter(element).length > 0) { this._triggerArray.push(elem); } } @@ -1103,7 +1101,7 @@ var Collapse = function () { // public _proto.toggle = function toggle() { - if ($(this._element).hasClass(ClassName.SHOW)) { + if ($$$1(this._element).hasClass(ClassName.SHOW)) { this.hide(); } else { this.show(); @@ -1113,7 +1111,7 @@ var Collapse = function () { _proto.show = function show() { var _this = this; - if (this._isTransitioning || $(this._element).hasClass(ClassName.SHOW)) { + if (this._isTransitioning || $$$1(this._element).hasClass(ClassName.SHOW)) { return; } @@ -1121,7 +1119,7 @@ var Collapse = function () { var activesData; if (this._parent) { - actives = $.makeArray($(this._parent).children().children(Selector.ACTIVES)); + actives = $$$1.makeArray($$$1(this._parent).children().children(Selector.ACTIVES)); if (!actives.length) { actives = null; @@ -1129,46 +1127,46 @@ var Collapse = function () { } if (actives) { - activesData = $(actives).data(DATA_KEY); + activesData = $$$1(actives).data(DATA_KEY); if (activesData && activesData._isTransitioning) { return; } } - var startEvent = $.Event(Event.SHOW); - $(this._element).trigger(startEvent); + var startEvent = $$$1.Event(Event.SHOW); + $$$1(this._element).trigger(startEvent); if (startEvent.isDefaultPrevented()) { return; } if (actives) { - Collapse._jQueryInterface.call($(actives), 'hide'); + Collapse._jQueryInterface.call($$$1(actives), 'hide'); if (!activesData) { - $(actives).data(DATA_KEY, null); + $$$1(actives).data(DATA_KEY, null); } } var dimension = this._getDimension(); - $(this._element).removeClass(ClassName.COLLAPSE).addClass(ClassName.COLLAPSING); + $$$1(this._element).removeClass(ClassName.COLLAPSE).addClass(ClassName.COLLAPSING); this._element.style[dimension] = 0; if (this._triggerArray.length) { - $(this._triggerArray).removeClass(ClassName.COLLAPSED).attr('aria-expanded', true); + $$$1(this._triggerArray).removeClass(ClassName.COLLAPSED).attr('aria-expanded', true); } this.setTransitioning(true); var complete = function complete() { - $(_this._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).addClass(ClassName.SHOW); + $$$1(_this._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).addClass(ClassName.SHOW); _this._element.style[dimension] = ''; _this.setTransitioning(false); - $(_this._element).trigger(Event.SHOWN); + $$$1(_this._element).trigger(Event.SHOWN); }; if (!Util.supportsTransitionEnd()) { @@ -1178,19 +1176,19 @@ var Collapse = function () { var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1); var scrollSize = "scroll" + capitalizedDimension; - $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION); + $$$1(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION); this._element.style[dimension] = this._element[scrollSize] + "px"; }; _proto.hide = function hide() { var _this2 = this; - if (this._isTransitioning || !$(this._element).hasClass(ClassName.SHOW)) { + if (this._isTransitioning || !$$$1(this._element).hasClass(ClassName.SHOW)) { return; } - var startEvent = $.Event(Event.HIDE); - $(this._element).trigger(startEvent); + var startEvent = $$$1.Event(Event.HIDE); + $$$1(this._element).trigger(startEvent); if (startEvent.isDefaultPrevented()) { return; @@ -1200,7 +1198,7 @@ var Collapse = function () { this._element.style[dimension] = this._element.getBoundingClientRect()[dimension] + "px"; Util.reflow(this._element); - $(this._element).addClass(ClassName.COLLAPSING).removeClass(ClassName.COLLAPSE).removeClass(ClassName.SHOW); + $$$1(this._element).addClass(ClassName.COLLAPSING).removeClass(ClassName.COLLAPSE).removeClass(ClassName.SHOW); if (this._triggerArray.length) { for (var i = 0; i < this._triggerArray.length; i++) { @@ -1208,10 +1206,10 @@ var Collapse = function () { var selector = Util.getSelectorFromElement(trigger); if (selector !== null) { - var $elem = $(selector); + var $elem = $$$1(selector); if (!$elem.hasClass(ClassName.SHOW)) { - $(trigger).addClass(ClassName.COLLAPSED).attr('aria-expanded', false); + $$$1(trigger).addClass(ClassName.COLLAPSED).attr('aria-expanded', false); } } } @@ -1222,7 +1220,7 @@ var Collapse = function () { var complete = function complete() { _this2.setTransitioning(false); - $(_this2._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).trigger(Event.HIDDEN); + $$$1(_this2._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).trigger(Event.HIDDEN); }; this._element.style[dimension] = ''; @@ -1232,7 +1230,7 @@ var Collapse = function () { return; } - $(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION); + $$$1(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION); }; _proto.setTransitioning = function setTransitioning(isTransitioning) { @@ -1240,7 +1238,7 @@ var Collapse = function () { }; _proto.dispose = function dispose() { - $.removeData(this._element, DATA_KEY); + $$$1.removeData(this._element, DATA_KEY); this._config = null; this._parent = null; this._element = null; @@ -1250,7 +1248,7 @@ var Collapse = function () { _proto._getConfig = function _getConfig(config) { - config = $.extend({}, Default, config); + config = $$$1.extend({}, Default, config); config.toggle = Boolean(config.toggle); // coerce string values Util.typeCheckConfig(NAME, config, DefaultType); @@ -1258,7 +1256,7 @@ var Collapse = function () { }; _proto._getDimension = function _getDimension() { - var hasWidth = $(this._element).hasClass(Dimension.WIDTH); + var hasWidth = $$$1(this._element).hasClass(Dimension.WIDTH); return hasWidth ? Dimension.WIDTH : Dimension.HEIGHT; }; @@ -1274,11 +1272,11 @@ var Collapse = function () { parent = this._config.parent[0]; } } else { - parent = $(this._config.parent)[0]; + parent = $$$1(this._config.parent)[0]; } var selector = "[data-toggle=\"collapse\"][data-parent=\"" + this._config.parent + "\"]"; - $(parent).find(selector).each(function (i, element) { + $$$1(parent).find(selector).each(function (i, element) { _this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]); }); return parent; @@ -1286,10 +1284,10 @@ var Collapse = function () { _proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) { if (element) { - var isOpen = $(element).hasClass(ClassName.SHOW); + var isOpen = $$$1(element).hasClass(ClassName.SHOW); if (triggerArray.length) { - $(triggerArray).toggleClass(ClassName.COLLAPSED, !isOpen).attr('aria-expanded', isOpen); + $$$1(triggerArray).toggleClass(ClassName.COLLAPSED, !isOpen).attr('aria-expanded', isOpen); } } }; // static @@ -1297,15 +1295,15 @@ var Collapse = function () { Collapse._getTargetFromElement = function _getTargetFromElement(element) { var selector = Util.getSelectorFromElement(element); - return selector ? $(selector)[0] : null; + return selector ? $$$1(selector)[0] : null; }; Collapse._jQueryInterface = function _jQueryInterface(config) { return this.each(function () { - var $this = $(this); + var $this = $$$1(this); var data = $this.data(DATA_KEY); - var _config = $.extend({}, Default, $this.data(), typeof config === 'object' && config); + var _config = $$$1.extend({}, Default, $this.data(), typeof config === 'object' && config); if (!data && _config.toggle && /show|hide/.test(config)) { _config.toggle = false; @@ -1346,16 +1344,16 @@ var Collapse = function () { */ - $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) { + $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, 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 = $$$1(this); var selector = Util.getSelectorFromElement(this); - $(selector).each(function () { - var $target = $(this); + $$$1(selector).each(function () { + var $target = $$$1(this); var data = $target.data(DATA_KEY); var config = data ? 'toggle' : $trigger.data(); @@ -1368,11 +1366,11 @@ var Collapse = function () { * ------------------------------------------------------------------------ */ - $.fn[NAME] = Collapse._jQueryInterface; - $.fn[NAME].Constructor = Collapse; + $$$1.fn[NAME] = Collapse._jQueryInterface; + $$$1.fn[NAME].Constructor = Collapse; - $.fn[NAME].noConflict = function () { - $.fn[NAME] = JQUERY_NO_CONFLICT; + $$$1.fn[NAME].noConflict = function () { + $$$1.fn[NAME] = JQUERY_NO_CONFLICT; return Collapse._jQueryInterface; }; @@ -3824,7 +3822,7 @@ Popper.Defaults = Defaults; * -------------------------------------------------------------------------- */ -var Dropdown = function () { +var Dropdown = function ($$$1) { /** * Check for Popper dependency * Popper - https://popper.js.org @@ -3844,7 +3842,7 @@ var Dropdown = function () { var DATA_KEY = 'bs.dropdown'; var EVENT_KEY = "." + DATA_KEY; var DATA_API_KEY = '.data-api'; - var JQUERY_NO_CONFLICT = $.fn[NAME]; + var JQUERY_NO_CONFLICT = $$$1.fn[NAME]; var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key var SPACE_KEYCODE = 32; // KeyboardEvent.which value for space key @@ -3921,13 +3919,13 @@ var Dropdown = function () { // public _proto.toggle = function toggle() { - if (this._element.disabled || $(this._element).hasClass(ClassName.DISABLED)) { + if (this._element.disabled || $$$1(this._element).hasClass(ClassName.DISABLED)) { return; } var parent = Dropdown._getParentFromElement(this._element); - var isActive = $(this._menu).hasClass(ClassName.SHOW); + var isActive = $$$1(this._menu).hasClass(ClassName.SHOW); Dropdown._clearMenus(); @@ -3938,8 +3936,8 @@ var Dropdown = function () { var relatedTarget = { relatedTarget: this._element }; - var showEvent = $.Event(Event.SHOW, relatedTarget); - $(parent).trigger(showEvent); + var showEvent = $$$1.Event(Event.SHOW, relatedTarget); + $$$1(parent).trigger(showEvent); if (showEvent.isDefaultPrevented()) { return; @@ -3947,8 +3945,8 @@ var Dropdown = function () { var element = this._element; // for dropup with alignment we use the parent as popper container - if ($(parent).hasClass(ClassName.DROPUP)) { - if ($(this._menu).hasClass(ClassName.MENULEFT) || $(this._menu).hasClass(ClassName.MENURIGHT)) { + if ($$$1(parent).hasClass(ClassName.DROPUP)) { + if ($$$1(this._menu).hasClass(ClassName.MENULEFT) || $$$1(this._menu).hasClass(ClassName.MENURIGHT)) { element = parent; } } @@ -3958,21 +3956,21 @@ var Dropdown = function () { // 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) { - $('body').children().on('mouseover', null, $.noop); + if ('ontouchstart' in document.documentElement && !$$$1(parent).closest(Selector.NAVBAR_NAV).length) { + $$$1('body').children().on('mouseover', null, $$$1.noop); } this._element.focus(); this._element.setAttribute('aria-expanded', true); - $(this._menu).toggleClass(ClassName.SHOW); - $(parent).toggleClass(ClassName.SHOW).trigger($.Event(Event.SHOWN, relatedTarget)); + $$$1(this._menu).toggleClass(ClassName.SHOW); + $$$1(parent).toggleClass(ClassName.SHOW).trigger($$$1.Event(Event.SHOWN, relatedTarget)); }; _proto.dispose = function dispose() { - $.removeData(this._element, DATA_KEY); - $(this._element).off(EVENT_KEY); + $$$1.removeData(this._element, DATA_KEY); + $$$1(this._element).off(EVENT_KEY); this._element = null; this._menu = null; @@ -3995,7 +3993,7 @@ var Dropdown = function () { _proto._addEventListeners = function _addEventListeners() { var _this = this; - $(this._element).on(Event.CLICK, function (event) { + $$$1(this._element).on(Event.CLICK, function (event) { event.preventDefault(); event.stopPropagation(); @@ -4004,7 +4002,7 @@ var Dropdown = function () { }; _proto._getConfig = function _getConfig(config) { - config = $.extend({}, this.constructor.Default, $(this._element).data(), config); + config = $$$1.extend({}, this.constructor.Default, $$$1(this._element).data(), config); Util.typeCheckConfig(NAME, config, this.constructor.DefaultType); return config; }; @@ -4013,23 +4011,23 @@ var Dropdown = function () { if (!this._menu) { var parent = Dropdown._getParentFromElement(this._element); - this._menu = $(parent).find(Selector.MENU)[0]; + this._menu = $$$1(parent).find(Selector.MENU)[0]; } return this._menu; }; _proto._getPlacement = function _getPlacement() { - var $parentDropdown = $(this._element).parent(); + var $parentDropdown = $$$1(this._element).parent(); var placement = AttachmentMap.BOTTOM; // Handle dropup if ($parentDropdown.hasClass(ClassName.DROPUP)) { placement = AttachmentMap.TOP; - if ($(this._menu).hasClass(ClassName.MENURIGHT)) { + if ($$$1(this._menu).hasClass(ClassName.MENURIGHT)) { placement = AttachmentMap.TOPEND; } - } else if ($(this._menu).hasClass(ClassName.MENURIGHT)) { + } else if ($$$1(this._menu).hasClass(ClassName.MENURIGHT)) { placement = AttachmentMap.BOTTOMEND; } @@ -4037,7 +4035,7 @@ var Dropdown = function () { }; _proto._detectNavbar = function _detectNavbar() { - return $(this._element).closest('.navbar').length > 0; + return $$$1(this._element).closest('.navbar').length > 0; }; _proto._getPopperConfig = function _getPopperConfig() { @@ -4047,7 +4045,7 @@ var Dropdown = function () { if (typeof this._config.offset === 'function') { offsetConf.fn = function (data) { - data.offsets = $.extend({}, data.offsets, _this2._config.offset(data.offsets) || {}); + data.offsets = $$$1.extend({}, data.offsets, _this2._config.offset(data.offsets) || {}); return data; }; } else { @@ -4077,13 +4075,13 @@ var Dropdown = function () { Dropdown._jQueryInterface = function _jQueryInterface(config) { return this.each(function () { - var data = $(this).data(DATA_KEY); + var data = $$$1(this).data(DATA_KEY); var _config = typeof config === 'object' ? config : null; if (!data) { data = new Dropdown(this, _config); - $(this).data(DATA_KEY, data); + $$$1(this).data(DATA_KEY, data); } if (typeof config === 'string') { @@ -4101,12 +4099,12 @@ var Dropdown = function () { return; } - var toggles = $.makeArray($(Selector.DATA_TOGGLE)); + var toggles = $$$1.makeArray($$$1(Selector.DATA_TOGGLE)); for (var i = 0; i < toggles.length; i++) { var parent = Dropdown._getParentFromElement(toggles[i]); - var context = $(toggles[i]).data(DATA_KEY); + var context = $$$1(toggles[i]).data(DATA_KEY); var relatedTarget = { relatedTarget: toggles[i] }; @@ -4117,16 +4115,16 @@ var Dropdown = function () { var dropdownMenu = context._menu; - if (!$(parent).hasClass(ClassName.SHOW)) { + if (!$$$1(parent).hasClass(ClassName.SHOW)) { 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) && $$$1.contains(parent, event.target)) { continue; } - var hideEvent = $.Event(Event.HIDE, relatedTarget); - $(parent).trigger(hideEvent); + var hideEvent = $$$1.Event(Event.HIDE, relatedTarget); + $$$1(parent).trigger(hideEvent); if (hideEvent.isDefaultPrevented()) { continue; @@ -4135,12 +4133,12 @@ var Dropdown = function () { if ('ontouchstart' in document.documentElement) { - $('body').children().off('mouseover', null, $.noop); + $$$1('body').children().off('mouseover', null, $$$1.noop); } toggles[i].setAttribute('aria-expanded', 'false'); - $(dropdownMenu).removeClass(ClassName.SHOW); - $(parent).removeClass(ClassName.SHOW).trigger($.Event(Event.HIDDEN, relatedTarget)); + $$$1(dropdownMenu).removeClass(ClassName.SHOW); + $$$1(parent).removeClass(ClassName.SHOW).trigger($$$1.Event(Event.HIDDEN, relatedTarget)); } }; @@ -4149,7 +4147,7 @@ var Dropdown = function () { var selector = Util.getSelectorFromElement(element); if (selector) { - parent = $(selector)[0]; + parent = $$$1(selector)[0]; } return parent || element.parentNode; @@ -4163,25 +4161,25 @@ var Dropdown = function () { event.preventDefault(); event.stopPropagation(); - if (this.disabled || $(this).hasClass(ClassName.DISABLED)) { + if (this.disabled || $$$1(this).hasClass(ClassName.DISABLED)) { return; } var parent = Dropdown._getParentFromElement(this); - var isActive = $(parent).hasClass(ClassName.SHOW); + var isActive = $$$1(parent).hasClass(ClassName.SHOW); if (!isActive && (event.which !== ESCAPE_KEYCODE || event.which !== SPACE_KEYCODE) || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) { if (event.which === ESCAPE_KEYCODE) { - var toggle = $(parent).find(Selector.DATA_TOGGLE)[0]; - $(toggle).trigger('focus'); + var toggle = $$$1(parent).find(Selector.DATA_TOGGLE)[0]; + $$$1(toggle).trigger('focus'); } - $(this).trigger('click'); + $$$1(this).trigger('click'); return; } - var items = $(parent).find(Selector.VISIBLE_ITEMS).get(); + var items = $$$1(parent).find(Selector.VISIBLE_ITEMS).get(); if (!items.length) { return; @@ -4231,11 +4229,11 @@ var Dropdown = function () { */ - $(document).on(Event.KEYDOWN_DATA_API, Selector.DATA_TOGGLE, Dropdown._dataApiKeydownHandler).on(Event.KEYDOWN_DATA_API, Selector.MENU, Dropdown._dataApiKeydownHandler).on(Event.CLICK_DATA_API + " " + Event.KEYUP_DATA_API, Dropdown._clearMenus).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) { + $$$1(document).on(Event.KEYDOWN_DATA_API, Selector.DATA_TOGGLE, Dropdown._dataApiKeydownHandler).on(Event.KEYDOWN_DATA_API, Selector.MENU, Dropdown._dataApiKeydownHandler).on(Event.CLICK_DATA_API + " " + Event.KEYUP_DATA_API, Dropdown._clearMenus).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) { event.preventDefault(); event.stopPropagation(); - Dropdown._jQueryInterface.call($(this), 'toggle'); + Dropdown._jQueryInterface.call($$$1(this), 'toggle'); }).on(Event.CLICK_DATA_API, Selector.FORM_CHILD, function (e) { e.stopPropagation(); }); @@ -4245,11 +4243,11 @@ var Dropdown = function () { * ------------------------------------------------------------------------ */ - $.fn[NAME] = Dropdown._jQueryInterface; - $.fn[NAME].Constructor = Dropdown; + $$$1.fn[NAME] = Dropdown._jQueryInterface; + $$$1.fn[NAME].Constructor = Dropdown; - $.fn[NAME].noConflict = function () { - $.fn[NAME] = JQUERY_NO_CONFLICT; + $$$1.fn[NAME].noConflict = function () { + $$$1.fn[NAME] = JQUERY_NO_CONFLICT; return Dropdown._jQueryInterface; }; @@ -4263,7 +4261,7 @@ var Dropdown = function () { * -------------------------------------------------------------------------- */ -var Modal = function () { +var Modal = function ($$$1) { /** * ------------------------------------------------------------------------ * Constants @@ -4274,7 +4272,7 @@ var Modal = function () { var DATA_KEY = 'bs.modal'; var EVENT_KEY = "." + DATA_KEY; var DATA_API_KEY = '.data-api'; - var JQUERY_NO_CONFLICT = $.fn[NAME]; + var JQUERY_NO_CONFLICT = $$$1.fn[NAME]; var TRANSITION_DURATION = 300; var BACKDROP_TRANSITION_DURATION = 150; var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key @@ -4332,7 +4330,7 @@ var Modal = function () { function Modal(element, config) { this._config = this._getConfig(config); this._element = element; - this._dialog = $(element).find(Selector.DIALOG)[0]; + this._dialog = $$$1(element).find(Selector.DIALOG)[0]; this._backdrop = null; this._isShown = false; this._isBodyOverflowing = false; @@ -4356,14 +4354,14 @@ var Modal = function () { return; } - if (Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE)) { + if (Util.supportsTransitionEnd() && $$$1(this._element).hasClass(ClassName.FADE)) { this._isTransitioning = true; } - var showEvent = $.Event(Event.SHOW, { + var showEvent = $$$1.Event(Event.SHOW, { relatedTarget: relatedTarget }); - $(this._element).trigger(showEvent); + $$$1(this._element).trigger(showEvent); if (this._isShown || showEvent.isDefaultPrevented()) { return; @@ -4377,18 +4375,18 @@ var Modal = function () { this._adjustDialog(); - $(document.body).addClass(ClassName.OPEN); + $$$1(document.body).addClass(ClassName.OPEN); this._setEscapeEvent(); this._setResizeEvent(); - $(this._element).on(Event.CLICK_DISMISS, Selector.DATA_DISMISS, function (event) { + $$$1(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)) { + $$$1(this._dialog).on(Event.MOUSEDOWN_DISMISS, function () { + $$$1(_this._element).one(Event.MOUSEUP_DISMISS, function (event) { + if ($$$1(event.target).is(_this._element)) { _this._ignoreBackdropClick = true; } }); @@ -4410,15 +4408,15 @@ var Modal = function () { return; } - var hideEvent = $.Event(Event.HIDE); - $(this._element).trigger(hideEvent); + var hideEvent = $$$1.Event(Event.HIDE); + $$$1(this._element).trigger(hideEvent); if (!this._isShown || hideEvent.isDefaultPrevented()) { return; } this._isShown = false; - var transition = Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE); + var transition = Util.supportsTransitionEnd() && $$$1(this._element).hasClass(ClassName.FADE); if (transition) { this._isTransitioning = true; @@ -4428,13 +4426,13 @@ var Modal = function () { this._setResizeEvent(); - $(document).off(Event.FOCUSIN); - $(this._element).removeClass(ClassName.SHOW); - $(this._element).off(Event.CLICK_DISMISS); - $(this._dialog).off(Event.MOUSEDOWN_DISMISS); + $$$1(document).off(Event.FOCUSIN); + $$$1(this._element).removeClass(ClassName.SHOW); + $$$1(this._element).off(Event.CLICK_DISMISS); + $$$1(this._dialog).off(Event.MOUSEDOWN_DISMISS); if (transition) { - $(this._element).one(Util.TRANSITION_END, function (event) { + $$$1(this._element).one(Util.TRANSITION_END, function (event) { return _this2._hideModal(event); }).emulateTransitionEnd(TRANSITION_DURATION); } else { @@ -4443,8 +4441,8 @@ var Modal = function () { }; _proto.dispose = function dispose() { - $.removeData(this._element, DATA_KEY); - $(window, document, this._element, this._backdrop).off(EVENT_KEY); + $$$1.removeData(this._element, DATA_KEY); + $$$1(window, document, this._element, this._backdrop).off(EVENT_KEY); this._config = null; this._element = null; this._dialog = null; @@ -4461,7 +4459,7 @@ var Modal = function () { _proto._getConfig = function _getConfig(config) { - config = $.extend({}, Default, config); + config = $$$1.extend({}, Default, config); Util.typeCheckConfig(NAME, config, DefaultType); return config; }; @@ -4469,7 +4467,7 @@ var Modal = function () { _proto._showElement = function _showElement(relatedTarget) { var _this3 = this; - var transition = Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE); + var transition = Util.supportsTransitionEnd() && $$$1(this._element).hasClass(ClassName.FADE); if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) { // don't move modals dom position @@ -4486,13 +4484,13 @@ var Modal = function () { Util.reflow(this._element); } - $(this._element).addClass(ClassName.SHOW); + $$$1(this._element).addClass(ClassName.SHOW); if (this._config.focus) { this._enforceFocus(); } - var shownEvent = $.Event(Event.SHOWN, { + var shownEvent = $$$1.Event(Event.SHOWN, { relatedTarget: relatedTarget }); @@ -4502,11 +4500,11 @@ var Modal = function () { } _this3._isTransitioning = false; - $(_this3._element).trigger(shownEvent); + $$$1(_this3._element).trigger(shownEvent); }; if (transition) { - $(this._dialog).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(TRANSITION_DURATION); + $$$1(this._dialog).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(TRANSITION_DURATION); } else { transitionComplete(); } @@ -4515,9 +4513,9 @@ var Modal = function () { _proto._enforceFocus = function _enforceFocus() { var _this4 = this; - $(document).off(Event.FOCUSIN) // guard against infinite focus loop + $$$1(document).off(Event.FOCUSIN) // guard against infinite focus loop .on(Event.FOCUSIN, function (event) { - if (document !== event.target && _this4._element !== event.target && !$(_this4._element).has(event.target).length) { + if (document !== event.target && _this4._element !== event.target && !$$$1(_this4._element).has(event.target).length) { _this4._element.focus(); } }); @@ -4527,7 +4525,7 @@ var Modal = function () { var _this5 = this; if (this._isShown && this._config.keyboard) { - $(this._element).on(Event.KEYDOWN_DISMISS, function (event) { + $$$1(this._element).on(Event.KEYDOWN_DISMISS, function (event) { if (event.which === ESCAPE_KEYCODE) { event.preventDefault(); @@ -4535,7 +4533,7 @@ var Modal = function () { } }); } else if (!this._isShown) { - $(this._element).off(Event.KEYDOWN_DISMISS); + $$$1(this._element).off(Event.KEYDOWN_DISMISS); } }; @@ -4543,11 +4541,11 @@ var Modal = function () { var _this6 = this; if (this._isShown) { - $(window).on(Event.RESIZE, function (event) { + $$$1(window).on(Event.RESIZE, function (event) { return _this6.handleUpdate(event); }); } else { - $(window).off(Event.RESIZE); + $$$1(window).off(Event.RESIZE); } }; @@ -4561,19 +4559,19 @@ var Modal = function () { this._isTransitioning = false; this._showBackdrop(function () { - $(document.body).removeClass(ClassName.OPEN); + $$$1(document.body).removeClass(ClassName.OPEN); _this7._resetAdjustments(); _this7._resetScrollbar(); - $(_this7._element).trigger(Event.HIDDEN); + $$$1(_this7._element).trigger(Event.HIDDEN); }); }; _proto._removeBackdrop = function _removeBackdrop() { if (this._backdrop) { - $(this._backdrop).remove(); + $$$1(this._backdrop).remove(); this._backdrop = null; } }; @@ -4581,7 +4579,7 @@ var Modal = function () { _proto._showBackdrop = function _showBackdrop(callback) { var _this8 = this; - var animate = $(this._element).hasClass(ClassName.FADE) ? ClassName.FADE : ''; + var animate = $$$1(this._element).hasClass(ClassName.FADE) ? ClassName.FADE : ''; if (this._isShown && this._config.backdrop) { var doAnimate = Util.supportsTransitionEnd() && animate; @@ -4589,11 +4587,11 @@ var Modal = function () { this._backdrop.className = ClassName.BACKDROP; if (animate) { - $(this._backdrop).addClass(animate); + $$$1(this._backdrop).addClass(animate); } - $(this._backdrop).appendTo(document.body); - $(this._element).on(Event.CLICK_DISMISS, function (event) { + $$$1(this._backdrop).appendTo(document.body); + $$$1(this._element).on(Event.CLICK_DISMISS, function (event) { if (_this8._ignoreBackdropClick) { _this8._ignoreBackdropClick = false; return; @@ -4614,7 +4612,7 @@ var Modal = function () { Util.reflow(this._backdrop); } - $(this._backdrop).addClass(ClassName.SHOW); + $$$1(this._backdrop).addClass(ClassName.SHOW); if (!callback) { return; @@ -4625,9 +4623,9 @@ var Modal = function () { return; } - $(this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(BACKDROP_TRANSITION_DURATION); + $$$1(this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(BACKDROP_TRANSITION_DURATION); } else if (!this._isShown && this._backdrop) { - $(this._backdrop).removeClass(ClassName.SHOW); + $$$1(this._backdrop).removeClass(ClassName.SHOW); var callbackRemove = function callbackRemove() { _this8._removeBackdrop(); @@ -4637,8 +4635,8 @@ var Modal = function () { } }; - if (Util.supportsTransitionEnd() && $(this._element).hasClass(ClassName.FADE)) { - $(this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(BACKDROP_TRANSITION_DURATION); + if (Util.supportsTransitionEnd() && $$$1(this._element).hasClass(ClassName.FADE)) { + $$$1(this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(BACKDROP_TRANSITION_DURATION); } else { callbackRemove(); } @@ -4681,52 +4679,52 @@ var Modal = function () { // Note: DOMNode.style.paddingRight returns the actual value or '' if not set // while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set // Adjust fixed content padding - $(Selector.FIXED_CONTENT).each(function (index, element) { - var actualPadding = $(element)[0].style.paddingRight; - var calculatedPadding = $(element).css('padding-right'); - $(element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this9._scrollbarWidth + "px"); + $$$1(Selector.FIXED_CONTENT).each(function (index, element) { + var actualPadding = $$$1(element)[0].style.paddingRight; + var calculatedPadding = $$$1(element).css('padding-right'); + $$$1(element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this9._scrollbarWidth + "px"); }); // Adjust sticky content margin - $(Selector.STICKY_CONTENT).each(function (index, element) { - var actualMargin = $(element)[0].style.marginRight; - var calculatedMargin = $(element).css('margin-right'); - $(element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this9._scrollbarWidth + "px"); + $$$1(Selector.STICKY_CONTENT).each(function (index, element) { + var actualMargin = $$$1(element)[0].style.marginRight; + var calculatedMargin = $$$1(element).css('margin-right'); + $$$1(element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this9._scrollbarWidth + "px"); }); // Adjust navbar-toggler margin - $(Selector.NAVBAR_TOGGLER).each(function (index, element) { - var actualMargin = $(element)[0].style.marginRight; - var calculatedMargin = $(element).css('margin-right'); - $(element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) + _this9._scrollbarWidth + "px"); + $$$1(Selector.NAVBAR_TOGGLER).each(function (index, element) { + var actualMargin = $$$1(element)[0].style.marginRight; + var calculatedMargin = $$$1(element).css('margin-right'); + $$$1(element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) + _this9._scrollbarWidth + "px"); }); // Adjust body padding var actualPadding = document.body.style.paddingRight; - var calculatedPadding = $('body').css('padding-right'); - $('body').data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px"); + var calculatedPadding = $$$1('body').css('padding-right'); + $$$1('body').data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px"); } }; _proto._resetScrollbar = function _resetScrollbar() { // Restore fixed content padding - $(Selector.FIXED_CONTENT).each(function (index, element) { - var padding = $(element).data('padding-right'); + $$$1(Selector.FIXED_CONTENT).each(function (index, element) { + var padding = $$$1(element).data('padding-right'); if (typeof padding !== 'undefined') { - $(element).css('padding-right', padding).removeData('padding-right'); + $$$1(element).css('padding-right', padding).removeData('padding-right'); } }); // Restore sticky content and navbar-toggler margin - $(Selector.STICKY_CONTENT + ", " + Selector.NAVBAR_TOGGLER).each(function (index, element) { - var margin = $(element).data('margin-right'); + $$$1(Selector.STICKY_CONTENT + ", " + Selector.NAVBAR_TOGGLER).each(function (index, element) { + var margin = $$$1(element).data('margin-right'); if (typeof margin !== 'undefined') { - $(element).css('margin-right', margin).removeData('margin-right'); + $$$1(element).css('margin-right', margin).removeData('margin-right'); } }); // Restore body padding - var padding = $('body').data('padding-right'); + var padding = $$$1('body').data('padding-right'); if (typeof padding !== 'undefined') { - $('body').css('padding-right', padding).removeData('padding-right'); + $$$1('body').css('padding-right', padding).removeData('padding-right'); } }; @@ -4743,13 +4741,13 @@ var Modal = function () { Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) { return this.each(function () { - var data = $(this).data(DATA_KEY); + var data = $$$1(this).data(DATA_KEY); - var _config = $.extend({}, Modal.Default, $(this).data(), typeof config === 'object' && config); + var _config = $$$1.extend({}, Modal.Default, $$$1(this).data(), typeof config === 'object' && config); if (!data) { data = new Modal(this, _config); - $(this).data(DATA_KEY, data); + $$$1(this).data(DATA_KEY, data); } if (typeof config === 'string') { @@ -4784,36 +4782,36 @@ var Modal = function () { */ - $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) { + $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) { var _this10 = this; var target; var selector = Util.getSelectorFromElement(this); if (selector) { - target = $(selector)[0]; + target = $$$1(selector)[0]; } - var config = $(target).data(DATA_KEY) ? 'toggle' : $.extend({}, $(target).data(), $(this).data()); + var config = $$$1(target).data(DATA_KEY) ? 'toggle' : $$$1.extend({}, $$$1(target).data(), $$$1(this).data()); if (this.tagName === 'A' || this.tagName === 'AREA') { event.preventDefault(); } - var $target = $(target).one(Event.SHOW, function (showEvent) { + var $target = $$$1(target).one(Event.SHOW, function (showEvent) { if (showEvent.isDefaultPrevented()) { // only register focus restorer if modal will actually get shown return; } $target.one(Event.HIDDEN, function () { - if ($(_this10).is(':visible')) { + if ($$$1(_this10).is(':visible')) { _this10.focus(); } }); }); - Modal._jQueryInterface.call($(target), config, this); + Modal._jQueryInterface.call($$$1(target), config, this); }); /** * ------------------------------------------------------------------------ @@ -4821,11 +4819,11 @@ var Modal = function () { * ------------------------------------------------------------------------ */ - $.fn[NAME] = Modal._jQueryInterface; - $.fn[NAME].Constructor = Modal; + $$$1.fn[NAME] = Modal._jQueryInterface; + $$$1.fn[NAME].Constructor = Modal; - $.fn[NAME].noConflict = function () { - $.fn[NAME] = JQUERY_NO_CONFLICT; + $$$1.fn[NAME].noConflict = function () { + $$$1.fn[NAME] = JQUERY_NO_CONFLICT; return Modal._jQueryInterface; }; @@ -4839,7 +4837,7 @@ var Modal = function () { * -------------------------------------------------------------------------- */ -var Tooltip = function () { +var Tooltip = function ($$$1) { /** * Check for Popper dependency * Popper - https://popper.js.org @@ -4858,7 +4856,7 @@ var Tooltip = function () { var VERSION = '4.0.0-beta.2'; var DATA_KEY = 'bs.tooltip'; var EVENT_KEY = "." + DATA_KEY; - var JQUERY_NO_CONFLICT = $.fn[NAME]; + var JQUERY_NO_CONFLICT = $$$1.fn[NAME]; var TRANSITION_DURATION = 150; var CLASS_PREFIX = 'bs-tooltip'; var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g'); @@ -4974,11 +4972,11 @@ var Tooltip = function () { if (event) { var dataKey = this.constructor.DATA_KEY; - var context = $(event.currentTarget).data(dataKey); + var context = $$$1(event.currentTarget).data(dataKey); if (!context) { context = new this.constructor(event.currentTarget, this._getDelegateConfig()); - $(event.currentTarget).data(dataKey, context); + $$$1(event.currentTarget).data(dataKey, context); } context._activeTrigger.click = !context._activeTrigger.click; @@ -4989,7 +4987,7 @@ var Tooltip = function () { context._leave(null, context); } } else { - if ($(this.getTipElement()).hasClass(ClassName.SHOW)) { + if ($$$1(this.getTipElement()).hasClass(ClassName.SHOW)) { this._leave(null, this); return; @@ -5001,12 +4999,12 @@ var Tooltip = function () { _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'); + $$$1.removeData(this.element, this.constructor.DATA_KEY); + $$$1(this.element).off(this.constructor.EVENT_KEY); + $$$1(this.element).closest('.modal').off('hide.bs.modal'); if (this.tip) { - $(this.tip).remove(); + $$$1(this.tip).remove(); } this._isEnabled = null; @@ -5027,15 +5025,15 @@ var Tooltip = function () { _proto.show = function show() { var _this = this; - if ($(this.element).css('display') === 'none') { + if ($$$1(this.element).css('display') === 'none') { throw new Error('Please use show on visible elements'); } - var showEvent = $.Event(this.constructor.Event.SHOW); + var showEvent = $$$1.Event(this.constructor.Event.SHOW); if (this.isWithContent() && this._isEnabled) { - $(this.element).trigger(showEvent); - var isInTheDom = $.contains(this.element.ownerDocument.documentElement, this.element); + $$$1(this.element).trigger(showEvent); + var isInTheDom = $$$1.contains(this.element.ownerDocument.documentElement, this.element); if (showEvent.isDefaultPrevented() || !isInTheDom) { return; @@ -5048,7 +5046,7 @@ var Tooltip = function () { this.setContent(); if (this.config.animation) { - $(tip).addClass(ClassName.FADE); + $$$1(tip).addClass(ClassName.FADE); } var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this.element) : this.config.placement; @@ -5056,14 +5054,14 @@ var Tooltip = function () { var attachment = this._getAttachment(placement); this.addAttachmentClass(attachment); - var container = this.config.container === false ? document.body : $(this.config.container); - $(tip).data(this.constructor.DATA_KEY, this); + var container = this.config.container === false ? document.body : $$$1(this.config.container); + $$$1(tip).data(this.constructor.DATA_KEY, this); - if (!$.contains(this.element.ownerDocument.documentElement, this.tip)) { - $(tip).appendTo(container); + if (!$$$1.contains(this.element.ownerDocument.documentElement, this.tip)) { + $$$1(tip).appendTo(container); } - $(this.element).trigger(this.constructor.Event.INSERTED); + $$$1(this.element).trigger(this.constructor.Event.INSERTED); this._popper = new Popper(this.element, tip, { placement: attachment, modifiers: { @@ -5086,13 +5084,13 @@ var Tooltip = function () { _this._handlePopperPlacementChange(data); } }); - $(tip).addClass(ClassName.SHOW); // if this is a touch-enabled device we add extra + $$$1(tip).addClass(ClassName.SHOW); // 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) { - $('body').children().on('mouseover', null, $.noop); + $$$1('body').children().on('mouseover', null, $$$1.noop); } var complete = function complete() { @@ -5102,15 +5100,15 @@ var Tooltip = function () { var prevHoverState = _this._hoverState; _this._hoverState = null; - $(_this.element).trigger(_this.constructor.Event.SHOWN); + $$$1(_this.element).trigger(_this.constructor.Event.SHOWN); if (prevHoverState === HoverState.OUT) { _this._leave(null, _this); } }; - if (Util.supportsTransitionEnd() && $(this.tip).hasClass(ClassName.FADE)) { - $(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(Tooltip._TRANSITION_DURATION); + if (Util.supportsTransitionEnd() && $$$1(this.tip).hasClass(ClassName.FADE)) { + $$$1(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(Tooltip._TRANSITION_DURATION); } else { complete(); } @@ -5121,7 +5119,7 @@ var Tooltip = function () { var _this2 = this; var tip = this.getTipElement(); - var hideEvent = $.Event(this.constructor.Event.HIDE); + var hideEvent = $$$1.Event(this.constructor.Event.HIDE); var complete = function complete() { if (_this2._hoverState !== HoverState.SHOW && tip.parentNode) { @@ -5132,7 +5130,7 @@ var Tooltip = function () { _this2.element.removeAttribute('aria-describedby'); - $(_this2.element).trigger(_this2.constructor.Event.HIDDEN); + $$$1(_this2.element).trigger(_this2.constructor.Event.HIDDEN); if (_this2._popper !== null) { _this2._popper.destroy(); @@ -5143,25 +5141,25 @@ var Tooltip = function () { } }; - $(this.element).trigger(hideEvent); + $$$1(this.element).trigger(hideEvent); if (hideEvent.isDefaultPrevented()) { return; } - $(tip).removeClass(ClassName.SHOW); // if this is a touch-enabled device we remove the extra + $$$1(tip).removeClass(ClassName.SHOW); // if this is a touch-enabled device we remove the extra // empty mouseover listeners we added for iOS support if ('ontouchstart' in document.documentElement) { - $('body').children().off('mouseover', null, $.noop); + $$$1('body').children().off('mouseover', null, $$$1.noop); } this._activeTrigger[Trigger.CLICK] = false; this._activeTrigger[Trigger.FOCUS] = false; this._activeTrigger[Trigger.HOVER] = false; - if (Util.supportsTransitionEnd() && $(this.tip).hasClass(ClassName.FADE)) { - $(tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION); + if (Util.supportsTransitionEnd() && $$$1(this.tip).hasClass(ClassName.FADE)) { + $$$1(tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION); } else { complete(); } @@ -5181,16 +5179,16 @@ var Tooltip = function () { }; _proto.addAttachmentClass = function addAttachmentClass(attachment) { - $(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment); + $$$1(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment); }; _proto.getTipElement = function getTipElement() { - this.tip = this.tip || $(this.config.template)[0]; + this.tip = this.tip || $$$1(this.config.template)[0]; return this.tip; }; _proto.setContent = function setContent() { - var $tip = $(this.getTipElement()); + var $tip = $$$1(this.getTipElement()); this.setElementContent($tip.find(Selector.TOOLTIP_INNER), this.getTitle()); $tip.removeClass(ClassName.FADE + " " + ClassName.SHOW); }; @@ -5201,11 +5199,11 @@ var Tooltip = function () { if (typeof content === 'object' && (content.nodeType || content.jquery)) { // content is a DOM node or a jQuery if (html) { - if (!$(content).parent().is($element)) { + if (!$$$1(content).parent().is($element)) { $element.empty().append(content); } } else { - $element.text($(content).text()); + $element.text($$$1(content).text()); } } else { $element[html ? 'html' : 'text'](content); @@ -5233,26 +5231,26 @@ var Tooltip = function () { var triggers = this.config.trigger.split(' '); triggers.forEach(function (trigger) { if (trigger === 'click') { - $(_this3.element).on(_this3.constructor.Event.CLICK, _this3.config.selector, function (event) { + $$$1(_this3.element).on(_this3.constructor.Event.CLICK, _this3.config.selector, function (event) { return _this3.toggle(event); }); } else if (trigger !== Trigger.MANUAL) { var eventIn = trigger === Trigger.HOVER ? _this3.constructor.Event.MOUSEENTER : _this3.constructor.Event.FOCUSIN; var eventOut = trigger === Trigger.HOVER ? _this3.constructor.Event.MOUSELEAVE : _this3.constructor.Event.FOCUSOUT; - $(_this3.element).on(eventIn, _this3.config.selector, function (event) { + $$$1(_this3.element).on(eventIn, _this3.config.selector, function (event) { return _this3._enter(event); }).on(eventOut, _this3.config.selector, function (event) { return _this3._leave(event); }); } - $(_this3.element).closest('.modal').on('hide.bs.modal', function () { + $$$1(_this3.element).closest('.modal').on('hide.bs.modal', function () { return _this3.hide(); }); }); if (this.config.selector) { - this.config = $.extend({}, this.config, { + this.config = $$$1.extend({}, this.config, { trigger: 'manual', selector: '' }); @@ -5272,18 +5270,18 @@ var Tooltip = function () { _proto._enter = function _enter(event, context) { var dataKey = this.constructor.DATA_KEY; - context = context || $(event.currentTarget).data(dataKey); + context = context || $$$1(event.currentTarget).data(dataKey); if (!context) { context = new this.constructor(event.currentTarget, this._getDelegateConfig()); - $(event.currentTarget).data(dataKey, context); + $$$1(event.currentTarget).data(dataKey, context); } if (event) { context._activeTrigger[event.type === 'focusin' ? Trigger.FOCUS : Trigger.HOVER] = true; } - if ($(context.getTipElement()).hasClass(ClassName.SHOW) || context._hoverState === HoverState.SHOW) { + if ($$$1(context.getTipElement()).hasClass(ClassName.SHOW) || context._hoverState === HoverState.SHOW) { context._hoverState = HoverState.SHOW; return; } @@ -5305,11 +5303,11 @@ var Tooltip = function () { _proto._leave = function _leave(event, context) { var dataKey = this.constructor.DATA_KEY; - context = context || $(event.currentTarget).data(dataKey); + context = context || $$$1(event.currentTarget).data(dataKey); if (!context) { context = new this.constructor(event.currentTarget, this._getDelegateConfig()); - $(event.currentTarget).data(dataKey, context); + $$$1(event.currentTarget).data(dataKey, context); } if (event) { @@ -5346,7 +5344,7 @@ var Tooltip = function () { }; _proto._getConfig = function _getConfig(config) { - config = $.extend({}, this.constructor.Default, $(this.element).data(), config); + config = $$$1.extend({}, this.constructor.Default, $$$1(this.element).data(), config); if (typeof config.delay === 'number') { config.delay = { @@ -5382,7 +5380,7 @@ var Tooltip = function () { }; _proto._cleanTipClass = function _cleanTipClass() { - var $tip = $(this.getTipElement()); + var $tip = $$$1(this.getTipElement()); var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX); if (tabClass !== null && tabClass.length > 0) { @@ -5404,7 +5402,7 @@ var Tooltip = function () { return; } - $(tip).removeClass(ClassName.FADE); + $$$1(tip).removeClass(ClassName.FADE); this.config.animation = false; this.hide(); this.show(); @@ -5414,7 +5412,7 @@ var Tooltip = function () { Tooltip._jQueryInterface = function _jQueryInterface(config) { return this.each(function () { - var data = $(this).data(DATA_KEY); + var data = $$$1(this).data(DATA_KEY); var _config = typeof config === 'object' && config; @@ -5424,7 +5422,7 @@ var Tooltip = function () { if (!data) { data = new Tooltip(this, _config); - $(this).data(DATA_KEY, data); + $$$1(this).data(DATA_KEY, data); } if (typeof config === 'string') { @@ -5482,11 +5480,11 @@ var Tooltip = function () { */ - $.fn[NAME] = Tooltip._jQueryInterface; - $.fn[NAME].Constructor = Tooltip; + $$$1.fn[NAME] = Tooltip._jQueryInterface; + $$$1.fn[NAME].Constructor = Tooltip; - $.fn[NAME].noConflict = function () { - $.fn[NAME] = JQUERY_NO_CONFLICT; + $$$1.fn[NAME].noConflict = function () { + $$$1.fn[NAME] = JQUERY_NO_CONFLICT; return Tooltip._jQueryInterface; }; @@ -5500,7 +5498,7 @@ var Tooltip = function () { * -------------------------------------------------------------------------- */ -var Popover = function () { +var Popover = function ($$$1) { /** * ------------------------------------------------------------------------ * Constants @@ -5510,16 +5508,16 @@ var Popover = function () { var VERSION = '4.0.0-beta.2'; var DATA_KEY = 'bs.popover'; var EVENT_KEY = "." + DATA_KEY; - var JQUERY_NO_CONFLICT = $.fn[NAME]; + var JQUERY_NO_CONFLICT = $$$1.fn[NAME]; var CLASS_PREFIX = 'bs-popover'; var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g'); - var Default = $.extend({}, Tooltip.Default, { + var Default = $$$1.extend({}, Tooltip.Default, { placement: 'right', trigger: 'click', content: '', template: '<div class="popover" role="tooltip">' + '<div class="arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>' }); - var DefaultType = $.extend({}, Tooltip.DefaultType, { + var DefaultType = $$$1.extend({}, Tooltip.DefaultType, { content: '(string|element|function)' }); var ClassName = { @@ -5566,16 +5564,16 @@ var Popover = function () { }; _proto.addAttachmentClass = function addAttachmentClass(attachment) { - $(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment); + $$$1(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment); }; _proto.getTipElement = function getTipElement() { - this.tip = this.tip || $(this.config.template)[0]; + this.tip = this.tip || $$$1(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 = $$$1(this.getTipElement()); // we use append for html objects to maintain js events this.setElementContent($tip.find(Selector.TITLE), this.getTitle()); this.setElementContent($tip.find(Selector.CONTENT), this._getContent()); @@ -5588,7 +5586,7 @@ var Popover = function () { }; _proto._cleanTipClass = function _cleanTipClass() { - var $tip = $(this.getTipElement()); + var $tip = $$$1(this.getTipElement()); var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX); if (tabClass !== null && tabClass.length > 0) { @@ -5599,7 +5597,7 @@ var Popover = function () { Popover._jQueryInterface = function _jQueryInterface(config) { return this.each(function () { - var data = $(this).data(DATA_KEY); + var data = $$$1(this).data(DATA_KEY); var _config = typeof config === 'object' ? config : null; @@ -5609,7 +5607,7 @@ var Popover = function () { if (!data) { data = new Popover(this, _config); - $(this).data(DATA_KEY, data); + $$$1(this).data(DATA_KEY, data); } if (typeof config === 'string') { @@ -5668,11 +5666,11 @@ var Popover = function () { */ - $.fn[NAME] = Popover._jQueryInterface; - $.fn[NAME].Constructor = Popover; + $$$1.fn[NAME] = Popover._jQueryInterface; + $$$1.fn[NAME].Constructor = Popover; - $.fn[NAME].noConflict = function () { - $.fn[NAME] = JQUERY_NO_CONFLICT; + $$$1.fn[NAME].noConflict = function () { + $$$1.fn[NAME] = JQUERY_NO_CONFLICT; return Popover._jQueryInterface; }; @@ -5686,7 +5684,7 @@ var Popover = function () { * -------------------------------------------------------------------------- */ -var ScrollSpy = function () { +var ScrollSpy = function ($$$1) { /** * ------------------------------------------------------------------------ * Constants @@ -5697,7 +5695,7 @@ var ScrollSpy = function () { var DATA_KEY = 'bs.scrollspy'; var EVENT_KEY = "." + DATA_KEY; var DATA_API_KEY = '.data-api'; - var JQUERY_NO_CONFLICT = $.fn[NAME]; + var JQUERY_NO_CONFLICT = $$$1.fn[NAME]; var Default = { offset: 10, method: 'auto', @@ -5754,7 +5752,7 @@ var ScrollSpy = function () { this._targets = []; this._activeTarget = null; this._scrollHeight = 0; - $(this._scrollElement).on(Event.SCROLL, function (event) { + $$$1(this._scrollElement).on(Event.SCROLL, function (event) { return _this._process(event); }); this.refresh(); @@ -5775,13 +5773,13 @@ var ScrollSpy = function () { this._offsets = []; this._targets = []; this._scrollHeight = this._getScrollHeight(); - var targets = $.makeArray($(this._selector)); + var targets = $$$1.makeArray($$$1(this._selector)); targets.map(function (element) { var target; var targetSelector = Util.getSelectorFromElement(element); if (targetSelector) { - target = $(targetSelector)[0]; + target = $$$1(targetSelector)[0]; } if (target) { @@ -5789,7 +5787,7 @@ var ScrollSpy = function () { if (targetBCR.width || targetBCR.height) { // todo (fat): remove sketch reliance on jQuery position/offset - return [$(target)[offsetMethod]().top + offsetBase, targetSelector]; + return [$$$1(target)[offsetMethod]().top + offsetBase, targetSelector]; } } @@ -5806,8 +5804,8 @@ var ScrollSpy = function () { }; _proto.dispose = function dispose() { - $.removeData(this._element, DATA_KEY); - $(this._scrollElement).off(EVENT_KEY); + $$$1.removeData(this._element, DATA_KEY); + $$$1(this._scrollElement).off(EVENT_KEY); this._element = null; this._scrollElement = null; this._config = null; @@ -5820,14 +5818,14 @@ var ScrollSpy = function () { _proto._getConfig = function _getConfig(config) { - config = $.extend({}, Default, config); + config = $$$1.extend({}, Default, config); if (typeof config.target !== 'string') { - var id = $(config.target).attr('id'); + var id = $$$1(config.target).attr('id'); if (!id) { id = Util.getUID(NAME); - $(config.target).attr('id', id); + $$$1(config.target).attr('id', id); } config.target = "#" + id; @@ -5898,7 +5896,7 @@ var ScrollSpy = function () { queries = queries.map(function (selector) { return selector + "[data-target=\"" + target + "\"]," + (selector + "[href=\"" + target + "\"]"); }); - var $link = $(queries.join(',')); + var $link = $$$1(queries.join(',')); if ($link.hasClass(ClassName.DROPDOWN_ITEM)) { $link.closest(Selector.DROPDOWN).find(Selector.DROPDOWN_TOGGLE).addClass(ClassName.ACTIVE); @@ -5913,25 +5911,25 @@ var ScrollSpy = function () { $link.parents(Selector.NAV_LIST_GROUP).prev(Selector.NAV_ITEMS).children(Selector.NAV_LINKS).addClass(ClassName.ACTIVE); } - $(this._scrollElement).trigger(Event.ACTIVATE, { + $$$1(this._scrollElement).trigger(Event.ACTIVATE, { relatedTarget: target }); }; _proto._clear = function _clear() { - $(this._selector).filter(Selector.ACTIVE).removeClass(ClassName.ACTIVE); + $$$1(this._selector).filter(Selector.ACTIVE).removeClass(ClassName.ACTIVE); }; // static ScrollSpy._jQueryInterface = function _jQueryInterface(config) { return this.each(function () { - var data = $(this).data(DATA_KEY); + var data = $$$1(this).data(DATA_KEY); var _config = typeof config === 'object' && config; if (!data) { data = new ScrollSpy(this, _config); - $(this).data(DATA_KEY, data); + $$$1(this).data(DATA_KEY, data); } if (typeof config === 'string') { @@ -5964,11 +5962,11 @@ var ScrollSpy = function () { */ - $(window).on(Event.LOAD_DATA_API, function () { - var scrollSpys = $.makeArray($(Selector.DATA_SPY)); + $$$1(window).on(Event.LOAD_DATA_API, function () { + var scrollSpys = $$$1.makeArray($$$1(Selector.DATA_SPY)); for (var i = scrollSpys.length; i--;) { - var $spy = $(scrollSpys[i]); + var $spy = $$$1(scrollSpys[i]); ScrollSpy._jQueryInterface.call($spy, $spy.data()); } @@ -5979,11 +5977,11 @@ var ScrollSpy = function () { * ------------------------------------------------------------------------ */ - $.fn[NAME] = ScrollSpy._jQueryInterface; - $.fn[NAME].Constructor = ScrollSpy; + $$$1.fn[NAME] = ScrollSpy._jQueryInterface; + $$$1.fn[NAME].Constructor = ScrollSpy; - $.fn[NAME].noConflict = function () { - $.fn[NAME] = JQUERY_NO_CONFLICT; + $$$1.fn[NAME].noConflict = function () { + $$$1.fn[NAME] = JQUERY_NO_CONFLICT; return ScrollSpy._jQueryInterface; }; @@ -5997,7 +5995,7 @@ var ScrollSpy = function () { * -------------------------------------------------------------------------- */ -var Tab = function () { +var Tab = function ($$$1) { /** * ------------------------------------------------------------------------ * Constants @@ -6008,7 +6006,7 @@ var Tab = function () { var DATA_KEY = 'bs.tab'; var EVENT_KEY = "." + DATA_KEY; var DATA_API_KEY = '.data-api'; - var JQUERY_NO_CONFLICT = $.fn[NAME]; + var JQUERY_NO_CONFLICT = $$$1.fn[NAME]; var TRANSITION_DURATION = 150; var Event = { HIDE: "hide" + EVENT_KEY, @@ -6054,53 +6052,53 @@ var Tab = function () { _proto.show = function show() { var _this = this; - if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $(this._element).hasClass(ClassName.ACTIVE) || $(this._element).hasClass(ClassName.DISABLED)) { + if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $$$1(this._element).hasClass(ClassName.ACTIVE) || $$$1(this._element).hasClass(ClassName.DISABLED)) { return; } var target; var previous; - var listElement = $(this._element).closest(Selector.NAV_LIST_GROUP)[0]; + var listElement = $$$1(this._element).closest(Selector.NAV_LIST_GROUP)[0]; var selector = Util.getSelectorFromElement(this._element); if (listElement) { var itemSelector = listElement.nodeName === 'UL' ? Selector.ACTIVE_UL : Selector.ACTIVE; - previous = $.makeArray($(listElement).find(itemSelector)); + previous = $$$1.makeArray($$$1(listElement).find(itemSelector)); previous = previous[previous.length - 1]; } - var hideEvent = $.Event(Event.HIDE, { + var hideEvent = $$$1.Event(Event.HIDE, { relatedTarget: this._element }); - var showEvent = $.Event(Event.SHOW, { + var showEvent = $$$1.Event(Event.SHOW, { relatedTarget: previous }); if (previous) { - $(previous).trigger(hideEvent); + $$$1(previous).trigger(hideEvent); } - $(this._element).trigger(showEvent); + $$$1(this._element).trigger(showEvent); if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) { return; } if (selector) { - target = $(selector)[0]; + target = $$$1(selector)[0]; } this._activate(this._element, listElement); var complete = function complete() { - var hiddenEvent = $.Event(Event.HIDDEN, { + var hiddenEvent = $$$1.Event(Event.HIDDEN, { relatedTarget: _this._element }); - var shownEvent = $.Event(Event.SHOWN, { + var shownEvent = $$$1.Event(Event.SHOWN, { relatedTarget: previous }); - $(previous).trigger(hiddenEvent); - $(_this._element).trigger(shownEvent); + $$$1(previous).trigger(hiddenEvent); + $$$1(_this._element).trigger(shownEvent); }; if (target) { @@ -6111,7 +6109,7 @@ var Tab = function () { }; _proto.dispose = function dispose() { - $.removeData(this._element, DATA_KEY); + $$$1.removeData(this._element, DATA_KEY); this._element = null; }; // private @@ -6122,36 +6120,36 @@ var Tab = function () { var activeElements; if (container.nodeName === 'UL') { - activeElements = $(container).find(Selector.ACTIVE_UL); + activeElements = $$$1(container).find(Selector.ACTIVE_UL); } else { - activeElements = $(container).children(Selector.ACTIVE); + activeElements = $$$1(container).children(Selector.ACTIVE); } var active = activeElements[0]; - var isTransitioning = callback && Util.supportsTransitionEnd() && active && $(active).hasClass(ClassName.FADE); + var isTransitioning = callback && Util.supportsTransitionEnd() && active && $$$1(active).hasClass(ClassName.FADE); var complete = function complete() { return _this2._transitionComplete(element, active, isTransitioning, callback); }; if (active && isTransitioning) { - $(active).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION); + $$$1(active).one(Util.TRANSITION_END, complete).emulateTransitionEnd(TRANSITION_DURATION); } else { complete(); } if (active) { - $(active).removeClass(ClassName.SHOW); + $$$1(active).removeClass(ClassName.SHOW); } }; _proto._transitionComplete = function _transitionComplete(element, active, isTransitioning, callback) { if (active) { - $(active).removeClass(ClassName.ACTIVE); - var dropdownChild = $(active.parentNode).find(Selector.DROPDOWN_ACTIVE_CHILD)[0]; + $$$1(active).removeClass(ClassName.ACTIVE); + var dropdownChild = $$$1(active.parentNode).find(Selector.DROPDOWN_ACTIVE_CHILD)[0]; if (dropdownChild) { - $(dropdownChild).removeClass(ClassName.ACTIVE); + $$$1(dropdownChild).removeClass(ClassName.ACTIVE); } if (active.getAttribute('role') === 'tab') { @@ -6159,7 +6157,7 @@ var Tab = function () { } } - $(element).addClass(ClassName.ACTIVE); + $$$1(element).addClass(ClassName.ACTIVE); if (element.getAttribute('role') === 'tab') { element.setAttribute('aria-selected', true); @@ -6167,16 +6165,16 @@ var Tab = function () { if (isTransitioning) { Util.reflow(element); - $(element).addClass(ClassName.SHOW); + $$$1(element).addClass(ClassName.SHOW); } else { - $(element).removeClass(ClassName.FADE); + $$$1(element).removeClass(ClassName.FADE); } - if (element.parentNode && $(element.parentNode).hasClass(ClassName.DROPDOWN_MENU)) { - var dropdownElement = $(element).closest(Selector.DROPDOWN)[0]; + if (element.parentNode && $$$1(element.parentNode).hasClass(ClassName.DROPDOWN_MENU)) { + var dropdownElement = $$$1(element).closest(Selector.DROPDOWN)[0]; if (dropdownElement) { - $(dropdownElement).find(Selector.DROPDOWN_TOGGLE).addClass(ClassName.ACTIVE); + $$$1(dropdownElement).find(Selector.DROPDOWN_TOGGLE).addClass(ClassName.ACTIVE); } element.setAttribute('aria-expanded', true); @@ -6190,7 +6188,7 @@ var Tab = function () { Tab._jQueryInterface = function _jQueryInterface(config) { return this.each(function () { - var $this = $(this); + var $this = $$$1(this); var data = $this.data(DATA_KEY); if (!data) { @@ -6223,10 +6221,10 @@ var Tab = function () { */ - $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) { + $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) { event.preventDefault(); - Tab._jQueryInterface.call($(this), 'show'); + Tab._jQueryInterface.call($$$1(this), 'show'); }); /** * ------------------------------------------------------------------------ @@ -6234,11 +6232,11 @@ var Tab = function () { * ------------------------------------------------------------------------ */ - $.fn[NAME] = Tab._jQueryInterface; - $.fn[NAME].Constructor = Tab; + $$$1.fn[NAME] = Tab._jQueryInterface; + $$$1.fn[NAME].Constructor = Tab; - $.fn[NAME].noConflict = function () { - $.fn[NAME] = JQUERY_NO_CONFLICT; + $$$1.fn[NAME].noConflict = function () { + $$$1.fn[NAME] = JQUERY_NO_CONFLICT; return Tab._jQueryInterface; }; @@ -6252,12 +6250,12 @@ var Tab = function () { * -------------------------------------------------------------------------- */ -(function () { - if (typeof $ === 'undefined') { +(function ($$$1) { + if (typeof $$$1 === 'undefined') { throw new Error('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.'); } - var version = $.fn.jquery.split(' ')[0].split('.'); + var version = $$$1.fn.jquery.split(' ')[0].split('.'); var minMajor = 1; var ltMajor = 2; var minMinor = 9; @@ -6283,5 +6281,5 @@ exports.Tooltip = Tooltip; return exports; -}({},$)); +}({},jQuery)); //# sourceMappingURL=bootstrap.bundle.js.map |