(()=>{"use strict";document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".ablocks-form-builder__field").forEach(e=>{!function(e){const t=e?.querySelector(".ablocks-form-builder__select"),r=e?.getAttribute("data-required");t&&"true"===r&&t?.addEventListener("focusout",()=>{""===t.value.trim()&&e.classList.add("error-msg")}),t?.addEventListener("input",()=>{""!==t.value.trim()&&e.classList.remove("error-msg")})}(e)})})})();