\n\n\n\n\n\n","import mod from \"-!../../../babel-loader/lib/index.js!../../../vue-loader/lib/index.js??vue-loader-options!./streetViewPanorama.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../babel-loader/lib/index.js!../../../vue-loader/lib/index.js??vue-loader-options!./streetViewPanorama.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./streetViewPanorama.vue?vue&type=template&id=50f7f8d6\"\nimport script from \"./streetViewPanorama.vue?vue&type=script&lang=js\"\nexport * from \"./streetViewPanorama.vue?vue&type=script&lang=js\"\nimport style0 from \"./streetViewPanorama.vue?vue&type=style&index=0&id=50f7f8d6&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","'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 _bindEvents = require('../utils/bindEvents.js');\n\nvar _bindEvents2 = _interopRequireDefault(_bindEvents);\n\nvar _bindProps = require('../utils/bindProps.js');\n\nvar _mountableMixin = require('../utils/mountableMixin.js');\n\nvar _mountableMixin2 = _interopRequireDefault(_mountableMixin);\n\nvar _TwoWayBindingWrapper = require('../utils/TwoWayBindingWrapper.js');\n\nvar _TwoWayBindingWrapper2 = _interopRequireDefault(_TwoWayBindingWrapper);\n\nvar _WatchPrimitiveProperties = require('../utils/WatchPrimitiveProperties.js');\n\nvar _WatchPrimitiveProperties2 = _interopRequireDefault(_WatchPrimitiveProperties);\n\nvar _mapElementFactory = require('./mapElementFactory.js');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar props = {\n center: {\n required: true,\n twoWay: true,\n type: Object,\n noBind: true\n },\n zoom: {\n required: false,\n twoWay: true,\n type: Number,\n noBind: true\n },\n heading: {\n type: Number,\n twoWay: true\n },\n mapTypeId: {\n twoWay: true,\n type: String\n },\n tilt: {\n twoWay: true,\n type: Number\n },\n options: {\n type: Object,\n default: function _default() {\n return {};\n }\n }\n};\n\nvar events = ['bounds_changed', 'click', 'dblclick', 'drag', 'dragend', 'dragstart', 'idle', 'mousemove', 'mouseout', 'mouseover', 'resize', 'rightclick', 'tilesloaded'];\n\n// Plain Google Maps methods exposed here for convenience\nvar linkedMethods = ['panBy', 'panTo', 'panToBounds', 'fitBounds'].reduce(function (all, methodName) {\n all[methodName] = function () {\n if (this.$mapObject) {\n this.$mapObject[methodName].apply(this.$mapObject, arguments);\n }\n };\n return all;\n}, {});\n\n// Other convenience methods exposed by Vue Google Maps\nvar customMethods = {\n resize: function resize() {\n if (this.$mapObject) {\n google.maps.event.trigger(this.$mapObject, 'resize');\n }\n },\n resizePreserveCenter: function resizePreserveCenter() {\n if (!this.$mapObject) {\n return;\n }\n\n var oldCenter = this.$mapObject.getCenter();\n google.maps.event.trigger(this.$mapObject, 'resize');\n this.$mapObject.setCenter(oldCenter);\n },\n\n\n /// Override mountableMixin::_resizeCallback\n /// because resizePreserveCenter is usually the\n /// expected behaviour\n _resizeCallback: function _resizeCallback() {\n this.resizePreserveCenter();\n }\n};\n\nexports.default = {\n mixins: [_mountableMixin2.default],\n props: (0, _mapElementFactory.mappedPropsToVueProps)(props),\n\n provide: function provide() {\n var _this = this;\n\n this.$mapPromise = new Promise(function (resolve, reject) {\n _this.$mapPromiseDeferred = { resolve: resolve, reject: reject };\n });\n return {\n '$mapPromise': this.$mapPromise\n };\n },\n\n\n computed: {\n finalLat: function finalLat() {\n return this.center && typeof this.center.lat === 'function' ? this.center.lat() : this.center.lat;\n },\n finalLng: function finalLng() {\n return this.center && typeof this.center.lng === 'function' ? this.center.lng() : this.center.lng;\n },\n finalLatLng: function finalLatLng() {\n return { lat: this.finalLat, lng: this.finalLng };\n }\n },\n\n watch: {\n zoom: function zoom(_zoom) {\n if (this.$mapObject) {\n this.$mapObject.setZoom(_zoom);\n }\n }\n },\n\n mounted: function mounted() {\n var _this2 = this;\n\n return this.$gmapApiPromiseLazy().then(function () {\n // getting the DOM element where to create the map\n var element = _this2.$refs['vue-map'];\n\n // creating the map\n var options = _extends({}, _this2.options, (0, _bindProps.getPropsValues)(_this2, props));\n delete options.options;\n _this2.$mapObject = new google.maps.Map(element, options);\n\n // binding properties (two and one way)\n (0, _bindProps.bindProps)(_this2, _this2.$mapObject, props);\n // binding events\n (0, _bindEvents2.default)(_this2, _this2.$mapObject, events);\n\n // manually trigger center and zoom\n (0, _TwoWayBindingWrapper2.default)(function (increment, decrement, shouldUpdate) {\n _this2.$mapObject.addListener('center_changed', function () {\n if (shouldUpdate()) {\n _this2.$emit('center_changed', _this2.$mapObject.getCenter());\n }\n decrement();\n });\n\n (0, _WatchPrimitiveProperties2.default)(_this2, ['finalLat', 'finalLng'], function updateCenter() {\n increment();\n _this2.$mapObject.setCenter(_this2.finalLatLng);\n });\n });\n _this2.$mapObject.addListener('zoom_changed', function () {\n _this2.$emit('zoom_changed', _this2.$mapObject.getZoom());\n });\n _this2.$mapObject.addListener('bounds_changed', function () {\n _this2.$emit('bounds_changed', _this2.$mapObject.getBounds());\n });\n\n _this2.$mapPromiseDeferred.resolve(_this2.$mapObject);\n\n return _this2.$mapObject;\n }).catch(function (error) {\n throw error;\n });\n },\n\n methods: _extends({}, customMethods, linkedMethods)\n};","export * from \"-!../../../vue-style-loader/index.js!../../../css-loader/dist/cjs.js!../../../vue-loader/lib/loaders/stylePostLoader.js!../../../vue-loader/lib/index.js??vue-loader-options!./streetViewPanorama.vue?vue&type=style&index=0&id=50f7f8d6&prod&lang=css\"","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _mapElementFactory = require('./mapElementFactory.js');\n\nvar _mapElementFactory2 = _interopRequireDefault(_mapElementFactory);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar props = {\n bounds: {\n type: Object,\n twoWay: true\n },\n draggable: {\n type: Boolean,\n default: false\n },\n editable: {\n type: Boolean,\n default: false\n },\n options: {\n type: Object,\n twoWay: false\n }\n};\n\nvar events = ['click', 'dblclick', 'drag', 'dragend', 'dragstart', 'mousedown', 'mousemove', 'mouseout', 'mouseover', 'mouseup', 'rightclick'];\n\nexports.default = (0, _mapElementFactory2.default)({\n mappedProps: props,\n name: 'rectangle',\n ctr: function ctr() {\n return google.maps.Rectangle;\n },\n events: events\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\n// This piece of code was orignally written by sindresorhus and can be seen here\n// https://github.com/sindresorhus/lazy-value/blob/master/index.js\n\nexports.default = function (fn) {\n var called = false;\n var ret = void 0;\n\n return function () {\n if (!called) {\n called = true;\n ret = fn();\n }\n\n return ret;\n };\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_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\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\n\nvar _mapElementFactory = require('./mapElementFactory.js');\n\nvar _mapElementFactory2 = _interopRequireDefault(_mapElementFactory);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar props = {\n draggable: {\n type: Boolean\n },\n editable: {\n type: Boolean\n },\n options: {\n type: Object\n },\n path: {\n type: Array,\n twoWay: true,\n noBind: true\n },\n paths: {\n type: Array,\n twoWay: true,\n noBind: true\n }\n};\n\nvar events = ['click', 'dblclick', 'drag', 'dragend', 'dragstart', 'mousedown', 'mousemove', 'mouseout', 'mouseover', 'mouseup', 'rightclick'];\n\nexports.default = (0, _mapElementFactory2.default)({\n props: {\n deepWatch: {\n type: Boolean,\n default: false\n }\n },\n events: events,\n mappedProps: props,\n name: 'polygon',\n ctr: function ctr() {\n return google.maps.Polygon;\n },\n\n beforeCreate: function beforeCreate(options) {\n if (!options.path) delete options.path;\n if (!options.paths) delete options.paths;\n },\n afterCreate: function afterCreate(inst) {\n var _this = this;\n\n var clearEvents = function () {};\n\n // Watch paths, on our own, because we do not want to set either when it is\n // empty\n this.$watch('paths', function (paths) {\n if (paths) {\n clearEvents();\n\n inst.setPaths(paths);\n\n var updatePaths = function () {\n _this.$emit('paths_changed', inst.getPaths());\n };\n var eventListeners = [];\n\n var mvcArray = inst.getPaths();\n for (var i = 0; i < mvcArray.getLength(); i++) {\n var mvcPath = mvcArray.getAt(i);\n eventListeners.push([mvcPath, mvcPath.addListener('insert_at', updatePaths)]);\n eventListeners.push([mvcPath, mvcPath.addListener('remove_at', updatePaths)]);\n eventListeners.push([mvcPath, mvcPath.addListener('set_at', updatePaths)]);\n }\n eventListeners.push([mvcArray, mvcArray.addListener('insert_at', updatePaths)]);\n eventListeners.push([mvcArray, mvcArray.addListener('remove_at', updatePaths)]);\n eventListeners.push([mvcArray, mvcArray.addListener('set_at', updatePaths)]);\n\n clearEvents = function () {\n eventListeners.map(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n obj = _ref2[0],\n listenerHandle = _ref2[1];\n\n return (// eslint-disable-line no-unused-vars\n google.maps.event.removeListener(listenerHandle)\n );\n });\n };\n }\n }, {\n deep: this.deepWatch,\n immediate: true\n });\n\n this.$watch('path', function (path) {\n if (path) {\n clearEvents();\n\n inst.setPaths(path);\n\n var mvcPath = inst.getPath();\n var eventListeners = [];\n\n var updatePaths = function () {\n _this.$emit('path_changed', inst.getPath());\n };\n\n eventListeners.push([mvcPath, mvcPath.addListener('insert_at', updatePaths)]);\n eventListeners.push([mvcPath, mvcPath.addListener('remove_at', updatePaths)]);\n eventListeners.push([mvcPath, mvcPath.addListener('set_at', updatePaths)]);\n\n clearEvents = function () {\n eventListeners.map(function (_ref3) {\n var _ref4 = _slicedToArray(_ref3, 2),\n obj = _ref4[0],\n listenerHandle = _ref4[1];\n\n return (// eslint-disable-line no-unused-vars\n google.maps.event.removeListener(listenerHandle)\n );\n });\n };\n }\n }, {\n deep: this.deepWatch,\n immediate: true\n });\n }\n});","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = WatchPrimitiveProperties;\n/**\r\n * Watch the individual properties of a PoD object, instead of the object\r\n * per se. This is different from a deep watch where both the reference\r\n * and the individual values are watched.\r\n *\r\n * In effect, it throttles the multiple $watch to execute at most once per tick.\r\n */\nfunction WatchPrimitiveProperties(vueInst, propertiesToTrack, handler) {\n var immediate = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n\n var isHandled = false;\n\n function requestHandle() {\n if (!isHandled) {\n isHandled = true;\n vueInst.$nextTick(function () {\n isHandled = false;\n handler();\n });\n }\n }\n\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = propertiesToTrack[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var prop = _step.value;\n\n vueInst.$watch(prop, requestHandle, { immediate: immediate });\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\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 _bindEvents = require('../utils/bindEvents.js');\n\nvar _bindEvents2 = _interopRequireDefault(_bindEvents);\n\nvar _bindProps = require('../utils/bindProps.js');\n\nvar _mountableMixin = require('../utils/mountableMixin.js');\n\nvar _mountableMixin2 = _interopRequireDefault(_mountableMixin);\n\nvar _TwoWayBindingWrapper = require('../utils/TwoWayBindingWrapper.js');\n\nvar _TwoWayBindingWrapper2 = _interopRequireDefault(_TwoWayBindingWrapper);\n\nvar _WatchPrimitiveProperties = require('../utils/WatchPrimitiveProperties.js');\n\nvar _WatchPrimitiveProperties2 = _interopRequireDefault(_WatchPrimitiveProperties);\n\nvar _mapElementFactory = require('./mapElementFactory.js');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar props = {\n zoom: {\n twoWay: true,\n type: Number\n },\n pov: {\n twoWay: true,\n type: Object,\n trackProperties: ['pitch', 'heading']\n },\n position: {\n twoWay: true,\n type: Object,\n noBind: true\n },\n pano: {\n twoWay: true,\n type: String\n },\n motionTracking: {\n twoWay: false,\n type: Boolean\n },\n visible: {\n twoWay: true,\n type: Boolean,\n default: true\n },\n options: {\n twoWay: false,\n type: Object,\n default: function _default() {\n return {};\n }\n }\n};\n\nvar events = ['closeclick', 'status_changed'];\n\nexports.default = {\n mixins: [_mountableMixin2.default],\n props: (0, _mapElementFactory.mappedPropsToVueProps)(props),\n replace: false, // necessary for css styles\n methods: {\n resize: function resize() {\n if (this.$panoObject) {\n google.maps.event.trigger(this.$panoObject, 'resize');\n }\n }\n },\n\n provide: function provide() {\n var _this = this;\n\n var promise = new Promise(function (resolve, reject) {\n _this.$panoPromiseDeferred = { resolve: resolve, reject: reject };\n });\n return {\n '$panoPromise': promise,\n '$mapPromise': promise // so that we can use it with markers\n };\n },\n\n\n computed: {\n finalLat: function finalLat() {\n return this.position && typeof this.position.lat === 'function' ? this.position.lat() : this.position.lat;\n },\n finalLng: function finalLng() {\n return this.position && typeof this.position.lng === 'function' ? this.position.lng() : this.position.lng;\n },\n finalLatLng: function finalLatLng() {\n return {\n lat: this.finalLat,\n lng: this.finalLng\n };\n }\n },\n\n watch: {\n zoom: function zoom(_zoom) {\n if (this.$panoObject) {\n this.$panoObject.setZoom(_zoom);\n }\n }\n },\n\n mounted: function mounted() {\n var _this2 = this;\n\n return this.$gmapApiPromiseLazy().then(function () {\n // getting the DOM element where to create the map\n var element = _this2.$refs['vue-street-view-pano'];\n\n // creating the map\n var options = _extends({}, _this2.options, (0, _bindProps.getPropsValues)(_this2, props));\n delete options.options;\n\n _this2.$panoObject = new google.maps.StreetViewPanorama(element, options);\n\n // binding properties (two and one way)\n (0, _bindProps.bindProps)(_this2, _this2.$panoObject, props);\n // binding events\n (0, _bindEvents2.default)(_this2, _this2.$panoObject, events);\n\n // manually trigger position\n (0, _TwoWayBindingWrapper2.default)(function (increment, decrement, shouldUpdate) {\n // Panos take a while to load\n increment();\n\n _this2.$panoObject.addListener('position_changed', function () {\n if (shouldUpdate()) {\n _this2.$emit('position_changed', _this2.$panoObject.getPosition());\n }\n decrement();\n });\n\n (0, _WatchPrimitiveProperties2.default)(_this2, ['finalLat', 'finalLng'], function updateCenter() {\n increment();\n _this2.$panoObject.setPosition(_this2.finalLatLng);\n });\n });\n\n _this2.$panoPromiseDeferred.resolve(_this2.$panoObject);\n\n return _this2.$panoPromise;\n }).catch(function (error) {\n throw error;\n });\n }\n};","export * from \"-!../../../vue-style-loader/index.js!../../../css-loader/dist/cjs.js!../../../vue-loader/lib/loaders/stylePostLoader.js!../../../vue-loader/lib/index.js??vue-loader-options!./map.vue?vue&type=style&index=0&id=6839df3e&prod&lang=css\"","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\n// This piece of code was orignally written by amirnissim and can be seen here\n// http://stackoverflow.com/a/11703018/2694653\n// This has been ported to Vanilla.js by GuillaumeLeclerc\nexports.default = function (input) {\n var _addEventListener = input.addEventListener ? input.addEventListener : input.attachEvent;\n\n function addEventListenerWrapper(type, listener) {\n // Simulate a 'down arrow' keypress on hitting 'return' when no pac suggestion is selected,\n // and then trigger the original listener.\n if (type === 'keydown') {\n var origListener = listener;\n listener = function (event) {\n var suggestionSelected = document.getElementsByClassName('pac-item-selected').length > 0;\n if (event.which === 13 && !suggestionSelected) {\n var simulatedEvent = document.createEvent('Event');\n simulatedEvent.keyCode = 40;\n simulatedEvent.which = 40;\n origListener.apply(input, [simulatedEvent]);\n }\n origListener.apply(input, [event]);\n };\n }\n _addEventListener.apply(input, [type, listener]);\n }\n\n input.addEventListener = addEventListenerWrapper;\n input.attachEvent = addEventListenerWrapper;\n};","import mod from \"-!../../../babel-loader/lib/index.js!./placeInputImpl.js?vue&type=script&lang=js&external\"; export default mod; export * from \"-!../../../babel-loader/lib/index.js!./placeInputImpl.js?vue&type=script&lang=js&external\"","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getPropsValues = getPropsValues;\nexports.bindProps = bindProps;\n\nvar _WatchPrimitiveProperties = require('../utils/WatchPrimitiveProperties');\n\nvar _WatchPrimitiveProperties2 = _interopRequireDefault(_WatchPrimitiveProperties);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction capitalizeFirstLetter(string) {\n return string.charAt(0).toUpperCase() + string.slice(1);\n}\n\nfunction getPropsValues(vueInst, props) {\n return Object.keys(props).reduce(function (acc, prop) {\n if (vueInst[prop] !== undefined) {\n acc[prop] = vueInst[prop];\n }\n return acc;\n }, {});\n}\n\n/**\n * Binds the properties defined in props to the google maps instance.\n * If the prop is an Object type, and we wish to track the properties\n * of the object (e.g. the lat and lng of a LatLng), then we do a deep\n * watch. For deep watch, we also prevent the _changed event from being\n * emitted if the data source was external.\n */\nfunction bindProps(vueInst, googleMapsInst, props) {\n var _loop = function (attribute) {\n var _props$attribute = props[attribute],\n twoWay = _props$attribute.twoWay,\n type = _props$attribute.type,\n trackProperties = _props$attribute.trackProperties,\n noBind = _props$attribute.noBind;\n\n\n if (noBind) return 'continue';\n\n var setMethodName = 'set' + capitalizeFirstLetter(attribute);\n var getMethodName = 'get' + capitalizeFirstLetter(attribute);\n var eventName = attribute.toLowerCase() + '_changed';\n var initialValue = vueInst[attribute];\n\n if (typeof googleMapsInst[setMethodName] === 'undefined') {\n throw new Error(setMethodName + ' is not a method of (the Maps object corresponding to) ' + vueInst.$options._componentTag);\n }\n\n // We need to avoid an endless\n // propChanged -> event emitted -> propChanged -> event emitted loop\n // although this may really be the user's responsibility\n if (type !== Object || !trackProperties) {\n // Track the object deeply\n vueInst.$watch(attribute, function () {\n var attributeValue = vueInst[attribute];\n\n googleMapsInst[setMethodName](attributeValue);\n }, {\n immediate: typeof initialValue !== 'undefined',\n deep: type === Object\n });\n } else {\n (0, _WatchPrimitiveProperties2.default)(vueInst, trackProperties.map(function (prop) {\n return attribute + '.' + prop;\n }), function () {\n googleMapsInst[setMethodName](vueInst[attribute]);\n }, vueInst[attribute] !== undefined);\n }\n\n if (twoWay && (vueInst.$gmapOptions.autobindAllEvents || vueInst.$listeners[eventName])) {\n googleMapsInst.addListener(eventName, function () {\n // eslint-disable-line no-unused-vars\n vueInst.$emit(eventName, googleMapsInst[getMethodName]());\n });\n }\n };\n\n for (var attribute in props) {\n var _ret = _loop(attribute);\n\n if (_ret === 'continue') continue;\n }\n}","var render = function render() {\n var _vm = this,\n _c = _vm._self._c,\n _setup = _vm._self._setupProxy\n return _c(\"label\", [\n _c(\"span\", { domProps: { textContent: _vm._s(_vm.label) } }),\n _vm._v(\" \"),\n _c(\"input\", {\n ref: \"input\",\n class: _vm.className,\n attrs: { type: \"text\", placeholder: _vm.placeholder },\n }),\n ])\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _mapElementFactory = require('./mapElementFactory.js');\n\nvar _mapElementFactory2 = _interopRequireDefault(_mapElementFactory);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar props = {\n options: {\n type: Object,\n required: false,\n default: function _default() {\n return {};\n }\n },\n position: {\n type: Object,\n twoWay: true\n },\n zIndex: {\n type: Number,\n twoWay: true\n }\n};\n\nvar events = ['domready', 'closeclick', 'content_changed'];\n\nexports.default = (0, _mapElementFactory2.default)({\n mappedProps: props,\n events: events,\n name: 'infoWindow',\n ctr: function ctr() {\n return google.maps.InfoWindow;\n },\n props: {\n opened: {\n type: Boolean,\n default: true\n }\n },\n\n inject: {\n '$markerPromise': {\n default: null\n }\n },\n\n mounted: function mounted() {\n var el = this.$refs.flyaway;\n el.parentNode.removeChild(el);\n },\n beforeCreate: function beforeCreate(options) {\n var _this = this;\n\n options.content = this.$refs.flyaway;\n\n if (this.$markerPromise) {\n delete options.position;\n return this.$markerPromise.then(function (mo) {\n _this.$markerObject = mo;\n return mo;\n });\n }\n },\n\n\n methods: {\n _openInfoWindow: function _openInfoWindow() {\n if (this.opened) {\n if (this.$markerObject !== null) {\n this.$infoWindowObject.open(this.$map, this.$markerObject);\n } else {\n this.$infoWindowObject.open(this.$map);\n }\n } else {\n this.$infoWindowObject.close();\n }\n }\n },\n\n afterCreate: function afterCreate() {\n var _this2 = this;\n\n this._openInfoWindow();\n this.$watch('opened', function () {\n _this2._openInfoWindow();\n });\n }\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 _bindProps = require('../utils/bindProps.js');\n\nvar _simulateArrowDown = require('../utils/simulateArrowDown.js');\n\nvar _simulateArrowDown2 = _interopRequireDefault(_simulateArrowDown);\n\nvar _mapElementFactory = require('./mapElementFactory');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar mappedProps = {\n bounds: {\n type: Object\n },\n componentRestrictions: {\n type: Object,\n // Do not bind -- must check for undefined\n // in the property\n noBind: true\n },\n types: {\n type: Array,\n default: function _default() {\n return [];\n }\n }\n};\n\nvar props = {\n selectFirstOnEnter: {\n required: false,\n type: Boolean,\n default: false\n },\n options: {\n type: Object\n }\n};\n\nexports.default = {\n mounted: function mounted() {\n var _this = this;\n\n this.$gmapApiPromiseLazy().then(function () {\n if (_this.selectFirstOnEnter) {\n (0, _simulateArrowDown2.default)(_this.$refs.input);\n }\n\n if (typeof google.maps.places.Autocomplete !== 'function') {\n throw new Error('google.maps.places.Autocomplete is undefined. Did you add \\'places\\' to libraries when loading Google Maps?');\n }\n\n /* eslint-disable no-unused-vars */\n var finalOptions = _extends({}, (0, _bindProps.getPropsValues)(_this, mappedProps), _this.options);\n\n _this.$autocomplete = new google.maps.places.Autocomplete(_this.$refs.input, finalOptions);\n (0, _bindProps.bindProps)(_this, _this.$autocomplete, mappedProps);\n\n _this.$watch('componentRestrictions', function (v) {\n if (v !== undefined) {\n _this.$autocomplete.setComponentRestrictions(v);\n }\n });\n\n // Not using `bindEvents` because we also want\n // to return the result of `getPlace()`\n _this.$autocomplete.addListener('place_changed', function () {\n _this.$emit('place_changed', _this.$autocomplete.getPlace());\n });\n });\n },\n\n props: _extends({}, (0, _mapElementFactory.mappedPropsToVueProps)(mappedProps), props)\n};","var render = function render() {\n var _vm = this,\n _c = _vm._self._c,\n _setup = _vm._self._setupProxy\n return _c(\"div\", [_c(\"div\", { ref: \"flyaway\" }, [_vm._t(\"default\")], 2)])\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","/* vim: set softtabstop=2 shiftwidth=2 expandtab : */\n\n\n
\n
\n \n \n
\n
\n\n\n\n","import mod from \"-!../../../babel-loader/lib/index.js!../../../vue-loader/lib/index.js??vue-loader-options!./infoWindow.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../babel-loader/lib/index.js!../../../vue-loader/lib/index.js??vue-loader-options!./infoWindow.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./infoWindow.vue?vue&type=template&id=25e3f758\"\nimport script from \"./infoWindow.vue?vue&type=script&lang=js\"\nexport * from \"./infoWindow.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = TwoWayBindingWrapper;\n/**\r\n * When you have two-way bindings, but the actual bound value will not equal\r\n * the value you initially passed in, then to avoid an infinite loop you\r\n * need to increment a counter every time you pass in a value, decrement the\r\n * same counter every time the bound value changed, but only bubble up\r\n * the event when the counter is zero.\r\n *\r\nExample:\r\n\r\nLet's say DrawingRecognitionCanvas is a deep-learning backed canvas\r\nthat, when given the name of an object (e.g. 'dog'), draws a dog.\r\nBut whenever the drawing on it changes, it also sends back its interpretation\r\nof the image by way of the @newObjectRecognized event.\r\n\r\n\r\n\r\n\r\nnew TwoWayBindingWrapper((increment, decrement, shouldUpdate) => {\r\n this.$watch('identifiedObject', () => {\r\n // new object passed in\r\n increment()\r\n })\r\n this.$deepLearningBackend.on('drawingChanged', () => {\r\n recognizeObject(this.$deepLearningBackend)\r\n .then((object) => {\r\n decrement()\r\n if (shouldUpdate()) {\r\n this.$emit('newObjectRecognized', object.name)\r\n }\r\n })\r\n })\r\n})\r\n */\nfunction TwoWayBindingWrapper(fn) {\n var counter = 0;\n\n fn(function () {\n counter += 1;\n }, function () {\n counter = Math.max(0, counter - 1);\n }, function () {\n return counter === 0;\n });\n}","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _mapElementFactory = require('./mapElementFactory');\n\nvar _mapElementFactory2 = _interopRequireDefault(_mapElementFactory);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar props = {\n center: {\n type: Object,\n twoWay: true,\n required: true\n },\n radius: {\n type: Number,\n twoWay: true\n },\n draggable: {\n type: Boolean,\n default: false\n },\n editable: {\n type: Boolean,\n default: false\n },\n options: {\n type: Object,\n twoWay: false\n }\n};\n\nvar events = ['click', 'dblclick', 'drag', 'dragend', 'dragstart', 'mousedown', 'mousemove', 'mouseout', 'mouseover', 'mouseup', 'rightclick'];\n\nexports.default = (0, _mapElementFactory2.default)({\n mappedProps: props,\n name: 'circle',\n ctr: function ctr() {\n return google.maps.Circle;\n },\n events: events\n});","// style-loader: Adds some css to the DOM by adding a \n","import mod from \"-!../../../babel-loader/lib/index.js!../../../vue-loader/lib/index.js??vue-loader-options!./map.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../babel-loader/lib/index.js!../../../vue-loader/lib/index.js??vue-loader-options!./map.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./map.vue?vue&type=template&id=6839df3e\"\nimport script from \"./map.vue?vue&type=script&lang=js\"\nexport * from \"./map.vue?vue&type=script&lang=js\"\nimport style0 from \"./map.vue?vue&type=style&index=0&id=6839df3e&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n/**\n * @class MapElementMixin\n *\n * Extends components to include the following fields:\n *\n * @property $map The Google map (valid only after the promise returns)\n *\n *\n * */\nexports.default = {\n inject: {\n '$mapPromise': { default: 'abcdef' }\n },\n\n provide: function provide() {\n var _this = this;\n\n // Note: although this mixin is not \"providing\" anything,\n // components' expect the `$map` property to be present on the component.\n // In order for that to happen, this mixin must intercept the $mapPromise\n // .then(() =>) first before its component does so.\n //\n // Since a provide() on a mixin is executed before a provide() on the\n // component, putting this code in provide() ensures that the $map is\n // already set by the time the\n // component's provide() is called.\n this.$mapPromise.then(function (map) {\n _this.$map = map;\n });\n\n return {};\n }\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar isApiSetUp = false;\n\n/**\n * @param apiKey API Key, or object with the URL parameters. For example\n * to use Google Maps Premium API, pass\n * `{ client: }`.\n * You may pass the libraries and/or version (as `v`) parameter into\n * this parameter and skip the next two parameters\n * @param version Google Maps version\n * @param libraries Libraries to load (@see\n * https://developers.google.com/maps/documentation/javascript/libraries)\n * @param loadCn Boolean. If set to true, the map will be loaded from google maps China\n * (@see https://developers.google.com/maps/documentation/javascript/basics#GoogleMapsChina)\n *\n * Example:\n * ```\n * import {load} from 'vue-google-maps'\n *\n * load()\n *\n * load({\n * key: ,\n * })\n *\n * load({\n * client: ,\n * channel: \n * })\n * ```\n */\nvar loadGmapApi = exports.loadGmapApi = function (options, loadCn) {\n if (typeof document === 'undefined') {\n // Do nothing if run from server-side\n return;\n }\n if (!isApiSetUp) {\n isApiSetUp = true;\n\n var googleMapScript = document.createElement('SCRIPT');\n\n // Allow options to be an object.\n // This is to support more esoteric means of loading Google Maps,\n // such as Google for business\n // https://developers.google.com/maps/documentation/javascript/get-api-key#premium-auth\n if ((typeof options === 'undefined' ? 'undefined' : _typeof(options)) !== 'object') {\n throw new Error('options should be an object');\n }\n\n // libraries\n if (Array.prototype.isPrototypeOf(options.libraries)) {\n options.libraries = options.libraries.join(',');\n }\n options['callback'] = 'vueGoogleMapsInit';\n\n var baseUrl = 'https://maps.googleapis.com/';\n\n if (typeof loadCn === 'boolean' && loadCn === true) {\n baseUrl = 'https://maps.google.cn/';\n }\n\n var url = baseUrl + 'maps/api/js?' + Object.keys(options).map(function (key) {\n return encodeURIComponent(key) + '=' + encodeURIComponent(options[key]);\n }).join('&');\n\n googleMapScript.setAttribute('src', url);\n googleMapScript.setAttribute('async', '');\n googleMapScript.setAttribute('defer', '');\n document.head.appendChild(googleMapScript);\n } else {\n throw new Error('You already started the loading of google maps');\n }\n};","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_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\"]) _i[\"return\"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError(\"Invalid attempt to destructure non-iterable instance\"); } }; }();\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\nexports.default = function (options) {\n var mappedProps = options.mappedProps,\n name = options.name,\n ctr = options.ctr,\n ctrArgs = options.ctrArgs,\n events = options.events,\n beforeCreate = options.beforeCreate,\n afterCreate = options.afterCreate,\n props = options.props,\n rest = _objectWithoutProperties(options, ['mappedProps', 'name', 'ctr', 'ctrArgs', 'events', 'beforeCreate', 'afterCreate', 'props']);\n\n var promiseName = '$' + name + 'Promise';\n var instanceName = '$' + name + 'Object';\n\n assert(!(rest.props instanceof Array), '`props` should be an object, not Array');\n\n return _extends({}, typeof GENERATE_DOC !== 'undefined' ? { $vgmOptions: options } : {}, {\n mixins: [_mapElementMixin2.default],\n props: _extends({}, props, mappedPropsToVueProps(mappedProps)),\n render: function render() {\n return '';\n },\n provide: function provide() {\n var _this = this;\n\n var promise = this.$mapPromise.then(function (map) {\n // Infowindow needs this to be immediately available\n _this.$map = map;\n\n // Initialize the maps with the given options\n var options = _extends({}, _this.options, {\n map: map\n }, (0, _bindProps.getPropsValues)(_this, mappedProps));\n delete options.options; // delete the extra options\n\n if (beforeCreate) {\n var result = beforeCreate.bind(_this)(options);\n\n if (result instanceof Promise) {\n return result.then(function () {\n return { options: options };\n });\n }\n }\n return { options: options };\n }).then(function (_ref) {\n var _Function$prototype$b;\n\n var options = _ref.options;\n\n var ConstructorObject = ctr();\n // https://stackoverflow.com/questions/1606797/use-of-apply-with-new-operator-is-this-possible\n _this[instanceName] = ctrArgs ? new ((_Function$prototype$b = Function.prototype.bind).call.apply(_Function$prototype$b, [ConstructorObject, null].concat(_toConsumableArray(ctrArgs(options, (0, _bindProps.getPropsValues)(_this, props || {}))))))() : new ConstructorObject(options);\n\n (0, _bindProps.bindProps)(_this, _this[instanceName], mappedProps);\n (0, _bindEvents2.default)(_this, _this[instanceName], events);\n\n if (afterCreate) {\n afterCreate.bind(_this)(_this[instanceName]);\n }\n return _this[instanceName];\n });\n this[promiseName] = promise;\n return _defineProperty({}, promiseName, promise);\n },\n destroyed: function destroyed() {\n // Note: not all Google Maps components support maps\n if (this[instanceName] && this[instanceName].setMap) {\n this[instanceName].setMap(null);\n }\n }\n }, rest);\n};\n\nexports.mappedPropsToVueProps = mappedPropsToVueProps;\n\nvar _bindEvents = require('../utils/bindEvents.js');\n\nvar _bindEvents2 = _interopRequireDefault(_bindEvents);\n\nvar _bindProps = require('../utils/bindProps.js');\n\nvar _mapElementMixin = require('./mapElementMixin');\n\nvar _mapElementMixin2 = _interopRequireDefault(_mapElementMixin);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\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 _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\n/**\r\n *\r\n * @param {Object} options\r\n * @param {Object} options.mappedProps - Definitions of props\r\n * @param {Object} options.mappedProps.PROP.type - Value type\r\n * @param {Boolean} options.mappedProps.PROP.twoWay\r\n * - Whether the prop has a corresponding PROP_changed\r\n * event\r\n * @param {Boolean} options.mappedProps.PROP.noBind\r\n * - If true, do not apply the default bindProps / bindEvents.\r\n * However it will still be added to the list of component props\r\n * @param {Object} options.props - Regular Vue-style props.\r\n * Note: must be in the Object form because it will be\r\n * merged with the `mappedProps`\r\n *\r\n * @param {Object} options.events - Google Maps API events\r\n * that are not bound to a corresponding prop\r\n * @param {String} options.name - e.g. `polyline`\r\n * @param {=> String} options.ctr - constructor, e.g.\r\n * `google.maps.Polyline`. However, since this is not\r\n * generally available during library load, this becomes\r\n * a function instead, e.g. () => google.maps.Polyline\r\n * which will be called only after the API has been loaded\r\n * @param {(MappedProps, OtherVueProps) => Array} options.ctrArgs -\r\n * If the constructor in `ctr` needs to be called with\r\n * arguments other than a single `options` object, e.g. for\r\n * GroundOverlay, we call `new GroundOverlay(url, bounds, options)`\r\n * then pass in a function that returns the argument list as an array\r\n *\r\n * Otherwise, the constructor will be called with an `options` object,\r\n * with property and values merged from:\r\n *\r\n * 1. the `options` property, if any\r\n * 2. a `map` property with the Google Maps\r\n * 3. all the properties passed to the component in `mappedProps`\r\n * @param {Object => Any} options.beforeCreate -\r\n * Hook to modify the options passed to the initializer\r\n * @param {(options.ctr, Object) => Any} options.afterCreate -\r\n * Hook called when\r\n *\r\n */\n\n\nfunction assert(v, message) {\n if (!v) throw new Error(message);\n}\n\n/**\r\n * Strips out the extraneous properties we have in our\r\n * props definitions\r\n * @param {Object} props\r\n */\nfunction mappedPropsToVueProps(mappedProps) {\n return Object.entries(mappedProps).map(function (_ref3) {\n var _ref4 = _slicedToArray(_ref3, 2),\n key = _ref4[0],\n prop = _ref4[1];\n\n var value = {};\n\n if ('type' in prop) value.type = prop.type;\n if ('default' in prop) value.default = prop.default;\n if ('required' in prop) value.required = prop.required;\n\n return [key, value];\n }).reduce(function (acc, _ref5) {\n var _ref6 = _slicedToArray(_ref5, 2),\n key = _ref6[0],\n val = _ref6[1];\n\n acc[key] = val;\n return acc;\n }, {});\n}","import { render, staticRenderFns } from \"./placeInput.vue?vue&type=template&id=13bfbbee\"\nimport script from \"./placeInputImpl.js?vue&type=script&lang=js&external\"\nexport * from \"./placeInputImpl.js?vue&type=script&lang=js&external\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _bindProps = require('../utils/bindProps.js');\n\nvar _simulateArrowDown = require('../utils/simulateArrowDown.js');\n\nvar _simulateArrowDown2 = _interopRequireDefault(_simulateArrowDown);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nvar props = {\n bounds: {\n type: Object\n },\n defaultPlace: {\n type: String,\n default: ''\n },\n componentRestrictions: {\n type: Object,\n default: null\n },\n types: {\n type: Array,\n default: function _default() {\n return [];\n }\n },\n placeholder: {\n required: false,\n type: String\n },\n className: {\n required: false,\n type: String\n },\n label: {\n required: false,\n type: String,\n default: null\n },\n selectFirstOnEnter: {\n require: false,\n type: Boolean,\n default: false\n }\n};\n\nexports.default = {\n mounted: function mounted() {\n var _this = this;\n\n var input = this.$refs.input;\n\n // Allow default place to be set\n input.value = this.defaultPlace;\n this.$watch('defaultPlace', function () {\n input.value = _this.defaultPlace;\n });\n\n this.$gmapApiPromiseLazy().then(function () {\n var options = (0, _bindProps.getPropsValues)(_this, props);\n if (_this.selectFirstOnEnter) {\n (0, _simulateArrowDown2.default)(_this.$refs.input);\n }\n\n if (typeof google.maps.places.Autocomplete !== 'function') {\n throw new Error('google.maps.places.Autocomplete is undefined. Did you add \\'places\\' to libraries when loading Google Maps?');\n }\n\n _this.autoCompleter = new google.maps.places.Autocomplete(_this.$refs.input, options);\n\n var placeholder = props.placeholder,\n place = props.place,\n defaultPlace = props.defaultPlace,\n className = props.className,\n label = props.label,\n selectFirstOnEnter = props.selectFirstOnEnter,\n rest = _objectWithoutProperties(props, ['placeholder', 'place', 'defaultPlace', 'className', 'label', 'selectFirstOnEnter']); // eslint-disable-line\n\n\n (0, _bindProps.bindProps)(_this, _this.autoCompleter, rest);\n\n _this.autoCompleter.addListener('place_changed', function () {\n _this.$emit('place_changed', _this.autoCompleter.getPlace());\n });\n });\n },\n created: function created() {\n console.warn('The PlaceInput class is deprecated! Please consider using the Autocomplete input instead'); // eslint-disable-line no-console\n },\n\n props: props\n};","exports = module.exports = require(\"../../../css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \"\\n.vue-street-view-pano-container {\\n position: relative;\\n}\\n.vue-street-view-pano-container .vue-street-view-pano {\\n left: 0; right: 0; top: 0; bottom: 0;\\n position: absolute;\\n}\\n\", \"\"]);\n\n","// style-loader: Adds some css to the DOM by adding a