!function(){"use strict";document.addEventListener("DOMContentLoaded",(function(){Joomla.submitbutton=function(e){var t=document.adminForm,n=document.createElement("joomla-alert");"mail.cancel"!==e?""===t.jform_subject.value?(n.innerText=Joomla.Text._("COM_USERS_MAIL_PLEASE_FILL_IN_THE_SUBJECT"),t.insertAdjacentElement("afterbegin",n)):t.jform_group.value<0?(n.innerText=Joomla.Text._("COM_USERS_MAIL_PLEASE_SELECT_A_GROUP"),t.insertAdjacentElement("afterbegin",n)):""===t.jform_message.value?(n.innerText=Joomla.Text._("COM_USERS_MAIL_PLEASE_FILL_IN_THE_MESSAGE"),t.insertAdjacentElement("afterbegin",n)):Joomla.submitform(e):Joomla.submitform(e)}}))}();