CoreFiles by mySites.guru
admin-cpanel-default.min.js1 lines, 1,488 bytes, from Joomla_4.0.0-rc2-Release_Candidate-Full_Package.zip
Raw History Compare with 4.0.0-rc1
md5
28e62dd0eb3da51c440064aad6aef530
sha1
29f37724fa65ef9270ce73aaf2c27f6a76d5fc95
sha256
33bf49ddd2c64899276b79ee77ebd907b32d1a9e5820441970c26959495ba252
const debounce=(e,t=250,o)=>(...r)=>clearTimeout(o,o=setTimeout(e,t,...r));((e,t,o)=>{o.unpublishModule=e=>{const t=e.getAttribute("data-module-id");o.request({url:`index.php?option=com_modules&task=modules.unpublish&format=json&cid=${t}`,method:"POST",headers:{"Content-Type":"application/json"},onSuccess:()=>{const t=e.closest(".module-wrapper");t.parentNode.removeChild(t),o.renderMessages({message:[o.Text._("COM_CPANEL_UNPUBLISH_MODULE_SUCCESS")]})},onError:()=>{o.renderMessages({error:[o.Text._("COM_CPANEL_UNPUBLISH_MODULE_ERROR")]})}})};const r=()=>{const e=t.getElementById("content");if(e){[].slice.call(e.querySelectorAll(".unpublish-module")).forEach((e=>{e.addEventListener("click",(({target:e})=>o.unpublishModule(e)))}))}t.removeEventListener("DOMContentLoaded",r)};t.addEventListener("DOMContentLoaded",r);const n={$gridBox:null,resizeGridItem(e,t,o){const r=e.querySelector(".card");if(r){const n=r.getBoundingClientRect().height+o,s=Math.ceil(n/(t+o));e.style.gridRowEnd=`span ${s}`}},resizeAllGridItems(){const t=[].slice.call(n.$gridBox.children),o=e.getComputedStyle(n.$gridBox),r=parseInt(o.getPropertyValue("grid-auto-rows"),10)||0,s=parseInt(o.getPropertyValue("grid-row-gap"),10)||10;t.forEach((e=>{n.resizeGridItem(e,r,s)}))},initialise(){n.$gridBox=t.querySelector("#cpanel-modules .card-columns"),n.resizeAllGridItems(),e.addEventListener("resize",debounce(n.resizeAllGridItems,50))}};e.addEventListener("load",n.initialise)})(window,document,window.Joomla);

The same content is in 4 releases, Joomla 4.0.0-rc2 to 4.0.0-rc5. See them all, or every version of this file.