﻿if(!window.cart_maskedinput_kernel_loaded){window.ComponentArt_MaskedInput=function(_1){this.element=document.getElementById(_1);if(window.ComponentArt_Atlas){ComponentArt.Web.UI.MaskedInput.initializeBase(this,[this.element]);this.beginUpdate=function(){this._updating=true;};this.endUpdate=function(){this._updating=false;this.Render();};this.get_isUpdating=function(){return this._updating;};this.getDescriptor=function(){return _zF0(this.constructor);};}else{this.beginUpdate=function(){this._updating=true;};this.endUpdate=function(){this._updating=false;this.Render();};this.get_isUpdating=function(){return this._updating;};}this.ClientControlId=this.Id=this.MaskedInputId=this.InputId=_1;};ComponentArt.Web.UI.MaskedInputEventArgs=function(_2){if(window.ComponentArt_Atlas){ComponentArt.Web.UI.MaskedInputEventArgs.initializeBase(this);}var _3=_2;this.get_event=function(){return _3;};};if(window.ComponentArt_Atlas){ComponentArt.Web.UI.MaskedInputEventArgs.registerClass("ComponentArt.Web.UI.MaskedInputEventArgs",Sys.EventArgs);}ComponentArt_MaskedInput.prototype.PublicProperties=[["AcceptedCharacters",String,,,1],["ContainerId",String,1],["CssClass",String],["DisabledCssClass",String],["DisplayInputId",String,1],["DisplayText",String,1,1],["EmptyCssClass",String],["EmptyText",String],["Enabled",Boolean],["FilterCharactersOnKeyDown",Boolean],["FocusedCssClass",String],["FocusedValidCssClass",String],["Id",String,1,1],["InvalidCssClass",String],["MaxLength",Number],["masked",Object,1,1],["Size",Number],["Text",String],["ToolTip",String],["Transform",String,,1,1],["TransformMask",Function],["TransformUnmask",Function],["TransformValidate",Function],["unmasked",Object,1,1],["ValidatingInput",Object,1,1],["ValidationInputId",String,1],["ValidationText",String,1,1],["ValueInputId",String,1]];ComponentArt_MaskedInput.prototype.PublicMethods=[["Dispose"],["GetProperty",,Object,[["popertyName",String]]],["hasFocus",,Boolean],["isEmpty",,Boolean],["isValid",,Boolean],["mask",,String,[["maskedInput",ComponentArt_MaskedInput]]],["Render"],["SetProperty",true,null,[["propertyName",String],["propertyValue",Object]]],["unmask",,String,[["maskedInput",ComponentArt_MaskedInput]]],["validate",,Boolean,[["maskedInput",ComponentArt_MaskedInput]]]];ComponentArt_MaskedInput.prototype.PublicEvents=[["Blur"],["Click"],["Cut"],["Focus"],["KeyDown"],["KeyPress"],["KeyUp"],["Load"],["Paste"]];ComponentArt_MaskedInput.prototype.get_displayText=function(){return this.get_masked().value;};ComponentArt_MaskedInput.prototype.get_id=function(){return this.Id;};ComponentArt_MaskedInput.prototype.get_masked=function(){return document.getElementById(this.DisplayInputId);};ComponentArt_MaskedInput.prototype.get_unmasked=function(){return document.getElementById(this.ValueInputId);};ComponentArt_MaskedInput.prototype.get_validatingInput=function(){return document.getElementById(this.ValidationInputId);};ComponentArt_MaskedInput.prototype.get_validationText=function(){return this.get_validatingInput().value;};window.ComponentArt.Web.UI.MaskedInput=ComponentArt_MaskedInput;_zEF(ComponentArt_MaskedInput,"this");if(window.ComponentArt_Atlas){ComponentArt.Web.UI.MaskedInput.registerClass("ComponentArt.Web.UI.MaskedInput",Sys.UI.Control);if(Sys.TypeDescriptor){Sys.TypeDescriptor.addType("componentArtWebUI","maskedInput",ComponentArt.Web.UI.MaskedInput);}}ComponentArt_MaskedInput.prototype.GetProperty=function(_4){return this[_4];};ComponentArt_MaskedInput.prototype.SetProperty=function(_5,_6){this[_5]=_6;};ComponentArt_MaskedInput.prototype.Dispose=function(){if(window.ComponentArt_Atlas){this.element.control=null;}ComponentArt_Dispose(this);};ComponentArt_MaskedInput.prototype.LoadProperties=function(_7){if(!_7){_7=[];}this.PropertyStorageArray=_7;for(var i=0;i<_7.length;i++){this[_7[i][0]]=_7[i][1];}this.InitializeElementPointers();};ComponentArt_MaskedInput.prototype.hasFocus=function(){return this.HasFocus;};ComponentArt_MaskedInput.prototype.InitializeElementPointers=function(){this.element=document.getElementById(this.ContainerId);this.masked=document.getElementById(this.DisplayInputId);this.unmasked=document.getElementById(this.ValueInputId);this.validatingInput=this.ValidationInputId?document.getElementById(this.ValidationInputId):new Object();};ComponentArt_MaskedInput.prototype.Initialize=function(){this.set_transform(this.Transform);_z132(this);if(this.get_events().getHandler("load")){setTimeout(this.Id+".get_events().getHandler('load')("+this.Id+", Sys.EventArgs.Empty)",1);}};ComponentArt_MaskedInput.prototype.isEmpty=function(){return this.IsEmpty;};ComponentArt_MaskedInput.prototype.isValid=function(){return this.IsValid;};ComponentArt_MaskedInput.prototype.set_transform=function(_9){this.Transform=_9;var _a=(_9&&ComponentArt_MaskedInput_Transforms[_9])?ComponentArt_MaskedInput_Transforms[_9]:ComponentArt_MaskedInput_Transforms.empty;this.validate=this.TransformValidate?this.TransformValidate:_a.validate;this.mask=this.TransformMask?this.TransformMask:_a.mask;this.unmask=this.TransformUnmask?this.TransformUnmask:_a.unmask;};ComponentArt_MaskedInput.prototype.get_transform=function(){return this.Transform;};ComponentArt_MaskedInput.prototype.Render=function(){this.InitializeElementPointers();this.masked.title=this.ToolTip==null?"":this.ToolTip;this.unmasked.value=(this.Text==null)?"":this.Text;this.masked.value=this.mask(this);this.IsEmpty=this.masked.value=="";this.IsValid=this.validate(this);this.validatingInput.value=this.IsEmpty?"":(this.ValidateMasked?this.masked.value:this.unmasked.value);ComponentArt_MaskedInput_Blur(this,null,true);};window.cart_maskedinput_kernel_loaded=true;}
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();