<commit_before>module.exports = class TeamView extends KDView

  TABS =
    login         : require './teamlogintab'
    domain        : require './teamdomaintab'
    alloweddomain : require './teamalloweddomaintab'
    invite        : require './teaminvitetab'
    username      : require './teamusernametab'

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

    super options, data

    @addSubView @tabView = new KDTabView
      tagName             : 'main'
      hideHandleContainer : yes

    # focus to the first element of the form if there is any form
    @tabView.on 'PaneDidShow', (pane) -> pane.form?.focusFirstElement()


  showTab: (step, query) ->


    if tab = @tabView.getPaneByName step
    then @tabView.showTab tab<commit_msg>teams: creation: route to /Teams if there is no such step<commit_after>module.exports = class TeamView extends KDView

  TABS =
    login         : require './teamlogintab'
    domain        : require './teamdomaintab'
    alloweddomain : require './teamalloweddomaintab'
    invite        : require './teaminvitetab'
    username      : require './teamusernametab'

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

    super options, data

    @addSubView @tabView = new KDTabView
      tagName             : 'main'
      hideHandleContainer : yes

    # focus to the first element of the form if there is any form
    @tabView.on 'PaneDidShow', (pane) -> pane.form?.focusFirstElement()


  showTab: (step, query) ->

    return KD.singletons.router.handleRoute '/Teams'  unless TABS[step]

    if tab = @tabView.getPaneByName step
    then @tabView.showTab tab
{'fraction_non_alphanumeric': 0.10025220680958385, 'fraction_numerical': 0.0, 'mean_word_length': 2.639908256880734, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '4665570', 'n_tokens_mistral': 484, 'n_tokens_neox': 456, 'n_words': 136}