AdfRichUIPeer.createPeerClass(AdfRichUIPeer,"AdfDhtmlPanelSplitterBasePeer",!1);
AdfDhtmlPanelSplitterBasePeer.InitSubclass=function(){AdfRichUIPeer.addComponentPropertyChanges(this,AdfRichPanelSplitter.SPLITTER_POSITION,AdfRichPanelSplitter.COLLAPSED);AdfRichUIPeer.addComponentEventHandlers(this,AdfUIInputEvent.KEY_DOWN_EVENT_TYPE);this._DIVIDER_WIDTH=parseInt(AdfPage.PAGE.getLookAndFeel().getSkinProperty("af|panelSplitter-tr-divider-size"),10);this._SPLITTER_PADDING_PIXELS="0px";this._MINIMUM_PANE_SIZE=0;this._PANEL_SPLITTER_COLLAPSE_ANIMATION_DURATION="af|panelSplitter-tr-collapse-animation-duration";
this._DISCLOSED_STATE="p_AFDisclosed";this._COLLAPSE_KEY="af_panelSplitter.TIP_COLLAPSE";this._RESTORE_KEY="af_panelSplitter.TIP_RESTORE";this._COLLAPSE_LABELED_SECTION_KEY="af_panelSplitter.TIP_COLLAPSE_LABELED_PANE";this._RESTORE_LABELED_SECTION_KEY="af_panelSplitter.TIP_RESTORE_LABELED_PANE"};
AdfDhtmlPanelSplitterBasePeer.prototype.BindToComponent=function(a,b){AdfDhtmlPanelSplitterBasePeer.superclass.BindToComponent.call(this,a,b);var d=a.getClientId(),e=AdfRichUIPeer.CreateSubId(d,"f"),f=AdfRichUIPeer.CreateSubId(d,"s"),g=AdfRichUIPeer.CreateSubId(d,"d"),h=AdfRichUIPeer.CreateSubId(d,"h"),d=AdfRichUIPeer.CreateSubId(d,"i"),k=AdfAgent.AGENT;this._firstDom=k.getElementById(e);this._secondDom=k.getElementById(f);this._dividerDom=k.getElementById(g);this._highlighterDom=k.getElementById(h);
this._iconDom=k.getElementById(d)};AdfDhtmlPanelSplitterBasePeer.prototype.ComponentSplitterPositionChanged=function(a,b,d,e){AdfPage.PAGE.doResizeNotify(a)};AdfDhtmlPanelSplitterBasePeer.prototype.ComponentCollapsedChanged=function(a,b,d,e){b=AdfDhtmlPanelSplitterBasePeer._getPositionedFromEnd(a);this._dividerDom.style.cursor=d?"default":"";this._handleCollapseAnimation(d,a,b)};AdfDhtmlPanelSplitterBasePeer.prototype.needsResizeNotify=function(a){return!0};
AdfDhtmlPanelSplitterBasePeer.prototype.needsChildVisibilityChanges=function(a){return!0};
AdfDhtmlPanelSplitterBasePeer.prototype.ResizeNotify=function(a,b,d,e){if(!this._collapseAnimator){var f=this.getComponent(),g=this._firstDom,h=this._secondDom,k=this._dividerDom,l=AdfDhtmlPanelSplitterBasePeer.__isHorizontal(f),m=this._isDimensionsFromParent(),n=AdfDhtmlPanelSplitterBasePeer._isChildVisible(g),q=AdfDhtmlPanelSplitterBasePeer._isChildVisible(h),r=f.getCollapsed(),t=r?0:parseInt(f.getSplitterPosition(),10),f=AdfDhtmlPanelSplitterBasePeer._getPositionedFromEnd(f);if(!m&&l)r||(f?null!=
h&&(h.style.width=t+"px"):null!=g&&(g.style.width=t+"px"));else if(0!=n||0!=q){a=a!=d;b=b!=e;var u=!(a||b);m?n!=q?this._resizeOnly(n?g:h,d,e,a,b):(f?(n=h,q=g):(n=g,q=h),(l?this._resizeHorizontal:this._resizeVertical).call(this,n,q,k,d,e,t,a,b,u,AdfDhtmlPanelSplitterBasePeer._DIVIDER_WIDTH,f),d=AdfDomUtils.getFirstChildElement(g),h=AdfDomUtils.getFirstChildElement(h),g=this._getPanePadding(g),t=AdfAgent.AGENT,t.resizeStretchedChild(d,g),t.resizeStretchedChild(h,g)):(e=!f,k=null,e&&q&&(k=g),!e&&n&&
(k=h),null!=k&&this._resizeOnly(k,d,t,a,!1),n&&q&&!r&&(f?h.style.height=t+"px":g.style.height=t+"px"))}}};
AdfDhtmlPanelSplitterBasePeer.prototype.DomReplaceNotify=function(a){var b=a.parentNode;if(b==this._firstDom||b==this._secondDom){var d=this.getComponent(),e=AdfDhtmlPanelSplitterBasePeer.__isHorizontal(d);if(!this._isDimensionsFromParent()){if(e)return a;d=AdfDhtmlPanelSplitterBasePeer._getPositionedFromEnd(d);if(b==this._firstDom&&d||b==this._secondDom&&!d)return a}var d=!1,e=AdfDomUtils.isVisible(b),f=AdfDomUtils.isVisible(a);f!=e&&(b!=this._getCollapsedPane()&&AdfDomUtils.setVisible(b,f),this._repositionPanes(),
d=!0);b=this._getPanePadding(b);e=AdfAgent.AGENT;e.prepareStretchedChild(a,b);return d?this.getDomElement():(e.resizeStretchedChild(a,b),a)}return a};AdfDhtmlPanelSplitterBasePeer.prototype.ChildVisibilityChanged=function(a,b,d){a=b.parentNode;if(a==this._firstDom||a==this._secondDom)return a!=this._getCollapsedPane()&&AdfDomUtils.setVisible(a,d),AdfDomUtils.setVisible(b,d),this._repositionPanes(),AdfPage.PAGE.doResizeNotify(this.getComponent()),!0};
AdfDhtmlPanelSplitterBasePeer.prototype.__handleCollapseRestore=function(a){var b=a.getNativeEventTarget();if(AdfDomUtils.isAncestorOrSelf(this._iconDom,b)){var b=this.getComponent(),d=b.getCollapsed();b.setProperty(AdfRichPanelSplitter.COLLAPSED,!d,!0);AdfAgent.AGENT.eatEvent(a.getNativeEvent());return!0}return!1};AdfDhtmlPanelSplitterBasePeer.prototype.__isDragging=function(){return this._dragging};
AdfDhtmlPanelSplitterBasePeer.prototype.__startDrag=function(a){AdfDomUtils.setVisible(this._iconDom,!1);a=a.getNativeEvent();this._dragging=!0;AdfPage.PAGE.startDrag(a,this.createCallback(this._handleDrag),this.createCallback(this._handleDrop),void 0,!0)};AdfDhtmlPanelSplitterBasePeer.prototype.__isEventInDivider=function(a,b){var d=a.getNativeEventTarget();return AdfDomUtils.isAncestorOrSelf(this._dividerDom,d)&&(b||!AdfDomUtils.isAncestorOrSelf(this._iconDom,d))};
AdfDhtmlPanelSplitterBasePeer.prototype.__setHighlighterVisibility=function(a){AdfDomUtils.setVisible(this._highlighterDom,a)};
AdfDhtmlPanelSplitterBasePeer.prototype.HandleComponentKeyDown=function(a){if(!a.isCanceled()){var b=this.getComponent(),d=a.getNativeEventTarget(),e=a.getKeyCode();if(e==AdfKeyStroke.P_KEY){var f=a.getNativeEvent();f.ctrlKey&&f.altKey&&(this._handleSplitterNavigationEvent(a),a.cancel())}if(!b.getCollapsed()&&AdfDomUtils.isAncestorOrSelf(this._iconDom,d)){var d=parseInt(b.getSplitterPosition(),10),f=AdfDhtmlPanelSplitterBasePeer.__isHorizontal(b),g=0;if(e==AdfKeyStroke.ARROWUP_KEY&&!f||e==AdfKeyStroke.ARROWLEFT_KEY&&
f)g=-5;else if(e==AdfKeyStroke.ARROWDOWN_KEY&&!f||e==AdfKeyStroke.ARROWRIGHT_KEY&&f)g=5;if(0!=g){AdfDhtmlPanelSplitterBasePeer._getPositionedFromEnd(b)&&(g=-g);var e=this._isDimensionsFromParent(),h=AdfDhtmlPanelSplitterBasePeer._getPositionedFromEnd(b),e=this._getConstrainedSplitterPos(b,f,d+g,!e&&!f&&!h);b.setProperty(AdfRichPanelSplitter.SPLITTER_POSITION,e,!0);a.cancel()}}}};
AdfDhtmlPanelSplitterBasePeer.prototype._handleCollapseAnimation=function(a,b,d){var e=AdfDhtmlPanelSplitterBasePeer.__isHorizontal(b),f=d?this._secondDom:this._firstDom,g=AdfDomUtils.getFirstChildElement(f),h=d?this._firstDom:this._secondDom,k=a?0:parseInt(b.getSplitterPosition(),10),l=parseInt(AdfPage.PAGE.getLookAndFeel().getSkinProperty(AdfDhtmlPanelSplitterBasePeer._PANEL_SPLITTER_COLLAPSE_ANIMATION_DURATION),10);isNaN(l)&&(l=0);this._isDimensionsFromParent()?this._handleDimensionsFromParentCollapseAnimation(a,
b,d,e,f,g,h,k,l):this._handleDimensionsFromChildrenCollapseAnimation(a,b,d,e,f,g,h,k,l)};
AdfDhtmlPanelSplitterBasePeer.prototype._handleDimensionsFromChildrenCollapseAnimation=function(a,b,d,e,f,g,h,k,l){var m=this,n;n=e?"width":"height";fixedPaneSize=a?0:k;AdfDomUtils.setVisible(f,!0);k={element:f,properties:{}};k.properties[n]=fixedPaneSize;this._collapseAnimator=AdfDhtmlElementAnimator.animate(AdfDhtmlElementAnimator.FRAME_METHOD_SLOW_FAST_SLOW,l,[k],null,function(k){m._afterCollapseAnimation(a,e,b,d,f,g,h,null,!1)},[],b)};
AdfDhtmlPanelSplitterBasePeer.prototype._handleDimensionsFromParentCollapseAnimation=function(a,b,d,e,f,g,h,k,l){var m=this,n,q=null==g?null:g.style,r=AdfDomUtils.getFirstChildElement(h),t=null==r?null:r.style,u=AdfDhtmlPanelSplitterBasePeer._DIVIDER_WIDTH,v,w,y,z=this.getDomElement(),B=e?z.clientWidth:z.clientHeight,C=this._dividerDom,A=h.style;a?(v=0,y=B-u+1):(v=k+1,y=B-k-u+1);e?(n="width",w="right"):(n="height",w="bottom");B=d?B-k-u:k;a?e?(null!=q&&(q.width=this._getStyleWidth(g)+"px"),null!=t&&
(t.width=z.clientWidth-u+1+"px"),A.width=this._getStyleWidth(h)+"px"):(null!=q&&(q.height=this._getStyleHeight(g)+"px"),null!=t&&(t.height=z.clientHeight-u+1+"px"),A.height=this._getStyleHeight(h)+"px"):e?(null!=q&&(q.width=k+1+"px"),null!=t&&(t.width=this._getStyleWidth(r)+"px"),A.width=z.clientWidth-u+1+"px"):(null!=q&&(q.height=k+1+"px"),null!=t&&(t.height=this._getStyleHeight(r)+"px"),A.height=z.clientHeight-u+1+"px");null!=q&&(q[w]="");null!=t&&(t[w]="");A[w]="";d&&(k=C.style,e?(k.left=C.offsetLeft+
"px",k.right=""):(k.top=C.offsetTop+"px",k.bottom=""));AdfDomUtils.setVisible(f,!0);k=[];q={element:f,properties:{}};q.properties[n]=v;k.push(q);q={element:h,properties:{}};q.properties[n]=y;d||(q.properties[e?"offsetLeft":"offsetTop"]=B+u-1);k.push(q);q={element:C,properties:{}};q.properties[e?"offsetLeft":"offsetTop"]=B;k.push(q);this._collapseAnimator=AdfDhtmlElementAnimator.animate(AdfDhtmlElementAnimator.FRAME_METHOD_SLOW_FAST_SLOW,l,k,null,function(k){m._afterCollapseAnimation(a,e,b,d,f,g,h,
r,!0)},[],null)};
AdfDhtmlPanelSplitterBasePeer.prototype._afterCollapseAnimation=function(a,b,d,e,f,g,h,k,l){delete this._collapseAnimator;AdfDomUtils.setVisible(f,!a);f=AdfAgent.AGENT;!l&&b||null==g||f.prepareStretchedChild(g,"0px");l&&null!=k&&f.prepareStretchedChild(k,"0px");l&&!e&&(h.style[b?"right":"bottom"]="0px");AdfDomUtils.setVisible(this._highlighterDom,!1);this._updateDivider(a,e);l&&(h.style[b?"width":"height"]="");l&&e&&(this._dividerDom.style[b?"left":"top"]="");!l&&b&&f.getPlatform()==AdfAgent.IE_PLATFORM&&
(a=f.getVersion(),7<a&&9>a&&(a=this.getDomElement(),a.style.display="none",AdfPage.PAGE.scheduleTimer(this,this._afterTheAfterCollapseAnimationForIe,[a],1)));AdfPage.PAGE.doResizeNotify(d)};AdfDhtmlPanelSplitterBasePeer.prototype._afterTheAfterCollapseAnimationForIe=function(a){a[0].style.display="";this._iconDom.focus()};
AdfDhtmlPanelSplitterBasePeer.prototype._getStyleHeight=function(a){var b=AdfAgent.AGENT.getComputedStyle(a);return a.offsetHeight-AdfAgent.getCSSLengthAsInt(b.borderTopWidth)-AdfAgent.getCSSLengthAsInt(b.borderBottomWidth)-AdfAgent.getCSSLengthAsInt(b.paddingTop)-AdfAgent.getCSSLengthAsInt(b.paddingBottom)};
AdfDhtmlPanelSplitterBasePeer.prototype._getStyleWidth=function(a){var b=AdfAgent.AGENT.getComputedStyle(a);return a.offsetWidth-AdfAgent.getCSSLengthAsInt(b.borderLeftWidth)-AdfAgent.getCSSLengthAsInt(b.borderRightWidth)-AdfAgent.getCSSLengthAsInt(b.paddingLeft)-AdfAgent.getCSSLengthAsInt(b.paddingRight)};
AdfDhtmlPanelSplitterBasePeer.prototype._handleSplitterNavigationEvent=function(a){var b=a.getNativeEventTarget(),d=AdfRichUIPeer.getFirstAncestorComponent(b);d&&d instanceof AdfRichPanelSplitter?(d=d.getPeer(),AdfDomUtils.isAncestorOrSelf(d._iconDom,b)?(d=d._secondDom,b=!1):(d=document.body,b=!0)):(d=document.body,b=!0);(d=this._findNextSplitter(d))||b||(d=this._findNextSplitter(document.body));d&&(d.focus(),a.cancel())};
AdfDhtmlPanelSplitterBasePeer.prototype._findNextSplitter=function(a){for(var b=AdfDomUtils.isVisible,d=AdfAgent.AGENT.isElementHTML,e=AdfRichUIPeer.getFirstAncestorComponent,f=/::i$/;;){if(a.hasChildNodes()&&b(a))a=a.firstChild;else for(;;){var g=a;a=g.nextSibling;if(null==a){if(a=g.parentNode,null==a)return null}else break}var h,k;if(1==a.nodeType&&d(a)&&b(a)&&"A"==a.nodeName&&a.id&&f.test(a.id)&&(h=e(a))&&h instanceof AdfRichPanelSplitter&&(k=h.getPeer())&&k._iconDom==a)return k._iconDom}};
AdfDhtmlPanelSplitterBasePeer.prototype._getConstrainedSplitterPos=function(a,b,d,e){a=this.getDomElement();b=b?a.clientWidth:a.clientHeight;a=AdfDhtmlPanelSplitterBasePeer._DIVIDER_WIDTH;var f=AdfDhtmlPanelSplitterBasePeer._MINIMUM_PANE_SIZE;d=Math.max(d,AdfDhtmlPanelSplitterBasePeer._MINIMUM_PANE_SIZE);e||(d=Math.min(d,b-a-f));return d};AdfDhtmlPanelSplitterBasePeer.prototype._getPanePadding=function(a){a=a.style.paddingTop;""==a&&(a="0px");return a};
AdfDhtmlPanelSplitterBasePeer.prototype._handleTouchMovement=function(a,b){this._handleDrag(null,a,b);this._handleDrop(null,a,b)};
AdfDhtmlPanelSplitterBasePeer.prototype._handleDrag=function(a,b,d){var e;a=this.getComponent();var f=AdfDhtmlPanelSplitterBasePeer._getPositionedFromEnd(a),g=AdfDhtmlPanelSplitterBasePeer.__isHorizontal(a),h=null;if(g){if(0==b)return;d=b;b=f?"right":"left"}else{if(0==d)return;b=f?"bottom":"top"}var k=this._isDimensionsFromParent();if(k)h=this._dividerDom.style;else if(null==this._flowDividerDom){var h=AdfAgent.AGENT,l=this._highlighterDom.cloneNode(!0);e=l.ownerDocument.createElement("div");e.className=
this._dividerDom.className;var m=this._dividerDom.offsetHeight,n=e.style;n.position="absolute";n.height=m+"px";g?n.width=this._dividerDom.style.width:(n.left="0px",n.right="0px");e.appendChild(l);h.disableUserSelect(e);this._highlighterDom.style.visibility="hidden";h.removeIdsFromDomSubTree(e);h=e.style;!g&&f?(b="top",h[b]=this._firstDom.offsetHeight+"px"):(l=a.getCollapsed()?0:parseInt(a.getSplitterPosition(),10),h[b]=l+"px");l=this.getDomElement();l.insertBefore(e,l.firstChild);this._flowDividerDom=
e}else!g&&f&&(b="top"),AdfDomUtils.setVisible(this._flowDividerDom,!0),h=this._flowDividerDom.style;e=parseInt(h[b],10);k||g||!f?(a=this._getConstrainedSplitterPos(a,g,f?e-d:e+d,!k&&!g&&!f),h[b]=a+"px"):(d=e+d,f=(a.getCollapsed()?0:parseInt(a.getSplitterPosition(),10))+this._firstDom.offsetHeight,a=this._getConstrainedSplitterPos(a,g,f-d,!1),h[b]=f-a+"px")};
AdfDhtmlPanelSplitterBasePeer.prototype._handleDrop=function(a,b,d){this._dragging=!1;AdfDomUtils.setVisible(this._iconDom,!0);a=this.getComponent();d=AdfDhtmlPanelSplitterBasePeer._getPositionedFromEnd(a);var e=AdfDhtmlPanelSplitterBasePeer.__isHorizontal(a),f=this._isDimensionsFromParent();b=e?d?"right":"left":d?"bottom":"top";var g;if(f)g=this._dividerDom.style;else if(null!=this._flowDividerDom)g=this._flowDividerDom.style,AdfDomUtils.setVisible(this._flowDividerDom,!1);else return;f||e||!d?b=
parseInt(g[b],10):(b=parseInt(g.top,10),b=(a.getCollapsed()?0:parseInt(a.getSplitterPosition(),10))+this._firstDom.offsetHeight-b);null!=this._flowDividerDom&&(this._highlighterDom.style.visibility="visible",this._flowDividerDom.parentNode.removeChild(this._flowDividerDom),this._flowDividerDom=null);a.setProperty(AdfRichPanelSplitter.SPLITTER_POSITION,b,!0)};
AdfDhtmlPanelSplitterBasePeer.prototype._repositionPanes=function(){var a=AdfAgent.AGENT,b=this._firstDom,d=this._secondDom,e=this._dividerDom,f=AdfDhtmlPanelSplitterBasePeer._isChildVisible(b),g=AdfDhtmlPanelSplitterBasePeer._isChildVisible(d);AdfDomUtils.setVisible(e,f&&g);this._isDimensionsFromParent()&&(f!=g?(e=AdfDhtmlPanelSplitterBasePeer._SPLITTER_PADDING_PIXELS,a.repositionStretchedElement(f?b:d,e,e,e,e)):(e=this.getComponent(),f=AdfDhtmlPanelSplitterBasePeer._getPositionedFromEnd(e),e=AdfDhtmlPanelSplitterBasePeer.__isHorizontal(e)?
f?"left":"right":f?"top":"bottom",a.removeStyleProperty(f?d:b,e)))};AdfDhtmlPanelSplitterBasePeer.prototype._resizeHorizontal=function(a,b,d,e,f,g,h,k,l,m,n){var q=AdfAgent.AGENT;l&&(q.setOuterWidth(a,g+1),n=n?"right":"left",d.style[n]=g+"px",b.style[n]=g+m-1+"px");(l||h)&&q.resizeStretchedElement(b,Math.max(0,e-g-m));k&&(q.resizeStretchedElement(a,void 0,f),q.resizeStretchedElement(b,void 0,f),q.resizeStretchedElement(d,void 0,f))};
AdfDhtmlPanelSplitterBasePeer.prototype._resizeVertical=function(a,b,d,e,f,g,h,k,l,m,n){var q=AdfAgent.AGENT;l&&(q.setOuterHeight(a,g+1),n=n?"bottom":"top",d.style[n]=g+"px",b.style[n]=g+m-1+"px");(l||k)&&q.resizeStretchedElement(b,void 0,Math.max(0,f-g-m));h&&(q.resizeStretchedElement(a,e,void 0),q.resizeStretchedElement(b,e,void 0),q.resizeStretchedElement(d,e,void 0))};
AdfDhtmlPanelSplitterBasePeer.prototype._resizeOnly=function(a,b,d,e,f){e=AdfAgent.AGENT;e.resizeStretchedElement(a,b,d);b=AdfDomUtils.getFirstChildElement(a);a=this._getPanePadding(a);e.resizeStretchedChild(b,a)};AdfDhtmlPanelSplitterBasePeer.prototype._getCollapsedPane=function(){var a=this.getComponent();return a.getCollapsed()?AdfDhtmlPanelSplitterBasePeer._getPositionedFromEnd(a)?this._secondDom:this._firstDom:null};
AdfDhtmlPanelSplitterBasePeer.prototype._updateDivider=function(a,b){var d,e=this.getComponent();d=AdfDhtmlPanelSplitterBasePeer.__isHorizontal(e)?b?a?"af|panelSplitter::horizontal-collapse-icon":"af|panelSplitter::horizontal-restore-icon":a?"af|panelSplitter::horizontal-restore-icon":"af|panelSplitter::horizontal-collapse-icon":b?a?"af|panelSplitter::vertical-collapse-icon":"af|panelSplitter::vertical-restore-icon":a?"af|panelSplitter::vertical-restore-icon":"af|panelSplitter::vertical-collapse-icon";
AdfDomUtils.addOrRemoveCSSClassName(!a,this._dividerDom,AdfDhtmlPanelSplitterBasePeer._DISCLOSED_STATE);var f=this._iconDom,g=AdfDomUtils.getFirstChildElement(f);AdfDomUtils.swapIcon(g,d);d=AdfDomUtils.getFirstChildElement(f);e=AdfDhtmlPanelSplitterBasePeer._getCollapseIconTooltipText(e,a,b);f.title=e;f.setAttribute("aria-label",e);f.setAttribute("aria-expanded",(!a).toString());"IMG"==d.tagName&&(d.alt=e);d.title=e};
AdfDhtmlPanelSplitterBasePeer.prototype.ComponentRemoved=function(a){this._touchMoveManager&&this._touchMoveManager.unregister();AdfDhtmlPanelSplitterBasePeer.superclass.ComponentRemoved.call(this,a)};
AdfDhtmlPanelSplitterBasePeer.prototype._isDimensionsFromParent=function(){if(null==this._dimensionsFromParent){var a=null;null!=this._dividerDom?a=AdfAgent.AGENT.getComputedStyle(this._dividerDom):null==a&&null!=this._firstDom?a=AdfAgent.AGENT.getComputedStyle(this._firstDom):null==a&&null!=this._secondDom&&(a=AdfAgent.AGENT.getComputedStyle(this._secondDom));this._dimensionsFromParent="absolute"==a.position}return this._dimensionsFromParent};
AdfDhtmlPanelSplitterBasePeer._isChildVisible=function(a){if(null==a)return!1;a=AdfDomUtils.getFirstChildElement(a);return null==a||AdfDomUtils.isVisible(a)};AdfDhtmlPanelSplitterBasePeer.__isHorizontal=function(a){return a.getOrientation()!=AdfRichPanelSplitter.VERTICAL_SPLIT};AdfDhtmlPanelSplitterBasePeer._getPositionedFromEnd=function(a){var b=a.getPositionedFromEnd();AdfDhtmlPanelSplitterBasePeer.__isHorizontal(a)&&AdfPage.PAGE.getLocaleContext().isRightToLeft()&&(b=!b);return b};
AdfDhtmlPanelSplitterBasePeer._getCollapseIconTooltipText=function(a,b,d){var e=AdfPage.PAGE.getLookAndFeel(),f=a.getFirstLandmark();a=a.getSecondLandmark();if(d||"none"==f){if(d&&"none"!=a)return b=b?AdfDhtmlPanelSplitterBasePeer._RESTORE_LABELED_SECTION_KEY:AdfDhtmlPanelSplitterBasePeer._COLLAPSE_LABELED_SECTION_KEY,e.getTranslatedString(b,a);b=b?AdfDhtmlPanelSplitterBasePeer._RESTORE_KEY:AdfDhtmlPanelSplitterBasePeer._COLLAPSE_KEY;return e.getTranslatedString(b)}b=b?AdfDhtmlPanelSplitterBasePeer._RESTORE_LABELED_SECTION_KEY:
AdfDhtmlPanelSplitterBasePeer._COLLAPSE_LABELED_SECTION_KEY;return e.getTranslatedString(b,f)};