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$$12$$ = $AdfPage$$.$PAGE$.$getDomDocument$().createElement("div");
  this.$SetContentParent$($rootElement$$12$$);
  return $rootElement$$12$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupLayer.prototype.CreateDomElement", {$CreateDomElement$:$AdfDhtmlPopupLayer$$.prototype.$CreateDomElement$});
$AdfDhtmlPopupLayer$$.prototype.$SetContentParent$ = function $$AdfDhtmlPopupLayer$$$$$SetContentParent$$($contentParentElement$$) {
  this.$_contentElement$ = $contentParentElement$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupLayer.prototype.SetContentParent", {$SetContentParent$:$AdfDhtmlPopupLayer$$.prototype.$SetContentParent$});
$AdfDhtmlPopupLayer$$.prototype.$GetContentParent$ = function $$AdfDhtmlPopupLayer$$$$$GetContentParent$$() {
  return this.$_contentElement$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupLayer.prototype.GetContentParent", {$GetContentParent$:$AdfDhtmlPopupLayer$$.prototype.$GetContentParent$});
$AdfDhtmlPopupLayer$$.prototype.$HasShadow$ = function $$AdfDhtmlPopupLayer$$$$$HasShadow$$() {
  return !1;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupLayer.prototype.HasShadow", {$HasShadow$:$AdfDhtmlPopupLayer$$.prototype.$HasShadow$});
$AdfDhtmlPopupLayer$$.prototype.$ShouldHideOnClip$ = function $$AdfDhtmlPopupLayer$$$$$ShouldHideOnClip$$() {
  return !1;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupLayer.prototype.ShouldHideOnClip", {$ShouldHideOnClip$:$AdfDhtmlPopupLayer$$.prototype.$ShouldHideOnClip$});
$AdfDhtmlPopupLayer$$.prototype.$shouldInvertPosition$ = function $$AdfDhtmlPopupLayer$$$$$shouldInvertPosition$$() {
  return !1;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupLayer.prototype.shouldInvertPosition", {$shouldInvertPosition$:$AdfDhtmlPopupLayer$$.prototype.$shouldInvertPosition$});
$AdfDhtmlPopupLayer$$.prototype.$GetCloseAnimationDuration$ = function $$AdfDhtmlPopupLayer$$$$$GetCloseAnimationDuration$$() {
  return this.$_animationCloseDuration$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupLayer.prototype.GetCloseAnimationDuration", {$GetCloseAnimationDuration$:$AdfDhtmlPopupLayer$$.prototype.$GetCloseAnimationDuration$});
$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_hints$$25$$, $isOpening$$) {
  var $rootElement$$13$$ = this.$getElement$(), $wrapper$$2$$ = $rootElement$$13$$.ownerDocument.createElement("div"), $wrapperStyle$$ = $wrapper$$2$$.style, $rootStyle$$ = $rootElement$$13$$.style, $finalHeight$$ = $rootElement$$13$$.offsetHeight, $finalWidth$$ = $rootElement$$13$$.offsetWidth, $finalLeft$$ = parseInt($rootStyle$$.left), $finalTop$$ = parseInt($rootStyle$$.top), $animationDirection$$, $alignHint$$inline_852_properties$$49$$ = $animateFrameMethod_hints$$25$$[AdfRichPopup.$HINT_ALIGN$];
  $animationDirection$$ = $alignHint$$inline_852_properties$$49$$ ? $AdfDhtmlPopupLayer$$.$_ANIMATE_DIRECTION_MAP$[$alignHint$$inline_852_properties$$49$$] : null;
  var $minWidth$$1$$ = $animateFrameMethod_hints$$25$$[$AdfDhtmlPopupLayer$$.$HINT_ANIMATE_MIN_WIDTH$], $anchor$$11$$ = $JSCompiler_StaticMethods__getAnchorProperties$$(this);
  null == $minWidth$$1$$ && ($minWidth$$1$$ = 1);
  $anchor$$11$$.$isRight$ ? ($wrapperStyle$$.left = $isOpening$$ ? $finalLeft$$ + $finalWidth$$ - $minWidth$$1$$ + "px" : $rootStyle$$.left, $rootStyle$$.left = "0px") : ($wrapperStyle$$.left = $rootStyle$$.left, $wrapperStyle$$.right = $rootStyle$$.right, $rootStyle$$.left = "", $rootStyle$$.right = "0px");
  $wrapperStyle$$.overflow = "hidden";
  $wrapperStyle$$.position = "absolute";
  $alignHint$$inline_852_properties$$49$$ = {};
  $animationDirection$$ == $AdfDhtmlPopupLayer$$.$HINT_ANIMATE_HORIZONTALLY$ ? ($wrapperStyle$$.height = $finalHeight$$ + "px", $wrapperStyle$$.top = $rootStyle$$.top) : ($anchor$$11$$.$isBottom$ ? ($alignHint$$inline_852_properties$$49$$.top = $finalTop$$, $wrapperStyle$$.top = $finalTop$$ + $finalHeight$$ + 1 + "px") : $wrapperStyle$$.top = $rootStyle$$.top, $wrapperStyle$$.height = "1px", $alignHint$$inline_852_properties$$49$$.height = $finalHeight$$);
  $rootStyle$$.top = "0px";
  $animationDirection$$ == $AdfDhtmlPopupLayer$$.$HINT_ANIMATE_VERTICALLY$ ? $wrapperStyle$$.width = $finalWidth$$ + "px" : $isOpening$$ ? ($wrapperStyle$$.width = $minWidth$$1$$ + "px", $alignHint$$inline_852_properties$$49$$.width = $finalWidth$$) : ($wrapperStyle$$.width = $finalWidth$$ + "px", $alignHint$$inline_852_properties$$49$$.width = $minWidth$$1$$);
  $wrapperStyle$$.zIndex = $rootStyle$$.zIndex;
  $rootElement$$13$$.parentNode.replaceChild($wrapper$$2$$, $rootElement$$13$$);
  $wrapper$$2$$.appendChild($rootElement$$13$$);
  $rootStyle$$.visibility = "";
  $anchor$$11$$.$isRight$ && ($alignHint$$inline_852_properties$$49$$.left = $isOpening$$ ? $finalLeft$$ : $finalLeft$$ + $finalWidth$$ - $minWidth$$1$$);
  $AdfPage$$.$PAGE$.$prepareMaskingFrame$();
  ($animateFrameMethod_hints$$25$$ = $animateFrameMethod_hints$$25$$[$AdfDhtmlPopupLayer$$.$HINT_ANIMATE_FRAME_METHOD$]) || ($animateFrameMethod_hints$$25$$ = 0);
  this.$_animator$ = $AdfDhtmlElementAnimator$animate$$($animateFrameMethod_hints$$25$$, $animationDuration$$, [{element:$wrapper$$2$$, properties:$alignHint$$inline_852_properties$$49$$}], null, $isOpening$$ ? $AdfDhtmlPopupWindow$$.$OpenAnimationComplete$ : $AdfDhtmlPopupWindow$$.$CloseAnimationComplete$, {$wrapper$:$wrapper$$2$$, $myself$:this});
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupLayer.prototype.AnimateUsingWrapper", {$AnimateUsingWrapper$:$AdfDhtmlPopupLayer$$.prototype.$AnimateUsingWrapper$});
$AdfDhtmlPopupLayer$$.prototype.show = function $$AdfDhtmlPopupLayer$$$$show$($hints$$26$$) {
  this.$_hints$ = $hints$$26$$;
  var $animationDuration$$1_page$$62$$ = $AdfPage$$.$PAGE$;
  if ($animationDuration$$1_page$$62$$.$isAnimationEnabled$() && $hints$$26$$[$AdfDhtmlPopupLayer$$.$HINT_ANIMATE_CLOSED$]) {
    var $animProperty$$ = this.$GetCloseAnimationDurationSkinProperty$($hints$$26$$);
    $animProperty$$ && ($animationDuration$$1_page$$62$$ = parseInt($animationDuration$$1_page$$62$$.$getLookAndFeel$().$getSkinProperty$($animProperty$$)), 0 < $animationDuration$$1_page$$62$$ && (this.$_animationCloseDuration$ = $animationDuration$$1_page$$62$$));
  }
  $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$$666_wrapper$$3$$ = $AdfPage$$.$PAGE$.$findComponent$(this.$_componentId$);
    if ($component$$666_wrapper$$3$$ && $component$$666_wrapper$$3$$.$getPeer$().$canHide$ && !$component$$666_wrapper$$3$$.$getPeer$().$canHide$()) {
      return;
    }
  }
  var $replaceDom$$1$$ = "true" == this.$_closeHandlerParam$.contentDom.getAttribute($AdfDhtmlPopupWindow$$.$__REPLACEDOM_EXPANDO$);
  this.$_isHiding$ = !0;
  this.$_animator$ && (this.$_animator$.stop(), $component$$666_wrapper$$3$$ = this.$getElement$().parentNode, $AdfDhtmlPopupWindow$$.$OpenAnimationComplete$({$wrapper$:$component$$666_wrapper$$3$$, $myself$:this}));
  var $page$$63$$ = $AdfPage$$.$PAGE$, $component$$666_wrapper$$3$$ = $page$$63$$.$findComponent$(this.$_componentId$);
  $page$$63$$.$getAutoDismissalManager$().removeBehavior($component$$666_wrapper$$3$$);
  $JSCompiler_StaticMethods__isRestoring$$($component$$666_wrapper$$3$$) || !$AdfFocusUtils$$.$containsFocus$(this.$getElement$()) || $AdfFocusUtils$$.$isFocusChangePending$() || this.$_restoreFocus$();
  this.$getHints$()[$AdfDhtmlPopupLayer$$.$HINT_ANIMATE_CLOSED$] && this.$_animationCloseDuration$ && 1 != $replaceDom$$1$$ ? this.$AnimateClosing$(this.$getHints$()) : this.$ClosedPopup$();
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupLayer.prototype.hide", {$hide$:$AdfDhtmlPopupLayer$$.prototype.$hide$});
$AdfDhtmlPopupLayer$$.prototype.$ClosedPopup$ = function $$AdfDhtmlPopupLayer$$$$$ClosedPopup$$() {
  var $page$$64$$ = $AdfPage$$.$PAGE$, $closeHandler$$ = this.$_closeHandler$;
  $closeHandler$$ && (delete this.$_closeHandler$, $closeHandler$$(this.$_closeHandlerParam$), delete this.$_closeHandlerParam$);
  this.$destroy$();
  delete this.$_isHiding$;
  $page$$64$$.$__perfTimings$(!0, !1, !0, "popup hidden");
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupLayer.prototype.ClosedPopup", {$ClosedPopup$:$AdfDhtmlPopupLayer$$.prototype.$ClosedPopup$});
$AdfDhtmlPopupLayer$$.prototype.$getHints$ = function $$AdfDhtmlPopupLayer$$$$$getHints$$() {
  return this.$_hints$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupLayer.prototype.getHints", {$getHints$:$AdfDhtmlPopupLayer$$.prototype.$getHints$});
function $JSCompiler_StaticMethods__getComponentFromHints$$($JSCompiler_StaticMethods__getComponentFromHints$self$$, $hints$$27$$) {
  var $componentId$$21$$ = $hints$$27$$.componentId;
  $JSCompiler_StaticMethods__getComponentFromHints$self$$.$_componentId$ = $componentId$$21$$;
  return $AdfPage$$.$PAGE$.$findComponent$($componentId$$21$$);
}
$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$ = !1;
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupLayer.prototype.restoreAutodismiss", {$restoreAutodismiss$:$AdfDhtmlPopupLayer$$.prototype.$restoreAutodismiss$});
$AdfDhtmlPopupLayer$$.prototype.$removeAutodismiss$ = function $$AdfDhtmlPopupLayer$$$$$removeAutodismiss$$() {
  if (!this.$_autoDismissRemoved$) {
    this.$_autoDismissRemoved$ = !0;
    var $hints$$29$$ = this.$getHints$();
    $AdfPage$$.$PAGE$.$getAutoDismissalManager$().removeBehavior($JSCompiler_StaticMethods__getComponentFromHints$$(this, $hints$$29$$));
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupLayer.prototype.removeAutodismiss", {$removeAutodismiss$:$AdfDhtmlPopupLayer$$.prototype.$removeAutodismiss$});
