var $AdfDhtmlRegionPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfDhtmlPanelBoxPeer$$, "AdfDhtmlRegionPeer", !1);
$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$$12$$) {
  return this.$outerThis$.$GetContentDomElement$() && InnerRegionShowDetailPeer.$superclass$.$HandleClientSideToggle$.call(this, $disclosed$$12$$) ? (this.$outerThis$.$__handleClientSideDisclosure$($disclosed$$12$$), !0) : !1;
};
$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$$), !0) : !1;
};
InnerRegionMaximizePeer.prototype.$ComponentMaximizedChanged$ = function $InnerRegionMaximizePeer$$$ComponentMaximizedChanged$$($component$$1912$$, $domElement$$420_handled$$3$$, $newValue$$126$$, $oldValue$$85$$) {
  $domElement$$420_handled$$3$$ = InnerRegionMaximizePeer.$superclass$.$ComponentMaximizedChanged$.call(this, $component$$1912$$, $domElement$$420_handled$$3$$, $newValue$$126$$, $oldValue$$85$$);
  $newValue$$126$$ && $component$$1912$$.setDisclosed(!0);
  return $domElement$$420_handled$$3$$;
};
InnerRegionMaximizePeer.prototype.$EventPropagatesToServer$ = function $InnerRegionMaximizePeer$$$EventPropagatesToServer$$() {
  return !this.$outerThis$.$GetContentDomElement$();
};
$AdfDhtmlRegionPeer$$.prototype.$CreateDisclosurePeer$ = function $$AdfDhtmlRegionPeer$$$$$CreateDisclosurePeer$$($component$$1913$$) {
  return new $AdfDhtmlRegionPeer$$.$_INNER_SD_PEER$($component$$1913$$, this);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRegionPeer.prototype.CreateDisclosurePeer", {$CreateDisclosurePeer$:$AdfDhtmlRegionPeer$$.prototype.$CreateDisclosurePeer$});
$AdfDhtmlRegionPeer$$.prototype.$CreateMaximizePeer$ = function $$AdfDhtmlRegionPeer$$$$$CreateMaximizePeer$$($component$$1914$$) {
  return new $AdfDhtmlRegionPeer$$.$_INNER_MAXIMIZE_PEER$($component$$1914$$, this);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRegionPeer.prototype.CreateMaximizePeer", {$CreateMaximizePeer$:$AdfDhtmlRegionPeer$$.prototype.$CreateMaximizePeer$});
$AdfDhtmlRegionPeer$$.prototype.$InitDomElement$ = function $$AdfDhtmlRegionPeer$$$$$InitDomElement$$($component$$1915$$, $domElement$$421$$) {
  $AdfDhtmlRegionPeer$$.$superclass$.$InitDomElement$.call(this, $component$$1915$$, $domElement$$421$$);
  if ("DIV" == $domElement$$421$$.tagName) {
    var $contentElement$$18_onlyChild$$inline_3768$$ = this.$GetContentDomElement$($domElement$$421$$), $contentElement$$18_onlyChild$$inline_3768$$ = $AdfDhtmlRegionPeer$$.$_getOnlyChildElement$($contentElement$$18_onlyChild$$inline_3768$$);
    null != $contentElement$$18_onlyChild$$inline_3768$$ && $JSCompiler_StaticMethods__isRegionStretched$$($domElement$$421$$) && $AdfAgent$$.$getAgent$().$prepareStretchedChild$($contentElement$$18_onlyChild$$inline_3768$$, "0");
  }
  this.$_setUncommittedDataWarning$($component$$1915$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRegionPeer.prototype.InitDomElement", {$InitDomElement$:$AdfDhtmlRegionPeer$$.prototype.$InitDomElement$});
$AdfDhtmlRegionPeer$$.prototype.$componentRemoved$ = function $$AdfDhtmlRegionPeer$$$$$componentRemoved$$($component$$1916$$) {
  $AdfPage$$.$PAGE$.$__unregisterRegionClientUncommittedDataTracking$($component$$1916$$.$getClientId$());
  $AdfDhtmlRegionPeer$$.$superclass$.$componentRemoved$.call(this, $component$$1916$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRegionPeer.prototype.componentRemoved", {$componentRemoved$:$AdfDhtmlRegionPeer$$.prototype.$componentRemoved$});
$AdfDhtmlRegionPeer$$.prototype.$InitDirtyTracking$ = function $$AdfDhtmlRegionPeer$$$$$InitDirtyTracking$$() {
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRegionPeer.prototype.InitDirtyTracking", {$InitDirtyTracking$:$AdfDhtmlRegionPeer$$.prototype.$InitDirtyTracking$});
$AdfDhtmlRegionPeer$$.prototype.$getAnimationDurationKey$ = function $$AdfDhtmlRegionPeer$$$$$getAnimationDurationKey$$() {
  return "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$$19$$ = this.$GetContentDomElement$();
    $AdfDhtmlRegionPeer$$.$_getOnlyChildElement$($contentElement$$19$$) == $replacedDomNode$$1$$ && null != $replacedDomNode$$1$$ && $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$$149$$) {
  var $contentDom$$38$$ = $AdfDhtmlRegionPeer$$.$superclass$.$GetContentDomElement$.call(this, $rootElement$$149$$);
  null == $contentDom$$38$$ && (null == $rootElement$$149$$ && ($rootElement$$149$$ = this.$getDomElement$()), $contentDom$$38$$ = $rootElement$$149$$);
  return $contentDom$$38$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRegionPeer.prototype.GetContentDomElement", {$GetContentDomElement$:$AdfDhtmlRegionPeer$$.prototype.$GetContentDomElement$});
$AdfDhtmlRegionPeer$$.prototype.$TruncateClientId$ = function $$AdfDhtmlRegionPeer$$$$$TruncateClientId$$($component$$1917_iteratorIndex$$1_regionIdClientId$$, $descendantComponent$$4_ids$$14_iteratorId$$1$$, $childClientId$$14$$, $skipArray$$5$$) {
  $descendantComponent$$4_ids$$14_iteratorId$$1$$ = $childClientId$$14$$.split(":");
  $component$$1917_iteratorIndex$$1_regionIdClientId$$ = $component$$1917_iteratorIndex$$1_regionIdClientId$$.$getClientId$();
  $component$$1917_iteratorIndex$$1_regionIdClientId$$ = $AdfStrings$$.count($component$$1917_iteratorIndex$$1_regionIdClientId$$, ":") + 1;
  ($descendantComponent$$4_ids$$14_iteratorId$$1$$ = $descendantComponent$$4_ids$$14_iteratorId$$1$$[$component$$1917_iteratorIndex$$1_regionIdClientId$$]) && (isNaN($descendantComponent$$4_ids$$14_iteratorId$$1$$) || $skipArray$$5$$.push($component$$1917_iteratorIndex$$1_regionIdClientId$$));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRegionPeer.prototype.TruncateClientId", {$TruncateClientId$:$AdfDhtmlRegionPeer$$.prototype.$TruncateClientId$});
$AdfDhtmlRegionPeer$$.prototype.$_setUncommittedDataWarning$ = function $$AdfDhtmlRegionPeer$$$$$_setUncommittedDataWarning$$($component$$1918$$) {
  var $opt$$1$$ = $component$$1918$$.getUncommittedDataWarning();
  $opt$$1$$ && "on" == $opt$$1$$.toLowerCase() && $AdfPage$$.$PAGE$.$__registerRegionClientUncommittedDataTracking$($component$$1918$$.$getClientId$());
};
$AdfDhtmlRegionPeer$$.prototype.$GetAnimationDuration$ = function $$AdfDhtmlRegionPeer$$$$$GetAnimationDuration$$() {
  var $animationDuration$$5$$ = parseInt($AdfPage$$.$PAGE$.$getLookAndFeel$().$getSkinProperty$(this.$getAnimationDurationKey$()));
  isNaN($animationDuration$$5$$) && ($animationDuration$$5$$ = 0);
  return $animationDuration$$5$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRegionPeer.prototype.GetAnimationDuration", {$GetAnimationDuration$:$AdfDhtmlRegionPeer$$.prototype.$GetAnimationDuration$});
$AdfDhtmlRegionPeer$$.$_getOnlyChildElement$ = function $$AdfDhtmlRegionPeer$$$$_getOnlyChildElement$$($childNodes$$28_parentElement$$11$$) {
  var $childElement$$17$$ = null;
  if ($childNodes$$28_parentElement$$11$$ = $childNodes$$28_parentElement$$11$$.childNodes) {
    for (var $length$$71$$ = $childNodes$$28_parentElement$$11$$.length, $i$$514$$ = 0;$i$$514$$ < $length$$71$$;$i$$514$$++) {
      var $childNode$$15_wrapperChild$$ = $childNodes$$28_parentElement$$11$$[$i$$514$$], $nodeType$$6$$ = $childNode$$15_wrapperChild$$.nodeType;
      if (8 != $nodeType$$6$$) {
        if (3 == $nodeType$$6$$) {
          if (0 < $childNode$$15_wrapperChild$$.data.replace(/\s*/, "").length) {
            return null;
          }
        } else {
          if (1 == $nodeType$$6$$) {
            if (null == $childNode$$15_wrapperChild$$.style || "none" != $childNode$$15_wrapperChild$$.style.display) {
              if (null != $childNode$$15_wrapperChild$$.id && "" != $childNode$$15_wrapperChild$$.id || null != $childNode$$15_wrapperChild$$.className && "" != $childNode$$15_wrapperChild$$.className) {
                if ($childElement$$17$$) {
                  return null;
                }
                $childElement$$17$$ = $childNode$$15_wrapperChild$$;
              } else {
                if (0 != $AdfDomUtils$$.$getNonWhitespaceChildCount$($childNode$$15_wrapperChild$$)) {
                  $childNode$$15_wrapperChild$$ = $AdfDomUtils$$.$getOnlyChildElement$($childNode$$15_wrapperChild$$);
                  if (null == $childNode$$15_wrapperChild$$ || $childElement$$17$$) {
                    return null;
                  }
                  $childElement$$17$$ = $childNode$$15_wrapperChild$$;
                }
              }
            }
          } else {
            return null;
          }
        }
      }
    }
  }
  return $childElement$$17$$;
};
function $JSCompiler_StaticMethods__isRegionStretched$$($regionElement$$1_regionStyle$$) {
  var $stretched$$1$$ = !1;
  $regionElement$$1_regionStyle$$ = $regionElement$$1_regionStyle$$.style;
  if (null != $regionElement$$1_regionStyle$$ && "absolute" == $regionElement$$1_regionStyle$$.position) {
    var $bottom$$6_width$$36$$ = $regionElement$$1_regionStyle$$.width;
    if ($bottom$$6_width$$36$$ == $regionElement$$1_regionStyle$$.height) {
      if ("100%" == $bottom$$6_width$$36$$) {
        $stretched$$1$$ = !0;
      } else {
        if ("auto" == $bottom$$6_width$$36$$) {
          var $bottom$$6_width$$36$$ = $regionElement$$1_regionStyle$$.bottom, $left$$21$$ = $regionElement$$1_regionStyle$$.left, $right$$6$$ = $regionElement$$1_regionStyle$$.right;
          "auto" != $regionElement$$1_regionStyle$$.top && "auto" != $bottom$$6_width$$36$$ && "auto" != $left$$21$$ && "auto" != $right$$6$$ && ($stretched$$1$$ = !0);
        }
      }
    }
  }
  return $stretched$$1$$;
}
$AdfDhtmlRegionPeer$$.prototype.$ConvertClientIdToLocator$ = function $$AdfDhtmlRegionPeer$$$$$ConvertClientIdToLocator$$($clientId$$415_clientIdDepth$$6_component$$1919$$, $childComponent$$22$$, $descComponentClientId$$7$$, $replaceArray$$8$$) {
  $clientId$$415_clientIdDepth$$6_component$$1919$$ = $clientId$$415_clientIdDepth$$6_component$$1919$$.$getClientId$();
  $clientId$$415_clientIdDepth$$6_component$$1919$$ = $AdfStrings$$.count($clientId$$415_clientIdDepth$$6_component$$1919$$, ":");
  $replaceArray$$8$$.push([$clientId$$415_clientIdDepth$$6_component$$1919$$ + 1, null]);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlRegionPeer.prototype.ConvertClientIdToLocator", {$ConvertClientIdToLocator$:$AdfDhtmlRegionPeer$$.prototype.$ConvertClientIdToLocator$});
