var $AdfDhtmlPopupPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfRichUIPeer$$, "AdfDhtmlPopupPeer", $JSCompiler_alias_TRUE$$);
$goog$exportSymbol$$("AdfDhtmlPopupPeer", $AdfDhtmlPopupPeer$$);
$AdfDhtmlPopupPeer$$.$InitSubclass$ = function $$AdfDhtmlPopupPeer$$$$InitSubclass$$() {
  $AdfObject$$.$ensureClassInitialization$(AdfRichPopup);
  this.$_SHOWN$ = "_shown";
  this.$_SYNC_HINTS_LIST$ = [AdfRichPopup.$HINT_ALIGN_ID$, AdfRichPopup.$HINT_ALIGN$, "leftPosition", "topPosition", AdfRichPopup.$HINT_LAUNCH_ID$, "mousePosition"];
  this.$SKIP_OUT_OF_SCOPE_CHECK$ = "_skipOutOfScopeCheck";
  $AdfRichUIPeer$$.$addComponentEventHandlers$(this, $AdfUIInputEvent$$.$KEY_PRESS_EVENT_TYPE$, $AdfUIInputEvent$$.$FOCUS_EVENT_TYPE$, $AdfUIInputEvent$$.$BLUR_EVENT_TYPE$)
};
$goog$exportSymbol$$("AdfDhtmlPopupPeer.InitSubclass", $AdfDhtmlPopupPeer$$.$InitSubclass$);
$AdfDhtmlPopupPeer$$.prototype.$HandleComponentFocus$ = function $$AdfDhtmlPopupPeer$$$$$HandleComponentFocus$$($componentEvent$$315_eventTargetDom$$1$$) {
  $componentEvent$$315_eventTargetDom$$1$$ instanceof $AdfDomComponentFocusEvent$$ && ($componentEvent$$315_eventTargetDom$$1$$ = $componentEvent$$315_eventTargetDom$$1$$.$getNativeEventTarget$(), $JSCompiler_StaticMethods__handlePopupTimeout$$(this, $componentEvent$$315_eventTargetDom$$1$$))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupPeer.prototype.HandleComponentFocus", {$HandleComponentFocus$:$AdfDhtmlPopupPeer$$.prototype.$HandleComponentFocus$});
$AdfDhtmlPopupPeer$$.prototype.$HandleComponentBlur$ = function $$AdfDhtmlPopupPeer$$$$$HandleComponentBlur$$() {
  var $eventTargetDom$$2$$ = $AdfAgent$$.$AGENT$.$getDomDocument$().activeElement;
  $JSCompiler_StaticMethods__handlePopupTimeout$$(this, $eventTargetDom$$2$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupPeer.prototype.HandleComponentBlur", {$HandleComponentBlur$:$AdfDhtmlPopupPeer$$.prototype.$HandleComponentBlur$});
function $JSCompiler_StaticMethods__handlePopupTimeout$$($JSCompiler_StaticMethods__handlePopupTimeout$self$$, $target$$154$$) {
  var $component$$1357$$ = $JSCompiler_StaticMethods__handlePopupTimeout$self$$.$getComponent$();
  if($component$$1357$$[$AdfRichUIPeer$$.$_POPUP_LIST$] && $component$$1357$$[$AdfRichUIPeer$$.$_POPUP_LIST$][$component$$1357$$.$getClientId$()]) {
    var $popupElement$$10$$ = $component$$1357$$[$AdfRichUIPeer$$.$_POPUP_LIST$][$component$$1357$$.$getClientId$()].$getElement$(), $autoDismissalManager$$3$$ = $AdfPage$$.$PAGE$.$getAutoDismissalManager$();
    $AdfDomUtils$$.$isAncestorOrSelf$($popupElement$$10$$, $target$$154$$) ? $autoDismissalManager$$3$$.$stopPopupDismissTimeout$($component$$1357$$, $popupElement$$10$$) : $autoDismissalManager$$3$$.$restartPopupDismissTimeout$($component$$1357$$, $popupElement$$10$$)
  }
}
$AdfDhtmlPopupPeer$$.prototype.$HandleComponentKeyPress$ = function $$AdfDhtmlPopupPeer$$$$$HandleComponentKeyPress$$($componentEvent$$317_defaultCommandSubform_id$$333$$) {
  if($componentEvent$$317_defaultCommandSubform_id$$333$$.$getKeyCode$() == $AdfKeyStroke$$.$ENTER_KEY$ && ($componentEvent$$317_defaultCommandSubform_id$$333$$.$stopBubbling$(), $componentEvent$$317_defaultCommandSubform_id$$333$$ = $AdfDhtmlFormPeer$$.$__GetDefaultCommandTriggerId$($componentEvent$$317_defaultCommandSubform_id$$333$$, $JSCompiler_alias_TRUE$$), $componentEvent$$317_defaultCommandSubform_id$$333$$ != $JSCompiler_alias_NULL$$ && ($componentEvent$$317_defaultCommandSubform_id$$333$$ = 
  $AdfDhtmlSubformPeer$$.$getDefaultCommandSubform$($componentEvent$$317_defaultCommandSubform_id$$333$$)))) {
    var $defaultCommandId$$1_subformId$$ = $componentEvent$$317_defaultCommandSubform_id$$333$$.$getClientId$();
    if(0 != this.$getComponent$().$getClientId$().indexOf($defaultCommandId$$1_subformId$$ + ":")) {
      var $defaultCommandId$$1_subformId$$ = $componentEvent$$317_defaultCommandSubform_id$$333$$.getDefaultCommand(), $defaultCommand$$1$$ = $componentEvent$$317_defaultCommandSubform_id$$333$$.$findComponent$($defaultCommandId$$1_subformId$$);
      $defaultCommand$$1$$ ? $AdfActionEvent$$.$queue$($defaultCommand$$1$$, $defaultCommand$$1$$.getPartialSubmit()) : $AdfLogger$$.$LOGGER$.warning("DefaultCommand with the ID of '" + $defaultCommandId$$1_subformId$$ + "' is not found for component: " + $componentEvent$$317_defaultCommandSubform_id$$333$$)
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupPeer.prototype.HandleComponentKeyPress", {$HandleComponentKeyPress$:$AdfDhtmlPopupPeer$$.prototype.$HandleComponentKeyPress$});
$AdfDhtmlPopupPeer$$.prototype.$fetchCanceled$ = function $$AdfDhtmlPopupPeer$$$$$fetchCanceled$$($component$$1358$$) {
  return $component$$1358$$.$_isFetching$ ? $component$$1358$$.$_isFetchCanceled$ = $JSCompiler_alias_TRUE$$ : $JSCompiler_alias_FALSE$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupPeer.prototype.fetchCanceled", {$fetchCanceled$:$AdfDhtmlPopupPeer$$.prototype.$fetchCanceled$});
$AdfDhtmlPopupPeer$$.prototype.show = function $$AdfDhtmlPopupPeer$$$$show$($component$$1359$$, $hints$$89$$) {
  $AdfAssert$$.$assertPrototype$($component$$1359$$, $AdfUIComponent$$);
  $AdfAssert$$.$assertObjectOrNull$($hints$$89$$);
  if(!this.$isVisible$($component$$1359$$)) {
    var $contentDelivery$$1_isLazyUncached_page$$155$$ = $component$$1359$$.getContentDelivery(), $hintsPagePropertyKey_isLazy$$ = $contentDelivery$$1_isLazyUncached_page$$155$$ == AdfRichPopup.$CONTENT_DELIVERY_LAZY$, $contentDelivery$$1_isLazyUncached_page$$155$$ = $contentDelivery$$1_isLazyUncached_page$$155$$ == AdfRichPopup.$CONTENT_DELIVERY_LAZY_UNCACHED$, $launchId$$6$$ = $JSCompiler_alias_NULL$$;
    $hints$$89$$ && ($launchId$$6$$ = $hints$$89$$[AdfRichPopup.$HINT_LAUNCH_ID$]);
    if($hintsPagePropertyKey_isLazy$$ || $contentDelivery$$1_isLazyUncached_page$$155$$) {
      if($component$$1359$$.$_isFetching$) {
        $AdfLogger$$.$LOGGER$.fine("Waiting on popup content delivery: " + $component$$1359$$.$getClientId$());
        return
      }
      if(!$component$$1359$$.$_hasContent$) {
        $contentDelivery$$1_isLazyUncached_page$$155$$ = $AdfPage$$.$PAGE$;
        $hintsPagePropertyKey_isLazy$$ = $AdfDhtmlPopupPeer$$.$_createPagePropertyKey$($component$$1359$$.$getClientId$());
        $contentDelivery$$1_isLazyUncached_page$$155$$.$setPageProperty$($hintsPagePropertyKey_isLazy$$, $hints$$89$$);
        var $autoDismissalTimeout$$2_isRestoreImmediate_openEvent_params$$56$$;
        $launchId$$6$$ != $JSCompiler_alias_NULL$$ && ($autoDismissalTimeout$$2_isRestoreImmediate_openEvent_params$$56$$ = {}, $autoDismissalTimeout$$2_isRestoreImmediate_openEvent_params$$56$$.launchId = $launchId$$6$$);
        this.$syncPrivateProperties$($component$$1359$$, $hints$$89$$, $JSCompiler_alias_TRUE$$);
        $component$$1359$$.$_isFetching$ = $JSCompiler_alias_TRUE$$;
        (new $AdfContentFetchEvent$$($component$$1359$$, $AdfContentFetchEvent$$.$FETCH_EVENT_TYPE$, $autoDismissalTimeout$$2_isRestoreImmediate_openEvent_params$$56$$)).$queue$();
        return
      }
    }
    $contentDelivery$$1_isLazyUncached_page$$155$$ && delete $component$$1359$$.$_hasContent$;
    $component$$1359$$.$_isFetchCanceled$ ? (delete $component$$1359$$.$_isFetchCanceled$, this.$_setShown$($component$$1359$$, $JSCompiler_alias_FALSE$$)) : ($autoDismissalTimeout$$2_isRestoreImmediate_openEvent_params$$56$$ = new $AdfPopupOpeningEvent$$($component$$1359$$, $hints$$89$$), $component$$1359$$.$broadcast$($autoDismissalTimeout$$2_isRestoreImmediate_openEvent_params$$56$$), $autoDismissalTimeout$$2_isRestoreImmediate_openEvent_params$$56$$.$isCanceled$() ? this.$_setShown$($component$$1359$$, 
    $JSCompiler_alias_FALSE$$) : ($AdfDhtmlPopupPeer$$.$_isResetEditableValuesWhenCanceled$($component$$1359$$) && $AdfDhtmlPopupPeer$$.$getContentDom$($component$$1359$$) && $AdfPage$$.$PAGE$.$_dirtyStateService$.$setDirty$($component$$1359$$, $JSCompiler_alias_FALSE$$), $hints$$89$$ || ($hints$$89$$ = {}), ($autoDismissalTimeout$$2_isRestoreImmediate_openEvent_params$$56$$ = $component$$1359$$.getAutoDismissalTimeout()) && (!isNaN($autoDismissalTimeout$$2_isRestoreImmediate_openEvent_params$$56$$) && 
    0 < $autoDismissalTimeout$$2_isRestoreImmediate_openEvent_params$$56$$) && ($hints$$89$$.autodismissPopupTimeout = 1E3 * $autoDismissalTimeout$$2_isRestoreImmediate_openEvent_params$$56$$), $autoDismissalTimeout$$2_isRestoreImmediate_openEvent_params$$56$$ = $hints$$89$$.restoreImmediate ? $JSCompiler_alias_TRUE$$ : $JSCompiler_alias_FALSE$$, $hints$$89$$.openedHandler = this.$createCallback$(this.$PopupOpened$), $hints$$89$$.openedHandlerParam = $component$$1359$$, $hints$$89$$.animate != AdfRichPopup.$ANIMATE_FALSE$ && 
    ($hints$$89$$.animate = $component$$1359$$.getAnimate()), !$contentDelivery$$1_isLazyUncached_page$$155$$ && !$autoDismissalTimeout$$2_isRestoreImmediate_openEvent_params$$56$$ && this.$syncPrivateProperties$($component$$1359$$, $hints$$89$$, $JSCompiler_alias_TRUE$$), this.$_setShown$($component$$1359$$, $JSCompiler_alias_TRUE$$, $contentDelivery$$1_isLazyUncached_page$$155$$ || $autoDismissalTimeout$$2_isRestoreImmediate_openEvent_params$$56$$), this.$_showPopup$($component$$1359$$, $hints$$89$$)))
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupPeer.prototype.show", {show:$AdfDhtmlPopupPeer$$.prototype.show});
$AdfDhtmlPopupPeer$$.prototype.$_setShown$ = function $$AdfDhtmlPopupPeer$$$$$_setShown$$($component$$1360$$, $shown$$1$$, $suppressSyncEvent$$) {
  delete this.$_isPropSyncNeeded$;
  $component$$1360$$.setProperty($AdfDhtmlPopupPeer$$.$_SHOWN$, $shown$$1$$ ? $component$$1360$$.$getClientId$() : "", $JSCompiler_alias_FALSE$$, $JSCompiler_alias_TRUE$$);
  !$suppressSyncEvent$$ && (this.$_isPropSyncNeeded$ && !$AdfDhtmlPopupPeer$$.$_isAutoCancel$($component$$1360$$)) && (new $AdfContentFetchEvent$$($component$$1360$$, $AdfContentFetchEvent$$.$SYNC_EVENT_TYPE$)).$queue$();
  delete this.$_isPropSyncNeeded$
};
$AdfDhtmlPopupPeer$$.$_initPrivateProperties$ = function $$AdfDhtmlPopupPeer$$$$_initPrivateProperties$$($component$$1361$$) {
  $AdfAssert$$.$assertPrototype$($component$$1361$$, AdfRichPopup);
  if(!$AdfDhtmlPopupPeer$$.$_isAutoCancel$($component$$1361$$)) {
    for(var $i$$401$$ = 0;$i$$401$$ < $AdfDhtmlPopupPeer$$.$_SYNC_HINTS_LIST$.length;$i$$401$$++) {
      $component$$1361$$.setProperty("_" + $AdfDhtmlPopupPeer$$.$_SYNC_HINTS_LIST$[$i$$401$$], "", $JSCompiler_alias_FALSE$$, $JSCompiler_alias_TRUE$$)
    }
  }
};
$AdfDhtmlPopupPeer$$.prototype.$syncPrivateProperties$ = function $$AdfDhtmlPopupPeer$$$$$syncPrivateProperties$$($component$$1362$$, $hints$$90$$, $suppressSyncEvent$$1$$) {
  $AdfAssert$$.$assertPrototype$($component$$1362$$, AdfRichPopup);
  if($hints$$90$$ && !$AdfDhtmlPopupPeer$$.$_isAutoCancel$($component$$1362$$)) {
    delete this.$_isPropSyncNeeded$;
    var $propertyName$$49$$;
    for(key in $hints$$90$$) {
      if(-1 < $AdfCollections$$.indexOf($AdfDhtmlPopupPeer$$.$_SYNC_HINTS_LIST$, key)) {
        $propertyName$$49$$ = "_" + key;
        var $propertyValue$$13$$;
        "mousePosition" == key ? ($AdfAssert$$.$assertNumber$($hints$$90$$[key].x, "AdfDhtmlPopupHints.MOUSEPOSITION.x"), $AdfAssert$$.$assertNumber$($hints$$90$$[key].y, "AdfDhtmlPopupHints.MOUSEPOSITION.y"), $propertyValue$$13$$ = "x:" + $hints$$90$$[key].x + ",y:" + $hints$$90$$[key].y) : $propertyValue$$13$$ = $hints$$90$$[key];
        $component$$1362$$.setProperty($propertyName$$49$$, $propertyValue$$13$$, $JSCompiler_alias_FALSE$$, $JSCompiler_alias_TRUE$$)
      }
    }
    !$suppressSyncEvent$$1$$ && this.$_isPropSyncNeeded$ && (new $AdfContentFetchEvent$$($component$$1362$$, $AdfContentFetchEvent$$.$SYNC_EVENT_TYPE$)).$queue$();
    delete this.$_isPropSyncNeeded$
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupPeer.prototype.syncPrivateProperties", {$syncPrivateProperties$:$AdfDhtmlPopupPeer$$.prototype.$syncPrivateProperties$});
$AdfDhtmlPopupPeer$$.prototype.$ComponentPropertyChanged$ = function $$AdfDhtmlPopupPeer$$$$$ComponentPropertyChanged$$($cName_changeEvent$$1$$) {
  if(!$AdfDhtmlPopupPeer$$.$_isAutoCancel$($cName_changeEvent$$1$$.getSource())) {
    if($cName_changeEvent$$1$$ = $cName_changeEvent$$1$$.$getPropertyName$(), $cName_changeEvent$$1$$ == $AdfDhtmlPopupPeer$$.$_SHOWN$) {
      this.$_isPropSyncNeeded$ = $JSCompiler_alias_TRUE$$
    }else {
      for(var $i$$402$$ = 0;$i$$402$$ < $AdfDhtmlPopupPeer$$.$_SYNC_HINTS_LIST$.length;$i$$402$$++) {
        if($cName_changeEvent$$1$$ == "_" + $AdfDhtmlPopupPeer$$.$_SYNC_HINTS_LIST$[$i$$402$$]) {
          this.$_isPropSyncNeeded$ = $JSCompiler_alias_TRUE$$;
          break
        }
      }
    }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupPeer.prototype.ComponentPropertyChanged", {$ComponentPropertyChanged$:$AdfDhtmlPopupPeer$$.prototype.$ComponentPropertyChanged$});
$AdfDhtmlPopupPeer$$.prototype.$hide$ = function $$AdfDhtmlPopupPeer$$$$$hide$$($component$$1363$$) {
  this.$isVisible$($component$$1363$$) && ($component$$1363$$.getContentDelivery() == AdfRichPopup.$CONTENT_DELIVERY_LAZY_UNCACHED$ && delete $component$$1363$$.$_hasContent$, this.$hidePopup$($component$$1363$$, $component$$1363$$.$getClientId$()))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupPeer.prototype.hide", {$hide$:$AdfDhtmlPopupPeer$$.prototype.$hide$});
$AdfDhtmlPopupPeer$$.prototype.cancel = function $$AdfDhtmlPopupPeer$$$$cancel$($component$$1365$$) {
  this.$isVisible$($component$$1365$$) && ($component$$1365$$.getContentDelivery() == AdfRichPopup.$CONTENT_DELIVERY_LAZY_UNCACHED$ && delete $component$$1365$$.$_hasContent$, this.$cancelPopup$($component$$1365$$, $component$$1365$$.$getClientId$()))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupPeer.prototype.cancel", {cancel:$AdfDhtmlPopupPeer$$.prototype.cancel});
$AdfDhtmlPopupPeer$$.prototype.$isVisible$ = function $$AdfDhtmlPopupPeer$$$$$isVisible$$($component$$1366$$) {
  return this.$isPopupVisible$($component$$1366$$, $component$$1366$$.$getClientId$())
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupPeer.prototype.isVisible", {$isVisible$:$AdfDhtmlPopupPeer$$.prototype.$isVisible$});
$AdfDhtmlPopupPeer$$.$_createPagePropertyKey$ = function $$AdfDhtmlPopupPeer$$$$_createPagePropertyKey$$($clientId$$328$$) {
  $AdfAssert$$.$assertString$($clientId$$328$$);
  return $clientId$$328$$.split(":").join("$") + "$key"
};
$AdfDhtmlPopupPeer$$.prototype.$DispatchComponentEvent$ = function $$AdfDhtmlPopupPeer$$$$$DispatchComponentEvent$$($componentEvent$$318$$) {
  if($componentEvent$$318$$.getType() == $AdfContentFetchEvent$$.$LOADED_EVENT_TYPE$) {
    var $component$$1367$$ = $componentEvent$$318$$.getSource();
    $JSCompiler_StaticMethods__restorePopup$$(this, $component$$1367$$);
    $componentEvent$$318$$.$stopBubbling$();
    $componentEvent$$318$$.cancel()
  }else {
    $AdfDhtmlPopupPeer$$.$superclass$.$DispatchComponentEvent$.call(this, $componentEvent$$318$$)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupPeer.prototype.DispatchComponentEvent", {$DispatchComponentEvent$:$AdfDhtmlPopupPeer$$.prototype.$DispatchComponentEvent$});
function $JSCompiler_StaticMethods__restorePopup$$($JSCompiler_StaticMethods__restorePopup$self$$, $component$$1368$$) {
  $component$$1368$$.$_hasContent$ = $JSCompiler_alias_TRUE$$;
  var $page$$156$$ = $AdfPage$$.$PAGE$, $hintsPagePropertyKey$$1$$ = $AdfDhtmlPopupPeer$$.$_createPagePropertyKey$($component$$1368$$.$getClientId$()), $hints$$91$$ = $page$$156$$.$getPageProperty$($hintsPagePropertyKey$$1$$);
  $page$$156$$.$setPageProperty$($hintsPagePropertyKey$$1$$, $JSCompiler_alias_NULL$$);
  $AdfAssert$$.$assertObjectOrNull$($hints$$91$$);
  delete $component$$1368$$.$_isFetching$;
  $JSCompiler_StaticMethods__restorePopup$self$$.show($component$$1368$$, $hints$$91$$)
}
$AdfDhtmlPopupPeer$$.prototype.$fireContentDeliveryNotify$ = function $$AdfDhtmlPopupPeer$$$$$fireContentDeliveryNotify$$($hints$$92$$) {
  var $component$$1369$$ = this.$getComponent$();
  if($hints$$92$$) {
    var $page$$157$$ = $AdfPage$$.$PAGE$, $hintsPagePropertyKey$$2$$ = $AdfDhtmlPopupPeer$$.$_createPagePropertyKey$($component$$1369$$.$getClientId$()), $cachedHints$$ = $page$$157$$.$getPageProperty$($hintsPagePropertyKey$$2$$);
    $cachedHints$$ && $AdfCollections$$.$copyInto$($hints$$92$$, $cachedHints$$);
    $page$$157$$.$setPageProperty$($hintsPagePropertyKey$$2$$, $hints$$92$$)
  }
  $hints$$92$$ && $hints$$92$$.restoreImmediate ? $JSCompiler_StaticMethods__restorePopup$$(this, $component$$1369$$) : (new $AdfContentFetchEvent$$($component$$1369$$, $AdfContentFetchEvent$$.$LOADED_EVENT_TYPE$)).$queue$()
};
$goog$exportSymbol$$("AdfDhtmlPopupPeer.prototype.fireContentDeliveryNotify", $AdfDhtmlPopupPeer$$.prototype.$fireContentDeliveryNotify$);
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupPeer.prototype.fireContentDeliveryNotify", {$fireContentDeliveryNotify$:$AdfDhtmlPopupPeer$$.prototype.$fireContentDeliveryNotify$});
$AdfDhtmlPopupPeer$$.prototype.$ComponentRemoved$ = function $$AdfDhtmlPopupPeer$$$$$ComponentRemoved$$($component$$1370_contentDom$$30$$) {
  if($AdfDhtmlPopupPeer$$.$_isAutoCancel$($component$$1370_contentDom$$30$$) && "" === $component$$1370_contentDom$$30$$.$getProperty$($AdfDhtmlPopupPeer$$.$_SHOWN$)) {
    var $key$$72$$ = $AdfDhtmlPopupPeer$$.$_createPagePropertyKey$($component$$1370_contentDom$$30$$.$getClientId$()) + "$hidden";
    $AdfPage$$.$PAGE$.$setPageProperty$($key$$72$$, $JSCompiler_alias_TRUE$$)
  }
  ($component$$1370_contentDom$$30$$ = $AdfDhtmlPopupPeer$$.$getContentDom$($component$$1370_contentDom$$30$$)) && $AdfPage$$.$PAGE$.$removeComponentsInSubtree$($component$$1370_contentDom$$30$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupPeer.prototype.ComponentRemoved", {$ComponentRemoved$:$AdfDhtmlPopupPeer$$.prototype.$ComponentRemoved$});
$AdfDhtmlPopupPeer$$.$getContentDom$ = function $$AdfDhtmlPopupPeer$$$$getContentDom$$($component$$1371_contentId$$6$$) {
  $component$$1371_contentId$$6$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$1371_contentId$$6$$.$getClientId$(), "content");
  return $AdfAgent$$.$AGENT$.getElementById($component$$1371_contentId$$6$$)
};
$goog$exportSymbol$$("AdfDhtmlPopupPeer.getContentDom", $AdfDhtmlPopupPeer$$.$getContentDom$);
$AdfDhtmlPopupPeer$$.prototype.$_showPopup$ = function $$AdfDhtmlPopupPeer$$$$$_showPopup$$($component$$1372$$, $hints$$93$$) {
  var $contentDom$$31$$ = $AdfDhtmlPopupPeer$$.$getContentDom$($component$$1372$$), $peerHints$$1$$ = {};
  $component$$1372$$.$_childHints$ && $AdfCollections$$.$copyInto$($peerHints$$1$$, $component$$1372$$.$_childHints$);
  $hints$$93$$ && $AdfCollections$$.$copyInto$($peerHints$$1$$, $hints$$93$$);
  var $menuPeer$$5$$ = this.$_getFirstMenuPeer$($component$$1372$$, $peerHints$$1$$);
  $menuPeer$$5$$ != $JSCompiler_alias_NULL$$ ? $menuPeer$$5$$.show($peerHints$$1$$) : this.$showPopup$($component$$1372$$, $contentDom$$31$$, $peerHints$$1$$, $component$$1372$$.$getClientId$())
};
$AdfDhtmlPopupPeer$$.prototype.$_getFirstMenuPeer$ = function $$AdfDhtmlPopupPeer$$$$$_getFirstMenuPeer$$($component$$1373$$, $hints$$94$$) {
  var $menuPeer$$6$$ = $JSCompiler_alias_NULL$$, $hintType$$ = $hints$$94$$.type;
  if($hintType$$ == $JSCompiler_alias_NULL$$ || "menu" == $hintType$$) {
    $component$$1373$$.$visitChildren$(this.$_visitChildrenForMenu$, this, $JSCompiler_alias_TRUE$$), this.$_firstMenuChild$ && ($menuPeer$$6$$ = this.$_firstMenuChild$.$getPeer$(), delete this.$_firstMenuChild$)
  }
  return $menuPeer$$6$$
};
$AdfDhtmlPopupPeer$$.prototype.$_visitChildrenForMenu$ = function $$AdfDhtmlPopupPeer$$$$$_visitChildrenForMenu$$($component$$1374$$) {
  var $domWindow$$118$$ = $AdfPage$$.$PAGE$.$getDomWindow$();
  if($domWindow$$118$$.AdfRichRegion && $component$$1374$$ instanceof AdfRichRegion) {
    return 0
  }
  $domWindow$$118$$.AdfRichMenu && $component$$1374$$ instanceof AdfRichMenu && (this.$_firstMenuChild$ = $component$$1374$$);
  return 2
};
$AdfDhtmlPopupPeer$$.prototype.$PopupClosed$ = function $$AdfDhtmlPopupPeer$$$$$PopupClosed$$($component$$1375$$, $contentDom$$32$$) {
  if($contentDom$$32$$) {
    var $agent$$474$$ = $AdfAgent$$.$AGENT$, $isAutoRestore$$ = $AdfDhtmlPopupPeer$$.$_isRestoreEnabled$($component$$1375$$, $contentDom$$32$$);
    if(!$isAutoRestore$$) {
      $AdfDhtmlPopupPeer$$.$_initPrivateProperties$($component$$1375$$);
      var $suppressSyncEvent$$2$$ = $AdfDhtmlPopupPeer$$.$__handlePopupCanceled$($component$$1375$$, $contentDom$$32$$);
      this.$_setShown$($component$$1375$$, $JSCompiler_alias_FALSE$$, $suppressSyncEvent$$2$$)
    }
    $agent$$474$$.getElementById($component$$1375$$.$getClientId$()).appendChild($contentDom$$32$$);
    $isAutoRestore$$ || (new $AdfPopupClosedEvent$$($component$$1375$$)).$queue$()
  }else {
    $AdfDhtmlPopupPeer$$.$_initPrivateProperties$($component$$1375$$), this.$_setShown$($component$$1375$$, $JSCompiler_alias_FALSE$$), (new $AdfPopupClosedEvent$$($component$$1375$$)).$queue$()
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupPeer.prototype.PopupClosed", {$PopupClosed$:$AdfDhtmlPopupPeer$$.prototype.$PopupClosed$});
$AdfDhtmlPopupPeer$$.$__handlePopupCanceled$ = function $$AdfDhtmlPopupPeer$$$$__handlePopupCanceled$$($component$$1376$$, $contentDom$$33$$) {
  $AdfAssert$$.$assertPrototype$($component$$1376$$, AdfRichPopup);
  $AdfAssert$$.$assertDomElement$($contentDom$$33$$);
  var $event$$218_isCanceled$$ = "true" == $contentDom$$33$$.getAttribute($AdfDhtmlPopupWindow$$.$__CANCELED_EXPANDO$);
  $contentDom$$33$$.removeAttribute($AdfDhtmlPopupWindow$$.$__CANCELED_EXPANDO$);
  var $propagatesToServer$$5_resetEditableValues$$2$$ = $JSCompiler_alias_FALSE$$;
  $event$$218_isCanceled$$ && ($propagatesToServer$$5_resetEditableValues$$2$$ = $AdfDhtmlPopupPeer$$.$_isResetEditableValuesWhenCanceled$($component$$1376$$) && $AdfPage$$.$PAGE$.$_dirtyStateService$.$hasDirtyData$($component$$1376$$), $event$$218_isCanceled$$ = new $AdfPopupCanceledEvent$$($component$$1376$$, $propagatesToServer$$5_resetEditableValues$$2$$), $propagatesToServer$$5_resetEditableValues$$2$$ && $AdfPage$$.$PAGE$.$_dirtyStateService$.$setDirty$($component$$1376$$, $JSCompiler_alias_FALSE$$), 
  $propagatesToServer$$5_resetEditableValues$$2$$ = $event$$218_isCanceled$$.$propagatesToServer$(), $event$$218_isCanceled$$.$queue$($JSCompiler_alias_TRUE$$));
  return $propagatesToServer$$5_resetEditableValues$$2$$
};
$AdfDhtmlPopupPeer$$.$_isAutoCancel$ = function $$AdfDhtmlPopupPeer$$$$_isAutoCancel$$($component$$1377$$) {
  $AdfAssert$$.$assertPrototype$($component$$1377$$, AdfRichPopup);
  return $component$$1377$$.getAutoCancel() == AdfRichPopup.$AUTO_CANCEL_ENABLED$ ? $JSCompiler_alias_TRUE$$ : $JSCompiler_alias_FALSE$$
};
$AdfDhtmlPopupPeer$$.$_isRestoreEnabled$ = function $$AdfDhtmlPopupPeer$$$$_isRestoreEnabled$$($component$$1378$$, $contentDom$$34$$) {
  $AdfAssert$$.$assertPrototype$($component$$1378$$, AdfRichPopup);
  $AdfAssert$$.$assertDomElement$($contentDom$$34$$);
  var $isAutoRestore$$1_isDomReplaced$$ = "true" == $contentDom$$34$$.getAttribute($AdfDhtmlPopupWindow$$.$__REPLACEDOM_EXPANDO$), $isAutoRestore$$1_isDomReplaced$$ = !$AdfDhtmlPopupPeer$$.$_isAutoCancel$($component$$1378$$) && $isAutoRestore$$1_isDomReplaced$$;
  $contentDom$$34$$.removeAttribute($AdfDhtmlPopupWindow$$.$__REPLACEDOM_EXPANDO$);
  return $isAutoRestore$$1_isDomReplaced$$
};
$AdfDhtmlPopupPeer$$.prototype.$PopupOpened$ = function $$AdfDhtmlPopupPeer$$$$$PopupOpened$$($component$$1379$$) {
  (new $AdfPopupOpenedEvent$$($component$$1379$$)).$queue$()
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupPeer.prototype.PopupOpened", {$PopupOpened$:$AdfDhtmlPopupPeer$$.prototype.$PopupOpened$});
$AdfDhtmlPopupPeer$$.$setChildHints$ = function $$AdfDhtmlPopupPeer$$$$setChildHints$$($popupComponent$$2$$, $hints$$95$$) {
  $popupComponent$$2$$.$_childHints$ = $hints$$95$$
};
$goog$exportSymbol$$("AdfDhtmlPopupPeer.setChildHints", $AdfDhtmlPopupPeer$$.$setChildHints$);
$AdfDhtmlPopupPeer$$.prototype.$BindToComponent$ = function $$AdfDhtmlPopupPeer$$$$$BindToComponent$$($component$$1380$$, $rootElement$$125$$) {
  $AdfDhtmlPopupPeer$$.$superclass$.$BindToComponent$.call(this, $component$$1380$$, $rootElement$$125$$);
  if($AdfDhtmlPopupPeer$$.$_isAutoCancel$($component$$1380$$)) {
    var $key$$73$$ = $AdfDhtmlPopupPeer$$.$_createPagePropertyKey$($component$$1380$$.$getClientId$()) + "$hidden";
    $AdfPage$$.$PAGE$.$getPageProperty$($key$$73$$) && (this.$_setShown$($component$$1380$$, $JSCompiler_alias_FALSE$$, $JSCompiler_alias_TRUE$$), $AdfPage$$.$PAGE$.$setPageProperty$($key$$73$$, $JSCompiler_alias_FALSE$$))
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupPeer.prototype.BindToComponent", {$BindToComponent$:$AdfDhtmlPopupPeer$$.prototype.$BindToComponent$});
$AdfDhtmlPopupPeer$$.$_isResetEditableValuesWhenCanceled$ = function $$AdfDhtmlPopupPeer$$$$_isResetEditableValuesWhenCanceled$$($component$$1381$$) {
  $AdfAssert$$.$assertPrototype$($component$$1381$$, AdfRichPopup);
  return $component$$1381$$.getResetEditableValues() == AdfRichPopup.$RESET_EDITABLE_VALUES_WHEN_CANCELED$ || ($component$$1381$$.$getProperty$($AdfPopupCanceledEvent$$.$_OPTIMIZED_PROPAGATION_PROPERTY$) ? $JSCompiler_alias_TRUE$$ : $JSCompiler_alias_FALSE$$)
};
$AdfDhtmlPopupPeer$$.prototype.$ReplaceDomElement$ = function $$AdfDhtmlPopupPeer$$$$$ReplaceDomElement$$($newElement$$23$$, $oldElement$$13$$) {
  this.$getComponent$();
  $AdfDhtmlPopupPeer$$.$superclass$.$ReplaceDomElement$.call(this, $newElement$$23$$, $oldElement$$13$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlPopupPeer.prototype.ReplaceDomElement", {$ReplaceDomElement$:$AdfDhtmlPopupPeer$$.prototype.$ReplaceDomElement$});
