Files
SIG/Scripts/AjaxControlToolkit/Release/PasswordStrength.js
2024-11-05 10:47:20 -07:00

1 line
24 KiB
JavaScript

Type.registerNamespace("Sys.Extended.UI"),Sys.Extended.UI.PasswordStrengthExtenderBehavior=function(e){Sys.Extended.UI.PasswordStrengthExtenderBehavior.initializeBase(this,[e]),this._levelArray=new Array,this._styleArray=new Array,this._txtPwdStrengthCssClass=null,this._barBorderCssClass=null,this._barIndicatorCssClass=null,this._displayPosition=Sys.Extended.UI.DisplayPosition.RightSide,this._strengthIndicator=Sys.Extended.UI.StrengthIndicatorTypes.Text,this._preferredPasswordLength=0,this._minimumNumericCharacters=0,this._minimumSymbolCharacters=0,this._requiresUpperAndLowerCaseCharacters=!1,this._helpHandleCssClass="",this._helpHandlePosition=Sys.Extended.UI.DisplayPosition.AboveRight,this._helpText="",this._helpStatusLabelID=null,this._displayDiv=null,this._helpDiv=null,this._barOuterDiv=null,this._barInnerDiv=null,this._keyPressHandler=null,this._blurHandler=null,this._helpClickHandler=null,this._prefixText=Sys.Extended.UI.Resources.PasswordStrength_StrengthPrompt,this._txtStrengthDescriptions=Sys.Extended.UI.Resources.PasswordStrength_DefaultStrengthDescriptions,this._strengthStyles="",this._barIndicatorStyles="",this._txtseparator=";",this._MIN_TXT_LEVEL_COUNT=2,this._MAX_TXT_LEVEL_COUNT=10,this._calcWeightings="50;15;15;20",this._minLowerCaseChars=0,this._minUpperCaseChars=0},Sys.Extended.UI.PasswordStrengthExtenderBehavior.prototype={initialize:function(){Sys.Extended.UI.PasswordStrengthExtenderBehavior.callBaseMethod(this,"initialize"),this._createIndicatorDisplayElement();var e=this.get_element();this._keyPressHandler=Function.createDelegate(this,this._onKeyPress),this._blurHandler=Function.createDelegate(this,this._onBlur),$addHandler(e,"keyup",this._keyPressHandler),$addHandler(e,"blur",this._blurHandler),(null==this._preferredPasswordLength||""==this._preferredPasswordLength||this._preferredPasswordLength<=0)&&(this._preferredPasswordLength=10,this.raisePropertyChanged("PreferredPasswordLength")),null!=this._calcWeightings&&""!=this._calcWeightings||(this._calcWeightings="50;15;15;20",this.raisePropertyChanged("CalculationWeightings")),this._getPasswordStrength()},_createIndicatorDisplayElement:function(){if(this._strengthIndicator==Sys.Extended.UI.StrengthIndicatorTypes.BarIndicator?this._createBarIndicatorDisplayElement():this._createTextDisplayElement(),1==this._createHelpDisplayElement()){$common.setVisible(this._helpDiv,!0);var e,t,s=$common.getBounds(this.get_element()),i=$common.getBounds(this._helpDiv),r=3;"LeftSide"==this._helpHandlePosition?(e=s.y+(s.height/2-i.height/2),t=s.x-i.width):"BelowRight"==this._helpHandlePosition?(e=s.y+s.height-r,t=s.x+s.width-r):"BelowLeft"==this._helpHandlePosition?(e=s.y+s.height-r,t=s.x-i.width+r):"RightSide"==this._helpHandlePosition?(e=s.y+(s.height/2-i.height/2),t=s.x+s.width):"AboveLeft"==this._helpHandlePosition?(e=s.y-i.height+r,t=s.x-i.width+r):(e=s.y-i.height+r,t=s.x+s.width-r),this._helpDiv.style.top=e+"px",this._helpDiv.style.left=t+"px"}},_createTextDisplayElement:function(){var e=document.createElement("label");e.style.position="absolute",e.style.visibility="hidden",e.style.display="none",e.style.zIndex=Sys.Extended.UI.zIndex.PasswordStrengthTextDisplay,this.get_element().id&&(e.id=this.get_element().id+"_PasswordStrength"),this._displayDiv=e,this._setTextDisplayLocation(e),document.body.appendChild(e),this._setTextDisplayStyle(0)},_setTextDisplayStyle:function(e){0==this._styleArray.length?this._txtPwdStrengthCssClass?this._displayDiv.className=this._txtPwdStrengthCssClass:this._displayDiv.style.backgroundColor="yellow":(this._displayDiv.style.backgroundColor="",this._txtPwdStrengthCssClass&&Sys.UI.DomElement.containsCssClass(this._displayDiv,this._txtPwdStrengthCssClass)&&Sys.UI.DomElement.removeCssClass(this._displayDiv,this._txtPwdStrengthCssClass),this._displayDiv.className=this._styleArray[e])},_setBarDisplayStyle:function(e){""!=this._barBorderCssClass?this._barOuterDiv.className=this._barBorderCssClass:(d1.style.width="200px",d1.style.borderStyle="solid",d1.style.borderWidth="1px"),0==this._styleArray.length?""!=this._barIndicatorCssClass?this._barInnerDiv.className=this._barIndicatorCssClass:this._barInnerDiv.style.backgroundColor="red":(this._barIndicatorCssClass&&Sys.UI.DomElement.containsCssClass(this._barInnerDiv,this._barIndicatorCssClass)&&Sys.UI.DomElement.removeCssClass(this._barInnerDiv,this._barIndicatorCssClass),this._barInnerDiv.className=this._styleArray[e])},_createBarIndicatorDisplayElement:function(){var e=document.createElement("div");e.style.position="absolute",e.style.visibility="hidden",e.style.display="none";var t=document.createElement("div");t.style.position="absolute",t.style.visibility="hidden",t.style.display="none",e.style.height=this.get_element().offsetHeight+4+"px",this.get_element().id&&(e.id=this.get_element().id+"_PasswordStrengthBar1",t.id=this.get_element().id+"_PasswordStrengthBar2"),this._barOuterDiv=e,this._barInnerDiv=t,this._extractStyles(),this._setBarDisplayStyle(0),document.body.appendChild(e),document.body.appendChild(t),this._setBarDisplayLocation(e,t)},_createHelpDisplayElement:function(){if(""!=this._helpHandleCssClass){var e=document.createElement("a");return e.style.position="absolute",e.style.visibility="hidden",e.style.display="none",e.href="#",e.title=Sys.Extended.UI.Resources.PasswordStrength_GetHelpRequirements,this.get_element().id&&(e.id=this.get_element().id+"_PasswordStrengthReqDisplay"),this._helpClickHandler=Function.createDelegate(this,this._onHelpClick),$addHandler(e,"click",this._helpClickHandler),this._helpDiv=e,this._helpDiv.className=this._helpHandleCssClass,null!=this.get_element().parentElement&&this.get_element().parentElement.canHaveChildren?this.get_element().parentElement.appendChild(e):document.body.appendChild(e),!0}return!1},_setTextDisplayLocation:function(e){var t=$common.getLocation(this.get_element()),s=$common.getBounds(this.get_element()),i=15;this._displayPosition==Sys.Extended.UI.DisplayPosition.LeftSide?(e.style.top=t.y+"px",e.style.left=t.x-s.width-i+"px"):"BelowRight"==this._displayPosition?(e.style.top=t.y+this.get_element().offsetHeight+"px",e.style.left=t.x+this.get_element().offsetWidth-this.get_element().offsetWidth/4+"px"):this._displayPosition==Sys.Extended.UI.DisplayPosition.BelowLeft?(e.style.top=t.y+this.get_element().offsetHeight+"px",e.style.left=t.x-i+"px"):this._displayPosition==Sys.Extended.UI.DisplayPosition.AboveRight?(e.style.top=t.y-this.get_element().offsetHeight+"px",e.style.left=t.x+this.get_element().offsetWidth-this.get_element().offsetWidth/4+"px"):this._displayPosition==Sys.Extended.UI.DisplayPosition.AboveLeft?(e.style.top=t.y-this.get_element().offsetHeight+"px",e.style.left=t.x-i+"px"):(e.style.top=t.y+"px",e.style.left=t.x+this.get_element().offsetWidth+i+"px")},_setBarDisplayLocation:function(e,t){if(this.get_element().offsetHeight>0){var s=$common.getBorderBox(e),i=$common.getPaddingBox(e),r=s.left+i.left,n=s.top+i.top;t.style.height=this.get_element().offsetHeight+"px",e.style.height=this.get_element().offsetHeight+"px";var a=$common.getLocation(this.get_element()),h=15;if(this._displayPosition==Sys.Extended.UI.DisplayPosition.LeftSide){var l=$common.getVisible(this._barOuterDiv);$common.setVisible(this._barOuterDiv,!0);var o=$common.getContentSize(e);$common.setVisible(this._barOuterDiv,l);var d=o.width;e.style.top=a.y+"px",e.style.left=a.x-parseInt(d)-h+"px",t.style.top=a.y+n+"px",t.style.left=a.x-parseInt(d)-h+r+"px"}else this._displayPosition==Sys.Extended.UI.DisplayPosition.BelowRight?(e.style.top=a.y+this.get_element().offsetHeight+"px",e.style.left=a.x+this.get_element().offsetWidth+"px",t.style.top=a.y+this.get_element().offsetHeight+n+"px",t.style.left=a.x+this.get_element().offsetWidth+r+"px"):this._displayPosition==Sys.Extended.UI.DisplayPosition.BelowLeft?(e.style.top=a.y+this.get_element().offsetHeight+"px",e.style.left=a.x+"px",t.style.top=a.y+this.get_element().offsetHeight+n+"px",t.style.left=a.x+r+"px"):this._displayPosition==Sys.Extended.UI.DisplayPosition.AboveRight?(e.style.top=a.y-this.get_element().offsetHeight+"px",e.style.left=a.x+this.get_element().offsetWidth+"px",t.style.top=a.y-this.get_element().offsetHeight+n+"px",t.style.left=a.x+this.get_element().offsetWidth+r+"px"):this._displayPosition==Sys.Extended.UI.DisplayPosition.AboveLeft?(e.style.top=a.y-this.get_element().offsetHeight+"px",e.style.left=a.x+"px",t.style.top=a.y-this.get_element().offsetHeight+n+"px",t.style.left=a.x+r+"px"):(e.style.top=a.y+"px",e.style.left=a.x+this.get_element().offsetWidth+h+"px",t.style.top=a.y+n+"px",t.style.left=a.x+this.get_element().offsetWidth+h+r+"px")}},_showStrength:function(){var e=this.get_element();if(1!=e.readOnly){var t=this._getPasswordStrength();if(this._strengthIndicator==Sys.Extended.UI.StrengthIndicatorTypes.BarIndicator){$common.setVisible(this._barOuterDiv,!0),$common.setVisible(this._barInnerDiv,!0);var s=0;null!=this._styleArray&&this._styleArray.length>0&&(s=parseInt(t/100*(this._styleArray.length-1))),this._setBarDisplayStyle(s),this._setBarDisplayLocation(this._barOuterDiv,this._barInnerDiv),this._showStrengthAsBarValue(t)}else{this._createTextDescriptions(this._txtStrengthDescriptions),$common.setVisible(this._displayDiv,!0);var s=parseInt(t/100*(this._levelArray.length-1)),i=this._levelArray[s];this._setTextDisplayStyle(s),this._setTextDisplayLocation(this._displayDiv),this._showStrengthAsText(i)}}},_showStrengthAsText:function(e){this._displayDiv.innerHTML=this._prefixText+e},_showStrengthAsBarValue:function(e){var t=$common.getContentSize(this._barOuterDiv),s=($common.getPaddingBox(this._barOuterDiv),parseInt(t.width*(e/100)));this._barInnerDiv.style.width=s+"px"},_getPasswordStrength:function(){var e=Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()).get_Value(),t="",s=0,i=this._calcWeightings.split(";");4!=i.length&&Sys.Debug.assert(null,Sys.Extended.UI.Resources.PasswordStrength_InvalidWeightingRatios);var r=parseInt(i[0]),n=parseInt(i[1]),a=parseInt(i[2]),h=parseInt(i[3]),l=e.length/this._preferredPasswordLength;l>1&&(l=1);var o=l*r;if(s+=o,l<1&&(t=String.format(Sys.Extended.UI.Resources.PasswordStrength_RemainingCharacters,this._preferredPasswordLength-e.length)),this._minimumNumericCharacters>0){var d=new RegExp("[0-9]","g"),_=this._getRegexCount(d,e);_>=this._minimumNumericCharacters&&(s+=n),_<this._minimumNumericCharacters&&(""!=t&&(t+=", "),t+=String.format(Sys.Extended.UI.Resources.PasswordStrength_RemainingNumbers,this._minimumNumericCharacters-_))}else s+=l*n;if(1==this._requiresUpperAndLowerCaseCharacters||"string"==typeof this._requiresUpperAndLowerCaseCharacters&&1==Boolean.parse(this._requiresUpperAndLowerCaseCharacters)){var p=new RegExp("[a-z]","g"),g=new RegExp("[A-Z]","g"),c=this._getRegexCount(p,e),y=this._getRegexCount(g,e);c>0||y>0?c>=this._minLowerCaseChars&&y>=this._minUpperCaseChars?s+=a:(this._minLowerCaseChars>0&&this._minLowerCaseChars-c>0&&(""!=t&&(t+=", "),t+=String.format(Sys.Extended.UI.Resources.PasswordStrength_RemainingLowerCase,this._minLowerCaseChars-c)),this._minUpperCaseChars>0&&this._minUpperCaseChars-y>0&&(""!=t&&(t+=", "),t+=String.format(Sys.Extended.UI.Resources.PasswordStrength_RemainingUpperCase,this._minUpperCaseChars-y))):(""!=t&&(t+=", "),t+=Sys.Extended.UI.Resources.PasswordStrength_RemainingMixedCase)}else s+=l*a;if(this._minimumSymbolCharacters>0){var u=new RegExp("[^a-z,A-Z,0-9, ]","g"),_=this._getRegexCount(u,e);_>=this._minimumSymbolCharacters&&(s+=h),_<this._minimumSymbolCharacters&&(""!=t&&(t+=", "),t+=String.format(Sys.Extended.UI.Resources.PasswordStrength_RemainingSymbols,this._minimumSymbolCharacters-_))}else s+=l*h;return this.set_helpText(t),s},_getRegexCount:function(e,t){var s=0;if(null!=t&&""!=t){var i=t.match(e);null!=i&&(s=i.length)}return s},_extractStyles:function(){null!=this._strengthStyles&&""!=this._strengthStyles&&(this._styleArray=this._strengthStyles.split(this._txtseparator))},_createTextDescriptions:function(e){this._levelArray=this._txtStrengthDescriptions.split(this._txtseparator),this._extractStyles(),this._styleArray.length>0&&this._styleArray.length!=this._levelArray.length&&Sys.Debug.assert(!1,Sys.Extended.UI.Resources.PasswordStrength_InvalidStrengthDescriptionStyles),(this._levelArray.length<this._MIN_TXT_LEVEL_COUNT||this._levelArray>this._MAX_TXT_LEVEL_COUNT)&&Sys.Debug.assert(!1,Sys.Extended.UI.Resources.PasswordStrength_InvalidStrengthDescriptions)},_onKeyPress:function(){this._showStrength()},_onBlur:function(){this._strengthIndicator==Sys.Extended.UI.StrengthIndicatorTypes.BarIndicator?($common.setVisible(this._barOuterDiv,!1),$common.setVisible(this._barInnerDiv,!1)):$common.setVisible(this._displayDiv,!1)},_onHelpClick:function(){""==this._helpText?alert(Sys.Extended.UI.Resources.PasswordStrength_Satisfied):alert(this._helpText)},dispose:function(){var e=this.get_element();this._keyPressHandler&&($removeHandler(e,"keyup",this._keyPressHandler),this._keyPressHandler=null),this._blurHandler&&($removeHandler(e,"blur",this._blurHandler),this._blurHandler=null),this._helpClickHandler&&($removeHandler(this._helpDiv,"click",this._helpClickHandler),this._helpClickHandler=null),this._displayDiv&&$common.setVisible(this._displayDiv,!1),this._barOuterDiv&&$common.setVisible(this._barOuterDiv,!1),this._barInnerDiv&&$common.setVisible(this._barInnerDiv,!1),""!=this._helpHandleCssClass&&this._helpDiv&&$common.setVisible(this._helpDiv,!1),Sys.Extended.UI.PasswordStrengthExtenderBehavior.callBaseMethod(this,"dispose")},get_preferredPasswordLength:function(){return this._preferredPasswordLength},set_preferredPasswordLength:function(e){this._preferredPasswordLength!=e&&(this._preferredPasswordLength=e,this.raisePropertyChanged("preferredPasswordLength"))},get_PreferredPasswordLength:function(){return Sys.Extended.Deprecated("get_PreferredPasswordLength()","get_preferredPasswordLength()"),this.get_preferredPasswordLength()},set_PreferredPasswordLength:function(e){Sys.Extended.Deprecated("set_PreferredPasswordLength(value)","set_preferredPasswordLength(value)"),this.set_preferredPasswordLength(e)},get_minimumNumericCharacters:function(){return this._minimumNumericCharacters},set_minimumNumericCharacters:function(e){this._minimumNumericCharacters!=e&&(this._minimumNumericCharacters=e,this.raisePropertyChanged("minimumNumericCharacters"))},get_MinimumNumericCharacters:function(){return Sys.Extended.Deprecated("get_MinimumNumericCharacters()","get_minimumNumericCharacters()"),this.get_minimumNumericCharacters()},set_MinimumNumericCharacters:function(e){Sys.Extended.Deprecated("set_MinimumNumericCharacters(value)","set_minimumNumericCharacters(value)"),this.set_minimumNumericCharacters(e)},get_minimumSymbolCharacters:function(){return this._minimumSymbolCharacters},set_minimumSymbolCharacters:function(e){this._minimumSymbolCharacters!=e&&(this._minimumSymbolCharacters=e,this.raisePropertyChanged("minimumSymbolCharacters"))},get_MinimumSymbolCharacters:function(){return Sys.Extended.Deprecated("get_MinimumSymbolCharacters()","get_minimumSymbolCharacters()"),this.get_minimumSymbolCharacters()},set_MinimumSymbolCharacters:function(e){Sys.Extended.Deprecated("set_MinimumSymbolCharacters(value)","set_minimumSymbolCharacters(value)"),this.set_minimumSymbolCharacters(e)},get_requiresUpperAndLowerCaseCharacters:function(){return this._requiresUpperAndLowerCaseCharacters},set_requiresUpperAndLowerCaseCharacters:function(e){this._requiresUpperAndLowerCaseCharacters!=e&&(this._requiresUpperAndLowerCaseCharacters=e,this.raisePropertyChanged("requiresUpperAndLowerCaseCharacters"))},get_RequiresUpperAndLowerCaseCharacters:function(){return Sys.Extended.Deprecated("get_RequiresUpperAndLowerCaseCharacters()","get_requiresUpperAndLowerCaseCharacters()"),this.get_requiresUpperAndLowerCaseCharacters()},set_RequiresUpperAndLowerCaseCharacters:function(e){Sys.Extended.Deprecated("set_RequiresUpperAndLowerCaseCharacters(value)","set_requiresUpperAndLowerCaseCharacters(value)"),this.set_requiresUpperAndLowerCaseCharacters(e)},get_textCssClass:function(){return this._txtPwdStrengthCssClass},set_textCssClass:function(e){this._txtPwdStrengthCssClass!=e&&(this._txtPwdStrengthCssClass=e,this.raisePropertyChanged("textCssClass"))},get_TextCssClass:function(){return Sys.Extended.Deprecated("get_TextCssClass()","get_textCssClass()"),this.get_textCssClass()},set_TextCssClass:function(e){Sys.Extended.Deprecated("set_TextCssClass(value)","set_textCssClass(value)"),this.set_textCssClass(e)},get_barBorderCssClass:function(){return this._barBorderCssClass},set_barBorderCssClass:function(e){this._barBorderCssClass!=e&&(this._barBorderCssClass=e,this.raisePropertyChanged("barBorderCssClass"))},get_BarBorderCssClass:function(){return Sys.Extended.Deprecated("get_BarBorderCssClass()","get_barBorderCssClass()"),this.get_barBorderCssClass()},set_BarBorderCssClass:function(e){Sys.Extended.Deprecated("set_BarBorderCssClass(value)","set_barBorderCssClass(value)"),this.set_barBorderCssClass(e)},get_barIndicatorCssClass:function(){return this._barIndicatorCssClass},set_barIndicatorCssClass:function(e){this._barIndicatorCssClass!=e&&(this._barIndicatorCssClass=e,this.raisePropertyChanged("barIndicatorCssClass"))},get_BarIndicatorCssClass:function(){return Sys.Extended.Deprecated("get_BarIndicatorCssClass()","get_barIndicatorCssClass()"),this.get_barIndicatorCssClass()},set_BarIndicatorCssClass:function(e){Sys.Extended.Deprecated("set_BarIndicatorCssClass(value)","set_barIndicatorCssClass(value)"),this.set_barIndicatorCssClass(e)},get_displayPosition:function(){return this._displayPosition},set_displayPosition:function(e){this._displayPosition!=e&&(this._displayPosition=e,this.raisePropertyChanged("displayPosition"))},get_DisplayPosition:function(){return Sys.Extended.Deprecated("get_DisplayPosition()","get_displayPosition()"),this.get_displayPosition()},set_DisplayPosition:function(e){Sys.Extended.Deprecated("set_DisplayPosition(value)","set_displayPosition(value)"),this.set_displayPosition(e)},get_prefixText:function(){return this._prefixText},set_prefixText:function(e){this._prefixText!=e&&(this._prefixText=e,this.raisePropertyChanged("prefixText"))},get_PrefixText:function(){return Sys.Extended.Deprecated("get_PrefixText()","get_prefixText()"),this.get_prefixText()},set_PrefixText:function(e){Sys.Extended.Deprecated("set_PrefixText(value)","set_prefixText(value)"),this.set_prefixText(e)},get_strengthIndicatorType:function(){return this._strengthIndicator},set_strengthIndicatorType:function(e){this._strengthIndicator!=e&&(this._strengthIndicator=e,this.raisePropertyChanged("strengthIndicatorType"))},get_StrengthIndicatorType:function(){return Sys.Extended.Deprecated("get_StrengthIndicatorType()","get_strengthIndicatorType()"),this.get_strengthIndicatorType()},set_StrengthIndicatorType:function(e){Sys.Extended.Deprecated("set_StrengthIndicatorType(value)","set_strengthIndicatorType(value)"),this.set_strengthIndicatorType(e)},get_textStrengthDescriptions:function(){return this._txtStrengthDescriptions},set_textStrengthDescriptions:function(e){null!=e&&""!=e&&e!=this._txtStrengthDescriptions&&(this._txtStrengthDescriptions=e,this.raisePropertyChanged("textStrengthDescriptions"))},get_TextStrengthDescriptions:function(){return Sys.Extended.Deprecated("get_TextStrengthDescriptions()","get_textStrengthDescriptions()"),this.get_textStrengthDescriptions()},set_TextStrengthDescriptions:function(e){Sys.Extended.Deprecated("set_TextStrengthDescriptions(value)","set_textStrengthDescriptions(value)"),this.set_textStrengthDescriptions(e)},get_strengthStyles:function(){return this._strengthStyles},set_strengthStyles:function(e){null!=e&&""!=e&&e!=this._strengthStyles&&(this._strengthStyles=e,this.raisePropertyChanged("strengthStyles"))},get_StrengthStyles:function(){return Sys.Extended.Deprecated("get_StrengthStyles()","get_strengthStyles()"),this.get_strengthStyles()},set_StrengthStyles:function(e){Sys.Extended.Deprecated("set_StrengthStyles(value)","set_strengthStyles(value)"),this.set_strengthStyles(e)},get_TextStrengthDescriptionStyles:function(){return Sys.Extended.Deprecated("get_TextStrengthDescriptionStyles()","get_strengthStyles()"),this.get_strengthStyles()},set_TextStrengthDescriptionStyles:function(e){Sys.Extended.Deprecated("set_TextStrengthDescriptionStyles(value)","set_strengthStyles(value)"),this.set_strengthStyles(e)},get_helpHandleCssClass:function(){return this._helpHandleCssClass},set_helpHandleCssClass:function(e){this._helpHandleCssClass!=e&&(this._helpHandleCssClass=e,this.raisePropertyChanged("helpHandleCssClass"))},get_HelpHandleCssClass:function(){return Sys.Extended.Deprecated("get_HelpHandleCssClass()","get_helpHandleCssClass()"),this.get_helpHandleCssClass()},set_HelpHandleCssClass:function(e){Sys.Extended.Deprecated("set_HelpHandleCssClass(value)","set_helpHandleCssClass(value)"),this.set_helpHandleCssClass(e)},get_helpHandlePosition:function(){return this._helpHandlePosition},set_helpHandlePosition:function(e){this._helpHandlePosition!=e&&(this._helpHandlePosition=e,this.raisePropertyChanged("helpHandlePosition"))},get_HelpHandlePosition:function(){return Sys.Extended.Deprecated("get_HelpHandlePosition()","get_helpHandlePosition()"),this.get_helpHandlePosition()},set_HelpHandlePosition:function(e){Sys.Extended.Deprecated("set_HelpHandlePosition(value)","set_helpHandlePosition(value)"),this.set_helpHandlePosition(e)},get_calculationWeightings:function(){return this._calcWeightings},set_calculationWeightings:function(e){this._calcWeightings!=e&&(this._calcWeightings=e,this.raisePropertyChanged("calculationWeightings"))},get_CalculationWeightings:function(){return Sys.Extended.Deprecated("get_CalculationWeightings()","get_calculationWeightings()"),this.get_calculationWeightings()},set_CalculationWeightings:function(e){Sys.Extended.Deprecated("set_CalculationWeightings(value)","set_calculationWeightings(value)"),this.set_calculationWeightings(e)},get_helpText:function(){return this._helpText},set_helpText:function(e){if(this._helpStatusLabelID){var t=$get(this._helpStatusLabelID);t&&(Sys.Extended.UI.TextBoxWrapper.get_Wrapper(this.get_element()).get_Value().length>0?t.innerHTML=e:t.innerHTML="")}this._helpText!=e&&(this._helpText=e,this.raisePropertyChanged("helpText"))},get_HelpText:function(){return Sys.Extended.Deprecated("get_HelpText()","get_helpText()"),this.get_helpText()},set_HelpText:function(e){Sys.Extended.Deprecated("set_HelpText(value)","set_helpText(value)"),this.set_helpText(e)},get_minimumLowerCaseCharacters:function(){return this._minLowerCaseChars},set_minimumLowerCaseCharacters:function(e){this._minLowerCaseChars=e},get_MinimumLowerCaseCharacters:function(){return Sys.Extended.Deprecated("get_MinimumLowerCaseCharacters()","get_minimumLowerCaseCharacters()"),this.get_minimumLowerCaseCharacters()},set_MinimumLowerCaseCharacters:function(e){Sys.Extended.Deprecated("set_MinimumLowerCaseCharacters(value)","set_minimumLowerCaseCharacters(value)"),this.set_minimumLowerCaseCharacters(e)},get_minimumUpperCaseCharacters:function(){return this._minUpperCaseChars},set_minimumUpperCaseCharacters:function(e){this._minUpperCaseChars=e},get_MinimumUpperCaseCharacters:function(){return Sys.Extended.Deprecated("get_MinimumUpperCaseCharacters()","get_minimumUpperCaseCharacters()"),this.get_minimumUpperCaseCharacters()},set_MinimumUpperCaseCharacters:function(e){Sys.Extended.Deprecated("set_MinimumUpperCaseCharacters(value)","set_minimumUpperCaseCharacters(value)"),this.set_minimumUpperCaseCharacters(e)},get_helpStatusLabelID:function(){return this._helpStatusLabelID},set_helpStatusLabelID:function(e){this._helpStatusLabelID!=e&&(this._helpStatusLabelID=e,this.raisePropertyChanged("helpStatusLabelID"))},get_HelpStatusLabelID:function(){return Sys.Extended.Deprecated("get_HelpStatusLabelID()","get_helpStatusLabelID()"),this.get_helpStatusLabelID()},set_HelpStatusLabelID:function(e){Sys.Extended.Deprecated("set_HelpStatusLabelID(value)","set_helpStatusLabelID(value)"),this.set_helpStatusLabelID(e)}},Sys.Extended.UI.PasswordStrengthExtenderBehavior.registerClass("Sys.Extended.UI.PasswordStrengthExtenderBehavior",Sys.Extended.UI.BehaviorBase),Sys.Extended.UI.StrengthIndicatorTypes=function(){throw Error.invalidOperation()},Sys.Extended.UI.DisplayPosition=function(){throw Error.invalidOperation()},Sys.Extended.UI.StrengthIndicatorTypes.prototype={Text:0,BarIndicator:1},Sys.Extended.UI.DisplayPosition.prototype={RightSide:0,AboveRight:1,AboveLeft:2,LeftSide:3,BelowRight:4,BelowLeft:5},Sys.Extended.UI.DisplayPosition.registerEnum("Sys.Extended.UI.DisplayPosition"),Sys.Extended.UI.StrengthIndicatorTypes.registerEnum("Sys.Extended.UI.StrengthIndicatorTypes");