File: //home/diditleak.co.uk/public_html-20250117120602/wp-content/themes/sydney/js/customizer.min.js
function hideControls(e){for(var t=0;t<e.length;t++)window.parent.window.wp.customize.control(e[t])&&(window.parent.window.wp.customize.control(e[t]).toggle(!1),jQuery(window.parent.window.wp.customize.control(e[t]).container[0]).css("display","none"))}function showControls(e){for(var t=0;t<e.length;t++)window.parent.window.wp.customize.control(e[t])&&window.parent.window.wp.customize.control(e[t]).toggle(!0)}function hexToRGB(e,t){var o=parseInt(e.slice(1,3),16),n=parseInt(e.slice(3,5),16),i=parseInt(e.slice(5,7),16);return t?"rgba("+o+", "+n+", "+i+", "+t+")":"rgb("+o+", "+n+", "+i+")"}(function(e){wp.customize("blogname",function(t){t.bind(function(t){e(".site-title a").text(t)})}),wp.customize("blogdescription",function(t){t.bind(function(t){e(".site-description").text(t)})}),wp.customize("header_textcolor",function(t){t.bind(function(t){"blank"===t?e(".site-title, .site-description").css({clip:"rect(1px, 1px, 1px, 1px)",position:"absolute"}):e(".site-title, .site-description").css({clip:"auto",color:t,position:"relative"})})}),wp.customize("site_title_color",function(t){t.bind(function(t){e(".site-title a").css("color",t)})}),wp.customize("site_desc_color",function(t){t.bind(function(t){e(".site-description").css("color",t)})}),wp.customize("top_items_color",function(t){t.bind(function(t){e("#mainnav ul li a").not("#mainnav .sub-menu li a").css("color",t)})}),wp.customize("submenu_items_color",function(t){t.bind(function(t){e("#mainnav .sub-menu li a ").css("color",t)})}),wp.customize("slider_text",function(t){t.bind(function(t){e(".text-slider .maintitle, .text-slider .subtitle").css("color",t)})}),wp.customize("body_text_color",function(t){t.bind(function(t){e("body").css("color",t)})}),wp.customize("sidebar_background",function(t){t.bind(function(t){e(".widget-area").css("background-color",t)})}),wp.customize("sidebar_color",function(t){t.bind(function(t){e(".widget-area,.widget-area a, .widget-area .widget-title").css("color",t)})}),wp.customize("footer_widgets_background",function(t){t.bind(function(t){e(".footer-widgets").css("background-color",t)})}),wp.customize("footer_widgets_color",function(t){t.bind(function(t){e(".sidebar-column .widget").css("color",t)})}),wp.customize("footer_widgets_links_color",function(t){t.bind(function(t){e(".sidebar-column .widget a").css("color",t)})}),wp.customize("footer_background",function(t){t.bind(function(t){e(".site-footer").css("background-color",t)})}),wp.customize("footer_color",function(t){t.bind(function(t){e(".sydney-credits,.sydney-credits a").css("color",t)})}),wp.customize("slider_image_1",function(t){t.bind(function(t){e(".slide-item:eq(0)").css("background-image","url("+t+")")})}),wp.customize("slider_image_2",function(t){t.bind(function(t){e(".slide-item:eq(1)").css("background-image","url("+t+")")})}),wp.customize("slider_image_3",function(t){t.bind(function(t){e(".slide-item:eq(2)").css("background-image","url("+t+")")})}),wp.customize("slider_image_4",function(t){t.bind(function(t){e(".slide-item:eq(3)").css("background-image","url("+t+")")})}),wp.customize("slider_image_5",function(t){t.bind(function(t){e(".slide-item:eq(4)").css("background-image","url("+t+")")})}),wp.customize("slider_button_url",function(t){t.bind(function(t){e(".button-slider").attr("href",t)})}),wp.customize("primary_color",function(t){t.bind(function(t){var o=e("#sydney-style-min-inline-css").text(),n=o+".go-top:hover svg,.sydney_contact_info_widget span { fill:"+t+'}.widget-area .widget_fp_social a,#mainnav ul li a:hover, .sydney_contact_info_widget span, .roll-team .team-content .name,.roll-team .team-item .team-pop .team-social li:hover a,.roll-infomation li.address:before,.roll-infomation li.phone:before,.roll-infomation li.email:before,.roll-testimonials .name,.roll-button.border,.roll-button:hover,.roll-icon-list .icon i,.roll-icon-list .content h3 a:hover,.roll-icon-box.white .content h3 a,.roll-icon-box .icon i,.roll-icon-box .content h3 a:hover,.switcher-container .switcher-icon a:focus,.go-top:hover,.hentry .meta-post a:hover,#mainnav > ul > li > a.active, #mainnav > ul > li > a:hover, button:hover, input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover, .text-color, .social-menu-widget a, .social-menu-widget a:hover, .archive .team-social li a, a, h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,.classic-alt .meta-post a,.single .hentry .meta-post a { color:'+t+'}.reply,.woocommerce div.product .woocommerce-tabs ul.tabs li.active,.woocommerce #respond input#submit,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.project-filter li a.active, .project-filter li a:hover,.preloader .pre-bounce1, .preloader .pre-bounce2,.roll-team .team-item .team-pop,.roll-progress .progress-animate,.roll-socials li a:hover,.roll-project .project-item .project-pop,.roll-project .project-filter li.active,.roll-project .project-filter li:hover,.roll-button.light:hover,.roll-button.border:hover,.roll-button,.roll-icon-box.white .icon,.owl-theme .owl-controls .owl-page.active span,.owl-theme .owl-controls.clickable .owl-page:hover span,.go-top,.bottom .socials li:hover a,.sidebar .widget:before,.blog-pagination ul li.active,.blog-pagination ul li:hover a,.content-area .hentry:after,.text-slider .maintitle:after,.error-wrap #search-submit:hover,#mainnav .sub-menu li:hover > a,#mainnav ul li ul:after, button, input[type="button"], input[type="reset"], input[type="submit"], .panel-grid-cell .widget-title:after, .cart-amount { background-color:'+t+'}.roll-socials li a:hover,.roll-socials li a,.roll-button.light:hover,.roll-button.border,.roll-button,.roll-icon-list .icon,.roll-icon-box .icon,.owl-theme .owl-controls .owl-page span,.comment .comment-detail,.widget-tags .tag-list a:hover,.blog-pagination ul li,.hentry blockquote,.error-wrap #search-submit:hover,textarea:focus,input[type="text"]:focus,input[type="password"]:focus,input[type="datetime"]:focus,input[type="datetime-local"]:focus,input[type="date"]:focus,input[type="month"]:focus,input[type="time"]:focus,input[type="week"]:focus,input[type="number"]:focus,input[type="email"]:focus,input[type="url"]:focus,input[type="search"]:focus,input[type="tel"]:focus,input[type="color"]:focus, button, input[type="button"], input[type="reset"], input[type="submit"], .archive .team-social li a { border-color:'+t+"}";e("#sydney-style-min-inline-css").text(n)})}),wp.customize("body_font",function(t){t.bind(function(t){e("#sydney-preview-google-fonts-body-css").attr("href","https://fonts.googleapis.com/css?family="+t.replace(/ /g,"+")+"&display=swap"),e("body, #mainnav ul ul a").css("font-family",t)})}),wp.customize("headings_font",function(t){t.bind(function(t){e("#sydney-preview-google-fonts-headings-css").attr("href","https://fonts.googleapis.com/css?family="+t.replace(/ /g,"+")+"&display=swap"),e('h1, h2, h3, h4, h5, h6, #mainnav ul li a, .portfolio-info, .roll-testimonials .name, .roll-team .team-content .name, .roll-team .team-item .team-pop .name, .roll-tabs .menu-tab li a, .roll-testimonials .name, .roll-project .project-filter li a, .roll-button, .roll-counter .name-count, .roll-counter .numb-count button, input[type="button"], input[type="reset"], input[type="submit"]').css("font-family",t)})}),wp.customize("scrolltop_radius",function(t){t.bind(function(t){e(".go-top.show").css("border-radius",t+"px")})}),wp.customize("scrolltop_side_offset",function(t){t.bind(function(t){e(".go-top.position-right").css("right",t+"px"),e(".go-top.position-left").css("left",t+"px")})}),wp.customize("scrolltop_bottom_offset",function(t){t.bind(function(t){e(".go-top").css("bottom",t+"px")})}),wp.customize("scrolltop_icon_size",function(t){t.bind(function(t){e(".go-top .sydney-svg-icon, .go-top .sydney-svg-icon svg").css("width",t+"px"),e(".go-top .sydney-svg-icon, .go-top .sydney-svg-icon svg").css("height",t+"px")})}),wp.customize("scrolltop_padding",function(t){t.bind(function(t){e(".go-top").css("padding",t+"px")})});var t={color_forms_background:'input[type="text"],input[type="email"],input[type="url"],input[type="password"],input[type="search"],input[type="number"],input[type="tel"],input[type="range"],input[type="date"],input[type="month"],input[type="week"],input[type="time"],input[type="datetime"],input[type="datetime-local"],input[type="color"],textarea,select,.woocommerce .select2-container .select2-selection--single,.woocommerce-page .select2-container .select2-selection--single,.woocommerce-cart .woocommerce-cart-form .actions .coupon input[type="text"]',shop_product_card_background:".woocommerce-page ul.products li.product",offcanvas_submenu_color:".sydney-offcanvas-menu #mainnav ul ul a",offcanvas_menu_background:".sydney-offcanvas-menu",mobile_header_background:"#masthead-mobile",main_header_submenu_background:".mainnav ul ul li",main_header_bottom_background:".bottom-header-row",main_header_background:".main-header,.header-search-form",main_header_background_sticky:".main-header.sticky-active",topbar_background:".top-bar",button_background_color:'button,.roll-button,a.button,.wp-block-button:not(.is-style-outline) a,input[type="button"],input[type="reset"],input[type="submit"]',scrolltop_bg_color:".go-top"};e.each(t,function(t,o){wp.customize(t,function(t){t.bind(function(t){e(o).css("background-color",t)})})});var o={color_forms_text:'input[type="text"],input[type="email"],input[type="url"],input[type="password"],input[type="search"],input[type="number"],input[type="tel"],input[type="range"],input[type="date"],input[type="month"],input[type="week"],input[type="time"],input[type="datetime"],input[type="datetime-local"],input[type="color"],textarea,select,.woocommerce .select2-container .select2-selection--single,input[type="text"]:focus,input[type="email"]:focus,input[type="url"]:focus,input[type="password"]:focus,input[type="search"]:focus,input[type="number"]:focus,input[type="tel"]:focus,input[type="range"]:focus,input[type="date"]:focus,input[type="month"]:focus,input[type="week"]:focus,input[type="time"]:focus,input[type="datetime"]:focus,input[type="datetime-local"]:focus,input[type="color"]:focus,textarea:focus,select:focus,.woocommerce .select2-container .select2-selection--single:focus,.woocommerce-page .select2-container .select2-selection--single,.select2-container--default .select2-selection--single .select2-selection__rendered',color_link_default:".entry-content a:not(.button):not(.elementor-button-link)",color_heading_1:"h1",color_heading_2:"h2,.wp-block-search .wp-block-search__label",color_heading_3:"h3",color_heading_4:"h4,.product-gallery-summary .product_meta,.product-gallery-summary .product_meta a,.woocommerce-breadcrumb,.woocommerce-breadcrumb a,.woocommerce-tabs ul.tabs li a,.product-gallery-summary .woocommerce-Price-amount,.woocommerce-mini-cart-item .quantity,.woocommerce-mini-cart__total .woocommerce-Price-amount,.order-total .woocommerce-Price-amount",color_heading_5:"h5:not(.sticky-addtocart-title)",color_heading_6:"h6",offcanvas_menu_color:".sydney-offcanvas-menu, .sydney-offcanvas-menu a:not(.button)",mobile_header_color:"#masthead-mobile,#masthead-mobile .site-description,#masthead-mobile a:not(.button)",main_header_submenu_color:".mainnav ul ul a",main_header_bottom_color:".bottom-header-row, .bottom-header-row .header-contact a,.bottom-header-row .mainnav .menu > li > a",main_header_color:".main-header .site-title a,.main-header .site-description,.main-header .mainnav .menu > li > a, .main-header .header-contact a",topbar_color:".top-bar, .top-bar a",single_post_meta_color:".single .entry-header .entry-meta,.single .entry-header .entry-meta a",single_post_title_color:".single .entry-header .entry-title",loop_post_text_color:".posts-layout .entry-post",loop_post_title_color:".posts-layout .entry-title a",loop_post_meta_color:".posts-layout .entry-meta,.posts-layout .entry-meta a",button_color:'button,.roll-button,a.button,.wp-block-button__link,input[type="button"],input[type="reset"],input[type="submit"]',scrolltop_color:".go-top",footer_widgets_headings_color:".sidebar-column .widget h1, .sidebar-column .widget h2, .sidebar-column .widget h3, .sidebar-column .widget h4, .sidebar-column .widget h5, .sidebar-column .widget h6",footer_widgets_title_color:".sidebar-column .widget .widget-title"};e.each(o,function(t,o){wp.customize(t,function(t){t.bind(function(t){e(o).css("color",t)})})});var n={scrolltop_color:".go-top svg"};e.each(n,function(t,o){wp.customize(t,function(t){t.bind(function(t){e(o).css("stroke",t)})})});var i={button_background_color_hover:'button:hover,.roll-button:hover,a.button:hover,.wp-block-button__link:hover,input[type="button"]:hover,input[type="reset"]:hover,input[type="submit"]:hover',scrolltop_bg_color_hover:".go-top:hover"};e.each(i,function(t,o){wp.customize(t,function(n){n.bind(function(n){e("head").find("#sydney-customizer-styles-"+t).remove();var i=o+" { background-color:"+n+"!important; }";e("head").append('<style id="sydney-customizer-styles-'+t+'">'+i+"</style>")})})});var s={button_border_color_hover:'button:hover,.roll-button:hover,a.button:hover,.wp-block-button__link:hover,input[type="button"]:hover,input[type="reset"]:hover,input[type="submit"]:hover'};e.each(s,function(t,o){wp.customize(t,function(n){n.bind(function(n){e("head").find("#sydney-customizer-styles-"+t).remove();var i=o+" { border-color:"+n+"!important; }";e("head").append('<style id="sydney-customizer-styles-'+t+'">'+i+"</style>")})})});var a={scrolltop_color_hover:".go-top:hover svg"};e.each(a,function(t,o){wp.customize(t,function(n){n.bind(function(n){e("head").find("#sydney-customizer-stroke-"+t).remove();var i=o+" { stroke:"+n+"!important; }";e("head").append('<style id="sydney-customizer-stroke-'+t+'">'+i+"</style>")})})});var c={color_link_hover:".entry-content a:not(.button):not(.elementor-button-link):hover",button_color_hover:'button:hover,.roll-button:hover,a.button:hover,.wp-block-button__link:hover,input[type="button"]:hover,input[type="reset"]:hover,input[type="submit"]:hover',scrolltop_color_hover:".go-top:hover",footer_widgets_links_hover_color:".sidebar-column .widget a:hover"};e.each(c,function(t,o){wp.customize(t,function(n){n.bind(function(n){e("head").find("#sydney-customizer-styles-"+t).remove();var i=o+" { color:"+n+"!important; }";e("head").append('<style id="sydney-customizer-styles-'+t+'">'+i+"</style>")})})});var r={main_header_submenu_color:".mainnav ul ul li svg",offcanvas_menu_color:".sydney-offcanvas-menu svg",mobile_header_color:"#masthead-mobile svg",offcanvas_menu_color:".sydney-offcanvas-menu svg",mobile_header_color:"#masthead-mobile svg",main_header_bottom_color:".bottom-header-row .sydney-svg-icon svg,.dropdown-symbol .ws-svg-icon svg",main_header_color:".main-header .header-item svg, .main-header .dropdown-symbol .sydney-svg-icon svg",topbar_color:".top-bar svg",footer_color:".site-info .sydney-svg-icon svg"};e.each(r,function(t,o){wp.customize(t,function(t){t.bind(function(t){e(o).css("fill",t)})})});var l={color_forms_borders:'input[type="text"],input[type="email"],input[type="url"],input[type="password"],input[type="search"],input[type="number"],input[type="tel"],input[type="range"],input[type="date"],input[type="month"],input[type="week"],input[type="time"],input[type="datetime"],input[type="datetime-local"],input[type="color"],textarea,select,.woocommerce .select2-container .select2-selection--single,.woocommerce-page .select2-container .select2-selection--single,.woocommerce-account fieldset,.woocommerce-account .woocommerce-form-login, .woocommerce-account .woocommerce-form-register,.woocommerce-cart .woocommerce-cart-form .actions .coupon input[type="text"]',shop_product_card_border_color:".woocommerce-page ul.products li.product",link_separator_color:".sydney-offcanvas-menu .mainnav ul li",button_border_color:'button,.roll-button,a.button,.wp-block-button__link,input[type="button"],input[type="reset"],input[type="submit"]',footer_credits_divider_color:".site-info,.site-footer",footer_widgets_divider_color:".footer-widgets,.footer-widgets-grid"};e.each(l,function(t,o){wp.customize(t,function(t){t.bind(function(t){e(o).css("border-color",t)})})});var u={desktop:"(min-width: 992px)",tablet:"(min-width: 576px) and (max-width: 991px)",mobile:"(max-width: 575px)"},d={breadcrumbs_padding:".sydney-breadcrumb-trail",footer_widgets_padding:".footer-widgets-grid",button_top_bottom_padding:"button,.roll-button,a.button,.wp-block-button__link,input[type='button'],input[type='reset'],input[type='submit']"};e.each(d,function(t,o){e.each(u,function(n,i){wp.customize(t+"_"+n,function(s){s.bind(function(s){e("head").find("#sydney-customizer-styles-"+t+"_"+n).remove();var a="@media "+i+" {"+o+" { padding-top:"+s+"px;padding-bottom:"+s+"px; } }";e("head").append('<style id="sydney-customizer-styles-'+t+"_"+n+'">'+a+"</style>")})})})});var p={button_left_right_padding:"button,.roll-button,a.button,.wp-block-button__link,input[type='button'],input[type='reset'],input[type='submit']"};e.each(p,function(t,o){e.each(u,function(n,i){wp.customize(t+"_"+n,function(s){s.bind(function(s){e("head").find("#sydney-customizer-styles-"+t+"_"+n).remove();var a="@media "+i+" {"+o+" { padding-left:"+s+"px;padding-right:"+s+"px; } }";e("head").append('<style id="sydney-customizer-styles-'+t+"_"+n+'">'+a+"</style>")})})})});var m={footer_copyright_font_size:".site-info",button_font_size:"button,.roll-button,a.button,.wp-block-button__link,input[type='button'],input[type='reset'],input[type='submit']",sydney_menu_font_size:"#mainnav > div > ul > li > a",single_product_title_size:".woocommerce div.product .product-gallery-summary .entry-title",single_product_price_size:".woocommerce div.product .product-gallery-summary .price .amount",site_desc_font_size:".site-description",site_title_font_size:".site-title",body_font_size:"body, .posts-layout .entry-post",h1_font_size:"h1:not(.site-title)",h2_font_size:"h2",h3_font_size:"h3",h4_font_size:"h4",h5_font_size:"h5",h6_font_size:"h6",single_product_title_size:".product-gallery-summary .entry-title",single_product_price_size:".product-gallery-summary .price",loop_post_text_size:".posts-layout .entry-post",loop_post_meta_size:".posts-layout .entry-meta",loop_post_title_size:".posts-layout .entry-title",single_post_title_size:".single .entry-header .entry-title",single_post_meta_size:".single .entry-meta",footer_widgets_title_size:".sidebar-column .widget .widget-title",footer_widgets_body_size:".footer-widgets"};e.each(m,function(t,o){e.each(u,function(n,i){wp.customize(t+"_"+n,function(s){s.bind(function(s){e("head").find("#sydney-customizer-styles-"+t+"_"+n).remove();var a="@media "+i+" {"+o+" { font-size:"+s+"px; } }";e("head").append('<style id="sydney-customizer-styles-'+t+"_"+n+'">'+a+"</style>")})})})}),wp.customize("footer_widgets_column_spacing_desktop",function(t){t.bind(function(t){e(".footer-widgets-grid").css("gap",t+"px")})}),wp.customize("footer_widgets_divider_size",function(t){t.bind(function(t){e(".footer-widgets,.footer-widgets-grid").css("border-top-width",t+"px")})}),wp.customize("footer_credits_divider_size",function(t){t.bind(function(t){e(".site-info,.site-footer").css("border-top-width",t+"px")})}),wp.customize("footer_credits_padding_desktop",function(t){t.bind(function(t){e(".site-info").css({"padding-top":t+"px","padding-bottom":t+"px"})})}),wp.customize("archive_featured_image_size_desktop",function(t){t.bind(function(t){e(".posts-layout .list-image").css("width",t+"%"),e(".posts-layout .list-content").css("width",100-t+"%")})}),wp.customize("archive_featured_image_size_desktop",function(t){t.bind(function(t){e(".posts-layout .list-image").css("width",t+"%"),e(".posts-layout .list-content").css("width",100-t+"%")})}),wp.customize("archive_meta_spacing",function(t){t.bind(function(t){e(".posts-layout .entry-meta.below-excerpt").css("margin-top",t+"px"),e(".posts-layout .entry-meta.above-title").css("margin-bottom",t+"px")})}),wp.customize("archive_title_spacing",function(t){t.bind(function(t){e(".posts-layout .entry-header").css("margin-bottom",t+"px")})}),wp.customize("single_post_header_spacing",function(t){t.bind(function(t){e(".single .entry-header").css("margin-bottom",t+"px")})}),wp.customize("single_post_image_spacing",function(t){t.bind(function(t){e(".single-post .entry-thumb").css("margin-bottom",t+"px")})}),wp.customize("single_post_meta_spacing",function(t){t.bind(function(t){e(".single .entry-meta-above").css("margin-bottom",t+"px"),e(".single .entry-meta-below").css("margin-top",t+"px")})}),wp.customize("main_header_padding",function(t){t.bind(function(t){e(".site-header-inner, .top-header-row").css({paddingTop:t+"px",paddingBottom:t+"px"})})}),wp.customize("main_header_bottom_padding",function(t){t.bind(function(t){e(".bottom-header-inner").css({paddingTop:t+"px",paddingBottom:t+"px"})})}),wp.customize("main_header_divider_color",function(t){t.bind(function(t){e(".main-header, .bottom-header-row,.top-header-row,.site-header-inner, .bottom-header-inner").css("border-color",t)})}),wp.customize("mobile_menu_alignment",function(t){t.bind(function(t){e(".sydney-offcanvas-menu .mainnav ul li").css("text-align",t),e(".mobile-header-item.offcanvas-items").css("text-align",t),e(".mobile-header-item.offcanvas-items .social-profile").css("text-align",t),"center"==t?(e(".sydney-offcanvas-menu .header-item.header-woo").css("justify-content","center"),e(".mobile-header-item.offcanvas-items .button").css("align-self","center")):"right"==t?(e(".sydney-offcanvas-menu .header-item.header-woo").css("justify-content","flex-end"),e(".mobile-header-item.offcanvas-items .button").css("align-self","flex-end")):(e(".sydney-offcanvas-menu .header-item.header-woo").css("justify-content","flex-start"),e(".mobile-header-item.offcanvas-items .button").css("align-self","flex-start"))})}),wp.customize("mobile_menu_link_spacing",function(t){t.bind(function(t){e(".sydney-offcanvas-menu .mainnav a").css("padding-top",t/2),e(".sydney-offcanvas-menu .mainnav a").css("padding-bottom",t/2)})}),wp.customize("mobile_header_padding",function(t){t.bind(function(t){e(".mobile-header").css({paddingTop:t+"px",paddingBottom:t+"px"})})}),wp.customize("mobile_header_separator_width",function(t){t.bind(function(t){e(".sydney-offcanvas-menu .mainnav ul li").css("border-bottom-width",t+"px")})});var f={site_logo_size:".site-logo"};e.each(f,function(t,o){e.each(u,function(n,i){wp.customize(t+"_"+n,function(s){s.bind(function(s){e("head").find("#sydney-customizer-styles-"+t+"_"+n).remove();var a="@media "+i+" {"+o+" { max-height:"+s+"px; } }";e("head").append('<style id="sydney-customizer-styles-'+t+"_"+n+'">'+a+"</style>")})})})}),wp.customize("sydney_body_font",function(t){t.bind(function(t){e("head").find("#sydney-preview-google-fonts-body-css").remove(),e("head").find("#sydney-preview-body-weight-css").remove(),e("head").append('<link id="sydney-preview-google-fonts-body-css" href="" rel="stylesheet">'),e("#sydney-preview-google-fonts-body-css").attr("href","https://fonts.googleapis.com/css?family="+jQuery.parseJSON(t).font.replace(/ /g,"+")+":"+jQuery.parseJSON(t).regularweight+"&display=swap"),e("body").css("font-family",jQuery.parseJSON(t).font),e("head").append('<style id="sydney-preview-body-weight-css" type="text/css">body {font-weight:'+jQuery.parseJSON(t).regularweight+";}</style>")})}),wp.customize("sydney_headings_font",function(t){t.bind(function(t){e("head").find("#sydney-preview-google-fonts-headings-css").remove(),e("head").find("#sydney-preview-headings-weight-css").remove(),e("head").append('<link id="sydney-preview-google-fonts-headings-css" href="" rel="stylesheet">'),e("#sydney-preview-google-fonts-headings-css").attr("href","https://fonts.googleapis.com/css?family="+jQuery.parseJSON(t).font.replace(/ /g,"+")+":"+jQuery.parseJSON(t).regularweight+"&display=swap"),e("h1,h2,h3,h4,h5,h6,.site-title").css("font-family",jQuery.parseJSON(t).font),e("head").append('<style id="sydney-preview-headings-weight-css" type="text/css">h1,h2,h3,h4,h5,h6,.site-title {font-weight:'+jQuery.parseJSON(t).regularweight+";}</style>")})}),wp.customize("sydney_menu_font",function(t){t.bind(function(t){e("head").find("#sydney-preview-google-fonts-menu-css").remove(),e("head").find("#sydney-preview-menu-weight-css").remove(),e("head").append('<link id="sydney-preview-google-fonts-menu-css" href="" rel="stylesheet">'),e("#sydney-preview-google-fonts-menu-css").attr("href","https://fonts.googleapis.com/css?family="+jQuery.parseJSON(t).font.replace(/ /g,"+")+":"+jQuery.parseJSON(t).regularweight+"&display=swap"),e("#mainnav > div > ul > li > a").css("font-family",jQuery.parseJSON(t).font),e("head").append('<style id="sydney-preview-menu-weight-css" type="text/css">#mainnav > div > ul > li > a {font-weight:'+jQuery.parseJSON(t).regularweight+";}</style>")})}),wp.customize("headings_font_style",function(t){t.bind(function(t){e("h1,h2,h3,h4,h5,h6,.site-title").css("font-style",t)})}),wp.customize("headings_line_height",function(t){t.bind(function(t){e("h1,h2,h3,h4,h5,h6,.site-title").css("line-height",t)})}),wp.customize("headings_letter_spacing",function(t){t.bind(function(t){e("h1,h2,h3,h4,h5,h6,.site-title").css("letter-spacing",t+"px")})}),wp.customize("headings_text_transform",function(t){t.bind(function(t){e("h1,h2,h3,h4,h5,h6,.site-title").css("text-transform",t)})}),wp.customize("menu_items_text_transform",function(t){t.bind(function(t){e("#mainnav > div > ul > li > a").css("text-transform",t)})}),wp.customize("headings_text_decoration",function(t){t.bind(function(t){e("h1,h2,h3,h4,h5,h6,.site-title").css("text-decoration",t)})}),wp.customize("body_font_style",function(t){t.bind(function(t){e("body").css("font-style",t)})}),wp.customize("body_line_height",function(t){t.bind(function(t){e("body").css("line-height",t)})}),wp.customize("body_letter_spacing",function(t){t.bind(function(t){e("body").css("letter-spacing",t+"px")})}),wp.customize("body_text_transform",function(t){t.bind(function(t){e("body").css("text-transform",t)})}),wp.customize("body_text_decoration",function(t){t.bind(function(t){e("p, .posts-layout .entry-post").css("text-decoration",t)})}),wp.customize("swc_single_product_title_font_size",function(t){t.bind(function(t){e(".woocommerce .product-gallery-summary .product_title").css("font-size",t+"px")})}),wp.customize("swc_single_product_title_color",function(t){t.bind(function(t){e(".woocommerce .product-gallery-summary .product_title").css("color",t)})}),wp.customize("shop_cart_show_coupon_form",function(t){t.bind(function(t){t?e(".woocommerce-cart .coupon").css("display","block"):e(".woocommerce-cart .coupon").css("display","none")})}),wp.customize("shop_product_element_spacing",function(t){t.bind(function(t){e(".woocommerce ul.products li.product .col-md-7 > *,.woocommerce ul.products li.product .col-md-8 > *,.woocommerce ul.products li.product > *").css("margin-bottom",t+"px")})}),wp.customize("shop_sale_tag_radius",function(t){t.bind(function(t){e(".wc-block-grid__product-onsale, span.onsale").css("border-radius",t+"px")})}),wp.customize("shop_product_card_radius",function(t){t.bind(function(t){e(".woocommerce ul.products li.product").css("border-radius",t+"px")})}),wp.customize("shop_product_card_thumb_radius",function(t){t.bind(function(t){e(".woocommerce ul.products li.product .loop-image-wrap").css("border-radius",t+"px")})}),wp.customize("shop_product_card_border_size",function(t){t.bind(function(t){e(".woocommerce ul.products li.product").css("border-width",t+"px")})}),wp.customize("color_forms_placeholder",function(t){t.bind(function(t){e("head").find("#sydney-customizer-styles-color_forms_placeholder").remove();var o="input::placeholder {color:"+t+";opacity:1;} input:-ms-input-placeholder {color:"+t+";} input::-ms-input-placeholder {color:"+t+";}";e("head").append('<style id="sydney-customizer-styles-color_forms_placeholder">'+o+"</style>")})});var _=syd_data.post_types;e.each(_,function(t,o){wp.customize(o+"_boxed_content",function(t){t.bind(function(t){"unboxed"===t?e(".content-inner").css({padding:0,background:"transparent","box-shadow":"none"}):e(".content-inner").css({padding:60,background:"#fff","box-shadow":"0 0 15px 0 rgba(0,0,0,0.05)"})})}),wp.customize("sidebar_single_"+o+"_position",function(t){t.bind(function(t){"page"===o?e(".page").find(".content-area").removeClass("sidebar-left sidebar-right").addClass(t):e(".single-"+o).find(".content-area").removeClass("sidebar-left sidebar-right").addClass(t)})})});o=sydney_theme_options;e.each(o,function(t,n){wp.customize(n.option,function(t){t.bind(function(t,i){var s="";e.each(o,function(o,i){if(n.option===i.option){var a=void 0!==i.unit?i.unit:"";if(void 0!==i.condition&&void 0!==window.parent.window.wp.customize(i.condition)&&window.parent.window.wp.customize.control(i.condition).setting._value!==i.cond_value)return;t||(t="transparent"),a||(t=void 0!==i.rgba?hexToRGB(t,i.rgba):t),void 0===i.pseudo?"string"==typeof i.prop?e(i.selector).css(i.prop,t+a):e.each(i.prop,function(o,n){e(i.selector).css(n,t+a)}):"string"==typeof i.prop?s+=i.selector+"{ "+i.prop+": "+t+"!important; }":e.each(i.prop,function(e,o){s+=i.selector+"{ "+o+": "+t+"!important; }"})}}),s&&(e("#sydney-customizer-styles-misc-"+n.option).get(0)?e("#sydney-customizer-styles-misc-"+n.option).text(s):e("head").append('<style id="sydney-customizer-styles-misc-'+n.option+'">'+s+"</style>"))})})}),wp.customize("container_width",function(t){t.bind(function(t){e("head").find("#sydney-customizer-styles-container_width").remove();var o="@media (min-width: 1200px) { .container { width:100%;max-width: "+t+"px; } }";e("head").append('<style id="sydney-customizer-styles-container_width">'+o+"</style>")})}),wp.customize("narrow_container_width",function(t){t.bind(function(t){e("head").find("#sydney-customizer-styles-narrow_container_width").remove();var o="@media (min-width: 1200px) { .container-narrow { width:100%;max-width: "+t+"px; } }";e("head").append('<style id="sydney-customizer-styles-narrow_container_width">'+o+"</style>")})}),wp.customize("wrapper_top_padding",function(t){t.bind(function(t){e(".page-wrap").css("padding-top",t+"px")})}),wp.customize("wrapper_bottom_padding",function(t){t.bind(function(t){e(".page-wrap").css("padding-bottom",t+"px")})}),wp.customize("breadcrumbs_position",function(t){t.bind(function(t){"sydney_before_title"===t?e(".sydney-breadcrumb-trail").insertBefore(".entry-header").find(".container").css("padding","0"):e(".sydney-breadcrumb-trail").insertAfter("#masthead-mobile").find(".container").css("padding","0 15px")})}),wp.customize("scrolltop_position",function(t){t.bind(function(t){"left"===t?e(".go-top").removeClass("position-right").addClass("position-left").css("right","auto").css("left",""):e(".go-top").removeClass("position-left").addClass("position-right").css("left","auto").css("right","")})}),wp.customize("buttons_radius",function(t){t.bind(function(t){e('button,.roll-button,a.button,.wp-block-button__link,input[type="button"],input[type="reset"],input[type="submit"], .wp-block-button__link').css("border-radius",t+"px")})}),wp.customize("button_text_transform",function(t){t.bind(function(t){e('button,.roll-button,a.button,.wp-block-button__link,input[type="button"],input[type="reset"],input[type="submit"]').css("text-transform",t)})}),wp.customize("modal_popup_layout",function(t){t.bind(function(t){e(".sydney-popup-wrapper").removeClass("sydney-popup-wrapper--layout-style1 sydney-popup-wrapper--layout-style2 sydney-popup-wrapper--layout-style3").addClass("sydney-popup-wrapper--layout-"+t),"style3"===t?e(".sydney-popup-wrapper__content-side-image").hide():e(".sydney-popup-wrapper__content-side-image").show()})}),wp.customize("live_chat_position",function(t){t.bind(function(t){"left"===t?e(".sydney-whatsapp-live-chat").removeClass("live-chat-right").addClass("live-chat-left"):e(".sydney-whatsapp-live-chat").removeClass("live-chat-left").addClass("live-chat-right")})}),
wp.customize("live_chat_popup_header_title",function(t){t.bind(function(t){e(".live-chat-popup-header").find("h5").text(t)})}),wp.customize("live_chat_whatsapp_cta",function(t){t.bind(function(t){e(".live-chat-popup-body").text(t)})}),wp.customize("live_chat_popup_button_text",function(t){t.bind(function(t){e(".live-chat-popup-button").text(t)})}),wp.customize("live_chat_terms",function(t){t.bind(function(t){e(".live-chat-terms").find("label").html(t)})}),wp.customize("live_chat_only_mobile",function(t){t.bind(function(t){!0===t?e(".sydney-whatsapp-live-chat").addClass("live-chat-mobile"):e(".sydney-whatsapp-live-chat").removeClass("live-chat-mobile")})}),wp.customize("live_chat_whatsapp",function(t){t.bind(function(t){e(".live-chat-popup-button").attr("href","https://wa.me/"+t)})}),wp.customize("live_chat_whatsapp_initial_text",function(t){t.bind(function(t){var o=e(".live-chat-popup-button").attr("href");o=o.replace(/(\?text=)(.*)/,""),e(".live-chat-popup-button").attr("href",o+"?text="+t)})}),wp.customize("topbar_container",function(t){t.bind(function(t){"container"===t?e(".top-bar > div").removeClass("container-fluid").addClass("container"):e(".top-bar > div").removeClass("container").addClass("container-fluid")})}),wp.customize("topbar_delimiter",function(t){t.bind(function(t){"none"===t?e(".top-bar .header-elements").removeClass("delimiter-dot delimiter-vertical delimiter-horizontal").addClass("delimiter-none"):"dot"===t?e(".top-bar .header-elements").removeClass("delimiter-none delimiter-vertical delimiter-horizontal").addClass("delimiter-dot"):"vertical"===t?e(".top-bar .header-elements").removeClass("delimiter-none delimiter-dot delimiter-horizontal").addClass("delimiter-vertical"):"horizontal"===t&&e(".top-bar .header-elements").removeClass("delimiter-none delimiter-dot delimiter-vertical").addClass("delimiter-horizontal")})}),wp.customize("topbar_contact_mail",function(t){t.bind(function(t){e(".topbar_contact_mail span").text(t),e(".topbar_contact_mail").attr("href","mailto:"+t)})}),wp.customize("topbar_contact_phone",function(t){t.bind(function(t){e(".topbar_contact_phone span").text(t),e(".topbar_contact_phone").attr("href","tel:"+t)})}),wp.customize("topbar_text",function(t){t.bind(function(t){e(".topbar-text").text(t)})}),wp.customize("topbar_html_content",function(t){t.bind(function(t){e(".topbar-html").html(t)})}),wp.customize("header_layout_desktop",function(t){t.bind(function(t){e(".bottom-header-row").remove(),e("body").removeClass("has-header_layout_1 has-header_layout_2 has-header_layout_3 has-header_layout_4 has-header_layout_5 has-header_layout_6 has-header_layout_7").addClass("has-"+t)})}),wp.customize("header_container",function(t){t.bind(function(t){"container-fluid"===t?(e(".main-header > .container").removeClass("container").addClass("container-fluid"),e(".bottom-header-row > .container").removeClass("container").addClass("container-fluid")):(e(".main-header > .container-fluid").removeClass("container-fluid").addClass("container"),e(".bottom-header-row > .container-fluid").removeClass("container-fluid").addClass("container"))})}),wp.customize("main_header_menu_position",function(t){t.bind(function(t){e(".header-col.menu-col").removeClass("menu-left menu-center menu-right").addClass("menu-"+t)})}),wp.customize("enable_sticky_header",function(t){var o=wp.customize.instance("sticky_header_type").get();t.bind(function(t){!0===t?e(".main-header").addClass("sticky-header sticky-"+o):e(".main-header").removeClass("sticky-header sticky-always sticky-scrolltop")})}),wp.customize("enable_sticky_header_mobile",function(t){var o=wp.customize.instance("sticky_header_type").get();t.bind(function(t){!0===t?e(".mobile-header").addClass("sticky-header sticky-"+o):e(".mobile-header").removeClass("sticky-header sticky-always sticky-scrolltop")})});var h=["header_components_l1","header_components_l3left","header_components_l3right","header_components_l4top","header_components_l4bottom","header_components_l5topleft","header_components_l5topright","header_components_l5bottom","social_profiles_header_layouts_6_7"];e.each(h,function(t,o){wp.customize(o,function(t){t.bind(function(t){e(".bottom-header-row").remove()})})}),wp.customize("header_button_text",function(t){t.bind(function(t){e(".button.roll-button.header-item").text(t)})}),wp.customize("header_button_link",function(t){t.bind(function(t){e(".button.roll-button.header-item").attr("href",t)})}),wp.customize("header_contact_mail",function(t){t.bind(function(t){e(".header-contact-email span").text(t),e(".header-contact-email").attr("href","mailto:"+t)})}),wp.customize("header_contact_phone",function(t){t.bind(function(t){e(".header-contact-phone span").text(t),e(".header-contact-phone").attr("href","tel:"+t)})}),wp.customize("header_html_content",function(t){t.bind(function(t){e(".main-header .header-item.html-item").html(t)})}),wp.customize("header_logout_text",function(t){t.bind(function(t){e(".main-header .header-item .logout-link span").text(t)})}),wp.customize("topbar_logout_text",function(t){t.bind(function(t){e(".top-bar .header-item .logout-link span").text(t)})}),wp.customize("mobile_menu_breakpoint",function(t){t.bind(function(t){e("head").find("#sydney-customizer-styles-mobile_menu_breakpoint").remove();var o="@media only screen and (max-width: "+t+"px) {.bottom-header-row, .main-header,.mobile-logo-link ~ .desktop-logo-link { display: none; } .sydney-offcanvas-menu, .mobile-header, .mobile-logo-link { display: block; }}",n="@media only screen and (min-width: "+t+"1px) {#mainnav > div > ul,.bottom-header-row #mainnav > div > ul {align-items: initial;} #mainnav > div > ul { -ms-flex-wrap: wrap; flex-wrap: wrap; }}";e("head").append('<style id="sydney-customizer-styles-mobile_menu_breakpoint">'+o+n+"</style>")})}),wp.customize("header_offcanvas_mode",function(t){t.bind(function(t){"layout2"===t?e(".sydney-offcanvas-menu").css("max-width","100%"):e(".sydney-offcanvas-menu").css("max-width","300px")})}),wp.customize("mobile_menu_icon",function(t){t.bind(function(t){"mobile-icon1"===t?e(".menu-toggle i").html('<svg width="16" height="7" viewBox="0 0 16 7" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="16" height="1"/><rect y="6" width="16" height="1"/></svg>'):"mobile-icon2"===t?e(".menu-toggle i").html('<svg width="16" height="11" viewBox="0 0 16 11" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="16" height="1"/><rect y="5" width="16" height="1"/><rect y="10" width="16" height="1"/></svg>'):"mobile-icon3"===t?e(".menu-toggle i").html('<svg width="16" height="11" viewBox="0 0 16 11" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="16" height="1"/><rect y="5" width="10" height="1"/><rect y="10" width="16" height="1"/></svg>'):"mobile-icon4"===t&&e(".menu-toggle i").html('<svg width="14" height="15" viewBox="0 0 14 15" fill="none" xmlns="http://www.w3.org/2000/svg"><rect y="7" width="14" height="1"/><rect x="7.5" y="0.5" width="14" height="1" transform="rotate(90 7.5 0.5)"/></svg>')})}),wp.customize("sidebar_archives_position",function(t){t.bind(function(t){e(".content-area.archive-wrapper").removeClass("sidebar-left sidebar-right").addClass(t)})}),wp.customize("archive_title_container",function(t){t.bind(function(t){e(".page-banner > .container").removeClass("container").addClass(t),e(".page-banner > .container-fluid").removeClass("container-fluid").addClass(t),"container-fluid"===t?e(".page-wrap").css("padding-top","0"):e(".page-wrap").css("padding-top","")})}),wp.customize("feat_image_hover",function(t){t.bind(function(t){e(".posts-layout .entry-thumb").removeClass("hover-effect-opacity hover-effect-zoom hover-effect-rotate hover-effect-none").addClass("hover-effect-"+t)})}),wp.customize("archive_text_align",function(t){t.bind(function(t){e(".posts-layout article").removeClass("post-align-left post-align-center post-align-right").addClass("post-align-"+t)})}),wp.customize("archive_meta_elements",function(e){e.bind(function(e){var t={updated_date:["archive_before_updated_date_text"],custom_field:["post_archive_custom_field_before_div","post_archive_custom_field_title","post_archive_before_custom_field","post_archive_custom_field","post_archive_after_custom_field"],reading_time:["reading_time_title","reading_time_speed","reading_time_before","reading_time_after"],post_author:["show_avatar"]};for(var o in t)e.includes(o)?showControls(t[o]):hideControls(t[o])})}),wp.customize("read_more_link",function(e){e.bind(function(e){var t=["read_more_text","read_more_display"];!0===e?showControls(t):hideControls(t)})}),wp.customize("show_excerpt",function(e){e.bind(function(e){var t=["archive_content_type","exc_lenght","read_more_link","read_more_text","read_more_display"];!0===e?showControls(t):hideControls(t)})}),wp.customize("pagination_display",function(t){t.bind(function(t){if(e("#sydney-customizer-styles-pagination_display").remove(),"circle"===t)var o=".woocommerce nav.woocommerce-pagination ul li .page-numbers, .nav-links .page-numbers { border-radius: 50%;}";else o=".woocommerce nav.woocommerce-pagination ul li .page-numbers, .nav-links .page-numbers { border-radius: 0;}";e("head").append('<style id="sydney-customizer-styles-pagination_display">'+o+"</style>")})}),wp.customize("pagination_align",function(t){t.bind(function(t){e(".navigation.pagination").css("text-align",t)})}),wp.customize("post_header_container",function(t){t.bind(function(t){e(".single-post .page-banner > .container").removeClass("container").addClass(t),e(".single-post .page-banner > .container-fluid").removeClass("container-fluid").addClass(t),"container-fluid"===t?e(".single-post .page-wrap").css("padding-top","0"):e(".single-post .page-wrap").css("padding-top","")})}),wp.customize("single_post_show_related_posts",function(e){e.bind(function(e){var t=["related_posts_title","related_posts_number","related_posts_columns"];!0===e?showControls(t):hideControls(t)})}),wp.customize("enable_post_sharing",function(e){e.bind(function(e){var t=["single_post_share_title","single_post_sharing_networks"];!0===e?showControls(t):hideControls(t)})}),wp.customize("footer_background_image",function(t){t.bind(function(t){var o=wp.customize.instance("footer_background_overlay").get();t?(e(".footer-wrapper").css("background-image","url("+t+")"),e(".site-footer, .footer-widgets, .footer-separator div").css("background",o)):(e(".footer-wrapper").css("background-image",""),e(".site-footer, .footer-widgets, .footer-separator div").css("background",""))})}),wp.customize("footer_container",function(t){t.bind(function(t){"container"===t?e("#sidebar-footer > div").removeClass("container-fluid").addClass("container"):e("#sidebar-footer > div").removeClass("container").addClass("container-fluid")})}),wp.customize("footer_widgets_alignment",function(t){t.bind(function(t){e(".footer-widgets-grid").removeClass("align-top align-middle align-bottom").addClass("align-"+t)})}),wp.customize("footer_credits_container",function(t){t.bind(function(t){"container"===t?e(".site-footer > div").removeClass("container-fluid").addClass("container"):e(".site-footer > div").removeClass("container").addClass("container-fluid")})}),e.each([1,2,3,4,5,6,7,8,9],function(t){wp.customize("global_color_"+t,function(o){o.bind(function(o){e("html").css("--sydney-global-color-"+t,o),e("html").css("--e-global-color-global_color_"+t,o)})})}),wp.customize("offcanvas_menu_font_size",function(t){t.bind(function(t){e(".sydney-offcanvas-menu #mainnav > div > ul > li > a").css("font-size",t+"px")})}),wp.customize("offcanvas_submenu_font_size",function(t){t.bind(function(t){e(".sydney-offcanvas-menu #mainnav ul ul li a").css("font-size",t+"px")})}),wp.customize("enable_block_templates",function(e){e.bind(function(e){$controls=["block_templates_notice","enable_header_block_template","enable_footer_block_template","enable_single_block_template","enable_page_block_template","enable_archive_block_template","enable_search_block_template","enable_404_block_template"],!0===e?showControls($controls):hideControls($controls)})})})(jQuery);