 kd                      = require 'kd'
-KDCustomHTMLView        = kd.CustomHTMLView
-KDCustomScrollView      = kd.CustomScrollView
-KDButtonView            = kd.ButtonView
-KDModalView             = kd.ModalView
-KDView                  = kd.View
 async                   = require 'async'
 globals                 = require 'globals'
 remote                  = require('./remote').getInstance()

isSoloProductLite       = require 'app/util/issoloproductlite'
kookies                 = require 'kookies'

module.exports = class MainView extends KDView

  constructor: (options = {}, data)->

    mobileDevices       = /Android|iPhone|iPod/i

    options.domId       = 'kdmaincontainer'
    options.cssClass    = if globals.isLoggedInOnLoad then 'with-sidebar' else ''
    options.deviceType  = if mobileDevices.test navigator.userAgent then 'mobile' else 'desktop'


  createMobileHeader:->

    @addSubView @header = new kd.View
      tagName    : 'header'
      domId      : 'main-header'
      attributes :
        testpath : 'main-header'

    @header.addSubView @hamburgerMenu = new kd.ButtonView
      cssClass  : 'hamburger-menu'
      iconOnly  : yes
      callback  : =>
