!function(){const e=()=>{document.querySelectorAll('select[name^="calio_megamenu_width_mode["]').forEach(e=>{const t=e.closest(".calio-megamenu-fields");if(!t)return;const n=t.querySelector(".calio-mega-custom-width-row");n&&(n.style.display="custom"===e.value?"":"none")})};document.addEventListener("change",t=>{const n=t.target;n instanceof HTMLSelectElement&&n.name&&0===n.name.indexOf("calio_megamenu_width_mode[")&&e()}),"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()}();