define(["Ti/_/declare","Ti/Gesture","Ti/Locale","Ti/_/UI/SuperView","Ti/UI"],function(t,e,i,n,o){var r=o.FILL,a=o.SIZE,d={post:function(){this._navGroup&&this._navGroup._updateNavBar()}};return t("Ti.UI.Window",n,{_defaultWidth:r,_defaultHeight:r,postscript:function(){if(this.url){var t=o.currentWindow;o._setWindow(this),require("Ti/_/include!sandbox!"+this.url),o._setWindow(t)}},_getTitle:function(){return i.getString(this.titleid,this.title)},constants:{url:void 0,bubbleParent:!1},properties:{modal:{set:function(t,e){if(t!==e)if(t){var i=this._modalParentContainer=o.createView();i._add(o.createView({backgroundColor:"#000",opacity:.5})),i._add(this._modalContentContainer=o.createView({width:a,height:a})),this._modalContentContainer.add(this)}else this._modalParentContainer&&(this._modalParentContainer._opened&&this._modalParentContainer.close(),this._modalContentContainer.remove(this),this._modalParentContainer=null,this._opened&&(this.close(),this.open()));return t}},orientation:{get:function(){return e.orientation}},barColor:d,barImage:d,leftNavButton:d,navBarHidden:d,rightNavButton:d,titleControl:d,titleImage:d,title:d,titleid:d,translucent:d}})});