function $AdfDhtmlPopupLayer$$() {
  this.Init()
}
$goog$exportSymbol$$("AdfDhtmlPopupLayer", $AdfDhtmlPopupLayer$$);
$AdfObject$$.$createSubclass$($AdfDhtmlPopupLayer$$, $AdfDhtmlPopupWindow$$);
$AdfDhtmlPopupLayer$$.$HINT_ANIMATE_FRAME_METHOD$ = "animateFrameMethod";
$goog$exportSymbol$$("AdfDhtmlPopupLayer.HINT_ANIMATE_FRAME_METHOD", $AdfDhtmlPopupLayer$$.$HINT_ANIMATE_FRAME_METHOD$);
$AdfDhtmlPopupLayer$$.$HINT_ANIMATE_VERTICALLY$ = "animateVertically";
$goog$exportSymbol$$("AdfDhtmlPopupLayer.HINT_ANIMATE_VERTICALLY", $AdfDhtmlPopupLayer$$.$HINT_ANIMATE_VERTICALLY$);
$AdfDhtmlPopupLayer$$.$HINT_ANIMATE_HORIZONTALLY$ = "animateHorizontally";
$goog$exportSymbol$$("AdfDhtmlPopupLayer.HINT_ANIMATE_HORIZONTALLY", $AdfDhtmlPopupLayer$$.$HINT_ANIMATE_HORIZONTALLY$);
$AdfDhtmlPopupLayer$$.$HINT_ANIMATE_CLOSED$ = "animateClosed";
$goog$exportSymbol$$("AdfDhtmlPopupLayer.HINT_ANIMATE_CLOSED", $AdfDhtmlPopupLayer$$.$HINT_ANIMATE_CLOSED$);
$AdfDhtmlPopupLayer$$.$HINT_ANIMATION_DURATION_OPEN_SKIN_PROPERTY$ = "animationDurationOpen";
$goog$exportSymbol$$("AdfDhtmlPopupLayer.HINT_ANIMATION_DURATION_OPEN_SKIN_PROPERTY", $AdfDhtmlPopupLayer$$.$HINT_ANIMATION_DURATION_OPEN_SKIN_PROPERTY$);
$AdfDhtmlPopupLayer$$.$HINT_ANIMATION_DURATION_CLOSE_SKIN_PROPERTY$ = "animationDurationClose";
$goog$exportSymbol$$("AdfDhtmlPopupLayer.HINT_ANIMATION_DURATION_CLOSE_SKIN_PROPERTY", $AdfDhtmlPopupLayer$$.$HINT_ANIMATION_DURATION_CLOSE_SKIN_PROPERTY$);
$AdfDhtmlPopupLayer$$.$HINT_ANIMATE_MIN_WIDTH$ = "animateMinWidth";
$goog$exportSymbol$$("AdfDhtmlPopupLayer.HINT_ANIMATE_MIN_WIDTH", $AdfDhtmlPopupLayer$$.$HINT_ANIMATE_MIN_WIDTH$);
$AdfDhtmlPopupLayer$$.$InitClass$ = function $$AdfDhtmlPopupLayer$$$$InitClass$$() {
  this.$_ANIMATE_DIRECTION_MAP$ = {};
  this.$_ANIMATE_DIRECTION_MAP$[AdfRichPopup.$ALIGN_AFTER_START$] = $AdfDhtmlPopupLayer$$.$HINT_ANIMATE_VERTICALLY$;
  this.$_ANIMATE_DIRECTION_MAP$[AdfRichPopup.$ALIGN_AFTER_END$] = $AdfDhtmlPopupLayer$$.$HINT_ANIMATE_VERTICALLY$;
  this.$_ANIMATE_DIRECTION_MAP$[AdfRichPopup.$ALIGN_BEFORE_START$] = $AdfDhtmlPopupLayer$$.$HINT_ANIMATE_VERTICALLY$;
  this.$_ANIMATE_DIRECTION_MAP$[AdfRichPopup.$ALIGN_BEFORE_END$] = $AdfDhtmlPopupLayer$$.$HINT_ANIMATE_VERTICALLY$;
  this.$_ANIMATE_DIRECTION_MAP$[AdfRichPopup.$ALIGN_END_AFTER$] = $AdfDhtmlPopupLayer$$.$HINT_ANIMATE_HORIZONTALLY$;
  this.$_ANIMATE_DIRECTION_MAP$[AdfRichPopup.$ALIGN_END_BEFORE$] = $AdfDhtmlPopupLayer$$.$HINT_ANIMATE_HORIZONTALLY$;
  this.$_ANIMATE_DIRECTION_MAP$[AdfRichPopup.$ALIGN_START_AFTER$] = $AdfDhtmlPopupLayer$$.$HINT_ANIMATE_HORIZONTALLY$;
  this.$_ANIMATE_DIRECTION_MAP$[AdfRichPopup.$ALIGN_START_BEFORE$] = $AdfDhtmlPopupLayer$$.$HINT_ANIMATE_HORIZONTALLY$;
  this.$_ANIMATE_DIRECTION_MAP$[AdfRichPopup.$ALIGN_OVERLAP_END_BEFORE$] = $AdfDhtmlPopupLayer$$.$HINT_ANIMATE_HORIZONTALLY$;
  this.$_ANIMATE_DIRECTION_MAP$[AdfRichPopup.$ALIGN_OVERLAP_START_BEFORE$] = $AdfDhtmlPopupLayer$$.$HINT_ANIMATE_HORIZONTALLY$
};
$goog$exportSymbol$$("AdfDhtmlPopupLayer.InitClass", $AdfDhtmlPopupLayer$$.$InitClass$);
$AdfDhtmlPopupLayer$$.prototype.Init = function $$AdfDhtmlPopupLayer$$$$Init$() {
  $AdfDhtmlPopupLayer$$.$superclass$.Init.call(this)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupLayer.prototype.Init", {Init:$AdfDhtmlPopupLayer$$.prototype.Init});
$AdfDhtmlPopupLayer$$.prototype.$CreateDomElement$ = function $$AdfDhtmlPopupLayer$$$$$CreateDomElement$$() {
  var $rootElement$$6$$ = $AdfPage$$.$PAGE$.$getDomDocument$().createElement("div");
  this.$SetContentParent$($rootElement$$6$$);
  return $rootElement$$6$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupLayer.prototype.CreateDomElement", {$CreateDomElement$:$AdfDhtmlPopupLayer$$.prototype.$CreateDomElement$});
$AdfDhtmlPopupLayer$$.prototype.$SetContentParent$ = $JSCompiler_set$$("$_contentElement$");
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupLayer.prototype.SetContentParent", {$SetContentParent$:$AdfDhtmlPopupLayer$$.prototype.$SetContentParent$});
$AdfDhtmlPopupLayer$$.prototype.$GetContentParent$ = $JSCompiler_get$$("$_contentElement$");
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupLayer.prototype.GetContentParent", {$GetContentParent$:$AdfDhtmlPopupLayer$$.prototype.$GetContentParent$});
$AdfDhtmlPopupLayer$$.prototype.$HasShadow$ = $JSCompiler_returnArg$$($JSCompiler_alias_FALSE$$);
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupLayer.prototype.HasShadow", {$HasShadow$:$AdfDhtmlPopupLayer$$.prototype.$HasShadow$});
$AdfDhtmlPopupLayer$$.prototype.$ShouldHideOnClip$ = $JSCompiler_returnArg$$($JSCompiler_alias_FALSE$$);
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupLayer.prototype.ShouldHideOnClip", {$ShouldHideOnClip$:$AdfDhtmlPopupLayer$$.prototype.$ShouldHideOnClip$});
$AdfDhtmlPopupLayer$$.prototype.$shouldInvertPosition$ = $JSCompiler_returnArg$$($JSCompiler_alias_FALSE$$);
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupLayer.prototype.shouldInvertPosition", {$shouldInvertPosition$:$AdfDhtmlPopupLayer$$.prototype.$shouldInvertPosition$});
$AdfDhtmlPopupLayer$$.prototype.$GetAnimationDurationSkinProperty$ = function $$AdfDhtmlPopupLayer$$$$$GetAnimationDurationSkinProperty$$($hints$$23$$) {
  return $hints$$23$$[$AdfDhtmlPopupLayer$$.$HINT_ANIMATION_DURATION_OPEN_SKIN_PROPERTY$]
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupLayer.prototype.GetAnimationDurationSkinProperty", {$GetAnimationDurationSkinProperty$:$AdfDhtmlPopupLayer$$.prototype.$GetAnimationDurationSkinProperty$});
$AdfDhtmlPopupLayer$$.prototype.$GetCloseAnimationDurationSkinProperty$ = function $$AdfDhtmlPopupLayer$$$$$GetCloseAnimationDurationSkinProperty$$($hints$$24$$) {
  return $hints$$24$$[$AdfDhtmlPopupLayer$$.$HINT_ANIMATION_DURATION_CLOSE_SKIN_PROPERTY$]
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupLayer.prototype.GetCloseAnimationDurationSkinProperty", {$GetCloseAnimationDurationSkinProperty$:$AdfDhtmlPopupLayer$$.prototype.$GetCloseAnimationDurationSkinProperty$});
$AdfDhtmlPopupLayer$$.prototype.$AnimateUsingWrapper$ = function $$AdfDhtmlPopupLayer$$$$$AnimateUsingWrapper$$($animationDuration$$, $animateFrameMethod_isAchorRight$$1$$, $isAchorBottom$$1$$, $hints$$25$$, $isClosing$$) {
  var $rootElement$$7$$ = this.$getElement$(), $wrapper$$2$$ = $rootElement$$7$$.ownerDocument.createElement("div"), $wrapperStyle$$ = $wrapper$$2$$.style, $rootStyle$$ = $rootElement$$7$$.style, $finalHeight$$ = $rootElement$$7$$.offsetHeight, $finalWidth$$ = $rootElement$$7$$.offsetWidth, $finalLeft$$ = parseInt($rootStyle$$.left), $finalTop$$ = parseInt($rootStyle$$.top), $animationDirection$$, $alignHint$$inline_679_properties$$47$$ = $hints$$25$$[AdfRichPopup.$HINT_ALIGN$];
  $animationDirection$$ = $alignHint$$inline_679_properties$$47$$ ? $AdfDhtmlPopupLayer$$.$_ANIMATE_DIRECTION_MAP$[$alignHint$$inline_679_properties$$47$$] : $JSCompiler_alias_NULL$$;
  var $minWidth$$1$$ = $hints$$25$$[$AdfDhtmlPopupLayer$$.$HINT_ANIMATE_MIN_WIDTH$];
  $minWidth$$1$$ == $JSCompiler_alias_NULL$$ && ($minWidth$$1$$ = 1);
  $animateFrameMethod_isAchorRight$$1$$ ? ($wrapperStyle$$.left = $isClosing$$ ? $rootStyle$$.left : $finalLeft$$ + $finalWidth$$ - $minWidth$$1$$ + "px", $rootStyle$$.left = "0px") : ($wrapperStyle$$.left = $rootStyle$$.left, $wrapperStyle$$.right = $rootStyle$$.right, $rootStyle$$.left = "", $rootStyle$$.right = "0px");
  $wrapperStyle$$.overflow = "hidden";
  $wrapperStyle$$.position = "absolute";
  $alignHint$$inline_679_properties$$47$$ = {};
  $animationDirection$$ == $AdfDhtmlPopupLayer$$.$HINT_ANIMATE_HORIZONTALLY$ ? ($wrapperStyle$$.height = $finalHeight$$ + "px", $wrapperStyle$$.top = $rootStyle$$.top) : ($isAchorBottom$$1$$ ? ($alignHint$$inline_679_properties$$47$$.top = $finalTop$$, $wrapperStyle$$.top = $finalTop$$ + $finalHeight$$ + 1 + "px") : $wrapperStyle$$.top = $rootStyle$$.top, $wrapperStyle$$.height = "1px", $alignHint$$inline_679_properties$$47$$.height = $finalHeight$$);
  $rootStyle$$.top = "0px";
  $animationDirection$$ == $AdfDhtmlPopupLayer$$.$HINT_ANIMATE_VERTICALLY$ ? $wrapperStyle$$.width = $finalWidth$$ + "px" : $isClosing$$ ? ($wrapperStyle$$.width = $finalWidth$$ + "px", $alignHint$$inline_679_properties$$47$$.width = $minWidth$$1$$) : ($wrapperStyle$$.width = $minWidth$$1$$ + "px", $alignHint$$inline_679_properties$$47$$.width = $finalWidth$$);
  $wrapperStyle$$.zIndex = $rootStyle$$.zIndex;
  $rootElement$$7$$.parentNode.replaceChild($wrapper$$2$$, $rootElement$$7$$);
  $wrapper$$2$$.appendChild($rootElement$$7$$);
  $rootStyle$$.visibility = "";
  $animateFrameMethod_isAchorRight$$1$$ && ($alignHint$$inline_679_properties$$47$$.left = $isClosing$$ ? $finalLeft$$ + $finalWidth$$ - $minWidth$$1$$ : $finalLeft$$);
  $AdfPage$$.$PAGE$.$prepareMaskingFrame$();
  ($animateFrameMethod_isAchorRight$$1$$ = $hints$$25$$[$AdfDhtmlPopupLayer$$.$HINT_ANIMATE_FRAME_METHOD$]) || ($animateFrameMethod_isAchorRight$$1$$ = 0);
  this.$_animator$ = $AdfDhtmlElementAnimator$animate$$($animateFrameMethod_isAchorRight$$1$$, $animationDuration$$, [{element:$wrapper$$2$$, properties:$alignHint$$inline_679_properties$$47$$}], $JSCompiler_alias_NULL$$, $isClosing$$ ? $AdfDhtmlPopupLayer$$.$CloseAnimationComplete$ : $AdfDhtmlPopupWindow$$.$AnimationComplete$, {$wrapper$:$wrapper$$2$$, $myself$:this})
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupLayer.prototype.AnimateUsingWrapper", {$AnimateUsingWrapper$:$AdfDhtmlPopupLayer$$.prototype.$AnimateUsingWrapper$});
$AdfDhtmlPopupLayer$$.$CloseAnimationComplete$ = function $$AdfDhtmlPopupLayer$$$$CloseAnimationComplete$$($context$$25_myself$$4$$) {
  var $wrapper$$3$$ = $context$$25_myself$$4$$.$wrapper$;
  $context$$25_myself$$4$$ = $context$$25_myself$$4$$.$myself$;
  $context$$25_myself$$4$$.$_animating$ && (delete $context$$25_myself$$4$$.$_animating$, delete $context$$25_myself$$4$$.$_animator$, $AdfDhtmlPopupWindow$$.$_restoreRootPostAnimation$($wrapper$$3$$), $JSCompiler_StaticMethods__closedPopup$$($context$$25_myself$$4$$))
};
$goog$exportSymbol$$("AdfDhtmlPopupLayer.CloseAnimationComplete", $AdfDhtmlPopupLayer$$.$CloseAnimationComplete$);
$AdfDhtmlPopupLayer$$.prototype.$AnimateClosing$ = function $$AdfDhtmlPopupLayer$$$$$AnimateClosing$$() {
  this.$_animating$ = $JSCompiler_alias_TRUE$$;
  var $isAnchorRight$$ = $JSCompiler_alias_FALSE$$, $isAnchorBottom$$ = $JSCompiler_alias_FALSE$$, $behavior$$2_positionManagerIndex$$1$$ = this.$GetPositionManagerIndex$();
  if(0 <= $behavior$$2_positionManagerIndex$$1$$ && ($behavior$$2_positionManagerIndex$$1$$ = $AdfPage$$.$PAGE$.$getPositionManager$().$getComputedBehavior$($behavior$$2_positionManagerIndex$$1$$))) {
    $isAnchorRight$$ = $behavior$$2_positionManagerIndex$$1$$.$horizontalBehavior$.$floatingElementAnchor$ == $AdfDhtmlPositionManager$$.$RIGHT$, $isAnchorBottom$$ = $behavior$$2_positionManagerIndex$$1$$.$verticalBehavior$.$floatingElementAnchor$ == $AdfDhtmlPositionManager$$.$BOTTOM$
  }
  this.$AnimateUsingWrapper$(this.$_animationCloseDuration$, $isAnchorRight$$, $isAnchorBottom$$, this.$_hints$, $JSCompiler_alias_TRUE$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupLayer.prototype.AnimateClosing", {$AnimateClosing$:$AdfDhtmlPopupLayer$$.prototype.$AnimateClosing$});
$AdfDhtmlPopupLayer$$.prototype.show = function $$AdfDhtmlPopupLayer$$$$show$($hints$$26$$) {
  this.$_hints$ = $hints$$26$$;
  var $animationDuration$$1_page$$44$$ = $AdfPage$$.$PAGE$;
  if($animationDuration$$1_page$$44$$.$isAnimationEnabled$() && $hints$$26$$[$AdfDhtmlPopupLayer$$.$HINT_ANIMATE_CLOSED$]) {
    var $animProperty$$ = this.$GetCloseAnimationDurationSkinProperty$($hints$$26$$);
    $animProperty$$ && ($animationDuration$$1_page$$44$$ = parseInt($animationDuration$$1_page$$44$$.$getLookAndFeel$().$getSkinProperty$($animProperty$$)), 0 < $animationDuration$$1_page$$44$$ && (this.$_animationCloseDuration$ = $animationDuration$$1_page$$44$$))
  }
  $AdfDhtmlPopupLayer$$.$superclass$.show.call(this, $hints$$26$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupLayer.prototype.show", {show:$AdfDhtmlPopupLayer$$.prototype.show});
$AdfDhtmlPopupLayer$$.prototype.$hide$ = function $$AdfDhtmlPopupLayer$$$$$hide$$() {
  if(!this.$_isHiding$) {
    var $component$$329_wrapper$$4$$ = $AdfPage$$.$PAGE$.$findComponent$(this.$_componentId$);
    if($component$$329_wrapper$$4$$ && $component$$329_wrapper$$4$$.$getPeer$().$canHide$ && !$component$$329_wrapper$$4$$.$getPeer$().$canHide$()) {
      return
    }
  }
  var $replaceDom$$1$$ = "true" == this.$_closeHandlerParam$.contentDom.getAttribute($AdfDhtmlPopupWindow$$.$__REPLACEDOM_EXPANDO$);
  if(this.$_isHiding$) {
    this.$_animator$ && $replaceDom$$1$$ && (this.$_animator$.stop(), $component$$329_wrapper$$4$$ = this.$getElement$().parentNode, $AdfDhtmlPopupLayer$$.$CloseAnimationComplete$({$wrapper$:$component$$329_wrapper$$4$$, $myself$:this}))
  }else {
    this.$_isHiding$ = $JSCompiler_alias_TRUE$$;
    this.$_animating$ && (delete this.$_animating$, this.$_animator$ && (this.$_animator$.stop(), delete this.$_animator$), $AdfDhtmlPopupWindow$$.$_restoreRootPostAnimation$(this.$getElement$().parentNode));
    var $page$$45$$ = $AdfPage$$.$PAGE$, $component$$329_wrapper$$4$$ = $page$$45$$.$findComponent$(this.$_componentId$);
    $page$$45$$.$getAutoDismissalManager$().removeBehavior($component$$329_wrapper$$4$$);
    !$JSCompiler_StaticMethods__isRestoring$$($component$$329_wrapper$$4$$) && ($AdfFocusUtils$$.$containsFocus$(this.$getElement$()) && !$AdfFocusUtils$$.$isFocusChangePending$()) && this.$_restoreFocus$();
    this.$getHints$()[$AdfDhtmlPopupLayer$$.$HINT_ANIMATE_CLOSED$] && this.$_animationCloseDuration$ && $replaceDom$$1$$ != $JSCompiler_alias_TRUE$$ ? this.$AnimateClosing$() : $JSCompiler_StaticMethods__closedPopup$$(this)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupLayer.prototype.hide", {$hide$:$AdfDhtmlPopupLayer$$.prototype.$hide$});
function $JSCompiler_StaticMethods__closedPopup$$($JSCompiler_StaticMethods__closedPopup$self$$) {
  var $page$$46$$ = $AdfPage$$.$PAGE$, $closeHandler$$ = $JSCompiler_StaticMethods__closedPopup$self$$.$_closeHandler$;
  $closeHandler$$ && (delete $JSCompiler_StaticMethods__closedPopup$self$$.$_closeHandler$, $closeHandler$$($JSCompiler_StaticMethods__closedPopup$self$$.$_closeHandlerParam$), delete $JSCompiler_StaticMethods__closedPopup$self$$.$_closeHandlerParam$);
  $JSCompiler_StaticMethods__closedPopup$self$$.$destroy$();
  delete $JSCompiler_StaticMethods__closedPopup$self$$.$_isHiding$;
  $page$$46$$.$__perfTimings$($JSCompiler_alias_TRUE$$, $JSCompiler_alias_FALSE$$, $JSCompiler_alias_TRUE$$, "popup hidden")
}
$AdfDhtmlPopupLayer$$.prototype.$getHints$ = $JSCompiler_get$$("$_hints$");
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupLayer.prototype.getHints", {$getHints$:$AdfDhtmlPopupLayer$$.prototype.$getHints$});
function $JSCompiler_StaticMethods__getComponentFromHints$$($JSCompiler_StaticMethods__getComponentFromHints$self$$, $hints$$27$$) {
  var $componentId$$20$$ = $hints$$27$$.componentId;
  $JSCompiler_StaticMethods__getComponentFromHints$self$$.$_componentId$ = $componentId$$20$$;
  return $AdfPage$$.$PAGE$.$findComponent$($componentId$$20$$)
}
$AdfDhtmlPopupLayer$$.prototype.$restoreAutodismiss$ = function $$AdfDhtmlPopupLayer$$$$$restoreAutodismiss$$() {
  if(this.$_autoDismissRemoved$) {
    var $hints$$28$$ = this.$getHints$();
    $AdfPage$$.$PAGE$.$getAutoDismissalManager$().addBehavior($JSCompiler_StaticMethods__getComponentFromHints$$(this, $hints$$28$$), $hints$$28$$);
    this.$_autoDismissRemoved$ = $JSCompiler_alias_FALSE$$
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupLayer.prototype.restoreAutodismiss", {$restoreAutodismiss$:$AdfDhtmlPopupLayer$$.prototype.$restoreAutodismiss$});
$AdfDhtmlPopupLayer$$.prototype.$removeAutodismiss$ = function $$AdfDhtmlPopupLayer$$$$$removeAutodismiss$$() {
  if(!this.$_autoDismissRemoved$) {
    this.$_autoDismissRemoved$ = $JSCompiler_alias_TRUE$$;
    var $hints$$29$$ = this.$getHints$();
    $AdfPage$$.$PAGE$.$getAutoDismissalManager$().removeBehavior($JSCompiler_StaticMethods__getComponentFromHints$$(this, $hints$$29$$))
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupLayer.prototype.removeAutodismiss", {$removeAutodismiss$:$AdfDhtmlPopupLayer$$.prototype.$removeAutodismiss$});
