1if(typeof (window.RadTabStripNamespace)=="undefined"){ 2window.RadTabStripNamespace=new Object(); 3} 4RadTabStripNamespace.ItemGroup=function(_1,_2){ 5this.Size=0; 6this.ExpandableSize=0; 7this.FixedSize=0; 8this.Items=[]; 9this.SizeMethod=_2; 10this.SizeProperty=_1; 11}; 12RadTabStripNamespace.ItemGroup.prototype.RegisterItem=function(_3,_4){ 13let _5=_3.className.indexOf("separator")>-1; 14if(_5){ 15_4=true; 16}else{ 17_3=_3.firstChild; 18} 19this.Size+=RadTabStripNamespace.Box[this.SizeMethod](_3); 20if(_5||(_4&&_3.firstChild.firstChild.style[this.SizeProperty])){ 21this.FixedSize+=RadTabStripNamespace.Box[this.SizeMethod](_3); 22return; 23} 24this.ExpandableSize+=RadTabStripNamespace.Box[this.SizeMethod](_3); 25this.Items[this.Items.length]=_3; 26}; 27RadTabStripNamespace.Align=function(_6,_7,_8){ 28this.Element=_6; 29this.ItemGroups=[]; 30if(_7=="horizontal"){ 31this.OuterSizeMethod="GetOuterWidth"; 32this.InnerSizeMethod="GetInnerWidth"; 33this.SetSizeMethod="SetOuterWidth"; 34this.OffsetProperty="offsetTop"; 35this.SizeProperty="width"; 36}else{ 37this.OuterSizeMethod="GetOuterHeight"; 38this.InnerSizeMethod="GetInnerHeight"; 39this.SetSizeMethod="SetOuterHeight"; 40this.OffsetProperty="offsetLeft"; 41this.SizeProperty="height"; 42} 43this.SkipFixedSize=_8; 44if(!this.Element.ItemGroups){ 45this.BuildItemGroups(); 46this.Element.ItemGroups=this.ItemGroups; 47}else{ 48this.ItemGroups=this.Element.ItemGroups; 49} 50}; 51RadTabStripNamespace.Align.prototype.CreateItemGroup=function(){ 52return new RadTabStripNamespace.ItemGroup(this.SizeProperty,this.OuterSizeMethod); 53}; 54RadTabStripNamespace.Align.prototype.BuildItemGroups=function(){ 55let _9=3; 56let _a=this.Element.childNodes; 57let _b=0; 58let _c=-1; 59this.ItemGroups[0]=this.CreateItemGroup(); 60for(let i=0;i<_a.length;i++){ 61let _e=_a[i]; 62let _f=_e[this.OffsetProperty]; 63if(_e.nodeType==_9){ 64continue; 65} 66if(_c==-1){ 67_c=_f; 68} 69if(_f>_c+1){ 70_b++; 71this.ItemGroups[_b]=this.CreateItemGroup(); 72_c=_f; 73} 74this.ItemGroups[_b].RegisterItem(_e); 75} 76this.CalculateItemSizePercentage(); 77}; 78RadTabStripNamespace.Align.prototype.CalculateItemSizePercentage=function(){ 79for(let j=0;j<this.ItemGroups.length;j++){ 80let _11=this.ItemGroups[j]; 81for(let i=0;i<_11.Items.length;i++){ 82let _13=_11.Items[i]; 83if(this.SkipFixedSize&&_13.style[this.SizeProperty]){ 84continue; 85} 86let _14=RadTabStripNamespace.Box[this.OuterSizeMethod](_13); 87let _15=RadTabStripNamespace.Box[this.OuterSizeMethod](_13.firstChild.firstChild); 88if(_11.ExpandableSize==0){ 89_13.Percentage=0; 90}else{ 91_13.Percentage=_14/_11.ExpandableSize; 92} 93_13.PaddingDiff=_14-_15; 94} 95} 96}; 97RadTabStripNamespace.Align.prototype.InterateOverRows=function(_16){ 98let _17=RadTabStripNamespace.Box[this.InnerSizeMethod](this.Element); 99for(let j=0;j<this.ItemGroups.length;j++){ 100if(!this.ItemGroups[j].Items.length){ 101continue; 102} 103_16(this.ItemGroups[j],_17); 104} 105}; 106RadTabStripNamespace.Align.Justify=function(_19){ 107let _1a=new RadTabStripNamespace.Align(_19,"horizontal",true); 108let _1b=function(row,_1d){ 109for(let i=0;i<row.Items.length;i++){ 110let _1f=row.Items[i]; 111let _20=_1f.Percentage*(_1d-row.FixedSize)-_1f.PaddingDiff; 112let _21=_1f.firstChild.firstChild; 113RadTabStripNamespace.Box.SetOuterWidth(_21,Math.floor(_20)); 114} 115}; 116_1a.InterateOverRows(_1b); 117}; 118RadTabStripNamespace.Align.Right=function(_22){ 119let _23=new RadTabStripNamespace.Align(_22,"horizontal"); 120let _24=function(row,_26){ 121let _27=row.Items[0]; 122_27.style.marginLeft=(_26-row.Size-1)+"px"; 123_27.style.cssText=_27.style.cssText; 124}; 125_23.InterateOverRows(_24); 126}; 127RadTabStripNamespace.Align.Center=function(_28){ 128let _29=new RadTabStripNamespace.Align(_28,"horizontal"); 129let _2a=function(row,_2c){ 130let _2d=row.Items[0]; 131let _2e=Math.floor((_2c-row.Size)/2)+"px"; 132_2d.style.marginLeft=_2e; 133_2d.style.cssText=_2d.style.cssText; 134}; 135_29.InterateOverRows(_2a); 136}; 137RadTabStripNamespace.Align.VJustify=function(_2f){ 138let _30=new RadTabStripNamespace.Align(_2f,"vertical",true); 139let _31=function(row,_33){ 140for(let i=0;i<row.Items.length;i++){ 141let _35=row.Items[i]; 142let _36=_35.Percentage*(_33-row.FixedSize)-_35.PaddingDiff; 143let _37=_35.firstChild.firstChild; 144RadTabStripNamespace.Box.SetOuterHeight(_37,Math.floor(_36)); 145} 146}; 147_30.InterateOverRows(_31); 148}; 149RadTabStripNamespace.Align.Bottom=function(_38){ 150let _39=new RadTabStripNamespace.Align(_38,"vertical"); 151let _3a=function(row,_3c){ 152let _3d=row.Items[0]; 153_3d.style.marginTop=(_3c-row.Size-1)+"px"; 154}; 155_39.InterateOverRows(_3a); 156}; 157RadTabStripNamespace.Align.Middle=function(_3e){ 158let _3f=new RadTabStripNamespace.Align(_3e,"vertical"); 159let _40=function(row,_42){
160let _43=row.Items[0]; 161let _44=Math.floor((_42-row.Size)/2)+"px"; 162_43.style.marginTop=_44; 163}; 164_3f.InterateOverRows(_40); 165};;if(typeof (window.RadTabStripNamespace)=="undefined"){ 166window.RadTabStripNamespace=new Object(); 167} 168RadTabStripNamespace.Box={GetOuterWidth:function(_1){ 169let _2=this.GetCurrentStyle(_1); 170return _1.offsetWidth+this.GetHorizontalMarginValue(_2); 171},GetOuterHeight:function(_3){ 172let _4=this.GetCurrentStyle(_3); 173return _3.offsetHeight+this.GetVerticalMarginValue(_4); 174},GetInnerWidth:function(_5){ 175let _6=this.GetCurrentStyle(_5); 176return _5.offsetWidth-this.GetHorizontalPaddingAndBorderValue(_6); 177},GetInnerHeight:function(_7){ 178let _8=this.GetCurrentStyle(_7); 179return _7.offsetHeight-this.GetVerticalPaddingAndBorderValue(_8); 180},SetOuterWidth:function(_9,_a){ 181let _b=this.GetCurrentStyle(_9); 182_a-=this.GetHorizontalMarginValue(_b); 183if(RadControlsNamespace.Browser.StandardsMode){ 184_a-=this.GetHorizontalPaddingAndBorderValue(_b); 185} 186if(_a<0){ 187_9.style.width="auto"; 188}else{ 189_9.style.width=_a+"px"; 190} 191},SetOuterHeight:function(_c,_d){ 192let _e=_d; 193let _f=this.GetCurrentStyle(_c); 194_d-=this.GetVerticalMarginValue(_f); 195if(RadControlsNamespace.Browser.StandardsMode){ 196_d-=this.GetVerticalPaddingAndBorderValue(_f); 197} 198_c.style.height=_d+"px"; 199let _10=this.GetOuterHeight(_c); 200if(_10!=_e){ 201let _11=(_10-_e); 202let _12=(_e-_11); 203if(_12>0){ 204_c.style.height=_12+"px"; 205} 206} 207},SafeParseInt:function(_13){ 208let _14=parseInt(_13); 209return isNaN(_14)?0:_14; 210},GetStyleValues:function(_15){ 211let _16=0; 212for(let i=1;i<arguments.length;i++){ 213_16+=this.SafeParseInt(_15[arguments[i]]); 214} 215return _16; 216},GetHorizontalPaddingAndBorderValue:function(_18){ 217return this.GetStyleValues(_18,"borderLeftWidth","paddingLeft","paddingRight","borderRightWidth"); 218},GetVerticalPaddingAndBorderValue:function(_19){ 219return this.GetStyleValues(_19,"borderTopWidth","paddingTop","paddingBottom","borderBottomWidth"); 220},GetHorizontalMarginValue:function(_1a){ 221return this.GetStyleValues(_1a,"marginLeft","marginRight"); 222},GetVerticalMarginValue:function(_1b){ 223return this.GetStyleValues(_1b,"marginTop","marginBottom"); 224},GetCurrentStyle:function(_1c){ 225if(_1c.currentStyle){ 226return _1c.currentStyle; 227}else{ 228if(document.defaultView&&document.defaultView.getComputedStyle){ 229return document.defaultView.getComputedStyle(_1c,null); 230}else{ 231return null; 232} 233} 234}};;if(typeof window.RadControlsNamespace=="undefined"){ 235window.RadControlsNamespace={}; 236} 237if(typeof (window.RadControlsNamespace.Browser)=="undefined"||typeof (window.RadControlsNamespace.Browser.Version)==null||window.RadControlsNamespace.Browser.Version<1){ 238window.RadControlsNamespace.Browser={Version:1}; 239window.RadControlsNamespace.Browser.ParseBrowserInfo=function(){ 240this.IsMacIE=(navigator.appName=="Microsoft Internet Explorer")&&((navigator.userAgent.toLowerCase().indexOf("mac")!=-1)||(navigator.appVersion.toLowerCase().indexOf("mac")!=-1)); 241this.IsSafari=/Safari/.test(navigator.userAgent); 242this.IsSafari2=/WebKit\/4/.test(navigator.userAgent); 243this.IsSafari3=/WebKit\/5/.test(navigator.userAgent); 244this.IsMozilla=window.netscape&&!window.opera; 245this.IsFirefox=window.netscape&&!window.opera; 246this.IsNetscape=/Netscape/.test(navigator.userAgent); 247this.IsOpera=window.opera; 248this.IsOpera9=window.opera&&(parseInt(window.opera.version())>8); 249this.IsIE=!this.IsMacIE&&!this.IsMozilla&&!this.IsOpera&&!this.IsSafari; 250this.IsIE7=/MSIE 7/.test(navigator.appVersion); 251this.StandardsMode=this.IsSafari||this.IsOpera9||this.IsMozilla||document.compatMode=="CSS1Compat"; 252this.IsMac=/Mac/.test(navigator.userAgent); 253}; 254RadControlsNamespace.Browser.ParseBrowserInfo(); 255};if(typeof window.RadControlsNamespace=="undefined"){ 256window.RadControlsNamespace={}; 257} 258if(typeof (window.RadControlsNamespace.DomEventMixin)=="undefined"||typeof (window.RadControlsNamespace.DomEventMixin.Version)==null||window.RadControlsNamespace.DomEventMixin.Version<3){ 259RadControlsNamespace.DomEventMixin={Version:3,Initialize:function(_1){ 260_1.CreateEventHandler=this.CreateEventHandler; 261_1.AttachDomEvent=this.AttachDomEvent; 262_1.DetachDomEvent=this.DetachDomEvent; 263_1.DisposeDomEventHandlers=this.DisposeDomEventHandlers; 264_1._domEventHandlingEnabled=true; 265_1.EnableDomEventHandling=this.EnableDomEventHandling; 266_1.DisableDomEventHandling=this.DisableDomEventHandling; 267_1.RemoveHandlerRegister=this.RemoveHandlerRegister; 268_1.GetHandlerRegister=this.GetHandlerRegister; 269_1.AddHandlerRegister=this.AddHandlerRegister; 270_1.handlerRegisters=[]; 271},EnableDomEventHandling:function(){ 272this._domEventHandlingEnabled=true; 273},DisableDomEventHandling:function(){ 274this._domEventHandlingEnabled=false; 275},CreateEventHandler:function(_2,_3){ 276let _4=this; 277return function(e){
278if(!_4._domEventHandlingEnabled&&!_3){ 279return; 280} 281return _4[_2](e||window.event); 282}; 283},AttachDomEvent:function(_6,_7,_8,_9){ 284let _a=this.CreateEventHandler(_8,_9); 285let _b=this.GetHandlerRegister(_6,_7,_8); 286if(_b!=null){ 287this.DetachDomEvent(_b.Element,_b.EventName,_8); 288} 289let _c={"Element":_6,"EventName":_7,"HandlerName":_8,"Handler":_a}; 290this.AddHandlerRegister(_c); 291if(_6.addEventListener){ 292_6.addEventListener(_7,_a,false); 293}else{ 294if(_6.attachEvent){ 295_6.attachEvent("on"+_7,_a); 296} 297} 298},DetachDomEvent:function(_d,_e,_f){ 299let _10=null; 300let _11=""; 301if(typeof _f=="string"){ 302_11=_f; 303_10=this.GetHandlerRegister(_d,_e,_11); 304if(_10==null){ 305return; 306} 307_f=_10.Handler; 308} 309if(!_d){ 310return; 311} 312if(_d.removeEventListener){ 313_d.removeEventListener(_e,_f,false); 314}else{ 315if(_d.detachEvent){ 316_d.detachEvent("on"+_e,_f); 317} 318} 319if(_10!=null&&_11!=""){ 320this.RemoveHandlerRegister(_10); 321_10=null; 322} 323},DisposeDomEventHandlers:function(){ 324for(let i=0;i<this.handlerRegisters.length;i++){ 325let _13=this.handlerRegisters[i]; 326if(_13!=null){ 327this.DetachDomEvent(_13.Element,_13.EventName,_13.Handler); 328} 329} 330this.handlerRegisters=[]; 331},RemoveHandlerRegister:function(_14){ 332try{ 333let _15=_14.index; 334for(let i in _14){ 335_14[i]=null; 336} 337this.handlerRegisters[_15]=null; 338} 339catch(e){ 340} 341},GetHandlerRegister:function(_17,_18,_19){ 342for(let i=0;i<this.handlerRegisters.length;i++){ 343let _1b=this.handlerRegisters[i]; 344if(_1b!=null&&_1b.Element==_17&&_1b.EventName==_18&&_1b.HandlerName==_19){ 345return this.handlerRegisters[i]; 346} 347} 348return null; 349},AddHandlerRegister:function(_1c){ 350_1c.index=this.handlerRegisters.length; 351this.handlerRegisters[this.handlerRegisters.length]=_1c; 352}}; 353RadControlsNamespace.DomEvent={}; 354RadControlsNamespace.DomEvent.PreventDefault=function(e){ 355if(!e){ 356return true; 357} 358if(e.preventDefault){ 359e.preventDefault(); 360} 361e.returnValue=false; 362return false; 363}; 364RadControlsNamespace.DomEvent.StopPropagation=function(e){ 365if(!e){ 366return; 367} 368if(e.stopPropagation){ 369e.stopPropagation(); 370}else{ 371e.cancelBubble=true; 372} 373}; 374RadControlsNamespace.DomEvent.GetTarget=function(e){ 375if(!e){ 376return null; 377} 378return e.target||e.srcElement; 379}; 380RadControlsNamespace.DomEvent.GetRelatedTarget=function(e){ 381if(!e){ 382return null; 383} 384return e.relatedTarget||(e.type=="mouseout"?e.toElement:e.fromElement); 385}; 386RadControlsNamespace.DomEvent.GetKeyCode=function(e){ 387if(!e){ 388return 0; 389} 390return e.which||e.keyCode; 391}; 392};if(typeof window.RadControlsNamespace=="undefined"){ 393window.RadControlsNamespace={}; 394} 395if(typeof (window.RadControlsNamespace.EventMixin)=="undefined"||typeof (window.RadControlsNamespace.EventMixin.Version)==null||window.RadControlsNamespace.EventMixin.Version<2){ 396RadControlsNamespace.EventMixin={Version:2,Initialize:function(_1){ 397_1._listeners={}; 398_1._eventsEnabled=true; 399_1.AttachEvent=this.AttachEvent; 400_1.DetachEvent=this.DetachEvent; 401_1.RaiseEvent=this.RaiseEvent; 402_1.EnableEvents=this.EnableEvents; 403_1.DisableEvents=this.DisableEvents; 404_1.DisposeEventHandlers=this.DisposeEventHandlers; 405},DisableEvents:function(){ 406this._eventsEnabled=false; 407},EnableEvents:function(){ 408this._eventsEnabled=true; 409},AttachEvent:function(_2,_3){ 410if(!this._listeners[_2]){ 411this._listeners[_2]=[]; 412} 413this._listeners[_2][this._listeners[_2].length]=(RadControlsNamespace.EventMixin.ResolveFunction(_3)); 414},DetachEvent:function(_4,_5){ 415let _6=this._listeners[_4]; 416if(!_6){ 417return false; 418} 419let _7=RadControlsNamespace.EventMixin.ResolveFunction(_5); 420for(let i=0;i<_6.length;i++){ 421if(_7==_6[i]){ 422_6.splice(i,1); 423return true; 424} 425} 426return false; 427},DisposeEventHandlers:function(){ 428for(let _9 in this._listeners){ 429let _a=null; 430if(this._listeners.hasOwnProperty(_9)){ 431_a=this._listeners[_9]; 432for(let i=0;i<_a.length;i++){ 433_a[i]=null; 434} 435_a=null; 436} 437} 438},ResolveFunction:function(_c){ 439if(typeof (_c)=="function"){ 440return _c; 441}else{ 442if(typeof (window[_c])=="function"){ 443return window[_c]; 444}else{ 445return new Function("let Sender = arguments[0]; let Arguments = arguments[1];"+_c); 446} 447} 448},RaiseEvent:function(_d,_e){ 449if(!this._eventsEnabled){ 450return true; 451} 452let _f=true; 453if(this[_d]){
454let _10=RadControlsNamespace.EventMixin.ResolveFunction(this[_d])(this,_e); 455if(typeof (_10)=="undefined"){ 456_10=true; 457} 458_f=_f&&_10; 459} 460if(!this._listeners[_d]){ 461return _f; 462} 463for(let i=0;i<this._listeners[_d].length;i++){ 464let _12=this._listeners[_d][i]; 465let _10=_12(this,_e); 466if(typeof (_10)=="undefined"){ 467_10=true; 468} 469_f=_f&&_10; 470} 471return _f; 472}}; 473};if(typeof window.RadControlsNamespace=="undefined"){ 474window.RadControlsNamespace={}; 475} 476if(typeof (window.RadControlsNamespace.JSON)=="undefined"||typeof (window.RadControlsNamespace.JSON.Version)==null||window.RadControlsNamespace.JSON.Version<1){ 477window.RadControlsNamespace.JSON={Version:1,copyright:"(c)2005 JSON.org",license:"http://www.crockford.com/JSON/license.html",stringify:function(v,_2){ 478let a=[]; 479let _4=arguments[2]||{}; 480function e(s){ 481a[a.length]=s; 482} 483function g(x){ 484let c,i,l,v; 485switch(typeof x){ 486case "object": 487if(x){ 488if(x instanceof Array){ 489e("["); 490l=a.length; 491for(i=0;i<x.length;i+=1){ 492v=x[i]; 493if(typeof v!="undefined"&&typeof v!="function"){ 494if(l<a.length){ 495e(","); 496} 497g(v); 498} 499} 500e("]"); 501return ""; 502}else{ 503if(typeof x.valueOf=="function"){ 504e("{"); 505l=a.length; 506for(i in x){ 507v=x[i]; 508if(_2&&v==_2[i]){ 509continue; 510} 511let _a=typeof v; 512if(_a=="undefined"||_a=="function"){ 513continue; 514} 515if(_a=="object"&&!_4[i]){ 516continue; 517} 518if(l<a.length){ 519e(","); 520} 521g(i); 522e(":"); 523g(v); 524} 525return e("}"); 526} 527} 528} 529e("null"); 530return ""; 531case "number": 532e(isFinite(x)?+x:"null"); 533return ""; 534case "string": 535l=x.length; 536e("\""); 537for(i=0;i<l;i+=1){ 538c=x.charAt(i); 539if(c>=" "){ 540if(c=="\\"||c=="\""){ 541e("\\"); 542} 543e(c); 544}else{ 545switch(c){ 546case "\b": 547e("\\b"); 548break; 549case "\f": 550e("\\f"); 551break; 552case "\n": 553e("\\n"); 554break; 555case "\r": 556e("\\r"); 557break; 558case "\t": 559e("\\t"); 560break; 561default: 562c=c.charCodeAt(); 563e("\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16)); 564} 565} 566} 567e("\""); 568return ""; 569case "boolean": 570e(String(x)); 571return ""; 572default: 573e("null"); 574return ""; 575} 576} 577g(v,0); 578return a.join(""); 579},stringifyHashTable:function(_b,_c,_d){ 580let a=[]; 581if(!_d){ 582_d=[]; 583} 584for(let i=0;i<_b.length;i++){ 585let ser=this.stringify(_b[i],_d[i]); 586if(ser=="{}"){ 587continue; 588} 589a[a.length]="\""+_b[i][_c]+"\":"+ser; 590} 591return "{"+a.join(",")+"}"; 592},parse:function(_11){ 593return (/^([ \t\r\n,:{}\[\]]|"(\\["\\\/bfnrtu]|[^\x00-\x1f"\\]+)*"|-?\d+(\.\d*)?([eE][+-]?\d+)?|true|false|null)+$/.test(_11))&&eval("("+_11+")"); 594}}; 595};function RadMultiPage(id,_2){ 596let _3=window[id]; 597if(_3!=null&&typeof (_3.Dispose)=="function"){ 598_3.Dispose(); 599} 600this.DomElement=document.getElementById(id); 601this.PageViews=_2; 602this.HiddenInput=document.getElementById(id+"_Selected"); 603this.PageView=null; 604} 605RadMultiPage.prototype.Dispose=function(){ 606if(this.disposed==null){ 607return; 608} 609this.disposed=true; 610this.DomElement=null; 611this.HiddenInput=null; 612}; 613RadMultiPage.prototype.GetSelectedIndex=function(){ 614return parseInt(this.HiddenInput.value); 615}; 616RadMultiPage.prototype.GetPageViewDomElement=function(_4){ 617return document.getElementById(this.PageViews[_4].ClientID); 618}; 619RadMultiPage.prototype.Show=function(_5){ 620if(this.NavigateAfterClick){ 621return; 622} 623_5.style.display="block"; 624let _6=_5.getElementsByTagName("*"); 625for(let i=0,_8=_6.length;i<_8;i++){ 626let _9=_6[i]; 627if(_9.RadShow){ 628_9.RadShow(); 629} 630} 631}; 632RadMultiPage.prototype.Hide=function(_a){ 633if(this.NavigateAfterClick){ 634return; 635} 636_a.style.display="none"; 637}; 638RadMultiPage.prototype.SelectPageById=function(id){ 639if(id=="Null"){ 640return; 641} 642let _c=-1; 643for(let i=0;i<this.PageViews.length;i++){ 644let _e=this.GetPageViewDomElement(i); 645if(this.PageViews[i].ID==id){ 646if(_e){ 647this.Show(this.GetPageViewDomElement(i)); 648} 649_c=i; 650}else{ 651if(_e){ 652this.Hide(this.GetPageViewDomElement(i)); 653} 654} 655} 656this.HiddenInput.value=_c; 657}; 658RadMultiPage.prototype.SelectPageByIndex=function(_f){ 659if(_f>=this.PageViews.length){ 660return; 661} 662for(let i=0;i<this.PageViews.length;i++){ 663let _11=this.GetPageViewDomElement(i); 664if(_11){ 665if(i==_f){ 666this.Show(_11); 667}else{ 668this.Hide(_11); 669} 670} 671} 672this.HiddenInput.value=_f; 673};;function RadTab(_1,_2){ 674this.Parent=null; 675this.TabStrip=null; 676this.SelectedTab=null; 677this.SelectedIndex=-1; 678this.Selected=false; 679this.ScrollChildren=false; 680this.ScrollPosition=0;
681this.ScrollButtonsPosition=RadControlsNamespace.ScrollButtonsPosition.Right; 682this.PerTabScrolling=false; 683this.Tabs=[]; 684this.PageViewID=""; 685this.PageViewClientID=""; 686this.Index=-1; 687this.GlobalIndex=-1; 688this.CssClass=""; 689this.SelectedCssClass="selected"; 690this.DisabledCssClass="disabled"; 691this.NavigateAfterClick=false; 692this.Enabled=true; 693this.Value=""; 694this.DepthLevel=-1; 695this.IsBreak=false; 696this.ID=_1.id; 697this.DomElement=_1; 698this.Text=_1.firstChild.firstChild.innerHTML; 699this.ImageDomElement=_1.getElementsByTagName("img")[0]; 700if(this.ImageDomElement){ 701if(_1.firstChild.firstChild.childNodes.length>1){ 702this.Text=_1.firstChild.firstChild.childNodes[1].nodeValue; 703}else{ 704this.Text=""; 705} 706} 707this.ChildStripDomElement=_1.parentNode.getElementsByTagName("ul")[0]; 708} 709RadTab.prototype.Initialize=function(){ 710RadControlsNamespace.DomEventMixin.Initialize(this); 711this.AttachEventHandlers(); 712if(this.TabStrip.TabData[this.ID]!=null){ 713for(let _3 in this.TabStrip.TabData[this.ID]){ 714this[_3]=this.TabStrip.TabData[this.ID][_3]; 715} 716} 717RadTabStrip.CreateState(this); 718}; 719RadTab.prototype.Dispose=function(){ 720this.DisposeDomEventHandlers(); 721for(let i in this.DomElement){ 722if(typeof (this.DomElement[i])=="function"){ 723this.DomElement[i]=null; 724} 725} 726if(this.Scroll){ 727this.Scroll.Dispose(); 728} 729this.DomElement=null; 730this.ImageDomElement=null; 731this.ChildStripDomElement=null; 732}; 733RadTab.prototype.ClickHandler=function(e){ 734return this.Click(e); 735}; 736RadTab.prototype.MouseOverHandler=function(e) { 737let a=this.DomElement; 738let _8=RadControlsNamespace.DomEvent.GetRelatedTarget(e); 739if(_8&&(_8==a||_8.parentNode==a||_8.parentNode.parentNode==a)){ 740return; 741} 742if(this.Enabled){ 743this.SetImageUrl(this.ImageOverUrl); 744} 745this.TabStrip.RaiseEvent("OnClientMouseOver",{Tab:this,EventObject:e}); 746}; 747RadTab.prototype.SetImageUrl=function(_9){ 748if(!this.ImageDomElement||!_9){ 749return; 750} 751_9=_9.replace(/&/ig,"&"); 752if(this.ImageDomElement.src!=_9){ 753this.ImageDomElement.src=_9; 754} 755}; 756RadTab.prototype.IsChildOfTab=function(_a){ 757while(_a.nodeType!==9){ 758if(_a.parentNode==this.DomElement){ 759return true; 760} 761_a=_a.parentNode; 762} 763return false; 764}; 765RadTab.prototype.MouseOutHandler=function(e){ 766let a=this.DomElement; 767let to=RadControlsNamespace.DomEvent.GetRelatedTarget(e); 768if(to&&(to==a||this.IsChildOfTab(to))){ 769return; 770} 771if(this.Enabled){ 772if(this.Parent.SelectedTab==this&&this.SelectedImageUrl){ 773this.SetImageUrl(this.SelectedImageUrl); 774}else{ 775this.SetImageUrl(this.ImageUrl); 776} 777} 778this.TabStrip.RaiseEvent("OnClientMouseOut",{Tab:this,EventObject:e}); 779}; 780RadTab.prototype.KeyPressHandler=function(e){ 781}; 782RadTab.prototype.FocusHandler=function(e){ 783if(!e.altKey){ 784return; 785} 786this.Click(); 787let _10=this; 788setTimeout(function(){ 789_10.DomElement.focus(); 790},0); 791}; 792RadTab.prototype.AttachEventHandlers=function(){ 793this.AttachDomEvent(this.DomElement,"click","ClickHandler"); 794this.AttachDomEvent(this.DomElement,"mouseover","MouseOverHandler"); 795this.AttachDomEvent(this.DomElement,"contextmenu","ContextMenuHandler"); 796this.AttachDomEvent(this.DomElement,"dblclick","DoubleClickHandler"); 797this.AttachDomEvent(this.DomElement,"mouseout","MouseOutHandler"); 798if(RadControlsNamespace.Browser.IsIE){ 799this.AttachDomEvent(this.DomElement,"focus","FocusHandler"); 800} 801}; 802RadTab.prototype.DoubleClickHandler=function(e){ 803if(!this.TabStrip.RaiseEvent("OnClientDoubleClick",{Tab:this,EventObject:e})){ 804return RadControlsNamespace.DomEvent.PreventDefault(e); 805} 806}; 807RadTab.prototype.ContextMenuHandler=function(e){ 808if(!this.TabStrip.RaiseEvent("OnClientContextMenu",{Tab:this,EventObject:e})){ 809return RadControlsNamespace.DomEvent.PreventDefault(e); 810} 811}; 812RadTab.prototype.Validate=function(){ 813if(!this.TabStrip.CausesValidation){ 814return true; 815} 816if(typeof (Page_ClientValidate)!="function"){ 817return true; 818} 819return Page_ClientValidate(this.TabStrip.ValidationGroup); 820}; 821RadTab.prototype.Click=function(e){ 822if(!this.Enabled){ 823return RadControlsNamespace.DomEvent.PreventDefault(e); 824} 825let _14=this.NavigateAfterClick; 826if(this.DomElement.target&&this.DomElement.target!="_self"){ 827_14=false; 828} 829if(!this.TabStrip.EnableImmediateNavigation){ 830_14=false; 831} 832if(!this.Validate()){ 833if(!_14){
834return RadControlsNamespace.DomEvent.PreventDefault(e); 835} 836return; 837} 838let _15=this.Select(_14); 839if((!_15)||(!this.NavigateAfterClick)){ 840return RadControlsNamespace.DomEvent.PreventDefault(e); 841}else{ 842if(!e||(this.ImageDomElement&&(e.srcElement==this.ImageDomElement))){ 843let _16=this.DomElement.target; 844if(!_16||_16=="_self"){ 845location.href=this.DomElement.href; 846}else{ 847if(_16=="_blank"){ 848window.open(this.DomElement.href); 849}else{ 850if(top.frames[_16]){ 851top.frames[_16].window.location.href=this.DomElement.href; 852} 853} 854} 855} 856} 857return true; 858}; 859RadTab.prototype.InternalUnSelect=function(_17){ 860this.Selected=false; 861this.Parent.SelectedTab=null; 862this.Parent.SelectedIndex=-1; 863if(this.SelectedTab!=null&&this.TabStrip.UnSelectChildren){ 864this.SelectedTab.UnSelect(_17); 865} 866this.RecordState(); 867}; 868RadTab.prototype.UnSelect=function(_18){ 869if(!this.Selected){ 870return; 871} 872this.InternalUnSelect(_18); 873if(!_18){ 874this.ModifyZIndex(-this.MaxZIndex); 875this.DomElement.className=this.CssClass; 876this.HideChildren(); 877this.SetImageUrl(this.ImageUrl); 878} 879this.TabStrip.RaiseEvent("OnClientTabUnSelected",{Tab:this}); 880}; 881RadTab.prototype.RecordState=function(){ 882this.InitialState.Selected=!this.Selected; 883let _19=RadControlsNamespace.JSON.stringify(this,this.InitialState); 884if(_19=="{}"){ 885this.TabStrip.TabsState[this.ID]=""; 886}else{ 887this.TabStrip.TabsState[this.ID]="\""+this.ID+"\":"+_19; 888} 889this.TabStrip.RecordState(); 890}; 891RadTab.prototype.ModifyZIndex=function(_1a){ 892this.DomElement.style.zIndex=parseInt(this.DomElement.style.zIndex)+_1a; 893this.DomElement.style.cssText=this.DomElement.style.cssText; 894}; 895RadTab.prototype.InternalSelect=function(_1b){ 896let _1c=this.Parent.SelectedTab; 897if(_1c){ 898this.TabStrip.InUpdate=true; 899this.Parent.SelectedTab.UnSelect(_1b); 900this.TabStrip.InUpdate=false; 901} 902this.Selected=true; 903this.Parent.SelectedTab=this; 904this.Parent.SelectedIndex=this.Index; 905this.RecordState(); 906}; 907RadTab.prototype.Select=function(_1d){ 908if(!this.Enabled){ 909return false; 910} 911if(this.Selected&&!this.TabStrip.ClickSelectedTab){ 912return false; 913} 914let _1e=this.Parent.SelectedTab; 915let _1f={Tab:this,PreviousTab:_1e}; 916if(!this.TabStrip.RaiseEvent("OnClientTabSelecting",_1f)){ 917return false; 918} 919this.TabStrip.SelectPageView(this); 920this.InternalSelect(_1d); 921if(!_1d){ 922if(this.TabStrip.ReorderTabRows&&!this.TabStrip.RenderInProgress()){ 923this.PopRow(); 924} 925this.DomElement.className=this.SelectedCssClass; 926this.ModifyZIndex(this.MaxZIndex); 927this.FixFirstTabPosition(); 928this.SetImageUrl(this.SelectedImageUrl); 929} 930this.ShowChildren(_1d); 931this.TabStrip.RaiseEvent("OnClientTabSelected",_1f); 932return true; 933}; 934RadTab.prototype.FixFirstTabPosition=function(){ 935if(this.Parent.Tabs[0]&&this.Parent.Tabs[0].DomElement){ 936this.Parent.Tabs[0].DomElement.style.cssText=this.Parent.Tabs[0].DomElement.style.cssText; 937} 938}; 939RadTab.prototype.SelectParents=function(){ 940let _20=[]; 941let _21=this; 942while(_21!=this.TabStrip){ 943_20[_20.length]=_21; 944_21=_21.Parent; 945} 946let i=_20.length; 947while(i--){ 948_20[i].Select(); 949} 950}; 951RadTab.prototype.IsVisible=function(){ 952let _23=this.Parent; 953if(_23==this.TabStrip){ 954return true; 955} 956while(_23!=this.TabStrip){ 957if(!_23.Selected){ 958return false; 959} 960_23=_23.Parent; 961} 962return true; 963}; 964RadTab.prototype.ShowChildren=function(_24){ 965if(!this.ChildStripDomElement){ 966return; 967} 968if(!this.IsVisible()){ 969return; 970} 971if(!_24){ 972this.ChildStripDomElement.style.display="block"; 973this.TabStrip.ShowLevels(this.DepthLevel); 974this.TabStrip.ApplyTabBreaks(this.ChildStripDomElement); 975this.TabStrip.AlignElement(this.ChildStripDomElement); 976if(this.ScrollChildren){ 977this.TabStrip.MakeScrollable(this); 978} 979} 980if(this.SelectedTab){ 981this.SelectedTab.Selected=false; 982this.SelectedTab.Select(_24); 983} 984}; 985RadTab.prototype.HideChildren=function(){ 986if(!this.ChildStripDomElement){ 987return; 988} 989this.TabStrip.ShowLevels(this.DepthLevel-1); 990this.ChildStripDomElement.style.display="none"; 991if(this.SelectedTab){ 992this.SelectedTab.HideChildren(); 993} 994}; 995RadTab.prototype.Enable=function(){ 996if(this.Enabled){ 997return; 998} 999this.Enabled=true; 1000this.DomElement.className=this.CssClass; 1001this.DomElement.disabled=""; 1002this.RecordState(); 1003if(this.Parent.SelectedTab==this&&this.SelectedImageUrl){ 1004this.SetImageUrl(this.SelectedImageUrl); 1005}else{ 1006this.SetImageUrl(this.ImageUrl); 1007} 1008this.TabStrip.RaiseEvent("OnClientTabEnabled",{Tab:this}); 1009}; 1010RadTab.prototype.Disable=function(){ 1011this.Enabled=false; 1012this.UnSelect(); 1013this.DomElement.className=this.DisabledCssClass; 1014this.DomElement.disabled="disabled"; 1015this.RecordState(); 1016this.SetImageUrl(this.DisabledImageUrl); 1017this.TabStrip.RaiseEvent("OnClientTabDisabled",{Tab:this}); 1018}; 1019RadTab.prototype.OnScrollStop=function(){ 1020this.RecordState(); 1021}; 1022RadTab.prototype.SetCssClass=function(_25){ 1023this.CssClass=_25; 1024if(this.Enabled&&!this.Selected){ 1025this.DomElement.className=_25; 1026} 1027}; 1028RadTab.prototype.SetText=function(_26){ 1029this.Text=_26; 1030let _27=this.DomElement.firstChild.firstChild; 1031let _28=_27.firstChild.nodeType==3?_27.firstChild:_27.childNodes[1]; 1032_28.nodeValue=_26; 1033this.RecordState(); 1034}; 1035RadTab.prototype.SetDisabledCssClass=function(_29){ 1036this.DisabledCssClass=_29; 1037if(!this.Enabled){ 1038this.DomElement.className=_29; 1039} 1040}; 1041RadTab.prototype.SetSelectedCssClass=function(_2a){ 1042this.SelectedCssClass=_2a; 1043if(this.Selected){ 1044this.DomElement.className=_2a; 1045} 1046}; 1047RadTab.prototype.PopRow=function(){ 1048let _2b=this.DomElement.parentNode.offsetTop;
1049if(this.IsBreak&&RadControlsNamespace.Browser.IsIE){ 1050let _2c=RadTabStripNamespace.Box.GetCurrentStyle(this.DomElement); 1051_2b-=RadTabStripNamespace.Box.GetStyleValues(_2c,"marginTop"); 1052} 1053let _2d=[]; 1054for(let i=0;i<this.Parent.Tabs.length;i++){ 1055let _2f=this.Parent.Tabs[i].DomElement.parentNode; 1056let _30=_2f.offsetTop; 1057let _2c=RadTabStripNamespace.Box.GetCurrentStyle(this.Parent.Tabs[i].DomElement); 1058if(this.Parent.Tabs[i].IsBreak&&(this.Parent.Tabs[i].Selected)&&RadControlsNamespace.Browser.IsIE){ 1059_30-=RadTabStripNamespace.Box.GetStyleValues(_2c,"marginTop"); 1060} 1061if(_30==_2b||this==this.Parent.Tabs[i]){ 1062_2d[_2d.length]=this.Parent.Tabs[i].DomElement.parentNode; 1063} 1064} 1065if(_2d.length==this.Parent.Tabs.length){ 1066return; 1067} 1068let _31=this.DomElement.parentNode.parentNode; 1069for(let i=0;i<_2d.length;i++){ 1070_2d[i].parentNode.removeChild(_2d[i]); 1071_31.appendChild(_2d[i]); 1072} 1073};;if(typeof (window.RadTabStripNamespace)=="undefined"){ 1074window.RadTabStripNamespace=new Object(); 1075} 1076if(typeof (window.RadControlsNamespace)=="undefined"){ 1077window.RadControlsNamespace=new Object(); 1078} 1079//for append stye selected from skin selected 1080RadControlsNamespace.AppendStyleSheet=function(_1,_2,_3){ 1081if(!_3){ 1082return; 1083} 1084if(!_1){ 1085document.write("<"+"link"+" rel='stylesheet' type='text/css' href='"+_3+"' />"); 1086}else{ 1087let _4=document.createElement("LINK"); 1088_4.rel="stylesheet"; 1089_4.type="text/css"; 1090_4.href=_3; 1091document.getElementById(_2+"StyleSheetHolder").appendChild(_4); 1092} 1093}; 1094RadTabStripNamespace.TabStripAlign={Left:0,Center:1,Right:2,Justify:3}; 1095RadTabStripNamespace.GetChildren=function(_5,_6){ 1096let _7=[]; 1097let _8=_5.firstChild; 1098_6=_6.toLowerCase(); 1099while(_8){ 1100if(_8.nodeType==1&&_8.tagName.toLowerCase()==_6){ 1101_7[_7.length]=_8; 1102} 1103_8=_8.nextSibling; 1104} 1105return _7; 1106}; 1107function RadTabStrip(_9){ 1108let _a=window[_9]; 1109if(_a!=null&&typeof (_a.Dispose)=="function"){ 1110_a.Dispose(); 1111} 1112this.DomElement=document.getElementById(_9); 1113this.ChildStripDomElement=this.DomElement.getElementsByTagName("ul")[0]; 1114this.StateField=document.getElementById(_9+"_Hidden"); 1115this.Tabs=[]; 1116this.AllTabs=[]; 1117this.ID=_9; 1118this.LevelWraps=[]; 1119this.LevelWraps[0]=this.ChildStripDomElement.parentNode; 1120RadControlsNamespace.EventMixin.Initialize(this); 1121this.SelectedTab=null; 1122this.SelectedIndex=-1; 1123this.IsVertical=false; 1124this.ReverseLevelOrder=false; 1125this.ScrollChildren=false; 1126this.EnableImmediateNavigation=true; 1127this.ScrollPosition=0; 1128this.ScrollButtonsPosition=RadControlsNamespace.ScrollButtonsPosition.Right; 1129this.PerTabScrolling=false; 1130this.MultiPageID=""; 1131this.MultiPageClientID=""; 1132this.CausesValidation=true; 1133this.ValidationGroup=""; 1134this.Enabled=true; 1135this.Direction="ltr"; 1136this.Align=RadTabStripNamespace.TabStripAlign.Left; 1137this.ReorderTabRows=false; 1138this.UnSelectChildren=false; 1139this.ClickSelectedTab=false; 1140this.OnClientTabSelected=""; 1141this.OnClientTabSelecting=""; 1142this.OnClientMouseOver=""; 1143this.OnClientMouseOut=""; 1144this.OnClientTabUnSelected=""; 1145this.OnClientTabEnabled=""; 1146this.OnClientTabDisabled=""; 1147this.OnClientLoad=""; 1148this.DepthLevel=0; 1149this.MaxLevel=0; 1150this.TabData={}; 1151this.InPostBack=false; 1152this.Disposed=false; 1153this.InitialAllTabs=[]; 1154this.TabsState={}; 1155this.InUpdate=false; 1156this.Initialized=false; 1157} 1158RadTabStrip.prototype.Dispose=function(){ 1159if(this.Disposed){ 1160return; 1161} 1162this.Disposed=true; 1163try{ 1164if(this.Scroll){ 1165this.Scroll.Dispose(); 1166} 1167for(let i=0;i<this.AllTabs.length;i++){ 1168this.AllTabs[i].Dispose(); 1169} 1170this.DisposeDomEventHandlers(); 1171if(this.DomElement){ 1172this.DomElement.RadShow=null; 1173this.DomElement.RadResize=null; 1174} 1175this.DomElement=null; 1176this.ChildStripDomElement=null; 1177this.StateField=null; 1178this.LevelWraps[0]=null; 1179} 1180catch(e){ 1181} 1182}; 1183RadTabStrip.prototype.MakeScrollable=function(_c){ 1184let _d=RadControlsNamespace.Scroll.Create(_c.ChildStripDomElement,this.IsVertical,_c); 1185_d.WrapNeeded=true; 1186_d.Initialize(); 1187_d.OnScrollStop=function(){ 1188_c.OnScrollStop(); 1189}; 1190_c.Scroll=_d; 1191}; 1192RadTabStrip.prototype.AlignElement=function(_e){ 1193if(this.IsVertical){ 1194if(_e.offsetHeight==0){ 1195return; 1196} 1197if(this.Align==RadTabStripNamespace.TabStripAlign.Center){ 1198RadTabStripNamespace.Align.Middle(_e); 1199}else{ 1200if(this.Align==RadTabStripNamespace.TabStripAlign.Right){ 1201RadTabStripNamespace.Align.Bottom(_e); 1202}else{ 1203if(this.Align==RadTabStripNamespace.TabStripAlign.Justify){ 1204RadTabStripNamespace.Align.VJustify(_e); 1205} 1206} 1207} 1208}else{ 1209if(_e.offsetWidth==0){ 1210return; 1211} 1212if(this.Align==RadTabStripNamespace.TabStripAlign.Center){ 1213RadTabStripNamespace.Align.Center(_e); 1214}else{ 1215if(this.Align==RadTabStripNamespace.TabStripAlign.Right){ 1216RadTabStripNamespace.Align.Right(_e); 1217}else{ 1218if(this.Align==RadTabStripNamespace.TabStripAlign.Justify){ 1219RadTabStripNamespace.Align.Justify(_e); 1220} 1221} 1222} 1223} 1224}; 1225RadTabStrip.prototype.FindTabById=function(id){ 1226for(let i=0;i<this.AllTabs.length;i++){ 1227if(this.AllTabs[i].ID==id){ 1228return this.AllTabs[i]; 1229} 1230} 1231return null; 1232}; 1233RadTabStrip.prototype.FindTabByText=function(_11){ 1234for(let i=0;i<this.AllTabs.length;i++){ 1235if(this.AllTabs[i].Text==_11){ 1236return this.AllTabs[i]; 1237} 1238} 1239return null; 1240}; 1241RadTabStrip.prototype.FindTabByValue=function(_13){ 1242for(let i=0;i<this.AllTabs.length;i++){ 1243if(this.AllTabs[i].Value==_13){ 1244return this.AllTabs[i]; 1245} 1246} 1247return null; 1248}; 1249RadTabStrip.prototype.FindTabByUrl=function(url){ 1250for(let i=0;i<this.AllTabs.length;i++){ 1251if(this.AllTabs[i].DomElement.href==url){ 1252return this.AllTabs[i]; 1253} 1254} 1255return null; 1256}; 1257RadTabStrip.prototype.GetAllTabs=function(){ 1258return this.AllTabs; 1259}; 1260RadTabStrip.prototype.RenderInProgress=function(){ 1261return ((!this.IsVertical)&&this.ChildStripDomElement.offsetWidth==0)||(this.IsVertical&&this.ChildStripDomElement.offsetHeight==0); 1262}; 1263RadTabStrip.prototype.ApplyAlign=function(){ 1264if(this.RenderInProgress()){ 1265return; 1266} 1267this.AlignElement(this.ChildStripDomElement); 1268let _17=this.SelectedTab; 1269while(_17){ 1270if(!_17.ChildStripDomElement){ 1271break; 1272} 1273this.AlignElement(_17.ChildStripDomElement); 1274_17=_17.SelectedTab; 1275} 1276}; 1277RadTabStrip.prototype.Initialize=function(_18,_19){
1278this.LoadConfiguration(_18); 1279this.TabData=_19; 1280this.DetermineDirection(); 1281this.ApplyRTL(); 1282this.DisableEvents(); 1283this.CreateControlHierarchy(this,this.ChildStripDomElement); 1284if(!this.Enabled){ 1285this.Disable(); 1286} 1287this.ApplyTabBreaks(this.ChildStripDomElement); 1288this.ApplyAlign(); 1289if(this.LevelWraps.length==1){ 1290this.ShowLevels(1); 1291} 1292if(this.ScrollChildren){ 1293this.MakeScrollable(this); 1294} 1295this.ApplySelected(); 1296this.EnableEvents(); 1297RadControlsNamespace.DomEventMixin.Initialize(this); 1298this.AttachEventHandlers(); 1299this.Initialized=true; 1300RadTabStrip.CreateState(this); 1301this.RaiseEvent("OnClientLoad",null); 1302this.RecordState(); 1303}; 1304RadTabStrip.CreateState=function(_1a){ 1305_1a.InitialState={}; 1306for(let i in _1a){ 1307let _1c=typeof _1a[i]; 1308if(_1c=="number"||_1c=="string"||_1c=="boolean"){ 1309_1a.InitialState[i]=_1a[i]; 1310} 1311} 1312}; 1313RadTabStrip.prototype.AttachEventHandlers=function(){ 1314this.HandleResize(); 1315this.AttachDomEvent(window,"unload","Dispose"); 1316this.AttachDomEvent(window,"load","HandleResize"); 1317if(this.RenderInProgress()){ 1318this.AttachDomEvent(window,"load","PopRowOnLoad"); 1319} 1320this.AttachDomEvent(window,"resize","HandleResize"); 1321let _1d=this; 1322this.DomElement.RadShow=function(){ 1323_1d.HandleResize(); 1324_1d.DomElement.style.cssText=_1d.DomElement.style.cssText; 1325}; 1326this.DomElement.RadResize=function(){ 1327_1d.HandleResize(); 1328_1d.DomElement.style.cssText=_1d.DomElement.style.cssText; 1329}; 1330}; 1331RadTabStrip.prototype.PopRowOnLoad=function(){ 1332if(this.ReorderTabRows&&this.SelectedTab){ 1333this.SelectedTab.PopRow(); 1334} 1335}; 1336RadTabStrip.prototype.ApplySelected=function(){ 1337for(let i=0;i<this.AllTabs.length;i++){ 1338if(this.AllTabs[i].Selected){ 1339this.AllTabs[i].Selected=false; 1340this.AllTabs[i].Select(); 1341this.AllTabs[i].DomElement.style.cssText=this.AllTabs[i].DomElement.style.cssText; 1342} 1343} 1344}; 1345RadTabStrip.prototype.HandleResize=function(){ 1346this.ApplyAlign(); 1347if(this.Scroll){ 1348this.Scroll.ResizeHandler(); 1349} 1350let _1f=this.SelectedTab; 1351while(_1f){ 1352if(_1f.Scroll){ 1353_1f.Scroll.ResizeHandler(); 1354} 1355_1f=_1f.SelectedTab; 1356} 1357}; 1358RadTabStrip.prototype.LoadConfiguration=function(_20){ 1359for(let _21 in _20){ 1360this[_21]=_20[_21]; 1361} 1362}; 1363RadTabStrip.prototype.ShowLevels=function(_22){ 1364for(let i=0;i<=this.MaxLevel;i++){ 1365let _24=i>_22?"none":"block"; 1366if(this.LevelWraps[i].style.display!=_24){ 1367this.LevelWraps[i].style.display=_24; 1368} 1369} 1370}; 1371RadTabStrip.prototype.DetermineDirection=function(){ 1372let el=this.DomElement; 1373while(el.tagName.toLowerCase()!="html"){ 1374if(el.dir){ 1375this.Direction=el.dir.toLowerCase(); 1376return; 1377} 1378el=el.parentNode; 1379} 1380this.Direction="ltr"; 1381}; 1382RadTabStrip.prototype.ApplyTabBreaks=function(_26){ 1383let lis=_26.getElementsByTagName("li"); 1384for(let i=0;i<lis.length;i++){ 1385let li=lis[i]; 1386if(li.className.indexOf("break")==-1){ 1387continue; 1388} 1389let a=li.getElementsByTagName("a")[0]; 1390if(this.Direction=="rtl"&&li.firstChild.tagName.toLowerCase()=="a"){ 1391a.style.cssFloat="right"; 1392a.style.styleFloat="right"; 1393} 1394} 1395}; 1396RadTabStrip.prototype.CreateTab=function(_2b,_2c,_2d){ 1397let tab=new RadTab(_2c); 1398tab.MaxZIndex=_2d; 1399tab.DepthLevel=_2b.DepthLevel+1; 1400tab.Parent=_2b; 1401tab.TabStrip=this; 1402tab.Index=_2b.Tabs.length; 1403tab.GlobalIndex=this.AllTabs.length; 1404return tab; 1405}; 1406RadTabStrip.prototype.CreateTabObject=function(_2f,_30,_31){ 1407let tab=this.CreateTab(_2f,_30,_31); 1408_2f.Tabs[_2f.Tabs.length]=tab; 1409this.AllTabs[this.AllTabs.length]=tab; 1410return tab; 1411}; 1412RadTabStrip.prototype.CreateLevelWrap=function(_33){ 1413if(this.LevelWraps[_33]){ 1414return this.LevelWraps[_33]; 1415} 1416this.LevelWraps[_33]=document.createElement("div"); 1417this.LevelWraps[_33].style.display=_33>0?"none":"block"; 1418if(this.ReverseLevelOrder&&_33>0){ 1419this.DomElement.insertBefore(this.LevelWraps[_33],this.LevelWraps[_33-1]); 1420}else{ 1421this.DomElement.appendChild(this.LevelWraps[_33]); 1422} 1423this.LevelWraps[_33].className="levelwrap level"+(_33+1); 1424if(this.Direction=="rtl"){ 1425this.LevelWraps[_33].style.cssFloat="right"; 1426this.LevelWraps[_33].style.styleFloat="right"; 1427} 1428return this.LevelWraps[_33]; 1429}; 1430RadTabStrip.prototype.CreateControlHierarchy=function(_34,_35){ 1431this.MaxLevel=Math.max(_34.DepthLevel,this.MaxLevel); 1432if(_34.DepthLevel>0){ 1433this.CreateLevelWrap(_34.DepthLevel).appendChild(_35); 1434} 1435let lis=RadTabStripNamespace.GetChildren(_35,"li"); 1436for(let i=0;i<lis.length;i++){ 1437let li=lis[i]; 1438let _39=li.getElementsByTagName("a")[0]; 1439if(!_39){ 1440continue; 1441} 1442_39.style.zIndex=lis.length-i; 1443let tab=this.CreateTabObject(_34,_39,lis.length); 1444tab.Initialize(); 1445if(tab.ChildStripDomElement){ 1446this.CreateControlHierarchy(tab,tab.ChildStripDomElement); 1447} 1448} 1449}; 1450RadTabStrip.prototype.SelectPageView=function(tab){ 1451if(!this.Initialized){ 1452return; 1453} 1454if(this.MultiPageClientID==""||typeof (window[this.MultiPageClientID])=="undefined"||window[this.MultiPageClientID].innerHTML){ 1455return; 1456} 1457let _3c=window[this.MultiPageClientID]; 1458if(tab.NavigateAfterClick&&this.EnableImmediateNavigation){ 1459_3c.NavigateAfterClick=true; 1460} 1461if(tab.PageViewID){ 1462_3c.SelectPageById(tab.PageViewID); 1463}else{
1464_3c.SelectPageByIndex(tab.GlobalIndex); 1465} 1466}; 1467RadTabStrip.prototype.ApplyRTL=function(){ 1468if(this.Direction=="ltr"){ 1469return; 1470} 1471if(RadControlsNamespace.Browser.IsIE){ 1472this.DomElement.dir="ltr"; 1473} 1474let lis=this.DomElement.getElementsByTagName("li"); 1475if(this.IsVertical){ 1476return; 1477} 1478for(let i=0;i<lis.length;i++){ 1479if(lis[i].className.indexOf("break")>-1){ 1480continue; 1481} 1482lis[i].style.styleFloat="right"; 1483lis[i].style.cssFloat="right"; 1484} 1485let uls=this.DomElement.getElementsByTagName("ul"); 1486for(let i=0;i<uls.length;i++){ 1487uls[i].style["clear"]="right"; 1488} 1489let _40=this.Skin?this.Skin:"Default"; 1490this.DomElement.className+=" tabstrip_rtl RadTabStrip_"+_40+"_rtl"; 1491}; 1492RadTabStrip.prototype.Enable=function(){ 1493this.Enabled=true; 1494this.DomElement.disabled=""; 1495this.InUpdate=true; 1496for(let i=0;i<this.AllTabs.length;i++){ 1497this.AllTabs[i].Enable(); 1498} 1499this.InUpdate=false; 1500this.RecordState(); 1501}; 1502RadTabStrip.prototype.Disable=function(){ 1503this.Enabled=false; 1504this.DomElement.disabled="disabled"; 1505this.InUpdate=true; 1506for(let i=0;i<this.AllTabs.length;i++){ 1507this.AllTabs[i].Disable(); 1508} 1509this.InUpdate=false; 1510this.RecordState(); 1511}; 1512RadTabStrip.prototype.RecordState=function(){ 1513if(this.InUpdate||!this.Initialized||!this.Enabled){ 1514return; 1515} 1516let _43=RadControlsNamespace.JSON.stringify(this,this.InitialState); 1517let _44=[]; 1518for(let i in this.TabsState){ 1519if(this.TabsState[i]==""){ 1520continue; 1521} 1522if(typeof this.TabsState[i]=="function"){ 1523continue; 1524} 1525_44[_44.length]=this.TabsState[i]; 1526} 1527this.StateField.value="{\"State\":"+_43+",\"TabState\":{"+_44.join(",")+"}}"; 1528}; 1529RadTabStrip.prototype.OnScrollStop=function(){ 1530this.RecordState(); 1531};;if(typeof window.RadControlsNamespace=="undefined"){ 1532window.RadControlsNamespace={}; 1533} 1534RadControlsNamespace.ScrollButtonsPosition={Left:0,Middle:1,Right:2}; 1535RadControlsNamespace.Scroll=function(_1,_2,_3){ 1536this.Owner=_3; 1537this.Element=_1; 1538this.IsVertical=_2; 1539this.ScrollButtonsPosition=_3.ScrollButtonsPosition; 1540this.ScrollPosition=_3.ScrollPosition; 1541this.PerTabScrolling=_3.PerTabScrolling; 1542this.ScrollOnHover=false; 1543this.WrapNeeded=false; 1544this.LeaveGapsForArrows=true; 1545this.LeftArrowClass="leftArrow"; 1546this.LeftArrowClassDisabled="leftArrowDisabled"; 1547this.RightArrowClass="rightArrow"; 1548this.RightArrowClassDisabled="rightArrowDisabled"; 1549this.Initialized=false; 1550}; 1551RadControlsNamespace.Scroll.Create=function(_4,_5,_6){ 1552return new RadControlsNamespace.Scroll(_4,_5,_6); 1553}; 1554RadControlsNamespace.Scroll.prototype.Initialize=function(){ 1555if(this.Initialized){ 1556this.ApplyOverflow(); 1557this.CalculateMinMaxPosition(); 1558this.EvaluateArrowStatus(); 1559return false; 1560} 1561if((this.Element.offsetWidth==0&&!this.IsVertical)||(this.Element.offsetHeight==0&&this.IsVertical)){ 1562return false; 1563} 1564this.Initialized=true; 1565this.ScrollAmount=2; 1566this.Direction=0; 1567if(this.WrapNeeded){ 1568let _7=this.CreateScrollWrap(); 1569} 1570this.ApplyOverflow(); 1571this.Element.style.position="relative"; 1572this.AttachArrows(); 1573this.CalculateMinMaxPosition(); 1574if(this.PerTabScrolling){ 1575this.CalculateInitialTab(); 1576} 1577this.AttachScrollMethods(); 1578this.EvaluateArrowStatus(); 1579this.AttachEventHandlers(); 1580this.ScrollTo(this.ScrollPosition); 1581this.ApplyOverflow(); 1582return _7; 1583}; 1584RadControlsNamespace.Scroll.prototype.ApplyOverflow=function(){ 1585if(RadControlsNamespace.Browser.IsIE){ 1586this.Element.parentNode.style.overflow="visible"; 1587if(this.IsVertical){ 1588this.Element.parentNode.style.overflowX=""; 1589this.Element.parentNode.style.overflowY="hidden"; 1590}else{ 1591this.Element.parentNode.style.overflowX="hidden"; 1592this.Element.parentNode.style.overflowY="hidden"; 1593} 1594}else{ 1595this.Element.parentNode.style.overflow="hidden"; 1596} 1597if(!this.ScrollNeeded()){ 1598this.Element.parentNode.style.overflow="visible"; 1599this.Element.parentNode.style.overflowX="visible"; 1600this.Element.parentNode.style.overflowY="visible"; 1601} 1602}; 1603RadControlsNamespace.Scroll.prototype.ResizeHandler=function(){ 1604if(this.Disposed){ 1605return; 1606} 1607if(!this.Initialized){ 1608this.Initialize(); 1609} 1610if(!this.Initialized){ 1611return; 1612} 1613if(!this.Element.offsetHeight||!this.Element.offsetWidth){ 1614return; 1615} 1616this.CalculateMinMaxPosition(); 1617if(this.Element.offsetWidth<this.Element.parentNode.offsetWidth){ 1618this.ScrollTo(0); 1619} 1620let _8=parseInt(this.IsVertical?this.Element.style.top:this.Element.style.left); 1621if(isNaN(_8)){ 1622_8=0; 1623} 1624let _9=this; 1625};
1626RadControlsNamespace.Scroll.prototype.AttachEventHandlers=function(){ 1627let _a=this.Element; 1628let _b=this; 1629this.resizeClosure=function(){ 1630_b.ResizeHandler(); 1631}; 1632if(window.addEventListener){ 1633window.addEventListener("resize",this.resizeClosure,false); 1634}else{ 1635window.attachEvent("onresize",this.resizeClosure); 1636} 1637}; 1638RadControlsNamespace.Scroll.prototype.Dispose=function(){ 1639this.Disposed=true; 1640this.Element=null; 1641clearTimeout(this.intervalPointer); 1642if(window.removeEventListener){ 1643window.removeEventListener("resize",this.resizeClosure,false); 1644}else{ 1645window.detachEvent("onresize",this.resizeClosure); 1646} 1647}; 1648RadControlsNamespace.Scroll.prototype.AttachArrows=function(){ 1649let _c=this.CreateArrow("«",1,this.LeftArrowClass); 1650let _d=this.CreateArrow("»",-1,this.RightArrowClass); 1651this.LeftArrow=_c; 1652this.RightArrow=_d; 1653if(this.IsVertical){ 1654_c.style.left="0px"; 1655_d.style.left="0px"; 1656if(this.ScrollButtonsPosition==RadControlsNamespace.ScrollButtonsPosition.Middle){ 1657_c.style.top="0px"; 1658_d.style.bottom="0px"; 1659}else{ 1660if(this.ScrollButtonsPosition==RadControlsNamespace.ScrollButtonsPosition.Left){ 1661_c.style.top="0px"; 1662_d.style.top=_c.offsetHeight+"px"; 1663}else{ 1664_d.style.bottom="0px"; 1665_c.style.bottom=_c.offsetHeight+"px"; 1666} 1667} 1668}else{ 1669_c.style.top="0px"; 1670_d.style.top="0px"; 1671if(this.ScrollButtonsPosition==RadControlsNamespace.ScrollButtonsPosition.Middle){ 1672_c.style.left="-1px"; 1673_d.style.right="-1px"; 1674}else{ 1675if(this.ScrollButtonsPosition==RadControlsNamespace.ScrollButtonsPosition.Left){ 1676_c.style.left="-1px"; 1677_d.style.left=(_c.offsetWidth-1)+"px"; 1678}else{ 1679_d.style.right="-1px"; 1680_c.style.right=(_d.offsetWidth-1)+"px"; 1681} 1682} 1683} 1684}; 1685RadControlsNamespace.Scroll.prototype.CreateArrow=function(_e,_f,_10){ 1686let _11=document.createElement("a"); 1687_11.href="#"; 1688_11.className=_10; 1689_11.style.zIndex="2000"; 1690_11.appendChild(document.createTextNode(" ")); 1691this.Element.parentNode.appendChild(_11); 1692let _12=this; 1693_11.ScrollDirection=_f; 1694if(this.ScrollOnHover){ 1695_11.onmousedown=function(){ 1696if(this.disabled){ 1697return false; 1698} 1699_12.ScrollAmount=3; 1700return true; 1701}; 1702_11.onmouseup=function(){ 1703_12.ScrollAmount=1; 1704}; 1705_11.onmouseover=function(){ 1706if(this.disabled){ 1707return false; 1708} 1709_12.ScrollAmount=1; 1710_12.Scroll(this.ScrollDirection); 1711return true; 1712}; 1713_11.onmouseout=function(){ 1714_12.scrollAmount=0; 1715_12.Stop(); 1716return false; 1717}; 1718}else{ 1719_11.onmousedown=function(){ 1720_12.Scroll(this.ScrollDirection); 1721}; 1722_11.onmouseup=function(){ 1723_12.Stop(); 1724}; 1725} 1726_11.onclick=function(){ 1727return false; 1728}; 1729return _11; 1730}; 1731RadControlsNamespace.Scroll.prototype.SetHeight=function(_13){ 1732if(parseInt(_13)==0){ 1733return; 1734} 1735this.Element.parentNode.style.height=_13; 1736this.Initialize(); 1737}; 1738RadControlsNamespace.Scroll.prototype.SetWidth=function(_14){ 1739if(parseInt(_14)==0){ 1740return; 1741} 1742this.Element.parentNode.style.width=_14; 1743this.Initialize(); 1744}; 1745RadControlsNamespace.Scroll.prototype.CreateScrollWrap=function(){ 1746let _15=document.createElement("div"); 1747let _16=this.Element.parentNode; 1748_15.appendChild(this.Element); 1749_15.style.position="relative"; 1750_15.align="left"; 1751_16.appendChild(_15); 1752if(this.IsVertical){ 1753_15.style.styleFloat="left"; 1754_15.style.cssFloat="left"; 1755this.Element.style.display="none"; 1756_15.style.height=_15.parentNode.parentNode.offsetHeight+"px"; 1757this.Element.style.display="block"; 1758}else{ 1759let _17=0; 1760for(let i=0;i<this.Element.childNodes.length;i++){ 1761let _19=this.Element.childNodes[i]; 1762if(!_19.tagName){ 1763continue; 1764} 1765_17+=_19.offsetWidth; 1766} 1767this.Element.style.width=(_17+3)+"px"; 1768} 1769return _15; 1770}; 1771RadControlsNamespace.Scroll.prototype.CalculateMinMaxPosition=function(){ 1772if(!this.Initialized){ 1773return; 1774} 1775if(this.IsVertical){ 1776let _1a=this.Element.parentNode.offsetHeight-this.Element.offsetHeight; 1777let _1b=this.LeftArrow.offsetHeight; 1778let _1c=this.RightArrow.offsetHeight; 1779}else{ 1780let _1a=this.Element.parentNode.offsetWidth-this.Element.offsetWidth; 1781let _1b=this.LeftArrow.offsetWidth; 1782let _1c=this.RightArrow.offsetWidth; 1783} 1784if(!this.LeaveGapsForArrows){ 1785_1b=0; 1786_1c=0; 1787} 1788this.MaxScrollPosition=0; 1789this.MinScrollPosition=_1a-_1c-_1b;
1790if(this.ScrollButtonsPosition==RadControlsNamespace.ScrollButtonsPosition.Middle){ 1791this.Offset=_1b; 1792}else{ 1793if(this.ScrollButtonsPosition==RadControlsNamespace.ScrollButtonsPosition.Left){ 1794this.Offset=_1b+_1c; 1795}else{ 1796this.Offset=0; 1797} 1798} 1799}; 1800RadControlsNamespace.Scroll.prototype.CalculateInitialTab=function(){ 1801let lis=this.Element.getElementsByTagName("li"); 1802if(lis.length>0){ 1803let i=0; 1804while(this.ScrollPosition<-(this.IsVertical?lis[i].offsetTop:lis[i].offsetLeft)){ 1805i++; 1806} 1807this.CurrentTab=i; 1808} 1809}; 1810RadControlsNamespace.Scroll.prototype.AttachScrollMethods=function(){ 1811if(this.PerTabScrolling){ 1812this.Scroll=RadControlsNamespace.Scroll.StartPerTabScroll; 1813this.Stop=RadControlsNamespace.Scroll.StopPerTabScroll; 1814}else{ 1815this.Scroll=RadControlsNamespace.Scroll.StartSmoothScroll; 1816this.Stop=RadControlsNamespace.Scroll.StopSmoothScroll; 1817} 1818}; 1819RadControlsNamespace.Scroll.prototype.EvaluateArrowStatus=function(){ 1820let _1f=!(this.ScrollPosition>=this.MinScrollPosition); 1821let _20=!(this.ScrollPosition<this.MaxScrollPosition); 1822this.RightArrow.disabled=_1f; 1823this.LeftArrow.disabled=_20; 1824if(_20){ 1825if(this.LeftArrow.className!=this.LeftArrowClassDisabled){ 1826this.LeftArrow.className=this.LeftArrowClassDisabled; 1827} 1828}else{ 1829if(this.LeftArrow.className!=this.LeftArrowClass){ 1830this.LeftArrow.className=this.LeftArrowClass; 1831} 1832} 1833if(_1f){ 1834if(this.RightArrow.className!=this.RightArrowClassDisabled){ 1835this.RightArrow.className=this.RightArrowClassDisabled; 1836} 1837}else{ 1838if(this.RightArrow.className!=this.RightArrowClass){ 1839this.RightArrow.className=this.RightArrowClass; 1840} 1841} 1842}; 1843RadControlsNamespace.Scroll.StartSmoothScroll=function(_21){ 1844this.Stop(); 1845this.Direction=_21; 1846let _22=this; 1847let _23=function(){ 1848_22.ScrollBy(_22.Direction*_22.ScrollAmount); 1849}; 1850_23(); 1851this.scrollInterval=setInterval(_23,10); 1852}; 1853RadControlsNamespace.Scroll.prototype.ScrollTo=function(_24){ 1854_24=Math.max(_24,this.MinScrollPosition); 1855_24=Math.min(_24,this.MaxScrollPosition); 1856_24+=this.Offset; 1857if(this.IsVertical){ 1858this.Element.style.top=_24+"px"; 1859}else{ 1860this.Element.style.left=_24+"px"; 1861} 1862this.Owner.ScrollPosition=this.ScrollPosition=_24-this.Offset; 1863this.EvaluateArrowStatus(); 1864}; 1865RadControlsNamespace.Scroll.prototype.ScrollBy=function(_25){ 1866let _26=this.ScrollPosition; 1867this.ScrollTo(_26+_25); 1868}; 1869RadControlsNamespace.Scroll.StartPerTabScroll=function(_27){ 1870this.Stop(); 1871let lis=this.Element.getElementsByTagName("li"); 1872let _29=this.CurrentTab-_27; 1873if(_29<0||_29>lis.length){ 1874return; 1875} 1876let _2a=_27==-1?this.CurrentTab:_29; 1877this.CurrentTab=_29; 1878if(this.IsVertical){ 1879let _2b=lis[_2a].offsetHeight; 1880}else{ 1881let _2b=lis[_2a].offsetWidth; 1882} 1883this.ScrollBy(_2b*_27); 1884this.EvaluateArrowStatus(); 1885}; 1886RadControlsNamespace.Scroll.prototype.ScrollNeeded=function(){ 1887return true; 1888if(this.IsVertical){ 1889return this.Element.offsetHeight>this.Element.parentNode.offsetHeight; 1890} 1891return this.Element.offsetWidth>this.Element.parentNode.offsetWidth; 1892};
1893RadControlsNamespace.Scroll.StopSmoothScroll=function(_2c){ 1894if(this.OnScrollStop){ 1895this.OnScrollStop(); 1896} 1897clearInterval(this.scrollInterval); 1898}; 1899RadControlsNamespace.Scroll.StopPerTabScroll=function(_2d){ 1900if(this.OnScrollStop){ 1901this.OnScrollStop(); 1902} 1903};;//BEGIN_ATLAS_NOTIFY 1904if (typeof(Sys) != "undefined"){if (Sys.Application != null && Sys.Application.notifyScriptLoaded != null){Sys.Application.notifyScriptLoaded();}} 1905//END_ATLAS_NOTIFY
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.