module.exports =
/******/ (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 = "lib/leaflet/";
/******/
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = 536);
/******/ })
/************************************************************************/
/******/ ({

/***/ 0:
/***/ (function(module, exports) {

module.exports = require("@babel/runtime/helpers/interopRequireDefault");

/***/ }),

/***/ 10:
/***/ (function(module, exports) {

module.exports = require("vue");

/***/ }),

/***/ 11:
/***/ (function(module, exports) {

module.exports = require("vue-property-decorator");

/***/ }),

/***/ 12:
/***/ (function(module, exports) {

module.exports = require("@babel/runtime/helpers/extends");

/***/ }),

/***/ 15:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(0);

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _Message = _interopRequireDefault(__webpack_require__(16));

var _default = _Message.default;
exports.default = _default;

/***/ }),

/***/ 16:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(0);

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _extends2 = _interopRequireDefault(__webpack_require__(12));

var _message = _interopRequireDefault(__webpack_require__(17));

var defaultPrefixCls = 'sm-component-message';
var configCallback = _message.default.config;
configCallback({
  prefixCls: defaultPrefixCls
});

_message.default.config = function (options) {
  if (options.prefixCls && options.prefixCls !== defaultPrefixCls) {
    _message.default.destroy();
  }

  configCallback((0, _extends2.default)({}, options, {
    prefixCls: options.prefixCls || defaultPrefixCls
  }));
};

var _default = _message.default;
exports.default = _default;

/***/ }),

/***/ 17:
/***/ (function(module, exports) {

module.exports = require("ant-design-vue/es/message");

/***/ }),

/***/ 20:
/***/ (function(module, exports) {

module.exports = require("@supermap/vue-iclient-leaflet/lib/_utils/global-event.js");

/***/ }),

/***/ 245:
/***/ (function(module, exports) {

module.exports = require("@supermap/vue-iclient-leaflet/lib/_types/map-event.js");

/***/ }),

/***/ 536:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


var _interopRequireDefault = __webpack_require__(0);

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;

var _inheritsLoose2 = _interopRequireDefault(__webpack_require__(6));

var _mapEvent = _interopRequireDefault(__webpack_require__(245));

var _globalEvent = _interopRequireDefault(__webpack_require__(20));

var _index = _interopRequireDefault(__webpack_require__(15));

var _vue = _interopRequireDefault(__webpack_require__(10));

var _vuePropertyDecorator = __webpack_require__(11);

var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
  var c = arguments.length,
      r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
      d;
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
    if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
  }
  return c > 3 && r && Object.defineProperty(target, key, r), r;
};

function callHook(vm, hook) {
  var options = vm.constructor.options;
  options.mixins && options.mixins.forEach(function (mixin) {
    mixin[hook] && mixin[hook].call(vm, vm.$options.name);
  });
  options[hook] && options[hook].call(vm, vm);
}

var MapGetter = /*#__PURE__*/function (_Vue) {
  (0, _inheritsLoose2.default)(MapGetter, _Vue);

  function MapGetter() {
    return _Vue.apply(this, arguments) || this;
  }

  var _proto = MapGetter.prototype;

  _proto.mapTargetChanged = function mapTargetChanged(newVal, oldVal) {
    if (newVal && oldVal && newVal !== oldVal) {
      callHook(this, 'removed');

      if (_mapEvent.default.$options.getMap(newVal)) {
        this.loadMap(newVal);
      }
    }
  };

  _proto.mounted = function mounted() {
    var targetName = this.getTargetName();

    if (_mapEvent.default.$options.getMap(targetName)) {
      this.loadMap(targetName);
    }

    _mapEvent.default.$on('load-map', this.loadMapSucceed);

    _globalEvent.default.$on('delete-map', this.deleteMapSucceed);
  };

  _proto.beforeDestroy = function beforeDestroy() {
    _mapEvent.default.$off('load-map', this.loadMapSucceed);

    _globalEvent.default.$off('delete-map', this.deleteMapSucceed);
  };

  _proto.loadMapSucceed = function loadMapSucceed(map, target) {
    var targetName = this.getTargetName();

    if (target === targetName) {
      this.loadMap(target);
    }
  };

  _proto.getTargetName = function getTargetName() {
    var selfParent = this.$parent;
    var parentTarget = selfParent && selfParent.$options.name && selfParent.$options.name.toLowerCase() === 'smwebmap' && selfParent.target;
    return this.mapTarget || parentTarget || Object.keys(_mapEvent.default.$options.getAllMaps())[0];
  };

  _proto.loadMap = function loadMap(targetName) {
    var _this = this;

    this.map = _mapEvent.default.$options.getMap(targetName);
    this.webmap = _mapEvent.default.$options.getWebMap(targetName);
    callHook(this, 'loaded');
    this.$nextTick(function () {
      _this.$emit('loaded');
    });
  };

  _proto.deleteMapSucceed = function deleteMapSucceed(target) {
    var targetName = this.getTargetName();

    if (target === targetName) {
      callHook(this, 'removed');
      this.map = null;
      this.webmap = null;
      this.viewModel && (this.viewModel = null);
    }
  };

  _proto.mapNotLoadedTip = function mapNotLoadedTip() {
    if (!this.map) {
      _index.default.destroy();

      _index.default.warning(this.$t('warning.unassociatedMap'));

      return true;
    }

    return false;
  };

  return MapGetter;
}(_vue.default);

__decorate([(0, _vuePropertyDecorator.Prop)()], MapGetter.prototype, "mapTarget", void 0);

__decorate([(0, _vuePropertyDecorator.Watch)('mapTarget')], MapGetter.prototype, "mapTargetChanged", null);

MapGetter = __decorate([_vuePropertyDecorator.Component], MapGetter);
var _default = MapGetter;
exports.default = _default;

/***/ }),

/***/ 6:
/***/ (function(module, exports) {

module.exports = require("@babel/runtime/helpers/inheritsLoose");

/***/ })

/******/ });