CoreFiles by mySites.guru
button.min.js1 lines, 779 bytes, from Joomla_6.2.0-Stable-Full_Package.zip
Raw History Compare with 6.1.4
md5
ede0e659407a32f1803ba3f6134827b8
sha1
7d4ebce4b6c13e6572e87753d572ea198da0be82
sha256
590236a10a6121e7c0071337b1ae3abd53ef3cd8f96b3b3a9a9bf0d3f0fbce6d
import{E as a,d as r,B as c}from"./dom.min.js?5.3.8";const i="button",l="bs.button",u=`.${l}`,E=".data-api",g="active",s='[data-bs-toggle="button"]',A=`click${u}${E}`;class e extends c{static get NAME(){return i}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(g))}static jQueryInterface(o){return this.each(function(){const n=e.getOrCreateInstance(this);o==="toggle"&&n[o]()})}}if(a.on(document,A,s,t=>{t.preventDefault();const o=t.target.closest(s);e.getOrCreateInstance(o).toggle()}),r(e),window.bootstrap=window.bootstrap||{},window.bootstrap.Button=e,Joomla&&Joomla.getOptions){const t=Joomla.getOptions("bootstrap.button");t&&t.length&&t.forEach(o=>{document.querySelectorAll(o).forEach(n=>new window.bootstrap.Button(n))})}export{e as B};

The same content is in 70 releases, Joomla 5.4.0-rc1 to 6.3.0-alpha1. See them all, or every version of this file.