(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4b3210ec"],{"998b":function(t,e,i){"use strict";var n=i("fa0a"),a=i.n(n);a.a},c41a:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},a=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"cl-code"},[i("textarea",{staticClass:"cl-code",attrs:{id:"editor",height:"height",width:"width"}})])}],s=(i("b3f9"),i("d780"),i("7c0c")),h=i.n(s),r=i("7021"),c=i.n(r),o=(i("520c"),i("7d2c"),i("fe18"),i("8fb8"),i("1e3d"),i("8bc2")),l={props:{height:String,width:String,value:null,options:Object},data:function(){return{editor:null}},watch:{value:function(t){this.editor&&t!=this.getValue().replace(/\s/g,"")&&this.setValue(t)}},mounted:function(){var t=this;this.editor=h.a.fromTextArea(document.getElementById("editor"),Object(o["deepMerge"])({mode:"javascript",theme:"ambiance",styleActiveLine:!0,lineNumbers:!0,lineWrapping:!0,indentUnit:4},this.options)),this.editor.on("change",(function(e){t.$emit("input",e.getValue().replace(/\s/g,""))})),this.$emit("load",this.editor);var e=this.$el.querySelector(".CodeMirror"),i=e.style;this.height&&(i.height=this.height||"50px"),this.width&&(i.width=this.width),this.$el.onkeydown=function(e){var i=e.keyCode||e.which||e.charCode,n=e.altKey||e.metaKey,a=e.shiftKey||e.metaKey;n&&a&&70==i&&t.setValue()},this.setValue(this.value)},methods:{setValue:function(t){this.editor&&this.editor.setValue(c()(t||this.getValue()),{indent_size:4,indent_with_tabs:!0,space_in_paren:!0})},getValue:function(){return this.editor.getValue()}}},u=l,d=(i("998b"),i("623f")),f=Object(d["a"])(u,n,a,!1,null,null,null);e["default"]=f.exports},fa0a:function(t,e,i){}}]);