!function(){"use strict";!function(e){var t=function(t){var n=e.getElementById("image"),d=e.getElementById("custom");switch(t){case"0":n.classList.remove("hidden"),d.classList.add("hidden");break;case"1":n.classList.add("hidden"),d.classList.remove("hidden")}};e.addEventListener("DOMContentLoaded",(function(){var n=e.getElementById("jform_type");n&&(t(n.value),n.addEventListener("change",(function(e){var n=e.target;t(n.value)})))}))}(document)}();