import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const _2288ad39 = () => import('..\\pages\\news.vue' /* webpackChunkName: "pages_news" */).then(m => m.default || m)
const _eda2e094 = () => import('..\\pages\\vehicle.vue' /* webpackChunkName: "pages_vehicle" */).then(m => m.default || m)
const _c1537b84 = () => import('..\\pages\\tour.vue' /* webpackChunkName: "pages_tour" */).then(m => m.default || m)
const _779d1112 = () => import('..\\pages\\aboutXx.vue' /* webpackChunkName: "pages_aboutXx" */).then(m => m.default || m)
const _79554075 = () => import('..\\pages\\activity.vue' /* webpackChunkName: "pages_activity" */).then(m => m.default || m)
const _f3e28ba4 = () => import('..\\pages\\campsite.vue' /* webpackChunkName: "pages_campsite" */).then(m => m.default || m)
const _02741849 = () => import('..\\pages\\demo.vue' /* webpackChunkName: "pages_demo" */).then(m => m.default || m)
const _f87aa5f0 = () => import('..\\pages\\indexWeb.vue' /* webpackChunkName: "pages_indexWeb" */).then(m => m.default || m)
const _5e492c87 = () => import('..\\pages\\company.vue' /* webpackChunkName: "pages_company" */).then(m => m.default || m)
const _1515a2d8 = () => import('..\\pages\\findList\\all.vue' /* webpackChunkName: "pages_findList_all" */).then(m => m.default || m)
const _564e97ce = () => import('..\\pages\\findList\\findTour.vue' /* webpackChunkName: "pages_findList_findTour" */).then(m => m.default || m)
const _2e21e1a6 = () => import('..\\pages\\vehicleList\\vehicleList.vue' /* webpackChunkName: "pages_vehicleList_vehicleList" */).then(m => m.default || m)
const _3a9a68c8 = () => import('..\\pages\\newsList\\newsList.vue' /* webpackChunkName: "pages_newsList_newsList" */).then(m => m.default || m)
const _602629c0 = () => import('..\\pages\\activityList\\activityList.vue' /* webpackChunkName: "pages_activityList_activityList" */).then(m => m.default || m)
const _abef63f6 = () => import('..\\pages\\findList\\findActivity.vue' /* webpackChunkName: "pages_findList_findActivity" */).then(m => m.default || m)
const _e4f6ca30 = () => import('..\\pages\\demoList\\demoList.vue' /* webpackChunkName: "pages_demoList_demoList" */).then(m => m.default || m)
const _56ebf6a6 = () => import('..\\pages\\campsiteDetails\\campsiteDetails.vue' /* webpackChunkName: "pages_campsiteDetails_campsiteDetails" */).then(m => m.default || m)
const _36a30da6 = () => import('..\\pages\\tourDetails\\tourDetails.vue' /* webpackChunkName: "pages_tourDetails_tourDetails" */).then(m => m.default || m)
const _927c7084 = () => import('..\\pages\\findList\\findCampsite.vue' /* webpackChunkName: "pages_findList_findCampsite" */).then(m => m.default || m)
const _13c8dfb4 = () => import('..\\pages\\findList\\findVehicle.vue' /* webpackChunkName: "pages_findList_findVehicle" */).then(m => m.default || m)
const _6993a612 = () => import('..\\pages\\findList\\findCompany.vue' /* webpackChunkName: "pages_findList_findCompany" */).then(m => m.default || m)
const _fa765ccc = () => import('..\\pages\\findList\\findNew.vue' /* webpackChunkName: "pages_findList_findNew" */).then(m => m.default || m)
const _4a8b1176 = () => import('..\\pages\\vehicleList\\_id.vue' /* webpackChunkName: "pages_vehicleList__id" */).then(m => m.default || m)
const _2c53115a = () => import('..\\pages\\newsList\\_id.vue' /* webpackChunkName: "pages_newsList__id" */).then(m => m.default || m)
const _55dabe96 = () => import('..\\pages\\tourDetails\\_id.vue' /* webpackChunkName: "pages_tourDetails__id" */).then(m => m.default || m)
const _349470d2 = () => import('..\\pages\\activityList\\_id.vue' /* webpackChunkName: "pages_activityList__id" */).then(m => m.default || m)
const _6b6ece86 = () => import('..\\pages\\campsiteDetails\\_id.vue' /* webpackChunkName: "pages_campsiteDetails__id" */).then(m => m.default || m)
const _8dab037a = () => import('..\\pages\\demoList\\_id.vue' /* webpackChunkName: "pages_demoList__id" */).then(m => m.default || m)
const _21cd8a48 = () => import('..\\pages\\index.vue' /* webpackChunkName: "pages_index" */).then(m => m.default || m)



if (process.client) {
  window.history.scrollRestoration = 'manual'
}
const scrollBehavior = function (to, from, savedPosition) {
  // if the returned position is falsy or an empty object,
  // will retain current scroll position.
  let position = false

  // if no children detected
  if (to.matched.length < 2) {
    // scroll to the top of the page
    position = { x: 0, y: 0 }
  } else if (to.matched.some((r) => r.components.default.options.scrollToTop)) {
    // if one of the children has scrollToTop option set to true
    position = { x: 0, y: 0 }
  }

  // savedPosition is only available for popstate navigations (back button)
  if (savedPosition) {
    position = savedPosition
  }

  return new Promise(resolve => {
    // wait for the out transition to complete (if necessary)
    window.$nuxt.$once('triggerScroll', () => {
      // coords will be used if no selector is provided,
      // or if the selector didn't match any element.
      if (to.hash) {
        let hash = to.hash
        // CSS.escape() is not supported with IE and Edge.
        if (typeof window.CSS !== 'undefined' && typeof window.CSS.escape !== 'undefined') {
          hash = '#' + window.CSS.escape(hash.substr(1))
        }
        try {
          if (document.querySelector(hash)) {
            // scroll to anchor by returning the selector
            position = { selector: hash }
          }
        } catch (e) {
          console.warn('Failed to save scroll position. Please add CSS.escape() polyfill (https://github.com/mathiasbynens/CSS.escape).')
        }
      }
      resolve(position)
    })
  })
}


export function createRouter () {
  return new Router({
    mode: 'history',
    base: '/',
    linkActiveClass: 'nuxt-link-active',
    linkExactActiveClass: 'nuxt-link-exact-active',
    scrollBehavior,
    routes: [
		{
			path: "/news",
			component: _2288ad39,
			name: "news"
		},
		{
			path: "/vehicle",
			component: _eda2e094,
			name: "vehicle"
		},
		{
			path: "/tour",
			component: _c1537b84,
			name: "tour"
		},
		{
			path: "/aboutXx",
			component: _779d1112,
			name: "aboutXx"
		},
		{
			path: "/activity",
			component: _79554075,
			name: "activity"
		},
		{
			path: "/campsite",
			component: _f3e28ba4,
			name: "campsite"
		},
		{
			path: "/demo",
			component: _02741849,
			name: "demo"
		},
		{
			path: "/indexWeb",
			component: _f87aa5f0,
			name: "indexWeb"
		},
		{
			path: "/company",
			component: _5e492c87,
			name: "company"
		},
		{
			path: "/findList/all",
			component: _1515a2d8,
			name: "findList-all"
		},
		{
			path: "/findList/findTour",
			component: _564e97ce,
			name: "findList-findTour"
		},
		{
			path: "/vehicleList/vehicleList",
			component: _2e21e1a6,
			name: "vehicleList-vehicleList"
		},
		{
			path: "/newsList/newsList",
			component: _3a9a68c8,
			name: "newsList-newsList"
		},
		{
			path: "/activityList/activityList",
			component: _602629c0,
			name: "activityList-activityList"
		},
		{
			path: "/findList/findActivity",
			component: _abef63f6,
			name: "findList-findActivity"
		},
		{
			path: "/demoList/demoList",
			component: _e4f6ca30,
			name: "demoList-demoList"
		},
		{
			path: "/campsiteDetails/campsiteDetails",
			component: _56ebf6a6,
			name: "campsiteDetails-campsiteDetails"
		},
		{
			path: "/tourDetails/tourDetails",
			component: _36a30da6,
			name: "tourDetails-tourDetails"
		},
		{
			path: "/findList/findCampsite",
			component: _927c7084,
			name: "findList-findCampsite"
		},
		{
			path: "/findList/findVehicle",
			component: _13c8dfb4,
			name: "findList-findVehicle"
		},
		{
			path: "/findList/findCompany",
			component: _6993a612,
			name: "findList-findCompany"
		},
		{
			path: "/findList/findNew",
			component: _fa765ccc,
			name: "findList-findNew"
		},
		{
			path: "/vehicleList/:id?",
			component: _4a8b1176,
			name: "vehicleList-id"
		},
		{
			path: "/newsList/:id?",
			component: _2c53115a,
			name: "newsList-id"
		},
		{
			path: "/tourDetails/:id?",
			component: _55dabe96,
			name: "tourDetails-id"
		},
		{
			path: "/activityList/:id?",
			component: _349470d2,
			name: "activityList-id"
		},
		{
			path: "/campsiteDetails/:id?",
			component: _6b6ece86,
			name: "campsiteDetails-id"
		},
		{
			path: "/demoList/:id?",
			component: _8dab037a,
			name: "demoList-id"
		},
		{
			path: "/",
			component: _21cd8a48,
			name: "index"
		}
    ],
    
    
    fallback: false
  })
}
