(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3f74918f"],{"79c9":function(t,e,i){},"998b9":function(t,e,i){"use strict";var n=i("79c9"),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("104d"),i("9c58"),i("e04b")),c=i.n(s),h=i("c5c9"),r=i.n(h),o=(i("fd60"),i("a936"),i("cb7a"),i("a23e"),i("0c2c"),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=c.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(r()(t||this.getValue()),{indent_size:4,indent_with_tabs:!0,space_in_paren:!0})},getValue:function(){return this.editor.getValue()}}},u=l,d=(i("998b9"),i("5511")),f=Object(d["a"])(u,n,a,!1,null,null,null);e["default"]=f.exports}}]);