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

Vue.use(Router)

const _7371174b = () => import('..\\pages\\news.vue' /* webpackChunkName: "pages_news" */).then(m => m.default || m)
const _4103d738 = () => import('..\\pages\\vehicle.vue' /* webpackChunkName: "pages_vehicle" */).then(m => m.default || m)
const _1f82a760 = () => import('..\\pages\\tour.vue' /* webpackChunkName: "pages_tour" */).then(m => m.default || m)
const _1a80fc25 = () => import('..\\pages\\aboutXx.vue' /* webpackChunkName: "pages_aboutXx" */).then(m => m.default || m)
const _26135cf2 = () => import('..\\pages\\activity.vue' /* webpackChunkName: "pages_activity" */).then(m => m.default || m)
const _0ca06980 = () => import('..\\pages\\campsite.vue' /* webpackChunkName: "pages_campsite" */).then(m => m.default || m)
const _535c825b = () => import('..\\pages\\demo.vue' /* webpackChunkName: "pages_demo" */).then(m => m.default || m)
const _113883cc = () => import('..\\pages\\indexWeb.vue' /* webpackChunkName: "pages_indexWeb" */).then(m => m.default || m)
const _96ce9d96 = () => import('..\\pages\\company.vue' /* webpackChunkName: "pages_company" */).then(m => m.default || m)
const _80e40e7c = () => import('..\\pages\\findList\\all.vue' /* webpackChunkName: "pages_findList_all" */).then(m => m.default || m)
const _1ca2fa60 = () => import('..\\pages\\findList\\findTour.vue' /* webpackChunkName: "pages_findList_findTour" */).then(m => m.default || m)
const _33728eb8 = () => import('..\\pages\\vehicleList\\vehicleList.vue' /* webpackChunkName: "pages_vehicleList_vehicleList" */).then(m => m.default || m)
const _00eecb5a = () => import('..\\pages\\newsList\\newsList.vue' /* webpackChunkName: "pages_newsList_newsList" */).then(m => m.default || m)
const _53ffda52 = () => import('..\\pages\\activityList\\activityList.vue' /* webpackChunkName: "pages_activityList_activityList" */).then(m => m.default || m)
const _d935d0d2 = () => import('..\\pages\\findList\\findActivity.vue' /* webpackChunkName: "pages_findList_findActivity" */).then(m => m.default || m)
const _53d8fd7a = () => import('..\\pages\\demoList\\demoList.vue' /* webpackChunkName: "pages_demoList_demoList" */).then(m => m.default || m)
const _8fe11c90 = () => import('..\\pages\\campsiteDetails\\campsiteDetails.vue' /* webpackChunkName: "pages_campsiteDetails_campsiteDetails" */).then(m => m.default || m)
const _3bf3bab8 = () => import('..\\pages\\tourDetails\\tourDetails.vue' /* webpackChunkName: "pages_tourDetails_tourDetails" */).then(m => m.default || m)
const _bfc2dd60 = () => import('..\\pages\\findList\\findCampsite.vue' /* webpackChunkName: "pages_findList_findCampsite" */).then(m => m.default || m)
const _67d36758 = () => import('..\\pages\\findList\\findVehicle.vue' /* webpackChunkName: "pages_findList_findVehicle" */).then(m => m.default || m)
const _bd9e2db6 = () => import('..\\pages\\findList\\findCompany.vue' /* webpackChunkName: "pages_findList_findCompany" */).then(m => m.default || m)
const _bc1e5670 = () => import('..\\pages\\findList\\findNew.vue' /* webpackChunkName: "pages_findList_findNew" */).then(m => m.default || m)
const _f54a1ef0 = () => import('..\\pages\\vehicleList\\_id.vue' /* webpackChunkName: "pages_vehicleList__id" */).then(m => m.default || m)
const _98217cfe = () => import('..\\pages\\newsList\\_id.vue' /* webpackChunkName: "pages_newsList__id" */).then(m => m.default || m)
const _deaac4b0 = () => import('..\\pages\\tourDetails\\_id.vue' /* webpackChunkName: "pages_tourDetails__id" */).then(m => m.default || m)
const _04e1cac5 = () => import('..\\pages\\activityList\\_id.vue' /* webpackChunkName: "pages_activityList__id" */).then(m => m.default || m)
const _239656d0 = () => import('..\\pages\\campsiteDetails\\_id.vue' /* webpackChunkName: "pages_campsiteDetails__id" */).then(m => m.default || m)
const _f9796f1e = () => import('..\\pages\\demoList\\_id.vue' /* webpackChunkName: "pages_demoList__id" */).then(m => m.default || m)
const _8983d9ec = () => 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: _7371174b,
			name: "news"
		},
		{
			path: "/vehicle",
			component: _4103d738,
			name: "vehicle"
		},
		{
			path: "/tour",
			component: _1f82a760,
			name: "tour"
		},
		{
			path: "/aboutXx",
			component: _1a80fc25,
			name: "aboutXx"
		},
		{
			path: "/activity",
			component: _26135cf2,
			name: "activity"
		},
		{
			path: "/campsite",
			component: _0ca06980,
			name: "campsite"
		},
		{
			path: "/demo",
			component: _535c825b,
			name: "demo"
		},
		{
			path: "/indexWeb",
			component: _113883cc,
			name: "indexWeb"
		},
		{
			path: "/company",
			component: _96ce9d96,
			name: "company"
		},
		{
			path: "/findList/all",
			component: _80e40e7c,
			name: "findList-all"
		},
		{
			path: "/findList/findTour",
			component: _1ca2fa60,
			name: "findList-findTour"
		},
		{
			path: "/vehicleList/vehicleList",
			component: _33728eb8,
			name: "vehicleList-vehicleList"
		},
		{
			path: "/newsList/newsList",
			component: _00eecb5a,
			name: "newsList-newsList"
		},
		{
			path: "/activityList/activityList",
			component: _53ffda52,
			name: "activityList-activityList"
		},
		{
			path: "/findList/findActivity",
			component: _d935d0d2,
			name: "findList-findActivity"
		},
		{
			path: "/demoList/demoList",
			component: _53d8fd7a,
			name: "demoList-demoList"
		},
		{
			path: "/campsiteDetails/campsiteDetails",
			component: _8fe11c90,
			name: "campsiteDetails-campsiteDetails"
		},
		{
			path: "/tourDetails/tourDetails",
			component: _3bf3bab8,
			name: "tourDetails-tourDetails"
		},
		{
			path: "/findList/findCampsite",
			component: _bfc2dd60,
			name: "findList-findCampsite"
		},
		{
			path: "/findList/findVehicle",
			component: _67d36758,
			name: "findList-findVehicle"
		},
		{
			path: "/findList/findCompany",
			component: _bd9e2db6,
			name: "findList-findCompany"
		},
		{
			path: "/findList/findNew",
			component: _bc1e5670,
			name: "findList-findNew"
		},
		{
			path: "/vehicleList/:id?",
			component: _f54a1ef0,
			name: "vehicleList-id"
		},
		{
			path: "/newsList/:id?",
			component: _98217cfe,
			name: "newsList-id"
		},
		{
			path: "/tourDetails/:id?",
			component: _deaac4b0,
			name: "tourDetails-id"
		},
		{
			path: "/activityList/:id?",
			component: _04e1cac5,
			name: "activityList-id"
		},
		{
			path: "/campsiteDetails/:id?",
			component: _239656d0,
			name: "campsiteDetails-id"
		},
		{
			path: "/demoList/:id?",
			component: _f9796f1e,
			name: "demoList-id"
		},
		{
			path: "/",
			component: _8983d9ec,
			name: "index"
		}
    ],
    
    
    fallback: false
  })
}
