UNPKG

react-leaflet-geosearch

Version:

Adds support for address lookup (a.k.a. geocoding / geoseaching) to React-Leaflet.

322 lines (266 loc) 1.6 MB
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["react-leaflet-geosearch"] = factory(); else root["ReactLeafletGeosearch"] = factory(); })(window, function() { return /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ return installedModules[moduleId].exports; /******/ } /******/ // Create a new module (and put it into the cache) /******/ var module = installedModules[moduleId] = { /******/ i: moduleId, /******/ l: false, /******/ exports: {} /******/ }; /******/ /******/ // Execute the module function /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); /******/ /******/ // Flag the module as loaded /******/ module.l = true; /******/ /******/ // Return the exports of the module /******/ return module.exports; /******/ } /******/ /******/ /******/ // expose the modules object (__webpack_modules__) /******/ __webpack_require__.m = modules; /******/ /******/ // expose the module cache /******/ __webpack_require__.c = installedModules; /******/ /******/ // define getter function for harmony exports /******/ __webpack_require__.d = function(exports, name, getter) { /******/ if(!__webpack_require__.o(exports, name)) { /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); /******/ } /******/ }; /******/ /******/ // define __esModule on exports /******/ __webpack_require__.r = function(exports) { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; /******/ /******/ // create a fake namespace object /******/ // mode & 1: value is a module id, require it /******/ // mode & 2: merge all properties of value into the ns /******/ // mode & 4: return value when already ns object /******/ // mode & 8|1: behave like require /******/ __webpack_require__.t = function(value, mode) { /******/ if(mode & 1) value = __webpack_require__(value); /******/ if(mode & 8) return value; /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; /******/ var ns = Object.create(null); /******/ __webpack_require__.r(ns); /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); /******/ return ns; /******/ }; /******/ /******/ // getDefaultExport function for compatibility with non-harmony modules /******/ __webpack_require__.n = function(module) { /******/ var getter = module && module.__esModule ? /******/ function getDefault() { return module['default']; } : /******/ function getModuleExports() { return module; }; /******/ __webpack_require__.d(getter, 'a', getter); /******/ return getter; /******/ }; /******/ /******/ // Object.prototype.hasOwnProperty.call /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; /******/ /******/ // __webpack_public_path__ /******/ __webpack_require__.p = ""; /******/ /******/ /******/ // Load entry module and return exports /******/ return __webpack_require__(__webpack_require__.s = "./src/index.js"); /******/ }) /************************************************************************/ /******/ ({ /***/ "./node_modules/@babel/runtime/helpers/defineProperty.js": /*!***************************************************************!*\ !*** ./node_modules/@babel/runtime/helpers/defineProperty.js ***! \***************************************************************/ /*! no static exports found */ /***/ (function(module, exports) { eval("function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty;\nmodule.exports[\"default\"] = module.exports, module.exports.__esModule = true;\n\n//# sourceURL=webpack://ReactLeafletGeosearch/./node_modules/@babel/runtime/helpers/defineProperty.js?"); /***/ }), /***/ "./node_modules/@react-leaflet/core/esm/attribution.js": /*!*************************************************************!*\ !*** ./node_modules/@react-leaflet/core/esm/attribution.js ***! \*************************************************************/ /*! exports provided: useAttribution */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"useAttribution\", function() { return useAttribution; });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n\nfunction useAttribution(map, attribution) {\n var attributionRef = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useRef\"])(attribution);\n Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useEffect\"])(function updateAttribution() {\n if (attribution !== attributionRef.current && map.attributionControl != null) {\n if (attributionRef.current != null) {\n map.attributionControl.removeAttribution(attributionRef.current);\n }\n\n if (attribution != null) {\n map.attributionControl.addAttribution(attribution);\n }\n }\n\n attributionRef.current = attribution;\n }, [map, attribution]);\n}\n\n//# sourceURL=webpack://ReactLeafletGeosearch/./node_modules/@react-leaflet/core/esm/attribution.js?"); /***/ }), /***/ "./node_modules/@react-leaflet/core/esm/circle.js": /*!********************************************************!*\ !*** ./node_modules/@react-leaflet/core/esm/circle.js ***! \********************************************************/ /*! exports provided: updateCircle */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"updateCircle\", function() { return updateCircle; });\nfunction updateCircle(layer, props, prevProps) {\n if (props.center !== prevProps.center) {\n layer.setLatLng(props.center);\n }\n\n if (props.radius != null && props.radius !== prevProps.radius) {\n layer.setRadius(props.radius);\n }\n}\n\n//# sourceURL=webpack://ReactLeafletGeosearch/./node_modules/@react-leaflet/core/esm/circle.js?"); /***/ }), /***/ "./node_modules/@react-leaflet/core/esm/component.js": /*!***********************************************************!*\ !*** ./node_modules/@react-leaflet/core/esm/component.js ***! \***********************************************************/ /*! exports provided: createContainerComponent, createDivOverlayComponent, createLeafComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createContainerComponent\", function() { return createContainerComponent; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createDivOverlayComponent\", function() { return createDivOverlayComponent; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createLeafComponent\", function() { return createLeafComponent; });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ \"./node_modules/react-dom/index.js\");\n/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./context */ \"./node_modules/@react-leaflet/core/esm/context.js\");\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\n\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _iterableToArrayLimit(arr, i) { var _i = arr && (typeof Symbol !== \"undefined\" && arr[Symbol.iterator] || arr[\"@@iterator\"]); if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i[\"return\"] != null) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; }\n\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n\n\n\n\nfunction createContainerComponent(useElement) {\n function ContainerComponent(props, ref) {\n var _useElement$current = useElement(props).current,\n instance = _useElement$current.instance,\n context = _useElement$current.context;\n Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useImperativeHandle\"])(ref, function () {\n return instance;\n });\n return props.children == null ? null : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_context__WEBPACK_IMPORTED_MODULE_2__[\"LeafletProvider\"], {\n value: context\n }, props.children);\n }\n\n return /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__[\"forwardRef\"])(ContainerComponent);\n}\nfunction createDivOverlayComponent(useElement) {\n function OverlayComponent(props, ref) {\n var _useState = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useState\"])(false),\n _useState2 = _slicedToArray(_useState, 2),\n isOpen = _useState2[0],\n setOpen = _useState2[1];\n\n var instance = useElement(props, setOpen).current.instance;\n Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useImperativeHandle\"])(ref, function () {\n return instance;\n });\n Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useEffect\"])(function updateOverlay() {\n if (isOpen) {\n instance.update();\n }\n }, [instance, isOpen, props.children]); // @ts-ignore _contentNode missing in type definition\n\n var contentNode = instance._contentNode;\n return contentNode ? /*#__PURE__*/Object(react_dom__WEBPACK_IMPORTED_MODULE_1__[\"createPortal\"])(props.children, contentNode) : null;\n }\n\n return /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__[\"forwardRef\"])(OverlayComponent);\n}\nfunction createLeafComponent(useElement) {\n function LeafComponent(props, ref) {\n var instance = useElement(props).current.instance;\n Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useImperativeHandle\"])(ref, function () {\n return instance;\n });\n return null;\n }\n\n return /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__[\"forwardRef\"])(LeafComponent);\n}\n\n//# sourceURL=webpack://ReactLeafletGeosearch/./node_modules/@react-leaflet/core/esm/component.js?"); /***/ }), /***/ "./node_modules/@react-leaflet/core/esm/context.js": /*!*********************************************************!*\ !*** ./node_modules/@react-leaflet/core/esm/context.js ***! \*********************************************************/ /*! exports provided: CONTEXT_VERSION, LeafletContext, LeafletProvider, useLeafletContext */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"CONTEXT_VERSION\", function() { return CONTEXT_VERSION; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"LeafletContext\", function() { return LeafletContext; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"LeafletProvider\", function() { return LeafletProvider; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"useLeafletContext\", function() { return useLeafletContext; });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n\nvar CONTEXT_VERSION = 1;\nvar LeafletContext = /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__[\"createContext\"])(null);\nvar LeafletProvider = LeafletContext.Provider;\nfunction useLeafletContext() {\n var context = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useContext\"])(LeafletContext);\n\n if (context == null) {\n throw new Error('No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>');\n }\n\n return context;\n}\n\n//# sourceURL=webpack://ReactLeafletGeosearch/./node_modules/@react-leaflet/core/esm/context.js?"); /***/ }), /***/ "./node_modules/@react-leaflet/core/esm/control.js": /*!*********************************************************!*\ !*** ./node_modules/@react-leaflet/core/esm/control.js ***! \*********************************************************/ /*! exports provided: createControlHook */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createControlHook\", function() { return createControlHook; });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./context */ \"./node_modules/@react-leaflet/core/esm/context.js\");\n\n\nfunction createControlHook(useElement) {\n return function useLeafletControl(props) {\n var context = Object(_context__WEBPACK_IMPORTED_MODULE_1__[\"useLeafletContext\"])();\n var elementRef = useElement(props, context);\n var instance = elementRef.current.instance;\n var positionRef = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useRef\"])(props.position);\n var position = props.position;\n Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useEffect\"])(function addControl() {\n instance.addTo(context.map);\n return function removeControl() {\n instance.remove();\n };\n }, [context.map, instance]);\n Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useEffect\"])(function updateControl() {\n if (position != null && position !== positionRef.current) {\n instance.setPosition(position);\n positionRef.current = position;\n }\n }, [instance, position]);\n return elementRef;\n };\n}\n\n//# sourceURL=webpack://ReactLeafletGeosearch/./node_modules/@react-leaflet/core/esm/control.js?"); /***/ }), /***/ "./node_modules/@react-leaflet/core/esm/div-overlay.js": /*!*************************************************************!*\ !*** ./node_modules/@react-leaflet/core/esm/div-overlay.js ***! \*************************************************************/ /*! exports provided: createDivOverlayHook */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createDivOverlayHook\", function() { return createDivOverlayHook; });\n/* harmony import */ var _attribution__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./attribution */ \"./node_modules/@react-leaflet/core/esm/attribution.js\");\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./context */ \"./node_modules/@react-leaflet/core/esm/context.js\");\n/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./events */ \"./node_modules/@react-leaflet/core/esm/events.js\");\n/* harmony import */ var _pane__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./pane */ \"./node_modules/@react-leaflet/core/esm/pane.js\");\n\n\n\n\nfunction createDivOverlayHook(useElement, useLifecycle) {\n return function useDivOverlay(props, setOpen) {\n var context = Object(_context__WEBPACK_IMPORTED_MODULE_1__[\"useLeafletContext\"])();\n var elementRef = useElement(Object(_pane__WEBPACK_IMPORTED_MODULE_3__[\"withPane\"])(props, context), context);\n Object(_attribution__WEBPACK_IMPORTED_MODULE_0__[\"useAttribution\"])(context.map, props.attribution);\n Object(_events__WEBPACK_IMPORTED_MODULE_2__[\"useEventHandlers\"])(elementRef.current, props.eventHandlers);\n useLifecycle(elementRef.current, context, props, setOpen);\n return elementRef;\n };\n}\n\n//# sourceURL=webpack://ReactLeafletGeosearch/./node_modules/@react-leaflet/core/esm/div-overlay.js?"); /***/ }), /***/ "./node_modules/@react-leaflet/core/esm/dom.js": /*!*****************************************************!*\ !*** ./node_modules/@react-leaflet/core/esm/dom.js ***! \*****************************************************/ /*! exports provided: addClassName, removeClassName, updateClassName */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"addClassName\", function() { return addClassName; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"removeClassName\", function() { return removeClassName; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"updateClassName\", function() { return updateClassName; });\n/* harmony import */ var leaflet__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! leaflet */ \"./node_modules/leaflet/dist/leaflet-src.js\");\n/* harmony import */ var leaflet__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(leaflet__WEBPACK_IMPORTED_MODULE_0__);\n\n\nfunction splitClassName(className) {\n return className.split(' ').filter(Boolean);\n}\n\nfunction addClassName(element, className) {\n splitClassName(className).forEach(function (cls) {\n leaflet__WEBPACK_IMPORTED_MODULE_0__[\"DomUtil\"].addClass(element, cls);\n });\n}\nfunction removeClassName(element, className) {\n splitClassName(className).forEach(function (cls) {\n leaflet__WEBPACK_IMPORTED_MODULE_0__[\"DomUtil\"].removeClass(element, cls);\n });\n}\nfunction updateClassName(element, prevClassName, nextClassName) {\n if (element != null && nextClassName !== prevClassName) {\n if (prevClassName != null && prevClassName.length > 0) {\n removeClassName(element, prevClassName);\n }\n\n if (nextClassName != null && nextClassName.length > 0) {\n addClassName(element, nextClassName);\n }\n }\n}\n\n//# sourceURL=webpack://ReactLeafletGeosearch/./node_modules/@react-leaflet/core/esm/dom.js?"); /***/ }), /***/ "./node_modules/@react-leaflet/core/esm/element.js": /*!*********************************************************!*\ !*** ./node_modules/@react-leaflet/core/esm/element.js ***! \*********************************************************/ /*! exports provided: createElementHook */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createElementHook\", function() { return createElementHook; });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n\nfunction createElementHook(createElement, updateElement) {\n if (updateElement == null) {\n return function useImmutableLeafletElement(props, context) {\n return Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useRef\"])(createElement(props, context));\n };\n }\n\n return function useMutableLeafletElement(props, context) {\n var elementRef = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useRef\"])(createElement(props, context));\n var propsRef = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useRef\"])(props);\n var instance = elementRef.current.instance;\n Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useEffect\"])(function updateElementProps() {\n if (propsRef.current !== props) {\n updateElement(instance, props, propsRef.current);\n propsRef.current = props;\n }\n }, [instance, props, context]);\n return elementRef;\n };\n}\n\n//# sourceURL=webpack://ReactLeafletGeosearch/./node_modules/@react-leaflet/core/esm/element.js?"); /***/ }), /***/ "./node_modules/@react-leaflet/core/esm/events.js": /*!********************************************************!*\ !*** ./node_modules/@react-leaflet/core/esm/events.js ***! \********************************************************/ /*! exports provided: useEventHandlers */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"useEventHandlers\", function() { return useEventHandlers; });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n\nfunction useEventHandlers(element, eventHandlers) {\n var eventHandlersRef = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useRef\"])();\n Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useEffect\"])(function addEventHandlers() {\n if (eventHandlers != null) {\n element.instance.on(eventHandlers);\n }\n\n eventHandlersRef.current = eventHandlers;\n return function removeEventHandlers() {\n if (eventHandlersRef.current != null) {\n element.instance.off(eventHandlersRef.current);\n }\n\n eventHandlersRef.current = null;\n };\n }, [element, eventHandlers]);\n}\n\n//# sourceURL=webpack://ReactLeafletGeosearch/./node_modules/@react-leaflet/core/esm/events.js?"); /***/ }), /***/ "./node_modules/@react-leaflet/core/esm/generic.js": /*!*********************************************************!*\ !*** ./node_modules/@react-leaflet/core/esm/generic.js ***! \*********************************************************/ /*! exports provided: createControlComponent, createLayerComponent, createOverlayComponent, createPathComponent, createTileLayerComponent */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createControlComponent\", function() { return createControlComponent; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createLayerComponent\", function() { return createLayerComponent; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createOverlayComponent\", function() { return createOverlayComponent; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createPathComponent\", function() { return createPathComponent; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createTileLayerComponent\", function() { return createTileLayerComponent; });\n/* harmony import */ var _component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./component */ \"./node_modules/@react-leaflet/core/esm/component.js\");\n/* harmony import */ var _control__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./control */ \"./node_modules/@react-leaflet/core/esm/control.js\");\n/* harmony import */ var _element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./element */ \"./node_modules/@react-leaflet/core/esm/element.js\");\n/* harmony import */ var _layer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./layer */ \"./node_modules/@react-leaflet/core/esm/layer.js\");\n/* harmony import */ var _div_overlay__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./div-overlay */ \"./node_modules/@react-leaflet/core/esm/div-overlay.js\");\n/* harmony import */ var _path__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./path */ \"./node_modules/@react-leaflet/core/esm/path.js\");\n\n\n\n\n\n\nfunction createControlComponent(createInstance) {\n function createElement(props, context) {\n return {\n instance: createInstance(props),\n context: context\n };\n }\n\n var useElement = Object(_element__WEBPACK_IMPORTED_MODULE_2__[\"createElementHook\"])(createElement);\n var useControl = Object(_control__WEBPACK_IMPORTED_MODULE_1__[\"createControlHook\"])(useElement);\n return Object(_component__WEBPACK_IMPORTED_MODULE_0__[\"createLeafComponent\"])(useControl);\n}\nfunction createLayerComponent(createElement, updateElement) {\n var useElement = Object(_element__WEBPACK_IMPORTED_MODULE_2__[\"createElementHook\"])(createElement, updateElement);\n var useLayer = Object(_layer__WEBPACK_IMPORTED_MODULE_3__[\"createLayerHook\"])(useElement);\n return Object(_component__WEBPACK_IMPORTED_MODULE_0__[\"createContainerComponent\"])(useLayer);\n}\nfunction createOverlayComponent(createElement, useLifecycle) {\n var useElement = Object(_element__WEBPACK_IMPORTED_MODULE_2__[\"createElementHook\"])(createElement);\n var useOverlay = Object(_div_overlay__WEBPACK_IMPORTED_MODULE_4__[\"createDivOverlayHook\"])(useElement, useLifecycle);\n return Object(_component__WEBPACK_IMPORTED_MODULE_0__[\"createDivOverlayComponent\"])(useOverlay);\n}\nfunction createPathComponent(createElement, updateElement) {\n var useElement = Object(_element__WEBPACK_IMPORTED_MODULE_2__[\"createElementHook\"])(createElement, updateElement);\n var usePath = Object(_path__WEBPACK_IMPORTED_MODULE_5__[\"createPathHook\"])(useElement);\n return Object(_component__WEBPACK_IMPORTED_MODULE_0__[\"createContainerComponent\"])(usePath);\n}\nfunction createTileLayerComponent(createElement, updateElement) {\n var useElement = Object(_element__WEBPACK_IMPORTED_MODULE_2__[\"createElementHook\"])(createElement, updateElement);\n var useLayer = Object(_layer__WEBPACK_IMPORTED_MODULE_3__[\"createLayerHook\"])(useElement);\n return Object(_component__WEBPACK_IMPORTED_MODULE_0__[\"createLeafComponent\"])(useLayer);\n}\n\n//# sourceURL=webpack://ReactLeafletGeosearch/./node_modules/@react-leaflet/core/esm/generic.js?"); /***/ }), /***/ "./node_modules/@react-leaflet/core/esm/grid-layer.js": /*!************************************************************!*\ !*** ./node_modules/@react-leaflet/core/esm/grid-layer.js ***! \************************************************************/ /*! exports provided: updateGridLayer */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"updateGridLayer\", function() { return updateGridLayer; });\nfunction updateGridLayer(layer, props, prevProps) {\n var opacity = props.opacity,\n zIndex = props.zIndex;\n\n if (opacity != null && opacity !== prevProps.opacity) {\n layer.setOpacity(opacity);\n }\n\n if (zIndex != null && zIndex !== prevProps.zIndex) {\n layer.setZIndex(zIndex);\n }\n}\n\n//# sourceURL=webpack://ReactLeafletGeosearch/./node_modules/@react-leaflet/core/esm/grid-layer.js?"); /***/ }), /***/ "./node_modules/@react-leaflet/core/esm/index.js": /*!*******************************************************!*\ !*** ./node_modules/@react-leaflet/core/esm/index.js ***! \*******************************************************/ /*! exports provided: useAttribution, updateCircle, createContainerComponent, createDivOverlayComponent, createLeafComponent, CONTEXT_VERSION, LeafletContext, LeafletProvider, useLeafletContext, createControlHook, createDivOverlayHook, addClassName, removeClassName, updateClassName, createElementHook, useEventHandlers, createControlComponent, createLayerComponent, createOverlayComponent, createPathComponent, createTileLayerComponent, updateGridLayer, createLayerHook, useLayerLifecycle, updateMediaOverlay, withPane, createPathHook, usePathOptions */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _attribution__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./attribution */ \"./node_modules/@react-leaflet/core/esm/attribution.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"useAttribution\", function() { return _attribution__WEBPACK_IMPORTED_MODULE_0__[\"useAttribution\"]; });\n\n/* harmony import */ var _circle__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./circle */ \"./node_modules/@react-leaflet/core/esm/circle.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"updateCircle\", function() { return _circle__WEBPACK_IMPORTED_MODULE_1__[\"updateCircle\"]; });\n\n/* harmony import */ var _component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./component */ \"./node_modules/@react-leaflet/core/esm/component.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"createContainerComponent\", function() { return _component__WEBPACK_IMPORTED_MODULE_2__[\"createContainerComponent\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"createDivOverlayComponent\", function() { return _component__WEBPACK_IMPORTED_MODULE_2__[\"createDivOverlayComponent\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"createLeafComponent\", function() { return _component__WEBPACK_IMPORTED_MODULE_2__[\"createLeafComponent\"]; });\n\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./context */ \"./node_modules/@react-leaflet/core/esm/context.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"CONTEXT_VERSION\", function() { return _context__WEBPACK_IMPORTED_MODULE_3__[\"CONTEXT_VERSION\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"LeafletContext\", function() { return _context__WEBPACK_IMPORTED_MODULE_3__[\"LeafletContext\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"LeafletProvider\", function() { return _context__WEBPACK_IMPORTED_MODULE_3__[\"LeafletProvider\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"useLeafletContext\", function() { return _context__WEBPACK_IMPORTED_MODULE_3__[\"useLeafletContext\"]; });\n\n/* harmony import */ var _control__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./control */ \"./node_modules/@react-leaflet/core/esm/control.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"createControlHook\", function() { return _control__WEBPACK_IMPORTED_MODULE_4__[\"createControlHook\"]; });\n\n/* harmony import */ var _div_overlay__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./div-overlay */ \"./node_modules/@react-leaflet/core/esm/div-overlay.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"createDivOverlayHook\", function() { return _div_overlay__WEBPACK_IMPORTED_MODULE_5__[\"createDivOverlayHook\"]; });\n\n/* harmony import */ var _dom__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./dom */ \"./node_modules/@react-leaflet/core/esm/dom.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"addClassName\", function() { return _dom__WEBPACK_IMPORTED_MODULE_6__[\"addClassName\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"removeClassName\", function() { return _dom__WEBPACK_IMPORTED_MODULE_6__[\"removeClassName\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"updateClassName\", function() { return _dom__WEBPACK_IMPORTED_MODULE_6__[\"updateClassName\"]; });\n\n/* harmony import */ var _element__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./element */ \"./node_modules/@react-leaflet/core/esm/element.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"createElementHook\", function() { return _element__WEBPACK_IMPORTED_MODULE_7__[\"createElementHook\"]; });\n\n/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./events */ \"./node_modules/@react-leaflet/core/esm/events.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"useEventHandlers\", function() { return _events__WEBPACK_IMPORTED_MODULE_8__[\"useEventHandlers\"]; });\n\n/* harmony import */ var _generic__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./generic */ \"./node_modules/@react-leaflet/core/esm/generic.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"createControlComponent\", function() { return _generic__WEBPACK_IMPORTED_MODULE_9__[\"createControlComponent\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"createLayerComponent\", function() { return _generic__WEBPACK_IMPORTED_MODULE_9__[\"createLayerComponent\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"createOverlayComponent\", function() { return _generic__WEBPACK_IMPORTED_MODULE_9__[\"createOverlayComponent\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"createPathComponent\", function() { return _generic__WEBPACK_IMPORTED_MODULE_9__[\"createPathComponent\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"createTileLayerComponent\", function() { return _generic__WEBPACK_IMPORTED_MODULE_9__[\"createTileLayerComponent\"]; });\n\n/* harmony import */ var _grid_layer__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./grid-layer */ \"./node_modules/@react-leaflet/core/esm/grid-layer.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"updateGridLayer\", function() { return _grid_layer__WEBPACK_IMPORTED_MODULE_10__[\"updateGridLayer\"]; });\n\n/* harmony import */ var _layer__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./layer */ \"./node_modules/@react-leaflet/core/esm/layer.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"createLayerHook\", function() { return _layer__WEBPACK_IMPORTED_MODULE_11__[\"createLayerHook\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"useLayerLifecycle\", function() { return _layer__WEBPACK_IMPORTED_MODULE_11__[\"useLayerLifecycle\"]; });\n\n/* harmony import */ var _media_overlay__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./media-overlay */ \"./node_modules/@react-leaflet/core/esm/media-overlay.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"updateMediaOverlay\", function() { return _media_overlay__WEBPACK_IMPORTED_MODULE_12__[\"updateMediaOverlay\"]; });\n\n/* harmony import */ var _pane__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./pane */ \"./node_modules/@react-leaflet/core/esm/pane.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"withPane\", function() { return _pane__WEBPACK_IMPORTED_MODULE_13__[\"withPane\"]; });\n\n/* harmony import */ var _path__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./path */ \"./node_modules/@react-leaflet/core/esm/path.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"createPathHook\", function() { return _path__WEBPACK_IMPORTED_MODULE_14__[\"createPathHook\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"usePathOptions\", function() { return _path__WEBPACK_IMPORTED_MODULE_14__[\"usePathOptions\"]; });\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n//# sourceURL=webpack://ReactLeafletGeosearch/./node_modules/@react-leaflet/core/esm/index.js?"); /***/ }), /***/ "./node_modules/@react-leaflet/core/esm/layer.js": /*!*******************************************************!*\ !*** ./node_modules/@react-leaflet/core/esm/layer.js ***! \*******************************************************/ /*! exports provided: useLayerLifecycle, createLayerHook */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"useLayerLifecycle\", function() { return useLayerLifecycle; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createLayerHook\", function() { return createLayerHook; });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _attribution__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./attribution */ \"./node_modules/@react-leaflet/core/esm/attribution.js\");\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./context */ \"./node_modules/@react-leaflet/core/esm/context.js\");\n/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./events */ \"./node_modules/@react-leaflet/core/esm/events.js\");\n/* harmony import */ var _pane__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pane */ \"./node_modules/@react-leaflet/core/esm/pane.js\");\n\n\n\n\n\nfunction useLayerLifecycle(element, context) {\n Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useEffect\"])(function addLayer() {\n var _context$layerContain;\n\n var container = (_context$layerContain = context.layerContainer) !== null && _context$layerContain !== void 0 ? _context$layerContain : context.map;\n container.addLayer(element.instance);\n return function removeLayer() {\n var _context$layersContro;\n\n (_context$layersContro = context.layersControl) == null ? void 0 : _context$layersContro.removeLayer(element.instance);\n context.map.removeLayer(element.instance);\n };\n }, [context, element]);\n}\nfunction createLayerHook(useElement) {\n return function useLayer(props) {\n var context = Object(_context__WEBPACK_IMPORTED_MODULE_2__[\"useLeafletContext\"])();\n var elementRef = useElement(Object(_pane__WEBPACK_IMPORTED_MODULE_4__[\"withPane\"])(props, context), context);\n Object(_attribution__WEBPACK_IMPORTED_MODULE_1__[\"useAttribution\"])(context.map, props.attribution);\n Object(_events__WEBPACK_IMPORTED_MODULE_3__[\"useEventHandlers\"])(elementRef.current, props.eventHandlers);\n useLayerLifecycle(elementRef.current, context);\n return elementRef;\n };\n}\n\n//# sourceURL=webpack://ReactLeafletGeosearch/./node_modules/@react-leaflet/core/esm/layer.js?"); /***/ }), /***/ "./node_modules/@react-leaflet/core/esm/media-overlay.js": /*!***************************************************************!*\ !*** ./node_modules/@react-leaflet/core/esm/media-overlay.js ***! \***************************************************************/ /*! exports provided: updateMediaOverlay */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"updateMediaOverlay\", function() { return updateMediaOverlay; });\n/* harmony import */ var leaflet__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! leaflet */ \"./node_modules/leaflet/dist/leaflet-src.js\");\n/* harmony import */ var leaflet__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(leaflet__WEBPACK_IMPORTED_MODULE_0__);\n\nfunction updateMediaOverlay(overlay, props, prevProps) {\n if (props.bounds instanceof leaflet__WEBPACK_IMPORTED_MODULE_0__[\"LatLngBounds\"] && props.bounds !== prevProps.bounds) {\n overlay.setBounds(props.bounds);\n }\n\n if (props.opacity != null && props.opacity !== prevProps.opacity) {\n overlay.setOpacity(props.opacity);\n }\n\n if (props.zIndex != null && props.zIndex !== prevProps.zIndex) {\n // @ts-ignore missing in definition but inherited from ImageOverlay\n overlay.setZIndex(props.zIndex);\n }\n}\n\n//# sourceURL=webpack://ReactLeafletGeosearch/./node_modules/@react-leaflet/core/esm/media-overlay.js?"); /***/ }), /***/ "./node_modules/@react-leaflet/core/esm/pane.js": /*!******************************************************!*\ !*** ./node_modules/@react-leaflet/core/esm/pane.js ***! \******************************************************/ /*! exports provided: withPane */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"withPane\", function() { return withPane; });\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction withPane(props, context) {\n var _props$pane;\n\n var pane = (_props$pane = props.pane) !== null && _props$pane !== void 0 ? _props$pane : context.pane;\n return pane ? _objectSpread(_objectSpread({}, props), {}, {\n pane: pane\n }) : props;\n}\n\n//# sourceURL=webpack://ReactLeafletGeosearch/./node_modules/@react-leaflet/core/esm/pane.js?"); /***/ }), /***/ "./node_modules/@react-leaflet/core/esm/path.js": /*!******************************************************!*\ !*** ./node_modules/@react-leaflet/core/esm/path.js ***! \******************************************************/ /*! exports provided: usePathOptions, createPathHook */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"usePathOptions\", function() { return usePathOptions; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"createPathHook\", function() { return createPathHook; });\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./context */ \"./node_modules/@react-leaflet/core/esm/context.js\");\n/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./events */ \"./node_modules/@react-leaflet/core/esm/events.js\");\n/* harmony import */ var _layer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./layer */ \"./node_modules/@react-leaflet/core/esm/layer.js\");\n/* harmony import */ var _pane__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./pane */ \"./node_modules/@react-leaflet/core/esm/pane.js\");\n\n\n\n\n\nfunction usePathOptions(element, props) {\n var optionsRef = Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useRef\"])();\n Object(react__WEBPACK_IMPORTED_MODULE_0__[\"useEffect\"])(function updatePathOptions() {\n if (props.pathOptions !== optionsRef.current) {\n var _props$pathOptions;\n\n var options = (_props$pathOptions = props.pathOptions) !== null && _props$pathOptions !== void 0 ? _props$pathOptions : {};\n element.instance.setStyle(options);\n optionsRef.current = options;\n }\n }, [element, props]);\n}\nfunction createPathHook(useElement) {\n return function usePath(props) {\n var context = Object(_context__WEBPACK_IMPORTED_MODULE_1__[\"useLeafletContext\"])();\n var elementRef = useElement(Object(_pane__WEBPACK_IMPORTED_MODULE_4__[\"withPane\"])(props, context), context);\n Object(_events__WEBPACK_IMPORTED_MODULE_2__[\"useEventHandlers\"])(elementRef.current, props.eventHandlers);\n Object(_layer__WEBPACK_IMPORTED_MODULE_3__[\"useLayerLifecycle\"])(elementRef.current, context);\n usePathOptions(elementRef.current, props);\n return elementRef;\n };\n}\n\n//# sourceURL=webpack://ReactLeafletGeosearch/./node_modules/@react-leaflet/core/esm/path.js?"); /***/ }), /***/ "./node_modules/leaflet-geosearch/lib/constants.js": /*!*********************************************************!*\ !*** ./node_modules/leaflet-geosearch/lib/constants.js ***! \*********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nvar ENTER_KEY = exports.ENTER_KEY = 13;\nvar ESCAPE_KEY = exports.ESCAPE_KEY = 27;\nvar ARROW_DOWN_KEY = exports.ARROW_DOWN_KEY = 40;\nvar ARROW_UP_KEY = exports.ARROW_UP_KEY = 38;\nvar ARROW_LEFT_KEY = exports.ARROW_LEFT_KEY = 37;\nvar ARROW_RIGHT_KEY = exports.ARROW_RIGHT_KEY = 39;\nvar SPECIAL_KEYS = exports.SPECIAL_KEYS = [ENTER_KEY, ESCAPE_KEY, ARROW_DOWN_KEY, ARROW_UP_KEY, ARROW_LEFT_KEY, ARROW_RIGHT_KEY];\n\n//# sourceURL=webpack://ReactLeafletGeosearch/./node_modules/leaflet-geosearch/lib/constants.js?"); /***/ }), /***/ "./node_modules/leaflet-geosearch/lib/domUtils.js": /*!********************************************************!*\ !*** ./node_modules/leaflet-geosearch/lib/domUtils.js ***! \********************************************************/ /*! no static exports found */ /***/ (function(module, exports, __webpack_require__) { "use strict"; eval("\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n/* eslint-disable import/prefer-default-export */\n\nvar createElement = exports.createElement = function createElement(element) {\n var classNames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n var parent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n var el = document.createElement(element);\n el.className = classNames;\n\n if (parent) {\n parent.appendChild(el);\n }\n\n return el;\n};\n\nvar createScriptElement = exports.createScriptElement = function createScriptElement(url, cb) {\n var script = createElement('script', null, document.body);\n script.setAttribute('type', 'text/javascript');\n return new Promise(function (resolve) {\n window[cb] = function (json) {\n script.remove();\n delete window[cb];\n resolve(json);\n };\n\n script.setAttribute('src', url);\n });\n};\n\nvar addClassName =