1(()=>{"use strict";window.jQuery;var o=function(){function o(o){var t=o.formId,e=o.fieldId,i=o.addressFieldId,r=o.prepopulateCoords;this.zoom=15,this.formId=t,this.fieldId=e,this.addressFieldId=i,this.prepopulateCoords=this.getPostedAddressFieldCoords()||r,this.mapContainer=document.querySelector("#gpaa_map_container_".concat(this.fieldId)),void 0!==window.google&&(this.setupListeners(),this.initMap())}return o.prototype.getPostedAddressFieldCoords=function(){var o=document.querySelector("#gform_".concat(this.formId)),t=null==o?void 0:o.querySelector('input[name="gpaa_coords_'.concat(this.addressFieldId,'"]'));if(null==t?void 0:t.value){var e;try{e=JSON.parse(t.value)}catch(o){return void console.debug(o)}if("string"==typeof(null==e?void 0:e.lat)&&(e.lat=Number(e.lat)),"string"==typeof(null==e?void 0:e.lng)&&(e.lng=Number(e.lng)),(null==e?void 0:e.lat)&&(null==e?void 0:e.lng))return e}},o.prototype.setupListeners=function(){var o=this;window.gform.addAction("gpaa_fields_filled",(function(t,e,i,r){i===o.formId&&r===o.addressFieldId&&o.setMarker({lat:t.geometry.location.lat(),lng:t.geometry.location.lng()})}))},o.prototype.initMap=function(){var o,t={zoom:this.zoom,center:{lng:-73.95,lat:40.8},fullscreenControl:!1,mapTypeControl:!1,streetViewControl:!1,zoomControl:!1,styles:[{featureType:"poi",stylers:[{visibility:"off"}]}]};this.prepopulateCoords&&(t.center=this.prepopulateCoords),t=window.gform.applyFilters("gpaa_map_options",t,this.formId,this.fieldId),this.map=new google.maps.Map(this.mapContainer,t),null===(o=this.map)||void 0===o||o.setZoom(t.zoom||this.zoom),this.prepopulateCoords&&this.setMarker(this.prepopulateCoords),window.gform.doAction("gpaa_map_initialized",this.map,this.formId,this.fieldId)},o.prototype.setMarker=function(o){var t;this.marker&&this.marker.setMap(null);var e={position:o,map:this.map};e=window.gform.applyFilters("gpaa_marker_options",e,this.formId,this.fieldId),this.marker=new google.maps.Marker(e);var i=this.marker.getPosition();i&&(null===(t=this.map)||void 0===t||t.panTo(i)),window.gform.doAction("gpaa_marker_set",{formId:this.formId,fieldId:this.fieldId,addressFieldId:this.addressFieldId,map:this.map,marker:this.marker})},o}();window.GP_Address_Autocomplete_Map_Field=o})(); 2//# sourceMappingURL=gp-map-field.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.