//>>built
define("mill/jssupport/layout/AwaitingOverlay","dojo/_base/declare dojo/Deferred dojo/when dijit/_WidgetBase dijit/_TemplatedMixin mill/jssupport/base".split(" "),function(b,c,d,e,f,g){return b("mill.jssupport.layout.AwaitingOverlay",[e,f],{baseClass:"awaitingOverlay awaitingOverlayHidden",templateString:"\x3cdiv\x3e\x3cdiv class\x3d'awaitingOverlayInner' data-dojo-attach-point\x3d'textNode'\x3e\x3c/div\x3e\x3c/div\x3e",handlers:null,textNode:null,postCreate:function(){this.inherited(arguments);this.handlers=
[]},registerHandler:function(a){this.textNode.innerHTML=g.getLocalization("Office.AwaitingOverlayText");a||(a=new c);this.handlers.push(a);this.domNode.classList.remove("awaitingOverlayHidden");d(a,this.handlerResolved.bind(this,a),this.handlerResolved.bind(this,a));return a},handlerResolved:function(a){a=this.handlers.indexOf(a);0<=a&&this.handlers.splice(a,1);this.isStillAwaiting()||this.domNode.classList.add("awaitingOverlayHidden")},isStillAwaiting:function(){return 0<this.handlers.filter(function(a){return!a.isResolved()}).length}})});