var $AdfDhtmlPanelDrawerPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfDhtmlPanelTabbedPeer$$, "AdfDhtmlPanelDrawerPeer", !1);
$goog$exportSymbol$$("AdfDhtmlPanelDrawerPeer", $AdfDhtmlPanelDrawerPeer$$);
$AdfDhtmlPanelDrawerPeer$$.$InitSubclass$ = function $$AdfDhtmlPanelDrawerPeer$$$$InitSubclass$$() {
  $AdfObject$$.$ensureClassInitialization$(AdfClientDomTracker);
  $AdfRichUIPeer$$.$addComponentEventHandlers$(this, $AdfUIInputEvent$$.$CLICK_EVENT_TYPE$);
  this.$_TRACKER_SUBID$ = "_adfTracker";
  this.$_TEMP_FLOAT_SUBID$ = "_adfTempFloat";
  this.$_FLOAT_CLASS$ = "p_AFFloat";
  this.$_OPEN_CLASS$ = "p_AFOpen";
  this.$_TABS_PARENT$ = "tabp";
};
$goog$exportSymbol$$("AdfDhtmlPanelDrawerPeer.InitSubclass", $AdfDhtmlPanelDrawerPeer$$.$InitSubclass$);
$AdfDhtmlPanelDrawerPeer$$.prototype.$BindToComponent$ = function $$AdfDhtmlPanelDrawerPeer$$$$$BindToComponent$$($component$$1725$$, $domElement$$368$$) {
  $AdfDhtmlPanelDrawerPeer$$.$superclass$.$BindToComponent$.call(this, $component$$1725$$, $domElement$$368$$);
  var $marginKey_marginValues$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$1725$$.$getClientId$(), "margins");
  if ($marginKey_marginValues$$ = $AdfPage$$.$PAGE$.$getPageProperty$($marginKey_marginValues$$)) {
    var $alignLeft$$ = $JSCompiler_StaticMethods__alignLeft$$($component$$1725$$);
    $marginKey_marginValues$$.$isAlignedLeft$ == $alignLeft$$ && ($domElement$$368$$.style.marginTop = $marginKey_marginValues$$.marginTop, $alignLeft$$ ? $domElement$$368$$.style.marginLeft = $marginKey_marginValues$$.marginLeft : $domElement$$368$$.style.marginRight = $marginKey_marginValues$$.marginRight);
  }
  return $AdfPage$$.$PAGE$.$scheduleTimer$(this, this.$_initializeDrawer$, $component$$1725$$.$getClientId$(), 0, {isSynchronized:!0});
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelDrawerPeer.prototype.BindToComponent", {$BindToComponent$:$AdfDhtmlPanelDrawerPeer$$.prototype.$BindToComponent$});
$AdfDhtmlPanelDrawerPeer$$.prototype.$NewTabSelected$ = function $$AdfDhtmlPanelDrawerPeer$$$$$NewTabSelected$$($component$$1726$$) {
  $AdfDhtmlPanelDrawerPeer$$.$superclass$.$NewTabSelected$.call(this, $component$$1726$$);
  var $domElement$$369_isAttachmentMode$$ = $AdfPage$$.$PAGE$.$isAttachmentMode$();
  if (this.$GetOldDisclosedChild$() && $domElement$$369_isAttachmentMode$$) {
    var $hints$$90_open$$4$$ = "open" == $AdfPage$$.$PAGE$.$getPageProperty$($component$$1726$$.$getClientId$()), $domElement$$369_isAttachmentMode$$ = this.$getDomElement$();
    if ($hints$$90_open$$4$$) {
      var $hints$$90_open$$4$$ = this.$getPopupWindow$($component$$1726$$, $component$$1726$$.$getClientId$()).$getHints$(), $oldClosedHint$$ = $hints$$90_open$$4$$[$AdfDhtmlPopupLayer$$.$HINT_ANIMATE_CLOSED$];
      $hints$$90_open$$4$$[$AdfDhtmlPopupLayer$$.$HINT_ANIMATE_CLOSED$] = !1;
      this.$_adfDoNotClose$ = !0;
      this.$isPopupVisible$($component$$1726$$, $component$$1726$$.$getClientId$()) && this.$hidePopup$($component$$1726$$, $component$$1726$$.$getClientId$());
      delete this.$_adfDoNotClose$;
      $hints$$90_open$$4$$[$AdfDhtmlPopupLayer$$.$HINT_ANIMATE_CLOSED$] = $oldClosedHint$$;
    }
    $JSCompiler_StaticMethods__renderOpen$$(this, $component$$1726$$, $domElement$$369_isAttachmentMode$$);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelDrawerPeer.prototype.NewTabSelected", {$NewTabSelected$:$AdfDhtmlPanelDrawerPeer$$.prototype.$NewTabSelected$});
$AdfDhtmlPanelDrawerPeer$$.prototype.$DescendantMessageChanged$ = function $$AdfDhtmlPanelDrawerPeer$$$$$DescendantMessageChanged$$() {
  this.$_initialized$ && $JSCompiler_StaticMethods__checkInvalid$$(this, this.$getComponent$());
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelDrawerPeer.prototype.DescendantMessageChanged", {$DescendantMessageChanged$:$AdfDhtmlPanelDrawerPeer$$.prototype.$DescendantMessageChanged$});
$AdfDhtmlPanelDrawerPeer$$.prototype.$TabReselected$ = function $$AdfDhtmlPanelDrawerPeer$$$$$TabReselected$$($component$$1727$$, $child$$41$$) {
  $AdfDhtmlPanelDrawerPeer$$.$superclass$.$TabReselected$.call(this, $component$$1727$$);
  $child$$41$$ && !this.$_isInvalid$ && (this.$getDomElement$(), this.$isPopupVisible$($component$$1727$$, $component$$1727$$.$getClientId$()) && this.$hidePopup$($component$$1727$$, $component$$1727$$.$getClientId$()));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelDrawerPeer.prototype.TabReselected", {$TabReselected$:$AdfDhtmlPanelDrawerPeer$$.prototype.$TabReselected$});
$AdfDhtmlPanelDrawerPeer$$.prototype.$HandleComponentClick$ = function $$AdfDhtmlPanelDrawerPeer$$$$$HandleComponentClick$$($componentEvent$$369$$) {
  var $component$$1728$$ = this.$getComponent$(), $disclosedChild$$1$$ = this.$GetOldDisclosedChild$();
  if ($disclosedChild$$1$$ && $JSCompiler_StaticMethods__getAutoDismiss$$(this)) {
    var $currElement$$16$$ = $componentEvent$$369$$.$getNativeEventTarget$(), $tabsParent_tabsParentId$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$1728$$.$getClientId$(), $AdfDhtmlPanelDrawerPeer$$.$_TABS_PARENT$), $tabsParent_tabsParentId$$ = $AdfAgent$$.$AGENT$.getElementById($tabsParent_tabsParentId$$);
    $currElement$$16$$ == $tabsParent_tabsParentId$$ && this.$TabReselected$($component$$1728$$, $disclosedChild$$1$$);
  }
  $AdfDhtmlPanelDrawerPeer$$.$superclass$.$HandleComponentClick$.call(this, $componentEvent$$369$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelDrawerPeer.prototype.HandleComponentClick", {$HandleComponentClick$:$AdfDhtmlPanelDrawerPeer$$.prototype.$HandleComponentClick$});
$AdfDhtmlPanelDrawerPeer$$.prototype.$UseInvertedRenderingPosition$ = function $$AdfDhtmlPanelDrawerPeer$$$$$UseInvertedRenderingPosition$$() {
  return !0;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelDrawerPeer.prototype.UseInvertedRenderingPosition", {$UseInvertedRenderingPosition$:$AdfDhtmlPanelDrawerPeer$$.prototype.$UseInvertedRenderingPosition$});
$AdfDhtmlPanelDrawerPeer$$.prototype.$IsDisclosedTabRequired$ = function $$AdfDhtmlPanelDrawerPeer$$$$$IsDisclosedTabRequired$$() {
  return !1;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelDrawerPeer.prototype.IsDisclosedTabRequired", {$IsDisclosedTabRequired$:$AdfDhtmlPanelDrawerPeer$$.prototype.$IsDisclosedTabRequired$});
$AdfDhtmlPanelDrawerPeer$$.prototype.$IsVerticalConveyorSupported$ = function $$AdfDhtmlPanelDrawerPeer$$$$$IsVerticalConveyorSupported$$() {
  return !1;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelDrawerPeer.prototype.IsVerticalConveyorSupported", {$IsVerticalConveyorSupported$:$AdfDhtmlPanelDrawerPeer$$.prototype.$IsVerticalConveyorSupported$});
function $JSCompiler_StaticMethods__checkInvalid$$($JSCompiler_StaticMethods__checkInvalid$self$$, $component$$1729$$) {
  var $page$$176$$ = $AdfPage$$.$PAGE$, $clientId$$369_popupWindow$$22$$ = $component$$1729$$.$getClientId$(), $ids$$13$$ = $page$$176$$.$getClientIdsWithMessages$($clientId$$369_popupWindow$$22$$), $clientId$$369_popupWindow$$22$$ = $JSCompiler_StaticMethods__checkInvalid$self$$.$getPopupWindow$($component$$1729$$, $clientId$$369_popupWindow$$22$$);
  if ($ids$$13$$ && 0 < $ids$$13$$.length) {
    for (var $i$$483$$ = 0;$i$$483$$ < $ids$$13$$.length;$i$$483$$++) {
      var $currComponent$$13$$ = $page$$176$$.$findComponent$($ids$$13$$[$i$$483$$]);
      if (null != $currComponent$$13$$ && $currComponent$$13$$ instanceof AdfUIEditableValue && !$currComponent$$13$$.getValid()) {
        $JSCompiler_StaticMethods__checkInvalid$self$$.$_isInvalid$ = !0;
        $clientId$$369_popupWindow$$22$$ && $clientId$$369_popupWindow$$22$$.$removeAutodismiss$();
        return;
      }
    }
  }
  $clientId$$369_popupWindow$$22$$ && $clientId$$369_popupWindow$$22$$.$restoreAutodismiss$();
  delete $JSCompiler_StaticMethods__checkInvalid$self$$.$_isInvalid$;
}
$AdfDhtmlPanelDrawerPeer$$.prototype.$_initializeDrawer$ = function $$AdfDhtmlPanelDrawerPeer$$$$$_initializeDrawer$$($clientId$$370_parentDomElement$$inline_3404$$) {
  var $alignNodeId_component$$1730$$ = this.$getComponent$(), $domElement$$370_resizeCallback$$4$$ = this.$getDomElement$(), $agent$$inline_3405_trackerId$$1$$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$370_parentDomElement$$inline_3404$$, $AdfDhtmlPanelDrawerPeer$$.$_TRACKER_SUBID$), $alignNode$$inline_3407_trackerRemovedCallback$$1$$ = this.$createCallback$(this.$_trackerRemoved$);
  AdfClientDomTracker.$generateAndInsert$($domElement$$370_resizeCallback$$4$$.parentNode, $domElement$$370_resizeCallback$$4$$, $agent$$inline_3405_trackerId$$1$$, $alignNode$$inline_3407_trackerRemovedCallback$$1$$, $clientId$$370_parentDomElement$$inline_3404$$);
  if ("always" == $alignNodeId_component$$1730$$.$getProperty$(AdfRichPanelDrawer.SHOW_HANDLES)) {
    $clientId$$370_parentDomElement$$inline_3404$$ = $domElement$$370_resizeCallback$$4$$.parentNode;
    $agent$$inline_3405_trackerId$$1$$ = $AdfAgent$$.$AGENT$;
    $JSCompiler_StaticMethods__alignLeft$$($alignNodeId_component$$1730$$) ? this.$_float$ = "left" : this.$_float$ = "right";
    var $alignNodeId$$inline_3406_overflowVisible$$inline_3409$$ = $JSCompiler_StaticMethods__getAlignNodeId$$(this, $alignNodeId_component$$1730$$, $domElement$$370_resizeCallback$$4$$);
    ($alignNode$$inline_3407_trackerRemovedCallback$$1$$ = $AdfAgent$$.$AGENT$.getElementById($alignNodeId$$inline_3406_overflowVisible$$inline_3409$$)) || $AdfLogger$$.$LOGGER$.severe("no alignNode could be found for the id " + $alignNodeId$$inline_3406_overflowVisible$$inline_3409$$);
    for (var $ancestor$$inline_3408_tempFloatElement$$inline_3412$$ = $clientId$$370_parentDomElement$$inline_3404$$, $alignNodeId$$inline_3406_overflowVisible$$inline_3409$$ = !0;null != $ancestor$$inline_3408_tempFloatElement$$inline_3412$$.ownerDocument && $ancestor$$inline_3408_tempFloatElement$$inline_3412$$ != $alignNode$$inline_3407_trackerRemovedCallback$$1$$ && 1 == $alignNodeId$$inline_3406_overflowVisible$$inline_3409$$;) {
      var $computedStyle$$inline_3410_tempFloatElementStyle$$inline_3414_tempFloatId$$inline_3413$$ = $agent$$inline_3405_trackerId$$1$$.getComputedStyle($ancestor$$inline_3408_tempFloatElement$$inline_3412$$), $overflowX$$inline_3411$$ = $computedStyle$$inline_3410_tempFloatElementStyle$$inline_3414_tempFloatId$$inline_3413$$.overflowX;
      $overflowX$$inline_3411$$ || ($overflowX$$inline_3411$$ = $computedStyle$$inline_3410_tempFloatElementStyle$$inline_3414_tempFloatId$$inline_3413$$.overflow);
      "visible" != $overflowX$$inline_3411$$ && "" != $overflowX$$inline_3411$$ && ($alignNodeId$$inline_3406_overflowVisible$$inline_3409$$ = !1);
      $ancestor$$inline_3408_tempFloatElement$$inline_3412$$ = $ancestor$$inline_3408_tempFloatElement$$inline_3412$$.parentNode;
    }
    $ancestor$$inline_3408_tempFloatElement$$inline_3412$$ = $AdfPage$$.$PAGE$.$getDomDocument$().createElement("div");
    $computedStyle$$inline_3410_tempFloatElementStyle$$inline_3414_tempFloatId$$inline_3413$$ = $AdfRichUIPeer$$.$CreateSubId$($alignNodeId_component$$1730$$.$getClientId$(), $AdfDhtmlPanelDrawerPeer$$.$_TEMP_FLOAT_SUBID$);
    $ancestor$$inline_3408_tempFloatElement$$inline_3412$$.id = $computedStyle$$inline_3410_tempFloatElementStyle$$inline_3414_tempFloatId$$inline_3413$$;
    $computedStyle$$inline_3410_tempFloatElementStyle$$inline_3414_tempFloatId$$inline_3413$$ = $ancestor$$inline_3408_tempFloatElement$$inline_3412$$.style;
    $agent$$inline_3405_trackerId$$1$$.$setCssFloat$($ancestor$$inline_3408_tempFloatElement$$inline_3412$$, this.$_float$);
    $computedStyle$$inline_3410_tempFloatElementStyle$$inline_3414_tempFloatId$$inline_3413$$.display = "none";
    $alignNodeId$$inline_3406_overflowVisible$$inline_3409$$ || ($clientId$$370_parentDomElement$$inline_3404$$.insertBefore($ancestor$$inline_3408_tempFloatElement$$inline_3412$$, $domElement$$370_resizeCallback$$4$$), $AdfAgent$$.$AGENT$.$elementsAdded$($ancestor$$inline_3408_tempFloatElement$$inline_3412$$), $clientId$$370_parentDomElement$$inline_3404$$.removeChild($domElement$$370_resizeCallback$$4$$), $alignNode$$inline_3407_trackerRemovedCallback$$1$$.appendChild($domElement$$370_resizeCallback$$4$$), 
    this.$_newParent$ = $alignNode$$inline_3407_trackerRemovedCallback$$1$$);
    this.$_tempFloat$ = $ancestor$$inline_3408_tempFloatElement$$inline_3412$$;
    this.$_overflowVisible$ = $alignNodeId$$inline_3406_overflowVisible$$inline_3409$$;
    $JSCompiler_StaticMethods__setMargins$$(this, $alignNodeId_component$$1730$$, $domElement$$370_resizeCallback$$4$$);
  } else {
    $domElement$$370_resizeCallback$$4$$.style.display = "none";
  }
  this.$GetOldDisclosedChild$() ? $JSCompiler_StaticMethods__renderOpen$$(this, $alignNodeId_component$$1730$$, $domElement$$370_resizeCallback$$4$$) : ($alignNodeId_component$$1730$$ = $JSCompiler_StaticMethods__getAlignNodeId$$(this, $alignNodeId_component$$1730$$, $domElement$$370_resizeCallback$$4$$), this.$_resizeCallback$ = $domElement$$370_resizeCallback$$4$$ = this.$createCallback$(this.$_handleResize$), $AdfAgent$$.$AGENT$.$addResizeListener$($alignNodeId_component$$1730$$, $domElement$$370_resizeCallback$$4$$));
  this.$_initialized$ = !0;
};
$AdfDhtmlPanelDrawerPeer$$.prototype.$getComponentParent$ = function $$AdfDhtmlPanelDrawerPeer$$$$$getComponentParent$$($clientId$$371_commentBasedPeer_component$$1731$$) {
  this.bind($clientId$$371_commentBasedPeer_component$$1731$$);
  $clientId$$371_commentBasedPeer_component$$1731$$ = $clientId$$371_commentBasedPeer_component$$1731$$.$getClientId$();
  var $parent$$56_trackerElement$$1_trackerId$$2$$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$371_commentBasedPeer_component$$1731$$, $AdfDhtmlPanelDrawerPeer$$.$_TRACKER_SUBID$), $parent$$56_trackerElement$$1_trackerId$$2$$ = $AdfAgent$$.$AGENT$.getElementById($parent$$56_trackerElement$$1_trackerId$$2$$), $parent$$56_trackerElement$$1_trackerId$$2$$ = $AdfRichUIPeer$$.$getFirstAncestorComponent$($parent$$56_trackerElement$$1_trackerId$$2$$.parentNode);
  $clientId$$371_commentBasedPeer_component$$1731$$ = $AdfDhtmlPanelDrawerPeer$$.$_getPreceedingCommentBasedPeer$($parent$$56_trackerElement$$1_trackerId$$2$$, $clientId$$371_commentBasedPeer_component$$1731$$);
  return null == $clientId$$371_commentBasedPeer_component$$1731$$ ? $parent$$56_trackerElement$$1_trackerId$$2$$ : $clientId$$371_commentBasedPeer_component$$1731$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelDrawerPeer.prototype.getComponentParent", {$getComponentParent$:$AdfDhtmlPanelDrawerPeer$$.prototype.$getComponentParent$});
$AdfDhtmlPanelDrawerPeer$$.$_getPreceedingCommentBasedPeer$ = function $$AdfDhtmlPanelDrawerPeer$$$$_getPreceedingCommentBasedPeer$$($component$$1732$$, $clientId$$372$$) {
  if (null != $component$$1732$$) {
    var $namingContainer$$2_namingContainerId$$1_nmSeparator$$1$$ = $clientId$$372$$.lastIndexOf(":");
    if (-1 != $namingContainer$$2_namingContainerId$$1_nmSeparator$$1$$ && ($namingContainer$$2_namingContainerId$$1_nmSeparator$$1$$ = $clientId$$372$$.substring(0, $namingContainer$$2_namingContainerId$$1_nmSeparator$$1$$), !$AdfAgent$$.$AGENT$.getElementById($namingContainer$$2_namingContainerId$$1_nmSeparator$$1$$) && ($namingContainer$$2_namingContainerId$$1_nmSeparator$$1$$ = $AdfPage$$.$PAGE$.$findComponent$($namingContainer$$2_namingContainerId$$1_nmSeparator$$1$$)))) {
      for (var $ncParent$$1$$ = $namingContainer$$2_namingContainerId$$1_nmSeparator$$1$$.getParent();$ncParent$$1$$;) {
        if ($ncParent$$1$$ === $component$$1732$$) {
          return $namingContainer$$2_namingContainerId$$1_nmSeparator$$1$$;
        }
        $ncParent$$1$$ = $ncParent$$1$$.getParent();
      }
    }
  }
};
function $JSCompiler_StaticMethods__setMargins$$($JSCompiler_StaticMethods__setMargins$self_domElementStyle$$, $component$$1734$$, $domElement$$372$$) {
  var $agent$$498_alignTop$$ = $AdfAgent$$.$AGENT$, $alignNodeId$$2_tempFloatElementStyle$$1$$ = $JSCompiler_StaticMethods__getAlignNodeId$$($JSCompiler_StaticMethods__setMargins$self_domElementStyle$$, $component$$1734$$, $domElement$$372$$), $alignNode$$1$$ = $agent$$498_alignTop$$.getElementById($alignNodeId$$2_tempFloatElementStyle$$1$$), $isAlignedLeft$$1$$ = $JSCompiler_StaticMethods__alignLeft$$($component$$1734$$), $alignNodeId$$2_tempFloatElementStyle$$1$$ = $JSCompiler_StaticMethods__setMargins$self_domElementStyle$$.$_tempFloat$.style, 
  $alignLeft$$1_alignPos$$ = $agent$$498_alignTop$$.$getElementPosition$($alignNode$$1$$), $agent$$498_alignTop$$ = $alignLeft$$1_alignPos$$.y + $alignNode$$1$$.clientTop, $alignLeft$$1_alignPos$$ = $alignLeft$$1_alignPos$$.x + $alignNode$$1$$.clientLeft, $handleHeight$$ = $domElement$$372$$.offsetHeight, $handleWidth$$ = $domElement$$372$$.offsetWidth;
  $JSCompiler_StaticMethods__setMargins$self_domElementStyle$$.$_minAnimationWidth$ = $handleWidth$$;
  $alignNodeId$$2_tempFloatElementStyle$$1$$.height = $handleHeight$$ + "px";
  $alignNodeId$$2_tempFloatElementStyle$$1$$.width = $handleWidth$$ + "px";
  $alignNodeId$$2_tempFloatElementStyle$$1$$.display = "";
  $JSCompiler_StaticMethods__setMargins$self_domElementStyle$$.$_overflowVisible$ ? ($JSCompiler_StaticMethods__setInitialMargins$$($component$$1734$$, $domElement$$372$$, $alignNode$$1$$, $agent$$498_alignTop$$, $alignLeft$$1_alignPos$$, $isAlignedLeft$$1$$), $JSCompiler_StaticMethods__setMargins$self_domElementStyle$$ = $domElement$$372$$.style, $alignNodeId$$2_tempFloatElementStyle$$1$$.marginLeft = $JSCompiler_StaticMethods__setMargins$self_domElementStyle$$.marginLeft, $alignNodeId$$2_tempFloatElementStyle$$1$$.marginRight = 
  $JSCompiler_StaticMethods__setMargins$self_domElementStyle$$.marginRight, $alignNodeId$$2_tempFloatElementStyle$$1$$.marginTop = $JSCompiler_StaticMethods__setMargins$self_domElementStyle$$.marginTop, $alignNodeId$$2_tempFloatElementStyle$$1$$.marginBottom = $JSCompiler_StaticMethods__setMargins$self_domElementStyle$$.marginBottom) : ($domElement$$372$$.style.position = "absolute", $domElement$$372$$.style.top = "0", $isAlignedLeft$$1$$ ? $domElement$$372$$.style.left = "0" : $domElement$$372$$.style.right = 
  "0", $JSCompiler_StaticMethods__setInitialMargins$$($component$$1734$$, $domElement$$372$$, $alignNode$$1$$, $agent$$498_alignTop$$, $alignLeft$$1_alignPos$$, $isAlignedLeft$$1$$, $JSCompiler_StaticMethods__setMargins$self_domElementStyle$$.$_tempFloat$, $handleHeight$$, $handleWidth$$));
}
function $JSCompiler_StaticMethods__setInitialMargins$$($component$$1735_marginKey$$1$$, $domElement$$373_leftShadowInt_rightShadowInt$$, $alignNode$$2_alignRight$$, $alignTop$$1$$, $alignLeft$$2$$, $isAlignedLeft$$2$$, $shadowElement$$, $pos$$32_shadowElementHeight$$, $shadowElementWidth$$) {
  var $domElementStyle$$1$$ = $domElement$$373_leftShadowInt_rightShadowInt$$.style, $noSizeShadowElement$$ = !1, $shadowPos$$ = null;
  if ($shadowElement$$) {
    var $shadowPos$$ = $AdfAgent$$.$AGENT$.$getElementPosition$($shadowElement$$), $topShadowInt$$ = $shadowPos$$.y - $alignTop$$1$$;
    $topShadowInt$$ >= $pos$$32_shadowElementHeight$$ ? ($noSizeShadowElement$$ = !0, $shadowElement$$.style.height = "0", $shadowElement$$.style.width = "0") : ($shadowElement$$.style.height = $pos$$32_shadowElementHeight$$ - $topShadowInt$$ + "px", $shadowElement$$.style.marginBottom = $domElementStyle$$1$$.marginBottom);
  }
  $pos$$32_shadowElementHeight$$ = $AdfAgent$$.$AGENT$.$getElementPosition$($domElement$$373_leftShadowInt_rightShadowInt$$);
  $domElementStyle$$1$$.marginTop = $AdfAgent$$.$getCSSLengthAsInt$($domElementStyle$$1$$.marginTop) + $alignTop$$1$$ - $alignNode$$2_alignRight$$.scrollTop - $pos$$32_shadowElementHeight$$.y + "px";
  $isAlignedLeft$$2$$ ? ($domElementStyle$$1$$.marginLeft = $AdfAgent$$.$getCSSLengthAsInt$($domElementStyle$$1$$.marginLeft) + $alignLeft$$2$$ - $pos$$32_shadowElementHeight$$.x + "px", $shadowElement$$ && !$noSizeShadowElement$$ && ($domElement$$373_leftShadowInt_rightShadowInt$$ = $shadowPos$$.x - $alignLeft$$2$$, $domElement$$373_leftShadowInt_rightShadowInt$$ >= $shadowElementWidth$$ ? ($shadowElement$$.style.width = "0", $shadowElement$$.style.height = "0", $shadowElement$$.style.marginBottom = 
  "0") : ($shadowElement$$.style.width = $shadowElementWidth$$ - $domElement$$373_leftShadowInt_rightShadowInt$$ + "px", $shadowElement$$.style.marginRight = $domElementStyle$$1$$.marginRight))) : ($alignNode$$2_alignRight$$ = $alignLeft$$2$$ + $alignNode$$2_alignRight$$.clientWidth, $domElementStyle$$1$$.marginRight = $AdfAgent$$.$getCSSLengthAsInt$($domElementStyle$$1$$.marginRight) + ($pos$$32_shadowElementHeight$$.x + $domElement$$373_leftShadowInt_rightShadowInt$$.offsetWidth) - $alignNode$$2_alignRight$$ + 
  "px", $shadowElement$$ && !$noSizeShadowElement$$ && ($domElement$$373_leftShadowInt_rightShadowInt$$ = $alignNode$$2_alignRight$$ - ($shadowPos$$.x + $domElement$$373_leftShadowInt_rightShadowInt$$.offsetWidth), $domElement$$373_leftShadowInt_rightShadowInt$$ >= $shadowElementWidth$$ ? ($shadowElement$$.style.width = "0", $shadowElement$$.style.height = "0", $shadowElement$$.style.marginBottom = "0") : ($shadowElement$$.style.width = $shadowElementWidth$$ - $domElement$$373_leftShadowInt_rightShadowInt$$ + 
  "px", $shadowElement$$.style.marginLeft = $domElementStyle$$1$$.marginLeft)));
  $component$$1735_marginKey$$1$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$1735_marginKey$$1$$.$getClientId$(), "margins");
  $AdfPage$$.$PAGE$.$setPageProperty$($component$$1735_marginKey$$1$$, {$isAlignedLeft$:$isAlignedLeft$$2$$, marginTop:$domElementStyle$$1$$.marginTop, marginRight:$domElementStyle$$1$$.marginRight, marginLeft:$domElementStyle$$1$$.marginLeft});
}
$AdfDhtmlPanelDrawerPeer$$.prototype.$_trackerRemoved$ = function $$AdfDhtmlPanelDrawerPeer$$$$$_trackerRemoved$$() {
  var $component$$1736$$ = this.$getComponent$(), $domElement$$374$$ = this.$getDomElement$();
  $component$$1736$$ && $domElement$$374$$ && (this.$_remove$($component$$1736$$), $AdfPage$$.$PAGE$.$removeComponentsInSubtree$($domElement$$374$$));
};
function $JSCompiler_StaticMethods__alignLeft$$($component$$1737_position$$5$$) {
  $component$$1737_position$$5$$ = $component$$1737_position$$5$$.getPosition();
  var $rtl$$6$$ = $AdfPage$$.$PAGE$.$getLocaleContext$().$isRightToLeft$();
  return "left" == $component$$1737_position$$5$$ || "start" == $component$$1737_position$$5$$ && !$rtl$$6$$ || "end" == $component$$1737_position$$5$$ && $rtl$$6$$ ? !0 : !1;
}
function $JSCompiler_StaticMethods__renderOpen$$($JSCompiler_StaticMethods__renderOpen$self$$, $component$$1740$$, $domElement$$377$$) {
  if (!$JSCompiler_StaticMethods__renderOpen$self$$.$isPopupVisible$($component$$1740$$, $component$$1740$$.$getClientId$())) {
    var $alignNodeId$$3_popupHints$$4$$ = $JSCompiler_StaticMethods__getAlignNodeId$$($JSCompiler_StaticMethods__renderOpen$self$$, $component$$1740$$, $domElement$$377$$);
    !$JSCompiler_StaticMethods__renderOpen$self$$.$_newParent$ && $JSCompiler_StaticMethods__renderOpen$self$$.$_tempFloat$ && ($domElement$$377$$.parentNode.insertBefore($JSCompiler_StaticMethods__renderOpen$self$$.$_tempFloat$, $domElement$$377$$), $AdfAgent$$.$AGENT$.$elementsAdded$($JSCompiler_StaticMethods__renderOpen$self$$.$_tempFloat$));
    "always" != $component$$1740$$.$getProperty$(AdfRichPanelDrawer.SHOW_HANDLES) ? $domElement$$377$$.style.display = "" : ($JSCompiler_StaticMethods__renderOpen$self$$.$_marginTop$ = $domElement$$377$$.style.marginTop, $JSCompiler_StaticMethods__renderOpen$self$$.$_marginBottom$ = $domElement$$377$$.style.marginBottom, $JSCompiler_StaticMethods__renderOpen$self$$.$_marginLeft$ = $domElement$$377$$.style.marginLeft, $JSCompiler_StaticMethods__renderOpen$self$$.$_marginRight$ = $domElement$$377$$.style.marginRight, 
    $AdfAgent$$.$AGENT$.$setCssFloat$($domElement$$377$$, ""), $domElement$$377$$.style.marginTop = "", $domElement$$377$$.style.marginBottom = "", $domElement$$377$$.style.marginLeft = "", $domElement$$377$$.style.marginRight = "", $JSCompiler_StaticMethods__renderOpen$self$$.$_overflowVisible$ || ($domElement$$377$$.style.position = "", $domElement$$377$$.style.top = "", $JSCompiler_StaticMethods__alignLeft$$($component$$1740$$) ? $domElement$$377$$.style.left = "" : $domElement$$377$$.style.right = 
    ""));
    var $tempPosition$$ = $domElement$$377$$.style.position;
    $domElement$$377$$.style.position = "absolute";
    $JSCompiler_StaticMethods__renderOpen$self$$.$GetBodyOuterElement$().style.display = "";
    var $contentElement$$inline_3422_contentHeight$$inline_3432$$ = $JSCompiler_StaticMethods__renderOpen$self$$.$getDomElement$(), $heightMin$$inline_3440_width$$inline_3424$$ = $component$$1740$$.getWidth(), $height$$inline_3425_paddingLeft$$inline_3441_paddingRight$$inline_3442$$ = $component$$1740$$.getHeight(), $heightElement$$inline_3426$$ = $JSCompiler_StaticMethods__renderOpen$self$$.$GetBodyInnerElement$(), $agent$$inline_3427$$ = $AdfAgent$$.$AGENT$, $alignElement$$inline_3428_alignTop$$inline_3438$$ = 
    $agent$$inline_3427$$.getElementById($alignNodeId$$3_popupHints$$4$$), $contentWidth$$inline_3429_diff$$inline_3439$$ = $contentElement$$inline_3422_contentHeight$$inline_3432$$.offsetWidth, $maximumWidth$$inline_3430$$ = $component$$1740$$.getMaximumWidth();
    $maximumWidth$$inline_3430$$ || ($maximumWidth$$inline_3430$$ = "100%");
    var $alignWidth$$inline_3431_maximumHeight$$inline_3433$$ = $alignElement$$inline_3428_alignTop$$inline_3438$$.clientWidth, $heightMin$$inline_3440_width$$inline_3424$$ = $JSCompiler_StaticMethods__renderOpen$self$$.$_getSize$($heightMin$$inline_3440_width$$inline_3424$$, $alignWidth$$inline_3431_maximumHeight$$inline_3433$$), $maximumWidth$$inline_3430$$ = $JSCompiler_StaticMethods__renderOpen$self$$.$_getSize$($maximumWidth$$inline_3430$$, $alignWidth$$inline_3431_maximumHeight$$inline_3433$$);
    $JSCompiler_StaticMethods__renderOpen$self$$.$_widthElement$ = $heightElement$$inline_3426$$;
    $JSCompiler_StaticMethods__renderOpen$self$$.$_widthElementWidth$ = $heightElement$$inline_3426$$.style.width;
    $JSCompiler_StaticMethods__renderOpen$self$$.$_widthElementMaxWidth$ = $heightElement$$inline_3426$$.style.maxWidth;
    $contentElement$$inline_3422_contentHeight$$inline_3432$$ = $contentElement$$inline_3422_contentHeight$$inline_3432$$.offsetHeight;
    ($alignWidth$$inline_3431_maximumHeight$$inline_3433$$ = $component$$1740$$.getMaximumHeight()) || ($alignWidth$$inline_3431_maximumHeight$$inline_3433$$ = "100%");
    var $alignHeight$$inline_3434_scrollBottom$$inline_3437_scrollTop$$inline_3435$$ = $alignElement$$inline_3428_alignTop$$inline_3438$$.clientHeight, $height$$inline_3425_paddingLeft$$inline_3441_paddingRight$$inline_3442$$ = $JSCompiler_StaticMethods__renderOpen$self$$.$_getSize$($height$$inline_3425_paddingLeft$$inline_3441_paddingRight$$inline_3442$$, $alignHeight$$inline_3434_scrollBottom$$inline_3437_scrollTop$$inline_3435$$), $alignWidth$$inline_3431_maximumHeight$$inline_3433$$ = $JSCompiler_StaticMethods__renderOpen$self$$.$_getSize$($alignWidth$$inline_3431_maximumHeight$$inline_3433$$, 
    $alignHeight$$inline_3434_scrollBottom$$inline_3437_scrollTop$$inline_3435$$);
    $JSCompiler_StaticMethods__renderOpen$self$$.$_heightElement$ = $heightElement$$inline_3426$$;
    $JSCompiler_StaticMethods__renderOpen$self$$.$_heightElementHeight$ = $heightElement$$inline_3426$$.style.height;
    $JSCompiler_StaticMethods__renderOpen$self$$.$_heightElementMaxHeight$ = $heightElement$$inline_3426$$.style.maxHeight;
    var $alignHeight$$inline_3434_scrollBottom$$inline_3437_scrollTop$$inline_3435$$ = $agent$$inline_3427$$.$getBrowserViewportScrollTop$(), $domWindow$$inline_3436$$ = $agent$$inline_3427$$.$getDomWindow$(), $alignHeight$$inline_3434_scrollBottom$$inline_3437_scrollTop$$inline_3435$$ = $alignHeight$$inline_3434_scrollBottom$$inline_3437_scrollTop$$inline_3435$$ + $agent$$inline_3427$$.$getWindowClientHeight$($domWindow$$inline_3436$$), $alignElement$$inline_3428_alignTop$$inline_3438$$ = $agent$$inline_3427$$.$getElementTop$($alignElement$$inline_3428_alignTop$$inline_3438$$) + 
    $alignElement$$inline_3428_alignTop$$inline_3438$$.clientTop;
    $height$$inline_3425_paddingLeft$$inline_3441_paddingRight$$inline_3442$$ && ($alignElement$$inline_3428_alignTop$$inline_3438$$ + $height$$inline_3425_paddingLeft$$inline_3441_paddingRight$$inline_3442$$ > $alignHeight$$inline_3434_scrollBottom$$inline_3437_scrollTop$$inline_3435$$ && ($height$$inline_3425_paddingLeft$$inline_3441_paddingRight$$inline_3442$$ = $alignHeight$$inline_3434_scrollBottom$$inline_3437_scrollTop$$inline_3435$$ - $alignElement$$inline_3428_alignTop$$inline_3438$$), $agent$$inline_3427$$.$setOuterHeight$($heightElement$$inline_3426$$, 
    $height$$inline_3425_paddingLeft$$inline_3441_paddingRight$$inline_3442$$));
    $alignWidth$$inline_3431_maximumHeight$$inline_3433$$ && ($alignElement$$inline_3428_alignTop$$inline_3438$$ + $alignWidth$$inline_3431_maximumHeight$$inline_3433$$ > $alignHeight$$inline_3434_scrollBottom$$inline_3437_scrollTop$$inline_3435$$ && ($alignWidth$$inline_3431_maximumHeight$$inline_3433$$ = $alignHeight$$inline_3434_scrollBottom$$inline_3437_scrollTop$$inline_3435$$ - $alignElement$$inline_3428_alignTop$$inline_3438$$), $agent$$inline_3427$$.$setOuterMaxHeight$($heightElement$$inline_3426$$, 
    $alignWidth$$inline_3431_maximumHeight$$inline_3433$$));
    $contentWidth$$inline_3429_diff$$inline_3439$$ -= $heightElement$$inline_3426$$.offsetWidth;
    $heightMin$$inline_3440_width$$inline_3424$$ && $agent$$inline_3427$$.$setOuterWidth$($heightElement$$inline_3426$$, $heightMin$$inline_3440_width$$inline_3424$$ - $contentWidth$$inline_3429_diff$$inline_3439$$);
    $maximumWidth$$inline_3430$$ && $agent$$inline_3427$$.$setOuterMaxWidth$($heightElement$$inline_3426$$, $maximumWidth$$inline_3430$$ - $contentWidth$$inline_3429_diff$$inline_3439$$);
    $heightMin$$inline_3440_width$$inline_3424$$ = null;
    $height$$inline_3425_paddingLeft$$inline_3441_paddingRight$$inline_3442$$ && $alignWidth$$inline_3431_maximumHeight$$inline_3433$$ ? $heightMin$$inline_3440_width$$inline_3424$$ = Math.min($height$$inline_3425_paddingLeft$$inline_3441_paddingRight$$inline_3442$$, $alignWidth$$inline_3431_maximumHeight$$inline_3433$$) : $alignWidth$$inline_3431_maximumHeight$$inline_3433$$ ? $heightMin$$inline_3440_width$$inline_3424$$ = $alignWidth$$inline_3431_maximumHeight$$inline_3433$$ : $height$$inline_3425_paddingLeft$$inline_3441_paddingRight$$inline_3442$$ && 
    ($heightMin$$inline_3440_width$$inline_3424$$ = $height$$inline_3425_paddingLeft$$inline_3441_paddingRight$$inline_3442$$);
    $heightMin$$inline_3440_width$$inline_3424$$ && $heightMin$$inline_3440_width$$inline_3424$$ < $contentElement$$inline_3422_contentHeight$$inline_3432$$ && ($AdfPage$$.$PAGE$.$getLocaleContext$().$isRightToLeft$() ? ($height$$inline_3425_paddingLeft$$inline_3441_paddingRight$$inline_3442$$ = $heightElement$$inline_3426$$.style.paddingLeft, $JSCompiler_StaticMethods__renderOpen$self$$.$_bodyPaddingLeft$ = "" + $height$$inline_3425_paddingLeft$$inline_3441_paddingRight$$inline_3442$$, $heightElement$$inline_3426$$.style.paddingLeft = 
    $AdfAgent$$.$getCSSLengthAsInt$("" + $height$$inline_3425_paddingLeft$$inline_3441_paddingRight$$inline_3442$$) + 20 + "px") : ($height$$inline_3425_paddingLeft$$inline_3441_paddingRight$$inline_3442$$ = $heightElement$$inline_3426$$.style.paddingRight, $JSCompiler_StaticMethods__renderOpen$self$$.$_bodyPaddingRight$ = "" + $height$$inline_3425_paddingLeft$$inline_3441_paddingRight$$inline_3442$$, $heightElement$$inline_3426$$.style.paddingRight = $AdfAgent$$.$getCSSLengthAsInt$("" + $height$$inline_3425_paddingLeft$$inline_3441_paddingRight$$inline_3442$$) + 
    20 + "px"));
    $domElement$$377$$.style.position = $tempPosition$$;
    $alignNodeId$$3_popupHints$$4$$ = $JSCompiler_StaticMethods__renderOpen$self$$.$_getPopupHints$($component$$1740$$, $alignNodeId$$3_popupHints$$4$$);
    $AdfDomUtils$$.$addCSSClassName$($domElement$$377$$, $AdfDhtmlPanelDrawerPeer$$.$_FLOAT_CLASS$);
    $AdfDomUtils$$.$addCSSClassName$($domElement$$377$$, $AdfDhtmlPanelDrawerPeer$$.$_OPEN_CLASS$);
    $AdfPage$$.$PAGE$.$setPageProperty$($component$$1740$$.$getClientId$(), "open");
    $JSCompiler_StaticMethods__renderOpen$self$$.$showPopup$($component$$1740$$, $domElement$$377$$, $alignNodeId$$3_popupHints$$4$$, $component$$1740$$.$getClientId$());
  }
}
$AdfDhtmlPanelDrawerPeer$$.prototype.$canHide$ = function $$AdfDhtmlPanelDrawerPeer$$$$$canHide$$() {
  if (!this.$_adfDoNotClose$) {
    var $disclosedChild$$3_disclosureEvent$$ = this.$GetOldDisclosedChild$();
    if ($disclosedChild$$3_disclosureEvent$$ && ($disclosedChild$$3_disclosureEvent$$ = this.$QueueClientDisclosureChanges$($disclosedChild$$3_disclosureEvent$$, null)) && $disclosedChild$$3_disclosureEvent$$.$isCanceled$()) {
      return !1;
    }
  }
  return !0;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelDrawerPeer.prototype.canHide", {$canHide$:$AdfDhtmlPanelDrawerPeer$$.prototype.$canHide$});
$JSCompiler_prototypeAlias$$ = $AdfDhtmlPanelDrawerPeer$$.prototype;
$JSCompiler_prototypeAlias$$.$_getPopupHints$ = function $$JSCompiler_prototypeAlias$$$$_getPopupHints$$($component$$1742$$, $alignNodeId$$4$$) {
  var $hints$$91$$ = {};
  if (!this.$_cachedHints$) {
    var $hints$$inline_3447$$ = {type:"layer"};
    $hints$$inline_3447$$[$AdfDhtmlPopupLayer$$.$HINT_ANIMATE_CLOSED$] = !0;
    $hints$$inline_3447$$[$AdfDhtmlPopupLayer$$.$HINT_ANIMATION_DURATION_CLOSE_SKIN_PROPERTY$] = "af|panelDrawer-tr-close-animation-duration";
    $hints$$inline_3447$$[$AdfDhtmlPopupLayer$$.$HINT_ANIMATE_FRAME_METHOD$] = 3;
    $hints$$inline_3447$$[$AdfDhtmlPopupLayer$$.$HINT_ANIMATION_DURATION_OPEN_SKIN_PROPERTY$] = "af|panelDrawer-tr-open-animation-duration";
    $hints$$inline_3447$$.surrogateClientId = $AdfRichUIPeer$$.$CreateSubId$($component$$1742$$.$getClientId$(), $AdfDhtmlPanelDrawerPeer$$.$_TEMP_FLOAT_SUBID$);
    var $hintStart$$inline_3448$$ = !1, $position$$inline_3449$$ = $component$$1742$$.getPosition(), $rtl$$inline_3450$$ = $AdfPage$$.$PAGE$.$getLocaleContext$().$isRightToLeft$();
    if ("start" == $position$$inline_3449$$ || "left" == $position$$inline_3449$$ && !$rtl$$inline_3450$$ || "right" == $position$$inline_3449$$ && $rtl$$inline_3450$$) {
      $hintStart$$inline_3448$$ = !0;
    }
    $hints$$inline_3447$$[AdfRichPopup.$HINT_ALIGN$] = $hintStart$$inline_3448$$ ? AdfRichPopup.$ALIGN_OVERLAP_START_BEFORE$ : AdfRichPopup.$ALIGN_OVERLAP_END_BEFORE$;
    $hints$$inline_3447$$[AdfRichPopup.$HINT_ALIGN_ID$] = $alignNodeId$$4$$;
    0 == $JSCompiler_StaticMethods__getAutoDismiss$$(this) ? $hints$$inline_3447$$.autodismiss = "autodismissNever" : $hints$$inline_3447$$.autodismiss = "autodismissAlways";
    this.$_hideDrawerCallback$ || (this.$_hideDrawerCallback$ = this.$createCallback$(this.$_drawerClosed$));
    $hints$$inline_3447$$.closeHandler = this.$_hideDrawerCallback$;
    this.$_openDrawerCallback$ || (this.$_openDrawerCallback$ = this.$createCallback$(this.$_drawerOpened$));
    $hints$$inline_3447$$.openedHandler = this.$_openDrawerCallback$;
    $hints$$inline_3447$$[$AdfDhtmlPopupLayer$$.$HINT_ANIMATE_MIN_WIDTH$] = this.$_minAnimationWidth$;
    this.$_cachedHints$ = $hints$$inline_3447$$;
  }
  $AdfCollections$$.$copyInto$($hints$$91$$, this.$_cachedHints$);
  "open" != $AdfPage$$.$PAGE$.$getPageProperty$($component$$1742$$.$getClientId$()) ? $hints$$91$$.animate = AdfRichPopup.$ANIMATE_TRUE$ : $hints$$91$$.animate = AdfRichPopup.$ANIMATE_FALSE$;
  return $hints$$91$$;
};
function $JSCompiler_StaticMethods__getAutoDismiss$$($JSCompiler_StaticMethods__getAutoDismiss$self$$) {
  if (null == $JSCompiler_StaticMethods__getAutoDismiss$self$$.$_autoDismiss$) {
    var $skinVal$$ = page.$getLookAndFeel$().$getSkinProperty$("af|panelDrawer-tr-auto-dismiss"), $attributeVal$$ = $JSCompiler_StaticMethods__getAutoDismiss$self$$.$getComponent$().$getProperty$("autoDismiss");
    $JSCompiler_StaticMethods__getAutoDismiss$self$$.$_autoDismiss$ = "none" == $attributeVal$$ ? !1 : "focusLoss" == $attributeVal$$ ? !0 : "false" == $skinVal$$ ? !1 : !0;
  }
  return $JSCompiler_StaticMethods__getAutoDismiss$self$$.$_autoDismiss$;
}
function $JSCompiler_StaticMethods__getAlignNodeId$$($JSCompiler_StaticMethods__getAlignNodeId$self$$, $alignPeer_component$$1745$$, $domElement$$379$$) {
  if (!$JSCompiler_StaticMethods__getAlignNodeId$self$$.$_alignId$) {
    var $alignId$$7$$ = $alignPeer_component$$1745$$.$getProperty$("alignId"), $alignComponent$$3$$ = $alignPeer_component$$1745$$.$findComponent$($alignId$$7$$);
    if ($alignComponent$$3$$) {
      $alignId$$7$$ = $alignComponent$$3$$.$getClientId$();
    } else {
      if (":" == $alignId$$7$$.charAt(0)) {
        var $alignLength$$ = $alignId$$7$$.length;
        1 < $alignLength$$ && ($alignId$$7$$ = $alignId$$7$$.substring(1, $alignLength$$));
      }
      $AdfLogger$$.$LOGGER$.warning("Unable to find align component: ", $alignId$$7$$, ". Make sure clientComponent is set to true on the align component. ", " Without a component on the client the drawer should still work but may not line up as expected.");
    }
    $AdfAgent$$.$AGENT$.getElementById($alignId$$7$$) || ($AdfLogger$$.$LOGGER$.warning("Unable to find dom node with id: ", $alignId$$7$$, ". Using parent as align component."), $alignComponent$$3$$ = $alignPeer_component$$1745$$.getParent(), $alignId$$7$$ = $alignComponent$$3$$.$getClientId$());
    $alignComponent$$3$$ && ($alignPeer_component$$1745$$ = $alignComponent$$3$$.$getPeer$()) && $alignPeer_component$$1745$$.$getContainerId$ && ($alignPeer_component$$1745$$.bind($alignComponent$$3$$), $alignId$$7$$ = $alignPeer_component$$1745$$.$getContainerId$($domElement$$379$$));
    $JSCompiler_StaticMethods__getAlignNodeId$self$$.$_alignId$ = $alignId$$7$$;
  }
  return $JSCompiler_StaticMethods__getAlignNodeId$self$$.$_alignId$;
}
$JSCompiler_prototypeAlias$$.$_handleResize$ = function $$JSCompiler_prototypeAlias$$$$_handleResize$$() {
  var $component$$1746$$ = this.$getComponent$();
  this.$isPopupVisible$($component$$1746$$, $component$$1746$$.$getClientId$()) ? this.$hidePopup$($component$$1746$$, $component$$1746$$.$getClientId$()) : "always" == $component$$1746$$.$getProperty$(AdfRichPanelDrawer.SHOW_HANDLES) && $JSCompiler_StaticMethods__setMargins$$(this, $component$$1746$$, this.$getDomElement$());
};
$JSCompiler_prototypeAlias$$.$_drawerOpened$ = function $$JSCompiler_prototypeAlias$$$$_drawerOpened$$() {
  var $alignNodeId$$6_component$$1747$$ = this.$getComponent$(), $domElement$$380_resizeCallback$$5$$ = this.$getDomElement$();
  $JSCompiler_StaticMethods__checkInvalid$$(this, $alignNodeId$$6_component$$1747$$);
  this.$_isInvalid$ && $AdfPage$$.$PAGE$.$showMessages$();
  var $anchor$$22_anchorSubId$$1_disclosedId$$ = this.$GetOldDisclosedChild$().$getClientId$(), $anchor$$22_anchorSubId$$1_disclosedId$$ = $AdfRichUIPeer$$.$CreateSubId$($anchor$$22_anchorSubId$$1_disclosedId$$, $AdfDhtmlPanelTabbedPeer$$.$_ANCHOR_SUB_ID_ABOVE$), $agent$$499$$ = $AdfAgent$$.$AGENT$, $alignNodeId$$6_component$$1747$$ = $JSCompiler_StaticMethods__getAlignNodeId$$(this, $alignNodeId$$6_component$$1747$$, $domElement$$380_resizeCallback$$5$$);
  this.$_resizeCallback$ = $domElement$$380_resizeCallback$$5$$ = this.$createCallback$(this.$_handleResize$);
  $agent$$499$$.$addResizeListener$($alignNodeId$$6_component$$1747$$, $domElement$$380_resizeCallback$$5$$);
  $anchor$$22_anchorSubId$$1_disclosedId$$ = $agent$$499$$.getElementById($anchor$$22_anchorSubId$$1_disclosedId$$);
  $AdfFocusUtils$$.$focusElement$($anchor$$22_anchorSubId$$1_disclosedId$$);
};
$JSCompiler_prototypeAlias$$.$_drawerClosed$ = function $$JSCompiler_prototypeAlias$$$$_drawerClosed$$() {
  var $disclosedChild$$5_page$$178$$ = $AdfPage$$.$PAGE$, $activeElement$$10$$ = $disclosedChild$$5_page$$178$$.$getDomDocument$().activeElement;
  null != this.$_bodyPaddingRight$ ? this.$GetBodyInnerElement$().style.paddingRight = this.$_bodyPaddingRight$ : null != this.$_bodyPaddingLeft$ && (this.$GetBodyInnerElement$().style.paddingLeft = this.$_bodyPaddingLeft$);
  var $component$$1748_heightElement_widthElement$$ = this.$_widthElement$;
  $component$$1748_heightElement_widthElement$$.style.width = this.$_widthElementWidth$;
  $component$$1748_heightElement_widthElement$$.style.maxWidth = this.$_widthElementMaxWidth$;
  $component$$1748_heightElement_widthElement$$ = this.$_heightElement$;
  $component$$1748_heightElement_widthElement$$.style.height = this.$_heightElementHeight$;
  $component$$1748_heightElement_widthElement$$.style.maxHeight = this.$_heightElementMaxHeight$;
  var $component$$1748_heightElement_widthElement$$ = this.$getComponent$(), $domElement$$381_newActiveElement$$1$$ = this.$getDomElement$(), $agent$$500$$ = $AdfAgent$$.$AGENT$;
  "always" != $component$$1748_heightElement_widthElement$$.$getProperty$(AdfRichPanelDrawer.SHOW_HANDLES) ? $domElement$$381_newActiveElement$$1$$.style.display = "none" : ($AdfAgent$$.$AGENT$.$setCssFloat$($domElement$$381_newActiveElement$$1$$, this.$_float$), $domElement$$381_newActiveElement$$1$$.style.marginTop = this.$_marginTop$, $domElement$$381_newActiveElement$$1$$.style.marginBottom = this.$_marginBottom$, $domElement$$381_newActiveElement$$1$$.style.marginLeft = this.$_marginLeft$, $domElement$$381_newActiveElement$$1$$.style.marginRight = 
  this.$_marginRight$, this.$_overflowVisible$ || ($domElement$$381_newActiveElement$$1$$.style.position = "absolute", $domElement$$381_newActiveElement$$1$$.style.top = "0", $JSCompiler_StaticMethods__alignLeft$$($component$$1748_heightElement_widthElement$$) ? $domElement$$381_newActiveElement$$1$$.style.left = "0" : $domElement$$381_newActiveElement$$1$$.style.right = "0"));
  this.$GetBodyOuterElement$().style.display = "none";
  $domElement$$381_newActiveElement$$1$$.style.width = "";
  this.$GetBodyInnerElement$().style.height = "";
  $AdfDomUtils$$.$removeCSSClassName$($domElement$$381_newActiveElement$$1$$, $AdfDhtmlPanelDrawerPeer$$.$_FLOAT_CLASS$);
  $AdfDomUtils$$.$removeCSSClassName$($domElement$$381_newActiveElement$$1$$, $AdfDhtmlPanelDrawerPeer$$.$_OPEN_CLASS$);
  var $tempFloat_tracker$$1_trackerId$$3$$ = this.$_tempFloat$;
  this.$_newParent$ ? this.$_newParent$.appendChild($domElement$$381_newActiveElement$$1$$) : $tempFloat_tracker$$1_trackerId$$3$$ ? ($tempFloat_tracker$$1_trackerId$$3$$.parentNode.replaceChild($domElement$$381_newActiveElement$$1$$, $tempFloat_tracker$$1_trackerId$$3$$), $agent$$500$$.$elementsRemoved$($tempFloat_tracker$$1_trackerId$$3$$)) : ($tempFloat_tracker$$1_trackerId$$3$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$1748_heightElement_widthElement$$.$getClientId$(), $AdfDhtmlPanelDrawerPeer$$.$_TRACKER_SUBID$), 
  $tempFloat_tracker$$1_trackerId$$3$$ = $AdfAgent$$.$AGENT$.getElementById($tempFloat_tracker$$1_trackerId$$3$$), $tempFloat_tracker$$1_trackerId$$3$$.parentNode.insertBefore($domElement$$381_newActiveElement$$1$$, $tempFloat_tracker$$1_trackerId$$3$$));
  $agent$$500$$.$elementsAdded$($domElement$$381_newActiveElement$$1$$);
  $domElement$$381_newActiveElement$$1$$ = $disclosedChild$$5_page$$178$$.$getDomDocument$().activeElement;
  $activeElement$$10$$ && $activeElement$$10$$ != $domElement$$381_newActiveElement$$1$$ && $AdfFocusUtils$$.$focusElement$($activeElement$$10$$);
  this.$_adfDoNotClose$ || ($disclosedChild$$5_page$$178$$.$setPageProperty$($component$$1748_heightElement_widthElement$$.$getClientId$(), "closed"), $disclosedChild$$5_page$$178$$ = this.$GetOldDisclosedChild$(), this.$QueueClientDisclosureChanges$($disclosedChild$$5_page$$178$$, null));
};
$JSCompiler_prototypeAlias$$.$_getSize$ = function $$JSCompiler_prototypeAlias$$$$_getSize$$($val$$14$$, $alignSize$$) {
  return $val$$14$$ ? ("%" == ("" + $val$$14$$).charAt($val$$14$$.length - 1) && ($val$$14$$ = this.$_percentSize$($val$$14$$, $alignSize$$)), $AdfAgent$$.$getCSSLengthAsInt$("" + $val$$14$$)) : null;
};
$JSCompiler_prototypeAlias$$.$_percentSize$ = function $$JSCompiler_prototypeAlias$$$$_percentSize$$($val$$16$$, $size$$46$$) {
  return $size$$46$$ * Math.abs(parseInt($val$$16$$.substring(0, $val$$16$$.length - 1))) / 100;
};
$JSCompiler_prototypeAlias$$.$_remove$ = function $$JSCompiler_prototypeAlias$$$$_remove$$($component$$1750_originalParent$$) {
  this.$_adfDoNotClose$ = !0;
  this.$cancelAllPopups$($component$$1750_originalParent$$, !0);
  this.$_newParent$ && ($component$$1750_originalParent$$ = this.$_tempFloat$.parentNode, $component$$1750_originalParent$$.insertBefore(this.$getDomElement$(), this.$_tempFloat$), $component$$1750_originalParent$$.removeChild(this.$_tempFloat$), $AdfAgent$$.$AGENT$.$elementsRemoved$(this.$_tempFloat$), this.$_newParent$ = null);
};
$JSCompiler_prototypeAlias$$.$componentRemoved$ = function $$JSCompiler_prototypeAlias$$$$componentRemoved$$($component$$1751$$) {
  var $alignNodeId$$8_domElement$$382$$ = this.$getDomElement$();
  ($alignNodeId$$8_domElement$$382$$ = $JSCompiler_StaticMethods__getAlignNodeId$$(this, $component$$1751$$, $alignNodeId$$8_domElement$$382$$)) && this.$_resizeCallback$ && $AdfAgent$$.$AGENT$.$removeResizeListener$($alignNodeId$$8_domElement$$382$$, this.$_resizeCallback$);
  this.$_remove$($component$$1751$$);
  $AdfDhtmlPanelDrawerPeer$$.$superclass$.$componentRemoved$.call(this, $component$$1751$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPanelDrawerPeer.prototype.componentRemoved", {$componentRemoved$:$AdfDhtmlPanelDrawerPeer$$.prototype.$componentRemoved$});
