(function(){"use strict";u8.Crm.Widgets.ConfigurationLabel=function(e,t){this.FieldLabel(e,$.extend({},u8.Crm.Widgets.ConfigurationLabel.defaults,t))};u8.Crm.Widgets.ConfigurationLabel.defaults={};$.extend(u8.Crm.Widgets.ConfigurationLabel.prototype,{_updateText:function(){var e=this.getValue();if(e&&e!="-1"){u8.services.configuration.getConfigurationById(e,this._setLabelText.bind(this))}else{this.setText("")}},_setLabelText:function(e){this.setText(e?e.name:"")}});u8.Crm.Widgets.ConfigurationLabel.makeClass({name:"ConfigurationLabel",deriveFrom:u8.Crm.Widgets.FieldLabel,events:["ValueChange"]})})();