AdfRichUIPeer.createPeerClass(AdfRichUIPeer,"AdfDhtmlPanelSpringboardPeer",!1);
AdfDhtmlPanelSpringboardPeer.InitSubclass=function(){AdfRichUIPeer.addComponentPropertyChanges(this,AdfRichPanelSpringboard.DISPLAY_MODE);AdfRichUIPeer.addComponentEventHandlers(this,AdfUIInputEvent.KEY_UP_EVENT_TYPE,AdfUIInputEvent.CLICK_EVENT_TYPE,AdfUIInputEvent.MOUSE_DOWN_EVENT_TYPE,AdfUIInputEvent.MOUSE_UP_EVENT_TYPE);AdfAgent.AGENT.getCapabilities()[AdfAgent.CAP_TOUCH_SCREEN]==AdfAgent.CAP_TOUCH_SCREEN_NONE&&AdfRichUIPeer.addComponentEventHandlers(this,AdfUIInputEvent.MOUSE_IN_EVENT_TYPE,AdfUIInputEvent.MOUSE_OUT_EVENT_TYPE);
this._EXPANDO_ROWKEY_ATTRIBUTE="data-ptKey";this._EXPANDO_DISCLOSED_TAB_ID="data-disTab";this._EXPANDO_CANVAS_ATTRIBUTE="data-cnv";this._TAB_HEADER="tabh";this._TAB_BODY_VIEWPORT="tabbvp";this._TAB_BODY_CANVAS="tabbcvs";this._TAB_BODY_A="tabba";this._TAB_BODY_B="tabbb";this._TAB_BODY_C="tabbc";this._TAB_SUB_ID_ABOVE="ti";this._TAB_SUB_ID_ICON="icon";this._SUB_ID_BODY_DIV="bodyDiv";this._SUB_ID_ITEMS_DIV="itemsDiv";this._CLICKABLE_TAB_ITEM="tia";this._SELECTED_POINTER_DIV="sbsp";this._CONVEYOR_BELT_CONTAINER_ID=
"cbc";this._CONVEYOR_BELT_CONTENT_ID="cbct";this._START_CONVEYOR_BELT_INDICATOR="scbic";this._END_CONVEYOR_BELT_INDICATOR="ecbic";this._OPT_RND_ID="optRnd";this._STRIP_CLASS="p_AFStrip";this._GRID_CLASS="p_AFGrid";this._SELECTED_CLASS="p_AFSelected";this._DISABLED_CLASS="p_AFDisabled";this._FLOW_STYLECLASS="p_AFFlow";this._BUSY_CLASS="p_AFBusy";this._SCROLL_CLASS="p_AFScrollY"};
AdfDhtmlPanelSpringboardPeer.prototype.InitDomElement=function(a,b){AdfDhtmlPanelSpringboardPeer.superclass.InitDomElement.call(this,a,b);var d=AdfAgent.getAgent(),e=a.getClientId(),f=AdfRichUIPeer.CreateSubId(e,AdfDhtmlPanelSpringboardPeer._TAB_HEADER);this._headerDiv=d.getElementById(f);f=AdfRichUIPeer.CreateSubId(e,AdfDhtmlPanelSpringboardPeer._SELECTED_POINTER_DIV);this._selectedPointerDiv=d.getElementById(f);f=AdfRichUIPeer.CreateSubId(e,AdfDhtmlPanelSpringboardPeer._TAB_BODY_CANVAS);this._bodyCanvasDiv=
d.getElementById(f);f=AdfRichUIPeer.CreateSubId(e,AdfDhtmlPanelSpringboardPeer._TAB_BODY_VIEWPORT);this._bodyViewportDiv=d.getElementById(f);this._cBeltContainer=d.getElementById(AdfRichUIPeer.CreateSubId(e,AdfDhtmlPanelSpringboardPeer._CONVEYOR_BELT_CONTAINER_ID));this._cBeltContent=d.getElementById(AdfRichUIPeer.CreateSubId(e,AdfDhtmlPanelSpringboardPeer._CONVEYOR_BELT_CONTENT_ID));this._startCBeltI=d.getElementById(AdfRichUIPeer.CreateSubId(e,AdfDhtmlPanelSpringboardPeer._START_CONVEYOR_BELT_INDICATOR));
this._endCBeltI=d.getElementById(AdfRichUIPeer.CreateSubId(e,AdfDhtmlPanelSpringboardPeer._END_CONVEYOR_BELT_INDICATOR));this._optRndId=AdfRichUIPeer.CreateSubId(e,AdfDhtmlPanelSpringboardPeer._OPT_RND_ID);var e=AdfPage.PAGE.getLookAndFeel(),g=AdfDhtmlPanelSpringboardPeer._isRTL();this._shiftField=g?"right":"left";if(this._hideSelectedPointer="true"==e.getSkinProperty("af|panelSpringboard-tr-hide-selected-pointer"))this._selectedPointerDiv.style.display="none";this._cBeltNavWidth=0;this._cBeltMoving=
!1;this._cBeltShift={};this._conveyorSlideAnimationDuration=parseInt(e.getSkinProperty("af|panelSpringboard-tr-conveyor-slide-animation-duration"),10);isNaN(this._conveyorSlideAnimationDuration)&&(this._conveyorSlideAnimationDuration=0);this._currCBeltIndex=0;this._initialDisplay=!0;this._swipeMovingPosition=this._swipeStartPosition=0;var h=this;d.addBubbleEventListener(this._startCBeltI,"click",function(){h._shiftConveyor(!g)});d.addBubbleEventListener(this._endCBeltI,"click",function(){h._shiftConveyor(g)});
d.addBubbleEventListener(this._cBeltContent,"keyup",this.createCallback(this._processCbeltTab));d.addBubbleEventListener(this._cBeltContent,"touchstart",function(a){h._swipeStartPosition=a.pageX});d.addBubbleEventListener(this._cBeltContent,"touchmove",function(a){h._swipeMovingPosition=a.pageX});d.addBubbleEventListener(this._cBeltContent,"touchend",function(a){if(h._isCBeltActivated()){if(!h._swipeMovingPosition||!h._swipeStartPosition)return;h._swipeMovingPosition<h._swipeStartPosition&&"inline-block"==
h._endCBeltI.style.display?h._shiftConveyor(!1):"inline-block"==h._startCBeltI.style.display&&h._shiftConveyor(!0)}h._swipeStartPosition=0;h._swipeMovingPosition=0});(e=d.getCapabilities()[AdfAgent.CAP_TOUCH_SCREEN])&&e!=AdfAgent.CAP_TOUCH_SCREEN_NONE&&this._initBodySwiping(d,this._bodyViewportDiv);"strip"===a.getProperty(AdfRichPanelSpringboard.DISPLAY_MODE)&&(d=this._getChildElements(this._headerDiv),this._setBeltContentHeight(d[0]),this._cBeltContent.style.overflow="hidden",this._cBeltContainer.style.overflow=
"hidden")};
AdfDhtmlPanelSpringboardPeer.prototype.ComponentDisplayModeChanged=function(a,b,d,e){if(a.getProperty("_ignoreNextDisplayModeChange"))a.setProperty("_ignoreNextDisplayModeChange",!1,!1,!1);else{var f=new AdfSpringboardChangeEvent(a,d);f.queue(!0);f.isCanceled()?(a.setProperty("_ignoreNextDisplayModeChange",!0,!1,!1),a.setProperty("displayMode",e,!1,!1)):(a=this._getChildElements(this._headerDiv),e=AdfDomUtils.containsCSSClassName(b,AdfDhtmlPanelSpringboardPeer._FLOW_STYLECLASS),"grid"==d?(AdfDomUtils.addCSSClassName(b,
AdfDhtmlPanelSpringboardPeer._GRID_CLASS),AdfDomUtils.removeCSSClassName(b,AdfDhtmlPanelSpringboardPeer._STRIP_CLASS),this._setItemsToNonSelectedState(a),e&&(b.style.height=""),this._isCBeltActivated()&&this._hideCBelt(),this._selectedPointerDiv.style.display="none",this._animateFromStripToGrid(a,b.offsetWidth,b.offsetHeight)):"strip"==d&&(this._bodyViewportDiv.style.visibility="hidden",AdfDomUtils.addCSSClassName(b,AdfDhtmlPanelSpringboardPeer._STRIP_CLASS),AdfDomUtils.removeCSSClassName(b,AdfDhtmlPanelSpringboardPeer._GRID_CLASS),
d=e?null:this._getCanvasDiv("middle"),this._setBusy(b,d),e&&(b.style.width="auto",b.style.height="auto"),delete this._haveShowDetailItemsInStrip,this._animateFromGridToStrip(a,b.offsetWidth)))}};
AdfDhtmlPanelSpringboardPeer.prototype.HandleComponentKeyUp=function(a){var b=a.getKeyCode(),d=a.getNativeEventTarget();if(!a.isCanceled())if(b==AdfKeyStroke.ARROWUP_KEY||b==AdfKeyStroke.ARROWLEFT_KEY)this._isTabLink(d)&&((b=AdfFocusUtils.getPreviousFocusableDescendant(this._headerDiv,d))||(b=AdfFocusUtils.getLastFocusableDescendant(this._headerDiv)),b&&(b.focus(),a.cancel()));else if((b==AdfKeyStroke.ARROWDOWN_KEY||b==AdfKeyStroke.ARROWRIGHT_KEY)&&this._isTabLink(d))(b=AdfFocusUtils.getNextFocusableDescendant(this._headerDiv,
d))||(b=AdfFocusUtils.getFirstFocusableDescendant(this._headerDiv)),b&&(b.focus(),a.cancel())};AdfDhtmlPanelSpringboardPeer.prototype.HandleComponentMouseOver=function(a){this._handleIcon(a,!0,!1)};AdfDhtmlPanelSpringboardPeer.prototype.HandleComponentMouseDown=function(a){this._handleIcon(a,!1,!0)};AdfDhtmlPanelSpringboardPeer.prototype.HandleComponentMouseUp=function(a){this._handleIcon(a,!1,!1)};AdfDhtmlPanelSpringboardPeer.prototype.HandleComponentMouseOut=function(a){this._handleIcon(a,!1,!1)};
AdfDhtmlPanelSpringboardPeer.prototype.HandleComponentClick=function(a){if(!a.isCanceled()&&a.isLeftButtonPressed()){var b=this.getComponent(),d=a.getNativeEventTarget(),d=this._getRowKeyElementFromDomElement(d,this.getDomElement()),e=this._getRowKeyFromDomElement(d);null!=e&&(a.cancel(),a=AdfPage.PAGE.findComponent(e),a.getDisabled()||("grid"!=b.getProperty(AdfRichPanelSpringboard.DISPLAY_MODE)?this._discloseClickedComponent(b,a,d):(d=this._getOldDisclosedChildComponent(b),a!=d&&(null!=a&&(e=a.getClientId(),
this._changeSelected(e,!0)),null!=d&&(d=d.getClientId(),this._changeSelected(d,!1))),b.setProperty(AdfRichPanelSpringboard.DISPLAY_MODE,"strip",!1,!1),this._discloseItem(a.getClientId()))))}};AdfDhtmlPanelSpringboardPeer.prototype._discloseItem=function(a){AdfPage.PAGE.findComponent(a).setDisclosed(!0)};AdfDhtmlPanelSpringboardPeer.prototype.TabReselected=function(a){};AdfDhtmlPanelSpringboardPeer.prototype.NewTabSelected=function(a){};
AdfDhtmlPanelSpringboardPeer.prototype.ReplaceDomElement=function(a,b){var d=AdfAgent.AGENT;this._canvasOfSelectedItem&&delete this._canvasOfSelectedItem;if(this._isOptimizedRenderTarget(a)){var e=this.getDomElement();null!=e&&this._removeBusy(e);var f=a.childNodes,g,h;if(null!=f){2>f.length&&AdfLogger.LOGGER.severe("Error getting the body and item divs of the optRnd block.");for(var k=!1,e=0;e<f.length;e++)if(1==f[e].nodeType)if(k)h=f[e],l=h.id,null!=l&&-1==l.indexOf(AdfDhtmlPanelSpringboardPeer._SUB_ID_ITEMS_DIV)&&
AdfLogger.LOGGER.severe("Error getting the item div of the optRnd block.");else{g=f[e];var l=g.id;null!=l&&-1==l.indexOf(AdfDhtmlPanelSpringboardPeer._SUB_ID_BODY_DIV)&&AdfLogger.LOGGER.severe("Error getting the body div of the optRnd block.");k=!0}for(var k=g.childNodes,m,e=k.length-1;-1<e;--e)if(l=k[e],void 0==l)AdfLogger.LOGGER.severe("Error getting the child of the optRnd block, index: "+e);else if(1==l.nodeType){var n=AdfDomUtils.getFirstChildElement(l);"none"!=l.style.display&&(m=l,this._setOldDisclosedChild(n.id));
g.removeChild(l);f=d.getElementById(n.id);null!=f&&(page.removeComponentsInSubtree(f),d.elementsRemoved(f),d.replaceNode(l,f.parentNode),d.elementsAdded(n));this._haveShowDetailItemsInStrip=!0}k=h.childNodes;for(l=k.length-1;-1<l;--l)n=k[l],void 0==n?AdfLogger.LOGGER.severe("Error getting the child of the optRnd block, index: "+e):1==n.nodeType&&(f=n.id,h.removeChild(n),f=d.getElementById(f),null!=f&&(page.removeComponentsInSubtree(f),d.elementsRemoved(f),d.replaceNode(n,f),d.elementsAdded(n)));(d=
this._getHeaderDivDisclosedElement(AdfDhtmlPanelSpringboardPeer._CLICKABLE_TAB_ITEM))&&AdfFocusUtils.focusElement(d);a.removeChild(g);a.removeChild(h);m&&(this._canvasOfSelectedItem=m.parentNode.parentNode);!this._bodyCanvasAnimatorQueued&&(!this._toStripAnimationObject&&this._canvasOfSelectedItem)&&(this._rearrangeCanvasDivs(this._canvasOfSelectedItem),delete this._canvasOfSelectedItem,this._setSelectedPointerPosition(),this._hideSelectedPointer||(this._selectedPointerDiv.style.display=""))}}else AdfDhtmlPanelSpringboardPeer.superclass.ReplaceDomElement.call(this,
a,b)};AdfDhtmlPanelSpringboardPeer.prototype.DomReplaceNotify=function(a){return this._isOptimizedRenderTarget(a)?this.getDomElement():a};AdfDhtmlPanelSpringboardPeer.prototype.needsResizeNotify=function(a){return!0};
AdfDhtmlPanelSpringboardPeer.prototype.ResizeNotify=function(a,b,d,e){this._cBeltShift={};if(!(null!=this._toStripAnimationObject||null!=this._toGridAnimationObject))if(b=this.getDomElement()){AdfAssert.assertDomElement(b);b=this._initialDisplay;var f=this.getComponent(),g=this._getChildElements(this._headerDiv);(f="grid"!=f.getProperty(AdfRichPanelSpringboard.DISPLAY_MODE))&&d!=a?(this._positionStripMode(g,d),this._initialPositionCanvasDivs(d),!b&&this._getCompleteItemWidth()>d&&this._attemptToShowAsMuchElementsAsPossible(g)):
f||(this._positionGridMode(g,d,e),this._setItemsToNonSelectedState(g))}};
AdfDhtmlPanelSpringboardPeer.prototype.componentRemoved=function(a){this._selectedPtrAnimator&&(this._selectedPtrAnimator.stop(),delete this._selectedPtrAnimator);this._bodyCanvasAnimator&&(this._bodyCanvasAnimator.stop(),delete this._bodyCanvasAnimator,this._bodyCanvasAnimatorQueued=!1);this._toGridAnimationObject&&(this._toGridAnimationObject.stop(),delete this._toGridAnimationObject);this._toStripAnimationObject&&(this._toStripAnimationObject.stop(),delete this._toStripAnimationObject);delete this._headerDiv;
delete this._bodyDiv;delete this._bodyCanvasDiv;delete this._bodyViewportDiv;delete this._optRndId;this._unregisterBodySwiping();AdfPage.PAGE.__unregisterDescendantResizeNotifyComponent(a);AdfDhtmlPanelSpringboardPeer.superclass.ComponentRemoved.call(this,a)};
AdfDhtmlPanelSpringboardPeer.prototype._positionStripMode=function(a,b){var d=a.length;if(0<d){var e=this._getStripItemPositions(a,b),f,g,h=this._shiftField,k=this._initialDisplay,l=-1;k&&delete this._initialDisplay;for(var m=0;m<d;m++){var n=e[m].properties;a[m].style[h]=n[h]+"px";a[m].style.top=n.top+"px";var p=AdfDomUtils.getFirstChildElement(a[m]);p&&AdfDomUtils.containsCSSClassName(p,AdfDhtmlPanelSpringboardPeer._SELECTED_CLASS)&&(g=!0,f=n[h],l=m)}null!=this._selectedPointerDiv&&g&&(this._selectedPointerDiv.style[h]=
f+"px",k&&this._positionElementIntoOverflow(b,a,l,f))}};AdfDhtmlPanelSpringboardPeer.prototype._positionGridMode=function(a,b,d){var e=a.length;if(0<e){b=this._getGridItemPositions(a,b,d);b.length!==e&&AdfLogger.LOGGER.severe("The number of items in the panelSpringboard does not equal the number of items in the grid items position array.");d=this._shiftField;for(var f=0;f<e;f++){var g=b[f].properties;a[f].style[d]=g[d]+"px";a[f].style.top=g.top+"px"}}};
AdfDhtmlPanelSpringboardPeer.prototype._getStripItemPositions=function(a,b,d){var e=a.length,f=this._shiftField,g=[],h;if(0<e){var k=a[0].offsetWidth;h={};if(!d&&this._getCompleteItemWidth()>b){d=0;this._maintainCBeltDisplay(b);for(b=0;b<e;b++)h={top:0},h[f]=d,h={element:a[b],properties:h},g.push(h),d+=k}else{this._isCBeltActivated()&&this._hideCBelt();d=Math.max(0,b/2-e*k/2);for(b=0;b<e;b++)d=Math.round(d),h={top:0},h[f]=d,h={element:a[b],properties:h},g.push(h),d+=k}}return g};
AdfDhtmlPanelSpringboardPeer.prototype._getGridItemPositions=function(a,b,d){var e=a.length;if(0<e){var f=[],g,h=a[0].offsetWidth,k=a[0].offsetHeight,l=this._determineGridLayout(e),m=k*l.rows,n=h*l.columns,p=b/2-n/2,q=d/2-m/2,r=this._shiftField;n>b?(l.columns=Math.floor(b/h),0==l.columns&&(l.columns=1),b=Math.ceil(e/l.columns),l.rows=b,q=b=0):m>d?(b=p,q=0):b=p;m=k*l.rows;m>d?AdfDomUtils.addCSSClassName(this._headerDiv,AdfDhtmlPanelSpringboardPeer._SCROLL_CLASS):AdfDomUtils.removeCSSClassName(this._headerDiv,
AdfDhtmlPanelSpringboardPeer._SCROLL_CLASS);m=0;g={};this._cBeltContent.style.height="";this._cBeltContent.style.overflow="";this._cBeltContainer.style.overflow="";for(n=0;n<l.rows&&m<e;n++){d=b;for(p=0;p<l.columns&&m<e;p++)d=Math.round(d),q=Math.round(q),g={top:q},g[r]=d,g={element:a[m],properties:g},f.push(g),d+=h,m++;q+=k}}return f};
AdfDhtmlPanelSpringboardPeer.prototype._animateFromGridToStrip=function(a,b){if(0<a.length){var d=this._getStripItemPositions(a,b,!0);this._toStripAnimationOffsetWidth=b;var e=0,e=AdfPage.PAGE.getLookAndFeel(),e=parseInt(e.getSkinProperty("af|panelSpringboard-tr-grid-to-strip-animation-duration"),10);isNaN(e)&&(e=0);this._toStripAnimationObject=AdfDhtmlElementAnimator.animate(AdfDhtmlElementAnimator.FRAME_METHOD_CONSTANT_SPEED,e,d,function(a){a[0]._duringToStripAnimation()},function(b){b[0]._afterToStripAnimationFinal();
b=b[0];parseInt(b._cBeltContent.style.height,10)!==a[0].offsetHeight&&b._setBeltContentHeight(a[0]);b._cBeltContent.style.overflow="hidden";b._cBeltContainer.style.overflow="hidden";b._getCompleteItemWidth()>b._toStripAnimationOffsetWidth&&(b._maintainCBeltDisplay(b._toStripAnimationOffsetWidth),b._positionElementIntoOverflow(b._toStripAnimationOffsetWidth))},[this],null)}};
AdfDhtmlPanelSpringboardPeer.prototype._animateFromStripToGrid=function(a,b,d){this._bodyViewportDiv.style.visibility="hidden";0<a.length&&(a=this._getGridItemPositions(a,b,d),this._toGridAnimationOffsetWidth=b,this._toGridAnimationOffsetHeight=d,b=0,b=AdfPage.PAGE.getLookAndFeel(),b=parseInt(b.getSkinProperty("af|panelSpringboard-tr-strip-to-grid-animation-duration"),10),isNaN(b)&&(b=0),this._toGridAnimationObject=AdfDhtmlElementAnimator.animate(AdfDhtmlElementAnimator.FRAME_METHOD_CONSTANT_SPEED,
b,a,function(a){a[0]._duringToGridAnimation()},function(a){a[0]._afterToGridAnimationFinal()},[this],null))};AdfDhtmlPanelSpringboardPeer.prototype._determineGridLayout=function(a){for(var b=1;b*b<a;)b++;return 3>=a?{rows:1,columns:a}:{rows:b,columns:b}};
AdfDhtmlPanelSpringboardPeer.prototype._initialPositionCanvasDivs=function(a){var b=this.getDomElement();if(!AdfDomUtils.containsCSSClassName(b,AdfDhtmlPanelSpringboardPeer._FLOW_STYLECLASS)){var b=this._getCanvasDiv("left"),d=this._getCanvasDiv("middle"),e=this._getCanvasDiv("right");if(null!=b){var f=a+"px",g=AdfDhtmlPanelSpringboardPeer._isRTL(),h=this._shiftField;b.style[h]=g?2*a+"px":"0px";b.style.width=f;d.style[h]=f;d.style.width=f;e.style[h]=g?"0px":2*a+"px";e.style.width=f;this._bodyCanvasDiv.style.width=
3*a+"px";this._bodyCanvasDiv.style[h]=-1*a+"px"}}};AdfDhtmlPanelSpringboardPeer.prototype._getCanvasDiv=function(a){for(var b=AdfAgent.getAgent(),d=AdfDomUtils.getChildElements(this._bodyCanvasDiv),e=d.length,f=0;f<e;f++){var g=d[f];if(b.getAttribute(g,AdfDhtmlPanelSpringboardPeer._EXPANDO_CANVAS_ATTRIBUTE)==a)return g}return null};
AdfDhtmlPanelSpringboardPeer.prototype._rearrangeCanvasDivs=function(a){var b=this.getDomElement();if(!AdfDomUtils.containsCSSClassName(b,AdfDhtmlPanelSpringboardPeer._FLOW_STYLECLASS)){var b=this.getDomElement().offsetWidth,d=AdfAgent.getAgent(),e=this._getCanvasDiv("middle"),f=d.getAttribute(a,AdfDhtmlPanelSpringboardPeer._EXPANDO_CANVAS_ATTRIBUTE),g=this._shiftField;if("middle"!=f){var h=a.style[g];a.style[g]=e.style[g];e.style[g]=h;d.setAttribute(a,AdfDhtmlPanelSpringboardPeer._EXPANDO_CANVAS_ATTRIBUTE,
"middle");d.setAttribute(e,AdfDhtmlPanelSpringboardPeer._EXPANDO_CANVAS_ATTRIBUTE,f)}this._bodyCanvasDiv.style.width=3*b+"px";this._bodyCanvasDiv.style[g]=-1*b+"px"}};AdfDhtmlPanelSpringboardPeer.prototype._handleBodyTouchStart=function(a){a=a.changedTouches;1==a.length&&(this._bodySwipeStartPosition=a[0].pageX)};AdfDhtmlPanelSpringboardPeer.prototype._handleBodyTouchMove=function(a){a=a.changedTouches;1==a.length&&(this._bodySwipeMovingPosition=a[0].pageX)};
AdfDhtmlPanelSpringboardPeer.prototype._handleBodyTouchEnd=function(a){var b;if(this._bodySwipeMovingPosition!==this._bodySwipeStartPosition){if(a._insideADFTable){this._bodySwipeMovingPosition=this._bodySwipeStartPosition=0;return}b=this._bodySwipeMovingPosition-this._bodySwipeStartPosition;100<Math.abs(b)&&(a=AdfDhtmlPanelSpringboardPeer._isRTL(),this._swipeBody(0>b?!a:a))}this._bodySwipeMovingPosition=this._bodySwipeStartPosition=0};
AdfDhtmlPanelSpringboardPeer.prototype._initBodySwiping=function(a,b){this._handleBodyTouchStartCallback=this.createCallback(this._handleBodyTouchStart);this._handleBodyTouchEndCallback=this.createCallback(this._handleBodyTouchEnd);this._handleBodyTouchMoveCallback=this.createCallback(this._handleBodyTouchMove);this._bodySwipeMovingPosition=this._bodySwipeStartPosition=0;a.addBubbleEventListener(b,"touchstart",this._handleBodyTouchStartCallback);a.addBubbleEventListener(b,"touchmove",this._handleBodyTouchMoveCallback);
a.addBubbleEventListener(b,"touchend",this._handleBodyTouchEndCallback)};
AdfDhtmlPanelSpringboardPeer.prototype._unregisterBodySwiping=function(){if(this._handleBodyTouchStartCallback&&this._bodyViewportDiv){var a=this._bodyViewportDiv,b=AdfAgent.AGENT;b.removeBubbleEventListener(a,"touchstart",this._handleBodyTouchStartCallback);b.removeBubbleEventListener(a,"touchmove",this._handleBodyTouchMoveCallback);b.removeBubbleEventListener(a,"touchend",this._handleBodyTouchEndCallback);delete this._handleBodyTouchStartCallback;delete this._handleBodyTouchEndCallback;delete this._handleBodyTouchMoveCallback;
delete this._bodySwipeStartPosition;delete this._bodySwipeMovingPosition}};AdfDhtmlPanelSpringboardPeer.prototype._swipeBody=function(a){var b,d,e;b=this.getComponent();null!=b&&(d=this._getChildElements(this._headerDiv),e=this._getDisclosedItemIndex(d),-1==e&&(e=0),(a=this._determineComponentToSwipeTo(d,e,a))&&this._discloseClickedComponent(b,a.component,a.element))};
AdfDhtmlPanelSpringboardPeer.prototype._getDisclosedItemIndex=function(a){var b,d,e;b=AdfAgent.getAgent().getAttribute(this._headerDiv,AdfDhtmlPanelSpringboardPeer._EXPANDO_DISCLOSED_TAB_ID);if(null==b)return null;b=AdfRichUIPeer.CreateSubId(b,AdfDhtmlPanelSpringboardPeer._TAB_SUB_ID_ABOVE);d=a.length;e=-1;for(var f=0;f<d;f++)if(a[f].id==b){e=f;break}return e};
AdfDhtmlPanelSpringboardPeer.prototype._determineComponentToSwipeTo=function(a,b,d){var e,f;if(-1==b)return null;f=this.getDomElement();e=a.length;if(d)for(b+=1;b<e;b++){if((d=this._getComponentFromItem(a[b],f))&&!d.getDisabled())return{component:d,element:a[b]}}else for(b-=1;0<=b;b--)if((d=this._getComponentFromItem(a[b],f))&&!d.getDisabled())return{component:d,element:a[b]};return null};
AdfDhtmlPanelSpringboardPeer.prototype._getComponentFromItem=function(a,b){var d=this._getRowKeyElementFromDomElement(a,b),d=this._getRowKeyFromDomElement(d);return null==d?null:AdfPage.PAGE.findComponent(d)};
AdfDhtmlPanelSpringboardPeer.prototype._discloseClickedComponent=function(a,b,d){var e=this._getOldDisclosedChildComponent(a),f=this._shiftField;if(b!=e){b=this._queueClientDisclosureChanges(e,b);if(null==b||!b.isCanceled())this._animateSelectedPointerDiv(d.style[f]),null!=e&&this._animateBodyCanvas(e.getClientId(),d);if("grid"!=a.getProperty(AdfRichPanelSpringboard.DISPLAY_MODE)&&this._isCBeltActivated()){e=this._getChildElements(this._headerDiv);f=e.length;b=-1;for(var g=0;g<f;g++)if(e[g].id==d.id){b=
g;break}-1<b&&this._positionElementIntoOverflow(this.getDomElement().offsetWidth,e,b)}this.NewTabSelected(a)}else this.TabReselected(a)};AdfDhtmlPanelSpringboardPeer.prototype._isTabLink=function(a){if(null==a)return!1;var b=a.id;if(null==b)return!1;b=b.split("::");return 1>=b.length||b[b.length-1]!=AdfDhtmlPanelSpringboardPeer._CLICKABLE_TAB_ITEM||null==this._getRowKeyElementFromDomElement(a,this.getDomElement())?!1:!0};
AdfDhtmlPanelSpringboardPeer.prototype._getRowKeyElementFromDomElement=function(a,b){AdfAssert.assertDomElement(a);var d=a,e=AdfAgent.getAgent();if(null==d||1!=d.nodeType)return null;for(var f=e.getAttribute(d,AdfDhtmlPanelSpringboardPeer._EXPANDO_ROWKEY_ATTRIBUTE);null==f;){if(null==d||d==b)return null;d=d.parentNode;if(null==d||1!=d.nodeType)return null;f=e.getAttribute(d,AdfDhtmlPanelSpringboardPeer._EXPANDO_ROWKEY_ATTRIBUTE)}return d};
AdfDhtmlPanelSpringboardPeer.prototype._getRowKeyFromDomElement=function(a){return null==a?null:AdfAgent.getAgent().getAttribute(a,AdfDhtmlPanelSpringboardPeer._EXPANDO_ROWKEY_ATTRIBUTE)};AdfDhtmlPanelSpringboardPeer.prototype._getOldDisclosedChildComponent=function(a){a=null;a=AdfAgent.getAgent().getAttribute(this._headerDiv,AdfDhtmlPanelSpringboardPeer._EXPANDO_DISCLOSED_TAB_ID);return null!=a?AdfPage.PAGE.findComponent(a):null};
AdfDhtmlPanelSpringboardPeer.prototype._queueClientDisclosureChanges=function(a,b){var d=null!=a;if(!d||!0==a.getDisclosed())if("immediate"==this.getComponent().getContentDelivery())AdfPage.PAGE.isAttachmentMode()?(d=a.getClientId(),this._changeSelected(d,!1),d=a.getPeer(),d.bind(a),d.getDomElement().parentNode.style.display="none",d=b.getPeer(),d.bind(b),d.getDomElement().parentNode.style.display="",d=b.getClientId(),this._changeSelected(d,!0),a.setDisclosed(!1),b.setDisclosed(!0),this._setOldDisclosedChild(b.getClientId())):
AdfLogger.LOGGER.warning("PanelSpringboard contentDelivery\x3dimmediate is not supported outside of attachment mode. Disclose ability is disabled while in this state.");else{if(d)return d=a.getPeer(),d.bind(a),d.queueDisclosureEvent(!1,!0,b);d=b.getPeer();d.bind(b);return d.queueDisclosureEvent(!0,!0)}else AdfLogger.LOGGER.severe("Unexpected panelSpringboard showDetailItem disclosure state for queueing client events. "+a.getClientId())};
AdfDhtmlPanelSpringboardPeer.prototype._changeSelected=function(a,b){var d=AdfRichUIPeer.CreateSubId(a,AdfDhtmlPanelSpringboardPeer._TAB_SUB_ID_ABOVE);if(d=AdfAgent.getAgent().getElementById(d))if(d=AdfDomUtils.getFirstChildElement(d))AdfDomUtils.addOrRemoveCSSClassName(b,d,AdfDhtmlPanelSpringboardPeer._SELECTED_CLASS),AdfDomUtils.addOrRemoveCSSClassName(b,AdfDomUtils.getDescendentElement(d,"div",1),AdfDhtmlPanelSpringboardPeer._SELECTED_CLASS)};
AdfDhtmlPanelSpringboardPeer.prototype._getChildElements=function(a){a=a.childNodes;for(var b=[],d=a.length,e=0;e<d;e++){var f=a[e];1==f.nodeType&&f!=this._selectedPointerDiv&&b.push(f)}return b};AdfDhtmlPanelSpringboardPeer.prototype._selectedPointerAnimationComplete=function(a){delete this._selectedPtrAnimator};
AdfDhtmlPanelSpringboardPeer.prototype._animateSelectedPointerDiv=function(a){if(null!=this._selectedPointerDiv){var b=AdfAgent.getCSSLengthAsInt,d=this._shiftField;a=b(a);b={};b[d]=a;d=[{element:this._selectedPointerDiv,properties:b}];a=0;a=AdfPage.PAGE.getLookAndFeel();a=parseInt(a.getSkinProperty("af|panelSpringboard-tr-selected-pointer-animation-duration"),10);isNaN(a)&&(a=0);this._selectedPtrAnimator=AdfDhtmlElementAnimator.animate(AdfDhtmlElementAnimator.FRAME_METHOD_CONSTANT_SPEED,a,d,null,
function(a){a[0]._selectedPointerAnimationComplete()},[this],null)}else AdfLogger.LOGGER.severe("Cannot find this._selectedPointerDiv. This means that the strip mode was not rendered properly.")};AdfDhtmlPanelSpringboardPeer.prototype._bodyCanvasAnimationComplete=function(a){delete this._bodyCanvasAnimator;this._bodyCanvasAnimatorQueued=!1;this._canvasOfSelectedItem&&(this._rearrangeCanvasDivs(this._canvasOfSelectedItem),delete this._canvasOfSelectedItem)};
AdfDhtmlPanelSpringboardPeer.prototype._animateBodyCanvas=function(a,b){var d=this.getDomElement(),e=AdfDomUtils.containsCSSClassName(d,AdfDhtmlPanelSpringboardPeer._FLOW_STYLECLASS),f=this._shiftField;if(e)this._setBusy(d,null);else if(null!=this._bodyCanvasDiv){var e=AdfAgent.getAgent(),g=AdfRichUIPeer.CreateSubId(a,AdfDhtmlPanelSpringboardPeer._TAB_SUB_ID_ABOVE),g=e.getElementById(g),g=parseInt(g.style[f]),h=parseInt(b.style[f]),g=g<h,h=this._bodyViewportDiv.offsetWidth,k=this._getRowKeyFromDomElement(b),
e=e.getElementById(k);g?(g=-2*h,this._prepareCanvasSideForSlide(d,e,"right")):(g=0,this._prepareCanvasSideForSlide(d,e,"left"));AdfPage.PAGE.ComponentsInSubtreeCallback(this._bodyCanvasDiv,AdfDhtmlPage.cancelAllPopupsCallback);d={};d[f]=g;var l=[{element:this._bodyCanvasDiv,properties:d}],m=0,f=AdfPage.PAGE.getLookAndFeel(),m=parseInt(f.getSkinProperty("af|panelSpringboard-tr-body-slide-animation-duration"),10);isNaN(m)&&(m=0);var n=this;this._bodyCanvasAnimatorQueued=!0;window.setTimeout(function(){n._animateBodyCanvasCallback(m,
l)},200)}};AdfDhtmlPanelSpringboardPeer.prototype._animateBodyCanvasCallback=function(a,b){this._bodyCanvasAnimator=AdfDhtmlElementAnimator.animate(AdfDhtmlElementAnimator.FRAME_METHOD_CONSTANT_SPEED,a,b,null,function(a){a[0]._bodyCanvasAnimationComplete()},[this],null)};AdfDhtmlPanelSpringboardPeer.prototype._prepareCanvasSideForSlide=function(a,b,d){d=this._getCanvasDiv(d);this._moveDom(b.parentNode,AdfDomUtils.getFirstChildElement(d));this._setBusy(a,d)};
AdfDhtmlPanelSpringboardPeer.prototype._moveDom=function(a,b){b.appendChild(a)};
AdfDhtmlPanelSpringboardPeer.prototype._afterToStripAnimationFinal=function(){var a=this.getDomElement();null!=a?this._initialPositionCanvasDivs(a.offsetWidth):AdfLogger.LOGGER.severe("In AdfDhtmlPanelSpringboardPeer.prototype._afterToStripAnimationFinal, no dom element. ");this._toStripAnimationObject=null;this._bodyViewportDiv.style.visibility="visible";this._canvasOfSelectedItem&&(this._rearrangeCanvasDivs(this._canvasOfSelectedItem),delete this._canvasOfSelectedItem);this._haveShowDetailItemsInStrip&&
(this._hideSelectedPointer||(this._selectedPointerDiv.style.display=""),this._setSelectedPointerPosition(),delete this._haveShowDetailItemsInStrip)};AdfDhtmlPanelSpringboardPeer.prototype._afterToGridAnimationFinal=function(){this._toGridAnimationObject=null};
AdfDhtmlPanelSpringboardPeer.prototype._duringToStripAnimation=function(){var a=this.getDomElement();if(null!=a&&(a=a.offsetWidth,a!=this._toStripAnimationOffsetWidth)){this._toStripAnimationOffsetWidth=a;var b=this._toStripAnimationObject;if(null!=b){var d=this._getChildElements(this._headerDiv);b.stop();this._animateFromGridToStrip(d,a)}}};
AdfDhtmlPanelSpringboardPeer.prototype._duringToGridAnimation=function(){var a=this.getDomElement();if(null!=a){var b=a.offsetWidth,a=a.offsetHeight;if(b!=this._toGridAnimationOffsetWidth||a!=this._toGridAnimationOffsetHeight){var d=this._toGridAnimationObject;if(null!=d){var e=this._getChildElements(this._headerDiv);d.stop();this._animateFromStripToGrid(e,b,a)}}}};
AdfDhtmlPanelSpringboardPeer.prototype._setSelectedPointerPosition=function(){var a=this._shiftField,b=this._getHeaderDivDisclosedElement(AdfDhtmlPanelSpringboardPeer._TAB_SUB_ID_ABOVE);this._selectedPointerDiv.style[a]=b.style[a]};AdfDhtmlPanelSpringboardPeer.prototype._getHeaderDivDisclosedElement=function(a){var b,d;b=AdfAgent.getAgent();d=b.getAttribute(this._headerDiv,AdfDhtmlPanelSpringboardPeer._EXPANDO_DISCLOSED_TAB_ID);a=AdfRichUIPeer.CreateSubId(d,a);return b.getElementById(a)};
AdfDhtmlPanelSpringboardPeer.prototype._setOldDisclosedChild=function(a){AdfAgent.getAgent().setAttribute(this._headerDiv,AdfDhtmlPanelSpringboardPeer._EXPANDO_DISCLOSED_TAB_ID,a)};AdfDhtmlPanelSpringboardPeer.prototype._hasSubIdInId=function(a,b,d){a=a.id;if(null==a)return!1;a=a.split("::");return 1>=a.length?!1:(a=a[a.length-1])&&(a==b||a==d)?!0:!1};
AdfDhtmlPanelSpringboardPeer.prototype._findChildFromSubId=function(a,b,d){a=this._getRowKeyElementFromDomElement(a,this.getDomElement());a=this._getRowKeyFromDomElement(a);return null!=a?AdfPage.PAGE.findComponent(a):null};
AdfDhtmlPanelSpringboardPeer.prototype._setItemsToNonSelectedState=function(a){for(var b=a.length,d=!1,e=0;e<b;e++){var f=AdfDomUtils.getFirstChildElement(a[e]);if(f&&(!d&&!AdfDomUtils.containsCSSClassName(f,AdfDhtmlPanelSpringboardPeer._DISABLED_CLASS)?(f.setAttribute("tabIndex","0"),d=!0):f.setAttribute("tabIndex","-1"),AdfDomUtils.containsCSSClassName(f,AdfDhtmlPanelSpringboardPeer._SELECTED_CLASS))){var g=this._findChildFromSubId(f,AdfDhtmlPanelSpringboardPeer._CLICKABLE_TAB_ITEM);if(g&&!g.getDisabled()&&
"inline"!=g.getIconDelivery()){var h=AdfDomUtils.getFirstDescendentElement(f,"img");this._displayIcon(h,g,g.getIcon())}AdfDomUtils.addOrRemoveCSSClassName(!1,f,AdfDhtmlPanelSpringboardPeer._SELECTED_CLASS);f.removeAttribute("aria-selected")}}};AdfDhtmlPanelSpringboardPeer.prototype._displayIcon=function(a,b,d){d||(d=b.getIcon());a.src=d};
AdfDhtmlPanelSpringboardPeer.prototype._handleIcon=function(a,b,d){var e=AdfAgent.getAgent();a=a.getNativeEventTarget();if((a=this._findChildFromSubId(a,AdfDhtmlPanelSpringboardPeer._TAB_SUB_ID_ABOVE))&&"inline"!=a.getIconDelivery())e=e.getElementById(AdfRichUIPeer.CreateSubId(a.getClientId(),AdfDhtmlPanelSpringboardPeer._TAB_SUB_ID_ICON)),a.getDisabled()||(b?this._displayIcon(e,a,a.getHoverIcon()):d?this._displayIcon(e,a,a.getDepressedIcon()):(b=this.getComponent(),a.getDisclosed()&&"grid"!=b.getProperty(AdfRichPanelSpringboard.DISPLAY_MODE)?
this._displayIcon(e,a,a.getDepressedIcon()):this._displayIcon(e,a,a.getIcon())))};AdfDhtmlPanelSpringboardPeer.prototype._getCompleteItemWidth=function(){for(var a=0,b=this._getChildElements(this._headerDiv),d=0,e=b.length;d<e;d++)b[d]&&(a+=b[d].offsetWidth);return a};AdfDhtmlPanelSpringboardPeer.prototype._getCBeltNavWidth=function(){0===this._cBeltNavWidth&&(this._startCBeltI.style.display="inline-block",this._cBeltNavWidth=this._startCBeltI.offsetWidth,this._startCBeltI.style.display="none");return this._cBeltNavWidth};
AdfDhtmlPanelSpringboardPeer.prototype._getCBeltItemShiftValues=function(a,b){var d=0,e=this._currCBeltIndex,f=this._cBeltShift[e];f||(f={},this._cBeltShift[e]=f);var g=f[a];if(g)return g;g||(g={},f[a]=g);var h=this._cBeltContainer.offsetWidth,f=this._getCBeltNavWidth();"inline-block"==this._startCBeltI.style.display&&(h-=f);"inline-block"==this._endCBeltI.style.display&&(h-=f);var k=e,f=0,l=-1;if(a)for(l=k;d<h&&-1<k;k--,f++)d+=b[k].offsetWidth;else for(var m=b.length;d<h&&k<m;k++,f++)l=k,d+=b[k].offsetWidth;
if(1<f){k=0;if(d>h){for(var m=b[l],h=h-(d-m.offsetWidth),n=m;n&&!/^img$/i.test(n.tagName);)n=AdfDomUtils.getFirstChildElement(n);n&&(h>(m.offsetWidth-n.offsetWidth)/2+n.offsetWidth/3?(k=1,d-=b[l].offsetWidth):(k=1,d-=b[l--].offsetWidth,g.showLastAsFirstSubtract=!0,-1<l&&(d-=b[l].offsetWidth,k++)))}else d===h&&(k=1,d-=b[l].offsetWidth,g.showLastAsFirstSubtract=!0);f-=k;a||(e+=f,l=this._cBeltShift[e],l||(l={},this._cBeltShift[e]=l),l[!0]={numItemsPerClick:f,summedWidth:d})}g.numItemsPerClick=f;g.summedWidth=
d;return g};
AdfDhtmlPanelSpringboardPeer.prototype._shiftConveyor=function(a){if(!this._cBeltMoving){this._cBeltMoving=!0;var b=this._getChildElements(this._headerDiv),d=this._currCBeltIndex,e=this._shiftField,f=parseInt(this._headerDiv.style[e],10),g=this._getCBeltItemShiftValues(a,b),h=g.numItemsPerClick,g=g.summedWidth;isNaN(f)&&(this._headerDiv.style[e]="0px",f=0);a?1>d-h?(g=-1*f,this._currCBeltIndex=0):this._currCBeltIndex=Math.max(0,this._currCBeltIndex-h):(g*=-1,this._currCBeltIndex=Math.min(b.length-1,
this._currCBeltIndex+h));a={};a[e]=f+g;this._shiftHelper(a)}};AdfDhtmlPanelSpringboardPeer.prototype._shiftHelper=function(a){AdfDhtmlElementAnimator.animate(AdfDhtmlElementAnimator.FRAME_METHOD_CONSTANT_SPEED,this._conveyorSlideAnimationDuration,[{element:this._headerDiv,properties:a}],function(){},function(a){a[0]._cBeltMoving=!1;a[0]._maintainCBeltDisplay()},[this],null)};
AdfDhtmlPanelSpringboardPeer.prototype._maintainCBeltDisplay=function(a){for(var b=this._getChildElements(this._headerDiv),d=0,e=AdfDhtmlPanelSpringboardPeer._isRTL(),f=e?this._endCBeltI:this._startCBeltI,e=e?this._startCBeltI:this._endCBeltI,g=0===this._currCBeltIndex,h=!0,k="undefined"!==typeof a?Math.round(a):this._cBeltContainer.offsetWidth,l=this._shiftField,h=this._currCBeltIndex,m=b.length;h<m;h++)b[h]&&(d+=b[h].offsetWidth);var m=this._getCBeltNavWidth(),n=k-(g?0:m);(h=n>d||this._currCBeltIndex===
b.length-1)||(n-=m);this._cBeltContent.style[l]=0<this._currCBeltIndex?m+"px":"0px";this._cBeltContent.style.width=n+"px";"undefined"!==typeof a&&(this._cBeltContainer.style.width=k+"px");f.style.display=g?"none":"inline-block";e.style.display=h?"none":"inline-block"};
AdfDhtmlPanelSpringboardPeer.prototype._attemptToShowAsMuchElementsAsPossible=function(a){var b=this._cBeltContainer.offsetWidth,d=this._getCBeltNavWidth();"inline-block"==this._startCBeltI.style.display&&(b-=d);"inline-block"==this._endCBeltI.style.display&&(b-=d);for(var d=null,e=0,f=this._currCBeltIndex,g=a.length,h=f;e<=b&&h<g;h++)d=a[h],e+=d.offsetWidth;if(h===g&&!(e>b)){d=g=0;h=null;for(b-=e;-1<f&&d<=b;f--,g++)h=a[f],d+=h.offsetWidth;d>b&&(g--,d-=h.offsetWidth);0<g&&(a=this._shiftField,this._currCBeltIndex-=
g,0>this._currCBeltIndex&&(this._currCBeltIndex=0),b=parseInt(this._headerDiv.style[a],10),this._cBeltMoving?this._headerDiv.style[a]=b+d+"px":(this._cBeltMoving=!0,f={},f[a]=b+d,this._shiftHelper(f)))}};
AdfDhtmlPanelSpringboardPeer.prototype._bringDisclosedElementIntoView=function(a,b){if(this._isCBeltActivated()){var d=0;this._currCBeltIndex=0;var e=this._conveyorSlideAnimationDuration;for(this._conveyorSlideAnimationDuration=0;this._currCBeltIndex<a;){var f=this._getCBeltItemShiftValues(!1,b),g=f.summedWidth;if(this._currCBeltIndex+f.numItemsPerClick+(f.showLastAsFirstSubtract?1:0)>a)break;this._cBeltMoving=!1;this._shiftConveyor(!1);d+=g}this._conveyorSlideAnimationDuration=e;e=this._shiftField;
f={};parseInt(this._headerDiv.style[e],10)<d?(f[e]=-1*d,this._shiftHelper(f)):0<d&&(f[e]=-1*d,this._shiftHelper(f))}};
AdfDhtmlPanelSpringboardPeer.prototype._positionElementIntoOverflow=function(a,b,d,e){if("undefined"===typeof d){d=-1;b=this._getChildElements(this._headerDiv);e=b.length;this._getStripItemPositions(b,a);for(a=0;a<e;a++){var f=AdfDomUtils.getFirstChildElement(b[a]);f&&AdfDomUtils.containsCSSClassName(f,AdfDhtmlPanelSpringboardPeer._SELECTED_CLASS)&&(d=a)}}-1!==d&&this._bringDisclosedElementIntoView(d,b)};
AdfDhtmlPanelSpringboardPeer.prototype._processCbeltTab=function(a){if(this._isCBeltActivated()&&!(this._isCBeltActivated()&&a.keyCode!==AdfKeyStroke.TAB_KEY)){a=this._getChildElements(this._headerDiv);this._cBeltShift={};for(var b=a.length,d=-1,e=document.activeElement,f=0;f<b;f++){var g=AdfDomUtils.getFirstChildElement(a[f]);g&&e==g&&(d=f)}-1<d&&this._positionElementIntoOverflow(this.getDomElement().offsetWidth,a,d)}};
AdfDhtmlPanelSpringboardPeer.prototype._hideCBelt=function(){var a=this._shiftField,b=AdfDhtmlPanelSpringboardPeer._isRTL()?"scrollRight":"scrollLeft";this._cBeltShift={};this._currCBeltIndex=0;this._startCBeltI.style.display="none";this._endCBeltI.style.display="none";this._cBeltContent[b]=0;this._cBeltContent.style[a]="0px";this._headerDiv.style[a]="0px";this._cBeltContent.style.width="";this._cBeltContainer.style.width=""};
AdfDhtmlPanelSpringboardPeer.prototype._isCBeltActivated=function(){return"inline-block"==this._startCBeltI.style.display||"inline-block"==this._endCBeltI.style.display||parseInt(this._headerDiv.style[this._shiftField],10)};AdfDhtmlPanelSpringboardPeer._isRTL=function(){return AdfPage.PAGE.getLocaleContext().isRightToLeft()};AdfDhtmlPanelSpringboardPeer.prototype._isOptimizedRenderTarget=function(a){return a.id===this._optRndId};
AdfDhtmlPanelSpringboardPeer.prototype._setBusy=function(a,b){var d;AdfDomUtils.containsCSSClassName(a,AdfDhtmlPanelSpringboardPeer._FLOW_STYLECLASS)?(d=this.getComponent().getClientId(),d=AdfRichUIPeer.createSubId(d,AdfDhtmlPanelSpringboardPeer._TAB_BODY_B),d=AdfAgent.getAgent().getElementById(d)):d=AdfDomUtils.getFirstChildElement(b);AdfDomUtils.addCSSClassName(d,AdfDhtmlPanelSpringboardPeer._BUSY_CLASS)};
AdfDhtmlPanelSpringboardPeer.prototype._removeBusy=function(a){var b=AdfAgent.getAgent(),d=AdfDomUtils.containsCSSClassName(a,AdfDhtmlPanelSpringboardPeer._FLOW_STYLECLASS);a=this.getComponent().getClientId();var e=AdfRichUIPeer.createSubId(a,AdfDhtmlPanelSpringboardPeer._TAB_BODY_B),e=b.getElementById(e);AdfDomUtils.removeCSSClassName(e,AdfDhtmlPanelSpringboardPeer._BUSY_CLASS);d||(d=AdfRichUIPeer.createSubId(a,AdfDhtmlPanelSpringboardPeer._TAB_BODY_A),a=AdfRichUIPeer.createSubId(a,AdfDhtmlPanelSpringboardPeer._TAB_BODY_C),
d=b.getElementById(d),b=b.getElementById(a),AdfDomUtils.removeCSSClassName(d,AdfDhtmlPanelSpringboardPeer._BUSY_CLASS),AdfDomUtils.removeCSSClassName(b,AdfDhtmlPanelSpringboardPeer._BUSY_CLASS))};AdfDhtmlPanelSpringboardPeer.prototype._setBeltContentHeight=function(a){var b=AdfAgent.getAgent();b.getPlatform()==AdfAgent.IE_PLATFORM&&8>b.getVersion()&&(b=b.getComputedStyle(a).height,a=a.offsetHeight,this._cBeltContent.style.height=0!==a?a+"px":b)};
AdfDhtmlPanelSpringboardPeer.prototype.getContainerId=function(a){var b=this.getComponent().getClientId(),d=AdfRichUIPeer.createSubId(b,AdfDhtmlPanelSpringboardPeer._TAB_BODY_A),e=AdfRichUIPeer.createSubId(b,AdfDhtmlPanelSpringboardPeer._TAB_BODY_B),b=AdfRichUIPeer.createSubId(b,AdfDhtmlPanelSpringboardPeer._TAB_BODY_C);for(a=a.parentNode;a;){var f=a.id;if(null!=f){if(f==d)return d;if(f==e)return e;if(f==b)return b}a=a.parentNode}return this.getComponent().getClientId()};