PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` /** * -------------------------------------------------------------------------- * Bootstrap (v5.2.2): alert.js * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) * -------------------------------------------------------------------------- */ import { defineJQueryPlugin } from './util/index' import EventHandler from './dom/event-handler' import BaseComponent from './base-component' import { enableDismissTrigger } from './util/component-functions' /** * Constants */ const NAME = 'alert' const DATA_KEY = 'bs.alert' const EVENT_KEY = `.${DATA_KEY}` const EVENT_CLOSE = `close${EVENT_KEY}` const EVENT_CLOSED = `closed${EVENT_KEY}` const CLASS_NAME_FADE = 'fade' const CLASS_NAME_SHOW = 'show' /** * Class definition */ class Alert extends BaseComponent { // Getters static get NAME() { return NAME } // Public close() { const closeEvent = EventHandler.trigger(this._element, EVENT_CLOSE) if (closeEvent.defaultPrevented) { return } this._element.classList.remove(CLASS_NAME_SHOW) const isAnimated = this._element.classList.contains(CLASS_NAME_FADE) this._queueCallback(() => this._destroyElement(), this._element, isAnimated) } // Private _destroyElement() { this._element.remove() EventHandler.trigger(this._element, EVENT_CLOSED) this.dispose() } // Static static jQueryInterface(config) { return this.each(function () { const data = Alert.getOrCreateInstance(this) if (typeof config !== 'string') { return } if (data[config] === undefined || config.startsWith('_') || config === 'constructor') { throw new TypeError(`No method named "${config}"`) } data[config](this) }) } } /** * Data API implementation */ enableDismissTrigger(Alert, 'close') /** * jQuery */ defineJQueryPlugin(Alert) export default Alert