(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-44e7d009"],{"0b18":function(t,e,i){"use strict";i("b212")},"7b34":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this;t._self._c;return t._m(0)},o=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"vue-codemirror-wrap"},[e("textarea")])}],r=i("53ca"),a=i("56b3");i("a7be");var s={props:{value:{type:String,default:""},options:{type:Object,default:function(){return{mode:"text/javascript",lineNumbers:!0,lineWrapping:!0}}}},data:function(){return{skipNextChangeEvent:!1}},ready:function(){var t=this;this.editor=a.fromTextArea(this.$el.querySelector("textarea"),this.options),this.editor.setValue(this.value),this.editor.on("change",(function(e){t.skipNextChangeEvent?t.skipNextChangeEvent=!1:(t.value=e.getValue(),t.$emit&&t.$emit("change",e.getValue()))}))},mounted:function(){var t=this;this.editor=a.fromTextArea(this.$el.querySelector("textarea"),this.options),this.editor.setValue(this.value),this.editor.on("change",(function(e){t.skipNextChangeEvent?t.skipNextChangeEvent=!1:t.$emit&&(t.$emit("change",e.getValue()),t.$emit("input",e.getValue()))}))},watch:{value:function(t,e){var i=this.editor.getValue();if(t!==i){this.skipNextChangeEvent=!0;var n=this.editor.getScrollInfo();this.editor.setValue(t),this.editor.scrollTo(n.left,n.top)}},options:function(t,e){if("object"===Object(r["a"])(t))for(var i in t)t.hasOwnProperty(i)&&this.editor.setOption(i,t[i])}},beforeDestroy:function(){this.editor&&this.editor.toTextArea()}},u=s,c=(i("0b18"),i("2877")),l=Object(c["a"])(u,n,o,!1,null,null,null);e["default"]=l.exports},b212:function(t,e,i){},c884:function(t,e,i){var n=i("56b3"),o=i("7b34");o=o.default||o,t.exports={CodeMirror:n,codemirror:o,install:function(t){t.component("codemirror",o)}}}}]);