"use strict";(self["webpackChunkcarabi_x2"]=self["webpackChunkcarabi_x2"]||[]).push([[492],{6897:function(a,t,e){e.r(t),e.d(t,{default:function(){return c}});var i=function(){var a=this,t=a._self._c;return t("div",a._l(a.values,(function(e){return t("div",{key:e.param.PARAM_ID,staticClass:"uk-margin-small-bottom",staticStyle:{display:"flex","flex-direction":"row"}},[t("label",{staticStyle:{width:"200px",display:"block","border-bottom":"1px solid #d5e1e6"},attrs:{"data-uk-tooltip":e.param.PARAM_DESCR}},[a._v(" "+a._s(e.param.PARAM_DESCR)+" ")]),t("action-param",{ref:"param",refInFor:!0,attrs:{value:e},on:{startEdit:function(t){return a.startEdit(e)},change:function(t){return a.changeValue(e,t)}}}),e.value?t("a",{staticClass:"uk-margin-small-left",staticStyle:{display:"block","min-width":"14px"},attrs:{href:"#",tabindex:"-1",title:"Очистить поле"},on:{click:function(t){return t.preventDefault(),a.clearValue(e)}}},[t("img",{attrs:{src:"/img/icons/icon__trash.svg","uk-svg":"",width:"14",height:"14"}})]):a._e()],1)})),0)},s=[],l={name:"ActionParamList",components:{ActionParam:()=>e.e(3156).then(e.bind(e,4795))},props:{params:Array},data(){return{values:[],editingVal:null}},computed:{},watch:{params(){this.cloneParams()}},async mounted(){this.cloneParams()},methods:{cloneParams(){this.values=this.params.map((a=>({param:a,dataType:null,value:a.DEFAULT_VALUE,display:a.DISPLAY_DEFAULT_VALUE?a.DISPLAY_DEFAULT_VALUE:""}))),this.$emit("init",this.values)},changeValue(a,t){a.value=t.value,a.display=t.display,a.dataType=t.dataType,this.$emit("change",this.values)},startEdit(a){this.editingVal&&this.editingVal.save(),this.editingVal=this.$refs.param.find((t=>t.value===a))},clearValue(a){a.value="",a.display="",a.dataType=null,this.$emit("change",this.values)}}},n=l,r=e(1656),u=(0,r.A)(n,i,s,!1,null,null,null),c=u.exports}}]);
//# sourceMappingURL=ActionParamList.2a996ab7.js.map