//>>built
define("mill/jssupport/form/_FieldMixin","dojo/_base/declare dojo/_base/lang dojo/dom-construct dijit/_TemplatedMixin dijit/_WidgetsInTemplateMixin mill/jssupport/base".split(" "),function(c,d,b,e,f,g){return mill.registerAlias("office.form._FieldMixin",c("mill.jssupport.form._FieldMixin",[e,f],{baseClass:"officeFormField",name:null,text:"",maxLength:null,textPiece:null,controlPiece:null,hideTextColumn:null,doProcessIR:null,dataExample:null,_dataExampleWidget:null,postMixInProperties:function(){this.inherited(arguments);
0<this.maxLength&&(this.observer=this.observer?this.observer+", setCharactersRemaining":"setCharactersRemaining");this.hideTextColumn=null===this.hideTextColumn?!this.text:"true"===this.hideTextColumn||!0===this.hideTextColumn||"1"===this.hideTextColumn;this.textPiece=this.textPiece||5;this.controlPiece=this.hideTextColumn?"12":12-parseInt(this.textPiece)},_setNameAttr:function(a){this.controlNode.set("name",this.name=a)},_setTextAttr:function(a){this.translatableNode.set("text",this.text=a)},_setMaxLengthAttr:function(a){this.controlNode.set("maxLength",
this.maxLength=a);this.charactersRemainingWidget=new office.TranslatableNode({display:"inline",text:"Office.CharactersRemaining;: ;"+this.maxLength},b.create("div",{},this.maxLengthNode),"first")},_setHideTextColumnAttr:function(a){this.hideTextColumn=a;this.textColumnNode.set("hideOnDesktop",this.hideTextColumn);this.textColumnNode.set("hideOnPad",this.hideTextColumn);this.textColumnNode.set("hideOnMobile",this.hideTextColumn)},_setDataExampleAttr:function(a){this.containerNode&&a&&"string"===typeof a&&
(this._dataExampleWidget=new office.TranslatableNode({text:a,className:"small dim"},b.create("div",null,this.containerNode,"after")))},getFormContentWidget:function(){for(var a=this;!a.isInstanceOf(office.form._FormContent)&&a.getParent();)a=a.getParent();return a.isInstanceOf(office.form._FormContent)?a:null},getUnionFieldWidget:function(){for(var a=this;!a.isInstanceOf(office.form.UnionField)&&a.getParent();)a=a.getParent();return a.isInstanceOf(office.form.UnionField)?a:null},_setDoProcessIRAttr:function(a){this.translatableNode&&
d.isFunction(this.translatableNode.set)&&(this.translatableNode.set("doProcessIR",this.doProcessIR=a),this.translatableNode.domNode&&g.processInternetResources(this.translatableNode.domNode))}}))});