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

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

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

/***/ }),

/***/ 1:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
/* globals __VUE_SSR_CONTEXT__ */

// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
// This module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle.

function normalizeComponent(
  scriptExports,
  render,
  staticRenderFns,
  functionalTemplate,
  injectStyles,
  scopeId,
  moduleIdentifier /* server only */,
  shadowMode /* vue-cli only */
) {
  // Vue.extend constructor export interop
  var options =
    typeof scriptExports === 'function' ? scriptExports.options : scriptExports

  // render functions
  if (render) {
    options.render = render
    options.staticRenderFns = staticRenderFns
    options._compiled = true
  }

  // functional template
  if (functionalTemplate) {
    options.functional = true
  }

  // scopedId
  if (scopeId) {
    options._scopeId = 'data-v-' + scopeId
  }

  var hook
  if (moduleIdentifier) {
    // server build
    hook = function (context) {
      // 2.3 injection
      context =
        context || // cached call
        (this.$vnode && this.$vnode.ssrContext) || // stateful
        (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
      // 2.2 with runInNewContext: true
      if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
        context = __VUE_SSR_CONTEXT__
      }
      // inject component styles
      if (injectStyles) {
        injectStyles.call(this, context)
      }
      // register component module identifier for async chunk inferrence
      if (context && context._registeredComponents) {
        context._registeredComponents.add(moduleIdentifier)
      }
    }
    // used by ssr in case component is cached and beforeCreate
    // never gets called
    options._ssrRegister = hook
  } else if (injectStyles) {
    hook = shadowMode
      ? function () {
          injectStyles.call(
            this,
            (options.functional ? this.parent : this).$root.$options.shadowRoot
          )
        }
      : injectStyles
  }

  if (hook) {
    if (options.functional) {
      // for template-only hot-reload because in that case the render fn doesn't
      // go through the normalizer
      options._injectStyles = hook
      // register for functional component in vue file
      var originalRender = options.render
      options.render = function renderWithStyleInjection(h, context) {
        hook.call(context)
        return originalRender(h, context)
      }
    } else {
      // inject component registration as beforeCreate hook
      var existing = options.beforeCreate
      options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
    }
  }

  return {
    exports: scriptExports,
    options: options
  }
}


/***/ }),

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

module.exports = require("lodash.isplainobject");

/***/ }),

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

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

/***/ }),

/***/ 105:
/***/ (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__(106));
var _default = exports.default = _Message.default;

/***/ }),

/***/ 106:
/***/ (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__(18));
var _message = _interopRequireDefault(__webpack_require__(107));
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 = exports.default = _message.default;

/***/ }),

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

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

/***/ }),

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

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

/***/ }),

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

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/_utils/vue-types/utils.js");

/***/ }),

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

module.exports = require("vue");

/***/ }),

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

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

/***/ }),

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

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

/***/ }),

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

module.exports = require("lodash.clonedeep");

/***/ }),

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

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/init.js");

/***/ }),

/***/ 268:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_VideoPlayer_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(269);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_VideoPlayer_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_VideoPlayer_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_VideoPlayer_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_VideoPlayer_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_VideoPlayer_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

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

"use strict";


var _interopRequireDefault = __webpack_require__(0);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _createClass2 = _interopRequireDefault(__webpack_require__(14));
var _inheritsLoose2 = _interopRequireDefault(__webpack_require__(3));
var _vue = _interopRequireDefault(__webpack_require__(13));
var _vuePropertyDecorator = __webpack_require__(9);
__webpack_require__(661);
var _video = _interopRequireDefault(__webpack_require__(387));
var _flv = _interopRequireDefault(__webpack_require__(388));
__webpack_require__(389);
__webpack_require__(662);
var _vueVideojs = __webpack_require__(663);
var _lodash = _interopRequireDefault(__webpack_require__(19));
var _main = _interopRequireDefault(__webpack_require__(380));
var _index = _interopRequireDefault(__webpack_require__(105));
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;
};
var SmVideoPlayer = /*#__PURE__*/function (_Vue) {
  (0, _inheritsLoose2.default)(SmVideoPlayer, _Vue);
  function SmVideoPlayer() {
    var _this;
    _this = _Vue.apply(this, arguments) || this;
    _this.isFirst = true;
    _this.modalVisible = false;
    _this.playerOptions = {};
    _this.modalPlayerOptions = {};
    return _this;
  }
  var _proto = SmVideoPlayer.prototype;
  _proto.modalVisibleChanged = function modalVisibleChanged() {
    if (this.modalVisible && this.modalVideoPlayer) {
      this.handlePlayerOptions();
      this.modalVideoPlayer.currentTime(0);
      this.modalVideoPlayer.play();
    }
    if (!this.modalVisible && this.modalVideoPlayer) {
      this.modalVideoPlayer.reset();
    }
  };
  _proto.urlChanged = function urlChanged() {
    this.handlePlayerOptions();
    this.replayRtmp();
  };
  _proto.playerOptionsChanged = function playerOptionsChanged() {
    if (this.player && this.player.el_) {
      this.player.load();
    }
  };
  _proto.optionsChanged = function optionsChanged() {
    this.handlePlayerOptions();
  };
  _proto.popupChanged = function popupChanged() {
    if (this.options.popupToPlay) {
      this.modalVideoPlayer = this.$refs.modalVideoPlayer && this.$refs.modalVideoPlayer.player;
    }
  };
  _proto.beforeCreate = function beforeCreate() {
    if (!_video.default) {
      console.error(this.$t('warning.videojs'));
    }
  };
  _proto.created = function created() {
    this.handlePlayerOptions();
  };
  _proto.getPlayer = function getPlayer() {
    var _this2 = this;
    setTimeout(function () {
      _this2.smPlayer = _this2.$refs.videoPlayer && _this2.$refs.videoPlayer.player;
      _this2.modalVideoPlayer = _this2.$refs.modalVideoPlayer && _this2.$refs.modalVideoPlayer.player;
      setTimeout(function () {
        _this2.replayRtmp();
      });
      var player = _this2.modalVisible ? _this2.modalVideoPlayer : _this2.smPlayer;
      if (player) {
        player.muted(_this2.options.muted);
        if (_this2.options.muted) {
          player.volume(0);
        }
      }
      _this2.$emit('instance-loaded', player);
    });
  };
  _proto.replayRtmp = function replayRtmp(player) {
    var _this3 = this;
    if (player === void 0) {
      player = this.player;
    }
    if (this.isRtmp && player && player.el_) {
      player.one('play', function () {
        _this3.timer = setTimeout(function () {
          clearTimeout(_this3.timer);
          player.reset();
          player.src((0, _lodash.default)(_this3.playerOptions.sources));
        }, _this3.replayTime);
      });
      player.one('canplay', function () {
        clearTimeout(_this3.timer);
      });
    }
  };
  _proto.handlePlayerOptions = function handlePlayerOptions(options) {
    if (options === void 0) {
      options = this.options;
    }
    if (!this.url) {
      return {};
    }
    if (!this.checkUrl(this.url)) {
      _index.default.warning(this.$t('warning.unsupportedVideoAddress'), 1);
      if (this.playerOptions.sources) {
        this.playerOptions.sources[0].src = '';
        this.modalPlayerOptions.sources[0].src = '';
      }
      return {};
    }
    if (!this.isMatchPosterUrl(options.poster)) {
      _index.default.warning(this.$t('warning.unsupportedPosterAddress'), 1);
    }
    var commonOptions = {
      height: '100%',
      autoplay: options.autoplay !== null ? options.autoplay : false,
      muted: options.muted !== null ? options.muted : true,
      loop: options.loop !== null ? options.loop : false,
      fluid: false,
      language: 'zh-CN',
      playbackRates: ['0.7', '1.0', '1.5', '2.0'],
      sources: [{
        src: this.url
      }],
      techOrder: ['html5'],
      flash: {
        hls: {
          withCredentials: false
        },
        swf: this.swf
      },
      flvjs: {
        mediaDataSource: {
          isLive: true,
          cors: true,
          hasAudio: true
        }
      },
      preload: 'auto',
      poster: options.poster || '',
      controlBar: {
        timeDivider: false,
        durationDisplay: false,
        remainingTimeDisplay: false,
        fullscreenToggle: true
      },
      notSupportedMessage: this.$t('warning.unavailableVideo')
    };
    if (!this.url.includes('rtmp') && this.url.includes('.flv')) {
      commonOptions.techOrder = ['html5', 'flvjs'];
      commonOptions.sources[0].type = 'video/x-flv';
    }
    if (this.url.includes('.mp4')) {
      commonOptions.sources[0].type = 'video/mp4';
    }
    if (this.url.includes('rtmp')) {
      commonOptions.techOrder = ['flash', 'html5'];
      commonOptions.sources[0].type = 'rtmp/flv';
    }
    if (this.url.includes('.m3u8')) {
      commonOptions.sources[0].type = 'application/x-mpegURL';
    }
    this.playerOptions = Object.assign({}, commonOptions, {
      autoplay: this.isRtmp || options.autoplay
    });
    this.modalPlayerOptions = Object.assign({}, commonOptions, {
      autoplay: true,
      preload: 'none',
      height: '600'
    });
    return commonOptions;
  };
  _proto.onPlayerPlay = function onPlayerPlay(player) {
    if (!player || !this.checkUrl(this.url)) {
      return;
    }
    if (this.isFirst && this.options.popupToPlay) {
      _index.default.info(this.$t('info.pressEscToExit'), 3);
    }
    if (this.isFirst && !this.options.popupToPlay && !this.options.autoplay) {
      player.currentTime(0);
      this.isFirst = false;
    }
    if (this.options.popupToPlay) {
      player.pause();
      player.currentTime(1);
      player.controlBar.el_.style.visibility = 'hidden';
      this.modalVisible = true;
    } else {
      this.handleControlBar(player);
    }
    if (!this.options.popupToPlay && this.isFullscreen) {
      player.requestFullscreen();
    }
  };
  _proto.onFullscreenchange = function onFullscreenchange(e) {
    if (!e.isFullscreen()) {
      e.pause();
    }
  };
  _proto.onModalPlayerPlay = function onModalPlayerPlay(player) {
    this.handleControlBar(player);
  };
  _proto.onModalPlayerLoadeddata = function onModalPlayerLoadeddata(player) {
    this.modalVideoPlayer = player;
    player.play();
    this.handleControlBar(player);
  };
  _proto.onPlayerEnded = function onPlayerEnded(player) {
    if (!this.options.autoplay && !this.options.popupToPlay) {
      player.currentTime(1);
      this.isFirst = true;
    }
  };
  _proto.onPlayerLoadeddata = function onPlayerLoadeddata(player) {
    if (!player || !this.checkUrl(this.url)) {
      return;
    }
    this.options.popupToPlay && player.pause();
    !this.options.popupToPlay && this.options.autoplay && player.play();
  };
  _proto.handleControlBar = function handleControlBar(player) {
    var isControlBarShow = this.options.controlBar === null ? true : this.options.controlBar;
    if (isControlBarShow) {
      player.controlBar.el_.style.visibility = 'visible';
    } else {
      player.controlBar.el_.style.visibility = 'hidden';
    }
  };
  _proto.checkUrl = function checkUrl(url) {
    var match;
    if (url === '' || !this.isMatchVideoUrl(url) || url.indexOf('ogg') < 0 && url.indexOf('mp4') < 0 && url.indexOf('webm') < 0 && url.indexOf('m3u8') < 0 && url.indexOf('flv') < 0 && url.indexOf('rtmp') < 0) {
      match = false;
    } else {
      match = true;
    }
    return match;
  };
  _proto.isMatchVideoUrl = function isMatchVideoUrl(str) {
    if (!str) return false;
    var isFilePath = this.isMatchFileUrl(str);
    if (isFilePath) return true;
    var reg = new RegExp('(https?|http|file|ftp|rtmp)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]');
    return reg.test(str);
  };
  _proto.isMatchPosterUrl = function isMatchPosterUrl(str) {
    if (!str) return true;
    var isFilePath = this.isMatchFileUrl(str);
    if (isFilePath) return true;
    var reg = new RegExp('(https?|http|file)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]');
    return reg.test(str);
  };
  _proto.isMatchFileUrl = function isMatchFileUrl(str) {
    var patt = /^((\.\.\/)|(\.\/))/g;
    return patt.test(str);
  };
  (0, _createClass2.default)(SmVideoPlayer, [{
    key: "isRtmp",
    get: function get() {
      return this.checkUrl(this.url) && this.url.includes('rtmp://');
    }
  }, {
    key: "isFlv",
    get: function get() {
      if (!_flv.default && this.checkUrl(this.url) && this.url.includes('.flv')) {
        console.error(this.$t('warning.flvPlayer'));
        return false;
      }
      return _flv.default.isSupported() && this.checkUrl(this.url) && this.url.includes('.flv');
    }
  }, {
    key: "autoplay",
    get: function get() {
      return this.options.autoplay && this.checkUrl(this.url);
    }
  }, {
    key: "player",
    get: function get() {
      return this.modalVisible ? this.modalVideoPlayer : this.smPlayer;
    }
  }, {
    key: "isFullFill",
    get: function get() {
      return this.ratio === 'full';
    }
  }]);
  return SmVideoPlayer;
}(_vue.default);
__decorate([(0, _vuePropertyDecorator.Prop)()], SmVideoPlayer.prototype, "url", void 0);
__decorate([(0, _vuePropertyDecorator.Prop)({
  default: 'https://vjs.zencdn.net/swf/5.4.2/video-js.swf'
})], SmVideoPlayer.prototype, "swf", void 0);
__decorate([(0, _vuePropertyDecorator.Prop)({
  default: 3000
})], SmVideoPlayer.prototype, "replayTime", void 0);
__decorate([(0, _vuePropertyDecorator.Prop)({
  default: false
})], SmVideoPlayer.prototype, "isFullscreen", void 0);
__decorate([(0, _vuePropertyDecorator.Prop)({
  default: 'origin'
})], SmVideoPlayer.prototype, "ratio", void 0);
__decorate([(0, _vuePropertyDecorator.Prop)({
  default: function _default() {
    return {
      muted: true,
      loop: false,
      popupToPlay: false,
      autoplay: false,
      controlBar: true,
      poster: ''
    };
  }
})], SmVideoPlayer.prototype, "options", void 0);
__decorate([(0, _vuePropertyDecorator.Watch)('modalVisible')], SmVideoPlayer.prototype, "modalVisibleChanged", null);
__decorate([(0, _vuePropertyDecorator.Watch)('url')], SmVideoPlayer.prototype, "urlChanged", null);
__decorate([(0, _vuePropertyDecorator.Watch)('playerOptions')], SmVideoPlayer.prototype, "playerOptionsChanged", null);
__decorate([(0, _vuePropertyDecorator.Watch)('options')], SmVideoPlayer.prototype, "optionsChanged", null);
__decorate([(0, _vuePropertyDecorator.Watch)('options.popupToPlay')], SmVideoPlayer.prototype, "popupChanged", null);
SmVideoPlayer = __decorate([(0, _vuePropertyDecorator.Component)({
  name: 'SmVideoPlayer',
  components: {
    videoPlayer: _vueVideojs.videoPlayer,
    SmModal: _main.default
  }
})], SmVideoPlayer);
var _default2 = exports.default = SmVideoPlayer;

/***/ }),

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

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

/***/ }),

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

"use strict";


var _interopRequireDefault = __webpack_require__(0);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _modal = _interopRequireDefault(__webpack_require__(108));
var _Modal = _interopRequireDefault(__webpack_require__(381));
var defaultPrefixCls = 'sm-component-modal';
var btnDefaultPrefixCls = 'sm-component-btn';
['info', 'success', 'error', 'warn', 'warning', 'confirm'].forEach(function (item) {
  var typeCallback = _modal.default[item];
  _Modal.default[item] = function (config) {
    var _ref = config.okButtonProps || {},
      _ref$props = _ref.props,
      okButtonProps = _ref$props === void 0 ? {} : _ref$props;
    var _ref2 = config.cancelButtonProps || {},
      _ref2$props = _ref2.props,
      cancelButtonProps = _ref2$props === void 0 ? {} : _ref2$props;
    return typeCallback(Object.assign(Object.assign({}, config), {
      prefixCls: config.prefixCls || defaultPrefixCls,
      okButtonProps: Object.assign(Object.assign({}, config.okButtonProps), {
        props: Object.assign(Object.assign({}, okButtonProps), {
          prefixCls: okButtonProps.prefixCls || btnDefaultPrefixCls
        })
      }),
      cancelButtonProps: Object.assign(Object.assign({}, config.cancelButtonProps), {
        props: Object.assign(Object.assign({}, cancelButtonProps), {
          prefixCls: cancelButtonProps.prefixCls || btnDefaultPrefixCls
        })
      })
    }));
  };
});
_Modal.default['destroyAll'] = function () {
  return _modal.default['destroyAll']();
};
var ModalInstance = _Modal.default;
var _default = exports.default = ModalInstance;

/***/ }),

/***/ 381:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _Modal_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(64);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _Modal_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _Modal_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
var render, staticRenderFns




/* normalize component */

var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"])(
  _Modal_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__["default"],
  render,
  staticRenderFns,
  false,
  null,
  null,
  null
  
)

/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

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

module.exports = require("video.js");

/***/ }),

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

module.exports = require("flv.js");

/***/ }),

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

module.exports = require("videojs-flvjs-es6");

/***/ }),

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

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/_mixin/Theme.js");

/***/ }),

/***/ 442:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";

// EXPORTS
__webpack_require__.d(__webpack_exports__, "a", function() { return /* reexport */ render; });
__webpack_require__.d(__webpack_exports__, "b", function() { return /* reexport */ staticRenderFns; });

// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/common/video-player/VideoPlayer.vue?vue&type=template&id=5cee323e&
var render = function () {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
  return _c(
    "div",
    {
      class: [
        "sm-component-video-player",
        { "sm-component-video-full-fill": _vm.isFullFill },
      ],
    },
    [
      _c("video-player", {
        ref: "videoPlayer",
        staticClass:
          "sm-component-video-player__player sm-component-video-player__player--main",
        attrs: {
          options: _vm.playerOptions,
          playsinline: true,
          "data-autoplay": _vm.autoplay,
          "data-isLive": _vm.isRtmp,
          "data-popupplay": "" + _vm.options.popupToPlay,
          events: ["fullscreenchange"],
        },
        on: {
          play: function ($event) {
            return _vm.onPlayerPlay($event)
          },
          ended: function ($event) {
            return _vm.onPlayerEnded($event)
          },
          loadeddata: function ($event) {
            return _vm.onPlayerLoadeddata($event)
          },
          ready: _vm.getPlayer,
          fullscreenchange: _vm.onFullscreenchange,
        },
      }),
      _vm.url
        ? _c(
            "sm-modal",
            {
              class: { "sm-component-video-full-fill": _vm.isFullFill },
              attrs: {
                wrapClassName: "sm-component-video-player-modal",
                footer: null,
                width: "60%",
                maskClosable: false,
              },
              model: {
                value: _vm.modalVisible,
                callback: function ($$v) {
                  _vm.modalVisible = $$v
                },
                expression: "modalVisible",
              },
            },
            [
              _c("video-player", {
                ref: "modalVideoPlayer",
                staticClass: "sm-component-video-player__player",
                attrs: {
                  options: _vm.modalPlayerOptions,
                  playsinline: true,
                  "data-autoplay": _vm.autoplay,
                  "data-isLive": _vm.isRtmp,
                  "data-popupplay": "" + _vm.options.popupToPlay,
                },
                on: {
                  play: function ($event) {
                    return _vm.onModalPlayerPlay($event)
                  },
                  loadeddata: function ($event) {
                    return _vm.onModalPlayerLoadeddata($event)
                  },
                  ready: _vm.getPlayer,
                },
              }),
            ],
            1
          )
        : _vm._e(),
    ],
    1
  )
}
var staticRenderFns = []
render._withStripped = true


// CONCATENATED MODULE: ./src/common/video-player/VideoPlayer.vue?vue&type=template&id=5cee323e&


/***/ }),

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

module.exports = require("@supermap/vue-iclient-mapboxgl/lib/_mixin/AntdRender.js");

/***/ }),

/***/ 64:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_Modal_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_Modal_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_Modal_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_Modal_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_Modal_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
 /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_node_modules_ts_loader_index_js_ref_0_1_node_modules_vue_loader_lib_index_js_vue_loader_options_Modal_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_0___default.a); 

/***/ }),

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

"use strict";


var _interopRequireDefault = __webpack_require__(0);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.modalTypes = exports.default = void 0;
var _modal = _interopRequireDefault(__webpack_require__(108));
var _Theme = _interopRequireDefault(__webpack_require__(4));
var _vueTypes = _interopRequireDefault(__webpack_require__(8));
var _buttonTypes = _interopRequireDefault(__webpack_require__(100));
var _AntdRender = _interopRequireDefault(__webpack_require__(6));
var ButtonType = (0, _buttonTypes.default)().type;
var modalTypes = exports.modalTypes = {
  prefixCls: _vueTypes.default.string,
  visible: _vueTypes.default.bool,
  confirmLoading: _vueTypes.default.bool,
  title: _vueTypes.default.any,
  closable: _vueTypes.default.bool,
  closeIcon: _vueTypes.default.any,
  afterClose: _vueTypes.default.func,
  centered: _vueTypes.default.bool,
  width: _vueTypes.default.oneOfType([_vueTypes.default.string, _vueTypes.default.number]),
  footer: _vueTypes.default.any,
  okText: _vueTypes.default.any,
  okType: ButtonType,
  cancelText: _vueTypes.default.any,
  icon: _vueTypes.default.any,
  maskClosable: _vueTypes.default.bool,
  forceRender: _vueTypes.default.bool,
  okButtonProps: _vueTypes.default.object,
  cancelButtonProps: _vueTypes.default.object,
  destroyOnClose: _vueTypes.default.bool,
  wrapClassName: _vueTypes.default.string,
  maskTransitionName: _vueTypes.default.string,
  transitionName: _vueTypes.default.string,
  getContainer: _vueTypes.default.func,
  zIndex: _vueTypes.default.number,
  bodyStyle: _vueTypes.default.object,
  maskStyle: _vueTypes.default.object,
  mask: _vueTypes.default.bool,
  keyboard: _vueTypes.default.bool,
  wrapProps: _vueTypes.default.object,
  focusTriggerAfterClose: _vueTypes.default.bool
};
var _default = exports.default = {
  name: 'SmModal',
  defaultComponent: _modal.default,
  mixins: [_Theme.default, _AntdRender.default],
  inheritAttrs: false,
  model: {
    prop: 'visible',
    event: 'change'
  },
  props: modalTypes,
  computed: {
    extralListeners: function extralListeners() {
      var vm = this;
      return {
        change: function change(value) {
          vm.$emit('change', value);
        }
      };
    }
  }
};

/***/ }),

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

"use strict";


var _interopRequireDefault = __webpack_require__(0);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _VideoPlayer = _interopRequireDefault(__webpack_require__(660));
var _init = _interopRequireDefault(__webpack_require__(2));
_VideoPlayer.default.install = function (Vue, opts) {
  (0, _init.default)(Vue, opts);
  Vue.component(_VideoPlayer.default.options ? _VideoPlayer.default.options.name : _VideoPlayer.default.name, _VideoPlayer.default);
};
var _default = exports.default = _VideoPlayer.default;

/***/ }),

/***/ 660:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _VideoPlayer_vue_vue_type_template_id_5cee323e___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(442);
/* harmony import */ var _VideoPlayer_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(268);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _VideoPlayer_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_1__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _VideoPlayer_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_1__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);





/* normalize component */

var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"])(
  _VideoPlayer_vue_vue_type_script_lang_ts___WEBPACK_IMPORTED_MODULE_1__["default"],
  _VideoPlayer_vue_vue_type_template_id_5cee323e___WEBPACK_IMPORTED_MODULE_0__[/* render */ "a"],
  _VideoPlayer_vue_vue_type_template_id_5cee323e___WEBPACK_IMPORTED_MODULE_0__[/* staticRenderFns */ "b"],
  false,
  null,
  null,
  null
  
)

/* harmony default export */ __webpack_exports__["default"] = (component.exports);

/***/ }),

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

module.exports = require("video.js/dist/video-js.css");

/***/ }),

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

module.exports = require("videojs-flash");

/***/ }),

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

module.exports = require("vue-videojs7");

/***/ }),

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

"use strict";


var _interopRequireDefault = __webpack_require__(0);
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _lodash = _interopRequireDefault(__webpack_require__(10));
var _utils = __webpack_require__(11);
var VuePropTypes = {
  get any() {
    return (0, _utils.toType)('any', {
      type: null
    });
  },
  get func() {
    return (0, _utils.toType)('function', {
      type: Function
    }).def(currentDefaults.func);
  },
  get bool() {
    return (0, _utils.toType)('boolean', {
      type: Boolean
    }).def(currentDefaults.bool);
  },
  get string() {
    return (0, _utils.toType)('string', {
      type: String
    }).def(currentDefaults.string);
  },
  get number() {
    return (0, _utils.toType)('number', {
      type: Number
    }).def(currentDefaults.number);
  },
  get array() {
    return (0, _utils.toType)('array', {
      type: Array
    }).def(currentDefaults.array);
  },
  get object() {
    return (0, _utils.toType)('object', {
      type: Object
    }).def(currentDefaults.object);
  },
  get integer() {
    return (0, _utils.toType)('integer', {
      type: Number,
      validator: function validator(value) {
        return (0, _utils.isInteger)(value);
      }
    }).def(currentDefaults.integer);
  },
  get symbol() {
    return (0, _utils.toType)('symbol', {
      type: null,
      validator: function validator(value) {
        return typeof value === 'symbol';
      }
    });
  },
  custom: function custom(validatorFn, warnMsg) {
    if (warnMsg === void 0) {
      warnMsg = 'custom validation failed';
    }
    if (typeof validatorFn !== 'function') {
      throw new TypeError('[VueTypes error]: You must provide a function as argument');
    }
    return (0, _utils.toType)(validatorFn.name || '<<anonymous function>>', {
      validator: function validator() {
        var valid = validatorFn.apply(void 0, arguments);
        if (!valid) (0, _utils.warn)(this._vueTypes_name + " - " + warnMsg);
        return valid;
      }
    });
  },
  oneOf: function oneOf(arr) {
    if (!(0, _utils.isArray)(arr)) {
      throw new TypeError('[VueTypes error]: You must provide an array as argument');
    }
    var msg = "oneOf - value should be one of \"" + arr.join('", "') + "\"";
    var allowedTypes = arr.reduce(function (ret, v) {
      if (v !== null && v !== undefined) {
        ret.indexOf(v.constructor) === -1 && ret.push(v.constructor);
      }
      return ret;
    }, []);
    return (0, _utils.toType)('oneOf', {
      type: allowedTypes.length > 0 ? allowedTypes : null,
      validator: function validator(value) {
        var valid = arr.indexOf(value) !== -1;
        if (!valid) (0, _utils.warn)(msg);
        return valid;
      }
    });
  },
  instanceOf: function instanceOf(instanceConstructor) {
    return (0, _utils.toType)('instanceOf', {
      type: instanceConstructor
    });
  },
  oneOfType: function oneOfType(arr) {
    if (!(0, _utils.isArray)(arr)) {
      throw new TypeError('[VueTypes error]: You must provide an array as argument');
    }
    var hasCustomValidators = false;
    var nativeChecks = arr.reduce(function (ret, type) {
      if ((0, _lodash.default)(type)) {
        if (type._vueTypes_name === 'oneOf') {
          return ret.concat(type.type || []);
        }
        if (type.type && !(0, _utils.isFunction)(type.validator)) {
          if ((0, _utils.isArray)(type.type)) return ret.concat(type.type);
          ret.push(type.type);
        } else if ((0, _utils.isFunction)(type.validator)) {
          hasCustomValidators = true;
        }
        return ret;
      }
      ret.push(type);
      return ret;
    }, []);
    if (!hasCustomValidators) {
      // we got just native objects (ie: Array, Object)
      // delegate to Vue native prop check
      return (0, _utils.toType)('oneOfType', {
        type: nativeChecks
      }).def(undefined);
    }
    var typesStr = arr.map(function (type) {
      if (type && (0, _utils.isArray)(type.type)) {
        return type.type.map(_utils.getType);
      }
      return (0, _utils.getType)(type);
    }).reduce(function (ret, type) {
      return ret.concat((0, _utils.isArray)(type) ? type : [type]);
    }, []).join('", "');
    return this.custom(function oneOfType(value) {
      var valid = arr.some(function (type) {
        if (type._vueTypes_name === 'oneOf') {
          return type.type ? (0, _utils.validateType)(type.type, value, true) : true;
        }
        return (0, _utils.validateType)(type, value, true);
      });
      if (!valid) (0, _utils.warn)("oneOfType - value type should be one of \"" + typesStr + "\"");
      return valid;
    }).def(undefined);
  },
  arrayOf: function arrayOf(type) {
    return (0, _utils.toType)('arrayOf', {
      type: Array,
      validator: function validator(values) {
        var valid = values.every(function (value) {
          return (0, _utils.validateType)(type, value);
        });
        if (!valid) (0, _utils.warn)("arrayOf - value must be an array of \"" + (0, _utils.getType)(type) + "\"");
        return valid;
      }
    });
  },
  objectOf: function objectOf(type) {
    return (0, _utils.toType)('objectOf', {
      type: Object,
      validator: function validator(obj) {
        var valid = Object.keys(obj).every(function (key) {
          return (0, _utils.validateType)(type, obj[key]);
        });
        if (!valid) (0, _utils.warn)("objectOf - value must be an object of \"" + (0, _utils.getType)(type) + "\"");
        return valid;
      }
    });
  },
  shape: function shape(obj) {
    var keys = Object.keys(obj);
    var requiredKeys = keys.filter(function (key) {
      return obj[key] && obj[key].required === true;
    });
    var type = (0, _utils.toType)('shape', {
      type: Object,
      validator: function validator(value) {
        var _this = this;
        if (!(0, _lodash.default)(value)) {
          return false;
        }
        var valueKeys = Object.keys(value);

        // check for required keys (if any)
        if (requiredKeys.length > 0 && requiredKeys.some(function (req) {
          return valueKeys.indexOf(req) === -1;
        })) {
          (0, _utils.warn)("shape - at least one of required properties \"" + requiredKeys.join('", "') + "\" is not present");
          return false;
        }
        return valueKeys.every(function (key) {
          if (keys.indexOf(key) === -1) {
            if (_this._vueTypes_isLoose === true) return true;
            (0, _utils.warn)("shape - object is missing \"" + key + "\" property");
            return false;
          }
          var type = obj[key];
          return (0, _utils.validateType)(type, value[key]);
        });
      }
    });
    Object.defineProperty(type, '_vueTypes_isLoose', {
      enumerable: false,
      writable: true,
      value: false
    });
    Object.defineProperty(type, 'loose', {
      get: function get() {
        this._vueTypes_isLoose = true;
        return this;
      },
      enumerable: false
    });
    return type;
  }
};
var typeDefaults = function typeDefaults() {
  return {
    func: undefined,
    bool: undefined,
    string: undefined,
    number: undefined,
    array: undefined,
    object: undefined,
    integer: undefined
  };
};
var currentDefaults = typeDefaults();
Object.defineProperty(VuePropTypes, 'sensibleDefaults', {
  enumerable: false,
  set: function set(value) {
    if (value === false) {
      currentDefaults = {};
    } else if (value === true) {
      currentDefaults = typeDefaults();
    } else if ((0, _lodash.default)(value)) {
      currentDefaults = value;
    }
  },
  get: function get() {
    return currentDefaults;
  }
});
var _default = exports.default = VuePropTypes;

/***/ }),

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

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

/***/ })

/******/ });