X7ROOT File Manager
Current Path:
/home/notabjze/narcev.com/media/vendor/bootstrap/js
home
/
notabjze
/
narcev.com
/
media
/
vendor
/
bootstrap
/
js
/
ðŸ“
..
📄
alert.js
(3.43 KB)
📄
alert.min.js
(1.54 KB)
📄
alert.min.js.gz
(745 B)
📄
bootstrap-es5.js
(351.6 KB)
📄
bootstrap-es5.min.js
(128.65 KB)
📄
bootstrap-es5.min.js.gz
(40.08 KB)
📄
button.js
(2.63 KB)
📄
button.min.js
(1.05 KB)
📄
button.min.js.gz
(576 B)
📄
carousel.js
(16.9 KB)
📄
carousel.min.js
(9.58 KB)
📄
carousel.min.js.gz
(3.03 KB)
📄
collapse.js
(10.57 KB)
📄
collapse.min.js
(5.7 KB)
📄
collapse.min.js.gz
(1.9 KB)
📄
dom.js
(23.64 KB)
📄
dom.min.js
(10.22 KB)
📄
dom.min.js.gz
(3.92 KB)
📄
dropdown.js
(15.03 KB)
📄
dropdown.min.js
(8.42 KB)
📄
dropdown.min.js.gz
(2.89 KB)
📄
modal.js
(23.12 KB)
📄
modal.min.js
(12.25 KB)
📄
modal.min.js.gz
(3.68 KB)
📄
offcanvas.js
(7.62 KB)
📄
offcanvas.min.js
(4.44 KB)
📄
offcanvas.min.js.gz
(1.61 KB)
📄
popover.js
(28.21 KB)
📄
popover.min.js
(16.15 KB)
📄
popover.min.js.gz
(4.88 KB)
📄
popper.js
(55.77 KB)
📄
popper.min.js
(23.09 KB)
📄
popper.min.js.gz
(7.28 KB)
📄
scrollspy.js
(8.69 KB)
📄
scrollspy.min.js
(4.89 KB)
📄
scrollspy.min.js.gz
(1.82 KB)
📄
tab.js
(8.08 KB)
📄
tab.min.js
(4.12 KB)
📄
tab.min.js.gz
(1.61 KB)
📄
toast.js
(6.4 KB)
📄
toast.min.js
(3.68 KB)
📄
toast.min.js.gz
(1.3 KB)
Editing: toast.min.js
import{B as BaseComponent,E as EventHandler,r as reflow,M as Manipulator,a as typeCheckConfig,d as defineJQueryPlugin}from"./dom.min.js?1629745661";const NAME="toast",DATA_KEY="bs.toast",EVENT_KEY=".bs.toast",EVENT_CLICK_DISMISS="click.dismiss.bs.toast",EVENT_MOUSEOVER="mouseover.bs.toast",EVENT_MOUSEOUT="mouseout.bs.toast",EVENT_FOCUSIN="focusin.bs.toast",EVENT_FOCUSOUT="focusout.bs.toast",EVENT_HIDE="hide.bs.toast",EVENT_HIDDEN="hidden.bs.toast",EVENT_SHOW="show.bs.toast",EVENT_SHOWN="shown.bs.toast",CLASS_NAME_FADE="fade",CLASS_NAME_HIDE="hide",CLASS_NAME_SHOW="show",CLASS_NAME_SHOWING="showing",DefaultType={animation:"boolean",autohide:"boolean",delay:"number"},Default={animation:!0,autohide:!0,delay:5e3},SELECTOR_DATA_DISMISS='[data-bs-dismiss="toast"]';class Toast extends BaseComponent{constructor(t,e){super(t),this._config=this._getConfig(e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return DefaultType}static get Default(){return Default}static get NAME(){return NAME}show(){if(EventHandler.trigger(this._element,EVENT_SHOW).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove("hide"),reflow(this._element),this._element.classList.add("showing"),this._queueCallback((()=>{this._element.classList.remove("showing"),this._element.classList.add("show"),EventHandler.trigger(this._element,EVENT_SHOWN),this._maybeScheduleHide()}),this._element,this._config.animation)}hide(){if(!this._element.classList.contains("show"))return;if(EventHandler.trigger(this._element,EVENT_HIDE).defaultPrevented)return;this._element.classList.remove("show"),this._queueCallback((()=>{this._element.classList.add("hide"),EventHandler.trigger(this._element,EVENT_HIDDEN)}),this._element,this._config.animation)}dispose(){this._clearTimeout(),this._element.classList.contains("show")&&this._element.classList.remove("show"),super.dispose()}_getConfig(t){return t={...Default,...Manipulator.getDataAttributes(this._element),..."object"==typeof t&&t?t:{}},typeCheckConfig(NAME,t,this.constructor.DefaultType),t}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const s=t.relatedTarget;this._element===s||this._element.contains(s)||this._maybeScheduleHide()}_setListeners(){EventHandler.on(this._element,EVENT_CLICK_DISMISS,SELECTOR_DATA_DISMISS,(()=>this.hide())),EventHandler.on(this._element,EVENT_MOUSEOVER,(t=>this._onInteraction(t,!0))),EventHandler.on(this._element,EVENT_MOUSEOUT,(t=>this._onInteraction(t,!1))),EventHandler.on(this._element,EVENT_FOCUSIN,(t=>this._onInteraction(t,!0))),EventHandler.on(this._element,EVENT_FOCUSOUT,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=Toast.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}if(defineJQueryPlugin(Toast),window.bootstrap=window.bootstrap||{},window.bootstrap.Toast=Toast,Joomla&&Joomla.getOptions){const t=Joomla.getOptions("bootstrap.toast");"object"==typeof t&&null!==t&&Object.keys(t).forEach((e=>{const s=t[e],i={animation:!s.animation||s.animation,autohide:!s.autohide||s.autohide,delay:s.delay?s.delay:5e3},o=Array.from(document.querySelectorAll(e));o.length&&o.map((t=>new window.bootstrap.Toast(t,i)))}))}export{Toast as T};
Upload File
Create Folder