function domFade(e){let s=1,t=setInterval(function(){s<=.1&&(clearInterval(t),e.style.display="none"),e.style.opacity=s,e.style.filter="alpha(opacity="+100*s+")",s-=.1*s},8)}function domFadeOut(e){let s=.1;e.style.display="block";let t=setInterval(function(){s>=1&&clearInterval(t),e.style.opacity=s,e.style.filter="alpha(opacity="+100*s+")",s+=.1*s},8)}function hideParentChild(e){const s=document.getElementById(e);"none"===s.style.display?domFadeOut(s):domFade(s)}!function(e){let s=e("#fsrs-rating-show-option"),t=e("#fsrs_share_dialog_show"),a=e("#fsrs_user_info_dialog_show");const n=s.val();e(".fsrs-faq-schema-accordion .fsrs-faq-schema-items").accordion({heightStyle:"content"}),s.is(":checked")&&"1"==n?e(".fsrs-schema-item").fadeIn():e(".fsrs-schema-item").fadeOut(),"3"==e("input[name=fsrs-schema-radio]:checked","#fsrs-schema").val()?e(".fsrs-video-object").fadeOut():e(".fsrs-video-object").fadeIn(),e(".fsrs-rating-show-option-container").on("change",function(t){t.preventDefault();const a=s.val();s.is(":checked")&&"1"==a?e(".fsrs-schema-item").fadeIn():e(".fsrs-schema-item").fadeOut()}),e("#fsrs-schema input").on("change",function(s){"3"==e("input[name=fsrs-schema-radio]:checked","#fsrs-schema").val()?e(".fsrs-video-object").fadeOut():e(".fsrs-video-object").fadeIn()}),e(".fsrs-faq-schema-items").on("click",".fsrs-faq-schema-header",function(s){s.preventDefault(),e(this).parent().toggleClass("close"),e(this).next().toggleClass("close")}),e(".fsrs-faq-schema-items").on("click",".fsrs-faq-schema-delete",function(s){s.preventDefault(),s.stopPropagation(),swal.fire({title:fsrs_main_object.popupTitle,text:fsrs_main_object.popupDesc,icon:"warning",showDenyButton:!0,confirmButtonText:fsrs_main_object.popupConfirm,denyButtonText:fsrs_main_object.popupDeny}).then(s=>{s.isConfirmed&&(e(this).parents(".fsrs-faq-schema-item").remove(),swal.fire(fsrs_main_object.popupSuccessMess,"","success"))})}),e(".fsrs-faq-schema-add").on("click",function(){let s=e(this).data("index"),t=e(this).data("title"),a=e(this).prev(),n=e("#tmpl-faq-schema-form").html();n=(n=n.replace("{TITLE}",t.replace("%s",parseInt(s)+1))).replace(/\{INDEX\}/g,s),a.append(n),e(this).data("index",parseInt(s)+1)});let f=e("#fsrs-notif-is-seen");function i(){e(".fsrs_share_dialog_title").fadeIn(),e(".fsrs_share_linkedin_show").fadeIn(),e(".fsrs_share_twitter_show").fadeIn(),e(".fsrs_share_facebook_show").fadeIn(),e(".fsrs_share_telegram_show").fadeIn(),e(".fsrs_share_email_show").fadeIn()}function r(){e(".fsrs_share_dialog_title").fadeOut(),e(".fsrs_share_linkedin_show").fadeOut(),e(".fsrs_share_twitter_show").fadeOut(),e(".fsrs_share_facebook_show").fadeOut(),e(".fsrs_share_telegram_show").fadeOut(),e(".fsrs_share_email_show").fadeOut()}function o(){e(".fsrs_get_user_info_title").fadeIn(),e(".fsrs_admin_mail").fadeIn(),e(".fsrs_email_field_helper_text").fadeIn(),e(".fsrs_user_privacy_text").fadeIn(),e(".fsrs_email_error_text").fadeIn(),e(".fsrs_user_info_submit_text").fadeIn(),e(".fsrs_user_info_deny_text").fadeIn(),e(".fsrs_user_info_thanks_text").fadeIn()}function c(){e(".fsrs_get_user_info_title").fadeOut(),e(".fsrs_admin_mail").fadeOut(),e(".fsrs_email_field_helper_text").fadeOut(),e(".fsrs_user_privacy_text").fadeOut(),e(".fsrs_email_error_text").fadeOut(),e(".fsrs_user_info_submit_text").fadeOut(),e(".fsrs_user_info_deny_text").fadeOut(),e(".fsrs_user_info_thanks_text").fadeOut()}e("#notif-size").val()>0&&(f.removeClass("dashicons-hidden"),f.addClass("dashicons-visibility")),e("#notif-size").val()<1&&(f.removeClass("dashicons-visibility"),f.addClass("dashicons-hidden"),e(".fsrs-main-notif").hide()),t.prop("checked")&&i(),t.prop("checked")||r(),a.prop("checked")&&o(),a.prop("checked")||c(),t.on("change",function(s){s.preventDefault(),e(this).prop("checked")&&i(),e(this).prop("checked")||r()}),a.on("change",function(e){e.preventDefault(),a.prop("checked")&&o(),a.prop("checked")||c()})}(jQuery);