AdfUITree.$DISCLOSURE_LISTENER_KEY$ = "_afrDiscListener";
$goog$exportSymbol$$("AdfUITree.DISCLOSURE_LISTENER_KEY", AdfUITree.$DISCLOSURE_LISTENER_KEY$);
AdfUITree.$LOCAL_DISCLOSURE_STATE$ = "_afrLocalDiscState";
$goog$exportSymbol$$("AdfUITree.LOCAL_DISCLOSURE_STATE", AdfUITree.$LOCAL_DISCLOSURE_STATE$);
AdfUITree.prototype.$findComponent$ = function $AdfUITree$$$findComponent$$($scopedId$$4$$, $rowKey$$167$$) {
  return $rowKey$$167$$ != $JSCompiler_alias_VOID$$ ? ($scopedId$$4$$ = this.$getClientId$() + ":" + $rowKey$$167$$ + ":" + $scopedId$$4$$, $AdfPage$$.$PAGE$.$findComponent$($scopedId$$4$$)) : AdfUITree.$superclass$.$findComponent$.call(this, $scopedId$$4$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfUITree.prototype.findComponent", {$findComponent$:AdfUITree.prototype.$findComponent$});
AdfUITree.prototype.$setDisclosedRowKey$ = function $AdfUITree$$$setDisclosedRowKey$$($rowKey$$168$$, $disclosed$$22$$) {
  $AdfAssert$$.$assertString$($rowKey$$168$$);
  $AdfAssert$$.$assertBoolean$($disclosed$$22$$);
  if($disclosed$$22$$ == this.$isPathExpanded$($rowKey$$168$$)) {
    return $JSCompiler_alias_FALSE$$
  }
  var $newState$$5_peer$$215$$ = this.$getPeer$();
  if($newState$$5_peer$$215$$ && $newState$$5_peer$$215$$.$isDisclosureFetchPending$()) {
    return $JSCompiler_alias_FALSE$$
  }
  var $disclosureEvent$$8_oldState$$7$$ = this.getDisclosedRowKeys(), $newState$$5_peer$$215$$ = {};
  $AdfCollections$$.$copyInto$($newState$$5_peer$$215$$, $disclosureEvent$$8_oldState$$7$$);
  $disclosed$$22$$ ? $newState$$5_peer$$215$$[$rowKey$$168$$] = $JSCompiler_alias_TRUE$$ : delete $newState$$5_peer$$215$$[$rowKey$$168$$];
  ($disclosureEvent$$8_oldState$$7$$ = $AdfRowKeySetChangeEvent$$.$createRowKeySetChangeEvent$(this, $AdfRowDisclosureEvent$$.$ROW_DISCLOSURE_EVENT_TYPE$, $disclosureEvent$$8_oldState$$7$$, $newState$$5_peer$$215$$)) && $disclosureEvent$$8_oldState$$7$$.$queue$();
  if($disclosureEvent$$8_oldState$$7$$.$isCanceled$()) {
    return $JSCompiler_alias_FALSE$$
  }
  this.setDisclosedRowKeys($newState$$5_peer$$215$$);
  return $JSCompiler_alias_TRUE$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfUITree.prototype.setDisclosedRowKey", {$setDisclosedRowKey$:AdfUITree.prototype.$setDisclosedRowKey$});
AdfUITree.prototype.$isPathExpanded$ = function $AdfUITree$$$isPathExpanded$$($rowKey$$169$$) {
  var $treeState$$ = this.getDisclosedRowKeys();
  return $treeState$$ ? $treeState$$[$rowKey$$169$$] : $JSCompiler_alias_FALSE$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfUITree.prototype.isPathExpanded", {$isPathExpanded$:AdfUITree.prototype.$isPathExpanded$});
AdfUITree.prototype.$isPathSelected$ = function $AdfUITree$$$isPathSelected$$($rowKey$$170$$) {
  var $selectedRows$$1$$ = this.getSelectedRowKeys();
  return $selectedRows$$1$$ ? $selectedRows$$1$$[$rowKey$$170$$] : $JSCompiler_alias_FALSE$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfUITree.prototype.isPathSelected", {$isPathSelected$:AdfUITree.prototype.$isPathSelected$});
AdfUITree.prototype.$GetChanges$ = function $AdfUITree$$$GetChanges$$() {
  var $changes$$8$$ = AdfUITree.$superclass$.$GetChanges$.call(this), $localState_positionIndex$$2_treeState$$1$$ = $changes$$8$$[AdfUITree.DISCLOSED_ROW_KEYS];
  if($localState_positionIndex$$2_treeState$$1$$) {
    var $selectionState$$3_state$$107$$ = [], $i$$669_selState$$7$$ = 0, $path$$13$$;
    for($path$$13$$ in $localState_positionIndex$$2_treeState$$1$$) {
      $selectionState$$3_state$$107$$[$i$$669_selState$$7$$++] = $path$$13$$
    }
    $changes$$8$$[AdfUITree.DISCLOSED_ROW_KEYS] = $selectionState$$3_state$$107$$.join("$afr$")
  }
  if($localState_positionIndex$$2_treeState$$1$$ = $changes$$8$$[AdfUITree.$LOCAL_DISCLOSURE_STATE$]) {
    $selectionState$$3_state$$107$$ = [];
    $i$$669_selState$$7$$ = 0;
    for($path$$13$$ in $localState_positionIndex$$2_treeState$$1$$) {
      $selectionState$$3_state$$107$$[$i$$669_selState$$7$$++] = $path$$13$$
    }
    $changes$$8$$[AdfUITree.$LOCAL_DISCLOSURE_STATE$] = $selectionState$$3_state$$107$$.join("$afr$")
  }
  if($selectionState$$3_state$$107$$ = $changes$$8$$[AdfUITree.SELECTED_ROW_KEYS]) {
    $i$$669_selState$$7$$ = [];
    for($path$$13$$ in $selectionState$$3_state$$107$$) {
      $localState_positionIndex$$2_treeState$$1$$ = $selectionState$$3_state$$107$$[$path$$13$$] - 1, $i$$669_selState$$7$$[$localState_positionIndex$$2_treeState$$1$$] = $path$$13$$
    }
    $changes$$8$$[AdfUITree.SELECTED_ROW_KEYS] = $i$$669_selState$$7$$.join("$afr$")
  }
  return $changes$$8$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfUITree.prototype.GetChanges", {$GetChanges$:AdfUITree.prototype.$GetChanges$});
AdfUITree.prototype.$DeliverDerivedPropertyEvents$ = function $AdfUITree$$$DeliverDerivedPropertyEvents$$($peer$$216_propName$$35$$, $oldValue$$119_selectionEvent$$2$$, $newValue$$172$$) {
  switch($peer$$216_propName$$35$$) {
    default:
      AdfUITree.$superclass$.$DeliverDerivedPropertyEvents$.call(this, $peer$$216_propName$$35$$, $oldValue$$119_selectionEvent$$2$$, $newValue$$172$$);
      break;
    case AdfUITree.SELECTED_ROW_KEYS:
      if(($peer$$216_propName$$35$$ = this.$getPeer$()) && $peer$$216_propName$$35$$.$canDeliverSelectionEvent$ && $peer$$216_propName$$35$$.$canDeliverSelectionEvent$()) {
        ($oldValue$$119_selectionEvent$$2$$ = $AdfRowKeySetChangeEvent$$.$createRowKeySetChangeEvent$(this, $AdfSelectionEvent$$.$SELECTION_EVENT_TYPE$, $oldValue$$119_selectionEvent$$2$$, $newValue$$172$$)) && $oldValue$$119_selectionEvent$$2$$.$queue$()
      }
  }
};
$AdfObject$$.$exportPrototypeSymbol$("AdfUITree.prototype.DeliverDerivedPropertyEvents", {$DeliverDerivedPropertyEvents$:AdfUITree.prototype.$DeliverDerivedPropertyEvents$});
AdfUITree.prototype.Init = function $AdfUITree$$Init$($componentType$$13$$, $clientId$$469$$, $properties$$68$$, $children$$78$$, $facets$$1$$) {
  AdfUITree.$superclass$.Init.call(this, $componentType$$13$$, $clientId$$469$$, $properties$$68$$, $children$$78$$, $facets$$1$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfUITree.prototype.Init", {Init:AdfUITree.prototype.Init});
