PageSourceSearch

http://www.anpfiff.info/ScriptResource.axd?d=MhMcgZhfAXQkj2Nce6twO…UUdZRo-NKh5BrgTPWX1easo1&t=ffffffffca469afc

js anpfiff.info collected 2026-10-02 07:21:07 UTC 52,964 bytes, 1,187 lines download raw bytes

1(function(a,c){Type.registerNamespace("Telerik.Web.UI");
2var b=Telerik.Web.UI;
3b.RadTab=function(){b.RadTab.initializeBase(this);
4this._properties=new b.PropertyBag(this);
5};
6b.RadTab.GetView=function(g,f){var e=g._renderMode,d=b.RadTab.Views;
7if(e==b.RenderMode.Classic){return new d.Classic(f);
8}else{return new d.Lite(f);
9}};
10b.RadTab.prototype={_requiresScrolling:function(){return this.get_tabStrip()._tabContainerRequiresScrolling(this);
11},_createChildControls:function(){this._children=new b.RadTabCollection(this);
12b.RadTabStrip._createChildControls(this,this._children);
13},_tabsFromSameLevel:function(){var f=[];
14Array.addRange(f,this.get_tabStrip()._children._array);
15while(f.length>0){var e=f.length;
16if(Array.indexOf(f,this)>-1){return f;
17}for(var d=0;
18d<e;
19d++){var g=f[0];
20Array.remove(f,g);
21Array.addRange(f,g._children._array);
22}}return f;
23},_getChildListIndex:function(){if(!this.get_tabData()){return -1;
24}var g=this._tabsFromSameLevel();
25var d=-1;
26for(var e=0;
27e<g.length;
28e++){var f=g[e];
29if(f.get_tabData()){d++;
30}if(f==this){break;
31}}return d;
32},_ensureElements:function(){if(!this.get_childListElement()){this._createChildListElement();
33}},_createChildListElement:function(){var d=document.createElement("ul"),e=this._getListItemsForTheCurrentLevel(),f=this.get_parent();
34d.className="rtsUL";
35d.style.display="none";
36if(this.get_selected()&&f&&a(f._childListElement).is(":visible")){d.style.display="";
37}if(!e){this.get_parent()._ensureElements();
38this.get_tabStrip()._createLevelElement(this.get_level()+2);
39e=this._getListItemsForTheCurrentLevel();
40}this._requireChildList();
41this.get_levelElement().insertBefore(d,e[this._getChildListIndex()]||null);
42Array.insert(e,this._getChildListIndex(),d);
43return d;
44},_shouldInitializeChild:function(d){return true;
45},_getListItemsForTheCurrentLevel:function(){return this.get_tabStrip()._getListElementsForLevel(this._getLevelIndex());
46},_getChildElements:function(){return $telerik.getChildrenByTagName(this.get_childListElement(),"li");
47},_requireChildList:function(){this._itemData=[];
48},_doesNotRequireChildList:function(){this._itemData=null;
49},_destroyChildListElement:function(){this.get_tabStrip()._destroyChildren(this);
50this._doesNotRequireChildList();
51},_renderSeparator:function(d){d[d.length]="<li class='rtsLI rtsSeparator'>";
52d[d.legnth]=this.get_text();
53d[d.length]="</li>";
54},_renderTab:function(d){var e=this;
55this.withView(function(){e.get_view()._renderTab(d);
56});
57},_renderLink:function(d){var e=this;
58d[d.length]="<a ";
59if(this.get_target()){d[d.length]="target='";
60d[d.length]=this.get_target();
61d[d.length]="' ";
62}d[d.length]="href='";
63if(this.get_navigateUrl()){d[d.length]=this.get_navigateUrl();
64}else{d[d.length]="#";
65}d[d.length]="' class='";
66d[d.length]=this._getLinkCssClass();
67d[d.length]="'>";
68this.withView(function(){e.get_view()._renderContent(d);
69});
70d[d.length]="</a>";
71},_renderInnerContent:function(d){this._renderImgElement(d);
72this._renderTextElement(d);
73},_renderImgElement:function(d){var e=this._determineImage();
74if(e){d[d.length]="<img alt='' class='rtsImg' src='";
75d[d.length]=e;
76d[d.length]="' />";
77}},_renderTextElement:function(d){d[d.length]="<span class='rtsTxt'>";
78d[d.length]=this.get_text();
79d[d.length]="</span>";
80},_removeGhostTab:function(){var d=this._ghost;
81if(d){d.parentNode.removeChild(d);
82}this._ghost=null;
83delete this._ghost;
84},_getLinkCssClass:function(e){var f=this;
85var d;
86this.withView(function(){d=f.get_view()._getLinkCssClass(e);
87});
88return d.join(" ");
89},_getElementCssClass:function(){var e=this;
90var d;
91this.withView(function(){d=e.get_view()._getElementCssClass();
92});
93return d.join(" ");
94},_determineStateCssClass:function(){var d=[];
95if(this.get_cssClass()){d[d.length]=this.get_cssClass();
96}if(this.get_selected()){d[d.length]="rtsSelected";
97if(this.get_selectedCssClass()){d[d.length]=this.get_selectedCssClass();
98}}if(!this.get_enabled()){d[d.length]="rtsDisabled";
99if(this.get_disabledCssClass()){d[d.length]=this.get_disabledCssClass();
100}}return d;
101},_render:function(d){if(this.get_isSeparator()){this._renderSeparator(d);
102}else{this._renderTab(d);
103}this._updateSiblings();
104if(this.get_tabs().get_count()>0){this._renderChildren();
105}},_updateSiblings:function(){var d=this;
106this.withView(function(){var e=d.get_view();
107if(e._updateSiblings!==c){e._updateSiblings();
108}});
109},_renderChildren:function(){var d=this._createChildListElement();
110var e=[];
111this.get_tabs().forEach(function(f){f._render(e);
112});
113d.innerHTML=e.join("");
114},_cacheDomProperties:function(){this.get_text();
115this.get_navigateUrl();
116},_cleanElements:function(){this._cacheDomProperties();
117b.RadTabStrip._disposeScroller(this);
118var e=this.get_parent(),d=e.get_childListElement();
119this.get_tabs().forEach(function(f){f._cacheDomProperties();
120f._cleanElements();
121});
122d.removeChild(this.get_element());
123this._element=null;
124this._linkElement=null;
125this._outerWrapElement=null;
126this._innerWrapElement=null;
127this._imageElement=null;
128this._textElement=null;
129if($telerik.getChildrenByTagName(d,"li")<1){e._destroyChildListElement();
130}},_getLevelIndex:function(){if(this.get_tabStrip()._ascendingRendering()){return this.get_level()+1;
131}return this.get_tabStrip()._getLevelElements().length-this.get_level()-2;
132},_updateAppearance:function(){if(!this.get_element()){return;
133}if(this.get_linkElement()){this._setCssClass(this.get_linkElement(),this._getLinkCssClass());
134}this._updateImage();
135this._setCssClass(this.get_element(),this._getElementCssClass());
136},_determineImage:function(){var d=this.get_imageUrl();
137if(this.get_selected()&&this.get_selectedImageUrl()){d=this.get_selectedImageUrl();
138}if(!this.get_enabled()&&this.get_disabledImageUrl()){d=this.get_disabledImageUrl();
139}return d;
140},_updateImage:function(){if(!this.get_element()){return;
141}var e=this._determineImage();
142var d=this.get_imageElement();
143if(e){if(!d){d=document.createElement("img");
144d.className="rtsImg";
145d.alt="";
146this.get_innerWrapElement().insertBefore(d,this.get_textElement());
147}if(this.get_imageElement().src!=e){this.get_imageElement().src=e;
148}return;
149}if(d){a(d).remove();
150this._imageElement=null;
151}},_setChildListDisplay:function(f){var g=this.get_tabStrip();
152var e=this;
153while(e){var d=e.get_childListElement();
154if(d){d.style.display=f;
155if(f!="none"&&g._align==b.TabStripAlign.Justify){b.RadTabStrip._justify(d,g._orientation);
156}}e=e.get_selectedTab();
157}},_setHighlight:function(d){var e=this;
158this.withView(function(){e.get_view()._setHighlight(d);
159});
160},_highlight:function(){if(!this.get_isEnabled()){return;
161}this._setHighlight(true);
162if(!this.get_hoveredImageUrl()||!this.get_imageElement()){return;
163}if(this.get_imageElement().src!=this.get_hoveredImageUrl()){this.get_imageElement().src=this.get_hoveredImageUrl();
164}},_unhighlight:function(){this._setHighlight(false);
165this._updateImage();
166},_shouldPostBack:function(){var d=this.get_tabStrip();
167if(!d){return false;
168}return this.get_postBack()&&(d._autoPostBack||d._postBackOnClick);
169},_initialize:function(d,e){b.RadTab.callBaseMethod(this,"_initialize",[d,e]);
170this._perTabScrolling=this._properties.getValue("perTabScrolling",false);
171this._scrollChildren=this._properties.getValue("scrollChildren",false);
172this._scrollButtonsPosition=this._properties.getValue("scrollButtonsPosition",b.TabStripScrollButtonsPosition.Right);
173this._ensureChildControls();
174},_dispose:function(){b.RadTab.callBaseMethod(this,"_dispose");
175b.RadTabStrip._disposeScroller(this);
176},_initScrolling:function(){if(this.get_selected()&&this._requiresScrolling()){this.get_tabStrip()._initScrollingForTabContainer(this);
177}},_selectPageView:function(e){var d=this.get_pageView();
178if(d){d._select(e);
179}if(this.get_selectedIndex()>-1){this.get_selectedTab()._selectPageView(e);
180}},_setVisible:function(d){b.RadTab.callBaseMethod(this,"set_visible",[d]);
181if(d){this.get_element().style.display="";
182this._updateSiblings();
183this._updateAppearance();
184}else{this.get_element().style.display="none";
185this.unselect();
186this._updateSiblings();
187}},_getGlobalIndex:function(){return Array.indexOf(this.get_tabStrip().get_allTabs(),this);
188},_setNavigateUrl:function(d){this._properties.setValue("navigateUrl",d,true);
189},get_view:function(){return this._view;
190},withView:function(d,e){if(!this.get_view()){if(this.get_tabStrip()){this._view=b.RadTab.GetView(this.get_tabStrip(),this);
191}else{if(e){return e();
192}else{return;
193}}}return d();
194},scrollIntoView:function(){var d=this;
195this.withView(function(){d.get_view().scrollIntoView();
196});
197},scrollIntoViewWhenNeeded:function(){var d=this;
198this.withView(function(){d.get_view().scrollIntoViewWhenNeeded();
199});
200},get_nextTab:function(){return this.get_nextSibling();
201},get_previousTab:function(){return this.get_previousSibling();
202}
202,click:function(d){if(!this.get_isEnabled()){if(d&&d.preventDefault){d.preventDefault();
203}return false;
204}var f=this.get_tabStrip();
205if(!f){return false;
206}if(f.get_causesValidation()){if(typeof(Page_ClientValidate)!=="undefined"&&!Page_ClientValidate(f.get_validationGroup())){return false;
207}}if(!this.select(d)){return false;
208}if(this._shouldNavigate()){return true;
209}if(this._shouldPostBack()){f._postback({type:b.TabStripCommand.TabClick,index:this._getHierarchicalIndex()});
210}return false;
211},get_pageView:function(){var e=this.get_tabStrip().get_multiPage();
212if(!e){return null;
213}if(this.get_pageViewID()){return e.findPageViewByID(this.get_pageViewID());
214}var d=this._properties.getValue("_implPageViewID","");
215if(d){return e.findPageViewByID(d);
216}return e.get_pageViews().getPageView(this._getGlobalIndex());
217},get_pageViewID:function(){return this._properties.getValue("pageViewID",null);
218},set_pageViewID:function(d){this._properties.setValue("pageViewID",d);
219},get_target:function(){if(this.get_linkElement()){return this._properties.getValue("target",this.get_linkElement().target);
220}return this._properties.getValue("target",null);
221},set_target:function(d){this._properties.setValue("target",d,true);
222if(this.get_linkElement()){this.get_linkElement().target=d;
223}},get_navigateUrl:function(){return this._getNavigateUrl();
224},set_navigateUrl:function(e){var d=this;
225this._setNavigateUrl(e);
226this.withView(function(){d.get_view().set_navigateUrl(e);
227});
228},get_postBack:function(){return this._properties.getValue("postback",true);
229},set_postBack:function(d){this._properties.setValue("postback",d,true);
230},get_selected:function(){if(!this.get_parent()){return false;
231}return this.get_index()==this.get_parent().get_selectedIndex();
232},set_selected:function(d){if(d){this.select();
233}else{this.unselect();
234}},selectParents:function(){var f=[];
235var d=this;
236while(d!=this.get_tabStrip()){f[f.length]=d;
237d=d.get_parent();
238}var e=f.length;
239while(e--){f[e].select();
240}},select:function(d){var k=this;
241var f=this.get_parent();
242if(!f){this._cachedSelected=true;
243return true;
244}var h=this._shouldNavigate(),g=f.get_selectedTab(),j=this.get_tabStrip();
245if(!h&&g==this&&!j.get_clickSelectedTab()){return false;
246}if(j._raiseCancelEvent("tabSelecting",this,d)){return false;
247}var i=this._shouldPostBack()||(h&&(!this.get_target()||this.get_target()=="_self"));
248if(!d){i=false;
249}if(g&&g!=this){g.unselect(i,d);
250}f._setSelectedIndex(this.get_index());
251j._registerSelectedTab(this);
252if(j.get_enableAriaSupport()){b.RadTabStrip._toggleActiveDescendantAttributes(this,j.get_id(),true);
253}this.withView(function(){var e=k.get_view();
254if(e.select){e.select();
255}});
256if(!i){this._updateAppearance();
257this._updateSiblings();
258this._setChildListDisplay("");
259if(this._scroller){if(this._scroller._showArrows!=c){this._scroller._showArrows();
260}}else{j._scrollInitInProgress=true;
261this._initScrolling();
262j._scrollInitInProgress=false;
263}if(j._reorderTabsOnSelect){b.RadTabStrip._reorderTabs(f.get_childListElement(),this.get_element());
264}}if(j.get_multiPage()){this._selectPageView(i);
265}j._raiseEvent("tabSelected",this,d);
266return true;
267},unselect:function(h,d){var j=this;
268var f=this.get_parent();
269if(!f){return;
270}if(!this.get_selected()){return;
271}f._setSelectedIndex(-1);
272var i=this.get_tabStrip();
273i._unregisterSelectedTab(this);
274if(i.get_enableAriaSupport()){b.RadTabStrip._toggleActiveDescendantAttributes(this,i.get_id(),false);
275}this.withView(function(){var e=j.get_view();
276if(e.unselect){e.unselect();
277}});
278if(!h){this._setChildListDisplay("none");
279if(this._scroller&&this._scroller._hideArrows!=c){this._scroller._hideArrows();
280}this._updateAppearance();
281this._updateSiblings();
282}var g=this.get_selectedTab();
283if(i.get_unselectChildren()&&g){g.unselect(h);
284}i._raiseEvent("tabUnSelected",this,d);
285},get_selectedIndex:function(){return this._properties.getValue("selectedIndex",-1);
286},_setSelectedIndex:function(d){this._properties.setValue("selectedIndex",d);
287},set_selectedIndex:function(f){if(f>-1){var e=this.get_tabs().getTab(f);
288if(e){e.select();
289}}else{var d=this.get_selectedTab();
290if(d){d.unselect();
291}}},get_selectedTab:function(){return this.get_tabs().getTab(this.get_selectedIndex())||null;
292},get_tabStrip:function(){return this._getControl();
293},get_isSeparator:function(){return this._properties.getValue("isSeparator",false);
294},set_isSeparator:function(d){this._properties.setValue("isSeparator",d);
295},get_tabData:function(){return this.get_itemData();
296},get_levelElement:function(){if(!this._levelElement){this._levelElement=this._getControl()._getLevelElements()[this._getLevelIndex()]||null;
297}return this._levelElement;
298},get_textElement:function(){if(this.get_isSeparator()){return this.get_element
298();
299}if(!this.get_innerWrapElement()){return null;
300}if(!this._textElement){this._textElement=$telerik.getChildByClassName(this.get_innerWrapElement(),"rtsTxt");
301}return this._textElement;
302},get_linkElement:function(){if(!this.get_element()){return null;
303}if(!this._linkElement){this._linkElement=$telerik.getChildByClassName(this.get_element(),"rtsLink");
304}return this._linkElement;
305},get_imageElement:function(){if(!this.get_innerWrapElement()){return null;
306}if(!this._imageElement){this._imageElement=$telerik.getChildByClassName(this.get_innerWrapElement(),"rtsImg");
307}return this._imageElement;
308},get_outerWrapElement:function(){var d=this;
309if(!this.get_linkElement()){return null;
310}if(!this._outerWrapElement){this._outerWrapElement=this.withView(function(){return d.get_view().get_outerWrapElement();
311});
312}return this._outerWrapElement;
313},get_innerWrapElement:function(){var d=this;
314if(!this.get_outerWrapElement()){return null;
315}if(!this._innerWrapElement){this._innerWrapElement=this.withView(function(){return d.get_view().get_innerWrapElement();
316});
317}return this._innerWrapElement;
318},get_childListElement:function(){if(!this._childListElement){var d=this._getListItemsForTheCurrentLevel();
319if(!d){return null;
320}this._childListElement=d[this._getChildListIndex()]||null;
321}return this._childListElement;
322},get_tabs:function(){return this._getChildren();
323},enable:function(){this.set_enabled(true);
324},disable:function(){this.set_enabled(false);
325},set_visible:function(d){this._setVisible(d);
326},show:function(){this._setVisible(true);
327},hide:function(){this._setVisible(false);
328},set_enabled:function(h){if(this.get_enabled()==h){return;
329}b.RadTab.callBaseMethod(this,"set_enabled",[h]);
330var g=this.get_tabStrip();
331if(g&&g.get_enableAriaSupport()){a(this.get_element()).attr("aria-disabled",!this.get_enabled());
332}this._updateAppearance();
333if($telerik.isIE8&&this.get_linkElement()){this.get_linkElement().disabled=!h;
334}if(this._scroller){this._scroller._toggleEnabled();
335}var f=this.get_tabs();
336for(var d=0,e=f.get_count();
337d<e;
338d++){f.getTab(d).set_enabled(h);
339}},get_disabledCssClass:function(){return this._properties.getValue("disabledCssClass",null);
340},set_disabledCssClass:function(d){this._properties.setValue("disabledCssClass",d,true);
341this._updateAppearance();
342},get_selectedCssClass:function(){return this._properties.getValue("selectedCssClass",null);
343},set_selectedCssClass:function(d){this._properties.setValue("selectedCssClass",d,true);
344this._updateAppearance();
345},get_hoveredCssClass:function(){return this._properties.getValue("hoveredCssClass",null);
346},set_hoveredCssClass:function(d){this._properties.setValue("hoveredCssClass",d,true);
347},_applyCssClass:function(){this._updateAppearance();
348},get_outerCssClass:function(){return this._properties.getValue("outerCssClass",null);
349},set_outerCssClass:function(d){this._properties.setValue("outerCssClass",d,true);
350this._updateAppearance();
351},get_imageUrl:function(){return this._properties.getValue("imageUrl",null);
352},set_imageUrl:function(d){this._properties.setValue("imageUrl",d,true);
353this._updateImage();
354},get_selectedImageUrl:function(){return this._properties.getValue("selectedImageUrl",null);
355},set_selectedImageUrl:function(d){this._properties.setValue("selectedImageUrl",d,true);
356this._updateImage();
357},get_disabledImageUrl:function(){return this._properties.getValue("disabledImageUrl",null);
358},set_disabledImageUrl:function(d){this._properties.setValue("disabledImageUrl",d,true);
359this._updateImage();
360},get_hoveredImageUrl:function(){return this._properties.getValue("hoveredImageUrl",null);
361},set_hoveredImageUrl:function(d){this._properties.setValue("hoveredImageUrl",d,true);
362},get_isBreak:function(){return this._properties.getValue("isBreak",false);
363},set_isBreak:function(d){this._properties.setValue("isBreak",d,true);
364}};
365b.RadTab.registerClass("Telerik.Web.UI.RadTab",b.ControlItem);
366})($telerik.$);
367(function(b){Type.registerNamespace("Telerik.Web.UI");
368var a=Telerik.Web.UI;
369a.RadTabCollection=function(c){a.RadTabCollection.initializeBase(this,[c]);
370this._tabStrip=c.get_tabStrip?c.get_tabStrip():c;
371};
372a.RadTabCollection.prototype={getTab:function(c){return this.getItem(c);
373},insert:function(c,d){a.RadTabCollection.callBaseMethod(this,"insert",[c,d]);
374var e=this._parent;
375var f=this._tabStrip;
376if(!e._childControlsCreated){return;
377}if(e._scroller){f._updateScroller(e);
378}else{if(e._scrollChildren&&f._tabContainerRequiresScrolling(e)){e._initScrolling();
379}}},remove:function(c){a.RadTabCollection.callBaseMethod(this,"remove",[c]);
380var d=this._parent;
381if(d&&d._scroller){if(this._tabStrip._tabContainerRequiresScrolling(d)){this._tabStrip._updateScroller(d);
382}else{d._scroller.dispose();
383this._tabStrip._updateScrollState(d,0);
384}}}};
385a.RadTabCollection.registerClass("Telerik.Web.UI.RadTabCollection",a.ControlItemCollection);
386})();
387(function(a,k){$telerik.findTabStrip=$find;
388$telerik.toTabStrip=function(l){return l;
389};
390Type.registerNamespace("Telerik.Web.UI");
391var c=Telerik.Web.UI,b=Sys.Serialization.JavaScriptSerializer,e=Telerik.Web.Browser,f=document,d=f.body,j="style",g=$telerik.isTouchDevice?"touchstart":"mousedown",i=$telerik.isTouchDevice?"touchend":"mou
391seup",h=$telerik.isTouchDevice?"touchmove":"mousemove";
392c.TabStripOrientation=function(){};
393c.TabStripOrientation.prototype={HorizontalTop:0,HorizontalBottom:1,VerticalRight:2,VerticalLeft:3};
394c.TabStripOrientation.isHorizontal=function(l){return l==c.TabStripOrientation.HorizontalTop||l==c.TabStripOrientation.HorizontalBottom;
395};
396c.TabStripOrientation.isVertical=function(l){return !c.TabStripOrientation.isHorizontal(l);
397};
398c.TabStripOrientation.registerEnum("Telerik.Web.UI.TabStripOrientation");
399c.TabStripAlign=function(){};
400c.TabStripAlign.prototype={Left:0,Center:1,Right:2,Justify:3};
401c.TabStripAlign.registerEnum("Telerik.Web.UI.TabStripAlign");
402c.TabStripScrollButtonsPosition=function(){};
403c.TabStripScrollButtonsPosition.prototype={Left:0,Middle:1,Right:2};
404c.TabStripScrollButtonsPosition.registerEnum("Telerik.Web.UI.TabStripScrollButtonsPosition");
405c.TabStripDropPosition={None:0,Before:1,After:2};
406c.TabStripCommand={TabClick:0,Reorder:1};
407c.RadTabStripCancelEventArgs=function(m,l){c.RadTabStripCancelEventArgs.initializeBase(this);
408this._tab=m;
409this._domEvent=l;
410};
411c.RadTabStripCancelEventArgs.prototype={get_tab:function(){return this._tab;
412},get_domEvent:function(){return this._domEvent;
413}};
414c.RadTabStripCancelEventArgs.registerClass("Telerik.Web.UI.RadTabStripCancelEventArgs",Sys.CancelEventArgs);
415c.RadTabStripEventArgs=function(m,l){c.RadTabStripEventArgs.initializeBase(this);
416this._tab=m;
417this._domEvent=l;
418};
419c.RadTabStripEventArgs.prototype={get_tab:function(){return this._tab;
420},get_domEvent:function(){return this._domEvent;
421}};
422c.RadTabStripEventArgs.registerClass("Telerik.Web.UI.RadTabStripEventArgs",Sys.EventArgs);
423c.RadTabStrip=function(l){c.RadTabStrip.initializeBase(this,[l]);
424this._childTypeName="Telerik.Web.UI.RadTab";
425this._orientation=c.TabStripOrientation.HorizontalTop;
426this._align=c.TabStripAlign.Left;
427this._selectedIndex=-1;
428this._selectedIndexes=[];
429this._selectedIndexesJson="[]";
430this._logEntriesJson="[]";
431this._scrollState={};
432this._scrollStateJson="{}";
433this._multiPageID=null;
434this._shouldReorder=false;
435this._enableDragToReorder=false;
436this._enableAriaSupport=false,this._draggedTab=null;
437this._dropPosition=c.TabStripDropPosition.None;
438this._autoPostBack=false;
439this._postBackOnReorder=false;
440this._postBackOnClick=false;
441this._causesValidation=true;
442this._validationGroup="";
443this._postBackReference=null;
444this._scrollChildren=false;
445this._scrollButtonsPosition=c.TabStripScrollButtonsPosition.Right;
446this._perTabScrolling=false;
447this._reorderTabsOnSelect=false;
448this._rightToLeft=false;
449this._skin=null;
450this._scrollPosition=0;
451this._isVertical=false;
452this._isUsedOnTouchDevices=false;
453this._ariaSettings=null;
454};
455c.RadTabStrip.GetView=function(n){var m=n._renderMode,l=c.RadTabStrip.Views;
456if(m==c.RenderMode.Classic){return new l.Classic(n);
457}else{return new l.Lite(n);
458}};
459c.RadTabStrip._getTabGroups=function(q,s){var o=[];
460var n=[];
461n.size=0;
462Array.add(o,n);
463var r=$telerik.getChildrenByTagName(q,"li");
464for(var p=0;
465p<r.length;
466p++){if(r[p].className=="rtsBreak"){n=[];
467n.size=0;
468Array.add(o,n);
469continue;
470}var t;
471if(!($telerik.isIE7||$telerik.isIE8)){var m=getComputedStyle(r[p]),l=0;
472if(m){l=s=="offsetWidth"?(parseFloat(m.width)+parseFloat(m.paddingLeft)):parseFloat(m.height);
473}t=l;
474}else{t=r[p][s];
475}n.size+=t;
476Array.add(n,r[p]);
477}if(!($telerik.isIE7||$telerik.isIE8)){Array.forEach(o,function(u){u.size=Math.ceil(u.size);
478});
479}return o;
480};
481c.RadTabStrip._reorder=function(l,p){var r=$get(l);
482if(!r){return;
483}var m=$telerik.getChildByClassName(r,"rtsLevel1");
484if(!m){return;
485}var n=$telerik.getFirstChildByTagName(m,"ul");
486if(!n){return;
487}var o=$telerik.getChildrenByClassName(n,"rtsLI");
488var q=o[p];
489if(!q){return;
490}c.RadTabStrip._reorderTabs(n,q);
491};
492c.RadTabStrip._reorderTabs=function(p,q){var m=c.RadTabStrip._getTabGroups(p);
493if(m.length<2){return;
494}var o=m[m.length-1];
495var l=null;
496var n;
497for(n=0;
498n<m.length;
499n++){if(Array.indexOf(m[n],q)>-1){l=m[n];
500break;
501}}if(!l||l==o){return;
502}for(n=0;
503n<o.length;
504n++){p.insertBefore(o[n],l[0]);
505}for(n=0;
506n<l.length;
507n++){p.appendChild(l[n]);
508}};
509c.RadTabStrip._align=function(m,l,n){var o=$get(m);
510if(l!=c.TabStripAlign.Justify&&c.TabStripOrientation.isHorizontal(n)){return;
511}if(l==c.TabStripAlign.Left||o._aligned){return;
512}if(l==c.TabStripAlign.Justify){c.RadTabStrip._justifyTabStrip(o,n);
513return;
514}c.RadTabStrip._verticalAlign(o,l,n);
515};
516c.RadTabStrip._justifyTabStrip=function(r,q){var p=$telerik.getChildrenByTagName(r,"div");
517if(p.length<1){return;
518}for(var n=0;
519n<p.length;
520n++){var o=p[n];
521var l=$telerik.getChildrenByTagName(o,"ul");
522if(l.length<1){return;
523}for(var m=0;
524m<l.length;
525m++){c.RadTabStrip._justify(l[m],q);
526}}};
527c.RadTabStrip._justify=function(m,n){var l=a(m).children(),p,o;
528if(c.TabStripOrientation.isVertical(n)){l.find(".rtsIn").css("height","");
529p="offsetHeight";
530o=c.RadTabStrip._setSize;
531}else{l.css("width","");
532p="offsetWidth",o=function(q,r){a(q).outerWidth(r);
533};
534}c.RadTabStrip._justifyListElement(m,p,o);
535};
536c.RadTabStrip._justifyListElement=function(n,u,r){var l=a(n),t=u=="offsetWidth"?{innerSize:"width",outerSize:"outerWidth"}:{innerSize:"height",outerSize:"outerHeight"},x,w;
537x=l.parent()[t.innerSize]()-(l[t.outerSize]()-l[t.innerSize]());
538if(x<=0){return;
539}w=c.RadTabStrip._getTabGroups(n,u);
540for(var v=0;
541v<w.length;
542v++){var o=w[v];
543if(o.size<=0){continue;
544}var q=[];
545var p;
546for(p=0;
547p<o.length;
548p++){q[p]=o[p][u]/o.size;
549}var m=0;
550for(p=0;
551p<o.length-1;
552p++){var s=Math.round(x*q[p]);
553r(o[p],s);
554m+=s;
555}r(o[p],x-m);
556}};
557c.RadTabStrip._verticalAlign=function(q,l,p){var n=$telerik.getChildByClassName(q,"rtsLevel1");
558if(!n){return;
559}var m=$telerik.getChildByClassName(n,"rtsUL");
560if(!m){return;
561}var o=0;
562if(l==c.TabStripAlign.Center){o=(n.offsetHeight-m.offsetHeight)/2;
563}if(l==c.TabStripAlign.Right){o=n.offsetHeight-m.offsetHeight;
564}if(o>0){m.style.marginTop=o+"px";
565q._aligned=true;
566}};
567c.RadTabStrip._createChildControls=function(p,r){var m=p.get_tabData();
568if(!m){return;
569}var l=$telerik.getChildrenByClassName(p.get_childListElement(),"rtsLI");
570for(var o=0;
571o<m.length;
572o++){var q=new c.RadTab();
573r.add(q);
574var n=o;
575if(typeof(m[o].index)!=="undefined"){n=m[o].index;
576}q._initialize(m[o],l[n]);
577}};
578c.RadTabStrip._disposeScroller=function(m,l){if(m._scroller){m._scroller.dispose(l);
579}};
580c.RadTabStrip._toggleAttribute=function(o,m,n,p){var l=a(o);
581if(p){l.attr(m,n);
582}else{l.removeAttr(m);
583}};
584c.RadTabStrip._toggleActiveDescendantAttributes=function(o,m,p){var q=a("#"+m).get(0);
585var l=o.get_element();
586var n=o.get_selected();
587m+="_active_tab";
588c.RadTabStrip._toggleAttribute(q,"aria-activedescendant",m,false);
589c.RadTabStrip._toggleAttribute(l,"aria-selected",n,n);
590c.RadTabStrip._toggleAttribute(l,"id",m,p);
591c.RadTabStrip._toggleAttribute(q,"aria-activedescendant",m,p);
592};
593c.RadTabStrip.prototype={_initScrolling:function(){var l=this;
594this.withView(function(){l.get_view()._initScrolling();
595});
596},_initScrollingForTabContainer:function(l){var m=this;
597this.withView(function(){m.get_view()._initScrollingForTabContainer(l);
598});
599},_updateScroller:function(l){var m=this;
600this.withView(function(){m.get_view()._updateScroller(l);
601});
602},_updateScrollState:function(l,m){this._scrollState[l._getHierarchicalIndex()]=-Math.round(m);
603this._scrollStateJson=Sys.Serialization.JavaScriptSerializer.serialize(this._scrollState);
604this.updateClientState();
605},_applyWaiAria:function(){var n=this;
606var m=this.get_selectedTab();
607var l=function(){n._applyRootElementAttributes();
608n._applyAriaAttributesToChildren();
609if(m){c.RadTabStrip._toggleActiveDescendantAttributes(m,n.get_id(),true);
610}Sys.Application.remove_load(l);
611};
612Sys.Application.add_load(l);
613},_applyRootElementAttributes:function(){a(this.get_element()).attr({role:"tablist","aria-disabled":!this.get_enabled()});
614if(this._ariaSettings){var m=b.deserialize(this._ariaSettings);
615var l=new c.WaiAriaDecorator(this.get_element(),m);
616l.setAttributes();
617}},_applyAriaAttributesToChildren:function(){var q=this.get_allTabs();
618var p;
619var m;
620for(var n=0,o=q.length;
621n<o;
622n++){p=q[n];
623m={role:"tab","aria-disabled":!p.get_enabled(),"aria-level":p.get_level()};
624if(p.get_pageView()){m["aria-controls"]=p.get_pageView().get_id();
625}a(p.get_element()).attr(m);
626}},_extractTabFromDomEvent:function(l){var m=$telerik.getTouchTarget(l);
627return this._extractItemFromDomElement(m);
628},_attachDragToReorderHandler:function(){var l=a(this._element);
629if(($telerik.isIE7||$telerik.isIE8)&&!$telerik.isIE9Mode){l.on("drag",".rtsLI",function(m){return false;
630});
631}l.find(".rtsUL").on(g,".rtsLI",a.proxy(this._onTabMouseDown,this));
632},_detachDragToReordeHandler:function(){a(this._element).find(".rtsUL").off(g,".rtsLI",a.proxy(this._onTabMouseDown,this));
633},_detachSupplementaryDragHandlers:function(l){a(l).off(h,".rtsLI");
634a(l).off(i,".rtsLI",this._onTabMouseUp);
635a(l).unbind("mouseleave");
636a(document).unbind("mouseup",this._documentMouseUp);
637a(document).unbind("mousemove",this._onTabMouseMove);
638},_attachScrollingHandlersWhenDrag:function(){var l=this._scroller;
639if(this._rightToLeft&&this._orientation!=c.ScrollerOrientation.Vertical){a(l._nextArrow).on("mouseover",function(){l._scrollBackward(c.ScrollerSpeed.Slow);
640});
641a(l._previousArrow).on("mouseover",function(){l._scrollForward(c.ScrollerSpeed.Slow);
642});
643}else{a(l._nextArrow).on("mouseover",function(m){l._scrollForward(c.ScrollerSpeed.Slow);
644});
645a(l._previousArrow).on("mouseover",function(m){l._scrollBackward(c.ScrollerSpeed.Slow);
646});
647}a(l._nextArrow).on("mouseleave",function(m){l._stopScroll();
648});
649a(l._previousArrow).on("mouseleave",function(m){l._stopScroll();
650});
651},_detachScrollingHandlersWhenDrag:function(){var l=this._scroller;
652a(l._nextArrow).off();
653a(l._previousArrow).off();
654},_ensureTabGhost:function(l){var o=this,n=o._draggedTab,m;
655m=f.createElement("div");
656m.className="RadTabStrip_"+o._skin+" rtsDetachedTabContainer";
657m.innerHTML='<div class="rtsGhostTab">'+n.get_text()+"</div>";
658d.appendChild(m);
659m.style.top="-999em";
660m.style.left="-999em";
661m.style.display="block";
662n._ghost=m;
663o._initializeDropClues();
664a(n.get_parent()._childListElement).off(h,".rtsLI",o._ensureTabGhost);
665},_initializeDropClues:function(){var q=this,o=q._isVertical,m=q._dropClueFirst=f.createElement("SPAN"),n=q._dropClueSecond=f.createElement("SPAN"),p=q._skin;
666function l(r){return String.format("{0} {0}_{1} {0}{2} {0}{2}_{1}","rtsDropClue",p,r);
667}m.className=l((o?"Left":"Top"));
668n.className=l((o?"Right":"Bottom"));
669d.appendChild(m);
670d.appendChild(n);
671},_positionDropClues:function(s,l){var t=this,q=t._dropPosition,r=t._isVertical,m=t._dropClueFirst,n=m[j],o=t._dropClueSecond,p=o[j];
672switch(q){case c.TabStripDropPosition.Before:if(r){n.top=l.y+"px";
673n.left=l.x+"px";
674p.top=l.y+"px";
675p.left=l.x+a(s).outerWidth()+"px";
676}else{n.top=l.y+"px";
677n.left=l.x+"px";
678p.top=l.y+s.offsetHeight+"px";
679p.left=l.x+"px";
680}n.display="block";
681p.display="block";
682break;
683case c.TabStripDropPosition.After:if(r){n.top=l.y+a(s).outerHeight()+"px";
684n.left=l.x+"px";
685p.top=l.y+s.offsetHeight+"px";
686p.left=l.x+a(s).outerWidth()+"px";
687}else{n.top=l.y+"px";
688n.left=l.x+a(s).outerWidth()+"px";
689p.top=l.y+s.offsetHeight+"px";
690p.left=l.x+a(s).outerWidth()+"px";
691}n.display="block";
692p.display="block";
693break;
694}},_hideDropClues:function(){if(this._dropClueFirst){this._dropClueFirst.style.display="none";
695}if(this._dropClueSecond){this._dropClueSecond.style.display="none";
696}},_getScrollableSize:function(l){if(this._isVertical){return this._getTabsSize(l,"offsetHeight")-l.get_levelElement().offsetHeight;
697}return this._getTabsSize(l,"offsetWidth")-l.get_levelElement().offsetWidth;
698},_getTabsSize:function(o,p){var l=c.RadTabStrip._getTabGroups(o.get_childListElement(),p);
699var n=0;
700for(var m=0;
701m<l.length;
702m++){if(n<l[m].size){n=l[m].size;
703}}return n;
704},_tabContainerRequiresScrolling:function(m){if(!m._scrollChildren||m.get_tabs().get_count()===0){return false;
705}var l=m.get_levelElement();
706if(!l){return false;
707}if(this._isVertical){return l.offsetHeight<this._getTabsSize(m,"offsetHeight");
708}return l.offsetWidth<this._getTabsSize(m,"offsetWidth");
709},_createChildControls:function(){this._children=new c.RadTabCollection(this);
710c.RadTabStrip._createChildControls(this,this._children);
711},_getLevelElements:function(){if(!this._levelElements){this._levelElements=$telerik.getChildrenByTagName(this._element,"div");
712}return this._levelElements;
713},_getListElementsForLevel:function(l){return this._listElementsPerLevel[l];
714},_childInserting:function(l,n,m){if(!m._childControlsCreated){return;
715}this._cachedSelectedTab=m.get_selectedTab();
716if(l<m.get_selectedIndex()){this._selectedIndex=this._selectedIndex+1;
717}},_childInserted:function(m,o,n){this._allTabs=null;
718if(this._cachedSelectedTab){n._setSelectedIndex(this._cachedSelectedTab.get_index());
719this._cachedSelectedTab=null;
720}if(o._cachedSelected){n._setSelectedIndex(m);
721o._cachedSelected=false;
722}c.RadTabStrip.callBaseMethod(this,"_childInserted",[m,o,n]);
723if(o.get_isBreak()){var l=document.createElement("li");
724l.className="rtsBreak";
725n.get_childListElement().insertBefore(l,o._element.nextSibling);
726}},_childRemoving:function(m){if(m.get_selected()){m.unselect();
727}var l=m.get_parent();
728if(m.get_index()<l.get_selectedIndex()){l._setSelectedIndex((l.get_selectedIndex()-1));
729}m._cleanElements();
730c.RadTabStrip.callBaseMethod(this,"_childRemoving",[m]);
731},_childRemoved:function(o,n){this._allTabs=null;
732var l=n.get_tabs().getTab(0);
733if(l){l._updateAppearance();
734}var m=n.get_tabs().getTab(n.get_tabs().get_count()-1);
735if(m){m._updateAppearance();
736}c.RadTabStrip.callBaseMethod(this,"_childRemoved",[o,n]);
737},_childrenCleared:function(l){this._allTabs=null;
738l.get_tabs().forEach(function(m){m._cleanElements();
739});
740c.RadTabStrip._disposeScroller(this);
741c.RadTabStrip.callBaseMethod(this,"_childrenCleared",[l]);
742},_destroyChildren:function(l){l.get_levelElement().removeChild(l.get_childListElement());
743Array.remove(this._listElementsPerLevel[l._getLevelIndex()],l.get_childListElement());
744if(this._listElementsPerLevel[l._getLevelIndex()].length<1){Array.removeAt(this._listElementsPerLevel,l._getLevelIndex());
745Array.remove(this._levelElements,l.get_levelElement());
746this._element.removeChild(l.get_levelElement());
747l._levelElement=null;
748}l._childListElement=null;
749},_destroyChildListElement:function(){this._destroyChildren(this);
750},_disposeGhost:function(){var l=this._draggedTab;
751if(l){l._removeGhostTab();
752this._draggedTab=null;
753}},_disposeDropClues:function(){var l=this._dropClueFirst,m=this._dropClueSecond;
754if(l){l.parentNode.removeChild(l);
755}this._dropClueFirst=null;
756delete this._dropClueFirst;
757if(m){m.parentNode.removeChild(m);
758}this._dropClueSecond=null;
759delete this._dropClueSecond;
760},_ensureElements:function(){if(!this.get_childListElement()){this._createChildListElement();
761}},_calculateOffset:function(n,l){var m=0;
762if(n>l){m=n-l;
763}else{m=l-n;
764}return m;
765},_createLevelElement:function(l){var o=this;
766var n=document.createElement("div");
767var m=["rtsLevel","rtsLevel"+l];
768this.withView(function(){var p=o.get_view();
769if(p._getLevelClasses!==k){m=m.concat(o.get_view()._getLevelClasses());
770}});
771n.className=m.join(" ");
772if(this._ascendingRendering()){Array.add(this._listElementsPerLevel,[]);
773Array.add(this._levelElements,n);
774this._element.appendChild(n);
775}else{Array.insert(this._listElementsPerLevel,0,[]);
776Array.insert(this._levelElements,0,n);
777this._element.insertBefore(n,this._element.firstChild);
778}return n;
779},_createChildListElement:function(){var l=document.createElement("ul");
780l.className="rtsUL";
781var m=this._createLevelElement(1);
782m.appendChild(l);
783Array.add(this._listElementsPerLevel[this._getLevelIndex()],l);
784return l;
785},_initLevelElements:function(){this._listElementsPerLevel=[];
786var m=this._getLevelElements();
787for(var l=0;
788l<m.length;
789l++){Array.add(this._listElementsPerLevel,$telerik.getChildrenByTagName(m[l],"ul"));
790}},_ascendingRendering:function(){return this._orientation!=c.TabStripOrientation.HorizontalBottom;
791},_getLevelIndex:function(){if(this._ascendingRendering()){return 0;
792}return this._getLevelElements().length-1;
793},_unregisterSelectedTab:function(l){Array.remove(this._selectedIndexes,l._getHierarchicalIndex());
794this._updateSelectedState();
795},_registerSelectedTab:function(l){Array.add(this._selectedIndexes,l._getHierarchicalIndex());
796this._updateSelectedState();
797},_updateSelectedState:function(){this._selectedIndexesJson=Sys.Serialization.JavaScriptSerializer.serialize(this._selectedIndexes);
798this.updateClientState();
799},_getHierarchicalIndex:function(){return"-1";
800},_postback:function(l){if(!this._postBackReference){return;
801}var m=this._postBackReference.replace("arguments",b.serialize(l));
802if(e.ff){setTimeout(function(){eval(m);
803},0);
804}else{eval(m);
805}},_raiseCancelEvent:function(n,o,l){var m=new c.RadTabStripCancelEventArgs(o,l);
806this.raiseEvent(n,m);
807return m.get_cancel();
808},_raiseEvent:function(m,n,l){this.raiseEvent(m,new c.RadTabStripEventArgs(n,l));
809},_raiseReordering:function(l,m,o,p){var n=new c.RadTabStripCancelEventArgs(l,m);
810a.extendEventArgs(n,{index:o,offset:p});
811this.raiseEvent("reordering",n);
812return n.get_cancel();
813},_raiseReordered:function(l,m,o){var n=new c.RadTabStripEventArgs(l,m);
814a.extendEventArgs(n,{offset:o});
815this.raiseEvent("reordered",n);
816},_performReorder:function(r,o,s,p){var m=this._draggedTab,u=m.get_index(),n=m.get_parent().get_tabs(),t,l=a(m._element).width();
817if(o===c.TabStripDropPosition.Before){if(r>u){r--;
818}if(r===u){return;
819}}else{if(u>r){r++;
820}}t=this._calculateOffset(u,r);
821if(this._raiseReordering(m,p,r,t)){return;
822}this._detachDragToReordeHandler();
823var v=m.get_parent(),w=v.get_selectedTab(),x=this.get_tabs();
824this._selectedIndexes=[];
825m._setNavigateUrl(m._getNavigateUrl());
826n.insert(r,m);
827if(w){Array.add(this._selectedIndexes,w._getHierarchicalIndex());
828w._updateSiblings();
829}for(var q=0;
830q<x.get_count();
831q++){this._recursiveSelectedIndecesUpdate(x.getTab(q));
832}this._updateSelectedState();
833this._raiseReordered(m,p,t);
834this._persisted(function(y){y._log.logReorder(m,u,r);
835});
836if(this._align==c.TabStripAlign.Justify){a(m._element).width(l);
837}if(s){m.set_selected(s);
838m._setChildListDisplay("");
839}this._attachDragToReorderHandler();
840this._onReorder(t,m);
841},_recursiveSelectedIndecesUpdate:function(n){var m=n.get_selectedTab(),o=n.get_tabs();
842if(m){Array.add(this._selectedIndexes,m._getHierarchicalIndex());
843}for(var l=0;
844l<o.get_count();
845l++){this._recursiveSelectedIndecesUpdate(o.getTab(l));
846}},_onReorder:function(m,l){if(!this._postBackOnReorder&&this._postBackReference===null){return;
847}this._postback({type:c.TabStripCommand.Reorder,index:l._getHierarchicalIndex(),offset:m});
848},_persisted:function(l){this.trackChanges();
849l(this);
850this.commitChanges();
851},_setSelectedIndex:function(l){this._selectedIndex=l;
852},_initializeKeyboardNavigation:function(){var m=this;
853var l=a(this.get_element());
854if($telerik.isTouchDevice||!this._navigationSettings){return;
855}if(!l.attr("tabIndex")){l.attr("tabIndex",0);
856}l.on("focus",function(n){m._current=m.get_selectedTab()||m.get_tabs().getTab(0);
857if(m._current){a(m._current.get_element()).addClass("rtsFocused");
858}}).on("focusout",function(n){if(m._current){a(m._current.get_element()).removeClass("rtsFocused");
859m._current=null;
860}}).on("keydown",function(n){if(m._current){m._keydown(n);
861}}).on("mousedown",".rtsLI",function(o){var p=m._extractItemFromDomElement($telerik.getTouchTarget(o));
862var n=a(p.get_element());
863setTimeout(function(){l.focus();
864if(m._current){a(m._current.get_element()).removeClass("rtsFocused");
865}m._current=p;
866n.addClass("rtsFocused");
867},100);
868});
869},_applyRtl:function(){var l=this.get_element();
870if(l.className.indexOf("RadTabStrip_rtl")===-1){l.className=String.format("{0} RadTabStrip_rtl RadTabStrip_{1}_rtl",l.className,this._skin);
871}this._rightToLeft=true;
872},_resize:function(l){this.repaint();
873},_doubleClick:function(l){var m=this._extractTabFromDomEvent(l);
874this._raiseEvent("doubleClick",m,l);
875},_onTabMouseDown:function(m){var p=this,q=$telerik.getTouchTarget(m);
876if(!this._isUsedOnTouchDevices){m.preventDefault();
877}p._draggedTab=p._extractItemFromDomElement(q);
878if(!p._draggedTab){return;
879}var n=p._draggedTab.get_parent(),l=n._childListElement,o={tabstrip:p,childList:l};
880if(p._raiseCancelEvent("tabDragStart",p._draggedTab,m)){p._draggedTab=null;
881return false;
882}a(l).on(h,".rtsLI",a.proxy(p._ensureTabGhost,p)).on(h,".rtsLI",function(r){r.preventDefault();
883var u=this;
884if(p._isUsedOnTouchDevices){var v=$telerik.getTouchTarget(r);
885u=a(l).find(v).parents(".rtsLI",a(l).parent()).get(0);
886}if(!u&&p._isUsedOnTouchDevices){p._hideDropClues();
887p._onTabMouseMove(r);
888return;
889}var s=$telerik.getLocation(u),y=s.x,z=s.y,x=y+a(u).width()/2,w=z+a(u).height()/2,t=p._isUsedOnTouchDevices?$telerik.getTouchEventLocation(r):{x:r.pageX,y:r.pageY};
890if(!p._isVertical){if(x<t.x){p._dropPosition=c.TabStripDropPosition.After;
891}else{p._dropPosition=c.TabStripDropPosition.Before;
892}}else{if(w<t.y){p._dropPosition=c.TabStripDropPosition.After;
893}else{p._dropPosition=c.TabStripDropPosition.Before;
894}}p._positionDropClues(u,{x:y,y:z});
895p._onTabMouseMove(r);
896}).on(i,".rtsLI",a.proxy(p._onTabMouseUp,p)).bind("mouseleave",function(r){p._hideDropClues();
897});
898a(document).bind({mouseup:a.proxy(p._documentMouseUp,o),mousemove:a.proxy(p._onTabMouseMove,p)});
899if(p.get_multiPage()){a(p.get_multiPage().get_element()).find(".rmpView").children("iframe").one("mouseenter",function(r){p._pageViewMouseEnter(r);
900});
901}if(p._scroller){p._attachScrollingHandlersWhenDrag();
902}},_pageViewMouseEnter:function(l){var n=this;
903var m;
904if(n._dragInAction&&n._draggedTab){m=n._draggedTab.get_parent()._childListElement;
905n._dragInAction=false;
906n._detachSupplementaryDragHandlers(m);
907n._disposeGhost();
908n._disposeDropClues();
909}},_onTabMouseUp:function(n){if(this._dragInAction){n.stopPropagation();
910this._dragInAction=false;
911}var p=$telerik.getTouchTarget(n),m=this._extractItemFromDomElement(p),o=this._draggedTab.get_parent()._childListElement;
912this._detachSupplementaryDragHandlers(o);
913if(this._scroller){this._detachScrollingHandlersWhenDrag();
914}if(!m){this._disposeGhost();
915this._disposeDropClues();
916return;
917}if(m.get_index()==this._draggedTab.get_index()||m.get_level()!=this._draggedTab.get_level()){this._disposeGhost();
918this._disposeDropClues();
919return;
920}if(m){var l=this._draggedTab.get_selected();
921this._performReorder(m.get_index(),this._dropPosition,l,n);
922}this._disposeGhost();
923this._disposeDropClues();
924},_documentMouseUp:function(m){var n=this.tabstrip,l=this.childList;
925n._detachSupplementaryDragHandlers(l);
926if(n._scroller){n._detachScrollingHandlersWhenDrag();
927}n._disposeGhost();
928n._disposeDropClues();
929},_onTabMouseMove:function(l){this._isUsedOnTouchDevices?l.originalEvent.stopPropagation():l.stopPropagation();
930var n=this._draggedTab._ghost;
931var p=5;
932if(n._isMoving){return;
933}n._isMoving=true;
934this._dragInAction=true;
935setTimeout(function(){n._isMoving=false;
936},10);
937setTimeout(function(){this._dragInAction=false;
938},200);
939var q=$telerik.getScrollOffset(document.body,true);
940if(this._isUsedOnTouchDevices){var o=$telerik.getTouchEventLocation(l),m=25;
941n.style.top=o.y-m+"px";
942n.style.left=o.x+m+"px";
943}else{n.style.top=(l.clientY+(window.pageYOffset||q.y))+p+"px";
944n.style.left=(l.clientX+(window.pageXOffset||q.x))+"px";
945}},_mouseOver:function(l){var m=this._extractTabFromDomEvent(l);
946if(this._highlightedTab==m){return;
947}if(this._highlightedTab){this._highlightedTab._unhighlight();
948}m._highlight();
949this._highlightedTab=m;
950this._raiseEvent("mouseOver",m,l);
951},_mouseOut:function(l){if(!this._highlightedTab){return;
952}if(!l.relatedTarget){return;
953}if($telerik.isDescendant(this._highlightedTab._element,l.relatedTarget)){return;
954}this._highlightedTab._unhighlight();
955this._raiseEvent("mouseOut",this._highlightedTab,l);
956this._highlightedTab=null;
957},_contextMenu:function(l){var m=this._extractItemFromDomElement(l.target);
958this._raiseEvent("contextMenu",m,l);
959},_click:function(m){var p=this,o=$telerik.getTouchTarget(m),l=a(o),n=this._extractItemFromDomElement(o);
960if(l.is("select, option, a, input, label, textarea, button")&&!l.hasClass("rtsLink")){return;
961}this.withView(function(){p.get_view()._click(n);
962});
963if(!n.click(m)){m.preventDefault();
964}},_mouseDown:function(m){var q=this,p=$telerik.getTouchTarget(m),o=this._extractItemFromDomElement(p),l=a(p),n=o.get_linkElement();
965if(!o){return;
966}if(!o._shouldNavigate()&&!l.is("select, option, input, a, label, textarea, button")){m.preventDefault();
967}if(n){this.withView(function(){var r=q.get_view();
968if(r._mouseDown){r._mouseDown(o);
969}});
970setTimeout(function(){if(o.get_isEnabled()){n.focus();
971}},0);
972}},_focus:function(l){var n=this,m=this._extractTabFromDomEvent(l);
973if(!m){return;
974}this.withView(function(){var o=n.get_view();
975if(o._focus){o._focus(m);
976}});
977},_blur:function(l){var n=this,m=this._extractTabFromDomEvent(l);
978if(!m){return;
979}this.withView(function(){var o=n.get_view();
980if(o._blur){o._blur(m);
981}});
982},_activate:function(l){if(!l.altKey){return;
983}var m=this._extractTabFromDomEvent(l);
984m.click();
985},_keydown:function(m){var y=this;
986var p=m.keyCode;
987var o=Sys.UI.Key;
988var l={up:0,down:1,left:2,right:3};
989var z=function(A){if(A){a(y._current.get_element()).removeClass("rtsFocused");
990a(A.get_element()).addClass("rtsFocused");
991if(y.get_enableAriaSupport()){c.RadTabStrip._toggleActiveDescendantAttributes(y._current,y.get_id(),false);
992}y._current=A;
993y._current.scrollIntoViewWhenNeeded();
994if(y.get_enableAriaSupport()){c.RadTabStrip._toggleActiveDescendantAttributes(A,y.get_id(),true);
995}}};
996var q=function(A){if(y._isVertical){w(A);
997}else{r(A);
998}};
999var v=function(){var A=y._current.get_parent();
1000if(A!=y){z(A);
1001}};
1002var s=function(){var A=y._current.get_tabs();
1003if(y._current.get_selected()&&A.get_count()>0){z(y._current.get_selectedTab()||A.getTab(0));
1004}};
1005var r=function(A){var B;
1006switch(A){case l.up:v();
1007break;
1008case l.down:s();
1009break;
1010case l.left:B=y._rightToLeft?"get_nextTab":"get_previousTab";
1011z(y._current[B]());
1012break;
1013case l.right:B=y._rightToLeft?"get_previousTab":"get_nextTab";
1014z(y._current[B]());
1015break;
1016}};
1017var w=function(A){switch(A){case l.up:z(y._current.get_previousTab());
1018break;
1019case l.down:z(y._current.get_nextTab());
1020break;
1021case l.left:if(y._rightToLeft){s();
1022}else{v();
1023}break;
1024case l.right:if(y._rightToLeft){v();
1025}else{s();
1026}break;
1027}};
1028var t=function(){var A=y._current.get_parent().get_tabs().getTab(0);
1029z(A);
1030};
1031var u=function(){var B=y._current.get_parent().get_tabs();
1032var A=B.getTab(B.get_count()-1);
1033z(A);
1034};
1035var n=function(){var B=y._current.get_pageView();
1036var A=B&&a(B.get_element()).find("a, button, :input, [tabindex]");
1037if(B&&B.get_selected()&&A.length){A.eq(0).focus();
1038m.preventDefault();
1039}};
1040var x=function(){if(y._current.click()){y._current.get_linkElement().click();
1041}z(y._current);
1042};
1043switch(p){case o.left:q(l.left);
1044m.preventDefault();
1045break;
1046case o.right:q(l.right);
1047m.preventDefault();
1048break;
1049case o.down:q(l.down);
1050m.preventDefault();
1051break;
1052case o.up:q(l.up);
1053m.preventDefault();
1054break;
1055case o.home:t();
1056m.preventDefault();
1057break;
1058case o.end:u();
1059m.preventDefault();
1060break;
1061case o.enter:x();
1062break;
1063case o.space:x();
1064m.preventDefault();
1065break;
1066case o.tab:n();
1067break;
1068}},initialize:function(){var l=this;
1069if(this._shouldReorder){c.RadTabStrip._reorder(this.get_id(),this._selectedIndex);
1070}this._initLevelElements();
1071this._initializeKeyboardNavigation();
1072c.RadTabStrip.callBaseMethod(this,"initialize");
1073c.RadTabStrip._align(this.get_id(),this._align,this._orientation);
1074this._updateSelectedState();
1075a(this._element).on("click",".rtsLI",function(m){l._click(m);
1076}).on("dblclick",".rtsLI",function(m){l._doubleClick(m);
1077}).on("mousedown",".rtsLI",function(m){l._mouseDown(m);
1078}).on("mouseover",".rtsLI",function(m){l._mouseOver(m);
1079}).on("mouseout",".rtsLI",function(m){l._mouseOut(m);
1080}).on("contextmenu",".rtsLI",function(m){l._contextMenu(m);
1081}).on("focus",".rtsLink",function(m){l._focus(m);
1082}).on("blur",".rtsLink",function(m){l._blur(m);
1083});
1084if($telerik.isIE&&a.isEmptyObject(this._navigationSettings)){$telerik.addHandler(this._element,"activate",a.proxy(this._activate,this));
1085}this._resizeDelegate=Function.createDelegate(this,this._resize);
1086$telerik.addHandler(window,"resize",this._resizeDelegate);
1087this._isUsedOnTouchDevices=$telerik.isTouchDevice;
1088if(this._enableDragToReorder){this._attachDragToReorderHandler();
1089}if($telerik.isRightToLeft(this._element)){this._applyRtl();
1090}this._isVertical=this._orientation===c.TabStripOrientation.VerticalRight||this._orientation===c.TabStripOrientation.VerticalLeft;
1091this._initScrolling();
1092if(this.get_enableAriaSupport()){this._applyWaiAria();
1093}this.raiseEvent("load");
1094},get_rippleZonesConfiguration:function(){return[{element:this.get_element
1094(),rippleConfigurations:[{containerSelector:".rtsLink, .rtsNextArrow , .rtsPrevArrow",disabledClass:"rtsDisabled"}]}];
1095},get_view:function(){return this._view;
1096},withView:function(l){if(!this.get_view()){this._view=c.RadTabStrip.GetView(this);
1097}return l();
1098},repaint:function(){if(!this._scrollInitInProgress){this._initScrolling();
1099}this._element._aligned=null;
1100c.RadTabStrip._align(this.get_id(),this._align,this._orientation);
1101},dispose:function(){if($telerik.isIE&&a.isEmptyObject(this._navigationSettings)){$telerik.removeHandler(this._element,"activate",this._activate);
1102}a(this._element).off();
1103a(document.body).off("keydown",this._keyboardNavigationHandler);
1104c.RadTabStrip.callBaseMethod(this,"dispose");
1105this._detachDragToReordeHandler();
1106$telerik.removeHandler(window,"resize",this._resizeDelegate);
1107c.RadTabStrip._disposeScroller(this,true);
1108},commitChanges:function(){this._logEntriesJson=this._log.serialize();
1109c.RadTabStrip.callBaseMethod(this,"commitChanges");
1110},enable:function(){this.set_enabled(true);
1111},disable:function(){this.set_enabled(false);
1112},set_enabled:function(p){if(this.get_enabled()==p){return;
1113}c.RadTabStrip.callBaseMethod(this,"set_enabled",[p]);
1114if(!this.get_isInitialized()){return;
1115}if(!$telerik.isIE7){this._element.disabled=!p;
1116}if(this._scroller){this._scroller._toggleEnabled();
1117}if(this.get_enableAriaSupport()){c.RadTabStrip._toggleAttribute(this.get_element(),"aria-disabled",!p,true);
1118}var o=this.get_tabs(),l=this.get_view()._getDisabledClass();
1119for(var m=0,n=o.get_count();
1120m<n;
1121m++){o.getTab(m).set_enabled(p);
1122}this.toggleCssClass(l);
1123},get_causesValidation:function(){return this._causesValidation;
1124},set_causesValidation:function(l){this._causesValidation=l;
1125},get_validationGroup:function(){return this._validationGroup;
1126},set_validationGroup:function(l){this._validationGroup=l;
1127},get_unselectChildren:function(){return this._unselectChildren===true;
1128},set_unselectChildren:function(l){this._unselectChildren=l;
1129},get_selectedIndexes:function(){return this._selectedIndexes;
1130},set_selectedIndexes:function(l){this._selectedIndexes=l;
1131},saveClientState:function(){return'{"selectedIndexes":'+this._selectedIndexesJson+',"logEntries":'+this._logEntriesJson+',"scrollState":'+this._scrollStateJson+"}";
1132},get_selectedTab:function(){return this.get_tabs().getTab(this.get_selectedIndex())||null;
1133},get_selectedIndex:function(){return this._selectedIndex;
1134},set_selectedIndex:function(n){if(n>-1){var m=this.get_tabs().getTab(n);
1135if(m){m.select();
1136}}else{var l=this.get_selectedTab();
1137if(l){l.unselect();
1138}}},get_levelElement:function(){if(!this._levelElement){this._levelElement=this._getLevelElements()[this._getLevelIndex()]||null;
1139}return this._levelElement;
1140},get_childListElement:function(){if(!this.get_levelElement()){return null;
1141}if(!this._childListElement){this._childListElement=$telerik.getChildByClassName(this.get_levelElement(),"rtsUL");
1142}return this._childListElement;
1143},get_tabData:function(){return this._tabData;
1144},set_tabData:function(l){this._tabData=l;
1145},get_tabs:function(){return this._getChildren();
1146},get_clickSelectedTab:function(){return this._clickSelectedTab===true;
1147},set_clickSelectedTab:function(l){this._clickSelectedTab=l;
1148},findTabByText:function(l){return this._findItemByText(l);
1149},findTabByValue:function(l){return this._findItemByValue(l);
1150},findTabByAttribute:function(l,m){return this._findItemByAttribute(l,m);
1151},findTabByUrl:function(l){return this._findItemByUrl(l);
1152},findTabByAbsoluteUrl:function(l){return this._findItemByAbsoluteUrl(l);
1153},get_allTabs:function(){if(!this._allTabs){this._allTabs=this._getAllItems();
1154}return this._allTabs;
1155},get_multiPage:function(){if(!this.get_multiPageID()){return null;
1156}return $find(this.get_multiPageID());
1157},set_multiPageID:function(l){this._multiPageID=l;
1158},get_multiPageID:function(){return this._multiPageID;
1159},get_enableAriaSupport:function(){return this._enableAriaSupport;
1160},set_enableAriaSupport:function(l){this._enableAriaSupport=l;
1161},add_tabDragStart:function(l){this.get_events().addHandler("tabDragStart",l);
1162},remove_tabDragStart:function(l){this.get_events().removeHandler("tabDragStart",l);
1163},add_reordered:function(l){this.get_events().addHandler("reordered",l);
1164},remove_reordered:function(l){this.get_events().removeHandler("reordered",l);
1165},add_reordering:function(l){this.get_events().addHandler("reordering",l);
1166},remove_reordering:function(l){this.get_events().removeHandler("reordering",l);
1167},add_tabSelecting:function(l){this.get_events().addHandler("tabSelecting",l);
1168},remove_tabSelecting:function(l){this.get_events().removeHandler("tabSelecting",l);
1169},add_tabSelected:function(l){this.get_events().addHandler("tabSelected",l);
1170},remove_tabSelected:function(l){this.get_events().removeHandler("tabSelected",l);
1171},add_tabUnSelected:function(l){this.get_events().addHandler("tabUnSelected",l);
1172},remove_tabUnSelected:function(l){this.get_events().removeHandler("tabUnSelected",l);
1173},add_load:function(l){this.get_events().addHandler("load",l);
1174},remove_load:function(l){this.get_events().removeHandler("load",l);
1175},add_mouseOver:function(l){this.get_events().addHandler("mouseOver",l);
1176},remove_mouseOver:function(l){this.get_events().removeHandler("mouseOver",l);
1177},add_mouseOut:function(l){this.get_events().addHandler("mouseOut",l);
1178},remove_mouseOut:function(l){this.get_events().removeHandler("mouseOut",l);
1179},add_contextMenu:function(l){this.get_events().addHandler("contextMenu",l);
1180},remove_contextMenu:function(l){this.get_events().removeHandler("contextMenu",l);
1181},add_doubleClick:function(l){this.get_events().addHandler("doubleClick",l);
1182},remove_doubleClick:function(l){this.get_events().removeHandler("doubleClick",l);
1183}};
1184c.RadTabStrip.registerClass("Telerik.Web.UI.RadTabStrip",c.ControlItemContainer);
1185})($telerik.$);
1186
1187if(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.