function $AdfDirtyStateService$$($page$$216$$) {
  this.Init($page$$216$$);
}
$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$$217$$) {
  $AdfDirtyStateService$$.$superclass$.Init.call(this);
  this.$_nextFormElementCounter$ = 0;
  this.$_origFormValues$ = {};
  this.$_dirtyFormElements$ = {};
  this.$_dirtyComponentIds$ = {};
  this.$_dirtyDataComponents$ = [];
  this.$_potentiallyHasDirtyFormValues$ = this.$_potentiallyHasDirtyComponents$ = !1;
  $page$$217$$.addEventListener($AdfComponentEvent$$.$FOCUS_EVENT_TYPE$, this.$_handleFocusEvent$, this);
  $page$$217$$.addEventListener($AdfComponentEvent$$.$BLUR_EVENT_TYPE$, this.$_handleBlurEvent$, this);
  $page$$217$$.addEventListener($AdfComponentRemovedEvent$$.$EVENT_TYPE$, this.$_handleComponentRemovedEvent$, this);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDirtyStateService.prototype.Init", {Init:$AdfDirtyStateService$$.prototype.Init});
$AdfDirtyStateService$$.prototype.$isDirty$ = function $$AdfDirtyStateService$$$$$isDirty$$($clientId$$470_inputComponent$$7$$) {
  $clientId$$470_inputComponent$$7$$ = $clientId$$470_inputComponent$$7$$ instanceof $AdfUIComponent$$ ? $clientId$$470_inputComponent$$7$$.$getClientId$() : $clientId$$470_inputComponent$$7$$;
  $AdfAssert$$.$assertString$($clientId$$470_inputComponent$$7$$);
  return !0 === this.$_dirtyComponentIds$[$clientId$$470_inputComponent$$7$$];
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDirtyStateService.prototype.isDirty", {$isDirty$:$AdfDirtyStateService$$.prototype.$isDirty$});
$AdfDirtyStateService$$.prototype.$getDirtyComponents$ = function $$AdfDirtyStateService$$$$$getDirtyComponents$$($ancestor$$9_comp$$25$$) {
  var $comps$$1$$ = [], $descendents_page$$218$$ = $AdfPage$$.$PAGE$, $resetFlags$$ = !1;
  if (null == $ancestor$$9_comp$$25$$) {
    for (var $clientId$$471_i$$682$$ in this.$_dirtyComponentIds$) {
      $ancestor$$9_comp$$25$$ = $descendents_page$$218$$.$findComponent$($clientId$$471_i$$682$$), null == $ancestor$$9_comp$$25$$ && (delete this.$_dirtyComponentIds$[$clientId$$471_i$$682$$], $resetFlags$$ = !0), $comps$$1$$.push($ancestor$$9_comp$$25$$);
    }
  } else {
    $descendents_page$$218$$ = $ancestor$$9_comp$$25$$.$getDescendantComponents$();
    $clientId$$471_i$$682$$ = 0;
    for (var $size$$65$$ = $descendents_page$$218$$.length;$clientId$$471_i$$682$$ < $size$$65$$;++$clientId$$471_i$$682$$) {
      $ancestor$$9_comp$$25$$ = $descendents_page$$218$$[$clientId$$471_i$$682$$], this.$isDirty$($ancestor$$9_comp$$25$$) && $comps$$1$$.push($ancestor$$9_comp$$25$$);
    }
  }
  $resetFlags$$ && $JSCompiler_StaticMethods__initPotentiallyDirtyFlags$$(this);
  return $comps$$1$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDirtyStateService.prototype.getDirtyComponents", {$getDirtyComponents$:$AdfDirtyStateService$$.prototype.$getDirtyComponents$});
$AdfDirtyStateService$$.prototype.$getDirtyComponentsForElement$ = function $$AdfDirtyStateService$$$$$getDirtyComponentsForElement$$($rootElement$$165$$) {
  if (null == $rootElement$$165$$) {
    return this.$getDirtyComponents$(null);
  }
  var $comps$$2$$ = [], $dirtyComponentIds$$ = this.$_dirtyComponentIds$, $peer$$187$$ = null, $clientId$$472$$;
  for ($clientId$$472$$ in $dirtyComponentIds$$) {
    var $comp$$26$$ = page.$findComponent$($clientId$$472$$);
    $comp$$26$$ && ($peer$$187$$ = $comp$$26$$.$getPeer$()) && $peer$$187$$.bind($comp$$26$$);
    $comp$$26$$ ? $comp$$26$$ instanceof AdfUIEditableValue && $peer$$187$$ instanceof $AdfDhtmlEditableValuePeer$$ && $AdfRichUIPeer$$.$isComponentContainedByElement$($comp$$26$$, $rootElement$$165$$) && $peer$$187$$ && !$peer$$187$$.$getMarkDirtyFlag$() && $comps$$2$$.push($comp$$26$$) : delete $dirtyComponentIds$$[$clientId$$472$$];
  }
  $comp$$26$$ = $AdfPage$$.$PAGE$.$getActiveComponent$();
  $comp$$26$$ instanceof AdfUIEditableValue && ($peer$$187$$ = $comp$$26$$.$getPeer$()) && $peer$$187$$ instanceof $AdfDhtmlEditableValuePeer$$ && ($peer$$187$$.bind($comp$$26$$), $peer$$187$$.$getMarkDirtyFlag$() ? $peer$$187$$.$setMarkDirtyFlag$(!1) : $AdfRichUIPeer$$.$isComponentContainedByElement$($comp$$26$$, $rootElement$$165$$) && !$AdfUIUtils$$.$compareValues$($peer$$187$$.$getLastSubmittedValue$($comp$$26$$), $comp$$26$$.getSubmittedValue()) && $comps$$2$$.push($comp$$26$$));
  $JSCompiler_StaticMethods__initPotentiallyDirtyFlags$$(this);
  return $comps$$2$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDirtyStateService.prototype.getDirtyComponentsForElement", {$getDirtyComponentsForElement$:$AdfDirtyStateService$$.prototype.$getDirtyComponentsForElement$});
$AdfDirtyStateService$$.prototype.$isNamingContainerDirty$ = function $$AdfDirtyStateService$$$$$isNamingContainerDirty$$($clientId$$473_searchFor$$3$$) {
  $clientId$$473_searchFor$$3$$ += ":";
  for (var $dirtyClientId$$2$$ in this.$_dirtyComponentIds$) {
    if ($AdfStrings$$.startsWith($dirtyClientId$$2$$, $clientId$$473_searchFor$$3$$)) {
      return !0;
    }
  }
  for (var $parentClientId$$1$$ in this.$_dirtyFormElements$) {
    if ($AdfStrings$$.startsWith($parentClientId$$1$$, $clientId$$473_searchFor$$3$$) && $JSCompiler_StaticMethods__componentHasDirtyFormData$$(this, $parentClientId$$1$$)) {
      return !0;
    }
  }
  return !1;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDirtyStateService.prototype.isNamingContainerDirty", {$isNamingContainerDirty$:$AdfDirtyStateService$$.prototype.$isNamingContainerDirty$});
$AdfDirtyStateService$$.prototype.$hasDirtyData$ = function $$AdfDirtyStateService$$$$$hasDirtyData$$($ancestor$$10_components$$10$$) {
  var $ancestorDom_clientId$$474_component$$2308$$ = null, $ancestorDom_clientId$$474_component$$2308$$ = null == $ancestor$$10_components$$10$$ ? $AdfPage$$.$PAGE$.$getDomDocument$() : $ancestor$$10_components$$10$$ instanceof $AdfUIComponent$$ ? $ancestor$$10_components$$10$$ instanceof AdfRichPopup ? $AdfDhtmlPopupPeer$$.$getContentDom$($ancestor$$10_components$$10$$) : $AdfRichUIPeer$$.$getDomElementForComponent$($ancestor$$10_components$$10$$) : $ancestor$$10_components$$10$$;
  $AdfAssert$$.$assertDomNode$($ancestorDom_clientId$$474_component$$2308$$);
  $ancestor$$10_components$$10$$ = $AdfAgent$$.$AGENT$.$getDescendantComponentsForNode$($ancestorDom_clientId$$474_component$$2308$$);
  $JSCompiler_StaticMethods__gatherDescedantComponents$$(this, $ancestor$$10_components$$10$$);
  i = 0;
  for (size = $ancestor$$10_components$$10$$.length;i < size;++i) {
    if ($ancestorDom_clientId$$474_component$$2308$$ = $ancestor$$10_components$$10$$[i], $ancestorDom_clientId$$474_component$$2308$$ instanceof AdfUIEditableValue && this.$isDirty$($ancestorDom_clientId$$474_component$$2308$$)) {
      return !0;
    }
  }
  i = 0;
  for (size = $ancestor$$10_components$$10$$.length;i < size;++i) {
    if ($ancestorDom_clientId$$474_component$$2308$$ = $ancestor$$10_components$$10$$[i], $ancestorDom_clientId$$474_component$$2308$$ = $ancestorDom_clientId$$474_component$$2308$$.$getClientId$(), $JSCompiler_StaticMethods__componentHasDirtyFormData$$(this, $ancestorDom_clientId$$474_component$$2308$$)) {
      return !0;
    }
  }
  return !1;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDirtyStateService.prototype.hasDirtyData", {$hasDirtyData$:$AdfDirtyStateService$$.prototype.$hasDirtyData$});
$AdfDirtyStateService$$.prototype.$setDirty$ = function $$AdfDirtyStateService$$$$$setDirty$$($clientId$$475$$, $dirty$$2$$) {
  $dirty$$2$$ ? (this.$_potentiallyHasDirtyComponents$ = !0, this.$_dirtyComponentIds$[$clientId$$475$$] = !0) : (delete this.$_dirtyComponentIds$[$clientId$$475$$], $JSCompiler_StaticMethods__initPotentiallyDirtyFlags$$(this));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDirtyStateService.prototype.setDirty", {$setDirty$:$AdfDirtyStateService$$.prototype.$setDirty$});
$AdfDirtyStateService$$.prototype.$__registerDirtyDataComponent$ = function $$AdfDirtyStateService$$$$$__registerDirtyDataComponent$$($component$$2309$$, $level$$25$$) {
  var $clientId$$476$$ = $component$$2309$$.$getClientId$();
  this.$_dirtyDataComponents$[$clientId$$476$$] = $level$$25$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDirtyStateService.prototype.__registerDirtyDataComponent", {$__registerDirtyDataComponent$:$AdfDirtyStateService$$.prototype.$__registerDirtyDataComponent$});
$AdfDirtyStateService$$.prototype.$__alwaysDisplayDirtyDataWarning$ = function $$AdfDirtyStateService$$$$$__alwaysDisplayDirtyDataWarning$$() {
  var $isDirty$$2$$ = !1, $clientId$$477$$;
  for ($clientId$$477$$ in this.$_dirtyDataComponents$) {
    if ("always" == this.$_dirtyDataComponents$[$clientId$$477$$]) {
      var $component$$2310_peer$$188$$ = $AdfPage$$.$PAGE$.$findComponent$($clientId$$477$$);
      null != $component$$2310_peer$$188$$ && ($component$$2310_peer$$188$$ = $component$$2310_peer$$188$$.$getPeer$(), null != $component$$2310_peer$$188$$ && $component$$2310_peer$$188$$.$isDataDirty$() && ($isDirty$$2$$ = !0));
    }
  }
  return $isDirty$$2$$;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDirtyStateService.prototype.__alwaysDisplayDirtyDataWarning", {$__alwaysDisplayDirtyDataWarning$:$AdfDirtyStateService$$.prototype.$__alwaysDisplayDirtyDataWarning$});
$AdfDirtyStateService$$.prototype.$__handleValueChangeEvent$ = function $$AdfDirtyStateService$$$$$__handleValueChangeEvent$$($component$$2311_componentEvent$$515$$) {
  $component$$2311_componentEvent$$515$$ = $component$$2311_componentEvent$$515$$.getSource();
  this.$_potentiallyHasDirtyComponents$ = this.$_dirtyComponentIds$[$component$$2311_componentEvent$$515$$.$getClientId$()] = !0;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDirtyStateService.prototype.__handleValueChangeEvent", {$__handleValueChangeEvent$:$AdfDirtyStateService$$.prototype.$__handleValueChangeEvent$});
$AdfDirtyStateService$$.prototype.$__resetState$ = function $$AdfDirtyStateService$$$$$__resetState$$() {
  var $dirtyComponentIds$$inline_4998$$ = this.$_dirtyComponentIds$, $page$$inline_4999$$ = $AdfPage$$.$PAGE$;
  if (this.$__needsSpuriousDirtyValueTracking$($page$$inline_4999$$)) {
    for (var $clientId$$inline_5000$$ in $dirtyComponentIds$$inline_4998$$) {
      $JSCompiler_StaticMethods__resetSpuriousDirtyValue$$($page$$inline_4999$$, $clientId$$inline_5000$$);
    }
  }
  this.$_origFormValues$ = {};
  this.$_dirtyComponentIds$ = {};
  this.$_dirtyFormElements$ = {};
  this.$_potentiallyHasDirtyFormValues$ = this.$_potentiallyHasDirtyComponents$ = !1;
};
$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$$21$$, $immediateOnly$$3$$) {
  if (0 != this.$_potentiallyHasDirtyComponents$ || 0 != this.$_potentiallyHasDirtyFormValues$) {
    if (0 == $ids$$21$$.length) {
      if ($immediateOnly$$3$$) {
        $ids$$21$$ = [""];
      } else {
        this.$__resetState$();
        return;
      }
    }
    var $agent$$761$$ = $AdfAgent$$.$AGENT$, $changesMade$$ = !1, $page$$219$$ = $AdfPage$$.$PAGE$, $needsSpuriousValueTracking$$ = this.$__needsSpuriousDirtyValueTracking$($page$$219$$), $found$$5_idsToCheck$$ = {}, $id$$370$$;
    for ($id$$370$$ in this.$_dirtyComponentIds$) {
      $found$$5_idsToCheck$$[$id$$370$$] = !0;
    }
    for ($id$$370$$ in this.$_dirtyFormElements$) {
      $found$$5_idsToCheck$$[$id$$370$$] = !0;
    }
    for ($id$$370$$ in $found$$5_idsToCheck$$) {
      if (0 == $immediateOnly$$3$$ || this.$_isImmediateEditableValueComponent$($id$$370$$)) {
        for (var $found$$5_idsToCheck$$ = !1, $i$$683_node$$137$$ = 0, $ancestorComponent_nodeId$$10_size$$66$$ = $ids$$21$$.length;$i$$683_node$$137$$ < $ancestorComponent_nodeId$$10_size$$66$$;++$i$$683_node$$137$$) {
          var $committedId$$ = $ids$$21$$[$i$$683_node$$137$$];
          if ($id$$370$$ == $committedId$$) {
            $found$$5_idsToCheck$$ = !0;
            break;
          }
          if ($AdfStrings$$.startsWith($id$$370$$, $committedId$$ + ":")) {
            $found$$5_idsToCheck$$ = !0;
            break;
          }
        }
        if (!$found$$5_idsToCheck$$) {
          for ($i$$683_node$$137$$ = $agent$$761$$.getElementById($id$$370$$);null != $i$$683_node$$137$$ && !$found$$5_idsToCheck$$;) {
            $ancestorComponent_nodeId$$10_size$$66$$ = $i$$683_node$$137$$.id;
            if (null != $ancestorComponent_nodeId$$10_size$$66$$ && ($found$$5_idsToCheck$$ = -1 < $AdfCollections$$.indexOf($ids$$21$$, $ancestorComponent_nodeId$$10_size$$66$$), !$found$$5_idsToCheck$$ && ($ancestorComponent_nodeId$$10_size$$66$$ = $AdfRichUIPeer$$.$getFirstAncestorComponent$($i$$683_node$$137$$), $ancestorComponent_nodeId$$10_size$$66$$ instanceof AdfRichPopup && $AdfDhtmlPopupPeer$$.$getContentDom$($ancestorComponent_nodeId$$10_size$$66$$) == $i$$683_node$$137$$))) {
              $i$$683_node$$137$$ = $AdfRichUIPeer$$.$getDomElementForComponent$($ancestorComponent_nodeId$$10_size$$66$$);
              continue;
            }
            $i$$683_node$$137$$ = $i$$683_node$$137$$.parentNode;
          }
        }
        $found$$5_idsToCheck$$ && ($changesMade$$ = !0, $needsSpuriousValueTracking$$ && $JSCompiler_StaticMethods__resetSpuriousDirtyValue$$($page$$219$$, $id$$370$$), delete this.$_dirtyComponentIds$[$id$$370$$], delete this.$_origFormValues$[$id$$370$$], delete this.$_dirtyFormElements$[$id$$370$$]);
      }
    }
    $changesMade$$ && $JSCompiler_StaticMethods__initPotentiallyDirtyFlags$$(this);
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDirtyStateService.prototype.__dataCommitted", {$__dataCommitted$:$AdfDirtyStateService$$.prototype.$__dataCommitted$});
$AdfDirtyStateService$$.prototype.$__isInputValueDirty$ = function $$AdfDirtyStateService$$$$$__isInputValueDirty$$($page$$220$$, $component$$2312$$) {
  var $dirty$$3$$ = !1, $peer$$189$$ = $component$$2312$$.$getPeer$();
  $peer$$189$$ && $peer$$189$$.$__isSpuriousDirtyValue$ && ($dirty$$3$$ = $peer$$189$$.$__isSpuriousDirtyValue$($page$$220$$, $component$$2312$$)) && this.$setDirty$($component$$2312$$.$getClientId$(), !0);
  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$ = !1;
  $JSCompiler_StaticMethods__initPotentiallyDirtyFlags$self$$.$_potentiallyHasDirtyFormValues$ = !1;
  for (var $clientId$$478$$ in $JSCompiler_StaticMethods__initPotentiallyDirtyFlags$self$$.$_dirtyComponentIds$) {
    $JSCompiler_StaticMethods__initPotentiallyDirtyFlags$self$$.$_potentiallyHasDirtyComponents$ = !0;
    break;
  }
  for ($clientId$$478$$ in $JSCompiler_StaticMethods__initPotentiallyDirtyFlags$self$$.$_dirtyFormElements$) {
    $JSCompiler_StaticMethods__initPotentiallyDirtyFlags$self$$.$_potentiallyHasDirtyFormValues$ = !0;
    break;
  }
}
function $JSCompiler_StaticMethods__gatherDescedantComponents$$($JSCompiler_StaticMethods__gatherDescedantComponents$self$$, $components$$11$$) {
  for (var $c$$34$$ = 0, $csize$$ = $components$$11$$.length;$c$$34$$ < $csize$$;++$c$$34$$) {
    var $component$$2313_popupComponents$$ = $components$$11$$[$c$$34$$];
    if ($component$$2313_popupComponents$$ instanceof AdfRichPopup) {
      $component$$2313_popupComponents$$ = $component$$2313_popupComponents$$.$getDescendantComponents$();
      $JSCompiler_StaticMethods__gatherDescedantComponents$$($JSCompiler_StaticMethods__gatherDescedantComponents$self$$, $component$$2313_popupComponents$$);
      for (var $p$$4$$ = 0, $psize$$ = $component$$2313_popupComponents$$.length;$p$$4$$ < $psize$$;++$p$$4$$) {
        $components$$11$$.push($component$$2313_popupComponents$$[$p$$4$$]);
      }
    }
  }
}
$JSCompiler_prototypeAlias$$ = $AdfDirtyStateService$$.prototype;
$JSCompiler_prototypeAlias$$.$_isImmediateEditableValueComponent$ = function $$JSCompiler_prototypeAlias$$$$_isImmediateEditableValueComponent$$($clientId$$479_component$$2314$$) {
  $clientId$$479_component$$2314$$ = $AdfPage$$.$PAGE$.$findComponent$($clientId$$479_component$$2314$$);
  return $clientId$$479_component$$2314$$ instanceof AdfUIEditableValue && $clientId$$479_component$$2314$$.getImmediate();
};
$JSCompiler_prototypeAlias$$.$_handleFocusEvent$ = function $$JSCompiler_prototypeAlias$$$$_handleFocusEvent$$($componentEvent$$516_name$$110$$) {
  var $form$$18_target$$223_value$$268$$ = $componentEvent$$516_name$$110$$.$getNativeEventTarget$(), $component$$2315_origFormValuesForComp$$ = $AdfRichUIPeer$$.$getFirstAncestorComponent$($form$$18_target$$223_value$$268$$);
  if (0 == $JSCompiler_StaticMethods__isInputComponentElement$$($component$$2315_origFormValuesForComp$$, $form$$18_target$$223_value$$268$$) && ($componentEvent$$516_name$$110$$ = $JSCompiler_StaticMethods__getFormElementName$$($form$$18_target$$223_value$$268$$), null != $componentEvent$$516_name$$110$$)) {
    var $form$$18_target$$223_value$$268$$ = $AdfDomUtils$$.$getFormElement$($form$$18_target$$223_value$$268$$), $formId$$11$$ = $JSCompiler_StaticMethods__getFormIdentifier$$(this, $form$$18_target$$223_value$$268$$), $clientId$$480_formIdMap$$ = $component$$2315_origFormValuesForComp$$.$getClientId$(), $component$$2315_origFormValuesForComp$$ = this.$_origFormValues$[$clientId$$480_formIdMap$$];
    void 0 === $component$$2315_origFormValuesForComp$$ && (this.$_origFormValues$[$clientId$$480_formIdMap$$] = $component$$2315_origFormValuesForComp$$ = {});
    $clientId$$480_formIdMap$$ = $component$$2315_origFormValuesForComp$$[$formId$$11$$];
    null == $clientId$$480_formIdMap$$ && ($component$$2315_origFormValuesForComp$$[$formId$$11$$] = $clientId$$480_formIdMap$$ = {});
    void 0 === $clientId$$480_formIdMap$$[$componentEvent$$516_name$$110$$] && ($form$$18_target$$223_value$$268$$ = $AdfDomUtils$$.$getFormElementValue$($form$$18_target$$223_value$$268$$, $componentEvent$$516_name$$110$$), $clientId$$480_formIdMap$$[$componentEvent$$516_name$$110$$] = $form$$18_target$$223_value$$268$$, $AdfLogger$$.$LOGGER$.fine("Original form value for '", $componentEvent$$516_name$$110$$, "' is '", $form$$18_target$$223_value$$268$$, "'"));
  }
};
$JSCompiler_prototypeAlias$$.$_handleBlurEvent$ = function $$JSCompiler_prototypeAlias$$$$_handleBlurEvent$$($componentEvent$$517_name$$111$$) {
  var $formId$$12_target$$224$$ = $componentEvent$$517_name$$111$$.$getNativeEventTarget$(), $clientId$$481_component$$2316$$ = $AdfRichUIPeer$$.$getFirstAncestorComponent$($formId$$12_target$$224$$);
  if (0 == $JSCompiler_StaticMethods__isInputComponentElement$$($clientId$$481_component$$2316$$, $formId$$12_target$$224$$) && ($componentEvent$$517_name$$111$$ = $JSCompiler_StaticMethods__getFormElementName$$($formId$$12_target$$224$$), null != $componentEvent$$517_name$$111$$)) {
    var $currValue$$5_dirtyFormValues_form$$19$$ = $AdfDomUtils$$.$getFormElement$($formId$$12_target$$224$$), $formId$$12_target$$224$$ = $JSCompiler_StaticMethods__getFormIdentifier$$(this, $currValue$$5_dirtyFormValues_form$$19$$), $clientId$$481_component$$2316$$ = $clientId$$481_component$$2316$$.$getClientId$(), $formIdMap$$1_origFormValuesForComp$$1_origValue$$ = this.$_origFormValues$[$clientId$$481_component$$2316$$];
    null != $formIdMap$$1_origFormValuesForComp$$1_origValue$$ && ($formIdMap$$1_origFormValuesForComp$$1_origValue$$ = $formIdMap$$1_origFormValuesForComp$$1_origValue$$[$formId$$12_target$$224$$], null != $formIdMap$$1_origFormValuesForComp$$1_origValue$$ && ($formIdMap$$1_origFormValuesForComp$$1_origValue$$ = $formIdMap$$1_origFormValuesForComp$$1_origValue$$[$componentEvent$$517_name$$111$$], $currValue$$5_dirtyFormValues_form$$19$$ = $AdfDomUtils$$.$getFormElementValue$($currValue$$5_dirtyFormValues_form$$19$$, 
    $componentEvent$$517_name$$111$$), $AdfUIUtils$$.$compareValues$($formIdMap$$1_origFormValuesForComp$$1_origValue$$, $currValue$$5_dirtyFormValues_form$$19$$) || (this.$_potentiallyHasDirtyFormValues$ = !0, $currValue$$5_dirtyFormValues_form$$19$$ = this.$_dirtyFormElements$[$clientId$$481_component$$2316$$], null == $currValue$$5_dirtyFormValues_form$$19$$ && (this.$_dirtyFormElements$[$clientId$$481_component$$2316$$] = $currValue$$5_dirtyFormValues_form$$19$$ = {}), $formIdMap$$1_origFormValuesForComp$$1_origValue$$ = 
    $currValue$$5_dirtyFormValues_form$$19$$[$formId$$12_target$$224$$], null == $formIdMap$$1_origFormValuesForComp$$1_origValue$$ && ($currValue$$5_dirtyFormValues_form$$19$$[$formId$$12_target$$224$$] = $formIdMap$$1_origFormValuesForComp$$1_origValue$$ = {}), $formIdMap$$1_origFormValuesForComp$$1_origValue$$[$componentEvent$$517_name$$111$$] = !0)));
  }
};
$JSCompiler_prototypeAlias$$.$_getFormElement$ = function $$JSCompiler_prototypeAlias$$$$_getFormElement$$($id$$371$$) {
  var $elem$$56_elements$$24$$ = $AdfAgent$$.$AGENT$.getElementById($id$$371$$);
  if (null != $elem$$56_elements$$24$$) {
    return $elem$$56_elements$$24$$;
  }
  if (0 == $id$$371$$.indexOf($AdfDirtyStateService$$.$_AUTO_GEN_PREFIX$)) {
    for (var $elem$$56_elements$$24$$ = document.getElementsByTagName("FORM"), $i$$684$$ = 0, $size$$67$$ = $elem$$56_elements$$24$$.length;$i$$684$$ < $size$$67$$;++$i$$684$$) {
      var $form$$20$$ = $elem$$56_elements$$24$$[$i$$684$$];
      if ($JSCompiler_StaticMethods__getFormIdentifier$$(this, $form$$20$$) == $id$$371$$) {
        return $form$$20$$;
      }
    }
  }
  return null;
};
function $JSCompiler_StaticMethods__getFormIdentifier$$($JSCompiler_StaticMethods__getFormIdentifier$self$$, $formElement$$7$$) {
  var $agent$$762$$ = $AdfAgent$$.$AGENT$, $id$$372$$ = $agent$$762$$.getAttribute($formElement$$7$$, "id");
  null == $id$$372$$ && ($id$$372$$ = $agent$$762$$.$getExpandoProperty$($formElement$$7$$, $AdfDirtyStateService$$.$_FORM_ID_EXPANDO$, null), null == $id$$372$$ && ($id$$372$$ = $AdfDirtyStateService$$.$_AUTO_GEN_PREFIX$ + $JSCompiler_StaticMethods__getFormIdentifier$self$$.$_nextFormElementCounter$++, $agent$$762$$.$setExpandoProperty$($formElement$$7$$, $AdfDirtyStateService$$.$_FORM_ID_EXPANDO$, $id$$372$$)));
  return $id$$372$$;
}
$JSCompiler_prototypeAlias$$.$_handleComponentRemovedEvent$ = function $$JSCompiler_prototypeAlias$$$$_handleComponentRemovedEvent$$($clientId$$482_componentEvent$$518$$) {
  $clientId$$482_componentEvent$$518$$ = $clientId$$482_componentEvent$$518$$.$getComponentClientId$();
  $AdfLogger$$.$LOGGER$.fine("Component removed: ", $clientId$$482_componentEvent$$518$$);
  delete this.$_dirtyDataComponents$[$clientId$$482_componentEvent$$518$$];
  delete this.$_dirtyComponentIds$[$clientId$$482_componentEvent$$518$$];
  delete this.$_origFormValues$[$clientId$$482_componentEvent$$518$$];
  delete this.$_dirtyFormElements$[$clientId$$482_componentEvent$$518$$];
  $JSCompiler_StaticMethods__initPotentiallyDirtyFlags$$(this);
};
function $JSCompiler_StaticMethods__getFormElementName$$($node$$138$$) {
  if (null != $node$$138$$) {
    var $name$$112$$ = $AdfAgent$$.$AGENT$.getAttribute($node$$138$$, "name");
    if (null != $name$$112$$) {
      switch($node$$138$$.tagName) {
        case "TEXTAREA":
        ;
        case "INPUT":
        ;
        case "SELECT":
          return $name$$112$$;
      }
    }
  }
  return null;
}
function $JSCompiler_StaticMethods__isInputComponentElement$$($component$$2317$$, $formElement$$8$$) {
  if (null != $component$$2317$$ && $component$$2317$$ instanceof AdfUIEditableValue) {
    var $clientId$$483$$ = $component$$2317$$.$getClientId$(), $name$$113$$ = $AdfAgent$$.$AGENT$.getAttribute($formElement$$8$$, "name");
    if (null != $name$$113$$ && ($name$$113$$ == $clientId$$483$$ || 0 == $name$$113$$.indexOf($clientId$$483$$))) {
      return !0;
    }
  }
  return !1;
}
function $JSCompiler_StaticMethods__componentHasDirtyFormData$$($JSCompiler_StaticMethods__componentHasDirtyFormData$self$$, $clientId$$484$$) {
  var $dirtyFormValuesForComp$$ = $JSCompiler_StaticMethods__componentHasDirtyFormData$self$$.$_dirtyFormElements$[$clientId$$484$$];
  if (null != $dirtyFormValuesForComp$$) {
    for (var $formId$$14$$ in $dirtyFormValuesForComp$$) {
      var $formIdMap$$2$$ = $dirtyFormValuesForComp$$[$formId$$14$$], $name$$114$$;
      for ($name$$114$$ in $formIdMap$$2$$) {
        if (!0 === $formIdMap$$2$$[$name$$114$$] && 0 < document.getElementsByName($name$$114$$).length) {
          return !0;
        }
      }
    }
  }
  return !1;
}
$JSCompiler_prototypeAlias$$.$__needsSpuriousDirtyValueTracking$ = function $$JSCompiler_prototypeAlias$$$$__needsSpuriousDirtyValueTracking$$() {
  return !1;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDirtyStateService.prototype.__needsSpuriousDirtyValueTracking", {$__needsSpuriousDirtyValueTracking$:$AdfDirtyStateService$$.prototype.$__needsSpuriousDirtyValueTracking$});
function $JSCompiler_StaticMethods__resetSpuriousDirtyValue$$($page$$223$$, $clientId$$486$$) {
  var $component$$2318$$ = $page$$223$$.$findComponent$($clientId$$486$$);
  if ($component$$2318$$) {
    var $peer$$190$$ = $component$$2318$$.$getPeer$();
    $peer$$190$$ && $peer$$190$$.$__resetSpuriousDirtyValue$ && $peer$$190$$.$__resetSpuriousDirtyValue$($page$$223$$, $component$$2318$$);
  }
}
;