-analytics = require '../../../lib/analytics.coffee'
+analyticsHooks = require '../../../../lib/analytics_hooks.coffee'
 _ = require 'underscore'
 Backbone = require 'backbone'
 sd = require('sharify').data

module.exports.SearchResultsView = class SearchResultsView extends Backbone.View

  el: '#search-page'

  events:
    'click .search-result' : 'trackClick'

  initialize: (options) ->
    if options.results

      success: ->
        @$(".search-result[data-id='#{result.id}'] .search-result-thumbnail-fallback").html resolvedImage(result: artwork)

module.exports.init = ->
  new SearchResultsView
    results: sd.RESULTS
