function $AdfDirtyStateService$$($page$$191$$) {
  this.Init($page$$191$$)
}
$goog$exportSymbol$$("AdfDirtyStateService", $AdfDirtyStateService$$);
$AdfObject$$.$createSubclass$($AdfDirtyStateService$$, $AdfObject$$);
$AdfDirtyStateService$$.$InitClass$ = function $$AdfDirtyStateService$$$$InitClass$$() {
  this.$_FORM_ID_EXPANDO$ = "_adfDirtyStateId";
  this.$_AUTO_GEN_PREFIX$ = "_autoGen_"
};
$goog$exportSymbol$$("AdfDirtyStateService.InitClass", $AdfDirtyStateService$$.$InitClass$);
$AdfDirtyStateService$$.prototype.Init = function $$AdfDirtyStateService$$$$Init$($page$$192$$) {
  $AdfDirtyStateService$$.$superclass$.Init.call(this);
  this.$_nextFormElementCounter$ = 0;
  this.$_origFormValues$ = {};
  this.$_dirtyFormElements$ = {};
  this.$_dirtyComponentIds$ = {};
  this.$_dirtyDataComponents$ = [];
  this.$_potentiallyHasDirtyFormValues$ = this.$_potentiallyHasDirtyComponents$ = $JSCompiler_alias_FALSE$$;
  $page$$192$$.addEventListener($AdfComponentEvent$$.$FOCUS_EVENT_TYPE$, this.$_handleFocusEvent$, this);
  $page$$192$$.addEventListener($AdfComponentEvent$$.$BLUR_EVENT_TYPE$, this.$_handleBlurEvent$, this);
  $page$$192$$.addEventListener($AdfComponentRemovedEvent$$.$EVENT_TYPE$, this.$_handleComponentRemovedEvent$, this)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDirtyStateService.prototype.Init", {Init:$AdfDirtyStateService$$.prototype.Init});
$AdfDirtyStateService$$.prototype.$isDirty$ = function $$AdfDirtyStateService$$$$$isDirty$$($clientId$$409_inputComponent$$7$$) {
  $clientId$$409_inputComponent$$7$$ = $clientId$$409_inputComponent$$7$$ instanceof $AdfUIComponent$$ ? $clientId$$409_inputComponent$$7$$.$getClientId$() : $clientId$$409_inputComponent$$7$$;
  $AdfAssert$$.$assertString$($clientId$$409_inputComponent$$7$$);
  return this.$_dirtyComponentIds$[$clientId$$409_inputComponent$$7$$] === $JSCompiler_alias_TRUE$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDirtyStateService.prototype.isDirty", {$isDirty$:$AdfDirtyStateService$$.prototype.$isDirty$});
$AdfDirtyStateService$$.prototype.$getDirtyComponents$ = function $$AdfDirtyStateService$$$$$getDirtyComponents$$($ancestor$$9_comp$$19$$) {
  var $comps$$ = [], $descendents_page$$193$$ = $AdfPage$$.$PAGE$, $resetFlags$$ = $JSCompiler_alias_FALSE$$;
  if($ancestor$$9_comp$$19$$ == $JSCompiler_alias_NULL$$) {
    for(var $clientId$$410_i$$567$$ in this.$_dirtyComponentIds$) {
      $ancestor$$9_comp$$19$$ = $descendents_page$$193$$.$findComponent$($clientId$$410_i$$567$$), $ancestor$$9_comp$$19$$ == $JSCompiler_alias_NULL$$ && (delete this.$_dirtyComponentIds$[$clientId$$410_i$$567$$], $resetFlags$$ = $JSCompiler_alias_TRUE$$), $comps$$.push($ancestor$$9_comp$$19$$)
    }
  }else {
    $descendents_page$$193$$ = $ancestor$$9_comp$$19$$.$getDescendantComponents$();
    $clientId$$410_i$$567$$ = 0;
    for(var $size$$56$$ = $descendents_page$$193$$.length;$clientId$$410_i$$567$$ < $size$$56$$;++$clientId$$410_i$$567$$) {
      $ancestor$$9_comp$$19$$ = $descendents_page$$193$$[$clientId$$410_i$$567$$], this.$isDirty$($ancestor$$9_comp$$19$$) && $comps$$.push($ancestor$$9_comp$$19$$)
    }
  }
  $resetFlags$$ && $JSCompiler_StaticMethods__initPotentiallyDirtyFlags$$(this);
  return $comps$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDirtyStateService.prototype.getDirtyComponents", {$getDirtyComponents$:$AdfDirtyStateService$$.prototype.$getDirtyComponents$});
$AdfDirtyStateService$$.prototype.$getDirtyComponentsForElement$ = function $$AdfDirtyStateService$$$$$getDirtyComponentsForElement$$($rootElement$$141$$) {
  if($rootElement$$141$$ == $JSCompiler_alias_NULL$$) {
    return this.$getDirtyComponents$($JSCompiler_alias_NULL$$)
  }
  var $comps$$1$$ = [], $dirtyComponentIds$$ = this.$_dirtyComponentIds$, $clientId$$411$$;
  for($clientId$$411$$ in $dirtyComponentIds$$) {
    var $comp$$20$$ = page.$findComponent$($clientId$$411$$);
    $comp$$20$$ ? $AdfRichUIPeer$$.$isComponentContainedByElement$($comp$$20$$, $rootElement$$141$$) && $comps$$1$$.push($comp$$20$$) : delete $dirtyComponentIds$$[$clientId$$411$$]
  }
  $comp$$20$$ = $AdfPage$$.$PAGE$.$getActiveComponent$();
  $AdfRichUIPeer$$.$isComponentContainedByElement$($comp$$20$$, $rootElement$$141$$) && $comps$$1$$.push($comp$$20$$);
  $JSCompiler_StaticMethods__initPotentiallyDirtyFlags$$(this);
  return $comps$$1$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDirtyStateService.prototype.getDirtyComponentsForElement", {$getDirtyComponentsForElement$:$AdfDirtyStateService$$.prototype.$getDirtyComponentsForElement$});
$AdfDirtyStateService$$.prototype.$isNamingContainerDirty$ = function $$AdfDirtyStateService$$$$$isNamingContainerDirty$$($clientId$$412_searchFor$$3$$) {
  $clientId$$412_searchFor$$3$$ += ":";
  for(var $dirtyClientId$$2$$ in this.$_dirtyComponentIds$) {
    if($AdfStrings$$.$startsWith$($dirtyClientId$$2$$, $clientId$$412_searchFor$$3$$)) {
      return $JSCompiler_alias_TRUE$$
    }
  }
  for(var $parentClientId$$1$$ in this.$_dirtyFormElements$) {
    if($AdfStrings$$.$startsWith$($parentClientId$$1$$, $clientId$$412_searchFor$$3$$) && $JSCompiler_StaticMethods__componentHasDirtyFormData$$(this, $parentClientId$$1$$)) {
      return $JSCompiler_alias_TRUE$$
    }
  }
  return $JSCompiler_alias_FALSE$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDirtyStateService.prototype.isNamingContainerDirty", {$isNamingContainerDirty$:$AdfDirtyStateService$$.prototype.$isNamingContainerDirty$});
$AdfDirtyStateService$$.prototype.$hasDirtyData$ = function $$AdfDirtyStateService$$$$$hasDirtyData$$($ancestor$$10_components$$6$$) {
  var $ancestorDom_clientId$$413_component$$1745$$ = $JSCompiler_alias_NULL$$, $ancestorDom_clientId$$413_component$$1745$$ = $ancestor$$10_components$$6$$ == $JSCompiler_alias_NULL$$ ? $AdfPage$$.$PAGE$.$getDomDocument$() : $ancestor$$10_components$$6$$ instanceof $AdfUIComponent$$ ? $ancestor$$10_components$$6$$ instanceof AdfRichPopup ? $AdfDhtmlPopupPeer$$.$getContentDom$($ancestor$$10_components$$6$$) : $AdfRichUIPeer$$.$getDomElementForComponent$($ancestor$$10_components$$6$$) : $ancestor$$10_components$$6$$;
  $AdfAssert$$.$assertDomNode$($ancestorDom_clientId$$413_component$$1745$$);
  $ancestor$$10_components$$6$$ = $AdfAgent$$.$AGENT$.$getDescendantComponentsForNode$($ancestorDom_clientId$$413_component$$1745$$);
  $JSCompiler_StaticMethods__gatherDescedantComponents$$(this, $ancestor$$10_components$$6$$);
  i = 0;
  for(size = $ancestor$$10_components$$6$$.length;i < size;++i) {
    if($ancestorDom_clientId$$413_component$$1745$$ = $ancestor$$10_components$$6$$[i], $ancestorDom_clientId$$413_component$$1745$$ instanceof AdfUIEditableValue && this.$isDirty$($ancestorDom_clientId$$413_component$$1745$$)) {
      return $JSCompiler_alias_TRUE$$
    }
  }
  i = 0;
  for(size = $ancestor$$10_components$$6$$.length;i < size;++i) {
    if($ancestorDom_clientId$$413_component$$1745$$ = $ancestor$$10_components$$6$$[i], $ancestorDom_clientId$$413_component$$1745$$ = $ancestorDom_clientId$$413_component$$1745$$.$getClientId$(), $JSCompiler_StaticMethods__componentHasDirtyFormData$$(this, $ancestorDom_clientId$$413_component$$1745$$)) {
      return $JSCompiler_alias_TRUE$$
    }
  }
  return $JSCompiler_alias_FALSE$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDirtyStateService.prototype.hasDirtyData", {$hasDirtyData$:$AdfDirtyStateService$$.prototype.$hasDirtyData$});
$AdfDirtyStateService$$.prototype.$setDirty$ = function $$AdfDirtyStateService$$$$$setDirty$$($clientId$$414$$, $dirty$$2$$) {
  $dirty$$2$$ ? (this.$_potentiallyHasDirtyComponents$ = $JSCompiler_alias_TRUE$$, this.$_dirtyComponentIds$[$clientId$$414$$] = $JSCompiler_alias_TRUE$$) : (delete this.$_dirtyComponentIds$[$clientId$$414$$], $JSCompiler_StaticMethods__initPotentiallyDirtyFlags$$(this))
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDirtyStateService.prototype.setDirty", {$setDirty$:$AdfDirtyStateService$$.prototype.$setDirty$});
$AdfDirtyStateService$$.prototype.$__registerDirtyDataComponent$ = function $$AdfDirtyStateService$$$$$__registerDirtyDataComponent$$($component$$1746$$, $level$$25$$) {
  var $clientId$$415$$ = $component$$1746$$.$getClientId$();
  this.$_dirtyDataComponents$[$clientId$$415$$] = $level$$25$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDirtyStateService.prototype.__registerDirtyDataComponent", {$__registerDirtyDataComponent$:$AdfDirtyStateService$$.prototype.$__registerDirtyDataComponent$});
$AdfDirtyStateService$$.prototype.$__alwaysDisplayDirtyDataWarning$ = function $$AdfDirtyStateService$$$$$__alwaysDisplayDirtyDataWarning$$() {
  var $isDirty$$2$$ = $JSCompiler_alias_FALSE$$, $clientId$$416$$;
  for($clientId$$416$$ in this.$_dirtyDataComponents$) {
    if("always" == this.$_dirtyDataComponents$[$clientId$$416$$]) {
      var $component$$1747_peer$$155$$ = $AdfPage$$.$PAGE$.$findComponent$($clientId$$416$$);
      $component$$1747_peer$$155$$ != $JSCompiler_alias_NULL$$ && ($component$$1747_peer$$155$$ = $component$$1747_peer$$155$$.$getPeer$(), $component$$1747_peer$$155$$ != $JSCompiler_alias_NULL$$ && $component$$1747_peer$$155$$.$isDataDirty$() && ($isDirty$$2$$ = $JSCompiler_alias_TRUE$$))
    }
  }
  return $isDirty$$2$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDirtyStateService.prototype.__alwaysDisplayDirtyDataWarning", {$__alwaysDisplayDirtyDataWarning$:$AdfDirtyStateService$$.prototype.$__alwaysDisplayDirtyDataWarning$});
$AdfDirtyStateService$$.prototype.$__handleValueChangeEvent$ = function $$AdfDirtyStateService$$$$$__handleValueChangeEvent$$($component$$1748_componentEvent$$436$$) {
  $component$$1748_componentEvent$$436$$ = $component$$1748_componentEvent$$436$$.getSource();
  $AdfAssert$$.$assertPrototype$($component$$1748_componentEvent$$436$$, AdfUIEditableValue, "Expected an editable value component to be the source of a value change event");
  this.$_potentiallyHasDirtyComponents$ = this.$_dirtyComponentIds$[$component$$1748_componentEvent$$436$$.$getClientId$()] = $JSCompiler_alias_TRUE$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDirtyStateService.prototype.__handleValueChangeEvent", {$__handleValueChangeEvent$:$AdfDirtyStateService$$.prototype.$__handleValueChangeEvent$});
$AdfDirtyStateService$$.prototype.$__resetState$ = function $$AdfDirtyStateService$$$$$__resetState$$() {
  var $dirtyComponentIds$$inline_4486$$ = this.$_dirtyComponentIds$;
  if(this.$_needsSpuriousDirtyValueTracking$($AdfPage$$.$PAGE$)) {
    for(var $clientId$$inline_4488$$ in $dirtyComponentIds$$inline_4486$$) {
      $JSCompiler_StaticMethods__resetSpuriousDirtyValue$$($clientId$$inline_4488$$)
    }
  }
  this.$_origFormValues$ = {};
  this.$_dirtyComponentIds$ = {};
  this.$_dirtyFormElements$ = {};
  this.$_potentiallyHasDirtyFormValues$ = this.$_potentiallyHasDirtyComponents$ = $JSCompiler_alias_FALSE$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDirtyStateService.prototype.__resetState", {$__resetState$:$AdfDirtyStateService$$.prototype.$__resetState$});
$AdfDirtyStateService$$.prototype.$__isPotentiallyDirty$ = function $$AdfDirtyStateService$$$$$__isPotentiallyDirty$$() {
  return this.$_potentiallyHasDirtyComponents$ || this.$_potentiallyHasDirtyFormValues$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDirtyStateService.prototype.__isPotentiallyDirty", {$__isPotentiallyDirty$:$AdfDirtyStateService$$.prototype.$__isPotentiallyDirty$});
$AdfDirtyStateService$$.prototype.$__dataCommitted$ = function $$AdfDirtyStateService$$$$$__dataCommitted$$($ids$$20$$, $immediateOnly$$3$$) {
  if(!(this.$_potentiallyHasDirtyComponents$ == $JSCompiler_alias_FALSE$$ && this.$_potentiallyHasDirtyFormValues$ == $JSCompiler_alias_FALSE$$)) {
    if(0 == $ids$$20$$.length) {
      if($immediateOnly$$3$$) {
        $ids$$20$$ = [""]
      }else {
        this.$__resetState$();
        return
      }
    }
    var $agent$$676$$ = $AdfAgent$$.$AGENT$, $changesMade$$ = $JSCompiler_alias_FALSE$$, $needsSpuriousValueTracking$$ = this.$_needsSpuriousDirtyValueTracking$($AdfPage$$.$PAGE$), $found$$4_idsToCheck$$ = {}, $id$$355$$;
    for($id$$355$$ in this.$_dirtyComponentIds$) {
      $found$$4_idsToCheck$$[$id$$355$$] = $JSCompiler_alias_TRUE$$
    }
    for($id$$355$$ in this.$_dirtyFormElements$) {
      $found$$4_idsToCheck$$[$id$$355$$] = $JSCompiler_alias_TRUE$$
    }
    for($id$$355$$ in $found$$4_idsToCheck$$) {
      if($immediateOnly$$3$$ == $JSCompiler_alias_FALSE$$ || $JSCompiler_StaticMethods__isImmediateEditableValueComponent$$($id$$355$$)) {
        for(var $found$$4_idsToCheck$$ = $JSCompiler_alias_FALSE$$, $i$$568_node$$133$$ = 0, $ancestorComponent_nodeId$$10_size$$57$$ = $ids$$20$$.length;$i$$568_node$$133$$ < $ancestorComponent_nodeId$$10_size$$57$$;++$i$$568_node$$133$$) {
          var $committedId$$ = $ids$$20$$[$i$$568_node$$133$$];
          if($id$$355$$ == $committedId$$) {
            $found$$4_idsToCheck$$ = $JSCompiler_alias_TRUE$$;
            break
          }
          if($AdfStrings$$.$startsWith$($id$$355$$, $committedId$$ + ":")) {
            $found$$4_idsToCheck$$ = $JSCompiler_alias_TRUE$$;
            break
          }
        }
        if(!$found$$4_idsToCheck$$) {
          for($i$$568_node$$133$$ = $agent$$676$$.getElementById($id$$355$$);$i$$568_node$$133$$ != $JSCompiler_alias_NULL$$ && !$found$$4_idsToCheck$$;) {
            $ancestorComponent_nodeId$$10_size$$57$$ = $i$$568_node$$133$$.id;
            if($ancestorComponent_nodeId$$10_size$$57$$ != $JSCompiler_alias_NULL$$ && ($found$$4_idsToCheck$$ = -1 < $AdfCollections$$.indexOf($ids$$20$$, $ancestorComponent_nodeId$$10_size$$57$$), !$found$$4_idsToCheck$$ && ($ancestorComponent_nodeId$$10_size$$57$$ = $AdfRichUIPeer$$.$getFirstAncestorComponent$($i$$568_node$$133$$), $ancestorComponent_nodeId$$10_size$$57$$ instanceof AdfRichPopup && $AdfDhtmlPopupPeer$$.$getContentDom$($ancestorComponent_nodeId$$10_size$$57$$) == $i$$568_node$$133$$))) {
              $i$$568_node$$133$$ = $AdfRichUIPeer$$.$getDomElementForComponent$($ancestorComponent_nodeId$$10_size$$57$$);
              continue
            }
            $i$$568_node$$133$$ = $i$$568_node$$133$$.parentNode
          }
        }
        $found$$4_idsToCheck$$ && ($changesMade$$ = $JSCompiler_alias_TRUE$$, $needsSpuriousValueTracking$$ && $JSCompiler_StaticMethods__resetSpuriousDirtyValue$$($id$$355$$), delete this.$_dirtyComponentIds$[$id$$355$$], delete this.$_origFormValues$[$id$$355$$], delete this.$_dirtyFormElements$[$id$$355$$])
      }
    }
    $changesMade$$ && $JSCompiler_StaticMethods__initPotentiallyDirtyFlags$$(this)
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDirtyStateService.prototype.__dataCommitted", {$__dataCommitted$:$AdfDirtyStateService$$.prototype.$__dataCommitted$});
$AdfDirtyStateService$$.prototype.$__isInputValueDirty$ = function $$AdfDirtyStateService$$$$$__isInputValueDirty$$($page$$194$$, $component$$1749$$) {
  if(!this.$_needsSpuriousDirtyValueTracking$($page$$194$$)) {
    return $JSCompiler_alias_FALSE$$
  }
  var $dirty$$3$$ = $JSCompiler_alias_FALSE$$, $peer$$156$$ = $component$$1749$$.$getPeer$();
  $peer$$156$$ && $peer$$156$$.$__isSpuriousDirtyValue$ && ($dirty$$3$$ = $peer$$156$$.$__isSpuriousDirtyValue$($component$$1749$$)) && this.$setDirty$($component$$1749$$.$getClientId$(), $JSCompiler_alias_TRUE$$);
  return $dirty$$3$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDirtyStateService.prototype.__isInputValueDirty", {$__isInputValueDirty$:$AdfDirtyStateService$$.prototype.$__isInputValueDirty$});
function $JSCompiler_StaticMethods__initPotentiallyDirtyFlags$$($JSCompiler_StaticMethods__initPotentiallyDirtyFlags$self$$) {
  $JSCompiler_StaticMethods__initPotentiallyDirtyFlags$self$$.$_potentiallyHasDirtyComponents$ = $JSCompiler_alias_FALSE$$;
  $JSCompiler_StaticMethods__initPotentiallyDirtyFlags$self$$.$_potentiallyHasDirtyFormValues$ = $JSCompiler_alias_FALSE$$;
  for(var $clientId$$417$$ in $JSCompiler_StaticMethods__initPotentiallyDirtyFlags$self$$.$_dirtyComponentIds$) {
    $JSCompiler_StaticMethods__initPotentiallyDirtyFlags$self$$.$_potentiallyHasDirtyComponents$ = $JSCompiler_alias_TRUE$$;
    break
  }
  for($clientId$$417$$ in $JSCompiler_StaticMethods__initPotentiallyDirtyFlags$self$$.$_dirtyFormElements$) {
    $JSCompiler_StaticMethods__initPotentiallyDirtyFlags$self$$.$_potentiallyHasDirtyFormValues$ = $JSCompiler_alias_TRUE$$;
    break
  }
}
function $JSCompiler_StaticMethods__gatherDescedantComponents$$($JSCompiler_StaticMethods__gatherDescedantComponents$self$$, $components$$7$$) {
  for(var $c$$26$$ = 0, $csize$$ = $components$$7$$.length;$c$$26$$ < $csize$$;++$c$$26$$) {
    var $component$$1750_popupComponents$$ = $components$$7$$[$c$$26$$];
    if($component$$1750_popupComponents$$ instanceof AdfRichPopup) {
      $component$$1750_popupComponents$$ = $component$$1750_popupComponents$$.$getDescendantComponents$();
      $JSCompiler_StaticMethods__gatherDescedantComponents$$($JSCompiler_StaticMethods__gatherDescedantComponents$self$$, $component$$1750_popupComponents$$);
      for(var $p$$1$$ = 0, $psize$$ = $component$$1750_popupComponents$$.length;$p$$1$$ < $psize$$;++$p$$1$$) {
        $components$$7$$.push($component$$1750_popupComponents$$[$p$$1$$])
      }
    }
  }
}
function $JSCompiler_StaticMethods__isImmediateEditableValueComponent$$($clientId$$418_component$$1751$$) {
  $clientId$$418_component$$1751$$ = $AdfPage$$.$PAGE$.$findComponent$($clientId$$418_component$$1751$$);
  return $clientId$$418_component$$1751$$ instanceof AdfUIEditableValue && $clientId$$418_component$$1751$$.getImmediate()
}
$JSCompiler_prototypeAlias$$ = $AdfDirtyStateService$$.prototype;
$JSCompiler_prototypeAlias$$.$_handleFocusEvent$ = function $$JSCompiler_prototypeAlias$$$$_handleFocusEvent$$($componentEvent$$437_name$$95$$) {
  var $form$$18_target$$207_value$$195$$ = $componentEvent$$437_name$$95$$.$getNativeEventTarget$(), $component$$1752_origFormValuesForComp$$ = $AdfRichUIPeer$$.$getFirstAncestorComponent$($form$$18_target$$207_value$$195$$);
  if($JSCompiler_StaticMethods__isInputComponentElement$$($component$$1752_origFormValuesForComp$$, $form$$18_target$$207_value$$195$$) == $JSCompiler_alias_FALSE$$ && ($componentEvent$$437_name$$95$$ = $JSCompiler_StaticMethods__getFormElementName$$($form$$18_target$$207_value$$195$$), $componentEvent$$437_name$$95$$ != $JSCompiler_alias_NULL$$)) {
    var $form$$18_target$$207_value$$195$$ = $AdfDomUtils$$.$getFormElement$($form$$18_target$$207_value$$195$$), $formId$$11$$ = $JSCompiler_StaticMethods__getFormIdentifier$$(this, $form$$18_target$$207_value$$195$$), $clientId$$419_formIdMap$$ = $component$$1752_origFormValuesForComp$$.$getClientId$(), $component$$1752_origFormValuesForComp$$ = this.$_origFormValues$[$clientId$$419_formIdMap$$];
    $component$$1752_origFormValuesForComp$$ === $JSCompiler_alias_VOID$$ && (this.$_origFormValues$[$clientId$$419_formIdMap$$] = $component$$1752_origFormValuesForComp$$ = {});
    $clientId$$419_formIdMap$$ = $component$$1752_origFormValuesForComp$$[$formId$$11$$];
    $clientId$$419_formIdMap$$ == $JSCompiler_alias_NULL$$ && ($component$$1752_origFormValuesForComp$$[$formId$$11$$] = $clientId$$419_formIdMap$$ = {});
    $clientId$$419_formIdMap$$[$componentEvent$$437_name$$95$$] === $JSCompiler_alias_VOID$$ && ($form$$18_target$$207_value$$195$$ = $AdfDomUtils$$.$getFormElementValue$($form$$18_target$$207_value$$195$$, $componentEvent$$437_name$$95$$), $clientId$$419_formIdMap$$[$componentEvent$$437_name$$95$$] = $form$$18_target$$207_value$$195$$, $AdfLogger$$.$LOGGER$.fine("Original form value for '", $componentEvent$$437_name$$95$$, "' is '", $form$$18_target$$207_value$$195$$, "'"))
  }
};
$JSCompiler_prototypeAlias$$.$_handleBlurEvent$ = function $$JSCompiler_prototypeAlias$$$$_handleBlurEvent$$($componentEvent$$438_name$$96$$) {
  var $formId$$12_target$$208$$ = $componentEvent$$438_name$$96$$.$getNativeEventTarget$(), $clientId$$420_component$$1753$$ = $AdfRichUIPeer$$.$getFirstAncestorComponent$($formId$$12_target$$208$$);
  if($JSCompiler_StaticMethods__isInputComponentElement$$($clientId$$420_component$$1753$$, $formId$$12_target$$208$$) == $JSCompiler_alias_FALSE$$ && ($componentEvent$$438_name$$96$$ = $JSCompiler_StaticMethods__getFormElementName$$($formId$$12_target$$208$$), $componentEvent$$438_name$$96$$ != $JSCompiler_alias_NULL$$)) {
    var $currValue$$4_dirtyFormValues_form$$19$$ = $AdfDomUtils$$.$getFormElement$($formId$$12_target$$208$$), $formId$$12_target$$208$$ = $JSCompiler_StaticMethods__getFormIdentifier$$(this, $currValue$$4_dirtyFormValues_form$$19$$), $clientId$$420_component$$1753$$ = $clientId$$420_component$$1753$$.$getClientId$(), $formIdMap$$1_origFormValuesForComp$$1_origValue$$ = this.$_origFormValues$[$clientId$$420_component$$1753$$];
    $formIdMap$$1_origFormValuesForComp$$1_origValue$$ != $JSCompiler_alias_NULL$$ && ($formIdMap$$1_origFormValuesForComp$$1_origValue$$ = $formIdMap$$1_origFormValuesForComp$$1_origValue$$[$formId$$12_target$$208$$], $formIdMap$$1_origFormValuesForComp$$1_origValue$$ != $JSCompiler_alias_NULL$$ && ($formIdMap$$1_origFormValuesForComp$$1_origValue$$ = $formIdMap$$1_origFormValuesForComp$$1_origValue$$[$componentEvent$$438_name$$96$$], $currValue$$4_dirtyFormValues_form$$19$$ = $AdfDomUtils$$.$getFormElementValue$($currValue$$4_dirtyFormValues_form$$19$$, 
    $componentEvent$$438_name$$96$$), $AdfUIUtils$$.$compareValues$($formIdMap$$1_origFormValuesForComp$$1_origValue$$, $currValue$$4_dirtyFormValues_form$$19$$) || (this.$_potentiallyHasDirtyFormValues$ = $JSCompiler_alias_TRUE$$, $currValue$$4_dirtyFormValues_form$$19$$ = this.$_dirtyFormElements$[$clientId$$420_component$$1753$$], $currValue$$4_dirtyFormValues_form$$19$$ == $JSCompiler_alias_NULL$$ && (this.$_dirtyFormElements$[$clientId$$420_component$$1753$$] = $currValue$$4_dirtyFormValues_form$$19$$ = 
    {}), $formIdMap$$1_origFormValuesForComp$$1_origValue$$ = $currValue$$4_dirtyFormValues_form$$19$$[$formId$$12_target$$208$$], $formIdMap$$1_origFormValuesForComp$$1_origValue$$ == $JSCompiler_alias_NULL$$ && ($currValue$$4_dirtyFormValues_form$$19$$[$formId$$12_target$$208$$] = $formIdMap$$1_origFormValuesForComp$$1_origValue$$ = {}), $formIdMap$$1_origFormValuesForComp$$1_origValue$$[$componentEvent$$438_name$$96$$] = $JSCompiler_alias_TRUE$$)))
  }
};
$JSCompiler_prototypeAlias$$.$_getFormElement$ = function $$JSCompiler_prototypeAlias$$$$_getFormElement$$($id$$356$$) {
  var $elem$$54_elements$$24$$ = $AdfAgent$$.$AGENT$.getElementById($id$$356$$);
  if($elem$$54_elements$$24$$ != $JSCompiler_alias_NULL$$) {
    return $elem$$54_elements$$24$$
  }
  if(0 == $id$$356$$.indexOf($AdfDirtyStateService$$.$_AUTO_GEN_PREFIX$)) {
    for(var $elem$$54_elements$$24$$ = document.getElementsByTagName("FORM"), $i$$569$$ = 0, $size$$58$$ = $elem$$54_elements$$24$$.length;$i$$569$$ < $size$$58$$;++$i$$569$$) {
      var $form$$20$$ = $elem$$54_elements$$24$$[$i$$569$$];
      if($JSCompiler_StaticMethods__getFormIdentifier$$(this, $form$$20$$) == $id$$356$$) {
        return $form$$20$$
      }
    }
  }
  return $JSCompiler_alias_NULL$$
};
function $JSCompiler_StaticMethods__getFormIdentifier$$($JSCompiler_StaticMethods__getFormIdentifier$self$$, $formElement$$7$$) {
  var $agent$$677$$ = $AdfAgent$$.$AGENT$, $id$$357$$ = $agent$$677$$.getAttribute($formElement$$7$$, "id");
  $id$$357$$ == $JSCompiler_alias_NULL$$ && ($id$$357$$ = $agent$$677$$.$getExpandoProperty$($formElement$$7$$, $AdfDirtyStateService$$.$_FORM_ID_EXPANDO$, $JSCompiler_alias_NULL$$), $id$$357$$ == $JSCompiler_alias_NULL$$ && ($id$$357$$ = $AdfDirtyStateService$$.$_AUTO_GEN_PREFIX$ + $JSCompiler_StaticMethods__getFormIdentifier$self$$.$_nextFormElementCounter$++, $agent$$677$$.$setExpandoProperty$($formElement$$7$$, $AdfDirtyStateService$$.$_FORM_ID_EXPANDO$, $id$$357$$)));
  return $id$$357$$
}
$JSCompiler_prototypeAlias$$.$_handleComponentRemovedEvent$ = function $$JSCompiler_prototypeAlias$$$$_handleComponentRemovedEvent$$($clientId$$421_componentEvent$$439$$) {
  $clientId$$421_componentEvent$$439$$ = $clientId$$421_componentEvent$$439$$.$getComponentClientId$();
  $AdfLogger$$.$LOGGER$.fine("Component removed: ", $clientId$$421_componentEvent$$439$$);
  delete this.$_dirtyDataComponents$[$clientId$$421_componentEvent$$439$$];
  delete this.$_dirtyComponentIds$[$clientId$$421_componentEvent$$439$$];
  delete this.$_origFormValues$[$clientId$$421_componentEvent$$439$$];
  delete this.$_dirtyFormElements$[$clientId$$421_componentEvent$$439$$];
  $JSCompiler_StaticMethods__initPotentiallyDirtyFlags$$(this)
};
function $JSCompiler_StaticMethods__getFormElementName$$($node$$134$$) {
  if($node$$134$$ != $JSCompiler_alias_NULL$$) {
    var $name$$97$$ = $AdfAgent$$.$AGENT$.getAttribute($node$$134$$, "name");
    if($name$$97$$ != $JSCompiler_alias_NULL$$) {
      switch($node$$134$$.tagName) {
        case "TEXTAREA":
        ;
        case "INPUT":
        ;
        case "SELECT":
          return $name$$97$$
      }
    }
  }
  return $JSCompiler_alias_NULL$$
}
function $JSCompiler_StaticMethods__isInputComponentElement$$($component$$1754$$, $formElement$$8$$) {
  if($component$$1754$$ != $JSCompiler_alias_NULL$$ && $component$$1754$$ instanceof AdfUIEditableValue) {
    var $clientId$$422$$ = $component$$1754$$.$getClientId$(), $name$$98$$ = $AdfAgent$$.$AGENT$.getAttribute($formElement$$8$$, "name");
    if($name$$98$$ != $JSCompiler_alias_NULL$$ && ($name$$98$$ == $clientId$$422$$ || 0 == $name$$98$$.indexOf($clientId$$422$$))) {
      return $JSCompiler_alias_TRUE$$
    }
  }
  return $JSCompiler_alias_FALSE$$
}
function $JSCompiler_StaticMethods__componentHasDirtyFormData$$($JSCompiler_StaticMethods__componentHasDirtyFormData$self$$, $clientId$$423$$) {
  var $dirtyFormValuesForComp$$ = $JSCompiler_StaticMethods__componentHasDirtyFormData$self$$.$_dirtyFormElements$[$clientId$$423$$];
  if($dirtyFormValuesForComp$$ != $JSCompiler_alias_NULL$$) {
    for(var $formId$$14$$ in $dirtyFormValuesForComp$$) {
      var $formIdMap$$2$$ = $dirtyFormValuesForComp$$[$formId$$14$$], $name$$99$$;
      for($name$$99$$ in $formIdMap$$2$$) {
        if($formIdMap$$2$$[$name$$99$$] === $JSCompiler_alias_TRUE$$ && 0 < document.getElementsByName($name$$99$$).length) {
          return $JSCompiler_alias_TRUE$$
        }
      }
    }
  }
  return $JSCompiler_alias_FALSE$$
}
$JSCompiler_prototypeAlias$$.$_needsSpuriousDirtyValueTracking$ = function $$JSCompiler_prototypeAlias$$$$_needsSpuriousDirtyValueTracking$$($page$$195$$) {
  return $page$$195$$.$_seleniumRC$ && $page$$195$$.$_dirtyPostbackPayloads$
};
function $JSCompiler_StaticMethods__resetSpuriousDirtyValue$$($clientId$$425_component$$1755$$) {
  if($clientId$$425_component$$1755$$ = $AdfPage$$.$PAGE$.$findComponent$($clientId$$425_component$$1755$$)) {
    var $peer$$157$$ = $clientId$$425_component$$1755$$.$getPeer$();
    $peer$$157$$ && $peer$$157$$.$__resetSpuriousDirtyValue$ && $peer$$157$$.$__resetSpuriousDirtyValue$($clientId$$425_component$$1755$$)
  }
}
;