     name       : 'Account'
     background : yes
 
-  items =
+  NAV_ITEMS =
     personal :
       title  : "Personal"
       items  : [

      wrapper     : no
      scrollView  : no

    mainView.addSubView aside = new KDView
      tagName   : 'aside'
      cssClass  : 'AppModal-nav'

    aside.addSubView navView = @navController.getView()

    mainView.addSubView appContent = new KDCustomHTMLView
      cssClass            : 'AppModal-content'

    appContent.addSubView @tabView = new KDTabView
      hideHandleContainer : yes

    for own sectionKey, section of items
      @navController.instantiateListItems section.items
    modal.once 'KDObjectWillBeDestroyed', ->
      { router } = kd.singletons
      previousRoutes = router.visitedRoutes.filter (route) -> not /^\/Account.*/.test(route)



  if oauthEnabled() is yes
    NAV_ITEMS.personal.items.push({ slug : 'Externals', title : "Linked accounts",     listType: "linkedAccounts" })

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

    options.view = new KDModalView
      title    : 'Account Settings'
