//>>built
define("mill/jssupport/form/_RequiredFieldMixin",["dojo/_base/declare","dojo/_base/lang","dojo/_base/array"],function(e,f,d){return mill.registerAlias("office.form._RequiredWidgetMixin",e("mill.jssupport.form._RequiredWidgetMixin",null,{required:null,_requiredSymbol:"\x3cspan class\x3d'red'\x3e*\x3c/span\x3e",_setRequiredAttr:function(a){this.controlNode.set("required",this.required=a);a=this.get("text");if(f.isObject(a)){var b=d.filter(a.RU.split(";"),function(c){return c!==this._requiredSymbol},
this);this.required&&b.push(this._requiredSymbol);a.RU=b.join(";");b=d.filter(a.EN.split(";"),function(c){return c!==this._requiredSymbol},this);this.required&&b.push(this._requiredSymbol);a.EN=b.join(";");!this.required&&this.controlNode&&this.controlNode.validate();this.set("text",a)}else a&&(b=d.filter(a.split(";"),function(c){return c!==this._requiredSymbol},this),this.required?b.push(this._requiredSymbol):this.controlNode&&this.controlNode.validate(),this.set("text",b.join(";")))}}))});