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0B,kBAAI,EAChC,IAAG,KAAK,GAER,OAAO,EAAI,YAAY,UAAS,WAC9B,OAAO,CACT,GAEJ,CAEA,SAAS,UACP,OAAO,QAAQ,SAAW,OAAO,MACnC,CAzGA,QAAQ,YAAc,SAAS,YAC/B,QAAQ,OAAS,SAAS,QAC1B,QAAQ,SAAW,WAAW,QAC9B,QAAQ,QAAU,UAAU,QAC5B,QAAQ,OAAS,SAAS,QAC1B,QAAQ,QAAU,QAClB,QAAQ,UAAY,YAAY,QAChC,QAAQ,WAAa,aAAa,QAClC,QAAQ,IAAM,MAAM,QACpB,QAAQ,WAAa,aAAa,QAClC,QAAQ,gBAAkB,kBAAkB,QAC5C,QAAQ,kBAAoB,oBAAoB,QAChD,QAAQ,aAAe,eAAe,QACtC,QAAQ,eAAiB,iBAAiB,QAC1C,QAAQ,mBAAqB,qBAAqB","file":"/npm/vue-google-map-protocol@0.0.2/dist/main.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/vue-google-map-protocol@0.0.2/dist/main.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\nexports.StreetViewPanorama = exports.MountableMixin = exports.Autocomplete = exports.MapElementFactory = exports.MapElementMixin = exports.PlaceInput = exports.Map = exports.InfoWindow = exports.Rectangle = exports.Cluster = exports.Circle = exports.Polygon = exports.Polyline = exports.Marker = exports.loadGmapApi = undefined;\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\n// Vue component imports\n\n\nexports.install = install;\nexports.gmapApi = gmapApi;\n\nvar _lazyValue = require('./utils/lazyValue');\n\nvar _lazyValue2 = _interopRequireDefault(_lazyValue);\n\nvar _manager = require('./manager');\n\nvar _marker = require('./components/marker');\n\nvar _marker2 = _interopRequireDefault(_marker);\n\nvar _polyline = require('./components/polyline');\n\nvar _polyline2 = _interopRequireDefault(_polyline);\n\nvar _polygon = require('./components/polygon');\n\nvar _polygon2 = _interopRequireDefault(_polygon);\n\nvar _circle = require('./components/circle');\n\nvar _circle2 = _interopRequireDefault(_circle);\n\nvar _rectangle = require('./components/rectangle');\n\nvar _rectangle2 = _interopRequireDefault(_rectangle);\n\nvar _infoWindow = require('./components/infoWindow.vue');\n\nvar _infoWindow2 = _interopRequireDefault(_infoWindow);\n\nvar _map = require('./components/map.vue');\n\nvar _map2 = _interopRequireDefault(_map);\n\nvar _streetViewPanorama = require('./components/streetViewPanorama.vue');\n\nvar _streetViewPanorama2 = _interopRequireDefault(_streetViewPanorama);\n\nvar _placeInput = require('./components/placeInput.vue');\n\nvar _placeInput2 = _interopRequireDefault(_placeInput);\n\nvar _autocomplete = require('./components/autocomplete.vue');\n\nvar _autocomplete2 = _interopRequireDefault(_autocomplete);\n\nvar _mapElementMixin = require('./components/mapElementMixin');\n\nvar _mapElementMixin2 = _interopRequireDefault(_mapElementMixin);\n\nvar _mapElementFactory = require('./components/mapElementFactory');\n\nvar _mapElementFactory2 = _interopRequireDefault(_mapElementFactory);\n\nvar _mountableMixin = require('./utils/mountableMixin');\n\nvar _mountableMixin2 = _interopRequireDefault(_mountableMixin);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// HACK: Cluster should be loaded conditionally\n// However in the web version, it's not possible to write\n// `import 'vue2-google-maps/src/components/cluster'`, so we need to\n// import it anyway (but we don't have to register it)\n// Therefore we use babel-plugin-transform-inline-environment-variables to\n// set BUILD_DEV to truthy / falsy\nvar Cluster = undefined;\n\nvar GmapApi = null;\n\n// export everything\nexports.loadGmapApi = _manager.loadGmapApi;\nexports.Marker = _marker2.default;\nexports.Polyline = _polyline2.default;\nexports.Polygon = _polygon2.default;\nexports.Circle = _circle2.default;\nexports.Cluster = Cluster;\nexports.Rectangle = _rectangle2.default;\nexports.InfoWindow = _infoWindow2.default;\nexports.Map = _map2.default;\nexports.PlaceInput = _placeInput2.default;\nexports.MapElementMixin = _mapElementMixin2.default;\nexports.MapElementFactory = _mapElementFactory2.default;\nexports.Autocomplete = _autocomplete2.default;\nexports.MountableMixin = _mountableMixin2.default;\nexports.StreetViewPanorama = _streetViewPanorama2.default;\nfunction install(Vue, options) {\n  // Set defaults\n  options = _extends({\n    installComponents: true,\n    autobindAllEvents: false\n  }, options);\n\n  // Update the global `GmapApi`. This will allow\n  // components to use the `google` global reactively\n  // via:\n  //   import {gmapApi} from 'vue2-google-maps'\n  //   export default {  computed: { google: gmapApi }  }\n  GmapApi = new Vue({ data: { gmapApi: null } });\n\n  var defaultResizeBus = new Vue();\n\n  // Use a lazy to only load the API when\n  // a VGM component is loaded\n  var gmapApiPromiseLazy = makeGmapApiPromiseLazy(options);\n\n  Vue.mixin({\n    created: function created() {\n      this.$gmapDefaultResizeBus = defaultResizeBus;\n      this.$gmapOptions = options;\n      this.$gmapApiPromiseLazy = gmapApiPromiseLazy;\n    }\n  });\n  Vue.$gmapDefaultResizeBus = defaultResizeBus;\n  Vue.$gmapApiPromiseLazy = gmapApiPromiseLazy;\n\n  if (options.installComponents) {\n    Vue.component('GmapMap', _map2.default);\n    Vue.component('GmapMarker', _marker2.default);\n    Vue.component('GmapInfoWindow', _infoWindow2.default);\n    Vue.component('GmapPolyline', _polyline2.default);\n    Vue.component('GmapPolygon', _polygon2.default);\n    Vue.component('GmapCircle', _circle2.default);\n    Vue.component('GmapRectangle', _rectangle2.default);\n    Vue.component('GmapAutocomplete', _autocomplete2.default);\n    Vue.component('GmapPlaceInput', _placeInput2.default);\n    Vue.component('GmapStreetViewPanorama', _streetViewPanorama2.default);\n  }\n}\n\nfunction makeGmapApiPromiseLazy(options) {\n  // Things to do once the API is loaded\n  function onApiLoaded() {\n    GmapApi.gmapApi = {};\n    return window.google;\n  }\n\n  if (options.load) {\n    // If library should load the API\n    return (0, _lazyValue2.default)(function () {\n      // Load the\n      // This will only be evaluated once\n      if (typeof window === 'undefined') {\n        // server side -- never resolve this promise\n        return new Promise(function () {}).then(onApiLoaded);\n      } else {\n        return new Promise(function (resolve, reject) {\n          try {\n            window['vueGoogleMapsInit'] = resolve;\n            (0, _manager.loadGmapApi)(options.load, options.loadCn);\n          } catch (err) {\n            reject(err);\n          }\n        }).then(onApiLoaded);\n      }\n    });\n  } else {\n    // If library should not handle API, provide\n    // end-users with the global `vueGoogleMapsInit: () => undefined`\n    // when the Google Maps API has been loaded\n    var promise = new Promise(function (resolve) {\n      if (typeof window === 'undefined') {\n        // Do nothing if run from server-side\n        return;\n      }\n      window['vueGoogleMapsInit'] = resolve;\n    }).then(onApiLoaded);\n\n    return (0, _lazyValue2.default)(function () {\n      return promise;\n    });\n  }\n}\n\nfunction gmapApi() {\n  return GmapApi.gmapApi && window.google;\n}"]}