!function(a){a.each(["frontend/element_ready/wd_google_map.default"],function(a,b){woodmartThemeModule.wdElementorAddAction(b,function(){woodmartThemeModule.googleMapInit()})}),woodmartThemeModule.googleMapInit=function(){a(".google-map-container").each(function(){var b=a(this),c=b.data("map-args"),d={locations:[{lat:c.latitude,lon:c.longitude,icon:c.marker_icon,animation:google.maps.Animation.DROP}],controls_on_map:!1,map_div:"#"+c.selector,start:1,map_options:{zoom:parseInt(c.zoom),scrollwheel:"yes"===c.mouse_zoom}};c.json_style&&!c.elementor?(d.styles={},d.styles[woodmart_settings.google_map_style_text]=a.parseJSON(c.json_style)):c.json_style&&c.elementor&&(d.styles={},d.styles[woodmart_settings.google_map_style_text]=a.parseJSON(atob(c.json_style))),"yes"===c.marker_text_needed&&(d.locations[0].html=c.marker_text),"button"===c.init_type?b.find(".wd-init-map").on("click",function(a){a.preventDefault(),b.hasClass("wd-map-inited")||(b.addClass("wd-map-inited"),new Maplace(d).Load())}):"scroll"===c.init_type?woodmartThemeModule.$window.on("scroll",function(){if(window.innerHeight+woodmartThemeModule.$window.scrollTop()+parseInt(c.init_offset)>b.offset().top){if(b.hasClass("wd-map-inited"))return;b.addClass("wd-map-inited"),new Maplace(d).Load()}}):"interaction"===c.init_type?woodmartThemeModule.$window.on("wdEventStarted",function(){new Maplace(d).Load()}):new Maplace(d).Load()});var b=a(".google-map-container-with-content");woodmartThemeModule.$window.on("resize",function(){b.css({height:b.find(".wd-google-map.with-content").outerHeight()})})},a(document).ready(function(){woodmartThemeModule.googleMapInit()})}(jQuery);