- md5
- 5bace1baf316a22ace3c45685da820ad
- sha1
- e4dd41edc4a85507a0652bf7d98b833c431fc0a6
- sha256
- 108d8a8e18b9c836abea4b47fc47781490ff31e8b0442b8dda3a5f04fdce1392
!function(){"use strict";!function(e,t,r){r.unpublishModule=function(e){var t=e.getAttribute("data-module-id");r.request({url:"index.php?option=com_modules&task=modules.unpublish&format=json&cid="+t,method:"POST",headers:{"Content-Type":"application/json"},onSuccess:function(){var t=e.closest(".module-wrapper");t.parentNode.removeChild(t),r.renderMessages({message:[r.Text._("COM_CPANEL_UNPUBLISH_MODULE_SUCCESS")]})},onError:function(){r.renderMessages({error:[r.Text._("COM_CPANEL_UNPUBLISH_MODULE_ERROR")]})}})};t.addEventListener("DOMContentLoaded",(function e(){var n=t.getElementById("content");n&&[].slice.call(n.querySelectorAll(".unpublish-module")).forEach((function(e){e.addEventListener("click",(function(e){var t=e.target;return r.unpublishModule(t)}))}));t.removeEventListener("DOMContentLoaded",e)}));var n={$gridBox:null,resizeGridItem:function(e,t,r){var n=e.querySelector(".card");if(n){var o=n.getBoundingClientRect().height+r,i=Math.ceil(o/(t+r));e.style.gridRowEnd="span "+i}},resizeAllGridItems:function(){var t=[].slice.call(n.$gridBox.children),r=e.getComputedStyle(n.$gridBox),o=parseInt(r.getPropertyValue("grid-auto-rows"),10)||0,i=parseInt(r.getPropertyValue("grid-row-gap"),10)||10;t.forEach((function(e){n.resizeGridItem(e,o,i)}))},initialise:function(){var r,o,i;n.$gridBox=t.querySelector("#cpanel-modules .card-columns"),n.resizeAllGridItems(),e.addEventListener("resize",(r=n.resizeAllGridItems,void 0===(o=50)&&(o=250),function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return clearTimeout(i,i=setTimeout.apply(void 0,[r,o].concat(t)))}))}};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.