1Type.registerNamespace("Telerik.Web.UI"); 2Telerik.Web.UI.RadAjaxControl=function(a){Telerik.Web.UI.RadAjaxControl.initializeBase(this,[a]); 3this._clientEvents={}; 4this._uniqueID=""; 5this._enableHistory=false; 6this._enableAJAX=true; 7this._requestQueueSize=0; 8this._requestQueue=[]; 9this._loadingPanelsToHide=[]; 10this._initializeRequestHandler=null; 11this._endRequestHandler=null; 12this._isRequestInProgress=false; 13this._hideLoadingPanels=false; 14this._links=[]; 15this._styles=[]; 16this.Type="Telerik.Web.UI.RadAjaxControl"; 17this._postBackControls=null; 18this._showLoadingPanelForPostBackControls=false; 19this.UniqueID=this._uniqueID; 20this.EnableHistory=this._enableHistory; 21this.EnableAJAX=this._enableAJAX; 22this.Links=this._links; 23this.Styles=this._styles; 24this._enableAriaSupport=false; 25this._updatePanels=""; 26}; 27Telerik.Web.UI.RadAjaxControl.prototype={initialize:function(){Telerik.Web.UI.RadAjaxControl.callBaseMethod(this,"initialize"); 28var b=[]; 29if(this._postBackControls){b=this._postBackControls.split(","); 30}this._setupExclusionFilters(b); 31for(var a in this._clientEvents){if(typeof(this._clientEvents[a])!="string"){continue; 32}if(this._clientEvents[a]!=""){var c=this._clientEvents[a]; 33if(c.indexOf("(")!=-1){this[a]=c; 34}else{this[a]=eval(c); 35}}else{this[a]=null; 36}}var d=Sys.WebForms.PageRequestManager.getInstance(); 37this._initializeRequestHandler=Function.createDelegate(this,this._initializeRequest); 38d.add_initializeRequest(this._initializeRequestHandler); 39if(this.get_enableAriaSupport()){this._initializeAriaSupport(); 40d.add_beginRequest(this._beginRequestSaveFocusHandler); 41d.add_endRequest(this._endRequestRestoreFocusHandler); 42}},_beginRequestSaveFocusHandler:function(b){var a=b._activeElement||document.activeElement; 43if(a&&a.id){window._focusedElement=a.id; 44}},_endRequestRestoreFocusHandler:function(b){var a; 45if(window._focusedElement){a=document.getElementById(window._focusedElement); 46if(a){a.focus(); 47window._focusedElement=null; 48}}},_setupExclusionFilters:function(b){var d=this; 49var a=new RegExp("[;:|]ExportTo(?:excel|word|csv|pdf)[;:|]","ig"); 50var c; 51b.push("ExportToExcelButton","ExportToWordButton","ExportToPdfButton","ExportToCsvButton"); 52c=function(i,e){var f=i._form.__EVENTARGUMENT.value; 53var h; 54d._hideLoadingPanels=false; 55if(e.get_postBackElement().name){h=e.get_postBackElement().name; 56}else{if(i._form.__EVENTTARGET&&i._form.__EVENTTARGET.value){h=i._form.__EVENTTARGET.value; 57}else{h=e.get_postBackElement().id.replace(/\_?ctl[0-9]+\_?/g,function(j){return j.replace(/^\_|\_$/g,"$"); 58}); 59}}for(var g=0; 60g<b.length; 61g++){if(h.indexOf(b[g])!=-1||a.test(f)){e.set_cancel(true); 62i._form.__EVENTTARGET.value=h; 63i._form.submit(); 64d._hideLoadingPanels=!d._showLoadingPanelForPostBackControls; 65if(d._showLoadingPanelForPostBackControls){setTimeout(function(){d.ajaxRequest("InternalHideLoadingPanelAfterPostback"); 66Sys.WebForms.PageRequestManager.getInstance().remove_initializeRequest(c); 67},100); 68}return; 69}}Sys.WebForms.PageRequestManager.getInstance().remove_initializeRequest(c); 70}; 71Sys.WebForms.PageRequestManager.getInstance().add_initializeRequest(c); 72},_getResponseHeader:function(c,b){try{return c.getResponseHeader(b); 73}catch(a){return null; 74}},_handleAsyncRedirect:function(d){var b=this._getResponseHeader(d,"Location"); 75if(b&&b!=""){var c=document.createElement("a"); 76c.style.display="none"; 77c.href=b; 78document.body.appendChild(c); 79if(c.click){try{c.click(); 80}catch(a){}}else{window.location.href=b; 81}document.body.removeChild(c); 82return true; 83}return false; 84},_initializeAriaSupport:function(){var b=document.getElementsByTagName("div"); 85for(var c=0; 86c<b.length; 87c++){var a=b[c]; 88if(a.className&&a.className.indexOf("RadAjaxPanel")>-1){a.setAttribute("aria-live","assertive"); 89}}},_onFormSubmitCompleted:function(s,a){if(s._xmlHttpRequest!=null){if(this._handleAsyncRedirect(s._xmlHttpRequest)){try{s._aborted=true; 90}catch(d){}return; 91}}var g,k; 92if(s._xmlHttpRequest!=null&&!s.get_timedOut()){var r=this.getResponseItems(s.get_responseData(),"scriptBlock"); 93for(g=0,k=r.length; 94g<k; 95g++){var c=r[g].content; 96if(c.indexOf('"links":')!=-1&&c.indexOf(Sys.WebForms.PageRequestManager.getInstance()._uniqueIDToClientID(this._uniqueID))!=-1){var l=c.substr(c.indexOf('"links":')+10,c.indexOf("]",c.indexOf('"links":'))-(c.indexOf('"links":')+10)).replace(/\"/g,""); 97if(l!=""){this._links=l.split(","); 98this.updateHeadLinks(); 99}}if(c.indexOf(".axd")==-1&&r[g].id=="ScriptPath"){Telerik.Web.UI.RadAjaxControl.IncludeClientScript(c); 100}}var p=this.getResponseItems(s.get_responseData(),"updatePanel"); 101Telerik.Web.UI.RadAjaxControl.panelsToClear=[]; 102for(g=0,k=p.length; 103g<k; 104g++){var o=p[g]; 105if(!$get(o.id)){var m=document.createElement("div"); 106m.id=o.id; 107var f=$get(o.id.replace("Panel","")); 108if(!f){continue; 109}var q=f.parentNode; 110var n=f.nextSibling||Telerik.Web.UI.RadAjaxControl.GetNodeNextSibling(f); 111if(f.nodeType===1){if(f.dispose&&typeof(f.dispose)==="function"){f.dispose(); 112}else{if(f.control&&typeof(f.control.dispose)==="function"){f.control.dispose(); 113}}var b=Sys.UI.Behavior.getBehaviors(f); 114for(var h=b.length-1; 115h>=0; 116h--){b[h].dispose(); 117}}$telerik.disposeElement(f); 118q.removeChild(f);
119Telerik.Web.UI.RadAjaxControl.InsertAtLocation(m,q,n); 120Telerik.Web.UI.RadAjaxControl.panelsToClear[Telerik.Web.UI.RadAjaxControl.panelsToClear.length]=o; 121}}}s.get_webRequest().remove_completed(this._onFormSubmitCompletedHandler); 122},dispose:function(){this.hideLoadingPanels(); 123var a=Sys.WebForms.PageRequestManager.getInstance(); 124a.remove_initializeRequest(this._initializeRequestHandler); 125a.remove_beginRequest(this._beginRequestSaveFocusHandler); 126a.remove_endRequest(this._endRequestRestoreFocusHandler); 127window.$clearHandlers(this.get_element()); 128this._element.control=null; 129window[Sys.WebForms.PageRequestManager.getInstance()._uniqueIDToClientID(this._uniqueID)]=null; 130Telerik.Web.UI.RadAjaxControl.callBaseMethod(this,"dispose"); 131},get_enableAJAX:function(){return this._enableAJAX; 132},set_enableAJAX:function(a){if(this._enableAJAX!=a){this._enableAJAX=a; 133}},get_enableAriaSupport:function(){return this._enableAriaSupport; 134},get_enableHistory:function(){return this._enableHistory; 135},set_enableHistory:function(a){if(this._enableHistory!=a){this._enableHistory=a; 136}},get_clientEvents:function(){return this._clientEvents; 137},set_clientEvents:function(a){if(this._clientEvents!=a){this._clientEvents=a; 138}},get_links:function(){return this._links; 139},set_links:function(a){if(this._links!=a){this._links=a; 140if(this._links.length>0){this.updateHeadLinks(); 141}}},get_styles:function(){return this._styles; 142},set_styles:function(a){if(this._styles!=a){this._styles=a; 143if(this._styles.length>0){this.updateHeadStyles(); 144}}},get_uniqueID:function(){return this._uniqueID; 145},set_uniqueID:function(a){if(this._uniqueID!=a){this._uniqueID=a; 146window[Sys.WebForms.PageRequestManager.getInstance()._uniqueIDToClientID(this._uniqueID)]=this; 147}},get_requestQueueSize:function(){return this._requestQueueSize; 148},set_requestQueueSize:function(a){if(a>0){this._requestQueueSize=a; 149this.raisePropertyChanged("requestQueueSize"); 150}},isChildOf:function(a,b){while(a!=null){if(a==b){return true; 151}a=a.parentNode; 152}return false; 153},_initializeRequest:function(i,a){var g=Sys.WebForms.PageRequestManager.getInstance(); 154if(g.get_isInAsyncPostBack()&&this._requestQueueSize>0){this._queueRequest(i,a); 155return false; 156}var e; 157var c=false; 158if(this.Type=="Telerik.Web.UI.RadAjaxManager"){if(a.get_postBackElement()!=this.get_element()){var f=this._updatePanels.split(","); 159if(Array.contains(f,a.get_postBackElement().id)){this._isRequestInProgress=true; 160this._attachRequestHandlers(i,a,false); 161return false; 162}else{e=a.get_postBackElement().parentNode; 163c=false; 164while(e!=null){if(e.id&&Array.contains(f,e.id)){c=true; 165break; 166}e=e.parentNode; 167}if(c){this._isRequestInProgress=true; 168this._attachRequestHandlers(i,a,false); 169return false; 170}}if(!this._initiators[a.get_postBackElement().id]){e=a.get_postBackElement().parentNode; 171c=false; 172while(e!=null){if(e.id&&this._initiators[e.id]){c=true; 173break; 174}e=e.parentNode; 175}if(!c){this._isRequestInProgress=true; 176this._attachRequestHandlers(i,a,false); 177return false; 178}}}}if(this.Type=="Telerik.Web.UI.RadAjaxPanel"){var d=this._getParentAjaxPanel(a.get_postBackElement()); 179if(d&&d.get_id()!=this.get_id()){return false; 180}if(!this.isChildOf(a.get_postBackElement(),this.get_element())){return false; 181}}if(this._enableHistory){if(Telerik.Web.UI.RadAjaxControl.History[""]==null){Telerik.Web.UI.RadAjaxControl.HandleHistory(i._uniqueIDToClientID(this._uniqueID),""); 182}Telerik.Web.UI.RadAjaxControl.HandleHistory(i._uniqueIDToClientID(this._uniqueID),a.get_request().get_body()); 183}if(i._form.__EVENTTARGET&&i._form.__EVENTTARGET.value){this.__EVENTTARGET=i._form.__EVENTTARGET.value; 184}else{this.__EVENTTARGET=a.get_postBackElement().id; 185}if(a.get_postBackElement().name){this.__EVENTTARGET=a.get_postBackElement().name; 186}this.__EVENTARGUMENT=i._form.__EVENTARGUMENT.value; 187var b=new Telerik.Web.UI.RadAjaxRequestEventArgs(this.__EVENTTARGET,i._form.__EVENTARGUMENT.value,this._enableAJAX); 188var h=this.fireEvent(this,"OnRequestStart",[b]); 189if(b.get_cancel()||(typeof(h)!="undefined"&&!h)){delete this.__EVENTTARGET; 190delete this.__EVENTARGUMENT; 191a.set_cancel(true); 192return; 193}if(!b._enableAjax||!b.EnableAjax){a.set_cancel(true); 194i._form.__EVENTTARGET.value=this.__EVENTTARGET;
195i._form.__EVENTARGUMENT.value=this.__EVENTARGUMENT; 196i._form.submit(); 197return; 198}this._isRequestInProgress=true; 199this._attachRequestHandlers(i,a,true); 200},_endRequest:function(k,a){var l=this.context; 201k.remove_endRequest(l._endRequestHandler); 202for(var d=0,e=Telerik.Web.UI.RadAjaxControl.panelsToClear.length; 203d<e; 204d++){var g=Telerik.Web.UI.RadAjaxControl.panelsToClear[d]; 205var h=document.getElementById(g.id); 206var b=$get(g.id.replace("Panel","")); 207if(!b){continue; 208}var j=h.parentNode; 209var f=h.nextSibling||Telerik.Web.UI.RadAjaxControl.GetNodeNextSibling(h); 210Telerik.Web.UI.RadAjaxControl.InsertAtLocation(b,j,f); 211h.parentNode.removeChild(h); 212}l._isRequestInProgress=false; 213l.hideLoadingPanels(); 214if(typeof(l.__EVENTTARGET)!="undefined"&&typeof(l.__EVENTARGUMENT)!="undefined"&&!a.get_response().get_aborted()){var c=new Telerik.Web.UI.RadAjaxRequestEventArgs(l.__EVENTTARGET,l.__EVENTARGUMENT,l._enableAJAX); 215l.fireEvent(l,"OnResponseEnd",[c]); 216}if(l._requestQueue.length>0){l.__id=this.id; 217l._executePendingRequest(); 218}},_queueRequest:function(e,a){a.set_cancel(true); 219if(this._requestQueue.length>=this._requestQueueSize){return; 220}var d=a.get_postBackElement(); 221var c=d.id; 222if(d.name){c=d.name; 223}if(e._form.__EVENTTARGET&&e._form.__EVENTTARGET.value){c=e._form.__EVENTTARGET.value; 224}var b=e._form.__EVENTARGUMENT.value; 225Array.enqueue(this._requestQueue,[c,b]); 226},_executePendingRequest:function(){var d=Array.dequeue(this._requestQueue); 227var c=d[0]; 228var b=d[1]; 229if(this._requestQueue.length>0&&this.__id!=""){var a=$find(this.__id); 230if(a){Array.addRange(a._requestQueue,this._requestQueue); 231}}var e=Sys.WebForms.PageRequestManager.getInstance(); 232e._doPostBack(c,b); 233},_attachRequestHandlers:function(e,a,f){this._endRequestHandler=Function.createDelegate({context:this,id:this.get_id()},this._endRequest); 234e.add_endRequest(this._endRequestHandler); 235this._onFormSubmitCompletedHandler=Function.createDelegate(this,this._onFormSubmitCompleted); 236a.get_request().add_completed(this._onFormSubmitCompletedHandler); 237if(typeof(a.get_request()._get_eventHandlerList)=="function"){a.get_request()._get_eventHandlerList()._list.completed.reverse(); 238}else{if(Sys.Observer){var d=Sys.Observer._getContext(a.get_request()); 239if(d&&d.events){d.events._list.completed.reverse(); 240}}}if(f){var c=a.get_request().get_body(); 241var b=(c.lastIndexOf("&")!=c.length-1)?"&":""; 242c+=b+"RadAJAXControlID="+e._uniqueIDToClientID(this._uniqueID); 243a.get_request().set_body(c); 244}},_getParentAjaxPanel:function(b){var a=null; 245while(b!=null){if(typeof(b.id)!="undefined"&&$find(b.id)&&$find(b.id).Type=="Telerik.Web.UI.RadAjaxPanel"){a=$find(b.id); 246break; 247}b=b.parentNode; 248}return a; 249},getResponseItems:function(m,g,f){var l=Sys.WebForms.PageRequestManager.getInstance(); 250var j=m; 251var c,h,n,e,a; 252var k=0; 253var i=null; 254var b="|"; 255var d=[]; 256while(k<j.length){c=j.indexOf(b,k); 257if(c===-1){i=l._findText(j,k); 258break; 259}h=parseInt(j.substring(k,c),10); 260if((h%1)!==0){i=l._findText(j,k); 261break; 262}k=c+1; 263c=j.indexOf(b,k); 264if(c===-1){i=l._findText(j,k); 265break; 266}n=j.substring(k,c); 267k=c+1; 268c=j.indexOf(b,k); 269if(c===-1){i=l._findText(j,k); 270break; 271}e=j.substring(k,c); 272k=c+1; 273if((k+h)>=j.length){i=l._findText(j,j.length); 274break; 275}if(typeof(l._decodeString)!="undefined"){a=l._decodeString(j.substr(k,h)); 276}else{a=j.substr(k,h); 277}k+=h; 278if(j.charAt(k)!==b){i=l._findText(j,k); 279break; 280}k++; 281if(g!=undefined&&g!=n){continue; 282}if(f!=undefined&&f!=e){continue; 283}Array.add(d,{type:n,id:e,content:a}); 284}return d; 285},pageLoading:function(b,a){},pageLoaded:function(b,a){},hideLoadingPanels:function(){for(var b=0; 286b<this._loadingPanelsToHide.length; 287b++){var c=this._loadingPanelsToHide[b].Panel; 288var a=this._loadingPanelsToHide[b].ControlID; 289if(c!=null){c.hide(a); 290Array.remove(this._loadingPanelsToHide,this._loadingPanelsToHide[b]); 291b--; 292}}},fireEvent:function(d,b,a){var c=true; 293if(typeof(d[b])=="string"){c=eval(d[b]); 294}else{if(typeof(d[b])=="function"){if(a){if(typeof(a.unshift)!="undefined"){a.unshift(d); 295c=d[b].apply(d,a); 296}else{c=d[b].apply(d,[a]); 297}}else{c=d[b](); 298}}}if(typeof(c)!="boolean"){return true; 299}else{return c; 300}},updateHeadLinks:function(){var e=this.getHeadElement(); 301var d=e.getElementsByTagName("link"); 302var c=[]; 303for(var l=0,k=d.length; 304l<k; 305l++){var b=d[l].getAttribute("href"); 306c.push(b); 307}for(var g=0,m=this._links.length; 308g<m; 309g++){var f=this._links[g]; 310f=f.replace(/&amp;t/g,"&t"); 311f=f.replace(/&t/g,"&t"); 312var a=Array.contains(c,f); 313var h=(e.innerHTML.indexOf('"'+f+'"')); 314if(h>0&&h<e.innerHTML.indexOf("$create")){a=true; 315}if(!a){if(f==""){continue; 316}var n=document.createElement("link"); 317n.setAttribute("rel","stylesheet"); 318n.setAttribute("href",f); 319e.appendChild(n); 320}}},_retrieveFirstStyleSheet:function(){var h=null; 321if(document.createStyleSheet!=null){try{h=document.createStyleSheet(); 322}catch(c){}if(h==null){h=document.createElement("style"); 323}}else{var f=document.styleSheets; 324if(f.length==0){var b=document.createElement("style"); 325b.media="all"; 326b.type="text/css"; 327var d=this.getHeadElement(); 328d.appendChild(b); 329}var g=f.length; 330var a=0; 331while(h==null&&a<g){h=f[a++]; 332try{if(h.cssRules==null){h=null; 333}}catch(c){h=null; 334}}}return h; 335},updateHeadStyles:function(){var f=this._retrieveFirstStyleSheet(); 336if(f==null){return; 337}var b,d,c,a; 338if(document.createStyleSheet!=null){for(b=0,d=this._styles.length; 339b<d; 340b++){a=this._styles[b]; 341f.cssText=a; 342}}else{for(b=0; 343b<this._styles.length; 344b++){a=this._styles[b]; 345var e=a.split("}"); 346for(c=0; 347c<e.length; 348c++){if(e[c].replace(/\s*/,"")==""){continue; 349}if(e[c].indexOf("{")!=-1){f.insertRule(e[c]+"}",f.cssRules.length); 350}}}}},getHeadElement:function(){var b=document.getElementsByTagName("head"); 351if(b.length>0){return b[0]; 352}var a=document.createElement("head"); 353document.documentElement.appendChild(a); 354return a; 355},ajaxRequest:function(a){__doPostBack(this._uniqueID,a); 356},ajaxRequestWithTarget:function(b,a){__doPostBack(b,a); 357},__doPostBack:function(c,a){var b=Sys.WebForms.PageRequestManager.getInstance()._form; 358if(b!=null){if(b.__EVENTTARGET!=null){b.__EVENTTARGET.value=c; 359}if(b.__EVENTARGUMENT!=null){b.__EVENTARGUMENT.value=a; 360}b.submit(); 361}}}; 362Telerik.Web.UI.RadAjaxControl.registerClass("Telerik.Web.UI.RadAjaxControl",Sys.UI.Control); 363Telerik.Web.UI.RadAjaxRequestEventArgs=function(c,b,a){Telerik.Web.UI.RadAjaxRequestEventArgs.initializeBase(this); 364this._enableAjax=a; 365this._eventTarget=c; 366this._eventArgument=b; 367this._postbackControlClientID=c.replace(/(\$|:)/g,"_"); 368this._eventTargetElement=$get(this._postbackControlClientID); 369this.EnableAjax=this._enableAjax; 370this.EventTarget=this._eventTarget; 371this.EventArgument=this._eventArgument; 372this.EventTargetElement=this._eventTargetElement; 373}; 374Telerik.Web.UI.RadAjaxRequestEventArgs.prototype={get_enableAjax:function(){return this._enableAjax; 375}
375,set_enableAjax:function(a){if(this._enableAjax!=a){this._enableAjax=a; 376}},get_eventTarget:function(){return this._eventTarget; 377},get_eventArgument:function(){return this._eventArgument; 378},get_eventTargetElement:function(){return this._eventTargetElement; 379}}; 380Telerik.Web.UI.RadAjaxRequestEventArgs.registerClass("Telerik.Web.UI.RadAjaxRequestEventArgs",Sys.CancelEventArgs); 381Telerik.Web.UI.RadAjaxControl.History={}; 382Telerik.Web.UI.RadAjaxControl.HandleHistory=function(a,b){if(window.netscape){return; 383}var c=$get(a+"_History"); 384if(c==null){c=document.createElement("iframe"); 385c.id=a+"_History"; 386c.name=a+"_History"; 387c.style.width="0px"; 388c.style.height="0px"; 389c.src="about:blank"; 390c.style.visibility="hidden"; 391var d=function(j){if(!Telerik.Web.UI.RadAjaxControl.ShouldLoadHistory){Telerik.Web.UI.RadAjaxControl.ShouldLoadHistory=true; 392return; 393}var o=""; 394var f=""; 395var h=c.contentWindow.document.getElementById("__DATA"); 396if(!h){return; 397}var g=h.value.split("&"); 398for(var l=0,n=g.length; 399l<n; 400l++){var m=g[l].split("="); 401if(m[0]=="__EVENTTARGET"){o=m[1]; 402}if(m[0]=="__EVENTARGUMENT"){f=m[1]; 403}var k=document.getElementById(Sys.WebForms.PageRequestManager.getInstance()._uniqueIDToClientID(m[0])); 404if(k!=null){Telerik.Web.UI.RadAjaxControl.RestorePostData(k,Telerik.Web.UI.RadAjaxControl.DecodePostData(m[1])); 405}}if(o!=""){__doPostBack(Telerik.Web.UI.RadAjaxControl.DecodePostData(o),Telerik.Web.UI.RadAjaxControl.DecodePostData(f),a); 406}}; 407window.$addHandler(c,"load",d); 408document.body.appendChild(c); 409}if(Telerik.Web.UI.RadAjaxControl.History[b]==null){Telerik.Web.UI.RadAjaxControl.History[b]=true; 410Telerik.Web.UI.RadAjaxControl.AddHistoryEntry(c,b); 411}}; 412Telerik.Web.UI.RadAjaxControl.AddHistoryEntry=function(b,a){Telerik.Web.UI.RadAjaxControl.ShouldLoadHistory=false; 413b.contentWindow.document.open(); 414b.contentWindow.document.write("<input id='__DATA' name='__DATA' type='hidden' value='"+a+"' />"); 415b.contentWindow.document.close(); 416if(window.netscape){b.contentWindow.document.location.hash="#'"+new Date()+"'"; 417}}; 418Telerik.Web.UI.RadAjaxControl.DecodePostData=function(a){if(decodeURIComponent){return decodeURIComponent(a); 419}else{return unescape(a); 420}}; 421Telerik.Web.UI.RadAjaxControl.RestorePostData=function(a,d){if(a.tagName.toLowerCase()=="select"){for(var b=0,c=a.options.length; 422b<c; 423b++){if(d.indexOf(a.options[b].value)!=-1){a.options[b].selected=true; 424}}}if(a.tagName.toLowerCase()=="input"&&(a.type.toLowerCase()=="text"||a.type.toLowerCase()=="hidden")){a.value=d; 425}if(a.tagName.toLowerCase()=="input"&&(a.type.toLowerCase()=="checkbox"||a.type.toLowerCase()=="radio")){a.checked=d; 426}}; 427Telerik.Web.UI.RadAjaxControl.GetNodeNextSibling=function(a){if(a!=null&&a.nextSibling!=null){return a.nextSibling; 428}return null; 429}; 430Telerik.Web.UI.RadAjaxControl.InsertAtLocation=function(a,c,b){if(b!=null){return c.insertBefore(a,b); 431}else{return c.appendChild(a); 432}}; 433Telerik.Web.UI.RadAjaxControl.FocusElement=function(a){var c=document.getElementById(a); 434if(c){var b=c.tagName; 435var d=c.type; 436if(b.toLowerCase()=="input"&&(d.toLowerCase()=="checkbox"||d.toLowerCase()=="radio")){window.setTimeout(function(){try{c.focus(); 437}catch(g){}},500); 438}else{try{Telerik.Web.UI.RadAjaxControl.SetSelectionFocus(c); 439c.focus(); 440}catch(f){}}}}; 441Telerik.Web.UI.RadAjaxControl.SetSelectionFocus=function(b){if(b.createTextRange==null){return; 442}var c=null; 443try{c=b.createTextRange(); 444}catch(a){}if(c!=null){c.moveStart("textedit",c.text.length); 445c.collapse(false); 446c.select(); 447}}; 448Telerik.Web.UI.RadAjaxControl.panelsToClear=[]; 449Telerik.Web.UI.RadAjaxControl.UpdateElement=function(g,e){var a=$get(g); 450if(a!=null){a.innerHTML=e; 451var f,h; 452var l=Telerik.Web.UI.RadAjaxControl.GetScriptsSrc(e); 453for(f=0,h=l.length; 454f<h; 455f++){Telerik.Web.UI.RadAjaxControl.IncludeClientScript(l[f]); 456}l=Telerik.Web.UI.RadAjaxControl.GetTags(e,"script"); 457for(f=0,h=l.length; 458f<h; 459f++){var k=l[f]; 460if(k.inner!=""){Telerik.Web.UI.RadAjaxControl.EvalScriptCode(k.inner); 461}}var b=document.getElementsByTagName("head")[0]; 462var d=Telerik.Web.UI.RadAjaxControl.GetLinkHrefs(e); 463for(f=0,h=d.length; 464f<h; 465f++){var c=d[f]; 466var j=document.createElement("link"); 467j.setAttribute("rel","stylesheet"); 468j.setAttribute("href",c); 469b.appendChild(j); 470}}}; 471Telerik.Web.UI.RadAjaxControl.IncludeClientScript=function(c){if(!Telerik.Web.UI.RadAjaxControl.ShouldIncludeClientScript(c)){return; 472}var a=(window.XMLHttpRequest)?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP"); 473a.open("GET",c,false); 474a.send(null); 475if(a.status==200){var b=a.responseText; 476Telerik.Web.UI.RadAjaxControl.EvalScriptCode(b); 477}}; 478Telerik.Web.UI.RadAjaxControl.ShouldIncludeClientScript=function(b){var a=$telerik.isScriptRegistered(b); 479if(a==0||a>1){return false;
480}return true; 481}; 482Telerik.Web.UI.RadAjaxControl.EvalScriptCode=function(b){if(Telerik.Web.UI.RadAjaxControl.IsSafari()){b=b.replace(/^\s*<!--((.|\n)*)-->\s*$/mi,"$1"); 483}var a=document.createElement("script"); 484a.setAttribute("type","text/javascript"); 485if(Telerik.Web.UI.RadAjaxControl.IsSafari()){a.appendChild(document.createTextNode(b)); 486}else{a.text=b; 487}var c=document.getElementsByTagName("head")[0]; 488c.appendChild(a); 489if(Telerik.Web.UI.RadAjaxControl.IsSafari()){a.innerHTML=""; 490}else{a.parentNode.removeChild(a); 491}}; 492Telerik.Web.UI.RadAjaxControl.GetTags=function(b,f){var d=[]; 493var a=b; 494while(1){var e=Telerik.Web.UI.RadAjaxControl.GetTag(a,f); 495if(e.index==-1){break; 496}d[d.length]=e; 497var c=e.index+e.outer.length; 498a=a.substring(c,a.length); 499}return d; 500}; 501Telerik.Web.UI.RadAjaxControl.GetTag=function(b,e,a){if(typeof(a)=="undefined"){a=""; 502}var d=new RegExp("<"+e+"[^>]*>((.|\n|\r)*?)</"+e+">","i"); 503var c=b.match(d); 504if(c!=null&&c.length>=2){return{outer:c[0],inner:c[1],index:c.index}; 505}else{return{outer:a,inner:a,index:-1}; 506}}; 507Telerik.Web.UI.RadAjaxControl.GetLinkHrefs=function(c){var b=c; 508var a=[]; 509while(1){var e=b.match(/<link[^>]*href=('|")?([^'"]*)('|")?([^>]*)>.*?(<\/link>)?/i); 510if(e==null||e.length<3){break; 511}var f=e[2]; 512a[a.length]=f; 513var d=e.index+f.length; 514b=b.substring(d,b.length); 515}return a; 516}; 517Telerik.Web.UI.RadAjaxControl.GetScriptsSrc=function(c){var b=c; 518var a=[]; 519while(1){var e=b.match(/<script[^>]*src=('|")?([^'"]*)('|")?([^>]*)>.*?(<\/script>)?/i); 520if(e==null||e.length<3){break; 521}var f=e[2]; 522a[a.length]=f; 523var d=e.index+f.length; 524b=b.substring(d,b.length); 525}return a; 526}; 527Telerik.Web.UI.RadAjaxControl.IsSafari=function(){return(navigator.userAgent.match(/safari/i)!=null); 528}; 529Type.registerNamespace("Telerik.Web.UI"); 530$telerik.findAjaxLoadingPanel=$find; 531$telerik.toAjaxLoadingPanel=function(a){return a; 532}; 533Telerik.Web.UI.RadAjaxLoadingPanel=function(a){var b=["showing","hiding"]; 534this._initializeClientEvents(b); 535Telerik.Web.UI.RadAjaxLoadingPanel.initializeBase(this,[a]); 536this._uniqueID=""; 537this._minDisplayTime=0; 538this._initialDelayTime=0; 539this._isSticky=false; 540this._transparency=0; 541this._manager=null; 542this._zIndex=90000; 543this.skin=""; 544this._animationDuration=0; 545this._backgroundTransparency=0; 546this._enableAriaSupport=false; 547this._modal=false; 548this.UniqueID=this._uniqueID; 549this.MinDisplayTime=this._minDisplayTime; 550this.InitialDelayTime=this._initialDelayTime; 551this.IsSticky=this._isSticky; 552this.Transparency=this._transparency; 553this.ZIndex=this._zIndex; 554this._overlay=false; 555this._overlayIFrame={}; 556}; 557Telerik.Web.UI.RadAjaxLoadingPanel.prototype={initialize:function(){Telerik.Web.UI.RadAjaxLoadingPanel.callBaseMethod(this,"initialize"); 558},dispose:function(){Telerik.Web.UI.RadAjaxLoadingPanel.callBaseMethod(this,"dispose"); 559},get_zIndex:function(){return this._zIndex; 560},set_zIndex:function(a){if(this._zIndex!=a){this._zIndex=a; 561}},get_uniqueID:function(){return this._uniqueID; 562},set_uniqueID:function(a){if(this._uniqueID!=a){this._uniqueID=a; 563window[Sys.WebForms.PageRequestManager.getInstance()._uniqueIDToClientID(this._uniqueID)]=this; 564}},get_initialDelayTime:function(){return this._initialDelayTime; 565},set_initialDelayTime:function(a){if(this._initialDelayTime!=a){this._initialDelayTime=a; 566}},get_isSticky:function(){return this._isSticky; 567},set_isSticky:function(a){if(this._isSticky!=a){this._isSticky=a; 568}},get_minDisplayTime:function(){return this._minDisplayTime; 569},set_minDisplayTime:function(a){if(this._minDisplayTime!=a){this._minDisplayTime=a; 570}},get_transparency:function(){return this._transparency; 571},set_transparency:function(a){if(this._transparency!=a){this._transparency=a; 572}},get_backgroundTransparency:function(){return this._backgroundTransparency; 573},set_backgroundTransparency:function(a){if(this._backgroundTransparency!=a){this._backgroundTransparency=a; 574}},get_animationDuration:function(){return this._animationDuration; 575},set_animationDuration:function(a){this._animationDuration=a; 576},get_enableAriaSupport:function(){return this._enableAriaSupport; 577},get_modal:function(){return this._modal; 578},set_modal:function(a){this._modal=a; 579},show:function(f){if(this._manager&&this._manager._hideLoadingPanels){return; 580}var e=$get(f+"_wrapper"); 581if((typeof(e)=="undefined")||(!e)){e=$get(f); 582}
582var d=this.get_element(); 583if(!(e&&d)){return false; 584}var b=this._initialDelayTime; 585var c=this; 586var a=(!this._isSticky||this.get_modal())?this.cloneLoadingPanel(d,f):d; 587if(this.get_enableAriaSupport()){this.announceStartLoading(e); 588}if(b){window.setTimeout(function(){try{if(c._manager!=null&&c._manager._isRequestInProgress){c.displayLoadingElement(a,e); 589}}catch(g){}},b); 590}else{this.displayLoadingElement(a,e); 591}return true; 592},hide:function(n){var f=$get(n); 593var j=String.format("{0}_wrapper",n); 594var i=$get(j); 595if(i){f=i; 596}if(this.get_element()==null){var e=$get(Sys.WebForms.PageRequestManager.getInstance()._uniqueIDToClientID(this._uniqueID)); 597if(e==null){return; 598}this._element=e; 599}var c=(!this._isSticky||this.get_modal())?$get(this.get_element().id+n):this.get_element(); 600var k=new Date(); 601if(c==null){return; 602}var m=k-c._startDisplayTime; 603var h=this._minDisplayTime; 604var g=new Telerik.Web.UI.AjaxLoadingPanelEventArgs(c,f); 605var b=this; 606this.raise_hiding(g); 607if(!g.get_cancelNativeDisplay()){if(this._overlayIFrame&&this._overlayIFrame[c.id]){var l=this._overlayIFrame; 608var d=c.id; 609window.setTimeout(function(){if(l&&l[d]){l[d].dispose(); 610l[d]=null; 611}l=null; 612},(h>m)?h-m:0); 613}var a=this.get_animationDuration(); 614if(this._isSticky){if(h>m){window.setTimeout(function(){if(!c.parentNode){return; 615}if(a>0){$telerik.$(c).fadeOut(a,function(){b.announceFinishedLoading(b,f); 616c.style.display="none"; 617}); 618}else{b.announceFinishedLoading(b,f); 619c.style.display="none"; 620}},h-m); 621}else{if(a>0){$telerik.$(c).fadeOut(a,function(){b.announceFinishedLoading(b,f); 622c.style.display="none"; 623}); 624}else{this.announceFinishedLoading(b,f); 625c.style.display="none"; 626}}}else{if(h>m){window.setTimeout(function(){if(!c.parentNode){return; 627}if(a>0){$telerik.$(c).fadeOut(a,function(){b.announceFinishedLoading(b,f); 628c.parentNode.removeChild(c); 629}); 630}else{b.announceFinishedLoading(b,f); 631c.parentNode.removeChild(c); 632}},h-m); 633}else{if(a>0){$telerik.$(c).fadeOut(a,function(){b.announceFinishedLoading(b,f); 634c.parentNode.removeChild(c); 635}); 636}else{this.announceFinishedLoading(b,f); 637c.parentNode.removeChild(c); 638}}}}else{this.announceFinishedLoading(b,f); 639}if(!this._isSticky&&typeof(f)!="undefined"&&(f!=null)){f.style.visibility="visible"; 640}},announceSetup:function(){var a=this.getStatusDiv(); 641a.setAttribute("aria-live","polite"); 642a.setAttribute("aria-atomic","true"); 643a.setAttribute("aria-label",""); 644a.setAttribute("aria-relevant","text"); 645a.innerHTML=""; 646a.style.position="fixed"; 647a.style.overflow="hidden"; 648a.style.left="-10000px"; 649a.style.top="-10000px"; 650},announceStartLoading:function(b){this.announceSetup(); 651if(b){b.setAttribute("aria-busy","true"); 652}var a=this.getStatusDiv(); 653a.setAttribute("aria-label","Loading!"); 654a.innerHTML="Loading!"; 655a.focus(); 656},announceFinishedLoading:function(b,d){if(b.get_enableAriaSupport()){if(window._focusedElement){var a=document.getElementById(window._focusedElement); 657window.setTimeout(function(){if(a&&a!==document.activeElement){a.focus(); 658}},100); 659}b.announceSetup(); 660var c=b.getStatusDiv(); 661c.setAttribute("aria-label","Ready!"); 662c.innerHTML="Ready!"; 663c.focus(); 664if(d){d.setAttribute("aria-busy","false"); 665}setTimeout(function(){b.destroyStatusDiv(); 666},1000); 667}},getStatusDiv:function(){var a=document.getElementById("loadingPanelAriaStatusDiv"); 668if(a){return a; 669}a=document.createElement("div"); 670a.id="loadingPanelAriaStatusDiv"; 671document.body.appendChild(a); 672return a; 673},destroyStatusDiv:function(){var a=document.getElementById("loadingPanelAriaStatusDiv"); 674if(!a){return; 675}document.body.removeChild(a); 676},cloneLoadingPanel:function(b,c){var a=b.cloneNode(false); 677a.innerHTML=b.innerHTML; 678a.id=b.id+c; 679document.body.insertBefore(a,document.body.firstChild); 680return a; 681},displayLoadingElement:function(c,h){if(!this._isSticky){var f=this.getElementRectangle(h); 682c.style.position="absolute"; 683c.style.width=f.width+"px"; 684c.style.height=f.height+"px"; 685c.style.left=f.left+"px"; 686c.style.top=f.top+"px"; 687c.style.textAlign="center"; 688c.style.zIndex=this._zIndex; 689}if(this.get_modal()){c.style.position="fixed"; 690c.style.width="100%"; 691c.style.height="100%"; 692c.style.left=0; 693c.style.top=0; 694c.style.zIndex=this._zIndex; 695}var e=100-parseInt(this._transparency,10); 696if(e<100){$telerik.$(c).css("opacity",e/100); 697}var a=100-parseInt(this._backgroundTransparency,10); 698if(a<100){$telerik.$(c).find(".raColor").css("opacity",a/100); 699}var g=this; 700var b=function(){if(e==100&&!g._isSticky){var i=true; 701if(g.skin!=""){if(typeof c.style.opacity=="undefined"){if($telerik.$(c).css("filter").indexOf("opacity")!=-1||$telerik.$(c.firstChild.nextSibling).css("filter").indexOf("opacity")!=-1){i=false; 702}}else{if($telerik.$(c).css("opacity")>0||$telerik.$(c.getElementsByClassName("raDiv")[0]).css("opacity")>0){i=false; 703}}}if(i){h.style.visibility="hidden"; 704}}}; 705var d=new Telerik.Web.UI.AjaxLoadingPanelEventArgs(c,h); 706this.raise_showing(d); 707if(!d.get_cancelNativeDisplay()){if(this.get_animationDuration()>0){$telerik.$(c).css("opacity",0); 708c.style.display=""; 709$telerik.$(c).animate({opacity:e/100},this.get_animationDuration(),b); 710}else{c.style.display=""; 711b(); 712}if(this._overlay){this._overlayIFrame[c.id]=new Telerik.Web.UI.Overlay(c); 713this._overlayIFrame[c.id].initialize(); 714}}c._startDisplayTime=new Date(); 715}
715,getElementRectangle:function(a){if(!a){a=this; 716}var d=$telerik.getLocation(a); 717var c=d.x; 718var e=d.y; 719var f=a.offsetWidth; 720var b=a.offsetHeight; 721return{left:c,top:e,width:f,height:b}; 722},_initializeClientEvents:function(a){if(a){var e=this; 723for(var b=0,c=a.length; 724b<c; 725b++){var d=a[b]; 726this["add_"+d]=(function(f){return function(g){e.get_events().addHandler(f,g); 727}; 728}(d)); 729this["remove_"+d]=(function(f){return function(g){e.get_events().removeHandler(f,g); 730}; 731}(d)); 732this["raise_"+d]=(function(f){return function(g){e.raiseEvent(f,g); 733}; 734}(d)); 735}}}}; 736Telerik.Web.UI.RadAjaxLoadingPanel.registerClass("Telerik.Web.UI.RadAjaxLoadingPanel",Telerik.Web.UI.RadWebControl); 737Telerik.Web.UI.AjaxLoadingPanelEventArgs=function(a,b){Telerik.Web.UI.AjaxLoadingPanelEventArgs.initializeBase(this); 738this._loadingElement=a; 739this._updatedElement=b; 740this._cancelNativeDisplay=false; 741}; 742Telerik.Web.UI.AjaxLoadingPanelEventArgs.prototype={get_loadingElement:function(){return this._loadingElement; 743},get_updatedElement:function(){return this._updatedElement; 744},get_cancelNativeDisplay:function(){return this._cancelNativeDisplay; 745},set_cancelNativeDisplay:function(a){this._cancelNativeDisplay=a; 746}}; 747Telerik.Web.UI.AjaxLoadingPanelEventArgs.registerClass("Telerik.Web.UI.AjaxLoadingPanelEventArgs",Sys.EventArgs); 748Type.registerNamespace("Telerik.Web.UI"); 749$telerik.findAjaxManager=$find; 750$telerik.toAjaxManager=function(a){return a; 751}; 752Telerik.Web.UI.RadAjaxManager=function(a){Telerik.Web.UI.RadAjaxManager.initializeBase(this,[a]); 753this._ajaxSettings=[]; 754this._defaultLoadingPanelID=""; 755this._initiators={}; 756this._loadingPanelsToHide=[]; 757this._isRequestInProgress=false; 758this.Type="Telerik.Web.UI.RadAjaxManager"; 759this._updatePanelsRenderMode=null; 760this.AjaxSettings=this._ajaxSettings; 761this.DefaultLoadingPanelID=this._defaultLoadingPanelID; 762}; 763Telerik.Web.UI.RadAjaxManager.prototype={initialize:function(){Telerik.Web.UI.RadAjaxManager.callBaseMethod(this,"initialize"); 764var b=this.get_element(); 765if(b!=null&&b.parentNode!=null&&b.parentNode.id==b.id+"SU"){b.parentNode.style.display="none"; 766}var a=this.get_ajaxSettings(); 767for(var c=0,d=a.length; 768c<d; 769c++){this._initiators[a[c].InitControlID]=a[c].UpdatedControls; 770}},dispose:function(){Telerik.Web.UI.RadAjaxManager.callBaseMethod(this,"dispose"); 771},get_ajaxSettings:function(){return this._ajaxSettings; 772},set_ajaxSettings:function(a){if(this._ajaxSettings!=a){this._ajaxSettings=a; 773}},get_defaultLoadingPanelID:function(){return this._defaultLoadingPanelID; 774},set_defaultLoadingPanelID:function(a){if(this._defaultLoadingPanelID!=a){this._defaultLoadingPanelID=a; 775}},get_updatePanelsRenderMode:function(){return this._updatePanelsRenderMode; 776},set_updatePanelsRenderMode:function(a){if(this._updatePanelsRenderMode!=a){this._updatePanelsRenderMode=a; 777this._applyUpdatePanelsRenderMode(a); 778}},_applyUpdatePanelsRenderMode:function(e){var d=Sys.WebForms.PageRequestManager.getInstance(); 779var b=d._updatePanelClientIDs; 780for(var a=0; 781a<b.length; 782a++){var c=$get(b[a]); 783if(c){if(c.tagName.toLowerCase()=="span"){continue; 784}c.style.display=(e==0)?"block":"inline"; 785}}},showLoadingPanels:function(e,b){for(var d=0,g=b.length; 786d<g; 787d++){if(b[d].InitControlID==e){var a=b[d]; 788for(var f=0,h=a.UpdatedControls.length; 789f<h; 790f++){var n=a.UpdatedControls[f]; 791var m=n.PanelID; 792if(m==""){m=this._defaultLoadingPanelID; 793}var c=n.ControlID; 794if(c==this._uniqueID){continue; 795}var l=$find(m); 796if(l!=null){l._manager=this; 797if(l.show(c)){var k={Panel:l,ControlID:c}; 798if(!Array.contains(this._loadingPanelsToHide,k)){this._loadingPanelsToHide[this._loadingPanelsToHide.length]=k; 799}}}}}}},_showLoadingPanelsForElementsInRequestQueue:function(a){if(this._requestQueue.length==0){return false; 800}else{if(this._requestQueue[this._requestQueue.length-1][0]!=a.id){for(var b=0; 801b<this._requestQueue.length; 802b++){this._showLoadingPanelsForGivenElement($get(this._requestQueue[b][0])); 803}}}},_showLoadingPanelsForGivenElement:function(c){if(c!=null){if(this._initiators[c.id]){this.showLoadingPanels(c.id,this.get_ajaxSettings()); 804}else{var b=c.parentNode; 805var a=false; 806while(b!=null){if(b.id&&this._initiators[b.id]){a=true; 807break; 808}b=b.parentNode; 809}if(a){this.showLoadingPanels(b.id,this.get_ajaxSettings()); 810}}}},_initializeRequest:function(c,a){Telerik.Web.UI.RadAjaxManager.callBaseMethod(this,"_initializeRequest",[c,a]); 811if(!this._isRequestInProgress){return; 812}var b=a.get_postBackElement(); 813this._showLoadingPanelsForGivenElement(b); 814this._showLoadingPanelsForElementsInRequestQueue(b); 815},updateElement:function(b,a){Telerik.Web.UI.RadAjaxControl.UpdateElement(b,a); 816}}; 817Telerik.Web.UI.RadAjaxManager.registerClass("Telerik.Web.UI.RadAjaxManager",Telerik.Web.UI.RadAjaxControl); 818Telerik.Web.UI.RadAjaxManager.UpdateElement=function(b,a){Telerik.Web.UI.RadAjaxControl.UpdateElement(b,a); 819}; 820Type.registerNamespace("Telerik.Web.UI"); 821$telerik.findAjaxPanel=$find; 822$telerik.toAjaxPanel=function(a){return a; 823}; 824Telerik.Web.UI.RadAjaxPanel=function(a){Telerik.Web.UI.RadAjaxPanel.initializeBase(this,[a]); 825this._loadingPanelID=""; 826this._loadingPanelsToHide=[]; 827this.Type="Telerik.Web.UI.RadAjaxPanel";
828this.LoadingPanelID=this._loadingPanelID; 829}; 830Telerik.Web.UI.RadAjaxPanel.prototype={initialize:function(){var a=this.get_element().parentNode; 831if(this.get_element().style.height!=""){a.style.height=this.get_element().style.height; 832this.get_element().style.height="100%"; 833}if(this.get_element().style.width!=""){a.style.width=this.get_element().style.width; 834this.get_element().style.width=""; 835}Telerik.Web.UI.RadAjaxPanel.callBaseMethod(this,"initialize"); 836},dispose:function(){Telerik.Web.UI.RadAjaxPanel.callBaseMethod(this,"dispose"); 837},_initializeRequest:function(e,a){Telerik.Web.UI.RadAjaxPanel.callBaseMethod(this,"_initializeRequest",[e,a]); 838if(!this._isRequestInProgress){return; 839}var d=a.get_postBackElement(); 840if(d!=null&&(d==this.get_element()||this.isChildOf(d,this.get_element()))){var c=$find(this._loadingPanelID); 841if(c!=null){c._manager=this; 842if(c.show(this.get_element().id)){var b={Panel:c,ControlID:this.get_element().id}; 843if(!Array.contains(this._loadingPanelsToHide,b)){this._loadingPanelsToHide[this._loadingPanelsToHide.length]=b; 844}}}}},get_loadingPanelID:function(){return this._loadingPanelID; 845},set_loadingPanelID:function(a){if(this._loadingPanelID!=a){this._loadingPanelID=a; 846}}}; 847Telerik.Web.UI.RadAjaxPanel.registerClass("Telerik.Web.UI.RadAjaxPanel",Telerik.Web.UI.RadAjaxControl); 848 849if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.