0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-23 15:52:21 +01:00
Bootstrap/dist/js/bootstrap.esm.min.js

7 lines
76 KiB
JavaScript
Raw Normal View History

2019-03-11 17:13:30 +02:00
/*!
2020-11-11 19:07:37 +02:00
* Bootstrap v5.0.0-alpha3 (https://getbootstrap.com/)
2020-03-28 12:29:08 +02:00
* Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
2020-06-16 21:50:01 +03:00
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
2019-03-11 17:13:30 +02:00
*/
2020-11-11 19:07:37 +02:00
import Popper from"popper.js";function _defineProperties(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}function _extends(){return(_extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function _inheritsLoose(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var MAX_UID=1e6,MILLISECONDS_MULTIPLIER=1e3,TRANSITION_END="transitionend",toType=function(t){return null==t?""+t:{}.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase()},getUID=function(t){do{t+=Math.floor(Math.random()*MAX_UID)}while(document.getElementById(t));return t},getSelector=function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():null}return e},getSelectorFromElement=function(t){var e=getSelector(t);return e&&document.querySelector(e)?e:null},getElementFromSelector=function(t){var e=getSelector(t);return e?document.querySelector(e):null},getTransitionDurationFromElement=function(t){if(!t)return 0;var e=window.getComputedStyle(t),n=e.transitionDuration,i=e.transitionDelay,o=parseFloat(n),r=parseFloat(i);return o||r?(n=n.split(",")[0],i=i.split(",")[0],(parseFloat(n)+parseFloat(i))*MILLISECONDS_MULTIPLIER):0},triggerTransitionEnd=function(t){t.dispatchEvent(new Event(TRANSITION_END))},isElement=function(t){return(t[0]||t).nodeType},emulateTransitionEnd=function(t,e){var n=!1,i=e+5;t.addEventListener(TRANSITION_END,(function e(){n=!0,t.removeEventListener(TRANSITION_END,e)})),setTimeout((function(){n||triggerTransitionEnd(t)}),i)},typeCheckConfig=function(t,e,n){Object.keys(n).forEach((function(i){var o=n[i],r=e[i],a=r&&isElement(r)?"element":toType(r);if(!new RegExp(o).test(a))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+a+'" but expected type "'+o+'".')}))},isVisible=function(t){if(!t)return!1;if(t.style&&t.parentNode&&t.parentNode.style){var e=getComputedStyle(t),n=getComputedStyle(t.parentNode);return"none"!==e.display&&"none"!==n.display&&"hidden"!==e.visibility}return!1},findShadowRoot=function t(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){var n=e.getRootNode();return n instanceof ShadowRoot?n:null}return e instanceof ShadowRoot?e:e.parentNode?t(e.parentNode):null},noop=function(){return function(){}},reflow=function(t){return t.offsetHeight},getjQuery=function(){var t=window.jQuery;return t&&!document.body.hasAttribute("data-no-jquery")?t:null},onDOMContentLoaded=function(t){"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):t()},mapData=function(){var t={},e=1;return{set:function(n,i,o){void 0===n.bsKey&&(n.bsKey={key:i,id:e},e++),t[n.bsKey.id]=o},get:function(e,n){if(!e||void 0===e.bsKey)return null;var i=e.bsKey;return i.key===n?t[i.id]:null},delete:function(e,n){if(void 0!==e.bsKey){var i=e.bsKey;i.key===n&&(delete t[i.id],delete e.bsKey)}}}}(),Data={setData:function(t,e,n){mapData.set(t,e,n)},getData:function(t,e){return mapData.get(t,e)},removeData:function(t,e){mapData.delete(t,e)}},namespaceRegex=/[^.]*(?=\..*)\.|.*/,stripNameRegex=/\..*/,stripUidRegex=/::\d+$/,eventRegistry={},uidEvent=1,customEvents={mouseenter:"mouseover",mouseleave:"mouseout"},nativeEvents=["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"];function getUidEve
2019-03-11 17:13:30 +02:00
//# sourceMappingURL=bootstrap.esm.min.js.map