jQuery(document).ready(function(a){var b="";a(document).on("click","input.wi_ct_custom",function(b){var c=a(this).prop("id").split("_");c.pop(),a("div#"+c.join("_")+"_div").fadeIn("slow")}),a(document).on("click","input.wi_ct_inheir",function(b){var c=a(this).prop("id").split("_");c.pop(),a("div#"+c.join("_")+"_div").fadeOut("slow")}),a(document).on("hover","#widgets-right, .inactive-sidebar",function(){a(this).find(".widget-icon-color-picker").wpColorPicker()}),a(document).on("hover",".widget-icon-library",function(c){b=a(this).find(":selected").val()}),a(document).on("change",".widget-icon-library",function(c){var d=a(this).find(":selected").val(),e=a(this).prop("id").split("_");if(e.pop(),"elusive"===d){var f="select#"+e.join("_")+"_elusive",g="select#"+e.join("_")+"_font-awesome",h="select#"+e.join("_")+"_"+b;a(f).prop("name",a(h).prop("name")),a(h).prop("name",""),a(g).hide(),a(f).fadeIn(300)}else if("font-awesome"===d){var f="select#"+e.join("_")+"_elusive",g="select#"+e.join("_")+"_font-awesome",h="select#"+e.join("_")+"_"+b;a(g).prop("name",a(h).prop("name")),a(h).prop("name",""),a(f).hide(),a(g).fadeIn(300)}}),a(document).on("ajaxStop",function(){a("#widgets-right .widget-icon-color-picker, .inactive-sidebar .widget-icon-color-picker").wpColorPicker()})});