//>>built
define("dijit/DialogUnderlay","dojo/_base/declare dojo/_base/lang dojo/aspect dojo/dom-attr dojo/dom-style dojo/on dojo/window ./_Widget ./_TemplatedMixin ./BackgroundIframe ./Viewport ./main".split(" "),function(h,e,t,k,l,f,g,m,n,p,q,r){var c=h("dijit.DialogUnderlay",[m,n],{templateString:"\x3cdiv class\x3d'dijitDialogUnderlayWrapper'\x3e\x3cdiv class\x3d'dijitDialogUnderlay' tabIndex\x3d'-1' data-dojo-attach-point\x3d'node'\x3e\x3c/div\x3e\x3c/div\x3e",dialogId:"","class":"",_modalConnects:[],_setDialogIdAttr:function(a){k.set(this.node,
"id",a+"_underlay");this._set("dialogId",a)},_setClassAttr:function(a){this.node.className="dijitDialogUnderlay "+a;this._set("class",a)},postCreate:function(){this.ownerDocumentBody.appendChild(this.domNode);this.own(f(this.domNode,"keydown",e.hitch(this,"_onKeyDown")));this.inherited(arguments)},layout:function(){var a=this.node.style,d=this.domNode.style;d.display="none";var b=g.getBox(this.ownerDocument);d.top=b.t+"px";d.left=b.l+"px";a.width=b.w+"px";a.height=b.h+"px";d.display="block"},show:function(){this.domNode.style.display=
"block";this.open=!0;this.layout();this.bgIframe=new p(this.domNode);var a=g.get(this.ownerDocument);this._modalConnects=[q.on("resize",e.hitch(this,"layout")),f(a,"scroll",e.hitch(this,"layout"))]},hide:function(){this.bgIframe.destroy();delete this.bgIframe;for(this.domNode.style.display="none";this._modalConnects.length;)this._modalConnects.pop().remove();this.open=!1},destroy:function(){for(;this._modalConnects.length;)this._modalConnects.pop().remove();this.inherited(arguments)},_onKeyDown:function(){}});
c.show=function(a,d){var b=c._singleton;!b||b._destroyed?b=r._underlay=c._singleton=new c(a):a&&b.set(a);l.set(b.domNode,"zIndex",d);b.open||b.show()};c.hide=function(){var a=c._singleton;a&&!a._destroyed&&a.hide()};return c});