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$$1055$$, $domElement$$183$$) {
  $AdfDhtmlDecorativeBoxPeer$$.$superclass$.$BindToComponent$.call(this, $component$$1055$$, $domElement$$183$$);
  var $clientId$$197$$ = $component$$1055$$.$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$$29$$) {
  if ($domNode$$29$$.parentNode != this.$_topInnerElement$) {
    return $domNode$$29$$;
  }
  var $agent$$280$$ = $AdfAgent$$.$AGENT$, $needsResizeNotify$$ = !1, $parentVisible$$ = $AdfDomUtils$$.$isVisible$(this.$_topInnerElement$), $childVisible$$2$$ = $AdfDomUtils$$.$isVisible$($domNode$$29$$);
  $childVisible$$2$$ != $parentVisible$$ && ($AdfDomUtils$$.setVisible(this.$_topInnerElement$, $childVisible$$2$$), this.$_repositionPanes$(), $needsResizeNotify$$ = !0);
  $agent$$280$$.$prepareStretchedChild$($domNode$$29$$, "0px");
  return $needsResizeNotify$$ ? this.$getDomElement$() : ($agent$$280$$.$resizeStretchedChild$($domNode$$29$$, "0px"), $domNode$$29$$);
};
$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_1858$$;
  if (this.$_topInnerElement$ && $AdfDomUtils$$.$isVisible$(this.$_topInnerElement$)) {
    $JSCompiler_temp$$103_th$$1_theme$$inline_1858$$ = this.$getComponent$().getTopHeight();
  } else {
    a: {
      var $element$$inline_1856_val$$inline_1861$$ = this.$_topElement$;
      $JSCompiler_temp$$103_th$$1_theme$$inline_1858$$ = this.$getComponent$().getTheme();
      var $laf$$inline_1859$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$(), $rtl$$inline_1860$$ = $AdfPage$$.$PAGE$.$getLocaleContext$().$isRightToLeft$();
      switch($element$$inline_1856_val$$inline_1861$$) {
        case this.$_topLeftElement$:
          area = $rtl$$inline_1860$$ ? "top-end" : "top-start";
          break;
        case this.$_topElement$:
        ;
        case this.$_topInnerElement$:
          area = "top";
          break;
        case this.$_topRightElement$:
          area = $rtl$$inline_1860$$ ? "top-start" : "top-end";
          break;
        default:
          $JSCompiler_temp$$103_th$$1_theme$$inline_1858$$ = null;
          break a;
      }
      $element$$inline_1856_val$$inline_1861$$ = null;
      null != $JSCompiler_temp$$103_th$$1_theme$$inline_1858$$ && ($element$$inline_1856_val$$inline_1861$$ = $laf$$inline_1859$$.$getSkinProperty$("af|decorativeBox::" + area + "[theme\x3d'" + $JSCompiler_temp$$103_th$$1_theme$$inline_1858$$ + "']-tr-height"));
      null == $element$$inline_1856_val$$inline_1861$$ && ($element$$inline_1856_val$$inline_1861$$ = $laf$$inline_1859$$.$getSkinProperty$("af|decorativeBox::" + area + "-tr-height"));
      $JSCompiler_temp$$103_th$$1_theme$$inline_1858$$ = $element$$inline_1856_val$$inline_1861$$;
    }
  }
  this.$_topLeftElement$ && (this.$_topLeftElement$.style.height = $JSCompiler_temp$$103_th$$1_theme$$inline_1858$$);
  this.$_topElement$ && (this.$_topElement$.style.height = $JSCompiler_temp$$103_th$$1_theme$$inline_1858$$);
  this.$_topRightElement$ && (this.$_topRightElement$.style.height = $JSCompiler_temp$$103_th$$1_theme$$inline_1858$$);
  if (this.$_isFlowLayout$) {
    if (this.$_topElement$.parentNode.style.height = $JSCompiler_temp$$103_th$$1_theme$$inline_1858$$, 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_1858$$;
    }
  } else {
    this.$_leftElement$ && (this.$_leftElement$.style.top = $JSCompiler_temp$$103_th$$1_theme$$inline_1858$$), this.$_centerElement$ && (this.$_centerElement$.style.top = $JSCompiler_temp$$103_th$$1_theme$$inline_1858$$), this.$_rightElement$ && (this.$_rightElement$.style.top = $JSCompiler_temp$$103_th$$1_theme$$inline_1858$$);
  }
};
$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$});
