CoreFiles by mySites.guru
alert.min.js1 lines, 979 bytes, from Joomla_5.2.0-beta2-Beta-Full_Package.zip
Raw History Compare with 5.2.0-beta1
md5
619f5a836777551aeb713f6884598411
sha1
4992ae2163487949f975fe901a72b517d56b5019
sha256
4308463f11cd6aee9c11bba59f368dd787e93b3e9ebcfb68de6721de006f7602
import{e as a,d as i,B as l,E as n}from"./dom.min.js?5.3.2";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 5 releases, Joomla 5.2.0-alpha1 to 5.2.0-beta2. See them all, or every version of this file.