jQuery(document).ready(function(){"use strict";function r(){jQuery(".porto-map-wrapper").each(function(r,e){var t=jQuery(e).attr("id");if(void 0===t||""===t)return!1;var o=jQuery(e).find(".porto_google_map").attr("id"),u=jQuery("#"+o).attr("data-map_override");jQuery("#"+o).css({"margin-left":0}),jQuery("#"+o).css({right:0});var i=jQuery("#"+t).parent();if("full"==u&&(i=jQuery("body"),"false"),"ex-full"==u&&(i=jQuery("html"),"false"),!isNaN(u))for(r=0;r<u&&"HTML"!=i.prop("tagName");r++)i=i.parent();if(0==u||"0"==u)n=i.width();else var n=i.outerWidth();var a=i.offset().left-jQuery("#"+o).offset().left;if(jQuery("#"+o).css({width:n}),0==u&&"0"==u||jQuery("#"+o).css({"margin-left":a}),"full"==u&&jQuery("body").hasClass("rtl")){var f=jQuery("#"+o),s=jQuery(window).width()-(f.offset().left+f.outerWidth());jQuery("#"+o).css({right:-s})}})}r(),jQuery(window).on("load",function(){r()}),jQuery(window).on("resize",function(){r()}),jQuery(".ui-tabs").on("tabsactivate",function(e,t){jQuery(this).find(".porto-map-wrapper").length>0&&r()}),jQuery(".ui-accordion").on("accordionactivate",function(e,t){jQuery(this).find(".porto-map-wrapper").length>0&&r()}),jQuery(document).on("onPortoModalPopupOpen",function(){r()}),jQuery(document).on("portoMapResize",function(){r()})});