(e=>{const t=t=>{const d=e.getElementById("image"),s=e.getElementById("custom");switch(t){case"0":d.classList.remove("hidden"),s.classList.add("hidden");break;case"1":d.classList.add("hidden"),s.classList.remove("hidden")}};e.addEventListener("DOMContentLoaded",(()=>{const d=e.getElementById("jform_type");d&&(t(d.value),d.addEventListener("change",(({target:e})=>{t(e.value)})))}))})(document);