function $AdfShowPopupBehavior$$($popupId$$11$$, $align$$, $alignId$$3$$, $type$$113$$) {
  this.Init($popupId$$11$$, $align$$, $alignId$$3$$, $type$$113$$)
}
$goog$exportSymbol$$("AdfShowPopupBehavior", $AdfShowPopupBehavior$$);
$AdfObject$$.$createSubclass$($AdfShowPopupBehavior$$, $AdfClientBehavior$$);
$AdfShowPopupBehavior$$.prototype.$initialize$ = function $$AdfShowPopupBehavior$$$$$initialize$$($component$$253_launchId$$) {
  var $type$$114$$ = this.$_type$;
  $type$$114$$ ? "mouseHover" == $type$$114$$ && ($type$$114$$ = $AdfUIInputEvent$$.$MOUSE_IN_EVENT_TYPE$) : $type$$114$$ = $AdfActionEvent$$.$ACTION_EVENT_TYPE$;
  $component$$253_launchId$$.addEventListener($type$$114$$, this.$fire$, this);
  $component$$253_launchId$$ = $component$$253_launchId$$.$getClientId$();
  $AdfAgent$$.$AGENT$.getElementById($component$$253_launchId$$).setAttribute("aria-haspopup", $JSCompiler_alias_TRUE$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfShowPopupBehavior.prototype.initialize", {$initialize$:$AdfShowPopupBehavior$$.prototype.$initialize$});
$AdfShowPopupBehavior$$.prototype.$_fireCancel$ = function $$AdfShowPopupBehavior$$$$$_fireCancel$$($event$$80$$) {
  var $page$$16$$ = $AdfPage$$.$PAGE$, $popup$$3_popupId$$12$$ = this.$_popupId$, $source$$100$$ = $event$$80$$.getSource(), $launchSourceId$$1$$ = $source$$100$$.$getClientId$(), $popup$$3_popupId$$12$$ = $source$$100$$.$findComponent$($popup$$3_popupId$$12$$), $delayedActivationState$$ = $popup$$3_popupId$$12$$.$_delayedActivationState$;
  $delayedActivationState$$ && $delayedActivationState$$.launchSourceId == $launchSourceId$$1$$ && ($page$$16$$.$cancelTimer$($delayedActivationState$$.timerId), delete $popup$$3_popupId$$12$$.$_delayedActivationState$, $source$$100$$.removeEventListener($AdfUIInputEvent$$.$MOUSE_OUT_EVENT_TYPE$, this.$_fireCancel$, this), $event$$80$$.cancel())
};
$AdfShowPopupBehavior$$.prototype.$fire$ = function $$AdfShowPopupBehavior$$$$$fire$$($event$$81_timerId$$5$$) {
  $event$$81_timerId$$5$$.cancel();
  var $page$$17$$ = $AdfPage$$.$PAGE$, $type$$115$$ = this.$_type$, $source$$101$$ = $event$$81_timerId$$5$$.getSource(), $launchSourceId$$2$$ = $source$$101$$.$getClientId$(), $popup$$4$$ = $source$$101$$.$findComponent$(this.$_popupId$);
  if($popup$$4$$) {
    var $delayedActivationState$$1_hints$$7_isInlineSelector$$ = $popup$$4$$.$_delayedActivationState$;
    if($delayedActivationState$$1_hints$$7_isInlineSelector$$) {
      if($delayedActivationState$$1_hints$$7_isInlineSelector$$.launchSourceId == $launchSourceId$$2$$) {
        return
      }
      $page$$17$$.$cancelTimer$($delayedActivationState$$1_hints$$7_isInlineSelector$$.timerId);
      delete $popup$$4$$.$_delayedActivationState$
    }
    if($popup$$4$$.$isPopupVisible$()) {
      var $alignId$$4_oldLaunchSourceId$$inline_526_popupElement_pos$$7_wasOpendFromSameSource$$ = this.$_getPopupWindow$($popup$$4$$);
      if($alignId$$4_oldLaunchSourceId$$inline_526_popupElement_pos$$7_wasOpendFromSameSource$$ == $JSCompiler_alias_NULL$$) {
        return
      }
      $delayedActivationState$$1_hints$$7_isInlineSelector$$ = $alignId$$4_oldLaunchSourceId$$inline_526_popupElement_pos$$7_wasOpendFromSameSource$$ && $alignId$$4_oldLaunchSourceId$$inline_526_popupElement_pos$$7_wasOpendFromSameSource$$ instanceof $AdfDhtmlPopupSelector$$ && !($alignId$$4_oldLaunchSourceId$$inline_526_popupElement_pos$$7_wasOpendFromSameSource$$ instanceof $AdfDhtmlNoteWindowPopupSelector$$) ? $JSCompiler_alias_TRUE$$ : $JSCompiler_alias_FALSE$$;
      $alignId$$4_oldLaunchSourceId$$inline_526_popupElement_pos$$7_wasOpendFromSameSource$$ = ($alignId$$4_oldLaunchSourceId$$inline_526_popupElement_pos$$7_wasOpendFromSameSource$$ = $alignId$$4_oldLaunchSourceId$$inline_526_popupElement_pos$$7_wasOpendFromSameSource$$.$getLaunchSourceId$()) && $alignId$$4_oldLaunchSourceId$$inline_526_popupElement_pos$$7_wasOpendFromSameSource$$ == $launchSourceId$$2$$ ? $JSCompiler_alias_TRUE$$ : $JSCompiler_alias_FALSE$$;
      if($delayedActivationState$$1_hints$$7_isInlineSelector$$ && !("mouseHover" == $type$$115$$ || "mouseMove" == $type$$115$$ || "mouseOver" == $type$$115$$ || "mouseOut" == $type$$115$$)) {
        if($popup$$4$$.$hide$(), $alignId$$4_oldLaunchSourceId$$inline_526_popupElement_pos$$7_wasOpendFromSameSource$$) {
          return
        }
      }else {
        $alignId$$4_oldLaunchSourceId$$inline_526_popupElement_pos$$7_wasOpendFromSameSource$$ || $popup$$4$$.$hide$()
      }
    }
    var $align$$1_alignComponent$$1_lastIndex$$ = this.$_align$, $alignId$$4_oldLaunchSourceId$$inline_526_popupElement_pos$$7_wasOpendFromSameSource$$ = this.$_alignId$, $delayedActivationState$$1_hints$$7_isInlineSelector$$ = {};
    $delayedActivationState$$1_hints$$7_isInlineSelector$$[AdfRichPopup.$HINT_LAUNCH_ID$] = $launchSourceId$$2$$;
    var $isContextMenu$$ = this.$_type$ == $AdfComponentEvent$$.$CONTEXT_MENU_EVENT_TYPE$;
    if($alignId$$4_oldLaunchSourceId$$inline_526_popupElement_pos$$7_wasOpendFromSameSource$$ || $align$$1_alignComponent$$1_lastIndex$$ || $isContextMenu$$) {
      $align$$1_alignComponent$$1_lastIndex$$ && ($delayedActivationState$$1_hints$$7_isInlineSelector$$[AdfRichPopup.$HINT_ALIGN$] = $align$$1_alignComponent$$1_lastIndex$$, $alignId$$4_oldLaunchSourceId$$inline_526_popupElement_pos$$7_wasOpendFromSameSource$$ || ($alignId$$4_oldLaunchSourceId$$inline_526_popupElement_pos$$7_wasOpendFromSameSource$$ = $source$$101$$.$getClientId$(), $align$$1_alignComponent$$1_lastIndex$$ = $alignId$$4_oldLaunchSourceId$$inline_526_popupElement_pos$$7_wasOpendFromSameSource$$.lastIndexOf(":"), 
      -1 != $align$$1_alignComponent$$1_lastIndex$$ && ($alignId$$4_oldLaunchSourceId$$inline_526_popupElement_pos$$7_wasOpendFromSameSource$$ = $alignId$$4_oldLaunchSourceId$$inline_526_popupElement_pos$$7_wasOpendFromSameSource$$.substring($align$$1_alignComponent$$1_lastIndex$$ + 1)))), $alignId$$4_oldLaunchSourceId$$inline_526_popupElement_pos$$7_wasOpendFromSameSource$$ && (($align$$1_alignComponent$$1_lastIndex$$ = $source$$101$$.$findComponent$($alignId$$4_oldLaunchSourceId$$inline_526_popupElement_pos$$7_wasOpendFromSameSource$$)) ? 
      $delayedActivationState$$1_hints$$7_isInlineSelector$$[AdfRichPopup.$HINT_ALIGN_ID$] = $align$$1_alignComponent$$1_lastIndex$$.$getClientId$() : $AdfLogger$$.$LOGGER$.warning("Unable to find align component: ", $alignId$$4_oldLaunchSourceId$$inline_526_popupElement_pos$$7_wasOpendFromSameSource$$)), $isContextMenu$$ && ($delayedActivationState$$1_hints$$7_isInlineSelector$$.type = "menu", $delayedActivationState$$1_hints$$7_isInlineSelector$$.autodismiss = "autodismissMenu", $alignId$$4_oldLaunchSourceId$$inline_526_popupElement_pos$$7_wasOpendFromSameSource$$ || 
      ($alignId$$4_oldLaunchSourceId$$inline_526_popupElement_pos$$7_wasOpendFromSameSource$$ = $AdfAgent$$.$AGENT$.$getMousePosition$($event$$81_timerId$$5$$.$getNativeEvent$()), $delayedActivationState$$1_hints$$7_isInlineSelector$$.mousePosition = $alignId$$4_oldLaunchSourceId$$inline_526_popupElement_pos$$7_wasOpendFromSameSource$$)), "mouseHover" == $type$$115$$ && ($delayedActivationState$$1_hints$$7_isInlineSelector$$.autodismiss = "autodismissMouseOut", $delayedActivationState$$1_hints$$7_isInlineSelector$$.autodismissMouseOut = 
      $delayedActivationState$$1_hints$$7_isInlineSelector$$[AdfRichPopup.$HINT_ALIGN_ID$] ? $delayedActivationState$$1_hints$$7_isInlineSelector$$[AdfRichPopup.$HINT_ALIGN_ID$] : $delayedActivationState$$1_hints$$7_isInlineSelector$$[AdfRichPopup.$HINT_LAUNCH_ID$])
    }
    $event$$81_timerId$$5$$.getType() == $AdfUIInputEvent$$.$MOUSE_IN_EVENT_TYPE$ ? ($event$$81_timerId$$5$$ = $page$$17$$.$scheduleTimer$(this, this.$_onMouseOverTimeout$, {hints:$delayedActivationState$$1_hints$$7_isInlineSelector$$, popup:$popup$$4$$, source:$source$$101$$}, 500), $popup$$4$$.$_delayedActivationState$ = {timerId:$event$$81_timerId$$5$$, launchSourceId:$launchSourceId$$2$$}, $source$$101$$.addEventListener($AdfUIInputEvent$$.$MOUSE_OUT_EVENT_TYPE$, this.$_fireCancel$, this)) : 
    $popup$$4$$.show($delayedActivationState$$1_hints$$7_isInlineSelector$$)
  }else {
    $AdfLogger$$.$LOGGER$.severe("Could not find popup ", this.$_popupId$, " from component ", $source$$101$$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfShowPopupBehavior.prototype.fire", {$fire$:$AdfShowPopupBehavior$$.prototype.$fire$});
$AdfShowPopupBehavior$$.prototype.$_onMouseOverTimeout$ = function $$AdfShowPopupBehavior$$$$$_onMouseOverTimeout$$($source$$102_state$$11$$) {
  var $popup$$5$$ = $source$$102_state$$11$$.popup, $hints$$8$$ = $source$$102_state$$11$$.hints;
  $source$$102_state$$11$$ = $source$$102_state$$11$$.source;
  $popup$$5$$.$isPopupVisible$() || $popup$$5$$.show($hints$$8$$);
  $source$$102_state$$11$$.removeEventListener($AdfUIInputEvent$$.$MOUSE_OUT_EVENT_TYPE$, this.$_fireCancel$, this);
  delete $popup$$5$$.$_delayedActivationState$
};
$AdfShowPopupBehavior$$.prototype.$_getPopupWindow$ = function $$AdfShowPopupBehavior$$$$$_getPopupWindow$$($component$$254_popupList$$5$$) {
  var $popupId$$14$$ = $component$$254_popupList$$5$$.$getClientId$(), $peer$$45$$ = $component$$254_popupList$$5$$.$getPeer$();
  $peer$$45$$.bind($component$$254_popupList$$5$$);
  $component$$254_popupList$$5$$ = $peer$$45$$.$getAllPopups$($component$$254_popupList$$5$$);
  return $component$$254_popupList$$5$$ == $JSCompiler_alias_NULL$$ ? $JSCompiler_alias_NULL$$ : $component$$254_popupList$$5$$[$popupId$$14$$]
};
$AdfShowPopupBehavior$$.prototype.Init = function $$AdfShowPopupBehavior$$$$Init$($popupId$$15$$, $align$$2$$, $alignId$$5$$, $type$$116$$) {
  $AdfShowPopupBehavior$$.$superclass$.Init.call(this);
  $AdfAssert$$.assert($popupId$$15$$ != $JSCompiler_alias_NULL$$);
  this.$_popupId$ = $popupId$$15$$;
  this.$_align$ = $align$$2$$;
  this.$_alignId$ = $alignId$$5$$;
  this.$_type$ = $type$$116$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfShowPopupBehavior.prototype.Init", {Init:$AdfShowPopupBehavior$$.prototype.Init});
