CoreFiles by mySites.guru
alert.min.js1 lines, 979 bytes, from Joomla_5.4.0-beta3-Beta-Full_Package.zip
Raw History Compare with 5.4.0-beta2
md5
9e5d918662403e7c384c7400a9b167ab
sha1
f4bed231a9f2cd6967bd1afaa6f86b216a59164c
sha256
f4cb9069a61f065449cbc1e5311b98ab67243e996728f8795a5fea0688868371
import{e as a,d as i,B as l,E as n}from"./dom.min.js?5.3.7";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 6 releases, Joomla 5.4.0-beta1 to 6.0.0-beta3. See them all, or every version of this file.