var TF_Images_Selector_Field=function(){function e(){this.onInit(),this.initEvents()}var t=e.prototype;return t.initEvents=function(){document.addEventListener("click",function(e){this.onClick(e)}.bind(this))},t.onInit=function(){var t=this,e=document.querySelectorAll(".nr-images-selector.required");e&&e.forEach(function(e){e.querySelector('input[type="radio"]:checked')&&t.update(e)})},t.onClick=function(e){if(e.target.closest(".nr-images-selector-item")){var t=e.target.closest(".nr-images-selector.required");t&&this.update(t)}},t.update=function(e){var t=e.querySelector(':scope > input[type="hidden"]');t&&(t.removeAttribute("required"),t.classList.remove("required"))},e}();document.addEventListener("DOMContentLoaded",function(e){new TF_Images_Selector_Field});

