var $AdfDhtmlPanelGridLayoutPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfRichUIPeer$$, "AdfDhtmlPanelGridLayoutPeer", !1);
$goog$exportSymbol$$("AdfDhtmlPanelGridLayoutPeer", $AdfDhtmlPanelGridLayoutPeer$$);
$AdfDhtmlPanelGridLayoutPeer$$.$InitSubclass$ = function $$AdfDhtmlPanelGridLayoutPeer$$$$InitSubclass$$() {
  $AdfRichUIPeer$$.$addComponentPropertyChanges$(this, AdfRichPanelGridLayout.INLINE_STYLE);
};
$goog$exportSymbol$$("AdfDhtmlPanelGridLayoutPeer.InitSubclass", $AdfDhtmlPanelGridLayoutPeer$$.$InitSubclass$);
$AdfDhtmlPanelGridLayoutPeer$$.prototype.$ComponentInlineStyleChanged$ = function $$AdfDhtmlPanelGridLayoutPeer$$$$$ComponentInlineStyleChanged$$($component$$1753$$, $domElement$$390$$, $newValue$$118$$, $oldValue$$78$$) {
  var $gridRows_rootStyle$$15$$ = $domElement$$390$$.style, $display$$ = $gridRows_rootStyle$$15$$.display, $position$$7$$ = $gridRows_rootStyle$$15$$.position, $left$$20$$ = $gridRows_rootStyle$$15$$.left, $right$$5$$ = $gridRows_rootStyle$$15$$.right, $top$$25$$ = $gridRows_rootStyle$$15$$.top, $bottom$$5$$ = $gridRows_rootStyle$$15$$.bottom, $width$$32$$ = $gridRows_rootStyle$$15$$.width, $minWidth$$2$$ = $gridRows_rootStyle$$15$$.minWidth, $maxWidth$$9$$ = $gridRows_rootStyle$$15$$.maxWidth, 
  $height$$40$$ = $gridRows_rootStyle$$15$$.height, $minHeight$$2$$ = $gridRows_rootStyle$$15$$.minHeight, $maxHeight$$3$$ = $gridRows_rootStyle$$15$$.maxHeight, $stylesToAssign$$ = [];
  if ("n" == $AdfAgent$$.$AGENT$.getAttribute($domElement$$390$$, "_afrm")) {
    var $gridColumns$$ = $gridRows_rootStyle$$15$$.$msGridColumns$, $gridRows_rootStyle$$15$$ = $gridRows_rootStyle$$15$$.$msGridRows$;
    $AdfDhtmlPanelGridLayoutPeer$$.$superclass$.$ComponentInlineStyleChanged$.call(this, $component$$1753$$, $domElement$$390$$, $newValue$$118$$, $oldValue$$78$$);
    null != $gridColumns$$ && "" != $gridColumns$$ && $stylesToAssign$$.push("-ms-grid-columns:" + $gridColumns$$);
    null != $gridRows_rootStyle$$15$$ && "" != $gridRows_rootStyle$$15$$ && $stylesToAssign$$.push("-ms-grid-rows:" + $gridRows_rootStyle$$15$$);
  } else {
    $AdfDhtmlPanelGridLayoutPeer$$.$superclass$.$ComponentInlineStyleChanged$.call(this, $component$$1753$$, $domElement$$390$$, $newValue$$118$$, $oldValue$$78$$), null != this.$_forcedDimensionStyles$ && $AdfDomUtils$$.$addInlineStyle$($domElement$$390$$, this.$_forcedDimensionStyles$, !0);
  }
  null != $display$$ && "" != $display$$ && $stylesToAssign$$.push("display:" + $display$$);
  null != $position$$7$$ && "" != $position$$7$$ && $stylesToAssign$$.push("position:" + $position$$7$$);
  null != $left$$20$$ && "" != $left$$20$$ && $stylesToAssign$$.push("left:" + $left$$20$$);
  null != $right$$5$$ && "" != $right$$5$$ && $stylesToAssign$$.push("right:" + $right$$5$$);
  null != $top$$25$$ && "" != $top$$25$$ && $stylesToAssign$$.push("top:" + $top$$25$$);
  null != $bottom$$5$$ && "" != $bottom$$5$$ && $stylesToAssign$$.push("bottom:" + $bottom$$5$$);
  null != $width$$32$$ && "" != $width$$32$$ && $stylesToAssign$$.push("width:" + $width$$32$$);
  null != $minWidth$$2$$ && "" != $minWidth$$2$$ && $stylesToAssign$$.push("min-width:" + $minWidth$$2$$);
  null != $maxWidth$$9$$ && "" != $maxWidth$$9$$ && $stylesToAssign$$.push("max-width:" + $maxWidth$$9$$);
  null != $height$$40$$ && "" != $height$$40$$ && $stylesToAssign$$.push("height:" + $height$$40$$);
  null != $minHeight$$2$$ && "" != $minHeight$$2$$ && $stylesToAssign$$.push("min-height:" + $minHeight$$2$$);
  null != $maxHeight$$3$$ && "" != $maxHeight$$3$$ && $stylesToAssign$$.push("max-height:" + $maxHeight$$3$$);
  0 < $stylesToAssign$$.length && $AdfDomUtils$$.$addInlineStyle$($domElement$$390$$, $stylesToAssign$$.join(";"), !0);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelGridLayoutPeer.prototype.ComponentInlineStyleChanged", {$ComponentInlineStyleChanged$:$AdfDhtmlPanelGridLayoutPeer$$.prototype.$ComponentInlineStyleChanged$});
$AdfDhtmlPanelGridLayoutPeer$$.prototype.$needsResizeNotify$ = function $$AdfDhtmlPanelGridLayoutPeer$$$$$needsResizeNotify$$() {
  return !0;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelGridLayoutPeer.prototype.needsResizeNotify", {$needsResizeNotify$:$AdfDhtmlPanelGridLayoutPeer$$.prototype.$needsResizeNotify$});
$AdfDhtmlPanelGridLayoutPeer$$.prototype.$needsChildVisibilityChanges$ = function $$AdfDhtmlPanelGridLayoutPeer$$$$$needsChildVisibilityChanges$$() {
  return !0;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelGridLayoutPeer.prototype.needsChildVisibilityChanges", {$needsChildVisibilityChanges$:$AdfDhtmlPanelGridLayoutPeer$$.prototype.$needsChildVisibilityChanges$});
$AdfDhtmlPanelGridLayoutPeer$$.prototype.$ComponentRemoved$ = function $$AdfDhtmlPanelGridLayoutPeer$$$$$ComponentRemoved$$($component$$1756$$) {
  this.$_registeredForDescendantResize$ && $AdfPage$$.$PAGE$.$__unregisterDescendantResizeNotifyComponent$($component$$1756$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelGridLayoutPeer.prototype.ComponentRemoved", {$ComponentRemoved$:$AdfDhtmlPanelGridLayoutPeer$$.prototype.$ComponentRemoved$});
$AdfDhtmlPanelGridLayoutPeer$$.prototype.$ResizeNotify$ = function $$AdfDhtmlPanelGridLayoutPeer$$$$$ResizeNotify$$($component$$1757_oldWidth$$23$$, $columnsHavePercents_oldHeight$$23_rootElement$$128$$, $caresAboutDescendantResizeNotifications_newWidth$$31$$, $newHeight$$26$$) {
  $component$$1757_oldWidth$$23$$ = this.$getComponent$();
  if (null != this.$_forcedDimensionStyles$) {
    $columnsHavePercents_oldHeight$$23_rootElement$$128$$ = -1 != $JSCompiler_StaticMethods__getColumns$$(this, $component$$1757_oldWidth$$23$$).indexOf("%");
    var $rowsHavePercents$$ = -1 != $JSCompiler_StaticMethods__getRows$$(this, $component$$1757_oldWidth$$23$$).indexOf("%"), $columnsHaveAutos$$ = -1 != $JSCompiler_StaticMethods__getColumns$$(this, $component$$1757_oldWidth$$23$$).indexOf("auto"), $rowsHaveAutos$$ = -1 != $JSCompiler_StaticMethods__getRows$$(this, $component$$1757_oldWidth$$23$$).indexOf("auto");
    if (!($columnsHavePercents_oldHeight$$23_rootElement$$128$$ || $rowsHavePercents$$ || $columnsHaveAutos$$ || $rowsHaveAutos$$)) {
      return;
    }
  }
  $columnsHavePercents_oldHeight$$23_rootElement$$128$$ = this.$getDomElement$();
  null != $AdfDomUtils$$.$getFirstChildElement$($columnsHavePercents_oldHeight$$23_rootElement$$128$$) && ($caresAboutDescendantResizeNotifications_newWidth$$31$$ = this.$_repositionPanes$($caresAboutDescendantResizeNotifications_newWidth$$31$$, $newHeight$$26$$), this.$_registeredForDescendantResize$ && !$caresAboutDescendantResizeNotifications_newWidth$$31$$ ? ($AdfPage$$.$PAGE$.$__unregisterDescendantResizeNotifyComponent$($component$$1757_oldWidth$$23$$), this.$_registeredForDescendantResize$ = 
  !1) : $caresAboutDescendantResizeNotifications_newWidth$$31$$ && ($AdfPage$$.$PAGE$.$__registerDescendantResizeNotifyComponent$($component$$1757_oldWidth$$23$$), this.$_registeredForDescendantResize$ = !0), "hidden" == $columnsHavePercents_oldHeight$$23_rootElement$$128$$.style.visibility && ($columnsHavePercents_oldHeight$$23_rootElement$$128$$.style.visibility = "visible"));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelGridLayoutPeer.prototype.ResizeNotify", {$ResizeNotify$:$AdfDhtmlPanelGridLayoutPeer$$.prototype.$ResizeNotify$});
$AdfDhtmlPanelGridLayoutPeer$$.prototype.$ChildVisibilityChanged$ = function $$AdfDhtmlPanelGridLayoutPeer$$$$$ChildVisibilityChanged$$($childComponent$$17$$, $childDomElement$$6$$, $childVisible$$5$$) {
  return this.$_isChild$($childDomElement$$6$$) ? ($AdfDomUtils$$.setVisible($childDomElement$$6$$.parentNode, $childVisible$$5$$), this.$_repositionPanes$(), $AdfDomUtils$$.setVisible($childDomElement$$6$$, $childVisible$$5$$), $AdfPage$$.$PAGE$.$doResizeNotify$(this.$getComponent$()), !0) : !1;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelGridLayoutPeer.prototype.ChildVisibilityChanged", {$ChildVisibilityChanged$:$AdfDhtmlPanelGridLayoutPeer$$.prototype.$ChildVisibilityChanged$});
$AdfDhtmlPanelGridLayoutPeer$$.prototype.$_isChild$ = function $$AdfDhtmlPanelGridLayoutPeer$$$$$_isChild$$($domNode$$69$$) {
  return $domNode$$69$$.parentNode.parentNode == this.$getDomElement$();
};
function $JSCompiler_StaticMethods__getColumns$$($JSCompiler_StaticMethods__getColumns$self$$, $component$$1758$$) {
  null == $JSCompiler_StaticMethods__getColumns$self$$.$_columns$ && ($JSCompiler_StaticMethods__getColumns$self$$.$_columns$ = $component$$1758$$.$getProperty$("_privateColumns"));
  return $JSCompiler_StaticMethods__getColumns$self$$.$_columns$;
}
function $JSCompiler_StaticMethods__getRows$$($JSCompiler_StaticMethods__getRows$self$$, $component$$1759$$) {
  null == $JSCompiler_StaticMethods__getRows$self$$.$_rows$ && ($JSCompiler_StaticMethods__getRows$self$$.$_rows$ = $component$$1759$$.$getProperty$("_privateRows"));
  return $JSCompiler_StaticMethods__getRows$self$$.$_rows$;
}
$AdfDhtmlPanelGridLayoutPeer$$.prototype.$_repositionPanes$ = function $$AdfDhtmlPanelGridLayoutPeer$$$$$_repositionPanes$$($givenWidth$$, $givenHeight$$) {
  var $rootElement$$129$$ = this.$getDomElement$(), $agent$$504_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$ = $AdfAgent$$.$AGENT$;
  if ("n" == $agent$$504_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$.getAttribute($rootElement$$129$$, "_afrm")) {
    return !1;
  }
  for (var $component$$1760$$ = this.$getComponent$(), $columns$$17_logger$$inline_3456$$ = $JSCompiler_StaticMethods__getColumns$$(this, $component$$1760$$).split(" "), $rows$$17$$ = $JSCompiler_StaticMethods__getRows$$(this, $component$$1760$$).split(" "), $lastCol$$ = 0, $lastRow$$1$$ = 0, $caresAboutDescendantResizeNotifications$$1_wrappers$$ = $AdfDomUtils$$.$getChildElements$($rootElement$$129$$), $childData$$ = [], $logger$$24$$ = $AdfLogger$$.$LOGGER$, $afterLastStartEdge_afterLastTopEdge_rigidDiv$$ = 
  null, $childDataLength_columnsHavePercents$$1$$ = -1 != $JSCompiler_StaticMethods__getColumns$$(this, $component$$1760$$).indexOf("%"), $rowsHavePercents$$1_stylesToAssign$$1$$ = -1 != $JSCompiler_StaticMethods__getRows$$(this, $component$$1760$$).indexOf("%"), $col$$14_columnResult_forcedDimensionStyles$$, $cspan_permanentWidth$$, $permanentHeight_row$$55$$, $rowResult_rspan$$, $lastWrapperIndex_rtl$$8$$ = $caresAboutDescendantResizeNotifications$$1_wrappers$$.length - 1, $i$$483$$ = 0;$i$$483$$ <= 
  $lastWrapperIndex_rtl$$8$$;$i$$483$$++) {
    var $wrapper$$24$$ = $caresAboutDescendantResizeNotifications$$1_wrappers$$[$i$$483$$];
    if (null != $agent$$504_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$.getAttribute($wrapper$$24$$, "_afrc") || null != $agent$$504_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$.getAttribute($wrapper$$24$$, "_afrr")) {
      var $child$$42$$ = $AdfDomUtils$$.$getFirstChildElement$($wrapper$$24$$);
      null == $child$$42$$ && ($child$$42$$ = $AdfDomUtils$$.$getFirstChildNodeByType$($wrapper$$24$$, 3));
      if (null == $child$$42$$) {
        $i$$483$$ == $lastWrapperIndex_rtl$$8$$ && null != $agent$$504_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$.getAttribute($wrapper$$24$$, "_afrr") ? $afterLastStartEdge_afterLastTopEdge_rigidDiv$$ = $wrapper$$24$$ : $logger$$24$$.finest("The grid layout (" + $component$$1760$$.$getClientId$() + ") has an empty grid cell under wrapper index \x3d " + $i$$483$$ + ", wrapper.innerHTML \x3d " + $wrapper$$24$$.innerHTML + ")");
      } else {
        if (3 == $child$$42$$.nodeType || $AdfDomUtils$$.$isVisible$($child$$42$$)) {
          var $cellConstraints_valign$$9$$ = this.$_getAttribute$($agent$$504_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$, $wrapper$$24$$, "_afrc", "1 1 1 1 stretch stretch").split(" ");
          $col$$14_columnResult_forcedDimensionStyles$$ = parseInt($cellConstraints_valign$$9$$[0], 10);
          $cspan_permanentWidth$$ = parseInt($cellConstraints_valign$$9$$[1], 10);
          $permanentHeight_row$$55$$ = parseInt($cellConstraints_valign$$9$$[2], 10);
          $rowResult_rspan$$ = parseInt($cellConstraints_valign$$9$$[3], 10);
          var $halign$$9$$ = $cellConstraints_valign$$9$$[4], $cellConstraints_valign$$9$$ = $cellConstraints_valign$$9$$[5];
          0 < $col$$14_columnResult_forcedDimensionStyles$$ && 0 < $permanentHeight_row$$55$$ && (data = {wrapper:$wrapper$$24$$, child:$child$$42$$, col:$col$$14_columnResult_forcedDimensionStyles$$, cspan:$cspan_permanentWidth$$, row:$permanentHeight_row$$55$$, rspan:$rowResult_rspan$$, halign:$halign$$9$$, valign:$cellConstraints_valign$$9$$}, $lastCol$$ = Math.max($lastCol$$, $col$$14_columnResult_forcedDimensionStyles$$ + $cspan_permanentWidth$$ - 1), $lastRow$$1$$ = Math.max($lastRow$$1$$, 
          $permanentHeight_row$$55$$ + $rowResult_rspan$$ - 1), $childData$$.push(data));
        } else {
          $logger$$24$$.$isLoggable$($AdfLogger$$.FINE) && $logger$$24$$.fine("The grid layout (" + $component$$1760$$.$getClientId$() + ") has an invisible child (wrapper index \x3d " + $i$$483$$ + ", child.id \x3d " + $child$$42$$.id + ", wrapper.innerHTML \x3d " + $wrapper$$24$$.innerHTML + ")");
        }
      }
    }
  }
  if (0 == $childData$$.length) {
    return $logger$$24$$.$isLoggable$($AdfLogger$$.FINE) && $logger$$24$$.fine("The grid layout (" + $component$$1760$$.$getClientId$() + ") has no child data to process (wrappers.length \x3d " + $caresAboutDescendantResizeNotifications$$1_wrappers$$.length + ")."), !1;
  }
  $lastWrapperIndex_rtl$$8$$ = $AdfPage$$.$PAGE$.$getLocaleContext$().$isRightToLeft$();
  $caresAboutDescendantResizeNotifications$$1_wrappers$$ = !1;
  $col$$14_columnResult_forcedDimensionStyles$$ = $JSCompiler_StaticMethods__resolveSizes$$($columns$$17_logger$$inline_3456$$, $lastCol$$, $rootElement$$129$$, $childData$$, "col", "cspan", "clientWidth", $givenWidth$$);
  $rowResult_rspan$$ = $JSCompiler_StaticMethods__resolveSizes$$($rows$$17$$, $lastRow$$1$$, $rootElement$$129$$, $childData$$, "row", "rspan", "clientHeight", $givenHeight$$);
  $cspan_permanentWidth$$ = $col$$14_columnResult_forcedDimensionStyles$$[0];
  $permanentHeight_row$$55$$ = $rowResult_rspan$$[0];
  $caresAboutDescendantResizeNotifications$$1_wrappers$$ || ($caresAboutDescendantResizeNotifications$$1_wrappers$$ = $col$$14_columnResult_forcedDimensionStyles$$[1] || $rowResult_rspan$$[1]);
  null == $afterLastStartEdge_afterLastTopEdge_rigidDiv$$ && ($afterLastStartEdge_afterLastTopEdge_rigidDiv$$ = $rootElement$$129$$.ownerDocument.createElement("div"), $agent$$504_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$.setAttribute($afterLastStartEdge_afterLastTopEdge_rigidDiv$$, "_afrr", "y"), $rootElement$$129$$.appendChild($afterLastStartEdge_afterLastTopEdge_rigidDiv$$));
  $AdfDomUtils$$.$addInlineStyle$($afterLastStartEdge_afterLastTopEdge_rigidDiv$$, "width:" + $cspan_permanentWidth$$ + "px;height:" + $permanentHeight_row$$55$$ + "px", !0);
  $col$$14_columnResult_forcedDimensionStyles$$ = "";
  $childDataLength_columnsHavePercents$$1$$ || ($col$$14_columnResult_forcedDimensionStyles$$ += "max-width:" + $cspan_permanentWidth$$ + "px;min-width:" + $cspan_permanentWidth$$ + "px;");
  $rowsHavePercents$$1_stylesToAssign$$1$$ || ($col$$14_columnResult_forcedDimensionStyles$$ += "max-height:" + $permanentHeight_row$$55$$ + "px;min-height:" + $permanentHeight_row$$55$$ + "px;");
  "" != $col$$14_columnResult_forcedDimensionStyles$$ && ($AdfDomUtils$$.$addInlineStyle$($rootElement$$129$$, $col$$14_columnResult_forcedDimensionStyles$$, !0), this.$_forcedDimensionStyles$ = $col$$14_columnResult_forcedDimensionStyles$$);
  $logger$$24$$.$isLoggable$($AdfLogger$$.FINE) && ($logger$$24$$.fine("Grid layout details for " + $component$$1760$$.$getClientId$() + " (childData.length \x3d " + $childData$$.length + ")"), $logger$$24$$.fine("Columns: " + $columns$$17_logger$$inline_3456$$), $logger$$24$$.fine("Rows: " + $rows$$17$$), $logger$$24$$.fine("Grid (permanent) dimensions: " + $cspan_permanentWidth$$ + "px and " + $permanentHeight_row$$55$$ + "px."));
  $childDataLength_columnsHavePercents$$1$$ = $childData$$.length;
  for ($i$$483$$ = 0;$i$$483$$ < $childDataLength_columnsHavePercents$$1$$;$i$$483$$++) {
    data = $childData$$[$i$$483$$], "center" == data.halign && (data.sw = data.wrapper.scrollWidth), "middle" == data.valign && (data.sh = data.wrapper.scrollHeight);
  }
  for ($i$$483$$ = 0;$i$$483$$ < $childDataLength_columnsHavePercents$$1$$;$i$$483$$++) {
    data = $childData$$[$i$$483$$], $wrapper$$24$$ = data.wrapper, $col$$14_columnResult_forcedDimensionStyles$$ = data.col, $cspan_permanentWidth$$ = data.cspan, $permanentHeight_row$$55$$ = data.row, $rowResult_rspan$$ = data.rspan, $halign$$9$$ = data.halign, $cellConstraints_valign$$9$$ = data.valign, $rowsHavePercents$$1_stylesToAssign$$1$$ = [], "center" == $halign$$9$$ ? ($caresAboutDescendantResizeNotifications$$1_wrappers$$ = !0, $agent$$504_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$ = 
    $JSCompiler_StaticMethods__getFirstEdge$$($columns$$17_logger$$inline_3456$$, $col$$14_columnResult_forcedDimensionStyles$$), $agent$$504_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$ = $agent$$504_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$ + Math.ceil(Math.max(0, $JSCompiler_StaticMethods__getFirstEdge$$($columns$$17_logger$$inline_3456$$, $col$$14_columnResult_forcedDimensionStyles$$ + $cspan_permanentWidth$$) - $agent$$504_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$) / 
    2 - data.sw / 2) + "px", $lastWrapperIndex_rtl$$8$$ ? $rowsHavePercents$$1_stylesToAssign$$1$$.push("right:" + $agent$$504_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$) : $rowsHavePercents$$1_stylesToAssign$$1$$.push("left:" + $agent$$504_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$)) : "stretch" == $halign$$9$$ ? ($agent$$504_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$ = $JSCompiler_StaticMethods__getFirstEdge$$($columns$$17_logger$$inline_3456$$, 
    $col$$14_columnResult_forcedDimensionStyles$$), $afterLastStartEdge_afterLastTopEdge_rigidDiv$$ = $JSCompiler_StaticMethods__getFirstEdge$$($columns$$17_logger$$inline_3456$$, $col$$14_columnResult_forcedDimensionStyles$$ + $cspan_permanentWidth$$), $lastWrapperIndex_rtl$$8$$ ? $rowsHavePercents$$1_stylesToAssign$$1$$.push("right:" + $agent$$504_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$ + "px") : $rowsHavePercents$$1_stylesToAssign$$1$$.push("left:" + $agent$$504_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$ + 
    "px"), $rowsHavePercents$$1_stylesToAssign$$1$$.push("width:" + ($afterLastStartEdge_afterLastTopEdge_rigidDiv$$ - $agent$$504_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$) + "px")) : $lastWrapperIndex_rtl$$8$$ ? ("end" != $halign$$9$$ && $rowsHavePercents$$1_stylesToAssign$$1$$.push("right:" + $JSCompiler_StaticMethods__getFirstEdge$$($columns$$17_logger$$inline_3456$$, $col$$14_columnResult_forcedDimensionStyles$$) + "px"), "start" != $halign$$9$$ && $rowsHavePercents$$1_stylesToAssign$$1$$.push("left:" + 
    $JSCompiler_StaticMethods__getLastEdge$$($columns$$17_logger$$inline_3456$$, $col$$14_columnResult_forcedDimensionStyles$$ + $cspan_permanentWidth$$ - 1) + "px")) : ("end" != $halign$$9$$ && $rowsHavePercents$$1_stylesToAssign$$1$$.push("left:" + $JSCompiler_StaticMethods__getFirstEdge$$($columns$$17_logger$$inline_3456$$, $col$$14_columnResult_forcedDimensionStyles$$) + "px"), "start" != $halign$$9$$ && $rowsHavePercents$$1_stylesToAssign$$1$$.push("right:" + $JSCompiler_StaticMethods__getLastEdge$$($columns$$17_logger$$inline_3456$$, 
    $col$$14_columnResult_forcedDimensionStyles$$ + $cspan_permanentWidth$$ - 1) + "px")), "middle" == $cellConstraints_valign$$9$$ ? ($caresAboutDescendantResizeNotifications$$1_wrappers$$ = !0, $agent$$504_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$ = $JSCompiler_StaticMethods__getFirstEdge$$($rows$$17$$, $permanentHeight_row$$55$$), $rowsHavePercents$$1_stylesToAssign$$1$$.push("top:" + ($agent$$504_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$ + Math.ceil(Math.max(0, 
    $JSCompiler_StaticMethods__getFirstEdge$$($rows$$17$$, $permanentHeight_row$$55$$ + $rowResult_rspan$$) - $agent$$504_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$) / 2 - data.sh / 2)) + "px")) : "stretch" == $cellConstraints_valign$$9$$ ? ($agent$$504_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$ = $JSCompiler_StaticMethods__getFirstEdge$$($rows$$17$$, $permanentHeight_row$$55$$), $afterLastStartEdge_afterLastTopEdge_rigidDiv$$ = $JSCompiler_StaticMethods__getFirstEdge$$($rows$$17$$, 
    $permanentHeight_row$$55$$ + $rowResult_rspan$$), $rowsHavePercents$$1_stylesToAssign$$1$$.push("top:" + $agent$$504_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$ + "px"), $rowsHavePercents$$1_stylesToAssign$$1$$.push("height:" + ($afterLastStartEdge_afterLastTopEdge_rigidDiv$$ - $agent$$504_firstStartEdge_firstTopEdge_wrapperStart_xOfCellStart_yOfCellTop$$) + "px")) : ("bottom" != $cellConstraints_valign$$9$$ && $rowsHavePercents$$1_stylesToAssign$$1$$.push("top:" + $JSCompiler_StaticMethods__getFirstEdge$$($rows$$17$$, 
    $permanentHeight_row$$55$$) + "px"), "top" != $cellConstraints_valign$$9$$ && $rowsHavePercents$$1_stylesToAssign$$1$$.push("bottom:" + $JSCompiler_StaticMethods__getLastEdge$$($rows$$17$$, $permanentHeight_row$$55$$ + $rowResult_rspan$$ - 1) + "px")), 0 < $rowsHavePercents$$1_stylesToAssign$$1$$.length && $AdfDomUtils$$.$addInlineStyle$($wrapper$$24$$, $rowsHavePercents$$1_stylesToAssign$$1$$.join(";"), !0), $logger$$24$$.$isLoggable$($AdfLogger$$.FINE) && $logger$$24$$.fine("child " + $i$$483$$ + 
    ": c\x3d" + $col$$14_columnResult_forcedDimensionStyles$$ + " (span\x3d" + $cspan_permanentWidth$$ + ") halign\x3d" + $halign$$9$$ + " -- r\x3d" + $permanentHeight_row$$55$$ + " (span\x3d" + $rowResult_rspan$$ + ") valign\x3d" + $cellConstraints_valign$$9$$);
  }
  if ($givenWidth$$ != $rootElement$$129$$.clientWidth || $givenHeight$$ != $rootElement$$129$$.clientHeight) {
    a: {
      $columns$$17_logger$$inline_3456$$ = $AdfLogger$$.$LOGGER$;
      if (null == this.$_repositionCount$) {
        this.$_repositionCount$ = 1, this.$_repositionTimer$ = $AdfPage$$.$PAGE$.$scheduleTimer$(this, this.$_stopRepositionCallback$, {}, 1E3);
      } else {
        if (10 < ++this.$_repositionCount$ && (null == $givenWidth$$ || $givenWidth$$ > $rootElement$$129$$.clientWidth || null == $givenHeight$$ || $givenHeight$$ > $rootElement$$129$$.clientHeight)) {
          $columns$$17_logger$$inline_3456$$.$isLoggable$($AdfLogger$$.FINE) && $columns$$17_logger$$inline_3456$$.fine("Unsable structure encountered, stopping repositioning attempts (case a).");
          $JSCompiler_StaticMethods__cancelRepositionCallback$$(this);
          break a;
        }
        if (15 < ++this.$_repositionCount$) {
          $columns$$17_logger$$inline_3456$$.$isLoggable$($AdfLogger$$.FINE) && $columns$$17_logger$$inline_3456$$.fine("Unsable structure encountered, stopping repositioning attempts (case b).");
          $JSCompiler_StaticMethods__cancelRepositionCallback$$(this);
          break a;
        }
      }
      $columns$$17_logger$$inline_3456$$.$isLoggable$($AdfLogger$$.FINE) && $columns$$17_logger$$inline_3456$$.fine("Grid layout size change, notifying ancestors: panelGridLayout\x3d" + $rootElement$$129$$.id + " oldW\x3d" + $givenWidth$$ + ", newW\x3d" + $rootElement$$129$$.clientWidth + ", oldH\x3d" + $givenHeight$$ + ", newH\x3d" + $rootElement$$129$$.clientHeight);
      $AdfPage$$.$PAGE$.$__queueDescendantResizeNotifySource$($component$$1760$$);
      $AdfPage$$.$PAGE$.$__doDescendantResizeNotify$();
    }
  } else {
    $JSCompiler_StaticMethods__cancelRepositionCallback$$(this);
  }
  return $caresAboutDescendantResizeNotifications$$1_wrappers$$;
};
$AdfDhtmlPanelGridLayoutPeer$$.prototype.$_stopRepositionCallback$ = function $$AdfDhtmlPanelGridLayoutPeer$$$$$_stopRepositionCallback$$() {
  this.$_repositionTimer$ = this.$_repositionCount$ = null;
};
function $JSCompiler_StaticMethods__cancelRepositionCallback$$($JSCompiler_StaticMethods__cancelRepositionCallback$self$$) {
  null != $JSCompiler_StaticMethods__cancelRepositionCallback$self$$.$_repositionTimer$ && $AdfPage$$.$PAGE$.$cancelTimer$($JSCompiler_StaticMethods__cancelRepositionCallback$self$$.$_repositionTimer$);
  $JSCompiler_StaticMethods__cancelRepositionCallback$self$$.$_repositionCount$ = null;
  $JSCompiler_StaticMethods__cancelRepositionCallback$self$$.$_repositionTimer$ = null;
}
function $JSCompiler_StaticMethods__getFirstEdge$$($lineSizes$$, $lineNumber$$2$$) {
  for (var $edge$$ = 0, $i$$484$$ = 0;$i$$484$$ < $lineNumber$$2$$ - 1;$i$$484$$++) {
    $edge$$ += $lineSizes$$[$i$$484$$];
  }
  return $edge$$;
}
function $JSCompiler_StaticMethods__getLastEdge$$($lineSizes$$1$$, $lineNumber$$3$$) {
  for (var $edge$$1$$ = 0, $i$$485$$ = $lineSizes$$1$$.length - 1;$i$$485$$ >= $lineNumber$$3$$;$i$$485$$--) {
    $edge$$1$$ += $lineSizes$$1$$[$i$$485$$];
  }
  return $edge$$1$$;
}
$AdfDhtmlPanelGridLayoutPeer$$.prototype.$_getAttribute$ = function $$AdfDhtmlPanelGridLayoutPeer$$$$$_getAttribute$$($agent$$505_value$$229$$, $element$$280$$, $name$$106$$, $defaultValue$$9$$) {
  $agent$$505_value$$229$$ = $agent$$505_value$$229$$.getAttribute($element$$280$$, $name$$106$$);
  return null == $agent$$505_value$$229$$ ? $defaultValue$$9$$ : $agent$$505_value$$229$$;
};
function $JSCompiler_StaticMethods__resolveSizes$$($lineSizes$$2$$, $lastLineNumber_resolveAutoSizes$$, $rootElement$$131$$, $autoSizesToResolveLength_childData$$1$$, $lineKey_remainingSize$$, $lineSpanKey$$, $clientSizeKey$$, $clientSize$$) {
  var $nonPercentTotal$$ = 0, $availableSize_i$$486$$, $agent$$506_lineAutoArray_size$$47$$, $data$$67$$, $lineIndex_wrapper$$25$$, $lineSizesLength$$1$$ = $lineSizes$$2$$.length;
  for ($availableSize_i$$486$$ = $lastLineNumber_resolveAutoSizes$$ - $lineSizesLength$$1$$;0 < $availableSize_i$$486$$;$availableSize_i$$486$$--) {
    $lineSizes$$2$$.push("auto");
  }
  $lastLineNumber_resolveAutoSizes$$ = !1;
  var $linePercentTotal$$ = 0, $lineSizesLength$$1$$ = $lineSizes$$2$$.length;
  for ($availableSize_i$$486$$ = 0;$availableSize_i$$486$$ < $lineSizesLength$$1$$;$availableSize_i$$486$$++) {
    $agent$$506_lineAutoArray_size$$47$$ = $lineSizes$$2$$[$availableSize_i$$486$$], "auto" == $agent$$506_lineAutoArray_size$$47$$ ? ($lastLineNumber_resolveAutoSizes$$ = !0, $agent$$506_lineAutoArray_size$$47$$ = ["auto"]) : -1 != $agent$$506_lineAutoArray_size$$47$$.indexOf("%") ? $linePercentTotal$$ += parseFloat($agent$$506_lineAutoArray_size$$47$$) : ($agent$$506_lineAutoArray_size$$47$$ = $AdfDomUtils$$.$getOffsetSizeFromCssLength$($rootElement$$131$$, $agent$$506_lineAutoArray_size$$47$$), 
    $nonPercentTotal$$ += $agent$$506_lineAutoArray_size$$47$$), $lineSizes$$2$$[$availableSize_i$$486$$] = $agent$$506_lineAutoArray_size$$47$$;
  }
  if ($lastLineNumber_resolveAutoSizes$$) {
    $agent$$506_lineAutoArray_size$$47$$ = $AdfAgent$$.$AGENT$;
    var $autoSize_autoSizesToResolve$$ = [], $firstLineIndex_lineSize$$, $lastLineIndex_lineAutoArrayLength$$, $autoSizeToResolve_lineAutoIndex$$, $childDataLength$$1$$ = $autoSizesToResolveLength_childData$$1$$.length;
    for ($availableSize_i$$486$$ = 0;$availableSize_i$$486$$ < $childDataLength$$1$$;$availableSize_i$$486$$++) {
      if ($data$$67$$ = $autoSizesToResolveLength_childData$$1$$[$availableSize_i$$486$$], $firstLineIndex_lineSize$$ = $data$$67$$[$lineKey_remainingSize$$] - 1, $lastLineIndex_lineAutoArrayLength$$ = $firstLineIndex_lineSize$$ + $data$$67$$[$lineSpanKey$$] - 1, $firstLineIndex_lineSize$$ != $lastLineIndex_lineAutoArrayLength$$) {
        $AdfLogger$$.$LOGGER$.$isLoggable$($AdfLogger$$.FINE) && $AdfLogger$$.$LOGGER$.fine("Skipped auto resolution for a multi-span child because firstLineIndex \x3d " + $firstLineIndex_lineSize$$ + " and lastLineIndex \x3d " + $lastLineIndex_lineAutoArrayLength$$);
      } else {
        $autoSizeToResolve_lineAutoIndex$$ = -1;
        for ($lineIndex_wrapper$$25$$ = $firstLineIndex_lineSize$$;$lineIndex_wrapper$$25$$ <= $lastLineIndex_lineAutoArrayLength$$;$lineIndex_wrapper$$25$$++) {
          if ("object" == typeof $lineSizes$$2$$[$lineIndex_wrapper$$25$$]) {
            $autoSizeToResolve_lineAutoIndex$$ = $lineIndex_wrapper$$25$$;
            break;
          }
        }
        -1 != $autoSizeToResolve_lineAutoIndex$$ && ($lineIndex_wrapper$$25$$ = $data$$67$$.wrapper, $AdfDomUtils$$.$addInlineStyle$($lineIndex_wrapper$$25$$, "top:auto;top:auto;bottom:auto;left:auto;right:auto;width:auto;height:auto;max-width:none;max-height:none", !0), $autoSize_autoSizesToResolve$$.push([$lineIndex_wrapper$$25$$, $firstLineIndex_lineSize$$, $lastLineIndex_lineAutoArrayLength$$, $autoSizeToResolve_lineAutoIndex$$]));
      }
    }
    $autoSizesToResolveLength_childData$$1$$ = $autoSize_autoSizesToResolve$$.length;
    for ($availableSize_i$$486$$ = 0;$availableSize_i$$486$$ < $autoSizesToResolveLength_childData$$1$$;$availableSize_i$$486$$++) {
      for ($autoSizeToResolve_lineAutoIndex$$ = $autoSize_autoSizesToResolve$$[$availableSize_i$$486$$], $lineIndex_wrapper$$25$$ = $autoSizeToResolve_lineAutoIndex$$[0], $firstLineIndex_lineSize$$ = $autoSizeToResolve_lineAutoIndex$$[1], $lastLineIndex_lineAutoArrayLength$$ = $autoSizeToResolve_lineAutoIndex$$[2], $autoSizeToResolve_lineAutoIndex$$ = $autoSizeToResolve_lineAutoIndex$$[3], $lineKey_remainingSize$$ = 0, "clientWidth" == $clientSizeKey$$ ? ($lineKey_remainingSize$$ = $lineIndex_wrapper$$25$$.scrollWidth, 
      $agent$$506_lineAutoArray_size$$47$$.$getPlatform$() == $AdfAgent$$.$GECKO_PLATFORM$ && 1.8 < $agent$$506_lineAutoArray_size$$47$$.$getVersion$() && ++$lineKey_remainingSize$$) : $lineKey_remainingSize$$ = $lineIndex_wrapper$$25$$.scrollHeight, $lineIndex_wrapper$$25$$ = $firstLineIndex_lineSize$$;$lineIndex_wrapper$$25$$ <= $lastLineIndex_lineAutoArrayLength$$;$lineIndex_wrapper$$25$$++) {
        if ($autoSizeToResolve_lineAutoIndex$$ == $lineIndex_wrapper$$25$$) {
          $lineSizes$$2$$[$lineIndex_wrapper$$25$$].push($lineKey_remainingSize$$);
          break;
        }
        $firstLineIndex_lineSize$$ = $lineSizes$$2$$[$lineIndex_wrapper$$25$$];
        if ("number" == typeof $firstLineIndex_lineSize$$ && ($lineKey_remainingSize$$ = Math.max(0, $lineKey_remainingSize$$ - $firstLineIndex_lineSize$$), 0 == $lineKey_remainingSize$$)) {
          break;
        }
      }
    }
    for ($lineIndex_wrapper$$25$$ = 0;$lineIndex_wrapper$$25$$ < $lineSizesLength$$1$$;$lineIndex_wrapper$$25$$++) {
      if ($agent$$506_lineAutoArray_size$$47$$ = $lineSizes$$2$$[$lineIndex_wrapper$$25$$], $autoSize_autoSizesToResolve$$ = 0, "object" == typeof $agent$$506_lineAutoArray_size$$47$$) {
        $lastLineIndex_lineAutoArrayLength$$ = $agent$$506_lineAutoArray_size$$47$$.length;
        for ($availableSize_i$$486$$ = 1;$availableSize_i$$486$$ < $lastLineIndex_lineAutoArrayLength$$;$availableSize_i$$486$$++) {
          $autoSize_autoSizesToResolve$$ = Math.max($autoSize_autoSizesToResolve$$, $agent$$506_lineAutoArray_size$$47$$[$availableSize_i$$486$$]);
        }
        $lineSizes$$2$$[$lineIndex_wrapper$$25$$] = $autoSize_autoSizesToResolve$$;
        $nonPercentTotal$$ += $autoSize_autoSizesToResolve$$;
      }
    }
  }
  $availableSize_i$$486$$ = 0;
  if (0 < $linePercentTotal$$) {
    $availableSize_i$$486$$ = Math.max(0, null == $clientSize$$ ? $rootElement$$131$$[$clientSizeKey$$] : $clientSize$$);
    $lineSizesLength$$1$$ = $lineSizes$$2$$.length;
    for ($lineIndex_wrapper$$25$$ = 0;$lineIndex_wrapper$$25$$ < $lineSizesLength$$1$$ && 0 < $availableSize_i$$486$$;$lineIndex_wrapper$$25$$++) {
      $agent$$506_lineAutoArray_size$$47$$ = $lineSizes$$2$$[$lineIndex_wrapper$$25$$], "number" == typeof $agent$$506_lineAutoArray_size$$47$$ && ($availableSize_i$$486$$ = Math.max(0, $availableSize_i$$486$$ - $agent$$506_lineAutoArray_size$$47$$));
    }
    for ($lineIndex_wrapper$$25$$ = 0;$lineIndex_wrapper$$25$$ < $lineSizesLength$$1$$;$lineIndex_wrapper$$25$$++) {
      $agent$$506_lineAutoArray_size$$47$$ = $lineSizes$$2$$[$lineIndex_wrapper$$25$$], "string" == typeof $agent$$506_lineAutoArray_size$$47$$ && ($lineSizes$$2$$[$lineIndex_wrapper$$25$$] = Math.floor($availableSize_i$$486$$ * parseFloat($agent$$506_lineAutoArray_size$$47$$) / $linePercentTotal$$));
    }
  }
  return [$nonPercentTotal$$, $lastLineNumber_resolveAutoSizes$$];
}
;