var $AdfDhtmlProgressIndicatorPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfRichUIPeer$$, "AdfDhtmlProgressIndicatorPeer", $JSCompiler_alias_FALSE$$);
$goog$exportSymbol$$("AdfDhtmlProgressIndicatorPeer", $AdfDhtmlProgressIndicatorPeer$$);
$AdfDhtmlProgressIndicatorPeer$$.$InitSubclass$ = function $$AdfDhtmlProgressIndicatorPeer$$$$InitSubclass$$() {
  this.$_PROGRESS_BAR_ID$ = "_afrProgressBarID";
  this.$_CONTENT_ID$ = "content";
  this.$_PROCESS_COMPLETED$ = "_afrProcessCompleted";
  this.$_ARIA_VALUETEXT_DETERMINATE_STRING$ = "af_progressIndicator.ARIA_VALUETEXT_DETERMINATE";
  this.$_DETERMINATE_STRING$ = "af_progressIndicator.TIP_DETERMINATE"
};
$goog$exportSymbol$$("AdfDhtmlProgressIndicatorPeer.InitSubclass", $AdfDhtmlProgressIndicatorPeer$$.$InitSubclass$);
$AdfDhtmlProgressIndicatorPeer$$.prototype.$InitDomElement$ = function $$AdfDhtmlProgressIndicatorPeer$$$$$InitDomElement$$($component$$1383$$, $domElement$$361$$) {
  $AdfDhtmlProgressIndicatorPeer$$.$superclass$.$InitDomElement$.call(this, $component$$1383$$, $domElement$$361$$);
  var $agent$$475_indeterminateProgressbarTD_percentValue$$1$$ = $AdfAgent$$.$getAgent$(), $progBarID_progBarSpan$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$1383$$.$getClientId$(), $AdfDhtmlProgressIndicatorPeer$$.$_PROGRESS_BAR_ID$);
  ($progBarID_progBarSpan$$ = $agent$$475_indeterminateProgressbarTD_percentValue$$1$$.getElementById($progBarID_progBarSpan$$)) ? ($agent$$475_indeterminateProgressbarTD_percentValue$$1$$ = $agent$$475_indeterminateProgressbarTD_percentValue$$1$$.getAttribute($progBarID_progBarSpan$$, "aria-valuenow"), $JSCompiler_StaticMethods__updateProgressIndicator$$(this, $progBarID_progBarSpan$$, $agent$$475_indeterminateProgressbarTD_percentValue$$1$$, $JSCompiler_alias_FALSE$$)) : $AdfFocusUtils$$.$isConnectedAndVisible$($domElement$$361$$) && 
  ($agent$$475_indeterminateProgressbarTD_percentValue$$1$$ = $AdfDomUtils$$.$getChildElementByAttributeValue$($domElement$$361$$, "role", "progressbar", "td")) && $agent$$475_indeterminateProgressbarTD_percentValue$$1$$.getAttribute("aria-valuetext") && page.$announceToAssistiveTechnology$($agent$$475_indeterminateProgressbarTD_percentValue$$1$$.getAttribute("aria-valuetext"), $JSCompiler_alias_TRUE$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlProgressIndicatorPeer.prototype.InitDomElement", {$InitDomElement$:$AdfDhtmlProgressIndicatorPeer$$.prototype.$InitDomElement$});
$AdfDhtmlProgressIndicatorPeer$$.prototype.$UpdateProgressIndicator$ = function $$AdfDhtmlProgressIndicatorPeer$$$$$UpdateProgressIndicator$$($percentValue$$2$$) {
  var $component$$1384_progBarID$$1$$ = this.$getComponent$(), $agent$$476_progBarSpan$$1$$ = $AdfAgent$$.$getAgent$(), $component$$1384_progBarID$$1$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$1384_progBarID$$1$$.$getClientId$(), $AdfDhtmlProgressIndicatorPeer$$.$_PROGRESS_BAR_ID$), $agent$$476_progBarSpan$$1$$ = $agent$$476_progBarSpan$$1$$.getElementById($component$$1384_progBarID$$1$$);
  $JSCompiler_StaticMethods__updateProgressIndicator$$(this, $agent$$476_progBarSpan$$1$$, $percentValue$$2$$, $JSCompiler_alias_TRUE$$)
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlProgressIndicatorPeer.prototype.UpdateProgressIndicator", {$UpdateProgressIndicator$:$AdfDhtmlProgressIndicatorPeer$$.prototype.$UpdateProgressIndicator$});
$AdfDhtmlProgressIndicatorPeer$$.prototype.$getPercentComplete$ = function $$AdfDhtmlProgressIndicatorPeer$$$$$getPercentComplete$$($component$$1385_progBarID$$2_progBarSpan$$2$$) {
  var $agent$$477$$ = $AdfAgent$$.$getAgent$(), $percentValue$$3$$;
  $component$$1385_progBarID$$2_progBarSpan$$2$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$1385_progBarID$$2_progBarSpan$$2$$.$getClientId$(), $AdfDhtmlProgressIndicatorPeer$$.$_PROGRESS_BAR_ID$);
  ($component$$1385_progBarID$$2_progBarSpan$$2$$ = $agent$$477$$.getElementById($component$$1385_progBarID$$2_progBarSpan$$2$$)) && ($percentValue$$3$$ = $agent$$477$$.getAttribute($component$$1385_progBarID$$2_progBarSpan$$2$$, "aria-valuenow"));
  return $percentValue$$3$$
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlProgressIndicatorPeer.prototype.getPercentComplete", {$getPercentComplete$:$AdfDhtmlProgressIndicatorPeer$$.prototype.$getPercentComplete$});
function $JSCompiler_StaticMethods__updateProgressIndicator$$($JSCompiler_StaticMethods__updateProgressIndicator$self_contentId$$7_contentNode$$52$$, $progBarSpan$$3$$, $percentValue$$4$$, $updateTooltip$$) {
  var $agent$$478$$ = $AdfAgent$$.$getAgent$(), $page$$158$$ = $AdfPage$$.$PAGE$, $ariaValueText_laf$$79$$ = $page$$158$$.$getLookAndFeel$();
  if($progBarSpan$$3$$) {
    var $length$$45_tipString$$ = 0, $barHeight$$ = 0, $filledBarBorderHeight_filledBarStyle_heightString_style$$30$$ = $agent$$478$$.getComputedStyle($progBarSpan$$3$$), $filledBarBorderWidth_widthString$$1$$ = $agent$$478$$.$getStyleProperty$($filledBarBorderHeight_filledBarStyle_heightString_style$$30$$, "width"), $filledBarBorderHeight_filledBarStyle_heightString_style$$30$$ = $agent$$478$$.$getStyleProperty$($filledBarBorderHeight_filledBarStyle_heightString_style$$30$$, "height");
    $filledBarBorderWidth_widthString$$1$$ != $JSCompiler_alias_NULL$$ && ($length$$45_tipString$$ = $AdfAgent$$.$getCSSLengthAsInt$($filledBarBorderWidth_widthString$$1$$));
    $filledBarBorderHeight_filledBarStyle_heightString_style$$30$$ != $JSCompiler_alias_NULL$$ && ($barHeight$$ = $AdfAgent$$.$getCSSLengthAsInt$($filledBarBorderHeight_filledBarStyle_heightString_style$$30$$));
    $filledBarBorderHeight_filledBarStyle_heightString_style$$30$$ = $agent$$478$$.getComputedStyle($progBarSpan$$3$$.firstChild);
    $filledBarBorderWidth_widthString$$1$$ = $JSCompiler_StaticMethods__getBorderWidth$$($filledBarBorderHeight_filledBarStyle_heightString_style$$30$$);
    $filledBarBorderHeight_filledBarStyle_heightString_style$$30$$ = $JSCompiler_StaticMethods__getBorderHeight$$($filledBarBorderHeight_filledBarStyle_heightString_style$$30$$);
    $page$$158$$.$getLocaleContext$().$isRightToLeft$() ? ($progBarSpan$$3$$.firstChild.style.width = $length$$45_tipString$$ * (100 - $percentValue$$4$$) / 100 + "px", $progBarSpan$$3$$.lastChild.style.width = $length$$45_tipString$$ * $percentValue$$4$$ / 100 + "px") : ($progBarSpan$$3$$.firstChild.style.width = $length$$45_tipString$$ * $percentValue$$4$$ / 100 + "px", $progBarSpan$$3$$.lastChild.style.width = $length$$45_tipString$$ * (100 - $percentValue$$4$$) / 100 + "px");
    var $emptyBarBorderHeight_emptyBarStyle$$ = $agent$$478$$.getComputedStyle($progBarSpan$$3$$.lastChild), $emptyBarBorderWidth$$ = $JSCompiler_StaticMethods__getBorderWidth$$($emptyBarBorderHeight_emptyBarStyle$$), $emptyBarBorderHeight_emptyBarStyle$$ = $JSCompiler_StaticMethods__getBorderHeight$$($emptyBarBorderHeight_emptyBarStyle$$), $heightFix$$ = 0;
    $filledBarBorderHeight_filledBarStyle_heightString_style$$30$$ >= $emptyBarBorderHeight_emptyBarStyle$$ ? ($heightFix$$ = $filledBarBorderHeight_filledBarStyle_heightString_style$$30$$, $progBarSpan$$3$$.lastChild.style.height = $barHeight$$ + ($heightFix$$ - $emptyBarBorderHeight_emptyBarStyle$$) + "px") : ($heightFix$$ = $emptyBarBorderHeight_emptyBarStyle$$, $progBarSpan$$3$$.firstChild.style.height = $barHeight$$ + ($heightFix$$ - $filledBarBorderHeight_filledBarStyle_heightString_style$$30$$) + 
    "px");
    $progBarSpan$$3$$.style.width = $length$$45_tipString$$ + $filledBarBorderWidth_widthString$$1$$ + $emptyBarBorderWidth$$ + "px";
    $progBarSpan$$3$$.style.height = $barHeight$$ + $heightFix$$ + "px";
    $length$$45_tipString$$ = TrFastMessageFormatUtils.format($ariaValueText_laf$$79$$.$getTranslatedString$($AdfDhtmlProgressIndicatorPeer$$.$_DETERMINATE_STRING$), $percentValue$$4$$);
    $updateTooltip$$ && ($JSCompiler_StaticMethods__updateProgressIndicator$self_contentId$$7_contentNode$$52$$ = $AdfRichUIPeer$$.$CreateSubId$($JSCompiler_StaticMethods__updateProgressIndicator$self_contentId$$7_contentNode$$52$$.$getComponent$().$getClientId$(), $AdfDhtmlProgressIndicatorPeer$$.$_CONTENT_ID$), ($JSCompiler_StaticMethods__updateProgressIndicator$self_contentId$$7_contentNode$$52$$ = $agent$$478$$.getElementById($JSCompiler_StaticMethods__updateProgressIndicator$self_contentId$$7_contentNode$$52$$)) && 
    $agent$$478$$.setAttribute($JSCompiler_StaticMethods__updateProgressIndicator$self_contentId$$7_contentNode$$52$$, "title", $length$$45_tipString$$), $ariaValueText_laf$$79$$ = TrFastMessageFormatUtils.format($ariaValueText_laf$$79$$.$getTranslatedString$($AdfDhtmlProgressIndicatorPeer$$.$_ARIA_VALUETEXT_DETERMINATE_STRING$), $percentValue$$4$$), $agent$$478$$.setAttribute($progBarSpan$$3$$, "aria-valuetext", $ariaValueText_laf$$79$$), $agent$$478$$.setAttribute($progBarSpan$$3$$, "aria-valuenow", 
    $percentValue$$4$$));
    $page$$158$$.$announceToAssistiveTechnology$($length$$45_tipString$$, $JSCompiler_alias_TRUE$$)
  }
}
function $JSCompiler_StaticMethods__getBorderWidth$$($barStyle_rightBorderWidthString$$) {
  if($barStyle_rightBorderWidthString$$ != $JSCompiler_alias_NULL$$) {
    var $leftBorderWidthString$$ = $barStyle_rightBorderWidthString$$.borderLeftWidth;
    $barStyle_rightBorderWidthString$$ = $barStyle_rightBorderWidthString$$.borderRightWidth;
    var $leftBorderwidth$$ = 0, $rightBorderwidth$$ = 0;
    $leftBorderWidthString$$ != $JSCompiler_alias_NULL$$ && ($leftBorderwidth$$ = $AdfAgent$$.$getCSSLengthAsInt$($leftBorderWidthString$$));
    $barStyle_rightBorderWidthString$$ != $JSCompiler_alias_NULL$$ && ($rightBorderwidth$$ = $AdfAgent$$.$getCSSLengthAsInt$($barStyle_rightBorderWidthString$$));
    return $leftBorderwidth$$ + $rightBorderwidth$$
  }
  return 0
}
function $JSCompiler_StaticMethods__getBorderHeight$$($barStyle$$1_bottomBorderWidthString$$) {
  if($barStyle$$1_bottomBorderWidthString$$ != $JSCompiler_alias_NULL$$) {
    var $topBorderWidthString$$ = $barStyle$$1_bottomBorderWidthString$$.borderTopWidth;
    $barStyle$$1_bottomBorderWidthString$$ = $barStyle$$1_bottomBorderWidthString$$.borderBottomWidth;
    var $topBorderwidth$$ = 0, $bottomBorderwidth$$ = 0;
    $topBorderWidthString$$ != $JSCompiler_alias_NULL$$ && ($topBorderwidth$$ = $AdfAgent$$.$getCSSLengthAsInt$($topBorderWidthString$$));
    $barStyle$$1_bottomBorderWidthString$$ != $JSCompiler_alias_NULL$$ && ($bottomBorderwidth$$ = $AdfAgent$$.$getCSSLengthAsInt$($barStyle$$1_bottomBorderWidthString$$));
    return $topBorderwidth$$ + $bottomBorderwidth$$
  }
  return 0
}
;