@clinic/clinic-common
Version:
Shared parts between the Clinic.js suite
2 lines (1 loc) • 30.2 kB
JavaScript
module.exports = (function (t) { var e = {}; var n = { 0: 0 }; function r (n) { if (e[n]) return e[n].exports; var o = e[n] = { i: n, l: !1, exports: {} }; return t[n].call(o.exports, o, o.exports, r), o.l = !0, o.exports } return r.e = function (e) { if (n[e] !== 0) { var r = require('./' + { 1: '661c3040240b3e1161b2', 2: '05f927c0dea0ae63f87e' }[e] + '.js'); var o = r.modules; var c = r.ids; for (var l in o)t[l] = o[l]; for (var i = 0; i < c.length; i++)n[c[i]] = 0 } return Promise.all([]) }, r.m = t, r.c = e, r.d = function (t, e, n) { r.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: n }) }, r.r = function (t) { typeof Symbol !== 'undefined' && Symbol.toStringTag && Object.defineProperty(t, Symbol.toStringTag, { value: 'Module' }), Object.defineProperty(t, '__esModule', { value: !0 }) }, r.t = function (t, e) { if (1 & e && (t = r(t)), 8 & e) return t; if (4 & e && typeof t === 'object' && t && t.__esModule) return t; var n = Object.create(null); if (r.r(n), Object.defineProperty(n, 'default', { enumerable: !0, value: t }), 2 & e && typeof t !== 'string') for (var o in t)r.d(n, o, function (e) { return t[e] }.bind(null, o)); return n }, r.n = function (t) { var e = t && t.__esModule ? function () { return t.default } : function () { return t }; return r.d(e, 'a', e), e }, r.o = function (object, t) { return Object.prototype.hasOwnProperty.call(object, t) }, r.p = '/_nuxt/', r.oe = function (t) { process.nextTick(function () { throw t }) }, r(r.s = 14) }([function (t, e) { t.exports = require('vue') }, function (t, e, n) { 'use strict'; function r (t, e, n, r, o, c, l, d) { var f; var h = typeof t === 'function' ? t.options : t; if (e && (h.render = e, h.staticRenderFns = n, h._compiled = !0), r && (h.functional = !0), c && (h._scopeId = 'data-v-' + c), l ? (f = function (t) { (t = t || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || typeof __VUE_SSR_CONTEXT__ === 'undefined' || (t = __VUE_SSR_CONTEXT__), o && o.call(this, t), t && t._registeredComponents && t._registeredComponents.add(l) }, h._ssrRegister = f) : o && (f = d ? function () { o.call(this, this.$root.$options.shadowRoot) } : o), f) if (h.functional) { h._injectStyles = f; var x = h.render; h.render = function (t, e) { return f.call(e), x(t, e) } } else { var m = h.beforeCreate; h.beforeCreate = m ? [].concat(m, f) : [f] } return { exports: t, options: h } }n.d(e, 'a', function () { return r }) }, function (t, e) { t.exports = require('vue-router') }, function (t, e, n) { 'use strict'; t.exports = function (t) { var e = []; return e.toString = function () { return this.map(function (e) { var content = (function (t, e) { var content = t[1] || ''; var n = t[3]; if (!n) return content; if (e && typeof btoa === 'function') { var r = (c = n, l = btoa(unescape(encodeURIComponent(JSON.stringify(c)))), data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,'.concat(l), '/*# '.concat(data, ' */')); var o = n.sources.map(function (source) { return '/*# sourceURL='.concat(n.sourceRoot || '').concat(source, ' */') }); return [content].concat(o).concat([r]).join('\n') } var c, l, data; return [content].join('\n') }(e, t)); return e[2] ? '@media '.concat(e[2], ' {').concat(content, '}') : content }).join('') }, e.i = function (t, n, r) { typeof t === 'string' && (t = [[null, t, '']]); var o = {}; if (r) for (var i = 0; i < this.length; i++) { var c = this[i][0]; c != null && (o[c] = !0) } for (var l = 0; l < t.length; l++) { var d = [].concat(t[l]); r && o[d[0]] || (n && (d[2] ? d[2] = ''.concat(n, ' and ').concat(d[2]) : d[2] = n), e.push(d)) } }, e } }, function (t, e, n) { 'use strict'; function r (t, e, n, r) { if (r || typeof __VUE_SSR_CONTEXT__ === 'undefined' || (r = __VUE_SSR_CONTEXT__), r) { r.hasOwnProperty('styles') || (Object.defineProperty(r, 'styles', { enumerable: !0, get: function () { return o(r._styles) } }), r._renderStyles = o); var c = r._styles || (r._styles = {}); e = (function (t, e) { for (var n = [], r = {}, i = 0; i < e.length; i++) { var o = e[i]; var c = o[0]; var l = { id: t + ':' + i, css: o[1], media: o[2], sourceMap: o[3] }; r[c] ? r[c].parts.push(l) : n.push(r[c] = { id: c, parts: [l] }) } return n }(t, e)), n ? (function (t, e) { for (var i = 0; i < e.length; i++) for (var n = e[i].parts, r = 0; r < n.length; r++) { var o = n[r]; var c = o.media || 'default'; var style = t[c]; style ? style.ids.indexOf(o.id) < 0 && (style.ids.push(o.id), style.css += '\n' + o.css) : t[c] = { ids: [o.id], css: o.css, media: o.media } } }(c, e)) : (function (t, e) { for (var i = 0; i < e.length; i++) for (var n = e[i].parts, r = 0; r < n.length; r++) { var o = n[r]; t[o.id] = { ids: [o.id], css: o.css, media: o.media } } }(c, e)) } } function o (t) { var e = ''; for (var n in t) { var style = t[n]; e += '<style data-vue-ssr-id="' + style.ids.join(' ') + '"' + (style.media ? ' media="' + style.media + '"' : '') + '>' + style.css + '</style>' } return e }n.r(e), n.d(e, 'default', function () { return r }) }, function (t, e, n) { var content = n(16); typeof content === 'string' && (content = [[t.i, content, '']]), content.locals && (t.exports = content.locals); var r = n(4).default; t.exports.__inject__ = function (t) { r('67c7e34d', content, !0, t) } }, function (t, e, n) { var content = n(18); typeof content === 'string' && (content = [[t.i, content, '']]), content.locals && (t.exports = content.locals); var r = n(4).default; t.exports.__inject__ = function (t) { r('3191d5ad', content, !0, t) } }, function (t, e, n) { var content = n(22); typeof content === 'string' && (content = [[t.i, content, '']]), content.locals && (t.exports = content.locals); var r = n(4).default; t.exports.__inject__ = function (t) { r('932a8f60', content, !0, t) } }, function (t, e) { t.exports = require('vue-no-ssr') }, function (t, e) { t.exports = require('vue-client-only') }, function (t, e) { t.exports = require('querystring') }, function (t, e) { t.exports = require('node-fetch') }, function (t, e) { t.exports = require('vue-meta') }, function (t, e, n) { t.exports = n.p + 'img/a04e995.png' }, function (t, e, n) { t.exports = n(23) }, function (t, e, n) { 'use strict'; n.r(e); var r = n(5); var o = n.n(r); for (var c in r)c !== 'default' && (function (t) { n.d(e, t, function () { return r[t] }) }(c)); e.default = o.a }, function (t, e, n) { (e = n(3)(!1)).push([t.i, '.title[data-v-579b3378]{margin-top:15px;font-size:5em}.info[data-v-579b3378]{font-weight:300;color:#9aabb1;margin:0}.button[data-v-579b3378]{margin-top:50px}', '']), t.exports = e }, function (t, e, n) { 'use strict'; n.r(e); var r = n(6); var o = n.n(r); for (var c in r)c !== 'default' && (function (t) { n.d(e, t, function () { return r[t] }) }(c)); e.default = o.a }, function (t, e, n) { (e = n(3)(!1)).push([t.i, '.nuxt-progress{position:fixed;top:0;left:0;right:0;height:2px;width:0;opacity:1;transition:width .1s,opacity .4s;background-color:#000;z-index:999999}.nuxt-progress.nuxt-progress-notransition{transition:none}.nuxt-progress-failed{background-color:red}', '']), t.exports = e }, function (t, e, n) { var content = n(20); typeof content === 'string' && (content = [[t.i, content, '']]), content.locals && (t.exports = content.locals), n(4).default('f52d43e0', content, !0) }, function (t, e, n) { (e = n(3)(!1)).push([t.i, 'body,html{background-color:#fff;color:#000;letter-spacing:.5px;font-family:Source Sans Pro,Arial,sans-serif;height:100vh;margin:0}footer{padding:20px;text-align:center;border-top:1px solid #ddd}a,a:focus,a:hover,a:visited{color:#000}.logo{width:100%;height:auto;max-width:400px;max-height:289px}', '']), t.exports = e }, function (t, e, n) { 'use strict'; n.r(e); var r = n(7); var o = n.n(r); for (var c in r)c !== 'default' && (function (t) { n.d(e, t, function () { return r[t] }) }(c)); e.default = o.a }, function (t, e, n) { (e = n(3)(!1)).push([t.i, '.container{margin:0;width:100%;padding:100px 0;text-align:center}.button,.button:visited{display:inline-block;color:#000;letter-spacing:1px;background-color:#fff;border:2px solid #000;text-decoration:none;text-transform:uppercase;padding:15px 45px}.button:focus,.button:hover{color:#fff;background-color:#000}.title{color:#000;font-weight:300;font-size:2.5em;margin:0}', '']), t.exports = e }, function (t, e, n) { 'use strict'; n.r(e); var r = n(10); var o = n(0); var c = n.n(o); var l = n(11); var d = n.n(l); var f = {}; function h (t) { return t.then(t => t.default || t) } function x (t) { return t.options && t._Ctor === t ? t : (t.options ? (t._Ctor = t, t.extendOptions = t.options) : (t = c.a.extend(t))._Ctor = t, !t.options.name && t.options.__file && (t.options.name = t.options.__file), t) } function m (t, e = !1, n = 'components') { return Array.prototype.concat.apply([], t.matched.map((t, r) => Object.keys(t[n]).map(o => (e && e.push(r), t[n][o])))) } function y (t, e) { return Promise.all(function (t, e) { return Array.prototype.concat.apply([], t.matched.map((t, n) => Object.keys(t.components).reduce((r, o) => (t.components[o] ? r.push(e(t.components[o], t.instances[o], t, o, n)) : delete t.components[o], r), []))) }(t, async (t, n, r, o) => (typeof t !== 'function' || t.options || (t = await t()), r.components[o] = t = x(t), typeof e === 'function' ? e(t, n, r, o) : t))) } async function v (t) { if (t) return await y(t), { ...t, meta: m(t).map((e, n) => ({ ...e.options.meta, ...(t.matched[n] || {}).meta })) } } async function _ (t, e) { t.context || (t.context = { isStatic: !1, isDev: !1, isHMR: !1, app: t, payload: e.payload, error: e.error, base: '/', env: {} }, e.req && (t.context.req = e.req), e.res && (t.context.res = e.res), e.ssrContext && (t.context.ssrContext = e.ssrContext), t.context.redirect = (e, path, n) => { if (!e) return; t.context._redirected = !0; let r = typeof path; typeof e === 'number' || r !== 'undefined' && r !== 'object' || (n = path || {}, r = typeof (path = e), e = 302), r === 'object' && (path = t.router.resolve(path).route.fullPath), /(^[.]{1,2}\/)|(^\/(?!\/))/.test(path) ? t.context.next({ path: path, query: n, status: e }) : (path = (function (t, e) { let n; const r = t.indexOf('://'); r !== -1 ? (n = t.substring(0, r), t = t.substring(r + 3)) : t.startsWith('//') && (t = t.substring(2)); let o; let c = t.split('/'); let l = (n ? n + '://' : '//') + c.shift(); let path = c.filter(Boolean).join('/'); c = path.split('#'), c.length === 2 && ([path, o] = c); l += path ? '/' + path : '', e && JSON.stringify(e) !== '{}' && (l += (t.split('?').length === 2 ? '&' : '?') + (function (t) { return Object.keys(t).sort().map(e => { const n = t[e]; return n == null ? '' : Array.isArray(n) ? n.slice().map(t => [e, '=', t].join('')).join('&') : e + '=' + n }).filter(Boolean).join('&') }(e))); return l += o ? '#' + o : '', l }(path, n)), t.context.next({ path: path, status: e })) }, t.context.beforeNuxtRender = t => e.beforeRenderFns.push(t)); const [n, r] = await Promise.all([v(e.route), v(e.from)]); e.route && (t.context.route = n), e.from && (t.context.from = r), t.context.next = e.next, t.context._redirected = !1, t.context._errored = !1, t.context.isHMR = !1, t.context.params = t.context.route.params || {}, t.context.query = t.context.route.query || {} } function w (t, e) { return !t.length || e._redirected || e._errored ? Promise.resolve() : C(t[0], e).then(() => w(t.slice(1), e)) } function C (t, e) { let n; return n = t.length === 2 ? new Promise(n => { t(e, function (t, data) { t && e.error(t), n(data = data || {}) }) }) : t(e), n && n instanceof Promise && typeof n.then === 'function' ? n : Promise.resolve(n) } function $ (t, e) { return (function (t, e) { const n = new Array(t.length); for (let i = 0; i < t.length; i++) typeof t[i] === 'object' && (n[i] = new RegExp('^(?:' + t[i].pattern + ')$', E(e))); return function (e, r) { let path = ''; const data = e || {}; const o = (r || {}).pretty ? S : encodeURIComponent; for (let i = 0; i < t.length; i++) { const e = t[i]; if (typeof e === 'string') { path += e; continue } const r = data[e.name || 'pathMatch']; let c; if (r == null) { if (e.optional) { e.partial && (path += e.prefix); continue } throw new TypeError('Expected "' + e.name + '" to be defined') } if (Array.isArray(r)) { if (!e.repeat) throw new TypeError('Expected "' + e.name + '" to not repeat, but received `' + JSON.stringify(r) + '`'); if (r.length === 0) { if (e.optional) continue; throw new TypeError('Expected "' + e.name + '" to not be empty') } for (let t = 0; t < r.length; t++) { if (c = o(r[t]), !n[i].test(c)) throw new TypeError('Expected all "' + e.name + '" to match "' + e.pattern + '", but received `' + JSON.stringify(c) + '`'); path += (t === 0 ? e.prefix : e.delimiter) + c } } else { if (c = e.asterisk ? S(r, !0) : o(r), !n[i].test(c)) throw new TypeError('Expected "' + e.name + '" to match "' + e.pattern + '", but received "' + c + '"'); path += e.prefix + c } } return path } }((function (t, e) { const n = []; let r = 0; let o = 0; let path = ''; const c = e && e.delimiter || '/'; let l; for (;(l = k.exec(t)) != null;) { const e = l[0]; const d = l[1]; const f = l.index; if (path += t.slice(o, f), o = f + e.length, d) { path += d[1]; continue } const h = t[o]; const x = l[2]; const m = l[3]; const y = l[4]; const v = l[5]; const _ = l[6]; const w = l[7]; path && (n.push(path), path = ''); const C = x != null && h != null && h !== x; const $ = _ === '+' || _ === '*'; const k = _ === '?' || _ === '*'; const S = l[2] || c; const pattern = y || v; n.push({ name: m || r++, prefix: x || '', delimiter: S, optional: k, repeat: $, partial: C, asterisk: Boolean(w), pattern: pattern ? T(pattern) : w ? '.*' : '[^' + j(S) + ']+?' }) }o < t.length && (path += t.substr(o)); path && n.push(path); return n }(t, e)), e)) } const k = new RegExp(['(\\\\.)', '([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))'].join('|'), 'g'); function S (t, e) { const n = e ? /[?#]/g : /[/?#]/g; return encodeURI(t).replace(n, t => '%' + t.charCodeAt(0).toString(16).toUpperCase()) } function j (t) { return t.replace(/([.+*?=^!:${}()[\]|/\\])/g, '\\$1') } function T (t) { return t.replace(/([=!:$/()])/g, '\\$1') } function E (t) { return t && t.sensitive ? '' : 'i' } var N = n(12); var O = n.n(N); var P = n(9); var R = n.n(P); var A = n(8); var L = n.n(A); var M = n(2); var D = n.n(M); const U = () => {}; const F = D.a.prototype.push; D.a.prototype.push = function (t, e = U, n) { return F.call(this, t, e, n) }, c.a.use(D.a); const I = { mode: 'history', base: decodeURI('/'), linkActiveClass: 'nuxt-link-active', linkExactActiveClass: 'nuxt-link-exact-active', scrollBehavior: function (t, e, n) { let r = !1; const o = m(t); o.length < 2 && o.every(t => !1 !== t.options.scrollToTop) ? r = { x: 0, y: 0 } : o.some(t => t.options.scrollToTop) && (r = { x: 0, y: 0 }), n && (r = n); const c = window.$nuxt; return t.path === e.path && t.hash !== e.hash && c.$nextTick(() => c.$emit('triggerScroll')), new Promise(e => { c.$once('triggerScroll', () => { if (t.hash) { let e = t.hash; void 0 !== window.CSS && void 0 !== window.CSS.escape && (e = '#' + window.CSS.escape(e.substr(1))); try { document.querySelector(e) && (r = { selector: e }) } catch (t) { console.warn('Failed to save scroll position. Please add CSS.escape() polyfill (https://github.com/mathiasbynens/CSS.escape).') } }e(r) }) }) }, routes: [{ path: '/', component: () => h(n.e(2).then(n.bind(null, 32))), name: 'index' }, { path: '/:id', component: () => h(n.e(1).then(n.bind(null, 33))), name: 'id' }], fallback: !1 }; var B = { name: 'NuxtChild', functional: !0, props: { nuxtChildKey: { type: String, default: '' }, keepAlive: Boolean, keepAliveProps: { type: Object, default: void 0 } }, render (t, { parent: e, data, props: n }) { data.nuxtChild = !0; const r = e; const o = e.$nuxt.nuxt.transitions; const c = e.$nuxt.nuxt.defaultTransition; let l = 0; for (;e;)e.$vnode && e.$vnode.data.nuxtChild && l++, e = e.$parent; data.nuxtChildDepth = l; const d = o[l] || c; const f = {}; V.forEach(t => { void 0 !== d[t] && (f[t] = d[t]) }); const h = {}; K.forEach(t => { typeof d[t] === 'function' && (h[t] = d[t].bind(r)) }); const x = h.beforeEnter; if (h.beforeEnter = t => { if (window.$nuxt.$nextTick(() => { window.$nuxt.$emit('triggerScroll') }), x) return x.call(r, t) }, !1 === d.css) { const t = h.leave; (!t || t.length < 2) && (h.leave = (e, n) => { t && t.call(r, e), r.$nextTick(n) }) } let m = t('routerView', data); return n.keepAlive && (m = t('keep-alive', { props: n.keepAliveProps }, [m])), t('transition', { props: f, on: h }, [m]) } }; const V = ['name', 'mode', 'appear', 'css', 'type', 'duration', 'enterClass', 'leaveClass', 'appearClass', 'enterActiveClass', 'enterActiveClass', 'leaveActiveClass', 'appearActiveClass', 'enterToClass', 'leaveToClass', 'appearToClass']; const K = ['beforeEnter', 'enter', 'afterEnter', 'enterCancelled', 'beforeLeave', 'leave', 'afterLeave', 'leaveCancelled', 'beforeAppear', 'appear', 'afterAppear', 'appearCancelled']; var H = { props: ['error'] }; var J = n(1); var X = Object(J.a)(H, function () { var t = this; var e = t.$createElement; var r = t._self._c || e; return r('section', { staticClass: 'container' }, [t._ssrNode('<img' + t._ssrAttr('src', n(13)) + ' alt="Nuxt.js Logo" class="logo" data-v-579b3378> <h1 class="title" data-v-579b3378>' + t._ssrEscape('\n ' + t._s(t.error.statusCode) + '\n ') + '</h1> <h2 class="info" data-v-579b3378>' + t._ssrEscape('\n ' + t._s(t.error.message) + '\n ') + '</h2> '), t.error.statusCode === 404 ? r('nuxt-link', { staticClass: 'button', attrs: { to: '/' } }, [t._v('\n Homepage\n ')]) : t._e()], 2) }, [], !1, function (t) { var e = n(15); e.__inject__ && e.__inject__(t) }, '579b3378', '3dac8dca').exports; var z = { name: 'Nuxt', components: { NuxtChild: B, NuxtError: X }, props: { nuxtChildKey: { type: String, default: void 0 }, keepAlive: Boolean, keepAliveProps: { type: Object, default: void 0 }, name: { type: String, default: 'default' } }, errorCaptured (t) { this.displayingNuxtError && (this.errorFromNuxtError = t, this.$forceUpdate()) }, computed: { routerViewKey () { if (void 0 !== this.nuxtChildKey || this.$route.matched.length > 1) return this.nuxtChildKey || $(this.$route.matched[0].path)(this.$route.params); const [t] = this.$route.matched; if (!t) return this.$route.path; const e = t.components.default; if (e && e.options) { const { options: t } = e; if (t.key) return typeof t.key === 'function' ? t.key(this.$route) : t.key } return /\/$/.test(t.path) ? this.$route.path : this.$route.path.replace(/\/$/, '') } }, beforeCreate () { c.a.util.defineReactive(this, 'nuxt', this.$root.$options.nuxt) }, render (t) { return this.nuxt.err ? this.errorFromNuxtError ? (this.$nextTick(() => this.errorFromNuxtError = !1), t('div', {}, [t('h2', 'An error occured while showing the error page'), t('p', 'Unfortunately an error occured and while showing the error page another error occured'), t('p', `Error details: ${this.errorFromNuxtError.toString()}`), t('nuxt-link', { props: { to: '/' } }, 'Go back to home')])) : (this.displayingNuxtError = !0, this.$nextTick(() => this.displayingNuxtError = !1), t(X, { props: { error: this.nuxt.err } })) : t('NuxtChild', { key: this.routerViewKey, props: this.$props }) } }; var W = { name: 'NuxtLoading', data: () => ({ percent: 0, show: !1, canSucceed: !0, reversed: !1, skipTimerCount: 0, rtl: !1, throttle: 200, duration: 5e3, continuous: !1 }), computed: { left () { return !(!this.continuous && !this.rtl) && (this.rtl ? this.reversed ? '0px' : 'auto' : this.reversed ? 'auto' : '0px') } }, beforeDestroy () { this.clear() }, methods: { clear () { clearInterval(this._timer), clearTimeout(this._throttle), this._timer = null }, start () { return this.clear(), this.percent = 0, this.reversed = !1, this.skipTimerCount = 0, this.canSucceed = !0, this.throttle ? this._throttle = setTimeout(() => this.startTimer(), this.throttle) : this.startTimer(), this }, set (t) { return this.show = !0, this.canSucceed = !0, this.percent = Math.min(100, Math.max(0, Math.floor(t))), this }, get () { return this.percent }, increase (t) { return this.percent = Math.min(100, Math.floor(this.percent + t)), this }, decrease (t) { return this.percent = Math.max(0, Math.floor(this.percent - t)), this }, pause () { return clearInterval(this._timer), this }, resume () { return this.startTimer(), this }, finish () { return this.percent = this.reversed ? 0 : 100, this.hide(), this }, hide () { return this.clear(), setTimeout(() => { this.show = !1, this.$nextTick(() => { this.percent = 0, this.reversed = !1 }) }, 500), this }, fail () { return this.canSucceed = !1, this }, startTimer () { this.show || (this.show = !0), void 0 === this._cut && (this._cut = 1e4 / Math.floor(this.duration)), this._timer = setInterval(() => { this.skipTimerCount > 0 ? this.skipTimerCount-- : (this.reversed ? this.decrease(this._cut) : this.increase(this._cut), this.continuous && (this.percent >= 100 ? (this.skipTimerCount = 1, this.reversed = !this.reversed) : this.percent <= 0 && (this.skipTimerCount = 1, this.reversed = !this.reversed))) }, 100) } }, render (t) { let e = t(!1); return this.show && (e = t('div', { staticClass: 'nuxt-progress', class: { 'nuxt-progress-notransition': this.skipTimerCount > 0, 'nuxt-progress-failed': !this.canSucceed }, style: { width: this.percent + '%', left: this.left } })), e } }; var G = Object(J.a)(W, void 0, void 0, !1, function (t) { var e = n(17); e.__inject__ && e.__inject__(t) }, null, '79a9b4f4').exports; var Q = (n(19), { components: { MyFooter: Object(J.a)({}, function () { var t = this.$createElement; return (this._self._c || t)('footer', [this._ssrNode('\n Visit our website for more documentation : <a href="https://nuxtjs.org" target="_blank">nuxtjs.org</a>')]) }, [], !1, null, null, '36329b6d').exports } }); const Y = { _default: Object(J.a)(Q, function () { var t = this.$createElement; var e = this._self._c || t; return e('div', [e('nuxt'), this._ssrNode(' '), e('my-footer')], 2) }, [], !1, function (t) { var e = n(21); e.__inject__ && e.__inject__(t) }, null, 'b08473d8').exports }; var Z = { head: { title: 'starter', meta: [{ charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' }, { hid: 'description', name: 'description', content: 'Nuxt.js project' }], link: [{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }], style: [], script: [] }, render (t, e) { const n = t('NuxtLoading', { ref: 'loading' }); if (this.nuxt.err && X) { const t = (X.options || X).layout; t && this.setLayout(typeof t === 'function' ? t.call(X, this.context) : t) } const r = t(this.layout || 'nuxt'); const o = t('div', { domProps: { id: '__layout' }, key: this.layoutName }, [r]); const c = t('transition', { props: { name: 'layout', mode: 'out-in' }, on: { beforeEnter (t) { window.$nuxt.$nextTick(() => { window.$nuxt.$emit('triggerScroll') }) } } }, [o]); return t('div', { domProps: { id: '__nuxt' } }, [n, c]) }, data: () => ({ isOnline: !0, layout: null, layoutName: '' }), beforeCreate () { c.a.util.defineReactive(this, 'nuxt', this.$options.nuxt) }, created () { c.a.prototype.$nuxt = this, this.error = this.nuxt.error, this.context = this.$options.context }, mounted () { this.$loading = this.$refs.loading }, watch: { 'nuxt.err': 'errorChanged' }, computed: { isOffline () { return !this.isOnline } }, methods: { refreshOnlineStatus () { 0 }, async refresh () { const t = (function (t, e = !1) { return m(t, e, 'instances') }(this.$route)); if (!t.length) return; this.$loading.start(); const e = t.map(t => { const p = []; return t.$options.fetch && p.push(C(t.$options.fetch, this.context)), t.$options.asyncData && p.push(C(t.$options.asyncData, this.context).then(e => { for (const n in e)c.a.set(t.$data, n, e[n]) })), Promise.all(p) }); try { await Promise.all(e) } catch (t) { this.$loading.fail(), (function (t) { c.a.config.errorHandler && c.a.config.errorHandler(t) }(t)), this.error(t) } this.$loading.finish() }, errorChanged () { this.nuxt.err && this.$loading && (this.$loading.fail && this.$loading.fail(), this.$loading.finish && this.$loading.finish()) }, setLayout (t) { return t && Y['_' + t] || (t = 'default'), this.layoutName = t, this.layout = Y['_' + t], this.layout }, loadLayout: t => (t && Y['_' + t] || (t = 'default'), Promise.resolve(Y['_' + t])) }, components: { NuxtLoading: G } }; c.a.component(R.a.name, R.a), c.a.component(L.a.name, { ...L.a, render: (t, e) => L.a.render(t, e) }), c.a.component(B.name, B), c.a.component('NChild', B), c.a.component(z.name, z), c.a.use(O.a, { keyName: 'head', attribute: 'data-n-head', ssrAttribute: 'data-n-head-ssr', tagIDKeyName: 'hid' }); const tt = { name: 'page', mode: 'out-in', appear: !1, appearClass: 'appear', appearActiveClass: 'appear-active', appearToClass: 'appear-to' }; async function et (t) { const e = await new D.a(I); const n = { router: e, nuxt: { defaultTransition: tt, transitions: [tt], setTransitions (t) { return Array.isArray(t) || (t = [t]), t = t.map(t => t = t ? typeof t === 'string' ? Object.assign({}, tt, { name: t }) : Object.assign({}, tt, t) : tt), this.$options.nuxt.transitions = t, t }, err: null, dateErr: null, error (e) { e = e || null, n.context._errored = Boolean(e), e = e ? (function (t) { let e; if (t.message || typeof t === 'string')e = t.message || t; else try { e = JSON.stringify(t, null, 2) } catch (n) { e = `[${t.constructor.name}]` } return { ...t, message: e, statusCode: t.statusCode || t.status || t.response && t.response.status || 500 } }(e)) : null; const r = this.nuxt || this.$options.nuxt; return r.dateErr = Date.now(), r.err = e, t && (t.nuxt.error = e), e } }, ...Z }; const r = t ? t.next : t => n.router.push(t); let o; if (t)o = e.resolve(t.url).route; else { const path = (function (base, t) { let path = decodeURI(window.location.pathname); return t === 'hash' ? window.location.hash.replace(/^#\//, '') : (base && path.indexOf(base) === 0 && (path = path.slice(base.length)), (path || '/') + window.location.search + window.location.hash) }(e.options.base, e.options.mode)); o = e.resolve(path).route } return await _(n, { route: o, next: r, error: n.nuxt.error.bind(n), payload: t ? t.payload : void 0, req: t ? t.req : void 0, res: t ? t.res : void 0, beforeRenderFns: t ? t.beforeRenderFns : void 0, ssrContext: t }), t && t.url && await new Promise((r, o) => { e.push(t.url, r, () => { const o = e.afterEach(async (e, c, l) => { t.url = e.fullPath, n.context.route = await v(e), n.context.params = e.params || {}, n.context.query = e.query || {}, o(), r() }) }) }), { app: n, router: e } } var nt = { name: 'NuxtLink', extends: c.a.component('RouterLink'), props: { prefetch: { type: Boolean, default: !0 }, noPrefetch: { type: Boolean, default: !1 } } }; c.a.component(nt.name, nt), c.a.component('NLink', nt), global.fetch || (global.fetch = d.a); const ot = () => new c.a({ render: t => t('div') }); const it = t => e => { if (t.redirected = e, !t.res) return void (t.nuxt.serverRendered = !1); e.query = Object(r.stringify)(e.query), e.path = e.path + (e.query ? '?' + e.query : ''); e.path.startsWith('http'), e.path !== t.url ? (t.res.writeHead(e.status, { Location: e.path }), t.res.end()) : t.redirected = !1 }; e.default = async t => { t.redirected = !1, t.next = it(t), t.beforeRenderFns = [], t.nuxt = { layout: 'default', data: [], error: null, serverRendered: !0 }; const { app: e, router: n } = await et(t); const r = new c.a(e); t.meta = r.$meta(), t.asyncData = {}; const o = async () => { await Promise.all(t.beforeRenderFns.map(e => C(e, { Components: h, nuxtState: t.nuxt }))) }; const l = async () => { const n = (X.options || X).layout; const c = typeof n === 'function' ? n.call(X, e.context) : n; return t.nuxt.layout = c || 'default', await r.loadLayout(c), r.setLayout(c), await o(), r }; const d = () => (e.context.error({ statusCode: 404, path: t.url, message: 'This page could not be found' }), l()); const h = m(n.match(t.url)); let y = []; if (y = y.map(t => typeof t === 'function' ? t : (typeof f[t] !== 'function' && e.context.error({ statusCode: 500, message: 'Unknown middleware ' + t }), f[t])), await w(y, e.context), t.redirected) return ot(); if (t.nuxt.error) return l(); let v = h.length ? h[0].options.layout : X.layout; if (typeof v === 'function' && (v = v(e.context)), await r.loadLayout(v), t.nuxt.error) return l(); if (v = r.setLayout(v), t.nuxt.layout = r.layoutName, y = [], v = x(v), v.options.middleware && (y = y.concat(v.options.middleware)), h.forEach(t => { t.options.middleware && (y = y.concat(t.options.middleware)) }), y = y.map(t => typeof t === 'function' ? t : (typeof f[t] !== 'function' && e.context.error({ statusCode: 500, message: 'Unknown middleware ' + t }), f[t])), await w(y, e.context), t.redirected) return ot(); if (t.nuxt.error) return l(); let _ = !0; try { for (const t of h) if (typeof t.options.validate === 'function' && (_ = await t.options.validate(e.context), !_)) break } catch (t) { return e.context.error({ statusCode: t.statusCode || '500', message: t.message }), l() } if (!_) return t._generate && (t.nuxt.serverRendered = !1), d(); if (!h.length) return d(); const $ = await Promise.all(h.map(n => { const r = []; if (n.options.asyncData && typeof n.options.asyncData === 'function') { const o = C(n.options.asyncData, e.context); o.then(e => (t.asyncData[n.cid] = e, (function (t, e) { if (!e && t.options.__hasNuxtData) return; const n = t.options._originDataFn || t.options.data || function () { return {} }; t.options._originDataFn = n, t.options.data = function () { const data = n.call(this, this); return this.$ssrContext && (e = this.$ssrContext.asyncData[t.cid]), { ...data, ...e } }, t.options.__hasNuxtData = !0, t._Ctor && t._Ctor.options && (t._Ctor.options.data = t.options.data) }(n)), e)), r.push(o) } else r.push(null); return n.options.fetch ? r.push(n.options.fetch(e.context)) : r.push(null), Promise.all(r) })); return t.nuxt.data = $.map(t => t[0] || {}), t.redirected ? ot() : t.nuxt.error ? l() : (await o(), r) } }, function (t, e) { t.exports = require('axios') }])) //# sourceMappingURL=main.js.map