whoami7 - Manager
:
/
home
/
dataiclx
/
vielorbe.com
/
wp-content
/
themes
/
botiga
/
assets
/
js
/
Upload File:
files >> //home/dataiclx/vielorbe.com/wp-content/themes/botiga/assets/js/customizer.min.js
"use strict";function hideControls(t){for(var o=0;o<t.length;o++)window.parent.window.wp.customize.control(t[o]).toggle(!1),jQuery(window.parent.window.wp.customize.control(t[o]).container[0]).css("display","none")}function showControls(t){for(var o=0;o<t.length;o++)window.parent.window.wp.customize.control(t[o]).toggle(!0)}function hexToRGB(t,o){if(-1!==t.indexOf("rgba"))return t;var i=parseInt(t.slice(1,3),16),e=parseInt(t.slice(3,5),16),t=parseInt(t.slice(5,7),16);return o?"rgba("+i+", "+e+", "+t+", "+o+")":"rgb("+i+", "+e+", "+t+")"}function isJsonString(t){try{JSON.parse(t)}catch(t){return!1}return!0}!function(c){var i='button:not(.wc-block-cart-item__remove-link):not(.wc-block-components-quantity-selector__button), a.button, .wp-block-button__link, .wc-block-components-button, ul.wc-block-grid__products li.wc-block-grid__product .wp-block-button__link, ul.wc-block-grid__products li.wc-block-grid__product .button, ul.products li.product .button, input[type="button"], input[type="reset"], input[type="submit"]',e=".posts-archive .entry-title",n=".single .entry-header .entry-title",a=".product-gallery-summary .entry-title",s="ul.products li.product .botiga-wc-loop-product__title, ul.wc-block-grid__products li.wc-block-grid__product .wc-block-grid__product-title, ul.wc-block-grid__products li.wc-block-grid__product .woocommerce-loop-product__title, ul.wc-block-grid__products li.product .wc-block-grid__product-title, ul.wc-block-grid__products li.product .woocommerce-loop-product__title, ul.products li.wc-block-grid__product .wc-block-grid__product-title, ul.products li.wc-block-grid__product .woocommerce-loop-product__title, ul.products li.product .wc-block-grid__product-title, ul.products li.product .woocommerce-loop-product__title, ul.products li.product .woocommerce-loop-category__title, .woocommerce-loop-product__title .botiga-wc-loop-product__title",r={desktop:"(min-width: 992px)",tablet:"(min-width: 576px) and (max-width: 991px)",mobile:"(max-width: 575px)"};wp.customize("blogname",function(t){t.bind(function(t){c(".site-title a").text(t)})}),wp.customize("blogdescription",function(t){t.bind(function(t){c(".site-description").text(t)})}),wp.customize("header_textcolor",function(t){t.bind(function(t){"blank"===t?c(".site-title, .site-description").css({clip:"rect(1px, 1px, 1px, 1px)",position:"absolute"}):(c(".site-title, .site-description").css({clip:"auto",position:"relative"}),c(".site-title a, .site-description").css({color:t}))})}),wp.customize("center_top_bar_contents",function(t){t.bind(function(t){!1===t?(c(".top-bar-inner > .row").css("display","flex"),c(".top-bar-inner .col").css("justify-content","flex-start"),c(".top-bar-inner .col:last-of-type").css("justify-content","flex-end")):(c(".top-bar-inner > .row").css("display","block"),c(".top-bar-inner .col").css("justify-content","center"),c(".top-bar-inner .col").css("text-align","center"))})}),wp.customize("topbar_padding",function(t){t.bind(function(t){c(".top-bar-inner").css({paddingTop:t+"px",paddingBottom:t+"px"})})}),wp.customize("topbar_divider_size",function(t){t.bind(function(t){c(".top-bar,.top-bar-inner").css("border-width",t)})}),wp.customize("topbar_divider_color",function(t){t.bind(function(t){c(".top-bar,.top-bar-inner").css("border-color",t)})}),wp.customize("main_header_padding",function(t){t.bind(function(t){c(".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){c(".bottom-header-inner").css({paddingTop:t+"px",paddingBottom:t+"px"})})}),wp.customize("main_header_divider_color",function(t){t.bind(function(t){c(".site-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){c(".botiga-offcanvas-menu .botiga-dropdown ul li").css("text-align",t)})}),wp.customize("mobile_menu_link_spacing",function(t){t.bind(function(t){c(".botiga-offcanvas-menu .botiga-dropdown a").css("padding-top",t/2),c(".botiga-offcanvas-menu .botiga-dropdown a").css("padding-bottom",t/2)})}),wp.customize("mobile_menu_elements_spacing",function(t){t.bind(function(t){c(".botiga-offcanvas-menu .header-item + .header-item:not(.separator)").css("margin-top",t+"px")})}),wp.customize("mobile_header_padding",function(t){t.bind(function(t){c(".mobile-header").css({paddingTop:t+"px",paddingBottom:t+"px"})})}),wp.customize("mobile_header_separator_width",function(t){t.bind(function(t){c(".botiga-offcanvas-menu .botiga-dropdown ul li").css("border-bottom-width",t+"px")})}),wp.customize("main_header_areas_spacing_l6",function(t){t.bind(function(t){c(".header_layout_6 .botiga-desktop-offcanvas > .row > div").css({"margin-top":t+"px"})})}),wp.customize("main_header_elements_spacing_l6",function(t){t.bind(function(t){c(".header_layout_6 .header-item").css({"margin-bottom":t+"px"}),c(".header_layout_6 .header-item.header-contact a + a").css({"margin-top":t+"px"})})}),wp.customize("main_header_padding",function(t){t.bind(function(t){c(".header_layout_6 .botiga-desktop-offcanvas").css({padding:t+"px"})})}),wp.customize("desktop_offcanvas_padding",function(t){t.bind(function(t){c(".header_layout_7 .botiga-desktop-offcanvas, .header_layout_8 .botiga-desktop-offcanvas").css({padding:t+"px"})})}),wp.customize("desktop_offcanvas_menu_link_spacing",function(t){t.bind(function(t){c(".header_layout_7 .botiga-desktop-offcanvas .botiga-dropdown .menu > li > a, .header_layout_8 .botiga-desktop-offcanvas .botiga-dropdown .menu > li > a").css({"padding-top":t+"px","padding-bottom":t+"px"})})}),wp.customize("desktop_offcanvas_link_separator_color",function(t){t.bind(function(t){window.parent.window.wp.customize.control("desktop_offcanvas_menu_link_separator").setting.get()&&c(".header_layout_7 .botiga-desktop-offcanvas .botiga-dropdown .menu > li + li, .header_layout_8 .botiga-desktop-offcanvas .botiga-dropdown .menu > li + li").css({"border-top":"1px solid "+hexToRGB(t,.1)})})}),wp.customize("desktop_offcanvas_content_areas_spacing",function(t){t.bind(function(t){c(".header_layout_7 .botiga-desktop-offcanvas > .row > div ,.header_layout_8 .botiga-desktop-offcanvas > .row > div").css({"margin-top":t+"px"})})}),wp.customize("header_components_desktop_offcanvas_elements_spacing",function(t){t.bind(function(t){c(".header_layout_7 .botiga-desktop-offcanvas .header-item, .header_layout_8 .botiga-desktop-offcanvas .header-item").css({"margin-bottom":t+"px"}),c(".header_layout_7 .botiga-desktop-offcanvas .header-item.header-contact a + a, .header_layout_8 .botiga-desktop-offcanvas .header-item.header-contact a + a").css({"margin-top":t+"px"})})}),wp.customize("archive_featured_image_size_desktop",function(t){t.bind(function(t){c(".posts-archive .list-image").css("width",t+"%"),c(".posts-archive .list-content").css("width",100-t+"%")})}),wp.customize("archive_featured_image_size_desktop",function(t){t.bind(function(t){c(".posts-archive .list-image").css("width",t+"%"),c(".posts-archive .list-content").css("width",100-t+"%")})}),wp.customize("archive_meta_spacing",function(t){t.bind(function(t){c(".posts-archive .entry-meta").css("margin",t+"px 0")})}),wp.customize("archive_title_spacing",function(t){t.bind(function(t){c(".posts-archive .entry-header").css("margin-bottom",t+"px")})}),wp.customize("single_post_header_spacing",function(t){t.bind(function(t){c(".single .entry-header").css("margin-bottom",t+"px")})}),wp.customize("single_post_image_spacing",function(t){t.bind(function(t){c(".single .post-thumbnail").css("margin-bottom",t+"px")})}),wp.customize("single_post_meta_spacing",function(t){t.bind(function(t){c(".entry-meta-above").css("margin-bottom",t+"px"),c(".entry-meta-below").css("margin-top",t+"px")})}),wp.customize("footer_widgets_column_spacing_desktop",function(t){t.bind(function(t){c(".footer-widgets-grid").css("gap",t+"px")})}),wp.customize("footer_widgets_divider_size",function(t){t.bind(function(t){c(".footer-widgets,.footer-widgets-grid").css("border-width",t)})}),wp.customize("footer_credits_divider_size",function(t){t.bind(function(t){var o=window.parent.window.wp.customize.control("footer_credits_divider_width").setting.get();c("contained"===o?".site-info":".site-footer").css("border-width",t)})}),wp.customize("footer_credits_padding_desktop",function(t){t.bind(function(t){c(".site-info").css("padding-top",t+"px")})}),wp.customize("footer_credits_padding_bottom_desktop",function(t){t.bind(function(t){c(".site-info").css("padding-bottom",t+"px")})}),wp.customize("color_heading_4",function(t){t.bind(function(t){var o=hexToRGB(t,.1);c("table, table th, table td, table tr, .woocommerce-tabs ul.tabs,.product-gallery-summary .product_meta").css("border-color",o),c(".site-header-cart .product_list_widget li a.remove").css("background-color",t),c(".woocommerce-tabs ul.tabs li.active a").css("border-color",t)})}),wp.customize("footer_copyright_elements_spacing_desktop",function(t){t.bind(function(t){c(".footer-copyright-elements>div+div").css("margin-top",t+"px")})}),wp.customize("scrolltop_radius",function(t){t.bind(function(t){c(".back-to-top.display").css("border-radius",t+"px")})}),c.each(r,function(i,e){wp.customize("scrolltop_side_offset_"+i,function(t){t.bind(function(t){c("head").find("#botiga-customizer-styles-scrolltop_side_offset_"+i).remove();var o="@media "+e+" { .back-to-top.position-right { right:"+t+"px; } }";o+="@media "+e+" { .back-to-top.position-left { left:"+t+"px; } }",c("head").append('<style id="botiga-customizer-styles-scrolltop_side_offset_'+i+'">'+o+"</style>")})}),wp.customize("scrolltop_bottom_offset_"+i,function(t){t.bind(function(t){c("head").find("#botiga-customizer-styles-scrolltop_bottom_offset_"+i).remove();t="@media "+e+" { .back-to-top.display { bottom:"+t+"px; } }";c("head").append('<style id="botiga-customizer-styles-scrolltop_bottom_offset_'+i+'">'+t+"</style>")})})}),wp.customize("scrolltop_icon_size",function(t){t.bind(function(t){c(".back-to-top .ws-svg-icon").css("width",t+"px"),c(".back-to-top .ws-svg-icon").css("height",t+"px")})}),wp.customize("scrolltop_padding",function(t){t.bind(function(t){c(".back-to-top").css("padding",t+"px")})}),wp.customize("shop_product_element_spacing",function(t){t.bind(function(t){c("ul.wc-block-grid__products li.wc-block-grid__product .col-md-7>*, ul.wc-block-grid__products li.wc-block-grid__product .col-md-8>*, ul.wc-block-grid__products li.wc-block-grid__product>*, ul.wc-block-grid__products li.product .col-md-7>*, ul.wc-block-grid__products li.product .col-md-8>*, ul.wc-block-grid__products li.product>*, ul.products li.wc-block-grid__product .col-md-7>*, ul.products li.wc-block-grid__product .col-md-8>*, ul.products li.wc-block-grid__product>*, ul.products li.product .col-md-7>*, ul.products li.product .col-md-8>*, ul.products li.product>*").css("margin-bottom",t+"px"),c("ul.products li.product .product-description-column:not(:empty), ul.products li.wc-block-grid__product .product-description-column:not(:empty), ul.wc-block-grid__products li.wc-block-grid__product .product-description-column:not(:empty)").css("margin-top",t+"px")})}),wp.customize("shop_sale_tag_radius",function(t){t.bind(function(t){c(".wc-block-grid__product-onsale, span.onsale").css("border-radius",t+"px")})}),wp.customize("shop_product_card_radius",function(t){t.bind(function(t){c("ul.wc-block-grid__products li.wc-block-grid__product, ul.wc-block-grid__products li.product, ul.products li.wc-block-grid__product, ul.products li.product").css("border-radius",t+"px")})}),wp.customize("shop_product_card_thumb_radius",function(t){t.bind(function(t){c("ul.wc-block-grid__products li.wc-block-grid__product .loop-image-wrap img, ul.wc-block-grid__products li.product .loop-image-wrap img, ul.products li.wc-block-grid__product .loop-image-wrap img, ul.products li.product .loop-image-wrap img").css("border-radius",t+"px")})}),wp.customize("shop_product_card_border_size",function(t){t.bind(function(t){c("ul.wc-block-grid__products li.wc-block-grid__product, ul.wc-block-grid__products li.product, ul.products li.wc-block-grid__product, ul.products li.product").css("border-width",t+"px")})}),wp.customize("shop_categories_radius",function(t){t.bind(function(t){var o=window.parent.window.wp.customize.control("shop_categories_layout").setting.get();c("ul.products li.product-category > a, ul.products li.product-category > a > img").css("border-radius",t+"px"),"layout4"===o&&c(".product-category-item-layout4 ul.products li.product-category > a h2").css("border-radius","0 0 "+t+"px "+t+"px")})}),c(window.parent.document).on("click",".control-section",function(t){var o=c(window.parent.document).find(".control-section.open");o.find("#customize-control-single_product_elements_order").length&&wp.customize("shop_product_wishlist_layout",function(t){"layout1"===t.get()?o.find('#customize-control-single_product_elements_order .kirki-sortable-item[data-value="botiga_single_wishlist_button"]').css("display","none"):o.find('#customize-control-single_product_elements_order .kirki-sortable-item[data-value="botiga_single_wishlist_button"]').css("display","block")})}),wp.customize("single_product_gallery_styles_background_color",function(t){t.bind(function(t){c("head").find("#botiga-customizer-styles-single_product_gallery_styles_background_color").remove();var o="";(o+=".product-gallery-summary.gallery-showcase:before, .product-gallery-summary.gallery-full-width:before { background-color: "+t+"; }")&&c("head").append('<style id="botiga-customizer-styles-single_product_gallery_styles_background_color">'+o+"</style>")})}),wp.customize("single_product_gallery_styles_padding_top_bottom",function(t){t.bind(function(t){c(".product-gallery-summary.gallery-showcase, .product-gallery-summary.gallery-full-width").css({paddingTop:t+"px",paddingBottom:t+"px"})})}),wp.customize("single_product_tabs_border_color_active",function(t){t.bind(function(t){var o=window.parent.window.wp.customize.control("single_product_tabs_layout").setting.get();c("head").find("#botiga-customizer-styles-single_product_tabs_border_color_active").remove();var i="";switch(o){case"style1":case"style4":i+=".botiga-tabs-style1 .woocommerce-tabs ul.tabs li.active a, .botiga-tabs-style1 .woocommerce-tabs ul.tabs li:hover a, .botiga-tabs-style4 .woocommerce-tabs ul.tabs li.active a, .botiga-tabs-style4 .woocommerce-tabs ul.tabs li:hover a { border-color: "+t+" !important; }";break;case"style2":i+=".botiga-tabs-style2 .woocommerce-tabs ul.tabs li.active a, .botiga-tabs-style2 .woocommerce-tabs ul.tabs li:hover a { border-top-color: "+t+" !important; }";break;default:i=""}i&&c("head").append('<style id="botiga-customizer-styles-single_product_tabs_border_color_active">'+i+"</style>")})}),wp.customize("single_product_tabs_background_color",function(t){t.bind(function(t){var o=window.parent.window.wp.customize.control("single_product_tabs_layout").setting.get();c("head").find("#botiga-customizer-styles-single_product_tabs_background_color").remove();var i="";switch(o){case"style3":i+=".botiga-tabs-style3 .woocommerce-tabs ul.tabs li:not(.active) a, .botiga-tabs-style3 .woocommerce-tabs ul.tabs li:not(.active):hover a { background-color: "+hexToRGB(t,.5)+" !important; }";break;case"style4":i+=".botiga-tabs-style4 .woocommerce-tabs ul.tabs li:not(.active) a { background-color: "+t+" !important; }";break;case"style5":i+=".botiga-tabs-style5 .woocommerce-tabs ul.tabs li:not(.active) a { background-color: "+hexToRGB(t,.4)+" !important; }";break;default:i=""}i&&c("head").append('<style id="botiga-customizer-styles-single_product_tabs_background_color">'+i+"</style>")})}),wp.customize("single_product_tabs_background_color_active",function(t){t.bind(function(t){var o=window.parent.window.wp.customize.control("single_product_tabs_layout").setting.get();c("head").find("#botiga-customizer-styles-single_product_tabs_background_color_active").remove();var i="";switch(o){case"style3":i+=".botiga-tabs-style3 .woocommerce-tabs ul.tabs li.active a, .botiga-tabs-style3 .woocommerce-tabs ul.tabs li:hover a { background-color: "+t+" !important; }";break;case"style4":i+=".botiga-tabs-style4 .woocommerce-tabs ul.tabs li.active a { background-color: "+t+" !important; }";break;case"style5":i+=".botiga-tabs-style5 .woocommerce-tabs ul.tabs li.active a, .botiga-tabs-style5 .woocommerce-tabs .panel { background-color: "+hexToRGB(t,1)+" !important; }";break;default:i=""}i&&c("head").append('<style id="botiga-customizer-styles-single_product_tabs_background_color_active">'+i+"</style>")})}),wp.customize("single_product_tabs_text_color",function(t){t.bind(function(t){c("head").find("#botiga-customizer-styles-single_product_tabs_text_color").remove();t=".woocommerce-tabs ul.tabs li:not(.active) a ,.woocommerce-tabs ul.tabs li:not(.active) a:hover { color: "+t+" !important; }";t&&c("head").append('<style id="botiga-customizer-styles-single_product_tabs_text_color">'+t+"</style>")})}),wp.customize("single_product_tabs_text_color_active",function(t){t.bind(function(t){c("head").find("#botiga-customizer-styles-single_product_tabs_text_color_active").remove();t=".woocommerce-tabs ul.tabs li.active a,.woocommerce-tabs ul.tabs li.active a:hover { color: "+t+" !important; }";t&&c("head").append('<style id="botiga-customizer-styles-single_product_tabs_text_color_active">'+t+"</style>")})}),wp.customize("single_product_tabs_remaining_borders",function(t){t.bind(function(t){var o=window.parent.window.wp.customize.control("single_product_tabs_layout").setting.get();c("head").find("#botiga-customizer-styles-single_product_tabs_remaining_borders").remove();var i="";switch(o){case"style2":i+=".botiga-tabs-style2 .woocommerce-tabs ul.tabs li a, .botiga-tabs-style2 .woocommerce-tabs ul.tabs, .botiga-tabs-style2 .woocommerce-tabs ul.tabs li:not(.active):not(:hover) a { border-color: "+hexToRGB(t,.3)+" !important; }";break;case"style1":case"style3":i+=".botiga-tabs-style1 .woocommerce-tabs ul.tabs, .botiga-tabs-style3 .woocommerce-tabs ul.tabs { border-bottom-color: "+hexToRGB(t,.3)+" !important; }";break;case"style4":i+=".botiga-tabs-style4 .woocommerce-tabs ul.tabs:before { border-color: "+hexToRGB(t,.3)+" !important; } .botiga-tabs-style4 .woocommerce-tabs ul.tabs li:not(.active) a { border-color: "+hexToRGB(t,.3)+" !important; }";break;case"style5":i+=".botiga-tabs-style5 .woocommerce-tabs ul.tabs li a, .botiga-tabs-style5 .woocommerce-tabs .panel { border-color: "+hexToRGB(t,.3)+" !important; } .botiga-tabs-style5 .woocommerce-tabs ul.tabs li:not(.active) a { border-right: 1px solid "+t+" }";break;default:i=""}i&&c("head").append('<style id="botiga-customizer-styles-single_product_tabs_remaining_borders">'+i+"</style>")})}),wp.customize("single_product_tabs_layout",function(t){t.bind(function(t){switch(c(".site-main").removeClass("botiga-tabs-style1 botiga-tabs-style2 botiga-tabs-style3 botiga-tabs-style4 botiga-tabs-style5"),c(".site-main").addClass("botiga-tabs-"+t),c(window.parent.document).find(".control-section.open .alpha-color-control").each(function(){var t=c(this).closest("li").attr("id"),o=c(this).data("customize-setting-link"),i=c(this).val();void 0!==window.parent.window.wp.customize(o)&&(window.parent.window.wp.customize(o).set(""),window.parent.window.wp.customize(o).set(i),c("#"+t).find(".wp-color-result").css("background-color",i))}),t){case"style1":case"style2":hideControls(["single_product_tabs_background_color","single_product_tabs_background_color_active"]),showControls(["single_product_tabs_border_color_active"]);break;case"style3":hideControls(["single_product_tabs_border_color_active"]),showControls(["single_product_tabs_background_color","single_product_tabs_background_color_active"]);break;case"style4":showControls(["single_product_tabs_border_color_active","single_product_tabs_background_color","single_product_tabs_background_color_active"]);break;case"style5":hideControls(["single_product_tabs_border_color_active"]),showControls(["single_product_tabs_background_color","single_product_tabs_background_color_active"])}})}),wp.customize("single_product_tabs_alignment",function(t){t.bind(function(t){c(".site-main").removeClass("botiga-tabs-align-left botiga-tabs-align-center botiga-tabs-align-right"),c(".site-main").addClass("botiga-tabs-align-"+t),c(".woocommerce-tabs ul.tabs").css("text-align",t)})}),wp.customize("single_sticky_add_to_cart_elements_spacing",function(t){t.bind(function(t){var o="right";c('html[dir="rtl"]').length&&(o="left"),c(".botiga-single-sticky-add-to-cart-wrapper .botiga-single-sticky-add-to-cart-wrapper-content .botiga-single-sticky-add-to-cart-item").css("margin-".concat(o),t+"px")})}),wp.customize("shop_cart_show_coupon_form",function(t){t.bind(function(t){t?c(".woocommerce-cart .coupon").css("display","block"):c(".woocommerce-cart .coupon").css("display","none")})}),wp.customize("side_mini_cart_floating_icon_position",function(t){t.bind(function(t){var o=wp.customize("side_mini_cart_floating_icon_corner_offset").get();"left"===t?(c(".botiga-floating-mini-cart-icon").css("bottom",o+"px"),c(".botiga-floating-mini-cart-icon").css("left",o+"px"),c(".botiga-floating-mini-cart-icon").css("right","auto")):(c(".botiga-floating-mini-cart-icon").css("bottom",o+"px"),c(".botiga-floating-mini-cart-icon").css("right",o+"px"),c(".botiga-floating-mini-cart-icon").css("left","auto"))})}),c.each(r,function(i,e){wp.customize("side_mini_cart_floating_icon_corner_offset_"+i,function(t){t.bind(function(t){c("head").find("#botiga-customizer-styles-side_mini_cart_floating_icon_corner_offset_"+i).remove();var o="@media "+e+" { .botiga-floating-mini-cart-icon { bottom:"+t+"px; } }";void 0!==wp.customize("side_mini_cart_floating_icon_position")&&("left"===wp.customize("side_mini_cart_floating_icon_position").get()?(c(".botiga-floating-mini-cart-icon").css("left",t+"px"),o+="@media "+e+" { .botiga-floating-mini-cart-icon { left:"+t+"px; } }"):o+="@media "+e+" { .botiga-floating-mini-cart-icon { right:"+t+"px; } }"),c("head").append('<style id="botiga-customizer-styles-side_mini_cart_floating_icon_corner_offset_'+i+'">'+o+"</style>")})})}),wp.customize("side_mini_cart_floating_icon_border_radius",function(t){t.bind(function(t){c(".botiga-floating-mini-cart-icon .botiga-floating-mini-cart-icon-icon").css("border-radius",t+"px")})}),wp.customize("side_mini_cart_floating_icon_shadow",function(t){t.bind(function(t){t?c(".botiga-floating-mini-cart-icon .botiga-floating-mini-cart-icon-icon").css("box-shadow","inset 0 0 2px rgb(0 0 0 / 3%), 0 4px 10px rgb(0 0 0 / 17%)"):c(".botiga-floating-mini-cart-icon .botiga-floating-mini-cart-icon-icon").css("box-shadow","none")})});c.each({breadcrumbs_padding:".botiga-breadcrumb-trail",footer_widgets_padding:".footer-widgets-grid"},function(e,n){c.each(r,function(o,i){wp.customize(e+"_"+o,function(t){t.bind(function(t){c("head").find("#botiga-customizer-styles-"+e+"_"+o).remove();t="@media "+i+" {"+n+" { padding-top:"+t+"px;padding-bottom:"+t+"px; } }";c("head").append('<style id="botiga-customizer-styles-'+e+"_"+o+'">'+t+"</style>")})})})});c.each({breadcrumbs_margin_bottom:".botiga-breadcrumb-trail"},function(e,n){c.each(r,function(o,i){wp.customize(e+"_"+o,function(t){t.bind(function(t){c("head").find("#botiga-customizer-styles-"+e+"_"+o).remove();t="@media "+i+" {"+n+" { margin-bottom:"+t+"px; } }";c("head").append('<style id="botiga-customizer-styles-'+e+"_"+o+'">'+t+"</style>")})})})});c.each({site_logo_size:".custom-logo-link img",modal_popup_max_width:"#modalPopup .botiga-popup-wrapper"},function(e,n){c.each(r,function(o,i){wp.customize(e+"_"+o,function(t){t.bind(function(t){c("head").find("#botiga-customizer-styles-"+e+"_"+o).remove();t="@media "+i+" {"+n+" { max-width:"+t+"px; } }";c("head").append('<style id="botiga-customizer-styles-'+e+"_"+o+'">'+t+"</style>")})})})});c.each({modal_popup_side_image_max_width:"#modalPopup .botiga-popup-wrapper__content-side-image"},function(e,n){c.each(r,function(o,i){wp.customize(e+"_"+o,function(t){t.bind(function(t){c("head").find("#botiga-customizer-styles-"+e+"_"+o).remove();t="@media "+i+" {"+n+" { max-width:"+t+"%; } }";c("head").append('<style id="botiga-customizer-styles-'+e+"_"+o+'">'+t+"</style>")})})})});c.each({shop_archive_columns_gap:"ul.wc-block-grid__products, ul.products"},function(e,n){c.each(r,function(o,i){wp.customize(e+"_"+o,function(t){t.bind(function(t){c("head").find("#botiga-customizer-styles-"+e+"_"+o).remove();t="@media "+i+" {"+n+" { gap:"+t+"px; } }";c("head").append('<style id="botiga-customizer-styles-'+e+"_"+o+'">'+t+"</style>")})})})}),wp.customize("color_forms_placeholder",function(t){t.bind(function(t){c("head").find("#botiga-customizer-styles-color_forms_placeholder").remove();t="::placeholder {color:"+t+";opacity:1;} :-ms-input-placeholder {color:"+t+";} ::-ms-input-placeholder {color:"+t+";}";c("head").append('<style id="botiga-customizer-styles-color_forms_placeholder">'+t+"</style>")})}),wp.customize("botiga_body_font",function(t){t.bind(function(t){c("head").find("#botiga-preview-google-fonts-body-css").remove(),c("head").append('<link id="botiga-preview-google-fonts-body-css" href="" rel="stylesheet">'),c("#botiga-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"),c("body").css("font-family",jQuery.parseJSON(t).font),c("body").css("font-weight",jQuery.parseJSON(t).regularweight),"body"===window.parent.window.wp.customize.control("button_font_style").setting.get()&&(c(i).css("font-family",jQuery.parseJSON(t).font),c(i).css("font-weight",jQuery.parseJSON(t).regularweight)),"body"===window.parent.window.wp.customize.control("loop_post_title_font_style").setting.get()&&(c(e).css("font-family",jQuery.parseJSON(t).font),c(e).css("font-weight",jQuery.parseJSON(t).regularweight)),"body"===window.parent.window.wp.customize.control("single_post_title_font_style").setting.get()&&(c(n).css("font-family",jQuery.parseJSON(t).font),c(n).css("font-weight",jQuery.parseJSON(t).regularweight)),"body"===window.parent.window.wp.customize.control("single_product_title_font_style").setting.get()&&(c(a).css("font-family",jQuery.parseJSON(t).font),c(a).css("font-weight",jQuery.parseJSON(t).regularweight)),"body"===window.parent.window.wp.customize.control("shop_product_title_font_style").setting.get()&&(c(s).css("font-family",jQuery.parseJSON(t).font),c(s).css("font-weight",jQuery.parseJSON(t).regularweight))})}),wp.customize("botiga_headings_font",function(t){t.bind(function(t){c("head").find("#botiga-preview-google-fonts-headings-css").remove(),c("head").append('<link id="botiga-preview-google-fonts-headings-css" href="" rel="stylesheet">'),c("#botiga-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"),c("h1,h2,h3,h4,h5,h6,.site-title").css("font-family",jQuery.parseJSON(t).font),c("h1,h2,h3,h4,h5,h6,.site-title").css("font-weight",jQuery.parseJSON(t).regularweight),"heading"===window.parent.window.wp.customize.control("button_font_style").setting.get()&&(c(i).css("font-family",jQuery.parseJSON(t).font),c(i).css("font-weight",jQuery.parseJSON(t).regularweight)),"heading"===window.parent.window.wp.customize.control("loop_post_title_font_style").setting.get()&&(c(e).css("font-family",jQuery.parseJSON(t).font),c(e).css("font-weight",jQuery.parseJSON(t).regularweight)),"heading"===window.parent.window.wp.customize.control("single_post_title_font_style").setting.get()&&(c(n).css("font-family",jQuery.parseJSON(t).font),c(n).css("font-weight",jQuery.parseJSON(t).regularweight)),"heading"===window.parent.window.wp.customize.control("single_product_title_font_style").setting.get()&&(c(a).css("font-family",jQuery.parseJSON(t).font),c(a).css("font-weight",jQuery.parseJSON(t).regularweight)),"heading"===window.parent.window.wp.customize.control("shop_product_title_font_style").setting.get()&&(c(s).css("font-family",jQuery.parseJSON(t).font),c(s).css("font-weight",jQuery.parseJSON(t).regularweight))})}),wp.customize("botiga_header_menu_font",function(t){t.bind(function(t){c("head").find("#botiga-preview-google-fonts-header-menu-css").remove(),c("head").append('<link id="botiga-preview-google-fonts-header-menu-css" href="" rel="stylesheet">'),c("#botiga-preview-google-fonts-header-menu-css").attr("href","https://fonts.googleapis.com/css?family="+jQuery.parseJSON(t).font.replace(/ /g,"+")+":"+jQuery.parseJSON(t).regularweight+"&display=swap"),c(".top-bar .secondary-navigation, #masthead .main-navigation, .botiga-offcanvas-menu .main-navigation, .bottom-header-row .main-navigation, .bhfb-header .main-navigation, .bhfb-header .secondary-navigation").css("font-family",jQuery.parseJSON(t).font),c(".top-bar .secondary-navigation, #masthead .main-navigation, .botiga-offcanvas-menu .main-navigation, .bottom-header-row .main-navigation, .bhfb-header .main-navigation, .bhfb-header .secondary-navigation").css("font-weight",jQuery.parseJSON(t).regularweight)})}),wp.customize("button_font",function(t){t.bind(function(t){c("head").find("#botiga-preview-google-fonts-button-css").remove(),c("head").append('<link id="botiga-preview-google-fonts-button-css" href="" rel="stylesheet">'),c("#botiga-preview-google-fonts-button-css").attr("href","https://fonts.googleapis.com/css?family="+jQuery.parseJSON(t).font.replace(/ /g,"+")+":"+jQuery.parseJSON(t).regularweight+"&display=swap"),c(i).css("font-family",jQuery.parseJSON(t).font),c(i).css("font-weight",jQuery.parseJSON(t).regularweight)})}),wp.customize("loop_post_title_font",function(t){t.bind(function(t){c("head").find("#botiga-preview-google-fonts-loop-post-title-css").remove(),c("head").append('<link id="botiga-preview-google-fonts-loop-post-title-css" href="" rel="stylesheet">'),c("#botiga-preview-google-fonts-loop-post-title-css").attr("href","https://fonts.googleapis.com/css?family="+jQuery.parseJSON(t).font.replace(/ /g,"+")+":"+jQuery.parseJSON(t).regularweight+"&display=swap"),c(e).css("font-family",jQuery.parseJSON(t).font),c(e).css("font-weight",jQuery.parseJSON(t).regularweight)})}),wp.customize("loop_post_title_text_transform",function(t){t.bind(function(t){c(e).css("text-transform",t)})}),wp.customize("loop_post_title_text_decoration",function(t){t.bind(function(t){c(e).css("text-decoration",t)})}),wp.customize("single_post_title_font",function(t){t.bind(function(t){c("head").find("#botiga-preview-google-fonts-single-post-title-css").remove(),c("head").append('<link id="botiga-preview-google-fonts-single-post-title-css" href="" rel="stylesheet">'),c("#botiga-preview-google-fonts-single-post-title-css").attr("href","https://fonts.googleapis.com/css?family="+jQuery.parseJSON(t).font.replace(/ /g,"+")+":"+jQuery.parseJSON(t).regularweight+"&display=swap"),c(n).css("font-family",jQuery.parseJSON(t).font),c(n).css("font-weight",jQuery.parseJSON(t).regularweight)})}),wp.customize("single_post_title_text_transform",function(t){t.bind(function(t){c(n).css("text-transform",t)})}),wp.customize("single_post_title_text_decoration",function(t){t.bind(function(t){c(n).css("text-decoration",t)})}),wp.customize("single_product_title_font",function(t){t.bind(function(t){c("head").find("#botiga-preview-google-fonts-single-product-title-css").remove(),c("head").append('<link id="botiga-preview-google-fonts-single-product-title-css" href="" rel="stylesheet">'),c("#botiga-preview-google-fonts-single-product-title-css").attr("href","https://fonts.googleapis.com/css?family="+jQuery.parseJSON(t).font.replace(/ /g,"+")+":"+jQuery.parseJSON(t).regularweight+"&display=swap"),c(a).css("font-family",jQuery.parseJSON(t).font),c(a).css("font-weight",jQuery.parseJSON(t).regularweight)})}),wp.customize("single_product_title_text_transform",function(t){t.bind(function(t){c(a).css("text-transform",t)})}),wp.customize("single_product_title_text_decoration",function(t){t.bind(function(t){c(a).css("text-decoration",t)})}),wp.customize("shop_product_title_font",function(t){t.bind(function(t){c("head").find("#botiga-preview-google-fonts-shop-product-title-css").remove(),c("head").append('<link id="botiga-preview-google-fonts-shop-product-title-css" href="" rel="stylesheet">'),c("#botiga-preview-google-fonts-shop-product-title-css").attr("href","https://fonts.googleapis.com/css?family="+jQuery.parseJSON(t).font.replace(/ /g,"+")+":"+jQuery.parseJSON(t).regularweight+"&display=swap"),c(s).css("font-family",jQuery.parseJSON(t).font),c(s).css("font-weight",jQuery.parseJSON(t).regularweight)})}),wp.customize("shop_product_title_text_transform",function(t){t.bind(function(t){c(s).css("text-transform",t)})}),wp.customize("shop_product_title_text_decoration",function(t){t.bind(function(t){c(s).css("text-decoration",t)})});function o(t){t=JSON.parse(t)||[],c.each(t,function(t,o){var i,e,n;o.name&&(o.woff2||o.woff||o.ttf||o.eot||o.otf||o.svg)&&(i=o.name.replace(/ /g,"-").toLowerCase(),c("#"+i).length&&c("#"+i).remove(),e=[],o.woff2&&e.push('url("'+o.woff2+'") format("woff2");'),o.woff&&e.push('url("'+o.woff+'") format("woff");'),o.svg&&e.push('url("'+o.svg+'") format("svg");'),o.ttf&&e.push('url("'+o.ttf+'") format("truetype");'),o.otf&&e.push('url("'+o.otf+'") format("opentype");'),o.eot&&e.push('url("'+o.eot+'?#iefix") format("embedded-opentype");'),e.length&&(n="",n+='@font-face{ font-family: "'+o.name+'";',o.eot&&(n+="src: url("+o.eot+");"),n+="src: "+e.join(",")+";",n+="}",c("head").append('<style id="'+i+'" type="text/css">'+n+"</style>")))})}var t=window.parent.window.wp.customize.control("custom_fonts");t&&o(t.setting.get()),wp.customize("custom_fonts",function(t){t.bind(function(t){o(t)})});function d(e,t,n){var o=window.parent.window.wp.customize.control(t+"_typography"),t=window.parent.window._wpCustomizeSettings.controls[t+"_typography"],a=o.settings["font-family"].get(),s=o.settings["font-weight"].get();e.css("font-weight","normal"),t&&t.google_fonts&&c.map(t.google_fonts,function(t,o){var i;t.family===a&&("family"===n&&(s=t.variants[0]),i=a.replace(/ /g,"-").toLowerCase()+"-"+s,t="https://fonts.googleapis.com/css?family="+a.replace(/ /g,"+")+":"+s+"&display=swap",0===c("#"+i).length&&c("head").append('<link id="'+i+'" href="'+t+'" rel="stylesheet">'),e.css("font-weight",s))}),e.css("font-family",a)}wp.customize("botiga_headings_custom_font",function(t){t.bind(function(t){var o=c("h1,h2,h3,h4,h5,h6,.site-title");d(o,"botiga_headings_custom_font","family")})}),wp.customize("botiga_headings_custom_font_weight",function(t){t.bind(function(t){var o=c("h1,h2,h3,h4,h5,h6,.site-title");d(o,"botiga_headings_custom_font","weight")})}),wp.customize("botiga_body_custom_font",function(t){t.bind(function(t){var o=c("body");d(o,"botiga_body_custom_font","family")})}),wp.customize("botiga_body_custom_font_weight",function(t){t.bind(function(t){var o=c("body");d(o,"botiga_body_custom_font","weight")})}),wp.customize("botiga_header_menu_custom_font",function(t){t.bind(function(t){var o=c(".top-bar .secondary-navigation, #masthead .main-navigation, .botiga-offcanvas-menu .main-navigation, .bottom-header-row .main-navigation, .bhfb-header .main-navigation, .bhfb-header .secondary-navigation");d(o,"botiga_header_menu_custom_font","family")})}),wp.customize("botiga_header_menu_custom_font_weight",function(t){t.bind(function(t){var o=c(".top-bar .secondary-navigation, #masthead .main-navigation, .botiga-offcanvas-menu .main-navigation, .bottom-header-row .main-navigation, .bhfb-header .main-navigation, .bhfb-header .secondary-navigation");d(o,"botiga_header_menu_custom_font","weight")})}),wp.customize("button_custom_font",function(t){t.bind(function(t){var o=c(i);d(o,"button_custom_font","family")})}),wp.customize("button_custom_font_weight",function(t){t.bind(function(t){var o=c(i);d(o,"button_custom_font","weight")})}),wp.customize("loop_post_title_custom_font",function(t){t.bind(function(t){var o=c(e);d(o,"loop_post_title_custom_font","family")})}),wp.customize("loop_post_title_custom_font_weight",function(t){t.bind(function(t){var o=c(e);d(o,"loop_post_title_custom_font","weight")})}),wp.customize("single_post_title_custom_font",function(t){t.bind(function(t){var o=c(n);d(o,"single_post_title_custom_font","family")})}),wp.customize("single_post_title_custom_font_weight",function(t){t.bind(function(t){var o=c(n);d(o,"single_post_title_custom_font","weight")})}),wp.customize("single_product_title_custom_font",function(t){t.bind(function(t){var o=c(a);d(o,"single_product_title_custom_font","family")})}),wp.customize("single_product_title_custom_font_weight",function(t){t.bind(function(t){var o=c(a);d(o,"single_product_title_custom_font","weight")})}),wp.customize("shop_product_title_custom_font",function(t){t.bind(function(t){var o=c(s);d(o,"shop_product_title_custom_font","family")})}),wp.customize("shop_product_title_custom_font_weight",function(t){t.bind(function(t){var o=c(s);d(o,"shop_product_title_custom_font","weight")})}),wp.customize("botiga_headings_adobe_font",function(t){t.bind(function(t){var o=t.split("|")[0],t=t.split("|")[1];c("h1,h2,h3,h4,h5,h6,.site-title").css("font-family",o),c("h1,h2,h3,h4,h5,h6,.site-title").css("font-weight",t)})}),wp.customize("botiga_body_adobe_font",function(t){t.bind(function(t){var o=t.split("|")[0],t=t.split("|")[1];c("body").css("font-family",o),c("body").css("font-weight",t)})}),wp.customize("botiga_header_menu_adobe_font",function(t){t.bind(function(t){var o=t.split("|")[0],t=t.split("|")[1];c(".top-bar .secondary-navigation, #masthead .main-navigation, .botiga-offcanvas-menu .main-navigation, .bottom-header-row .main-navigation, .bhfb-header .main-navigation, .bhfb-header .secondary-navigation").css("font-family",o),c(".top-bar .secondary-navigation, #masthead .main-navigation, .botiga-offcanvas-menu .main-navigation, .bottom-header-row .main-navigation, .bhfb-header .main-navigation, .bhfb-header .secondary-navigation").css("font-weight",t)})}),wp.customize("button_adobe_font",function(t){t.bind(function(t){var o=t.split("|")[0],t=t.split("|")[1];c(i).css("font-family",o),c(i).css("font-weight",t)})}),wp.customize("loop_post_title_adobe_font",function(t){t.bind(function(t){var o=t.split("|")[0],t=t.split("|")[1];c(e).css("font-family",o),c(e).css("font-weight",t)})}),wp.customize("single_post_title_adobe_font",function(t){t.bind(function(t){var o=t.split("|")[0],t=t.split("|")[1];c(n).css("font-family",o),c(n).css("font-weight",t)})}),wp.customize("single_product_title_adobe_font",function(t){t.bind(function(t){var o=t.split("|")[0],t=t.split("|")[1];c(a).css("font-family",o),c(a).css("font-weight",t)})}),wp.customize("shop_product_title_adobe_font",function(t){t.bind(function(t){var o=t.split("|")[0],t=t.split("|")[1];c(s).css("font-family",o),c(s).css("font-weight",t)})}),wp.customize("headings_font_style",function(t){t.bind(function(t){c("h1,h2,h3,h4,h5,h6,.site-title").css("font-style",t)})}),wp.customize("headings_line_height",function(t){t.bind(function(t){c("h1,h2,h3,h4,h5,h6,.site-title").css("line-height",t)})}),wp.customize("headings_letter_spacing",function(t){t.bind(function(t){c("h1,h2,h3,h4,h5,h6,.site-title").css("letter-spacing",t+"px")})}),wp.customize("headings_text_transform",function(t){t.bind(function(t){c("h1,h2,h3,h4,h5,h6,.site-title").css("text-transform",t)})}),wp.customize("headings_text_decoration",function(t){t.bind(function(t){c("h1,h2,h3,h4,h5,h6,.site-title").css("text-decoration",t)})}),wp.customize("body_font_style",function(t){t.bind(function(t){c("body").css("font-style",t)})}),wp.customize("body_line_height",function(t){t.bind(function(t){c("body").css("line-height",t)})}),wp.customize("body_letter_spacing",function(t){t.bind(function(t){c("body").css("letter-spacing",t+"px")})}),wp.customize("body_text_transform",function(t){t.bind(function(t){c("body").css("text-transform",t)})}),wp.customize("body_text_decoration",function(t){t.bind(function(t){c("body").css("text-decoration",t)})}),wp.customize("header_menu_font_style",function(t){t.bind(function(t){c(".top-bar .secondary-navigation, #masthead .main-navigation, .botiga-offcanvas-menu .main-navigation, .bottom-header-row .main-navigation, .bhfb-header .main-navigation, .bhfb-header .secondary-navigation").css("font-style",t)})}),wp.customize("header_menu_line_height",function(t){t.bind(function(t){c(".top-bar .secondary-navigation, #masthead .main-navigation, .botiga-offcanvas-menu .main-navigation, .bottom-header-row .main-navigation, .bhfb-header .main-navigation, .bhfb-header .secondary-navigation").css("line-height",t)})}),wp.customize("header_menu_letter_spacing",function(t){t.bind(function(t){c(".top-bar .secondary-navigation, #masthead .main-navigation, .botiga-offcanvas-menu .main-navigation, .bottom-header-row .main-navigation, .bhfb-header .main-navigation, .bhfb-header .secondary-navigation").css("letter-spacing",t+"px")})}),wp.customize("header_menu_text_transform",function(t){t.bind(function(t){c(".top-bar .secondary-navigation, #masthead .main-navigation, .botiga-offcanvas-menu .main-navigation, .bottom-header-row .main-navigation, .bhfb-header .main-navigation, .bhfb-header .secondary-navigation").css("text-transform",t)})}),wp.customize("header_menu_text_decoration",function(t){t.bind(function(t){c(".top-bar .secondary-navigation, #masthead .main-navigation, .botiga-offcanvas-menu .main-navigation, .bottom-header-row .main-navigation, .bhfb-header .main-navigation, .bhfb-header .secondary-navigation").css("text-decoration",t)})}),wp.customize("shop_archive_header_padding_top",function(t){t.bind(function(t){c(".woocommerce-page-header").css("padding-top",t+"px")})}),wp.customize("shop_archive_header_padding_bottom",function(t){t.bind(function(t){c(".woocommerce-page-header").css("padding-bottom",t+"px")})}),wp.customize("shop_archive_header_button_border_radius",function(t){t.bind(function(t){c(".woocommerce-page-header .category-button").css("border-radius",t+"px")})}),wp.customize("breadcrumbs_align",function(t){t.bind(function(t){c(".botiga-breadcrumb-trail").css("text-align",t)})}),wp.customize("modal_popup_content_padding",function(t){t.bind(function(t){c(".botiga-popup-wrapper").css("padding",t+"px")})}),wp.customize("color_palettes",function(t){t.bind(function(t){if(""!==t)for(var o=c("#customize-control-color_palettes",window.parent.document).find(".radio-buttons").data("palettes"),i=0;i<8;i++)c(".has-color-"+i+"-color").css("color",o[t][i]),c(".has-color-"+i+"-background-color").css("background-color",o[t][i])})}),c.each([0,1,2,3,4,5,6,7,8],function(o){wp.customize("custom_color"+(o+1),function(t){t.bind(function(t){c(".has-color-"+o+"-color").css("color",t),c(".has-color-"+o+"-background-color").css("background-color",t)})})}),wp.customize("button_letter_spacing",function(t){t.bind(function(t){c(i).css("letter-spacing",t+"px")})}),wp.customize("button_text_transform",function(t){t.bind(function(t){c(i+=", .wc-block-components-button .wc-block-components-button__text").css("text-transform",t)})}),wp.customize("button_text_decoration",function(t){t.bind(function(t){c(i+=", .wc-block-components-button .wc-block-components-button__text").css("text-decoration",t)})}),wp.customize("button_border_radius",function(t){t.bind(function(t){c(i).css("border-radius",t+"px")})});t={button_top_bottom_padding:i};c.each(t,function(e,n){c.each(r,function(o,i){wp.customize(e+"_"+o,function(t){t.bind(function(t){c("head").find("#botiga-customizer-styles-"+e+"_"+o).remove();t="@media "+i+" {"+n+" { padding-top:"+t+"px !important; padding-bottom:"+t+"px !important; } }";c("head").append('<style id="botiga-customizer-styles-'+e+"_"+o+'">'+t+"</style>")})})})});t={button_left_right_padding:i};c.each(t,function(e,n){c.each(r,function(o,i){wp.customize(e+"_"+o,function(t){t.bind(function(t){c("head").find("#botiga-customizer-styles-"+e+"_"+o).remove();t="@media "+i+" {"+n+" { padding-left:"+t+"px !important; padding-right:"+t+"px !important; } }";c("head").append('<style id="botiga-customizer-styles-'+e+"_"+o+'">'+t+"</style>")})})})}),wp.customize("bhfb_search_form_button_margin_left",function(t){t.bind(function(t){c("head").find("#botiga-customizer-styles-bhfb_search_form_button_margin_left").remove();var o=".header-search-form form button { margin-left:"+t+"px !important; }";o+=t<0?".header-search-form form .search-field { padding-right:"+Math.abs(t)+"px !important; }":".header-search-form form .search-field { padding-right: 1em !important; }",c("head").append('<style id="botiga-customizer-styles-bhfb_search_form_button_margin_left">'+o+"</style>")})}),wp.customize("bhfb_search_form_input_border_radius",function(t){t.bind(function(t){c(".header-search-form form .search-field, .header-search-form .botiga-select select").css("border-radius",t+"px")})}),wp.customize("bhfb_search_form_button_border_radius",function(t){t.bind(function(t){c(".header-search-form form button").css("border-radius",t+"px")})}),c.each(r,function(o,i){wp.customize("bhfb_search_form_width_"+o,function(t){t.bind(function(t){c("head").find("#botiga-customizer-styles-bhfb_search_form_width_"+o).remove();t="@media "+i+" { .header-search-form { width:"+t+"px; } }";c("head").append('<style id="botiga-customizer-styles-bhfb_search_form_width_'+o+'">'+t+"</style>")})})}),wp.customize("bhfb_search_form_product_cat_dropdown_margin_right",function(t){t.bind(function(t){c("head").find("#botiga-customizer-styles-bhfb_search_form_product_cat_dropdown_margin_right").remove();t=".header-search-form .botiga-select { margin-right:"+t+"px !important; }";c("head").append('<style id="botiga-customizer-styles-bhfb_search_form_product_cat_dropdown_margin_right">'+t+"</style>")})}),c.each(r,function(o,i){wp.customize("product_swatch_button_left_right_padding_"+o,function(t){t.bind(function(t){c("head").find("#botiga-customizer-styles-product_swatch_button_left_right_padding_"+o).remove();t="@media "+i+" { .botiga-variations-wrapper .botiga-variation-type-button > a { padding-left:"+t+"px !important; padding-right:"+t+"px !important; } }";c("head").append('<style id="botiga-customizer-styles-product_swatch_button_left_right_padding_'+o+'">'+t+"</style>")})})}),c.each(r,function(o,i){wp.customize("product_swatch_button_top_bottom_padding_"+o,function(t){t.bind(function(t){c("head").find("#botiga-customizer-styles-product_swatch_button_top_bottom_padding_"+o).remove();t="@media "+i+" { .botiga-variations-wrapper .botiga-variation-type-button > a { padding-top:"+t+"px !important; padding-bottom:"+t+"px !important; } }";c("head").append('<style id="botiga-customizer-styles-product_swatch_button_top_bottom_padding_'+o+'">'+t+"</style>")})})}),c.each(r,function(o,i){wp.customize("product_swatch_button_spacing_"+o,function(t){t.bind(function(t){c("head").find("#botiga-customizer-styles-product_swatch_button_spacing_"+o).remove();t="@media "+i+" { .botiga-variations-wrapper .botiga-variation-type-button { grid-gap:"+t+"px !important; } }";c("head").append('<style id="botiga-customizer-styles-product_swatch_button_spacing_'+o+'">'+t+"</style>")})})}),wp.customize("product_swatch_button_border_width",function(t){t.bind(function(t){c(".botiga-variations-wrapper .botiga-variation-type-button > a").css("border-width",t+"px")})}),wp.customize("product_swatch_button_border_radius",function(t){t.bind(function(t){c(".botiga-variations-wrapper .botiga-variation-type-button > a").css("border-radius",t+"px")})}),c.each(r,function(o,i){wp.customize("product_swatch_image_width_"+o,function(t){t.bind(function(t){c("head").find("#botiga-customizer-styles-product_swatch_image_width_"+o).remove();t="@media "+i+" { .botiga-variations-wrapper .botiga-variation-type-image > a { width:"+t+"px !important; } }";c("head").append('<style id="botiga-customizer-styles-product_swatch_image_width_'+o+'">'+t+"</style>")})})}),c.each(r,function(o,i){wp.customize("product_swatch_image_height_"+o,function(t){t.bind(function(t){c("head").find("#botiga-customizer-styles-product_swatch_image_height_"+o).remove();t="@media "+i+" { .botiga-variations-wrapper .botiga-variation-type-image > a { height:"+t+"px !important; } }";c("head").append('<style id="botiga-customizer-styles-product_swatch_image_height_'+o+'">'+t+"</style>")})})}),c.each(r,function(o,i){wp.customize("product_swatch_image_spacing_"+o,function(t){t.bind(function(t){c("head").find("#botiga-customizer-styles-product_swatch_image_spacing_"+o).remove();t="@media "+i+" { .botiga-variations-wrapper .botiga-variation-type-image { grid-gap:"+t+"px !important; } }";c("head").append('<style id="botiga-customizer-styles-product_swatch_image_spacing_'+o+'">'+t+"</style>")})})}),wp.customize("product_swatch_image_border_width",function(t){t.bind(function(t){c("head").find("#botiga-customizer-styles-product_swatch_image_border_width").remove();t=".botiga-variations-wrapper .botiga-variation-type-image > a { border-width:"+t+"px !important; }";c("head").append('<style id="botiga-customizer-styles-product_swatch_image_border_width">'+t+"</style>")})}),wp.customize("product_swatch_image_border_radius",function(t){t.bind(function(t){c("head").find("#botiga-customizer-styles-product_swatch_image_border_radius").remove();c("head").append('<style id="botiga-customizer-styles-product_swatch_image_border_radius">.botiga-variations-wrapper .botiga-variation-type-image > a,.botiga-variations-wrapper .botiga-variation-type-image > a img,.botiga-variations-wrapper .botiga-variation-type-image > a:not(.disabled):before{ border-radius:'+t+"px !important; }</style>")})}),void 0!==window.parent.wp.customize.section("botiga_section_adtcnotif")&&window.parent.wp.customize.section("botiga_section_adtcnotif").expanded.bind(function(t){t?c(".botiga-adtcnotif").addClass("active"):c(".botiga-adtcnotif").removeClass("active")}),wp.customize.bind("preview-ready",function(){jQuery(window.parent.document).find("#sub-accordion-section-botiga_section_adtcnotif").hasClass("open")&&c(".botiga-adtcnotif").addClass("active")});var p=botiga_theme_options;c.each(p,function(t,s){wp.customize(s.option,function(t){t.bind(function(n,t){var a="";c.each(p,function(t,i){if(s.option===i.option){var e=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)&&n){if(e||"dimensions"===i.type||(n=void 0!==i.rgba?hexToRGB(n,i.rgba):n),"dimensions"===i.type){if(!isJsonString(n))return;if(""===(n=JSON.parse(n)).top&&""===n.right&&""===n.bottom&&""===n.left)return;n.top=""===n.top?0:n.top,n.right=""===n.right?0:n.right,n.bottom=""===n.bottom?0:n.bottom,n.left=""===n.left?0:n.left,n=n.top+n.unit+" "+n.right+n.unit+" "+n.bottom+n.unit+" "+n.left+n.unit}"display"===i.type&&("hidden"===n?n="none":(n="flex",i.important=!0)),void 0===i.pseudo?"string"==typeof i.prop?c(i.selector).css(i.prop,n+e):c.each(i.prop,function(t,o){c(i.selector).css(o,n+e)}):i.is_responsive?"string"==typeof i.prop?a+="@media "+r[i.device]+" { "+i.selector+" { "+i.prop+": "+n+e+" "+(i.important?"!important":"")+"; } }":c.each(i.prop,function(t,o){a+="@media "+r[i.device]+" { "+i.selector+" { "+o+": "+n+e+" "+(i.important?"!important":"")+"; } }"}):"string"==typeof i.prop?a+=i.selector+"{ "+i.prop+": "+n+e+" "+(i.important?"!important":"")+"; }":c.each(i.prop,function(t,o){a+="string"==typeof o?i.selector+"{ "+o+": "+n+e+" "+(i.important?"!important":"")+"; }":i.selector+"{ "+o.prop+": "+n+(o.unit||e)+" "+(i.important?"!important":"")+"; }"})}}});var o=c("#botiga-customizer-styles-misc-"+s.option);a?o.length?o.text(a):c("head").append('<style id="botiga-customizer-styles-misc-'+s.option+'">'+a+"</style>"):!a&&o.length&&o.remove()})})});t=botiga_theme_options_css_vars;c.each(t,function(t,a){c.each(a.variables,function(t,n){var i;"string"!=typeof n.defaults?c.each({mobile:"(max-width: 575px)",tablet:"(min-width: 576px) and (max-width: 991px)",desktop:"(min-width: 992px)"},function(t,i){var e=n.setting+"_"+t;wp.customize(e,function(t){t.bind(function(t){var o;window.matchMedia(i).matches&&(o="",o+="@media "+i+" { "+a.selector+" { "+n.name+": "+t+n.unit+"; } }",t=c("#botiga-customizer-styles-css-vars-"+e),o?t.length?t.text(o):c("head").append('<style id="botiga-customizer-styles-css-vars-'+e+'">'+o+"</style>"):!o&&t.length&&t.remove())})})}):(i=n.setting,wp.customize(i,function(t){t.bind(function(t){var o="";o+=a.selector+" { "+n.name+": "+t+n.unit+"; }";t=c("#botiga-customizer-styles-css-vars-"+i);o?t.length?t.text(o):c("head").append('<style id="botiga-customizer-styles-css-vars-'+i+'">'+o+"</style>"):!o&&t.length&&t.remove()})}))})}),wp.customize("background_color",function(t){t.bind(function(t){c(":root").css("--botiga_background_color",t)})})}(jQuery);
Copyright ©2021 || Defacer Indonesia