{"version":3,"sources":["webpack:///D:/a/1/s/frontend/node_modules/babel-runtime/helpers/extends.js","webpack:///D:/a/1/s/frontend/node_modules/prop-types/index.js","webpack:///D:/a/1/s/frontend/node_modules/prop-types/factoryWithThrowingShims.js","webpack:///D:/a/1/s/frontend/node_modules/prop-types/lib/ReactPropTypesSecret.js","webpack:///D:/a/1/s/frontend/node_modules/react-places-autocomplete/dist/index.js","webpack:///D:/a/1/s/frontend/node_modules/lodash.debounce/index.js","webpack:///D:/a/1/s/frontend/node_modules/react-places-autocomplete/dist/PlacesAutocomplete.js","webpack:///D:/a/1/s/frontend/node_modules/react-places-autocomplete/dist/helpers.js","webpack:///D:/a/1/s/frontend/node_modules/react-places-autocomplete/dist/utils.js"],"names":["exports","__esModule","obj","_assign","__webpack_require__","_assign2","default","target","i","arguments","length","source","key","Object","prototype","hasOwnProperty","call","module","ReactPropTypesSecret","emptyFunction","emptyFunctionWithReset","resetWarningCache","shim","props","propName","componentName","location","propFullName","secret","err","Error","name","getShim","isRequired","ReactPropTypes","array","bigint","bool","func","number","object","string","symbol","any","arrayOf","element","elementType","instanceOf","node","objectOf","oneOf","oneOfType","shape","exact","checkPropTypes","PropTypes","defineProperty","value","getLatLng","geocodeByPlaceId","geocodeByAddress","undefined","_PlacesAutocomplete","_PlacesAutocomplete2","_utils","global","FUNC_ERROR_TEXT","NAN","symbolTag","reTrim","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","parseInt","freeGlobal","freeSelf","self","root","Function","objectToString","toString","nativeMax","Math","max","nativeMin","min","now","Date","isObject","type","toNumber","isObjectLike","isSymbol","other","valueOf","replace","isBinary","test","slice","wait","options","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","time","args","thisArg","apply","shouldInvoke","timeSinceLastCall","timerExpired","trailingEdge","setTimeout","remainingWait","debounced","isInvoking","this","leadingEdge","cancel","clearTimeout","flush","_extends","assign","_createClass","defineProperties","descriptor","enumerable","configurable","writable","Constructor","protoProps","staticProps","_react2","_interopRequireDefault","_propTypes2","_lodash2","_helpers","formattedSuggestion","structured_formatting","mainText","main_text","secondaryText","secondary_text","PlacesAutocomplete","_React$Component","instance","_classCallCheck","_this","ReferenceError","_possibleConstructorReturn","__proto__","getPrototypeOf","init","window","google","maps","places","autocompleteService","AutocompleteService","autocompleteOK","PlacesServiceStatus","OK","setState","state","ready","autocompleteCallback","predictions","status","loading","highlightFirstSuggestion","suggestions","map","p","idx","id","description","placeId","place_id","active","index","matchedSubstrings","matched_substrings","terms","types","onError","clearSuggestions","fetchPredictions","getPlacePredictions","searchOptions","input","clearActive","suggestion","handleSelect","address","onSelect","onChange","getActiveSuggestion","find","selectActiveAtIndex","activeName","setActiveAtIndex","selectUserInputValue","userInputValue","handleEnterKey","activeSuggestion","handleDownKey","handleUpKey","handleInputKeyDown","event","preventDefault","handleInputChange","shouldFetchSuggestions","debouncedFetchPredictions","handleInputOnBlur","mousedownOnSuggestion","getActiveSuggestionId","getIsExpanded","getInputProps","defaultInputProps","autoComplete","role","aria-autocomplete","aria-expanded","aria-activedescendant","disabled","onKeyDown","compose","onBlur","getSuggestionItemProps","handleSuggestionMouseEnter","bind","handleSuggestionClick","onMouseEnter","onMouseLeave","handleSuggestionMouseLeave","onMouseDown","handleSuggestionMouseDown","onMouseUp","handleSuggestionMouseUp","onTouchStart","handleSuggestionTouchStart","onTouchEnd","onClick","googleCallbackName","debounce","subClass","superClass","create","constructor","setPrototypeOf","_inherits","Component","children","propTypes","bounds","componentRestrictions","offset","radius","defaultProps","_clearSuggestions","_len","fns","Array","_key","_len2","_key2","forEach","fn","pick","_len3","_key3","reduce","newObj","prop","geocoder","Geocoder","GeocoderStatus","Promise","resolve","reject","geocode","results","lat","geometry","lng","e"],"mappings":"gGAEAA,QAAAC,YAAA,EAEA,IAIAC,EAJAC,EAAcC,EAAQ,KAEtBC,GAEAH,EAFAC,IAEsCD,EAAAD,WAAAC,GAAuCI,QAAAJ,GAE7EF,QAA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,EAAA,EAAAA,EAAA,KAAAC,EAAA,EAAyFA,EAAAD,EAAeC,IACxGjQ,EAAAiQ,EAAA,GAAA/Q,UAAA+Q,GAGA,OAAAjQ,EAAAkQ,OAAA,SAAAC,EAAAC,GAIA,OAHAzR,KAAAa,eAAA4Q,KACAD,EAAAC,GAAAzR,EAAAyR,IAEAD,gDC5BA7Q,OAAA2C,eAAAxD,QAAA,cACAyD,OAAA,IAEAzD,QAAA4D,iBAAA,SAAA+I,GACA,IAAAiF,EAAA,IAAAzH,OAAAC,OAAAC,KAAAwH,SACAlH,EAAAR,OAAAC,OAAAC,KAAAyH,eAAAnH,GAEA,WAAAoH,QAAA,SAAAC,EAAAC,GACAL,EAAAM,SAAsBvF,WAAmB,SAAAwF,EAAAlH,GACzCA,IAAAN,GACAsH,EAAAhH,GAEA+G,EAAAG,QAKAnS,QAAA0D,UAAA,SAAA+C,GACA,WAAAsL,QAAA,SAAAC,EAAAC,GACA,IAKAD,GAHAI,IAAA3L,EAAA4L,SAAA3Q,SAAA0Q,MACAE,IAAA7L,EAAA4L,SAAA3Q,SAAA4Q,QAGK,MAAAC,GACLN,EAAAM,OAKAvS,QAAA2D,iBAAA,SAAA+H,GACA,IAAAkG,EAAA,IAAAzH,OAAAC,OAAAC,KAAAwH,SACAlH,EAAAR,OAAAC,OAAAC,KAAAyH,eAAAnH,GAEA,WAAAoH,QAAA,SAAAC,EAAAC,GACAL,EAAAM,SAAsBxG,WAAmB,SAAAyG,EAAAlH,GACzCA,IAAAN,GACAsH,EAAAhH,GAEA+G,EAAAG","file":"vendors~block-11~block-16~block-4~block-58~block-60~block-79~block-88~page-6~page-7.b9f88d4cffa17521b332.js","sourcesContent":["\"use strict\";\n\nexports.__esModule = true;\n\nvar _assign = require(\"../core-js/object/assign\");\n\nvar _assign2 = _interopRequireDefault(_assign);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = _assign2.default || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getLatLng = exports.geocodeByPlaceId = exports.geocodeByAddress = undefined;\n\nvar _PlacesAutocomplete = require('./PlacesAutocomplete');\n\nvar _PlacesAutocomplete2 = _interopRequireDefault(_PlacesAutocomplete);\n\nvar _utils = require('./utils');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.geocodeByAddress = _utils.geocodeByAddress;\nexports.geocodeByPlaceId = _utils.geocodeByPlaceId;\nexports.getLatLng = _utils.getLatLng;\nexports.default = _PlacesAutocomplete2.default;","/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n result = wait - timeSinceLastCall;\n\n return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = debounce;\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar _lodash = require('lodash.debounce');\n\nvar _lodash2 = _interopRequireDefault(_lodash);\n\nvar _helpers = require('./helpers');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } /*\n * Copyright (c) 2016-present, Ken Hibino.\n * Licensed under the MIT License (MIT).\n * See https://kenny-hibino.github.io/react-places-autocomplete\n */\n\n// transform snake_case to camelCase\nvar formattedSuggestion = function formattedSuggestion(structured_formatting) {\n return {\n mainText: structured_formatting.main_text,\n secondaryText: structured_formatting.secondary_text\n };\n};\n\nvar PlacesAutocomplete = function (_React$Component) {\n _inherits(PlacesAutocomplete, _React$Component);\n\n function PlacesAutocomplete(props) {\n _classCallCheck(this, PlacesAutocomplete);\n\n var _this = _possibleConstructorReturn(this, (PlacesAutocomplete.__proto__ || Object.getPrototypeOf(PlacesAutocomplete)).call(this, props));\n\n _this.init = function () {\n if (!window.google) {\n throw new Error('[react-places-autocomplete]: Google Maps JavaScript API library must be loaded. See: https://github.com/kenny-hibino/react-places-autocomplete#load-google-library');\n }\n\n if (!window.google.maps.places) {\n throw new Error('[react-places-autocomplete]: Google Maps Places library must be loaded. Please add `libraries=places` to the src URL. See: https://github.com/kenny-hibino/react-places-autocomplete#load-google-library');\n }\n\n _this.autocompleteService = new window.google.maps.places.AutocompleteService();\n _this.autocompleteOK = window.google.maps.places.PlacesServiceStatus.OK;\n _this.setState(function (state) {\n if (state.ready) {\n return null;\n } else {\n return { ready: true };\n }\n });\n };\n\n _this.autocompleteCallback = function (predictions, status) {\n _this.setState({ loading: false });\n if (status !== _this.autocompleteOK) {\n _this.props.onError(status, _this.clearSuggestions);\n return;\n }\n var highlightFirstSuggestion = _this.props.highlightFirstSuggestion;\n\n _this.setState({\n suggestions: predictions.map(function (p, idx) {\n return {\n id: p.id,\n description: p.description,\n placeId: p.place_id,\n active: highlightFirstSuggestion && idx === 0 ? true : false,\n index: idx,\n formattedSuggestion: formattedSuggestion(p.structured_formatting),\n matchedSubstrings: p.matched_substrings,\n terms: p.terms,\n types: p.types\n };\n })\n });\n };\n\n _this.fetchPredictions = function () {\n var value = _this.props.value;\n\n if (value.length) {\n _this.setState({ loading: true });\n _this.autocompleteService.getPlacePredictions(_extends({}, _this.props.searchOptions, {\n input: value\n }), _this.autocompleteCallback);\n }\n };\n\n _this.clearSuggestions = function () {\n _this.setState({ suggestions: [] });\n };\n\n _this.clearActive = function () {\n _this.setState({\n suggestions: _this.state.suggestions.map(function (suggestion) {\n return _extends({}, suggestion, {\n active: false\n });\n })\n });\n };\n\n _this.handleSelect = function (address, placeId, suggestion) {\n _this.clearSuggestions();\n if (_this.props.onSelect) {\n _this.props.onSelect(address, placeId, suggestion);\n } else {\n _this.props.onChange(address);\n }\n };\n\n _this.getActiveSuggestion = function () {\n return _this.state.suggestions.find(function (suggestion) {\n return suggestion.active;\n });\n };\n\n _this.selectActiveAtIndex = function (index) {\n var activeName = _this.state.suggestions.find(function (suggestion) {\n return suggestion.index === index;\n }).description;\n _this.setActiveAtIndex(index);\n _this.props.onChange(activeName);\n };\n\n _this.selectUserInputValue = function () {\n _this.clearActive();\n _this.props.onChange(_this.state.userInputValue);\n };\n\n _this.handleEnterKey = function () {\n var activeSuggestion = _this.getActiveSuggestion();\n if (activeSuggestion === undefined) {\n _this.handleSelect(_this.props.value, null, null);\n } else {\n _this.handleSelect(activeSuggestion.description, activeSuggestion.placeId, activeSuggestion);\n }\n };\n\n _this.handleDownKey = function () {\n if (_this.state.suggestions.length === 0) {\n return;\n }\n\n var activeSuggestion = _this.getActiveSuggestion();\n if (activeSuggestion === undefined) {\n _this.selectActiveAtIndex(0);\n } else if (activeSuggestion.index === _this.state.suggestions.length - 1) {\n _this.selectUserInputValue();\n } else {\n _this.selectActiveAtIndex(activeSuggestion.index + 1);\n }\n };\n\n _this.handleUpKey = function () {\n if (_this.state.suggestions.length === 0) {\n return;\n }\n\n var activeSuggestion = _this.getActiveSuggestion();\n if (activeSuggestion === undefined) {\n _this.selectActiveAtIndex(_this.state.suggestions.length - 1);\n } else if (activeSuggestion.index === 0) {\n _this.selectUserInputValue();\n } else {\n _this.selectActiveAtIndex(activeSuggestion.index - 1);\n }\n };\n\n _this.handleInputKeyDown = function (event) {\n /* eslint-disable indent */\n switch (event.key) {\n case 'Enter':\n event.preventDefault();\n _this.handleEnterKey();\n break;\n case 'ArrowDown':\n event.preventDefault(); // prevent the cursor from moving\n _this.handleDownKey();\n break;\n case 'ArrowUp':\n event.preventDefault(); // prevent the cursor from moving\n _this.handleUpKey();\n break;\n case 'Escape':\n _this.clearSuggestions();\n break;\n }\n /* eslint-enable indent */\n };\n\n _this.setActiveAtIndex = function (index) {\n _this.setState({\n suggestions: _this.state.suggestions.map(function (suggestion, idx) {\n if (idx === index) {\n return _extends({}, suggestion, { active: true });\n } else {\n return _extends({}, suggestion, { active: false });\n }\n })\n });\n };\n\n _this.handleInputChange = function (event) {\n var value = event.target.value;\n\n _this.props.onChange(value);\n _this.setState({ userInputValue: value });\n if (!value) {\n _this.clearSuggestions();\n return;\n }\n if (_this.props.shouldFetchSuggestions) {\n _this.debouncedFetchPredictions();\n }\n };\n\n _this.handleInputOnBlur = function () {\n if (!_this.mousedownOnSuggestion) {\n _this.clearSuggestions();\n }\n };\n\n _this.getActiveSuggestionId = function () {\n var activeSuggestion = _this.getActiveSuggestion();\n return activeSuggestion ? 'PlacesAutocomplete__suggestion-' + activeSuggestion.placeId : undefined;\n };\n\n _this.getIsExpanded = function () {\n return _this.state.suggestions.length > 0;\n };\n\n _this.getInputProps = function () {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n if (options.hasOwnProperty('value')) {\n throw new Error('[react-places-autocomplete]: getInputProps does not accept `value`. Use `value` prop instead');\n }\n\n if (options.hasOwnProperty('onChange')) {\n throw new Error('[react-places-autocomplete]: getInputProps does not accept `onChange`. Use `onChange` prop instead');\n }\n\n var defaultInputProps = {\n type: 'text',\n autoComplete: 'off',\n role: 'combobox',\n 'aria-autocomplete': 'list',\n 'aria-expanded': _this.getIsExpanded(),\n 'aria-activedescendant': _this.getActiveSuggestionId(),\n disabled: !_this.state.ready\n };\n\n return _extends({}, defaultInputProps, options, {\n onKeyDown: (0, _helpers.compose)(_this.handleInputKeyDown, options.onKeyDown),\n onBlur: (0, _helpers.compose)(_this.handleInputOnBlur, options.onBlur),\n value: _this.props.value,\n onChange: function onChange(event) {\n _this.handleInputChange(event);\n }\n });\n };\n\n _this.getSuggestionItemProps = function (suggestion) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n\n var handleSuggestionMouseEnter = _this.handleSuggestionMouseEnter.bind(_this, suggestion.index);\n var handleSuggestionClick = _this.handleSuggestionClick.bind(_this, suggestion);\n\n return _extends({}, options, {\n key: suggestion.id,\n id: _this.getActiveSuggestionId(),\n role: 'option',\n onMouseEnter: (0, _helpers.compose)(handleSuggestionMouseEnter, options.onMouseEnter),\n onMouseLeave: (0, _helpers.compose)(_this.handleSuggestionMouseLeave, options.onMouseLeave),\n onMouseDown: (0, _helpers.compose)(_this.handleSuggestionMouseDown, options.onMouseDown),\n onMouseUp: (0, _helpers.compose)(_this.handleSuggestionMouseUp, options.onMouseUp),\n onTouchStart: (0, _helpers.compose)(_this.handleSuggestionTouchStart, options.onTouchStart),\n onTouchEnd: (0, _helpers.compose)(_this.handleSuggestionMouseUp, options.onTouchEnd),\n onClick: (0, _helpers.compose)(handleSuggestionClick, options.onClick)\n });\n };\n\n _this.handleSuggestionMouseEnter = function (index) {\n _this.setActiveAtIndex(index);\n };\n\n _this.handleSuggestionMouseLeave = function () {\n _this.mousedownOnSuggestion = false;\n _this.clearActive();\n };\n\n _this.handleSuggestionMouseDown = function (event) {\n event.preventDefault();\n _this.mousedownOnSuggestion = true;\n };\n\n _this.handleSuggestionTouchStart = function () {\n _this.mousedownOnSuggestion = true;\n };\n\n _this.handleSuggestionMouseUp = function () {\n _this.mousedownOnSuggestion = false;\n };\n\n _this.handleSuggestionClick = function (suggestion, event) {\n if (event && event.preventDefault) {\n event.preventDefault();\n }\n var description = suggestion.description,\n placeId = suggestion.placeId;\n\n _this.handleSelect(description, placeId, suggestion);\n setTimeout(function () {\n _this.mousedownOnSuggestion = false;\n });\n };\n\n _this.state = {\n loading: false,\n suggestions: [],\n userInputValue: props.value,\n ready: !props.googleCallbackName\n };\n\n _this.debouncedFetchPredictions = (0, _lodash2.default)(_this.fetchPredictions, props.debounce);\n return _this;\n }\n\n _createClass(PlacesAutocomplete, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n var googleCallbackName = this.props.googleCallbackName;\n\n if (googleCallbackName) {\n var isPlacesLoaded = window.google && window.google.maps && window.google.maps.places;\n if (!isPlacesLoaded) {\n window[googleCallbackName] = this.init;\n } else {\n this.init();\n }\n } else {\n this.init();\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n var googleCallbackName = this.props.googleCallbackName;\n\n if (googleCallbackName && window[googleCallbackName]) {\n delete window[googleCallbackName];\n }\n }\n }, {\n key: 'render',\n value: function render() {\n return this.props.children({\n getInputProps: this.getInputProps,\n getSuggestionItemProps: this.getSuggestionItemProps,\n loading: this.state.loading,\n suggestions: this.state.suggestions\n });\n }\n }]);\n\n return PlacesAutocomplete;\n}(_react2.default.Component);\n\nPlacesAutocomplete.propTypes = {\n onChange: _propTypes2.default.func.isRequired,\n value: _propTypes2.default.string.isRequired,\n children: _propTypes2.default.func.isRequired,\n onError: _propTypes2.default.func,\n onSelect: _propTypes2.default.func,\n searchOptions: _propTypes2.default.shape({\n bounds: _propTypes2.default.object,\n componentRestrictions: _propTypes2.default.object,\n location: _propTypes2.default.object,\n offset: _propTypes2.default.oneOfType([_propTypes2.default.number, _propTypes2.default.string]),\n radius: _propTypes2.default.oneOfType([_propTypes2.default.number, _propTypes2.default.string]),\n types: _propTypes2.default.array\n }),\n debounce: _propTypes2.default.number,\n highlightFirstSuggestion: _propTypes2.default.bool,\n shouldFetchSuggestions: _propTypes2.default.bool,\n googleCallbackName: _propTypes2.default.string\n};\n\nPlacesAutocomplete.defaultProps = {\n /* eslint-disable no-unused-vars, no-console */\n onError: function onError(status, _clearSuggestions) {\n return console.error('[react-places-autocomplete]: error happened when fetching data from Google Maps API.\\nPlease check the docs here (https://developers.google.com/maps/documentation/javascript/places#place_details_responses)\\nStatus: ', status);\n },\n /* eslint-enable no-unused-vars, no-console */\n searchOptions: {},\n debounce: 200,\n highlightFirstSuggestion: false,\n shouldFetchSuggestions: true\n};\n\nexports.default = PlacesAutocomplete;","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar compose = exports.compose = function compose() {\n for (var _len = arguments.length, fns = Array(_len), _key = 0; _key < _len; _key++) {\n fns[_key] = arguments[_key];\n }\n\n return function () {\n for (var _len2 = arguments.length, args = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n\n fns.forEach(function (fn) {\n return fn && fn.apply(undefined, args);\n });\n };\n};\n\nvar pick = exports.pick = function pick(obj) {\n for (var _len3 = arguments.length, props = Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {\n props[_key3 - 1] = arguments[_key3];\n }\n\n return props.reduce(function (newObj, prop) {\n if (obj && obj.hasOwnProperty(prop)) {\n newObj[prop] = obj[prop];\n }\n return newObj;\n }, {});\n};","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar geocodeByAddress = exports.geocodeByAddress = function geocodeByAddress(address) {\n var geocoder = new window.google.maps.Geocoder();\n var OK = window.google.maps.GeocoderStatus.OK;\n\n return new Promise(function (resolve, reject) {\n geocoder.geocode({ address: address }, function (results, status) {\n if (status !== OK) {\n reject(status);\n }\n resolve(results);\n });\n });\n};\n\nvar getLatLng = exports.getLatLng = function getLatLng(result) {\n return new Promise(function (resolve, reject) {\n try {\n var latLng = {\n lat: result.geometry.location.lat(),\n lng: result.geometry.location.lng()\n };\n resolve(latLng);\n } catch (e) {\n reject(e);\n }\n });\n};\n\nvar geocodeByPlaceId = exports.geocodeByPlaceId = function geocodeByPlaceId(placeId) {\n var geocoder = new window.google.maps.Geocoder();\n var OK = window.google.maps.GeocoderStatus.OK;\n\n return new Promise(function (resolve, reject) {\n geocoder.geocode({ placeId: placeId }, function (results, status) {\n if (status !== OK) {\n reject(status);\n }\n resolve(results);\n });\n });\n};"],"sourceRoot":""}