{"size": 1808, "ext": "js", "max_stars_repo_path": "src/app/index.route.js", "max_stars_repo_name": "mitre/policynet", "max_stars_repo_stars_event_min_datetime": "2016-08-17T00:31:10.000Z", "max_stars_repo_stars_event_max_datetime": "2020-11-12T16:37:15.000Z", "max_issues_repo_path": "src/app/index.route.js", "max_issues_repo_name": "mitre/policynet", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/app/index.route.js", "max_forks_repo_name": "mitre/policynet", "max_forks_repo_forks_event_min_datetime": "2017-04-12T14:46:51.000Z", "max_forks_repo_forks_event_max_datetime": "2021-04-29T13:34:50.000Z"}
{"max_stars_count": 13, "max_issues_count": null, "max_forks_count": 9, "avg_line_length": 22.8860759494, "max_line_length": 80, "alphanum_fraction": 0.6255530973}
(function() {
	'use strict';

	angular
	.module('policynet')
	.run(exposeState)
	.config(["$locationProvider", function($locationProvider) {
		$locationProvider.html5Mode({
			enabled: true,
			requireBase: false,
		});
	}])
	.config(routeConfig);


	/** @ngInject */
	function exposeState($rootScope, $state, $stateParams, $log, query){
		$rootScope.$state = $state;
		$rootScope.$stateParams = $stateParams;
		$rootScope.$on('$stateChangeSuccess', function(event, toState){
			query.get(['visit',toState.name], false).then(function(){
			}, function(err){
				$log.error(err);
			});
		});
		$rootScope.sections = [{
			name: 'Overview',
			type: 'toggle',
			pages: [{
				name: "Get the idea",
				url: '/intro',
				type: 'link',
				subheading: 'If you treat the law as a network, what insights can you gain?'
			},{
				name: "Play with the data",
				url: '/explore',
				type: 'link'
			},{
				name: "Get neighborhood",
				url: "/neighborhood",
				type: "link"
			},{
				name: "Bills",
				url: "/bills",
				type: "link"
			}]
		}];
	}

	/** @ngInject */
	function routeConfig($stateProvider, $urlRouterProvider) {
		$stateProvider
		.state('intro', {
			url: '/intro',
			templateUrl: 'app/main/static/intro.html'
		})
		.state('explore', {
			url: '/explore',
			templateUrl: 'app/main/explore/explore.template.html',
			controller: "mainExploreController",
			controllerAs: "explore"
		})
		.state('neighborhood', {
			url: '/neighborhood',
			templateUrl: 'app/main/explore/neighborhood.template.html',
			controller: "neighborhoodController",
			controllerAs: "neighborhood"
		})
		.state('bills', {
			url: '/bills',
			templateUrl: 'app/main/bills/bills.template.html',
			controller: 'billsController',
			controllerAs: 'bills'
		});
		$urlRouterProvider.otherwise('/intro');
	}

})();
