index of
/
home
/
thefkyzp
/
easyloanly.com
/
wp-content
/
themes
/
oceanwp
/
inc
/
themepanel
/
assets
/
js
/
File: /home/thefkyzp/easyloanly.com/wp-content/themes/oceanwp/inc/themepanel/assets/js/theme-panel.min.js
jQuery(document).ready(function(e){function n(n){var o='.oceanwp-tp-sidebar-link[href="#'+n+'"]';e(o).length<1&&(n="home",window.location.href="#home"),p.addClass("loading-pane"),e.ajax({type:"POST",url:_wpUtilSettings.ajax.url,data:{action:"oceanwp_cp_load_pane_action",slug:n},success:function(e){p.empty(),p.append(e.data),p.removeClass("loading-pane"),s.find(".oceanwp-is-active").removeClass("oceanwp-is-active"),s.find("[href=#"+n+"]").parent().addClass("oceanwp-is-active"),"install-demos"==n&&void 0!==window.owpDemoImport&&window.owpDemoImport.init(),"system-info"==n&&void 0!==window.owpSystemInfoGetter&&window.owpSystemInfoGetter(),"white-label"==n&&void 0!==window.init_white_label_uploader&&window.init_white_label_uploader(),"customizer"==n&&a(),t()}})}function a(){let n=e("#ocean-customizer-items").find('input[type="checkbox"]'),a=n.length,t=0;n.each(function(){e(this).prop("checked")&&t++}),a==t&&e("#customizer-reset-bulk").prop("checked",!0)}function t(){e("#owp_recaptcha_version").length&&e("#owp_recaptcha_version").trigger("change"),e("#owp_api_images_integration").length&&jQuery("#owp_api_images_integration").trigger("change"),e(document.body).trigger("op_panel_loaded")}function o(){e.ajax({type:"POST",url:_wpUtilSettings.ajax.url,data:{action:"oceanwp_cp_load_sidebar_warnings_action"},success:function(n){if(n.success)for(var a in n.data){var t='.oceanwp-tp-sidebar-link[href="#'+a+'"]';e(t).length&&(e(t).find(".oceanwp-tp-warning-badge").remove(),e(t).append(n.data[a]))}}})}function i(){var n=confirm("Do you really want to clear local google fonts data?");n&&e.ajax({url:ajaxurl,method:"POST",data:{nonce:oceanwpThemePanel.nonce,action:"oceanwp_cp_fonts_clear"},beforeSend:function(){window.showNotify("success",oceanwp_cp_textdomain.fonts_clearing)},success:function(e){window.showNotify(e.success,e.data.message)},error:function(e,n,a){},complete:function(){}})}var c=e(".oceanwp-tp-wrap"),s=c.find(".oceanwp-tp-sidebar"),p=c.find(".oceanwp-tp-panes"),d=window.location.hash,l=d.substring(1,d.length);d&&l&&l!==oceanwpThemePanel.initialSection&&n(l),setTimeout(function(){o()},1e3),window.showNotify=function(e="success",n="Saved successfully",a=!0){e?window.addSuccessNotify(n,a):window.addFailureNotify(n,a)},window.addSuccessNotify=function(n="Saved successfully",a=!0,t=4e3){e("#oceanwp-notifyType").text(n),e(".oceanwp-notify").addClass("active"),e("#oceanwp-notifyType").addClass("success"),a&&setTimeout(function(){e(".oceanwp-notify").removeClass("active"),e("#oceanwp-notifyType").removeClass("success")},t)},window.addFailureNotify=function(n="Something went wrong",a=!0){e("#oceanwp-notifyType").text(n),e(".oceanwp-notify").addClass("active"),e("#oceanwp-notifyType").addClass("failure"),a&&setTimeout(function(){e(".oceanwp-notify").removeClass("active"),e("#oceanwp-notifyType").removeClass("failure")},4e3)},wp.updates.oceanwp_update_pluginSuccessInstalled=function(n){e(document).trigger("wp-plugin-install-success",n),window.showNotify("success",oceanwp_cp_textdomain.plugin_is_successfully_installed,!1);var a=jQuery('[data-plugin-slug="'+n.slug+'"]');a.length&&(a.removeClass("disabled"),a.text(oceanwp_cp_textdomain.installed)),n.slug&&setTimeout(function(){window.location.reload()},1e3)},wp.updates.oceanwp_update_pluginSuccessUpdated=function(e){window.showNotify("success",oceanwp_cp_textdomain.plugin_is_successfully_updated,!1);var n=jQuery('[data-plugin-slug="'+e.slug+'"]');n.length&&(n.removeClass("disabled"),n.text(oceanwp_cp_textdomain.Updated)),e.slug&&setTimeout(function(){window.location.reload()},1e3)},wp.updates.oceanwp_update_themeSuccess=function(e){window.showNotify("success",oceanwp_cp_textdomain.child_theme_installed,!1);var n=jQuery(".oceanwp_install_child_theme");n.length&&(n.removeClass("disabled"),n.text(oceanwp_cp_textdomain.installed)),setTimeout(function(){window.location.reload()},1e3)},wp.updates.oceanwp_update_pluginInstalling=function(e){window.showNotify("success",oceanwp_cp_textdomain.installing_plugin,!1)},wp.updates.oceanwp_update_pluginUpdating=function(e){window.showNotify("success",oceanwp_cp_textdomain.updating_plugin,!1)},wp.updates.oceanwp_update_themeInstalling=function(e){window.showNotify("success",oceanwp_cp_textdomain.installing_child_theme,!1)},wp.updates.oceanwp_update_pluginError=function(e,n,a){window.showNotify("error",a)},e(document).on("click",".oceanwp-tp-sidebar-link, .oceanwp-tp-topbar-link",function(a){a.preventDefault();var t=e(this),o=t.attr("href"),i=o.substring(1,o.length);window.location.hash=o,n(i)}),e(document).on("click","#wp-admin-bar-ocean-menu-default>li>a",function(n){let a=new URL(e(this).attr("href"));a.hash&&e('.oceanwp-tp-sidebar-link[href="'+a.hash+'"]').length&&(n.preventDefault(),e('.oceanwp-tp-sidebar-link[href="'+a.hash+'"]').trigger("click"))}),e(document).on("click",".oceanwp_install_plugin",function(n){n.preventDefault(),e(this).addClass("disabled");var a={slug:e(this).data("pluginSlug"),success:wp.updates.oceanwp_update_pluginSuccessInstalled,error:wp.updates.oceanwp_update_pluginError,beforeSend:wp.updates.oceanwp_update_pluginInstalling};wp.updates.ajax("install-plugin",a)}),e(document.body).on("click","#ocean-fonts-clear .btn",function(e){e.preventDefault(),i()}),e(document).on("click",".oceanwp_update_plugin",function(n){var a=e(n.target);n.preventDefault(),wp.updates.maybeRequestFilesystemCredentials(n);var t={plugin:a.data("plugin"),slug:a.data("slug"),success:wp.updates.oceanwp_update_pluginSuccessUpdated,error:wp.updates.oceanwp_update_pluginError,beforeSend:wp.updates.oceanwp_update_pluginUpdating};e(document).trigger("wp-plugin-updating",t),wp.updates.ajax("update-plugin",t)}),e(document).on("click",".oceanwp_install_child_theme",function(n){n.preventDefault(),e(this).addClass("disabled"),e.ajax({method:"POST",url:_wpUtilSettings.ajax.url,data:{action:"oceanwp_cp_child_theme_install",nonce:oceanwpThemePanel.nonce},success:wp.updates.oceanwp_update_themeSuccess,error:wp.updates.oceanwp_update_pluginError,beforeSend:wp.updates.oceanwp_update_themeInstalling})})});