!function(a,b){var c=wp.customize,d=a("body"),e=a(".brand"),f=a(".tc-header"),g=f.find(".btn-toggle-nav"),h=a("#tc-sn"),i=["blogname","blogdescription","background_color"],j={},k=function(){b.map(j,function(a,b){c.has(n(b))&&c(n(b)).bind(j[b])})};TCPreviewParams&&!TCPreviewParams.preview_ready_event_exists?a(document).ready(k):c.bind("preview-ready",k),a.extend(j,{blogname:function(b){a("a.site-title").html(b)},blogdescription:function(b){a("h2.site-description").html(b)},background_color:function(a){"#ffffff"==a||"#fff"==a?d.addClass("custom-background-white"):""===a?d.addClass("custom-background-empty"):d.removeClass("custom-background-empty custom-background-white")},tc_skin:function(b){if(TCPreviewParams&&TCPreviewParams.themeFolder){var c=0===a("#live-skin-css").length?a("",{id:"live-skin-css",rel:"stylesheet"}):a("#live-skin-css"),d=b.replace(".css",".min.css"),e=[TCPreviewParams.themeFolder,"/inc/assets/css/",d].join("");TCPreviewParams.customSkin&&TCPreviewParams.customSkin.skinName&&TCPreviewParams.customSkin.fullPath&&(e=b==TCPreviewParams.customSkin.skinName?TCPreviewParams.customSkin.fullPath:e),c.attr("href",e),0===a("#live-skin-css").length&&a("head").append(c)}},tc_fonts:function(b){var c=TCPreviewParams.fontPairs;a.each(c,function(a,c){c.list[b]&&(-1!=b.indexOf("_g_")&&r(c.list[b][1]),s(c.list[b][1]))})},tc_body_font_size:function(b){var c=TCPreviewParams.fontSelectors;a(c.body).not(".social-icon").css({"font-size":b+"px","line-height":Number((19*b/14).toFixed())+"px"})},tc_link_hover_effect:function(a){!1===a?d.removeClass("tc-fade-hover-links"):d.addClass("tc-fade-hover-links")},tc_ext_link_style:function(b){!1!==b?a("a",".entry-content").each(function(){var b=a.trim(a(this).attr("href"));p(b)&&"IMG"!=a(this).children().first().prop("tagName")&&a(this).after('')}):a(".tc-external",".entry-content").remove()},tc_ext_link_target:function(b){!1!==b?a("a",".entry-content").each(function(){var b=a.trim(a(this).attr("href"));p(b)&&"IMG"!=a(this).children().first().prop("tagName")&&a(this).attr("target","_blank")}):a(this).removeAttr("target")},tc_show_title_icon:function(b){!1===b?(a(".entry-title").add("h1").add("h2").removeClass("format-icon"),a(".tc-sidebar").add(".footer-widgets").addClass("no-widget-icons")):(a(".entry-title").add("h1").add("h2").addClass("format-icon"),a(".tc-sidebar").add(".footer-widgets").removeClass("no-widget-icons"))},tc_show_page_title_icon:function(b){a(".tc-gc").length||(!1===b?a(".entry-title",".page").removeClass("format-icon"):a(".entry-title",".page").addClass("format-icon"))},tc_show_post_title_icon:function(b){!1===b?a(".entry-title",".single").removeClass("format-icon"):a(".entry-title",".single").addClass("format-icon")},tc_show_archive_title_icon:function(b){a(".tc-gc").length||(!1===b?a("archive h1.entry-title, .blog h1.entry-title, .search h1, .author h1").removeClass("format-icon"):a("archive h1.entry-title, .blog h1.entry-title, .search h1, .author h1").addClass("format-icon"))},tc_show_post_list_title_icon:function(b){a(".tc-gc").length||(!1===b?a(".archive article .entry-title, .blog article .entry-title, .search article .entry-title, .author article .entry-title").removeClass("format-icon"):a(".archive article .entry-title, .blog article .entry-title, .search article .entry-title, .author article .entry-title").addClass("format-icon"))},tc_show_sidebar_widget_icon:function(b){!1===b?a(".tc-sidebar").addClass("no-widget-icons"):a(".tc-sidebar").removeClass("no-widget-icons")},tc_show_footer_widget_icon:function(b){!1===b?a(".footer-widgets").addClass("no-widget-icons"):a(".footer-widgets").removeClass("no-widget-icons")},tc_smoothscroll:function(a){!1===a?smoothScroll._cleanUp():smoothScroll._maybeFire()}}),a.extend(j,{tc_show_tagline:function(b){!1===b?(a(".site-description").hide("slow"),a(window).trigger("resize")):(a(".site-description").show("fast"),a(window).trigger("resize"))},tc_display_boxed_navbar:function(a){!1===a?d.addClass("no-navbar"):d.removeClass("no-navbar")},tc_header_layout:function(b){var c,d,h=f.attr("class").match(/logo-(left|right|centered)/);h&&h[0]&&(h=h[0],c="logo-right"==h?"pull-left":"pull-right",f.removeClass(h).addClass("logo-"+b),g.removeClass(c).addClass("right"==b?"pull-left":"pull-right"),"centered"!=b&&(d="logo-right"==h?"pull-right":"pull-left",e.removeClass(d).addClass("pull"+b)),setTimeout(function(){a(".brand").trigger("resize")},400))},tc_menu_position:function(b){if("aside"!=c(n("tc_menu_style")).get()&&("pull-menu-left"==b?a(".navbar-wrapper").addClass(b).removeClass("pull-menu-right"):a(".navbar-wrapper").addClass(b).removeClass("pull-menu-left")),h.length>0){var e=!1,f=d.attr("class").match(/sn-(left|right)(-\w+|$|\s)/);if(!(f&&f.length>2))return;d.hasClass("tc-sn-visible")&&(d.removeClass("tc-sn-visible"),e=!0),d.removeClass(f[0]).addClass(f[0].replace(f[1],b.substr(10))),e&&setTimeout(function(){g.trigger("click").trigger("touchstart")},200)}},tc_second_menu_position:function(b){"pull-menu-left"==b?a(".navbar-wrapper").addClass(b).removeClass("pull-menu-right"):a(".navbar-wrapper").addClass(b).removeClass("pull-menu-left")},tc_menu_submenu_fade_effect:function(b){!1!==b?a(".navbar-wrapper").addClass("tc-submenu-fade"):a(".navbar-wrapper").removeClass("tc-submenu-fade")},tc_menu_submenu_item_move_effect:function(b){!1!==b?a(".navbar-wrapper").addClass("tc-submenu-move"):a(".navbar-wrapper").removeClass("tc-submenu-move")},tc_sticky_header:function(b){!1!==b?d.addClass("tc-sticky-header").trigger("resize"):(d.removeClass("tc-sticky-header").trigger("resize"),a("#tc-reset-margin-top").css("margin-top",""))},tc_sticky_show_tagline:function(a){!1!==a?f.addClass("tc-tagline-on").removeClass("tc-tagline-off").trigger("resize"):f.addClass("tc-tagline-off").removeClass("tc-tagline-on").trigger("resize")},tc_sticky_show_title_logo:function(a){!1!==a?f.addClass("tc-title-logo-on").removeClass("tc-title-logo-off").trigger("resize"):f.addClass("tc-title-logo-off").removeClass("tc-title-logo-on").trigger("resize")},tc_sticky_shrink_title_logo:function(a){!1!==a?f.addClass("tc-shrink-on").removeClass("tc-shrink-off").trigger("resize"):f.addClass("tc-shrink-off").removeClass("tc-shrink-on").trigger("resize")},tc_sticky_show_menu:function(a){!1!==a?f.addClass("tc-menu-on").removeClass("tc-menu-off").trigger("resize"):f.addClass("tc-menu-off").removeClass("tc-menu-on").trigger("resize")},tc_sticky_z_index:function(b){a(".tc-no-sticky-header .tc-header, .tc-sticky-header .tc-header").css("z-index",b)},tc_sticky_transparent_on_scroll:function(a){!1!==a?(d.addClass("tc-transparent-on-scroll"),d.removeClass("tc-solid-color-on-scroll")):(d.removeClass("tc-transparent-on-scroll"),d.addClass("tc-solid-color-on-scroll"))},tc_woocommerce_header_cart_sticky:function(a){!1!==a?f.addClass("tc-wccart-on").removeClass("tc-wccart-off").trigger("resize"):f.addClass("tc-wccart-off").removeClass("tc-wccart-on").trigger("resize")}}),a.extend(j,{tc_slider_default_height:function(b){a("#customizr-slider").addClass("custom-slider-height"),a(".carousel .item").css("line-height",b+"px").css("max-height",b+"px").css("min-height",b+"px").trigger("resize"),a(".tc-slider-controls").css("line-height",b+"px").css("max-height",b+"px").trigger("resize")}}),a.extend(j,{tc_featured_text_one:function(b){a(".widget-front p.fp-text-one").html(b)},tc_featured_text_two:function(b){a(".widget-front p.fp-text-two").html(b)},tc_featured_text_three:function(b){a(".widget-front p.fp-text-three").html(b)},tc_featured_page_button_text:function(b){b?a(".fp-button").html(b).removeClass("hidden"):a(".fp-button").addClass("hidden")}});var l=[{_context:"home",_container:".home"},{_context:"single_post",_container:".single"},{_context:"post_lists",_container:"body:not(.single, .home)"}];a.extend(j,{tc_show_post_metas:function(b){var c=a(".entry-header .entry-meta",".article-container");!1===b?c.hide("slow"):d.hasClass("hide-post-metas")||(c.show("fast"),d.removeClass("hide-all-post-metas"))},tc_post_metas_update_notice_text:function(b){a(".tc-update-notice").html(b)},tc_post_metas_update_notice_format:function(b){a(".tc-update-notice").each(function(){var b=a(this).attr("class").split(" ");for(var c in b)-1!==b[c].indexOf("label-")&&b.splice(c,1);a(this).attr("class",b.join(" "))}),a(".tc-update-notice").addClass(b)}}),a.each(l,function(){var b=a(".entry-header .entry-meta",this._container+" .article-container");if(!1!=b.length>0)return j["tc_show_post_metas_"+this._context]=function(a){!1===a?(b.hide("slow"),d.addClass("hide-post-metas")):(b.show("fast"),d.removeClass("hide-post-metas"))},!1}),a.extend(j,{tc_show_post_navigation:function(b){var c=a("#nav-below");!1===b?c.hide("slow"):c.hasClass("hide-post-navigation")||c.removeClass("hide-all-post-navigation").show("fast")}});var m=[{_context:"page",_container:"body.page"},{_context:"home",_container:"body.blog.home"},{_context:"single",_container:"body.single"},{_context:"archive",_container:"body.archive"}];a.each(m,function(){var b=a("#nav-below",this._container);if(!1!=b.length>0)return j["tc_show_post_navigation_"+this._context]=function(a){!1===a?b.hide("slow").addClass("hide-post-navigation"):b.show("fast").removeClass("hide-post-navigation")},!1}),a.extend(j,{tc_post_list_thumb_height:function(b){a(".tc-rectangular-thumb").css("max-height",b+"px"),0!==a(".tc-rectangular-thumb").find("img").length&&a(".tc-rectangular-thumb").find("img").trigger("refresh-height")},tc_single_post_thumb_height:function(b){a(".tc-rectangular-thumb").css("height",b+"px").css("max-height",b+"px").trigger("refresh-height")}}),a.extend(j,{tc_social_in_header:function(b){!1===b?(a(".tc-header .social-block").hide("slow"),a(window).trigger("resize")):(a(".tc-header .social-block").show("fast"),a(window).trigger("resize"))},tc_social_in_footer:function(b){!1===b?(a(".tc-footer-social-links-wrapper","#footer").hide("slow"),a(window).trigger("resize")):(a(".tc-footer-social-links-wrapper","#footer").show("fast"),a(window).trigger("resize"))},"tc_social_in_left-sidebar":function(b){!1===b?(a("#left .social-block",".tc-sidebar").hide("slow"),a(window).trigger("resize")):(a("#left .social-block",".tc-sidebar").show("fast"),a(window).trigger("resize"))},"tc_social_in_right-sidebar":function(b){!1===b?(a("#right .social-block",".tc-sidebar").hide("slow"),a(window).trigger("resize")):(a("#right .social-block",".tc-sidebar").show("fast"),a(window).trigger("resize"))},tc_social_in_sidebar_title:function(b){a(".social-block .widget-title",".tc-sidebar").html(b),b?a(".social-block",".tc-sidebar").show("fast"):a(".social-block",".tc-sidebar").hide("slow")}}),a.extend(j,{tc_grid_shadow:function(b){!1!==b?a(".article-container").addClass("tc-grid-shadow"):a(".article-container").removeClass("tc-grid-shadow")},tc_grid_bottom_border:function(b){!1!==b?a(".article-container").addClass("tc-grid-border"):a(".article-container").removeClass("tc-grid-border")},tc_grid_icons:function(b){!1===b?a(".tc-grid-icon").each(function(){a(this).fadeOut()}):a(".tc-grid-icon").each(function(){a(this).fadeIn()})}}),a.extend(j,{tc_gallery_style:function(b){!1!==b?a(".article-container").addClass("tc-gallery-style"):a(".article-container").removeClass("tc-gallery-style")}}),a.extend(j,{tc_comment_bubble_color:function(b){a("#custom-bubble-color").remove();var c=a("