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){e.target.closest(".nr-images-selector-item")&&(e=e.target.closest(".nr-images-selector.required"))&&this.update(e)},t.update=function(e){e=e.querySelector(':scope > input[type="hidden"]');e&&(e.removeAttribute("required"),e.classList.remove("required"))},e}();document.addEventListener("DOMContentLoaded",function(e){new TF_Images_Selector_Field});

