(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d20952d"],{a921:function(e,a,t){"use strict";t.r(a);var i=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("data-template-render-preview",{attrs:{visible:e.dialogVisible,data:e.dataTemplate,"elasticsearch-enabled":e.elasticsearchEnabled,"dynamic-params":e.dynamicParams,"template-form-data":e.templateFormData},on:{close:e.handleClose,"action-event":e.handleActionEvent}})},l=[],n=t("6881"),s=t("2398"),c={components:{DataTemplateRenderPreview:s["a"]},props:{templateFormData:{type:Object},visible:{type:Boolean,default:!1},templateKey:{type:String},dynamicParams:{type:Object}},data:function(){return{elasticsearchEnabled:!1,dialogVisible:!1,dataTemplate:{}}},watch:{visible:{handler:function(e,a){e?this.loadData():this.dataTemplate={}},immediate:!0}},beforeDestroy:function(){this.dataTemplate=null},methods:{loadData:function(){var e=this;this.dataTemplate={},this.$utils.isEmpty(this.templateKey)||Object(n["getByKey"])({dataTemplateKey:this.templateKey}).then((function(a){e.dataTemplate=e.$utils.parseData(a.data);var t=a.variables;e.$utils.isNotEmpty(t)?e.elasticsearchEnabled=e.$utils.toBoolean(a.variables.elasticsearchEnabled):e.elasticsearchEnabled=!1,e.dialogVisible=!0})).catch((function(){}))},handleClose:function(e){this.$emit("close",e)},handleActionEvent:function(e,a){this.$emit("action-event",e,a)}}},o=c,d=t("2877"),r=Object(d["a"])(o,i,l,!1,null,null,null);a["default"]=r.exports}}]);