//>>built
require({cache:{"url:mill/jssupport/announcement.html":'\x3cdiv\x3e\x3cdiv class\x3d"officeAnnouncement-row" data-dojo-attach-point\x3d"rowNode"\x3e\x3cdiv class\x3d"icon-cell" data-dojo-attach-point\x3d"iconCell"\x3e\x3cdiv class\x3d"icon-cell-inner"\x3e\x3cspan data-dojo-attach-point\x3d"glyphicon"\x3e\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"text-cell" data-dojo-attach-point\x3d"textCellNode"\x3e\x3cdiv class\x3d"officeAnnouncement-body" data-dojo-attach-point\x3d"bodyNode"\x3e\x3cspan data-dojo-attach-point\x3d"textNode"\x3e\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e\x3cdiv data-dojo-attach-point\x3d"hideIcon" data-dojo-attach-event\x3d"onclick: _hide" class\x3d"hide-icon"\x3e\x26#215; \x3c/div\x3e\x3c/div\x3e\x3cdiv class\x3d"officeAnnouncement-toggle" data-dojo-attach-point\x3d"toggleNode" data-dojo-attach-event\x3d"onclick: _toggleExpand"\x3e\x3cspan class\x3d"toggle-chevron" data-dojo-attach-point\x3d"toggleChevron"\x3e\x3c/span\x3e\x3c/div\x3e\x3c/div\x3e'}});
define("mill/jssupport/Announcement","dojo/_base/declare dojo/_base/lang dojo/_base/fx dojo/dom-class dojo/dom-style dojo/Deferred dijit/_CssStateMixin dojo/text!mill/jssupport/announcement.html mill/jssupport/TranslatableNode".split(" "),function(g,e,h,c,d,k,l,m,f){return mill.registerAlias("office.Announcement",g("mill.jssupport.Announcement",[f,l],{baseClass:"officeAnnouncement",templateString:m,color:"blue",icon:"info",textAlign:"text-align-justify",hideIconTitle:"Office.Close",readOnly:null,
onHide:null,collapsedHeight:"4.5em",expanded:!1,attributeMap:e.delegate(f.prototype.attributeMap,{title:"hideIcon"}),title:null,_setTextAttr:function(){this._started&&this.bodyNode&&(this.bodyNode.style.transition="none",d.set(this.bodyNode,{maxHeight:this.collapsedHeight}),this.bodyNode.offsetHeight,this.bodyNode.style.transition="");this.inherited(arguments);this.text||this.set("icon","");this._started&&this._checkCollapsible()},_setColorAttr:function(b){this.color&&c.remove(this.domNode,this.color);
this.color=e.isFunction(b)?b.call():b;c.add(this.domNode,this.color)},_setIconAttr:function(b){c.remove(this.glyphicon,"icon-set-blocked icon-set-warning icon-set-bullhorn icon-set-confused icon-set-sad icon-set-smile icon-set-info".split(" "));this.icon="";if(b)switch(this.icon=e.isFunction(b)?b.call():b,this.icon){case "info":c.add(this.glyphicon,"icon-set-info");break;case "smile":c.add(this.glyphicon,"icon-set-smile");break;case "sad":c.add(this.glyphicon,"icon-set-sad");break;case "confused":c.add(this.glyphicon,
"icon-set-confused");break;case "bullhorn":c.add(this.glyphicon,"icon-set-bullhorn");break;case "warning":c.add(this.glyphicon,"icon-set-warning");break;case "blocked":c.add(this.glyphicon,"icon-set-blocked")}},_setTextAlignAttr:function(b){c.add(this.domNode,this.textAlign=b)},_setHideIconTitleAttr:function(b){this.translatableAttributes.title=this.hideIconTitle=b;this.translate()},startup:function(){this.inherited(arguments);this._checkCollapsible()},_checkCollapsible:function(){if(this.bodyNode&&
this.domNode&&this.domNode.parentNode){this._collapsibleRetry&&(clearTimeout(this._collapsibleRetry),this._collapsibleRetry=null);var b=this.expanded,a=this;setTimeout(function(){if(a.bodyNode)if(0===a.bodyNode.scrollHeight)a._collapsibleRetry||(a._collapsibleRetry=setTimeout(function(){a._collapsibleRetry=null;a._checkCollapsible()},200));else{var n=a.bodyNode.style.transition;a.bodyNode.style.transition="none";d.set(a.bodyNode,{maxHeight:a.collapsedHeight});a.bodyNode.offsetHeight;a.bodyNode.style.transition=
n;a.bodyNode.scrollHeight>a.bodyNode.clientHeight+2?(c.add(a.domNode,"officeAnnouncement-collapsible"),b&&a._applyExpandedState(!0)):(c.remove(a.domNode,"officeAnnouncement-collapsible"),c.remove(a.domNode,"officeAnnouncement-expanded"),a.expanded=!1,d.set(a.bodyNode,{maxHeight:"none"}))}},0)}},_toggleExpand:function(){this.expanded=!this.expanded;this._applyExpandedState(!1)},_applyExpandedState:function(b){var a=this;this.expanded?(c.add(this.domNode,"officeAnnouncement-expanded"),d.set(this.bodyNode,
{maxHeight:this.bodyNode.scrollHeight+"px"}),b?d.set(this.bodyNode,{maxHeight:"none"}):setTimeout(function(){a.expanded&&d.set(a.bodyNode,{maxHeight:"none"})},440)):(c.remove(this.domNode,"officeAnnouncement-expanded"),d.set(this.bodyNode,{maxHeight:this.bodyNode.scrollHeight+"px"}),this.bodyNode.offsetHeight,d.set(this.bodyNode,{maxHeight:this.collapsedHeight}))},_hide:function(){this.hide()},hide:function(){var b=new k;this.domNode?h.animateProperty({node:this.domNode,rate:10,properties:{opacity:{start:"1",
end:"0"}},onEnd:e.hitch(this,function(){this.onHide&&this.onHide();this.destroyRecursive();b.resolve()})}).play():b.resolve();return b.promise}}))});