Spade
Mini Shell
| Directory:~$ /home/lmsyaran/public_html/joomla5/media/vendor/bootstrap/js/ |
| [Home] [System Details] [Kill Me] |
import{e as a,d as i,B as l,E as r}from"./dom.min.js?5.3.2";const
c="alert",m="bs.alert",n=`.${m}`,E=`close${n}`,d=`closed${n}`,h="fade",_="show";class
s extends l{static get NAME(){return
c}close(){if(r.trigger(this._element,E).defaultPrevented)return;this._element.classList.remove(_);const
t=this._element.classList.contains(h);this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),r.trigger(this._element,d),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=>{Array.from(document.querySelectorAll(e)).map(t=>new
window.bootstrap.Alert(t))})}export{s as A};