(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5c8f949a"],{2163:function(t,e,i){},"998b":function(t,e,i){"use strict";i("2163")},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)},s=[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"}})])}],a=(i("fc13"),i("9b5f"),i("2665")),h=i.n(a),r=i("30cb"),c=i.n(r),o=(i("f02c"),i("493e"),i("4846"),i("8f26"),i("4952"),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,s=e.shiftKey||e.metaKey;n&&s&&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("5d22")),f=Object(d["a"])(u,n,s,!1,null,null,null);e["default"]=f.exports}}]);