$telerik.findAsyncUpload=$find; $telerik.toAsyncUpload=function(a){return a; }; (function(){var a=$telerik.$,c=Telerik.Web.UI,b=Sys.Serialization.JavaScriptSerializer,e={Disabled:0,Automatic:1},f={BelowFileInput:0,AboveFileInput:1},d="IE10 browser does not support upload of 0 bytes size file"; Type.registerNamespace("Telerik.Web.UI"); c.RadAsyncUpload=function(g){c.RadAsyncUpload.initializeBase(this,[g]); this._pageGUID=null; this._height=""; this._skin=""; this._maxFileSize=0; this._chunkSize=2097152; this._allowedFileExtensions=[]; this._serializedConfiguration=""; this._serializedConfigurationType=""; this._uploadedFiles=[]; this._isManagerRegistered=null; this._autoAddFileInputs=true; this._multipleFileSelection=e.Disabled; this._flashModuleUrl=""; this._silverlightModuleUrl=""; this._enableInlineProgress=true; this._selectedFilesCount=0; this._currentIndex=-1; this._additionalFieldIndex=-1; this._enabled=true; this._handlerUrl=""; this._progressHandlerUrl=""; this._progressAreaUpdater=null; this._fileFilter=null; this._isFileUploaded=false; this._uploadedFilesRendering=f.AboveFileInput; this._accessKey=""; this._isInitializing=false; this._manualUpload=false; this._disableChunkUpload=false; this._dropZones=[]; this._hideFileInput=false; this._tabIndex=0; this._ariaSettings=null; this._isPaused=false; this._navigationSettings=null; this._disablePlugins=false; }; c.RadAsyncUpload.prototype={initialize:function(){var m=this,h=m.get_element(),g=a(h); Telerik.Web.UI.RadAsyncUpload.Statics.extendViewWith(this); if(this._disablePlugins){this._disableAllPlugins(); }this._initializeUploadModule(); this._initializeProgressTracker(); if(this._getIsRightToLeft()){this._applyRightToLeft(); }this._renderList(); var k=this.get_multipleFileSelectionEnabled()==false?this.get_initialFileInputsCount():1; this._initializeClientState(); if(this._uploadedFiles.length>this._maxFileCount){throw"MaxFileInputsCount property is less than count of the already uploaded files"; }if(this._uploadedFiles.length!=this._maxFileCount){for(var j=0; j0; if(c.RadAsyncUpload.Modules.FileApi.isAvailable()){this._uploadModule=new c.RadAsyncUpload.Modules.FileApi(this); }else{if(c.RadAsyncUpload.Modules.Silverlight.isAvailable()&&!$telerik.isOpera&&!g){this._uploadModule=new c.RadAsyncUpload.Modules.Silverlight(this); }else{if(c.RadAsyncUpload.Modules.Flash.isAvailable()&&!g&&!$telerik.isIE9Mode&&!$telerik.isOpera){this._uploadModule=new c.RadAsyncUpload.Modules.Flash(this); }else{this._uploadModule=new c.RadAsyncUpload.Modules.IFrame(this,this._pageGUID); }}}},_applyKeyboardNavigationSettings:function(){this._keyboardNavigationSettings=new c.KeyboardNavigationSettings(this._element,this._navigationSettings); this._keyboardNavigationSettings.initialize(); },_applyInputAriaSupport:function(){if(this._ariaSettings){var h=b.deserialize(this._ariaSettings); var g=new c.WaiAriaDecorator(this._fileInput,h); g.setAttributes(); }},dispose:function(){a(document).off("keydown."+this.get_id()); Telerik.Web.UI.RadAsyncUpload.callBaseMethod(this,"dispose"); a(this.get_element()).off(); this._uploadModule.dispose(); if(this._keyboardNavigationSettings){this._keyboardNavigationSettings.dispose(); }},_pauseFileBrowsing:function(){var g=a(this._element); g.addClass("ruPaused").find(".ruFileInput").attr("disabled","disabled"); this._isPaused=true; },_resumeFileBrowsing:function(){var g=a(this._element); g.find(".ruFileInput").removeAttr("disabled"); g.removeClass("ruPaused"); this._isPaused=false; },addFileInput:function(){var g=this._createStyledRow(); this._isInitializing=true; this._appendStyledRow(g); this._setHoverStateOnBrowseButton(g); this._uploadModule.fileInputAdded(g.children("span")); a.raiseControlEvent(this,"added",{row:g[0],index:g.index()}); this.get_enabled()?this._enable():this._disable(); },saveClientState:function(){return"{'isEnabled':'"+this.get_enabled()+"','uploadedFiles':"+Sys.Serialization.JavaScriptSerializer.serialize(this._uploadedFiles)+"}"; },deleteFileInputAt:function(i,l){var g=a(this.get_element()).find("li"); var h=function(){return l||a(this).find(".ruBrowse").length===0; }; var k=g.filter(h); var j=a(k[i]); this._deleteFileInput(j,l,true); },deleteAllFileInputs:function(){var g=this._selectedFilesCount,h=0; for(var j=0; j").addClass("ruInputs").attr("id",this.get_id()+"ListContainer").css("height",this._height); a(this.get_element()).append(g); },_shouldAddNewInputOnDelete:function(){var g=a("li",this.get_element()).length; if(g==0){return true; }var h; if(this.get_loadedModuleName()=="IFrame"||this.get_loadedModuleName()=="File API"){h="li .ruFileInput"; }else{h="li object"; }if(this._isManualUpload()){if(this.get_maxFileCount()-1==this._selectedFilesCount){return true; }else{return false; }}else{return(a(h,this.get_element()).length===0); }},_cancelUpload:function(g){this._updateRowImage(g,"cancel"); this._updateCancelButton(g); a(".ruFileProgressWrap",g).remove(); this._uploadModule.cancel(g); },_createInput:function(i,g,j,l){var k=this.get_localization(); var m=k[i]; var h=a("").attr({type:j,tabindex:l,value:m,"class":g})[0]; if(this._enableAriaSupport){h.setAttribute("aria-label","files"); }return h; },_createLabel:function(h){var g=a("