constructor(props) {
		super(props);
		this.state = {
			userLocation: "",
			currentValue: "",
			currentDistance: 0,
			value: 0
		};
		this.type = "match";
		this.locString = "";
		this.result = {
			options: []
		};
		this.queryInfo = {
			type: "geo_distance",
			unit: "mi",
			start: 0,
			end: 10
		};
		this.handleChange = this.handleChange.bind(this);
		this.loadOptions = this.loadOptions.bind(this);
		this.handleValuesChange = this.handleValuesChange.bind(this);
		this.handleResults = this.handleResults.bind(this);
		this.customQuery = this.customQuery.bind(this);
		this.setDefaultLocation = this.setDefaultLocation.bind(this);
		this.urlParams = props.URLParams ? helper.URLParams.get(props.componentId) : null;
	}
	function PlacesSearch(props) {
		_classCallCheck(this, PlacesSearch);

		var _this = _possibleConstructorReturn(this, _Component.call(this, props));

		_this.state = {
			userLocation: "",
			currentValue: "",
			currentDistance: 0,
			value: 0
		};
		_this.type = "match";
		_this.locString = "";
		_this.result = {
			options: []
		};
		_this.queryInfo = {
			type: "geo_distance",
			unit: "mi",
			start: 0,
			end: 10
		};
		_this.handleChange = _this.handleChange.bind(_this);
		_this.loadOptions = _this.loadOptions.bind(_this);
		_this.handleValuesChange = _this.handleValuesChange.bind(_this);
		_this.handleResults = _this.handleResults.bind(_this);
		_this.customQuery = _this.customQuery.bind(_this);
		_this.setDefaultLocation = _this.setDefaultLocation.bind(_this);
		_this.urlParams = props.URLParams ? helper.URLParams.get(props.componentId) : null;
		return _this;
	}
			var execQuery = function execQuery() {
				if (_this9.props.onValueChange) {
					_this9.props.onValueChange({
						input: null,
						location: null,
						unit: _this9.props.unit
					});
				}
				if (_this9.props.URLParams) {
					helper.URLParams.update(_this9.props.componentId, null, _this9.props.URLParams);
				}
				helper.selectedSensor.set(obj, true);
			};
			var execQuery = function execQuery() {
				if (_this8.props.onValueChange) {
					_this8.props.onValueChange({
						input: _this8.state.currentValue,
						location: _this8.locString,
						unit: _this8.props.unit
					});
				}
				if (_this8.props.URLParams) {
					helper.URLParams.update(_this8.props.componentId, _this8.state.currentValue, _this8.props.URLParams);
				}
				helper.selectedSensor.set(obj, true);
			};
			var execNullQuery = function execNullQuery() {
				if (_this7.props.onValueChange) {
					_this7.props.onValueChange(null);
				}
				var obj = {
					key: _this7.props.componentId,
					value: null
				};
				if (_this7.props.URLParams) {
					helper.URLParams.update(_this7.props.componentId, null, _this7.props.URLParams);
				}
				helper.selectedSensor.set(obj, true);
			};
			const execQuery = () => {
				if (this.props.onValueChange) {
					this.props.onValueChange({
						input: null,
						location: null,
						unit: this.props.unit
					});
				}
				if (this.props.URLParams) {
					helper.URLParams.update(this.props.componentId, null, this.props.URLParams);
				}
				helper.selectedSensor.set(obj, true);
			};
			const execQuery = () => {
				if (this.props.onValueChange) {
					this.props.onValueChange({
						input: this.state.currentValue,
						location: this.locString,
						unit: this.props.unit
					});
				}
				if (this.props.URLParams) {
					helper.URLParams.update(this.props.componentId, this.state.currentValue, this.props.URLParams);
				}
				helper.selectedSensor.set(obj, true);
			};
			var execQuery = function execQuery() {
				if (_this7.props.onValueChange) {
					_this7.props.onValueChange({
						input: _this7.state.currentValue.value,
						distance: _this7.state.currentDistance,
						location: _this7.locString,
						unit: _this7.props.unit
					});
				}
				helper.selectedSensor.setSortInfo(sortObj);
				if (_this7.props.URLParams) {
					helper.URLParams.update(_this7.props.componentId, _this7.setURLValue(), _this7.props.URLParams);
				}
				helper.selectedSensor.set(obj, true);
			};
	function GeoDistanceSlider(props) {
		_classCallCheck(this, GeoDistanceSlider);

		var _this = _possibleConstructorReturn(this, _Component.call(this, props));

		_this.urlParams = props.URLParams ? helper.URLParams.get(props.componentId, false, true) : null;
		_this.defaultSelected = _this.urlParams !== null ? _this.urlParams : _this.props.defaultSelected;
		var value = _this.defaultSelected && _this.defaultSelected.distance ? _this.defaultSelected.distance < _this.props.range.start ? _this.props.range.start : _this.defaultSelected.distance : _this.props.range.start;
		value = parseInt(value, 10);
		if (_this.defaultSelected) {
			_this.defaultSelected.distance = parseInt(_this.defaultSelected.distance, 10);
		}
		_this.state = {
			currentValue: null,
			currentDistance: value + _this.props.unit,
			userLocation: null,
			value: value
		};
		_this.type = "geo_distance";
		_this.locString = "";
		_this.result = {
			options: []
		};
		_this.sortInfo = {
			type: "_geo_distance",
			order: "asc",
			unit: "mi"
		};
		_this.handleChange = _this.handleChange.bind(_this);
		_this.loadOptions = _this.loadOptions.bind(_this);
		_this.customQuery = _this.customQuery.bind(_this);
		_this.getUserLocation = _this.getUserLocation.bind(_this);
		_this.setDefaultLocation = _this.setDefaultLocation.bind(_this);
		_this.handleValuesChange = _this.handleValuesChange.bind(_this);
		_this.handleResults = _this.handleResults.bind(_this);
		_this.unitFormatter = _this.unitFormatter.bind(_this);
		return _this;
	}
	PlacesSearch.prototype.checkDefault = function checkDefault(props) {
		this.urlParams = props.URLParams ? helper.URLParams.get(props.componentId) : null;
		this.defaultValue = this.urlParams !== null ? this.urlParams : props.defaultSelected;
		this.changeValue(this.defaultValue);
	};
	GeoDistanceSlider.prototype.checkDefault = function checkDefault() {
		this.urlParams = this.props.URLParams ? helper.URLParams.get(this.props.componentId, false, true) : null;
		var defaultValue = this.urlParams !== null ? this.urlParams : this.props.defaultSelected;
		this.changeValue(defaultValue);
	};
	checkDefault(props) {
		this.urlParams = props.URLParams ? helper.URLParams.get(props.componentId) : null;
		this.defaultValue = this.urlParams !== null ? this.urlParams : props.defaultSelected;
		this.changeValue(this.defaultValue);
	}