var $AdfDhtmlChooseNumberSpinwheelPeer$$ = $AdfRichUIPeer$$.$createPeerClass$($AdfRichUIPeer$$, "AdfDhtmlChooseNumberSpinwheelPeer");
$goog$exportSymbol$$("AdfDhtmlChooseNumberSpinwheelPeer", $AdfDhtmlChooseNumberSpinwheelPeer$$);
$AdfDhtmlChooseNumberSpinwheelPeer$$.$InitSubclass$ = function $$AdfDhtmlChooseNumberSpinwheelPeer$$$$InitSubclass$$() {
  this.$_DEFAULT_WHEEL_ITEM_VALUE$ = 0;
  this.$_RENDERED_WHEEL_ITEMS_COUNT$ = 15;
  this.$_VISIBLE_WHEEL_ITEMS_COUNT$ = 5;
  this.$_PAN_DELTA_THRESHOLD$ = 27;
  this.$_WHEEL_DELTA_THRESHOLD$ = 2;
  this.$_MOMENTUM_ROLL_DELAY$ = this.$_PAN_MOMENTUM_FACTOR$ = 80;
  this.$_KEYBOARD_TYPE_DELAY$ = 2E3;
  this.$_WHEEL_ITEM_POSITION_PREFIX_CLASS$ = "AFWheelItemPos";
  $AdfRichUIPeer$$.$addComponentPropertyChanges$(this, AdfRichChooseNumberSpinwheel.VALUE);
  $AdfRichUIPeer$$.$addComponentPropertyGetters$(this, AdfRichChooseNumberSpinwheel.VALUE);
  $AdfRichUIPeer$$.$addComponentEventHandlers$(this, $AdfUIInputEvent$$.$BLUR_EVENT_TYPE$, $AdfUIInputEvent$$.$FOCUS_EVENT_TYPE$, $AdfUIInputEvent$$.$CLICK_EVENT_TYPE$, $AdfUIInputEvent$$.$KEY_DOWN_EVENT_TYPE$, $AdfUIInputEvent$$.$KEY_PRESS_EVENT_TYPE$);
  $AdfObject$$.$ensureClassInitialization$($AdfSwipeSupport$$);
};
$goog$exportSymbol$$("AdfDhtmlChooseNumberSpinwheelPeer.InitSubclass", $AdfDhtmlChooseNumberSpinwheelPeer$$.$InitSubclass$);
$AdfDhtmlChooseNumberSpinwheelPeer$$.prototype.$InitDomElement$ = function $$AdfDhtmlChooseNumberSpinwheelPeer$$$$$InitDomElement$$($component$$865$$, $rootElement$$34$$) {
  $AdfDhtmlChooseNumberSpinwheelPeer$$.$superclass$.$InitDomElement$.call(this, $component$$865$$, $rootElement$$34$$);
  this.$BindToComponent$($component$$865$$, $rootElement$$34$$);
  $AdfDhtmlChooseNumberSpinwheelPeer$$.$_adjustProps$($component$$865$$);
  $AdfAssert$$.assert("DIV" == $rootElement$$34$$.nodeName);
  $AdfDhtmlChooseNumberSpinwheelPeer$$.$_renderAllRootAttributes$($component$$865$$, $rootElement$$34$$);
  var $priorItemValue$$inline_5783_value$$inline_5769$$ = $AdfDhtmlChooseNumberSpinwheelPeer$$.$_getDefaultableValue$($component$$865$$), $stepSize$$inline_5770_wheelBox$$inline_5775_wheelBox$$inline_5779$$ = $component$$865$$.getStepSize(), $callbacks$$inline_1700_i$$inline_5777_minValue$$inline_5771$$ = $component$$865$$.getMinimum(), $maxValue$$inline_5772_options$$inline_1699$$ = $component$$865$$.getMaximum(), $wheelItemCount$$inline_5773_wheelItemCountHalf$$inline_5785$$ = $AdfDhtmlChooseNumberSpinwheelPeer$$.$_getWheelItemCountToRender$($callbacks$$inline_1700_i$$inline_5777_minValue$$inline_5771$$, 
  $maxValue$$inline_5772_options$$inline_1699$$, $stepSize$$inline_5770_wheelBox$$inline_5775_wheelBox$$inline_5779$$);
  if ($wheelItemCount$$inline_5773_wheelItemCountHalf$$inline_5785$$ <= $AdfDhtmlChooseNumberSpinwheelPeer$$.$_VISIBLE_WHEEL_ITEMS_COUNT$) {
    var $component$$inline_5774_stepSize$$inline_5776_wheelItemStyleClasses$$inline_5780$$ = this.$getComponent$();
    $component$$inline_5774_stepSize$$inline_5776_wheelItemStyleClasses$$inline_5780$$.$_isArc$ = !0;
    $stepSize$$inline_5770_wheelBox$$inline_5775_wheelBox$$inline_5779$$ = document.createDocumentFragment();
    for ($component$$inline_5774_stepSize$$inline_5776_wheelItemStyleClasses$$inline_5780$$ = $component$$inline_5774_stepSize$$inline_5776_wheelItemStyleClasses$$inline_5780$$.getStepSize();$callbacks$$inline_1700_i$$inline_5777_minValue$$inline_5771$$ <= $maxValue$$inline_5772_options$$inline_1699$$;$callbacks$$inline_1700_i$$inline_5777_minValue$$inline_5771$$ += $component$$inline_5774_stepSize$$inline_5776_wheelItemStyleClasses$$inline_5780$$) {
      var $pos$$inline_5778_stepSize$$inline_5781$$ = $callbacks$$inline_1700_i$$inline_5777_minValue$$inline_5771$$ - $priorItemValue$$inline_5783_value$$inline_5769$$;
      $JSCompiler_StaticMethods__encodeItem$$(this, $callbacks$$inline_1700_i$$inline_5777_minValue$$inline_5771$$, $AdfDhtmlChooseNumberSpinwheelPeer$$.$_getWheelItemStyleClasses$() + $pos$$inline_5778_stepSize$$inline_5781$$, $stepSize$$inline_5770_wheelBox$$inline_5775_wheelBox$$inline_5779$$);
    }
  } else {
    $stepSize$$inline_5770_wheelBox$$inline_5775_wheelBox$$inline_5779$$ = document.createDocumentFragment();
    $component$$inline_5774_stepSize$$inline_5776_wheelItemStyleClasses$$inline_5780$$ = $AdfDhtmlChooseNumberSpinwheelPeer$$.$_getWheelItemStyleClasses$();
    $JSCompiler_StaticMethods__encodeItem$$(this, $priorItemValue$$inline_5783_value$$inline_5769$$, $component$$inline_5774_stepSize$$inline_5776_wheelItemStyleClasses$$inline_5780$$ + "0", $stepSize$$inline_5770_wheelBox$$inline_5775_wheelBox$$inline_5779$$);
    for (var $pos$$inline_5778_stepSize$$inline_5781$$ = this.$getComponent$().getStepSize(), $subsequentItemValue$$inline_5782$$ = $priorItemValue$$inline_5783_value$$inline_5769$$, $i$$inline_5784$$ = 1, $wheelItemCount$$inline_5773_wheelItemCountHalf$$inline_5785$$ = $wheelItemCount$$inline_5773_wheelItemCountHalf$$inline_5785$$ / 2;$i$$inline_5784$$ <= $wheelItemCount$$inline_5773_wheelItemCountHalf$$inline_5785$$;$i$$inline_5784$$++) {
      $subsequentItemValue$$inline_5782$$ += $pos$$inline_5778_stepSize$$inline_5781$$, $subsequentItemValue$$inline_5782$$ > $maxValue$$inline_5772_options$$inline_1699$$ && ($subsequentItemValue$$inline_5782$$ = $callbacks$$inline_1700_i$$inline_5777_minValue$$inline_5771$$), $JSCompiler_StaticMethods__encodeItem$$(this, $subsequentItemValue$$inline_5782$$, $component$$inline_5774_stepSize$$inline_5776_wheelItemStyleClasses$$inline_5780$$ + $i$$inline_5784$$, $stepSize$$inline_5770_wheelBox$$inline_5775_wheelBox$$inline_5779$$), 
      $priorItemValue$$inline_5783_value$$inline_5769$$ -= $pos$$inline_5778_stepSize$$inline_5781$$, $priorItemValue$$inline_5783_value$$inline_5769$$ < $callbacks$$inline_1700_i$$inline_5777_minValue$$inline_5771$$ && ($priorItemValue$$inline_5783_value$$inline_5769$$ = $maxValue$$inline_5772_options$$inline_1699$$), $JSCompiler_StaticMethods__encodeItem$$(this, $priorItemValue$$inline_5783_value$$inline_5769$$, $component$$inline_5774_stepSize$$inline_5776_wheelItemStyleClasses$$inline_5780$$ + 
      -$i$$inline_5784$$, $stepSize$$inline_5770_wheelBox$$inline_5775_wheelBox$$inline_5779$$, !0);
    }
  }
  this.$getDomElement$().appendChild($stepSize$$inline_5770_wheelBox$$inline_5775_wheelBox$$inline_5779$$);
  $component$$865$$.$__setIsRendered$(!0);
  $maxValue$$inline_5772_options$$inline_1699$$ = {};
  $maxValue$$inline_5772_options$$inline_1699$$[$AdfSwipeSupport$$.MODE] = $AdfSwipeSupport$$.$MODE_VERTICAL$;
  $maxValue$$inline_5772_options$$inline_1699$$[$AdfSwipeSupport$$.$SUPPORT_MOUSE$] = !0;
  $maxValue$$inline_5772_options$$inline_1699$$[$AdfSwipeSupport$$.$CALLBACK_PARAM$] = $component$$865$$;
  $callbacks$$inline_1700_i$$inline_5777_minValue$$inline_5771$$ = {};
  $callbacks$$inline_1700_i$$inline_5777_minValue$$inline_5771$$[$AdfSwipeSupport$$.$PANNING_CALLBACK$] = this.$createCallback$(this.$_handlePanning$);
  $callbacks$$inline_1700_i$$inline_5777_minValue$$inline_5771$$[$AdfSwipeSupport$$.$PANEND_CALLBACK$] = this.$createCallback$(this.$_handlePanEnd$);
  $callbacks$$inline_1700_i$$inline_5777_minValue$$inline_5771$$[$AdfSwipeSupport$$.$SWIPE_CALLBACK$] = this.$createCallback$(this.$_handleSwipe$);
  $component$$865$$.$_swipeHandler$ = new $AdfSwipeSupport$$($rootElement$$34$$, $callbacks$$inline_1700_i$$inline_5777_minValue$$inline_5771$$, $maxValue$$inline_5772_options$$inline_1699$$);
  $component$$865$$.$_mouseWheelHandle$ = this.$createCallback$(this.$_handleMouseWheel$);
  $rootElement$$34$$.addEventListener("wheel", $component$$865$$.$_mouseWheelHandle$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseNumberSpinwheelPeer.prototype.InitDomElement", {$InitDomElement$:$AdfDhtmlChooseNumberSpinwheelPeer$$.prototype.$InitDomElement$});
$AdfDhtmlChooseNumberSpinwheelPeer$$.prototype.$ComponentRemoved$ = function $$AdfDhtmlChooseNumberSpinwheelPeer$$$$$ComponentRemoved$$($component$$866$$) {
  this.bind($component$$866$$);
  $component$$866$$.$_swipeHandler$.release();
  this.$getDomElement$().removeEventListener("wheel", $component$$866$$.$_mouseWheelHandle$);
  $AdfDhtmlChooseNumberSpinwheelPeer$$.$superclass$.$ComponentRemoved$.call(this, $component$$866$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseNumberSpinwheelPeer.prototype.ComponentRemoved", {$ComponentRemoved$:$AdfDhtmlChooseNumberSpinwheelPeer$$.prototype.$ComponentRemoved$});
$AdfDhtmlChooseNumberSpinwheelPeer$$.$_adjustProps$ = function $$AdfDhtmlChooseNumberSpinwheelPeer$$$$_adjustProps$$($component$$867$$) {
  var $itemLabels$$ = $component$$867$$.$getItemLabels$();
  0 !== $itemLabels$$.length && ($component$$867$$.setMaximum($itemLabels$$.length - 1), $component$$867$$.setMinimum(0), $component$$867$$.$setStepSize$(1));
};
$AdfDhtmlChooseNumberSpinwheelPeer$$.$_getDefaultableValue$ = function $$AdfDhtmlChooseNumberSpinwheelPeer$$$$_getDefaultableValue$$($component$$868$$) {
  var $value$$176$$ = $component$$868$$.getValue();
  return isNaN($value$$176$$) ? $AdfDhtmlChooseNumberSpinwheelPeer$$.$_DEFAULT_WHEEL_ITEM_VALUE$ >= $component$$868$$.getMinimum() && $AdfDhtmlChooseNumberSpinwheelPeer$$.$_DEFAULT_WHEEL_ITEM_VALUE$ <= $component$$868$$.getMaximum() ? $AdfDhtmlChooseNumberSpinwheelPeer$$.$_DEFAULT_WHEEL_ITEM_VALUE$ : $component$$868$$.getMinimum() : $value$$176$$;
};
$AdfDhtmlChooseNumberSpinwheelPeer$$.prototype.$ComponentValueChanged$ = function $$AdfDhtmlChooseNumberSpinwheelPeer$$$$$ComponentValueChanged$$($component$$869$$, $domElement$$113_itemLabels$$1_posInDom$$, $newValue$$49$$) {
  $AdfAssert$$.$assertNumber$($newValue$$49$$);
  $domElement$$113_itemLabels$$1_posInDom$$ = $component$$869$$.$getItemLabels$();
  $domElement$$113_itemLabels$$1_posInDom$$ = $JSCompiler_StaticMethods__isItemInDom$$(this, $domElement$$113_itemLabels$$1_posInDom$$[$newValue$$49$$], !1);
  void 0 !== $domElement$$113_itemLabels$$1_posInDom$$ ? $JSCompiler_StaticMethods__rollToPos$$(this, $domElement$$113_itemLabels$$1_posInDom$$) : $JSCompiler_StaticMethods__rollToValue$$(this, $component$$869$$, $newValue$$49$$);
  return !1;
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseNumberSpinwheelPeer.prototype.ComponentValueChanged", {$ComponentValueChanged$:$AdfDhtmlChooseNumberSpinwheelPeer$$.prototype.$ComponentValueChanged$});
$AdfDhtmlChooseNumberSpinwheelPeer$$.prototype.$GetComponentValue$ = function $$AdfDhtmlChooseNumberSpinwheelPeer$$$$$GetComponentValue$$($component$$870$$, $domElement$$114$$) {
  var $textValue$$ = $domElement$$114$$.getAttribute("aria-valuenow");
  return parseInt($textValue$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseNumberSpinwheelPeer.prototype.GetComponentValue", {$GetComponentValue$:$AdfDhtmlChooseNumberSpinwheelPeer$$.prototype.$GetComponentValue$});
function $JSCompiler_StaticMethods__encodeItem$$($JSCompiler_StaticMethods__encodeItem$self_JSCompiler_temp$$96_size$$inline_1729$$, $isNegative$$inline_1727_itemValue$$2$$, $itemLabels$$2_num$$inline_1726_s$$inline_1728_styleClass$$4$$, $wheelBox$$2$$, $isPriorItem$$) {
  var $spinwheelItem$$ = document.createElement("div");
  $spinwheelItem$$.setAttribute("class", $itemLabels$$2_num$$inline_1726_s$$inline_1728_styleClass$$4$$);
  $itemLabels$$2_num$$inline_1726_s$$inline_1728_styleClass$$4$$ = $JSCompiler_StaticMethods__encodeItem$self_JSCompiler_temp$$96_size$$inline_1729$$.$getComponent$().$getItemLabels$();
  if (0 !== $itemLabels$$2_num$$inline_1726_s$$inline_1728_styleClass$$4$$.length) {
    $JSCompiler_StaticMethods__encodeItem$self_JSCompiler_temp$$96_size$$inline_1729$$ = $itemLabels$$2_num$$inline_1726_s$$inline_1728_styleClass$$4$$[$isNegative$$inline_1727_itemValue$$2$$];
  } else {
    $itemLabels$$2_num$$inline_1726_s$$inline_1728_styleClass$$4$$ = $isNegative$$inline_1727_itemValue$$2$$;
    ($isNegative$$inline_1727_itemValue$$2$$ = 0 > $itemLabels$$2_num$$inline_1726_s$$inline_1728_styleClass$$4$$) && ($itemLabels$$2_num$$inline_1726_s$$inline_1728_styleClass$$4$$ = Math.abs($itemLabels$$2_num$$inline_1726_s$$inline_1728_styleClass$$4$$));
    $itemLabels$$2_num$$inline_1726_s$$inline_1728_styleClass$$4$$ += "";
    for ($JSCompiler_StaticMethods__encodeItem$self_JSCompiler_temp$$96_size$$inline_1729$$ = $JSCompiler_StaticMethods__encodeItem$self_JSCompiler_temp$$96_size$$inline_1729$$.$getComponent$().$getDigits$();$itemLabels$$2_num$$inline_1726_s$$inline_1728_styleClass$$4$$.length < $JSCompiler_StaticMethods__encodeItem$self_JSCompiler_temp$$96_size$$inline_1729$$;) {
      $itemLabels$$2_num$$inline_1726_s$$inline_1728_styleClass$$4$$ = "0" + $itemLabels$$2_num$$inline_1726_s$$inline_1728_styleClass$$4$$;
    }
    $JSCompiler_StaticMethods__encodeItem$self_JSCompiler_temp$$96_size$$inline_1729$$ = $isNegative$$inline_1727_itemValue$$2$$ ? "-" + $itemLabels$$2_num$$inline_1726_s$$inline_1728_styleClass$$4$$ : $itemLabels$$2_num$$inline_1726_s$$inline_1728_styleClass$$4$$;
  }
  $spinwheelItem$$.textContent = $JSCompiler_StaticMethods__encodeItem$self_JSCompiler_temp$$96_size$$inline_1729$$;
  $isPriorItem$$ ? $wheelBox$$2$$.insertBefore($spinwheelItem$$, $wheelBox$$2$$.firstChild) : $wheelBox$$2$$.appendChild($spinwheelItem$$);
}
$AdfDhtmlChooseNumberSpinwheelPeer$$.$_renderAllRootAttributes$ = function $$AdfDhtmlChooseNumberSpinwheelPeer$$$$_renderAllRootAttributes$$($component$$874$$, $rootElement$$36$$) {
  $rootElement$$36$$.setAttribute("role", "spinbutton");
  $rootElement$$36$$.setAttribute("aria-valuemin", $component$$874$$.getMinimum());
  $rootElement$$36$$.setAttribute("aria-valuemax", $component$$874$$.getMaximum());
  var $label$$17_rootStyleClass_value$$180$$ = $component$$874$$.getLabel();
  null != $label$$17_rootStyleClass_value$$180$$ && $rootElement$$36$$.setAttribute("aria-label", $label$$17_rootStyleClass_value$$180$$);
  $label$$17_rootStyleClass_value$$180$$ = $component$$874$$.getValue();
  if (!isNaN($label$$17_rootStyleClass_value$$180$$)) {
    $rootElement$$36$$.setAttribute("aria-valuenow", $label$$17_rootStyleClass_value$$180$$);
    var $itemLabels$$3$$ = $component$$874$$.$getItemLabels$();
    0 !== $itemLabels$$3$$.length && $rootElement$$36$$.setAttribute("aria-valuetext", $itemLabels$$3$$[$label$$17_rootStyleClass_value$$180$$]);
  }
  $rootElement$$36$$.setAttribute("tabindex", "0");
  $label$$17_rootStyleClass_value$$180$$ = $AdfPage$$.$PAGE$.$getLookAndFeel$().getStyleClass("af|chooseNumberSpinwheel");
  $AdfDomUtils$$.$addCSSClassName$($rootElement$$36$$, $label$$17_rootStyleClass_value$$180$$);
};
$AdfDhtmlChooseNumberSpinwheelPeer$$.$_getWheelItemCountToRender$ = function $$AdfDhtmlChooseNumberSpinwheelPeer$$$$_getWheelItemCountToRender$$($minValue$$4_totalNumbers$$, $maxValue$$4$$, $stepSize$$3$$) {
  $minValue$$4_totalNumbers$$ = ($maxValue$$4$$ - $minValue$$4_totalNumbers$$) / $stepSize$$3$$;
  if (0 > $minValue$$4_totalNumbers$$) {
    if (isNaN(component.getValue())) {
      throw "Combination of maximum, minimum and stepSize is invalid for component: " + component.$getClientId$();
    }
    $minValue$$4_totalNumbers$$ = 1;
  }
  return $AdfDhtmlChooseNumberSpinwheelPeer$$.$_RENDERED_WHEEL_ITEMS_COUNT$ > $minValue$$4_totalNumbers$$ ? $minValue$$4_totalNumbers$$ : $AdfDhtmlChooseNumberSpinwheelPeer$$.$_RENDERED_WHEEL_ITEMS_COUNT$;
};
$JSCompiler_prototypeAlias$$ = $AdfDhtmlChooseNumberSpinwheelPeer$$.prototype;
$JSCompiler_prototypeAlias$$.$_handleMouseWheel$ = function $$JSCompiler_prototypeAlias$$$$_handleMouseWheel$$($delta$$10_event$$173$$) {
  $AdfAgent$$.$AGENT$.preventDefault($delta$$10_event$$173$$);
  var $component$$876_rootElement$$38$$ = $delta$$10_event$$173$$.target;
  "spinbutton" !== $component$$876_rootElement$$38$$.getAttribute("role") && ($component$$876_rootElement$$38$$ = $component$$876_rootElement$$38$$.parentElement);
  "spinbutton" === $component$$876_rootElement$$38$$.getAttribute("role") && ($AdfFocusUtils$$.$focusElement$($component$$876_rootElement$$38$$), $component$$876_rootElement$$38$$ = $AdfPage$$.$PAGE$.$findComponent$($component$$876_rootElement$$38$$.id), this.bind($component$$876_rootElement$$38$$), $delta$$10_event$$173$$ = $delta$$10_event$$173$$.deltaY, $delta$$10_event$$173$$ > $AdfDhtmlChooseNumberSpinwheelPeer$$.$_WHEEL_DELTA_THRESHOLD$ ? this.$_rollDown$($component$$876_rootElement$$38$$) : 
  $delta$$10_event$$173$$ < -$AdfDhtmlChooseNumberSpinwheelPeer$$.$_WHEEL_DELTA_THRESHOLD$ && this.$_rollUp$($component$$876_rootElement$$38$$));
};
$JSCompiler_prototypeAlias$$.$_handlePanning$ = function $$JSCompiler_prototypeAlias$$$$_handlePanning$$($event$$174$$, $component$$877$$) {
  this.bind($component$$877$$);
  this.$_isPanning$ || ($AdfFocusUtils$$.$focusElement$(this.$getDomElement$()), this.$_isPanning$ = !0, this.$_delta$ = 0);
  var $delta$$11$$ = this.$_delta$ - $event$$174$$.deltaY;
  $delta$$11$$ > $AdfDhtmlChooseNumberSpinwheelPeer$$.$_PAN_DELTA_THRESHOLD$ ? (this.$_delta$ = $event$$174$$.deltaY, this.$_rollUp$($component$$877$$)) : $delta$$11$$ < -$AdfDhtmlChooseNumberSpinwheelPeer$$.$_PAN_DELTA_THRESHOLD$ && (this.$_delta$ = $event$$174$$.deltaY, this.$_rollDown$($component$$877$$));
};
$JSCompiler_prototypeAlias$$.$_handlePanEnd$ = function $$JSCompiler_prototypeAlias$$$$_handlePanEnd$$() {
  this.$_isPanning$ = null;
};
$JSCompiler_prototypeAlias$$.$_handleSwipe$ = function $$JSCompiler_prototypeAlias$$$$_handleSwipe$$($event$$176$$, $component$$879$$) {
  this.$_isPanning$ = null;
  this.bind($component$$879$$);
  for (var $numberOfRolls$$ = Math.floor($event$$176$$.$velocity$ * this.$getDomElement$().offsetHeight / $AdfDhtmlChooseNumberSpinwheelPeer$$.$_PAN_MOMENTUM_FACTOR$), $rollFunc$$ = 0 < $event$$176$$.deltaY ? this.$_rollDown$ : this.$_rollUp$, $page$$98$$ = $AdfPage$$.$PAGE$, $i$$281$$ = 0;$i$$281$$ < $numberOfRolls$$;$i$$281$$++) {
    $page$$98$$.$scheduleTimer$(this, $rollFunc$$, $component$$879$$, $AdfDhtmlChooseNumberSpinwheelPeer$$.$_MOMENTUM_ROLL_DELAY$ * $i$$281$$, {isSynchronized:!0});
  }
};
$JSCompiler_prototypeAlias$$.$_rollDown$ = function $$JSCompiler_prototypeAlias$$$$_rollDown$$($component$$880$$) {
  this.bind($component$$880$$);
  var $rootElement$$39$$ = this.$getDomElement$(), $lastSpinItem_priorItemValue$$1$$ = $rootElement$$39$$.lastElementChild;
  if ($lastSpinItem_priorItemValue$$1$$) {
    var $pos$$21$$ = $AdfDhtmlChooseNumberSpinwheelPeer$$.$_getPos$($lastSpinItem_priorItemValue$$1$$), $minValue$$5_prevItem$$ = $lastSpinItem_priorItemValue$$1$$;
    if ($component$$880$$.$_isArc$) {
      if (0 == $pos$$21$$ + 1 - $rootElement$$39$$.childElementCount) {
        return;
      }
      $pos$$21$$++;
    } else {
      $minValue$$5_prevItem$$ = $lastSpinItem_priorItemValue$$1$$.previousElementSibling, $rootElement$$39$$.removeChild($lastSpinItem_priorItemValue$$1$$);
    }
    for (;$minValue$$5_prevItem$$;) {
      $minValue$$5_prevItem$$.setAttribute("class", $AdfDhtmlChooseNumberSpinwheelPeer$$.$_getWheelItemStyleClasses$() + $pos$$21$$), 0 === $pos$$21$$ && $JSCompiler_StaticMethods__updateAriaAttributes$$(this, $minValue$$5_prevItem$$), $pos$$21$$--, $minValue$$5_prevItem$$ = $minValue$$5_prevItem$$.previousElementSibling;
    }
    $component$$880$$.$_isArc$ || ($lastSpinItem_priorItemValue$$1$$ = parseInt($rootElement$$39$$.firstElementChild.textContent) - $component$$880$$.getStepSize(), $minValue$$5_prevItem$$ = $component$$880$$.getMinimum(), $lastSpinItem_priorItemValue$$1$$ = $lastSpinItem_priorItemValue$$1$$ < $minValue$$5_prevItem$$ ? $component$$880$$.getMaximum() + 1 - ($minValue$$5_prevItem$$ - $lastSpinItem_priorItemValue$$1$$) : $lastSpinItem_priorItemValue$$1$$, $JSCompiler_StaticMethods__encodeItem$$(this, 
    $lastSpinItem_priorItemValue$$1$$, $AdfDhtmlChooseNumberSpinwheelPeer$$.$_getWheelItemStyleClasses$() + $pos$$21$$, $rootElement$$39$$, !0));
  }
};
$JSCompiler_prototypeAlias$$.$_rollUp$ = function $$JSCompiler_prototypeAlias$$$$_rollUp$$($component$$881$$) {
  this.bind($component$$881$$);
  var $rootElement$$40$$ = this.$getDomElement$(), $firstSpinItem_subsequentItemValue$$1$$ = $rootElement$$40$$.firstElementChild;
  if ($firstSpinItem_subsequentItemValue$$1$$) {
    var $pos$$22$$ = $AdfDhtmlChooseNumberSpinwheelPeer$$.$_getPos$($firstSpinItem_subsequentItemValue$$1$$), $maxValue$$5_nextItem$$1$$ = $firstSpinItem_subsequentItemValue$$1$$;
    if ($component$$881$$.$_isArc$) {
      if (0 == $pos$$22$$ - 1 + $rootElement$$40$$.childElementCount) {
        return;
      }
      $pos$$22$$--;
    } else {
      $maxValue$$5_nextItem$$1$$ = $firstSpinItem_subsequentItemValue$$1$$.nextElementSibling, $rootElement$$40$$.removeChild($firstSpinItem_subsequentItemValue$$1$$);
    }
    for (;$maxValue$$5_nextItem$$1$$;) {
      $maxValue$$5_nextItem$$1$$.setAttribute("class", $AdfDhtmlChooseNumberSpinwheelPeer$$.$_getWheelItemStyleClasses$() + $pos$$22$$), 0 === $pos$$22$$ && $JSCompiler_StaticMethods__updateAriaAttributes$$(this, $maxValue$$5_nextItem$$1$$), $pos$$22$$++, $maxValue$$5_nextItem$$1$$ = $maxValue$$5_nextItem$$1$$.nextElementSibling;
    }
    $component$$881$$.$_isArc$ || ($firstSpinItem_subsequentItemValue$$1$$ = parseInt($rootElement$$40$$.lastElementChild.textContent) + $component$$881$$.getStepSize(), $maxValue$$5_nextItem$$1$$ = $component$$881$$.getMaximum(), $firstSpinItem_subsequentItemValue$$1$$ = $firstSpinItem_subsequentItemValue$$1$$ > $maxValue$$5_nextItem$$1$$ ? $component$$881$$.getMinimum() - 1 + ($firstSpinItem_subsequentItemValue$$1$$ - $maxValue$$5_nextItem$$1$$) : $firstSpinItem_subsequentItemValue$$1$$, $JSCompiler_StaticMethods__encodeItem$$(this, 
    $firstSpinItem_subsequentItemValue$$1$$, $AdfDhtmlChooseNumberSpinwheelPeer$$.$_getWheelItemStyleClasses$() + $pos$$22$$, $rootElement$$40$$));
  }
};
function $JSCompiler_StaticMethods__updateAriaAttributes$$($JSCompiler_StaticMethods__updateAriaAttributes$self$$, $centerElement$$) {
  var $rootElement$$41$$ = $JSCompiler_StaticMethods__updateAriaAttributes$self$$.$getDomElement$(), $textContent$$2$$ = $centerElement$$.textContent, $intValue$$ = parseInt($textContent$$2$$);
  isNaN($intValue$$) ? ($rootElement$$41$$.setAttribute("aria-valuetext", $textContent$$2$$), $rootElement$$41$$.setAttribute("aria-valuenow", $JSCompiler_StaticMethods__updateAriaAttributes$self$$.$getComponent$().$getItemLabels$().indexOf($textContent$$2$$))) : $rootElement$$41$$.setAttribute("aria-valuenow", $intValue$$);
}
$AdfDhtmlChooseNumberSpinwheelPeer$$.$_getPos$ = function $$AdfDhtmlChooseNumberSpinwheelPeer$$$$_getPos$$($element$$222_styleClass$$5$$) {
  $element$$222_styleClass$$5$$ = $element$$222_styleClass$$5$$.getAttribute("class");
  return parseInt($element$$222_styleClass$$5$$.slice($element$$222_styleClass$$5$$.indexOf($AdfDhtmlChooseNumberSpinwheelPeer$$.$_WHEEL_ITEM_POSITION_PREFIX_CLASS$) + $AdfDhtmlChooseNumberSpinwheelPeer$$.$_WHEEL_ITEM_POSITION_PREFIX_CLASS$.length));
};
$AdfDhtmlChooseNumberSpinwheelPeer$$.prototype.$HandleComponentFocus$ = function $$AdfDhtmlChooseNumberSpinwheelPeer$$$$$HandleComponentFocus$$() {
  var $component$$882$$ = this.$getComponent$();
  $component$$882$$.$_lastValue$ = $component$$882$$.getValue();
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseNumberSpinwheelPeer.prototype.HandleComponentFocus", {$HandleComponentFocus$:$AdfDhtmlChooseNumberSpinwheelPeer$$.prototype.$HandleComponentFocus$});
$AdfDhtmlChooseNumberSpinwheelPeer$$.prototype.$HandleComponentBlur$ = function $$AdfDhtmlChooseNumberSpinwheelPeer$$$$$HandleComponentBlur$$() {
  var $component$$883$$ = this.$getComponent$(), $value$$181$$ = $component$$883$$.getValue();
  $value$$181$$ !== $component$$883$$.$_lastValue$ && $AdfValueChangeEvent$$.$queue$($component$$883$$, $component$$883$$.$_lastValue$, $value$$181$$, !1);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseNumberSpinwheelPeer.prototype.HandleComponentBlur", {$HandleComponentBlur$:$AdfDhtmlChooseNumberSpinwheelPeer$$.prototype.$HandleComponentBlur$});
$AdfDhtmlChooseNumberSpinwheelPeer$$.prototype.$HandleComponentClick$ = function $$AdfDhtmlChooseNumberSpinwheelPeer$$$$$HandleComponentClick$$($componentEvent$$142_pos$$23_target$$120$$) {
  $componentEvent$$142_pos$$23_target$$120$$ = $componentEvent$$142_pos$$23_target$$120$$.$getNativeEventTarget$();
  $componentEvent$$142_pos$$23_target$$120$$ = $AdfDhtmlChooseNumberSpinwheelPeer$$.$_getPos$($componentEvent$$142_pos$$23_target$$120$$);
  isNaN($componentEvent$$142_pos$$23_target$$120$$) || $JSCompiler_StaticMethods__rollToPos$$(this, $componentEvent$$142_pos$$23_target$$120$$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseNumberSpinwheelPeer.prototype.HandleComponentClick", {$HandleComponentClick$:$AdfDhtmlChooseNumberSpinwheelPeer$$.prototype.$HandleComponentClick$});
$AdfDhtmlChooseNumberSpinwheelPeer$$.prototype.$HandleComponentKeyDown$ = function $$AdfDhtmlChooseNumberSpinwheelPeer$$$$$HandleComponentKeyDown$$($componentEvent$$143$$) {
  var $component$$884$$ = this.$getComponent$(), $keyCode$$49$$ = $componentEvent$$143$$.$getKeyCode$();
  $keyCode$$49$$ === $AdfKeyStroke$$.$ARROWDOWN_KEY$ ? ($componentEvent$$143$$.cancel(), this.$_rollDown$($component$$884$$)) : $keyCode$$49$$ === $AdfKeyStroke$$.$ARROWUP_KEY$ ? ($componentEvent$$143$$.cancel(), this.$_rollUp$($component$$884$$)) : $keyCode$$49$$ === $AdfKeyStroke$$.$BACKSPACE_KEY$ && void 0 !== $component$$884$$.$_keyboardValue$ && ($component$$884$$.$_keyboardValue$ = $component$$884$$.$_keyboardValue$.slice(0, -1), this.$getDomElement$().setAttribute("title", $component$$884$$.$_keyboardValue$));
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseNumberSpinwheelPeer.prototype.HandleComponentKeyDown", {$HandleComponentKeyDown$:$AdfDhtmlChooseNumberSpinwheelPeer$$.prototype.$HandleComponentKeyDown$});
$AdfDhtmlChooseNumberSpinwheelPeer$$.prototype.$HandleComponentKeyPress$ = function $$AdfDhtmlChooseNumberSpinwheelPeer$$$$$HandleComponentKeyPress$$($componentEvent$$144_keyboardValue$$inline_1733_page$$99$$) {
  var $component$$885$$ = this.$getComponent$();
  void 0 === $component$$885$$.$_keyboardValue$ && ($component$$885$$.$_keyboardValue$ = "");
  $component$$885$$.$_keyboardValue$ += $componentEvent$$144_keyboardValue$$inline_1733_page$$99$$.$getNativeEvent$().key;
  $componentEvent$$144_keyboardValue$$inline_1733_page$$99$$ = $component$$885$$.$_keyboardValue$;
  var $JSCompiler_inline_result$$5481_itemLabels$$inline_5789_value$$inline_5794$$;
  a: {
    if ($JSCompiler_inline_result$$5481_itemLabels$$inline_5789_value$$inline_5794$$ = $component$$885$$.$getItemLabels$(), 0 === $JSCompiler_inline_result$$5481_itemLabels$$inline_5789_value$$inline_5794$$.length) {
      $JSCompiler_inline_result$$5481_itemLabels$$inline_5789_value$$inline_5794$$ = !1;
    } else {
      var $i$$inline_5792_posInDom$$inline_5791$$ = $JSCompiler_StaticMethods__isItemInDom$$(this, $componentEvent$$144_keyboardValue$$inline_1733_page$$99$$, !0);
      if (void 0 !== $i$$inline_5792_posInDom$$inline_5791$$) {
        $JSCompiler_StaticMethods__rollToPos$$(this, $i$$inline_5792_posInDom$$inline_5791$$), $JSCompiler_inline_result$$5481_itemLabels$$inline_5789_value$$inline_5794$$ = !0;
      } else {
        for (var $i$$inline_5792_posInDom$$inline_5791$$ = 0, $len$$inline_5793$$ = $JSCompiler_inline_result$$5481_itemLabels$$inline_5789_value$$inline_5794$$.length;$i$$inline_5792_posInDom$$inline_5791$$ < $len$$inline_5793$$;$i$$inline_5792_posInDom$$inline_5791$$++) {
          if ($AdfDhtmlChooseNumberSpinwheelPeer$$.$_matcher$($JSCompiler_inline_result$$5481_itemLabels$$inline_5789_value$$inline_5794$$[$i$$inline_5792_posInDom$$inline_5791$$], $componentEvent$$144_keyboardValue$$inline_1733_page$$99$$, !0)) {
            $JSCompiler_inline_result$$5481_itemLabels$$inline_5789_value$$inline_5794$$ = $component$$885$$.getValue();
            $JSCompiler_StaticMethods__rollToPos$$(this, $i$$inline_5792_posInDom$$inline_5791$$ - $JSCompiler_inline_result$$5481_itemLabels$$inline_5789_value$$inline_5794$$);
            $JSCompiler_inline_result$$5481_itemLabels$$inline_5789_value$$inline_5794$$ = !0;
            break a;
          }
        }
        $JSCompiler_inline_result$$5481_itemLabels$$inline_5789_value$$inline_5794$$ = void 0;
      }
    }
  }
  $JSCompiler_inline_result$$5481_itemLabels$$inline_5789_value$$inline_5794$$ || $JSCompiler_StaticMethods__rollToValue$$(this, $component$$885$$, $componentEvent$$144_keyboardValue$$inline_1733_page$$99$$);
  this.$getDomElement$().setAttribute("title", $component$$885$$.$_keyboardValue$);
  $componentEvent$$144_keyboardValue$$inline_1733_page$$99$$ = $AdfPage$$.$PAGE$;
  $component$$885$$.$_keyboardTimer$ ? $componentEvent$$144_keyboardValue$$inline_1733_page$$99$$.$rescheduleTimer$($component$$885$$.$_keyboardTimer$, $AdfDhtmlChooseNumberSpinwheelPeer$$.$_KEYBOARD_TYPE_DELAY$) : $component$$885$$.$_keyboardTimer$ = $componentEvent$$144_keyboardValue$$inline_1733_page$$99$$.$scheduleTimer$(null, $AdfDhtmlChooseNumberSpinwheelPeer$$.$_clearKeyboardValue$, $component$$885$$, $AdfDhtmlChooseNumberSpinwheelPeer$$.$_KEYBOARD_TYPE_DELAY$);
};
$AdfObject$$.$exportPrototypeSymbol$("AdfDhtmlChooseNumberSpinwheelPeer.prototype.HandleComponentKeyPress", {$HandleComponentKeyPress$:$AdfDhtmlChooseNumberSpinwheelPeer$$.prototype.$HandleComponentKeyPress$});
function $JSCompiler_StaticMethods__rollToValue$$($JSCompiler_StaticMethods__rollToValue$self$$, $component$$888_min$$5$$, $newValue$$50$$) {
  $newValue$$50$$ = parseInt($newValue$$50$$);
  if (!isNaN($newValue$$50$$)) {
    var $posInDom$$2_value$$183$$ = $JSCompiler_StaticMethods__isItemInDom$$($JSCompiler_StaticMethods__rollToValue$self$$, $newValue$$50$$, !1);
    if (void 0 !== $posInDom$$2_value$$183$$) {
      $JSCompiler_StaticMethods__rollToPos$$($JSCompiler_StaticMethods__rollToValue$self$$, $posInDom$$2_value$$183$$);
    } else {
      for (var $posInDom$$2_value$$183$$ = $component$$888_min$$5$$.getValue(), $stepSize$$4$$ = $component$$888_min$$5$$.getStepSize(), $i$$283$$ = $posInDom$$2_value$$183$$, $max$$3$$ = $component$$888_min$$5$$.getMaximum();$i$$283$$ <= $max$$3$$;$i$$283$$ += $stepSize$$4$$) {
        if ($i$$283$$ === $newValue$$50$$) {
          $JSCompiler_StaticMethods__rollToPos$$($JSCompiler_StaticMethods__rollToValue$self$$, ($i$$283$$ - $posInDom$$2_value$$183$$) / $stepSize$$4$$);
          return;
        }
      }
      $i$$283$$ = $posInDom$$2_value$$183$$;
      for ($component$$888_min$$5$$ = $component$$888_min$$5$$.getMinimum();$i$$283$$ >= $component$$888_min$$5$$;$i$$283$$ -= $stepSize$$4$$) {
        if ($i$$283$$ === $newValue$$50$$) {
          $JSCompiler_StaticMethods__rollToPos$$($JSCompiler_StaticMethods__rollToValue$self$$, ($i$$283$$ - $posInDom$$2_value$$183$$) / $stepSize$$4$$);
          break;
        }
      }
    }
  }
}
function $JSCompiler_StaticMethods__rollToPos$$($JSCompiler_StaticMethods__rollToPos$self$$, $pos$$24$$) {
  var $component$$889$$ = $JSCompiler_StaticMethods__rollToPos$self$$.$getComponent$(), $rollFunc$$1$$ = 0 > $pos$$24$$ ? $JSCompiler_StaticMethods__rollToPos$self$$.$_rollDown$ : $JSCompiler_StaticMethods__rollToPos$self$$.$_rollUp$;
  $pos$$24$$ = Math.abs($pos$$24$$);
  i = 0;
  for ($pos$$24$$ = Math.abs($pos$$24$$);i < $pos$$24$$;i++) {
    $rollFunc$$1$$.call($JSCompiler_StaticMethods__rollToPos$self$$, $component$$889$$);
  }
}
function $JSCompiler_StaticMethods__isItemInDom$$($JSCompiler_StaticMethods__isItemInDom$self_spinItem$$, $matchText$$, $isStartsWith$$) {
  for ($JSCompiler_StaticMethods__isItemInDom$self_spinItem$$ = $JSCompiler_StaticMethods__isItemInDom$self_spinItem$$.$getDomElement$().firstElementChild;$JSCompiler_StaticMethods__isItemInDom$self_spinItem$$;) {
    if ($AdfDhtmlChooseNumberSpinwheelPeer$$.$_matcher$($JSCompiler_StaticMethods__isItemInDom$self_spinItem$$.textContent, $matchText$$, $isStartsWith$$)) {
      return $AdfDhtmlChooseNumberSpinwheelPeer$$.$_getPos$($JSCompiler_StaticMethods__isItemInDom$self_spinItem$$);
    }
    $JSCompiler_StaticMethods__isItemInDom$self_spinItem$$ = $JSCompiler_StaticMethods__isItemInDom$self_spinItem$$.nextElementSibling;
  }
}
$AdfDhtmlChooseNumberSpinwheelPeer$$.$_getWheelItemStyleClasses$ = function $$AdfDhtmlChooseNumberSpinwheelPeer$$$$_getWheelItemStyleClasses$$() {
  $AdfDhtmlChooseNumberSpinwheelPeer$$.$_WHEEL_ITEM_STYLE_CLASSES$ || ($AdfDhtmlChooseNumberSpinwheelPeer$$.$_WHEEL_ITEM_STYLE_CLASSES$ = $AdfPage$$.$PAGE$.$getLookAndFeel$().getStyleClass("af|chooseNumberSpinwheel::item") + " " + $AdfDhtmlChooseNumberSpinwheelPeer$$.$_WHEEL_ITEM_POSITION_PREFIX_CLASS$);
  return $AdfDhtmlChooseNumberSpinwheelPeer$$.$_WHEEL_ITEM_STYLE_CLASSES$;
};
$AdfDhtmlChooseNumberSpinwheelPeer$$.$_matcher$ = function $$AdfDhtmlChooseNumberSpinwheelPeer$$$$_matcher$$($itemValue$$3$$, $matchText$$1$$, $isStartsWith$$1$$) {
  return $isStartsWith$$1$$ ? 0 === $itemValue$$3$$.toLowerCase().indexOf($matchText$$1$$.toLowerCase()) : $itemValue$$3$$ == $matchText$$1$$;
};
$AdfDhtmlChooseNumberSpinwheelPeer$$.$_clearKeyboardValue$ = function $$AdfDhtmlChooseNumberSpinwheelPeer$$$$_clearKeyboardValue$$($component$$890$$) {
  delete $component$$890$$.$_keyboardTimer$;
  delete $component$$890$$.$_keyboardValue$;
  $AdfRichUIPeer$$.$getDomElementForComponent$($component$$890$$).removeAttribute("title");
};
