uawdijnntqw1x1x1
IP : 3.137.184.32
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
yar.axolotls.ru
/
bitrix
/
js
/
fileman
/
google
/
autocomplete.js
/
/
;(function() { 'use strict'; BX.namespace('BX.Fileman.Google'); /** * Google autocomplete class. MUST implement method .search(searchString, callback) * * @constructor */ BX.Fileman.Google.AutoComplete = function() { this.autocomplete = null; this.position = null; }; BX.Fileman.Google.AutoComplete.prototype.search = function(searchString, cb) { if(searchString !== '') { BX.Fileman.Google.Loader.init(BX.delegate(function() { this.runSearch(searchString, cb); }, this)); } }; BX.Fileman.Google.AutoComplete.prototype.runSearch = function(searchString, cb) { if(this.autocomplete === null) { this.autocomplete = new google.maps.places.AutocompleteService(); } var geocodeParam = { input: searchString, types: ['geocode'] }; this.autocomplete.getPlacePredictions(geocodeParam, BX.delegate(this.processResult(cb), this)); }; BX.Fileman.Google.AutoComplete.prototype.processResult = function(cb) { return function(googleSearchResult, status) { var result = []; if(status !== google.maps.places.PlacesServiceStatus.ZERO_RESULTS) { if(status !== google.maps.places.PlacesServiceStatus.OK) { this.throwError(status); } else { for(var i = 0; i < googleSearchResult.length; i++) { result.push({ text: googleSearchResult[i].description, place_id: googleSearchResult[i].place_id }); } } } cb(result); } }; BX.Fileman.Google.AutoComplete.prototype.throwError = function(message) { console.error('BX.Fileman.Google.AutoComplete: ' + message ? message.message : 'Google error!'); }; })();
/var/www/axolotl/data/www/yar.axolotls.ru/bitrix/js/fileman/google/autocomplete.js