var $AdfDhtmlIteratorPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfDhtmlImplicitPeer$$, "AdfDhtmlIteratorPeer");
$goog$exportSymbol$$("AdfDhtmlIteratorPeer", $AdfDhtmlIteratorPeer$$);
$AdfDhtmlIteratorPeer$$.prototype.$getAbsoluteLocator$ = function $$AdfDhtmlIteratorPeer$$$$$getAbsoluteLocator$$($component$$1019$$, $clientId$$200$$) {
  var $ancestorIterator$$inline_1851_parent$$inline_5300_tokensToIndices$$inline_1852$$;
  for($ancestorIterator$$inline_1851_parent$$inline_5300_tokensToIndices$$inline_1852$$ = $component$$1019$$.getParent();$ancestorIterator$$inline_1851_parent$$inline_5300_tokensToIndices$$inline_1852$$ && !($ancestorIterator$$inline_1851_parent$$inline_5300_tokensToIndices$$inline_1852$$ instanceof AdfRichIterator);) {
    $ancestorIterator$$inline_1851_parent$$inline_5300_tokensToIndices$$inline_1852$$ = $ancestorIterator$$inline_1851_parent$$inline_5300_tokensToIndices$$inline_1852$$.getParent()
  }
  $ancestorIterator$$inline_1851_parent$$inline_5300_tokensToIndices$$inline_1852$$ && $ancestorIterator$$inline_1851_parent$$inline_5300_tokensToIndices$$inline_1852$$.$getAbsoluteLocator$();
  $ancestorIterator$$inline_1851_parent$$inline_5300_tokensToIndices$$inline_1852$$ = $JSCompiler_StaticMethods__buildTokenToIndexMap$$($component$$1019$$);
  $component$$1019$$.setProperty("_tokenMappings", $ancestorIterator$$inline_1851_parent$$inline_5300_tokensToIndices$$inline_1852$$);
  return $AdfDhtmlIteratorPeer$$.$superclass$.$getAbsoluteLocator$.call(this, $component$$1019$$, $clientId$$200$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlIteratorPeer.prototype.getAbsoluteLocator", {$getAbsoluteLocator$:$AdfDhtmlIteratorPeer$$.prototype.$getAbsoluteLocator$});
$AdfDhtmlIteratorPeer$$.$_getAncestorContentDomElement$ = function $$AdfDhtmlIteratorPeer$$$$_getAncestorContentDomElement$$($component$$1020$$) {
  var $contentDomElement$$;
  do {
    $component$$1020$$ = $component$$1020$$.getParent(), $contentDomElement$$ = $component$$1020$$.$getPeer$().$getDomContentElement$()
  }while(!$contentDomElement$$);
  return $contentDomElement$$
};
$AdfDhtmlIteratorPeer$$.$_getIteratorToken$ = function $$AdfDhtmlIteratorPeer$$$$_getIteratorToken$$($node$$80$$, $iteratorPrefix$$) {
  var $nodeId$$6$$ = $node$$80$$.id, $iteratorPrefixLength$$ = $iteratorPrefix$$.length;
  if($nodeId$$6$$ && $iteratorPrefix$$ === $nodeId$$6$$.substring(0, $iteratorPrefixLength$$)) {
    var $tokenEnd$$ = $nodeId$$6$$.indexOf(":", $iteratorPrefixLength$$);
    return $nodeId$$6$$.substring($iteratorPrefixLength$$, $tokenEnd$$)
  }
  return $JSCompiler_alias_NULL$$
};
function $JSCompiler_StaticMethods__buildTokenToIndexMap$$($component$$1021_rootDom$$1_treeWalker$$) {
  function $iteratorFilter$$($component$$1021_rootDom$$1_treeWalker$$) {
    return($component$$1021_rootDom$$1_treeWalker$$ = $AdfDhtmlIteratorPeer$$.$_getIteratorToken$($component$$1021_rootDom$$1_treeWalker$$, $iteratorPrefix$$1$$)) ? ($tokensToIndices$$1$$[$component$$1021_rootDom$$1_treeWalker$$] == $JSCompiler_alias_VOID$$ && ($tokensToIndices$$1$$[$component$$1021_rootDom$$1_treeWalker$$] = $childIndex$$++), NodeFilter.$FILTER_REJECT$) : NodeFilter.$FILTER_SKIP$
  }
  var $iteratorPrefix$$1$$ = $component$$1021_rootDom$$1_treeWalker$$.$getClientId$() + ":";
  $component$$1021_rootDom$$1_treeWalker$$ = $AdfDhtmlIteratorPeer$$.$_getAncestorContentDomElement$($component$$1021_rootDom$$1_treeWalker$$);
  var $tokensToIndices$$1$$ = {}, $childIndex$$ = 0;
  $iteratorFilter$$.$acceptNode$ = $iteratorFilter$$;
  for($component$$1021_rootDom$$1_treeWalker$$ = document.createTreeWalker($component$$1021_rootDom$$1_treeWalker$$, NodeFilter.$SHOW_ELEMENT$, $iteratorFilter$$, $JSCompiler_alias_FALSE$$);$component$$1021_rootDom$$1_treeWalker$$.$nextNode$();) {
  }
  return $tokensToIndices$$1$$
}
$AdfDhtmlIteratorPeer$$.$fixupIteratorAbsoluteLocator$ = function $$AdfDhtmlIteratorPeer$$$$fixupIteratorAbsoluteLocator$$($locator$$7_startRow$$9$$) {
  var $page$$114$$ = $AdfPage$$.$PAGE$;
  do {
    var $iteratorLocatorMatch$$ = /[\:](\d+)[\:](.+)/.exec($locator$$7_startRow$$9$$);
    if($iteratorLocatorMatch$$) {
      var $iteratorLocator$$ = $locator$$7_startRow$$9$$.substring(0, $locator$$7_startRow$$9$$.length - $iteratorLocatorMatch$$[0].length), $iteratorComponent$$ = $page$$114$$.$findComponentByAbsoluteLocator$($iteratorLocator$$);
      if($iteratorComponent$$ instanceof AdfRichIterator) {
        $iteratorComponent$$.$getAbsoluteLocator$();
        var $childIndex$$1_tokenMappings$$ = $iteratorComponent$$.$getProperty$("_tokenMappings");
        $locator$$7_startRow$$9$$ = $iteratorComponent$$.getFirst();
        var $iteratorToken$$ = $iteratorLocatorMatch$$[1], $childIndex$$1_tokenMappings$$ = $childIndex$$1_tokenMappings$$[$iteratorToken$$];
        $childIndex$$1_tokenMappings$$ === $JSCompiler_alias_VOID$$ && $JSCompiler_alias_THROW$$(Error("Couldn't find index of token " + $iteratorToken$$ + " on " + $iteratorComponent$$));
        $locator$$7_startRow$$9$$ = $iteratorLocator$$ + "[" + ($locator$$7_startRow$$9$$ + $childIndex$$1_tokenMappings$$) + "]:" + $iteratorLocatorMatch$$[2]
      }else {
        break
      }
    }
  }while($iteratorLocatorMatch$$);
  return $locator$$7_startRow$$9$$
};
$goog$exportSymbol$$("AdfDhtmlIteratorPeer.fixupIteratorAbsoluteLocator", $AdfDhtmlIteratorPeer$$.$fixupIteratorAbsoluteLocator$);
$AdfRichUIPeer$$.prototype.$isAbsoluteLocatorCacheable$ = $JSCompiler_returnArg$$($JSCompiler_alias_FALSE$$);
$AdfObject$$.$exportPrototypeSymbol$("AdfRichUIPeer.prototype.isAbsoluteLocatorCacheable", {$isAbsoluteLocatorCacheable$:$AdfRichUIPeer$$.prototype.$isAbsoluteLocatorCacheable$});
