var $AdfDhtmlProgressIndicatorPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfRichUIPeer$$, "AdfDhtmlProgressIndicatorPeer", !1);
$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$$1878$$, $domElement$$415$$) {
  $AdfDhtmlProgressIndicatorPeer$$.$superclass$.$InitDomElement$.call(this, $component$$1878$$, $domElement$$415$$);
  var $agent$$551_indeterminateProgressbarTD_percentValue$$1$$ = $AdfAgent$$.$getAgent$(), $progBarID_progBarSpan$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$1878$$.$getClientId$(), $AdfDhtmlProgressIndicatorPeer$$.$_PROGRESS_BAR_ID$);
  ($progBarID_progBarSpan$$ = $agent$$551_indeterminateProgressbarTD_percentValue$$1$$.getElementById($progBarID_progBarSpan$$)) ? ($agent$$551_indeterminateProgressbarTD_percentValue$$1$$ = $agent$$551_indeterminateProgressbarTD_percentValue$$1$$.getAttribute($progBarID_progBarSpan$$, "aria-valuenow"), $JSCompiler_StaticMethods__updateProgressIndicator$$(this, $progBarID_progBarSpan$$, $agent$$551_indeterminateProgressbarTD_percentValue$$1$$, !1)) : $AdfFocusUtils$$.$isConnectedAndVisible$($domElement$$415$$) && 
  ($agent$$551_indeterminateProgressbarTD_percentValue$$1$$ = $AdfDomUtils$$.$getChildElementByAttributeValue$($domElement$$415$$, "role", "progressbar", "td")) && $agent$$551_indeterminateProgressbarTD_percentValue$$1$$.getAttribute("aria-valuetext") && page.$announceToAssistiveTechnology$($agent$$551_indeterminateProgressbarTD_percentValue$$1$$.getAttribute("aria-valuetext"), !0);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlProgressIndicatorPeer.prototype.InitDomElement", {$InitDomElement$:$AdfDhtmlProgressIndicatorPeer$$.prototype.$InitDomElement$});
$AdfDhtmlProgressIndicatorPeer$$.prototype.$UpdateProgressIndicator$ = function $$AdfDhtmlProgressIndicatorPeer$$$$$UpdateProgressIndicator$$($percentValue$$2$$) {
  var $component$$1879_progBarID$$1$$ = this.$getComponent$(), $agent$$552_progBarSpan$$1$$ = $AdfAgent$$.$getAgent$(), $component$$1879_progBarID$$1$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$1879_progBarID$$1$$.$getClientId$(), $AdfDhtmlProgressIndicatorPeer$$.$_PROGRESS_BAR_ID$), $agent$$552_progBarSpan$$1$$ = $agent$$552_progBarSpan$$1$$.getElementById($component$$1879_progBarID$$1$$);
  $JSCompiler_StaticMethods__updateProgressIndicator$$(this, $agent$$552_progBarSpan$$1$$, $percentValue$$2$$, !0);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlProgressIndicatorPeer.prototype.UpdateProgressIndicator", {$UpdateProgressIndicator$:$AdfDhtmlProgressIndicatorPeer$$.prototype.$UpdateProgressIndicator$});
$AdfDhtmlProgressIndicatorPeer$$.prototype.$getPercentComplete$ = function $$AdfDhtmlProgressIndicatorPeer$$$$$getPercentComplete$$($component$$1880_progBarID$$2_progBarSpan$$2$$) {
  var $agent$$553$$ = $AdfAgent$$.$getAgent$(), $percentValue$$3$$;
  $component$$1880_progBarID$$2_progBarSpan$$2$$ = $AdfRichUIPeer$$.$CreateSubId$($component$$1880_progBarID$$2_progBarSpan$$2$$.$getClientId$(), $AdfDhtmlProgressIndicatorPeer$$.$_PROGRESS_BAR_ID$);
  ($component$$1880_progBarID$$2_progBarSpan$$2$$ = $agent$$553$$.getElementById($component$$1880_progBarID$$2_progBarSpan$$2$$)) && ($percentValue$$3$$ = $agent$$553$$.getAttribute($component$$1880_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$$8_contentNode$$83$$, $progBarSpan$$3$$, $percentValue$$4$$, $updateTooltip$$) {
  var $agent$$554$$ = $AdfAgent$$.$getAgent$(), $page$$183$$ = $AdfPage$$.$PAGE$, $ariaValueText_laf$$113$$ = $page$$183$$.$getLookAndFeel$();
  if ($progBarSpan$$3$$) {
    var $length$$70_tipString$$ = 0, $barHeight$$ = 0, $filledBarBorderHeight_filledBarStyle_heightString_style$$34$$ = $agent$$554$$.getComputedStyle($progBarSpan$$3$$), $filledBarBorderWidth_widthString$$1$$ = $agent$$554$$.$getStyleProperty$($filledBarBorderHeight_filledBarStyle_heightString_style$$34$$, "width"), $filledBarBorderHeight_filledBarStyle_heightString_style$$34$$ = $agent$$554$$.$getStyleProperty$($filledBarBorderHeight_filledBarStyle_heightString_style$$34$$, "height");
    null != $filledBarBorderWidth_widthString$$1$$ && ($length$$70_tipString$$ = $AdfAgent$$.$getCSSLengthAsInt$($filledBarBorderWidth_widthString$$1$$));
    null != $filledBarBorderHeight_filledBarStyle_heightString_style$$34$$ && ($barHeight$$ = $AdfAgent$$.$getCSSLengthAsInt$($filledBarBorderHeight_filledBarStyle_heightString_style$$34$$));
    $filledBarBorderHeight_filledBarStyle_heightString_style$$34$$ = $agent$$554$$.getComputedStyle($progBarSpan$$3$$.firstChild);
    $filledBarBorderWidth_widthString$$1$$ = $JSCompiler_StaticMethods__getBorderWidth$$($filledBarBorderHeight_filledBarStyle_heightString_style$$34$$);
    $filledBarBorderHeight_filledBarStyle_heightString_style$$34$$ = $JSCompiler_StaticMethods__getBorderHeight$$($filledBarBorderHeight_filledBarStyle_heightString_style$$34$$);
    $page$$183$$.$getLocaleContext$().$isRightToLeft$() ? ($progBarSpan$$3$$.firstChild.style.width = $length$$70_tipString$$ * (100 - $percentValue$$4$$) / 100 + "px", $progBarSpan$$3$$.lastChild.style.width = $length$$70_tipString$$ * $percentValue$$4$$ / 100 + "px") : ($progBarSpan$$3$$.firstChild.style.width = $length$$70_tipString$$ * $percentValue$$4$$ / 100 + "px", $progBarSpan$$3$$.lastChild.style.width = $length$$70_tipString$$ * (100 - $percentValue$$4$$) / 100 + "px");
    var $emptyBarBorderHeight_emptyBarStyle$$ = $agent$$554$$.getComputedStyle($progBarSpan$$3$$.lastChild), $emptyBarBorderWidth$$ = $JSCompiler_StaticMethods__getBorderWidth$$($emptyBarBorderHeight_emptyBarStyle$$), $emptyBarBorderHeight_emptyBarStyle$$ = $JSCompiler_StaticMethods__getBorderHeight$$($emptyBarBorderHeight_emptyBarStyle$$), $heightFix$$ = 0;
    $filledBarBorderHeight_filledBarStyle_heightString_style$$34$$ >= $emptyBarBorderHeight_emptyBarStyle$$ ? ($heightFix$$ = $filledBarBorderHeight_filledBarStyle_heightString_style$$34$$, $progBarSpan$$3$$.lastChild.style.height = $barHeight$$ + ($heightFix$$ - $emptyBarBorderHeight_emptyBarStyle$$) + "px") : ($heightFix$$ = $emptyBarBorderHeight_emptyBarStyle$$, $progBarSpan$$3$$.firstChild.style.height = $barHeight$$ + ($heightFix$$ - $filledBarBorderHeight_filledBarStyle_heightString_style$$34$$) + 
    "px");
    $progBarSpan$$3$$.style.width = $length$$70_tipString$$ + $filledBarBorderWidth_widthString$$1$$ + $emptyBarBorderWidth$$ + "px";
    $progBarSpan$$3$$.style.height = $barHeight$$ + $heightFix$$ + "px";
    $length$$70_tipString$$ = TrFastMessageFormatUtils.format($ariaValueText_laf$$113$$.$getTranslatedString$($AdfDhtmlProgressIndicatorPeer$$.$_DETERMINATE_STRING$), $percentValue$$4$$);
    $updateTooltip$$ && ($JSCompiler_StaticMethods__updateProgressIndicator$self_contentId$$8_contentNode$$83$$ = $AdfRichUIPeer$$.$CreateSubId$($JSCompiler_StaticMethods__updateProgressIndicator$self_contentId$$8_contentNode$$83$$.$getComponent$().$getClientId$(), $AdfDhtmlProgressIndicatorPeer$$.$_CONTENT_ID$), ($JSCompiler_StaticMethods__updateProgressIndicator$self_contentId$$8_contentNode$$83$$ = $agent$$554$$.getElementById($JSCompiler_StaticMethods__updateProgressIndicator$self_contentId$$8_contentNode$$83$$)) && 
    $agent$$554$$.setAttribute($JSCompiler_StaticMethods__updateProgressIndicator$self_contentId$$8_contentNode$$83$$, "title", $length$$70_tipString$$), $ariaValueText_laf$$113$$ = TrFastMessageFormatUtils.format($ariaValueText_laf$$113$$.$getTranslatedString$($AdfDhtmlProgressIndicatorPeer$$.$_ARIA_VALUETEXT_DETERMINATE_STRING$), $percentValue$$4$$), $agent$$554$$.setAttribute($progBarSpan$$3$$, "aria-valuetext", $ariaValueText_laf$$113$$), $agent$$554$$.setAttribute($progBarSpan$$3$$, "aria-valuenow", 
    $percentValue$$4$$));
    $page$$183$$.$announceToAssistiveTechnology$($length$$70_tipString$$, !0);
  }
}
function $JSCompiler_StaticMethods__getBorderWidth$$($barStyle_rightBorderWidthString$$) {
  if (null != $barStyle_rightBorderWidthString$$) {
    var $leftBorderWidthString$$ = $barStyle_rightBorderWidthString$$.borderLeftWidth;
    $barStyle_rightBorderWidthString$$ = $barStyle_rightBorderWidthString$$.borderRightWidth;
    var $leftBorderwidth$$ = 0, $rightBorderwidth$$ = 0;
    null != $leftBorderWidthString$$ && ($leftBorderwidth$$ = $AdfAgent$$.$getCSSLengthAsInt$($leftBorderWidthString$$));
    null != $barStyle_rightBorderWidthString$$ && ($rightBorderwidth$$ = $AdfAgent$$.$getCSSLengthAsInt$($barStyle_rightBorderWidthString$$));
    return $leftBorderwidth$$ + $rightBorderwidth$$;
  }
  return 0;
}
function $JSCompiler_StaticMethods__getBorderHeight$$($barStyle$$1_bottomBorderWidthString$$) {
  if (null != $barStyle$$1_bottomBorderWidthString$$) {
    var $topBorderWidthString$$ = $barStyle$$1_bottomBorderWidthString$$.borderTopWidth;
    $barStyle$$1_bottomBorderWidthString$$ = $barStyle$$1_bottomBorderWidthString$$.borderBottomWidth;
    var $topBorderwidth$$ = 0, $bottomBorderwidth$$ = 0;
    null != $topBorderWidthString$$ && ($topBorderwidth$$ = $AdfAgent$$.$getCSSLengthAsInt$($topBorderWidthString$$));
    null != $barStyle$$1_bottomBorderWidthString$$ && ($bottomBorderwidth$$ = $AdfAgent$$.$getCSSLengthAsInt$($barStyle$$1_bottomBorderWidthString$$));
    return $topBorderwidth$$ + $bottomBorderwidth$$;
  }
  return 0;
}
;