var $AdfDhtmlTrainV2Peer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfRichUIPeer$$, "AdfDhtmlTrainV2Peer");
$goog$exportSymbol$$("AdfDhtmlTrainV2Peer", $AdfDhtmlTrainV2Peer$$);
$AdfDhtmlTrainV2Peer$$.prototype.$InitDomElement$ = function $$AdfDhtmlTrainV2Peer$$$$$InitDomElement$$($component$$2265$$, $domElement$$573$$) {
  $AdfDhtmlTrainV2Peer$$.$superclass$.$InitDomElement$.call(this, $component$$2265$$, $domElement$$573$$);
  var $clientId$$466_containerId$$21$$ = $component$$2265$$.$getClientId$(), $clientId$$466_containerId$$21$$ = $AdfRichUIPeer$$.$CreateSubId$($clientId$$466_containerId$$21$$, $AdfDhtmlTrainV2Peer$$.$_STOP_CONTAINER_ID$);
  $AdfDhtmlTrainV2Peer$$.$_setMinWidth$($component$$2265$$, $clientId$$466_containerId$$21$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTrainV2Peer.prototype.InitDomElement", {$InitDomElement$:$AdfDhtmlTrainV2Peer$$.prototype.$InitDomElement$});
$AdfDhtmlTrainV2Peer$$.$InitSubclass$ = function $$AdfDhtmlTrainV2Peer$$$$InitSubclass$$() {
  this.$_STOP_CONTAINER_ID$ = "stopsContainer";
  this.$_STOP_MIN_WIDTH$ = "38";
  this.$_JOIN_ANIMATION_STYLE_CLASS$ = "AFDrawAnimationElement";
  this.$_V_JOIN_ANIMATION_STYLE_CLASS$ = "AFDrawAnimationElementVertical";
  this.$_JOIN_FILL_CLASS$ = "af|train::join-fill";
  this.$_V_JOIN_FILL_CLASS$ = "af|train-vertical::join-fill";
  this.$_JOIN_WRAPPER_CLASS$ = "af|train::join-wrapper";
  this.$_V_JOIN_WRAPPER_CLASS$ = "af|train-vertical::join-wrapper";
  this.$_V_STOPS_CLASS$ = "af|train-vertical::stops";
};
$goog$exportSymbol$$("AdfDhtmlTrainV2Peer.InitSubclass", $AdfDhtmlTrainV2Peer$$.$InitSubclass$);
$AdfDhtmlTrainV2Peer$$.$__saveJoinWidth$ = function $$AdfDhtmlTrainV2Peer$$$$__saveJoinWidth$$($component$$2266$$) {
  var $joinWidth_laf$$133$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$(), $joinWidth_laf$$133$$ = document.querySelector("." + $joinWidth_laf$$133$$.getStyleClass($AdfDhtmlTrainV2Peer$$.$_JOIN_FILL_CLASS$)).style.width;
  $component$$2266$$.setProperty("joinWidth", $joinWidth_laf$$133$$, !0, $AdfUIComponent$$.$PROPAGATE_ALWAYS$);
};
$AdfDhtmlTrainV2Peer$$.$__saveJoinHeight$ = function $$AdfDhtmlTrainV2Peer$$$$__saveJoinHeight$$($component$$2267$$) {
  var $joinHeight_laf$$134$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$(), $joinHeight_laf$$134$$ = document.querySelector("." + $joinHeight_laf$$134$$.getStyleClass($AdfDhtmlTrainV2Peer$$.$_V_JOIN_FILL_CLASS$)).style.height;
  $component$$2267$$.setProperty("joinHeight", $joinHeight_laf$$134$$, !0, $AdfUIComponent$$.$PROPAGATE_ALWAYS$);
};
$AdfDhtmlTrainV2Peer$$.$_setMinWidth$ = function $$AdfDhtmlTrainV2Peer$$$$_setMinWidth$$($component$$2268$$, $stopsContainerId$$) {
  var $isVertical$$6_laf$$135$$ = "vertical" == $component$$2268$$.getLayout(), $stopsContainer$$ = $AdfAgent$$.$getAgent$().getElementById($stopsContainerId$$);
  if ($stopsContainer$$) {
    var $noOfStops$$ = $stopsContainer$$.childNodes.length - 1, $minStopWidth$$ = $AdfDhtmlTrainV2Peer$$.$_STOP_MIN_WIDTH$;
    $isVertical$$6_laf$$135$$ ? ($isVertical$$6_laf$$135$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$(), $noOfStops$$ = $stopsContainer$$.querySelector("." + $isVertical$$6_laf$$135$$.getStyleClass($AdfDhtmlTrainV2Peer$$.$_V_STOPS_CLASS$)).childNodes.length, $stopsContainer$$.style.minHeight = Number($minStopWidth$$ * $noOfStops$$) + "px") : $stopsContainer$$.style.minWidth = Number($minStopWidth$$ * $noOfStops$$) + "px";
  }
};
$AdfDhtmlTrainV2Peer$$.$__fillJoins$ = function $$AdfDhtmlTrainV2Peer$$$$__fillJoins$$($fillLength$$, $joinPadding$$, $isVertical$$7$$) {
  "true" == $isVertical$$7$$ ? $AdfDhtmlTrainV2Peer$$.$_fillJoinsVertical$($fillLength$$, $joinPadding$$) : $AdfDhtmlTrainV2Peer$$.$_fillJoinsHorizontal$($fillLength$$, $joinPadding$$);
};
$AdfDhtmlTrainV2Peer$$.$_fillJoinsHorizontal$ = function $$AdfDhtmlTrainV2Peer$$$$_fillJoinsHorizontal$$($fillWidth$$, $joinPadding$$1$$) {
  var $joinWrapperNode_laf$$136$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$(), $joinFillNode$$2$$ = document.querySelector("." + $joinWrapperNode_laf$$136$$.getStyleClass($AdfDhtmlTrainV2Peer$$.$_JOIN_FILL_CLASS$)), $currentWidth$$1$$ = $joinFillNode$$2$$.style.width;
  0 < $fillWidth$$ && $fillWidth$$ > $currentWidth$$1$$ && ($AdfDomUtils$$.$addCSSClassName$($joinFillNode$$2$$, $joinWrapperNode_laf$$136$$.getStyleClass($AdfDhtmlTrainV2Peer$$.$_JOIN_ANIMATION_STYLE_CLASS$)), $joinFillNode$$2$$.style.width = $fillWidth$$ + "%");
  $joinWrapperNode_laf$$136$$ = document.querySelector("." + $joinWrapperNode_laf$$136$$.getStyleClass($AdfDhtmlTrainV2Peer$$.$_JOIN_WRAPPER_CLASS$));
  $AdfDhtmlTrainV2Peer$$.$_joinPadding$ = $joinPadding$$1$$;
  $joinWrapperNode_laf$$136$$.style.left = $joinPadding$$1$$;
};
$AdfDhtmlTrainV2Peer$$.$_fillJoinsVertical$ = function $$AdfDhtmlTrainV2Peer$$$$_fillJoinsVertical$$($fillHeight$$, $joinPadding$$2$$) {
  var $joinWrapperNode$$1_laf$$137$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$(), $joinFillNode$$3$$ = document.querySelector("." + $joinWrapperNode$$1_laf$$137$$.getStyleClass($AdfDhtmlTrainV2Peer$$.$_V_JOIN_FILL_CLASS$)), $currentHeight$$1$$ = $joinFillNode$$3$$.style.height;
  0 < $fillHeight$$ && $fillHeight$$ > $currentHeight$$1$$ && ($AdfDomUtils$$.$addCSSClassName$($joinFillNode$$3$$, $joinWrapperNode$$1_laf$$137$$.getStyleClass($AdfDhtmlTrainV2Peer$$.$_V_JOIN_ANIMATION_STYLE_CLASS$)), $joinFillNode$$3$$.style.height = $fillHeight$$ + "%");
  $joinWrapperNode$$1_laf$$137$$ = document.querySelector("." + $joinWrapperNode$$1_laf$$137$$.getStyleClass($AdfDhtmlTrainV2Peer$$.$_V_JOIN_WRAPPER_CLASS$));
  $AdfDhtmlTrainV2Peer$$.$_joinPadding$ = $joinPadding$$2$$;
  $joinWrapperNode$$1_laf$$137$$.style.top = $joinPadding$$2$$;
};
$AdfDhtmlTrainV2Peer$$.prototype.$ConvertClientIdToLocator$ = function $$AdfDhtmlTrainV2Peer$$$$$ConvertClientIdToLocator$$($clientIdDepth$$10_component$$2269$$, $childComponent$$28_clientId$$467_endIndex$$15$$, $descComponentClientId$$11_subComponentId$$11$$, $replaceArray$$12$$) {
  $childComponent$$28_clientId$$467_endIndex$$15$$ = $clientIdDepth$$10_component$$2269$$.$getClientId$();
  $clientIdDepth$$10_component$$2269$$ = $AdfStrings$$.count($childComponent$$28_clientId$$467_endIndex$$15$$, ":");
  $AdfAssert$$.assert(0 <= $descComponentClientId$$11_subComponentId$$11$$.indexOf($childComponent$$28_clientId$$467_endIndex$$15$$));
  $descComponentClientId$$11_subComponentId$$11$$ = $descComponentClientId$$11_subComponentId$$11$$.substring($childComponent$$28_clientId$$467_endIndex$$15$$.length + 1);
  $childComponent$$28_clientId$$467_endIndex$$15$$ = $descComponentClientId$$11_subComponentId$$11$$.indexOf(":");
  0 < $childComponent$$28_clientId$$467_endIndex$$15$$ && $replaceArray$$12$$.push([$clientIdDepth$$10_component$$2269$$ + 1, $descComponentClientId$$11_subComponentId$$11$$.substring(0, $childComponent$$28_clientId$$467_endIndex$$15$$)]);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTrainV2Peer.prototype.ConvertClientIdToLocator", {$ConvertClientIdToLocator$:$AdfDhtmlTrainV2Peer$$.prototype.$ConvertClientIdToLocator$});
$AdfDhtmlTrainV2Peer$$.prototype.$convertLocatorToClientId$ = function $$AdfDhtmlTrainV2Peer$$$$$convertLocatorToClientId$$($component$$2270$$, $index$$214$$) {
  var $element$$330_parent$$70_root$$27_stopsContainer$$1$$ = this.$getDomElement$(), $element$$330_parent$$70_root$$27_stopsContainer$$1$$ = $AdfDomUtils$$.$getFirstDescendentElement$($element$$330_parent$$70_root$$27_stopsContainer$$1$$, "div");
  if (!$element$$330_parent$$70_root$$27_stopsContainer$$1$$) {
    return null;
  }
  var $layout$$3$$ = $component$$2270$$.getLayout();
  "string" == typeof $index$$214$$ && ($index$$214$$ = parseInt($index$$214$$));
  if (0 == $index$$214$$) {
    return "vertical" == $layout$$3$$ ? ($element$$330_parent$$70_root$$27_stopsContainer$$1$$ = $AdfDomUtils$$.$getDescendentElement$($element$$330_parent$$70_root$$27_stopsContainer$$1$$, "div", 1), $AdfDomUtils$$.$getFirstChildElement$($element$$330_parent$$70_root$$27_stopsContainer$$1$$)) : $AdfDomUtils$$.$getDescendentElement$($element$$330_parent$$70_root$$27_stopsContainer$$1$$, "div", 1);
  }
  $element$$330_parent$$70_root$$27_stopsContainer$$1$$ = "vertical" == $layout$$3$$ ? $AdfDomUtils$$.$getDescendentElement$($element$$330_parent$$70_root$$27_stopsContainer$$1$$, "div", 1) : $element$$330_parent$$70_root$$27_stopsContainer$$1$$;
  return ($element$$330_parent$$70_root$$27_stopsContainer$$1$$ = $AdfDomUtils$$.$getChildElementByPosition$($element$$330_parent$$70_root$$27_stopsContainer$$1$$, 1, $index$$214$$ + 1)) ? $element$$330_parent$$70_root$$27_stopsContainer$$1$$.id : null;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlTrainV2Peer.prototype.convertLocatorToClientId", {$convertLocatorToClientId$:$AdfDhtmlTrainV2Peer$$.prototype.$convertLocatorToClientId$});
