var AdfDhtmlPivotTablePeer = AdfRichUIPeer.createPeerClass(AdfRichUIPeer, "AdfDhtmlPivotTablePeer", !1);
$goog$exportSymbol$$("AdfDhtmlPivotTablePeer", AdfDhtmlPivotTablePeer);
AdfPage.PAGE.getLookAndFeel().registerPeerConstructor("oracle.dss.adf.pivotTable.PivotTable", "AdfDhtmlPivotTablePeer");
AdfDhtmlPivotTablePeer.InitSubclass = function $AdfDhtmlPivotTablePeer$InitSubclass$() {
  AdfRichUIPeer.addDomEventHandlers(this, "change");
  AdfRichUIPeer.addComponentEventHandlers(this, AdfUIInputEvent.CLICK_EVENT_TYPE, AdfUIInputEvent.MOUSE_DOWN_EVENT_TYPE, AdfUIInputEvent.KEY_DOWN_EVENT_TYPE, AdfUIInputEvent.KEY_UP_EVENT_TYPE, AdfComponentEvent.FOCUS_EVENT_TYPE, AdfComponentEvent.BLUR_EVENT_TYPE, AdfUIInputEvent.DOUBLE_CLICK_EVENT_TYPE, AdfUIInputEvent.MOUSE_OUT_EVENT_TYPE, AdfUIInputEvent.MOUSE_IN_EVENT_TYPE, AdfComponentEvent.CONTEXT_MENU_EVENT_TYPE, AdfActionEvent.ACTION_EVENT_TYPE, AdfDialogEvent.EVENT_TYPE, AdfPopupOpeningEvent.POPUP_OPENING_EVENT_TYPE, 
  AdfPopupClosedEvent.POPUP_CLOSED_EVENT_TYPE);
  AdfObject.ensureClassInitialization(AdfDhtmlPivotTablePeer);
  AdfRichUIPeer.addSuppressedPPRAttributes(this, "splitRow");
  AdfRichUIPeer.addSuppressedPPRAttributes(this, "splitColumn");
  AdfRichUIPeer.addSuppressedPPRAttributes(this, "startRow");
  AdfRichUIPeer.addSuppressedPPRAttributes(this, "startColumn");
  AdfRichUIPeer.addSuppressedPPRAttributes(this, "secondStartRow");
  AdfRichUIPeer.addSuppressedPPRAttributes(this, "secondStartColumn");
  AdfRichUIPeer.addSuppressedPPRAttributes(this, "startRowPixel");
  AdfRichUIPeer.addSuppressedPPRAttributes(this, "startColumnPixel");
  AdfRichUIPeer.addSuppressedPPRAttributes(this, "secondStartRowPixel");
  AdfRichUIPeer.addSuppressedPPRAttributes(this, "secondStartColumnPixel");
  AdfRichUIPeer.addSuppressedPPRAttributes(this, "rowHeaderStartLayer");
  AdfRichUIPeer.addSuppressedPPRAttributes(this, "columnHeaderStartLayer");
  AdfRichUIPeer.addSuppressedPPRAttributes(this, "rowHeaderStartPixel");
  AdfRichUIPeer.addSuppressedPPRAttributes(this, "columnHeaderStartPixel");
  AdfRichUIPeer.addSuppressedPPRAttributes(this, "_sizeOverrides");
  AdfRichUIPeer.addSuppressedPPRAttributes(this, "selection");
  AdfRichUIPeer.addSuppressedPPRAttributes(this, "activeCellKey");
  this.$DATABODY_COMPONENT$ = "2";
  this.$PARTIAL$ = "partial";
  this.$STATE_NORMAL$ = 0;
  this.$STATE_CONTEXT_MENU$ = 1;
  this.$STATE_DIALOG$ = 2;
  this.$STATE_STAMP_POPUP$ = 3;
  this.$PIVOT_BEFOREAFTER_MARGIN$ = 5;
  this.$COLUMN_RESIZE_MARGIN$ = 3;
  this.$ROW_RESIZE_MARGIN$ = 1;
  AdfPivotTableUtils.$isMobileTouchDevice$() ? this.$MIN_COL_HEADER_HEIGHT$ = this.$MIN_ROW_HEADER_WIDTH$ = this.$MIN_ROW_HEIGHT$ = this.$MIN_COLUMN_WIDTH$ = 22 : this.$MIN_COL_HEADER_HEIGHT$ = this.$MIN_ROW_HEADER_WIDTH$ = this.$MIN_ROW_HEIGHT$ = this.$MIN_COLUMN_WIDTH$ = 10;
  this.$ROW_HEADER_IMAGE_WIDTH$ = 25;
  this.$_INPUT_REGEXP$ = /^INPUT|SELECT|OPTION|BUTTON|^A\b|TEXTAREA/;
  this.$_DIGIT_REGEXP$ = /\d+/g;
  this.$_WHITESPACE_REGEXP$ = /\s+/g;
  this.$ORIGINAL_COLOR$ = "_oc";
  this.$BACKGROUND_COLOR_NEEDS_RESTORING$ = "_bc";
  this.$_NAMED_COLOR_MAP$ = {$ALICEBLUE$:"#F0F8FF", $ANTIQUEWHITE$:"#FAEBD7", $AQUA$:"#00FFFF", $AQUAMARINE$:"#7FFFD4", $AZURE$:"#F0FFFF", $BEIGE$:"#F5F5DC", $BISQUE$:"#FFE4C4", $BLACK$:"#000000", $BLANCHEDALMOND$:"#FFEBCD", $BLUE$:"#0000FF", $BLUEVIOLET$:"#8A2BE2", $BROWN$:"#A52A2A", $BURLYWOOD$:"#DEB887", $CADETBLUE$:"#5F9EA0", $CHARTREUSE$:"#7FFF00", $CHOCOLATE$:"#D2691E", $CORAL$:"#FF7F50", $CORNFLOWERBLUE$:"#6495ED", $CORNSILK$:"#FFF8DC", $CRIMSON$:"#DC143C", $CYAN$:"#00FFFF", $DARKBLUE$:"#00008B", 
  $DARKCYAN$:"#008B8B", $DARKGOLDENROD$:"#B8860B", $DARKGRAY$:"#A9A9A9", $DARKGREEN$:"#006400", $DARKKHAKI$:"#BDB76B", $DARKMAGENTA$:"#8B008B", $DARKOLIVEGREEN$:"#556B2F", $DARKORANGE$:"#FF8C00", $DARKORCHID$:"#9932CC", $DARKRED$:"#8B0000", $DARKSALMON$:"#E9967A", $DARKSEAGREEN$:"#8FBC8F", $DARKSLATEBLUE$:"#483D8B", $DARKSLATEGRAY$:"#2F4F4F", $DARKTURQUOISE$:"#00CED1", $DARKVIOLET$:"#9400D3", $DEEPPINK$:"#FF1493", $DEEPSKYBLUE$:"#00BFFF", $DIMGRAY$:"#696969", $DODGERBLUE$:"#1E90FF", $FIREBRICK$:"#B22222", 
  $FLORALWHITE$:"#FFFAF0", $FORESTGREEN$:"#228B22", $FUCHSIA$:"#FF00FF", $GAINSBORO$:"#DCDCDC", $GHOSTWHITE$:"#F8F8FF", $GOLD$:"#FFD700", $GOLDENROD$:"#DAA520", $GRAY$:"#808080", $GREEN$:"#008000", $GREENYELLOW$:"#ADFF2F", $HONEYDEW$:"#F0FFF0", $HOTPINK$:"#FF69B4", $INDIANRED$:"#CD5C5C", $INDIGO$:"#4B0082", $IVORY$:"#FFFFF0", $KHAKI$:"#F0E68C", $LAVENDER$:"#E6E6FA", $LAVENDERBLUSH$:"#FFF0F5", $LAWNGREEN$:"#7CFC00", $LEMONCHIFFON$:"#FFFACD", $LIGHTBLUE$:"#ADD8E6", $LIGHTCORAL$:"#F08080", $LIGHTCYAN$:"#E0FFFF", 
  $LIGHTGOLDENRODYELLOW$:"#FAFAD2", $LIGHTGREY$:"#D3D3D3", $LIGHTGREEN$:"#90EE90", $LIGHTPINK$:"#FFB6C1", $LIGHTSALMON$:"#FFA07A", $LIGHTSEAGREEN$:"#20B2AA", $LIGHTSKYBLUE$:"#87CEFA", $LIGHTSLATEGRAY$:"#778899", $LIGHTSTEELBLUE$:"#B0C4DE", $LIGHTYELLOW$:"#FFFFE0", $LIME$:"#00FF00", $LIMEGREEN$:"#32CD32", $LINEN$:"#FAF0E6", $MAGENTA$:"#FF00FF", $MAROON$:"#800000", $MEDIUMAQUAMARINE$:"#66CDAA", $MEDIUMBLUE$:"#0000CD", $MEDIUMORCHID$:"#BA55D3", $MEDIUMPURPLE$:"#9370D8", $MEDIUMSEAGREEN$:"#3CB371", $MEDIUMSLATEBLUE$:"#7B68EE", 
  $MEDIUMSPRINGGREEN$:"#00FA9A", $MEDIUMTURQUOISE$:"#48D1CC", $MEDIUMVIOLETRED$:"#C71585", $MIDNIGHTBLUE$:"#191970", $MINTCREAM$:"#F5FFFA", $MISTYROSE$:"#FFE4E1", $MOCCASIN$:"#FFE4B5", $NAVAJOWHITE$:"#FFDEAD", $NAVY$:"#000080", $OLDLACE$:"#FDF5E6", $OLIVE$:"#808000", $OLIVEDRAB$:"#6B8E23", $ORANGE$:"#FFA500", $ORANGERED$:"#FF4500", $ORCHID$:"#DA70D6", $PALEGOLDENROD$:"#EEE8AA", $PALEGREEN$:"#98FB98", $PALETURQUOISE$:"#AFEEEE", $PALEVIOLETRED$:"#D87093", $PAPAYAWHIP$:"#FFEFD5", $PEACHPUFF$:"#FFDAB9", 
  $PERU$:"#CD853F", $PINK$:"#FFC0CB", $PLUM$:"#DDA0DD", $POWDERBLUE$:"#B0E0E6", $PURPLE$:"#800080", $RED$:"#FF0000", $ROSYBROWN$:"#BC8F8F", $ROYALBLUE$:"#4169E1", $SADDLEBROWN$:"#8B4513", $SALMON$:"#FA8072", $SANDYBROWN$:"#F4A460", $SEAGREEN$:"#2E8B57", $SEASHELL$:"#FFF5EE", $SIENNA$:"#A0522D", $SILVER$:"#C0C0C0", $SKYBLUE$:"#87CEEB", $SLATEBLUE$:"#6A5ACD", $SLATEGRAY$:"#708090", $SNOW$:"#FFFAFA", $SPRINGGREEN$:"#00FF7F", $STEELBLUE$:"#4682B4", $TAN$:"#D2B48C", $TEAL$:"#008080", $THISTLE$:"#D8BFD8", 
  $TOMATO$:"#FF6347", $TURQUOISE$:"#40E0D0", $VIOLET$:"#EE82EE", $WHEAT$:"#F5DEB3", $WHITE$:"#FFFFFF", $WHITESMOKE$:"#F5F5F5", $YELLOW$:"#FFFF00", $YELLOWGREEN$:"#9ACD32"};
  this.$_SELECT_RANGE$ = [["colNav0", "colNav1"], ["rowNav0", "rowNav1"]];
  this.$_CHOICE_ID_SUFFIX$ = "c";
  this.$_PREV_LINK_ID_SUFFIX$ = "p";
  this.$_NEXT_LINK_ID_SUFFIX$ = "n";
  this.$_ADA_CLEAR_SELECTION_LINK_ID$ = "ClearSelectionLink";
  this.$_ADA_TOGGLE_SELECTION_CHECKBOXES_LINK_ID$ = "ToggleCheckboxesLink";
  this.$_ADA_SELECTION_CHECKBOX_ID$ = "SelectionCheckbox";
  this.$EMPTY_TEXT_ID$ = "et";
  this.$NAV_LAYER_DECREASE$ = 0;
  this.$NAV_LAYER_INCREASE$ = 1;
  this.$NAV_SLICE_DECREASE$ = 2;
  this.$NAV_SLICE_INCREASE$ = 3;
  this.$_SELECTION_DIV_ID$ = "SelectionDiv";
  this.$HIGHLIGHTING_NORMAL$ = 0;
  this.$HIGHLIGHTING_SELECTED$ = 1;
  this.$HIGHLIGHTING_FOCUSED$ = 2;
  this.$HIGHLIGHTING_FOCUSED_AND_SELECTED$ = 3;
  this.$CONTEXT_MENU_POPUP_ID$ = "MainContextMenuPopup";
  this.$BODY_CONTEXT_MENU_POPUP_ID$ = "BodyContextMenuPopup";
  this.$HEADER_SORT_ASCENDING_MENU_ITEM_ID$ = "HeaderSortAscendingMenuItem";
  this.$HEADER_SORT_DESCENDING_MENU_ITEM_ID$ = "HeaderSortDescendingMenuItem";
  this.$DATA_SORT_ASCENDING_MENU_ITEM_ID$ = "DataSortAscendingMenuItem";
  this.$DATA_SORT_DESCENDING_MENU_ITEM_ID$ = "DataSortDescendingMenuItem";
  this.$RESIZE_HEIGHT_MENU_ITEM_ID$ = "ResizeHeightMenuItem";
  this.$RESIZE_WIDTH_MENU_ITEM_ID$ = "ResizeWidthMenuItem";
  this.$SPLIT_PANES_MENU_ITEM_ID$ = "SplitPanesMenuItem";
  this.$RESIZE_DIALOG_POPUP_ID$ = "ResizeDialogPopup";
  this.$RESIZE_DIALOG_ID$ = "ResizeDialog";
  this.$RESIZE_DIALOG_PLM_ID$ = "ResizeDialogPlm";
  this.$RESIZE_DIALOG_SPINNER_ID$ = "ResizeDialogSpin";
  this.$_SORT_INDICATOR$ = "si";
  this.$_SORT_ASCENDING$ = "_asc";
  this.$_SORT_DESCENDING$ = "_desc";
  this.$_SORTED_TYPE$ = "_sorted";
  this.$_SORTED_ASCENDING$ = "1";
  this.$_SORTED_DESCENDING$ = "2";
  this.$_NAMING_SEP$ = ":";
  this.$_isNavigationMode$ = !1;
  this.$_NAVBAR_PREV$ = [[], []];
  this.$_NAVBAR_PREV$[0][0] = "nb_pv_00";
  this.$_NAVBAR_PREV$[0][1] = "nb_pv_01";
  this.$_NAVBAR_PREV$[1][0] = "nb_pv_10";
  this.$_NAVBAR_PREV$[1][1] = "nb_pv_11";
  this.$_NAVBAR_FIRST$ = [[], []];
  this.$_NAVBAR_FIRST$[0][0] = "nb_fr_00";
  this.$_NAVBAR_FIRST$[0][1] = "nb_fr_01";
  this.$_NAVBAR_FIRST$[1][0] = "nb_fr_10";
  this.$_NAVBAR_FIRST$[1][1] = "nb_fr_11";
  this.$_NAVBAR_NEXT$ = [[], []];
  this.$_NAVBAR_NEXT$[0][0] = "nb_nx_00";
  this.$_NAVBAR_NEXT$[0][1] = "nb_nx_01";
  this.$_NAVBAR_NEXT$[1][0] = "nb_nx_10";
  this.$_NAVBAR_NEXT$[1][1] = "nb_nx_11";
  this.$_NAVBAR_LAST$ = [[], []];
  this.$_NAVBAR_LAST$[0][0] = "nb_ls_00";
  this.$_NAVBAR_LAST$[0][1] = "nb_ls_01";
  this.$_NAVBAR_LAST$[1][0] = "nb_ls_10";
  this.$_NAVBAR_LAST$[1][1] = "nb_ls_11";
};
$goog$exportSymbol$$("AdfDhtmlPivotTablePeer.InitSubclass", AdfDhtmlPivotTablePeer.InitSubclass);
function $JSCompiler_StaticMethods__getUpdateOnScrollDelay$$($JSCompiler_StaticMethods__getUpdateOnScrollDelay$self_component$$466$$) {
  var $delay$$1$$ = $JSCompiler_StaticMethods__getUpdateOnScrollDelay$self_component$$466$$.getDomElement().getAttribute("_uosd");
  return null != $delay$$1$$ && ($JSCompiler_StaticMethods__getUpdateOnScrollDelay$self_component$$466$$ = $JSCompiler_StaticMethods__getUpdateOnScrollDelay$self_component$$466$$.getComponent(), -1 == $JSCompiler_StaticMethods__getUpdateOnScrollDelay$self_component$$466$$.getProperty("splitRow") && -1 == $JSCompiler_StaticMethods__getUpdateOnScrollDelay$self_component$$466$$.getProperty("splitColumn")) ? parseInt($delay$$1$$, 10) : 0;
}
function $JSCompiler_StaticMethods__isCellHeightFixed$$($JSCompiler_StaticMethods__isCellHeightFixed$self$$) {
  return "initial" === $JSCompiler_StaticMethods__isCellHeightFixed$self$$.getDomElement().getAttribute("_chb") ? !0 : !1;
}
function $JSCompiler_StaticMethods_preserveEditingBehavior$$($JSCompiler_StaticMethods_preserveEditingBehavior$self$$) {
  return "true" == $JSCompiler_StaticMethods_preserveEditingBehavior$self$$.getDomElement().getAttribute("_old_edit") ? !0 : !1;
}
function $JSCompiler_StaticMethods__isReadOnly$$($JSCompiler_StaticMethods__isReadOnly$self$$) {
  return "true" == $JSCompiler_StaticMethods__isReadOnly$self$$.getDomElement().getAttribute("_readonly") ? !0 : !1;
}
function $JSCompiler_StaticMethods__isClickToEditAll$$($JSCompiler_StaticMethods__isClickToEditAll$self$$) {
  return "true" == $JSCompiler_StaticMethods__isClickToEditAll$self$$.getDomElement().getAttribute("_cteAll") ? !0 : !1;
}
AdfDhtmlPivotTablePeer.prototype.$HandleComponentFocus$ = function $AdfDhtmlPivotTablePeer$$$HandleComponentFocus$$($componentEvent$$81_domEvent$$31_eventTarget$$4$$) {
  if (!this.$_isAda$ && 0 != this.$_ptUtils$.$_rowExtent$ && 0 != this.$_ptUtils$.$_colExtent$) {
    if (this.$_serverBusy$ && AdfAgent.AGENT.getPlatform() == AdfAgent.IE_PLATFORM) {
      AdfPage.PAGE.getGlassPane().focus();
    } else {
      if (this.$_activeCellKeySetFromServer$) {
        var $attrs$$15_cellIndex$$1_cellKey$$1$$ = $JSCompiler_StaticMethods__getActiveCellKey$$(this);
        null != $attrs$$15_cellIndex$$1_cellKey$$1$$ && null == this.$_focusCellIndex$ && ($attrs$$15_cellIndex$$1_cellKey$$1$$ = $JSCompiler_StaticMethods__getDataCellIndexFromKey$$($attrs$$15_cellIndex$$1_cellKey$$1$$), $JSCompiler_StaticMethods_selectAndFocusDataCell$$(this, $attrs$$15_cellIndex$$1_cellKey$$1$$), this.$_focusCellNeedsInit$ = !1);
      } else {
        this.$_focusCellNeedsInit$ ? $JSCompiler_StaticMethods_initializeFocusCell$$(this) : $JSCompiler_StaticMethods_highlightFocusCell$$(this);
      }
      $JSCompiler_StaticMethods_preserveEditingBehavior$$(this) || ($componentEvent$$81_domEvent$$31_eventTarget$$4$$ = $componentEvent$$81_domEvent$$31_eventTarget$$4$$.getNativeEvent(), $componentEvent$$81_domEvent$$31_eventTarget$$4$$ = AdfAgent.AGENT.getEventTarget($componentEvent$$81_domEvent$$31_eventTarget$$4$$), $attrs$$15_cellIndex$$1_cellKey$$1$$ = $JSCompiler_StaticMethods__getDataCellKeyAndCell$$(this, $componentEvent$$81_domEvent$$31_eventTarget$$4$$), null != $attrs$$15_cellIndex$$1_cellKey$$1$$ && 
      null != $attrs$$15_cellIndex$$1_cellKey$$1$$[0] && null != $attrs$$15_cellIndex$$1_cellKey$$1$$[1] && $attrs$$15_cellIndex$$1_cellKey$$1$$[1].id && void 0 == $componentEvent$$81_domEvent$$31_eventTarget$$4$$.$_afrOldValue$ && AdfDhtmlPivotTablePeer.$_saveFocusCellValue$($componentEvent$$81_domEvent$$31_eventTarget$$4$$));
    }
  }
};
$goog$exportSymbol$$("AdfDhtmlPivotTablePeer.prototype.HandleComponentFocus", AdfDhtmlPivotTablePeer.prototype.$HandleComponentFocus$);
AdfDhtmlPivotTablePeer.prototype.$HandleComponentBlur$ = function $AdfDhtmlPivotTablePeer$$$HandleComponentBlur$$() {
  this.$_isAda$ || 0 != this.$_codeExecutionCounter$ || (AdfPivotTableUtils.$isMobileTouchDevice$() && $JSCompiler_StaticMethods_hidePivotHandle$$(this), $JSCompiler_StaticMethods_highlightFocusCell$$(this, !0), $JSCompiler_StaticMethods_endKeyboardPivoting$$(this, !0));
};
$goog$exportSymbol$$("AdfDhtmlPivotTablePeer.prototype.HandleComponentBlur", AdfDhtmlPivotTablePeer.prototype.$HandleComponentBlur$);
AdfDhtmlPivotTablePeer.prototype._displayContextMenuAfterEdit = function $AdfDhtmlPivotTablePeer$$_displayContextMenuAfterEdit$() {
  $JSCompiler_StaticMethods__displayContextMenu$$(this, this.$domEventForContextMenuAfterEdit$, this.$domEventForContextMenuAfterEdit$.flag);
  this.$domEventForContextMenuAfterEdit$ = null;
};
function $JSCompiler_StaticMethods__dismissEditAndDisplayContextMenu$$($JSCompiler_StaticMethods__dismissEditAndDisplayContextMenu$self$$, $componentEvent$$83$$, $isBodyContextMenu$$) {
  var $domEvent$$32$$ = $componentEvent$$83$$.getNativeEvent();
  null != $JSCompiler_StaticMethods__dismissEditAndDisplayContextMenu$self$$.$_activeCell$ ? ($JSCompiler_StaticMethods__processDismissCTE$$($JSCompiler_StaticMethods__dismissEditAndDisplayContextMenu$self$$, $componentEvent$$83$$), AdfAgent.AGENT.preventDefault($domEvent$$32$$), $domEvent$$32$$.flag = $isBodyContextMenu$$, $JSCompiler_StaticMethods__dismissEditAndDisplayContextMenu$self$$.$domEventForContextMenuAfterEdit$ = $domEvent$$32$$) : $JSCompiler_StaticMethods__displayContextMenu$$($JSCompiler_StaticMethods__dismissEditAndDisplayContextMenu$self$$, 
  $domEvent$$32$$, $isBodyContextMenu$$);
}
AdfDhtmlPivotTablePeer.prototype.$HandleComponentContextMenu$ = function $AdfDhtmlPivotTablePeer$$$HandleComponentContextMenu$$($componentEvent$$84$$) {
  if (!this.$_attachmentMode$ && $JSCompiler_StaticMethods_isSelectionUiEnabled$$(this) && this.$_ptState$ != AdfDhtmlPivotTablePeer.$STATE_DIALOG$ && this.$_ptState$ != AdfDhtmlPivotTablePeer.$STATE_STAMP_POPUP$ && !this.$_isAda$) {
    var $agent$$31_headerCellIndex$$ = AdfAgent.AGENT, $domEvent$$33$$ = $componentEvent$$84$$.getNativeEvent(), $eventTarget$$5$$ = $agent$$31_headerCellIndex$$.getEventTarget($domEvent$$33$$);
    if (!$JSCompiler_StaticMethods__isInputElement$$(this, $eventTarget$$5$$)) {
      if ($JSCompiler_StaticMethods_isClientValidationError$$(this, $eventTarget$$5$$)) {
        $agent$$31_headerCellIndex$$.preventDefault($domEvent$$33$$);
      } else {
        this.getDomElement().focus();
        var $cell$$6_context$$30$$ = $JSCompiler_StaticMethods__getMouseContext$$(this, $domEvent$$33$$);
        if ($cell$$6_context$$30$$.$headerContext$ && $cell$$6_context$$30$$.$headerContext$.cell && !$cell$$6_context$$30$$.$headerContext$.$isEmptyEdge$) {
          $agent$$31_headerCellIndex$$ = $JSCompiler_StaticMethods_newHeaderCellIndexWithEdgeFromCell$$($cell$$6_context$$30$$.$headerContext$.cell), this.isSelected($agent$$31_headerCellIndex$$) || $JSCompiler_StaticMethods_selectAndFocusHeaderCell$$(this, $agent$$31_headerCellIndex$$), $JSCompiler_StaticMethods__dismissEditAndDisplayContextMenu$$(this, $componentEvent$$84$$, !1);
        } else {
          if ($cell$$6_context$$30$$.$databodyContext$) {
            var $cell$$6_context$$30$$ = $cell$$6_context$$30$$.$databodyContext$.cell, $dataCellIndex$$ = $JSCompiler_StaticMethods_newDataCellIndexFromCell$$(this, $cell$$6_context$$30$$), $selectedStyleClass$$ = this.$_getStyleClass$(AdfPivotTableUtils.$DATABODY_CELL_SELECTED_STYLE$);
            $JSCompiler_StaticMethods_preserveEditingBehavior$$(this) ? (this.isSelected($dataCellIndex$$) || $AdfDhtmlCommonUtils$$.$containsCSSClassName$($cell$$6_context$$30$$, $selectedStyleClass$$) || $JSCompiler_StaticMethods_selectAndFocusDataCell$$(this, $dataCellIndex$$), $JSCompiler_StaticMethods__dismissEditAndDisplayContextMenu$$(this, $componentEvent$$84$$, !1)) : $JSCompiler_StaticMethods_isInHeaderSelection$$(this, $dataCellIndex$$, null, !0) || $JSCompiler_StaticMethods_isMultipleDatabodyCellsSelected$$(this) && 
            this.isSelected($dataCellIndex$$) ? $JSCompiler_StaticMethods__dismissEditAndDisplayContextMenu$$(this, $componentEvent$$84$$, !1) : this.$_activeCell$ == $cell$$6_context$$30$$ ? $JSCompiler_StaticMethods__dismissEditAndDisplayContextMenu$$(this, $componentEvent$$84$$, !1) : (this.isSelected($dataCellIndex$$) || $AdfDhtmlCommonUtils$$.$containsCSSClassName$($cell$$6_context$$30$$, $selectedStyleClass$$) || $JSCompiler_StaticMethods_selectAndFocusDataCell$$(this, $dataCellIndex$$), $agent$$31_headerCellIndex$$.preventDefault($domEvent$$33$$), 
            $JSCompiler_StaticMethods__isReadOnly$$(this) ? $JSCompiler_StaticMethods__dismissEditAndDisplayContextMenu$$(this, $componentEvent$$84$$, !1) : $JSCompiler_StaticMethods__isClickToEditAll$$(this) ? ($JSCompiler_StaticMethods__dismissPreviousActiveCell$$(this, $cell$$6_context$$30$$, null, null), this.$_cancelDismiss$ = !1, this.$_dismissClickToEdit$(!0), $JSCompiler_StaticMethods__displayContextMenu$$(this, $domEvent$$33$$, !1)) : (this.$domEventForContextMenuAfterEdit$ = $agent$$31_headerCellIndex$$.copyEvent($domEvent$$33$$), 
            $JSCompiler_StaticMethods_doHandleClickToEdit$$(this, $componentEvent$$84$$, $eventTarget$$5$$)));
          } else {
            $JSCompiler_StaticMethods__dismissEditAndDisplayContextMenu$$(this, $componentEvent$$84$$, !0);
          }
        }
      }
    }
  }
};
$goog$exportSymbol$$("AdfDhtmlPivotTablePeer.prototype.HandleComponentContextMenu", AdfDhtmlPivotTablePeer.prototype.$HandleComponentContextMenu$);
function $JSCompiler_StaticMethods__displayContextMenu$$($JSCompiler_StaticMethods__displayContextMenu$self_agent$$32$$, $domEvent$$34$$, $JSCompiler_temp$$69_isBodyContextMenu$$1_popupId$$inline_2741_popupId$$inline_2744$$, $element$$67$$) {
  $JSCompiler_StaticMethods__displayContextMenu$self_agent$$32$$.$_ptState$ = AdfDhtmlPivotTablePeer.$STATE_CONTEXT_MENU$;
  $JSCompiler_StaticMethods__displayContextMenu$self_agent$$32$$.$selectionChangedSinceLastCmRequest$ = !1;
  var $component$$inline_2733_menuFindContainer$$inline_2737$$ = $JSCompiler_StaticMethods__displayContextMenu$self_agent$$32$$.getComponent(), $isLegacy$$inline_2734$$ = !1, $agent$$inline_2738_menuId$$inline_2735$$ = null;
  if ($agent$$inline_2738_menuId$$inline_2735$$ = $JSCompiler_temp$$69_isBodyContextMenu$$1_popupId$$inline_2741_popupId$$inline_2744$$ ? $component$$inline_2733_menuFindContainer$$inline_2737$$.getBodyContextMenuId ? $component$$inline_2733_menuFindContainer$$inline_2737$$.getBodyContextMenuId() : null : $component$$inline_2733_menuFindContainer$$inline_2737$$.getContextMenuId ? $component$$inline_2733_menuFindContainer$$inline_2737$$.getContextMenuId() : null) {
    var $isLegacy$$inline_2734$$ = !0, $popup$$inline_2736$$ = $component$$inline_2733_menuFindContainer$$inline_2737$$.findComponent($agent$$inline_2738_menuId$$inline_2735$$);
    null == $popup$$inline_2736$$ && ($popup$$inline_2736$$ = AdfPage.PAGE.findComponent($agent$$inline_2738_menuId$$inline_2735$$), $component$$inline_2733_menuFindContainer$$inline_2737$$ = null);
    null != $popup$$inline_2736$$ && ($popup$$inline_2736$$.removeEventListener("popupClosed", $JSCompiler_StaticMethods__displayContextMenu$self_agent$$32$$.$handleLegacyContextMenuClosing$, null), $popup$$inline_2736$$.addEventListener("popupClosed", $JSCompiler_StaticMethods__displayContextMenu$self_agent$$32$$.$handleLegacyContextMenuClosing$, null));
    $JSCompiler_StaticMethods__displayContextMenu$self_agent$$32$$.showContextMenu($domEvent$$34$$, $agent$$inline_2738_menuId$$inline_2735$$, $component$$inline_2733_menuFindContainer$$inline_2737$$, $element$$67$$);
    $agent$$inline_2738_menuId$$inline_2735$$ = AdfAgent.AGENT;
    $agent$$inline_2738_menuId$$inline_2735$$.stopPropagation($domEvent$$34$$);
    $agent$$inline_2738_menuId$$inline_2735$$.preventDefault($domEvent$$34$$);
  }
  $isLegacy$$inline_2734$$ || ($JSCompiler_temp$$69_isBodyContextMenu$$1_popupId$$inline_2741_popupId$$inline_2744$$ ? ($JSCompiler_temp$$69_isBodyContextMenu$$1_popupId$$inline_2741_popupId$$inline_2744$$ = $JSCompiler_StaticMethods__displayContextMenu$self_agent$$32$$.getDomElement().getAttribute("_cbcm"), $JSCompiler_temp$$69_isBodyContextMenu$$1_popupId$$inline_2741_popupId$$inline_2744$$ = null == $JSCompiler_temp$$69_isBodyContextMenu$$1_popupId$$inline_2741_popupId$$inline_2744$$ ? AdfDhtmlPivotTablePeer.$BODY_CONTEXT_MENU_POPUP_ID$ : 
  $JSCompiler_temp$$69_isBodyContextMenu$$1_popupId$$inline_2741_popupId$$inline_2744$$) : ($JSCompiler_temp$$69_isBodyContextMenu$$1_popupId$$inline_2741_popupId$$inline_2744$$ = $JSCompiler_StaticMethods__displayContextMenu$self_agent$$32$$.getDomElement().getAttribute("_ccm"), $JSCompiler_temp$$69_isBodyContextMenu$$1_popupId$$inline_2741_popupId$$inline_2744$$ = null == $JSCompiler_temp$$69_isBodyContextMenu$$1_popupId$$inline_2741_popupId$$inline_2744$$ ? AdfDhtmlPivotTablePeer.$CONTEXT_MENU_POPUP_ID$ : 
  $JSCompiler_temp$$69_isBodyContextMenu$$1_popupId$$inline_2741_popupId$$inline_2744$$), $JSCompiler_StaticMethods__displayContextMenu$self_agent$$32$$.showContextMenu($domEvent$$34$$, $JSCompiler_temp$$69_isBodyContextMenu$$1_popupId$$inline_2741_popupId$$inline_2744$$, $JSCompiler_StaticMethods__displayContextMenu$self_agent$$32$$.getComponent(), $element$$67$$), $JSCompiler_StaticMethods__displayContextMenu$self_agent$$32$$ = AdfAgent.AGENT, $JSCompiler_StaticMethods__displayContextMenu$self_agent$$32$$.stopPropagation($domEvent$$34$$), 
  $JSCompiler_StaticMethods__displayContextMenu$self_agent$$32$$.preventDefault($domEvent$$34$$));
}
AdfDhtmlPivotTablePeer.prototype.$handleLegacyContextMenuClosing$ = function $AdfDhtmlPivotTablePeer$$$handleLegacyContextMenuClosing$$() {
  this.$HandleComponentPopupClosed$(null);
};
AdfDhtmlPivotTablePeer.prototype.HandleComponentAction = function $AdfDhtmlPivotTablePeer$$HandleComponentAction$($componentEvent$$85$$) {
  var $clientId$$100_component$$inline_2747_source$$178$$ = $componentEvent$$85$$.getSource();
  if (!$clientId$$100_component$$inline_2747_source$$178$$.getDisabled()) {
    if ($clientId$$100_component$$inline_2747_source$$178$$ = $clientId$$100_component$$inline_2747_source$$178$$.getClientId(), -1 != $clientId$$100_component$$inline_2747_source$$178$$.indexOf(AdfDhtmlPivotTablePeer.$DATA_SORT_ASCENDING_MENU_ITEM_ID$)) {
      $JSCompiler_StaticMethods_handleSortContextMenuAction$$(this, !0, !1), $componentEvent$$85$$.cancel();
    } else {
      if (-1 != $clientId$$100_component$$inline_2747_source$$178$$.indexOf(AdfDhtmlPivotTablePeer.$DATA_SORT_DESCENDING_MENU_ITEM_ID$)) {
        $JSCompiler_StaticMethods_handleSortContextMenuAction$$(this, !1, !1), $componentEvent$$85$$.cancel();
      } else {
        if (-1 != $clientId$$100_component$$inline_2747_source$$178$$.indexOf(AdfDhtmlPivotTablePeer.$HEADER_SORT_ASCENDING_MENU_ITEM_ID$)) {
          $JSCompiler_StaticMethods_handleSortContextMenuAction$$(this, !0, !0), $componentEvent$$85$$.cancel();
        } else {
          if (-1 != $clientId$$100_component$$inline_2747_source$$178$$.indexOf(AdfDhtmlPivotTablePeer.$HEADER_SORT_DESCENDING_MENU_ITEM_ID$)) {
            $JSCompiler_StaticMethods_handleSortContextMenuAction$$(this, !1, !0), $componentEvent$$85$$.cancel();
          } else {
            if (-1 != $clientId$$100_component$$inline_2747_source$$178$$.indexOf(AdfDhtmlPivotTablePeer.$RESIZE_HEIGHT_MENU_ITEM_ID$)) {
              this.$showResizeDialog$(!0), $componentEvent$$85$$.cancel();
            } else {
              if (-1 != $clientId$$100_component$$inline_2747_source$$178$$.indexOf(AdfDhtmlPivotTablePeer.$RESIZE_WIDTH_MENU_ITEM_ID$)) {
                this.$showResizeDialog$(!1), $componentEvent$$85$$.cancel();
              } else {
                if (-1 != $clientId$$100_component$$inline_2747_source$$178$$.indexOf(AdfDhtmlPivotTablePeer.$SPLIT_PANES_MENU_ITEM_ID$)) {
                  $JSCompiler_StaticMethods__focusElement$$(this.getDomElement());
                  if (this.$_isAda$ || $JSCompiler_StaticMethods_checkCellPositionBeforeSplit$$(this)) {
                    var $clientId$$100_component$$inline_2747_source$$178$$ = this.getComponent(), $event$$inline_2748$$ = new $AdfPivotTableSplitEvent$$($clientId$$100_component$$inline_2747_source$$178$$);
                    $event$$inline_2748$$.setPartial(!0);
                    $clientId$$100_component$$inline_2747_source$$178$$.queueEvent($event$$inline_2748$$);
                    $event$$inline_2748$$.isCanceled() ? $JSCompiler_StaticMethods__clientValidationErrorRecovery$$(this, $JSCompiler_StaticMethods__getActiveCellKey$$(this)) : ($JSCompiler_StaticMethods_setCurrentRequest$$(this, AdfDhtmlPivotTablePeer.$PARTIAL$), this.$_serverRequest$ = null, this.$_isAda$ || this.$_displayStatus$(this.$_fetchText$, !0));
                  }
                  $componentEvent$$85$$.cancel();
                }
              }
            }
          }
        }
      }
    }
  }
};
$goog$exportSymbol$$("AdfDhtmlPivotTablePeer.prototype.HandleComponentAction", AdfDhtmlPivotTablePeer.prototype.HandleComponentAction);
function $JSCompiler_StaticMethods_handleSortContextMenuAction$$($JSCompiler_StaticMethods_handleSortContextMenuAction$self$$, $isAscending$$, $isHeader$$) {
  var $reorderedEdge_selectedEdge$$ = $JSCompiler_StaticMethods_getSelectedEdge$$($JSCompiler_StaticMethods_handleSortContextMenuAction$self$$), $sliceOrLayer_startIndex$$4$$ = $JSCompiler_StaticMethods_getSelectionForEdge$$($JSCompiler_StaticMethods_handleSortContextMenuAction$self$$, $reorderedEdge_selectedEdge$$)[0].startIndex;
  $isHeader$$ ? $sliceOrLayer_startIndex$$4$$ = $sliceOrLayer_startIndex$$4$$.layer : ($reorderedEdge_selectedEdge$$ = 1 - $reorderedEdge_selectedEdge$$, $sliceOrLayer_startIndex$$4$$ = $sliceOrLayer_startIndex$$4$$.slice);
  $JSCompiler_StaticMethods_handleSortContextMenuAction$self$$.$queueSortRequest$($reorderedEdge_selectedEdge$$, $sliceOrLayer_startIndex$$4$$, $isAscending$$, $isHeader$$);
}
AdfDhtmlPivotTablePeer.prototype.$HandleComponentDialog$ = function $AdfDhtmlPivotTablePeer$$$HandleComponentDialog$$($clientId$$101_componentEvent$$86$$) {
  if ($clientId$$101_componentEvent$$86$$.getSource().getClientId() == this.getComponent().getClientId() + AdfDhtmlPivotTablePeer.$_NAMING_SEP$ + AdfDhtmlPivotTablePeer.$RESIZE_DIALOG_ID$ && $clientId$$101_componentEvent$$86$$.getOutcome() == AdfDialogEvent.OUTCOME_OK) {
    var $newSize$$inline_2759_resizeDialogInfo$$inline_2751$$ = this.$_resizeDialogInfo$, $delta$$inline_2761_oldSize$$inline_2752$$ = $newSize$$inline_2759_resizeDialogInfo$$inline_2751$$.$oldSize$, $isHeight$$inline_2753$$ = $newSize$$inline_2759_resizeDialogInfo$$inline_2751$$.$isHeight$, $isLayer$$inline_2754$$ = $newSize$$inline_2759_resizeDialogInfo$$inline_2751$$.$isLayer$, $pane$$inline_2755$$ = $newSize$$inline_2759_resizeDialogInfo$$inline_2751$$.$pane$, $blockIndex$$inline_2756$$ = $newSize$$inline_2759_resizeDialogInfo$$inline_2751$$.$blockIndex$, 
    $localIndex$$inline_2757$$ = $newSize$$inline_2759_resizeDialogInfo$$inline_2751$$.$localIndex$, $cell$$inline_2758$$ = $newSize$$inline_2759_resizeDialogInfo$$inline_2751$$.cell, $newSize$$inline_2759_resizeDialogInfo$$inline_2751$$ = $newSize$$inline_2759_resizeDialogInfo$$inline_2751$$.$spinner$.getValue(), $newSize$$inline_2759_resizeDialogInfo$$inline_2751$$ = Math.max($newSize$$inline_2759_resizeDialogInfo$$inline_2751$$, Math.min($isHeight$$inline_2753$$ ? 16 : 11, $delta$$inline_2761_oldSize$$inline_2752$$)), 
    $delta$$inline_2761_oldSize$$inline_2752$$ = $newSize$$inline_2759_resizeDialogInfo$$inline_2751$$ - $delta$$inline_2761_oldSize$$inline_2752$$;
    0 != $delta$$inline_2761_oldSize$$inline_2752$$ && (this.$_resizeDialogIsForHeight$ ? $JSCompiler_StaticMethods__resizeRow$$(this, $isLayer$$inline_2754$$, $pane$$inline_2755$$, $blockIndex$$inline_2756$$, $cell$$inline_2758$$, $localIndex$$inline_2757$$, $delta$$inline_2761_oldSize$$inline_2752$$, !1) : $JSCompiler_StaticMethods__resizeColumn$$(this, $isLayer$$inline_2754$$, $pane$$inline_2755$$, $blockIndex$$inline_2756$$, $cell$$inline_2758$$, $localIndex$$inline_2757$$, $delta$$inline_2761_oldSize$$inline_2752$$));
    $clientId$$101_componentEvent$$86$$.cancel();
    $clientId$$101_componentEvent$$86$$ = this.getComponent().getClientId();
    AdfPage.PAGE.findComponent($clientId$$101_componentEvent$$86$$ + AdfDhtmlPivotTablePeer.$_NAMING_SEP$ + AdfDhtmlPivotTablePeer.$RESIZE_DIALOG_POPUP_ID$).hide();
  }
};
$goog$exportSymbol$$("AdfDhtmlPivotTablePeer.prototype.HandleComponentDialog", AdfDhtmlPivotTablePeer.prototype.$HandleComponentDialog$);
AdfDhtmlPivotTablePeer.prototype.$HandleComponentPopupOpening$ = function $AdfDhtmlPivotTablePeer$$$HandleComponentPopupOpening$$($cellIndex$$inline_2765_componentEvent$$87_isHeight$$inline_2768$$) {
  if (this.$_currentRequest$ == AdfDhtmlPivotTablePeer.$PARTIAL$) {
    $cellIndex$$inline_2765_componentEvent$$87_isHeight$$inline_2768$$.cancel();
  } else {
    var $cancelCM_cellIndex$$2_clientId$$102_desc$$1_isLayer$$inline_2769$$ = $cellIndex$$inline_2765_componentEvent$$87_isHeight$$inline_2768$$.getSource().getClientId(), $blockIndex$$inline_2771_index$$73_layer$$inline_2766$$ = $cancelCM_cellIndex$$2_clientId$$102_desc$$1_isLayer$$inline_2769$$.indexOf(":", this.getComponent().getClientId().length + 1), $cancelCM_cellIndex$$2_clientId$$102_desc$$1_isLayer$$inline_2769$$ = $cancelCM_cellIndex$$2_clientId$$102_desc$$1_isLayer$$inline_2769$$.substring(this.getComponent().getClientId().length + 
    1, $blockIndex$$inline_2771_index$$73_layer$$inline_2766$$);
    if (isNaN($cancelCM_cellIndex$$2_clientId$$102_desc$$1_isLayer$$inline_2769$$)) {
      switch(this.$_ptState$) {
        case AdfDhtmlPivotTablePeer.$STATE_NORMAL$:
        ;
        case AdfDhtmlPivotTablePeer.$STATE_CONTEXT_MENU$:
          $cancelCM_cellIndex$$2_clientId$$102_desc$$1_isLayer$$inline_2769$$ = this.$selectionChangedSinceLastCmRequest$;
          $cancelCM_cellIndex$$2_clientId$$102_desc$$1_isLayer$$inline_2769$$ || ($cancelCM_cellIndex$$2_clientId$$102_desc$$1_isLayer$$inline_2769$$ = $cellIndex$$inline_2765_componentEvent$$87_isHeight$$inline_2768$$.getSource().getDescendantComponents(), $cancelCM_cellIndex$$2_clientId$$102_desc$$1_isLayer$$inline_2769$$ = null == $cancelCM_cellIndex$$2_clientId$$102_desc$$1_isLayer$$inline_2769$$ || 1 >= $cancelCM_cellIndex$$2_clientId$$102_desc$$1_isLayer$$inline_2769$$.length);
          $cancelCM_cellIndex$$2_clientId$$102_desc$$1_isLayer$$inline_2769$$ ? ($cellIndex$$inline_2765_componentEvent$$87_isHeight$$inline_2768$$.cancel(), this.$_ptState$ = AdfDhtmlPivotTablePeer.$STATE_NORMAL$) : this.$_ptState$ = AdfDhtmlPivotTablePeer.$STATE_CONTEXT_MENU$;
          break;
        case AdfDhtmlPivotTablePeer.$STATE_DIALOG$:
          var $blockStartSlice$$inline_2775_edge$$inline_2764_localIndex$$inline_2773$$ = $JSCompiler_StaticMethods_getSelectedEdge$$(this);
          $cellIndex$$inline_2765_componentEvent$$87_isHeight$$inline_2768$$ = $JSCompiler_StaticMethods_getCurrentRange$$(this).startIndex;
          var $blockIndex$$inline_2771_index$$73_layer$$inline_2766$$ = $cellIndex$$inline_2765_componentEvent$$87_isHeight$$inline_2768$$.layer, $pane$$inline_2774_slice$$inline_2767$$ = $cellIndex$$inline_2765_componentEvent$$87_isHeight$$inline_2768$$.slice;
          $cellIndex$$inline_2765_componentEvent$$87_isHeight$$inline_2768$$ = this.$_resizeDialogIsForHeight$;
          var $cell$$inline_2776_layerSlice$$inline_2770$$ = ($cancelCM_cellIndex$$2_clientId$$102_desc$$1_isLayer$$inline_2769$$ = $blockStartSlice$$inline_2775_edge$$inline_2764_localIndex$$inline_2773$$ == AdfPivotTableUtils.$ROW_EDGE$ != $cellIndex$$inline_2765_componentEvent$$87_isHeight$$inline_2768$$) ? $blockIndex$$inline_2771_index$$73_layer$$inline_2766$$ : $pane$$inline_2774_slice$$inline_2767$$, $block$$inline_2772_oldSize$$inline_2777$$;
          $cancelCM_cellIndex$$2_clientId$$102_desc$$1_isLayer$$inline_2769$$ ? ($pane$$inline_2774_slice$$inline_2767$$ = this.$_ptUtils$.$_startPane$[$blockStartSlice$$inline_2775_edge$$inline_2764_localIndex$$inline_2773$$], $blockIndex$$inline_2771_index$$73_layer$$inline_2766$$ = 0, $block$$inline_2772_oldSize$$inline_2777$$ = this.$_ptUtils$.$_buffers2$[$blockStartSlice$$inline_2775_edge$$inline_2764_localIndex$$inline_2773$$][$pane$$inline_2774_slice$$inline_2767$$][$blockIndex$$inline_2771_index$$73_layer$$inline_2766$$], 
          $blockStartSlice$$inline_2775_edge$$inline_2764_localIndex$$inline_2773$$ = $cell$$inline_2776_layerSlice$$inline_2770$$ + 1) : ($pane$$inline_2774_slice$$inline_2767$$ = $cell$$inline_2776_layerSlice$$inline_2770$$ < this.$_ptUtils$.$_splitSlice$[$blockStartSlice$$inline_2775_edge$$inline_2764_localIndex$$inline_2773$$] ? 0 : 1, $blockIndex$$inline_2771_index$$73_layer$$inline_2766$$ = $JSCompiler_StaticMethods_getBlockNumOfSlice$$(this, $blockStartSlice$$inline_2775_edge$$inline_2764_localIndex$$inline_2773$$, 
          $cell$$inline_2776_layerSlice$$inline_2770$$, $pane$$inline_2774_slice$$inline_2767$$), $block$$inline_2772_oldSize$$inline_2777$$ = this.$_ptUtils$.$_buffers2$[$blockStartSlice$$inline_2775_edge$$inline_2764_localIndex$$inline_2773$$][$pane$$inline_2774_slice$$inline_2767$$][$blockIndex$$inline_2771_index$$73_layer$$inline_2766$$], $blockStartSlice$$inline_2775_edge$$inline_2764_localIndex$$inline_2773$$ = AdfAgent.AGENT.getIntAttribute($block$$inline_2772_oldSize$$inline_2777$$, "_startSlice"), 
          $blockStartSlice$$inline_2775_edge$$inline_2764_localIndex$$inline_2773$$ = $cell$$inline_2776_layerSlice$$inline_2770$$ - $blockStartSlice$$inline_2775_edge$$inline_2764_localIndex$$inline_2773$$ + 1);
          $cellIndex$$inline_2765_componentEvent$$87_isHeight$$inline_2768$$ ? ($cell$$inline_2776_layerSlice$$inline_2770$$ = $block$$inline_2772_oldSize$$inline_2777$$.childNodes[0].rows[$blockStartSlice$$inline_2775_edge$$inline_2764_localIndex$$inline_2773$$].cells[0], $block$$inline_2772_oldSize$$inline_2777$$ = $cell$$inline_2776_layerSlice$$inline_2770$$.offsetHeight) : ($cell$$inline_2776_layerSlice$$inline_2770$$ = $block$$inline_2772_oldSize$$inline_2777$$.childNodes[0].rows[0].cells[$blockStartSlice$$inline_2775_edge$$inline_2764_localIndex$$inline_2773$$], 
          $block$$inline_2772_oldSize$$inline_2777$$ = $cell$$inline_2776_layerSlice$$inline_2770$$.offsetWidth);
          var $clientId$$inline_2778_labelContent$$inline_2783_labelId$$inline_2781$$ = this.getComponent().getClientId(), $spinner$$inline_2779$$ = AdfPage.PAGE.findComponent($clientId$$inline_2778_labelContent$$inline_2783_labelId$$inline_2781$$ + AdfDhtmlPivotTablePeer.$_NAMING_SEP$ + AdfDhtmlPivotTablePeer.$RESIZE_DIALOG_SPINNER_ID$);
          $spinner$$inline_2779$$.setValue($block$$inline_2772_oldSize$$inline_2777$$);
          var $heightWidthText$$inline_2780_labelContainer$$inline_2782_resizeDialogInfo$$inline_2784$$ = $cellIndex$$inline_2765_componentEvent$$87_isHeight$$inline_2768$$ ? this.$_heightText$ : this.$_widthText$;
          AdfPage.PAGE.findComponent($clientId$$inline_2778_labelContent$$inline_2783_labelId$$inline_2781$$ + AdfDhtmlPivotTablePeer.$_NAMING_SEP$ + AdfDhtmlPivotTablePeer.$RESIZE_DIALOG_ID$).setTitle($heightWidthText$$inline_2780_labelContainer$$inline_2782_resizeDialogInfo$$inline_2784$$);
          $clientId$$inline_2778_labelContent$$inline_2783_labelId$$inline_2781$$ = $clientId$$inline_2778_labelContent$$inline_2783_labelId$$inline_2781$$ + AdfDhtmlPivotTablePeer.$_NAMING_SEP$ + AdfDhtmlPivotTablePeer.$RESIZE_DIALOG_PLM_ID$;
          AdfPage.PAGE.findComponent($clientId$$inline_2778_labelContent$$inline_2783_labelId$$inline_2781$$).setLabel($heightWidthText$$inline_2780_labelContainer$$inline_2782_resizeDialogInfo$$inline_2784$$);
          $heightWidthText$$inline_2780_labelContainer$$inline_2782_resizeDialogInfo$$inline_2784$$ = AdfAgent.getAgent().getElementById($clientId$$inline_2778_labelContent$$inline_2783_labelId$$inline_2781$$).childNodes[0];
          $clientId$$inline_2778_labelContent$$inline_2783_labelId$$inline_2781$$ = $heightWidthText$$inline_2780_labelContainer$$inline_2782_resizeDialogInfo$$inline_2784$$.cloneNode(!0);
          $clientId$$inline_2778_labelContent$$inline_2783_labelId$$inline_2781$$.style.visibility = "hidden";
          this.getDomElement().appendChild($clientId$$inline_2778_labelContent$$inline_2783_labelId$$inline_2781$$);
          $heightWidthText$$inline_2780_labelContainer$$inline_2782_resizeDialogInfo$$inline_2784$$.style.width = $clientId$$inline_2778_labelContent$$inline_2783_labelId$$inline_2781$$.offsetWidth + "px";
          this.getDomElement().removeChild($clientId$$inline_2778_labelContent$$inline_2783_labelId$$inline_2781$$);
          this.$_resizeDialogInfo$ || (this.$_resizeDialogInfo$ = {});
          $heightWidthText$$inline_2780_labelContainer$$inline_2782_resizeDialogInfo$$inline_2784$$ = this.$_resizeDialogInfo$;
          $heightWidthText$$inline_2780_labelContainer$$inline_2782_resizeDialogInfo$$inline_2784$$.$spinner$ = $spinner$$inline_2779$$;
          $heightWidthText$$inline_2780_labelContainer$$inline_2782_resizeDialogInfo$$inline_2784$$.$oldSize$ = $block$$inline_2772_oldSize$$inline_2777$$;
          $heightWidthText$$inline_2780_labelContainer$$inline_2782_resizeDialogInfo$$inline_2784$$.$isLayer$ = $cancelCM_cellIndex$$2_clientId$$102_desc$$1_isLayer$$inline_2769$$;
          $heightWidthText$$inline_2780_labelContainer$$inline_2782_resizeDialogInfo$$inline_2784$$.$isHeight$ = $cellIndex$$inline_2765_componentEvent$$87_isHeight$$inline_2768$$;
          $heightWidthText$$inline_2780_labelContainer$$inline_2782_resizeDialogInfo$$inline_2784$$.$pane$ = $pane$$inline_2774_slice$$inline_2767$$;
          $heightWidthText$$inline_2780_labelContainer$$inline_2782_resizeDialogInfo$$inline_2784$$.$blockIndex$ = $blockIndex$$inline_2771_index$$73_layer$$inline_2766$$;
          $heightWidthText$$inline_2780_labelContainer$$inline_2782_resizeDialogInfo$$inline_2784$$.$localIndex$ = $blockStartSlice$$inline_2775_edge$$inline_2764_localIndex$$inline_2773$$;
          $heightWidthText$$inline_2780_labelContainer$$inline_2782_resizeDialogInfo$$inline_2784$$.cell = $cell$$inline_2776_layerSlice$$inline_2770$$;
      }
    } else {
      this.$_ptState$ = AdfDhtmlPivotTablePeer.$STATE_STAMP_POPUP$;
    }
  }
};
$goog$exportSymbol$$("AdfDhtmlPivotTablePeer.prototype.HandleComponentPopupOpening", AdfDhtmlPivotTablePeer.prototype.$HandleComponentPopupOpening$);
AdfDhtmlPivotTablePeer.prototype.$HandleComponentPopupClosed$ = function $AdfDhtmlPivotTablePeer$$$HandleComponentPopupClosed$$() {
  this.$_ptState$ = AdfDhtmlPivotTablePeer.$STATE_NORMAL$;
};
$goog$exportSymbol$$("AdfDhtmlPivotTablePeer.prototype.HandleComponentPopupClosed", AdfDhtmlPivotTablePeer.prototype.$HandleComponentPopupClosed$);
function $JSCompiler_StaticMethods_isClientValidationError$$($JSCompiler_StaticMethods_isClientValidationError$self$$, $target$$126$$) {
  var $agent$$34_elem$$63_inputElems$$ = AdfAgent.AGENT, $clientIds$$3_component$$469$$ = $JSCompiler_StaticMethods_isClientValidationError$self$$.getComponent();
  if ($target$$126$$ == $JSCompiler_StaticMethods_isClientValidationError$self$$.$_activeCell$ && ($clientIds$$3_component$$469$$ = AdfPage.PAGE.getClientIdsWithMessages($clientIds$$3_component$$469$$.getClientId()), null != $clientIds$$3_component$$469$$ && 0 < $clientIds$$3_component$$469$$.length)) {
    for (var $i$$150$$ = 0;$i$$150$$ < $clientIds$$3_component$$469$$.length;$i$$150$$++) {
      if (0 == $clientIds$$3_component$$469$$[$i$$150$$].indexOf($target$$126$$.id)) {
        return $agent$$34_elem$$63_inputElems$$ = $agent$$34_elem$$63_inputElems$$.getElementById($clientIds$$3_component$$469$$[$i$$150$$]), $agent$$34_elem$$63_inputElems$$ = $JSCompiler_StaticMethods__getInputElementsInNode$$($JSCompiler_StaticMethods_isClientValidationError$self$$, $agent$$34_elem$$63_inputElems$$), null != $agent$$34_elem$$63_inputElems$$ && 0 < $agent$$34_elem$$63_inputElems$$.length && $agent$$34_elem$$63_inputElems$$[0].focus(), !0;
      }
    }
  }
  return !1;
}
AdfDhtmlPivotTablePeer.prototype.$HandleComponentClick$ = function $AdfDhtmlPivotTablePeer$$$HandleComponentClick$$($cellKey$$inline_2802_componentEvent$$89_mousePos$$12_sortAscending$$inline_2789_valid$$) {
  if (this.$_currentRequest$ != AdfDhtmlPivotTablePeer.$PARTIAL$ && this.$_ptState$ != AdfDhtmlPivotTablePeer.$STATE_DIALOG$ && this.$_ptState$ != AdfDhtmlPivotTablePeer.$STATE_STAMP_POPUP$) {
    var $attrs$$inline_2801_cell$$inline_2803_comp$$5_component$$470_sortDescending$$inline_2790$$ = this.getComponent(), $agent$$35_delta$$inline_2805_target$$127$$ = AdfAgent.AGENT, $dataCellIndex$$1_domEvent$$36_oldRowHeight$$inline_2804$$ = $cellKey$$inline_2802_componentEvent$$89_mousePos$$12_sortAscending$$inline_2789_valid$$.getNativeEvent(), $agent$$35_delta$$inline_2805_target$$127$$ = $agent$$35_delta$$inline_2805_target$$127$$.getEventTarget($dataCellIndex$$1_domEvent$$36_oldRowHeight$$inline_2804$$);
    if (!($JSCompiler_StaticMethods_isClientValidationError$$(this, $agent$$35_delta$$inline_2805_target$$127$$) || this.$_isPaging$ && $JSCompiler_StaticMethods__handleClickOnPagingControl$$(this, $dataCellIndex$$1_domEvent$$36_oldRowHeight$$inline_2804$$, $agent$$35_delta$$inline_2805_target$$127$$))) {
      if ($cellKey$$inline_2802_componentEvent$$89_mousePos$$12_sortAscending$$inline_2789_valid$$.isLeftButtonPressed() && (this.$handleImageAction$($attrs$$inline_2801_cell$$inline_2803_comp$$5_component$$470_sortDescending$$inline_2790$$, $agent$$35_delta$$inline_2805_target$$127$$), this.$_isSortEnabled$ && this.$_currentRequest$ != AdfDhtmlPivotTablePeer.$PARTIAL$ && (($cellKey$$inline_2802_componentEvent$$89_mousePos$$12_sortAscending$$inline_2789_valid$$ = $agent$$35_delta$$inline_2805_target$$127$$.parentNode.getAttribute(AdfDhtmlPivotTablePeer.$_SORT_ASCENDING$)) || 
      ($cellKey$$inline_2802_componentEvent$$89_mousePos$$12_sortAscending$$inline_2789_valid$$ = $agent$$35_delta$$inline_2805_target$$127$$.parentNode.parentNode.getAttribute(AdfDhtmlPivotTablePeer.$_SORT_ASCENDING$)), ($attrs$$inline_2801_cell$$inline_2803_comp$$5_component$$470_sortDescending$$inline_2790$$ = $agent$$35_delta$$inline_2805_target$$127$$.parentNode.getAttribute(AdfDhtmlPivotTablePeer.$_SORT_DESCENDING$)) || ($attrs$$inline_2801_cell$$inline_2803_comp$$5_component$$470_sortDescending$$inline_2790$$ = 
      $agent$$35_delta$$inline_2805_target$$127$$.parentNode.parentNode.getAttribute(AdfDhtmlPivotTablePeer.$_SORT_DESCENDING$)), $cellKey$$inline_2802_componentEvent$$89_mousePos$$12_sortAscending$$inline_2789_valid$$ || $attrs$$inline_2801_cell$$inline_2803_comp$$5_component$$470_sortDescending$$inline_2790$$))) {
        var $sortedType$$inline_2795_th$$inline_2791$$ = $JSCompiler_StaticMethods__getParentElement$$(this, $agent$$35_delta$$inline_2805_target$$127$$, "TH"), $cellCoords$$inline_2792$$ = $JSCompiler_StaticMethods_getHeaderCellCoordinates$$($sortedType$$inline_2795_th$$inline_2791$$), $siId$$inline_2793_sortOrder$$inline_2796$$ = AdfRichUIPeer.CreateSubId(this.getComponent().getClientId(), $cellCoords$$inline_2792$$.startSlice + "::" + AdfDhtmlPivotTablePeer.$_SORT_INDICATOR$), $siElem$$inline_2794$$ = 
        null, $siElem$$inline_2794$$ = void 0 == $sortedType$$inline_2795_th$$inline_2791$$.getAttribute("_vt") ? AdfPivotTableUtils.$isMobileTouchDevice$() ? AdfDhtmlPivotTablePeer.$_getChildById$($sortedType$$inline_2795_th$$inline_2791$$.childNodes[0], $siId$$inline_2793_sortOrder$$inline_2796$$) : AdfDhtmlPivotTablePeer.$_getChildById$($sortedType$$inline_2795_th$$inline_2791$$, $siId$$inline_2793_sortOrder$$inline_2796$$) : AdfDhtmlPivotTablePeer.$_getChildById$($sortedType$$inline_2795_th$$inline_2791$$.childNodes[0].rows[0].cells[0], 
        $siId$$inline_2793_sortOrder$$inline_2796$$), $sortedType$$inline_2795_th$$inline_2791$$ = $siElem$$inline_2794$$.getAttribute(AdfDhtmlPivotTablePeer.$_SORTED_TYPE$), $siId$$inline_2793_sortOrder$$inline_2796$$ = void 0;
        $cellKey$$inline_2802_componentEvent$$89_mousePos$$12_sortAscending$$inline_2789_valid$$ && $sortedType$$inline_2795_th$$inline_2791$$ != AdfDhtmlPivotTablePeer.$_SORTED_ASCENDING$ ? $siId$$inline_2793_sortOrder$$inline_2796$$ = !0 : $attrs$$inline_2801_cell$$inline_2803_comp$$5_component$$470_sortDescending$$inline_2790$$ && $sortedType$$inline_2795_th$$inline_2791$$ != AdfDhtmlPivotTablePeer.$_SORTED_DESCENDING$ && ($siId$$inline_2793_sortOrder$$inline_2796$$ = !1);
        void 0 != $siId$$inline_2793_sortOrder$$inline_2796$$ && (this.$queueSortRequest$(AdfPivotTableUtils.$ROW_EDGE$, $cellCoords$$inline_2792$$.startSlice, $siId$$inline_2793_sortOrder$$inline_2796$$, !1), AdfAgent.AGENT.eatEvent($dataCellIndex$$1_domEvent$$36_oldRowHeight$$inline_2804$$));
      }
      if ($JSCompiler_StaticMethods__isClickToEditAll$$(this)) {
        $cellKey$$inline_2802_componentEvent$$89_mousePos$$12_sortAscending$$inline_2789_valid$$ = !0, null != this.$_activeCell$ && ($attrs$$inline_2801_cell$$inline_2803_comp$$5_component$$470_sortDescending$$inline_2790$$ = $JSCompiler_StaticMethods__findInputComponentInCell$$(this, this.$_activeCell$).$component$, null != $attrs$$inline_2801_cell$$inline_2803_comp$$5_component$$470_sortDescending$$inline_2790$$ && $attrs$$inline_2801_cell$$inline_2803_comp$$5_component$$470_sortDescending$$inline_2790$$ instanceof 
        AdfUIEditableValue && ($cellKey$$inline_2802_componentEvent$$89_mousePos$$12_sortAscending$$inline_2789_valid$$ = $attrs$$inline_2801_cell$$inline_2803_comp$$5_component$$470_sortDescending$$inline_2790$$.getValid())), $cellKey$$inline_2802_componentEvent$$89_mousePos$$12_sortAscending$$inline_2789_valid$$ ? ($attrs$$inline_2801_cell$$inline_2803_comp$$5_component$$470_sortDescending$$inline_2790$$ = $JSCompiler_StaticMethods__getDataCellKeyAndCell$$(this, $agent$$35_delta$$inline_2805_target$$127$$), 
        null != $attrs$$inline_2801_cell$$inline_2803_comp$$5_component$$470_sortDescending$$inline_2790$$ && ($cellKey$$inline_2802_componentEvent$$89_mousePos$$12_sortAscending$$inline_2789_valid$$ = $attrs$$inline_2801_cell$$inline_2803_comp$$5_component$$470_sortDescending$$inline_2790$$[0], $attrs$$inline_2801_cell$$inline_2803_comp$$5_component$$470_sortDescending$$inline_2790$$ = $attrs$$inline_2801_cell$$inline_2803_comp$$5_component$$470_sortDescending$$inline_2790$$[1], null != $cellKey$$inline_2802_componentEvent$$89_mousePos$$12_sortAscending$$inline_2789_valid$$ && 
        null != $attrs$$inline_2801_cell$$inline_2803_comp$$5_component$$470_sortDescending$$inline_2790$$ && ($JSCompiler_StaticMethods__updateInputReadOnlyState$$(this, $agent$$35_delta$$inline_2805_target$$127$$, $attrs$$inline_2801_cell$$inline_2803_comp$$5_component$$470_sortDescending$$inline_2790$$) ? (null != this.$_submittedCellKey$ && (this.$_cancelDismiss$ = !1, this.$_dismissClickToEdit$(!1)), $dataCellIndex$$1_domEvent$$36_oldRowHeight$$inline_2804$$ = $attrs$$inline_2801_cell$$inline_2803_comp$$5_component$$470_sortDescending$$inline_2790$$.parentNode.offsetHeight, 
        this.$_activeCell$ != this.$_prevActiveCell$ && $JSCompiler_StaticMethods__dismissPreviousActiveCell$$(this, $attrs$$inline_2801_cell$$inline_2803_comp$$5_component$$470_sortDescending$$inline_2790$$, $attrs$$inline_2801_cell$$inline_2803_comp$$5_component$$470_sortDescending$$inline_2790$$, $dataCellIndex$$1_domEvent$$36_oldRowHeight$$inline_2804$$), this.$_cellRowHeight$ = $dataCellIndex$$1_domEvent$$36_oldRowHeight$$inline_2804$$, $JSCompiler_StaticMethods__isCellHeightFixed$$(this) || 
        ($agent$$35_delta$$inline_2805_target$$127$$ = $attrs$$inline_2801_cell$$inline_2803_comp$$5_component$$470_sortDescending$$inline_2790$$.parentNode.offsetHeight - $dataCellIndex$$1_domEvent$$36_oldRowHeight$$inline_2804$$, 0 != $agent$$35_delta$$inline_2805_target$$127$$ && $JSCompiler_StaticMethods__clickToEditResize$$(this, $attrs$$inline_2801_cell$$inline_2803_comp$$5_component$$470_sortDescending$$inline_2790$$, $agent$$35_delta$$inline_2805_target$$127$$)), this.$_lastUpdatedRow$ = 
        $JSCompiler_StaticMethods_getCoordinates$$(this, $attrs$$inline_2801_cell$$inline_2803_comp$$5_component$$470_sortDescending$$inline_2790$$).row, this.$_oldRowHeight$ = $dataCellIndex$$1_domEvent$$36_oldRowHeight$$inline_2804$$, this.$_prevActiveCell$ = this.$_activeCell$ = $attrs$$inline_2801_cell$$inline_2803_comp$$5_component$$470_sortDescending$$inline_2790$$, $JSCompiler_StaticMethods__setActiveCellKey$$(this, $cellKey$$inline_2802_componentEvent$$89_mousePos$$12_sortAscending$$inline_2789_valid$$, 
        !0)) : $JSCompiler_StaticMethods_preserveEditingBehavior$$(this) || $JSCompiler_StaticMethods_doHandleClickToEdit$$(this, $dataCellIndex$$1_domEvent$$36_oldRowHeight$$inline_2804$$, $agent$$35_delta$$inline_2805_target$$127$$)))) : ($dataCellIndex$$1_domEvent$$36_oldRowHeight$$inline_2804$$ = $JSCompiler_StaticMethods_newDataCellIndexFromCell$$(this, this.$_activeCell$), $JSCompiler_StaticMethods_selectAndFocusDataCell$$(this, $dataCellIndex$$1_domEvent$$36_oldRowHeight$$inline_2804$$), this.$_processClickToEditRequest$())
        ;
      } else {
        $cellKey$$inline_2802_componentEvent$$89_mousePos$$12_sortAscending$$inline_2789_valid$$ = AdfAgent.AGENT.getMousePosition($dataCellIndex$$1_domEvent$$36_oldRowHeight$$inline_2804$$);
        if (void 0 == this.$_resizeDropMousePos$ || this.$_resizeDropMousePos$.x != $cellKey$$inline_2802_componentEvent$$89_mousePos$$12_sortAscending$$inline_2789_valid$$.x || this.$_resizeDropMousePos$.x != $cellKey$$inline_2802_componentEvent$$89_mousePos$$12_sortAscending$$inline_2789_valid$$.x) {
          $dataCellIndex$$1_domEvent$$36_oldRowHeight$$inline_2804$$.shiftKey || $JSCompiler_StaticMethods_ctrlEquivalent$$($dataCellIndex$$1_domEvent$$36_oldRowHeight$$inline_2804$$) || $JSCompiler_StaticMethods__dismissClickToEditIfNeeded$$(this, $agent$$35_delta$$inline_2805_target$$127$$);
        }
        this.$_resizeDropMousePos$ = void 0;
        $JSCompiler_StaticMethods_preserveEditingBehavior$$(this) || $JSCompiler_StaticMethods_doHandleClickToEdit$$(this, $dataCellIndex$$1_domEvent$$36_oldRowHeight$$inline_2804$$, $agent$$35_delta$$inline_2805_target$$127$$);
      }
    }
  }
};
$goog$exportSymbol$$("AdfDhtmlPivotTablePeer.prototype.HandleComponentClick", AdfDhtmlPivotTablePeer.prototype.$HandleComponentClick$);
function $JSCompiler_StaticMethods_doHandleClickToEdit$$($JSCompiler_StaticMethods_doHandleClickToEdit$self$$, $domEvent$$38_eventTarget$$6$$, $cellKey$$3_target$$129$$) {
  if (!$JSCompiler_StaticMethods_doHandleClickToEdit$self$$.$_isAda$ && !$JSCompiler_StaticMethods_doHandleClickToEdit$self$$.$_attachmentMode$ && !$JSCompiler_StaticMethods__isReadOnly$$($JSCompiler_StaticMethods_doHandleClickToEdit$self$$)) {
    if ($domEvent$$38_eventTarget$$6$$.shiftKey || $JSCompiler_StaticMethods_ctrlEquivalent$$($domEvent$$38_eventTarget$$6$$)) {
      null != $JSCompiler_StaticMethods__getActiveCellKey$$($JSCompiler_StaticMethods_doHandleClickToEdit$self$$) && $JSCompiler_StaticMethods_doHandleClickToEdit$self$$.$_processClickToEditRequest$();
    } else {
      var $attrs$$17_cell$$8$$ = $JSCompiler_StaticMethods__getDataCellKeyAndCell$$($JSCompiler_StaticMethods_doHandleClickToEdit$self$$, $cellKey$$3_target$$129$$);
      null != $attrs$$17_cell$$8$$ && ($cellKey$$3_target$$129$$ = $attrs$$17_cell$$8$$[0], $attrs$$17_cell$$8$$ = $attrs$$17_cell$$8$$[1], null != $cellKey$$3_target$$129$$ && $attrs$$17_cell$$8$$.id && ($cellKey$$3_target$$129$$ != $JSCompiler_StaticMethods__getActiveCellKey$$($JSCompiler_StaticMethods_doHandleClickToEdit$self$$) ? ($JSCompiler_StaticMethods_doHandleClickToEdit$self$$.$_activeCell$ = $attrs$$17_cell$$8$$, $JSCompiler_StaticMethods_doHandleClickToEdit$self$$.$_cellRowHeight$ = $attrs$$17_cell$$8$$.parentNode.offsetHeight, 
      $JSCompiler_StaticMethods_doHandleClickToEdit$self$$.$_cancelDismiss$ = !0, $JSCompiler_StaticMethods__setActiveCellKey$$($JSCompiler_StaticMethods_doHandleClickToEdit$self$$, $cellKey$$3_target$$129$$)) : $JSCompiler_StaticMethods_doHandleClickToEdit$self$$.$_activeCellKeySetFromServer$ && ($domEvent$$38_eventTarget$$6$$ = AdfAgent.AGENT.getEventTarget($domEvent$$38_eventTarget$$6$$), "INPUT" == $domEvent$$38_eventTarget$$6$$.tagName && "text" == $domEvent$$38_eventTarget$$6$$.type && $domEvent$$38_eventTarget$$6$$.select())));
    }
    $JSCompiler_StaticMethods_doHandleClickToEdit$self$$.$_activeCellKeySetFromServer$ = !1;
  }
}
AdfDhtmlPivotTablePeer.prototype.$HandleComponentDblClick$ = function $AdfDhtmlPivotTablePeer$$$HandleComponentDblClick$$($componentEvent$$91_domEvent$$inline_2809_eventTarget$$inline_2810$$) {
  if ($JSCompiler_StaticMethods_preserveEditingBehavior$$(this)) {
    $JSCompiler_StaticMethods_doHandleClickToEdit$$(this, $componentEvent$$91_domEvent$$inline_2809_eventTarget$$inline_2810$$);
  } else {
    var $agent$$inline_2808_evt$$inline_2812_range$$inline_2811$$ = AdfAgent.AGENT;
    $componentEvent$$91_domEvent$$inline_2809_eventTarget$$inline_2810$$ = $componentEvent$$91_domEvent$$inline_2809_eventTarget$$inline_2810$$.getNativeEvent();
    $componentEvent$$91_domEvent$$inline_2809_eventTarget$$inline_2810$$ = $agent$$inline_2808_evt$$inline_2812_range$$inline_2811$$.getEventTarget($componentEvent$$91_domEvent$$inline_2809_eventTarget$$inline_2810$$);
    "INPUT" == $componentEvent$$91_domEvent$$inline_2809_eventTarget$$inline_2810$$.tagName && "text" == $componentEvent$$91_domEvent$$inline_2809_eventTarget$$inline_2810$$.type && ($agent$$inline_2808_evt$$inline_2812_range$$inline_2811$$.getPlatform() == AdfAgent.IE_PLATFORM ? ($agent$$inline_2808_evt$$inline_2812_range$$inline_2811$$ = $componentEvent$$91_domEvent$$inline_2809_eventTarget$$inline_2810$$.createTextRange(), $agent$$inline_2808_evt$$inline_2812_range$$inline_2811$$.moveStart("character", 
    $componentEvent$$91_domEvent$$inline_2809_eventTarget$$inline_2810$$.value.length), $agent$$inline_2808_evt$$inline_2812_range$$inline_2811$$.moveEnd("character", $componentEvent$$91_domEvent$$inline_2809_eventTarget$$inline_2810$$.value.length), $agent$$inline_2808_evt$$inline_2812_range$$inline_2811$$.select()) : ($componentEvent$$91_domEvent$$inline_2809_eventTarget$$inline_2810$$.setSelectionRange($componentEvent$$91_domEvent$$inline_2809_eventTarget$$inline_2810$$.value.length, $componentEvent$$91_domEvent$$inline_2809_eventTarget$$inline_2810$$.value.length), 
    $componentEvent$$91_domEvent$$inline_2809_eventTarget$$inline_2810$$.blur(), $componentEvent$$91_domEvent$$inline_2809_eventTarget$$inline_2810$$.focus(), $agent$$inline_2808_evt$$inline_2812_range$$inline_2811$$ = document.createEvent("KeyboardEvent"), $agent$$inline_2808_evt$$inline_2812_range$$inline_2811$$.initKeyEvent("keypress", !0, !0, null, !1, !1, !1, !1, 27, 0), $componentEvent$$91_domEvent$$inline_2809_eventTarget$$inline_2810$$.dispatchEvent($agent$$inline_2808_evt$$inline_2812_range$$inline_2811$$)));
  }
  this.$_clickCellKey$ = this.$_clickTimeStamp$ = null;
};
$goog$exportSymbol$$("AdfDhtmlPivotTablePeer.prototype.HandleComponentDblClick", AdfDhtmlPivotTablePeer.prototype.$HandleComponentDblClick$);
AdfDhtmlPivotTablePeer.prototype.$HandleComponentKeyDown$ = function $AdfDhtmlPivotTablePeer$$$HandleComponentKeyDown$$($comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$) {
  if (this.$_ptState$ != AdfDhtmlPivotTablePeer.$STATE_DIALOG$ && this.$_ptState$ != AdfDhtmlPivotTablePeer.$STATE_CONTEXT_MENU$ && this.$_ptState$ != AdfDhtmlPivotTablePeer.$STATE_STAMP_POPUP$) {
    var $domEvent$$40$$ = $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$.getNativeEvent(), $agent$$37_currentLayer$$inline_2816_isValid_keyCode$$inline_2821$$ = AdfAgent.AGENT, $eventTarget$$8_index$$74$$ = $agent$$37_currentLayer$$inline_2816_isValid_keyCode$$inline_2821$$.getEventTarget($domEvent$$40$$), $keyCode$$15_newCellIndex$$inline_2822$$ = $domEvent$$40$$.keyCode;
    if (this.$_isPaging$) {
      for (var $component$$471_elem$$64$$ = $eventTarget$$8_index$$74$$, $domElem$$5_shiftKey$$3$$ = this.getDomElement();$component$$471_elem$$64$$ != $domElem$$5_shiftKey$$3$$;) {
        if ($component$$471_elem$$64$$ == this.$_ptUtils$.$_pagingControl$[0][0] || $component$$471_elem$$64$$ == this.$_ptUtils$.$_pagingControl$[0][1] || $component$$471_elem$$64$$ == this.$_ptUtils$.$_pagingControl$[1][1] || $component$$471_elem$$64$$ == this.$_ptUtils$.$_pagingControl$[1][0]) {
          $keyCode$$15_newCellIndex$$inline_2822$$ == AdfKeyStroke.ENTER_KEY && (this.$_updatedPagingInputValue$ = !0);
          return;
        }
        $component$$471_elem$$64$$ = $component$$471_elem$$64$$.parentNode;
      }
    }
    var $altKey$$3$$ = $domEvent$$40$$.altKey, $ctrlKey$$3$$ = $domEvent$$40$$.ctrlKey, $domElem$$5_shiftKey$$3$$ = $domEvent$$40$$.shiftKey, $component$$471_elem$$64$$ = this.getComponent();
    if ("A" == $eventTarget$$8_index$$74$$.tagName && $keyCode$$15_newCellIndex$$inline_2822$$ == AdfKeyStroke.ENTER_KEY) {
      var $attrs$$18_focusCellIndex_th$$ = $JSCompiler_StaticMethods__getDataCellKeyAndCell$$(this, $eventTarget$$8_index$$74$$);
      if (null != $attrs$$18_focusCellIndex_th$$) {
        var $cell$$9_elems$$1_isMultipleCellsSelected$$ = $attrs$$18_focusCellIndex_th$$[1];
        if (null != $attrs$$18_focusCellIndex_th$$[0] && $cell$$9_elems$$1_isMultipleCellsSelected$$.id && $cell$$9_elems$$1_isMultipleCellsSelected$$ == this.$_activeCell$) {
          return;
        }
      }
    }
    if (!this.$_isAda$ && this.$_currentRequest$ != AdfDhtmlPivotTablePeer.$PARTIAL$) {
      if ($attrs$$18_focusCellIndex_th$$ = this.$_focusCellIndex$, $cell$$9_elems$$1_isMultipleCellsSelected$$ = $JSCompiler_StaticMethods_isMultipleDatabodyCellsSelected$$(this), null == $attrs$$18_focusCellIndex_th$$ || $JSCompiler_StaticMethods_getEdge$$($attrs$$18_focusCellIndex_th$$) != AdfPivotTableUtils.$DATABODY$ || null == this.$_activeCell$ || !$cell$$9_elems$$1_isMultipleCellsSelected$$ && $JSCompiler_StaticMethods__getDataCellFromCellIndex$$(this, $attrs$$18_focusCellIndex_th$$) != this.$_activeCell$) {
        if ($attrs$$18_focusCellIndex_th$$ = this.$_focusCellIndex$, null != $attrs$$18_focusCellIndex_th$$ && $JSCompiler_StaticMethods_getEdge$$($attrs$$18_focusCellIndex_th$$) != AdfPivotTableUtils.$DATABODY$ && $keyCode$$15_newCellIndex$$inline_2822$$ == AdfKeyStroke.ENTER_KEY) {
          range = $JSCompiler_StaticMethods_newHeaderCellRange$$($attrs$$18_focusCellIndex_th$$);
          nodes = $JSCompiler_StaticMethods_getNodesInHeaderCellRange$$(this, range, $attrs$$18_focusCellIndex_th$$.edge);
          if (0 == nodes.length) {
            return;
          }
          $attrs$$18_focusCellIndex_th$$ = nodes[0];
          $cell$$9_elems$$1_isMultipleCellsSelected$$ = $JSCompiler_StaticMethods__getInputElementsInNode$$(this, $attrs$$18_focusCellIndex_th$$);
          $eventTarget$$8_index$$74$$ = $JSCompiler_StaticMethods__getCurrentInputElementIndex$$($cell$$9_elems$$1_isMultipleCellsSelected$$, $eventTarget$$8_index$$74$$);
          if (null != $cell$$9_elems$$1_isMultipleCellsSelected$$ && -1 == $eventTarget$$8_index$$74$$) {
            $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$ = $attrs$$18_focusCellIndex_th$$.firstChild;
            if (null == $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$) {
              return;
            }
            $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$ = $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$.firstChild;
            if (null == $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$ || "SPAN" != $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$.nodeName) {
              return;
            }
            $agent$$37_currentLayer$$inline_2816_isValid_keyCode$$inline_2821$$.getAttribute($comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$, "_dr") && $JSCompiler_StaticMethods_handleDrillAction$$(this, $component$$471_elem$$64$$, $attrs$$18_focusCellIndex_th$$);
            return;
          }
        }
      } else {
        switch($keyCode$$15_newCellIndex$$inline_2822$$) {
          case AdfKeyStroke.ESC_KEY:
            $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$.cancel();
            $JSCompiler_StaticMethods_preserveEditingBehavior$$(this) || void 0 == $eventTarget$$8_index$$74$$.$_afrOldValue$ ? $JSCompiler_StaticMethods_preserveEditingBehavior$$(this) && ($JSCompiler_StaticMethods__clearMessageAndRevalidate$$($comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$), $JSCompiler_StaticMethods__processDismissCTE$$(this, $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$)) : AdfDhtmlPivotTablePeer.$_hasFocusCellValueChanged$($eventTarget$$8_index$$74$$) ? 
            (AdfPage.PAGE.scheduleTimer(null, AdfDhtmlPivotTablePeer.$_restoreFocusCellValue$, $eventTarget$$8_index$$74$$, 0), $JSCompiler_StaticMethods__isClickToEditAll$$(this) && ($comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$ = $JSCompiler_StaticMethods__findInputComponent$$(this, $eventTarget$$8_index$$74$$, this.$_activeCell$), null != $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$ && ($comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$.resetValue(), 
            $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$ = AdfRichUIPeer.getDomElementForComponent($comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$), null != $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$ && $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$.removeAttribute("_afrCellDirty")))) : ($JSCompiler_StaticMethods__isClickToEditAll$$(this) || $JSCompiler_StaticMethods__clearMessageAndRevalidate$$($comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$), 
            $JSCompiler_StaticMethods__processDismissCTE$$(this, $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$), this.$_isNavigationMode$ = !0);
            break;
          case AdfKeyStroke.TAB_KEY:
          ;
          case AdfKeyStroke.ENTER_KEY:
            $agent$$37_currentLayer$$inline_2816_isValid_keyCode$$inline_2821$$ = !0;
            void 0 != $eventTarget$$8_index$$74$$.$_afrOldValue$ && $eventTarget$$8_index$$74$$.$_afrOldValue$ != $eventTarget$$8_index$$74$$.value && ($agent$$37_currentLayer$$inline_2816_isValid_keyCode$$inline_2821$$ = $JSCompiler_StaticMethods__clearMessageAndRevalidate$$($comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$));
            $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$.cancel();
            $agent$$37_currentLayer$$inline_2816_isValid_keyCode$$inline_2821$$ && ($keyCode$$15_newCellIndex$$inline_2822$$ == AdfKeyStroke.TAB_KEY ? $JSCompiler_StaticMethods_handleTabLeftRightKey_EditMode$$(this, $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$, $keyCode$$15_newCellIndex$$inline_2822$$) : $JSCompiler_StaticMethods_handleEnterUpDownKey_EditMode$$(this, $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$, $keyCode$$15_newCellIndex$$inline_2822$$));
            break;
          case AdfKeyStroke.ARROWLEFT_KEY:
          ;
          case AdfKeyStroke.ARROWRIGHT_KEY:
          ;
          case AdfKeyStroke.ARROWUP_KEY:
          ;
          case AdfKeyStroke.ARROWDOWN_KEY:
            $JSCompiler_StaticMethods_preserveEditingBehavior$$(this) || !$ctrlKey$$3$$ || $domElem$$5_shiftKey$$3$$ || ($agent$$37_currentLayer$$inline_2816_isValid_keyCode$$inline_2821$$ = !0, void 0 != $eventTarget$$8_index$$74$$.$_afrOldValue$ && $eventTarget$$8_index$$74$$.$_afrOldValue$ != $eventTarget$$8_index$$74$$.value && ($agent$$37_currentLayer$$inline_2816_isValid_keyCode$$inline_2821$$ = $JSCompiler_StaticMethods__clearMessageAndRevalidate$$($comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$)), 
            $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$.cancel(), $agent$$37_currentLayer$$inline_2816_isValid_keyCode$$inline_2821$$ && ($keyCode$$15_newCellIndex$$inline_2822$$ == AdfKeyStroke.ARROWLEFT_KEY || $keyCode$$15_newCellIndex$$inline_2822$$ == AdfKeyStroke.ARROWRIGHT_KEY ? $JSCompiler_StaticMethods_handleTabLeftRightKey_EditMode$$(this, $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$, $keyCode$$15_newCellIndex$$inline_2822$$) : 
            $JSCompiler_StaticMethods_handleEnterUpDownKey_EditMode$$(this, $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$, $keyCode$$15_newCellIndex$$inline_2822$$)));
        }
        return;
      }
    }
    switch($keyCode$$15_newCellIndex$$inline_2822$$) {
      case 16:
      ;
      case 18:
        if (this.$_isAda$) {
          break;
        }
        $altKey$$3$$ && $domElem$$5_shiftKey$$3$$ && !this.$_showingPivotHandleForShiftAlt$ && $JSCompiler_StaticMethods_isPivotEnabled$$(this) && ($comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$ = $JSCompiler_StaticMethods_getSelectedEdge$$(this), $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$ == AdfPivotTableUtils.$ROW_EDGE$ || $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$ == AdfPivotTableUtils.$COLUMN_EDGE$) && 
        ($agent$$37_currentLayer$$inline_2816_isValid_keyCode$$inline_2821$$ = $JSCompiler_StaticMethods_getLayerOfSelection$$(this), $JSCompiler_StaticMethods_isPivotable$$(this, $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$, $agent$$37_currentLayer$$inline_2816_isValid_keyCode$$inline_2821$$) && ($JSCompiler_StaticMethods_hidePivotHandle$$(this), $JSCompiler_StaticMethods_showPivotHandle$$(this, $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$, 
        $agent$$37_currentLayer$$inline_2816_isValid_keyCode$$inline_2821$$, $JSCompiler_StaticMethods_getPivotHandle$$(this, $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$, $agent$$37_currentLayer$$inline_2816_isValid_keyCode$$inline_2821$$)), this.$_showingPivotHandleForShiftAlt$ = !0));
        break;
      case AdfKeyStroke.ARROWRIGHT_KEY:
      ;
      case AdfKeyStroke.ARROWDOWN_KEY:
      ;
      case AdfKeyStroke.ARROWUP_KEY:
      ;
      case AdfKeyStroke.ARROWLEFT_KEY:
        if (this.$_isAda$) {
          break;
        }
        $altKey$$3$$ ? $ctrlKey$$3$$ || this.$_attachmentMode$ || $JSCompiler_StaticMethods_handleKeyboardPivoting$$(this, $keyCode$$15_newCellIndex$$inline_2822$$, $domElem$$5_shiftKey$$3$$) : !$ctrlKey$$3$$ || $domElem$$5_shiftKey$$3$$ ? ($JSCompiler_StaticMethods_handleKeyboardNavigation$$(this, $domElem$$5_shiftKey$$3$$, $keyCode$$15_newCellIndex$$inline_2822$$, !1), $JSCompiler_StaticMethods__focusElement$$(this.getDomElement())) : $JSCompiler_StaticMethods_handleCtrlArrowNavigation$$(this, 
        $keyCode$$15_newCellIndex$$inline_2822$$);
        $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$.cancel();
        break;
      case AdfKeyStroke.ESC_KEY:
        if (this.$_isAda$) {
          break;
        }
        $altKey$$3$$ && $domElem$$5_shiftKey$$3$$ && $JSCompiler_StaticMethods_endKeyboardPivoting$$(this, !0);
        break;
      case AdfKeyStroke.SPACE_KEY:
        if (this.$_isAda$) {
          break;
        }
        $attrs$$18_focusCellIndex_th$$ = this.$_focusCellIndex$;
        null != $attrs$$18_focusCellIndex_th$$ && $JSCompiler_StaticMethods_getEdge$$($attrs$$18_focusCellIndex_th$$) != AdfPivotTableUtils.$DATABODY$ && $JSCompiler_StaticMethods_handleHeaderSelection$$(this, $attrs$$18_focusCellIndex_th$$, $domEvent$$40$$);
        $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$.cancel();
        break;
      case AdfKeyStroke.F2_KEY:
        if (this.$_isAda$) {
          break;
        }
        $JSCompiler_StaticMethods_editCellWithFocus$$(this);
        break;
      case AdfKeyStroke.TAB_KEY:
        if (this.$_isAda$) {
          break;
        }
        if (null != this.$_focusCellIndex$ && $JSCompiler_StaticMethods_getEdge$$(this.$_focusCellIndex$) == AdfPivotTableUtils.$DATABODY$) {
          if (null != this.$_activeCell$) {
            $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$.cancel();
          } else {
            if ($JSCompiler_StaticMethods__isReadOnly$$(this) && !$JSCompiler_StaticMethods_preserveEditingBehavior$$(this)) {
              a: {
                if (this.$_currentRequest$ != AdfDhtmlPivotTablePeer.$PARTIAL$) {
                  $agent$$37_currentLayer$$inline_2816_isValid_keyCode$$inline_2821$$ = -1;
                  if ($domElem$$5_shiftKey$$3$$) {
                    if (0 == this.$_focusCellIndex$.column) {
                      if (0 < this.$_focusCellIndex$.row) {
                        $keyCode$$15_newCellIndex$$inline_2822$$ = $JSCompiler_StaticMethods_newDataCellIndex$$(this.$_focusCellIndex$.row - 1, this.$_ptUtils$.$_colExtent$ - 1), $JSCompiler_StaticMethods_scrollToCellIndexCTE$$(this, $keyCode$$15_newCellIndex$$inline_2822$$);
                      } else {
                        break a;
                      }
                    } else {
                      $agent$$37_currentLayer$$inline_2816_isValid_keyCode$$inline_2821$$ = this.$_ptUtils$.$_rightToLeft$ ? AdfKeyStroke.ARROWRIGHT_KEY : AdfKeyStroke.ARROWLEFT_KEY;
                    }
                  } else {
                    if (this.$_focusCellIndex$.column == this.$_ptUtils$.$_colExtent$ - 1) {
                      if (this.$_focusCellIndex$.row < this.$_ptUtils$.$_rowExtent$ - 1) {
                        $keyCode$$15_newCellIndex$$inline_2822$$ = $JSCompiler_StaticMethods_newDataCellIndex$$(this.$_focusCellIndex$.row + 1, 0), $JSCompiler_StaticMethods_scrollToCellIndexCTE$$(this, $keyCode$$15_newCellIndex$$inline_2822$$);
                      } else {
                        break a;
                      }
                    } else {
                      $agent$$37_currentLayer$$inline_2816_isValid_keyCode$$inline_2821$$ = this.$_ptUtils$.$_rightToLeft$ ? AdfKeyStroke.ARROWLEFT_KEY : AdfKeyStroke.ARROWRIGHT_KEY;
                    }
                  }
                  -1 != $agent$$37_currentLayer$$inline_2816_isValid_keyCode$$inline_2821$$ && $JSCompiler_StaticMethods_handleKeyboardNavigation$$(this, !1, $agent$$37_currentLayer$$inline_2816_isValid_keyCode$$inline_2821$$, !1);
                  $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$.cancel();
                }
              }
            } else {
              $JSCompiler_StaticMethods_handleTABKey_NonEditMode$$(this, $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$);
            }
          }
        } else {
          $JSCompiler_StaticMethods_handleTABKey_NonEditMode$$(this, $comp$$6_componentEvent$$92_currentEdge$$inline_2815_div$$2_domElement$$171_span$$);
        }
        break;
      case AdfKeyStroke.M_KEY:
        $ctrlKey$$3$$ && $altKey$$3$$ && this.$handleKeyboardContextMenu$($domEvent$$40$$);
        break;
      case AdfKeyStroke.ENTER_KEY:
        this.$_isAda$ || $JSCompiler_StaticMethods_preserveEditingBehavior$$(this) || ($JSCompiler_StaticMethods__isReadOnly$$(this) ? $JSCompiler_StaticMethods_handleEnterKey$$(this, $domEvent$$40$$) : (this.$domEventForReadOnlyContentCheck$ = AdfAgent.AGENT.copyEvent($domEvent$$40$$), $JSCompiler_StaticMethods_editCellWithFocus$$(this)));
    }
  }
};
$goog$exportSymbol$$("AdfDhtmlPivotTablePeer.prototype.HandleComponentKeyDown", AdfDhtmlPivotTablePeer.prototype.$HandleComponentKeyDown$);
AdfDhtmlPivotTablePeer.prototype.HandleComponentKeyUp = function $AdfDhtmlPivotTablePeer$$HandleComponentKeyUp$($componentEvent$$93_domEvent$$41$$) {
  this.$_isAda$ || ($componentEvent$$93_domEvent$$41$$ = $componentEvent$$93_domEvent$$41$$.getNativeEvent(), (!$componentEvent$$93_domEvent$$41$$.altKey || !$componentEvent$$93_domEvent$$41$$.shiftKey && this.$_keyboardPivotingShiftKey$) && $JSCompiler_StaticMethods_endKeyboardPivoting$$(this, !1));
};
$goog$exportSymbol$$("AdfDhtmlPivotTablePeer.prototype.HandleComponentKeyUp", AdfDhtmlPivotTablePeer.prototype.HandleComponentKeyUp);
AdfDhtmlPivotTablePeer.$_hasFocusCellValueChanged$ = function $AdfDhtmlPivotTablePeer$$_hasFocusCellValueChanged$$($eventTarget$$9$$) {
  if ("INPUT" == $eventTarget$$9$$.tagName) {
    if ("text" == $eventTarget$$9$$.type) {
      return $eventTarget$$9$$.$_afrOldValue$ != $eventTarget$$9$$.value;
    }
    if ("checkbox" == $eventTarget$$9$$.type || "radio" == $eventTarget$$9$$.type) {
      return $eventTarget$$9$$.$_afrOldValue$ != $eventTarget$$9$$.checked;
    }
  } else {
    if ("SELECT" == $eventTarget$$9$$.tagName) {
      for (var $i$$151$$ = 0;$i$$151$$ < $eventTarget$$9$$.options.length;$i$$151$$++) {
        if ($eventTarget$$9$$.options[$i$$151$$].selected) {
          return $eventTarget$$9$$.$_afrOldValue$ != $eventTarget$$9$$.options[$i$$151$$].value;
        }
      }
    } else {
      if ("TEXTAREA" == $eventTarget$$9$$.tagName) {
        return $eventTarget$$9$$.$_afrOldValue$ != $eventTarget$$9$$.value;
      }
    }
  }
  return !1;
};
AdfDhtmlPivotTablePeer.$_saveFocusCellValue$ = function $AdfDhtmlPivotTablePeer$$_saveFocusCellValue$$($eventTarget$$10$$) {
  if ("INPUT" == $eventTarget$$10$$.tagName) {
    if ("text" == $eventTarget$$10$$.type) {
      $eventTarget$$10$$.$_afrOldValue$ = $eventTarget$$10$$.value;
    } else {
      if ("checkbox" == $eventTarget$$10$$.type || "radio" == $eventTarget$$10$$.type) {
        $eventTarget$$10$$.$_afrOldValue$ = $eventTarget$$10$$.checked;
      }
    }
  } else {
    if ("SELECT" == $eventTarget$$10$$.tagName) {
      for (var $i$$152$$ = 0;$i$$152$$ < $eventTarget$$10$$.options.length;$i$$152$$++) {
        $eventTarget$$10$$.options[$i$$152$$].selected && ($eventTarget$$10$$.$_afrOldValue$ = $eventTarget$$10$$.options[$i$$152$$].value);
      }
    } else {
      "TEXTAREA" == $eventTarget$$10$$.tagName && ($eventTarget$$10$$.$_afrOldValue$ = $eventTarget$$10$$.value);
    }
  }
};
AdfDhtmlPivotTablePeer.$_restoreFocusCellValue$ = function $AdfDhtmlPivotTablePeer$$_restoreFocusCellValue$$($eventTarget$$11$$) {
  if ("INPUT" == $eventTarget$$11$$.tagName) {
    if ("text" == $eventTarget$$11$$.type) {
      $eventTarget$$11$$.value = $eventTarget$$11$$.$_afrOldValue$, $eventTarget$$11$$.select();
    } else {
      if ("checkbox" == $eventTarget$$11$$.type || "radio" == $eventTarget$$11$$.type) {
        $eventTarget$$11$$.checked = $eventTarget$$11$$.$_afrOldValue$;
      }
    }
  } else {
    if ("SELECT" == $eventTarget$$11$$.tagName) {
      for (var $i$$153$$ = 0;$i$$153$$ < $eventTarget$$11$$.options.length;$i$$153$$++) {
        $eventTarget$$11$$.options[$i$$153$$].selected = !1, $eventTarget$$11$$.$_afrOldValue$ == $eventTarget$$11$$.options[$i$$153$$].value && ($eventTarget$$11$$.options[$i$$153$$].selected = !0);
      }
    } else {
      "TEXTAREA" == $eventTarget$$11$$.tagName && ($eventTarget$$11$$.value = $eventTarget$$11$$.$_afrOldValue$, $eventTarget$$11$$.select());
    }
  }
};
function $JSCompiler_StaticMethods_isDataCellInBuffer$$($JSCompiler_StaticMethods_isDataCellInBuffer$self$$, $dataCellIndex$$2$$) {
  for (var $edge$$11$$ = 0;2 > $edge$$11$$;++$edge$$11$$) {
    var $slice$$3$$ = $dataCellIndex$$2$$[$JSCompiler_StaticMethods_isDataCellInBuffer$self$$.$_ptUtils$.$sliceAttr$[$edge$$11$$]], $bufferEndSlice_pane$$1$$ = $slice$$3$$ < $JSCompiler_StaticMethods_isDataCellInBuffer$self$$.$_ptUtils$.$_splitSlice$[$edge$$11$$] ? 0 : 1, $bufferStartSlice$$ = $JSCompiler_StaticMethods_getBufferStartSlice$$($JSCompiler_StaticMethods_isDataCellInBuffer$self$$, $edge$$11$$, $bufferEndSlice_pane$$1$$);
    if ($slice$$3$$ < $bufferStartSlice$$) {
      return !1;
    }
    $bufferEndSlice_pane$$1$$ = $JSCompiler_StaticMethods_getBufferEndSlice$$($JSCompiler_StaticMethods_isDataCellInBuffer$self$$, $edge$$11$$, $bufferEndSlice_pane$$1$$);
    if ($slice$$3$$ >= $bufferEndSlice_pane$$1$$) {
      return !1;
    }
  }
  return !0;
}
function $JSCompiler_StaticMethods_handleEnterKey$$($JSCompiler_StaticMethods_handleEnterKey$self$$, $domEvent$$42$$) {
  if (null != $JSCompiler_StaticMethods_handleEnterKey$self$$.$_focusCellIndex$) {
    var $activeCellKey$$1_newCellIndex_scroller$$14$$;
    $domEvent$$42$$.shiftKey ? $JSCompiler_StaticMethods_handleEnterKey$self$$.$_focusCellIndex$.row == $JSCompiler_StaticMethods_handleEnterKey$self$$.$_ptUtils$.$_splitSlice$[1] ? $activeCellKey$$1_newCellIndex_scroller$$14$$ = $JSCompiler_StaticMethods_closestVisibleDataCellIndex$$($JSCompiler_StaticMethods_handleEnterKey$self$$, 1, 0, !1, $JSCompiler_StaticMethods_handleEnterKey$self$$.$_focusCellIndex$.column) : 0 < $JSCompiler_StaticMethods_handleEnterKey$self$$.$_focusCellIndex$.row && ($activeCellKey$$1_newCellIndex_scroller$$14$$ = 
    $JSCompiler_StaticMethods_newDataCellIndex$$($JSCompiler_StaticMethods_handleEnterKey$self$$.$_focusCellIndex$.row - 1, $JSCompiler_StaticMethods_handleEnterKey$self$$.$_focusCellIndex$.column)) : $JSCompiler_StaticMethods_handleEnterKey$self$$.$_focusCellIndex$.row + 1 == $JSCompiler_StaticMethods_handleEnterKey$self$$.$_ptUtils$.$_splitSlice$[1] ? $activeCellKey$$1_newCellIndex_scroller$$14$$ = $JSCompiler_StaticMethods_closestVisibleDataCellIndex$$($JSCompiler_StaticMethods_handleEnterKey$self$$, 
    1, 1, !0, $JSCompiler_StaticMethods_handleEnterKey$self$$.$_focusCellIndex$.column) : $JSCompiler_StaticMethods_handleEnterKey$self$$.$_focusCellIndex$.row + 1 < $JSCompiler_StaticMethods_handleEnterKey$self$$.$_ptUtils$.$_rowExtent$ && ($activeCellKey$$1_newCellIndex_scroller$$14$$ = $JSCompiler_StaticMethods_newDataCellIndex$$($JSCompiler_StaticMethods_handleEnterKey$self$$.$_focusCellIndex$.row + 1, $JSCompiler_StaticMethods_handleEnterKey$self$$.$_focusCellIndex$.column));
    if (null == $activeCellKey$$1_newCellIndex_scroller$$14$$) {
      $JSCompiler_StaticMethods__isReadOnly$$($JSCompiler_StaticMethods_handleEnterKey$self$$) || $JSCompiler_StaticMethods__isClickToEditAll$$($JSCompiler_StaticMethods_handleEnterKey$self$$) || ($activeCellKey$$1_newCellIndex_scroller$$14$$ = $JSCompiler_StaticMethods_handleEnterKey$self$$.getComponent().getProperty(AdfRichPivotTable.$__ACTIVE_CELL_KEY$), $JSCompiler_StaticMethods__queueClickToEditEvent$$($JSCompiler_StaticMethods_handleEnterKey$self$$, $activeCellKey$$1_newCellIndex_scroller$$14$$, 
      null, $JSCompiler_StaticMethods_handleEnterKey$self$$.$_cellRowHeight$, null) && ($JSCompiler_StaticMethods_handleEnterKey$self$$.$_oldActiveCellKey$ = $activeCellKey$$1_newCellIndex_scroller$$14$$));
    } else {
      if ($JSCompiler_StaticMethods_isDataCellInBuffer$$($JSCompiler_StaticMethods_handleEnterKey$self$$, $activeCellKey$$1_newCellIndex_scroller$$14$$)) {
        $JSCompiler_StaticMethods_selectAndFocusDataCell$$($JSCompiler_StaticMethods_handleEnterKey$self$$, $activeCellKey$$1_newCellIndex_scroller$$14$$), $JSCompiler_StaticMethods_scrollToDataCell$$($JSCompiler_StaticMethods_handleEnterKey$self$$, $activeCellKey$$1_newCellIndex_scroller$$14$$), $JSCompiler_StaticMethods__isReadOnly$$($JSCompiler_StaticMethods_handleEnterKey$self$$) || $JSCompiler_StaticMethods_editCellWithFocus$$($JSCompiler_StaticMethods_handleEnterKey$self$$);
      } else {
        var $cellHeight_isLongScroll$$ = $JSCompiler_StaticMethods_handleEnterKey$self$$.$_focusCellIndex$.column != $activeCellKey$$1_newCellIndex_scroller$$14$$.column;
        $JSCompiler_StaticMethods_selectAndFocusDataCell$$($JSCompiler_StaticMethods_handleEnterKey$self$$, $activeCellKey$$1_newCellIndex_scroller$$14$$);
        $JSCompiler_StaticMethods_handleEnterKey$self$$.$_isEditingCellWithFocus$ = !0;
        $cellHeight_isLongScroll$$ ? $JSCompiler_StaticMethods_handleEnterKey$self$$.$longJumpToCell$($activeCellKey$$1_newCellIndex_scroller$$14$$.row, $activeCellKey$$1_newCellIndex_scroller$$14$$.column) : ($activeCellKey$$1_newCellIndex_scroller$$14$$ = $JSCompiler_StaticMethods_handleEnterKey$self$$.$_ptUtils$.$_databodyScrollers$[$activeCellKey$$1_newCellIndex_scroller$$14$$.row < $JSCompiler_StaticMethods_handleEnterKey$self$$.$_ptUtils$.$_splitSlice$[1] ? 0 : 1][1], $cellHeight_isLongScroll$$ = 
        $JSCompiler_StaticMethods_handleEnterKey$self$$.$_activeCell$.parentNode.offsetHeight, $activeCellKey$$1_newCellIndex_scroller$$14$$.scrollTop = $domEvent$$42$$.shiftKey ? $activeCellKey$$1_newCellIndex_scroller$$14$$.scrollTop - $cellHeight_isLongScroll$$ : $activeCellKey$$1_newCellIndex_scroller$$14$$.scrollTop + $cellHeight_isLongScroll$$, $JSCompiler_StaticMethods_handleEnterKey$self$$.$HandleDomScroll$($JSCompiler_StaticMethods_handleEnterKey$self$$.getComponent(), null));
      }
    }
  }
}
function $JSCompiler_StaticMethods_handleEnterUpDownKey_EditMode$$($JSCompiler_StaticMethods_handleEnterUpDownKey_EditMode$self$$, $componentEvent$$94_shortScroll$$, $keyCode$$16$$) {
  var $activeCellKey$$2_domEvent$$43$$ = $componentEvent$$94_shortScroll$$.getNativeEvent();
  if ($keyCode$$16$$ == AdfKeyStroke.ENTER_KEY) {
    $JSCompiler_StaticMethods_handleEnterKey$$($JSCompiler_StaticMethods_handleEnterUpDownKey_EditMode$self$$, $activeCellKey$$2_domEvent$$43$$);
  } else {
    if ($keyCode$$16$$ == AdfKeyStroke.ARROWUP_KEY && 0 == $JSCompiler_StaticMethods_handleEnterUpDownKey_EditMode$self$$.$_focusCellIndex$.row) {
      $JSCompiler_StaticMethods_handleEnterUpDownKey_EditMode$self$$.$_navigateToHeaderKeyCode$ = AdfKeyStroke.ARROWUP_KEY, $JSCompiler_StaticMethods__processDismissCTE$$($JSCompiler_StaticMethods_handleEnterUpDownKey_EditMode$self$$, $componentEvent$$94_shortScroll$$);
    } else {
      if ($keyCode$$16$$ == AdfKeyStroke.ARROWDOWN_KEY || $keyCode$$16$$ == AdfKeyStroke.ARROWUP_KEY) {
        $JSCompiler_StaticMethods_handleEnterUpDownKey_EditMode$self$$.$_setFocusOnLastElement$ = $keyCode$$16$$ == AdfKeyStroke.ARROWUP_KEY ? !0 : !1, $JSCompiler_StaticMethods_handleKeyboardNavigation$$($JSCompiler_StaticMethods_handleEnterUpDownKey_EditMode$self$$, !1, $keyCode$$16$$, !0), ($componentEvent$$94_shortScroll$$ = $JSCompiler_StaticMethods__isShortScrollActive$$($JSCompiler_StaticMethods_handleEnterUpDownKey_EditMode$self$$)) ? $JSCompiler_StaticMethods_handleEnterUpDownKey_EditMode$self$$.$_isEditingCellWithFocus$ = 
        !0 : ($activeCellKey$$2_domEvent$$43$$ = $JSCompiler_StaticMethods_getCoordinates$$($JSCompiler_StaticMethods_handleEnterUpDownKey_EditMode$self$$, $JSCompiler_StaticMethods_handleEnterUpDownKey_EditMode$self$$.$_activeCell$), ($keyCode$$16$$ != AdfKeyStroke.ARROWDOWN_KEY || null == $JSCompiler_StaticMethods_handleEnterUpDownKey_EditMode$self$$.$_focusCellIndex$ || $componentEvent$$94_shortScroll$$ || $activeCellKey$$2_domEvent$$43$$.col != $JSCompiler_StaticMethods_handleEnterUpDownKey_EditMode$self$$.$_focusCellIndex$.column || 
        $activeCellKey$$2_domEvent$$43$$.row != $JSCompiler_StaticMethods_handleEnterUpDownKey_EditMode$self$$.$_focusCellIndex$.row) && $JSCompiler_StaticMethods_editCellWithFocus$$($JSCompiler_StaticMethods_handleEnterUpDownKey_EditMode$self$$));
      }
    }
  }
}
function $JSCompiler_StaticMethods_scrollToCellIndexCTE$$($JSCompiler_StaticMethods_scrollToCellIndexCTE$self$$, $newCellIndex$$1$$) {
  $JSCompiler_StaticMethods_selectAndFocusDataCell$$($JSCompiler_StaticMethods_scrollToCellIndexCTE$self$$, $newCellIndex$$1$$);
  $JSCompiler_StaticMethods_isDataCellInBuffer$$($JSCompiler_StaticMethods_scrollToCellIndexCTE$self$$, $newCellIndex$$1$$) ? ($JSCompiler_StaticMethods_scrollToDataCell$$($JSCompiler_StaticMethods_scrollToCellIndexCTE$self$$, $newCellIndex$$1$$), $JSCompiler_StaticMethods__isReadOnly$$($JSCompiler_StaticMethods_scrollToCellIndexCTE$self$$) || $JSCompiler_StaticMethods_editCellWithFocus$$($JSCompiler_StaticMethods_scrollToCellIndexCTE$self$$)) : ($JSCompiler_StaticMethods_scrollToCellIndexCTE$self$$.$_isEditingCellWithFocus$ = 
  !0, $JSCompiler_StaticMethods_scrollToCellIndexCTE$self$$.$longJumpToCell$($newCellIndex$$1$$.row, $newCellIndex$$1$$.column));
}
function $JSCompiler_StaticMethods_handleEditLeftCell$$($JSCompiler_StaticMethods_handleEditLeftCell$self$$, $componentEvent$$96_newCellIndex$$3$$, $isTabKey$$) {
  var $activeCellKey$$3$$ = $JSCompiler_StaticMethods_getCoordinates$$($JSCompiler_StaticMethods_handleEditLeftCell$self$$, $JSCompiler_StaticMethods_handleEditLeftCell$self$$.$_activeCell$);
  0 != $activeCellKey$$3$$.col && !$JSCompiler_StaticMethods_handleEditLeftCell$self$$.$_ptUtils$.$_rightToLeft$ || $activeCellKey$$3$$.col < $JSCompiler_StaticMethods_handleEditLeftCell$self$$.$_ptUtils$.$_colExtent$ - 1 && $JSCompiler_StaticMethods_handleEditLeftCell$self$$.$_ptUtils$.$_rightToLeft$ ? ($JSCompiler_StaticMethods_handleEditLeftCell$self$$.$_setFocusOnLastElement$ = !0, $JSCompiler_StaticMethods_handleKeyboardNavigation$$($JSCompiler_StaticMethods_handleEditLeftCell$self$$, !1, AdfKeyStroke.ARROWLEFT_KEY, 
  !0), $JSCompiler_StaticMethods__isShortScrollActive$$($JSCompiler_StaticMethods_handleEditLeftCell$self$$) && ($JSCompiler_StaticMethods_handleEditLeftCell$self$$.$_isEditingCellWithFocus$ = !0, $JSCompiler_StaticMethods__isClickToEditAll$$($JSCompiler_StaticMethods_handleEditLeftCell$self$$) && $JSCompiler_StaticMethods__dismissPreviousActiveCell$$($JSCompiler_StaticMethods_handleEditLeftCell$self$$, $JSCompiler_StaticMethods_handleEditLeftCell$self$$.$_activeCell$, $JSCompiler_StaticMethods_handleEditLeftCell$self$$.$_activeCell$, 
  $JSCompiler_StaticMethods_handleEditLeftCell$self$$.$_oldRowHeight$)), $JSCompiler_StaticMethods_editCellWithFocus$$($JSCompiler_StaticMethods_handleEditLeftCell$self$$)) : $isTabKey$$ ? $JSCompiler_StaticMethods_handleEditLeftCell$self$$.$_ptUtils$.$_rightToLeft$ || 0 != $activeCellKey$$3$$.col ? $JSCompiler_StaticMethods_handleEditLeftCell$self$$.$_ptUtils$.$_rightToLeft$ && $activeCellKey$$3$$.col == $JSCompiler_StaticMethods_handleEditLeftCell$self$$.$_ptUtils$.$_colExtent$ - 1 && ($JSCompiler_StaticMethods_preserveEditingBehavior$$($JSCompiler_StaticMethods_handleEditLeftCell$self$$) || 
  $activeCellKey$$3$$.row == $JSCompiler_StaticMethods_handleEditLeftCell$self$$.$_ptUtils$.$_rowExtent$ - 1 ? $JSCompiler_StaticMethods__processDismissCTE$$($JSCompiler_StaticMethods_handleEditLeftCell$self$$, $componentEvent$$96_newCellIndex$$3$$) : ($componentEvent$$96_newCellIndex$$3$$ = $JSCompiler_StaticMethods_newDataCellIndex$$($JSCompiler_StaticMethods_handleEditLeftCell$self$$.$_focusCellIndex$.row + 1, 0), $JSCompiler_StaticMethods_scrollToCellIndexCTE$$($JSCompiler_StaticMethods_handleEditLeftCell$self$$, 
  $componentEvent$$96_newCellIndex$$3$$))) : $JSCompiler_StaticMethods_preserveEditingBehavior$$($JSCompiler_StaticMethods_handleEditLeftCell$self$$) || 0 == $JSCompiler_StaticMethods_handleEditLeftCell$self$$.$_focusCellIndex$.row ? $JSCompiler_StaticMethods__processDismissCTE$$($JSCompiler_StaticMethods_handleEditLeftCell$self$$, $componentEvent$$96_newCellIndex$$3$$) : ($componentEvent$$96_newCellIndex$$3$$ = $JSCompiler_StaticMethods_newDataCellIndex$$($JSCompiler_StaticMethods_handleEditLeftCell$self$$.$_focusCellIndex$.row - 
  1, $JSCompiler_StaticMethods_handleEditLeftCell$self$$.$_ptUtils$.$_colExtent$ - 1), $JSCompiler_StaticMethods_scrollToCellIndexCTE$$($JSCompiler_StaticMethods_handleEditLeftCell$self$$, $componentEvent$$96_newCellIndex$$3$$)) : $JSCompiler_StaticMethods_handleEditLeftCell$self$$.$_ptUtils$.$_rightToLeft$ || 0 != $activeCellKey$$3$$.col || ($JSCompiler_StaticMethods_handleEditLeftCell$self$$.$_navigateToHeaderKeyCode$ = AdfKeyStroke.ARROWLEFT_KEY, $JSCompiler_StaticMethods__processDismissCTE$$($JSCompiler_StaticMethods_handleEditLeftCell$self$$, 
  $componentEvent$$96_newCellIndex$$3$$));
}
function $JSCompiler_StaticMethods_handleEditRightCell$$($JSCompiler_StaticMethods_handleEditRightCell$self$$, $componentEvent$$97_newCellIndex$$4$$, $isTabKey$$1$$) {
  var $activeCellKey$$4$$ = $JSCompiler_StaticMethods_getCoordinates$$($JSCompiler_StaticMethods_handleEditRightCell$self$$, $JSCompiler_StaticMethods_handleEditRightCell$self$$.$_activeCell$);
  $activeCellKey$$4$$.col < $JSCompiler_StaticMethods_handleEditRightCell$self$$.$_ptUtils$.$_colExtent$ - 1 && !$JSCompiler_StaticMethods_handleEditRightCell$self$$.$_ptUtils$.$_rightToLeft$ || 0 != $activeCellKey$$4$$.col && $JSCompiler_StaticMethods_handleEditRightCell$self$$.$_ptUtils$.$_rightToLeft$ ? ($JSCompiler_StaticMethods_handleKeyboardNavigation$$($JSCompiler_StaticMethods_handleEditRightCell$self$$, !1, AdfKeyStroke.ARROWRIGHT_KEY, !0), $JSCompiler_StaticMethods__isShortScrollActive$$($JSCompiler_StaticMethods_handleEditRightCell$self$$) && 
  ($JSCompiler_StaticMethods_handleEditRightCell$self$$.$_isEditingCellWithFocus$ = !0, $JSCompiler_StaticMethods__isClickToEditAll$$($JSCompiler_StaticMethods_handleEditRightCell$self$$) && $JSCompiler_StaticMethods__dismissPreviousActiveCell$$($JSCompiler_StaticMethods_handleEditRightCell$self$$, $JSCompiler_StaticMethods_handleEditRightCell$self$$.$_activeCell$, $JSCompiler_StaticMethods_handleEditRightCell$self$$.$_activeCell$, $JSCompiler_StaticMethods_handleEditRightCell$self$$.$_oldRowHeight$)), 
  $JSCompiler_StaticMethods_editCellWithFocus$$($JSCompiler_StaticMethods_handleEditRightCell$self$$)) : $JSCompiler_StaticMethods_handleEditRightCell$self$$.$_ptUtils$.$_rightToLeft$ || $activeCellKey$$4$$.col != $JSCompiler_StaticMethods_handleEditRightCell$self$$.$_ptUtils$.$_colExtent$ - 1 ? $JSCompiler_StaticMethods_handleEditRightCell$self$$.$_ptUtils$.$_rightToLeft$ && 0 == $activeCellKey$$4$$.col && ($isTabKey$$1$$ ? 0 == $JSCompiler_StaticMethods_handleEditRightCell$self$$.$_focusCellIndex$.row ? 
  $JSCompiler_StaticMethods__processDismissCTE$$($JSCompiler_StaticMethods_handleEditRightCell$self$$, $componentEvent$$97_newCellIndex$$4$$) : ($componentEvent$$97_newCellIndex$$4$$ = $JSCompiler_StaticMethods_newDataCellIndex$$($JSCompiler_StaticMethods_handleEditRightCell$self$$.$_focusCellIndex$.row - 1, $JSCompiler_StaticMethods_handleEditRightCell$self$$.$_ptUtils$.$_colExtent$ - 1), $JSCompiler_StaticMethods_scrollToCellIndexCTE$$($JSCompiler_StaticMethods_handleEditRightCell$self$$, $componentEvent$$97_newCellIndex$$4$$)) : 
  ($JSCompiler_StaticMethods_handleEditRightCell$self$$.$_navigateToHeaderKeyCode$ = AdfKeyStroke.ARROWRIGHT_KEY, $JSCompiler_StaticMethods__processDismissCTE$$($JSCompiler_StaticMethods_handleEditRightCell$self$$, $componentEvent$$97_newCellIndex$$4$$))) : $isTabKey$$1$$ && ($JSCompiler_StaticMethods_preserveEditingBehavior$$($JSCompiler_StaticMethods_handleEditRightCell$self$$) || $activeCellKey$$4$$.row == $JSCompiler_StaticMethods_handleEditRightCell$self$$.$_ptUtils$.$_rowExtent$ - 1 ? $JSCompiler_StaticMethods__processDismissCTE$$($JSCompiler_StaticMethods_handleEditRightCell$self$$, 
  $componentEvent$$97_newCellIndex$$4$$) : ($componentEvent$$97_newCellIndex$$4$$ = $JSCompiler_StaticMethods_newDataCellIndex$$($JSCompiler_StaticMethods_handleEditRightCell$self$$.$_focusCellIndex$.row + 1, 0), $JSCompiler_StaticMethods_scrollToCellIndexCTE$$($JSCompiler_StaticMethods_handleEditRightCell$self$$, $componentEvent$$97_newCellIndex$$4$$)));
}
function $JSCompiler_StaticMethods_handleTabLeftRightKey_EditMode$$($JSCompiler_StaticMethods_handleTabLeftRightKey_EditMode$self$$, $componentEvent$$98$$, $elems$$2_keyCode$$18$$) {
  var $domEvent$$44$$ = $componentEvent$$98$$.getNativeEvent(), $eventTarget$$12$$ = AdfAgent.AGENT.getEventTarget($domEvent$$44$$), $dataCell_index$$75$$ = $JSCompiler_StaticMethods__getDataCell$$($JSCompiler_StaticMethods_handleTabLeftRightKey_EditMode$self$$, $eventTarget$$12$$), $rightToLeft$$ = $JSCompiler_StaticMethods_handleTabLeftRightKey_EditMode$self$$.$_ptUtils$.$_rightToLeft$;
  $dataCell_index$$75$$ ? $elems$$2_keyCode$$18$$ == AdfKeyStroke.TAB_KEY ? ($elems$$2_keyCode$$18$$ = $JSCompiler_StaticMethods__getInputElementsInNode$$($JSCompiler_StaticMethods_handleTabLeftRightKey_EditMode$self$$, $dataCell_index$$75$$), $dataCell_index$$75$$ = $JSCompiler_StaticMethods__getCurrentInputElementIndex$$($elems$$2_keyCode$$18$$, $eventTarget$$12$$), $domEvent$$44$$.shiftKey && !$rightToLeft$$ || !$domEvent$$44$$.shiftKey && $rightToLeft$$ ? $JSCompiler_StaticMethods_handleTabLeftRightKey_EditMode$self$$.$_isAncestorOrSelf$($elems$$2_keyCode$$18$$[0], 
  $eventTarget$$12$$) ? $JSCompiler_StaticMethods_handleEditLeftCell$$($JSCompiler_StaticMethods_handleTabLeftRightKey_EditMode$self$$, $componentEvent$$98$$, !0) : $JSCompiler_StaticMethods__focusElement$$(-1 == $dataCell_index$$75$$ ? $elems$$2_keyCode$$18$$[0] : $elems$$2_keyCode$$18$$[$dataCell_index$$75$$ - 1]) : $JSCompiler_StaticMethods_handleTabLeftRightKey_EditMode$self$$.$_isAncestorOrSelf$($elems$$2_keyCode$$18$$[$elems$$2_keyCode$$18$$.length - 1], $eventTarget$$12$$) ? $JSCompiler_StaticMethods_handleEditRightCell$$($JSCompiler_StaticMethods_handleTabLeftRightKey_EditMode$self$$, 
  $componentEvent$$98$$, !0) : $JSCompiler_StaticMethods__focusElement$$(-1 == $dataCell_index$$75$$ ? $elems$$2_keyCode$$18$$[0] : $elems$$2_keyCode$$18$$[$dataCell_index$$75$$ + 1])) : $elems$$2_keyCode$$18$$ == AdfKeyStroke.ARROWLEFT_KEY ? $JSCompiler_StaticMethods_handleEditLeftCell$$($JSCompiler_StaticMethods_handleTabLeftRightKey_EditMode$self$$, $componentEvent$$98$$, !1) : $JSCompiler_StaticMethods_handleEditRightCell$$($JSCompiler_StaticMethods_handleTabLeftRightKey_EditMode$self$$, $componentEvent$$98$$, 
  !1) : $elems$$2_keyCode$$18$$ == AdfKeyStroke.TAB_KEY ? $domEvent$$44$$.shiftKey && !$rightToLeft$$ || !$domEvent$$44$$.shiftKey && $rightToLeft$$ ? $JSCompiler_StaticMethods_handleEditLeftCell$$($JSCompiler_StaticMethods_handleTabLeftRightKey_EditMode$self$$, $componentEvent$$98$$, !0) : $JSCompiler_StaticMethods_handleEditRightCell$$($JSCompiler_StaticMethods_handleTabLeftRightKey_EditMode$self$$, $componentEvent$$98$$, !0) : $elems$$2_keyCode$$18$$ == AdfKeyStroke.ARROWLEFT_KEY ? $JSCompiler_StaticMethods_handleEditLeftCell$$($JSCompiler_StaticMethods_handleTabLeftRightKey_EditMode$self$$, 
  $componentEvent$$98$$, !1) : $JSCompiler_StaticMethods_handleEditRightCell$$($JSCompiler_StaticMethods_handleTabLeftRightKey_EditMode$self$$, $componentEvent$$98$$, !1);
}
function $JSCompiler_StaticMethods_handleTABKey_NonEditMode$$($JSCompiler_StaticMethods_handleTABKey_NonEditMode$self$$, $componentEvent$$99$$) {
  var $domElement$$172_domEvent$$45_lastTabStop$$ = $componentEvent$$99$$.getNativeEvent();
  if (!$JSCompiler_StaticMethods_handleTABKey_NonEditMode$self$$.$_isAda$) {
    if (null == $JSCompiler_StaticMethods__getActiveCellKey$$($JSCompiler_StaticMethods_handleTABKey_NonEditMode$self$$)) {
      var $JSCompiler_inline_result$$75_domEvent$$inline_2826$$;
      a: {
        $JSCompiler_inline_result$$75_domEvent$$inline_2826$$ = $componentEvent$$99$$.getNativeEvent();
        var $eventTarget$$inline_2827_index$$inline_2832$$ = AdfAgent.AGENT.getEventTarget($JSCompiler_inline_result$$75_domEvent$$inline_2826$$), $elems$$inline_2831_focusCellIndex$$inline_2828_nodes$$inline_2830$$ = $JSCompiler_StaticMethods_handleTABKey_NonEditMode$self$$.$_focusCellIndex$;
        if (null != $elems$$inline_2831_focusCellIndex$$inline_2828_nodes$$inline_2830$$ && $JSCompiler_StaticMethods_isHeaderCellIndex$$($elems$$inline_2831_focusCellIndex$$inline_2828_nodes$$inline_2830$$)) {
          var $range$$inline_2829$$ = $JSCompiler_StaticMethods_newHeaderCellRange$$($elems$$inline_2831_focusCellIndex$$inline_2828_nodes$$inline_2830$$), $elems$$inline_2831_focusCellIndex$$inline_2828_nodes$$inline_2830$$ = $JSCompiler_StaticMethods_getNodesInHeaderCellRange$$($JSCompiler_StaticMethods_handleTABKey_NonEditMode$self$$, $range$$inline_2829$$, $elems$$inline_2831_focusCellIndex$$inline_2828_nodes$$inline_2830$$.edge);
          if (0 < $elems$$inline_2831_focusCellIndex$$inline_2828_nodes$$inline_2830$$.length && ($elems$$inline_2831_focusCellIndex$$inline_2828_nodes$$inline_2830$$ = $JSCompiler_StaticMethods__getInputElementsInNode$$($JSCompiler_StaticMethods_handleTABKey_NonEditMode$self$$, $elems$$inline_2831_focusCellIndex$$inline_2828_nodes$$inline_2830$$[0]), $eventTarget$$inline_2827_index$$inline_2832$$ = $JSCompiler_StaticMethods__getCurrentInputElementIndex$$($elems$$inline_2831_focusCellIndex$$inline_2828_nodes$$inline_2830$$, 
          $eventTarget$$inline_2827_index$$inline_2832$$), 0 < $elems$$inline_2831_focusCellIndex$$inline_2828_nodes$$inline_2830$$.length)) {
            if (!$JSCompiler_inline_result$$75_domEvent$$inline_2826$$.shiftKey && $eventTarget$$inline_2827_index$$inline_2832$$ != $elems$$inline_2831_focusCellIndex$$inline_2828_nodes$$inline_2830$$.length - 1) {
              $componentEvent$$99$$.cancel();
              $JSCompiler_StaticMethods__focusElement$$(-1 == $eventTarget$$inline_2827_index$$inline_2832$$ ? $elems$$inline_2831_focusCellIndex$$inline_2828_nodes$$inline_2830$$[0] : $elems$$inline_2831_focusCellIndex$$inline_2828_nodes$$inline_2830$$[$eventTarget$$inline_2827_index$$inline_2832$$ + 1]);
              $JSCompiler_inline_result$$75_domEvent$$inline_2826$$ = !0;
              break a;
            }
            if ($JSCompiler_inline_result$$75_domEvent$$inline_2826$$.shiftKey && 0 != $eventTarget$$inline_2827_index$$inline_2832$$) {
              $componentEvent$$99$$.cancel();
              $JSCompiler_StaticMethods__focusElement$$(-1 == $eventTarget$$inline_2827_index$$inline_2832$$ ? $elems$$inline_2831_focusCellIndex$$inline_2828_nodes$$inline_2830$$[$elems$$inline_2831_focusCellIndex$$inline_2828_nodes$$inline_2830$$.length - 1] : $elems$$inline_2831_focusCellIndex$$inline_2828_nodes$$inline_2830$$[$eventTarget$$inline_2827_index$$inline_2832$$ - 1]);
              $JSCompiler_inline_result$$75_domEvent$$inline_2826$$ = !0;
              break a;
            }
          }
        }
        $JSCompiler_inline_result$$75_domEvent$$inline_2826$$ = !1;
      }
      $JSCompiler_inline_result$$75_domEvent$$inline_2826$$ || ($domElement$$172_domEvent$$45_lastTabStop$$.shiftKey ? $JSCompiler_StaticMethods__focusElement$$($JSCompiler_StaticMethods_handleTABKey_NonEditMode$self$$.getDomElement()) : ($domElement$$172_domEvent$$45_lastTabStop$$ = $JSCompiler_StaticMethods_handleTABKey_NonEditMode$self$$.getDomElement(), $domElement$$172_domEvent$$45_lastTabStop$$ = AdfDhtmlPivotTablePeer.$_getChildById$($domElement$$172_domEvent$$45_lastTabStop$$.childNodes[0], 
      $domElement$$172_domEvent$$45_lastTabStop$$.id + "::ScrollbarTesterParent"), null != $domElement$$172_domEvent$$45_lastTabStop$$ && $JSCompiler_StaticMethods__focusElement$$($domElement$$172_domEvent$$45_lastTabStop$$)));
    } else {
      $JSCompiler_StaticMethods__clearMessageAndRevalidate$$($componentEvent$$99$$), $componentEvent$$99$$.cancel(), $JSCompiler_StaticMethods__processDismissCTE$$($JSCompiler_StaticMethods_handleTABKey_NonEditMode$self$$, $componentEvent$$99$$);
    }
  }
}
AdfDhtmlPivotTablePeer.prototype.$handleKeyboardContextMenu$ = function $AdfDhtmlPivotTablePeer$$$handleKeyboardContextMenu$$($domEvent$$47$$) {
  if (!this.$_attachmentMode$ && $JSCompiler_StaticMethods_isSelectionUiEnabled$$(this)) {
    if (this.getDomElement().focus(), this.$_isAda$) {
      var $focusCellIndex$$2_nothingSelected$$ = null == $JSCompiler_StaticMethods_getSelectedEdge$$(this);
      $JSCompiler_StaticMethods__displayContextMenu$$(this, $domEvent$$47$$, $focusCellIndex$$2_nothingSelected$$);
    } else {
      if ($focusCellIndex$$2_nothingSelected$$ = this.$_focusCellIndex$, null == $focusCellIndex$$2_nothingSelected$$) {
        $JSCompiler_StaticMethods__displayContextMenu$$(this, $domEvent$$47$$, !0);
      } else {
        if ($JSCompiler_StaticMethods_isHeaderCellIndex$$($focusCellIndex$$2_nothingSelected$$)) {
          var $nodes$$7_range$$9$$ = $JSCompiler_StaticMethods_newHeaderCellRange$$($focusCellIndex$$2_nothingSelected$$), $nodes$$7_range$$9$$ = $JSCompiler_StaticMethods_getNodesInHeaderCellRange$$(this, $nodes$$7_range$$9$$, $focusCellIndex$$2_nothingSelected$$.edge);
          0 < $nodes$$7_range$$9$$.length && (this.isSelected($focusCellIndex$$2_nothingSelected$$) || $JSCompiler_StaticMethods_selectAndFocusHeaderCell$$(this, $focusCellIndex$$2_nothingSelected$$), $JSCompiler_StaticMethods__displayContextMenu$$(this, $domEvent$$47$$, !1, $nodes$$7_range$$9$$[0]));
        } else {
          $nodes$$7_range$$9$$ = $JSCompiler_StaticMethods_newDataCellRange$$($focusCellIndex$$2_nothingSelected$$), $nodes$$7_range$$9$$ = $JSCompiler_StaticMethods_getNodesInDataCellRange$$(this, $nodes$$7_range$$9$$), 0 < $nodes$$7_range$$9$$.length && $JSCompiler_StaticMethods__displayContextMenu$$(this, $domEvent$$47$$, !1, $nodes$$7_range$$9$$[0]);
        }
      }
    }
  }
};
AdfDhtmlPivotTablePeer.prototype.HandleComponentMouseOver = function $AdfDhtmlPivotTablePeer$$HandleComponentMouseOver$($componentEvent$$101_target$$130_th$$1$$) {
  this.$_isAda$ || AdfPivotTableUtils.$isMobileTouchDevice$() || this.$_attachmentMode$ || this.$_resizeDragState$ || this.$_headerSelectionDragState$ || this.$_databodySelectionDragState$ || !this.$_isSortEnabled$ || ($componentEvent$$101_target$$130_th$$1$$ = $componentEvent$$101_target$$130_th$$1$$.getNativeEventTarget(), ($componentEvent$$101_target$$130_th$$1$$ = $JSCompiler_StaticMethods__getParentElement$$(this, $componentEvent$$101_target$$130_th$$1$$, "TH")) && $JSCompiler_StaticMethods__setSortIndicatorEnabled$$(this, 
  $componentEvent$$101_target$$130_th$$1$$, !0));
};
$goog$exportSymbol$$("AdfDhtmlPivotTablePeer.prototype.HandleComponentMouseOver", AdfDhtmlPivotTablePeer.prototype.HandleComponentMouseOver);
AdfDhtmlPivotTablePeer.prototype.$HandleComponentMouseOut$ = function $AdfDhtmlPivotTablePeer$$$HandleComponentMouseOut$$($componentEvent$$102_target$$131_th$$2$$) {
  this.$_isAda$ || AdfPivotTableUtils.$isMobileTouchDevice$() || ($JSCompiler_StaticMethods_hidePivotHandle$$(this), this.$_isSortEnabled$ && ($componentEvent$$102_target$$131_th$$2$$ = $componentEvent$$102_target$$131_th$$2$$.getNativeEventTarget(), ($componentEvent$$102_target$$131_th$$2$$ = $JSCompiler_StaticMethods__getParentElement$$(this, $componentEvent$$102_target$$131_th$$2$$, "TH")) && $JSCompiler_StaticMethods__setSortIndicatorEnabled$$(this, $componentEvent$$102_target$$131_th$$2$$, !1)));
};
$goog$exportSymbol$$("AdfDhtmlPivotTablePeer.prototype.HandleComponentMouseOut", AdfDhtmlPivotTablePeer.prototype.$HandleComponentMouseOut$);
AdfDhtmlPivotTablePeer.prototype.$HandleDomMouseMove$ = function $AdfDhtmlPivotTablePeer$$$HandleDomMouseMove$$($component$$472$$, $domEvent$$48$$) {
  if (!(this.$_isAda$ || AdfPivotTableUtils.$isMobileTouchDevice$() || this.$_currentRequest$ == AdfDhtmlPivotTablePeer.$PARTIAL$ || this.$_resizeDragState$ || this.$_headerSelectionDragState$ || this.$_databodySelectionDragState$)) {
    var $agent$$40$$ = AdfAgent.AGENT, $isIE8Plus$$ = AdfAgent.AGENT.getPlatform() == AdfAgent.IE_PLATFORM && 8 <= $agent$$40$$.getVersion();
    this.$_oldMousePos$ = $agent$$40$$.getMousePosition($domEvent$$48$$);
    var $context$$31_isEmptyEdge_pivotHandle$$1$$ = $JSCompiler_StaticMethods__getMouseContext$$(this, $domEvent$$48$$), $action$$3_edge$$12_target$$inline_2838$$ = $JSCompiler_StaticMethods__getHeaderResizeMouseAction$$(this, $agent$$40$$, $context$$31_isEmptyEdge_pivotHandle$$1$$), $headerCell$$1$$;
    $action$$3_edge$$12_target$$inline_2838$$ && ($headerCell$$1$$ = $action$$3_edge$$12_target$$inline_2838$$.cell);
    var $bSetCursor$$ = !1;
    $action$$3_edge$$12_target$$inline_2838$$ && $headerCell$$1$$ && "resize" == $action$$3_edge$$12_target$$inline_2838$$.type && !this.$_resizedCell$ && ($bSetCursor$$ = !0, "startRow" == $action$$3_edge$$12_target$$inline_2838$$.data || "endRow" == $action$$3_edge$$12_target$$inline_2838$$.data ? AdfDhtmlPivotTablePeer.$_setCursor$($headerCell$$1$$, $agent$$40$$.getCursor("row-resize")) : AdfDhtmlPivotTablePeer.$_setCursor$($headerCell$$1$$, $agent$$40$$.getCursor("col-resize")));
    if ($context$$31_isEmptyEdge_pivotHandle$$1$$.$headerContext$ && $context$$31_isEmptyEdge_pivotHandle$$1$$.$headerContext$.cell || $context$$31_isEmptyEdge_pivotHandle$$1$$.$pivotHandleContext$) {
      var $layer$$10$$, $bPivotHeader$$ = !1;
      $context$$31_isEmptyEdge_pivotHandle$$1$$.$headerContext$ ? ($action$$3_edge$$12_target$$inline_2838$$ = $context$$31_isEmptyEdge_pivotHandle$$1$$.$headerContext$.edge, $layer$$10$$ = $context$$31_isEmptyEdge_pivotHandle$$1$$.$headerContext$.layer, $context$$31_isEmptyEdge_pivotHandle$$1$$ = $context$$31_isEmptyEdge_pivotHandle$$1$$.$headerContext$.$isEmptyEdge$, $context$$31_isEmptyEdge_pivotHandle$$1$$ || $bSetCursor$$ || (AdfDhtmlPivotTablePeer.$_setCursor$($headerCell$$1$$, this.$_headerSelectionCursors$[$action$$3_edge$$12_target$$inline_2838$$]), 
      $bSetCursor$$ = !0)) : ($bPivotHeader$$ = !0, $action$$3_edge$$12_target$$inline_2838$$ = $context$$31_isEmptyEdge_pivotHandle$$1$$.$pivotHandleContext$.edge, $layer$$10$$ = $context$$31_isEmptyEdge_pivotHandle$$1$$.$pivotHandleContext$.layer, $context$$31_isEmptyEdge_pivotHandle$$1$$ = $context$$31_isEmptyEdge_pivotHandle$$1$$.$pivotHandleContext$.$isEmptyEdge$);
      if (!this.$_attachmentMode$) {
        if ($context$$31_isEmptyEdge_pivotHandle$$1$$) {
          $JSCompiler_StaticMethods_hidePivotHandle$$(this);
        } else {
          if ($context$$31_isEmptyEdge_pivotHandle$$1$$ = $JSCompiler_StaticMethods_getPivotHandle$$(this, $action$$3_edge$$12_target$$inline_2838$$, $layer$$10$$), $bPivotHeader$$ && $JSCompiler_StaticMethods_isPivotEnabled$$(this) && $JSCompiler_StaticMethods_isPivotable$$(this, $action$$3_edge$$12_target$$inline_2838$$, $layer$$10$$, $context$$31_isEmptyEdge_pivotHandle$$1$$) && ($bSetCursor$$ = !0, AdfDhtmlPivotTablePeer.$_setCursor$($context$$31_isEmptyEdge_pivotHandle$$1$$, $agent$$40$$.getCursor("move"))), 
          null == this.$_currentPivotHandle$ || null != $context$$31_isEmptyEdge_pivotHandle$$1$$ && $context$$31_isEmptyEdge_pivotHandle$$1$$.id != this.$_currentPivotHandle$.id) {
            $JSCompiler_StaticMethods_hidePivotHandle$$(this), null != $context$$31_isEmptyEdge_pivotHandle$$1$$ && $JSCompiler_StaticMethods_showPivotHandle$$(this, $action$$3_edge$$12_target$$inline_2838$$, $layer$$10$$, $context$$31_isEmptyEdge_pivotHandle$$1$$);
          }
        }
      }
    } else {
      $JSCompiler_StaticMethods_hidePivotHandle$$(this);
    }
    $action$$3_edge$$12_target$$inline_2838$$ = $agent$$40$$.getEventTarget($domEvent$$48$$);
    $agent$$40$$.getAttribute($action$$3_edge$$12_target$$inline_2838$$.parentNode.parentNode, "_cellImgName") ? this.$_imagePopupDisplayed$ ? $action$$3_edge$$12_target$$inline_2838$$ != this.$_lastCellImage$ && (this.$_imagePopupDisplayed$ = !1, this.hidePopup($component$$472$$), $JSCompiler_StaticMethods_showImagePopup$$(this, $component$$472$$, $action$$3_edge$$12_target$$inline_2838$$)) : $JSCompiler_StaticMethods_showImagePopup$$(this, $component$$472$$, $action$$3_edge$$12_target$$inline_2838$$) : 
    this.$_imagePopupDisplayed$ && (this.$_imagePopupDisplayed$ = !1, this.hidePopup($component$$472$$));
    $bSetCursor$$ || $isIE8Plus$$ || AdfDhtmlPivotTablePeer.$_setCursor$($headerCell$$1$$, "");
  }
};
AdfDhtmlPivotTablePeer.prototype.HandleDomMouseMove = AdfDhtmlPivotTablePeer.prototype.$HandleDomMouseMove$;
$goog$exportSymbol$$("AdfDhtmlPivotTablePeer.prototype.HandleDomMouseMove", AdfDhtmlPivotTablePeer.prototype.$HandleDomMouseMove$);
AdfDhtmlPivotTablePeer.prototype.$HandleComponentMouseDown$ = function $AdfDhtmlPivotTablePeer$$$HandleComponentMouseDown$$($componentEvent$$103$$) {
  if (!this.$_isAda$ && this.$_ptState$ != AdfDhtmlPivotTablePeer.$STATE_DIALOG$ && this.$_ptState$ != AdfDhtmlPivotTablePeer.$STATE_STAMP_POPUP$) {
    var $attrs$$19_currCellIndex_currCellKey_domEvent$$50$$ = $componentEvent$$103$$.getNativeEvent(), $action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$ = AdfAgent.AGENT;
    if ($action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$.isLeftButton($attrs$$19_currCellIndex_currCellKey_domEvent$$50$$)) {
      var $bRowResize_clickedCellIndex$$inline_2847_currTimeStamp_eventTarget$$14$$ = $action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$.getEventTarget($attrs$$19_currCellIndex_currCellKey_domEvent$$50$$);
      if ($JSCompiler_StaticMethods__isInputElement$$(this, $bRowResize_clickedCellIndex$$inline_2847_currTimeStamp_eventTarget$$14$$) && !$JSCompiler_StaticMethods__isClickToEditAll$$(this)) {
        this.enableUserSelect();
      } else {
        this.disableUserSelect();
        var $block$$inline_2852_context$$32_edge$$inline_2870_left$$inline_2879$$ = $JSCompiler_StaticMethods__getMouseContext$$(this, $attrs$$19_currCellIndex_currCellKey_domEvent$$50$$), $action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$ = $JSCompiler_StaticMethods__getHeaderResizeMouseAction$$(this, $action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$, $block$$inline_2852_context$$32_edge$$inline_2870_left$$inline_2879$$);
        if ("resize" != $action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$.type || AdfPivotTableUtils.$isMobileTouchDevice$()) {
          $block$$inline_2852_context$$32_edge$$inline_2870_left$$inline_2879$$.$headerContext$ && $block$$inline_2852_context$$32_edge$$inline_2870_left$$inline_2879$$.$headerContext$.cell && !$block$$inline_2852_context$$32_edge$$inline_2870_left$$inline_2879$$.$headerContext$.$isEmptyEdge$ ? (this.getDomElement().focus(), $JSCompiler_StaticMethods_isSelectionUiEnabled$$(this) && ($bRowResize_clickedCellIndex$$inline_2847_currTimeStamp_eventTarget$$14$$ = $JSCompiler_StaticMethods_newHeaderCellIndexWithEdgeFromCell$$($block$$inline_2852_context$$32_edge$$inline_2870_left$$inline_2879$$.$headerContext$.cell), 
          $JSCompiler_StaticMethods_handleHeaderSelection$$(this, $bRowResize_clickedCellIndex$$inline_2847_currTimeStamp_eventTarget$$14$$, $attrs$$19_currCellIndex_currCellKey_domEvent$$50$$) && (this.$_headerSelectionDragState$ = !0, AdfPage.PAGE.startDrag($attrs$$19_currCellIndex_currCellKey_domEvent$$50$$, this.$_selectionDragCallback$, this.$_selectionDropCallback$)))) : $block$$inline_2852_context$$32_edge$$inline_2870_left$$inline_2879$$.$databodyContext$ ? AdfPivotTableUtils.$isMobileTouchDevice$() ? 
          ($JSCompiler_StaticMethods_handleMouseDatabodySelection$$(this, $block$$inline_2852_context$$32_edge$$inline_2870_left$$inline_2879$$, $attrs$$19_currCellIndex_currCellKey_domEvent$$50$$), this.getDomElement().focus(), $JSCompiler_StaticMethods_hidePivotHandle$$(this)) : (this.getDomElement().focus(), $action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$ = !1, null != $bRowResize_clickedCellIndex$$inline_2847_currTimeStamp_eventTarget$$14$$ && null != this.$_activeCell$ && 
          $JSCompiler_StaticMethods__getDataCell$$(this, $bRowResize_clickedCellIndex$$inline_2847_currTimeStamp_eventTarget$$14$$) == this.$_activeCell$ && ($action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$ = !0), $action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$ || $JSCompiler_StaticMethods_handleMouseDatabodySelection$$(this, $block$$inline_2852_context$$32_edge$$inline_2870_left$$inline_2879$$, $attrs$$19_currCellIndex_currCellKey_domEvent$$50$$)) : AdfPivotTableUtils.$isMobileTouchDevice$() && 
          $JSCompiler_StaticMethods_hidePivotHandle$$(this);
        } else {
          $JSCompiler_StaticMethods_hidePivotHandle$$(this);
          if ($bRowResize_clickedCellIndex$$inline_2847_currTimeStamp_eventTarget$$14$$ = "startRow" == $action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$.data || "endRow" == $action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$.data) {
            var $cell$$inline_2851_cell$$inline_2867_resizedCell$$inline_2860_s$$inline_2878_top$$inline_2863$$ = $action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$.cell, $block$$inline_2852_context$$32_edge$$inline_2870_left$$inline_2879$$ = $JSCompiler_StaticMethods_getParentBlock$$(this, $cell$$inline_2851_cell$$inline_2867_resizedCell$$inline_2860_s$$inline_2878_top$$inline_2863$$.parentNode), $absColIndex$$inline_2875_blockStartSlice$$inline_2853_pane$$inline_2855$$ = AdfAgent.AGENT.getIntAttribute($block$$inline_2852_context$$32_edge$$inline_2870_left$$inline_2879$$, 
            "_startSlice"), $agent$$inline_2874_blockStartSlice$$inline_2869_edge$$inline_2854$$ = $action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$.$isRowHeader$ ? 1 : 0, $absColIndex$$inline_2875_blockStartSlice$$inline_2853_pane$$inline_2855$$ = $absColIndex$$inline_2875_blockStartSlice$$inline_2853_pane$$inline_2855$$ < this.$_ptUtils$.$_splitSlice$[$agent$$inline_2874_blockStartSlice$$inline_2869_edge$$inline_2854$$] ? 0 : 1, $blockIndex$$inline_2873_cellLeft$$inline_5062_header$$inline_5065_headerBuffer$$inline_2856$$ = 
            this.$_ptUtils$.$_buffers2$[$agent$$inline_2874_blockStartSlice$$inline_2869_edge$$inline_2854$$][$absColIndex$$inline_2875_blockStartSlice$$inline_2853_pane$$inline_2855$$], $blockIndex$$inline_2857_distToCellEnd$$inline_5063_headerBuffer$$inline_2872_indicator$$inline_2861_resizedCell$$inline_2876$$ = $JSCompiler_StaticMethods_getHeaderBlockIndex$$($blockIndex$$inline_2873_cellLeft$$inline_5062_header$$inline_5065_headerBuffer$$inline_2856$$, $block$$inline_2852_context$$32_edge$$inline_2870_left$$inline_2879$$), 
            $agent$$inline_2858_block$$inline_2868_blockLeft$$inline_5061$$ = AdfAgent.AGENT, $absRowIndex$$inline_2859_headerLeft$$inline_5060_pane$$inline_2871_s$$inline_2862$$ = $cell$$inline_2851_cell$$inline_2867_resizedCell$$inline_2860_s$$inline_2878_top$$inline_2863$$.parentNode.rowIndex;
            "startRow" == $action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$.data ? ($absRowIndex$$inline_2859_headerLeft$$inline_5060_pane$$inline_2871_s$$inline_2862$$--, 0 == $absRowIndex$$inline_2859_headerLeft$$inline_5060_pane$$inline_2871_s$$inline_2862$$ && (AdfAssert.assert(AdfPivotTableUtils.$assertsOff$ || $action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$.$isRowHeader$ && 0 < $blockIndex$$inline_2857_distToCellEnd$$inline_5063_headerBuffer$$inline_2872_indicator$$inline_2861_resizedCell$$inline_2876$$), 
            $blockIndex$$inline_2857_distToCellEnd$$inline_5063_headerBuffer$$inline_2872_indicator$$inline_2861_resizedCell$$inline_2876$$--, $block$$inline_2852_context$$32_edge$$inline_2870_left$$inline_2879$$ = $blockIndex$$inline_2873_cellLeft$$inline_5062_header$$inline_5065_headerBuffer$$inline_2856$$[$blockIndex$$inline_2857_distToCellEnd$$inline_5063_headerBuffer$$inline_2872_indicator$$inline_2861_resizedCell$$inline_2876$$], $absRowIndex$$inline_2859_headerLeft$$inline_5060_pane$$inline_2871_s$$inline_2862$$ = 
            $block$$inline_2852_context$$32_edge$$inline_2870_left$$inline_2879$$.childNodes[0].rows.length - 1)) : $absRowIndex$$inline_2859_headerLeft$$inline_5060_pane$$inline_2871_s$$inline_2862$$ += $cell$$inline_2851_cell$$inline_2867_resizedCell$$inline_2860_s$$inline_2878_top$$inline_2863$$.rowSpan - 1;
            this.$_resizedCell$ = $cell$$inline_2851_cell$$inline_2867_resizedCell$$inline_2860_s$$inline_2878_top$$inline_2863$$ = $block$$inline_2852_context$$32_edge$$inline_2870_left$$inline_2879$$.childNodes[0].rows[$absRowIndex$$inline_2859_headerLeft$$inline_5060_pane$$inline_2871_s$$inline_2862$$].cells[0];
            this.$_resizedIndex$ = $absRowIndex$$inline_2859_headerLeft$$inline_5060_pane$$inline_2871_s$$inline_2862$$;
            this.$_resizedBlockIndex$ = $blockIndex$$inline_2857_distToCellEnd$$inline_5063_headerBuffer$$inline_2872_indicator$$inline_2861_resizedCell$$inline_2876$$;
            this.$_resizedIsHeader$ = !$action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$.$isRowHeader$;
            this.$_resizedPane$ = $absColIndex$$inline_2875_blockStartSlice$$inline_2853_pane$$inline_2855$$;
            $blockIndex$$inline_2857_distToCellEnd$$inline_5063_headerBuffer$$inline_2872_indicator$$inline_2861_resizedCell$$inline_2876$$ = this.$_ptUtils$.$_resizeIndicator$;
            $blockIndex$$inline_2857_distToCellEnd$$inline_5063_headerBuffer$$inline_2872_indicator$$inline_2861_resizedCell$$inline_2876$$.className = $agent$$inline_2858_block$$inline_2868_blockLeft$$inline_5061$$.getAttribute($blockIndex$$inline_2857_distToCellEnd$$inline_5063_headerBuffer$$inline_2872_indicator$$inline_2861_resizedCell$$inline_2876$$, "_rowClass");
            $absRowIndex$$inline_2859_headerLeft$$inline_5060_pane$$inline_2871_s$$inline_2862$$ = $blockIndex$$inline_2857_distToCellEnd$$inline_5063_headerBuffer$$inline_2872_indicator$$inline_2861_resizedCell$$inline_2876$$.style;
            $absRowIndex$$inline_2859_headerLeft$$inline_5060_pane$$inline_2871_s$$inline_2862$$.display = "block";
            $absRowIndex$$inline_2859_headerLeft$$inline_5060_pane$$inline_2871_s$$inline_2862$$.zIndex = 20;
            $absRowIndex$$inline_2859_headerLeft$$inline_5060_pane$$inline_2871_s$$inline_2862$$.left = "0px";
            $absRowIndex$$inline_2859_headerLeft$$inline_5060_pane$$inline_2871_s$$inline_2862$$.height = "0px";
            $absRowIndex$$inline_2859_headerLeft$$inline_5060_pane$$inline_2871_s$$inline_2862$$.width = this.$_ptUtils$.$_rowHeaders$[1]._width + this.$_ptUtils$.$_databodies$[1][1]._width + (0 < this.$_ptUtils$.$_splitSlice$[0] ? this.$_ptUtils$.$_databodies$[1][0]._width : 0) + "px";
            $cell$$inline_2851_cell$$inline_2867_resizedCell$$inline_2860_s$$inline_2878_top$$inline_2863$$ = $cell$$inline_2851_cell$$inline_2867_resizedCell$$inline_2860_s$$inline_2878_top$$inline_2863$$.offsetTop + $cell$$inline_2851_cell$$inline_2867_resizedCell$$inline_2860_s$$inline_2878_top$$inline_2863$$.offsetHeight;
            this.$_resizeIndicatorStartPos$ = $cell$$inline_2851_cell$$inline_2867_resizedCell$$inline_2860_s$$inline_2878_top$$inline_2863$$ = $action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$.$isRowHeader$ ? $cell$$inline_2851_cell$$inline_2867_resizedCell$$inline_2860_s$$inline_2878_top$$inline_2863$$ + (this.$_ptUtils$.$_headers$[$agent$$inline_2874_blockStartSlice$$inline_2869_edge$$inline_2854$$][$absColIndex$$inline_2875_blockStartSlice$$inline_2853_pane$$inline_2855$$]._top + 
            $block$$inline_2852_context$$32_edge$$inline_2870_left$$inline_2879$$._top) : $cell$$inline_2851_cell$$inline_2867_resizedCell$$inline_2860_s$$inline_2878_top$$inline_2863$$ - this.$_ptUtils$.$_colHeaders$[1].scrollTop;
            $absRowIndex$$inline_2859_headerLeft$$inline_5060_pane$$inline_2871_s$$inline_2862$$.top = $cell$$inline_2851_cell$$inline_2867_resizedCell$$inline_2860_s$$inline_2878_top$$inline_2863$$ + "px";
            AdfDhtmlPivotTablePeer.$_setCursor$($blockIndex$$inline_2857_distToCellEnd$$inline_5063_headerBuffer$$inline_2872_indicator$$inline_2861_resizedCell$$inline_2876$$, $agent$$inline_2858_block$$inline_2868_blockLeft$$inline_5061$$.getCursor("row-resize"));
          } else {
            $cell$$inline_2851_cell$$inline_2867_resizedCell$$inline_2860_s$$inline_2878_top$$inline_2863$$ = $action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$.cell;
            $agent$$inline_2858_block$$inline_2868_blockLeft$$inline_5061$$ = $JSCompiler_StaticMethods_getParentBlock$$(this, $cell$$inline_2851_cell$$inline_2867_resizedCell$$inline_2860_s$$inline_2878_top$$inline_2863$$.parentNode);
            $agent$$inline_2874_blockStartSlice$$inline_2869_edge$$inline_2854$$ = AdfAgent.AGENT.getIntAttribute($agent$$inline_2858_block$$inline_2868_blockLeft$$inline_5061$$, "_startSlice");
            $block$$inline_2852_context$$32_edge$$inline_2870_left$$inline_2879$$ = $action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$.$isRowHeader$ ? 1 : 0;
            $absRowIndex$$inline_2859_headerLeft$$inline_5060_pane$$inline_2871_s$$inline_2862$$ = $agent$$inline_2874_blockStartSlice$$inline_2869_edge$$inline_2854$$ < this.$_ptUtils$.$_splitSlice$[$block$$inline_2852_context$$32_edge$$inline_2870_left$$inline_2879$$] ? 0 : 1;
            $blockIndex$$inline_2857_distToCellEnd$$inline_5063_headerBuffer$$inline_2872_indicator$$inline_2861_resizedCell$$inline_2876$$ = this.$_ptUtils$.$_buffers2$[$block$$inline_2852_context$$32_edge$$inline_2870_left$$inline_2879$$][$absRowIndex$$inline_2859_headerLeft$$inline_5060_pane$$inline_2871_s$$inline_2862$$];
            $blockIndex$$inline_2873_cellLeft$$inline_5062_header$$inline_5065_headerBuffer$$inline_2856$$ = $JSCompiler_StaticMethods_getHeaderBlockIndex$$($blockIndex$$inline_2857_distToCellEnd$$inline_5063_headerBuffer$$inline_2872_indicator$$inline_2861_resizedCell$$inline_2876$$, $agent$$inline_2858_block$$inline_2868_blockLeft$$inline_5061$$);
            $agent$$inline_2874_blockStartSlice$$inline_2869_edge$$inline_2854$$ = AdfAgent.AGENT;
            $absColIndex$$inline_2875_blockStartSlice$$inline_2853_pane$$inline_2855$$ = $JSCompiler_StaticMethods_getAbsoluteColumnIndex$$($agent$$inline_2874_blockStartSlice$$inline_2869_edge$$inline_2854$$, $cell$$inline_2851_cell$$inline_2867_resizedCell$$inline_2860_s$$inline_2878_top$$inline_2863$$);
            "startCol" == $action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$.data ? ($absColIndex$$inline_2875_blockStartSlice$$inline_2853_pane$$inline_2855$$--, 0 == $absColIndex$$inline_2875_blockStartSlice$$inline_2853_pane$$inline_2855$$ && (AdfAssert.assert(AdfPivotTableUtils.$assertsOff$ || !$action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$.$isRowHeader$ && 0 < $blockIndex$$inline_2873_cellLeft$$inline_5062_header$$inline_5065_headerBuffer$$inline_2856$$), 
            $blockIndex$$inline_2873_cellLeft$$inline_5062_header$$inline_5065_headerBuffer$$inline_2856$$--, $agent$$inline_2858_block$$inline_2868_blockLeft$$inline_5061$$ = $blockIndex$$inline_2857_distToCellEnd$$inline_5063_headerBuffer$$inline_2872_indicator$$inline_2861_resizedCell$$inline_2876$$[$blockIndex$$inline_2873_cellLeft$$inline_5062_header$$inline_5065_headerBuffer$$inline_2856$$], $absColIndex$$inline_2875_blockStartSlice$$inline_2853_pane$$inline_2855$$ = $agent$$inline_2858_block$$inline_2868_blockLeft$$inline_5061$$.childNodes[0].rows[0].cells.length - 
            1)) : $absColIndex$$inline_2875_blockStartSlice$$inline_2853_pane$$inline_2855$$ += $cell$$inline_2851_cell$$inline_2867_resizedCell$$inline_2860_s$$inline_2878_top$$inline_2863$$.colSpan - 1;
            this.$_resizedCell$ = $blockIndex$$inline_2857_distToCellEnd$$inline_5063_headerBuffer$$inline_2872_indicator$$inline_2861_resizedCell$$inline_2876$$ = $agent$$inline_2858_block$$inline_2868_blockLeft$$inline_5061$$.childNodes[0].rows[0].cells[$absColIndex$$inline_2875_blockStartSlice$$inline_2853_pane$$inline_2855$$];
            this.$_resizedIndex$ = $absColIndex$$inline_2875_blockStartSlice$$inline_2853_pane$$inline_2855$$;
            this.$_resizedBlockIndex$ = $blockIndex$$inline_2873_cellLeft$$inline_5062_header$$inline_5065_headerBuffer$$inline_2856$$;
            this.$_resizedIsHeader$ = $action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$.$isRowHeader$;
            this.$_resizedPane$ = $absRowIndex$$inline_2859_headerLeft$$inline_5060_pane$$inline_2871_s$$inline_2862$$;
            $action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$ = this.$_ptUtils$.$_resizeIndicator$;
            $action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$.className = $agent$$inline_2874_blockStartSlice$$inline_2869_edge$$inline_2854$$.getAttribute($action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$, "_colClass");
            $cell$$inline_2851_cell$$inline_2867_resizedCell$$inline_2860_s$$inline_2878_top$$inline_2863$$ = $action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$.style;
            $cell$$inline_2851_cell$$inline_2867_resizedCell$$inline_2860_s$$inline_2878_top$$inline_2863$$.display = "block";
            $cell$$inline_2851_cell$$inline_2867_resizedCell$$inline_2860_s$$inline_2878_top$$inline_2863$$.zIndex = 20;
            $cell$$inline_2851_cell$$inline_2867_resizedCell$$inline_2860_s$$inline_2878_top$$inline_2863$$.top = "0px";
            $cell$$inline_2851_cell$$inline_2867_resizedCell$$inline_2860_s$$inline_2878_top$$inline_2863$$.width = "0px";
            $cell$$inline_2851_cell$$inline_2867_resizedCell$$inline_2860_s$$inline_2878_top$$inline_2863$$.height = this.$_ptUtils$.$_colHeaders$[1]._height + this.$_ptUtils$.$_databodies$[1][1]._height + (0 < this.$_ptUtils$.$_splitSlice$[1] ? this.$_ptUtils$.$_databodies$[0][1]._height : 0) + "px";
            var $fineTuning$$inline_5064$$, $blockIndex$$inline_2873_cellLeft$$inline_5062_header$$inline_5065_headerBuffer$$inline_2856$$ = this.$_ptUtils$.$_headers$[$block$$inline_2852_context$$32_edge$$inline_2870_left$$inline_2879$$][$absRowIndex$$inline_2859_headerLeft$$inline_5060_pane$$inline_2871_s$$inline_2862$$], $absRowIndex$$inline_2859_headerLeft$$inline_5060_pane$$inline_2871_s$$inline_2862$$ = $blockIndex$$inline_2873_cellLeft$$inline_5062_header$$inline_5065_headerBuffer$$inline_2856$$._left, 
            $agent$$inline_2858_block$$inline_2868_blockLeft$$inline_5061$$ = $block$$inline_2852_context$$32_edge$$inline_2870_left$$inline_2879$$ ? -$blockIndex$$inline_2873_cellLeft$$inline_5062_header$$inline_5065_headerBuffer$$inline_2856$$.scrollLeft : $agent$$inline_2858_block$$inline_2868_blockLeft$$inline_5061$$._left, $blockIndex$$inline_2873_cellLeft$$inline_5062_header$$inline_5065_headerBuffer$$inline_2856$$ = $blockIndex$$inline_2857_distToCellEnd$$inline_5063_headerBuffer$$inline_2872_indicator$$inline_2861_resizedCell$$inline_2876$$.offsetLeft, 
            $blockIndex$$inline_2857_distToCellEnd$$inline_5063_headerBuffer$$inline_2872_indicator$$inline_2861_resizedCell$$inline_2876$$ = this.$_ptUtils$.$_rightToLeft$ ? 0 : $blockIndex$$inline_2857_distToCellEnd$$inline_5063_headerBuffer$$inline_2872_indicator$$inline_2861_resizedCell$$inline_2876$$.offsetWidth;
            $fineTuning$$inline_5064$$ = $block$$inline_2852_context$$32_edge$$inline_2870_left$$inline_2879$$ || this.$_ptUtils$.$_rightToLeft$ ? -1 : 0;
            $block$$inline_2852_context$$32_edge$$inline_2870_left$$inline_2879$$ && $absColIndex$$inline_2875_blockStartSlice$$inline_2853_pane$$inline_2855$$ == this.$_ptUtils$.$_rowLayerCount$ && ($fineTuning$$inline_5064$$ = this.$_ptUtils$.$_rightToLeft$ ? -2 : 0);
            this.$_resizeIndicatorStartPos$ = $block$$inline_2852_context$$32_edge$$inline_2870_left$$inline_2879$$ = $absRowIndex$$inline_2859_headerLeft$$inline_5060_pane$$inline_2871_s$$inline_2862$$ + $agent$$inline_2858_block$$inline_2868_blockLeft$$inline_5061$$ + $blockIndex$$inline_2873_cellLeft$$inline_5062_header$$inline_5065_headerBuffer$$inline_2856$$ + $blockIndex$$inline_2857_distToCellEnd$$inline_5063_headerBuffer$$inline_2872_indicator$$inline_2861_resizedCell$$inline_2876$$ + $fineTuning$$inline_5064$$;
            $cell$$inline_2851_cell$$inline_2867_resizedCell$$inline_2860_s$$inline_2878_top$$inline_2863$$.left = $block$$inline_2852_context$$32_edge$$inline_2870_left$$inline_2879$$ + "px";
            AdfDhtmlPivotTablePeer.$_setCursor$($action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$, $agent$$inline_2874_blockStartSlice$$inline_2869_edge$$inline_2854$$.getCursor("col-resize"));
          }
          this.$_resizeDeltaRaw$ = this.$_resizeDelta$ = 0;
          this.$_resizeDragState$ = !0;
          $bRowResize_clickedCellIndex$$inline_2847_currTimeStamp_eventTarget$$14$$ ? AdfPage.PAGE.startDrag($attrs$$19_currCellIndex_currCellKey_domEvent$$50$$, this.$_rowResizeDragCallback$, this.$_rowResizeDropCallback$) : AdfPage.PAGE.startDrag($attrs$$19_currCellIndex_currCellKey_domEvent$$50$$, this.$_colResizeDragCallback$, this.$_colResizeDropCallback$);
        }
        $attrs$$19_currCellIndex_currCellKey_domEvent$$50$$ = $JSCompiler_StaticMethods__getDataCellKeyAndCell$$(this, $componentEvent$$103$$.getNativeEventTarget());
        null != $attrs$$19_currCellIndex_currCellKey_domEvent$$50$$ && null != $attrs$$19_currCellIndex_currCellKey_domEvent$$50$$[0] && ($attrs$$19_currCellIndex_currCellKey_domEvent$$50$$ = $attrs$$19_currCellIndex_currCellKey_domEvent$$50$$[0], $bRowResize_clickedCellIndex$$inline_2847_currTimeStamp_eventTarget$$14$$ = (new Date).getTime(), $action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$ = $bRowResize_clickedCellIndex$$inline_2847_currTimeStamp_eventTarget$$14$$ - this.$_clickTimeStamp$, 
        null == this.$_clickTimeStamp$ || 3E3 < $action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$ || this.$_clickCellKey$ != $attrs$$19_currCellIndex_currCellKey_domEvent$$50$$ ? (this.$_clickTimeStamp$ = $bRowResize_clickedCellIndex$$inline_2847_currTimeStamp_eventTarget$$14$$, this.$_clickCellKey$ = $attrs$$19_currCellIndex_currCellKey_domEvent$$50$$) : null != this.$_clickTimeStamp$ && 0 < $action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$ && 3E3 > $action$$4_agent$$42_indicator$$inline_2877_skipSelection_timeDiff$$ && 
        this.$_clickCellKey$ == $attrs$$19_currCellIndex_currCellKey_domEvent$$50$$ && ($attrs$$19_currCellIndex_currCellKey_domEvent$$50$$ = $JSCompiler_StaticMethods__getDataCellIndexFromKey$$($attrs$$19_currCellIndex_currCellKey_domEvent$$50$$), null != this.$_clickCellKey$ && null != this.$_focusCellIndex$ && null != $attrs$$19_currCellIndex_currCellKey_domEvent$$50$$ && $attrs$$19_currCellIndex_currCellKey_domEvent$$50$$.row == this.$_focusCellIndex$.row && $attrs$$19_currCellIndex_currCellKey_domEvent$$50$$.column == 
        this.$_focusCellIndex$.column && this.$HandleComponentDblClick$($componentEvent$$103$$)));
      }
    }
  }
};
$goog$exportSymbol$$("AdfDhtmlPivotTablePeer.prototype.HandleComponentMouseDown", AdfDhtmlPivotTablePeer.prototype.$HandleComponentMouseDown$);
function $JSCompiler_StaticMethods__getMouseContext$$($JSCompiler_StaticMethods__getMouseContext$self$$, $domEvent$$51$$) {
  var $context$$33$$ = {}, $agent$$43$$ = AdfAgent.AGENT, $mousePos$$13$$ = $agent$$43$$.getMousePosition($domEvent$$51$$);
  if ($JSCompiler_StaticMethods__getMouseContext$self$$.$_ptUtils$.$_rightToLeft$) {
    var $windowWidth$$1$$ = $agent$$43$$.getWindowWidth();
    normalizedMouseX = $windowWidth$$1$$ - $mousePos$$13$$.x;
  } else {
    normalizedMouseX = $mousePos$$13$$.x;
  }
  $context$$33$$.$component$ = $JSCompiler_StaticMethods__getVisitedComponent$$($JSCompiler_StaticMethods__getMouseContext$self$$, $agent$$43$$, $mousePos$$13$$);
  $context$$33$$.target = $agent$$43$$.getEventTarget($domEvent$$51$$);
  if ($context$$33$$.$component$ == AdfPivotTableUtils.$COLUMN_EDGE$ || $context$$33$$.$component$ == AdfPivotTableUtils.$ROW_EDGE$) {
    var $headerContext$$ = {};
    $context$$33$$.$headerContext$ = $headerContext$$;
    $context$$33$$.$headerContext$.$isEmptyEdge$ = $context$$33$$.$component$ == AdfPivotTableUtils.$COLUMN_EDGE$ && 0 == $JSCompiler_StaticMethods__getMouseContext$self$$.$_ptUtils$.$_colLayerCount$ || $context$$33$$.$component$ == AdfPivotTableUtils.$ROW_EDGE$ && 0 == $JSCompiler_StaticMethods__getMouseContext$self$$.$_ptUtils$.$_rowLayerCount$;
    var $cell$$11$$ = $JSCompiler_StaticMethods__getParentElement$$($JSCompiler_StaticMethods__getMouseContext$self$$, $context$$33$$.target, "TH");
    if ($cell$$11$$) {
      $headerContext$$.cell = $cell$$11$$;
      var $cellPos$$ = $agent$$43$$.getElementPosition($cell$$11$$);
      $headerContext$$.cellWidth = $cell$$11$$.offsetWidth;
      $headerContext$$.cellHeight = $cell$$11$$.offsetHeight;
      $JSCompiler_StaticMethods__getMouseContext$self$$.$_ptUtils$.$_rightToLeft$ && ($cellPos$$.x = $windowWidth$$1$$ - $cellPos$$.x - $headerContext$$.cellWidth);
      $headerContext$$.cellMouseX = normalizedMouseX - $cellPos$$.x;
      $headerContext$$.cellMouseY = $mousePos$$13$$.y - $cellPos$$.y;
      $headerContext$$.edge = $context$$33$$.$component$;
      $headerContext$$.layer = $context$$33$$.$component$ == AdfPivotTableUtils.$ROW_EDGE$ ? $JSCompiler_StaticMethods_getAbsoluteColumnIndex$$($agent$$43$$, $cell$$11$$) - 1 : $JSCompiler_StaticMethods__getParentElement$$($JSCompiler_StaticMethods__getMouseContext$self$$, $cell$$11$$, "TR").rowIndex - 1;
    }
    $context$$33$$.$pivotHandleContext$ = $context$$33$$.$component$ == AdfPivotTableUtils.$ROW_EDGE$ ? $JSCompiler_StaticMethods__getRowHeaderPivotContext$$($JSCompiler_StaticMethods__getMouseContext$self$$, $agent$$43$$, $mousePos$$13$$.x, $windowWidth$$1$$) : $JSCompiler_StaticMethods__getColHeaderPivotContext$$($JSCompiler_StaticMethods__getMouseContext$self$$, $agent$$43$$, $mousePos$$13$$.y);
  } else {
    if ($context$$33$$.$component$ == AdfPivotTableUtils.$ROW_PIVOT_HANDLES$) {
      $context$$33$$.$pivotHandleContext$ = $JSCompiler_StaticMethods__getRowHeaderPivotContext$$($JSCompiler_StaticMethods__getMouseContext$self$$, $agent$$43$$, $mousePos$$13$$.x, $windowWidth$$1$$);
    } else {
      if ($context$$33$$.$component$ == AdfPivotTableUtils.$COL_PIVOT_HANDLES$) {
        $context$$33$$.$pivotHandleContext$ = $JSCompiler_StaticMethods__getColHeaderPivotContext$$($JSCompiler_StaticMethods__getMouseContext$self$$, $agent$$43$$, $mousePos$$13$$.y);
      } else {
        if ($cell$$11$$ = $JSCompiler_StaticMethods__getDataCell$$($JSCompiler_StaticMethods__getMouseContext$self$$, $context$$33$$.target)) {
          $context$$33$$.$databodyContext$ = {}, $context$$33$$.$databodyContext$.cell = $cell$$11$$;
        }
      }
    }
  }
  return $context$$33$$;
}
function $JSCompiler_StaticMethods__getVisitedComponent$$($JSCompiler_StaticMethods__getVisitedComponent$self$$, $agent$$44_rowPos$$, $mousePos$$14$$) {
  var $rightToLeft$$1$$ = $JSCompiler_StaticMethods__getVisitedComponent$self$$.$_ptUtils$.$_rightToLeft$;
  if (void 0 != $JSCompiler_StaticMethods__getVisitedComponent$self$$.$_ptUtils$.$_splitSlice$) {
    var $colHeader$$ = $JSCompiler_StaticMethods__getVisitedComponent$self$$.$_ptUtils$.$_colHeaders$[0 < $JSCompiler_StaticMethods__getVisitedComponent$self$$.$_ptUtils$.$_splitSlice$[0] ? 0 : 1], $colPos$$ = $agent$$44_rowPos$$.getElementPosition($colHeader$$), $colPivotHandleWidth_horizTest$$ = $rightToLeft$$1$$ ? $mousePos$$14$$.x - $colPos$$.x <= $colHeader$$._width : 0 < $mousePos$$14$$.x - $colPos$$.x;
    if ($colPivotHandleWidth_horizTest$$ && $mousePos$$14$$.y - $colPos$$.y <= $colHeader$$._height) {
      return $JSCompiler_StaticMethods__getVisitedComponent$self$$.$_lastVisitedComponent$ = AdfPivotTableUtils.$COLUMN_EDGE$;
    }
    var $rowHeader$$ = $JSCompiler_StaticMethods__getVisitedComponent$self$$.$_ptUtils$.$_rowHeaders$[0 < $JSCompiler_StaticMethods__getVisitedComponent$self$$.$_ptUtils$.$_splitSlice$[1] ? 0 : 1];
    $agent$$44_rowPos$$ = $agent$$44_rowPos$$.getElementPosition($rowHeader$$);
    if (($colPivotHandleWidth_horizTest$$ = $rightToLeft$$1$$ ? 0 < $mousePos$$14$$.x - $agent$$44_rowPos$$.x : $mousePos$$14$$.x - $agent$$44_rowPos$$.x <= $rowHeader$$._width) && 0 < $mousePos$$14$$.y - $agent$$44_rowPos$$.y) {
      return $JSCompiler_StaticMethods__getVisitedComponent$self$$.$_lastVisitedComponent$ = AdfPivotTableUtils.$ROW_EDGE$;
    }
    var $lastPH_rowPivotHandleHeight$$;
    switch($JSCompiler_StaticMethods__getVisitedComponent$self$$.$_lastVisitedComponent$) {
      case AdfPivotTableUtils.$ROW_EDGE$:
      ;
      case AdfPivotTableUtils.$ROW_PIVOT_HANDLES$:
        $lastPH_rowPivotHandleHeight$$ = AdfPivotTableUtils.$ROW_PIVOT_HANDLES$;
        break;
      case AdfPivotTableUtils.$COLUMN_EDGE$:
      ;
      case AdfPivotTableUtils.$COL_PIVOT_HANDLES$:
        $lastPH_rowPivotHandleHeight$$ = AdfPivotTableUtils.$COL_PIVOT_HANDLES$;
        break;
      default:
        $lastPH_rowPivotHandleHeight$$ = null;
    }
    var $isRowPivotHandle_phSize$$ = $JSCompiler_StaticMethods__getVisitedComponent$self$$.$_phSize$ ? $JSCompiler_StaticMethods__getVisitedComponent$self$$.$_phSize$ : 0, $colPivotHandleWidth_horizTest$$ = $lastPH_rowPivotHandleHeight$$ == AdfPivotTableUtils.$COL_PIVOT_HANDLES$ && 40 < $isRowPivotHandle_phSize$$ ? $isRowPivotHandle_phSize$$ : 40;
    $lastPH_rowPivotHandleHeight$$ = $lastPH_rowPivotHandleHeight$$ == AdfPivotTableUtils.$ROW_PIVOT_HANDLES$ && 40 < $isRowPivotHandle_phSize$$ ? $isRowPivotHandle_phSize$$ : 40;
    var $isColPivotHandle$$ = $isRowPivotHandle_phSize$$ = !1;
    ($colPivotHandleWidth_horizTest$$ = $rightToLeft$$1$$ ? $mousePos$$14$$.x - $colPos$$.x <= $colHeader$$._width + $colPivotHandleWidth_horizTest$$ : $mousePos$$14$$.x - $colPos$$.x > -$colPivotHandleWidth_horizTest$$) && $mousePos$$14$$.y - $colPos$$.y <= $colHeader$$._height && ($isColPivotHandle$$ = !0);
    ($colPivotHandleWidth_horizTest$$ = $rightToLeft$$1$$ ? 0 < $mousePos$$14$$.x - $agent$$44_rowPos$$.x : $mousePos$$14$$.x - $agent$$44_rowPos$$.x <= $rowHeader$$._width) && $mousePos$$14$$.y - $agent$$44_rowPos$$.y > -$lastPH_rowPivotHandleHeight$$ && ($isRowPivotHandle_phSize$$ = !0);
    return $isColPivotHandle$$ && $isRowPivotHandle_phSize$$ ? $JSCompiler_StaticMethods__getVisitedComponent$self$$.$_lastVisitedComponent$ == AdfPivotTableUtils.$ROW_EDGE$ || $JSCompiler_StaticMethods__getVisitedComponent$self$$.$_lastVisitedComponent$ == AdfPivotTableUtils.$ROW_PIVOT_HANDLES$ ? $JSCompiler_StaticMethods__getVisitedComponent$self$$.$_lastVisitedComponent$ = AdfPivotTableUtils.$ROW_PIVOT_HANDLES$ : $JSCompiler_StaticMethods__getVisitedComponent$self$$.$_lastVisitedComponent$ = AdfPivotTableUtils.$COL_PIVOT_HANDLES$ : 
    $isColPivotHandle$$ ? $JSCompiler_StaticMethods__getVisitedComponent$self$$.$_lastVisitedComponent$ = AdfPivotTableUtils.$COL_PIVOT_HANDLES$ : $isRowPivotHandle_phSize$$ ? $JSCompiler_StaticMethods__getVisitedComponent$self$$.$_lastVisitedComponent$ = AdfPivotTableUtils.$ROW_PIVOT_HANDLES$ : null;
  }
}
function $JSCompiler_StaticMethods_showImagePopup$$($JSCompiler_StaticMethods_showImagePopup$self$$, $component$$475$$, $target$$133$$) {
  $JSCompiler_StaticMethods_showImagePopup$self$$.$_imagePopupDisplayed$ = !0;
  $JSCompiler_StaticMethods_showImagePopup$self$$.$_lastCellImage$ = $target$$133$$;
  var $popupContent$$ = $target$$133$$.parentNode.parentNode.firstChild.firstChild.cloneNode(!0), $hints$$18$$ = {};
  $hints$$18$$[$AdfDhtmlCommonUtils$$.TYPE] = $AdfDhtmlCommonUtils$$.$TYPE_NOTEWINDOW$;
  $hints$$18$$[$AdfDhtmlCommonUtils$$.$ALIGN_ELEMENT$] = $target$$133$$;
  $hints$$18$$[AdfRichPopup.HINT_ALIGN] = AdfRichPopup.ALIGN_BEFORE_START;
  $hints$$18$$[$AdfDhtmlCommonUtils$$.$AUTODISMISS$] = $AdfDhtmlCommonUtils$$.$AUTODISMISS_NEVER$;
  $JSCompiler_StaticMethods_showImagePopup$self$$.showPopup($component$$475$$, $popupContent$$, $hints$$18$$);
}
AdfDhtmlPivotTablePeer.prototype.$handleImageAction$ = function $AdfDhtmlPivotTablePeer$$$handleImageAction$$($component$$476$$, $target$$134$$) {
  var $agent$$45_pivotPeer$$3$$ = AdfAgent.AGENT, $fromLayer_iRow_ret$$14$$ = !1;
  if ($target$$134$$) {
    var $coords$$3_event$$167_flags$$1_iCol_imageContainer$$3_th$$3$$;
    $coords$$3_event$$167_flags$$1_iCol_imageContainer$$3_th$$3$$ = "A" == $target$$134$$.tagName ? $target$$134$$ : $target$$134$$.parentNode;
    var $dropData$$2_fromEdge_imageName$$1$$ = $agent$$45_pivotPeer$$3$$.getAttribute($coords$$3_event$$167_flags$$1_iCol_imageContainer$$3_th$$3$$.parentNode, "_cellImgName");
    if ($dropData$$2_fromEdge_imageName$$1$$) {
      if (this.$_currentRequest$ == AdfDhtmlPivotTablePeer.$PARTIAL$) {
        return;
      }
      this.$_isAda$ ? ($fromLayer_iRow_ret$$14$$ = $agent$$45_pivotPeer$$3$$.getIntAttribute($coords$$3_event$$167_flags$$1_iCol_imageContainer$$3_th$$3$$.parentNode, "_row"), $coords$$3_event$$167_flags$$1_iCol_imageContainer$$3_th$$3$$ = $agent$$45_pivotPeer$$3$$.getIntAttribute($coords$$3_event$$167_flags$$1_iCol_imageContainer$$3_th$$3$$.parentNode, "_col")) : ($coords$$3_event$$167_flags$$1_iCol_imageContainer$$3_th$$3$$ = $JSCompiler_StaticMethods_getCoordinates$$(this, $coords$$3_event$$167_flags$$1_iCol_imageContainer$$3_th$$3$$.parentNode.parentNode), 
      $fromLayer_iRow_ret$$14$$ = $coords$$3_event$$167_flags$$1_iCol_imageContainer$$3_th$$3$$.row, $coords$$3_event$$167_flags$$1_iCol_imageContainer$$3_th$$3$$ = $coords$$3_event$$167_flags$$1_iCol_imageContainer$$3_th$$3$$.col);
      $coords$$3_event$$167_flags$$1_iCol_imageContainer$$3_th$$3$$ = new $AdfPivotTableCellImageClickEvent$$($component$$476$$, $fromLayer_iRow_ret$$14$$, $coords$$3_event$$167_flags$$1_iCol_imageContainer$$3_th$$3$$, $dropData$$2_fromEdge_imageName$$1$$);
      $coords$$3_event$$167_flags$$1_iCol_imageContainer$$3_th$$3$$.setPartial(!0);
      $component$$476$$.queueEvent($coords$$3_event$$167_flags$$1_iCol_imageContainer$$3_th$$3$$);
      $fromLayer_iRow_ret$$14$$ = !0;
    } else {
      if ($agent$$45_pivotPeer$$3$$.getAttribute($coords$$3_event$$167_flags$$1_iCol_imageContainer$$3_th$$3$$.parentNode, "_dr")) {
        $coords$$3_event$$167_flags$$1_iCol_imageContainer$$3_th$$3$$ = $JSCompiler_StaticMethods__getParentElement$$(this, $coords$$3_event$$167_flags$$1_iCol_imageContainer$$3_th$$3$$.parentNode, "TH"), $JSCompiler_StaticMethods_handleDrillAction$$(this, $component$$476$$, $coords$$3_event$$167_flags$$1_iCol_imageContainer$$3_th$$3$$), $fromLayer_iRow_ret$$14$$ = !0;
      } else {
        if ($agent$$45_pivotPeer$$3$$.getAttribute($coords$$3_event$$167_flags$$1_iCol_imageContainer$$3_th$$3$$.parentNode, "_adaPivot")) {
          var $dropData$$2_fromEdge_imageName$$1$$ = $agent$$45_pivotPeer$$3$$.getIntAttribute($coords$$3_event$$167_flags$$1_iCol_imageContainer$$3_th$$3$$.parentNode, "_fromEdge"), $fromLayer_iRow_ret$$14$$ = $agent$$45_pivotPeer$$3$$.getIntAttribute($coords$$3_event$$167_flags$$1_iCol_imageContainer$$3_th$$3$$.parentNode, "_fromLayer"), $toEdge$$ = $agent$$45_pivotPeer$$3$$.getIntAttribute($coords$$3_event$$167_flags$$1_iCol_imageContainer$$3_th$$3$$.parentNode, "_toEdge"), $toLayer$$2$$ = $agent$$45_pivotPeer$$3$$.getIntAttribute($coords$$3_event$$167_flags$$1_iCol_imageContainer$$3_th$$3$$.parentNode, 
          "_toLayer");
          $coords$$3_event$$167_flags$$1_iCol_imageContainer$$3_th$$3$$ = $agent$$45_pivotPeer$$3$$.getAttribute($coords$$3_event$$167_flags$$1_iCol_imageContainer$$3_th$$3$$.parentNode, "_flags");
          $JSCompiler_StaticMethods__pivot$$(this, $dropData$$2_fromEdge_imageName$$1$$, $fromLayer_iRow_ret$$14$$, $toEdge$$, $toLayer$$2$$, $coords$$3_event$$167_flags$$1_iCol_imageContainer$$3_th$$3$$);
          $fromLayer_iRow_ret$$14$$ = !0;
        } else {
          $agent$$45_pivotPeer$$3$$.getAttribute($coords$$3_event$$167_flags$$1_iCol_imageContainer$$3_th$$3$$.parentNode, "_adaExtPivot") && ($agent$$45_pivotPeer$$3$$ = this.$getKeyboardPivotPeer$(), null != $agent$$45_pivotPeer$$3$$ && ($dropData$$2_fromEdge_imageName$$1$$ = {}, $dropData$$2_fromEdge_imageName$$1$$.fromLayerName = AdfAgent.AGENT.getAttribute($coords$$3_event$$167_flags$$1_iCol_imageContainer$$3_th$$3$$.parentNode, "_fromLayerName"), $agent$$45_pivotPeer$$3$$.getPeer().$PerformADADrop$($component$$476$$, 
          $dropData$$2_fromEdge_imageName$$1$$), $fromLayer_iRow_ret$$14$$ = !0));
        }
      }
    }
  }
  return $fromLayer_iRow_ret$$14$$;
};
function $JSCompiler_StaticMethods_handleDrillAction$$($JSCompiler_StaticMethods_handleDrillAction$self$$, $component$$477$$, $cellCoords_event$$168_imageContainer$$4$$) {
  $JSCompiler_StaticMethods_handleDrillAction$self$$.$_currentRequest$ != AdfDhtmlPivotTablePeer.$PARTIAL$ && ($cellCoords_event$$168_imageContainer$$4$$ = $JSCompiler_StaticMethods_getHeaderCellCoordinates$$($cellCoords_event$$168_imageContainer$$4$$), $cellCoords_event$$168_imageContainer$$4$$ = new $AdfPivotTableDrillEvent$$($component$$477$$, $cellCoords_event$$168_imageContainer$$4$$.edge, $cellCoords_event$$168_imageContainer$$4$$.startLayer, $cellCoords_event$$168_imageContainer$$4$$.startSlice, 
  "0"), $cellCoords_event$$168_imageContainer$$4$$.setPartial(!0), $JSCompiler_StaticMethods__focusElement$$($JSCompiler_StaticMethods_handleDrillAction$self$$.getDomElement()), $component$$477$$.queueEvent($cellCoords_event$$168_imageContainer$$4$$), $cellCoords_event$$168_imageContainer$$4$$.isCanceled() ? $JSCompiler_StaticMethods__clientValidationErrorRecovery$$($JSCompiler_StaticMethods_handleDrillAction$self$$, $JSCompiler_StaticMethods__getActiveCellKey$$($JSCompiler_StaticMethods_handleDrillAction$self$$)) : 
  ($JSCompiler_StaticMethods_setCurrentRequest$$($JSCompiler_StaticMethods_handleDrillAction$self$$, AdfDhtmlPivotTablePeer.$PARTIAL$), $JSCompiler_StaticMethods_handleDrillAction$self$$.$_serverRequest$ = null, $JSCompiler_StaticMethods_handleDrillAction$self$$.$_isAda$ || $JSCompiler_StaticMethods_handleDrillAction$self$$.$_displayStatus$($JSCompiler_StaticMethods_handleDrillAction$self$$.$_fetchText$, !0)));
}
AdfDhtmlPivotTablePeer.prototype.$queueSortRequest$ = function $AdfDhtmlPivotTablePeer$$$queueSortRequest$$($edge$$14_event$$169$$, $sliceOrLayer$$1$$, $isAscending$$1$$, $isHeader$$1$$) {
  $sliceOrLayer$$1$$ = "" + $sliceOrLayer$$1$$;
  var $component$$479$$ = this.getComponent();
  $edge$$14_event$$169$$ = new $AdfPivotTableSortEvent$$($component$$479$$, $edge$$14_event$$169$$, $sliceOrLayer$$1$$, $isAscending$$1$$, $isHeader$$1$$);
  $edge$$14_event$$169$$.setPartial(!0);
  $JSCompiler_StaticMethods__focusElement$$(this.getDomElement());
  $component$$479$$.queueEvent($edge$$14_event$$169$$);
  $edge$$14_event$$169$$.isCanceled() ? $JSCompiler_StaticMethods__clientValidationErrorRecovery$$(this, $JSCompiler_StaticMethods__getActiveCellKey$$(this)) : ($JSCompiler_StaticMethods_setCurrentRequest$$(this, AdfDhtmlPivotTablePeer.$PARTIAL$), this.$_serverRequest$ = null, this.$_isAda$ || this.$_displayStatus$(this.$_fetchText$, !0));
};
AdfDhtmlPivotTablePeer.prototype.queueSortRequest = AdfDhtmlPivotTablePeer.prototype.$queueSortRequest$;
function $JSCompiler_StaticMethods__setSortIndicatorEnabled$$($JSCompiler_StaticMethods__setSortIndicatorEnabled$self_siId$$1$$, $headerCell$$2$$, $enabled$$3$$) {
  var $cellCoords$$2_siElem$$1$$ = $JSCompiler_StaticMethods_getHeaderCellCoordinates$$($headerCell$$2$$);
  $cellCoords$$2_siElem$$1$$ && ($JSCompiler_StaticMethods__setSortIndicatorEnabled$self_siId$$1$$ = AdfRichUIPeer.CreateSubId($JSCompiler_StaticMethods__setSortIndicatorEnabled$self_siId$$1$$.getComponent().getClientId(), $cellCoords$$2_siElem$$1$$.startSlice + "::" + AdfDhtmlPivotTablePeer.$_SORT_INDICATOR$), $cellCoords$$2_siElem$$1$$ = null, $cellCoords$$2_siElem$$1$$ = void 0 == $headerCell$$2$$.getAttribute("_vt") ? AdfPivotTableUtils.$isMobileTouchDevice$() ? AdfDhtmlPivotTablePeer.$_getChildById$($headerCell$$2$$.childNodes[0], 
  $JSCompiler_StaticMethods__setSortIndicatorEnabled$self_siId$$1$$) : AdfDhtmlPivotTablePeer.$_getChildById$($headerCell$$2$$, $JSCompiler_StaticMethods__setSortIndicatorEnabled$self_siId$$1$$) : AdfDhtmlPivotTablePeer.$_getChildById$($headerCell$$2$$.childNodes[0].rows[0].cells[0], $JSCompiler_StaticMethods__setSortIndicatorEnabled$self_siId$$1$$), null != $cellCoords$$2_siElem$$1$$ && null == $cellCoords$$2_siElem$$1$$.getAttribute(AdfDhtmlPivotTablePeer.$_SORTED_TYPE$) && ($cellCoords$$2_siElem$$1$$.childNodes[0].style.display = 
  $enabled$$3$$ ? "" : "none"));
}
AdfDhtmlPivotTablePeer.prototype.getComponent = function $AdfDhtmlPivotTablePeer$$getComponent$() {
  return this.$_tempComponent$ ? this.$_tempComponent$ : AdfDhtmlPivotTablePeer.superclass.getComponent.call(this);
};
AdfDhtmlPivotTablePeer.prototype.InitDomElement = function $AdfDhtmlPivotTablePeer$$InitDomElement$($component$$480$$, $domElement$$173$$) {
  try {
    this.$_tempComponent$ = $component$$480$$;
    this.$_codeExecutionCounter$ = 0;
    AdfDhtmlPivotTablePeer.superclass.InitDomElement.call(this, $component$$480$$, $domElement$$173$$);
    this.$__logEnabled$ = !1;
    var $agent$$46$$ = AdfAgent.AGENT, $ada$$1_isNext$$ = $agent$$46$$.getAttribute($domElement$$173$$, "_ada"), $immediate$$2$$ = $agent$$46$$.getAttribute($domElement$$173$$, "_immediate");
    this.$_adsEnabled$ = void 0 != $agent$$46$$.getAttribute($domElement$$173$$, "_adsEnabled");
    this.$_fetchText$ = $agent$$46$$.getAttribute($domElement$$173$$, "_fetchText");
    this.$_cellSelected$ = $agent$$46$$.getAttribute($domElement$$173$$, "_cellSelected");
    this.$_rowSelected$ = $agent$$46$$.getAttribute($domElement$$173$$, "_rowSelected");
    this.$_colSelected$ = $agent$$46$$.getAttribute($domElement$$173$$, "_colSelected");
    this.$_multiple$ = $agent$$46$$.getAttribute($domElement$$173$$, "_multiple");
    this.$_rowInfo$ = $agent$$46$$.getAttribute($domElement$$173$$, "_rowInfo");
    this.$_colInfo$ = $agent$$46$$.getAttribute($domElement$$173$$, "_colInfo");
    this.$_heightText$ = $agent$$46$$.getAttribute($domElement$$173$$, "_heightText");
    this.$_widthText$ = $agent$$46$$.getAttribute($domElement$$173$$, "_widthText");
    this.$_moveBefore$ = $agent$$46$$.getAttribute($domElement$$173$$, "_moveBefore");
    this.$_swapWith$ = $agent$$46$$.getAttribute($domElement$$173$$, "_swapWith");
    this.$_moveAfter$ = $agent$$46$$.getAttribute($domElement$$173$$, "_moveAfter");
    this.$_moveToRows$ = $agent$$46$$.getAttribute($domElement$$173$$, "_moveToRows");
    this.$_moveToCols$ = $agent$$46$$.getAttribute($domElement$$173$$, "_moveToCols");
    this.$_ptState$ = AdfDhtmlPivotTablePeer.$STATE_NORMAL$;
    this.$_isAda$ = void 0 != $ada$$1_isNext$$;
    this.$_isSortEnabled$ = !1;
    this.$_isImmediate$ = void 0 != $immediate$$2$$;
    this.$_streamingDisabled$ = !1;
    AdfPage.PAGE.isStreamingDisabled && (this.$_streamingDisabled$ = AdfPage.PAGE.isStreamingDisabled());
    this.$_currentRequest$ = "initBlock";
    this.$_resizeDragState$ = !1;
    this.$_selectedLayer$ = this.$_selectedEdge$ = this.$_currentPivotHandle$ = null;
    $component$$480$$.setProperty(AdfRichPivotTable.$__SIZE_OVERRIDES_KEY$, void 0);
    this.$_serverBusy$ = this.$alreadyRequestedDismissEdit$ = !1;
    this.$_bufferADSCounter$ = this.$_blockADSCounter$ = -1;
    var $modelName$$3$$ = $component$$480$$.getProperty("modelName");
    null != $modelName$$3$$ && AdfPage.PAGE.setPageProperty("ROW_AND_COLUMN_EDGE:" + $modelName$$3$$, $component$$480$$.getClientId());
    this.$_attachmentMode$ = "true" == $domElement$$173$$.getAttribute("_attachment");
    this.$_isPaging$ = AdfDhtmlPivotTablePeer.$isPaging$($domElement$$173$$);
    if (this.$_isAda$) {
      for (var $j$$39_nodes$$8$$ = $domElement$$173$$.childNodes[0].childNodes, $edge$$15_i$$154$$ = 0;$edge$$15_i$$154$$ < $j$$39_nodes$$8$$.length;++$edge$$15_i$$154$$) {
        var $node$$31$$ = $j$$39_nodes$$8$$[$edge$$15_i$$154$$];
        if ($node$$31$$.id && (-1 != $node$$31$$.id.indexOf("Inner") || $node$$31$$.id.lastIndexOf("::et") == $node$$31$$.id.length - 4)) {
          var $adaTable$$ = $j$$39_nodes$$8$$[$edge$$15_i$$154$$];
          break;
        }
      }
      this.$_ptUtils$ = {};
      var $colExtent$$ = $agent$$46$$.getIntAttribute($adaTable$$, "_colExtent"), $rowExtent$$ = $agent$$46$$.getIntAttribute($adaTable$$, "_rowExtent");
      this.$_adaEdgeExtent$ = [$colExtent$$, $rowExtent$$];
      var $colBlockSize$$ = $agent$$46$$.getIntAttribute($adaTable$$, "_colBlockSize"), $rowBlockSize$$ = $agent$$46$$.getIntAttribute($adaTable$$, "_rowBlockSize");
      this.$_adaBlockSize$ = [$colBlockSize$$, $rowBlockSize$$];
      var $startRow$$1$$ = $agent$$46$$.getIntAttribute($adaTable$$, "_startRow"), $startCol$$1$$ = $agent$$46$$.getIntAttribute($adaTable$$, "_startCol");
      $component$$480$$.setProperty(AdfRichPivotTable.$__START_ROW_KEY$, $startRow$$1$$);
      $component$$480$$.setProperty(AdfRichPivotTable.$__START_COLUMN_KEY$, $startCol$$1$$);
      this.$_adaStartSlice$ = [];
      this.$_adaStartPane$ = [];
      this.$_adaCanvasStartSlice$ = [];
      this.$_adaCanvasEndSlice$ = [];
      var $splitCol$$1$$ = $agent$$46$$.getIntAttribute($adaTable$$, "_splitCol"), $splitRow$$1$$ = $agent$$46$$.getIntAttribute($adaTable$$, "_splitRow");
      this.$_ptUtils$.$_splitSlice$ = [$splitCol$$1$$, $splitRow$$1$$];
      $component$$480$$.setProperty(AdfRichPivotTable.$__SPLIT_COLUMN_KEY$, $splitCol$$1$$);
      $component$$480$$.setProperty(AdfRichPivotTable.$__SPLIT_ROW_KEY$, $splitRow$$1$$);
      if (-1 != $splitCol$$1$$) {
        var $secondStartCol$$ = $agent$$46$$.getIntAttribute($adaTable$$, "_secondStartCol");
        $component$$480$$.setProperty(AdfRichPivotTable.$__SECOND_START_COLUMN_KEY$, $secondStartCol$$);
        this.$_adaStartPane$[0] = 0;
        this.$_adaStartSlice$[0] = [$startCol$$1$$, $secondStartCol$$];
        this.$_adaCanvasStartSlice$[0] = [0, $secondStartCol$$];
        this.$_adaCanvasEndSlice$[0] = [$secondStartCol$$, $colExtent$$];
      } else {
        this.$_adaStartPane$[0] = 1, this.$_adaStartSlice$[0] = [void 0, $startCol$$1$$], this.$_adaCanvasStartSlice$[0] = [void 0, 0], this.$_adaCanvasEndSlice$[0] = [void 0, $colExtent$$];
      }
      if (-1 != $splitRow$$1$$) {
        var $secondStartRow$$ = $agent$$46$$.getIntAttribute($adaTable$$, "_secondStartRow");
        $component$$480$$.setProperty(AdfRichPivotTable.$__SECOND_START_ROW_KEY$, $secondStartRow$$);
        this.$_adaStartPane$[1] = 0;
        this.$_adaStartSlice$[1] = [$startRow$$1$$, $secondStartRow$$];
        this.$_adaCanvasStartSlice$[1] = [0, $secondStartRow$$];
        this.$_adaCanvasEndSlice$[1] = [$secondStartRow$$, $rowExtent$$];
      } else {
        this.$_adaStartPane$[1] = 1, this.$_adaStartSlice$[1] = [void 0, $startRow$$1$$], this.$_adaCanvasStartSlice$[1] = [void 0, 0], this.$_adaCanvasEndSlice$[1] = [void 0, $rowExtent$$];
      }
      var $clientBlocks$$ = $component$$480$$.getProperty(AdfRichPivotTable.$__CLIENT_BLOCKS_KEY$);
      void 0 == $clientBlocks$$ || "foo" == $clientBlocks$$ ? $component$$480$$.setProperty(AdfRichPivotTable.$__CLIENT_BLOCKS_KEY$, "bar", !1, AdfUIComponent.PROPAGATE_ALWAYS) : $component$$480$$.setProperty(AdfRichPivotTable.$__CLIENT_BLOCKS_KEY$, "foo", !1, AdfUIComponent.PROPAGATE_ALWAYS);
      for (var $edge$$15_i$$154$$ = 0;2 > $edge$$15_i$$154$$;++$edge$$15_i$$154$$) {
        for (var $pane$$2$$ = this.$_adaStartPane$[$edge$$15_i$$154$$];2 > $pane$$2$$;++$pane$$2$$) {
          var $choiceElement$$ = $JSCompiler_StaticMethods__getAdaNavElement$$($component$$480$$, $edge$$15_i$$154$$, $pane$$2$$, AdfDhtmlPivotTablePeer.$_CHOICE_ID_SUFFIX$);
          $choiceElement$$ && AdfRichUIPeer.addEventHandlerToDomInstance(AdfDhtmlPivotTablePeer, $choiceElement$$, "change");
          for ($ada$$1_isNext$$ = 0;2 > $ada$$1_isNext$$;++$ada$$1_isNext$$) {
            var $linkElement$$ = $JSCompiler_StaticMethods__getAdaNavElement$$($component$$480$$, $edge$$15_i$$154$$, $pane$$2$$, $ada$$1_isNext$$ ? AdfDhtmlPivotTablePeer.$_NEXT_LINK_ID_SUFFIX$ : AdfDhtmlPivotTablePeer.$_PREV_LINK_ID_SUFFIX$);
            if ($linkElement$$) {
              var $handleClick$$ = $JSCompiler_StaticMethods_createCallback2$$(this, this.$_handlePrevNextSliceClick$, [$edge$$15_i$$154$$, $pane$$2$$, $ada$$1_isNext$$]);
              $agent$$46$$.addBubbleEventListener($linkElement$$, "click", $handleClick$$);
            }
          }
        }
      }
      AdfPivotTableUtils.$DATABODY$ = -1;
      AdfPivotTableUtils.$COLUMN_EDGE$ = 0;
      AdfPivotTableUtils.$ROW_EDGE$ = 1;
      this.$_graphScreenReaderMode$ = $agent$$46$$.getBooleanAttribute($adaTable$$, "_graphSR");
      $JSCompiler_StaticMethods_initializeSelectionAda$$(this, $adaTable$$, $j$$39_nodes$$8$$);
    } else {
      this.$_ptUtils$ = new AdfPivotTableUtils($component$$480$$, this, $domElement$$173$$);
      for ($edge$$15_i$$154$$ = 0;2 > $edge$$15_i$$154$$;++$edge$$15_i$$154$$) {
        for ($j$$39_nodes$$8$$ = 0;2 > $j$$39_nodes$$8$$;++$j$$39_nodes$$8$$) {
          0 < $edge$$15_i$$154$$ + $j$$39_nodes$$8$$ && AdfRichUIPeer.addEventHandlerToDomInstance(AdfDhtmlPivotTablePeer, this.$_ptUtils$.$_databodyScrollers$[$edge$$15_i$$154$$][$j$$39_nodes$$8$$], "scroll"), this.$_ptUtils$.$_headers$[$edge$$15_i$$154$$][$j$$39_nodes$$8$$].onscroll = $JSCompiler_StaticMethods_createCallback2$$(this, this.$handleHeaderScroll$, [$edge$$15_i$$154$$, $j$$39_nodes$$8$$]), this.$_ptUtils$.$_databodies$[$edge$$15_i$$154$$][$j$$39_nodes$$8$$].onscroll = $JSCompiler_StaticMethods_createCallback2$$(this, 
          this.$handleDatabodyScroll$, [$edge$$15_i$$154$$, $j$$39_nodes$$8$$]);
        }
      }
      AdfRichUIPeer.addEventHandlerToDomInstance(AdfDhtmlPivotTablePeer, $domElement$$173$$, "mousemove");
      AdfPivotTableUtils.$isMobileTouchDevice$() || this.$setupMouseWheel$();
      this.$_colResizeDragCallback$ = this.createCallback(this.$_handleColResizeDrag$);
      this.$_colResizeDropCallback$ = this.createCallback(this.$_handleColResizeDrop$);
      this.$_rowResizeDragCallback$ = this.createCallback(this.$_handleRowResizeDrag$);
      this.$_rowResizeDropCallback$ = this.createCallback(this.$_handleRowResizeDrop$);
      this.$_selectionDragCallback$ = this.createCallback(this.$handleSelectionDrag$);
      this.$_selectionDropCallback$ = this.createCallback(this.$handleSelectionDrop$);
      "true" == $agent$$46$$.getAttribute($domElement$$173$$, "_cteAll") && AdfPage.PAGE.addBusyStateListener(this, this.$_handleBusyState$);
      this.$_attachmentMode$ || ($component$$480$$.setDragSource(new $AdfPivotTableDragSource$$), null == $component$$480$$.getDropTarget() && $component$$480$$.setDropTarget(new $AdfPivotTableDropTarget$$));
      this.$_headerSelectionCursors$ = [$JSCompiler_StaticMethods_getHeaderSelectionCursor$$($domElement$$173$$, 0), $JSCompiler_StaticMethods_getHeaderSelectionCursor$$($domElement$$173$$, 1)];
    }
  } finally {
    this.$_tempComponent$ = null;
  }
};
AdfDhtmlPivotTablePeer.prototype.InitDomElement = AdfDhtmlPivotTablePeer.prototype.InitDomElement;
AdfDhtmlPivotTablePeer.prototype.needsResizeNotify = function $AdfDhtmlPivotTablePeer$$needsResizeNotify$() {
  return this.$_isAda$ ? !1 : !0;
};
AdfDhtmlPivotTablePeer.prototype.needsResizeNotify = AdfDhtmlPivotTablePeer.prototype.needsResizeNotify;
AdfDhtmlPivotTablePeer.prototype.ResizeNotify = function $AdfDhtmlPivotTablePeer$$ResizeNotify$($oldWidth$$11_size$$12$$, $oldHeight$$11_size$$inline_2906$$, $newWidth$$14_pprTarget$$, $newHeight$$13$$) {
  if (this.$_fetchInitialBlock$) {
    this.$_ptUtils$.$isShrinkToFit$() || (this.$_maxHeight$ = $newHeight$$13$$, this.$_maxWidth$ = $newWidth$$14_pprTarget$$), this.$HandleDomScroll$(this.getComponent(), null), this.$_ptUtils$.$sizePivotTable$($newWidth$$14_pprTarget$$, $newHeight$$13$$), $JSCompiler_StaticMethods_scrollHTMLBlocks$$(this.$_ptUtils$), $JSCompiler_StaticMethods_fetchNearbyBlocks$$(this.$_ptUtils$, !0), this.$_isPaging$ && $JSCompiler_StaticMethods_updatePagingControls$$(this);
  } else {
    if (this.$_ptUtils$.$_innerContainer$.style.width = this.getDomElement().offsetWidth - 1 + "px", this.$_ptUtils$.$_innerContainer$.style.height = this.getDomElement().offsetHeight - 1 + "px", this.$_maxHeight$ = $newHeight$$13$$, this.$_maxWidth$ = $newWidth$$14_pprTarget$$, this.$_fetchInitialBlock$ = !0, this.$_isImmediate$) {
      $newWidth$$14_pprTarget$$ = AdfDhtmlPivotTablePeer.$_getChildBySubId$(this.getDomElement()), this.DomReplaceNotify($newWidth$$14_pprTarget$$);
    } else {
      if (this.$_streamingDisabled$ || !AdfPage.PAGE.isStreamingRequestPending(this.getComponent().getClientId())) {
        $oldWidth$$11_size$$12$$ = [], $oldHeight$$11_size$$inline_2906$$ = {}, $oldHeight$$11_size$$inline_2906$$.$w$ = $newWidth$$14_pprTarget$$, $oldHeight$$11_size$$inline_2906$$.$h$ = $newHeight$$13$$, $oldWidth$$11_size$$12$$[0] = $oldHeight$$11_size$$inline_2906$$, $JSCompiler_StaticMethods_fetchBlocks$$(this, "initBlock", AdfPivotTableUtils.$DELAY_INITIAL$, [], $oldWidth$$11_size$$12$$, void 0, void 0, void 0);
      }
      this.$_displayStatus$(this.$_fetchText$, !0);
    }
  }
};
AdfDhtmlPivotTablePeer.prototype.ResizeNotify = AdfDhtmlPivotTablePeer.prototype.ResizeNotify;
AdfDhtmlPivotTablePeer.prototype.DomReplaceNotify = function $AdfDhtmlPivotTablePeer$$DomReplaceNotify$($domNode$$11$$) {
  try {
    this.$_ptUtils$.$startTimer$(1, 2);
    this.$_ptUtils$.$checkpointTimer$(1, "wrote to logger");
    this.$_codeExecutionCounter$++;
    if (this.$_isAda$) {
      return;
    }
    this.$_dirtyCells$ = [];
    var $component$$482$$ = this.getComponent(), $clientBlocks$$1$$ = $component$$482$$.getProperty(AdfRichPivotTable.$__CLIENT_BLOCKS_KEY$);
    void 0 == $clientBlocks$$1$$ || "foo" == $clientBlocks$$1$$ ? $component$$482$$.setProperty(AdfRichPivotTable.$__CLIENT_BLOCKS_KEY$, "bar", !1, AdfUIComponent.PROPAGATE_ALWAYS) : $component$$482$$.setProperty(AdfRichPivotTable.$__CLIENT_BLOCKS_KEY$, "foo", !1, AdfUIComponent.PROPAGATE_ALWAYS);
    var $clickToEdit$$ = AdfAgent.AGENT.getAttribute($domNode$$11$$, "_cte");
    this.$_ptUtils$.$checkpointTimer$(1, "before CTE block");
    if ($clickToEdit$$) {
      var $isCellHeightFixed$$ = $JSCompiler_StaticMethods__isCellHeightFixed$$(this), $rowHeight$$1$$, $delta$$3$$ = void 0, $oldRowHeight$$1$$ = AdfAgent.AGENT.getIntAttribute($domNode$$11$$, "_orh");
      if ("true" == $clickToEdit$$) {
        $isCellHeightFixed$$ ? ($rowHeight$$1$$ = $oldRowHeight$$1$$, $delta$$3$$ = 0) : ($rowHeight$$1$$ = $domNode$$11$$.parentNode.offsetHeight, $delta$$3$$ = $rowHeight$$1$$ - $oldRowHeight$$1$$);
        if (null != this.$_oldActiveCellKey$) {
          var $oldActiveCellIndex$$ = $JSCompiler_StaticMethods__getDataCellIndexFromKey$$(this.$_oldActiveCellKey$), $newActiveCellKeyInfo$$ = $JSCompiler_StaticMethods_getCoordinates$$(this, $domNode$$11$$);
          $oldActiveCellIndex$$.column == $newActiveCellKeyInfo$$.col && $oldActiveCellIndex$$.row == $newActiveCellKeyInfo$$.row && ($delta$$3$$ = 0);
        }
        this.$_oldCellRowHeight$ = $oldRowHeight$$1$$;
        this.$_lastUpdatedRow$ = $JSCompiler_StaticMethods_getCoordinates$$(this, $domNode$$11$$).row;
        this.$_activeCell$ = $domNode$$11$$;
        this.$_lastEditCellRowHeight$ = $rowHeight$$1$$;
      } else {
        "false" == $clickToEdit$$ && ($isCellHeightFixed$$ ? ($rowHeight$$1$$ = $oldRowHeight$$1$$ ? $oldRowHeight$$1$$ : this.$_oldCellRowHeight$, $delta$$3$$ = 0) : ($rowHeight$$1$$ = $domNode$$11$$.parentNode.offsetHeight, $oldRowHeight$$1$$ && ($delta$$3$$ = $oldRowHeight$$1$$ - $rowHeight$$1$$)), $JSCompiler_StaticMethods_getCoordinates$$(this, $domNode$$11$$).row == this.$_lastUpdatedRow$ && ($delta$$3$$ = 0, this.$_oldCellRowHeight$ = $oldRowHeight$$1$$));
      }
      $delta$$3$$ ? $JSCompiler_StaticMethods__clickToEditResize$$(this, $domNode$$11$$, $delta$$3$$) : AdfAgent.AGENT.getPlatform() == AdfAgent.IE_PLATFORM && $JSCompiler_StaticMethods_updateTextAreaCellHeights$$($domNode$$11$$.parentNode, $rowHeight$$1$$);
      return;
    }
    this.$_ptUtils$.$checkpointTimer$(1, "CTE block");
    var $isClickToEditDoneRequest$$ = !1;
    if ($domNode$$11$$.id == this.getDomElement().id + "::RequestDone") {
      $JSCompiler_StaticMethods_highlightFocusCell$$(this);
      var $vError$$ = AdfAgent.AGENT.getBooleanAttribute($domNode$$11$$, "_vError", !1);
      if ($vError$$) {
        var $currentActiveCellKey$$inline_2914$$;
        $currentActiveCellKey$$inline_2914$$ = AdfAgent.AGENT.getBooleanAttribute($domNode$$11$$, "_CTEAction", !1) ? this.$_oldActiveCellKey$ : $JSCompiler_StaticMethods__getActiveCellKey$$(this);
        this.getComponent().setProperty(AdfRichPivotTable.$__ACTIVE_CELL_KEY$, $currentActiveCellKey$$inline_2914$$, !1, AdfUIComponent.PROPAGATE_ALWAYS);
        $JSCompiler_StaticMethods__recover$$(this, $currentActiveCellKey$$inline_2914$$);
        $JSCompiler_StaticMethods_setCurrentRequest$$(this, null);
        this.$_serverRequest$ = null;
        this.$_unfinishedHeaderKeyboardNavigation$ = this.$_isEditingCellWithFocus$ = !1;
        this.$domEventForContextMenuAfterEdit$ = null;
      }
      $JSCompiler_StaticMethods__syncAckWithAC$$(this);
      this.$_currentRequest$ == AdfDhtmlPivotTablePeer.$PARTIAL$ && $JSCompiler_StaticMethods_setCurrentRequest$$(this, null);
      this.$alreadyRequestedDismissEdit$ = !1;
      this._hideStatus();
      this.$_processClickToEditRequestCB$ || (this.$_processClickToEditRequestCB$ = this.createCallback(this.$_processClickToEditRequest$));
      AdfAgent.AGENT.getDomWindow().setTimeout(this.$_processClickToEditRequestCB$, 10);
      this.$_needFetchNearbyBlock$ && this.$_startDelayedDismissCTE$ && $JSCompiler_StaticMethods_fetchNearbyBlocks$$(this.$_ptUtils$, !0);
      this.$_startDelayedDismissCTE$ = this.$_needFetchNearbyBlock$ = null;
      null != this.$_navigateToHeaderKeyCode$ && ($vError$$ || (this.getDomElement().focus(), $JSCompiler_StaticMethods_handleCtrlArrowNavigation$$(this, this.$_navigateToHeaderKeyCode$)), this.$_navigateToHeaderKeyCode$ = null);
      null != this.$domEventForContextMenuAfterEdit$ && (this.$_displayContextMenuCB$ = this.createCallback(this._displayContextMenuAfterEdit), AdfAgent.AGENT.getDomWindow().setTimeout(this.$_displayContextMenuCB$, 300));
      null != this.$domEventForReadOnlyContentCheck$ && (null != this.$_activeCell$ && 0 == $JSCompiler_StaticMethods__getInputElementsInNode$$(this, this.$_activeCell$).length && $JSCompiler_StaticMethods_handleEnterKey$$(this, this.$domEventForReadOnlyContentCheck$), this.$domEventForReadOnlyContentCheck$ = null);
      $isClickToEditDoneRequest$$ = !0;
    }
    this.$_ptUtils$.$checkpointTimer$(1, "RequestDone block");
    var $pprTarget$$1$$ = AdfDhtmlPivotTablePeer.$_getChildBySubId$(this.getDomElement());
    if ($domNode$$11$$ == $pprTarget$$1$$) {
      var $renderType$$ = AdfAgent.AGENT.getAttribute($pprTarget$$1$$, "_renType"), $databodyBlocks$$ = $JSCompiler_StaticMethods_getArrivingBlocks$$($pprTarget$$1$$, this.$_ptUtils$.$_id$, AdfPivotTableUtils.$DATABODY$);
      if (this.$__logEnabled$) {
        var $item$$1$$ = {};
        $JSCompiler_StaticMethods_putInTestLog$$(this, $item$$1$$);
        $item$$1$$.type = "DRN";
        $item$$1$$.time = (new Date).getTime() - this.$__baseTime$;
        $item$$1$$.scrollLeft = this.$_ptUtils$.$getScroller$(1, 1).scrollLeft;
        $item$$1$$.scrollTop = this.$_ptUtils$.$getScroller$(1, 1).scrollTop;
        $item$$1$$.$renderType$ = $renderType$$;
        $item$$1$$.$databodyBlocks$ = $databodyBlocks$$;
        $item$$1$$.$rowHeaderBlocks$ = $JSCompiler_StaticMethods_getArrivingBlocks$$($pprTarget$$1$$, this.$_ptUtils$.$_id$, AdfPivotTableUtils.$ROW_EDGE$);
        $item$$1$$.$colHeaderBlocks$ = $JSCompiler_StaticMethods_getArrivingBlocks$$($pprTarget$$1$$, this.$_ptUtils$.$_id$, AdfPivotTableUtils.$COLUMN_EDGE$);
      }
      $JSCompiler_StaticMethods_requestMatchesResponse$$(this.$_serverRequest$, $databodyBlocks$$, $renderType$$) && (this.$_serverRequest$ = null);
      if (this.$_currentRequest$ == AdfDhtmlPivotTablePeer.$PARTIAL$ && $renderType$$ != AdfDhtmlPivotTablePeer.$PARTIAL$) {
        this.$__logEnabled$ && ($item$$1$$.$bailingDueToAp$ = !0);
        "initialFillViewport" == $renderType$$ && this.$_startDelayedDismissCTE$ && (this.$_needFetchNearbyBlock$ = !0);
        return;
      }
      if ("longScroll" == $renderType$$ || "shortScroll" == $renderType$$ || "initialFillViewport" == $renderType$$) {
        this.$__logEnabled$ && ($item$$1$$.$callingHdsJustInCase$ = !0), this.$HandleDomScroll$(0, null, !0);
      }
      if (this.$_currentRequest$ != AdfDhtmlPivotTablePeer.$PARTIAL$ && !$JSCompiler_StaticMethods_requestMatchesResponse$$(this.$_currentRequest$, $databodyBlocks$$, $renderType$$)) {
        this.$__logEnabled$ && ($item$$1$$.$bailingBcDoesntMatchAtTime$ = (new Date).getTime() - this.$__baseTime$);
        return;
      }
      if (this.$_adsEnabled$) {
        var $adsCounter$$ = AdfAgent.AGENT.getIntAttribute($databodyBlocks$$[0], "_adsCounter");
        if ($adsCounter$$ < this.$_blockADSCounter$ || $adsCounter$$ > this.$_bufferADSCounter$ && ("shortScroll" == $renderType$$ || "initialFillViewport" == $renderType$$)) {
          AdfPage.PAGE.addPartialTargets(this.getComponent());
          return;
        }
      }
      this._hideStatus();
      AdfPivotTableUtils.$isMobileTouchDevice$() && !this.$_isPaging$ && (this.$_ptUtils$.$_scrollWaitForFetch$ = !1);
      $component$$482$$.setProperty(AdfRichPivotTable.$__SIZE_OVERRIDES_KEY$, void 0);
      var $selectionString$$13$$;
      a: {
        for (var $nodes$$inline_2927$$ = $pprTarget$$1$$.childNodes, $i$$inline_2928$$ = 0;$i$$inline_2928$$ < $nodes$$inline_2927$$.length;$i$$inline_2928$$++) {
          var $node$$inline_2929$$ = $nodes$$inline_2927$$[$i$$inline_2928$$];
          if ($node$$inline_2929$$.id && -1 != $node$$inline_2929$$.id.indexOf(AdfDhtmlPivotTablePeer.$_SELECTION_DIV_ID$)) {
            $selectionString$$13$$ = $node$$inline_2929$$.getAttribute("_selection");
            break a;
          }
        }
        AdfLogger.LOGGER.severe("Selection String not found.  This is unexpected.");
        $selectionString$$13$$ = null;
      }
      this.$_ptUtils$.$checkpointTimer$(1, "in block-fetch block, just before switch");
      switch($renderType$$) {
        case "initBlock":
          var $summary$$inline_2933$$ = AdfAgent.AGENT.getAttribute($pprTarget$$1$$, "_summary"), $summaryDiv$$inline_2934$$ = this.$_ptUtils$.$_summaryDiv$, $summaryDivId$$inline_2935$$ = AdfAgent.AGENT.getAttribute($summaryDiv$$inline_2934$$, "id");
          AdfAgent.AGENT.setTextContent($summaryDiv$$inline_2934$$, $summary$$inline_2933$$);
          AdfAgent.AGENT.setAttribute(this.$_ptUtils$.$_container$, "aria-describedby", $summaryDivId$$inline_2935$$);
        case AdfDhtmlPivotTablePeer.$PARTIAL$:
          var $JSCompiler_StaticMethods_initInfo$self$$inline_2937$$ = this.$_ptUtils$, $viewportStartRow$$inline_2940$$ = AdfAgent.AGENT.getIntAttribute($pprTarget$$1$$, "_startRow"), $viewportStartCol$$inline_2941$$ = AdfAgent.AGENT.getIntAttribute($pprTarget$$1$$, "_startCol"), $viewportStartRowPixel$$inline_2942$$ = AdfAgent.AGENT.getIntAttribute($pprTarget$$1$$, "_startRowPixel"), $viewportStartColPixel$$inline_2943$$ = AdfAgent.AGENT.getIntAttribute($pprTarget$$1$$, "_startColPixel"), $rowHeaderStartLayer$$inline_2944$$ = 
          AdfAgent.AGENT.getIntAttribute($pprTarget$$1$$, "_rowHeaderStartLayer"), $colHeaderStartLayer$$inline_2945$$ = AdfAgent.AGENT.getIntAttribute($pprTarget$$1$$, "_colHeaderStartLayer"), $rowHeaderStartPixel$$inline_2946$$ = AdfAgent.AGENT.getIntAttribute($pprTarget$$1$$, "_rowHeaderStartPixel"), $colHeaderStartPixel$$inline_2947$$ = AdfAgent.AGENT.getIntAttribute($pprTarget$$1$$, "_colHeaderStartPixel");
          $component$$482$$.setProperty(AdfRichPivotTable.$__START_ROW_KEY$, $viewportStartRow$$inline_2940$$);
          $component$$482$$.setProperty(AdfRichPivotTable.$__START_COLUMN_KEY$, $viewportStartCol$$inline_2941$$);
          $component$$482$$.setProperty(AdfRichPivotTable.$__START_ROW_PIXEL_KEY$, $viewportStartRowPixel$$inline_2942$$);
          $component$$482$$.setProperty(AdfRichPivotTable.$__START_COLUMN_PIXEL_KEY$, $viewportStartColPixel$$inline_2943$$);
          $component$$482$$.setProperty(AdfRichPivotTable.$__ROW_HEADER_START_LAYER_KEY$, $rowHeaderStartLayer$$inline_2944$$);
          $component$$482$$.setProperty(AdfRichPivotTable.$__COLUMN_HEADER_START_LAYER_KEY$, $colHeaderStartLayer$$inline_2945$$);
          $component$$482$$.setProperty(AdfRichPivotTable.$__ROW_HEADER_START_PIXEL_KEY$, $rowHeaderStartPixel$$inline_2946$$);
          $component$$482$$.setProperty(AdfRichPivotTable.$__COLUMN_HEADER_START_PIXEL_KEY$, $colHeaderStartPixel$$inline_2947$$);
          var $splitCol$$inline_2948$$ = AdfAgent.AGENT.getIntAttribute($pprTarget$$1$$, "_splitCol"), $splitRow$$inline_2949$$ = AdfAgent.AGENT.getIntAttribute($pprTarget$$1$$, "_splitRow");
          $JSCompiler_StaticMethods_initInfo$self$$inline_2937$$.$_splitSlice$ = [$splitCol$$inline_2948$$, $splitRow$$inline_2949$$];
          var $splitSlice$$inline_2950$$ = $JSCompiler_StaticMethods_initInfo$self$$inline_2937$$.$_splitSlice$;
          $component$$482$$.setProperty(AdfRichPivotTable.$__SPLIT_COLUMN_KEY$, $splitCol$$inline_2948$$);
          $component$$482$$.setProperty(AdfRichPivotTable.$__SPLIT_ROW_KEY$, $splitRow$$inline_2949$$);
          -1 == $splitCol$$inline_2948$$ && -1 == $splitRow$$inline_2949$$ && ($JSCompiler_StaticMethods_initInfo$self$$inline_2937$$.$_splitPercentage$[0] = .5, $JSCompiler_StaticMethods_initInfo$self$$inline_2937$$.$_splitPercentage$[1] = .5);
          if (-1 != $splitCol$$inline_2948$$) {
            var $secondStartCol$$inline_2951$$ = AdfAgent.AGENT.getIntAttribute($pprTarget$$1$$, "_secondStartCol"), $secondStartColPixel$$inline_2952$$ = AdfAgent.AGENT.getIntAttribute($pprTarget$$1$$, "_secondStartColPixel");
            $component$$482$$.setProperty(AdfRichPivotTable.$__SECOND_START_COLUMN_KEY$, $secondStartCol$$inline_2951$$);
            $component$$482$$.setProperty(AdfRichPivotTable.$__SECOND_START_COLUMN_PIXEL_KEY$, $secondStartColPixel$$inline_2952$$);
          }
          if (-1 != $splitRow$$inline_2949$$) {
            var $secondStartRow$$inline_2953$$ = AdfAgent.AGENT.getIntAttribute($pprTarget$$1$$, "_secondStartRow"), $secondStartRowPixel$$inline_2954$$ = AdfAgent.AGENT.getIntAttribute($pprTarget$$1$$, "_secondStartRowPixel");
            $component$$482$$.setProperty(AdfRichPivotTable.$__SECOND_START_ROW_KEY$, $secondStartRow$$inline_2953$$);
            $component$$482$$.setProperty(AdfRichPivotTable.$__SECOND_START_ROW_PIXEL_KEY$, $secondStartRowPixel$$inline_2954$$);
          }
          var $colExtent$$inline_2955$$ = AdfAgent.AGENT.getIntAttribute($pprTarget$$1$$, "_cExtent"), $rowExtent$$inline_2956$$ = AdfAgent.AGENT.getIntAttribute($pprTarget$$1$$, "_rExtent");
          $JSCompiler_StaticMethods_initInfo$self$$inline_2937$$.$_edgeExtent$ = [$colExtent$$inline_2955$$, $rowExtent$$inline_2956$$];
          var $edgeExtent$$inline_2957$$ = $JSCompiler_StaticMethods_initInfo$self$$inline_2937$$.$_edgeExtent$, $colLayerCount$$inline_2958$$ = AdfAgent.AGENT.getIntAttribute($pprTarget$$1$$, "_cLayerCount"), $rowLayerCount$$inline_2959$$ = AdfAgent.AGENT.getIntAttribute($pprTarget$$1$$, "_rLayerCount");
          $JSCompiler_StaticMethods_initInfo$self$$inline_2937$$.$_layerCount$ = [$colLayerCount$$inline_2958$$, $rowLayerCount$$inline_2959$$];
          var $colBlockSize$$inline_2960$$ = AdfAgent.AGENT.getIntAttribute($pprTarget$$1$$, "_cBlockSize"), $rowBlockSize$$inline_2961$$ = AdfAgent.AGENT.getIntAttribute($pprTarget$$1$$, "_rBlockSize");
          $JSCompiler_StaticMethods_initInfo$self$$inline_2937$$.$_blockSize$ = [$colBlockSize$$inline_2960$$, $rowBlockSize$$inline_2961$$];
          $JSCompiler_StaticMethods_initInfo$self$$inline_2937$$.$_startPane$ = [];
          $JSCompiler_StaticMethods_initInfo$self$$inline_2937$$.$_canvasStartSlice$ = [[], []];
          $JSCompiler_StaticMethods_initInfo$self$$inline_2937$$.$_canvasEndSlice$ = [[], []];
          $JSCompiler_StaticMethods_initInfo$self$$inline_2937$$.$_paneExtent$ = [[], []];
          for (var $startPane$$inline_2962$$ = $JSCompiler_StaticMethods_initInfo$self$$inline_2937$$.$_startPane$, $canvasStartSlice$$inline_2963$$ = $JSCompiler_StaticMethods_initInfo$self$$inline_2937$$.$_canvasStartSlice$, $canvasEndSlice$$inline_2964$$ = $JSCompiler_StaticMethods_initInfo$self$$inline_2937$$.$_canvasEndSlice$, $paneExtent$$inline_2965$$ = $JSCompiler_StaticMethods_initInfo$self$$inline_2937$$.$_paneExtent$, $edge$$inline_2966$$ = 0;2 > $edge$$inline_2966$$;++$edge$$inline_2966$$) {
            -1 == $splitSlice$$inline_2950$$[$edge$$inline_2966$$] ? $startPane$$inline_2962$$[$edge$$inline_2966$$] = 1 : ($startPane$$inline_2962$$[$edge$$inline_2966$$] = 0, $canvasStartSlice$$inline_2963$$[$edge$$inline_2966$$][1] = $splitSlice$$inline_2950$$[$edge$$inline_2966$$], $canvasEndSlice$$inline_2964$$[$edge$$inline_2966$$][0] = $splitSlice$$inline_2950$$[$edge$$inline_2966$$]);
            $canvasStartSlice$$inline_2963$$[$edge$$inline_2966$$][$startPane$$inline_2962$$[$edge$$inline_2966$$]] = 0;
            $canvasEndSlice$$inline_2964$$[$edge$$inline_2966$$][1] = $edgeExtent$$inline_2957$$[$edge$$inline_2966$$];
            for (var $pane$$inline_2967$$ = $startPane$$inline_2962$$[$edge$$inline_2966$$];2 > $pane$$inline_2967$$;++$pane$$inline_2967$$) {
              $paneExtent$$inline_2965$$[$edge$$inline_2966$$][$pane$$inline_2967$$] = $canvasEndSlice$$inline_2964$$[$edge$$inline_2966$$][$pane$$inline_2967$$] - $canvasStartSlice$$inline_2963$$[$edge$$inline_2966$$][$pane$$inline_2967$$];
            }
          }
          $JSCompiler_StaticMethods_initInfo$self$$inline_2937$$.$_headerSizeAllocation$ = [Number(AdfAgent.AGENT.getAttribute($pprTarget$$1$$, "_sizeAlloc0")), Number(AdfAgent.AGENT.getAttribute($pprTarget$$1$$, "_sizeAlloc1"))];
          $JSCompiler_StaticMethods_initInfo$self$$inline_2937$$.$_headerSizeAllocUnit$ = [AdfAgent.AGENT.getAttribute($pprTarget$$1$$, "_sizeUnit0"), AdfAgent.AGENT.getAttribute($pprTarget$$1$$, "_sizeUnit1")];
          $JSCompiler_StaticMethods_initInfo$self$$inline_2937$$.$_colExtent$ = $colExtent$$inline_2955$$;
          $JSCompiler_StaticMethods_initInfo$self$$inline_2937$$.$_rowExtent$ = $rowExtent$$inline_2956$$;
          $JSCompiler_StaticMethods_initInfo$self$$inline_2937$$.$_colLayerCount$ = $colLayerCount$$inline_2958$$;
          $JSCompiler_StaticMethods_initInfo$self$$inline_2937$$.$_rowLayerCount$ = $rowLayerCount$$inline_2959$$;
          $JSCompiler_StaticMethods_initInfo$self$$inline_2937$$.$_colBlockSize$ = $colBlockSize$$inline_2960$$;
          $JSCompiler_StaticMethods_initInfo$self$$inline_2937$$.$_rowBlockSize$ = $rowBlockSize$$inline_2961$$;
          this.$_ptUtils$.$checkpointTimer$(1, "Init case: just called initInfo");
          this.$_isSortEnabled$ = AdfAgent.AGENT.getBooleanAttribute($pprTarget$$1$$, "_sortEnabled");
          this.$_currentPivotHandle$ = null;
          var $emptyTextDiv$$ = $JSCompiler_StaticMethods_getArrivingElements$$($pprTarget$$1$$, this.$_ptUtils$.$_id$ + "::" + AdfDhtmlPivotTablePeer.$EMPTY_TEXT_ID$)[0];
          this.$_ptUtils$.$_emptyTextDiv$ = $emptyTextDiv$$;
          this.$_colInfo$ = TrFastMessageFormatUtils.format(this.$_colInfo$, "{0}", this.$_ptUtils$.$_colExtent$);
          this.$_rowInfo$ = TrFastMessageFormatUtils.format(this.$_rowInfo$, "{0}", this.$_ptUtils$.$_rowExtent$);
          this.$_ptUtils$.$checkpointTimer$(1, "Init case: just did some misc init");
          for (var $JSCompiler_StaticMethods_setVisibilityOfPanes$self$$inline_2969$$ = this.$_ptUtils$, $splitSlice$$inline_2970$$ = $JSCompiler_StaticMethods_setVisibilityOfPanes$self$$inline_2969$$.$_splitSlice$, $headers$$inline_2971$$ = $JSCompiler_StaticMethods_setVisibilityOfPanes$self$$inline_2969$$.$_headers$, $databodies$$inline_2972$$ = $JSCompiler_StaticMethods_setVisibilityOfPanes$self$$inline_2969$$.$_databodies$, $scrollers$$inline_2973$$ = $JSCompiler_StaticMethods_setVisibilityOfPanes$self$$inline_2969$$.$_databodyScrollers$, 
          $edge$$inline_2974$$ = 0;2 > $edge$$inline_2974$$;++$edge$$inline_2974$$) {
            var $display$$inline_2975$$ = -1 == $splitSlice$$inline_2970$$[$edge$$inline_2974$$] ? "none" : "block";
            $headers$$inline_2971$$[$edge$$inline_2974$$][0].style.display = $display$$inline_2975$$;
            ($edge$$inline_2974$$ ? $databodies$$inline_2972$$[0][1] : $databodies$$inline_2972$$[1][0]).style.display = $display$$inline_2975$$;
            AdfPivotTableUtils.$isMobileTouchDevice$() || (($edge$$inline_2974$$ ? $scrollers$$inline_2973$$[0][1] : $scrollers$$inline_2973$$[1][0]).style.display = $display$$inline_2975$$);
          }
          $databodies$$inline_2972$$[0][0].style.display = -1 != $splitSlice$$inline_2970$$[0] && -1 != $splitSlice$$inline_2970$$[1] ? "block" : "none";
          this.$_ptUtils$.$checkpointTimer$(1, "Init case: setVisibilityOfPanes");
          $JSCompiler_StaticMethods_removeAllBlocks$$(this.$_ptUtils$);
          this.$_ptUtils$.$checkpointTimer$(1, "Init case: removeAllBlocks");
          for (var $JSCompiler_StaticMethods_removePivotHandlesAndLayerLabelBlock$self$$inline_2977$$ = this.$_ptUtils$, $pivotHandles$$inline_2978$$ = $JSCompiler_StaticMethods_getArrivingElements$$($JSCompiler_StaticMethods_removePivotHandlesAndLayerLabelBlock$self$$inline_2977$$.$_corner$, $JSCompiler_StaticMethods_removePivotHandlesAndLayerLabelBlock$self$$inline_2977$$.$_id$ + "::ph"), $length$$inline_2979$$ = $pivotHandles$$inline_2978$$.length, $i$$inline_2980$$ = 0;$i$$inline_2980$$ < $length$$inline_2979$$;$i$$inline_2980$$++) {
            $JSCompiler_StaticMethods_removePivotHandlesAndLayerLabelBlock$self$$inline_2977$$.$_corner$.removeChild($pivotHandles$$inline_2978$$[$i$$inline_2980$$]);
          }
          $JSCompiler_StaticMethods_removePivotHandlesAndLayerLabelBlock$self$$inline_2977$$.$_layerLabelBlock$ && $JSCompiler_StaticMethods_removePivotHandlesAndLayerLabelBlock$self$$inline_2977$$.$_corner$.removeChild($JSCompiler_StaticMethods_removePivotHandlesAndLayerLabelBlock$self$$inline_2977$$.$_layerLabelBlock$);
          for (var $JSCompiler_StaticMethods_addPivotHandlesAndLayerLabelBlock$self$$inline_2982$$ = this.$_ptUtils$, $pivotHandles$$inline_2984$$ = $JSCompiler_StaticMethods_getArrivingElements$$($pprTarget$$1$$, $JSCompiler_StaticMethods_addPivotHandlesAndLayerLabelBlock$self$$inline_2982$$.$_id$ + "::ph"), $length$$inline_2985$$ = $pivotHandles$$inline_2984$$.length, $i$$inline_2986$$ = 0;$i$$inline_2986$$ < $length$$inline_2985$$;$i$$inline_2986$$++) {
            $JSCompiler_StaticMethods_addPivotHandlesAndLayerLabelBlock$self$$inline_2982$$.$_corner$.appendChild($pivotHandles$$inline_2984$$[$i$$inline_2986$$]);
          }
          $JSCompiler_StaticMethods_addPivotHandlesAndLayerLabelBlock$self$$inline_2982$$.$_layerLabelBlock$ = AdfDhtmlPivotTablePeer.$_getChildById$($pprTarget$$1$$, $JSCompiler_StaticMethods_addPivotHandlesAndLayerLabelBlock$self$$inline_2982$$.$_id$ + "::LayerLabelBlock");
          $JSCompiler_StaticMethods_addPivotHandlesAndLayerLabelBlock$self$$inline_2982$$.$_layerLabelBlock$ && $JSCompiler_StaticMethods_addBlockToDOM$$($JSCompiler_StaticMethods_addPivotHandlesAndLayerLabelBlock$self$$inline_2982$$, $JSCompiler_StaticMethods_addPivotHandlesAndLayerLabelBlock$self$$inline_2982$$.$_corner$, $JSCompiler_StaticMethods_addPivotHandlesAndLayerLabelBlock$self$$inline_2982$$.$_layerLabelBlock$);
          this.$_ptUtils$.$checkpointTimer$(1, "Init case: pivothandles");
          $emptyTextDiv$$ && this.$_ptUtils$.$_databodies$[1][1].appendChild($emptyTextDiv$$);
          $JSCompiler_StaticMethods_addBlocksToBuffer$$(this.$_ptUtils$);
          this.$_ptUtils$.$checkpointTimer$(1, "Init case: addBlocksToBuffer");
          var $sizeBeforeViewport$$ = $JSCompiler_StaticMethods_sizeInitialHTMLBlocks$$(this.$_ptUtils$, !0);
          this.$_ptUtils$.$checkpointTimer$(1, "Init case: sizeInitialHTMLBlocks");
          $JSCompiler_StaticMethods__isRowHeaderTextWrap$$(this) && this.$_ptUtils$.$_isRowHeaderWidthOverrideSmaller$ && $JSCompiler_StaticMethods_coordinateRowBlockSizes$$(this.$_ptUtils$);
          this.$_ptUtils$.$sizePivotTable$(this.$_maxWidth$, this.$_maxHeight$);
          this.$_ptUtils$.$checkpointTimer$(1, "Init case: sizePivotTable");
          $JSCompiler_StaticMethods_positionInitialBlocks$$(this.$_ptUtils$, $sizeBeforeViewport$$);
          this.$_ptUtils$.$checkpointTimer$(1, "Init case: positionInitialBlocks");
          $JSCompiler_StaticMethods_setCurrentRequest$$(this, null, $adsCounter$$);
          $JSCompiler_StaticMethods_markBlocksNotNew$$(this.$_ptUtils$);
          $JSCompiler_StaticMethods_fetchNearbyBlocks$$(this.$_ptUtils$, !0);
          this.$_ptUtils$.$checkpointTimer$(1, "Init case: fetchNearbyBlocks");
          var $selectionString$$inline_2989$$ = $selectionString$$13$$, $selectionString$$inline_2989$$ = $selectionString$$inline_2989$$.substring(1, $selectionString$$inline_2989$$.length - 1), $selectionString$$inline_2989$$ = $selectionString$$inline_2989$$.replace(/'/g, '"'), $selection$$inline_2990$$ = JSON.parse($selectionString$$inline_2989$$), $selectedEdge$$inline_5072$$ = $JSCompiler_StaticMethods_getSelectedEdge$$(this, $selection$$inline_2990$$);
          switch($selectedEdge$$inline_5072$$) {
            case AdfPivotTableUtils.$DATABODY$:
              var $currentRange$$inline_5073$$ = $JSCompiler_StaticMethods_getCurrentRange$$(this, $selection$$inline_2990$$), $startIndex$$inline_5074$$ = $currentRange$$inline_5073$$.startIndex, $endIndex$$inline_5075$$ = $JSCompiler_StaticMethods_getEndIndex$$($currentRange$$inline_5073$$), $anchorRange$$inline_5076$$ = this.$_selectionAnchor$, $anchorCell$$inline_5077$$ = null == $anchorRange$$inline_5076$$ ? null : $anchorRange$$inline_5076$$.startIndex, $frontier$$inline_5078$$ = this.$_selectionFrontier$, 
              $edgeOk$$inline_5079$$ = null != $anchorCell$$inline_5077$$ && $JSCompiler_StaticMethods_getEdge$$($anchorCell$$inline_5077$$) == AdfPivotTableUtils.$DATABODY$ && null != $frontier$$inline_5078$$;
              if ($edgeOk$$inline_5079$$) {
                var $startRow$$inline_5080$$ = $startIndex$$inline_5074$$.row, $endRow$$inline_5081$$ = $endIndex$$inline_5075$$.row, $startColumn$$inline_5082$$ = $startIndex$$inline_5074$$.column, $endColumn$$inline_5083$$ = $endIndex$$inline_5075$$.column, $columnsOk$$inline_5084$$ = $anchorCell$$inline_5077$$.column == $startColumn$$inline_5082$$ && $frontier$$inline_5078$$.column == $endColumn$$inline_5083$$ || $anchorCell$$inline_5077$$.column == $endColumn$$inline_5083$$ && $frontier$$inline_5078$$.column == 
                $startColumn$$inline_5082$$, $needInit$$inline_5085$$ = !($anchorCell$$inline_5077$$.row == $startRow$$inline_5080$$ && $frontier$$inline_5078$$.row == $endRow$$inline_5081$$ || $anchorCell$$inline_5077$$.row == $endRow$$inline_5081$$ && $frontier$$inline_5078$$.row == $startRow$$inline_5080$$) || !$columnsOk$$inline_5084$$
              } else {
                $needInit$$inline_5085$$ = !0;
              }
              $needInit$$inline_5085$$ && ($JSCompiler_StaticMethods_setAnchorCell$$(this, $startIndex$$inline_5074$$, null, $currentRange$$inline_5073$$.startKey), this.$_selectionFrontier$ = $endIndex$$inline_5075$$);
              break;
            case AdfPivotTableUtils.$ROW_EDGE$:
            ;
            case AdfPivotTableUtils.$COLUMN_EDGE$:
              $currentRange$$inline_5073$$ = $JSCompiler_StaticMethods_getCurrentRange$$(this, $selection$$inline_2990$$);
              $startIndex$$inline_5074$$ = $currentRange$$inline_5073$$.startIndex;
              $endIndex$$inline_5075$$ = $JSCompiler_StaticMethods_getEndIndex$$($currentRange$$inline_5073$$);
              $anchorRange$$inline_5076$$ = this.$_selectionAnchor$;
              $anchorCell$$inline_5077$$ = null == $anchorRange$$inline_5076$$ ? null : $anchorRange$$inline_5076$$.startIndex;
              if ($edgeOk$$inline_5079$$ = null != $anchorCell$$inline_5077$$ && $JSCompiler_StaticMethods_getEdge$$($anchorCell$$inline_5077$$) == $selectedEdge$$inline_5072$$) {
                var $layerOk$$inline_5086$$ = $anchorCell$$inline_5077$$.layer == $startIndex$$inline_5074$$.layer, $sliceOk$$inline_5087$$ = this.$_selectionAnchorSelected$ ? $anchorCell$$inline_5077$$.slice == $startIndex$$inline_5074$$.slice || $anchorCell$$inline_5077$$.slice == $endIndex$$inline_5075$$.slice : $JSCompiler_StaticMethods_isHeaderCellIndexValid$$(this, $anchorCell$$inline_5077$$) && !this.isSelected($anchorCell$$inline_5077$$, $selection$$inline_2990$$), $needInit$$inline_5085$$ = 
                !$layerOk$$inline_5086$$ || !$sliceOk$$inline_5087$$
              } else {
                $needInit$$inline_5085$$ = !0;
              }
              $needInit$$inline_5085$$ && ($JSCompiler_StaticMethods_setAnchorCell$$(this, $startIndex$$inline_5074$$, $selectedEdge$$inline_5072$$, $currentRange$$inline_5073$$.startKey), this.$_selectionAnchorSelected$ = !0);
              break;
            case null:
              break;
            default:
              AdfAssert.assert(AdfPivotTableUtils.$assertsOff$, "unexpected selectedEdge in initializeAnchorAndFrontierCells");
          }
          $JSCompiler_StaticMethods_displaySelectionInStatusBar$$(this, $selection$$inline_2990$$);
          var $alreadySetSelection$$inline_2991$$ = !1;
          $JSCompiler_StaticMethods_containsFocus$$(this.getDomElement()) ? $alreadySetSelection$$inline_2991$$ = $JSCompiler_StaticMethods_initializeFocusCell$$(this, $selection$$inline_2990$$) : this.$_focusCellNeedsInit$ = !0;
          $alreadySetSelection$$inline_2991$$ || $JSCompiler_StaticMethods_setSelectionProperty$$(this, $selection$$inline_2990$$);
          this.$_ptUtils$.$checkpointTimer$(1, "Init case: initializeSelection");
          var $varActiveCellKey$$ = AdfAgent.AGENT.getAttribute($pprTarget$$1$$, "_ack");
          "null" != $varActiveCellKey$$ ? ($component$$482$$.setProperty(AdfRichPivotTable.$__ACTIVE_CELL_KEY$, $varActiveCellKey$$, !1, AdfUIComponent.PROPAGATE_ALWAYS), $component$$482$$.setProperty("activeCellKey", $varActiveCellKey$$, !1, AdfUIComponent.PROPAGATE_ALWAYS)) : ($component$$482$$.setProperty(AdfRichPivotTable.$__ACTIVE_CELL_KEY$, null, !1, AdfUIComponent.PROPAGATE_ALWAYS), $component$$482$$.setProperty("activeCellKey", null, !1, AdfUIComponent.PROPAGATE_ALWAYS));
          this.$_ptUtils$.$checkpointTimer$(1, "Init case: ACK");
          var $component$$inline_2995$$ = this.getComponent(), $activeCellKey$$inline_2996$$ = $pprTarget$$1$$.getAttribute("_initACK");
          $activeCellKey$$inline_2996$$ ? ($component$$inline_2995$$.setProperty(AdfRichPivotTable.$__ACTIVE_CELL_KEY$, $activeCellKey$$inline_2996$$, !1, AdfUIComponent.PROPAGATE_NEVER), $component$$inline_2995$$.setProperty("activeCellKey", $activeCellKey$$inline_2996$$, !1, AdfUIComponent.PROPAGATE_NEVER), this.$_activeCellKeySetFromServer$ = !0) : $pprTarget$$1$$.getAttribute("_afrACKChange") && (this.$_activeCellKeySetFromServer$ = !0);
          break;
        case "longScroll":
          if ("true" == this.getDomElement().getAttribute("_rngChgLstnr")) {
            var $clone$$2$$ = this.$_ptUtils$.cloneArray(this.$_ptUtils$.$_databodyBuffers$)
          }
          $JSCompiler_StaticMethods_removeAllBlocks$$(this.$_ptUtils$);
          $JSCompiler_StaticMethods_addBlocksToBuffer$$(this.$_ptUtils$);
          if (null != $clone$$2$$) {
            var $event$$170$$ = $JSCompiler_StaticMethods__getRangeChangeEvent$$(this, $clone$$2$$, this.$_ptUtils$.$_databodyBuffers$);
            $event$$170$$.$_blockRemoved$ = !1;
          }
          $sizeBeforeViewport$$ = $JSCompiler_StaticMethods_sizeInitialHTMLBlocks$$(this.$_ptUtils$, !1);
          $JSCompiler_StaticMethods__isRowHeaderTextWrap$$(this) && this.$_ptUtils$.$_isRowHeaderWidthOverrideSmaller$ && $JSCompiler_StaticMethods_coordinateRowBlockSizes$$(this.$_ptUtils$);
          this.$_ptUtils$.$sizePivotTable$(this.$_maxWidth$, this.$_maxHeight$);
          $JSCompiler_StaticMethods_positionInitialBlocks$$(this.$_ptUtils$, $sizeBeforeViewport$$);
          var $selectionString$$inline_3002$$ = $selectionString$$13$$, $selectionString$$inline_3002$$ = $selectionString$$inline_3002$$.substring(1, $selectionString$$inline_3002$$.length - 1), $selectionString$$inline_3002$$ = $selectionString$$inline_3002$$.replace(/'/g, '"'), $selection$$inline_3003$$ = JSON.parse($selectionString$$inline_3002$$);
          $JSCompiler_StaticMethods_displaySelectionInStatusBar$$(this, $selection$$inline_3003$$);
          $JSCompiler_StaticMethods_setSelectionProperty$$(this, $selection$$inline_3003$$);
          $JSCompiler_StaticMethods_setCurrentRequest$$(this, null, $adsCounter$$);
          $JSCompiler_StaticMethods_markBlocksNotNew$$(this.$_ptUtils$);
          null != $event$$170$$ && $component$$482$$.queueEvent($event$$170$$);
          $JSCompiler_StaticMethods__handleEditingAndFocusAfterFetch$$(this);
          break;
        case "shortScroll":
        ;
        case "initialFillViewport":
          for (var $deltas$$ = [[], []], $edge$$16$$ = 1;0 <= $edge$$16$$;--$edge$$16$$) {
            for (var $pane$$3$$ = this.$_ptUtils$.$_startPane$[$edge$$16$$];2 > $pane$$3$$;++$pane$$3$$) {
              $deltas$$[$edge$$16$$][$pane$$3$$] = this.$_ptUtils$.$getScrollPos$($edge$$16$$, $pane$$3$$) - $JSCompiler_StaticMethods_getOldScrollPos$$(this.$_ptUtils$, $edge$$16$$, $pane$$3$$);
            }
          }
          "true" == this.getDomElement().getAttribute("_rngChgLstnr") && ($clone$$2$$ = this.$_ptUtils$.cloneArray(this.$_ptUtils$.$_databodyBuffers$));
          var $JSCompiler_StaticMethods_trimBuffer$self$$inline_3005$$ = this.$_ptUtils$, $boundses$$inline_3007$$ = [[], []], $bufferEmpty$$inline_3008$$ = !1, $noOverlap$$inline_3009$$ = !1, $edge$$inline_3010$$ = 0;
          a: for (;2 > $edge$$inline_3010$$;++$edge$$inline_3010$$) {
            for (var $pane$$inline_3011$$ = $JSCompiler_StaticMethods_trimBuffer$self$$inline_3005$$.$_startPane$[$edge$$inline_3010$$];2 > $pane$$inline_3011$$;++$pane$$inline_3011$$) {
              var $bufferLength$$inline_3012$$ = $JSCompiler_StaticMethods_trimBuffer$self$$inline_3005$$.$_buffers2$[$edge$$inline_3010$$][$pane$$inline_3011$$].length;
              if (0 == $bufferLength$$inline_3012$$) {
                $bufferEmpty$$inline_3008$$ = !0;
                break a;
              }
              var $bounds$$inline_3013$$ = $JSCompiler_StaticMethods_rangeOfBlocksOverlappingShiftedViewport$$($JSCompiler_StaticMethods_trimBuffer$self$$inline_3005$$, $edge$$inline_3010$$, $pane$$inline_3011$$, $deltas$$ ? $deltas$$[$edge$$inline_3010$$][$pane$$inline_3011$$] : 0);
              if (!$JSCompiler_StaticMethods_doesBufferOverlapShiftedViewport$$($JSCompiler_StaticMethods_trimBuffer$self$$inline_3005$$, $edge$$inline_3010$$, $pane$$inline_3011$$, $bounds$$inline_3013$$)) {
                $noOverlap$$inline_3009$$ = !0;
                break a;
              }
              $bounds$$inline_3013$$.start = Math.max($bounds$$inline_3013$$.start, 0);
              $bounds$$inline_3013$$.end = Math.min($bounds$$inline_3013$$.end, $bufferLength$$inline_3012$$ - 1);
              $boundses$$inline_3007$$[$edge$$inline_3010$$][$pane$$inline_3011$$] = $bounds$$inline_3013$$;
            }
          }
          if ($bufferEmpty$$inline_3008$$) {
            AdfLogger.LOGGER.severe("trimBuffer found that the buffer was already empty.  This is unexpected."), $JSCompiler_StaticMethods_removeAllBlocks$$($JSCompiler_StaticMethods_trimBuffer$self$$inline_3005$$);
          } else {
            if ($noOverlap$$inline_3009$$) {
              AdfLogger.LOGGER.severe("trimBuffer is removing all blocks due to no overlap.  This is unexpected."), $JSCompiler_StaticMethods_removeAllBlocks$$($JSCompiler_StaticMethods_trimBuffer$self$$inline_3005$$);
            } else {
              for ($edge$$inline_3010$$ = 1;0 <= $edge$$inline_3010$$;--$edge$$inline_3010$$) {
                for ($pane$$inline_3011$$ = $JSCompiler_StaticMethods_trimBuffer$self$$inline_3005$$.$_startPane$[$edge$$inline_3010$$];2 > $pane$$inline_3011$$;++$pane$$inline_3011$$) {
                  var $bounds$$inline_3013$$ = $boundses$$inline_3007$$[$edge$$inline_3010$$][$pane$$inline_3011$$], $deleteStart$$inline_3014$$ = $bounds$$inline_3013$$.end + 1, $bufferLength$$inline_3012$$ = $JSCompiler_StaticMethods_trimBuffer$self$$inline_3005$$.$_buffers2$[$edge$$inline_3010$$][$pane$$inline_3011$$].length, $deleteCount$$inline_3015$$ = $bufferLength$$inline_3012$$ - $deleteStart$$inline_3014$$;
                  $JSCompiler_StaticMethods__trimBuffer$$($JSCompiler_StaticMethods_trimBuffer$self$$inline_3005$$, $edge$$inline_3010$$, $pane$$inline_3011$$, $deleteStart$$inline_3014$$, $deleteCount$$inline_3015$$);
                  $deleteStart$$inline_3014$$ = 0;
                  $deleteCount$$inline_3015$$ = $bounds$$inline_3013$$.start;
                  $JSCompiler_StaticMethods__trimBuffer$$($JSCompiler_StaticMethods_trimBuffer$self$$inline_3005$$, $edge$$inline_3010$$, $pane$$inline_3011$$, $deleteStart$$inline_3014$$, $deleteCount$$inline_3015$$);
                }
              }
              for ($edge$$inline_3010$$ = 1;0 <= $edge$$inline_3010$$;--$edge$$inline_3010$$) {
                for ($pane$$inline_3011$$ = $JSCompiler_StaticMethods_trimBuffer$self$$inline_3005$$.$_startPane$[$edge$$inline_3010$$];2 > $pane$$inline_3011$$;++$pane$$inline_3011$$) {
                  var $headerBuffer$$inline_3016$$ = $JSCompiler_StaticMethods_trimBuffer$self$$inline_3005$$.$_buffers2$[$edge$$inline_3010$$][$pane$$inline_3011$$], $lastIndex$$inline_3017$$ = $headerBuffer$$inline_3016$$.length - 1;
                  $headerBuffer$$inline_3016$$[$lastIndex$$inline_3017$$]._placeholder && ($deleteStart$$inline_3014$$ = $lastIndex$$inline_3017$$, $deleteCount$$inline_3015$$ = 1, $JSCompiler_StaticMethods__trimBuffer$$($JSCompiler_StaticMethods_trimBuffer$self$$inline_3005$$, $edge$$inline_3010$$, $pane$$inline_3011$$, $deleteStart$$inline_3014$$, $deleteCount$$inline_3015$$));
                }
              }
              for ($edge$$inline_3010$$ = 1;0 <= $edge$$inline_3010$$;--$edge$$inline_3010$$) {
                for ($pane$$inline_3011$$ = $JSCompiler_StaticMethods_trimBuffer$self$$inline_3005$$.$_startPane$[$edge$$inline_3010$$];2 > $pane$$inline_3011$$;++$pane$$inline_3011$$) {
                  var $headerBuffer$$inline_3016$$ = $JSCompiler_StaticMethods_trimBuffer$self$$inline_3005$$.$_buffers2$[$edge$$inline_3010$$][$pane$$inline_3011$$], $firstBlock$$inline_3018$$ = $headerBuffer$$inline_3016$$[0];
                  $firstBlock$$inline_3018$$ && $firstBlock$$inline_3018$$._placeholder && ($deleteStart$$inline_3014$$ = 0, $deleteCount$$inline_3015$$ = 1, $JSCompiler_StaticMethods__trimBuffer$$($JSCompiler_StaticMethods_trimBuffer$self$$inline_3005$$, $edge$$inline_3010$$, $pane$$inline_3011$$, $deleteStart$$inline_3014$$, $deleteCount$$inline_3015$$));
                }
              }
              for ($edge$$inline_3010$$ = 0;2 > $edge$$inline_3010$$;++$edge$$inline_3010$$) {
                for ($pane$$inline_3011$$ = $JSCompiler_StaticMethods_trimBuffer$self$$inline_3005$$.$_startPane$[$edge$$inline_3010$$];2 > $pane$$inline_3011$$;++$pane$$inline_3011$$) {
                  0 == $JSCompiler_StaticMethods_trimBuffer$self$$inline_3005$$.$_buffers2$[$edge$$inline_3010$$][$pane$$inline_3011$$].length && (AdfLogger.LOGGER.severe("trimBuffer found overlap betweeen the buffer and the viewport, but that overlap was exclusively placeholder rows/columns, so it removed all blocks.  This is unexpected."), $JSCompiler_StaticMethods_removeAllBlocks$$($JSCompiler_StaticMethods_trimBuffer$self$$inline_3005$$));
                }
              }
            }
          }
          null != $clone$$2$$ && ($event$$170$$ = $JSCompiler_StaticMethods__getRangeChangeEvent$$(this, $clone$$2$$, this.$_ptUtils$.$_databodyBuffers$));
          $JSCompiler_StaticMethods_addBlocksToBuffer$$(this.$_ptUtils$);
          if (this.$_adsEnabled$) {
            var $adsCounter$$inline_3022$$ = $adsCounter$$, $list$$inline_3023$$ = this.$_activeMessageBuffer$;
            if ($list$$inline_3023$$) {
              for (var $i$$inline_3024$$ = 0;$i$$inline_3024$$ < $list$$inline_3023$$.length && $list$$inline_3023$$[$i$$inline_3024$$] <= $adsCounter$$inline_3022$$;) {
                $i$$inline_3024$$++;
                var $payload$$inline_3025$$ = $list$$inline_3023$$[$i$$inline_3024$$++];
                $JSCompiler_StaticMethods_applyAdsPayload$$(this, $payload$$inline_3025$$, !1);
              }
              $list$$inline_3023$$.splice(0, $i$$inline_3024$$);
            }
          }
          for (var $JSCompiler_StaticMethods_sizeNewHTMLBlocks$self$$inline_3027$$ = this.$_ptUtils$, $isIE$$inline_5090$$ = AdfAgent.AGENT.getPlatform() == AdfAgent.IE_PLATFORM, $colHeaderBlocks$$inline_5091$$ = [], $colPane$$inline_5092$$ = $JSCompiler_StaticMethods_sizeNewHTMLBlocks$self$$inline_3027$$.$_startPane$[0];2 > $colPane$$inline_5092$$;++$colPane$$inline_5092$$) {
            for (var $colHeaderBuffer$$inline_5093$$ = $JSCompiler_StaticMethods_sizeNewHTMLBlocks$self$$inline_3027$$.$_colHeaderBuffers$[$colPane$$inline_5092$$], $length$$inline_5094$$ = $colHeaderBuffer$$inline_5093$$.length, $iCol$$inline_5095$$ = 0;$iCol$$inline_5095$$ < $length$$inline_5094$$;$iCol$$inline_5095$$++) {
              var $colHeaderBlock$$inline_5096$$ = $colHeaderBuffer$$inline_5093$$[$iCol$$inline_5095$$];
              if (!$colHeaderBlock$$inline_5096$$._placeholder) {
                for (var $databodyBlocks$$inline_5097$$ = [], $rowPane$$inline_5098$$ = $JSCompiler_StaticMethods_sizeNewHTMLBlocks$self$$inline_3027$$.$_startPane$[1];2 > $rowPane$$inline_5098$$;++$rowPane$$inline_5098$$) {
                  for (var $databodyBuffer$$inline_5099$$ = $JSCompiler_StaticMethods_sizeNewHTMLBlocks$self$$inline_3027$$.$_databodyBuffers$[$rowPane$$inline_5098$$][$colPane$$inline_5092$$], $numBlockRows$$inline_5100$$ = $databodyBuffer$$inline_5099$$.length, $iRow$$inline_5101$$ = 0;$iRow$$inline_5101$$ < $numBlockRows$$inline_5100$$;$iRow$$inline_5101$$++) {
                    var $block$$inline_5102$$ = $databodyBuffer$$inline_5099$$[$iRow$$inline_5101$$][$iCol$$inline_5095$$];
                    $block$$inline_5102$$ && $block$$inline_5102$$._new && $databodyBlocks$$inline_5097$$.push($block$$inline_5102$$);
                  }
                }
                if ($colHeaderBlock$$inline_5096$$._new) {
                  $JSCompiler_StaticMethods_coordinateHTMLBlockColumnWidths$$($JSCompiler_StaticMethods_sizeNewHTMLBlocks$self$$inline_3027$$, $colHeaderBlock$$inline_5096$$, $databodyBlocks$$inline_5097$$);
                } else {
                  for (var $databodyBlocks$$inline_5103$$ = $databodyBlocks$$inline_5097$$, $width$$inline_5104$$ = $colHeaderBlock$$inline_5096$$.$_width$, $length$$inline_5105$$ = $databodyBlocks$$inline_5103$$.length, $i$$inline_5106$$ = 0;$i$$inline_5106$$ < $length$$inline_5105$$;++$i$$inline_5106$$) {
                    $databodyBlocks$$inline_5103$$[$i$$inline_5106$$].$_width$ = $width$$inline_5104$$;
                  }
                }
                $colHeaderBlocks$$inline_5091$$.push($colHeaderBlock$$inline_5096$$);
              }
            }
          }
          for ($rowPane$$inline_5098$$ = $JSCompiler_StaticMethods_sizeNewHTMLBlocks$self$$inline_3027$$.$_startPane$[1];2 > $rowPane$$inline_5098$$;++$rowPane$$inline_5098$$) {
            for (var $rowHeaderBuffer$$inline_5107$$ = $JSCompiler_StaticMethods_sizeNewHTMLBlocks$self$$inline_3027$$.$_rowHeaderBuffers$[$rowPane$$inline_5098$$], $length$$inline_5094$$ = $rowHeaderBuffer$$inline_5107$$.length, $iRow$$inline_5101$$ = 0;$iRow$$inline_5101$$ < $length$$inline_5094$$;$iRow$$inline_5101$$++) {
              for (var $rowHeaderBlock$$inline_5108$$ = $rowHeaderBuffer$$inline_5107$$[$iRow$$inline_5101$$], $databodyBlocks$$inline_5097$$ = [], $existingDatabodyBlocks$$inline_5109$$ = [], $colPane$$inline_5092$$ = $JSCompiler_StaticMethods_sizeNewHTMLBlocks$self$$inline_3027$$.$_startPane$[0];2 > $colPane$$inline_5092$$;++$colPane$$inline_5092$$) {
                for (var $databodyBuffer$$inline_5099$$ = $JSCompiler_StaticMethods_sizeNewHTMLBlocks$self$$inline_3027$$.$_databodyBuffers$[$rowPane$$inline_5098$$][$colPane$$inline_5092$$], $numBlockCols$$inline_5110$$ = $databodyBuffer$$inline_5099$$[$iRow$$inline_5101$$].length, $iCol$$inline_5095$$ = 0;$iCol$$inline_5095$$ < $numBlockCols$$inline_5110$$;$iCol$$inline_5095$$++) {
                  ($block$$inline_5102$$ = $databodyBuffer$$inline_5099$$[$iRow$$inline_5101$$][$iCol$$inline_5095$$]) && $block$$inline_5102$$._new ? ($isIE$$inline_5090$$ && $JSCompiler_StaticMethods_sizeNewHTMLBlocks$self$$inline_3027$$.$_rightToLeft$ && ($block$$inline_5102$$.childNodes[0].style.position = "absolute"), $databodyBlocks$$inline_5097$$.push($block$$inline_5102$$)) : $existingDatabodyBlocks$$inline_5109$$.push($block$$inline_5102$$);
                }
              }
              ($rowHeaderBlock$$inline_5108$$._new || 0 < $databodyBlocks$$inline_5097$$.length) && $JSCompiler_StaticMethods_coordinateHTMLBlockRowHeights$$($JSCompiler_StaticMethods_sizeNewHTMLBlocks$self$$inline_3027$$, $rowHeaderBlock$$inline_5108$$, $databodyBlocks$$inline_5097$$, $existingDatabodyBlocks$$inline_5109$$, $iRow$$inline_5101$$);
            }
          }
          $JSCompiler_StaticMethods_coordinateColumnHeaderRowHeights$$($JSCompiler_StaticMethods_sizeNewHTMLBlocks$self$$inline_3027$$, $colHeaderBlocks$$inline_5091$$, !1);
          $JSCompiler_StaticMethods_setBlockTableStyles$$($JSCompiler_StaticMethods_sizeNewHTMLBlocks$self$$inline_3027$$, !0);
          var $buffer$$inline_3028$$, $block$$inline_3029$$, $length$$inline_3030$$;
          if (AdfAgent.AGENT.getPlatform() != AdfAgent.IE_PLATFORM || 8 <= AdfAgent.AGENT.getVersion()) {
            for (var $pane$$inline_3031$$ = $JSCompiler_StaticMethods_sizeNewHTMLBlocks$self$$inline_3027$$.$_startPane$[1];2 > $pane$$inline_3031$$;++$pane$$inline_3031$$) {
              for ($buffer$$inline_3028$$ = $JSCompiler_StaticMethods_sizeNewHTMLBlocks$self$$inline_3027$$.$_rowHeaderBuffers$[$pane$$inline_3031$$], $length$$inline_3030$$ = $buffer$$inline_3028$$.length, i = 0;i < $length$$inline_3030$$;i++) {
                $block$$inline_3029$$ = $buffer$$inline_3028$$[i], !$block$$inline_3029$$._placeholder && $block$$inline_3029$$._new && $JSCompiler_StaticMethods_setCachedSize$$($JSCompiler_StaticMethods_sizeNewHTMLBlocks$self$$inline_3027$$, $block$$inline_3029$$, $block$$inline_3029$$.childNodes[0].offsetWidth, AdfPivotTableUtils.$COLUMN_EDGE$);
              }
            }
          } else {
            $JSCompiler_StaticMethods_shiftAllPlaceholderCells$$($JSCompiler_StaticMethods_sizeNewHTMLBlocks$self$$inline_3027$$, !0);
          }
          $JSCompiler_StaticMethods__isRowHeaderTextWrap$$(this) && $JSCompiler_StaticMethods_coordinateRowBlockSizes$$(this.$_ptUtils$);
          this.$_ptUtils$.$sizePivotTable$(this.$_maxWidth$, this.$_maxHeight$);
          var $JSCompiler_StaticMethods_positionNewHTMLBlocks$self$$inline_3033$$ = this.$_ptUtils$, $edge$$inline_3035$$, $pane$$inline_3036$$, $i$$inline_3037$$, $j$$inline_3038$$, $scrollPos$$inline_3039$$ = [[], []];
          for ($edge$$inline_3035$$ = 1;0 <= $edge$$inline_3035$$;--$edge$$inline_3035$$) {
            var $headerBuffers$$inline_3040$$ = $JSCompiler_StaticMethods_positionNewHTMLBlocks$self$$inline_3033$$.$_buffers2$[$edge$$inline_3035$$], $_canvasPosAttr$$inline_3041$$ = $JSCompiler_StaticMethods_positionNewHTMLBlocks$self$$inline_3033$$.$_canvasPosAttr$[$edge$$inline_3035$$], $_sizeAttr$$inline_3042$$ = $JSCompiler_StaticMethods_positionNewHTMLBlocks$self$$inline_3033$$.$_sizeAttr$[$edge$$inline_3035$$], $_posAttr$$inline_3043$$ = $JSCompiler_StaticMethods_positionNewHTMLBlocks$self$$inline_3033$$.$_posAttr$[$edge$$inline_3035$$];
            for ($pane$$inline_3036$$ = $JSCompiler_StaticMethods_positionNewHTMLBlocks$self$$inline_3033$$.$_startPane$[$edge$$inline_3035$$];2 > $pane$$inline_3036$$;++$pane$$inline_3036$$) {
              var $headerBuffer$$inline_3044$$ = $headerBuffers$$inline_3040$$[$pane$$inline_3036$$], $length$$inline_3045$$ = $headerBuffer$$inline_3044$$.length, $oldHeaderBlock$$inline_3046$$ = null, $block$$inline_3047$$ = $headerBuffer$$inline_3044$$[0];
              $block$$inline_3047$$._new || ($oldHeaderBlock$$inline_3046$$ = $block$$inline_3047$$);
              var $slicesBeforeBlock$$inline_3048$$ = $JSCompiler_StaticMethods_positionNewHTMLBlocks$self$$inline_3033$$.getIntAttribute($block$$inline_3047$$, "_startSlice") - $JSCompiler_StaticMethods_positionNewHTMLBlocks$self$$inline_3033$$.$_canvasStartSlice$[$edge$$inline_3035$$][$pane$$inline_3036$$];
              $JSCompiler_StaticMethods_setCanvasPos$$($edge$$inline_3035$$, $JSCompiler_StaticMethods_positionNewHTMLBlocks$self$$inline_3033$$.$_defaultSliceSize$[$edge$$inline_3035$$] * $slicesBeforeBlock$$inline_3048$$, $block$$inline_3047$$);
              for ($i$$inline_3037$$ = 1;$i$$inline_3037$$ < $length$$inline_3045$$;$i$$inline_3037$$++) {
                var $prevBlock$$inline_3049$$ = $block$$inline_3047$$, $block$$inline_3047$$ = $headerBuffer$$inline_3044$$[$i$$inline_3037$$];
                null != $oldHeaderBlock$$inline_3046$$ || $block$$inline_3047$$._new || ($oldHeaderBlock$$inline_3046$$ = $block$$inline_3047$$);
                $JSCompiler_StaticMethods_setCanvasPos$$($edge$$inline_3035$$, $prevBlock$$inline_3049$$[$_canvasPosAttr$$inline_3041$$] + $prevBlock$$inline_3049$$[$_sizeAttr$$inline_3042$$], $block$$inline_3047$$);
                $block$$inline_3047$$.style[$edge$$inline_3035$$ ? "left" : "top"] = "0px";
              }
              $scrollPos$$inline_3039$$[$edge$$inline_3035$$][$pane$$inline_3036$$] = $oldHeaderBlock$$inline_3046$$[$_canvasPosAttr$$inline_3041$$] - ($oldHeaderBlock$$inline_3046$$[$_posAttr$$inline_3043$$] - $deltas$$[$edge$$inline_3035$$][$pane$$inline_3036$$]);
            }
          }
          for (var $rowHeaderBuffers$$inline_3050$$ = $JSCompiler_StaticMethods_positionNewHTMLBlocks$self$$inline_3033$$.$_rowHeaderBuffers$, $colHeaderBuffers$$inline_3051$$ = $JSCompiler_StaticMethods_positionNewHTMLBlocks$self$$inline_3033$$.$_colHeaderBuffers$, $databodyBuffers$$inline_3052$$ = $JSCompiler_StaticMethods_positionNewHTMLBlocks$self$$inline_3033$$.$_databodyBuffers$, $rowPane$$inline_3053$$ = $JSCompiler_StaticMethods_positionNewHTMLBlocks$self$$inline_3033$$.$_startPane$[1];2 > 
          $rowPane$$inline_3053$$;++$rowPane$$inline_3053$$) {
            for (var $rowHeaderBuffer$$inline_3054$$ = $rowHeaderBuffers$$inline_3050$$[$rowPane$$inline_3053$$], $rowOfDatabodyBuffers$$inline_3055$$ = $databodyBuffers$$inline_3052$$[$rowPane$$inline_3053$$], $colPane$$inline_3056$$ = $JSCompiler_StaticMethods_positionNewHTMLBlocks$self$$inline_3033$$.$_startPane$[0];2 > $colPane$$inline_3056$$;++$colPane$$inline_3056$$) {
              var $colHeaderBuffer$$inline_3057$$ = $colHeaderBuffers$$inline_3051$$[$colPane$$inline_3056$$], $databodyBuffer$$inline_3058$$ = $rowOfDatabodyBuffers$$inline_3055$$[$colPane$$inline_3056$$], $length$$inline_3045$$ = $databodyBuffer$$inline_3058$$.length;
              for ($i$$inline_3037$$ = 0;$i$$inline_3037$$ < $length$$inline_3045$$;$i$$inline_3037$$++) {
                var $rowHeaderBlock$$inline_3059$$ = $rowHeaderBuffer$$inline_3054$$[$i$$inline_3037$$], $rowOfDatabodyBlocks$$inline_3060$$ = $databodyBuffer$$inline_3058$$[$i$$inline_3037$$], $rLength$$inline_3061$$ = $rowOfDatabodyBlocks$$inline_3060$$.length;
                for ($j$$inline_3038$$ = 0;$j$$inline_3038$$ < $rLength$$inline_3061$$;$j$$inline_3038$$++) {
                  var $colHeaderBlock$$inline_3062$$ = $colHeaderBuffer$$inline_3057$$[$j$$inline_3038$$], $databodyBlock$$inline_3063$$ = $rowOfDatabodyBlocks$$inline_3060$$[$j$$inline_3038$$];
                  $JSCompiler_StaticMethods_setCanvasPos$$(1, $rowHeaderBlock$$inline_3059$$._canvasTop, $databodyBlock$$inline_3063$$);
                  $JSCompiler_StaticMethods_setCanvasPos$$(0, $colHeaderBlock$$inline_3062$$._canvasHorizPos, $databodyBlock$$inline_3063$$);
                }
              }
            }
          }
          for ($edge$$inline_3035$$ = 1;0 <= $edge$$inline_3035$$;--$edge$$inline_3035$$) {
            for ($pane$$inline_3036$$ = $JSCompiler_StaticMethods_positionNewHTMLBlocks$self$$inline_3033$$.$_startPane$[$edge$$inline_3035$$];2 > $pane$$inline_3036$$;++$pane$$inline_3036$$) {
              $JSCompiler_StaticMethods_positionNewHTMLBlocks$self$$inline_3033$$.$_pivotTablePeer$.$__logEnabled$ && $JSCompiler_StaticMethods_putInTestLog$$($JSCompiler_StaticMethods_positionNewHTMLBlocks$self$$inline_3033$$.$_pivotTablePeer$, "positionNewHTMLBlocks calling setScrollPos(" + $edge$$inline_3035$$ + ", " + $pane$$inline_3036$$ + ", " + $scrollPos$$inline_3039$$[$edge$$inline_3035$$][$pane$$inline_3036$$] + ")"), $JSCompiler_StaticMethods_positionNewHTMLBlocks$self$$inline_3033$$.setScrollPos($edge$$inline_3035$$, 
              $pane$$inline_3036$$, $scrollPos$$inline_3039$$[$edge$$inline_3035$$][$pane$$inline_3036$$]);
            }
          }
          $JSCompiler_StaticMethods_scrollHTMLBlocks$$(this.$_ptUtils$, !0);
          $JSCompiler_StaticMethods_setViewportStartSliceFromPosition$$(this.$_ptUtils$);
          var $selectionString$$inline_3066$$ = $selectionString$$13$$, $selectionString$$inline_3066$$ = $selectionString$$inline_3066$$.substring(1, $selectionString$$inline_3066$$.length - 1), $selectionString$$inline_3066$$ = $selectionString$$inline_3066$$.replace(/'/g, '"'), $serverSelection$$inline_3067$$ = JSON.parse($selectionString$$inline_3066$$), $serverSelectedEdge$$inline_3068$$ = $JSCompiler_StaticMethods_getSelectedEdge$$(this, $serverSelection$$inline_3067$$), $clientSelectedEdge$$inline_3069$$ = 
          $JSCompiler_StaticMethods_getSelectedEdge$$(this);
          if (null != $serverSelectedEdge$$inline_3068$$ && $serverSelectedEdge$$inline_3068$$ == $clientSelectedEdge$$inline_3069$$) {
            for (var $newSelection$$inline_3070$$ = $JSCompiler_StaticMethods_copySelection$$(this), $clientSelectionSet$$inline_3071$$ = $JSCompiler_StaticMethods_getSelectionForEdge$$(this, $clientSelectedEdge$$inline_3069$$, $newSelection$$inline_3070$$), $serverSelectionSet$$inline_3072$$ = $JSCompiler_StaticMethods_getSelectionForEdge$$(this, $serverSelectedEdge$$inline_3068$$, $serverSelection$$inline_3067$$), $i$$inline_3073$$ = 0;$i$$inline_3073$$ < $clientSelectionSet$$inline_3071$$.length;++$i$$inline_3073$$) {
              var $clientRange$$inline_3074$$ = $clientSelectionSet$$inline_3071$$[$i$$inline_3073$$], $serverRange$$inline_3075$$ = $serverSelectionSet$$inline_3072$$[$i$$inline_3073$$];
              if (null == $clientRange$$inline_3074$$.startIndex) {
                if ($serverRange$$inline_3075$$ && $JSCompiler_StaticMethods_cellKeyEquals$$($serverRange$$inline_3075$$.startKey, $clientRange$$inline_3074$$.startKey)) {
                  $clientRange$$inline_3074$$.startIndex = $serverRange$$inline_3075$$.startIndex;
                } else {
                  for (var $j$$inline_3076$$ = 0;$j$$inline_3076$$ < $serverSelectionSet$$inline_3072$$.length;++$j$$inline_3076$$) {
                    var $serverRange2$$inline_3077$$ = $serverSelectionSet$$inline_3072$$[$j$$inline_3076$$];
                    if ($JSCompiler_StaticMethods_cellKeyEquals$$($serverRange2$$inline_3077$$.startKey, $clientRange$$inline_3074$$.startKey)) {
                      $clientRange$$inline_3074$$.startIndex = $serverRange2$$inline_3077$$.startIndex;
                      break;
                    }
                  }
                }
              } else {
                null == $clientRange$$inline_3074$$.startKey && $serverRange$$inline_3075$$ && $JSCompiler_StaticMethods_cellIndexEquals$$($serverRange$$inline_3075$$.startIndex, $clientRange$$inline_3074$$.startIndex) && ($clientRange$$inline_3074$$.startKey = $serverRange$$inline_3075$$.startKey);
              }
              null != $clientRange$$inline_3074$$.endIndex && null == $clientRange$$inline_3074$$.endKey && $serverRange$$inline_3075$$ && $JSCompiler_StaticMethods_cellIndexEquals$$($serverRange$$inline_3075$$.endIndex, $clientRange$$inline_3074$$.endIndex) && ($clientRange$$inline_3074$$.endKey = $serverRange$$inline_3075$$.endKey);
            }
            $JSCompiler_StaticMethods_displaySelectionInStatusBar$$(this, $newSelection$$inline_3070$$);
            $JSCompiler_StaticMethods_setSelectionProperty$$(this, $newSelection$$inline_3070$$);
          }
          $JSCompiler_StaticMethods_highlightSelection$$(this, !1, !0);
          $JSCompiler_StaticMethods_setCurrentRequest$$(this, null, $adsCounter$$);
          $JSCompiler_StaticMethods_markBlocksNotNew$$(this.$_ptUtils$);
          null != $event$$170$$ && $component$$482$$.queueEvent($event$$170$$);
          $JSCompiler_StaticMethods__handleEditingAndFocusAfterFetch$$(this);
          break;
        default:
          AdfAssert.assert(AdfPivotTableUtils.$assertsOff$, "unexpected renderType in DomReplaceNotify");
      }
      this.$_ptUtils$.$checkpointTimer$(1, "after switch");
      if (this.$_unfinishedHeaderKeyboardNavigation$) {
        this.$_unfinishedHeaderKeyboardNavigation$ = !1;
        var $context$$inline_3080$$ = this.$_unfinishedNavContext$, $newCellInfo$$inline_3081$$ = $JSCompiler_StaticMethods_getHeaderCellInfo$$(this, $context$$inline_3080$$.edge, $context$$inline_3080$$.$newLayer$, $context$$inline_3080$$.$newSlice$);
        null != $newCellInfo$$inline_3081$$ && $JSCompiler_StaticMethods_finishHandlingHeaderKeyboardNavigation$$(this, $newCellInfo$$inline_3081$$, $context$$inline_3080$$.$pane$, $context$$inline_3080$$.extend);
      }
      $JSCompiler_StaticMethods__syncAckWithAC$$(this);
      $JSCompiler_StaticMethods_highlightFocusCell$$(this);
      this.$_isPaging$ && $JSCompiler_StaticMethods_updatePagingControls$$(this);
    } else {
      if ("TD" == $domNode$$11$$.nodeName && AdfAgent.AGENT.getPlatform() == AdfAgent.IE_PLATFORM) {
        var $parent$$10$$ = $domNode$$11$$.parentNode;
        null != $parent$$10$$ && $JSCompiler_StaticMethods_updateTextAreaCellHeights$$($parent$$10$$);
      }
    }
    null != this.$_activeCell$ && null != $domNode$$11$$ && $domNode$$11$$.id == this.$_activeCell$.id && (this.$_activeCell$ = $domNode$$11$$);
  } catch ($e$$31$$) {
    AdfLogger.LOGGER.severe($e$$31$$.message);
  } finally {
    this.$_codeExecutionCounter$--;
  }
  this.$_ptUtils$.$stopTimer$(1, "end", "DomReplaceNotify");
  if (!$isClickToEditDoneRequest$$) {
    return $domNode$$11$$;
  }
};
AdfDhtmlPivotTablePeer.prototype.DomReplaceNotify = AdfDhtmlPivotTablePeer.prototype.DomReplaceNotify;
function $JSCompiler_StaticMethods__handleEditingAndFocusAfterFetch$$($JSCompiler_StaticMethods__handleEditingAndFocusAfterFetch$self$$) {
  if (!$JSCompiler_StaticMethods_fetchNearbyBlocks$$($JSCompiler_StaticMethods__handleEditingAndFocusAfterFetch$self$$.$_ptUtils$, !0)) {
    if ($JSCompiler_StaticMethods__handleEditingAndFocusAfterFetch$self$$.$_isEditingCellWithFocus$) {
      null != $JSCompiler_StaticMethods__handleEditingAndFocusAfterFetch$self$$.$_focusCellIndex$ && ($JSCompiler_StaticMethods_scrollToDataCell$$($JSCompiler_StaticMethods__handleEditingAndFocusAfterFetch$self$$, $JSCompiler_StaticMethods__handleEditingAndFocusAfterFetch$self$$.$_focusCellIndex$), $JSCompiler_StaticMethods__isReadOnly$$($JSCompiler_StaticMethods__handleEditingAndFocusAfterFetch$self$$) ? $JSCompiler_StaticMethods_selectAndFocusDataCell$$($JSCompiler_StaticMethods__handleEditingAndFocusAfterFetch$self$$, 
      $JSCompiler_StaticMethods__handleEditingAndFocusAfterFetch$self$$.$_focusCellIndex$) : $JSCompiler_StaticMethods_editCellWithFocus$$($JSCompiler_StaticMethods__handleEditingAndFocusAfterFetch$self$$)), $JSCompiler_StaticMethods__handleEditingAndFocusAfterFetch$self$$.$_isEditingCellWithFocus$ = !1;
    } else {
      if ($JSCompiler_StaticMethods__handleEditingAndFocusAfterFetch$self$$.$_ptUtils$.$_horizScrollOutOfBlock$ || $JSCompiler_StaticMethods__handleEditingAndFocusAfterFetch$self$$.$_ptUtils$.$_vertScrollOutOfBlock$) {
        var $_focusCellIndex$$ = $JSCompiler_StaticMethods__handleEditingAndFocusAfterFetch$self$$.$_selectionFrontier$;
        if (null != $_focusCellIndex$$) {
          if ($JSCompiler_StaticMethods_isDataCellInBuffer$$($JSCompiler_StaticMethods__handleEditingAndFocusAfterFetch$self$$, $_focusCellIndex$$)) {
            $JSCompiler_StaticMethods_scrollToDataCell$$($JSCompiler_StaticMethods__handleEditingAndFocusAfterFetch$self$$, $_focusCellIndex$$);
          } else {
            if ($JSCompiler_StaticMethods__handleEditingAndFocusAfterFetch$self$$.$_ptUtils$.$_horizScrollOutOfBlock$) {
              var $pane$$4_startCol$$2_startRow$$2$$ = $_focusCellIndex$$.row < $JSCompiler_StaticMethods__handleEditingAndFocusAfterFetch$self$$.$_ptUtils$.$_splitSlice$[1] ? 0 : 1, $pane$$4_startCol$$2_startRow$$2$$ = $JSCompiler_StaticMethods_getBufferStartSlice$$($JSCompiler_StaticMethods__handleEditingAndFocusAfterFetch$self$$, AdfPivotTableUtils.$ROW_EDGE$, $pane$$4_startCol$$2_startRow$$2$$);
              $JSCompiler_StaticMethods__handleEditingAndFocusAfterFetch$self$$.$longJumpToCell$($pane$$4_startCol$$2_startRow$$2$$, $_focusCellIndex$$.column);
            } else {
              $JSCompiler_StaticMethods__handleEditingAndFocusAfterFetch$self$$.$_ptUtils$.$_vertScrollOutOfBlock$ && ($pane$$4_startCol$$2_startRow$$2$$ = $_focusCellIndex$$.column < $JSCompiler_StaticMethods__handleEditingAndFocusAfterFetch$self$$.$_ptUtils$.$_splitSlice$[0] ? 0 : 1, $pane$$4_startCol$$2_startRow$$2$$ = $JSCompiler_StaticMethods_getBufferStartSlice$$($JSCompiler_StaticMethods__handleEditingAndFocusAfterFetch$self$$, AdfPivotTableUtils.$COLUMN_EDGE$, $pane$$4_startCol$$2_startRow$$2$$), 
              $JSCompiler_StaticMethods__handleEditingAndFocusAfterFetch$self$$.$longJumpToCell$($_focusCellIndex$$.row, $pane$$4_startCol$$2_startRow$$2$$));
            }
          }
        }
        $JSCompiler_StaticMethods__handleEditingAndFocusAfterFetch$self$$.$_ptUtils$.$_horizScrollOutOfBlock$ = !1;
        $JSCompiler_StaticMethods__handleEditingAndFocusAfterFetch$self$$.$_ptUtils$.$_vertScrollOutOfBlock$ = !1;
      }
    }
  }
}
function $JSCompiler_StaticMethods__syncAckWithAC$$($JSCompiler_StaticMethods__syncAckWithAC$self$$) {
  var $updatedActiveCellKey$$ = $JSCompiler_StaticMethods__getActiveCellKey$$($JSCompiler_StaticMethods__syncAckWithAC$self$$);
  $JSCompiler_StaticMethods__syncAckWithAC$self$$.$_activeCell$ = null == $updatedActiveCellKey$$ ? null : $JSCompiler_StaticMethods__getDataCellFromKey$$($JSCompiler_StaticMethods__syncAckWithAC$self$$, $updatedActiveCellKey$$);
}
function $JSCompiler_StaticMethods__clientValidationErrorRecovery$$($JSCompiler_StaticMethods__clientValidationErrorRecovery$self$$, $activeCellKey$$5$$) {
  $JSCompiler_StaticMethods__recover$$($JSCompiler_StaticMethods__clientValidationErrorRecovery$self$$, $activeCellKey$$5$$);
  $JSCompiler_StaticMethods__realignValidationErrorRowHeight$$($JSCompiler_StaticMethods__clientValidationErrorRecovery$self$$);
  $JSCompiler_StaticMethods__clientValidationErrorRecovery$self$$._hideStatus();
}
function $JSCompiler_StaticMethods__recover$$($JSCompiler_StaticMethods__recover$self$$, $activeCellKey$$6$$) {
  if (null != $activeCellKey$$6$$) {
    var $dataCellIndex$$3$$ = $JSCompiler_StaticMethods__getDataCellIndexFromKey$$($activeCellKey$$6$$);
    if (null != $dataCellIndex$$3$$) {
      $JSCompiler_StaticMethods_selectAndFocusDataCell$$($JSCompiler_StaticMethods__recover$self$$, $dataCellIndex$$3$$);
      for (var $edge$$inline_3088$$ = 0;2 > $edge$$inline_3088$$;$edge$$inline_3088$$++) {
        for (var $pane$$inline_3089$$ = $JSCompiler_StaticMethods__recover$self$$.$_ptUtils$.$_startPane$[$edge$$inline_3088$$];2 > $pane$$inline_3089$$;++$pane$$inline_3089$$) {
          var $oldScrollPos$$inline_3090$$ = $JSCompiler_StaticMethods_getOldScrollPos$$($JSCompiler_StaticMethods__recover$self$$.$_ptUtils$, $edge$$inline_3088$$, $pane$$inline_3089$$);
          $JSCompiler_StaticMethods__recover$self$$.$__logEnabled$ && $JSCompiler_StaticMethods_putInTestLog$$($JSCompiler_StaticMethods__recover$self$$, "_readjustScrollPos calling setScrollPos(" + $edge$$inline_3088$$ + ", " + $pane$$inline_3089$$ + ", " + $oldScrollPos$$inline_3090$$ + ")");
          $JSCompiler_StaticMethods__recover$self$$.$_ptUtils$.setScrollPos($edge$$inline_3088$$, $pane$$inline_3089$$, $oldScrollPos$$inline_3090$$);
        }
      }
      $JSCompiler_StaticMethods_scrollToDataCell$$($JSCompiler_StaticMethods__recover$self$$, $dataCellIndex$$3$$);
      $JSCompiler_StaticMethods__recover$self$$.$domEventForContextMenuAfterEdit$ = null;
    }
  }
}
function $JSCompiler_StaticMethods__getDataCellIndexFromKey$$($cellDetail_cellKey$$5$$) {
  $cellDetail_cellKey$$5$$ = $cellDetail_cellKey$$5$$.split(":");
  return 2 == $cellDetail_cellKey$$5$$.length ? $JSCompiler_StaticMethods_newDataCellIndex$$(1 * $cellDetail_cellKey$$5$$[0], 1 * $cellDetail_cellKey$$5$$[1]) : null;
}
function $JSCompiler_StaticMethods__getDataCellFromKey$$($JSCompiler_StaticMethods__getDataCellFromKey$self$$, $cellKey$$6$$) {
  var $cellIndex$$3_nodes$$9_range$$10$$ = $JSCompiler_StaticMethods__getDataCellIndexFromKey$$($cellKey$$6$$);
  return null != $cellIndex$$3_nodes$$9_range$$10$$ && ($cellIndex$$3_nodes$$9_range$$10$$ = $JSCompiler_StaticMethods_newDataCellRange$$($cellIndex$$3_nodes$$9_range$$10$$), $cellIndex$$3_nodes$$9_range$$10$$ = $JSCompiler_StaticMethods_getNodesInDataCellRange$$($JSCompiler_StaticMethods__getDataCellFromKey$self$$, $cellIndex$$3_nodes$$9_range$$10$$), 0 < $cellIndex$$3_nodes$$9_range$$10$$.length && null != $cellIndex$$3_nodes$$9_range$$10$$[0]) ? $cellIndex$$3_nodes$$9_range$$10$$[0] : null;
}
function $JSCompiler_StaticMethods__getDataCellFromCellIndex$$($JSCompiler_StaticMethods__getDataCellFromCellIndex$self_nodes$$10$$, $cellIndex$$4_range$$11$$, $newBlocks$$) {
  return null != $cellIndex$$4_range$$11$$ && ($cellIndex$$4_range$$11$$ = $JSCompiler_StaticMethods_newDataCellRange$$($cellIndex$$4_range$$11$$), $JSCompiler_StaticMethods__getDataCellFromCellIndex$self_nodes$$10$$ = $JSCompiler_StaticMethods_getNodesInDataCellRange$$($JSCompiler_StaticMethods__getDataCellFromCellIndex$self_nodes$$10$$, $cellIndex$$4_range$$11$$, void 0, $newBlocks$$), 0 < $JSCompiler_StaticMethods__getDataCellFromCellIndex$self_nodes$$10$$.length) ? $JSCompiler_StaticMethods__getDataCellFromCellIndex$self_nodes$$10$$[0] : 
  null;
}
AdfDhtmlPivotTablePeer.$isPaging$ = function $AdfDhtmlPivotTablePeer$$isPaging$$($domElement$$174$$) {
  return "true" == AdfAgent.AGENT.getAttribute($domElement$$174$$, "_paging");
};
function $JSCompiler_StaticMethods__handleClickOnPagingControl$$($JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$, $domEvent$$53_domEvent$$inline_3096_domEvent$$inline_3107_domEvent$$inline_3116_domEvent$$inline_3121$$, $databody$$inline_3099_databody$$inline_3110_scrollAmount$$inline_3104_target$$137$$) {
  for (var $edge$$17_edge$$inline_3097_edge$$inline_3108_edge$$inline_3117_edge$$inline_3122$$ = 0;2 > $edge$$17_edge$$inline_3097_edge$$inline_3108_edge$$inline_3117_edge$$inline_3122$$;$edge$$17_edge$$inline_3097_edge$$inline_3108_edge$$inline_3117_edge$$inline_3122$$++) {
    for (var $pane$$5_pane$$inline_3098_pane$$inline_3109_pane$$inline_3118_pane$$inline_3123$$ = $JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$_ptUtils$.$_startPane$[$edge$$17_edge$$inline_3097_edge$$inline_3108_edge$$inline_3117_edge$$inline_3122$$];2 > 
    $pane$$5_pane$$inline_3098_pane$$inline_3109_pane$$inline_3118_pane$$inline_3123$$;$pane$$5_pane$$inline_3098_pane$$inline_3109_pane$$inline_3118_pane$$inline_3123$$++) {
      if ($JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$_isNavBarLink$($databody$$inline_3099_databody$$inline_3110_scrollAmount$$inline_3104_target$$137$$, AdfDhtmlPivotTablePeer.$_NAVBAR_PREV$[$edge$$17_edge$$inline_3097_edge$$inline_3108_edge$$inline_3117_edge$$inline_3122$$][$pane$$5_pane$$inline_3098_pane$$inline_3109_pane$$inline_3118_pane$$inline_3123$$])) {
        $AdfDhtmlCommonUtils$$.$addCSSClassName$($databody$$inline_3099_databody$$inline_3110_scrollAmount$$inline_3104_target$$137$$, "p_AFActivated");
        $JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$_pagingControlInput$ = AdfPivotTableUtils.$PAGE_PREV$[$edge$$17_edge$$inline_3097_edge$$inline_3108_edge$$inline_3117_edge$$inline_3122$$][$pane$$5_pane$$inline_3098_pane$$inline_3109_pane$$inline_3118_pane$$inline_3123$$];
        $JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$_adjustScroll$ = 0;
        $databody$$inline_3099_databody$$inline_3110_scrollAmount$$inline_3104_target$$137$$ = $JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$_ptUtils$.$_databodiesByEdgeAndPane$[$edge$$17_edge$$inline_3097_edge$$inline_3108_edge$$inline_3117_edge$$inline_3122$$][$pane$$5_pane$$inline_3098_pane$$inline_3109_pane$$inline_3118_pane$$inline_3123$$];
        var $firstEdgeProperties$$inline_3100_lastEdgeProperties$$inline_3111_scrollPos$$inline_3103_scrollPos$$inline_3113$$ = $JSCompiler_StaticMethods_firstSliceInShiftedViewport$$($JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$_ptUtils$, 
        $edge$$17_edge$$inline_3097_edge$$inline_3108_edge$$inline_3117_edge$$inline_3122$$, $pane$$5_pane$$inline_3098_pane$$inline_3109_pane$$inline_3118_pane$$inline_3123$$, 0), $lastEdgeProperties$$inline_3101$$ = $JSCompiler_StaticMethods_lastSliceInShiftedViewport$$($JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$_ptUtils$, 
        $edge$$17_edge$$inline_3097_edge$$inline_3108_edge$$inline_3117_edge$$inline_3122$$, $pane$$5_pane$$inline_3098_pane$$inline_3109_pane$$inline_3118_pane$$inline_3123$$), $firstEdgePixels$$inline_3102_lastEdgePixels$$inline_3112$$ = 1;
        0 < $firstEdgeProperties$$inline_3100_lastEdgeProperties$$inline_3111_scrollPos$$inline_3103_scrollPos$$inline_3113$$.$pixel$ && $firstEdgeProperties$$inline_3100_lastEdgeProperties$$inline_3111_scrollPos$$inline_3103_scrollPos$$inline_3113$$.slice != $lastEdgeProperties$$inline_3101$$.slice ? $firstEdgePixels$$inline_3102_lastEdgePixels$$inline_3112$$ = $firstEdgeProperties$$inline_3100_lastEdgeProperties$$inline_3111_scrollPos$$inline_3103_scrollPos$$inline_3113$$.$pixelsInsideViewport$ : 
        $JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$_adjustScroll$ = 1;
        $firstEdgeProperties$$inline_3100_lastEdgeProperties$$inline_3111_scrollPos$$inline_3103_scrollPos$$inline_3113$$ = $JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$_ptUtils$.$getScrollPos$($edge$$17_edge$$inline_3097_edge$$inline_3108_edge$$inline_3117_edge$$inline_3122$$, 
        $pane$$5_pane$$inline_3098_pane$$inline_3109_pane$$inline_3118_pane$$inline_3123$$);
        $databody$$inline_3099_databody$$inline_3110_scrollAmount$$inline_3104_target$$137$$ = ($edge$$17_edge$$inline_3097_edge$$inline_3108_edge$$inline_3117_edge$$inline_3122$$ == AdfPivotTableUtils.$ROW_EDGE$ ? $databody$$inline_3099_databody$$inline_3110_scrollAmount$$inline_3104_target$$137$$.clientHeight : $databody$$inline_3099_databody$$inline_3110_scrollAmount$$inline_3104_target$$137$$.clientWidth) - $firstEdgePixels$$inline_3102_lastEdgePixels$$inline_3112$$;
        $databody$$inline_3099_databody$$inline_3110_scrollAmount$$inline_3104_target$$137$$ > $firstEdgeProperties$$inline_3100_lastEdgeProperties$$inline_3111_scrollPos$$inline_3103_scrollPos$$inline_3113$$ && ($JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$_adjustScroll$ = 
        $JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$_adjustScroll$ + $databody$$inline_3099_databody$$inline_3110_scrollAmount$$inline_3104_target$$137$$ - $firstEdgeProperties$$inline_3100_lastEdgeProperties$$inline_3111_scrollPos$$inline_3103_scrollPos$$inline_3113$$);
        $JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$_ptUtils$.setScrollPos($edge$$17_edge$$inline_3097_edge$$inline_3108_edge$$inline_3117_edge$$inline_3122$$, $pane$$5_pane$$inline_3098_pane$$inline_3109_pane$$inline_3118_pane$$inline_3123$$, 
        $firstEdgeProperties$$inline_3100_lastEdgeProperties$$inline_3111_scrollPos$$inline_3103_scrollPos$$inline_3113$$ - $databody$$inline_3099_databody$$inline_3110_scrollAmount$$inline_3104_target$$137$$, !0);
        $JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$HandleDomScroll$($JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.getComponent(), 
        null);
        AdfAgent.AGENT.eatEvent($domEvent$$53_domEvent$$inline_3096_domEvent$$inline_3107_domEvent$$inline_3116_domEvent$$inline_3121$$);
        return !0;
      }
      if ($JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$_isNavBarLink$($databody$$inline_3099_databody$$inline_3110_scrollAmount$$inline_3104_target$$137$$, AdfDhtmlPivotTablePeer.$_NAVBAR_NEXT$[$edge$$17_edge$$inline_3097_edge$$inline_3108_edge$$inline_3117_edge$$inline_3122$$][$pane$$5_pane$$inline_3098_pane$$inline_3109_pane$$inline_3118_pane$$inline_3123$$])) {
        return $AdfDhtmlCommonUtils$$.$addCSSClassName$($databody$$inline_3099_databody$$inline_3110_scrollAmount$$inline_3104_target$$137$$, "p_AFActivated"), $JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$_pagingControlInput$ = 
        AdfPivotTableUtils.$PAGE_NEXT$[$edge$$17_edge$$inline_3097_edge$$inline_3108_edge$$inline_3117_edge$$inline_3122$$][$pane$$5_pane$$inline_3098_pane$$inline_3109_pane$$inline_3118_pane$$inline_3123$$], $databody$$inline_3099_databody$$inline_3110_scrollAmount$$inline_3104_target$$137$$ = $JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$_ptUtils$.$_databodiesByEdgeAndPane$[$edge$$17_edge$$inline_3097_edge$$inline_3108_edge$$inline_3117_edge$$inline_3122$$][$pane$$5_pane$$inline_3098_pane$$inline_3109_pane$$inline_3118_pane$$inline_3123$$], 
        $firstEdgeProperties$$inline_3100_lastEdgeProperties$$inline_3111_scrollPos$$inline_3103_scrollPos$$inline_3113$$ = $JSCompiler_StaticMethods_lastSliceInShiftedViewport$$($JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$_ptUtils$, 
        $edge$$17_edge$$inline_3097_edge$$inline_3108_edge$$inline_3117_edge$$inline_3122$$, $pane$$5_pane$$inline_3098_pane$$inline_3109_pane$$inline_3118_pane$$inline_3123$$), $firstEdgePixels$$inline_3102_lastEdgePixels$$inline_3112$$ = $firstEdgeProperties$$inline_3100_lastEdgeProperties$$inline_3111_scrollPos$$inline_3103_scrollPos$$inline_3113$$.$pixelsInsideViewport$, 0 >= $firstEdgeProperties$$inline_3100_lastEdgeProperties$$inline_3111_scrollPos$$inline_3103_scrollPos$$inline_3113$$.$pixelsOutsideViewport$ ? 
        $firstEdgePixels$$inline_3102_lastEdgePixels$$inline_3112$$ = $firstEdgeProperties$$inline_3100_lastEdgeProperties$$inline_3111_scrollPos$$inline_3103_scrollPos$$inline_3113$$.$pixelsOutsideViewport$ : $firstEdgeProperties$$inline_3100_lastEdgeProperties$$inline_3111_scrollPos$$inline_3103_scrollPos$$inline_3113$$.slice == $JSCompiler_StaticMethods_firstSliceInShiftedViewport$$($JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$_ptUtils$, 
        $edge$$17_edge$$inline_3097_edge$$inline_3108_edge$$inline_3117_edge$$inline_3122$$, $pane$$5_pane$$inline_3098_pane$$inline_3109_pane$$inline_3118_pane$$inline_3123$$, 0).slice && ($firstEdgePixels$$inline_3102_lastEdgePixels$$inline_3112$$ = 0), $firstEdgeProperties$$inline_3100_lastEdgeProperties$$inline_3111_scrollPos$$inline_3103_scrollPos$$inline_3113$$ = $JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$_ptUtils$.$getScrollPos$($edge$$17_edge$$inline_3097_edge$$inline_3108_edge$$inline_3117_edge$$inline_3122$$, 
        $pane$$5_pane$$inline_3098_pane$$inline_3109_pane$$inline_3118_pane$$inline_3123$$), $JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$_ptUtils$.setScrollPos($edge$$17_edge$$inline_3097_edge$$inline_3108_edge$$inline_3117_edge$$inline_3122$$, 
        $pane$$5_pane$$inline_3098_pane$$inline_3109_pane$$inline_3118_pane$$inline_3123$$, $firstEdgeProperties$$inline_3100_lastEdgeProperties$$inline_3111_scrollPos$$inline_3103_scrollPos$$inline_3113$$ + ($edge$$17_edge$$inline_3097_edge$$inline_3108_edge$$inline_3117_edge$$inline_3122$$ == AdfPivotTableUtils.$ROW_EDGE$ ? $databody$$inline_3099_databody$$inline_3110_scrollAmount$$inline_3104_target$$137$$.clientHeight : $databody$$inline_3099_databody$$inline_3110_scrollAmount$$inline_3104_target$$137$$.clientWidth) - 
        $firstEdgePixels$$inline_3102_lastEdgePixels$$inline_3112$$, !0), $JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$HandleDomScroll$($JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.getComponent(), 
        null), AdfAgent.AGENT.eatEvent($domEvent$$53_domEvent$$inline_3096_domEvent$$inline_3107_domEvent$$inline_3116_domEvent$$inline_3121$$), !0;
      }
      if ($JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$_isNavBarLink$($databody$$inline_3099_databody$$inline_3110_scrollAmount$$inline_3104_target$$137$$, AdfDhtmlPivotTablePeer.$_NAVBAR_FIRST$[$edge$$17_edge$$inline_3097_edge$$inline_3108_edge$$inline_3117_edge$$inline_3122$$][$pane$$5_pane$$inline_3098_pane$$inline_3109_pane$$inline_3118_pane$$inline_3123$$])) {
        return $AdfDhtmlCommonUtils$$.$addCSSClassName$($databody$$inline_3099_databody$$inline_3110_scrollAmount$$inline_3104_target$$137$$, "p_AFActivated"), $JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$_pagingControlInput$ = 
        AdfPivotTableUtils.$PAGE_FIRST$[$edge$$17_edge$$inline_3097_edge$$inline_3108_edge$$inline_3117_edge$$inline_3122$$][$pane$$5_pane$$inline_3098_pane$$inline_3109_pane$$inline_3118_pane$$inline_3123$$], $JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$_ptUtils$.setScrollPos($edge$$17_edge$$inline_3097_edge$$inline_3108_edge$$inline_3117_edge$$inline_3122$$, 
        $pane$$5_pane$$inline_3098_pane$$inline_3109_pane$$inline_3118_pane$$inline_3123$$, 0, !0), $JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$HandleDomScroll$($JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.getComponent(), 
        null), AdfAgent.AGENT.eatEvent($domEvent$$53_domEvent$$inline_3096_domEvent$$inline_3107_domEvent$$inline_3116_domEvent$$inline_3121$$), !0;
      }
      if ($JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$_isNavBarLink$($databody$$inline_3099_databody$$inline_3110_scrollAmount$$inline_3104_target$$137$$, AdfDhtmlPivotTablePeer.$_NAVBAR_LAST$[$edge$$17_edge$$inline_3097_edge$$inline_3108_edge$$inline_3117_edge$$inline_3122$$][$pane$$5_pane$$inline_3098_pane$$inline_3109_pane$$inline_3118_pane$$inline_3123$$])) {
        return $AdfDhtmlCommonUtils$$.$addCSSClassName$($databody$$inline_3099_databody$$inline_3110_scrollAmount$$inline_3104_target$$137$$, "p_AFActivated"), $JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$_pagingControlInput$ = 
        AdfPivotTableUtils.$PAGE_LAST$[$edge$$17_edge$$inline_3097_edge$$inline_3108_edge$$inline_3117_edge$$inline_3122$$][$pane$$5_pane$$inline_3098_pane$$inline_3109_pane$$inline_3118_pane$$inline_3123$$], $JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$_ptUtils$.setScrollPos($edge$$17_edge$$inline_3097_edge$$inline_3108_edge$$inline_3117_edge$$inline_3122$$, 
        $pane$$5_pane$$inline_3098_pane$$inline_3109_pane$$inline_3118_pane$$inline_3123$$, $JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$_ptUtils$.$_maxScrollPos$[$edge$$17_edge$$inline_3097_edge$$inline_3108_edge$$inline_3117_edge$$inline_3122$$][$pane$$5_pane$$inline_3098_pane$$inline_3109_pane$$inline_3118_pane$$inline_3123$$], 
        !0), $JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.$HandleDomScroll$($JSCompiler_StaticMethods__handleClickOnPagingControl$self_JSCompiler_StaticMethods__handlePageFirstClick$self$$inline_3115_JSCompiler_StaticMethods__handlePageLastClick$self$$inline_3120_JSCompiler_StaticMethods__handlePageNextClick$self$$inline_3106_JSCompiler_StaticMethods__handlePagePrevClick$self$$inline_3095$$.getComponent(), 
        null), AdfAgent.AGENT.eatEvent($domEvent$$53_domEvent$$inline_3096_domEvent$$inline_3107_domEvent$$inline_3116_domEvent$$inline_3121$$), !0;
      }
    }
  }
  return !1;
}
AdfDhtmlPivotTablePeer.prototype.$_getParentMatchingId$ = function $AdfDhtmlPivotTablePeer$$$_getParentMatchingId$$($domElem$$6$$, $id$$195$$) {
  for (var $target$$138$$ = $domElem$$6$$, $elem$$65$$ = null, $rootElem$$1$$ = this.getDomElement();!$elem$$65$$ && $target$$138$$ && $target$$138$$ != $rootElem$$1$$.parent && 1 == $target$$138$$.nodeType;) {
    if ($target$$138$$.id && 0 <= $target$$138$$.id.indexOf($id$$195$$)) {
      $elem$$65$$ = $target$$138$$;
      break;
    } else {
      $target$$138$$ = $target$$138$$.parentNode;
    }
  }
  return $elem$$65$$;
};
AdfDhtmlPivotTablePeer.prototype.$_isNavBarLink$ = function $AdfDhtmlPivotTablePeer$$$_isNavBarLink$$($target$$139$$, $suffixId$$2$$) {
  var $linkId$$2$$ = AdfRichUIPeer.CreateSubId(this.getComponent().getClientId(), $suffixId$$2$$);
  return null != this.$_getParentMatchingId$($target$$139$$, $linkId$$2$$) ? !$AdfDhtmlCommonUtils$$.$containsCSSClassName$($target$$139$$, "p_AFDisabled") : !1;
};
function $JSCompiler_StaticMethods_getPageStartSlice$$($JSCompiler_StaticMethods_getPageStartSlice$self$$, $edge$$22$$) {
  var $firstProperties$$ = $JSCompiler_StaticMethods_firstSliceInShiftedViewport$$($JSCompiler_StaticMethods_getPageStartSlice$self$$.$_ptUtils$, $edge$$22$$, 1, 0);
  return 0 < $firstProperties$$.$pixel$ ? $firstProperties$$.slice + 1 : $firstProperties$$.slice;
}
function $JSCompiler_StaticMethods_updatePagingControls$$($JSCompiler_StaticMethods_updatePagingControls$self$$) {
  for (var $edge$$24$$ = 0;2 > $edge$$24$$;$edge$$24$$++) {
    for (var $pane$$10$$ = $JSCompiler_StaticMethods_updatePagingControls$self$$.$_ptUtils$.$_startPane$[$edge$$24$$];2 > $pane$$10$$;$pane$$10$$++) {
      var $JSCompiler_StaticMethods_adjustPagingScrollPos$self$$inline_3125_JSCompiler_temp$$79_firstProperties$$1$$;
      if ($JSCompiler_StaticMethods_adjustPagingScrollPos$self$$inline_3125_JSCompiler_temp$$79_firstProperties$$1$$ = $JSCompiler_StaticMethods_updatePagingControls$self$$.$_pagingControlInput$ == AdfPivotTableUtils.$PAGE_PREV$[$edge$$24$$][$pane$$10$$]) {
        a: {
          $JSCompiler_StaticMethods_adjustPagingScrollPos$self$$inline_3125_JSCompiler_temp$$79_firstProperties$$1$$ = $JSCompiler_StaticMethods_updatePagingControls$self$$;
          var $edge$$inline_3126_startValue$$ = $edge$$24$$, $lastProperties_pane$$inline_3127$$ = $pane$$10$$;
          if (null != $JSCompiler_StaticMethods_adjustPagingScrollPos$self$$inline_3125_JSCompiler_temp$$79_firstProperties$$1$$.$_adjustScroll$ && 1 < $JSCompiler_StaticMethods_adjustPagingScrollPos$self$$inline_3125_JSCompiler_temp$$79_firstProperties$$1$$.$_adjustScroll$) {
            var $endValue_scrollPos$$inline_3129$$ = $JSCompiler_StaticMethods_adjustPagingScrollPos$self$$inline_3125_JSCompiler_temp$$79_firstProperties$$1$$.$_ptUtils$.$getScrollPos$($edge$$inline_3126_startValue$$, $lastProperties_pane$$inline_3127$$);
            if (1 < $endValue_scrollPos$$inline_3129$$) {
              $JSCompiler_StaticMethods_adjustPagingScrollPos$self$$inline_3125_JSCompiler_temp$$79_firstProperties$$1$$.$_ptUtils$.setScrollPos($edge$$inline_3126_startValue$$, $lastProperties_pane$$inline_3127$$, $endValue_scrollPos$$inline_3129$$ - $JSCompiler_StaticMethods_adjustPagingScrollPos$self$$inline_3125_JSCompiler_temp$$79_firstProperties$$1$$.$_adjustScroll$, !0);
              $JSCompiler_StaticMethods_adjustPagingScrollPos$self$$inline_3125_JSCompiler_temp$$79_firstProperties$$1$$.$_adjustScroll$ = 0;
              $JSCompiler_StaticMethods_adjustPagingScrollPos$self$$inline_3125_JSCompiler_temp$$79_firstProperties$$1$$.$HandleDomScroll$($JSCompiler_StaticMethods_adjustPagingScrollPos$self$$inline_3125_JSCompiler_temp$$79_firstProperties$$1$$.getComponent(), null);
              $JSCompiler_StaticMethods_adjustPagingScrollPos$self$$inline_3125_JSCompiler_temp$$79_firstProperties$$1$$ = !0;
              break a;
            }
            $JSCompiler_StaticMethods_adjustPagingScrollPos$self$$inline_3125_JSCompiler_temp$$79_firstProperties$$1$$.$_adjustScroll$ = 0;
          }
          $JSCompiler_StaticMethods_adjustPagingScrollPos$self$$inline_3125_JSCompiler_temp$$79_firstProperties$$1$$ = !1;
        }
      }
      if ($JSCompiler_StaticMethods_adjustPagingScrollPos$self$$inline_3125_JSCompiler_temp$$79_firstProperties$$1$$) {
        return;
      }
    }
  }
  $JSCompiler_StaticMethods_adjustPagingScrollPos$self$$inline_3125_JSCompiler_temp$$79_firstProperties$$1$$ = [[], []];
  var $edge$$inline_3126_startValue$$ = [[], []], $lastProperties_pane$$inline_3127$$ = [[], []], $endValue_scrollPos$$inline_3129$$ = [[], []], $edgeExtent$$ = [[], []];
  $edgeExtent$$[0][0] = $JSCompiler_StaticMethods_updatePagingControls$self$$.$_ptUtils$.$_splitSlice$[0];
  $edgeExtent$$[1][0] = $JSCompiler_StaticMethods_updatePagingControls$self$$.$_ptUtils$.$_splitSlice$[1];
  $edgeExtent$$[0][1] = $JSCompiler_StaticMethods_updatePagingControls$self$$.$_ptUtils$.$_edgeExtent$[0];
  $edgeExtent$$[1][1] = $JSCompiler_StaticMethods_updatePagingControls$self$$.$_ptUtils$.$_edgeExtent$[1];
  for ($edge$$24$$ = 0;2 > $edge$$24$$;$edge$$24$$++) {
    for ($pane$$10$$ = $JSCompiler_StaticMethods_updatePagingControls$self$$.$_ptUtils$.$_startPane$[$edge$$24$$];2 > $pane$$10$$;$pane$$10$$++) {
      if ($JSCompiler_StaticMethods_adjustPagingScrollPos$self$$inline_3125_JSCompiler_temp$$79_firstProperties$$1$$[$edge$$24$$][$pane$$10$$] = $JSCompiler_StaticMethods_firstSliceInShiftedViewport$$($JSCompiler_StaticMethods_updatePagingControls$self$$.$_ptUtils$, $edge$$24$$, $pane$$10$$, 0), $edge$$inline_3126_startValue$$[$edge$$24$$][$pane$$10$$] = $JSCompiler_StaticMethods_adjustPagingScrollPos$self$$inline_3125_JSCompiler_temp$$79_firstProperties$$1$$[$edge$$24$$][$pane$$10$$].slice, $lastProperties_pane$$inline_3127$$[$edge$$24$$][$pane$$10$$] = 
      $JSCompiler_StaticMethods_lastSliceInShiftedViewport$$($JSCompiler_StaticMethods_updatePagingControls$self$$.$_ptUtils$, $edge$$24$$, $pane$$10$$), $endValue_scrollPos$$inline_3129$$[$edge$$24$$][$pane$$10$$] = $lastProperties_pane$$inline_3127$$[$edge$$24$$][$pane$$10$$].slice, -1 != $edge$$inline_3126_startValue$$[$edge$$24$$][$pane$$10$$] && -1 != $endValue_scrollPos$$inline_3129$$[$edge$$24$$][$pane$$10$$]) {
        var $JSCompiler_StaticMethods_alignPagingScrollPos$self$$inline_3131_JSCompiler_inline_result$$81_clearPagingControlInput$$;
        $JSCompiler_StaticMethods_alignPagingScrollPos$self$$inline_3131_JSCompiler_inline_result$$81_clearPagingControlInput$$ = $JSCompiler_StaticMethods_updatePagingControls$self$$;
        var $firstProperties$$inline_3132_splitSlice$$ = $JSCompiler_StaticMethods_adjustPagingScrollPos$self$$inline_3125_JSCompiler_temp$$79_firstProperties$$1$$[$edge$$24$$][$pane$$10$$], $JSCompiler_inline_result$$80_lastProperties$$inline_3133_pagingControl$$inline_3151$$ = $lastProperties_pane$$inline_3127$$[$edge$$24$$][$pane$$10$$], $edgeExtent$$inline_3146_edgeExtent$$inline_5115_endValue$$inline_3134$$ = $endValue_scrollPos$$inline_3129$$[$edge$$24$$][$pane$$10$$], $edge$$inline_3135_edgeStart$$inline_3145_edgeStart$$inline_5114$$ = 
        $edge$$24$$, $endValue$$inline_3150_endValue$$inline_5113_pane$$inline_3136$$ = $pane$$10$$, $JSCompiler_StaticMethods_updatePagingInput$self$$inline_3142_edgeExtent$$inline_3137_startValue$$inline_5112$$ = $edgeExtent$$[$edge$$24$$][$pane$$10$$], $databody$$inline_3138_edge$$inline_3143_firstArrow$$inline_5116$$ = $JSCompiler_StaticMethods_updatePagingControls$self$$.$_ptUtils$.$_databodiesByEdgeAndPane$[$edge$$24$$][$pane$$10$$];
        if ($JSCompiler_StaticMethods_alignPagingScrollPos$self$$inline_3131_JSCompiler_inline_result$$81_clearPagingControlInput$$.$_pagingControlInput$ == AdfPivotTableUtils.$PAGE_FIRST$[$edge$$inline_3135_edgeStart$$inline_3145_edgeStart$$inline_5114$$][$endValue$$inline_3150_endValue$$inline_5113_pane$$inline_3136$$] && 0 < $firstProperties$$inline_3132_splitSlice$$.$pixel$) {
          $JSCompiler_StaticMethods_alignPagingScrollPos$self$$inline_3131_JSCompiler_inline_result$$81_clearPagingControlInput$$.$_ptUtils$.setScrollPos($edge$$inline_3135_edgeStart$$inline_3145_edgeStart$$inline_5114$$, $endValue$$inline_3150_endValue$$inline_5113_pane$$inline_3136$$, 0, !0), $JSCompiler_StaticMethods_alignPagingScrollPos$self$$inline_3131_JSCompiler_inline_result$$81_clearPagingControlInput$$.$HandleDomScroll$($JSCompiler_StaticMethods_alignPagingScrollPos$self$$inline_3131_JSCompiler_inline_result$$81_clearPagingControlInput$$.getComponent(), 
          null), $JSCompiler_StaticMethods_alignPagingScrollPos$self$$inline_3131_JSCompiler_inline_result$$81_clearPagingControlInput$$ = !0;
        } else {
          if ($JSCompiler_StaticMethods_alignPagingScrollPos$self$$inline_3131_JSCompiler_inline_result$$81_clearPagingControlInput$$.$_pagingControlInput$ == AdfPivotTableUtils.$PAGE_LAST$[$edge$$inline_3135_edgeStart$$inline_3145_edgeStart$$inline_5114$$][$endValue$$inline_3150_endValue$$inline_5113_pane$$inline_3136$$] && 0 < $JSCompiler_inline_result$$80_lastProperties$$inline_3133_pagingControl$$inline_3151$$.$pixelsOutsideViewport$) {
            $JSCompiler_StaticMethods_alignPagingScrollPos$self$$inline_3131_JSCompiler_inline_result$$81_clearPagingControlInput$$.$_ptUtils$.setScrollPos($edge$$inline_3135_edgeStart$$inline_3145_edgeStart$$inline_5114$$, $endValue$$inline_3150_endValue$$inline_5113_pane$$inline_3136$$, $JSCompiler_StaticMethods_alignPagingScrollPos$self$$inline_3131_JSCompiler_inline_result$$81_clearPagingControlInput$$.$_ptUtils$.$_maxScrollPos$[$edge$$inline_3135_edgeStart$$inline_3145_edgeStart$$inline_5114$$][$endValue$$inline_3150_endValue$$inline_5113_pane$$inline_3136$$], 
            !0), $JSCompiler_StaticMethods_alignPagingScrollPos$self$$inline_3131_JSCompiler_inline_result$$81_clearPagingControlInput$$.$HandleDomScroll$($JSCompiler_StaticMethods_alignPagingScrollPos$self$$inline_3131_JSCompiler_inline_result$$81_clearPagingControlInput$$.getComponent(), null), $JSCompiler_StaticMethods_alignPagingScrollPos$self$$inline_3131_JSCompiler_inline_result$$81_clearPagingControlInput$$ = !0;
          } else {
            if (0 < $firstProperties$$inline_3132_splitSlice$$.$pixel$ && (0 != $JSCompiler_inline_result$$80_lastProperties$$inline_3133_pagingControl$$inline_3151$$.$pixelsOutsideViewport$ || $edgeExtent$$inline_3146_edgeExtent$$inline_5115_endValue$$inline_3134$$ + 1 != $JSCompiler_StaticMethods_updatePagingInput$self$$inline_3142_edgeExtent$$inline_3137_startValue$$inline_5112$$ || $firstProperties$$inline_3132_splitSlice$$.slice == $JSCompiler_inline_result$$80_lastProperties$$inline_3133_pagingControl$$inline_3151$$.slice)) {
              var $pane$$inline_3144_prevArrow$$inline_5117_scrollOffset$$inline_3139$$ = $firstProperties$$inline_3132_splitSlice$$.$pixelsInsideViewport$, $lastArrow$$inline_5118_scrollPos$$inline_3140_startValue$$inline_3148$$ = $JSCompiler_StaticMethods_alignPagingScrollPos$self$$inline_3131_JSCompiler_inline_result$$81_clearPagingControlInput$$.$_ptUtils$.$getScrollPos$($edge$$inline_3135_edgeStart$$inline_3145_edgeStart$$inline_5114$$, $endValue$$inline_3150_endValue$$inline_5113_pane$$inline_3136$$);
              $firstProperties$$inline_3132_splitSlice$$.$pixel$ == $JSCompiler_StaticMethods_alignPagingScrollPos$self$$inline_3131_JSCompiler_inline_result$$81_clearPagingControlInput$$.$_adjustScroll$ ? $JSCompiler_StaticMethods_alignPagingScrollPos$self$$inline_3131_JSCompiler_inline_result$$81_clearPagingControlInput$$.$_ptUtils$.setScrollPos($edge$$inline_3135_edgeStart$$inline_3145_edgeStart$$inline_5114$$, $endValue$$inline_3150_endValue$$inline_5113_pane$$inline_3136$$, $lastArrow$$inline_5118_scrollPos$$inline_3140_startValue$$inline_3148$$ - 
              $JSCompiler_StaticMethods_alignPagingScrollPos$self$$inline_3131_JSCompiler_inline_result$$81_clearPagingControlInput$$.$_adjustScroll$, !0) : (($JSCompiler_StaticMethods_alignPagingScrollPos$self$$inline_3131_JSCompiler_inline_result$$81_clearPagingControlInput$$.$_pagingControlInput$ == AdfPivotTableUtils.$PAGE_PREV$[$edge$$inline_3135_edgeStart$$inline_3145_edgeStart$$inline_5114$$][$endValue$$inline_3150_endValue$$inline_5113_pane$$inline_3136$$] || $firstProperties$$inline_3132_splitSlice$$.slice == 
              $JSCompiler_inline_result$$80_lastProperties$$inline_3133_pagingControl$$inline_3151$$.slice && $edgeExtent$$inline_3146_edgeExtent$$inline_5115_endValue$$inline_3134$$ + 1 == $JSCompiler_StaticMethods_updatePagingInput$self$$inline_3142_edgeExtent$$inline_3137_startValue$$inline_5112$$) && $firstProperties$$inline_3132_splitSlice$$.$pixelsInsideViewport$ >= ($edge$$inline_3135_edgeStart$$inline_3145_edgeStart$$inline_5114$$ == AdfPivotTableUtils.$ROW_EDGE$ ? $databody$$inline_3138_edge$$inline_3143_firstArrow$$inline_5116$$.clientHeight : 
              $databody$$inline_3138_edge$$inline_3143_firstArrow$$inline_5116$$.clientWidth) - $JSCompiler_StaticMethods_alignPagingScrollPos$self$$inline_3131_JSCompiler_inline_result$$81_clearPagingControlInput$$.$_adjustScroll$ && ($pane$$inline_3144_prevArrow$$inline_5117_scrollOffset$$inline_3139$$ = -1 * $firstProperties$$inline_3132_splitSlice$$.$pixel$), $JSCompiler_StaticMethods_alignPagingScrollPos$self$$inline_3131_JSCompiler_inline_result$$81_clearPagingControlInput$$.$_ptUtils$.setScrollPos($edge$$inline_3135_edgeStart$$inline_3145_edgeStart$$inline_5114$$, 
              $endValue$$inline_3150_endValue$$inline_5113_pane$$inline_3136$$, $lastArrow$$inline_5118_scrollPos$$inline_3140_startValue$$inline_3148$$ + $pane$$inline_3144_prevArrow$$inline_5117_scrollOffset$$inline_3139$$, !0));
              $JSCompiler_StaticMethods_alignPagingScrollPos$self$$inline_3131_JSCompiler_inline_result$$81_clearPagingControlInput$$.$_adjustScroll$ = 0;
              $JSCompiler_StaticMethods_alignPagingScrollPos$self$$inline_3131_JSCompiler_inline_result$$81_clearPagingControlInput$$.$HandleDomScroll$($JSCompiler_StaticMethods_alignPagingScrollPos$self$$inline_3131_JSCompiler_inline_result$$81_clearPagingControlInput$$.getComponent(), null);
              $JSCompiler_StaticMethods_alignPagingScrollPos$self$$inline_3131_JSCompiler_inline_result$$81_clearPagingControlInput$$ = !0;
            } else {
              $JSCompiler_StaticMethods_alignPagingScrollPos$self$$inline_3131_JSCompiler_inline_result$$81_clearPagingControlInput$$ = !1;
            }
          }
        }
        if ($JSCompiler_StaticMethods_alignPagingScrollPos$self$$inline_3131_JSCompiler_inline_result$$81_clearPagingControlInput$$) {
          return;
        }
      } else {
        return;
      }
    }
  }
  $JSCompiler_StaticMethods_updatePagingControls$self$$.$_updatedPagingInputValue$ = !1;
  $JSCompiler_StaticMethods_updatePagingControls$self$$.$_keepPagingValueChange$ = [[!1, !1], [!1, !1]];
  $JSCompiler_StaticMethods_alignPagingScrollPos$self$$inline_3131_JSCompiler_inline_result$$81_clearPagingControlInput$$ = !0;
  for ($edge$$24$$ = 0;2 > $edge$$24$$;$edge$$24$$++) {
    for ($firstProperties$$inline_3132_splitSlice$$ = $JSCompiler_StaticMethods_updatePagingControls$self$$.$_ptUtils$.$_splitSlice$[$edge$$24$$], $pane$$10$$ = $JSCompiler_StaticMethods_updatePagingControls$self$$.$_ptUtils$.$_startPane$[$edge$$24$$];2 > $pane$$10$$;$pane$$10$$++) {
      var $JSCompiler_StaticMethods_updatePagingInput$self$$inline_3142_edgeExtent$$inline_3137_startValue$$inline_5112$$ = $JSCompiler_StaticMethods_updatePagingControls$self$$, $databody$$inline_3138_edge$$inline_3143_firstArrow$$inline_5116$$ = $edge$$24$$, $pane$$inline_3144_prevArrow$$inline_5117_scrollOffset$$inline_3139$$ = $pane$$10$$, $edge$$inline_3135_edgeStart$$inline_3145_edgeStart$$inline_5114$$ = -1 != $firstProperties$$inline_3132_splitSlice$$ && 1 == $pane$$10$$ ? $firstProperties$$inline_3132_splitSlice$$ + 
      1 : 1, $edgeExtent$$inline_3146_edgeExtent$$inline_5115_endValue$$inline_3134$$ = $edgeExtent$$[$edge$$24$$][$pane$$10$$], $lastArrow$$inline_5118_scrollPos$$inline_3140_startValue$$inline_3148$$ = $edge$$inline_3126_startValue$$[$edge$$24$$][$pane$$10$$], $endValue$$inline_3150_endValue$$inline_5113_pane$$inline_3136$$ = $endValue_scrollPos$$inline_3129$$[$edge$$24$$][$pane$$10$$], $JSCompiler_inline_result$$80_lastProperties$$inline_3133_pagingControl$$inline_3151$$ = $JSCompiler_StaticMethods_updatePagingInput$self$$inline_3142_edgeExtent$$inline_3137_startValue$$inline_5112$$.$_ptUtils$.$_pagingControl$[$databody$$inline_3138_edge$$inline_3143_firstArrow$$inline_5116$$][$pane$$inline_3144_prevArrow$$inline_5117_scrollOffset$$inline_3139$$], 
      $agent$$inline_5120_inputComp$$inline_3156_inputId$$inline_3152$$ = $JSCompiler_StaticMethods_updatePagingInput$self$$inline_3142_edgeExtent$$inline_3137_startValue$$inline_5112$$.$_ptUtils$.$_pagingControlInputId$[$databody$$inline_3138_edge$$inline_3143_firstArrow$$inline_5116$$][$pane$$inline_3144_prevArrow$$inline_5117_scrollOffset$$inline_3139$$];
      if (-1 != $lastArrow$$inline_5118_scrollPos$$inline_3140_startValue$$inline_3148$$ && -1 != $endValue$$inline_3150_endValue$$inline_5113_pane$$inline_3136$$) {
        $lastArrow$$inline_5118_scrollPos$$inline_3140_startValue$$inline_3148$$ != $endValue$$inline_3150_endValue$$inline_5113_pane$$inline_3136$$ && (0 < $JSCompiler_StaticMethods_adjustPagingScrollPos$self$$inline_3125_JSCompiler_temp$$79_firstProperties$$1$$[$edge$$24$$][$pane$$10$$].$pixel$ && $lastArrow$$inline_5118_scrollPos$$inline_3140_startValue$$inline_3148$$++, 0 < $lastProperties_pane$$inline_3127$$[$edge$$24$$][$pane$$10$$].$pixelsOutsideViewport$ && $endValue$$inline_3150_endValue$$inline_5113_pane$$inline_3136$$--);
        $lastArrow$$inline_5118_scrollPos$$inline_3140_startValue$$inline_3148$$++;
        $endValue$$inline_3150_endValue$$inline_5113_pane$$inline_3136$$++;
        var $pagingWidth$$inline_3153_rangeText$$inline_3155$$ = $JSCompiler_inline_result$$80_lastProperties$$inline_3133_pagingControl$$inline_3151$$.childNodes[0].offsetWidth, $nextArrow$$inline_5119_pagingControlInnerContentNode$$inline_3154$$ = $JSCompiler_inline_result$$80_lastProperties$$inline_3133_pagingControl$$inline_3151$$.childNodes[0].childNodes[0].childNodes[0];
        if ($JSCompiler_inline_result$$80_lastProperties$$inline_3133_pagingControl$$inline_3151$$.offsetWidth < $pagingWidth$$inline_3153_rangeText$$inline_3155$$) {
          null == $JSCompiler_inline_result$$80_lastProperties$$inline_3133_pagingControl$$inline_3151$$.$_pw$ && ($nextArrow$$inline_5119_pagingControlInnerContentNode$$inline_3154$$.childNodes[3].style.display = "none", $nextArrow$$inline_5119_pagingControlInnerContentNode$$inline_3154$$.childNodes[4].style.display = "none", $nextArrow$$inline_5119_pagingControlInnerContentNode$$inline_3154$$.childNodes[5].style.display = "none", $JSCompiler_inline_result$$80_lastProperties$$inline_3133_pagingControl$$inline_3151$$.$_pw$ = 
          $pagingWidth$$inline_3153_rangeText$$inline_3155$$);
        } else {
          if (null == $JSCompiler_inline_result$$80_lastProperties$$inline_3133_pagingControl$$inline_3151$$.$_pw$ || parseInt($JSCompiler_inline_result$$80_lastProperties$$inline_3133_pagingControl$$inline_3151$$.$_pw$) <= $JSCompiler_inline_result$$80_lastProperties$$inline_3133_pagingControl$$inline_3151$$.offsetWidth) {
            $pagingWidth$$inline_3153_rangeText$$inline_3155$$ = $nextArrow$$inline_5119_pagingControlInnerContentNode$$inline_3154$$.childNodes[5], null == $JSCompiler_StaticMethods_updatePagingInput$self$$inline_3142_edgeExtent$$inline_3137_startValue$$inline_5112$$.$_pagingRangeText$ && ($JSCompiler_StaticMethods_updatePagingInput$self$$inline_3142_edgeExtent$$inline_3137_startValue$$inline_5112$$.$_pagingRangeText$ = $pagingWidth$$inline_3153_rangeText$$inline_3155$$.innerHTML), $pagingWidth$$inline_3153_rangeText$$inline_3155$$.innerHTML = 
            $JSCompiler_StaticMethods_updatePagingInput$self$$inline_3142_edgeExtent$$inline_3137_startValue$$inline_5112$$.$_pagingRangeText$.replace("-", $edgeExtent$$inline_3146_edgeExtent$$inline_5115_endValue$$inline_3134$$).replace("_", "- ".concat($endValue$$inline_3150_endValue$$inline_5113_pane$$inline_3136$$)), $nextArrow$$inline_5119_pagingControlInnerContentNode$$inline_3154$$.childNodes[3].style.display = "", $nextArrow$$inline_5119_pagingControlInnerContentNode$$inline_3154$$.childNodes[4].style.display = 
            "", $nextArrow$$inline_5119_pagingControlInnerContentNode$$inline_3154$$.childNodes[5].style.display = "", $JSCompiler_inline_result$$80_lastProperties$$inline_3133_pagingControl$$inline_3151$$.$_pw$ = null;
          }
        }
        $agent$$inline_5120_inputComp$$inline_3156_inputId$$inline_3152$$ = AdfPage.PAGE.findComponent($JSCompiler_StaticMethods_updatePagingInput$self$$inline_3142_edgeExtent$$inline_3137_startValue$$inline_5112$$.getComponent().getClientId().concat($agent$$inline_5120_inputComp$$inline_3156_inputId$$inline_3152$$));
        $lastArrow$$inline_5118_scrollPos$$inline_3140_startValue$$inline_3148$$ != $agent$$inline_5120_inputComp$$inline_3156_inputId$$inline_3152$$.getValue() && ($JSCompiler_StaticMethods_updatePagingInput$self$$inline_3142_edgeExtent$$inline_3137_startValue$$inline_5112$$.$_keepPagingValueChange$[$databody$$inline_3138_edge$$inline_3143_firstArrow$$inline_5116$$][$pane$$inline_3144_prevArrow$$inline_5117_scrollOffset$$inline_3139$$] = !0, $agent$$inline_5120_inputComp$$inline_3156_inputId$$inline_3152$$.setValue("".concat($lastArrow$$inline_5118_scrollPos$$inline_3140_startValue$$inline_3148$$)));
        firstArrow = $nextArrow$$inline_5119_pagingControlInnerContentNode$$inline_3154$$.childNodes[1].childNodes[0];
        prevArrow = $nextArrow$$inline_5119_pagingControlInnerContentNode$$inline_3154$$.childNodes[2].childNodes[0];
        lastArrow = $nextArrow$$inline_5119_pagingControlInnerContentNode$$inline_3154$$.childNodes[7].childNodes[0];
        nextArrow = $nextArrow$$inline_5119_pagingControlInnerContentNode$$inline_3154$$.childNodes[6].childNodes[0];
        $JSCompiler_StaticMethods_updatePagingInput$self$$inline_3142_edgeExtent$$inline_3137_startValue$$inline_5112$$ = $lastArrow$$inline_5118_scrollPos$$inline_3140_startValue$$inline_3148$$;
        $databody$$inline_3138_edge$$inline_3143_firstArrow$$inline_5116$$ = firstArrow;
        $pane$$inline_3144_prevArrow$$inline_5117_scrollOffset$$inline_3139$$ = prevArrow;
        $lastArrow$$inline_5118_scrollPos$$inline_3140_startValue$$inline_3148$$ = lastArrow;
        $nextArrow$$inline_5119_pagingControlInnerContentNode$$inline_3154$$ = nextArrow;
        $AdfDhtmlCommonUtils$$.$containsCSSClassName$($databody$$inline_3138_edge$$inline_3143_firstArrow$$inline_5116$$, "p_AFActivated") ? $AdfDhtmlCommonUtils$$.$removeCSSClassName$($databody$$inline_3138_edge$$inline_3143_firstArrow$$inline_5116$$, "p_AFActivated") : $AdfDhtmlCommonUtils$$.$containsCSSClassName$($pane$$inline_3144_prevArrow$$inline_5117_scrollOffset$$inline_3139$$, "p_AFActivated") ? $AdfDhtmlCommonUtils$$.$removeCSSClassName$($pane$$inline_3144_prevArrow$$inline_5117_scrollOffset$$inline_3139$$, 
        "p_AFActivated") : $AdfDhtmlCommonUtils$$.$containsCSSClassName$($lastArrow$$inline_5118_scrollPos$$inline_3140_startValue$$inline_3148$$, "p_AFActivated") ? $AdfDhtmlCommonUtils$$.$removeCSSClassName$($lastArrow$$inline_5118_scrollPos$$inline_3140_startValue$$inline_3148$$, "p_AFActivated") : $AdfDhtmlCommonUtils$$.$containsCSSClassName$($nextArrow$$inline_5119_pagingControlInnerContentNode$$inline_3154$$, "p_AFActivated") && $AdfDhtmlCommonUtils$$.$removeCSSClassName$($nextArrow$$inline_5119_pagingControlInnerContentNode$$inline_3154$$, 
        "p_AFActivated");
        $agent$$inline_5120_inputComp$$inline_3156_inputId$$inline_3152$$ = AdfAgent.AGENT;
        $JSCompiler_StaticMethods_updatePagingInput$self$$inline_3142_edgeExtent$$inline_3137_startValue$$inline_5112$$ == $edge$$inline_3135_edgeStart$$inline_3145_edgeStart$$inline_5114$$ ? $AdfDhtmlCommonUtils$$.$containsCSSClassName$($databody$$inline_3138_edge$$inline_3143_firstArrow$$inline_5116$$, "p_AFDisabled") || ($AdfDhtmlCommonUtils$$.$addCSSClassName$($databody$$inline_3138_edge$$inline_3143_firstArrow$$inline_5116$$, "p_AFDisabled"), $databody$$inline_3138_edge$$inline_3143_firstArrow$$inline_5116$$.removeAttribute("href"), 
        $AdfDhtmlCommonUtils$$.$addCSSClassName$($pane$$inline_3144_prevArrow$$inline_5117_scrollOffset$$inline_3139$$, "p_AFDisabled"), $pane$$inline_3144_prevArrow$$inline_5117_scrollOffset$$inline_3139$$.removeAttribute("href")) : $AdfDhtmlCommonUtils$$.$containsCSSClassName$($databody$$inline_3138_edge$$inline_3143_firstArrow$$inline_5116$$, "p_AFDisabled") && ($AdfDhtmlCommonUtils$$.$removeCSSClassName$($databody$$inline_3138_edge$$inline_3143_firstArrow$$inline_5116$$, "p_AFDisabled"), $agent$$inline_5120_inputComp$$inline_3156_inputId$$inline_3152$$.setAttribute($databody$$inline_3138_edge$$inline_3143_firstArrow$$inline_5116$$, 
        "href", "#"), $AdfDhtmlCommonUtils$$.$removeCSSClassName$($pane$$inline_3144_prevArrow$$inline_5117_scrollOffset$$inline_3139$$, "p_AFDisabled"), $agent$$inline_5120_inputComp$$inline_3156_inputId$$inline_3152$$.setAttribute($pane$$inline_3144_prevArrow$$inline_5117_scrollOffset$$inline_3139$$, "href", "#"));
        $endValue$$inline_3150_endValue$$inline_5113_pane$$inline_3136$$ == $edgeExtent$$inline_3146_edgeExtent$$inline_5115_endValue$$inline_3134$$ ? $AdfDhtmlCommonUtils$$.$containsCSSClassName$($lastArrow$$inline_5118_scrollPos$$inline_3140_startValue$$inline_3148$$, "p_AFDisabled") || ($AdfDhtmlCommonUtils$$.$addCSSClassName$($lastArrow$$inline_5118_scrollPos$$inline_3140_startValue$$inline_3148$$, "p_AFDisabled"), $lastArrow$$inline_5118_scrollPos$$inline_3140_startValue$$inline_3148$$.removeAttribute("href"), 
        $AdfDhtmlCommonUtils$$.$addCSSClassName$($nextArrow$$inline_5119_pagingControlInnerContentNode$$inline_3154$$, "p_AFDisabled"), $nextArrow$$inline_5119_pagingControlInnerContentNode$$inline_3154$$.removeAttribute("href")) : $AdfDhtmlCommonUtils$$.$containsCSSClassName$($lastArrow$$inline_5118_scrollPos$$inline_3140_startValue$$inline_3148$$, "p_AFDisabled") && ($AdfDhtmlCommonUtils$$.$removeCSSClassName$($lastArrow$$inline_5118_scrollPos$$inline_3140_startValue$$inline_3148$$, "p_AFDisabled"), 
        $agent$$inline_5120_inputComp$$inline_3156_inputId$$inline_3152$$.setAttribute($lastArrow$$inline_5118_scrollPos$$inline_3140_startValue$$inline_3148$$, "href", "#"), $AdfDhtmlCommonUtils$$.$removeCSSClassName$($nextArrow$$inline_5119_pagingControlInnerContentNode$$inline_3154$$, "p_AFDisabled"), $agent$$inline_5120_inputComp$$inline_3156_inputId$$inline_3152$$.setAttribute($nextArrow$$inline_5119_pagingControlInnerContentNode$$inline_3154$$, "href", "#"));
        $JSCompiler_inline_result$$80_lastProperties$$inline_3133_pagingControl$$inline_3151$$.parentNode.style.visibility = "visible";
        $JSCompiler_inline_result$$80_lastProperties$$inline_3133_pagingControl$$inline_3151$$ = !0;
      } else {
        $JSCompiler_inline_result$$80_lastProperties$$inline_3133_pagingControl$$inline_3151$$ = void 0;
      }
      $JSCompiler_inline_result$$80_lastProperties$$inline_3133_pagingControl$$inline_3151$$ || ($JSCompiler_StaticMethods_alignPagingScrollPos$self$$inline_3131_JSCompiler_inline_result$$81_clearPagingControlInput$$ = !1);
    }
  }
  $JSCompiler_StaticMethods_alignPagingScrollPos$self$$inline_3131_JSCompiler_inline_result$$81_clearPagingControlInput$$ && ($JSCompiler_StaticMethods_updatePagingControls$self$$.$_pagingControlInput$ = null);
}
function $JSCompiler_StaticMethods__clearMessageAndRevalidate$$($componentEvent$$104_source$$179$$) {
  $componentEvent$$104_source$$179$$ = $componentEvent$$104_source$$179$$.getSource();
  return $componentEvent$$104_source$$179$$ instanceof AdfUIEditableValue ? (AdfPage.PAGE.clearMessages($componentEvent$$104_source$$179$$.getClientId()), $componentEvent$$104_source$$179$$.validate(), $componentEvent$$104_source$$179$$.getValid()) : !0;
}
function $JSCompiler_StaticMethods_setCurrentRequest$$($JSCompiler_StaticMethods_setCurrentRequest$self$$, $list$$inline_3160_request$$5$$, $adsCounter$$1$$) {
  $JSCompiler_StaticMethods_setCurrentRequest$self$$.$_currentRequest$ = $list$$inline_3160_request$$5$$;
  if ($JSCompiler_StaticMethods_setCurrentRequest$self$$.$_adsEnabled$ && null == $list$$inline_3160_request$$5$$) {
    if ($list$$inline_3160_request$$5$$ = $JSCompiler_StaticMethods_setCurrentRequest$self$$.$_activeMessageBuffer$) {
      for (var $i$$inline_3161$$ = 0;$i$$inline_3161$$ < $list$$inline_3160_request$$5$$.length;) {
        id = $list$$inline_3160_request$$5$$[$i$$inline_3161$$++], payload = $list$$inline_3160_request$$5$$[$i$$inline_3161$$++], id > $adsCounter$$1$$ && $JSCompiler_StaticMethods_applyAdsPayload$$($JSCompiler_StaticMethods_setCurrentRequest$self$$, payload);
      }
      $list$$inline_3160_request$$5$$.length = 0;
    }
    $JSCompiler_StaticMethods_setCurrentRequest$self$$.$_bufferADSCounter$ = Math.max($JSCompiler_StaticMethods_setCurrentRequest$self$$.$_bufferADSCounter$, $adsCounter$$1$$);
    $JSCompiler_StaticMethods_setCurrentRequest$self$$.$_blockADSCounter$ = $JSCompiler_StaticMethods_setCurrentRequest$self$$.$_bufferADSCounter$;
  }
}
AdfDhtmlPivotTablePeer.prototype.enableUserSelect = function $AdfDhtmlPivotTablePeer$$enableUserSelect$() {
  AdfAgent.AGENT.enableUserSelect(this.getDomElement());
  this.$_enableUserSelect$ = !0;
};
AdfDhtmlPivotTablePeer.prototype.disableUserSelect = function $AdfDhtmlPivotTablePeer$$disableUserSelect$() {
  (void 0 == this.$_enableUserSelect$ || this.$_enableUserSelect$) && AdfAgent.AGENT.disableUserSelect(this.getDomElement());
  this.$_enableUserSelect$ = !1;
};
function $JSCompiler_StaticMethods_putInTestLog$$($JSCompiler_StaticMethods_putInTestLog$self$$, $entry$$) {
  $JSCompiler_StaticMethods_putInTestLog$self$$.$__log$[$JSCompiler_StaticMethods_putInTestLog$self$$.$__logIndex$] = $entry$$;
  ++$JSCompiler_StaticMethods_putInTestLog$self$$.$__logIndex$ == $JSCompiler_StaticMethods_putInTestLog$self$$.$__logLength$ && ($JSCompiler_StaticMethods_putInTestLog$self$$.$__logIndex$ = 0);
}
function $JSCompiler_StaticMethods__getBlockInfo$$($buffer$$9$$) {
  for (var $result$$13$$ = {}, $i$$156$$ = 0;$i$$156$$ < $buffer$$9$$.length;$i$$156$$++) {
    for (var $j$$41$$ = 0;$j$$41$$ < $buffer$$9$$[$i$$156$$].length;$j$$41$$++) {
      var $block$$7_endCol$$1$$ = $buffer$$9$$[$i$$156$$][$j$$41$$];
      if ($block$$7_endCol$$1$$.getAttribute) {
        var $endRow$$1_startRow$$4$$ = parseInt($block$$7_endCol$$1$$.getAttribute("_startrow"), 10), $startCol$$4$$ = parseInt($block$$7_endCol$$1$$.getAttribute("_startcol"), 10);
        if (null == $result$$13$$.$startRow$ || $result$$13$$.$startRow$ > $endRow$$1_startRow$$4$$) {
          $result$$13$$.$startRow$ = $endRow$$1_startRow$$4$$;
        }
        if (null == $result$$13$$.$startCol$ || $result$$13$$.$startCol$ > $startCol$$4$$) {
          $result$$13$$.$startCol$ = $startCol$$4$$;
        }
        if ($block$$7_endCol$$1$$.firstChild && "TABLE" == $block$$7_endCol$$1$$.firstChild.tagName) {
          $endRow$$1_startRow$$4$$ = $endRow$$1_startRow$$4$$ + ($block$$7_endCol$$1$$.firstChild.rows.length - 1) - 1;
          $block$$7_endCol$$1$$ = $startCol$$4$$ + ($block$$7_endCol$$1$$.firstChild.rows[0].cells.length - 1) - 1;
          if (null == $result$$13$$.$endRow$ || $result$$13$$.$endRow$ < $endRow$$1_startRow$$4$$) {
            $result$$13$$.$endRow$ = $endRow$$1_startRow$$4$$;
          }
          if (null == $result$$13$$.$endCol$ || $result$$13$$.$endCol$ < $block$$7_endCol$$1$$) {
            $result$$13$$.$endCol$ = $block$$7_endCol$$1$$;
          }
        }
      }
    }
  }
  return $result$$13$$;
}
function $JSCompiler_StaticMethods__getRangeChangeEvent$$($JSCompiler_StaticMethods__getRangeChangeEvent$self_component$$483_event$$171$$, $oldBuffer_oldDatabodyBuffer$$, $newBuffer_newDatabodyBuffer$$) {
  $oldBuffer_oldDatabodyBuffer$$ = $oldBuffer_oldDatabodyBuffer$$[1][1];
  $newBuffer_newDatabodyBuffer$$ = $newBuffer_newDatabodyBuffer$$[1][1];
  var $oldBlockInfo$$ = $JSCompiler_StaticMethods__getBlockInfo$$($oldBuffer_oldDatabodyBuffer$$), $newBlockInfo$$ = $JSCompiler_StaticMethods__getBlockInfo$$($newBuffer_newDatabodyBuffer$$);
  if ($oldBlockInfo$$.$startRow$ == $newBlockInfo$$.$startRow$ && $oldBlockInfo$$.$endRow$ == $newBlockInfo$$.$endRow$ && $oldBlockInfo$$.$startCol$ == $newBlockInfo$$.$startCol$ && $oldBlockInfo$$.$endCol$ == $newBlockInfo$$.$endCol$) {
    return null;
  }
  $JSCompiler_StaticMethods__getRangeChangeEvent$self_component$$483_event$$171$$ = $JSCompiler_StaticMethods__getRangeChangeEvent$self_component$$483_event$$171$$.getComponent();
  $JSCompiler_StaticMethods__getRangeChangeEvent$self_component$$483_event$$171$$ = new $AdfPivotTableRangeChangeEvent$$($JSCompiler_StaticMethods__getRangeChangeEvent$self_component$$483_event$$171$$, $oldBlockInfo$$.$startRow$, $oldBlockInfo$$.$startCol$, $oldBlockInfo$$.$endRow$, $oldBlockInfo$$.$endCol$, $newBlockInfo$$.$startRow$, $newBlockInfo$$.$startCol$, $newBlockInfo$$.$endRow$, $newBlockInfo$$.$endCol$);
  $oldBuffer_oldDatabodyBuffer$$.length != $newBuffer_newDatabodyBuffer$$.length && ($JSCompiler_StaticMethods__getRangeChangeEvent$self_component$$483_event$$171$$.$_blockRemoved$ = !0);
  return $JSCompiler_StaticMethods__getRangeChangeEvent$self_component$$483_event$$171$$;
}
;