(function(){"use strict";/** * @copyright (C) 2020 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */Joomla=window.Joomla||{},Joomla.toggleAllNextElements=function(i,c){var r=function(s){var e=[];do e.push(s);while((s=s.nextElementSibling)!==null);return e},o=r(i);o.length&&o.forEach(function(n){n.classList.contains(c)?n.classList.remove(c):n.classList.add(c)})},function(){document.addEventListener("DOMContentLoaded",function(){var i=document.getElementById("toolbar-status-group");if(!i)return;var c=[].slice.call(i.querySelectorAll(".button-transition")),r=i.querySelector(".button-transition-headline"),o=i.querySelector(".button-transition-separator"),n=document.querySelector("table.itemList"),s=[],e=[];n&&(s=[].slice.call(n.querySelectorAll("tbody tr")));function d(){if(e.length){for(var t=e.shift(),l=function(){var u=e.shift();t=t.filter(function(h){return u.indexOf(h)!==-1})};e.length;)l();t.length&&(r&&r.classList.remove("d-none"),o&&o.classList.remove("d-none")),t.forEach(function(a){var u=i.querySelector(".transition-"+a);u&&u.parentNode.classList.remove("d-none")})}}function f(t){e.push(t.getAttribute("data-transitions").split(","))}n&&n.addEventListener("click",function(){c.forEach(function(t){t.parentNode.classList.add("d-none")}),r&&r.classList.add("d-none"),o&&o.classList.add("d-none"),e=[],s.forEach(function(t){var l=t.querySelector("input[type=checkbox]");if(l.checked){var a=l.closest("tr");f(a)}}),d()})})}()})();