!function(e,o){e.sectionConstructor["bloglo-info"]=e.Section.extend({attachEvents:function(){},isContextuallyActive:function(){return!0}}),e.blogloCustomizerPreviewer={init:function(){var o;this.preview.bind("set-footer-widget",function(t){(o=e.control("sidebars_widgets["+t+"]")).focus(),e.Widgets.availableWidgetsPanel.open(o)}),this.preview.bind("set-navigation-widget",function(t){(o=e.control("nav_menu_locations["+t+"]")).focus()})}};var t=e.Previewer;e.Previewer=t.extend({initialize:function(o,i){e.blogloCustomizerPreviewer.preview=this,t.prototype.initialize.call(this,o,i)}}),e("bloglo_info_style",function(t){t.bind(function(t){if(12==t){var i={desktop:{top:0,bottom:0},tablet:{top:0,bottom:0},mobile:{top:6,bottom:6},unit:"rem"};e.control("bloglo_info_section_spacing").setting(i)}else i={desktop:{top:10,bottom:10},tablet:{top:6,bottom:6},mobile:{top:6,bottom:6},unit:"rem"},e.control("bloglo_info_section_spacing").setting(i);!function(e,t){for(const[s,n]of Object.entries(t))if(["desktop","tablet","mobile"].includes(s))for(const[t,l]of Object.entries(n)){var i=o(e+' input[name="spacing-control-'+s+"-"+t+'"]');i.length&&i.val(l)}}(e.control("bloglo_info_section_spacing").selector,i)})}),_.each(bloglo_customizer_localized.preview_url_for_section,function(e,o){e&&wp.customize.section(o,function(o){o.expanded.bind(function(o){o&&wp.customize.previewer.previewUrl.set(e)})})}),o(document).ready(function(o){e.blogloCustomizerPreviewer.init(),o(".bloglo-control-responsive").each(function(){o(this).find(".control-responsive").first().addClass("active")}),o(".customize-control").on("click",".bloglo-responsive-switchers span",function(e){var t=o(this),i=t.closest(".bloglo-responsive-switchers"),s=i.find("li span"),n=o(e.currentTarget).data("device"),l=o(".bloglo-control-responsive"),r=o(".wp-full-overlay"),c=o(".wp-full-overlay-footer .devices");i.hasClass("expanded")?t.parent().is(":first-child")&&t.hasClass("active")?(i.removeClass("expanded"),t.removeClass("active")):(s.removeClass("active"),t.addClass("active")):(i.addClass("expanded"),t.addClass("active")),l.find(".control-responsive").removeClass("active"),l.find(".control-responsive."+n).addClass("active"),l.removeClass("control-device-desktop control-device-tablet control-device-mobile").addClass("control-device-"+n),r.removeClass("preview-desktop preview-tablet preview-mobile").addClass("preview-"+n),c.find("button").removeClass("active").attr("aria-pressed",!1),c.find("button.preview-"+n).addClass("active").attr("aria-pressed",!0)}),o(".wp-full-overlay-footer .devices button").on("click",function(e){o(this);var t=o(".customize-control .bloglo-responsive-switchers"),i=o(e.currentTarget).data("device"),s=o(".bloglo-control-responsive");t.find("span").removeClass("active"),t.find("span.preview-"+i).addClass("active"),"desktop"===i?t.removeClass("expanded"):t.addClass("expanded"),s.find(".control-responsive").removeClass("active"),s.find(".control-responsive."+i).addClass("active"),s.removeClass("control-device-desktop control-device-tablet control-device-mobile").addClass("control-device-"+i)}),setTimeout(()=>{var e,t,i;o(".bloglo-tooltip").length&&o(".bloglo-tooltip").each(function(){(e=o(this)).hasClass("top-right-tooltip")||e.hasClass("small-tooltip")||(i=e.closest(".bloglo-control-wrapper").outerWidth(),(t=e.closest(".bloglo-info-icon").css("position","static").position().left) .accordion-section.control-subsection",function(e){var t,i;t=o(this).attr("id").substr(18),0<(i=jQuery("#customize-preview iframe").contents()).find("."+t).length&&i.find("html, body").animate({scrollTop:i.find("."+t).offset().top},1e3)})})}(wp.customize,jQuery);