/*
Template Name: Color Admin - Responsive Admin Dashboard Template build with Bootstrap 4
Version: 4.4.0
Author: Sean Ngu
Website: http://www.seantheme.com/color-admin/
*/

var colorAdminApp = angular.module('colorAdminApp', [
  'ui.router',
  'ui.router.state.events',
  'ui.bootstrap',
  'oc.lazyLoad'
]);

colorAdminApp.config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) {
  $urlRouterProvider.otherwise('/app/dashboard/v2');

  $stateProvider
    .state('app', {
      url: '/app',
      templateUrl: 'template/app.html',
      abstract: true
    })
    .state('app.dashboard', {
      url: '/dashboard',
      template: '<div ui-view></div>',
      abstract: true
    })
    .state('app.dashboard.v1', {
      url: '/v1',
      templateUrl: 'views/index.html',
      data: {
        pageTitle: 'Dashboard v1'
      },
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
            	'../assets/plugins/jvectormap-next/jquery-jvectormap.css',
            	'../assets/plugins/bootstrap-datepicker/dist/css/bootstrap-datepicker.css',
            	'../assets/plugins/gritter/css/jquery.gritter.css',
              '../assets/plugins/gritter/js/jquery.gritter.js',
              '../assets/plugins/flot/jquery.flot.js',
              '../assets/plugins/flot/jquery.flot.time.js',
              '../assets/plugins/flot/jquery.flot.resize.js',
              '../assets/plugins/flot/jquery.flot.pie.js',
              '../assets/plugins/jquery-sparkline/jquery.sparkline.min.js',
              '../assets/plugins/jvectormap-next/jquery-jvectormap.min.js',
              '../assets/plugins/jvectormap-next/jquery-jvectormap-world-mill.js',
              '../assets/plugins/bootstrap-datepicker/dist/js/bootstrap-datepicker.js'
            ]
          });
        }]
      }
    })
    .state('app.dashboard.v2', {
      url: '/v2',
      templateUrl: 'views/index_v2.html',
      data: {
        pageTitle: 'Dashboard v2'
      },
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
              '../assets/plugins/jvectormap-next/jquery-jvectormap.css',
              '../assets/plugins/bootstrap-calendar/css/bootstrap_calendar.css',
              '../assets/plugins/gritter/css/jquery.gritter.css',
              '../assets/plugins/nvd3/build/nv.d3.css',
              '../assets/plugins/d3/d3.min.js',
              '../assets/plugins/nvd3/build/nv.d3.min.js',
              '../assets/plugins/jvectormap-next/jquery-jvectormap.min.js',
              '../assets/plugins/jvectormap-next/jquery-jvectormap-world-mill.js',
              '../assets/plugins/bootstrap-calendar/js/bootstrap_calendar.min.js',
              '../assets/plugins/gritter/js/jquery.gritter.js'
            ]
          });
        }]
      }
    })
    .state('app.dashboard.v3', {
      url: '/v3',
      templateUrl: 'views/index_v3.html',
      data: {
        pageTitle: 'Dashboard v3'
      },
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
              '../assets/plugins/jvectormap-next/jquery-jvectormap.css',
							'../assets/plugins/nvd3/build/nv.d3.css',
							'../assets/plugins/bootstrap-daterangepicker/daterangepicker.css',
							'../assets/plugins/d3/d3.min.js',
							'../assets/plugins/nvd3/build/nv.d3.min.js',
							'../assets/plugins/jvectormap-next/jquery-jvectormap.min.js',
							'../assets/plugins/jvectormap-next/jquery-jvectormap-world-mill.js',
							'../assets/plugins/apexcharts/dist/apexcharts.min.js',
							'../assets/plugins/moment/min/moment.min.js',
							'../assets/plugins/bootstrap-daterangepicker/daterangepicker.js',
            ]
          });
        }]
      }
    })
    .state('app.email', {
      url: '/email',
      template: '<div ui-view ng-class="{ \'height-full\': setting.layout.pageContentFullHeight }"></div>',
      abstract: true
    })
    .state('app.email.inbox', {
      url: '/inbox',
      data: {
        pageTitle: 'Email Inbox'
      },
      templateUrl: 'views/email_inbox.html'
    })
    .state('app.email.compose', {
      url: '/compose',
      data: {
        pageTitle: 'Email Compose'
      },
      templateUrl: 'views/email_compose.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
              '../assets/plugins/tag-it/css/jquery.tagit.css',
              '../assets/plugins/bootstrap3-wysihtml5-bower/dist/bootstrap3-wysihtml5.min.css',
              '../assets/plugins/jquery-migrate/dist/jquery-migrate.min.js',
              '../assets/plugins/tag-it/js/tag-it.min.js',
              '../assets/plugins/bootstrap3-wysihtml5-bower/dist/bootstrap3-wysihtml5.all.min.js'
            ]
          })
        }]
      }
    })
    .state('app.email.detail', {
      url: '/detail',
      data: {
        pageTitle: 'Email Detail'
      },
      templateUrl: 'views/email_detail.html'
    })
    .state('app.widget', {
      url: '/widget',
      data: {
        pageTitle: 'Widgets'
      },
      templateUrl: 'views/widget.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
            	'../assets/plugins/nvd3/build/nv.d3.css',
            	'../assets/plugins/d3/d3.min.js',
              '../assets/plugins/nvd3/build/nv.d3.min.js',
              '../assets/plugins/clipboard/dist/clipboard.min.js',
              '../assets/plugins/highlight.js/highlight.min.js'
            ]
          })
        }]
      }
    })
    .state('app.ui', {
      url: '/ui',
      template: '<div ui-view></div>',
      abstract: true
    })
    .state('app.ui.general', {
      url: '/general',
      data: {
        pageTitle: 'UI General'
      },
      templateUrl: 'views/ui_general.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
              '../assets/plugins/highlight.js/highlight.min.js'
            ]
          });
        }]
      }
    })
    .state('app.ui.typography', {
      url: '/typography',
      data: {
        pageTitle: 'UI Typography'
      },
      templateUrl: 'views/ui_typography.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
              '../assets/plugins/highlight.js/highlight.min.js'
            ]
          });
        }]
      }
    })
    .state('app.ui.tabsAccordions', {
      url: '/tabs-accordions',
      data: {
        pageTitle: 'UI Tabs & Accordions'
      },
      templateUrl: 'views/ui_tabs_accordions.html'
    })
    .state('app.ui.unlimitedTabs', {
      url: '/unlimited-nav-tabs',
      data: {
        pageTitle: 'UI Unlimited Nav Tabs'
      },
      templateUrl: 'views/ui_unlimited_tabs.html'
    })
    .state('app.ui.modalNotification', {
      url: '/modal-notification',
      data: {
        pageTitle: 'UI Modal & Notification'
      },
      templateUrl: 'views/ui_modal_notification.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            files: [
              '../assets/plugins/gritter/css/jquery.gritter.css',
              '../assets/plugins/gritter/js/jquery.gritter.js',
              '../assets/plugins/sweetalert/dist/sweetalert.min.js'
            ]
          });
        }]
      }
    })
    .state('app.ui.widgetBoxes', {
      url: '/widget-boxes',
      data: {
        pageTitle: 'UI Widget Boxes'
      },
      templateUrl: 'views/ui_widget_boxes.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
              '../assets/plugins/highlight.js/highlight.min.js'
            ]
          });
        }]
      }
    })
    .state('app.ui.mediaObject', {
      url: '/media-object',
      data: {
        pageTitle: 'UI Media Object'
      },
      templateUrl: 'views/ui_media_object.html'
    })
    .state('app.ui.buttons', {
      url: '/buttons',
      data: {
        pageTitle: 'UI Buttons'
      },
      templateUrl: 'views/ui_buttons.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
              '../assets/plugins/highlight.js/highlight.min.js'
            ]
          });
        }]
      }
    })
    .state('app.ui.icons', {
      url: '/font-awesome',
      data: {
        pageTitle: 'UI FontAwesome'
      },
      templateUrl: 'views/ui_icons.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
              '../assets/plugins/highlight.js/highlight.min.js'
            ]
          });
        }]
      }
    })
    .state('app.ui.simpleLineIcons', {
      url: '/simple-line-icons',
      data: {
        pageTitle: 'UI Simple Line Icons'
      },
      templateUrl: 'views/ui_simple_line_icons.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            files: [
              '../assets/plugins/simple-line-icons/css/simple-line-icons.css'
            ]
          });
        }]
      }
    })
    .state('app.ui.ionicons', {
      url: '/ionicons',
      data: {
        pageTitle: 'UI Ionicons'
      },
      templateUrl: 'views/ui_ionicons.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            files: [
              '../assets/plugins/ionicons/css/ionicons.min.css'
            ]
          });
        }]
      }
    })
    .state('app.ui.tree', {
      url: '/tree',
      data: {
        pageTitle: 'UI Tree View'
      },
      templateUrl: 'views/ui_tree.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            files: [
              '../assets/plugins/jstree/dist/themes/default/style.min.css',
              '../assets/plugins/jstree/dist/jstree.min.js'
            ]
          });
        }]
      }
    })
    .state('app.ui.languageBarIcon', {
      url: '/language-bar-icon',
      data: {
        pageTitle: 'UI Language Bar Icon'
      },
      templateUrl: 'views/ui_language_bar_icon.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            files: [
              '../assets/plugins/flag-icon-css/css/flag-icon.min.css'
            ]
          });
        }]
      }
    })
    .state('app.ui.socialButtons', {
      url: '/social-buttons',
      data: {
        pageTitle: 'UI Social Buttons'
      },
      templateUrl: 'views/ui_social_buttons.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            files: [
              '../assets/plugins/bootstrap-social/bootstrap-social.css'
            ]
          });
        }]
      }
    })
    .state('app.ui.tour', {
      url: '/tour',
      data: {
        pageTitle: 'Intro JS'
      },
      templateUrl: 'views/ui_tour.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            files: [
              '../assets/plugins/intro.js/minified/introjs.min.css',
              '../assets/plugins/intro.js/minified/intro.min.js'
            ]
          });
        }]
      }
    })
    .state('app.bootstrap4', {
      url: '/bootstrap4',
      data: {
        pageTitle: 'Bootstrap 4'
      },
      templateUrl: 'views/bootstrap_4.html'
    })
    .state('app.form', {
      url: '/form',
      template: '<div ui-view></div>',
      abstract: true
    })
    .state('app.form.elements', {
      url: '/elements',
      data: {
        pageTitle: 'Form Elements'
      },
      templateUrl: 'views/form_elements.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            files: [
              '../assets/plugins/highlight.js/highlight.min.js'
            ]
          });
        }]
      }
    })
    .state('app.form.plugins', {
      url: '/plugins',
      data: {
        pageTitle: 'Form Plugins'
      },
      templateUrl: 'views/form_plugins.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
              '../assets/plugins/bootstrap-datepicker/dist/css/bootstrap-datepicker.css',
							'../assets/plugins/bootstrap-datepicker/dist/css/bootstrap-datepicker3.css',
							'../assets/plugins/ion-rangeslider/css/ion.rangeSlider.min.css',
							'../assets/plugins/bootstrap-colorpicker/dist/css/bootstrap-colorpicker.min.css',
							'../assets/plugins/bootstrap-timepicker/css/bootstrap-timepicker.min.css',
							'../assets/plugins/@danielfarrell/bootstrap-combobox/css/bootstrap-combobox.css',
							'../assets/plugins/bootstrap-select/dist/css/bootstrap-select.min.css',
							'../assets/plugins/tag-it/css/jquery.tagit.css',
							'../assets/plugins/bootstrap-daterangepicker/daterangepicker.css',
							'../assets/plugins/select2/dist/css/select2.min.css',
							'../assets/plugins/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css',
							'../assets/plugins/bootstrap-colorpalette/css/bootstrap-colorpalette.css',
							'../assets/plugins/jquery-simplecolorpicker/jquery.simplecolorpicker.css',
							'../assets/plugins/jquery-simplecolorpicker/jquery.simplecolorpicker-fontawesome.css',
							'../assets/plugins/jquery-simplecolorpicker/jquery.simplecolorpicker-glyphicons.css',
							'../assets/plugins/jquery-migrate/dist/jquery-migrate.min.js',
							'../assets/plugins/moment/min/moment.min.js',
							'../assets/plugins/bootstrap-datepicker/dist/js/bootstrap-datepicker.js',
							'../assets/plugins/ion-rangeslider/js/ion.rangeSlider.min.js',
							'../assets/plugins/bootstrap-colorpicker/dist/js/bootstrap-colorpicker.min.js',
							'../assets/plugins/jquery.maskedinput/src/jquery.maskedinput.js',
							'../assets/plugins/bootstrap-timepicker/js/bootstrap-timepicker.min.js',
							'../assets/plugins/pwstrength-bootstrap/dist/pwstrength-bootstrap.min.js',
							'../assets/plugins/@danielfarrell/bootstrap-combobox/js/bootstrap-combobox.js',
							'../assets/plugins/bootstrap-select/dist/js/bootstrap-select.min.js',
							'../assets/plugins/tag-it/js/tag-it.min.js',
							'../assets/plugins/bootstrap-daterangepicker/daterangepicker.js',
							'../assets/plugins/select2/dist/js/select2.min.js',
							'../assets/plugins/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js',
							'../assets/plugins/bootstrap-show-password/dist/bootstrap-show-password.js',
							'../assets/plugins/bootstrap-colorpalette/js/bootstrap-colorpalette.js',
							'../assets/plugins/jquery-simplecolorpicker/jquery.simplecolorpicker.js',
							'../assets/plugins/clipboard/dist/clipboard.min.js'
            ]
          });
        }]
      }
    })
    .state('app.form.sliderSwitcher', {
      url: '/slider-switcher',
      data: {
        pageTitle: 'Form Slider + Switcher'
      },
      templateUrl: 'views/form_slider_switcher.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            files: [
              '../assets/plugins/switchery/switchery.min.css',
							'../assets/plugins/abpetkov-powerange/dist/powerange.min.css',
							'../assets/plugins/switchery/switchery.min.js',
							'../assets/plugins/abpetkov-powerange/dist/powerange.min.js'
            ]
          });
        }]
      }
    })
    .state('app.form.summernote', {
      url: '/summernote',
      data: {
        pageTitle: 'Summernote'
      },
      templateUrl: 'views/form_summernote.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            files: [
              '../assets/plugins/summernote/dist/summernote.css',
              '../assets/plugins/summernote/dist/summernote.min.js'
            ]
          });
        }]
      }
    })
    .state('app.form.dropzone', {
      url: '/dropzone',
      data: {
        pageTitle: 'Dropzone'
      },
      templateUrl: 'views/form_dropzone.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            files: [
              '../assets/plugins/dropzone/dist/min/dropzone.min.css',
              '../assets/plugins/dropzone/dist/min/dropzone.min.js',
              '../assets/plugins/highlight.js/highlight.min.js'
            ]
          });
        }]
      }
    })
    .state('app.form.validation', {
      url: '/validation',
      data: {
        pageTitle: 'Form Validation'
      },
      templateUrl: 'views/form_validation.html'
    })
    .state('app.table', {
      url: '/table',
      template: '<div ui-view></div>',
      abstract: true
    })
    .state('app.table.basic', {
      url: '/basic',
      data: {
        pageTitle: 'Basic Table'
      },
      templateUrl: 'views/table_basic.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
              '../assets/plugins/highlight.js/highlight.min.js'
            ]
          });
        }]
      }
    })
    .state('app.table.manage', {
      url: '/manage',
      template: '<div ui-view></div>',
      abstract: true
    })
    .state('app.table.manage.default', {
      url: '/default',
      data: {
        pageTitle: 'Managed Table Default'
      },
      templateUrl: 'views/table_manage.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
              '../assets/plugins/datatables.net-bs4/css/dataTables.bootstrap4.min.css',
							'../assets/plugins/datatables.net-responsive-bs4/css/responsive.bootstrap4.min.css',
							'../assets/plugins/datatables.net/js/jquery.dataTables.min.js',
							'../assets/plugins/datatables.net-bs4/js/dataTables.bootstrap4.min.js',
							'../assets/plugins/datatables.net-responsive/js/dataTables.responsive.min.js',
							'../assets/plugins/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js'
            ]
          });
        }]
      }
    })
    .state('app.table.manage.autofill', {
      url: '/autofill',
      data: {
        pageTitle: 'Managed Table Autofill'
      },
      templateUrl: 'views/table_manage_autofill.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
              '../assets/plugins/datatables.net-bs4/css/dataTables.bootstrap4.min.css',
							'../assets/plugins/datatables.net-responsive-bs4/css/responsive.bootstrap4.min.css',
							'../assets/plugins/datatables.net-autofill-bs4/css/autofill.bootstrap4.min.css',
							'../assets/plugins/datatables.net/js/jquery.dataTables.min.js',
							'../assets/plugins/datatables.net-bs4/js/dataTables.bootstrap4.min.js',
							'../assets/plugins/datatables.net-responsive/js/dataTables.responsive.min.js',
							'../assets/plugins/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js',
							'../assets/plugins/datatables.net-autofill/js/dataTables.autofill.min.js',
							'../assets/plugins/datatables.net-autofill-bs4/js/autofill.bootstrap4.min.js'
            ]
          });
        }]
      }

    })
    .state('app.table.manage.buttons', {
      url: '/buttons',
      data: {
        pageTitle: 'Managed Table Buttons'
      },
      templateUrl: 'views/table_manage_buttons.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
              '../assets/plugins/datatables.net-bs4/css/dataTables.bootstrap4.min.css',
							'../assets/plugins/datatables.net-responsive-bs4/css/responsive.bootstrap4.min.css',
							'../assets/plugins/datatables.net-buttons-bs4/css/buttons.bootstrap4.min.css',
							'../assets/plugins/datatables.net/js/jquery.dataTables.min.js',
							'../assets/plugins/datatables.net-bs4/js/dataTables.bootstrap4.min.js',
							'../assets/plugins/datatables.net-responsive/js/dataTables.responsive.min.js',
							'../assets/plugins/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js',
							'../assets/plugins/datatables.net-buttons/js/dataTables.buttons.min.js',
							'../assets/plugins/datatables.net-buttons-bs4/js/buttons.bootstrap4.min.js',
							'../assets/plugins/datatables.net-buttons/js/buttons.colVis.min.js',
							'../assets/plugins/datatables.net-buttons/js/buttons.flash.min.js',
							'../assets/plugins/datatables.net-buttons/js/buttons.html5.min.js',
							'../assets/plugins/datatables.net-buttons/js/buttons.print.min.js',
							'../assets/plugins/pdfmake/build/pdfmake.min.js',
							'../assets/plugins/pdfmake/build/vfs_fonts.js',
							'../assets/plugins/jszip/dist/jszip.min.js',
            ]
          });
        }]
      }
    })
    .state('app.table.manage.colReorder', {
      url: '/colreorder',
      data: {
        pageTitle: 'Managed Table ColReorder'
      },
      templateUrl: 'views/table_manage_colreorder.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
              '../assets/plugins/datatables.net-bs4/css/dataTables.bootstrap4.min.css',
							'../assets/plugins/datatables.net-responsive-bs4/css/responsive.bootstrap4.min.css',
							'../assets/plugins/datatables.net-colreorder-bs4/css/colreorder.bootstrap4.min.css',
							'../assets/plugins/datatables.net/js/jquery.dataTables.min.js',
							'../assets/plugins/datatables.net-bs4/js/dataTables.bootstrap4.min.js',
							'../assets/plugins/datatables.net-responsive/js/dataTables.responsive.min.js',
							'../assets/plugins/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js',
							'../assets/plugins/datatables.net-colreorder/js/dataTables.colreorder.min.js',
							'../assets/plugins/datatables.net-colreorder-bs4/js/colreorder.bootstrap4.min.js',
            ]
          });
        }]
      }
    })
    .state('app.table.manage.fixedColumns', {
      url: '/fixed-column',
      data: {
        pageTitle: 'Managed Table Fixed Columns'
      },
      templateUrl: 'views/table_manage_fixed_columns.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
              '../assets/plugins/datatables.net-bs4/css/dataTables.bootstrap4.min.css',
							'../assets/plugins/datatables.net-fixedcolumns-bs4/css/fixedcolumns.bootstrap4.min.css',
							'../assets/plugins/datatables.net/js/jquery.dataTables.min.js',
							'../assets/plugins/datatables.net-bs4/js/dataTables.bootstrap4.min.js',
							'../assets/plugins/datatables.net-fixedcolumns/js/dataTables.fixedcolumns.min.js',
							'../assets/plugins/datatables.net-fixedcolumns-bs4/js/fixedcolumns.bootstrap4.min.js'
            ]
          });
        }]
      }
    })
    .state('app.table.manage.fixedHeader', {
      url: '/fixed-header',
      data: {
        pageTitle: 'Managed Table Fixed Header'
      },
      templateUrl: 'views/table_manage_fixed_header.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
              '../assets/plugins/datatables.net-bs4/css/dataTables.bootstrap4.min.css',
							'../assets/plugins/datatables.net-responsive-bs4/css/responsive.bootstrap4.min.css',
							'../assets/plugins/datatables.net-fixedheader-bs4/css/fixedheader.bootstrap4.min.css',
							'../assets/plugins/datatables.net/js/jquery.dataTables.min.js',
							'../assets/plugins/datatables.net-bs4/js/dataTables.bootstrap4.min.js',
							'../assets/plugins/datatables.net-responsive/js/dataTables.responsive.min.js',
							'../assets/plugins/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js',
							'../assets/plugins/datatables.net-fixedheader/js/dataTables.fixedheader.min.js',
							'../assets/plugins/datatables.net-fixedheader-bs4/js/fixedheader.bootstrap4.min.js'
            ]
          });
        }]
      }
    })
    .state('app.table.manage.keyTable', {
      url: '/keytable',
      data: {
        pageTitle: 'Managed Table KeyTable'
      },
      templateUrl: 'views/table_manage_keytable.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
              '../assets/plugins/datatables.net-bs4/css/dataTables.bootstrap4.min.css',
							'../assets/plugins/datatables.net-responsive-bs4/css/responsive.bootstrap4.min.css',
							'../assets/plugins/datatables.net-keytable-bs4/css/keytable.bootstrap4.min.css',
							'../assets/plugins/datatables.net/js/jquery.dataTables.min.js',
							'../assets/plugins/datatables.net-bs4/js/dataTables.bootstrap4.min.js',
							'../assets/plugins/datatables.net-responsive/js/dataTables.responsive.min.js',
							'../assets/plugins/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js',
							'../assets/plugins/datatables.net-keytable/js/dataTables.keytable.min.js',
							'../assets/plugins/datatables.net-keytable-bs4/js/keytable.bootstrap4.min.js',
            ]
          });
        }]
      }
    })
    .state('app.table.manage.responsive', {
      url: '/responsive',
      data: {
        pageTitle: 'Managed Table Responsive'
      },
      templateUrl: 'views/table_manage_responsive.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
							'../assets/plugins/datatables.net-bs4/css/dataTables.bootstrap4.min.css',
							'../assets/plugins/datatables.net-responsive-bs4/css/responsive.bootstrap4.min.css',
							'../assets/plugins/datatables.net/js/jquery.dataTables.min.js',
							'../assets/plugins/datatables.net-bs4/js/dataTables.bootstrap4.min.js',
							'../assets/plugins/datatables.net-responsive/js/dataTables.responsive.min.js',
							'../assets/plugins/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js'
            ]
          });
        }]
      }
    })
    .state('app.table.manage.rowReorder', {
      url: '/rowreorder',
      data: {
        pageTitle: 'Managed Table RowReorder'
      },
      templateUrl: 'views/table_manage_rowreorder.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
              '../assets/plugins/datatables.net-bs4/css/dataTables.bootstrap4.min.css',
							'../assets/plugins/datatables.net-responsive-bs4/css/responsive.bootstrap4.min.css',
							'../assets/plugins/datatables.net-rowreorder-bs4/css/rowreorder.bootstrap4.min.css',
							'../assets/plugins/datatables.net/js/jquery.dataTables.min.js',
							'../assets/plugins/datatables.net-bs4/js/dataTables.bootstrap4.min.js',
							'../assets/plugins/datatables.net-responsive/js/dataTables.responsive.min.js',
							'../assets/plugins/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js',
							'../assets/plugins/datatables.net-rowreorder/js/dataTables.rowreorder.min.js',
							'../assets/plugins/datatables.net-rowreorder-bs4/js/rowreorder.bootstrap4.min.js'
            ]
          });
        }]
      }
    })
    .state('app.table.manage.scroller', {
      url: '/scroller',
      data: {
        pageTitle: 'Managed Table Scroller'
      },
      templateUrl: 'views/table_manage_scroller.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
              '../assets/plugins/datatables.net-bs4/css/dataTables.bootstrap4.min.css',
							'../assets/plugins/datatables.net-responsive-bs4/css/responsive.bootstrap4.min.css',
							'../assets/plugins/datatables.net-scroller-bs4/css/scroller.bootstrap4.min.css',
							'../assets/plugins/datatables.net/js/jquery.dataTables.min.js',
							'../assets/plugins/datatables.net-bs4/js/dataTables.bootstrap4.min.js',
							'../assets/plugins/datatables.net-responsive/js/dataTables.responsive.min.js',
							'../assets/plugins/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js',
							'../assets/plugins/datatables.net-scroller/js/dataTables.scroller.min.js',
							'../assets/plugins/datatables.net-scroller-bs4/js/scroller.bootstrap4.min.js'
            ]
          });
        }]
      }
    })
    .state('app.table.manage.select', {
      url: '/select',
      data: {
        pageTitle: 'Managed Table Select'
      },
      templateUrl: 'views/table_manage_select.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
              '../assets/plugins/datatables.net-bs4/css/dataTables.bootstrap4.min.css',
							'../assets/plugins/datatables.net-responsive-bs4/css/responsive.bootstrap4.min.css',
							'../assets/plugins/datatables.net-select-bs4/css/select.bootstrap4.min.css',
							'../assets/plugins/datatables.net/js/jquery.dataTables.min.js',
							'../assets/plugins/datatables.net-bs4/js/dataTables.bootstrap4.min.js',
							'../assets/plugins/datatables.net-responsive/js/dataTables.responsive.min.js',
							'../assets/plugins/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js',
							'../assets/plugins/datatables.net-select/js/dataTables.select.min.js',
							'../assets/plugins/datatables.net-select-bs4/js/select.bootstrap4.min.js'
            ]
          });
        }]
      }
    })
    .state('app.table.manage.combine', {
      url: '/combine',
      data: {
        pageTitle: 'Managed Table Extension Combination'
      },
      templateUrl: 'views/table_manage_combine.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
							'../assets/plugins/datatables.net-bs4/css/dataTables.bootstrap4.min.css',
							'../assets/plugins/datatables.net-responsive-bs4/css/responsive.bootstrap4.min.css',
							'../assets/plugins/datatables.net-buttons-bs4/css/buttons.bootstrap4.min.css',
							'../assets/plugins/datatables.net-autofill-bs4/css/autofill.bootstrap4.min.css',
							'../assets/plugins/datatables.net-colreorder-bs4/css/colreorder.bootstrap4.min.css',
							'../assets/plugins/datatables.net-keytable-bs4/css/keytable.bootstrap4.min.css',
							'../assets/plugins/datatables.net-rowreorder-bs4/css/rowreorder.bootstrap4.min.css',
							'../assets/plugins/datatables.net-select-bs4/css/select.bootstrap4.min.css',
							'../assets/plugins/datatables.net/js/jquery.dataTables.min.js',
							'../assets/plugins/datatables.net-bs4/js/dataTables.bootstrap4.min.js',
							'../assets/plugins/datatables.net-responsive/js/dataTables.responsive.min.js',
							'../assets/plugins/datatables.net-responsive-bs4/js/responsive.bootstrap4.min.js',
							'../assets/plugins/datatables.net-autofill/js/dataTables.autofill.min.js',
							'../assets/plugins/datatables.net-autofill-bs4/js/autofill.bootstrap4.min.js',
							'../assets/plugins/datatables.net-colreorder/js/dataTables.colreorder.min.js',
							'../assets/plugins/datatables.net-colreorder-bs4/js/colreorder.bootstrap4.min.js',
							'../assets/plugins/datatables.net-keytable/js/dataTables.keytable.min.js',
							'../assets/plugins/datatables.net-keytable-bs4/js/keytable.bootstrap4.min.js',
							'../assets/plugins/datatables.net-rowreorder/js/dataTables.rowreorder.min.js',
							'../assets/plugins/datatables.net-rowreorder-bs4/js/rowreorder.bootstrap4.min.js',
							'../assets/plugins/datatables.net-select/js/dataTables.select.min.js',
							'../assets/plugins/datatables.net-select-bs4/js/select.bootstrap4.min.js',
							'../assets/plugins/datatables.net-buttons/js/dataTables.buttons.min.js',
							'../assets/plugins/datatables.net-buttons-bs4/js/buttons.bootstrap4.min.js',
							'../assets/plugins/datatables.net-buttons/js/buttons.colVis.min.js',
							'../assets/plugins/datatables.net-buttons/js/buttons.flash.min.js',
							'../assets/plugins/datatables.net-buttons/js/buttons.html5.min.js',
							'../assets/plugins/datatables.net-buttons/js/buttons.print.min.js',
							'../assets/plugins/pdfmake/build/pdfmake.min.js',
							'../assets/plugins/pdfmake/build/vfs_fonts.js',
							'../assets/plugins/jszip/dist/jszip.min.js',
            ]
          });
        }]
      }
    })
    .state('app.chart', {
      url: '/chart',
      template: '<div ui-view></div>',
      abstract: true
    })
    .state('app.chart.flot', {
      url: '/flot',
      data: {
        pageTitle: 'Flot Chart'
      },
      templateUrl: 'views/chart_flot.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
              '../assets/plugins/flot/jquery.flot.js',
              '../assets/plugins/flot/jquery.flot.time.js',
              '../assets/plugins/flot/jquery.flot.resize.js',
              '../assets/plugins/flot/jquery.flot.pie.js',
              '../assets/plugins/flot/jquery.flot.stack.js',
              '../assets/plugins/flot/jquery.flot.crosshair.js',
              '../assets/plugins/flot/jquery.flot.categories.js'
            ]
          })
        }]
      }
    })
    .state('app.chart.morris', {
      url: '/morris',
      data: {
        pageTitle: 'Morris Chart'
      },
      templateUrl: 'views/chart_morris.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            files: [
              '../assets/plugins/morris.js/morris.css',
              '../assets/plugins/raphael/raphael.min.js',
              '../assets/plugins/morris.js/morris.min.js'
            ]
          })
        }]
      }
    })
    .state('app.chart.js', {
      url: '/chart-js',
      data: {
        pageTitle: 'Chart JS'
      },
      templateUrl: 'views/chart_js.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
              '../assets/plugins/chart.js/dist/Chart.min.js'
            ]
          })
        }]
      }
    })
    .state('app.chart.apex', {
      url: '/chart-apex',
      data: {
        pageTitle: 'Chart Apex'
      },
      templateUrl: 'views/chart_apex.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
              ' ../assets/plugins/apexcharts/dist/apexcharts.min.js'
            ]
          })
        }]
      }
    })
    .state('app.chart.d3', {
      url: '/chart-d3',
      data: {
        pageTitle: 'Chart d3'
      },
      templateUrl: 'views/chart_d3.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
              '../assets/plugins/nvd3/build/nv.d3.css',
              '../assets/plugins/d3/d3.min.js',
              '../assets/plugins/nvd3/build/nv.d3.min.js'
            ]
          })
        }]
      }
    })
    .state('app.calendar', {
      url: '/calendar',
      data: {
        pageTitle: 'Calendar'
      },
      templateUrl: 'views/calendar.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
              '../assets/plugins/fullcalendar/dist/fullcalendar.min.css',
              '../assets/plugins/moment/min/moment.min.js',
              '../assets/plugins/fullcalendar/dist/fullcalendar.min.js'
            ]
          })
        }]
      }
    })
    .state('app.map', {
      url: '/map',
      template: '<div ui-view></div>',
      abstract: true
    })
    .state('app.map.vector', {
      url: '/vector',
      data: {
        pageTitle: 'Vector Map'
      },
      templateUrl: 'views/map_vector.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
              '../assets/plugins/jvectormap-next/jquery-jvectormap.css',
              '../assets/plugins/jvectormap-next/jquery-jvectormap.min.js',
              '../assets/plugins/jvectormap-next/jquery-jvectormap-world-mill.js'
            ]
          })
        }]
      }
    })
    .state('app.map.google', {
      url: '/google',
      data: {
        pageTitle: 'Google Map'
      },
      templateUrl: 'views/map_google.html'
    })
    .state('app.gallery', {
      url: '/gallery',
      template: '<div ui-view></div>',
      abstract: true
    })
    .state('app.gallery.v1', {
      url: '/v1',
      data: {
        pageTitle: 'Gallery V1'
      },
      templateUrl: 'views/gallery.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
              '../assets/plugins/isotope-layout/dist/isotope.pkgd.min.js',
              '../assets/plugins/lightbox2/dist/js/lightbox.min.js'
            ]
          })
        }]
      }
    })
    .state('app.gallery.v2', {
      url: '/v2',
      data: {
        pageTitle: 'Gallery V2'
      },
      templateUrl: 'views/gallery_v2.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            serie: true,
            files: [
              '../assets/plugins/superbox/superbox.min.css',
              '../assets/plugins/superbox/jquery.superbox.min.js'
            ]
          })
        }]
      }
    })
    .state('app.options', {
      url: '/options',
      template: '<div ui-view ng-class="{ \'height-full\': setting.layout.pageContentFullHeight }"></div>',
      abstract: true
    })
    .state('app.options.pageBlank', {
      url: '/blank',
      data: {
        pageTitle: 'Blank Page'
      },
      templateUrl: 'views/page_blank.html'
    })
    .state('app.options.pageWithFooter', {
      url: '/with-footer',
      data: {
        pageTitle: 'Page with Footer'
      },
      templateUrl: 'views/page_with_footer.html'
    })
    .state('app.options.pageWithoutSidebar', {
      url: '/without-sidebar',
      data: {
        pageTitle: 'Page without Sidebar'
      },
      templateUrl: 'views/page_without_sidebar.html'
    })
    .state('app.options.pageWithRightSidebar', {
      url: '/right-sidebar',
      data: {
        pageTitle: 'Page with Right Sidebar'
      },
      templateUrl: 'views/page_with_right_sidebar.html'
    })
    .state('app.options.pageWithMinifiedSidebar', {
      url: '/minified-sidebar',
      data: {
        pageTitle: 'Page with Minified Sidebar'
      },
      templateUrl: 'views/page_with_minified_sidebar.html'
    })
    .state('app.options.pageWithTwoSidebar', {
      url: '/two-sidebar',
      data: {
        pageTitle: 'Page with Two Sidebar'
      },
      templateUrl: 'views/page_with_two_sidebar.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
            files: [
              '../assets/plugins/jquery-sparkline/jquery.sparkline.min.js',
              '../assets/plugins/jquery-knob/dist/jquery.knob.min.js'
            ]
          })
        }]
      }
    })
    .state('app.options.pageFullHeightContent', {
      url: '/full-height-content',
      data: {
        pageTitle: 'Full Height Content'
      },
      templateUrl: 'views/page_full_height.html'
    })
    .state('app.options.pageWithWideSidebar', {
      url: '/wide-sidebar',
      data: {
        pageTitle: 'Page with Wide Sidebar'
      },
      templateUrl: 'views/page_with_wide_sidebar.html'
    })
    .state('app.options.pageWithLightSidebar', {
      url: '/light-sidebar',
      data: {
        pageTitle: 'Page with Light Sidebar'
      },
      templateUrl: 'views/page_with_light_sidebar.html'
    })
    .state('app.options.pageWithMegaMenu', {
      url: '/mega-menu',
      data: {
        pageTitle: 'Page with Mega Menu'
      },
      templateUrl: 'views/page_with_mega_menu.html'
    })
    .state('app.options.pageWithTopMenu', {
      url: '/top-menu',
      data: {
        pageTitle: 'Page with Top Menu'
      },
      templateUrl: 'views/page_with_top_menu.html'
    })
    .state('app.options.pageWithMixedMenu', {
      url: '/mixed-menu',
      data: {
        pageTitle: 'Page with Mixed Menu'
      },
      templateUrl: 'views/page_with_mixed_menu.html'
    })
    .state('app.options.pageWithBoxedLayout', {
      url: '/boxed-layout',
      data: {
        pageTitle: 'Page with Boxed Layout'
      },
      templateUrl: 'views/page_with_boxed_layout.html'
    })
    .state('app.options.pageWithBoxedMixedMenu', {
      url: '/boxed-mixed-menu',
      data: {
        pageTitle: 'Page with Mixed Menu Boxed Layout'
      },
      templateUrl: 'views/page_boxed_layout_with_mixed_menu.html'
    })
    .state('app.options.pageWithTransparentSidebar', {
      url: '/transparent-sidebar',
      data: {
        pageTitle: 'Page with Transparent Sidebar'
      },
      templateUrl: 'views/page_with_transparent_sidebar.html'
    })
    .state('app.extra', {
      url: '/extra',
      template: '<div ui-view></div>',
      abstract: true
    })
    .state('app.extra.timeline', {
      url: '/timeline',
      data: {
        pageTitle: 'Timeline'
      },
      templateUrl: 'views/extra_timeline.html',
    })
    .state('app.extra.searchResults', {
      url: '/search-results',
      data: {
        pageTitle: 'Search Results'
      },
      templateUrl: 'views/extra_search_results.html'
    })
    .state('app.extra.invoice', {
      url: '/invoice',
      data: {
        pageTitle: 'Invoice'
      },
      templateUrl: 'views/extra_invoice.html'
    })
    .state('app.extra.profile', {
      url: '/profile',
      data: {
        pageTitle: 'Profile'
      },
      templateUrl: 'views/extra_profile.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
          	serie: true,
            files: [
              '../assets/plugins/superbox/superbox.min.css',
              '../assets/plugins/lity/dist/lity.min.css',
              '../assets/plugins/superbox/jquery.superbox.min.js',
              '../assets/plugins/lity/dist/lity.min.js'
            ]
          })
        }]
      }
    })
    .state('comingSoon', {
      url: '/coming-soon',
      data: {
        pageTitle: 'Coming Soon'
      },
      templateUrl: 'views/extra_coming_soon.html',
      resolve: {
        service: ['$ocLazyLoad', function ($ocLazyLoad) {
          return $ocLazyLoad.load({
          	serie: true,
            files: [
            	'../assets/plugins/countdown/jquery.countdown.css',
              '../assets/plugins/countdown/jquery.plugin.min.js',
              '../assets/plugins/countdown/jquery.countdown.min.js'
            ]
          })
        }]
      }
    })
    .state('error', {
      url: '/error',
      data: {
        pageTitle: '404 Error'
      },
      templateUrl: 'views/extra_404_error.html'
    })
    .state('member', {
      url: '/member',
      template: '<div ui-view></div>',
      abstract: true
    })
    .state('member.login', {
      url: '/login',
      template: '<div ui-view></div>',
      abstract: true
    })
    .state('member.login.v1', {
      url: '/v1',
      data: {
        pageTitle: 'Login'
      },
      templateUrl: 'views/login.html'
    })
    .state('member.login.v2', {
      url: '/v2',
      data: {
        pageTitle: 'Login V2'
      },
      templateUrl: 'views/login_v2.html'
    })
    .state('member.login.v3', {
      url: '/v3',
      data: {
        pageTitle: 'Login V3'
      },
      templateUrl: 'views/login_v3.html'
    })
    .state('member.register', {
      url: '/register',
      data: {
        pageTitle: 'Register V3'
      },
      templateUrl: 'views/register_v3.html'
    })
    .state('app.helper', {
      url: '/helper',
      template: '<div ui-view></div>',
      abstract: true
    })
    .state('app.helper.css', {
      url: '/css',
      data: {
        pageTitle: 'Predefined CSS Classes'
      },
      templateUrl: 'views/helper_css.html'
    })
}]);

colorAdminApp.run(['$rootScope', '$state', 'setting', function ($rootScope, $state, setting) {
  $rootScope.$state = $state;
  $rootScope.setting = setting;
}]);