var $AdfDhtmlDecorativeBoxPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfRichUIPeer$$, "AdfDhtmlDecorativeBoxPeer", !1);
$goog$exportSymbol$$("AdfDhtmlDecorativeBoxPeer", $AdfDhtmlDecorativeBoxPeer$$);
$AdfDhtmlDecorativeBoxPeer$$.prototype.$needsChildVisibilityChanges$ = function $$AdfDhtmlDecorativeBoxPeer$$$$$needsChildVisibilityChanges$$() {
  return !0;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDecorativeBoxPeer.prototype.needsChildVisibilityChanges", {$needsChildVisibilityChanges$:$AdfDhtmlDecorativeBoxPeer$$.prototype.$needsChildVisibilityChanges$});
$AdfDhtmlDecorativeBoxPeer$$.prototype.$needsResizeNotify$ = function $$AdfDhtmlDecorativeBoxPeer$$$$$needsResizeNotify$$() {
  return !0;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDecorativeBoxPeer.prototype.needsResizeNotify", {$needsResizeNotify$:$AdfDhtmlDecorativeBoxPeer$$.prototype.$needsResizeNotify$});
$AdfDhtmlDecorativeBoxPeer$$.prototype.$BindToComponent$ = function $$AdfDhtmlDecorativeBoxPeer$$$$$BindToComponent$$($component$$1054$$, $domElement$$183$$) {
  $AdfDhtmlDecorativeBoxPeer$$.$superclass$.$BindToComponent$.call(this, $component$$1054$$, $domElement$$183$$);
  var $clientId$$197$$ = $component$$1054$$.$getClientId$(), $agent$$279$$ = $AdfAgent$$.$AGENT$;
  this.$_topLeftElement$ = $agent$$279$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($clientId$$197$$, "tl"));
  this.$_topElement$ = $agent$$279$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($clientId$$197$$, "t"));
  this.$_topInnerElement$ = $agent$$279$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($clientId$$197$$, "t-i"));
  this.$_topRightElement$ = $agent$$279$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($clientId$$197$$, "tr"));
  this.$_leftElement$ = $agent$$279$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($clientId$$197$$, "l"));
  this.$_centerElement$ = $agent$$279$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($clientId$$197$$, "c"));
  this.$_rightElement$ = $agent$$279$$.getElementById($AdfRichUIPeer$$.$CreateSubId$($clientId$$197$$, "r"));
  if (this.$_isFlowLayout$ = $AdfDomUtils$$.$containsCSSClassName$($domElement$$183$$, "p_AFFlow")) {
    this.$_topWrapperElement$ = $AdfDomUtils$$.$getFirstChildElement$($domElement$$183$$);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDecorativeBoxPeer.prototype.BindToComponent", {$BindToComponent$:$AdfDhtmlDecorativeBoxPeer$$.prototype.$BindToComponent$});
$AdfDhtmlDecorativeBoxPeer$$.prototype.$UnbindFromComponent$ = function $$AdfDhtmlDecorativeBoxPeer$$$$$UnbindFromComponent$$() {
  $AdfDhtmlDecorativeBoxPeer$$.$superclass$.$UnbindFromComponent$.call(this);
  this.$_rightElement$ = this.$_centerElement$ = this.$_leftElement$ = this.$_topRightElement$ = this.$_topInnerElement$ = this.$_topElement$ = this.$_topLeftElement$ = null;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDecorativeBoxPeer.prototype.UnbindFromComponent", {$UnbindFromComponent$:$AdfDhtmlDecorativeBoxPeer$$.prototype.$UnbindFromComponent$});
$AdfDhtmlDecorativeBoxPeer$$.prototype.$ResizeNotify$ = function $$AdfDhtmlDecorativeBoxPeer$$$$$ResizeNotify$$() {
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDecorativeBoxPeer.prototype.ResizeNotify", {$ResizeNotify$:$AdfDhtmlDecorativeBoxPeer$$.prototype.$ResizeNotify$});
$AdfDhtmlDecorativeBoxPeer$$.prototype.$DomReplaceNotify$ = function $$AdfDhtmlDecorativeBoxPeer$$$$$DomReplaceNotify$$($domNode$$27$$) {
  if ($domNode$$27$$.parentNode != this.$_topInnerElement$) {
    return $domNode$$27$$;
  }
  var $agent$$280$$ = $AdfAgent$$.$AGENT$, $needsResizeNotify$$ = !1, $parentVisible$$ = $AdfDomUtils$$.$isVisible$(this.$_topInnerElement$), $childVisible$$2$$ = $AdfDomUtils$$.$isVisible$($domNode$$27$$);
  $childVisible$$2$$ != $parentVisible$$ && ($AdfDomUtils$$.setVisible(this.$_topInnerElement$, $childVisible$$2$$), this.$_repositionPanes$(), $needsResizeNotify$$ = !0);
  $agent$$280$$.$prepareStretchedChild$($domNode$$27$$, "0px");
  return $needsResizeNotify$$ ? this.$getDomElement$() : ($agent$$280$$.$resizeStretchedChild$($domNode$$27$$, "0px"), $domNode$$27$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDecorativeBoxPeer.prototype.DomReplaceNotify", {$DomReplaceNotify$:$AdfDhtmlDecorativeBoxPeer$$.prototype.$DomReplaceNotify$});
$AdfDhtmlDecorativeBoxPeer$$.prototype.$ChildVisibilityChanged$ = function $$AdfDhtmlDecorativeBoxPeer$$$$$ChildVisibilityChanged$$($childComponent$$10$$, $childDomElement$$4$$, $childVisible$$3$$) {
  if ($childDomElement$$4$$.parentNode != this.$_topInnerElement$) {
    return !1;
  }
  $AdfDomUtils$$.setVisible(this.$_topInnerElement$, $childVisible$$3$$);
  this.$_repositionPanes$();
  $AdfDomUtils$$.setVisible($childDomElement$$4$$, $childVisible$$3$$);
  $AdfPage$$.$PAGE$.$doResizeNotify$(this.$getComponent$());
  return !0;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDecorativeBoxPeer.prototype.ChildVisibilityChanged", {$ChildVisibilityChanged$:$AdfDhtmlDecorativeBoxPeer$$.prototype.$ChildVisibilityChanged$});
$AdfDhtmlDecorativeBoxPeer$$.prototype.$_repositionPanes$ = function $$AdfDhtmlDecorativeBoxPeer$$$$$_repositionPanes$$() {
  var $JSCompiler_temp$$103_th$$1_theme$$inline_1853$$;
  if (this.$_topInnerElement$ && $AdfDomUtils$$.$isVisible$(this.$_topInnerElement$)) {
    $JSCompiler_temp$$103_th$$1_theme$$inline_1853$$ = this.$getComponent$().getTopHeight();
  } else {
    a: {
      var $element$$inline_1851_val$$inline_1856$$ = this.$_topElement$;
      $JSCompiler_temp$$103_th$$1_theme$$inline_1853$$ = this.$getComponent$().getTheme();
      var $laf$$inline_1854$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$(), $rtl$$inline_1855$$ = $AdfPage$$.$PAGE$.$getLocaleContext$().$isRightToLeft$();
      switch($element$$inline_1851_val$$inline_1856$$) {
        case this.$_topLeftElement$:
          area = $rtl$$inline_1855$$ ? "top-end" : "top-start";
          break;
        case this.$_topElement$:
        ;
        case this.$_topInnerElement$:
          area = "top";
          break;
        case this.$_topRightElement$:
          area = $rtl$$inline_1855$$ ? "top-start" : "top-end";
          break;
        default:
          $JSCompiler_temp$$103_th$$1_theme$$inline_1853$$ = null;
          break a;
      }
      $element$$inline_1851_val$$inline_1856$$ = null;
      null != $JSCompiler_temp$$103_th$$1_theme$$inline_1853$$ && ($element$$inline_1851_val$$inline_1856$$ = $laf$$inline_1854$$.$getSkinProperty$("af|decorativeBox::" + area + "[theme\x3d'" + $JSCompiler_temp$$103_th$$1_theme$$inline_1853$$ + "']-tr-height"));
      null == $element$$inline_1851_val$$inline_1856$$ && ($element$$inline_1851_val$$inline_1856$$ = $laf$$inline_1854$$.$getSkinProperty$("af|decorativeBox::" + area + "-tr-height"));
      $JSCompiler_temp$$103_th$$1_theme$$inline_1853$$ = $element$$inline_1851_val$$inline_1856$$;
    }
  }
  this.$_topLeftElement$ && (this.$_topLeftElement$.style.height = $JSCompiler_temp$$103_th$$1_theme$$inline_1853$$);
  this.$_topElement$ && (this.$_topElement$.style.height = $JSCompiler_temp$$103_th$$1_theme$$inline_1853$$);
  this.$_topRightElement$ && (this.$_topRightElement$.style.height = $JSCompiler_temp$$103_th$$1_theme$$inline_1853$$);
  if (this.$_isFlowLayout$) {
    if (this.$_topElement$.parentNode.style.height = $JSCompiler_temp$$103_th$$1_theme$$inline_1853$$, this.$_isFlowLayout$ ? this.$_topInnerElement$ && this.$_topInnerElement$.parentNode == this.$_topWrapperElement$ : this.$_topInnerElement$ && this.$_topInnerElement$.parentNode == this.$getDomElement$()) {
      this.$_topWrapperElement$.style.height = $JSCompiler_temp$$103_th$$1_theme$$inline_1853$$;
    }
  } else {
    this.$_leftElement$ && (this.$_leftElement$.style.top = $JSCompiler_temp$$103_th$$1_theme$$inline_1853$$), this.$_centerElement$ && (this.$_centerElement$.style.top = $JSCompiler_temp$$103_th$$1_theme$$inline_1853$$), this.$_rightElement$ && (this.$_rightElement$.style.top = $JSCompiler_temp$$103_th$$1_theme$$inline_1853$$);
  }
};
$AdfDhtmlDecorativeBoxPeer$$.prototype.$getContainerId$ = function $$AdfDhtmlDecorativeBoxPeer$$$$$getContainerId$$() {
  return "simple" == $AdfPage$$.$PAGE$.$getLookAndFeel$().$getSkinProperty$("BORDER_STYLE") ? $AdfRichUIPeer$$.$createSubId$(this.$getComponent$().$getClientId$(), "c") : this.$getComponent$().$getClientId$();
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlDecorativeBoxPeer.prototype.getContainerId", {$getContainerId$:$AdfDhtmlDecorativeBoxPeer$$.prototype.$getContainerId$});
