cl01/wp-content/themes/hester/inc/customizer/assets/js/customize-preview.min.js
2025-02-24 12:39:24 +08:00

1 line
53 KiB
JavaScript
Executable File

!function(e){var t,r,o=wp.customize,n=e("body"),i=(e("head"),"hester-hide-mobile hester-hide-tablet hester-hide-mobile-tablet"),a=[],h=[];function s(r){return a[r]?a[r]:((t=e("head").find("#hester-dynamic-"+r)).length||(e("head").append('<style id="hester-dynamic-'+r+'" type="text/css" href="#"></style>'),t=e("head").find("#hester-dynamic-"+r)),a[r]=t,t)}function c(e,t){e.length&&(e.removeClass(i),"all"!==t&&e.addClass("hester-"+t))}function l(e,t){if("rgba"===e.substring(0,4))return e;e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,r,o){return t+t+r+r+o+o}));var r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t&&(1<t&&(t=1),t=","+t),!!r&&"rgba("+parseInt(r[1],16)+","+parseInt(r[2],16)+","+parseInt(r[3],16)+t+")"}function d(e,t){e.includes("rgb")&&(e=function(e){var t,r;t=(t=e.split("(")[1].split(")")[0].trim()).split(",");for(var o="",n=0;3>n;n++)o+=1===(r=parseInt(t[n]).toString(16)).length?"0"+r:r;if(o)return"#"+o;return!1}(e));e=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,r,o){return t+t+r+r+o+o}));var r,o,n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);if(!/^#[0-9A-F]{6}$/i.test(e))return e;for(var i=1;3>=i;i++)n[i]=parseInt(n[i],16),r=0>t?0:n[i],o=0>t?n[i]:255,n[i]=n[i]+Math.ceil((o-r)*t);return n="#"+_(n[1])+_(n[2])+_(n[3])}function _(e){var t=e.toString(16);return 1==t.length?"0"+t:t}function u(e,t,r,o){if(Array.isArray(r)||"object"==typeof r){var n="px",i="";"unit"in r&&(n=r.unit);var a="",h="";return Object.keys(r).forEach((function(s,c){"unit"!==s&&(o?("tablet"===s?(a="@media only screen and (max-width: 768px) {",h="}"):"mobile"===s?(a="@media only screen and (max-width: 480px) {",h="}"):(a="",h=""),i+=a+e+"{",Object.keys(r[s]).forEach((function(e){"border"===t&&(e+="-width"),r[s][e]&&(i+=t+"-"+e+": "+r[s][e]+n+";")})),i+="}"+h):("border"===t&&(s+="-width"),i+=t+"-"+s+": "+r[s]+n+";"))})),o||(i=e+"{"+i+"}"),i}}function m(e,t,r,o,n){var i="",a="",h="";return o&&(Array.isArray(r)||"object"==typeof r)&&Object.keys(r).forEach((function(o,s){if(r[o]){if("tablet"===o)a="@media only screen and (max-width: 768px) {",h="}";else if("mobile"===o)a="@media only screen and (max-width: 480px) {",h="}";else{if("desktop"!==o)return;a="",h=""}i+=a+e+"{"+t+": "+r[o]+n+"; }"+h}})),o||(r=r.value?r.value:0,i=e+"{"+t+": "+r+n+"; }"),i}function b(e,t){var r="";return r+=e+"{","default"===t["font-family"]?r+="font-family: "+hester_customizer_preview.default_system_font+";":t["font-family"]in hester_customizer_preview.fonts.standard_fonts.fonts?r+="font-family: "+hester_customizer_preview.fonts.standard_fonts.fonts[t["font-family"]].fallback+";":"inherit"!==t["font-family"]&&(r+='font-family: "'+t["font-family"]+'";'),r+="font-weight:"+t["font-weight"]+";",r+="font-style:"+t["font-style"]+";",r+="text-transform:"+t["text-transform"]+";","text-decoration"in t&&(r+="text-decoration:"+t["text-decoration"]+";"),"letter-spacing"in t&&(r+="letter-spacing:"+t["letter-spacing"]+t["letter-spacing-unit"]+";"),"line-height-desktop"in t&&(r+="line-height:"+t["line-height-desktop"]+";"),"font-size-desktop"in t&&"font-size-unit"in t&&(r+="font-size:"+t["font-size-desktop"]+t["font-size-unit"]+";"),r+="}","font-size-tablet"in t&&t["font-size-tablet"]&&(r+="@media only screen and (max-width: 768px) {"+e+"{font-size: "+t["font-size-tablet"]+t["font-size-unit"]+";}}"),"line-height-tablet"in t&&t["line-height-tablet"]&&(r+="@media only screen and (max-width: 768px) {"+e+"{line-height:"+t["line-height-tablet"]+";}}"),"font-size-mobile"in t&&t["font-size-mobile"]&&(r+="@media only screen and (max-width: 480px) {"+e+"{font-size: "+t["font-size-mobile"]+t["font-size-unit"]+";}}"),"line-height-mobile"in t&&t["line-height-mobile"]&&(r+="@media only screen and (max-width: 480px) {"+e+"{line-height:"+t["line-height-mobile"]+";}}"),r}function f(t){if(hester_customizer_preview.fonts.google_fonts.fonts[t])(function(t,o){h[t]?h[t]:((r=e("head").find("#hester-dynamic-link-"+t)).length?r.attr("href",o):(e("head").append('<link id="hester-dynamic-'+t+'" type="text/css" rel="stylesheet" href="'+o+'"/>'),r=e("head").find("#hester-dynamic-link-"+t)),h[t]=r)})("google-font-"+t.trim().toLowerCase().replace(" ","-"),hester_customizer_preview.google_fonts_url+"/css?family="+t+":"+hester_customizer_preview.google_font_weights)}function p(e,t,r){var o="";if("background"===r){var n=t["background-type"];o+=e+"{","color"===n?(t["background-color"]=t["background-color"]?t["background-color"]:"inherit",o+="background: "+t["background-color"]+";"):"gradient"===n?(o+="background: "+t["gradient-color-1"]+";","linear"===t["gradient-type"]?o+="background: -webkit-linear-gradient("+t["gradient-linear-angle"]+"deg, "+t["gradient-color-1"]+" "+t["gradient-color-1-location"]+"%, "+t["gradient-color-2"]+" "+t["gradient-color-2-location"]+"%);background: -o-linear-gradient("+t["gradient-linear-angle"]+"deg, "+t["gradient-color-1"]+" "+t["gradient-color-1-location"]+"%, "+t["gradient-color-2"]+" "+t["gradient-color-2-location"]+"%);background: linear-gradient("+t["gradient-linear-angle"]+"deg, "+t["gradient-color-1"]+" "+t["gradient-color-1-location"]+"%, "+t["gradient-color-2"]+" "+t["gradient-color-2-location"]+"%);":"radial"===t["gradient-type"]&&(o+="background: -webkit-radial-gradient("+t["gradient-position"]+", circle, "+t["gradient-color-1"]+" "+t["gradient-color-1-location"]+"%, "+t["gradient-color-2"]+" "+t["gradient-color-2-location"]+"%);background: -o-radial-gradient("+t["gradient-position"]+", circle, "+t["gradient-color-1"]+" "+t["gradient-color-1-location"]+"%, "+t["gradient-color-2"]+" "+t["gradient-color-2-location"]+"%);background: radial-gradient(circle at "+t["gradient-position"]+", "+t["gradient-color-1"]+" "+t["gradient-color-1-location"]+"%, "+t["gradient-color-2"]+" "+t["gradient-color-2-location"]+"%);")):"image"===n&&(o+="background-image: url("+t["background-image"]+");background-size: "+t["background-size"]+";background-attachment: "+t["background-attachment"]+";background-position: "+t["background-position-x"]+"% "+t["background-position-y"]+"%;background-repeat: "+t["background-repeat"]+";"),o+="}","image"===n&&t["background-color-overlay"]&&t["background-image"]?o+=e+"::after { background-color: "+t["background-color-overlay"]+"; }":o+=e+"::after { background-color: initial; }"}else"color"===r?(t["text-color"]=t["text-color"]?t["text-color"]:"inherit",t["link-color"]=t["link-color"]?t["link-color"]:"inherit",t["link-hover-color"]=t["link-hover-color"]?t["link-hover-color"]:"inherit",o+=e+" { color: "+t["text-color"]+"; }",o+=e+" a { color: "+t["link-color"]+"; }",o+=e+" a:hover { color: "+t["link-hover-color"]+" !important; }"):"border"===r?(t["border-color"]=t["border-color"]?t["border-color"]:"inherit",t["border-style"]=t["border-style"]?t["border-style"]:"solid",t["border-left-width"]=t["border-left-width"]?t["border-left-width"]:0,t["border-top-width"]=t["border-top-width"]?t["border-top-width"]:0,t["border-right-width"]=t["border-right-width"]?t["border-right-width"]:0,t["border-bottom-width"]=t["border-bottom-width"]?t["border-bottom-width"]:0,o+=e+"{",o+="border-color: "+t["border-color"]+";",o+="border-style: "+t["border-style"]+";",o+="border-left-width: "+t["border-left-width"]+"px;",o+="border-top-width: "+t["border-top-width"]+"px;",o+="border-right-width: "+t["border-right-width"]+"px;",o+="border-bottom-width: "+t["border-bottom-width"]+"px;",o+="}"):"separator_color"===r&&(o+=e+":after{ background-color: "+t["separator-color"]+"; }");return o}o("hester_logo_max_height",(function(r){r.bind((function(r){if(e(".hester-logo").length){t=s("hester_logo_max_height");var o="";o+=m(".hester-logo img","max-height",r,!0,"px"),o+=m(".hester-logo img.hester-svg-logo","height",r,!0,"px"),t.html(o)}}))})),o("hester_logo_text_font_size",(function(r){r.bind((function(r){if(e("#hester-header .hester-logo .site-title").length){t=s("hester_logo_text_font_size");var o="";o+=m("#hester-header .hester-logo .site-title","font-size",r,!0,r.unit),t.html(o)}}))})),o("hester_logo_margin",(function(r){r.bind((function(r){if(e(".hester-logo").length){t=s("hester_logo_margin");var o=u(".hester-logo .logo-inner","margin",r,!0);t.html(o)}}))})),o("blogdescription",(function(t){t.bind((function(t){e(".hester-logo").find(".site-description").length&&e(".hester-logo").find(".site-description").html(t)}))})),o("blogname",(function(t){t.bind((function(t){e(".hester-logo").find(".site-title").length&&e(".hester-logo").find(".site-title").find("a").html(t)}))})),o("hester_site_layout",(function(e){e.bind((function(e){n.removeClass((function(e,t){return(t.match(/(^|\s)hester-layout__(?!boxed-separated)\S+/g)||[]).join(" ")})),n.addClass("hester-layout__"+e)}))})),o("hester_sidebar_sticky",(function(e){e.bind((function(e){n.removeClass((function(e,t){return(t.match(/(^|\s)hester-sticky-\S+/g)||[]).join(" ")})),e&&n.addClass("hester-sticky-"+e)}))})),o("hester_sidebar_width",(function(r){r.bind((function(r){if(e("#secondary").length){t=s("hester_sidebar_width");var o="#secondary { width: "+r.value+"%; }";o+="body:not(.hester-no-sidebar) #primary { max-width: "+(100-parseInt(r.value))+"%;};",t.html(o)}}))})),o("hester_sidebar_style",(function(e){e.bind((function(e){n.removeClass((function(e,t){return(t.match(/(^|\s)hester-sidebar-style-\S+/g)||[]).join(" ")})),n.addClass("hester-sidebar-style-"+e)}))})),o("hester_sidebar_responsive_position",(function(e){e.bind((function(e){n.removeClass((function(e,t){return(t.match(/(^|\s)hester-sidebar-r__\S+/g)||[]).join(" ")})),e&&n.addClass("hester-sidebar-r__"+e)}))})),o("hester_blog_image_position",(function(t){t.bind((function(t){e(".hester-blog-entry-wrapper").removeClass((function(e,t){return(t.match(/(^|\s)hester-thumb-\S+/g)||[]).join(" ")})),e(".hester-blog-entry-wrapper").addClass("hester-thumb-"+t)}))})),o("hester_single_title_alignment",(function(e){e.bind((function(e){n.removeClass((function(e,t){return(t.match(/(^|\s)hester-page-title-align-\S+/g)||[]).join(" ")})),n.addClass("hester-page-title-align-"+e)}))})),o("hester_single_title_spacing",(function(r){r.bind((function(r){if(e(".page-header").length){t=s("hester_single_title_spacing");var o=u(".hester-single-title-in-page-header #page .page-header .hester-page-header-wrapper","padding",r,!0);t.html(o)}}))})),o("hester_single_narrow_container_width",(function(e){e.bind((function(e){t=s("hester_single_narrow_container_width");var r="";r+='.single-post.narrow-content .entry-content > :not([class*="align"]):not([class*="gallery"]):not(.wp-block-image):not(.quote-inner):not(.quote-post-bg), .single-post.narrow-content .mce-content-body:not([class*="page-template-full-width"]) > :not([class*="align"]):not([data-wpview-type*="gallery"]):not(blockquote):not(.mceTemp), .single-post.narrow-content .entry-footer, .single-post.narrow-content .post-nav, .single-post.narrow-content .entry-content > .alignwide, .single-post.narrow-content p.has-background:not(.alignfull):not(.alignwide).single-post.narrow-content #hester-comments-toggle, .single-post.narrow-content #comments, .single-post.narrow-content .entry-content .aligncenter, .single-post.narrow-content .hester-narrow-element, .single-post.narrow-content.hester-single-title-in-content .entry-header, .single-post.narrow-content.hester-single-title-in-content .entry-meta, .single-post.narrow-content.hester-single-title-in-content .post-category, .single-post.narrow-content.hester-no-sidebar .hester-page-header-wrapper, .single-post.narrow-content.hester-no-sidebar .hester-breadcrumbs > .hester-container > nav {max-width: '+parseInt(e.value)+"px; margin-left: auto; margin-right: auto; }",r+=".single-post.narrow-content .author-box, .single-post.narrow-content .entry-content > .alignwide { max-width: "+(parseInt(e.value)+70)+"px;}",t.html(r)}))})),o("hester_single_content_font_size",(function(r){r.bind((function(r){if(e(".single-post").length){t=s("hester_single_content_font_size");var o="";o+=m(".single-post .entry-content","font-size",r,!0,r.unit),t.html(o)}}))})),o("hester_header_container_width",(function(t){t.bind((function(t){var r=e("#hester-header");r.length&&("full-width"===t?r.addClass("hester-container__wide"):r.removeClass("hester-container__wide"))}))})),o("hester_main_nav_mobile_breakpoint",(function(r){r.bind((function(r){if(e("#hester-header-inner .hester-nav").length){t=s("hester_main_nav_mobile_breakpoint");var o="";o+="@media screen and (min-width: "+parseInt(r)+"px) {#hester-header-inner .hester-nav {display:flex} .hester-mobile-nav,.hester-mobile-toggen,#hester-header-inner .hester-nav .menu-item-has-children>a > .hester-icon,#hester-header-inner .hester-nav .page_item_has_children>a > .hester-icon {display:none;} }",o+="@media screen and (max-width: "+parseInt(r)+"px) {#hester-header-inner .hester-nav {display:none} .hester-mobile-nav,.hester-mobile-toggen {display:inline-flex;} }",t.html(o)}}))})),o("hester_main_nav_mobile_label",(function(t){t.bind((function(t){e(".hester-hamburger-hester-primary-nav").find(".hamburger-label").length&&e(".hester-hamburger-hester-primary-nav").find(".hamburger-label").html(t)}))})),o("hester_main_nav_font_color",(function(r){r.bind((function(r){if(e("#hester-header-inner .hester-nav").length){t=s("hester_main_nav_font_color");var n="";r["link-color"]=r["link-color"]?r["link-color"]:"inherit",n+="#hester-header-inner .hester-nav > ul > li > a { color: "+r["link-color"]+"; }",r["link-hover-color"]=r["link-hover-color"]?r["link-hover-color"]:o.value("hester_accent_color")(),n+="#hester-header-inner .hester-nav > ul > li > a:hover, #hester-header-inner .hester-nav > ul > li.menu-item-has-children:hover > a, #hester-header-inner .hester-nav > ul > li.current-menu-item > a, #hester-header-inner .hester-nav > ul > li.current-menu-ancestor > a #hester-header-inner .hester-nav > ul > li.page_item_has_children:hover > a, #hester-header-inner .hester-nav > ul > li.current_page_item > a, #hester-header-inner .hester-nav > ul > li.current_page_ancestor > a { color: "+r["link-hover-color"]+"; }",t.html(n)}}))})),o("hester_main_nav_background",(function(r){r.bind((function(r){if(e(".hester-header-layout-3 .hester-nav-container").length){t=s("hester_main_nav_background");var o=p(".hester-header-layout-3 .hester-nav-container",r,"background");t.html(o)}}))})),o("hester_main_nav_border",(function(r){r.bind((function(r){if(e(".hester-header-layout-3 .hester-nav-container").length){t=s("hester_main_nav_border");var o=p(".hester-header-layout-3 .hester-nav-container",r,"border");t.html(o)}}))})),o("hester_main_nav_font_size",(function(r){r.bind((function(r){if(e("#hester-header-inner").length){t=s("hester_main_nav_font_size");var o="";o+=m(".hester-nav.hester-header-element, .hester-header-layout-1 .hester-header-widgets, .hester-header-layout-2 .hester-header-widgets","font-size",r,!1,r.unit),t.html(o)}}))})),o("hester_top_bar_container_width",(function(t){t.bind((function(t){var r=e("#hester-topbar");r.length&&("full-width"===t?r.addClass("hester-container__wide"):r.removeClass("hester-container__wide"))}))})),o("hester_top_bar_visibility",(function(t){t.bind((function(t){c(e("#hester-topbar"),t)}))})),o("hester_top_bar_widgets_separator",(function(e){e.bind((function(e){n.removeClass((function(e,t){return(t.match(/(^|\s)hester-topbar__separators-\S+/g)||[]).join(" ")})),n.addClass("hester-topbar__separators-"+e)}))})),o("hester_top_bar_background",(function(r){r.bind((function(r){if(e("#hester-topbar").length){t=s("hester_top_bar_background");var o=p("#hester-topbar",r,"background");t.html(o)}}))})),o("hester_top_bar_text_color",(function(r){r.bind((function(r){if(e("#hester-topbar").length){t=s("hester_top_bar_text_color");var o="";r["text-color"]=r["text-color"]?r["text-color"]:"inherit",r["link-color"]=r["link-color"]?r["link-color"]:"inherit",r["link-hover-color"]=r["link-hover-color"]?r["link-hover-color"]:"inherit",o+="#hester-topbar { color: "+r["text-color"]+"; }",o+=".hester-topbar-widget__text a, .hester-topbar-widget .hester-nav > ul > li > a, .hester-topbar-widget__socials .hester-social-nav > ul > li > a, #hester-topbar .hester-topbar-widget__text .hester-icon { color: "+r["link-color"]+"; }",o+="#hester-topbar .hester-nav > ul > li > a:hover, #hester-topbar .hester-nav > ul > li.menu-item-has-children:hover > a, #hester-topbar .hester-nav > ul > li.current-menu-item > a, #hester-topbar .hester-nav > ul > li.current-menu-ancestor > a, #hester-topbar .hester-topbar-widget__text a:hover, #hester-topbar .hester-social-nav > ul > li > a .hester-icon.bottom-icon { color: "+r["link-hover-color"]+"; }",t.html(o)}}))})),o("hester_top_bar_border",(function(r){r.bind((function(r){if(e("#hester-topbar").length){t=s("hester_top_bar_border");var o=p("#hester-topbar",r,"border");o+=p("#hester-topbar .hester-topbar-widget",r,"separator_color"),t.html(o)}}))})),o("hester_main_nav_hover_animation",(function(e){e.bind((function(e){n.removeClass((function(e,t){return(t.match(/(^|\s)hester-menu-animation-\S+/g)||[]).join(" ")})),n.addClass("hester-menu-animation-"+e)}))})),o("hester_header_widgets_separator",(function(e){e.bind((function(e){n.removeClass((function(e,t){return(t.match(/(^|\s)hester-header__separators-\S+/g)||[]).join(" ")})),n.addClass("hester-header__separators-"+e)}))})),o("hester_header_background",(function(r){r.bind((function(r){if(e("#hester-header-inner").length){t=s("hester_header_background");var o=p("#hester-header-inner",r,"background");"color"===r["background-type"]&&r["background-color"]?o+=".hester-header-widget__cart .hester-cart .hester-cart-count { border: 2px solid "+r["background-color"]+"; }":o+=".hester-header-widget__cart .hester-cart .hester-cart-count { border: none; }",t.html(o)}}))})),o("hester_header_text_color",(function(r){r.bind((function(r){if(e("#hester-header").length){t=s("hester_header_text_color");var o="";o+=".hester-logo .site-description { color: "+r["text-color"]+"; }",r["link-color"]&&(o+="#hester-header, .hester-header-widgets a:not(.hester-btn), .hester-logo a,.hester-hamburger { color: "+r["link-color"]+"; }",o+=".hamburger-inner,.hamburger-inner::before,.hamburger-inner::after { background-color: "+r["link-color"]+"; }"),r["link-hover-color"]&&(o+=".hester-header-widgets a:not(.hester-btn):hover, #hester-header-inner .hester-header-widgets .hester-active,.hester-logo .site-title a:hover, .hester-hamburger:hover .hamburger-label, .is-mobile-menu-active .hester-hamburger .hamburger-label,#hester-header-inner .hester-nav > ul > li > a:hover,#hester-header-inner .hester-nav > ul > li.menu-item-has-children:hover > a,#hester-header-inner .hester-nav > ul > li.current-menu-item > a,#hester-header-inner .hester-nav > ul > li.current-menu-ancestor > a,#hester-header-inner .hester-nav > ul > li.page_item_has_children:hover > a,#hester-header-inner .hester-nav > ul > li.current_page_item > a,#hester-header-inner .hester-nav > ul > li.current_page_ancestor > a { color: "+r["link-hover-color"]+"; }",o+=".hester-hamburger:hover .hamburger-inner,.hester-hamburger:hover .hamburger-inner::before,.hester-hamburger:hover .hamburger-inner::after,.is-mobile-menu-active .hester-hamburger .hamburger-inner,.is-mobile-menu-active .hester-hamburger .hamburger-inner::before,.is-mobile-menu-active .hester-hamburger .hamburger-inner::after { background-color: "+r["link-hover-color"]+"; }"),t.html(o)}}))})),o("hester_header_border",(function(r){r.bind((function(r){if(e("#hester-header-inner").length){t=s("hester_header_border");var o=p("#hester-header-inner",r,"border");r["separator-color"]=r["separator-color"]?r["separator-color"]:"inherit",o+=".hester-header-widget:after { background-color: "+r["separator-color"]+"; }",t.html(o)}}))})),o("hester_hero_hover_slider_container",(function(t){t.bind((function(t){var r=e("#hero .hester-hero-container");r.length&&("full-width"===t?r.addClass("hester-container__wide"):r.removeClass("hester-container__wide"))}))})),o("hester_hero_hover_slider_overlay",(function(t){t.bind((function(t){var r=e("#hero .hester-hover-slider");r.length&&r.removeClass((function(e,t){return(t.match(/(^|\s)slider-overlay-\S+/g)||[]).join(" ")})).addClass("slider-overlay-"+t)}))})),o("hester_hero_hover_slider_height",(function(t){t.bind((function(t){var r=e("#hero");r.length&&r.find(".hover-slide-item").css("height",t.value+"px")}))})),o("hester_hero_visibility",(function(t){t.bind((function(t){c(e("#hero"),t)}))})),o("hester_pyml_title",(function(t){t.bind((function(t){e("#pyml .widget-title").text(t)}))})),o("hester_pyml_container",(function(t){t.bind((function(t){var r=e("#pyml .hester-pyml-container");r.length&&("full-width"===t?r.addClass("hester-container__wide"):r.removeClass("hester-container__wide"))}))})),o("hester_pyml_visibility",(function(t){t.bind((function(t){c(e("#pyml"),t)}))})),o("hester_ticker_title",(function(t){t.bind((function(t){e("#ticker .ticker-title .title").text(t)}))})),o("hester_ticker_container",(function(t){t.bind((function(t){var r=e("#ticker .hester-ticker-container");r.length&&("full-width"===t?r.addClass("hester-container__wide"):r.removeClass("hester-container__wide"))}))})),o("hester_ticker_visibility",(function(t){t.bind((function(t){c(e("#ticker"),t)}))})),o("hester_custom_input_style",(function(e){e.bind((function(e){e?n.addClass("hester-input-supported"):n.removeClass("hester-input-supported")}))})),o("hester_enable_pre_footer_cta",(function(e){e.bind((function(e){e?n.addClass("hester-pre-footer-cta-style-"+o.value("hester_pre_footer_cta_style")()):n.removeClass((function(e,t){return(t.match(/(^|\s)hester-pre-footer-cta-style-\S+/g)||[]).join(" ")}))}))})),o("hester_pre_footer_cta_visibility",(function(t){t.bind((function(t){var r=e(".hester-pre-footer-cta");r.length&&c(r,t)}))})),o("hester_pre_footer_cta_text",(function(t){t.bind((function(t){var r=e("#hester-pre-footer .hester-pre-footer-cta");r.length&&r.find("p.h3").html(t)}))})),o("hester_pre_footer_cta_style",(function(e){e.bind((function(e){n.removeClass((function(e,t){return(t.match(/(^|\s)hester-pre-footer-cta-style-\S+/g)||[]).join(" ")})).addClass("hester-pre-footer-cta-style-"+o.value("hester_pre_footer_cta_style")())}))})),o("hester_pre_footer_cta_btn_text",(function(t){t.bind((function(t){var r=e("#hester-pre-footer .hester-pre-footer-cta");r.length&&(t?r.find("a").css("display","inline-flex").html(t):r.find("a").css("display","none").html(""))}))})),o("hester_pre_footer_cta_background",(function(r){r.bind((function(r){if(e("#hester-pre-footer .hester-pre-footer-cta").length){t=s("hester_pre_footer_cta_background");var o="";"color"===r["background-type"]?(o+=p(".hester-pre-footer-cta-style-1 #hester-pre-footer .hester-flex-row::before, .hester-pre-footer-cta-style-2 #hester-pre-footer::before",r,"background"),o+=".hester-pre-footer-cta-style-1 #hester-pre-footer .hester-flex-row::after,.hester-pre-footer-cta-style-2 #hester-pre-footer::after{ background-image: none; }"):(o+=p(".hester-pre-footer-cta-style-1 #hester-pre-footer .hester-flex-row::after",r,"background"),o+=p(".hester-pre-footer-cta-style-2 #hester-pre-footer::after",r,"background")),"image"===r["background-type"]&&r["background-color-overlay"]&&r["background-image"]&&(o+=".hester-pre-footer-cta-style-1 #hester-pre-footer .hester-flex-row::before,.hester-pre-footer-cta-style-2 #hester-pre-footer::before{ background-color: "+r["background-color-overlay"]+"; }"),t.html(o)}}))})),o("hester_pre_footer_cta_text_color",(function(r){r.bind((function(r){if(e("#hester-pre-footer .hester-pre-footer-cta").length){t=s("hester_pre_footer_cta_text_color");var o="";o+=p("#hester-pre-footer .h2",r,"color"),o+=p("#hester-pre-footer .h3",r,"color"),o+=p("#hester-pre-footer .h4",r,"color"),t.html(o)}}))})),o("hester_pre_footer_cta_border",(function(r){r.bind((function(r){if(e("#hester-pre-footer .hester-pre-footer-cta").length){t=s("hester_pre_footer_cta_border");var o=p(".hester-pre-footer-cta-style-1 #hester-pre-footer .hester-flex-row::before, .hester-pre-footer-cta-style-2 #hester-pre-footer::before",r,"border");t.html(o)}}))})),o("hester_pre_footer_cta_font_size",(function(r){r.bind((function(r){if(e("#hester-pre-footer .hester-pre-footer-cta").length){t=s("hester_pre_footer_cta_font_size");var o=m("#hester-pre-footer .h3","font-size",r,!0,r.unit);t.html(o)}}))})),o("hester_product_sale_badge_text",(function(t){t.bind((function(t){var r=e(".woocommerce ul.products li.product .onsale, .woocommerce span.onsale").not(".sold-out");r.length&&r.html(t)}))})),o("hester_accent_color",(function(e){e.bind((function(e){var r;t=s("hester_accent_color"),r=":root { --hester-primary: "+e+";--hester-primary_15: "+d(e,.15)+";--hester-primary_09: "+l(e,.09)+";--hester-primary_04: "+l(e,.04)+";}",r+=".hester-pre-footer-cta-style-1 #hester-pre-footer .hester-flex-row::before,.hester-pre-footer-cta-style-2 #hester-pre-footer::before { background: linear-gradient(to right, "+l(e,.9)+" 0%, "+l(e,.82)+" 35%, "+l(e,.4)+" 100% );-webkit-gradient(linear, left top, right top, from("+l(e,.9)+"), color-stop(35%, "+l(e,.82)+"), to("+l(e,.4)+")); }",t.html(r)}))})),o("hester_boxed_content_background_color",(function(e){e.bind((function(e){var r="";e&&(r=".hester-layout__boxed #page, .hester-layout__boxed-separated #content, .hester-layout__boxed-separated.hester-sidebar-style-3 #secondary .hester-widget, .hester-layout__boxed-separated.hester-sidebar-style-3 .elementor-widget-sidebar .hester-widget, .hester-layout__boxed-separated.blog .hester-article, .hester-layout__boxed-separated.search-results .hester-article, .hester-layout__boxed-separated.category .hester-article { background-color: "+e+"; }",r+="@media screen and (max-width: 960px) { .hester-layout__boxed-separated #page { background-color: "+e+"; }}"),(t=s("hester_boxed_content_background_color")).html(r)}))})),o("hester_content_text_color",(function(e){e.bind((function(e){t=s("hester_content_text_color");var r="";e&&(r="body { color: "+e+";}:root { --hester-secondary_38: "+e+";}.comment-form .comment-notes, #comments .no-comments, #page .wp-caption .wp-caption-text,#comments .comment-meta,.comments-closed,.entry-meta,.hester-entry cite,legend,.hester-page-header-description,.page-links em,.site-content .page-links em,.single .entry-footer .last-updated,.single .post-nav .post-nav-title,#main .widget_recent_comments span,#main .widget_recent_entries span,#main .widget_calendar table > caption,.post-thumb-caption, .wp-block-image figcaption, .hester-cart-item .hester-x,.woocommerce form.login .lost_password a,.woocommerce form.register .lost_password a,.woocommerce a.remove,#add_payment_method .cart-collaterals .cart_totals .woocommerce-shipping-destination, .woocommerce-cart .cart-collaterals .cart_totals .woocommerce-shipping-destination, .woocommerce-checkout .cart-collaterals .cart_totals .woocommerce-shipping-destination,.woocommerce ul.products li.product .hester-loop-product__category-wrap a,.woocommerce ul.products li.product .hester-loop-product__category-wrap,.woocommerce .woocommerce-checkout-review-order table.shop_table thead th,#add_payment_method #payment div.payment_box, .woocommerce-cart #payment div.payment_box, .woocommerce-checkout #payment div.payment_box,#add_payment_method #payment ul.payment_methods .about_paypal, .woocommerce-cart #payment ul.payment_methods .about_paypal, .woocommerce-checkout #payment ul.payment_methods .about_paypal,.woocommerce table dl,.woocommerce table .wc-item-meta,.widget.woocommerce .reviewer,.woocommerce.widget_shopping_cart .cart_list li a.remove:before,.woocommerce .widget_shopping_cart .cart_list li a.remove:before,.woocommerce .widget_shopping_cart .cart_list li .quantity, .woocommerce.widget_shopping_cart .cart_list li .quantity,.woocommerce div.product .woocommerce-product-rating .woocommerce-review-link,.woocommerce div.product .woocommerce-tabs table.shop_attributes td,.woocommerce div.product .product_meta > span span:not(.hester-woo-meta-title), .woocommerce div.product .product_meta > span a,.woocommerce .star-rating::before,.woocommerce div.product #reviews #comments ol.commentlist li .comment-text p.meta,.ywar_review_count,.woocommerce .add_to_cart_inline del, .woocommerce div.product p.price del, .woocommerce div.product span.price del { color: "+l(e,.75)+"; }"),t.html(r)}))})),o("hester_content_link_hover_color",(function(e){e.bind((function(e){var r="";e&&(r+=".content-area a:not(.hester-btn):not(.wp-block-button__link):hover, .hester-woo-before-shop select.custom-select-loaded:hover ~ #hester-orderby, #add_payment_method #payment ul.payment_methods .about_paypal:hover, .woocommerce-cart #payment ul.payment_methods .about_paypal:hover, .woocommerce-checkout #payment ul.payment_methods .about_paypal:hover, .hester-breadcrumbs a:hover, .woocommerce div.product .woocommerce-product-rating .woocommerce-review-link:hover, .woocommerce ul.products li.product .meta-wrap .woocommerce-loop-product__link:hover, .woocommerce ul.products li.product .hester-loop-product__category-wrap a:hover { color: "+e+";}"),(t=s("hester_content_link_hover_color")).html(r)}))})),o("hester_headings_color",(function(e){e.bind((function(e){var r="";e&&(r="h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .hester-logo .site-title, .error-404 .page-header h1 { color: "+e+";} :root { --hester-secondary: "+e+";}"),(t=s("hester_headings_color")).html(r)}))})),o("hester_scroll_top_visibility",(function(t){t.bind((function(t){c(e("#hester-scroll-top"),t)}))})),o("hester_preloader_visibility",(function(t){t.bind((function(t){c(e("#hester-preloader"),t)}))})),o("hester_footer_visibility",(function(t){t.bind((function(t){c(e("#hester-footer"),t)}))})),o("hester_footer_widget_heading_style",(function(e){e.bind((function(e){n.removeClass((function(e,t){return(t.match(/(^|\s)is-footer-heading-init-s\S+/g)||[]).join(" ")})).addClass("is-footer-heading-init-s"+o.value("hester_footer_widget_heading_style")())}))})),o("hester_footer_background",(function(r){r.bind((function(r){if(e("#colophon").length){t=s("hester_footer_background");var o=p("#colophon",r,"background");t.html(o)}}))})),o("hester_footer_text_color",(function(r){var o,n,i=e("#hester-footer");r.bind((function(e){i.length&&(t=s("hester_footer_text_color"),n="",e["text-color"]=e["text-color"]?e["text-color"]:"inherit",e["link-color"]=e["link-color"]?e["link-color"]:"inherit",e["link-hover-color"]=e["link-hover-color"]?e["link-hover-color"]:"inherit",e["widget-title-color"]=e["widget-title-color"]?e["widget-title-color"]:"inherit",n+="#colophon { color: "+e["text-color"]+"; }",n+="#colophon a { color: "+e["link-color"]+"; }",n+="#colophon a:not(.hester-btn):hover, #colophon li.current_page_item > a, #colophon .hester-social-nav > ul > li > a .hester-icon.bottom-icon { color: "+e["link-hover-color"]+"; }",n+="#colophon .widget-title, #colophon .wp-block-heading { color: "+e["widget-title-color"]+"; }",o=function(e,t="#000000",r="#FFFFFF"){return function(e=""){var t,r,o;return e.match(/^rgb/)?(t=(e=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/))[1],r=e[2],o=e[3]):(t=(e=+("0x"+e.slice(1).replace(5>e.length&&/./g,"$&$&")))>>16,r=e>>8&255,o=255&e),137<(299*t+587*r+114*o)/1e3}(e)?t:r}(e["text-color"],"rgba(255,255,255,0.1)","rgba(0,0,0,0.1)"),n+="#hester-copyright.contained-separator > .hester-container:before { background-color: "+o+"; }",n+="#hester-copyright.fw-separator { border-top-color: "+o+"; }",t.html(n))}))})),o("hester_footer_border",(function(r){r.bind((function(r){if(e("#hester-footer").length){t=s("hester_footer_border");var o="";r["border-top-width"]&&(o+="#colophon { border-top-width: "+r["border-top-width"]+"px;border-top-style: "+r["border-style"]+";border-top-color: "+r["border-color"]+";}"),r["border-bottom-width"]&&(o+="#colophon { border-bottom-width: "+r["border-bottom-width"]+"px;border-bottom-style: "+r["border-style"]+";border-bottom-color: "+r["border-color"]+";}"),t.html(o)}}))})),o("hester_copyright_layout",(function(e){e.bind((function(e){n.removeClass((function(e,t){return(t.match(/(^|\s)hester-copyright-layout-\S+/g)||[]).join(" ")})),n.addClass("hester-copyright-"+e)}))})),o("hester_copyright_separator",(function(t){t.bind((function(t){var r=e("#hester-copyright");r.length&&(r.removeClass("fw-separator contained-separator"),"none"!==t&&r.addClass(t))}))})),o("hester_copyright_visibility",(function(t){t.bind((function(t){c(e("#hester-copyright"),t)}))})),o("hester_copyright_background",(function(r){r.bind((function(r){if(e("#hester-copyright").length){t=s("hester_copyright_background");var o=p("#hester-copyright",r,"background");t.html(o)}}))})),o("hester_copyright_text_color",(function(r){r.bind((function(r){if(e("#hester-copyright").length){t=s("hester_copyright_text_color");var o="";r["text-color"]=r["text-color"]?r["text-color"]:"inherit",r["link-color"]=r["link-color"]?r["link-color"]:"inherit",r["link-hover-color"]=r["link-hover-color"]?r["link-hover-color"]:"inherit",o+="#hester-copyright { color: "+r["text-color"]+"; }",o+="#hester-copyright a { color: "+r["link-color"]+"; }",o+="#hester-copyright a:hover, #hester-copyright .hester-social-nav > ul > li > a .hester-icon.bottom-icon, #hester-copyright li.current_page_item > a, #hester-copyright .hester-nav > ul > li.current-menu-item > a, #hester-copyright .hester-nav > ul > li.current-menu-ancestor > a #hester-copyright .hester-nav > ul > li:hover > a, #hester-copyright .hester-social-nav > ul > li > a .hester-icon.bottom-icon { color: "+r["link-hover-color"]+"; }",t.html(o)}}))})),o("hester_container_width",(function(e){e.bind((function(e){var r;t=s("hester_container_width"),r=".hester-container,.alignfull > div { max-width: "+e.value+"px;}",r+=".hester-layout__boxed #page, .hester-layout__boxed.hester-sticky-header.hester-is-mobile #hester-header-inner, .hester-layout__boxed.hester-sticky-header:not(.hester-header-layout-3) #hester-header-inner, .hester-layout__boxed.hester-sticky-header:not(.hester-is-mobile).hester-header-layout-3 #hester-header-inner .hester-nav-container > .hester-container { max-width: "+(parseInt(e.value)+100)+"px; }",t.html(r)}))})),o("hester_tsp_logo_max_height",(function(r){r.bind((function(r){if(e(".hester-tsp-header .hester-logo").length){t=s("hester_tsp_logo_max_height");var o="";o+=m(".hester-tsp-header .hester-logo img","max-height",r,!0,"px"),o+=m(".hester-tsp-header .hester-logo img.hester-svg-logo","height",r,!0,"px"),t.html(o)}}))})),o("hester_tsp_logo_margin",(function(r){r.bind((function(r){if(e(".hester-tsp-header .hester-logo").length){t=s("hester_tsp_logo_margin");var o=u(".hester-tsp-header .hester-logo .logo-inner","margin",r,!0);t.html(o)}}))})),o("hester_tsp_header_background",(function(r){r.bind((function(r){if(e(".hester-tsp-header").length){t=s("hester_tsp_header_background");var o="";o+=p(".hester-tsp-header #hester-header-inner",r,"background"),t.html(o)}}))})),o("hester_tsp_header_font_color",(function(r){r.bind((function(r){if(e(".hester-tsp-header").length){t=s("hester_tsp_header_font_color");var o="";r["text-color"]=r["text-color"]?r["text-color"]:"inherit",r["link-color"]=r["link-color"]?r["link-color"]:"inherit",r["link-hover-color"]=r["link-hover-color"]?r["link-hover-color"]:"inherit",o+=".hester-tsp-header .hester-logo .site-description { color: "+r["text-color"]+"; }",r["link-color"]&&(o+=".hester-tsp-header #hester-header, .hester-tsp-header .hester-header-widgets a:not(.hester-btn), .hester-tsp-header .hester-logo a,.hester-tsp-header .hester-hamburger, .hester-tsp-header #hester-header-inner .hester-nav > ul > li > a { color: "+r["link-color"]+"; }",o+=".hester-tsp-header .hamburger-inner,.hester-tsp-header .hamburger-inner::before,.hester-tsp-header .hamburger-inner::after { background-color: "+r["link-color"]+"; }"),r["link-hover-color"]&&(o+=".hester-tsp-header .hester-header-widgets a:not(.hester-btn):hover, .hester-tsp-header #hester-header-inner .hester-header-widgets .hester-active,.hester-tsp-header .hester-logo .site-title a:hover, .hester-tsp-header .hester-hamburger:hover .hamburger-label, .is-mobile-menu-active .hester-tsp-header .hester-hamburger .hamburger-label,.hester-tsp-header.using-keyboard .site-title a:focus,.hester-tsp-header.using-keyboard .hester-header-widgets a:not(.hester-btn):focus,.hester-tsp-header #hester-header-inner .hester-nav > ul > li.hovered > a,.hester-tsp-header #hester-header-inner .hester-nav > ul > li > a:hover,.hester-tsp-header #hester-header-inner .hester-nav > ul > li.menu-item-has-children:hover > a,.hester-tsp-header #hester-header-inner .hester-nav > ul > li.current-menu-item > a,.hester-tsp-header #hester-header-inner .hester-nav > ul > li.current-menu-ancestor > a,.hester-tsp-header #hester-header-inner .hester-nav > ul > li.page_item_has_children:hover > a,.hester-tsp-header #hester-header-inner .hester-nav > ul > li.current_page_item > a,.hester-tsp-header #hester-header-inner .hester-nav > ul > li.current_page_ancestor > a { color: "+r["link-hover-color"]+"; }",o+=".hester-tsp-header .hester-hamburger:hover .hamburger-inner,.hester-tsp-header .hester-hamburger:hover .hamburger-inner::before,.hester-tsp-header .hester-hamburger:hover .hamburger-inner::after,.is-mobile-menu-active .hester-tsp-header .hester-hamburger .hamburger-inner,.is-mobile-menu-active .hester-tsp-header .hester-hamburger .hamburger-inner::before,.is-mobile-menu-active .hester-tsp-header .hester-hamburger .hamburger-inner::after { background-color: "+r["link-hover-color"]+"; }"),t.html(o)}}))})),o("hester_tsp_header_border",(function(r){r.bind((function(r){if(e(".hester-tsp-header").length){t=s("hester_tsp_header_border");var o="";o+=p(".hester-tsp-header #hester-header-inner",r,"border"),r["separator-color"]=r["separator-color"]?r["separator-color"]:"inherit",o+=".hester-tsp-header .hester-header-widget:after { background-color: "+r["separator-color"]+"; }",t.html(o)}}))})),o("hester_page_header_alignment",(function(e){e.bind((function(e){n.hasClass("single-post")||(n.removeClass((function(e,t){return(t.match(/(^|\s)hester-page-title-align-\S+/g)||[]).join(" ")})),n.addClass("hester-page-title-align-"+e))}))})),o("hester_page_header_spacing",(function(r){r.bind((function(r){if(e(".page-header").length){t=s("hester_page_header_spacing");var o=u(".hester-page-title-align-left .page-header.hester-has-page-title, .hester-page-title-align-right .page-header.hester-has-page-title, .hester-page-title-align-center .page-header .hester-page-header-wrapper","padding",r,!0);t.html(o)}}))})),o("hester_page_header_background",(function(r){r.bind((function(r){if(e(".page-header").length){t=s("hester_page_header_background");var o="";o+=p(".page-header",r,"background"),o+=p(".hester-tsp-header:not(.hester-tsp-absolute) #masthead",r,"background"),t.html(o)}}))})),o("hester_page_header_text_color",(function(r){r.bind((function(r){if(e(".page-header").length){t=s("hester_page_header_text_color");var o="";r["text-color"]=r["text-color"]?r["text-color"]:"inherit",r["link-color"]=r["link-color"]?r["link-color"]:"inherit",r["link-hover-color"]=r["link-hover-color"]?r["link-hover-color"]:"inherit",o+=".page-header .page-title { color: "+r["text-color"]+"; }",o+=".page-header .hester-page-header-description{ color: "+l(r["text-color"],.75)+"}",o+=".page-header .hester-breadcrumbs a{ color: "+r["link-color"]+"; }",o+=".page-header .hester-breadcrumbs span,.page-header .breadcrumb-trail .trail-items li::after, .page-header .hester-breadcrumbs .separator{ color: "+l(r["link-color"],.75)+"}",t.html(o)}}))})),o("hester_page_header_border",(function(r){r.bind((function(r){if(e(".page-header").length){t=s("hester_page_header_border");var o=p(".page-header",r,"border");t.html(o)}}))})),o("hester_breadcrumbs_alignment",(function(t){t.bind((function(t){var r=e("#main > .hester-breadcrumbs > .hester-container");r.length&&(r.removeClass((function(e,t){return(t.match(/(^|\s)hester-text-align\S+/g)||[]).join(" ")})),r.addClass("hester-text-align-"+t))}))})),o("hester_breadcrumbs_spacing",(function(r){r.bind((function(r){if(e(".hester-breadcrumbs").length){t=s("hester_breadcrumbs_spacing");var o=u(".hester-breadcrumbs","padding",r,!0);t.html(o)}}))})),o("hester_breadcrumbs_background",(function(r){r.bind((function(r){if(e(".hester-breadcrumbs").length){t=s("hester_breadcrumbs_background");var o=p(".hester-breadcrumbs",r,"background");t.html(o)}}))})),o("hester_breadcrumbs_text_color",(function(r){r.bind((function(r){if(e(".hester-breadcrumbs").length){t=s("hester_breadcrumbs_text_color");var o=p(".hester-breadcrumbs",r,"color");t.html(o)}}))})),o("hester_breadcrumbs_border",(function(r){r.bind((function(r){if(e(".hester-breadcrumbs").length){t=s("hester_breadcrumbs_border");var o=p(".hester-breadcrumbs",r,"border");t.html(o)}}))})),o("hester_html_base_font_size",(function(e){e.bind((function(e){t=s("hester_html_base_font_size");var r=m("html","font-size",e,!0,"%");t.html(r)}))})),o("hester_font_smoothing",(function(e){e.bind((function(e){t=s("hester_font_smoothing"),e?t.html("*,*::before,*::after {-moz-osx-font-smoothing: grayscale;-webkit-font-smoothing: antialiased;}"):t.html("*,*::before,*::after {-moz-osx-font-smoothing: auto;-webkit-font-smoothing: auto;}"),t=s("hester_html_base_font_size");var r=m("html","font-size",e,!0,"%");t.html(r)}))})),o("hester_body_font",(function(e){e.bind((function(e){t=s("hester_body_font");var r=b("body",e);f(e["font-family"]),t.html(r)}))})),o("hester_headings_font",(function(e){var r;e.bind((function(e){"h1, .h1, .hester-logo .site-title, .page-header h1.page-title",", h2, .h2, .woocommerce div.product h1.product_title",", h3, .h3, .woocommerce #reviews #comments h2",", h4, .h4, .woocommerce .cart_totals h2, .woocommerce .cross-sells > h4, .woocommerce #reviews #respond .comment-reply-title",", h5, h6, .h5, .h6",r=b("h1, .h1, .hester-logo .site-title, .page-header h1.page-title, h2, .h2, .woocommerce div.product h1.product_title, h3, .h3, .woocommerce #reviews #comments h2, h4, .h4, .woocommerce .cart_totals h2, .woocommerce .cross-sells > h4, .woocommerce #reviews #respond .comment-reply-title, h5, h6, .h5, .h6",e),f(e["font-family"]),(t=s("hester_headings_font")).html(r)}))})),o("hester_h1_font",(function(e){e.bind((function(e){t=s("hester_h1_font");var r=b("h1, .h1, .hester-logo .site-title, .page-header h1.page-title",e);f(e["font-family"]),t.html(r)}))})),o("hester_h2_font",(function(e){e.bind((function(e){t=s("hester_h2_font");var r=b("h2, .h2, .woocommerce div.product h1.product_title",e);f(e["font-family"]),t.html(r)}))})),o("hester_h3_font",(function(e){e.bind((function(e){t=s("hester_h3_font");var r=b("h3, .h3, .woocommerce #reviews #comments h2",e);f(e["font-family"]),t.html(r)}))})),o("hester_h4_font",(function(e){e.bind((function(e){t=s("hester_h4_font");var r=b("h4, .h4, .woocommerce .cart_totals h2, .woocommerce .cross-sells > h4, .woocommerce #reviews #respond .comment-reply-title",e);f(e["font-family"]),t.html(r)}))})),o("hester_h5_font",(function(e){e.bind((function(e){t=s("hester_h5_font");var r=b("h5, .h5",e);f(e["font-family"]),t.html(r)}))})),o("hester_h6_font",(function(e){e.bind((function(e){t=s("hester_h6_font");var r=b("h6, .h6",e);f(e["font-family"]),t.html(r)}))})),o("hester_heading_em_font",(function(e){e.bind((function(e){t=s("hester_heading_em_font");var r=b("h1 em, h2 em, h3 em, h4 em, h5 em, h6 em, .h1 em, .h2 em, .h3 em, .h4 em, .h5 em, .h6 em, .hester-logo .site-title em, .error-404 .page-header h1 em",e);f(e["font-family"]),t.html(r)}))})),o("hester_sidebar_widget_title_font_size",(function(r){r.bind((function(r){if(e("#main .widget-title, .widget-area .wp-block-heading").length){t=s("hester_sidebar_widget_title_font_size");var o="";o+=m("#main .widget-title, .widget-area .wp-block-heading","font-size",r,!0,r.unit),t.html(o)}}))})),o("hester_footer_widget_title_font_size",(function(r){r.bind((function(r){if(e("#colophon .widget-title, #colophon .wp-block-heading").length){t=s("hester_footer_widget_title_font_size");var o="";o+=m("#colophon .widget-title, #colophon .wp-block-heading","font-size",r,!0,r.unit),t.html(o)}}))})),o("hester_page_header_font_size",(function(r){r.bind((function(r){if(e(".page-header .page-title").length){t=s("hester_page_header_font_size");var o="";o+=m("#page .page-header .page-title","font-size",r,!0,r.unit),t.html(o)}}))}));var g=".hester-btn, body:not(.wp-customizer) input[type=submit], .site-main .woocommerce #respond input#submit, .site-main .woocommerce a.button, .site-main .woocommerce button.button, .site-main .woocommerce input.button, .woocommerce ul.products li.product .added_to_cart, .woocommerce ul.products li.product .button, .woocommerce div.product form.cart .button, .woocommerce #review_form #respond .form-submit input, #infinite-handle span",v=".hester-btn:hover, .hester-btn:focus, body:not(.wp-customizer) input[type=submit]:hover, body:not(.wp-customizer) input[type=submit]:focus, .site-main .woocommerce #respond input#submit:hover, .site-main .woocommerce #respond input#submit:focus, .site-main .woocommerce a.button:hover, .site-main .woocommerce a.button:focus, .site-main .woocommerce button.button:hover, .site-main .woocommerce button.button:focus, .site-main .woocommerce input.button:hover, .site-main .woocommerce input.button:focus, .woocommerce ul.products li.product .added_to_cart:hover, .woocommerce ul.products li.product .added_to_cart:focus, .woocommerce ul.products li.product .button:hover, .woocommerce ul.products li.product .button:focus, .woocommerce div.product form.cart .button:hover, .woocommerce div.product form.cart .button:focus, .woocommerce #review_form #respond .form-submit input:hover, .woocommerce #review_form #respond .form-submit input:focus, #infinite-handle span:hover";o("hester_primary_button_bg_color",(function(e){e.bind((function(e){t=s("hester_primary_button_bg_color");var r="";e&&(r=g+"{ background-color: "+e+"; }"),t.html(r)}))})),o("hester_primary_button_hover_bg_color",(function(e){e.bind((function(e){t=s("hester_primary_button_hover_bg_color");var r="";e&&(r=v+" { background-color: "+e+"; }"),t.html(r)}))})),o("hester_primary_button_text_color",(function(e){e.bind((function(e){t=s("hester_primary_button_text_color");var r="";e&&(r=g+" { color: "+e+"; }"),t.html(r)}))})),o("hester_primary_button_hover_text_color",(function(e){e.bind((function(e){t=s("hester_primary_button_hover_text_color");var r="";e&&(r=v+" { color: "+e+"; }"),t.html(r)}))})),o("hester_primary_button_border_width",(function(e){e.bind((function(e){t=s("hester_primary_button_border_width");var r="";e&&(r=g+" { border-width: "+e.value+"rem; }"),t.html(r)}))})),o("hester_primary_button_border_radius",(function(e){e.bind((function(e){t=s("hester_primary_button_border_radius");var r="";e&&(r=g+" { border-top-left-radius: "+e["top-left"]+"rem;border-top-right-radius: "+e["top-right"]+"rem;border-bottom-left-radius: "+e["bottom-left"]+"rem;border-bottom-right-radius: "+e["bottom-right"]+"rem; }",console.log(r)),t.html(r)}))})),o("hester_primary_button_border_color",(function(e){e.bind((function(e){t=s("hester_primary_button_border_color");var r="";e&&(r=g+" { border-color: "+e+"; }"),t.html(r)}))})),o("hester_primary_button_hover_border_color",(function(e){e.bind((function(e){t=s("hester_primary_button_hover_border_color");var r="";e&&(r=v+" { border-color: "+e+"; }"),t.html(r)}))})),o("hester_primary_button_typography",(function(e){e.bind((function(e){t=s("hester_primary_button_typography");var r=b(g,e);f(e["font-family"]),t.html(r)}))}));var y=".btn-secondary, .hester-btn.btn-secondary",w=".btn-secondary:hover, .btn-secondary:focus, .hester-btn.btn-secondary:hover, .hester-btn.btn-secondary:focus";o("hester_secondary_button_bg_color",(function(e){e.bind((function(e){t=s("hester_secondary_button_bg_color");var r="";e&&(r=y+"{ background-color: "+e+"; }"),t.html(r)}))})),o("hester_secondary_button_hover_bg_color",(function(e){e.bind((function(e){t=s("hester_secondary_button_hover_bg_color");var r="";e&&(r=w+"{ background-color: "+e+"; }"),t.html(r)}))})),o("hester_secondary_button_text_color",(function(e){e.bind((function(e){t=s("hester_secondary_button_text_color");var r="";e&&(r=y+"{ color: "+e+"; }"),t.html(r)}))})),o("hester_secondary_button_hover_text_color",(function(e){e.bind((function(e){t=s("hester_secondary_button_hover_text_color");var r="";e&&(r=w+"{ color: "+e+"; }"),t.html(r)}))})),o("hester_secondary_button_border_width",(function(e){e.bind((function(e){t=s("hester_secondary_button_border_width");var r="";e&&(r=y+" { border-width: "+e.value+"rem; }"),t.html(r)}))})),o("hester_secondary_button_border_radius",(function(e){e.bind((function(e){t=s("hester_secondary_button_border_radius");var r="";e&&(r=y+" { border-top-left-radius: "+e["top-left"]+"rem;border-top-right-radius: "+e["top-right"]+"rem;border-bottom-left-radius: "+e["bottom-left"]+"rem;border-bottom-right-radius: "+e["bottom-right"]+"rem; }"),t.html(r)}))})),o("hester_secondary_button_border_color",(function(e){e.bind((function(e){t=s("hester_secondary_button_border_color");var r="";e&&(r=y+" { border-color: "+e+"; }"),t.html(r)}))})),o("hester_secondary_button_hover_border_color",(function(e){e.bind((function(e){t=s("hester_secondary_button_hover_border_color");var r="";e&&(r=w+" { border-color: "+e+"; }"),t.html(r)}))})),o("hester_secondary_button_typography",(function(e){e.bind((function(e){t=s("hester_secondary_button_typography");var r=b(y,e);f(e["font-family"]),t.html(r)}))}));var k=".hester-btn.btn-text-1, .btn-text-1";o("hester_text_button_text_color",(function(e){e.bind((function(e){t=s("hester_text_button_text_color");var r="";e&&(r=k+"{ color: "+e+"; }"),t.html(r)}))})),o("hester_text_button_hover_text_color",(function(e){e.bind((function(e){var r="";e&&(r=".hester-btn.btn-text-1:hover, .hester-btn.btn-text-1:focus, .btn-text-1:hover, .btn-text-1:focus{ color: "+e+"; }",r+=".hester-btn.btn-text-1 > span::before { background-color: "+e+" }"),(t=s("hester_text_button_hover_text_color")).html(r)}))})),o("hester_text_button_typography",(function(e){e.bind((function(e){t=s("hester_text_button_typography");var r=b(k,e);f(e["font-family"]),t.html(r)}))})),o("hester_section_heading_style",(function(e){e.bind((function(e){n.removeClass((function(e,t){return(t.match(/(^|\s)is-section-heading-init-s\S+/g)||[]).join(" ")})).addClass("is-section-heading-init-s"+o.value("hester_section_heading_style")())}))})),o("hester_slider_title_font",(function(e){e.bind((function(e){t=s("hester_slider_title_font");var r=b(".starter__slider .starter__slider-title",e);f(e["font-family"]),t.html(r)}))})),hester_customizer_preview.home_design_sections.map((function(r){o("hester_"+r+"_section_spacing",(function(o){o.bind((function(o){if(e(".hester_section_"+r).length){t=s("hester_"+r+"_section_spacing");var n=u(".hester_section_"+r+" .hester_bg","padding",o,!0);t.html(n)}}))})),o("hester_"+r+"_container_width",(function(t){t.bind((function(t){var o=e(".hester_section_"+r);o.length&&("full-width"===t?o.find(".hester-container").addClass("hester-container__wide"):o.find(".hester-container").removeClass("hester-container__wide"))}))})),o("hester_"+r+"_background",(function(o){o.bind((function(o){if(e(".hester_section_"+r).length){t=s("hester_"+r+"_background");var n="";"color"===o["background-type"]?(n+=p(".hester_section_"+r+" .hester_bg::before",o,"background"),n+=".hester_section_"+r+" .hester_bg::after{ background-image: none; }"):(n+=p(".hester_section_"+r+" .hester_bg::after",o,"background"),n+=".hester_section_"+r+" .hester_bg::before{ background-color: transparent; }"),"image"===o["background-type"]&&o["background-color-overlay"]&&o["background-image"]&&(n+=".hester_section_"+r+" .hester_bg::before{ background-color: "+o["background-color-overlay"]+"; }"),t.html(n)}}))})),o("hester_"+r+"_text_color",(function(o){o.bind((function(o){if(e(".hester_section_"+r).length){t=s("hester_"+r+"_text_color");var n=p(".hester_section_"+r+" .hester_bg",o,"color");console.log(o),""!=o&&(n+=p(".hester_section_"+r+" .hester_bg .starter__heading-title .title",{"text-color":"inherit","link-color":"inherit","link-hover-color":"inherit"},"color")),t.html(n)}}))}))}));var x=hester_customizer_preview.home_sections;e.hesterCustomizeLive={init:function(){this.liveTextReplace(),this.liveShowHideSection(),this.handleShowHideShortcut()},liveTextReplace:function(){var t=[];x.forEach((function(e){t.push({controlName:"hester_"+e+"_sub_heading",selector:".hester_section_"+e+" .sub-title",isHtml:!0}),t.push({controlName:"hester_"+e+"_heading",selector:".hester_section_"+e+" .h2.title",isHtml:!0}),t.push({controlName:"hester_"+e+"_description",selector:".hester_section_"+e+" .starter__heading-title .description",isHtml:!0})})),t.forEach((function(t){wp.customize(t.controlName,(function(r){r.bind((function(r){void 0!==t.isHtml?e(t.selector).html(r):e(t.selector).text(r)}))}))}))},liveShowHideSection:function(){var t={hester_enable_slider:"#hester-slider"};x.forEach((function(e){t["hester_enable_"+e]=".hester_section_"+e})),Object.keys(t).forEach((function(r){o(r,(function(o){o.bind((function(o){e(t[r]).toggle()}))}))}))},handleShowHideShortcut:function(){x.map((function(e){return"hester_enable_"+e})).forEach((function(t){e(".customize-partial-edit-shortcut-"+t).on("click",(function(){o.preview.send("hester-customize-focus-control",t),o.preview.send("hester-customize-disable-section",t)}))}))}},o.selectiveRefresh&&o.selectiveRefresh.bind("partial-content-rendered",(function(e){"hester_hero_hover_slider_post_number"!==e.partial.id&&"hester_hero_hover_slider_elements"!==e.partial.id||(document.querySelectorAll(e.partial.params.selector).forEach((e=>{hesterHoverSlider(e)})),o("hester_hero_hover_slider_height",(function(e){e.callbacks.fireWith(e,[e.get()])}))),"hester_preloader_style"===e.partial.id&&(n.removeClass("hester-loaded"),setTimeout((function(){window.hester.preloader()}),300))})),o.hesterCustomizerPreview={init:function(){var t=this;t.preview.body.on("click",".hester-set-widget",(function(){t.preview.send("set-footer-widget",e(this).data("sidebar-id"))}))}};var z=o.Preview;o.Preview=z.extend({initialize:function(e,t){o.hesterCustomizerPreview.preview=this,z.prototype.initialize.call(this,e,t)}}),e((function(){o.hesterCustomizerPreview.init(),e.hesterCustomizeLive.init()}))}(jQuery);