CoreFiles by mySites.guru
alert.min.js1 lines, 1,262 bytes, from Joomla_4.0.6-Stable-Full_Package.zip
Raw History Compare with 4.0.5
md5
b4b06b66f1078136415ff2157cc372f1
sha1
0af095a779ac2810ef2c2950a6544feb0166bf80
sha256
c4c232ca1faa8fb0d630a5e4bea4d7cc32e0758a10bdf2d763294971bbcb4ed2
import{e as enableDismissTrigger,d as defineJQueryPlugin,B as BaseComponent,E as EventHandler}from"./dom.min.js?5.1.2";const NAME="alert",DATA_KEY="bs.alert",EVENT_KEY=".bs.alert",EVENT_CLOSE="close.bs.alert",EVENT_CLOSED="closed.bs.alert",CLASS_NAME_FADE="fade",CLASS_NAME_SHOW="show";class Alert extends BaseComponent{static get NAME(){return NAME}close(){if(EventHandler.trigger(this._element,EVENT_CLOSE).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),EventHandler.trigger(this._element,EVENT_CLOSED),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=Alert.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}if(enableDismissTrigger(Alert,"close"),defineJQueryPlugin(Alert),window.bootstrap=window.bootstrap||{},window.bootstrap.Alert=Alert,Joomla&&Joomla.getOptions){const e=Joomla.getOptions("bootstrap.alert");e&&e.length&&e.forEach((e=>{Array.from(document.querySelectorAll(e)).map((e=>new window.bootstrap.Alert(e)))}))}export{Alert as A};

The same content is in 6 releases, Joomla 4.0.6-rc1 to 4.1.0-rc1. See them all, or every version of this file.