CoreFiles by mySites.guru
alert.min.js1 lines, 979 bytes, from Joomla_5.2.3-Stable-Full_Package.zip
Raw History Compare with 5.2.2
md5
89c7b24e858588bca2e4d62539b7efc5
sha1
9185080ba88a908c7a4820ad72395511db9e97dd
sha256
1c1691ddee97ccf368ab5102cc6d0a7cf057e472736d9c5d9fcf8c7e190fc5f7
import{e as a,d as i,B as l,E as n}from"./dom.min.js?5.3.3";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 39 releases, Joomla 5.2.0-beta3 to 6.0.0-alpha3. See them all, or every version of this file.