File: /home/dakarash.co.id/public_html/plugins/wp-carousel-free/admin/js/wp-carousel-free-admin.min.js
jQuery(document).ready((function($){$("#sp_wpcp_shortcode_generator .wpcf-wrapper").css("visibility","hidden"),$("#sp_wpcp_shortcode_generator .wpcf-wrapper").css("visibility","visible"),$("#sp_wpcp_shortcode_generator .wpcf-wrapper").css("background","rgb(241, 241, 241)"),$("#sp_wpcp_shortcode_generator .wpcf-wrapper li").css("opacity",1),$("#wpcf-section-sp_wpcp_upload_options_0").show(),$("#wpcf-section-sp_wpcp_display_shortcodes_0, #wpcf-section-sp_wpcp_display_builders_0").removeClass("hidden").show(),$("#wpcf-section-sp_wpcp_display_shortcode_0").show(),$(document).on("click",".brand-plugin-install:not(.activated,.activate_brand)",(function(e){e.preventDefault();var data={action:"wp_ajax_install_plugin",_ajax_nonce:$(this).data("nonce"),slug:"smart-brands-for-woocommerce"};$(".brand-plugin-install").html("Installing..."),jQuery.post(ajaxurl,data,(function(response){if(response.success){const activateUrl=response.data.activateUrl;$(".brand-plugin-install").addClass("activate_brand").html("Activate Now").attr("data-url",activateUrl).removeClass("brand-plugin-install")}}))})),$(document).on("click",".activate_brand",(function(e){e.preventDefault(),$(".activate_brand").html("Activating ...");var activateUrl=$(this).data("url");activateUrl&&$.ajax({url:activateUrl,type:"GET",success:function(){$(".activate_brand").html("Activated").removeAttr("data-url").css({"text-decoration":"none","pointer-events":"none"})}})})),$(document).on("click",".quick-view-install:not(.activated,.activate_plugin)",(function(e){e.preventDefault();var data={action:"wp_ajax_install_plugin",_ajax_nonce:$(this).data("nonce"),slug:"woo-quickview"};$(".quick-view-install").html("Installing ..."),jQuery.post(ajaxurl,data,(function(response){if(response.success){const activateUrl=response.data.activateUrl;$(".quick-view-install").addClass("activate_plugin").html("Activate Now").attr("data-url",activateUrl).removeClass("quick-view-install")}}))})),$(document).on("click",".activate_plugin",(function(e){e.preventDefault(),$(".activate_plugin").html("Activating ...");var activateUrl=$(this).data("url");activateUrl&&$.ajax({url:activateUrl,type:"GET",success:function(){$(".activate_plugin").html("Activated").removeAttr("data-url").css({"text-decoration":"none","pointer-events":"none"})}})})),($(".brand-plugin-install").hasClass("activated")||$(".quick-view-install").hasClass("activated"))&&$(".brand-plugin-install.activated, .quick-view-install.activated").html("Activated").parent(".wpcf-submessage-info").hide()}));