//>>built
require({cache:{"url:dojox/form/resources/PasswordValidator.html":'\x3cdiv dojoAttachPoint\x3d"containerNode"\x3e\n\t\x3cinput type\x3d"hidden" name\x3d"${name}" value\x3d"" dojoAttachPoint\x3d"focusNode" /\x3e\n\x3c/div\x3e'}});
define("dojox/form/PasswordValidator","dojo/_base/array dojo/_base/lang dojo/dom-attr dojo/i18n dojo/query dojo/keys dijit/form/_FormValueWidget dijit/form/ValidationTextBox dojo/text!./resources/PasswordValidator.html dojo/i18n!./nls/PasswordValidator dojo/_base/declare".split(" "),function(c,f,h,p,q,r,t,k,u,x,d){f=d("dojox.form._ChildTextBox",k,{containerWidget:null,type:"password",reset:function(){k.prototype._setValueAttr.call(this,"",!0);this._hasBeenBlurred=!1},postCreate:function(){this.inherited(arguments);
this.name||h.remove(this.focusNode,"name");this.connect(this.focusNode,"onkeypress","_onChildKeyPress")},_onChildKeyPress:function(a){a&&a.keyCode==r.ENTER&&this._setBlurValue()}});var m=d("dojox.form._OldPWBox",f,{_isPWValid:!1,_setValueAttr:function(a,b){""===a&&(a=m.superclass.attr.call(this,"value"));null!==b&&(this._isPWValid=this.containerWidget.pwCheck(a));this.inherited(arguments);this.containerWidget._childValueAttr(this.containerWidget._inputWidgets[1].get("value"))},isValid:function(a){return this.inherited("isValid",
arguments)&&this._isPWValid},_update:function(a){this._hasBeenBlurred&&this.validate(!0);this._onMouse(a)},_getValueAttr:function(){return this.containerWidget._started&&this.containerWidget.isValid()?this.inherited(arguments):""},_setBlurValue:function(){var a=k.prototype._getValueAttr.call(this);this._setValueAttr(a,this.isValid?this.isValid():!0)}}),v=d("dojox.form._NewPWBox",f,{required:!0,onChange:function(){this.containerWidget._inputWidgets[2].validate(!1);this.inherited(arguments)}}),w=d("dojox.form._VerifyPWBox",
f,{isValid:function(a){return this.inherited("isValid",arguments)&&this.get("value")==this.containerWidget._inputWidgets[1].get("value")}});return d("dojox.form.PasswordValidator",t,{required:!0,_inputWidgets:null,oldName:"",templateString:u,_hasBeenBlurred:!1,isValid:function(a){return c.every(this._inputWidgets,function(b){b&&b._setStateClass&&b._setStateClass();return!b||b.isValid()})},validate:function(a){return c.every(c.map(this._inputWidgets,function(b){return b&&b.validate?(b._hasBeenBlurred=
b._hasBeenBlurred||this._hasBeenBlurred,b.validate()):!0},this),function(b){return b})},reset:function(){this._hasBeenBlurred=!1;c.forEach(this._inputWidgets,function(a){a&&a.reset&&a.reset()},this)},_createSubWidgets:function(){var a=this._inputWidgets,b=p.getLocalization("dojox.form","PasswordValidator",this.lang);c.forEach(a,function(n,g){if(n){var e={containerWidget:this};if(0===g){e.name=this.oldName;e.invalidMessage=b.badPasswordMessage;var l=m}else 1===g?(e.required=this.required,l=v):2===
g&&(e.invalidMessage=b.nomatchMessage,l=w);a[g]=new l(e,n)}},this)},pwCheck:function(a){return!1},postCreate:function(){this.inherited(arguments);var a=this._inputWidgets=[];c.forEach(["old","new","verify"],function(b){a.push(q("input[pwType\x3d"+b+"]",this.containerNode)[0])},this);if(!a[1]||!a[2])throw Error('Need at least pwType\x3d"new" and pwType\x3d"verify"');if(this.oldName&&!a[0])throw Error('Need to specify pwType\x3d"old" if using oldName');this.containerNode=this.domNode;this._createSubWidgets();
this.connect(this._inputWidgets[1],"_setValueAttr","_childValueAttr");this.connect(this._inputWidgets[2],"_setValueAttr","_childValueAttr")},_childValueAttr:function(a){this.set("value",this.isValid()?a:"")},_setDisabledAttr:function(a){this.inherited(arguments);c.forEach(this._inputWidgets,function(b){b&&b.set&&b.set("disabled",a)})},_setRequiredAttr:function(a){this.required=a;h.set(this.focusNode,"required",a);this.focusNode.setAttribute("aria-required",a);c.forEach(this._inputWidgets,function(b){b&&
b.set&&b.set("required",a)})},_setValueAttr:function(a){this.inherited(arguments);h.set(this.focusNode,"value",a)},_getValueAttr:function(){return this.value||""},focus:function(){var a=!1;c.forEach(this._inputWidgets,function(b){!b||b.isValid()||a||(b.focus(),a=!0)});a||this._inputWidgets[1].focus()}})});