bootstrap 5.0.0.alpha3 → 5.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/assets/javascripts/bootstrap-sprockets.js +8 -8
  4. data/assets/javascripts/bootstrap.js +597 -595
  5. data/assets/javascripts/bootstrap.min.js +2 -2
  6. data/assets/javascripts/bootstrap/alert.js +67 -31
  7. data/assets/javascripts/bootstrap/button.js +63 -24
  8. data/assets/javascripts/bootstrap/carousel.js +121 -74
  9. data/assets/javascripts/bootstrap/collapse.js +101 -54
  10. data/assets/javascripts/bootstrap/dom/data.js +2 -2
  11. data/assets/javascripts/bootstrap/dom/event-handler.js +12 -10
  12. data/assets/javascripts/bootstrap/dom/manipulator.js +12 -11
  13. data/assets/javascripts/bootstrap/dom/selector-engine.js +2 -2
  14. data/assets/javascripts/bootstrap/dropdown.js +142 -99
  15. data/assets/javascripts/bootstrap/modal.js +153 -109
  16. data/assets/javascripts/bootstrap/popover.js +11 -19
  17. data/assets/javascripts/bootstrap/scrollspy.js +82 -36
  18. data/assets/javascripts/bootstrap/tab.js +67 -28
  19. data/assets/javascripts/bootstrap/toast.js +90 -42
  20. data/assets/javascripts/bootstrap/tooltip.js +227 -148
  21. data/assets/stylesheets/_bootstrap-grid.scss +7 -7
  22. data/assets/stylesheets/_bootstrap-reboot.scss +1 -1
  23. data/assets/stylesheets/_bootstrap.scss +1 -1
  24. data/assets/stylesheets/bootstrap/_alert.scss +3 -3
  25. data/assets/stylesheets/bootstrap/_breadcrumb.scss +1 -1
  26. data/assets/stylesheets/bootstrap/_button-group.scss +5 -5
  27. data/assets/stylesheets/bootstrap/_card.scss +3 -3
  28. data/assets/stylesheets/bootstrap/_carousel.scss +23 -12
  29. data/assets/stylesheets/bootstrap/_dropdown.scss +22 -23
  30. data/assets/stylesheets/bootstrap/_functions.scss +1 -2
  31. data/assets/stylesheets/bootstrap/_list-group.scss +6 -6
  32. data/assets/stylesheets/bootstrap/_navbar.scss +1 -1
  33. data/assets/stylesheets/bootstrap/_pagination.scss +1 -1
  34. data/assets/stylesheets/bootstrap/_popover.scss +17 -14
  35. data/assets/stylesheets/bootstrap/_reboot.scss +19 -3
  36. data/assets/stylesheets/bootstrap/_spinners.scss +1 -1
  37. data/assets/stylesheets/bootstrap/_tables.scss +0 -1
  38. data/assets/stylesheets/bootstrap/_toasts.scss +14 -12
  39. data/assets/stylesheets/bootstrap/_tooltip.scss +12 -12
  40. data/assets/stylesheets/bootstrap/_utilities.scss +39 -24
  41. data/assets/stylesheets/bootstrap/_variables.scss +22 -20
  42. data/assets/stylesheets/bootstrap/bootstrap-utilities.scss +1 -1
  43. data/assets/stylesheets/bootstrap/forms/_form-check.scss +5 -5
  44. data/assets/stylesheets/bootstrap/forms/_input-group.scss +3 -3
  45. data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +6 -6
  46. data/assets/stylesheets/bootstrap/mixins/_caret.scss +6 -6
  47. data/assets/stylesheets/bootstrap/mixins/_container.scss +2 -4
  48. data/assets/stylesheets/bootstrap/mixins/_forms.scss +1 -1
  49. data/assets/stylesheets/bootstrap/mixins/_pagination.scss +3 -3
  50. data/assets/stylesheets/bootstrap/mixins/_utilities.scss +19 -0
  51. data/lib/bootstrap/version.rb +2 -2
  52. data/tasks/updater/js.rb +6 -4
  53. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f3fea0a726387fe3d7a6db94f1e735521ddea80c4a2ed5cf10dbd82457760b2
4
- data.tar.gz: '0057235198c95f45c36e023fab29e7018e39e659fa838081463d08a27dc6aba6'
3
+ metadata.gz: c1cc2c87d68521826297c511800887b04e434a34f4ae58b49672245f3fb9b926
4
+ data.tar.gz: 9bc5f08b431f7c6c97fbd53e3be31b042521e35aa353a469131ef52e37e183c1
5
5
  SHA512:
6
- metadata.gz: 81d93c14d625eaf504b3dcccd5e20e9ce6915facfabe30d8d99d6728006164df9b930652057e8f2aabaf3ad4d84420b5f4f2bb5daa09048e9e992c71edb6685f
7
- data.tar.gz: 6a11dcab3fbc251a13ed8a3214de29d9612242007a441bcc4fadb153c15f6174eafda2c8dbf92a3661ba827f9f76f0415010b9e4cd7e3a8e8d6556dda37eb38b
6
+ metadata.gz: edffa3b47ab10af271bb8207833d22c9d001a4d3e1c0d5cd981fc7d902651a376cd5a9791205418d861ae511c0caafea0005a91750fb4363088d4d80c9b16f50
7
+ data.tar.gz: 76afc2e00e3ac067534affdfb40d4c2865cc8daad8594070c0b2a18690435398b7be287ffe5fad77017c34606c4593075e7f6572fd9469231e466461f3102aef
data/README.md CHANGED
@@ -20,7 +20,7 @@ Please see the appropriate guide for your environment of choice:
20
20
  Add `bootstrap` to your Gemfile:
21
21
 
22
22
  ```ruby
23
- gem 'bootstrap', '~> 5.0.0.alpha3'
23
+ gem 'bootstrap', '~> 5.0.0.beta1'
24
24
  ```
25
25
 
26
26
  Ensure that `sprockets-rails` is at least v2.3.2.
@@ -1,15 +1,15 @@
1
1
  //= require ./bootstrap/dom/data
2
2
  //= require ./bootstrap/dom/event-handler
3
+ //= require ./bootstrap/alert
4
+ //= require ./bootstrap/button
3
5
  //= require ./bootstrap/dom/manipulator
4
- //= require ./bootstrap/toast
5
6
  //= require ./bootstrap/dom/selector-engine
6
- //= require ./bootstrap/dropdown
7
- //= require ./bootstrap/alert
8
- //= require ./bootstrap/tooltip
7
+ //= require ./bootstrap/carousel
9
8
  //= require ./bootstrap/collapse
9
+ //= require ./bootstrap/dropdown
10
10
  //= require ./bootstrap/modal
11
- //= require ./bootstrap/tab
12
- //= require ./bootstrap/scrollspy
13
- //= require ./bootstrap/button
14
- //= require ./bootstrap/carousel
11
+ //= require ./bootstrap/tooltip
15
12
  //= require ./bootstrap/popover
13
+ //= require ./bootstrap/scrollspy
14
+ //= require ./bootstrap/tab
15
+ //= require ./bootstrap/toast
@@ -1,17 +1,35 @@
1
1
  /*!
2
- * Bootstrap v5.0.0-alpha3 (https://getbootstrap.com/)
2
+ * Bootstrap v5.0.0-beta1 (https://getbootstrap.com/)
3
3
  * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
4
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
5
  */
6
6
  (function (global, factory) {
7
- typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('popper.js')) :
8
- typeof define === 'function' && define.amd ? define(['popper.js'], factory) :
7
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@popperjs/core')) :
8
+ typeof define === 'function' && define.amd ? define(['@popperjs/core'], factory) :
9
9
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.bootstrap = factory(global.Popper));
10
10
  }(this, (function (Popper) { 'use strict';
11
11
 
12
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
12
+ function _interopNamespace(e) {
13
+ if (e && e.__esModule) return e;
14
+ var n = Object.create(null);
15
+ if (e) {
16
+ Object.keys(e).forEach(function (k) {
17
+ if (k !== 'default') {
18
+ var d = Object.getOwnPropertyDescriptor(e, k);
19
+ Object.defineProperty(n, k, d.get ? d : {
20
+ enumerable: true,
21
+ get: function () {
22
+ return e[k];
23
+ }
24
+ });
25
+ }
26
+ });
27
+ }
28
+ n['default'] = e;
29
+ return Object.freeze(n);
30
+ }
13
31
 
14
- var Popper__default = /*#__PURE__*/_interopDefaultLegacy(Popper);
32
+ var Popper__namespace = /*#__PURE__*/_interopNamespace(Popper);
15
33
 
16
34
  function _defineProperties(target, props) {
17
35
  for (var i = 0; i < props.length; i++) {
@@ -55,7 +73,7 @@
55
73
 
56
74
  /**
57
75
  * --------------------------------------------------------------------------
58
- * Bootstrap (v5.0.0-alpha3): util/index.js
76
+ * Bootstrap (v5.0.0-beta1): util/index.js
59
77
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
60
78
  * --------------------------------------------------------------------------
61
79
  */
@@ -86,7 +104,7 @@
86
104
  };
87
105
 
88
106
  var getSelector = function getSelector(element) {
89
- var selector = element.getAttribute('data-target');
107
+ var selector = element.getAttribute('data-bs-target');
90
108
 
91
109
  if (!selector || selector === '#') {
92
110
  var hrefAttr = element.getAttribute('href');
@@ -121,8 +139,8 @@
121
139
  transitionDuration = _window$getComputedSt.transitionDuration,
122
140
  transitionDelay = _window$getComputedSt.transitionDelay;
123
141
 
124
- var floatTransitionDuration = parseFloat(transitionDuration);
125
- var floatTransitionDelay = parseFloat(transitionDelay); // Return 0 if element or transition duration is not found
142
+ var floatTransitionDuration = Number.parseFloat(transitionDuration);
143
+ var floatTransitionDelay = Number.parseFloat(transitionDelay); // Return 0 if element or transition duration is not found
126
144
 
127
145
  if (!floatTransitionDuration && !floatTransitionDelay) {
128
146
  return 0;
@@ -131,7 +149,7 @@
131
149
 
132
150
  transitionDuration = transitionDuration.split(',')[0];
133
151
  transitionDelay = transitionDelay.split(',')[0];
134
- return (parseFloat(transitionDuration) + parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER;
152
+ return (Number.parseFloat(transitionDuration) + Number.parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER;
135
153
  };
136
154
 
137
155
  var triggerTransitionEnd = function triggerTransitionEnd(element) {
@@ -221,7 +239,7 @@
221
239
  var _window = window,
222
240
  jQuery = _window.jQuery;
223
241
 
224
- if (jQuery && !document.body.hasAttribute('data-no-jquery')) {
242
+ if (jQuery && !document.body.hasAttribute('data-bs-no-jquery')) {
225
243
  return jQuery;
226
244
  }
227
245
 
@@ -236,9 +254,11 @@
236
254
  }
237
255
  };
238
256
 
257
+ var isRTL = document.documentElement.dir === 'rtl';
258
+
239
259
  /**
240
260
  * --------------------------------------------------------------------------
241
- * Bootstrap (v5.0.0-alpha3): dom/data.js
261
+ * Bootstrap (v5.0.0-beta1): dom/data.js
242
262
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
243
263
  * --------------------------------------------------------------------------
244
264
  */
@@ -305,7 +325,7 @@
305
325
 
306
326
  /**
307
327
  * --------------------------------------------------------------------------
308
- * Bootstrap (v5.0.0-alpha3): dom/event-handler.js
328
+ * Bootstrap (v5.0.0-beta1): dom/event-handler.js
309
329
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
310
330
  * --------------------------------------------------------------------------
311
331
  */
@@ -325,7 +345,7 @@
325
345
  mouseenter: 'mouseover',
326
346
  mouseleave: 'mouseout'
327
347
  };
328
- var 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'];
348
+ var nativeEvents = new Set(['click', 'dblclick', 'mouseup', 'mousedown', 'contextmenu', 'mousewheel', 'DOMMouseScroll', 'mouseover', 'mouseout', 'mousemove', 'selectstart', 'selectend', 'keydown', 'keypress', 'keyup', 'orientationchange', 'touchstart', 'touchmove', 'touchend', 'touchcancel', 'pointerdown', 'pointermove', 'pointerup', 'pointerleave', 'pointercancel', 'gesturestart', 'gesturechange', 'gestureend', 'focus', 'blur', 'change', 'reset', 'select', 'submit', 'focusin', 'focusout', 'load', 'unload', 'beforeunload', 'resize', 'move', 'DOMContentLoaded', 'readystatechange', 'error', 'abort', 'scroll']);
329
349
  /**
330
350
  * ------------------------------------------------------------------------
331
351
  * Private methods
@@ -407,7 +427,7 @@
407
427
  typeEvent = custom;
408
428
  }
409
429
 
410
- var isNative = nativeEvents.indexOf(typeEvent) > -1;
430
+ var isNative = nativeEvents.has(typeEvent);
411
431
 
412
432
  if (!isNative) {
413
433
  typeEvent = originalTypeEvent;
@@ -464,7 +484,7 @@
464
484
  function removeNamespacedHandlers(element, events, typeEvent, namespace) {
465
485
  var storeElementEvent = events[typeEvent] || {};
466
486
  Object.keys(storeElementEvent).forEach(function (handlerKey) {
467
- if (handlerKey.indexOf(namespace) > -1) {
487
+ if (handlerKey.includes(namespace)) {
468
488
  var event = storeElementEvent[handlerKey];
469
489
  removeHandler(element, events, typeEvent, event.originalHandler, event.delegationSelector);
470
490
  }
@@ -490,7 +510,7 @@
490
510
 
491
511
  var inNamespace = typeEvent !== originalTypeEvent;
492
512
  var events = getEvent(element);
493
- var isNamespace = originalTypeEvent.charAt(0) === '.';
513
+ var isNamespace = originalTypeEvent.startsWith('.');
494
514
 
495
515
  if (typeof originalHandler !== 'undefined') {
496
516
  // Simplest case: handler is passed, remove that listener ONLY.
@@ -512,7 +532,7 @@
512
532
  Object.keys(storeElementEvent).forEach(function (keyHandlers) {
513
533
  var handlerKey = keyHandlers.replace(stripUidRegex, '');
514
534
 
515
- if (!inNamespace || originalTypeEvent.indexOf(handlerKey) > -1) {
535
+ if (!inNamespace || originalTypeEvent.includes(handlerKey)) {
516
536
  var event = storeElementEvent[keyHandlers];
517
537
  removeHandler(element, events, typeEvent, event.originalHandler, event.delegationSelector);
518
538
  }
@@ -526,7 +546,7 @@
526
546
  var $ = getjQuery();
527
547
  var typeEvent = event.replace(stripNameRegex, '');
528
548
  var inNamespace = event !== typeEvent;
529
- var isNative = nativeEvents.indexOf(typeEvent) > -1;
549
+ var isNative = nativeEvents.has(typeEvent);
530
550
  var jQueryEvent;
531
551
  var bubbles = true;
532
552
  var nativeDispatch = true;
@@ -578,6 +598,47 @@
578
598
  }
579
599
  };
580
600
 
601
+ /**
602
+ * ------------------------------------------------------------------------
603
+ * Constants
604
+ * ------------------------------------------------------------------------
605
+ */
606
+
607
+ var VERSION = '5.0.0-beta1';
608
+
609
+ var BaseComponent = /*#__PURE__*/function () {
610
+ function BaseComponent(element) {
611
+ if (!element) {
612
+ return;
613
+ }
614
+
615
+ this._element = element;
616
+ Data.setData(element, this.constructor.DATA_KEY, this);
617
+ }
618
+
619
+ var _proto = BaseComponent.prototype;
620
+
621
+ _proto.dispose = function dispose() {
622
+ Data.removeData(this._element, this.constructor.DATA_KEY);
623
+ this._element = null;
624
+ }
625
+ /** Static */
626
+ ;
627
+
628
+ BaseComponent.getInstance = function getInstance(element) {
629
+ return Data.getData(element, this.DATA_KEY);
630
+ };
631
+
632
+ _createClass(BaseComponent, null, [{
633
+ key: "VERSION",
634
+ get: function get() {
635
+ return VERSION;
636
+ }
637
+ }]);
638
+
639
+ return BaseComponent;
640
+ }();
641
+
581
642
  /**
582
643
  * ------------------------------------------------------------------------
583
644
  * Constants
@@ -585,11 +646,10 @@
585
646
  */
586
647
 
587
648
  var NAME = 'alert';
588
- var VERSION = '5.0.0-alpha3';
589
649
  var DATA_KEY = 'bs.alert';
590
650
  var EVENT_KEY = "." + DATA_KEY;
591
651
  var DATA_API_KEY = '.data-api';
592
- var SELECTOR_DISMISS = '[data-dismiss="alert"]';
652
+ var SELECTOR_DISMISS = '[data-bs-dismiss="alert"]';
593
653
  var EVENT_CLOSE = "close" + EVENT_KEY;
594
654
  var EVENT_CLOSED = "closed" + EVENT_KEY;
595
655
  var EVENT_CLICK_DATA_API = "click" + EVENT_KEY + DATA_API_KEY;
@@ -602,15 +662,12 @@
602
662
  * ------------------------------------------------------------------------
603
663
  */
604
664
 
605
- var Alert = /*#__PURE__*/function () {
606
- function Alert(element) {
607
- this._element = element;
608
-
609
- if (this._element) {
610
- Data.setData(element, DATA_KEY, this);
611
- }
612
- } // Getters
665
+ var Alert = /*#__PURE__*/function (_BaseComponent) {
666
+ _inheritsLoose(Alert, _BaseComponent);
613
667
 
668
+ function Alert() {
669
+ return _BaseComponent.apply(this, arguments) || this;
670
+ }
614
671
 
615
672
  var _proto = Alert.prototype;
616
673
 
@@ -625,11 +682,6 @@
625
682
  }
626
683
 
627
684
  this._removeElement(rootElement);
628
- };
629
-
630
- _proto.dispose = function dispose() {
631
- Data.removeData(this._element, DATA_KEY);
632
- this._element = null;
633
685
  } // Private
634
686
  ;
635
687
 
@@ -692,19 +744,16 @@
692
744
  };
693
745
  };
694
746
 
695
- Alert.getInstance = function getInstance(element) {
696
- return Data.getData(element, DATA_KEY);
697
- };
698
-
699
747
  _createClass(Alert, null, [{
700
- key: "VERSION",
748
+ key: "DATA_KEY",
749
+ // Getters
701
750
  get: function get() {
702
- return VERSION;
751
+ return DATA_KEY;
703
752
  }
704
753
  }]);
705
754
 
706
755
  return Alert;
707
- }();
756
+ }(BaseComponent);
708
757
  /**
709
758
  * ------------------------------------------------------------------------
710
759
  * Data Api implementation
@@ -743,12 +792,11 @@
743
792
  */
744
793
 
745
794
  var NAME$1 = 'button';
746
- var VERSION$1 = '5.0.0-alpha3';
747
795
  var DATA_KEY$1 = 'bs.button';
748
796
  var EVENT_KEY$1 = "." + DATA_KEY$1;
749
797
  var DATA_API_KEY$1 = '.data-api';
750
798
  var CLASS_NAME_ACTIVE = 'active';
751
- var SELECTOR_DATA_TOGGLE = '[data-toggle="button"]';
799
+ var SELECTOR_DATA_TOGGLE = '[data-bs-toggle="button"]';
752
800
  var EVENT_CLICK_DATA_API$1 = "click" + EVENT_KEY$1 + DATA_API_KEY$1;
753
801
  /**
754
802
  * ------------------------------------------------------------------------
@@ -756,12 +804,12 @@
756
804
  * ------------------------------------------------------------------------
757
805
  */
758
806
 
759
- var Button = /*#__PURE__*/function () {
760
- function Button(element) {
761
- this._element = element;
762
- Data.setData(element, DATA_KEY$1, this);
763
- } // Getters
807
+ var Button = /*#__PURE__*/function (_BaseComponent) {
808
+ _inheritsLoose(Button, _BaseComponent);
764
809
 
810
+ function Button() {
811
+ return _BaseComponent.apply(this, arguments) || this;
812
+ }
765
813
 
766
814
  var _proto = Button.prototype;
767
815
 
@@ -769,11 +817,6 @@
769
817
  _proto.toggle = function toggle() {
770
818
  // Toggle class and sync the `aria-pressed` attribute with the return value of the `.toggle()` method
771
819
  this._element.setAttribute('aria-pressed', this._element.classList.toggle(CLASS_NAME_ACTIVE));
772
- };
773
-
774
- _proto.dispose = function dispose() {
775
- Data.removeData(this._element, DATA_KEY$1);
776
- this._element = null;
777
820
  } // Static
778
821
  ;
779
822
 
@@ -791,19 +834,16 @@
791
834
  });
792
835
  };
793
836
 
794
- Button.getInstance = function getInstance(element) {
795
- return Data.getData(element, DATA_KEY$1);
796
- };
797
-
798
837
  _createClass(Button, null, [{
799
- key: "VERSION",
838
+ key: "DATA_KEY",
839
+ // Getters
800
840
  get: function get() {
801
- return VERSION$1;
841
+ return DATA_KEY$1;
802
842
  }
803
843
  }]);
804
844
 
805
845
  return Button;
806
- }();
846
+ }(BaseComponent);
807
847
  /**
808
848
  * ------------------------------------------------------------------------
809
849
  * Data Api implementation
@@ -847,7 +887,7 @@
847
887
 
848
888
  /**
849
889
  * --------------------------------------------------------------------------
850
- * Bootstrap (v5.0.0-alpha3): dom/manipulator.js
890
+ * Bootstrap (v5.0.0-beta1): dom/manipulator.js
851
891
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
852
892
  * --------------------------------------------------------------------------
853
893
  */
@@ -879,25 +919,28 @@
879
919
 
880
920
  var Manipulator = {
881
921
  setDataAttribute: function setDataAttribute(element, key, value) {
882
- element.setAttribute("data-" + normalizeDataKey(key), value);
922
+ element.setAttribute("data-bs-" + normalizeDataKey(key), value);
883
923
  },
884
924
  removeDataAttribute: function removeDataAttribute(element, key) {
885
- element.removeAttribute("data-" + normalizeDataKey(key));
925
+ element.removeAttribute("data-bs-" + normalizeDataKey(key));
886
926
  },
887
927
  getDataAttributes: function getDataAttributes(element) {
888
928
  if (!element) {
889
929
  return {};
890
930
  }
891
931
 
892
- var attributes = _extends({}, element.dataset);
893
-
894
- Object.keys(attributes).forEach(function (key) {
895
- attributes[key] = normalizeData(attributes[key]);
932
+ var attributes = {};
933
+ Object.keys(element.dataset).filter(function (key) {
934
+ return key.startsWith('bs');
935
+ }).forEach(function (key) {
936
+ var pureKey = key.replace(/^bs/, '');
937
+ pureKey = pureKey.charAt(0).toLowerCase() + pureKey.slice(1, pureKey.length);
938
+ attributes[pureKey] = normalizeData(element.dataset[key]);
896
939
  });
897
940
  return attributes;
898
941
  },
899
942
  getDataAttribute: function getDataAttribute(element, key) {
900
- return normalizeData(element.getAttribute("data-" + normalizeDataKey(key)));
943
+ return normalizeData(element.getAttribute("data-bs-" + normalizeDataKey(key)));
901
944
  },
902
945
  offset: function offset(element) {
903
946
  var rect = element.getBoundingClientRect();
@@ -916,7 +959,7 @@
916
959
 
917
960
  /**
918
961
  * --------------------------------------------------------------------------
919
- * Bootstrap (v5.0.0-alpha3): dom/selector-engine.js
962
+ * Bootstrap (v5.0.0-beta1): dom/selector-engine.js
920
963
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
921
964
  * --------------------------------------------------------------------------
922
965
  */
@@ -1005,7 +1048,6 @@
1005
1048
  */
1006
1049
 
1007
1050
  var NAME$2 = 'carousel';
1008
- var VERSION$2 = '5.0.0-alpha3';
1009
1051
  var DATA_KEY$2 = 'bs.carousel';
1010
1052
  var EVENT_KEY$2 = "." + DATA_KEY$2;
1011
1053
  var DATA_API_KEY$2 = '.data-api';
@@ -1050,8 +1092,8 @@
1050
1092
  var CLASS_NAME_CAROUSEL = 'carousel';
1051
1093
  var CLASS_NAME_ACTIVE$1 = 'active';
1052
1094
  var CLASS_NAME_SLIDE = 'slide';
1053
- var CLASS_NAME_RIGHT = 'carousel-item-right';
1054
- var CLASS_NAME_LEFT = 'carousel-item-left';
1095
+ var CLASS_NAME_END = 'carousel-item-end';
1096
+ var CLASS_NAME_START = 'carousel-item-start';
1055
1097
  var CLASS_NAME_NEXT = 'carousel-item-next';
1056
1098
  var CLASS_NAME_PREV = 'carousel-item-prev';
1057
1099
  var CLASS_NAME_POINTER_EVENT = 'pointer-event';
@@ -1061,8 +1103,8 @@
1061
1103
  var SELECTOR_ITEM_IMG = '.carousel-item img';
1062
1104
  var SELECTOR_NEXT_PREV = '.carousel-item-next, .carousel-item-prev';
1063
1105
  var SELECTOR_INDICATORS = '.carousel-indicators';
1064
- var SELECTOR_DATA_SLIDE = '[data-slide], [data-slide-to]';
1065
- var SELECTOR_DATA_RIDE = '[data-ride="carousel"]';
1106
+ var SELECTOR_DATA_SLIDE = '[data-bs-slide], [data-bs-slide-to]';
1107
+ var SELECTOR_DATA_RIDE = '[data-bs-ride="carousel"]';
1066
1108
  var PointerType = {
1067
1109
  TOUCH: 'touch',
1068
1110
  PEN: 'pen'
@@ -1073,25 +1115,29 @@
1073
1115
  * ------------------------------------------------------------------------
1074
1116
  */
1075
1117
 
1076
- var Carousel = /*#__PURE__*/function () {
1077
- function Carousel(element, config) {
1078
- this._items = null;
1079
- this._interval = null;
1080
- this._activeElement = null;
1081
- this._isPaused = false;
1082
- this._isSliding = false;
1083
- this.touchTimeout = null;
1084
- this.touchStartX = 0;
1085
- this.touchDeltaX = 0;
1086
- this._config = this._getConfig(config);
1087
- this._element = element;
1088
- this._indicatorsElement = SelectorEngine.findOne(SELECTOR_INDICATORS, this._element);
1089
- this._touchSupported = 'ontouchstart' in document.documentElement || navigator.maxTouchPoints > 0;
1090
- this._pointerEvent = Boolean(window.PointerEvent);
1091
-
1092
- this._addEventListeners();
1118
+ var Carousel = /*#__PURE__*/function (_BaseComponent) {
1119
+ _inheritsLoose(Carousel, _BaseComponent);
1093
1120
 
1094
- Data.setData(element, DATA_KEY$2, this);
1121
+ function Carousel(element, config) {
1122
+ var _this;
1123
+
1124
+ _this = _BaseComponent.call(this, element) || this;
1125
+ _this._items = null;
1126
+ _this._interval = null;
1127
+ _this._activeElement = null;
1128
+ _this._isPaused = false;
1129
+ _this._isSliding = false;
1130
+ _this.touchTimeout = null;
1131
+ _this.touchStartX = 0;
1132
+ _this.touchDeltaX = 0;
1133
+ _this._config = _this._getConfig(config);
1134
+ _this._indicatorsElement = SelectorEngine.findOne(SELECTOR_INDICATORS, _this._element);
1135
+ _this._touchSupported = 'ontouchstart' in document.documentElement || navigator.maxTouchPoints > 0;
1136
+ _this._pointerEvent = Boolean(window.PointerEvent);
1137
+
1138
+ _this._addEventListeners();
1139
+
1140
+ return _this;
1095
1141
  } // Getters
1096
1142
 
1097
1143
 
@@ -1150,7 +1196,7 @@
1150
1196
  };
1151
1197
 
1152
1198
  _proto.to = function to(index) {
1153
- var _this = this;
1199
+ var _this2 = this;
1154
1200
 
1155
1201
  this._activeElement = SelectorEngine.findOne(SELECTOR_ACTIVE_ITEM, this._element);
1156
1202
 
@@ -1162,7 +1208,7 @@
1162
1208
 
1163
1209
  if (this._isSliding) {
1164
1210
  EventHandler.one(this._element, EVENT_SLID, function () {
1165
- return _this.to(index);
1211
+ return _this2.to(index);
1166
1212
  });
1167
1213
  return;
1168
1214
  }
@@ -1179,11 +1225,11 @@
1179
1225
  };
1180
1226
 
1181
1227
  _proto.dispose = function dispose() {
1228
+ _BaseComponent.prototype.dispose.call(this);
1229
+
1182
1230
  EventHandler.off(this._element, EVENT_KEY$2);
1183
- Data.removeData(this._element, DATA_KEY$2);
1184
1231
  this._items = null;
1185
1232
  this._config = null;
1186
- this._element = null;
1187
1233
  this._interval = null;
1188
1234
  this._isPaused = null;
1189
1235
  this._isSliding = null;
@@ -1219,20 +1265,20 @@
1219
1265
  };
1220
1266
 
1221
1267
  _proto._addEventListeners = function _addEventListeners() {
1222
- var _this2 = this;
1268
+ var _this3 = this;
1223
1269
 
1224
1270
  if (this._config.keyboard) {
1225
1271
  EventHandler.on(this._element, EVENT_KEYDOWN, function (event) {
1226
- return _this2._keydown(event);
1272
+ return _this3._keydown(event);
1227
1273
  });
1228
1274
  }
1229
1275
 
1230
1276
  if (this._config.pause === 'hover') {
1231
1277
  EventHandler.on(this._element, EVENT_MOUSEENTER, function (event) {
1232
- return _this2.pause(event);
1278
+ return _this3.pause(event);
1233
1279
  });
1234
1280
  EventHandler.on(this._element, EVENT_MOUSELEAVE, function (event) {
1235
- return _this2.cycle(event);
1281
+ return _this3.cycle(event);
1236
1282
  });
1237
1283
  }
1238
1284
 
@@ -1242,33 +1288,33 @@
1242
1288
  };
1243
1289
 
1244
1290
  _proto._addTouchEventListeners = function _addTouchEventListeners() {
1245
- var _this3 = this;
1291
+ var _this4 = this;
1246
1292
 
1247
1293
  var start = function start(event) {
1248
- if (_this3._pointerEvent && PointerType[event.pointerType.toUpperCase()]) {
1249
- _this3.touchStartX = event.clientX;
1250
- } else if (!_this3._pointerEvent) {
1251
- _this3.touchStartX = event.touches[0].clientX;
1294
+ if (_this4._pointerEvent && PointerType[event.pointerType.toUpperCase()]) {
1295
+ _this4.touchStartX = event.clientX;
1296
+ } else if (!_this4._pointerEvent) {
1297
+ _this4.touchStartX = event.touches[0].clientX;
1252
1298
  }
1253
1299
  };
1254
1300
 
1255
1301
  var move = function move(event) {
1256
1302
  // ensure swiping with one touch and not pinching
1257
1303
  if (event.touches && event.touches.length > 1) {
1258
- _this3.touchDeltaX = 0;
1304
+ _this4.touchDeltaX = 0;
1259
1305
  } else {
1260
- _this3.touchDeltaX = event.touches[0].clientX - _this3.touchStartX;
1306
+ _this4.touchDeltaX = event.touches[0].clientX - _this4.touchStartX;
1261
1307
  }
1262
1308
  };
1263
1309
 
1264
1310
  var end = function end(event) {
1265
- if (_this3._pointerEvent && PointerType[event.pointerType.toUpperCase()]) {
1266
- _this3.touchDeltaX = event.clientX - _this3.touchStartX;
1311
+ if (_this4._pointerEvent && PointerType[event.pointerType.toUpperCase()]) {
1312
+ _this4.touchDeltaX = event.clientX - _this4.touchStartX;
1267
1313
  }
1268
1314
 
1269
- _this3._handleSwipe();
1315
+ _this4._handleSwipe();
1270
1316
 
1271
- if (_this3._config.pause === 'hover') {
1317
+ if (_this4._config.pause === 'hover') {
1272
1318
  // If it's a touch-enabled device, mouseenter/leave are fired as
1273
1319
  // part of the mouse compatibility events on first tap - the carousel
1274
1320
  // would stop cycling until user tapped out of it;
@@ -1276,15 +1322,15 @@
1276
1322
  // (as if it's the second time we tap on it, mouseenter compat event
1277
1323
  // is NOT fired) and after a timeout (to allow for mouse compatibility
1278
1324
  // events to fire) we explicitly restart cycling
1279
- _this3.pause();
1325
+ _this4.pause();
1280
1326
 
1281
- if (_this3.touchTimeout) {
1282
- clearTimeout(_this3.touchTimeout);
1327
+ if (_this4.touchTimeout) {
1328
+ clearTimeout(_this4.touchTimeout);
1283
1329
  }
1284
1330
 
1285
- _this3.touchTimeout = setTimeout(function (event) {
1286
- return _this3.cycle(event);
1287
- }, TOUCHEVENT_COMPAT_WAIT + _this3._config.interval);
1331
+ _this4.touchTimeout = setTimeout(function (event) {
1332
+ return _this4.cycle(event);
1333
+ }, TOUCHEVENT_COMPAT_WAIT + _this4._config.interval);
1288
1334
  }
1289
1335
  };
1290
1336
 
@@ -1393,7 +1439,7 @@
1393
1439
  return;
1394
1440
  }
1395
1441
 
1396
- var elementInterval = parseInt(element.getAttribute('data-interval'), 10);
1442
+ var elementInterval = Number.parseInt(element.getAttribute('data-bs-interval'), 10);
1397
1443
 
1398
1444
  if (elementInterval) {
1399
1445
  this._config.defaultInterval = this._config.defaultInterval || this._config.interval;
@@ -1404,7 +1450,7 @@
1404
1450
  };
1405
1451
 
1406
1452
  _proto._slide = function _slide(direction, element) {
1407
- var _this4 = this;
1453
+ var _this5 = this;
1408
1454
 
1409
1455
  var activeElement = SelectorEngine.findOne(SELECTOR_ACTIVE_ITEM, this._element);
1410
1456
 
@@ -1420,11 +1466,11 @@
1420
1466
  var eventDirectionName;
1421
1467
 
1422
1468
  if (direction === DIRECTION_NEXT) {
1423
- directionalClassName = CLASS_NAME_LEFT;
1469
+ directionalClassName = CLASS_NAME_START;
1424
1470
  orderClassName = CLASS_NAME_NEXT;
1425
1471
  eventDirectionName = DIRECTION_LEFT;
1426
1472
  } else {
1427
- directionalClassName = CLASS_NAME_RIGHT;
1473
+ directionalClassName = CLASS_NAME_END;
1428
1474
  orderClassName = CLASS_NAME_PREV;
1429
1475
  eventDirectionName = DIRECTION_RIGHT;
1430
1476
  }
@@ -1465,9 +1511,9 @@
1465
1511
  nextElement.classList.remove(directionalClassName, orderClassName);
1466
1512
  nextElement.classList.add(CLASS_NAME_ACTIVE$1);
1467
1513
  activeElement.classList.remove(CLASS_NAME_ACTIVE$1, orderClassName, directionalClassName);
1468
- _this4._isSliding = false;
1514
+ _this5._isSliding = false;
1469
1515
  setTimeout(function () {
1470
- EventHandler.trigger(_this4._element, EVENT_SLID, {
1516
+ EventHandler.trigger(_this5._element, EVENT_SLID, {
1471
1517
  relatedTarget: nextElement,
1472
1518
  direction: eventDirectionName,
1473
1519
  from: activeElementIndex,
@@ -1538,7 +1584,7 @@
1538
1584
 
1539
1585
  var config = _extends({}, Manipulator.getDataAttributes(target), Manipulator.getDataAttributes(this));
1540
1586
 
1541
- var slideIndex = this.getAttribute('data-slide-to');
1587
+ var slideIndex = this.getAttribute('data-bs-slide-to');
1542
1588
 
1543
1589
  if (slideIndex) {
1544
1590
  config.interval = false;
@@ -1553,24 +1599,20 @@
1553
1599
  event.preventDefault();
1554
1600
  };
1555
1601
 
1556
- Carousel.getInstance = function getInstance(element) {
1557
- return Data.getData(element, DATA_KEY$2);
1558
- };
1559
-
1560
1602
  _createClass(Carousel, null, [{
1561
- key: "VERSION",
1603
+ key: "Default",
1562
1604
  get: function get() {
1563
- return VERSION$2;
1605
+ return Default;
1564
1606
  }
1565
1607
  }, {
1566
- key: "Default",
1608
+ key: "DATA_KEY",
1567
1609
  get: function get() {
1568
- return Default;
1610
+ return DATA_KEY$2;
1569
1611
  }
1570
1612
  }]);
1571
1613
 
1572
1614
  return Carousel;
1573
- }();
1615
+ }(BaseComponent);
1574
1616
  /**
1575
1617
  * ------------------------------------------------------------------------
1576
1618
  * Data Api implementation
@@ -1616,7 +1658,6 @@
1616
1658
  */
1617
1659
 
1618
1660
  var NAME$3 = 'collapse';
1619
- var VERSION$3 = '5.0.0-alpha3';
1620
1661
  var DATA_KEY$3 = 'bs.collapse';
1621
1662
  var EVENT_KEY$3 = "." + DATA_KEY$3;
1622
1663
  var DATA_API_KEY$3 = '.data-api';
@@ -1640,19 +1681,23 @@
1640
1681
  var WIDTH = 'width';
1641
1682
  var HEIGHT = 'height';
1642
1683
  var SELECTOR_ACTIVES = '.show, .collapsing';
1643
- var SELECTOR_DATA_TOGGLE$1 = '[data-toggle="collapse"]';
1684
+ var SELECTOR_DATA_TOGGLE$1 = '[data-bs-toggle="collapse"]';
1644
1685
  /**
1645
1686
  * ------------------------------------------------------------------------
1646
1687
  * Class Definition
1647
1688
  * ------------------------------------------------------------------------
1648
1689
  */
1649
1690
 
1650
- var Collapse = /*#__PURE__*/function () {
1691
+ var Collapse = /*#__PURE__*/function (_BaseComponent) {
1692
+ _inheritsLoose(Collapse, _BaseComponent);
1693
+
1651
1694
  function Collapse(element, config) {
1652
- this._isTransitioning = false;
1653
- this._element = element;
1654
- this._config = this._getConfig(config);
1655
- this._triggerArray = SelectorEngine.find(SELECTOR_DATA_TOGGLE$1 + "[href=\"#" + element.id + "\"]," + (SELECTOR_DATA_TOGGLE$1 + "[data-target=\"#" + element.id + "\"]"));
1695
+ var _this;
1696
+
1697
+ _this = _BaseComponent.call(this, element) || this;
1698
+ _this._isTransitioning = false;
1699
+ _this._config = _this._getConfig(config);
1700
+ _this._triggerArray = SelectorEngine.find(SELECTOR_DATA_TOGGLE$1 + "[href=\"#" + element.id + "\"]," + (SELECTOR_DATA_TOGGLE$1 + "[data-bs-target=\"#" + element.id + "\"]"));
1656
1701
  var toggleList = SelectorEngine.find(SELECTOR_DATA_TOGGLE$1);
1657
1702
 
1658
1703
  for (var i = 0, len = toggleList.length; i < len; i++) {
@@ -1663,23 +1708,23 @@
1663
1708
  });
1664
1709
 
1665
1710
  if (selector !== null && filterElement.length) {
1666
- this._selector = selector;
1711
+ _this._selector = selector;
1667
1712
 
1668
- this._triggerArray.push(elem);
1713
+ _this._triggerArray.push(elem);
1669
1714
  }
1670
1715
  }
1671
1716
 
1672
- this._parent = this._config.parent ? this._getParent() : null;
1717
+ _this._parent = _this._config.parent ? _this._getParent() : null;
1673
1718
 
1674
- if (!this._config.parent) {
1675
- this._addAriaAndCollapsedClass(this._element, this._triggerArray);
1719
+ if (!_this._config.parent) {
1720
+ _this._addAriaAndCollapsedClass(_this._element, _this._triggerArray);
1676
1721
  }
1677
1722
 
1678
- if (this._config.toggle) {
1679
- this.toggle();
1723
+ if (_this._config.toggle) {
1724
+ _this.toggle();
1680
1725
  }
1681
1726
 
1682
- Data.setData(element, DATA_KEY$3, this);
1727
+ return _this;
1683
1728
  } // Getters
1684
1729
 
1685
1730
 
@@ -1695,7 +1740,7 @@
1695
1740
  };
1696
1741
 
1697
1742
  _proto.show = function show() {
1698
- var _this = this;
1743
+ var _this2 = this;
1699
1744
 
1700
1745
  if (this._isTransitioning || this._element.classList.contains(CLASS_NAME_SHOW)) {
1701
1746
  return;
@@ -1706,8 +1751,8 @@
1706
1751
 
1707
1752
  if (this._parent) {
1708
1753
  actives = SelectorEngine.find(SELECTOR_ACTIVES, this._parent).filter(function (elem) {
1709
- if (typeof _this._config.parent === 'string') {
1710
- return elem.getAttribute('data-parent') === _this._config.parent;
1754
+ if (typeof _this2._config.parent === 'string') {
1755
+ return elem.getAttribute('data-bs-parent') === _this2._config.parent;
1711
1756
  }
1712
1757
 
1713
1758
  return elem.classList.contains(CLASS_NAME_COLLAPSE);
@@ -1721,10 +1766,10 @@
1721
1766
  var container = SelectorEngine.findOne(this._selector);
1722
1767
 
1723
1768
  if (actives) {
1724
- var tempActiveData = actives.filter(function (elem) {
1769
+ var tempActiveData = actives.find(function (elem) {
1725
1770
  return container !== elem;
1726
1771
  });
1727
- activesData = tempActiveData[0] ? Data.getData(tempActiveData[0], DATA_KEY$3) : null;
1772
+ activesData = tempActiveData ? Data.getData(tempActiveData, DATA_KEY$3) : null;
1728
1773
 
1729
1774
  if (activesData && activesData._isTransitioning) {
1730
1775
  return;
@@ -1767,15 +1812,15 @@
1767
1812
  this.setTransitioning(true);
1768
1813
 
1769
1814
  var complete = function complete() {
1770
- _this._element.classList.remove(CLASS_NAME_COLLAPSING);
1815
+ _this2._element.classList.remove(CLASS_NAME_COLLAPSING);
1771
1816
 
1772
- _this._element.classList.add(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW);
1817
+ _this2._element.classList.add(CLASS_NAME_COLLAPSE, CLASS_NAME_SHOW);
1773
1818
 
1774
- _this._element.style[dimension] = '';
1819
+ _this2._element.style[dimension] = '';
1775
1820
 
1776
- _this.setTransitioning(false);
1821
+ _this2.setTransitioning(false);
1777
1822
 
1778
- EventHandler.trigger(_this._element, EVENT_SHOWN);
1823
+ EventHandler.trigger(_this2._element, EVENT_SHOWN);
1779
1824
  };
1780
1825
 
1781
1826
  var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
@@ -1787,7 +1832,7 @@
1787
1832
  };
1788
1833
 
1789
1834
  _proto.hide = function hide() {
1790
- var _this2 = this;
1835
+ var _this3 = this;
1791
1836
 
1792
1837
  if (this._isTransitioning || !this._element.classList.contains(CLASS_NAME_SHOW)) {
1793
1838
  return;
@@ -1825,13 +1870,13 @@
1825
1870
  this.setTransitioning(true);
1826
1871
 
1827
1872
  var complete = function complete() {
1828
- _this2.setTransitioning(false);
1873
+ _this3.setTransitioning(false);
1829
1874
 
1830
- _this2._element.classList.remove(CLASS_NAME_COLLAPSING);
1875
+ _this3._element.classList.remove(CLASS_NAME_COLLAPSING);
1831
1876
 
1832
- _this2._element.classList.add(CLASS_NAME_COLLAPSE);
1877
+ _this3._element.classList.add(CLASS_NAME_COLLAPSE);
1833
1878
 
1834
- EventHandler.trigger(_this2._element, EVENT_HIDDEN);
1879
+ EventHandler.trigger(_this3._element, EVENT_HIDDEN);
1835
1880
  };
1836
1881
 
1837
1882
  this._element.style[dimension] = '';
@@ -1845,10 +1890,10 @@
1845
1890
  };
1846
1891
 
1847
1892
  _proto.dispose = function dispose() {
1848
- Data.removeData(this._element, DATA_KEY$3);
1893
+ _BaseComponent.prototype.dispose.call(this);
1894
+
1849
1895
  this._config = null;
1850
1896
  this._parent = null;
1851
- this._element = null;
1852
1897
  this._triggerArray = null;
1853
1898
  this._isTransitioning = null;
1854
1899
  } // Private
@@ -1867,7 +1912,7 @@
1867
1912
  };
1868
1913
 
1869
1914
  _proto._getParent = function _getParent() {
1870
- var _this3 = this;
1915
+ var _this4 = this;
1871
1916
 
1872
1917
  var parent = this._config.parent;
1873
1918
 
@@ -1880,11 +1925,11 @@
1880
1925
  parent = SelectorEngine.findOne(parent);
1881
1926
  }
1882
1927
 
1883
- var selector = SELECTOR_DATA_TOGGLE$1 + "[data-parent=\"" + parent + "\"]";
1928
+ var selector = SELECTOR_DATA_TOGGLE$1 + "[data-bs-parent=\"" + parent + "\"]";
1884
1929
  SelectorEngine.find(selector, parent).forEach(function (element) {
1885
1930
  var selected = getElementFromSelector(element);
1886
1931
 
1887
- _this3._addAriaAndCollapsedClass(selected, [element]);
1932
+ _this4._addAriaAndCollapsedClass(selected, [element]);
1888
1933
  });
1889
1934
  return parent;
1890
1935
  };
@@ -1935,24 +1980,20 @@
1935
1980
  });
1936
1981
  };
1937
1982
 
1938
- Collapse.getInstance = function getInstance(element) {
1939
- return Data.getData(element, DATA_KEY$3);
1940
- };
1941
-
1942
1983
  _createClass(Collapse, null, [{
1943
- key: "VERSION",
1984
+ key: "Default",
1944
1985
  get: function get() {
1945
- return VERSION$3;
1986
+ return Default$1;
1946
1987
  }
1947
1988
  }, {
1948
- key: "Default",
1989
+ key: "DATA_KEY",
1949
1990
  get: function get() {
1950
- return Default$1;
1991
+ return DATA_KEY$3;
1951
1992
  }
1952
1993
  }]);
1953
1994
 
1954
1995
  return Collapse;
1955
- }();
1996
+ }(BaseComponent);
1956
1997
  /**
1957
1998
  * ------------------------------------------------------------------------
1958
1999
  * Data Api implementation
@@ -2018,7 +2059,6 @@
2018
2059
  */
2019
2060
 
2020
2061
  var NAME$4 = 'dropdown';
2021
- var VERSION$4 = '5.0.0-alpha3';
2022
2062
  var DATA_KEY$4 = 'bs.dropdown';
2023
2063
  var EVENT_KEY$4 = "." + DATA_KEY$4;
2024
2064
  var DATA_API_KEY$4 = '.data-api';
@@ -2041,26 +2081,24 @@
2041
2081
  var CLASS_NAME_DISABLED = 'disabled';
2042
2082
  var CLASS_NAME_SHOW$1 = 'show';
2043
2083
  var CLASS_NAME_DROPUP = 'dropup';
2044
- var CLASS_NAME_DROPRIGHT = 'dropright';
2045
- var CLASS_NAME_DROPLEFT = 'dropleft';
2046
- var CLASS_NAME_MENURIGHT = 'dropdown-menu-right';
2084
+ var CLASS_NAME_DROPEND = 'dropend';
2085
+ var CLASS_NAME_DROPSTART = 'dropstart';
2047
2086
  var CLASS_NAME_NAVBAR = 'navbar';
2048
- var CLASS_NAME_POSITION_STATIC = 'position-static';
2049
- var SELECTOR_DATA_TOGGLE$2 = '[data-toggle="dropdown"]';
2087
+ var SELECTOR_DATA_TOGGLE$2 = '[data-bs-toggle="dropdown"]';
2050
2088
  var SELECTOR_FORM_CHILD = '.dropdown form';
2051
2089
  var SELECTOR_MENU = '.dropdown-menu';
2052
2090
  var SELECTOR_NAVBAR_NAV = '.navbar-nav';
2053
2091
  var SELECTOR_VISIBLE_ITEMS = '.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)';
2054
- var PLACEMENT_TOP = 'top-start';
2055
- var PLACEMENT_TOPEND = 'top-end';
2056
- var PLACEMENT_BOTTOM = 'bottom-start';
2057
- var PLACEMENT_BOTTOMEND = 'bottom-end';
2058
- var PLACEMENT_RIGHT = 'right-start';
2059
- var PLACEMENT_LEFT = 'left-start';
2092
+ var PLACEMENT_TOP = isRTL ? 'top-end' : 'top-start';
2093
+ var PLACEMENT_TOPEND = isRTL ? 'top-start' : 'top-end';
2094
+ var PLACEMENT_BOTTOM = isRTL ? 'bottom-end' : 'bottom-start';
2095
+ var PLACEMENT_BOTTOMEND = isRTL ? 'bottom-start' : 'bottom-end';
2096
+ var PLACEMENT_RIGHT = isRTL ? 'left-start' : 'right-start';
2097
+ var PLACEMENT_LEFT = isRTL ? 'right-start' : 'left-start';
2060
2098
  var Default$2 = {
2061
2099
  offset: 0,
2062
2100
  flip: true,
2063
- boundary: 'scrollParent',
2101
+ boundary: 'clippingParents',
2064
2102
  reference: 'toggle',
2065
2103
  display: 'dynamic',
2066
2104
  popperConfig: null
@@ -2079,17 +2117,21 @@
2079
2117
  * ------------------------------------------------------------------------
2080
2118
  */
2081
2119
 
2082
- var Dropdown = /*#__PURE__*/function () {
2120
+ var Dropdown = /*#__PURE__*/function (_BaseComponent) {
2121
+ _inheritsLoose(Dropdown, _BaseComponent);
2122
+
2083
2123
  function Dropdown(element, config) {
2084
- this._element = element;
2085
- this._popper = null;
2086
- this._config = this._getConfig(config);
2087
- this._menu = this._getMenuElement();
2088
- this._inNavbar = this._detectNavbar();
2124
+ var _this;
2089
2125
 
2090
- this._addEventListeners();
2126
+ _this = _BaseComponent.call(this, element) || this;
2127
+ _this._popper = null;
2128
+ _this._config = _this._getConfig(config);
2129
+ _this._menu = _this._getMenuElement();
2130
+ _this._inNavbar = _this._detectNavbar();
2091
2131
 
2092
- Data.setData(element, DATA_KEY$4, this);
2132
+ _this._addEventListeners();
2133
+
2134
+ return _this;
2093
2135
  } // Getters
2094
2136
 
2095
2137
 
@@ -2125,12 +2167,12 @@
2125
2167
 
2126
2168
  if (showEvent.defaultPrevented) {
2127
2169
  return;
2128
- } // Disable totally Popper.js for Dropdown in Navbar
2170
+ } // Totally disable Popper for Dropdowns in Navbar
2129
2171
 
2130
2172
 
2131
2173
  if (!this._inNavbar) {
2132
- if (typeof Popper__default['default'] === 'undefined') {
2133
- throw new TypeError('Bootstrap\'s dropdowns require Popper.js (https://popper.js.org)');
2174
+ if (typeof Popper__namespace === 'undefined') {
2175
+ throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)');
2134
2176
  }
2135
2177
 
2136
2178
  var referenceElement = this._element;
@@ -2143,16 +2185,9 @@
2143
2185
  if (typeof this._config.reference.jquery !== 'undefined') {
2144
2186
  referenceElement = this._config.reference[0];
2145
2187
  }
2146
- } // If boundary is not `scrollParent`, then set position to `static`
2147
- // to allow the menu to "escape" the scroll parent's boundaries
2148
- // https://github.com/twbs/bootstrap/issues/24251
2149
-
2150
-
2151
- if (this._config.boundary !== 'scrollParent') {
2152
- parent.classList.add(CLASS_NAME_POSITION_STATIC);
2153
2188
  }
2154
2189
 
2155
- this._popper = new Popper__default['default'](referenceElement, this._menu, this._getPopperConfig());
2190
+ this._popper = Popper.createPopper(referenceElement, this._menu, this._getPopperConfig());
2156
2191
  } // If this is a touch-enabled device we add extra
2157
2192
  // empty mouseover listeners to the body's immediate children;
2158
2193
  // only needed because of broken event delegation on iOS
@@ -2205,9 +2240,9 @@
2205
2240
  };
2206
2241
 
2207
2242
  _proto.dispose = function dispose() {
2208
- Data.removeData(this._element, DATA_KEY$4);
2243
+ _BaseComponent.prototype.dispose.call(this);
2244
+
2209
2245
  EventHandler.off(this._element, EVENT_KEY$4);
2210
- this._element = null;
2211
2246
  this._menu = null;
2212
2247
 
2213
2248
  if (this._popper) {
@@ -2221,19 +2256,19 @@
2221
2256
  this._inNavbar = this._detectNavbar();
2222
2257
 
2223
2258
  if (this._popper) {
2224
- this._popper.scheduleUpdate();
2259
+ this._popper.update();
2225
2260
  }
2226
2261
  } // Private
2227
2262
  ;
2228
2263
 
2229
2264
  _proto._addEventListeners = function _addEventListeners() {
2230
- var _this = this;
2265
+ var _this2 = this;
2231
2266
 
2232
2267
  EventHandler.on(this._element, EVENT_CLICK, function (event) {
2233
2268
  event.preventDefault();
2234
2269
  event.stopPropagation();
2235
2270
 
2236
- _this.toggle();
2271
+ _this2.toggle();
2237
2272
  });
2238
2273
  };
2239
2274
 
@@ -2249,60 +2284,46 @@
2249
2284
 
2250
2285
  _proto._getPlacement = function _getPlacement() {
2251
2286
  var parentDropdown = this._element.parentNode;
2252
- var placement = PLACEMENT_BOTTOM; // Handle dropup
2253
2287
 
2254
- if (parentDropdown.classList.contains(CLASS_NAME_DROPUP)) {
2255
- placement = this._menu.classList.contains(CLASS_NAME_MENURIGHT) ? PLACEMENT_TOPEND : PLACEMENT_TOP;
2256
- } else if (parentDropdown.classList.contains(CLASS_NAME_DROPRIGHT)) {
2257
- placement = PLACEMENT_RIGHT;
2258
- } else if (parentDropdown.classList.contains(CLASS_NAME_DROPLEFT)) {
2259
- placement = PLACEMENT_LEFT;
2260
- } else if (this._menu.classList.contains(CLASS_NAME_MENURIGHT)) {
2261
- placement = PLACEMENT_BOTTOMEND;
2288
+ if (parentDropdown.classList.contains(CLASS_NAME_DROPEND)) {
2289
+ return PLACEMENT_RIGHT;
2262
2290
  }
2263
2291
 
2264
- return placement;
2265
- };
2266
-
2267
- _proto._detectNavbar = function _detectNavbar() {
2268
- return Boolean(this._element.closest("." + CLASS_NAME_NAVBAR));
2269
- };
2292
+ if (parentDropdown.classList.contains(CLASS_NAME_DROPSTART)) {
2293
+ return PLACEMENT_LEFT;
2294
+ } // We need to trim the value because custom properties can also include spaces
2270
2295
 
2271
- _proto._getOffset = function _getOffset() {
2272
- var _this2 = this;
2273
2296
 
2274
- var offset = {};
2297
+ var isEnd = getComputedStyle(this._menu).getPropertyValue('--bs-position').trim() === 'end';
2275
2298
 
2276
- if (typeof this._config.offset === 'function') {
2277
- offset.fn = function (data) {
2278
- data.offsets = _extends({}, data.offsets, _this2._config.offset(data.offsets, _this2._element) || {});
2279
- return data;
2280
- };
2281
- } else {
2282
- offset.offset = this._config.offset;
2299
+ if (parentDropdown.classList.contains(CLASS_NAME_DROPUP)) {
2300
+ return isEnd ? PLACEMENT_TOPEND : PLACEMENT_TOP;
2283
2301
  }
2284
2302
 
2285
- return offset;
2303
+ return isEnd ? PLACEMENT_BOTTOMEND : PLACEMENT_BOTTOM;
2304
+ };
2305
+
2306
+ _proto._detectNavbar = function _detectNavbar() {
2307
+ return this._element.closest("." + CLASS_NAME_NAVBAR) !== null;
2286
2308
  };
2287
2309
 
2288
2310
  _proto._getPopperConfig = function _getPopperConfig() {
2289
2311
  var popperConfig = {
2290
2312
  placement: this._getPlacement(),
2291
- modifiers: {
2292
- offset: this._getOffset(),
2293
- flip: {
2294
- enabled: this._config.flip
2295
- },
2296
- preventOverflow: {
2297
- boundariesElement: this._config.boundary
2313
+ modifiers: [{
2314
+ name: 'preventOverflow',
2315
+ options: {
2316
+ altBoundary: this._config.flip,
2317
+ rootBoundary: this._config.boundary
2298
2318
  }
2299
- }
2300
- }; // Disable Popper.js if we have a static display
2319
+ }]
2320
+ }; // Disable Popper if we have a static display
2301
2321
 
2302
2322
  if (this._config.display === 'static') {
2303
- popperConfig.modifiers.applyStyle = {
2323
+ popperConfig.modifiers = [{
2324
+ name: 'applyStyles',
2304
2325
  enabled: false
2305
- };
2326
+ }];
2306
2327
  }
2307
2328
 
2308
2329
  return _extends({}, popperConfig, this._config.popperConfig);
@@ -2437,15 +2458,14 @@
2437
2458
  return;
2438
2459
  }
2439
2460
 
2440
- var index = items.indexOf(event.target);
2461
+ var index = items.indexOf(event.target); // Up
2441
2462
 
2442
2463
  if (event.key === ARROW_UP_KEY && index > 0) {
2443
- // Up
2444
2464
  index--;
2445
- }
2465
+ } // Down
2466
+
2446
2467
 
2447
2468
  if (event.key === ARROW_DOWN_KEY && index < items.length - 1) {
2448
- // Down
2449
2469
  index++;
2450
2470
  } // index is -1 if the first keydown is an ArrowUp
2451
2471
 
@@ -2454,16 +2474,7 @@
2454
2474
  items[index].focus();
2455
2475
  };
2456
2476
 
2457
- Dropdown.getInstance = function getInstance(element) {
2458
- return Data.getData(element, DATA_KEY$4);
2459
- };
2460
-
2461
2477
  _createClass(Dropdown, null, [{
2462
- key: "VERSION",
2463
- get: function get() {
2464
- return VERSION$4;
2465
- }
2466
- }, {
2467
2478
  key: "Default",
2468
2479
  get: function get() {
2469
2480
  return Default$2;
@@ -2473,10 +2484,15 @@
2473
2484
  get: function get() {
2474
2485
  return DefaultType$2;
2475
2486
  }
2487
+ }, {
2488
+ key: "DATA_KEY",
2489
+ get: function get() {
2490
+ return DATA_KEY$4;
2491
+ }
2476
2492
  }]);
2477
2493
 
2478
2494
  return Dropdown;
2479
- }();
2495
+ }(BaseComponent);
2480
2496
  /**
2481
2497
  * ------------------------------------------------------------------------
2482
2498
  * Data Api implementation
@@ -2526,7 +2542,6 @@
2526
2542
  */
2527
2543
 
2528
2544
  var NAME$5 = 'modal';
2529
- var VERSION$5 = '5.0.0-alpha3';
2530
2545
  var DATA_KEY$5 = 'bs.modal';
2531
2546
  var EVENT_KEY$5 = "." + DATA_KEY$5;
2532
2547
  var DATA_API_KEY$5 = '.data-api';
@@ -2534,14 +2549,12 @@
2534
2549
  var Default$3 = {
2535
2550
  backdrop: true,
2536
2551
  keyboard: true,
2537
- focus: true,
2538
- show: true
2552
+ focus: true
2539
2553
  };
2540
2554
  var DefaultType$3 = {
2541
2555
  backdrop: '(boolean|string)',
2542
2556
  keyboard: 'boolean',
2543
- focus: 'boolean',
2544
- show: 'boolean'
2557
+ focus: 'boolean'
2545
2558
  };
2546
2559
  var EVENT_HIDE$2 = "hide" + EVENT_KEY$5;
2547
2560
  var EVENT_HIDE_PREVENTED = "hidePrevented" + EVENT_KEY$5;
@@ -2563,8 +2576,8 @@
2563
2576
  var CLASS_NAME_STATIC = 'modal-static';
2564
2577
  var SELECTOR_DIALOG = '.modal-dialog';
2565
2578
  var SELECTOR_MODAL_BODY = '.modal-body';
2566
- var SELECTOR_DATA_TOGGLE$3 = '[data-toggle="modal"]';
2567
- var SELECTOR_DATA_DISMISS = '[data-dismiss="modal"]';
2579
+ var SELECTOR_DATA_TOGGLE$3 = '[data-bs-toggle="modal"]';
2580
+ var SELECTOR_DATA_DISMISS = '[data-bs-dismiss="modal"]';
2568
2581
  var SELECTOR_FIXED_CONTENT = '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top';
2569
2582
  var SELECTOR_STICKY_CONTENT = '.sticky-top';
2570
2583
  /**
@@ -2573,18 +2586,22 @@
2573
2586
  * ------------------------------------------------------------------------
2574
2587
  */
2575
2588
 
2576
- var Modal = /*#__PURE__*/function () {
2589
+ var Modal = /*#__PURE__*/function (_BaseComponent) {
2590
+ _inheritsLoose(Modal, _BaseComponent);
2591
+
2577
2592
  function Modal(element, config) {
2578
- this._config = this._getConfig(config);
2579
- this._element = element;
2580
- this._dialog = SelectorEngine.findOne(SELECTOR_DIALOG, element);
2581
- this._backdrop = null;
2582
- this._isShown = false;
2583
- this._isBodyOverflowing = false;
2584
- this._ignoreBackdropClick = false;
2585
- this._isTransitioning = false;
2586
- this._scrollbarWidth = 0;
2587
- Data.setData(element, DATA_KEY$5, this);
2593
+ var _this;
2594
+
2595
+ _this = _BaseComponent.call(this, element) || this;
2596
+ _this._config = _this._getConfig(config);
2597
+ _this._dialog = SelectorEngine.findOne(SELECTOR_DIALOG, element);
2598
+ _this._backdrop = null;
2599
+ _this._isShown = false;
2600
+ _this._isBodyOverflowing = false;
2601
+ _this._ignoreBackdropClick = false;
2602
+ _this._isTransitioning = false;
2603
+ _this._scrollbarWidth = 0;
2604
+ return _this;
2588
2605
  } // Getters
2589
2606
 
2590
2607
 
@@ -2596,7 +2613,7 @@
2596
2613
  };
2597
2614
 
2598
2615
  _proto.show = function show(relatedTarget) {
2599
- var _this = this;
2616
+ var _this2 = this;
2600
2617
 
2601
2618
  if (this._isShown || this._isTransitioning) {
2602
2619
  return;
@@ -2627,23 +2644,23 @@
2627
2644
  this._setResizeEvent();
2628
2645
 
2629
2646
  EventHandler.on(this._element, EVENT_CLICK_DISMISS, SELECTOR_DATA_DISMISS, function (event) {
2630
- return _this.hide(event);
2647
+ return _this2.hide(event);
2631
2648
  });
2632
2649
  EventHandler.on(this._dialog, EVENT_MOUSEDOWN_DISMISS, function () {
2633
- EventHandler.one(_this._element, EVENT_MOUSEUP_DISMISS, function (event) {
2634
- if (event.target === _this._element) {
2635
- _this._ignoreBackdropClick = true;
2650
+ EventHandler.one(_this2._element, EVENT_MOUSEUP_DISMISS, function (event) {
2651
+ if (event.target === _this2._element) {
2652
+ _this2._ignoreBackdropClick = true;
2636
2653
  }
2637
2654
  });
2638
2655
  });
2639
2656
 
2640
2657
  this._showBackdrop(function () {
2641
- return _this._showElement(relatedTarget);
2658
+ return _this2._showElement(relatedTarget);
2642
2659
  });
2643
2660
  };
2644
2661
 
2645
2662
  _proto.hide = function hide(event) {
2646
- var _this2 = this;
2663
+ var _this3 = this;
2647
2664
 
2648
2665
  if (event) {
2649
2666
  event.preventDefault();
@@ -2681,7 +2698,7 @@
2681
2698
  if (transition) {
2682
2699
  var transitionDuration = getTransitionDurationFromElement(this._element);
2683
2700
  EventHandler.one(this._element, TRANSITION_END, function (event) {
2684
- return _this2._hideModal(event);
2701
+ return _this3._hideModal(event);
2685
2702
  });
2686
2703
  emulateTransitionEnd(this._element, transitionDuration);
2687
2704
  } else {
@@ -2693,16 +2710,17 @@
2693
2710
  [window, this._element, this._dialog].forEach(function (htmlElement) {
2694
2711
  return EventHandler.off(htmlElement, EVENT_KEY$5);
2695
2712
  });
2713
+
2714
+ _BaseComponent.prototype.dispose.call(this);
2696
2715
  /**
2697
2716
  * `document` has 2 events `EVENT_FOCUSIN` and `EVENT_CLICK_DATA_API`
2698
2717
  * Do not move `document` in `htmlElements` array
2699
2718
  * It will remove `EVENT_CLICK_DATA_API` event that should remain
2700
2719
  */
2701
2720
 
2721
+
2702
2722
  EventHandler.off(document, EVENT_FOCUSIN);
2703
- Data.removeData(this._element, DATA_KEY$5);
2704
2723
  this._config = null;
2705
- this._element = null;
2706
2724
  this._dialog = null;
2707
2725
  this._backdrop = null;
2708
2726
  this._isShown = null;
@@ -2724,7 +2742,7 @@
2724
2742
  };
2725
2743
 
2726
2744
  _proto._showElement = function _showElement(relatedTarget) {
2727
- var _this3 = this;
2745
+ var _this4 = this;
2728
2746
 
2729
2747
  var transition = this._element.classList.contains(CLASS_NAME_FADE);
2730
2748
 
@@ -2760,12 +2778,12 @@
2760
2778
  }
2761
2779
 
2762
2780
  var transitionComplete = function transitionComplete() {
2763
- if (_this3._config.focus) {
2764
- _this3._element.focus();
2781
+ if (_this4._config.focus) {
2782
+ _this4._element.focus();
2765
2783
  }
2766
2784
 
2767
- _this3._isTransitioning = false;
2768
- EventHandler.trigger(_this3._element, EVENT_SHOWN$2, {
2785
+ _this4._isTransitioning = false;
2786
+ EventHandler.trigger(_this4._element, EVENT_SHOWN$2, {
2769
2787
  relatedTarget: relatedTarget
2770
2788
  });
2771
2789
  };
@@ -2780,28 +2798,28 @@
2780
2798
  };
2781
2799
 
2782
2800
  _proto._enforceFocus = function _enforceFocus() {
2783
- var _this4 = this;
2801
+ var _this5 = this;
2784
2802
 
2785
2803
  EventHandler.off(document, EVENT_FOCUSIN); // guard against infinite focus loop
2786
2804
 
2787
2805
  EventHandler.on(document, EVENT_FOCUSIN, function (event) {
2788
- if (document !== event.target && _this4._element !== event.target && !_this4._element.contains(event.target)) {
2789
- _this4._element.focus();
2806
+ if (document !== event.target && _this5._element !== event.target && !_this5._element.contains(event.target)) {
2807
+ _this5._element.focus();
2790
2808
  }
2791
2809
  });
2792
2810
  };
2793
2811
 
2794
2812
  _proto._setEscapeEvent = function _setEscapeEvent() {
2795
- var _this5 = this;
2813
+ var _this6 = this;
2796
2814
 
2797
2815
  if (this._isShown) {
2798
2816
  EventHandler.on(this._element, EVENT_KEYDOWN_DISMISS, function (event) {
2799
- if (_this5._config.keyboard && event.key === ESCAPE_KEY$1) {
2817
+ if (_this6._config.keyboard && event.key === ESCAPE_KEY$1) {
2800
2818
  event.preventDefault();
2801
2819
 
2802
- _this5.hide();
2803
- } else if (!_this5._config.keyboard && event.key === ESCAPE_KEY$1) {
2804
- _this5._triggerBackdropTransition();
2820
+ _this6.hide();
2821
+ } else if (!_this6._config.keyboard && event.key === ESCAPE_KEY$1) {
2822
+ _this6._triggerBackdropTransition();
2805
2823
  }
2806
2824
  });
2807
2825
  } else {
@@ -2810,11 +2828,11 @@
2810
2828
  };
2811
2829
 
2812
2830
  _proto._setResizeEvent = function _setResizeEvent() {
2813
- var _this6 = this;
2831
+ var _this7 = this;
2814
2832
 
2815
2833
  if (this._isShown) {
2816
2834
  EventHandler.on(window, EVENT_RESIZE, function () {
2817
- return _this6._adjustDialog();
2835
+ return _this7._adjustDialog();
2818
2836
  });
2819
2837
  } else {
2820
2838
  EventHandler.off(window, EVENT_RESIZE);
@@ -2822,7 +2840,7 @@
2822
2840
  };
2823
2841
 
2824
2842
  _proto._hideModal = function _hideModal() {
2825
- var _this7 = this;
2843
+ var _this8 = this;
2826
2844
 
2827
2845
  this._element.style.display = 'none';
2828
2846
 
@@ -2837,11 +2855,11 @@
2837
2855
  this._showBackdrop(function () {
2838
2856
  document.body.classList.remove(CLASS_NAME_OPEN);
2839
2857
 
2840
- _this7._resetAdjustments();
2858
+ _this8._resetAdjustments();
2841
2859
 
2842
- _this7._resetScrollbar();
2860
+ _this8._resetScrollbar();
2843
2861
 
2844
- EventHandler.trigger(_this7._element, EVENT_HIDDEN$2);
2862
+ EventHandler.trigger(_this8._element, EVENT_HIDDEN$2);
2845
2863
  });
2846
2864
  };
2847
2865
 
@@ -2852,7 +2870,7 @@
2852
2870
  };
2853
2871
 
2854
2872
  _proto._showBackdrop = function _showBackdrop(callback) {
2855
- var _this8 = this;
2873
+ var _this9 = this;
2856
2874
 
2857
2875
  var animate = this._element.classList.contains(CLASS_NAME_FADE) ? CLASS_NAME_FADE : '';
2858
2876
 
@@ -2866,8 +2884,8 @@
2866
2884
 
2867
2885
  document.body.appendChild(this._backdrop);
2868
2886
  EventHandler.on(this._element, EVENT_CLICK_DISMISS, function (event) {
2869
- if (_this8._ignoreBackdropClick) {
2870
- _this8._ignoreBackdropClick = false;
2887
+ if (_this9._ignoreBackdropClick) {
2888
+ _this9._ignoreBackdropClick = false;
2871
2889
  return;
2872
2890
  }
2873
2891
 
@@ -2875,7 +2893,11 @@
2875
2893
  return;
2876
2894
  }
2877
2895
 
2878
- _this8._triggerBackdropTransition();
2896
+ if (_this9._config.backdrop === 'static') {
2897
+ _this9._triggerBackdropTransition();
2898
+ } else {
2899
+ _this9.hide();
2900
+ }
2879
2901
  });
2880
2902
 
2881
2903
  if (animate) {
@@ -2896,7 +2918,7 @@
2896
2918
  this._backdrop.classList.remove(CLASS_NAME_SHOW$2);
2897
2919
 
2898
2920
  var callbackRemove = function callbackRemove() {
2899
- _this8._removeBackdrop();
2921
+ _this9._removeBackdrop();
2900
2922
 
2901
2923
  callback();
2902
2924
  };
@@ -2915,41 +2937,37 @@
2915
2937
  };
2916
2938
 
2917
2939
  _proto._triggerBackdropTransition = function _triggerBackdropTransition() {
2918
- var _this9 = this;
2940
+ var _this10 = this;
2919
2941
 
2920
- if (this._config.backdrop === 'static') {
2921
- var hideEvent = EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED);
2942
+ var hideEvent = EventHandler.trigger(this._element, EVENT_HIDE_PREVENTED);
2922
2943
 
2923
- if (hideEvent.defaultPrevented) {
2924
- return;
2925
- }
2944
+ if (hideEvent.defaultPrevented) {
2945
+ return;
2946
+ }
2926
2947
 
2927
- var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
2948
+ var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
2928
2949
 
2929
- if (!isModalOverflowing) {
2930
- this._element.style.overflowY = 'hidden';
2931
- }
2950
+ if (!isModalOverflowing) {
2951
+ this._element.style.overflowY = 'hidden';
2952
+ }
2932
2953
 
2933
- this._element.classList.add(CLASS_NAME_STATIC);
2954
+ this._element.classList.add(CLASS_NAME_STATIC);
2934
2955
 
2935
- var modalTransitionDuration = getTransitionDurationFromElement(this._dialog);
2936
- EventHandler.off(this._element, TRANSITION_END);
2937
- EventHandler.one(this._element, TRANSITION_END, function () {
2938
- _this9._element.classList.remove(CLASS_NAME_STATIC);
2956
+ var modalTransitionDuration = getTransitionDurationFromElement(this._dialog);
2957
+ EventHandler.off(this._element, TRANSITION_END);
2958
+ EventHandler.one(this._element, TRANSITION_END, function () {
2959
+ _this10._element.classList.remove(CLASS_NAME_STATIC);
2939
2960
 
2940
- if (!isModalOverflowing) {
2941
- EventHandler.one(_this9._element, TRANSITION_END, function () {
2942
- _this9._element.style.overflowY = '';
2943
- });
2944
- emulateTransitionEnd(_this9._element, modalTransitionDuration);
2945
- }
2946
- });
2947
- emulateTransitionEnd(this._element, modalTransitionDuration);
2961
+ if (!isModalOverflowing) {
2962
+ EventHandler.one(_this10._element, TRANSITION_END, function () {
2963
+ _this10._element.style.overflowY = '';
2964
+ });
2965
+ emulateTransitionEnd(_this10._element, modalTransitionDuration);
2966
+ }
2967
+ });
2968
+ emulateTransitionEnd(this._element, modalTransitionDuration);
2948
2969
 
2949
- this._element.focus();
2950
- } else {
2951
- this.hide();
2952
- }
2970
+ this._element.focus();
2953
2971
  } // ----------------------------------------------------------------------
2954
2972
  // the following methods are used to handle overflowing modals
2955
2973
  // ----------------------------------------------------------------------
@@ -2958,11 +2976,11 @@
2958
2976
  _proto._adjustDialog = function _adjustDialog() {
2959
2977
  var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
2960
2978
 
2961
- if (!this._isBodyOverflowing && isModalOverflowing) {
2979
+ if (!this._isBodyOverflowing && isModalOverflowing && !isRTL || this._isBodyOverflowing && !isModalOverflowing && isRTL) {
2962
2980
  this._element.style.paddingLeft = this._scrollbarWidth + "px";
2963
2981
  }
2964
2982
 
2965
- if (this._isBodyOverflowing && !isModalOverflowing) {
2983
+ if (this._isBodyOverflowing && !isModalOverflowing && !isRTL || !this._isBodyOverflowing && isModalOverflowing && isRTL) {
2966
2984
  this._element.style.paddingRight = this._scrollbarWidth + "px";
2967
2985
  }
2968
2986
  };
@@ -2979,7 +2997,7 @@
2979
2997
  };
2980
2998
 
2981
2999
  _proto._setScrollbar = function _setScrollbar() {
2982
- var _this10 = this;
3000
+ var _this11 = this;
2983
3001
 
2984
3002
  if (this._isBodyOverflowing) {
2985
3003
  // Note: DOMNode.style.paddingRight returns the actual value or '' if not set
@@ -2989,20 +3007,20 @@
2989
3007
  var actualPadding = element.style.paddingRight;
2990
3008
  var calculatedPadding = window.getComputedStyle(element)['padding-right'];
2991
3009
  Manipulator.setDataAttribute(element, 'padding-right', actualPadding);
2992
- element.style.paddingRight = parseFloat(calculatedPadding) + _this10._scrollbarWidth + "px";
3010
+ element.style.paddingRight = Number.parseFloat(calculatedPadding) + _this11._scrollbarWidth + "px";
2993
3011
  }); // Adjust sticky content margin
2994
3012
 
2995
3013
  SelectorEngine.find(SELECTOR_STICKY_CONTENT).forEach(function (element) {
2996
3014
  var actualMargin = element.style.marginRight;
2997
3015
  var calculatedMargin = window.getComputedStyle(element)['margin-right'];
2998
3016
  Manipulator.setDataAttribute(element, 'margin-right', actualMargin);
2999
- element.style.marginRight = parseFloat(calculatedMargin) - _this10._scrollbarWidth + "px";
3017
+ element.style.marginRight = Number.parseFloat(calculatedMargin) - _this11._scrollbarWidth + "px";
3000
3018
  }); // Adjust body padding
3001
3019
 
3002
3020
  var actualPadding = document.body.style.paddingRight;
3003
3021
  var calculatedPadding = window.getComputedStyle(document.body)['padding-right'];
3004
3022
  Manipulator.setDataAttribute(document.body, 'padding-right', actualPadding);
3005
- document.body.style.paddingRight = parseFloat(calculatedPadding) + this._scrollbarWidth + "px";
3023
+ document.body.style.paddingRight = Number.parseFloat(calculatedPadding) + this._scrollbarWidth + "px";
3006
3024
  }
3007
3025
 
3008
3026
  document.body.classList.add(CLASS_NAME_OPEN);
@@ -3065,30 +3083,24 @@
3065
3083
  }
3066
3084
 
3067
3085
  data[config](relatedTarget);
3068
- } else if (_config.show) {
3069
- data.show(relatedTarget);
3070
3086
  }
3071
3087
  });
3072
3088
  };
3073
3089
 
3074
- Modal.getInstance = function getInstance(element) {
3075
- return Data.getData(element, DATA_KEY$5);
3076
- };
3077
-
3078
3090
  _createClass(Modal, null, [{
3079
- key: "VERSION",
3091
+ key: "Default",
3080
3092
  get: function get() {
3081
- return VERSION$5;
3093
+ return Default$3;
3082
3094
  }
3083
3095
  }, {
3084
- key: "Default",
3096
+ key: "DATA_KEY",
3085
3097
  get: function get() {
3086
- return Default$3;
3098
+ return DATA_KEY$5;
3087
3099
  }
3088
3100
  }]);
3089
3101
 
3090
3102
  return Modal;
3091
- }();
3103
+ }(BaseComponent);
3092
3104
  /**
3093
3105
  * ------------------------------------------------------------------------
3094
3106
  * Data Api implementation
@@ -3097,7 +3109,7 @@
3097
3109
 
3098
3110
 
3099
3111
  EventHandler.on(document, EVENT_CLICK_DATA_API$5, SELECTOR_DATA_TOGGLE$3, function (event) {
3100
- var _this11 = this;
3112
+ var _this12 = this;
3101
3113
 
3102
3114
  var target = getElementFromSelector(this);
3103
3115
 
@@ -3112,8 +3124,8 @@
3112
3124
  }
3113
3125
 
3114
3126
  EventHandler.one(target, EVENT_HIDDEN$2, function () {
3115
- if (isVisible(_this11)) {
3116
- _this11.focus();
3127
+ if (isVisible(_this12)) {
3128
+ _this12.focus();
3117
3129
  }
3118
3130
  });
3119
3131
  });
@@ -3152,11 +3164,11 @@
3152
3164
 
3153
3165
  /**
3154
3166
  * --------------------------------------------------------------------------
3155
- * Bootstrap (v5.0.0-alpha3): util/sanitizer.js
3167
+ * Bootstrap (v5.0.0-beta1): util/sanitizer.js
3156
3168
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
3157
3169
  * --------------------------------------------------------------------------
3158
3170
  */
3159
- var uriAttrs = ['background', 'cite', 'href', 'itemtype', 'longdesc', 'poster', 'src', 'xlink:href'];
3171
+ var uriAttrs = new Set(['background', 'cite', 'href', 'itemtype', 'longdesc', 'poster', 'src', 'xlink:href']);
3160
3172
  var ARIA_ATTRIBUTE_PATTERN = /^aria-[\w-]*$/i;
3161
3173
  /**
3162
3174
  * A pattern that recognizes a commonly useful subset of URLs that are safe.
@@ -3176,8 +3188,8 @@
3176
3188
  var allowedAttribute = function allowedAttribute(attr, allowedAttributeList) {
3177
3189
  var attrName = attr.nodeName.toLowerCase();
3178
3190
 
3179
- if (allowedAttributeList.indexOf(attrName) !== -1) {
3180
- if (uriAttrs.indexOf(attrName) !== -1) {
3191
+ if (allowedAttributeList.includes(attrName)) {
3192
+ if (uriAttrs.has(attrName)) {
3181
3193
  return Boolean(attr.nodeValue.match(SAFE_URL_PATTERN) || attr.nodeValue.match(DATA_URL_PATTERN));
3182
3194
  }
3183
3195
 
@@ -3253,7 +3265,7 @@
3253
3265
  var el = elements[i];
3254
3266
  var elName = el.nodeName.toLowerCase();
3255
3267
 
3256
- if (allowlistKeys.indexOf(elName) === -1) {
3268
+ if (!allowlistKeys.includes(elName)) {
3257
3269
  el.parentNode.removeChild(el);
3258
3270
  return "continue";
3259
3271
  }
@@ -3284,12 +3296,11 @@
3284
3296
  */
3285
3297
 
3286
3298
  var NAME$6 = 'tooltip';
3287
- var VERSION$6 = '5.0.0-alpha3';
3288
3299
  var DATA_KEY$6 = 'bs.tooltip';
3289
3300
  var EVENT_KEY$6 = "." + DATA_KEY$6;
3290
3301
  var CLASS_PREFIX = 'bs-tooltip';
3291
3302
  var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
3292
- var DISALLOWED_ATTRIBUTES = ['sanitize', 'allowList', 'sanitizeFn'];
3303
+ var DISALLOWED_ATTRIBUTES = new Set(['sanitize', 'allowList', 'sanitizeFn']);
3293
3304
  var DefaultType$4 = {
3294
3305
  animation: 'boolean',
3295
3306
  template: 'string',
@@ -3299,10 +3310,10 @@
3299
3310
  html: 'boolean',
3300
3311
  selector: '(string|boolean)',
3301
3312
  placement: '(string|function)',
3302
- offset: '(number|string|function)',
3303
3313
  container: '(string|element|boolean)',
3304
- fallbackPlacement: '(string|array)',
3314
+ fallbackPlacements: '(null|array)',
3305
3315
  boundary: '(string|element)',
3316
+ customClass: '(string|function)',
3306
3317
  sanitize: 'boolean',
3307
3318
  sanitizeFn: '(null|function)',
3308
3319
  allowList: 'object',
@@ -3311,23 +3322,23 @@
3311
3322
  var AttachmentMap = {
3312
3323
  AUTO: 'auto',
3313
3324
  TOP: 'top',
3314
- RIGHT: 'right',
3325
+ RIGHT: isRTL ? 'left' : 'right',
3315
3326
  BOTTOM: 'bottom',
3316
- LEFT: 'left'
3327
+ LEFT: isRTL ? 'right' : 'left'
3317
3328
  };
3318
3329
  var Default$4 = {
3319
3330
  animation: true,
3320
- template: '<div class="tooltip" role="tooltip">' + '<div class="tooltip-arrow"></div>' + '<div class="tooltip-inner"></div></div>',
3331
+ template: '<div class="tooltip" role="tooltip">' + '<div class="tooltip-arrow"></div>' + '<div class="tooltip-inner"></div>' + '</div>',
3321
3332
  trigger: 'hover focus',
3322
3333
  title: '',
3323
3334
  delay: 0,
3324
3335
  html: false,
3325
3336
  selector: false,
3326
3337
  placement: 'top',
3327
- offset: 0,
3328
3338
  container: false,
3329
- fallbackPlacement: 'flip',
3330
- boundary: 'scrollParent',
3339
+ fallbackPlacements: null,
3340
+ boundary: 'clippingParents',
3341
+ customClass: '',
3331
3342
  sanitize: true,
3332
3343
  sanitizeFn: null,
3333
3344
  allowList: DefaultAllowlist,
@@ -3361,26 +3372,30 @@
3361
3372
  * ------------------------------------------------------------------------
3362
3373
  */
3363
3374
 
3364
- var Tooltip = /*#__PURE__*/function () {
3375
+ var Tooltip = /*#__PURE__*/function (_BaseComponent) {
3376
+ _inheritsLoose(Tooltip, _BaseComponent);
3377
+
3365
3378
  function Tooltip(element, config) {
3366
- if (typeof Popper__default['default'] === 'undefined') {
3367
- throw new TypeError('Bootstrap\'s tooltips require Popper.js (https://popper.js.org)');
3368
- } // private
3379
+ var _this;
3369
3380
 
3381
+ if (typeof Popper__namespace === 'undefined') {
3382
+ throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org)');
3383
+ }
3370
3384
 
3371
- this._isEnabled = true;
3372
- this._timeout = 0;
3373
- this._hoverState = '';
3374
- this._activeTrigger = {};
3375
- this._popper = null; // Protected
3385
+ _this = _BaseComponent.call(this, element) || this; // private
3376
3386
 
3377
- this.element = element;
3378
- this.config = this._getConfig(config);
3379
- this.tip = null;
3387
+ _this._isEnabled = true;
3388
+ _this._timeout = 0;
3389
+ _this._hoverState = '';
3390
+ _this._activeTrigger = {};
3391
+ _this._popper = null; // Protected
3380
3392
 
3381
- this._setListeners();
3393
+ _this.config = _this._getConfig(config);
3394
+ _this.tip = null;
3382
3395
 
3383
- Data.setData(element, this.constructor.DATA_KEY, this);
3396
+ _this._setListeners();
3397
+
3398
+ return _this;
3384
3399
  } // Getters
3385
3400
 
3386
3401
 
@@ -3433,9 +3448,8 @@
3433
3448
 
3434
3449
  _proto.dispose = function dispose() {
3435
3450
  clearTimeout(this._timeout);
3436
- Data.removeData(this.element, this.constructor.DATA_KEY);
3437
- EventHandler.off(this.element, this.constructor.EVENT_KEY);
3438
- EventHandler.off(this.element.closest("." + CLASS_NAME_MODAL), 'hide.bs.modal', this._hideModalHandler);
3451
+ EventHandler.off(this._element, this.constructor.EVENT_KEY);
3452
+ EventHandler.off(this._element.closest("." + CLASS_NAME_MODAL), 'hide.bs.modal', this._hideModalHandler);
3439
3453
 
3440
3454
  if (this.tip) {
3441
3455
  this.tip.parentNode.removeChild(this.tip);
@@ -3451,22 +3465,23 @@
3451
3465
  }
3452
3466
 
3453
3467
  this._popper = null;
3454
- this.element = null;
3455
3468
  this.config = null;
3456
3469
  this.tip = null;
3470
+
3471
+ _BaseComponent.prototype.dispose.call(this);
3457
3472
  };
3458
3473
 
3459
3474
  _proto.show = function show() {
3460
- var _this = this;
3475
+ var _this2 = this;
3461
3476
 
3462
- if (this.element.style.display === 'none') {
3477
+ if (this._element.style.display === 'none') {
3463
3478
  throw new Error('Please use show on visible elements');
3464
3479
  }
3465
3480
 
3466
3481
  if (this.isWithContent() && this._isEnabled) {
3467
- var showEvent = EventHandler.trigger(this.element, this.constructor.Event.SHOW);
3468
- var shadowRoot = findShadowRoot(this.element);
3469
- var isInTheDom = shadowRoot === null ? this.element.ownerDocument.documentElement.contains(this.element) : shadowRoot.contains(this.element);
3482
+ var showEvent = EventHandler.trigger(this._element, this.constructor.Event.SHOW);
3483
+ var shadowRoot = findShadowRoot(this._element);
3484
+ var isInTheDom = shadowRoot === null ? this._element.ownerDocument.documentElement.contains(this._element) : shadowRoot.contains(this._element);
3470
3485
 
3471
3486
  if (showEvent.defaultPrevented || !isInTheDom) {
3472
3487
  return;
@@ -3475,14 +3490,16 @@
3475
3490
  var tip = this.getTipElement();
3476
3491
  var tipId = getUID(this.constructor.NAME);
3477
3492
  tip.setAttribute('id', tipId);
3478
- this.element.setAttribute('aria-describedby', tipId);
3493
+
3494
+ this._element.setAttribute('aria-describedby', tipId);
3495
+
3479
3496
  this.setContent();
3480
3497
 
3481
3498
  if (this.config.animation) {
3482
3499
  tip.classList.add(CLASS_NAME_FADE$1);
3483
3500
  }
3484
3501
 
3485
- var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this.element) : this.config.placement;
3502
+ var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this._element) : this.config.placement;
3486
3503
 
3487
3504
  var attachment = this._getAttachment(placement);
3488
3505
 
@@ -3492,17 +3509,25 @@
3492
3509
 
3493
3510
  Data.setData(tip, this.constructor.DATA_KEY, this);
3494
3511
 
3495
- if (!this.element.ownerDocument.documentElement.contains(this.tip)) {
3512
+ if (!this._element.ownerDocument.documentElement.contains(this.tip)) {
3496
3513
  container.appendChild(tip);
3497
3514
  }
3498
3515
 
3499
- EventHandler.trigger(this.element, this.constructor.Event.INSERTED);
3500
- this._popper = new Popper__default['default'](this.element, tip, this._getPopperConfig(attachment));
3501
- tip.classList.add(CLASS_NAME_SHOW$3); // If this is a touch-enabled device we add extra
3516
+ EventHandler.trigger(this._element, this.constructor.Event.INSERTED);
3517
+ this._popper = Popper.createPopper(this._element, tip, this._getPopperConfig(attachment));
3518
+ tip.classList.add(CLASS_NAME_SHOW$3);
3519
+ var customClass = typeof this.config.customClass === 'function' ? this.config.customClass() : this.config.customClass;
3520
+
3521
+ if (customClass) {
3522
+ var _tip$classList;
3523
+
3524
+ (_tip$classList = tip.classList).add.apply(_tip$classList, customClass.split(' '));
3525
+ } // If this is a touch-enabled device we add extra
3502
3526
  // empty mouseover listeners to the body's immediate children;
3503
3527
  // only needed because of broken event delegation on iOS
3504
3528
  // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
3505
3529
 
3530
+
3506
3531
  if ('ontouchstart' in document.documentElement) {
3507
3532
  var _ref;
3508
3533
 
@@ -3512,16 +3537,12 @@
3512
3537
  }
3513
3538
 
3514
3539
  var complete = function complete() {
3515
- if (_this.config.animation) {
3516
- _this._fixTransition();
3517
- }
3518
-
3519
- var prevHoverState = _this._hoverState;
3520
- _this._hoverState = null;
3521
- EventHandler.trigger(_this.element, _this.constructor.Event.SHOWN);
3540
+ var prevHoverState = _this2._hoverState;
3541
+ _this2._hoverState = null;
3542
+ EventHandler.trigger(_this2._element, _this2.constructor.Event.SHOWN);
3522
3543
 
3523
3544
  if (prevHoverState === HOVER_STATE_OUT) {
3524
- _this._leave(null, _this);
3545
+ _this2._leave(null, _this2);
3525
3546
  }
3526
3547
  };
3527
3548
 
@@ -3536,7 +3557,7 @@
3536
3557
  };
3537
3558
 
3538
3559
  _proto.hide = function hide() {
3539
- var _this2 = this;
3560
+ var _this3 = this;
3540
3561
 
3541
3562
  if (!this._popper) {
3542
3563
  return;
@@ -3545,20 +3566,24 @@
3545
3566
  var tip = this.getTipElement();
3546
3567
 
3547
3568
  var complete = function complete() {
3548
- if (_this2._hoverState !== HOVER_STATE_SHOW && tip.parentNode) {
3569
+ if (_this3._hoverState !== HOVER_STATE_SHOW && tip.parentNode) {
3549
3570
  tip.parentNode.removeChild(tip);
3550
3571
  }
3551
3572
 
3552
- _this2._cleanTipClass();
3573
+ _this3._cleanTipClass();
3553
3574
 
3554
- _this2.element.removeAttribute('aria-describedby');
3575
+ _this3._element.removeAttribute('aria-describedby');
3555
3576
 
3556
- EventHandler.trigger(_this2.element, _this2.constructor.Event.HIDDEN);
3577
+ EventHandler.trigger(_this3._element, _this3.constructor.Event.HIDDEN);
3557
3578
 
3558
- _this2._popper.destroy();
3579
+ if (_this3._popper) {
3580
+ _this3._popper.destroy();
3581
+
3582
+ _this3._popper = null;
3583
+ }
3559
3584
  };
3560
3585
 
3561
- var hideEvent = EventHandler.trigger(this.element, this.constructor.Event.HIDE);
3586
+ var hideEvent = EventHandler.trigger(this._element, this.constructor.Event.HIDE);
3562
3587
 
3563
3588
  if (hideEvent.defaultPrevented) {
3564
3589
  return;
@@ -3592,7 +3617,7 @@
3592
3617
 
3593
3618
  _proto.update = function update() {
3594
3619
  if (this._popper !== null) {
3595
- this._popper.scheduleUpdate();
3620
+ this._popper.update();
3596
3621
  }
3597
3622
  } // Protected
3598
3623
  ;
@@ -3653,64 +3678,73 @@
3653
3678
  };
3654
3679
 
3655
3680
  _proto.getTitle = function getTitle() {
3656
- var title = this.element.getAttribute('data-original-title');
3681
+ var title = this._element.getAttribute('data-bs-original-title');
3657
3682
 
3658
3683
  if (!title) {
3659
- title = typeof this.config.title === 'function' ? this.config.title.call(this.element) : this.config.title;
3684
+ title = typeof this.config.title === 'function' ? this.config.title.call(this._element) : this.config.title;
3660
3685
  }
3661
3686
 
3662
3687
  return title;
3688
+ };
3689
+
3690
+ _proto.updateAttachment = function updateAttachment(attachment) {
3691
+ if (attachment === 'right') {
3692
+ return 'end';
3693
+ }
3694
+
3695
+ if (attachment === 'left') {
3696
+ return 'start';
3697
+ }
3698
+
3699
+ return attachment;
3663
3700
  } // Private
3664
3701
  ;
3665
3702
 
3666
3703
  _proto._getPopperConfig = function _getPopperConfig(attachment) {
3667
- var _this3 = this;
3704
+ var _this4 = this;
3705
+
3706
+ var flipModifier = {
3707
+ name: 'flip',
3708
+ options: {
3709
+ altBoundary: true
3710
+ }
3711
+ };
3712
+
3713
+ if (this.config.fallbackPlacements) {
3714
+ flipModifier.options.fallbackPlacements = this.config.fallbackPlacements;
3715
+ }
3668
3716
 
3669
3717
  var defaultBsConfig = {
3670
3718
  placement: attachment,
3671
- modifiers: {
3672
- offset: this._getOffset(),
3673
- flip: {
3674
- behavior: this.config.fallbackPlacement
3675
- },
3676
- arrow: {
3719
+ modifiers: [flipModifier, {
3720
+ name: 'preventOverflow',
3721
+ options: {
3722
+ rootBoundary: this.config.boundary
3723
+ }
3724
+ }, {
3725
+ name: 'arrow',
3726
+ options: {
3677
3727
  element: "." + this.constructor.NAME + "-arrow"
3678
- },
3679
- preventOverflow: {
3680
- boundariesElement: this.config.boundary
3681
3728
  }
3682
- },
3683
- onCreate: function onCreate(data) {
3684
- if (data.originalPlacement !== data.placement) {
3685
- _this3._handlePopperPlacementChange(data);
3729
+ }, {
3730
+ name: 'onChange',
3731
+ enabled: true,
3732
+ phase: 'afterWrite',
3733
+ fn: function fn(data) {
3734
+ return _this4._handlePopperPlacementChange(data);
3735
+ }
3736
+ }],
3737
+ onFirstUpdate: function onFirstUpdate(data) {
3738
+ if (data.options.placement !== data.placement) {
3739
+ _this4._handlePopperPlacementChange(data);
3686
3740
  }
3687
- },
3688
- onUpdate: function onUpdate(data) {
3689
- return _this3._handlePopperPlacementChange(data);
3690
3741
  }
3691
3742
  };
3692
3743
  return _extends({}, defaultBsConfig, this.config.popperConfig);
3693
3744
  };
3694
3745
 
3695
3746
  _proto._addAttachmentClass = function _addAttachmentClass(attachment) {
3696
- this.getTipElement().classList.add(CLASS_PREFIX + "-" + attachment);
3697
- };
3698
-
3699
- _proto._getOffset = function _getOffset() {
3700
- var _this4 = this;
3701
-
3702
- var offset = {};
3703
-
3704
- if (typeof this.config.offset === 'function') {
3705
- offset.fn = function (data) {
3706
- data.offsets = _extends({}, data.offsets, _this4.config.offset(data.offsets, _this4.element) || {});
3707
- return data;
3708
- };
3709
- } else {
3710
- offset.offset = this.config.offset;
3711
- }
3712
-
3713
- return offset;
3747
+ this.getTipElement().classList.add(CLASS_PREFIX + "-" + this.updateAttachment(attachment));
3714
3748
  };
3715
3749
 
3716
3750
  _proto._getContainer = function _getContainer() {
@@ -3735,28 +3769,28 @@
3735
3769
  var triggers = this.config.trigger.split(' ');
3736
3770
  triggers.forEach(function (trigger) {
3737
3771
  if (trigger === 'click') {
3738
- EventHandler.on(_this5.element, _this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
3772
+ EventHandler.on(_this5._element, _this5.constructor.Event.CLICK, _this5.config.selector, function (event) {
3739
3773
  return _this5.toggle(event);
3740
3774
  });
3741
3775
  } else if (trigger !== TRIGGER_MANUAL) {
3742
3776
  var eventIn = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSEENTER : _this5.constructor.Event.FOCUSIN;
3743
3777
  var eventOut = trigger === TRIGGER_HOVER ? _this5.constructor.Event.MOUSELEAVE : _this5.constructor.Event.FOCUSOUT;
3744
- EventHandler.on(_this5.element, eventIn, _this5.config.selector, function (event) {
3778
+ EventHandler.on(_this5._element, eventIn, _this5.config.selector, function (event) {
3745
3779
  return _this5._enter(event);
3746
3780
  });
3747
- EventHandler.on(_this5.element, eventOut, _this5.config.selector, function (event) {
3781
+ EventHandler.on(_this5._element, eventOut, _this5.config.selector, function (event) {
3748
3782
  return _this5._leave(event);
3749
3783
  });
3750
3784
  }
3751
3785
  });
3752
3786
 
3753
3787
  this._hideModalHandler = function () {
3754
- if (_this5.element) {
3788
+ if (_this5._element) {
3755
3789
  _this5.hide();
3756
3790
  }
3757
3791
  };
3758
3792
 
3759
- EventHandler.on(this.element.closest("." + CLASS_NAME_MODAL), 'hide.bs.modal', this._hideModalHandler);
3793
+ EventHandler.on(this._element.closest("." + CLASS_NAME_MODAL), 'hide.bs.modal', this._hideModalHandler);
3760
3794
 
3761
3795
  if (this.config.selector) {
3762
3796
  this.config = _extends({}, this.config, {
@@ -3769,11 +3803,18 @@
3769
3803
  };
3770
3804
 
3771
3805
  _proto._fixTitle = function _fixTitle() {
3772
- var titleType = typeof this.element.getAttribute('data-original-title');
3806
+ var title = this._element.getAttribute('title');
3807
+
3808
+ var originalTitleType = typeof this._element.getAttribute('data-bs-original-title');
3809
+
3810
+ if (title || originalTitleType !== 'string') {
3811
+ this._element.setAttribute('data-bs-original-title', title || '');
3812
+
3813
+ if (title && !this._element.getAttribute('aria-label') && !this._element.textContent) {
3814
+ this._element.setAttribute('aria-label', title);
3815
+ }
3773
3816
 
3774
- if (this.element.getAttribute('title') || titleType !== 'string') {
3775
- this.element.setAttribute('data-original-title', this.element.getAttribute('title') || '');
3776
- this.element.setAttribute('title', '');
3817
+ this._element.setAttribute('title', '');
3777
3818
  }
3778
3819
  };
3779
3820
 
@@ -3853,9 +3894,9 @@
3853
3894
  };
3854
3895
 
3855
3896
  _proto._getConfig = function _getConfig(config) {
3856
- var dataAttributes = Manipulator.getDataAttributes(this.element);
3897
+ var dataAttributes = Manipulator.getDataAttributes(this._element);
3857
3898
  Object.keys(dataAttributes).forEach(function (dataAttr) {
3858
- if (DISALLOWED_ATTRIBUTES.indexOf(dataAttr) !== -1) {
3899
+ if (DISALLOWED_ATTRIBUTES.has(dataAttr)) {
3859
3900
  delete dataAttributes[dataAttr];
3860
3901
  }
3861
3902
  });
@@ -3918,26 +3959,17 @@
3918
3959
  };
3919
3960
 
3920
3961
  _proto._handlePopperPlacementChange = function _handlePopperPlacementChange(popperData) {
3921
- this.tip = popperData.instance.popper;
3922
-
3923
- this._cleanTipClass();
3924
-
3925
- this._addAttachmentClass(this._getAttachment(popperData.placement));
3926
- };
3927
-
3928
- _proto._fixTransition = function _fixTransition() {
3929
- var tip = this.getTipElement();
3930
- var initConfigAnimation = this.config.animation;
3962
+ var state = popperData.state;
3931
3963
 
3932
- if (tip.getAttribute('x-placement') !== null) {
3964
+ if (!state) {
3933
3965
  return;
3934
3966
  }
3935
3967
 
3936
- tip.classList.remove(CLASS_NAME_FADE$1);
3937
- this.config.animation = false;
3938
- this.hide();
3939
- this.show();
3940
- this.config.animation = initConfigAnimation;
3968
+ this.tip = state.elements.popper;
3969
+
3970
+ this._cleanTipClass();
3971
+
3972
+ this._addAttachmentClass(this._getAttachment(state.placement));
3941
3973
  } // Static
3942
3974
  ;
3943
3975
 
@@ -3965,16 +3997,7 @@
3965
3997
  });
3966
3998
  };
3967
3999
 
3968
- Tooltip.getInstance = function getInstance(element) {
3969
- return Data.getData(element, DATA_KEY$6);
3970
- };
3971
-
3972
4000
  _createClass(Tooltip, null, [{
3973
- key: "VERSION",
3974
- get: function get() {
3975
- return VERSION$6;
3976
- }
3977
- }, {
3978
4001
  key: "Default",
3979
4002
  get: function get() {
3980
4003
  return Default$4;
@@ -4007,7 +4030,7 @@
4007
4030
  }]);
4008
4031
 
4009
4032
  return Tooltip;
4010
- }();
4033
+ }(BaseComponent);
4011
4034
  /**
4012
4035
  * ------------------------------------------------------------------------
4013
4036
  * jQuery
@@ -4039,7 +4062,6 @@
4039
4062
  */
4040
4063
 
4041
4064
  var NAME$7 = 'popover';
4042
- var VERSION$7 = '5.0.0-alpha3';
4043
4065
  var DATA_KEY$7 = 'bs.popover';
4044
4066
  var EVENT_KEY$7 = "." + DATA_KEY$7;
4045
4067
  var CLASS_PREFIX$1 = 'bs-popover';
@@ -4049,7 +4071,7 @@
4049
4071
  placement: 'right',
4050
4072
  trigger: 'click',
4051
4073
  content: '',
4052
- template: '<div class="popover" role="tooltip">' + '<div class="popover-arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>'
4074
+ template: '<div class="popover" role="tooltip">' + '<div class="popover-arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div>' + '</div>'
4053
4075
  });
4054
4076
 
4055
4077
  var DefaultType$5 = _extends({}, Tooltip.DefaultType, {
@@ -4100,7 +4122,7 @@
4100
4122
  var content = this._getContent();
4101
4123
 
4102
4124
  if (typeof content === 'function') {
4103
- content = content.call(this.element);
4125
+ content = content.call(this._element);
4104
4126
  }
4105
4127
 
4106
4128
  this.setElementContent(SelectorEngine.findOne(SELECTOR_CONTENT, tip), content);
@@ -4109,11 +4131,11 @@
4109
4131
  ;
4110
4132
 
4111
4133
  _proto._addAttachmentClass = function _addAttachmentClass(attachment) {
4112
- this.getTipElement().classList.add(CLASS_PREFIX$1 + "-" + attachment);
4134
+ this.getTipElement().classList.add(CLASS_PREFIX$1 + "-" + this.updateAttachment(attachment));
4113
4135
  };
4114
4136
 
4115
4137
  _proto._getContent = function _getContent() {
4116
- return this.element.getAttribute('data-content') || this.config.content;
4138
+ return this._element.getAttribute('data-bs-content') || this.config.content;
4117
4139
  };
4118
4140
 
4119
4141
  _proto._cleanTipClass = function _cleanTipClass() {
@@ -4155,18 +4177,9 @@
4155
4177
  });
4156
4178
  };
4157
4179
 
4158
- Popover.getInstance = function getInstance(element) {
4159
- return Data.getData(element, DATA_KEY$7);
4160
- };
4161
-
4162
4180
  _createClass(Popover, null, [{
4163
- key: "VERSION",
4164
- // Getters
4165
- get: function get() {
4166
- return VERSION$7;
4167
- }
4168
- }, {
4169
4181
  key: "Default",
4182
+ // Getters
4170
4183
  get: function get() {
4171
4184
  return Default$5;
4172
4185
  }
@@ -4230,7 +4243,6 @@
4230
4243
  */
4231
4244
 
4232
4245
  var NAME$8 = 'scrollspy';
4233
- var VERSION$8 = '5.0.0-alpha3';
4234
4246
  var DATA_KEY$8 = 'bs.scrollspy';
4235
4247
  var EVENT_KEY$8 = "." + DATA_KEY$8;
4236
4248
  var DATA_API_KEY$6 = '.data-api';
@@ -4249,7 +4261,7 @@
4249
4261
  var EVENT_LOAD_DATA_API$1 = "load" + EVENT_KEY$8 + DATA_API_KEY$6;
4250
4262
  var CLASS_NAME_DROPDOWN_ITEM = 'dropdown-item';
4251
4263
  var CLASS_NAME_ACTIVE$2 = 'active';
4252
- var SELECTOR_DATA_SPY = '[data-spy="scroll"]';
4264
+ var SELECTOR_DATA_SPY = '[data-bs-spy="scroll"]';
4253
4265
  var SELECTOR_NAV_LIST_GROUP = '.nav, .list-group';
4254
4266
  var SELECTOR_NAV_LINKS = '.nav-link';
4255
4267
  var SELECTOR_NAV_ITEMS = '.nav-item';
@@ -4264,26 +4276,29 @@
4264
4276
  * ------------------------------------------------------------------------
4265
4277
  */
4266
4278
 
4267
- var ScrollSpy = /*#__PURE__*/function () {
4268
- function ScrollSpy(element, config) {
4269
- var _this = this;
4279
+ var ScrollSpy = /*#__PURE__*/function (_BaseComponent) {
4280
+ _inheritsLoose(ScrollSpy, _BaseComponent);
4270
4281
 
4271
- this._element = element;
4272
- this._scrollElement = element.tagName === 'BODY' ? window : element;
4273
- this._config = this._getConfig(config);
4274
- this._selector = this._config.target + " " + SELECTOR_NAV_LINKS + ", " + this._config.target + " " + SELECTOR_LIST_ITEMS + ", " + this._config.target + " ." + CLASS_NAME_DROPDOWN_ITEM;
4275
- this._offsets = [];
4276
- this._targets = [];
4277
- this._activeTarget = null;
4278
- this._scrollHeight = 0;
4279
- EventHandler.on(this._scrollElement, EVENT_SCROLL, function (event) {
4282
+ function ScrollSpy(element, config) {
4283
+ var _this;
4284
+
4285
+ _this = _BaseComponent.call(this, element) || this;
4286
+ _this._scrollElement = element.tagName === 'BODY' ? window : element;
4287
+ _this._config = _this._getConfig(config);
4288
+ _this._selector = _this._config.target + " " + SELECTOR_NAV_LINKS + ", " + _this._config.target + " " + SELECTOR_LIST_ITEMS + ", " + _this._config.target + " ." + CLASS_NAME_DROPDOWN_ITEM;
4289
+ _this._offsets = [];
4290
+ _this._targets = [];
4291
+ _this._activeTarget = null;
4292
+ _this._scrollHeight = 0;
4293
+ EventHandler.on(_this._scrollElement, EVENT_SCROLL, function (event) {
4280
4294
  return _this._process(event);
4281
4295
  });
4282
- this.refresh();
4283
4296
 
4284
- this._process();
4297
+ _this.refresh();
4298
+
4299
+ _this._process();
4285
4300
 
4286
- Data.setData(element, DATA_KEY$8, this);
4301
+ return _this;
4287
4302
  } // Getters
4288
4303
 
4289
4304
 
@@ -4325,9 +4340,9 @@
4325
4340
  };
4326
4341
 
4327
4342
  _proto.dispose = function dispose() {
4328
- Data.removeData(this._element, DATA_KEY$8);
4343
+ _BaseComponent.prototype.dispose.call(this);
4344
+
4329
4345
  EventHandler.off(this._scrollElement, EVENT_KEY$8);
4330
- this._element = null;
4331
4346
  this._scrollElement = null;
4332
4347
  this._config = null;
4333
4348
  this._selector = null;
@@ -4412,7 +4427,7 @@
4412
4427
  this._clear();
4413
4428
 
4414
4429
  var queries = this._selector.split(',').map(function (selector) {
4415
- return selector + "[data-target=\"" + target + "\"]," + selector + "[href=\"" + target + "\"]";
4430
+ return selector + "[data-bs-target=\"" + target + "\"]," + selector + "[href=\"" + target + "\"]";
4416
4431
  });
4417
4432
 
4418
4433
  var link = SelectorEngine.findOne(queries.join(','));
@@ -4472,24 +4487,20 @@
4472
4487
  });
4473
4488
  };
4474
4489
 
4475
- ScrollSpy.getInstance = function getInstance(element) {
4476
- return Data.getData(element, DATA_KEY$8);
4477
- };
4478
-
4479
4490
  _createClass(ScrollSpy, null, [{
4480
- key: "VERSION",
4491
+ key: "Default",
4481
4492
  get: function get() {
4482
- return VERSION$8;
4493
+ return Default$6;
4483
4494
  }
4484
4495
  }, {
4485
- key: "Default",
4496
+ key: "DATA_KEY",
4486
4497
  get: function get() {
4487
- return Default$6;
4498
+ return DATA_KEY$8;
4488
4499
  }
4489
4500
  }]);
4490
4501
 
4491
4502
  return ScrollSpy;
4492
- }();
4503
+ }(BaseComponent);
4493
4504
  /**
4494
4505
  * ------------------------------------------------------------------------
4495
4506
  * Data Api implementation
@@ -4532,7 +4543,6 @@
4532
4543
  */
4533
4544
 
4534
4545
  var NAME$9 = 'tab';
4535
- var VERSION$9 = '5.0.0-alpha3';
4536
4546
  var DATA_KEY$9 = 'bs.tab';
4537
4547
  var EVENT_KEY$9 = "." + DATA_KEY$9;
4538
4548
  var DATA_API_KEY$7 = '.data-api';
@@ -4550,7 +4560,7 @@
4550
4560
  var SELECTOR_NAV_LIST_GROUP$1 = '.nav, .list-group';
4551
4561
  var SELECTOR_ACTIVE$1 = '.active';
4552
4562
  var SELECTOR_ACTIVE_UL = ':scope > li > .active';
4553
- var SELECTOR_DATA_TOGGLE$4 = '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]';
4563
+ var SELECTOR_DATA_TOGGLE$4 = '[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]';
4554
4564
  var SELECTOR_DROPDOWN_TOGGLE$1 = '.dropdown-toggle';
4555
4565
  var SELECTOR_DROPDOWN_ACTIVE_CHILD = ':scope > .dropdown-menu .active';
4556
4566
  /**
@@ -4559,12 +4569,12 @@
4559
4569
  * ------------------------------------------------------------------------
4560
4570
  */
4561
4571
 
4562
- var Tab = /*#__PURE__*/function () {
4563
- function Tab(element) {
4564
- this._element = element;
4565
- Data.setData(this._element, DATA_KEY$9, this);
4566
- } // Getters
4572
+ var Tab = /*#__PURE__*/function (_BaseComponent) {
4573
+ _inheritsLoose(Tab, _BaseComponent);
4567
4574
 
4575
+ function Tab() {
4576
+ return _BaseComponent.apply(this, arguments) || this;
4577
+ }
4568
4578
 
4569
4579
  var _proto = Tab.prototype;
4570
4580
 
@@ -4619,11 +4629,6 @@
4619
4629
  } else {
4620
4630
  complete();
4621
4631
  }
4622
- };
4623
-
4624
- _proto.dispose = function dispose() {
4625
- Data.removeData(this._element, DATA_KEY$9);
4626
- this._element = null;
4627
4632
  } // Private
4628
4633
  ;
4629
4634
 
@@ -4706,19 +4711,16 @@
4706
4711
  });
4707
4712
  };
4708
4713
 
4709
- Tab.getInstance = function getInstance(element) {
4710
- return Data.getData(element, DATA_KEY$9);
4711
- };
4712
-
4713
4714
  _createClass(Tab, null, [{
4714
- key: "VERSION",
4715
+ key: "DATA_KEY",
4716
+ // Getters
4715
4717
  get: function get() {
4716
- return VERSION$9;
4718
+ return DATA_KEY$9;
4717
4719
  }
4718
4720
  }]);
4719
4721
 
4720
4722
  return Tab;
4721
- }();
4723
+ }(BaseComponent);
4722
4724
  /**
4723
4725
  * ------------------------------------------------------------------------
4724
4726
  * Data Api implementation
@@ -4761,7 +4763,6 @@
4761
4763
  */
4762
4764
 
4763
4765
  var NAME$a = 'toast';
4764
- var VERSION$a = '5.0.0-alpha3';
4765
4766
  var DATA_KEY$a = 'bs.toast';
4766
4767
  var EVENT_KEY$a = "." + DATA_KEY$a;
4767
4768
  var EVENT_CLICK_DISMISS$1 = "click.dismiss" + EVENT_KEY$a;
@@ -4783,22 +4784,26 @@
4783
4784
  autohide: true,
4784
4785
  delay: 5000
4785
4786
  };
4786
- var SELECTOR_DATA_DISMISS$1 = '[data-dismiss="toast"]';
4787
+ var SELECTOR_DATA_DISMISS$1 = '[data-bs-dismiss="toast"]';
4787
4788
  /**
4788
4789
  * ------------------------------------------------------------------------
4789
4790
  * Class Definition
4790
4791
  * ------------------------------------------------------------------------
4791
4792
  */
4792
4793
 
4793
- var Toast = /*#__PURE__*/function () {
4794
+ var Toast = /*#__PURE__*/function (_BaseComponent) {
4795
+ _inheritsLoose(Toast, _BaseComponent);
4796
+
4794
4797
  function Toast(element, config) {
4795
- this._element = element;
4796
- this._config = this._getConfig(config);
4797
- this._timeout = null;
4798
+ var _this;
4798
4799
 
4799
- this._setListeners();
4800
+ _this = _BaseComponent.call(this, element) || this;
4801
+ _this._config = _this._getConfig(config);
4802
+ _this._timeout = null;
4800
4803
 
4801
- Data.setData(element, DATA_KEY$a, this);
4804
+ _this._setListeners();
4805
+
4806
+ return _this;
4802
4807
  } // Getters
4803
4808
 
4804
4809
 
@@ -4806,7 +4811,7 @@
4806
4811
 
4807
4812
  // Public
4808
4813
  _proto.show = function show() {
4809
- var _this = this;
4814
+ var _this2 = this;
4810
4815
 
4811
4816
  var showEvent = EventHandler.trigger(this._element, EVENT_SHOW$4);
4812
4817
 
@@ -4821,16 +4826,16 @@
4821
4826
  }
4822
4827
 
4823
4828
  var complete = function complete() {
4824
- _this._element.classList.remove(CLASS_NAME_SHOWING);
4829
+ _this2._element.classList.remove(CLASS_NAME_SHOWING);
4825
4830
 
4826
- _this._element.classList.add(CLASS_NAME_SHOW$6);
4831
+ _this2._element.classList.add(CLASS_NAME_SHOW$6);
4827
4832
 
4828
- EventHandler.trigger(_this._element, EVENT_SHOWN$4);
4833
+ EventHandler.trigger(_this2._element, EVENT_SHOWN$4);
4829
4834
 
4830
- if (_this._config.autohide) {
4831
- _this._timeout = setTimeout(function () {
4832
- _this.hide();
4833
- }, _this._config.delay);
4835
+ if (_this2._config.autohide) {
4836
+ _this2._timeout = setTimeout(function () {
4837
+ _this2.hide();
4838
+ }, _this2._config.delay);
4834
4839
  }
4835
4840
  };
4836
4841
 
@@ -4850,7 +4855,7 @@
4850
4855
  };
4851
4856
 
4852
4857
  _proto.hide = function hide() {
4853
- var _this2 = this;
4858
+ var _this3 = this;
4854
4859
 
4855
4860
  if (!this._element.classList.contains(CLASS_NAME_SHOW$6)) {
4856
4861
  return;
@@ -4863,9 +4868,9 @@
4863
4868
  }
4864
4869
 
4865
4870
  var complete = function complete() {
4866
- _this2._element.classList.add(CLASS_NAME_HIDE);
4871
+ _this3._element.classList.add(CLASS_NAME_HIDE);
4867
4872
 
4868
- EventHandler.trigger(_this2._element, EVENT_HIDDEN$4);
4873
+ EventHandler.trigger(_this3._element, EVENT_HIDDEN$4);
4869
4874
  };
4870
4875
 
4871
4876
  this._element.classList.remove(CLASS_NAME_SHOW$6);
@@ -4887,8 +4892,9 @@
4887
4892
  }
4888
4893
 
4889
4894
  EventHandler.off(this._element, EVENT_CLICK_DISMISS$1);
4890
- Data.removeData(this._element, DATA_KEY$a);
4891
- this._element = null;
4895
+
4896
+ _BaseComponent.prototype.dispose.call(this);
4897
+
4892
4898
  this._config = null;
4893
4899
  } // Private
4894
4900
  ;
@@ -4900,10 +4906,10 @@
4900
4906
  };
4901
4907
 
4902
4908
  _proto._setListeners = function _setListeners() {
4903
- var _this3 = this;
4909
+ var _this4 = this;
4904
4910
 
4905
4911
  EventHandler.on(this._element, EVENT_CLICK_DISMISS$1, SELECTOR_DATA_DISMISS$1, function () {
4906
- return _this3.hide();
4912
+ return _this4.hide();
4907
4913
  });
4908
4914
  };
4909
4915
 
@@ -4933,16 +4939,7 @@
4933
4939
  });
4934
4940
  };
4935
4941
 
4936
- Toast.getInstance = function getInstance(element) {
4937
- return Data.getData(element, DATA_KEY$a);
4938
- };
4939
-
4940
4942
  _createClass(Toast, null, [{
4941
- key: "VERSION",
4942
- get: function get() {
4943
- return VERSION$a;
4944
- }
4945
- }, {
4946
4943
  key: "DefaultType",
4947
4944
  get: function get() {
4948
4945
  return DefaultType$7;
@@ -4952,10 +4949,15 @@
4952
4949
  get: function get() {
4953
4950
  return Default$7;
4954
4951
  }
4952
+ }, {
4953
+ key: "DATA_KEY",
4954
+ get: function get() {
4955
+ return DATA_KEY$a;
4956
+ }
4955
4957
  }]);
4956
4958
 
4957
4959
  return Toast;
4958
- }();
4960
+ }(BaseComponent);
4959
4961
  /**
4960
4962
  * ------------------------------------------------------------------------
4961
4963
  * jQuery
@@ -4982,7 +4984,7 @@
4982
4984
 
4983
4985
  /**
4984
4986
  * --------------------------------------------------------------------------
4985
- * Bootstrap (v5.0.0-alpha3): index.umd.js
4987
+ * Bootstrap (v5.0.0-beta1): index.umd.js
4986
4988
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
4987
4989
  * --------------------------------------------------------------------------
4988
4990
  */