//>>built
define("dojox/mobile/Opener","dojo/_base/declare dojo/_base/Deferred dojo/_base/lang dojo/_base/window dojo/dom-class dojo/dom-construct dojo/dom-style dojo/dom-geometry ./Tooltip ./Overlay ./lazyLoadUtils".split(" "),function(d,g,h,c,k,l,e,m,n,p,q){var f=k.contains(c.doc.documentElement,"dj_phone");d=d("dojox.mobile.Opener",f?p:n,{lazy:!1,requires:"",buildRendering:function(){this.inherited(arguments);this.cover=l.create("div",{onclick:h.hitch(this,"_onBlur"),"class":"mblOpenerUnderlay",style:{position:f?
"absolute":"fixed",backgroundColor:"transparent",overflow:"hidden",zIndex:"-1"}},this.domNode,"first")},onShow:function(a){},onHide:function(a,b){},show:function(a,b){if(this.lazy){this.lazy=!1;var r=this;return g.when(q.instantiateLazyWidgets(this.domNode,this.requires),function(){return r.show(a,b)})}this.node=a;this.onShow(a);e.set(this.cover,{top:"0px",left:"0px",width:"0px",height:"0px"});this._resizeCover(m.position(this.domNode,!1));return this.inherited(arguments)},hide:function(a){this.inherited(arguments);
this.onHide(this.node,a)},_reposition:function(){var a=this.inherited(arguments);this._resizeCover(a);return a},_resizeCover:function(a){if(f){if(parseInt(e.get(this.cover,"top"))!=-a.y||parseInt(e.get(this.cover,"height"))!=a.y){var b=Math.max(a.x,0);e.set(this.cover,{top:-a.y+"px",left:-b+"px",width:a.w+b+"px",height:a.y+"px"})}}else e.set(this.cover,{width:Math.max(c.doc.documentElement.scrollWidth||c.body().scrollWidth||c.doc.documentElement.clientWidth)+"px",height:Math.max(c.doc.documentElement.scrollHeight||
c.body().scrollHeight||c.doc.documentElement.clientHeight)+"px"})},_onBlur:function(a){var b=this.onBlur(a);!1!==b&&this.hide(a);return b}});d.prototype.baseClass+=" mblOpener";return d});