CoreFiles by mySites.guru
button.min.js1 lines, 787 bytes, from Joomla_5.0.2-Stable-Full_Package.zip
Raw History Compare with 5.0.1
md5
7bbf07fa9d154486ad83869486d35005
sha1
52b4151be29a26c11902d9a6597efce6da121c90
sha256
03e327d060fdcdca8e56566f058fbce99d64793c878ddb604fb98ff2fba8a73b
import{E as a,d as r,B as c}from"./dom.min.js?5.3.2";const i="button",l="bs.button",u=`.${l}`,A=".data-api",g="active",s='[data-bs-toggle="button"]',E=`click${u}${A}`;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,E,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=>{Array.from(document.querySelectorAll(o)).map(n=>new window.bootstrap.Button(n))})}export{e as B};

The same content is in 28 releases, Joomla 5.0.1-rc1 to 5.1.4. See them all, or every version of this file.