let bonusInputComponent = { props: { label: String, }, created: function() { }, data: function() { return { value: null, } }, methods: { submit: function() { if (this.value) this.$emit('propose', this.value) }, isNumber: function(evt) { evt = (evt) ? evt : window.event; var charCode = (evt.which) ? evt.which : evt.keyCode; if ((charCode > 31 && (charCode < 48 || charCode > 57)) && charCode !== 46) { evt.preventDefault();; } else { return true; } } }, template: `