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, {
/******/ 				configurable: false,
/******/ 				enumerable: true,
/******/ 				get: getter
/******/ 			});
/******/ 		}
/******/ 	};
/******/
/******/ 	// 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 = 847);
/******/ })
/************************************************************************/
/******/ ({

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

/* globals __VUE_SSR_CONTEXT__ */

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

module.exports = function normalizeComponent (
  rawScriptExports,
  compiledTemplate,
  functionalTemplate,
  injectStyles,
  scopeId,
  moduleIdentifier /* server only */
) {
  var esModule
  var scriptExports = rawScriptExports = rawScriptExports || {}

  // ES6 modules interop
  var type = typeof rawScriptExports.default
  if (type === 'object' || type === 'function') {
    esModule = rawScriptExports
    scriptExports = rawScriptExports.default
  }

  // Vue.extend constructor export interop
  var options = typeof scriptExports === 'function'
    ? scriptExports.options
    : scriptExports

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

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

  // scopedId
  if (scopeId) {
    options._scopeId = 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 = injectStyles
  }

  if (hook) {
    var functional = options.functional
    var existing = functional
      ? options.render
      : options.beforeCreate

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

  return {
    esModule: esModule,
    exports: scriptExports,
    options: options
  }
}


/***/ }),

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

/*
	MIT License http://www.opensource.org/licenses/mit-license.php
	Author Tobias Koppers @sokra
*/
// css base code, injected by the css-loader
module.exports = function(useSourceMap) {
	var list = [];

	// return the list of modules as css string
	list.toString = function toString() {
		return this.map(function (item) {
			var content = cssWithMappingToString(item, useSourceMap);
			if(item[2]) {
				return "@media " + item[2] + "{" + content + "}";
			} else {
				return content;
			}
		}).join("");
	};

	// import a list of modules into the list
	list.i = function(modules, mediaQuery) {
		if(typeof modules === "string")
			modules = [[null, modules, ""]];
		var alreadyImportedModules = {};
		for(var i = 0; i < this.length; i++) {
			var id = this[i][0];
			if(typeof id === "number")
				alreadyImportedModules[id] = true;
		}
		for(i = 0; i < modules.length; i++) {
			var item = modules[i];
			// skip already imported module
			// this implementation is not 100% perfect for weird media query combinations
			//  when a module is imported multiple times with different media queries.
			//  I hope this will never occur (Hey this way we have smaller bundles)
			if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
				if(mediaQuery && !item[2]) {
					item[2] = mediaQuery;
				} else if(mediaQuery) {
					item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
				}
				list.push(item);
			}
		}
	};
	return list;
};

function cssWithMappingToString(item, useSourceMap) {
	var content = item[1] || '';
	var cssMapping = item[3];
	if (!cssMapping) {
		return content;
	}

	if (useSourceMap && typeof btoa === 'function') {
		var sourceMapping = toComment(cssMapping);
		var sourceURLs = cssMapping.sources.map(function (source) {
			return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'
		});

		return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
	}

	return [content].join('\n');
}

// Adapted from convert-source-map (MIT)
function toComment(sourceMap) {
	// eslint-disable-next-line no-undef
	var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
	var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;

	return '/*# ' + data + ' */';
}


/***/ }),

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

module.exports = require("vue");

/***/ }),

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

/*
  MIT License http://www.opensource.org/licenses/mit-license.php
  Author Tobias Koppers @sokra
  Modified by Evan You @yyx990803
*/

var hasDocument = typeof document !== 'undefined'

if (typeof DEBUG !== 'undefined' && DEBUG) {
  if (!hasDocument) {
    throw new Error(
    'vue-style-loader cannot be used in a non-browser environment. ' +
    "Use { target: 'node' } in your Webpack config to indicate a server-rendering environment."
  ) }
}

var listToStyles = __webpack_require__(6)

/*
type StyleObject = {
  id: number;
  parts: Array<StyleObjectPart>
}

type StyleObjectPart = {
  css: string;
  media: string;
  sourceMap: ?string
}
*/

var stylesInDom = {/*
  [id: number]: {
    id: number,
    refs: number,
    parts: Array<(obj?: StyleObjectPart) => void>
  }
*/}

var head = hasDocument && (document.head || document.getElementsByTagName('head')[0])
var singletonElement = null
var singletonCounter = 0
var isProduction = false
var noop = function () {}
var options = null
var ssrIdKey = 'data-vue-ssr-id'

// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
// tags it will allow on a page
var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase())

module.exports = function (parentId, list, _isProduction, _options) {
  isProduction = _isProduction

  options = _options || {}

  var styles = listToStyles(parentId, list)
  addStylesToDom(styles)

  return function update (newList) {
    var mayRemove = []
    for (var i = 0; i < styles.length; i++) {
      var item = styles[i]
      var domStyle = stylesInDom[item.id]
      domStyle.refs--
      mayRemove.push(domStyle)
    }
    if (newList) {
      styles = listToStyles(parentId, newList)
      addStylesToDom(styles)
    } else {
      styles = []
    }
    for (var i = 0; i < mayRemove.length; i++) {
      var domStyle = mayRemove[i]
      if (domStyle.refs === 0) {
        for (var j = 0; j < domStyle.parts.length; j++) {
          domStyle.parts[j]()
        }
        delete stylesInDom[domStyle.id]
      }
    }
  }
}

function addStylesToDom (styles /* Array<StyleObject> */) {
  for (var i = 0; i < styles.length; i++) {
    var item = styles[i]
    var domStyle = stylesInDom[item.id]
    if (domStyle) {
      domStyle.refs++
      for (var j = 0; j < domStyle.parts.length; j++) {
        domStyle.parts[j](item.parts[j])
      }
      for (; j < item.parts.length; j++) {
        domStyle.parts.push(addStyle(item.parts[j]))
      }
      if (domStyle.parts.length > item.parts.length) {
        domStyle.parts.length = item.parts.length
      }
    } else {
      var parts = []
      for (var j = 0; j < item.parts.length; j++) {
        parts.push(addStyle(item.parts[j]))
      }
      stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts }
    }
  }
}

function createStyleElement () {
  var styleElement = document.createElement('style')
  styleElement.type = 'text/css'
  head.appendChild(styleElement)
  return styleElement
}

function addStyle (obj /* StyleObjectPart */) {
  var update, remove
  var styleElement = document.querySelector('style[' + ssrIdKey + '~="' + obj.id + '"]')

  if (styleElement) {
    if (isProduction) {
      // has SSR styles and in production mode.
      // simply do nothing.
      return noop
    } else {
      // has SSR styles but in dev mode.
      // for some reason Chrome can't handle source map in server-rendered
      // style tags - source maps in <style> only works if the style tag is
      // created and inserted dynamically. So we remove the server rendered
      // styles and inject new ones.
      styleElement.parentNode.removeChild(styleElement)
    }
  }

  if (isOldIE) {
    // use singleton mode for IE9.
    var styleIndex = singletonCounter++
    styleElement = singletonElement || (singletonElement = createStyleElement())
    update = applyToSingletonTag.bind(null, styleElement, styleIndex, false)
    remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true)
  } else {
    // use multi-style-tag mode in all other cases
    styleElement = createStyleElement()
    update = applyToTag.bind(null, styleElement)
    remove = function () {
      styleElement.parentNode.removeChild(styleElement)
    }
  }

  update(obj)

  return function updateStyle (newObj /* StyleObjectPart */) {
    if (newObj) {
      if (newObj.css === obj.css &&
          newObj.media === obj.media &&
          newObj.sourceMap === obj.sourceMap) {
        return
      }
      update(obj = newObj)
    } else {
      remove()
    }
  }
}

var replaceText = (function () {
  var textStore = []

  return function (index, replacement) {
    textStore[index] = replacement
    return textStore.filter(Boolean).join('\n')
  }
})()

function applyToSingletonTag (styleElement, index, remove, obj) {
  var css = remove ? '' : obj.css

  if (styleElement.styleSheet) {
    styleElement.styleSheet.cssText = replaceText(index, css)
  } else {
    var cssNode = document.createTextNode(css)
    var childNodes = styleElement.childNodes
    if (childNodes[index]) styleElement.removeChild(childNodes[index])
    if (childNodes.length) {
      styleElement.insertBefore(cssNode, childNodes[index])
    } else {
      styleElement.appendChild(cssNode)
    }
  }
}

function applyToTag (styleElement, obj) {
  var css = obj.css
  var media = obj.media
  var sourceMap = obj.sourceMap

  if (media) {
    styleElement.setAttribute('media', media)
  }
  if (options.ssrId) {
    styleElement.setAttribute(ssrIdKey, obj.id)
  }

  if (sourceMap) {
    // https://developer.chrome.com/devtools/docs/javascript-debugging
    // this makes source maps inside style tags work properly in Chrome
    css += '\n/*# sourceURL=' + sourceMap.sources[0] + ' */'
    // http://stackoverflow.com/a/26603875
    css += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */'
  }

  if (styleElement.styleSheet) {
    styleElement.styleSheet.cssText = css
  } else {
    while (styleElement.firstChild) {
      styleElement.removeChild(styleElement.firstChild)
    }
    styleElement.appendChild(document.createTextNode(css))
  }
}


/***/ }),

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

"use strict";


exports.__esModule = true;

var _radio = __webpack_require__(852);

var _radio2 = _interopRequireDefault(_radio);

var _button = __webpack_require__(5);

var _button2 = _interopRequireDefault(_button);

var _col = __webpack_require__(7);

var _col2 = _interopRequireDefault(_col);

var _container = __webpack_require__(853);

var _container2 = _interopRequireDefault(_container);

var _aside = __webpack_require__(854);

var _aside2 = _interopRequireDefault(_aside);

var _main = __webpack_require__(855);

var _main2 = _interopRequireDefault(_main);

var _input = __webpack_require__(3);

var _input2 = _interopRequireDefault(_input);

var _header = __webpack_require__(856);

var _header2 = _interopRequireDefault(_header);

var _radioGroup = __webpack_require__(857);

var _radioGroup2 = _interopRequireDefault(_radioGroup);

var _radioButton = __webpack_require__(858);

var _radioButton2 = _interopRequireDefault(_radioButton);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

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

/* const keyFn = function(e) {
  if (this.show) {
    switch (e.keyCode) {
      case 9:
      case 13:
      case 38:
      case 40:
        this.show = false;
        break;
    }
  }
};*/
var toolsList = [{
  key: 'sup',
  label: '上标'
}, {
  key: 'sub',
  label: '下标'
}, {
  key: 'i',
  label: '斜体'
}];
var symbolList = {
  math: {
    label: '数学',
    value: ['≈', '≡', '≠', '＝', '≤', '≥', '≮', '≯', '∷', '±', '＋', '－', '×', '÷', '／', '∫', '∮', '∝', '∞', '∧', '∨', '∑', '∏', '∪', '∩', '∈', '∵', '∴', '⊥', '‖', '∠', '⌒', '⊙', '≌', '∽', '√']
  },
  unit: {
    label: '单位',
    value: ['°', '′', '〃', '＄', '￡', '￥', '‰', '％', '℃', '¤', '￠']
  },
  special: {
    label: '特殊',
    value: ['︻', '︼', '︽', '︾', '〒', '⊙', '●', '〇', '◎', '¤', '★', '☆', '■', '▓', '「', '」', '『', '』', '◆', '◇', '▲', '△', '▼', '▽', '◣', '◥', '◢', '◣', '◤', '◥', '№', '↑', '↓', '→', '←', '↘', '↙', 'Ψ', '※', '㊣', '∑', '⌒', '∩', '【', '】', '〖', '〗', '＠', 'ξ', 'ζ', 'ω', '□', '∮', '〓', '※', '》', '∏', '卐', '√', '╳', '々', '♀', '♂', '∞', '①', 'ㄨ', '≡', '╬', '╭', '╮', '╰', '╯', '╱', '╲']
  },
  letter: {
    label: '字母',
    value: ['Α', 'Β', 'Γ', 'Δ', 'Ε', 'Ζ', 'Η', 'Θ', 'Ι', 'Κ', '∧', 'Μ', 'Ν', 'Ξ', 'Ο', '∏', 'Ρ', '∑', 'Τ', 'Υ', 'Φ', 'Χ', 'Ψ', 'Ω', 'α', 'β', 'γ', 'δ', 'ε', 'ζ', 'η', 'θ', 'ι', 'κ', 'λ', 'μ', 'ν', 'ξ', 'ο', 'π', 'ρ', 'σ', 'τ', 'υ', 'φ', 'χ', 'ψ', 'ω']
  },
  custom: {
    label: '自定义',
    value: []
  }
};

exports.default = {
  name: 'ElSymbolbox',
  components: {
    ElCol: _col2.default,
    ElContainer: _container2.default,
    ElAside: _aside2.default,
    ElMain: _main2.default,
    ElInput: _input2.default,
    ElHeader: _header2.default,
    ElRadioButton: _radioButton2.default,
    ElButton: _button2.default,
    ElRadioGroup: _radioGroup2.default,
    ElRadio: _radio2.default
  },
  mixins: '',
  data: function data() {
    return {
      toolsList: toolsList,
      symbolList: symbolList,
      show: false,
      selectedKey: 'math',
      selectedValue: ['≈', '≡', '≠', '＝', '≤', '≥', '≮', '≯', '∷', '±', '＋', '－', '×', '÷', '／', '∫', '∮', '∝', '∞', '∧', '∨', '∑', '∏', '∪', '∩', '∈', '∵', '∴', '⊥', '‖', '∠', '⌒', '⊙', '≌', '∽', '√'],
      customValues: ['≈', '≡', '≠', '＝', '≤', '≥', '≮', '≯', '∷', '±', '＋', '－', '×', '÷', '／', '∫', '∮', '∝', '∞', '∧', '∨'],
      customValue: '',
      selectedStatus: '',
      showAddBox: false,
      styleName: 'el-icon-caret-bottom',
      cStyle: 'expand',
      inputEl: '',
      baseUrl: '',
      customId: '',
      delClass: 'hide-delete',
      userInfo: JSON.parse(localStorage.getItem('userInfo') || null),
      isAdmin: false,
      opts: {
        maxWidth: 900,
        maxHeight: 600,
        minWidth: 404,
        minHeight: 200,
        width: 425,
        height: 235,
        resizeAble: true
      }
    };
  },

  computed: {
    cp_symbolboxStyle: function cp_symbolboxStyle() {
      var _opts = this.opts,
          width = _opts.width,
          height = _opts.height;

      return { width: width + 'px', height: height + 'px' };
    }
  },
  mounted: function mounted() {
    var _this = this;

    this.opts.resizeAble && this.initResize();
    this.$el.__vue__ = this;
    this.isAdmin = this.userInfo && this.userInfo.env$login_na === 'admin';
    this._addBehavior();
    this.$nextTick(function () {
      _this.$el.setAttribute('QZ_VUE_WIDGET', '');
      _this.$el.data && _this.$el.data('QZ_VUE_WIDGET', _this);
      _this.$http.get(_this.baseUrl + 'ks-prj/sys/config/getConf', {
        params: {
          JID: localStorage.getItem('__JID__'),
          conf_type: 'symbol'
        }
      }, { emulateJSON: true }).then(function (res) {
        if (res.body && res.body.status) {
          var data = res.body.obj || {};
          _this.customId = data.id || '';
          _this.selectedKey = data.conf_val ? 'custom' : _this.selectedKey;
          _this.symbolList.custom.value = data.conf_val ? data.conf_val.split(',') : [];
        }
      });
    });
    // /*输入问题处理*/
    window.selfEV = document.createEvent('HTMLEvents');
    window.selfEV.initEvent('input', false, true);

    // /*手动触发change*/
    window.selfEVC = document.createEvent('HTMLEvents');
    window.selfEVC.initEvent('change', false, true);
  },

  methods: {
    mousemove: function mousemove() {},

    // /*添加事件*/
    _addBehavior: function _addBehavior() {
      // document.addEventListener('keydown', keyFn.bind(this));
    },

    // /*获取当前触发的input框*/
    setOrignalDom: function setOrignalDom(el) {
      this.inputEl = el;
      this.selectedKey = 'math';
      this.selectedValue = ['≈', '≡', '≠', '＝', '≤', '≥', '≮', '≯', '∷', '±', '＋', '－', '×', '÷', '／', '∫', '∮', '∝', '∞', '∧', '∨', '∑', '∏', '∪', '∩', '∈', '∵', '∴', '⊥', '‖', '∠', '⌒', '⊙', '≌', '∽', '√'];
      if (this.symbolList.custom.value.length > 0) {
        this.selectedKey = 'custom';
        this.selectedValue = this.symbolList.custom.value;
      }
    },

    // /*设置接口url*/
    setBaseUrl: function setBaseUrl(baseUrl) {
      this.baseUrl = baseUrl;
    },

    // /*添加特殊符号*/
    addSymbol: function addSymbol(val) {
      var start = this.inputEl.selectionStart;
      var end = this.inputEl.selectionEnd;
      var value = this.inputEl.value;
      var val1 = '';
      var val2 = '';
      val1 = value.substring(0, start);
      val2 = value.substr(end);
      this.inputEl.value = val1 + val + val2;
      this.inputEl.focus();
      this.inputEl.selectionStart = start + val.length;
      this.inputEl.selectionEnd = start + val.length;
      this.fireEvent();
    },

    // /*//显隐*/
    hide: function hide(val) {
      this.show = !val;
      if (this.show) {
        this.userInfo = JSON.parse(localStorage.getItem('userInfo') || null);
        this.isAdmin = this.userInfo && this.userInfo.env$login_na === 'admin';
      }
      if (val && this.inputEl && this.inputEl.dispatchEvent) {
        this.inputEl.dispatchEvent(window.selfEVC);
      }
    },

    // /*/选中操作*/
    operateStyle: function operateStyle(val, event) {
      var start = this.inputEl.selectionStart;
      var end = this.inputEl.selectionEnd;
      var value = this.inputEl.value;
      var val1 = void 0,
          val2 = void 0,
          val3 = void 0;
      val1 = value.substring(0, start);
      val2 = value.substr(end);
      val3 = value.substring(start, end);
      this.inputEl.value = val3 ? val1 + '<' + val + '>' + val3 + '</' + val + '>' + val2 : val1 + '<' + val + '></' + val + '>' + val2;
      this.inputEl.focus();
      this.fireEvent();
    },
    change: function change(val) {
      this.selectedValue = this.symbolList[val].value;
      if (this.selectedKey === 'custom' && this.selectedValue.length === 0) {
        this.showAddBox = true;
      }
      this.inputEl.focus();
    },
    add: function add() {
      var _this2 = this;

      if (this.selectedValue.length !== 0 && this.customValue === '') {
        this.$message.warning('请添加字符');
        return;
      }
      var newValues = this.customValue.replace(/\n/g, ',');
      this.$http.post(this.baseUrl + 'ks-prj/sys/config/save', {
        JID: localStorage.getItem('__JID__'),
        conf_val: newValues,
        conf_type: 'symbol',
        id: this.customId
      }, { emulateJSON: true }).then(function (res) {
        if (res.body.status) {
          _this2.selectedValue = res.body.obj.conf_val.split(',');
          _this2.symbolList.custom.value = res.body.obj.conf_val.split(',');
          _this2.customValue = '';
          _this2.showAddBox = false;
          _this2.$message.success('添加成功');
        } else {
          _this2.$message.error('添加失败');
        }
      });
    },
    showAddPage: function showAddPage() {
      this.showAddBox = !this.showAddBox;
      if (this.styleName.includes('bottom')) {
        var values = this.selectedValue;
        var startIndex = 0;
        var parts = [];
        var length = values.length;
        var fn = function fn(start) {
          var s = start * 10;
          if (s < length) {
            parts.push(values.slice(startIndex, s));
            startIndex = s;
            start = start + 1;
            fn(start);
          } else {
            parts.push(values.slice(startIndex, length));
          }
        };
        fn(1);
        this.customValue = parts.join('\n');
        this.styleName = 'el-icon-caret-top';
      } else {
        this.styleName = 'el-icon-caret-bottom';
      }
    },
    fireEvent: function fireEvent() {
      this.inputEl.dispatchEvent(window.selfEV);
    },
    displayDel: function displayDel(event, show) {
      if (this.selectedKey !== 'custom2') return;
      if (show) {

        event.target.querySelector('span').style.display = 'inline-block';
      } else {
        event.target.querySelector('span').style.display = 'none';
      }
    },
    delSymbol: function delSymbol(event, str) {
      var _this3 = this;

      event.stopPropagation();
      var newArr = this.selectedValue.filter(function (v) {
        return v !== str;
      });
      this.$http.post(this.baseUrl + 'ks-prj/sys/config/save', {

        JID: localStorage.getItem('__JID__'),
        conf_val: newArr.join(','),
        conf_type: 'symbol',
        id: this.customId
      }, { emulateJSON: true }).then(function (res) {
        if (res.body.status) {
          if (res.body.obj.conf_val) {
            _this3.selectedValue = res.body.obj.conf_val.split(',');
            _this3.symbolList.custom.value = res.body.obj.conf_val.split(',');
          } else {
            _this3.selectedValue = [];
            _this3.symbolList.custom.value = [];
          }
          _this3.customValue = '';
          _this3.showAddBox = false;
          _this3.$message.success('删除成功');
        } else {
          _this3.$message.error('删除失败');
        }
      });
      this.fireEvent();
    },
    options: function options() {
      var opts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

      Object.assign(this.opts, opts);
      if (!this.initResizeSign) {
        this.initResize();
      }
    },
    initResize: function initResize() {
      this.initResizeSign = true;
      var _opts2 = this.opts,
          maxWidth = _opts2.maxWidth,
          maxHeight = _opts2.maxHeight,
          minWidth = _opts2.minWidth,
          minHeight = _opts2.minHeight;

      var resezeRef = this.$refs['symbolbox-resize-dot'];
      var w = 0,
          h = 0;

      var symbolboxRef = null;
      var getLast = function getLast(ev) {
        var el = symbolboxRef || (symbolboxRef = document.querySelector('#symbolbox'));

        var _ref = el && el.getBoundingClientRect() || {},
            width = _ref.width,
            height = _ref.height;

        w = width;
        h = height;
        return { width: width, height: height };
      };
      var handleMousedown = function handleMousedown(ev) {
        document.addEventListener('mousemove', handleMousemove);
        document.addEventListener('mouseup', handleMouseup);
        symbolboxRef.style.userSelect = 'none';
        getLast();
      };
      var handleMousemove = function handleMousemove(ev) {
        getLast();
        var movementX = ev.movementX,
            movementY = ev.movementY;

        if (!symbolboxRef) return false;
        if (movementX > 0 && w < maxWidth || movementX < 0 && w > minWidth) {
          symbolboxRef.style.width = w + movementX + 'px';
        }
        if (movementY > 0 && h < maxHeight || movementY < 0 && h > minHeight) {
          symbolboxRef.style.height = h + movementY + 'px';
        }
      };
      var handleMouseup = function handleMouseup(ev) {
        document.removeEventListener('mousemove', handleMousemove);
        document.removeEventListener('mouseup', handleMouseup);
        symbolboxRef.style.userSelect = 'initial';
      };

      resezeRef.addEventListener('mousedown', handleMousedown);
    }
  },
  beforeDestroy: function beforeDestroy() {
    this.inputEl = '';
    // document.removeEventListener('keydown', keyFn);
  },

  directives: {
    dialogDrag: {
      inserted: function inserted(el, bindings, vnode) {
        var dialogEl = el;
        var headerEl = dialogEl.getElementsByClassName('symbol-list')[0];
        //
        dialogEl.style.top = '0';
        dialogEl.style.left = '0';
        headerEl.style.cursor = 'move';
        //
        var sty = dialogEl.currentStyle || window.getComputedStyle(dialogEl, null);
        headerEl.onmousedown = function (e) {
          // 计算当前元素距离可视区的距离
          var disX = e.clientX - headerEl.offsetLeft;
          var disY = e.clientY - headerEl.offsetTop;
          // 获取到的值带px 正则匹配替换
          var styL = void 0,
              styT = void 0;
          // 注意在ie中 第一次获取到的值为组件自带50% 移动之后赋值为px
          if (sty.left.includes('%')) {
            styL = +document.body.clientWidth * (+sty.left.replace(/\%/g, '') / 100);
            styT = +document.body.clientHeight * (+sty.top.replace(/\%/g, '') / 100);
          } else {
            styL = +sty.left.replace(/\px/g, '');
            styT = +sty.top.replace(/\px/g, '');
          }
          var screenWidth = document.documentElement.clientWidth;
          var screenHeight = document.documentElement.clientHeight;
          var minLeft = dialogEl.offsetLeft;
          var maxLeft = screenWidth - dialogEl.offsetLeft - dialogEl.offsetWidth;
          var minTop = dialogEl.offsetTop;
          var maxTop = screenHeight - dialogEl.offsetTop - dialogEl.offsetHeight;
          //
          if (el.scrollHeight > screenHeight) {
            headerEl.style.cursor = '';
            return;
          }
          document.onmousemove = function (e) {
            // console.log(e, e.target);
            if (e.target.className === 'el-radio-button__inner') {
              return;
            }
            e.preventDefault();
            // 计算移动的距离
            var left = e.clientX - disX;
            var top = e.clientY - disY;
            // 距离(边界)控制
            if (-left > minLeft) {
              left = -minLeft;
            } else if (left > maxLeft) {
              left = maxLeft;
            }
            if (-top > minTop) {
              top = -minTop;
            } else if (top > maxTop) {
              top = maxTop;
            }
            // 移动当前元素
            dialogEl.style.left = left + styL + 'px';
            dialogEl.style.top = top + styT + 'px';
          };
          document.onmouseup = function (e) {
            document.onmousemove = null;
            document.onmouseup = null;
          };
        };
      }
    }
  }
};

/***/ }),

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

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

/***/ }),

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

module.exports = require("element-ui-qz/lib/button");

/***/ }),

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

/**
 * Translates the list format produced by css-loader into something
 * easier to manipulate.
 */
module.exports = function listToStyles (parentId, list) {
  var styles = []
  var newStyles = {}
  for (var i = 0; i < list.length; i++) {
    var item = list[i]
    var id = item[0]
    var css = item[1]
    var media = item[2]
    var sourceMap = item[3]
    var part = {
      id: parentId + ':' + i,
      css: css,
      media: media,
      sourceMap: sourceMap
    }
    if (!newStyles[id]) {
      styles.push(newStyles[id] = { id: id, parts: [part] })
    } else {
      newStyles[id].parts.push(part)
    }
  }
  return styles
}


/***/ }),

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

module.exports = require("element-ui-qz/lib/col");

/***/ }),

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

"use strict";


exports.__esModule = true;

var _main = __webpack_require__(848);

var _main2 = _interopRequireDefault(_main);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

exports.default = _main2.default;

/***/ }),

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

"use strict";


exports.__esModule = true;

var _vue = __webpack_require__(13);

var _vue2 = _interopRequireDefault(_vue);

var _main = __webpack_require__(849);

var _main2 = _interopRequireDefault(_main);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var PopupBox = _vue2.default.extend(_main2.default);
var instance = void 0;
var Symbolbox = function Symbolbox(baseUrl) {
  instance = new PopupBox().$mount();
  instance.setBaseUrl(baseUrl);
  document.body.appendChild(instance.$el);
};
var handlerFn = function handlerFn(e) {
  var $dom = e.target;
  var isOpen = false;
  if ($dom.tagName.toLowerCase() === 'input' && ($dom.getAttribute('type') === 'input' || $dom.getAttribute('type') === 'text')) {
    isOpen = true;
  }
  if ($dom.tagName.toLowerCase() === 'textarea') {
    isOpen = true;
  }
  if ($dom.getAttribute('readonly') === 'readonly') {
    isOpen = false;
  }
  if ($dom.disabled) {
    isOpen = false;
  }
  if (isOpen && $dom.closest('#symbolbox') === null) {
    instance.hide(false);
    if (instance.inputEl !== $dom) {
      instance.setOrignalDom($dom);
    }
  } else if ($dom.closest('#symbolbox') === null) {
    instance.hide(true);
  } else if ($dom.tagName.toLowerCase() !== 'input' && $dom.closest('#symbolbox')) {
    instance.inputEl.focus();
  }
};
/*
const keydownFn = function(e) {
  let $dom = e.target;
  if (
    $dom.tagName.toLowerCase() === 'input' ||
    $dom.tagName.toLowerCase() === 'textarea'
  ) {
    instance.hide(true);
  }
};*/
Symbolbox.open = function () {
  document.addEventListener('mousedown', handlerFn);
  /* document.addEventListener('keydown', keydownFn);*/
};
Symbolbox.close = function () {
  instance && instance.hide(true);
  document.removeEventListener('mousedown', handlerFn);
};
Symbolbox.destroy = function () {
  instance && instance.$destroy();
};
Symbolbox.options = function (opts) {
  instance && instance.options(opts);
};

exports.default = Symbolbox;

/***/ }),

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

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_main_vue__ = __webpack_require__(237);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_main_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_main_vue__);
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_main_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_main_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_209b15f3_hasScoped_true_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_main_vue__ = __webpack_require__(859);
function injectStyle (ssrContext) {
  __webpack_require__(850)
}
var normalizeComponent = __webpack_require__(0)
/* script */


/* template */

/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-209b15f3"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
  __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_main_vue___default.a,
  __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_209b15f3_hasScoped_true_preserveWhitespace_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_main_vue__["a" /* default */],
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)

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


/***/ }),

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

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(851);
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var update = __webpack_require__(2)("76c4197a", content, true, {});

/***/ }),

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

exports = module.exports = __webpack_require__(1)(false);
// imports


// module
exports.push([module.i, ".symbolbox[data-v-209b15f3]{z-index:999999999;position:absolute;left:2px;top:2px}.symbolbox .symbolbox-resize-dot[data-v-209b15f3]{position:absolute;bottom:0;right:0;width:12px;height:12px;cursor:nw-resize;-webkit-user-select:none;-ms-user-select:none;user-select:none}.symbol-box[data-v-209b15f3]{left:2px;top:2px;z-index:9999;background-color:#fff;width:100%;height:100%;box-shadow:1px 1px 8px 2px #868686;border:2px solid #ccc}.toolsBox[data-v-209b15f3]{width:100px}.symbol-box .el-radio-button__inner[data-v-209b15f3]{line-height:1.5!important}.symbol-box .el-radio-group[data-v-209b15f3]{background-color:transparent;margin-top:1px;margin-left:2px}.symbol-box .el-radio-button[data-v-209b15f3]{border-width:0}.tools-item[data-v-209b15f3]{border-top-color:#a6a6a6;border-top-style:solid;border-top-width:0;border-bottom-color:#a6a6a6;border-bottom-style:solid;border-bottom-width:0;margin-top:10px;box-sizing:border-box;color:#888;cursor:pointer;display:inline-block;font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,SimSun,\"sans-serif\";font-size:14px;font-weight:500;height:40px;line-height:14px;padding:12px 0;position:relative;text-align:center;transition-duration:.3s;transition-property:all;transition-timing-function:cubic-bezier(.645,.045,.355,1);vertical-align:middle;white-space:nowrap;width:48px;-webkit-font-smoothing:antialiased}.tools-item[data-v-209b15f3]:hover{border-left-style:solid;border-left-width:5px;border-left-color:#409eff}.tools-item-selected[data-v-209b15f3],.tools-item[data-v-209b15f3]:hover{color:#409eff;background-color:#cfcfcf}.tools-item[data-v-209b15f3]:first-of-type{margin-top:75px}.add-symbol-box .symbol-form[data-v-209b15f3]{margin:2px;height:auto}.add-symbol-box .symbol-form .symbol-input[data-v-209b15f3]{width:85%}.add-symbol-box .symbol-form .symbol-btn[data-v-209b15f3]{margin-left:2%}.add-symbol-box .tri-button[data-v-209b15f3]{text-align:center;width:calc(100% - 2px);font-size:22px;color:#409eff;cursor:pointer;border:1px solid #eee;line-height:25px;float:left;height:25px}.add-symbol-box .tri-button[data-v-209b15f3]:hover{background-color:#efefef}.symbol-item[data-v-209b15f3]{border:1px solid #dcdfe6;box-sizing:border-box;color:#606266;cursor:pointer;display:inline-block;font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,SimSun,\"sans-serif\";font-size:14px;font-weight:500;height:40px;line-height:14px;outline-color:#606266;padding:12px 20px;position:relative;text-align:center;transition-duration:.3s;transition-property:all;transition-timing-function:cubic-bezier(.645,.045,.355,1);vertical-align:middle;white-space:nowrap;width:55px;-webkit-font-smoothing:antialiased}.symbol-item[data-v-209b15f3]:hover{color:#409eff;border-color:#409eff}.symbol-box .custom-delete[data-v-209b15f3]{width:12px;margin-left:18px;margin-top:-10px;position:absolute;font-size:10px;height:12px;display:inline-block;color:red}.symbol-box .show-delete[data-v-209b15f3]{display:inline-block}.symbol-box .hide-delete[data-v-209b15f3]{display:none}.symbol-box .el-header[data-v-209b15f3]{background:#f7f7f7!important;position:relative;height:35px!important}.symbol-list[data-v-209b15f3]{border-bottom:1px solid #dcdfe6}.symbol-box .el-aside[data-v-209b15f3]{background-color:#f0f0f0;text-align:center;height:auto;top:0!important;width:50px!important}.symbol-box .el-main[data-v-209b15f3]{margin-top:0;padding:0;overflow-y:auto;overflow-x:hidden}", ""]);

// exports


/***/ }),

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

module.exports = require("element-ui-qz/lib/radio");

/***/ }),

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

module.exports = require("element-ui-qz/lib/container");

/***/ }),

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

module.exports = require("element-ui-qz/lib/aside");

/***/ }),

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

module.exports = require("element-ui-qz/lib/main");

/***/ }),

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

module.exports = require("element-ui-qz/lib/header");

/***/ }),

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

module.exports = require("element-ui-qz/lib/radio-group");

/***/ }),

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

module.exports = require("element-ui-qz/lib/radio-button");

/***/ }),

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

"use strict";
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"},{name:"show",rawName:"v-show",value:(_vm.show),expression:"show"}],staticClass:"symbolbox",style:(_vm.cp_symbolboxStyle),attrs:{"id":"symbolbox"}},[_c('el-container',{staticClass:"symbol-box"},[_c('el-aside',{staticClass:"toolsBox",attrs:{"width":"50px"}},_vm._l((_vm.toolsList),function(item){return _c('div',{key:item.key,staticClass:"tools-item",on:{"click":function($event){$event.stopPropagation();return _vm.operateStyle(item.key,$event)},"mousemove":function($event){$event.stopPropagation();return _vm.mousemove(item.key,$event)}}},[_vm._v(_vm._s(item.label))])}),0),_c('el-container',{staticClass:"symbol-main"},[_c('el-header',{staticClass:"symbol-list",attrs:{"height":"35px"}},[_c('el-radio-group',{staticClass:"radio-box",attrs:{"size":"small"},on:{"change":_vm.change},model:{value:(_vm.selectedKey),callback:function ($$v) {_vm.selectedKey=$$v},expression:"selectedKey"}},_vm._l((_vm.symbolList),function(item,key){return _c('el-radio-button',{key:key,staticClass:"radio-box-item",attrs:{"label":key,"value":key,"border":false}},[_vm._v(_vm._s(item.label))])}),1)],1),_c('el-main',[(_vm.selectedKey==="custom" && _vm.isAdmin)?_c('div',{staticClass:"add-symbol-box"},[_c('transition',[(_vm.showAddBox)?_c('el-col',{staticClass:"symbol-form"},[_c('el-input',{staticClass:"symbol-input",attrs:{"type":"textarea","autosize":{ minRows: 2, maxRows: 16},"size":"mini","clearable":""},model:{value:(_vm.customValue),callback:function ($$v) {_vm.customValue=$$v},expression:"customValue"}}),_c('el-button',{staticClass:"symbol-btn",attrs:{"type":"primary","size":"mini"},on:{"click":_vm.add}},[_vm._v("保存")])],1):_vm._e()],1),_c('div',{staticClass:"tri-button",attrs:{"title":"手动添加"},on:{"click":_vm.showAddPage}},[_c('span',{class:[_vm.cStyle, _vm.styleName]})])],1):_vm._e(),_vm._l((_vm.selectedValue),function(value,index){return _c('div',{key:index,staticClass:"symbol-item",on:{"click":function($event){return _vm.addSymbol(value)},"mouseenter":function($event){return _vm.displayDel($event,true)},"mouseleave":function($event){return _vm.displayDel($event,false)}}},[(_vm.selectedKey==="custom1")?_c('span',{class:[_vm.delClass,"custom-delete", "el-icon-delete"],on:{"click":function($event){return _vm.delSymbol($event,value)}}}):_vm._e(),_vm._v("\r\n        "+_vm._s(value))])})],2)],1)],1),_c('div',{ref:"symbolbox-resize-dot",staticClass:"symbolbox-resize-dot"})],1)}
var staticRenderFns = []
var esExports = { render: render, staticRenderFns: staticRenderFns }
/* harmony default export */ __webpack_exports__["a"] = (esExports);

/***/ })

/******/ });