CoreFiles by mySites.guru
button.min.js1 lines, 779 bytes, from Joomla_5.3.2-Stable-Full_Package.zip
Raw History Compare with 5.3.1
md5
10f40ab76c98073a87bd8e33054d6fdb
sha1
f312eccd5bf49dbd53159d05e9a6bebd1349ffa2
sha256
7753d6fb7c7ffe57100c530f58c8afc27498b792ec926de3c529dcb50f352655
import{E as a,d as r,B as c}from"./dom.min.js?5.3.3";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 39 releases, Joomla 5.2.0-beta3 to 6.0.0-alpha3. See them all, or every version of this file.