modal.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685
  1. /*!
  2. * Bootstrap modal.js v4.4.1 (https://getbootstrap.com/)
  3. * Copyright 2011-2019 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  4. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  5. */
  6. (function (global, factory) {
  7. typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery'), require('./util.js')) :
  8. typeof define === 'function' && define.amd ? define(['jquery', './util.js'], factory) :
  9. (global = global || self, global.Modal = factory(global.jQuery, global.Util));
  10. }(this, (function ($, Util) { 'use strict';
  11. $ = $ && $.hasOwnProperty('default') ? $['default'] : $;
  12. Util = Util && Util.hasOwnProperty('default') ? Util['default'] : Util;
  13. function _defineProperties(target, props) {
  14. for (var i = 0; i < props.length; i++) {
  15. var descriptor = props[i];
  16. descriptor.enumerable = descriptor.enumerable || false;
  17. descriptor.configurable = true;
  18. if ("value" in descriptor) descriptor.writable = true;
  19. Object.defineProperty(target, descriptor.key, descriptor);
  20. }
  21. }
  22. function _createClass(Constructor, protoProps, staticProps) {
  23. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  24. if (staticProps) _defineProperties(Constructor, staticProps);
  25. return Constructor;
  26. }
  27. function _defineProperty(obj, key, value) {
  28. if (key in obj) {
  29. Object.defineProperty(obj, key, {
  30. value: value,
  31. enumerable: true,
  32. configurable: true,
  33. writable: true
  34. });
  35. } else {
  36. obj[key] = value;
  37. }
  38. return obj;
  39. }
  40. function ownKeys(object, enumerableOnly) {
  41. var keys = Object.keys(object);
  42. if (Object.getOwnPropertySymbols) {
  43. var symbols = Object.getOwnPropertySymbols(object);
  44. if (enumerableOnly) symbols = symbols.filter(function (sym) {
  45. return Object.getOwnPropertyDescriptor(object, sym).enumerable;
  46. });
  47. keys.push.apply(keys, symbols);
  48. }
  49. return keys;
  50. }
  51. function _objectSpread2(target) {
  52. for (var i = 1; i < arguments.length; i++) {
  53. var source = arguments[i] != null ? arguments[i] : {};
  54. if (i % 2) {
  55. ownKeys(Object(source), true).forEach(function (key) {
  56. _defineProperty(target, key, source[key]);
  57. });
  58. } else if (Object.getOwnPropertyDescriptors) {
  59. Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
  60. } else {
  61. ownKeys(Object(source)).forEach(function (key) {
  62. Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
  63. });
  64. }
  65. }
  66. return target;
  67. }
  68. /**
  69. * ------------------------------------------------------------------------
  70. * Constants
  71. * ------------------------------------------------------------------------
  72. */
  73. var NAME = 'modal';
  74. var VERSION = '4.4.1';
  75. var DATA_KEY = 'bs.modal';
  76. var EVENT_KEY = "." + DATA_KEY;
  77. var DATA_API_KEY = '.data-api';
  78. var JQUERY_NO_CONFLICT = $.fn[NAME];
  79. var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key
  80. var Default = {
  81. backdrop: true,
  82. keyboard: true,
  83. focus: true,
  84. show: true
  85. };
  86. var DefaultType = {
  87. backdrop: '(boolean|string)',
  88. keyboard: 'boolean',
  89. focus: 'boolean',
  90. show: 'boolean'
  91. };
  92. var Event = {
  93. HIDE: "hide" + EVENT_KEY,
  94. HIDE_PREVENTED: "hidePrevented" + EVENT_KEY,
  95. HIDDEN: "hidden" + EVENT_KEY,
  96. SHOW: "show" + EVENT_KEY,
  97. SHOWN: "shown" + EVENT_KEY,
  98. FOCUSIN: "focusin" + EVENT_KEY,
  99. RESIZE: "resize" + EVENT_KEY,
  100. CLICK_DISMISS: "click.dismiss" + EVENT_KEY,
  101. KEYDOWN_DISMISS: "keydown.dismiss" + EVENT_KEY,
  102. MOUSEUP_DISMISS: "mouseup.dismiss" + EVENT_KEY,
  103. MOUSEDOWN_DISMISS: "mousedown.dismiss" + EVENT_KEY,
  104. CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY
  105. };
  106. var ClassName = {
  107. SCROLLABLE: 'modal-dialog-scrollable',
  108. SCROLLBAR_MEASURER: 'modal-scrollbar-measure',
  109. BACKDROP: 'modal-backdrop',
  110. OPEN: 'modal-open',
  111. FADE: 'fade',
  112. SHOW: 'show',
  113. STATIC: 'modal-static'
  114. };
  115. var Selector = {
  116. DIALOG: '.modal-dialog',
  117. MODAL_BODY: '.modal-body',
  118. DATA_TOGGLE: '[data-toggle="modal"]',
  119. DATA_DISMISS: '[data-dismiss="modal"]',
  120. FIXED_CONTENT: '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top',
  121. STICKY_CONTENT: '.sticky-top'
  122. };
  123. /**
  124. * ------------------------------------------------------------------------
  125. * Class Definition
  126. * ------------------------------------------------------------------------
  127. */
  128. var Modal =
  129. /*#__PURE__*/
  130. function () {
  131. function Modal(element, config) {
  132. this._config = this._getConfig(config);
  133. this._element = element;
  134. this._dialog = element.querySelector(Selector.DIALOG);
  135. this._backdrop = null;
  136. this._isShown = false;
  137. this._isBodyOverflowing = false;
  138. this._ignoreBackdropClick = false;
  139. this._isTransitioning = false;
  140. this._scrollbarWidth = 0;
  141. } // Getters
  142. var _proto = Modal.prototype;
  143. // Public
  144. _proto.toggle = function toggle(relatedTarget) {
  145. return this._isShown ? this.hide() : this.show(relatedTarget);
  146. };
  147. _proto.show = function show(relatedTarget) {
  148. var _this = this;
  149. if (this._isShown || this._isTransitioning) {
  150. return;
  151. }
  152. if ($(this._element).hasClass(ClassName.FADE)) {
  153. this._isTransitioning = true;
  154. }
  155. var showEvent = $.Event(Event.SHOW, {
  156. relatedTarget: relatedTarget
  157. });
  158. $(this._element).trigger(showEvent);
  159. if (this._isShown || showEvent.isDefaultPrevented()) {
  160. return;
  161. }
  162. this._isShown = true;
  163. this._checkScrollbar();
  164. this._setScrollbar();
  165. this._adjustDialog();
  166. this._setEscapeEvent();
  167. this._setResizeEvent();
  168. $(this._element).on(Event.CLICK_DISMISS, Selector.DATA_DISMISS, function (event) {
  169. return _this.hide(event);
  170. });
  171. $(this._dialog).on(Event.MOUSEDOWN_DISMISS, function () {
  172. $(_this._element).one(Event.MOUSEUP_DISMISS, function (event) {
  173. if ($(event.target).is(_this._element)) {
  174. _this._ignoreBackdropClick = true;
  175. }
  176. });
  177. });
  178. this._showBackdrop(function () {
  179. return _this._showElement(relatedTarget);
  180. });
  181. };
  182. _proto.hide = function hide(event) {
  183. var _this2 = this;
  184. if (event) {
  185. event.preventDefault();
  186. }
  187. if (!this._isShown || this._isTransitioning) {
  188. return;
  189. }
  190. var hideEvent = $.Event(Event.HIDE);
  191. $(this._element).trigger(hideEvent);
  192. if (!this._isShown || hideEvent.isDefaultPrevented()) {
  193. return;
  194. }
  195. this._isShown = false;
  196. var transition = $(this._element).hasClass(ClassName.FADE);
  197. if (transition) {
  198. this._isTransitioning = true;
  199. }
  200. this._setEscapeEvent();
  201. this._setResizeEvent();
  202. $(document).off(Event.FOCUSIN);
  203. $(this._element).removeClass(ClassName.SHOW);
  204. $(this._element).off(Event.CLICK_DISMISS);
  205. $(this._dialog).off(Event.MOUSEDOWN_DISMISS);
  206. if (transition) {
  207. var transitionDuration = Util.getTransitionDurationFromElement(this._element);
  208. $(this._element).one(Util.TRANSITION_END, function (event) {
  209. return _this2._hideModal(event);
  210. }).emulateTransitionEnd(transitionDuration);
  211. } else {
  212. this._hideModal();
  213. }
  214. };
  215. _proto.dispose = function dispose() {
  216. [window, this._element, this._dialog].forEach(function (htmlElement) {
  217. return $(htmlElement).off(EVENT_KEY);
  218. });
  219. /**
  220. * `document` has 2 events `Event.FOCUSIN` and `Event.CLICK_DATA_API`
  221. * Do not move `document` in `htmlElements` array
  222. * It will remove `Event.CLICK_DATA_API` event that should remain
  223. */
  224. $(document).off(Event.FOCUSIN);
  225. $.removeData(this._element, DATA_KEY);
  226. this._config = null;
  227. this._element = null;
  228. this._dialog = null;
  229. this._backdrop = null;
  230. this._isShown = null;
  231. this._isBodyOverflowing = null;
  232. this._ignoreBackdropClick = null;
  233. this._isTransitioning = null;
  234. this._scrollbarWidth = null;
  235. };
  236. _proto.handleUpdate = function handleUpdate() {
  237. this._adjustDialog();
  238. } // Private
  239. ;
  240. _proto._getConfig = function _getConfig(config) {
  241. config = _objectSpread2({}, Default, {}, config);
  242. Util.typeCheckConfig(NAME, config, DefaultType);
  243. return config;
  244. };
  245. _proto._triggerBackdropTransition = function _triggerBackdropTransition() {
  246. var _this3 = this;
  247. if (this._config.backdrop === 'static') {
  248. var hideEventPrevented = $.Event(Event.HIDE_PREVENTED);
  249. $(this._element).trigger(hideEventPrevented);
  250. if (hideEventPrevented.defaultPrevented) {
  251. return;
  252. }
  253. this._element.classList.add(ClassName.STATIC);
  254. var modalTransitionDuration = Util.getTransitionDurationFromElement(this._element);
  255. $(this._element).one(Util.TRANSITION_END, function () {
  256. _this3._element.classList.remove(ClassName.STATIC);
  257. }).emulateTransitionEnd(modalTransitionDuration);
  258. this._element.focus();
  259. } else {
  260. this.hide();
  261. }
  262. };
  263. _proto._showElement = function _showElement(relatedTarget) {
  264. var _this4 = this;
  265. var transition = $(this._element).hasClass(ClassName.FADE);
  266. var modalBody = this._dialog ? this._dialog.querySelector(Selector.MODAL_BODY) : null;
  267. if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {
  268. // Don't move modal's DOM position
  269. document.body.appendChild(this._element);
  270. }
  271. this._element.style.display = 'block';
  272. this._element.removeAttribute('aria-hidden');
  273. this._element.setAttribute('aria-modal', true);
  274. if ($(this._dialog).hasClass(ClassName.SCROLLABLE) && modalBody) {
  275. modalBody.scrollTop = 0;
  276. } else {
  277. this._element.scrollTop = 0;
  278. }
  279. if (transition) {
  280. Util.reflow(this._element);
  281. }
  282. $(this._element).addClass(ClassName.SHOW);
  283. if (this._config.focus) {
  284. this._enforceFocus();
  285. }
  286. var shownEvent = $.Event(Event.SHOWN, {
  287. relatedTarget: relatedTarget
  288. });
  289. var transitionComplete = function transitionComplete() {
  290. if (_this4._config.focus) {
  291. _this4._element.focus();
  292. }
  293. _this4._isTransitioning = false;
  294. $(_this4._element).trigger(shownEvent);
  295. };
  296. if (transition) {
  297. var transitionDuration = Util.getTransitionDurationFromElement(this._dialog);
  298. $(this._dialog).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(transitionDuration);
  299. } else {
  300. transitionComplete();
  301. }
  302. };
  303. _proto._enforceFocus = function _enforceFocus() {
  304. var _this5 = this;
  305. $(document).off(Event.FOCUSIN) // Guard against infinite focus loop
  306. .on(Event.FOCUSIN, function (event) {
  307. if (document !== event.target && _this5._element !== event.target && $(_this5._element).has(event.target).length === 0) {
  308. _this5._element.focus();
  309. }
  310. });
  311. };
  312. _proto._setEscapeEvent = function _setEscapeEvent() {
  313. var _this6 = this;
  314. if (this._isShown && this._config.keyboard) {
  315. $(this._element).on(Event.KEYDOWN_DISMISS, function (event) {
  316. if (event.which === ESCAPE_KEYCODE) {
  317. _this6._triggerBackdropTransition();
  318. }
  319. });
  320. } else if (!this._isShown) {
  321. $(this._element).off(Event.KEYDOWN_DISMISS);
  322. }
  323. };
  324. _proto._setResizeEvent = function _setResizeEvent() {
  325. var _this7 = this;
  326. if (this._isShown) {
  327. $(window).on(Event.RESIZE, function (event) {
  328. return _this7.handleUpdate(event);
  329. });
  330. } else {
  331. $(window).off(Event.RESIZE);
  332. }
  333. };
  334. _proto._hideModal = function _hideModal() {
  335. var _this8 = this;
  336. this._element.style.display = 'none';
  337. this._element.setAttribute('aria-hidden', true);
  338. this._element.removeAttribute('aria-modal');
  339. this._isTransitioning = false;
  340. this._showBackdrop(function () {
  341. $(document.body).removeClass(ClassName.OPEN);
  342. _this8._resetAdjustments();
  343. _this8._resetScrollbar();
  344. $(_this8._element).trigger(Event.HIDDEN);
  345. });
  346. };
  347. _proto._removeBackdrop = function _removeBackdrop() {
  348. if (this._backdrop) {
  349. $(this._backdrop).remove();
  350. this._backdrop = null;
  351. }
  352. };
  353. _proto._showBackdrop = function _showBackdrop(callback) {
  354. var _this9 = this;
  355. var animate = $(this._element).hasClass(ClassName.FADE) ? ClassName.FADE : '';
  356. if (this._isShown && this._config.backdrop) {
  357. this._backdrop = document.createElement('div');
  358. this._backdrop.className = ClassName.BACKDROP;
  359. if (animate) {
  360. this._backdrop.classList.add(animate);
  361. }
  362. $(this._backdrop).appendTo(document.body);
  363. $(this._element).on(Event.CLICK_DISMISS, function (event) {
  364. if (_this9._ignoreBackdropClick) {
  365. _this9._ignoreBackdropClick = false;
  366. return;
  367. }
  368. if (event.target !== event.currentTarget) {
  369. return;
  370. }
  371. _this9._triggerBackdropTransition();
  372. });
  373. if (animate) {
  374. Util.reflow(this._backdrop);
  375. }
  376. $(this._backdrop).addClass(ClassName.SHOW);
  377. if (!callback) {
  378. return;
  379. }
  380. if (!animate) {
  381. callback();
  382. return;
  383. }
  384. var backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop);
  385. $(this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(backdropTransitionDuration);
  386. } else if (!this._isShown && this._backdrop) {
  387. $(this._backdrop).removeClass(ClassName.SHOW);
  388. var callbackRemove = function callbackRemove() {
  389. _this9._removeBackdrop();
  390. if (callback) {
  391. callback();
  392. }
  393. };
  394. if ($(this._element).hasClass(ClassName.FADE)) {
  395. var _backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop);
  396. $(this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(_backdropTransitionDuration);
  397. } else {
  398. callbackRemove();
  399. }
  400. } else if (callback) {
  401. callback();
  402. }
  403. } // ----------------------------------------------------------------------
  404. // the following methods are used to handle overflowing modals
  405. // todo (fat): these should probably be refactored out of modal.js
  406. // ----------------------------------------------------------------------
  407. ;
  408. _proto._adjustDialog = function _adjustDialog() {
  409. var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
  410. if (!this._isBodyOverflowing && isModalOverflowing) {
  411. this._element.style.paddingLeft = this._scrollbarWidth + "px";
  412. }
  413. if (this._isBodyOverflowing && !isModalOverflowing) {
  414. this._element.style.paddingRight = this._scrollbarWidth + "px";
  415. }
  416. };
  417. _proto._resetAdjustments = function _resetAdjustments() {
  418. this._element.style.paddingLeft = '';
  419. this._element.style.paddingRight = '';
  420. };
  421. _proto._checkScrollbar = function _checkScrollbar() {
  422. var rect = document.body.getBoundingClientRect();
  423. this._isBodyOverflowing = rect.left + rect.right < window.innerWidth;
  424. this._scrollbarWidth = this._getScrollbarWidth();
  425. };
  426. _proto._setScrollbar = function _setScrollbar() {
  427. var _this10 = this;
  428. if (this._isBodyOverflowing) {
  429. // Note: DOMNode.style.paddingRight returns the actual value or '' if not set
  430. // while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set
  431. var fixedContent = [].slice.call(document.querySelectorAll(Selector.FIXED_CONTENT));
  432. var stickyContent = [].slice.call(document.querySelectorAll(Selector.STICKY_CONTENT)); // Adjust fixed content padding
  433. $(fixedContent).each(function (index, element) {
  434. var actualPadding = element.style.paddingRight;
  435. var calculatedPadding = $(element).css('padding-right');
  436. $(element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this10._scrollbarWidth + "px");
  437. }); // Adjust sticky content margin
  438. $(stickyContent).each(function (index, element) {
  439. var actualMargin = element.style.marginRight;
  440. var calculatedMargin = $(element).css('margin-right');
  441. $(element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this10._scrollbarWidth + "px");
  442. }); // Adjust body padding
  443. var actualPadding = document.body.style.paddingRight;
  444. var calculatedPadding = $(document.body).css('padding-right');
  445. $(document.body).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px");
  446. }
  447. $(document.body).addClass(ClassName.OPEN);
  448. };
  449. _proto._resetScrollbar = function _resetScrollbar() {
  450. // Restore fixed content padding
  451. var fixedContent = [].slice.call(document.querySelectorAll(Selector.FIXED_CONTENT));
  452. $(fixedContent).each(function (index, element) {
  453. var padding = $(element).data('padding-right');
  454. $(element).removeData('padding-right');
  455. element.style.paddingRight = padding ? padding : '';
  456. }); // Restore sticky content
  457. var elements = [].slice.call(document.querySelectorAll("" + Selector.STICKY_CONTENT));
  458. $(elements).each(function (index, element) {
  459. var margin = $(element).data('margin-right');
  460. if (typeof margin !== 'undefined') {
  461. $(element).css('margin-right', margin).removeData('margin-right');
  462. }
  463. }); // Restore body padding
  464. var padding = $(document.body).data('padding-right');
  465. $(document.body).removeData('padding-right');
  466. document.body.style.paddingRight = padding ? padding : '';
  467. };
  468. _proto._getScrollbarWidth = function _getScrollbarWidth() {
  469. // thx d.walsh
  470. var scrollDiv = document.createElement('div');
  471. scrollDiv.className = ClassName.SCROLLBAR_MEASURER;
  472. document.body.appendChild(scrollDiv);
  473. var scrollbarWidth = scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth;
  474. document.body.removeChild(scrollDiv);
  475. return scrollbarWidth;
  476. } // Static
  477. ;
  478. Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) {
  479. return this.each(function () {
  480. var data = $(this).data(DATA_KEY);
  481. var _config = _objectSpread2({}, Default, {}, $(this).data(), {}, typeof config === 'object' && config ? config : {});
  482. if (!data) {
  483. data = new Modal(this, _config);
  484. $(this).data(DATA_KEY, data);
  485. }
  486. if (typeof config === 'string') {
  487. if (typeof data[config] === 'undefined') {
  488. throw new TypeError("No method named \"" + config + "\"");
  489. }
  490. data[config](relatedTarget);
  491. } else if (_config.show) {
  492. data.show(relatedTarget);
  493. }
  494. });
  495. };
  496. _createClass(Modal, null, [{
  497. key: "VERSION",
  498. get: function get() {
  499. return VERSION;
  500. }
  501. }, {
  502. key: "Default",
  503. get: function get() {
  504. return Default;
  505. }
  506. }]);
  507. return Modal;
  508. }();
  509. /**
  510. * ------------------------------------------------------------------------
  511. * Data Api implementation
  512. * ------------------------------------------------------------------------
  513. */
  514. $(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
  515. var _this11 = this;
  516. var target;
  517. var selector = Util.getSelectorFromElement(this);
  518. if (selector) {
  519. target = document.querySelector(selector);
  520. }
  521. var config = $(target).data(DATA_KEY) ? 'toggle' : _objectSpread2({}, $(target).data(), {}, $(this).data());
  522. if (this.tagName === 'A' || this.tagName === 'AREA') {
  523. event.preventDefault();
  524. }
  525. var $target = $(target).one(Event.SHOW, function (showEvent) {
  526. if (showEvent.isDefaultPrevented()) {
  527. // Only register focus restorer if modal will actually get shown
  528. return;
  529. }
  530. $target.one(Event.HIDDEN, function () {
  531. if ($(_this11).is(':visible')) {
  532. _this11.focus();
  533. }
  534. });
  535. });
  536. Modal._jQueryInterface.call($(target), config, this);
  537. });
  538. /**
  539. * ------------------------------------------------------------------------
  540. * jQuery
  541. * ------------------------------------------------------------------------
  542. */
  543. $.fn[NAME] = Modal._jQueryInterface;
  544. $.fn[NAME].Constructor = Modal;
  545. $.fn[NAME].noConflict = function () {
  546. $.fn[NAME] = JQUERY_NO_CONFLICT;
  547. return Modal._jQueryInterface;
  548. };
  549. return Modal;
  550. })));
  551. //# sourceMappingURL=modal.js.map