"use strict";function _createForOfIteratorHelper(e,o){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=_unsupportedIterableToArray(e))||o&&e&&"number"==typeof e.length){t&&(e=t);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,i=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){a=!0,n=e},f:function(){try{i||null==t.return||t.return()}finally{if(a)throw n}}}}function _unsupportedIterableToArray(e,o){if(e){if("string"==typeof e)return _arrayLikeToArray(e,o);var t=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(t="Object"===t&&e.constructor?e.constructor.name:t)||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(e,o):void 0}}function _arrayLikeToArray(e,o){(null==o||o>e.length)&&(o=e.length);for(var t=0,r=new Array(o);t'+r+"")})})});for(var o={desktop:"(min-width: 992px)",tablet:"(min-width: 576px) and (max-width: 991px)",mobile:"(max-width: 575px)"},r={botiga_header_row__above_header_row_height:{selector:".bhfb-above_header_row",prop:"min-height",unit:"px"},botiga_header_row__main_header_row_height:{selector:".bhfb-main_header_row",prop:"min-height",unit:"px"},botiga_header_row__below_header_row_height:{selector:".bhfb-below_header_row",prop:"min-height",unit:"px"},botiga_footer_row__above_footer_row_height:{selector:".bhfb-above_footer_row",prop:"min-height",unit:"px"},botiga_footer_row__main_footer_row_height:{selector:".bhfb-main_footer_row",prop:"min-height",unit:"px"},botiga_footer_row__below_footer_row_height:{selector:".bhfb-below_footer_row",prop:"min-height",unit:"px"},site_logo_size:{selector:".custom-logo-link img",prop:"width",unit:"px"},botiga_section_hb_component__logo_text_alignment:{selector:".bhfb.bhfb-header .bhfb-component-logo",prop:"text-align"},botiga_section_hb_component__html_text_align:{selector:".bhfb.bhfb-header .bhfb-component-html",prop:"text-align"},botiga_section_hb_component__html2_text_align:{selector:".bhfb.bhfb-header .bhfb-component-html2",prop:"text-align"},botiga_section_hb_component__shortcode_text_align:{selector:".bhfb.bhfb-header .bhfb-component-shortcode",prop:"text-align"},botiga_section_hb_component__shortcode2_text_align:{selector:".bhfb.bhfb-header .bhfb-component-shortcode2",prop:"text-align"},botiga_section_hb_component__shortcode3_text_align:{selector:".bhfb.bhfb-header .bhfb-component-shortcode3",prop:"text-align"},botiga_section_fb_component__html_text_align:{selector:".bhfb.bhfb-footer .bhfb-component-html",prop:"text-align"},botiga_section_fb_component__html2_text_align:{selector:".bhfb.bhfb-footer .bhfb-component-html2",prop:"text-align"},botiga_section_fb_component__shortcode_text_align:{selector:".bhfb.bhfb-footer .bhfb-component-shortcode",prop:"text-align"}},n=["header","footer"],i=["above","main","below"],a=["vertical_alignment","inner_layout","horizontal_alignment","elements_spacing"],_=1;_<=6;_++){var b,s=_createForOfIteratorHelper(a);try{for(s.s();!(b=s.n()).done;){var l,f=b.value,h=_createForOfIteratorHelper(n);try{for(h.s();!(l=h.n()).done;){var p,d=l.value,m=_createForOfIteratorHelper(i);try{for(m.s();!(p=m.n()).done;){var u=p.value,g="botiga_"+d+"_row__"+u+"_"+d+"_row_column"+_+"_"+f,w=".bhfb-"+d+" .bhfb-"+u+"_"+d+"_row .bhfb-column-"+_;-1!==f.indexOf("elements_spacing")&&(w+=" .bhfb-builder-item + .bhfb-builder-item"),r[g]={selector:w,prop:function(e){if(-1!==e.indexOf("vertical_alignment"))return"align-items";if(-1!==e.indexOf("inner_layout"))return"flex-direction";if(-1!==e.indexOf("horizontal_alignment"))return"justify-content";if(-1!==e.indexOf("elements_spacing"))return"margin-left"}(g)},-1!==f.indexOf("elements_spacing")&&(r[g].unit="px")}}catch(e){m.e(e)}finally{m.f()}}}catch(e){h.e(e)}finally{h.f()}}}catch(e){s.e(e)}finally{s.f()}}c.each(r,function(s,l){c.each(o,function(_,b){wp.customize(s+"_"+_,function(e){e.bind(function(e){var o,t=void 0!==l.unit?l.unit:"",r="",n="";switch(e){case"top":case"start":e="flex-start";break;case"middle":e="center";break;case"bottom":case"end":e="flex-end";break;case"stack":e="column";break;case"inline":e="row"}if(-1===s.indexOf("vertical_alignment")&&-1===s.indexOf("horizontal_alignment")||(o=c(l.selector).css("flex-direction"),r=l.prop,"column"===o&&("align-items"===r?r="justify-content":"justify-content"===r&&(r="align-items"))),-1!==s.indexOf("inner_layout"))for(var i=0,a=["vertical_alignment","horizontal_alignment"];i'+n+"")})})})})}(jQuery);