//>>built
define("mill/jssupport/TranslatableNode","dojo/_base/declare dojo/_base/lang dojo/dom-style dojo/dom-construct dijit/_WidgetBase dijit/_TemplatedMixin mill/jssupport/base mill/jssupport/_TranslationMixin mill/jssupport/layout/_LayoutMixin".split(" "),function(k,f,g,h,l,m,d,n,p){return mill.registerAlias("office.TranslatableNode",k("mill.jssupport.TranslatableNode",[l,m,n,p],{baseClass:"translatableNode",templateString:"\x3cdiv style\x3d'display: none'\x3e\x3cspan data-dojo-attach-point\x3d'textNode' data-dojo-attach-event\x3d'onclick: onClick'\x3e\x3c/span\x3e\x3c/div\x3e",
text:null,icon:null,display:"block",onClick:new Function,attributeMap:{textValue:{node:"textNode",type:"innerHTML"}},textValue:null,doProcessIR:null,_setTextAttr:function(a){if(null===a||void 0===a)a="";this.text=f.isFunction(a)?a.call():a;this.translate()},_setIconAttr:function(a){h.place(h.create("span",{className:this.icon=a}),this.domNode,"first")},_lastTranslated:null,translate:function(){this.inherited(arguments);var a=d.locale.toUpperCase(),b=dojo.toJson({text:this.text,locale:a});if(this._lastTranslated!==
b)if(this._lastTranslated=b,this.text){a=f.isObject(this.text)?(this.text[a]||"").split(";"):this.text.split(";");b="";for(var c=0;c<a.length;c++){var e=d.getLocalization(a[c]);null===e&&(e=a[c]);b+=e;this.domNode.setAttribute("untranslatedText",a[c])}this.set("textValue",b);g.set(this.domNode,{display:a&&b&&"\x26#160;"!==b?this.display:"none"});this.doProcessIR&&d.processInternetResources(this.domNode)}else this.set("textValue",""),g.set(this.domNode,{display:"none"})}}))});