/**
 * @copyright   (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */Joomla=window.Joomla||{},(e=>{document.addEventListener("DOMContentLoaded",()=>{e.submitbutton=n=>{if(n==="groups.delete"){const o=document.getElementsByName("cid[]");for(let t=0;t<o.length;t+=1)if(o[t].checked&&o[t].parentNode.getAttribute("data-usercount")!=="0")return window.confirm(e.Text._("COM_USERS_GROUPS_CONFIRM_DELETE"))&&e.submitform(n),!1}return e.submitform(n),!1}})})(Joomla);
