(function(){"use strict";BX.namespace("BX.Fileman.Google");BX.Fileman.Google.AutoComplete=function(){this.autocomplete=null;this.position=null};BX.Fileman.Google.AutoComplete.prototype.search=function(e,o){if(e!==""){BX.Fileman.Google.Loader.init(BX.delegate(function(){this.runSearch(e,o)},this))}};BX.Fileman.Google.AutoComplete.prototype.runSearch=function(e,o){if(this.autocomplete===null){this.autocomplete=new google.maps.places.AutocompleteService}var t={input:e,types:["geocode"]};this.autocomplete.getPlacePredictions(t,BX.delegate(this.processResult(o),this))};BX.Fileman.Google.AutoComplete.prototype.processResult=function(e){return function(o,t){var l=[];if(t!==google.maps.places.PlacesServiceStatus.ZERO_RESULTS){if(t!==google.maps.places.PlacesServiceStatus.OK){this.throwError(t)}else{for(var i=0;i