var $AdfDhtmlRegionPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfDhtmlPanelBoxPeer$$, "AdfDhtmlRegionPeer", $JSCompiler_alias_FALSE$$);
$goog$exportSymbol$$("AdfDhtmlRegionPeer", $AdfDhtmlRegionPeer$$);
$AdfDhtmlRegionPeer$$.$_INNER_SD_PEER$ = $AdfRichUIPeer$$.$createInnerPeerClassWithSubId$($AdfDhtmlShowDisclosurePeer$$, "InnerRegionShowDetailPeer", $AdfDhtmlPanelBoxPeer$$.$DISCLOSURE_SUB_ID$);
InnerRegionShowDetailPeer.$InitSubclass$ = function $InnerRegionShowDetailPeer$$InitSubclass$$() {
  $AdfDhtmlTogglePeer$$.$Config$(this, {$toggledStyleClass$:"af|region::disclosed-icon-style", $untoggledStyleClass$:"af|region::undisclosed-icon-style"})
};
InnerRegionShowDetailPeer.prototype.$HandleClientSideToggle$ = function $InnerRegionShowDetailPeer$$$HandleClientSideToggle$$($disclosed$$11$$) {
  return this.$outerThis$.$GetContentDomElement$() && InnerRegionShowDetailPeer.$superclass$.$HandleClientSideToggle$.call(this, $disclosed$$11$$) ? (this.$outerThis$.$__handleClientSideDisclosure$($disclosed$$11$$), $JSCompiler_alias_TRUE$$) : $JSCompiler_alias_FALSE$$
};
$AdfDhtmlPanelBoxPeer$$.$MAXIMIZE_SUB_ID$ = "_afrMax";
$goog$exportSymbol$$("AdfDhtmlPanelBoxPeer.MAXIMIZE_SUB_ID", $AdfDhtmlPanelBoxPeer$$.$MAXIMIZE_SUB_ID$);
$AdfDhtmlRegionPeer$$.$_INNER_MAXIMIZE_PEER$ = $AdfRichUIPeer$$.$createInnerPeerClassWithSubId$($AdfDhtmlMaximizePeer$$, "InnerRegionMaximizePeer", $AdfDhtmlPanelBoxPeer$$.$MAXIMIZE_SUB_ID$);
InnerRegionMaximizePeer.$InitSubclass$ = function $InnerRegionMaximizePeer$$InitSubclass$$() {
  $AdfDhtmlTogglePeer$$.$Config$(this, {$toggledStyleClass$:"af|region::maximized-icon-style", $untoggledStyleClass$:"af|region::unmaximized-icon-style"})
};
InnerRegionMaximizePeer.prototype.$HandleClientSideToggle$ = function $InnerRegionMaximizePeer$$$HandleClientSideToggle$$($maximized$$4$$) {
  var $outerThis$$2$$ = this.$outerThis$, $contentDom$$37$$ = $outerThis$$2$$.$GetContentDomElement$();
  return $contentDom$$37$$ && InnerRegionMaximizePeer.$superclass$.$HandleClientSideToggle$.call(this, $maximized$$4$$) ? ($outerThis$$2$$.$__handleClientSideMaximize$($outerThis$$2$$.$getDomElement$(), $contentDom$$37$$, $maximized$$4$$), $JSCompiler_alias_TRUE$$) : $JSCompiler_alias_FALSE$$
};
InnerRegionMaximizePeer.prototype.$ComponentMaximizedChanged$ = function $InnerRegionMaximizePeer$$$ComponentMaximizedChanged$$($component$$1416$$, $domElement$$365_handled$$3$$, $newValue$$111$$, $oldValue$$82$$) {
  $domElement$$365_handled$$3$$ = InnerRegionMaximizePeer.$superclass$.$ComponentMaximizedChanged$.call(this, $component$$1416$$, $domElement$$365_handled$$3$$, $newValue$$111$$, $oldValue$$82$$);
  $newValue$$111$$ && $component$$1416$$.setDisclosed($JSCompiler_alias_TRUE$$);
  return $domElement$$365_handled$$3$$
};
InnerRegionMaximizePeer.prototype.$EventPropagatesToServer$ = function $InnerRegionMaximizePeer$$$EventPropagatesToServer$$() {
  return!this.$outerThis$.$GetContentDomElement$()
};
$AdfDhtmlRegionPeer$$.prototype.$CreateDisclosurePeer$ = function $$AdfDhtmlRegionPeer$$$$$CreateDisclosurePeer$$($component$$1417$$) {
  return new $AdfDhtmlRegionPeer$$.$_INNER_SD_PEER$($component$$1417$$, this)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRegionPeer.prototype.CreateDisclosurePeer", {$CreateDisclosurePeer$:$AdfDhtmlRegionPeer$$.prototype.$CreateDisclosurePeer$});
$AdfDhtmlRegionPeer$$.prototype.$CreateMaximizePeer$ = function $$AdfDhtmlRegionPeer$$$$$CreateMaximizePeer$$($component$$1418$$) {
  return new $AdfDhtmlRegionPeer$$.$_INNER_MAXIMIZE_PEER$($component$$1418$$, this)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRegionPeer.prototype.CreateMaximizePeer", {$CreateMaximizePeer$:$AdfDhtmlRegionPeer$$.prototype.$CreateMaximizePeer$});
$AdfDhtmlRegionPeer$$.prototype.$InitDomElement$ = function $$AdfDhtmlRegionPeer$$$$$InitDomElement$$($component$$1419$$, $domElement$$366$$) {
  $AdfDhtmlRegionPeer$$.$superclass$.$InitDomElement$.call(this, $component$$1419$$, $domElement$$366$$);
  if("DIV" == $domElement$$366$$.tagName) {
    var $contentElement$$19_onlyChild$$inline_3329$$ = this.$GetContentDomElement$($domElement$$366$$), $contentElement$$19_onlyChild$$inline_3329$$ = $AdfDhtmlRegionPeer$$.$_getOnlyChildElement$($contentElement$$19_onlyChild$$inline_3329$$);
    $contentElement$$19_onlyChild$$inline_3329$$ != $JSCompiler_alias_NULL$$ && $JSCompiler_StaticMethods__isRegionStretched$$($domElement$$366$$) && $AdfAgent$$.$getAgent$().$prepareStretchedChild$($contentElement$$19_onlyChild$$inline_3329$$, "0")
  }
  this.$_setUncommittedDataWarning$($component$$1419$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRegionPeer.prototype.InitDomElement", {$InitDomElement$:$AdfDhtmlRegionPeer$$.prototype.$InitDomElement$});
$AdfDhtmlRegionPeer$$.prototype.$componentRemoved$ = function $$AdfDhtmlRegionPeer$$$$$componentRemoved$$($component$$1420$$) {
  $AdfPage$$.$PAGE$.$__unregisterRegionClientUncommittedDataTracking$($component$$1420$$.$getClientId$());
  $AdfDhtmlRegionPeer$$.$superclass$.$componentRemoved$.call(this, $component$$1420$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRegionPeer.prototype.componentRemoved", {$componentRemoved$:$AdfDhtmlRegionPeer$$.prototype.$componentRemoved$});
$AdfDhtmlRegionPeer$$.prototype.$InitDirtyTracking$ = $JSCompiler_emptyFn$$();
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRegionPeer.prototype.InitDirtyTracking", {$InitDirtyTracking$:$AdfDhtmlRegionPeer$$.prototype.$InitDirtyTracking$});
$AdfDhtmlRegionPeer$$.prototype.$getAnimationDurationKey$ = $JSCompiler_returnArg$$("af|region-tr-animation-duration");
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRegionPeer.prototype.getAnimationDurationKey", {$getAnimationDurationKey$:$AdfDhtmlRegionPeer$$.prototype.$getAnimationDurationKey$});
$AdfDhtmlRegionPeer$$.prototype.$DomReplaceNotify$ = function $$AdfDhtmlRegionPeer$$$$$DomReplaceNotify$$($replacedDomNode$$1$$) {
  var $regionElement$$ = this.$getDomElement$();
  if("DIV" == $regionElement$$.tagName) {
    var $contentElement$$20$$ = this.$GetContentDomElement$();
    $AdfDhtmlRegionPeer$$.$_getOnlyChildElement$($contentElement$$20$$) == $replacedDomNode$$1$$ && $replacedDomNode$$1$$ != $JSCompiler_alias_NULL$$ && $JSCompiler_StaticMethods__isRegionStretched$$($regionElement$$) && $AdfAgent$$.$getAgent$().$prepareStretchedChild$($replacedDomNode$$1$$, "0")
  }
  return $replacedDomNode$$1$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRegionPeer.prototype.DomReplaceNotify", {$DomReplaceNotify$:$AdfDhtmlRegionPeer$$.prototype.$DomReplaceNotify$});
$AdfDhtmlRegionPeer$$.prototype.$GetContentDomElement$ = function $$AdfDhtmlRegionPeer$$$$$GetContentDomElement$$($rootElement$$126$$) {
  var $contentDom$$38$$ = $AdfDhtmlRegionPeer$$.$superclass$.$GetContentDomElement$.call(this, $rootElement$$126$$);
  $contentDom$$38$$ == $JSCompiler_alias_NULL$$ && ($rootElement$$126$$ == $JSCompiler_alias_NULL$$ && ($rootElement$$126$$ = this.$getDomElement$()), $contentDom$$38$$ = $rootElement$$126$$);
  return $contentDom$$38$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRegionPeer.prototype.GetContentDomElement", {$GetContentDomElement$:$AdfDhtmlRegionPeer$$.prototype.$GetContentDomElement$});
$AdfDhtmlRegionPeer$$.prototype.$TruncateClientId$ = function $$AdfDhtmlRegionPeer$$$$$TruncateClientId$$($component$$1421_iteratorIndex$$1_regionIdClientId$$, $descendantComponent$$4_ids$$13_iteratorId$$1$$, $childClientId$$14$$, $skipArray$$5$$) {
  $descendantComponent$$4_ids$$13_iteratorId$$1$$ = $childClientId$$14$$.split(":");
  $component$$1421_iteratorIndex$$1_regionIdClientId$$ = $component$$1421_iteratorIndex$$1_regionIdClientId$$.$getClientId$();
  $component$$1421_iteratorIndex$$1_regionIdClientId$$ = $AdfStrings$$.count($component$$1421_iteratorIndex$$1_regionIdClientId$$, ":") + 1;
  ($descendantComponent$$4_ids$$13_iteratorId$$1$$ = $descendantComponent$$4_ids$$13_iteratorId$$1$$[$component$$1421_iteratorIndex$$1_regionIdClientId$$]) && (isNaN($descendantComponent$$4_ids$$13_iteratorId$$1$$) || $skipArray$$5$$.push($component$$1421_iteratorIndex$$1_regionIdClientId$$))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRegionPeer.prototype.TruncateClientId", {$TruncateClientId$:$AdfDhtmlRegionPeer$$.prototype.$TruncateClientId$});
$AdfDhtmlRegionPeer$$.prototype.$_setUncommittedDataWarning$ = function $$AdfDhtmlRegionPeer$$$$$_setUncommittedDataWarning$$($component$$1422$$) {
  var $opt$$1$$ = $component$$1422$$.getUncommittedDataWarning();
  $opt$$1$$ && "on" == $opt$$1$$.toLowerCase() && $AdfPage$$.$PAGE$.$__registerRegionClientUncommittedDataTracking$($component$$1422$$.$getClientId$())
};
$AdfDhtmlRegionPeer$$.prototype.$GetAnimationDuration$ = function $$AdfDhtmlRegionPeer$$$$$GetAnimationDuration$$() {
  var $animationDuration$$6$$ = parseInt($AdfPage$$.$PAGE$.$getLookAndFeel$().$getSkinProperty$(this.$getAnimationDurationKey$()));
  isNaN($animationDuration$$6$$) && ($animationDuration$$6$$ = 0);
  return $animationDuration$$6$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRegionPeer.prototype.GetAnimationDuration", {$GetAnimationDuration$:$AdfDhtmlRegionPeer$$.prototype.$GetAnimationDuration$});
$AdfDhtmlRegionPeer$$.$_getOnlyChildElement$ = function $$AdfDhtmlRegionPeer$$$$_getOnlyChildElement$$($childNodes$$27_parentElement$$12$$) {
  var $childElement$$16$$ = $JSCompiler_alias_NULL$$;
  if($childNodes$$27_parentElement$$12$$ = $childNodes$$27_parentElement$$12$$.childNodes) {
    for(var $length$$46$$ = $childNodes$$27_parentElement$$12$$.length, $i$$404$$ = 0;$i$$404$$ < $length$$46$$;$i$$404$$++) {
      var $childNode$$14_wrapperChild$$ = $childNodes$$27_parentElement$$12$$[$i$$404$$], $nodeType$$6$$ = $childNode$$14_wrapperChild$$.nodeType;
      if(8 != $nodeType$$6$$) {
        if(3 == $nodeType$$6$$) {
          if(0 < $childNode$$14_wrapperChild$$.data.replace(/\s*/, "").length) {
            return $JSCompiler_alias_NULL$$
          }
        }else {
          if(1 == $nodeType$$6$$) {
            if($childNode$$14_wrapperChild$$.style == $JSCompiler_alias_NULL$$ || "none" != $childNode$$14_wrapperChild$$.style.display) {
              if(($childNode$$14_wrapperChild$$.id == $JSCompiler_alias_NULL$$ || "" == $childNode$$14_wrapperChild$$.id) && ($childNode$$14_wrapperChild$$.className == $JSCompiler_alias_NULL$$ || "" == $childNode$$14_wrapperChild$$.className)) {
                if(0 != $AdfDomUtils$$.$getNonWhitespaceChildCount$($childNode$$14_wrapperChild$$)) {
                  $childNode$$14_wrapperChild$$ = $AdfDomUtils$$.$getOnlyChildElement$($childNode$$14_wrapperChild$$);
                  if($childNode$$14_wrapperChild$$ == $JSCompiler_alias_NULL$$ || $childElement$$16$$) {
                    return $JSCompiler_alias_NULL$$
                  }
                  $childElement$$16$$ = $childNode$$14_wrapperChild$$
                }
              }else {
                if($childElement$$16$$) {
                  return $JSCompiler_alias_NULL$$
                }
                $childElement$$16$$ = $childNode$$14_wrapperChild$$
              }
            }
          }else {
            return $JSCompiler_alias_NULL$$
          }
        }
      }
    }
  }
  return $childElement$$16$$
};
function $JSCompiler_StaticMethods__isRegionStretched$$($regionElement$$1_regionStyle$$) {
  var $stretched$$1$$ = $JSCompiler_alias_FALSE$$;
  $regionElement$$1_regionStyle$$ = $regionElement$$1_regionStyle$$.style;
  if($regionElement$$1_regionStyle$$ != $JSCompiler_alias_NULL$$ && "absolute" == $regionElement$$1_regionStyle$$.position) {
    var $bottom$$6_width$$35$$ = $regionElement$$1_regionStyle$$.width;
    if($bottom$$6_width$$35$$ == $regionElement$$1_regionStyle$$.height) {
      if("100%" == $bottom$$6_width$$35$$) {
        $stretched$$1$$ = $JSCompiler_alias_TRUE$$
      }else {
        if("auto" == $bottom$$6_width$$35$$) {
          var $bottom$$6_width$$35$$ = $regionElement$$1_regionStyle$$.bottom, $left$$18$$ = $regionElement$$1_regionStyle$$.left, $right$$6$$ = $regionElement$$1_regionStyle$$.right;
          "auto" != $regionElement$$1_regionStyle$$.top && ("auto" != $bottom$$6_width$$35$$ && "auto" != $left$$18$$ && "auto" != $right$$6$$) && ($stretched$$1$$ = $JSCompiler_alias_TRUE$$)
        }
      }
    }
  }
  return $stretched$$1$$
}
$AdfDhtmlRegionPeer$$.prototype.$ConvertClientIdToLocator$ = function $$AdfDhtmlRegionPeer$$$$$ConvertClientIdToLocator$$($clientId$$358_clientIdDepth$$6_component$$1423$$, $childComponent$$19$$, $descComponentClientId$$7$$, $replaceArray$$8$$) {
  $clientId$$358_clientIdDepth$$6_component$$1423$$ = $clientId$$358_clientIdDepth$$6_component$$1423$$.$getClientId$();
  $clientId$$358_clientIdDepth$$6_component$$1423$$ = $AdfStrings$$.count($clientId$$358_clientIdDepth$$6_component$$1423$$, ":");
  $replaceArray$$8$$.push([$clientId$$358_clientIdDepth$$6_component$$1423$$ + 1, $JSCompiler_alias_NULL$$])
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRegionPeer.prototype.ConvertClientIdToLocator", {$ConvertClientIdToLocator$:$AdfDhtmlRegionPeer$$.prototype.$ConvertClientIdToLocator$});
