var $AdfDhtmlStatusIndicatorPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfRichUIPeer$$, "AdfDhtmlStatusIndicatorPeer");
$goog$exportSymbol$$("AdfDhtmlStatusIndicatorPeer", $AdfDhtmlStatusIndicatorPeer$$);
$AdfDhtmlStatusIndicatorPeer$$.$InitSubclass$ = function $$AdfDhtmlStatusIndicatorPeer$$$$InitSubclass$$() {
  this.$DTS_PROCESSING_ICON$ = "af|statusIndicator::processing-icon";
  this.$DTS_IDLE_ICON$ = "af|statusIndicator::idle-icon";
  this.$ADS_CONNECTING_ICON$ = "af|statusIndicator::connecting-icon";
  this.$ADS_CONNECTED_ICON$ = "af|statusIndicator::connected-icon";
  this.$ADS_DISCONNECTED_ICON$ = "af|statusIndicator::disconnected-icon";
  this.$ADS_RECONNECTING_ICON$ = "af|statusIndicator::reconnecting-icon";
  this.$ADS_ICONS$ = [];
  var $pushChannelStates$$ = $AdfDhtmlPage$$.$PushChannelStates$;
  this.$ADS_ICONS$[$pushChannelStates$$.CONNECTING] = this.$ADS_CONNECTING_ICON$;
  this.$ADS_ICONS$[$pushChannelStates$$.$CONNECTED$] = this.$ADS_CONNECTED_ICON$;
  this.$ADS_ICONS$[$pushChannelStates$$.$RECONNECTING$] = this.$ADS_RECONNECTING_ICON$;
  this.$ADS_ICONS$[$pushChannelStates$$.$DISCONNECTED$] = this.$ADS_DISCONNECTED_ICON$;
  this.$_serverBusy$ = $JSCompiler_alias_FALSE$$
};
$goog$exportSymbol$$("AdfDhtmlStatusIndicatorPeer.InitSubclass", $AdfDhtmlStatusIndicatorPeer$$.$InitSubclass$);
$AdfDhtmlStatusIndicatorPeer$$.prototype.$InitDomElement$ = function $$AdfDhtmlStatusIndicatorPeer$$$$$InitDomElement$$($component$$1608$$, $domElement$$470$$) {
  $AdfAssert$$.$assertDomElement$($domElement$$470$$);
  $AdfDhtmlStatusIndicatorPeer$$.$superclass$.$InitDomElement$.call(this, $component$$1608$$, $domElement$$470$$);
  $JSCompiler_StaticMethods__updateIcon$$($domElement$$470$$);
  $AdfPage$$.$PAGE$.$getDataTransferService$().$addStateChangeListener$(this.$_stateChanged$, $component$$1608$$);
  var $self$$13$$ = this;
  window.setTimeout(function() {
    $AdfPage$$.$PAGE$.$isActiveDataSupported$() && $AdfPage$$.$PAGE$.$getActiveDataSupport$().$addADSConnectionStateListener$($self$$13$$.$_stateChanged$, $component$$1608$$)
  }, 0)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlStatusIndicatorPeer.prototype.InitDomElement", {$InitDomElement$:$AdfDhtmlStatusIndicatorPeer$$.prototype.$InitDomElement$});
$AdfDhtmlStatusIndicatorPeer$$.prototype.$ComponentRemoved$ = function $$AdfDhtmlStatusIndicatorPeer$$$$$ComponentRemoved$$($component$$1609$$) {
  $AdfPage$$.$PAGE$.$getDataTransferService$().$removeStateChangeListener$(this.$_stateChanged$, $component$$1609$$);
  $AdfPage$$.$PAGE$.$isActiveDataSupported$() && $AdfPage$$.$PAGE$.$getActiveDataSupport$().$removeADSConnectionStateListener$(this.$_stateChanged$, $component$$1609$$);
  $AdfDhtmlStatusIndicatorPeer$$.$superclass$.$ComponentRemoved$.call(this, $component$$1609$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlStatusIndicatorPeer.prototype.ComponentRemoved", {$ComponentRemoved$:$AdfDhtmlStatusIndicatorPeer$$.prototype.$ComponentRemoved$});
$AdfDhtmlStatusIndicatorPeer$$.prototype.$_stateChanged$ = function $$AdfDhtmlStatusIndicatorPeer$$$$$_stateChanged$$() {
  var $parentElement$$18_peer$$144$$ = this.$getPeer$();
  $parentElement$$18_peer$$144$$.bind(this);
  $parentElement$$18_peer$$144$$ = $parentElement$$18_peer$$144$$.$getDomElement$();
  $JSCompiler_StaticMethods__updateIcon$$($parentElement$$18_peer$$144$$);
  return $JSCompiler_alias_TRUE$$
};
function $JSCompiler_StaticMethods__updateIcon$$($parentElement$$19$$) {
  var $newIcon$$;
  if($AdfPage$$.$PAGE$.$getDataTransferService$().$getDTSState$() != $AdfDataTransferService$$.$STATE_READY$) {
    $newIcon$$ = $AdfDhtmlStatusIndicatorPeer$$.$DTS_PROCESSING_ICON$
  }else {
    if($newIcon$$ = $AdfDhtmlStatusIndicatorPeer$$.$DTS_IDLE_ICON$, $AdfPage$$.$PAGE$.$isActiveDataSupported$()) {
      var $adsState$$ = $AdfPage$$.$PAGE$.$getActiveDataSupport$().$getADSConnectionState$();
      $adsState$$ != $JSCompiler_alias_VOID$$ && ($newIcon$$ = $AdfDhtmlStatusIndicatorPeer$$.$ADS_ICONS$[$adsState$$])
    }
  }
  $AdfDomUtils$$.$swapIcon$($parentElement$$19$$.firstChild, $newIcon$$)
}
;