//>>built
define("mill/jssupport/form/_TextFieldWidgetMixin","dojo/_base/declare dojo/_base/lang dojo/dom-class dojo/dom-construct dojo/dom-style mill/jssupport/form/_FieldWidgetMixin mill/jssupport/_TranslationMixin".split(" "),function(d,k,e,c,b,f,g){return mill.registerAlias("office.form._TextFieldWidgetMixin",d("mill.jssupport.form._TextFieldWidgetMixin",[f,g],{icon:null,placeHolderIdentifier:null,missingMessageIdentifier:null,invalidMessageIdentifier:null,_savedValue:null,_savedValueNode:null,_changed:null,
_setIconAttr:function(a){e.add(this.domNode,"has-icon");var h=c.place(c.create("div",{className:"icon"}),this.domNode,"last");c.create("span",{className:this.icon=a},h)},_setMissingMessageIdentifierAttr:function(a){this.translatableAttributes.missingMessage=this.missingMessageIdentifier=a;this.translate()},_setInvalidMessageIdentifierAttr:function(a){this.translatableAttributes.invalidMessage=this.invalidMessageIdentifier=a;this.translate()},_setPlaceHolderIdentifierAttr:function(a){this.translatableAttributes.placeHolder=
this.placeHolderIdentifier=a;this.translate()},hideForValue:function(a){if(a=this.getFieldWidget())a.maxLengthNode&&b.set(a.maxLengthNode,{display:"none"}),a.containerNode&&b.set(a.containerNode,{display:"none"}),a._dataExampleWidget&&b.set(a._dataExampleWidget.domNode,{display:"none"})},unhideForValue:function(){c.destroy(this._savedValueNode);var a=this.getFieldWidget();a&&(a.maxLengthNode&&b.set(a.maxLengthNode,{display:"block"}),a.containerNode&&b.set(a.containerNode,{display:"block"}),a._dataExampleWidget&&
b.set(a._dataExampleWidget.domNode,{display:"block"}));b.set(this.domNode,{display:"inline-block"})}}))});