CoreFiles by mySites.guru
alert.min.js1 lines, 1,577 bytes, from Joomla_4.0.0-rc6-Release_Candidate-Full_Package.zip
Raw History Compare with 4.0.0-rc5
md5
03d04dc1f2bfb9b3b2f66b1f928a0c84
sha1
e0966aa26ee22dbce90ad1dda5fb9ee3f74272d8
sha256
25b5ce9707b98f646aa51c212396d11e6bfdd255853d3e196c4b00ff9a3c82da
import{B as BaseComponent,g as getElementFromSelector,E as EventHandler,d as defineJQueryPlugin}from"./dom.min.js?1628632482";const NAME="alert",DATA_KEY="bs.alert",EVENT_KEY=".bs.alert",DATA_API_KEY=".data-api",SELECTOR_DISMISS='[data-bs-dismiss="alert"]',EVENT_CLOSE="close.bs.alert",EVENT_CLOSED="closed.bs.alert",EVENT_CLICK_DATA_API="click.bs.alert.data-api",CLASS_NAME_ALERT="alert",CLASS_NAME_FADE="fade",CLASS_NAME_SHOW="show";class Alert extends BaseComponent{static get NAME(){return NAME}close(e){const t=e?this._getRootElement(e):this._element,r=this._triggerCloseEvent(t);null===r||r.defaultPrevented||this._removeElement(t)}_getRootElement(e){return getElementFromSelector(e)||e.closest(".alert")}_triggerCloseEvent(e){return EventHandler.trigger(e,EVENT_CLOSE)}_removeElement(e){e.classList.remove("show");const t=e.classList.contains("fade");this._queueCallback((()=>this._destroyElement(e)),e,t)}_destroyElement(e){e.remove(),EventHandler.trigger(e,EVENT_CLOSED)}static jQueryInterface(e){return this.each((function(){const t=Alert.getOrCreateInstance(this);"close"===e&&t[e](this)}))}static handleDismiss(e){return function(t){t&&t.preventDefault(),e.close(this)}}}if(EventHandler.on(document,EVENT_CLICK_DATA_API,SELECTOR_DISMISS,Alert.handleDismiss(new Alert)),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};

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