CoreFiles by mySites.guru
alert.min.js1 lines, 1,638 bytes, from Joomla_4.0.4-rc1-Release_Candidate-Full_Package.zip
Raw History Compare with 4.0.3-rc
md5
5fdc375e60eec0602a2e4e6d4357c1f7
sha1
1d9e8e4273caea149b7e3b55bba122c99221515b
sha256
2370aa61a6a4a41eb1ba1cf4aee98be2eac5ce4b030a73cea843ca2e64229eb5
import{E as EventHandler,i as isDisabled,g as getElementFromSelector,B as BaseComponent,d as defineJQueryPlugin}from"./dom.min.js?1634492367";const enableDismissTrigger=(e,t="hide")=>{const s=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;EventHandler.on(document,s,`[data-bs-dismiss="${r}"]`,(function(s){if(["A","AREA"].includes(this.tagName)&&s.preventDefault(),isDisabled(this))return;const n=getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(n)[t]()}))},NAME="alert",DATA_KEY="bs.alert",EVENT_KEY=".bs.alert",EVENT_CLOSE="close.bs.alert",EVENT_CLOSED="closed.bs.alert",CLASS_NAME_FADE="fade",CLASS_NAME_SHOW="show";class Alert extends BaseComponent{static get NAME(){return NAME}close(){if(EventHandler.trigger(this._element,EVENT_CLOSE).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),EventHandler.trigger(this._element,EVENT_CLOSED),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=Alert.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}if(enableDismissTrigger(Alert,"close"),defineJQueryPlugin(Alert),window.bootstrap=window.bootstrap||{},window.bootstrap.Alert=Alert,Joomla&&Joomla.getOptions){const e=Joomla.getOptions("bootstrap.alert");e&&e.length&&e.forEach((e=>{Array.from(document.querySelectorAll(e)).map((e=>new window.bootstrap.Alert(e)))}))}export{Alert as A,enableDismissTrigger as e};

No other release has this exact content. See every version of this file.