text: import Ember from 'ember';
  import config from './config/environment';
  
  var Router = Ember.Router.extend({
    location: config.locationType
  });
  
  Router.map(function() {
  
    /* Interactive Documentation */
    this.route('installation');
    this.route("helpers-documentation", { path: 'helpers'}, function(){
      this.route('liquid-outlet', function(){
        this.route('other');
      });
      this.route('liquid-bind');
      this.route('liquid-bind-block', function(){
        this.route('page', { path: '/:id' });
      });
      this.route('liquid-if');
      this.route('liquid-spacer');
    });
  
    this.route('transition-map', function(){
      this.route('route-constraints');
      this.route('value-constraints');
      this.route('dom-constraints');
      this.route('initial-constraints');
      this.route('choosing-transitions');
      this.route('debugging-constraints');
    });
  
    this.route('transitions', function(){
      this.route('predefined');
      this.route('explode');
      this.route('defining');
      this.route('primitives', function(){
        this.route('two');
        this.route('three');
      });
    });
  
    this.route("modal-documentation", { path: 'modals'}, function(){
      this.route('modal');
      this.route('component');
      this.route('animation');
  
      // BEGIN-SNIPPET hello-modal-map
      this.modal('hello-modal', {
        withParams: ['salutation', 'person'],
        otherParams: {
          modalMessage: "message"
        },
        actions: {
          changeSalutation: "changeSalutation"
        }
      });
      // END-SNIPPET
  
    });
  
    this.modal('warning-popup', {
      withParams: 'warn'
    });
  
    /* Test Scenarios */
  
    this.route('scenarios', function() {
      this.route('inline');
      this.route('inline-serial');
      this.route('empty-if');
      this.route('growable-with');
      this.route('growable-flexboxes');
      this.route('nested-outlets', function(){
        this.route('middle', function(){
          this.route('inner');
          this.route('inner2');
        });
        this.route('middle2');
      });
      this.route('table-row');
      this.route('remapped-modal');
      this.modal('hello-modal', {
        withParams: {
          testSalutation : 'salutation',
          testPerson : 'person'
        }
      });
      this.route('spacer');
      this.route('versions');
      this.route('hero');
      this.route('model-dependent-rule', function() {
        this.route('page', { path: '/:id' });
        this.route('other', { path: '/other/:id' });
      });
      this.route('interrupted-move', function() {
        this.route('two');
        this.route('three');
      });
      this.route('in-test-outlet');
    });
  
  });
  
  export default Router;
  