CoreFiles by mySites.guru
alert.min.js1 lines, 979 bytes, from Joomla_5.4.2-Stable-Full_Package.zip
Raw History Compare with 5.4.1
md5
5c508c47e6de561c4cd406b7ef6f227e
sha1
45966f67091f06dae1fc68231cab9fa7af6fab09
sha256
f709ef3a5b3d6f5c1b05655052d76946c97e02daeca30d5832dd88358e9da277
import{e as a,d as i,B as l,E as n}from"./dom.min.js?5.3.8";const c="alert",E="bs.alert",r=`.${E}`,d=`close${r}`,m=`closed${r}`,h="fade",_="show";class s extends l{static get NAME(){return c}close(){if(n.trigger(this._element,d).defaultPrevented)return;this._element.classList.remove(_);const t=this._element.classList.contains(h);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),n.trigger(this._element,m),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=s.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}if(a(s,"close"),i(s),window.bootstrap=window.bootstrap||{},window.bootstrap.Alert=s,Joomla&&Joomla.getOptions){const o=Joomla.getOptions("bootstrap.alert");o&&o.length&&o.forEach(e=>{document.querySelectorAll(e).forEach(t=>new window.bootstrap.Alert(t))})}export{s as A};

The same content is in 70 releases, Joomla 5.4.0-rc1 to 6.3.0-alpha1. See them all, or every version of this file.