"use strict";!function(o){var t,e,i=wp.customize,n=[],r=[];function l(e){return n[e]?n[e]:((t=o("head").find("#blogsy-dynamic-"+e)).length||(o("head").append(''),t=o("head").find("#blogsy-dynamic-"+e)),n[e]=t,t)}function a(o,t,e,i,n){var r="",l="",a="";return i&&(Array.isArray(e)||"object"==typeof e)&&Object.keys(e).forEach(function(i,d){if(e[i]){if("tablet"===i)l="@media only screen and (max-width: 1024px) {",a="}";else if("mobile"===i)l="@media only screen and (max-width: 600px) {",a="}";else{if("desktop"!==i)return;l="",a=""}r+=l+o+"{"+t+": "+e[i]+n+"; }"+a}}),i||(e=e.value?e.value:0,r=o+"{"+t+": "+e+n+"; }"),r}function d(o,t){var e="";return e+=o+"{","font-family"in t&&t["font-family"]&&("default"===t["font-family"]?e+="font-family: "+blogsy_customizer_preview.default_system_font+";":t["font-family"]in blogsy_customizer_preview.fonts.standard_fonts.fonts?e+="font-family: "+blogsy_customizer_preview.fonts.standard_fonts.fonts[t["font-family"]].fallback+";":"inherit"!==t["font-family"]&&(e+='font-family: "'+t["font-family"]+'";')),"font-weight"in t&&t["font-weight"]&&(e+="font-weight:"+t["font-weight"]+";"),"font-style"in t&&t["font-style"]&&(e+="font-style:"+t["font-style"]+";"),"text-transform"in t&&t["text-transform"]&&(e+="text-transform:"+t["text-transform"]+";"),"text-decoration"in t&&(e+="text-decoration:"+t["text-decoration"]+";"),"color"in t&&(e+="color:"+t.color+";"),"letter-spacing"in t&&(e+="letter-spacing:"+t["letter-spacing"]+t["letter-spacing-unit"]+";"),"line-height-desktop"in t&&(e+="line-height:"+t["line-height-desktop"]+";"),"font-size-desktop"in t&&"font-size-unit"in t&&(e+="font-size:"+t["font-size-desktop"]+t["font-size-unit"]+";"),e+="}","font-size-tablet"in t&&t["font-size-tablet"]&&(e+="@media only screen and (max-width: 1024px) {"+o+"{font-size: "+t["font-size-tablet"]+t["font-size-unit"]+";}}"),"line-height-tablet"in t&&t["line-height-tablet"]&&(e+="@media only screen and (max-width: 1024px) {"+o+"{line-height:"+t["line-height-tablet"]+";}}"),"font-size-mobile"in t&&t["font-size-mobile"]&&(e+="@media only screen and (max-width: 600px) {"+o+"{font-size: "+t["font-size-mobile"]+t["font-size-unit"]+";}}"),"line-height-mobile"in t&&t["line-height-mobile"]&&(e+="@media only screen and (max-width: 600px) {"+o+"{line-height:"+t["line-height-mobile"]+";}}"),e}function s(t){if(blogsy_customizer_preview.fonts.google_fonts.fonts[t])(function(t,i){r[t]?r[t]:((e=o("head").find("#blogsy-dynamic-link-"+t)).length?e.attr("href",i):(o("head").append(''),e=o("head").find("#blogsy-dynamic-link-"+t)),r[t]=e)})("google-font-"+t.trim().toLowerCase().replace(" ","-"),blogsy_customizer_preview.google_fonts_url+"/css?family="+t+":"+blogsy_customizer_preview.google_font_weights)}function c(o,t,e){var i="";if("background"===e){var n=t["background-type"];i+=o+"{","color"===n?(t["background-color"]=t["background-color"]?t["background-color"]:"inherit",i+="background: "+t["background-color"]+";"):"gradient"===n?(i+="background: "+t["gradient-color-1"]+";","linear"===t["gradient-type"]?i+="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"]&&(i+="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&&(i+="position: relative; z-index: 0;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"]+";"),i+="}","image"===n&&t["background-color-overlay"]&&t["background-image"]&&(i+=o+'::before {content: ""; position: absolute; inset: 0; z-index: -1; background-color: '+t["background-color-overlay"]+"; }")}else if("color"===e)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",t["link-active-color"]=t["link-active-color"]?t["link-active-color"]:"inherit",i+=o+" { color: "+t["text-color"]+"; }",i+=o+" a { color: "+t["link-color"]+"; }",i+=o+" a:hover { color: "+t["link-hover-color"]+" !important; }",i+=o+" { --link-active-color: "+t["link-active-color"]+"; }";else if("border"===e)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,i+=o+"{",i+="border-color: "+t["border-color"]+";",i+="border-style: "+t["border-style"]+";",i+="border-left-width: "+t["border-left-width"]+"px;",i+="border-top-width: "+t["border-top-width"]+"px;",i+="border-right-width: "+t["border-right-width"]+"px;",i+="border-bottom-width: "+t["border-bottom-width"]+"px;",i+="}";else if("box-shadow"===e){var r=parseInt(t.x||0,10)+"px "+parseInt(t.y||0,10)+"px "+parseInt(t.blur||0,10)+"px "+parseInt(t.spread||0,10)+"px "+(t.color||"rgba(0,0,0,0.05)");"inset"===(t.type||"outset")&&(r="inset "+r),i=o+"{ box-shadow: "+r+"; }"}return i}function b(o,t){o.length&&(o.removeClass("blogsy-hide-mobile blogsy-hide-tablet blogsy-hide-mobile-tablet"),"all"!==t&&o.addClass("blogsy-"+t))}function g(o,t){o.includes("rgb")&&(o=function(o){var t,e;t=(t=o.split("(")[1].split(")")[0].trim()).split(",");for(var i="",n=0;3>n;n++)i+=1===(e=parseInt(t[n]).toString(16)).length?"0"+e:e;if(i)return"#"+i;return!1}(o));o=o.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(o,t,e,i){return t+t+e+e+i+i});var e,i,n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(o);if(!/^#[0-9A-F]{6}$/i.test(o))return o;for(var r=1;3>=r;r++)n[r]=parseInt(n[r],16),e=0>t?0:n[r],i=0>t?n[r]:255,n[r]=n[r]+Math.ceil((i-e)*t);return n="#"+h(n[1])+h(n[2])+h(n[3])}function h(o){var t=o.toString(16);return 1==t.length?"0"+t:t}i("blogsy_accent_color",function(o){o.bind(function(o){if(t=l("blogsy_accent_color"),o){var e=":root { --pt-accent-color: "+o+"; --pt-accent-40-color: "+g(o,.4)+"; --pt-accent-80-color: "+g(o,.8)+"; }";t.html(e)}else t.html("")})}),i("blogsy_second_color",function(o){o.bind(function(o){if(t=l("blogsy_second_color"),o){var e=":root { --pt-second-color: "+o+"; }";t.html(e)}else t.html("")})}),i("blogsy_body_bg",function(o){o.bind(function(o){if(t=l("blogsy_body_bg"),o){var e=":root { --pt-body-bg-color: "+o+"; }";t.html(e)}else t.html("")})}),i("blogsy_body_color",function(o){o.bind(function(o){if(t=l("blogsy_body_color"),o){var e=":root { --pt-body-color: "+o+"; }";t.html(e)}else t.html("")})}),i("blogsy_heading_color",function(o){o.bind(function(o){if(t=l("blogsy_heading_color"),o){var e=":root { --pt-headings-color: "+o+"; }";t.html(e)}else t.html("")})}),i("blogsy_button_bg_hover",function(o){o.bind(function(o){if(t=l("blogsy_button_bg_hover"),o){var e=":root { --pt-button-bg-hover: "+o+"; }";t.html(e)}else t.html("")})}),i("blogsy_button_shape_style",function(o){o.bind(function(o){const t=document.body;t.className=t.className.split(/\s+/).filter(o=>!o.startsWith("pt-shape--")).join(" "),t.classList.add("pt-shape--"+o)})}),i("blogsy_accent_color_dark",function(o){o.bind(function(o){if(t=l("blogsy_accent_color_dark"),o){var e='html[scheme="dark"] { --pt-accent-color: '+o+"; }";t.html(e)}else t.html("")})}),i("blogsy_second_color_dark",function(o){o.bind(function(o){if(t=l("blogsy_second_color_dark"),o){var e='html[scheme="dark"] { --pt-second-color: '+o+"; }";t.html(e)}else t.html("")})}),i("blogsy_body_bg_dark",function(o){o.bind(function(o){if(t=l("blogsy_body_bg_dark"),o){var e='html[scheme="dark"] { --pt-body-bg-color: '+o+"; }";t.html(e)}else t.html("")})}),i("blogsy_body_color_dark",function(o){o.bind(function(o){if(t=l("blogsy_body_color_dark"),o){var e='html[scheme="dark"] { --pt-body-color: '+o+"; }";t.html(e)}else t.html("")})}),i("blogsy_heading_color_dark",function(o){o.bind(function(o){if(t=l("blogsy_heading_color_dark"),o){var e='html[scheme="dark"] { --heading-color: '+o+"; }";t.html(e)}else t.html("")})}),i("blogsy_button_bg_hover_dark",function(o){o.bind(function(o){if(t=l("blogsy_button_bg_hover_dark"),o){var e='html[scheme="dark"] { --pt-button-bg-hover: '+o+"; }";t.html(e)}else t.html("")})}),i("blogsy_logo_max_height",function(e){e.bind(function(e){if(o("#site-header .pt-logo").length){t=l("blogsy_logo_max_height");var i="";i+=a("#site-header .pt-logo img","max-height",e,!0,"px"),i+=a("#site-header .pt-logo img.blogsy-svg-logo","height",e,!0,"px"),t.html(i)}})}),i("blogsy_logo_title_typography",function(e){e.bind(function(e){if(o("#site-header .pt-logo .site-title").length){t=l("blogsy_logo_title_typography");var i="";i+=d("#site-header .pt-logo .site-title",e),s(e["font-family"]),t.html(i)}})}),i("blogsy_logo_tagline_typography",function(e){e.bind(function(e){if(o("#site-header .pt-logo .site-description").length){t=l("blogsy_logo_tagline_typography");var i="";i+=d("#site-header .pt-logo .site-description",e),s(e["font-family"]),t.html(i)}})}),i("blogsy_logo_margin",function(e){e.bind(function(e){if(o("#site-header .pt-logo").length){t=l("blogsy_logo_margin");var i=function(o,t,e,i){if(Array.isArray(e)||"object"==typeof e){var n="px",r="";"unit"in e&&(n=e.unit);var l="",a="";return Object.keys(e).forEach(function(d,s){"unit"!==d&&(i?("tablet"===d?(l="@media only screen and (max-width: 1024px) {",a="}"):"mobile"===d?(l="@media only screen and (max-width: 600px) {",a="}"):(l="",a=""),r+=l+o+"{",Object.keys(e[d]).forEach(function(o){"border"===t&&(o+="-width"),e[d][o]&&(r+=t+"-"+o+": "+e[d][o]+n+";")}),r+="}"+a):("border"===t&&(d+="-width"),r+=t+"-"+d+": "+e[d]+n+";"))}),i||(r=o+"{"+r+"}"),r}}("#site-header .pt-logo .logo-inner","margin",e,!0);t.html(i)}})}),i("blogdescription",function(t){t.bind(function(t){o("#site-header .pt-logo").find(".site-description").length&&o("#site-header .pt-logo").find(".site-description").html(t)})}),i("blogname",function(t){t.bind(function(t){o("#site-header .pt-logo").find(".site-title").length&&o("#site-header .pt-logo").find(".site-title").find("a").html(t)})}),i("blogsy_html_base_font_size",function(o){o.bind(function(o){t=l("blogsy_html_base_font_size");var e=a("html","font-size",o,!0,"%");t.html(e)})}),i("blogsy_typo_body",function(o){o.bind(function(o){t=l("blogsy_typo_body");var e=d("body",o);s(o["font-family"]),t.html(e)})}),i("blogsy_typo_h1",function(o){o.bind(function(o){t=l("blogsy_typo_h1");var e=d("h1, .h1",o);s(o["font-family"]),t.html(e)})}),i("blogsy_typo_h2",function(o){o.bind(function(o){t=l("blogsy_typo_h2");var e=d("h2, .h2",o);s(o["font-family"]),t.html(e)})}),i("blogsy_typo_h3",function(o){o.bind(function(o){t=l("blogsy_typo_h3");var e=d("h3, .h3",o);s(o["font-family"]),t.html(e)})}),i("blogsy_typo_h4",function(o){o.bind(function(o){t=l("blogsy_typo_h4");var e=d("h4, .h4",o);s(o["font-family"]),t.html(e)})}),i("blogsy_typo_h5",function(o){o.bind(function(o){t=l("blogsy_typo_h5");var e=d("h5, .h5",o);s(o["font-family"]),t.html(e)})}),i("blogsy_typo_h6",function(o){o.bind(function(o){t=l("blogsy_typo_h6");var e=d("h6, .h6",o);s(o["font-family"]),t.html(e)})}),i("blogsy_typo_section_title",function(o){o.bind(function(o){t=l("blogsy_typo_section_title");var e=d(".blogsy-divider-heading, .blogsy-divider-heading .title",o);s(o["font-family"]),t.html(e)})}),i("blogsy_typo_single_post_title",function(o){o.bind(function(o){t=l("blogsy_typo_single_post_title");var e=d(".single-hero-title .title",o);t.html(e)})}),i("blogsy_typo_single_post_content",function(o){o.bind(function(o){t=l("blogsy_typo_single_post_content");var e=d(".single-content-inner",o);t.html(e)})}),i("blogsy_typo_menu",function(o){o.bind(function(o){t=l("blogsy_typo_menu");var e=d(".blogsy-header-nav > li a, .blogsy-header-v-nav > li a",o);s(o["font-family"]),t.html(e)})}),i("blogsy_typo_terms",function(o){o.bind(function(o){t=l("blogsy_typo_terms");var e=d(".term-item, .single-hero-title .category a",o);s(o["font-family"]),t.html(e)})}),i("blogsy_top_bar_visibility",function(t){t.bind(function(t){b(o(".blogsy-topbar"),t)})}),i("blogsy_top_bar_background",function(e){e.bind(function(e){if(o(".blogsy-topbar").length){t=l("blogsy_top_bar_background");var i=c(".blogsy-topbar",e,"background");t.html(i)}})}),i("blogsy_top_bar_text_color",function(e){e.bind(function(e){if(o(".blogsy-topbar").length){t=l("blogsy_top_bar_text_color");var i="";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",i+=".blogsy-topbar { color: "+e["text-color"]+"; }",i+=".blogsy-location { color: "+e["text-color"]+"; }",i+=".blogsy-topbar .header-preferences { color: "+e["text-color"]+"; }",i+=".blogsy-topbar-widget__text a, .blogsy-topbar-widget .blogsy-header-nav > li.menu-item > a, .blogsy-topbar-widget__socials .blogsy-social-icons-widget > ul > li > a { color: "+e["link-color"]+"; }",i+=".blogsy-topbar-widget .blogsy-header-nav > li.menu-item > a:hover, .blogsy-topbar-widget .blogsy-header-nav > li.menu-item > a:focus, .blogsy-topbar-widget .blogsy-header-nav > li.menu-item-has-children:hover > a, .blogsy-topbar-widget .blogsy-header-nav > li.current-menu-item > a, .blogsy-topbar-widget .blogsy-header-nav > li.current-menu-ancestor > a, .blogsy-topbar-widget__text a:focus, .blogsy-topbar-widget__text a:hover, .blogsy-topbar-widget__socials .blogsy-social-icons-widget > ul > li > a:focus, .blogsy-topbar-widget__socials .blogsy-social-icons-widget > ul > li > a:hover { color: "+e["link-hover-color"]+"; }",t.html(i)}})}),i("blogsy_top_bar_border",function(e){e.bind(function(e){if(o(".blogsy-topbar").length){t=l("blogsy_top_bar_border");var i=c(".blogsy-topbar",e,"border");t.html(i)}})}),i("blogsy_header_background",function(e){e.bind(function(e){if(o("#site-header").length){t=l("blogsy_header_background");var i=c('html:not([scheme="dark"]) .pt-header-layout-1 #site-header .pt-header-inner .pt-header-container::after,\n\t\t\t\t\t\t\t html:not([scheme="dark"]) .pt-header-layout-2 #site-header .pt-header-inner,\n\t\t\t\t\t\t\t html:not([scheme="dark"]) .pt-header-layout-3 #site-header .pt-header-inner > .pt-header-container',e,"background");t.html(i)}})}),i("blogsy_header_text_color",function(e){e.bind(function(e){if(o("#site-header").length){t=l("blogsy_header_text_color");var i="";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["link-active-color"]=e["link-active-color"]?e["link-active-color"]:"inherit",i+='html:not([scheme="dark"]) #site-header { color: '+e["text-color"]+"; }",i+='html:not([scheme="dark"]) #site-header .blogsy-header-nav > li > a, html:not([scheme="dark"]) #site-header .blogsy-header-v-nav > li > a, html:not([scheme="dark"]) #site-header .pt-header-widget .blogsy-social-icons-widget:not(.minimal-fill, .rounded-fill) > ul > li > a { color: '+e["link-color"]+"; }",i+="html #site-header .blogsy-header-nav > li > a:hover, html #site-header .blogsy-header-nav > li.hovered > a, html #site-header .blogsy-header-nav > li.current_page_item > a, html #site-header .blogsy-header-nav > li.current-menu-item > a, html #site-header .blogsy-header-nav > li.current-menu-ancestor > ahtml #site-header .blogsy-header-v-nav > li a:focus, html #site-header .blogsy-header-v-nav > li a:hover, html #site-header .pt-header-widget .blogsy-social-icons-widget:not(.minimal-fill, .rounded-fill) > ul > li > a:focus, html #site-header .pt-header-widget .blogsy-social-icons-widget:not(.minimal-fill, .rounded-fill) > ul > li > a:hover { color: "+e["link-hover-color"]+"; }",i+="html #site-header .blogsy-header-nav > li.menu-item > a { --menu-shape-color: "+e["link-active-color"]+"; }",t.html(i)}})}),i("blogsy_header_border",function(e){e.bind(function(e){if(o("#site-header").length){t=l("blogsy_header_border");var i=c(".pt-header-layout-1 #site-header .pt-header-inner .pt-header-container::after,\n\t\t\t\t\t\t\t .pt-header-layout-2 #site-header .pt-header-inner,\n\t\t\t\t\t\t\t .pt-header-layout-3 #site-header .pt-header-inner > .pt-header-container",e,"border");t.html(i)}})}),i("blogsy_footer_widget_background",function(e){e.bind(function(e){if(o(".site-default-footer").length){var i;if("color"===e["background-type"]){var n="#ffffff"===e["background-color"]?-.1:.2;i=g(e["background-color"],n)}t=l("blogsy_footer_widget_background");var r=c(".site-default-footer",e,"background");r+=".site-default-footer .default-footer-copyright { border-top-color: "+i+"; }",t.html(r)}})}),i("blogsy_footer_widget_text_color",function(e){e.bind(function(e){if(o(".site-default-footer").length){t=l("blogsy_footer_widget_text_color");var i="";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",i+=".site-default-footer, .site-default-footer .blogsy-divider-heading .title, .site-default-footer .wp-block-heading { color: "+e["text-color"]+"; }",i+=".site-default-footer a{ color: "+e["link-color"]+"; }",i+=".site-default-footer a:hover, .site-default-footer a:focus { color: "+e["link-hover-color"]+"; }",t.html(i)}})}),i("blogsy_footer_widget_area_border",function(e){e.bind(function(e){if(o(".site-default-footer").length){t=l("blogsy_footer_widget_area_border");var i=c(".site-default-footer",e,"border");t.html(i)}})}),i("blogsy_footer_canvas_menu_bg",function(e){e.bind(function(e){if(o(".footer-canvas-menu-bg").length){t=l("blogsy_footer_canvas_menu_bg");var i=c(".footer-canvas-menu-bg",e,"background");t.html(i)}})}),i("blogsy_footer_canvas_menu_color",function(e){e.bind(function(e){if(o(".footer-canvas-menu-bg").length){t=l("blogsy_footer_canvas_menu_color");var i="";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",i+=".footer-canvas-menu, .footer-canvas-menu .blogsy-divider-heading .title, .footer-canvas-menu .wp-block-heading { color: "+e["text-color"]+"; }",i+=".footer-canvas-menu .blogsy-header-v-nav li a , .footer-canvas-menu-btn{ color: "+e["link-color"]+"; }",i+=".footer-canvas-menu .blogsy-header-v-nav li a:hover,.footer-canvas-menu .blogsy-header-v-nav li a:focus,.footer-canvas-menu .blogsy-header-v-nav li.current_page_item a,.footer-canvas-menu .blogsy-header-v-nav li.current-menu-item a { color: "+e["link-hover-color"]+"; }",t.html(i)}})}),i("blogsy_blog_title_font_size",function(e){e.bind(function(e){if(o(".default-archive-container").length){t=l("blogsy_blog_title_font_size");var i="";i+=a(".default-archive-container .post-wrapper .title","font-size",e,!0,e.unit),t.html(i)}})}),i("blogsy_ticker_title",function(t){t.bind(function(t){o("#blogsy-ticker .blogsy-news-ticker-title-text").text(t)})}),i("blogsy_ticker_visibility",function(t){t.bind(function(t){b(o("#blogsy-ticker"),t)})}),i("blogsy_hero_slider_height",function(e){e.bind(function(e){if(o("#blogsy-hero").length){t=l("blogsy_hero_slider_height");var i="";i+=a("#blogsy-hero .pt-hero-slider .post-wrapper","height",e,!0,"px"),t.html(i)}})}),i("blogsy_hero_slider_title_font_size",function(e){e.bind(function(e){if(o("#blogsy-hero").length){t=l("blogsy_hero_slider_title_font_size");var i="";i+=a("#blogsy-hero .pt-hero-slider .post-wrapper .title","font-size",e,!0,e.unit),t.html(i)}})}),i("blogsy_hero_visibility",function(t){t.bind(function(t){b(o("#blogsy-hero"),t)})}),i("blogsy_featured_category_title",function(t){t.bind(function(t){o("#blogsy-featured-category .blogsy-divider-heading .title").text(t)})}),i("blogsy_ticker_speed",function(e){e.bind(function(e){if(o("#blogsy-ticker").length){t=l("blogsy_ticker_speed");var i="";i+=a("#blogsy-ticker .blogsy-ticker .blogsy-news-ticker-content-wrapper.animation-marquee .blogsy-news-ticker-items","--marquee-time",e,!0,"s"),t.html(i)}})}),i("blogsy_featured_category_visibility",function(t){t.bind(function(t){b(o("#blogsy-featured-category"),t)})}),i("blogsy_featured_links_title",function(t){t.bind(function(t){o("#blogsy-featured-links .blogsy-divider-heading .title").text(t)})}),i("blogsy_featured_links_visibility",function(t){t.bind(function(t){b(o("#blogsy-featured-links"),t)})}),i("blogsy_stories_title",function(t){t.bind(function(t){o("#blogsy-stories .blogsy-divider-heading .title").text(t)})}),i("blogsy_stories_view_all",function(t){t.bind(function(t){o("#blogsy-stories .blogsy-section-heading .button-text .text").text(t)})}),i("blogsy_stories_visibility",function(t){t.bind(function(t){b(o("#blogsy-stories"),t)})}),i("blogsy_pyml_title",function(t){t.bind(function(t){o("#blogsy-pyml .blogsy-divider-heading .title").text(t)})}),i("blogsy_pyml_visibility",function(t){t.bind(function(t){b(o("#blogsy-pyml"),t)})}),i("blogsy_card_widget_box_shadow",function(e){e.bind(function(e){if(o('html:not([scheme="dark"]) .card-layout, html:not([scheme="dark"]) .card-layout-w').length){t=l("blogsy_card_widget_box_shadow");var i=c('html:not([scheme="dark"]) .card-layout, html:not([scheme="dark"]) .card-layout-w',e,"box-shadow");t.html(i)}})}),i("blogsy_card_widget_border",function(e){e.bind(function(e){if(o('html:not([scheme="dark"]) .card-layout, html:not([scheme="dark"]) .card-layout-w').length){t=l("blogsy_card_widget_border");var i=c('html:not([scheme="dark"]) .card-layout, html:not([scheme="dark"]) .card-layout-w',e,"border");t.html(i)}})}),i("blogsy_card_widget_bg_color",function(o){o.bind(function(o){if(t=l("blogsy_card_widget_bg_color"),o){var e='html:not([scheme="dark"]) .card-layout, html:not([scheme="dark"]) .card-layout-w { background: '+o+"; }";t.html(e)}else t.html("")})}),i("blogsy_sidebar_widget_box_shadow",function(e){e.bind(function(e){if(o(".sidebar-container .sidebar-container-inner > .blogsy-sidebar-widget").length){t=l("blogsy_sidebar_widget_box_shadow");var i=c('html:not([scheme="dark"]) .sidebar-container .sidebar-container-inner > .blogsy-sidebar-widget',e,"box-shadow");t.html(i)}})}),i("blogsy_sidebar_widget_border",function(e){e.bind(function(e){if(o(".sidebar-container .sidebar-container-inner > .blogsy-sidebar-widget").length){t=l("blogsy_sidebar_widget_border");var i=c('html:not([scheme="dark"]) .sidebar-container .sidebar-container-inner > .blogsy-sidebar-widget',e,"border");t.html(i)}})}),i("blogsy_sidebar_widget_bg_color",function(o){o.bind(function(o){if(t=l("blogsy_sidebar_widget_bg_color"),o){var e='html:not([scheme="dark"]) .sidebar-container .sidebar-container-inner > .blogsy-sidebar-widget { background: '+o+"; }";t.html(e)}else t.html("")})}),i.selectiveRefresh&&i.selectiveRefresh.bind("partial-content-rendered",function(t){"blogsy_hero_slider_post_number"!==t.partial.id&&"blogsy_hero_slider_elements"!==t.partial.id||document.querySelectorAll(t.partial.params.selector).forEach(t=>{window.blogsy.blogsyHeroSlider(o(t))}),"blogsy_pyml_post_number"!==t.partial.id&&"blogsy_pyml_elements"!==t.partial.id||document.querySelectorAll(t.partial.params.selector).forEach(t=>{window.blogsy.blogsyPymlSlider(o(t))})}),i.blogsyCustomizerPreview={init:function(){var t=this;t.preview.body.on("click",".blogsy-set-widget",function(e){e.preventDefault(),t.preview.send("set-footer-widget",o(this).data("sidebar-id"))})}};var f=i.Preview;i.Preview=f.extend({initialize:function(o,t){i.blogsyCustomizerPreview.preview=this,f.prototype.initialize.call(this,o,t)}}),o(function(){i.blogsyCustomizerPreview.init()})}(jQuery);