!function(e,t){function i(){var t=e("#onepress-style-inline-css").html();e("#onepress-style-inline-css").replaceWith('<style class="replaced-style" id="onepress-style-inline-css">'+t+"</style>")}function o(e,t){wp.customize(e,function(e){e.bind(function(e){var i=String(e||"").trim();""!==i?("#"!==i.charAt(0)&&(i="#"+i),document.documentElement.style.setProperty(t,i)):document.documentElement.style.removeProperty(t)})})}wp.customize("onepress_footer_info_bg",function(t){t.bind(function(t){e(".site-footer .site-info, .site-footer .btt a").css({background:t}),e(".site-footer .site-info").css({color:"rgba(255, 255, 255, 0.7)"}),e(".site-footer .btt a, .site-footer .site-info a").css({color:"rgba(255, 255, 255, 0.9)"})})}),t.selectiveRefresh.bind("partial-content-rendered",function(t){e(window).resize()}),wp.customize("header_textcolor",function(t){t.bind(function(t){"blank"===t?e(".site-title a, .site-description").css({clip:"rect(1px, 1px, 1px, 1px)",position:"absolute"}):e(".site-title a, .site-description").css({clip:"auto",color:t,position:"relative"})})}),wp.customize("onepress_btt_disable",function(t){t.bind(function(t){!0===t||"true"==t?e(".site-footer .btt ").hide():e(".site-footer .btt ").show()})}),wp.customize.bind("preview-ready",function(){i()}),e(window).resize(function(){i()}),wp.customize.selectiveRefresh.bind("partial-content-rendered",function(t){"onepress-header-section"==t.partial.id&&e(document).trigger("header_view_changed",[t.partial.id]),e(document).trigger("selectiveRefresh-rendered",[t.partial.id])}),o("onepress_primary_color","--wp--preset--color--primary"),o("onepress_secondary_color","--wp--preset--color--secondary")}(jQuery,wp.customize);