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

/***/ 0:
/***/ (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
  }
}


/***/ }),

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

module.exports = require("@ued_fpi/element-ui/lib/utils/resize-event");

/***/ }),

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

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/area-select/src/main.vue?vue&type=template&id=796a723b&
var render = function () {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
  return _c(
    "div",
    { staticClass: "el-area-select" },
    [
      _c(
        "div",
        {
          ref: "tags",
          staticClass: "el-area-select__tags",
          on: { click: _vm.handleFocus },
        },
        [
          _vm.collapseTags && _vm.value.length > 0
            ? _c(
                "span",
                [
                  _c(
                    "el-tag",
                    {
                      attrs: {
                        closable: !_vm.selectDisabled,
                        size: _vm.collapseTagSize,
                        type: "info",
                        "disable-transitions": "",
                      },
                      on: {
                        close: function ($event) {
                          _vm.deleteTag($event, _vm.value[0])
                        },
                      },
                    },
                    [
                      _c("span", { staticClass: "el-area-select__tags-text" }, [
                        _vm._v(_vm._s(_vm.value[0][_vm.actualProps.label])),
                      ]),
                    ]
                  ),
                  _vm.value.length > 1
                    ? _c(
                        "el-tag",
                        {
                          attrs: {
                            closable: false,
                            size: _vm.collapseTagSize,
                            type: "info",
                            "disable-transitions": "",
                          },
                        },
                        [
                          _c(
                            "span",
                            { staticClass: "el-area-select__tags-text" },
                            [_vm._v("+ " + _vm._s(_vm.value.length - 1))]
                          ),
                        ]
                      )
                    : _vm._e(),
                ],
                1
              )
            : _c(
                "span",
                _vm._l(_vm.value, function (item) {
                  return _c(
                    "el-tag",
                    {
                      key: item[_vm.actualProps.value],
                      ref: "lastTag",
                      refInFor: true,
                      attrs: {
                        closable: !_vm.selectDisabled,
                        size: _vm.collapseTagSize,
                        type: "info",
                        "disable-transitions": "",
                      },
                      on: {
                        close: function ($event) {
                          _vm.deleteTag($event, item)
                        },
                      },
                    },
                    [
                      _c("span", { staticClass: "el-area-select__tags-text" }, [
                        _vm._v(_vm._s(item[_vm.actualProps.label])),
                      ]),
                    ]
                  )
                }),
                1
              ),
          _c(
            "el-tag",
            {
              ref: "trigger",
              class: { trigger: true, disabled: _vm.selectDisabled },
              attrs: {
                size: _vm.collapseTagSize,
                type: _vm.selectDisabled ? "info" : "",
              },
              on: { click: _vm.choose },
            },
            [_vm._v("\n      点击选择\n    ")]
          ),
        ],
        1
      ),
      _c("el-input", {
        ref: "reference",
        class: { "is-focus": _vm.softFocus },
        attrs: {
          type: "input",
          placeholder: _vm.propPlaceholder,
          autocomplete: _vm.autocomplete,
          disabled: _vm.selectDisabled,
          "validate-event": false,
          readonly: true,
          autosize: true,
        },
        on: {
          focus: function ($event) {
            _vm.softFocus = true
          },
          blur: function ($event) {
            _vm.softFocus = false
          },
        },
      }),
    ],
    1
  )
}
var staticRenderFns = []
render._withStripped = true


// CONCATENATED MODULE: ./packages/area-select/src/main.vue?vue&type=template&id=796a723b&

// EXTERNAL MODULE: external "@ued_fpi/element-ui/lib/tag"
var tag_ = __webpack_require__(32);
var tag_default = /*#__PURE__*/__webpack_require__.n(tag_);

// EXTERNAL MODULE: external "@ued_fpi/element-ui/lib/mixins/focus"
var focus_ = __webpack_require__(21);
var focus_default = /*#__PURE__*/__webpack_require__.n(focus_);

// EXTERNAL MODULE: external "@ued_fpi/element-ui/lib/mixins/locale"
var locale_ = __webpack_require__(6);
var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);

// EXTERNAL MODULE: external "@ued_fpi/element-ui/lib/mixins/emitter"
var emitter_ = __webpack_require__(4);
var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);

// EXTERNAL MODULE: external "@ued_fpi/element-ui/lib/input"
var input_ = __webpack_require__(9);
var input_default = /*#__PURE__*/__webpack_require__.n(input_);

// EXTERNAL MODULE: external "@ued_fpi/element-ui/lib/utils/resize-event"
var resize_event_ = __webpack_require__(14);

// EXTERNAL MODULE: external "@ued_fpi/element-ui/lib/utils/util"
var util_ = __webpack_require__(3);

// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/area-select/src/main.vue?vue&type=script&lang=js&
var _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; };

//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//








var defaultProps = {
  label: 'label',
  value: 'value'
};
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
  name: 'ElAreaSelect',
  componentName: 'ElAreaSelect',
  mixins: [emitter_default.a, locale_default.a, focus_default()('reference')],
  inject: {
    elForm: {
      default: ''
    },

    elFormItem: {
      default: ''
    }
  },
  provide: function provide() {
    return {
      'areaSelect': this
    };
  },

  components: { ElTag: tag_default.a, ElInput: input_default.a },
  props: {
    value: Array,
    disabled: {
      type: Boolean,
      default: false
    }, // 是否禁用
    props: {
      type: Object,
      default: function _default() {
        return {};
      }
    },
    collapseTags: {
      type: Boolean,
      default: false
    }, // 多选时是否将选中值按文字的形式展示
    autocomplete: {
      type: String,
      default: 'off'
    },
    placeholder: {
      type: String,
      default: '请选择'
    }
  },
  watch: {
    // 监听值的变化，比较值前后是否有改变，是否需要触发form表单的change校验
    value: function value(val, oldVal) {
      this.resetInputHeight();
      if (!Object(util_["valueEquals"])(val, oldVal)) {
        this.dispatch('ElFormItem', 'el.form.change', val);
      }
    }
  },
  data: function data() {
    return {
      softFocus: false, // 当前是否聚焦
      initialInputHeight: 0 // 每一行的基础敢赌
    };
  },

  computed: {
    actualProps: function actualProps() {
      return _extends({}, defaultProps, this.props);
    },

    // 是否可选择
    selectDisabled: function selectDisabled() {
      return this.disabled || (this.elForm || {}).disabled;
    },

    // form表单控件大小
    _elFormItemSize: function _elFormItemSize() {
      return (this.elFormItem || {}).elFormItemSize;
    },

    // 实际控件大小
    selectSize: function selectSize() {
      return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
    },

    // 控件大小
    collapseTagSize: function collapseTagSize() {
      return ['small', 'mini'].indexOf(this.selectSize) > -1 ? 'mini' : 'small';
    },

    // 控件的占位符
    propPlaceholder: function propPlaceholder() {
      if (this.value.length > 0) return '';
      return typeof this.placeholder !== 'undefined' ? this.placeholder : this.t('el.select.placeholder');
    }
  },
  mounted: function mounted() {
    // 基础一行高度
    var reference = this.$refs.reference;
    if (reference && reference.$el) {
      var sizeMap = {
        medium: 36,
        small: 32,
        mini: 28
      };
      var input = reference.$el.querySelector('input');
      this.initialInputHeight = input.getBoundingClientRect().height || sizeMap[this.selectSize];
    }
    // 重置高度
    this.resetInputHeight();
    // 添加dom高度变化监听
    Object(resize_event_["addResizeListener"])(this.$el, this.handleResize);
  },

  methods: {
    /**
     * 删除其中一项
    */
    deleteTag: function deleteTag(event, tag) {
      var key = this.actualProps.value;
      var index = this.value.findIndex(function (item) {
        return item[key] === tag[key];
      });
      if (index > -1 && !this.selectDisabled) {
        var value = this.value.slice();
        value.splice(index, 1);
        this.$emit('input', value);
        this.$emit('remove-tag', tag.value);
      }
      event.stopPropagation();
    },

    // 聚焦事件
    handleFocus: function handleFocus() {
      this.$refs.reference.focus();
    },

    /**
     * dom宽高变化
    */
    handleResize: function handleResize() {
      // this.resetInputWidth();
      this.resetInputHeight();
    },

    /**
     * 重置宽度
    */
    resetInputWidth: function resetInputWidth() {
      this.inputWidth = this.$refs.reference.$el.getBoundingClientRect().width;
    },

    /**
     * 重置高度
    */
    resetInputHeight: function resetInputHeight() {
      var _this = this;

      if (this.collapseTags) return;
      this.$nextTick(function () {
        if (!_this.$refs.reference) return;
        var tags = _this.$refs.tags;
        var tagsHeight = tags ? Math.round(tags.getBoundingClientRect().height) : 0;
        var sizeInMap = _this.initialInputHeight + 2;
        _this.$refs.reference.$el.style.height = _this.value.length === 0 ? sizeInMap + 'px' : Math.max(tags ? tagsHeight + (tagsHeight > sizeInMap ? 6 : 2) : 0, sizeInMap) + 'px';
      });
    },

    /**
     * 点击`点击选择`按钮触发
    */
    choose: function choose() {
      if (this.selectDisabled) return;
      this.$emit('choose');
    }
  },
  beforeDestroy: function beforeDestroy() {
    // 销毁dom大小变化监听
    if (this.$el && this.handleResize) Object(resize_event_["removeResizeListener"])(this.$el, this.handleResize);
  }
});
// CONCATENATED MODULE: ./packages/area-select/src/main.vue?vue&type=script&lang=js&
 /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(0);

// CONCATENATED MODULE: ./packages/area-select/src/main.vue





/* normalize component */

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

/* hot reload */
if (false) { var api; }
component.options.__file = "packages/area-select/src/main.vue"
/* harmony default export */ var main = (component.exports);
// CONCATENATED MODULE: ./packages/area-select/index.js


/* istanbul ignore next */
main.install = function (Vue) {
  Vue.component(main.name, main);
};

/* harmony default export */ var area_select = __webpack_exports__["default"] = (main);

/***/ }),

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

module.exports = require("@ued_fpi/element-ui/lib/mixins/focus");

/***/ }),

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

module.exports = require("@ued_fpi/element-ui/lib/utils/util");

/***/ }),

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

module.exports = require("@ued_fpi/element-ui/lib/tag");

/***/ }),

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

module.exports = require("@ued_fpi/element-ui/lib/mixins/emitter");

/***/ }),

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

module.exports = require("@ued_fpi/element-ui/lib/mixins/locale");

/***/ }),

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

module.exports = require("@ued_fpi/element-ui/lib/input");

/***/ })

/******/ });