var $AdfDhtmlGanttPeer$$ = AdfRichUIPeer.createPeerClass(AdfDhtmlBaseGanttPeer, "AdfDhtmlGanttPeer");
$goog$exportSymbol$$("AdfDhtmlGanttPeer", $AdfDhtmlGanttPeer$$);
$AdfDhtmlGanttPeer$$.InitSubclass = function $$AdfDhtmlGanttPeer$$$InitSubclass$() {
  AdfRichUIPeer.addComponentEventHandlers(this, AdfUIInputEvent.MOUSE_IN_EVENT_TYPE);
  AdfRichUIPeer.addComponentEventHandlers(this, AdfUIInputEvent.MOUSE_OUT_EVENT_TYPE);
  AdfRichUIPeer.addComponentEventHandlers(this, AdfUIInputEvent.MOUSE_DOWN_EVENT_TYPE);
  AdfRichUIPeer.addComponentEventHandlers(this, AdfUIInputEvent.KEY_DOWN_EVENT_TYPE);
  AdfRichUIPeer.addComponentEventHandlers(this, AdfUIInputEvent.KEY_UP_EVENT_TYPE);
  AdfRichUIPeer.addComponentEventHandlers(this, AdfComponentEvent.FOCUS_EVENT_TYPE);
  this.$_DEPENDENCY_POPUP_PREDECESSOR$ = "p";
  this.$_DEPENDENCY_POPUP_SUCCESSOR$ = "s";
};
$JSCompiler_prototypeAlias$$ = $AdfDhtmlGanttPeer$$.prototype;
$JSCompiler_prototypeAlias$$.ResizeNotify = function $$JSCompiler_prototypeAlias$$$ResizeNotify$($_peer__treeTableId$$18_domElem$$2_oldWidth$$7$$, $oldHeight$$7$$, $newWidth$$10$$, $newHeight$$9$$) {
  $AdfDhtmlGanttPeer$$.superclass.ResizeNotify.call(this, $_peer__treeTableId$$18_domElem$$2_oldWidth$$7$$, $oldHeight$$7$$, $newWidth$$10$$, $newHeight$$9$$);
  $_peer__treeTableId$$18_domElem$$2_oldWidth$$7$$ = this.getDomElement();
  AdfAgent.AGENT.getPlatform() != AdfAgent.IE_PLATFORM && $_peer__treeTableId$$18_domElem$$2_oldWidth$$7$$.addEventListener("DOMMouseScroll", hmw, !0);
  $_peer__treeTableId$$18_domElem$$2_oldWidth$$7$$ = this.getComponent().getClientId() + AdfDhtmlBaseGanttPeer.$_NAMING_SEP$ + AdfDhtmlBaseGanttPeer.$_CHART_TREETABLE_ID$;
  $_peer__treeTableId$$18_domElem$$2_oldWidth$$7$$ = AdfPage.PAGE.findComponent($_peer__treeTableId$$18_domElem$$2_oldWidth$$7$$).getPeer();
  this.$treeTableHandleDomKeyDown$ = $_peer__treeTableId$$18_domElem$$2_oldWidth$$7$$.HandleDomKeyDown;
  $_peer__treeTableId$$18_domElem$$2_oldWidth$$7$$.HandleDomKeyDown = $AdfDhtmlGanttPeer$$.prototype.HandleDomKeyDown;
  $_peer__treeTableId$$18_domElem$$2_oldWidth$$7$$.constructor._domEventHandlers.keydown = $AdfDhtmlGanttPeer$$.prototype.HandleDomKeyDown;
};
function hmw($event$$116$$, $id$$191$$) {
  1 == $event$$116$$.ctrlKey && ($event$$116$$.cancelBubble = !0, null == $id$$191$$ && ($id$$191$$ = $event$$116$$.currentTarget.id), AdfPage.PAGE.findComponent($id$$191$$).getPeer().$_handleMouseWheel$($event$$116$$), AdfAgent.AGENT.eatEvent($event$$116$$));
}
$JSCompiler_prototypeAlias$$.$getEventPosition$ = function $$JSCompiler_prototypeAlias$$$$getEventPosition$$($event$$117$$) {
  return AdfAgent.AGENT.getMousePosition($event$$117$$);
};
function $JSCompiler_StaticMethods_findElemRight$$($elem$$47$$) {
  var $curright$$1$$ = 0;
  if (null != $elem$$47$$ && $elem$$47$$.offsetParent) {
    for ($curright$$1$$ += $elem$$47$$.offsetWidth;$elem$$47$$.offsetParent;) {
      $curright$$1$$ += $elem$$47$$.offsetLeft, $elem$$47$$ = $elem$$47$$.offsetParent;
    }
  }
  return $elem$$47$$.offsetWidth - $curright$$1$$;
}
function $JSCompiler_StaticMethods_findElemRightWithScroller$$($JSCompiler_StaticMethods_findElemRightWithScroller$self$$, $elem$$48$$) {
  var $_r$$1$$ = $JSCompiler_StaticMethods_findElemRight$$($elem$$48$$), $_scroller$$17$$ = $JSCompiler_StaticMethods_GetScroller$$($JSCompiler_StaticMethods_findElemRightWithScroller$self$$);
  return $_r$$1$$ + $_scroller$$17$$.scrollLeft;
}
$JSCompiler_prototypeAlias$$.$getX$ = function $$JSCompiler_prototypeAlias$$$$getX$$($evt$$161_pos$$16_pos$$inline_1946$$) {
  if (AdfPage.PAGE.getLocaleContext().isRightToLeft()) {
    $evt$$161_pos$$16_pos$$inline_1946$$ = AdfAgent.AGENT.getMousePosition($evt$$161_pos$$16_pos$$inline_1946$$);
    var $dom$$inline_1947_left$$11$$ = this.getDomElement(), $elem$$inline_5037_width$$inline_1948$$;
    $elem$$inline_5037_width$$inline_1948$$ = $dom$$inline_1947_left$$11$$;
    if (null != $elem$$inline_5037_width$$inline_1948$$ && $elem$$inline_5037_width$$inline_1948$$.offsetParent) {
      for (;$elem$$inline_5037_width$$inline_1948$$.offsetParent;) {
        $elem$$inline_5037_width$$inline_1948$$ = $elem$$inline_5037_width$$inline_1948$$.offsetParent;
      }
    }
    $elem$$inline_5037_width$$inline_1948$$ = $elem$$inline_5037_width$$inline_1948$$.offsetWidth;
    var $left$$inline_1949$$ = AdfAgent.AGENT.getElementLeft(this.getDomElement());
    return Math.max(0, $elem$$inline_5037_width$$inline_1948$$ - $evt$$161_pos$$16_pos$$inline_1946$$.x - ($elem$$inline_5037_width$$inline_1948$$ - ($left$$inline_1949$$ + $dom$$inline_1947_left$$11$$.offsetWidth)));
  }
  $evt$$161_pos$$16_pos$$inline_1946$$ = AdfAgent.AGENT.getMousePosition($evt$$161_pos$$16_pos$$inline_1946$$);
  this.getDomElement();
  $dom$$inline_1947_left$$11$$ = AdfAgent.AGENT.getElementLeft(this.getDomElement());
  return Math.max(0, $evt$$161_pos$$16_pos$$inline_1946$$.x - $dom$$inline_1947_left$$11$$);
};
$JSCompiler_prototypeAlias$$.$getY$ = function $$JSCompiler_prototypeAlias$$$$getY$$($evt$$163_pos$$18$$) {
  $evt$$163_pos$$18$$ = AdfAgent.AGENT.getMousePosition($evt$$163_pos$$18$$);
  var $top$$7$$ = AdfAgent.AGENT.getElementTop(this.getDomElement());
  return Math.max(0, $evt$$163_pos$$18$$.y - $top$$7$$);
};
$JSCompiler_prototypeAlias$$.$getAutoScrollScroller$ = function $$JSCompiler_prototypeAlias$$$$getAutoScrollScroller$$() {
  return $JSCompiler_StaticMethods_GetScroller$$(this);
};
$JSCompiler_prototypeAlias$$.$HandleComponentMouseDown$ = function $$JSCompiler_prototypeAlias$$$$HandleComponentMouseDown$$($_targetID_componentEvent$$55$$) {
  var $_part$$2_target$$101$$ = $_targetID_componentEvent$$55$$.getNativeEventTarget();
  $JSCompiler_StaticMethods__clearDepPopupDivSetting$$(this);
  if (null != $_part$$2_target$$101$$ && "IMG" == $_part$$2_target$$101$$.nodeName) {
    var $event$$118_parent$$7$$ = $_part$$2_target$$101$$.parentNode;
    null != $event$$118_parent$$7$$ && $event$$118_parent$$7$$.getAttribute("dpType") && $JSCompiler_StaticMethods__showDependencyMenu$$(this, $_targetID_componentEvent$$55$$.getNativeEvent(), $event$$118_parent$$7$$);
  }
  "bg" == $_part$$2_target$$101$$.getAttribute("part") && ($_part$$2_target$$101$$ = $_part$$2_target$$101$$.parentNode);
  if (null != $_part$$2_target$$101$$ && null != $_part$$2_target$$101$$.parentNode) {
    if ($event$$118_parent$$7$$ = $_targetID_componentEvent$$55$$.getNativeEvent(), $_part$$2_target$$101$$ = $JSCompiler_StaticMethods_findElement$$(this, $_part$$2_target$$101$$.parentNode, "down"), null != $_part$$2_target$$101$$ && null != $_part$$2_target$$101$$.getAttribute("down")) {
      "sd" == $_part$$2_target$$101$$.getAttribute("down") && this.startDrag($event$$118_parent$$7$$);
    } else {
      var $_chartTableID$$ = this.getComponent().getClientId() + AdfDhtmlBaseGanttPeer.$_NAMING_SEP$ + AdfDhtmlBaseGanttPeer.$_CHART_TREETABLE_ID$, $_sourceID$$ = $_targetID_componentEvent$$55$$.getSource().getClientId(), $_part$$2_target$$101$$ = $_targetID_componentEvent$$55$$.getNativeEventTarget();
      "bg" == $_part$$2_target$$101$$.getAttribute("part") && ($_part$$2_target$$101$$ = $_part$$2_target$$101$$.parentNode);
      $_targetID_componentEvent$$55$$ = $_part$$2_target$$101$$.getAttribute("id");
      $_part$$2_target$$101$$ = $_part$$2_target$$101$$.getAttribute(AdfDhtmlBaseGanttPeer.$_PART$);
      null != $_sourceID$$ && -1 != $_sourceID$$.indexOf($_chartTableID$$) && null == $_part$$2_target$$101$$ && null != $_targetID_componentEvent$$55$$ && -1 == $_targetID_componentEvent$$55$$.indexOf("scroller") && this.$startDragPan$($event$$118_parent$$7$$);
    }
  }
};
$goog$exportSymbol$$("AdfDhtmlGanttPeer.prototype.HandleComponentMouseDown", $AdfDhtmlGanttPeer$$.prototype.$HandleComponentMouseDown$);
$AdfDhtmlGanttPeer$$.prototype.HandleComponentMouseOver = function $$AdfDhtmlGanttPeer$$$$HandleComponentMouseOver$($componentEvent$$56_event$$119$$) {
  var $mthd$$1_target$$102$$ = $componentEvent$$56_event$$119$$.getNativeEventTarget(), $mthd$$1_target$$102$$ = $JSCompiler_StaticMethods_findElement$$(this, $mthd$$1_target$$102$$, "over");
  null != $mthd$$1_target$$102$$ && null != $mthd$$1_target$$102$$.getAttribute("over") && ($componentEvent$$56_event$$119$$ = $componentEvent$$56_event$$119$$.getNativeEvent(), $mthd$$1_target$$102$$ = $mthd$$1_target$$102$$.getAttribute("over"), "src" == $mthd$$1_target$$102$$ ? this.$showResizeCursor$($componentEvent$$56_event$$119$$) : "sst" == $mthd$$1_target$$102$$ ? this.$showSummaryTooltip$($componentEvent$$56_event$$119$$) : "smc" == $mthd$$1_target$$102$$ ? this.$showMoveCursor$($componentEvent$$56_event$$119$$) : 
  "smec" == $mthd$$1_target$$102$$ ? this.$showMoveEntireCursor$($componentEvent$$56_event$$119$$) : "sdt" == $mthd$$1_target$$102$$ && this.$showDepTooltip$($componentEvent$$56_event$$119$$));
};
$goog$exportSymbol$$("AdfDhtmlGanttPeer.prototype.HandleComponentMouseOver", $AdfDhtmlGanttPeer$$.prototype.HandleComponentMouseOver);
$AdfDhtmlGanttPeer$$.prototype.$HandleComponentMouseOut$ = function $$AdfDhtmlGanttPeer$$$$$HandleComponentMouseOut$$($componentEvent$$57_mthd$$2$$) {
  var $event$$120$$ = $componentEvent$$57_mthd$$2$$.getNativeEvent();
  this.$dragpan$ && ($componentEvent$$57_mthd$$2$$.getClientX() >= AdfAgent.AGENT.getElementPageBounds(this.getDomElement()).right || $JSCompiler_StaticMethods_isEventOutsideBrowser$$($event$$120$$)) && this.$endDragPan$($event$$120$$);
  var $target$$103$$ = $componentEvent$$57_mthd$$2$$.getNativeEventTarget(), $target$$103$$ = $JSCompiler_StaticMethods_findElement$$(this, $target$$103$$, "out");
  null != $target$$103$$ && null != $target$$103$$.getAttribute("out") && ($event$$120$$ = $componentEvent$$57_mthd$$2$$.getNativeEvent(), $componentEvent$$57_mthd$$2$$ = $target$$103$$.getAttribute("out"), "rc" == $componentEvent$$57_mthd$$2$$ ? this.$resetCursor$($event$$120$$) : "hst" == $componentEvent$$57_mthd$$2$$ ? this.$hideSummaryTooltip$() : "rec" == $componentEvent$$57_mthd$$2$$ ? this.$resetEntireCursor$($event$$120$$) : "hdt" == $componentEvent$$57_mthd$$2$$ && this.$hideDepTooltip$($event$$120$$));
};
$goog$exportSymbol$$("AdfDhtmlGanttPeer.prototype.HandleComponentMouseOut", $AdfDhtmlGanttPeer$$.prototype.$HandleComponentMouseOut$);
$AdfDhtmlGanttPeer$$.prototype.$HandleComponentKeyDown$ = function $$AdfDhtmlGanttPeer$$$$$HandleComponentKeyDown$$($comp$$4_componentEvent$$58_selectedRowKey$$inline_1955_treeTable$$inline_5042$$) {
  var $keyCode$$5_state$$inline_5043$$ = $comp$$4_componentEvent$$58_selectedRowKey$$inline_1955_treeTable$$inline_5042$$.getNativeEvent().keyCode, $_treeTable$$inline_1953__treeTableId$$19_ganttId$$inline_5041_selectedRowKeys$$inline_1954_task$$inline_1958$$ = this.getComponent().getClientId() + AdfDhtmlBaseGanttPeer.$_NAMING_SEP$ + AdfDhtmlBaseGanttPeer.$_CHART_TREETABLE_ID$;
  switch($keyCode$$5_state$$inline_5043$$) {
    case AdfKeyStroke.TAB_KEY:
      if ($comp$$4_componentEvent$$58_selectedRowKey$$inline_1955_treeTable$$inline_5042$$ = AdfFocusUtils.$getNextTabStop$($comp$$4_componentEvent$$58_selectedRowKey$$inline_1955_treeTable$$inline_5042$$.getNativeEventTarget()), null != $comp$$4_componentEvent$$58_selectedRowKey$$inline_1955_treeTable$$inline_5042$$ && $_treeTable$$inline_1953__treeTableId$$19_ganttId$$inline_5041_selectedRowKeys$$inline_1954_task$$inline_1958$$ == $comp$$4_componentEvent$$58_selectedRowKey$$inline_1955_treeTable$$inline_5042$$.id) {
        a: {
          this.getComponent().getClientId();
          $_treeTable$$inline_1953__treeTableId$$19_ganttId$$inline_5041_selectedRowKeys$$inline_1954_task$$inline_1958$$ = AdfPage.PAGE.findComponent($JSCompiler_StaticMethods_getChartTreeTableId$$(this));
          if (!this.$isMultipleTasksPerRow$()) {
            $_treeTable$$inline_1953__treeTableId$$19_ganttId$$inline_5041_selectedRowKeys$$inline_1954_task$$inline_1958$$ = $_treeTable$$inline_1953__treeTableId$$19_ganttId$$inline_5041_selectedRowKeys$$inline_1954_task$$inline_1958$$.getSelectedRowKeys();
            $comp$$4_componentEvent$$58_selectedRowKey$$inline_1955_treeTable$$inline_5042$$ = null;
            for (var $attrs$$inline_1957_key$$inline_1956_rowKey$$inline_5040$$ in $_treeTable$$inline_1953__treeTableId$$19_ganttId$$inline_5041_selectedRowKeys$$inline_1954_task$$inline_1958$$) {
              $comp$$4_componentEvent$$58_selectedRowKey$$inline_1955_treeTable$$inline_5042$$ = $attrs$$inline_1957_key$$inline_1956_rowKey$$inline_5040$$;
              break;
            }
            if ($comp$$4_componentEvent$$58_selectedRowKey$$inline_1955_treeTable$$inline_5042$$ && ($attrs$$inline_1957_key$$inline_1956_rowKey$$inline_5040$$ = $JSCompiler_StaticMethods__getSelectedRowKeyAndRow$$(this, $comp$$4_componentEvent$$58_selectedRowKey$$inline_1955_treeTable$$inline_5042$$), $attrs$$inline_1957_key$$inline_1956_rowKey$$inline_5040$$.$row$)) {
              this.$_currentTask$ = $JSCompiler_StaticMethods_findTaskInElem$$(this, $attrs$$inline_1957_key$$inline_1956_rowKey$$inline_5040$$.$row$);
              break a;
            }
          }
          if (null == this.$_currentTask$) {
            if ($attrs$$inline_1957_key$$inline_1956_rowKey$$inline_5040$$ = $JSCompiler_StaticMethods_GetFirstVisibleRowKeyAndRow$$(this), null != $attrs$$inline_1957_key$$inline_1956_rowKey$$inline_5040$$ && null != $attrs$$inline_1957_key$$inline_1956_rowKey$$inline_5040$$.$row$) {
              $_treeTable$$inline_1953__treeTableId$$19_ganttId$$inline_5041_selectedRowKeys$$inline_1954_task$$inline_1958$$ = $JSCompiler_StaticMethods_findTaskInElem$$(this, $attrs$$inline_1957_key$$inline_1956_rowKey$$inline_5040$$.$row$);
              if (null == $_treeTable$$inline_1953__treeTableId$$19_ganttId$$inline_5041_selectedRowKeys$$inline_1954_task$$inline_1958$$) {
                break a;
              }
              this.$isMultipleTasksPerRow$() ? (this.$selectTask$($_treeTable$$inline_1953__treeTableId$$19_ganttId$$inline_5041_selectedRowKeys$$inline_1954_task$$inline_1958$$, "focus"), this.$_currentTask$ = $_treeTable$$inline_1953__treeTableId$$19_ganttId$$inline_5041_selectedRowKeys$$inline_1954_task$$inline_1958$$, this.$_lastRowKey$ = $attrs$$inline_1957_key$$inline_1956_rowKey$$inline_5040$$.$rowKey$) : (this.$_currentTask$ = $_treeTable$$inline_1953__treeTableId$$19_ganttId$$inline_5041_selectedRowKeys$$inline_1954_task$$inline_1958$$, 
              $attrs$$inline_1957_key$$inline_1956_rowKey$$inline_5040$$ = $attrs$$inline_1957_key$$inline_1956_rowKey$$inline_5040$$.$rowKey$, $_treeTable$$inline_1953__treeTableId$$19_ganttId$$inline_5041_selectedRowKeys$$inline_1954_task$$inline_1958$$ = this.getComponent().getClientId(), $comp$$4_componentEvent$$58_selectedRowKey$$inline_1955_treeTable$$inline_5042$$ = AdfPage.PAGE.findComponent($_treeTable$$inline_1953__treeTableId$$19_ganttId$$inline_5041_selectedRowKeys$$inline_1954_task$$inline_1958$$ + 
              AdfDhtmlBaseGanttPeer.$_NAMING_SEP$ + AdfDhtmlBaseGanttPeer.$_DATA_TREETABLE_ID$), $keyCode$$5_state$$inline_5043$$ = {}, AdfCollections.copyInto($keyCode$$5_state$$inline_5043$$, $comp$$4_componentEvent$$58_selectedRowKey$$inline_1955_treeTable$$inline_5042$$.getSelectedRowKeys()), $keyCode$$5_state$$inline_5043$$[$attrs$$inline_1957_key$$inline_1956_rowKey$$inline_5040$$] = !0, $comp$$4_componentEvent$$58_selectedRowKey$$inline_1955_treeTable$$inline_5042$$.setSelectedRowKeys($keyCode$$5_state$$inline_5043$$), 
              AdfPage.PAGE.findComponent($_treeTable$$inline_1953__treeTableId$$19_ganttId$$inline_5041_selectedRowKeys$$inline_1954_task$$inline_1958$$ + AdfDhtmlBaseGanttPeer.$_NAMING_SEP$ + AdfDhtmlBaseGanttPeer.$_CHART_TREETABLE_ID$).setProperty("selectedRowKeys", $keyCode$$5_state$$inline_5043$$, !1, AdfUIComponent.PROPAGATE_NEVER));
            }
          } else {
            this.$isMultipleTasksPerRow$() && this.$selectTask$(this.$_currentTask$, "focus");
          }
          null != this.$_currentTask$ && $JSCompiler_StaticMethods_scrollInToView$$(this, this.$_currentTask$);
        }
      }
    ;
  }
};
$goog$exportSymbol$$("AdfDhtmlGanttPeer.prototype.HandleComponentKeyDown", $AdfDhtmlGanttPeer$$.prototype.$HandleComponentKeyDown$);
$AdfDhtmlGanttPeer$$.prototype.HandleComponentKeyUp = function $$AdfDhtmlGanttPeer$$$$HandleComponentKeyUp$($componentEvent$$59$$) {
  17 == $componentEvent$$59$$.getNativeEvent().keyCode && this.$zoomPerformed$ && (null != this.$zoomTimeout$ && clearTimeout(this.$zoomTimeout$), this.$zoomPerformed$ = !1, $JSCompiler_StaticMethods_getSplitDateTooltip$$(this).style.display = "none", this.zoom($componentEvent$$59$$));
};
$goog$exportSymbol$$("AdfDhtmlGanttPeer.prototype.HandleComponentKeyUp", $AdfDhtmlGanttPeer$$.prototype.HandleComponentKeyUp);
$AdfDhtmlGanttPeer$$.prototype.HandleDomKeyDown = function $$AdfDhtmlGanttPeer$$$$HandleDomKeyDown$($component$$376$$, $domEvent$$22$$) {
  var $id$$192$$ = this.getComponent().getClientId(), $gantt$$13_peer$$46$$ = AdfPage.PAGE.findComponent($id$$192$$.substring(0, $id$$192$$.length - 4));
  null != $gantt$$13_peer$$46$$ && ($gantt$$13_peer$$46$$ = $gantt$$13_peer$$46$$.getPeer(), $id$$192$$ != $JSCompiler_StaticMethods_getChartTreeTableId$$($gantt$$13_peer$$46$$) ? $id$$192$$ == $JSCompiler_StaticMethods_getDataTreeTableId$$($gantt$$13_peer$$46$$) && this.HandleDomKeyDown($component$$376$$, $domEvent$$22$$) : $gantt$$13_peer$$46$$.$HandleTreeTableKeyDown$($component$$376$$, $domEvent$$22$$));
};
$goog$exportSymbol$$("AdfDhtmlGanttPeer.prototype.HandleDomKeyDown", $AdfDhtmlGanttPeer$$.prototype.HandleDomKeyDown);
$AdfDhtmlGanttPeer$$.prototype.$doPropagatesKeyboardEvent$ = function $$AdfDhtmlGanttPeer$$$$$doPropagatesKeyboardEvent$$($component$$377$$, $domEvent$$23$$) {
  var $keyCode$$7$$ = $domEvent$$23$$.keyCode;
  $keyCode$$7$$ != AdfKeyStroke.ARROWUP_KEY && $keyCode$$7$$ != AdfKeyStroke.ARROWDOWN_KEY && $keyCode$$7$$ != AdfKeyStroke.ARROWLEFT_KEY || null == this.$_prevTask$ || this.$_prevTask$.removeAttribute("tabIndex");
  this.$treeTableHandleDomKeyDown$.call($component$$377$$.getPeer(), $component$$377$$, $domEvent$$23$$);
};
$AdfDhtmlGanttPeer$$.prototype.$HandleTreeTableKeyDown$ = function $$AdfDhtmlGanttPeer$$$$$HandleTreeTableKeyDown$$($component$$378$$, $domEvent$$24$$) {
  var $_ganttId$$inline_1961_contextMenuId$$inline_1971_handled$$ = !1;
  switch($domEvent$$24$$.keyCode) {
    case 77:
      if ($domEvent$$24$$.ctrlKey && $domEvent$$24$$.altKey) {
        var $_ganttId$$inline_1961_contextMenuId$$inline_1971_handled$$ = this.getComponent().getClientId(), $_treeTable$$inline_1963__treeTableId$$inline_1962_selectedRowKeys$$inline_1964_top$$inline_1969$$ = $JSCompiler_StaticMethods_getChartTreeTableId$$(this), $_treeTable$$inline_1963__treeTableId$$inline_1962_selectedRowKeys$$inline_1964_top$$inline_1969$$ = AdfPage.PAGE.findComponent($_treeTable$$inline_1963__treeTableId$$inline_1962_selectedRowKeys$$inline_1964_top$$inline_1969$$);
        if (!this.$isMultipleTasksPerRow$()) {
          var $_treeTable$$inline_1963__treeTableId$$inline_1962_selectedRowKeys$$inline_1964_top$$inline_1969$$ = $_treeTable$$inline_1963__treeTableId$$inline_1962_selectedRowKeys$$inline_1964_top$$inline_1969$$.getSelectedRowKeys(), $hints$$inline_1970_key$$inline_1965_task$$inline_1967$$;
          for ($hints$$inline_1970_key$$inline_1965_task$$inline_1967$$ in $_treeTable$$inline_1963__treeTableId$$inline_1962_selectedRowKeys$$inline_1964_top$$inline_1969$$) {
            selectedRowKey = $hints$$inline_1970_key$$inline_1965_task$$inline_1967$$;
            break;
          }
          if (selectedRowKey) {
            var $attrs$$inline_1966_left$$inline_1968$$ = $JSCompiler_StaticMethods__getSelectedRowKeyAndRow$$(this, selectedRowKey)
          }
          $hints$$inline_1970_key$$inline_1965_task$$inline_1967$$ = $JSCompiler_StaticMethods_findTaskInElem$$(this, $attrs$$inline_1966_left$$inline_1968$$.$row$);
          $hints$$inline_1970_key$$inline_1965_task$$inline_1967$$ != this.$_currentTask$ && (this.$_currentTask$ = $hints$$inline_1970_key$$inline_1965_task$$inline_1967$$);
        }
        null != this.$_currentTask$ && ($attrs$$inline_1966_left$$inline_1968$$ = parseInt(AdfAgent.AGENT.getElementLeft(this.$_currentTask$)) + 5, $_treeTable$$inline_1963__treeTableId$$inline_1962_selectedRowKeys$$inline_1964_top$$inline_1969$$ = parseInt(AdfAgent.AGENT.getElementTop(this.$_currentTask$)) + 5, $hints$$inline_1970_key$$inline_1965_task$$inline_1967$$ = {}, $hints$$inline_1970_key$$inline_1965_task$$inline_1967$$[$AdfDhtmlCommonUtils$$.TYPE] = $AdfDhtmlCommonUtils$$.$TYPE_MENU$, 
        $hints$$inline_1970_key$$inline_1965_task$$inline_1967$$[$AdfDhtmlCommonUtils$$.$AUTODISMISS$] = $AdfDhtmlCommonUtils$$.$AUTODISMISS_MENU$, $hints$$inline_1970_key$$inline_1965_task$$inline_1967$$[$AdfDhtmlCommonUtils$$.$MOUSEPOSITION$] = {x:$attrs$$inline_1966_left$$inline_1968$$, y:$_treeTable$$inline_1963__treeTableId$$inline_1962_selectedRowKeys$$inline_1964_top$$inline_1969$$}, $hints$$inline_1970_key$$inline_1965_task$$inline_1967$$[$AdfDhtmlCommonUtils$$.$FOCUS$] = !0, $_ganttId$$inline_1961_contextMenuId$$inline_1971_handled$$ = 
        $_ganttId$$inline_1961_contextMenuId$$inline_1971_handled$$ + AdfDhtmlBaseGanttPeer.$_NAMING_SEP$ + $JSCompiler_StaticMethods_getChartContextMenuId$$(this), AdfPage.PAGE.findComponent($_ganttId$$inline_1961_contextMenuId$$inline_1971_handled$$).show($hints$$inline_1970_key$$inline_1965_task$$inline_1967$$));
        $JSCompiler_StaticMethods__clearDepPopupDivSetting$$(this);
        $_ganttId$$inline_1961_contextMenuId$$inline_1971_handled$$ = !0;
      }
    ;
  }
  $_ganttId$$inline_1961_contextMenuId$$inline_1971_handled$$ ? AdfAgent.AGENT.eatEvent($domEvent$$24$$) : this.$doPropagatesKeyboardEvent$($component$$378$$, $domEvent$$24$$);
};
function $JSCompiler_StaticMethods__clearDepPopupDivSetting$$($JSCompiler_StaticMethods__clearDepPopupDivSetting$self$$) {
  $JSCompiler_StaticMethods__clearDepPopupDivSetting$self$$.$_depPopupDiv$ && null != $JSCompiler_StaticMethods__clearDepPopupDivSetting$self$$.$_depPopupDiv$ && ($JSCompiler_StaticMethods__clearDepPopupDivSetting$self$$.$_depPopupDiv$.firstChild.src = $JSCompiler_StaticMethods__clearDepPopupDivSetting$self$$.$_depPopupDiv$.firstChild.getAttribute("src_ena"), $JSCompiler_StaticMethods__clearDepPopupDivSetting$self$$.$_depPopupDiv$.setAttribute("dep_selected", !1), $JSCompiler_StaticMethods__clearDepPopupDivSetting$self$$.$_depPopupDiv$ = 
  null);
}
function $JSCompiler_StaticMethods_handleUpKey$$($JSCompiler_StaticMethods_handleUpKey$self$$) {
  if (null != $JSCompiler_StaticMethods_handleUpKey$self$$.$_currentTask$) {
    $JSCompiler_StaticMethods_handleUpKey$self$$.$_lastRowKey$ = $JSCompiler_StaticMethods_findRowKey$$($JSCompiler_StaticMethods_handleUpKey$self$$, $JSCompiler_StaticMethods_handleUpKey$self$$.$_currentTask$);
    for (var $selectedRowKey$$inline_1974$$ = $JSCompiler_StaticMethods_handleUpKey$self$$.$_lastRowKey$, $agent$$inline_1975$$ = AdfAgent.AGENT, $dataTables$$inline_1976$$ = $JSCompiler_StaticMethods_GetDatabody$$($JSCompiler_StaticMethods_handleUpKey$self$$).childNodes, $attrs$$inline_1977$$ = {}, $i$$inline_1978$$ = $dataTables$$inline_1976$$.length - 1;0 <= $i$$inline_1978$$ && !$attrs$$inline_1977$$.$rowKey$;--$i$$inline_1978$$) {
      for (var $table$$inline_1979$$ = $dataTables$$inline_1976$$[$i$$inline_1978$$], $rows$$inline_1980$$ = $dataTables$$inline_1976$$[$i$$inline_1978$$].rows, $j$$inline_1981$$ = $rows$$inline_1980$$.length - 1;0 <= $j$$inline_1981$$;--$j$$inline_1981$$) {
        var $row$$inline_1982$$ = $rows$$inline_1980$$[$j$$inline_1981$$], $rowKey$$inline_1983$$ = $agent$$inline_1975$$.getAttribute($row$$inline_1982$$, AdfDhtmlBaseGanttPeer.$_ROW_KEY$);
        if (null == $selectedRowKey$$inline_1974$$) {
          $attrs$$inline_1977$$.$rowKey$ = $rowKey$$inline_1983$$;
          $attrs$$inline_1977$$.$row$ = $row$$inline_1982$$;
          break;
        } else {
          if ($rowKey$$inline_1983$$ == $selectedRowKey$$inline_1974$$) {
            $attrs$$inline_1977$$.$lastRowKeyInView$ = $rowKey$$inline_1983$$;
            0 <= $j$$inline_1981$$ - 1 ? ($row$$inline_1982$$ = $rows$$inline_1980$$[$j$$inline_1981$$ - 1], $rowKey$$inline_1983$$ = $agent$$inline_1975$$.getAttribute($row$$inline_1982$$, AdfDhtmlBaseGanttPeer.$_ROW_KEY$), $attrs$$inline_1977$$.$rowKey$ = $rowKey$$inline_1983$$, $attrs$$inline_1977$$.$row$ = $row$$inline_1982$$) : 0 <= $i$$inline_1978$$ - 1 ? ($rows$$inline_1980$$ = $dataTables$$inline_1976$$[$i$$inline_1978$$ - 1].rows, 0 < $rows$$inline_1980$$.length && ($row$$inline_1982$$ = 
            $rows$$inline_1980$$[$rows$$inline_1980$$.length - 1], $rowKey$$inline_1983$$ = $agent$$inline_1975$$.getAttribute($row$$inline_1982$$, AdfDhtmlBaseGanttPeer.$_ROW_KEY$), $attrs$$inline_1977$$.$rowKey$ = $rowKey$$inline_1983$$, $attrs$$inline_1977$$.$row$ = $row$$inline_1982$$)) : 0 == $agent$$inline_1975$$.getIntAttribute($table$$inline_1979$$, "_startRow", -1) && ($attrs$$inline_1977$$.$isAtTop$ = !0);
            break;
          }
        }
      }
    }
    null != $attrs$$inline_1977$$ && null != $attrs$$inline_1977$$.$row$ && ($JSCompiler_StaticMethods_handleUpKey$self$$.$_lastRowKey$ = $attrs$$inline_1977$$.$rowKey$, $JSCompiler_StaticMethods_handleUpKey$self$$.$deselectTask$($JSCompiler_StaticMethods_handleUpKey$self$$.$_currentTask$, "up"), $JSCompiler_StaticMethods_handleUpKey$self$$.$_currentTask$ = $JSCompiler_StaticMethods_findTaskInElem$$($JSCompiler_StaticMethods_handleUpKey$self$$, $attrs$$inline_1977$$.$row$), $JSCompiler_StaticMethods_handleUpKey$self$$.$selectTask$($JSCompiler_StaticMethods_handleUpKey$self$$.$_currentTask$, 
    "up"), $JSCompiler_StaticMethods_handleUpKey$self$$.$populateAriaLabel$($JSCompiler_StaticMethods_handleUpKey$self$$.$_currentTask$), $JSCompiler_StaticMethods_scrollInToView$$($JSCompiler_StaticMethods_handleUpKey$self$$, $JSCompiler_StaticMethods_handleUpKey$self$$.$_currentTask$));
    $JSCompiler_StaticMethods_handleUpKey$self$$.$m_rowNavKeyPressed$ = !0;
  }
}
function $JSCompiler_StaticMethods_handleDownKey$$($JSCompiler_StaticMethods_handleDownKey$self$$) {
  if (null != $JSCompiler_StaticMethods_handleDownKey$self$$.$_currentTask$) {
    $JSCompiler_StaticMethods_handleDownKey$self$$.$_lastRowKey$ = $JSCompiler_StaticMethods_findRowKey$$($JSCompiler_StaticMethods_handleDownKey$self$$, $JSCompiler_StaticMethods_handleDownKey$self$$.$_currentTask$);
    var $attrs$$12$$ = $JSCompiler_StaticMethods__getNextRowKeyAndRow$$($JSCompiler_StaticMethods_handleDownKey$self$$, $JSCompiler_StaticMethods_handleDownKey$self$$.$_lastRowKey$);
    null != $attrs$$12$$ && null != $attrs$$12$$.$row$ && ($JSCompiler_StaticMethods_handleDownKey$self$$.$_lastRowKey$ = $attrs$$12$$.$rowKey$, $JSCompiler_StaticMethods_handleDownKey$self$$.$deselectTask$($JSCompiler_StaticMethods_handleDownKey$self$$.$_currentTask$, "down"), $JSCompiler_StaticMethods_handleDownKey$self$$.$_currentTask$ = $JSCompiler_StaticMethods_findTaskInElem$$($JSCompiler_StaticMethods_handleDownKey$self$$, $attrs$$12$$.$row$), $JSCompiler_StaticMethods_handleDownKey$self$$.$selectTask$($JSCompiler_StaticMethods_handleDownKey$self$$.$_currentTask$, 
    "down"), $JSCompiler_StaticMethods_handleDownKey$self$$.$populateAriaLabel$($JSCompiler_StaticMethods_handleDownKey$self$$.$_currentTask$), $JSCompiler_StaticMethods_scrollInToView$$($JSCompiler_StaticMethods_handleDownKey$self$$, $JSCompiler_StaticMethods_handleDownKey$self$$.$_currentTask$));
    $JSCompiler_StaticMethods_handleDownKey$self$$.$m_rowNavKeyPressed$ = !0;
  }
}
function $JSCompiler_StaticMethods_handleLeftKey$$($JSCompiler_StaticMethods_handleLeftKey$self$$) {
  if (null != $JSCompiler_StaticMethods_handleLeftKey$self$$.$_currentTask$) {
    var $nextTask$$1_prev$$inline_1987_task$$inline_1985_tdNode$$inline_1986$$;
    $nextTask$$1_prev$$inline_1987_task$$inline_1985_tdNode$$inline_1986$$ = $JSCompiler_StaticMethods_handleLeftKey$self$$.$_currentTask$;
    if (AdfPage.PAGE.isScreenReaderMode()) {
      $nextTask$$1_prev$$inline_1987_task$$inline_1985_tdNode$$inline_1986$$ = $nextTask$$1_prev$$inline_1987_task$$inline_1985_tdNode$$inline_1986$$.parentNode.previousSibling, $nextTask$$1_prev$$inline_1987_task$$inline_1985_tdNode$$inline_1986$$ = null == $nextTask$$1_prev$$inline_1987_task$$inline_1985_tdNode$$inline_1986$$ ? null : $nextTask$$1_prev$$inline_1987_task$$inline_1985_tdNode$$inline_1986$$.firstChild;
    } else {
      for ($nextTask$$1_prev$$inline_1987_task$$inline_1985_tdNode$$inline_1986$$ = $nextTask$$1_prev$$inline_1987_task$$inline_1985_tdNode$$inline_1986$$.previousSibling;null != $nextTask$$1_prev$$inline_1987_task$$inline_1985_tdNode$$inline_1986$$ && null == $nextTask$$1_prev$$inline_1987_task$$inline_1985_tdNode$$inline_1986$$.getAttribute(AdfDhtmlBaseGanttPeer.$_TASKID$);) {
        $nextTask$$1_prev$$inline_1987_task$$inline_1985_tdNode$$inline_1986$$ = $nextTask$$1_prev$$inline_1987_task$$inline_1985_tdNode$$inline_1986$$.previousSibling;
      }
    }
    null == $nextTask$$1_prev$$inline_1987_task$$inline_1985_tdNode$$inline_1986$$ || null == $nextTask$$1_prev$$inline_1987_task$$inline_1985_tdNode$$inline_1986$$.getAttribute(AdfDhtmlBaseGanttPeer.$_TASKID$) ? ($JSCompiler_StaticMethods_handleLeftKey$self$$.$_lastRowKey$ = $JSCompiler_StaticMethods_findRowKey$$($JSCompiler_StaticMethods_handleLeftKey$self$$, $JSCompiler_StaticMethods_handleLeftKey$self$$.$_currentTask$), $JSCompiler_StaticMethods_handleLeftKey$self$$.$deselectTask$($JSCompiler_StaticMethods_handleLeftKey$self$$.$_currentTask$, 
    "left")) : ($JSCompiler_StaticMethods_handleLeftKey$self$$.$deselectTask$($JSCompiler_StaticMethods_handleLeftKey$self$$.$_currentTask$, "left"), null != $nextTask$$1_prev$$inline_1987_task$$inline_1985_tdNode$$inline_1986$$ && ($JSCompiler_StaticMethods_handleLeftKey$self$$.$selectTask$($nextTask$$1_prev$$inline_1987_task$$inline_1985_tdNode$$inline_1986$$, "left"), $JSCompiler_StaticMethods_handleLeftKey$self$$.$populateAriaLabel$($nextTask$$1_prev$$inline_1987_task$$inline_1985_tdNode$$inline_1986$$), 
    $JSCompiler_StaticMethods_handleLeftKey$self$$.$_currentTask$ = $nextTask$$1_prev$$inline_1987_task$$inline_1985_tdNode$$inline_1986$$), $JSCompiler_StaticMethods_scrollInToView$$($JSCompiler_StaticMethods_handleLeftKey$self$$, $JSCompiler_StaticMethods_handleLeftKey$self$$.$_currentTask$));
  }
}
function $JSCompiler_StaticMethods_handleRightKey$$($JSCompiler_StaticMethods_handleRightKey$self$$) {
  if (null != $JSCompiler_StaticMethods_handleRightKey$self$$.$_currentTask$) {
    var $next$$inline_1991_nextTask$$2_task$$inline_1989_tdNode$$inline_1990$$;
    $next$$inline_1991_nextTask$$2_task$$inline_1989_tdNode$$inline_1990$$ = $JSCompiler_StaticMethods_handleRightKey$self$$.$_currentTask$;
    if (AdfPage.PAGE.isScreenReaderMode()) {
      $next$$inline_1991_nextTask$$2_task$$inline_1989_tdNode$$inline_1990$$ = $next$$inline_1991_nextTask$$2_task$$inline_1989_tdNode$$inline_1990$$.parentNode.nextSibling, $next$$inline_1991_nextTask$$2_task$$inline_1989_tdNode$$inline_1990$$ = null == $next$$inline_1991_nextTask$$2_task$$inline_1989_tdNode$$inline_1990$$ ? null : $next$$inline_1991_nextTask$$2_task$$inline_1989_tdNode$$inline_1990$$.firstChild;
    } else {
      for ($next$$inline_1991_nextTask$$2_task$$inline_1989_tdNode$$inline_1990$$ = $next$$inline_1991_nextTask$$2_task$$inline_1989_tdNode$$inline_1990$$.nextSibling;null != $next$$inline_1991_nextTask$$2_task$$inline_1989_tdNode$$inline_1990$$ && null == $next$$inline_1991_nextTask$$2_task$$inline_1989_tdNode$$inline_1990$$.getAttribute(AdfDhtmlBaseGanttPeer.$_TASKID$);) {
        $next$$inline_1991_nextTask$$2_task$$inline_1989_tdNode$$inline_1990$$ = $next$$inline_1991_nextTask$$2_task$$inline_1989_tdNode$$inline_1990$$.nextSibling;
      }
    }
    if (null == $next$$inline_1991_nextTask$$2_task$$inline_1989_tdNode$$inline_1990$$ || null == $next$$inline_1991_nextTask$$2_task$$inline_1989_tdNode$$inline_1990$$.getAttribute(AdfDhtmlBaseGanttPeer.$_TASKID$)) {
      $JSCompiler_StaticMethods_handleRightKey$self$$.$_lastRowKey$ = $JSCompiler_StaticMethods_findRowKey$$($JSCompiler_StaticMethods_handleRightKey$self$$, $JSCompiler_StaticMethods_handleRightKey$self$$.$_currentTask$);
      var $attrs$$13$$ = $JSCompiler_StaticMethods__getNextRowKeyAndRow$$($JSCompiler_StaticMethods_handleRightKey$self$$, $JSCompiler_StaticMethods_handleRightKey$self$$.$_lastRowKey$);
      null != $attrs$$13$$ && null != $attrs$$13$$.$row$ ? ($next$$inline_1991_nextTask$$2_task$$inline_1989_tdNode$$inline_1990$$ = $JSCompiler_StaticMethods_findTaskInElem$$($JSCompiler_StaticMethods_handleRightKey$self$$, $attrs$$13$$.$row$), $JSCompiler_StaticMethods_handleRightKey$self$$.$_lastRowKey$ = $attrs$$13$$.$rowKey$) : $next$$inline_1991_nextTask$$2_task$$inline_1989_tdNode$$inline_1990$$ = $JSCompiler_StaticMethods_handleRightKey$self$$.$_currentTask$;
    }
    $JSCompiler_StaticMethods_handleRightKey$self$$.$deselectTask$($JSCompiler_StaticMethods_handleRightKey$self$$.$_currentTask$, "right");
    null != $next$$inline_1991_nextTask$$2_task$$inline_1989_tdNode$$inline_1990$$ && ($JSCompiler_StaticMethods_handleRightKey$self$$.$selectTask$($next$$inline_1991_nextTask$$2_task$$inline_1989_tdNode$$inline_1990$$, "right"), $JSCompiler_StaticMethods_handleRightKey$self$$.$populateAriaLabel$($next$$inline_1991_nextTask$$2_task$$inline_1989_tdNode$$inline_1990$$), $JSCompiler_StaticMethods_handleRightKey$self$$.$_currentTask$ = $next$$inline_1991_nextTask$$2_task$$inline_1989_tdNode$$inline_1990$$);
    $JSCompiler_StaticMethods_scrollInToView$$($JSCompiler_StaticMethods_handleRightKey$self$$, $JSCompiler_StaticMethods_handleRightKey$self$$.$_currentTask$);
  }
}
$AdfDhtmlGanttPeer$$.prototype.$contDrag$ = function $$AdfDhtmlGanttPeer$$$$$contDrag$$($evt$$164$$, $deltaX$$17$$, $deltaY$$17$$) {
  if (null != this.dragger) {
    if (this.$isMove$ && null != this.getComponent().getDragSource()) {
      if (this.$shouldCancelMoveForDnD$($evt$$164$$)) {
        this.$moveCancelledForDnD$ = !0;
        this.$cancelDrag$($evt$$164$$);
        AdfPage.PAGE.$stopDrag$();
        return;
      }
      this.$moveCancelledForDnD$ = !1;
    }
    $JSCompiler_StaticMethods_isEventOutsideChart$$(this, $evt$$164$$) || $JSCompiler_StaticMethods_isEventOutsideBrowser$$($evt$$164$$) ? this.$linking$ ? this.$cancelLinkDrag$($evt$$164$$) : this.$cancelDrag$($evt$$164$$) : $AdfDhtmlGanttPeer$$.superclass.$contDrag$.call(this, $evt$$164$$, $deltaX$$17$$, $deltaY$$17$$);
  }
};
$AdfDhtmlGanttPeer$$.prototype.contDrag = $AdfDhtmlGanttPeer$$.prototype.$contDrag$;
$AdfDhtmlGanttPeer$$.prototype.$endDrag$ = function $$AdfDhtmlGanttPeer$$$$$endDrag$$($evt$$165$$, $deltaX$$18$$, $deltaY$$18$$) {
  this.$isMove$ && null != this.getComponent().getDragSource() && (this.$moveElement$ = null, this.$moveTaskEnded$ = !0);
  this.$dragged$ && ($JSCompiler_StaticMethods_isEventOutsideChart$$(this, $evt$$165$$) || $JSCompiler_StaticMethods_isEventOutsideBrowser$$($evt$$165$$)) ? this.$linking$ ? this.$cancelLinkDrag$($evt$$165$$) : this.$cancelDrag$($evt$$165$$) : $AdfDhtmlGanttPeer$$.superclass.$endDrag$.call(this, $evt$$165$$, $deltaX$$18$$, $deltaY$$18$$);
};
$AdfDhtmlGanttPeer$$.prototype.endDrag = $AdfDhtmlGanttPeer$$.prototype.$endDrag$;
function $JSCompiler_StaticMethods_isEventOutsideChart$$($JSCompiler_StaticMethods_isEventOutsideChart$self$$, $event$$121$$) {
  var $treeTableDomElem$$2_treeTableId$$7$$ = $JSCompiler_StaticMethods_getChartTreeTableId$$($JSCompiler_StaticMethods_isEventOutsideChart$self$$), $treeTableDomElem$$2_treeTableId$$7$$ = AdfPage.PAGE.findComponent($treeTableDomElem$$2_treeTableId$$7$$).getPeer().getDomElement(), $agent$$27$$ = AdfAgent.AGENT;
  return $agent$$27$$.getPlatform() == AdfAgent.IE_PLATFORM && 8 >= $agent$$27$$.getVersion() ? !$agent$$27$$.pointInElementBounds($treeTableDomElem$$2_treeTableId$$7$$, $event$$121$$.clientX + $treeTableDomElem$$2_treeTableId$$7$$.scrollLeft, $event$$121$$.clientY + $treeTableDomElem$$2_treeTableId$$7$$.scrollTop) : !$agent$$27$$.pointInElementBounds($treeTableDomElem$$2_treeTableId$$7$$, $event$$121$$.pageX, $event$$121$$.pageY);
}
function $JSCompiler_StaticMethods_isEventOutsideBrowser$$($event$$122$$) {
  var $docBoundsElement$$ = document.documentElement;
  0 == $docBoundsElement$$.offsetHeight && ($docBoundsElement$$ = document.body);
  var $agent$$28$$ = AdfAgent.AGENT;
  return $agent$$28$$.getPlatform() == AdfAgent.IE_PLATFORM && 8 >= $agent$$28$$.getVersion() ? !$agent$$28$$.pointInElementBounds($docBoundsElement$$, $event$$122$$.clientX + $docBoundsElement$$.scrollLeft, $event$$122$$.clientY + $docBoundsElement$$.scrollTop) : !$agent$$28$$.pointInElementBounds($docBoundsElement$$, $event$$122$$.clientX, $event$$122$$.clientY);
}
function $JSCompiler_StaticMethods__isInsideChartTreeTable$$($JSCompiler_StaticMethods__isInsideChartTreeTable$self$$, $id$$194$$) {
  var $treeTableId$$9$$ = $JSCompiler_StaticMethods_getChartTreeTableId$$($JSCompiler_StaticMethods__isInsideChartTreeTable$self$$);
  return null != $id$$194$$ && $id$$194$$.length > $treeTableId$$9$$.length && $id$$194$$.substr(0, $treeTableId$$9$$.length) == $treeTableId$$9$$ && 0 < $id$$194$$.lastIndexOf(":");
}
function $JSCompiler_StaticMethods__focusFirstContentElement$$($JSCompiler_StaticMethods__focusFirstContentElement$self$$, $target$$104$$) {
  var $elem$$51_statusId$$1$$ = $JSCompiler_StaticMethods__focusFirstContentElement$self$$.$getFirstContentElement$($target$$104$$);
  null != $elem$$51_statusId$$1$$ && ($JSCompiler_StaticMethods__focusFirstContentElement$self$$.$handleContentFocus$($elem$$51_statusId$$1$$), $elem$$51_statusId$$1$$ = AdfDhtmlBaseGanttPeer.createSubId($JSCompiler_StaticMethods__focusFirstContentElement$self$$.getComponent().getClientId(), null, "ni"), AdfAgent.AGENT.getElementById($elem$$51_statusId$$1$$).textContent = $JSCompiler_StaticMethods_getResource$$($JSCompiler_StaticMethods__focusFirstContentElement$self$$, "nav_instr_to_data"));
}
$AdfDhtmlGanttPeer$$.prototype.$HandleComponentFocus$ = function $$AdfDhtmlGanttPeer$$$$$HandleComponentFocus$$($componentEvent$$60_target$$105$$) {
  $componentEvent$$60_target$$105$$ = $componentEvent$$60_target$$105$$.getNativeEventTarget();
  var $JSCompiler_temp$$51_id$$inline_2002_statusId$$2$$;
  if ($JSCompiler_temp$$51_id$$inline_2002_statusId$$2$$ = null != this.$_prevFocusElem$) {
    $JSCompiler_temp$$51_id$$inline_2002_statusId$$2$$ = this.$_prevFocusElem$.id;
    var $treeTableId$$inline_2003$$ = $JSCompiler_StaticMethods_getDataTreeTableId$$(this);
    $JSCompiler_temp$$51_id$$inline_2002_statusId$$2$$ = null != $JSCompiler_temp$$51_id$$inline_2002_statusId$$2$$ && $JSCompiler_temp$$51_id$$inline_2002_statusId$$2$$.length > $treeTableId$$inline_2003$$.length && $JSCompiler_temp$$51_id$$inline_2002_statusId$$2$$.substr(0, $treeTableId$$inline_2003$$.length) == $treeTableId$$inline_2003$$ && 0 < $JSCompiler_temp$$51_id$$inline_2002_statusId$$2$$.lastIndexOf(":");
  }
  $JSCompiler_temp$$51_id$$inline_2002_statusId$$2$$ ? $JSCompiler_StaticMethods__isInsideChartTreeTable$$(this, $componentEvent$$60_target$$105$$.id) ? $JSCompiler_StaticMethods__focusFirstContentElement$$(this, $componentEvent$$60_target$$105$$) : "TD" == $componentEvent$$60_target$$105$$.nodeName && null == $componentEvent$$60_target$$105$$.nextSibling && ($JSCompiler_temp$$51_id$$inline_2002_statusId$$2$$ = AdfDhtmlBaseGanttPeer.createSubId(this.getComponent().getClientId(), null, "ni"), AdfAgent.AGENT.getElementById($JSCompiler_temp$$51_id$$inline_2002_statusId$$2$$).textContent = 
  $JSCompiler_StaticMethods_getResource$$(this, "nav_instr_to_chart")) : "TD" == $componentEvent$$60_target$$105$$.nodeName && null != $componentEvent$$60_target$$105$$.id && 5 < $componentEvent$$60_target$$105$$.id.length && ":tsbc" == $componentEvent$$60_target$$105$$.id.substr($componentEvent$$60_target$$105$$.id.length - 5) && $JSCompiler_StaticMethods__isInsideChartTreeTable$$(this, $componentEvent$$60_target$$105$$.id) && this.$m_rowNavKeyPressed$ && (this.$m_rowNavKeyPressed$ = !1, null != 
  this.$_currentTask$ ? this.$_currentTask$.focus() : $JSCompiler_StaticMethods__focusFirstContentElement$$(this, $componentEvent$$60_target$$105$$));
  this.$_prevFocusElem$ = $componentEvent$$60_target$$105$$;
};
$goog$exportSymbol$$("AdfDhtmlGanttPeer.prototype.HandleComponentFocus", $AdfDhtmlGanttPeer$$.prototype.$HandleComponentFocus$);
$AdfDhtmlGanttPeer$$.prototype.$handleContentFocus$ = function $$AdfDhtmlGanttPeer$$$$$handleContentFocus$$($elem$$52$$) {
  this.$populateAriaLabel$($elem$$52$$);
};
