!function(o){["categories","posts-carousel"].forEach(function e(i,n){wp.customize.bind("preview-ready",function(){o(".panel-placeholder").hide(),i=i.replace(/-/g,"_"),wp.customize.preview.bind(i,function(e){o("body").hasClass("home")&&!0===e.expanded&&o("html, body").animate({scrollTop:o("#blog_posts_"+i+"_section").position().top})})})})}(jQuery);