(()=>{var e;(e=jQuery)((function(){var t=function(){setTimeout((function(){var t=e('#custom_image_overlays_repeat input[type="text"]');1===t.length?t.prop("required",!1):t.prop("required",!0)}),55)},r=function(){setTimeout((function(){var t=e(".default-overlay-field"),r=["","play","gif"],a={};e('#custom_image_overlays_repeat input[type="text"]').each((function(t,r){var n=e(r).val(),i=function(e){e=(e=e.replace(/^\s+|\s+$/g,"")).toLowerCase();for(var t="àáäâèéëêìíïîòóöôùúüûñçěščřžýúůďťň·/_,:;",r=0,a=t.length;r<a;r++)e=e.replace(new RegExp(t.charAt(r),"g"),"aaaaeeeeiiiioooouuuuncescrzyuudtn------".charAt(r));return e.replace(".","-").replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/\//g,"")}(n);a[i]=n})),t.each((function(t,n){var i=e(n).find(".cmb2-radio-list"),o=i.children("li"),c=o.first(),u=i.find("input:checked").val();o.each((function(t,a){var n=e(a),i=n.find("input").val();if(-1!==r.indexOf(i))return!0;n.remove()})),e.each(a,(function(e,t){if(!e||!t)return!0;var r=c.find("input").attr("id")+"-synced-item-"+e,a=c.clone();a.find("input").attr("id",r).val(e).prop("checked",e===u).siblings("label").text(t).attr("for",r),i.append(a)})),0===i.find("input:checked").length&&i.find("input").first().prop("checked",!0)}))}),55)};e("#custom_image_overlays_repeat").on("click",".cmb-remove-group-row-button, button.cmb-add-group-row",t),t(),e("#custom_image_overlays_repeat").on("change",'input[type="text"]',r),e("#custom_image_overlays_repeat").on("click",".cmb-remove-group-row-button",r),r()}))})();