jQuery(document).ready(function(t){function a(a){if(a){var n=a.attr("data-address"),o=a.attr("data-latitude"),d=a.attr("data-longitude"),r=a.attr("data-height"),i=a.attr("data-zoom_level"),l=a.attr("data-map_type"),s=a.attr("data-map_style_snippet"),c=a.attr("data-marker_enable"),h=a.attr("data-marker_icon"),m=a.attr("data-infowindow_enable"),p=a.attr("data-infowindow_content"),g=a.attr("data-infowindow_heading_background"),_=a.attr("data-zoom_control_disable"),u=a.attr("data-street_view_control_disable"),f=a.attr("data-draggable_disable"),w=a.attr("data-double_click_zoom_disable"),b=a.attr("data-scrollwheel_zoom_disable"),y=a.attr("data-map_type_control_disable"),C=a.attr("data-icon_clickable_disable"),v={};n?v.address=n:v.center={lat:o?parseFloat(o):0,lng:d?parseFloat(d):0},v.zoom=i?parseInt(i):12,v.mapTypeId=l,s&&(v.styles=t.parseJSON(atob(s))),_&&(v.zoomControl=!1),u&&(v.streetViewControl=!1),f&&(v.draggable=!1),w&&(v.disableDoubleClickZoom=!0),b&&(v.scrollwheel=!1),y?v.mapTypeControl=!1:(v.mapTypeControl=!0,v.mapTypeControlOptions={style:google.maps.MapTypeControlStyle.DROPDOWN_MENU}),C&&(v.clickableIcons=!1),a.height(r),g&&a.addClass(g),c&&m?a.gmap3(v).marker(function(t){var a={position:t.getCenter()};return h&&(a.icon=h),a}).infowindow({content:atob(p)}).then(function(t){var a=this.get(0),n=this.get(1);n.addListener("click",function(o){t.open(a,n),t.addListener("domready",function(t){e()})})}):c&&!m?a.gmap3(v).marker(function(t){var a={position:t.getCenter()};return h&&(a.icon=h),a}):!c&&m?a.gmap3(v).infowindow(function(t){return{position:t.getCenter(),content:atob(p)}}).then(function(t){t.open(this.get(0)),t.addListener("domready",function(t){e()})}):a.gmap3(v)}}function e(){n(),o(),d(),r()}function n(){var a=t(".gm-style-iw"),e=a.prev();e.children(":nth-child(2)").addClass("hidden"),e.children(":nth-child(4)").addClass("hidden")}function o(){t(".gm-style-iw").children(":last-child").addClass("hidden")}function d(){var a=t(".gm-style-iw"),e=a.prev();e.addClass("high-layer"),e.children(":nth-child(1)").addClass("lgm-arrow-shadow"),e.children(":nth-child(3)").addClass("lgm-arrow"),e.children(":nth-child(3)").children().children().addClass("lgm-arrow-half")}function r(){t(".gm-style-iw").next().addClass("lgm-close")}t(".legocreative-gmaps").each(function(){a(t(this))})});