/*
	Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/


window[esri._dojoScopeName||"dojo"]._xdResourceLoaded(function(_1,_2,_3){return {depends:[["provide","dojox.widget.Wizard"],["require","dijit.layout.StackContainer"],["require","dijit.layout.ContentPane"],["require","dijit.form.Button"],["require","dojo.i18n"],["requireLocalization","dijit","common",null,"ROOT,ar,ca,cs,da,de,el,es,fi,fr,he,hu,it,ja,kk,ko,nb,nl,pl,pt,pt-pt,ro,ru,sk,sl,sv,th,tr,zh,zh-tw","ROOT,ar,ca,cs,da,de,el,es,fi,fr,he,hu,it,ja,kk,ko,nb,nl,pl,pt,pt-pt,ro,ru,sk,sl,sv,th,tr,zh,zh-tw"],["requireLocalization","dojox.widget","Wizard",null,"ROOT,ar,ca,cs,da,de,el,es,fi,fr,he,hu,it,ja,kk,ko,nb,nl,pl,pt,pt-pt,ro,ru,sk,sl,sv,th,tr,zh,zh-tw","ROOT,ar,ca,cs,da,de,el,es,fi,fr,he,hu,it,ja,kk,ko,nb,nl,pl,pt,pt-pt,ro,ru,sk,sl,sv,th,tr,zh,zh-tw"]],defineResource:function(_4,_5,_6){if(!_4._hasResource["dojox.widget.Wizard"]){_4._hasResource["dojox.widget.Wizard"]=true;_4.provide("dojox.widget.Wizard");_4.require("dijit.layout.StackContainer");_4.require("dijit.layout.ContentPane");_4.require("dijit.form.Button");_4.require("dojo.i18n");_4.declare("dojox.widget.Wizard",[_5.layout.StackContainer,_5._Templated],{widgetsInTemplate:true,templateString:_4.cache("dojox.widget","Wizard/Wizard.html","<div class=\"dojoxWizard\" dojoAttachPoint=\"wizardNode\">\r\n    <div class=\"dojoxWizardContainer\" dojoAttachPoint=\"containerNode\"></div>\r\n    <div class=\"dojoxWizardButtons\" dojoAttachPoint=\"wizardNav\">\r\n        <button dojoType=\"dijit.form.Button\" type=\"button\" dojoAttachPoint=\"previousButton\">${previousButtonLabel}</button>\r\n        <button dojoType=\"dijit.form.Button\" type=\"button\" dojoAttachPoint=\"nextButton\">${nextButtonLabel}</button>\r\n        <button dojoType=\"dijit.form.Button\" type=\"button\" dojoAttachPoint=\"doneButton\" style=\"display:none\">${doneButtonLabel}</button>\r\n        <button dojoType=\"dijit.form.Button\" type=\"button\" dojoAttachPoint=\"cancelButton\">${cancelButtonLabel}</button>\r\n    </div>\r\n</div>\r\n"),nextButtonLabel:"",previousButtonLabel:"",cancelButtonLabel:"",doneButtonLabel:"",cancelFunction:null,hideDisabled:false,postMixInProperties:function(){this.inherited(arguments);var _7=_4.mixin({cancel:_4.i18n.getLocalization("dijit","common",this.lang).buttonCancel},_4.i18n.getLocalization("dojox.widget","Wizard",this.lang));var _8;for(_8 in _7){if(!this[_8+"ButtonLabel"]){this[_8+"ButtonLabel"]=_7[_8];}}},startup:function(){if(this._started){return;}this.inherited(arguments);this.connect(this.nextButton,"onClick","_forward");this.connect(this.previousButton,"onClick","back");if(this.cancelFunction){if(_4.isString(this.cancelFunction)){this.cancelFunction=_4.getObject(this.cancelFunction);}this.connect(this.cancelButton,"onClick",this.cancelFunction);}else{this.cancelButton.domNode.style.display="none";}this.connect(this.doneButton,"onClick","done");this._subscription=_4.subscribe(this.id+"-selectChild",_4.hitch(this,"_checkButtons"));this._started=true;},resize:function(){this.inherited(arguments);this._checkButtons();},_checkButtons:function(){var sw=this.selectedChildWidget;var _9=sw.isLastChild;this.nextButton.set("disabled",_9);this._setButtonClass(this.nextButton);if(sw.doneFunction){this.doneButton.domNode.style.display="";if(_9){this.nextButton.domNode.style.display="none";}}else{this.doneButton.domNode.style.display="none";}this.previousButton.set("disabled",!this.selectedChildWidget.canGoBack);this._setButtonClass(this.previousButton);},_setButtonClass:function(_a){_a.domNode.style.display=(this.hideDisabled&&_a.disabled)?"none":"";},_forward:function(){if(this.selectedChildWidget._checkPass()){this.forward();}},done:function(){this.selectedChildWidget.done();},destroy:function(){_4.unsubscribe(this._subscription);this.inherited(arguments);}});_4.declare("dojox.widget.WizardPane",_5.layout.ContentPane,{canGoBack:true,passFunction:null,doneFunction:null,startup:function(){this.inherited(arguments);if(this.isFirstChild){this.canGoBack=false;}if(_4.isString(this.passFunction)){this.passFunction=_4.getObject(this.passFunction);}if(_4.isString(this.doneFunction)&&this.doneFunction){this.doneFunction=_4.getObject(this.doneFunction);}},_onShow:function(){if(this.isFirstChild){this.canGoBack=false;}this.inherited(arguments);},_checkPass:function(){var r=true;if(this.passFunction&&_4.isFunction(this.passFunction)){var _b=this.passFunction();switch(typeof _b){case "boolean":r=_b;break;case "string":alert(_b);r=false;break;}}return r;},done:function(){if(this.doneFunction&&_4.isFunction(this.doneFunction)){this.doneFunction();}}});}}};});