<commit_before>_ = require 'underscore'
Backbone = require 'backbone'
FeaturedLinks = require '../../../collections/featured_links.coffee'
ShowsFeed = require '../../../collections/shows_feed.coffee'
PoliteInfiniteScrollView = require '../../../components/polite_infinite_scroll/client/view.coffee'
Flickity = require 'flickity'
{ seeMoreArtworks } = require '../../../components/show_more_works/index.coffee'
splitTest = require '../../../../desktop/components/split_test/index.coffee'

featuredItemsTemplate = -> require('../../../components/featured_items/template.jade') arguments...
currentShowsTemplate = -> require('../templates/current_shows.jade') arguments...
artworkColumnsTemplate = -> require('../../../components/artwork_columns/template.jade') arguments...

module.exports = class HomePageView extends PoliteInfiniteScrollView

  el: 'body'
  heroDelay: 10000   # 10s

  events: 
    'click .show-more-works__artworks-slider' : seeMoreArtworks

  initialize: ->
    @collection = new ShowsFeed
    if sd.HOMEPAGE_COLLECTION_HUB_ENTRYPOINTS_TEST == "experiment" 
      analytics.track("Impression", {
        context_page: "Home",
        context_module: "HubEntrypoint",
        subject: "Featured Categories",
      })
    splitTest("homepage_collection_hub_entrypoints_test").view()

    @slideshow = new Flickity '#carousel-track',<commit_msg>Don't track any impressions or experiments for homepage entry hub if user is logged in (mobile web) (#4824)<commit_after>_ = require 'underscore'
Backbone = require 'backbone'
FeaturedLinks = require '../../../collections/featured_links.coffee'
ShowsFeed = require '../../../collections/shows_feed.coffee'
PoliteInfiniteScrollView = require '../../../components/polite_infinite_scroll/client/view.coffee'
Flickity = require 'flickity'
{ seeMoreArtworks } = require '../../../components/show_more_works/index.coffee'
splitTest = require '../../../../desktop/components/split_test/index.coffee'

featuredItemsTemplate = -> require('../../../components/featured_items/template.jade') arguments...
currentShowsTemplate = -> require('../templates/current_shows.jade') arguments...
artworkColumnsTemplate = -> require('../../../components/artwork_columns/template.jade') arguments...

module.exports = class HomePageView extends PoliteInfiniteScrollView

  el: 'body'
  heroDelay: 10000   # 10s

  events: 
    'click .show-more-works__artworks-slider' : seeMoreArtworks

  initialize: ->
    @collection = new ShowsFeed
    
    if !sd.CURRENT_USER
      if sd.HOMEPAGE_COLLECTION_HUB_ENTRYPOINTS_TEST == "experiment" 
        analytics.track("Impression", {
          context_page: "Home",
          context_module: "HubEntrypoint",
          subject: "Featured Categories",
        })
      splitTest("homepage_collection_hub_entrypoints_test").view()

    @slideshow = new Flickity '#carousel-track',
{'fraction_non_alphanumeric': 0.1497026932493879, 'fraction_numerical': 0.0062959076600209865, 'mean_word_length': 3.750830564784053, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1997086', 'n_tokens_mistral': 875, 'n_tokens_neox': 841, 'n_words': 152}