       @updateSearchResult()
     @debouncedGetUser(event.currentTarget.value)
 
+
   setUserInteraction: (enabled) =>
     StoreCart.setEnabled(enabled)
     # TODO: need to elevate this element when switching over to new store design.
     $(@el).toggleClass('js-store--disabled', !enabled)
     $('.js-slider').slider('disabled': !enabled)
 
+
   sliderValue: (price) ->
     price * @RESOLUTION
+
 
   updateSearchResult: =>
     if @searching

      @searching = false
      @updateSearchResult()

  calculate: (position) =>
    new StoreSupporterTagPrice(Math.floor(position / @RESOLUTION))

  onSliderValueChanged: (event, ui) =>
    @slider.dataset.lastValue = ui.value
    @cost = @calculate(ui.value)
    @updateCostDisplay()

  onInput: (event) =>
    if !@searching

    @updateTargetId()
    @setUserInteraction(@user?.id?)


  updateCostDisplay: =>
    @el.querySelector('input[name="item[cost]"]').value = @cost.price()
    @priceElement.textContent = "USD #{@cost.price()}"
