function idf_flush_object(a){jQuery.ajax({url:idf_admin_ajaxurl,type:"POST",data:{action:"idf_flush_object",object:a},success:function(a){console.log(a)}})}function idfRegister(a){if(resVar=a.data,"https://ignitiondeck.com"==a.origin&& void 0!==resVar&&"idf: registered"==resVar.response){var b;void 0!==a.data.customer&&(b=a.data.customer),setTimeout(function(){jQuery.magnificPopup.close(),jQuery.ajax({url:idf_admin_ajaxurl,type:"POST",data:{action:"idf_do_register",Email:b},success:function(a){window.location.href=idf_current_url+"&amp;action=idf_registered"}})},1500)}}function openLBGlobal(a,b,c){jQuery.magnificPopup.open({type:"inline",items:{src:jQuery(a)},callbacks:{open:function(){null!=b&&b()},close:function(){null!=c&&c()}}})}function closeLBGlobal(){jQuery.magnificPopup.close()}jQuery(document).ready(function(){jQuery(".openLBGlobal").click(function(a){a.preventDefault(),openLBGlobal(jQuery(this).attr("href"))}),void 0!==jQuery("#id_account")&&(jQuery("#id_account").magnificPopup({type:"iframe",iframe:{patterns:{ignitiondeck:{index:"ignitiondeck.com",src:launchpad_link}}}}),jQuery("#id_account").click(function(a){})),window.addEventListener("message",idfRegister,!1),jQuery("#idf_reset_account").click(function(a){a.preventDefault();var b=jQuery(this);jQuery(b).addClass("processing"),jQuery.ajax({url:idf_admin_ajaxurl,type:"POST",data:{action:"idf_reset_account"},success:function(a){console.log(a),jQuery(document).trigger("idfResetAccount"),jQuery(b).removeClass("processing"),location.reload()},error:function(a){jQuery(b).removeClass("processing")}})}),jQuery(".activate_theme").click(function(a){a.preventDefault();var b=jQuery(this).data("theme");jQuery.ajax({url:idf_admin_ajaxurl,type:"POST",data:{action:"idf_activate_theme",theme:b},success:function(a){1==a&&location.reload()}})}),jQuery('.extension_subheader select[name="module_filter"]').change(function(){var b=jQuery(this).val(),a=jQuery(".extension");jQuery.each(a,function(){!1===jQuery(this).hasClass(b)?jQuery(this).hide():jQuery(this).show()})}),jQuery('.extension_subheader input[name="hide_locked"]').change(function(){jQuery(this).prop("checked")?jQuery('.extension[data-locked="1"]').hide():jQuery(".extension").show()}),jQuery('.extension[data-locked="1"]').hover(function(){jQuery(this).find(".fa.fa-lock").removeClass("fa-lock").addClass("fa-unlock")},function(){jQuery(this).find(".fa.fa-unlock").removeClass("fa-unlock").addClass("fa-lock")}),jQuery(".extension-link .active-installed").click(function(a){a.preventDefault();var b=jQuery(this).data("extension");jQuery.ajax({url:idf_admin_ajaxurl,type:"POST",data:{action:"idf_activate_extension",extension:b},success:function(a){1==a&&location.reload()}})}),"legacy"!==idf_platform&&jQuery('input[value="pwyw"]').attr("disabled","disabled").prop("disabled",!0)})