(function(){"use strict";u8.Crm.Widgets.LyrisMessageFormatSelector=function(e,t){this.Widget(e,$.extend({},u8.Crm.Widgets.LyrisMessageFormatSelector.defaults,t));var s=this;u8.using({texts:["net_configoptions_text"]},function(){s._create()})};u8.Crm.Widgets.LyrisMessageFormatSelector.defaults={};$.extend(u8.Crm.Widgets.LyrisMessageFormatSelector.prototype,{_create:function(){var e=this.$("<div/>").appendTo(this.element)[0];this._comboBox=u8.widget("ComboBox",e,{parent:this,disabled:this.disabled,value:this.value,items:[{key:"3",text:$t("TXT_net_configoptions_text_35")},{key:"2",text:$t("TXT_net_configoptions_text_34")}],onDropDownSelectionChange:this._onComboBoxValueChanged.bind(this)})},setValue:function(e){this.value=e;if(this._comboBox){this._comboBox.setValue(e)}this.raise("ValueChange",{value:this.getValue()})},getValue:function(){if(!this._comboBox){return this.value}return this._comboBox.getValue()},_onComboBoxValueChanged:function(e,t){var s=t[e.keyProperty];this.setValue(s)},dispose:function(){if(this._isDisposed){return}if(this._comboBox){this._comboBox=null}this.Widget_dispose()}});u8.Crm.Widgets.LyrisMessageFormatSelector.makeClass({name:"LyrisMessageFormatSelector",deriveFrom:u8.Base.Widgets.Widget,events:["ValueChange"]})})();