text: window.EasingSlider=window.EasingSlider||{Customizer:{models:{},views:{}}},function(e){var t=window.EasingSlider.Customizer;t.views.Customizer=Backbone.View.extend({el:".customize-container",events:{"change #change-slider":"_changeSlider","change [data-selector]":"_reflectChanges","click .collapse-sidebar":"_toggleSidebar","click .accordion-section-title":"_toggleSection"},initialize:function(){var t=this;this.$(".color-picker-hex").each(function(){e(this).wpColorPicker({change:t._reflectChanges,defaultColor:e(this).attr("data-default")})})},_changeSlider:function(e){window.location.href="http://"+window.location.hostname+window.location.pathname+"?page=easingslider_manage_customizations&edit="+e.target.value},_reflectChanges:function(t){switch(t.target.dataset.property){case"background-image":e(t.target.dataset.selector).css({"background-image":"url("+t.target.value+")"});break;case"border-width":e(t.target.dataset.selector).css({"border-style":"solid","border-width":t.target.value+"px"});break;case"border-radius":e(t.target.dataset.selector).css({"-webkit-border-radius":t.target.value+"px","-moz-border-radius":t.target.value+"px","border-radius":t.target.value+"px"});break;case"display":"true"==t.target.value?e(t.target.dataset.selector).css("display","block"):e(t.target.dataset.selector).css("display","none");break;case"src":e(t.target.dataset.selector).attr("src",t.target.value);break;default:e(t.target.dataset.selector).css(t.target.dataset.property,t.target.value)}},_toggleSidebar:function(e){e.preventDefault(),this.$(".wp-full-overlay").hasClass("expanded")?this.$(".wp-full-overlay").removeClass("expanded").addClass("collapsed"):this.$(".wp-full-overlay").removeClass("collapsed").addClass("expanded")},_toggleSection:function(t){t.preventDefault(),this.$(".accordion-section-title").each(function(){var a=e(this).closest(".accordion-section"),s=a.find(".accordion-section-content");this==t.currentTarget?a.hasClass("open")?s.slideUp({duration:"fast",easing:"linear",complete:function(){a.removeClass("open")}}):(a.addClass("open"),s.css({display:"none"}).slideDown("fast")):s.slideUp({duration:"fast",easing:"linear",complete:function(){a.removeClass("open")}})})}}),e(document).ready(function(){new t.views.Customizer})}(jQuery);