Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/vreg/node_modules/.cache/nuxt/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/vreg/node_modules/.cache/nuxt/index.js
import Vue from 'vue'
import Vuex from 'vuex'
import Meta from 'vue-meta'
import ClientOnly from 'vue-client-only'
import NoSsr from 'vue-no-ssr'
import { createRouter } from './router.js'
import NuxtChild from './components/nuxt-child.js'
import NuxtError from '../../../layouts/error.vue'
import Nuxt from './components/nuxt.js'
import App from './App.js'
import { setContext, getLocation, getRouteData, normalizeError } from './utils'
import { createStore } from './store.js'

/* Plugins */

import nuxt_plugin_bootstrapvue_23c078d9 from 'nuxt_plugin_bootstrapvue_23c078d9' // Source: ./bootstrap-vue.js (mode: 'all')
import nuxt_plugin_axios_7cd9e4aa from 'nuxt_plugin_axios_7cd9e4aa' // Source: ./axios.js (mode: 'all')
import nuxt_plugin_toast_490a3159 from 'nuxt_plugin_toast_490a3159' // Source: ./toast.js (mode: 'client')
import nuxt_plugin_fontawesome_600fdf28 from 'nuxt_plugin_fontawesome_600fdf28' // Source: ./fontawesome.js (mode: 'all')
import nuxt_plugin_gtm_3c7fce00 from 'nuxt_plugin_gtm_3c7fce00' // Source: ./gtm.js (mode: 'all')
import nuxt_plugin_moment_2d0e422e from 'nuxt_plugin_moment_2d0e422e' // Source: ./moment.js (mode: 'all')
import nuxt_plugin_helpers_1c816d70 from 'nuxt_plugin_helpers_1c816d70' // Source: ../../../plugins/helpers.js (mode: 'all')
import nuxt_plugin_validationRules_995f71a2 from 'nuxt_plugin_validationRules_995f71a2' // Source: ../../../plugins/validationRules.js (mode: 'client')
import nuxt_plugin_form_83250b06 from 'nuxt_plugin_form_83250b06' // Source: ../../../plugins/form.js (mode: 'all')
import nuxt_plugin_vMask_6a2dc7ab from 'nuxt_plugin_vMask_6a2dc7ab' // Source: ../../../plugins/vMask.js (mode: 'client')
import nuxt_plugin_common_17412d76 from 'nuxt_plugin_common_17412d76' // Source: ../../../plugins/common.js (mode: 'all')
import nuxt_plugin_addressLookup_1d560c1f from 'nuxt_plugin_addressLookup_1d560c1f' // Source: ../../../plugins/addressLookup.js (mode: 'client')
import nuxt_plugin_vueSignaturePad_ce435a28 from 'nuxt_plugin_vueSignaturePad_ce435a28' // Source: ../../../plugins/vueSignaturePad.js (mode: 'client')
import nuxt_plugin_eventBusInject_b4ed09ac from 'nuxt_plugin_eventBusInject_b4ed09ac' // Source: ../../../plugins/eventBusInject.js (mode: 'client')
import nuxt_plugin_localStorage_830ec59e from 'nuxt_plugin_localStorage_830ec59e' // Source: ../../../plugins/localStorage.js (mode: 'client')
import nuxt_plugin_OrdersCalculations_c128091c from 'nuxt_plugin_OrdersCalculations_c128091c' // Source: ../../../plugins/OrdersCalculations.js (mode: 'all')
import nuxt_plugin_payments_6558fe74 from 'nuxt_plugin_payments_6558fe74' // Source: ../../../plugins/payments.js (mode: 'client')
import nuxt_plugin_carousel_2496c93e from 'nuxt_plugin_carousel_2496c93e' // Source: ../../../plugins/carousel.js (mode: 'client')
import nuxt_plugin_vidle_6d24f096 from 'nuxt_plugin_vidle_6d24f096' // Source: ../../../plugins/v-idle.js (mode: 'client')

// Component: <ClientOnly>
Vue.component(ClientOnly.name, ClientOnly)

// TODO: Remove in Nuxt 3: <NoSsr>
Vue.component(NoSsr.name, {
  ...NoSsr,
  render (h, ctx) {
    if (process.client && !NoSsr._warned) {
      NoSsr._warned = true

      console.warn('<no-ssr> has been deprecated and will be removed in Nuxt 3, please use <client-only> instead')
    }
    return NoSsr.render(h, ctx)
  }
})

// Component: <NuxtChild>
Vue.component(NuxtChild.name, NuxtChild)
Vue.component('NChild', NuxtChild)

// Component NuxtLink is imported in server.js or client.js

// Component: <Nuxt>
Vue.component(Nuxt.name, Nuxt)

Object.defineProperty(Vue.prototype, '$nuxt', {
  get() {
    const globalNuxt = this.$root.$options.$nuxt
    if (process.client && !globalNuxt && typeof window !== 'undefined') {
      return window.$nuxt
    }
    return globalNuxt
  },
  configurable: true
})

Vue.use(Meta, {"keyName":"head","attribute":"data-n-head","ssrAttribute":"data-n-head-ssr","tagIDKeyName":"hid"})

const defaultTransition = {"name":"page","mode":"out-in","appear":false,"appearClass":"appear","appearActiveClass":"appear-active","appearToClass":"appear-to"}

const originalRegisterModule = Vuex.Store.prototype.registerModule

function registerModule (path, rawModule, options = {}) {
  const preserveState = process.client && (
    Array.isArray(path)
      ? !!path.reduce((namespacedState, path) => namespacedState && namespacedState[path], this.state)
      : path in this.state
  )
  return originalRegisterModule.call(this, path, rawModule, { preserveState, ...options })
}

async function createApp(ssrContext, config = {}) {
  const router = await createRouter(ssrContext, config)

  const store = createStore(ssrContext)
  // Add this.$router into store actions/mutations
  store.$router = router

  // Fix SSR caveat https://github.com/nuxt/nuxt.js/issues/3757#issuecomment-414689141
  store.registerModule = registerModule

  // Create Root instance

  // here we inject the router and store to all child components,
  // making them available everywhere as `this.$router` and `this.$store`.
  const app = {
    head: {"title":"VehicleRenew.com | Vehicle Registration Renewal","htmlAttrs":{"lang":"en"},"meta":[{"charset":"utf-8"},{"name":"viewport","content":"width=device-width, initial-scale=1"},{"hid":"description","name":"description","content":""},{"name":"format-detection","content":"telephone=no"}],"link":[{"rel":"icon","type":"image\u002Fx-icon","href":"\u002Ffavicon.ico"}],"script":[{"src":"https:\u002F\u002Fjs.stripe.com\u002Fv3"},{"hid":"gtm-script","innerHTML":"if(!window._gtm_init){window._gtm_init=1;(function(w,n,d,m,e,p){w[d]=(w[d]==1||n[d]=='yes'||n[d]==1||n[m]==1||(w[e]&&w[e][p]&&w[e][p]()))?1:0})(window,navigator,'doNotTrack','msDoNotTrack','external','msTrackingProtectionEnabled');(function(w,d,s,l,x,y){w[x]={};w._gtm_inject=function(i){w[x][i]=1;w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s);j.defer=true;j.src='https:\u002F\u002Fwww.googletagmanager.com\u002Fgtm.js?id='+i;f.parentNode.insertBefore(j,f);};w[y]('GTM-K58DFDD')})(window,document,'script','dataLayer','_gtm_ids','_gtm_inject')}"}],"style":[],"noscript":[{"hid":"gtm-noscript","pbody":true,"innerHTML":"\u003Ciframe src=\"https:\u002F\u002Fwww.googletagmanager.com\u002Fns.html?id=GTM-K58DFDD&\" height=\"0\" width=\"0\" style=\"display:none;visibility:hidden\" title=\"gtm\"\u003E\u003C\u002Fiframe\u003E"}],"__dangerouslyDisableSanitizersByTagID":{"gtm-script":["innerHTML"],"gtm-noscript":["innerHTML"]}},

    store,
    router,
    nuxt: {
      defaultTransition,
      transitions: [defaultTransition],
      setTransitions (transitions) {
        if (!Array.isArray(transitions)) {
          transitions = [transitions]
        }
        transitions = transitions.map((transition) => {
          if (!transition) {
            transition = defaultTransition
          } else if (typeof transition === 'string') {
            transition = Object.assign({}, defaultTransition, { name: transition })
          } else {
            transition = Object.assign({}, defaultTransition, transition)
          }
          return transition
        })
        this.$options.nuxt.transitions = transitions
        return transitions
      },

      err: null,
      dateErr: null,
      error (err) {
        err = err || null
        app.context._errored = Boolean(err)
        err = err ? normalizeError(err) : null
        let nuxt = app.nuxt // to work with @vue/composition-api, see https://github.com/nuxt/nuxt.js/issues/6517#issuecomment-573280207
        if (this) {
          nuxt = this.nuxt || this.$options.nuxt
        }
        nuxt.dateErr = Date.now()
        nuxt.err = err
        // Used in src/server.js
        if (ssrContext) {
          ssrContext.nuxt.error = err
        }
        return err
      }
    },
    ...App
  }

  // Make app available into store via this.app
  store.app = app

  const next = ssrContext ? ssrContext.next : location => app.router.push(location)
  // Resolve route
  let route
  if (ssrContext) {
    route = router.resolve(ssrContext.url).route
  } else {
    const path = getLocation(router.options.base, router.options.mode)
    route = router.resolve(path).route
  }

  // Set context to app.context
  await setContext(app, {
    store,
    route,
    next,
    error: app.nuxt.error.bind(app),
    payload: ssrContext ? ssrContext.payload : undefined,
    req: ssrContext ? ssrContext.req : undefined,
    res: ssrContext ? ssrContext.res : undefined,
    beforeRenderFns: ssrContext ? ssrContext.beforeRenderFns : undefined,
    ssrContext
  })

  function inject(key, value) {
    if (!key) {
      throw new Error('inject(key, value) has no key provided')
    }
    if (value === undefined) {
      throw new Error(`inject('${key}', value) has no value provided`)
    }

    key = '$' + key
    // Add into app
    app[key] = value
    // Add into context
    if (!app.context[key]) {
      app.context[key] = value
    }

    // Add into store
    store[key] = app[key]

    // Check if plugin not already installed
    const installKey = '__nuxt_' + key + '_installed__'
    if (Vue[installKey]) {
      return
    }
    Vue[installKey] = true
    // Call Vue.use() to install the plugin into vm
    Vue.use(() => {
      if (!Object.prototype.hasOwnProperty.call(Vue.prototype, key)) {
        Object.defineProperty(Vue.prototype, key, {
          get () {
            return this.$root.$options[key]
          }
        })
      }
    })
  }

  // Inject runtime config as $config
  inject('config', config)

  if (process.client) {
    // Replace store state before plugins execution
    if (window.__NUXT__ && window.__NUXT__.state) {
      store.replaceState(window.__NUXT__.state)
    }
  }

  // Add enablePreview(previewData = {}) in context for plugins
  if (process.static && process.client) {
    app.context.enablePreview = function (previewData = {}) {
      app.previewData = Object.assign({}, previewData)
      inject('preview', previewData)
    }
  }
  // Plugin execution

  if (typeof nuxt_plugin_bootstrapvue_23c078d9 === 'function') {
    await nuxt_plugin_bootstrapvue_23c078d9(app.context, inject)
  }

  if (typeof nuxt_plugin_axios_7cd9e4aa === 'function') {
    await nuxt_plugin_axios_7cd9e4aa(app.context, inject)
  }

  if (process.client && typeof nuxt_plugin_toast_490a3159 === 'function') {
    await nuxt_plugin_toast_490a3159(app.context, inject)
  }

  if (typeof nuxt_plugin_fontawesome_600fdf28 === 'function') {
    await nuxt_plugin_fontawesome_600fdf28(app.context, inject)
  }

  if (typeof nuxt_plugin_gtm_3c7fce00 === 'function') {
    await nuxt_plugin_gtm_3c7fce00(app.context, inject)
  }

  if (typeof nuxt_plugin_moment_2d0e422e === 'function') {
    await nuxt_plugin_moment_2d0e422e(app.context, inject)
  }

  if (typeof nuxt_plugin_helpers_1c816d70 === 'function') {
    await nuxt_plugin_helpers_1c816d70(app.context, inject)
  }

  if (process.client && typeof nuxt_plugin_validationRules_995f71a2 === 'function') {
    await nuxt_plugin_validationRules_995f71a2(app.context, inject)
  }

  if (typeof nuxt_plugin_form_83250b06 === 'function') {
    await nuxt_plugin_form_83250b06(app.context, inject)
  }

  if (process.client && typeof nuxt_plugin_vMask_6a2dc7ab === 'function') {
    await nuxt_plugin_vMask_6a2dc7ab(app.context, inject)
  }

  if (typeof nuxt_plugin_common_17412d76 === 'function') {
    await nuxt_plugin_common_17412d76(app.context, inject)
  }

  if (process.client && typeof nuxt_plugin_addressLookup_1d560c1f === 'function') {
    await nuxt_plugin_addressLookup_1d560c1f(app.context, inject)
  }

  if (process.client && typeof nuxt_plugin_vueSignaturePad_ce435a28 === 'function') {
    await nuxt_plugin_vueSignaturePad_ce435a28(app.context, inject)
  }

  if (process.client && typeof nuxt_plugin_eventBusInject_b4ed09ac === 'function') {
    await nuxt_plugin_eventBusInject_b4ed09ac(app.context, inject)
  }

  if (process.client && typeof nuxt_plugin_localStorage_830ec59e === 'function') {
    await nuxt_plugin_localStorage_830ec59e(app.context, inject)
  }

  if (typeof nuxt_plugin_OrdersCalculations_c128091c === 'function') {
    await nuxt_plugin_OrdersCalculations_c128091c(app.context, inject)
  }

  if (process.client && typeof nuxt_plugin_payments_6558fe74 === 'function') {
    await nuxt_plugin_payments_6558fe74(app.context, inject)
  }

  if (process.client && typeof nuxt_plugin_carousel_2496c93e === 'function') {
    await nuxt_plugin_carousel_2496c93e(app.context, inject)
  }

  if (process.client && typeof nuxt_plugin_vidle_6d24f096 === 'function') {
    await nuxt_plugin_vidle_6d24f096(app.context, inject)
  }

  // Lock enablePreview in context
  if (process.static && process.client) {
    app.context.enablePreview = function () {
      console.warn('You cannot call enablePreview() outside a plugin.')
    }
  }

  // Wait for async component to be resolved first
  await new Promise((resolve, reject) => {
    // Ignore 404s rather than blindly replacing URL in browser
    if (process.client) {
      const { route } = router.resolve(app.context.route.fullPath)
      if (!route.matched.length) {
        return resolve()
      }
    }
    router.replace(app.context.route.fullPath, resolve, (err) => {
      // https://github.com/vuejs/vue-router/blob/v3.4.3/src/util/errors.js
      if (!err._isRouter) return reject(err)
      if (err.type !== 2 /* NavigationFailureType.redirected */) return resolve()

      // navigated to a different route in router guard
      const unregister = router.afterEach(async (to, from) => {
        if (process.server && ssrContext && ssrContext.url) {
          ssrContext.url = to.fullPath
        }
        app.context.route = await getRouteData(to)
        app.context.params = to.params || {}
        app.context.query = to.query || {}
        unregister()
        resolve()
      })
    })
  })

  return {
    store,
    app,
    router
  }
}

export { createApp, NuxtError }

Spamworldpro Mini