(e=>{const t=t=>{t.preventDefault();const n=e.getElementById("js-pstats-data-details");n&&n.classList.toggle("d-none")},n=t=>{t.preventDefault(),e.getElementById("jform_params_unique_id").value="",Joomla.submitbutton("plugin.apply")},s=()=>{const a=e.getElementById("js-pstats-data-details-toggler");a&&a.addEventListener("click",t);const d=e.getElementById("js-pstats-reset-uid");d&&d.addEventListener("click",n),e.removeEventListener("DOMContentLoaded",s)};e.addEventListener("DOMContentLoaded",s)})(document,Joomla);