!function(){"use strict";!function(e){e.addEventListener("DOMContentLoaded",(function(){[].slice.call(e.querySelectorAll('input[type="password"]')).forEach((function(e){var t=e.parentNode.querySelector(".input-password-toggle");t&&t.addEventListener("click",(function(){var s=t.firstElementChild,o=t.lastElementChild;"password"===e.type?(s.classList.remove("icon-eye"),s.classList.add("icon-eye-slash"),e.type="text",e.focus(),o.innerText=Joomla.Text._("JHIDEPASSWORD")):"text"===e.type&&(s.classList.add("icon-eye"),s.classList.remove("icon-eye-slash"),e.type="password",e.focus(),o.innerText=Joomla.Text._("JSHOWPASSWORD"))}));var s=e.parentNode.querySelector(".input-password-modify");s&&s.addEventListener("click",(function(){!0===!s.classList.contains("locked")?(s.classList.add("locked"),e.value="",e.setAttribute("disabled",""),s.innerText=Joomla.Text._("JMODIFY")):(s.classList.remove("locked"),e.removeAttribute("disabled"),e.focus(),s.innerText=Joomla.Text._("JCANCEL"))}))}))}))}(document)}();