(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d217e28"],{c940:function(t,a,e){"use strict";e.r(a);var n=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"entgelt-component"},[e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 col-md-4"},[e("InputField",{attrs:{label:"Ausgabeaufschlag",type:"percent",disabled:t.config.isAAReadOnly},on:{change:function(a){return t.emitChangeEvent()}},model:{value:t.inputAA,callback:function(a){t.inputAA=a},expression:"inputAA"}})],1),t.config.isAAReadOnly?t._e():e("div",{staticClass:"col-12 col-md-4"},[e("InputField",{attrs:{label:"normal",type:"percent",disabled:!0},model:{value:t.displayAANormal,callback:function(a){t.displayAANormal=a},expression:"displayAANormal"}})],1),e("div",{staticClass:"col-12 col-md-4"},[e("InputField",{attrs:{label:"entspricht Rabatt",type:"percent",disabled:!0},model:{value:t.calculateRabatt,callback:function(a){t.calculateRabatt=a},expression:"calculateRabatt"}})],1)])])},i=[],l=e("5530"),c=e("2f62"),s=e("64c5"),u=e("c704"),o=e("454f"),r=e("a2c9"),p={props:{config:{type:Object,required:!0},antragData:{type:Object}},emits:["change"],data:function(){return{inputAA:"",displayAANormal:""}},computed:Object(l["a"])(Object(l["a"])({},Object(c["b"])({loginData:s["default"].GETTERS.GET_LOGIN_DATA})),{},{calculateRabatt:function(){return this.displayAANormal?Math.round(100-this.inputAA/this.displayAANormal*100||0):""},initValues:function(){this.inputAA=this.antragData&&this.antragData["inputAA"]&&o["b"].convertStringToNumber(this.antragData["inputAA"]),this.displayAANormal=Object(r["c"])(this.antragData&&this.antragData["displayAANormal"]||"",5)}}),mounted:function(){this.initValues},watch:{inputAA:function(t){this.calculateRabatt}},methods:{emitChangeEvent:function(){this.$emit("change",this.inputAA)}},components:{InputField:u["default"]}},d=p,A=e("2877"),b=Object(A["a"])(d,n,i,!1,null,null,null);a["default"]=b.exports}}]);