//>>built
define("dojox/mobile/Overlay","dojo/_base/declare dojo/_base/lang dojo/sniff dojo/_base/window dojo/dom-class dojo/dom-geometry dojo/dom-style dojo/window dijit/_WidgetBase dojo/_base/array dijit/registry dojo/touch ./viewRegistry ./_css3".split(" "),function(n,p,g,h,c,k,l,q,r,t,u,v,w,m){return n("dojox.mobile.Overlay",r,{baseClass:"mblOverlay mblOverlayHidden",buildRendering:function(){this.inherited(arguments);this.containerNode||(this.containerNode=this.domNode)},_reposition:function(){var a=k.position(this.domNode),
b=q.getBox(),d=w.getEnclosingScrollable(this.domNode);d&&(b.t-=d.getPos().y);if(a.y+a.h!=b.h||"absolute"!=l.get(this.domNode,"position")&&3>g("android"))a.y=b.t+b.h-a.h,l.set(this.domNode,{position:"absolute",top:a.y+"px",bottom:"auto"});return a},show:function(a){t.forEach(u.findWidgets(this.domNode),function(e){e&&"auto"==e.height&&"function"==typeof e.resize&&e.resize()});var b=this._reposition();a&&(a=k.position(a),b.y<a.y&&(h.global.scrollBy(0,a.y+a.h-b.y),this._reposition()));var d=this.domNode;
c.replace(d,["mblCoverv","mblIn"],["mblOverlayHidden","mblRevealv","mblOut","mblReverse","mblTransition"]);this.defer(function(){var e=this.connect(d,m.name("transitionEnd"),function(){this.disconnect(e);c.remove(d,["mblCoverv","mblIn","mblTransition"]);this._reposition()});c.add(d,"mblTransition")},100);var f=!1;this._moveHandle=this.connect(h.doc.documentElement,v.move,function(){f=!0});this._repositionTimer=setInterval(p.hitch(this,function(){f?f=!1:this._reposition()}),50);return b},hide:function(){var a=
this.domNode;this._moveHandle&&(this.disconnect(this._moveHandle),this._moveHandle=null,clearInterval(this._repositionTimer),this._repositionTimer=null);g("css3-animations")?(c.replace(a,["mblRevealv","mblOut","mblReverse"],["mblCoverv","mblIn","mblOverlayHidden","mblTransition"]),this.defer(function(){var b=this.connect(a,m.name("transitionEnd"),function(){this.disconnect(b);c.replace(a,["mblOverlayHidden"],["mblRevealv","mblOut","mblReverse","mblTransition"])});c.add(a,"mblTransition")},100)):c.replace(a,
["mblOverlayHidden"],["mblCoverv","mblIn","mblRevealv","mblOut","mblReverse"])},onBlur:function(a){return!1}})});